@hasna/assistants 1.1.84 → 1.1.85
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/dist/index.js +480 -391
- package/dist/index.js.map +6 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ var __create = Object.create;
|
|
|
4
4
|
var __getProtoOf = Object.getPrototypeOf;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
8
|
var __toESM = (mod, isNodeMode, target) => {
|
|
10
9
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
@@ -17,20 +16,6 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
17
16
|
});
|
|
18
17
|
return to;
|
|
19
18
|
};
|
|
20
|
-
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
21
|
-
var __toCommonJS = (from) => {
|
|
22
|
-
var entry = __moduleCache.get(from), desc;
|
|
23
|
-
if (entry)
|
|
24
|
-
return entry;
|
|
25
|
-
entry = __defProp({}, "__esModule", { value: true });
|
|
26
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
27
|
-
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
|
28
|
-
get: () => from[key],
|
|
29
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
-
}));
|
|
31
|
-
__moduleCache.set(from, entry);
|
|
32
|
-
return entry;
|
|
33
|
-
};
|
|
34
19
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
35
20
|
var __export = (target, all) => {
|
|
36
21
|
for (var name in all)
|
|
@@ -36047,156 +36032,118 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
36047
36032
|
};
|
|
36048
36033
|
});
|
|
36049
36034
|
|
|
36050
|
-
// node_modules/.pnpm/
|
|
36051
|
-
var
|
|
36052
|
-
|
|
36053
|
-
|
|
36054
|
-
|
|
36035
|
+
// node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
36036
|
+
var require_has_flag = __commonJS((exports, module) => {
|
|
36037
|
+
module.exports = (flag, argv = process.argv) => {
|
|
36038
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
36039
|
+
const position2 = argv.indexOf(prefix + flag);
|
|
36040
|
+
const terminatorPosition = argv.indexOf("--");
|
|
36041
|
+
return position2 !== -1 && (terminatorPosition === -1 || position2 < terminatorPosition);
|
|
36042
|
+
};
|
|
36055
36043
|
});
|
|
36056
|
-
|
|
36057
|
-
|
|
36058
|
-
|
|
36059
|
-
|
|
36060
|
-
|
|
36061
|
-
|
|
36062
|
-
|
|
36063
|
-
|
|
36064
|
-
|
|
36065
|
-
|
|
36066
|
-
if (
|
|
36067
|
-
|
|
36068
|
-
}
|
|
36069
|
-
if (env2.FORCE_COLOR === "true") {
|
|
36070
|
-
return 1;
|
|
36071
|
-
}
|
|
36072
|
-
if (env2.FORCE_COLOR === "false") {
|
|
36073
|
-
return 0;
|
|
36074
|
-
}
|
|
36075
|
-
if (env2.FORCE_COLOR.length === 0) {
|
|
36076
|
-
return 1;
|
|
36077
|
-
}
|
|
36078
|
-
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
36079
|
-
if (![0, 1, 2, 3].includes(level)) {
|
|
36080
|
-
return;
|
|
36081
|
-
}
|
|
36082
|
-
return level;
|
|
36083
|
-
}
|
|
36084
|
-
function translateLevel(level) {
|
|
36085
|
-
if (level === 0) {
|
|
36086
|
-
return false;
|
|
36044
|
+
|
|
36045
|
+
// node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
|
|
36046
|
+
var require_supports_color = __commonJS((exports, module) => {
|
|
36047
|
+
var os = __require("os");
|
|
36048
|
+
var tty = __require("tty");
|
|
36049
|
+
var hasFlag = require_has_flag();
|
|
36050
|
+
var { env: env2 } = process;
|
|
36051
|
+
var forceColor;
|
|
36052
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
36053
|
+
forceColor = 0;
|
|
36054
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
36055
|
+
forceColor = 1;
|
|
36087
36056
|
}
|
|
36088
|
-
|
|
36089
|
-
|
|
36090
|
-
|
|
36091
|
-
|
|
36092
|
-
|
|
36093
|
-
|
|
36094
|
-
|
|
36095
|
-
|
|
36096
|
-
const noFlagForceColor = envForceColor();
|
|
36097
|
-
if (noFlagForceColor !== undefined) {
|
|
36098
|
-
flagForceColor = noFlagForceColor;
|
|
36057
|
+
if ("FORCE_COLOR" in env2) {
|
|
36058
|
+
if (env2.FORCE_COLOR === "true") {
|
|
36059
|
+
forceColor = 1;
|
|
36060
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
36061
|
+
forceColor = 0;
|
|
36062
|
+
} else {
|
|
36063
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
36064
|
+
}
|
|
36099
36065
|
}
|
|
36100
|
-
|
|
36101
|
-
|
|
36102
|
-
|
|
36066
|
+
function translateLevel(level) {
|
|
36067
|
+
if (level === 0) {
|
|
36068
|
+
return false;
|
|
36069
|
+
}
|
|
36070
|
+
return {
|
|
36071
|
+
level,
|
|
36072
|
+
hasBasic: true,
|
|
36073
|
+
has256: level >= 2,
|
|
36074
|
+
has16m: level >= 3
|
|
36075
|
+
};
|
|
36103
36076
|
}
|
|
36104
|
-
|
|
36077
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
36078
|
+
if (forceColor === 0) {
|
|
36079
|
+
return 0;
|
|
36080
|
+
}
|
|
36105
36081
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
36106
36082
|
return 3;
|
|
36107
36083
|
}
|
|
36108
36084
|
if (hasFlag("color=256")) {
|
|
36109
36085
|
return 2;
|
|
36110
36086
|
}
|
|
36111
|
-
|
|
36112
|
-
|
|
36113
|
-
return 1;
|
|
36114
|
-
}
|
|
36115
|
-
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
36116
|
-
return 0;
|
|
36117
|
-
}
|
|
36118
|
-
const min = forceColor || 0;
|
|
36119
|
-
if (env2.TERM === "dumb") {
|
|
36120
|
-
return min;
|
|
36121
|
-
}
|
|
36122
|
-
if (process2.platform === "win32") {
|
|
36123
|
-
const osRelease = os.release().split(".");
|
|
36124
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
36125
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
36087
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
36088
|
+
return 0;
|
|
36126
36089
|
}
|
|
36127
|
-
|
|
36128
|
-
|
|
36129
|
-
|
|
36130
|
-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env2))) {
|
|
36131
|
-
return 3;
|
|
36090
|
+
const min = forceColor || 0;
|
|
36091
|
+
if (env2.TERM === "dumb") {
|
|
36092
|
+
return min;
|
|
36132
36093
|
}
|
|
36133
|
-
if (
|
|
36094
|
+
if (process.platform === "win32") {
|
|
36095
|
+
const osRelease = os.release().split(".");
|
|
36096
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
36097
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
36098
|
+
}
|
|
36134
36099
|
return 1;
|
|
36135
36100
|
}
|
|
36136
|
-
|
|
36137
|
-
|
|
36138
|
-
|
|
36139
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
36140
|
-
}
|
|
36141
|
-
if (env2.COLORTERM === "truecolor") {
|
|
36142
|
-
return 3;
|
|
36143
|
-
}
|
|
36144
|
-
if (env2.TERM === "xterm-kitty") {
|
|
36145
|
-
return 3;
|
|
36146
|
-
}
|
|
36147
|
-
if (env2.TERM === "xterm-ghostty") {
|
|
36148
|
-
return 3;
|
|
36149
|
-
}
|
|
36150
|
-
if (env2.TERM === "wezterm") {
|
|
36151
|
-
return 3;
|
|
36152
|
-
}
|
|
36153
|
-
if ("TERM_PROGRAM" in env2) {
|
|
36154
|
-
const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
36155
|
-
switch (env2.TERM_PROGRAM) {
|
|
36156
|
-
case "iTerm.app": {
|
|
36157
|
-
return version >= 3 ? 3 : 2;
|
|
36101
|
+
if ("CI" in env2) {
|
|
36102
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => (sign in env2)) || env2.CI_NAME === "codeship") {
|
|
36103
|
+
return 1;
|
|
36158
36104
|
}
|
|
36159
|
-
|
|
36160
|
-
|
|
36105
|
+
return min;
|
|
36106
|
+
}
|
|
36107
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
36108
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
36109
|
+
}
|
|
36110
|
+
if (env2.COLORTERM === "truecolor") {
|
|
36111
|
+
return 3;
|
|
36112
|
+
}
|
|
36113
|
+
if ("TERM_PROGRAM" in env2) {
|
|
36114
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
36115
|
+
switch (env2.TERM_PROGRAM) {
|
|
36116
|
+
case "iTerm.app":
|
|
36117
|
+
return version >= 3 ? 3 : 2;
|
|
36118
|
+
case "Apple_Terminal":
|
|
36119
|
+
return 2;
|
|
36161
36120
|
}
|
|
36162
36121
|
}
|
|
36122
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
36123
|
+
return 2;
|
|
36124
|
+
}
|
|
36125
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
36126
|
+
return 1;
|
|
36127
|
+
}
|
|
36128
|
+
if ("COLORTERM" in env2) {
|
|
36129
|
+
return 1;
|
|
36130
|
+
}
|
|
36131
|
+
return min;
|
|
36163
36132
|
}
|
|
36164
|
-
|
|
36165
|
-
|
|
36166
|
-
|
|
36167
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
36168
|
-
return 1;
|
|
36169
|
-
}
|
|
36170
|
-
if ("COLORTERM" in env2) {
|
|
36171
|
-
return 1;
|
|
36133
|
+
function getSupportLevel(stream) {
|
|
36134
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
36135
|
+
return translateLevel(level);
|
|
36172
36136
|
}
|
|
36173
|
-
|
|
36174
|
-
|
|
36175
|
-
|
|
36176
|
-
|
|
36177
|
-
streamIsTTY: stream && stream.isTTY,
|
|
36178
|
-
...options2
|
|
36179
|
-
});
|
|
36180
|
-
return translateLevel(level);
|
|
36181
|
-
}
|
|
36182
|
-
var env2, flagForceColor, supportsColor, supports_color_default;
|
|
36183
|
-
var init_supports_color = __esm(() => {
|
|
36184
|
-
({ env: env2 } = process2);
|
|
36185
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
36186
|
-
flagForceColor = 0;
|
|
36187
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
36188
|
-
flagForceColor = 1;
|
|
36189
|
-
}
|
|
36190
|
-
supportsColor = {
|
|
36191
|
-
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
36192
|
-
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
36137
|
+
module.exports = {
|
|
36138
|
+
supportsColor: getSupportLevel,
|
|
36139
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
36140
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
36193
36141
|
};
|
|
36194
|
-
supports_color_default = supportsColor;
|
|
36195
36142
|
});
|
|
36196
36143
|
|
|
36197
36144
|
// node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
|
|
36198
36145
|
var require_node = __commonJS((exports, module) => {
|
|
36199
|
-
var
|
|
36146
|
+
var tty = __require("tty");
|
|
36200
36147
|
var util = __require("util");
|
|
36201
36148
|
exports.init = init;
|
|
36202
36149
|
exports.log = log2;
|
|
@@ -36207,8 +36154,8 @@ var require_node = __commonJS((exports, module) => {
|
|
|
36207
36154
|
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
36208
36155
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
36209
36156
|
try {
|
|
36210
|
-
const
|
|
36211
|
-
if (
|
|
36157
|
+
const supportsColor = require_supports_color();
|
|
36158
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
36212
36159
|
exports.colors = [
|
|
36213
36160
|
20,
|
|
36214
36161
|
21,
|
|
@@ -36309,7 +36256,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
36309
36256
|
return obj;
|
|
36310
36257
|
}, {});
|
|
36311
36258
|
function useColors() {
|
|
36312
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
36259
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
36313
36260
|
}
|
|
36314
36261
|
function formatArgs(args) {
|
|
36315
36262
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -48610,9 +48557,9 @@ var require_fs = __commonJS((exports) => {
|
|
|
48610
48557
|
var require_path = __commonJS((exports) => {
|
|
48611
48558
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48612
48559
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = undefined;
|
|
48613
|
-
var
|
|
48560
|
+
var os = __require("os");
|
|
48614
48561
|
var path3 = __require("path");
|
|
48615
|
-
var IS_WINDOWS_PLATFORM =
|
|
48562
|
+
var IS_WINDOWS_PLATFORM = os.platform() === "win32";
|
|
48616
48563
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
48617
48564
|
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
48618
48565
|
var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
@@ -53665,8 +53612,8 @@ var require_settings4 = __commonJS((exports) => {
|
|
|
53665
53612
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53666
53613
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = undefined;
|
|
53667
53614
|
var fs = __require("fs");
|
|
53668
|
-
var
|
|
53669
|
-
var CPU_COUNT = Math.max(
|
|
53615
|
+
var os = __require("os");
|
|
53616
|
+
var CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
53670
53617
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
53671
53618
|
lstat: fs.lstat,
|
|
53672
53619
|
lstatSync: fs.lstatSync,
|
|
@@ -90898,10 +90845,10 @@ var require_html_to_text = __commonJS((exports) => {
|
|
|
90898
90845
|
builder.addInline(options2.limits.ellipsis || "");
|
|
90899
90846
|
});
|
|
90900
90847
|
return function(html2, metadata = undefined) {
|
|
90901
|
-
return
|
|
90848
|
+
return process2(html2, metadata, options2, picker, findBaseElements, limitedWalk);
|
|
90902
90849
|
};
|
|
90903
90850
|
}
|
|
90904
|
-
function
|
|
90851
|
+
function process2(html2, metadata, options2, picker, findBaseElements, walk) {
|
|
90905
90852
|
const maxInputLength = options2.limits.maxInputLength;
|
|
90906
90853
|
if (maxInputLength && html2 && html2.length > maxInputLength) {
|
|
90907
90854
|
console.warn(`Input length ${html2.length} is above allowed limit of ${maxInputLength}. Truncating without ellipsis.`);
|
|
@@ -109980,7 +109927,7 @@ Not a git repository or git not available.
|
|
|
109980
109927
|
context.setProjectContext(projectContext);
|
|
109981
109928
|
}
|
|
109982
109929
|
}
|
|
109983
|
-
var VERSION2 = "1.1.
|
|
109930
|
+
var VERSION2 = "1.1.85";
|
|
109984
109931
|
var init_builtin = __esm(async () => {
|
|
109985
109932
|
init_src2();
|
|
109986
109933
|
init_context3();
|
|
@@ -111101,8 +111048,8 @@ function supportsFormData2(fetchObject) {
|
|
|
111101
111048
|
}
|
|
111102
111049
|
var checkFileSupport2 = () => {
|
|
111103
111050
|
if (typeof File === "undefined") {
|
|
111104
|
-
const { process:
|
|
111105
|
-
const isOldNode = typeof
|
|
111051
|
+
const { process: process2 } = globalThis;
|
|
111052
|
+
const isOldNode = typeof process2?.versions?.node === "string" && parseInt(process2.versions.node.split(".")) < 20;
|
|
111106
111053
|
throw new Error("`File` is not defined as a global, which is required for file uploads." + (isOldNode ? " Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`." : ""));
|
|
111107
111054
|
}
|
|
111108
111055
|
}, isAsyncIterable2 = (value2) => value2 != null && typeof value2 === "object" && typeof value2[Symbol.asyncIterator] === "function", multipartFormRequestOptions2 = async (opts, fetch2, stripFilenames = true) => {
|
|
@@ -113746,12 +113693,12 @@ var init_resources2 = __esm(() => {
|
|
|
113746
113693
|
});
|
|
113747
113694
|
|
|
113748
113695
|
// node_modules/.pnpm/@anthropic-ai+sdk@0.74.0_zod@3.25.76/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
|
|
113749
|
-
var readEnv2 = (
|
|
113696
|
+
var readEnv2 = (env2) => {
|
|
113750
113697
|
if (typeof globalThis.process !== "undefined") {
|
|
113751
|
-
return globalThis.process.env?.[
|
|
113698
|
+
return globalThis.process.env?.[env2]?.trim() ?? undefined;
|
|
113752
113699
|
}
|
|
113753
113700
|
if (typeof globalThis.Deno !== "undefined") {
|
|
113754
|
-
return globalThis.Deno.env?.get?.(
|
|
113701
|
+
return globalThis.Deno.env?.get?.(env2)?.trim();
|
|
113755
113702
|
}
|
|
113756
113703
|
return;
|
|
113757
113704
|
};
|
|
@@ -117157,7 +117104,7 @@ var init_NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = __esm(() => {
|
|
|
117157
117104
|
init_constants3();
|
|
117158
117105
|
init_stringUnionSelector();
|
|
117159
117106
|
NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = {
|
|
117160
|
-
environmentVariableSelector: (
|
|
117107
|
+
environmentVariableSelector: (env2) => stringUnionSelector(env2, ENV_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, SelectorType.ENV),
|
|
117161
117108
|
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, SelectorType.CONFIG),
|
|
117162
117109
|
default: DEFAULT_REQUEST_CHECKSUM_CALCULATION
|
|
117163
117110
|
};
|
|
@@ -117169,7 +117116,7 @@ var init_NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = __esm(() => {
|
|
|
117169
117116
|
init_constants3();
|
|
117170
117117
|
init_stringUnionSelector();
|
|
117171
117118
|
NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = {
|
|
117172
|
-
environmentVariableSelector: (
|
|
117119
|
+
environmentVariableSelector: (env2) => stringUnionSelector(env2, ENV_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, SelectorType.ENV),
|
|
117173
117120
|
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, SelectorType.CONFIG),
|
|
117174
117121
|
default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION
|
|
117175
117122
|
};
|
|
@@ -120281,7 +120228,7 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
120281
120228
|
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
120282
120229
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
120283
120230
|
};
|
|
120284
|
-
__addDisposableResource = function(
|
|
120231
|
+
__addDisposableResource = function(env2, value2, async) {
|
|
120285
120232
|
if (value2 !== null && value2 !== undefined) {
|
|
120286
120233
|
if (typeof value2 !== "object" && typeof value2 !== "function")
|
|
120287
120234
|
throw new TypeError("Object expected.");
|
|
@@ -120308,9 +120255,9 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
120308
120255
|
return Promise.reject(e);
|
|
120309
120256
|
}
|
|
120310
120257
|
};
|
|
120311
|
-
|
|
120258
|
+
env2.stack.push({ value: value2, dispose, async });
|
|
120312
120259
|
} else if (async) {
|
|
120313
|
-
|
|
120260
|
+
env2.stack.push({ async: true });
|
|
120314
120261
|
}
|
|
120315
120262
|
return value2;
|
|
120316
120263
|
};
|
|
@@ -120318,17 +120265,17 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
120318
120265
|
var e = new Error(message);
|
|
120319
120266
|
return e.name = "SuppressedError", e.error = error3, e.suppressed = suppressed, e;
|
|
120320
120267
|
};
|
|
120321
|
-
__disposeResources = function(
|
|
120268
|
+
__disposeResources = function(env2) {
|
|
120322
120269
|
function fail(e) {
|
|
120323
|
-
|
|
120324
|
-
|
|
120270
|
+
env2.error = env2.hasError ? new _SuppressedError(e, env2.error, "An error was suppressed during disposal.") : e;
|
|
120271
|
+
env2.hasError = true;
|
|
120325
120272
|
}
|
|
120326
120273
|
var r, s = 0;
|
|
120327
120274
|
function next() {
|
|
120328
|
-
while (r =
|
|
120275
|
+
while (r = env2.stack.pop()) {
|
|
120329
120276
|
try {
|
|
120330
120277
|
if (!r.async && s === 1)
|
|
120331
|
-
return s = 0,
|
|
120278
|
+
return s = 0, env2.stack.push(r), Promise.resolve().then(next);
|
|
120332
120279
|
if (r.dispose) {
|
|
120333
120280
|
var result = r.dispose.call(r.value);
|
|
120334
120281
|
if (r.async)
|
|
@@ -120343,9 +120290,9 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
120343
120290
|
}
|
|
120344
120291
|
}
|
|
120345
120292
|
if (s === 1)
|
|
120346
|
-
return
|
|
120347
|
-
if (
|
|
120348
|
-
throw
|
|
120293
|
+
return env2.hasError ? Promise.reject(env2.error) : Promise.resolve();
|
|
120294
|
+
if (env2.hasError)
|
|
120295
|
+
throw env2.error;
|
|
120349
120296
|
}
|
|
120350
120297
|
return next();
|
|
120351
120298
|
};
|
|
@@ -126372,15 +126319,15 @@ More information can be found at: https://a.co/c895JFp`);
|
|
|
126372
126319
|
var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
126373
126320
|
var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
|
|
126374
126321
|
var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
126375
|
-
environmentVariableSelector: (
|
|
126322
|
+
environmentVariableSelector: (env2, options2) => {
|
|
126376
126323
|
if (options2?.signingName) {
|
|
126377
126324
|
const bearerTokenKey = getBearerTokenEnvKey(options2.signingName);
|
|
126378
|
-
if (bearerTokenKey in
|
|
126325
|
+
if (bearerTokenKey in env2)
|
|
126379
126326
|
return ["httpBearerAuth"];
|
|
126380
126327
|
}
|
|
126381
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in
|
|
126328
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env2))
|
|
126382
126329
|
return;
|
|
126383
|
-
return getArrayForCommaSeparatedString(
|
|
126330
|
+
return getArrayForCommaSeparatedString(env2[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
|
|
126384
126331
|
},
|
|
126385
126332
|
configFileSelector: (profile) => {
|
|
126386
126333
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
|
|
@@ -126394,9 +126341,9 @@ More information can be found at: https://a.co/c895JFp`);
|
|
|
126394
126341
|
return config;
|
|
126395
126342
|
};
|
|
126396
126343
|
var NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
126397
|
-
environmentVariableSelector(
|
|
126398
|
-
if (
|
|
126399
|
-
return
|
|
126344
|
+
environmentVariableSelector(env2) {
|
|
126345
|
+
if (env2.AWS_SIGV4A_SIGNING_REGION_SET) {
|
|
126346
|
+
return env2.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
|
|
126400
126347
|
}
|
|
126401
126348
|
throw new propertyProvider.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
|
|
126402
126349
|
tryNextLink: true
|
|
@@ -130235,7 +130182,7 @@ var init_constants4 = __esm(() => {
|
|
|
130235
130182
|
import_util_config_provider = __toESM(require_dist_cjs27(), 1);
|
|
130236
130183
|
SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase();
|
|
130237
130184
|
NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS = {
|
|
130238
|
-
environmentVariableSelector: (
|
|
130185
|
+
environmentVariableSelector: (env2) => import_util_config_provider.booleanSelector(env2, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME, import_util_config_provider.SelectorType.ENV),
|
|
130239
130186
|
configFileSelector: (profile) => import_util_config_provider.booleanSelector(profile, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME, import_util_config_provider.SelectorType.CONFIG),
|
|
130240
130187
|
default: false
|
|
130241
130188
|
};
|
|
@@ -131628,7 +131575,7 @@ var require_dist_cjs33 = __commonJS((exports) => {
|
|
|
131628
131575
|
var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
131629
131576
|
var DEFAULT_USE_DUALSTACK_ENDPOINT = false;
|
|
131630
131577
|
var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
131631
|
-
environmentVariableSelector: (
|
|
131578
|
+
environmentVariableSelector: (env2) => utilConfigProvider.booleanSelector(env2, ENV_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.ENV),
|
|
131632
131579
|
configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
|
|
131633
131580
|
default: false
|
|
131634
131581
|
};
|
|
@@ -131636,7 +131583,7 @@ var require_dist_cjs33 = __commonJS((exports) => {
|
|
|
131636
131583
|
var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
131637
131584
|
var DEFAULT_USE_FIPS_ENDPOINT = false;
|
|
131638
131585
|
var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
131639
|
-
environmentVariableSelector: (
|
|
131586
|
+
environmentVariableSelector: (env2) => utilConfigProvider.booleanSelector(env2, ENV_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.ENV),
|
|
131640
131587
|
configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
|
|
131641
131588
|
default: false
|
|
131642
131589
|
};
|
|
@@ -131677,7 +131624,7 @@ var require_dist_cjs33 = __commonJS((exports) => {
|
|
|
131677
131624
|
var REGION_ENV_NAME = "AWS_REGION";
|
|
131678
131625
|
var REGION_INI_NAME = "region";
|
|
131679
131626
|
var NODE_REGION_CONFIG_OPTIONS = {
|
|
131680
|
-
environmentVariableSelector: (
|
|
131627
|
+
environmentVariableSelector: (env2) => env2[REGION_ENV_NAME],
|
|
131681
131628
|
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
131682
131629
|
default: () => {
|
|
131683
131630
|
throw new Error("Region is missing");
|
|
@@ -132146,12 +132093,12 @@ var require_getEndpointUrlConfig = __commonJS((exports) => {
|
|
|
132146
132093
|
var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
|
132147
132094
|
var CONFIG_ENDPOINT_URL = "endpoint_url";
|
|
132148
132095
|
var getEndpointUrlConfig = (serviceId) => ({
|
|
132149
|
-
environmentVariableSelector: (
|
|
132096
|
+
environmentVariableSelector: (env2) => {
|
|
132150
132097
|
const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase());
|
|
132151
|
-
const serviceEndpointUrl =
|
|
132098
|
+
const serviceEndpointUrl = env2[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")];
|
|
132152
132099
|
if (serviceEndpointUrl)
|
|
132153
132100
|
return serviceEndpointUrl;
|
|
132154
|
-
const endpointUrl =
|
|
132101
|
+
const endpointUrl = env2[ENV_ENDPOINT_URL];
|
|
132155
132102
|
if (endpointUrl)
|
|
132156
132103
|
return endpointUrl;
|
|
132157
132104
|
return;
|
|
@@ -132925,8 +132872,8 @@ var require_dist_cjs40 = __commonJS((exports) => {
|
|
|
132925
132872
|
var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
|
|
132926
132873
|
var CONFIG_MAX_ATTEMPTS = "max_attempts";
|
|
132927
132874
|
var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
132928
|
-
environmentVariableSelector: (
|
|
132929
|
-
const value2 =
|
|
132875
|
+
environmentVariableSelector: (env2) => {
|
|
132876
|
+
const value2 = env2[ENV_MAX_ATTEMPTS];
|
|
132930
132877
|
if (!value2)
|
|
132931
132878
|
return;
|
|
132932
132879
|
const maxAttempt = parseInt(value2);
|
|
@@ -132967,7 +132914,7 @@ var require_dist_cjs40 = __commonJS((exports) => {
|
|
|
132967
132914
|
var ENV_RETRY_MODE = "AWS_RETRY_MODE";
|
|
132968
132915
|
var CONFIG_RETRY_MODE = "retry_mode";
|
|
132969
132916
|
var NODE_RETRY_MODE_CONFIG_OPTIONS = {
|
|
132970
|
-
environmentVariableSelector: (
|
|
132917
|
+
environmentVariableSelector: (env2) => env2[ENV_RETRY_MODE],
|
|
132971
132918
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],
|
|
132972
132919
|
default: utilRetry.DEFAULT_RETRY_MODE
|
|
132973
132920
|
};
|
|
@@ -138258,7 +138205,7 @@ var init_Endpoint = __esm(() => {
|
|
|
138258
138205
|
var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT", CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint", ENDPOINT_CONFIG_OPTIONS;
|
|
138259
138206
|
var init_EndpointConfigOptions = __esm(() => {
|
|
138260
138207
|
ENDPOINT_CONFIG_OPTIONS = {
|
|
138261
|
-
environmentVariableSelector: (
|
|
138208
|
+
environmentVariableSelector: (env2) => env2[ENV_ENDPOINT_NAME],
|
|
138262
138209
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME],
|
|
138263
138210
|
default: undefined
|
|
138264
138211
|
};
|
|
@@ -138278,7 +138225,7 @@ var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE", CONFIG_EN
|
|
|
138278
138225
|
var init_EndpointModeConfigOptions = __esm(() => {
|
|
138279
138226
|
init_EndpointMode();
|
|
138280
138227
|
ENDPOINT_MODE_CONFIG_OPTIONS = {
|
|
138281
|
-
environmentVariableSelector: (
|
|
138228
|
+
environmentVariableSelector: (env2) => env2[ENV_ENDPOINT_MODE_NAME],
|
|
138282
138229
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],
|
|
138283
138230
|
default: EndpointMode.IPv4
|
|
138284
138231
|
};
|
|
@@ -138361,8 +138308,8 @@ var import_node_config_provider2, import_property_provider5, IMDS_PATH = "/lates
|
|
|
138361
138308
|
let fallbackBlockedFromProfile = false;
|
|
138362
138309
|
let fallbackBlockedFromProcessEnv = false;
|
|
138363
138310
|
const configValue = await import_node_config_provider2.loadConfig({
|
|
138364
|
-
environmentVariableSelector: (
|
|
138365
|
-
const envValue =
|
|
138311
|
+
environmentVariableSelector: (env2) => {
|
|
138312
|
+
const envValue = env2[AWS_EC2_METADATA_V1_DISABLED];
|
|
138366
138313
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
138367
138314
|
if (envValue === undefined) {
|
|
138368
138315
|
throw new import_property_provider5.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -138937,8 +138884,8 @@ var require_package2 = __commonJS((exports, module) => {
|
|
|
138937
138884
|
|
|
138938
138885
|
// node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.972.8/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
|
|
138939
138886
|
var require_dist_cjs41 = __commonJS((exports) => {
|
|
138940
|
-
var
|
|
138941
|
-
var
|
|
138887
|
+
var os = __require("os");
|
|
138888
|
+
var process2 = __require("process");
|
|
138942
138889
|
var middlewareUserAgent = require_dist_cjs32();
|
|
138943
138890
|
var crtAvailability = {
|
|
138944
138891
|
isCrtAvailable: false
|
|
@@ -138954,9 +138901,9 @@ var require_dist_cjs41 = __commonJS((exports) => {
|
|
|
138954
138901
|
const sections = [
|
|
138955
138902
|
["aws-sdk-js", clientVersion],
|
|
138956
138903
|
["ua", "2.1"],
|
|
138957
|
-
[`os/${
|
|
138904
|
+
[`os/${os.platform()}`, os.release()],
|
|
138958
138905
|
["lang/js"],
|
|
138959
|
-
["md/nodejs", `${
|
|
138906
|
+
["md/nodejs", `${process2.versions.node}`]
|
|
138960
138907
|
];
|
|
138961
138908
|
const crtAvailable = isCrtAvailable();
|
|
138962
138909
|
if (crtAvailable) {
|
|
@@ -138965,8 +138912,8 @@ var require_dist_cjs41 = __commonJS((exports) => {
|
|
|
138965
138912
|
if (serviceId) {
|
|
138966
138913
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
138967
138914
|
}
|
|
138968
|
-
if (
|
|
138969
|
-
sections.push([`exec-env/${
|
|
138915
|
+
if (process2.env.AWS_EXECUTION_ENV) {
|
|
138916
|
+
sections.push([`exec-env/${process2.env.AWS_EXECUTION_ENV}`]);
|
|
138970
138917
|
}
|
|
138971
138918
|
const appId = await config?.userAgentAppId?.();
|
|
138972
138919
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -138978,7 +138925,7 @@ var require_dist_cjs41 = __commonJS((exports) => {
|
|
|
138978
138925
|
var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
138979
138926
|
var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
|
|
138980
138927
|
var NODE_APP_ID_CONFIG_OPTIONS = {
|
|
138981
|
-
environmentVariableSelector: (
|
|
138928
|
+
environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME],
|
|
138982
138929
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
138983
138930
|
default: middlewareUserAgent.DEFAULT_UA_APP_ID
|
|
138984
138931
|
};
|
|
@@ -139072,8 +139019,8 @@ var require_dist_cjs44 = __commonJS((exports) => {
|
|
|
139072
139019
|
var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
|
|
139073
139020
|
var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
|
|
139074
139021
|
var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
139075
|
-
environmentVariableSelector: (
|
|
139076
|
-
return
|
|
139022
|
+
environmentVariableSelector: (env2) => {
|
|
139023
|
+
return env2[AWS_DEFAULTS_MODE_ENV];
|
|
139077
139024
|
},
|
|
139078
139025
|
configFileSelector: (profile) => {
|
|
139079
139026
|
return profile[AWS_DEFAULTS_MODE_CONFIG];
|
|
@@ -145157,7 +145104,7 @@ var import_util_config_provider2, NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN
|
|
|
145157
145104
|
var init_NodeUseArnRegionConfigOptions = __esm(() => {
|
|
145158
145105
|
import_util_config_provider2 = __toESM(require_dist_cjs27(), 1);
|
|
145159
145106
|
NODE_USE_ARN_REGION_CONFIG_OPTIONS = {
|
|
145160
|
-
environmentVariableSelector: (
|
|
145107
|
+
environmentVariableSelector: (env2) => import_util_config_provider2.booleanSelector(env2, NODE_USE_ARN_REGION_ENV_NAME, import_util_config_provider2.SelectorType.ENV),
|
|
145161
145108
|
configFileSelector: (profile) => import_util_config_provider2.booleanSelector(profile, NODE_USE_ARN_REGION_INI_NAME, import_util_config_provider2.SelectorType.CONFIG),
|
|
145162
145109
|
default: undefined
|
|
145163
145110
|
};
|
|
@@ -174376,16 +174323,16 @@ class ProcessTransport {
|
|
|
174376
174323
|
return isRunningWithBun() ? "bun" : "node";
|
|
174377
174324
|
}
|
|
174378
174325
|
spawnLocalProcess(spawnOptions) {
|
|
174379
|
-
const { command, args, cwd: cwd2, env:
|
|
174380
|
-
const stderrMode =
|
|
174326
|
+
const { command, args, cwd: cwd2, env: env2, signal } = spawnOptions;
|
|
174327
|
+
const stderrMode = env2.DEBUG_CLAUDE_AGENT_SDK || this.options.stderr ? "pipe" : "ignore";
|
|
174381
174328
|
const childProcess = spawn4(command, args, {
|
|
174382
174329
|
cwd: cwd2,
|
|
174383
174330
|
stdio: ["pipe", "pipe", stderrMode],
|
|
174384
174331
|
signal,
|
|
174385
|
-
env:
|
|
174332
|
+
env: env2,
|
|
174386
174333
|
windowsHide: true
|
|
174387
174334
|
});
|
|
174388
|
-
if (
|
|
174335
|
+
if (env2.DEBUG_CLAUDE_AGENT_SDK || this.options.stderr) {
|
|
174389
174336
|
childProcess.stderr.on("data", (data) => {
|
|
174390
174337
|
const message = data.toString();
|
|
174391
174338
|
logForSdkDebugging(message);
|
|
@@ -174420,7 +174367,7 @@ class ProcessTransport {
|
|
|
174420
174367
|
executableArgs = [],
|
|
174421
174368
|
extraArgs = {},
|
|
174422
174369
|
pathToClaudeCodeExecutable,
|
|
174423
|
-
env:
|
|
174370
|
+
env: env2 = { ...process.env },
|
|
174424
174371
|
maxThinkingTokens,
|
|
174425
174372
|
maxTurns,
|
|
174426
174373
|
maxBudgetUsd,
|
|
@@ -174466,7 +174413,7 @@ class ProcessTransport {
|
|
|
174466
174413
|
if (jsonSchema) {
|
|
174467
174414
|
args.push("--json-schema", jsonStringify(jsonSchema));
|
|
174468
174415
|
}
|
|
174469
|
-
if (
|
|
174416
|
+
if (env2.DEBUG_CLAUDE_AGENT_SDK) {
|
|
174470
174417
|
args.push("--debug-to-stderr");
|
|
174471
174418
|
}
|
|
174472
174419
|
if (canUseTool) {
|
|
@@ -174551,14 +174498,14 @@ class ProcessTransport {
|
|
|
174551
174498
|
args.push(`--${flag}`, value2);
|
|
174552
174499
|
}
|
|
174553
174500
|
}
|
|
174554
|
-
if (!
|
|
174555
|
-
|
|
174501
|
+
if (!env2.CLAUDE_CODE_ENTRYPOINT) {
|
|
174502
|
+
env2.CLAUDE_CODE_ENTRYPOINT = "sdk-ts";
|
|
174556
174503
|
}
|
|
174557
|
-
delete
|
|
174558
|
-
if (
|
|
174559
|
-
|
|
174504
|
+
delete env2.NODE_OPTIONS;
|
|
174505
|
+
if (env2.DEBUG_CLAUDE_AGENT_SDK) {
|
|
174506
|
+
env2.DEBUG = "1";
|
|
174560
174507
|
} else {
|
|
174561
|
-
delete
|
|
174508
|
+
delete env2.DEBUG;
|
|
174562
174509
|
}
|
|
174563
174510
|
const isNative = isNativeBinary(pathToClaudeCodeExecutable);
|
|
174564
174511
|
const spawnCommand = isNative ? pathToClaudeCodeExecutable : executable;
|
|
@@ -174567,7 +174514,7 @@ class ProcessTransport {
|
|
|
174567
174514
|
command: spawnCommand,
|
|
174568
174515
|
args: spawnArgs,
|
|
174569
174516
|
cwd: cwd2,
|
|
174570
|
-
env:
|
|
174517
|
+
env: env2,
|
|
174571
174518
|
signal: this.abortController.signal
|
|
174572
174519
|
};
|
|
174573
174520
|
if (this.options.spawnClaudeCodeProcess) {
|
|
@@ -180305,7 +180252,7 @@ function query({
|
|
|
180305
180252
|
cwd: cwd2,
|
|
180306
180253
|
disallowedTools = [],
|
|
180307
180254
|
tools,
|
|
180308
|
-
env:
|
|
180255
|
+
env: env2,
|
|
180309
180256
|
executable = isRunningWithBun() ? "bun" : "node",
|
|
180310
180257
|
executableArgs = [],
|
|
180311
180258
|
extraArgs = {},
|
|
@@ -180331,7 +180278,7 @@ function query({
|
|
|
180331
180278
|
strictMcpConfig
|
|
180332
180279
|
} = rest;
|
|
180333
180280
|
const jsonSchema = outputFormat?.type === "json_schema" ? outputFormat.schema : undefined;
|
|
180334
|
-
let processEnv =
|
|
180281
|
+
let processEnv = env2;
|
|
180335
180282
|
if (!processEnv) {
|
|
180336
180283
|
processEnv = { ...process.env };
|
|
180337
180284
|
}
|
|
@@ -183944,20 +183891,20 @@ var init_sdk2 = __esm(() => {
|
|
|
183944
183891
|
var validate_1 = require_validate3();
|
|
183945
183892
|
|
|
183946
183893
|
class SchemaEnv {
|
|
183947
|
-
constructor(
|
|
183894
|
+
constructor(env2) {
|
|
183948
183895
|
var _a4;
|
|
183949
183896
|
this.refs = {};
|
|
183950
183897
|
this.dynamicAnchors = {};
|
|
183951
183898
|
let schema;
|
|
183952
|
-
if (typeof
|
|
183953
|
-
schema =
|
|
183954
|
-
this.schema =
|
|
183955
|
-
this.schemaId =
|
|
183956
|
-
this.root =
|
|
183957
|
-
this.baseId = (_a4 =
|
|
183958
|
-
this.schemaPath =
|
|
183959
|
-
this.localRefs =
|
|
183960
|
-
this.meta =
|
|
183899
|
+
if (typeof env2.schema == "object")
|
|
183900
|
+
schema = env2.schema;
|
|
183901
|
+
this.schema = env2.schema;
|
|
183902
|
+
this.schemaId = env2.schemaId;
|
|
183903
|
+
this.root = env2.root || this;
|
|
183904
|
+
this.baseId = (_a4 = env2.baseId) !== null && _a4 !== undefined ? _a4 : (0, resolve_1.normalizeId)(schema === null || schema === undefined ? undefined : schema[env2.schemaId || "$id"]);
|
|
183905
|
+
this.schemaPath = env2.schemaPath;
|
|
183906
|
+
this.localRefs = env2.localRefs;
|
|
183907
|
+
this.meta = env2.meta;
|
|
183961
183908
|
this.$async = schema === null || schema === undefined ? undefined : schema.$async;
|
|
183962
183909
|
this.refs = {};
|
|
183963
183910
|
}
|
|
@@ -184140,15 +184087,15 @@ var init_sdk2 = __esm(() => {
|
|
|
184140
184087
|
baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);
|
|
184141
184088
|
}
|
|
184142
184089
|
}
|
|
184143
|
-
let
|
|
184090
|
+
let env2;
|
|
184144
184091
|
if (typeof schema != "boolean" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) {
|
|
184145
184092
|
const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref);
|
|
184146
|
-
|
|
184093
|
+
env2 = resolveSchema.call(this, root2, $ref);
|
|
184147
184094
|
}
|
|
184148
184095
|
const { schemaId } = this.opts;
|
|
184149
|
-
|
|
184150
|
-
if (
|
|
184151
|
-
return
|
|
184096
|
+
env2 = env2 || new SchemaEnv({ schema, schemaId, root: root2, baseId });
|
|
184097
|
+
if (env2.schema !== env2.root.schema)
|
|
184098
|
+
return env2;
|
|
184152
184099
|
return;
|
|
184153
184100
|
}
|
|
184154
184101
|
});
|
|
@@ -185443,8 +185390,8 @@ var init_sdk2 = __esm(() => {
|
|
|
185443
185390
|
schemaType: "string",
|
|
185444
185391
|
code(cxt) {
|
|
185445
185392
|
const { gen, schema: $ref, it } = cxt;
|
|
185446
|
-
const { baseId, schemaEnv:
|
|
185447
|
-
const { root: root2 } =
|
|
185393
|
+
const { baseId, schemaEnv: env2, validateName, opts, self: self2 } = it;
|
|
185394
|
+
const { root: root2 } = env2;
|
|
185448
185395
|
if (($ref === "#" || $ref === "#/") && baseId === root2.baseId)
|
|
185449
185396
|
return callRootRef();
|
|
185450
185397
|
const schOrEnv = compile_1.resolveRef.call(self2, root2, baseId, $ref);
|
|
@@ -185454,8 +185401,8 @@ var init_sdk2 = __esm(() => {
|
|
|
185454
185401
|
return callValidate(schOrEnv);
|
|
185455
185402
|
return inlineRefSchema(schOrEnv);
|
|
185456
185403
|
function callRootRef() {
|
|
185457
|
-
if (
|
|
185458
|
-
return callRef(cxt, validateName,
|
|
185404
|
+
if (env2 === root2)
|
|
185405
|
+
return callRef(cxt, validateName, env2, env2.$async);
|
|
185459
185406
|
const rootName = gen.scopeValue("root", { ref: root2 });
|
|
185460
185407
|
return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root2, root2.$async);
|
|
185461
185408
|
}
|
|
@@ -185485,14 +185432,14 @@ var init_sdk2 = __esm(() => {
|
|
|
185485
185432
|
exports.getValidate = getValidate;
|
|
185486
185433
|
function callRef(cxt, v5, sch, $async) {
|
|
185487
185434
|
const { gen, it } = cxt;
|
|
185488
|
-
const { allErrors, schemaEnv:
|
|
185435
|
+
const { allErrors, schemaEnv: env2, opts } = it;
|
|
185489
185436
|
const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil;
|
|
185490
185437
|
if ($async)
|
|
185491
185438
|
callAsyncRef();
|
|
185492
185439
|
else
|
|
185493
185440
|
callSyncRef();
|
|
185494
185441
|
function callAsyncRef() {
|
|
185495
|
-
if (!
|
|
185442
|
+
if (!env2.$async)
|
|
185496
185443
|
throw new Error("async schema referenced by sync schema");
|
|
185497
185444
|
const valid = gen.let("valid");
|
|
185498
185445
|
gen.try(() => {
|
|
@@ -194985,7 +194932,7 @@ __export(exports_dist, {
|
|
|
194985
194932
|
Codex: () => Codex
|
|
194986
194933
|
});
|
|
194987
194934
|
import { promises as fs4 } from "fs";
|
|
194988
|
-
import
|
|
194935
|
+
import os from "os";
|
|
194989
194936
|
import path4 from "path";
|
|
194990
194937
|
import { spawn as spawn5 } from "child_process";
|
|
194991
194938
|
import path22 from "path";
|
|
@@ -194998,7 +194945,7 @@ async function createOutputSchemaFile(schema) {
|
|
|
194998
194945
|
if (!isJsonObject(schema)) {
|
|
194999
194946
|
throw new Error("outputSchema must be a plain JSON object");
|
|
195000
194947
|
}
|
|
195001
|
-
const schemaDir = await fs4.mkdtemp(path4.join(
|
|
194948
|
+
const schemaDir = await fs4.mkdtemp(path4.join(os.tmpdir(), "codex-output-schema-"));
|
|
195002
194949
|
const schemaPath = path4.join(schemaDir, "schema.json");
|
|
195003
194950
|
const cleanup = async () => {
|
|
195004
194951
|
try {
|
|
@@ -195246,9 +195193,9 @@ var Thread = class {
|
|
|
195246
195193
|
executablePath;
|
|
195247
195194
|
envOverride;
|
|
195248
195195
|
configOverrides;
|
|
195249
|
-
constructor(executablePath = null,
|
|
195196
|
+
constructor(executablePath = null, env2, configOverrides) {
|
|
195250
195197
|
this.executablePath = executablePath || findCodexPath();
|
|
195251
|
-
this.envOverride =
|
|
195198
|
+
this.envOverride = env2;
|
|
195252
195199
|
this.configOverrides = configOverrides;
|
|
195253
195200
|
}
|
|
195254
195201
|
async* run(args) {
|
|
@@ -195302,27 +195249,27 @@ var Thread = class {
|
|
|
195302
195249
|
commandArgs.push("--image", image2);
|
|
195303
195250
|
}
|
|
195304
195251
|
}
|
|
195305
|
-
const
|
|
195252
|
+
const env2 = {};
|
|
195306
195253
|
if (this.envOverride) {
|
|
195307
|
-
Object.assign(
|
|
195254
|
+
Object.assign(env2, this.envOverride);
|
|
195308
195255
|
} else {
|
|
195309
195256
|
for (const [key, value2] of Object.entries(process.env)) {
|
|
195310
195257
|
if (value2 !== undefined) {
|
|
195311
|
-
|
|
195258
|
+
env2[key] = value2;
|
|
195312
195259
|
}
|
|
195313
195260
|
}
|
|
195314
195261
|
}
|
|
195315
|
-
if (!
|
|
195316
|
-
|
|
195262
|
+
if (!env2[INTERNAL_ORIGINATOR_ENV]) {
|
|
195263
|
+
env2[INTERNAL_ORIGINATOR_ENV] = TYPESCRIPT_SDK_ORIGINATOR;
|
|
195317
195264
|
}
|
|
195318
195265
|
if (args.baseUrl) {
|
|
195319
|
-
|
|
195266
|
+
env2.OPENAI_BASE_URL = args.baseUrl;
|
|
195320
195267
|
}
|
|
195321
195268
|
if (args.apiKey) {
|
|
195322
|
-
|
|
195269
|
+
env2.CODEX_API_KEY = args.apiKey;
|
|
195323
195270
|
}
|
|
195324
195271
|
const child = spawn5(this.executablePath, commandArgs, {
|
|
195325
|
-
env:
|
|
195272
|
+
env: env2,
|
|
195326
195273
|
signal: args.signal
|
|
195327
195274
|
});
|
|
195328
195275
|
let spawnError = null;
|
|
@@ -195377,8 +195324,8 @@ var Thread = class {
|
|
|
195377
195324
|
exec;
|
|
195378
195325
|
options;
|
|
195379
195326
|
constructor(options2 = {}) {
|
|
195380
|
-
const { codexPathOverride, env:
|
|
195381
|
-
this.exec = new CodexExec(codexPathOverride,
|
|
195327
|
+
const { codexPathOverride, env: env2, config: config2 } = options2;
|
|
195328
|
+
this.exec = new CodexExec(codexPathOverride, env2, config2);
|
|
195382
195329
|
this.options = options2;
|
|
195383
195330
|
}
|
|
195384
195331
|
startThread(options2 = {}) {
|
|
@@ -217903,8 +217850,8 @@ __export(exports_base, {
|
|
|
217903
217850
|
beep: () => beep,
|
|
217904
217851
|
ConEmu: () => ConEmu
|
|
217905
217852
|
});
|
|
217906
|
-
import
|
|
217907
|
-
import
|
|
217853
|
+
import process2 from "process";
|
|
217854
|
+
import os2 from "os";
|
|
217908
217855
|
var ESC = "\x1B[", OSC = "\x1B]", BEL = "\x07", SEP = ";", isTerminalApp, isWindows2, isTmux, cwdFunction, wrapOsc = (sequence) => {
|
|
217909
217856
|
if (isTmux) {
|
|
217910
217857
|
return "\x1BPtmux;" + sequence.replaceAll("\x1B", "\x1B\x1B") + "\x1B\\";
|
|
@@ -217947,7 +217894,7 @@ var ESC = "\x1B[", OSC = "\x1B]", BEL = "\x07", SEP = ";", isTerminalApp, isWind
|
|
|
217947
217894
|
if (isBrowser || !isWindows2) {
|
|
217948
217895
|
return false;
|
|
217949
217896
|
}
|
|
217950
|
-
const parts =
|
|
217897
|
+
const parts = os2.release().split(".");
|
|
217951
217898
|
const major = Number(parts[0]);
|
|
217952
217899
|
const build = Number(parts[2] ?? 0);
|
|
217953
217900
|
if (major < 10) {
|
|
@@ -217977,12 +217924,12 @@ var ESC = "\x1B[", OSC = "\x1B]", BEL = "\x07", SEP = ";", isTerminalApp, isWind
|
|
|
217977
217924
|
}, iTerm, ConEmu, setCwd = (cwd2 = cwdFunction()) => iTerm.setCwd(cwd2) + ConEmu.setCwd(cwd2);
|
|
217978
217925
|
var init_base = __esm(() => {
|
|
217979
217926
|
init_environment();
|
|
217980
|
-
isTerminalApp = !isBrowser &&
|
|
217981
|
-
isWindows2 = !isBrowser &&
|
|
217982
|
-
isTmux = !isBrowser && (
|
|
217927
|
+
isTerminalApp = !isBrowser && process2.env.TERM_PROGRAM === "Apple_Terminal";
|
|
217928
|
+
isWindows2 = !isBrowser && process2.platform === "win32";
|
|
217929
|
+
isTmux = !isBrowser && (process2.env.TERM?.startsWith("screen") || process2.env.TERM?.startsWith("tmux") || process2.env.TMUX !== undefined);
|
|
217983
217930
|
cwdFunction = isBrowser ? () => {
|
|
217984
217931
|
throw new Error("`process.cwd()` only works in Node.js, not the browser.");
|
|
217985
|
-
} :
|
|
217932
|
+
} : process2.cwd;
|
|
217986
217933
|
cursorLeft = ESC + "G";
|
|
217987
217934
|
cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
217988
217935
|
cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
@@ -218037,8 +217984,8 @@ var init_ansi_escapes = __esm(() => {
|
|
|
218037
217984
|
});
|
|
218038
217985
|
|
|
218039
217986
|
// node_modules/.pnpm/is-in-ci@2.0.0/node_modules/is-in-ci/index.js
|
|
218040
|
-
import { env as
|
|
218041
|
-
var check2 = (key) => (key in
|
|
217987
|
+
import { env as env2 } from "process";
|
|
217988
|
+
var check2 = (key) => (key in env2) && env2[key] !== "0" && env2[key] !== "false", isInCi, is_in_ci_default;
|
|
218042
217989
|
var init_is_in_ci = __esm(() => {
|
|
218043
217990
|
isInCi = check2("CI") || check2("CONTINUOUS_INTEGRATION");
|
|
218044
217991
|
is_in_ci_default = isInCi;
|
|
@@ -218096,26 +218043,26 @@ var require_signals = __commonJS((exports, module) => {
|
|
|
218096
218043
|
|
|
218097
218044
|
// node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
218098
218045
|
var require_signal_exit = __commonJS((exports, module) => {
|
|
218099
|
-
var
|
|
218100
|
-
var processOk = function(
|
|
218101
|
-
return
|
|
218046
|
+
var process3 = global.process;
|
|
218047
|
+
var processOk = function(process4) {
|
|
218048
|
+
return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
|
|
218102
218049
|
};
|
|
218103
|
-
if (!processOk(
|
|
218050
|
+
if (!processOk(process3)) {
|
|
218104
218051
|
module.exports = function() {
|
|
218105
218052
|
return function() {};
|
|
218106
218053
|
};
|
|
218107
218054
|
} else {
|
|
218108
218055
|
assert3 = __require("assert");
|
|
218109
218056
|
signals = require_signals();
|
|
218110
|
-
isWin = /^win/i.test(
|
|
218057
|
+
isWin = /^win/i.test(process3.platform);
|
|
218111
218058
|
EE = __require("events");
|
|
218112
218059
|
if (typeof EE !== "function") {
|
|
218113
218060
|
EE = EE.EventEmitter;
|
|
218114
218061
|
}
|
|
218115
|
-
if (
|
|
218116
|
-
emitter =
|
|
218062
|
+
if (process3.__signal_exit_emitter__) {
|
|
218063
|
+
emitter = process3.__signal_exit_emitter__;
|
|
218117
218064
|
} else {
|
|
218118
|
-
emitter =
|
|
218065
|
+
emitter = process3.__signal_exit_emitter__ = new EE;
|
|
218119
218066
|
emitter.count = 0;
|
|
218120
218067
|
emitter.emitted = {};
|
|
218121
218068
|
}
|
|
@@ -218151,11 +218098,11 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
218151
218098
|
loaded = false;
|
|
218152
218099
|
signals.forEach(function(sig) {
|
|
218153
218100
|
try {
|
|
218154
|
-
|
|
218101
|
+
process3.removeListener(sig, sigListeners[sig]);
|
|
218155
218102
|
} catch (er) {}
|
|
218156
218103
|
});
|
|
218157
|
-
|
|
218158
|
-
|
|
218104
|
+
process3.emit = originalProcessEmit;
|
|
218105
|
+
process3.reallyExit = originalProcessReallyExit;
|
|
218159
218106
|
emitter.count -= 1;
|
|
218160
218107
|
};
|
|
218161
218108
|
module.exports.unload = unload;
|
|
@@ -218172,7 +218119,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
218172
218119
|
if (!processOk(global.process)) {
|
|
218173
218120
|
return;
|
|
218174
218121
|
}
|
|
218175
|
-
var listeners =
|
|
218122
|
+
var listeners = process3.listeners(sig);
|
|
218176
218123
|
if (listeners.length === emitter.count) {
|
|
218177
218124
|
unload();
|
|
218178
218125
|
emit("exit", null, sig);
|
|
@@ -218180,7 +218127,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
218180
218127
|
if (isWin && sig === "SIGHUP") {
|
|
218181
218128
|
sig = "SIGINT";
|
|
218182
218129
|
}
|
|
218183
|
-
|
|
218130
|
+
process3.kill(process3.pid, sig);
|
|
218184
218131
|
}
|
|
218185
218132
|
};
|
|
218186
218133
|
});
|
|
@@ -218196,35 +218143,35 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
218196
218143
|
emitter.count += 1;
|
|
218197
218144
|
signals = signals.filter(function(sig) {
|
|
218198
218145
|
try {
|
|
218199
|
-
|
|
218146
|
+
process3.on(sig, sigListeners[sig]);
|
|
218200
218147
|
return true;
|
|
218201
218148
|
} catch (er) {
|
|
218202
218149
|
return false;
|
|
218203
218150
|
}
|
|
218204
218151
|
});
|
|
218205
|
-
|
|
218206
|
-
|
|
218152
|
+
process3.emit = processEmit;
|
|
218153
|
+
process3.reallyExit = processReallyExit;
|
|
218207
218154
|
};
|
|
218208
218155
|
module.exports.load = load;
|
|
218209
|
-
originalProcessReallyExit =
|
|
218156
|
+
originalProcessReallyExit = process3.reallyExit;
|
|
218210
218157
|
processReallyExit = function processReallyExit(code3) {
|
|
218211
218158
|
if (!processOk(global.process)) {
|
|
218212
218159
|
return;
|
|
218213
218160
|
}
|
|
218214
|
-
|
|
218215
|
-
emit("exit",
|
|
218216
|
-
emit("afterexit",
|
|
218217
|
-
originalProcessReallyExit.call(
|
|
218161
|
+
process3.exitCode = code3 || 0;
|
|
218162
|
+
emit("exit", process3.exitCode, null);
|
|
218163
|
+
emit("afterexit", process3.exitCode, null);
|
|
218164
|
+
originalProcessReallyExit.call(process3, process3.exitCode);
|
|
218218
218165
|
};
|
|
218219
|
-
originalProcessEmit =
|
|
218166
|
+
originalProcessEmit = process3.emit;
|
|
218220
218167
|
processEmit = function processEmit(ev, arg) {
|
|
218221
218168
|
if (ev === "exit" && processOk(global.process)) {
|
|
218222
218169
|
if (arg !== undefined) {
|
|
218223
|
-
|
|
218170
|
+
process3.exitCode = arg;
|
|
218224
218171
|
}
|
|
218225
218172
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
218226
|
-
emit("exit",
|
|
218227
|
-
emit("afterexit",
|
|
218173
|
+
emit("exit", process3.exitCode, null);
|
|
218174
|
+
emit("afterexit", process3.exitCode, null);
|
|
218228
218175
|
return ret;
|
|
218229
218176
|
} else {
|
|
218230
218177
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -220380,39 +220327,39 @@ var init_wrap_ansi = __esm(() => {
|
|
|
220380
220327
|
});
|
|
220381
220328
|
|
|
220382
220329
|
// node_modules/.pnpm/terminal-size@4.0.1/node_modules/terminal-size/index.js
|
|
220383
|
-
import
|
|
220330
|
+
import process3 from "process";
|
|
220384
220331
|
import { execFileSync } from "child_process";
|
|
220385
220332
|
import fs5 from "fs";
|
|
220386
|
-
import
|
|
220333
|
+
import tty from "tty";
|
|
220387
220334
|
function terminalSize() {
|
|
220388
|
-
const { env:
|
|
220335
|
+
const { env: env3, stdout, stderr } = process3;
|
|
220389
220336
|
if (stdout?.columns && stdout?.rows) {
|
|
220390
220337
|
return create2(stdout.columns, stdout.rows);
|
|
220391
220338
|
}
|
|
220392
220339
|
if (stderr?.columns && stderr?.rows) {
|
|
220393
220340
|
return create2(stderr.columns, stderr.rows);
|
|
220394
220341
|
}
|
|
220395
|
-
if (
|
|
220396
|
-
return create2(
|
|
220342
|
+
if (env3.COLUMNS && env3.LINES) {
|
|
220343
|
+
return create2(env3.COLUMNS, env3.LINES);
|
|
220397
220344
|
}
|
|
220398
220345
|
const fallback = {
|
|
220399
220346
|
columns: defaultColumns,
|
|
220400
220347
|
rows: defaultRows
|
|
220401
220348
|
};
|
|
220402
|
-
if (
|
|
220349
|
+
if (process3.platform === "win32") {
|
|
220403
220350
|
return tput() ?? fallback;
|
|
220404
220351
|
}
|
|
220405
|
-
if (
|
|
220352
|
+
if (process3.platform === "darwin") {
|
|
220406
220353
|
return devTty() ?? tput() ?? fallback;
|
|
220407
220354
|
}
|
|
220408
220355
|
return devTty() ?? tput() ?? resize() ?? fallback;
|
|
220409
220356
|
}
|
|
220410
|
-
var defaultColumns = 80, defaultRows = 24, exec4 = (command, arguments_, { shell, env:
|
|
220357
|
+
var defaultColumns = 80, defaultRows = 24, exec4 = (command, arguments_, { shell, env: env3 } = {}) => execFileSync(command, arguments_, {
|
|
220411
220358
|
encoding: "utf8",
|
|
220412
220359
|
stdio: ["ignore", "pipe", "ignore"],
|
|
220413
220360
|
timeout: 500,
|
|
220414
220361
|
shell,
|
|
220415
|
-
env:
|
|
220362
|
+
env: env3
|
|
220416
220363
|
}).trim(), create2 = (columns, rows) => ({
|
|
220417
220364
|
columns: Number.parseInt(columns, 10),
|
|
220418
220365
|
rows: Number.parseInt(rows, 10)
|
|
@@ -220426,7 +220373,7 @@ var defaultColumns = 80, defaultRows = 24, exec4 = (command, arguments_, { shell
|
|
|
220426
220373
|
}
|
|
220427
220374
|
return { columns, rows };
|
|
220428
220375
|
}, isForegroundProcess = () => {
|
|
220429
|
-
if (
|
|
220376
|
+
if (process3.platform !== "linux") {
|
|
220430
220377
|
return true;
|
|
220431
220378
|
}
|
|
220432
220379
|
try {
|
|
@@ -220450,14 +220397,14 @@ var defaultColumns = 80, defaultRows = 24, exec4 = (command, arguments_, { shell
|
|
|
220450
220397
|
}
|
|
220451
220398
|
}, devTty = () => {
|
|
220452
220399
|
try {
|
|
220453
|
-
const flags =
|
|
220454
|
-
const { columns, rows } =
|
|
220400
|
+
const flags = process3.platform === "darwin" ? fs5.constants.O_EVTONLY | fs5.constants.O_NONBLOCK : fs5.constants.O_NONBLOCK;
|
|
220401
|
+
const { columns, rows } = tty.WriteStream(fs5.openSync("/dev/tty", flags));
|
|
220455
220402
|
return { columns, rows };
|
|
220456
220403
|
} catch {}
|
|
220457
220404
|
}, tput = () => {
|
|
220458
220405
|
try {
|
|
220459
|
-
const columns = exec4("tput", ["cols"], { env: { TERM: "dumb", ...
|
|
220460
|
-
const rows = exec4("tput", ["lines"], { env: { TERM: "dumb", ...
|
|
220406
|
+
const columns = exec4("tput", ["cols"], { env: { TERM: "dumb", ...process3.env } });
|
|
220407
|
+
const rows = exec4("tput", ["lines"], { env: { TERM: "dumb", ...process3.env } });
|
|
220461
220408
|
if (columns && rows) {
|
|
220462
220409
|
return createIfNotDefault(columns, rows);
|
|
220463
220410
|
}
|
|
@@ -221872,7 +221819,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
221872
221819
|
if (typeof entry.name === "string") {
|
|
221873
221820
|
var JSCompiler_temp_const = info;
|
|
221874
221821
|
a: {
|
|
221875
|
-
var { name, env:
|
|
221822
|
+
var { name, env: env3, debugLocation: location } = entry;
|
|
221876
221823
|
if (location != null) {
|
|
221877
221824
|
var childStack = formatOwnerStack(location), idx = childStack.lastIndexOf(`
|
|
221878
221825
|
`), lastLine = idx === -1 ? childStack : childStack.slice(idx + 1);
|
|
@@ -221882,7 +221829,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
221882
221829
|
break a;
|
|
221883
221830
|
}
|
|
221884
221831
|
}
|
|
221885
|
-
JSCompiler_inline_result = describeBuiltInComponentFrame(name + (
|
|
221832
|
+
JSCompiler_inline_result = describeBuiltInComponentFrame(name + (env3 ? " [" + env3 + "]" : ""));
|
|
221886
221833
|
}
|
|
221887
221834
|
info = JSCompiler_temp_const + JSCompiler_inline_result;
|
|
221888
221835
|
}
|
|
@@ -232025,7 +231972,7 @@ var init_devtools = __esm(() => {
|
|
|
232025
231972
|
});
|
|
232026
231973
|
|
|
232027
231974
|
// node_modules/.pnpm/ink@6.7.0_@types+react@19.2.14_react-devtools-core@7.0.1_react@19.2.4/node_modules/ink/build/reconciler.js
|
|
232028
|
-
import
|
|
231975
|
+
import process4 from "process";
|
|
232029
231976
|
var import_react_reconciler, import_constants20, Scheduler, import_react, diff = (before, after) => {
|
|
232030
231977
|
if (before === after) {
|
|
232031
231978
|
return;
|
|
@@ -232065,7 +232012,7 @@ var init_reconciler = __esm(async () => {
|
|
|
232065
232012
|
import_constants20 = __toESM(require_constants4(), 1);
|
|
232066
232013
|
Scheduler = __toESM(require_scheduler(), 1);
|
|
232067
232014
|
import_react = __toESM(require_react(), 1);
|
|
232068
|
-
if (
|
|
232015
|
+
if (process4.env["DEV"] === "true") {
|
|
232069
232016
|
try {
|
|
232070
232017
|
await Promise.resolve().then(() => (init_devtools(), exports_devtools));
|
|
232071
232018
|
} catch (error4) {
|
|
@@ -232578,27 +232525,27 @@ var init_ansi_styles2 = __esm(() => {
|
|
|
232578
232525
|
});
|
|
232579
232526
|
|
|
232580
232527
|
// node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
232581
|
-
import
|
|
232582
|
-
import
|
|
232583
|
-
import
|
|
232584
|
-
function
|
|
232528
|
+
import process5 from "process";
|
|
232529
|
+
import os3 from "os";
|
|
232530
|
+
import tty2 from "tty";
|
|
232531
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process5.argv) {
|
|
232585
232532
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
232586
232533
|
const position2 = argv.indexOf(prefix + flag);
|
|
232587
232534
|
const terminatorPosition = argv.indexOf("--");
|
|
232588
232535
|
return position2 !== -1 && (terminatorPosition === -1 || position2 < terminatorPosition);
|
|
232589
232536
|
}
|
|
232590
|
-
function
|
|
232591
|
-
if ("FORCE_COLOR" in
|
|
232592
|
-
if (
|
|
232537
|
+
function envForceColor() {
|
|
232538
|
+
if ("FORCE_COLOR" in env3) {
|
|
232539
|
+
if (env3.FORCE_COLOR === "true") {
|
|
232593
232540
|
return 1;
|
|
232594
232541
|
}
|
|
232595
|
-
if (
|
|
232542
|
+
if (env3.FORCE_COLOR === "false") {
|
|
232596
232543
|
return 0;
|
|
232597
232544
|
}
|
|
232598
|
-
return
|
|
232545
|
+
return env3.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
|
|
232599
232546
|
}
|
|
232600
232547
|
}
|
|
232601
|
-
function
|
|
232548
|
+
function translateLevel(level) {
|
|
232602
232549
|
if (level === 0) {
|
|
232603
232550
|
return false;
|
|
232604
232551
|
}
|
|
@@ -232609,67 +232556,67 @@ function translateLevel2(level) {
|
|
|
232609
232556
|
has16m: level >= 3
|
|
232610
232557
|
};
|
|
232611
232558
|
}
|
|
232612
|
-
function
|
|
232613
|
-
const noFlagForceColor =
|
|
232559
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
232560
|
+
const noFlagForceColor = envForceColor();
|
|
232614
232561
|
if (noFlagForceColor !== undefined) {
|
|
232615
|
-
|
|
232562
|
+
flagForceColor = noFlagForceColor;
|
|
232616
232563
|
}
|
|
232617
|
-
const forceColor = sniffFlags ?
|
|
232564
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
232618
232565
|
if (forceColor === 0) {
|
|
232619
232566
|
return 0;
|
|
232620
232567
|
}
|
|
232621
232568
|
if (sniffFlags) {
|
|
232622
|
-
if (
|
|
232569
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
232623
232570
|
return 3;
|
|
232624
232571
|
}
|
|
232625
|
-
if (
|
|
232572
|
+
if (hasFlag("color=256")) {
|
|
232626
232573
|
return 2;
|
|
232627
232574
|
}
|
|
232628
232575
|
}
|
|
232629
|
-
if ("TF_BUILD" in
|
|
232576
|
+
if ("TF_BUILD" in env3 && "AGENT_NAME" in env3) {
|
|
232630
232577
|
return 1;
|
|
232631
232578
|
}
|
|
232632
232579
|
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
232633
232580
|
return 0;
|
|
232634
232581
|
}
|
|
232635
232582
|
const min = forceColor || 0;
|
|
232636
|
-
if (
|
|
232583
|
+
if (env3.TERM === "dumb") {
|
|
232637
232584
|
return min;
|
|
232638
232585
|
}
|
|
232639
|
-
if (
|
|
232640
|
-
const osRelease =
|
|
232586
|
+
if (process5.platform === "win32") {
|
|
232587
|
+
const osRelease = os3.release().split(".");
|
|
232641
232588
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
232642
232589
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
232643
232590
|
}
|
|
232644
232591
|
return 1;
|
|
232645
232592
|
}
|
|
232646
|
-
if ("CI" in
|
|
232647
|
-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in
|
|
232593
|
+
if ("CI" in env3) {
|
|
232594
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env3))) {
|
|
232648
232595
|
return 3;
|
|
232649
232596
|
}
|
|
232650
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => (sign2 in
|
|
232597
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => (sign2 in env3)) || env3.CI_NAME === "codeship") {
|
|
232651
232598
|
return 1;
|
|
232652
232599
|
}
|
|
232653
232600
|
return min;
|
|
232654
232601
|
}
|
|
232655
|
-
if ("TEAMCITY_VERSION" in
|
|
232656
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
232602
|
+
if ("TEAMCITY_VERSION" in env3) {
|
|
232603
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
232657
232604
|
}
|
|
232658
|
-
if (
|
|
232605
|
+
if (env3.COLORTERM === "truecolor") {
|
|
232659
232606
|
return 3;
|
|
232660
232607
|
}
|
|
232661
|
-
if (
|
|
232608
|
+
if (env3.TERM === "xterm-kitty") {
|
|
232662
232609
|
return 3;
|
|
232663
232610
|
}
|
|
232664
|
-
if (
|
|
232611
|
+
if (env3.TERM === "xterm-ghostty") {
|
|
232665
232612
|
return 3;
|
|
232666
232613
|
}
|
|
232667
|
-
if (
|
|
232614
|
+
if (env3.TERM === "wezterm") {
|
|
232668
232615
|
return 3;
|
|
232669
232616
|
}
|
|
232670
|
-
if ("TERM_PROGRAM" in
|
|
232671
|
-
const version3 = Number.parseInt((
|
|
232672
|
-
switch (
|
|
232617
|
+
if ("TERM_PROGRAM" in env3) {
|
|
232618
|
+
const version3 = Number.parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
232619
|
+
switch (env3.TERM_PROGRAM) {
|
|
232673
232620
|
case "iTerm.app": {
|
|
232674
232621
|
return version3 >= 3 ? 3 : 2;
|
|
232675
232622
|
}
|
|
@@ -232678,37 +232625,37 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
232678
232625
|
}
|
|
232679
232626
|
}
|
|
232680
232627
|
}
|
|
232681
|
-
if (/-256(color)?$/i.test(
|
|
232628
|
+
if (/-256(color)?$/i.test(env3.TERM)) {
|
|
232682
232629
|
return 2;
|
|
232683
232630
|
}
|
|
232684
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
232631
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
|
|
232685
232632
|
return 1;
|
|
232686
232633
|
}
|
|
232687
|
-
if ("COLORTERM" in
|
|
232634
|
+
if ("COLORTERM" in env3) {
|
|
232688
232635
|
return 1;
|
|
232689
232636
|
}
|
|
232690
232637
|
return min;
|
|
232691
232638
|
}
|
|
232692
|
-
function
|
|
232693
|
-
const level =
|
|
232639
|
+
function createSupportsColor(stream, options2 = {}) {
|
|
232640
|
+
const level = _supportsColor(stream, {
|
|
232694
232641
|
streamIsTTY: stream && stream.isTTY,
|
|
232695
232642
|
...options2
|
|
232696
232643
|
});
|
|
232697
|
-
return
|
|
232644
|
+
return translateLevel(level);
|
|
232698
232645
|
}
|
|
232699
|
-
var
|
|
232700
|
-
var
|
|
232701
|
-
({ env:
|
|
232702
|
-
if (
|
|
232703
|
-
|
|
232704
|
-
} else if (
|
|
232705
|
-
|
|
232646
|
+
var env3, flagForceColor, supportsColor, supports_color_default;
|
|
232647
|
+
var init_supports_color = __esm(() => {
|
|
232648
|
+
({ env: env3 } = process5);
|
|
232649
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
232650
|
+
flagForceColor = 0;
|
|
232651
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
232652
|
+
flagForceColor = 1;
|
|
232706
232653
|
}
|
|
232707
|
-
|
|
232708
|
-
stdout:
|
|
232709
|
-
stderr:
|
|
232654
|
+
supportsColor = {
|
|
232655
|
+
stdout: createSupportsColor({ isTTY: tty2.isatty(1) }),
|
|
232656
|
+
stderr: createSupportsColor({ isTTY: tty2.isatty(2) })
|
|
232710
232657
|
};
|
|
232711
|
-
|
|
232658
|
+
supports_color_default = supportsColor;
|
|
232712
232659
|
});
|
|
232713
232660
|
|
|
232714
232661
|
// node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
@@ -232821,8 +232768,8 @@ var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles4
|
|
|
232821
232768
|
}, chalk, chalkStderr, source_default;
|
|
232822
232769
|
var init_source = __esm(() => {
|
|
232823
232770
|
init_ansi_styles2();
|
|
232824
|
-
|
|
232825
|
-
({ stdout: stdoutColor, stderr: stderrColor } =
|
|
232771
|
+
init_supports_color();
|
|
232772
|
+
({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default);
|
|
232826
232773
|
GENERATOR = Symbol("GENERATOR");
|
|
232827
232774
|
STYLER = Symbol("STYLER");
|
|
232828
232775
|
IS_EMPTY = Symbol("IS_EMPTY");
|
|
@@ -233679,33 +233626,33 @@ var require_onetime = __commonJS((exports, module) => {
|
|
|
233679
233626
|
});
|
|
233680
233627
|
|
|
233681
233628
|
// node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
|
|
233682
|
-
import
|
|
233629
|
+
import process6 from "process";
|
|
233683
233630
|
var import_onetime, import_signal_exit, restoreCursor, restore_cursor_default;
|
|
233684
233631
|
var init_restore_cursor = __esm(() => {
|
|
233685
233632
|
import_onetime = __toESM(require_onetime(), 1);
|
|
233686
233633
|
import_signal_exit = __toESM(require_signal_exit(), 1);
|
|
233687
233634
|
restoreCursor = import_onetime.default(() => {
|
|
233688
233635
|
import_signal_exit.default(() => {
|
|
233689
|
-
|
|
233636
|
+
process6.stderr.write("\x1B[?25h");
|
|
233690
233637
|
}, { alwaysLast: true });
|
|
233691
233638
|
});
|
|
233692
233639
|
restore_cursor_default = restoreCursor;
|
|
233693
233640
|
});
|
|
233694
233641
|
|
|
233695
233642
|
// node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
|
|
233696
|
-
import
|
|
233643
|
+
import process7 from "process";
|
|
233697
233644
|
var isHidden = false, cliCursor, cli_cursor_default;
|
|
233698
233645
|
var init_cli_cursor = __esm(() => {
|
|
233699
233646
|
init_restore_cursor();
|
|
233700
233647
|
cliCursor = {};
|
|
233701
|
-
cliCursor.show = (writableStream =
|
|
233648
|
+
cliCursor.show = (writableStream = process7.stderr) => {
|
|
233702
233649
|
if (!writableStream.isTTY) {
|
|
233703
233650
|
return;
|
|
233704
233651
|
}
|
|
233705
233652
|
isHidden = false;
|
|
233706
233653
|
writableStream.write("\x1B[?25h");
|
|
233707
233654
|
};
|
|
233708
|
-
cliCursor.hide = (writableStream =
|
|
233655
|
+
cliCursor.hide = (writableStream = process7.stderr) => {
|
|
233709
233656
|
if (!writableStream.isTTY) {
|
|
233710
233657
|
return;
|
|
233711
233658
|
}
|
|
@@ -234010,12 +233957,12 @@ var init_AppContext = __esm(() => {
|
|
|
234010
233957
|
|
|
234011
233958
|
// node_modules/.pnpm/ink@6.7.0_@types+react@19.2.14_react-devtools-core@7.0.1_react@19.2.4/node_modules/ink/build/components/StdinContext.js
|
|
234012
233959
|
import { EventEmitter } from "events";
|
|
234013
|
-
import
|
|
233960
|
+
import process8 from "process";
|
|
234014
233961
|
var import_react3, StdinContext, StdinContext_default;
|
|
234015
233962
|
var init_StdinContext = __esm(() => {
|
|
234016
233963
|
import_react3 = __toESM(require_react(), 1);
|
|
234017
233964
|
StdinContext = import_react3.createContext({
|
|
234018
|
-
stdin:
|
|
233965
|
+
stdin: process8.stdin,
|
|
234019
233966
|
internal_eventEmitter: new EventEmitter,
|
|
234020
233967
|
setRawMode() {},
|
|
234021
233968
|
isRawModeSupported: false,
|
|
@@ -234026,12 +233973,12 @@ var init_StdinContext = __esm(() => {
|
|
|
234026
233973
|
});
|
|
234027
233974
|
|
|
234028
233975
|
// node_modules/.pnpm/ink@6.7.0_@types+react@19.2.14_react-devtools-core@7.0.1_react@19.2.4/node_modules/ink/build/components/StdoutContext.js
|
|
234029
|
-
import
|
|
233976
|
+
import process9 from "process";
|
|
234030
233977
|
var import_react4, StdoutContext, StdoutContext_default;
|
|
234031
233978
|
var init_StdoutContext = __esm(() => {
|
|
234032
233979
|
import_react4 = __toESM(require_react(), 1);
|
|
234033
233980
|
StdoutContext = import_react4.createContext({
|
|
234034
|
-
stdout:
|
|
233981
|
+
stdout: process9.stdout,
|
|
234035
233982
|
write() {}
|
|
234036
233983
|
});
|
|
234037
233984
|
StdoutContext.displayName = "InternalStdoutContext";
|
|
@@ -234039,12 +233986,12 @@ var init_StdoutContext = __esm(() => {
|
|
|
234039
233986
|
});
|
|
234040
233987
|
|
|
234041
233988
|
// node_modules/.pnpm/ink@6.7.0_@types+react@19.2.14_react-devtools-core@7.0.1_react@19.2.4/node_modules/ink/build/components/StderrContext.js
|
|
234042
|
-
import
|
|
233989
|
+
import process10 from "process";
|
|
234043
233990
|
var import_react5, StderrContext, StderrContext_default;
|
|
234044
233991
|
var init_StderrContext = __esm(() => {
|
|
234045
233992
|
import_react5 = __toESM(require_react(), 1);
|
|
234046
233993
|
StderrContext = import_react5.createContext({
|
|
234047
|
-
stderr:
|
|
233994
|
+
stderr: process10.stderr,
|
|
234048
233995
|
write() {}
|
|
234049
233996
|
});
|
|
234050
233997
|
StderrContext.displayName = "InternalStderrContext";
|
|
@@ -234537,7 +234484,7 @@ var init_ErrorBoundary = __esm(() => {
|
|
|
234537
234484
|
|
|
234538
234485
|
// node_modules/.pnpm/ink@6.7.0_@types+react@19.2.14_react-devtools-core@7.0.1_react@19.2.4/node_modules/ink/build/components/App.js
|
|
234539
234486
|
import { EventEmitter as EventEmitter2 } from "events";
|
|
234540
|
-
import
|
|
234487
|
+
import process11 from "process";
|
|
234541
234488
|
function App({ children: children2, stdin, stdout, stderr, writeToStdout, writeToStderr: writeToStderr2, exitOnCtrlC, onExit, setCursorPosition }) {
|
|
234542
234489
|
const [isFocusEnabled, setIsFocusEnabled] = import_react14.useState(true);
|
|
234543
234490
|
const [activeFocusId, setActiveFocusId] = import_react14.useState(undefined);
|
|
@@ -234583,7 +234530,7 @@ function App({ children: children2, stdin, stdout, stderr, writeToStdout, writeT
|
|
|
234583
234530
|
}, [stdin, handleInput]);
|
|
234584
234531
|
const handleSetRawMode = import_react14.useCallback((isEnabled) => {
|
|
234585
234532
|
if (!isRawModeSupported) {
|
|
234586
|
-
if (stdin ===
|
|
234533
|
+
if (stdin === process11.stdin) {
|
|
234587
234534
|
throw new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
234588
234535
|
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);
|
|
234589
234536
|
} else {
|
|
@@ -234854,7 +234801,7 @@ var init_kitty_keyboard = __esm(() => {
|
|
|
234854
234801
|
});
|
|
234855
234802
|
|
|
234856
234803
|
// node_modules/.pnpm/ink@6.7.0_@types+react@19.2.14_react-devtools-core@7.0.1_react@19.2.4/node_modules/ink/build/ink.js
|
|
234857
|
-
import
|
|
234804
|
+
import process12 from "process";
|
|
234858
234805
|
|
|
234859
234806
|
class Ink {
|
|
234860
234807
|
isConcurrent;
|
|
@@ -234883,7 +234830,7 @@ class Ink {
|
|
|
234883
234830
|
this.options = options2;
|
|
234884
234831
|
this.rootNode = createNode("ink-root");
|
|
234885
234832
|
this.rootNode.onComputeLayout = this.calculateLayout;
|
|
234886
|
-
this.isScreenReaderEnabled = options2.isScreenReaderEnabled ??
|
|
234833
|
+
this.isScreenReaderEnabled = options2.isScreenReaderEnabled ?? process12.env["INK_SCREEN_READER"] === "true";
|
|
234887
234834
|
const unthrottled = options2.debug || this.isScreenReaderEnabled;
|
|
234888
234835
|
const maxFps = options2.maxFps ?? 30;
|
|
234889
234836
|
const renderThrottleMs = maxFps > 0 ? Math.max(1, Math.ceil(1000 / maxFps)) : 0;
|
|
@@ -234927,7 +234874,7 @@ class Ink {
|
|
|
234927
234874
|
const rootTag = options2.concurrent ? import_constants21.ConcurrentRoot : import_constants21.LegacyRoot;
|
|
234928
234875
|
this.container = reconciler_default.createContainer(this.rootNode, rootTag, null, false, null, "id", () => {}, () => {}, () => {}, () => {});
|
|
234929
234876
|
this.unsubscribeExit = import_signal_exit2.default(this.unmount, { alwaysLast: false });
|
|
234930
|
-
if (
|
|
234877
|
+
if (process12.env["DEV"] === "true") {
|
|
234931
234878
|
reconciler_default.injectIntoDevTools({
|
|
234932
234879
|
bundleType: 0,
|
|
234933
234880
|
version: "16.13.1",
|
|
@@ -235142,7 +235089,7 @@ class Ink {
|
|
|
235142
235089
|
return;
|
|
235143
235090
|
}
|
|
235144
235091
|
if (this.beforeExitHandler) {
|
|
235145
|
-
|
|
235092
|
+
process12.off("beforeExit", this.beforeExitHandler);
|
|
235146
235093
|
this.beforeExitHandler = undefined;
|
|
235147
235094
|
}
|
|
235148
235095
|
if (this.throttledOnRender) {
|
|
@@ -235209,7 +235156,7 @@ class Ink {
|
|
|
235209
235156
|
this.beforeExitHandler = () => {
|
|
235210
235157
|
this.unmount();
|
|
235211
235158
|
};
|
|
235212
|
-
|
|
235159
|
+
process12.once("beforeExit", this.beforeExitHandler);
|
|
235213
235160
|
}
|
|
235214
235161
|
return this.exitPromise;
|
|
235215
235162
|
}
|
|
@@ -235250,9 +235197,9 @@ class Ink {
|
|
|
235250
235197
|
this.enableKittyProtocol(flags);
|
|
235251
235198
|
return;
|
|
235252
235199
|
}
|
|
235253
|
-
const term =
|
|
235254
|
-
const termProgram =
|
|
235255
|
-
const isKnownSupportingTerminal = "KITTY_WINDOW_ID" in
|
|
235200
|
+
const term = process12.env["TERM"] ?? "";
|
|
235201
|
+
const termProgram = process12.env["TERM_PROGRAM"] ?? "";
|
|
235202
|
+
const isKnownSupportingTerminal = "KITTY_WINDOW_ID" in process12.env || term === "xterm-kitty" || termProgram === "WezTerm" || termProgram === "ghostty";
|
|
235256
235203
|
if (!is_in_ci_default && isKnownSupportingTerminal) {
|
|
235257
235204
|
this.confirmKittySupport(flags);
|
|
235258
235205
|
}
|
|
@@ -235316,12 +235263,12 @@ var init_ink = __esm(async () => {
|
|
|
235316
235263
|
|
|
235317
235264
|
// node_modules/.pnpm/ink@6.7.0_@types+react@19.2.14_react-devtools-core@7.0.1_react@19.2.4/node_modules/ink/build/render.js
|
|
235318
235265
|
import { Stream as Stream4 } from "stream";
|
|
235319
|
-
import
|
|
235266
|
+
import process13 from "process";
|
|
235320
235267
|
var render2 = (node2, options2) => {
|
|
235321
235268
|
const inkOptions = {
|
|
235322
|
-
stdout:
|
|
235323
|
-
stdin:
|
|
235324
|
-
stderr:
|
|
235269
|
+
stdout: process13.stdout,
|
|
235270
|
+
stdin: process13.stdin,
|
|
235271
|
+
stderr: process13.stderr,
|
|
235325
235272
|
debug: false,
|
|
235326
235273
|
exitOnCtrlC: true,
|
|
235327
235274
|
patchConsole: true,
|
|
@@ -235345,7 +235292,7 @@ var render2 = (node2, options2) => {
|
|
|
235345
235292
|
if (stdout instanceof Stream4) {
|
|
235346
235293
|
return {
|
|
235347
235294
|
stdout,
|
|
235348
|
-
stdin:
|
|
235295
|
+
stdin: process13.stdin
|
|
235349
235296
|
};
|
|
235350
235297
|
}
|
|
235351
235298
|
return stdout;
|
|
@@ -238137,7 +238084,7 @@ var require_sharp = __commonJS((exports, module) => {
|
|
|
238137
238084
|
if (sharp) {
|
|
238138
238085
|
module.exports = sharp;
|
|
238139
238086
|
} else {
|
|
238140
|
-
const [isLinux2, isMacOs2, isWindows3] = ["linux", "darwin", "win32"].map((
|
|
238087
|
+
const [isLinux2, isMacOs2, isWindows3] = ["linux", "darwin", "win32"].map((os4) => runtimePlatform.startsWith(os4));
|
|
238141
238088
|
const help = [`Could not load the "sharp" module using the ${runtimePlatform} runtime`];
|
|
238142
238089
|
errors6.forEach((err) => {
|
|
238143
238090
|
if (err.code !== "MODULE_NOT_FOUND") {
|
|
@@ -238150,9 +238097,9 @@ var require_sharp = __commonJS((exports, module) => {
|
|
|
238150
238097
|
const { found, expected } = isUnsupportedNodeRuntime();
|
|
238151
238098
|
help.push("- Please upgrade Node.js:", ` Found ${found}`, ` Requires ${expected}`);
|
|
238152
238099
|
} else if (prebuiltPlatforms.includes(runtimePlatform)) {
|
|
238153
|
-
const [
|
|
238154
|
-
const libc =
|
|
238155
|
-
help.push("- Ensure optional dependencies can be installed:", " npm install --include=optional sharp", "- Ensure your package manager supports multi-platform installation:", " See https://sharp.pixelplumbing.com/install#cross-platform", "- Add platform-specific dependencies:", ` npm install --os=${
|
|
238100
|
+
const [os4, cpu] = runtimePlatform.split("-");
|
|
238101
|
+
const libc = os4.endsWith("musl") ? " --libc=musl" : "";
|
|
238102
|
+
help.push("- Ensure optional dependencies can be installed:", " npm install --include=optional sharp", "- Ensure your package manager supports multi-platform installation:", " See https://sharp.pixelplumbing.com/install#cross-platform", "- Add platform-specific dependencies:", ` npm install --os=${os4.replace("musl", "")}${libc} --cpu=${cpu} sharp`);
|
|
238156
238103
|
} else {
|
|
238157
238104
|
help.push(`- Manually install libvips >= ${minimumLibvipsVersion}`, "- Add experimental WebAssembly-based dependencies:", " npm install --cpu=wasm32 sharp", " npm install @img/sharp-wasm32");
|
|
238158
238105
|
}
|
|
@@ -239868,7 +239815,7 @@ var require_operation = __commonJS((exports, module) => {
|
|
|
239868
239815
|
// node_modules/.pnpm/@img+colour@1.0.0/node_modules/@img/colour/color.cjs
|
|
239869
239816
|
var require_color = __commonJS((exports, module) => {
|
|
239870
239817
|
var __defProp3 = Object.defineProperty;
|
|
239871
|
-
var
|
|
239818
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
239872
239819
|
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
239873
239820
|
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
239874
239821
|
var __export3 = (target, all2) => {
|
|
@@ -239879,16 +239826,16 @@ var require_color = __commonJS((exports, module) => {
|
|
|
239879
239826
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
239880
239827
|
for (let key of __getOwnPropNames3(from))
|
|
239881
239828
|
if (!__hasOwnProp3.call(to, key) && key !== except)
|
|
239882
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc =
|
|
239829
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
239883
239830
|
}
|
|
239884
239831
|
return to;
|
|
239885
239832
|
};
|
|
239886
|
-
var
|
|
239833
|
+
var __toCommonJS = (mod) => __copyProps(__defProp3({}, "__esModule", { value: true }), mod);
|
|
239887
239834
|
var index_exports = {};
|
|
239888
239835
|
__export3(index_exports, {
|
|
239889
239836
|
default: () => index_default
|
|
239890
239837
|
});
|
|
239891
|
-
module.exports =
|
|
239838
|
+
module.exports = __toCommonJS(index_exports);
|
|
239892
239839
|
var color_name_default = {
|
|
239893
239840
|
aliceblue: [240, 248, 255],
|
|
239894
239841
|
antiquewhite: [250, 235, 215],
|
|
@@ -242712,6 +242659,148 @@ var init_queryEscapeSequence = __esm(() => {
|
|
|
242712
242659
|
queryEscapeSequence_default = queryEscapeSequence;
|
|
242713
242660
|
});
|
|
242714
242661
|
|
|
242662
|
+
// node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js
|
|
242663
|
+
import process14 from "process";
|
|
242664
|
+
import os4 from "os";
|
|
242665
|
+
import tty3 from "tty";
|
|
242666
|
+
function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process14.argv) {
|
|
242667
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
242668
|
+
const position2 = argv.indexOf(prefix + flag);
|
|
242669
|
+
const terminatorPosition = argv.indexOf("--");
|
|
242670
|
+
return position2 !== -1 && (terminatorPosition === -1 || position2 < terminatorPosition);
|
|
242671
|
+
}
|
|
242672
|
+
function envForceColor2() {
|
|
242673
|
+
if (!("FORCE_COLOR" in env4)) {
|
|
242674
|
+
return;
|
|
242675
|
+
}
|
|
242676
|
+
if (env4.FORCE_COLOR === "true") {
|
|
242677
|
+
return 1;
|
|
242678
|
+
}
|
|
242679
|
+
if (env4.FORCE_COLOR === "false") {
|
|
242680
|
+
return 0;
|
|
242681
|
+
}
|
|
242682
|
+
if (env4.FORCE_COLOR.length === 0) {
|
|
242683
|
+
return 1;
|
|
242684
|
+
}
|
|
242685
|
+
const level = Math.min(Number.parseInt(env4.FORCE_COLOR, 10), 3);
|
|
242686
|
+
if (![0, 1, 2, 3].includes(level)) {
|
|
242687
|
+
return;
|
|
242688
|
+
}
|
|
242689
|
+
return level;
|
|
242690
|
+
}
|
|
242691
|
+
function translateLevel2(level) {
|
|
242692
|
+
if (level === 0) {
|
|
242693
|
+
return false;
|
|
242694
|
+
}
|
|
242695
|
+
return {
|
|
242696
|
+
level,
|
|
242697
|
+
hasBasic: true,
|
|
242698
|
+
has256: level >= 2,
|
|
242699
|
+
has16m: level >= 3
|
|
242700
|
+
};
|
|
242701
|
+
}
|
|
242702
|
+
function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
242703
|
+
const noFlagForceColor = envForceColor2();
|
|
242704
|
+
if (noFlagForceColor !== undefined) {
|
|
242705
|
+
flagForceColor2 = noFlagForceColor;
|
|
242706
|
+
}
|
|
242707
|
+
const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
|
|
242708
|
+
if (forceColor === 0) {
|
|
242709
|
+
return 0;
|
|
242710
|
+
}
|
|
242711
|
+
if (sniffFlags) {
|
|
242712
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
242713
|
+
return 3;
|
|
242714
|
+
}
|
|
242715
|
+
if (hasFlag2("color=256")) {
|
|
242716
|
+
return 2;
|
|
242717
|
+
}
|
|
242718
|
+
}
|
|
242719
|
+
if ("TF_BUILD" in env4 && "AGENT_NAME" in env4) {
|
|
242720
|
+
return 1;
|
|
242721
|
+
}
|
|
242722
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
242723
|
+
return 0;
|
|
242724
|
+
}
|
|
242725
|
+
const min = forceColor || 0;
|
|
242726
|
+
if (env4.TERM === "dumb") {
|
|
242727
|
+
return min;
|
|
242728
|
+
}
|
|
242729
|
+
if (process14.platform === "win32") {
|
|
242730
|
+
const osRelease = os4.release().split(".");
|
|
242731
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
242732
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
242733
|
+
}
|
|
242734
|
+
return 1;
|
|
242735
|
+
}
|
|
242736
|
+
if ("CI" in env4) {
|
|
242737
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env4))) {
|
|
242738
|
+
return 3;
|
|
242739
|
+
}
|
|
242740
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => (sign2 in env4)) || env4.CI_NAME === "codeship") {
|
|
242741
|
+
return 1;
|
|
242742
|
+
}
|
|
242743
|
+
return min;
|
|
242744
|
+
}
|
|
242745
|
+
if ("TEAMCITY_VERSION" in env4) {
|
|
242746
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env4.TEAMCITY_VERSION) ? 1 : 0;
|
|
242747
|
+
}
|
|
242748
|
+
if (env4.COLORTERM === "truecolor") {
|
|
242749
|
+
return 3;
|
|
242750
|
+
}
|
|
242751
|
+
if (env4.TERM === "xterm-kitty") {
|
|
242752
|
+
return 3;
|
|
242753
|
+
}
|
|
242754
|
+
if (env4.TERM === "xterm-ghostty") {
|
|
242755
|
+
return 3;
|
|
242756
|
+
}
|
|
242757
|
+
if (env4.TERM === "wezterm") {
|
|
242758
|
+
return 3;
|
|
242759
|
+
}
|
|
242760
|
+
if ("TERM_PROGRAM" in env4) {
|
|
242761
|
+
const version3 = Number.parseInt((env4.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
242762
|
+
switch (env4.TERM_PROGRAM) {
|
|
242763
|
+
case "iTerm.app": {
|
|
242764
|
+
return version3 >= 3 ? 3 : 2;
|
|
242765
|
+
}
|
|
242766
|
+
case "Apple_Terminal": {
|
|
242767
|
+
return 2;
|
|
242768
|
+
}
|
|
242769
|
+
}
|
|
242770
|
+
}
|
|
242771
|
+
if (/-256(color)?$/i.test(env4.TERM)) {
|
|
242772
|
+
return 2;
|
|
242773
|
+
}
|
|
242774
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env4.TERM)) {
|
|
242775
|
+
return 1;
|
|
242776
|
+
}
|
|
242777
|
+
if ("COLORTERM" in env4) {
|
|
242778
|
+
return 1;
|
|
242779
|
+
}
|
|
242780
|
+
return min;
|
|
242781
|
+
}
|
|
242782
|
+
function createSupportsColor2(stream, options2 = {}) {
|
|
242783
|
+
const level = _supportsColor2(stream, {
|
|
242784
|
+
streamIsTTY: stream && stream.isTTY,
|
|
242785
|
+
...options2
|
|
242786
|
+
});
|
|
242787
|
+
return translateLevel2(level);
|
|
242788
|
+
}
|
|
242789
|
+
var env4, flagForceColor2, supportsColor2, supports_color_default2;
|
|
242790
|
+
var init_supports_color2 = __esm(() => {
|
|
242791
|
+
({ env: env4 } = process14);
|
|
242792
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
242793
|
+
flagForceColor2 = 0;
|
|
242794
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
242795
|
+
flagForceColor2 = 1;
|
|
242796
|
+
}
|
|
242797
|
+
supportsColor2 = {
|
|
242798
|
+
stdout: createSupportsColor2({ isTTY: tty3.isatty(1) }),
|
|
242799
|
+
stderr: createSupportsColor2({ isTTY: tty3.isatty(2) })
|
|
242800
|
+
};
|
|
242801
|
+
supports_color_default2 = supportsColor2;
|
|
242802
|
+
});
|
|
242803
|
+
|
|
242715
242804
|
// node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
242716
242805
|
import process15 from "process";
|
|
242717
242806
|
function isUnicodeSupported() {
|
|
@@ -252651,7 +252740,7 @@ var import_react31, TerminalInfoContext, TerminalInfoProvider = ({ children: chi
|
|
|
252651
252740
|
};
|
|
252652
252741
|
}
|
|
252653
252742
|
const supportsUnicode = isUnicodeSupported();
|
|
252654
|
-
const isColorSupported = !!
|
|
252743
|
+
const isColorSupported = !!supports_color_default2.stdout;
|
|
252655
252744
|
const kittyResponse = await queryEscapeSequence_default("\x1B_Gi=31,s=1,v=1,a=q,t=d,f=24;AAAA\x1B\\ \x1B[c", stdin, stdout, setRawMode);
|
|
252656
252745
|
let supportsKittyGraphics = false;
|
|
252657
252746
|
if (kittyResponse && kittyResponse.includes("OK")) {
|
|
@@ -252723,7 +252812,7 @@ var import_react31, TerminalInfoContext, TerminalInfoProvider = ({ children: chi
|
|
|
252723
252812
|
};
|
|
252724
252813
|
var init_TerminalInfo = __esm(async () => {
|
|
252725
252814
|
init_queryEscapeSequence();
|
|
252726
|
-
|
|
252815
|
+
init_supports_color2();
|
|
252727
252816
|
init_is_unicode_supported();
|
|
252728
252817
|
init_iterm2_version();
|
|
252729
252818
|
await init_build2();
|
|
@@ -294362,7 +294451,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
294362
294451
|
cleanup();
|
|
294363
294452
|
process.exit(1);
|
|
294364
294453
|
});
|
|
294365
|
-
var VERSION4 = "1.1.
|
|
294454
|
+
var VERSION4 = "1.1.85";
|
|
294366
294455
|
var SYNC_START = "\x1B[?2026h";
|
|
294367
294456
|
var SYNC_END = "\x1B[?2026l";
|
|
294368
294457
|
function enableSynchronizedOutput() {
|
|
@@ -294507,4 +294596,4 @@ export {
|
|
|
294507
294596
|
main
|
|
294508
294597
|
};
|
|
294509
294598
|
|
|
294510
|
-
//# debugId=
|
|
294599
|
+
//# debugId=B3102F77510944A864756E2164756E21
|