Implements scaffold ZIP generator, Stoplight Elements API explorer, and CLI scaffold command: Scaffold API: - 25 template files for TypeScript/Python/Go/Java/Rust in src/templates/scaffold/ - ScaffoldService: in-memory ZIP via archiver, variable injection (AGENT_ID/NAME/CLIENT_ID/API_URL) - ScaffoldController: tenant ownership check (403), language validation (400), ZIP stream response - Route GET /sdk/scaffold/:agentId with rate limiter (10 req/min per tenant) - Prometheus: scaffold_generated_total + scaffold_generation_duration_ms histogram Portal: - Replaced swagger-ui-react with @stoplight/elements API component - Dynamic import (ssr: false) for browser-only DOM dependency - Type declarations for @stoplight/elements and CSS module CLI: - sentryagent scaffold --agent-id <id> [--language typescript] [--out .] - Raw fetch for binary ZIP stream → unzipper.Extract() → prints next steps - Human-readable 400/403/404 error messages Tests: 19 tests (unit + integration), ScaffoldService 80%+ branch coverage Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
37 lines
721 B
JSON
37 lines
721 B
JSON
{
|
|
"name": "sentryagent",
|
|
"version": "1.0.0",
|
|
"description": "SentryAgent.ai CLI — manage agents, tokens, and audit logs",
|
|
"main": "dist/index.js",
|
|
"bin": {
|
|
"sentryagent": "./dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "ts-node src/index.ts",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@types/unzipper": "^0.10.11",
|
|
"chalk": "^5.3.0",
|
|
"commander": "^12.1.0",
|
|
"unzipper": "^0.12.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.12.7",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"keywords": [
|
|
"sentryagent",
|
|
"agentidp",
|
|
"cli",
|
|
"agents",
|
|
"identity"
|
|
],
|
|
"license": "MIT"
|
|
}
|