{"_id":"@buckeyestudio/toh-session-title-first-prompt-llm","name":"@buckeyestudio/toh-session-title-first-prompt-llm","dist-tags":{"next":"0.1.1-rc.2","latest":"0.1.1-rc.2"},"versions":{"0.1.1-rc.2":{"name":"@buckeyestudio/toh-session-title-first-prompt-llm","description":"First-message LLM provider plugin for TheOpen Harness session titles","version":"0.1.1-rc.2","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/dustinwloring1988/theopen-harness.git","directory":"packages/session/session-title-first-prompt-llm"},"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"},"./package.json":"./package.json"},"license":"MIT","author":{"name":"buckeyestudio"},"peerDependencies":{"@buckeyestudio/toh-invariants":"^0.1.1-rc.2","@buckeyestudio/toh-session-title":"^0.1.1-rc.2","@buckeyestudio/toh-session":"^0.1.1-rc.2","@buckeyestudio/toh-session-title-llm":"^0.1.1-rc.2","@buckeyestudio/cordis":"^4.0.1","@buckeyestudio/toh-llm":"^0.1.1-rc.2"},"dependencies":{"@buckeyestudio/schemastery":"^3.18.1"},"devDependencies":{"@buckeyestudio/cordis-plugin-loader":"^1.0.2","@buckeyestudio/toh-invariants":"^0.1.1-rc.2","@buckeyestudio/toh-llm-deepseek":"^0.1.1-rc.2","@buckeyestudio/toh-llm":"^0.1.1-rc.2","@buckeyestudio/cordis-plugin-include":"^1.0.6","@buckeyestudio/toh-session":"^0.1.1-rc.2","@buckeyestudio/toh-session-title":"^0.1.1-rc.2","@buckeyestudio/toh-session-title-llm":"^0.1.1-rc.2","@buckeyestudio/cordis":"^4.0.1"},"_id":"@buckeyestudio/toh-session-title-first-prompt-llm@0.1.1-rc.2","bugs":{"url":"https://github.com/dustinwloring1988/theopen-harness/issues"},"homepage":"https://github.com/dustinwloring1988/theopen-harness#readme","_integrity":"sha512-ODkT60Ua393TZxFJGlUB0pMehxbP0NVVHiEkdlSkQK/pENQxUsIrEr/4+K6mjEsNo1ND0jE4usJqG2RI8BnEBw==","_resolved":"/home/runner/work/theopen-harness/theopen-harness/dist/npm/buckeyestudio-toh-session-title-first-prompt-llm-0.1.1-rc.2.tgz","_from":"file:/home/runner/work/theopen-harness/theopen-harness/dist/npm/buckeyestudio-toh-session-title-first-prompt-llm-0.1.1-rc.2.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-ODkT60Ua393TZxFJGlUB0pMehxbP0NVVHiEkdlSkQK/pENQxUsIrEr/4+K6mjEsNo1ND0jE4usJqG2RI8BnEBw==","shasum":"cd63b1f9f8266e55b26e58325f8269793333b66f","tarball":"https://registry.npmjs.org/@buckeyestudio/toh-session-title-first-prompt-llm/-/toh-session-title-first-prompt-llm-0.1.1-rc.2.tgz","fileCount":9,"unpackedSize":10605,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHQXgdGUZL+zj9IF0yHk1xb5f0Dm1SX5+Vl3xvPt/v/0AiA9wrbW+indPweM/3B64iaxX0hzuq2CL9c8DIUJY5v/lw=="}]},"_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-session-title-first-prompt-llm_0.1.1-rc.2_1787489309601_0.17091215497300438"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-23T12:48:29.410Z","0.1.1-rc.2":"2026-08-23T12:48:29.744Z","modified":"2026-08-23T12:48:29.966Z"},"maintainers":[{"name":"buckeyestudio","email":"dustinwloring1988@gmail.com"}],"description":"First-message LLM provider plugin for TheOpen Harness session titles","homepage":"https://github.com/dustinwloring1988/theopen-harness#readme","repository":{"type":"git","url":"git+https://github.com/dustinwloring1988/theopen-harness.git","directory":"packages/session/session-title-first-prompt-llm"},"author":{"name":"buckeyestudio"},"bugs":{"url":"https://github.com/dustinwloring1988/theopen-harness/issues"},"license":"MIT","readme":"# @buckeyestudio/toh-session-title-first-prompt-llm\n\n[English](README.md) | 中文\n\n可选的 `ctx.sessionTitle` 提供方，通过 `ctx.llm` 总结第一条符合条件的用户消息。它注册 `first-prompt` 节奏，只在全新非 fork 会话首次创建回退时自动运行，并将结果归因于该消息的确切 seq。自动失败会保留回退，之后只能通过 `ctx.sessionTitle.refresh()` 重试。\n\n该插件使用完整且必填的[共享 LLM（大语言模型）配置](../session-title-llm/README.zh.md#configuration)。同时省略 `provider` 与 `model` 时，会继承当前已记录主请求的确切路由；也可以同时设置二者，使标题生成使用独立路由。\n\n## 模型体验\n\n### 首消息标题请求\n\n#### 模型看到的内容\n\n标题模型会收到共享标题指令，以及一个只包含第一条符合条件用户消息的 JSON 数组。后续提示词与继承的 fork 历史不会触发再次自动调用。\n\n#### Token 影响\n\n全新会话最多自动发出一次辅助请求，并受 `maxInputBytes` 和 `maxOutputTokens` 约束；显式刷新可能发出额外调用。主 agent（智能体）请求不会增加 token。\n\n#### KV Cache 影响\n\n不会使主请求的 KV Cache 失效。辅助请求使用已配置或已记录路由，其缓存行为由提供方决定。\n\n## 已知限制与暂缓事项\n\n- 对于长期会话，第一条消息可能不再具有代表性；如果后续提示词应触发重新生成标题，请使用全消息提供方。\n- fork 会保留继承的标题，绝不会自动运行此提供方，即使其预置的首消息来自父会话。\n","readmeFilename":"README.zh.md","_rev":"1-86d6d070bbefc77e9ccd1cadda87a757"}