{"_id":"@actionmanifest/adapters","name":"@actionmanifest/adapters","dist-tags":{"next":"0.9.0-rc.0","latest":"0.9.0-rc.0"},"versions":{"0.9.0-rc.0":{"name":"@actionmanifest/adapters","version":"0.9.0-rc.0","description":"Document adapters: Plain Text (working) and Docling (interface + fixtures).","license":"Apache-2.0","type":"module","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"engines":{"node":">=20"},"repository":{"type":"git","url":"git+https://github.com/hello-ai-company/ActionManifest.git","directory":"packages/adapters"},"homepage":"https://github.com/hello-ai-company/ActionManifest/tree/main/packages/adapters#readme","bugs":{"url":"https://github.com/hello-ai-company/ActionManifest/issues"},"publishConfig":{"access":"public"},"dependencies":{"@actionmanifest/core":"0.9.0-rc.0"},"scripts":{"build":"tsc -b"},"_id":"@actionmanifest/adapters@0.9.0-rc.0","_integrity":"sha512-fwo2SLbPsj0O8+/+Ix7IseGF4vM6qD/VpW31HbwXJ57EWQABq5cAJCOVN+qAJLlrLojs569SyVrafsya4nGXuw==","_resolved":"/tmp/actionmanifest-canonical-publish.06nY0g/tarballs/actionmanifest-adapters-0.9.0-rc.0.tgz","_from":"file:/tmp/actionmanifest-canonical-publish.06nY0g/tarballs/actionmanifest-adapters-0.9.0-rc.0.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-fwo2SLbPsj0O8+/+Ix7IseGF4vM6qD/VpW31HbwXJ57EWQABq5cAJCOVN+qAJLlrLojs569SyVrafsya4nGXuw==","shasum":"7d71fcc82d323036fae581c8f4e9245fab774e48","tarball":"https://registry.npmjs.org/@actionmanifest/adapters/-/adapters-0.9.0-rc.0.tgz","fileCount":20,"unpackedSize":59077,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDTZyPMaxYPf/53R8phQ3NnQpdD6HQSs9EjA6P62Cnv7QIgfVkTnN5QBb+6KgX+tWQeIA8lN3qzpj4NlwsKiqfg2aw="}]},"_npmUser":{"name":"yuki-s-code","email":"yukitokinako3@gmail.com"},"directories":{},"maintainers":[{"name":"yuki-s-code","email":"yukitokinako3@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapters_0.9.0-rc.0_1789124629675_0.5452438956618484"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-11T11:03:49.449Z","0.9.0-rc.0":"2026-09-11T11:03:49.811Z","modified":"2026-09-11T11:03:50.103Z"},"maintainers":[{"name":"yuki-s-code","email":"yukitokinako3@gmail.com"}],"description":"Document adapters: Plain Text (working) and Docling (interface + fixtures).","homepage":"https://github.com/hello-ai-company/ActionManifest/tree/main/packages/adapters#readme","repository":{"type":"git","url":"git+https://github.com/hello-ai-company/ActionManifest.git","directory":"packages/adapters"},"bugs":{"url":"https://github.com/hello-ai-company/ActionManifest/issues"},"license":"Apache-2.0","readme":"# @actionmanifest/adapters\n\nDocument adapters: **parse and normalize ONLY — never infer Actions.**\nShips the Plain Text reference adapter (working) and the Docling JSON\nreference adapter (interface + fixtures). Third-party parsers implement the\ngeneric `DocumentAdapter<I>` contract from their own packages.\n\n> **Release status:** release-candidate preparation — not yet published to\n> npm. First release: `0.9.0-rc.1`.\n\n```bash\nnpm install @actionmanifest/adapters   # once published\n```\n\nRequires Node.js >= 20.\n\n## Usage\n\n```ts\nimport { PlainTextAdapter, DoclingAdapter, resolveAdapter } from \"@actionmanifest/adapters\";\n\nconst doc = await new PlainTextAdapter().toCanonical({\n  kind: \"text\",\n  id: \"notice-1\",\n  text,\n});\n\n// Docling (Python) runs upstream — pass export_to_dict() JSON:\nconst doclingDoc = await new DoclingAdapter().toCanonical({\n  kind: \"docling-json\",\n  sourceId: \"notice-1\",\n  payload: doclingJson,\n});\n```\n\n## Writing your own adapter\n\nImplement `DocumentAdapter<YourInput>` in YOUR package; do not extend the\ncentral `AdapterInput` union. Read\n[docs/ADAPTER-AUTHOR-GUIDE.md](../../docs/ADAPTER-AUTHOR-GUIDE.md) — the\nsafety rules (stable source identity, deterministic hash, unknown stays\nunknown, fail closed) are not negotiable.\n\n## Links\n\n- Repository: <https://github.com/hello-ai-company/ActionManifest> (this\n  package: `packages/adapters`)\n- Xberg reference adapter: `@actionmanifest/adapter-xberg` (optional,\n  Node >= 22)\n\nApache-2.0.\n","readmeFilename":"README.md","_rev":"1-d6a843359a27214ac4b8e27e933bab13"}