{"_id":"@ahamie/agent","_rev":"2-d5ffb74bbe94bf0440a546f067ff04a2","name":"@ahamie/agent","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@ahamie/agent","version":"0.1.0","license":"Apache-2.0","_id":"@ahamie/agent@0.1.0","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"dist":{"shasum":"f01d3f1f4c1696df87769ae3a73d38d15b0cee0c","tarball":"https://registry.npmjs.org/@ahamie/agent/-/agent-0.1.0.tgz","fileCount":4,"integrity":"sha512-8M31+MEMeX4S/VBXlHQK61ealrT8buAdsrMwQl9vz8ww1/TvH7u7SULR4NYm/4dir5X8Gr866ntNPMotmgiS/w==","signatures":[{"sig":"MEUCIQDp+zEn2ACLwMe19TgImoNeZ259uXJXtFKpSkIaVZoczQIgJp4tthbGVeyNOb28pM2ef3aiNaZKdFMdd4CQ4kFkQG0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12599},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","ahamie":{"kind":"runtime","specVersion":"0.1.0"},"engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"3ee0e2f79fefd8a33caf7450002730e057e02d5c","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist .turbo","typecheck":"tsc --noEmit"},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"_npmVersion":"10.9.7","description":"Wraps @mastra/core Agent with budget caps, outcome hooks, and Postgres LISTEN/NOTIFY cancellation.","directories":{},"_nodeVersion":"22.22.2","dependencies":{"drizzle-orm":"^0.45.2","@ahamie/schema":"workspace:*","@ahamie/storage":"workspace:*","@ahamie/telemetry":"workspace:*"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.173","tsup":"^8.5.1","vitest":"^2.1.5","typescript":"^5.6.3","@types/node":"^22.10.0","@mastra/core":"^1.31.0"},"peerDependencies":{"ai":"^6.0.0","zod":"^4.0.0 || ^3.25.0","@mastra/core":"^1.31.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.1.0_1777663151606_0.7067994958794637","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@ahamie/agent","version":"0.1.1","description":"Wraps @mastra/core Agent with budget caps, outcome hooks, and Postgres LISTEN/NOTIFY cancellation.","license":"Apache-2.0","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist .turbo"},"dependencies":{"@ahamie/schema":"0.1.1","@ahamie/storage":"0.1.1","@ahamie/telemetry":"0.1.1","drizzle-orm":"^0.45.2"},"peerDependencies":{"@mastra/core":"^1.31.0","ai":"^6.0.0","zod":"^4.0.0 || ^3.25.0"},"devDependencies":{"@mastra/core":"^1.31.0","ai":"^6.0.173","@types/node":"^22.10.0","tsup":"^8.5.1","typescript":"^5.6.3","vitest":"^2.1.5"},"engines":{"node":">=22.0.0"},"publishConfig":{"access":"public","provenance":true},"ahamie":{"kind":"runtime","specVersion":"0.1.0"},"_id":"@ahamie/agent@0.1.1","gitHead":"3ee0e2f79fefd8a33caf7450002730e057e02d5c","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-RJpmLWJ4zloOOHGb7p362wpSmb0Nv27BPD/Y3et6CWOSU0LDrqMIdhbiZIAC7Dj460LmmYBpqVSQp7dtwNJS4g==","shasum":"ac94287d64a73f77bc14f40970cb1ab1fda02609","tarball":"https://registry.npmjs.org/@ahamie/agent/-/agent-0.1.1.tgz","fileCount":4,"unpackedSize":12581,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCt2fnVIzmU513R+68VPqFi6GpDUHhJVabfXbBmmAqadAIgN4kjBZIqNErakzJlzA2REGSMtbo4sPXM4sHAVVX+ZXU="}]},"_npmUser":{"name":"octalpixel","email":"mithushancj@gmail.com"},"directories":{},"maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent_0.1.1_1777663283154_0.858440844024938"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-01T19:19:11.479Z","modified":"2026-05-01T19:21:23.420Z","0.1.0":"2026-05-01T19:19:11.822Z","0.1.1":"2026-05-01T19:21:23.292Z"},"license":"Apache-2.0","description":"Wraps @mastra/core Agent with budget caps, outcome hooks, and Postgres LISTEN/NOTIFY cancellation.","maintainers":[{"name":"octalpixel","email":"mithushancj@gmail.com"}],"readme":"# @ahamie/agent\n\nWraps `@mastra/core` `Agent` with budget caps, outcome hooks, and Postgres LISTEN/NOTIFY cancellation.\n\n```ts\nimport { defineAgent, registerOutcomeHook } from \"@ahamie/agent\";\nimport { z } from \"@ahamie/schema\";\n\nconst summarizer = defineAgent({\n  name: \"summarizer\",\n  model: \"anthropic/claude-sonnet-4.6\",\n  instructions: \"Summarize the channel.\",\n  scope: { org: \"$ORG_ID\" },\n  budget: { cap_usd: 0.5, on_cap: \"pause\" },\n  output: z.object({ bullets: z.array(z.string()).max(5) }),\n});\n\nregisterOutcomeHook((env) => {\n  // RunCompleted envelope — feed to @ahamie/outcomes\n});\n```\n\nThe escape hatch — `import { Agent } from \"@mastra/core\"` — keeps working.\n","readmeFilename":"README.md"}