@deepseek-ai/dsh-llm-pi-ai 0.2.1-rc.4 → 0.2.2-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.i18n.yaml CHANGED
@@ -21,8 +21,8 @@
21
21
  en: f3b761c7c7ecb82f
22
22
  zh: e10d999aa348ef86
23
23
  /deepseek-ai-dsh-llm-pi-ai/use-this-package/configure-provider-routes:
24
- en: c5d28300fa2cfc6f
25
- zh: c162855dcb54b65b
24
+ en: 738edb4ae053740d
25
+ zh: cc6853e2bdac01ec
26
26
  /deepseek-ai-dsh-llm-pi-ai/use-this-package/sign-in-to-a-provider:
27
27
  en: c36f66438638ae08
28
28
  zh: 066a2fc4cb97c86f
@@ -57,8 +57,8 @@
57
57
  en: 477d277e9ac35c8f
58
58
  zh: 96870ca333fb6510
59
59
  /deepseek-ai-dsh-llm-pi-ai/understand-the-implementation/replay-and-vocabulary:
60
- en: 73242ca9b8a98c76
61
- zh: 4ab98526ae70bd23
60
+ en: e64173763fdbcfae
61
+ zh: 73ed2c2af54b62f6
62
62
  /deepseek-ai-dsh-llm-pi-ai/further-exploration:
63
63
  en: a2a2ccdeae59d408
64
64
  zh: c47ee091aa90ad91
@@ -69,20 +69,20 @@
69
69
  en: e7348db3f7115960
70
70
  zh: 5fd5fb09d7d09982
71
71
  /deepseek-ai-dsh-llm-pi-ai/model-experience/provider-request-through-pi-ai/what-the-model-sees:
72
- en: 948e7c8ec2ffda92
73
- zh: 72bd6c7a4691a355
72
+ en: a1c686712365d7ae
73
+ zh: f28c4e2373013a2a
74
74
  /deepseek-ai-dsh-llm-pi-ai/model-experience/provider-request-through-pi-ai/token-effect:
75
75
  en: 820221e8ae37aa61
76
76
  zh: 7e6ff4db10067fc0
77
77
  /deepseek-ai-dsh-llm-pi-ai/model-experience/provider-request-through-pi-ai/kv-cache-effect:
78
- en: 8c1f842a95ab46fb
79
- zh: d6dd124c82f1d96b
78
+ en: 7a2595060340d7d5
79
+ zh: e4ba753dcdaa89fc
80
80
  /deepseek-ai-dsh-llm-pi-ai/model-experience/provider-response:
81
81
  en: 802d7ff60a1d03ff
82
82
  zh: c41c56e28f3e8680
83
83
  /deepseek-ai-dsh-llm-pi-ai/model-experience/provider-response/what-the-model-sees:
84
- en: 9b7d6b95ec2c4351
85
- zh: 356ac01aef9e8bed
84
+ en: 94ca496012c92fa9
85
+ zh: 9539b08924b5022d
86
86
  /deepseek-ai-dsh-llm-pi-ai/model-experience/provider-response/token-effect:
87
87
  en: f002b21d0f4c3df0
88
88
  zh: 388c8ed4676ed1af
@@ -90,8 +90,8 @@
90
90
  en: b6bd570c0159ba08
91
91
  zh: 7d2d91eea6a8d830
92
92
  /deepseek-ai-dsh-llm-pi-ai/known-limitations-and-deferred-work:
93
- en: ee870ac2ac87decc
94
- zh: 9e66c5e7400c4bc6
93
+ en: 1c54b949c81df84f
94
+ zh: b894d01aa3e6afc1
95
95
  /deepseek-ai-dsh-llm-pi-ai/known-limitations-and-deferred-work/dev-note:
96
96
  en: 3678dd0f6642c2a5
97
97
  zh: 75cbdd064cc64282
package/README.md CHANGED
@@ -81,8 +81,8 @@ Each profile may set a `retryPolicy`; omission uses normal mode with five retrie
81
81
  | `models` | installed catalog | Replaces the route's catalog wholesale; each entry defaults from the installed model |
82
82
  | `modelOverrides` | none | Reshapes individual installed-catalog models without replacing the rest |
83
83
  | `compat` | catalog detection | Wire-compatibility switches for unrecognized endpoints |
84
- | `defaultContextWindow` | `262,144` | Capacity fallback for undescribed models |
85
- | `defaultMaxTokens` | `32,768` | Output-cap fallback for undescribed models |
84
+ | `defaultContextWindow` | `1,000,000` | Capacity fallback for undescribed models |
85
+ | `defaultMaxTokens` | `128,000` | Output-cap fallback for undescribed models |
86
86
  | `requestImagePixelBudget` | `4,194,304` | Total-pixel budget for each deterministic request image |
87
87
  | `requestImageMaxBytes` | `1 MiB` | Encoded-byte target for each request image before base64 expansion |
88
88
  | `maxRequestImageBytes` | `20 MiB` | Aggregate base64 image-payload bound; a request whose retained images exceed it fails with `IMAGE_OFFLOAD_REQUIRED` |
