{"_id":"@aionis/manifest","name":"@aionis/manifest","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@aionis/manifest","version":"0.1.1","description":"Portable executable manifest runtime for agent and workflow systems.","repository":{"type":"git","url":"git+https://github.com/ostinatocc/AionisManifest.git"},"homepage":"https://github.com/ostinatocc/AionisManifest#readme","bugs":{"url":"https://github.com/ostinatocc/AionisManifest/issues"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","bin":{"compile-aionis-manifest":"dist/cli.js","run-aionis-manifest":"dist/run-cli.js","validate-aionis-manifest-registry":"dist/validate-registry-cli.js","validate-aionis-manifest-module":"dist/validate-module-cli.js","execute-aionis-manifest":"dist/execute-cli.js","build-aionis-manifest-runtime-handoff":"dist/runtime-handoff-cli.js","build-aionis-manifest-handoff-store-request":"dist/handoff-store-cli.js","publish-aionis-manifest-handoff":"dist/publish-cli.js","recover-aionis-manifest-handoff":"dist/recover-cli.js","resume-aionis-manifest-runtime":"dist/resume-cli.js"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public"},"engines":{"node":">=18.0.0"},"scripts":{"build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","test":"tsx --test test/*.test.ts","verify":"npm run -s build && npm run -s test","prepare":"npm run -s build","pack:dry-run":"npm pack --dry-run --cache /tmp/aionis-npm-cache"},"dependencies":{"zod":"^3.23.8"},"devDependencies":{"@types/node":"^22.10.2","tsx":"^4.22.4","typescript":"^5.6.3"},"keywords":["aionis","manifest","workflow","runtime","compiler","typescript"],"author":{"name":"Aionis Core"},"license":"Apache-2.0","gitHead":"21ea1038aa2d34ba09e59dadf2995c696249f312","_id":"@aionis/manifest@0.1.1","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-fIyJDq+PfjwhjdlaOkONI+JDzW4Dj88yQSh6AwuDyxhNVgWH67pyzO9AJ+VMELp4msfMULHIkDA36u8HQ84b5A==","shasum":"2a59452006f13d922bfc5a10905a7623b18d7556","tarball":"https://registry.npmjs.org/@aionis/manifest/-/manifest-0.1.1.tgz","fileCount":102,"unpackedSize":825152,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDGaxahGmx4UuY8+zPYu0z7sYv5gfqKktdCgumvb46AwAiBkJL26gmGaWNYC6J5lk6kzGbk9fceaV/7BonCJiZCN/g=="}]},"_npmUser":{"name":"fielddd","email":"heyopscc@gmail.com"},"directories":{},"maintainers":[{"name":"fielddd","email":"heyopscc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/manifest_0.1.1_1784170219221_0.0670983447418696"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-16T02:50:19.102Z","0.1.1":"2026-07-16T02:50:19.362Z","modified":"2026-07-16T02:50:19.523Z"},"maintainers":[{"name":"fielddd","email":"heyopscc@gmail.com"}],"description":"Portable executable manifest runtime for agent and workflow systems.","homepage":"https://github.com/ostinatocc/AionisManifest#readme","keywords":["aionis","manifest","workflow","runtime","compiler","typescript"],"repository":{"type":"git","url":"git+https://github.com/ostinatocc/AionisManifest.git"},"author":{"name":"Aionis Core"},"bugs":{"url":"https://github.com/ostinatocc/AionisManifest/issues"},"license":"Apache-2.0","readme":"# @aionis/manifest\n\nPortable executable manifest runtime for agent and workflow systems.\n\n`AionisManifest` is the extracted core of the old Aionis Doc workflow surface. It is not a docs site and it does not depend on the Aionis runtime server. The core package can parse, compile, validate, and run `.aionis.manifest.md` or legacy `.aionis.md` files through a local module registry.\n\n## Boundary\n\nCore standalone features:\n\n1. parse manifest Markdown into AST and IR\n2. compile IR into `execution_plan_v1`\n3. validate module manifests and registries\n4. run execution plans through file or npm module registries\n5. emit outputs, artifacts, evidence, node results, and diagnostics\n\nOptional Aionis backend features:\n\n1. build runtime handoff payloads\n2. build handoff store requests\n3. publish, recover, and resume through compatible Aionis HTTP endpoints\n\nThe execution plan still exposes compatibility fields such as `doc_id` and `source_doc_id` because focused Aionis handoff routes already understand that wire shape. New source files should use `@manifest`; legacy `@doc` remains accepted.\n\n## Install\n\n```bash\nnpm i @aionis/manifest\n```\n\nFor local focused-runtime development:\n\n```bash\ngit clone https://github.com/ostinatocc/AionisManifest.git\nnpm i ./AionisManifest\n```\n\n## Manifest Syntax\n\n```md\n@manifest {\n  id: \"workflow-001\"\n  version: \"1.0\"\n  kind: \"workflow\"\n}\n\n@context {\n  product: \"AionisManifest\"\n  objective: \"Explain standalone execution\"\n}\n\n@execute {\n  module: \"research.claims.v1\"\n  input_ref: \"ctx\"\n  output_ref: \"run.claims\"\n}\n\n@execute {\n  module: \"copy.summary.v1\"\n  input_ref: \"run.claims\"\n  output_ref: \"out.summary\"\n  depends_on: [\"run.claims\"]\n}\n\n@replay {\n  executable: true\n  mode: \"deterministic\"\n  expected_outputs: [\"out.summary\"]\n}\n```\n\n## CLI\n\n```bash\ncompile-aionis-manifest ./workflow.aionis.manifest.md --emit all\nrun-aionis-manifest ./workflow.aionis.manifest.md --registry ./module-registry.json\nvalidate-aionis-manifest-registry ./module-registry.json\nvalidate-aionis-manifest-module ./modules/copy-summary.mjs --declared-module copy.summary.v1\nexecute-aionis-manifest ./workflow.aionis.manifest.md\nbuild-aionis-manifest-runtime-handoff ./workflow.aionis.manifest.md --scope default\nbuild-aionis-manifest-handoff-store-request ./runtime-handoff.json --scope default\npublish-aionis-manifest-handoff ./workflow.aionis.manifest.md --base-url http://127.0.0.1:3101\nrecover-aionis-manifest-handoff ./workflow.aionis.manifest.md --base-url http://127.0.0.1:3101\nresume-aionis-manifest-runtime ./recover-result.json --input-kind recover-result --candidate read --candidate bash\n```\n\n`resume-aionis-manifest-runtime` uses the public Aionis product loop. It sends\nrecovered continuity and tool candidates to `/v1/guide`; when feedback is\nprovided, it attributes the outcome to the guide's persisted tool-selection\nreceipt through `/v1/feedback`. It does not depend on internal Runtime memory\nor tool routes.\n\n## Package Usage\n\n```ts\nimport {\n  compileAionisManifest,\n  runAionisManifest,\n  StaticModuleRegistry,\n  ModuleRegistryExecutionRuntime,\n} from \"@aionis/manifest\";\n\nconst compile = compileAionisManifest(sourceText);\n\nconst result = await runAionisManifest({\n  inputPath: \"./workflow.aionis.manifest.md\",\n  registryPath: \"./module-registry.json\",\n});\n\nconst runtime = new ModuleRegistryExecutionRuntime({\n  runtime_id: \"custom_runtime_v1\",\n  registry: new StaticModuleRegistry([\n    {\n      manifest: {\n        module: \"custom.echo.v1\",\n        version: \"1.0.0\",\n        deterministic: true,\n        required_capabilities: [\"direct_execution\"],\n      },\n      handler: (input) => input,\n    },\n  ]),\n});\n```\n\n`compileAionisDoc` is exported as a migration alias for older callers, but new code should use `compileAionisManifest`.\n\n## Module Registry\n\nStable local file registry:\n\n```json\n{\n  \"version\": \"aionis_manifest_module_registry_v1\",\n  \"modules\": [\n    {\n      \"module\": \"research.claims.v1\",\n      \"entry\": \"./modules/research-claims.mjs\"\n    }\n  ]\n}\n```\n\nExperimental npm-installed registry:\n\n```json\n{\n  \"version\": \"aionis_manifest_npm_module_registry_v1\",\n  \"modules\": [\n    {\n      \"module\": \"research.claims.v1\",\n      \"package\": \"@aionis/manifest-module-research-claims\"\n    }\n  ]\n}\n```\n\nIncluded official module prototypes:\n\n1. `@aionis/manifest-module-research-claims`\n2. `@aionis/manifest-module-copy-summary`\n3. `@aionis/manifest-module-json-transform`\n\n## Verify\n\n```bash\nnpm install\nnpm run verify\nnode dist/run-cli.js fixtures/standalone-runner.aionis.md --registry fixtures/standalone-module-registry.json --compact\n```\n","readmeFilename":"README.md","_rev":"1-f380c8256c6587337d1ecd29bcead173"}