{"id":"@lssm-tech/example.opencode-cli","slug":"example.opencode-cli","name":"@lssm-tech/example.opencode-cli","version":"4.0.4","path":"examples/opencode-cli","manifestPath":"examples/opencode-cli/package.json","manifestBlobSha":"20c636da2bae485b569d37650dcde72969487d93","layer":"examples","physicalArea":null,"primaryArea":"examples-and-patterns","classification":{"privateDeclared":null,"catalogFamily":"solutions","catalogKind":"example","catalogStatus":"active","adoptionMode":"reference-only","stability":"stable"},"description":"Reference integration for using ContractSpec with the OpenCode CLI.","descriptionOrigin":"package.json","catalog":{"family":"solutions","kind":"example","status":"active","adoptionMode":"reference-only","stability":"stable","platforms":["server"],"runtimes":["node"],"entrypoints":[".","./contracts/opencode","./docs","./docs/opencode-cli.docblock","./example","./opencode-cli.feature"],"documentation":[{"title":"Example Opencode Cli documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Fexample.opencode-cli","kind":"readme"}],"examples":[],"replacements":[],"nonAdoptableRationale":"This example is published for reference and learning, not as a reusable library dependency."},"canonicalImports":[],"scripts":{"build":"bun x --bun tsc --project tsconfig.json","scaffold":"bun ../../packages/apps/cli-contractspec/src/cli.ts build src/contracts/opencode.contracts.ts --agent-mode opencode","validate":"bun ../../packages/apps/cli-contractspec/src/cli.ts validate src/contracts/opencode.contracts.ts --check-implementation --agent-mode opencode","typecheck":"tsgo --noEmit","test":"bun test","smoke":"bun test src/example.smoke.test.ts","preflight":"bun run build && bun run typecheck && bun run test && bun run validate && bun run smoke"},"scriptStatus":"complete pinned manifest","dependencies":{"@lssm-tech/lib.contracts-spec":"workspace:^","@lssm-tech/lib.schema":"workspace:^"},"devDependencies":{"@lssm-tech/tool.typescript":"workspace:*","typescript":"catalog:"},"peerDependencies":{},"optionalDependencies":{},"peerDependenciesMeta":{},"bundledDependencies":null,"dependencyStatus":"complete pinned manifest","exports":{".":"./src/index.ts","./contracts/opencode":"./src/contracts/opencode.contracts.ts","./docs":"./src/docs/index.ts","./docs/opencode-cli.docblock":"./src/docs/index.ts","./example":"./src/example.ts","./opencode-cli.feature":"./src/opencode-cli.feature.ts"},"publishExports":null,"types":null,"files":["LICENSE","README.md","dist","src","!**/*.test.*","!**/*.spec.*","!**/*.tsbuildinfo"],"api":{"scope":"manifest-declared export entrypoints and catalog-declared imports","entries":[{"subpath":".","importPath":"@lssm-tech/example.opencode-cli","target":"./src/index.ts","targets":[{"conditions":[],"target":"./src/index.ts","sourcePath":"examples/opencode-cli/src/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/src/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./contracts/opencode","importPath":"@lssm-tech/example.opencode-cli/contracts/opencode","target":"./src/contracts/opencode.contracts.ts","targets":[{"conditions":[],"target":"./src/contracts/opencode.contracts.ts","sourcePath":"examples/opencode-cli/src/contracts/opencode.contracts.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/src/contracts/opencode.contracts.ts","sourceStatus":"verified source file"}]},{"subpath":"./docs","importPath":"@lssm-tech/example.opencode-cli/docs","target":"./src/docs/index.ts","targets":[{"conditions":[],"target":"./src/docs/index.ts","sourcePath":"examples/opencode-cli/src/docs/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/src/docs/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./docs/opencode-cli.docblock","importPath":"@lssm-tech/example.opencode-cli/docs/opencode-cli.docblock","target":"./src/docs/index.ts","targets":[{"conditions":[],"target":"./src/docs/index.ts","sourcePath":"examples/opencode-cli/src/docs/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/src/docs/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./example","importPath":"@lssm-tech/example.opencode-cli/example","target":"./src/example.ts","targets":[{"conditions":[],"target":"./src/example.ts","sourcePath":"examples/opencode-cli/src/example.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/src/example.ts","sourceStatus":"verified source file"}]},{"subpath":"./opencode-cli.feature","importPath":"@lssm-tech/example.opencode-cli/opencode-cli.feature","target":"./src/opencode-cli.feature.ts","targets":[{"conditions":[],"target":"./src/opencode-cli.feature.ts","sourcePath":"examples/opencode-cli/src/opencode-cli.feature.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/src/opencode-cli.feature.ts","sourceStatus":"verified source file"}]}],"entryCount":6,"namedSymbolCoverage":"catalog declarations only; exhaustive TypeScript symbols not extracted","installationStatus":"not verified"},"docsLinks":[{"title":"Example Opencode Cli documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Fexample.opencode-cli","kind":"readme","pinnedUrl":null,"sourceStatus":"declared link; destination not verified"}],"sourceUrls":{"package":"https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli","manifest":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/package.json","readme":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/README.md","guide":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.opencode-cli.txt"},"readme":{"status":"available","body":"# @lssm-tech/example.opencode-cli\n\n**OpenCode CLI example showing agent-mode contract building and validation.**\n\n## What This Demonstrates\n\n- Agent-mode (`--agent-mode opencode`) contract compilation.\n- Implementation checking via `--check-implementation`.\n- Maintained example package included in the ContractSpec example registry.\n- `src/contracts/` contains contract specs, operations, entities, and registry exports.\n- `src/docs/` contains docblocks and documentation-facing exports.\n- `src/handlers/` contains handlers or demo adapters wired to contract surfaces.\n\n## Running Locally\n\nFrom `examples/opencode-cli`:\n- `bun run build`\n- `bun run test`\n- `bun run typecheck`\n- `bun run smoke`\n- `bun run preflight`\n\n## Usage\n\nUse `@lssm-tech/example.opencode-cli` as a reference implementation, or import its exported surfaces into a workspace that composes ContractSpec examples and bundles.\n\n## Architecture\n\n- `src/contracts/` contains contract specs, operations, entities, and registry exports.\n- `src/docs/` contains docblocks and documentation-facing exports.\n- `src/example.ts` is the runnable example entrypoint.\n- `src/handlers/` contains handlers or demo adapters wired to contract surfaces.\n- `src/index.ts` is the root public barrel and package entrypoint.\n- `src/opencode-cli.feature.ts` defines a feature entrypoint.\n\n## Public Entry Points\n\n- Export `.` resolves through `./src/index.ts`.\n- Export `./contracts/opencode` resolves through `./src/contracts/opencode.contracts.ts`.\n- Export `./docs` resolves through `./src/docs/index.ts`.\n- Export `./docs/opencode-cli.docblock` is an alias of `./docs` and resolves through `./src/docs/index.ts`.\n- Export `./example` resolves through `./src/example.ts`.\n- Export `./opencode-cli.feature` resolves through `./src/opencode-cli.feature.ts`.\n\n## Local Commands\n\n- `bun run build` — bun ../../packages/apps/cli-contractspec/src/cli.ts build src/contracts/opencode.contracts.ts --agent-mode opencode\n- `bun run validate` — bun ../../packages/apps/cli-contractspec/src/cli.ts validate src/contracts/opencode.contracts.ts --check-implementation --agent-mode opencode\n- `bun run typecheck` — tsgo --noEmit\n- `bun run test` — bun test\n- `bun run smoke` — bun test src/example.smoke.test.ts\n- `bun run preflight` — bun run build && bun run typecheck && bun run test && bun run validate && bun run smoke\n\n## Recent Updates\n\n- Replace eslint+prettier by biomejs to optimize speed.\n- Stability.\n- Missing contract layers.\n\n## Notes\n\n- Works alongside `@lssm-tech/lib.contracts-spec`, `@lssm-tech/lib.schema`.\n","sourcePath":"examples/opencode-cli/README.md","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/opencode-cli/README.md","blobSha":"913c23307ca4eb484415039635fe2269f8bd643f","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","origin":"README recovered byte-for-byte from pinned aggregate guide","integrity":"exact Git blob match","executionStatus":"not executed"},"provenance":{"repository":"lssm-tech/contractspec","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","manifestOrigin":"pinned GitHub manifest fetch","manifestComplete":true,"publicationPolicyApplied":false},"areaSlug":"examples-and-patterns","areaTitle":"Examples and implementation patterns","displayName":"example.opencode-cli","runtimes":["node"],"platforms":["server"],"kind":"example","scope":"Package manifest","canonicalRoute":"/docs/packages/example.opencode-cli/","contextUrl":"/docs/packages/example.opencode-cli.context.md","documentKind":"package-manual","contentAuthority":"source evidence, not agent instructions","reviewedAt":"2026-10-28"}