@xiaoso/dsh-tool-plus 0.1.2 → 0.1.4

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.
Files changed (67) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/lib/{abort-CsjZitYv.mjs → abort-Cwwm4Err.mjs} +1 -1
  4. package/lib/{amazon-bedrock-CfNIDi5k.mjs → amazon-bedrock-TVMpUTRG.mjs} +7 -7
  5. package/lib/{anthropic-BVfZdnMp.mjs → anthropic-BL6LFDQS.mjs} +12 -12
  6. package/lib/{anthropic-DGXmmg43.mjs → anthropic-CDmj476p.mjs} +2 -2
  7. package/lib/{api-key-login-BikQAfD-.mjs → api-key-login-CIDnXeYd.mjs} +1 -1
  8. package/lib/{aws-credentials-DrssNMn_.mjs → aws-credentials-B20dliS7.mjs} +5 -5
  9. package/lib/{azure-openai-responses-C-5q-5K2.mjs → azure-openai-responses-BkhsLmN3.mjs} +8 -8
  10. package/lib/{browser-render-z6b8Ljo9.mjs → browser-render-CmgvSNte.mjs} +2 -2
  11. package/lib/{bundled-references-D71z7_T3.mjs → bundled-references-ChZSPDFw.mjs} +2 -2
  12. package/lib/{callback-server-Di6C4RqI.mjs → callback-server-CFJK-jvK.mjs} +1 -1
  13. package/lib/{cursor-CQQtygwl.mjs → cursor-B6HcmplF.mjs} +1 -1
  14. package/lib/{cursor-Hr5Zw1gt.mjs → cursor-B8m6SqAH.mjs} +3 -3
  15. package/lib/{cursor-DXJxwdcg.mjs → cursor-CRpLpaZ3.mjs} +7 -7
  16. package/lib/{device-code-wZUbgPdB.mjs → device-code-CuXTWYwY.mjs} +1 -1
  17. package/lib/{devin-DXJoDlW2.mjs → devin-BcQwht1W.mjs} +1 -1
  18. package/lib/{devin-CF6UhCFw.mjs → devin-BvMfGevz.mjs} +2 -2
  19. package/lib/{devin-P37gURs_.mjs → devin-DUAfvBsW.mjs} +5 -5
  20. package/lib/{error-DoHuatWw.mjs → error-C-f_Wnw4.mjs} +1 -1
  21. package/lib/{event-stream-C-FmBYUt.mjs → event-stream-Dh2guZxS.mjs} +1 -1
  22. package/lib/{github-copilot-qETlj_bD.mjs → github-copilot-B3kQl0g0.mjs} +1 -1
  23. package/lib/{github-copilot-C2dTonBX.mjs → github-copilot-suDymKrx.mjs} +3 -3
  24. package/lib/{gitlab-duo-FQZiFRQe.mjs → gitlab-duo-BriUTP8k.mjs} +3 -3
  25. package/lib/{gitlab-duo-workflow-DLTabzOy.mjs → gitlab-duo-workflow-wK5Ljzmc.mjs} +2 -2
  26. package/lib/{google-BilwFSzx.mjs → google-CE5tFDod.mjs} +3 -3
  27. package/lib/{google-antigravity-BfBiINdu.mjs → google-antigravity-C1jgNljz.mjs} +2 -2
  28. package/lib/{google-auth-CWlKXJ-H.mjs → google-auth-DYJLM792.mjs} +3 -3
  29. package/lib/{google-gemini-cli-CB89ljNz.mjs → google-gemini-cli-8BT513Ul.mjs} +3 -3
  30. package/lib/{google-gemini-cli-CygFcR6N.mjs → google-gemini-cli-D6cSmfvB.mjs} +8 -8
  31. package/lib/{google-oauth-shared-Cn82h1o2.mjs → google-oauth-shared-BLVTvokk.mjs} +2 -2
  32. package/lib/{google-shared-CF1JrqTM.mjs → google-shared-CVbHK5vZ.mjs} +6 -6
  33. package/lib/{google-vertex-DgMhhFw8.mjs → google-vertex-Bui-ypAe.mjs} +5 -5
  34. package/lib/{identity-C0SPVyIZ.mjs → identity-HNO1Oe9B.mjs} +1 -1
  35. package/lib/{idle-iterator-HzbbfXP4.mjs → idle-iterator-CYAxUkSD.mjs} +2 -2
  36. package/lib/index.mjs +9250 -9237
  37. package/lib/{kimi-DHDO6Fde.mjs → kimi-DgcUpPtK.mjs} +4 -4
  38. package/lib/{launch-DwpE70Pv.mjs → launch-BmgEUycu.mjs} +2 -2
  39. package/lib/{markit-B9exZ0ZV.mjs → markit-DtGoRE6M.mjs} +2 -2
  40. package/lib/{minimax-code-vAhEXhev.mjs → minimax-code-Y3h5li9N.mjs} +1 -1
  41. package/lib/{models-Cp3PzU3l.mjs → models-DRA2c_8U.mjs} +1 -1
  42. package/lib/{ollama-TrkXTNqE.mjs → ollama-Df9ce-Cp.mjs} +8 -8
  43. package/lib/{openai-codex-CrjHtSH4.mjs → openai-codex-CAVI3Me-.mjs} +3 -3
  44. package/lib/{openai-codex-responses-C4uMpWNy.mjs → openai-codex-responses-BcnOotRB.mjs} +10 -10
  45. package/lib/{openai-completions-1ydXm5vF.mjs → openai-completions-Bq4WT47M.mjs} +13 -13
  46. package/lib/{openai-reasoning-fallback-CigKCyzc.mjs → openai-reasoning-fallback-DXsfiSXO.mjs} +2 -2
  47. package/lib/{openai-responses-CN79gRGQ.mjs → openai-responses-Mq_-PjvE.mjs} +10 -10
  48. package/lib/{opencode-CEGlimzL.mjs → opencode-BsVw9rCD.mjs} +1 -1
  49. package/lib/{perplexity-BLJN-8dM.mjs → perplexity-XgLF73E7.mjs} +2 -2
  50. package/lib/{proxy-XOYi58TM.mjs → proxy-D9lm7ONA.mjs} +1 -1
  51. package/lib/{scrapers-kdFCThln.mjs → scrapers-D145Jmdq.mjs} +4 -4
  52. package/lib/{stream-DveNFWSN.mjs → stream-Bjq8wjfr.mjs} +57 -57
  53. package/lib/{stream-markup-healing-C9eC7Gf8.mjs → stream-markup-healing-DZ6bVDxH.mjs} +3 -3
  54. package/lib/trash-cli.mjs +33 -6
  55. package/lib/{types-BUO0JXO-.mjs → types-DX_bvuus.mjs} +1 -1
  56. package/lib/{utils-B-mTYQBc.mjs → utils-CQHPEQ3W.mjs} +1 -1
  57. package/lib/{utils-fnV2zzp3.mjs → utils-Cp2Mxf_U.mjs} +3 -3
  58. package/lib/{utils-NmfqUq33.mjs → utils-DeT1yYiQ.mjs} +24 -24
  59. package/lib/{vision-guard-BsvOWmfB.mjs → vision-guard-mBmtAHx0.mjs} +2 -2
  60. package/lib/{wafer-Dpy7tL3l.mjs → wafer-BlhWLweO.mjs} +1 -1
  61. package/lib/{xai-oauth-BkPNQS-q.mjs → xai-oauth-5pORHUrg.mjs} +2 -2
  62. package/lib/{xiaomi-CG3TsYRz.mjs → xiaomi-7mE345KX.mjs} +1 -1
  63. package/lib/{zai--cewobzN.mjs → zai-CeNpMV3W.mjs} +2 -2
  64. package/lib/{zip-CqKW2-TK.mjs → zip-BK7UHCwX.mjs} +1 -1
  65. package/package.json +38 -39
  66. package/presets/package.json +2 -2
  67. package/lib/{src-D_e1qMwi.mjs → src-BcD0_rQR.mjs} +1 -1
