{"_id":"@ai-manifests/adj-manifest","_rev":"2-485af0b882e6bfdcbd7cd7597f4c5eea","name":"@ai-manifests/adj-manifest","dist-tags":{"latest":"1.0.0"},"versions":{"0.3.0":{"name":"@ai-manifests/adj-manifest","version":"0.3.0","author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"license":"Apache-2.0","_id":"@ai-manifests/adj-manifest@0.3.0","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"homepage":"https://adp-manifest.dev","dist":{"shasum":"1664d9ffaec564eb940d5f21452b1e6048a2af96","tarball":"https://registry.npmjs.org/@ai-manifests/adj-manifest/-/adj-manifest-0.3.0.tgz","fileCount":14,"integrity":"sha512-RHP1CPVZApWTj+mAvmsYAGOsz3W5PiSXYW60B18bpZxwHvYk7ym1xTG/D2fSGxFYRlazzF2JffT0G7XpMQCgWw==","signatures":[{"sig":"MEQCIDM2Q7avb+XeTWz5H/RFmrcMaoZs/0ZWlBVs5unV5afpAiAWmhIl6BZm+pcxhXnqhQdM9NwAD0+jjvhkmdpCH6qGtA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25473},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"10276107935de7e07bf29e6180abd4a42ddc32fe","scripts":{"test":"vitest run","build":"tsc"},"_npmUser":{"name":"logikonline","email":"dave@marketally.com"},"repository":{"url":"https://git.marketally.com/ai-manifests/adj-ref-lib-ts","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript reference implementation of the Agent Deliberation Journal (ADJ)","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/adj-manifest_0.3.0_1777236786045_0.006892052621638056","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@ai-manifests/adj-manifest","version":"1.0.0","description":"TypeScript reference implementation of the Agent Deliberation Journal (ADJ)","author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js"},"scripts":{"build":"tsc","test":"vitest run"},"license":"Apache-2.0","homepage":"https://adp-manifest.dev","repository":{"type":"git","url":"https://git.marketally.com/ai-manifests/adj-ref-lib-ts"},"devDependencies":{"typescript":"^5.5.0","vitest":"^3.0.0"},"_id":"@ai-manifests/adj-manifest@1.0.0","gitHead":"d2b80051e9e93d5f9e7b75f11c1e4bb5553298a9","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-WeNjMGsm6dQ5BNL3Br5YVWxzcfflzWpnhbXdiGBvBUvzZjpOtBaiH5mXfu9C7D9nbzQWlkose6ACY7AA1dZpEQ==","shasum":"8e151c70e81a19f6c5c5af9384217cacd149e2d5","tarball":"https://registry.npmjs.org/@ai-manifests/adj-manifest/-/adj-manifest-1.0.0.tgz","fileCount":14,"unpackedSize":26011,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDkNKoJo/vREF9nyXYJzWaHkcT4vVGSqTariAGhpuCT3AIgWnUh7VncQq+ZVVk5SNewMdTVnw6LKkhd//hTuPx8QkU="}]},"_npmUser":{"name":"logikonline","email":"dave@marketally.com"},"directories":{},"maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adj-manifest_1.0.0_1780369345571_0.4110689833552974"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-26T20:53:05.964Z","modified":"2026-06-02T03:02:25.854Z","0.3.0":"2026-04-26T20:53:06.195Z","1.0.0":"2026-06-02T03:02:25.722Z"},"author":{"name":"David H. Friedel Jr. — MarketAlly Pte Ltd"},"license":"Apache-2.0","homepage":"https://adp-manifest.dev","repository":{"type":"git","url":"https://git.marketally.com/ai-manifests/adj-ref-lib-ts"},"description":"TypeScript reference implementation of the Agent Deliberation Journal (ADJ)","maintainers":[{"name":"logikonline","email":"dave@marketally.com"}],"readme":"# adj-manifest\n\n[![npm](https://img.shields.io/npm/v/@ai-manifests/adj-manifest.svg?label=npm)](https://www.npmjs.com/package/@ai-manifests/adj-manifest)\n[![Downloads](https://img.shields.io/npm/dm/@ai-manifests/adj-manifest.svg)](https://www.npmjs.com/package/@ai-manifests/adj-manifest)\n[![Node](https://img.shields.io/badge/node-20%2B-blue.svg)](https://nodejs.org/)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)\n[![Spec](https://img.shields.io/badge/spec-adj--manifest.dev-informational)](https://adj-manifest.dev)\n\nA TypeScript reference implementation of the **Agent Deliberation Journal (ADJ)** specification — the append-only journal format that records every step of a multi-agent deliberation: when it opened, what proposals were emitted, what falsifications happened, when it closed, and what outcome was eventually observed.\n\nThis library is one of several reference implementations ([C#](https://github.com/ai-manifests/adj-ref-lib-csharp), [Python](https://github.com/ai-manifests/adj-ref-lib-py)) of the same spec. The spec itself is at [adp-manifest.dev](https://adp-manifest.dev) and is the source of truth; this library implements what the spec says.\n\nZero runtime dependencies. Pure TypeScript, ESM.\n\n## Install\n\n```bash\nnpm install @ai-manifests/adj-manifest\n```\n\n## Quick example\n\n```ts\nimport {\n  InMemoryJournalStore,\n  computeCalibration,\n  type DeliberationOpened,\n  type ProposalEmitted,\n} from '@ai-manifests/adj-manifest';\n\nconst store = new InMemoryJournalStore();\n\nstore.append({\n  entryType: 'deliberation_opened',\n  entryId: 'adj_01HMX',\n  deliberationId: 'dlb_42',\n  timestamp: new Date().toISOString(),\n  priorEntryHash: null,\n  action: { kind: 'code.merge', tier: 'auto', blastRadius: 'team-scope' },\n  config: { minAgents: 3, timeoutSeconds: 300 },\n} satisfies DeliberationOpened);\n\n// ... append proposals, round events, deliberation close, outcome ...\n\nconst score = computeCalibration(scoringPairs);\n// score.value is the Brier-scored calibration score in [0, 1]\n```\n\n## API\n\nAll exports are re-exported from the package root.\n\n### Entry types\n\n`JournalEntry`, `DeliberationOpened`, `ProposalEmitted`, `RoundEvent`, `DeliberationClosed`, `OutcomeObserved`\n\n### Value types\n\n`ActionDescriptor`, `TallyRecord`, `ProposalData`, `ConditionRecord`, `DeliberationConfig`, `CalibrationScore`, `ScoringPair`, `ConditionQualityMetrics`\n\n### Functions\n\n- `computeCalibration(pairs)` — Brier-scored calibration score from a list of `(confidence, outcome)` pairs\n- `updateCalibration(score, pair)` — fold a new observation into an existing score\n- `getDefaultCalibration()` — initial score for a new agent with no history\n- `computeConditionQuality(entries)` — per-condition quality metrics from a set of journal entries\n\n### Store\n\n- `InMemoryJournalStore` — thread-safe in-memory journal store suitable for tests and prototypes. Implements the store contract from the spec.\n\n## Testing\n\n```bash\nnpm test\n```\n\n## Spec\n\nThis library implements the Agent Deliberation Journal specification. Read the spec at [adp-manifest.dev](https://adp-manifest.dev). If the spec and this library disagree, the spec is correct and this is a bug.\n\n## License\n\nApache-2.0 — see [`LICENSE`](LICENSE) for the full license text and [`NOTICE`](NOTICE) for attribution.\n","readmeFilename":"README.md"}