{"_id":"@buckeyestudio/toh-agent-default-model","name":"@buckeyestudio/toh-agent-default-model","dist-tags":{"next":"0.1.1-rc.2","latest":"0.1.1-rc.2"},"versions":{"0.1.1-rc.2":{"name":"@buckeyestudio/toh-agent-default-model","description":"Default model selection shared by Agent entry points","version":"0.1.1-rc.2","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/dustinwloring1988/theopen-harness.git","directory":"packages/core/agent-default-model"},"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"},"dependencies":{"@buckeyestudio/schemastery":"^3.18.1"},"peerDependencies":{"@buckeyestudio/toh-agent":"^0.1.1-rc.2","@buckeyestudio/toh-invariants":"^0.1.1-rc.2","@buckeyestudio/cordis":"^4.0.1","@buckeyestudio/toh-settings":"^0.1.1-rc.2","@buckeyestudio/toh-llm":"^0.1.1-rc.2"},"devDependencies":{"@buckeyestudio/toh-agent":"^0.1.1-rc.2","@buckeyestudio/toh-invariants":"^0.1.1-rc.2","@buckeyestudio/toh-llm":"^0.1.1-rc.2","@buckeyestudio/toh-settings":"^0.1.1-rc.2","@buckeyestudio/cordis":"^4.0.1"},"_id":"@buckeyestudio/toh-agent-default-model@0.1.1-rc.2","bugs":{"url":"https://github.com/dustinwloring1988/theopen-harness/issues"},"homepage":"https://github.com/dustinwloring1988/theopen-harness#readme","_integrity":"sha512-aFF0Cq7qihw9yI/wpHjBqJdn9RmbDIpBgCqhtZz8xOOcOZfvvz98QcQi6G1zpHIxN2jUR9JC7BPFVQ6HONVKBA==","_resolved":"/home/runner/work/theopen-harness/theopen-harness/dist/npm/buckeyestudio-toh-agent-default-model-0.1.1-rc.2.tgz","_from":"file:/home/runner/work/theopen-harness/theopen-harness/dist/npm/buckeyestudio-toh-agent-default-model-0.1.1-rc.2.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-aFF0Cq7qihw9yI/wpHjBqJdn9RmbDIpBgCqhtZz8xOOcOZfvvz98QcQi6G1zpHIxN2jUR9JC7BPFVQ6HONVKBA==","shasum":"e3d2a7dde9ba53bed806c4b076945e3e3ff26d3a","tarball":"https://registry.npmjs.org/@buckeyestudio/toh-agent-default-model/-/toh-agent-default-model-0.1.1-rc.2.tgz","fileCount":9,"unpackedSize":14038,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHh3jle3WN8sCu7UczbvxeALACD9/BXjU6IvysPNjgaYAiEAvAv+hOIB/K0T81Jj4QYQT/emOIfMAnw2se2/NDhH7kQ="}]},"_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-default-model_0.1.1-rc.2_1787489002955_0.7461626297127721"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-23T12:43:22.789Z","0.1.1-rc.2":"2026-08-23T12:43:23.126Z","modified":"2026-08-23T12:43:23.354Z"},"maintainers":[{"name":"buckeyestudio","email":"dustinwloring1988@gmail.com"}],"description":"Default model selection shared by Agent entry points","homepage":"https://github.com/dustinwloring1988/theopen-harness#readme","repository":{"type":"git","url":"git+https://github.com/dustinwloring1988/theopen-harness.git","directory":"packages/core/agent-default-model"},"author":{"name":"buckeyestudio"},"bugs":{"url":"https://github.com/dustinwloring1988/theopen-harness/issues"},"license":"MIT","readme":"# @buckeyestudio/toh-agent-default-model\n\n[English](README.md) | 中文\n\n该部署默认值供入口在创建尚无会话级模型选择的 Agent 时使用。`AgentDefaultModelConfig` 提供 `ctx.agentDefaultModel`；`toh --profile headless` 这类直接入口与 ApiProxy 这类由 Host 支撑的入口读取同一服务，而不是分别持有平行的提供方／模型默认值。\n\n插件配置必须提供 `{ provider, model }`。该组合配置项构成 Settings 中 `agent-default-model` 分节的基础层；挂载的设置提供方在其上叠加用户选择，更改会在下一次调用 `currentSelection()` 时可见。`reasoningEffort` 属于该 Settings 分节，但特意不属于插件配置：完整保存的选择必须能在下一个选定模型没有推理（reasoning）强度时清除旧值，而组合配置值会再次被继承。\n\n- `ctx.agentDefaultModel.currentSelection()` 返回一份独立的 `{ provider, model, reasoningEffort? }` 选择，供新创建的 Agent 使用。\n- `ctx.agentDefaultModel.saveSelection(selection)` 保存完整的用户选择。未挂载设置提供方时，此调用不执行任何操作，组合配置项仍为当前值。\n\n该服务不校验目录成员关系。提供方路由可以服务未在目录中公布的模型；实际发起模型请求的消费方负责可用性诊断。\n\n## 模型体验\n\n通过提供给入口的提供方／模型选择间接影响；模型可见请求由请求组装与适配器负责。\n\n#### KV Cache 影响\n\n更改默认值只影响之后从该默认值解析选择的 Agent。请求日志已经指明选择的现有会话仍沿用该选择，因此本服务不会使其已建立的前缀失效。\n\n## 已知限制与暂缓事项\n\n- 该服务只拥有一项进程级默认值；每个会话的选择仍由入口负责。\n- 未挂载设置提供方时，`saveSelection()` 无法保留选择供后续 Agent 使用。\n","readmeFilename":"README.zh.md","_rev":"1-2ce107183a8616830ec9664008a5bbff"}