@opencow-ai/opencow-agent-sdk 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist/cli.mjs +1259 -1325
- package/dist/client.d.ts +2 -0
- package/dist/client.js +738 -1054
- package/dist/entrypoints/sdk/controlSchemas.d.ts +36 -9
- package/dist/entrypoints/sdk/coreSchemas.d.ts +13 -4
- package/dist/entrypoints/sdk/coreTypes.d.ts +1 -1
- package/dist/entrypoints/sdk/runtimeTypes.d.ts +17 -2
- package/dist/sdk.js +738 -1054
- package/dist/session/sessionStorage.d.ts +29 -4
- package/package.json +9 -7
package/dist/cli.mjs
CHANGED
|
@@ -5,39 +5,60 @@ var __defProp = Object.defineProperty;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
8
13
|
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
9
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
10
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
11
23
|
for (let key of __getOwnPropNames(mod))
|
|
12
24
|
if (!__hasOwnProp.call(to, key))
|
|
13
25
|
__defProp(to, key, {
|
|
14
|
-
get: (
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
15
27
|
enumerable: true
|
|
16
28
|
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
17
31
|
return to;
|
|
18
32
|
};
|
|
19
|
-
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
20
33
|
var __toCommonJS = (from) => {
|
|
21
|
-
var entry = __moduleCache.get(from), desc;
|
|
34
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
22
35
|
if (entry)
|
|
23
36
|
return entry;
|
|
24
37
|
entry = __defProp({}, "__esModule", { value: true });
|
|
25
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
39
|
+
for (var key of __getOwnPropNames(from))
|
|
40
|
+
if (!__hasOwnProp.call(entry, key))
|
|
41
|
+
__defProp(entry, key, {
|
|
42
|
+
get: __accessProp.bind(from, key),
|
|
43
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
44
|
+
});
|
|
45
|
+
}
|
|
30
46
|
__moduleCache.set(from, entry);
|
|
31
47
|
return entry;
|
|
32
48
|
};
|
|
49
|
+
var __moduleCache;
|
|
33
50
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
51
|
+
var __returnValue = (v) => v;
|
|
52
|
+
function __exportSetter(name, newValue) {
|
|
53
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
54
|
+
}
|
|
34
55
|
var __export = (target, all) => {
|
|
35
56
|
for (var name in all)
|
|
36
57
|
__defProp(target, name, {
|
|
37
58
|
get: all[name],
|
|
38
59
|
enumerable: true,
|
|
39
60
|
configurable: true,
|
|
40
|
-
set: (
|
|
61
|
+
set: __exportSetter.bind(all, name)
|
|
41
62
|
});
|
|
42
63
|
};
|
|
43
64
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -10625,7 +10646,6 @@ var init_base = __esm(() => {
|
|
|
10625
10646
|
// node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/index.js
|
|
10626
10647
|
var init_yoctocolors = __esm(() => {
|
|
10627
10648
|
init_base();
|
|
10628
|
-
init_base();
|
|
10629
10649
|
});
|
|
10630
10650
|
|
|
10631
10651
|
// node_modules/.bun/execa@9.6.1/node_modules/execa/lib/verbose/default.js
|
|
@@ -26986,7 +27006,7 @@ class JSONSchemaGenerator {
|
|
|
26986
27006
|
if (val === undefined) {
|
|
26987
27007
|
if (this.unrepresentable === "throw") {
|
|
26988
27008
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
26989
|
-
}
|
|
27009
|
+
}
|
|
26990
27010
|
} else if (typeof val === "bigint") {
|
|
26991
27011
|
if (this.unrepresentable === "throw") {
|
|
26992
27012
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -79516,7 +79536,7 @@ var require_fetch = __commonJS((exports, module) => {
|
|
|
79516
79536
|
request.cache = "no-store";
|
|
79517
79537
|
}
|
|
79518
79538
|
const newConnection = forceNewConnection ? "yes" : "no";
|
|
79519
|
-
if (request.mode === "websocket") {}
|
|
79539
|
+
if (request.mode === "websocket") {}
|
|
79520
79540
|
let requestBody = null;
|
|
79521
79541
|
if (request.body == null && fetchParams.processRequestEndOfBody) {
|
|
79522
79542
|
queueMicrotask(() => fetchParams.processRequestEndOfBody());
|
|
@@ -83303,7 +83323,7 @@ var require_eventsource = __commonJS((exports, module) => {
|
|
|
83303
83323
|
|
|
83304
83324
|
// node_modules/.bun/undici@7.24.6/node_modules/undici/index.js
|
|
83305
83325
|
var require_undici = __commonJS((exports, module) => {
|
|
83306
|
-
var __filename = "/
|
|
83326
|
+
var __filename = "/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/node_modules/.bun/undici@7.24.6/node_modules/undici/index.js";
|
|
83307
83327
|
var Client = require_client();
|
|
83308
83328
|
var Dispatcher = require_dispatcher();
|
|
83309
83329
|
var Pool = require_pool();
|
|
@@ -94126,7 +94146,7 @@ function printStartupScreen() {
|
|
|
94126
94146
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
94127
94147
|
out.push(boxRow(sRow, W2, sLen));
|
|
94128
94148
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
94129
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}opencow ${RESET}${rgb(...ACCENT)}v${"0.4.
|
|
94149
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}opencow ${RESET}${rgb(...ACCENT)}v${"0.4.1"}${RESET}`);
|
|
94130
94150
|
out.push("");
|
|
94131
94151
|
process.stdout.write(out.join(`
|
|
94132
94152
|
`) + `
|
|
@@ -107067,14 +107087,6 @@ class Diff {
|
|
|
107067
107087
|
}
|
|
107068
107088
|
}
|
|
107069
107089
|
|
|
107070
|
-
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/diff/character.js
|
|
107071
|
-
var CharacterDiff, characterDiff;
|
|
107072
|
-
var init_character = __esm(() => {
|
|
107073
|
-
CharacterDiff = class CharacterDiff extends Diff {
|
|
107074
|
-
};
|
|
107075
|
-
characterDiff = new CharacterDiff;
|
|
107076
|
-
});
|
|
107077
|
-
|
|
107078
107090
|
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/util/string.js
|
|
107079
107091
|
function longestCommonPrefix(str1, str2) {
|
|
107080
107092
|
let i2;
|
|
@@ -107375,122 +107387,6 @@ var init_line2 = __esm(() => {
|
|
|
107375
107387
|
lineDiff = new LineDiff;
|
|
107376
107388
|
});
|
|
107377
107389
|
|
|
107378
|
-
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/diff/sentence.js
|
|
107379
|
-
function isSentenceEndPunct(char) {
|
|
107380
|
-
return char == "." || char == "!" || char == "?";
|
|
107381
|
-
}
|
|
107382
|
-
var SentenceDiff, sentenceDiff;
|
|
107383
|
-
var init_sentence = __esm(() => {
|
|
107384
|
-
SentenceDiff = class SentenceDiff extends Diff {
|
|
107385
|
-
tokenize(value) {
|
|
107386
|
-
var _a2;
|
|
107387
|
-
const result = [];
|
|
107388
|
-
let tokenStartI = 0;
|
|
107389
|
-
for (let i2 = 0;i2 < value.length; i2++) {
|
|
107390
|
-
if (i2 == value.length - 1) {
|
|
107391
|
-
result.push(value.slice(tokenStartI));
|
|
107392
|
-
break;
|
|
107393
|
-
}
|
|
107394
|
-
if (isSentenceEndPunct(value[i2]) && value[i2 + 1].match(/\s/)) {
|
|
107395
|
-
result.push(value.slice(tokenStartI, i2 + 1));
|
|
107396
|
-
i2 = tokenStartI = i2 + 1;
|
|
107397
|
-
while ((_a2 = value[i2 + 1]) === null || _a2 === undefined ? undefined : _a2.match(/\s/)) {
|
|
107398
|
-
i2++;
|
|
107399
|
-
}
|
|
107400
|
-
result.push(value.slice(tokenStartI, i2 + 1));
|
|
107401
|
-
tokenStartI = i2 + 1;
|
|
107402
|
-
}
|
|
107403
|
-
}
|
|
107404
|
-
return result;
|
|
107405
|
-
}
|
|
107406
|
-
};
|
|
107407
|
-
sentenceDiff = new SentenceDiff;
|
|
107408
|
-
});
|
|
107409
|
-
|
|
107410
|
-
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/diff/css.js
|
|
107411
|
-
var CssDiff, cssDiff;
|
|
107412
|
-
var init_css = __esm(() => {
|
|
107413
|
-
CssDiff = class CssDiff extends Diff {
|
|
107414
|
-
tokenize(value) {
|
|
107415
|
-
return value.split(/([{}:;,]|\s+)/);
|
|
107416
|
-
}
|
|
107417
|
-
};
|
|
107418
|
-
cssDiff = new CssDiff;
|
|
107419
|
-
});
|
|
107420
|
-
|
|
107421
|
-
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/diff/json.js
|
|
107422
|
-
function canonicalize(obj, stack, replacementStack, replacer, key) {
|
|
107423
|
-
stack = stack || [];
|
|
107424
|
-
replacementStack = replacementStack || [];
|
|
107425
|
-
if (replacer) {
|
|
107426
|
-
obj = replacer(key === undefined ? "" : key, obj);
|
|
107427
|
-
}
|
|
107428
|
-
let i2;
|
|
107429
|
-
for (i2 = 0;i2 < stack.length; i2 += 1) {
|
|
107430
|
-
if (stack[i2] === obj) {
|
|
107431
|
-
return replacementStack[i2];
|
|
107432
|
-
}
|
|
107433
|
-
}
|
|
107434
|
-
let canonicalizedObj;
|
|
107435
|
-
if (Object.prototype.toString.call(obj) === "[object Array]") {
|
|
107436
|
-
stack.push(obj);
|
|
107437
|
-
canonicalizedObj = new Array(obj.length);
|
|
107438
|
-
replacementStack.push(canonicalizedObj);
|
|
107439
|
-
for (i2 = 0;i2 < obj.length; i2 += 1) {
|
|
107440
|
-
canonicalizedObj[i2] = canonicalize(obj[i2], stack, replacementStack, replacer, String(i2));
|
|
107441
|
-
}
|
|
107442
|
-
stack.pop();
|
|
107443
|
-
replacementStack.pop();
|
|
107444
|
-
return canonicalizedObj;
|
|
107445
|
-
}
|
|
107446
|
-
if (obj && obj.toJSON) {
|
|
107447
|
-
obj = obj.toJSON();
|
|
107448
|
-
}
|
|
107449
|
-
if (typeof obj === "object" && obj !== null) {
|
|
107450
|
-
stack.push(obj);
|
|
107451
|
-
canonicalizedObj = {};
|
|
107452
|
-
replacementStack.push(canonicalizedObj);
|
|
107453
|
-
const sortedKeys = [];
|
|
107454
|
-
let key2;
|
|
107455
|
-
for (key2 in obj) {
|
|
107456
|
-
if (Object.prototype.hasOwnProperty.call(obj, key2)) {
|
|
107457
|
-
sortedKeys.push(key2);
|
|
107458
|
-
}
|
|
107459
|
-
}
|
|
107460
|
-
sortedKeys.sort();
|
|
107461
|
-
for (i2 = 0;i2 < sortedKeys.length; i2 += 1) {
|
|
107462
|
-
key2 = sortedKeys[i2];
|
|
107463
|
-
canonicalizedObj[key2] = canonicalize(obj[key2], stack, replacementStack, replacer, key2);
|
|
107464
|
-
}
|
|
107465
|
-
stack.pop();
|
|
107466
|
-
replacementStack.pop();
|
|
107467
|
-
} else {
|
|
107468
|
-
canonicalizedObj = obj;
|
|
107469
|
-
}
|
|
107470
|
-
return canonicalizedObj;
|
|
107471
|
-
}
|
|
107472
|
-
var JsonDiff, jsonDiff;
|
|
107473
|
-
var init_json2 = __esm(() => {
|
|
107474
|
-
init_line2();
|
|
107475
|
-
JsonDiff = class JsonDiff extends Diff {
|
|
107476
|
-
constructor() {
|
|
107477
|
-
super(...arguments);
|
|
107478
|
-
this.tokenize = tokenize2;
|
|
107479
|
-
}
|
|
107480
|
-
get useLongestToken() {
|
|
107481
|
-
return true;
|
|
107482
|
-
}
|
|
107483
|
-
castInput(value, options) {
|
|
107484
|
-
const { undefinedReplacement, stringifyReplacer = (k, v) => typeof v === "undefined" ? undefinedReplacement : v } = options;
|
|
107485
|
-
return typeof value === "string" ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), null, " ");
|
|
107486
|
-
}
|
|
107487
|
-
equals(left, right, options) {
|
|
107488
|
-
return super.equals(left.replace(/,([\r\n])/g, "$1"), right.replace(/,([\r\n])/g, "$1"), options);
|
|
107489
|
-
}
|
|
107490
|
-
};
|
|
107491
|
-
jsonDiff = new JsonDiff;
|
|
107492
|
-
});
|
|
107493
|
-
|
|
107494
107390
|
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/diff/array.js
|
|
107495
107391
|
function diffArrays(oldArr, newArr, options) {
|
|
107496
107392
|
return arrayDiff.diff(oldArr, newArr, options);
|
|
@@ -107510,8 +107406,7 @@ var init_array2 = __esm(() => {
|
|
|
107510
107406
|
};
|
|
107511
107407
|
arrayDiff = new ArrayDiff;
|
|
107512
107408
|
});
|
|
107513
|
-
|
|
107514
|
-
var init_apply = () => {};
|
|
107409
|
+
|
|
107515
107410
|
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/patch/create.js
|
|
107516
107411
|
function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
|
|
107517
107412
|
let optionsObj;
|
|
@@ -107636,16 +107531,12 @@ function splitLines(text) {
|
|
|
107636
107531
|
var init_create2 = __esm(() => {
|
|
107637
107532
|
init_line2();
|
|
107638
107533
|
});
|
|
107534
|
+
|
|
107639
107535
|
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/index.js
|
|
107640
107536
|
var init_libesm = __esm(() => {
|
|
107641
|
-
init_character();
|
|
107642
107537
|
init_word();
|
|
107643
107538
|
init_line2();
|
|
107644
|
-
init_sentence();
|
|
107645
|
-
init_css();
|
|
107646
|
-
init_json2();
|
|
107647
107539
|
init_array2();
|
|
107648
|
-
init_apply();
|
|
107649
107540
|
init_create2();
|
|
107650
107541
|
});
|
|
107651
107542
|
|
|
@@ -116063,717 +115954,6 @@ var init_sandbox_runtime = __esm(() => {
|
|
|
116063
115954
|
SandboxRuntimeConfigSchema3 = { parse: () => ({}) };
|
|
116064
115955
|
});
|
|
116065
115956
|
|
|
116066
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_trimmedEndIndex.js
|
|
116067
|
-
function trimmedEndIndex(string4) {
|
|
116068
|
-
var index = string4.length;
|
|
116069
|
-
while (index-- && reWhitespace.test(string4.charAt(index))) {}
|
|
116070
|
-
return index;
|
|
116071
|
-
}
|
|
116072
|
-
var reWhitespace, _trimmedEndIndex_default;
|
|
116073
|
-
var init__trimmedEndIndex = __esm(() => {
|
|
116074
|
-
reWhitespace = /\s/;
|
|
116075
|
-
_trimmedEndIndex_default = trimmedEndIndex;
|
|
116076
|
-
});
|
|
116077
|
-
|
|
116078
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseTrim.js
|
|
116079
|
-
function baseTrim(string4) {
|
|
116080
|
-
return string4 ? string4.slice(0, _trimmedEndIndex_default(string4) + 1).replace(reTrimStart, "") : string4;
|
|
116081
|
-
}
|
|
116082
|
-
var reTrimStart, _baseTrim_default;
|
|
116083
|
-
var init__baseTrim = __esm(() => {
|
|
116084
|
-
init__trimmedEndIndex();
|
|
116085
|
-
reTrimStart = /^\s+/;
|
|
116086
|
-
_baseTrim_default = baseTrim;
|
|
116087
|
-
});
|
|
116088
|
-
|
|
116089
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/toNumber.js
|
|
116090
|
-
function toNumber(value) {
|
|
116091
|
-
if (typeof value == "number") {
|
|
116092
|
-
return value;
|
|
116093
|
-
}
|
|
116094
|
-
if (isSymbol_default(value)) {
|
|
116095
|
-
return NAN;
|
|
116096
|
-
}
|
|
116097
|
-
if (isObject_default(value)) {
|
|
116098
|
-
var other2 = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
116099
|
-
value = isObject_default(other2) ? other2 + "" : other2;
|
|
116100
|
-
}
|
|
116101
|
-
if (typeof value != "string") {
|
|
116102
|
-
return value === 0 ? value : +value;
|
|
116103
|
-
}
|
|
116104
|
-
value = _baseTrim_default(value);
|
|
116105
|
-
var isBinary = reIsBinary.test(value);
|
|
116106
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
116107
|
-
}
|
|
116108
|
-
var NAN, reIsBadHex, reIsBinary, reIsOctal, freeParseInt, toNumber_default;
|
|
116109
|
-
var init_toNumber = __esm(() => {
|
|
116110
|
-
init__baseTrim();
|
|
116111
|
-
init_isObject();
|
|
116112
|
-
init_isSymbol();
|
|
116113
|
-
NAN = 0 / 0;
|
|
116114
|
-
reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
116115
|
-
reIsBinary = /^0b[01]+$/i;
|
|
116116
|
-
reIsOctal = /^0o[0-7]+$/i;
|
|
116117
|
-
freeParseInt = parseInt;
|
|
116118
|
-
toNumber_default = toNumber;
|
|
116119
|
-
});
|
|
116120
|
-
|
|
116121
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_isFlattenable.js
|
|
116122
|
-
function isFlattenable(value) {
|
|
116123
|
-
return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
116124
|
-
}
|
|
116125
|
-
var spreadableSymbol, _isFlattenable_default;
|
|
116126
|
-
var init__isFlattenable = __esm(() => {
|
|
116127
|
-
init__Symbol();
|
|
116128
|
-
init_isArguments();
|
|
116129
|
-
init_isArray();
|
|
116130
|
-
spreadableSymbol = _Symbol_default ? _Symbol_default.isConcatSpreadable : undefined;
|
|
116131
|
-
_isFlattenable_default = isFlattenable;
|
|
116132
|
-
});
|
|
116133
|
-
|
|
116134
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseFlatten.js
|
|
116135
|
-
function baseFlatten(array2, depth, predicate, isStrict, result) {
|
|
116136
|
-
var index = -1, length = array2.length;
|
|
116137
|
-
predicate || (predicate = _isFlattenable_default);
|
|
116138
|
-
result || (result = []);
|
|
116139
|
-
while (++index < length) {
|
|
116140
|
-
var value = array2[index];
|
|
116141
|
-
if (depth > 0 && predicate(value)) {
|
|
116142
|
-
if (depth > 1) {
|
|
116143
|
-
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
116144
|
-
} else {
|
|
116145
|
-
_arrayPush_default(result, value);
|
|
116146
|
-
}
|
|
116147
|
-
} else if (!isStrict) {
|
|
116148
|
-
result[result.length] = value;
|
|
116149
|
-
}
|
|
116150
|
-
}
|
|
116151
|
-
return result;
|
|
116152
|
-
}
|
|
116153
|
-
var _baseFlatten_default;
|
|
116154
|
-
var init__baseFlatten = __esm(() => {
|
|
116155
|
-
init__arrayPush();
|
|
116156
|
-
init__isFlattenable();
|
|
116157
|
-
_baseFlatten_default = baseFlatten;
|
|
116158
|
-
});
|
|
116159
|
-
|
|
116160
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/flatten.js
|
|
116161
|
-
function flatten(array2) {
|
|
116162
|
-
var length = array2 == null ? 0 : array2.length;
|
|
116163
|
-
return length ? _baseFlatten_default(array2, 1) : [];
|
|
116164
|
-
}
|
|
116165
|
-
var flatten_default;
|
|
116166
|
-
var init_flatten = __esm(() => {
|
|
116167
|
-
init__baseFlatten();
|
|
116168
|
-
flatten_default = flatten;
|
|
116169
|
-
});
|
|
116170
|
-
|
|
116171
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_flatRest.js
|
|
116172
|
-
function flatRest(func) {
|
|
116173
|
-
return _setToString_default(_overRest_default(func, undefined, flatten_default), func + "");
|
|
116174
|
-
}
|
|
116175
|
-
var _flatRest_default;
|
|
116176
|
-
var init__flatRest = __esm(() => {
|
|
116177
|
-
init_flatten();
|
|
116178
|
-
init__overRest();
|
|
116179
|
-
init__setToString();
|
|
116180
|
-
_flatRest_default = flatRest;
|
|
116181
|
-
});
|
|
116182
|
-
|
|
116183
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseSlice.js
|
|
116184
|
-
function baseSlice(array2, start, end) {
|
|
116185
|
-
var index = -1, length = array2.length;
|
|
116186
|
-
if (start < 0) {
|
|
116187
|
-
start = -start > length ? 0 : length + start;
|
|
116188
|
-
}
|
|
116189
|
-
end = end > length ? length : end;
|
|
116190
|
-
if (end < 0) {
|
|
116191
|
-
end += length;
|
|
116192
|
-
}
|
|
116193
|
-
length = start > end ? 0 : end - start >>> 0;
|
|
116194
|
-
start >>>= 0;
|
|
116195
|
-
var result = Array(length);
|
|
116196
|
-
while (++index < length) {
|
|
116197
|
-
result[index] = array2[index + start];
|
|
116198
|
-
}
|
|
116199
|
-
return result;
|
|
116200
|
-
}
|
|
116201
|
-
var _baseSlice_default;
|
|
116202
|
-
var init__baseSlice = __esm(() => {
|
|
116203
|
-
_baseSlice_default = baseSlice;
|
|
116204
|
-
});
|
|
116205
|
-
|
|
116206
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_castSlice.js
|
|
116207
|
-
function castSlice(array2, start, end) {
|
|
116208
|
-
var length = array2.length;
|
|
116209
|
-
end = end === undefined ? length : end;
|
|
116210
|
-
return !start && end >= length ? array2 : _baseSlice_default(array2, start, end);
|
|
116211
|
-
}
|
|
116212
|
-
var _castSlice_default;
|
|
116213
|
-
var init__castSlice = __esm(() => {
|
|
116214
|
-
init__baseSlice();
|
|
116215
|
-
_castSlice_default = castSlice;
|
|
116216
|
-
});
|
|
116217
|
-
|
|
116218
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_hasUnicode.js
|
|
116219
|
-
function hasUnicode(string4) {
|
|
116220
|
-
return reHasUnicode.test(string4);
|
|
116221
|
-
}
|
|
116222
|
-
var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange, rsVarRange = "\\ufe0e\\ufe0f", rsZWJ = "\\u200d", reHasUnicode, _hasUnicode_default;
|
|
116223
|
-
var init__hasUnicode = __esm(() => {
|
|
116224
|
-
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
|
116225
|
-
reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
|
|
116226
|
-
_hasUnicode_default = hasUnicode;
|
|
116227
|
-
});
|
|
116228
|
-
|
|
116229
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_asciiToArray.js
|
|
116230
|
-
function asciiToArray(string4) {
|
|
116231
|
-
return string4.split("");
|
|
116232
|
-
}
|
|
116233
|
-
var _asciiToArray_default;
|
|
116234
|
-
var init__asciiToArray = __esm(() => {
|
|
116235
|
-
_asciiToArray_default = asciiToArray;
|
|
116236
|
-
});
|
|
116237
|
-
|
|
116238
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_unicodeToArray.js
|
|
116239
|
-
function unicodeToArray(string4) {
|
|
116240
|
-
return string4.match(reUnicode) || [];
|
|
116241
|
-
}
|
|
116242
|
-
var rsAstralRange2 = "\\ud800-\\udfff", rsComboMarksRange2 = "\\u0300-\\u036f", reComboHalfMarksRange2 = "\\ufe20-\\ufe2f", rsComboSymbolsRange2 = "\\u20d0-\\u20ff", rsComboRange2, rsVarRange2 = "\\ufe0e\\ufe0f", rsAstral, rsCombo, rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier, rsNonAstral, rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsZWJ2 = "\\u200d", reOptMod, rsOptVar, rsOptJoin, rsSeq, rsSymbol, reUnicode, _unicodeToArray_default;
|
|
116243
|
-
var init__unicodeToArray = __esm(() => {
|
|
116244
|
-
rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2;
|
|
116245
|
-
rsAstral = "[" + rsAstralRange2 + "]";
|
|
116246
|
-
rsCombo = "[" + rsComboRange2 + "]";
|
|
116247
|
-
rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
|
116248
|
-
rsNonAstral = "[^" + rsAstralRange2 + "]";
|
|
116249
|
-
reOptMod = rsModifier + "?";
|
|
116250
|
-
rsOptVar = "[" + rsVarRange2 + "]?";
|
|
116251
|
-
rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
|
116252
|
-
rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
116253
|
-
rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
|
|
116254
|
-
reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
|
|
116255
|
-
_unicodeToArray_default = unicodeToArray;
|
|
116256
|
-
});
|
|
116257
|
-
|
|
116258
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_stringToArray.js
|
|
116259
|
-
function stringToArray(string4) {
|
|
116260
|
-
return _hasUnicode_default(string4) ? _unicodeToArray_default(string4) : _asciiToArray_default(string4);
|
|
116261
|
-
}
|
|
116262
|
-
var _stringToArray_default;
|
|
116263
|
-
var init__stringToArray = __esm(() => {
|
|
116264
|
-
init__asciiToArray();
|
|
116265
|
-
init__hasUnicode();
|
|
116266
|
-
init__unicodeToArray();
|
|
116267
|
-
_stringToArray_default = stringToArray;
|
|
116268
|
-
});
|
|
116269
|
-
|
|
116270
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createCaseFirst.js
|
|
116271
|
-
function createCaseFirst(methodName) {
|
|
116272
|
-
return function(string4) {
|
|
116273
|
-
string4 = toString_default(string4);
|
|
116274
|
-
var strSymbols = _hasUnicode_default(string4) ? _stringToArray_default(string4) : undefined;
|
|
116275
|
-
var chr = strSymbols ? strSymbols[0] : string4.charAt(0);
|
|
116276
|
-
var trailing = strSymbols ? _castSlice_default(strSymbols, 1).join("") : string4.slice(1);
|
|
116277
|
-
return chr[methodName]() + trailing;
|
|
116278
|
-
};
|
|
116279
|
-
}
|
|
116280
|
-
var _createCaseFirst_default;
|
|
116281
|
-
var init__createCaseFirst = __esm(() => {
|
|
116282
|
-
init__castSlice();
|
|
116283
|
-
init__hasUnicode();
|
|
116284
|
-
init__stringToArray();
|
|
116285
|
-
init_toString();
|
|
116286
|
-
_createCaseFirst_default = createCaseFirst;
|
|
116287
|
-
});
|
|
116288
|
-
|
|
116289
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/upperFirst.js
|
|
116290
|
-
var upperFirst, upperFirst_default;
|
|
116291
|
-
var init_upperFirst = __esm(() => {
|
|
116292
|
-
init__createCaseFirst();
|
|
116293
|
-
upperFirst = _createCaseFirst_default("toUpperCase");
|
|
116294
|
-
upperFirst_default = upperFirst;
|
|
116295
|
-
});
|
|
116296
|
-
|
|
116297
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/capitalize.js
|
|
116298
|
-
function capitalize3(string4) {
|
|
116299
|
-
return upperFirst_default(toString_default(string4).toLowerCase());
|
|
116300
|
-
}
|
|
116301
|
-
var capitalize_default;
|
|
116302
|
-
var init_capitalize = __esm(() => {
|
|
116303
|
-
init_toString();
|
|
116304
|
-
init_upperFirst();
|
|
116305
|
-
capitalize_default = capitalize3;
|
|
116306
|
-
});
|
|
116307
|
-
|
|
116308
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_arrayAggregator.js
|
|
116309
|
-
function arrayAggregator(array2, setter, iteratee, accumulator) {
|
|
116310
|
-
var index = -1, length = array2 == null ? 0 : array2.length;
|
|
116311
|
-
while (++index < length) {
|
|
116312
|
-
var value = array2[index];
|
|
116313
|
-
setter(accumulator, value, iteratee(value), array2);
|
|
116314
|
-
}
|
|
116315
|
-
return accumulator;
|
|
116316
|
-
}
|
|
116317
|
-
var _arrayAggregator_default;
|
|
116318
|
-
var init__arrayAggregator = __esm(() => {
|
|
116319
|
-
_arrayAggregator_default = arrayAggregator;
|
|
116320
|
-
});
|
|
116321
|
-
|
|
116322
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createBaseEach.js
|
|
116323
|
-
function createBaseEach(eachFunc, fromRight) {
|
|
116324
|
-
return function(collection, iteratee) {
|
|
116325
|
-
if (collection == null) {
|
|
116326
|
-
return collection;
|
|
116327
|
-
}
|
|
116328
|
-
if (!isArrayLike_default(collection)) {
|
|
116329
|
-
return eachFunc(collection, iteratee);
|
|
116330
|
-
}
|
|
116331
|
-
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
116332
|
-
while (fromRight ? index-- : ++index < length) {
|
|
116333
|
-
if (iteratee(iterable[index], index, iterable) === false) {
|
|
116334
|
-
break;
|
|
116335
|
-
}
|
|
116336
|
-
}
|
|
116337
|
-
return collection;
|
|
116338
|
-
};
|
|
116339
|
-
}
|
|
116340
|
-
var _createBaseEach_default;
|
|
116341
|
-
var init__createBaseEach = __esm(() => {
|
|
116342
|
-
init_isArrayLike();
|
|
116343
|
-
_createBaseEach_default = createBaseEach;
|
|
116344
|
-
});
|
|
116345
|
-
|
|
116346
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseEach.js
|
|
116347
|
-
var baseEach, _baseEach_default;
|
|
116348
|
-
var init__baseEach = __esm(() => {
|
|
116349
|
-
init__baseForOwn();
|
|
116350
|
-
init__createBaseEach();
|
|
116351
|
-
baseEach = _createBaseEach_default(_baseForOwn_default);
|
|
116352
|
-
_baseEach_default = baseEach;
|
|
116353
|
-
});
|
|
116354
|
-
|
|
116355
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseAggregator.js
|
|
116356
|
-
function baseAggregator(collection, setter, iteratee, accumulator) {
|
|
116357
|
-
_baseEach_default(collection, function(value, key, collection2) {
|
|
116358
|
-
setter(accumulator, value, iteratee(value), collection2);
|
|
116359
|
-
});
|
|
116360
|
-
return accumulator;
|
|
116361
|
-
}
|
|
116362
|
-
var _baseAggregator_default;
|
|
116363
|
-
var init__baseAggregator = __esm(() => {
|
|
116364
|
-
init__baseEach();
|
|
116365
|
-
_baseAggregator_default = baseAggregator;
|
|
116366
|
-
});
|
|
116367
|
-
|
|
116368
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createAggregator.js
|
|
116369
|
-
function createAggregator(setter, initializer3) {
|
|
116370
|
-
return function(collection, iteratee) {
|
|
116371
|
-
var func = isArray_default(collection) ? _arrayAggregator_default : _baseAggregator_default, accumulator = initializer3 ? initializer3() : {};
|
|
116372
|
-
return func(collection, setter, _baseIteratee_default(iteratee, 2), accumulator);
|
|
116373
|
-
};
|
|
116374
|
-
}
|
|
116375
|
-
var _createAggregator_default;
|
|
116376
|
-
var init__createAggregator = __esm(() => {
|
|
116377
|
-
init__arrayAggregator();
|
|
116378
|
-
init__baseAggregator();
|
|
116379
|
-
init__baseIteratee();
|
|
116380
|
-
init_isArray();
|
|
116381
|
-
_createAggregator_default = createAggregator;
|
|
116382
|
-
});
|
|
116383
|
-
|
|
116384
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/now.js
|
|
116385
|
-
var now = function() {
|
|
116386
|
-
return _root_default.Date.now();
|
|
116387
|
-
}, now_default;
|
|
116388
|
-
var init_now = __esm(() => {
|
|
116389
|
-
init__root();
|
|
116390
|
-
now_default = now;
|
|
116391
|
-
});
|
|
116392
|
-
|
|
116393
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/debounce.js
|
|
116394
|
-
function debounce(func, wait, options2) {
|
|
116395
|
-
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
116396
|
-
if (typeof func != "function") {
|
|
116397
|
-
throw new TypeError(FUNC_ERROR_TEXT2);
|
|
116398
|
-
}
|
|
116399
|
-
wait = toNumber_default(wait) || 0;
|
|
116400
|
-
if (isObject_default(options2)) {
|
|
116401
|
-
leading = !!options2.leading;
|
|
116402
|
-
maxing = "maxWait" in options2;
|
|
116403
|
-
maxWait = maxing ? nativeMax2(toNumber_default(options2.maxWait) || 0, wait) : maxWait;
|
|
116404
|
-
trailing = "trailing" in options2 ? !!options2.trailing : trailing;
|
|
116405
|
-
}
|
|
116406
|
-
function invokeFunc(time3) {
|
|
116407
|
-
var args = lastArgs, thisArg = lastThis;
|
|
116408
|
-
lastArgs = lastThis = undefined;
|
|
116409
|
-
lastInvokeTime = time3;
|
|
116410
|
-
result = func.apply(thisArg, args);
|
|
116411
|
-
return result;
|
|
116412
|
-
}
|
|
116413
|
-
function leadingEdge(time3) {
|
|
116414
|
-
lastInvokeTime = time3;
|
|
116415
|
-
timerId = setTimeout(timerExpired, wait);
|
|
116416
|
-
return leading ? invokeFunc(time3) : result;
|
|
116417
|
-
}
|
|
116418
|
-
function remainingWait(time3) {
|
|
116419
|
-
var timeSinceLastCall = time3 - lastCallTime, timeSinceLastInvoke = time3 - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
116420
|
-
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
116421
|
-
}
|
|
116422
|
-
function shouldInvoke(time3) {
|
|
116423
|
-
var timeSinceLastCall = time3 - lastCallTime, timeSinceLastInvoke = time3 - lastInvokeTime;
|
|
116424
|
-
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
116425
|
-
}
|
|
116426
|
-
function timerExpired() {
|
|
116427
|
-
var time3 = now_default();
|
|
116428
|
-
if (shouldInvoke(time3)) {
|
|
116429
|
-
return trailingEdge(time3);
|
|
116430
|
-
}
|
|
116431
|
-
timerId = setTimeout(timerExpired, remainingWait(time3));
|
|
116432
|
-
}
|
|
116433
|
-
function trailingEdge(time3) {
|
|
116434
|
-
timerId = undefined;
|
|
116435
|
-
if (trailing && lastArgs) {
|
|
116436
|
-
return invokeFunc(time3);
|
|
116437
|
-
}
|
|
116438
|
-
lastArgs = lastThis = undefined;
|
|
116439
|
-
return result;
|
|
116440
|
-
}
|
|
116441
|
-
function cancel() {
|
|
116442
|
-
if (timerId !== undefined) {
|
|
116443
|
-
clearTimeout(timerId);
|
|
116444
|
-
}
|
|
116445
|
-
lastInvokeTime = 0;
|
|
116446
|
-
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
116447
|
-
}
|
|
116448
|
-
function flush() {
|
|
116449
|
-
return timerId === undefined ? result : trailingEdge(now_default());
|
|
116450
|
-
}
|
|
116451
|
-
function debounced() {
|
|
116452
|
-
var time3 = now_default(), isInvoking = shouldInvoke(time3);
|
|
116453
|
-
lastArgs = arguments;
|
|
116454
|
-
lastThis = this;
|
|
116455
|
-
lastCallTime = time3;
|
|
116456
|
-
if (isInvoking) {
|
|
116457
|
-
if (timerId === undefined) {
|
|
116458
|
-
return leadingEdge(lastCallTime);
|
|
116459
|
-
}
|
|
116460
|
-
if (maxing) {
|
|
116461
|
-
clearTimeout(timerId);
|
|
116462
|
-
timerId = setTimeout(timerExpired, wait);
|
|
116463
|
-
return invokeFunc(lastCallTime);
|
|
116464
|
-
}
|
|
116465
|
-
}
|
|
116466
|
-
if (timerId === undefined) {
|
|
116467
|
-
timerId = setTimeout(timerExpired, wait);
|
|
116468
|
-
}
|
|
116469
|
-
return result;
|
|
116470
|
-
}
|
|
116471
|
-
debounced.cancel = cancel;
|
|
116472
|
-
debounced.flush = flush;
|
|
116473
|
-
return debounced;
|
|
116474
|
-
}
|
|
116475
|
-
var FUNC_ERROR_TEXT2 = "Expected a function", nativeMax2, nativeMin, debounce_default;
|
|
116476
|
-
var init_debounce = __esm(() => {
|
|
116477
|
-
init_isObject();
|
|
116478
|
-
init_now();
|
|
116479
|
-
init_toNumber();
|
|
116480
|
-
nativeMax2 = Math.max;
|
|
116481
|
-
nativeMin = Math.min;
|
|
116482
|
-
debounce_default = debounce;
|
|
116483
|
-
});
|
|
116484
|
-
|
|
116485
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseFilter.js
|
|
116486
|
-
function baseFilter(collection, predicate) {
|
|
116487
|
-
var result = [];
|
|
116488
|
-
_baseEach_default(collection, function(value, index, collection2) {
|
|
116489
|
-
if (predicate(value, index, collection2)) {
|
|
116490
|
-
result.push(value);
|
|
116491
|
-
}
|
|
116492
|
-
});
|
|
116493
|
-
return result;
|
|
116494
|
-
}
|
|
116495
|
-
var _baseFilter_default;
|
|
116496
|
-
var init__baseFilter = __esm(() => {
|
|
116497
|
-
init__baseEach();
|
|
116498
|
-
_baseFilter_default = baseFilter;
|
|
116499
|
-
});
|
|
116500
|
-
|
|
116501
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseValues.js
|
|
116502
|
-
function baseValues(object2, props) {
|
|
116503
|
-
return _arrayMap_default(props, function(key) {
|
|
116504
|
-
return object2[key];
|
|
116505
|
-
});
|
|
116506
|
-
}
|
|
116507
|
-
var _baseValues_default;
|
|
116508
|
-
var init__baseValues = __esm(() => {
|
|
116509
|
-
init__arrayMap();
|
|
116510
|
-
_baseValues_default = baseValues;
|
|
116511
|
-
});
|
|
116512
|
-
|
|
116513
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/values.js
|
|
116514
|
-
function values(object2) {
|
|
116515
|
-
return object2 == null ? [] : _baseValues_default(object2, keys_default(object2));
|
|
116516
|
-
}
|
|
116517
|
-
var values_default;
|
|
116518
|
-
var init_values3 = __esm(() => {
|
|
116519
|
-
init__baseValues();
|
|
116520
|
-
init_keys();
|
|
116521
|
-
values_default = values;
|
|
116522
|
-
});
|
|
116523
|
-
|
|
116524
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_parent.js
|
|
116525
|
-
function parent(object2, path10) {
|
|
116526
|
-
return path10.length < 2 ? object2 : _baseGet_default(object2, _baseSlice_default(path10, 0, -1));
|
|
116527
|
-
}
|
|
116528
|
-
var _parent_default;
|
|
116529
|
-
var init__parent = __esm(() => {
|
|
116530
|
-
init__baseGet();
|
|
116531
|
-
init__baseSlice();
|
|
116532
|
-
_parent_default = parent;
|
|
116533
|
-
});
|
|
116534
|
-
|
|
116535
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/isEqual.js
|
|
116536
|
-
function isEqual(value, other2) {
|
|
116537
|
-
return _baseIsEqual_default(value, other2);
|
|
116538
|
-
}
|
|
116539
|
-
var isEqual_default;
|
|
116540
|
-
var init_isEqual = __esm(() => {
|
|
116541
|
-
init__baseIsEqual();
|
|
116542
|
-
isEqual_default = isEqual;
|
|
116543
|
-
});
|
|
116544
|
-
|
|
116545
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/negate.js
|
|
116546
|
-
function negate(predicate) {
|
|
116547
|
-
if (typeof predicate != "function") {
|
|
116548
|
-
throw new TypeError(FUNC_ERROR_TEXT3);
|
|
116549
|
-
}
|
|
116550
|
-
return function() {
|
|
116551
|
-
var args = arguments;
|
|
116552
|
-
switch (args.length) {
|
|
116553
|
-
case 0:
|
|
116554
|
-
return !predicate.call(this);
|
|
116555
|
-
case 1:
|
|
116556
|
-
return !predicate.call(this, args[0]);
|
|
116557
|
-
case 2:
|
|
116558
|
-
return !predicate.call(this, args[0], args[1]);
|
|
116559
|
-
case 3:
|
|
116560
|
-
return !predicate.call(this, args[0], args[1], args[2]);
|
|
116561
|
-
}
|
|
116562
|
-
return !predicate.apply(this, args);
|
|
116563
|
-
};
|
|
116564
|
-
}
|
|
116565
|
-
var FUNC_ERROR_TEXT3 = "Expected a function", negate_default;
|
|
116566
|
-
var init_negate = __esm(() => {
|
|
116567
|
-
negate_default = negate;
|
|
116568
|
-
});
|
|
116569
|
-
|
|
116570
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseUnset.js
|
|
116571
|
-
function baseUnset(object2, path10) {
|
|
116572
|
-
path10 = _castPath_default(path10, object2);
|
|
116573
|
-
var index = -1, length = path10.length;
|
|
116574
|
-
if (!length) {
|
|
116575
|
-
return true;
|
|
116576
|
-
}
|
|
116577
|
-
while (++index < length) {
|
|
116578
|
-
var key = _toKey_default(path10[index]);
|
|
116579
|
-
if (key === "__proto__" && !hasOwnProperty15.call(object2, "__proto__")) {
|
|
116580
|
-
return false;
|
|
116581
|
-
}
|
|
116582
|
-
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
116583
|
-
return false;
|
|
116584
|
-
}
|
|
116585
|
-
}
|
|
116586
|
-
var obj = _parent_default(object2, path10);
|
|
116587
|
-
return obj == null || delete obj[_toKey_default(last_default(path10))];
|
|
116588
|
-
}
|
|
116589
|
-
var objectProto17, hasOwnProperty15, _baseUnset_default;
|
|
116590
|
-
var init__baseUnset = __esm(() => {
|
|
116591
|
-
init__castPath();
|
|
116592
|
-
init_last();
|
|
116593
|
-
init__parent();
|
|
116594
|
-
init__toKey();
|
|
116595
|
-
objectProto17 = Object.prototype;
|
|
116596
|
-
hasOwnProperty15 = objectProto17.hasOwnProperty;
|
|
116597
|
-
_baseUnset_default = baseUnset;
|
|
116598
|
-
});
|
|
116599
|
-
|
|
116600
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_customOmitClone.js
|
|
116601
|
-
function customOmitClone(value) {
|
|
116602
|
-
return isPlainObject_default(value) ? undefined : value;
|
|
116603
|
-
}
|
|
116604
|
-
var _customOmitClone_default;
|
|
116605
|
-
var init__customOmitClone = __esm(() => {
|
|
116606
|
-
init_isPlainObject();
|
|
116607
|
-
_customOmitClone_default = customOmitClone;
|
|
116608
|
-
});
|
|
116609
|
-
|
|
116610
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/omit.js
|
|
116611
|
-
var CLONE_DEEP_FLAG2 = 1, CLONE_FLAT_FLAG2 = 2, CLONE_SYMBOLS_FLAG2 = 4, omit2, omit_default;
|
|
116612
|
-
var init_omit = __esm(() => {
|
|
116613
|
-
init__arrayMap();
|
|
116614
|
-
init__baseClone();
|
|
116615
|
-
init__baseUnset();
|
|
116616
|
-
init__castPath();
|
|
116617
|
-
init__copyObject();
|
|
116618
|
-
init__customOmitClone();
|
|
116619
|
-
init__flatRest();
|
|
116620
|
-
init__getAllKeysIn();
|
|
116621
|
-
omit2 = _flatRest_default(function(object2, paths2) {
|
|
116622
|
-
var result = {};
|
|
116623
|
-
if (object2 == null) {
|
|
116624
|
-
return result;
|
|
116625
|
-
}
|
|
116626
|
-
var isDeep = false;
|
|
116627
|
-
paths2 = _arrayMap_default(paths2, function(path10) {
|
|
116628
|
-
path10 = _castPath_default(path10, object2);
|
|
116629
|
-
isDeep || (isDeep = path10.length > 1);
|
|
116630
|
-
return path10;
|
|
116631
|
-
});
|
|
116632
|
-
_copyObject_default(object2, _getAllKeysIn_default(object2), result);
|
|
116633
|
-
if (isDeep) {
|
|
116634
|
-
result = _baseClone_default(result, CLONE_DEEP_FLAG2 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG2, _customOmitClone_default);
|
|
116635
|
-
}
|
|
116636
|
-
var length = paths2.length;
|
|
116637
|
-
while (length--) {
|
|
116638
|
-
_baseUnset_default(result, paths2[length]);
|
|
116639
|
-
}
|
|
116640
|
-
return result;
|
|
116641
|
-
});
|
|
116642
|
-
omit_default = omit2;
|
|
116643
|
-
});
|
|
116644
|
-
|
|
116645
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/partition.js
|
|
116646
|
-
var partition2, partition_default;
|
|
116647
|
-
var init_partition = __esm(() => {
|
|
116648
|
-
init__createAggregator();
|
|
116649
|
-
partition2 = _createAggregator_default(function(result, value, key) {
|
|
116650
|
-
result[key ? 0 : 1].push(value);
|
|
116651
|
-
}, function() {
|
|
116652
|
-
return [[], []];
|
|
116653
|
-
});
|
|
116654
|
-
partition_default = partition2;
|
|
116655
|
-
});
|
|
116656
|
-
|
|
116657
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseRandom.js
|
|
116658
|
-
function baseRandom(lower, upper) {
|
|
116659
|
-
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
116660
|
-
}
|
|
116661
|
-
var nativeFloor, nativeRandom, _baseRandom_default;
|
|
116662
|
-
var init__baseRandom = __esm(() => {
|
|
116663
|
-
nativeFloor = Math.floor;
|
|
116664
|
-
nativeRandom = Math.random;
|
|
116665
|
-
_baseRandom_default = baseRandom;
|
|
116666
|
-
});
|
|
116667
|
-
|
|
116668
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/reject.js
|
|
116669
|
-
function reject(collection, predicate) {
|
|
116670
|
-
var func = isArray_default(collection) ? _arrayFilter_default : _baseFilter_default;
|
|
116671
|
-
return func(collection, negate_default(_baseIteratee_default(predicate, 3)));
|
|
116672
|
-
}
|
|
116673
|
-
var reject_default;
|
|
116674
|
-
var init_reject2 = __esm(() => {
|
|
116675
|
-
init__arrayFilter();
|
|
116676
|
-
init__baseFilter();
|
|
116677
|
-
init__baseIteratee();
|
|
116678
|
-
init_isArray();
|
|
116679
|
-
init_negate();
|
|
116680
|
-
reject_default = reject;
|
|
116681
|
-
});
|
|
116682
|
-
|
|
116683
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_arraySample.js
|
|
116684
|
-
function arraySample(array2) {
|
|
116685
|
-
var length = array2.length;
|
|
116686
|
-
return length ? array2[_baseRandom_default(0, length - 1)] : undefined;
|
|
116687
|
-
}
|
|
116688
|
-
var _arraySample_default;
|
|
116689
|
-
var init__arraySample = __esm(() => {
|
|
116690
|
-
init__baseRandom();
|
|
116691
|
-
_arraySample_default = arraySample;
|
|
116692
|
-
});
|
|
116693
|
-
|
|
116694
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseSample.js
|
|
116695
|
-
function baseSample(collection) {
|
|
116696
|
-
return _arraySample_default(values_default(collection));
|
|
116697
|
-
}
|
|
116698
|
-
var _baseSample_default;
|
|
116699
|
-
var init__baseSample = __esm(() => {
|
|
116700
|
-
init__arraySample();
|
|
116701
|
-
init_values3();
|
|
116702
|
-
_baseSample_default = baseSample;
|
|
116703
|
-
});
|
|
116704
|
-
|
|
116705
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/sample.js
|
|
116706
|
-
function sample(collection) {
|
|
116707
|
-
var func = isArray_default(collection) ? _arraySample_default : _baseSample_default;
|
|
116708
|
-
return func(collection);
|
|
116709
|
-
}
|
|
116710
|
-
var sample_default;
|
|
116711
|
-
var init_sample = __esm(() => {
|
|
116712
|
-
init__arraySample();
|
|
116713
|
-
init__baseSample();
|
|
116714
|
-
init_isArray();
|
|
116715
|
-
sample_default = sample;
|
|
116716
|
-
});
|
|
116717
|
-
|
|
116718
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/setWith.js
|
|
116719
|
-
function setWith(object2, path10, value, customizer) {
|
|
116720
|
-
customizer = typeof customizer == "function" ? customizer : undefined;
|
|
116721
|
-
return object2 == null ? object2 : _baseSet_default(object2, path10, value, customizer);
|
|
116722
|
-
}
|
|
116723
|
-
var setWith_default;
|
|
116724
|
-
var init_setWith = __esm(() => {
|
|
116725
|
-
init__baseSet();
|
|
116726
|
-
setWith_default = setWith;
|
|
116727
|
-
});
|
|
116728
|
-
|
|
116729
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/throttle.js
|
|
116730
|
-
function throttle2(func, wait, options2) {
|
|
116731
|
-
var leading = true, trailing = true;
|
|
116732
|
-
if (typeof func != "function") {
|
|
116733
|
-
throw new TypeError(FUNC_ERROR_TEXT4);
|
|
116734
|
-
}
|
|
116735
|
-
if (isObject_default(options2)) {
|
|
116736
|
-
leading = "leading" in options2 ? !!options2.leading : leading;
|
|
116737
|
-
trailing = "trailing" in options2 ? !!options2.trailing : trailing;
|
|
116738
|
-
}
|
|
116739
|
-
return debounce_default(func, wait, {
|
|
116740
|
-
leading,
|
|
116741
|
-
maxWait: wait,
|
|
116742
|
-
trailing
|
|
116743
|
-
});
|
|
116744
|
-
}
|
|
116745
|
-
var FUNC_ERROR_TEXT4 = "Expected a function", throttle_default2;
|
|
116746
|
-
var init_throttle2 = __esm(() => {
|
|
116747
|
-
init_debounce();
|
|
116748
|
-
init_isObject();
|
|
116749
|
-
throttle_default2 = throttle2;
|
|
116750
|
-
});
|
|
116751
|
-
|
|
116752
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseZipObject.js
|
|
116753
|
-
function baseZipObject(props, values2, assignFunc) {
|
|
116754
|
-
var index = -1, length = props.length, valsLength = values2.length, result = {};
|
|
116755
|
-
while (++index < length) {
|
|
116756
|
-
var value = index < valsLength ? values2[index] : undefined;
|
|
116757
|
-
assignFunc(result, props[index], value);
|
|
116758
|
-
}
|
|
116759
|
-
return result;
|
|
116760
|
-
}
|
|
116761
|
-
var _baseZipObject_default;
|
|
116762
|
-
var init__baseZipObject = __esm(() => {
|
|
116763
|
-
_baseZipObject_default = baseZipObject;
|
|
116764
|
-
});
|
|
116765
|
-
|
|
116766
|
-
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/zipObject.js
|
|
116767
|
-
function zipObject(props, values2) {
|
|
116768
|
-
return _baseZipObject_default(props || [], values2 || [], _assignValue_default);
|
|
116769
|
-
}
|
|
116770
|
-
var zipObject_default;
|
|
116771
|
-
var init_zipObject = __esm(() => {
|
|
116772
|
-
init__assignValue();
|
|
116773
|
-
init__baseZipObject();
|
|
116774
|
-
zipObject_default = zipObject;
|
|
116775
|
-
});
|
|
116776
|
-
|
|
116777
115957
|
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/lodash.js
|
|
116778
115958
|
var init_lodash = __esm(() => {
|
|
116779
115959
|
init_memoize();
|
|
@@ -117117,7 +116297,7 @@ function ripGrepRaw(args, target, abortSignal, callback, singleThread = false) {
|
|
|
117117
116297
|
async function ripGrepFileCount(args, target, abortSignal) {
|
|
117118
116298
|
await codesignRipgrepIfNecessary();
|
|
117119
116299
|
const { rgPath, rgArgs } = ripgrepCommand();
|
|
117120
|
-
return new Promise((resolve13,
|
|
116300
|
+
return new Promise((resolve13, reject) => {
|
|
117121
116301
|
const child = spawn3(rgPath, [...rgArgs, ...args, target], {
|
|
117122
116302
|
signal: abortSignal,
|
|
117123
116303
|
env: getQueryEnvForSpawn2(),
|
|
@@ -117137,13 +116317,13 @@ async function ripGrepFileCount(args, target, abortSignal) {
|
|
|
117137
116317
|
if (code === 0 || code === 1)
|
|
117138
116318
|
resolve13(lines);
|
|
117139
116319
|
else
|
|
117140
|
-
|
|
116320
|
+
reject(new Error(`rg --files exited ${code}`));
|
|
117141
116321
|
});
|
|
117142
116322
|
child.on("error", (err) => {
|
|
117143
116323
|
if (settled)
|
|
117144
116324
|
return;
|
|
117145
116325
|
settled = true;
|
|
117146
|
-
|
|
116326
|
+
reject(err.code === "ENOENT" ? wrapRipgrepUnavailableError(err) : err);
|
|
117147
116327
|
});
|
|
117148
116328
|
});
|
|
117149
116329
|
}
|
|
@@ -117152,7 +116332,7 @@ async function ripGrep(args, target, abortSignal) {
|
|
|
117152
116332
|
testRipgrepOnFirstUse().catch((error41) => {
|
|
117153
116333
|
logError(error41);
|
|
117154
116334
|
});
|
|
117155
|
-
return new Promise((resolve13,
|
|
116335
|
+
return new Promise((resolve13, reject) => {
|
|
117156
116336
|
const handleResult3 = (error41, stdout, stderr, isRetry) => {
|
|
117157
116337
|
if (!error41) {
|
|
117158
116338
|
resolve13(stdout.trim().split(`
|
|
@@ -117165,7 +116345,7 @@ async function ripGrep(args, target, abortSignal) {
|
|
|
117165
116345
|
}
|
|
117166
116346
|
const CRITICAL_ERROR_CODES = ["ENOENT", "EACCES", "EPERM"];
|
|
117167
116347
|
if (CRITICAL_ERROR_CODES.includes(error41.code)) {
|
|
117168
|
-
|
|
116348
|
+
reject(error41.code === "ENOENT" ? wrapRipgrepUnavailableError(error41) : error41);
|
|
117169
116349
|
return;
|
|
117170
116350
|
}
|
|
117171
116351
|
if (!isRetry && isEagainError(stderr)) {
|
|
@@ -117192,7 +116372,7 @@ async function ripGrep(args, target, abortSignal) {
|
|
|
117192
116372
|
logError(error41);
|
|
117193
116373
|
}
|
|
117194
116374
|
if (isTimeout && lines.length === 0) {
|
|
117195
|
-
|
|
116375
|
+
reject(new RipgrepTimeoutError(`Ripgrep search timed out after ${getPlatform() === "wsl" ? 60 : 20} seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.`, lines));
|
|
117196
116376
|
return;
|
|
117197
116377
|
}
|
|
117198
116378
|
resolve13(lines);
|
|
@@ -120709,7 +119889,7 @@ function streamOnEnd() {
|
|
|
120709
119889
|
});
|
|
120710
119890
|
}
|
|
120711
119891
|
function readFileInRangeStreaming(filePath, offset, maxLines, maxBytes, truncateOnByteLimit, signal) {
|
|
120712
|
-
return new Promise((resolve15,
|
|
119892
|
+
return new Promise((resolve15, reject) => {
|
|
120713
119893
|
const state3 = {
|
|
120714
119894
|
stream: createReadStream2(filePath, {
|
|
120715
119895
|
encoding: "utf8",
|
|
@@ -120737,7 +119917,7 @@ function readFileInRangeStreaming(filePath, offset, maxLines, maxBytes, truncate
|
|
|
120737
119917
|
state3.stream.once("open", streamOnOpen.bind(state3));
|
|
120738
119918
|
state3.stream.on("data", streamOnData.bind(state3));
|
|
120739
119919
|
state3.stream.once("end", streamOnEnd.bind(state3));
|
|
120740
|
-
state3.stream.once("error",
|
|
119920
|
+
state3.stream.once("error", reject);
|
|
120741
119921
|
});
|
|
120742
119922
|
}
|
|
120743
119923
|
var FAST_PATH_MAX_SIZE, FileTooLargeError;
|
|
@@ -123233,6 +122413,131 @@ var init_plans = __esm(() => {
|
|
|
123233
122413
|
});
|
|
123234
122414
|
});
|
|
123235
122415
|
|
|
122416
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseSlice.js
|
|
122417
|
+
function baseSlice(array2, start, end) {
|
|
122418
|
+
var index = -1, length = array2.length;
|
|
122419
|
+
if (start < 0) {
|
|
122420
|
+
start = -start > length ? 0 : length + start;
|
|
122421
|
+
}
|
|
122422
|
+
end = end > length ? length : end;
|
|
122423
|
+
if (end < 0) {
|
|
122424
|
+
end += length;
|
|
122425
|
+
}
|
|
122426
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
122427
|
+
start >>>= 0;
|
|
122428
|
+
var result = Array(length);
|
|
122429
|
+
while (++index < length) {
|
|
122430
|
+
result[index] = array2[index + start];
|
|
122431
|
+
}
|
|
122432
|
+
return result;
|
|
122433
|
+
}
|
|
122434
|
+
var _baseSlice_default;
|
|
122435
|
+
var init__baseSlice = __esm(() => {
|
|
122436
|
+
_baseSlice_default = baseSlice;
|
|
122437
|
+
});
|
|
122438
|
+
|
|
122439
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_castSlice.js
|
|
122440
|
+
function castSlice(array2, start, end) {
|
|
122441
|
+
var length = array2.length;
|
|
122442
|
+
end = end === undefined ? length : end;
|
|
122443
|
+
return !start && end >= length ? array2 : _baseSlice_default(array2, start, end);
|
|
122444
|
+
}
|
|
122445
|
+
var _castSlice_default;
|
|
122446
|
+
var init__castSlice = __esm(() => {
|
|
122447
|
+
init__baseSlice();
|
|
122448
|
+
_castSlice_default = castSlice;
|
|
122449
|
+
});
|
|
122450
|
+
|
|
122451
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_hasUnicode.js
|
|
122452
|
+
function hasUnicode(string4) {
|
|
122453
|
+
return reHasUnicode.test(string4);
|
|
122454
|
+
}
|
|
122455
|
+
var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange, rsVarRange = "\\ufe0e\\ufe0f", rsZWJ = "\\u200d", reHasUnicode, _hasUnicode_default;
|
|
122456
|
+
var init__hasUnicode = __esm(() => {
|
|
122457
|
+
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
|
122458
|
+
reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
|
|
122459
|
+
_hasUnicode_default = hasUnicode;
|
|
122460
|
+
});
|
|
122461
|
+
|
|
122462
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_asciiToArray.js
|
|
122463
|
+
function asciiToArray(string4) {
|
|
122464
|
+
return string4.split("");
|
|
122465
|
+
}
|
|
122466
|
+
var _asciiToArray_default;
|
|
122467
|
+
var init__asciiToArray = __esm(() => {
|
|
122468
|
+
_asciiToArray_default = asciiToArray;
|
|
122469
|
+
});
|
|
122470
|
+
|
|
122471
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_unicodeToArray.js
|
|
122472
|
+
function unicodeToArray(string4) {
|
|
122473
|
+
return string4.match(reUnicode) || [];
|
|
122474
|
+
}
|
|
122475
|
+
var rsAstralRange2 = "\\ud800-\\udfff", rsComboMarksRange2 = "\\u0300-\\u036f", reComboHalfMarksRange2 = "\\ufe20-\\ufe2f", rsComboSymbolsRange2 = "\\u20d0-\\u20ff", rsComboRange2, rsVarRange2 = "\\ufe0e\\ufe0f", rsAstral, rsCombo, rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier, rsNonAstral, rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsZWJ2 = "\\u200d", reOptMod, rsOptVar, rsOptJoin, rsSeq, rsSymbol, reUnicode, _unicodeToArray_default;
|
|
122476
|
+
var init__unicodeToArray = __esm(() => {
|
|
122477
|
+
rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2;
|
|
122478
|
+
rsAstral = "[" + rsAstralRange2 + "]";
|
|
122479
|
+
rsCombo = "[" + rsComboRange2 + "]";
|
|
122480
|
+
rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
|
122481
|
+
rsNonAstral = "[^" + rsAstralRange2 + "]";
|
|
122482
|
+
reOptMod = rsModifier + "?";
|
|
122483
|
+
rsOptVar = "[" + rsVarRange2 + "]?";
|
|
122484
|
+
rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
|
122485
|
+
rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
122486
|
+
rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
|
|
122487
|
+
reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
|
|
122488
|
+
_unicodeToArray_default = unicodeToArray;
|
|
122489
|
+
});
|
|
122490
|
+
|
|
122491
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_stringToArray.js
|
|
122492
|
+
function stringToArray(string4) {
|
|
122493
|
+
return _hasUnicode_default(string4) ? _unicodeToArray_default(string4) : _asciiToArray_default(string4);
|
|
122494
|
+
}
|
|
122495
|
+
var _stringToArray_default;
|
|
122496
|
+
var init__stringToArray = __esm(() => {
|
|
122497
|
+
init__asciiToArray();
|
|
122498
|
+
init__hasUnicode();
|
|
122499
|
+
init__unicodeToArray();
|
|
122500
|
+
_stringToArray_default = stringToArray;
|
|
122501
|
+
});
|
|
122502
|
+
|
|
122503
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createCaseFirst.js
|
|
122504
|
+
function createCaseFirst(methodName) {
|
|
122505
|
+
return function(string4) {
|
|
122506
|
+
string4 = toString_default(string4);
|
|
122507
|
+
var strSymbols = _hasUnicode_default(string4) ? _stringToArray_default(string4) : undefined;
|
|
122508
|
+
var chr = strSymbols ? strSymbols[0] : string4.charAt(0);
|
|
122509
|
+
var trailing = strSymbols ? _castSlice_default(strSymbols, 1).join("") : string4.slice(1);
|
|
122510
|
+
return chr[methodName]() + trailing;
|
|
122511
|
+
};
|
|
122512
|
+
}
|
|
122513
|
+
var _createCaseFirst_default;
|
|
122514
|
+
var init__createCaseFirst = __esm(() => {
|
|
122515
|
+
init__castSlice();
|
|
122516
|
+
init__hasUnicode();
|
|
122517
|
+
init__stringToArray();
|
|
122518
|
+
init_toString();
|
|
122519
|
+
_createCaseFirst_default = createCaseFirst;
|
|
122520
|
+
});
|
|
122521
|
+
|
|
122522
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/upperFirst.js
|
|
122523
|
+
var upperFirst, upperFirst_default;
|
|
122524
|
+
var init_upperFirst = __esm(() => {
|
|
122525
|
+
init__createCaseFirst();
|
|
122526
|
+
upperFirst = _createCaseFirst_default("toUpperCase");
|
|
122527
|
+
upperFirst_default = upperFirst;
|
|
122528
|
+
});
|
|
122529
|
+
|
|
122530
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/capitalize.js
|
|
122531
|
+
function capitalize3(string4) {
|
|
122532
|
+
return upperFirst_default(toString_default(string4).toLowerCase());
|
|
122533
|
+
}
|
|
122534
|
+
var capitalize_default;
|
|
122535
|
+
var init_capitalize = __esm(() => {
|
|
122536
|
+
init_toString();
|
|
122537
|
+
init_upperFirst();
|
|
122538
|
+
capitalize_default = capitalize3;
|
|
122539
|
+
});
|
|
122540
|
+
|
|
123236
122541
|
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/index.js
|
|
123237
122542
|
var init_v3 = __esm(() => {
|
|
123238
122543
|
init_external2();
|
|
@@ -124053,7 +123358,7 @@ function parseMapDef(def2, refs) {
|
|
|
124053
123358
|
...refs,
|
|
124054
123359
|
currentPath: [...refs.currentPath, "items", "items", "0"]
|
|
124055
123360
|
}) || parseAnyDef(refs);
|
|
124056
|
-
const
|
|
123361
|
+
const values = parseDef(def2.valueType._def, {
|
|
124057
123362
|
...refs,
|
|
124058
123363
|
currentPath: [...refs.currentPath, "items", "items", "1"]
|
|
124059
123364
|
}) || parseAnyDef(refs);
|
|
@@ -124062,7 +123367,7 @@ function parseMapDef(def2, refs) {
|
|
|
124062
123367
|
maxItems: 125,
|
|
124063
123368
|
items: {
|
|
124064
123369
|
type: "array",
|
|
124065
|
-
items: [keys2,
|
|
123370
|
+
items: [keys2, values],
|
|
124066
123371
|
minItems: 2,
|
|
124067
123372
|
maxItems: 2
|
|
124068
123373
|
}
|
|
@@ -124081,7 +123386,7 @@ function parseNativeEnumDef(def2) {
|
|
|
124081
123386
|
return typeof object3[object3[key]] !== "number";
|
|
124082
123387
|
});
|
|
124083
123388
|
const actualValues = actualKeys.map((key) => object3[key]);
|
|
124084
|
-
const parsedTypes = Array.from(new Set(actualValues.map((
|
|
123389
|
+
const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values)));
|
|
124085
123390
|
return {
|
|
124086
123391
|
type: parsedTypes.length === 1 ? parsedTypes[0] === "string" ? "string" : "number" : ["string", "number"],
|
|
124087
123392
|
enum: actualValues
|
|
@@ -125243,9 +124548,9 @@ class Protocol {
|
|
|
125243
124548
|
}
|
|
125244
124549
|
request(request, resultSchema, options2) {
|
|
125245
124550
|
const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options2 ?? {};
|
|
125246
|
-
return new Promise((resolve16,
|
|
124551
|
+
return new Promise((resolve16, reject) => {
|
|
125247
124552
|
const earlyReject = (error41) => {
|
|
125248
|
-
|
|
124553
|
+
reject(error41);
|
|
125249
124554
|
};
|
|
125250
124555
|
if (!this._transport) {
|
|
125251
124556
|
earlyReject(new Error("Not connected"));
|
|
@@ -125307,24 +124612,24 @@ class Protocol {
|
|
|
125307
124612
|
}
|
|
125308
124613
|
}, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error42) => this._onerror(new Error(`Failed to send cancellation: ${error42}`)));
|
|
125309
124614
|
const error41 = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason));
|
|
125310
|
-
|
|
124615
|
+
reject(error41);
|
|
125311
124616
|
};
|
|
125312
124617
|
this._responseHandlers.set(messageId, (response) => {
|
|
125313
124618
|
if (options2?.signal?.aborted) {
|
|
125314
124619
|
return;
|
|
125315
124620
|
}
|
|
125316
124621
|
if (response instanceof Error) {
|
|
125317
|
-
return
|
|
124622
|
+
return reject(response);
|
|
125318
124623
|
}
|
|
125319
124624
|
try {
|
|
125320
124625
|
const parseResult = safeParse3(resultSchema, response.result);
|
|
125321
124626
|
if (!parseResult.success) {
|
|
125322
|
-
|
|
124627
|
+
reject(parseResult.error);
|
|
125323
124628
|
} else {
|
|
125324
124629
|
resolve16(parseResult.data);
|
|
125325
124630
|
}
|
|
125326
124631
|
} catch (error41) {
|
|
125327
|
-
|
|
124632
|
+
reject(error41);
|
|
125328
124633
|
}
|
|
125329
124634
|
});
|
|
125330
124635
|
options2?.signal?.addEventListener("abort", () => {
|
|
@@ -125350,12 +124655,12 @@ class Protocol {
|
|
|
125350
124655
|
timestamp: Date.now()
|
|
125351
124656
|
}).catch((error41) => {
|
|
125352
124657
|
this._cleanupTimeout(messageId);
|
|
125353
|
-
|
|
124658
|
+
reject(error41);
|
|
125354
124659
|
});
|
|
125355
124660
|
} else {
|
|
125356
124661
|
this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error41) => {
|
|
125357
124662
|
this._cleanupTimeout(messageId);
|
|
125358
|
-
|
|
124663
|
+
reject(error41);
|
|
125359
124664
|
});
|
|
125360
124665
|
}
|
|
125361
124666
|
});
|
|
@@ -125512,15 +124817,15 @@ class Protocol {
|
|
|
125512
124817
|
interval = task.pollInterval;
|
|
125513
124818
|
}
|
|
125514
124819
|
} catch {}
|
|
125515
|
-
return new Promise((resolve16,
|
|
124820
|
+
return new Promise((resolve16, reject) => {
|
|
125516
124821
|
if (signal.aborted) {
|
|
125517
|
-
|
|
124822
|
+
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
125518
124823
|
return;
|
|
125519
124824
|
}
|
|
125520
124825
|
const timeoutId = setTimeout(resolve16, interval);
|
|
125521
124826
|
signal.addEventListener("abort", () => {
|
|
125522
124827
|
clearTimeout(timeoutId);
|
|
125523
|
-
|
|
124828
|
+
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
125524
124829
|
}, { once: true });
|
|
125525
124830
|
});
|
|
125526
124831
|
}
|
|
@@ -125794,10 +125099,10 @@ var require_scope = __commonJS((exports) => {
|
|
|
125794
125099
|
};
|
|
125795
125100
|
|
|
125796
125101
|
class Scope {
|
|
125797
|
-
constructor({ prefixes, parent
|
|
125102
|
+
constructor({ prefixes, parent } = {}) {
|
|
125798
125103
|
this._names = {};
|
|
125799
125104
|
this._prefixes = prefixes;
|
|
125800
|
-
this._parent =
|
|
125105
|
+
this._parent = parent;
|
|
125801
125106
|
}
|
|
125802
125107
|
toName(nameOrPrefix) {
|
|
125803
125108
|
return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix);
|
|
@@ -125873,24 +125178,24 @@ var require_scope = __commonJS((exports) => {
|
|
|
125873
125178
|
return;
|
|
125874
125179
|
return vs.get(keyOrRef);
|
|
125875
125180
|
}
|
|
125876
|
-
scopeRefs(scopeName,
|
|
125877
|
-
return this._reduceValues(
|
|
125181
|
+
scopeRefs(scopeName, values = this._values) {
|
|
125182
|
+
return this._reduceValues(values, (name) => {
|
|
125878
125183
|
if (name.scopePath === undefined)
|
|
125879
125184
|
throw new Error(`CodeGen: name "${name}" has no value`);
|
|
125880
125185
|
return (0, code_1._)`${scopeName}${name.scopePath}`;
|
|
125881
125186
|
});
|
|
125882
125187
|
}
|
|
125883
|
-
scopeCode(
|
|
125884
|
-
return this._reduceValues(
|
|
125188
|
+
scopeCode(values = this._values, usedValues, getCode) {
|
|
125189
|
+
return this._reduceValues(values, (name) => {
|
|
125885
125190
|
if (name.value === undefined)
|
|
125886
125191
|
throw new Error(`CodeGen: name "${name}" has no value`);
|
|
125887
125192
|
return name.value.code;
|
|
125888
125193
|
}, usedValues, getCode);
|
|
125889
125194
|
}
|
|
125890
|
-
_reduceValues(
|
|
125195
|
+
_reduceValues(values, valueCode, usedValues = {}, getCode) {
|
|
125891
125196
|
let code = code_1.nil;
|
|
125892
|
-
for (const prefix in
|
|
125893
|
-
const vs =
|
|
125197
|
+
for (const prefix in values) {
|
|
125198
|
+
const vs = values[prefix];
|
|
125894
125199
|
if (!vs)
|
|
125895
125200
|
continue;
|
|
125896
125201
|
const nameSet = usedValues[prefix] = usedValues[prefix] || new Map;
|
|
@@ -133910,7 +133215,7 @@ class SSEClientTransport {
|
|
|
133910
133215
|
}
|
|
133911
133216
|
_startOrAuth() {
|
|
133912
133217
|
const fetchImpl = this?._eventSourceInit?.fetch ?? this._fetch ?? fetch;
|
|
133913
|
-
return new Promise((resolve16,
|
|
133218
|
+
return new Promise((resolve16, reject) => {
|
|
133914
133219
|
this._eventSource = new EventSource(this._url.href, {
|
|
133915
133220
|
...this._eventSourceInit,
|
|
133916
133221
|
fetch: async (url3, init) => {
|
|
@@ -133931,11 +133236,11 @@ class SSEClientTransport {
|
|
|
133931
133236
|
this._abortController = new AbortController;
|
|
133932
133237
|
this._eventSource.onerror = (event) => {
|
|
133933
133238
|
if (event.code === 401 && this._authProvider) {
|
|
133934
|
-
this._authThenStart().then(resolve16,
|
|
133239
|
+
this._authThenStart().then(resolve16, reject);
|
|
133935
133240
|
return;
|
|
133936
133241
|
}
|
|
133937
133242
|
const error41 = new SseError(event.code, event.message, event);
|
|
133938
|
-
|
|
133243
|
+
reject(error41);
|
|
133939
133244
|
this.onerror?.(error41);
|
|
133940
133245
|
};
|
|
133941
133246
|
this._eventSource.onopen = () => {};
|
|
@@ -133947,7 +133252,7 @@ class SSEClientTransport {
|
|
|
133947
133252
|
throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`);
|
|
133948
133253
|
}
|
|
133949
133254
|
} catch (error41) {
|
|
133950
|
-
|
|
133255
|
+
reject(error41);
|
|
133951
133256
|
this.onerror?.(error41);
|
|
133952
133257
|
this.close();
|
|
133953
133258
|
return;
|
|
@@ -134082,7 +133387,7 @@ class StdioClientTransport {
|
|
|
134082
133387
|
if (this._process) {
|
|
134083
133388
|
throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");
|
|
134084
133389
|
}
|
|
134085
|
-
return new Promise((resolve16,
|
|
133390
|
+
return new Promise((resolve16, reject) => {
|
|
134086
133391
|
this._process = import_cross_spawn3.default(this._serverParams.command, this._serverParams.args ?? [], {
|
|
134087
133392
|
env: {
|
|
134088
133393
|
...getDefaultEnvironment(),
|
|
@@ -134094,7 +133399,7 @@ class StdioClientTransport {
|
|
|
134094
133399
|
cwd: this._serverParams.cwd
|
|
134095
133400
|
});
|
|
134096
133401
|
this._process.on("error", (error41) => {
|
|
134097
|
-
|
|
133402
|
+
reject(error41);
|
|
134098
133403
|
this.onerror?.(error41);
|
|
134099
133404
|
});
|
|
134100
133405
|
this._process.on("spawn", () => {
|
|
@@ -134599,6 +133904,31 @@ var init_streamableHttp = __esm(() => {
|
|
|
134599
133904
|
};
|
|
134600
133905
|
});
|
|
134601
133906
|
|
|
133907
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseZipObject.js
|
|
133908
|
+
function baseZipObject(props, values, assignFunc) {
|
|
133909
|
+
var index = -1, length = props.length, valsLength = values.length, result = {};
|
|
133910
|
+
while (++index < length) {
|
|
133911
|
+
var value = index < valsLength ? values[index] : undefined;
|
|
133912
|
+
assignFunc(result, props[index], value);
|
|
133913
|
+
}
|
|
133914
|
+
return result;
|
|
133915
|
+
}
|
|
133916
|
+
var _baseZipObject_default;
|
|
133917
|
+
var init__baseZipObject = __esm(() => {
|
|
133918
|
+
_baseZipObject_default = baseZipObject;
|
|
133919
|
+
});
|
|
133920
|
+
|
|
133921
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/zipObject.js
|
|
133922
|
+
function zipObject(props, values) {
|
|
133923
|
+
return _baseZipObject_default(props || [], values || [], _assignValue_default);
|
|
133924
|
+
}
|
|
133925
|
+
var zipObject_default;
|
|
133926
|
+
var init_zipObject = __esm(() => {
|
|
133927
|
+
init__assignValue();
|
|
133928
|
+
init__baseZipObject();
|
|
133929
|
+
zipObject_default = zipObject;
|
|
133930
|
+
});
|
|
133931
|
+
|
|
134602
133932
|
// node_modules/.bun/p-map@7.0.4/node_modules/p-map/index.js
|
|
134603
133933
|
async function pMap(iterable, mapper, {
|
|
134604
133934
|
concurrency = Number.POSITIVE_INFINITY,
|
|
@@ -134625,7 +133955,7 @@ async function pMap(iterable, mapper, {
|
|
|
134625
133955
|
let currentIndex = 0;
|
|
134626
133956
|
const iterator2 = iterable[Symbol.iterator] === undefined ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
134627
133957
|
const signalListener = () => {
|
|
134628
|
-
|
|
133958
|
+
reject(signal.reason);
|
|
134629
133959
|
};
|
|
134630
133960
|
const cleanup = () => {
|
|
134631
133961
|
signal?.removeEventListener("abort", signalListener);
|
|
@@ -134634,7 +133964,7 @@ async function pMap(iterable, mapper, {
|
|
|
134634
133964
|
resolve_(value);
|
|
134635
133965
|
cleanup();
|
|
134636
133966
|
};
|
|
134637
|
-
const
|
|
133967
|
+
const reject = (reason) => {
|
|
134638
133968
|
isRejected = true;
|
|
134639
133969
|
isResolved = true;
|
|
134640
133970
|
reject_(reason);
|
|
@@ -134642,7 +133972,7 @@ async function pMap(iterable, mapper, {
|
|
|
134642
133972
|
};
|
|
134643
133973
|
if (signal) {
|
|
134644
133974
|
if (signal.aborted) {
|
|
134645
|
-
|
|
133975
|
+
reject(signal.reason);
|
|
134646
133976
|
}
|
|
134647
133977
|
signal.addEventListener("abort", signalListener, { once: true });
|
|
134648
133978
|
}
|
|
@@ -134657,7 +133987,7 @@ async function pMap(iterable, mapper, {
|
|
|
134657
133987
|
isIterableDone = true;
|
|
134658
133988
|
if (resolvingCount === 0 && !isResolved) {
|
|
134659
133989
|
if (!stopOnError && errors4.length > 0) {
|
|
134660
|
-
|
|
133990
|
+
reject(new AggregateError(errors4));
|
|
134661
133991
|
return;
|
|
134662
133992
|
}
|
|
134663
133993
|
isResolved = true;
|
|
@@ -134692,14 +134022,14 @@ async function pMap(iterable, mapper, {
|
|
|
134692
134022
|
await next();
|
|
134693
134023
|
} catch (error41) {
|
|
134694
134024
|
if (stopOnError) {
|
|
134695
|
-
|
|
134025
|
+
reject(error41);
|
|
134696
134026
|
} else {
|
|
134697
134027
|
errors4.push(error41);
|
|
134698
134028
|
resolvingCount--;
|
|
134699
134029
|
try {
|
|
134700
134030
|
await next();
|
|
134701
134031
|
} catch (error42) {
|
|
134702
|
-
|
|
134032
|
+
reject(error42);
|
|
134703
134033
|
}
|
|
134704
134034
|
}
|
|
134705
134035
|
}
|
|
@@ -134710,7 +134040,7 @@ async function pMap(iterable, mapper, {
|
|
|
134710
134040
|
try {
|
|
134711
134041
|
await next();
|
|
134712
134042
|
} catch (error41) {
|
|
134713
|
-
|
|
134043
|
+
reject(error41);
|
|
134714
134044
|
break;
|
|
134715
134045
|
}
|
|
134716
134046
|
if (isIterableDone || isRejected) {
|
|
@@ -138482,6 +137812,95 @@ var init_MCPTool = __esm(() => {
|
|
|
138482
137812
|
});
|
|
138483
137813
|
});
|
|
138484
137814
|
|
|
137815
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createBaseEach.js
|
|
137816
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
137817
|
+
return function(collection, iteratee) {
|
|
137818
|
+
if (collection == null) {
|
|
137819
|
+
return collection;
|
|
137820
|
+
}
|
|
137821
|
+
if (!isArrayLike_default(collection)) {
|
|
137822
|
+
return eachFunc(collection, iteratee);
|
|
137823
|
+
}
|
|
137824
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
137825
|
+
while (fromRight ? index-- : ++index < length) {
|
|
137826
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
137827
|
+
break;
|
|
137828
|
+
}
|
|
137829
|
+
}
|
|
137830
|
+
return collection;
|
|
137831
|
+
};
|
|
137832
|
+
}
|
|
137833
|
+
var _createBaseEach_default;
|
|
137834
|
+
var init__createBaseEach = __esm(() => {
|
|
137835
|
+
init_isArrayLike();
|
|
137836
|
+
_createBaseEach_default = createBaseEach;
|
|
137837
|
+
});
|
|
137838
|
+
|
|
137839
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseEach.js
|
|
137840
|
+
var baseEach, _baseEach_default;
|
|
137841
|
+
var init__baseEach = __esm(() => {
|
|
137842
|
+
init__baseForOwn();
|
|
137843
|
+
init__createBaseEach();
|
|
137844
|
+
baseEach = _createBaseEach_default(_baseForOwn_default);
|
|
137845
|
+
_baseEach_default = baseEach;
|
|
137846
|
+
});
|
|
137847
|
+
|
|
137848
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseFilter.js
|
|
137849
|
+
function baseFilter(collection, predicate) {
|
|
137850
|
+
var result = [];
|
|
137851
|
+
_baseEach_default(collection, function(value, index, collection2) {
|
|
137852
|
+
if (predicate(value, index, collection2)) {
|
|
137853
|
+
result.push(value);
|
|
137854
|
+
}
|
|
137855
|
+
});
|
|
137856
|
+
return result;
|
|
137857
|
+
}
|
|
137858
|
+
var _baseFilter_default;
|
|
137859
|
+
var init__baseFilter = __esm(() => {
|
|
137860
|
+
init__baseEach();
|
|
137861
|
+
_baseFilter_default = baseFilter;
|
|
137862
|
+
});
|
|
137863
|
+
|
|
137864
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/negate.js
|
|
137865
|
+
function negate(predicate) {
|
|
137866
|
+
if (typeof predicate != "function") {
|
|
137867
|
+
throw new TypeError(FUNC_ERROR_TEXT2);
|
|
137868
|
+
}
|
|
137869
|
+
return function() {
|
|
137870
|
+
var args = arguments;
|
|
137871
|
+
switch (args.length) {
|
|
137872
|
+
case 0:
|
|
137873
|
+
return !predicate.call(this);
|
|
137874
|
+
case 1:
|
|
137875
|
+
return !predicate.call(this, args[0]);
|
|
137876
|
+
case 2:
|
|
137877
|
+
return !predicate.call(this, args[0], args[1]);
|
|
137878
|
+
case 3:
|
|
137879
|
+
return !predicate.call(this, args[0], args[1], args[2]);
|
|
137880
|
+
}
|
|
137881
|
+
return !predicate.apply(this, args);
|
|
137882
|
+
};
|
|
137883
|
+
}
|
|
137884
|
+
var FUNC_ERROR_TEXT2 = "Expected a function", negate_default;
|
|
137885
|
+
var init_negate = __esm(() => {
|
|
137886
|
+
negate_default = negate;
|
|
137887
|
+
});
|
|
137888
|
+
|
|
137889
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/reject.js
|
|
137890
|
+
function reject(collection, predicate) {
|
|
137891
|
+
var func = isArray_default(collection) ? _arrayFilter_default : _baseFilter_default;
|
|
137892
|
+
return func(collection, negate_default(_baseIteratee_default(predicate, 3)));
|
|
137893
|
+
}
|
|
137894
|
+
var reject_default;
|
|
137895
|
+
var init_reject2 = __esm(() => {
|
|
137896
|
+
init__arrayFilter();
|
|
137897
|
+
init__baseFilter();
|
|
137898
|
+
init__baseIteratee();
|
|
137899
|
+
init_isArray();
|
|
137900
|
+
init_negate();
|
|
137901
|
+
reject_default = reject;
|
|
137902
|
+
});
|
|
137903
|
+
|
|
138485
137904
|
// node_modules/.bun/cssfilter@0.0.10/node_modules/cssfilter/lib/default.js
|
|
138486
137905
|
var require_default = __commonJS((exports) => {
|
|
138487
137906
|
function getDefaultWhiteList() {
|
|
@@ -142596,10 +142015,10 @@ function saveMcpServerUserConfig(pluginId, serverName, config2, schema) {
|
|
|
142596
142015
|
throw new Error(`Failed to save user configuration for ${pluginId}/${serverName}: ${errorObj.message}`);
|
|
142597
142016
|
}
|
|
142598
142017
|
}
|
|
142599
|
-
function validateUserConfig2(
|
|
142018
|
+
function validateUserConfig2(values, schema) {
|
|
142600
142019
|
const errors4 = [];
|
|
142601
142020
|
for (const [key, fieldSchema] of Object.entries(schema)) {
|
|
142602
|
-
const value =
|
|
142021
|
+
const value = values[key];
|
|
142603
142022
|
if (fieldSchema.required && (value === undefined || value === "")) {
|
|
142604
142023
|
errors4.push(`${fieldSchema.title || key} is required but not provided`);
|
|
142605
142024
|
continue;
|
|
@@ -144634,10 +144053,10 @@ function getPluginStorageId(plugin) {
|
|
|
144634
144053
|
function clearPluginOptionsCache() {
|
|
144635
144054
|
loadPluginOptions.cache?.clear?.();
|
|
144636
144055
|
}
|
|
144637
|
-
function savePluginOptions(pluginId,
|
|
144056
|
+
function savePluginOptions(pluginId, values, schema) {
|
|
144638
144057
|
const nonSensitive = {};
|
|
144639
144058
|
const sensitive = {};
|
|
144640
|
-
for (const [key, value] of Object.entries(
|
|
144059
|
+
for (const [key, value] of Object.entries(values)) {
|
|
144641
144060
|
if (schema[key]?.sensitive === true) {
|
|
144642
144061
|
sensitive[key] = String(value);
|
|
144643
144062
|
} else {
|
|
@@ -145386,6 +144805,16 @@ var init_gitAvailability = __esm(() => {
|
|
|
145386
144805
|
});
|
|
145387
144806
|
});
|
|
145388
144807
|
|
|
144808
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/isEqual.js
|
|
144809
|
+
function isEqual(value, other2) {
|
|
144810
|
+
return _baseIsEqual_default(value, other2);
|
|
144811
|
+
}
|
|
144812
|
+
var isEqual_default;
|
|
144813
|
+
var init_isEqual = __esm(() => {
|
|
144814
|
+
init__baseIsEqual();
|
|
144815
|
+
isEqual_default = isEqual;
|
|
144816
|
+
});
|
|
144817
|
+
|
|
145389
144818
|
// src/capabilities/commands/cacheControl.ts
|
|
145390
144819
|
function registerCommandCacheControl(impl) {
|
|
145391
144820
|
_clearCommandMemoizationCaches = impl.clearCommandMemoizationCaches;
|
|
@@ -149309,26 +148738,26 @@ function createAbortController(maxListeners = DEFAULT_MAX_LISTENERS) {
|
|
|
149309
148738
|
return controller;
|
|
149310
148739
|
}
|
|
149311
148740
|
function propagateAbort(weakChild) {
|
|
149312
|
-
const
|
|
149313
|
-
weakChild.deref()?.abort(
|
|
148741
|
+
const parent = this.deref();
|
|
148742
|
+
weakChild.deref()?.abort(parent?.signal.reason);
|
|
149314
148743
|
}
|
|
149315
148744
|
function removeAbortHandler(weakHandler) {
|
|
149316
|
-
const
|
|
148745
|
+
const parent = this.deref();
|
|
149317
148746
|
const handler5 = weakHandler.deref();
|
|
149318
|
-
if (
|
|
149319
|
-
|
|
148747
|
+
if (parent && handler5) {
|
|
148748
|
+
parent.signal.removeEventListener("abort", handler5);
|
|
149320
148749
|
}
|
|
149321
148750
|
}
|
|
149322
|
-
function createChildAbortController(
|
|
148751
|
+
function createChildAbortController(parent, maxListeners) {
|
|
149323
148752
|
const child = createAbortController(maxListeners);
|
|
149324
|
-
if (
|
|
149325
|
-
child.abort(
|
|
148753
|
+
if (parent.signal.aborted) {
|
|
148754
|
+
child.abort(parent.signal.reason);
|
|
149326
148755
|
return child;
|
|
149327
148756
|
}
|
|
149328
148757
|
const weakChild = new WeakRef(child);
|
|
149329
|
-
const weakParent = new WeakRef(
|
|
148758
|
+
const weakParent = new WeakRef(parent);
|
|
149330
148759
|
const handler5 = propagateAbort.bind(weakParent, weakChild);
|
|
149331
|
-
|
|
148760
|
+
parent.signal.addEventListener("abort", handler5, { once: true });
|
|
149332
148761
|
child.signal.addEventListener("abort", removeAbortHandler.bind(weakParent, new WeakRef(handler5)), { once: true });
|
|
149333
148762
|
return child;
|
|
149334
148763
|
}
|
|
@@ -149727,8 +149156,8 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149727
149156
|
response.ignoreMatch();
|
|
149728
149157
|
}
|
|
149729
149158
|
}
|
|
149730
|
-
function beginKeywords(mode,
|
|
149731
|
-
if (!
|
|
149159
|
+
function beginKeywords(mode, parent) {
|
|
149160
|
+
if (!parent)
|
|
149732
149161
|
return;
|
|
149733
149162
|
if (!mode.beginKeywords)
|
|
149734
149163
|
return;
|
|
@@ -149901,20 +149330,20 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149901
149330
|
}
|
|
149902
149331
|
return mm;
|
|
149903
149332
|
}
|
|
149904
|
-
function compileMode(mode,
|
|
149333
|
+
function compileMode(mode, parent) {
|
|
149905
149334
|
const cmode = mode;
|
|
149906
149335
|
if (mode.isCompiled)
|
|
149907
149336
|
return cmode;
|
|
149908
149337
|
[
|
|
149909
149338
|
compileMatch
|
|
149910
|
-
].forEach((ext) => ext(mode,
|
|
149911
|
-
language.compilerExtensions.forEach((ext) => ext(mode,
|
|
149339
|
+
].forEach((ext) => ext(mode, parent));
|
|
149340
|
+
language.compilerExtensions.forEach((ext) => ext(mode, parent));
|
|
149912
149341
|
mode.__beforeBegin = null;
|
|
149913
149342
|
[
|
|
149914
149343
|
beginKeywords,
|
|
149915
149344
|
compileIllegal,
|
|
149916
149345
|
compileRelevance
|
|
149917
|
-
].forEach((ext) => ext(mode,
|
|
149346
|
+
].forEach((ext) => ext(mode, parent));
|
|
149918
149347
|
mode.isCompiled = true;
|
|
149919
149348
|
let keywordPattern = null;
|
|
149920
149349
|
if (typeof mode.keywords === "object") {
|
|
@@ -149929,7 +149358,7 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149929
149358
|
}
|
|
149930
149359
|
keywordPattern = keywordPattern || mode.lexemes || /\w+/;
|
|
149931
149360
|
cmode.keywordPatternRe = langRe(keywordPattern, true);
|
|
149932
|
-
if (
|
|
149361
|
+
if (parent) {
|
|
149933
149362
|
if (!mode.begin)
|
|
149934
149363
|
mode.begin = /\B|\b/;
|
|
149935
149364
|
cmode.beginRe = langRe(mode.begin);
|
|
@@ -149940,8 +149369,8 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149940
149369
|
if (mode.end)
|
|
149941
149370
|
cmode.endRe = langRe(mode.end);
|
|
149942
149371
|
cmode.terminatorEnd = source(mode.end) || "";
|
|
149943
|
-
if (mode.endsWithParent &&
|
|
149944
|
-
cmode.terminatorEnd += (mode.end ? "|" : "") +
|
|
149372
|
+
if (mode.endsWithParent && parent.terminatorEnd) {
|
|
149373
|
+
cmode.terminatorEnd += (mode.end ? "|" : "") + parent.terminatorEnd;
|
|
149945
149374
|
}
|
|
149946
149375
|
}
|
|
149947
149376
|
if (mode.illegal)
|
|
@@ -149955,7 +149384,7 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149955
149384
|
compileMode(c6, cmode);
|
|
149956
149385
|
});
|
|
149957
149386
|
if (mode.starts) {
|
|
149958
|
-
compileMode(mode.starts,
|
|
149387
|
+
compileMode(mode.starts, parent);
|
|
149959
149388
|
}
|
|
149960
149389
|
cmode.matcher = buildModeRegex(cmode);
|
|
149961
149390
|
return cmode;
|
|
@@ -175286,7 +174715,7 @@ var require_r = __commonJS((exports, module) => {
|
|
|
175286
174715
|
built_in: "LETTERS letters month.abb month.name pi T F " + "abs acos acosh all any anyNA Arg as.call as.character " + "as.complex as.double as.environment as.integer as.logical " + "as.null.default as.numeric as.raw asin asinh atan atanh attr " + "attributes baseenv browser c call ceiling class Conj cos cosh " + "cospi cummax cummin cumprod cumsum digamma dim dimnames " + "emptyenv exp expression floor forceAndCall gamma gc.time " + "globalenv Im interactive invisible is.array is.atomic is.call " + "is.character is.complex is.double is.environment is.expression " + "is.finite is.function is.infinite is.integer is.language " + "is.list is.logical is.matrix is.na is.name is.nan is.null " + "is.numeric is.object is.pairlist is.raw is.recursive is.single " + "is.symbol lazyLoadDBfetch length lgamma list log max min " + "missing Mod names nargs nzchar oldClass on.exit pos.to.env " + "proc.time prod quote range Re rep retracemem return round " + "seq_along seq_len seq.int sign signif sin sinh sinpi sqrt " + "standardGeneric substitute sum switch tan tanh tanpi tracemem " + "trigamma trunc unclass untracemem UseMethod xtfrm"
|
|
175287
174716
|
},
|
|
175288
174717
|
compilerExtensions: [
|
|
175289
|
-
(mode,
|
|
174718
|
+
(mode, parent) => {
|
|
175290
174719
|
if (!mode.beforeMatch)
|
|
175291
174720
|
return;
|
|
175292
174721
|
if (mode.starts)
|
|
@@ -185140,9 +184569,9 @@ var require_parser_mixin = __commonJS((exports, module) => {
|
|
|
185140
184569
|
orig._insertFakeRootElement.call(this);
|
|
185141
184570
|
this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current, null);
|
|
185142
184571
|
},
|
|
185143
|
-
_appendCommentNode(token,
|
|
185144
|
-
orig._appendCommentNode.call(this, token,
|
|
185145
|
-
const children = this.treeAdapter.getChildNodes(
|
|
184572
|
+
_appendCommentNode(token, parent) {
|
|
184573
|
+
orig._appendCommentNode.call(this, token, parent);
|
|
184574
|
+
const children = this.treeAdapter.getChildNodes(parent);
|
|
185146
184575
|
const commentNode = children[children.length - 1];
|
|
185147
184576
|
this.treeAdapter.setNodeSourceCodeLocation(commentNode, token.location);
|
|
185148
184577
|
},
|
|
@@ -185153,8 +184582,8 @@ var require_parser_mixin = __commonJS((exports, module) => {
|
|
|
185153
184582
|
_insertCharacters(token) {
|
|
185154
184583
|
orig._insertCharacters.call(this, token);
|
|
185155
184584
|
const hasFosterParent = this._shouldFosterParentOnInsertion();
|
|
185156
|
-
const
|
|
185157
|
-
const siblings = this.treeAdapter.getChildNodes(
|
|
184585
|
+
const parent = hasFosterParent && mxn.lastFosterParentingLocation.parent || this.openElements.currentTmplContent || this.openElements.current;
|
|
184586
|
+
const siblings = this.treeAdapter.getChildNodes(parent);
|
|
185158
184587
|
const textNodeIdx = hasFosterParent && mxn.lastFosterParentingLocation.beforeElement ? siblings.indexOf(mxn.lastFosterParentingLocation.beforeElement) - 1 : siblings.length - 1;
|
|
185159
184588
|
const textNode = siblings[textNodeIdx];
|
|
185160
184589
|
const tnLoc = this.treeAdapter.getNodeSourceCodeLocation(textNode);
|
|
@@ -186293,8 +185722,8 @@ var require_parser4 = __commonJS((exports, module) => {
|
|
|
186293
185722
|
if (this._shouldFosterParentOnInsertion()) {
|
|
186294
185723
|
this._fosterParentElement(element);
|
|
186295
185724
|
} else {
|
|
186296
|
-
const
|
|
186297
|
-
this.treeAdapter.appendChild(
|
|
185725
|
+
const parent = this.openElements.currentTmplContent || this.openElements.current;
|
|
185726
|
+
this.treeAdapter.appendChild(parent, element);
|
|
186298
185727
|
}
|
|
186299
185728
|
}
|
|
186300
185729
|
_appendElement(token, namespaceURI) {
|
|
@@ -186323,16 +185752,16 @@ var require_parser4 = __commonJS((exports, module) => {
|
|
|
186323
185752
|
this.treeAdapter.appendChild(this.openElements.current, element);
|
|
186324
185753
|
this.openElements.push(element);
|
|
186325
185754
|
}
|
|
186326
|
-
_appendCommentNode(token,
|
|
185755
|
+
_appendCommentNode(token, parent) {
|
|
186327
185756
|
const commentNode = this.treeAdapter.createCommentNode(token.data);
|
|
186328
|
-
this.treeAdapter.appendChild(
|
|
185757
|
+
this.treeAdapter.appendChild(parent, commentNode);
|
|
186329
185758
|
}
|
|
186330
185759
|
_insertCharacters(token) {
|
|
186331
185760
|
if (this._shouldFosterParentOnInsertion()) {
|
|
186332
185761
|
this._fosterParentText(token.chars);
|
|
186333
185762
|
} else {
|
|
186334
|
-
const
|
|
186335
|
-
this.treeAdapter.insertText(
|
|
185763
|
+
const parent = this.openElements.currentTmplContent || this.openElements.current;
|
|
185764
|
+
this.treeAdapter.insertText(parent, token.chars);
|
|
186336
185765
|
}
|
|
186337
185766
|
}
|
|
186338
185767
|
_adoptNodes(donor, recipient) {
|
|
@@ -188157,10 +187586,10 @@ var require_serializer = __commonJS((exports, module) => {
|
|
|
188157
187586
|
}
|
|
188158
187587
|
_serializeTextNode(node) {
|
|
188159
187588
|
const content = this.treeAdapter.getTextNodeContent(node);
|
|
188160
|
-
const
|
|
187589
|
+
const parent = this.treeAdapter.getParentNode(node);
|
|
188161
187590
|
let parentTn = undefined;
|
|
188162
|
-
if (
|
|
188163
|
-
parentTn = this.treeAdapter.getTagName(
|
|
187591
|
+
if (parent && this.treeAdapter.isElementNode(parent)) {
|
|
187592
|
+
parentTn = this.treeAdapter.getTagName(parent);
|
|
188164
187593
|
}
|
|
188165
187594
|
if (parentTn === $2.STYLE || parentTn === $2.SCRIPT || parentTn === $2.XMP || parentTn === $2.IFRAME || parentTn === $2.NOEMBED || parentTn === $2.NOFRAMES || parentTn === $2.PLAINTEXT || parentTn === $2.NOSCRIPT) {
|
|
188166
187595
|
this.html += content;
|
|
@@ -190198,22 +189627,22 @@ var require_source = __commonJS((exports, module) => {
|
|
|
190198
189627
|
}
|
|
190199
189628
|
}
|
|
190200
189629
|
});
|
|
190201
|
-
var createStyler2 = (open7, close,
|
|
189630
|
+
var createStyler2 = (open7, close, parent) => {
|
|
190202
189631
|
let openAll;
|
|
190203
189632
|
let closeAll;
|
|
190204
|
-
if (
|
|
189633
|
+
if (parent === undefined) {
|
|
190205
189634
|
openAll = open7;
|
|
190206
189635
|
closeAll = close;
|
|
190207
189636
|
} else {
|
|
190208
|
-
openAll =
|
|
190209
|
-
closeAll = close +
|
|
189637
|
+
openAll = parent.openAll + open7;
|
|
189638
|
+
closeAll = close + parent.closeAll;
|
|
190210
189639
|
}
|
|
190211
189640
|
return {
|
|
190212
189641
|
open: open7,
|
|
190213
189642
|
close,
|
|
190214
189643
|
openAll,
|
|
190215
189644
|
closeAll,
|
|
190216
|
-
parent
|
|
189645
|
+
parent
|
|
190217
189646
|
};
|
|
190218
189647
|
};
|
|
190219
189648
|
var createBuilder2 = (self2, _styler, _isEmpty) => {
|
|
@@ -190896,8 +190325,8 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
190896
190325
|
delete mode.className;
|
|
190897
190326
|
}
|
|
190898
190327
|
}
|
|
190899
|
-
function beginKeywords(mode,
|
|
190900
|
-
if (!
|
|
190328
|
+
function beginKeywords(mode, parent) {
|
|
190329
|
+
if (!parent)
|
|
190901
190330
|
return;
|
|
190902
190331
|
if (!mode.beginKeywords)
|
|
190903
190332
|
return;
|
|
@@ -190925,7 +190354,7 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
190925
190354
|
if (mode.relevance === undefined)
|
|
190926
190355
|
mode.relevance = 1;
|
|
190927
190356
|
}
|
|
190928
|
-
var beforeMatchExt = (mode,
|
|
190357
|
+
var beforeMatchExt = (mode, parent) => {
|
|
190929
190358
|
if (!mode.beforeMatch)
|
|
190930
190359
|
return;
|
|
190931
190360
|
if (mode.starts)
|
|
@@ -191163,7 +190592,7 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191163
190592
|
}
|
|
191164
190593
|
return mm;
|
|
191165
190594
|
}
|
|
191166
|
-
function compileMode(mode,
|
|
190595
|
+
function compileMode(mode, parent) {
|
|
191167
190596
|
const cmode = mode;
|
|
191168
190597
|
if (mode.isCompiled)
|
|
191169
190598
|
return cmode;
|
|
@@ -191172,14 +190601,14 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191172
190601
|
compileMatch,
|
|
191173
190602
|
MultiClass,
|
|
191174
190603
|
beforeMatchExt
|
|
191175
|
-
].forEach((ext) => ext(mode,
|
|
191176
|
-
language.compilerExtensions.forEach((ext) => ext(mode,
|
|
190604
|
+
].forEach((ext) => ext(mode, parent));
|
|
190605
|
+
language.compilerExtensions.forEach((ext) => ext(mode, parent));
|
|
191177
190606
|
mode.__beforeBegin = null;
|
|
191178
190607
|
[
|
|
191179
190608
|
beginKeywords,
|
|
191180
190609
|
compileIllegal,
|
|
191181
190610
|
compileRelevance
|
|
191182
|
-
].forEach((ext) => ext(mode,
|
|
190611
|
+
].forEach((ext) => ext(mode, parent));
|
|
191183
190612
|
mode.isCompiled = true;
|
|
191184
190613
|
let keywordPattern = null;
|
|
191185
190614
|
if (typeof mode.keywords === "object" && mode.keywords.$pattern) {
|
|
@@ -191192,7 +190621,7 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191192
190621
|
mode.keywords = compileKeywords(mode.keywords, language.case_insensitive);
|
|
191193
190622
|
}
|
|
191194
190623
|
cmode.keywordPatternRe = langRe(keywordPattern, true);
|
|
191195
|
-
if (
|
|
190624
|
+
if (parent) {
|
|
191196
190625
|
if (!mode.begin)
|
|
191197
190626
|
mode.begin = /\B|\b/;
|
|
191198
190627
|
cmode.beginRe = langRe(cmode.begin);
|
|
@@ -191201,8 +190630,8 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191201
190630
|
if (mode.end)
|
|
191202
190631
|
cmode.endRe = langRe(cmode.end);
|
|
191203
190632
|
cmode.terminatorEnd = source(cmode.end) || "";
|
|
191204
|
-
if (mode.endsWithParent &&
|
|
191205
|
-
cmode.terminatorEnd += (mode.end ? "|" : "") +
|
|
190633
|
+
if (mode.endsWithParent && parent.terminatorEnd) {
|
|
190634
|
+
cmode.terminatorEnd += (mode.end ? "|" : "") + parent.terminatorEnd;
|
|
191206
190635
|
}
|
|
191207
190636
|
}
|
|
191208
190637
|
if (mode.illegal)
|
|
@@ -191216,7 +190645,7 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191216
190645
|
compileMode(c6, cmode);
|
|
191217
190646
|
});
|
|
191218
190647
|
if (mode.starts) {
|
|
191219
|
-
compileMode(mode.starts,
|
|
190648
|
+
compileMode(mode.starts, parent);
|
|
191220
190649
|
}
|
|
191221
190650
|
cmode.matcher = buildModeRegex(cmode);
|
|
191222
190651
|
return cmode;
|
|
@@ -242319,8 +241748,8 @@ async function toArray2(generator) {
|
|
|
242319
241748
|
}
|
|
242320
241749
|
return result;
|
|
242321
241750
|
}
|
|
242322
|
-
async function* fromArray(
|
|
242323
|
-
for (const value of
|
|
241751
|
+
async function* fromArray(values) {
|
|
241752
|
+
for (const value of values) {
|
|
242324
241753
|
yield value;
|
|
242325
241754
|
}
|
|
242326
241755
|
}
|
|
@@ -244483,7 +243912,7 @@ function getAnthropicEnvMetadata() {
|
|
|
244483
243912
|
function getBuildAgeMinutes() {
|
|
244484
243913
|
if (false)
|
|
244485
243914
|
;
|
|
244486
|
-
const buildTime = new Date("2026-05-
|
|
243915
|
+
const buildTime = new Date("2026-05-18T09:28:09.100Z").getTime();
|
|
244487
243916
|
if (isNaN(buildTime))
|
|
244488
243917
|
return;
|
|
244489
243918
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -244651,9 +244080,9 @@ function logAPISuccess({
|
|
|
244651
244080
|
const isNonInteractiveSession = getIsNonInteractiveSession();
|
|
244652
244081
|
const isPostCompaction = consumePostCompaction();
|
|
244653
244082
|
const hasPrintFlag = process.argv.includes("-p") || process.argv.includes("--print");
|
|
244654
|
-
const
|
|
244083
|
+
const now = Date.now();
|
|
244655
244084
|
const lastCompletion = getLastApiCompletionTimestamp();
|
|
244656
|
-
const timeSinceLastApiCallMs = lastCompletion !== null ?
|
|
244085
|
+
const timeSinceLastApiCallMs = lastCompletion !== null ? now - lastCompletion : undefined;
|
|
244657
244086
|
const invocation = consumeInvokingRequestId();
|
|
244658
244087
|
logEvent("tengu_api_success", {
|
|
244659
244088
|
model,
|
|
@@ -244719,7 +244148,7 @@ function logAPISuccess({
|
|
|
244719
244148
|
...getAnthropicEnvMetadata(),
|
|
244720
244149
|
timeSinceLastApiCallMs
|
|
244721
244150
|
});
|
|
244722
|
-
setLastApiCompletionTimestamp(
|
|
244151
|
+
setLastApiCompletionTimestamp(now);
|
|
244723
244152
|
}
|
|
244724
244153
|
function logAPISuccessAndDuration({
|
|
244725
244154
|
model,
|
|
@@ -246129,9 +245558,9 @@ function* normalizeMessage(message) {
|
|
|
246129
245558
|
break;
|
|
246130
245559
|
}
|
|
246131
245560
|
const trackingKey = message.parentToolUseID;
|
|
246132
|
-
const
|
|
245561
|
+
const now = Date.now();
|
|
246133
245562
|
const lastSent = toolProgressLastSentTime.get(trackingKey) || 0;
|
|
246134
|
-
const timeSinceLastSent =
|
|
245563
|
+
const timeSinceLastSent = now - lastSent;
|
|
246135
245564
|
if (timeSinceLastSent >= TOOL_PROGRESS_THROTTLE_MS) {
|
|
246136
245565
|
if (toolProgressLastSentTime.size >= MAX_TOOL_PROGRESS_TRACKING_ENTRIES) {
|
|
246137
245566
|
const firstKey = toolProgressLastSentTime.keys().next().value;
|
|
@@ -246139,7 +245568,7 @@ function* normalizeMessage(message) {
|
|
|
246139
245568
|
toolProgressLastSentTime.delete(firstKey);
|
|
246140
245569
|
}
|
|
246141
245570
|
}
|
|
246142
|
-
toolProgressLastSentTime.set(trackingKey,
|
|
245571
|
+
toolProgressLastSentTime.set(trackingKey, now);
|
|
246143
245572
|
yield {
|
|
246144
245573
|
type: "tool_progress",
|
|
246145
245574
|
tool_use_id: message.toolUseID,
|
|
@@ -250706,6 +250135,75 @@ var init_detection = __esm(() => {
|
|
|
250706
250135
|
ORIGINAL_TMUX_PANE = process.env.TMUX_PANE;
|
|
250707
250136
|
});
|
|
250708
250137
|
|
|
250138
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseRandom.js
|
|
250139
|
+
function baseRandom(lower, upper) {
|
|
250140
|
+
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
250141
|
+
}
|
|
250142
|
+
var nativeFloor, nativeRandom, _baseRandom_default;
|
|
250143
|
+
var init__baseRandom = __esm(() => {
|
|
250144
|
+
nativeFloor = Math.floor;
|
|
250145
|
+
nativeRandom = Math.random;
|
|
250146
|
+
_baseRandom_default = baseRandom;
|
|
250147
|
+
});
|
|
250148
|
+
|
|
250149
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_arraySample.js
|
|
250150
|
+
function arraySample(array3) {
|
|
250151
|
+
var length = array3.length;
|
|
250152
|
+
return length ? array3[_baseRandom_default(0, length - 1)] : undefined;
|
|
250153
|
+
}
|
|
250154
|
+
var _arraySample_default;
|
|
250155
|
+
var init__arraySample = __esm(() => {
|
|
250156
|
+
init__baseRandom();
|
|
250157
|
+
_arraySample_default = arraySample;
|
|
250158
|
+
});
|
|
250159
|
+
|
|
250160
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseValues.js
|
|
250161
|
+
function baseValues(object4, props) {
|
|
250162
|
+
return _arrayMap_default(props, function(key) {
|
|
250163
|
+
return object4[key];
|
|
250164
|
+
});
|
|
250165
|
+
}
|
|
250166
|
+
var _baseValues_default;
|
|
250167
|
+
var init__baseValues = __esm(() => {
|
|
250168
|
+
init__arrayMap();
|
|
250169
|
+
_baseValues_default = baseValues;
|
|
250170
|
+
});
|
|
250171
|
+
|
|
250172
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/values.js
|
|
250173
|
+
function values(object4) {
|
|
250174
|
+
return object4 == null ? [] : _baseValues_default(object4, keys_default(object4));
|
|
250175
|
+
}
|
|
250176
|
+
var values_default;
|
|
250177
|
+
var init_values3 = __esm(() => {
|
|
250178
|
+
init__baseValues();
|
|
250179
|
+
init_keys();
|
|
250180
|
+
values_default = values;
|
|
250181
|
+
});
|
|
250182
|
+
|
|
250183
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseSample.js
|
|
250184
|
+
function baseSample(collection) {
|
|
250185
|
+
return _arraySample_default(values_default(collection));
|
|
250186
|
+
}
|
|
250187
|
+
var _baseSample_default;
|
|
250188
|
+
var init__baseSample = __esm(() => {
|
|
250189
|
+
init__arraySample();
|
|
250190
|
+
init_values3();
|
|
250191
|
+
_baseSample_default = baseSample;
|
|
250192
|
+
});
|
|
250193
|
+
|
|
250194
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/sample.js
|
|
250195
|
+
function sample(collection) {
|
|
250196
|
+
var func = isArray_default(collection) ? _arraySample_default : _baseSample_default;
|
|
250197
|
+
return func(collection);
|
|
250198
|
+
}
|
|
250199
|
+
var sample_default;
|
|
250200
|
+
var init_sample = __esm(() => {
|
|
250201
|
+
init__arraySample();
|
|
250202
|
+
init__baseSample();
|
|
250203
|
+
init_isArray();
|
|
250204
|
+
sample_default = sample;
|
|
250205
|
+
});
|
|
250206
|
+
|
|
250709
250207
|
// src/constants/spinnerVerbs.ts
|
|
250710
250208
|
function getSpinnerVerbs() {
|
|
250711
250209
|
const settings = getInitialSettings();
|
|
@@ -251928,8 +251426,11 @@ var init_coreSchemas = __esm(() => {
|
|
|
251928
251426
|
"resume",
|
|
251929
251427
|
"logout",
|
|
251930
251428
|
"prompt_input_exit",
|
|
251931
|
-
"
|
|
251932
|
-
"
|
|
251429
|
+
"bypass_permissions_disabled",
|
|
251430
|
+
"normal",
|
|
251431
|
+
"aborted",
|
|
251432
|
+
"error",
|
|
251433
|
+
"other"
|
|
251933
251434
|
];
|
|
251934
251435
|
ExitReasonSchema = lazySchema(() => exports_external.enum(EXIT_REASONS));
|
|
251935
251436
|
SessionEndHookInputSchema = lazySchema(() => BaseHookInputSchema().and(exports_external.object({
|
|
@@ -270935,11 +270436,11 @@ async function fileHistoryMakeSnapshot(updateFileHistoryState, messageId) {
|
|
|
270935
270436
|
trackedFileBackups[trackingPath] = inherited;
|
|
270936
270437
|
}
|
|
270937
270438
|
}
|
|
270938
|
-
const
|
|
270439
|
+
const now = new Date;
|
|
270939
270440
|
const newSnapshot = {
|
|
270940
270441
|
messageId,
|
|
270941
270442
|
trackedFileBackups,
|
|
270942
|
-
timestamp:
|
|
270443
|
+
timestamp: now
|
|
270943
270444
|
};
|
|
270944
270445
|
const allSnapshots = [...state3.snapshots, newSnapshot];
|
|
270945
270446
|
const updatedState = {
|
|
@@ -283241,8 +282742,8 @@ async function* runPowerShellCommand({
|
|
|
283241
282742
|
let foregroundTaskId = undefined;
|
|
283242
282743
|
try {
|
|
283243
282744
|
while (true) {
|
|
283244
|
-
const
|
|
283245
|
-
const timeUntilNextProgress = Math.max(0, nextProgressTime -
|
|
282745
|
+
const now = Date.now();
|
|
282746
|
+
const timeUntilNextProgress = Math.max(0, nextProgressTime - now);
|
|
283246
282747
|
const progressSignal = createProgressSignal();
|
|
283247
282748
|
const result = await Promise.race([resultPromise, new Promise((resolve25) => setTimeout((r) => r(null), timeUntilNextProgress, resolve25).unref()), progressSignal]);
|
|
283248
282749
|
if (result !== null) {
|
|
@@ -284788,7 +284289,7 @@ async function cleanupOrphanedPluginVersionsInBackground() {
|
|
|
284788
284289
|
if (!installedVersions)
|
|
284789
284290
|
return;
|
|
284790
284291
|
const cachePath = getPluginCachePath();
|
|
284791
|
-
const
|
|
284292
|
+
const now = Date.now();
|
|
284792
284293
|
await Promise.all([...installedVersions].map((p) => removeOrphanedAtMarker(p)));
|
|
284793
284294
|
for (const marketplace of await readSubdirs(cachePath)) {
|
|
284794
284295
|
const marketplacePath = join66(cachePath, marketplace);
|
|
@@ -284798,7 +284299,7 @@ async function cleanupOrphanedPluginVersionsInBackground() {
|
|
|
284798
284299
|
const versionPath = join66(pluginPath, version2);
|
|
284799
284300
|
if (installedVersions.has(versionPath))
|
|
284800
284301
|
continue;
|
|
284801
|
-
await processOrphanedPluginVersion(versionPath,
|
|
284302
|
+
await processOrphanedPluginVersion(versionPath, now);
|
|
284802
284303
|
}
|
|
284803
284304
|
await removeIfEmpty(pluginPath);
|
|
284804
284305
|
}
|
|
@@ -284837,7 +284338,7 @@ function getInstalledVersionPaths() {
|
|
|
284837
284338
|
return null;
|
|
284838
284339
|
}
|
|
284839
284340
|
}
|
|
284840
|
-
async function processOrphanedPluginVersion(versionPath,
|
|
284341
|
+
async function processOrphanedPluginVersion(versionPath, now) {
|
|
284841
284342
|
const orphanedAtPath = getOrphanedAtPath(versionPath);
|
|
284842
284343
|
let orphanedAt;
|
|
284843
284344
|
try {
|
|
@@ -284851,7 +284352,7 @@ async function processOrphanedPluginVersion(versionPath, now2) {
|
|
|
284851
284352
|
logForDebugging2(`Failed to stat orphaned marker: ${versionPath}: ${error41}`);
|
|
284852
284353
|
return;
|
|
284853
284354
|
}
|
|
284854
|
-
if (
|
|
284355
|
+
if (now - orphanedAt > CLEANUP_AGE_MS) {
|
|
284855
284356
|
try {
|
|
284856
284357
|
await getFsImplementation().rm(versionPath, { recursive: true, force: true });
|
|
284857
284358
|
} catch (error41) {
|
|
@@ -286889,7 +286390,7 @@ async function migrateFromEnabledPlugins() {
|
|
|
286889
286390
|
}
|
|
286890
286391
|
}
|
|
286891
286392
|
logForDebugging2(fileExists ? "Syncing installed_plugins.json with enabledPlugins from all settings.json files" : "Creating installed_plugins.json from settings.json files");
|
|
286892
|
-
const
|
|
286393
|
+
const now = new Date().toISOString();
|
|
286893
286394
|
const projectPath = getCwd3();
|
|
286894
286395
|
const pluginScopeFromSettings = new Map;
|
|
286895
286396
|
const settingSources = [
|
|
@@ -286928,7 +286429,7 @@ async function migrateFromEnabledPlugins() {
|
|
|
286928
286429
|
} else {
|
|
286929
286430
|
delete existingEntry.projectPath;
|
|
286930
286431
|
}
|
|
286931
|
-
existingEntry.lastUpdated =
|
|
286432
|
+
existingEntry.lastUpdated = now;
|
|
286932
286433
|
updatedCount++;
|
|
286933
286434
|
logForDebugging2(`Updated ${pluginId} scope to ${scopeInfo.scope} (settings.json is source of truth)`);
|
|
286934
286435
|
}
|
|
@@ -286982,8 +286483,8 @@ async function migrateFromEnabledPlugins() {
|
|
|
286982
286483
|
scope: scopeInfo.scope,
|
|
286983
286484
|
installPath: getVersionedCachePath(pluginId, version2),
|
|
286984
286485
|
version: version2,
|
|
286985
|
-
installedAt:
|
|
286986
|
-
lastUpdated:
|
|
286486
|
+
installedAt: now,
|
|
286487
|
+
lastUpdated: now,
|
|
286987
286488
|
gitCommitSha,
|
|
286988
286489
|
...scopeInfo.projectPath && {
|
|
286989
286490
|
projectPath: scopeInfo.projectPath
|
|
@@ -287202,7 +286703,7 @@ async function cacheAndRegisterPlugin(pluginId, entry, scope = "user", projectPa
|
|
|
287202
286703
|
});
|
|
287203
286704
|
const pathForGitSha = localSourcePath || cacheResult.path;
|
|
287204
286705
|
const gitCommitSha = cacheResult.gitCommitSha ?? await getGitCommitSha(pathForGitSha);
|
|
287205
|
-
const
|
|
286706
|
+
const now = getCurrentTimestamp();
|
|
287206
286707
|
const version2 = await calculatePluginVersion(pluginId, entry.source, cacheResult.manifest, pathForGitSha, entry.version, cacheResult.gitCommitSha);
|
|
287207
286708
|
const versionedPath = getVersionedCachePath(pluginId, version2);
|
|
287208
286709
|
let finalPath = cacheResult.path;
|
|
@@ -287228,19 +286729,19 @@ async function cacheAndRegisterPlugin(pluginId, entry, scope = "user", projectPa
|
|
|
287228
286729
|
}
|
|
287229
286730
|
addInstalledPlugin(pluginId, {
|
|
287230
286731
|
version: version2,
|
|
287231
|
-
installedAt:
|
|
287232
|
-
lastUpdated:
|
|
286732
|
+
installedAt: now,
|
|
286733
|
+
lastUpdated: now,
|
|
287233
286734
|
installPath: finalPath,
|
|
287234
286735
|
gitCommitSha
|
|
287235
286736
|
}, scope, projectPath);
|
|
287236
286737
|
return finalPath;
|
|
287237
286738
|
}
|
|
287238
286739
|
function registerPluginInstallation(info, scope = "user", projectPath) {
|
|
287239
|
-
const
|
|
286740
|
+
const now = getCurrentTimestamp();
|
|
287240
286741
|
addInstalledPlugin(info.pluginId, {
|
|
287241
286742
|
version: info.version || "unknown",
|
|
287242
|
-
installedAt:
|
|
287243
|
-
lastUpdated:
|
|
286743
|
+
installedAt: now,
|
|
286744
|
+
lastUpdated: now,
|
|
287244
286745
|
installPath: info.installPath
|
|
287245
286746
|
}, scope, projectPath);
|
|
287246
286747
|
}
|
|
@@ -296885,8 +296386,8 @@ function createClaudeAiProxyFetch(innerFetch) {
|
|
|
296885
296386
|
tokenChanged
|
|
296886
296387
|
});
|
|
296887
296388
|
if (!tokenChanged) {
|
|
296888
|
-
const
|
|
296889
|
-
if (!
|
|
296389
|
+
const now = getClaudeAIOAuthTokens()?.accessToken;
|
|
296390
|
+
if (!now || now === sentToken) {
|
|
296890
296391
|
return response;
|
|
296891
296392
|
}
|
|
296892
296393
|
}
|
|
@@ -305737,10 +305238,10 @@ async function discoverSkillDirsForPaths(filePaths, cwd) {
|
|
|
305737
305238
|
newDirs.push(skillDir);
|
|
305738
305239
|
} catch {}
|
|
305739
305240
|
}
|
|
305740
|
-
const
|
|
305741
|
-
if (
|
|
305241
|
+
const parent = dirname39(currentDir);
|
|
305242
|
+
if (parent === currentDir)
|
|
305742
305243
|
break;
|
|
305743
|
-
currentDir =
|
|
305244
|
+
currentDir = parent;
|
|
305744
305245
|
}
|
|
305745
305246
|
}
|
|
305746
305247
|
return newDirs.sort((a2, b) => b.split(pathSep2).length - a2.split(pathSep2).length);
|
|
@@ -307633,9 +307134,9 @@ ${deferredToolList}
|
|
|
307633
307134
|
let stallCount = 0;
|
|
307634
307135
|
for await (const part of stream4) {
|
|
307635
307136
|
resetStreamIdleTimer();
|
|
307636
|
-
const
|
|
307137
|
+
const now = Date.now();
|
|
307637
307138
|
if (lastEventTime !== null) {
|
|
307638
|
-
const timeSinceLastEvent =
|
|
307139
|
+
const timeSinceLastEvent = now - lastEventTime;
|
|
307639
307140
|
if (timeSinceLastEvent > STALL_THRESHOLD_MS2) {
|
|
307640
307141
|
stallCount++;
|
|
307641
307142
|
totalStallTime += timeSinceLastEvent;
|
|
@@ -307650,7 +307151,7 @@ ${deferredToolList}
|
|
|
307650
307151
|
});
|
|
307651
307152
|
}
|
|
307652
307153
|
}
|
|
307653
|
-
lastEventTime =
|
|
307154
|
+
lastEventTime = now;
|
|
307654
307155
|
if (isFirstChunk) {
|
|
307655
307156
|
logForDebugging2("Stream started - received first chunk");
|
|
307656
307157
|
queryCheckpoint("query_first_chunk_received");
|
|
@@ -310493,11 +309994,11 @@ function getProjectDirsUpToHome(subdir, cwd) {
|
|
|
310493
309994
|
if (gitRoot && normalizePathForComparison(current) === normalizePathForComparison(gitRoot)) {
|
|
310494
309995
|
break;
|
|
310495
309996
|
}
|
|
310496
|
-
const
|
|
310497
|
-
if (
|
|
309997
|
+
const parent = dirname41(current);
|
|
309998
|
+
if (parent === current) {
|
|
310498
309999
|
break;
|
|
310499
310000
|
}
|
|
310500
|
-
current =
|
|
310001
|
+
current = parent;
|
|
310501
310002
|
}
|
|
310502
310003
|
return dirs;
|
|
310503
310004
|
}
|
|
@@ -314455,6 +313956,7 @@ __export(exports_sessionStorage, {
|
|
|
314455
313956
|
getSessionFilesWithMtime: () => getSessionFilesWithMtime,
|
|
314456
313957
|
getSessionFilesLite: () => getSessionFilesLite,
|
|
314457
313958
|
getProjectsDir: () => getProjectsDir2,
|
|
313959
|
+
getProjectSessionFileForTesting: () => getProjectSessionFileForTesting,
|
|
314458
313960
|
getProjectDir: () => getProjectDir2,
|
|
314459
313961
|
getNodeEnv: () => getNodeEnv,
|
|
314460
313962
|
getLogByIndex: () => getLogByIndex,
|
|
@@ -314475,6 +313977,7 @@ __export(exports_sessionStorage, {
|
|
|
314475
313977
|
deleteRemoteAgentMetadata: () => deleteRemoteAgentMetadata,
|
|
314476
313978
|
clearSessionMetadata: () => clearSessionMetadata,
|
|
314477
313979
|
clearSessionMessagesCache: () => clearSessionMessagesCache,
|
|
313980
|
+
clearProjectForSession: () => clearProjectForSession,
|
|
314478
313981
|
clearAgentTranscriptSubdir: () => clearAgentTranscriptSubdir,
|
|
314479
313982
|
cleanMessagesForLogging: () => cleanMessagesForLogging,
|
|
314480
313983
|
checkResumeConsistency: () => checkResumeConsistency,
|
|
@@ -314632,36 +314135,73 @@ function getEntrypoint() {
|
|
|
314632
314135
|
function isCustomTitleEnabled() {
|
|
314633
314136
|
return true;
|
|
314634
314137
|
}
|
|
314138
|
+
function resolveProjectKey() {
|
|
314139
|
+
try {
|
|
314140
|
+
return getQueryContext().identity.sessionId;
|
|
314141
|
+
} catch {
|
|
314142
|
+
return NO_SESSION_PROJECT_KEY;
|
|
314143
|
+
}
|
|
314144
|
+
}
|
|
314635
314145
|
function getProject() {
|
|
314636
|
-
|
|
314637
|
-
|
|
314146
|
+
const key = resolveProjectKey();
|
|
314147
|
+
let p = projects.get(key);
|
|
314148
|
+
if (!p) {
|
|
314149
|
+
p = new Project;
|
|
314150
|
+
if (processInternalEventWriter)
|
|
314151
|
+
p.setInternalEventWriter(processInternalEventWriter);
|
|
314152
|
+
if (processInternalEventReader)
|
|
314153
|
+
p.setInternalEventReader(processInternalEventReader);
|
|
314154
|
+
if (processInternalSubagentEventReader) {
|
|
314155
|
+
p.setInternalSubagentEventReader(processInternalSubagentEventReader);
|
|
314156
|
+
}
|
|
314157
|
+
projects.set(key, p);
|
|
314638
314158
|
if (!cleanupRegistered3) {
|
|
314639
314159
|
registerCleanup(async () => {
|
|
314640
|
-
|
|
314641
|
-
|
|
314642
|
-
|
|
314643
|
-
|
|
314160
|
+
for (const proj of projects.values()) {
|
|
314161
|
+
try {
|
|
314162
|
+
await proj.flush();
|
|
314163
|
+
} catch {}
|
|
314164
|
+
try {
|
|
314165
|
+
proj.reAppendSessionMetadata();
|
|
314166
|
+
} catch {}
|
|
314167
|
+
}
|
|
314644
314168
|
});
|
|
314645
314169
|
cleanupRegistered3 = true;
|
|
314646
314170
|
}
|
|
314647
314171
|
}
|
|
314648
|
-
return
|
|
314172
|
+
return p;
|
|
314173
|
+
}
|
|
314174
|
+
function clearProjectForSession(sessionId) {
|
|
314175
|
+
projects.delete(sessionId);
|
|
314649
314176
|
}
|
|
314650
314177
|
function resetProjectFlushStateForTesting() {
|
|
314651
|
-
|
|
314178
|
+
for (const p of projects.values())
|
|
314179
|
+
p._resetFlushState();
|
|
314652
314180
|
}
|
|
314653
314181
|
function resetProjectForTesting() {
|
|
314654
|
-
|
|
314182
|
+
projects.clear();
|
|
314183
|
+
processInternalEventWriter = null;
|
|
314184
|
+
processInternalEventReader = null;
|
|
314185
|
+
processInternalSubagentEventReader = null;
|
|
314655
314186
|
}
|
|
314656
314187
|
function setSessionFileForTesting(path14) {
|
|
314657
314188
|
getProject().sessionFile = path14;
|
|
314658
314189
|
}
|
|
314190
|
+
function getProjectSessionFileForTesting() {
|
|
314191
|
+
return getProject().sessionFile;
|
|
314192
|
+
}
|
|
314659
314193
|
function setInternalEventWriter(writer) {
|
|
314660
|
-
|
|
314194
|
+
processInternalEventWriter = writer;
|
|
314195
|
+
for (const p of projects.values())
|
|
314196
|
+
p.setInternalEventWriter(writer);
|
|
314661
314197
|
}
|
|
314662
314198
|
function setInternalEventReader(reader, subagentReader) {
|
|
314663
|
-
|
|
314664
|
-
|
|
314199
|
+
processInternalEventReader = reader;
|
|
314200
|
+
processInternalSubagentEventReader = subagentReader;
|
|
314201
|
+
for (const p of projects.values()) {
|
|
314202
|
+
p.setInternalEventReader(reader);
|
|
314203
|
+
p.setInternalSubagentEventReader(subagentReader);
|
|
314204
|
+
}
|
|
314665
314205
|
}
|
|
314666
314206
|
function setRemoteIngressUrlForTesting(url3) {
|
|
314667
314207
|
getProject().setRemoteIngressUrl(url3);
|
|
@@ -315260,9 +314800,9 @@ async function resetSessionFilePointer() {
|
|
|
315260
314800
|
getProject().resetSessionFile();
|
|
315261
314801
|
}
|
|
315262
314802
|
function adoptResumedSessionFile() {
|
|
315263
|
-
const
|
|
315264
|
-
|
|
315265
|
-
|
|
314803
|
+
const project = getProject();
|
|
314804
|
+
project.sessionFile = getTranscriptPath();
|
|
314805
|
+
project.reAppendSessionMetadata(true);
|
|
315266
314806
|
}
|
|
315267
314807
|
async function recordContextCollapseCommit(commit) {
|
|
315268
314808
|
const sessionId = getSessionId();
|
|
@@ -315289,7 +314829,7 @@ async function flushSessionStorage() {
|
|
|
315289
314829
|
}
|
|
315290
314830
|
async function hydrateRemoteSession(sessionId, ingressUrl) {
|
|
315291
314831
|
switchSession(asSessionId(sessionId));
|
|
315292
|
-
const
|
|
314832
|
+
const project = getProject();
|
|
315293
314833
|
try {
|
|
315294
314834
|
const remoteLogs = await getSessionLogs(sessionId, ingressUrl) || [];
|
|
315295
314835
|
const projectDir = getProjectDir2(getOriginalCwd());
|
|
@@ -315305,14 +314845,14 @@ async function hydrateRemoteSession(sessionId, ingressUrl) {
|
|
|
315305
314845
|
logForDiagnosticsNoPII("error", "hydrate_remote_session_fail");
|
|
315306
314846
|
return false;
|
|
315307
314847
|
} finally {
|
|
315308
|
-
|
|
314848
|
+
project.setRemoteIngressUrl(ingressUrl);
|
|
315309
314849
|
}
|
|
315310
314850
|
}
|
|
315311
314851
|
async function hydrateFromCCRv2InternalEvents(sessionId) {
|
|
315312
314852
|
const startMs = Date.now();
|
|
315313
314853
|
switchSession(asSessionId(sessionId));
|
|
315314
|
-
const
|
|
315315
|
-
const reader =
|
|
314854
|
+
const project = getProject();
|
|
314855
|
+
const reader = project.getInternalEventReader();
|
|
315316
314856
|
if (!reader) {
|
|
315317
314857
|
logForDebugging2("No internal event reader registered for CCR v2 resume");
|
|
315318
314858
|
return false;
|
|
@@ -315332,7 +314872,7 @@ async function hydrateFromCCRv2InternalEvents(sessionId) {
|
|
|
315332
314872
|
await writeFile(sessionFile, fgContent, { encoding: "utf8", mode: 384 });
|
|
315333
314873
|
logForDebugging2(`Hydrated ${events.length} foreground entries from CCR v2 internal events`);
|
|
315334
314874
|
let subagentEventCount = 0;
|
|
315335
|
-
const subagentReader =
|
|
314875
|
+
const subagentReader = project.getInternalSubagentEventReader();
|
|
315336
314876
|
if (subagentReader) {
|
|
315337
314877
|
const subagentEvents = await subagentReader();
|
|
315338
314878
|
if (subagentEvents && subagentEvents.length > 0) {
|
|
@@ -316170,10 +315710,10 @@ async function linkSessionToPR(sessionId, prNumber, prUrl, prRepository, fullPat
|
|
|
316170
315710
|
timestamp: new Date().toISOString()
|
|
316171
315711
|
});
|
|
316172
315712
|
if (sessionId === getSessionId()) {
|
|
316173
|
-
const
|
|
316174
|
-
|
|
316175
|
-
|
|
316176
|
-
|
|
315713
|
+
const project = getProject();
|
|
315714
|
+
project.currentSessionPrNumber = prNumber;
|
|
315715
|
+
project.currentSessionPrUrl = prUrl;
|
|
315716
|
+
project.currentSessionPrRepository = prRepository;
|
|
316177
315717
|
}
|
|
316178
315718
|
logEvent("tengu_session_linked_to_pr", { prNumber });
|
|
316179
315719
|
}
|
|
@@ -316193,41 +315733,41 @@ function getCurrentSessionAgentColor() {
|
|
|
316193
315733
|
return getProject().currentSessionAgentColor;
|
|
316194
315734
|
}
|
|
316195
315735
|
function restoreSessionMetadata(meta) {
|
|
316196
|
-
const
|
|
315736
|
+
const project = getProject();
|
|
316197
315737
|
if (meta.customTitle)
|
|
316198
|
-
|
|
315738
|
+
project.currentSessionTitle ??= meta.customTitle;
|
|
316199
315739
|
if (meta.tag !== undefined)
|
|
316200
|
-
|
|
315740
|
+
project.currentSessionTag = meta.tag || undefined;
|
|
316201
315741
|
if (meta.agentName)
|
|
316202
|
-
|
|
315742
|
+
project.currentSessionAgentName = meta.agentName;
|
|
316203
315743
|
if (meta.agentColor)
|
|
316204
|
-
|
|
315744
|
+
project.currentSessionAgentColor = meta.agentColor;
|
|
316205
315745
|
if (meta.agentSetting)
|
|
316206
|
-
|
|
315746
|
+
project.currentSessionAgentSetting = meta.agentSetting;
|
|
316207
315747
|
if (meta.mode)
|
|
316208
|
-
|
|
315748
|
+
project.currentSessionMode = meta.mode;
|
|
316209
315749
|
if (meta.worktreeSession !== undefined)
|
|
316210
|
-
|
|
315750
|
+
project.currentSessionWorktree = meta.worktreeSession;
|
|
316211
315751
|
if (meta.prNumber !== undefined)
|
|
316212
|
-
|
|
315752
|
+
project.currentSessionPrNumber = meta.prNumber;
|
|
316213
315753
|
if (meta.prUrl)
|
|
316214
|
-
|
|
315754
|
+
project.currentSessionPrUrl = meta.prUrl;
|
|
316215
315755
|
if (meta.prRepository)
|
|
316216
|
-
|
|
315756
|
+
project.currentSessionPrRepository = meta.prRepository;
|
|
316217
315757
|
}
|
|
316218
315758
|
function clearSessionMetadata() {
|
|
316219
|
-
const
|
|
316220
|
-
|
|
316221
|
-
|
|
316222
|
-
|
|
316223
|
-
|
|
316224
|
-
|
|
316225
|
-
|
|
316226
|
-
|
|
316227
|
-
|
|
316228
|
-
|
|
316229
|
-
|
|
316230
|
-
|
|
315759
|
+
const project = getProject();
|
|
315760
|
+
project.currentSessionTitle = undefined;
|
|
315761
|
+
project.currentSessionTag = undefined;
|
|
315762
|
+
project.currentSessionAgentName = undefined;
|
|
315763
|
+
project.currentSessionAgentColor = undefined;
|
|
315764
|
+
project.currentSessionLastPrompt = undefined;
|
|
315765
|
+
project.currentSessionAgentSetting = undefined;
|
|
315766
|
+
project.currentSessionMode = undefined;
|
|
315767
|
+
project.currentSessionWorktree = undefined;
|
|
315768
|
+
project.currentSessionPrNumber = undefined;
|
|
315769
|
+
project.currentSessionPrUrl = undefined;
|
|
315770
|
+
project.currentSessionPrRepository = undefined;
|
|
316231
315771
|
}
|
|
316232
315772
|
function reAppendSessionMetadata() {
|
|
316233
315773
|
getProject().reAppendSessionMetadata();
|
|
@@ -316276,10 +315816,10 @@ function saveWorktreeState(worktreeSession) {
|
|
|
316276
315816
|
tmuxSessionName: worktreeSession.tmuxSessionName,
|
|
316277
315817
|
hookBased: worktreeSession.hookBased
|
|
316278
315818
|
} : null;
|
|
316279
|
-
const
|
|
316280
|
-
|
|
316281
|
-
if (
|
|
316282
|
-
appendEntryToFile(
|
|
315819
|
+
const project = getProject();
|
|
315820
|
+
project.currentSessionWorktree = stripped;
|
|
315821
|
+
if (project.sessionFile) {
|
|
315822
|
+
appendEntryToFile(project.sessionFile, {
|
|
316283
315823
|
type: "worktree-state",
|
|
316284
315824
|
worktreeSession: stripped,
|
|
316285
315825
|
sessionId: getSessionId()
|
|
@@ -316570,8 +316110,8 @@ function walkChainBeforeParse(buf) {
|
|
|
316570
316110
|
const parentStart = msgIdx[slot2 + 2];
|
|
316571
316111
|
if (parentStart < 0)
|
|
316572
316112
|
break;
|
|
316573
|
-
const
|
|
316574
|
-
slot2 = uuidToSlot.get(
|
|
316113
|
+
const parent = buf.toString("latin1", parentStart, parentStart + UUID_LEN);
|
|
316114
|
+
slot2 = uuidToSlot.get(parent);
|
|
316575
316115
|
}
|
|
316576
316116
|
if (len - chainBytes < len >> 1)
|
|
316577
316117
|
return buf;
|
|
@@ -316661,8 +316201,8 @@ async function loadTranscriptFile(filePath, opts) {
|
|
|
316661
316201
|
const progressBridge = new Map;
|
|
316662
316202
|
forEachParsedJSONLBufferEntry(buf, (entry) => {
|
|
316663
316203
|
if (isLegacyProgressEntry(entry)) {
|
|
316664
|
-
const
|
|
316665
|
-
progressBridge.set(entry.uuid,
|
|
316204
|
+
const parent = entry.parentUuid;
|
|
316205
|
+
progressBridge.set(entry.uuid, parent && progressBridge.has(parent) ? progressBridge.get(parent) ?? null : parent);
|
|
316666
316206
|
} else if (isTranscriptMessage(entry)) {
|
|
316667
316207
|
if (entry.parentUuid && progressBridge.has(entry.parentUuid)) {
|
|
316668
316208
|
entry.parentUuid = progressBridge.get(entry.parentUuid) ?? null;
|
|
@@ -317500,7 +317040,7 @@ async function enrichLogs(allLogs, startIndex, count4) {
|
|
|
317500
317040
|
}
|
|
317501
317041
|
return { logs: result, nextIndex: i3 };
|
|
317502
317042
|
}
|
|
317503
|
-
var VERSION6, MAX_TOMBSTONE_REWRITE_BYTES, SKIP_FIRST_PROMPT_PATTERN, EPHEMERAL_PROGRESS_TYPES, MAX_TRANSCRIPT_READ_BYTES, agentTranscriptSubdirs, getProjectDir2,
|
|
317043
|
+
var VERSION6, MAX_TOMBSTONE_REWRITE_BYTES, SKIP_FIRST_PROMPT_PATTERN, EPHEMERAL_PROGRESS_TYPES, MAX_TRANSCRIPT_READ_BYTES, agentTranscriptSubdirs, getProjectDir2, projects, cleanupRegistered3 = false, processInternalEventWriter = null, processInternalEventReader = null, processInternalSubagentEventReader = null, NO_SESSION_PROJECT_KEY = "__no_session__", REMOTE_FLUSH_INTERVAL_MS = 10, PERSISTED_OUTPUT_TAG2, TOOL_USE_RESULT_KEY, METADATA_TYPE_MARKERS, METADATA_MARKER_BUFS, METADATA_PREFIX_BOUND = 25, getSessionMessages, INITIAL_ENRICH_COUNT = 50;
|
|
317504
317044
|
var init_sessionStorage = __esm(() => {
|
|
317505
317045
|
init_memoize();
|
|
317506
317046
|
init_state();
|
|
@@ -317540,6 +317080,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
317540
317080
|
getProjectDir2 = memoize_default((projectDir) => {
|
|
317541
317081
|
return join82(getProjectsDir2(), sanitizePath2(projectDir));
|
|
317542
317082
|
});
|
|
317083
|
+
projects = new Map;
|
|
317543
317084
|
PERSISTED_OUTPUT_TAG2 = Buffer.from("<persisted-output>");
|
|
317544
317085
|
TOOL_USE_RESULT_KEY = Buffer.from('"toolUseResult":');
|
|
317545
317086
|
METADATA_TYPE_MARKERS = [
|
|
@@ -323578,8 +323119,8 @@ async function createAgentWorktree(slug) {
|
|
|
323578
323119
|
logForDebugging2(`Created agent worktree at: ${worktreePath} on branch: ${worktreeBranch}`);
|
|
323579
323120
|
await performPostCreationSetup(gitRoot, worktreePath);
|
|
323580
323121
|
} else {
|
|
323581
|
-
const
|
|
323582
|
-
await getFsImplementation().utimes(worktreePath,
|
|
323122
|
+
const now = new Date;
|
|
323123
|
+
await getFsImplementation().utimes(worktreePath, now, now);
|
|
323583
323124
|
logForDebugging2(`Resuming existing agent worktree at: ${worktreePath}`);
|
|
323584
323125
|
}
|
|
323585
323126
|
return { worktreePath, worktreeBranch, headCommit, gitRoot };
|
|
@@ -325252,7 +324793,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
325252
324793
|
this._exitCallback = (err2) => {
|
|
325253
324794
|
if (err2.code !== "commander.executeSubCommandAsync") {
|
|
325254
324795
|
throw err2;
|
|
325255
|
-
}
|
|
324796
|
+
}
|
|
325256
324797
|
};
|
|
325257
324798
|
}
|
|
325258
324799
|
return this;
|
|
@@ -326442,7 +325983,7 @@ var require_react_development = __commonJS((exports, module) => {
|
|
|
326442
325983
|
return Error("react-stack-top-frame");
|
|
326443
325984
|
}
|
|
326444
325985
|
function hasValidKey(config2) {
|
|
326445
|
-
if (
|
|
325986
|
+
if (hasOwnProperty15.call(config2, "key")) {
|
|
326446
325987
|
var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
|
|
326447
325988
|
if (getter && getter.isReactWarning)
|
|
326448
325989
|
return false;
|
|
@@ -326782,7 +326323,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
326782
326323
|
thrownErrors: [],
|
|
326783
326324
|
getCurrentStack: null,
|
|
326784
326325
|
recentlyCreatedOwnerStacks: 0
|
|
326785
|
-
},
|
|
326326
|
+
}, hasOwnProperty15 = Object.prototype.hasOwnProperty, createTask2 = console.createTask ? console.createTask : function() {
|
|
326786
326327
|
return null;
|
|
326787
326328
|
};
|
|
326788
326329
|
deprecatedAPIs = {
|
|
@@ -326933,7 +326474,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
326933
326474
|
if (config2 != null) {
|
|
326934
326475
|
var JSCompiler_inline_result;
|
|
326935
326476
|
a: {
|
|
326936
|
-
if (
|
|
326477
|
+
if (hasOwnProperty15.call(config2, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(config2, "ref").get) && JSCompiler_inline_result.isReactWarning) {
|
|
326937
326478
|
JSCompiler_inline_result = false;
|
|
326938
326479
|
break a;
|
|
326939
326480
|
}
|
|
@@ -326942,7 +326483,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
326942
326483
|
JSCompiler_inline_result && (owner = getOwner());
|
|
326943
326484
|
hasValidKey(config2) && (checkKeyStringCoercion(config2.key), key = "" + config2.key);
|
|
326944
326485
|
for (propName in config2)
|
|
326945
|
-
!
|
|
326486
|
+
!hasOwnProperty15.call(config2, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config2.ref === undefined || (props[propName] = config2[propName]);
|
|
326946
326487
|
}
|
|
326947
326488
|
var propName = arguments.length - 2;
|
|
326948
326489
|
if (propName === 1)
|
|
@@ -326983,7 +326524,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
326983
326524
|
var key = null;
|
|
326984
326525
|
if (config2 != null)
|
|
326985
326526
|
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config2) || "key" in config2 || (didWarnAboutOldJSXRuntime = true, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), hasValidKey(config2) && (checkKeyStringCoercion(config2.key), key = "" + config2.key), config2)
|
|
326986
|
-
|
|
326527
|
+
hasOwnProperty15.call(config2, propName) && propName !== "key" && propName !== "__self" && propName !== "__source" && (i3[propName] = config2[propName]);
|
|
326987
326528
|
var childrenLength = arguments.length - 2;
|
|
326988
326529
|
if (childrenLength === 1)
|
|
326989
326530
|
i3.children = children;
|
|
@@ -327559,7 +327100,7 @@ var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
|
327559
327100
|
return Error("react-stack-top-frame");
|
|
327560
327101
|
}
|
|
327561
327102
|
function hasValidKey(config2) {
|
|
327562
|
-
if (
|
|
327103
|
+
if (hasOwnProperty15.call(config2, "key")) {
|
|
327563
327104
|
var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
|
|
327564
327105
|
if (getter && getter.isReactWarning)
|
|
327565
327106
|
return false;
|
|
@@ -327635,7 +327176,7 @@ var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
|
327635
327176
|
console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
327636
327177
|
else
|
|
327637
327178
|
validateChildKeys(children);
|
|
327638
|
-
if (
|
|
327179
|
+
if (hasOwnProperty15.call(config2, "key")) {
|
|
327639
327180
|
children = getComponentNameFromType(type);
|
|
327640
327181
|
var keys2 = Object.keys(config2).filter(function(k) {
|
|
327641
327182
|
return k !== "key";
|
|
@@ -327666,7 +327207,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
327666
327207
|
function isValidElement(object4) {
|
|
327667
327208
|
return typeof object4 === "object" && object4 !== null && object4.$$typeof === REACT_ELEMENT_TYPE;
|
|
327668
327209
|
}
|
|
327669
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
327210
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty15 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask2 = console.createTask ? console.createTask : function() {
|
|
327670
327211
|
return null;
|
|
327671
327212
|
};
|
|
327672
327213
|
React = {
|
|
@@ -327985,8 +327526,8 @@ function useDoublePress(setPending, onDoublePress, onFirstPress) {
|
|
|
327985
327526
|
};
|
|
327986
327527
|
}, [clearTimeoutSafe]);
|
|
327987
327528
|
return import_react3.useCallback(() => {
|
|
327988
|
-
const
|
|
327989
|
-
const timeSinceLastPress =
|
|
327529
|
+
const now = Date.now();
|
|
327530
|
+
const timeSinceLastPress = now - lastPressRef.current;
|
|
327990
327531
|
const isDoublePress = timeSinceLastPress <= DOUBLE_PRESS_TIMEOUT_MS && timeoutRef.current !== undefined;
|
|
327991
327532
|
if (isDoublePress) {
|
|
327992
327533
|
clearTimeoutSafe();
|
|
@@ -328001,7 +327542,7 @@ function useDoublePress(setPending, onDoublePress, onFirstPress) {
|
|
|
328001
327542
|
timeoutRef2.current = undefined;
|
|
328002
327543
|
}, DOUBLE_PRESS_TIMEOUT_MS, setPending, timeoutRef);
|
|
328003
327544
|
}
|
|
328004
|
-
lastPressRef.current =
|
|
327545
|
+
lastPressRef.current = now;
|
|
328005
327546
|
}, [setPending, onDoublePress, onFirstPress, clearTimeoutSafe]);
|
|
328006
327547
|
}
|
|
328007
327548
|
var import_react3, DOUBLE_PRESS_TIMEOUT_MS = 800;
|
|
@@ -328301,6 +327842,185 @@ var getAllProperties = (object4) => {
|
|
|
328301
327842
|
return properties;
|
|
328302
327843
|
};
|
|
328303
327844
|
|
|
327845
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/now.js
|
|
327846
|
+
var now = function() {
|
|
327847
|
+
return _root_default.Date.now();
|
|
327848
|
+
}, now_default;
|
|
327849
|
+
var init_now = __esm(() => {
|
|
327850
|
+
init__root();
|
|
327851
|
+
now_default = now;
|
|
327852
|
+
});
|
|
327853
|
+
|
|
327854
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_trimmedEndIndex.js
|
|
327855
|
+
function trimmedEndIndex(string5) {
|
|
327856
|
+
var index = string5.length;
|
|
327857
|
+
while (index-- && reWhitespace.test(string5.charAt(index))) {}
|
|
327858
|
+
return index;
|
|
327859
|
+
}
|
|
327860
|
+
var reWhitespace, _trimmedEndIndex_default;
|
|
327861
|
+
var init__trimmedEndIndex = __esm(() => {
|
|
327862
|
+
reWhitespace = /\s/;
|
|
327863
|
+
_trimmedEndIndex_default = trimmedEndIndex;
|
|
327864
|
+
});
|
|
327865
|
+
|
|
327866
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseTrim.js
|
|
327867
|
+
function baseTrim(string5) {
|
|
327868
|
+
return string5 ? string5.slice(0, _trimmedEndIndex_default(string5) + 1).replace(reTrimStart, "") : string5;
|
|
327869
|
+
}
|
|
327870
|
+
var reTrimStart, _baseTrim_default;
|
|
327871
|
+
var init__baseTrim = __esm(() => {
|
|
327872
|
+
init__trimmedEndIndex();
|
|
327873
|
+
reTrimStart = /^\s+/;
|
|
327874
|
+
_baseTrim_default = baseTrim;
|
|
327875
|
+
});
|
|
327876
|
+
|
|
327877
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/toNumber.js
|
|
327878
|
+
function toNumber(value) {
|
|
327879
|
+
if (typeof value == "number") {
|
|
327880
|
+
return value;
|
|
327881
|
+
}
|
|
327882
|
+
if (isSymbol_default(value)) {
|
|
327883
|
+
return NAN;
|
|
327884
|
+
}
|
|
327885
|
+
if (isObject_default(value)) {
|
|
327886
|
+
var other2 = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
327887
|
+
value = isObject_default(other2) ? other2 + "" : other2;
|
|
327888
|
+
}
|
|
327889
|
+
if (typeof value != "string") {
|
|
327890
|
+
return value === 0 ? value : +value;
|
|
327891
|
+
}
|
|
327892
|
+
value = _baseTrim_default(value);
|
|
327893
|
+
var isBinary = reIsBinary.test(value);
|
|
327894
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
327895
|
+
}
|
|
327896
|
+
var NAN, reIsBadHex, reIsBinary, reIsOctal, freeParseInt, toNumber_default;
|
|
327897
|
+
var init_toNumber = __esm(() => {
|
|
327898
|
+
init__baseTrim();
|
|
327899
|
+
init_isObject();
|
|
327900
|
+
init_isSymbol();
|
|
327901
|
+
NAN = 0 / 0;
|
|
327902
|
+
reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
327903
|
+
reIsBinary = /^0b[01]+$/i;
|
|
327904
|
+
reIsOctal = /^0o[0-7]+$/i;
|
|
327905
|
+
freeParseInt = parseInt;
|
|
327906
|
+
toNumber_default = toNumber;
|
|
327907
|
+
});
|
|
327908
|
+
|
|
327909
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/debounce.js
|
|
327910
|
+
function debounce(func, wait, options2) {
|
|
327911
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
327912
|
+
if (typeof func != "function") {
|
|
327913
|
+
throw new TypeError(FUNC_ERROR_TEXT3);
|
|
327914
|
+
}
|
|
327915
|
+
wait = toNumber_default(wait) || 0;
|
|
327916
|
+
if (isObject_default(options2)) {
|
|
327917
|
+
leading = !!options2.leading;
|
|
327918
|
+
maxing = "maxWait" in options2;
|
|
327919
|
+
maxWait = maxing ? nativeMax2(toNumber_default(options2.maxWait) || 0, wait) : maxWait;
|
|
327920
|
+
trailing = "trailing" in options2 ? !!options2.trailing : trailing;
|
|
327921
|
+
}
|
|
327922
|
+
function invokeFunc(time3) {
|
|
327923
|
+
var args = lastArgs, thisArg = lastThis;
|
|
327924
|
+
lastArgs = lastThis = undefined;
|
|
327925
|
+
lastInvokeTime = time3;
|
|
327926
|
+
result = func.apply(thisArg, args);
|
|
327927
|
+
return result;
|
|
327928
|
+
}
|
|
327929
|
+
function leadingEdge(time3) {
|
|
327930
|
+
lastInvokeTime = time3;
|
|
327931
|
+
timerId = setTimeout(timerExpired, wait);
|
|
327932
|
+
return leading ? invokeFunc(time3) : result;
|
|
327933
|
+
}
|
|
327934
|
+
function remainingWait(time3) {
|
|
327935
|
+
var timeSinceLastCall = time3 - lastCallTime, timeSinceLastInvoke = time3 - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
327936
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
327937
|
+
}
|
|
327938
|
+
function shouldInvoke(time3) {
|
|
327939
|
+
var timeSinceLastCall = time3 - lastCallTime, timeSinceLastInvoke = time3 - lastInvokeTime;
|
|
327940
|
+
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
327941
|
+
}
|
|
327942
|
+
function timerExpired() {
|
|
327943
|
+
var time3 = now_default();
|
|
327944
|
+
if (shouldInvoke(time3)) {
|
|
327945
|
+
return trailingEdge(time3);
|
|
327946
|
+
}
|
|
327947
|
+
timerId = setTimeout(timerExpired, remainingWait(time3));
|
|
327948
|
+
}
|
|
327949
|
+
function trailingEdge(time3) {
|
|
327950
|
+
timerId = undefined;
|
|
327951
|
+
if (trailing && lastArgs) {
|
|
327952
|
+
return invokeFunc(time3);
|
|
327953
|
+
}
|
|
327954
|
+
lastArgs = lastThis = undefined;
|
|
327955
|
+
return result;
|
|
327956
|
+
}
|
|
327957
|
+
function cancel() {
|
|
327958
|
+
if (timerId !== undefined) {
|
|
327959
|
+
clearTimeout(timerId);
|
|
327960
|
+
}
|
|
327961
|
+
lastInvokeTime = 0;
|
|
327962
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
327963
|
+
}
|
|
327964
|
+
function flush() {
|
|
327965
|
+
return timerId === undefined ? result : trailingEdge(now_default());
|
|
327966
|
+
}
|
|
327967
|
+
function debounced() {
|
|
327968
|
+
var time3 = now_default(), isInvoking = shouldInvoke(time3);
|
|
327969
|
+
lastArgs = arguments;
|
|
327970
|
+
lastThis = this;
|
|
327971
|
+
lastCallTime = time3;
|
|
327972
|
+
if (isInvoking) {
|
|
327973
|
+
if (timerId === undefined) {
|
|
327974
|
+
return leadingEdge(lastCallTime);
|
|
327975
|
+
}
|
|
327976
|
+
if (maxing) {
|
|
327977
|
+
clearTimeout(timerId);
|
|
327978
|
+
timerId = setTimeout(timerExpired, wait);
|
|
327979
|
+
return invokeFunc(lastCallTime);
|
|
327980
|
+
}
|
|
327981
|
+
}
|
|
327982
|
+
if (timerId === undefined) {
|
|
327983
|
+
timerId = setTimeout(timerExpired, wait);
|
|
327984
|
+
}
|
|
327985
|
+
return result;
|
|
327986
|
+
}
|
|
327987
|
+
debounced.cancel = cancel;
|
|
327988
|
+
debounced.flush = flush;
|
|
327989
|
+
return debounced;
|
|
327990
|
+
}
|
|
327991
|
+
var FUNC_ERROR_TEXT3 = "Expected a function", nativeMax2, nativeMin, debounce_default;
|
|
327992
|
+
var init_debounce = __esm(() => {
|
|
327993
|
+
init_isObject();
|
|
327994
|
+
init_now();
|
|
327995
|
+
init_toNumber();
|
|
327996
|
+
nativeMax2 = Math.max;
|
|
327997
|
+
nativeMin = Math.min;
|
|
327998
|
+
debounce_default = debounce;
|
|
327999
|
+
});
|
|
328000
|
+
|
|
328001
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/throttle.js
|
|
328002
|
+
function throttle2(func, wait, options2) {
|
|
328003
|
+
var leading = true, trailing = true;
|
|
328004
|
+
if (typeof func != "function") {
|
|
328005
|
+
throw new TypeError(FUNC_ERROR_TEXT4);
|
|
328006
|
+
}
|
|
328007
|
+
if (isObject_default(options2)) {
|
|
328008
|
+
leading = "leading" in options2 ? !!options2.leading : leading;
|
|
328009
|
+
trailing = "trailing" in options2 ? !!options2.trailing : trailing;
|
|
328010
|
+
}
|
|
328011
|
+
return debounce_default(func, wait, {
|
|
328012
|
+
leading,
|
|
328013
|
+
maxWait: wait,
|
|
328014
|
+
trailing
|
|
328015
|
+
});
|
|
328016
|
+
}
|
|
328017
|
+
var FUNC_ERROR_TEXT4 = "Expected a function", throttle_default2;
|
|
328018
|
+
var init_throttle2 = __esm(() => {
|
|
328019
|
+
init_debounce();
|
|
328020
|
+
init_isObject();
|
|
328021
|
+
throttle_default2 = throttle2;
|
|
328022
|
+
});
|
|
328023
|
+
|
|
328304
328024
|
// node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
|
|
328305
328025
|
var require_react_reconciler_constants_development = __commonJS((exports) => {
|
|
328306
328026
|
exports.ConcurrentRoot = 1, exports.ContinuousEventPriority = 8, exports.DefaultEventPriority = 32, exports.DiscreteEventPriority = 2, exports.IdleEventPriority = 268435456, exports.LegacyRoot = 0, exports.NoEventPriority = 0;
|
|
@@ -329555,7 +329275,7 @@ function layoutNode(node, availableWidth, availableHeight, widthMode, heightMode
|
|
|
329555
329275
|
layoutAbsoluteChild(node, c6, node.layout.width, node.layout.height, pad, bor);
|
|
329556
329276
|
}
|
|
329557
329277
|
}
|
|
329558
|
-
function layoutAbsoluteChild(
|
|
329278
|
+
function layoutAbsoluteChild(parent, child, parentWidth, parentHeight, pad, bor) {
|
|
329559
329279
|
const cs = child.style;
|
|
329560
329280
|
const posLeft = resolveEdgeRaw(cs.position, EDGE_LEFT);
|
|
329561
329281
|
const posRight = resolveEdgeRaw(cs.position, EDGE_RIGHT);
|
|
@@ -329580,11 +329300,11 @@ function layoutAbsoluteChild(parent2, child, parentWidth, parentHeight, pad, bor
|
|
|
329580
329300
|
const mT = resolveEdge(cs.margin, EDGE_TOP, parentWidth);
|
|
329581
329301
|
const mR = resolveEdge(cs.margin, EDGE_RIGHT, parentWidth);
|
|
329582
329302
|
const mB = resolveEdge(cs.margin, EDGE_BOTTOM, parentWidth);
|
|
329583
|
-
const mainAxis =
|
|
329303
|
+
const mainAxis = parent.style.flexDirection;
|
|
329584
329304
|
const reversed = isReverse(mainAxis);
|
|
329585
329305
|
const mainRow = isRow(mainAxis);
|
|
329586
|
-
const wrapReverse =
|
|
329587
|
-
const alignment = cs.alignSelf === Align.Auto ?
|
|
329306
|
+
const wrapReverse = parent.style.flexWrap === Wrap.WrapReverse;
|
|
329307
|
+
const alignment = cs.alignSelf === Align.Auto ? parent.style.alignItems : cs.alignSelf;
|
|
329588
329308
|
let left;
|
|
329589
329309
|
if (isDefined(rLeft)) {
|
|
329590
329310
|
left = bor[0] + rLeft + mL;
|
|
@@ -329593,7 +329313,7 @@ function layoutAbsoluteChild(parent2, child, parentWidth, parentHeight, pad, bor
|
|
|
329593
329313
|
} else if (mainRow) {
|
|
329594
329314
|
const lead = pad[0] + bor[0];
|
|
329595
329315
|
const trail = parentWidth - pad[2] - bor[2];
|
|
329596
|
-
left = reversed ? trail - child.layout.width - mR : justifyAbsolute(
|
|
329316
|
+
left = reversed ? trail - child.layout.width - mR : justifyAbsolute(parent.style.justifyContent, lead, trail, child.layout.width) + mL;
|
|
329597
329317
|
} else {
|
|
329598
329318
|
left = alignAbsolute(alignment, pad[0] + bor[0], parentWidth - pad[2] - bor[2], child.layout.width, wrapReverse) + mL;
|
|
329599
329319
|
}
|
|
@@ -329607,7 +329327,7 @@ function layoutAbsoluteChild(parent2, child, parentWidth, parentHeight, pad, bor
|
|
|
329607
329327
|
} else {
|
|
329608
329328
|
const lead = pad[1] + bor[1];
|
|
329609
329329
|
const trail = parentHeight - pad[3] - bor[3];
|
|
329610
|
-
top = reversed ? trail - child.layout.height - mB : justifyAbsolute(
|
|
329330
|
+
top = reversed ? trail - child.layout.height - mB : justifyAbsolute(parent.style.justifyContent, lead, trail, child.layout.height) + mT;
|
|
329611
329331
|
}
|
|
329612
329332
|
child.layout.left = left;
|
|
329613
329333
|
child.layout.top = top;
|
|
@@ -329792,8 +329512,8 @@ function isStretchAlign(child) {
|
|
|
329792
329512
|
const align = child.style.alignSelf === Align.Auto ? p.style.alignItems : child.style.alignSelf;
|
|
329793
329513
|
return align === Align.Stretch;
|
|
329794
329514
|
}
|
|
329795
|
-
function resolveChildAlign(
|
|
329796
|
-
return child.style.alignSelf === Align.Auto ?
|
|
329515
|
+
function resolveChildAlign(parent, child) {
|
|
329516
|
+
return child.style.alignSelf === Align.Auto ? parent.style.alignItems : child.style.alignSelf;
|
|
329797
329517
|
}
|
|
329798
329518
|
function calculateBaseline(node) {
|
|
329799
329519
|
let baselineChild = null;
|
|
@@ -331004,9 +330724,9 @@ var require_scheduler_development = __commonJS((exports) => {
|
|
|
331004
330724
|
heap.push(node);
|
|
331005
330725
|
a:
|
|
331006
330726
|
for (;0 < index; ) {
|
|
331007
|
-
var parentIndex = index - 1 >>> 1,
|
|
331008
|
-
if (0 < compare(
|
|
331009
|
-
heap[parentIndex] = node, heap[index] =
|
|
330727
|
+
var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
|
|
330728
|
+
if (0 < compare(parent, node))
|
|
330729
|
+
heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
|
|
331010
330730
|
else
|
|
331011
330731
|
break a;
|
|
331012
330732
|
}
|
|
@@ -331379,9 +331099,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
331379
331099
|
throw Error("Unable to find node on an unmounted component.");
|
|
331380
331100
|
return a2.stateNode.current === a2 ? fiber : alternate;
|
|
331381
331101
|
}
|
|
331382
|
-
function findCurrentHostFiber(
|
|
331383
|
-
|
|
331384
|
-
return
|
|
331102
|
+
function findCurrentHostFiber(parent) {
|
|
331103
|
+
parent = findCurrentFiberUsingSlowPath(parent);
|
|
331104
|
+
return parent !== null ? findCurrentHostFiberImpl(parent) : null;
|
|
331385
331105
|
}
|
|
331386
331106
|
function findCurrentHostFiberImpl(node) {
|
|
331387
331107
|
var tag2 = node.tag;
|
|
@@ -331819,7 +331539,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
331819
331539
|
}
|
|
331820
331540
|
function addObjectToProperties(object4, properties, indent, prefix2) {
|
|
331821
331541
|
for (var key in object4)
|
|
331822
|
-
|
|
331542
|
+
hasOwnProperty15.call(object4, key) && key[0] !== "_" && addValueToProperties(key, object4[key], properties, indent, prefix2);
|
|
331823
331543
|
}
|
|
331824
331544
|
function addValueToProperties(propertyName, value, properties, indent, prefix2) {
|
|
331825
331545
|
switch (typeof value) {
|
|
@@ -331847,7 +331567,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
331847
331567
|
key !== null && addValueToProperties("key", key, properties, indent + 1, prefix2);
|
|
331848
331568
|
propertyName = false;
|
|
331849
331569
|
for (var propKey in value)
|
|
331850
|
-
propKey === "children" ? value.children != null && (!isArrayImpl(value.children) || 0 < value.children.length) && (propertyName = true) :
|
|
331570
|
+
propKey === "children" ? value.children != null && (!isArrayImpl(value.children) || 0 < value.children.length) && (propertyName = true) : hasOwnProperty15.call(value, propKey) && propKey[0] !== "_" && addValueToProperties(propKey, value[propKey], properties, indent + 1, prefix2);
|
|
331851
331571
|
properties.push([
|
|
331852
331572
|
"",
|
|
331853
331573
|
propertyName ? ">…</" + typeName + ">" : "/>"
|
|
@@ -332941,15 +332661,15 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
332941
332661
|
isPrimaryRenderer ? (context4._currentValue = currentValue, currentValue = rendererCursorDEV.current, pop(rendererCursorDEV, providerFiber), context4._currentRenderer = currentValue) : (context4._currentValue2 = currentValue, currentValue = renderer2CursorDEV.current, pop(renderer2CursorDEV, providerFiber), context4._currentRenderer2 = currentValue);
|
|
332942
332662
|
pop(valueCursor, providerFiber);
|
|
332943
332663
|
}
|
|
332944
|
-
function scheduleContextWorkOnParentPath(
|
|
332945
|
-
for (;
|
|
332946
|
-
var alternate =
|
|
332947
|
-
(
|
|
332948
|
-
if (
|
|
332664
|
+
function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot) {
|
|
332665
|
+
for (;parent !== null; ) {
|
|
332666
|
+
var alternate = parent.alternate;
|
|
332667
|
+
(parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, alternate !== null && (alternate.childLanes |= renderLanes2)) : alternate !== null && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2);
|
|
332668
|
+
if (parent === propagationRoot)
|
|
332949
332669
|
break;
|
|
332950
|
-
|
|
332670
|
+
parent = parent.return;
|
|
332951
332671
|
}
|
|
332952
|
-
|
|
332672
|
+
parent !== propagationRoot && console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.");
|
|
332953
332673
|
}
|
|
332954
332674
|
function propagateContextChanges(workInProgress2, contexts, renderLanes2, forcePropagateEntireTree) {
|
|
332955
332675
|
var fiber = workInProgress2.child;
|
|
@@ -333006,29 +332726,29 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
333006
332726
|
}
|
|
333007
332727
|
function propagateParentContextChanges(current2, workInProgress2, renderLanes2, forcePropagateEntireTree) {
|
|
333008
332728
|
current2 = null;
|
|
333009
|
-
for (var
|
|
332729
|
+
for (var parent = workInProgress2, isInsidePropagationBailout = false;parent !== null; ) {
|
|
333010
332730
|
if (!isInsidePropagationBailout) {
|
|
333011
|
-
if ((
|
|
332731
|
+
if ((parent.flags & 524288) !== 0)
|
|
333012
332732
|
isInsidePropagationBailout = true;
|
|
333013
|
-
else if ((
|
|
332733
|
+
else if ((parent.flags & 262144) !== 0)
|
|
333014
332734
|
break;
|
|
333015
332735
|
}
|
|
333016
|
-
if (
|
|
333017
|
-
var currentParent =
|
|
332736
|
+
if (parent.tag === 10) {
|
|
332737
|
+
var currentParent = parent.alternate;
|
|
333018
332738
|
if (currentParent === null)
|
|
333019
332739
|
throw Error("Should have a current fiber. This is a bug in React.");
|
|
333020
332740
|
currentParent = currentParent.memoizedProps;
|
|
333021
332741
|
if (currentParent !== null) {
|
|
333022
|
-
var context4 =
|
|
333023
|
-
objectIs(
|
|
332742
|
+
var context4 = parent.type;
|
|
332743
|
+
objectIs(parent.pendingProps.value, currentParent.value) || (current2 !== null ? current2.push(context4) : current2 = [context4]);
|
|
333024
332744
|
}
|
|
333025
|
-
} else if (
|
|
333026
|
-
currentParent =
|
|
332745
|
+
} else if (parent === hostTransitionProviderCursor.current) {
|
|
332746
|
+
currentParent = parent.alternate;
|
|
333027
332747
|
if (currentParent === null)
|
|
333028
332748
|
throw Error("Should have a current fiber. This is a bug in React.");
|
|
333029
|
-
currentParent.memoizedState.memoizedState !==
|
|
332749
|
+
currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (current2 !== null ? current2.push(HostTransitionContext) : current2 = [HostTransitionContext]);
|
|
333030
332750
|
}
|
|
333031
|
-
|
|
332751
|
+
parent = parent.return;
|
|
333032
332752
|
}
|
|
333033
332753
|
current2 !== null && propagateContextChanges(workInProgress2, current2, renderLanes2, forcePropagateEntireTree);
|
|
333034
332754
|
workInProgress2.flags |= 262144;
|
|
@@ -333424,7 +333144,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
333424
333144
|
return false;
|
|
333425
333145
|
for (keysB = 0;keysB < keysA.length; keysB++) {
|
|
333426
333146
|
var currentKey = keysA[keysB];
|
|
333427
|
-
if (!
|
|
333147
|
+
if (!hasOwnProperty15.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
|
|
333428
333148
|
return false;
|
|
333429
333149
|
}
|
|
333430
333150
|
return true;
|
|
@@ -334015,17 +333735,17 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
334015
333735
|
sourceFiber.lanes |= lane;
|
|
334016
333736
|
var alternate = sourceFiber.alternate;
|
|
334017
333737
|
alternate !== null && (alternate.lanes |= lane);
|
|
334018
|
-
for (var isHidden = false,
|
|
334019
|
-
|
|
334020
|
-
return sourceFiber.tag === 3 ? (
|
|
333738
|
+
for (var isHidden = false, parent = sourceFiber.return;parent !== null; )
|
|
333739
|
+
parent.childLanes |= lane, alternate = parent.alternate, alternate !== null && (alternate.childLanes |= lane), parent.tag === 22 && (sourceFiber = parent.stateNode, sourceFiber === null || sourceFiber._visibility & OffscreenVisible || (isHidden = true)), sourceFiber = parent, parent = parent.return;
|
|
333740
|
+
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden && update !== null && (isHidden = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden], alternate === null ? sourceFiber[isHidden] = [update] : alternate.push(update), update.lane = lane | 536870912), parent) : null;
|
|
334021
333741
|
}
|
|
334022
333742
|
function getRootForUpdatedFiber(sourceFiber) {
|
|
334023
333743
|
if (nestedUpdateCount > NESTED_UPDATE_LIMIT)
|
|
334024
333744
|
throw nestedPassiveUpdateCount = nestedUpdateCount = 0, rootWithPassiveNestedUpdates = rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");
|
|
334025
333745
|
nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT && (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."));
|
|
334026
333746
|
sourceFiber.alternate === null && (sourceFiber.flags & 4098) !== 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
|
|
334027
|
-
for (var node = sourceFiber,
|
|
334028
|
-
node.alternate === null && (node.flags & 4098) !== 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node =
|
|
333747
|
+
for (var node = sourceFiber, parent = node.return;parent !== null; )
|
|
333748
|
+
node.alternate === null && (node.flags & 4098) !== 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = node.return;
|
|
334029
333749
|
return node.tag === 3 ? node.stateNode : null;
|
|
334030
333750
|
}
|
|
334031
333751
|
function initializeUpdateQueue(fiber) {
|
|
@@ -336437,11 +336157,11 @@ https://react.dev/link/unsafe-component-lifecycles`, _instance, newApiName, stat
|
|
|
336437
336157
|
}
|
|
336438
336158
|
return false;
|
|
336439
336159
|
}
|
|
336440
|
-
function appendAllChildren(
|
|
336160
|
+
function appendAllChildren(parent, workInProgress2, needsVisibilityToggle, isHidden) {
|
|
336441
336161
|
if (supportsMutation)
|
|
336442
336162
|
for (needsVisibilityToggle = workInProgress2.child;needsVisibilityToggle !== null; ) {
|
|
336443
336163
|
if (needsVisibilityToggle.tag === 5 || needsVisibilityToggle.tag === 6)
|
|
336444
|
-
appendInitialChild(
|
|
336164
|
+
appendInitialChild(parent, needsVisibilityToggle.stateNode);
|
|
336445
336165
|
else if (!(needsVisibilityToggle.tag === 4 || supportsSingletons && needsVisibilityToggle.tag === 27) && needsVisibilityToggle.child !== null) {
|
|
336446
336166
|
needsVisibilityToggle.child.return = needsVisibilityToggle;
|
|
336447
336167
|
needsVisibilityToggle = needsVisibilityToggle.child;
|
|
@@ -336462,12 +336182,12 @@ https://react.dev/link/unsafe-component-lifecycles`, _instance, newApiName, stat
|
|
|
336462
336182
|
if (_node.tag === 5) {
|
|
336463
336183
|
var instance = _node.stateNode;
|
|
336464
336184
|
needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance, _node.type, _node.memoizedProps));
|
|
336465
|
-
appendInitialChild(
|
|
336185
|
+
appendInitialChild(parent, instance);
|
|
336466
336186
|
} else if (_node.tag === 6)
|
|
336467
|
-
instance = _node.stateNode, needsVisibilityToggle && isHidden && (instance = cloneHiddenTextInstance(instance, _node.memoizedProps)), appendInitialChild(
|
|
336187
|
+
instance = _node.stateNode, needsVisibilityToggle && isHidden && (instance = cloneHiddenTextInstance(instance, _node.memoizedProps)), appendInitialChild(parent, instance);
|
|
336468
336188
|
else if (_node.tag !== 4) {
|
|
336469
336189
|
if (_node.tag === 22 && _node.memoizedState !== null)
|
|
336470
|
-
instance = _node.child, instance !== null && (instance.return = _node), appendAllChildren(
|
|
336190
|
+
instance = _node.child, instance !== null && (instance.return = _node), appendAllChildren(parent, _node, true, true);
|
|
336471
336191
|
else if (_node.child !== null) {
|
|
336472
336192
|
_node.child.return = _node;
|
|
336473
336193
|
_node = _node.child;
|
|
@@ -337168,21 +336888,21 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337168
336888
|
return fiber.stateNode;
|
|
337169
336889
|
}
|
|
337170
336890
|
}
|
|
337171
|
-
function insertOrAppendPlacementNodeIntoContainer(node, before,
|
|
336891
|
+
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
337172
336892
|
var tag2 = node.tag;
|
|
337173
336893
|
if (tag2 === 5 || tag2 === 6)
|
|
337174
|
-
node = node.stateNode, before ? insertInContainerBefore(
|
|
337175
|
-
else if (tag2 !== 4 && (supportsSingletons && tag2 === 27 && isSingletonScope(node.type) && (
|
|
337176
|
-
for (insertOrAppendPlacementNodeIntoContainer(node, before,
|
|
337177
|
-
insertOrAppendPlacementNodeIntoContainer(node, before,
|
|
336894
|
+
node = node.stateNode, before ? insertInContainerBefore(parent, node, before) : appendChildToContainer(parent, node);
|
|
336895
|
+
else if (tag2 !== 4 && (supportsSingletons && tag2 === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, node !== null))
|
|
336896
|
+
for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;node !== null; )
|
|
336897
|
+
insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;
|
|
337178
336898
|
}
|
|
337179
|
-
function insertOrAppendPlacementNode(node, before,
|
|
336899
|
+
function insertOrAppendPlacementNode(node, before, parent) {
|
|
337180
336900
|
var tag2 = node.tag;
|
|
337181
336901
|
if (tag2 === 5 || tag2 === 6)
|
|
337182
|
-
node = node.stateNode, before ? insertBefore(
|
|
337183
|
-
else if (tag2 !== 4 && (supportsSingletons && tag2 === 27 && isSingletonScope(node.type) && (
|
|
337184
|
-
for (insertOrAppendPlacementNode(node, before,
|
|
337185
|
-
insertOrAppendPlacementNode(node, before,
|
|
336902
|
+
node = node.stateNode, before ? insertBefore(parent, node, before) : appendChild(parent, node);
|
|
336903
|
+
else if (tag2 !== 4 && (supportsSingletons && tag2 === 27 && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, node !== null))
|
|
336904
|
+
for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling;node !== null; )
|
|
336905
|
+
insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
|
|
337186
336906
|
}
|
|
337187
336907
|
function commitPlacement(finishedWork) {
|
|
337188
336908
|
for (var hostParentFiber, parentFiber = finishedWork.return;parentFiber !== null; ) {
|
|
@@ -337412,9 +337132,9 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337412
337132
|
fiber.stateNode = null;
|
|
337413
337133
|
fiber.updateQueue = null;
|
|
337414
337134
|
}
|
|
337415
|
-
function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor,
|
|
337416
|
-
for (
|
|
337417
|
-
commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor,
|
|
337135
|
+
function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) {
|
|
337136
|
+
for (parent = parent.child;parent !== null; )
|
|
337137
|
+
commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling;
|
|
337418
337138
|
}
|
|
337419
337139
|
function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) {
|
|
337420
337140
|
if (injectedHook && typeof injectedHook.onCommitFiberUnmount === "function")
|
|
@@ -337551,30 +337271,30 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337551
337271
|
for (var i3 = 0;i3 < deletions.length; i3++) {
|
|
337552
337272
|
var root2 = root$jscomp$0, returnFiber = parentFiber, deletedFiber = deletions[i3], prevEffectStart = pushComponentEffectStart();
|
|
337553
337273
|
if (supportsMutation) {
|
|
337554
|
-
var
|
|
337274
|
+
var parent = returnFiber;
|
|
337555
337275
|
a:
|
|
337556
|
-
for (;
|
|
337557
|
-
switch (
|
|
337276
|
+
for (;parent !== null; ) {
|
|
337277
|
+
switch (parent.tag) {
|
|
337558
337278
|
case 27:
|
|
337559
337279
|
if (supportsSingletons) {
|
|
337560
|
-
if (isSingletonScope(
|
|
337561
|
-
hostParent =
|
|
337280
|
+
if (isSingletonScope(parent.type)) {
|
|
337281
|
+
hostParent = parent.stateNode;
|
|
337562
337282
|
hostParentIsContainer = false;
|
|
337563
337283
|
break a;
|
|
337564
337284
|
}
|
|
337565
337285
|
break;
|
|
337566
337286
|
}
|
|
337567
337287
|
case 5:
|
|
337568
|
-
hostParent =
|
|
337288
|
+
hostParent = parent.stateNode;
|
|
337569
337289
|
hostParentIsContainer = false;
|
|
337570
337290
|
break a;
|
|
337571
337291
|
case 3:
|
|
337572
337292
|
case 4:
|
|
337573
|
-
hostParent =
|
|
337293
|
+
hostParent = parent.stateNode.containerInfo;
|
|
337574
337294
|
hostParentIsContainer = true;
|
|
337575
337295
|
break a;
|
|
337576
337296
|
}
|
|
337577
|
-
|
|
337297
|
+
parent = parent.return;
|
|
337578
337298
|
}
|
|
337579
337299
|
if (hostParent === null)
|
|
337580
337300
|
throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
|
|
@@ -337724,7 +337444,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337724
337444
|
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
|
|
337725
337445
|
wasHidden && !hoistableRoot && !prevOffscreenSubtreeIsHidden && !prevOffscreenSubtreeWasHidden && (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(finishedWork, componentEffectStartTime, componentEffectEndTime);
|
|
337726
337446
|
commitReconciliationEffects(finishedWork);
|
|
337727
|
-
if (flags & 8192 && (root2 = finishedWork.stateNode, root2._visibility = hoistableRoot ? root2._visibility & ~OffscreenVisible : root2._visibility | OffscreenVisible, !hoistableRoot || current2 === null || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || (recursivelyTraverseDisappearLayoutEffects(finishedWork), (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Disconnect")), supportsMutation))
|
|
337447
|
+
if (flags & 8192 && (root2 = finishedWork.stateNode, root2._visibility = hoistableRoot ? root2._visibility & ~OffscreenVisible : root2._visibility | OffscreenVisible, !hoistableRoot || current2 === null || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || (recursivelyTraverseDisappearLayoutEffects(finishedWork), (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Disconnect")), supportsMutation)) {
|
|
337728
337448
|
a:
|
|
337729
337449
|
if (current2 = null, supportsMutation)
|
|
337730
337450
|
for (root2 = finishedWork;; ) {
|
|
@@ -337774,6 +337494,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337774
337494
|
root2.sibling.return = root2.return;
|
|
337775
337495
|
root2 = root2.sibling;
|
|
337776
337496
|
}
|
|
337497
|
+
}
|
|
337777
337498
|
flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (current2 = flags.retryQueue, current2 !== null && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current2))));
|
|
337778
337499
|
break;
|
|
337779
337500
|
case 19:
|
|
@@ -339899,7 +339620,7 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
339899
339620
|
return;
|
|
339900
339621
|
}
|
|
339901
339622
|
console.error(error41);
|
|
339902
|
-
},
|
|
339623
|
+
}, hasOwnProperty15 = Object.prototype.hasOwnProperty, supportsUserTiming = typeof console !== "undefined" && typeof console.timeStamp === "function" && typeof performance !== "undefined" && typeof performance.measure === "function", currentTrack = "Blocking", alreadyWarnedForDeepEquality = false, reusableComponentDevToolDetails = {
|
|
339903
339624
|
color: "primary",
|
|
339904
339625
|
properties: null,
|
|
339905
339626
|
tooltipText: "",
|
|
@@ -342016,12 +341737,12 @@ var init_measure_text = __esm(() => {
|
|
|
342016
341737
|
});
|
|
342017
341738
|
|
|
342018
341739
|
// src/cli/ink/node-cache.ts
|
|
342019
|
-
function addPendingClear(
|
|
342020
|
-
const existing = pendingClears.get(
|
|
341740
|
+
function addPendingClear(parent, rect, isAbsolute23) {
|
|
341741
|
+
const existing = pendingClears.get(parent);
|
|
342021
341742
|
if (existing) {
|
|
342022
341743
|
existing.push(rect);
|
|
342023
341744
|
} else {
|
|
342024
|
-
pendingClears.set(
|
|
341745
|
+
pendingClears.set(parent, [rect]);
|
|
342025
341746
|
}
|
|
342026
341747
|
if (isAbsolute23) {
|
|
342027
341748
|
absoluteNodeRemoved = true;
|
|
@@ -342401,21 +342122,21 @@ var init_wrap_text = __esm(() => {
|
|
|
342401
342122
|
});
|
|
342402
342123
|
|
|
342403
342124
|
// src/cli/ink/dom.ts
|
|
342404
|
-
function collectRemovedRects(
|
|
342125
|
+
function collectRemovedRects(parent, removed, underAbsolute = false) {
|
|
342405
342126
|
if (!removed || removed.nodeName === "#text")
|
|
342406
342127
|
return;
|
|
342407
342128
|
const elem = removed;
|
|
342408
342129
|
const isAbsolute23 = underAbsolute || elem.style?.position === "absolute";
|
|
342409
342130
|
const cached3 = nodeCache.get(elem);
|
|
342410
342131
|
if (cached3) {
|
|
342411
|
-
addPendingClear(
|
|
342132
|
+
addPendingClear(parent, cached3, isAbsolute23);
|
|
342412
342133
|
nodeCache.delete(elem);
|
|
342413
342134
|
}
|
|
342414
342135
|
const childNodes = Array.isArray(elem.childNodes) ? [...elem.childNodes] : [];
|
|
342415
342136
|
for (const child of childNodes) {
|
|
342416
342137
|
if (!child)
|
|
342417
342138
|
continue;
|
|
342418
|
-
collectRemovedRects(
|
|
342139
|
+
collectRemovedRects(parent, child, isAbsolute23);
|
|
342419
342140
|
}
|
|
342420
342141
|
}
|
|
342421
342142
|
function stylesEqual(a2, b) {
|
|
@@ -347665,14 +347386,14 @@ var init_widest_line = __esm(() => {
|
|
|
347665
347386
|
});
|
|
347666
347387
|
|
|
347667
347388
|
// src/cli/ink/output.ts
|
|
347668
|
-
function intersectClip(
|
|
347669
|
-
if (!
|
|
347389
|
+
function intersectClip(parent, child) {
|
|
347390
|
+
if (!parent)
|
|
347670
347391
|
return child;
|
|
347671
347392
|
return {
|
|
347672
|
-
x1: maxDefined(
|
|
347673
|
-
x2: minDefined(
|
|
347674
|
-
y1: maxDefined(
|
|
347675
|
-
y2: minDefined(
|
|
347393
|
+
x1: maxDefined(parent.x1, child.x1),
|
|
347394
|
+
x2: minDefined(parent.x2, child.x2),
|
|
347395
|
+
y1: maxDefined(parent.y1, child.y1),
|
|
347396
|
+
y2: minDefined(parent.y2, child.y2)
|
|
347676
347397
|
};
|
|
347677
347398
|
}
|
|
347678
347399
|
function maxDefined(a2, b) {
|
|
@@ -348900,11 +348621,11 @@ function clipsBothAxes(node) {
|
|
|
348900
348621
|
return (ox === "hidden" || ox === "scroll") && (oy === "hidden" || oy === "scroll");
|
|
348901
348622
|
}
|
|
348902
348623
|
function siblingSharesY(node, yogaNode) {
|
|
348903
|
-
const
|
|
348904
|
-
if (!
|
|
348624
|
+
const parent = node.parentNode;
|
|
348625
|
+
if (!parent)
|
|
348905
348626
|
return false;
|
|
348906
348627
|
const myTop = yogaNode.getComputedTop();
|
|
348907
|
-
const siblings =
|
|
348628
|
+
const siblings = parent.childNodes;
|
|
348908
348629
|
const idx = siblings.indexOf(node);
|
|
348909
348630
|
for (let i3 = idx + 1;i3 < siblings.length; i3++) {
|
|
348910
348631
|
const sibling = siblings[i3];
|
|
@@ -352481,16 +352202,16 @@ function useTerminalViewport() {
|
|
|
352481
352202
|
const height = element.yogaNode.getComputedHeight();
|
|
352482
352203
|
const rows = terminalSize.rows;
|
|
352483
352204
|
let absoluteTop = element.yogaNode.getComputedTop();
|
|
352484
|
-
let
|
|
352205
|
+
let parent = element.parentNode;
|
|
352485
352206
|
let root2 = element.yogaNode;
|
|
352486
|
-
while (
|
|
352487
|
-
if (
|
|
352488
|
-
absoluteTop +=
|
|
352489
|
-
root2 =
|
|
352207
|
+
while (parent) {
|
|
352208
|
+
if (parent.yogaNode) {
|
|
352209
|
+
absoluteTop += parent.yogaNode.getComputedTop();
|
|
352210
|
+
root2 = parent.yogaNode;
|
|
352490
352211
|
}
|
|
352491
|
-
if (
|
|
352492
|
-
absoluteTop -=
|
|
352493
|
-
|
|
352212
|
+
if (parent.scrollTop)
|
|
352213
|
+
absoluteTop -= parent.scrollTop;
|
|
352214
|
+
parent = parent.parentNode;
|
|
352494
352215
|
}
|
|
352495
352216
|
const screenHeight = root2.getComputedHeight();
|
|
352496
352217
|
const bottom = absoluteTop + height;
|
|
@@ -352559,8 +352280,8 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
352559
352280
|
var freeGlobal2 = typeof global == "object" && global && global.Object === Object && global;
|
|
352560
352281
|
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
352561
352282
|
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
352562
|
-
var
|
|
352563
|
-
var objectToString4 =
|
|
352283
|
+
var objectProto17 = Object.prototype;
|
|
352284
|
+
var objectToString4 = objectProto17.toString;
|
|
352564
352285
|
var nativeMax3 = Math.max;
|
|
352565
352286
|
var nativeMin2 = Math.min;
|
|
352566
352287
|
var now2 = function() {
|
|
@@ -364266,7 +363987,7 @@ function applyMarkdown(content, theme, highlight = null) {
|
|
|
364266
363987
|
configureMarked();
|
|
364267
363988
|
return marked.lexer(stripPromptXMLTags(content)).map((_) => formatToken(_, theme, 0, null, null, highlight)).join("").trim();
|
|
364268
363989
|
}
|
|
364269
|
-
function formatToken(token, theme, listDepth = 0, orderedListNumber = null,
|
|
363990
|
+
function formatToken(token, theme, listDepth = 0, orderedListNumber = null, parent = null, highlight = null) {
|
|
364270
363991
|
switch (token.type) {
|
|
364271
363992
|
case "blockquote": {
|
|
364272
363993
|
const inner = (token.tokens ?? []).map((_) => formatToken(_, theme, 0, null, null, highlight)).join("");
|
|
@@ -364291,9 +364012,9 @@ function formatToken(token, theme, listDepth = 0, orderedListNumber = null, pare
|
|
|
364291
364012
|
return color("permission", theme)(token.text);
|
|
364292
364013
|
}
|
|
364293
364014
|
case "em":
|
|
364294
|
-
return source_default.italic((token.tokens ?? []).map((_) => formatToken(_, theme, 0, null,
|
|
364015
|
+
return source_default.italic((token.tokens ?? []).map((_) => formatToken(_, theme, 0, null, parent, highlight)).join(""));
|
|
364295
364016
|
case "strong":
|
|
364296
|
-
return source_default.bold((token.tokens ?? []).map((_) => formatToken(_, theme, 0, null,
|
|
364017
|
+
return source_default.bold((token.tokens ?? []).map((_) => formatToken(_, theme, 0, null, parent, highlight)).join(""));
|
|
364297
364018
|
case "heading":
|
|
364298
364019
|
switch (token.depth) {
|
|
364299
364020
|
case 1:
|
|
@@ -364331,10 +364052,10 @@ function formatToken(token, theme, listDepth = 0, orderedListNumber = null, pare
|
|
|
364331
364052
|
case "br":
|
|
364332
364053
|
return EOL4;
|
|
364333
364054
|
case "text":
|
|
364334
|
-
if (
|
|
364055
|
+
if (parent?.type === "link") {
|
|
364335
364056
|
return token.text;
|
|
364336
364057
|
}
|
|
364337
|
-
if (
|
|
364058
|
+
if (parent?.type === "list_item") {
|
|
364338
364059
|
return `${orderedListNumber === null ? "-" : getListNumber(listDepth, orderedListNumber) + "."} ${token.tokens ? token.tokens.map((_) => formatToken(_, theme, listDepth, orderedListNumber, token, highlight)).join("") : linkifyIssueReferences(token.text)}${EOL4}`;
|
|
364339
364060
|
}
|
|
364340
364061
|
return linkifyIssueReferences(token.text);
|
|
@@ -366359,19 +366080,19 @@ var init_trustedDevice = __esm(() => {
|
|
|
366359
366080
|
});
|
|
366360
366081
|
});
|
|
366361
366082
|
|
|
366362
|
-
// missing-module-stub:/
|
|
366083
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/replBridge/trustedDevice.js
|
|
366363
366084
|
var noop13 = () => null, clearTrustedDeviceTokenCache2;
|
|
366364
366085
|
var init_trustedDevice2 = __esm(() => {
|
|
366365
366086
|
clearTrustedDeviceTokenCache2 = noop13;
|
|
366366
366087
|
});
|
|
366367
366088
|
|
|
366368
|
-
// missing-module-stub:/
|
|
366089
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/analytics/growthbook.js
|
|
366369
366090
|
var noop14 = () => null, refreshGrowthBookAfterAuthChange2;
|
|
366370
366091
|
var init_growthbook = __esm(() => {
|
|
366371
366092
|
refreshGrowthBookAfterAuthChange2 = noop14;
|
|
366372
366093
|
});
|
|
366373
366094
|
|
|
366374
|
-
// missing-module-stub:/
|
|
366095
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/api/grove.js
|
|
366375
366096
|
var noop15 = () => null, getGroveNoticeConfig, getGroveSettings;
|
|
366376
366097
|
var init_grove = __esm(() => {
|
|
366377
366098
|
getGroveNoticeConfig = noop15;
|
|
@@ -366526,13 +366247,13 @@ var init_logoutActions = __esm(() => {
|
|
|
366526
366247
|
init_user();
|
|
366527
366248
|
});
|
|
366528
366249
|
|
|
366529
|
-
// missing-module-stub:/
|
|
366250
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/analytics/index.js
|
|
366530
366251
|
var noop16 = () => null, logEvent2;
|
|
366531
366252
|
var init_analytics = __esm(() => {
|
|
366532
366253
|
logEvent2 = noop16;
|
|
366533
366254
|
});
|
|
366534
366255
|
|
|
366535
|
-
// missing-module-stub:/
|
|
366256
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/api/firstTokenDate.js
|
|
366536
366257
|
var noop17 = () => null, fetchAndStoreClaudeCodeFirstTokenDate;
|
|
366537
366258
|
var init_firstTokenDate = __esm(() => {
|
|
366538
366259
|
fetchAndStoreClaudeCodeFirstTokenDate = noop17;
|
|
@@ -366588,7 +366309,7 @@ var init_installTokens = __esm(() => {
|
|
|
366588
366309
|
init_debug();
|
|
366589
366310
|
});
|
|
366590
366311
|
|
|
366591
|
-
// missing-module-stub:/
|
|
366312
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/analytics/index.js
|
|
366592
366313
|
var noop18 = () => null, logEvent3;
|
|
366593
366314
|
var init_analytics2 = __esm(() => {
|
|
366594
366315
|
logEvent3 = noop18;
|
|
@@ -372370,7 +372091,7 @@ var init_extra_usage2 = __esm(() => {
|
|
|
372370
372091
|
};
|
|
372371
372092
|
});
|
|
372372
372093
|
|
|
372373
|
-
// missing-module-stub:/
|
|
372094
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/claudeai/claudeAiLimits.js
|
|
372374
372095
|
var noop20 = () => null, currentLimits3, statusListeners2;
|
|
372375
372096
|
var init_claudeAiLimits2 = __esm(() => {
|
|
372376
372097
|
currentLimits3 = noop20;
|
|
@@ -387638,7 +387359,7 @@ ${annotation.preview}`);
|
|
|
387638
387359
|
});
|
|
387639
387360
|
});
|
|
387640
387361
|
|
|
387641
|
-
// missing-module-stub:/
|
|
387362
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/capabilities/config.js
|
|
387642
387363
|
var noop21 = () => null, saveGlobalConfig2;
|
|
387643
387364
|
var init_config9 = __esm(() => {
|
|
387644
387365
|
saveGlobalConfig2 = noop21;
|
|
@@ -389126,7 +388847,7 @@ var require_NodeUtils = __commonJS((exports, module) => {
|
|
|
389126
388847
|
function escapeProcessingInstructionContent(rawContent) {
|
|
389127
388848
|
return rawContent.includes(">") ? rawContent.replaceAll(">", ">") : rawContent;
|
|
389128
388849
|
}
|
|
389129
|
-
function serializeOne(kid,
|
|
388850
|
+
function serializeOne(kid, parent) {
|
|
389130
388851
|
var s = "";
|
|
389131
388852
|
switch (kid.nodeType) {
|
|
389132
388853
|
case 1:
|
|
@@ -389157,11 +388878,11 @@ var require_NodeUtils = __commonJS((exports, module) => {
|
|
|
389157
388878
|
case 3:
|
|
389158
388879
|
case 4:
|
|
389159
388880
|
var parenttag;
|
|
389160
|
-
if (
|
|
389161
|
-
parenttag =
|
|
388881
|
+
if (parent.nodeType === 1 && parent.namespaceURI === NAMESPACE.HTML)
|
|
388882
|
+
parenttag = parent.tagName;
|
|
389162
388883
|
else
|
|
389163
388884
|
parenttag = "";
|
|
389164
|
-
if (hasRawContent[parenttag] || parenttag === "NOSCRIPT" &&
|
|
388885
|
+
if (hasRawContent[parenttag] || parenttag === "NOSCRIPT" && parent.ownerDocument._scripting_enabled) {
|
|
389165
388886
|
s += kid.data;
|
|
389166
388887
|
} else {
|
|
389167
388888
|
s += escape3(kid.data);
|
|
@@ -389241,18 +388962,18 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389241
388962
|
}
|
|
389242
388963
|
},
|
|
389243
388964
|
previousSibling: { get: function() {
|
|
389244
|
-
var
|
|
389245
|
-
if (!
|
|
388965
|
+
var parent = this.parentNode;
|
|
388966
|
+
if (!parent)
|
|
389246
388967
|
return null;
|
|
389247
|
-
if (this ===
|
|
388968
|
+
if (this === parent.firstChild)
|
|
389248
388969
|
return null;
|
|
389249
388970
|
return this._previousSibling;
|
|
389250
388971
|
} },
|
|
389251
388972
|
nextSibling: { get: function() {
|
|
389252
|
-
var
|
|
389253
|
-
if (!
|
|
388973
|
+
var parent = this.parentNode, next = this._nextSibling;
|
|
388974
|
+
if (!parent)
|
|
389254
388975
|
return null;
|
|
389255
|
-
if (next ===
|
|
388976
|
+
if (next === parent.firstChild)
|
|
389256
388977
|
return null;
|
|
389257
388978
|
return next;
|
|
389258
388979
|
} },
|
|
@@ -389277,10 +388998,10 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389277
388998
|
return sum;
|
|
389278
388999
|
} },
|
|
389279
389000
|
_ensureInsertValid: { value: function _ensureInsertValid(node, child, isPreinsert) {
|
|
389280
|
-
var
|
|
389001
|
+
var parent = this, i3, kid;
|
|
389281
389002
|
if (!node.nodeType)
|
|
389282
389003
|
throw new TypeError("not a node");
|
|
389283
|
-
switch (
|
|
389004
|
+
switch (parent.nodeType) {
|
|
389284
389005
|
case DOCUMENT_NODE:
|
|
389285
389006
|
case DOCUMENT_FRAGMENT_NODE:
|
|
389286
389007
|
case ELEMENT_NODE:
|
|
@@ -389288,10 +389009,10 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389288
389009
|
default:
|
|
389289
389010
|
utils.HierarchyRequestError();
|
|
389290
389011
|
}
|
|
389291
|
-
if (node.isAncestor(
|
|
389012
|
+
if (node.isAncestor(parent))
|
|
389292
389013
|
utils.HierarchyRequestError();
|
|
389293
389014
|
if (child !== null || !isPreinsert) {
|
|
389294
|
-
if (child.parentNode !==
|
|
389015
|
+
if (child.parentNode !== parent)
|
|
389295
389016
|
utils.NotFoundError();
|
|
389296
389017
|
}
|
|
389297
389018
|
switch (node.nodeType) {
|
|
@@ -389305,7 +389026,7 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389305
389026
|
default:
|
|
389306
389027
|
utils.HierarchyRequestError();
|
|
389307
389028
|
}
|
|
389308
|
-
if (
|
|
389029
|
+
if (parent.nodeType === DOCUMENT_NODE) {
|
|
389309
389030
|
switch (node.nodeType) {
|
|
389310
389031
|
case TEXT_NODE:
|
|
389311
389032
|
utils.HierarchyRequestError();
|
|
@@ -389325,7 +389046,7 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389325
389046
|
utils.HierarchyRequestError();
|
|
389326
389047
|
}
|
|
389327
389048
|
}
|
|
389328
|
-
i3 =
|
|
389049
|
+
i3 = parent._countChildrenOfType(ELEMENT_NODE);
|
|
389329
389050
|
if (isPreinsert) {
|
|
389330
389051
|
if (i3 > 0)
|
|
389331
389052
|
utils.HierarchyRequestError();
|
|
@@ -389347,7 +389068,7 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389347
389068
|
utils.HierarchyRequestError();
|
|
389348
389069
|
}
|
|
389349
389070
|
}
|
|
389350
|
-
i3 =
|
|
389071
|
+
i3 = parent._countChildrenOfType(ELEMENT_NODE);
|
|
389351
389072
|
if (isPreinsert) {
|
|
389352
389073
|
if (i3 > 0)
|
|
389353
389074
|
utils.HierarchyRequestError();
|
|
@@ -389358,17 +389079,17 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389358
389079
|
break;
|
|
389359
389080
|
case DOCUMENT_TYPE_NODE:
|
|
389360
389081
|
if (child === null) {
|
|
389361
|
-
if (
|
|
389082
|
+
if (parent._countChildrenOfType(ELEMENT_NODE))
|
|
389362
389083
|
utils.HierarchyRequestError();
|
|
389363
389084
|
} else {
|
|
389364
|
-
for (kid =
|
|
389085
|
+
for (kid = parent.firstChild;kid !== null; kid = kid.nextSibling) {
|
|
389365
389086
|
if (kid === child)
|
|
389366
389087
|
break;
|
|
389367
389088
|
if (kid.nodeType === ELEMENT_NODE)
|
|
389368
389089
|
utils.HierarchyRequestError();
|
|
389369
389090
|
}
|
|
389370
389091
|
}
|
|
389371
|
-
i3 =
|
|
389092
|
+
i3 = parent._countChildrenOfType(DOCUMENT_TYPE_NODE);
|
|
389372
389093
|
if (isPreinsert) {
|
|
389373
389094
|
if (i3 > 0)
|
|
389374
389095
|
utils.HierarchyRequestError();
|
|
@@ -389384,14 +389105,14 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389384
389105
|
}
|
|
389385
389106
|
} },
|
|
389386
389107
|
insertBefore: { value: function insertBefore(node, child) {
|
|
389387
|
-
var
|
|
389388
|
-
|
|
389108
|
+
var parent = this;
|
|
389109
|
+
parent._ensureInsertValid(node, child, true);
|
|
389389
389110
|
var refChild = child;
|
|
389390
389111
|
if (refChild === node) {
|
|
389391
389112
|
refChild = node.nextSibling;
|
|
389392
389113
|
}
|
|
389393
|
-
|
|
389394
|
-
node._insertOrReplace(
|
|
389114
|
+
parent.doc.adoptNode(node);
|
|
389115
|
+
node._insertOrReplace(parent, refChild, false);
|
|
389395
389116
|
return node;
|
|
389396
389117
|
} },
|
|
389397
389118
|
appendChild: { value: function(child) {
|
|
@@ -389401,21 +389122,21 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389401
389122
|
child._insertOrReplace(this, null, false);
|
|
389402
389123
|
} },
|
|
389403
389124
|
removeChild: { value: function removeChild(child) {
|
|
389404
|
-
var
|
|
389125
|
+
var parent = this;
|
|
389405
389126
|
if (!child.nodeType)
|
|
389406
389127
|
throw new TypeError("not a node");
|
|
389407
|
-
if (child.parentNode !==
|
|
389128
|
+
if (child.parentNode !== parent)
|
|
389408
389129
|
utils.NotFoundError();
|
|
389409
389130
|
child.remove();
|
|
389410
389131
|
return child;
|
|
389411
389132
|
} },
|
|
389412
389133
|
replaceChild: { value: function replaceChild(node, child) {
|
|
389413
|
-
var
|
|
389414
|
-
|
|
389415
|
-
if (node.doc !==
|
|
389416
|
-
|
|
389134
|
+
var parent = this;
|
|
389135
|
+
parent._ensureInsertValid(node, child, false);
|
|
389136
|
+
if (node.doc !== parent.doc) {
|
|
389137
|
+
parent.doc.adoptNode(node);
|
|
389417
389138
|
}
|
|
389418
|
-
node._insertOrReplace(
|
|
389139
|
+
node._insertOrReplace(parent, child, true);
|
|
389419
389140
|
return child;
|
|
389420
389141
|
} },
|
|
389421
389142
|
contains: { value: function contains(node) {
|
|
@@ -389535,10 +389256,10 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389535
389256
|
return defaultNamespace === ns;
|
|
389536
389257
|
} },
|
|
389537
389258
|
index: { get: function() {
|
|
389538
|
-
var
|
|
389539
|
-
if (this ===
|
|
389259
|
+
var parent = this.parentNode;
|
|
389260
|
+
if (this === parent.firstChild)
|
|
389540
389261
|
return 0;
|
|
389541
|
-
var kids =
|
|
389262
|
+
var kids = parent.childNodes;
|
|
389542
389263
|
if (this._index === undefined || kids[this._index] !== this) {
|
|
389543
389264
|
for (var i3 = 0;i3 < kids.length; i3++) {
|
|
389544
389265
|
kids[i3]._index = i3;
|
|
@@ -389566,14 +389287,14 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389566
389287
|
}
|
|
389567
389288
|
} },
|
|
389568
389289
|
removeChildren: { value: utils.shouldOverride },
|
|
389569
|
-
_insertOrReplace: { value: function _insertOrReplace(
|
|
389290
|
+
_insertOrReplace: { value: function _insertOrReplace(parent, before, isReplace) {
|
|
389570
389291
|
var child = this, before_index, i3;
|
|
389571
389292
|
if (child.nodeType === DOCUMENT_FRAGMENT_NODE && child.rooted) {
|
|
389572
389293
|
utils.HierarchyRequestError();
|
|
389573
389294
|
}
|
|
389574
|
-
if (
|
|
389575
|
-
before_index = before === null ?
|
|
389576
|
-
if (child.parentNode ===
|
|
389295
|
+
if (parent._childNodes) {
|
|
389296
|
+
before_index = before === null ? parent._childNodes.length : before.index;
|
|
389297
|
+
if (child.parentNode === parent) {
|
|
389577
389298
|
var child_index = child.index;
|
|
389578
389299
|
if (child_index < before_index) {
|
|
389579
389300
|
before_index--;
|
|
@@ -389587,15 +389308,15 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389587
389308
|
}
|
|
389588
389309
|
var n2 = before;
|
|
389589
389310
|
if (n2 === null) {
|
|
389590
|
-
n2 =
|
|
389311
|
+
n2 = parent.firstChild;
|
|
389591
389312
|
}
|
|
389592
|
-
var bothRooted = child.rooted &&
|
|
389313
|
+
var bothRooted = child.rooted && parent.rooted;
|
|
389593
389314
|
if (child.nodeType === DOCUMENT_FRAGMENT_NODE) {
|
|
389594
389315
|
var spliceArgs = [0, isReplace ? 1 : 0], next;
|
|
389595
389316
|
for (var kid = child.firstChild;kid !== null; kid = next) {
|
|
389596
389317
|
next = kid.nextSibling;
|
|
389597
389318
|
spliceArgs.push(kid);
|
|
389598
|
-
kid.parentNode =
|
|
389319
|
+
kid.parentNode = parent;
|
|
389599
389320
|
}
|
|
389600
389321
|
var len = spliceArgs.length;
|
|
389601
389322
|
if (isReplace) {
|
|
@@ -389603,17 +389324,17 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389603
389324
|
} else if (len > 2 && n2 !== null) {
|
|
389604
389325
|
LinkedList.insertBefore(spliceArgs[2], n2);
|
|
389605
389326
|
}
|
|
389606
|
-
if (
|
|
389607
|
-
spliceArgs[0] = before === null ?
|
|
389608
|
-
|
|
389327
|
+
if (parent._childNodes) {
|
|
389328
|
+
spliceArgs[0] = before === null ? parent._childNodes.length : before._index;
|
|
389329
|
+
parent._childNodes.splice.apply(parent._childNodes, spliceArgs);
|
|
389609
389330
|
for (i3 = 2;i3 < len; i3++) {
|
|
389610
389331
|
spliceArgs[i3]._index = spliceArgs[0] + (i3 - 2);
|
|
389611
389332
|
}
|
|
389612
|
-
} else if (
|
|
389333
|
+
} else if (parent._firstChild === before) {
|
|
389613
389334
|
if (len > 2) {
|
|
389614
|
-
|
|
389335
|
+
parent._firstChild = spliceArgs[2];
|
|
389615
389336
|
} else if (isReplace) {
|
|
389616
|
-
|
|
389337
|
+
parent._firstChild = null;
|
|
389617
389338
|
}
|
|
389618
389339
|
}
|
|
389619
389340
|
if (child._childNodes) {
|
|
@@ -389621,10 +389342,10 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389621
389342
|
} else {
|
|
389622
389343
|
child._firstChild = null;
|
|
389623
389344
|
}
|
|
389624
|
-
if (
|
|
389625
|
-
|
|
389345
|
+
if (parent.rooted) {
|
|
389346
|
+
parent.modify();
|
|
389626
389347
|
for (i3 = 2;i3 < len; i3++) {
|
|
389627
|
-
|
|
389348
|
+
parent.doc.mutateInsert(spliceArgs[i3]);
|
|
389628
389349
|
}
|
|
389629
389350
|
}
|
|
389630
389351
|
} else {
|
|
@@ -389636,32 +389357,32 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389636
389357
|
} else if (child.parentNode) {
|
|
389637
389358
|
child.remove();
|
|
389638
389359
|
}
|
|
389639
|
-
child.parentNode =
|
|
389360
|
+
child.parentNode = parent;
|
|
389640
389361
|
if (isReplace) {
|
|
389641
389362
|
LinkedList.replace(n2, child);
|
|
389642
|
-
if (
|
|
389363
|
+
if (parent._childNodes) {
|
|
389643
389364
|
child._index = before_index;
|
|
389644
|
-
|
|
389645
|
-
} else if (
|
|
389646
|
-
|
|
389365
|
+
parent._childNodes[before_index] = child;
|
|
389366
|
+
} else if (parent._firstChild === before) {
|
|
389367
|
+
parent._firstChild = child;
|
|
389647
389368
|
}
|
|
389648
389369
|
} else {
|
|
389649
389370
|
if (n2 !== null) {
|
|
389650
389371
|
LinkedList.insertBefore(child, n2);
|
|
389651
389372
|
}
|
|
389652
|
-
if (
|
|
389373
|
+
if (parent._childNodes) {
|
|
389653
389374
|
child._index = before_index;
|
|
389654
|
-
|
|
389655
|
-
} else if (
|
|
389656
|
-
|
|
389375
|
+
parent._childNodes.splice(before_index, 0, child);
|
|
389376
|
+
} else if (parent._firstChild === before) {
|
|
389377
|
+
parent._firstChild = child;
|
|
389657
389378
|
}
|
|
389658
389379
|
}
|
|
389659
389380
|
if (bothRooted) {
|
|
389660
|
-
|
|
389661
|
-
|
|
389662
|
-
} else if (
|
|
389663
|
-
|
|
389664
|
-
|
|
389381
|
+
parent.modify();
|
|
389382
|
+
parent.doc.mutateMove(child);
|
|
389383
|
+
} else if (parent.rooted) {
|
|
389384
|
+
parent.modify();
|
|
389385
|
+
parent.doc.mutateInsert(child);
|
|
389665
389386
|
}
|
|
389666
389387
|
}
|
|
389667
389388
|
} },
|
|
@@ -391067,20 +390788,20 @@ var require_ChildNode = __commonJS((exports, module) => {
|
|
|
391067
390788
|
this.parentNode = null;
|
|
391068
390789
|
} },
|
|
391069
390790
|
_remove: { value: function _remove() {
|
|
391070
|
-
var
|
|
391071
|
-
if (
|
|
390791
|
+
var parent = this.parentNode;
|
|
390792
|
+
if (parent === null)
|
|
391072
390793
|
return;
|
|
391073
|
-
if (
|
|
391074
|
-
|
|
391075
|
-
} else if (
|
|
390794
|
+
if (parent._childNodes) {
|
|
390795
|
+
parent._childNodes.splice(this.index, 1);
|
|
390796
|
+
} else if (parent._firstChild === this) {
|
|
391076
390797
|
if (this._nextSibling === this) {
|
|
391077
|
-
|
|
390798
|
+
parent._firstChild = null;
|
|
391078
390799
|
} else {
|
|
391079
|
-
|
|
390800
|
+
parent._firstChild = this._nextSibling;
|
|
391080
390801
|
}
|
|
391081
390802
|
}
|
|
391082
390803
|
LinkedList.remove(this);
|
|
391083
|
-
|
|
390804
|
+
parent.modify();
|
|
391084
390805
|
} },
|
|
391085
390806
|
replaceWith: { value: function replaceWith() {
|
|
391086
390807
|
var argArr = Array.prototype.slice.call(arguments);
|
|
@@ -391275,17 +390996,17 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391275
390996
|
},
|
|
391276
390997
|
set: function(v) {
|
|
391277
390998
|
var document2 = this.ownerDocument;
|
|
391278
|
-
var
|
|
391279
|
-
if (
|
|
390999
|
+
var parent = this.parentNode;
|
|
391000
|
+
if (parent === null) {
|
|
391280
391001
|
return;
|
|
391281
391002
|
}
|
|
391282
|
-
if (
|
|
391003
|
+
if (parent.nodeType === Node2.DOCUMENT_NODE) {
|
|
391283
391004
|
utils.NoModificationAllowedError();
|
|
391284
391005
|
}
|
|
391285
|
-
if (
|
|
391286
|
-
|
|
391006
|
+
if (parent.nodeType === Node2.DOCUMENT_FRAGMENT_NODE) {
|
|
391007
|
+
parent = parent.ownerDocument.createElement("body");
|
|
391287
391008
|
}
|
|
391288
|
-
var parser2 = document2.implementation.mozHTMLParser(document2._address,
|
|
391009
|
+
var parser2 = document2.implementation.mozHTMLParser(document2._address, parent);
|
|
391289
391010
|
parser2.parse(v === null ? "" : String(v), true);
|
|
391290
391011
|
this.replaceWith(parser2._asDocumentFragment());
|
|
391291
391012
|
}
|
|
@@ -391296,11 +391017,11 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391296
391017
|
case "beforebegin":
|
|
391297
391018
|
first = true;
|
|
391298
391019
|
case "afterend":
|
|
391299
|
-
var
|
|
391300
|
-
if (
|
|
391020
|
+
var parent = this.parentNode;
|
|
391021
|
+
if (parent === null) {
|
|
391301
391022
|
return null;
|
|
391302
391023
|
}
|
|
391303
|
-
return
|
|
391024
|
+
return parent.insertBefore(node, first ? this : this.nextSibling);
|
|
391304
391025
|
case "afterbegin":
|
|
391305
391026
|
first = true;
|
|
391306
391027
|
case "beforeend":
|
|
@@ -391387,8 +391108,8 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391387
391108
|
}
|
|
391388
391109
|
if (next)
|
|
391389
391110
|
return next;
|
|
391390
|
-
for (var
|
|
391391
|
-
next =
|
|
391111
|
+
for (var parent = this.parentElement;parent && parent !== root2; parent = parent.parentElement) {
|
|
391112
|
+
next = parent.nextElementSibling;
|
|
391392
391113
|
if (next)
|
|
391393
391114
|
return next;
|
|
391394
391115
|
}
|
|
@@ -391474,8 +391195,8 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391474
391195
|
return a2.localName;
|
|
391475
391196
|
}
|
|
391476
391197
|
}
|
|
391477
|
-
var
|
|
391478
|
-
return
|
|
391198
|
+
var parent = this.parentElement;
|
|
391199
|
+
return parent ? parent._lookupNamespacePrefix(ns, originalElement) : null;
|
|
391479
391200
|
} },
|
|
391480
391201
|
lookupNamespaceURI: { value: function lookupNamespaceURI(prefix) {
|
|
391481
391202
|
if (prefix === "" || prefix === undefined) {
|
|
@@ -391491,8 +391212,8 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391491
391212
|
}
|
|
391492
391213
|
}
|
|
391493
391214
|
}
|
|
391494
|
-
var
|
|
391495
|
-
return
|
|
391215
|
+
var parent = this.parentElement;
|
|
391216
|
+
return parent ? parent.lookupNamespaceURI(prefix) : null;
|
|
391496
391217
|
} },
|
|
391497
391218
|
getAttribute: { value: function getAttribute(qname) {
|
|
391498
391219
|
var attr = this.getAttributeNode(qname);
|
|
@@ -392213,9 +391934,9 @@ var require_Text = __commonJS((exports, module) => {
|
|
|
392213
391934
|
utils.IndexSizeError();
|
|
392214
391935
|
var newdata = this._data.substring(offset), newnode = this.ownerDocument.createTextNode(newdata);
|
|
392215
391936
|
this.data = this.data.substring(0, offset);
|
|
392216
|
-
var
|
|
392217
|
-
if (
|
|
392218
|
-
|
|
391937
|
+
var parent = this.parentNode;
|
|
391938
|
+
if (parent !== null)
|
|
391939
|
+
parent.insertBefore(newnode, this.nextSibling);
|
|
392219
391940
|
return newnode;
|
|
392220
391941
|
} },
|
|
392221
391942
|
wholeText: { get: function wholeText() {
|
|
@@ -392491,7 +392212,7 @@ var require_TreeWalker = __commonJS((exports, module) => {
|
|
|
392491
392212
|
previous: "previousSibling"
|
|
392492
392213
|
};
|
|
392493
392214
|
function traverseChildren(tw, type) {
|
|
392494
|
-
var child, node,
|
|
392215
|
+
var child, node, parent, result, sibling;
|
|
392495
392216
|
node = tw._currentNode[mapChild[type]];
|
|
392496
392217
|
while (node !== null) {
|
|
392497
392218
|
result = tw._internalFilter(node);
|
|
@@ -392512,11 +392233,11 @@ var require_TreeWalker = __commonJS((exports, module) => {
|
|
|
392512
392233
|
node = sibling;
|
|
392513
392234
|
break;
|
|
392514
392235
|
}
|
|
392515
|
-
|
|
392516
|
-
if (
|
|
392236
|
+
parent = node.parentNode;
|
|
392237
|
+
if (parent === null || parent === tw.root || parent === tw._currentNode) {
|
|
392517
392238
|
return null;
|
|
392518
392239
|
} else {
|
|
392519
|
-
node =
|
|
392240
|
+
node = parent;
|
|
392520
392241
|
}
|
|
392521
392242
|
}
|
|
392522
392243
|
}
|
|
@@ -395797,9 +395518,9 @@ var require_Document2 = __commonJS((exports, module) => {
|
|
|
395797
395518
|
}
|
|
395798
395519
|
});
|
|
395799
395520
|
});
|
|
395800
|
-
function namedHTMLChild(
|
|
395801
|
-
if (
|
|
395802
|
-
for (var kid =
|
|
395521
|
+
function namedHTMLChild(parent, name) {
|
|
395522
|
+
if (parent && parent.isHTML) {
|
|
395523
|
+
for (var kid = parent.firstChild;kid !== null; kid = kid.nextSibling) {
|
|
395803
395524
|
if (kid.nodeType === Node2.ELEMENT_NODE && kid.localName === name && kid.namespaceURI === NAMESPACE.HTML) {
|
|
395804
395525
|
return kid;
|
|
395805
395526
|
}
|
|
@@ -399335,33 +399056,33 @@ var require_HTMLParser = __commonJS((exports, module) => {
|
|
|
399335
399056
|
}
|
|
399336
399057
|
};
|
|
399337
399058
|
function insertComment(data) {
|
|
399338
|
-
var
|
|
399339
|
-
if (foster_parent_mode && isA(
|
|
399059
|
+
var parent = stack.top;
|
|
399060
|
+
if (foster_parent_mode && isA(parent, tablesectionrowSet)) {
|
|
399340
399061
|
fosterParent(function(doc3) {
|
|
399341
399062
|
return doc3.createComment(data);
|
|
399342
399063
|
});
|
|
399343
399064
|
} else {
|
|
399344
|
-
if (
|
|
399345
|
-
|
|
399065
|
+
if (parent instanceof impl.HTMLTemplateElement) {
|
|
399066
|
+
parent = parent.content;
|
|
399346
399067
|
}
|
|
399347
|
-
|
|
399068
|
+
parent._appendChild(parent.ownerDocument.createComment(data));
|
|
399348
399069
|
}
|
|
399349
399070
|
}
|
|
399350
399071
|
function insertText(s) {
|
|
399351
|
-
var
|
|
399352
|
-
if (foster_parent_mode && isA(
|
|
399072
|
+
var parent = stack.top;
|
|
399073
|
+
if (foster_parent_mode && isA(parent, tablesectionrowSet)) {
|
|
399353
399074
|
fosterParent(function(doc3) {
|
|
399354
399075
|
return doc3.createTextNode(s);
|
|
399355
399076
|
});
|
|
399356
399077
|
} else {
|
|
399357
|
-
if (
|
|
399358
|
-
|
|
399078
|
+
if (parent instanceof impl.HTMLTemplateElement) {
|
|
399079
|
+
parent = parent.content;
|
|
399359
399080
|
}
|
|
399360
|
-
var lastChild =
|
|
399081
|
+
var lastChild = parent.lastChild;
|
|
399361
399082
|
if (lastChild && lastChild.nodeType === Node2.TEXT_NODE) {
|
|
399362
399083
|
lastChild.appendData(s);
|
|
399363
399084
|
} else {
|
|
399364
|
-
|
|
399085
|
+
parent._appendChild(parent.ownerDocument.createTextNode(s));
|
|
399365
399086
|
}
|
|
399366
399087
|
}
|
|
399367
399088
|
}
|
|
@@ -399423,40 +399144,40 @@ var require_HTMLParser = __commonJS((exports, module) => {
|
|
|
399423
399144
|
return -1;
|
|
399424
399145
|
}
|
|
399425
399146
|
function fosterParent(eltFunc) {
|
|
399426
|
-
var
|
|
399147
|
+
var parent, before, lastTable = -1, lastTemplate = -1, elt;
|
|
399427
399148
|
lastTable = lastElementOfType(impl.HTMLTableElement);
|
|
399428
399149
|
lastTemplate = lastElementOfType(impl.HTMLTemplateElement);
|
|
399429
399150
|
if (lastTemplate >= 0 && (lastTable < 0 || lastTemplate > lastTable)) {
|
|
399430
|
-
|
|
399151
|
+
parent = stack.elements[lastTemplate];
|
|
399431
399152
|
} else if (lastTable >= 0) {
|
|
399432
|
-
|
|
399433
|
-
if (
|
|
399153
|
+
parent = stack.elements[lastTable].parentNode;
|
|
399154
|
+
if (parent) {
|
|
399434
399155
|
before = stack.elements[lastTable];
|
|
399435
399156
|
} else {
|
|
399436
|
-
|
|
399157
|
+
parent = stack.elements[lastTable - 1];
|
|
399437
399158
|
}
|
|
399438
399159
|
}
|
|
399439
|
-
if (!
|
|
399440
|
-
|
|
399441
|
-
if (
|
|
399442
|
-
|
|
399160
|
+
if (!parent)
|
|
399161
|
+
parent = stack.elements[0];
|
|
399162
|
+
if (parent instanceof impl.HTMLTemplateElement) {
|
|
399163
|
+
parent = parent.content;
|
|
399443
399164
|
}
|
|
399444
|
-
elt = eltFunc(
|
|
399165
|
+
elt = eltFunc(parent.ownerDocument);
|
|
399445
399166
|
if (elt.nodeType === Node2.TEXT_NODE) {
|
|
399446
399167
|
var prev;
|
|
399447
399168
|
if (before)
|
|
399448
399169
|
prev = before.previousSibling;
|
|
399449
399170
|
else
|
|
399450
|
-
prev =
|
|
399171
|
+
prev = parent.lastChild;
|
|
399451
399172
|
if (prev && prev.nodeType === Node2.TEXT_NODE) {
|
|
399452
399173
|
prev.appendData(elt.data);
|
|
399453
399174
|
return elt;
|
|
399454
399175
|
}
|
|
399455
399176
|
}
|
|
399456
399177
|
if (before)
|
|
399457
|
-
|
|
399178
|
+
parent.insertBefore(elt, before);
|
|
399458
399179
|
else
|
|
399459
|
-
|
|
399180
|
+
parent._appendChild(elt);
|
|
399460
399181
|
return elt;
|
|
399461
399182
|
}
|
|
399462
399183
|
function resetInsertionMode() {
|
|
@@ -404434,8 +404155,8 @@ var require_turndown_cjs = __commonJS((exports, module) => {
|
|
|
404434
404155
|
rules.list = {
|
|
404435
404156
|
filter: ["ul", "ol"],
|
|
404436
404157
|
replacement: function(content, node) {
|
|
404437
|
-
var
|
|
404438
|
-
if (
|
|
404158
|
+
var parent = node.parentNode;
|
|
404159
|
+
if (parent.nodeName === "LI" && parent.lastElementChild === node) {
|
|
404439
404160
|
return `
|
|
404440
404161
|
` + content;
|
|
404441
404162
|
} else {
|
|
@@ -404451,10 +404172,10 @@ var require_turndown_cjs = __commonJS((exports, module) => {
|
|
|
404451
404172
|
filter: "li",
|
|
404452
404173
|
replacement: function(content, node, options2) {
|
|
404453
404174
|
var prefix = options2.bulletListMarker + " ";
|
|
404454
|
-
var
|
|
404455
|
-
if (
|
|
404456
|
-
var start =
|
|
404457
|
-
var index = Array.prototype.indexOf.call(
|
|
404175
|
+
var parent = node.parentNode;
|
|
404176
|
+
if (parent.nodeName === "OL") {
|
|
404177
|
+
var start = parent.getAttribute("start");
|
|
404178
|
+
var index = Array.prototype.indexOf.call(parent.children, node);
|
|
404458
404179
|
prefix = (start ? Number(start) + index : index + 1) + ". ";
|
|
404459
404180
|
}
|
|
404460
404181
|
var isParagraph = /\n$/.test(content);
|
|
@@ -427130,7 +426851,7 @@ var init_useIdeConnectionStatus = __esm(() => {
|
|
|
427130
426851
|
import_react130 = __toESM(require_react(), 1);
|
|
427131
426852
|
});
|
|
427132
426853
|
|
|
427133
|
-
// missing-module-stub:/
|
|
426854
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/services/analytics/growthbook.js
|
|
427134
426855
|
var init_growthbook2 = () => {};
|
|
427135
426856
|
|
|
427136
426857
|
// src/capabilities/voice/voiceModeEnabled.ts
|
|
@@ -427646,19 +427367,19 @@ var init_autoUpdater = __esm(() => {
|
|
|
427646
427367
|
LOCK_TIMEOUT_MS = 5 * 60 * 1000;
|
|
427647
427368
|
});
|
|
427648
427369
|
|
|
427649
|
-
// missing-module-stub:/
|
|
427370
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/debug.js
|
|
427650
427371
|
var noop22 = () => null, logForDebugging9;
|
|
427651
427372
|
var init_debug2 = __esm(() => {
|
|
427652
427373
|
logForDebugging9 = noop22;
|
|
427653
427374
|
});
|
|
427654
427375
|
|
|
427655
|
-
// missing-module-stub:/
|
|
427376
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/execFileNoThrow.js
|
|
427656
427377
|
var noop23 = () => null, execFileNoThrow2;
|
|
427657
427378
|
var init_execFileNoThrow2 = __esm(() => {
|
|
427658
427379
|
execFileNoThrow2 = noop23;
|
|
427659
427380
|
});
|
|
427660
427381
|
|
|
427661
|
-
// missing-module-stub:/
|
|
427382
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/platform.js
|
|
427662
427383
|
var noop24 = () => null, getPlatform2;
|
|
427663
427384
|
var init_platform3 = __esm(() => {
|
|
427664
427385
|
getPlatform2 = noop24;
|
|
@@ -432115,8 +431836,7 @@ class FuseIndex {
|
|
|
432115
431836
|
value: item
|
|
432116
431837
|
});
|
|
432117
431838
|
});
|
|
432118
|
-
}
|
|
432119
|
-
;
|
|
431839
|
+
}
|
|
432120
431840
|
}
|
|
432121
431841
|
record3.$[keyIndex] = subRecords;
|
|
432122
431842
|
} else if (isString2(value) && !isBlank(value)) {
|
|
@@ -433146,7 +432866,7 @@ var init_fuse = __esm(() => {
|
|
|
433146
432866
|
}
|
|
433147
432867
|
});
|
|
433148
432868
|
|
|
433149
|
-
// missing-module-stub:/
|
|
432869
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/suggestions/skillUsageTracking.js
|
|
433150
432870
|
var noop25 = () => null, recordSkillUsage2, getSkillUsageScore;
|
|
433151
432871
|
var init_skillUsageTracking2 = __esm(() => {
|
|
433152
432872
|
recordSkillUsage2 = noop25;
|
|
@@ -434235,11 +433955,11 @@ function collectDirectoryNames(files, start, end, out) {
|
|
|
434235
433955
|
for (let i3 = start;i3 < end; i3++) {
|
|
434236
433956
|
let currentDir = path16.dirname(files[i3]);
|
|
434237
433957
|
while (currentDir !== "." && !out.has(currentDir)) {
|
|
434238
|
-
const
|
|
434239
|
-
if (
|
|
433958
|
+
const parent = path16.dirname(currentDir);
|
|
433959
|
+
if (parent === currentDir)
|
|
434240
433960
|
break;
|
|
434241
433961
|
out.add(currentDir);
|
|
434242
|
-
currentDir =
|
|
433962
|
+
currentDir = parent;
|
|
434243
433963
|
}
|
|
434244
433964
|
}
|
|
434245
433965
|
}
|
|
@@ -452722,7 +452442,7 @@ function PromptInput({
|
|
|
452722
452442
|
clearBuffer();
|
|
452723
452443
|
resetHistory();
|
|
452724
452444
|
return;
|
|
452725
|
-
} else if (result.error === "no_team_context") {}
|
|
452445
|
+
} else if (result.error === "no_team_context") {}
|
|
452726
452446
|
}
|
|
452727
452447
|
}
|
|
452728
452448
|
if (inputParam.trim() === "" && !hasImages) {
|
|
@@ -460097,6 +459817,61 @@ var init_useMergedClients = __esm(() => {
|
|
|
460097
459817
|
import_react189 = __toESM(require_react(), 1);
|
|
460098
459818
|
});
|
|
460099
459819
|
|
|
459820
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_arrayAggregator.js
|
|
459821
|
+
function arrayAggregator(array3, setter, iteratee, accumulator) {
|
|
459822
|
+
var index = -1, length = array3 == null ? 0 : array3.length;
|
|
459823
|
+
while (++index < length) {
|
|
459824
|
+
var value = array3[index];
|
|
459825
|
+
setter(accumulator, value, iteratee(value), array3);
|
|
459826
|
+
}
|
|
459827
|
+
return accumulator;
|
|
459828
|
+
}
|
|
459829
|
+
var _arrayAggregator_default;
|
|
459830
|
+
var init__arrayAggregator = __esm(() => {
|
|
459831
|
+
_arrayAggregator_default = arrayAggregator;
|
|
459832
|
+
});
|
|
459833
|
+
|
|
459834
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseAggregator.js
|
|
459835
|
+
function baseAggregator(collection, setter, iteratee, accumulator) {
|
|
459836
|
+
_baseEach_default(collection, function(value, key, collection2) {
|
|
459837
|
+
setter(accumulator, value, iteratee(value), collection2);
|
|
459838
|
+
});
|
|
459839
|
+
return accumulator;
|
|
459840
|
+
}
|
|
459841
|
+
var _baseAggregator_default;
|
|
459842
|
+
var init__baseAggregator = __esm(() => {
|
|
459843
|
+
init__baseEach();
|
|
459844
|
+
_baseAggregator_default = baseAggregator;
|
|
459845
|
+
});
|
|
459846
|
+
|
|
459847
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createAggregator.js
|
|
459848
|
+
function createAggregator(setter, initializer3) {
|
|
459849
|
+
return function(collection, iteratee) {
|
|
459850
|
+
var func = isArray_default(collection) ? _arrayAggregator_default : _baseAggregator_default, accumulator = initializer3 ? initializer3() : {};
|
|
459851
|
+
return func(collection, setter, _baseIteratee_default(iteratee, 2), accumulator);
|
|
459852
|
+
};
|
|
459853
|
+
}
|
|
459854
|
+
var _createAggregator_default;
|
|
459855
|
+
var init__createAggregator = __esm(() => {
|
|
459856
|
+
init__arrayAggregator();
|
|
459857
|
+
init__baseAggregator();
|
|
459858
|
+
init__baseIteratee();
|
|
459859
|
+
init_isArray();
|
|
459860
|
+
_createAggregator_default = createAggregator;
|
|
459861
|
+
});
|
|
459862
|
+
|
|
459863
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/partition.js
|
|
459864
|
+
var partition2, partition_default;
|
|
459865
|
+
var init_partition = __esm(() => {
|
|
459866
|
+
init__createAggregator();
|
|
459867
|
+
partition2 = _createAggregator_default(function(result, value, key) {
|
|
459868
|
+
result[key ? 0 : 1].push(value);
|
|
459869
|
+
}, function() {
|
|
459870
|
+
return [[], []];
|
|
459871
|
+
});
|
|
459872
|
+
partition_default = partition2;
|
|
459873
|
+
});
|
|
459874
|
+
|
|
460100
459875
|
// src/controller/toolPool.ts
|
|
460101
459876
|
function getToolNameForSort2(tool) {
|
|
460102
459877
|
if (typeof tool?.name === "string")
|
|
@@ -463402,6 +463177,154 @@ var init_RemoteCallout = __esm(() => {
|
|
|
463402
463177
|
jsx_dev_runtime238 = __toESM(require_jsx_dev_runtime(), 1);
|
|
463403
463178
|
});
|
|
463404
463179
|
|
|
463180
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_parent.js
|
|
463181
|
+
function parent(object4, path18) {
|
|
463182
|
+
return path18.length < 2 ? object4 : _baseGet_default(object4, _baseSlice_default(path18, 0, -1));
|
|
463183
|
+
}
|
|
463184
|
+
var _parent_default;
|
|
463185
|
+
var init__parent = __esm(() => {
|
|
463186
|
+
init__baseGet();
|
|
463187
|
+
init__baseSlice();
|
|
463188
|
+
_parent_default = parent;
|
|
463189
|
+
});
|
|
463190
|
+
|
|
463191
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseUnset.js
|
|
463192
|
+
function baseUnset(object4, path18) {
|
|
463193
|
+
path18 = _castPath_default(path18, object4);
|
|
463194
|
+
var index = -1, length = path18.length;
|
|
463195
|
+
if (!length) {
|
|
463196
|
+
return true;
|
|
463197
|
+
}
|
|
463198
|
+
while (++index < length) {
|
|
463199
|
+
var key = _toKey_default(path18[index]);
|
|
463200
|
+
if (key === "__proto__" && !hasOwnProperty15.call(object4, "__proto__")) {
|
|
463201
|
+
return false;
|
|
463202
|
+
}
|
|
463203
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
463204
|
+
return false;
|
|
463205
|
+
}
|
|
463206
|
+
}
|
|
463207
|
+
var obj = _parent_default(object4, path18);
|
|
463208
|
+
return obj == null || delete obj[_toKey_default(last_default(path18))];
|
|
463209
|
+
}
|
|
463210
|
+
var objectProto17, hasOwnProperty15, _baseUnset_default;
|
|
463211
|
+
var init__baseUnset = __esm(() => {
|
|
463212
|
+
init__castPath();
|
|
463213
|
+
init_last();
|
|
463214
|
+
init__parent();
|
|
463215
|
+
init__toKey();
|
|
463216
|
+
objectProto17 = Object.prototype;
|
|
463217
|
+
hasOwnProperty15 = objectProto17.hasOwnProperty;
|
|
463218
|
+
_baseUnset_default = baseUnset;
|
|
463219
|
+
});
|
|
463220
|
+
|
|
463221
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_customOmitClone.js
|
|
463222
|
+
function customOmitClone(value) {
|
|
463223
|
+
return isPlainObject_default(value) ? undefined : value;
|
|
463224
|
+
}
|
|
463225
|
+
var _customOmitClone_default;
|
|
463226
|
+
var init__customOmitClone = __esm(() => {
|
|
463227
|
+
init_isPlainObject();
|
|
463228
|
+
_customOmitClone_default = customOmitClone;
|
|
463229
|
+
});
|
|
463230
|
+
|
|
463231
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_isFlattenable.js
|
|
463232
|
+
function isFlattenable(value) {
|
|
463233
|
+
return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
463234
|
+
}
|
|
463235
|
+
var spreadableSymbol, _isFlattenable_default;
|
|
463236
|
+
var init__isFlattenable = __esm(() => {
|
|
463237
|
+
init__Symbol();
|
|
463238
|
+
init_isArguments();
|
|
463239
|
+
init_isArray();
|
|
463240
|
+
spreadableSymbol = _Symbol_default ? _Symbol_default.isConcatSpreadable : undefined;
|
|
463241
|
+
_isFlattenable_default = isFlattenable;
|
|
463242
|
+
});
|
|
463243
|
+
|
|
463244
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseFlatten.js
|
|
463245
|
+
function baseFlatten(array3, depth, predicate, isStrict, result) {
|
|
463246
|
+
var index = -1, length = array3.length;
|
|
463247
|
+
predicate || (predicate = _isFlattenable_default);
|
|
463248
|
+
result || (result = []);
|
|
463249
|
+
while (++index < length) {
|
|
463250
|
+
var value = array3[index];
|
|
463251
|
+
if (depth > 0 && predicate(value)) {
|
|
463252
|
+
if (depth > 1) {
|
|
463253
|
+
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
463254
|
+
} else {
|
|
463255
|
+
_arrayPush_default(result, value);
|
|
463256
|
+
}
|
|
463257
|
+
} else if (!isStrict) {
|
|
463258
|
+
result[result.length] = value;
|
|
463259
|
+
}
|
|
463260
|
+
}
|
|
463261
|
+
return result;
|
|
463262
|
+
}
|
|
463263
|
+
var _baseFlatten_default;
|
|
463264
|
+
var init__baseFlatten = __esm(() => {
|
|
463265
|
+
init__arrayPush();
|
|
463266
|
+
init__isFlattenable();
|
|
463267
|
+
_baseFlatten_default = baseFlatten;
|
|
463268
|
+
});
|
|
463269
|
+
|
|
463270
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/flatten.js
|
|
463271
|
+
function flatten(array3) {
|
|
463272
|
+
var length = array3 == null ? 0 : array3.length;
|
|
463273
|
+
return length ? _baseFlatten_default(array3, 1) : [];
|
|
463274
|
+
}
|
|
463275
|
+
var flatten_default;
|
|
463276
|
+
var init_flatten = __esm(() => {
|
|
463277
|
+
init__baseFlatten();
|
|
463278
|
+
flatten_default = flatten;
|
|
463279
|
+
});
|
|
463280
|
+
|
|
463281
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_flatRest.js
|
|
463282
|
+
function flatRest(func) {
|
|
463283
|
+
return _setToString_default(_overRest_default(func, undefined, flatten_default), func + "");
|
|
463284
|
+
}
|
|
463285
|
+
var _flatRest_default;
|
|
463286
|
+
var init__flatRest = __esm(() => {
|
|
463287
|
+
init_flatten();
|
|
463288
|
+
init__overRest();
|
|
463289
|
+
init__setToString();
|
|
463290
|
+
_flatRest_default = flatRest;
|
|
463291
|
+
});
|
|
463292
|
+
|
|
463293
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/omit.js
|
|
463294
|
+
var CLONE_DEEP_FLAG2 = 1, CLONE_FLAT_FLAG2 = 2, CLONE_SYMBOLS_FLAG2 = 4, omit2, omit_default;
|
|
463295
|
+
var init_omit = __esm(() => {
|
|
463296
|
+
init__arrayMap();
|
|
463297
|
+
init__baseClone();
|
|
463298
|
+
init__baseUnset();
|
|
463299
|
+
init__castPath();
|
|
463300
|
+
init__copyObject();
|
|
463301
|
+
init__customOmitClone();
|
|
463302
|
+
init__flatRest();
|
|
463303
|
+
init__getAllKeysIn();
|
|
463304
|
+
omit2 = _flatRest_default(function(object4, paths2) {
|
|
463305
|
+
var result = {};
|
|
463306
|
+
if (object4 == null) {
|
|
463307
|
+
return result;
|
|
463308
|
+
}
|
|
463309
|
+
var isDeep = false;
|
|
463310
|
+
paths2 = _arrayMap_default(paths2, function(path18) {
|
|
463311
|
+
path18 = _castPath_default(path18, object4);
|
|
463312
|
+
isDeep || (isDeep = path18.length > 1);
|
|
463313
|
+
return path18;
|
|
463314
|
+
});
|
|
463315
|
+
_copyObject_default(object4, _getAllKeysIn_default(object4), result);
|
|
463316
|
+
if (isDeep) {
|
|
463317
|
+
result = _baseClone_default(result, CLONE_DEEP_FLAG2 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG2, _customOmitClone_default);
|
|
463318
|
+
}
|
|
463319
|
+
var length = paths2.length;
|
|
463320
|
+
while (length--) {
|
|
463321
|
+
_baseUnset_default(result, paths2[length]);
|
|
463322
|
+
}
|
|
463323
|
+
return result;
|
|
463324
|
+
});
|
|
463325
|
+
omit_default = omit2;
|
|
463326
|
+
});
|
|
463327
|
+
|
|
463405
463328
|
// src/cli/services/mcp/useManageMCPConnections.ts
|
|
463406
463329
|
import { basename as basename51 } from "path";
|
|
463407
463330
|
function getErrorKey(error41) {
|
|
@@ -465125,7 +465048,7 @@ var init_useInstallMessages = __esm(() => {
|
|
|
465125
465048
|
init_useStartupNotification();
|
|
465126
465049
|
});
|
|
465127
465050
|
|
|
465128
|
-
// missing-module-stub:/
|
|
465051
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/claudeai/SessionMemory/sessionMemoryUtils.js
|
|
465129
465052
|
var init_sessionMemoryUtils2 = () => {};
|
|
465130
465053
|
|
|
465131
465054
|
// src/cli/claudeai/awaySummary.ts
|
|
@@ -465921,14 +465844,14 @@ var init_usePromptsFromClaudeInChrome = __esm(() => {
|
|
|
465921
465844
|
}));
|
|
465922
465845
|
});
|
|
465923
465846
|
|
|
465924
|
-
// missing-module-stub:/
|
|
465847
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/services/tips/tipHistory.js
|
|
465925
465848
|
var noop27 = () => null, getSessionsSinceLastShown, recordTipShown;
|
|
465926
465849
|
var init_tipHistory = __esm(() => {
|
|
465927
465850
|
getSessionsSinceLastShown = noop27;
|
|
465928
465851
|
recordTipShown = noop27;
|
|
465929
465852
|
});
|
|
465930
465853
|
|
|
465931
|
-
// missing-module-stub:/
|
|
465854
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/services/tips/tipRegistry.js
|
|
465932
465855
|
var noop28 = () => null, getRelevantTips;
|
|
465933
465856
|
var init_tipRegistry = __esm(() => {
|
|
465934
465857
|
getRelevantTips = noop28;
|
|
@@ -479128,7 +479051,7 @@ function buildPrimarySection() {
|
|
|
479128
479051
|
}, undefined, false, undefined, this);
|
|
479129
479052
|
return [{
|
|
479130
479053
|
label: "Version",
|
|
479131
|
-
value: "0.4.
|
|
479054
|
+
value: "0.4.1"
|
|
479132
479055
|
}, {
|
|
479133
479056
|
label: "Session name",
|
|
479134
479057
|
value: nameValue
|
|
@@ -487185,6 +487108,17 @@ var init_SandboxDoctorSection = __esm(() => {
|
|
|
487185
487108
|
jsx_dev_runtime297 = __toESM(require_jsx_dev_runtime(), 1);
|
|
487186
487109
|
});
|
|
487187
487110
|
|
|
487111
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/setWith.js
|
|
487112
|
+
function setWith(object4, path18, value, customizer) {
|
|
487113
|
+
customizer = typeof customizer == "function" ? customizer : undefined;
|
|
487114
|
+
return object4 == null ? object4 : _baseSet_default(object4, path18, value, customizer);
|
|
487115
|
+
}
|
|
487116
|
+
var setWith_default;
|
|
487117
|
+
var init_setWith = __esm(() => {
|
|
487118
|
+
init__baseSet();
|
|
487119
|
+
setWith_default = setWith;
|
|
487120
|
+
});
|
|
487121
|
+
|
|
487188
487122
|
// src/cli/treeify.ts
|
|
487189
487123
|
function treeify(obj, options2 = {}) {
|
|
487190
487124
|
const {
|
|
@@ -491457,7 +491391,7 @@ After writing the skill file(s), inform the user:
|
|
|
491457
491391
|
init_verifiers_default = command5;
|
|
491458
491392
|
});
|
|
491459
491393
|
|
|
491460
|
-
// missing-module-stub:/
|
|
491394
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/commands/cli/keybindings/index.js
|
|
491461
491395
|
var noop29 = () => null, keybindings_default;
|
|
491462
491396
|
var init_keybindings = __esm(() => {
|
|
491463
491397
|
keybindings_default = noop29;
|
|
@@ -525754,7 +525688,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
525754
525688
|
if (resCode !== undefined) {
|
|
525755
525689
|
dbcsCode = resCode;
|
|
525756
525690
|
nextChar = uCode;
|
|
525757
|
-
}
|
|
525691
|
+
}
|
|
525758
525692
|
}
|
|
525759
525693
|
seqObj = undefined;
|
|
525760
525694
|
} else if (uCode >= 0) {
|
|
@@ -525815,7 +525749,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
525815
525749
|
newBuf[j++] = dbcsCode >> 8;
|
|
525816
525750
|
newBuf[j++] = dbcsCode & 255;
|
|
525817
525751
|
}
|
|
525818
|
-
}
|
|
525752
|
+
}
|
|
525819
525753
|
this.seqObj = undefined;
|
|
525820
525754
|
}
|
|
525821
525755
|
if (this.leadSurrogate !== -1) {
|
|
@@ -535435,7 +535369,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
535435
535369
|
var call58 = async () => {
|
|
535436
535370
|
return {
|
|
535437
535371
|
type: "text",
|
|
535438
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
535372
|
+
value: `${"99.0.0"} (built ${"2026-05-18T09:28:09.100Z"})`
|
|
535439
535373
|
};
|
|
535440
535374
|
}, version2, version_default;
|
|
535441
535375
|
var init_version = __esm(() => {
|
|
@@ -557545,7 +557479,7 @@ function WelcomeV2() {
|
|
|
557545
557479
|
dimColor: true,
|
|
557546
557480
|
children: [
|
|
557547
557481
|
"v",
|
|
557548
|
-
"0.4.
|
|
557482
|
+
"0.4.1",
|
|
557549
557483
|
" "
|
|
557550
557484
|
]
|
|
557551
557485
|
}, undefined, true, undefined, this)
|
|
@@ -557745,7 +557679,7 @@ function WelcomeV2() {
|
|
|
557745
557679
|
dimColor: true,
|
|
557746
557680
|
children: [
|
|
557747
557681
|
"v",
|
|
557748
|
-
"0.4.
|
|
557682
|
+
"0.4.1",
|
|
557749
557683
|
" "
|
|
557750
557684
|
]
|
|
557751
557685
|
}, undefined, true, undefined, this)
|
|
@@ -557971,7 +557905,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
557971
557905
|
dimColor: true,
|
|
557972
557906
|
children: [
|
|
557973
557907
|
"v",
|
|
557974
|
-
"0.4.
|
|
557908
|
+
"0.4.1",
|
|
557975
557909
|
" "
|
|
557976
557910
|
]
|
|
557977
557911
|
}, undefined, true, undefined, this);
|
|
@@ -558225,7 +558159,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
558225
558159
|
dimColor: true,
|
|
558226
558160
|
children: [
|
|
558227
558161
|
"v",
|
|
558228
|
-
"0.4.
|
|
558162
|
+
"0.4.1",
|
|
558229
558163
|
" "
|
|
558230
558164
|
]
|
|
558231
558165
|
}, undefined, true, undefined, this);
|
|
@@ -569823,7 +569757,7 @@ var init_sessionUrl = __esm(() => {
|
|
|
569823
569757
|
init_uuid();
|
|
569824
569758
|
});
|
|
569825
569759
|
|
|
569826
|
-
// missing-module-stub:/
|
|
569760
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/commands.js
|
|
569827
569761
|
var noop31 = () => null, getCommands2, clearCommandsCache3;
|
|
569828
569762
|
var init_commands3 = __esm(() => {
|
|
569829
569763
|
getCommands2 = noop31;
|
|
@@ -579071,7 +579005,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
579071
579005
|
pendingHookMessages
|
|
579072
579006
|
}, renderAndRun);
|
|
579073
579007
|
}
|
|
579074
|
-
}).version("0.4.
|
|
579008
|
+
}).version("0.4.1 (OpenCow)", "-v, --version", "Output the version number");
|
|
579075
579009
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
579076
579010
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
579077
579011
|
if (canUserConfigureAdvisor()) {
|
|
@@ -579717,7 +579651,7 @@ if (false) {}
|
|
|
579717
579651
|
async function main2() {
|
|
579718
579652
|
const args = process.argv.slice(2);
|
|
579719
579653
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
579720
|
-
console.log(`${"0.4.
|
|
579654
|
+
console.log(`${"0.4.1"} (OpenCow)`);
|
|
579721
579655
|
return;
|
|
579722
579656
|
}
|
|
579723
579657
|
if (args.includes("--provider")) {
|
|
@@ -579835,4 +579769,4 @@ async function main2() {
|
|
|
579835
579769
|
}
|
|
579836
579770
|
main2();
|
|
579837
579771
|
|
|
579838
|
-
//# debugId=
|
|
579772
|
+
//# debugId=6363C00A4673E70064756E2164756E21
|