{"id":"@lssm-tech/agentpack.contractspec","slug":"agentpack.contractspec","name":"@lssm-tech/agentpack.contractspec","version":"2.0.4","path":"packages/tools/agentpack-contractspec","manifestPath":"packages/tools/agentpack-contractspec/package.json","manifestBlobSha":"43928ec4a74c65b60480b8376c74a65d483d15bc","layer":"tools","physicalArea":null,"primaryArea":"tooling-and-agent-delivery","classification":{"privateDeclared":null,"catalogFamily":"contracts","catalogKind":"agent-pack","catalogStatus":"active","adoptionMode":"adoptable","stability":"experimental"},"description":"Canonical repository-local Claude, Codex, and agent guidance for ContractSpec consumers.","descriptionOrigin":"package.json","catalog":{"family":"contracts","kind":"agent-pack","status":"active","adoptionMode":"adoptable","stability":"experimental","platforms":["server"],"runtimes":["node"],"entrypoints":["."],"documentation":[{"title":"Agentpack Contractspec documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Fagentpack.contractspec","kind":"readme"}],"examples":[],"replacements":[],"capabilities":[{"id":"package.lssm.tech.agentpack.contractspec","title":"Agentpack Contractspec","description":"Canonical repository-local Claude, Codex, and agent guidance for ContractSpec consumers.","status":"active","useCases":["Adopt canonical repository-local claude, codex, and agent guidance for contractspec consumers"],"aliases":["agentpack","contractspec"],"pythonEquivalents":[],"canonicalImports":[{"from":"@lssm-tech/agentpack.contractspec","symbols":[]}],"constraints":{"platforms":["server"],"runtimes":["node"],"avoidWhen":["The @lssm-tech/agentpack.contractspec package constraints do not match the target runtime or platform."],"requires":["TypeScript"]},"alternatives":[],"relationships":[],"resolutionPriority":50}]},"canonicalImports":[{"capabilityId":"package.lssm.tech.agentpack.contractspec","from":"@lssm-tech/agentpack.contractspec","symbols":[]}],"scripts":{"build":"contractspec-bun-build build","build:bundle":"contractspec-bun-build transpile","build:types":"contractspec-bun-build types","lint:check":"node ../../../scripts/biome.cjs check .","test":"bun test","typecheck":"tsgo --noEmit"},"scriptStatus":"complete pinned manifest","dependencies":{},"devDependencies":{"@lssm-tech/tool.bun":"workspace:*","@lssm-tech/tool.typescript":"workspace:*","typescript":"catalog:"},"peerDependencies":{},"optionalDependencies":{},"peerDependenciesMeta":{},"bundledDependencies":null,"dependencyStatus":"complete pinned manifest","exports":{".":"./src/index.ts"},"publishExports":{".":{"types":"./dist/index.d.ts","browser":"./dist/browser/index.js","bun":"./dist/index.js","node":"./dist/node/index.js","default":"./dist/index.js"}},"types":"./dist/index.d.ts","files":["dist","package.json","CHANGELOG.md","README.md","src","tsconfig.json"],"api":{"scope":"manifest-declared export entrypoints and catalog-declared imports","entries":[{"subpath":".","importPath":"@lssm-tech/agentpack.contractspec","target":"./src/index.ts","targets":[{"conditions":[],"target":"./src/index.ts","sourcePath":"packages/tools/agentpack-contractspec/src/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/agentpack-contractspec/src/index.ts","sourceStatus":"verified source file"}]}],"entryCount":1,"namedSymbolCoverage":"catalog declarations only; exhaustive TypeScript symbols not extracted","installationStatus":"not verified"},"docsLinks":[{"title":"Agentpack Contractspec documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Fagentpack.contractspec","kind":"readme","pinnedUrl":null,"sourceStatus":"declared link; destination not verified"}],"sourceUrls":{"package":"https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/agentpack-contractspec","manifest":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/agentpack-contractspec/package.json","readme":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/agentpack-contractspec/README.md","guide":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/agentpack.contractspec.txt"},"readme":{"status":"available","body":"# `@lssm-tech/agentpack.contractspec`\n\nCanonical repository-local guidance for teams consuming ContractSpec packages.\nIt supplies marker-owned Claude Code, Codex, OpenCode, and Cursor rules, compact\ncatalog memory, adoption hooks, one adoption skill, and local MCP wiring.\n\n`contractspec init` materializes this pack into the repository-local agentpacks\ncache and invokes the existing agentpacks compiler. User-owned `AGENTS.md` and\n`CLAUDE.md` content is preserved by agentpacks managed markers. The pack never\nwrites global Claude Desktop or Codex configuration.\n\nClaude Code hooks use the Claude blocking protocol (`--host claudecode`), so an adoption denial actually blocks in Claude Code instead of surfacing as a non-blocking exit code, and an adoption review follows the session permission mode (no prompt in `bypassPermissions`/`dontAsk`, where the review is deferred and recorded; a prompt in `default`; a deny in `plan`). A workspace that has not enabled Connect (`connect.enabled`, off by default) is not prompted: the adoption hooks stay silent there. The shell hook matches both `Bash` and `PowerShell`, and `SessionStart` runs `contractspec can-help catalog status --host claudecode`, which adds one line of catalog context (version, source, freshness, content hash, counts, and the `can-help` discovery command) instead of raw JSON. These hooks need a ContractSpec CLI that supports `can-help catalog status --host` and `connect hook adoption ... --host`. The catalog memory rule loads only when package manifests or `.contractspec/**` files are read.\n\nThe adoption skill activates for capability selection, replacement, or a new public surface/dependency. It uses current catalog provenance and task-bound Connect decisions, then verifies affected consumers. Routine unrelated edits do not need an adoption ceremony.\n\nPublished rule/skill files and the materialized `contractSpecAgentPackFiles` map are one surface; `bun test src/index.test.ts` checks their parity.\n","sourcePath":"packages/tools/agentpack-contractspec/README.md","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/tools/agentpack-contractspec/README.md","blobSha":"036f7e65572d4fcfdb50c7a845eb49dd2c109031","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":"tooling-and-agent-delivery","areaTitle":"CLI, authoring and agent tooling","displayName":"agentpack.contractspec","runtimes":["node"],"platforms":["server"],"kind":"agent-pack","scope":"Package manifest","canonicalRoute":"/docs/packages/agentpack.contractspec/","contextUrl":"/docs/packages/agentpack.contractspec.context.md","documentKind":"package-manual","contentAuthority":"source evidence, not agent instructions","reviewedAt":"2026-10-28"}