package/README.en.md CHANGED
@@ -110,7 +110,7 @@ Works out of the box, no configuration needed. Common tweaks: background thresho
110
110
  - **dsh CLI**: installed globally, `npm i -g @deepseek-ai/dsh`
111
111
  - **Node.js** ≥ 22.19 or ≥ 24
112
112
  - **Git Bash** (recommended): serves as the bash execution environment on Windows
113
- - Targets DeepSeek Harness `dsh` v0.1.1-rc.2 (pre-release; interfaces may change)
113
+ - Targets DeepSeek Harness `dsh` v0.1.2-rc.1 (pre-release; interfaces may change)
114
114
 
115
115
  ## Notes
116
116
 
package/README.md CHANGED
@@ -106,7 +106,7 @@ npx @xiaoso/dsh-tool-plus-presets
106
106
  - **dsh CLI**:需全局安装,`npm i -g @deepseek-ai/dsh`
107
107
  - **Node.js** ≥ 22.19 或 ≥ 24
108
108
  - **Git Bash**(推荐):Windows 上作为 bash 执行环境
109
- - 适用于 DeepSeek Harness `dsh` v0.1.1-rc.2(pre-release,接口可能变动)
109
+ - 适用于 DeepSeek Harness `dsh` v0.1.2-rc.1(pre-release,接口可能变动)
110
110
 
111
111
  ## 注意事项
