{"_id":"@act-spec/component-contract","name":"@act-spec/component-contract","dist-tags":{"rc":"0.2.0-rc.1","latest":"0.2.0-rc.1"},"versions":{"0.2.0-rc.1":{"name":"@act-spec/component-contract","version":"0.2.0-rc.1","description":"PRD-300 component-instrumentation contract framework for the ACT (Agent Content Tree) v0.1 reference implementation. Defines the canonical contract object every framework binding (PRD-301 React, PRD-302 Vue, PRD-303 Angular) desugars into, the page-level ","license":"Apache-2.0","author":{"name":"Jeremy Forsythe","email":"jeremy@act-spec.org"},"homepage":"https://act-spec.org","bugs":{"url":"https://github.com/act-spec/act/issues"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/act-spec/act.git","directory":"packages/component-contract"},"dependencies":{"@act-spec/core":"0.2.0-rc.1"},"devDependencies":{"@vitest/coverage-v8":"^2.1.9","tsx":"^4.19.2","typescript":"^5.6.3","vitest":"^2.1.4"},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","lint":"eslint src","typecheck":"tsc -p tsconfig.json --noEmit","conformance":"tsx conformance.ts"},"_id":"@act-spec/component-contract@0.2.0-rc.1","_integrity":"sha512-cYDERlxEStspD5IfLRqS+IKIGKm73YH6mfeVcs9RZmJxdc5+BvjiQoD3KwG44npcHKnZT90+xHUeEjrsxiWduQ==","_resolved":"/private/var/folders/yp/y7frhcvj70jgr6b8g633lghr0000gn/T/3d31e60bf87efc4b8558b7a20ed045ac/act-spec-component-contract-0.2.0-rc.1.tgz","_from":"file:act-spec-component-contract-0.2.0-rc.1.tgz","_nodeVersion":"22.19.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-cYDERlxEStspD5IfLRqS+IKIGKm73YH6mfeVcs9RZmJxdc5+BvjiQoD3KwG44npcHKnZT90+xHUeEjrsxiWduQ==","shasum":"82ae69c7391e0f27faa66ccc933722441b46a735","tarball":"https://registry.npmjs.org/@act-spec/component-contract/-/component-contract-0.2.0-rc.1.tgz","fileCount":60,"unpackedSize":206944,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID7+KiA/3oeaMljGnTR01qaIv9hiHR3YzGPLqWGLGRd8AiEA+QSwpK9X6kovocKJiDflPv3DI10Jq7qGL9sS/zhGnJs="}]},"_npmUser":{"name":"jdforsythe","email":"jdforsythe@gmail.com"},"directories":{},"maintainers":[{"name":"jdforsythe","email":"jdforsythe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/component-contract_0.2.0-rc.1_1777915303081_0.5794457487572682"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-04T17:21:42.948Z","0.2.0-rc.1":"2026-05-04T17:21:43.218Z","modified":"2026-05-04T17:21:43.525Z"},"maintainers":[{"name":"jdforsythe","email":"jdforsythe@gmail.com"}],"description":"PRD-300 component-instrumentation contract framework for the ACT (Agent Content Tree) v0.1 reference implementation. Defines the canonical contract object every framework binding (PRD-301 React, PRD-302 Vue, PRD-303 Angular) desugars into, the page-level ","homepage":"https://act-spec.org","repository":{"type":"git","url":"git+https://github.com/act-spec/act.git","directory":"packages/component-contract"},"author":{"name":"Jeremy Forsythe","email":"jeremy@act-spec.org"},"bugs":{"url":"https://github.com/act-spec/act/issues"},"license":"Apache-2.0","readme":"# @act-spec/component-contract\n\nComponent-instrumentation contract framework for ACT (Agent Content Tree).\nDefines the canonical contract object every framework binding (React, Vue,\nAngular) desugars into, the page-level aggregation rule, the variant\nemission protocol, and the binding capability matrix.\n\nThis is a framework package. It emits no nodes itself; it provides the\ntypes, the desugaring helpers (static-field / hook / decorator), the\npage-level aggregation walk, the variant replay loop, the placeholder +\nsecret-redaction helpers, and the contract-version gate that the leaf\nbindings implement against.\n\n## Status\n\nACT v0.1 internal hand-test candidate. Public release lands at v0.2.\n\n## Install\n\nUnpublished in v0.1. Consume via the workspace:\n\n```jsonc\n// package.json\n{ \"dependencies\": { \"@act-spec/component-contract\": \"workspace:*\" } }\n```\n\n## Usage\n\nYou typically don't import this package directly — use one of the\nframework bindings:\n\n- [`@act-spec/component-react`](../component-react)\n- [`@act-spec/component-vue`](../component-vue)\n- [`@act-spec/component-angular`](../component-angular)\n\nFor custom bindings, import the contract types directly:\n\n```ts\nimport type { ComponentContract, NodeDraft } from '@act-spec/component-contract';\n```\n\n## Links\n\n- Repository: <https://github.com/act-spec/act>\n","readmeFilename":"README.md","_rev":"1-61f84b6b812bfa7ad3553abb7d33a3dc"}