@opencow-ai/opencow-agent-sdk 0.4.0 → 0.4.2-beta.0
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 +1287 -1328
- package/dist/client.d.ts +2 -0
- package/dist/client.js +766 -1057
- 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/providers/openai/shim.d.ts +1 -0
- package/dist/sdk.js +766 -1057
- 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();
|
|
@@ -84649,9 +84669,7 @@ async function* readSseEvents(response) {
|
|
|
84649
84669
|
if (done)
|
|
84650
84670
|
break;
|
|
84651
84671
|
buffer += decoder.decode(value, { stream: true });
|
|
84652
|
-
const chunks = buffer.split(
|
|
84653
|
-
|
|
84654
|
-
`);
|
|
84672
|
+
const chunks = buffer.split(/\r?\n\r?\n/);
|
|
84655
84673
|
buffer = chunks.pop() ?? "";
|
|
84656
84674
|
for (const chunk of chunks) {
|
|
84657
84675
|
const lines = chunk.split(`
|
|
@@ -84679,6 +84697,25 @@ async function* readSseEvents(response) {
|
|
|
84679
84697
|
yield { event, data };
|
|
84680
84698
|
}
|
|
84681
84699
|
}
|
|
84700
|
+
if (buffer.trim()) {
|
|
84701
|
+
const lines = buffer.split(`
|
|
84702
|
+
`).map((line) => line.trim()).filter(Boolean);
|
|
84703
|
+
const eventLine = lines.find((line) => line.startsWith("event: "));
|
|
84704
|
+
const dataLines = lines.filter((line) => line.startsWith("data: "));
|
|
84705
|
+
if (eventLine && dataLines.length > 0) {
|
|
84706
|
+
const event = eventLine.slice(7).trim();
|
|
84707
|
+
const rawData = dataLines.map((line) => line.slice(6)).join(`
|
|
84708
|
+
`);
|
|
84709
|
+
if (rawData !== "[DONE]") {
|
|
84710
|
+
try {
|
|
84711
|
+
const parsed = JSON.parse(rawData);
|
|
84712
|
+
if (parsed && typeof parsed === "object") {
|
|
84713
|
+
yield { event, data: parsed };
|
|
84714
|
+
}
|
|
84715
|
+
} catch {}
|
|
84716
|
+
}
|
|
84717
|
+
}
|
|
84718
|
+
}
|
|
84682
84719
|
}
|
|
84683
84720
|
function determineStopReason(response, sawToolUse) {
|
|
84684
84721
|
const output = Array.isArray(response?.output) ? response.output : [];
|
|
@@ -85163,6 +85200,7 @@ function convertMessages(messages, system) {
|
|
|
85163
85200
|
} else if (role === "assistant") {
|
|
85164
85201
|
if (Array.isArray(content)) {
|
|
85165
85202
|
const toolUses = content.filter((b) => b.type === "tool_use");
|
|
85203
|
+
const thinkingBlocks = content.filter((b) => b.type === "thinking");
|
|
85166
85204
|
const textContent = content.filter((b) => b.type !== "tool_use" && b.type !== "thinking");
|
|
85167
85205
|
const assistantMsg = {
|
|
85168
85206
|
role: "assistant",
|
|
@@ -85171,6 +85209,13 @@ function convertMessages(messages, system) {
|
|
|
85171
85209
|
return typeof c5 === "string" ? c5 : Array.isArray(c5) ? c5.map((p) => p.text ?? "").join("") : "";
|
|
85172
85210
|
})()
|
|
85173
85211
|
};
|
|
85212
|
+
if (thinkingBlocks.length > 0) {
|
|
85213
|
+
const reasoningText = thinkingBlocks.map((b) => b.thinking ?? "").filter(Boolean).join(`
|
|
85214
|
+
`);
|
|
85215
|
+
if (reasoningText) {
|
|
85216
|
+
assistantMsg.reasoning_content = reasoningText;
|
|
85217
|
+
}
|
|
85218
|
+
}
|
|
85174
85219
|
if (toolUses.length > 0) {
|
|
85175
85220
|
assistantMsg.tool_calls = toolUses.map((tu) => ({
|
|
85176
85221
|
id: tu.id ?? `call_${crypto.randomUUID().replace(/-/g, "")}`,
|
|
@@ -94126,7 +94171,7 @@ function printStartupScreen() {
|
|
|
94126
94171
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
94127
94172
|
out.push(boxRow(sRow, W2, sLen));
|
|
94128
94173
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
94129
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}opencow ${RESET}${rgb(...ACCENT)}v${"0.4.0"}${RESET}`);
|
|
94174
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}opencow ${RESET}${rgb(...ACCENT)}v${"0.4.2-beta.0"}${RESET}`);
|
|
94130
94175
|
out.push("");
|
|
94131
94176
|
process.stdout.write(out.join(`
|
|
94132
94177
|
`) + `
|
|
@@ -107067,14 +107112,6 @@ class Diff {
|
|
|
107067
107112
|
}
|
|
107068
107113
|
}
|
|
107069
107114
|
|
|
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
107115
|
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/util/string.js
|
|
107079
107116
|
function longestCommonPrefix(str1, str2) {
|
|
107080
107117
|
let i2;
|
|
@@ -107375,122 +107412,6 @@ var init_line2 = __esm(() => {
|
|
|
107375
107412
|
lineDiff = new LineDiff;
|
|
107376
107413
|
});
|
|
107377
107414
|
|
|
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
107415
|
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/diff/array.js
|
|
107495
107416
|
function diffArrays(oldArr, newArr, options) {
|
|
107496
107417
|
return arrayDiff.diff(oldArr, newArr, options);
|
|
@@ -107510,8 +107431,7 @@ var init_array2 = __esm(() => {
|
|
|
107510
107431
|
};
|
|
107511
107432
|
arrayDiff = new ArrayDiff;
|
|
107512
107433
|
});
|
|
107513
|
-
|
|
107514
|
-
var init_apply = () => {};
|
|
107434
|
+
|
|
107515
107435
|
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/patch/create.js
|
|
107516
107436
|
function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
|
|
107517
107437
|
let optionsObj;
|
|
@@ -107636,16 +107556,12 @@ function splitLines(text) {
|
|
|
107636
107556
|
var init_create2 = __esm(() => {
|
|
107637
107557
|
init_line2();
|
|
107638
107558
|
});
|
|
107559
|
+
|
|
107639
107560
|
// node_modules/.bun/diff@8.0.3/node_modules/diff/libesm/index.js
|
|
107640
107561
|
var init_libesm = __esm(() => {
|
|
107641
|
-
init_character();
|
|
107642
107562
|
init_word();
|
|
107643
107563
|
init_line2();
|
|
107644
|
-
init_sentence();
|
|
107645
|
-
init_css();
|
|
107646
|
-
init_json2();
|
|
107647
107564
|
init_array2();
|
|
107648
|
-
init_apply();
|
|
107649
107565
|
init_create2();
|
|
107650
107566
|
});
|
|
107651
107567
|
|
|
@@ -116063,717 +115979,6 @@ var init_sandbox_runtime = __esm(() => {
|
|
|
116063
115979
|
SandboxRuntimeConfigSchema3 = { parse: () => ({}) };
|
|
116064
115980
|
});
|
|
116065
115981
|
|
|
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
115982
|
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/lodash.js
|
|
116778
115983
|
var init_lodash = __esm(() => {
|
|
116779
115984
|
init_memoize();
|
|
@@ -117117,7 +116322,7 @@ function ripGrepRaw(args, target, abortSignal, callback, singleThread = false) {
|
|
|
117117
116322
|
async function ripGrepFileCount(args, target, abortSignal) {
|
|
117118
116323
|
await codesignRipgrepIfNecessary();
|
|
117119
116324
|
const { rgPath, rgArgs } = ripgrepCommand();
|
|
117120
|
-
return new Promise((resolve13,
|
|
116325
|
+
return new Promise((resolve13, reject) => {
|
|
117121
116326
|
const child = spawn3(rgPath, [...rgArgs, ...args, target], {
|
|
117122
116327
|
signal: abortSignal,
|
|
117123
116328
|
env: getQueryEnvForSpawn2(),
|
|
@@ -117137,13 +116342,13 @@ async function ripGrepFileCount(args, target, abortSignal) {
|
|
|
117137
116342
|
if (code === 0 || code === 1)
|
|
117138
116343
|
resolve13(lines);
|
|
117139
116344
|
else
|
|
117140
|
-
|
|
116345
|
+
reject(new Error(`rg --files exited ${code}`));
|
|
117141
116346
|
});
|
|
117142
116347
|
child.on("error", (err) => {
|
|
117143
116348
|
if (settled)
|
|
117144
116349
|
return;
|
|
117145
116350
|
settled = true;
|
|
117146
|
-
|
|
116351
|
+
reject(err.code === "ENOENT" ? wrapRipgrepUnavailableError(err) : err);
|
|
117147
116352
|
});
|
|
117148
116353
|
});
|
|
117149
116354
|
}
|
|
@@ -117152,7 +116357,7 @@ async function ripGrep(args, target, abortSignal) {
|
|
|
117152
116357
|
testRipgrepOnFirstUse().catch((error41) => {
|
|
117153
116358
|
logError(error41);
|
|
117154
116359
|
});
|
|
117155
|
-
return new Promise((resolve13,
|
|
116360
|
+
return new Promise((resolve13, reject) => {
|
|
117156
116361
|
const handleResult3 = (error41, stdout, stderr, isRetry) => {
|
|
117157
116362
|
if (!error41) {
|
|
117158
116363
|
resolve13(stdout.trim().split(`
|
|
@@ -117165,7 +116370,7 @@ async function ripGrep(args, target, abortSignal) {
|
|
|
117165
116370
|
}
|
|
117166
116371
|
const CRITICAL_ERROR_CODES = ["ENOENT", "EACCES", "EPERM"];
|
|
117167
116372
|
if (CRITICAL_ERROR_CODES.includes(error41.code)) {
|
|
117168
|
-
|
|
116373
|
+
reject(error41.code === "ENOENT" ? wrapRipgrepUnavailableError(error41) : error41);
|
|
117169
116374
|
return;
|
|
117170
116375
|
}
|
|
117171
116376
|
if (!isRetry && isEagainError(stderr)) {
|
|
@@ -117192,7 +116397,7 @@ async function ripGrep(args, target, abortSignal) {
|
|
|
117192
116397
|
logError(error41);
|
|
117193
116398
|
}
|
|
117194
116399
|
if (isTimeout && lines.length === 0) {
|
|
117195
|
-
|
|
116400
|
+
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
116401
|
return;
|
|
117197
116402
|
}
|
|
117198
116403
|
resolve13(lines);
|
|
@@ -120709,7 +119914,7 @@ function streamOnEnd() {
|
|
|
120709
119914
|
});
|
|
120710
119915
|
}
|
|
120711
119916
|
function readFileInRangeStreaming(filePath, offset, maxLines, maxBytes, truncateOnByteLimit, signal) {
|
|
120712
|
-
return new Promise((resolve15,
|
|
119917
|
+
return new Promise((resolve15, reject) => {
|
|
120713
119918
|
const state3 = {
|
|
120714
119919
|
stream: createReadStream2(filePath, {
|
|
120715
119920
|
encoding: "utf8",
|
|
@@ -120737,7 +119942,7 @@ function readFileInRangeStreaming(filePath, offset, maxLines, maxBytes, truncate
|
|
|
120737
119942
|
state3.stream.once("open", streamOnOpen.bind(state3));
|
|
120738
119943
|
state3.stream.on("data", streamOnData.bind(state3));
|
|
120739
119944
|
state3.stream.once("end", streamOnEnd.bind(state3));
|
|
120740
|
-
state3.stream.once("error",
|
|
119945
|
+
state3.stream.once("error", reject);
|
|
120741
119946
|
});
|
|
120742
119947
|
}
|
|
120743
119948
|
var FAST_PATH_MAX_SIZE, FileTooLargeError;
|
|
@@ -123233,6 +122438,131 @@ var init_plans = __esm(() => {
|
|
|
123233
122438
|
});
|
|
123234
122439
|
});
|
|
123235
122440
|
|
|
122441
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseSlice.js
|
|
122442
|
+
function baseSlice(array2, start, end) {
|
|
122443
|
+
var index = -1, length = array2.length;
|
|
122444
|
+
if (start < 0) {
|
|
122445
|
+
start = -start > length ? 0 : length + start;
|
|
122446
|
+
}
|
|
122447
|
+
end = end > length ? length : end;
|
|
122448
|
+
if (end < 0) {
|
|
122449
|
+
end += length;
|
|
122450
|
+
}
|
|
122451
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
122452
|
+
start >>>= 0;
|
|
122453
|
+
var result = Array(length);
|
|
122454
|
+
while (++index < length) {
|
|
122455
|
+
result[index] = array2[index + start];
|
|
122456
|
+
}
|
|
122457
|
+
return result;
|
|
122458
|
+
}
|
|
122459
|
+
var _baseSlice_default;
|
|
122460
|
+
var init__baseSlice = __esm(() => {
|
|
122461
|
+
_baseSlice_default = baseSlice;
|
|
122462
|
+
});
|
|
122463
|
+
|
|
122464
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_castSlice.js
|
|
122465
|
+
function castSlice(array2, start, end) {
|
|
122466
|
+
var length = array2.length;
|
|
122467
|
+
end = end === undefined ? length : end;
|
|
122468
|
+
return !start && end >= length ? array2 : _baseSlice_default(array2, start, end);
|
|
122469
|
+
}
|
|
122470
|
+
var _castSlice_default;
|
|
122471
|
+
var init__castSlice = __esm(() => {
|
|
122472
|
+
init__baseSlice();
|
|
122473
|
+
_castSlice_default = castSlice;
|
|
122474
|
+
});
|
|
122475
|
+
|
|
122476
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_hasUnicode.js
|
|
122477
|
+
function hasUnicode(string4) {
|
|
122478
|
+
return reHasUnicode.test(string4);
|
|
122479
|
+
}
|
|
122480
|
+
var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange, rsVarRange = "\\ufe0e\\ufe0f", rsZWJ = "\\u200d", reHasUnicode, _hasUnicode_default;
|
|
122481
|
+
var init__hasUnicode = __esm(() => {
|
|
122482
|
+
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
|
122483
|
+
reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
|
|
122484
|
+
_hasUnicode_default = hasUnicode;
|
|
122485
|
+
});
|
|
122486
|
+
|
|
122487
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_asciiToArray.js
|
|
122488
|
+
function asciiToArray(string4) {
|
|
122489
|
+
return string4.split("");
|
|
122490
|
+
}
|
|
122491
|
+
var _asciiToArray_default;
|
|
122492
|
+
var init__asciiToArray = __esm(() => {
|
|
122493
|
+
_asciiToArray_default = asciiToArray;
|
|
122494
|
+
});
|
|
122495
|
+
|
|
122496
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_unicodeToArray.js
|
|
122497
|
+
function unicodeToArray(string4) {
|
|
122498
|
+
return string4.match(reUnicode) || [];
|
|
122499
|
+
}
|
|
122500
|
+
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;
|
|
122501
|
+
var init__unicodeToArray = __esm(() => {
|
|
122502
|
+
rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2;
|
|
122503
|
+
rsAstral = "[" + rsAstralRange2 + "]";
|
|
122504
|
+
rsCombo = "[" + rsComboRange2 + "]";
|
|
122505
|
+
rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
|
122506
|
+
rsNonAstral = "[^" + rsAstralRange2 + "]";
|
|
122507
|
+
reOptMod = rsModifier + "?";
|
|
122508
|
+
rsOptVar = "[" + rsVarRange2 + "]?";
|
|
122509
|
+
rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
|
122510
|
+
rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
122511
|
+
rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
|
|
122512
|
+
reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
|
|
122513
|
+
_unicodeToArray_default = unicodeToArray;
|
|
122514
|
+
});
|
|
122515
|
+
|
|
122516
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_stringToArray.js
|
|
122517
|
+
function stringToArray(string4) {
|
|
122518
|
+
return _hasUnicode_default(string4) ? _unicodeToArray_default(string4) : _asciiToArray_default(string4);
|
|
122519
|
+
}
|
|
122520
|
+
var _stringToArray_default;
|
|
122521
|
+
var init__stringToArray = __esm(() => {
|
|
122522
|
+
init__asciiToArray();
|
|
122523
|
+
init__hasUnicode();
|
|
122524
|
+
init__unicodeToArray();
|
|
122525
|
+
_stringToArray_default = stringToArray;
|
|
122526
|
+
});
|
|
122527
|
+
|
|
122528
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createCaseFirst.js
|
|
122529
|
+
function createCaseFirst(methodName) {
|
|
122530
|
+
return function(string4) {
|
|
122531
|
+
string4 = toString_default(string4);
|
|
122532
|
+
var strSymbols = _hasUnicode_default(string4) ? _stringToArray_default(string4) : undefined;
|
|
122533
|
+
var chr = strSymbols ? strSymbols[0] : string4.charAt(0);
|
|
122534
|
+
var trailing = strSymbols ? _castSlice_default(strSymbols, 1).join("") : string4.slice(1);
|
|
122535
|
+
return chr[methodName]() + trailing;
|
|
122536
|
+
};
|
|
122537
|
+
}
|
|
122538
|
+
var _createCaseFirst_default;
|
|
122539
|
+
var init__createCaseFirst = __esm(() => {
|
|
122540
|
+
init__castSlice();
|
|
122541
|
+
init__hasUnicode();
|
|
122542
|
+
init__stringToArray();
|
|
122543
|
+
init_toString();
|
|
122544
|
+
_createCaseFirst_default = createCaseFirst;
|
|
122545
|
+
});
|
|
122546
|
+
|
|
122547
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/upperFirst.js
|
|
122548
|
+
var upperFirst, upperFirst_default;
|
|
122549
|
+
var init_upperFirst = __esm(() => {
|
|
122550
|
+
init__createCaseFirst();
|
|
122551
|
+
upperFirst = _createCaseFirst_default("toUpperCase");
|
|
122552
|
+
upperFirst_default = upperFirst;
|
|
122553
|
+
});
|
|
122554
|
+
|
|
122555
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/capitalize.js
|
|
122556
|
+
function capitalize3(string4) {
|
|
122557
|
+
return upperFirst_default(toString_default(string4).toLowerCase());
|
|
122558
|
+
}
|
|
122559
|
+
var capitalize_default;
|
|
122560
|
+
var init_capitalize = __esm(() => {
|
|
122561
|
+
init_toString();
|
|
122562
|
+
init_upperFirst();
|
|
122563
|
+
capitalize_default = capitalize3;
|
|
122564
|
+
});
|
|
122565
|
+
|
|
123236
122566
|
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/index.js
|
|
123237
122567
|
var init_v3 = __esm(() => {
|
|
123238
122568
|
init_external2();
|
|
@@ -124053,7 +123383,7 @@ function parseMapDef(def2, refs) {
|
|
|
124053
123383
|
...refs,
|
|
124054
123384
|
currentPath: [...refs.currentPath, "items", "items", "0"]
|
|
124055
123385
|
}) || parseAnyDef(refs);
|
|
124056
|
-
const
|
|
123386
|
+
const values = parseDef(def2.valueType._def, {
|
|
124057
123387
|
...refs,
|
|
124058
123388
|
currentPath: [...refs.currentPath, "items", "items", "1"]
|
|
124059
123389
|
}) || parseAnyDef(refs);
|
|
@@ -124062,7 +123392,7 @@ function parseMapDef(def2, refs) {
|
|
|
124062
123392
|
maxItems: 125,
|
|
124063
123393
|
items: {
|
|
124064
123394
|
type: "array",
|
|
124065
|
-
items: [keys2,
|
|
123395
|
+
items: [keys2, values],
|
|
124066
123396
|
minItems: 2,
|
|
124067
123397
|
maxItems: 2
|
|
124068
123398
|
}
|
|
@@ -124081,7 +123411,7 @@ function parseNativeEnumDef(def2) {
|
|
|
124081
123411
|
return typeof object3[object3[key]] !== "number";
|
|
124082
123412
|
});
|
|
124083
123413
|
const actualValues = actualKeys.map((key) => object3[key]);
|
|
124084
|
-
const parsedTypes = Array.from(new Set(actualValues.map((
|
|
123414
|
+
const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values)));
|
|
124085
123415
|
return {
|
|
124086
123416
|
type: parsedTypes.length === 1 ? parsedTypes[0] === "string" ? "string" : "number" : ["string", "number"],
|
|
124087
123417
|
enum: actualValues
|
|
@@ -125243,9 +124573,9 @@ class Protocol {
|
|
|
125243
124573
|
}
|
|
125244
124574
|
request(request, resultSchema, options2) {
|
|
125245
124575
|
const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options2 ?? {};
|
|
125246
|
-
return new Promise((resolve16,
|
|
124576
|
+
return new Promise((resolve16, reject) => {
|
|
125247
124577
|
const earlyReject = (error41) => {
|
|
125248
|
-
|
|
124578
|
+
reject(error41);
|
|
125249
124579
|
};
|
|
125250
124580
|
if (!this._transport) {
|
|
125251
124581
|
earlyReject(new Error("Not connected"));
|
|
@@ -125307,24 +124637,24 @@ class Protocol {
|
|
|
125307
124637
|
}
|
|
125308
124638
|
}, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error42) => this._onerror(new Error(`Failed to send cancellation: ${error42}`)));
|
|
125309
124639
|
const error41 = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason));
|
|
125310
|
-
|
|
124640
|
+
reject(error41);
|
|
125311
124641
|
};
|
|
125312
124642
|
this._responseHandlers.set(messageId, (response) => {
|
|
125313
124643
|
if (options2?.signal?.aborted) {
|
|
125314
124644
|
return;
|
|
125315
124645
|
}
|
|
125316
124646
|
if (response instanceof Error) {
|
|
125317
|
-
return
|
|
124647
|
+
return reject(response);
|
|
125318
124648
|
}
|
|
125319
124649
|
try {
|
|
125320
124650
|
const parseResult = safeParse3(resultSchema, response.result);
|
|
125321
124651
|
if (!parseResult.success) {
|
|
125322
|
-
|
|
124652
|
+
reject(parseResult.error);
|
|
125323
124653
|
} else {
|
|
125324
124654
|
resolve16(parseResult.data);
|
|
125325
124655
|
}
|
|
125326
124656
|
} catch (error41) {
|
|
125327
|
-
|
|
124657
|
+
reject(error41);
|
|
125328
124658
|
}
|
|
125329
124659
|
});
|
|
125330
124660
|
options2?.signal?.addEventListener("abort", () => {
|
|
@@ -125350,12 +124680,12 @@ class Protocol {
|
|
|
125350
124680
|
timestamp: Date.now()
|
|
125351
124681
|
}).catch((error41) => {
|
|
125352
124682
|
this._cleanupTimeout(messageId);
|
|
125353
|
-
|
|
124683
|
+
reject(error41);
|
|
125354
124684
|
});
|
|
125355
124685
|
} else {
|
|
125356
124686
|
this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error41) => {
|
|
125357
124687
|
this._cleanupTimeout(messageId);
|
|
125358
|
-
|
|
124688
|
+
reject(error41);
|
|
125359
124689
|
});
|
|
125360
124690
|
}
|
|
125361
124691
|
});
|
|
@@ -125512,15 +124842,15 @@ class Protocol {
|
|
|
125512
124842
|
interval = task.pollInterval;
|
|
125513
124843
|
}
|
|
125514
124844
|
} catch {}
|
|
125515
|
-
return new Promise((resolve16,
|
|
124845
|
+
return new Promise((resolve16, reject) => {
|
|
125516
124846
|
if (signal.aborted) {
|
|
125517
|
-
|
|
124847
|
+
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
125518
124848
|
return;
|
|
125519
124849
|
}
|
|
125520
124850
|
const timeoutId = setTimeout(resolve16, interval);
|
|
125521
124851
|
signal.addEventListener("abort", () => {
|
|
125522
124852
|
clearTimeout(timeoutId);
|
|
125523
|
-
|
|
124853
|
+
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
125524
124854
|
}, { once: true });
|
|
125525
124855
|
});
|
|
125526
124856
|
}
|
|
@@ -125794,10 +125124,10 @@ var require_scope = __commonJS((exports) => {
|
|
|
125794
125124
|
};
|
|
125795
125125
|
|
|
125796
125126
|
class Scope {
|
|
125797
|
-
constructor({ prefixes, parent
|
|
125127
|
+
constructor({ prefixes, parent } = {}) {
|
|
125798
125128
|
this._names = {};
|
|
125799
125129
|
this._prefixes = prefixes;
|
|
125800
|
-
this._parent =
|
|
125130
|
+
this._parent = parent;
|
|
125801
125131
|
}
|
|
125802
125132
|
toName(nameOrPrefix) {
|
|
125803
125133
|
return nameOrPrefix instanceof code_1.Name ? nameOrPrefix : this.name(nameOrPrefix);
|
|
@@ -125873,24 +125203,24 @@ var require_scope = __commonJS((exports) => {
|
|
|
125873
125203
|
return;
|
|
125874
125204
|
return vs.get(keyOrRef);
|
|
125875
125205
|
}
|
|
125876
|
-
scopeRefs(scopeName,
|
|
125877
|
-
return this._reduceValues(
|
|
125206
|
+
scopeRefs(scopeName, values = this._values) {
|
|
125207
|
+
return this._reduceValues(values, (name) => {
|
|
125878
125208
|
if (name.scopePath === undefined)
|
|
125879
125209
|
throw new Error(`CodeGen: name "${name}" has no value`);
|
|
125880
125210
|
return (0, code_1._)`${scopeName}${name.scopePath}`;
|
|
125881
125211
|
});
|
|
125882
125212
|
}
|
|
125883
|
-
scopeCode(
|
|
125884
|
-
return this._reduceValues(
|
|
125213
|
+
scopeCode(values = this._values, usedValues, getCode) {
|
|
125214
|
+
return this._reduceValues(values, (name) => {
|
|
125885
125215
|
if (name.value === undefined)
|
|
125886
125216
|
throw new Error(`CodeGen: name "${name}" has no value`);
|
|
125887
125217
|
return name.value.code;
|
|
125888
125218
|
}, usedValues, getCode);
|
|
125889
125219
|
}
|
|
125890
|
-
_reduceValues(
|
|
125220
|
+
_reduceValues(values, valueCode, usedValues = {}, getCode) {
|
|
125891
125221
|
let code = code_1.nil;
|
|
125892
|
-
for (const prefix in
|
|
125893
|
-
const vs =
|
|
125222
|
+
for (const prefix in values) {
|
|
125223
|
+
const vs = values[prefix];
|
|
125894
125224
|
if (!vs)
|
|
125895
125225
|
continue;
|
|
125896
125226
|
const nameSet = usedValues[prefix] = usedValues[prefix] || new Map;
|
|
@@ -133910,7 +133240,7 @@ class SSEClientTransport {
|
|
|
133910
133240
|
}
|
|
133911
133241
|
_startOrAuth() {
|
|
133912
133242
|
const fetchImpl = this?._eventSourceInit?.fetch ?? this._fetch ?? fetch;
|
|
133913
|
-
return new Promise((resolve16,
|
|
133243
|
+
return new Promise((resolve16, reject) => {
|
|
133914
133244
|
this._eventSource = new EventSource(this._url.href, {
|
|
133915
133245
|
...this._eventSourceInit,
|
|
133916
133246
|
fetch: async (url3, init) => {
|
|
@@ -133931,11 +133261,11 @@ class SSEClientTransport {
|
|
|
133931
133261
|
this._abortController = new AbortController;
|
|
133932
133262
|
this._eventSource.onerror = (event) => {
|
|
133933
133263
|
if (event.code === 401 && this._authProvider) {
|
|
133934
|
-
this._authThenStart().then(resolve16,
|
|
133264
|
+
this._authThenStart().then(resolve16, reject);
|
|
133935
133265
|
return;
|
|
133936
133266
|
}
|
|
133937
133267
|
const error41 = new SseError(event.code, event.message, event);
|
|
133938
|
-
|
|
133268
|
+
reject(error41);
|
|
133939
133269
|
this.onerror?.(error41);
|
|
133940
133270
|
};
|
|
133941
133271
|
this._eventSource.onopen = () => {};
|
|
@@ -133947,7 +133277,7 @@ class SSEClientTransport {
|
|
|
133947
133277
|
throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`);
|
|
133948
133278
|
}
|
|
133949
133279
|
} catch (error41) {
|
|
133950
|
-
|
|
133280
|
+
reject(error41);
|
|
133951
133281
|
this.onerror?.(error41);
|
|
133952
133282
|
this.close();
|
|
133953
133283
|
return;
|
|
@@ -134082,7 +133412,7 @@ class StdioClientTransport {
|
|
|
134082
133412
|
if (this._process) {
|
|
134083
133413
|
throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");
|
|
134084
133414
|
}
|
|
134085
|
-
return new Promise((resolve16,
|
|
133415
|
+
return new Promise((resolve16, reject) => {
|
|
134086
133416
|
this._process = import_cross_spawn3.default(this._serverParams.command, this._serverParams.args ?? [], {
|
|
134087
133417
|
env: {
|
|
134088
133418
|
...getDefaultEnvironment(),
|
|
@@ -134094,7 +133424,7 @@ class StdioClientTransport {
|
|
|
134094
133424
|
cwd: this._serverParams.cwd
|
|
134095
133425
|
});
|
|
134096
133426
|
this._process.on("error", (error41) => {
|
|
134097
|
-
|
|
133427
|
+
reject(error41);
|
|
134098
133428
|
this.onerror?.(error41);
|
|
134099
133429
|
});
|
|
134100
133430
|
this._process.on("spawn", () => {
|
|
@@ -134599,6 +133929,31 @@ var init_streamableHttp = __esm(() => {
|
|
|
134599
133929
|
};
|
|
134600
133930
|
});
|
|
134601
133931
|
|
|
133932
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseZipObject.js
|
|
133933
|
+
function baseZipObject(props, values, assignFunc) {
|
|
133934
|
+
var index = -1, length = props.length, valsLength = values.length, result = {};
|
|
133935
|
+
while (++index < length) {
|
|
133936
|
+
var value = index < valsLength ? values[index] : undefined;
|
|
133937
|
+
assignFunc(result, props[index], value);
|
|
133938
|
+
}
|
|
133939
|
+
return result;
|
|
133940
|
+
}
|
|
133941
|
+
var _baseZipObject_default;
|
|
133942
|
+
var init__baseZipObject = __esm(() => {
|
|
133943
|
+
_baseZipObject_default = baseZipObject;
|
|
133944
|
+
});
|
|
133945
|
+
|
|
133946
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/zipObject.js
|
|
133947
|
+
function zipObject(props, values) {
|
|
133948
|
+
return _baseZipObject_default(props || [], values || [], _assignValue_default);
|
|
133949
|
+
}
|
|
133950
|
+
var zipObject_default;
|
|
133951
|
+
var init_zipObject = __esm(() => {
|
|
133952
|
+
init__assignValue();
|
|
133953
|
+
init__baseZipObject();
|
|
133954
|
+
zipObject_default = zipObject;
|
|
133955
|
+
});
|
|
133956
|
+
|
|
134602
133957
|
// node_modules/.bun/p-map@7.0.4/node_modules/p-map/index.js
|
|
134603
133958
|
async function pMap(iterable, mapper, {
|
|
134604
133959
|
concurrency = Number.POSITIVE_INFINITY,
|
|
@@ -134625,7 +133980,7 @@ async function pMap(iterable, mapper, {
|
|
|
134625
133980
|
let currentIndex = 0;
|
|
134626
133981
|
const iterator2 = iterable[Symbol.iterator] === undefined ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
134627
133982
|
const signalListener = () => {
|
|
134628
|
-
|
|
133983
|
+
reject(signal.reason);
|
|
134629
133984
|
};
|
|
134630
133985
|
const cleanup = () => {
|
|
134631
133986
|
signal?.removeEventListener("abort", signalListener);
|
|
@@ -134634,7 +133989,7 @@ async function pMap(iterable, mapper, {
|
|
|
134634
133989
|
resolve_(value);
|
|
134635
133990
|
cleanup();
|
|
134636
133991
|
};
|
|
134637
|
-
const
|
|
133992
|
+
const reject = (reason) => {
|
|
134638
133993
|
isRejected = true;
|
|
134639
133994
|
isResolved = true;
|
|
134640
133995
|
reject_(reason);
|
|
@@ -134642,7 +133997,7 @@ async function pMap(iterable, mapper, {
|
|
|
134642
133997
|
};
|
|
134643
133998
|
if (signal) {
|
|
134644
133999
|
if (signal.aborted) {
|
|
134645
|
-
|
|
134000
|
+
reject(signal.reason);
|
|
134646
134001
|
}
|
|
134647
134002
|
signal.addEventListener("abort", signalListener, { once: true });
|
|
134648
134003
|
}
|
|
@@ -134657,7 +134012,7 @@ async function pMap(iterable, mapper, {
|
|
|
134657
134012
|
isIterableDone = true;
|
|
134658
134013
|
if (resolvingCount === 0 && !isResolved) {
|
|
134659
134014
|
if (!stopOnError && errors4.length > 0) {
|
|
134660
|
-
|
|
134015
|
+
reject(new AggregateError(errors4));
|
|
134661
134016
|
return;
|
|
134662
134017
|
}
|
|
134663
134018
|
isResolved = true;
|
|
@@ -134692,14 +134047,14 @@ async function pMap(iterable, mapper, {
|
|
|
134692
134047
|
await next();
|
|
134693
134048
|
} catch (error41) {
|
|
134694
134049
|
if (stopOnError) {
|
|
134695
|
-
|
|
134050
|
+
reject(error41);
|
|
134696
134051
|
} else {
|
|
134697
134052
|
errors4.push(error41);
|
|
134698
134053
|
resolvingCount--;
|
|
134699
134054
|
try {
|
|
134700
134055
|
await next();
|
|
134701
134056
|
} catch (error42) {
|
|
134702
|
-
|
|
134057
|
+
reject(error42);
|
|
134703
134058
|
}
|
|
134704
134059
|
}
|
|
134705
134060
|
}
|
|
@@ -134710,7 +134065,7 @@ async function pMap(iterable, mapper, {
|
|
|
134710
134065
|
try {
|
|
134711
134066
|
await next();
|
|
134712
134067
|
} catch (error41) {
|
|
134713
|
-
|
|
134068
|
+
reject(error41);
|
|
134714
134069
|
break;
|
|
134715
134070
|
}
|
|
134716
134071
|
if (isIterableDone || isRejected) {
|
|
@@ -138482,6 +137837,95 @@ var init_MCPTool = __esm(() => {
|
|
|
138482
137837
|
});
|
|
138483
137838
|
});
|
|
138484
137839
|
|
|
137840
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createBaseEach.js
|
|
137841
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
137842
|
+
return function(collection, iteratee) {
|
|
137843
|
+
if (collection == null) {
|
|
137844
|
+
return collection;
|
|
137845
|
+
}
|
|
137846
|
+
if (!isArrayLike_default(collection)) {
|
|
137847
|
+
return eachFunc(collection, iteratee);
|
|
137848
|
+
}
|
|
137849
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
137850
|
+
while (fromRight ? index-- : ++index < length) {
|
|
137851
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
137852
|
+
break;
|
|
137853
|
+
}
|
|
137854
|
+
}
|
|
137855
|
+
return collection;
|
|
137856
|
+
};
|
|
137857
|
+
}
|
|
137858
|
+
var _createBaseEach_default;
|
|
137859
|
+
var init__createBaseEach = __esm(() => {
|
|
137860
|
+
init_isArrayLike();
|
|
137861
|
+
_createBaseEach_default = createBaseEach;
|
|
137862
|
+
});
|
|
137863
|
+
|
|
137864
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseEach.js
|
|
137865
|
+
var baseEach, _baseEach_default;
|
|
137866
|
+
var init__baseEach = __esm(() => {
|
|
137867
|
+
init__baseForOwn();
|
|
137868
|
+
init__createBaseEach();
|
|
137869
|
+
baseEach = _createBaseEach_default(_baseForOwn_default);
|
|
137870
|
+
_baseEach_default = baseEach;
|
|
137871
|
+
});
|
|
137872
|
+
|
|
137873
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseFilter.js
|
|
137874
|
+
function baseFilter(collection, predicate) {
|
|
137875
|
+
var result = [];
|
|
137876
|
+
_baseEach_default(collection, function(value, index, collection2) {
|
|
137877
|
+
if (predicate(value, index, collection2)) {
|
|
137878
|
+
result.push(value);
|
|
137879
|
+
}
|
|
137880
|
+
});
|
|
137881
|
+
return result;
|
|
137882
|
+
}
|
|
137883
|
+
var _baseFilter_default;
|
|
137884
|
+
var init__baseFilter = __esm(() => {
|
|
137885
|
+
init__baseEach();
|
|
137886
|
+
_baseFilter_default = baseFilter;
|
|
137887
|
+
});
|
|
137888
|
+
|
|
137889
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/negate.js
|
|
137890
|
+
function negate(predicate) {
|
|
137891
|
+
if (typeof predicate != "function") {
|
|
137892
|
+
throw new TypeError(FUNC_ERROR_TEXT2);
|
|
137893
|
+
}
|
|
137894
|
+
return function() {
|
|
137895
|
+
var args = arguments;
|
|
137896
|
+
switch (args.length) {
|
|
137897
|
+
case 0:
|
|
137898
|
+
return !predicate.call(this);
|
|
137899
|
+
case 1:
|
|
137900
|
+
return !predicate.call(this, args[0]);
|
|
137901
|
+
case 2:
|
|
137902
|
+
return !predicate.call(this, args[0], args[1]);
|
|
137903
|
+
case 3:
|
|
137904
|
+
return !predicate.call(this, args[0], args[1], args[2]);
|
|
137905
|
+
}
|
|
137906
|
+
return !predicate.apply(this, args);
|
|
137907
|
+
};
|
|
137908
|
+
}
|
|
137909
|
+
var FUNC_ERROR_TEXT2 = "Expected a function", negate_default;
|
|
137910
|
+
var init_negate = __esm(() => {
|
|
137911
|
+
negate_default = negate;
|
|
137912
|
+
});
|
|
137913
|
+
|
|
137914
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/reject.js
|
|
137915
|
+
function reject(collection, predicate) {
|
|
137916
|
+
var func = isArray_default(collection) ? _arrayFilter_default : _baseFilter_default;
|
|
137917
|
+
return func(collection, negate_default(_baseIteratee_default(predicate, 3)));
|
|
137918
|
+
}
|
|
137919
|
+
var reject_default;
|
|
137920
|
+
var init_reject2 = __esm(() => {
|
|
137921
|
+
init__arrayFilter();
|
|
137922
|
+
init__baseFilter();
|
|
137923
|
+
init__baseIteratee();
|
|
137924
|
+
init_isArray();
|
|
137925
|
+
init_negate();
|
|
137926
|
+
reject_default = reject;
|
|
137927
|
+
});
|
|
137928
|
+
|
|
138485
137929
|
// node_modules/.bun/cssfilter@0.0.10/node_modules/cssfilter/lib/default.js
|
|
138486
137930
|
var require_default = __commonJS((exports) => {
|
|
138487
137931
|
function getDefaultWhiteList() {
|
|
@@ -142596,10 +142040,10 @@ function saveMcpServerUserConfig(pluginId, serverName, config2, schema) {
|
|
|
142596
142040
|
throw new Error(`Failed to save user configuration for ${pluginId}/${serverName}: ${errorObj.message}`);
|
|
142597
142041
|
}
|
|
142598
142042
|
}
|
|
142599
|
-
function validateUserConfig2(
|
|
142043
|
+
function validateUserConfig2(values, schema) {
|
|
142600
142044
|
const errors4 = [];
|
|
142601
142045
|
for (const [key, fieldSchema] of Object.entries(schema)) {
|
|
142602
|
-
const value =
|
|
142046
|
+
const value = values[key];
|
|
142603
142047
|
if (fieldSchema.required && (value === undefined || value === "")) {
|
|
142604
142048
|
errors4.push(`${fieldSchema.title || key} is required but not provided`);
|
|
142605
142049
|
continue;
|
|
@@ -144634,10 +144078,10 @@ function getPluginStorageId(plugin) {
|
|
|
144634
144078
|
function clearPluginOptionsCache() {
|
|
144635
144079
|
loadPluginOptions.cache?.clear?.();
|
|
144636
144080
|
}
|
|
144637
|
-
function savePluginOptions(pluginId,
|
|
144081
|
+
function savePluginOptions(pluginId, values, schema) {
|
|
144638
144082
|
const nonSensitive = {};
|
|
144639
144083
|
const sensitive = {};
|
|
144640
|
-
for (const [key, value] of Object.entries(
|
|
144084
|
+
for (const [key, value] of Object.entries(values)) {
|
|
144641
144085
|
if (schema[key]?.sensitive === true) {
|
|
144642
144086
|
sensitive[key] = String(value);
|
|
144643
144087
|
} else {
|
|
@@ -145386,6 +144830,16 @@ var init_gitAvailability = __esm(() => {
|
|
|
145386
144830
|
});
|
|
145387
144831
|
});
|
|
145388
144832
|
|
|
144833
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/isEqual.js
|
|
144834
|
+
function isEqual(value, other2) {
|
|
144835
|
+
return _baseIsEqual_default(value, other2);
|
|
144836
|
+
}
|
|
144837
|
+
var isEqual_default;
|
|
144838
|
+
var init_isEqual = __esm(() => {
|
|
144839
|
+
init__baseIsEqual();
|
|
144840
|
+
isEqual_default = isEqual;
|
|
144841
|
+
});
|
|
144842
|
+
|
|
145389
144843
|
// src/capabilities/commands/cacheControl.ts
|
|
145390
144844
|
function registerCommandCacheControl(impl) {
|
|
145391
144845
|
_clearCommandMemoizationCaches = impl.clearCommandMemoizationCaches;
|
|
@@ -149309,26 +148763,26 @@ function createAbortController(maxListeners = DEFAULT_MAX_LISTENERS) {
|
|
|
149309
148763
|
return controller;
|
|
149310
148764
|
}
|
|
149311
148765
|
function propagateAbort(weakChild) {
|
|
149312
|
-
const
|
|
149313
|
-
weakChild.deref()?.abort(
|
|
148766
|
+
const parent = this.deref();
|
|
148767
|
+
weakChild.deref()?.abort(parent?.signal.reason);
|
|
149314
148768
|
}
|
|
149315
148769
|
function removeAbortHandler(weakHandler) {
|
|
149316
|
-
const
|
|
148770
|
+
const parent = this.deref();
|
|
149317
148771
|
const handler5 = weakHandler.deref();
|
|
149318
|
-
if (
|
|
149319
|
-
|
|
148772
|
+
if (parent && handler5) {
|
|
148773
|
+
parent.signal.removeEventListener("abort", handler5);
|
|
149320
148774
|
}
|
|
149321
148775
|
}
|
|
149322
|
-
function createChildAbortController(
|
|
148776
|
+
function createChildAbortController(parent, maxListeners) {
|
|
149323
148777
|
const child = createAbortController(maxListeners);
|
|
149324
|
-
if (
|
|
149325
|
-
child.abort(
|
|
148778
|
+
if (parent.signal.aborted) {
|
|
148779
|
+
child.abort(parent.signal.reason);
|
|
149326
148780
|
return child;
|
|
149327
148781
|
}
|
|
149328
148782
|
const weakChild = new WeakRef(child);
|
|
149329
|
-
const weakParent = new WeakRef(
|
|
148783
|
+
const weakParent = new WeakRef(parent);
|
|
149330
148784
|
const handler5 = propagateAbort.bind(weakParent, weakChild);
|
|
149331
|
-
|
|
148785
|
+
parent.signal.addEventListener("abort", handler5, { once: true });
|
|
149332
148786
|
child.signal.addEventListener("abort", removeAbortHandler.bind(weakParent, new WeakRef(handler5)), { once: true });
|
|
149333
148787
|
return child;
|
|
149334
148788
|
}
|
|
@@ -149727,8 +149181,8 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149727
149181
|
response.ignoreMatch();
|
|
149728
149182
|
}
|
|
149729
149183
|
}
|
|
149730
|
-
function beginKeywords(mode,
|
|
149731
|
-
if (!
|
|
149184
|
+
function beginKeywords(mode, parent) {
|
|
149185
|
+
if (!parent)
|
|
149732
149186
|
return;
|
|
149733
149187
|
if (!mode.beginKeywords)
|
|
149734
149188
|
return;
|
|
@@ -149901,20 +149355,20 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149901
149355
|
}
|
|
149902
149356
|
return mm;
|
|
149903
149357
|
}
|
|
149904
|
-
function compileMode(mode,
|
|
149358
|
+
function compileMode(mode, parent) {
|
|
149905
149359
|
const cmode = mode;
|
|
149906
149360
|
if (mode.isCompiled)
|
|
149907
149361
|
return cmode;
|
|
149908
149362
|
[
|
|
149909
149363
|
compileMatch
|
|
149910
|
-
].forEach((ext) => ext(mode,
|
|
149911
|
-
language.compilerExtensions.forEach((ext) => ext(mode,
|
|
149364
|
+
].forEach((ext) => ext(mode, parent));
|
|
149365
|
+
language.compilerExtensions.forEach((ext) => ext(mode, parent));
|
|
149912
149366
|
mode.__beforeBegin = null;
|
|
149913
149367
|
[
|
|
149914
149368
|
beginKeywords,
|
|
149915
149369
|
compileIllegal,
|
|
149916
149370
|
compileRelevance
|
|
149917
|
-
].forEach((ext) => ext(mode,
|
|
149371
|
+
].forEach((ext) => ext(mode, parent));
|
|
149918
149372
|
mode.isCompiled = true;
|
|
149919
149373
|
let keywordPattern = null;
|
|
149920
149374
|
if (typeof mode.keywords === "object") {
|
|
@@ -149929,7 +149383,7 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149929
149383
|
}
|
|
149930
149384
|
keywordPattern = keywordPattern || mode.lexemes || /\w+/;
|
|
149931
149385
|
cmode.keywordPatternRe = langRe(keywordPattern, true);
|
|
149932
|
-
if (
|
|
149386
|
+
if (parent) {
|
|
149933
149387
|
if (!mode.begin)
|
|
149934
149388
|
mode.begin = /\B|\b/;
|
|
149935
149389
|
cmode.beginRe = langRe(mode.begin);
|
|
@@ -149940,8 +149394,8 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149940
149394
|
if (mode.end)
|
|
149941
149395
|
cmode.endRe = langRe(mode.end);
|
|
149942
149396
|
cmode.terminatorEnd = source(mode.end) || "";
|
|
149943
|
-
if (mode.endsWithParent &&
|
|
149944
|
-
cmode.terminatorEnd += (mode.end ? "|" : "") +
|
|
149397
|
+
if (mode.endsWithParent && parent.terminatorEnd) {
|
|
149398
|
+
cmode.terminatorEnd += (mode.end ? "|" : "") + parent.terminatorEnd;
|
|
149945
149399
|
}
|
|
149946
149400
|
}
|
|
149947
149401
|
if (mode.illegal)
|
|
@@ -149955,7 +149409,7 @@ var require_core3 = __commonJS((exports, module) => {
|
|
|
149955
149409
|
compileMode(c6, cmode);
|
|
149956
149410
|
});
|
|
149957
149411
|
if (mode.starts) {
|
|
149958
|
-
compileMode(mode.starts,
|
|
149412
|
+
compileMode(mode.starts, parent);
|
|
149959
149413
|
}
|
|
149960
149414
|
cmode.matcher = buildModeRegex(cmode);
|
|
149961
149415
|
return cmode;
|
|
@@ -175286,7 +174740,7 @@ var require_r = __commonJS((exports, module) => {
|
|
|
175286
174740
|
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
174741
|
},
|
|
175288
174742
|
compilerExtensions: [
|
|
175289
|
-
(mode,
|
|
174743
|
+
(mode, parent) => {
|
|
175290
174744
|
if (!mode.beforeMatch)
|
|
175291
174745
|
return;
|
|
175292
174746
|
if (mode.starts)
|
|
@@ -185140,9 +184594,9 @@ var require_parser_mixin = __commonJS((exports, module) => {
|
|
|
185140
184594
|
orig._insertFakeRootElement.call(this);
|
|
185141
184595
|
this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current, null);
|
|
185142
184596
|
},
|
|
185143
|
-
_appendCommentNode(token,
|
|
185144
|
-
orig._appendCommentNode.call(this, token,
|
|
185145
|
-
const children = this.treeAdapter.getChildNodes(
|
|
184597
|
+
_appendCommentNode(token, parent) {
|
|
184598
|
+
orig._appendCommentNode.call(this, token, parent);
|
|
184599
|
+
const children = this.treeAdapter.getChildNodes(parent);
|
|
185146
184600
|
const commentNode = children[children.length - 1];
|
|
185147
184601
|
this.treeAdapter.setNodeSourceCodeLocation(commentNode, token.location);
|
|
185148
184602
|
},
|
|
@@ -185153,8 +184607,8 @@ var require_parser_mixin = __commonJS((exports, module) => {
|
|
|
185153
184607
|
_insertCharacters(token) {
|
|
185154
184608
|
orig._insertCharacters.call(this, token);
|
|
185155
184609
|
const hasFosterParent = this._shouldFosterParentOnInsertion();
|
|
185156
|
-
const
|
|
185157
|
-
const siblings = this.treeAdapter.getChildNodes(
|
|
184610
|
+
const parent = hasFosterParent && mxn.lastFosterParentingLocation.parent || this.openElements.currentTmplContent || this.openElements.current;
|
|
184611
|
+
const siblings = this.treeAdapter.getChildNodes(parent);
|
|
185158
184612
|
const textNodeIdx = hasFosterParent && mxn.lastFosterParentingLocation.beforeElement ? siblings.indexOf(mxn.lastFosterParentingLocation.beforeElement) - 1 : siblings.length - 1;
|
|
185159
184613
|
const textNode = siblings[textNodeIdx];
|
|
185160
184614
|
const tnLoc = this.treeAdapter.getNodeSourceCodeLocation(textNode);
|
|
@@ -186293,8 +185747,8 @@ var require_parser4 = __commonJS((exports, module) => {
|
|
|
186293
185747
|
if (this._shouldFosterParentOnInsertion()) {
|
|
186294
185748
|
this._fosterParentElement(element);
|
|
186295
185749
|
} else {
|
|
186296
|
-
const
|
|
186297
|
-
this.treeAdapter.appendChild(
|
|
185750
|
+
const parent = this.openElements.currentTmplContent || this.openElements.current;
|
|
185751
|
+
this.treeAdapter.appendChild(parent, element);
|
|
186298
185752
|
}
|
|
186299
185753
|
}
|
|
186300
185754
|
_appendElement(token, namespaceURI) {
|
|
@@ -186323,16 +185777,16 @@ var require_parser4 = __commonJS((exports, module) => {
|
|
|
186323
185777
|
this.treeAdapter.appendChild(this.openElements.current, element);
|
|
186324
185778
|
this.openElements.push(element);
|
|
186325
185779
|
}
|
|
186326
|
-
_appendCommentNode(token,
|
|
185780
|
+
_appendCommentNode(token, parent) {
|
|
186327
185781
|
const commentNode = this.treeAdapter.createCommentNode(token.data);
|
|
186328
|
-
this.treeAdapter.appendChild(
|
|
185782
|
+
this.treeAdapter.appendChild(parent, commentNode);
|
|
186329
185783
|
}
|
|
186330
185784
|
_insertCharacters(token) {
|
|
186331
185785
|
if (this._shouldFosterParentOnInsertion()) {
|
|
186332
185786
|
this._fosterParentText(token.chars);
|
|
186333
185787
|
} else {
|
|
186334
|
-
const
|
|
186335
|
-
this.treeAdapter.insertText(
|
|
185788
|
+
const parent = this.openElements.currentTmplContent || this.openElements.current;
|
|
185789
|
+
this.treeAdapter.insertText(parent, token.chars);
|
|
186336
185790
|
}
|
|
186337
185791
|
}
|
|
186338
185792
|
_adoptNodes(donor, recipient) {
|
|
@@ -188157,10 +187611,10 @@ var require_serializer = __commonJS((exports, module) => {
|
|
|
188157
187611
|
}
|
|
188158
187612
|
_serializeTextNode(node) {
|
|
188159
187613
|
const content = this.treeAdapter.getTextNodeContent(node);
|
|
188160
|
-
const
|
|
187614
|
+
const parent = this.treeAdapter.getParentNode(node);
|
|
188161
187615
|
let parentTn = undefined;
|
|
188162
|
-
if (
|
|
188163
|
-
parentTn = this.treeAdapter.getTagName(
|
|
187616
|
+
if (parent && this.treeAdapter.isElementNode(parent)) {
|
|
187617
|
+
parentTn = this.treeAdapter.getTagName(parent);
|
|
188164
187618
|
}
|
|
188165
187619
|
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
187620
|
this.html += content;
|
|
@@ -190198,22 +189652,22 @@ var require_source = __commonJS((exports, module) => {
|
|
|
190198
189652
|
}
|
|
190199
189653
|
}
|
|
190200
189654
|
});
|
|
190201
|
-
var createStyler2 = (open7, close,
|
|
189655
|
+
var createStyler2 = (open7, close, parent) => {
|
|
190202
189656
|
let openAll;
|
|
190203
189657
|
let closeAll;
|
|
190204
|
-
if (
|
|
189658
|
+
if (parent === undefined) {
|
|
190205
189659
|
openAll = open7;
|
|
190206
189660
|
closeAll = close;
|
|
190207
189661
|
} else {
|
|
190208
|
-
openAll =
|
|
190209
|
-
closeAll = close +
|
|
189662
|
+
openAll = parent.openAll + open7;
|
|
189663
|
+
closeAll = close + parent.closeAll;
|
|
190210
189664
|
}
|
|
190211
189665
|
return {
|
|
190212
189666
|
open: open7,
|
|
190213
189667
|
close,
|
|
190214
189668
|
openAll,
|
|
190215
189669
|
closeAll,
|
|
190216
|
-
parent
|
|
189670
|
+
parent
|
|
190217
189671
|
};
|
|
190218
189672
|
};
|
|
190219
189673
|
var createBuilder2 = (self2, _styler, _isEmpty) => {
|
|
@@ -190896,8 +190350,8 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
190896
190350
|
delete mode.className;
|
|
190897
190351
|
}
|
|
190898
190352
|
}
|
|
190899
|
-
function beginKeywords(mode,
|
|
190900
|
-
if (!
|
|
190353
|
+
function beginKeywords(mode, parent) {
|
|
190354
|
+
if (!parent)
|
|
190901
190355
|
return;
|
|
190902
190356
|
if (!mode.beginKeywords)
|
|
190903
190357
|
return;
|
|
@@ -190925,7 +190379,7 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
190925
190379
|
if (mode.relevance === undefined)
|
|
190926
190380
|
mode.relevance = 1;
|
|
190927
190381
|
}
|
|
190928
|
-
var beforeMatchExt = (mode,
|
|
190382
|
+
var beforeMatchExt = (mode, parent) => {
|
|
190929
190383
|
if (!mode.beforeMatch)
|
|
190930
190384
|
return;
|
|
190931
190385
|
if (mode.starts)
|
|
@@ -191163,7 +190617,7 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191163
190617
|
}
|
|
191164
190618
|
return mm;
|
|
191165
190619
|
}
|
|
191166
|
-
function compileMode(mode,
|
|
190620
|
+
function compileMode(mode, parent) {
|
|
191167
190621
|
const cmode = mode;
|
|
191168
190622
|
if (mode.isCompiled)
|
|
191169
190623
|
return cmode;
|
|
@@ -191172,14 +190626,14 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191172
190626
|
compileMatch,
|
|
191173
190627
|
MultiClass,
|
|
191174
190628
|
beforeMatchExt
|
|
191175
|
-
].forEach((ext) => ext(mode,
|
|
191176
|
-
language.compilerExtensions.forEach((ext) => ext(mode,
|
|
190629
|
+
].forEach((ext) => ext(mode, parent));
|
|
190630
|
+
language.compilerExtensions.forEach((ext) => ext(mode, parent));
|
|
191177
190631
|
mode.__beforeBegin = null;
|
|
191178
190632
|
[
|
|
191179
190633
|
beginKeywords,
|
|
191180
190634
|
compileIllegal,
|
|
191181
190635
|
compileRelevance
|
|
191182
|
-
].forEach((ext) => ext(mode,
|
|
190636
|
+
].forEach((ext) => ext(mode, parent));
|
|
191183
190637
|
mode.isCompiled = true;
|
|
191184
190638
|
let keywordPattern = null;
|
|
191185
190639
|
if (typeof mode.keywords === "object" && mode.keywords.$pattern) {
|
|
@@ -191192,7 +190646,7 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191192
190646
|
mode.keywords = compileKeywords(mode.keywords, language.case_insensitive);
|
|
191193
190647
|
}
|
|
191194
190648
|
cmode.keywordPatternRe = langRe(keywordPattern, true);
|
|
191195
|
-
if (
|
|
190649
|
+
if (parent) {
|
|
191196
190650
|
if (!mode.begin)
|
|
191197
190651
|
mode.begin = /\B|\b/;
|
|
191198
190652
|
cmode.beginRe = langRe(cmode.begin);
|
|
@@ -191201,8 +190655,8 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191201
190655
|
if (mode.end)
|
|
191202
190656
|
cmode.endRe = langRe(cmode.end);
|
|
191203
190657
|
cmode.terminatorEnd = source(cmode.end) || "";
|
|
191204
|
-
if (mode.endsWithParent &&
|
|
191205
|
-
cmode.terminatorEnd += (mode.end ? "|" : "") +
|
|
190658
|
+
if (mode.endsWithParent && parent.terminatorEnd) {
|
|
190659
|
+
cmode.terminatorEnd += (mode.end ? "|" : "") + parent.terminatorEnd;
|
|
191206
190660
|
}
|
|
191207
190661
|
}
|
|
191208
190662
|
if (mode.illegal)
|
|
@@ -191216,7 +190670,7 @@ var require_core4 = __commonJS((exports, module) => {
|
|
|
191216
190670
|
compileMode(c6, cmode);
|
|
191217
190671
|
});
|
|
191218
190672
|
if (mode.starts) {
|
|
191219
|
-
compileMode(mode.starts,
|
|
190673
|
+
compileMode(mode.starts, parent);
|
|
191220
190674
|
}
|
|
191221
190675
|
cmode.matcher = buildModeRegex(cmode);
|
|
191222
190676
|
return cmode;
|
|
@@ -242319,8 +241773,8 @@ async function toArray2(generator) {
|
|
|
242319
241773
|
}
|
|
242320
241774
|
return result;
|
|
242321
241775
|
}
|
|
242322
|
-
async function* fromArray(
|
|
242323
|
-
for (const value of
|
|
241776
|
+
async function* fromArray(values) {
|
|
241777
|
+
for (const value of values) {
|
|
242324
241778
|
yield value;
|
|
242325
241779
|
}
|
|
242326
241780
|
}
|
|
@@ -244483,7 +243937,7 @@ function getAnthropicEnvMetadata() {
|
|
|
244483
243937
|
function getBuildAgeMinutes() {
|
|
244484
243938
|
if (false)
|
|
244485
243939
|
;
|
|
244486
|
-
const buildTime = new Date("2026-05-
|
|
243940
|
+
const buildTime = new Date("2026-05-19T09:07:47.609Z").getTime();
|
|
244487
243941
|
if (isNaN(buildTime))
|
|
244488
243942
|
return;
|
|
244489
243943
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -244651,9 +244105,9 @@ function logAPISuccess({
|
|
|
244651
244105
|
const isNonInteractiveSession = getIsNonInteractiveSession();
|
|
244652
244106
|
const isPostCompaction = consumePostCompaction();
|
|
244653
244107
|
const hasPrintFlag = process.argv.includes("-p") || process.argv.includes("--print");
|
|
244654
|
-
const
|
|
244108
|
+
const now = Date.now();
|
|
244655
244109
|
const lastCompletion = getLastApiCompletionTimestamp();
|
|
244656
|
-
const timeSinceLastApiCallMs = lastCompletion !== null ?
|
|
244110
|
+
const timeSinceLastApiCallMs = lastCompletion !== null ? now - lastCompletion : undefined;
|
|
244657
244111
|
const invocation = consumeInvokingRequestId();
|
|
244658
244112
|
logEvent("tengu_api_success", {
|
|
244659
244113
|
model,
|
|
@@ -244719,7 +244173,7 @@ function logAPISuccess({
|
|
|
244719
244173
|
...getAnthropicEnvMetadata(),
|
|
244720
244174
|
timeSinceLastApiCallMs
|
|
244721
244175
|
});
|
|
244722
|
-
setLastApiCompletionTimestamp(
|
|
244176
|
+
setLastApiCompletionTimestamp(now);
|
|
244723
244177
|
}
|
|
244724
244178
|
function logAPISuccessAndDuration({
|
|
244725
244179
|
model,
|
|
@@ -246129,9 +245583,9 @@ function* normalizeMessage(message) {
|
|
|
246129
245583
|
break;
|
|
246130
245584
|
}
|
|
246131
245585
|
const trackingKey = message.parentToolUseID;
|
|
246132
|
-
const
|
|
245586
|
+
const now = Date.now();
|
|
246133
245587
|
const lastSent = toolProgressLastSentTime.get(trackingKey) || 0;
|
|
246134
|
-
const timeSinceLastSent =
|
|
245588
|
+
const timeSinceLastSent = now - lastSent;
|
|
246135
245589
|
if (timeSinceLastSent >= TOOL_PROGRESS_THROTTLE_MS) {
|
|
246136
245590
|
if (toolProgressLastSentTime.size >= MAX_TOOL_PROGRESS_TRACKING_ENTRIES) {
|
|
246137
245591
|
const firstKey = toolProgressLastSentTime.keys().next().value;
|
|
@@ -246139,7 +245593,7 @@ function* normalizeMessage(message) {
|
|
|
246139
245593
|
toolProgressLastSentTime.delete(firstKey);
|
|
246140
245594
|
}
|
|
246141
245595
|
}
|
|
246142
|
-
toolProgressLastSentTime.set(trackingKey,
|
|
245596
|
+
toolProgressLastSentTime.set(trackingKey, now);
|
|
246143
245597
|
yield {
|
|
246144
245598
|
type: "tool_progress",
|
|
246145
245599
|
tool_use_id: message.toolUseID,
|
|
@@ -250706,6 +250160,75 @@ var init_detection = __esm(() => {
|
|
|
250706
250160
|
ORIGINAL_TMUX_PANE = process.env.TMUX_PANE;
|
|
250707
250161
|
});
|
|
250708
250162
|
|
|
250163
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseRandom.js
|
|
250164
|
+
function baseRandom(lower, upper) {
|
|
250165
|
+
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
250166
|
+
}
|
|
250167
|
+
var nativeFloor, nativeRandom, _baseRandom_default;
|
|
250168
|
+
var init__baseRandom = __esm(() => {
|
|
250169
|
+
nativeFloor = Math.floor;
|
|
250170
|
+
nativeRandom = Math.random;
|
|
250171
|
+
_baseRandom_default = baseRandom;
|
|
250172
|
+
});
|
|
250173
|
+
|
|
250174
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_arraySample.js
|
|
250175
|
+
function arraySample(array3) {
|
|
250176
|
+
var length = array3.length;
|
|
250177
|
+
return length ? array3[_baseRandom_default(0, length - 1)] : undefined;
|
|
250178
|
+
}
|
|
250179
|
+
var _arraySample_default;
|
|
250180
|
+
var init__arraySample = __esm(() => {
|
|
250181
|
+
init__baseRandom();
|
|
250182
|
+
_arraySample_default = arraySample;
|
|
250183
|
+
});
|
|
250184
|
+
|
|
250185
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseValues.js
|
|
250186
|
+
function baseValues(object4, props) {
|
|
250187
|
+
return _arrayMap_default(props, function(key) {
|
|
250188
|
+
return object4[key];
|
|
250189
|
+
});
|
|
250190
|
+
}
|
|
250191
|
+
var _baseValues_default;
|
|
250192
|
+
var init__baseValues = __esm(() => {
|
|
250193
|
+
init__arrayMap();
|
|
250194
|
+
_baseValues_default = baseValues;
|
|
250195
|
+
});
|
|
250196
|
+
|
|
250197
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/values.js
|
|
250198
|
+
function values(object4) {
|
|
250199
|
+
return object4 == null ? [] : _baseValues_default(object4, keys_default(object4));
|
|
250200
|
+
}
|
|
250201
|
+
var values_default;
|
|
250202
|
+
var init_values3 = __esm(() => {
|
|
250203
|
+
init__baseValues();
|
|
250204
|
+
init_keys();
|
|
250205
|
+
values_default = values;
|
|
250206
|
+
});
|
|
250207
|
+
|
|
250208
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseSample.js
|
|
250209
|
+
function baseSample(collection) {
|
|
250210
|
+
return _arraySample_default(values_default(collection));
|
|
250211
|
+
}
|
|
250212
|
+
var _baseSample_default;
|
|
250213
|
+
var init__baseSample = __esm(() => {
|
|
250214
|
+
init__arraySample();
|
|
250215
|
+
init_values3();
|
|
250216
|
+
_baseSample_default = baseSample;
|
|
250217
|
+
});
|
|
250218
|
+
|
|
250219
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/sample.js
|
|
250220
|
+
function sample(collection) {
|
|
250221
|
+
var func = isArray_default(collection) ? _arraySample_default : _baseSample_default;
|
|
250222
|
+
return func(collection);
|
|
250223
|
+
}
|
|
250224
|
+
var sample_default;
|
|
250225
|
+
var init_sample = __esm(() => {
|
|
250226
|
+
init__arraySample();
|
|
250227
|
+
init__baseSample();
|
|
250228
|
+
init_isArray();
|
|
250229
|
+
sample_default = sample;
|
|
250230
|
+
});
|
|
250231
|
+
|
|
250709
250232
|
// src/constants/spinnerVerbs.ts
|
|
250710
250233
|
function getSpinnerVerbs() {
|
|
250711
250234
|
const settings = getInitialSettings();
|
|
@@ -251928,8 +251451,11 @@ var init_coreSchemas = __esm(() => {
|
|
|
251928
251451
|
"resume",
|
|
251929
251452
|
"logout",
|
|
251930
251453
|
"prompt_input_exit",
|
|
251931
|
-
"
|
|
251932
|
-
"
|
|
251454
|
+
"bypass_permissions_disabled",
|
|
251455
|
+
"normal",
|
|
251456
|
+
"aborted",
|
|
251457
|
+
"error",
|
|
251458
|
+
"other"
|
|
251933
251459
|
];
|
|
251934
251460
|
ExitReasonSchema = lazySchema(() => exports_external.enum(EXIT_REASONS));
|
|
251935
251461
|
SessionEndHookInputSchema = lazySchema(() => BaseHookInputSchema().and(exports_external.object({
|
|
@@ -270935,11 +270461,11 @@ async function fileHistoryMakeSnapshot(updateFileHistoryState, messageId) {
|
|
|
270935
270461
|
trackedFileBackups[trackingPath] = inherited;
|
|
270936
270462
|
}
|
|
270937
270463
|
}
|
|
270938
|
-
const
|
|
270464
|
+
const now = new Date;
|
|
270939
270465
|
const newSnapshot = {
|
|
270940
270466
|
messageId,
|
|
270941
270467
|
trackedFileBackups,
|
|
270942
|
-
timestamp:
|
|
270468
|
+
timestamp: now
|
|
270943
270469
|
};
|
|
270944
270470
|
const allSnapshots = [...state3.snapshots, newSnapshot];
|
|
270945
270471
|
const updatedState = {
|
|
@@ -283241,8 +282767,8 @@ async function* runPowerShellCommand({
|
|
|
283241
282767
|
let foregroundTaskId = undefined;
|
|
283242
282768
|
try {
|
|
283243
282769
|
while (true) {
|
|
283244
|
-
const
|
|
283245
|
-
const timeUntilNextProgress = Math.max(0, nextProgressTime -
|
|
282770
|
+
const now = Date.now();
|
|
282771
|
+
const timeUntilNextProgress = Math.max(0, nextProgressTime - now);
|
|
283246
282772
|
const progressSignal = createProgressSignal();
|
|
283247
282773
|
const result = await Promise.race([resultPromise, new Promise((resolve25) => setTimeout((r) => r(null), timeUntilNextProgress, resolve25).unref()), progressSignal]);
|
|
283248
282774
|
if (result !== null) {
|
|
@@ -284788,7 +284314,7 @@ async function cleanupOrphanedPluginVersionsInBackground() {
|
|
|
284788
284314
|
if (!installedVersions)
|
|
284789
284315
|
return;
|
|
284790
284316
|
const cachePath = getPluginCachePath();
|
|
284791
|
-
const
|
|
284317
|
+
const now = Date.now();
|
|
284792
284318
|
await Promise.all([...installedVersions].map((p) => removeOrphanedAtMarker(p)));
|
|
284793
284319
|
for (const marketplace of await readSubdirs(cachePath)) {
|
|
284794
284320
|
const marketplacePath = join66(cachePath, marketplace);
|
|
@@ -284798,7 +284324,7 @@ async function cleanupOrphanedPluginVersionsInBackground() {
|
|
|
284798
284324
|
const versionPath = join66(pluginPath, version2);
|
|
284799
284325
|
if (installedVersions.has(versionPath))
|
|
284800
284326
|
continue;
|
|
284801
|
-
await processOrphanedPluginVersion(versionPath,
|
|
284327
|
+
await processOrphanedPluginVersion(versionPath, now);
|
|
284802
284328
|
}
|
|
284803
284329
|
await removeIfEmpty(pluginPath);
|
|
284804
284330
|
}
|
|
@@ -284837,7 +284363,7 @@ function getInstalledVersionPaths() {
|
|
|
284837
284363
|
return null;
|
|
284838
284364
|
}
|
|
284839
284365
|
}
|
|
284840
|
-
async function processOrphanedPluginVersion(versionPath,
|
|
284366
|
+
async function processOrphanedPluginVersion(versionPath, now) {
|
|
284841
284367
|
const orphanedAtPath = getOrphanedAtPath(versionPath);
|
|
284842
284368
|
let orphanedAt;
|
|
284843
284369
|
try {
|
|
@@ -284851,7 +284377,7 @@ async function processOrphanedPluginVersion(versionPath, now2) {
|
|
|
284851
284377
|
logForDebugging2(`Failed to stat orphaned marker: ${versionPath}: ${error41}`);
|
|
284852
284378
|
return;
|
|
284853
284379
|
}
|
|
284854
|
-
if (
|
|
284380
|
+
if (now - orphanedAt > CLEANUP_AGE_MS) {
|
|
284855
284381
|
try {
|
|
284856
284382
|
await getFsImplementation().rm(versionPath, { recursive: true, force: true });
|
|
284857
284383
|
} catch (error41) {
|
|
@@ -286889,7 +286415,7 @@ async function migrateFromEnabledPlugins() {
|
|
|
286889
286415
|
}
|
|
286890
286416
|
}
|
|
286891
286417
|
logForDebugging2(fileExists ? "Syncing installed_plugins.json with enabledPlugins from all settings.json files" : "Creating installed_plugins.json from settings.json files");
|
|
286892
|
-
const
|
|
286418
|
+
const now = new Date().toISOString();
|
|
286893
286419
|
const projectPath = getCwd3();
|
|
286894
286420
|
const pluginScopeFromSettings = new Map;
|
|
286895
286421
|
const settingSources = [
|
|
@@ -286928,7 +286454,7 @@ async function migrateFromEnabledPlugins() {
|
|
|
286928
286454
|
} else {
|
|
286929
286455
|
delete existingEntry.projectPath;
|
|
286930
286456
|
}
|
|
286931
|
-
existingEntry.lastUpdated =
|
|
286457
|
+
existingEntry.lastUpdated = now;
|
|
286932
286458
|
updatedCount++;
|
|
286933
286459
|
logForDebugging2(`Updated ${pluginId} scope to ${scopeInfo.scope} (settings.json is source of truth)`);
|
|
286934
286460
|
}
|
|
@@ -286982,8 +286508,8 @@ async function migrateFromEnabledPlugins() {
|
|
|
286982
286508
|
scope: scopeInfo.scope,
|
|
286983
286509
|
installPath: getVersionedCachePath(pluginId, version2),
|
|
286984
286510
|
version: version2,
|
|
286985
|
-
installedAt:
|
|
286986
|
-
lastUpdated:
|
|
286511
|
+
installedAt: now,
|
|
286512
|
+
lastUpdated: now,
|
|
286987
286513
|
gitCommitSha,
|
|
286988
286514
|
...scopeInfo.projectPath && {
|
|
286989
286515
|
projectPath: scopeInfo.projectPath
|
|
@@ -287202,7 +286728,7 @@ async function cacheAndRegisterPlugin(pluginId, entry, scope = "user", projectPa
|
|
|
287202
286728
|
});
|
|
287203
286729
|
const pathForGitSha = localSourcePath || cacheResult.path;
|
|
287204
286730
|
const gitCommitSha = cacheResult.gitCommitSha ?? await getGitCommitSha(pathForGitSha);
|
|
287205
|
-
const
|
|
286731
|
+
const now = getCurrentTimestamp();
|
|
287206
286732
|
const version2 = await calculatePluginVersion(pluginId, entry.source, cacheResult.manifest, pathForGitSha, entry.version, cacheResult.gitCommitSha);
|
|
287207
286733
|
const versionedPath = getVersionedCachePath(pluginId, version2);
|
|
287208
286734
|
let finalPath = cacheResult.path;
|
|
@@ -287228,19 +286754,19 @@ async function cacheAndRegisterPlugin(pluginId, entry, scope = "user", projectPa
|
|
|
287228
286754
|
}
|
|
287229
286755
|
addInstalledPlugin(pluginId, {
|
|
287230
286756
|
version: version2,
|
|
287231
|
-
installedAt:
|
|
287232
|
-
lastUpdated:
|
|
286757
|
+
installedAt: now,
|
|
286758
|
+
lastUpdated: now,
|
|
287233
286759
|
installPath: finalPath,
|
|
287234
286760
|
gitCommitSha
|
|
287235
286761
|
}, scope, projectPath);
|
|
287236
286762
|
return finalPath;
|
|
287237
286763
|
}
|
|
287238
286764
|
function registerPluginInstallation(info, scope = "user", projectPath) {
|
|
287239
|
-
const
|
|
286765
|
+
const now = getCurrentTimestamp();
|
|
287240
286766
|
addInstalledPlugin(info.pluginId, {
|
|
287241
286767
|
version: info.version || "unknown",
|
|
287242
|
-
installedAt:
|
|
287243
|
-
lastUpdated:
|
|
286768
|
+
installedAt: now,
|
|
286769
|
+
lastUpdated: now,
|
|
287244
286770
|
installPath: info.installPath
|
|
287245
286771
|
}, scope, projectPath);
|
|
287246
286772
|
}
|
|
@@ -296885,8 +296411,8 @@ function createClaudeAiProxyFetch(innerFetch) {
|
|
|
296885
296411
|
tokenChanged
|
|
296886
296412
|
});
|
|
296887
296413
|
if (!tokenChanged) {
|
|
296888
|
-
const
|
|
296889
|
-
if (!
|
|
296414
|
+
const now = getClaudeAIOAuthTokens()?.accessToken;
|
|
296415
|
+
if (!now || now === sentToken) {
|
|
296890
296416
|
return response;
|
|
296891
296417
|
}
|
|
296892
296418
|
}
|
|
@@ -305737,10 +305263,10 @@ async function discoverSkillDirsForPaths(filePaths, cwd) {
|
|
|
305737
305263
|
newDirs.push(skillDir);
|
|
305738
305264
|
} catch {}
|
|
305739
305265
|
}
|
|
305740
|
-
const
|
|
305741
|
-
if (
|
|
305266
|
+
const parent = dirname39(currentDir);
|
|
305267
|
+
if (parent === currentDir)
|
|
305742
305268
|
break;
|
|
305743
|
-
currentDir =
|
|
305269
|
+
currentDir = parent;
|
|
305744
305270
|
}
|
|
305745
305271
|
}
|
|
305746
305272
|
return newDirs.sort((a2, b) => b.split(pathSep2).length - a2.split(pathSep2).length);
|
|
@@ -307633,9 +307159,9 @@ ${deferredToolList}
|
|
|
307633
307159
|
let stallCount = 0;
|
|
307634
307160
|
for await (const part of stream4) {
|
|
307635
307161
|
resetStreamIdleTimer();
|
|
307636
|
-
const
|
|
307162
|
+
const now = Date.now();
|
|
307637
307163
|
if (lastEventTime !== null) {
|
|
307638
|
-
const timeSinceLastEvent =
|
|
307164
|
+
const timeSinceLastEvent = now - lastEventTime;
|
|
307639
307165
|
if (timeSinceLastEvent > STALL_THRESHOLD_MS2) {
|
|
307640
307166
|
stallCount++;
|
|
307641
307167
|
totalStallTime += timeSinceLastEvent;
|
|
@@ -307650,7 +307176,7 @@ ${deferredToolList}
|
|
|
307650
307176
|
});
|
|
307651
307177
|
}
|
|
307652
307178
|
}
|
|
307653
|
-
lastEventTime =
|
|
307179
|
+
lastEventTime = now;
|
|
307654
307180
|
if (isFirstChunk) {
|
|
307655
307181
|
logForDebugging2("Stream started - received first chunk");
|
|
307656
307182
|
queryCheckpoint("query_first_chunk_received");
|
|
@@ -310493,11 +310019,11 @@ function getProjectDirsUpToHome(subdir, cwd) {
|
|
|
310493
310019
|
if (gitRoot && normalizePathForComparison(current) === normalizePathForComparison(gitRoot)) {
|
|
310494
310020
|
break;
|
|
310495
310021
|
}
|
|
310496
|
-
const
|
|
310497
|
-
if (
|
|
310022
|
+
const parent = dirname41(current);
|
|
310023
|
+
if (parent === current) {
|
|
310498
310024
|
break;
|
|
310499
310025
|
}
|
|
310500
|
-
current =
|
|
310026
|
+
current = parent;
|
|
310501
310027
|
}
|
|
310502
310028
|
return dirs;
|
|
310503
310029
|
}
|
|
@@ -314455,6 +313981,7 @@ __export(exports_sessionStorage, {
|
|
|
314455
313981
|
getSessionFilesWithMtime: () => getSessionFilesWithMtime,
|
|
314456
313982
|
getSessionFilesLite: () => getSessionFilesLite,
|
|
314457
313983
|
getProjectsDir: () => getProjectsDir2,
|
|
313984
|
+
getProjectSessionFileForTesting: () => getProjectSessionFileForTesting,
|
|
314458
313985
|
getProjectDir: () => getProjectDir2,
|
|
314459
313986
|
getNodeEnv: () => getNodeEnv,
|
|
314460
313987
|
getLogByIndex: () => getLogByIndex,
|
|
@@ -314475,6 +314002,7 @@ __export(exports_sessionStorage, {
|
|
|
314475
314002
|
deleteRemoteAgentMetadata: () => deleteRemoteAgentMetadata,
|
|
314476
314003
|
clearSessionMetadata: () => clearSessionMetadata,
|
|
314477
314004
|
clearSessionMessagesCache: () => clearSessionMessagesCache,
|
|
314005
|
+
clearProjectForSession: () => clearProjectForSession,
|
|
314478
314006
|
clearAgentTranscriptSubdir: () => clearAgentTranscriptSubdir,
|
|
314479
314007
|
cleanMessagesForLogging: () => cleanMessagesForLogging,
|
|
314480
314008
|
checkResumeConsistency: () => checkResumeConsistency,
|
|
@@ -314632,36 +314160,73 @@ function getEntrypoint() {
|
|
|
314632
314160
|
function isCustomTitleEnabled() {
|
|
314633
314161
|
return true;
|
|
314634
314162
|
}
|
|
314163
|
+
function resolveProjectKey() {
|
|
314164
|
+
try {
|
|
314165
|
+
return getQueryContext().identity.sessionId;
|
|
314166
|
+
} catch {
|
|
314167
|
+
return NO_SESSION_PROJECT_KEY;
|
|
314168
|
+
}
|
|
314169
|
+
}
|
|
314635
314170
|
function getProject() {
|
|
314636
|
-
|
|
314637
|
-
|
|
314171
|
+
const key = resolveProjectKey();
|
|
314172
|
+
let p = projects.get(key);
|
|
314173
|
+
if (!p) {
|
|
314174
|
+
p = new Project;
|
|
314175
|
+
if (processInternalEventWriter)
|
|
314176
|
+
p.setInternalEventWriter(processInternalEventWriter);
|
|
314177
|
+
if (processInternalEventReader)
|
|
314178
|
+
p.setInternalEventReader(processInternalEventReader);
|
|
314179
|
+
if (processInternalSubagentEventReader) {
|
|
314180
|
+
p.setInternalSubagentEventReader(processInternalSubagentEventReader);
|
|
314181
|
+
}
|
|
314182
|
+
projects.set(key, p);
|
|
314638
314183
|
if (!cleanupRegistered3) {
|
|
314639
314184
|
registerCleanup(async () => {
|
|
314640
|
-
|
|
314641
|
-
|
|
314642
|
-
|
|
314643
|
-
|
|
314185
|
+
for (const proj of projects.values()) {
|
|
314186
|
+
try {
|
|
314187
|
+
await proj.flush();
|
|
314188
|
+
} catch {}
|
|
314189
|
+
try {
|
|
314190
|
+
proj.reAppendSessionMetadata();
|
|
314191
|
+
} catch {}
|
|
314192
|
+
}
|
|
314644
314193
|
});
|
|
314645
314194
|
cleanupRegistered3 = true;
|
|
314646
314195
|
}
|
|
314647
314196
|
}
|
|
314648
|
-
return
|
|
314197
|
+
return p;
|
|
314198
|
+
}
|
|
314199
|
+
function clearProjectForSession(sessionId) {
|
|
314200
|
+
projects.delete(sessionId);
|
|
314649
314201
|
}
|
|
314650
314202
|
function resetProjectFlushStateForTesting() {
|
|
314651
|
-
|
|
314203
|
+
for (const p of projects.values())
|
|
314204
|
+
p._resetFlushState();
|
|
314652
314205
|
}
|
|
314653
314206
|
function resetProjectForTesting() {
|
|
314654
|
-
|
|
314207
|
+
projects.clear();
|
|
314208
|
+
processInternalEventWriter = null;
|
|
314209
|
+
processInternalEventReader = null;
|
|
314210
|
+
processInternalSubagentEventReader = null;
|
|
314655
314211
|
}
|
|
314656
314212
|
function setSessionFileForTesting(path14) {
|
|
314657
314213
|
getProject().sessionFile = path14;
|
|
314658
314214
|
}
|
|
314215
|
+
function getProjectSessionFileForTesting() {
|
|
314216
|
+
return getProject().sessionFile;
|
|
314217
|
+
}
|
|
314659
314218
|
function setInternalEventWriter(writer) {
|
|
314660
|
-
|
|
314219
|
+
processInternalEventWriter = writer;
|
|
314220
|
+
for (const p of projects.values())
|
|
314221
|
+
p.setInternalEventWriter(writer);
|
|
314661
314222
|
}
|
|
314662
314223
|
function setInternalEventReader(reader, subagentReader) {
|
|
314663
|
-
|
|
314664
|
-
|
|
314224
|
+
processInternalEventReader = reader;
|
|
314225
|
+
processInternalSubagentEventReader = subagentReader;
|
|
314226
|
+
for (const p of projects.values()) {
|
|
314227
|
+
p.setInternalEventReader(reader);
|
|
314228
|
+
p.setInternalSubagentEventReader(subagentReader);
|
|
314229
|
+
}
|
|
314665
314230
|
}
|
|
314666
314231
|
function setRemoteIngressUrlForTesting(url3) {
|
|
314667
314232
|
getProject().setRemoteIngressUrl(url3);
|
|
@@ -315260,9 +314825,9 @@ async function resetSessionFilePointer() {
|
|
|
315260
314825
|
getProject().resetSessionFile();
|
|
315261
314826
|
}
|
|
315262
314827
|
function adoptResumedSessionFile() {
|
|
315263
|
-
const
|
|
315264
|
-
|
|
315265
|
-
|
|
314828
|
+
const project = getProject();
|
|
314829
|
+
project.sessionFile = getTranscriptPath();
|
|
314830
|
+
project.reAppendSessionMetadata(true);
|
|
315266
314831
|
}
|
|
315267
314832
|
async function recordContextCollapseCommit(commit) {
|
|
315268
314833
|
const sessionId = getSessionId();
|
|
@@ -315289,7 +314854,7 @@ async function flushSessionStorage() {
|
|
|
315289
314854
|
}
|
|
315290
314855
|
async function hydrateRemoteSession(sessionId, ingressUrl) {
|
|
315291
314856
|
switchSession(asSessionId(sessionId));
|
|
315292
|
-
const
|
|
314857
|
+
const project = getProject();
|
|
315293
314858
|
try {
|
|
315294
314859
|
const remoteLogs = await getSessionLogs(sessionId, ingressUrl) || [];
|
|
315295
314860
|
const projectDir = getProjectDir2(getOriginalCwd());
|
|
@@ -315305,14 +314870,14 @@ async function hydrateRemoteSession(sessionId, ingressUrl) {
|
|
|
315305
314870
|
logForDiagnosticsNoPII("error", "hydrate_remote_session_fail");
|
|
315306
314871
|
return false;
|
|
315307
314872
|
} finally {
|
|
315308
|
-
|
|
314873
|
+
project.setRemoteIngressUrl(ingressUrl);
|
|
315309
314874
|
}
|
|
315310
314875
|
}
|
|
315311
314876
|
async function hydrateFromCCRv2InternalEvents(sessionId) {
|
|
315312
314877
|
const startMs = Date.now();
|
|
315313
314878
|
switchSession(asSessionId(sessionId));
|
|
315314
|
-
const
|
|
315315
|
-
const reader =
|
|
314879
|
+
const project = getProject();
|
|
314880
|
+
const reader = project.getInternalEventReader();
|
|
315316
314881
|
if (!reader) {
|
|
315317
314882
|
logForDebugging2("No internal event reader registered for CCR v2 resume");
|
|
315318
314883
|
return false;
|
|
@@ -315332,7 +314897,7 @@ async function hydrateFromCCRv2InternalEvents(sessionId) {
|
|
|
315332
314897
|
await writeFile(sessionFile, fgContent, { encoding: "utf8", mode: 384 });
|
|
315333
314898
|
logForDebugging2(`Hydrated ${events.length} foreground entries from CCR v2 internal events`);
|
|
315334
314899
|
let subagentEventCount = 0;
|
|
315335
|
-
const subagentReader =
|
|
314900
|
+
const subagentReader = project.getInternalSubagentEventReader();
|
|
315336
314901
|
if (subagentReader) {
|
|
315337
314902
|
const subagentEvents = await subagentReader();
|
|
315338
314903
|
if (subagentEvents && subagentEvents.length > 0) {
|
|
@@ -316170,10 +315735,10 @@ async function linkSessionToPR(sessionId, prNumber, prUrl, prRepository, fullPat
|
|
|
316170
315735
|
timestamp: new Date().toISOString()
|
|
316171
315736
|
});
|
|
316172
315737
|
if (sessionId === getSessionId()) {
|
|
316173
|
-
const
|
|
316174
|
-
|
|
316175
|
-
|
|
316176
|
-
|
|
315738
|
+
const project = getProject();
|
|
315739
|
+
project.currentSessionPrNumber = prNumber;
|
|
315740
|
+
project.currentSessionPrUrl = prUrl;
|
|
315741
|
+
project.currentSessionPrRepository = prRepository;
|
|
316177
315742
|
}
|
|
316178
315743
|
logEvent("tengu_session_linked_to_pr", { prNumber });
|
|
316179
315744
|
}
|
|
@@ -316193,41 +315758,41 @@ function getCurrentSessionAgentColor() {
|
|
|
316193
315758
|
return getProject().currentSessionAgentColor;
|
|
316194
315759
|
}
|
|
316195
315760
|
function restoreSessionMetadata(meta) {
|
|
316196
|
-
const
|
|
315761
|
+
const project = getProject();
|
|
316197
315762
|
if (meta.customTitle)
|
|
316198
|
-
|
|
315763
|
+
project.currentSessionTitle ??= meta.customTitle;
|
|
316199
315764
|
if (meta.tag !== undefined)
|
|
316200
|
-
|
|
315765
|
+
project.currentSessionTag = meta.tag || undefined;
|
|
316201
315766
|
if (meta.agentName)
|
|
316202
|
-
|
|
315767
|
+
project.currentSessionAgentName = meta.agentName;
|
|
316203
315768
|
if (meta.agentColor)
|
|
316204
|
-
|
|
315769
|
+
project.currentSessionAgentColor = meta.agentColor;
|
|
316205
315770
|
if (meta.agentSetting)
|
|
316206
|
-
|
|
315771
|
+
project.currentSessionAgentSetting = meta.agentSetting;
|
|
316207
315772
|
if (meta.mode)
|
|
316208
|
-
|
|
315773
|
+
project.currentSessionMode = meta.mode;
|
|
316209
315774
|
if (meta.worktreeSession !== undefined)
|
|
316210
|
-
|
|
315775
|
+
project.currentSessionWorktree = meta.worktreeSession;
|
|
316211
315776
|
if (meta.prNumber !== undefined)
|
|
316212
|
-
|
|
315777
|
+
project.currentSessionPrNumber = meta.prNumber;
|
|
316213
315778
|
if (meta.prUrl)
|
|
316214
|
-
|
|
315779
|
+
project.currentSessionPrUrl = meta.prUrl;
|
|
316215
315780
|
if (meta.prRepository)
|
|
316216
|
-
|
|
315781
|
+
project.currentSessionPrRepository = meta.prRepository;
|
|
316217
315782
|
}
|
|
316218
315783
|
function clearSessionMetadata() {
|
|
316219
|
-
const
|
|
316220
|
-
|
|
316221
|
-
|
|
316222
|
-
|
|
316223
|
-
|
|
316224
|
-
|
|
316225
|
-
|
|
316226
|
-
|
|
316227
|
-
|
|
316228
|
-
|
|
316229
|
-
|
|
316230
|
-
|
|
315784
|
+
const project = getProject();
|
|
315785
|
+
project.currentSessionTitle = undefined;
|
|
315786
|
+
project.currentSessionTag = undefined;
|
|
315787
|
+
project.currentSessionAgentName = undefined;
|
|
315788
|
+
project.currentSessionAgentColor = undefined;
|
|
315789
|
+
project.currentSessionLastPrompt = undefined;
|
|
315790
|
+
project.currentSessionAgentSetting = undefined;
|
|
315791
|
+
project.currentSessionMode = undefined;
|
|
315792
|
+
project.currentSessionWorktree = undefined;
|
|
315793
|
+
project.currentSessionPrNumber = undefined;
|
|
315794
|
+
project.currentSessionPrUrl = undefined;
|
|
315795
|
+
project.currentSessionPrRepository = undefined;
|
|
316231
315796
|
}
|
|
316232
315797
|
function reAppendSessionMetadata() {
|
|
316233
315798
|
getProject().reAppendSessionMetadata();
|
|
@@ -316276,10 +315841,10 @@ function saveWorktreeState(worktreeSession) {
|
|
|
316276
315841
|
tmuxSessionName: worktreeSession.tmuxSessionName,
|
|
316277
315842
|
hookBased: worktreeSession.hookBased
|
|
316278
315843
|
} : null;
|
|
316279
|
-
const
|
|
316280
|
-
|
|
316281
|
-
if (
|
|
316282
|
-
appendEntryToFile(
|
|
315844
|
+
const project = getProject();
|
|
315845
|
+
project.currentSessionWorktree = stripped;
|
|
315846
|
+
if (project.sessionFile) {
|
|
315847
|
+
appendEntryToFile(project.sessionFile, {
|
|
316283
315848
|
type: "worktree-state",
|
|
316284
315849
|
worktreeSession: stripped,
|
|
316285
315850
|
sessionId: getSessionId()
|
|
@@ -316570,8 +316135,8 @@ function walkChainBeforeParse(buf) {
|
|
|
316570
316135
|
const parentStart = msgIdx[slot2 + 2];
|
|
316571
316136
|
if (parentStart < 0)
|
|
316572
316137
|
break;
|
|
316573
|
-
const
|
|
316574
|
-
slot2 = uuidToSlot.get(
|
|
316138
|
+
const parent = buf.toString("latin1", parentStart, parentStart + UUID_LEN);
|
|
316139
|
+
slot2 = uuidToSlot.get(parent);
|
|
316575
316140
|
}
|
|
316576
316141
|
if (len - chainBytes < len >> 1)
|
|
316577
316142
|
return buf;
|
|
@@ -316661,8 +316226,8 @@ async function loadTranscriptFile(filePath, opts) {
|
|
|
316661
316226
|
const progressBridge = new Map;
|
|
316662
316227
|
forEachParsedJSONLBufferEntry(buf, (entry) => {
|
|
316663
316228
|
if (isLegacyProgressEntry(entry)) {
|
|
316664
|
-
const
|
|
316665
|
-
progressBridge.set(entry.uuid,
|
|
316229
|
+
const parent = entry.parentUuid;
|
|
316230
|
+
progressBridge.set(entry.uuid, parent && progressBridge.has(parent) ? progressBridge.get(parent) ?? null : parent);
|
|
316666
316231
|
} else if (isTranscriptMessage(entry)) {
|
|
316667
316232
|
if (entry.parentUuid && progressBridge.has(entry.parentUuid)) {
|
|
316668
316233
|
entry.parentUuid = progressBridge.get(entry.parentUuid) ?? null;
|
|
@@ -317500,7 +317065,7 @@ async function enrichLogs(allLogs, startIndex, count4) {
|
|
|
317500
317065
|
}
|
|
317501
317066
|
return { logs: result, nextIndex: i3 };
|
|
317502
317067
|
}
|
|
317503
|
-
var VERSION6, MAX_TOMBSTONE_REWRITE_BYTES, SKIP_FIRST_PROMPT_PATTERN, EPHEMERAL_PROGRESS_TYPES, MAX_TRANSCRIPT_READ_BYTES, agentTranscriptSubdirs, getProjectDir2,
|
|
317068
|
+
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
317069
|
var init_sessionStorage = __esm(() => {
|
|
317505
317070
|
init_memoize();
|
|
317506
317071
|
init_state();
|
|
@@ -317540,6 +317105,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
317540
317105
|
getProjectDir2 = memoize_default((projectDir) => {
|
|
317541
317106
|
return join82(getProjectsDir2(), sanitizePath2(projectDir));
|
|
317542
317107
|
});
|
|
317108
|
+
projects = new Map;
|
|
317543
317109
|
PERSISTED_OUTPUT_TAG2 = Buffer.from("<persisted-output>");
|
|
317544
317110
|
TOOL_USE_RESULT_KEY = Buffer.from('"toolUseResult":');
|
|
317545
317111
|
METADATA_TYPE_MARKERS = [
|
|
@@ -323578,8 +323144,8 @@ async function createAgentWorktree(slug) {
|
|
|
323578
323144
|
logForDebugging2(`Created agent worktree at: ${worktreePath} on branch: ${worktreeBranch}`);
|
|
323579
323145
|
await performPostCreationSetup(gitRoot, worktreePath);
|
|
323580
323146
|
} else {
|
|
323581
|
-
const
|
|
323582
|
-
await getFsImplementation().utimes(worktreePath,
|
|
323147
|
+
const now = new Date;
|
|
323148
|
+
await getFsImplementation().utimes(worktreePath, now, now);
|
|
323583
323149
|
logForDebugging2(`Resuming existing agent worktree at: ${worktreePath}`);
|
|
323584
323150
|
}
|
|
323585
323151
|
return { worktreePath, worktreeBranch, headCommit, gitRoot };
|
|
@@ -325252,7 +324818,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
325252
324818
|
this._exitCallback = (err2) => {
|
|
325253
324819
|
if (err2.code !== "commander.executeSubCommandAsync") {
|
|
325254
324820
|
throw err2;
|
|
325255
|
-
}
|
|
324821
|
+
}
|
|
325256
324822
|
};
|
|
325257
324823
|
}
|
|
325258
324824
|
return this;
|
|
@@ -326442,7 +326008,7 @@ var require_react_development = __commonJS((exports, module) => {
|
|
|
326442
326008
|
return Error("react-stack-top-frame");
|
|
326443
326009
|
}
|
|
326444
326010
|
function hasValidKey(config2) {
|
|
326445
|
-
if (
|
|
326011
|
+
if (hasOwnProperty15.call(config2, "key")) {
|
|
326446
326012
|
var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
|
|
326447
326013
|
if (getter && getter.isReactWarning)
|
|
326448
326014
|
return false;
|
|
@@ -326782,7 +326348,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
326782
326348
|
thrownErrors: [],
|
|
326783
326349
|
getCurrentStack: null,
|
|
326784
326350
|
recentlyCreatedOwnerStacks: 0
|
|
326785
|
-
},
|
|
326351
|
+
}, hasOwnProperty15 = Object.prototype.hasOwnProperty, createTask2 = console.createTask ? console.createTask : function() {
|
|
326786
326352
|
return null;
|
|
326787
326353
|
};
|
|
326788
326354
|
deprecatedAPIs = {
|
|
@@ -326933,7 +326499,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
326933
326499
|
if (config2 != null) {
|
|
326934
326500
|
var JSCompiler_inline_result;
|
|
326935
326501
|
a: {
|
|
326936
|
-
if (
|
|
326502
|
+
if (hasOwnProperty15.call(config2, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(config2, "ref").get) && JSCompiler_inline_result.isReactWarning) {
|
|
326937
326503
|
JSCompiler_inline_result = false;
|
|
326938
326504
|
break a;
|
|
326939
326505
|
}
|
|
@@ -326942,7 +326508,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
326942
326508
|
JSCompiler_inline_result && (owner = getOwner());
|
|
326943
326509
|
hasValidKey(config2) && (checkKeyStringCoercion(config2.key), key = "" + config2.key);
|
|
326944
326510
|
for (propName in config2)
|
|
326945
|
-
!
|
|
326511
|
+
!hasOwnProperty15.call(config2, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config2.ref === undefined || (props[propName] = config2[propName]);
|
|
326946
326512
|
}
|
|
326947
326513
|
var propName = arguments.length - 2;
|
|
326948
326514
|
if (propName === 1)
|
|
@@ -326983,7 +326549,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
326983
326549
|
var key = null;
|
|
326984
326550
|
if (config2 != null)
|
|
326985
326551
|
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
|
-
|
|
326552
|
+
hasOwnProperty15.call(config2, propName) && propName !== "key" && propName !== "__self" && propName !== "__source" && (i3[propName] = config2[propName]);
|
|
326987
326553
|
var childrenLength = arguments.length - 2;
|
|
326988
326554
|
if (childrenLength === 1)
|
|
326989
326555
|
i3.children = children;
|
|
@@ -327559,7 +327125,7 @@ var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
|
327559
327125
|
return Error("react-stack-top-frame");
|
|
327560
327126
|
}
|
|
327561
327127
|
function hasValidKey(config2) {
|
|
327562
|
-
if (
|
|
327128
|
+
if (hasOwnProperty15.call(config2, "key")) {
|
|
327563
327129
|
var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
|
|
327564
327130
|
if (getter && getter.isReactWarning)
|
|
327565
327131
|
return false;
|
|
@@ -327635,7 +327201,7 @@ var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
|
327635
327201
|
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
327202
|
else
|
|
327637
327203
|
validateChildKeys(children);
|
|
327638
|
-
if (
|
|
327204
|
+
if (hasOwnProperty15.call(config2, "key")) {
|
|
327639
327205
|
children = getComponentNameFromType(type);
|
|
327640
327206
|
var keys2 = Object.keys(config2).filter(function(k) {
|
|
327641
327207
|
return k !== "key";
|
|
@@ -327666,7 +327232,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
327666
327232
|
function isValidElement(object4) {
|
|
327667
327233
|
return typeof object4 === "object" && object4 !== null && object4.$$typeof === REACT_ELEMENT_TYPE;
|
|
327668
327234
|
}
|
|
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,
|
|
327235
|
+
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
327236
|
return null;
|
|
327671
327237
|
};
|
|
327672
327238
|
React = {
|
|
@@ -327985,8 +327551,8 @@ function useDoublePress(setPending, onDoublePress, onFirstPress) {
|
|
|
327985
327551
|
};
|
|
327986
327552
|
}, [clearTimeoutSafe]);
|
|
327987
327553
|
return import_react3.useCallback(() => {
|
|
327988
|
-
const
|
|
327989
|
-
const timeSinceLastPress =
|
|
327554
|
+
const now = Date.now();
|
|
327555
|
+
const timeSinceLastPress = now - lastPressRef.current;
|
|
327990
327556
|
const isDoublePress = timeSinceLastPress <= DOUBLE_PRESS_TIMEOUT_MS && timeoutRef.current !== undefined;
|
|
327991
327557
|
if (isDoublePress) {
|
|
327992
327558
|
clearTimeoutSafe();
|
|
@@ -328001,7 +327567,7 @@ function useDoublePress(setPending, onDoublePress, onFirstPress) {
|
|
|
328001
327567
|
timeoutRef2.current = undefined;
|
|
328002
327568
|
}, DOUBLE_PRESS_TIMEOUT_MS, setPending, timeoutRef);
|
|
328003
327569
|
}
|
|
328004
|
-
lastPressRef.current =
|
|
327570
|
+
lastPressRef.current = now;
|
|
328005
327571
|
}, [setPending, onDoublePress, onFirstPress, clearTimeoutSafe]);
|
|
328006
327572
|
}
|
|
328007
327573
|
var import_react3, DOUBLE_PRESS_TIMEOUT_MS = 800;
|
|
@@ -328301,6 +327867,185 @@ var getAllProperties = (object4) => {
|
|
|
328301
327867
|
return properties;
|
|
328302
327868
|
};
|
|
328303
327869
|
|
|
327870
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/now.js
|
|
327871
|
+
var now = function() {
|
|
327872
|
+
return _root_default.Date.now();
|
|
327873
|
+
}, now_default;
|
|
327874
|
+
var init_now = __esm(() => {
|
|
327875
|
+
init__root();
|
|
327876
|
+
now_default = now;
|
|
327877
|
+
});
|
|
327878
|
+
|
|
327879
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_trimmedEndIndex.js
|
|
327880
|
+
function trimmedEndIndex(string5) {
|
|
327881
|
+
var index = string5.length;
|
|
327882
|
+
while (index-- && reWhitespace.test(string5.charAt(index))) {}
|
|
327883
|
+
return index;
|
|
327884
|
+
}
|
|
327885
|
+
var reWhitespace, _trimmedEndIndex_default;
|
|
327886
|
+
var init__trimmedEndIndex = __esm(() => {
|
|
327887
|
+
reWhitespace = /\s/;
|
|
327888
|
+
_trimmedEndIndex_default = trimmedEndIndex;
|
|
327889
|
+
});
|
|
327890
|
+
|
|
327891
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseTrim.js
|
|
327892
|
+
function baseTrim(string5) {
|
|
327893
|
+
return string5 ? string5.slice(0, _trimmedEndIndex_default(string5) + 1).replace(reTrimStart, "") : string5;
|
|
327894
|
+
}
|
|
327895
|
+
var reTrimStart, _baseTrim_default;
|
|
327896
|
+
var init__baseTrim = __esm(() => {
|
|
327897
|
+
init__trimmedEndIndex();
|
|
327898
|
+
reTrimStart = /^\s+/;
|
|
327899
|
+
_baseTrim_default = baseTrim;
|
|
327900
|
+
});
|
|
327901
|
+
|
|
327902
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/toNumber.js
|
|
327903
|
+
function toNumber(value) {
|
|
327904
|
+
if (typeof value == "number") {
|
|
327905
|
+
return value;
|
|
327906
|
+
}
|
|
327907
|
+
if (isSymbol_default(value)) {
|
|
327908
|
+
return NAN;
|
|
327909
|
+
}
|
|
327910
|
+
if (isObject_default(value)) {
|
|
327911
|
+
var other2 = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
327912
|
+
value = isObject_default(other2) ? other2 + "" : other2;
|
|
327913
|
+
}
|
|
327914
|
+
if (typeof value != "string") {
|
|
327915
|
+
return value === 0 ? value : +value;
|
|
327916
|
+
}
|
|
327917
|
+
value = _baseTrim_default(value);
|
|
327918
|
+
var isBinary = reIsBinary.test(value);
|
|
327919
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
327920
|
+
}
|
|
327921
|
+
var NAN, reIsBadHex, reIsBinary, reIsOctal, freeParseInt, toNumber_default;
|
|
327922
|
+
var init_toNumber = __esm(() => {
|
|
327923
|
+
init__baseTrim();
|
|
327924
|
+
init_isObject();
|
|
327925
|
+
init_isSymbol();
|
|
327926
|
+
NAN = 0 / 0;
|
|
327927
|
+
reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
327928
|
+
reIsBinary = /^0b[01]+$/i;
|
|
327929
|
+
reIsOctal = /^0o[0-7]+$/i;
|
|
327930
|
+
freeParseInt = parseInt;
|
|
327931
|
+
toNumber_default = toNumber;
|
|
327932
|
+
});
|
|
327933
|
+
|
|
327934
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/debounce.js
|
|
327935
|
+
function debounce(func, wait, options2) {
|
|
327936
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
327937
|
+
if (typeof func != "function") {
|
|
327938
|
+
throw new TypeError(FUNC_ERROR_TEXT3);
|
|
327939
|
+
}
|
|
327940
|
+
wait = toNumber_default(wait) || 0;
|
|
327941
|
+
if (isObject_default(options2)) {
|
|
327942
|
+
leading = !!options2.leading;
|
|
327943
|
+
maxing = "maxWait" in options2;
|
|
327944
|
+
maxWait = maxing ? nativeMax2(toNumber_default(options2.maxWait) || 0, wait) : maxWait;
|
|
327945
|
+
trailing = "trailing" in options2 ? !!options2.trailing : trailing;
|
|
327946
|
+
}
|
|
327947
|
+
function invokeFunc(time3) {
|
|
327948
|
+
var args = lastArgs, thisArg = lastThis;
|
|
327949
|
+
lastArgs = lastThis = undefined;
|
|
327950
|
+
lastInvokeTime = time3;
|
|
327951
|
+
result = func.apply(thisArg, args);
|
|
327952
|
+
return result;
|
|
327953
|
+
}
|
|
327954
|
+
function leadingEdge(time3) {
|
|
327955
|
+
lastInvokeTime = time3;
|
|
327956
|
+
timerId = setTimeout(timerExpired, wait);
|
|
327957
|
+
return leading ? invokeFunc(time3) : result;
|
|
327958
|
+
}
|
|
327959
|
+
function remainingWait(time3) {
|
|
327960
|
+
var timeSinceLastCall = time3 - lastCallTime, timeSinceLastInvoke = time3 - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
327961
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
327962
|
+
}
|
|
327963
|
+
function shouldInvoke(time3) {
|
|
327964
|
+
var timeSinceLastCall = time3 - lastCallTime, timeSinceLastInvoke = time3 - lastInvokeTime;
|
|
327965
|
+
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
327966
|
+
}
|
|
327967
|
+
function timerExpired() {
|
|
327968
|
+
var time3 = now_default();
|
|
327969
|
+
if (shouldInvoke(time3)) {
|
|
327970
|
+
return trailingEdge(time3);
|
|
327971
|
+
}
|
|
327972
|
+
timerId = setTimeout(timerExpired, remainingWait(time3));
|
|
327973
|
+
}
|
|
327974
|
+
function trailingEdge(time3) {
|
|
327975
|
+
timerId = undefined;
|
|
327976
|
+
if (trailing && lastArgs) {
|
|
327977
|
+
return invokeFunc(time3);
|
|
327978
|
+
}
|
|
327979
|
+
lastArgs = lastThis = undefined;
|
|
327980
|
+
return result;
|
|
327981
|
+
}
|
|
327982
|
+
function cancel() {
|
|
327983
|
+
if (timerId !== undefined) {
|
|
327984
|
+
clearTimeout(timerId);
|
|
327985
|
+
}
|
|
327986
|
+
lastInvokeTime = 0;
|
|
327987
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
327988
|
+
}
|
|
327989
|
+
function flush() {
|
|
327990
|
+
return timerId === undefined ? result : trailingEdge(now_default());
|
|
327991
|
+
}
|
|
327992
|
+
function debounced() {
|
|
327993
|
+
var time3 = now_default(), isInvoking = shouldInvoke(time3);
|
|
327994
|
+
lastArgs = arguments;
|
|
327995
|
+
lastThis = this;
|
|
327996
|
+
lastCallTime = time3;
|
|
327997
|
+
if (isInvoking) {
|
|
327998
|
+
if (timerId === undefined) {
|
|
327999
|
+
return leadingEdge(lastCallTime);
|
|
328000
|
+
}
|
|
328001
|
+
if (maxing) {
|
|
328002
|
+
clearTimeout(timerId);
|
|
328003
|
+
timerId = setTimeout(timerExpired, wait);
|
|
328004
|
+
return invokeFunc(lastCallTime);
|
|
328005
|
+
}
|
|
328006
|
+
}
|
|
328007
|
+
if (timerId === undefined) {
|
|
328008
|
+
timerId = setTimeout(timerExpired, wait);
|
|
328009
|
+
}
|
|
328010
|
+
return result;
|
|
328011
|
+
}
|
|
328012
|
+
debounced.cancel = cancel;
|
|
328013
|
+
debounced.flush = flush;
|
|
328014
|
+
return debounced;
|
|
328015
|
+
}
|
|
328016
|
+
var FUNC_ERROR_TEXT3 = "Expected a function", nativeMax2, nativeMin, debounce_default;
|
|
328017
|
+
var init_debounce = __esm(() => {
|
|
328018
|
+
init_isObject();
|
|
328019
|
+
init_now();
|
|
328020
|
+
init_toNumber();
|
|
328021
|
+
nativeMax2 = Math.max;
|
|
328022
|
+
nativeMin = Math.min;
|
|
328023
|
+
debounce_default = debounce;
|
|
328024
|
+
});
|
|
328025
|
+
|
|
328026
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/throttle.js
|
|
328027
|
+
function throttle2(func, wait, options2) {
|
|
328028
|
+
var leading = true, trailing = true;
|
|
328029
|
+
if (typeof func != "function") {
|
|
328030
|
+
throw new TypeError(FUNC_ERROR_TEXT4);
|
|
328031
|
+
}
|
|
328032
|
+
if (isObject_default(options2)) {
|
|
328033
|
+
leading = "leading" in options2 ? !!options2.leading : leading;
|
|
328034
|
+
trailing = "trailing" in options2 ? !!options2.trailing : trailing;
|
|
328035
|
+
}
|
|
328036
|
+
return debounce_default(func, wait, {
|
|
328037
|
+
leading,
|
|
328038
|
+
maxWait: wait,
|
|
328039
|
+
trailing
|
|
328040
|
+
});
|
|
328041
|
+
}
|
|
328042
|
+
var FUNC_ERROR_TEXT4 = "Expected a function", throttle_default2;
|
|
328043
|
+
var init_throttle2 = __esm(() => {
|
|
328044
|
+
init_debounce();
|
|
328045
|
+
init_isObject();
|
|
328046
|
+
throttle_default2 = throttle2;
|
|
328047
|
+
});
|
|
328048
|
+
|
|
328304
328049
|
// node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
|
|
328305
328050
|
var require_react_reconciler_constants_development = __commonJS((exports) => {
|
|
328306
328051
|
exports.ConcurrentRoot = 1, exports.ContinuousEventPriority = 8, exports.DefaultEventPriority = 32, exports.DiscreteEventPriority = 2, exports.IdleEventPriority = 268435456, exports.LegacyRoot = 0, exports.NoEventPriority = 0;
|
|
@@ -329555,7 +329300,7 @@ function layoutNode(node, availableWidth, availableHeight, widthMode, heightMode
|
|
|
329555
329300
|
layoutAbsoluteChild(node, c6, node.layout.width, node.layout.height, pad, bor);
|
|
329556
329301
|
}
|
|
329557
329302
|
}
|
|
329558
|
-
function layoutAbsoluteChild(
|
|
329303
|
+
function layoutAbsoluteChild(parent, child, parentWidth, parentHeight, pad, bor) {
|
|
329559
329304
|
const cs = child.style;
|
|
329560
329305
|
const posLeft = resolveEdgeRaw(cs.position, EDGE_LEFT);
|
|
329561
329306
|
const posRight = resolveEdgeRaw(cs.position, EDGE_RIGHT);
|
|
@@ -329580,11 +329325,11 @@ function layoutAbsoluteChild(parent2, child, parentWidth, parentHeight, pad, bor
|
|
|
329580
329325
|
const mT = resolveEdge(cs.margin, EDGE_TOP, parentWidth);
|
|
329581
329326
|
const mR = resolveEdge(cs.margin, EDGE_RIGHT, parentWidth);
|
|
329582
329327
|
const mB = resolveEdge(cs.margin, EDGE_BOTTOM, parentWidth);
|
|
329583
|
-
const mainAxis =
|
|
329328
|
+
const mainAxis = parent.style.flexDirection;
|
|
329584
329329
|
const reversed = isReverse(mainAxis);
|
|
329585
329330
|
const mainRow = isRow(mainAxis);
|
|
329586
|
-
const wrapReverse =
|
|
329587
|
-
const alignment = cs.alignSelf === Align.Auto ?
|
|
329331
|
+
const wrapReverse = parent.style.flexWrap === Wrap.WrapReverse;
|
|
329332
|
+
const alignment = cs.alignSelf === Align.Auto ? parent.style.alignItems : cs.alignSelf;
|
|
329588
329333
|
let left;
|
|
329589
329334
|
if (isDefined(rLeft)) {
|
|
329590
329335
|
left = bor[0] + rLeft + mL;
|
|
@@ -329593,7 +329338,7 @@ function layoutAbsoluteChild(parent2, child, parentWidth, parentHeight, pad, bor
|
|
|
329593
329338
|
} else if (mainRow) {
|
|
329594
329339
|
const lead = pad[0] + bor[0];
|
|
329595
329340
|
const trail = parentWidth - pad[2] - bor[2];
|
|
329596
|
-
left = reversed ? trail - child.layout.width - mR : justifyAbsolute(
|
|
329341
|
+
left = reversed ? trail - child.layout.width - mR : justifyAbsolute(parent.style.justifyContent, lead, trail, child.layout.width) + mL;
|
|
329597
329342
|
} else {
|
|
329598
329343
|
left = alignAbsolute(alignment, pad[0] + bor[0], parentWidth - pad[2] - bor[2], child.layout.width, wrapReverse) + mL;
|
|
329599
329344
|
}
|
|
@@ -329607,7 +329352,7 @@ function layoutAbsoluteChild(parent2, child, parentWidth, parentHeight, pad, bor
|
|
|
329607
329352
|
} else {
|
|
329608
329353
|
const lead = pad[1] + bor[1];
|
|
329609
329354
|
const trail = parentHeight - pad[3] - bor[3];
|
|
329610
|
-
top = reversed ? trail - child.layout.height - mB : justifyAbsolute(
|
|
329355
|
+
top = reversed ? trail - child.layout.height - mB : justifyAbsolute(parent.style.justifyContent, lead, trail, child.layout.height) + mT;
|
|
329611
329356
|
}
|
|
329612
329357
|
child.layout.left = left;
|
|
329613
329358
|
child.layout.top = top;
|
|
@@ -329792,8 +329537,8 @@ function isStretchAlign(child) {
|
|
|
329792
329537
|
const align = child.style.alignSelf === Align.Auto ? p.style.alignItems : child.style.alignSelf;
|
|
329793
329538
|
return align === Align.Stretch;
|
|
329794
329539
|
}
|
|
329795
|
-
function resolveChildAlign(
|
|
329796
|
-
return child.style.alignSelf === Align.Auto ?
|
|
329540
|
+
function resolveChildAlign(parent, child) {
|
|
329541
|
+
return child.style.alignSelf === Align.Auto ? parent.style.alignItems : child.style.alignSelf;
|
|
329797
329542
|
}
|
|
329798
329543
|
function calculateBaseline(node) {
|
|
329799
329544
|
let baselineChild = null;
|
|
@@ -331004,9 +330749,9 @@ var require_scheduler_development = __commonJS((exports) => {
|
|
|
331004
330749
|
heap.push(node);
|
|
331005
330750
|
a:
|
|
331006
330751
|
for (;0 < index; ) {
|
|
331007
|
-
var parentIndex = index - 1 >>> 1,
|
|
331008
|
-
if (0 < compare(
|
|
331009
|
-
heap[parentIndex] = node, heap[index] =
|
|
330752
|
+
var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
|
|
330753
|
+
if (0 < compare(parent, node))
|
|
330754
|
+
heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
|
|
331010
330755
|
else
|
|
331011
330756
|
break a;
|
|
331012
330757
|
}
|
|
@@ -331379,9 +331124,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
331379
331124
|
throw Error("Unable to find node on an unmounted component.");
|
|
331380
331125
|
return a2.stateNode.current === a2 ? fiber : alternate;
|
|
331381
331126
|
}
|
|
331382
|
-
function findCurrentHostFiber(
|
|
331383
|
-
|
|
331384
|
-
return
|
|
331127
|
+
function findCurrentHostFiber(parent) {
|
|
331128
|
+
parent = findCurrentFiberUsingSlowPath(parent);
|
|
331129
|
+
return parent !== null ? findCurrentHostFiberImpl(parent) : null;
|
|
331385
331130
|
}
|
|
331386
331131
|
function findCurrentHostFiberImpl(node) {
|
|
331387
331132
|
var tag2 = node.tag;
|
|
@@ -331819,7 +331564,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
331819
331564
|
}
|
|
331820
331565
|
function addObjectToProperties(object4, properties, indent, prefix2) {
|
|
331821
331566
|
for (var key in object4)
|
|
331822
|
-
|
|
331567
|
+
hasOwnProperty15.call(object4, key) && key[0] !== "_" && addValueToProperties(key, object4[key], properties, indent, prefix2);
|
|
331823
331568
|
}
|
|
331824
331569
|
function addValueToProperties(propertyName, value, properties, indent, prefix2) {
|
|
331825
331570
|
switch (typeof value) {
|
|
@@ -331847,7 +331592,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
331847
331592
|
key !== null && addValueToProperties("key", key, properties, indent + 1, prefix2);
|
|
331848
331593
|
propertyName = false;
|
|
331849
331594
|
for (var propKey in value)
|
|
331850
|
-
propKey === "children" ? value.children != null && (!isArrayImpl(value.children) || 0 < value.children.length) && (propertyName = true) :
|
|
331595
|
+
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
331596
|
properties.push([
|
|
331852
331597
|
"",
|
|
331853
331598
|
propertyName ? ">…</" + typeName + ">" : "/>"
|
|
@@ -332941,15 +332686,15 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
332941
332686
|
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
332687
|
pop(valueCursor, providerFiber);
|
|
332943
332688
|
}
|
|
332944
|
-
function scheduleContextWorkOnParentPath(
|
|
332945
|
-
for (;
|
|
332946
|
-
var alternate =
|
|
332947
|
-
(
|
|
332948
|
-
if (
|
|
332689
|
+
function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot) {
|
|
332690
|
+
for (;parent !== null; ) {
|
|
332691
|
+
var alternate = parent.alternate;
|
|
332692
|
+
(parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, alternate !== null && (alternate.childLanes |= renderLanes2)) : alternate !== null && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2);
|
|
332693
|
+
if (parent === propagationRoot)
|
|
332949
332694
|
break;
|
|
332950
|
-
|
|
332695
|
+
parent = parent.return;
|
|
332951
332696
|
}
|
|
332952
|
-
|
|
332697
|
+
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
332698
|
}
|
|
332954
332699
|
function propagateContextChanges(workInProgress2, contexts, renderLanes2, forcePropagateEntireTree) {
|
|
332955
332700
|
var fiber = workInProgress2.child;
|
|
@@ -333006,29 +332751,29 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
333006
332751
|
}
|
|
333007
332752
|
function propagateParentContextChanges(current2, workInProgress2, renderLanes2, forcePropagateEntireTree) {
|
|
333008
332753
|
current2 = null;
|
|
333009
|
-
for (var
|
|
332754
|
+
for (var parent = workInProgress2, isInsidePropagationBailout = false;parent !== null; ) {
|
|
333010
332755
|
if (!isInsidePropagationBailout) {
|
|
333011
|
-
if ((
|
|
332756
|
+
if ((parent.flags & 524288) !== 0)
|
|
333012
332757
|
isInsidePropagationBailout = true;
|
|
333013
|
-
else if ((
|
|
332758
|
+
else if ((parent.flags & 262144) !== 0)
|
|
333014
332759
|
break;
|
|
333015
332760
|
}
|
|
333016
|
-
if (
|
|
333017
|
-
var currentParent =
|
|
332761
|
+
if (parent.tag === 10) {
|
|
332762
|
+
var currentParent = parent.alternate;
|
|
333018
332763
|
if (currentParent === null)
|
|
333019
332764
|
throw Error("Should have a current fiber. This is a bug in React.");
|
|
333020
332765
|
currentParent = currentParent.memoizedProps;
|
|
333021
332766
|
if (currentParent !== null) {
|
|
333022
|
-
var context4 =
|
|
333023
|
-
objectIs(
|
|
332767
|
+
var context4 = parent.type;
|
|
332768
|
+
objectIs(parent.pendingProps.value, currentParent.value) || (current2 !== null ? current2.push(context4) : current2 = [context4]);
|
|
333024
332769
|
}
|
|
333025
|
-
} else if (
|
|
333026
|
-
currentParent =
|
|
332770
|
+
} else if (parent === hostTransitionProviderCursor.current) {
|
|
332771
|
+
currentParent = parent.alternate;
|
|
333027
332772
|
if (currentParent === null)
|
|
333028
332773
|
throw Error("Should have a current fiber. This is a bug in React.");
|
|
333029
|
-
currentParent.memoizedState.memoizedState !==
|
|
332774
|
+
currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (current2 !== null ? current2.push(HostTransitionContext) : current2 = [HostTransitionContext]);
|
|
333030
332775
|
}
|
|
333031
|
-
|
|
332776
|
+
parent = parent.return;
|
|
333032
332777
|
}
|
|
333033
332778
|
current2 !== null && propagateContextChanges(workInProgress2, current2, renderLanes2, forcePropagateEntireTree);
|
|
333034
332779
|
workInProgress2.flags |= 262144;
|
|
@@ -333424,7 +333169,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
333424
333169
|
return false;
|
|
333425
333170
|
for (keysB = 0;keysB < keysA.length; keysB++) {
|
|
333426
333171
|
var currentKey = keysA[keysB];
|
|
333427
|
-
if (!
|
|
333172
|
+
if (!hasOwnProperty15.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
|
|
333428
333173
|
return false;
|
|
333429
333174
|
}
|
|
333430
333175
|
return true;
|
|
@@ -334015,17 +333760,17 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
334015
333760
|
sourceFiber.lanes |= lane;
|
|
334016
333761
|
var alternate = sourceFiber.alternate;
|
|
334017
333762
|
alternate !== null && (alternate.lanes |= lane);
|
|
334018
|
-
for (var isHidden = false,
|
|
334019
|
-
|
|
334020
|
-
return sourceFiber.tag === 3 ? (
|
|
333763
|
+
for (var isHidden = false, parent = sourceFiber.return;parent !== null; )
|
|
333764
|
+
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;
|
|
333765
|
+
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
333766
|
}
|
|
334022
333767
|
function getRootForUpdatedFiber(sourceFiber) {
|
|
334023
333768
|
if (nestedUpdateCount > NESTED_UPDATE_LIMIT)
|
|
334024
333769
|
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
333770
|
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
333771
|
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 =
|
|
333772
|
+
for (var node = sourceFiber, parent = node.return;parent !== null; )
|
|
333773
|
+
node.alternate === null && (node.flags & 4098) !== 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = node.return;
|
|
334029
333774
|
return node.tag === 3 ? node.stateNode : null;
|
|
334030
333775
|
}
|
|
334031
333776
|
function initializeUpdateQueue(fiber) {
|
|
@@ -336437,11 +336182,11 @@ https://react.dev/link/unsafe-component-lifecycles`, _instance, newApiName, stat
|
|
|
336437
336182
|
}
|
|
336438
336183
|
return false;
|
|
336439
336184
|
}
|
|
336440
|
-
function appendAllChildren(
|
|
336185
|
+
function appendAllChildren(parent, workInProgress2, needsVisibilityToggle, isHidden) {
|
|
336441
336186
|
if (supportsMutation)
|
|
336442
336187
|
for (needsVisibilityToggle = workInProgress2.child;needsVisibilityToggle !== null; ) {
|
|
336443
336188
|
if (needsVisibilityToggle.tag === 5 || needsVisibilityToggle.tag === 6)
|
|
336444
|
-
appendInitialChild(
|
|
336189
|
+
appendInitialChild(parent, needsVisibilityToggle.stateNode);
|
|
336445
336190
|
else if (!(needsVisibilityToggle.tag === 4 || supportsSingletons && needsVisibilityToggle.tag === 27) && needsVisibilityToggle.child !== null) {
|
|
336446
336191
|
needsVisibilityToggle.child.return = needsVisibilityToggle;
|
|
336447
336192
|
needsVisibilityToggle = needsVisibilityToggle.child;
|
|
@@ -336462,12 +336207,12 @@ https://react.dev/link/unsafe-component-lifecycles`, _instance, newApiName, stat
|
|
|
336462
336207
|
if (_node.tag === 5) {
|
|
336463
336208
|
var instance = _node.stateNode;
|
|
336464
336209
|
needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance, _node.type, _node.memoizedProps));
|
|
336465
|
-
appendInitialChild(
|
|
336210
|
+
appendInitialChild(parent, instance);
|
|
336466
336211
|
} else if (_node.tag === 6)
|
|
336467
|
-
instance = _node.stateNode, needsVisibilityToggle && isHidden && (instance = cloneHiddenTextInstance(instance, _node.memoizedProps)), appendInitialChild(
|
|
336212
|
+
instance = _node.stateNode, needsVisibilityToggle && isHidden && (instance = cloneHiddenTextInstance(instance, _node.memoizedProps)), appendInitialChild(parent, instance);
|
|
336468
336213
|
else if (_node.tag !== 4) {
|
|
336469
336214
|
if (_node.tag === 22 && _node.memoizedState !== null)
|
|
336470
|
-
instance = _node.child, instance !== null && (instance.return = _node), appendAllChildren(
|
|
336215
|
+
instance = _node.child, instance !== null && (instance.return = _node), appendAllChildren(parent, _node, true, true);
|
|
336471
336216
|
else if (_node.child !== null) {
|
|
336472
336217
|
_node.child.return = _node;
|
|
336473
336218
|
_node = _node.child;
|
|
@@ -337168,21 +336913,21 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337168
336913
|
return fiber.stateNode;
|
|
337169
336914
|
}
|
|
337170
336915
|
}
|
|
337171
|
-
function insertOrAppendPlacementNodeIntoContainer(node, before,
|
|
336916
|
+
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
337172
336917
|
var tag2 = node.tag;
|
|
337173
336918
|
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,
|
|
336919
|
+
node = node.stateNode, before ? insertInContainerBefore(parent, node, before) : appendChildToContainer(parent, node);
|
|
336920
|
+
else if (tag2 !== 4 && (supportsSingletons && tag2 === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, node !== null))
|
|
336921
|
+
for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;node !== null; )
|
|
336922
|
+
insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;
|
|
337178
336923
|
}
|
|
337179
|
-
function insertOrAppendPlacementNode(node, before,
|
|
336924
|
+
function insertOrAppendPlacementNode(node, before, parent) {
|
|
337180
336925
|
var tag2 = node.tag;
|
|
337181
336926
|
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,
|
|
336927
|
+
node = node.stateNode, before ? insertBefore(parent, node, before) : appendChild(parent, node);
|
|
336928
|
+
else if (tag2 !== 4 && (supportsSingletons && tag2 === 27 && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, node !== null))
|
|
336929
|
+
for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling;node !== null; )
|
|
336930
|
+
insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
|
|
337186
336931
|
}
|
|
337187
336932
|
function commitPlacement(finishedWork) {
|
|
337188
336933
|
for (var hostParentFiber, parentFiber = finishedWork.return;parentFiber !== null; ) {
|
|
@@ -337412,9 +337157,9 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337412
337157
|
fiber.stateNode = null;
|
|
337413
337158
|
fiber.updateQueue = null;
|
|
337414
337159
|
}
|
|
337415
|
-
function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor,
|
|
337416
|
-
for (
|
|
337417
|
-
commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor,
|
|
337160
|
+
function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) {
|
|
337161
|
+
for (parent = parent.child;parent !== null; )
|
|
337162
|
+
commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling;
|
|
337418
337163
|
}
|
|
337419
337164
|
function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) {
|
|
337420
337165
|
if (injectedHook && typeof injectedHook.onCommitFiberUnmount === "function")
|
|
@@ -337551,30 +337296,30 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337551
337296
|
for (var i3 = 0;i3 < deletions.length; i3++) {
|
|
337552
337297
|
var root2 = root$jscomp$0, returnFiber = parentFiber, deletedFiber = deletions[i3], prevEffectStart = pushComponentEffectStart();
|
|
337553
337298
|
if (supportsMutation) {
|
|
337554
|
-
var
|
|
337299
|
+
var parent = returnFiber;
|
|
337555
337300
|
a:
|
|
337556
|
-
for (;
|
|
337557
|
-
switch (
|
|
337301
|
+
for (;parent !== null; ) {
|
|
337302
|
+
switch (parent.tag) {
|
|
337558
337303
|
case 27:
|
|
337559
337304
|
if (supportsSingletons) {
|
|
337560
|
-
if (isSingletonScope(
|
|
337561
|
-
hostParent =
|
|
337305
|
+
if (isSingletonScope(parent.type)) {
|
|
337306
|
+
hostParent = parent.stateNode;
|
|
337562
337307
|
hostParentIsContainer = false;
|
|
337563
337308
|
break a;
|
|
337564
337309
|
}
|
|
337565
337310
|
break;
|
|
337566
337311
|
}
|
|
337567
337312
|
case 5:
|
|
337568
|
-
hostParent =
|
|
337313
|
+
hostParent = parent.stateNode;
|
|
337569
337314
|
hostParentIsContainer = false;
|
|
337570
337315
|
break a;
|
|
337571
337316
|
case 3:
|
|
337572
337317
|
case 4:
|
|
337573
|
-
hostParent =
|
|
337318
|
+
hostParent = parent.stateNode.containerInfo;
|
|
337574
337319
|
hostParentIsContainer = true;
|
|
337575
337320
|
break a;
|
|
337576
337321
|
}
|
|
337577
|
-
|
|
337322
|
+
parent = parent.return;
|
|
337578
337323
|
}
|
|
337579
337324
|
if (hostParent === null)
|
|
337580
337325
|
throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
|
|
@@ -337724,7 +337469,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337724
337469
|
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
|
|
337725
337470
|
wasHidden && !hoistableRoot && !prevOffscreenSubtreeIsHidden && !prevOffscreenSubtreeWasHidden && (finishedWork.mode & 2) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && 0.05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(finishedWork, componentEffectStartTime, componentEffectEndTime);
|
|
337726
337471
|
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))
|
|
337472
|
+
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
337473
|
a:
|
|
337729
337474
|
if (current2 = null, supportsMutation)
|
|
337730
337475
|
for (root2 = finishedWork;; ) {
|
|
@@ -337774,6 +337519,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
337774
337519
|
root2.sibling.return = root2.return;
|
|
337775
337520
|
root2 = root2.sibling;
|
|
337776
337521
|
}
|
|
337522
|
+
}
|
|
337777
337523
|
flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (current2 = flags.retryQueue, current2 !== null && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current2))));
|
|
337778
337524
|
break;
|
|
337779
337525
|
case 19:
|
|
@@ -339899,7 +339645,7 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
339899
339645
|
return;
|
|
339900
339646
|
}
|
|
339901
339647
|
console.error(error41);
|
|
339902
|
-
},
|
|
339648
|
+
}, 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
339649
|
color: "primary",
|
|
339904
339650
|
properties: null,
|
|
339905
339651
|
tooltipText: "",
|
|
@@ -342016,12 +341762,12 @@ var init_measure_text = __esm(() => {
|
|
|
342016
341762
|
});
|
|
342017
341763
|
|
|
342018
341764
|
// src/cli/ink/node-cache.ts
|
|
342019
|
-
function addPendingClear(
|
|
342020
|
-
const existing = pendingClears.get(
|
|
341765
|
+
function addPendingClear(parent, rect, isAbsolute23) {
|
|
341766
|
+
const existing = pendingClears.get(parent);
|
|
342021
341767
|
if (existing) {
|
|
342022
341768
|
existing.push(rect);
|
|
342023
341769
|
} else {
|
|
342024
|
-
pendingClears.set(
|
|
341770
|
+
pendingClears.set(parent, [rect]);
|
|
342025
341771
|
}
|
|
342026
341772
|
if (isAbsolute23) {
|
|
342027
341773
|
absoluteNodeRemoved = true;
|
|
@@ -342401,21 +342147,21 @@ var init_wrap_text = __esm(() => {
|
|
|
342401
342147
|
});
|
|
342402
342148
|
|
|
342403
342149
|
// src/cli/ink/dom.ts
|
|
342404
|
-
function collectRemovedRects(
|
|
342150
|
+
function collectRemovedRects(parent, removed, underAbsolute = false) {
|
|
342405
342151
|
if (!removed || removed.nodeName === "#text")
|
|
342406
342152
|
return;
|
|
342407
342153
|
const elem = removed;
|
|
342408
342154
|
const isAbsolute23 = underAbsolute || elem.style?.position === "absolute";
|
|
342409
342155
|
const cached3 = nodeCache.get(elem);
|
|
342410
342156
|
if (cached3) {
|
|
342411
|
-
addPendingClear(
|
|
342157
|
+
addPendingClear(parent, cached3, isAbsolute23);
|
|
342412
342158
|
nodeCache.delete(elem);
|
|
342413
342159
|
}
|
|
342414
342160
|
const childNodes = Array.isArray(elem.childNodes) ? [...elem.childNodes] : [];
|
|
342415
342161
|
for (const child of childNodes) {
|
|
342416
342162
|
if (!child)
|
|
342417
342163
|
continue;
|
|
342418
|
-
collectRemovedRects(
|
|
342164
|
+
collectRemovedRects(parent, child, isAbsolute23);
|
|
342419
342165
|
}
|
|
342420
342166
|
}
|
|
342421
342167
|
function stylesEqual(a2, b) {
|
|
@@ -347665,14 +347411,14 @@ var init_widest_line = __esm(() => {
|
|
|
347665
347411
|
});
|
|
347666
347412
|
|
|
347667
347413
|
// src/cli/ink/output.ts
|
|
347668
|
-
function intersectClip(
|
|
347669
|
-
if (!
|
|
347414
|
+
function intersectClip(parent, child) {
|
|
347415
|
+
if (!parent)
|
|
347670
347416
|
return child;
|
|
347671
347417
|
return {
|
|
347672
|
-
x1: maxDefined(
|
|
347673
|
-
x2: minDefined(
|
|
347674
|
-
y1: maxDefined(
|
|
347675
|
-
y2: minDefined(
|
|
347418
|
+
x1: maxDefined(parent.x1, child.x1),
|
|
347419
|
+
x2: minDefined(parent.x2, child.x2),
|
|
347420
|
+
y1: maxDefined(parent.y1, child.y1),
|
|
347421
|
+
y2: minDefined(parent.y2, child.y2)
|
|
347676
347422
|
};
|
|
347677
347423
|
}
|
|
347678
347424
|
function maxDefined(a2, b) {
|
|
@@ -348900,11 +348646,11 @@ function clipsBothAxes(node) {
|
|
|
348900
348646
|
return (ox === "hidden" || ox === "scroll") && (oy === "hidden" || oy === "scroll");
|
|
348901
348647
|
}
|
|
348902
348648
|
function siblingSharesY(node, yogaNode) {
|
|
348903
|
-
const
|
|
348904
|
-
if (!
|
|
348649
|
+
const parent = node.parentNode;
|
|
348650
|
+
if (!parent)
|
|
348905
348651
|
return false;
|
|
348906
348652
|
const myTop = yogaNode.getComputedTop();
|
|
348907
|
-
const siblings =
|
|
348653
|
+
const siblings = parent.childNodes;
|
|
348908
348654
|
const idx = siblings.indexOf(node);
|
|
348909
348655
|
for (let i3 = idx + 1;i3 < siblings.length; i3++) {
|
|
348910
348656
|
const sibling = siblings[i3];
|
|
@@ -352481,16 +352227,16 @@ function useTerminalViewport() {
|
|
|
352481
352227
|
const height = element.yogaNode.getComputedHeight();
|
|
352482
352228
|
const rows = terminalSize.rows;
|
|
352483
352229
|
let absoluteTop = element.yogaNode.getComputedTop();
|
|
352484
|
-
let
|
|
352230
|
+
let parent = element.parentNode;
|
|
352485
352231
|
let root2 = element.yogaNode;
|
|
352486
|
-
while (
|
|
352487
|
-
if (
|
|
352488
|
-
absoluteTop +=
|
|
352489
|
-
root2 =
|
|
352232
|
+
while (parent) {
|
|
352233
|
+
if (parent.yogaNode) {
|
|
352234
|
+
absoluteTop += parent.yogaNode.getComputedTop();
|
|
352235
|
+
root2 = parent.yogaNode;
|
|
352490
352236
|
}
|
|
352491
|
-
if (
|
|
352492
|
-
absoluteTop -=
|
|
352493
|
-
|
|
352237
|
+
if (parent.scrollTop)
|
|
352238
|
+
absoluteTop -= parent.scrollTop;
|
|
352239
|
+
parent = parent.parentNode;
|
|
352494
352240
|
}
|
|
352495
352241
|
const screenHeight = root2.getComputedHeight();
|
|
352496
352242
|
const bottom = absoluteTop + height;
|
|
@@ -352559,8 +352305,8 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
352559
352305
|
var freeGlobal2 = typeof global == "object" && global && global.Object === Object && global;
|
|
352560
352306
|
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
352561
352307
|
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
352562
|
-
var
|
|
352563
|
-
var objectToString4 =
|
|
352308
|
+
var objectProto17 = Object.prototype;
|
|
352309
|
+
var objectToString4 = objectProto17.toString;
|
|
352564
352310
|
var nativeMax3 = Math.max;
|
|
352565
352311
|
var nativeMin2 = Math.min;
|
|
352566
352312
|
var now2 = function() {
|
|
@@ -364266,7 +364012,7 @@ function applyMarkdown(content, theme, highlight = null) {
|
|
|
364266
364012
|
configureMarked();
|
|
364267
364013
|
return marked.lexer(stripPromptXMLTags(content)).map((_) => formatToken(_, theme, 0, null, null, highlight)).join("").trim();
|
|
364268
364014
|
}
|
|
364269
|
-
function formatToken(token, theme, listDepth = 0, orderedListNumber = null,
|
|
364015
|
+
function formatToken(token, theme, listDepth = 0, orderedListNumber = null, parent = null, highlight = null) {
|
|
364270
364016
|
switch (token.type) {
|
|
364271
364017
|
case "blockquote": {
|
|
364272
364018
|
const inner = (token.tokens ?? []).map((_) => formatToken(_, theme, 0, null, null, highlight)).join("");
|
|
@@ -364291,9 +364037,9 @@ function formatToken(token, theme, listDepth = 0, orderedListNumber = null, pare
|
|
|
364291
364037
|
return color("permission", theme)(token.text);
|
|
364292
364038
|
}
|
|
364293
364039
|
case "em":
|
|
364294
|
-
return source_default.italic((token.tokens ?? []).map((_) => formatToken(_, theme, 0, null,
|
|
364040
|
+
return source_default.italic((token.tokens ?? []).map((_) => formatToken(_, theme, 0, null, parent, highlight)).join(""));
|
|
364295
364041
|
case "strong":
|
|
364296
|
-
return source_default.bold((token.tokens ?? []).map((_) => formatToken(_, theme, 0, null,
|
|
364042
|
+
return source_default.bold((token.tokens ?? []).map((_) => formatToken(_, theme, 0, null, parent, highlight)).join(""));
|
|
364297
364043
|
case "heading":
|
|
364298
364044
|
switch (token.depth) {
|
|
364299
364045
|
case 1:
|
|
@@ -364331,10 +364077,10 @@ function formatToken(token, theme, listDepth = 0, orderedListNumber = null, pare
|
|
|
364331
364077
|
case "br":
|
|
364332
364078
|
return EOL4;
|
|
364333
364079
|
case "text":
|
|
364334
|
-
if (
|
|
364080
|
+
if (parent?.type === "link") {
|
|
364335
364081
|
return token.text;
|
|
364336
364082
|
}
|
|
364337
|
-
if (
|
|
364083
|
+
if (parent?.type === "list_item") {
|
|
364338
364084
|
return `${orderedListNumber === null ? "-" : getListNumber(listDepth, orderedListNumber) + "."} ${token.tokens ? token.tokens.map((_) => formatToken(_, theme, listDepth, orderedListNumber, token, highlight)).join("") : linkifyIssueReferences(token.text)}${EOL4}`;
|
|
364339
364085
|
}
|
|
364340
364086
|
return linkifyIssueReferences(token.text);
|
|
@@ -366359,19 +366105,19 @@ var init_trustedDevice = __esm(() => {
|
|
|
366359
366105
|
});
|
|
366360
366106
|
});
|
|
366361
366107
|
|
|
366362
|
-
// missing-module-stub:/
|
|
366108
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/replBridge/trustedDevice.js
|
|
366363
366109
|
var noop13 = () => null, clearTrustedDeviceTokenCache2;
|
|
366364
366110
|
var init_trustedDevice2 = __esm(() => {
|
|
366365
366111
|
clearTrustedDeviceTokenCache2 = noop13;
|
|
366366
366112
|
});
|
|
366367
366113
|
|
|
366368
|
-
// missing-module-stub:/
|
|
366114
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/analytics/growthbook.js
|
|
366369
366115
|
var noop14 = () => null, refreshGrowthBookAfterAuthChange2;
|
|
366370
366116
|
var init_growthbook = __esm(() => {
|
|
366371
366117
|
refreshGrowthBookAfterAuthChange2 = noop14;
|
|
366372
366118
|
});
|
|
366373
366119
|
|
|
366374
|
-
// missing-module-stub:/
|
|
366120
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/api/grove.js
|
|
366375
366121
|
var noop15 = () => null, getGroveNoticeConfig, getGroveSettings;
|
|
366376
366122
|
var init_grove = __esm(() => {
|
|
366377
366123
|
getGroveNoticeConfig = noop15;
|
|
@@ -366526,13 +366272,13 @@ var init_logoutActions = __esm(() => {
|
|
|
366526
366272
|
init_user();
|
|
366527
366273
|
});
|
|
366528
366274
|
|
|
366529
|
-
// missing-module-stub:/
|
|
366275
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/analytics/index.js
|
|
366530
366276
|
var noop16 = () => null, logEvent2;
|
|
366531
366277
|
var init_analytics = __esm(() => {
|
|
366532
366278
|
logEvent2 = noop16;
|
|
366533
366279
|
});
|
|
366534
366280
|
|
|
366535
|
-
// missing-module-stub:/
|
|
366281
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/providers/services/api/firstTokenDate.js
|
|
366536
366282
|
var noop17 = () => null, fetchAndStoreClaudeCodeFirstTokenDate;
|
|
366537
366283
|
var init_firstTokenDate = __esm(() => {
|
|
366538
366284
|
fetchAndStoreClaudeCodeFirstTokenDate = noop17;
|
|
@@ -366588,7 +366334,7 @@ var init_installTokens = __esm(() => {
|
|
|
366588
366334
|
init_debug();
|
|
366589
366335
|
});
|
|
366590
366336
|
|
|
366591
|
-
// missing-module-stub:/
|
|
366337
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/analytics/index.js
|
|
366592
366338
|
var noop18 = () => null, logEvent3;
|
|
366593
366339
|
var init_analytics2 = __esm(() => {
|
|
366594
366340
|
logEvent3 = noop18;
|
|
@@ -372370,7 +372116,7 @@ var init_extra_usage2 = __esm(() => {
|
|
|
372370
372116
|
};
|
|
372371
372117
|
});
|
|
372372
372118
|
|
|
372373
|
-
// missing-module-stub:/
|
|
372119
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/claudeai/claudeAiLimits.js
|
|
372374
372120
|
var noop20 = () => null, currentLimits3, statusListeners2;
|
|
372375
372121
|
var init_claudeAiLimits2 = __esm(() => {
|
|
372376
372122
|
currentLimits3 = noop20;
|
|
@@ -387638,7 +387384,7 @@ ${annotation.preview}`);
|
|
|
387638
387384
|
});
|
|
387639
387385
|
});
|
|
387640
387386
|
|
|
387641
|
-
// missing-module-stub:/
|
|
387387
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/capabilities/config.js
|
|
387642
387388
|
var noop21 = () => null, saveGlobalConfig2;
|
|
387643
387389
|
var init_config9 = __esm(() => {
|
|
387644
387390
|
saveGlobalConfig2 = noop21;
|
|
@@ -389126,7 +388872,7 @@ var require_NodeUtils = __commonJS((exports, module) => {
|
|
|
389126
388872
|
function escapeProcessingInstructionContent(rawContent) {
|
|
389127
388873
|
return rawContent.includes(">") ? rawContent.replaceAll(">", ">") : rawContent;
|
|
389128
388874
|
}
|
|
389129
|
-
function serializeOne(kid,
|
|
388875
|
+
function serializeOne(kid, parent) {
|
|
389130
388876
|
var s = "";
|
|
389131
388877
|
switch (kid.nodeType) {
|
|
389132
388878
|
case 1:
|
|
@@ -389157,11 +388903,11 @@ var require_NodeUtils = __commonJS((exports, module) => {
|
|
|
389157
388903
|
case 3:
|
|
389158
388904
|
case 4:
|
|
389159
388905
|
var parenttag;
|
|
389160
|
-
if (
|
|
389161
|
-
parenttag =
|
|
388906
|
+
if (parent.nodeType === 1 && parent.namespaceURI === NAMESPACE.HTML)
|
|
388907
|
+
parenttag = parent.tagName;
|
|
389162
388908
|
else
|
|
389163
388909
|
parenttag = "";
|
|
389164
|
-
if (hasRawContent[parenttag] || parenttag === "NOSCRIPT" &&
|
|
388910
|
+
if (hasRawContent[parenttag] || parenttag === "NOSCRIPT" && parent.ownerDocument._scripting_enabled) {
|
|
389165
388911
|
s += kid.data;
|
|
389166
388912
|
} else {
|
|
389167
388913
|
s += escape3(kid.data);
|
|
@@ -389241,18 +388987,18 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389241
388987
|
}
|
|
389242
388988
|
},
|
|
389243
388989
|
previousSibling: { get: function() {
|
|
389244
|
-
var
|
|
389245
|
-
if (!
|
|
388990
|
+
var parent = this.parentNode;
|
|
388991
|
+
if (!parent)
|
|
389246
388992
|
return null;
|
|
389247
|
-
if (this ===
|
|
388993
|
+
if (this === parent.firstChild)
|
|
389248
388994
|
return null;
|
|
389249
388995
|
return this._previousSibling;
|
|
389250
388996
|
} },
|
|
389251
388997
|
nextSibling: { get: function() {
|
|
389252
|
-
var
|
|
389253
|
-
if (!
|
|
388998
|
+
var parent = this.parentNode, next = this._nextSibling;
|
|
388999
|
+
if (!parent)
|
|
389254
389000
|
return null;
|
|
389255
|
-
if (next ===
|
|
389001
|
+
if (next === parent.firstChild)
|
|
389256
389002
|
return null;
|
|
389257
389003
|
return next;
|
|
389258
389004
|
} },
|
|
@@ -389277,10 +389023,10 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389277
389023
|
return sum;
|
|
389278
389024
|
} },
|
|
389279
389025
|
_ensureInsertValid: { value: function _ensureInsertValid(node, child, isPreinsert) {
|
|
389280
|
-
var
|
|
389026
|
+
var parent = this, i3, kid;
|
|
389281
389027
|
if (!node.nodeType)
|
|
389282
389028
|
throw new TypeError("not a node");
|
|
389283
|
-
switch (
|
|
389029
|
+
switch (parent.nodeType) {
|
|
389284
389030
|
case DOCUMENT_NODE:
|
|
389285
389031
|
case DOCUMENT_FRAGMENT_NODE:
|
|
389286
389032
|
case ELEMENT_NODE:
|
|
@@ -389288,10 +389034,10 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389288
389034
|
default:
|
|
389289
389035
|
utils.HierarchyRequestError();
|
|
389290
389036
|
}
|
|
389291
|
-
if (node.isAncestor(
|
|
389037
|
+
if (node.isAncestor(parent))
|
|
389292
389038
|
utils.HierarchyRequestError();
|
|
389293
389039
|
if (child !== null || !isPreinsert) {
|
|
389294
|
-
if (child.parentNode !==
|
|
389040
|
+
if (child.parentNode !== parent)
|
|
389295
389041
|
utils.NotFoundError();
|
|
389296
389042
|
}
|
|
389297
389043
|
switch (node.nodeType) {
|
|
@@ -389305,7 +389051,7 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389305
389051
|
default:
|
|
389306
389052
|
utils.HierarchyRequestError();
|
|
389307
389053
|
}
|
|
389308
|
-
if (
|
|
389054
|
+
if (parent.nodeType === DOCUMENT_NODE) {
|
|
389309
389055
|
switch (node.nodeType) {
|
|
389310
389056
|
case TEXT_NODE:
|
|
389311
389057
|
utils.HierarchyRequestError();
|
|
@@ -389325,7 +389071,7 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389325
389071
|
utils.HierarchyRequestError();
|
|
389326
389072
|
}
|
|
389327
389073
|
}
|
|
389328
|
-
i3 =
|
|
389074
|
+
i3 = parent._countChildrenOfType(ELEMENT_NODE);
|
|
389329
389075
|
if (isPreinsert) {
|
|
389330
389076
|
if (i3 > 0)
|
|
389331
389077
|
utils.HierarchyRequestError();
|
|
@@ -389347,7 +389093,7 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389347
389093
|
utils.HierarchyRequestError();
|
|
389348
389094
|
}
|
|
389349
389095
|
}
|
|
389350
|
-
i3 =
|
|
389096
|
+
i3 = parent._countChildrenOfType(ELEMENT_NODE);
|
|
389351
389097
|
if (isPreinsert) {
|
|
389352
389098
|
if (i3 > 0)
|
|
389353
389099
|
utils.HierarchyRequestError();
|
|
@@ -389358,17 +389104,17 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389358
389104
|
break;
|
|
389359
389105
|
case DOCUMENT_TYPE_NODE:
|
|
389360
389106
|
if (child === null) {
|
|
389361
|
-
if (
|
|
389107
|
+
if (parent._countChildrenOfType(ELEMENT_NODE))
|
|
389362
389108
|
utils.HierarchyRequestError();
|
|
389363
389109
|
} else {
|
|
389364
|
-
for (kid =
|
|
389110
|
+
for (kid = parent.firstChild;kid !== null; kid = kid.nextSibling) {
|
|
389365
389111
|
if (kid === child)
|
|
389366
389112
|
break;
|
|
389367
389113
|
if (kid.nodeType === ELEMENT_NODE)
|
|
389368
389114
|
utils.HierarchyRequestError();
|
|
389369
389115
|
}
|
|
389370
389116
|
}
|
|
389371
|
-
i3 =
|
|
389117
|
+
i3 = parent._countChildrenOfType(DOCUMENT_TYPE_NODE);
|
|
389372
389118
|
if (isPreinsert) {
|
|
389373
389119
|
if (i3 > 0)
|
|
389374
389120
|
utils.HierarchyRequestError();
|
|
@@ -389384,14 +389130,14 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389384
389130
|
}
|
|
389385
389131
|
} },
|
|
389386
389132
|
insertBefore: { value: function insertBefore(node, child) {
|
|
389387
|
-
var
|
|
389388
|
-
|
|
389133
|
+
var parent = this;
|
|
389134
|
+
parent._ensureInsertValid(node, child, true);
|
|
389389
389135
|
var refChild = child;
|
|
389390
389136
|
if (refChild === node) {
|
|
389391
389137
|
refChild = node.nextSibling;
|
|
389392
389138
|
}
|
|
389393
|
-
|
|
389394
|
-
node._insertOrReplace(
|
|
389139
|
+
parent.doc.adoptNode(node);
|
|
389140
|
+
node._insertOrReplace(parent, refChild, false);
|
|
389395
389141
|
return node;
|
|
389396
389142
|
} },
|
|
389397
389143
|
appendChild: { value: function(child) {
|
|
@@ -389401,21 +389147,21 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389401
389147
|
child._insertOrReplace(this, null, false);
|
|
389402
389148
|
} },
|
|
389403
389149
|
removeChild: { value: function removeChild(child) {
|
|
389404
|
-
var
|
|
389150
|
+
var parent = this;
|
|
389405
389151
|
if (!child.nodeType)
|
|
389406
389152
|
throw new TypeError("not a node");
|
|
389407
|
-
if (child.parentNode !==
|
|
389153
|
+
if (child.parentNode !== parent)
|
|
389408
389154
|
utils.NotFoundError();
|
|
389409
389155
|
child.remove();
|
|
389410
389156
|
return child;
|
|
389411
389157
|
} },
|
|
389412
389158
|
replaceChild: { value: function replaceChild(node, child) {
|
|
389413
|
-
var
|
|
389414
|
-
|
|
389415
|
-
if (node.doc !==
|
|
389416
|
-
|
|
389159
|
+
var parent = this;
|
|
389160
|
+
parent._ensureInsertValid(node, child, false);
|
|
389161
|
+
if (node.doc !== parent.doc) {
|
|
389162
|
+
parent.doc.adoptNode(node);
|
|
389417
389163
|
}
|
|
389418
|
-
node._insertOrReplace(
|
|
389164
|
+
node._insertOrReplace(parent, child, true);
|
|
389419
389165
|
return child;
|
|
389420
389166
|
} },
|
|
389421
389167
|
contains: { value: function contains(node) {
|
|
@@ -389535,10 +389281,10 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389535
389281
|
return defaultNamespace === ns;
|
|
389536
389282
|
} },
|
|
389537
389283
|
index: { get: function() {
|
|
389538
|
-
var
|
|
389539
|
-
if (this ===
|
|
389284
|
+
var parent = this.parentNode;
|
|
389285
|
+
if (this === parent.firstChild)
|
|
389540
389286
|
return 0;
|
|
389541
|
-
var kids =
|
|
389287
|
+
var kids = parent.childNodes;
|
|
389542
389288
|
if (this._index === undefined || kids[this._index] !== this) {
|
|
389543
389289
|
for (var i3 = 0;i3 < kids.length; i3++) {
|
|
389544
389290
|
kids[i3]._index = i3;
|
|
@@ -389566,14 +389312,14 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389566
389312
|
}
|
|
389567
389313
|
} },
|
|
389568
389314
|
removeChildren: { value: utils.shouldOverride },
|
|
389569
|
-
_insertOrReplace: { value: function _insertOrReplace(
|
|
389315
|
+
_insertOrReplace: { value: function _insertOrReplace(parent, before, isReplace) {
|
|
389570
389316
|
var child = this, before_index, i3;
|
|
389571
389317
|
if (child.nodeType === DOCUMENT_FRAGMENT_NODE && child.rooted) {
|
|
389572
389318
|
utils.HierarchyRequestError();
|
|
389573
389319
|
}
|
|
389574
|
-
if (
|
|
389575
|
-
before_index = before === null ?
|
|
389576
|
-
if (child.parentNode ===
|
|
389320
|
+
if (parent._childNodes) {
|
|
389321
|
+
before_index = before === null ? parent._childNodes.length : before.index;
|
|
389322
|
+
if (child.parentNode === parent) {
|
|
389577
389323
|
var child_index = child.index;
|
|
389578
389324
|
if (child_index < before_index) {
|
|
389579
389325
|
before_index--;
|
|
@@ -389587,15 +389333,15 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389587
389333
|
}
|
|
389588
389334
|
var n2 = before;
|
|
389589
389335
|
if (n2 === null) {
|
|
389590
|
-
n2 =
|
|
389336
|
+
n2 = parent.firstChild;
|
|
389591
389337
|
}
|
|
389592
|
-
var bothRooted = child.rooted &&
|
|
389338
|
+
var bothRooted = child.rooted && parent.rooted;
|
|
389593
389339
|
if (child.nodeType === DOCUMENT_FRAGMENT_NODE) {
|
|
389594
389340
|
var spliceArgs = [0, isReplace ? 1 : 0], next;
|
|
389595
389341
|
for (var kid = child.firstChild;kid !== null; kid = next) {
|
|
389596
389342
|
next = kid.nextSibling;
|
|
389597
389343
|
spliceArgs.push(kid);
|
|
389598
|
-
kid.parentNode =
|
|
389344
|
+
kid.parentNode = parent;
|
|
389599
389345
|
}
|
|
389600
389346
|
var len = spliceArgs.length;
|
|
389601
389347
|
if (isReplace) {
|
|
@@ -389603,17 +389349,17 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389603
389349
|
} else if (len > 2 && n2 !== null) {
|
|
389604
389350
|
LinkedList.insertBefore(spliceArgs[2], n2);
|
|
389605
389351
|
}
|
|
389606
|
-
if (
|
|
389607
|
-
spliceArgs[0] = before === null ?
|
|
389608
|
-
|
|
389352
|
+
if (parent._childNodes) {
|
|
389353
|
+
spliceArgs[0] = before === null ? parent._childNodes.length : before._index;
|
|
389354
|
+
parent._childNodes.splice.apply(parent._childNodes, spliceArgs);
|
|
389609
389355
|
for (i3 = 2;i3 < len; i3++) {
|
|
389610
389356
|
spliceArgs[i3]._index = spliceArgs[0] + (i3 - 2);
|
|
389611
389357
|
}
|
|
389612
|
-
} else if (
|
|
389358
|
+
} else if (parent._firstChild === before) {
|
|
389613
389359
|
if (len > 2) {
|
|
389614
|
-
|
|
389360
|
+
parent._firstChild = spliceArgs[2];
|
|
389615
389361
|
} else if (isReplace) {
|
|
389616
|
-
|
|
389362
|
+
parent._firstChild = null;
|
|
389617
389363
|
}
|
|
389618
389364
|
}
|
|
389619
389365
|
if (child._childNodes) {
|
|
@@ -389621,10 +389367,10 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389621
389367
|
} else {
|
|
389622
389368
|
child._firstChild = null;
|
|
389623
389369
|
}
|
|
389624
|
-
if (
|
|
389625
|
-
|
|
389370
|
+
if (parent.rooted) {
|
|
389371
|
+
parent.modify();
|
|
389626
389372
|
for (i3 = 2;i3 < len; i3++) {
|
|
389627
|
-
|
|
389373
|
+
parent.doc.mutateInsert(spliceArgs[i3]);
|
|
389628
389374
|
}
|
|
389629
389375
|
}
|
|
389630
389376
|
} else {
|
|
@@ -389636,32 +389382,32 @@ var require_Node2 = __commonJS((exports, module) => {
|
|
|
389636
389382
|
} else if (child.parentNode) {
|
|
389637
389383
|
child.remove();
|
|
389638
389384
|
}
|
|
389639
|
-
child.parentNode =
|
|
389385
|
+
child.parentNode = parent;
|
|
389640
389386
|
if (isReplace) {
|
|
389641
389387
|
LinkedList.replace(n2, child);
|
|
389642
|
-
if (
|
|
389388
|
+
if (parent._childNodes) {
|
|
389643
389389
|
child._index = before_index;
|
|
389644
|
-
|
|
389645
|
-
} else if (
|
|
389646
|
-
|
|
389390
|
+
parent._childNodes[before_index] = child;
|
|
389391
|
+
} else if (parent._firstChild === before) {
|
|
389392
|
+
parent._firstChild = child;
|
|
389647
389393
|
}
|
|
389648
389394
|
} else {
|
|
389649
389395
|
if (n2 !== null) {
|
|
389650
389396
|
LinkedList.insertBefore(child, n2);
|
|
389651
389397
|
}
|
|
389652
|
-
if (
|
|
389398
|
+
if (parent._childNodes) {
|
|
389653
389399
|
child._index = before_index;
|
|
389654
|
-
|
|
389655
|
-
} else if (
|
|
389656
|
-
|
|
389400
|
+
parent._childNodes.splice(before_index, 0, child);
|
|
389401
|
+
} else if (parent._firstChild === before) {
|
|
389402
|
+
parent._firstChild = child;
|
|
389657
389403
|
}
|
|
389658
389404
|
}
|
|
389659
389405
|
if (bothRooted) {
|
|
389660
|
-
|
|
389661
|
-
|
|
389662
|
-
} else if (
|
|
389663
|
-
|
|
389664
|
-
|
|
389406
|
+
parent.modify();
|
|
389407
|
+
parent.doc.mutateMove(child);
|
|
389408
|
+
} else if (parent.rooted) {
|
|
389409
|
+
parent.modify();
|
|
389410
|
+
parent.doc.mutateInsert(child);
|
|
389665
389411
|
}
|
|
389666
389412
|
}
|
|
389667
389413
|
} },
|
|
@@ -391067,20 +390813,20 @@ var require_ChildNode = __commonJS((exports, module) => {
|
|
|
391067
390813
|
this.parentNode = null;
|
|
391068
390814
|
} },
|
|
391069
390815
|
_remove: { value: function _remove() {
|
|
391070
|
-
var
|
|
391071
|
-
if (
|
|
390816
|
+
var parent = this.parentNode;
|
|
390817
|
+
if (parent === null)
|
|
391072
390818
|
return;
|
|
391073
|
-
if (
|
|
391074
|
-
|
|
391075
|
-
} else if (
|
|
390819
|
+
if (parent._childNodes) {
|
|
390820
|
+
parent._childNodes.splice(this.index, 1);
|
|
390821
|
+
} else if (parent._firstChild === this) {
|
|
391076
390822
|
if (this._nextSibling === this) {
|
|
391077
|
-
|
|
390823
|
+
parent._firstChild = null;
|
|
391078
390824
|
} else {
|
|
391079
|
-
|
|
390825
|
+
parent._firstChild = this._nextSibling;
|
|
391080
390826
|
}
|
|
391081
390827
|
}
|
|
391082
390828
|
LinkedList.remove(this);
|
|
391083
|
-
|
|
390829
|
+
parent.modify();
|
|
391084
390830
|
} },
|
|
391085
390831
|
replaceWith: { value: function replaceWith() {
|
|
391086
390832
|
var argArr = Array.prototype.slice.call(arguments);
|
|
@@ -391275,17 +391021,17 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391275
391021
|
},
|
|
391276
391022
|
set: function(v) {
|
|
391277
391023
|
var document2 = this.ownerDocument;
|
|
391278
|
-
var
|
|
391279
|
-
if (
|
|
391024
|
+
var parent = this.parentNode;
|
|
391025
|
+
if (parent === null) {
|
|
391280
391026
|
return;
|
|
391281
391027
|
}
|
|
391282
|
-
if (
|
|
391028
|
+
if (parent.nodeType === Node2.DOCUMENT_NODE) {
|
|
391283
391029
|
utils.NoModificationAllowedError();
|
|
391284
391030
|
}
|
|
391285
|
-
if (
|
|
391286
|
-
|
|
391031
|
+
if (parent.nodeType === Node2.DOCUMENT_FRAGMENT_NODE) {
|
|
391032
|
+
parent = parent.ownerDocument.createElement("body");
|
|
391287
391033
|
}
|
|
391288
|
-
var parser2 = document2.implementation.mozHTMLParser(document2._address,
|
|
391034
|
+
var parser2 = document2.implementation.mozHTMLParser(document2._address, parent);
|
|
391289
391035
|
parser2.parse(v === null ? "" : String(v), true);
|
|
391290
391036
|
this.replaceWith(parser2._asDocumentFragment());
|
|
391291
391037
|
}
|
|
@@ -391296,11 +391042,11 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391296
391042
|
case "beforebegin":
|
|
391297
391043
|
first = true;
|
|
391298
391044
|
case "afterend":
|
|
391299
|
-
var
|
|
391300
|
-
if (
|
|
391045
|
+
var parent = this.parentNode;
|
|
391046
|
+
if (parent === null) {
|
|
391301
391047
|
return null;
|
|
391302
391048
|
}
|
|
391303
|
-
return
|
|
391049
|
+
return parent.insertBefore(node, first ? this : this.nextSibling);
|
|
391304
391050
|
case "afterbegin":
|
|
391305
391051
|
first = true;
|
|
391306
391052
|
case "beforeend":
|
|
@@ -391387,8 +391133,8 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391387
391133
|
}
|
|
391388
391134
|
if (next)
|
|
391389
391135
|
return next;
|
|
391390
|
-
for (var
|
|
391391
|
-
next =
|
|
391136
|
+
for (var parent = this.parentElement;parent && parent !== root2; parent = parent.parentElement) {
|
|
391137
|
+
next = parent.nextElementSibling;
|
|
391392
391138
|
if (next)
|
|
391393
391139
|
return next;
|
|
391394
391140
|
}
|
|
@@ -391474,8 +391220,8 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391474
391220
|
return a2.localName;
|
|
391475
391221
|
}
|
|
391476
391222
|
}
|
|
391477
|
-
var
|
|
391478
|
-
return
|
|
391223
|
+
var parent = this.parentElement;
|
|
391224
|
+
return parent ? parent._lookupNamespacePrefix(ns, originalElement) : null;
|
|
391479
391225
|
} },
|
|
391480
391226
|
lookupNamespaceURI: { value: function lookupNamespaceURI(prefix) {
|
|
391481
391227
|
if (prefix === "" || prefix === undefined) {
|
|
@@ -391491,8 +391237,8 @@ var require_Element = __commonJS((exports, module) => {
|
|
|
391491
391237
|
}
|
|
391492
391238
|
}
|
|
391493
391239
|
}
|
|
391494
|
-
var
|
|
391495
|
-
return
|
|
391240
|
+
var parent = this.parentElement;
|
|
391241
|
+
return parent ? parent.lookupNamespaceURI(prefix) : null;
|
|
391496
391242
|
} },
|
|
391497
391243
|
getAttribute: { value: function getAttribute(qname) {
|
|
391498
391244
|
var attr = this.getAttributeNode(qname);
|
|
@@ -392213,9 +391959,9 @@ var require_Text = __commonJS((exports, module) => {
|
|
|
392213
391959
|
utils.IndexSizeError();
|
|
392214
391960
|
var newdata = this._data.substring(offset), newnode = this.ownerDocument.createTextNode(newdata);
|
|
392215
391961
|
this.data = this.data.substring(0, offset);
|
|
392216
|
-
var
|
|
392217
|
-
if (
|
|
392218
|
-
|
|
391962
|
+
var parent = this.parentNode;
|
|
391963
|
+
if (parent !== null)
|
|
391964
|
+
parent.insertBefore(newnode, this.nextSibling);
|
|
392219
391965
|
return newnode;
|
|
392220
391966
|
} },
|
|
392221
391967
|
wholeText: { get: function wholeText() {
|
|
@@ -392491,7 +392237,7 @@ var require_TreeWalker = __commonJS((exports, module) => {
|
|
|
392491
392237
|
previous: "previousSibling"
|
|
392492
392238
|
};
|
|
392493
392239
|
function traverseChildren(tw, type) {
|
|
392494
|
-
var child, node,
|
|
392240
|
+
var child, node, parent, result, sibling;
|
|
392495
392241
|
node = tw._currentNode[mapChild[type]];
|
|
392496
392242
|
while (node !== null) {
|
|
392497
392243
|
result = tw._internalFilter(node);
|
|
@@ -392512,11 +392258,11 @@ var require_TreeWalker = __commonJS((exports, module) => {
|
|
|
392512
392258
|
node = sibling;
|
|
392513
392259
|
break;
|
|
392514
392260
|
}
|
|
392515
|
-
|
|
392516
|
-
if (
|
|
392261
|
+
parent = node.parentNode;
|
|
392262
|
+
if (parent === null || parent === tw.root || parent === tw._currentNode) {
|
|
392517
392263
|
return null;
|
|
392518
392264
|
} else {
|
|
392519
|
-
node =
|
|
392265
|
+
node = parent;
|
|
392520
392266
|
}
|
|
392521
392267
|
}
|
|
392522
392268
|
}
|
|
@@ -395797,9 +395543,9 @@ var require_Document2 = __commonJS((exports, module) => {
|
|
|
395797
395543
|
}
|
|
395798
395544
|
});
|
|
395799
395545
|
});
|
|
395800
|
-
function namedHTMLChild(
|
|
395801
|
-
if (
|
|
395802
|
-
for (var kid =
|
|
395546
|
+
function namedHTMLChild(parent, name) {
|
|
395547
|
+
if (parent && parent.isHTML) {
|
|
395548
|
+
for (var kid = parent.firstChild;kid !== null; kid = kid.nextSibling) {
|
|
395803
395549
|
if (kid.nodeType === Node2.ELEMENT_NODE && kid.localName === name && kid.namespaceURI === NAMESPACE.HTML) {
|
|
395804
395550
|
return kid;
|
|
395805
395551
|
}
|
|
@@ -399335,33 +399081,33 @@ var require_HTMLParser = __commonJS((exports, module) => {
|
|
|
399335
399081
|
}
|
|
399336
399082
|
};
|
|
399337
399083
|
function insertComment(data) {
|
|
399338
|
-
var
|
|
399339
|
-
if (foster_parent_mode && isA(
|
|
399084
|
+
var parent = stack.top;
|
|
399085
|
+
if (foster_parent_mode && isA(parent, tablesectionrowSet)) {
|
|
399340
399086
|
fosterParent(function(doc3) {
|
|
399341
399087
|
return doc3.createComment(data);
|
|
399342
399088
|
});
|
|
399343
399089
|
} else {
|
|
399344
|
-
if (
|
|
399345
|
-
|
|
399090
|
+
if (parent instanceof impl.HTMLTemplateElement) {
|
|
399091
|
+
parent = parent.content;
|
|
399346
399092
|
}
|
|
399347
|
-
|
|
399093
|
+
parent._appendChild(parent.ownerDocument.createComment(data));
|
|
399348
399094
|
}
|
|
399349
399095
|
}
|
|
399350
399096
|
function insertText(s) {
|
|
399351
|
-
var
|
|
399352
|
-
if (foster_parent_mode && isA(
|
|
399097
|
+
var parent = stack.top;
|
|
399098
|
+
if (foster_parent_mode && isA(parent, tablesectionrowSet)) {
|
|
399353
399099
|
fosterParent(function(doc3) {
|
|
399354
399100
|
return doc3.createTextNode(s);
|
|
399355
399101
|
});
|
|
399356
399102
|
} else {
|
|
399357
|
-
if (
|
|
399358
|
-
|
|
399103
|
+
if (parent instanceof impl.HTMLTemplateElement) {
|
|
399104
|
+
parent = parent.content;
|
|
399359
399105
|
}
|
|
399360
|
-
var lastChild =
|
|
399106
|
+
var lastChild = parent.lastChild;
|
|
399361
399107
|
if (lastChild && lastChild.nodeType === Node2.TEXT_NODE) {
|
|
399362
399108
|
lastChild.appendData(s);
|
|
399363
399109
|
} else {
|
|
399364
|
-
|
|
399110
|
+
parent._appendChild(parent.ownerDocument.createTextNode(s));
|
|
399365
399111
|
}
|
|
399366
399112
|
}
|
|
399367
399113
|
}
|
|
@@ -399423,40 +399169,40 @@ var require_HTMLParser = __commonJS((exports, module) => {
|
|
|
399423
399169
|
return -1;
|
|
399424
399170
|
}
|
|
399425
399171
|
function fosterParent(eltFunc) {
|
|
399426
|
-
var
|
|
399172
|
+
var parent, before, lastTable = -1, lastTemplate = -1, elt;
|
|
399427
399173
|
lastTable = lastElementOfType(impl.HTMLTableElement);
|
|
399428
399174
|
lastTemplate = lastElementOfType(impl.HTMLTemplateElement);
|
|
399429
399175
|
if (lastTemplate >= 0 && (lastTable < 0 || lastTemplate > lastTable)) {
|
|
399430
|
-
|
|
399176
|
+
parent = stack.elements[lastTemplate];
|
|
399431
399177
|
} else if (lastTable >= 0) {
|
|
399432
|
-
|
|
399433
|
-
if (
|
|
399178
|
+
parent = stack.elements[lastTable].parentNode;
|
|
399179
|
+
if (parent) {
|
|
399434
399180
|
before = stack.elements[lastTable];
|
|
399435
399181
|
} else {
|
|
399436
|
-
|
|
399182
|
+
parent = stack.elements[lastTable - 1];
|
|
399437
399183
|
}
|
|
399438
399184
|
}
|
|
399439
|
-
if (!
|
|
399440
|
-
|
|
399441
|
-
if (
|
|
399442
|
-
|
|
399185
|
+
if (!parent)
|
|
399186
|
+
parent = stack.elements[0];
|
|
399187
|
+
if (parent instanceof impl.HTMLTemplateElement) {
|
|
399188
|
+
parent = parent.content;
|
|
399443
399189
|
}
|
|
399444
|
-
elt = eltFunc(
|
|
399190
|
+
elt = eltFunc(parent.ownerDocument);
|
|
399445
399191
|
if (elt.nodeType === Node2.TEXT_NODE) {
|
|
399446
399192
|
var prev;
|
|
399447
399193
|
if (before)
|
|
399448
399194
|
prev = before.previousSibling;
|
|
399449
399195
|
else
|
|
399450
|
-
prev =
|
|
399196
|
+
prev = parent.lastChild;
|
|
399451
399197
|
if (prev && prev.nodeType === Node2.TEXT_NODE) {
|
|
399452
399198
|
prev.appendData(elt.data);
|
|
399453
399199
|
return elt;
|
|
399454
399200
|
}
|
|
399455
399201
|
}
|
|
399456
399202
|
if (before)
|
|
399457
|
-
|
|
399203
|
+
parent.insertBefore(elt, before);
|
|
399458
399204
|
else
|
|
399459
|
-
|
|
399205
|
+
parent._appendChild(elt);
|
|
399460
399206
|
return elt;
|
|
399461
399207
|
}
|
|
399462
399208
|
function resetInsertionMode() {
|
|
@@ -404434,8 +404180,8 @@ var require_turndown_cjs = __commonJS((exports, module) => {
|
|
|
404434
404180
|
rules.list = {
|
|
404435
404181
|
filter: ["ul", "ol"],
|
|
404436
404182
|
replacement: function(content, node) {
|
|
404437
|
-
var
|
|
404438
|
-
if (
|
|
404183
|
+
var parent = node.parentNode;
|
|
404184
|
+
if (parent.nodeName === "LI" && parent.lastElementChild === node) {
|
|
404439
404185
|
return `
|
|
404440
404186
|
` + content;
|
|
404441
404187
|
} else {
|
|
@@ -404451,10 +404197,10 @@ var require_turndown_cjs = __commonJS((exports, module) => {
|
|
|
404451
404197
|
filter: "li",
|
|
404452
404198
|
replacement: function(content, node, options2) {
|
|
404453
404199
|
var prefix = options2.bulletListMarker + " ";
|
|
404454
|
-
var
|
|
404455
|
-
if (
|
|
404456
|
-
var start =
|
|
404457
|
-
var index = Array.prototype.indexOf.call(
|
|
404200
|
+
var parent = node.parentNode;
|
|
404201
|
+
if (parent.nodeName === "OL") {
|
|
404202
|
+
var start = parent.getAttribute("start");
|
|
404203
|
+
var index = Array.prototype.indexOf.call(parent.children, node);
|
|
404458
404204
|
prefix = (start ? Number(start) + index : index + 1) + ". ";
|
|
404459
404205
|
}
|
|
404460
404206
|
var isParagraph = /\n$/.test(content);
|
|
@@ -427130,7 +426876,7 @@ var init_useIdeConnectionStatus = __esm(() => {
|
|
|
427130
426876
|
import_react130 = __toESM(require_react(), 1);
|
|
427131
426877
|
});
|
|
427132
426878
|
|
|
427133
|
-
// missing-module-stub:/
|
|
426879
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/services/analytics/growthbook.js
|
|
427134
426880
|
var init_growthbook2 = () => {};
|
|
427135
426881
|
|
|
427136
426882
|
// src/capabilities/voice/voiceModeEnabled.ts
|
|
@@ -427646,19 +427392,19 @@ var init_autoUpdater = __esm(() => {
|
|
|
427646
427392
|
LOCK_TIMEOUT_MS = 5 * 60 * 1000;
|
|
427647
427393
|
});
|
|
427648
427394
|
|
|
427649
|
-
// missing-module-stub:/
|
|
427395
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/debug.js
|
|
427650
427396
|
var noop22 = () => null, logForDebugging9;
|
|
427651
427397
|
var init_debug2 = __esm(() => {
|
|
427652
427398
|
logForDebugging9 = noop22;
|
|
427653
427399
|
});
|
|
427654
427400
|
|
|
427655
|
-
// missing-module-stub:/
|
|
427401
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/execFileNoThrow.js
|
|
427656
427402
|
var noop23 = () => null, execFileNoThrow2;
|
|
427657
427403
|
var init_execFileNoThrow2 = __esm(() => {
|
|
427658
427404
|
execFileNoThrow2 = noop23;
|
|
427659
427405
|
});
|
|
427660
427406
|
|
|
427661
|
-
// missing-module-stub:/
|
|
427407
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/platform.js
|
|
427662
427408
|
var noop24 = () => null, getPlatform2;
|
|
427663
427409
|
var init_platform3 = __esm(() => {
|
|
427664
427410
|
getPlatform2 = noop24;
|
|
@@ -432115,8 +431861,7 @@ class FuseIndex {
|
|
|
432115
431861
|
value: item
|
|
432116
431862
|
});
|
|
432117
431863
|
});
|
|
432118
|
-
}
|
|
432119
|
-
;
|
|
431864
|
+
}
|
|
432120
431865
|
}
|
|
432121
431866
|
record3.$[keyIndex] = subRecords;
|
|
432122
431867
|
} else if (isString2(value) && !isBlank(value)) {
|
|
@@ -433146,7 +432891,7 @@ var init_fuse = __esm(() => {
|
|
|
433146
432891
|
}
|
|
433147
432892
|
});
|
|
433148
432893
|
|
|
433149
|
-
// missing-module-stub:/
|
|
432894
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/suggestions/skillUsageTracking.js
|
|
433150
432895
|
var noop25 = () => null, recordSkillUsage2, getSkillUsageScore;
|
|
433151
432896
|
var init_skillUsageTracking2 = __esm(() => {
|
|
433152
432897
|
recordSkillUsage2 = noop25;
|
|
@@ -434235,11 +433980,11 @@ function collectDirectoryNames(files, start, end, out) {
|
|
|
434235
433980
|
for (let i3 = start;i3 < end; i3++) {
|
|
434236
433981
|
let currentDir = path16.dirname(files[i3]);
|
|
434237
433982
|
while (currentDir !== "." && !out.has(currentDir)) {
|
|
434238
|
-
const
|
|
434239
|
-
if (
|
|
433983
|
+
const parent = path16.dirname(currentDir);
|
|
433984
|
+
if (parent === currentDir)
|
|
434240
433985
|
break;
|
|
434241
433986
|
out.add(currentDir);
|
|
434242
|
-
currentDir =
|
|
433987
|
+
currentDir = parent;
|
|
434243
433988
|
}
|
|
434244
433989
|
}
|
|
434245
433990
|
}
|
|
@@ -452722,7 +452467,7 @@ function PromptInput({
|
|
|
452722
452467
|
clearBuffer();
|
|
452723
452468
|
resetHistory();
|
|
452724
452469
|
return;
|
|
452725
|
-
} else if (result.error === "no_team_context") {}
|
|
452470
|
+
} else if (result.error === "no_team_context") {}
|
|
452726
452471
|
}
|
|
452727
452472
|
}
|
|
452728
452473
|
if (inputParam.trim() === "" && !hasImages) {
|
|
@@ -460097,6 +459842,61 @@ var init_useMergedClients = __esm(() => {
|
|
|
460097
459842
|
import_react189 = __toESM(require_react(), 1);
|
|
460098
459843
|
});
|
|
460099
459844
|
|
|
459845
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_arrayAggregator.js
|
|
459846
|
+
function arrayAggregator(array3, setter, iteratee, accumulator) {
|
|
459847
|
+
var index = -1, length = array3 == null ? 0 : array3.length;
|
|
459848
|
+
while (++index < length) {
|
|
459849
|
+
var value = array3[index];
|
|
459850
|
+
setter(accumulator, value, iteratee(value), array3);
|
|
459851
|
+
}
|
|
459852
|
+
return accumulator;
|
|
459853
|
+
}
|
|
459854
|
+
var _arrayAggregator_default;
|
|
459855
|
+
var init__arrayAggregator = __esm(() => {
|
|
459856
|
+
_arrayAggregator_default = arrayAggregator;
|
|
459857
|
+
});
|
|
459858
|
+
|
|
459859
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseAggregator.js
|
|
459860
|
+
function baseAggregator(collection, setter, iteratee, accumulator) {
|
|
459861
|
+
_baseEach_default(collection, function(value, key, collection2) {
|
|
459862
|
+
setter(accumulator, value, iteratee(value), collection2);
|
|
459863
|
+
});
|
|
459864
|
+
return accumulator;
|
|
459865
|
+
}
|
|
459866
|
+
var _baseAggregator_default;
|
|
459867
|
+
var init__baseAggregator = __esm(() => {
|
|
459868
|
+
init__baseEach();
|
|
459869
|
+
_baseAggregator_default = baseAggregator;
|
|
459870
|
+
});
|
|
459871
|
+
|
|
459872
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_createAggregator.js
|
|
459873
|
+
function createAggregator(setter, initializer3) {
|
|
459874
|
+
return function(collection, iteratee) {
|
|
459875
|
+
var func = isArray_default(collection) ? _arrayAggregator_default : _baseAggregator_default, accumulator = initializer3 ? initializer3() : {};
|
|
459876
|
+
return func(collection, setter, _baseIteratee_default(iteratee, 2), accumulator);
|
|
459877
|
+
};
|
|
459878
|
+
}
|
|
459879
|
+
var _createAggregator_default;
|
|
459880
|
+
var init__createAggregator = __esm(() => {
|
|
459881
|
+
init__arrayAggregator();
|
|
459882
|
+
init__baseAggregator();
|
|
459883
|
+
init__baseIteratee();
|
|
459884
|
+
init_isArray();
|
|
459885
|
+
_createAggregator_default = createAggregator;
|
|
459886
|
+
});
|
|
459887
|
+
|
|
459888
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/partition.js
|
|
459889
|
+
var partition2, partition_default;
|
|
459890
|
+
var init_partition = __esm(() => {
|
|
459891
|
+
init__createAggregator();
|
|
459892
|
+
partition2 = _createAggregator_default(function(result, value, key) {
|
|
459893
|
+
result[key ? 0 : 1].push(value);
|
|
459894
|
+
}, function() {
|
|
459895
|
+
return [[], []];
|
|
459896
|
+
});
|
|
459897
|
+
partition_default = partition2;
|
|
459898
|
+
});
|
|
459899
|
+
|
|
460100
459900
|
// src/controller/toolPool.ts
|
|
460101
459901
|
function getToolNameForSort2(tool) {
|
|
460102
459902
|
if (typeof tool?.name === "string")
|
|
@@ -463402,6 +463202,154 @@ var init_RemoteCallout = __esm(() => {
|
|
|
463402
463202
|
jsx_dev_runtime238 = __toESM(require_jsx_dev_runtime(), 1);
|
|
463403
463203
|
});
|
|
463404
463204
|
|
|
463205
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_parent.js
|
|
463206
|
+
function parent(object4, path18) {
|
|
463207
|
+
return path18.length < 2 ? object4 : _baseGet_default(object4, _baseSlice_default(path18, 0, -1));
|
|
463208
|
+
}
|
|
463209
|
+
var _parent_default;
|
|
463210
|
+
var init__parent = __esm(() => {
|
|
463211
|
+
init__baseGet();
|
|
463212
|
+
init__baseSlice();
|
|
463213
|
+
_parent_default = parent;
|
|
463214
|
+
});
|
|
463215
|
+
|
|
463216
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseUnset.js
|
|
463217
|
+
function baseUnset(object4, path18) {
|
|
463218
|
+
path18 = _castPath_default(path18, object4);
|
|
463219
|
+
var index = -1, length = path18.length;
|
|
463220
|
+
if (!length) {
|
|
463221
|
+
return true;
|
|
463222
|
+
}
|
|
463223
|
+
while (++index < length) {
|
|
463224
|
+
var key = _toKey_default(path18[index]);
|
|
463225
|
+
if (key === "__proto__" && !hasOwnProperty15.call(object4, "__proto__")) {
|
|
463226
|
+
return false;
|
|
463227
|
+
}
|
|
463228
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
463229
|
+
return false;
|
|
463230
|
+
}
|
|
463231
|
+
}
|
|
463232
|
+
var obj = _parent_default(object4, path18);
|
|
463233
|
+
return obj == null || delete obj[_toKey_default(last_default(path18))];
|
|
463234
|
+
}
|
|
463235
|
+
var objectProto17, hasOwnProperty15, _baseUnset_default;
|
|
463236
|
+
var init__baseUnset = __esm(() => {
|
|
463237
|
+
init__castPath();
|
|
463238
|
+
init_last();
|
|
463239
|
+
init__parent();
|
|
463240
|
+
init__toKey();
|
|
463241
|
+
objectProto17 = Object.prototype;
|
|
463242
|
+
hasOwnProperty15 = objectProto17.hasOwnProperty;
|
|
463243
|
+
_baseUnset_default = baseUnset;
|
|
463244
|
+
});
|
|
463245
|
+
|
|
463246
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_customOmitClone.js
|
|
463247
|
+
function customOmitClone(value) {
|
|
463248
|
+
return isPlainObject_default(value) ? undefined : value;
|
|
463249
|
+
}
|
|
463250
|
+
var _customOmitClone_default;
|
|
463251
|
+
var init__customOmitClone = __esm(() => {
|
|
463252
|
+
init_isPlainObject();
|
|
463253
|
+
_customOmitClone_default = customOmitClone;
|
|
463254
|
+
});
|
|
463255
|
+
|
|
463256
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_isFlattenable.js
|
|
463257
|
+
function isFlattenable(value) {
|
|
463258
|
+
return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
463259
|
+
}
|
|
463260
|
+
var spreadableSymbol, _isFlattenable_default;
|
|
463261
|
+
var init__isFlattenable = __esm(() => {
|
|
463262
|
+
init__Symbol();
|
|
463263
|
+
init_isArguments();
|
|
463264
|
+
init_isArray();
|
|
463265
|
+
spreadableSymbol = _Symbol_default ? _Symbol_default.isConcatSpreadable : undefined;
|
|
463266
|
+
_isFlattenable_default = isFlattenable;
|
|
463267
|
+
});
|
|
463268
|
+
|
|
463269
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_baseFlatten.js
|
|
463270
|
+
function baseFlatten(array3, depth, predicate, isStrict, result) {
|
|
463271
|
+
var index = -1, length = array3.length;
|
|
463272
|
+
predicate || (predicate = _isFlattenable_default);
|
|
463273
|
+
result || (result = []);
|
|
463274
|
+
while (++index < length) {
|
|
463275
|
+
var value = array3[index];
|
|
463276
|
+
if (depth > 0 && predicate(value)) {
|
|
463277
|
+
if (depth > 1) {
|
|
463278
|
+
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
463279
|
+
} else {
|
|
463280
|
+
_arrayPush_default(result, value);
|
|
463281
|
+
}
|
|
463282
|
+
} else if (!isStrict) {
|
|
463283
|
+
result[result.length] = value;
|
|
463284
|
+
}
|
|
463285
|
+
}
|
|
463286
|
+
return result;
|
|
463287
|
+
}
|
|
463288
|
+
var _baseFlatten_default;
|
|
463289
|
+
var init__baseFlatten = __esm(() => {
|
|
463290
|
+
init__arrayPush();
|
|
463291
|
+
init__isFlattenable();
|
|
463292
|
+
_baseFlatten_default = baseFlatten;
|
|
463293
|
+
});
|
|
463294
|
+
|
|
463295
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/flatten.js
|
|
463296
|
+
function flatten(array3) {
|
|
463297
|
+
var length = array3 == null ? 0 : array3.length;
|
|
463298
|
+
return length ? _baseFlatten_default(array3, 1) : [];
|
|
463299
|
+
}
|
|
463300
|
+
var flatten_default;
|
|
463301
|
+
var init_flatten = __esm(() => {
|
|
463302
|
+
init__baseFlatten();
|
|
463303
|
+
flatten_default = flatten;
|
|
463304
|
+
});
|
|
463305
|
+
|
|
463306
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/_flatRest.js
|
|
463307
|
+
function flatRest(func) {
|
|
463308
|
+
return _setToString_default(_overRest_default(func, undefined, flatten_default), func + "");
|
|
463309
|
+
}
|
|
463310
|
+
var _flatRest_default;
|
|
463311
|
+
var init__flatRest = __esm(() => {
|
|
463312
|
+
init_flatten();
|
|
463313
|
+
init__overRest();
|
|
463314
|
+
init__setToString();
|
|
463315
|
+
_flatRest_default = flatRest;
|
|
463316
|
+
});
|
|
463317
|
+
|
|
463318
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/omit.js
|
|
463319
|
+
var CLONE_DEEP_FLAG2 = 1, CLONE_FLAT_FLAG2 = 2, CLONE_SYMBOLS_FLAG2 = 4, omit2, omit_default;
|
|
463320
|
+
var init_omit = __esm(() => {
|
|
463321
|
+
init__arrayMap();
|
|
463322
|
+
init__baseClone();
|
|
463323
|
+
init__baseUnset();
|
|
463324
|
+
init__castPath();
|
|
463325
|
+
init__copyObject();
|
|
463326
|
+
init__customOmitClone();
|
|
463327
|
+
init__flatRest();
|
|
463328
|
+
init__getAllKeysIn();
|
|
463329
|
+
omit2 = _flatRest_default(function(object4, paths2) {
|
|
463330
|
+
var result = {};
|
|
463331
|
+
if (object4 == null) {
|
|
463332
|
+
return result;
|
|
463333
|
+
}
|
|
463334
|
+
var isDeep = false;
|
|
463335
|
+
paths2 = _arrayMap_default(paths2, function(path18) {
|
|
463336
|
+
path18 = _castPath_default(path18, object4);
|
|
463337
|
+
isDeep || (isDeep = path18.length > 1);
|
|
463338
|
+
return path18;
|
|
463339
|
+
});
|
|
463340
|
+
_copyObject_default(object4, _getAllKeysIn_default(object4), result);
|
|
463341
|
+
if (isDeep) {
|
|
463342
|
+
result = _baseClone_default(result, CLONE_DEEP_FLAG2 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG2, _customOmitClone_default);
|
|
463343
|
+
}
|
|
463344
|
+
var length = paths2.length;
|
|
463345
|
+
while (length--) {
|
|
463346
|
+
_baseUnset_default(result, paths2[length]);
|
|
463347
|
+
}
|
|
463348
|
+
return result;
|
|
463349
|
+
});
|
|
463350
|
+
omit_default = omit2;
|
|
463351
|
+
});
|
|
463352
|
+
|
|
463405
463353
|
// src/cli/services/mcp/useManageMCPConnections.ts
|
|
463406
463354
|
import { basename as basename51 } from "path";
|
|
463407
463355
|
function getErrorKey(error41) {
|
|
@@ -465125,7 +465073,7 @@ var init_useInstallMessages = __esm(() => {
|
|
|
465125
465073
|
init_useStartupNotification();
|
|
465126
465074
|
});
|
|
465127
465075
|
|
|
465128
|
-
// missing-module-stub:/
|
|
465076
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/claudeai/SessionMemory/sessionMemoryUtils.js
|
|
465129
465077
|
var init_sessionMemoryUtils2 = () => {};
|
|
465130
465078
|
|
|
465131
465079
|
// src/cli/claudeai/awaySummary.ts
|
|
@@ -465921,14 +465869,14 @@ var init_usePromptsFromClaudeInChrome = __esm(() => {
|
|
|
465921
465869
|
}));
|
|
465922
465870
|
});
|
|
465923
465871
|
|
|
465924
|
-
// missing-module-stub:/
|
|
465872
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/services/tips/tipHistory.js
|
|
465925
465873
|
var noop27 = () => null, getSessionsSinceLastShown, recordTipShown;
|
|
465926
465874
|
var init_tipHistory = __esm(() => {
|
|
465927
465875
|
getSessionsSinceLastShown = noop27;
|
|
465928
465876
|
recordTipShown = noop27;
|
|
465929
465877
|
});
|
|
465930
465878
|
|
|
465931
|
-
// missing-module-stub:/
|
|
465879
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/services/tips/tipRegistry.js
|
|
465932
465880
|
var noop28 = () => null, getRelevantTips;
|
|
465933
465881
|
var init_tipRegistry = __esm(() => {
|
|
465934
465882
|
getRelevantTips = noop28;
|
|
@@ -479128,7 +479076,7 @@ function buildPrimarySection() {
|
|
|
479128
479076
|
}, undefined, false, undefined, this);
|
|
479129
479077
|
return [{
|
|
479130
479078
|
label: "Version",
|
|
479131
|
-
value: "0.4.0"
|
|
479079
|
+
value: "0.4.2-beta.0"
|
|
479132
479080
|
}, {
|
|
479133
479081
|
label: "Session name",
|
|
479134
479082
|
value: nameValue
|
|
@@ -487185,6 +487133,17 @@ var init_SandboxDoctorSection = __esm(() => {
|
|
|
487185
487133
|
jsx_dev_runtime297 = __toESM(require_jsx_dev_runtime(), 1);
|
|
487186
487134
|
});
|
|
487187
487135
|
|
|
487136
|
+
// node_modules/.bun/lodash-es@4.18.0/node_modules/lodash-es/setWith.js
|
|
487137
|
+
function setWith(object4, path18, value, customizer) {
|
|
487138
|
+
customizer = typeof customizer == "function" ? customizer : undefined;
|
|
487139
|
+
return object4 == null ? object4 : _baseSet_default(object4, path18, value, customizer);
|
|
487140
|
+
}
|
|
487141
|
+
var setWith_default;
|
|
487142
|
+
var init_setWith = __esm(() => {
|
|
487143
|
+
init__baseSet();
|
|
487144
|
+
setWith_default = setWith;
|
|
487145
|
+
});
|
|
487146
|
+
|
|
487188
487147
|
// src/cli/treeify.ts
|
|
487189
487148
|
function treeify(obj, options2 = {}) {
|
|
487190
487149
|
const {
|
|
@@ -491457,7 +491416,7 @@ After writing the skill file(s), inform the user:
|
|
|
491457
491416
|
init_verifiers_default = command5;
|
|
491458
491417
|
});
|
|
491459
491418
|
|
|
491460
|
-
// missing-module-stub:/
|
|
491419
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/commands/cli/keybindings/index.js
|
|
491461
491420
|
var noop29 = () => null, keybindings_default;
|
|
491462
491421
|
var init_keybindings = __esm(() => {
|
|
491463
491422
|
keybindings_default = noop29;
|
|
@@ -525754,7 +525713,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
525754
525713
|
if (resCode !== undefined) {
|
|
525755
525714
|
dbcsCode = resCode;
|
|
525756
525715
|
nextChar = uCode;
|
|
525757
|
-
}
|
|
525716
|
+
}
|
|
525758
525717
|
}
|
|
525759
525718
|
seqObj = undefined;
|
|
525760
525719
|
} else if (uCode >= 0) {
|
|
@@ -525815,7 +525774,7 @@ var require_dbcs_codec = __commonJS((exports) => {
|
|
|
525815
525774
|
newBuf[j++] = dbcsCode >> 8;
|
|
525816
525775
|
newBuf[j++] = dbcsCode & 255;
|
|
525817
525776
|
}
|
|
525818
|
-
}
|
|
525777
|
+
}
|
|
525819
525778
|
this.seqObj = undefined;
|
|
525820
525779
|
}
|
|
525821
525780
|
if (this.leadSurrogate !== -1) {
|
|
@@ -535435,7 +535394,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
535435
535394
|
var call58 = async () => {
|
|
535436
535395
|
return {
|
|
535437
535396
|
type: "text",
|
|
535438
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
535397
|
+
value: `${"99.0.0"} (built ${"2026-05-19T09:07:47.609Z"})`
|
|
535439
535398
|
};
|
|
535440
535399
|
}, version2, version_default;
|
|
535441
535400
|
var init_version = __esm(() => {
|
|
@@ -557545,7 +557504,7 @@ function WelcomeV2() {
|
|
|
557545
557504
|
dimColor: true,
|
|
557546
557505
|
children: [
|
|
557547
557506
|
"v",
|
|
557548
|
-
"0.4.0",
|
|
557507
|
+
"0.4.2-beta.0",
|
|
557549
557508
|
" "
|
|
557550
557509
|
]
|
|
557551
557510
|
}, undefined, true, undefined, this)
|
|
@@ -557745,7 +557704,7 @@ function WelcomeV2() {
|
|
|
557745
557704
|
dimColor: true,
|
|
557746
557705
|
children: [
|
|
557747
557706
|
"v",
|
|
557748
|
-
"0.4.0",
|
|
557707
|
+
"0.4.2-beta.0",
|
|
557749
557708
|
" "
|
|
557750
557709
|
]
|
|
557751
557710
|
}, undefined, true, undefined, this)
|
|
@@ -557971,7 +557930,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
557971
557930
|
dimColor: true,
|
|
557972
557931
|
children: [
|
|
557973
557932
|
"v",
|
|
557974
|
-
"0.4.0",
|
|
557933
|
+
"0.4.2-beta.0",
|
|
557975
557934
|
" "
|
|
557976
557935
|
]
|
|
557977
557936
|
}, undefined, true, undefined, this);
|
|
@@ -558225,7 +558184,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
558225
558184
|
dimColor: true,
|
|
558226
558185
|
children: [
|
|
558227
558186
|
"v",
|
|
558228
|
-
"0.4.0",
|
|
558187
|
+
"0.4.2-beta.0",
|
|
558229
558188
|
" "
|
|
558230
558189
|
]
|
|
558231
558190
|
}, undefined, true, undefined, this);
|
|
@@ -569823,7 +569782,7 @@ var init_sessionUrl = __esm(() => {
|
|
|
569823
569782
|
init_uuid();
|
|
569824
569783
|
});
|
|
569825
569784
|
|
|
569826
|
-
// missing-module-stub:/
|
|
569785
|
+
// missing-module-stub:/home/runner/work/opencow-agent-sdk/opencow-agent-sdk/src/cli/commands.js
|
|
569827
569786
|
var noop31 = () => null, getCommands2, clearCommandsCache3;
|
|
569828
569787
|
var init_commands3 = __esm(() => {
|
|
569829
569788
|
getCommands2 = noop31;
|
|
@@ -579071,7 +579030,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
579071
579030
|
pendingHookMessages
|
|
579072
579031
|
}, renderAndRun);
|
|
579073
579032
|
}
|
|
579074
|
-
}).version("0.4.0 (OpenCow)", "-v, --version", "Output the version number");
|
|
579033
|
+
}).version("0.4.2-beta.0 (OpenCow)", "-v, --version", "Output the version number");
|
|
579075
579034
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
579076
579035
|
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
579036
|
if (canUserConfigureAdvisor()) {
|
|
@@ -579717,7 +579676,7 @@ if (false) {}
|
|
|
579717
579676
|
async function main2() {
|
|
579718
579677
|
const args = process.argv.slice(2);
|
|
579719
579678
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
579720
|
-
console.log(`${"0.4.0"} (OpenCow)`);
|
|
579679
|
+
console.log(`${"0.4.2-beta.0"} (OpenCow)`);
|
|
579721
579680
|
return;
|
|
579722
579681
|
}
|
|
579723
579682
|
if (args.includes("--provider")) {
|
|
@@ -579835,4 +579794,4 @@ async function main2() {
|
|
|
579835
579794
|
}
|
|
579836
579795
|
main2();
|
|
579837
579796
|
|
|
579838
|
-
//# debugId=
|
|
579797
|
+
//# debugId=B27BB5D17B4E841F64756E2164756E21
|