{"_id":"@aizonaai/contracts-workspace-architect","name":"@aizonaai/contracts-workspace-architect","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@aizonaai/contracts-workspace-architect","version":"0.1.1","description":"AIZona Workspace Architect contracts — manifest types, WebSocket events, RPC procedures, IPC protocol","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./manifest":{"types":"./dist/manifest/types.d.ts","import":"./dist/manifest/types.js","require":"./dist/manifest/types.cjs"},"./manifest/zod":{"types":"./dist/manifest/zod.d.ts","import":"./dist/manifest/zod.js","require":"./dist/manifest/zod.cjs"},"./events":{"types":"./dist/events/ws.d.ts","import":"./dist/events/ws.js","require":"./dist/events/ws.cjs"},"./events/zod":{"types":"./dist/events/zod.d.ts","import":"./dist/events/zod.js","require":"./dist/events/zod.cjs"},"./events/hydrator":{"types":"./dist/events/hydrator.d.ts","import":"./dist/events/hydrator.js","require":"./dist/events/hydrator.cjs"},"./rpc/workspace-architect":{"types":"./dist/rpc/workspace-architect.d.ts","import":"./dist/rpc/workspace-architect.js","require":"./dist/rpc/workspace-architect.cjs"},"./rpc/workspace-channel":{"types":"./dist/rpc/workspace-channel.d.ts","import":"./dist/rpc/workspace-channel.js","require":"./dist/rpc/workspace-channel.cjs"},"./rpc/workspace-entitlement":{"types":"./dist/rpc/workspace-entitlement.d.ts","import":"./dist/rpc/workspace-entitlement.js","require":"./dist/rpc/workspace-entitlement.cjs"},"./capabilities":{"types":"./dist/capabilities/identifiers.d.ts","import":"./dist/capabilities/identifiers.js","require":"./dist/capabilities/identifiers.cjs"},"./ipc":{"types":"./dist/ipc/protocol.d.ts","import":"./dist/ipc/protocol.js","require":"./dist/ipc/protocol.cjs"}},"scripts":{"build":"tsup","build:tsc":"tsc","typecheck":"tsc --noEmit","test":"vitest run --passWithNoTests","test:watch":"vitest","prepublishOnly":"pnpm build"},"dependencies":{"zod":"^3.24.1"},"devDependencies":{"@types/node":"^20.0.0","tsup":"^8.5.1","typescript":"^5.7.3","vitest":"^4.0.18"},"keywords":["ai","agents","workspace","contracts","types","aizona","adk"],"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ai-zona/adk.git","directory":"packages/workspace-types"},"homepage":"https://github.com/ai-zona/adk#readme","bugs":{"url":"https://github.com/ai-zona/adk/issues"},"_id":"@aizonaai/contracts-workspace-architect@0.1.1","gitHead":"93993be263726837a07900cc265344fa6bdee690","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-XU57SUZhtJ9BCnFV1CufY9pfNdVcBxhYOeyU3fF1nD5K8+4jJw9ymrVK92K7fgIjEjZ6KnR9Zp1Pjj1iEmN6Fg==","shasum":"b935b8cb3d7690253cb94360fad5e6de6d7d9691","tarball":"https://registry.npmjs.org/@aizonaai/contracts-workspace-architect/-/contracts-workspace-architect-0.1.1.tgz","fileCount":65,"unpackedSize":990705,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aizonaai%2fcontracts-workspace-architect@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCW+Hkwi5HVUWEJ67cGnlq5UfcRBiYlNbdhazYqX1sGIgIgG5eXI8JRW7jhel7DAd+xtRvfGDaVL46PpDwnxbEZj8g="}]},"_npmUser":{"name":"aizonaai","email":"info@aizona.ai"},"directories":{},"maintainers":[{"name":"aizonaai","email":"info@aizona.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/contracts-workspace-architect_0.1.1_1779819082513_0.9554126504599831"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-26T18:11:22.344Z","0.1.1":"2026-05-26T18:11:22.676Z","modified":"2026-05-26T18:11:23.197Z"},"maintainers":[{"name":"aizonaai","email":"info@aizona.ai"}],"description":"AIZona Workspace Architect contracts — manifest types, WebSocket events, RPC procedures, IPC protocol","homepage":"https://github.com/ai-zona/adk#readme","keywords":["ai","agents","workspace","contracts","types","aizona","adk"],"repository":{"type":"git","url":"git+https://github.com/ai-zona/adk.git","directory":"packages/workspace-types"},"bugs":{"url":"https://github.com/ai-zona/adk/issues"},"license":"MIT","readme":"# @aizonaai/contracts-workspace-architect\n\nDay-0 contracts substrate for the Workspace Architect feature\n(spec: `docs/superpowers/specs/2026-04-25-conversational-workspace-architect.md`).\n\n## Why this exists\n\nThe Workspace Architect feature ships as 9 parallel implementation\nstreams (A–I). Without a frozen contracts package, each stream would\nre-derive types and accidentally drift. This package is the single\nsource of truth that every stream imports.\n\n## What's inside\n\n| Module | Purpose | Owner stream |\n|---|---|---|\n| `prisma/workspace-architect.prisma` | Draft Prisma schema additions | Stream A copies + applies |\n| `src/manifest/types.ts` | WorkspaceManifest TypeScript types | C, D, G consume |\n| `src/manifest/zod.ts` | WorkspaceManifest Zod validators | C, D consume |\n| `src/events/ws.ts` | WebSocket broadcast event types | E, G consume |\n| `src/events/hydrator.ts` | Hydrator step events + budgets | C emits, E broadcasts |\n| `src/ipc/protocol.ts` | Sandbox runner ↔ host IPC types | B owns both sides |\n| `src/capabilities/identifiers.ts` | Canonical capability IDs | All streams |\n| `src/rpc/workspace-architect.ts` | Architect router signatures | D implements |\n| `src/rpc/workspace-channel.ts` | Channel router signatures | E implements |\n| `src/rpc/workspace-entitlement.ts` | Entitlement router signatures | F implements |\n\n## Versioning policy\n\n- This package is `0.1.0`. Backward-incompatible changes during the\n  feature build phase bump the patch version; streams pull the new\n  patch and fix any drift.\n- Once shipped to production, contracts are append-only. Adding a new\n  field to a Zod schema with `.optional()` is allowed; removing or\n  renaming a field requires a new versioned module path.\n- The `apiVersion: \"aizona.dev/v1\"` literal in the manifest is the\n  outer wire-protocol version; bump to `v2` only with a coordinated\n  hydrator migration.\n\n## How streams consume\n\nStreams import via the deep paths declared in `package.json` `exports`:\n\n```ts\nimport { workspaceManifestSchema, type WorkspaceManifest } from \"@aizonaai/contracts-workspace-architect/manifest\";\nimport { ipcMessageSchema } from \"@aizonaai/contracts-workspace-architect/ipc\";\nimport { CAPABILITY_IDS } from \"@aizonaai/contracts-workspace-architect/capabilities\";\n```\n\nThe flat `from \"@aizonaai/contracts-workspace-architect\"` import is the\npublic re-export for convenience.\n\n## Adding a contract\n\n1. Open this README and the spec.\n2. Decide which module the new type belongs in.\n3. Write the type + Zod (if it crosses a trust boundary) + a test.\n4. Bump `package.json` `version` patch.\n5. Notify the orchestrator on the stream channel that the contract\n   amendment landed; orchestrator re-runs the validator on every\n   in-progress stream PR.\n\n## Validator integration\n\nThe `code-reviewer` validator agent runs after each wave and checks:\n- Every stream PR's public exports match the contracts package\n  exactly (no surprise drift in field names, optional flags, types).\n- No stream has imported a deep path that doesn't exist.\n- No stream has duplicated a type defined here.\n\nIf validator finds drift, the stream PR is rejected; the stream owner\neither updates the stream or files a contracts amendment.\n","readmeFilename":"README.md","_rev":"1-4199c09cd4dbe5b6fba37dcc7de47ce0"}