{"_id":"@agent-orch/appkit","name":"@agent-orch/appkit","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@agent-orch/appkit","version":"0.0.1","type":"module","exports":{".":{"source":"./src/index.ts","import":"./dist/esm/index.js","require":"./dist/cjs/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/"},"dependencies":{"@agent-orch/core":"^0.0.1-beta.3","@agent-orch/llm":"^0.0.1","@agent-orch/orch":"^0.0.1"},"devDependencies":{"@rslib/core":"^0.6.0","typescript":"^5.8.0","vitest":"^3.1.0"},"gitHead":"89c385cc357c523f7ea354d50636c3097378ce2b","_id":"@agent-orch/appkit@0.0.1","description":"High-level application API that assembles the full Agent Orch system. Provides the main entry point for building agent-powered applications.","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-BVr86QQmSS34SXvoyL1MCSISTnxY/12IWOqtGyxqT4bz8ssXG2vl7keqL2pFFRtxCYND8Ve9CKwZLpO6QaUFOQ==","shasum":"e343d695e0bad7b23ae4cd91a5c05f8857f6c7ac","tarball":"https://registry.npmjs.org/@agent-orch/appkit/-/appkit-0.0.1.tgz","fileCount":25,"unpackedSize":75901,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD8JI9E9korSPI+zEdoCaWSKMgHKAl6uy1UbwHNfOV2lAIhALmqycNQ0o4Zh9bh0JcFQ1ooL2GXcmEQ8yqPR0ifI17Y"}]},"_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/appkit_0.0.1_1775311898961_0.49005166259272426"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-04T14:11:38.831Z","0.0.1":"2026-04-04T14:11:39.147Z","modified":"2026-04-04T14:11:39.433Z"},"maintainers":[{"name":"yuliang.fe","email":"yulight4512@gmail.com"}],"description":"High-level application API that assembles the full Agent Orch system. Provides the main entry point for building agent-powered applications.","readme":"# @agent-orch/appkit\n\nHigh-level application API that assembles the full Agent Orch system. Provides the main entry point for building agent-powered applications.\n\n## Features\n\n- `AgentOrch` class as the single entry point\n- `defineConfig` helper for type-safe configuration\n- `SessionStore` for file-based session persistence (`~/.agent-orch/sessions/`)\n- Runtime orchestration pattern switching\n- Global tool injection across all agents\n- Runner caching for efficient reuse\n\n## Installation\n\n```bash\npnpm add @agent-orch/appkit\n```\n\n## Key API\n\n| Export | Description |\n|--------|-------------|\n| `AgentOrch` | Main class — assembles LLM, agents, orchestration, and tools |\n| `defineConfig` | Type-safe configuration helper |\n| `SessionStore` | File-based session persistence manager |\n\n## Usage\n\n```typescript\nimport { AgentOrch, defineConfig } from \"@agent-orch/appkit\";\n\nconst config = defineConfig({\n  llm: { modelId: \"openai/gpt-4o\", apiKey: process.env.OPENAI_API_KEY },\n  orch: { type: \"single-agent\" },\n  tools: [myCustomTool],\n  systemPrompt: \"You are a helpful assistant.\",\n});\n\nconst orch = new AgentOrch(config);\n\nconst stream = orch.chatStream(\"What can you help me with?\");\n\nfor await (const event of stream) {\n  switch (event.type) {\n    case \"text_delta\":\n      process.stdout.write(event.delta);\n      break;\n    case \"finish\":\n      console.log(\"\\nDone:\", event.reason);\n      break;\n  }\n}\n```\n\n### Session Persistence\n\n```typescript\nimport { SessionStore } from \"@agent-orch/appkit\";\n\nconst store = new SessionStore();\nconst session = await store.load(sessionId);\n```\n\n## Dependencies\n\n| Package | Purpose |\n|---------|---------|\n| `@agent-orch/core` | Core types and interfaces |\n| `@agent-orch/llm` | LLM provider implementations |\n| `@agent-orch/orch` | Orchestration patterns |\n\n## Documentation\n\nSee the [Agent Orch docs](../../../README.md) for full framework documentation.\n","readmeFilename":"README.md","_rev":"1-fd102e6b12fe6b91396bf390513b042c"}