@xiaoso/dsh-tool-plus 0.1.7 → 0.1.8-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{abort-Caqff3M6.mjs → abort-BtBy5Svf.mjs} +1 -1
- package/lib/{alibaba-coding-plan-DTupMiAi.mjs → alibaba-coding-plan-oxHCHJtG.mjs} +2 -2
- package/lib/{alibaba-token-plan-Dj3OZhEE.mjs → alibaba-token-plan-B0WzvYnB.mjs} +2 -2
- package/lib/{amazon-bedrock-DbFSYXfJ.mjs → amazon-bedrock-BvfYGhrD.mjs} +6 -6
- package/lib/{anthropic-CXfWlp-x.mjs → anthropic-C6-vdduI.mjs} +1 -1
- package/lib/{anthropic-CTJ3IQVa.mjs → anthropic-Id561lwb.mjs} +13 -13
- package/lib/{anthropic-wire-CKuhDwZ1.mjs → anthropic-wire-Cb8AQ1tS.mjs} +13 -13
- package/lib/{api-key-validation-CGCJFbFr.mjs → api-key-validation-BXJKlsJg.mjs} +1 -1
- package/lib/{azure-openai-responses-ChFbWaGj.mjs → azure-openai-responses-CGws_ijz.mjs} +8 -8
- package/lib/{browser-render-9o0Rknop.mjs → browser-render-i7uYOl4f.mjs} +2 -2
- package/lib/client.js +2045 -19
- package/lib/{cloudflare-ai-gateway-BupNXyKK.mjs → cloudflare-ai-gateway-BK6eadm9.mjs} +2 -2
- package/lib/{cloudflare-ai-gateway-EWo0VkP5.mjs → cloudflare-ai-gateway-B_kWnF30.mjs} +1 -1
- package/lib/{collapse-DOR8sOGf.mjs → collapse-DU3g7d3B.mjs} +1 -1
- package/lib/{coreweave-Ct8cF-da.mjs → coreweave-CkR_FlQi.mjs} +2 -2
- package/lib/{cursor-LKGjucn2.mjs → cursor-BXx_5h4a.mjs} +2 -2
- package/lib/{cursor-DJV_dcgB.mjs → cursor-BcHwv8qq.mjs} +10 -10
- package/lib/{cursor-B95LzVWV.mjs → cursor-BjWbJJLe.mjs} +1 -1
- package/lib/{cursor-proto-B8Wj8bv9.mjs → cursor-proto-DPXXYx8S.mjs} +1 -1
- package/lib/{devin-DSp0Rw_E.mjs → devin-BZBfzyIz.mjs} +6 -6
- package/lib/{devin-BMTdx_hx.mjs → devin-Ce3Wz8_E.mjs} +5 -5
- package/lib/{devin-proto-Br8fdyNl.mjs → devin-proto-B6HwDwHK.mjs} +1 -1
- package/lib/{error-CORgGg5a.mjs → error-DdCn4m1q.mjs} +3 -3
- package/lib/{event-stream-ulcDenZD.mjs → event-stream-ldcUvOA0.mjs} +1 -1
- package/lib/{github-copilot-Dstq1D3s.mjs → github-copilot-BT5dkIJl.mjs} +2 -2
- package/lib/{github-copilot-headers-DOh1gt_w.mjs → github-copilot-headers-BGL8JO5c.mjs} +2 -2
- package/lib/{gitlab-duo-DSCMrU0m.mjs → gitlab-duo-B0qSYCa3.mjs} +1 -1
- package/lib/{google-CtsKkOQK.mjs → google-6cRgRmh0.mjs} +3 -3
- package/lib/{google-antigravity-z-5KsEci.mjs → google-antigravity-D1llOVad.mjs} +3 -3
- package/lib/{google-auth-ieLBaneO.mjs → google-auth-DYhqX1rJ.mjs} +5 -5
- package/lib/{google-gemini-cli-CAIPSl7e.mjs → google-gemini-cli-ByQUuKp9.mjs} +7 -7
- package/lib/{google-gemini-cli-C6NE5mWz.mjs → google-gemini-cli-CjHy6mFG.mjs} +3 -3
- package/lib/{google-oauth-shared-DhMllAkt.mjs → google-oauth-shared-CSwCT0Yl.mjs} +1 -1
- package/lib/{google-shared-B0aNCYEH.mjs → google-shared-DYjJp0mQ.mjs} +5 -5
- package/lib/{google-vertex-Bbd1tYNc.mjs → google-vertex-CbOvlE5j.mjs} +4 -4
- package/lib/{idle-iterator-DlUkEfzW.mjs → idle-iterator-DTBaEIbM.mjs} +2 -2
- package/lib/index.mjs +1278 -184
- package/lib/{kilo-ChJL54wq.mjs → kilo-cVG1aNZM.mjs} +1 -1
- package/lib/{kimi-C2c_Zq8A.mjs → kimi-BFfnFDhu.mjs} +4 -4
- package/lib/{launch-DKDH71En.mjs → launch-Uq7920ng.mjs} +7 -7
- package/lib/{markit-CmRfm4E2.mjs → markit-BmsfOFVh.mjs} +18 -18
- package/lib/{muse-code-Di1VZmB1.mjs → muse-code-CtcevJab.mjs} +1 -1
- package/lib/{ollama-B8ic3sEp.mjs → ollama-B5hR1P1p.mjs} +8 -8
- package/lib/{openai-codex-DuJNC99x.mjs → openai-codex-CxkPyvyt.mjs} +2 -2
- package/lib/{openai-codex-responses-BL29nh9K.mjs → openai-codex-responses-BbM3Q7nJ.mjs} +9 -9
- package/lib/{openai-completions-BK2f2dBv.mjs → openai-completions-CffXVOCL.mjs} +13 -13
- package/lib/{openai-reasoning-fallback-BdB3RCbj.mjs → openai-reasoning-fallback-DFdD1ok5.mjs} +2 -2
- package/lib/{openai-responses-CGQPlIIy.mjs → openai-responses-DgqOvSn_.mjs} +9 -9
- package/lib/{perplexity-TBjz3VMB.mjs → perplexity-JFp3knZN.mjs} +2 -2
- package/lib/{protobuf-aab1UGVn.mjs → protobuf-BJHNU9-E.mjs} +1 -1
- package/lib/{proxy-5nWqRL1f.mjs → proxy-B51IWEMt.mjs} +2 -2
- package/lib/{scrapers-CtQrQ5kG.mjs → scrapers-DU4u4-Co.mjs} +7 -7
- package/lib/{src-BwW51vA5.mjs → src-DUUqyo9y.mjs} +42 -42
- package/lib/{stream-B_7qN-bA.mjs → stream-DHdFrAG4.mjs} +54 -54
- package/lib/{stream-markup-healing-DKT1lnkW.mjs → stream-markup-healing-DlJ9abTw.mjs} +2 -2
- package/lib/{thinking-CiLa2LFB.mjs → thinking-D6LJxkz_.mjs} +1 -1
- package/lib/types/client/locales.d.ts +1 -1
- package/lib/types/config/settings.d.ts +8 -0
- package/lib/types/tools/ast-grep/adapter/index.d.ts +23 -0
- package/lib/types/tools/edit/adapter/index.d.ts +3 -0
- package/lib/types/tools/glob/adapter/index.d.ts +2 -0
- package/lib/types/tools/grep/adapter/index.d.ts +4 -0
- package/lib/types/tools/read/adapter/index.d.ts +18 -0
- package/lib/types/tools/write/adapter/index.d.ts +2 -0
- package/lib/types/web/client/ToolCardShell.d.ts +111 -0
- package/lib/types/web/client/labels.d.ts +36 -0
- package/lib/types/web/client/registerToolCards.d.ts +35 -0
- package/lib/types/web/client/row-utils.d.ts +177 -0
- package/lib/types/web/client/rows/AstEditRow.d.ts +22 -0
- package/lib/types/web/client/rows/FileMutationRow.d.ts +23 -0
- package/lib/types/web/client/rows/ReadRow.d.ts +31 -0
- package/lib/types/web/client/rows/SearchRow.d.ts +21 -0
- package/lib/types/web/client/rows/TerminalRow.d.ts +24 -0
- package/lib/types/web/client/rows/WriteRow.d.ts +22 -0
- package/lib/types/web/client/rows/image-card.d.ts +60 -0
- package/lib/types/web/contract.d.ts +249 -0
- package/lib/types/web/host/ast-edit.d.ts +10 -0
- package/lib/types/web/host/bash.d.ts +30 -0
- package/lib/types/web/host/edit.d.ts +33 -0
- package/lib/types/web/host/read.d.ts +48 -0
- package/lib/types/web/host/search.d.ts +41 -0
- package/lib/types/web/host/write.d.ts +13 -0
- package/lib/{types-PVueGi9S.mjs → types-DT9vgZ3S.mjs} +1 -1
- package/lib/{utils-CUPhpw9A.mjs → utils-BMmwLB0f.mjs} +2 -2
- package/lib/{utils-ECAwvaPQ.mjs → utils-C-Lo_JC6.mjs} +41 -41
- package/lib/{utils-DeWqNWV8.mjs → utils-D31VFael.mjs} +1 -1
- package/lib/{vision-guard-_XwsL1DF.mjs → vision-guard-BlAAqGUC.mjs} +1 -1
- package/lib/{xai-oauth-CXhnz0gO.mjs → xai-oauth-QPyScm4X.mjs} +1 -1
- package/lib/{xiaomi-psoUItal.mjs → xiaomi-CLzjxHAi.mjs} +1 -1
- package/lib/{zai-ApJ8HBgT.mjs → zai-wDp0g7VC.mjs} +1 -1
- package/lib/{zip-Kd602XNe.mjs → zip-CNtIFfyV.mjs} +7 -7
- package/package.json +3 -1
- package/presets/package.json +1 -1
|
@@ -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-DdCn4m1q.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;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { H as getAgentDir } from "./src-
|
|
4
|
+
import { H as getAgentDir } from "./src-DUUqyo9y.mjs";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
|
-
import * as path from "node:path";
|
|
6
|
+
import * as path$1 from "node:path";
|
|
7
7
|
import * as os from "node:os";
|
|
8
8
|
import * as crypto from "node:crypto";
|
|
9
9
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/package.json
|
|
@@ -31,7 +31,7 @@ function getDeviceModel() {
|
|
|
31
31
|
return formatDeviceModel(platform === "linux" ? "Linux" : platform, release, arch);
|
|
32
32
|
}
|
|
33
33
|
let getDeviceId = () => {
|
|
34
|
-
const deviceIdPath = path.join(getAgentDir(), DEVICE_ID_FILENAME);
|
|
34
|
+
const deviceIdPath = path$1.join(getAgentDir(), DEVICE_ID_FILENAME);
|
|
35
35
|
try {
|
|
36
36
|
const existing = fs.readFileSync(deviceIdPath, "utf-8").trim();
|
|
37
37
|
if (existing) {
|
|
@@ -41,7 +41,7 @@ let getDeviceId = () => {
|
|
|
41
41
|
} catch {}
|
|
42
42
|
const deviceId = crypto.randomUUID().replace(/-/g, "");
|
|
43
43
|
try {
|
|
44
|
-
fs.mkdirSync(path.dirname(deviceIdPath), { recursive: true });
|
|
44
|
+
fs.mkdirSync(path$1.dirname(deviceIdPath), { recursive: true });
|
|
45
45
|
fs.writeFileSync(deviceIdPath, `${deviceId}\n`, { mode: 384 });
|
|
46
46
|
} catch {}
|
|
47
47
|
getDeviceId = () => deviceId;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { d as $which, l as exec } from "./src-
|
|
3
|
+
import { d as $which, l as exec } from "./src-DUUqyo9y.mjs";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
|
-
import * as path from "node:path";
|
|
5
|
+
import * as path$1 from "node:path";
|
|
6
6
|
import * as os from "node:os";
|
|
7
7
|
//#region src/tools/bash/logger.ts
|
|
8
8
|
let current = {
|
|
@@ -64,7 +64,7 @@ function systemChromiumCandidates(platform = process.platform, home = os.homedir
|
|
|
64
64
|
const candidates = [];
|
|
65
65
|
switch (platform) {
|
|
66
66
|
case "darwin":
|
|
67
|
-
for (const root of ["/Applications", path.join(home, "Applications")]) candidates.push(path.join(root, "Google Chrome.app/Contents/MacOS/Google Chrome"), path.join(root, "Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta"), path.join(root, "Google Chrome Dev.app/Contents/MacOS/Google Chrome Dev"), path.join(root, "Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"), path.join(root, "Chromium.app/Contents/MacOS/Chromium"), path.join(root, "Microsoft Edge.app/Contents/MacOS/Microsoft Edge"));
|
|
67
|
+
for (const root of ["/Applications", path$1.join(home, "Applications")]) candidates.push(path$1.join(root, "Google Chrome.app/Contents/MacOS/Google Chrome"), path$1.join(root, "Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta"), path$1.join(root, "Google Chrome Dev.app/Contents/MacOS/Google Chrome Dev"), path$1.join(root, "Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"), path$1.join(root, "Chromium.app/Contents/MacOS/Chromium"), path$1.join(root, "Microsoft Edge.app/Contents/MacOS/Microsoft Edge"));
|
|
68
68
|
break;
|
|
69
69
|
case "linux": {
|
|
70
70
|
for (const name of [
|
|
@@ -82,19 +82,19 @@ function systemChromiumCandidates(platform = process.platform, home = os.homedir
|
|
|
82
82
|
try {
|
|
83
83
|
onNixos = fs.existsSync("/etc/NIXOS");
|
|
84
84
|
} catch {}
|
|
85
|
-
if (onNixos) candidates.push(path.join(home, ".nix-profile/bin/chromium"), "/run/current-system/sw/bin/chromium");
|
|
85
|
+
if (onNixos) candidates.push(path$1.join(home, ".nix-profile/bin/chromium"), "/run/current-system/sw/bin/chromium");
|
|
86
86
|
for (const name of ["ungoogled-chromium", "ungoogled-chromium-browser"]) {
|
|
87
87
|
const found = which(name);
|
|
88
88
|
if (found) candidates.push(found);
|
|
89
89
|
}
|
|
90
|
-
candidates.push("/usr/bin/ungoogled-chromium", "/usr/bin/ungoogled-chromium-browser", `/var/lib/flatpak/exports/bin/${UNGOOGLED_CHROMIUM_FLATPAK_ID}`, path.join(home, ".local/share/flatpak/exports/bin", UNGOOGLED_CHROMIUM_FLATPAK_ID));
|
|
90
|
+
candidates.push("/usr/bin/ungoogled-chromium", "/usr/bin/ungoogled-chromium-browser", `/var/lib/flatpak/exports/bin/${UNGOOGLED_CHROMIUM_FLATPAK_ID}`, path$1.join(home, ".local/share/flatpak/exports/bin", UNGOOGLED_CHROMIUM_FLATPAK_ID));
|
|
91
91
|
break;
|
|
92
92
|
}
|
|
93
93
|
case "win32": {
|
|
94
94
|
const programFiles = process.env.ProgramFiles ?? "C:\\Program Files";
|
|
95
95
|
const programFilesX86 = process.env["ProgramFiles(x86)"] ?? "C:\\Program Files (x86)";
|
|
96
|
-
const localAppData = process.env.LOCALAPPDATA ?? path.join(home, "AppData\\Local");
|
|
97
|
-
candidates.push(path.join(programFiles, "Google\\Chrome\\Application\\chrome.exe"), path.join(programFilesX86, "Google\\Chrome\\Application\\chrome.exe"), path.join(localAppData, "Google\\Chrome\\Application\\chrome.exe"), path.join(programFiles, "Chromium\\Application\\chrome.exe"), path.join(localAppData, "Chromium\\Application\\chrome.exe"), path.join(programFiles, "Microsoft\\Edge\\Application\\msedge.exe"), path.join(programFilesX86, "Microsoft\\Edge\\Application\\msedge.exe"));
|
|
96
|
+
const localAppData = process.env.LOCALAPPDATA ?? path$1.join(home, "AppData\\Local");
|
|
97
|
+
candidates.push(path$1.join(programFiles, "Google\\Chrome\\Application\\chrome.exe"), path$1.join(programFilesX86, "Google\\Chrome\\Application\\chrome.exe"), path$1.join(localAppData, "Google\\Chrome\\Application\\chrome.exe"), path$1.join(programFiles, "Chromium\\Application\\chrome.exe"), path$1.join(localAppData, "Chromium\\Application\\chrome.exe"), path$1.join(programFiles, "Microsoft\\Edge\\Application\\msedge.exe"), path$1.join(programFilesX86, "Microsoft\\Edge\\Application\\msedge.exe"));
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { k as formatBytes } from "./src-
|
|
5
|
-
import { l as unzip, u as unzipText } from "./zip-
|
|
4
|
+
import { k as formatBytes } from "./src-DUUqyo9y.mjs";
|
|
5
|
+
import { l as unzip, u as unzipText } from "./zip-CNtIFfyV.mjs";
|
|
6
6
|
import { n as normalizeTablesHtml, t as createTurndown } from "./turndown-DrX1M4WG.mjs";
|
|
7
7
|
import { pdfToMarkdown } from "@oh-my-pi/pi-natives";
|
|
8
|
-
import * as path from "node:path";
|
|
8
|
+
import * as path$1 from "node:path";
|
|
9
9
|
import * as zlib from "node:zlib";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
//#region node_modules/.pnpm/@oh-my-pi+pi-utils@18.1.17/node_modules/@oh-my-pi/pi-utils/src/ar/error.ts
|
|
@@ -1376,7 +1376,7 @@ async function readAsarIndex(source, options) {
|
|
|
1376
1376
|
const mode = typeof current.node.executable === "boolean" ? ASAR_FILE_MODE | (current.node.executable ? 493 : 420) : void 0;
|
|
1377
1377
|
const integrity = parseIntegrity(current.node.integrity, entryPath, size);
|
|
1378
1378
|
if (current.node.unpacked === true) {
|
|
1379
|
-
const filePath = options.archivePath ? path.join(`${options.archivePath}.unpacked`, ...entryPath.split("/")) : void 0;
|
|
1379
|
+
const filePath = options.archivePath ? path$1.join(`${options.archivePath}.unpacked`, ...entryPath.split("/")) : void 0;
|
|
1380
1380
|
entries.push({
|
|
1381
1381
|
path: entryPath,
|
|
1382
1382
|
isDirectory: false,
|
|
@@ -3989,11 +3989,11 @@ function makeLinkTarget(recordPath, targetBytes, maxPathBytes) {
|
|
|
3989
3989
|
const rawTarget = decodeUtf8(targetBytes);
|
|
3990
3990
|
if (rawTarget === void 0 || rawTarget.includes("\0")) throw new ArchiveError(`Invalid CPIO archive: symlink '${recordPath}' has an invalid UTF-8 target`);
|
|
3991
3991
|
const portableTarget = rawTarget.replace(/\\/g, "/");
|
|
3992
|
-
if (path.posix.isAbsolute(portableTarget)) return {
|
|
3992
|
+
if (path$1.posix.isAbsolute(portableTarget)) return {
|
|
3993
3993
|
path: portableTarget,
|
|
3994
3994
|
resolveTarget: false
|
|
3995
3995
|
};
|
|
3996
|
-
const normalized = normalizeArchiveLookupPath(path.posix.join(path.posix.dirname(recordPath), portableTarget));
|
|
3996
|
+
const normalized = normalizeArchiveLookupPath(path$1.posix.join(path$1.posix.dirname(recordPath), portableTarget));
|
|
3997
3997
|
return normalized === void 0 ? {
|
|
3998
3998
|
path: portableTarget,
|
|
3999
3999
|
resolveTarget: false
|
|
@@ -4327,7 +4327,7 @@ function indexOfAscii(bytes, value, start) {
|
|
|
4327
4327
|
}
|
|
4328
4328
|
function normalizeOldGnuName(value, field, limits) {
|
|
4329
4329
|
const portable = value.replace(/\\/g, "/");
|
|
4330
|
-
if (path.posix.isAbsolute(portable)) throw new ArchiveError(`Invalid old-GNU ${field}`);
|
|
4330
|
+
if (path$1.posix.isAbsolute(portable)) throw new ArchiveError(`Invalid old-GNU ${field}`);
|
|
4331
4331
|
const normalized = normalizeArchiveEntryPath(portable);
|
|
4332
4332
|
if (!normalized) throw new ArchiveError(`Invalid old-GNU ${field}`);
|
|
4333
4333
|
assertArchivePathString(normalized, field, limits.maxPathBytes);
|
|
@@ -4567,7 +4567,7 @@ function readTarEntriesFromBuffer(buffer, options) {
|
|
|
4567
4567
|
const kind = typeFlag === "1" ? "hard link" : "symlink";
|
|
4568
4568
|
const portableLinkName = linkName.replace(/\\/g, "/");
|
|
4569
4569
|
assertArchivePathString(portableLinkName, "link target", limits.maxPathBytes);
|
|
4570
|
-
const targetPath = typeFlag === "1" ? normalizeArchiveEntryPath(portableLinkName) : path.posix.isAbsolute(portableLinkName) ? void 0 : normalizeArchiveLookupPath(path.posix.join(path.posix.dirname(normalizedPath), portableLinkName));
|
|
4570
|
+
const targetPath = typeFlag === "1" ? normalizeArchiveEntryPath(portableLinkName) : path$1.posix.isAbsolute(portableLinkName) ? void 0 : normalizeArchiveLookupPath(path$1.posix.join(path$1.posix.dirname(normalizedPath), portableLinkName));
|
|
4571
4571
|
const entry = {
|
|
4572
4572
|
path: normalizedPath,
|
|
4573
4573
|
isDirectory: false,
|
|
@@ -5327,7 +5327,7 @@ async function mergeRockRidgeMetadata(source, root, blockSize, budget, limits, e
|
|
|
5327
5327
|
assertArchivePathBytes(Buffer.byteLength(normalizedPath, "utf-8"), "member path", limits.maxPathBytes);
|
|
5328
5328
|
if (susp.symlink !== void 0) {
|
|
5329
5329
|
assertArchivePathBytes(Buffer.byteLength(susp.symlink, "utf-8"), "link target", limits.maxPathBytes);
|
|
5330
|
-
const targetPath = path.posix.isAbsolute(susp.symlink) ? void 0 : normalizeArchiveLookupPath(path.posix.join(path.posix.dirname(normalizedPath), susp.symlink));
|
|
5330
|
+
const targetPath = path$1.posix.isAbsolute(susp.symlink) ? void 0 : normalizeArchiveLookupPath(path$1.posix.join(path$1.posix.dirname(normalizedPath), susp.symlink));
|
|
5331
5331
|
upsertArchiveEntry(entries, {
|
|
5332
5332
|
path: normalizedPath,
|
|
5333
5333
|
isDirectory: false,
|
|
@@ -5409,7 +5409,7 @@ async function readIsoImpl(source, options) {
|
|
|
5409
5409
|
const isDirectory = (record.flags & 2) !== 0;
|
|
5410
5410
|
if (susp.symlink !== void 0) {
|
|
5411
5411
|
assertArchivePathBytes(Buffer.byteLength(susp.symlink, "utf-8"), "link target", options.limits.maxPathBytes);
|
|
5412
|
-
const targetPath = path.posix.isAbsolute(susp.symlink) ? void 0 : normalizeArchiveLookupPath(path.posix.join(path.posix.dirname(normalizedPath), susp.symlink));
|
|
5412
|
+
const targetPath = path$1.posix.isAbsolute(susp.symlink) ? void 0 : normalizeArchiveLookupPath(path$1.posix.join(path$1.posix.dirname(normalizedPath), susp.symlink));
|
|
5413
5413
|
upsertArchiveEntry(entries, {
|
|
5414
5414
|
path: normalizedPath,
|
|
5415
5415
|
isDirectory: false,
|
|
@@ -8321,7 +8321,7 @@ async function readZipImpl(source, options) {
|
|
|
8321
8321
|
const target = UTF8_DECODER.decode(bytes);
|
|
8322
8322
|
assertArchivePathString(target, "symlink target", options.limits.maxPathBytes);
|
|
8323
8323
|
const portable = target.replace(/\\/g, "/");
|
|
8324
|
-
const targetPath = path.posix.isAbsolute(portable) || /^[A-Za-z]:/.test(portable) || portable.includes("\0") ? void 0 : normalizeArchiveLookupPath(path.posix.join(path.posix.dirname(item.entry.path), portable));
|
|
8324
|
+
const targetPath = path$1.posix.isAbsolute(portable) || /^[A-Za-z]:/.test(portable) || portable.includes("\0") ? void 0 : normalizeArchiveLookupPath(path$1.posix.join(path$1.posix.dirname(item.entry.path), portable));
|
|
8325
8325
|
item.entry.size = 0;
|
|
8326
8326
|
item.entry.storage = {
|
|
8327
8327
|
type: "link",
|
|
@@ -8397,7 +8397,7 @@ function archiveFormatFromPath(filePath) {
|
|
|
8397
8397
|
/** Strip the recognized archive extension for single-member pseudo-archives. */
|
|
8398
8398
|
function stemMemberName(archivePath) {
|
|
8399
8399
|
if (!archivePath) return "data";
|
|
8400
|
-
const base = path.basename(archivePath.replace(/\\/g, "/"));
|
|
8400
|
+
const base = path$1.basename(archivePath.replace(/\\/g, "/"));
|
|
8401
8401
|
const lower = base.toLowerCase();
|
|
8402
8402
|
for (const [ext] of EXTENSION_TABLE) if (lower.length > ext.length + 1 && lower.endsWith(`.${ext}`)) return base.slice(0, base.length - ext.length - 1);
|
|
8403
8403
|
return base || "data";
|
|
@@ -8868,7 +8868,7 @@ function paragraphTag(context, styleId) {
|
|
|
8868
8868
|
}
|
|
8869
8869
|
function relationshipPath(target) {
|
|
8870
8870
|
if (target.startsWith("/")) return target.slice(1);
|
|
8871
|
-
return path.posix.normalize(path.posix.join("word", target));
|
|
8871
|
+
return path$1.posix.normalize(path$1.posix.join("word", target));
|
|
8872
8872
|
}
|
|
8873
8873
|
function renderFormatting(value, formatting) {
|
|
8874
8874
|
let html = value;
|
|
@@ -8895,7 +8895,7 @@ async function renderImage(element, context) {
|
|
|
8895
8895
|
}
|
|
8896
8896
|
const documentProperties = descendants(element, "docPr")[0];
|
|
8897
8897
|
const altText = attribute(documentProperties, "descr") ?? attribute(documentProperties, "title") ?? "";
|
|
8898
|
-
const extension = path.posix.extname(memberPath).toLowerCase();
|
|
8898
|
+
const extension = path$1.posix.extname(memberPath).toLowerCase();
|
|
8899
8899
|
const image = {
|
|
8900
8900
|
contentType: context.contentTypes.get(memberPath) ?? context.contentTypes.get(extension) ?? IMAGE_CONTENT_TYPE_BY_EXTENSION[extension.slice(1)] ?? "application/octet-stream",
|
|
8901
8901
|
altText,
|
|
@@ -9190,7 +9190,7 @@ var DocxConverter = class {
|
|
|
9190
9190
|
imageCount++;
|
|
9191
9191
|
const ext = (image.contentType?.split("/")[1] || "png").replace("jpeg", "jpg");
|
|
9192
9192
|
const filename = `image_${imageCount}.${ext}`;
|
|
9193
|
-
const filepath = path.join(imageDir, filename);
|
|
9193
|
+
const filepath = path$1.join(imageDir, filename);
|
|
9194
9194
|
return image.read("base64").then(async (base64) => {
|
|
9195
9195
|
await Bun.write(filepath, Buffer.from(base64, "base64"));
|
|
9196
9196
|
return {
|
|
@@ -9636,7 +9636,7 @@ var PptxConverter = class {
|
|
|
9636
9636
|
if (imageDir) try {
|
|
9637
9637
|
const ext = normalizedPath.split(".").pop() || "png";
|
|
9638
9638
|
const filename = `slide${i + 1}_${imageCount}.${ext}`;
|
|
9639
|
-
const filepath = path.join(imageDir, filename);
|
|
9639
|
+
const filepath = path$1.join(imageDir, filename);
|
|
9640
9640
|
await Bun.write(filepath, buf);
|
|
9641
9641
|
slideLines.push(``);
|
|
9642
9642
|
} catch {
|
|
@@ -9855,8 +9855,8 @@ var Markit = class {
|
|
|
9855
9855
|
const buffer = Buffer.from(await Bun.file(filePath).arrayBuffer());
|
|
9856
9856
|
const streamInfo = {
|
|
9857
9857
|
localPath: filePath,
|
|
9858
|
-
extension: path.extname(filePath).toLowerCase(),
|
|
9859
|
-
filename: path.basename(filePath),
|
|
9858
|
+
extension: path$1.extname(filePath).toLowerCase(),
|
|
9859
|
+
filename: path$1.basename(filePath),
|
|
9860
9860
|
...extra
|
|
9861
9861
|
};
|
|
9862
9862
|
return this.convert(buffer, streamInfo);
|
|
@@ -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 { f as OAuthError, t as ConfigurationError } from "./error-
|
|
4
|
+
import { f as OAuthError, t as ConfigurationError } from "./error-DdCn4m1q.mjs";
|
|
5
5
|
import { type } from "@oh-my-pi/omptype";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/muse-code.ts
|
|
7
7
|
var muse_code_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
3
|
import { r as __exportAll } from "./fs-promises-shim-Bx0fpxuk.mjs";
|
|
4
|
-
import { _ as parseStreamingJson, i as readJsonl } from "./src-
|
|
5
|
-
import { G as fetchWithRetry, c as finalize, h as MissingApiKeyError, y as LLAMA_CPP_TOOL_CALL_PARSE_PATTERN, z as OllamaApiError } from "./error-
|
|
6
|
-
import { A as toolWireSchema, R as sanitizeSchemaForOllama, g as clearStreamingPartialJson, h as transformMessages, o as normalizeSystemPrompts, w as kStreamingPartialJson } from "./utils-
|
|
7
|
-
import { At as withReplaySafeStreamRetry, n as getEnvApiKey } from "./stream-
|
|
8
|
-
import { i as partitionVisionContent, r as joinTextWithImagePlaceholder } from "./vision-guard-
|
|
9
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
10
|
-
import { n as getOpenAIStreamFirstEventTimeoutMs, r as getOpenAIStreamIdleTimeoutMs, t as armPreResponseTimeout } from "./idle-iterator-
|
|
11
|
-
import { n as getStreamMarkupHealingPattern, t as StreamMarkupHealing } from "./stream-markup-healing-
|
|
4
|
+
import { _ as parseStreamingJson, i as readJsonl } from "./src-DUUqyo9y.mjs";
|
|
5
|
+
import { G as fetchWithRetry, c as finalize, h as MissingApiKeyError, y as LLAMA_CPP_TOOL_CALL_PARSE_PATTERN, z as OllamaApiError } from "./error-DdCn4m1q.mjs";
|
|
6
|
+
import { A as toolWireSchema, R as sanitizeSchemaForOllama, g as clearStreamingPartialJson, h as transformMessages, o as normalizeSystemPrompts, w as kStreamingPartialJson } from "./utils-BMmwLB0f.mjs";
|
|
7
|
+
import { At as withReplaySafeStreamRetry, n as getEnvApiKey } from "./stream-DHdFrAG4.mjs";
|
|
8
|
+
import { i as partitionVisionContent, r as joinTextWithImagePlaceholder } from "./vision-guard-BlAAqGUC.mjs";
|
|
9
|
+
import { t as AssistantMessageEventStream } from "./event-stream-ldcUvOA0.mjs";
|
|
10
|
+
import { n as getOpenAIStreamFirstEventTimeoutMs, r as getOpenAIStreamIdleTimeoutMs, t as armPreResponseTimeout } from "./idle-iterator-DTBaEIbM.mjs";
|
|
11
|
+
import { n as getStreamMarkupHealingPattern, t as StreamMarkupHealing } from "./stream-markup-healing-DlJ9abTw.mjs";
|
|
12
12
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/providers/ollama.ts
|
|
13
13
|
var ollama_exports = /* @__PURE__ */ __exportAll({ streamOllama: () => streamOllama });
|
|
14
14
|
function normalizeBaseUrl(baseUrl) {
|
|
@@ -1,7 +1,7 @@
|
|
|
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 "./utils-
|
|
3
|
+
import { f as OAuthError, m as LoginCancelledError } from "./error-DdCn4m1q.mjs";
|
|
4
|
+
import "./utils-BMmwLB0f.mjs";
|
|
5
5
|
import { n as isRecord } from "./type-guards-CttAANEx.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/openai-codex.ts
|
|
7
7
|
const CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann";
|
|
@@ -1,18 +1,18 @@
|
|
|
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 { B as USER_AGENT, F as $flag, N as $env, S as time, _ as parseStreamingJson, b as debug, o as readSseJson, q as getInstallId, t as structuredCloneJSON, x as error } from "./src-
|
|
5
|
-
import { G as fetchWithRetry, V as ProviderHttpError, _ as AbortError, b as PYTHON_HTTP2_STREAM_RESET_PATTERN, c as finalize, h as MissingApiKeyError, i as isProviderRetryableError, x as PYTHON_HTTP_INCOMPLETE_CHUNK_PATTERN } from "./error-
|
|
6
|
-
import { A as toolWireSchema, M as adaptSchemaForStrict, f as stripOpenAIResponsesComputerLinkedReasoningIdsForReplay, g as clearStreamingPartialJson, h as transformMessages, i as getOpenAIResponsesHistoryPayload, j as NO_STRICT, l as sanitizeOpenAIResponsesAssistantFallbackItemsForReplay, m as redactSensitiveInObject, o as normalizeSystemPrompts, r as getOpenAIResponsesHistoryItems, t as createOpenAIResponsesHistoryPayload, u as sanitizeOpenAIResponsesAssistantHistoryItemsForReplay, w as kStreamingPartialJson, z as sanitizeSchemaForOpenAIResponses } from "./utils-
|
|
4
|
+
import { B as USER_AGENT, F as $flag, N as $env, S as time, _ as parseStreamingJson, b as debug, o as readSseJson, q as getInstallId, t as structuredCloneJSON, x as error } from "./src-DUUqyo9y.mjs";
|
|
5
|
+
import { G as fetchWithRetry, V as ProviderHttpError, _ as AbortError, b as PYTHON_HTTP2_STREAM_RESET_PATTERN, c as finalize, h as MissingApiKeyError, i as isProviderRetryableError, x as PYTHON_HTTP_INCOMPLETE_CHUNK_PATTERN } from "./error-DdCn4m1q.mjs";
|
|
6
|
+
import { A as toolWireSchema, M as adaptSchemaForStrict, f as stripOpenAIResponsesComputerLinkedReasoningIdsForReplay, g as clearStreamingPartialJson, h as transformMessages, i as getOpenAIResponsesHistoryPayload, j as NO_STRICT, l as sanitizeOpenAIResponsesAssistantFallbackItemsForReplay, m as redactSensitiveInObject, o as normalizeSystemPrompts, r as getOpenAIResponsesHistoryItems, t as createOpenAIResponsesHistoryPayload, u as sanitizeOpenAIResponsesAssistantHistoryItemsForReplay, w as kStreamingPartialJson, z as sanitizeSchemaForOpenAIResponses } from "./utils-BMmwLB0f.mjs";
|
|
7
7
|
import { t as asRecord } from "./type-guards-CttAANEx.mjs";
|
|
8
|
-
import { B as convertResponsesInputContent, D as applyOpenAIServiceTier, Dt as escapeHarmonyControlTokens, G as encodeResponsesToolCallId, J as finalizeCustomToolCallInputDone, K as encodeTextSignatureV1, Ot as isHarmonyDialectModel, P as buildResponsesDeltaInput, Q as finalizeToolCallArgumentsDone, R as computerCallMetadata, U as createSequentialCutoffSummaryState, X as finalizePendingResponsesToolCalls, Y as finalizeMessageText, Z as finalizeReasoningThinking, _ as appendReasoningSummaryPart, a as CODEX_BASE_URL, b as appendResponsesImageResult, c as OPENAI_HEADER_VALUES, ct as mapOpenAIReasoningEffort, d as getCodexAccountId, et as getOpenAIPromptCacheKey, ft as populateResponsesUsageFromResponse, g as appendMessageTextDelta, h as appendMessageContentPart, it as hasExecutableIncompleteResponsesToolCalls, k as applyReasoningSummaryDone, kt as hasVisibleAssistantContent, l as applyCodexResidencyHeader, lt as mapOpenAIResponsesStopReason, m as accumulateToolCallArgumentsDelta, mt as promoteResponsesToolUseStopReason, n as getEnvApiKey, o as CODEX_CLIENT_VERSION, ot as isOpenAIResponsesProgressEvent, p as accumulateCustomToolCallInputDelta, q as escapeReplayedControlTokens, r as isOfficialCodexApiUrl, s as OPENAI_HEADERS, u as codexRoutingHint, ut as normalizeOpenAIPromptCacheKey, v as appendReasoningSummaryPartDone, x as appendResponsesToolResultMessages, y as appendReasoningSummaryTextDelta, z as convertResponsesAssistantMessage } from "./stream-
|
|
9
|
-
import { a as toNumber } from "./utils-
|
|
10
|
-
import { o as requireSupportedEffort } from "./anthropic-wire-
|
|
11
|
-
import { n as getProxyForUrl } from "./proxy-
|
|
8
|
+
import { B as convertResponsesInputContent, D as applyOpenAIServiceTier, Dt as escapeHarmonyControlTokens, G as encodeResponsesToolCallId, J as finalizeCustomToolCallInputDone, K as encodeTextSignatureV1, Ot as isHarmonyDialectModel, P as buildResponsesDeltaInput, Q as finalizeToolCallArgumentsDone, R as computerCallMetadata, U as createSequentialCutoffSummaryState, X as finalizePendingResponsesToolCalls, Y as finalizeMessageText, Z as finalizeReasoningThinking, _ as appendReasoningSummaryPart, a as CODEX_BASE_URL, b as appendResponsesImageResult, c as OPENAI_HEADER_VALUES, ct as mapOpenAIReasoningEffort, d as getCodexAccountId, et as getOpenAIPromptCacheKey, ft as populateResponsesUsageFromResponse, g as appendMessageTextDelta, h as appendMessageContentPart, it as hasExecutableIncompleteResponsesToolCalls, k as applyReasoningSummaryDone, kt as hasVisibleAssistantContent, l as applyCodexResidencyHeader, lt as mapOpenAIResponsesStopReason, m as accumulateToolCallArgumentsDelta, mt as promoteResponsesToolUseStopReason, n as getEnvApiKey, o as CODEX_CLIENT_VERSION, ot as isOpenAIResponsesProgressEvent, p as accumulateCustomToolCallInputDelta, q as escapeReplayedControlTokens, r as isOfficialCodexApiUrl, s as OPENAI_HEADERS, u as codexRoutingHint, ut as normalizeOpenAIPromptCacheKey, v as appendReasoningSummaryPartDone, x as appendResponsesToolResultMessages, y as appendReasoningSummaryTextDelta, z as convertResponsesAssistantMessage } from "./stream-DHdFrAG4.mjs";
|
|
9
|
+
import { a as toNumber } from "./utils-D31VFael.mjs";
|
|
10
|
+
import { o as requireSupportedEffort } from "./anthropic-wire-Cb8AQ1tS.mjs";
|
|
11
|
+
import { n as getProxyForUrl } from "./proxy-B51IWEMt.mjs";
|
|
12
12
|
import "./effort-BdtQMN-_.mjs";
|
|
13
13
|
import { t as calculateCost } from "./models-DnXMYGcJ.mjs";
|
|
14
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
15
|
-
import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs, t as armPreResponseTimeout } from "./idle-iterator-
|
|
14
|
+
import { t as AssistantMessageEventStream } from "./event-stream-ldcUvOA0.mjs";
|
|
15
|
+
import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs, t as armPreResponseTimeout } from "./idle-iterator-DTBaEIbM.mjs";
|
|
16
16
|
import { n as isRequestDebugEnabled, t as createRequestDebugSession } from "./request-debug-NQN0BjHH.mjs";
|
|
17
17
|
import { t as notifyRawSseEvent } from "./sse-debug-B-tkLCPW.mjs";
|
|
18
18
|
import { n as planStableOpenAIEffort, r as compactGrammarDefinition, t as getOpenAIEffortControlState } from "./openai-configuration-update-xMYUjaK_.mjs";
|
|
@@ -1,23 +1,23 @@
|
|
|
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 warn, N as $env, _ as parseStreamingJson, v as parseStreamingJsonThrottled } from "./src-
|
|
5
|
-
import { B as OpenAIHttpError, V as ProviderHttpError, _ as AbortError, c as finalize, n as StreamTimeoutError, s as ProviderResponseError, t as ConfigurationError } from "./error-
|
|
6
|
-
import { A as toolWireSchema, C as kStreamingLastParseLen, F as normalizeSchemaForMoonshot, L as sanitizeSchemaForGrammar, M as adaptSchemaForStrict, T as renderDemotedThinking, _ as isDemotedThinking, c as resolveCacheRetention, h as transformMessages, j as NO_STRICT, k as flattenExclusiveRequiredRootUnion, o as normalizeSystemPrompts } from "./utils-
|
|
7
|
-
import { At as withReplaySafeStreamRetry, C as applyChatCompletionsToolStream, D as applyOpenAIServiceTier, E as applyOpenAIGatewayRouting, H as createOpenAIStrictToolsState, I as calculateOpenAIUsageAccounting, L as clearOpenAIStrictToolsState, N as applyWireModelIdTransform, O as applyProviderReportedCost, S as applyChatCompletionsReasoningParams, St as shouldRetryWithoutStrictTools, T as applyOpenAIExtraBody, Tt as mapToOpenAICompletionsToolChoice, V as createInitialResponsesAssistantMessage, W as disableStrictToolsForScope, _t as resolveOpenAIOutputTokenParam, at as isCompiledGrammarTooLargeStrictError, dt as parseAzureDeploymentNameMap, et as getOpenAIPromptCacheKey, gt as resolveOpenAICompletionsOutputClamp, ht as resolveOpenAICompatPolicy, kt as hasVisibleAssistantContent, n as getEnvApiKey, nt as getOpenAIStrictToolsScope, st as isStrictToolsDisabledForScope, vt as resolveOpenAIRequestSetup, wt as isForcedToolChoice, xt as shouldDropAutoToolChoiceForReasoning } from "./stream-
|
|
8
|
-
import { s as resolveWireModelId } from "./anthropic-wire-
|
|
9
|
-
import { t as createAbortSourceTracker } from "./abort-
|
|
4
|
+
import { C as warn, N as $env, _ as parseStreamingJson, v as parseStreamingJsonThrottled } from "./src-DUUqyo9y.mjs";
|
|
5
|
+
import { B as OpenAIHttpError, V as ProviderHttpError, _ as AbortError, c as finalize, n as StreamTimeoutError, s as ProviderResponseError, t as ConfigurationError } from "./error-DdCn4m1q.mjs";
|
|
6
|
+
import { A as toolWireSchema, C as kStreamingLastParseLen, F as normalizeSchemaForMoonshot, L as sanitizeSchemaForGrammar, M as adaptSchemaForStrict, T as renderDemotedThinking, _ as isDemotedThinking, c as resolveCacheRetention, h as transformMessages, j as NO_STRICT, k as flattenExclusiveRequiredRootUnion, o as normalizeSystemPrompts } from "./utils-BMmwLB0f.mjs";
|
|
7
|
+
import { At as withReplaySafeStreamRetry, C as applyChatCompletionsToolStream, D as applyOpenAIServiceTier, E as applyOpenAIGatewayRouting, H as createOpenAIStrictToolsState, I as calculateOpenAIUsageAccounting, L as clearOpenAIStrictToolsState, N as applyWireModelIdTransform, O as applyProviderReportedCost, S as applyChatCompletionsReasoningParams, St as shouldRetryWithoutStrictTools, T as applyOpenAIExtraBody, Tt as mapToOpenAICompletionsToolChoice, V as createInitialResponsesAssistantMessage, W as disableStrictToolsForScope, _t as resolveOpenAIOutputTokenParam, at as isCompiledGrammarTooLargeStrictError, dt as parseAzureDeploymentNameMap, et as getOpenAIPromptCacheKey, gt as resolveOpenAICompletionsOutputClamp, ht as resolveOpenAICompatPolicy, kt as hasVisibleAssistantContent, n as getEnvApiKey, nt as getOpenAIStrictToolsScope, st as isStrictToolsDisabledForScope, vt as resolveOpenAIRequestSetup, wt as isForcedToolChoice, xt as shouldDropAutoToolChoiceForReasoning } from "./stream-DHdFrAG4.mjs";
|
|
8
|
+
import { s as resolveWireModelId } from "./anthropic-wire-Cb8AQ1tS.mjs";
|
|
9
|
+
import { t as createAbortSourceTracker } from "./abort-BtBy5Svf.mjs";
|
|
10
10
|
import { t as calculateCost } from "./models-DnXMYGcJ.mjs";
|
|
11
|
-
import { i as resolveCopilotRequestIdentity, o as wrapFetchForCopilotFallback } from "./github-copilot-headers-
|
|
12
|
-
import { n as isOpenAICompletionsVisionSupported, r as joinTextWithImagePlaceholder, t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-
|
|
11
|
+
import { i as resolveCopilotRequestIdentity, o as wrapFetchForCopilotFallback } from "./github-copilot-headers-BGL8JO5c.mjs";
|
|
12
|
+
import { n as isOpenAICompletionsVisionSupported, r as joinTextWithImagePlaceholder, t as NON_VISION_IMAGE_PLACEHOLDER } from "./vision-guard-BlAAqGUC.mjs";
|
|
13
13
|
import { t as findStrictToolSchemaViolation } from "./strict-tool-validation-CBTz1dAA.mjs";
|
|
14
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
14
|
+
import { t as AssistantMessageEventStream } from "./event-stream-ldcUvOA0.mjs";
|
|
15
15
|
import { n as clinePassClientHeaders } from "./cline-pass-Bwg3esu9.mjs";
|
|
16
|
-
import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs, s as iterateWithTerminalGrace } from "./idle-iterator-
|
|
17
|
-
import { t as getKimiCommonHeaders } from "./kimi-
|
|
16
|
+
import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs, s as iterateWithTerminalGrace } from "./idle-iterator-DTBaEIbM.mjs";
|
|
17
|
+
import { t as getKimiCommonHeaders } from "./kimi-BFfnFDhu.mjs";
|
|
18
18
|
import { t as notifyProviderResponse } from "./provider-response-SqKSkkUc.mjs";
|
|
19
|
-
import { a as getOpenAIReasoningEffortFallback, c as postOpenAIStream, i as createOpenAIReasoningEffortFallbackState, n as clearOpenAIReasoningEffortFallbackState, o as rememberOpenAIReasoningEffortFallback, r as createOpenAIReasoningEffortFallbackKey, s as resolveOpenAIReasoningEffortFallback, t as applyOpenAIReasoningEffortFallback } from "./openai-reasoning-fallback-
|
|
20
|
-
import { t as StreamMarkupHealing } from "./stream-markup-healing-
|
|
19
|
+
import { a as getOpenAIReasoningEffortFallback, c as postOpenAIStream, i as createOpenAIReasoningEffortFallbackState, n as clearOpenAIReasoningEffortFallbackState, o as rememberOpenAIReasoningEffortFallback, r as createOpenAIReasoningEffortFallbackKey, s as resolveOpenAIReasoningEffortFallback, t as applyOpenAIReasoningEffortFallback } from "./openai-reasoning-fallback-DFdD1ok5.mjs";
|
|
20
|
+
import { t as StreamMarkupHealing } from "./stream-markup-healing-DlJ9abTw.mjs";
|
|
21
21
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/providers/openai-completions.ts
|
|
22
22
|
var openai_completions_exports = /* @__PURE__ */ __exportAll({
|
|
23
23
|
convertMessages: () => convertMessages,
|
package/lib/{openai-reasoning-fallback-BdB3RCbj.mjs → openai-reasoning-fallback-DFdD1ok5.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { o as readSseJson } from "./src-
|
|
4
|
-
import { B as OpenAIHttpError, G as fetchWithRetry, W as extractHttpStatusFromError, s as ProviderResponseError } from "./error-
|
|
3
|
+
import { o as readSseJson } from "./src-DUUqyo9y.mjs";
|
|
4
|
+
import { B as OpenAIHttpError, G as fetchWithRetry, W as extractHttpStatusFromError, s as ProviderResponseError } from "./error-DdCn4m1q.mjs";
|
|
5
5
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/utils/openai-http.ts
|
|
6
6
|
/**
|
|
7
7
|
* JSON-POST → SSE transport for OpenAI-wire streaming endpoints (chat
|
|
@@ -1,18 +1,18 @@
|
|
|
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 warn, F as $flag, b as debug, t as structuredCloneJSON } from "./src-
|
|
5
|
-
import { A as isTransientStreamParseError, B as OpenAIHttpError, _ as AbortError, c as finalize, i as isProviderRetryableError, n as StreamTimeoutError, s as ProviderResponseError, t as ConfigurationError } from "./error-
|
|
6
|
-
import { A as toolWireSchema, F as normalizeSchemaForMoonshot, M as adaptSchemaForStrict, c as resolveCacheRetention, j as NO_STRICT, k as flattenExclusiveRequiredRootUnion, o as normalizeSystemPrompts, t as createOpenAIResponsesHistoryPayload, u as sanitizeOpenAIResponsesAssistantHistoryItemsForReplay, z as sanitizeSchemaForOpenAIResponses } from "./utils-
|
|
7
|
-
import { $ as getJuiceValue, A as applyResponsesCompatPolicy, At as withReplaySafeStreamRetry, E as applyOpenAIGatewayRouting, Et as mapToOpenAIResponsesToolChoice, F as buildResponsesInput, H as createOpenAIStrictToolsState, L as clearOpenAIStrictToolsState, M as applyVercelResponsesCacheControls, N as applyWireModelIdTransform, P as buildResponsesDeltaInput, St as shouldRetryWithoutStrictTools, T as applyOpenAIExtraBody, V as createInitialResponsesAssistantMessage, W as disableStrictToolsForScope, _t as resolveOpenAIOutputTokenParam, at as isCompiledGrammarTooLargeStrictError, bt as resolveReasoningSummaryOption, et as getOpenAIPromptCacheKey, ht as resolveOpenAICompatPolicy, n as getEnvApiKey, nt as getOpenAIStrictToolsScope, ot as isOpenAIResponsesProgressEvent, pt as processResponsesStream, rt as getOpenRouterResponsesSessionId, st as isStrictToolsDisabledForScope, tt as getOpenAIResponsesRoutingSessionId, vt as resolveOpenAIRequestSetup, w as applyCommonResponsesSamplingParams, wt as isForcedToolChoice, xt as shouldDropAutoToolChoiceForReasoning, yt as resolveOpenAIResponsesOutputClamp } from "./stream-
|
|
8
|
-
import { t as createAbortSourceTracker } from "./abort-
|
|
9
|
-
import { i as resolveCopilotRequestIdentity, o as wrapFetchForCopilotFallback } from "./github-copilot-headers-
|
|
4
|
+
import { C as warn, F as $flag, b as debug, t as structuredCloneJSON } from "./src-DUUqyo9y.mjs";
|
|
5
|
+
import { A as isTransientStreamParseError, B as OpenAIHttpError, _ as AbortError, c as finalize, i as isProviderRetryableError, n as StreamTimeoutError, s as ProviderResponseError, t as ConfigurationError } from "./error-DdCn4m1q.mjs";
|
|
6
|
+
import { A as toolWireSchema, F as normalizeSchemaForMoonshot, M as adaptSchemaForStrict, c as resolveCacheRetention, j as NO_STRICT, k as flattenExclusiveRequiredRootUnion, o as normalizeSystemPrompts, t as createOpenAIResponsesHistoryPayload, u as sanitizeOpenAIResponsesAssistantHistoryItemsForReplay, z as sanitizeSchemaForOpenAIResponses } from "./utils-BMmwLB0f.mjs";
|
|
7
|
+
import { $ as getJuiceValue, A as applyResponsesCompatPolicy, At as withReplaySafeStreamRetry, E as applyOpenAIGatewayRouting, Et as mapToOpenAIResponsesToolChoice, F as buildResponsesInput, H as createOpenAIStrictToolsState, L as clearOpenAIStrictToolsState, M as applyVercelResponsesCacheControls, N as applyWireModelIdTransform, P as buildResponsesDeltaInput, St as shouldRetryWithoutStrictTools, T as applyOpenAIExtraBody, V as createInitialResponsesAssistantMessage, W as disableStrictToolsForScope, _t as resolveOpenAIOutputTokenParam, at as isCompiledGrammarTooLargeStrictError, bt as resolveReasoningSummaryOption, et as getOpenAIPromptCacheKey, ht as resolveOpenAICompatPolicy, n as getEnvApiKey, nt as getOpenAIStrictToolsScope, ot as isOpenAIResponsesProgressEvent, pt as processResponsesStream, rt as getOpenRouterResponsesSessionId, st as isStrictToolsDisabledForScope, tt as getOpenAIResponsesRoutingSessionId, vt as resolveOpenAIRequestSetup, w as applyCommonResponsesSamplingParams, wt as isForcedToolChoice, xt as shouldDropAutoToolChoiceForReasoning, yt as resolveOpenAIResponsesOutputClamp } from "./stream-DHdFrAG4.mjs";
|
|
8
|
+
import { t as createAbortSourceTracker } from "./abort-BtBy5Svf.mjs";
|
|
9
|
+
import { i as resolveCopilotRequestIdentity, o as wrapFetchForCopilotFallback } from "./github-copilot-headers-BGL8JO5c.mjs";
|
|
10
10
|
import { t as findStrictToolSchemaViolation } from "./strict-tool-validation-CBTz1dAA.mjs";
|
|
11
|
-
import { t as AssistantMessageEventStream } from "./event-stream-
|
|
12
|
-
import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs } from "./idle-iterator-
|
|
11
|
+
import { t as AssistantMessageEventStream } from "./event-stream-ldcUvOA0.mjs";
|
|
12
|
+
import { n as getOpenAIStreamFirstEventTimeoutMs, o as iterateWithIdleTimeout, r as getOpenAIStreamIdleTimeoutMs } from "./idle-iterator-DTBaEIbM.mjs";
|
|
13
13
|
import { t as notifyProviderResponse } from "./provider-response-SqKSkkUc.mjs";
|
|
14
14
|
import { n as planStableOpenAIEffort, r as compactGrammarDefinition, t as getOpenAIEffortControlState } from "./openai-configuration-update-xMYUjaK_.mjs";
|
|
15
|
-
import { a as getOpenAIReasoningEffortFallback, c as postOpenAIStream, i as createOpenAIReasoningEffortFallbackState, n as clearOpenAIReasoningEffortFallbackState, o as rememberOpenAIReasoningEffortFallback, r as createOpenAIReasoningEffortFallbackKey, s as resolveOpenAIReasoningEffortFallback, t as applyOpenAIReasoningEffortFallback } from "./openai-reasoning-fallback-
|
|
15
|
+
import { a as getOpenAIReasoningEffortFallback, c as postOpenAIStream, i as createOpenAIReasoningEffortFallbackState, n as clearOpenAIReasoningEffortFallbackState, o as rememberOpenAIReasoningEffortFallback, r as createOpenAIReasoningEffortFallbackKey, s as resolveOpenAIReasoningEffortFallback, t as applyOpenAIReasoningEffortFallback } from "./openai-reasoning-fallback-DFdD1ok5.mjs";
|
|
16
16
|
import { scheduler } from "node:timers/promises";
|
|
17
17
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/providers/openai-responses.ts
|
|
18
18
|
var openai_responses_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { E as CookieMap, N as $env, T as Cookie, w as $ } from "./src-
|
|
4
|
-
import { V as ProviderHttpError, f as OAuthError, g as OnPromptRequiredError, m as LoginCancelledError } from "./error-
|
|
3
|
+
import { E as CookieMap, N as $env, T as Cookie, w as $ } from "./src-DUUqyo9y.mjs";
|
|
4
|
+
import { V as ProviderHttpError, f as OAuthError, g as OnPromptRequiredError, m as LoginCancelledError } from "./error-DdCn4m1q.mjs";
|
|
5
5
|
import * as os from "node:os";
|
|
6
6
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/perplexity.ts
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import "./src-
|
|
3
|
+
import "./src-DUUqyo9y.mjs";
|
|
4
4
|
import { n as isRecord } from "./type-guards-CttAANEx.mjs";
|
|
5
5
|
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/discovery/protobuf.ts
|
|
6
6
|
const textEncoder = new TextEncoder();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { b as debug } from "./src-
|
|
4
|
-
import { _ as AbortError, n as StreamTimeoutError, r as ValidationError } from "./error-
|
|
3
|
+
import { b as debug } from "./src-DUUqyo9y.mjs";
|
|
4
|
+
import { _ as AbortError, n as StreamTimeoutError, r as ValidationError } from "./error-DdCn4m1q.mjs";
|
|
5
5
|
import * as tls from "node:tls";
|
|
6
6
|
import * as net from "node:net";
|
|
7
7
|
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/utils/proxy.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { $ as isEnoent, B as USER_AGENT, C as warn, G as getDocsRsCacheDir, N as $env, c as combineSignals, j as formatNumber, k as formatBytes, l as exec, s as Snowflake, y as parseFrontmatter } from "./src-
|
|
5
|
-
import { W as tryParseJson } from "./utils-
|
|
6
|
-
import { a as fetchBinary, c as getParallelExtractContent, i as convertWithMarkit, l as ensureTool, m as settings, n as asRecord, o as extractWithParallel, r as asString, s as findParallelApiKey, t as asNumber } from "./utils-
|
|
4
|
+
import { $ as isEnoent, B as USER_AGENT, C as warn, G as getDocsRsCacheDir, N as $env, c as combineSignals, j as formatNumber, k as formatBytes, l as exec, s as Snowflake, y as parseFrontmatter } from "./src-DUUqyo9y.mjs";
|
|
5
|
+
import { W as tryParseJson } from "./utils-BMmwLB0f.mjs";
|
|
6
|
+
import { a as fetchBinary, c as getParallelExtractContent, i as convertWithMarkit, l as ensureTool, m as settings, n as asRecord, o as extractWithParallel, r as asString, s as findParallelApiKey, t as asNumber } from "./utils-C-Lo_JC6.mjs";
|
|
7
7
|
import { n as isRecord } from "./type-guards-CttAANEx.mjs";
|
|
8
8
|
import { r as throwIfAborted, t as ToolAbortError } from "./tool-errors-DoyxivAR.mjs";
|
|
9
|
-
import { c as getLocalizedText, d as looksLikeHtml, i as decodeHtmlEntities, l as htmlToBasicMarkdown, o as formatIsoDate, r as buildResult, s as formatMediaDuration, u as loadPage } from "./types-
|
|
10
|
-
import * as path from "node:path";
|
|
9
|
+
import { c as getLocalizedText, d as looksLikeHtml, i as decodeHtmlEntities, l as htmlToBasicMarkdown, o as formatIsoDate, r as buildResult, s as formatMediaDuration, u as loadPage } from "./types-DT9vgZ3S.mjs";
|
|
10
|
+
import * as path$1 from "node:path";
|
|
11
11
|
import * as os from "node:os";
|
|
12
12
|
import { gunzipSync } from "node:zlib";
|
|
13
13
|
//#region node_modules/.pnpm/@oh-my-pi+pi-utils@18.1.17/node_modules/@oh-my-pi/pi-utils/src/version.ts
|
|
@@ -1921,7 +1921,7 @@ function getDocsRsCacheVersionSegment(version, now = /* @__PURE__ */ new Date())
|
|
|
1921
1921
|
function getDocsRsCachePath(target, now = /* @__PURE__ */ new Date()) {
|
|
1922
1922
|
const crate = sanitizeCacheSegment(target.crateName);
|
|
1923
1923
|
const version = getDocsRsCacheVersionSegment(target.version, now);
|
|
1924
|
-
return path.join(getDocsRsCacheDir(), `docsrs_${crate}_${version}`, DOCS_RS_CACHE_FILENAME);
|
|
1924
|
+
return path$1.join(getDocsRsCacheDir(), `docsrs_${crate}_${version}`, DOCS_RS_CACHE_FILENAME);
|
|
1925
1925
|
}
|
|
1926
1926
|
async function readCachedRustdocCrate(target) {
|
|
1927
1927
|
const cachePath = getDocsRsCachePath(target);
|
|
@@ -9035,7 +9035,7 @@ const handleYouTube = async (url, timeout, userSignal, storage) => {
|
|
|
9035
9035
|
const hasManualSubs = listResult.stdout.includes("[info] Available subtitles");
|
|
9036
9036
|
const hasAutoSubs = listResult.stdout.includes("[info] Available automatic captions");
|
|
9037
9037
|
const tmpDir = os.tmpdir();
|
|
9038
|
-
const tmpBase = path.join(tmpDir, `yt-${yt.videoId}-${Snowflake.next()}`);
|
|
9038
|
+
const tmpBase = path$1.join(tmpDir, `yt-${yt.videoId}-${Snowflake.next()}`);
|
|
9039
9039
|
try {
|
|
9040
9040
|
if (hasManualSubs) {
|
|
9041
9041
|
if ((await exec([
|