@xiaoso/dsh-tool-plus 0.1.0-beta.5 → 0.1.0-beta.7
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 +1 -1
- package/README.md +2 -2
- package/THIRD_PARTY_NOTICES.md +42 -42
- package/lib/{abort-dIkZBV7Q.mjs → abort-CsjZitYv.mjs} +1 -1
- package/lib/{amazon-bedrock-WQhvjHYu.mjs → amazon-bedrock-CfNIDi5k.mjs} +7 -7
- package/lib/{anthropic-CJCauvYz.mjs → anthropic-BVfZdnMp.mjs} +12 -12
- package/lib/{anthropic-tTntD8BD.mjs → anthropic-DGXmmg43.mjs} +2 -2
- package/lib/{api-key-login-BzqNdM2y.mjs → api-key-login-BikQAfD-.mjs} +1 -1
- package/lib/{aws-credentials-CXryMobh.mjs → aws-credentials-DrssNMn_.mjs} +4 -4
- package/lib/{azure-openai-responses-DuukbD0F.mjs → azure-openai-responses-C-5q-5K2.mjs} +8 -8
- package/lib/browser-render-z6b8Ljo9.mjs +183 -0
- package/lib/{bundled-references-Cavaffah.mjs → bundled-references-D71z7_T3.mjs} +2 -2
- package/lib/{callback-server-CQ5Jo8F-.mjs → callback-server-Di6C4RqI.mjs} +1 -1
- package/lib/client.js +613 -107
- package/lib/{cursor-B6TUEmgP.mjs → cursor-CQQtygwl.mjs} +1 -1
- package/lib/{cursor-DkSX2h3H.mjs → cursor-DXJxwdcg.mjs} +7 -7
- package/lib/{cursor-aJrXeYCb.mjs → cursor-Hr5Zw1gt.mjs} +3 -3
- package/lib/{device-code-DBo3B5nh.mjs → device-code-wZUbgPdB.mjs} +1 -1
- package/lib/{devin-BHZZyMhO.mjs → devin-CF6UhCFw.mjs} +2 -2
- package/lib/{devin-BK7DHeca.mjs → devin-DXJoDlW2.mjs} +1 -1
- package/lib/{devin-vNZTNUON.mjs → devin-P37gURs_.mjs} +5 -5
- package/lib/{dom-DGdYAVTv.mjs → dom-CawWi8fa.mjs} +14 -1
- package/lib/{error-Dd8DIqs-.mjs → error-DoHuatWw.mjs} +1 -1
- package/lib/{event-stream-BbFZJy-z.mjs → event-stream-C-FmBYUt.mjs} +1 -1
- package/lib/{github-copilot-CYkjeTi3.mjs → github-copilot-C2dTonBX.mjs} +3 -3
- package/lib/{github-copilot-B1yiyVRh.mjs → github-copilot-qETlj_bD.mjs} +1 -1
- package/lib/{gitlab-duo-CM7Ref1H.mjs → gitlab-duo-FQZiFRQe.mjs} +3 -3
- package/lib/{gitlab-duo-workflow-BGAF6JDw.mjs → gitlab-duo-workflow-DLTabzOy.mjs} +2 -2
- package/lib/{google-BS4T25Pn.mjs → google-BilwFSzx.mjs} +3 -3
- package/lib/{google-antigravity-DGmwC2KV.mjs → google-antigravity-BfBiINdu.mjs} +2 -2
- package/lib/{google-auth-B6gjsZvg.mjs → google-auth-CWlKXJ-H.mjs} +3 -3
- package/lib/{google-gemini-cli-Dsztq0N5.mjs → google-gemini-cli-CB89ljNz.mjs} +3 -3
- package/lib/{google-gemini-cli-Cqds_Q5T.mjs → google-gemini-cli-CygFcR6N.mjs} +8 -8
- package/lib/{google-oauth-shared-CuEHaDDj.mjs → google-oauth-shared-Cn82h1o2.mjs} +2 -2
- package/lib/{google-shared-Dr-VG-ap.mjs → google-shared-CF1JrqTM.mjs} +6 -6
- package/lib/{google-vertex-BDN2tLaD.mjs → google-vertex-DgMhhFw8.mjs} +5 -5
- package/lib/{identity-Da1GPU9a.mjs → identity-C0SPVyIZ.mjs} +1 -1
- package/lib/{idle-iterator-DUjKQEGT.mjs → idle-iterator-HzbbfXP4.mjs} +2 -2
- package/lib/index.mjs +310 -29
- package/lib/{kimi-Dh0pv3WZ.mjs → kimi-DHDO6Fde.mjs} +3 -3
- package/lib/launch-DwpE70Pv.mjs +148 -0
- package/lib/{markit-BL3cH47U.mjs → markit-B9exZ0ZV.mjs} +1 -1
- package/lib/{minimax-code-Uq8Qu9LW.mjs → minimax-code-vAhEXhev.mjs} +1 -1
- package/lib/{models-SGASygJ3.mjs → models-Cp3PzU3l.mjs} +1 -1
- package/lib/{ollama-DPzBmq89.mjs → ollama-TrkXTNqE.mjs} +8 -8
- package/lib/{openai-codex-Ch8CkT3p.mjs → openai-codex-CrjHtSH4.mjs} +3 -3
- package/lib/{openai-codex-responses-pejZgdZo.mjs → openai-codex-responses-C4uMpWNy.mjs} +10 -10
- package/lib/{openai-completions-DIf361kF.mjs → openai-completions-1ydXm5vF.mjs} +13 -13
- package/lib/{openai-reasoning-fallback-Nj6yB2rY.mjs → openai-reasoning-fallback-CigKCyzc.mjs} +2 -2
- package/lib/{openai-responses-Db_a-U4-.mjs → openai-responses-CN79gRGQ.mjs} +10 -10
- package/lib/{opencode-Rq_Q2vAO.mjs → opencode-CEGlimzL.mjs} +1 -1
- package/lib/{perplexity-C4iLVMUj.mjs → perplexity-BLJN-8dM.mjs} +2 -2
- package/lib/{proxy-pM_NIv-H.mjs → proxy-XOYi58TM.mjs} +1 -1
- package/lib/readability-Cpm-ocau.mjs +455 -0
- package/lib/{scrapers-1FTlHNQV.mjs → scrapers-DrSYgPyf.mjs} +11 -10
- package/lib/{src-BgpusnsB.mjs → src-D_e1qMwi.mjs} +5 -1
- package/lib/{stream-CRtexYLe.mjs → stream-DveNFWSN.mjs} +56 -56
- package/lib/{stream-markup-healing-KMkiAA00.mjs → stream-markup-healing-C9eC7Gf8.mjs} +3 -3
- package/lib/tool-errors-DoyxivAR.mjs +47 -0
- package/lib/types-BUO0JXO-.mjs +251 -0
- package/lib/{utils-D2YknRk4.mjs → utils-B-mTYQBc.mjs} +1 -1
- package/lib/{utils-C616y7eF.mjs → utils-DSEEKy3G.mjs} +28 -268
- package/lib/{utils-Cp76gCyk.mjs → utils-fnV2zzp3.mjs} +3 -3
- package/lib/{vision-guard-01qSwFpf.mjs → vision-guard-BsvOWmfB.mjs} +2 -2
- package/lib/{wafer-CgtPHerf.mjs → wafer-Dpy7tL3l.mjs} +1 -1
- package/lib/{xai-oauth-Buk8XVvM.mjs → xai-oauth-BkPNQS-q.mjs} +2 -2
- package/lib/{xiaomi-D2qT5cAC.mjs → xiaomi-CG3TsYRz.mjs} +1 -1
- package/lib/{zai-C59YnomG.mjs → zai--cewobzN.mjs} +2 -2
- package/lib/{zip-Cg9ANN_U.mjs → zip-CqKW2-TK.mjs} +3 -46
- package/package.json +3 -1
- package/presets/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
3
|
import { r as __exportAll } from "./fs-promises-shim-Bx0fpxuk.mjs";
|
|
4
|
-
import { c as OAuthError } from "./error-
|
|
4
|
+
import { c as OAuthError } from "./error-DoHuatWw.mjs";
|
|
5
5
|
import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/cursor.ts
|
|
7
7
|
var cursor_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
3
|
import { n as fs_promises_shim_exports } from "./fs-promises-shim-Bx0fpxuk.mjs";
|
|
4
|
-
import { P as $env, T as warn, _ as parseStreamingJsonThrottled, g as parseStreamingJson, h as parseJsonWithRepair } from "./src-
|
|
5
|
-
import { g as MissingApiKeyError, l as finalize, r as ValidationError, s as ProviderResponseError, v as AbortError } from "./error-
|
|
6
|
-
import { C as kStreamingPartialJson, S as kStreamingLastParseLen, _ as kCursorExecResolved, a as normalizeSystemPrompts, b as kStreamingBlockKind, h as clearStreamingPartialJson, k as toolWireSchema, x as kStreamingEnvelopeId, y as kStreamingBlockIndex } from "./utils-
|
|
4
|
+
import { P as $env, T as warn, _ as parseStreamingJsonThrottled, g as parseStreamingJson, h as parseJsonWithRepair } from "./src-D_e1qMwi.mjs";
|
|
5
|
+
import { g as MissingApiKeyError, l as finalize, r as ValidationError, s as ProviderResponseError, v as AbortError } from "./error-DoHuatWw.mjs";
|
|
6
|
+
import { C as kStreamingPartialJson, S as kStreamingLastParseLen, _ as kCursorExecResolved, a as normalizeSystemPrompts, b as kStreamingBlockKind, h as clearStreamingPartialJson, k as toolWireSchema, x as kStreamingEnvelopeId, y as kStreamingBlockIndex } from "./utils-fnV2zzp3.mjs";
|
|
7
7
|
import { t as sanitizeText } from "./sanitize-text-CfcXzw5X.mjs";
|
|
8
|
-
import { a as shouldBypassProxy, n as getProxyForProvider, t as connectProxiedSocket } from "./proxy-
|
|
9
|
-
import { t as calculateCost, y as isKimiK3ModelId } from "./models-
|
|
10
|
-
import "./identity-
|
|
11
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
8
|
+
import { a as shouldBypassProxy, n as getProxyForProvider, t as connectProxiedSocket } from "./proxy-XOYi58TM.mjs";
|
|
9
|
+
import { t as calculateCost, y as isKimiK3ModelId } from "./models-Cp3PzU3l.mjs";
|
|
10
|
+
import "./identity-C0SPVyIZ.mjs";
|
|
11
|
+
import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
|
|
12
12
|
import { n as isRequestDebugEnabled, t as createRequestDebugSession } from "./request-debug-HJMoJncL.mjs";
|
|
13
13
|
import { A as isObject, B as scalarZeroValue, C as getTextEncoding, D as hasCustomJsonRepresentation, E as create, F as unsafeGet, H as ScalarType, I as unsafeIsSet, L as unsafeLocal, M as isReflectMap, N as isReflectMessage, O as isWrapper, P as unsafeClear, R as unsafeOneofCase, T as isFieldError, U as isMessage, V as protoInt64, _ as BinaryWriter, a as makeReadContext$1, c as messageDesc, d as base64Decode, f as base64Encode, g as BinaryReader, h as wktStructToReflect, i as fromBinary, j as isReflectList, k as isWrapperDesc, l as protoCamelCase, m as wktStructToLocal, n as writeField, o as readField, p as localMessageMapper, r as fileDesc, t as toBinary, u as protoSnakeCase, w as FieldError, z as unsafeSet } from "./to-binary-B1BEBIPC.mjs";
|
|
14
14
|
import { $ as GrepUnionResultSchema, $t as PiWriteExecSuccessSchema, A as DiagnosticsSuccessSchema, An as ShellStreamStdoutSchema, At as PiBashExecErrorSchema, B as ForceBackgroundSubagentResultSchema, Bn as SubagentStopRequestResponseSchema, Bt as PiGrepExecErrorSchema, C as DeleteErrorSchema, Cn as ShellFailureSchema, Ct as McpToolCallSchema, D as DiagnosticsErrorSchema, Dn as ShellStreamSchema, Dt as McpToolResultContentItemSchema, E as DeleteSuccessSchema, En as ShellStreamExitSchema, Et as McpToolNotFoundSchema, F as ExecuteHookResponseSchema, Fn as SubagentAwaitNotFoundSchema, Ft as PiEditExecResultSchema, G as GrepContentResultSchema, Gn as WebFetchAllowlistPrecheckResultSchema, Gt as PiLsExecSuccessSchema, Hn as ToolCallSchema, Ht as PiGrepExecSuccessSchema, I as ExecuteHookResultSchema, In as SubagentAwaitResultSchema, It as PiEditExecSuccessSchema, J as GrepFileCountSchema, Jn as WriteResultSchema, Jt as PiReadExecSuccessSchema, K as GrepCountResultSchema, Kn as WriteErrorSchema, Kt as PiReadExecErrorSchema, L as FetchErrorSchema, Ln as SubagentErrorSchema, Lt as PiFindExecErrorSchema, M as ExecClientMessageSchema, Mn as SmartModeClassifierErrorSchema, Mt as PiBashExecSuccessSchema, N as ExecClientStreamCloseSchema, Nn as SmartModeClassifierResultSchema, Nt as PiEditExecErrorSchema, O as DiagnosticsRejectedSchema, On as ShellStreamStartSchema, Ot as McpToolResultSchema, P as ExecClientThrowSchema, Pn as StopRequestResponseSchema, Pt as PiEditExecRejectedSchema, Q as GrepSuccessSchema, Qt as PiWriteExecResultSchema, R as FetchResultSchema, Rn as SubagentResultSchema, Rt as PiFindExecResultSchema, S as ConversationTurnStructureSchema, Sn as ShellAllowlistPrecheckResultSchema, St as McpTextContentSchema, T as DeleteResultSchema, Tn as ShellResultSchema, Tt as McpToolErrorSchema, Un as UserMessageActionSchema, Ut as PiLsExecErrorSchema, V as GetBlobResultSchema, Vn as ThinkingMessageSchema, Vt as PiGrepExecResultSchema, W as GrepContentMatchSchema, Wn as UserMessageSchema, Wt as PiLsExecResultSchema, X as GrepFilesResultSchema, Xn as WriteShellStdinResultSchema, Xt as PiWriteExecErrorSchema, Y as GrepFileMatchSchema, Yn as WriteShellStdinErrorSchema, Yt as PiTruncationSchema, Z as GrepResultSchema, Zn as WriteSuccessSchema, Zt as PiWriteExecRejectedSchema, _ as ConversationActionSchema, _n as RequestedModelSchema, _t as McpResultSchema, a as AgentRunRequestSchema, an as ReadMcpResourceErrorSchema, at as LsDirectoryTreeNodeSchema, b as ConversationStateStructureSchema, bn as SelectedImageSchema, bt as McpStateSuccessSchema, c as AgentStoreConflictResultSchema, cn as ReadMcpResourceSuccessSchema, ct as LsRejectedSchema, d as BeforeSubmitPromptRequestResponseSchema, dn as ReadSuccessSchema, dt as McpAllowlistPrecheckResultSchema, en as PostToolUseFailureRequestResponseSchema, et as KvClientMessageSchema, f as CanvasDiagnosticsErrorSchema, fn as RecordScreenFailureSchema, ft as McpApprovedSchema, g as ComputerUseResultSchema, gn as RequestContextSuccessSchema, gt as McpRejectedSchema, h as ComputerUseErrorSchema, hn as RequestContextSchema, ht as McpImageContentSchema, i as AgentConversationTurnStructureSchema, in as ReadErrorSchema, it as ListMcpResourcesSuccessSchema, j as ExecClientControlMessageSchema, jn as ShellSuccessSchema, jt as PiBashExecResultSchema, k as DiagnosticsResultSchema, kn as ShellStreamStderrSchema, kt as ModelDetailsSchema, l as AssistantMessageSchema, ln as ReadRejectedSchema, lt as LsResultSchema, m as ClientHeartbeatSchema, mn as RequestContextResultSchema, mt as McpErrorSchema, n as AfterAgentThoughtRequestResponseSchema, nn as PreCompactRequestResponseSchema, nt as ListMcpResourcesExecResultSchema, o as AgentServerMessageSchema, on as ReadMcpResourceExecResultSchema, ot as LsDirectoryTreeNode_FileSchema, p as CanvasDiagnosticsResultSchema, pn as RecordScreenResultSchema, pt as McpArgsSchema, q as GrepErrorSchema, qn as WriteRejectedSchema, qt as PiReadExecResultSchema, r as AgentClientMessageSchema, rn as PreToolUseRequestResponseSchema, rt as ListMcpResourcesExecResult_McpResourceSchema, s as AgentStoreConflictErrorSchema, sn as ReadMcpResourceNotFoundSchema, st as LsErrorSchema, t as AfterAgentResponseRequestResponseSchema, tn as PostToolUseRequestResponseSchema, tt as ListMcpResourcesErrorSchema, u as BackgroundShellSpawnResultSchema, un as ReadResultSchema, ut as LsSuccessSchema, v as ConversationSearchErrorSchema, vn as ResumeActionSchema, vt as McpStateExecResultSchema, w as DeleteRejectedSchema, wn as ShellRejectedSchema, wt as McpToolDefinitionSchema, x as ConversationStepSchema, xn as SetBlobResultSchema, xt as McpSuccessSchema, y as ConversationSearchResultSchema, yn as SelectedContextSchema, yt as McpStateServerSchema, z as ForceBackgroundShellResultSchema, zn as SubagentStartRequestResponseSchema, zt as PiFindExecSuccessSchema } from "./agent_pb-Rizyt9Zg.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { A as semverGte, D as bareModelId, O as parseGlmModel, r as getBundledModels, y as isKimiK3ModelId } from "./models-
|
|
4
|
-
import "./identity-
|
|
5
|
-
import { r as toModelSpec } from "./bundled-references-
|
|
3
|
+
import { A as semverGte, D as bareModelId, O as parseGlmModel, r as getBundledModels, y as isKimiK3ModelId } from "./models-Cp3PzU3l.mjs";
|
|
4
|
+
import "./identity-C0SPVyIZ.mjs";
|
|
5
|
+
import { r as toModelSpec } from "./bundled-references-D71z7_T3.mjs";
|
|
6
6
|
import { E as create, i as fromBinary, t as toBinary } from "./to-binary-B1BEBIPC.mjs";
|
|
7
7
|
import { H as GetUsableModelsRequestSchema, U as GetUsableModelsResponseSchema } from "./agent_pb-Rizyt9Zg.mjs";
|
|
8
8
|
import { type } from "@oh-my-pi/omptype";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { c as OAuthError, h as LoginCancelledError } from "./error-
|
|
3
|
+
import { c as OAuthError, h as LoginCancelledError } from "./error-DoHuatWw.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/device-code.ts
|
|
5
5
|
const DEVICE_FLOW_CANCEL_MESSAGE = "Login cancelled";
|
|
6
6
|
const DEVICE_FLOW_TIMEOUT_MESSAGE = "Device flow timed out";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { c as OAuthError } from "./error-
|
|
4
|
-
import { t as OAuthCallbackFlow } from "./callback-server-
|
|
3
|
+
import { c as OAuthError } from "./error-DoHuatWw.mjs";
|
|
4
|
+
import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
|
|
5
5
|
import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/devin.ts
|
|
7
7
|
const DEVIN_WEBAPP_URL = "https://app.devin.ai";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { n as discoveryFetch } from "./utils-
|
|
3
|
+
import { n as discoveryFetch } from "./utils-B-mTYQBc.mjs";
|
|
4
4
|
import { E as create, i as fromBinary, t as toBinary } from "./to-binary-B1BEBIPC.mjs";
|
|
5
5
|
import { f as MetadataSchema, i as GetCliModelConfigsResponseSchema, r as GetCliModelConfigsRequestSchema } from "./api_server_pb-CDZgLMta.mjs";
|
|
6
6
|
import { gunzipSync } from "node:zlib";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { C as error, S as debug, T as warn, _ as parseStreamingJsonThrottled, g as parseStreamingJson } from "./src-
|
|
4
|
-
import { l as finalize, o as DevinApiError, r as ValidationError, s as ProviderResponseError, w as create, x as attach, y as Flag } from "./error-
|
|
5
|
-
import { a as normalizeSystemPrompts, g as isDemotedThinking, k as toolWireSchema, m as transformMessages } from "./utils-
|
|
6
|
-
import { t as calculateCost } from "./models-
|
|
7
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
3
|
+
import { C as error, S as debug, T as warn, _ as parseStreamingJsonThrottled, g as parseStreamingJson } from "./src-D_e1qMwi.mjs";
|
|
4
|
+
import { l as finalize, o as DevinApiError, r as ValidationError, s as ProviderResponseError, w as create, x as attach, y as Flag } from "./error-DoHuatWw.mjs";
|
|
5
|
+
import { a as normalizeSystemPrompts, g as isDemotedThinking, k as toolWireSchema, m as transformMessages } from "./utils-fnV2zzp3.mjs";
|
|
6
|
+
import { t as calculateCost } from "./models-Cp3PzU3l.mjs";
|
|
7
|
+
import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
|
|
8
8
|
import { E as create$1, c as messageDesc, i as fromBinary, r as fileDesc, t as toBinary } from "./to-binary-B1BEBIPC.mjs";
|
|
9
9
|
import { a as ChatMessagePromptSchema, c as PromptCacheOptionsSchema, d as ImageDataSchema, f as MetadataSchema, l as ChatToolCallSchema, m as file_buf_validate_validate, n as GetChatMessageResponseSchema, o as ChatToolChoiceSchema, p as file_exa_codeium_common_pb_codeium_common, s as ChatToolDefinitionSchema, t as GetChatMessageRequestSchema, u as CompletionConfigurationSchema } from "./api_server_pb-CDZgLMta.mjs";
|
|
10
10
|
import { t as deterministicUuid } from "./deterministic-id-D-yIV_eI.mjs";
|
|
@@ -592,6 +592,19 @@ function querySelectorAllFrom(root, selector, includeRoot) {
|
|
|
592
592
|
else for (const child of root.childNodes) visit(child);
|
|
593
593
|
return result;
|
|
594
594
|
}
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region node_modules/.pnpm/@oh-my-pi+pi-utils@17.3.5/node_modules/@oh-my-pi/pi-utils/src/dom/core.ts
|
|
597
|
+
/** Behavior-compatible reimplementation of linkedom's used surface. */
|
|
598
|
+
/** DOM node type constants. */
|
|
599
|
+
let NodeType = /* @__PURE__ */ function(NodeType) {
|
|
600
|
+
NodeType[NodeType["ELEMENT"] = 1] = "ELEMENT";
|
|
601
|
+
NodeType[NodeType["ATTRIBUTE"] = 2] = "ATTRIBUTE";
|
|
602
|
+
NodeType[NodeType["TEXT"] = 3] = "TEXT";
|
|
603
|
+
NodeType[NodeType["COMMENT"] = 8] = "COMMENT";
|
|
604
|
+
NodeType[NodeType["DOCUMENT"] = 9] = "DOCUMENT";
|
|
605
|
+
NodeType[NodeType["DOCUMENT_FRAGMENT"] = 11] = "DOCUMENT_FRAGMENT";
|
|
606
|
+
return NodeType;
|
|
607
|
+
}({});
|
|
595
608
|
/** Minimal browser event implementation. */
|
|
596
609
|
var Event = class {
|
|
597
610
|
type;
|
|
@@ -1599,4 +1612,4 @@ function parseHTML(html) {
|
|
|
1599
1612
|
return new DOMWindow(parseDocument(html));
|
|
1600
1613
|
}
|
|
1601
1614
|
//#endregion
|
|
1602
|
-
export { parseHTML };
|
|
1615
|
+
export { Attr, CSSStyleDeclaration, Comment, CustomEvent, DOMTokenList, DOMWindow, Document, DocumentFragment, Element, Event, EventTarget, HTMLElement, HTMLIFrameElement, HTMLMetaElement, HTMLTemplateElement, NamedNodeMap, Node, NodeType, SVGElement, Text, parseHTML, serializeNode };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { J as getLogsDir, R as isBunTestRuntime } from "./src-
|
|
3
|
+
import { J as getLogsDir, R as isBunTestRuntime } from "./src-D_e1qMwi.mjs";
|
|
4
4
|
import * as path from "node:path";
|
|
5
5
|
import { scheduler } from "node:timers/promises";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-utils@17.3.5/node_modules/@oh-my-pi/pi-utils/src/fetch-retry.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { C as classifyMessage, s as ProviderResponseError } from "./error-
|
|
3
|
+
import { C as classifyMessage, s as ProviderResponseError } from "./error-DoHuatWw.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/utils/event-stream.ts
|
|
5
5
|
var EventStream = class {
|
|
6
6
|
queue = [];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { V as ProviderHttpError, c as OAuthError, h as LoginCancelledError } from "./error-
|
|
4
|
-
import { r as getBundledModels } from "./models-
|
|
5
|
-
import { a as getGitHubCopilotBaseUrl, c as normalizeDomain, i as discoverGitHubCopilotApiEndpoint, l as normalizeGitHubCopilotEnterpriseDomain, n as OPENCODE_HEADERS, s as isPublicGitHubHost, t as COPILOT_API_HEADERS } from "./github-copilot-
|
|
3
|
+
import { V as ProviderHttpError, c as OAuthError, h as LoginCancelledError } from "./error-DoHuatWw.mjs";
|
|
4
|
+
import { r as getBundledModels } from "./models-Cp3PzU3l.mjs";
|
|
5
|
+
import { a as getGitHubCopilotBaseUrl, c as normalizeDomain, i as discoverGitHubCopilotApiEndpoint, l as normalizeGitHubCopilotEnterpriseDomain, n as OPENCODE_HEADERS, s as isPublicGitHubHost, t as COPILOT_API_HEADERS } from "./github-copilot-qETlj_bD.mjs";
|
|
6
6
|
import { scheduler } from "node:timers/promises";
|
|
7
7
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/github-copilot.ts
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
3
|
import { n as isRecord } from "./type-guards-B9VVjRDK.mjs";
|
|
4
|
-
import "./utils-
|
|
4
|
+
import "./utils-B-mTYQBc.mjs";
|
|
5
5
|
const OPENCODE_HEADERS = { "User-Agent": "opencode/1.3.15" };
|
|
6
6
|
/**
|
|
7
7
|
* Copilot API version sent on `api.githubcopilot.com` requests (`/models`,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { c as OAuthError } from "./error-
|
|
4
|
-
import { i as clearGitLabDuoDirectAccessCache } from "./stream-
|
|
5
|
-
import { t as OAuthCallbackFlow } from "./callback-server-
|
|
3
|
+
import { c as OAuthError } from "./error-DoHuatWw.mjs";
|
|
4
|
+
import { i as clearGitLabDuoDirectAccessCache } from "./stream-DveNFWSN.mjs";
|
|
5
|
+
import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
|
|
6
6
|
import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
|
|
7
7
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/gitlab-duo.ts
|
|
8
8
|
const GITLAB_COM_URL = "https://gitlab.com";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { c as OAuthError } from "./error-
|
|
4
|
-
import { t as OAuthCallbackFlow } from "./callback-server-
|
|
3
|
+
import { c as OAuthError } from "./error-DoHuatWw.mjs";
|
|
4
|
+
import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
|
|
5
5
|
import { t as generatePKCE } from "./pkce-BlQikGPu.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/gitlab-duo-workflow.ts
|
|
7
7
|
const GITLAB_COM_URL = "https://gitlab.com";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { g as MissingApiKeyError } from "./error-
|
|
4
|
-
import { n as getEnvApiKey } from "./stream-
|
|
5
|
-
import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-
|
|
3
|
+
import { g as MissingApiKeyError } from "./error-DoHuatWw.mjs";
|
|
4
|
+
import { n as getEnvApiKey } from "./stream-DveNFWSN.mjs";
|
|
5
|
+
import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-CF1JrqTM.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/google.ts
|
|
7
7
|
const DEFAULT_GENERATIVE_LANGUAGE_BASE = "https://generativelanguage.googleapis.com/v1beta";
|
|
8
8
|
const streamGoogle = (model, context, options) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { c as OAuthError, h as LoginCancelledError } from "./error-
|
|
3
|
+
import { c as OAuthError, h as LoginCancelledError } from "./error-DoHuatWw.mjs";
|
|
4
4
|
import { n as getAntigravityUserAgent, r as getAntigravityVersion } from "./gemini-headers-DKUShltF.mjs";
|
|
5
|
-
import { n as runGoogleOAuthLogin, r as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-
|
|
5
|
+
import { n as runGoogleOAuthLogin, r as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-Cn82h1o2.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/google-antigravity.ts
|
|
7
7
|
/**
|
|
8
8
|
* Antigravity OAuth flow (Gemini 3, Claude, GPT-OSS via Google Cloud)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { F as $envpos, S as debug, y as isEnoent } from "./src-
|
|
4
|
-
import { c as OAuthError, g as MissingApiKeyError, t as ConfigurationError } from "./error-
|
|
5
|
-
import { n as raceWithSignal } from "./abort-
|
|
3
|
+
import { F as $envpos, S as debug, y as isEnoent } from "./src-D_e1qMwi.mjs";
|
|
4
|
+
import { c as OAuthError, g as MissingApiKeyError, t as ConfigurationError } from "./error-DoHuatWw.mjs";
|
|
5
|
+
import { n as raceWithSignal } from "./abort-CsjZitYv.mjs";
|
|
6
6
|
import * as path from "node:path";
|
|
7
7
|
import * as os from "node:os";
|
|
8
8
|
import { Buffer } from "node:buffer";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { P as $env } from "./src-
|
|
4
|
-
import { c as OAuthError } from "./error-
|
|
3
|
+
import { P as $env } from "./src-D_e1qMwi.mjs";
|
|
4
|
+
import { c as OAuthError } from "./error-DoHuatWw.mjs";
|
|
5
5
|
import { i as getGeminiCliHeaders } from "./gemini-headers-DKUShltF.mjs";
|
|
6
|
-
import { n as runGoogleOAuthLogin, r as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-
|
|
6
|
+
import { n as runGoogleOAuthLogin, r as throwIfLoginCancelled, t as oauthFetch } from "./google-oauth-shared-Cn82h1o2.mjs";
|
|
7
7
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/google-gemini-cli.ts
|
|
8
8
|
/**
|
|
9
9
|
* Gemini CLI OAuth flow (Google Cloud Code Assist)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { o as readSseJson } from "./src-
|
|
4
|
-
import { G as fetchWithRetry, L as GeminiCliApiError, S as classify, W as extractHttpStatusFromError, a as isTransientStatus, c as OAuthError, j as retriable, l as finalize, n as StreamTimeoutError, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-
|
|
5
|
-
import { M as normalizeSchemaForCCA, a as normalizeSystemPrompts } from "./utils-
|
|
6
|
-
import { t as calculateCost } from "./models-
|
|
7
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
3
|
+
import { o as readSseJson } from "./src-D_e1qMwi.mjs";
|
|
4
|
+
import { G as fetchWithRetry, L as GeminiCliApiError, S as classify, W as extractHttpStatusFromError, a as isTransientStatus, c as OAuthError, j as retriable, l as finalize, n as StreamTimeoutError, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-DoHuatWw.mjs";
|
|
5
|
+
import { M as normalizeSchemaForCCA, a as normalizeSystemPrompts } from "./utils-fnV2zzp3.mjs";
|
|
6
|
+
import { t as calculateCost } from "./models-Cp3PzU3l.mjs";
|
|
7
|
+
import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
|
|
8
8
|
import { i as getGeminiCliHeaders, n as getAntigravityUserAgent, t as getAntigravityModelWireProfile } from "./gemini-headers-DKUShltF.mjs";
|
|
9
|
-
import { i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, t as armPreResponseTimeout } from "./idle-iterator-
|
|
10
|
-
import { t as StreamMarkupHealing } from "./stream-markup-healing-
|
|
9
|
+
import { i as getStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, t as armPreResponseTimeout } from "./idle-iterator-HzbbfXP4.mjs";
|
|
10
|
+
import { t as StreamMarkupHealing } from "./stream-markup-healing-C9eC7Gf8.mjs";
|
|
11
11
|
import { n as formatGoogleValidationRequiredMessage, t as extractGoogleValidationUrl } from "./google-validation-Cgbn3tWJ.mjs";
|
|
12
|
-
import { a as isThinkingPart, c as nextToolCallId, d as retainThoughtSignature, f as startTextOrThinkingBlock, i as hasMeaningfulGoogleContent, l as pushBlockEndEvent, n as convertMessages, o as mapStopReasonString, r as convertTools, s as mapToolChoice, u as pushToolCallEvents } from "./google-shared-
|
|
12
|
+
import { a as isThinkingPart, c as nextToolCallId, d as retainThoughtSignature, f as startTextOrThinkingBlock, i as hasMeaningfulGoogleContent, l as pushBlockEndEvent, n as convertMessages, o as mapStopReasonString, r as convertTools, s as mapToolChoice, u as pushToolCallEvents } from "./google-shared-CF1JrqTM.mjs";
|
|
13
13
|
import { scheduler } from "node:timers/promises";
|
|
14
14
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
15
15
|
import { type } from "@oh-my-pi/omptype";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { c as OAuthError, h as LoginCancelledError } from "./error-
|
|
4
|
-
import { t as OAuthCallbackFlow } from "./callback-server-
|
|
3
|
+
import { c as OAuthError, h as LoginCancelledError } from "./error-DoHuatWw.mjs";
|
|
4
|
+
import { t as OAuthCallbackFlow } from "./callback-server-Di6C4RqI.mjs";
|
|
5
5
|
import { n as formatGoogleValidationRequiredMessage, t as extractGoogleValidationUrl } from "./google-validation-Cgbn3tWJ.mjs";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/google-oauth-shared.ts
|
|
7
7
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { o as readSseJson } from "./src-
|
|
4
|
-
import { R as GoogleApiError, l as finalize, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-
|
|
5
|
-
import { M as normalizeSchemaForCCA, N as normalizeSchemaForGoogle, a as normalizeSystemPrompts, k as toolWireSchema, m as transformMessages, w as renderDemotedThinking } from "./utils-
|
|
6
|
-
import { t as calculateCost } from "./models-
|
|
7
|
-
import { o as shouldSendServiceTier, t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-
|
|
8
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
3
|
+
import { o as readSseJson } from "./src-D_e1qMwi.mjs";
|
|
4
|
+
import { R as GoogleApiError, l as finalize, r as ValidationError, s as ProviderResponseError, t as ConfigurationError, v as AbortError } from "./error-DoHuatWw.mjs";
|
|
5
|
+
import { M as normalizeSchemaForCCA, N as normalizeSchemaForGoogle, a as normalizeSystemPrompts, k as toolWireSchema, m as transformMessages, w as renderDemotedThinking } from "./utils-fnV2zzp3.mjs";
|
|
6
|
+
import { t as calculateCost } from "./models-Cp3PzU3l.mjs";
|
|
7
|
+
import { o as shouldSendServiceTier, t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-BsvOWmfB.mjs";
|
|
8
|
+
import { t as AssistantMessageEventStream } from "./event-stream-C-FmBYUt.mjs";
|
|
9
9
|
import { scheduler } from "node:timers/promises";
|
|
10
10
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/google-shared.ts
|
|
11
11
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { P as $env } from "./src-
|
|
4
|
-
import { t as ConfigurationError } from "./error-
|
|
5
|
-
import { P as resolveVertexEndpointHost } from "./models-
|
|
6
|
-
import { t as getVertexAccessToken } from "./google-auth-
|
|
7
|
-
import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-
|
|
3
|
+
import { P as $env } from "./src-D_e1qMwi.mjs";
|
|
4
|
+
import { t as ConfigurationError } from "./error-DoHuatWw.mjs";
|
|
5
|
+
import { P as resolveVertexEndpointHost } from "./models-Cp3PzU3l.mjs";
|
|
6
|
+
import { t as getVertexAccessToken } from "./google-auth-CWlKXJ-H.mjs";
|
|
7
|
+
import { p as streamGoogleGenAI, t as buildGoogleGenerateContentParams } from "./google-shared-CF1JrqTM.mjs";
|
|
8
8
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/providers/google-vertex.ts
|
|
9
9
|
const API_VERSION = "v1";
|
|
10
10
|
const streamGoogleVertex = (model, context, options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { i as getBundledProviders, r as getBundledModels, w as modelFamilyToken } from "./models-
|
|
3
|
+
import { i as getBundledProviders, r as getBundledModels, w as modelFamilyToken } from "./models-Cp3PzU3l.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@17.3.5/node_modules/@oh-my-pi/pi-catalog/src/identity/id.ts
|
|
5
5
|
const LEADING_BRACKETED_AFFIX_PATTERN = /^(?:\s*(?:\[|【)[^\]】]+(?:\]|】)\s*)+/u;
|
|
6
6
|
const TRAILING_BRACKETED_AFFIX_PATTERN = /(?:\s*(?:\[|【)[^\]】]+(?:\]|】)\s*)+$/u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { P as $env } from "./src-
|
|
4
|
-
import { n as StreamTimeoutError, v as AbortError } from "./error-
|
|
3
|
+
import { P as $env } from "./src-D_e1qMwi.mjs";
|
|
4
|
+
import { n as StreamTimeoutError, v as AbortError } from "./error-DoHuatWw.mjs";
|
|
5
5
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@17.3.5/node_modules/@oh-my-pi/pi-ai/src/utils/idle-iterator.ts
|
|
6
6
|
const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 3e5;
|
|
7
7
|
const DEFAULT_STREAM_FIRST_EVENT_TIMEOUT_MS = 3e5;
|