@xiaoso/dsh-tool-plus 0.1.10-beta.2 → 0.1.10
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.en.md +14 -5
- package/README.md +14 -5
- package/lib/{abort-BtBy5Svf.mjs → abort-DZ54CaKU.mjs} +1 -1
- package/lib/{alibaba-coding-plan-oxHCHJtG.mjs → alibaba-coding-plan-DODpkcqi.mjs} +2 -2
- package/lib/{alibaba-token-plan-B0WzvYnB.mjs → alibaba-token-plan-C6lpKCda.mjs} +2 -2
- package/lib/{amazon-bedrock-BvfYGhrD.mjs → amazon-bedrock-Dx0rr9dY.mjs} +6 -6
- package/lib/{anthropic-Id561lwb.mjs → anthropic-ClCw0PV_.mjs} +14 -14
- package/lib/{anthropic-C6-vdduI.mjs → anthropic-Dv_GGX6g.mjs} +2 -2
- package/lib/{anthropic-wire-Cb8AQ1tS.mjs → anthropic-wire-lbGAFzYb.mjs} +5 -5
- package/lib/{api-key-validation-BXJKlsJg.mjs → api-key-validation-MnMf_ihX.mjs} +1 -1
- package/lib/{azure-openai-responses-CGws_ijz.mjs → azure-openai-responses-WE_bgFWp.mjs} +9 -9
- package/lib/{browser-render-i7uYOl4f.mjs → browser-render-BZXt548F.mjs} +2 -2
- package/lib/{cline-pass-Bwg3esu9.mjs → cline-pass-BT9CBEOj.mjs} +1 -1
- package/lib/{cloudflare-ai-gateway-B_kWnF30.mjs → cloudflare-ai-gateway-CrMa97Ap.mjs} +1 -1
- package/lib/{cloudflare-ai-gateway-BK6eadm9.mjs → cloudflare-ai-gateway-DReN6ohJ.mjs} +2 -2
- package/lib/{collapse-DU3g7d3B.mjs → collapse-CkMNRNr7.mjs} +1 -1
- package/lib/{coreweave-CkR_FlQi.mjs → coreweave-C68UgRQO.mjs} +2 -2
- package/lib/{cursor-BXx_5h4a.mjs → cursor-C6jaIJDg.mjs} +2 -2
- package/lib/{cursor-BcHwv8qq.mjs → cursor-D-XZYDf_.mjs} +9 -9
- package/lib/{cursor-BjWbJJLe.mjs → cursor-_gHHq-Dq.mjs} +2 -2
- package/lib/{cursor-proto-DPXXYx8S.mjs → cursor-proto-Cr_WEMuv.mjs} +1 -1
- package/lib/{devin-Ce3Wz8_E.mjs → devin-QpfTSl9H.mjs} +5 -5
- package/lib/{devin-proto-B6HwDwHK.mjs → devin-proto-DYhp4Ty6.mjs} +1 -1
- package/lib/{devin-BZBfzyIz.mjs → devin-u0ljw5P6.mjs} +6 -6
- package/lib/{error-DdCn4m1q.mjs → error-O63pC8zg.mjs} +1 -1
- package/lib/{event-stream-ldcUvOA0.mjs → event-stream-BKEtb45Y.mjs} +1 -1
- package/lib/{fs-promises-shim-Bx0fpxuk.mjs → fs-promises-shim-B2YFWkcd.mjs} +1 -0
- package/lib/{github-copilot-BT5dkIJl.mjs → github-copilot-BMEcw8N1.mjs} +2 -2
- package/lib/{github-copilot-headers-BGL8JO5c.mjs → github-copilot-headers-DnjGEbko.mjs} +2 -2
- package/lib/{gitlab-duo-B0qSYCa3.mjs → gitlab-duo-DnHqJjFY.mjs} +1 -1
- package/lib/{google-antigravity-D1llOVad.mjs → google-antigravity-B1mSckrK.mjs} +3 -3
- package/lib/{google-auth-DYhqX1rJ.mjs → google-auth-qAN-6DMW.mjs} +3 -3
- package/lib/{google-gemini-cli-ByQUuKp9.mjs → google-gemini-cli-B2Aw1S5w.mjs} +7 -7
- package/lib/{google-gemini-cli-CjHy6mFG.mjs → google-gemini-cli-DJwThCCn.mjs} +3 -3
- package/lib/{google-6cRgRmh0.mjs → google-lTxuq28n.mjs} +3 -3
- package/lib/{google-oauth-shared-CSwCT0Yl.mjs → google-oauth-shared-BctLpVUN.mjs} +1 -1
- package/lib/{google-shared-DYjJp0mQ.mjs → google-shared-Y01j9xOr.mjs} +5 -5
- package/lib/{google-vertex-CbOvlE5j.mjs → google-vertex-DcM-FRC5.mjs} +4 -4
- package/lib/{idle-iterator-DTBaEIbM.mjs → idle-iterator-D0ZXEcUq.mjs} +2 -2
- package/lib/index.mjs +89 -9
- package/lib/{kilo-cVG1aNZM.mjs → kilo-BEgEwMJQ.mjs} +1 -1
- package/lib/{kimi-BFfnFDhu.mjs → kimi-T9NldEIJ.mjs} +2 -2
- package/lib/{launch-Uq7920ng.mjs → launch-BIWNyrBB.mjs} +1 -1
- package/lib/{markit-BmsfOFVh.mjs → markit-Dvp2JPdT.mjs} +4 -4
- package/lib/{muse-code-CtcevJab.mjs → muse-code-CNvqqAp6.mjs} +2 -2
- package/lib/{ollama-B5hR1P1p.mjs → ollama-6R0oXZks.mjs} +9 -9
- package/lib/{openai-codex-CxkPyvyt.mjs → openai-codex-D5-CyTxa.mjs} +2 -2
- package/lib/{openai-codex-responses-BbM3Q7nJ.mjs → openai-codex-responses-C8bnBWOe.mjs} +11 -11
- package/lib/{openai-completions-CffXVOCL.mjs → openai-completions-DNr3mUsn.mjs} +15 -15
- package/lib/{openai-reasoning-fallback-DFdD1ok5.mjs → openai-reasoning-fallback-Ju-5pSR8.mjs} +2 -2
- package/lib/{openai-responses-DgqOvSn_.mjs → openai-responses-CjpafAEr.mjs} +10 -10
- package/lib/{perplexity-JFp3knZN.mjs → perplexity-A2PEoGaC.mjs} +2 -2
- package/lib/{protobuf-BJHNU9-E.mjs → protobuf-BMgDYu_U.mjs} +1 -1
- package/lib/{proxy-B51IWEMt.mjs → proxy-DxvCQOCA.mjs} +2 -2
- package/lib/{request-debug-NQN0BjHH.mjs → request-debug-BwPOqN_j.mjs} +1 -1
- package/lib/{scrapers-DSArdJ6N.mjs → scrapers-CqlagBff.mjs} +5 -5
- package/lib/{src-DUUqyo9y.mjs → src-AELUUb5U.mjs} +1 -1
- package/lib/{stream-DHdFrAG4.mjs → stream-AVOoe5Hj.mjs} +46 -46
- package/lib/{stream-markup-healing-DlJ9abTw.mjs → stream-markup-healing-CN3RsqG9.mjs} +2 -2
- package/lib/{thinking-D6LJxkz_.mjs → thinking-ngMwf_1Y.mjs} +1 -1
- package/lib/{turndown-DrX1M4WG.mjs → turndown-D6fof1OX.mjs} +1 -1
- package/lib/types/host/win32-console.d.ts +40 -0
- package/lib/{types-DT9vgZ3S.mjs → types-BLrLohwK.mjs} +2 -2
- package/lib/{utils-D31VFael.mjs → utils-I4I8azHN.mjs} +1 -1
- package/lib/{utils-DA8R1_Q8.mjs → utils-OUcqmx9L.mjs} +28 -28
- package/lib/{utils-BMmwLB0f.mjs → utils-cZX3f_Ls.mjs} +2 -2
- package/lib/{vision-guard-BlAAqGUC.mjs → vision-guard-BCpXWUj3.mjs} +1 -1
- package/lib/{xai-oauth-QPyScm4X.mjs → xai-oauth-CbeldUSV.mjs} +2 -2
- package/lib/{xiaomi-CLzjxHAi.mjs → xiaomi-Dl3VSs04.mjs} +1 -1
- package/lib/{zai-wDp0g7VC.mjs → zai-FyjGSypr.mjs} +1 -1
- package/lib/{zip-CNtIFfyV.mjs → zip-DRrycScC.mjs} +1 -1
- package/package.json +4 -1
package/README.en.md
CHANGED
|
@@ -30,19 +30,28 @@ Settings panel (Bash tab):
|
|
|
30
30
|
|
|
31
31
|
## Installation
|
|
32
32
|
|
|
33
|
-
- **Agent presets**: two companion templates — Standard enhanced and PTC (Code Mode)
|
|
34
|
-
|
|
35
33
|
### Install from npm (recommended)
|
|
36
34
|
|
|
35
|
+
#### Web
|
|
36
|
+
|
|
37
37
|
```sh
|
|
38
|
-
dsh plugin --profile web add --allow-build=@xiaoso/dsh-tool-plus @xiaoso/dsh-tool-plus
|
|
38
|
+
dsh plugin --profile web add --allow-build=@xiaoso/dsh-tool-plus --allow-build=koffi @xiaoso/dsh-tool-plus
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
`--allow-build` lets this package
|
|
41
|
+
`--allow-build` lets install scripts run (once for this package, once for `koffi`); it requires pnpm ≥ 10.4, and on pnpm 11+ omitting it fails the install with `ERR_PNPM_IGNORED_BUILDS`. If your pnpm is too old for the flag, allow the scripts first and re-run:
|
|
42
42
|
|
|
43
|
-
- Append to `~/.dsh/profiles/web/pnpm-workspace.yaml`: `allowBuilds
|
|
43
|
+
- Append to `~/.dsh/profiles/web/pnpm-workspace.yaml`: `allowBuilds:`, ` '@xiaoso/dsh-tool-plus': true` and ` koffi: true`
|
|
44
44
|
- Or run `cd ~/.dsh/profiles/web && pnpm approve-builds --all` (pnpm ≥ 10.32)
|
|
45
45
|
|
|
46
|
+
#### Desktop
|
|
47
|
+
|
|
48
|
+
The profile is owned by the desktop app, so `dsh plugin --profile desktop` is refused; install inside the profile directory instead:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
cd ~/.dsh/profiles/desktop
|
|
52
|
+
pnpm add --allow-build=@xiaoso/dsh-tool-plus --allow-build=koffi @xiaoso/dsh-tool-plus
|
|
53
|
+
```
|
|
54
|
+
|
|
46
55
|
### Local development
|
|
47
56
|
|
|
48
57
|
```sh
|
package/README.md
CHANGED
|
@@ -30,19 +30,28 @@ DeepSeek Harness 基础工具增强:持久 bash、结构化 read、多模式 e
|
|
|
30
30
|
|
|
31
31
|
## 安装
|
|
32
32
|
|
|
33
|
-
- **agent 预设**:标准增强版 / PTC(Code Mode)两套配套模板
|
|
34
|
-
|
|
35
33
|
### 从 npm 安装(推荐)
|
|
36
34
|
|
|
35
|
+
#### Web 端
|
|
36
|
+
|
|
37
37
|
```sh
|
|
38
|
-
dsh plugin --profile web add --allow-build=@xiaoso/dsh-tool-plus @xiaoso/dsh-tool-plus
|
|
38
|
+
dsh plugin --profile web add --allow-build=@xiaoso/dsh-tool-plus --allow-build=koffi @xiaoso/dsh-tool-plus
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
`--allow-build`
|
|
41
|
+
`--allow-build` 放行安装脚本(本包和 `koffi` 各一次),需要 pnpm ≥ 10.4;pnpm 11 起不加会直接报 `ERR_PNPM_IGNORED_BUILDS` 装不上。用不了该参数(pnpm 版本过低)时,先任选一种放行方式,再重跑安装命令:
|
|
42
42
|
|
|
43
|
-
- 往 `~/.dsh/profiles/web/pnpm-workspace.yaml`
|
|
43
|
+
- 往 `~/.dsh/profiles/web/pnpm-workspace.yaml` 追加三行:`allowBuilds:`、` '@xiaoso/dsh-tool-plus': true`、` koffi: true`
|
|
44
44
|
- 或执行 `cd ~/.dsh/profiles/web && pnpm approve-builds --all`(需 pnpm ≥ 10.32)
|
|
45
45
|
|
|
46
|
+
#### 桌面端
|
|
47
|
+
|
|
48
|
+
profile 由桌面应用独占,`dsh plugin --profile desktop` 会被拒;要装新版就进它自己的目录:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
cd ~/.dsh/profiles/desktop
|
|
52
|
+
pnpm add --allow-build=@xiaoso/dsh-tool-plus --allow-build=koffi @xiaoso/dsh-tool-plus
|
|
53
|
+
```
|
|
54
|
+
|
|
46
55
|
### 本地开发
|
|
47
56
|
|
|
48
57
|
```sh
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { _ as AbortError } from "./error-
|
|
3
|
+
import { _ as AbortError } from "./error-O63pC8zg.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/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,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError, t as ConfigurationError } from "./error-
|
|
4
|
-
import { n as validateApiKeyAgainstModelsEndpoint, r as validateOpenAICompatibleApiKey } from "./api-key-validation-
|
|
3
|
+
import { g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError, t as ConfigurationError } from "./error-O63pC8zg.mjs";
|
|
4
|
+
import { n as validateApiKeyAgainstModelsEndpoint, r as validateOpenAICompatibleApiKey } from "./api-key-validation-MnMf_ihX.mjs";
|
|
5
5
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/alibaba-coding-plan.ts
|
|
6
6
|
const DEFAULT_AUTH_URL = "https://modelstudio.console.alibabacloud.com/";
|
|
7
7
|
const CHINA_AUTH_URL = "https://bailian.console.aliyun.com/?tab=model#/api-key";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError, t as ConfigurationError } from "./error-
|
|
3
|
+
import { g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError, t as ConfigurationError } from "./error-O63pC8zg.mjs";
|
|
4
4
|
import { i as serializeAlibabaTokenPlanCredential, n as ALIBABA_TOKEN_PLAN_CN_BASE_URL, t as ALIBABA_TOKEN_PLAN_BASE_URL } from "./alibaba-token-plan-CHGyWOfX.mjs";
|
|
5
|
-
import { n as validateApiKeyAgainstModelsEndpoint } from "./api-key-validation-
|
|
5
|
+
import { n as validateApiKeyAgainstModelsEndpoint } from "./api-key-validation-MnMf_ihX.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/alibaba-token-plan.ts
|
|
7
7
|
const INTERNATIONAL_AUTH_URL = "https://home.qwencloud.com/billing/subscription/token-plan-individual";
|
|
8
8
|
const CHINA_AUTH_URL = "https://www.aliyun.com/benefit/scene/tokenplan";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { B as USER_AGENT, C as warn, F as $flag, _ as parseStreamingJson, v as parseStreamingJsonThrottled } from "./src-
|
|
4
|
-
import { G as fetchWithRetry, I as BedrockApiError, U as EventStreamFrameError, _ as AbortError, c as finalize, r as ValidationError } from "./error-
|
|
5
|
-
import { A as toolWireSchema, C as kStreamingLastParseLen, T as renderDemotedThinking, b as kStreamingBlockIndex, c as resolveCacheRetention, g as clearStreamingPartialJson, h as transformMessages, o as normalizeSystemPrompts, s as normalizeToolCallId, w as kStreamingPartialJson } from "./utils-
|
|
3
|
+
import { B as USER_AGENT, C as warn, F as $flag, _ as parseStreamingJson, v as parseStreamingJsonThrottled } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { G as fetchWithRetry, I as BedrockApiError, U as EventStreamFrameError, _ as AbortError, c as finalize, r as ValidationError } from "./error-O63pC8zg.mjs";
|
|
5
|
+
import { A as toolWireSchema, C as kStreamingLastParseLen, T as renderDemotedThinking, b as kStreamingBlockIndex, c as resolveCacheRetention, g as clearStreamingPartialJson, h as transformMessages, o as normalizeSystemPrompts, s as normalizeToolCallId, w as kStreamingPartialJson } from "./utils-cZX3f_Ls.mjs";
|
|
6
6
|
import { n as isRecord } from "./type-guards-CttAANEx.mjs";
|
|
7
|
-
import { a as mapEffortToAnthropicAdaptiveEffort, c as invalidateAwsCredentialCache, d as resolveAwsBearerToken, l as resolveAwsCredentials, m as resolveAwsAmbientRegion, o as requireSupportedEffort, r as parseAnthropicInputTransformations, t as THINKING_BINDING_CONTROLS_BETA, u as signRequest } from "./anthropic-wire-
|
|
7
|
+
import { a as mapEffortToAnthropicAdaptiveEffort, c as invalidateAwsCredentialCache, d as resolveAwsBearerToken, l as resolveAwsCredentials, m as resolveAwsAmbientRegion, o as requireSupportedEffort, r as parseAnthropicInputTransformations, t as THINKING_BINDING_CONTROLS_BETA, u as signRequest } from "./anthropic-wire-lbGAFzYb.mjs";
|
|
8
8
|
import { t as calculateCost } from "./models-DnXMYGcJ.mjs";
|
|
9
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
10
|
-
import { i as getStreamFirstEventTimeoutMs, t as armPreResponseTimeout } from "./idle-iterator-
|
|
9
|
+
import { t as AssistantMessageEventStream } from "./event-stream-BKEtb45Y.mjs";
|
|
10
|
+
import { i as getStreamFirstEventTimeoutMs, t as armPreResponseTimeout } from "./idle-iterator-D0ZXEcUq.mjs";
|
|
11
11
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/providers/aws-eventstream.ts
|
|
12
12
|
/**
|
|
13
13
|
* `application/vnd.amazon.eventstream` decoder.
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { r as __exportAll } from "./fs-promises-shim-
|
|
4
|
-
import { $ as isEnoent, C as warn, N as $env, a as readSseEvents, b as debug, g as parseJsonWithRepair, q as getInstallId, v as parseStreamingJsonThrottled } from "./src-
|
|
5
|
-
import { A as isTransientStreamParseError, D as isFastModeUnsupported, F as AnthropicStreamEnvelopeError, M as AnthropicApiError, N as AnthropicConnectionError, O as isGrammarError, P as AnthropicConnectionTimeoutError, _ as AbortError, a as isTransientStatus, c as finalize, d as getRetryAfterMsFromHeaders, i as isProviderRetryableError, k as isStreamEnvelopeError, l as finalizeErrorMessage, n as StreamTimeoutError, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, u as getHeadersFromError } from "./error-
|
|
6
|
-
import { A as toolWireSchema, B as spillToDescription, C as kStreamingLastParseLen, T as renderDemotedThinking, V as COMBINATOR_KEYS, b as kStreamingBlockIndex, c as resolveCacheRetention, g as clearStreamingPartialJson, h as transformMessages, j as NO_STRICT, n as getHeaderCaseInsensitive, o as normalizeSystemPrompts, s as normalizeToolCallId, w as kStreamingPartialJson } from "./utils-
|
|
3
|
+
import { r as __exportAll } from "./fs-promises-shim-B2YFWkcd.mjs";
|
|
4
|
+
import { $ as isEnoent, C as warn, N as $env, a as readSseEvents, b as debug, g as parseJsonWithRepair, q as getInstallId, v as parseStreamingJsonThrottled } from "./src-AELUUb5U.mjs";
|
|
5
|
+
import { A as isTransientStreamParseError, D as isFastModeUnsupported, F as AnthropicStreamEnvelopeError, M as AnthropicApiError, N as AnthropicConnectionError, O as isGrammarError, P as AnthropicConnectionTimeoutError, _ as AbortError, a as isTransientStatus, c as finalize, d as getRetryAfterMsFromHeaders, i as isProviderRetryableError, k as isStreamEnvelopeError, l as finalizeErrorMessage, n as StreamTimeoutError, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, u as getHeadersFromError } from "./error-O63pC8zg.mjs";
|
|
6
|
+
import { A as toolWireSchema, B as spillToDescription, C as kStreamingLastParseLen, T as renderDemotedThinking, V as COMBINATOR_KEYS, b as kStreamingBlockIndex, c as resolveCacheRetention, g as clearStreamingPartialJson, h as transformMessages, j as NO_STRICT, n as getHeaderCaseInsensitive, o as normalizeSystemPrompts, s as normalizeToolCallId, w as kStreamingPartialJson } from "./utils-cZX3f_Ls.mjs";
|
|
7
7
|
import { n as isRecord } from "./type-guards-CttAANEx.mjs";
|
|
8
|
-
import { At as withReplaySafeStreamRetry, Ct as applyInferenceHeaders, et as getOpenAIPromptCacheKey, f as isFoundryEnabled, n as getEnvApiKey, t as OUTPUT_FALLBACK_BUFFER, wt as isForcedToolChoice } from "./stream-
|
|
9
|
-
import { r as isAnthropicOAuthToken } from "./utils-
|
|
10
|
-
import { a as mapEffortToAnthropicAdaptiveEffort, n as isAnthropicServerToolHistoryBlock, r as parseAnthropicInputTransformations, t as THINKING_BINDING_CONTROLS_BETA } from "./anthropic-wire-
|
|
11
|
-
import { t as createAbortSourceTracker } from "./abort-
|
|
8
|
+
import { At as withReplaySafeStreamRetry, Ct as applyInferenceHeaders, et as getOpenAIPromptCacheKey, f as isFoundryEnabled, n as getEnvApiKey, t as OUTPUT_FALLBACK_BUFFER, wt as isForcedToolChoice } from "./stream-AVOoe5Hj.mjs";
|
|
9
|
+
import { r as isAnthropicOAuthToken } from "./utils-I4I8azHN.mjs";
|
|
10
|
+
import { a as mapEffortToAnthropicAdaptiveEffort, n as isAnthropicServerToolHistoryBlock, r as parseAnthropicInputTransformations, t as THINKING_BINDING_CONTROLS_BETA } from "./anthropic-wire-lbGAFzYb.mjs";
|
|
11
|
+
import { t as createAbortSourceTracker } from "./abort-DZ54CaKU.mjs";
|
|
12
12
|
import { n as getBundledModel, t as calculateCost } from "./models-DnXMYGcJ.mjs";
|
|
13
|
-
import { a as resolveGitHubCopilotBaseUrl, b as parseGitHubCopilotApiKey, i as resolveCopilotRequestIdentity, n as hasCopilotVisionInput, o as wrapFetchForCopilotFallback, t as buildCopilotDynamicHeaders } from "./github-copilot-headers-
|
|
14
|
-
import { t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-
|
|
15
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
16
|
-
import { a as claudeCodeUserAgent, i as claudeCodeSystemInstruction, n as CLAUDE_CODE_MAX_OUTPUT_TOKENS, o as claudeCodeVersion, r as claudeCodeSdkVersion } from "./anthropic-
|
|
13
|
+
import { a as resolveGitHubCopilotBaseUrl, b as parseGitHubCopilotApiKey, i as resolveCopilotRequestIdentity, n as hasCopilotVisionInput, o as wrapFetchForCopilotFallback, t as buildCopilotDynamicHeaders } from "./github-copilot-headers-DnjGEbko.mjs";
|
|
14
|
+
import { t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-BCpXWUj3.mjs";
|
|
15
|
+
import { t as AssistantMessageEventStream } from "./event-stream-BKEtb45Y.mjs";
|
|
16
|
+
import { a as claudeCodeUserAgent, i as claudeCodeSystemInstruction, n as CLAUDE_CODE_MAX_OUTPUT_TOKENS, o as claudeCodeVersion, r as claudeCodeSdkVersion } from "./anthropic-Dv_GGX6g.mjs";
|
|
17
17
|
import { n as isVertexRawPredictUrl, t as hostMatchesUrl } from "./hosts-00rjRzUD.mjs";
|
|
18
|
-
import { a as isOfficialAnthropicApiUrl, i as isAnthropicSigningProxyUrl } from "./collapse-
|
|
19
|
-
import { a as getStreamIdleTimeoutMs, i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout } from "./idle-iterator-
|
|
18
|
+
import { a as isOfficialAnthropicApiUrl, i as isAnthropicSigningProxyUrl } from "./collapse-CkMNRNr7.mjs";
|
|
19
|
+
import { a as getStreamIdleTimeoutMs, i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout } from "./idle-iterator-D0ZXEcUq.mjs";
|
|
20
20
|
import { t as notifyProviderResponse } from "./provider-response-SqKSkkUc.mjs";
|
|
21
21
|
import { t as notifyRawSseEvent } from "./sse-debug-B-tkLCPW.mjs";
|
|
22
22
|
import * as fs from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { r as __exportAll } from "./fs-promises-shim-
|
|
4
|
-
import { V as ProviderHttpError, f as OAuthError } from "./error-
|
|
3
|
+
import { r as __exportAll } from "./fs-promises-shim-B2YFWkcd.mjs";
|
|
4
|
+
import { V as ProviderHttpError, f as OAuthError } from "./error-O63pC8zg.mjs";
|
|
5
5
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/providers/claude-code-fingerprint.ts
|
|
6
6
|
/**
|
|
7
7
|
* Claude Code inference-fingerprint constants, kept in a leaf module so consumers
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { $ as isEnoent, F as $flag, N as $env, b as debug } from "./src-
|
|
4
|
-
import { H as AwsCredentialsError } from "./error-
|
|
5
|
-
import "./utils-
|
|
3
|
+
import { $ as isEnoent, F as $flag, N as $env, b as debug } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { H as AwsCredentialsError } from "./error-O63pC8zg.mjs";
|
|
5
|
+
import "./utils-cZX3f_Ls.mjs";
|
|
6
6
|
import { n as isRecord } from "./type-guards-CttAANEx.mjs";
|
|
7
|
-
import { n as raceWithSignal } from "./abort-
|
|
8
|
-
import { r as isLocalOrMetadataHost } from "./proxy-
|
|
7
|
+
import { n as raceWithSignal } from "./abort-DZ54CaKU.mjs";
|
|
8
|
+
import { r as isLocalOrMetadataHost } from "./proxy-DxvCQOCA.mjs";
|
|
9
9
|
import "./effort-BdtQMN-_.mjs";
|
|
10
10
|
import * as fs from "node:fs";
|
|
11
11
|
import * as path$1 from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { B as OpenAIHttpError, V as ProviderHttpError } from "./error-
|
|
3
|
+
import { B as OpenAIHttpError, V as ProviderHttpError } from "./error-O63pC8zg.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/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,14 +1,14 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { r as __exportAll } from "./fs-promises-shim-
|
|
4
|
-
import { N as $env } from "./src-
|
|
5
|
-
import { B as OpenAIHttpError, _ as AbortError, c as finalize, h as MissingApiKeyError, n as StreamTimeoutError, s as ProviderResponseError, t as ConfigurationError } from "./error-
|
|
6
|
-
import { A as toolWireSchema, c as resolveCacheRetention, z as sanitizeSchemaForOpenAIResponses } from "./utils-
|
|
7
|
-
import { At as withReplaySafeStreamRetry, Et as mapToOpenAIResponsesToolChoice, F as buildResponsesInput, V as createInitialResponsesAssistantMessage, dt as parseAzureDeploymentNameMap, et as getOpenAIPromptCacheKey, j as applyResponsesReasoningParams, n as getEnvApiKey, ot as isOpenAIResponsesProgressEvent, pt as processResponsesStream, w as applyCommonResponsesSamplingParams } from "./stream-
|
|
8
|
-
import { t as createAbortSourceTracker } from "./abort-
|
|
9
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
10
|
-
import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs } from "./idle-iterator-
|
|
11
|
-
import { c as postOpenAIStream, r as createOpenAIReasoningEffortFallbackKey, s as resolveOpenAIReasoningEffortFallback, t as applyOpenAIReasoningEffortFallback } from "./openai-reasoning-fallback-
|
|
3
|
+
import { r as __exportAll } from "./fs-promises-shim-B2YFWkcd.mjs";
|
|
4
|
+
import { N as $env } from "./src-AELUUb5U.mjs";
|
|
5
|
+
import { B as OpenAIHttpError, _ as AbortError, c as finalize, h as MissingApiKeyError, n as StreamTimeoutError, s as ProviderResponseError, t as ConfigurationError } from "./error-O63pC8zg.mjs";
|
|
6
|
+
import { A as toolWireSchema, c as resolveCacheRetention, z as sanitizeSchemaForOpenAIResponses } from "./utils-cZX3f_Ls.mjs";
|
|
7
|
+
import { At as withReplaySafeStreamRetry, Et as mapToOpenAIResponsesToolChoice, F as buildResponsesInput, V as createInitialResponsesAssistantMessage, dt as parseAzureDeploymentNameMap, et as getOpenAIPromptCacheKey, j as applyResponsesReasoningParams, n as getEnvApiKey, ot as isOpenAIResponsesProgressEvent, pt as processResponsesStream, w as applyCommonResponsesSamplingParams } from "./stream-AVOoe5Hj.mjs";
|
|
8
|
+
import { t as createAbortSourceTracker } from "./abort-DZ54CaKU.mjs";
|
|
9
|
+
import { t as AssistantMessageEventStream } from "./event-stream-BKEtb45Y.mjs";
|
|
10
|
+
import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs } from "./idle-iterator-D0ZXEcUq.mjs";
|
|
11
|
+
import { c as postOpenAIStream, r as createOpenAIReasoningEffortFallbackKey, s as resolveOpenAIReasoningEffortFallback, t as applyOpenAIReasoningEffortFallback } from "./openai-reasoning-fallback-Ju-5pSR8.mjs";
|
|
12
12
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/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-
|
|
4
|
-
import { l as htmlToBasicMarkdown } from "./types-
|
|
3
|
+
import { t as ensureChromiumExecutable } from "./launch-BIWNyrBB.mjs";
|
|
4
|
+
import { l as htmlToBasicMarkdown } from "./types-BLrLohwK.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,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { r as __exportAll } from "./fs-promises-shim-
|
|
3
|
+
import { r as __exportAll } from "./fs-promises-shim-B2YFWkcd.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/wire/cline-pass.ts
|
|
5
5
|
var cline_pass_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CLINEPASS_API_BASE_URL: () => CLINEPASS_API_BASE_URL,
|
|
@@ -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-CttAANEx.mjs";
|
|
4
|
-
import "./utils-
|
|
4
|
+
import "./utils-I4I8azHN.mjs";
|
|
5
5
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/wire/cloudflare-ai-gateway.ts
|
|
6
6
|
/** Provider-native AI Gateway prefix before the upstream route segment. */
|
|
7
7
|
const CLOUDFLARE_AI_GATEWAY_BASE_URL = "https://gateway.ai.cloudflare.com/v1/<account>/<gateway>";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError, t as ConfigurationError } from "./error-
|
|
4
|
-
import { o as serializeCloudflareAiGatewayCredential } from "./cloudflare-ai-gateway-
|
|
3
|
+
import { g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError, t as ConfigurationError } from "./error-O63pC8zg.mjs";
|
|
4
|
+
import { o as serializeCloudflareAiGatewayCredential } from "./cloudflare-ai-gateway-CrMa97Ap.mjs";
|
|
5
5
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/cloudflare-ai-gateway.ts
|
|
6
6
|
const AUTH_URL = "https://developers.cloudflare.com/ai-gateway/configuration/authentication/";
|
|
7
7
|
/** Collect the gateway credential used by CLI, setup-wizard, and TUI login callers. */
|
|
@@ -2,7 +2,7 @@ import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
|
2
2
|
__installBunShim();
|
|
3
3
|
import { n as isRecord } from "./type-guards-CttAANEx.mjs";
|
|
4
4
|
import { c as resolveCascade, d as compareRevision, f as parseRevision, i as collapseVocabulary, m as revisionSatisfies, n as classifyModel, o as stripThinkingVariantSuffix, p as parseRevisionConstraint, r as collapseVariantId } from "./taxonomy-DSIM99rS.mjs";
|
|
5
|
-
import { t as cleanModelName } from "./utils-
|
|
5
|
+
import { t as cleanModelName } from "./utils-I4I8azHN.mjs";
|
|
6
6
|
import { n as THINKING_EFFORTS } from "./effort-BdtQMN-_.mjs";
|
|
7
7
|
import { t as bareModelId } from "./id-AL5obQzR.mjs";
|
|
8
8
|
import { r as modelMatchesHost, t as hostMatchesUrl } from "./hosts-00rjRzUD.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { N as $env } from "./src-
|
|
4
|
-
import { t as ConfigurationError } from "./error-
|
|
3
|
+
import { N as $env } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { t as ConfigurationError } from "./error-O63pC8zg.mjs";
|
|
5
5
|
import { n as coreWeaveProjectHeaders } from "./coreweave-C82HrLpb.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/coreweave.ts
|
|
7
7
|
const PROJECT_PERSIST_INSTRUCTIONS = "add export COREWEAVE_PROJECT=<team>/<project> to your shell startup file (for example ~/.zshrc, ~/.bashrc, or your shell's profile/rc file)";
|
|
@@ -3,8 +3,8 @@ __installBunShim();
|
|
|
3
3
|
import { d as compareRevision, f as parseRevision, n as classifyModel } from "./taxonomy-DSIM99rS.mjs";
|
|
4
4
|
import { r as getBundledModels } from "./models-DnXMYGcJ.mjs";
|
|
5
5
|
import { r as toModelSpec } from "./bundled-references-DY3EJxZV.mjs";
|
|
6
|
-
import { i as fromBinary, o as toBinary, t as create } from "./protobuf-
|
|
7
|
-
import { nt as GetUsableModelsResponseSchema, tt as GetUsableModelsRequestSchema } from "./cursor-proto-
|
|
6
|
+
import { i as fromBinary, o as toBinary, t as create } from "./protobuf-BMgDYu_U.mjs";
|
|
7
|
+
import { nt as GetUsableModelsResponseSchema, tt as GetUsableModelsRequestSchema } from "./cursor-proto-Cr_WEMuv.mjs";
|
|
8
8
|
import { type } from "@oh-my-pi/omptype";
|
|
9
9
|
import * as http2$1 from "node:http2";
|
|
10
10
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/discovery/cursor.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { n as fs_promises_shim_exports } from "./fs-promises-shim-
|
|
4
|
-
import { C as warn, M as truncate, N as $env, _ as parseStreamingJson, b as debug, g as parseJsonWithRepair, v as parseStreamingJsonThrottled } from "./src-
|
|
5
|
-
import { _ as AbortError, c as finalize, h as MissingApiKeyError, r as ValidationError, s as ProviderResponseError } from "./error-
|
|
6
|
-
import { A as toolWireSchema, C as kStreamingLastParseLen, I as sanitizeSchemaForCursor, S as kStreamingEnvelopeId, b as kStreamingBlockIndex, g as clearStreamingPartialJson, o as normalizeSystemPrompts, s as normalizeToolCallId, v as kCursorExecResolved, w as kStreamingPartialJson, x as kStreamingBlockKind } from "./utils-
|
|
3
|
+
import { n as fs_promises_shim_exports } from "./fs-promises-shim-B2YFWkcd.mjs";
|
|
4
|
+
import { C as warn, M as truncate, N as $env, _ as parseStreamingJson, b as debug, g as parseJsonWithRepair, v as parseStreamingJsonThrottled } from "./src-AELUUb5U.mjs";
|
|
5
|
+
import { _ as AbortError, c as finalize, h as MissingApiKeyError, r as ValidationError, s as ProviderResponseError } from "./error-O63pC8zg.mjs";
|
|
6
|
+
import { A as toolWireSchema, C as kStreamingLastParseLen, I as sanitizeSchemaForCursor, S as kStreamingEnvelopeId, b as kStreamingBlockIndex, g as clearStreamingPartialJson, o as normalizeSystemPrompts, s as normalizeToolCallId, v as kCursorExecResolved, w as kStreamingPartialJson, x as kStreamingBlockKind } from "./utils-cZX3f_Ls.mjs";
|
|
7
7
|
import { t as sanitizeText } from "./sanitize-text-BCf5KmCf.mjs";
|
|
8
8
|
import { n as isRecord$1 } from "./type-guards-CttAANEx.mjs";
|
|
9
9
|
import { n as classifyModel, r as collapseVariantId } from "./taxonomy-DSIM99rS.mjs";
|
|
10
|
-
import { n as getProxyForUrl, t as connectProxiedSocket } from "./proxy-
|
|
10
|
+
import { n as getProxyForUrl, t as connectProxiedSocket } from "./proxy-DxvCQOCA.mjs";
|
|
11
11
|
import { n as THINKING_EFFORTS } from "./effort-BdtQMN-_.mjs";
|
|
12
12
|
import { t as calculateCost } from "./models-DnXMYGcJ.mjs";
|
|
13
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
14
|
-
import { n as isRequestDebugEnabled, t as createRequestDebugSession } from "./request-debug-
|
|
15
|
-
import { i as fromBinary, n as decodeJsonValue, o as toBinary, r as encodeJsonValue, t as create } from "./protobuf-
|
|
16
|
-
import { $ as ForceBackgroundSubagentResultSchema, $n as SubagentResultSchema, $t as PiFindExecSuccessSchema, A as CursorRuleTypeGlobalSchema, An as RequestContextSuccessSchema, At as McpRejectedSchema, B as ExaFetchRequestResponseSchema, Bn as ShellResultSchema, Bt as McpToolNotFoundSchema, C as ConversationStateStructureSchema, Cn as ReadRejectedSchema, Ct as LsResultSchema, D as CreatePlanRequestResponseSchema, Dn as RecordScreenResultSchema, Dt as McpArgsSchema, E as CreatePlanErrorSchema, En as RecordScreenFailureSchema, Et as McpApprovedSchema, F as DeleteSuccessSchema, Fn as SelectedImageSchema, Ft as McpSuccessSchema, G as ExecClientMessageSchema, Gn as ShellStreamStdoutSchema, Gt as PiBashExecResultSchema, H as ExaSearchRequestResponseSchema, Hn as ShellStreamSchema, Ht as McpToolResultSchema, I as DiagnosticsErrorSchema, In as SetBlobResultSchema, It as McpTextContentSchema, J as ExecuteHookResponseSchema, Jn as SmartModeClassifierResultSchema, Jt as PiEditExecRejectedSchema, K as ExecClientStreamCloseSchema, Kn as ShellSuccessSchema, Kt as PiBashExecSuccessSchema, L as DiagnosticsRejectedSchema, Ln as ShellAllowlistPrecheckResultSchema, Lt as McpToolCallSchema, M as DeleteErrorSchema, Mn as RequestedModel_ModelParameterbytesSchema, Mt as McpStateExecResultSchema, N as DeleteRejectedSchema, Nn as ResumeActionSchema, Nt as McpStateServerSchema, O as CreatePlanResultSchema, On as RequestContextResultSchema, Ot as McpErrorSchema, P as DeleteResultSchema, Pn as SelectedContextSchema, Pt as McpStateSuccessSchema, Q as ForceBackgroundShellResultSchema, Qn as SubagentErrorSchema, Qt as PiFindExecResultSchema, R as DiagnosticsResultSchema, Rn as ShellFailureSchema, Rt as McpToolDefinitionSchema, S as ConversationSearchResultSchema, Sn as ReadMcpResourceSuccessSchema, St as LsRejectedSchema, T as ConversationTurnStructureSchema, Tn as ReadSuccessSchema, Tt as McpAllowlistPrecheckResultSchema, U as ExaSearchRequestResponse_ApprovedSchema, Un as ShellStreamStartSchema, Ut as ModelDetailsSchema, V as ExaFetchRequestResponse_ApprovedSchema, Vn as ShellStreamExitSchema, Vt as McpToolResultContentItemSchema, W as ExecClientControlMessageSchema, Wn as ShellStreamStderrSchema, Wt as PiBashExecErrorSchema, X as FetchErrorSchema, Xn as SubagentAwaitNotFoundSchema, Xt as PiEditExecSuccessSchema, Y as ExecuteHookResultSchema, Yn as StopRequestResponseSchema, Yt as PiEditExecResultSchema, Z as FetchResultSchema, Zn as SubagentAwaitResultSchema, Zt as PiFindExecErrorSchema, _ as ClientHeartbeatSchema, _n as PreToolUseRequestResponseSchema, _r as WriteShellStdinResultSchema, _t as ListMcpResourcesExecResult_McpResourceSchema, a as AgentRunRequestSchema, an as PiLsExecSuccessSchema, ar as ToolCallSchema, at as GrepCountResultSchema, b as ConversationActionSchema, bn as ReadMcpResourceExecResultSchema, bt as LsDirectoryTreeNode_FileSchema, c as AgentStoreConflictResultSchema, cn as PiReadExecSuccessSchema, cr as WebFetchAllowlistPrecheckResultSchema, ct as GrepFileMatchSchema, d as AskQuestionResultSchema, dn as PiWriteExecRejectedSchema, dr as WebSearchRequestResponseSchema, dt as GrepSuccessSchema, en as PiGrepExecErrorSchema, er as SubagentStartRequestResponseSchema, et as GetBlobResultSchema, f as AssistantMessageSchema, fn as PiWriteExecResultSchema, fr as WebSearchRequestResponse_ApprovedSchema, ft as GrepUnionResultSchema, g as CanvasDiagnosticsResultSchema, gn as PreCompactRequestResponseSchema, gr as WriteShellStdinErrorSchema, gt as ListMcpResourcesExecResultSchema, h as CanvasDiagnosticsErrorSchema, hn as PostToolUseRequestResponseSchema, hr as WriteResultSchema, ht as ListMcpResourcesErrorSchema, i as AgentConversationTurnStructureSchema, in as PiLsExecResultSchema, ir as ThinkingMessageSchema, it as GrepContentResultSchema, j as CursorRuleTypeSchema, jn as RequestedModelSchema, jt as McpResultSchema, k as CursorRuleSchema, kn as RequestContextSchema, kt as McpImageContentSchema, l as AskQuestionInteractionResponseSchema, ln as PiTruncationSchema, lr as WebFetchRequestResponseSchema, lt as GrepFilesResultSchema, m as BeforeSubmitPromptRequestResponseSchema, mn as PostToolUseFailureRequestResponseSchema, mr as WriteRejectedSchema, mt as KvClientMessageSchema, n as AfterAgentThoughtRequestResponseSchema, nn as PiGrepExecSuccessSchema, nr as SwitchModeRequestResponseSchema, o as AgentServerMessageSchema, on as PiReadExecErrorSchema, or as UserMessageActionSchema, ot as GrepErrorSchema, p as BackgroundShellSpawnResultSchema, pn as PiWriteExecSuccessSchema, pr as WriteErrorSchema, pt as InteractionResponseSchema, q as ExecClientThrowSchema, qn as SmartModeClassifierErrorSchema, qt as PiEditExecErrorSchema, r as AgentClientMessageSchema, rn as PiLsExecErrorSchema, rr as SwitchModeRequestResponse_RejectedSchema, rt as GrepContentMatchSchema, s as AgentStoreConflictErrorSchema, sn as PiReadExecResultSchema, sr as UserMessageSchema, st as GrepFileCountSchema, t as AfterAgentResponseRequestResponseSchema, tn as PiGrepExecResultSchema, tr as SubagentStopRequestResponseSchema, u as AskQuestionRejectedSchema, un as PiWriteExecErrorSchema, ur as WebFetchRequestResponse_ApprovedSchema, ut as GrepResultSchema, v as ComputerUseErrorSchema, vn as ReadErrorSchema, vr as WriteSuccessSchema, vt as ListMcpResourcesSuccessSchema, w as ConversationStepSchema, wn as ReadResultSchema, wt as LsSuccessSchema, x as ConversationSearchErrorSchema, xn as ReadMcpResourceNotFoundSchema, xt as LsErrorSchema, y as ComputerUseResultSchema, yn as ReadMcpResourceErrorSchema, yt as LsDirectoryTreeNodeSchema, z as DiagnosticsSuccessSchema, zn as ShellRejectedSchema, zt as McpToolErrorSchema } from "./cursor-proto-
|
|
13
|
+
import { t as AssistantMessageEventStream } from "./event-stream-BKEtb45Y.mjs";
|
|
14
|
+
import { n as isRequestDebugEnabled, t as createRequestDebugSession } from "./request-debug-BwPOqN_j.mjs";
|
|
15
|
+
import { i as fromBinary, n as decodeJsonValue, o as toBinary, r as encodeJsonValue, t as create } from "./protobuf-BMgDYu_U.mjs";
|
|
16
|
+
import { $ as ForceBackgroundSubagentResultSchema, $n as SubagentResultSchema, $t as PiFindExecSuccessSchema, A as CursorRuleTypeGlobalSchema, An as RequestContextSuccessSchema, At as McpRejectedSchema, B as ExaFetchRequestResponseSchema, Bn as ShellResultSchema, Bt as McpToolNotFoundSchema, C as ConversationStateStructureSchema, Cn as ReadRejectedSchema, Ct as LsResultSchema, D as CreatePlanRequestResponseSchema, Dn as RecordScreenResultSchema, Dt as McpArgsSchema, E as CreatePlanErrorSchema, En as RecordScreenFailureSchema, Et as McpApprovedSchema, F as DeleteSuccessSchema, Fn as SelectedImageSchema, Ft as McpSuccessSchema, G as ExecClientMessageSchema, Gn as ShellStreamStdoutSchema, Gt as PiBashExecResultSchema, H as ExaSearchRequestResponseSchema, Hn as ShellStreamSchema, Ht as McpToolResultSchema, I as DiagnosticsErrorSchema, In as SetBlobResultSchema, It as McpTextContentSchema, J as ExecuteHookResponseSchema, Jn as SmartModeClassifierResultSchema, Jt as PiEditExecRejectedSchema, K as ExecClientStreamCloseSchema, Kn as ShellSuccessSchema, Kt as PiBashExecSuccessSchema, L as DiagnosticsRejectedSchema, Ln as ShellAllowlistPrecheckResultSchema, Lt as McpToolCallSchema, M as DeleteErrorSchema, Mn as RequestedModel_ModelParameterbytesSchema, Mt as McpStateExecResultSchema, N as DeleteRejectedSchema, Nn as ResumeActionSchema, Nt as McpStateServerSchema, O as CreatePlanResultSchema, On as RequestContextResultSchema, Ot as McpErrorSchema, P as DeleteResultSchema, Pn as SelectedContextSchema, Pt as McpStateSuccessSchema, Q as ForceBackgroundShellResultSchema, Qn as SubagentErrorSchema, Qt as PiFindExecResultSchema, R as DiagnosticsResultSchema, Rn as ShellFailureSchema, Rt as McpToolDefinitionSchema, S as ConversationSearchResultSchema, Sn as ReadMcpResourceSuccessSchema, St as LsRejectedSchema, T as ConversationTurnStructureSchema, Tn as ReadSuccessSchema, Tt as McpAllowlistPrecheckResultSchema, U as ExaSearchRequestResponse_ApprovedSchema, Un as ShellStreamStartSchema, Ut as ModelDetailsSchema, V as ExaFetchRequestResponse_ApprovedSchema, Vn as ShellStreamExitSchema, Vt as McpToolResultContentItemSchema, W as ExecClientControlMessageSchema, Wn as ShellStreamStderrSchema, Wt as PiBashExecErrorSchema, X as FetchErrorSchema, Xn as SubagentAwaitNotFoundSchema, Xt as PiEditExecSuccessSchema, Y as ExecuteHookResultSchema, Yn as StopRequestResponseSchema, Yt as PiEditExecResultSchema, Z as FetchResultSchema, Zn as SubagentAwaitResultSchema, Zt as PiFindExecErrorSchema, _ as ClientHeartbeatSchema, _n as PreToolUseRequestResponseSchema, _r as WriteShellStdinResultSchema, _t as ListMcpResourcesExecResult_McpResourceSchema, a as AgentRunRequestSchema, an as PiLsExecSuccessSchema, ar as ToolCallSchema, at as GrepCountResultSchema, b as ConversationActionSchema, bn as ReadMcpResourceExecResultSchema, bt as LsDirectoryTreeNode_FileSchema, c as AgentStoreConflictResultSchema, cn as PiReadExecSuccessSchema, cr as WebFetchAllowlistPrecheckResultSchema, ct as GrepFileMatchSchema, d as AskQuestionResultSchema, dn as PiWriteExecRejectedSchema, dr as WebSearchRequestResponseSchema, dt as GrepSuccessSchema, en as PiGrepExecErrorSchema, er as SubagentStartRequestResponseSchema, et as GetBlobResultSchema, f as AssistantMessageSchema, fn as PiWriteExecResultSchema, fr as WebSearchRequestResponse_ApprovedSchema, ft as GrepUnionResultSchema, g as CanvasDiagnosticsResultSchema, gn as PreCompactRequestResponseSchema, gr as WriteShellStdinErrorSchema, gt as ListMcpResourcesExecResultSchema, h as CanvasDiagnosticsErrorSchema, hn as PostToolUseRequestResponseSchema, hr as WriteResultSchema, ht as ListMcpResourcesErrorSchema, i as AgentConversationTurnStructureSchema, in as PiLsExecResultSchema, ir as ThinkingMessageSchema, it as GrepContentResultSchema, j as CursorRuleTypeSchema, jn as RequestedModelSchema, jt as McpResultSchema, k as CursorRuleSchema, kn as RequestContextSchema, kt as McpImageContentSchema, l as AskQuestionInteractionResponseSchema, ln as PiTruncationSchema, lr as WebFetchRequestResponseSchema, lt as GrepFilesResultSchema, m as BeforeSubmitPromptRequestResponseSchema, mn as PostToolUseFailureRequestResponseSchema, mr as WriteRejectedSchema, mt as KvClientMessageSchema, n as AfterAgentThoughtRequestResponseSchema, nn as PiGrepExecSuccessSchema, nr as SwitchModeRequestResponseSchema, o as AgentServerMessageSchema, on as PiReadExecErrorSchema, or as UserMessageActionSchema, ot as GrepErrorSchema, p as BackgroundShellSpawnResultSchema, pn as PiWriteExecSuccessSchema, pr as WriteErrorSchema, pt as InteractionResponseSchema, q as ExecClientThrowSchema, qn as SmartModeClassifierErrorSchema, qt as PiEditExecErrorSchema, r as AgentClientMessageSchema, rn as PiLsExecErrorSchema, rr as SwitchModeRequestResponse_RejectedSchema, rt as GrepContentMatchSchema, s as AgentStoreConflictErrorSchema, sn as PiReadExecResultSchema, sr as UserMessageSchema, st as GrepFileCountSchema, t as AfterAgentResponseRequestResponseSchema, tn as PiGrepExecResultSchema, tr as SubagentStopRequestResponseSchema, u as AskQuestionRejectedSchema, un as PiWriteExecErrorSchema, ur as WebFetchRequestResponse_ApprovedSchema, ut as GrepResultSchema, v as ComputerUseErrorSchema, vn as ReadErrorSchema, vr as WriteSuccessSchema, vt as ListMcpResourcesSuccessSchema, w as ConversationStepSchema, wn as ReadResultSchema, wt as LsSuccessSchema, x as ConversationSearchErrorSchema, xn as ReadMcpResourceNotFoundSchema, xt as LsErrorSchema, y as ComputerUseResultSchema, yn as ReadMcpResourceErrorSchema, yt as LsDirectoryTreeNodeSchema, z as DiagnosticsSuccessSchema, zn as ShellRejectedSchema, zt as McpToolErrorSchema } from "./cursor-proto-Cr_WEMuv.mjs";
|
|
17
17
|
import { t as deterministicUuid } from "./deterministic-id-CUEIMSqR.mjs";
|
|
18
18
|
import * as path$1 from "node:path";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { r as __exportAll } from "./fs-promises-shim-
|
|
4
|
-
import { f as OAuthError } from "./error-
|
|
3
|
+
import { r as __exportAll } from "./fs-promises-shim-B2YFWkcd.mjs";
|
|
4
|
+
import { f as OAuthError } from "./error-O63pC8zg.mjs";
|
|
5
5
|
import { t as generatePKCE } from "./pkce-BYjmugmw.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/cursor.ts
|
|
7
7
|
var cursor_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { a as pb } from "./protobuf-
|
|
3
|
+
import { a as pb } from "./protobuf-BMgDYu_U.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/discovery/cursor-proto.ts
|
|
5
5
|
/**
|
|
6
6
|
* Cursor agent protocol declarations used by Oh My Pi.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { C as warn } from "./src-
|
|
4
|
-
import { n as discoveryFetch } from "./utils-
|
|
3
|
+
import { C as warn } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { n as discoveryFetch } from "./utils-I4I8azHN.mjs";
|
|
5
5
|
import { n as THINKING_EFFORTS } from "./effort-BdtQMN-_.mjs";
|
|
6
|
-
import { t as collapseVariants } from "./collapse-
|
|
6
|
+
import { t as collapseVariants } from "./collapse-CkMNRNr7.mjs";
|
|
7
7
|
import { r as devinDiscoveryMetadata } from "./devin-ExGIghmx.mjs";
|
|
8
|
-
import { o as toBinary, t as create } from "./protobuf-
|
|
9
|
-
import { d as GetCliModelConfigsRequestSchema, f as GetCliModelConfigsResponseSchema, t as decodeDevinUnaryMessage, v as MetadataSchema } from "./devin-proto-
|
|
8
|
+
import { o as toBinary, t as create } from "./protobuf-BMgDYu_U.mjs";
|
|
9
|
+
import { d as GetCliModelConfigsRequestSchema, f as GetCliModelConfigsResponseSchema, t as decodeDevinUnaryMessage, v as MetadataSchema } from "./devin-proto-DYhp4Ty6.mjs";
|
|
10
10
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/discovery/devin.ts
|
|
11
11
|
const DEVIN_GET_CLI_MODEL_CONFIGS_PATH = "/exa.api_server_pb.ApiServerService/GetCliModelConfigs";
|
|
12
12
|
const DEFAULT_CONTEXT_WINDOW = 2e5;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { a as pb, i as fromBinary } from "./protobuf-
|
|
3
|
+
import { a as pb, i as fromBinary } from "./protobuf-BMgDYu_U.mjs";
|
|
4
4
|
import { gunzipSync } from "node:zlib";
|
|
5
5
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/discovery/devin-proto.ts
|
|
6
6
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { C as warn, _ as parseStreamingJson, b as debug, v as parseStreamingJsonThrottled, x as error } from "./src-
|
|
4
|
-
import { S as attach, T as create, c as finalize, o as DevinApiError, r as ValidationError, s as ProviderResponseError, v as Flag } from "./error-
|
|
5
|
-
import { A as toolWireSchema, _ as isDemotedThinking, h as transformMessages, o as normalizeSystemPrompts } from "./utils-
|
|
3
|
+
import { C as warn, _ as parseStreamingJson, b as debug, v as parseStreamingJsonThrottled, x as error } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { S as attach, T as create, c as finalize, o as DevinApiError, r as ValidationError, s as ProviderResponseError, v as Flag } from "./error-O63pC8zg.mjs";
|
|
5
|
+
import { A as toolWireSchema, _ as isDemotedThinking, h as transformMessages, o as normalizeSystemPrompts } from "./utils-cZX3f_Ls.mjs";
|
|
6
6
|
import { t as calculateCost } from "./models-DnXMYGcJ.mjs";
|
|
7
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
7
|
+
import { t as AssistantMessageEventStream } from "./event-stream-BKEtb45Y.mjs";
|
|
8
8
|
import { n as devinCliMetadata, t as DEVIN_DEFAULT_BASE_URL } from "./devin-ExGIghmx.mjs";
|
|
9
|
-
import { i as fromBinary, o as toBinary, t as create$1 } from "./protobuf-
|
|
10
|
-
import { _ as ImageDataSchema, a as ChatToolCallSchema, c as CompletionConfigurationSchema, i as ChatMessagePromptSchema, l as GetChatMessageRequestSchema, m as GetUserJwtResponseSchema, n as AssignModelRequestSchema, o as ChatToolChoiceSchema, p as GetUserJwtRequestSchema, r as AssignModelResponseSchema, s as ChatToolDefinitionSchema, t as decodeDevinUnaryMessage, u as GetChatMessageResponseSchema, v as MetadataSchema, y as PromptCacheOptionsSchema } from "./devin-proto-
|
|
9
|
+
import { i as fromBinary, o as toBinary, t as create$1 } from "./protobuf-BMgDYu_U.mjs";
|
|
10
|
+
import { _ as ImageDataSchema, a as ChatToolCallSchema, c as CompletionConfigurationSchema, i as ChatMessagePromptSchema, l as GetChatMessageRequestSchema, m as GetUserJwtResponseSchema, n as AssignModelRequestSchema, o as ChatToolChoiceSchema, p as GetUserJwtRequestSchema, r as AssignModelResponseSchema, s as ChatToolDefinitionSchema, t as decodeDevinUnaryMessage, u as GetChatMessageResponseSchema, v as MetadataSchema, y as PromptCacheOptionsSchema } from "./devin-proto-DYhp4Ty6.mjs";
|
|
11
11
|
import { t as deterministicUuid } from "./deterministic-id-CUEIMSqR.mjs";
|
|
12
12
|
import { gunzipSync, gzipSync } from "node:zlib";
|
|
13
13
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/providers/devin.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { J as getLogsDir, L as isBunTestRuntime } from "./src-
|
|
3
|
+
import { J as getLogsDir, L as isBunTestRuntime } from "./src-AELUUb5U.mjs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import { scheduler } from "node:timers/promises";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-utils@18.1.17/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 { s as ProviderResponseError, w as classifyMessage } from "./error-
|
|
3
|
+
import { s as ProviderResponseError, w as classifyMessage } from "./error-O63pC8zg.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/utils/event-stream.ts
|
|
5
5
|
var EventStream = class {
|
|
6
6
|
queue = [];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { V as ProviderHttpError, f as OAuthError, g as OnPromptRequiredError, m as LoginCancelledError } from "./error-
|
|
3
|
+
import { V as ProviderHttpError, f as OAuthError, g as OnPromptRequiredError, m as LoginCancelledError } from "./error-O63pC8zg.mjs";
|
|
4
4
|
import { r as getBundledModels } from "./models-DnXMYGcJ.mjs";
|
|
5
|
-
import { _ as normalizeCopilotIntegrationId, f as discoverGitHubCopilotApiEndpoint, h as isPublicGitHubHost, o as wrapFetchForCopilotFallback, p as getGitHubCopilotBaseUrl, r as resolveCopilotIntegrationIdOverride, s as COPILOT_API_HEADERS, v as normalizeDomain, y as normalizeGitHubCopilotEnterpriseDomain } from "./github-copilot-headers-
|
|
5
|
+
import { _ as normalizeCopilotIntegrationId, f as discoverGitHubCopilotApiEndpoint, h as isPublicGitHubHost, o as wrapFetchForCopilotFallback, p as getGitHubCopilotBaseUrl, r as resolveCopilotIntegrationIdOverride, s as COPILOT_API_HEADERS, v as normalizeDomain, y as normalizeGitHubCopilotEnterpriseDomain } from "./github-copilot-headers-DnjGEbko.mjs";
|
|
6
6
|
import { scheduler } from "node:timers/promises";
|
|
7
7
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/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 warn, N as $env } from "./src-
|
|
3
|
+
import { C as warn, N as $env } from "./src-AELUUb5U.mjs";
|
|
4
4
|
import { n as isRecord } from "./type-guards-CttAANEx.mjs";
|
|
5
|
-
import "./utils-
|
|
5
|
+
import "./utils-I4I8azHN.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/wire/github-copilot.ts
|
|
7
7
|
const COPILOT_CLI_USER_AGENT = `copilot/1.0.82`;
|
|
8
8
|
/** Headers sent by Copilot CLI to GitHub API and OAuth endpoints. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { i as clearGitLabDuoDirectAccessCache } from "./stream-
|
|
3
|
+
import { i as clearGitLabDuoDirectAccessCache } from "./stream-AVOoe5Hj.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/gitlab-duo.ts
|
|
5
5
|
/** GitLab Duo OAuth residue: invalidate direct-access credentials after token rotation. */
|
|
6
6
|
const gitLabDuoClearCacheHook = async (credentials) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { f as OAuthError, m as LoginCancelledError } from "./error-
|
|
4
|
-
import { n as raceWithSignal } from "./abort-
|
|
3
|
+
import { f as OAuthError, m as LoginCancelledError } from "./error-O63pC8zg.mjs";
|
|
4
|
+
import { n as raceWithSignal } from "./abort-DZ54CaKU.mjs";
|
|
5
5
|
import { n as getAntigravityUserAgent } from "./gemini-headers-Co9cVvex.mjs";
|
|
6
6
|
import { n as formatGoogleValidationRequiredMessage, t as extractGoogleValidationUrl } from "./google-validation-BEkNs-Bx.mjs";
|
|
7
|
-
import { n as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-
|
|
7
|
+
import { n as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-BctLpVUN.mjs";
|
|
8
8
|
import { type } from "@oh-my-pi/omptype";
|
|
9
9
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/google-antigravity.ts
|
|
10
10
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { $ as isEnoent, P as $envpos, b as debug } from "./src-
|
|
4
|
-
import { f as OAuthError, h as MissingApiKeyError, t as ConfigurationError } from "./error-
|
|
5
|
-
import { n as raceWithSignal } from "./abort-
|
|
3
|
+
import { $ as isEnoent, P as $envpos, b as debug } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { f as OAuthError, h as MissingApiKeyError, t as ConfigurationError } from "./error-O63pC8zg.mjs";
|
|
5
|
+
import { n as raceWithSignal } from "./abort-DZ54CaKU.mjs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import * as os from "node:os";
|
|
8
8
|
import { Buffer } from "node:buffer";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { o as readSseJson } from "./src-
|
|
4
|
-
import { C as classify, G as fetchWithRetry, L as GeminiCliApiError, W as extractHttpStatusFromError, _ as AbortError, a as isTransientStatus, c as finalize, f as OAuthError, j as retriable, n as StreamTimeoutError, r as ValidationError, s as ProviderResponseError, t as ConfigurationError } from "./error-
|
|
5
|
-
import { N as normalizeSchemaForCCA, o as normalizeSystemPrompts } from "./utils-
|
|
3
|
+
import { o as readSseJson } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { C as classify, G as fetchWithRetry, L as GeminiCliApiError, W as extractHttpStatusFromError, _ as AbortError, a as isTransientStatus, c as finalize, f as OAuthError, j as retriable, n as StreamTimeoutError, r as ValidationError, s as ProviderResponseError, t as ConfigurationError } from "./error-O63pC8zg.mjs";
|
|
5
|
+
import { N as normalizeSchemaForCCA, o as normalizeSystemPrompts } from "./utils-cZX3f_Ls.mjs";
|
|
6
6
|
import { t as calculateCost } from "./models-DnXMYGcJ.mjs";
|
|
7
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
7
|
+
import { t as AssistantMessageEventStream } from "./event-stream-BKEtb45Y.mjs";
|
|
8
8
|
import { n as getAntigravityUserAgent, r as getGeminiCliHeaders, t as getAntigravityModelWireProfile } from "./gemini-headers-Co9cVvex.mjs";
|
|
9
|
-
import { i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, t as armPreResponseTimeout } from "./idle-iterator-
|
|
10
|
-
import { t as StreamMarkupHealing } from "./stream-markup-healing-
|
|
9
|
+
import { i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, t as armPreResponseTimeout } from "./idle-iterator-D0ZXEcUq.mjs";
|
|
10
|
+
import { t as StreamMarkupHealing } from "./stream-markup-healing-CN3RsqG9.mjs";
|
|
11
11
|
import { n as formatGoogleValidationRequiredMessage, t as extractGoogleValidationUrl } from "./google-validation-BEkNs-Bx.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-
|
|
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-Y01j9xOr.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,10 +1,10 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { N as $env } from "./src-
|
|
4
|
-
import { f as OAuthError } from "./error-
|
|
3
|
+
import { N as $env } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { f as OAuthError } from "./error-O63pC8zg.mjs";
|
|
5
5
|
import { r as getGeminiCliHeaders } from "./gemini-headers-Co9cVvex.mjs";
|
|
6
6
|
import { n as formatGoogleValidationRequiredMessage, t as extractGoogleValidationUrl } from "./google-validation-BEkNs-Bx.mjs";
|
|
7
|
-
import { n as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-
|
|
7
|
+
import { n as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-BctLpVUN.mjs";
|
|
8
8
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/google-gemini-cli.ts
|
|
9
9
|
/**
|
|
10
10
|
* Gemini CLI OAuth flow (Google Cloud Code Assist)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { h as MissingApiKeyError } from "./error-
|
|
4
|
-
import { Ct as applyInferenceHeaders, n as getEnvApiKey } from "./stream-
|
|
5
|
-
import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-
|
|
3
|
+
import { h as MissingApiKeyError } from "./error-O63pC8zg.mjs";
|
|
4
|
+
import { Ct as applyInferenceHeaders, n as getEnvApiKey } from "./stream-AVOoe5Hj.mjs";
|
|
5
|
+
import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-Y01j9xOr.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/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) => {
|