{"_id":"@agentproto/transcript-fixtures","_rev":"3-14b195a37e4390a1e7b8bf954e52f086","name":"@agentproto/transcript-fixtures","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@agentproto/transcript-fixtures","version":"0.2.0","keywords":["agentproto","transcript","fixtures","canonical","jsonl","anti-drift","open-standard","agentic"],"license":"Apache-2.0","_id":"@agentproto/transcript-fixtures@0.2.0","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://github.com/agentproto/ts#readme","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"33b0ecbfe8101dd73a82acf22b5ed5112b8dba0b","tarball":"https://registry.npmjs.org/@agentproto/transcript-fixtures/-/transcript-fixtures-0.2.0.tgz","fileCount":7,"integrity":"sha512-FhYF78LYxvatrXaAXGGmF8qGkCbj3cu9RE/fRZOFUAYfKkG1xXicmLoidcwlgIqUhkLxz4dLtvlEA/UTGG8DMQ==","signatures":[{"sig":"MEUCIC+om/QQ6gyCW212ZvU7lk0q6zpHq5xAEx8kB+oZpANlAiEAljUDt+gZh0pBuBMHDyVfaCqHKo770MYxSNip6ltPFS4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2ftranscript-fixtures@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47033},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-transcript-fixtures-0.2.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit","generate:fixtures":"node scripts/write-jsonl.mjs"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/4bc7519a229b28941bb1d6fb1d76979a/agentproto-transcript-fixtures-0.2.0.tgz","_integrity":"sha512-FhYF78LYxvatrXaAXGGmF8qGkCbj3cu9RE/fRZOFUAYfKkG1xXicmLoidcwlgIqUhkLxz4dLtvlEA/UTGG8DMQ==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/transcript-fixtures"},"_npmVersion":"10.9.8","description":"@agentproto/transcript-fixtures — canonical RAW daemon-transcript fixtures. The single source of truth for the `{seq, ts, kind, ...}` records produced by the daemon's transcript writer, consumed as anti-drift conformity data by the `packages/runtime` test","directories":{},"_nodeVersion":"22.23.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^25.6.2","@agentproto/tooling":"0.1.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/transcript-fixtures_0.2.0_1788280199492_0.6973727935727871","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@agentproto/transcript-fixtures","version":"0.2.1","keywords":["agentproto","transcript","fixtures","canonical","jsonl","anti-drift","open-standard","agentic"],"license":"Apache-2.0","_id":"@agentproto/transcript-fixtures@0.2.1","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://github.com/agentproto/ts#readme","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"b95bd1eba07a84a2130d172f2ac24b1901a5ae07","tarball":"https://registry.npmjs.org/@agentproto/transcript-fixtures/-/transcript-fixtures-0.2.1.tgz","fileCount":7,"integrity":"sha512-90hk6wApbikeRnpHrWRk7l0j5gODnzKgq39+wg4IPxVfhsvNz5K2xXdThVcfE7unW2o2wAIWH9kn2xUQy/kplA==","signatures":[{"sig":"MEUCIBuvLU8uM+rk7XKhsL47nSa67Cz+6wmUqUHm7sSvVDGwAiEA4zkE7iPu3lnCUpagoJm8+dT9X98oTxY3JCmbBz1cIws=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2ftranscript-fixtures@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47003},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-transcript-fixtures-0.2.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit","generate:fixtures":"node scripts/write-jsonl.mjs"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/5b96ff954d2ef3fe63b5cd20c1547a70/agentproto-transcript-fixtures-0.2.1.tgz","_integrity":"sha512-90hk6wApbikeRnpHrWRk7l0j5gODnzKgq39+wg4IPxVfhsvNz5K2xXdThVcfE7unW2o2wAIWH9kn2xUQy/kplA==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/transcript-fixtures"},"_npmVersion":"10.9.8","description":"@agentproto/transcript-fixtures — canonical RAW daemon-transcript fixtures. The single source of truth for the `{seq, ts, kind, ...}` records produced by the daemon's transcript writer, consumed as anti-drift conformity data by the `packages/runtime` test","directories":{},"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.7","typescript":"^5.9.3","@types/node":"^25.9.5","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/transcript-fixtures_0.2.1_1788960721838_0.08523752176416655","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"@agentproto/transcript-fixtures@0.3.0","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"1c657e713e69001bb81bedb6d86877255d037680","tarball":"https://registry.npmjs.org/@agentproto/transcript-fixtures/-/transcript-fixtures-0.3.0.tgz","fileCount":7,"integrity":"sha512-jjKuM3lZG2g5Jxr8i8jVxtzZGH4TmBFKFHvPQXcuoht/S4LWjb5YzFSp43EHaWcSAbtzV9OhXunD2L8ISV3Csg==","signatures":[{"sig":"MEUCIGXqfe1efpSdRBIW5BbesIvFSxpoRxUfMpTbCBBDJKTYAiEA87akORqFq1yWGqxxOWFT5S4UbLmNsj3ZlJb0TEnZhU0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDYmysqiv0rEDy2KCAElQwC0nXRkzsFnvW+FfUwDoGAtQIhAK8y/2lmaSJaH8dhkoX9RzOHJZ87LMm4ZoFCr2R5hAyq"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2ftranscript-fixtures@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":55260},"main":"dist/index.mjs","name":"@agentproto/transcript-fixtures","type":"module","_from":"file:agentproto-transcript-fixtures-0.3.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"license":"Apache-2.0","scripts":{"dev":"tsup --watch","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit","generate:fixtures":"node scripts/write-jsonl.mjs"},"version":"0.3.0","_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"homepage":"https://github.com/agentproto/ts#readme","keywords":["agentproto","transcript","fixtures","canonical","jsonl","anti-drift","open-standard","agentic"],"_resolved":"/tmp/0813908801ae12f1be878f535785b400/agentproto-transcript-fixtures-0.3.0.tgz","_integrity":"sha512-jjKuM3lZG2g5Jxr8i8jVxtzZGH4TmBFKFHvPQXcuoht/S4LWjb5YzFSp43EHaWcSAbtzV9OhXunD2L8ISV3Csg==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/transcript-fixtures"},"_npmVersion":"10.9.8","description":"@agentproto/transcript-fixtures — canonical RAW daemon-transcript fixtures. The single source of truth for the `{seq, ts, kind, ...}` records produced by the daemon's transcript writer, consumed as anti-drift conformity data by the `packages/runtime` test","directories":{},"maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.7","typescript":"^5.9.3","@types/node":"^25.9.5","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/transcript-fixtures_0.3.0_1790477191816_0.74098572746451"}}},"time":{"created":"2026-09-01T16:29:59.332Z","modified":"2026-09-27T02:46:32.281Z","0.2.0":"2026-09-01T16:29:59.629Z","0.2.1":"2026-09-09T13:32:01.968Z","0.3.0":"2026-09-27T02:46:31.920Z"},"bugs":{"url":"https://github.com/agentproto/ts/issues"},"license":"Apache-2.0","homepage":"https://github.com/agentproto/ts#readme","keywords":["agentproto","transcript","fixtures","canonical","jsonl","anti-drift","open-standard","agentic"],"repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/transcript-fixtures"},"description":"@agentproto/transcript-fixtures — canonical RAW daemon-transcript fixtures. The single source of truth for the `{seq, ts, kind, ...}` records produced by the daemon's transcript writer, consumed as anti-drift conformity data by the `packages/runtime` test","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"readme":"# @agentproto/transcript-fixtures\n\nCanonical **RAW** daemon-transcript fixtures — typed data, zero runtime\ndependencies. This package is the *producer* (source of truth) for the\n`{seq, ts, kind, ...}` records the agentproto daemon's transcript writer\nemits, so that two consumers in two different repos can run conformity\ntests against exactly the same bytes.\n\n## What this is for — the anti-drift contract\n\nThe transcript record format lives in `packages/runtime/src/transcript-writer.ts`\n(this repo). Any change there — renaming a field, adding a kind, changing an\noptionality — that breaks this file breaks the conformity suites of **both**\nconsumers below. That is the point.\n\n- **Consumer B (this repo):** the future `/sessions/:id/chat` route's test\n  suite in `packages/runtime`.\n- **Consumer A (agentik-studio repo):** `packages/react-agentproto`'s\n  `normalize.ts`, pulled in as `workspace:*`.\n\n> **Any modification to a kind or a field in `transcript-writer.ts` MUST be\n> reflected here.** A field rename that breaks this file breaks both suites.\n> When you change the writer, regenerate the fixture and update the types.\n\n## Format (RAW, not normalized)\n\nThese are the RAW records the daemon writes to events.jsonl — **not** the\nclient-side normalized format that `normalize.ts` produces. Each record has\n`{seq, ts, kind}` plus kind-specific fields.\n\n| `kind` | Fields |\n| --- | --- |\n| `user-prompt` | `sessionId`, `text`, `source?` |\n| `thought` | `sessionId`, `text`, `partial?` |\n| `text-delta` | `sessionId`, `text`, `partial?` |\n| `tool-call` | `sessionId`, `toolCallId`, `toolName`, `arguments`, `isUpdate?` |\n| `tool-result` | `sessionId`, `toolCallId`, `result` (RAW, unwrapped), `isError?` |\n| `tool-call-record` | `sessionId`, `tool`, `command?`, `args?`, `isError`, `durationMs?`, `createdPrUrl?`, `createdPrNumber?` |\n| `permission-resolved` | `sessionId`, `toolCallId`, `decision`, `optionId?` |\n| `turn-end` | `sessionId`, `reason?` |\n| `notice` | `sessionId`, `text` |\n\n> **`notice` is the \"unknown kind\" exercise.** Agentik-studio's\n> `normalize.ts` does not handle it explicitly — it falls through to the\n> client's `\"other\"` fallback. This deliberately exercises the \"unknown kind\"\n> behavior of both consumers' test suites.\n\n## Files\n\n- `src/records.ts` — the TS types for each RAW record plus the canonical\n  fixture as a typed array (`CANONICAL_SESSION_RECORDS`). **The single source\n  of truth.**\n- `fixtures/canonical-session.jsonl` — the same fixture as one JSON object per\n  line, for anyone seeding an events.jsonl file or replaying a stream. It is\n  *generated* from the array (never authored by hand) and verified against it\n  by the test suite, so the two can never diverge.\n- `src/index.ts` — exports the types, `CANONICAL_SESSION_RECORDS`, and\n  `CANONICAL_SESSION_JSONL` (the JSONL string pre-assembled for direct replay).\n\n## Usage\n\n```ts\nimport {\n  CANONICAL_SESSION_RECORDS,\n  CANONICAL_SESSION_JSONL,\n} from \"@agentproto/transcript-fixtures\"\n\n// typed array (RAW records)\nfor (const rec of CANONICAL_SESSION_RECORDS) {\n  /* rec.kind is narrowed across the union */\n}\n\n// ready-to-replay JSONL string (one JSON object per line)\nconst stream: string = CANONICAL_SESSION_JSONL\n```\n\n## Regenerating the JSONL file\n\n```sh\npnpm --filter @agentproto/transcript-fixtures build\npnpm --filter @agentproto/transcript-fixtures generate:fixtures\n```\n\nThe `generate:fixtures` script loads the built `dist` and writes\n`fixtures/canonical-session.jsonl` from the array. If you edit the array and\ndon't regenerate, the test suite fails — that is the sync guarantee.\n\n## License\n\nApache-2.0 — see [LICENSE](./LICENSE).","readmeFilename":"README.md"}