## Summary Move `spark-command` and `spark-notify` agents from `packages/stage-ui/src/tools/character/orchestrator/` to `packages/core-agent/src/agents/` for better separation of concerns and reusability across packages. ## Changes - **Relocate spark-command agent** — moved `spark-command-shared.ts`, `spark-command.ts`, and `spark-command.test.ts` to `packages/core-agent/src/agents/spark-command/` - **Relocate spark-notify test** — moved `spark-notify.test.ts` to `packages/core-agent/src/agents/spark-notify/` - **Add barrel export** — created `packages/core-agent/src/agents/spark-command/index.ts` with re-exports - **Update package.json** — added `./agents/spark-command` entry in `packages/core-agent/package.json` - **Update build config** — added `src/agents/spark-command/index.ts` to `tsdown.config.ts` entry list - **Consolidate schemas** — merged duplicate `sparkNotifyCommandGuidanceSchema` into `sparkCommandGuidanceSchema` - **Add JSDoc** — added `@example` blocks to all normalize functions in `schema.ts` - **Update imports** — provider tests and `tool-resolver.ts` now import from `@proj-airi/core-agent/agents/spark-command` - **Delete legacy shims** — removed `stage-ui/src/tools/character/` re-export layer ## Verification ```bash pnpm -F @proj-airi/core-agent typecheck pnpm -F @proj-airi/stage-ui typecheck pnpm -F @proj-airi/core-agent exec vitest run pnpm lint ```
76 lines
2.1 KiB
JSON
76 lines
2.1 KiB
JSON
{
|
|
"name": "@proj-airi/core-agent",
|
|
"type": "module",
|
|
"version": "0.12.0-beta.5",
|
|
"private": true,
|
|
"description": "Core agent runtime orchestration for AIRI",
|
|
"author": {
|
|
"name": "Moeru AI Project AIRI Team",
|
|
"email": "airi@moeru.ai",
|
|
"url": "https://github.com/moeru-ai"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/moeru-ai/airi.git",
|
|
"directory": "packages/core-agent"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"./agents/spark-notify": {
|
|
"types": "./dist/agents/spark-notify/index.d.mts",
|
|
"default": "./dist/agents/spark-notify/index.mjs"
|
|
},
|
|
"./agents/spark-command": {
|
|
"types": "./dist/agents/spark-command/index.d.mts",
|
|
"default": "./dist/agents/spark-command/index.mjs"
|
|
}
|
|
},
|
|
"main": "./dist/index.mjs",
|
|
"types": "./dist/index.d.mts",
|
|
"files": [
|
|
"README.md",
|
|
"dist",
|
|
"package.json"
|
|
],
|
|
"scripts": {
|
|
"build": "tsdown",
|
|
"eval:run": "vieval run --config ./vieval.config.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@moeru/std": "catalog:",
|
|
"@proj-airi/pipelines-audio": "workspace:^",
|
|
"@proj-airi/plugin-protocol": "workspace:^",
|
|
"@proj-airi/server-sdk": "workspace:^",
|
|
"@proj-airi/server-shared": "workspace:^",
|
|
"@proj-airi/stream-kit": "workspace:^",
|
|
"@xsai-ext/providers": "catalog:",
|
|
"@xsai/generate-speech": "catalog:",
|
|
"@xsai/generate-text": "catalog:",
|
|
"@xsai/model": "catalog:",
|
|
"@xsai/shared": "catalog:",
|
|
"@xsai/shared-chat": "catalog:",
|
|
"@xsai/stream-text": "catalog:",
|
|
"@xsai/tool": "catalog:",
|
|
"nanoid": "catalog:",
|
|
"rehype-parse": "catalog:",
|
|
"rehype-stringify": "catalog:",
|
|
"unified": "catalog:",
|
|
"unist-util-visit": "catalog:",
|
|
"vieval": "catalog:",
|
|
"xsschema": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@types/hast": "catalog:",
|
|
"@types/node": "catalog:",
|
|
"@types/unist": "catalog:",
|
|
"tsdown": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|