@xiaoso/dsh-tool-plus 0.1.10-beta.1 → 0.1.10-beta.3
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/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/client.js +131 -751
- 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 +120 -16
- 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-DODCPcZW.mjs → scrapers-C6EY0T00.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/client/index.d.ts +18 -14
- package/lib/types/host/win32-console.d.ts +54 -0
- package/lib/{types-DT9vgZ3S.mjs → types-BLrLohwK.mjs} +2 -2
- package/lib/{utils-D80w8vry.mjs → utils-BZWfyz9e.mjs} +28 -28
- package/lib/{utils-D31VFael.mjs → utils-I4I8azHN.mjs} +1 -1
- 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 +169 -166
- package/lib/types/client/BashPlusCard.d.ts +0 -53
|
@@ -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) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { f as OAuthError, m as LoginCancelledError } from "./error-
|
|
3
|
+
import { f as OAuthError, m as LoginCancelledError } 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/oauth/google-oauth-shared.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shared OAuth flow for Google-style providers (Gemini CLI, Antigravity).
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { o as readSseJson } from "./src-
|
|
4
|
-
import { R as GoogleApiError, _ as AbortError, c as finalize, r as ValidationError, s as ProviderResponseError, t as ConfigurationError } from "./error-
|
|
5
|
-
import { A as toolWireSchema, N as normalizeSchemaForCCA, P as normalizeSchemaForGoogle, T as renderDemotedThinking, h as transformMessages, o as normalizeSystemPrompts } from "./utils-
|
|
3
|
+
import { o as readSseJson } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { R as GoogleApiError, _ as AbortError, c as finalize, r as ValidationError, s as ProviderResponseError, t as ConfigurationError } from "./error-O63pC8zg.mjs";
|
|
5
|
+
import { A as toolWireSchema, N as normalizeSchemaForCCA, P as normalizeSchemaForGoogle, T as renderDemotedThinking, h as transformMessages, o as normalizeSystemPrompts } from "./utils-cZX3f_Ls.mjs";
|
|
6
6
|
import { t as calculateCost } from "./models-DnXMYGcJ.mjs";
|
|
7
|
-
import { o as shouldSendServiceTier, t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-
|
|
8
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
7
|
+
import { o as shouldSendServiceTier, t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-BCpXWUj3.mjs";
|
|
8
|
+
import { t as AssistantMessageEventStream } from "./event-stream-BKEtb45Y.mjs";
|
|
9
9
|
import { scheduler } from "node:timers/promises";
|
|
10
10
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/dialect/thinking-fence-strip.ts
|
|
11
11
|
/**
|
|
@@ -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 { 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 { i as resolveVertexEndpointHost } from "./hosts-00rjRzUD.mjs";
|
|
6
|
-
import { t as getVertexAccessToken } from "./google-auth-
|
|
7
|
-
import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-
|
|
6
|
+
import { t as getVertexAccessToken } from "./google-auth-qAN-6DMW.mjs";
|
|
7
|
+
import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-Y01j9xOr.mjs";
|
|
8
8
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/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,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 { _ as AbortError, n as StreamTimeoutError } from "./error-
|
|
3
|
+
import { N as $env } from "./src-AELUUb5U.mjs";
|
|
4
|
+
import { _ as AbortError, n as StreamTimeoutError } 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/utils/idle-iterator.ts
|
|
6
6
|
const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 3e5;
|
|
7
7
|
const DEFAULT_STREAM_FIRST_EVENT_TIMEOUT_MS = 3e5;
|
package/lib/index.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { n as fs_promises_shim_exports, t as exists } from "./fs-promises-shim-
|
|
4
|
-
import { i as setRuntimeLogger, n as systemChromiumCandidatesForTest, r as runtimeLogger } from "./launch-
|
|
5
|
-
import { $ as isEnoent, A as formatCount, C as warn, D as installBunShim, F as $flag, N as $env, O as formatAge, P as $envpos, Q as hasFsCode, U as getAutoQaDbPath, V as VERSION, X as getRemoteDir, Y as getPuppeteerDir, at as findOnPath, b as debug, c as combineSignals, d as $which, et as isEnotdir, it as untilAborted, k as formatBytes$1, l as exec, m as readImageMetadata, nt as peekFile, q as getInstallId, tt as isProbablyBinary, u as render, x as error } from "./src-
|
|
6
|
-
import { C as truncateToWidth$1, S as replaceTabs, _ as formatCodeFrameLine, a as fetchBinary, b as LRUCache, c as getParallelExtractContent, d as convertFileWithMarkit, f as Settings, g as capParseErrors, h as OMP_DEFAULTS, i as convertWithMarkit, l as ensureTool, m as settings, o as extractWithParallel, p as isSettingsInitialized, s as findParallelApiKey, u as CONVERTIBLE_EXTENSIONS, v as formatParseErrors, x as padding, y as shortenPath } from "./utils-
|
|
3
|
+
import { n as fs_promises_shim_exports, t as exists } from "./fs-promises-shim-B2YFWkcd.mjs";
|
|
4
|
+
import { i as setRuntimeLogger, n as systemChromiumCandidatesForTest, r as runtimeLogger } from "./launch-BIWNyrBB.mjs";
|
|
5
|
+
import { $ as isEnoent, A as formatCount, C as warn, D as installBunShim, F as $flag, N as $env, O as formatAge, P as $envpos, Q as hasFsCode, U as getAutoQaDbPath, V as VERSION, X as getRemoteDir, Y as getPuppeteerDir, at as findOnPath, b as debug, c as combineSignals, d as $which, et as isEnotdir, it as untilAborted, k as formatBytes$1, l as exec, m as readImageMetadata, nt as peekFile, q as getInstallId, tt as isProbablyBinary, u as render, x as error } from "./src-AELUUb5U.mjs";
|
|
6
|
+
import { C as truncateToWidth$1, S as replaceTabs, _ as formatCodeFrameLine, a as fetchBinary, b as LRUCache, c as getParallelExtractContent, d as convertFileWithMarkit, f as Settings, g as capParseErrors, h as OMP_DEFAULTS, i as convertWithMarkit, l as ensureTool, m as settings, o as extractWithParallel, p as isSettingsInitialized, s as findParallelApiKey, u as CONVERTIBLE_EXTENSIONS, v as formatParseErrors, x as padding, y as shortenPath } from "./utils-BZWfyz9e.mjs";
|
|
7
7
|
import { t as sanitizeText } from "./sanitize-text-BCf5KmCf.mjs";
|
|
8
8
|
import { n as isRecord$5 } from "./type-guards-CttAANEx.mjs";
|
|
9
9
|
import { n as ToolError, r as throwIfAborted, t as ToolAbortError } from "./tool-errors-DoyxivAR.mjs";
|
|
10
|
-
import { a as openArchive, c as sniffArchiveFormat, d as writeArchive, i as listArchiveRoot, o as parseArchivePathCandidates, r as formatArchiveEntryLines, s as readArchiveEntries, t as archiveFormatFromPath } from "./zip-
|
|
11
|
-
import { a as finalizeOutput, d as looksLikeHtml, n as MAX_OUTPUT_CHARS, t as MAX_BYTES, u as loadPage } from "./types-
|
|
10
|
+
import { a as openArchive, c as sniffArchiveFormat, d as writeArchive, i as listArchiveRoot, o as parseArchivePathCandidates, r as formatArchiveEntryLines, s as readArchiveEntries, t as archiveFormatFromPath } from "./zip-DRrycScC.mjs";
|
|
11
|
+
import { a as finalizeOutput, d as looksLikeHtml, n as MAX_OUTPUT_CHARS, t as MAX_BYTES, u as loadPage } from "./types-BLrLohwK.mjs";
|
|
12
|
+
import { createRequire } from "node:module";
|
|
12
13
|
import * as fs from "node:fs";
|
|
13
14
|
import { copyFileSync, existsSync, readFileSync, readdirSync } from "node:fs";
|
|
14
15
|
import { TOOL_ABORTED, defineTool } from "@deepseek-ai/dsh-tools";
|
|
@@ -22,7 +23,7 @@ import { spawn } from "node:child_process";
|
|
|
22
23
|
import * as os from "node:os";
|
|
23
24
|
import { homedir, tmpdir } from "node:os";
|
|
24
25
|
import * as url from "node:url";
|
|
25
|
-
import { fileURLToPath } from "node:url";
|
|
26
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
26
27
|
import { scheduler } from "node:timers/promises";
|
|
27
28
|
import { randomBytes } from "node:crypto";
|
|
28
29
|
import z from "@deepseek-ai/schemastery";
|
|
@@ -726,7 +727,8 @@ async function getOrCreateSnapshot(shell, env, timeoutMs = SNAPSHOT_TIMEOUT_MS)
|
|
|
726
727
|
env: spawnEnv,
|
|
727
728
|
timeout: timeoutMs,
|
|
728
729
|
stdio: "ignore",
|
|
729
|
-
killSignal: "SIGKILL"
|
|
730
|
+
killSignal: "SIGKILL",
|
|
731
|
+
windowsHide: true
|
|
730
732
|
});
|
|
731
733
|
await new Promise((resolve, reject) => {
|
|
732
734
|
child.on("close", (code) => {
|
|
@@ -5463,11 +5465,14 @@ function toGitBashPath(p) {
|
|
|
5463
5465
|
}
|
|
5464
5466
|
/** 默认 spawn 实现:收集 stdout,超时 kill 并标记 timedOut。 */
|
|
5465
5467
|
const defaultSpawnDeps = { spawnShell: (shell, args, timeoutMs) => new Promise((resolve, reject) => {
|
|
5466
|
-
const child = spawn(shell, args, {
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5468
|
+
const child = spawn(shell, args, {
|
|
5469
|
+
stdio: [
|
|
5470
|
+
"ignore",
|
|
5471
|
+
"pipe",
|
|
5472
|
+
"pipe"
|
|
5473
|
+
],
|
|
5474
|
+
windowsHide: true
|
|
5475
|
+
});
|
|
5471
5476
|
let stdout = "";
|
|
5472
5477
|
let timedOut = false;
|
|
5473
5478
|
const timer = setTimeout(() => {
|
|
@@ -5766,6 +5771,104 @@ function installBrowserProbeRpc(ctx, deps) {
|
|
|
5766
5771
|
};
|
|
5767
5772
|
}
|
|
5768
5773
|
//#endregion
|
|
5774
|
+
//#region src/host/win32-console.ts
|
|
5775
|
+
/**
|
|
5776
|
+
* Windows:让宿主进程自己持有一个「不可见控制台」。
|
|
5777
|
+
*
|
|
5778
|
+
* 为什么需要(2026-09-25 实测):桌面端宿主是 GUI 子系统镜像
|
|
5779
|
+
* (`DeepSeek Harness.exe` + `ELECTRON_RUN_AS_NODE=1`),Windows 永远不会给它
|
|
5780
|
+
* 分配控制台;于是它的每个 console 子进程(pi-shell 的 `where git` 探测、快照
|
|
5781
|
+
* `bash.exe`、任何插件 spawn 的 CLI)都要**新建**一个控制台,而默认终端应用是
|
|
5782
|
+
* Windows Terminal → 每条命令闪一个窗口。
|
|
5783
|
+
*
|
|
5784
|
+
* 控制台是「父进程有 → 子进程默认继承;父进程没有 → 子进程新建」:宿主自己先
|
|
5785
|
+
* `AllocConsole()` 再立刻 `SW_HIDE`,之后所有 console 子进程都继承它,不再新建
|
|
5786
|
+
* 窗口。实测(无控制台宿主里 spawn 一个 `where.exe`):不装 → 新开一个可见 WT
|
|
5787
|
+
* 窗口(窗口里的进程正是那个 where.exe);装了 → 子进程报「继承了我的控制台」、
|
|
5788
|
+
* 零新窗口。代价:分配那一刻会出现一个 WT 窗口、可见约 1.8s —— 默认终端是 WT 时
|
|
5789
|
+
* `ShowWindow(GetConsoleWindow())` 只藏得住 conhost 侧那个窗口对象,藏不住
|
|
5790
|
+
* wt.exe 宿主窗口。这一次性的窗口只能在源头消除(上游给 `where` 探测加
|
|
5791
|
+
* `CREATE_NO_WINDOW`,或让宿主从 console 子系统父进程继承一个 CREATE_NO_WINDOW
|
|
5792
|
+
* 的控制台)。
|
|
5793
|
+
*
|
|
5794
|
+
* 三条硬约束(都有测试钉住):
|
|
5795
|
+
* - 只在 win32 生效;宿主**已经有**控制台(CLI 在终端里跑)时什么都不做,否则会
|
|
5796
|
+
* 凭空多出一个控制台;
|
|
5797
|
+
* - `AllocConsole` 会重指 STD_INPUT/OUTPUT/ERROR,而宿主的 stdio 是启动方给的
|
|
5798
|
+
* pipe → 必须先存后还,否则可能污染宿主输出、弄断 shell 的管道;
|
|
5799
|
+
* - 任何失败(没有 koffi、句柄取不到、`AllocConsole` 失败)都只降级,不抛。
|
|
5800
|
+
* @module @xiaoso/dsh-tool-plus/host/win32-console
|
|
5801
|
+
*/
|
|
5802
|
+
/** 三个标准句柄的 Win32 编号,顺序即存取顺序。 */
|
|
5803
|
+
const STD_HANDLES = [
|
|
5804
|
+
-10,
|
|
5805
|
+
-11,
|
|
5806
|
+
-12
|
|
5807
|
+
];
|
|
5808
|
+
/** `ShowWindow` 的 `SW_HIDE`。 */
|
|
5809
|
+
const SW_HIDE = 0;
|
|
5810
|
+
/**
|
|
5811
|
+
* 安装隐藏控制台(幂等)。宿主已有控制台时返回 `console-present` 且零副作用。
|
|
5812
|
+
* @param platform - 当前平台(注入以便测试非 win32 分支)。
|
|
5813
|
+
* @param load - 取 Win32 调用集合;拿不到(没有 koffi)时返回 undefined。
|
|
5814
|
+
* @returns 本次安装的结果。
|
|
5815
|
+
*/
|
|
5816
|
+
function installHiddenHostConsole(platform, load) {
|
|
5817
|
+
if (platform !== "win32") return "not-windows";
|
|
5818
|
+
try {
|
|
5819
|
+
const bindings = load();
|
|
5820
|
+
if (bindings === void 0) return "ffi-unavailable";
|
|
5821
|
+
if (bindings.getConsoleWindow() !== null) return "console-present";
|
|
5822
|
+
const saved = STD_HANDLES.map((index) => bindings.getStdHandle(index));
|
|
5823
|
+
if (!bindings.allocConsole()) return "alloc-failed";
|
|
5824
|
+
const window = bindings.getConsoleWindow();
|
|
5825
|
+
if (window !== null) bindings.showWindow(window, SW_HIDE);
|
|
5826
|
+
STD_HANDLES.forEach((index, at) => bindings.setStdHandle(index, saved[at]));
|
|
5827
|
+
return "allocated";
|
|
5828
|
+
} catch {
|
|
5829
|
+
return "ffi-unavailable";
|
|
5830
|
+
}
|
|
5831
|
+
}
|
|
5832
|
+
/** 把 koffi 的 `func()` 产物收窄成本模块的调用签名。 */
|
|
5833
|
+
function asCall(value) {
|
|
5834
|
+
return value;
|
|
5835
|
+
}
|
|
5836
|
+
/** 从「宿主入口所在目录」解析依赖:打包运行时的 koffi 装在宿主 node_modules 里。 */
|
|
5837
|
+
function hostRequire() {
|
|
5838
|
+
const entry = process.argv[1];
|
|
5839
|
+
if (entry === void 0 || entry.length === 0) return void 0;
|
|
5840
|
+
try {
|
|
5841
|
+
return createRequire(pathToFileURL(path$1.join(path$1.dirname(entry), "tool-plus-host-console.js")));
|
|
5842
|
+
} catch {
|
|
5843
|
+
return;
|
|
5844
|
+
}
|
|
5845
|
+
}
|
|
5846
|
+
/** 真实加载:先本包依赖的 koffi,再宿主运行时自带的 koffi。 */
|
|
5847
|
+
function loadKoffiBindings() {
|
|
5848
|
+
const requires = [createRequire(import.meta.url)];
|
|
5849
|
+
const host = hostRequire();
|
|
5850
|
+
if (host !== void 0) requires.push(host);
|
|
5851
|
+
for (const requireKoffi of requires) try {
|
|
5852
|
+
const koffi = requireKoffi("koffi");
|
|
5853
|
+
const kernel32 = koffi.load("kernel32.dll");
|
|
5854
|
+
const user32 = koffi.load("user32.dll");
|
|
5855
|
+
return {
|
|
5856
|
+
getConsoleWindow: asCall(kernel32.func("void *GetConsoleWindow()")),
|
|
5857
|
+
allocConsole: asCall(kernel32.func("bool AllocConsole()")),
|
|
5858
|
+
showWindow: asCall(user32.func("bool ShowWindow(void *hWnd, int nCmdShow)")),
|
|
5859
|
+
getStdHandle: asCall(kernel32.func("void *GetStdHandle(int nStdHandle)")),
|
|
5860
|
+
setStdHandle: asCall(kernel32.func("bool SetStdHandle(int nStdHandle, void *h)"))
|
|
5861
|
+
};
|
|
5862
|
+
} catch {}
|
|
5863
|
+
}
|
|
5864
|
+
/**
|
|
5865
|
+
* 插件入口调用:win32 且能拿到 FFI 时才安装,结果只用于日志。
|
|
5866
|
+
* @returns 本次安装的结果。
|
|
5867
|
+
*/
|
|
5868
|
+
function ensureInheritableHiddenConsole() {
|
|
5869
|
+
return installHiddenHostConsole(process.platform, loadKoffiBindings);
|
|
5870
|
+
}
|
|
5871
|
+
//#endregion
|
|
5769
5872
|
//#region src/presets/rows.ts
|
|
5770
5873
|
/** 行 id 的取值(非空字符串才认,与官方对 `name` 的要求同款)。 */
|
|
5771
5874
|
function rowId(row) {
|
|
@@ -11175,7 +11278,7 @@ async function renderHtmlToText(url, html, timeout, settings, userSignal, storag
|
|
|
11175
11278
|
},
|
|
11176
11279
|
browser: async () => {
|
|
11177
11280
|
if (settings.get("browser.readerEnabled") === false) return null;
|
|
11178
|
-
const { renderUrlWithBrowser } = await import("./browser-render-
|
|
11281
|
+
const { renderUrlWithBrowser } = await import("./browser-render-BZXt548F.mjs");
|
|
11179
11282
|
return renderUrlWithBrowser(url, {
|
|
11180
11283
|
timeoutMs: remoteBudgetMs,
|
|
11181
11284
|
signal: userSignal
|
|
@@ -11396,7 +11499,7 @@ let specialHandlersPromise;
|
|
|
11396
11499
|
* requires a special handler, so we keep them out of the cold-startup graph.
|
|
11397
11500
|
*/
|
|
11398
11501
|
function loadSpecialHandlers() {
|
|
11399
|
-
specialHandlersPromise ??= import("./scrapers-
|
|
11502
|
+
specialHandlersPromise ??= import("./scrapers-C6EY0T00.mjs").then((m) => m.specialHandlers);
|
|
11400
11503
|
return specialHandlersPromise;
|
|
11401
11504
|
}
|
|
11402
11505
|
/**
|
|
@@ -15404,7 +15507,7 @@ async function writethroughNoop(dst, content, _signal, file) {
|
|
|
15404
15507
|
}
|
|
15405
15508
|
/** Async UTF-8 write (node:fs) used when no file handle is supplied. */
|
|
15406
15509
|
async function writeFileUtf8(dst, content) {
|
|
15407
|
-
const { writeFile, mkdir } = await import("./fs-promises-shim-
|
|
15510
|
+
const { writeFile, mkdir } = await import("./fs-promises-shim-B2YFWkcd.mjs").then((n) => n.n);
|
|
15408
15511
|
const { dirname } = await import("node:path");
|
|
15409
15512
|
try {
|
|
15410
15513
|
await writeFile(dst, content, "utf8");
|
|
@@ -23559,6 +23662,7 @@ function apply(ctx, config = {}) {
|
|
|
23559
23662
|
installBunShim();
|
|
23560
23663
|
let cfg = resolveConfig(config);
|
|
23561
23664
|
setRuntimeLogger(ctx.logger);
|
|
23665
|
+
runtimeLogger().debug("host console", { outcome: ensureInheritableHiddenConsole() });
|
|
23562
23666
|
sweepStaleSpillFiles();
|
|
23563
23667
|
let disposeModeSensitive = [];
|
|
23564
23668
|
const registerModeSensitive = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { f as OAuthError, m as LoginCancelledError } from "./error-
|
|
3
|
+
import { f as OAuthError, m as LoginCancelledError } 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/oauth/kilo.ts
|
|
5
5
|
const KILO_DEVICE_AUTH_BASE_URL = "https://api.kilo.ai/api/device-auth";
|
|
6
6
|
const POLL_INTERVAL_MS = 5e3;
|