{"_id":"@aestheticfunction/dspack-gen","_rev":"12-aa9d965c8ae79de7d3f110fe76022621","name":"@aestheticfunction/dspack-gen","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@aestheticfunction/dspack-gen","version":"0.1.0","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.1.0","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"17cb56ea4e220dfd6f12f79a7102a68716ae2a5b","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.1.0.tgz","fileCount":79,"integrity":"sha512-/ba3+zo8f4L2UrxK4K0stahgcCRrTUF+t1bvpofGufnRiMwpC8z6MiB45U4MGD18MCV5GxukYgSVkdZj6UUShg==","signatures":[{"sig":"MEUCIQDLzK4lA2KUEmxHTsjJSdjw+c4+SaSg5ULBtAaCeEC8BgIgF4sDcLO6J2Za3cgJbiEL2VXqNqCq1qfkN6WYx3LX3sY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":285713},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"}},"gitHead":"9fe59932721956b70cb8e1f2678e6841db22811a","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"ryandmonk","email":"rdombrowski@gmail.com"},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.6.2","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.1.0_1783652722930_0.7607730348171855","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aestheticfunction/dspack-gen","version":"0.1.1","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.1.1","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"5ef246d599c9c5d73d79aedda49fa2ac5b6d8cc4","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.1.1.tgz","fileCount":79,"integrity":"sha512-AkPSSgXWEa4p8/2TI/Bgu1XwaePejxanNfnEB1+6YFiYGAppS/iNRgJOzbsGoiVVlAaLbbaeaaloIxeEd0LDvQ==","signatures":[{"sig":"MEUCIDZ8HHtiEBvzzHM5kj44rr7MJeFsPhpg0IILsW4V69wLAiEAxnEIuFC7dmtBgaUMrWvWZ1eY7Tx97ozAS79KyoUadPY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":288583},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"}},"gitHead":"374e1cd91f02701c0d4829ece0a79dd9b381f67b","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.1.1_1783746595454_0.9127865867136697","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@aestheticfunction/dspack-gen","version":"0.1.2","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.1.2","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"72ff8f72096688ced3008a8dba595e08d73926c9","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.1.2.tgz","fileCount":79,"integrity":"sha512-u64Khv8+/HsIDwC5ciyW2gTNFmgrRH+CjQFbFBlj1s1veZQAifwE/gQXN23QmcdPKdEwDVMJuIhEYXirfV82Mg==","signatures":[{"sig":"MEYCIQDbT4IaJg2l/JCvHWBt8JvlCY9OaDV6nliPt4F35kG0mQIhAOSyfVQQAm6rPbvK+nXymHFRC7Ci7QPJXB07aS13U2XZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":291489},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"}},"gitHead":"c5bfd6de979f811466c6ba1e1c0f978defc4236f","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.1.2_1784667253711_0.06487195451751426","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@aestheticfunction/dspack-gen","version":"0.1.3","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.1.3","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"cba53cc9090ff6a915415adf9620b72fef7cb3d6","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.1.3.tgz","fileCount":79,"integrity":"sha512-UXtAHeAQTrsvwgybEmbRd87yKs6ZZqTL6kngTTjr1q3k3EqapxbwalD6S1x+HuZnpKRUVC0zqeDynANrj4IwiA==","signatures":[{"sig":"MEYCIQCNc/gX1Y5Q8DPcNykveRVIb6QpjZndAO5VO8dGgi1aRQIhAOj/bpQksgNqORqSpgo4sqbsRCIvAoNJNd9IZH86cdfq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":293774},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"}},"gitHead":"f3a1dcb12ddc1e86ac8ec4302e9ab9e09cc2615b","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","test:pack":"bash scripts/pack-test.sh","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1 || ^0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.1.3_1785785775999_0.08438309817854783","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@aestheticfunction/dspack-gen","version":"0.2.0","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.2.0","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"b815135d73daf76e273c301210a96ca675ca10e0","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.2.0.tgz","fileCount":79,"integrity":"sha512-+oaMqk/pRH0FkK8On7vDKRBQvAw+qROujaP9yRduvm9xbElTk7KAkgNYhYqbLTnY16+rbqAk22Zud+fgsJ4paQ==","signatures":[{"sig":"MEYCIQCecmqNzMVMpzvo6wgjZDueAhZr80spd0PG5pR+4nWQCQIhALg/4ZzJGqcf6vivdpnNqoBuHuG1ovblM/J5ixyDahm4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":297329},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"}},"gitHead":"cec3f3eaa5bf4026c24d91ce3fad6f13ab7ab282","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","test:pack":"bash scripts/pack-test.sh","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1 || ^0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.2.0_1785874341547_0.3323759744061634","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@aestheticfunction/dspack-gen","version":"0.2.1","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.2.1","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"8190fd925c84bc0836b989543740042665332b1b","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.2.1.tgz","fileCount":79,"integrity":"sha512-cUiQMHOi0kIyhAtzF9Tn2pfYMETyHarIL1PPlghFk8h6qLQ5WzTd2GoPyn7GcrMgWyEGuJZ+VRqiRBNoKu0gZg==","signatures":[{"sig":"MEYCIQDR4to8HzgFqAn5pIgny4Kl0++3ladHNmSK1hQCuUJiCwIhAIfOJyWdJ2/M3IYNmyvepJx/er6qUBySQVUhoZseBO7d","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":297339},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"}},"gitHead":"dc11982143c41e34dc9e0a7c6d3cda0618d4858b","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","test:pack":"bash scripts/pack-test.sh","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.17.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1 || ^0.4.0 || ^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.2.1_1786066735348_0.013436700289683579","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@aestheticfunction/dspack-gen","version":"0.2.2","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.2.2","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"6f2135d9650805005b9766bdec9a754d5cb36869","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.2.2.tgz","fileCount":79,"integrity":"sha512-R6sBYQLiw5WnnUOMwytIPrrdWBtwRGiN6VWIi3rCWdezTLEMcrk81x3TD80Q3MYHN2We1OpyrDVPY/IC7TVE/Q==","signatures":[{"sig":"MEUCIQCbCuE/0DIcmljWjfEo4TV2WobNoELiNA0xT3lvnB0FFgIgZ6TXOS1Jt5Hf9xguhQqAUlNc6szCbCtfavuSeiVlPMY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":299858},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"}},"gitHead":"c5a7acfee4bb24bf1f47f3b040a66e421355c4a9","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","test:pack":"bash scripts/pack-test.sh","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1 || ^0.4.0 || ^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.2.2_1786120065898_0.12779836926411536","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aestheticfunction/dspack-gen","version":"0.3.0","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.3.0","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"48b4975813410db2f1de1befc194f6e872e681d1","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.3.0.tgz","fileCount":79,"integrity":"sha512-l+bnXbHmKtVLsZI5K9FAlWN8z5Tdj8yK0f0/QaJ+7ftveUnSnLIa1CC6J4x/2DszHELMLbf6E+AFJDRGBoWGqQ==","signatures":[{"sig":"MEUCIQDHhWp8JlS6Qsilw4TmI9YQDzaVSvwtOk1PnMYQ6mmZ6AIgClNrhO4ZgW7R9RPu5remGEpydxqROOzKUU+rpLtRMj0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":307915},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"}},"gitHead":"916945616c0ba6340c37feb994e415880fa52b85","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","test:pack":"bash scripts/pack-test.sh","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1 || ^0.4.0 || ^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.3.0_1786137429139_0.6195535223845516","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@aestheticfunction/dspack-gen","version":"0.3.1","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.3.1","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"317e1a74f86f33b7135d0a304fa1f2502b88df4b","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.3.1.tgz","fileCount":79,"integrity":"sha512-0RGGoA85P9U5eKJuiZl0yxJujIFYgFJxptRk80NPU/zsrd57LJNBAFljB87kPEyfAyhogM4sZhGHIcWLcuTVKA==","signatures":[{"sig":"MEYCIQDlr4T+lCy4vCpvhCxitNj4wgVIqMTCBRvescT6LeLP6gIhAMp2fsorPk8pFn+da2zPieGwWDMG7q1awypubSXp2/Ld","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":307925},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"}},"gitHead":"ba088a6604730a31115383d23758113fae58dcb9","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","test:pack":"bash scripts/pack-test.sh","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1 || ^0.4.0 || ^0.5.0 || ^0.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.3.1_1786206215891_0.6259901719658691","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@aestheticfunction/dspack-gen","version":"0.3.2","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.3.2","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"23cf157003af4f30875d63e2c22afcf736cff49a","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.3.2.tgz","fileCount":82,"integrity":"sha512-o4HfFl2sztT7+Mb7S1HAR1JaWhuxtM+gW61bf9+bDktbQeMqM4rpokvCTxPzm7cwlc0AKVZbcj1R5WrzWFKb5A==","signatures":[{"sig":"MEUCIHaWBjX6QKG9CiJskXLwBwbG9fqjL0FFs4qUp7REUPdxAiEAjuPssYoE0Hom/zOZaXY3tU9BoSYkFJwlGHjqS/mFjAE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":311260},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./browser":{"types":"./dist/browser.d.ts","import":"./dist/browser.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"}},"gitHead":"cbc9e1c2733e13b64dff4f0c643e8d9530425742","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","test:pack":"bash scripts/pack-test.sh","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1 || ^0.4.0 || ^0.5.0 || ^0.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.3.2_1786244685038_0.1284334162039824","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@aestheticfunction/dspack-gen","version":"0.4.0","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"license":"Apache-2.0","_id":"@aestheticfunction/dspack-gen@0.4.0","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"bin":{"dspack-gen":"dist/cli.js"},"dist":{"shasum":"f2bdc09a87293c541f714d67de7759e784413a10","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.4.0.tgz","fileCount":85,"integrity":"sha512-DRruVG/m+Mu80t54Ml4qC9HqV72+Y7Y25mz8qKhQOJ+H4Xo3KQ4Up6Y3PQk47JGxwVK0PvHQw+h8/lDDsdg5Mw==","signatures":[{"sig":"MEYCIQDsqXq57c6vCUuu95bZ71i3xLTzk8MF5gLl47CRewcgbQIhAJjYHsf6C4DDVStuz7c7cSu2sH8Mp3Ve+YTlx4qkzA0x","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":329738},"type":"module","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./browser":{"types":"./dist/browser.d.ts","import":"./dist/browser.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"}},"gitHead":"44d586f884a5eeb1c7c3a4e59907e4373ee7fe52","scripts":{"eval":"tsx src/eval/run.ts","test":"vitest run","build":"tsc -p tsconfig.json","context":"tsx src/cli.ts context","prepare":"npm run build","demo:e2e":"playwright test","test:pack":"bash scripts/pack-test.sh","check:sync":"node scripts/check-sync.mjs","eval:assert":"tsx src/eval/assert.ts","smoke:ollama":"tsx scripts/smoke-ollama.ts","prepublishOnly":"npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"repository":{"url":"git+https://github.com/aestheticfunction/dspack-gen.git","type":"git"},"_npmVersion":"11.16.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ajv":"^8.17.1","undici":"^6.27.0","ajv-formats":"^3.0.1","@anthropic-ai/sdk":"^0.109.1","@aestheticfunction/dspack-emit":"^0.3.1 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","vitest":"^2.1.8","typescript":"^5.7.2","@types/node":"^22.10.2","@playwright/test":"^1.61.1"},"_npmOperationalInternal":{"tmp":"tmp/dspack-gen_0.4.0_1786400226939_0.41292972986785226","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@aestheticfunction/dspack-gen","version":"0.5.0","description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","type":"module","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/aestheticfunction/dspack-gen.git"},"homepage":"https://github.com/aestheticfunction/dspack-gen#readme","bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"publishConfig":{"access":"public"},"bin":{"dspack-gen":"dist/cli.js"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"},"./adapter-types":{"types":"./dist/adapters/types.d.ts","import":"./dist/adapters/types.js"},"./browser":{"types":"./dist/browser.d.ts","import":"./dist/browser.js"}},"scripts":{"build":"tsc -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm run test","test":"vitest run","context":"tsx src/cli.ts context","smoke:ollama":"tsx scripts/smoke-ollama.ts","demo:e2e":"playwright test","eval":"tsx src/eval/run.ts","eval:assert":"tsx src/eval/assert.ts","check:sync":"node scripts/check-sync.mjs","test:pack":"bash scripts/pack-test.sh"},"dependencies":{"@aestheticfunction/dspack-emit":"^0.7.0","@anthropic-ai/sdk":"^0.109.1","ajv":"^8.17.1","ajv-formats":"^3.0.1","undici":"^6.27.0"},"devDependencies":{"@playwright/test":"^1.61.1","@types/node":"^22.10.2","tsx":"^4.19.2","typescript":"^5.7.2","vitest":"^2.1.8"},"engines":{"node":">=20.0.0"},"gitHead":"5203569cb8d066ad545307500c2ae3f2adaa0239","_id":"@aestheticfunction/dspack-gen@0.5.0","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-mqqs4xLkZIJw9j06OskhNDgw1rXDXqJwCxgYmvi1/aleSlWRmhsEeNRZLZVgsLPB2Zd33yv68xmS5AyKy3jdrA==","shasum":"d33da25e7fef272490dc311a28e7fde590f853e4","tarball":"https://registry.npmjs.org/@aestheticfunction/dspack-gen/-/dspack-gen-0.5.0.tgz","fileCount":88,"unpackedSize":341611,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aestheticfunction%2fdspack-gen@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDcCRHlPBxbKHxIMFN5YRpKi3Wqe8n88Y4L6Jqy2yLBhAIgcgcYGClvb8AtEV93nAczu5EotFAobHkPre0A+DxuJ9Q="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a0f2f38d-aa59-4f4d-85db-5adaa7f3658e"}},"directories":{},"maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dspack-gen_0.5.0_1786441378505_0.39222222321232514"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-10T03:05:22.797Z","modified":"2026-08-11T09:42:59.020Z","0.1.0":"2026-07-10T03:05:23.064Z","0.1.1":"2026-07-11T05:09:55.615Z","0.1.2":"2026-07-21T20:54:13.881Z","0.1.3":"2026-08-03T19:36:16.145Z","0.2.0":"2026-08-04T20:12:21.710Z","0.2.1":"2026-08-07T01:38:55.501Z","0.2.2":"2026-08-07T16:27:46.048Z","0.3.0":"2026-08-07T21:17:09.275Z","0.3.1":"2026-08-08T16:23:36.068Z","0.3.2":"2026-08-09T03:04:45.171Z","0.4.0":"2026-08-10T22:17:07.113Z","0.5.0":"2026-08-11T09:42:58.684Z"},"bugs":{"url":"https://github.com/aestheticfunction/dspack-gen/issues"},"license":"Apache-2.0","homepage":"https://github.com/aestheticfunction/dspack-gen#readme","keywords":["dspack","design-systems","generative-ui","governance","a2ui","llm"],"repository":{"type":"git","url":"git+https://github.com/aestheticfunction/dspack-gen.git"},"description":"Generation + governance pipeline for dspack contracts: prompt/context compiler, surface gates S1–S3, bounded repair, protocol emission, audit reports.","maintainers":[{"name":"ryandmonk","email":"rdombrowski@gmail.com"}],"readme":"# dspack-gen\n\n**Generation + governance pipeline for [dspack](https://github.com/aestheticfunction/dspack)\ncontracts.** Compiles a dspack v0.3/v0.4 contract into generation context, generates dspack\nsurfaces via schema-constrained LLMs (Ollama local or hosted — interchangeable adapters),\nlints them deterministically against the contract's governance rules, repairs bounded, emits\nto protocols (A2UI and json-render via\n[dspack-emit](https://github.com/aestheticfunction/dspack-emit)), and\nproduces a versioned audit report.\n\n> *A2UI defines what can render. dspack defines what is correct.*\n\n> Part of the [dspack ecosystem](https://github.com/aestheticfunction) — the organization profile has the full map of how the repositories fit together.\n>\n> **Kind:** library + CLI (npm `@aestheticfunction/dspack-gen`, bin `dspack-gen`) · **Audience:** engineers running or evaluating governed generation · **Neighbors:** consumes [dspack](https://github.com/aestheticfunction/dspack) contracts and [dspack-emit](https://github.com/aestheticfunction/dspack-emit); its core is vendored by [ds-mcp](https://github.com/aestheticfunction/ds-mcp); driven end to end by [dspack-studio](https://github.com/aestheticfunction/dspack-studio) ([hosted replay](https://studio.aesthetic-function.com))\n>\n> **Bringing your own contract?** Every command takes `--dspack <your-file>` directly — no fixture registration. The journey from an existing design system to a contract these commands accept is the [adoption guide](https://github.com/aestheticfunction/dspack/blob/main/ADOPTING.md).\n\n**Status: Milestones 1 through 3 complete.** Tags\n[m1](https://github.com/aestheticfunction/dspack-gen/releases/tag/m1),\n[m2](https://github.com/aestheticfunction/dspack-gen/releases/tag/m2), and\n[m3](https://github.com/aestheticfunction/dspack-gen/releases/tag/m3); write-ups in\n[docs/m1-report.md](docs/m1-report.md), [docs/m2-report.md](docs/m2-report.md), and\n[docs/m3-report.md](docs/m3-report.md), findings in\n[docs/findings.md](docs/findings.md). M4 is trigger-gated on A2UI v1.0 leaving\nCandidate status.\nThe emitter is consumed from npm as `@aestheticfunction/dspack-emit`\n(renamed from `@aestheticfunction/dspack-to-a2ui` with the ADR-D2 repo\nrename; the old package is deprecated with a pointer).\n\n## The three layers (never collapse them)\n\n1. **Schema** answers *\"can this object exist\"* — the generation schema encodes vocabulary and\n   shape only, never governance.\n2. **Linter** answers *\"is this object correct\"* — deterministic typed rules (gate S3), each\n   with a rationale.\n3. **Renderer** answers *\"can this render\"* — protocol emitters compile the surface; the\n   target's gates (A1–A3 for A2UI) validate the result.\n\n## Gates\n\n| Gate | Check | Where |\n|---|---|---|\n| S1 | generic dspack surface schema | here (pre-emission) |\n| S2 | contract vocabulary (components, sub-components, props, enum values, slots) **and sub-component containment** — a sub-declared id may appear only inside its declaring compound (spec v0.4 §5.1); containment errors are repairable in-loop | here (pre-emission) |\n| S3 | governance rules (typed, deterministic, rationale-bearing), including `required-props`, category-based `forbidden-composition`, and `requiredCategories` (spec v0.4 §4.3) | here (pre-emission) |\n| A1–A3 | schema-compile / catalog-shape / instance validation | dspack-emit (per emitted target) |\n\nS1/S2 are checks on **any** produced surface; constrained decoding may implement S2 during\ngeneration but the gates are always reported independently — the S0 spike found Ollama's mlx\nengine silently ignoring `format`, which is exactly why.\n\n## CLI\n\n```bash\nnpm run context -- --dspack fixtures/shadcn.v0_4.dspack.json --intent destructive-action\n# prints { system, schema, fewshot } — the compiled generation context\n```\n\n`lint` (S1–S3), `run` (full pipeline), and `serve` are the other shipped CLI\ncommands — see [Library](#library) below for the full surface.\n\n### Exit codes (whole CLI surface)\n\n| Code | Meaning |\n|---|---|\n| 0 | clean |\n| 1 | internal / usage error |\n| 2 | governance failure (any S-gate error) |\n| 3 | emitter-gate failure (A1–A3 or target equivalent) |\n| 4 | unknown rule type (fail-loud; never silently skipped) |\n\n(Distinct from dspack-emit's exit codes, where `3` = strict-coverage failure and `4` =\nsurface-emission failure.)\n\n## Eval harness\n\n```bash\nnpm run eval -- --adapter fake --matrix eval/matrix.fake.json   # deterministic; the CI gate\nnpm run eval -- --adapter live --matrix eval/matrix.json        # documented live run; never CI\nnpm run eval -- --adapter live --matrix eval/matrix.json --out out/eval/<dir> --resume   # resume an interrupted run\nnpm run eval:assert -- --results out/eval/fake/results.json --model <ref> --min-repair-success 0.9\n```\n\nEvery cell run goes through the same `runPipeline` as the CLI and demo; the\nharness only iterates and aggregates. **Model ids live in `eval/matrix.json`\n(config), never in code.** Per cell (model × prompt × repair template,\n`runsPerCell` runs): schema-validity, first-attempt-violation, repair-success\n(null over zero violations), end-to-end pass rates, and the count of S3-clean\nsurfaces refused by emitter gates (the ADR-D1 signal; `p10`–`p12` probe it\ndeliberately). Prompts span repair shapes — substitution, addition, deletion,\nrestructuring — and every prompt crosses the two ADR-7 repair templates\n(`standard` vs `permit-restructuring`, a one-instruction-line delta recorded\nin each audit report). One run can never kill the matrix: adapter transport failures are typed\n(`failed-adapter`, with a report) and anything that still escapes a run is\ncontained as an explicit `error` run — visible in the distribution with a\nretained `.error.json`, excluded from the model-behavior rate denominators\n(`errorRuns` reports the count). `--resume` skips already-retained reports\nand retries error records. Every run's audit report is retained under\n`out/eval/…/reports/`; `results.json` is the artifact, `report.md` the\nderived view; findings go to [docs/findings.md](docs/findings.md) at measured\nstrength. The hosted-model `eval:assert` threshold is the only hard eval gate\nin M2; local models are report-only.\n\n## Library\n\n```bash\nnpm install @aestheticfunction/dspack-gen\n```\n\nESM only, Node >= 20. The root entry is the full pipeline:\n\n```ts\nimport { runPipeline, adapterFor } from \"@aestheticfunction/dspack-gen\";\nimport { readFileSync } from \"node:fs\";\n\nconst contract = JSON.parse(readFileSync(\"astryx.dspack.json\", \"utf8\"));\nconst result = await runPipeline({\n  contract,\n  intent: \"destructive-action\",\n  prompt: \"a screen to delete a project\",\n  adapter: adapterFor(\"ollama:gemma3\"),\n});\nconsole.log(result.report.outcome, result.exitCode);\n```\n\n`@aestheticfunction/dspack-gen/core` is the **zero-network, emitter-free** subpath (compiler +\nlinter) that [ds-mcp](https://github.com/aestheticfunction/ds-mcp) consumes without breaking\nits read-only/no-network security posture. The boundary is enforced by\n`src/core/core-boundary.test.ts`:\n\n```ts\nimport { compileContext, lintSurface } from \"@aestheticfunction/dspack-gen/core\";\n```\n\n`@aestheticfunction/dspack-gen/browser` is the **browser-safe** subpath: the\nsame `runPipeline` plus `ScriptedAdapter`, without the Node-only adapters and\nemitter plumbing, so a page can run the governed pipeline itself and bring its\nown adapter for the model turn (dspack-studio's Composer does exactly this —\ngates and emission in the browser, only the proposal goes out):\n\n```ts\nimport { runPipeline, ScriptedAdapter } from \"@aestheticfunction/dspack-gen/browser\";\n```\n\nOne caveat the host must handle: the provenance hash reaches for `node:crypto`,\nso bundlers should alias it to a synchronous SHA-256 shim.\n\n`@aestheticfunction/dspack-gen/adapter-types` exposes the adapter interface\nalone (`GenerationAdapter`, `GenerateRequest`, `GenerateResult`,\n`AdapterOutputError`, `parseJsonOutput`) for hosts implementing their own\nprovider — the seam dspack-studio's agent uses for its OpenAI-compatible\nadapter.\n\nThe CLI installs as `dspack-gen` (same commands as the repo scripts): `context`,\n`lint`, `run`, `serve`. Outside this repository, always pass `--dspack <contract>`\n(the `serve` default path points at a repo fixture).\n\n## Development\n\n```bash\nnpm ci\nnpm test          # vitest: golden context, generation-schema behavior, core boundary\nnpm run check:sync  # contract-copy drift check vs the dspack repo (CI-run; --write re-syncs)\n```\n\n`fixtures/shadcn.v0_4.dspack.json` is a byte copy of the spec repo's\n`examples/shadcn-ui.dspack.json`; CI fails loudly if they diverge\n(dspack-gen#7). After `--write`, regenerate the derived goldens (context\ngolden, F-fixture expected outputs, eval fake golden) and commit the sync +\nregeneration together.\n\n## License\n\nApache-2.0. Copyright 2026 Aesthetic Function, LLC.\n","readmeFilename":"README.md"}