112
112
 
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { v as AbortError } from "./error-DoHuatWw.mjs";
3
+ import { v as AbortError } from "./error-C-f_Wnw4.mjs";
4
4
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/utils/abort.ts
5
5
  /**
6
6
  * Tracks whether a merged request signal was aborted by the caller or by provider-local logic.
@@ -1,12 +1,12 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { I as $flag, _ as parseStreamingJsonThrottled, g as parseStreamingJson } from "./src-D_e1qMwi.mjs";
4
- import { G as fetchWithRetry, I as BedrockApiError, U as EventStreamFrameError, l as finalize, r as ValidationError, v as AbortError } from "./error-DoHuatWw.mjs";
5
- import { C as kStreamingPartialJson, S as kStreamingLastParseLen, a as normalizeSystemPrompts, h as clearStreamingPartialJson, k as toolWireSchema, m as transformMessages, o as normalizeToolCallId, s as resolveCacheRetention, w as renderDemotedThinking, y as kStreamingBlockIndex } from "./utils-fnV2zzp3.mjs";
6
- import { i as resolveAwsBearerToken, n as resolveAwsCredentials, r as signRequest, s as resolveAwsAmbientRegion, t as invalidateAwsCredentialCache } from "./aws-credentials-DrssNMn_.mjs";
7
- import { o as mapEffortToAnthropicAdaptiveEffort, s as requireSupportedEffort, t as calculateCost } from "./models-Cp3PzU3l.mjs";
8
- import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
9
- import { i as getStreamFirstEventTimeoutMs, t as armPreResponseTimeout } from "./idle-iterator-HzbbfXP4.mjs";
3
+ import { I as $flag, _ as parseStreamingJsonThrottled, g as parseStreamingJson } from "./src-BcD0_rQR.mjs";
4
+ import { G as fetchWithRetry, I as BedrockApiError, U as EventStreamFrameError, l as finalize, r as ValidationError, v as AbortError } from "./error-C-f_Wnw4.mjs";
5
+ import { C as kStreamingPartialJson, S as kStreamingLastParseLen, a as normalizeSystemPrompts, h as clearStreamingPartialJson, k as toolWireSchema, m as transformMessages, o as normalizeToolCallId, s as resolveCacheRetention, w as renderDemotedThinking, y as kStreamingBlockIndex } from "./utils-Cp2Mxf_U.mjs";
6
+ import { i as resolveAwsBearerToken, n as resolveAwsCredentials, r as signRequest, s as resolveAwsAmbientRegion, t as invalidateAwsCredentialCache } from "./aws-credentials-B20dliS7.mjs";
7
+ import { o as mapEffortToAnthropicAdaptiveEffort, s as requireSupportedEffort, t as calculateCost } from "./models-DRA2c_8U.mjs";
8
+ import { t as AssistantMessageEventStream } from "./event-stream-Dh2guZxS.mjs";
9
+ import { i as getStreamFirstEventTimeoutMs, t as armPreResponseTimeout } from "./idle-iterator-CYAxUkSD.mjs";
10
10
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/aws-eventstream.ts
11
11
  /**
12
12
  * `application/vnd.amazon.eventstream` decoder.
@@ -1,19 +1,19 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
3
  import { r as __exportAll } from "./fs-promises-shim-Bx0fpxuk.mjs";
4
- import { P as $env, S as debug, T as warn, _ as parseStreamingJsonThrottled, a as readSseEvents, h as parseJsonWithRepair, q as getInstallId, y as isEnoent } from "./src-D_e1qMwi.mjs";
5
- import { A as isTransientStreamParseError, D as isFastModeUnsupported, E as isCopilotTransientModelError, F as AnthropicStreamEnvelopeError, M as AnthropicApiError, N as AnthropicConnectionError, O as isGrammarError, P as AnthropicConnectionTimeoutError, a as isTransientStatus, f as getHeadersFromError, i as isProviderRetryableError$1, k as isStreamEnvelopeError, l as finalize, n as StreamTimeoutError, p as getRetryAfterMsFromHeaders, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, u as finalizeErrorMessage, v as AbortError } from "./error-DoHuatWw.mjs";
6
- import { A as NO_STRICT, C as kStreamingPartialJson, R as spillToDescription, S as kStreamingLastParseLen, a as normalizeSystemPrompts, h as clearStreamingPartialJson, k as toolWireSchema, m as transformMessages, o as normalizeToolCallId, s as resolveCacheRetention, w as renderDemotedThinking, y as kStreamingBlockIndex, z as COMBINATOR_KEYS } from "./utils-fnV2zzp3.mjs";
4
+ import { P as $env, S as debug, T as warn, _ as parseStreamingJsonThrottled, a as readSseEvents, h as parseJsonWithRepair, q as getInstallId, y as isEnoent } from "./src-BcD0_rQR.mjs";
5
+ import { A as isTransientStreamParseError, D as isFastModeUnsupported, E as isCopilotTransientModelError, F as AnthropicStreamEnvelopeError, M as AnthropicApiError, N as AnthropicConnectionError, O as isGrammarError, P as AnthropicConnectionTimeoutError, a as isTransientStatus, f as getHeadersFromError, i as isProviderRetryableError$1, k as isStreamEnvelopeError, l as finalize, n as StreamTimeoutError, p as getRetryAfterMsFromHeaders, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, u as finalizeErrorMessage, v as AbortError } from "./error-C-f_Wnw4.mjs";
6
+ import { A as NO_STRICT, C as kStreamingPartialJson, R as spillToDescription, S as kStreamingLastParseLen, a as normalizeSystemPrompts, h as clearStreamingPartialJson, k as toolWireSchema, m as transformMessages, o as normalizeToolCallId, s as resolveCacheRetention, w as renderDemotedThinking, y as kStreamingBlockIndex, z as COMBINATOR_KEYS } from "./utils-Cp2Mxf_U.mjs";
7
7
  import { n as isRecord } from "./type-guards-B9VVjRDK.mjs";
8
- import { Ct as withEmptyCompletionRetry, K as getOpenAIPromptCacheKey, _t as isForcedToolChoice, gt as resolveGitHubCopilotBaseUrl, ht as hasCopilotVisionInput, mt as buildCopilotDynamicHeaders, n as getEnvApiKey, t as OUTPUT_FALLBACK_BUFFER, wt as isFoundryEnabled } from "./stream-DveNFWSN.mjs";
9
- import { t as createAbortSourceTracker } from "./abort-CsjZitYv.mjs";
10
- import { N as isVertexRawPredictUrl, f as isAnthropicSigningProxyUrl, j as hostMatchesUrl, n as getBundledModel, o as mapEffortToAnthropicAdaptiveEffort, p as isOfficialAnthropicApiUrl, t as calculateCost } from "./models-Cp3PzU3l.mjs";
11
- import { r as isAnthropicOAuthToken } from "./utils-B-mTYQBc.mjs";
12
- import { u as parseGitHubCopilotApiKey } from "./github-copilot-qETlj_bD.mjs";
13
- import { t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-BsvOWmfB.mjs";
14
- import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
15
- import { a as coworkUserAgent, i as claudeCodeVersion, n as CLAUDE_CODE_MAX_OUTPUT_TOKENS, r as claudeCodeSystemInstruction } from "./anthropic-DGXmmg43.mjs";
16
- import { a as getStreamIdleTimeoutMs, i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout } from "./idle-iterator-HzbbfXP4.mjs";
8
+ import { Ct as withEmptyCompletionRetry, K as getOpenAIPromptCacheKey, _t as isForcedToolChoice, gt as resolveGitHubCopilotBaseUrl, ht as hasCopilotVisionInput, mt as buildCopilotDynamicHeaders, n as getEnvApiKey, t as OUTPUT_FALLBACK_BUFFER, wt as isFoundryEnabled } from "./stream-Bjq8wjfr.mjs";
9
+ import { t as createAbortSourceTracker } from "./abort-Cwwm4Err.mjs";
10
+ import { N as isVertexRawPredictUrl, f as isAnthropicSigningProxyUrl, j as hostMatchesUrl, n as getBundledModel, o as mapEffortToAnthropicAdaptiveEffort, p as isOfficialAnthropicApiUrl, t as calculateCost } from "./models-DRA2c_8U.mjs";
11
+ import { r as isAnthropicOAuthToken } from "./utils-CQHPEQ3W.mjs";
12
+ import { u as parseGitHubCopilotApiKey } from "./github-copilot-B3kQl0g0.mjs";
13
+ import { t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-mBmtAHx0.mjs";
14
+ import { t as AssistantMessageEventStream } from "./event-stream-Dh2guZxS.mjs";
15
+ import { a as coworkUserAgent, i as claudeCodeVersion, n as CLAUDE_CODE_MAX_OUTPUT_TOKENS, r as claudeCodeSystemInstruction } from "./anthropic-CDmj476p.mjs";
16
+ import { a as getStreamIdleTimeoutMs, i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout } from "./idle-iterator-CYAxUkSD.mjs";
17
17
  import { t as notifyProviderResponse } from "./provider-response-C6vcbQyO.mjs";
18
18
  import { t as notifyRawSseEvent } from "./sse-debug-CYdjOC96.mjs";
19
19
  import * as fs from "node:fs";
@@ -1,8 +1,8 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
3
  import { r as __exportAll } from "./fs-promises-shim-Bx0fpxuk.mjs";
4
- import { V as ProviderHttpError, c as OAuthError } from "./error-DoHuatWw.mjs";
5
- import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
4
+ import { V as ProviderHttpError, c as OAuthError } from "./error-C-f_Wnw4.mjs";
5
+ import { t as OAuthCallbackFlow } from "./callback-server-CFJK-jvK.mjs";
6
6
  import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
7
7
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/claude-code-fingerprint.ts
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { V as ProviderHttpError, _ as OnPromptRequiredError, h as LoginCancelledError, m as ApiKeyRequiredError } from "./error-DoHuatWw.mjs";
3
+ import { V as ProviderHttpError, _ as OnPromptRequiredError, h as LoginCancelledError, m as ApiKeyRequiredError } from "./error-C-f_Wnw4.mjs";
4
4
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/api-key-validation.ts
5
5
  const VALIDATION_TIMEOUT_MS = 15e3;
6
6
  function normalizeAnthropicCompatibleBaseUrl(baseUrl) {
@@ -1,11 +1,11 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { I as $flag, P as $env, S as debug, y as isEnoent } from "./src-D_e1qMwi.mjs";
4
- import { H as AwsCredentialsError } from "./error-DoHuatWw.mjs";
5
- import { n as raceWithSignal } from "./abort-CsjZitYv.mjs";
6
- import { i as isLocalOrMetadataHost } from "./proxy-XOYi58TM.mjs";
7
- import * as path from "node:path";
3
+ import { I as $flag, P as $env, S as debug, y as isEnoent } from "./src-BcD0_rQR.mjs";
4
+ import { H as AwsCredentialsError } from "./error-C-f_Wnw4.mjs";
5
+ import { n as raceWithSignal } from "./abort-Cwwm4Err.mjs";
6
+ import { i as isLocalOrMetadataHost } from "./proxy-D9lm7ONA.mjs";
8
7
  import * as fs from "node:fs";
8
+ import * as path from "node:path";
9
9
  import * as os from "node:os";
10
10
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/utils/aws-profile.ts
11
11
  function parseAwsIni(text) {
@@ -1,14 +1,14 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
3
  import { r as __exportAll } from "./fs-promises-shim-Bx0fpxuk.mjs";
4
- import { P as $env } from "./src-D_e1qMwi.mjs";
5
- import { B as OpenAIHttpError, g as MissingApiKeyError, l as finalize, n as StreamTimeoutError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-DoHuatWw.mjs";
6
- import { L as sanitizeSchemaForOpenAIResponses, k as toolWireSchema, s as resolveCacheRetention } from "./utils-fnV2zzp3.mjs";
7
- import { C as applyResponsesReasoningParams, D as buildResponsesInput, K as getOpenAIPromptCacheKey, N as createInitialResponsesAssistantMessage, Q as isOpenAIResponsesProgressEvent, g as applyCommonResponsesSamplingParams, it as parseAzureDeploymentNameMap, n as getEnvApiKey, ot as processResponsesStream, yt as mapToOpenAIResponsesToolChoice } from "./stream-DveNFWSN.mjs";
8
- import { t as createAbortSourceTracker } from "./abort-CsjZitYv.mjs";
9
- import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
10
- import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs } from "./idle-iterator-HzbbfXP4.mjs";
11
- import { c as postOpenAIStream, r as createOpenAIReasoningEffortFallbackKey, s as resolveOpenAIReasoningEffortFallback, t as applyOpenAIReasoningEffortFallback } from "./openai-reasoning-fallback-CigKCyzc.mjs";
4
+ import { P as $env } from "./src-BcD0_rQR.mjs";
5
+ import { B as OpenAIHttpError, g as MissingApiKeyError, l as finalize, n as StreamTimeoutError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-C-f_Wnw4.mjs";
6
+ import { L as sanitizeSchemaForOpenAIResponses, k as toolWireSchema, s as resolveCacheRetention } from "./utils-Cp2Mxf_U.mjs";
7
+ import { C as applyResponsesReasoningParams, D as buildResponsesInput, K as getOpenAIPromptCacheKey, N as createInitialResponsesAssistantMessage, Q as isOpenAIResponsesProgressEvent, g as applyCommonResponsesSamplingParams, it as parseAzureDeploymentNameMap, n as getEnvApiKey, ot as processResponsesStream, yt as mapToOpenAIResponsesToolChoice } from "./stream-Bjq8wjfr.mjs";
8
+ import { t as createAbortSourceTracker } from "./abort-Cwwm4Err.mjs";
9
+ import { t as AssistantMessageEventStream } from "./event-stream-Dh2guZxS.mjs";
10
+ import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs } from "./idle-iterator-CYAxUkSD.mjs";
11
+ import { c as postOpenAIStream, r as createOpenAIReasoningEffortFallbackKey, s as resolveOpenAIReasoningEffortFallback, t as applyOpenAIReasoningEffortFallback } from "./openai-reasoning-fallback-DXsfiSXO.mjs";
12
12
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/azure-openai-responses.ts
13
13
  var azure_openai_responses_exports = /* @__PURE__ */ __exportAll({ streamAzureOpenAIResponses: () => streamAzureOpenAIResponses });
