{"_id":"@buckeyestudio/toh-agent-loop-testkit","name":"@buckeyestudio/toh-agent-loop-testkit","dist-tags":{"next":"0.1.1-rc.2","latest":"0.1.1-rc.2"},"versions":{"0.1.1-rc.2":{"name":"@buckeyestudio/toh-agent-loop-testkit","description":"Shared prerequisite mounting for tests that exercise the concrete agent loop","version":"0.1.1-rc.2","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/dustinwloring1988/theopen-harness.git","directory":"packages/test-support/agent-loop-testkit"},"type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","author":{"name":"buckeyestudio"},"peerDependencies":{"@buckeyestudio/toh-agent":"^0.1.1-rc.2","@buckeyestudio/toh-invariants":"^0.1.1-rc.2","@buckeyestudio/toh-system-prompt":"^0.1.1-rc.2","@buckeyestudio/toh-session":"^0.1.1-rc.2","@buckeyestudio/toh-llm":"^0.1.1-rc.2","@buckeyestudio/toh-tools":"^0.1.1-rc.2","@buckeyestudio/cordis":"^4.0.1"},"devDependencies":{"@buckeyestudio/toh-agent":"^0.1.1-rc.2","@buckeyestudio/toh-agent-loop":"^0.1.1-rc.2","@buckeyestudio/toh-invariants":"^0.1.1-rc.2","@buckeyestudio/toh-llm":"^0.1.1-rc.2","@buckeyestudio/toh-session":"^0.1.1-rc.2","@buckeyestudio/toh-system-prompt":"^0.1.1-rc.2","@buckeyestudio/toh-tools":"^0.1.1-rc.2","@buckeyestudio/cordis":"^4.0.1"},"_id":"@buckeyestudio/toh-agent-loop-testkit@0.1.1-rc.2","bugs":{"url":"https://github.com/dustinwloring1988/theopen-harness/issues"},"homepage":"https://github.com/dustinwloring1988/theopen-harness#readme","_integrity":"sha512-y4YQhBgYO9h9Xeu7t+zm8H/rF6t+QP/DGCUue+xuUU0S7sXTOivPU0Qw186S2pYkSlij+nSmZgLIqk26qQ9tRg==","_resolved":"/home/runner/work/theopen-harness/theopen-harness/dist/npm/buckeyestudio-toh-agent-loop-testkit-0.1.1-rc.2.tgz","_from":"file:/home/runner/work/theopen-harness/theopen-harness/dist/npm/buckeyestudio-toh-agent-loop-testkit-0.1.1-rc.2.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-y4YQhBgYO9h9Xeu7t+zm8H/rF6t+QP/DGCUue+xuUU0S7sXTOivPU0Qw186S2pYkSlij+nSmZgLIqk26qQ9tRg==","shasum":"8bdaba3a0694b54bb8ef8cdfa82836711a2a401b","tarball":"https://registry.npmjs.org/@buckeyestudio/toh-agent-loop-testkit/-/toh-agent-loop-testkit-0.1.1-rc.2.tgz","fileCount":9,"unpackedSize":11299,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICJXfrKnSr2JhEsV5REBg9ePx47FU2GsgHq9hDl18RVJAiBozU413EkrOYP0kzBbxE6IWa4ZHtXRxTzho8mRlal/iQ=="}]},"_npmUser":{"name":"buckeyestudio","email":"dustinwloring1988@gmail.com"},"directories":{},"maintainers":[{"name":"buckeyestudio","email":"dustinwloring1988@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/toh-agent-loop-testkit_0.1.1-rc.2_1787489750566_0.24243575441652498"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-23T12:55:50.151Z","0.1.1-rc.2":"2026-08-23T12:55:50.706Z","modified":"2026-08-23T12:55:51.192Z"},"maintainers":[{"name":"buckeyestudio","email":"dustinwloring1988@gmail.com"}],"description":"Shared prerequisite mounting for tests that exercise the concrete agent loop","homepage":"https://github.com/dustinwloring1988/theopen-harness#readme","repository":{"type":"git","url":"git+https://github.com/dustinwloring1988/theopen-harness.git","directory":"packages/test-support/agent-loop-testkit"},"author":{"name":"buckeyestudio"},"bugs":{"url":"https://github.com/dustinwloring1988/theopen-harness/issues"},"license":"MIT","readme":"# `@buckeyestudio/toh-agent-loop-testkit`\n\n[English](README.md) | 中文\n\n为运行具体 `AgentLoop` 的测试共享挂载先决依赖。`mountAgentLoopTestDependencies(ctx, options?)` 按依赖顺序安装 LLM（大语言模型）、会话、系统提示词、工具和 agent（智能体）服务，然后在 agent loop 挂载前返回。\n\n调用方注册适配器和可选插件，使用待测配置挂载 `AgentLoop`，并 dispose（资源释放）自己的 Context。系统提示词和工具注册表配置可通过 `options` 转发；该辅助函数不提供超出服务自有默认值的测试默认值。插件加载失败会使辅助函数调用被拒绝，而顺序中较早激活的服务仍归调用方的 Context 所有。\n\n```ts\nimport { Context } from '@buckeyestudio/cordis'\nimport AgentLoop from '@buckeyestudio/toh-agent-loop'\nimport { mountAgentLoopTestDependencies } from '@buckeyestudio/toh-agent-loop-testkit'\n\nconst ctx = new Context()\n\nawait mountAgentLoopTestDependencies(ctx)\n// Register the test adapter and any optional plugins here.\nawait ctx.plugin(AgentLoop, { agents: [] })\n```\n\n针对注入失败、部分拓扑、服务加载顺序或服务清理的测试会直接挂载其依赖，而不使用此辅助函数。\n\n## 模型体验\n\n无。该测试专用组合辅助工具既不驱动也不修改模型请求。\n\n#### KV Cache 影响\n\n无；该包既不组装也不发送提供方请求。\n\n## 已知限制与暂缓事项\n\n- **只共享必需的先决主干**：适配器、可选插件、`AgentLoop`、agent 和 Context 清理仍由调用方负责，以使特定场景的挂载顺序清晰可见。\n","readmeFilename":"README.zh.md","_rev":"1-b5357dbf6fd7cf3dd7c17043f5cd81b7"}