{"_id":"@afps-spec/types","_rev":"3-10b929bfa92d6361b1a8c70e43a0c369","name":"@afps-spec/types","dist-tags":{"latest":"0.1.0"},"versions":{"1.0.0":{"name":"@afps-spec/types","version":"1.0.0","keywords":["afps","types","typescript","agent"],"license":"Apache-2.0","_id":"@afps-spec/types@1.0.0","maintainers":[{"name":"pierrecabriere","email":"hello@pierrecabriere.fr"}],"homepage":"https://github.com/appstrate/afps-spec#readme","bugs":{"url":"https://github.com/appstrate/afps-spec/issues"},"dist":{"shasum":"10662ebe9270f9e243caef570fee8f9a55e64525","tarball":"https://registry.npmjs.org/@afps-spec/types/-/types-1.0.0.tgz","fileCount":3,"integrity":"sha512-IeR4qT89cxr9FJ1IajByrRInkJ3HdK8yWxgI1/rJQtMBhc5A4mCATmiAJT6IG5fOLF2VZXHgI4UNCnnN/hoqPQ==","signatures":[{"sig":"MEYCIQDZlxt2mw54K0jHooIIevu34ozC/Gj2Jug1u+wbDC+BlwIhALjqDd3tv0okOliv2ltzDZLcuF4S1f9NmEzdv/XZzF0Q","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@afps-spec%2ftypes@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7422},"main":"./src/index.ts","type":"module","_from":"file:afps-spec-types-1.0.0.tgz","exports":{".":"./src/index.ts"},"scripts":{"test":"bun test","typecheck":"tsc --noEmit"},"_npmUser":{"name":"pierrecabriere","email":"hello@pierrecabriere.fr"},"_resolved":"/home/runner/work/afps-spec/afps-spec/packages/types/afps-spec-types-1.0.0.tgz","_integrity":"sha512-IeR4qT89cxr9FJ1IajByrRInkJ3HdK8yWxgI1/rJQtMBhc5A4mCATmiAJT6IG5fOLF2VZXHgI4UNCnnN/hoqPQ==","repository":{"url":"git+https://github.com/appstrate/afps-spec.git","type":"git","directory":"packages/types"},"_npmVersion":"10.9.7","description":"TypeScript bindings for AFPS 1.3+ contracts — Tool protocol, manifest refs, and the RunEvent wire envelope.","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.10","typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/types_1.0.0_1777001660196_0.4195576350366934","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@afps-spec/types","version":"2.0.0","keywords":["afps","types","typescript","agent"],"license":"Apache-2.0","_id":"@afps-spec/types@2.0.0","maintainers":[{"name":"pierrecabriere","email":"hello@pierrecabriere.fr"}],"homepage":"https://github.com/appstrate/afps-spec#readme","bugs":{"url":"https://github.com/appstrate/afps-spec/issues"},"dist":{"shasum":"f6b0a6c323f2169c4bdc5176a7c7325a9e7557ad","tarball":"https://registry.npmjs.org/@afps-spec/types/-/types-2.0.0.tgz","fileCount":3,"integrity":"sha512-hm7tv/zsrxagHEqytZ19OPYlYOT4kwgY6t8f5CPPNM89D7UISK7xE7GxOF45Z4bUQqrfTdB7TE3hUY2h4kdTXQ==","signatures":[{"sig":"MEYCIQCD/SVEyU0cutC3g9B6aTpVpM4UF0/lX2Ml0BqWkp0GkgIhAKvcvdtU13jEUv3DStgy0HEkMyMkaZpfV3zAnJsWaTnI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@afps-spec%2ftypes@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7422},"main":"./src/index.ts","type":"module","_from":"file:afps-spec-types-2.0.0.tgz","exports":{".":"./src/index.ts"},"scripts":{"test":"bun test","typecheck":"tsc --noEmit"},"_npmUser":{"name":"pierrecabriere","email":"hello@pierrecabriere.fr"},"_resolved":"/home/runner/work/afps-spec/afps-spec/packages/types/afps-spec-types-2.0.0.tgz","_integrity":"sha512-hm7tv/zsrxagHEqytZ19OPYlYOT4kwgY6t8f5CPPNM89D7UISK7xE7GxOF45Z4bUQqrfTdB7TE3hUY2h4kdTXQ==","repository":{"url":"git+https://github.com/appstrate/afps-spec.git","type":"git","directory":"packages/types"},"_npmVersion":"10.9.8","description":"TypeScript bindings for AFPS 2.0 contracts — Tool protocol, manifest refs, and the RunEvent wire envelope.","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.3.10","typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/types_2.0.0_1779820679873_0.0256215996210718","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@afps-spec/types","version":"0.1.0","description":"TypeScript bindings for AFPS 0.1 contracts — Tool protocol, manifest refs, and the RunEvent wire envelope.","license":"Apache-2.0","type":"module","main":"./src/index.ts","exports":{".":"./src/index.ts"},"keywords":["afps","types","typescript","agent"],"repository":{"type":"git","url":"git+https://github.com/afps-spec/afps-spec.git","directory":"packages/types"},"scripts":{"typecheck":"tsc --noEmit","test":"bun test"},"devDependencies":{"bun-types":"^1.3.10","typescript":"^5"},"gitHead":"2b45b04b8506d6e8fcb8bcddc82cbf6a803af6ba","_id":"@afps-spec/types@0.1.0","bugs":{"url":"https://github.com/afps-spec/afps-spec/issues"},"homepage":"https://github.com/afps-spec/afps-spec#readme","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-0fK0vqhtzr+fRPnze2HPr+Krrx8pZwiOsUDjFswwz/Mr/VfnvWN+xinwzajX17NfFwA8W5a+vY90xO7HL7M9Xg==","shasum":"5dfa06737d452d6e61245993a3facf8f3b0ee35a","tarball":"https://registry.npmjs.org/@afps-spec/types/-/types-0.1.0.tgz","fileCount":4,"unpackedSize":18773,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDa06KIR3QAYkV8LczQSoInD7c+lD5ipjOJwKDG34OTbAIhAPxQ5dlKexiNxsWTXC++kv86p+7Sf1BpBVdwZ5zDt+PN"}]},"_npmUser":{"name":"pierrecabriere","email":"hello@pierrecabriere.fr"},"directories":{},"maintainers":[{"name":"pierrecabriere","email":"hello@pierrecabriere.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/types_0.1.0_1779847929250_0.22583074465759267"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-24T03:34:20.122Z","modified":"2026-05-27T02:12:09.554Z","1.0.0":"2026-04-24T03:34:20.332Z","2.0.0":"2026-05-26T18:38:00.008Z","0.1.0":"2026-05-27T02:12:09.393Z"},"bugs":{"url":"https://github.com/afps-spec/afps-spec/issues"},"license":"Apache-2.0","homepage":"https://github.com/afps-spec/afps-spec#readme","keywords":["afps","types","typescript","agent"],"repository":{"type":"git","url":"git+https://github.com/afps-spec/afps-spec.git","directory":"packages/types"},"description":"TypeScript bindings for AFPS 0.1 contracts — Tool protocol, manifest refs, and the RunEvent wire envelope.","maintainers":[{"name":"pierrecabriere","email":"hello@pierrecabriere.fr"}],"readme":"# @afps-spec/types\n\nTypeScript bindings for AFPS 0.1 contracts.\n\nThis package is the canonical TS projection of the language-agnostic\nAFPS specification (see [`afps-spec/spec.md`](https://github.com/afps-spec/afps-spec/blob/main/spec.md)).\nIt declares types only — no runtime behavior — so any AFPS-compliant\nTypeScript tool, runtime, or runner can depend on it to share\nvocabulary without coupling to a specific implementation.\n\n## What's in\n\n- **Manifest refs** (`DependencyRef`, `SkillRef`, `McpServerRef`, `IntegrationRef`, `JSONSchema`) — parallel to the Zod schemas in `@afps-spec/schema`.\n- **Tool protocol** (`Tool`, `ToolContext`, `ToolResult`) — the shape every AFPS tool implementation MUST satisfy.\n- **Wire envelope** (`RunEvent`) — open event shape flowing from tools to sinks.\n\n## What's out\n\nRuntime-internal interfaces (bundle loader APIs, resolver interfaces,\nsink interfaces, aggregated run state) live in the runtime package\nthat owns the implementation — e.g. `@your-org/afps-runtime`. They\ndescribe how a specific TypeScript runtime wires itself up\ninternally, not contracts shared across the ecosystem.\n","readmeFilename":"README.md"}