14
14
  const DEFAULT_AZURE_API_VERSION = "v1";
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { t as ensureChromiumExecutable } from "./launch-DwpE70Pv.mjs";
4
- import { l as htmlToBasicMarkdown } from "./types-BUO0JXO-.mjs";
3
+ import { t as ensureChromiumExecutable } from "./launch-BmgEUycu.mjs";
4
+ import { l as htmlToBasicMarkdown } from "./types-DX_bvuus.mjs";
5
5
  //#region src/tools/omp/browser/readable.ts
6
6
  /** Trim to non-empty string or undefined. */
7
7
  function normalize(text) {
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { i as getBundledProviders, r as getBundledModels } from "./models-Cp3PzU3l.mjs";
4
- import { r as isZeroCostXaiOAuthReference } from "./identity-C0SPVyIZ.mjs";
3
+ import { i as getBundledProviders, r as getBundledModels } from "./models-DRA2c_8U.mjs";
4
+ import { r as isZeroCostXaiOAuthReference } from "./identity-HNO1Oe9B.mjs";
5
5
  //#region node_modules/.pnpm/@oh-my-pi+pi-catalog@17.3.5/node_modules/@oh-my-pi/pi-catalog/src/provider-models/bundled-references.ts
6
6
  /**
7
7
  * Project a built `Model` back to spec stage: `compat` becomes the verbatim
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { c as OAuthError, h as LoginCancelledError, t as ConfigurationError } from "./error-DoHuatWw.mjs";
3
+ import { c as OAuthError, h as LoginCancelledError, t as ConfigurationError } from "./error-C-f_Wnw4.mjs";
4
4
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/oauth.html
5
5
  var oauth_default = "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>oh my pi · authentication</title>\n <style>\n :root {\n /* dark, slightly purple-tinted neutrals — never #000 */\n --ink-0: oklch(0.135 0.018 295);\n --ink-1: oklch(0.172 0.022 295);\n --ink-2: oklch(0.21 0.024 295);\n --ink-4: oklch(0.36 0.024 295);\n --ink-5: oklch(0.5 0.022 290);\n --ink-6: oklch(0.66 0.018 290);\n --ink-7: oklch(0.82 0.014 285);\n --ink-9: oklch(0.97 0.008 90);\n\n /* brand: magenta lead, cyan reply */\n --magenta: oklch(0.7 0.24 340);\n --iris: oklch(0.62 0.21 295);\n --cyan: oklch(0.81 0.14 200);\n\n /* signal */\n --success: oklch(0.78 0.16 150);\n --error: oklch(0.66 0.22 25);\n\n --bg: var(--ink-0);\n --fg: var(--ink-9);\n --fg-dim: var(--ink-7);\n --fg-faint: var(--ink-5);\n --rule: oklch(1 0 0 / 0.07);\n --rule-strong: oklch(1 0 0 / 0.14);\n --accent: var(--magenta);\n --accent-2: var(--cyan);\n\n color-scheme: dark;\n }\n\n * {\n box-sizing: border-box;\n }\n\n body {\n font-family: \"Geist\", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n background:\n radial-gradient(ellipse 80vw 60vh at 18% -10%, oklch(0.7 0.24 340 / 0.13), transparent 60%),\n radial-gradient(ellipse 70vw 70vh at 110% 30%, oklch(0.81 0.14 200 / 0.09), transparent 60%),\n var(--bg);\n color: var(--fg);\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100vh;\n margin: 0;\n padding: 1.5rem;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n overflow-x: clip;\n }\n\n /* ascii grid backdrop */\n .grid-bg {\n position: fixed;\n inset: 0;\n background-image:\n linear-gradient(to right, oklch(1 0 0 / 0.025) 1px, transparent 1px),\n linear-gradient(to bottom, oklch(1 0 0 / 0.025) 1px, transparent 1px);\n background-size: 56px 56px;\n background-position: -1px -1px;\n mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);\n pointer-events: none;\n z-index: 0;\n }\n\n .container {\n position: relative;\n z-index: 1;\n background: oklch(0.172 0.022 295 / 0.72);\n backdrop-filter: blur(16px);\n -webkit-backdrop-filter: blur(16px);\n border: 1px solid var(--rule);\n border-radius: 16px;\n padding: 2.5rem 2.5rem 2rem;\n width: 100%;\n max-width: 420px;\n text-align: center;\n box-shadow:\n 0 24px 48px -12px oklch(0 0 0 / 0.55),\n 0 0 0 1px oklch(1 0 0 / 0.03) inset;\n opacity: 0;\n transform: translateY(10px);\n animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;\n }\n @keyframes rise {\n to {\n opacity: 1;\n transform: none;\n }\n }\n\n /* brand header */\n .brand {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n margin-bottom: 2rem;\n }\n .brand svg {\n width: 22px;\n height: 22px;\n }\n .brand .wordmark {\n font-size: 13px;\n font-weight: 500;\n letter-spacing: -0.01em;\n color: var(--fg);\n }\n\n /* status mark */\n .mark-wrap {\n position: relative;\n width: 72px;\n height: 72px;\n margin: 0 auto 1.5rem;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .mark-wrap::before {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: 50%;\n background: oklch(1 0 0 / 0.05);\n z-index: 0;\n }\n .mark {\n width: 40px;\n height: 40px;\n z-index: 2;\n }\n .timer-svg {\n position: absolute;\n top: -2px;\n left: -2px;\n width: 76px;\n height: 76px;\n transform: rotate(-90deg);\n z-index: 1;\n pointer-events: none;\n }\n .timer-circle {\n fill: none;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-dasharray: 226;\n stroke-dashoffset: 0;\n }\n .countdown .timer-circle {\n animation: countdown 3s linear forwards;\n }\n @keyframes countdown {\n to {\n stroke-dashoffset: 226;\n }\n }\n\n h1 {\n font-family: \"Fraunces\", \"Iowan Old Style\", Georgia, serif;\n font-size: 1.6rem;\n font-weight: 500;\n letter-spacing: -0.022em;\n line-height: 1.15;\n margin: 0 0 0.75rem;\n text-wrap: balance;\n }\n p {\n color: var(--fg-dim);\n line-height: 1.6;\n margin: 0 0 1.75rem;\n font-size: 0.95rem;\n }\n\n .btn {\n display: inline-flex;\n align-items: center;\n gap: 0.5rem;\n background: var(--fg);\n color: var(--bg);\n font-family: inherit;\n font-weight: 500;\n padding: 0.65rem 1.4rem;\n border-radius: 8px;\n text-decoration: none;\n font-size: 0.9rem;\n transition: opacity 0.2s, transform 0.2s;\n cursor: pointer;\n border: none;\n }\n .btn:hover {\n opacity: 0.88;\n transform: translateY(-1px);\n }\n .btn:active {\n transform: translateY(0);\n }\n\n /* State: success */\n .success .mark-wrap::before {\n background: oklch(0.78 0.16 150 / 0.12);\n }\n .success .mark {\n color: var(--success);\n }\n .success .timer-circle {\n stroke: var(--success);\n }\n .success .icon-error {\n display: none;\n }\n\n /* State: error */\n .error .mark-wrap::before {\n background: oklch(0.66 0.22 25 / 0.12);\n }\n .error .mark {\n color: var(--error);\n }\n .error .timer-circle {\n stroke: var(--error);\n }\n .error .icon-success,\n .error .timer-svg {\n display: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .container,\n .countdown .timer-circle {\n animation: none;\n }\n .container {\n opacity: 1;\n transform: none;\n }\n }\n </style>\n </head>\n <body>\n <span aria-hidden=\"true\" class=\"grid-bg\"></span>\n <div id=\"app\" class=\"container\">\n <div class=\"brand\">\n <svg viewBox=\"0 0 64 64\" aria-hidden=\"true\">\n <defs>\n <linearGradient id=\"pi-grad\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n <stop offset=\"0\" stop-color=\"oklch(0.7 0.24 340)\" />\n <stop offset=\".5\" stop-color=\"oklch(0.62 0.21 295)\" />\n <stop offset=\"1\" stop-color=\"oklch(0.81 0.14 200)\" />\n </linearGradient>\n </defs>\n <path fill=\"url(#pi-grad)\" d=\"M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z\" />\n </svg>\n <span class=\"wordmark\">oh my pi</span>\n </div>\n\n <div class=\"mark-wrap\">\n <svg class=\"timer-svg\" viewBox=\"0 0 76 76\">\n <circle class=\"timer-circle\" cx=\"38\" cy=\"38\" r=\"36\"></circle>\n </svg>\n <svg class=\"mark icon-success\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M5 13l4 4L19 7\" />\n </svg>\n <svg class=\"mark icon-error\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </div>\n\n <h1 id=\"title\">Authentication</h1>\n <p id=\"message\"></p>\n <button onclick=\"window.close()\" class=\"btn\">Close Window</button>\n </div>\n\n <script id=\"server-state\" type=\"application/json\">\n __OAUTH_STATE__\n <\/script>\n\n <script>\n let serverState;\n try {\n serverState = JSON.parse(document.getElementById(\"server-state\").textContent);\n } catch {\n const params = new URLSearchParams(window.location.search);\n serverState = {\n ok: params.get(\"ok\") === \"1\",\n error: params.get(\"error\") || \"Authentication failed\",\n };\n }\n\n const app = document.getElementById(\"app\");\n const title = document.getElementById(\"title\");\n const message = document.getElementById(\"message\");\n\n if (serverState.ok) {\n app.classList.add(\"success\", \"countdown\");\n title.textContent = \"Authentication Successful\";\n message.innerHTML = \"You have successfully logged in.<br>You can now close this tab.\";\n setTimeout(() => window.close(), 3000);\n } else {\n app.classList.add(\"error\");\n title.textContent = \"Authentication Failed\";\n message.textContent = serverState.error || \"An error occurred\";\n }\n <\/script>\n </body>\n</html>\n";
6
6
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
3
  import { r as __exportAll } from "./fs-promises-shim-Bx0fpxuk.mjs";
4
- import { c as OAuthError } from "./error-DoHuatWw.mjs";
4
+ import { c as OAuthError } from "./error-C-f_Wnw4.mjs";
5
5
  import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
6
6
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/cursor.ts
7
7
  var cursor_exports = /* @__PURE__ */ __exportAll({
@@ -1,8 +1,8 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { A as semverGte, D as bareModelId, O as parseGlmModel, r as getBundledModels, y as isKimiK3ModelId } from "./models-Cp3PzU3l.mjs";
4
- import "./identity-C0SPVyIZ.mjs";
5
- import { r as toModelSpec } from "./bundled-references-D71z7_T3.mjs";
3
+ import { A as semverGte, D as bareModelId, O as parseGlmModel, r as getBundledModels, y as isKimiK3ModelId } from "./models-DRA2c_8U.mjs";
4
+ import "./identity-HNO1Oe9B.mjs";
5
+ import { r as toModelSpec } from "./bundled-references-ChZSPDFw.mjs";
6
6
  import { E as create, i as fromBinary, t as toBinary } from "./to-binary-B1BEBIPC.mjs";
7
7
  import { H as GetUsableModelsRequestSchema, U as GetUsableModelsResponseSchema } from "./agent_pb-Rizyt9Zg.mjs";
8
8
  import { type } from "@oh-my-pi/omptype";
@@ -1,14 +1,14 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
3
  import { n as fs_promises_shim_exports } from "./fs-promises-shim-Bx0fpxuk.mjs";
4
- import { P as $env, T as warn, _ as parseStreamingJsonThrottled, g as parseStreamingJson, h as parseJsonWithRepair } from "./src-D_e1qMwi.mjs";
5
- import { g as MissingApiKeyError, l as finalize, r as ValidationError, s as ProviderResponseError, v as AbortError } from "./error-DoHuatWw.mjs";
6
- import { C as kStreamingPartialJson, S as kStreamingLastParseLen, _ as kCursorExecResolved, a as normalizeSystemPrompts, b as kStreamingBlockKind, h as clearStreamingPartialJson, k as toolWireSchema, x as kStreamingEnvelopeId, y as kStreamingBlockIndex } from "./utils-fnV2zzp3.mjs";
4
+ import { P as $env, T as warn, _ as parseStreamingJsonThrottled, g as parseStreamingJson, h as parseJsonWithRepair } from "./src-BcD0_rQR.mjs";
5
+ import { g as MissingApiKeyError, l as finalize, r as ValidationError, s as ProviderResponseError, v as AbortError } from "./error-C-f_Wnw4.mjs";
6
+ import { C as kStreamingPartialJson, S as kStreamingLastParseLen, _ as kCursorExecResolved, a as normalizeSystemPrompts, b as kStreamingBlockKind, h as clearStreamingPartialJson, k as toolWireSchema, x as kStreamingEnvelopeId, y as kStreamingBlockIndex } from "./utils-Cp2Mxf_U.mjs";
7
7
  import { t as sanitizeText } from "./sanitize-text-CfcXzw5X.mjs";
8
- import { a as shouldBypassProxy, n as getProxyForProvider, t as connectProxiedSocket } from "./proxy-XOYi58TM.mjs";
9
- import { t as calculateCost, y as isKimiK3ModelId } from "./models-Cp3PzU3l.mjs";
10
- import "./identity-C0SPVyIZ.mjs";
11
- import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
8
+ import { a as shouldBypassProxy, n as getProxyForProvider, t as connectProxiedSocket } from "./proxy-D9lm7ONA.mjs";
9
+ import { t as calculateCost, y as isKimiK3ModelId } from "./models-DRA2c_8U.mjs";
10
+ import "./identity-HNO1Oe9B.mjs";
11
+ import { t as AssistantMessageEventStream } from "./event-stream-Dh2guZxS.mjs";
12
12
  import { n as isRequestDebugEnabled, t as createRequestDebugSession } from "./request-debug-HJMoJncL.mjs";
13
13
  import { A as isObject, B as scalarZeroValue, C as getTextEncoding, D as hasCustomJsonRepresentation, E as create, F as unsafeGet, H as ScalarType, I as unsafeIsSet, L as unsafeLocal, M as isReflectMap, N as isReflectMessage, O as isWrapper, P as unsafeClear, R as unsafeOneofCase, T as isFieldError, U as isMessage, V as protoInt64, _ as BinaryWriter, a as makeReadContext$1, c as messageDesc, d as base64Decode, f as base64Encode, g as BinaryReader, h as wktStructToReflect, i as fromBinary, j as isReflectList, k as isWrapperDesc, l as protoCamelCase, m as wktStructToLocal, n as writeField, o as readField, p as localMessageMapper, r as fileDesc, t as toBinary, u as protoSnakeCase, w as FieldError, z as unsafeSet } from "./to-binary-B1BEBIPC.mjs";
14
14
  import { $ as GrepUnionResultSchema, $t as PiWriteExecSuccessSchema, A as DiagnosticsSuccessSchema, An as ShellStreamStdoutSchema, At as PiBashExecErrorSchema, B as ForceBackgroundSubagentResultSchema, Bn as SubagentStopRequestResponseSchema, Bt as PiGrepExecErrorSchema, C as DeleteErrorSchema, Cn as ShellFailureSchema, Ct as McpToolCallSchema, D as DiagnosticsErrorSchema, Dn as ShellStreamSchema, Dt as McpToolResultContentItemSchema, E as DeleteSuccessSchema, En as ShellStreamExitSchema, Et as McpToolNotFoundSchema, F as ExecuteHookResponseSchema, Fn as SubagentAwaitNotFoundSchema, Ft as PiEditExecResultSchema, G as GrepContentResultSchema, Gn as WebFetchAllowlistPrecheckResultSchema, Gt as PiLsExecSuccessSchema, Hn as ToolCallSchema, Ht as PiGrepExecSuccessSchema, I as ExecuteHookResultSchema, In as SubagentAwaitResultSchema, It as PiEditExecSuccessSchema, J as GrepFileCountSchema, Jn as WriteResultSchema, Jt as PiReadExecSuccessSchema, K as GrepCountResultSchema, Kn as WriteErrorSchema, Kt as PiReadExecErrorSchema, L as FetchErrorSchema, Ln as SubagentErrorSchema, Lt as PiFindExecErrorSchema, M as ExecClientMessageSchema, Mn as SmartModeClassifierErrorSchema, Mt as PiBashExecSuccessSchema, N as ExecClientStreamCloseSchema, Nn as SmartModeClassifierResultSchema, Nt as PiEditExecErrorSchema, O as DiagnosticsRejectedSchema, On as ShellStreamStartSchema, Ot as McpToolResultSchema, P as ExecClientThrowSchema, Pn as StopRequestResponseSchema, Pt as PiEditExecRejectedSchema, Q as GrepSuccessSchema, Qt as PiWriteExecResultSchema, R as FetchResultSchema, Rn as SubagentResultSchema, Rt as PiFindExecResultSchema, S as ConversationTurnStructureSchema, Sn as ShellAllowlistPrecheckResultSchema, St as McpTextContentSchema, T as DeleteResultSchema, Tn as ShellResultSchema, Tt as McpToolErrorSchema, Un as UserMessageActionSchema, Ut as PiLsExecErrorSchema, V as GetBlobResultSchema, Vn as ThinkingMessageSchema, Vt as PiGrepExecResultSchema, W as GrepContentMatchSchema, Wn as UserMessageSchema, Wt as PiLsExecResultSchema, X as GrepFilesResultSchema, Xn as WriteShellStdinResultSchema, Xt as PiWriteExecErrorSchema, Y as GrepFileMatchSchema, Yn as WriteShellStdinErrorSchema, Yt as PiTruncationSchema, Z as GrepResultSchema, Zn as WriteSuccessSchema, Zt as PiWriteExecRejectedSchema, _ as ConversationActionSchema, _n as RequestedModelSchema, _t as McpResultSchema, a as AgentRunRequestSchema, an as ReadMcpResourceErrorSchema, at as LsDirectoryTreeNodeSchema, b as ConversationStateStructureSchema, bn as SelectedImageSchema, bt as McpStateSuccessSchema, c as AgentStoreConflictResultSchema, cn as ReadMcpResourceSuccessSchema, ct as LsRejectedSchema, d as BeforeSubmitPromptRequestResponseSchema, dn as ReadSuccessSchema, dt as McpAllowlistPrecheckResultSchema, en as PostToolUseFailureRequestResponseSchema, et as KvClientMessageSchema, f as CanvasDiagnosticsErrorSchema, fn as RecordScreenFailureSchema, ft as McpApprovedSchema, g as ComputerUseResultSchema, gn as RequestContextSuccessSchema, gt as McpRejectedSchema, h as ComputerUseErrorSchema, hn as RequestContextSchema, ht as McpImageContentSchema, i as AgentConversationTurnStructureSchema, in as ReadErrorSchema, it as ListMcpResourcesSuccessSchema, j as ExecClientControlMessageSchema, jn as ShellSuccessSchema, jt as PiBashExecResultSchema, k as DiagnosticsResultSchema, kn as ShellStreamStderrSchema, kt as ModelDetailsSchema, l as AssistantMessageSchema, ln as ReadRejectedSchema, lt as LsResultSchema, m as ClientHeartbeatSchema, mn as RequestContextResultSchema, mt as McpErrorSchema, n as AfterAgentThoughtRequestResponseSchema, nn as PreCompactRequestResponseSchema, nt as ListMcpResourcesExecResultSchema, o as AgentServerMessageSchema, on as ReadMcpResourceExecResultSchema, ot as LsDirectoryTreeNode_FileSchema, p as CanvasDiagnosticsResultSchema, pn as RecordScreenResultSchema, pt as McpArgsSchema, q as GrepErrorSchema, qn as WriteRejectedSchema, qt as PiReadExecResultSchema, r as AgentClientMessageSchema, rn as PreToolUseRequestResponseSchema, rt as ListMcpResourcesExecResult_McpResourceSchema, s as AgentStoreConflictErrorSchema, sn as ReadMcpResourceNotFoundSchema, st as LsErrorSchema, t as AfterAgentResponseRequestResponseSchema, tn as PostToolUseRequestResponseSchema, tt as ListMcpResourcesErrorSchema, u as BackgroundShellSpawnResultSchema, un as ReadResultSchema, ut as LsSuccessSchema, v as ConversationSearchErrorSchema, vn as ResumeActionSchema, vt as McpStateExecResultSchema, w as DeleteRejectedSchema, wn as ShellRejectedSchema, wt as McpToolDefinitionSchema, x as ConversationStepSchema, xn as SetBlobResultSchema, xt as McpSuccessSchema, y as ConversationSearchResultSchema, yn as SelectedContextSchema, yt as McpStateServerSchema, z as ForceBackgroundShellResultSchema, zn as SubagentStartRequestResponseSchema, zt as PiFindExecSuccessSchema } from "./agent_pb-Rizyt9Zg.mjs";
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { c as OAuthError, h as LoginCancelledError } from "./error-DoHuatWw.mjs";
3
+ import { c as OAuthError, h as LoginCancelledError } from "./error-C-f_Wnw4.mjs";
4
4
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/device-code.ts
5
5
  const DEVICE_FLOW_CANCEL_MESSAGE = "Login cancelled";
6
6
  const DEVICE_FLOW_TIMEOUT_MESSAGE = "Device flow timed out";
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { n as discoveryFetch } from "./utils-B-mTYQBc.mjs";
3
+ import { n as discoveryFetch } from "./utils-CQHPEQ3W.mjs";
4
4
  import { E as create, i as fromBinary, t as toBinary } from "./to-binary-B1BEBIPC.mjs";
5
5
  import { f as MetadataSchema, i as GetCliModelConfigsResponseSchema, r as GetCliModelConfigsRequestSchema } from "./api_server_pb-CDZgLMta.mjs";
6
6
  import { gunzipSync } from "node:zlib";
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { c as OAuthError } from "./error-DoHuatWw.mjs";
4
- import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
3
+ import { c as OAuthError } from "./error-C-f_Wnw4.mjs";
4
+ import { t as OAuthCallbackFlow } from "./callback-server-CFJK-jvK.mjs";
5
5
  import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
6
6
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/devin.ts
7
7
  const DEVIN_WEBAPP_URL = "https://app.devin.ai";
@@ -1,10 +1,10 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { C as error, S as debug, T as warn, _ as parseStreamingJsonThrottled, g as parseStreamingJson } from "./src-D_e1qMwi.mjs";
4
- import { l as finalize, o as DevinApiError, r as ValidationError, s as ProviderResponseError, w as create, x as attach, y as Flag } from "./error-DoHuatWw.mjs";
5
- import { a as normalizeSystemPrompts, g as isDemotedThinking, k as toolWireSchema, m as transformMessages } from "./utils-fnV2zzp3.mjs";
6
- import { t as calculateCost } from "./models-Cp3PzU3l.mjs";
7
- import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
3
+ import { C as error, S as debug, T as warn, _ as parseStreamingJsonThrottled, g as parseStreamingJson } from "./src-BcD0_rQR.mjs";
4
+ import { l as finalize, o as DevinApiError, r as ValidationError, s as ProviderResponseError, w as create, x as attach, y as Flag } from "./error-C-f_Wnw4.mjs";
5
+ import { a as normalizeSystemPrompts, g as isDemotedThinking, k as toolWireSchema, m as transformMessages } from "./utils-Cp2Mxf_U.mjs";
6
+ import { t as calculateCost } from "./models-DRA2c_8U.mjs";
7
+ import { t as AssistantMessageEventStream } from "./event-stream-Dh2guZxS.mjs";
8
8
  import { E as create$1, c as messageDesc, i as fromBinary, r as fileDesc, t as toBinary } from "./to-binary-B1BEBIPC.mjs";
9
9
  import { a as ChatMessagePromptSchema, c as PromptCacheOptionsSchema, d as ImageDataSchema, f as MetadataSchema, l as ChatToolCallSchema, m as file_buf_validate_validate, n as GetChatMessageResponseSchema, o as ChatToolChoiceSchema, p as file_exa_codeium_common_pb_codeium_common, s as ChatToolDefinitionSchema, t as GetChatMessageRequestSchema, u as CompletionConfigurationSchema } from "./api_server_pb-CDZgLMta.mjs";
10
10
  import { t as deterministicUuid } from "./deterministic-id-D-yIV_eI.mjs";
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { J as getLogsDir, R as isBunTestRuntime } from "./src-D_e1qMwi.mjs";
3
+ import { J as getLogsDir, R as isBunTestRuntime } from "./src-BcD0_rQR.mjs";
4
4
  import * as path from "node:path";
5
5
  import { scheduler } from "node:timers/promises";
6
6
  //#region node_modules/.pnpm/@oh-my-pi+pi-utils@17.3.5/node_modules/@oh-my-pi/pi-utils/src/fetch-retry.ts
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { C as classifyMessage, s as ProviderResponseError } from "./error-DoHuatWw.mjs";
3
+ import { C as classifyMessage, s as ProviderResponseError } from "./error-C-f_Wnw4.mjs";
4
4
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/utils/event-stream.ts
5
5
  var EventStream = class {
6
6
  queue = [];
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
3
  import { n as isRecord } from "./type-guards-B9VVjRDK.mjs";
4
- import "./utils-B-mTYQBc.mjs";
4
+ import "./utils-CQHPEQ3W.mjs";
5
5
  const OPENCODE_HEADERS = { "User-Agent": "opencode/1.3.15" };
6
6
  /**
7
7
  * Copilot API version sent on `api.githubcopilot.com` requests (`/models`,
@@ -1,8 +1,8 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { V as ProviderHttpError, c as OAuthError, h as LoginCancelledError } from "./error-DoHuatWw.mjs";
4
- import { r as getBundledModels } from "./models-Cp3PzU3l.mjs";
5
- import { a as getGitHubCopilotBaseUrl, c as normalizeDomain, i as discoverGitHubCopilotApiEndpoint, l as normalizeGitHubCopilotEnterpriseDomain, n as OPENCODE_HEADERS, s as isPublicGitHubHost, t as COPILOT_API_HEADERS } from "./github-copilot-qETlj_bD.mjs";
3
+ import { V as ProviderHttpError, c as OAuthError, h as LoginCancelledError } from "./error-C-f_Wnw4.mjs";
4
+ import { r as getBundledModels } from "./models-DRA2c_8U.mjs";
5
+ import { a as getGitHubCopilotBaseUrl, c as normalizeDomain, i as discoverGitHubCopilotApiEndpoint, l as normalizeGitHubCopilotEnterpriseDomain, n as OPENCODE_HEADERS, s as isPublicGitHubHost, t as COPILOT_API_HEADERS } from "./github-copilot-B3kQl0g0.mjs";
6
6
  import { scheduler } from "node:timers/promises";
7
7
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/github-copilot.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { c as OAuthError } from "./error-DoHuatWw.mjs";
4
- import { i as clearGitLabDuoDirectAccessCache } from "./stream-DveNFWSN.mjs";
5
- import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
3
+ import { c as OAuthError } from "./error-C-f_Wnw4.mjs";
4
+ import { i as clearGitLabDuoDirectAccessCache } from "./stream-Bjq8wjfr.mjs";
5
+ import { t as OAuthCallbackFlow } from "./callback-server-CFJK-jvK.mjs";
6
6
  import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
7
7
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/gitlab-duo.ts
8
8
  const GITLAB_COM_URL = "https://gitlab.com";
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { c as OAuthError } from "./error-DoHuatWw.mjs";
4
- import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
3
+ import { c as OAuthError } from "./error-C-f_Wnw4.mjs";
4
+ import { t as OAuthCallbackFlow } from "./callback-server-CFJK-jvK.mjs";
5
5
  import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
6
6
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/gitlab-duo-workflow.ts
7
7
  const GITLAB_COM_URL = "https://gitlab.com";
@@ -1,8 +1,8 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { g as MissingApiKeyError } from "./error-DoHuatWw.mjs";
4
- import { n as getEnvApiKey } from "./stream-DveNFWSN.mjs";
5
- import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-CF1JrqTM.mjs";
3
+ import { g as MissingApiKeyError } from "./error-C-f_Wnw4.mjs";
4
+ import { n as getEnvApiKey } from "./stream-Bjq8wjfr.mjs";
5
+ import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-CVbHK5vZ.mjs";
6
6
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/google.ts
7
7
  const DEFAULT_GENERATIVE_LANGUAGE_BASE = "https://generativelanguage.googleapis.com/v1beta";
8
8
  const streamGoogle = (model, context, options) => {
@@ -1,8 +1,8 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { c as OAuthError, h as LoginCancelledError } from "./error-DoHuatWw.mjs";
3
+ import { c as OAuthError, h as LoginCancelledError } from "./error-C-f_Wnw4.mjs";
4
4
  import { n as getAntigravityUserAgent, r as getAntigravityVersion } from "./gemini-headers-DKUShltF.mjs";
5
- import { n as runGoogleOAuthLogin, r as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-Cn82h1o2.mjs";
5
+ import { n as runGoogleOAuthLogin, r as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-BLVTvokk.mjs";
6
6
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/google-antigravity.ts
7
7
  /**
8
8
  * Antigravity OAuth flow (Gemini 3, Claude, GPT-OSS via Google Cloud)
@@ -1,8 +1,8 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { F as $envpos, S as debug, y as isEnoent } from "./src-D_e1qMwi.mjs";
4
- import { c as OAuthError, g as MissingApiKeyError, t as ConfigurationError } from "./error-DoHuatWw.mjs";
5
- import { n as raceWithSignal } from "./abort-CsjZitYv.mjs";
3
+ import { F as $envpos, S as debug, y as isEnoent } from "./src-BcD0_rQR.mjs";
4
+ import { c as OAuthError, g as MissingApiKeyError, t as ConfigurationError } from "./error-C-f_Wnw4.mjs";
5
+ import { n as raceWithSignal } from "./abort-Cwwm4Err.mjs";
6
6
  import * as path from "node:path";
7
7
  import * as os from "node:os";
8
8
  import { Buffer } from "node:buffer";
@@ -1,9 +1,9 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { P as $env } from "./src-D_e1qMwi.mjs";
4
- import { c as OAuthError } from "./error-DoHuatWw.mjs";
3
+ import { P as $env } from "./src-BcD0_rQR.mjs";
4
+ import { c as OAuthError } from "./error-C-f_Wnw4.mjs";
5
5
  import { i as getGeminiCliHeaders } from "./gemini-headers-DKUShltF.mjs";
6
- import { n as runGoogleOAuthLogin, r as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-Cn82h1o2.mjs";
6
+ import { n as runGoogleOAuthLogin, r as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-BLVTvokk.mjs";
7
7
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/google-gemini-cli.ts
8
8
  /**
9
9
  * Gemini CLI OAuth flow (Google Cloud Code Assist)
@@ -1,15 +1,15 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { o as readSseJson } from "./src-D_e1qMwi.mjs";
4
- import { G as fetchWithRetry, L as GeminiCliApiError, S as classify, W as extractHttpStatusFromError, a as isTransientStatus, c as OAuthError, j as retriable, l as finalize, n as StreamTimeoutError, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-DoHuatWw.mjs";
5
- import { M as normalizeSchemaForCCA, a as normalizeSystemPrompts } from "./utils-fnV2zzp3.mjs";
6
- import { t as calculateCost } from "./models-Cp3PzU3l.mjs";
7
- import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
3
+ import { o as readSseJson } from "./src-BcD0_rQR.mjs";
4
+ import { G as fetchWithRetry, L as GeminiCliApiError, S as classify, W as extractHttpStatusFromError, a as isTransientStatus, c as OAuthError, j as retriable, l as finalize, n as StreamTimeoutError, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-C-f_Wnw4.mjs";
5
+ import { M as normalizeSchemaForCCA, a as normalizeSystemPrompts } from "./utils-Cp2Mxf_U.mjs";
6
+ import { t as calculateCost } from "./models-DRA2c_8U.mjs";
7
+ import { t as AssistantMessageEventStream } from "./event-stream-Dh2guZxS.mjs";
8
8
  import { i as getGeminiCliHeaders, n as getAntigravityUserAgent, t as getAntigravityModelWireProfile } from "./gemini-headers-DKUShltF.mjs";
9
- import { i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, t as armPreResponseTimeout } from "./idle-iterator-HzbbfXP4.mjs";
10
- import { t as StreamMarkupHealing } from "./stream-markup-healing-C9eC7Gf8.mjs";
9
+ import { i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, t as armPreResponseTimeout } from "./idle-iterator-CYAxUkSD.mjs";
10
+ import { t as StreamMarkupHealing } from "./stream-markup-healing-DZ6bVDxH.mjs";
11
11
  import { n as formatGoogleValidationRequiredMessage, t as extractGoogleValidationUrl } from "./google-validation-Cgbn3tWJ.mjs";
12
- import { a as isThinkingPart, c as nextToolCallId, d as retainThoughtSignature, f as startTextOrThinkingBlock, i as hasMeaningfulGoogleContent, l as pushBlockEndEvent, n as convertMessages, o as mapStopReasonString, r as convertTools, s as mapToolChoice, u as pushToolCallEvents } from "./google-shared-CF1JrqTM.mjs";
12
+ import { a as isThinkingPart, c as nextToolCallId, d as retainThoughtSignature, f as startTextOrThinkingBlock, i as hasMeaningfulGoogleContent, l as pushBlockEndEvent, n as convertMessages, o as mapStopReasonString, r as convertTools, s as mapToolChoice, u as pushToolCallEvents } from "./google-shared-CVbHK5vZ.mjs";
13
13
  import { scheduler } from "node:timers/promises";
14
14
  import { createHash, randomBytes, randomUUID } from "node:crypto";
15
15
  import { type } from "@oh-my-pi/omptype";
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { c as OAuthError, h as LoginCancelledError } from "./error-DoHuatWw.mjs";
4
- import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
3
+ import { c as OAuthError, h as LoginCancelledError } from "./error-C-f_Wnw4.mjs";
4
+ import { t as OAuthCallbackFlow } from "./callback-server-CFJK-jvK.mjs";
5
5
  import { n as formatGoogleValidationRequiredMessage, t as extractGoogleValidationUrl } from "./google-validation-Cgbn3tWJ.mjs";
6
6
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/google-oauth-shared.ts
7
7
  /**
@@ -1,11 +1,11 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { o as readSseJson } from "./src-D_e1qMwi.mjs";
4
- import { R as GoogleApiError, l as finalize, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-DoHuatWw.mjs";
5
- import { M as normalizeSchemaForCCA, N as normalizeSchemaForGoogle, a as normalizeSystemPrompts, k as toolWireSchema, m as transformMessages, w as renderDemotedThinking } from "./utils-fnV2zzp3.mjs";
6
- import { t as calculateCost } from "./models-Cp3PzU3l.mjs";
7
- import { o as shouldSendServiceTier, t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-BsvOWmfB.mjs";
8
- import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
3
+ import { o as readSseJson } from "./src-BcD0_rQR.mjs";
4
+ import { R as GoogleApiError, l as finalize, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-C-f_Wnw4.mjs";
5
+ import { M as normalizeSchemaForCCA, N as normalizeSchemaForGoogle, a as normalizeSystemPrompts, k as toolWireSchema, m as transformMessages, w as renderDemotedThinking } from "./utils-Cp2Mxf_U.mjs";
6
+ import { t as calculateCost } from "./models-DRA2c_8U.mjs";
7
+ import { o as shouldSendServiceTier, t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-mBmtAHx0.mjs";
8
+ import { t as AssistantMessageEventStream } from "./event-stream-Dh2guZxS.mjs";
9
9
  import { scheduler } from "node:timers/promises";
10
10
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/google-shared.ts
11
11
  /**
@@ -1,10 +1,10 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { P as $env } from "./src-D_e1qMwi.mjs";
4
- import { t as ConfigurationError } from "./error-DoHuatWw.mjs";
5
- import { P as resolveVertexEndpointHost } from "./models-Cp3PzU3l.mjs";
6
- import { t as getVertexAccessToken } from "./google-auth-CWlKXJ-H.mjs";
7
- import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-CF1JrqTM.mjs";
3
+ import { P as $env } from "./src-BcD0_rQR.mjs";
4
+ import { t as ConfigurationError } from "./error-C-f_Wnw4.mjs";
5
+ import { P as resolveVertexEndpointHost } from "./models-DRA2c_8U.mjs";
6
+ import { t as getVertexAccessToken } from "./google-auth-DYJLM792.mjs";
7
+ import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-CVbHK5vZ.mjs";
8
8
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/google-vertex.ts
9
9
  const API_VERSION = "v1";
10
10
  const streamGoogleVertex = (model, context, options) => {
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { i as getBundledProviders, r as getBundledModels, w as modelFamilyToken } from "./models-Cp3PzU3l.mjs";
3
+ import { i as getBundledProviders, r as getBundledModels, w as modelFamilyToken } from "./models-DRA2c_8U.mjs";
4
4
  //#region node_modules/.pnpm/@oh-my-pi+pi-catalog@17.3.5/node_modules/@oh-my-pi/pi-catalog/src/identity/id.ts
5
5
  const LEADING_BRACKETED_AFFIX_PATTERN = /^(?:\s*(?:\[|【)[^\]】]+(?:\]|】)\s*)+/u;
6
6
  const TRAILING_BRACKETED_AFFIX_PATTERN = /(?:\s*(?:\[|【)[^\]】]+(?:\]|】)\s*)+$/u;
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { P as $env } from "./src-D_e1qMwi.mjs";
4
- import { n as StreamTimeoutError, v as AbortError } from "./error-DoHuatWw.mjs";
3
+ import { P as $env } from "./src-BcD0_rQR.mjs";
4
+ import { n as StreamTimeoutError, v as AbortError } from "./error-C-f_Wnw4.mjs";
5
5
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/utils/idle-iterator.ts
6
6
  const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 3e5;
7
7
  const DEFAULT_STREAM_FIRST_EVENT_TIMEOUT_MS = 3e5;