{"_id":"@agent-orch/core","_rev":"2-8f01ebe3f82f07953c85b7524f3b0323","name":"@agent-orch/core","dist-tags":{"beta":"0.0.1-beta.2","latest":"0.0.1-beta.3"},"versions":{"0.0.1-beta.2":{"name":"@agent-orch/core","version":"0.0.1-beta.2","_id":"@agent-orch/core@0.0.1-beta.2","maintainers":[{"name":"yuliang.fe","email":"yulight4512@gmail.com"}],"dist":{"shasum":"6815b9b7554d569a4ace277523cfe8b6e5c6541a","tarball":"https://registry.npmjs.org/@agent-orch/core/-/core-0.0.1-beta.2.tgz","fileCount":75,"integrity":"sha512-Dw+MTm857rmqtnhDVYWn5wweiav8mvl+eLLaoB/aJy0RC5OAgg4KIqx3Kiz8JA0p6do09dC01mfieZmVOdwX7Q==","signatures":[{"sig":"MEQCICCvH/fEQJuB6QNtfdN9HQ/EeqG8K1TkFSFEh6xt+xJhAiAIOJpFUjc41WDqhu3fMGp8qHNBMIsMGS68XHMVKeR2cQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64917},"main":"./dist/cjs/index.cjs","type":"module","types":"./dist/esm/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","source":"./src/index.ts","require":"./dist/cjs/index.cjs"},"./testing":{"import":"./dist/esm/testing/index.js","source":"./src/testing/index.ts","require":"./dist/cjs/testing/index.cjs"}},"gitHead":"89c385cc357c523f7ea354d50636c3097378ce2b","scripts":{"dev":"rslib build --watch","lint":"eslint src/","test":"vitest run","build":"rslib build","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"yuliang.fe","email":"yulight4512@gmail.com"},"_npmVersion":"11.6.1","description":"Core types, interfaces, and utility functions for the Agent Harness framework. This package has no workspace dependencies and serves as the foundation layer that all other packages build upon.","directories":{},"_nodeVersion":"24.11.0","dependencies":{"zod":"^3.24.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.1.0","typescript":"^5.8.0","@rslib/core":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.1-beta.2_1775307945628_0.9179513016038658","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-beta.3":{"name":"@agent-orch/core","version":"0.0.1-beta.3","type":"module","exports":{".":{"source":"./src/index.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"},"./testing":{"source":"./src/testing/index.ts","import":"./dist/esm/testing/index.js","require":"./dist/cjs/testing/index.cjs"}},"main":"./dist/cjs/index.cjs","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","scripts":{"build":"rslib build","dev":"rslib build --watch","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist","lint":"eslint src/"},"devDependencies":{"@rslib/core":"^0.6.0","typescript":"^5.8.0","vitest":"^3.1.0"},"dependencies":{"zod":"^3.24.0"},"gitHead":"89c385cc357c523f7ea354d50636c3097378ce2b","_id":"@agent-orch/core@0.0.1-beta.3","description":"Core types, interfaces, and utility functions for the Agent Orch framework. This package has no workspace dependencies and serves as the foundation layer that all other packages build upon.","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-R9yeCBqTK3Q1z1CGGaL7EZtjq+EHBObogGJzrbJIxK3xvfsY8jzMBwyVyKpkvD7cpEAWfr5lPppavnURdUHRAw==","shasum":"8e6b7b4c93c3e3185766a2c87188abb9de2f3188","tarball":"https://registry.npmjs.org/@agent-orch/core/-/core-0.0.1-beta.3.tgz","fileCount":75,"unpackedSize":67109,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICVpYr2y/TxwIObMxos76ggMLzCWfOY8hVUstdazJ0nqAiAvQi1Ph7I1Y53BAQ5dy50yyFaftNPTKA7CVlqH7eUQTw=="}]},"_npmUser":{"name":"yuliang.fe","email":"yulight4512@gmail.com"},"directories":{},"maintainers":[{"name":"yuliang.fe","email":"yulight4512@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.0.1-beta.3_1775311858719_0.8683981847708009"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-04T13:05:45.485Z","modified":"2026-04-04T14:10:59.026Z","0.0.1-beta.2":"2026-04-04T13:05:45.760Z","0.0.1-beta.3":"2026-04-04T14:10:58.890Z"},"description":"Core types, interfaces, and utility functions for the Agent Orch framework. This package has no workspace dependencies and serves as the foundation layer that all other packages build upon.","maintainers":[{"name":"yuliang.fe","email":"yulight4512@gmail.com"}],"readme":"# @agent-orch/core\n\nCore types, interfaces, and utility functions for the Agent Orch framework. This package has no workspace dependencies and serves as the foundation layer that all other packages build upon.\n\n## Installation\n\n```bash\npnpm add @agent-orch/core\n```\n\n## Key API\n\n### Types & Interfaces\n\n| Export | Description |\n|--------|-------------|\n| `AgentConfig` | Configuration for an agent instance |\n| `OrchConfig` | Configuration for orchestration patterns |\n| `Tool` | Tool definition interface |\n| `StreamEvent` | Union of 15 event types emitted during agent execution |\n| `Message` | Conversation message type |\n| `LLMConfig` | LLM provider configuration |\n| `FinishReason` | Enum of possible finish reasons |\n\n### Utilities\n\n| Export | Description |\n|--------|-------------|\n| `StreamEventCollector` | Collects and aggregates stream events |\n| `AsyncEventGenerator` | Async generator wrapper for stream events |\n| `Logger` | Structured logger utility |\n| `retry` | Retry utility with configurable backoff |\n\n## Usage\n\n```typescript\nimport type { AgentConfig, Tool, StreamEvent } from \"@agent-orch/core\";\nimport { StreamEventCollector, Logger, retry } from \"@agent-orch/core\";\n\nconst collector = new StreamEventCollector();\n\nfor await (const event of stream) {\n  collector.push(event);\n}\n\nconst result = collector.getResult();\n```\n\n```typescript\nimport { retry } from \"@agent-orch/core\";\n\nconst data = await retry(() => fetchData(), { maxAttempts: 3 });\n```\n\n## Dependencies\n\n| Package | Purpose |\n|---------|---------|\n| `zod` | Runtime schema validation |\n\n## Documentation\n\nSee the [Agent Orch docs](../../../README.md) for full framework documentation.\n","readmeFilename":"README.md"}