{"_id":"@agent-assistant/dispatch","name":"@agent-assistant/dispatch","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agent-assistant/dispatch","version":"0.1.0","description":"Dispatch envelope and async response contract types for Agent Assistant proactive personas","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc -p tsconfig.json","test":"tsc --noEmit --module NodeNext --moduleResolution NodeNext --target ES2022 --strict --skipLibCheck --types vitest src/types.test.ts && vitest run","test:watch":"vitest","typecheck":"tsc --noEmit -p tsconfig.json"},"devDependencies":{"typescript":"^5.9.3","vitest":"^3.2.4"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AgentWorkforce/agent-assistant.git"},"publishConfig":{"access":"public"},"_id":"@agent-assistant/dispatch@0.1.0","gitHead":"a1b53892ccb5e79823f0cdced7327602aeacc0f6","bugs":{"url":"https://github.com/AgentWorkforce/agent-assistant/issues"},"homepage":"https://github.com/AgentWorkforce/agent-assistant#readme","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-lcG45elNNIKrfA4iavus9abj9jwuuavvZbfjBnAAKZsCJGml6PrxDj8DxucyNxRIlkZ4PYbcNK/cnYbTZEB0Hg==","shasum":"f412e292cae397ff674e795dd9b5c0905dfe6b19","tarball":"https://registry.npmjs.org/@agent-assistant/dispatch/-/dispatch-0.1.0.tgz","fileCount":6,"unpackedSize":4881,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEStWVGLL39s5IrSIhfim6F/MFR+4xjSbOCpzPGLrU4vAiBERr2PV7QXw/08eXPjQVPyIC6xyVtXITts+KGQ9vZJLg=="}]},"_npmUser":{"name":"khaliqgant","email":"khaliqgant@gmail.com"},"directories":{},"maintainers":[{"name":"willwashburn","email":"will@agentrelay.com"},{"name":"khaliqgant","email":"khaliqgant@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dispatch_0.1.0_1779710015723_0.19641494446942342"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-25T11:53:35.540Z","0.1.0":"2026-05-25T11:53:35.880Z","modified":"2026-05-25T11:53:36.093Z"},"maintainers":[{"name":"willwashburn","email":"will@agentrelay.com"},{"name":"khaliqgant","email":"khaliqgant@gmail.com"}],"description":"Dispatch envelope and async response contract types for Agent Assistant proactive personas","homepage":"https://github.com/AgentWorkforce/agent-assistant#readme","repository":{"type":"git","url":"git+https://github.com/AgentWorkforce/agent-assistant.git"},"bugs":{"url":"https://github.com/AgentWorkforce/agent-assistant/issues"},"license":"MIT","readme":"# @agent-assistant/dispatch\n\nTypeScript contract types for proactive persona dispatch requests and responses in Agent Assistant. The exported dispatch envelope follows canonical spec section 7.2: https://github.com/AgentWorkforce/sage/blob/main/specs/proactive-unification.md#72-dispatch-envelope.\n\nThe response union covers the synchronous, sandbox-borrow, async callback, and error outcomes from canonical spec section 7.5: https://github.com/AgentWorkforce/sage/blob/main/specs/proactive-unification.md#75-async-callback.\n\n```ts\nimport type { DispatchEnvelope, DispatchResponse } from \"@agent-assistant/dispatch\";\n\nconst envelope: DispatchEnvelope<{ cron: string }> = {\n  type: \"cron.tick\",\n  personaId: \"morning-briefing\",\n  workspaceId: \"workspace-1\",\n  deploymentId: \"deployment-1\",\n  occurredAt: new Date().toISOString(),\n  envelope: {\n    id: \"evt-1\",\n    payload: { cron: \"0 8 * * 1-5\" },\n  },\n};\n\nconst response: DispatchResponse = {\n  kind: \"done\",\n  delivery: [{ kind: \"slack.message\", text: \"Briefing ready\" }],\n};\n```\n","readmeFilename":"README.md","_rev":"1-93b3468b3b409734de241e26888be259"}