@@ -182,7 +182,7 @@ The `pre-commit` hook runs `node_modules/.bin/tsx packages/llm/llm-pi-ai/scripts
182
182
 
183
183
  ### Replay and vocabulary
184
184
 
185
- Successful assistant responses store a versioned, lossless-JSON replay state beside the provider and model that produced them — response-level facts plus one per-block entry per streamed block. At request time, `LlmRuntime` passes replay state only when the same adapter instance owns both routes; the adapter validates it and restores native response ids, provider signatures, and optional `providerThinkingLevel` effort metadata, keeping absent effort metadata absent. Replay validates the requested model identity against the assistant source and uses it to retain same-model signatures; provider-reported response models remain diagnostic metadata. Absent or unusable replay state degrades to provider-neutral content while preserving the assistant source’s required provider and model. pi-ai tool-call arguments are parsed objects, so the adapter parses input and re-stringifies output to the harness raw-JSON convention; pi-ai in-stream error events map to terminal `finish` chunks. Protocol conversion operates on request-local copies. Switching from A to B and back to A preserves the stored content, including empty text blocks, tool ids, original block order, and native replay metadata; unsupported signatures are omitted only from the foreign request.
185
+ Successful assistant responses store a versioned, lossless-JSON replay state beside the provider and model that produced them — response-level facts plus one per-block entry per streamed block. At request time, `LlmRuntime` passes replay state only when the same adapter instance owns both routes; the adapter validates it and restores native response ids, provider signatures, and optional `providerThinkingLevel` effort metadata, keeping absent effort metadata absent. Replay validates the requested model identity against the assistant source and uses it to retain same-model signatures; provider-reported response models remain diagnostic metadata. Absent or unusable replay state degrades to provider-neutral content while preserving the assistant source’s required provider and model. pi-ai tool-call arguments are parsed objects, so the adapter parses input and re-stringifies output to the harness raw-JSON convention; pi-ai in-stream error events map to terminal `finish` chunks. Protocol conversion operates on request-local copies. Switching from A to B and back to A preserves the stored content, including empty text blocks, tool ids, original block order, and native replay metadata; requests to a different provider, API, or model omit unsupported signatures and reasoning blocks. Degraded replay without native metadata also omits reasoning. Valid native replay retains the stored reasoning when the original model resumes.
186
186
 
187
187
  </details>
188
188
 
@@ -209,7 +209,7 @@ Read these pages when the package-level contract is not enough. They move from t
209
209
 
210
210
  #### What the model sees
211
211
 
212
- The selected catalog model receives system-message text, conversation history, tools, and supported sampling fields. The adapter preserves later system messages in history order; pi-ai owns protocol-specific placement and concatenates them at the beginning for models without mid-conversation system support. One-shot `GenerateOptions.system` precedes the initial history prompt. Repeated system messages remain repeated; empty system messages are skipped without discarding earlier text. Tool-update capabilities select the shared historical declaration projection; pi-ai receives initially active tools and grouped developer updates carrying additions and supported removals. When every projected declaration of an Anthropic request with tool updates is deferred, the initially active tools are one placeholder, `DeferredToolPlaceholder`, whose description tells the model never to call it; a call reaches the ordinary unknown-tool result. Anthropic receives later tool definitions inline in the update message. Replay preserves tool-call namespaces for dynamically loaded Responses tools. Each retained image is preceded by text naming its complete attachment id and actual request dimensions. When the current execution filesystem maps the attachment provider's host object, the text also carries a read-only normalized-object path and warns that normalization or request projection may have resized or re-encoded the upload. Each occurrence selected by a logged image-offload decision keeps its own identity and currently resolved access in replacement text, and its normalized attachment is not read or transformed. When the retained occurrences' exact base64 payload still exceeds the route's `maxRequestImageBytes`, the call fails with `IMAGE_OFFLOAD_REQUIRED` so `dsh-compaction-image-offload` records the selected occurrences in an `image/offload` event and retries the step. Provider-native replay metadata is restored only when the adapter validates it for the historical content. `imageRequestTarget(provider, model, image)` exposes the same request-image dimensions and byte target to screenshot consumers; adapters without image resizing preserve the normalized source.
212
+ The selected catalog model receives system-message text, conversation history, tools, and supported sampling fields. The adapter preserves later system messages in history order when the catalog model declares `supportsMidConvoSystemMessages`. Otherwise, it converts each non-empty later system message to a user message wrapped in `<system-reminder>` before passing it to pi-ai. The wrapper does not grant system-role priority. One-shot `GenerateOptions.system` precedes the initial history prompt. Repeated system messages remain repeated; empty system messages are skipped without discarding earlier text. Tool-update capabilities select the shared historical declaration projection; pi-ai receives initially active tools and grouped developer updates carrying additions and supported removals. When every projected declaration of an Anthropic request with tool updates is deferred, the initially active tools are one placeholder, `DeferredToolPlaceholder`, whose description tells the model never to call it; a call reaches the ordinary unknown-tool result. Anthropic receives later tool definitions inline in the update message. Replay preserves tool-call namespaces for dynamically loaded Responses tools. Each retained image is preceded by text naming its complete attachment id and actual request dimensions. When the current execution filesystem maps the attachment provider's host object, the text also carries a read-only normalized-object path and warns that normalization or request projection may have resized or re-encoded the upload. Each occurrence selected by a logged image-offload decision keeps its own identity and currently resolved access in replacement text, and its normalized attachment is not read or transformed. When the retained occurrences' exact base64 payload still exceeds the route's `maxRequestImageBytes`, the call fails with `IMAGE_OFFLOAD_REQUIRED` so `dsh-compaction-image-offload` records the selected occurrences in an `image/offload` event and retries the step. Provider-native replay metadata is restored only when the adapter validates it for the historical content. `imageRequestTarget(provider, model, image)` exposes the same request-image dimensions and byte target to screenshot consumers; adapters without image resizing preserve the normalized source.
213
213
 
214
214
  #### Token effect
215
215
 
@@ -217,13 +217,13 @@ Provider tokenization governs exact input. Retained images add the stable attach
217
217
 
218
218
  #### KV Cache effect
219
219
 
220
- Conversion preserves logical request order, while image handles and offload placeholders add model-visible text. A changed execution-world path rewrites a historical handle and can prevent reuse from that image even when attachment identity and request bytes stay stable. Changing adapter instance, provider, model, or another upstream token has the same suffix effect. An offload decision turns an earlier image into placeholder text, so reuse ends at that message; the omission never reverts, so the prefix stays stable afterwards.
220
+ Later system messages supplied to the adapter stay out of the initial prompt, preserving the preceding request prefix. This does not change the agent loop’s prompt admission, which consolidates updates on routes without native system-update support. Conversion preserves logical request order, while image handles and offload placeholders add model-visible text. A changed execution-world path rewrites a historical handle and can prevent reuse from that image even when attachment identity and request bytes stay stable. Changing adapter instance, provider, model, or another upstream token has the same suffix effect. An offload decision turns an earlier image into placeholder text, so reuse ends at that message; the omission never reverts, so the prefix stays stable afterwards.
221
221
 
222
222
  ### Provider response
223
223
 
224
224
  #### What the model sees
225
225
 
226
- pi-ai events become harness reasoning, text, tool-call, usage, and finish chunks. The adapter passes parsed tool arguments to the harness as raw JSON strings.
226
+ pi-ai events become harness reasoning, text, tool-call, usage, and finish chunks. The adapter passes parsed tool arguments to the harness as raw JSON strings. If pi-ai reports invalid completed arguments, the attempt fails with `MALFORMED_RESPONSE` before tool dispatch and publishes no successful replay state. The default normal retry policy excludes this code; an explicit retry policy still controls recovery.
227
227
 
228
228
  #### Token effect
229
229
 
@@ -253,11 +253,12 @@ These limits define where the adapter stops and future work begins. They are cur
253
253
  - **A modality declaration is not verified** — a model declaring `image` its gateway does not serve is refused by the provider after prompt admission. The durable image remains in history and the same misdeclared model can fail again; switching to a text-only model remains possible because the shared LLM runtime projects image references into stable text for that request.
254
254
  - **An unauthenticated route depends on its protocol** — a route naming no credential resolves as configured-but-keyless, but pi-ai's OpenAI-compatible implementation still requires an API key or an `Authorization` header, so a keyless local server needs a placeholder credential referenced by `apiKeyEnv` or an `Authorization` entry in `headers`.
255
255
  - **`GenerateOptions.stop` is unsupported** — pi-ai's common stream options cannot guarantee stop-sequence behavior across providers.
256
- - **Conversation update support comes only from the installed pi-ai catalog** — a route receives in-history prompt and tool updates only when its catalog model declares the mid-conversation compat flags, and profiles cannot set them; hand-declared routes and unflagged models receive the concatenated system messages and the complete current tool list at the start of each request.
256
+ - **Conversation update support comes only from the installed pi-ai catalog** — native system and tool updates require the catalog model’s mid-conversation compat flags, which profiles cannot set. Hand-declared routes and unflagged models receive later system text as user-role reminders and the complete current tool list at the start of each request.
257
257
  - **Images are accepted only in user and tool-result messages** — images in system, developer, or assistant history fail with `UNSUPPORTED_CONTENT` on both conversion paths.
258
258
  - **Provider HTTP status is unavailable** — pi-ai error events do not expose a stable HTTP status across providers.
259
259
  - **Retry policy is provider-owned, not an SDK retry** — pi-ai SDK retries stay disabled so durable agent steps and `llm/retry` events own every visible attempt, and direct `ctx.llm.stream()` calls remain single-attempt.
260
- - **Streamed JSON tool-call arguments avoid per-delta reparsing** — the installed pi-ai carries [`patches/@earendil-works__pi-ai@1.1.0.patch`](../../../patches/@earendil-works__pi-ai@1.1.0.patch), which removes the per-delta re-parse of the whole accumulated argument JSON in every stream adapter (upstream [earendil-works/pi#9265](https://github.com/earendil-works/pi/issues/9265)); unpatched, a multi-megabyte argument stream costs O(n²) CPU on the event loop and stalls every session in the process. Completion events supply parsed arguments; Responses may parse at both argument completion and output-item completion. This adapter reads only delta strings and finalized arguments. Re-apply or retire the patch on every pi-ai upgrade.
260
+ - **Streamed JSON tool-call arguments avoid per-delta reparsing** — the installed pi-ai carries [`patches/@earendil-works__pi-ai@1.3.0.patch`](../../../patches/@earendil-works__pi-ai@1.3.0.patch), which removes the per-delta re-parse of the whole accumulated argument JSON in every stream adapter (upstream [earendil-works/pi#9265](https://github.com/earendil-works/pi/issues/9265)); unpatched, a multi-megabyte argument stream costs O(n²) CPU on the event loop and stalls every session in the process. Completion events supply parsed arguments; Responses may parse at both argument completion and output-item completion. This adapter reads only delta strings and finalized arguments. Re-apply or retire the patch on every pi-ai upgrade.
261
+ - **Gemini tool-call thought signatures are patched into Chat Completions** — the same patch reads `tool_calls[].extra_content.google.thought_signature` from a streamed OpenAI-compatible response into the tool call's replay signature and sends it back as `extra_content` when the same model resumes (upstream [earendil-works/pi#10157](https://github.com/earendil-works/pi/issues/10157)); unpatched, Gemini rejects the next step of a tool-calling turn with HTTP 400. Encrypted OpenRouter reasoning details keep their `reasoning_details` replay.
261
262
 
262
263
  <a id="dev-note"></a>
263
264
  ### Dev Note
package/README.zh.md CHANGED
@@ -81,8 +81,8 @@ kind: "package-reference"
81
81
  | `models` | 已安装目录 | 整体替换路由目录;每个条目从已安装模型取默认值 |
82
82
  | `modelOverrides` | 无 | 重塑个别已安装目录模型,而不替换其余模型 |
83
83
  | `compat` | 目录检测 | 无法识别端点的协议兼容开关 |
84
- | `defaultContextWindow` | `262,144` | 未描述模型的容量回退 |
85
- | `defaultMaxTokens` | `32,768` | 未描述模型的输出上限回退 |
84
+ | `defaultContextWindow` | `1,000,000` | 未描述模型的容量回退 |
85
+ | `defaultMaxTokens` | `128,000` | 未描述模型的输出上限回退 |
86
86
  | `requestImagePixelBudget` | `4,194,304` | 每张确定性请求图片的总像素预算 |
87
87
  | `requestImageMaxBytes` | `1 MiB` | 每张请求图片在 base64 扩展前的编码字节目标 |
88
88
  | `maxRequestImageBytes` | `20 MiB` | base64 图片载荷总上限,保留图片超过时请求以 `IMAGE_OFFLOAD_REQUIRED` 失败 |
@@ -182,7 +182,7 @@ git add packages/llm/llm-pi-ai/src/provider-data.generated.ts
182
182
 
183
183
  ### 回放与词汇
184
184
 
185
- 成功 assistant 响应会存储带版本的、无损 JSON 回放状态,与产生它们的提供方和模型放在一起——响应级事实加每个流式块一条逐块条目。请求时,`LlmRuntime` 仅当同一适配器实例拥有两条路由时才传递回放状态;适配器校验它并恢复原生响应 id、提供方签名与可选的 `providerThinkingLevel` effort 元数据,缺失的 effort 元数据仍保持缺失。回放会对照 assistant 来源校验请求模型身份,并用它保留同模型签名;提供方报告的响应模型仅作为诊断元数据。回放状态缺失或无法使用时会降级为提供方无关内容,并保留 assistant 来源中必需的提供方和模型。pi-ai 工具调用参数是解析后的对象,因此适配器解析输入并重新字符串化输出,以符合 harness 原始 JSON 约定;pi-ai 流内错误事件映射为终止 `finish` 分片。 协议转换仅作用于请求副本。从 A 切换到 B 再切回 A 时,存储的内容保持完整,包括空文本块、工具 id、原始块顺序和原生回放元数据;不受支持的签名仅从发给其他协议的请求中省略。
185
+ 成功 assistant 响应会存储带版本的、无损 JSON 回放状态,与产生它们的提供方和模型放在一起——响应级事实加每个流式块一条逐块条目。请求时,`LlmRuntime` 仅当同一适配器实例拥有两条路由时才传递回放状态;适配器校验它并恢复原生响应 id、提供方签名与可选的 `providerThinkingLevel` effort 元数据,缺失的 effort 元数据仍保持缺失。回放会对照 assistant 来源校验请求模型身份,并用它保留同模型签名;提供方报告的响应模型仅作为诊断元数据。回放状态缺失或无法使用时会降级为提供方无关内容,并保留 assistant 来源中必需的提供方和模型。pi-ai 工具调用参数是解析后的对象,因此适配器解析输入并重新字符串化输出,以符合 harness 原始 JSON 约定;pi-ai 流内错误事件映射为终止 `finish` 分片。 协议转换仅作用于请求副本。从 A 切换到 B 再切回 A 时,存储的内容保持完整,包括空文本块、工具 id、原始块顺序和原生回放元数据;发给不同提供方、API 或模型的请求会省略不受支持的签名和推理块。缺少原生元数据的降级回放也会省略推理。切回原模型时,有效的原生回放会保留已存储的推理。
186
186
 
187
187
  </details>
188
188
 
@@ -209,7 +209,7 @@ git add packages/llm/llm-pi-ai/src/provider-data.generated.ts
209
209
 
210
210
  #### 模型看到什么
211
211
 
212
- 所选目录模型会收到系统消息文本、对话历史、工具以及支持的采样字段。适配器按历史顺序保留后续系统消息;pi-ai 负责各协议的消息位置,并为不支持对话中系统消息的模型将它们拼接到开头。单次调用的 `GenerateOptions.system` 放在初始历史提示词之前。重复的系统消息仍会重复发送;空系统消息会被跳过,不会丢弃之前的文本。工具更新能力选择共享的历史声明投影;pi-ai 接收初始可用工具,以及按开发者消息分组的新增和受支持的移除更新。当包含工具更新的 Anthropic 请求中所有投影后的声明均为延迟加载时,初始可用工具为一个占位工具 `DeferredToolPlaceholder`,其描述要求模型永不调用它;若被调用,会得到普通的未知工具结果。Anthropic 在更新消息中以内联方式接收后续工具定义。回放会保留工具调用命名空间,以支持动态加载的 Responses 工具。每张保留图片前都会有文本,注明其完整附件 id 与实际请求尺寸。当前执行文件系统可以映射附件提供方的宿主对象时,该文本还会携带只读规范化对象路径,并警告规范化或请求投影可能缩放或重新编码上传内容。日志中的图片省略决策选中的每个出现位置都会在替换文本中保留自己的身份与当前已解析访问方式,其规范化附件不会读取或变换。当保留的出现位置按精确 base64 载荷仍超过路由的 `maxRequestImageBytes` 时,调用以 `IMAGE_OFFLOAD_REQUIRED` 失败,由 `dsh-compaction-image-offload` 用 `image/offload` 事件记录所选位置并重试步骤。提供方原生回放元数据只在适配器针对历史内容校验通过后恢复。 `imageRequestTarget(provider, model, image)` 向截图调用方提供与模型请求一致的图片尺寸和字节目标;不缩放图片的适配器保留归一化后的原图。
212
+ 所选目录模型会收到系统消息文本、对话历史、工具以及支持的采样字段。目录模型声明 `supportsMidConvoSystemMessages` 时,适配器按历史顺序保留后续系统消息。否则,适配器在传给 pi-ai 之前,将每条非空的后续系统消息转换为以 `<system-reminder>` 包裹的用户消息。包裹文本不会赋予系统角色优先级。单次调用的 `GenerateOptions.system` 放在初始历史提示词之前。重复的系统消息仍会重复发送;空系统消息会被跳过,不会丢弃之前的文本。工具更新能力选择共享的历史声明投影;pi-ai 接收初始可用工具,以及按开发者消息分组的新增和受支持的移除更新。当包含工具更新的 Anthropic 请求中所有投影后的声明均为延迟加载时,初始可用工具为一个占位工具 `DeferredToolPlaceholder`,其描述要求模型永不调用它;若被调用,会得到普通的未知工具结果。Anthropic 在更新消息中以内联方式接收后续工具定义。回放会保留工具调用命名空间,以支持动态加载的 Responses 工具。每张保留图片前都会有文本,注明其完整附件 id 与实际请求尺寸。当前执行文件系统可以映射附件提供方的宿主对象时,该文本还会携带只读规范化对象路径,并警告规范化或请求投影可能缩放或重新编码上传内容。日志中的图片省略决策选中的每个出现位置都会在替换文本中保留自己的身份与当前已解析访问方式,其规范化附件不会读取或变换。当保留的出现位置按精确 base64 载荷仍超过路由的 `maxRequestImageBytes` 时,调用以 `IMAGE_OFFLOAD_REQUIRED` 失败,由 `dsh-compaction-image-offload` 用 `image/offload` 事件记录所选位置并重试步骤。提供方原生回放元数据只在适配器针对历史内容校验通过后恢复。 `imageRequestTarget(provider, model, image)` 向截图调用方提供与模型请求一致的图片尺寸和字节目标;不缩放图片的适配器保留归一化后的原图。
213
213
 
214
214
  #### Token 影响
215
215
 
@@ -217,13 +217,13 @@ git add packages/llm/llm-pi-ai/src/provider-data.generated.ts
217
217
 
218
218
  #### KV Cache 影响
219
219
 
220
- 转换保持逻辑请求顺序,图片句柄与卸载占位符则会添加模型可见文本。即使附件身份与请求字节保持稳定,执行世界路径变化也会改写历史句柄,并可能从该图片起阻止复用。更换适配器实例、提供方、模型或其他上游 token 具有相同的后缀影响。一次省略决策会把较早图片换成占位文本,因此复用在该消息处结束;省略永不回退,此后前缀保持稳定。
220
+ 传给适配器的后续系统消息不会进入初始提示词,从而保留此前的请求前缀。这不改变 Agent loop 的提示词纳入行为;它仍在不支持原生系统更新的路由上合并更新。转换保持逻辑请求顺序,图片句柄与卸载占位符则会添加模型可见文本。即使附件身份与请求字节保持稳定,执行世界路径变化也会改写历史句柄,并可能从该图片起阻止复用。更换适配器实例、提供方、模型或其他上游 token 具有相同的后缀影响。一次省略决策会把较早图片换成占位文本,因此复用在该消息处结束;省略永不回退,此后前缀保持稳定。
221
221
 
222
222
  ### 提供方响应
223
223
 
224
224
  #### 模型看到什么
225
225
 
226
- pi-ai 事件变成 harness 的推理、文本、工具调用、用量与 finish 分片。适配器把解析后的工具参数以原始 JSON 字符串传给 harness。
226
+ pi-ai 事件变成 harness 的推理、文本、工具调用、用量与 finish 分片。适配器把解析后的工具参数以原始 JSON 字符串传给 harness。如果 pi-ai 报告已完成调用的参数无效,本次尝试会在分派工具前以 `MALFORMED_RESPONSE` 失败,且不发布成功的回放状态。默认的普通重试策略不重试此错误码;显式重试策略仍然控制恢复。
227
227
 
228
228
  #### Token 影响
229
229
 
@@ -253,11 +253,12 @@ pi-ai 事件变成 harness 的推理、文本、工具调用、用量与 finish
253
253
  - **模态声明不受校验**——声明 `image` 而其网关不支持的模型会在提示词准入后被提供方拒绝。持久图片仍留在历史中,同一误声明模型可能再次失败;切换到纯文本模型仍然可行,因为共享 LLM 运行时会针对该请求把图片引用投影为稳定文本。
254
254
  - **未认证路由取决于其协议**——不点名凭据的路由解析为已配置但无密钥,但 pi-ai 的 OpenAI 兼容实现仍要求 API 密钥或 `Authorization` 标头,因此无密钥本地服务器需要由 `apiKeyEnv` 引用或 `headers` 中的 `Authorization` 条目提供的占位凭据。
255
255
  - **不支持 `GenerateOptions.stop`**——pi-ai 的通用流式选项无法跨提供方保证停止序列行为。
256
- - **对话更新支持只来自已安装的 pi-ai 目录**——只有当路由的目录模型声明了对话中 compat 标志时,该路由才会在历史中接收提示词与工具更新,且 profile 不能设置这些标志;手工声明的路由与未标记的模型会在每次请求开头接收拼接后的系统消息与完整的当前工具列表。
256
+ - **对话更新支持只来自已安装的 pi-ai 目录**——原生系统与工具更新需要目录模型的对话中 compat 标志,profile 不能设置这些标志。手工声明的路由与未标记的模型会以用户角色提醒接收后续系统文本,并在每次请求开头接收完整的当前工具列表。
257
257
  - **图片只在 user 与工具结果消息中被接受**——system、developer 或 assistant 历史中的图片在两条转换路径上都会以 `UNSUPPORTED_CONTENT` 失败。
258
258
  - **提供方 HTTP 状态不可用**——pi-ai 错误事件不跨提供方暴露稳定 HTTP 状态。
259
259
  - **重试策略由提供方自有,而非 SDK 重试**——pi-ai SDK 重试保持禁用,因此持久 agent(智能体)步骤与 `llm/retry` 事件拥有每个可见尝试,直接 `ctx.llm.stream()` 调用仍是单次尝试。
260
- - **流式 JSON 工具调用参数避免逐 delta 重复解析**——安装的 pi-ai 带有 [`patches/@earendil-works__pi-ai@1.1.0.patch`](../../../patches/@earendil-works__pi-ai@1.1.0.patch),它移除了每个流适配器中对整段累计参数 JSON 的逐 delta 重新解析(上游 [earendil-works/pi#9265](https://github.com/earendil-works/pi/issues/9265));未打补丁时,数 MB 的参数流会在事件循环上消耗 O(n²) CPU,并使进程内所有会话停滞。完成事件提供解析后的参数;Responses 可能在参数完成和输出项完成时分别解析。本适配器只读取 delta 字符串与最终参数。每次升级 pi-ai 时都要重新应用或撤销该补丁。
260
+ - **流式 JSON 工具调用参数避免逐 delta 重复解析**——安装的 pi-ai 带有 [`patches/@earendil-works__pi-ai@1.3.0.patch`](../../../patches/@earendil-works__pi-ai@1.3.0.patch),它移除了每个流适配器中对整段累计参数 JSON 的逐 delta 重新解析(上游 [earendil-works/pi#9265](https://github.com/earendil-works/pi/issues/9265));未打补丁时,数 MB 的参数流会在事件循环上消耗 O(n²) CPU,并使进程内所有会话停滞。完成事件提供解析后的参数;Responses 可能在参数完成和输出项完成时分别解析。本适配器只读取 delta 字符串与最终参数。每次升级 pi-ai 时都要重新应用或撤销该补丁。
261
+ - **Chat Completions 中的 Gemini 工具调用思考签名由补丁保留**——同一补丁把 OpenAI 兼容流式响应里的 `tool_calls[].extra_content.google.thought_signature` 读入工具调用的重放签名,并在同一模型继续时以 `extra_content` 发回(上游 [earendil-works/pi#10157](https://github.com/earendil-works/pi/issues/10157));未打补丁时,Gemini 会以 HTTP 400 拒绝工具调用轮次的下一步。OpenRouter 的加密推理详情仍通过 `reasoning_details` 重放。
261
262
 
262
263
  <a id="dev-note"></a>
263
264
  ### 开发备注
package/lib/index.js CHANGED
@@ -434,7 +434,8 @@ const RESPONSES_COMPAT_GATE = {
434
434
  supportsAdditionalTools: "withhold",
435
435
  supportsToolSearch: "withhold",
436
436
  supportsExplicitPromptCacheMode: "withhold",
437
- supportsMidConvoSystemMessages: "withhold"
437
+ supportsMidConvoSystemMessages: "withhold",
438
+ supportsMidConvoEffort: "withhold"
438
439
  };
439
440
  /**
440
441
  * The compat gate of every wire protocol a profile may configure.
@@ -956,9 +957,9 @@ const DEFAULT_REQUEST_IMAGE_PIXEL_BUDGET = 2048 * 2048;
956
957
  /** Default raw encoded-byte target before inline base64 expansion; the smallest quality-ladder output is used when no quality fits. */
957
958
  const DEFAULT_REQUEST_IMAGE_MAX_BYTES = 1024 * 1024;
958
959
  /** Context capacity assumed for a model neither configuration nor the catalog sizes. */
959
- const DEFAULT_CONTEXT_WINDOW = 262144;
960
+ const DEFAULT_CONTEXT_WINDOW = 1e6;
960
961
  /** Output capability assumed for a model neither configuration nor the catalog sizes. */
961
- const DEFAULT_MAX_TOKENS = 32768;
962
+ const DEFAULT_MAX_TOKENS = 128e3;
962
963
  /**
963
964
  * Modalities assumed for a model neither configuration nor the catalog
964
965
  * declares. Text is the floor every supported protocol certainly carries, so
@@ -1147,8 +1148,8 @@ function resolveProfiles(providers, validation = "strict") {
1147
1148
  ...source.modelOverrides === void 0 ? {} : { modelOverrides: source.modelOverrides },
1148
1149
  ...source.compat === void 0 ? {} : { compat: source.compat },
1149
1150
  defaultInput,
1150
- defaultContextWindow: source.defaultContextWindow ?? 262144,
1151
- defaultMaxTokens: source.defaultMaxTokens ?? 32768
1151
+ defaultContextWindow: source.defaultContextWindow ?? 1e6,
1152
+ defaultMaxTokens: source.defaultMaxTokens ?? 128e3
1152
1153
  }, validation);
1153
1154
  catalogError = catalog.modelErrors.values().next().value;
1154
1155
  piProvider = buildProvider({
@@ -1330,18 +1331,26 @@ function appendAssistant(message, messages, toolNames, onReplayDegrade) {
1330
1331
  messages.push(assistant);
1331
1332
  }
1332
1333
  /** Append shared system, developer, and assistant roles; true when consumed. */
1333
- function appendSharedHistory(message, options, messages, toolNames, onReplayDegrade) {
1334
+ function appendSharedHistory(message, options, messages, toolNames, supportsMidConvoSystemMessages, onReplayDegrade) {
1334
1335
  if (message.role === "developer") {
1335
1336
  appendDeveloper(message, options, messages);
1336
1337
  return true;
1337
1338
  }
1338
1339
  if (message.role === "system") {
1339
1340
  const content = flattenText(message);
1340
- if (content.length > 0) messages.push({
1341
+ if (content.length > 0) if (supportsMidConvoSystemMessages) messages.push({
1341
1342
  role: "system",
1342
1343
  content,
1343
1344
  timestamp: 0
1344
1345
  });
1346
+ else {
1347
+ const reminder = content.replaceAll("</system-reminder>", "<\\/system-reminder>");
1348
+ messages.push({
1349
+ role: "user",
1350
+ content: `<system-reminder>\n${reminder}\n</system-reminder>`,
1351
+ timestamp: 0
1352
+ });
1353
+ }
1345
1354
  return true;
1346
1355
  }
1347
1356
  if (message.role === "assistant") {
@@ -1350,14 +1359,14 @@ function appendSharedHistory(message, options, messages, toolNames, onReplayDegr
1350
1359
  }
1351
1360
  return false;
1352
1361
  }
1353
- function textOnlyContext(options, onReplayDegrade) {
1362
+ function textOnlyContext(options, supportsMidConvoSystemMessages, onReplayDegrade) {
1354
1363
  assertSupportedHistory(options.messages);
1355
1364
  const split = splitSystemPrompt(options);
1356
1365
  const toolNames = /* @__PURE__ */ new Map();
1357
1366
  const messages = [];
1358
1367
  for (const message of split.messages) {
1359
1368
  if (contentHasImage(message.content)) throw new LlmError("pi-ai image conversion requires the durable attachment service", "UNSUPPORTED_CONTENT");
1360
- if (appendSharedHistory(message, options, messages, toolNames, onReplayDegrade)) continue;
1369
+ if (appendSharedHistory(message, options, messages, toolNames, supportsMidConvoSystemMessages, onReplayDegrade)) continue;
1361
1370
  if (message.role === "tool") {
1362
1371
  messages.push(toolResultOf(message, toolNames, flattenText(message)));
1363
1372
  continue;
@@ -1382,10 +1391,10 @@ function requestImageTarget(ref, budget) {
1382
1391
  maxBytes: budget.maxBytes
1383
1392
  };
1384
1393
  }
1385
- function toPiContext(options, images, onReplayDegrade) {
1386
- return images === void 0 ? textOnlyContext(options, onReplayDegrade) : toPiContextWithImages(options, images, onReplayDegrade);
1394
+ function toPiContext(options, images, onReplayDegrade, supportsMidConvoSystemMessages = false) {
1395
+ return images === void 0 ? textOnlyContext(options, supportsMidConvoSystemMessages, onReplayDegrade) : toPiContextWithImages(options, images, supportsMidConvoSystemMessages, onReplayDegrade);
1387
1396
  }
1388
- async function toPiContextWithImages(options, images, onReplayDegrade) {
1397
+ async function toPiContextWithImages(options, images, supportsMidConvoSystemMessages, onReplayDegrade) {
1389
1398
  const { attachments, resolveImageAccess, maxRequestImageBytes } = images;
1390
1399
  const requestImagePolicy = images.requestImagePolicy ?? {
1391
1400
  maxPixels: 4194304,
@@ -1405,7 +1414,7 @@ async function toPiContextWithImages(options, images, onReplayDegrade) {
1405
1414
  const toolNames = /* @__PURE__ */ new Map();
1406
1415
  const messages = [];
1407
1416
  for (const message of exactMessages) {
1408
- if (appendSharedHistory(message, options, messages, toolNames, onReplayDegrade)) continue;
1417
+ if (appendSharedHistory(message, options, messages, toolNames, supportsMidConvoSystemMessages, onReplayDegrade)) continue;
1409
1418
  if (message.role === "tool") {
1410
1419
  messages.push(toolResultOf(message, toolNames, userContent(message.content, requestImages, resolveImageAccess)));
1411
1420
  continue;
@@ -1532,10 +1541,13 @@ function mapStopReason(message, contextWindow) {
1532
1541
  * in-band terminal error an aborted finish.
1533
1542
  * @param requestedModel - request model identity recorded for durable replay.
1534
1543
  * @returns the harness chunks, ending with `usage` then `finish`; throws
1535
- * `LlmError` (`STREAM_CLOSED`) if the source ends without a terminal event.
1544
+ * `LlmError` (`STREAM_CLOSED`) if the source ends without a terminal event, or
1545
+ * `MALFORMED_RESPONSE` when completed tool arguments are invalid. Length-limited
1546
+ * output retains its terminal reason so the assembler can discard incomplete calls.
1536
1547
  */
1537
1548
  async function* toStreamChunks(events, contextWindow, callerSignal, requestedModel) {
1538
1549
  const toolIds = /* @__PURE__ */ new Map();
1550
+ let argumentsError;
1539
1551
  for await (const event of events) switch (event.type) {
1540
1552
  case "start": break;
1541
1553
  case "text_start":
@@ -1613,6 +1625,10 @@ async function* toStreamChunks(events, contextWindow, callerSignal, requestedMod
1613
1625
  break;
1614
1626
  }
1615
1627
  case "toolcall_end":
1628
+ if (event.toolCall.argumentsError !== void 0) {
1629
+ argumentsError ??= `Tool call "${event.toolCall.name}": ${event.toolCall.argumentsError}`;
1630
+ break;
1631
+ }
1616
1632
  yield {
1617
1633
  type: "block-end",
1618
1634
  index: event.contentIndex,
@@ -1629,6 +1645,7 @@ async function* toStreamChunks(events, contextWindow, callerSignal, requestedMod
1629
1645
  type: "usage",
1630
1646
  usage: mapUsage(event.message.usage)
1631
1647
  };
1648
+ if (argumentsError !== void 0 && event.message.stopReason !== "length") throw new LlmError(argumentsError, "MALFORMED_RESPONSE");
1632
1649
  yield {
1633
1650
  type: "finish",
1634
1651
  reason: mapStopReason(event.message, contextWindow),
@@ -1968,7 +1985,7 @@ var PiAiAdapter = class extends LlmAdapter {
1968
1985
  reason
1969
1986
  });
1970
1987
  };
1971
- const context = attachments === void 0 ? toPiContext(request, void 0, onReplayDegrade) : await toPiContext({
1988
+ const context = attachments === void 0 ? toPiContext(request, void 0, onReplayDegrade, updates.systemPromptUpdate === "in-history") : await toPiContext({
1972
1989
  ...request,
1973
1990
  signal: watchdog.signal
1974
1991
  }, {
@@ -1979,7 +1996,7 @@ var PiAiAdapter = class extends LlmAdapter {
1979
1996
  maxPixels: profile.requestImagePixelBudget,
1980
1997
  maxBytes: profile.requestImageMaxBytes
1981
1998
  }
1982
- }, onReplayDegrade);
1999
+ }, onReplayDegrade, updates.systemPromptUpdate === "in-history");
1983
2000
  const iterator = toStreamChunks(snapshot.models.streamSimple(model, context, {
1984
2001
  ...profileOptions(profile, reasoning, apiKey),
1985
2002
  ...options.temperature === void 0 ? {} : { temperature: options.temperature },
@@ -2692,7 +2709,7 @@ const PROVIDER_DATA = {
2692
2709
  },
2693
2710
  "kimi-coding": {
2694
2711
  env: ["KIMI_API_KEY"],
2695
- defaultBaseURL: "https://api.kimi.com/coding"
2712
+ defaultBaseURL: "https://api.kimi.com/coding/v1"
2696
2713
  },
2697
2714
  "meta": {
2698
2715
  env: ["META_API_KEY"],
@@ -115,6 +115,7 @@ declare const RESPONSES_COMPAT_GATE: {
115
115
  readonly supportsToolSearch: "withhold";
116
116
  readonly supportsExplicitPromptCacheMode: "withhold";
117
117
  readonly supportsMidConvoSystemMessages: "withhold";
118
+ readonly supportsMidConvoEffort: "withhold";
118
119
  };
119
120
  /** Disposition of every `AnthropicMessagesCompat` field; a drift gate like the one above. */
120
121
  declare const ANTHROPIC_COMPAT_GATE: {
@@ -35,9 +35,9 @@ export declare const DEFAULT_REQUEST_IMAGE_PIXEL_BUDGET: number;
35
35
  /** Default raw encoded-byte target before inline base64 expansion; the smallest quality-ladder output is used when no quality fits. */
36
36
  export declare const DEFAULT_REQUEST_IMAGE_MAX_BYTES: number;
37
37
  /** Context capacity assumed for a model neither configuration nor the catalog sizes. */
38
- export declare const DEFAULT_CONTEXT_WINDOW = 262144;
38
+ export declare const DEFAULT_CONTEXT_WINDOW = 1000000;
39
39
  /** Output capability assumed for a model neither configuration nor the catalog sizes. */
40
- export declare const DEFAULT_MAX_TOKENS = 32768;
40
+ export declare const DEFAULT_MAX_TOKENS = 128000;
41
41
  /**
42
42
  * Modalities assumed for a model neither configuration nor the catalog
43
43
  * declares. Text is the floor every supported protocol certainly carries, so
@@ -89,13 +89,13 @@ export interface PiAiProviderProfile {
89
89
  compat?: PiAiCompatProfile;
90
90
  /**
91
91
  * Context capacity for a model this route lists that neither the entry nor
92
- * the installed catalog sizes (default 262,144). A guess by construction, so
92
+ * the installed catalog sizes (default 1,000,000). A guess by construction, so
93
93
  * a deployment whose gateway serves smaller models corrects it here.
94
94
  */
95
95
  defaultContextWindow?: number;
96
96
  /**
97
97
  * Output capability for a model this route lists that neither the entry nor
98
- * the installed catalog sizes (default 32,768). This sizes the model; it
98
+ * the installed catalog sizes (default 128,000). This sizes the model; it
99
99
  * never becomes a per-request cap on its own.
100
100
  */
101
101
  defaultMaxTokens?: number;
@@ -211,7 +211,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
211
211
  medium?: number | null;
212
212
  high?: number | null;
213
213
  } & import("@deepseek-ai/cosmokit").Dict) | null;
214
- cacheRetention?: "none" | "short" | "long" | null;
214
+ cacheRetention?: "none" | "long" | "short" | null;
215
215
  transport?: "auto" | "sse" | "websocket" | "websocket-cached" | null;
216
216
  timeoutMs?: number | null;
217
217
  websocketConnectTimeoutMs?: number | null;
@@ -244,7 +244,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
244
244
  medium: z<number, number, "plain">;
245
245
  high: z<number, number, "plain">;
246
246
  }>>, "plain">;
247
- cacheRetention: z<"none" | "short" | "long", "none" | "short" | "long", "plain">;
247
+ cacheRetention: z<"none" | "long" | "short", "none" | "long" | "short", "plain">;
248
248
  transport: z<"auto" | "sse" | "websocket" | "websocket-cached", "auto" | "sse" | "websocket" | "websocket-cached", "plain">;
249
249
  timeoutMs: z<number, number, "plain">;
250
250
  websocketConnectTimeoutMs: z<number, number, "plain">;
@@ -274,7 +274,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
274
274
  medium?: number | null;
275
275
  high?: number | null;
276
276
  } & import("@deepseek-ai/cosmokit").Dict) | null;
277
- cacheRetention?: "none" | "short" | "long" | null;
277
+ cacheRetention?: "none" | "long" | "short" | null;
278
278
  transport?: "auto" | "sse" | "websocket" | "websocket-cached" | null;
279
279
  timeoutMs?: number | null;
280
280
  websocketConnectTimeoutMs?: number | null;
@@ -307,7 +307,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
307
307
  medium: z<number, number, "plain">;
308
308
  high: z<number, number, "plain">;
309
309
  }>>, "plain">;
310
- cacheRetention: z<"none" | "short" | "long", "none" | "short" | "long", "plain">;
310
+ cacheRetention: z<"none" | "long" | "short", "none" | "long" | "short", "plain">;
311
311
  transport: z<"auto" | "sse" | "websocket" | "websocket-cached", "auto" | "sse" | "websocket" | "websocket-cached", "plain">;
312
312
  timeoutMs: z<number, number, "plain">;
313
313
  websocketConnectTimeoutMs: z<number, number, "plain">;
@@ -37,10 +37,11 @@ export declare function requestImageTarget(ref: ImageAttachmentRef, budget: PiIm
37
37
  * @param options - projected request; one-shot system text precedes the leading history prompt.
38
38
  * @param images - absent; selects the synchronous conversion.
39
39
  * @param onReplayDegrade - forwarded to {@link toPiAssistant} for each assistant message.
40
+ * @param supportsMidConvoSystemMessages - native model capability; otherwise later system text becomes a user-role system-reminder.
40
41
  * @returns the pi-ai context; `tools` is omitted when the request declares none.
41
42
  * @throws {LlmError} `UNSUPPORTED_CONTENT` for images in any history role, including a leading system message.
42
43
  */
43
- export declare function toPiContext(options: GenerateOptions, images?: undefined, onReplayDegrade?: (reason: string) => void): PiContext;
44
+ export declare function toPiContext(options: GenerateOptions, images?: undefined, onReplayDegrade?: (reason: string) => void, supportsMidConvoSystemMessages?: boolean): PiContext;
44
45
  /**
45
46
  * Convert harness history to a pi-ai Context while resolving durable images.
46
47
  * Tool result names are recovered from preceding assistant tool calls. Image
@@ -51,7 +52,8 @@ export declare function toPiContext(options: GenerateOptions, images?: undefined
51
52
  * @param options - projected request; one-shot system text precedes the leading history prompt.
52
53
  * @param images - attachment provider, current path resolver, and request limits.
53
54
  * @param onReplayDegrade - forwarded to {@link toPiAssistant} for each assistant message.
55
+ * @param supportsMidConvoSystemMessages - native model capability; otherwise later system text becomes a user-role system-reminder.
54
56
  * @returns the asynchronously resolved pi-ai context.
55
57
  */
56
- export declare function toPiContext(options: GenerateOptions, images: PiImageRequestContext, onReplayDegrade?: (reason: string) => void): Promise<PiContext>;
58
+ export declare function toPiContext(options: GenerateOptions, images: PiImageRequestContext, onReplayDegrade?: (reason: string) => void, supportsMidConvoSystemMessages?: boolean): Promise<PiContext>;
57
59
  //# sourceMappingURL=context.d.ts.map
@@ -37,7 +37,9 @@ export declare function mapStopReason(message: AssistantMessage, contextWindow?:
37
37
  * in-band terminal error an aborted finish.
38
38
  * @param requestedModel - request model identity recorded for durable replay.
39
39
  * @returns the harness chunks, ending with `usage` then `finish`; throws
40
- * `LlmError` (`STREAM_CLOSED`) if the source ends without a terminal event.
40
+ * `LlmError` (`STREAM_CLOSED`) if the source ends without a terminal event, or
41
+ * `MALFORMED_RESPONSE` when completed tool arguments are invalid. Length-limited
42
+ * output retains its terminal reason so the assembler can discard incomplete calls.
41
43
  */
42
44
  export declare function toStreamChunks(events: AsyncIterable<AssistantMessageEvent>, contextWindow?: number, callerSignal?: AbortSignal, requestedModel?: string): AsyncGenerator<StreamChunk>;
43
45
  //# sourceMappingURL=stream.d.ts.map
package/locale/de.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Anpassung des Pi-AI-Modells",
4
+ "description": "Bereitstellung der DeepSeek-Modellanpassung über pi-ai für DeepSeek Harness als designverifizierte Implementierung von dsh-llm-deepseek."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "adaptación del modelo pi-ai",
4
+ "description": "Proporcionar DeepSeek adaptación del modelo a través de pi-ai para DeepSeek Harness como una implementación de diseño verificado de dsh-llm-deepseek."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "adaptation du modèle pi-ai",
4
+ "description": "Fournir une adaptation de modèle DeepSeek via pi-ai pour DeepSeek Harness en tant qu'implémentation vérifiée par la conception de dsh-llm-deepseek."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "pi-ai モデルアダプター",
4
+ "description": "pi-ai を通じて DeepSeek Harness に DeepSeek モデルを接続する、dsh-llm-deepseek の設計検証用実装です。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "adaptação do modelo pi-ai",
4
+ "description": "Fornecimento de adaptação do modelo DeepSeek via pi-ai para DeepSeek Harness como uma implementação verificada por design de dsh-llm-deepseek."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "адаптация модели пи-ай",
4
+ "description": "Обеспечение адаптации модели DeepSeek через pi-ai для DeepSeek Harness в качестве проверенной реализации dsh-llm-deepseek."
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-llm-pi-ai",
3
3
  "description": "pi-ai-backed DeepSeek adapter for the DeepSeek Harness LLM seam (design-verification twin of dsh-llm-deepseek)",
4
- "version": "0.2.1-rc.4",
4
+ "version": "0.2.2-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,36 +29,40 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "peerDependencies": {
32
- "@deepseek-ai/cordis": "~4.0.5",
33
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.4",
34
- "@deepseek-ai/dsh-authorization": "0.2.1-rc.4",
35
- "@deepseek-ai/dsh-credentials": "0.2.1-rc.4",
36
- "@deepseek-ai/dsh-fs": "0.2.1-rc.4",
37
- "@deepseek-ai/dsh-launch-environment": "0.2.1-rc.4",
38
- "@deepseek-ai/dsh-llm": "0.2.1-rc.4",
39
- "@deepseek-ai/dsh-timeout": "0.2.1-rc.4",
40
- "@deepseek-ai/cordis-plugin-loader": "~1.0.6"
32
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1",
33
+ "@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.1",
34
+ "@deepseek-ai/dsh-attachment": "0.2.2-alpha.2",
35
+ "@deepseek-ai/dsh-authorization": "0.2.2-alpha.2",
36
+ "@deepseek-ai/dsh-credentials": "0.2.2-alpha.2",
37
+ "@deepseek-ai/dsh-fs": "0.2.2-alpha.2",
38
+ "@deepseek-ai/dsh-launch-environment": "0.2.2-alpha.2",
39
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
40
+ "@deepseek-ai/dsh-timeout": "0.2.2-alpha.2"
41
41
  },
42
42
  "dependencies": {
43
- "@deepseek-ai/dsh-brand": "0.2.1-rc.4",
44
- "@deepseek-ai/dsh-util-values": "0.2.1-rc.4",
45
- "@deepseek-ai/schemastery": "~3.18.5",
46
- "@earendil-works/pi-ai": "^1.1.0"
43
+ "@deepseek-ai/dsh-brand": "0.2.2-alpha.2",
44
+ "@deepseek-ai/dsh-util-values": "0.2.2-alpha.2",
45
+ "@deepseek-ai/schemastery": "~3.18.6-alpha.1",
46
+ "@earendil-works/pi-ai": "^1.3.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@deepseek-ai/cordis": "~4.0.5",
50
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.4",
51
- "@deepseek-ai/dsh-authorization": "0.2.1-rc.4",
52
- "@deepseek-ai/dsh-credentials": "0.2.1-rc.4",
53
- "@deepseek-ai/dsh-fs": "0.2.1-rc.4",
54
- "@deepseek-ai/dsh-launch-environment": "0.2.1-rc.4",
55
- "@deepseek-ai/dsh-llm": "0.2.1-rc.4",
56
- "@deepseek-ai/dsh-llm-deepseek": "0.2.1-rc.4",
57
- "@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.1-rc.4",
58
- "@deepseek-ai/dsh-timeout": "0.2.1-rc.4",
59
- "@deepseek-ai/dsh-http-proxy": "0.2.1-rc.4",
60
- "@deepseek-ai/cordis-plugin-loader": "~1.0.6",
61
- "@deepseek-ai/dsh-settings": "0.2.1-rc.4"
49
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1",
50
+ "@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.1",
51
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.2",
52
+ "@deepseek-ai/dsh-attachment": "0.2.2-alpha.2",
53
+ "@deepseek-ai/dsh-authorization": "0.2.2-alpha.2",
54
+ "@deepseek-ai/dsh-credentials": "0.2.2-alpha.2",
55
+ "@deepseek-ai/dsh-fs": "0.2.2-alpha.2",
56
+ "@deepseek-ai/dsh-http-proxy": "0.2.2-alpha.2",
57
+ "@deepseek-ai/dsh-launch-environment": "0.2.2-alpha.2",
58
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
59
+ "@deepseek-ai/dsh-llm-deepseek": "0.2.2-alpha.2",
60
+ "@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.2-alpha.2",
61
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
62
+ "@deepseek-ai/dsh-settings": "0.2.2-alpha.2",
63
+ "@deepseek-ai/dsh-timeout": "0.2.2-alpha.2",
64
+ "@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.2",
65
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2"
62
66
  },
63
67
  "peerDependenciesMeta": {
64
68
  "@deepseek-ai/cordis-plugin-loader": {