UNPKG

@hasna/projects

Version:

High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents

96 lines (95 loc) • 2.71 kB
{ "schema": "hasna.service_contract.v1", "name": "projects", "class": "service", "contractVersion": "v1", "kitVersion": "1.3.11", "description": "High-level project/workspace management: CLI, MCP server, HTTP API (projects-serve), and typed SDK. The CLI, the MCP server and the ./sdk client are hosted by default: they resolve one authenticated HTTPS /v1 authority through the @hasna/contracts client chain (fleet gateway default https://api.hasna.com/projects) and fail closed — non-zero exit, no SQLite opened or created — when no credential resolves. The on-box SQLite registry (storage.sqlitePath) is opened only under the explicit HASNA_PROJECTS_LOCAL=1 opt-in, which announces itself on stderr. projects-serve uses SQLite by default and PostgreSQL when HASNA_PROJECTS_DATABASE_URL is configured; the serve process reads and writes the selected backend directly.", "bins": [ "projects", "projects-mcp", "projects-serve" ], "hosting": [ "user-hosted" ], "serviceSurfaces": [ { "name": "http-api", "kind": "api", "status": "supported", "bin": "projects-serve", "authMode": "api-key", "health": { "method": "GET", "path": "/health", "public": true }, "readiness": { "method": "GET", "path": "/ready", "public": false }, "version": { "method": "GET", "path": "/version", "public": true }, "apiBasePath": "/v1", "openApiPath": "/openapi.json" }, { "name": "typescript-sdk", "kind": "sdk", "status": "supported", "authMode": "api-key", "exportSubpath": "./sdk", "generatedFrom": "/openapi.json" }, { "name": "mcp", "kind": "mcp", "status": "supported", "mcpBin": "projects-mcp", "authMode": "api-key" }, { "name": "cli", "kind": "cli", "status": "supported", "bin": "projects", "authMode": "api-key" } ], "storage": { "backend": "sqlite", "engines": [ "sqlite", "postgresql" ], "envPrefix": "HASNA_PROJECTS_", "aliasEnvPrefix": "PROJECTS_", "sqlitePath": "~/.hasna/projects/projects.db", "pgTestGate": { "envVar": "PROJECTS_TEST_DATABASE_URL", "command": "bun test" } }, "metadata": { "healthPath": "/health", "readyPath": "/ready", "versionPath": "/version", "apiBasePath": "/v1", "auth": "api-key", "authScopes": [ "projects:read", "projects:write" ], "openapiPath": "/openapi.json", "release": { "artifactScan": { "script": "scan:artifact" } } } }