@zpi-dev/agent-sdk 0.1.60 → 0.1.61
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 +1 -1
- package/dist/{chunk-AR5RMMMN.js → chunk-GPIEWH3K.js} +324 -309
- package/dist/chunk-GPIEWH3K.js.map +1 -0
- package/dist/{chunk-4WFFCN2C.js → chunk-YPFTXFZL.js} +527 -479
- package/dist/chunk-YPFTXFZL.js.map +1 -0
- package/dist/host.js +3 -5
- package/dist/host.js.map +1 -1
- package/dist/index.js +2 -4
- package/dist/{src-7WDJXP5P.js → src-GYA4LFM7.js} +2 -4
- package/dist/types/ai/src/types.d.ts +2 -1
- package/dist/types/ai/src/utils/text.d.ts +1 -5
- package/dist/types/ai/src/utils/transcript.d.ts +0 -13
- package/dist/types/coding-agent/src/core/agent-session.d.ts +3 -2
- package/dist/types/coding-agent/src/core/dynamic-context.d.ts +3 -0
- package/dist/types/coding-agent/src/core/resources.d.ts +1 -1
- package/dist/types/coding-agent/src/core/sdk.d.ts +1 -3
- package/dist/types/coding-agent/src/core/session-manager.d.ts +1 -0
- package/dist/types/coding-agent/src/core/system-prompt.d.ts +9 -2
- package/dist/types/coding-agent/src/plugins/assembly.d.ts +1 -2
- package/dist/types/coding-agent/src/plugins/types.d.ts +3 -2
- package/package.json +5 -5
- package/dist/chunk-4WFFCN2C.js.map +0 -1
- package/dist/chunk-AR5RMMMN.js.map +0 -1
- package/dist/chunk-RAZL7ZAW.js +0 -13451
- package/dist/chunk-RAZL7ZAW.js.map +0 -1
- package/dist/chunk-TUOZKHGN.js +0 -21
- package/dist/chunk-TUOZKHGN.js.map +0 -1
- package/dist/chunk-YBW5XDR7.js +0 -48
- package/dist/node-WXHENNL2.js +0 -21
- package/dist/node-WXHENNL2.js.map +0 -1
- package/dist/node-XSTAMDFW.js +0 -2225
- package/dist/node-XSTAMDFW.js.map +0 -1
- package/dist/src-7WDJXP5P.js.map +0 -1
- /package/dist/{chunk-YBW5XDR7.js.map → src-GYA4LFM7.js.map} +0 -0
|
@@ -6,6 +6,10 @@ import {
|
|
|
6
6
|
OpenAIError,
|
|
7
7
|
__classPrivateFieldGet,
|
|
8
8
|
__classPrivateFieldSet,
|
|
9
|
+
__commonJS,
|
|
10
|
+
__export,
|
|
11
|
+
__require,
|
|
12
|
+
__toESM,
|
|
9
13
|
abortable,
|
|
10
14
|
assertSupportedOptions,
|
|
11
15
|
assertX509WebSocketSupported,
|
|
@@ -42,17 +46,11 @@ import {
|
|
|
42
46
|
toToolDeclaration,
|
|
43
47
|
validateReasoningConfig,
|
|
44
48
|
validateThinkingMap
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import {
|
|
47
|
-
__commonJS,
|
|
48
|
-
__export,
|
|
49
|
-
__require,
|
|
50
|
-
__toESM
|
|
51
|
-
} from "./chunk-YBW5XDR7.js";
|
|
49
|
+
} from "./chunk-GPIEWH3K.js";
|
|
52
50
|
|
|
53
|
-
// node_modules/ms/index.js
|
|
51
|
+
// ../../node_modules/ms/index.js
|
|
54
52
|
var require_ms = __commonJS({
|
|
55
|
-
"node_modules/ms/index.js"(exports, module) {
|
|
53
|
+
"../../node_modules/ms/index.js"(exports, module) {
|
|
56
54
|
"use strict";
|
|
57
55
|
var s = 1e3;
|
|
58
56
|
var m = s * 60;
|
|
@@ -167,9 +165,9 @@ var require_ms = __commonJS({
|
|
|
167
165
|
}
|
|
168
166
|
});
|
|
169
167
|
|
|
170
|
-
// node_modules/debug/src/common.js
|
|
168
|
+
// ../../node_modules/debug/src/common.js
|
|
171
169
|
var require_common = __commonJS({
|
|
172
|
-
"node_modules/debug/src/common.js"(exports, module) {
|
|
170
|
+
"../../node_modules/debug/src/common.js"(exports, module) {
|
|
173
171
|
"use strict";
|
|
174
172
|
function setup(env) {
|
|
175
173
|
createDebug.debug = createDebug;
|
|
@@ -345,9 +343,9 @@ var require_common = __commonJS({
|
|
|
345
343
|
}
|
|
346
344
|
});
|
|
347
345
|
|
|
348
|
-
// node_modules/debug/src/browser.js
|
|
346
|
+
// ../../node_modules/debug/src/browser.js
|
|
349
347
|
var require_browser = __commonJS({
|
|
350
|
-
"node_modules/debug/src/browser.js"(exports, module) {
|
|
348
|
+
"../../node_modules/debug/src/browser.js"(exports, module) {
|
|
351
349
|
"use strict";
|
|
352
350
|
exports.formatArgs = formatArgs;
|
|
353
351
|
exports.save = save;
|
|
@@ -516,9 +514,9 @@ var require_browser = __commonJS({
|
|
|
516
514
|
}
|
|
517
515
|
});
|
|
518
516
|
|
|
519
|
-
// node_modules/has-flag/index.js
|
|
517
|
+
// ../../node_modules/has-flag/index.js
|
|
520
518
|
var require_has_flag = __commonJS({
|
|
521
|
-
"node_modules/has-flag/index.js"(exports, module) {
|
|
519
|
+
"../../node_modules/has-flag/index.js"(exports, module) {
|
|
522
520
|
"use strict";
|
|
523
521
|
module.exports = (flag, argv = process.argv) => {
|
|
524
522
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
@@ -529,9 +527,9 @@ var require_has_flag = __commonJS({
|
|
|
529
527
|
}
|
|
530
528
|
});
|
|
531
529
|
|
|
532
|
-
// node_modules/supports-color/index.js
|
|
530
|
+
// ../../node_modules/supports-color/index.js
|
|
533
531
|
var require_supports_color = __commonJS({
|
|
534
|
-
"node_modules/supports-color/index.js"(exports, module) {
|
|
532
|
+
"../../node_modules/supports-color/index.js"(exports, module) {
|
|
535
533
|
"use strict";
|
|
536
534
|
var os = __require("os");
|
|
537
535
|
var tty = __require("tty");
|
|
@@ -600,10 +598,10 @@ var require_supports_color = __commonJS({
|
|
|
600
598
|
return 3;
|
|
601
599
|
}
|
|
602
600
|
if ("TERM_PROGRAM" in env) {
|
|
603
|
-
const
|
|
601
|
+
const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
604
602
|
switch (env.TERM_PROGRAM) {
|
|
605
603
|
case "iTerm.app":
|
|
606
|
-
return
|
|
604
|
+
return version2 >= 3 ? 3 : 2;
|
|
607
605
|
case "Apple_Terminal":
|
|
608
606
|
return 2;
|
|
609
607
|
}
|
|
@@ -631,9 +629,9 @@ var require_supports_color = __commonJS({
|
|
|
631
629
|
}
|
|
632
630
|
});
|
|
633
631
|
|
|
634
|
-
// node_modules/debug/src/node.js
|
|
632
|
+
// ../../node_modules/debug/src/node.js
|
|
635
633
|
var require_node = __commonJS({
|
|
636
|
-
"node_modules/debug/src/node.js"(exports, module) {
|
|
634
|
+
"../../node_modules/debug/src/node.js"(exports, module) {
|
|
637
635
|
"use strict";
|
|
638
636
|
var tty = __require("tty");
|
|
639
637
|
var util = __require("util");
|
|
@@ -806,9 +804,9 @@ var require_node = __commonJS({
|
|
|
806
804
|
}
|
|
807
805
|
});
|
|
808
806
|
|
|
809
|
-
// node_modules/debug/src/index.js
|
|
807
|
+
// ../../node_modules/debug/src/index.js
|
|
810
808
|
var require_src = __commonJS({
|
|
811
|
-
"node_modules/debug/src/index.js"(exports, module) {
|
|
809
|
+
"../../node_modules/debug/src/index.js"(exports, module) {
|
|
812
810
|
"use strict";
|
|
813
811
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
814
812
|
module.exports = require_browser();
|
|
@@ -818,9 +816,9 @@ var require_src = __commonJS({
|
|
|
818
816
|
}
|
|
819
817
|
});
|
|
820
818
|
|
|
821
|
-
// node_modules/agent-base/dist/helpers.js
|
|
819
|
+
// ../../node_modules/agent-base/dist/helpers.js
|
|
822
820
|
var require_helpers = __commonJS({
|
|
823
|
-
"node_modules/agent-base/dist/helpers.js"(exports) {
|
|
821
|
+
"../../node_modules/agent-base/dist/helpers.js"(exports) {
|
|
824
822
|
"use strict";
|
|
825
823
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
826
824
|
if (k2 === void 0) k2 = k;
|
|
@@ -888,9 +886,9 @@ var require_helpers = __commonJS({
|
|
|
888
886
|
}
|
|
889
887
|
});
|
|
890
888
|
|
|
891
|
-
// node_modules/agent-base/dist/index.js
|
|
889
|
+
// ../../node_modules/agent-base/dist/index.js
|
|
892
890
|
var require_dist = __commonJS({
|
|
893
|
-
"node_modules/agent-base/dist/index.js"(exports) {
|
|
891
|
+
"../../node_modules/agent-base/dist/index.js"(exports) {
|
|
894
892
|
"use strict";
|
|
895
893
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
896
894
|
if (k2 === void 0) k2 = k;
|
|
@@ -1044,9 +1042,9 @@ var require_dist = __commonJS({
|
|
|
1044
1042
|
}
|
|
1045
1043
|
});
|
|
1046
1044
|
|
|
1047
|
-
// node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
1045
|
+
// ../../node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
1048
1046
|
var require_parse_proxy_response = __commonJS({
|
|
1049
|
-
"node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
1047
|
+
"../../node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
1050
1048
|
"use strict";
|
|
1051
1049
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1052
1050
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -1140,9 +1138,9 @@ var require_parse_proxy_response = __commonJS({
|
|
|
1140
1138
|
}
|
|
1141
1139
|
});
|
|
1142
1140
|
|
|
1143
|
-
// node_modules/https-proxy-agent/dist/index.js
|
|
1141
|
+
// ../../node_modules/https-proxy-agent/dist/index.js
|
|
1144
1142
|
var require_dist2 = __commonJS({
|
|
1145
|
-
"node_modules/https-proxy-agent/dist/index.js"(exports) {
|
|
1143
|
+
"../../node_modules/https-proxy-agent/dist/index.js"(exports) {
|
|
1146
1144
|
"use strict";
|
|
1147
1145
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
1148
1146
|
if (k2 === void 0) k2 = k;
|
|
@@ -1290,9 +1288,9 @@ var require_dist2 = __commonJS({
|
|
|
1290
1288
|
}
|
|
1291
1289
|
});
|
|
1292
1290
|
|
|
1293
|
-
// node_modules/ws/lib/constants.js
|
|
1291
|
+
// ../../node_modules/ws/lib/constants.js
|
|
1294
1292
|
var require_constants = __commonJS({
|
|
1295
|
-
"node_modules/ws/lib/constants.js"(exports, module) {
|
|
1293
|
+
"../../node_modules/ws/lib/constants.js"(exports, module) {
|
|
1296
1294
|
"use strict";
|
|
1297
1295
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
1298
1296
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -1313,9 +1311,9 @@ var require_constants = __commonJS({
|
|
|
1313
1311
|
}
|
|
1314
1312
|
});
|
|
1315
1313
|
|
|
1316
|
-
// node_modules/ws/lib/buffer-util.js
|
|
1314
|
+
// ../../node_modules/ws/lib/buffer-util.js
|
|
1317
1315
|
var require_buffer_util = __commonJS({
|
|
1318
|
-
"node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
1316
|
+
"../../node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
1319
1317
|
"use strict";
|
|
1320
1318
|
var { EMPTY_BUFFER } = require_constants();
|
|
1321
1319
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -1388,9 +1386,9 @@ var require_buffer_util = __commonJS({
|
|
|
1388
1386
|
}
|
|
1389
1387
|
});
|
|
1390
1388
|
|
|
1391
|
-
// node_modules/ws/lib/limiter.js
|
|
1389
|
+
// ../../node_modules/ws/lib/limiter.js
|
|
1392
1390
|
var require_limiter = __commonJS({
|
|
1393
|
-
"node_modules/ws/lib/limiter.js"(exports, module) {
|
|
1391
|
+
"../../node_modules/ws/lib/limiter.js"(exports, module) {
|
|
1394
1392
|
"use strict";
|
|
1395
1393
|
var kDone = /* @__PURE__ */ Symbol("kDone");
|
|
1396
1394
|
var kRun = /* @__PURE__ */ Symbol("kRun");
|
|
@@ -1438,9 +1436,9 @@ var require_limiter = __commonJS({
|
|
|
1438
1436
|
}
|
|
1439
1437
|
});
|
|
1440
1438
|
|
|
1441
|
-
// node_modules/ws/lib/permessage-deflate.js
|
|
1439
|
+
// ../../node_modules/ws/lib/permessage-deflate.js
|
|
1442
1440
|
var require_permessage_deflate = __commonJS({
|
|
1443
|
-
"node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
1441
|
+
"../../node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
1444
1442
|
"use strict";
|
|
1445
1443
|
var zlib = __require("zlib");
|
|
1446
1444
|
var bufferUtil = require_buffer_util();
|
|
@@ -1821,9 +1819,9 @@ var require_permessage_deflate = __commonJS({
|
|
|
1821
1819
|
}
|
|
1822
1820
|
});
|
|
1823
1821
|
|
|
1824
|
-
// node_modules/ws/lib/validation.js
|
|
1822
|
+
// ../../node_modules/ws/lib/validation.js
|
|
1825
1823
|
var require_validation = __commonJS({
|
|
1826
|
-
"node_modules/ws/lib/validation.js"(exports, module) {
|
|
1824
|
+
"../../node_modules/ws/lib/validation.js"(exports, module) {
|
|
1827
1825
|
"use strict";
|
|
1828
1826
|
var { isUtf8 } = __require("buffer");
|
|
1829
1827
|
var { hasBlob } = require_constants();
|
|
@@ -2022,9 +2020,9 @@ var require_validation = __commonJS({
|
|
|
2022
2020
|
}
|
|
2023
2021
|
});
|
|
2024
2022
|
|
|
2025
|
-
// node_modules/ws/lib/receiver.js
|
|
2023
|
+
// ../../node_modules/ws/lib/receiver.js
|
|
2026
2024
|
var require_receiver = __commonJS({
|
|
2027
|
-
"node_modules/ws/lib/receiver.js"(exports, module) {
|
|
2025
|
+
"../../node_modules/ws/lib/receiver.js"(exports, module) {
|
|
2028
2026
|
"use strict";
|
|
2029
2027
|
var { Writable } = __require("stream");
|
|
2030
2028
|
var PerMessageDeflate2 = require_permessage_deflate();
|
|
@@ -2645,9 +2643,9 @@ var require_receiver = __commonJS({
|
|
|
2645
2643
|
}
|
|
2646
2644
|
});
|
|
2647
2645
|
|
|
2648
|
-
// node_modules/ws/lib/sender.js
|
|
2646
|
+
// ../../node_modules/ws/lib/sender.js
|
|
2649
2647
|
var require_sender = __commonJS({
|
|
2650
|
-
"node_modules/ws/lib/sender.js"(exports, module) {
|
|
2648
|
+
"../../node_modules/ws/lib/sender.js"(exports, module) {
|
|
2651
2649
|
"use strict";
|
|
2652
2650
|
var { Duplex } = __require("stream");
|
|
2653
2651
|
var { randomFillSync } = __require("crypto");
|
|
@@ -3138,9 +3136,9 @@ var require_sender = __commonJS({
|
|
|
3138
3136
|
}
|
|
3139
3137
|
});
|
|
3140
3138
|
|
|
3141
|
-
// node_modules/ws/lib/event-target.js
|
|
3139
|
+
// ../../node_modules/ws/lib/event-target.js
|
|
3142
3140
|
var require_event_target = __commonJS({
|
|
3143
|
-
"node_modules/ws/lib/event-target.js"(exports, module) {
|
|
3141
|
+
"../../node_modules/ws/lib/event-target.js"(exports, module) {
|
|
3144
3142
|
"use strict";
|
|
3145
3143
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
3146
3144
|
var kCode = /* @__PURE__ */ Symbol("kCode");
|
|
@@ -3367,9 +3365,9 @@ var require_event_target = __commonJS({
|
|
|
3367
3365
|
}
|
|
3368
3366
|
});
|
|
3369
3367
|
|
|
3370
|
-
// node_modules/ws/lib/extension.js
|
|
3368
|
+
// ../../node_modules/ws/lib/extension.js
|
|
3371
3369
|
var require_extension = __commonJS({
|
|
3372
|
-
"node_modules/ws/lib/extension.js"(exports, module) {
|
|
3370
|
+
"../../node_modules/ws/lib/extension.js"(exports, module) {
|
|
3373
3371
|
"use strict";
|
|
3374
3372
|
var { tokenChars } = require_validation();
|
|
3375
3373
|
function push(dest, name, elem) {
|
|
@@ -3520,9 +3518,9 @@ var require_extension = __commonJS({
|
|
|
3520
3518
|
}
|
|
3521
3519
|
});
|
|
3522
3520
|
|
|
3523
|
-
// node_modules/ws/lib/websocket.js
|
|
3521
|
+
// ../../node_modules/ws/lib/websocket.js
|
|
3524
3522
|
var require_websocket = __commonJS({
|
|
3525
|
-
"node_modules/ws/lib/websocket.js"(exports, module) {
|
|
3523
|
+
"../../node_modules/ws/lib/websocket.js"(exports, module) {
|
|
3526
3524
|
"use strict";
|
|
3527
3525
|
var EventEmitter2 = __require("events");
|
|
3528
3526
|
var https = __require("https");
|
|
@@ -4429,9 +4427,9 @@ var require_websocket = __commonJS({
|
|
|
4429
4427
|
}
|
|
4430
4428
|
});
|
|
4431
4429
|
|
|
4432
|
-
// node_modules/ws/lib/stream.js
|
|
4430
|
+
// ../../node_modules/ws/lib/stream.js
|
|
4433
4431
|
var require_stream = __commonJS({
|
|
4434
|
-
"node_modules/ws/lib/stream.js"(exports, module) {
|
|
4432
|
+
"../../node_modules/ws/lib/stream.js"(exports, module) {
|
|
4435
4433
|
"use strict";
|
|
4436
4434
|
var WebSocket2 = require_websocket();
|
|
4437
4435
|
var { Duplex } = __require("stream");
|
|
@@ -4527,9 +4525,9 @@ var require_stream = __commonJS({
|
|
|
4527
4525
|
}
|
|
4528
4526
|
});
|
|
4529
4527
|
|
|
4530
|
-
// node_modules/ws/lib/subprotocol.js
|
|
4528
|
+
// ../../node_modules/ws/lib/subprotocol.js
|
|
4531
4529
|
var require_subprotocol = __commonJS({
|
|
4532
|
-
"node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
4530
|
+
"../../node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
4533
4531
|
"use strict";
|
|
4534
4532
|
var { tokenChars } = require_validation();
|
|
4535
4533
|
function parse(header2) {
|
|
@@ -4572,9 +4570,9 @@ var require_subprotocol = __commonJS({
|
|
|
4572
4570
|
}
|
|
4573
4571
|
});
|
|
4574
4572
|
|
|
4575
|
-
// node_modules/ws/lib/websocket-server.js
|
|
4573
|
+
// ../../node_modules/ws/lib/websocket-server.js
|
|
4576
4574
|
var require_websocket_server = __commonJS({
|
|
4577
|
-
"node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
4575
|
+
"../../node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
4578
4576
|
"use strict";
|
|
4579
4577
|
var EventEmitter2 = __require("events");
|
|
4580
4578
|
var http = __require("http");
|
|
@@ -4780,7 +4778,7 @@ var require_websocket_server = __commonJS({
|
|
|
4780
4778
|
socket.on("error", socketOnError);
|
|
4781
4779
|
const key = req.headers["sec-websocket-key"];
|
|
4782
4780
|
const upgrade = req.headers.upgrade;
|
|
4783
|
-
const
|
|
4781
|
+
const version2 = +req.headers["sec-websocket-version"];
|
|
4784
4782
|
if (req.method !== "GET") {
|
|
4785
4783
|
const message2 = "Invalid HTTP method";
|
|
4786
4784
|
abortHandshakeOrEmitwsClientError(this, req, socket, 405, message2);
|
|
@@ -4796,7 +4794,7 @@ var require_websocket_server = __commonJS({
|
|
|
4796
4794
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message2);
|
|
4797
4795
|
return;
|
|
4798
4796
|
}
|
|
4799
|
-
if (
|
|
4797
|
+
if (version2 !== 13 && version2 !== 8) {
|
|
4800
4798
|
const message2 = "Missing or invalid Sec-WebSocket-Version header";
|
|
4801
4799
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message2, {
|
|
4802
4800
|
"Sec-WebSocket-Version": "13, 8"
|
|
@@ -4840,7 +4838,7 @@ var require_websocket_server = __commonJS({
|
|
|
4840
4838
|
}
|
|
4841
4839
|
if (this.options.verifyClient) {
|
|
4842
4840
|
const info = {
|
|
4843
|
-
origin: req.headers[`${
|
|
4841
|
+
origin: req.headers[`${version2 === 8 ? "sec-websocket-origin" : "origin"}`],
|
|
4844
4842
|
secure: !!(req.socket.authorized || req.socket.encrypted),
|
|
4845
4843
|
req
|
|
4846
4844
|
};
|
|
@@ -4973,9 +4971,9 @@ var require_websocket_server = __commonJS({
|
|
|
4973
4971
|
}
|
|
4974
4972
|
});
|
|
4975
4973
|
|
|
4976
|
-
// node_modules/smart-buffer/build/utils.js
|
|
4974
|
+
// ../../node_modules/smart-buffer/build/utils.js
|
|
4977
4975
|
var require_utils = __commonJS({
|
|
4978
|
-
"node_modules/smart-buffer/build/utils.js"(exports) {
|
|
4976
|
+
"../../node_modules/smart-buffer/build/utils.js"(exports) {
|
|
4979
4977
|
"use strict";
|
|
4980
4978
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4981
4979
|
var buffer_1 = __require("buffer");
|
|
@@ -5042,9 +5040,9 @@ var require_utils = __commonJS({
|
|
|
5042
5040
|
}
|
|
5043
5041
|
});
|
|
5044
5042
|
|
|
5045
|
-
// node_modules/smart-buffer/build/smartbuffer.js
|
|
5043
|
+
// ../../node_modules/smart-buffer/build/smartbuffer.js
|
|
5046
5044
|
var require_smartbuffer = __commonJS({
|
|
5047
|
-
"node_modules/smart-buffer/build/smartbuffer.js"(exports) {
|
|
5045
|
+
"../../node_modules/smart-buffer/build/smartbuffer.js"(exports) {
|
|
5048
5046
|
"use strict";
|
|
5049
5047
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5050
5048
|
var utils_1 = require_utils();
|
|
@@ -6200,9 +6198,9 @@ var require_smartbuffer = __commonJS({
|
|
|
6200
6198
|
}
|
|
6201
6199
|
});
|
|
6202
6200
|
|
|
6203
|
-
// node_modules/socks/build/common/constants.js
|
|
6201
|
+
// ../../node_modules/socks/build/common/constants.js
|
|
6204
6202
|
var require_constants2 = __commonJS({
|
|
6205
|
-
"node_modules/socks/build/common/constants.js"(exports) {
|
|
6203
|
+
"../../node_modules/socks/build/common/constants.js"(exports) {
|
|
6206
6204
|
"use strict";
|
|
6207
6205
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6208
6206
|
exports.SOCKS5_NO_ACCEPTABLE_AUTH = exports.SOCKS5_CUSTOM_AUTH_END = exports.SOCKS5_CUSTOM_AUTH_START = exports.SOCKS_INCOMING_PACKET_SIZES = exports.SocksClientState = exports.Socks5Response = exports.Socks5HostType = exports.Socks5Auth = exports.Socks4Response = exports.SocksCommand = exports.ERRORS = exports.DEFAULT_TIMEOUT = void 0;
|
|
@@ -6317,9 +6315,9 @@ var require_constants2 = __commonJS({
|
|
|
6317
6315
|
}
|
|
6318
6316
|
});
|
|
6319
6317
|
|
|
6320
|
-
// node_modules/socks/build/common/util.js
|
|
6318
|
+
// ../../node_modules/socks/build/common/util.js
|
|
6321
6319
|
var require_util = __commonJS({
|
|
6322
|
-
"node_modules/socks/build/common/util.js"(exports) {
|
|
6320
|
+
"../../node_modules/socks/build/common/util.js"(exports) {
|
|
6323
6321
|
"use strict";
|
|
6324
6322
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6325
6323
|
exports.SocksClientError = void 0;
|
|
@@ -6340,9 +6338,9 @@ var require_util = __commonJS({
|
|
|
6340
6338
|
}
|
|
6341
6339
|
});
|
|
6342
6340
|
|
|
6343
|
-
// node_modules/ip-address/dist/address-error.js
|
|
6341
|
+
// ../../node_modules/ip-address/dist/address-error.js
|
|
6344
6342
|
var require_address_error = __commonJS({
|
|
6345
|
-
"node_modules/ip-address/dist/address-error.js"(exports) {
|
|
6343
|
+
"../../node_modules/ip-address/dist/address-error.js"(exports) {
|
|
6346
6344
|
"use strict";
|
|
6347
6345
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6348
6346
|
exports.AddressError = void 0;
|
|
@@ -6357,9 +6355,9 @@ var require_address_error = __commonJS({
|
|
|
6357
6355
|
}
|
|
6358
6356
|
});
|
|
6359
6357
|
|
|
6360
|
-
// node_modules/ip-address/dist/common.js
|
|
6358
|
+
// ../../node_modules/ip-address/dist/common.js
|
|
6361
6359
|
var require_common2 = __commonJS({
|
|
6362
|
-
"node_modules/ip-address/dist/common.js"(exports) {
|
|
6360
|
+
"../../node_modules/ip-address/dist/common.js"(exports) {
|
|
6363
6361
|
"use strict";
|
|
6364
6362
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6365
6363
|
exports.isInSubnet = isInSubnet;
|
|
@@ -6460,9 +6458,9 @@ var require_common2 = __commonJS({
|
|
|
6460
6458
|
}
|
|
6461
6459
|
});
|
|
6462
6460
|
|
|
6463
|
-
// node_modules/ip-address/dist/v4/constants.js
|
|
6461
|
+
// ../../node_modules/ip-address/dist/v4/constants.js
|
|
6464
6462
|
var require_constants3 = __commonJS({
|
|
6465
|
-
"node_modules/ip-address/dist/v4/constants.js"(exports) {
|
|
6463
|
+
"../../node_modules/ip-address/dist/v4/constants.js"(exports) {
|
|
6466
6464
|
"use strict";
|
|
6467
6465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6468
6466
|
exports.SPECIAL_PURPOSE = exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
@@ -6501,9 +6499,9 @@ var require_constants3 = __commonJS({
|
|
|
6501
6499
|
}
|
|
6502
6500
|
});
|
|
6503
6501
|
|
|
6504
|
-
// node_modules/ip-address/dist/ipv4.js
|
|
6502
|
+
// ../../node_modules/ip-address/dist/ipv4.js
|
|
6505
6503
|
var require_ipv4 = __commonJS({
|
|
6506
|
-
"node_modules/ip-address/dist/ipv4.js"(exports) {
|
|
6504
|
+
"../../node_modules/ip-address/dist/ipv4.js"(exports) {
|
|
6507
6505
|
"use strict";
|
|
6508
6506
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6509
6507
|
if (k2 === void 0) k2 = k;
|
|
@@ -7070,9 +7068,9 @@ var require_ipv4 = __commonJS({
|
|
|
7070
7068
|
}
|
|
7071
7069
|
});
|
|
7072
7070
|
|
|
7073
|
-
// node_modules/ip-address/dist/v6/constants.js
|
|
7071
|
+
// ../../node_modules/ip-address/dist/v6/constants.js
|
|
7074
7072
|
var require_constants4 = __commonJS({
|
|
7075
|
-
"node_modules/ip-address/dist/v6/constants.js"(exports) {
|
|
7073
|
+
"../../node_modules/ip-address/dist/v6/constants.js"(exports) {
|
|
7076
7074
|
"use strict";
|
|
7077
7075
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7078
7076
|
exports.SPECIAL_PURPOSE = exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0;
|
|
@@ -7160,9 +7158,9 @@ var require_constants4 = __commonJS({
|
|
|
7160
7158
|
}
|
|
7161
7159
|
});
|
|
7162
7160
|
|
|
7163
|
-
// node_modules/ip-address/dist/v6/helpers.js
|
|
7161
|
+
// ../../node_modules/ip-address/dist/v6/helpers.js
|
|
7164
7162
|
var require_helpers2 = __commonJS({
|
|
7165
|
-
"node_modules/ip-address/dist/v6/helpers.js"(exports) {
|
|
7163
|
+
"../../node_modules/ip-address/dist/v6/helpers.js"(exports) {
|
|
7166
7164
|
"use strict";
|
|
7167
7165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7168
7166
|
exports.escapeHtml = escapeHtml;
|
|
@@ -7199,9 +7197,9 @@ var require_helpers2 = __commonJS({
|
|
|
7199
7197
|
}
|
|
7200
7198
|
});
|
|
7201
7199
|
|
|
7202
|
-
// node_modules/ip-address/dist/v6/regular-expressions.js
|
|
7200
|
+
// ../../node_modules/ip-address/dist/v6/regular-expressions.js
|
|
7203
7201
|
var require_regular_expressions = __commonJS({
|
|
7204
|
-
"node_modules/ip-address/dist/v6/regular-expressions.js"(exports) {
|
|
7202
|
+
"../../node_modules/ip-address/dist/v6/regular-expressions.js"(exports) {
|
|
7205
7203
|
"use strict";
|
|
7206
7204
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
7207
7205
|
if (k2 === void 0) k2 = k;
|
|
@@ -7291,9 +7289,9 @@ var require_regular_expressions = __commonJS({
|
|
|
7291
7289
|
}
|
|
7292
7290
|
});
|
|
7293
7291
|
|
|
7294
|
-
// node_modules/ip-address/dist/ipv6.js
|
|
7292
|
+
// ../../node_modules/ip-address/dist/ipv6.js
|
|
7295
7293
|
var require_ipv6 = __commonJS({
|
|
7296
|
-
"node_modules/ip-address/dist/ipv6.js"(exports) {
|
|
7294
|
+
"../../node_modules/ip-address/dist/ipv6.js"(exports) {
|
|
7297
7295
|
"use strict";
|
|
7298
7296
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
7299
7297
|
if (k2 === void 0) k2 = k;
|
|
@@ -8624,9 +8622,9 @@ var require_ipv6 = __commonJS({
|
|
|
8624
8622
|
}
|
|
8625
8623
|
});
|
|
8626
8624
|
|
|
8627
|
-
// node_modules/ip-address/dist/ip-address.js
|
|
8625
|
+
// ../../node_modules/ip-address/dist/ip-address.js
|
|
8628
8626
|
var require_ip_address = __commonJS({
|
|
8629
|
-
"node_modules/ip-address/dist/ip-address.js"(exports) {
|
|
8627
|
+
"../../node_modules/ip-address/dist/ip-address.js"(exports) {
|
|
8630
8628
|
"use strict";
|
|
8631
8629
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
8632
8630
|
if (k2 === void 0) k2 = k;
|
|
@@ -8674,9 +8672,9 @@ var require_ip_address = __commonJS({
|
|
|
8674
8672
|
}
|
|
8675
8673
|
});
|
|
8676
8674
|
|
|
8677
|
-
// node_modules/socks/build/common/helpers.js
|
|
8675
|
+
// ../../node_modules/socks/build/common/helpers.js
|
|
8678
8676
|
var require_helpers3 = __commonJS({
|
|
8679
|
-
"node_modules/socks/build/common/helpers.js"(exports) {
|
|
8677
|
+
"../../node_modules/socks/build/common/helpers.js"(exports) {
|
|
8680
8678
|
"use strict";
|
|
8681
8679
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8682
8680
|
exports.validateSocksClientOptions = validateSocksClientOptions;
|
|
@@ -8780,9 +8778,9 @@ var require_helpers3 = __commonJS({
|
|
|
8780
8778
|
}
|
|
8781
8779
|
});
|
|
8782
8780
|
|
|
8783
|
-
// node_modules/socks/build/common/receivebuffer.js
|
|
8781
|
+
// ../../node_modules/socks/build/common/receivebuffer.js
|
|
8784
8782
|
var require_receivebuffer = __commonJS({
|
|
8785
|
-
"node_modules/socks/build/common/receivebuffer.js"(exports) {
|
|
8783
|
+
"../../node_modules/socks/build/common/receivebuffer.js"(exports) {
|
|
8786
8784
|
"use strict";
|
|
8787
8785
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8788
8786
|
exports.ReceiveBuffer = void 0;
|
|
@@ -8828,9 +8826,9 @@ var require_receivebuffer = __commonJS({
|
|
|
8828
8826
|
}
|
|
8829
8827
|
});
|
|
8830
8828
|
|
|
8831
|
-
// node_modules/socks/build/client/socksclient.js
|
|
8829
|
+
// ../../node_modules/socks/build/client/socksclient.js
|
|
8832
8830
|
var require_socksclient = __commonJS({
|
|
8833
|
-
"node_modules/socks/build/client/socksclient.js"(exports) {
|
|
8831
|
+
"../../node_modules/socks/build/client/socksclient.js"(exports) {
|
|
8834
8832
|
"use strict";
|
|
8835
8833
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
8836
8834
|
function adopt(value) {
|
|
@@ -9507,9 +9505,9 @@ var require_socksclient = __commonJS({
|
|
|
9507
9505
|
}
|
|
9508
9506
|
});
|
|
9509
9507
|
|
|
9510
|
-
// node_modules/socks/build/index.js
|
|
9508
|
+
// ../../node_modules/socks/build/index.js
|
|
9511
9509
|
var require_build = __commonJS({
|
|
9512
|
-
"node_modules/socks/build/index.js"(exports) {
|
|
9510
|
+
"../../node_modules/socks/build/index.js"(exports) {
|
|
9513
9511
|
"use strict";
|
|
9514
9512
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9515
9513
|
if (k2 === void 0) k2 = k;
|
|
@@ -9532,9 +9530,9 @@ var require_build = __commonJS({
|
|
|
9532
9530
|
}
|
|
9533
9531
|
});
|
|
9534
9532
|
|
|
9535
|
-
// node_modules/socks-proxy-agent/dist/index.js
|
|
9533
|
+
// ../../node_modules/socks-proxy-agent/dist/index.js
|
|
9536
9534
|
var require_dist3 = __commonJS({
|
|
9537
|
-
"node_modules/socks-proxy-agent/dist/index.js"(exports) {
|
|
9535
|
+
"../../node_modules/socks-proxy-agent/dist/index.js"(exports) {
|
|
9538
9536
|
"use strict";
|
|
9539
9537
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9540
9538
|
if (k2 === void 0) k2 = k;
|
|
@@ -9725,9 +9723,9 @@ var require_dist3 = __commonJS({
|
|
|
9725
9723
|
}
|
|
9726
9724
|
});
|
|
9727
9725
|
|
|
9728
|
-
// node_modules/yaml/dist/nodes/identity.js
|
|
9726
|
+
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
9729
9727
|
var require_identity = __commonJS({
|
|
9730
|
-
"node_modules/yaml/dist/nodes/identity.js"(exports) {
|
|
9728
|
+
"../../node_modules/yaml/dist/nodes/identity.js"(exports) {
|
|
9731
9729
|
"use strict";
|
|
9732
9730
|
var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
|
|
9733
9731
|
var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
|
|
@@ -9782,9 +9780,9 @@ var require_identity = __commonJS({
|
|
|
9782
9780
|
}
|
|
9783
9781
|
});
|
|
9784
9782
|
|
|
9785
|
-
// node_modules/yaml/dist/visit.js
|
|
9783
|
+
// ../../node_modules/yaml/dist/visit.js
|
|
9786
9784
|
var require_visit = __commonJS({
|
|
9787
|
-
"node_modules/yaml/dist/visit.js"(exports) {
|
|
9785
|
+
"../../node_modules/yaml/dist/visit.js"(exports) {
|
|
9788
9786
|
"use strict";
|
|
9789
9787
|
var identity = require_identity();
|
|
9790
9788
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
@@ -9940,9 +9938,9 @@ var require_visit = __commonJS({
|
|
|
9940
9938
|
}
|
|
9941
9939
|
});
|
|
9942
9940
|
|
|
9943
|
-
// node_modules/yaml/dist/doc/directives.js
|
|
9941
|
+
// ../../node_modules/yaml/dist/doc/directives.js
|
|
9944
9942
|
var require_directives = __commonJS({
|
|
9945
|
-
"node_modules/yaml/dist/doc/directives.js"(exports) {
|
|
9943
|
+
"../../node_modules/yaml/dist/doc/directives.js"(exports) {
|
|
9946
9944
|
"use strict";
|
|
9947
9945
|
var identity = require_identity();
|
|
9948
9946
|
var visit = require_visit();
|
|
@@ -10017,13 +10015,13 @@ var require_directives = __commonJS({
|
|
|
10017
10015
|
onError(0, "%YAML directive should contain exactly one part");
|
|
10018
10016
|
return false;
|
|
10019
10017
|
}
|
|
10020
|
-
const [
|
|
10021
|
-
if (
|
|
10022
|
-
this.yaml.version =
|
|
10018
|
+
const [version2] = parts;
|
|
10019
|
+
if (version2 === "1.1" || version2 === "1.2") {
|
|
10020
|
+
this.yaml.version = version2;
|
|
10023
10021
|
return true;
|
|
10024
10022
|
} else {
|
|
10025
|
-
const isValid = /^\d+\.\d+$/.test(
|
|
10026
|
-
onError(6, `Unsupported YAML version ${
|
|
10023
|
+
const isValid = /^\d+\.\d+$/.test(version2);
|
|
10024
|
+
onError(6, `Unsupported YAML version ${version2}`, isValid);
|
|
10027
10025
|
return false;
|
|
10028
10026
|
}
|
|
10029
10027
|
}
|
|
@@ -10111,9 +10109,9 @@ var require_directives = __commonJS({
|
|
|
10111
10109
|
}
|
|
10112
10110
|
});
|
|
10113
10111
|
|
|
10114
|
-
// node_modules/yaml/dist/doc/anchors.js
|
|
10112
|
+
// ../../node_modules/yaml/dist/doc/anchors.js
|
|
10115
10113
|
var require_anchors = __commonJS({
|
|
10116
|
-
"node_modules/yaml/dist/doc/anchors.js"(exports) {
|
|
10114
|
+
"../../node_modules/yaml/dist/doc/anchors.js"(exports) {
|
|
10117
10115
|
"use strict";
|
|
10118
10116
|
var identity = require_identity();
|
|
10119
10117
|
var visit = require_visit();
|
|
@@ -10181,9 +10179,9 @@ var require_anchors = __commonJS({
|
|
|
10181
10179
|
}
|
|
10182
10180
|
});
|
|
10183
10181
|
|
|
10184
|
-
// node_modules/yaml/dist/doc/applyReviver.js
|
|
10182
|
+
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
|
10185
10183
|
var require_applyReviver = __commonJS({
|
|
10186
|
-
"node_modules/yaml/dist/doc/applyReviver.js"(exports) {
|
|
10184
|
+
"../../node_modules/yaml/dist/doc/applyReviver.js"(exports) {
|
|
10187
10185
|
"use strict";
|
|
10188
10186
|
function applyReviver(reviver, obj, key, val) {
|
|
10189
10187
|
if (val && typeof val === "object") {
|
|
@@ -10231,9 +10229,9 @@ var require_applyReviver = __commonJS({
|
|
|
10231
10229
|
}
|
|
10232
10230
|
});
|
|
10233
10231
|
|
|
10234
|
-
// node_modules/yaml/dist/nodes/toJS.js
|
|
10232
|
+
// ../../node_modules/yaml/dist/nodes/toJS.js
|
|
10235
10233
|
var require_toJS = __commonJS({
|
|
10236
|
-
"node_modules/yaml/dist/nodes/toJS.js"(exports) {
|
|
10234
|
+
"../../node_modules/yaml/dist/nodes/toJS.js"(exports) {
|
|
10237
10235
|
"use strict";
|
|
10238
10236
|
var identity = require_identity();
|
|
10239
10237
|
function toJS(value, arg, ctx) {
|
|
@@ -10261,9 +10259,9 @@ var require_toJS = __commonJS({
|
|
|
10261
10259
|
}
|
|
10262
10260
|
});
|
|
10263
10261
|
|
|
10264
|
-
// node_modules/yaml/dist/nodes/Node.js
|
|
10262
|
+
// ../../node_modules/yaml/dist/nodes/Node.js
|
|
10265
10263
|
var require_Node = __commonJS({
|
|
10266
|
-
"node_modules/yaml/dist/nodes/Node.js"(exports) {
|
|
10264
|
+
"../../node_modules/yaml/dist/nodes/Node.js"(exports) {
|
|
10267
10265
|
"use strict";
|
|
10268
10266
|
var applyReviver = require_applyReviver();
|
|
10269
10267
|
var identity = require_identity();
|
|
@@ -10302,9 +10300,9 @@ var require_Node = __commonJS({
|
|
|
10302
10300
|
}
|
|
10303
10301
|
});
|
|
10304
10302
|
|
|
10305
|
-
// node_modules/yaml/dist/nodes/Alias.js
|
|
10303
|
+
// ../../node_modules/yaml/dist/nodes/Alias.js
|
|
10306
10304
|
var require_Alias = __commonJS({
|
|
10307
|
-
"node_modules/yaml/dist/nodes/Alias.js"(exports) {
|
|
10305
|
+
"../../node_modules/yaml/dist/nodes/Alias.js"(exports) {
|
|
10308
10306
|
"use strict";
|
|
10309
10307
|
var anchors = require_anchors();
|
|
10310
10308
|
var visit = require_visit();
|
|
@@ -10420,9 +10418,9 @@ var require_Alias = __commonJS({
|
|
|
10420
10418
|
}
|
|
10421
10419
|
});
|
|
10422
10420
|
|
|
10423
|
-
// node_modules/yaml/dist/nodes/Scalar.js
|
|
10421
|
+
// ../../node_modules/yaml/dist/nodes/Scalar.js
|
|
10424
10422
|
var require_Scalar = __commonJS({
|
|
10425
|
-
"node_modules/yaml/dist/nodes/Scalar.js"(exports) {
|
|
10423
|
+
"../../node_modules/yaml/dist/nodes/Scalar.js"(exports) {
|
|
10426
10424
|
"use strict";
|
|
10427
10425
|
var identity = require_identity();
|
|
10428
10426
|
var Node = require_Node();
|
|
@@ -10450,9 +10448,9 @@ var require_Scalar = __commonJS({
|
|
|
10450
10448
|
}
|
|
10451
10449
|
});
|
|
10452
10450
|
|
|
10453
|
-
// node_modules/yaml/dist/doc/createNode.js
|
|
10451
|
+
// ../../node_modules/yaml/dist/doc/createNode.js
|
|
10454
10452
|
var require_createNode = __commonJS({
|
|
10455
|
-
"node_modules/yaml/dist/doc/createNode.js"(exports) {
|
|
10453
|
+
"../../node_modules/yaml/dist/doc/createNode.js"(exports) {
|
|
10456
10454
|
"use strict";
|
|
10457
10455
|
var Alias = require_Alias();
|
|
10458
10456
|
var identity = require_identity();
|
|
@@ -10525,9 +10523,9 @@ var require_createNode = __commonJS({
|
|
|
10525
10523
|
}
|
|
10526
10524
|
});
|
|
10527
10525
|
|
|
10528
|
-
// node_modules/yaml/dist/nodes/Collection.js
|
|
10526
|
+
// ../../node_modules/yaml/dist/nodes/Collection.js
|
|
10529
10527
|
var require_Collection = __commonJS({
|
|
10530
|
-
"node_modules/yaml/dist/nodes/Collection.js"(exports) {
|
|
10528
|
+
"../../node_modules/yaml/dist/nodes/Collection.js"(exports) {
|
|
10531
10529
|
"use strict";
|
|
10532
10530
|
var createNode = require_createNode();
|
|
10533
10531
|
var identity = require_identity();
|
|
@@ -10668,9 +10666,9 @@ var require_Collection = __commonJS({
|
|
|
10668
10666
|
}
|
|
10669
10667
|
});
|
|
10670
10668
|
|
|
10671
|
-
// node_modules/yaml/dist/stringify/stringifyComment.js
|
|
10669
|
+
// ../../node_modules/yaml/dist/stringify/stringifyComment.js
|
|
10672
10670
|
var require_stringifyComment = __commonJS({
|
|
10673
|
-
"node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
10671
|
+
"../../node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
10674
10672
|
"use strict";
|
|
10675
10673
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
10676
10674
|
function indentComment(comment, indent) {
|
|
@@ -10685,9 +10683,9 @@ var require_stringifyComment = __commonJS({
|
|
|
10685
10683
|
}
|
|
10686
10684
|
});
|
|
10687
10685
|
|
|
10688
|
-
// node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
10686
|
+
// ../../node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
10689
10687
|
var require_foldFlowLines = __commonJS({
|
|
10690
|
-
"node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
|
|
10688
|
+
"../../node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
|
|
10691
10689
|
"use strict";
|
|
10692
10690
|
var FOLD_FLOW = "flow";
|
|
10693
10691
|
var FOLD_BLOCK = "block";
|
|
@@ -10821,9 +10819,9 @@ ${indent}${text3.slice(fold + 1, end2)}`;
|
|
|
10821
10819
|
}
|
|
10822
10820
|
});
|
|
10823
10821
|
|
|
10824
|
-
// node_modules/yaml/dist/stringify/stringifyString.js
|
|
10822
|
+
// ../../node_modules/yaml/dist/stringify/stringifyString.js
|
|
10825
10823
|
var require_stringifyString = __commonJS({
|
|
10826
|
-
"node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
|
|
10824
|
+
"../../node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
|
|
10827
10825
|
"use strict";
|
|
10828
10826
|
var Scalar = require_Scalar();
|
|
10829
10827
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -11104,9 +11102,9 @@ ${indent}`);
|
|
|
11104
11102
|
}
|
|
11105
11103
|
});
|
|
11106
11104
|
|
|
11107
|
-
// node_modules/yaml/dist/stringify/stringify.js
|
|
11105
|
+
// ../../node_modules/yaml/dist/stringify/stringify.js
|
|
11108
11106
|
var require_stringify = __commonJS({
|
|
11109
|
-
"node_modules/yaml/dist/stringify/stringify.js"(exports) {
|
|
11107
|
+
"../../node_modules/yaml/dist/stringify/stringify.js"(exports) {
|
|
11110
11108
|
"use strict";
|
|
11111
11109
|
var anchors = require_anchors();
|
|
11112
11110
|
var identity = require_identity();
|
|
@@ -11228,9 +11226,9 @@ ${ctx.indent}${str}`;
|
|
|
11228
11226
|
}
|
|
11229
11227
|
});
|
|
11230
11228
|
|
|
11231
|
-
// node_modules/yaml/dist/stringify/stringifyPair.js
|
|
11229
|
+
// ../../node_modules/yaml/dist/stringify/stringifyPair.js
|
|
11232
11230
|
var require_stringifyPair = __commonJS({
|
|
11233
|
-
"node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
|
|
11231
|
+
"../../node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
|
|
11234
11232
|
"use strict";
|
|
11235
11233
|
var identity = require_identity();
|
|
11236
11234
|
var Scalar = require_Scalar();
|
|
@@ -11361,9 +11359,9 @@ ${ctx.indent}`;
|
|
|
11361
11359
|
}
|
|
11362
11360
|
});
|
|
11363
11361
|
|
|
11364
|
-
// node_modules/yaml/dist/log.js
|
|
11362
|
+
// ../../node_modules/yaml/dist/log.js
|
|
11365
11363
|
var require_log = __commonJS({
|
|
11366
|
-
"node_modules/yaml/dist/log.js"(exports) {
|
|
11364
|
+
"../../node_modules/yaml/dist/log.js"(exports) {
|
|
11367
11365
|
"use strict";
|
|
11368
11366
|
var node_process = __require("process");
|
|
11369
11367
|
function debug(logLevel, ...messages) {
|
|
@@ -11383,9 +11381,9 @@ var require_log = __commonJS({
|
|
|
11383
11381
|
}
|
|
11384
11382
|
});
|
|
11385
11383
|
|
|
11386
|
-
// node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
11384
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
11387
11385
|
var require_merge = __commonJS({
|
|
11388
|
-
"node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
|
|
11386
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
|
|
11389
11387
|
"use strict";
|
|
11390
11388
|
var identity = require_identity();
|
|
11391
11389
|
var Scalar = require_Scalar();
|
|
@@ -11443,9 +11441,9 @@ var require_merge = __commonJS({
|
|
|
11443
11441
|
}
|
|
11444
11442
|
});
|
|
11445
11443
|
|
|
11446
|
-
// node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
11444
|
+
// ../../node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
11447
11445
|
var require_addPairToJSMap = __commonJS({
|
|
11448
|
-
"node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
11446
|
+
"../../node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
11449
11447
|
"use strict";
|
|
11450
11448
|
var log = require_log();
|
|
11451
11449
|
var merge2 = require_merge();
|
|
@@ -11507,9 +11505,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
11507
11505
|
}
|
|
11508
11506
|
});
|
|
11509
11507
|
|
|
11510
|
-
// node_modules/yaml/dist/nodes/Pair.js
|
|
11508
|
+
// ../../node_modules/yaml/dist/nodes/Pair.js
|
|
11511
11509
|
var require_Pair = __commonJS({
|
|
11512
|
-
"node_modules/yaml/dist/nodes/Pair.js"(exports) {
|
|
11510
|
+
"../../node_modules/yaml/dist/nodes/Pair.js"(exports) {
|
|
11513
11511
|
"use strict";
|
|
11514
11512
|
var createNode = require_createNode();
|
|
11515
11513
|
var stringifyPair = require_stringifyPair();
|
|
@@ -11547,9 +11545,9 @@ var require_Pair = __commonJS({
|
|
|
11547
11545
|
}
|
|
11548
11546
|
});
|
|
11549
11547
|
|
|
11550
|
-
// node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
11548
|
+
// ../../node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
11551
11549
|
var require_stringifyCollection = __commonJS({
|
|
11552
|
-
"node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
11550
|
+
"../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
11553
11551
|
"use strict";
|
|
11554
11552
|
var identity = require_identity();
|
|
11555
11553
|
var stringify = require_stringify();
|
|
@@ -11698,9 +11696,9 @@ ${indent}${end}`;
|
|
|
11698
11696
|
}
|
|
11699
11697
|
});
|
|
11700
11698
|
|
|
11701
|
-
// node_modules/yaml/dist/nodes/YAMLMap.js
|
|
11699
|
+
// ../../node_modules/yaml/dist/nodes/YAMLMap.js
|
|
11702
11700
|
var require_YAMLMap = __commonJS({
|
|
11703
|
-
"node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
|
|
11701
|
+
"../../node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
|
|
11704
11702
|
"use strict";
|
|
11705
11703
|
var stringifyCollection = require_stringifyCollection();
|
|
11706
11704
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -11842,9 +11840,9 @@ var require_YAMLMap = __commonJS({
|
|
|
11842
11840
|
}
|
|
11843
11841
|
});
|
|
11844
11842
|
|
|
11845
|
-
// node_modules/yaml/dist/schema/common/map.js
|
|
11843
|
+
// ../../node_modules/yaml/dist/schema/common/map.js
|
|
11846
11844
|
var require_map = __commonJS({
|
|
11847
|
-
"node_modules/yaml/dist/schema/common/map.js"(exports) {
|
|
11845
|
+
"../../node_modules/yaml/dist/schema/common/map.js"(exports) {
|
|
11848
11846
|
"use strict";
|
|
11849
11847
|
var identity = require_identity();
|
|
11850
11848
|
var YAMLMap = require_YAMLMap();
|
|
@@ -11864,9 +11862,9 @@ var require_map = __commonJS({
|
|
|
11864
11862
|
}
|
|
11865
11863
|
});
|
|
11866
11864
|
|
|
11867
|
-
// node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
11865
|
+
// ../../node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
11868
11866
|
var require_YAMLSeq = __commonJS({
|
|
11869
|
-
"node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
|
|
11867
|
+
"../../node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
|
|
11870
11868
|
"use strict";
|
|
11871
11869
|
var createNode = require_createNode();
|
|
11872
11870
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -11980,9 +11978,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
11980
11978
|
}
|
|
11981
11979
|
});
|
|
11982
11980
|
|
|
11983
|
-
// node_modules/yaml/dist/schema/common/seq.js
|
|
11981
|
+
// ../../node_modules/yaml/dist/schema/common/seq.js
|
|
11984
11982
|
var require_seq = __commonJS({
|
|
11985
|
-
"node_modules/yaml/dist/schema/common/seq.js"(exports) {
|
|
11983
|
+
"../../node_modules/yaml/dist/schema/common/seq.js"(exports) {
|
|
11986
11984
|
"use strict";
|
|
11987
11985
|
var identity = require_identity();
|
|
11988
11986
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -12002,9 +12000,9 @@ var require_seq = __commonJS({
|
|
|
12002
12000
|
}
|
|
12003
12001
|
});
|
|
12004
12002
|
|
|
12005
|
-
// node_modules/yaml/dist/schema/common/string.js
|
|
12003
|
+
// ../../node_modules/yaml/dist/schema/common/string.js
|
|
12006
12004
|
var require_string = __commonJS({
|
|
12007
|
-
"node_modules/yaml/dist/schema/common/string.js"(exports) {
|
|
12005
|
+
"../../node_modules/yaml/dist/schema/common/string.js"(exports) {
|
|
12008
12006
|
"use strict";
|
|
12009
12007
|
var stringifyString = require_stringifyString();
|
|
12010
12008
|
var string = {
|
|
@@ -12021,9 +12019,9 @@ var require_string = __commonJS({
|
|
|
12021
12019
|
}
|
|
12022
12020
|
});
|
|
12023
12021
|
|
|
12024
|
-
// node_modules/yaml/dist/schema/common/null.js
|
|
12022
|
+
// ../../node_modules/yaml/dist/schema/common/null.js
|
|
12025
12023
|
var require_null = __commonJS({
|
|
12026
|
-
"node_modules/yaml/dist/schema/common/null.js"(exports) {
|
|
12024
|
+
"../../node_modules/yaml/dist/schema/common/null.js"(exports) {
|
|
12027
12025
|
"use strict";
|
|
12028
12026
|
var Scalar = require_Scalar();
|
|
12029
12027
|
var nullTag = {
|
|
@@ -12039,9 +12037,9 @@ var require_null = __commonJS({
|
|
|
12039
12037
|
}
|
|
12040
12038
|
});
|
|
12041
12039
|
|
|
12042
|
-
// node_modules/yaml/dist/schema/core/bool.js
|
|
12040
|
+
// ../../node_modules/yaml/dist/schema/core/bool.js
|
|
12043
12041
|
var require_bool = __commonJS({
|
|
12044
|
-
"node_modules/yaml/dist/schema/core/bool.js"(exports) {
|
|
12042
|
+
"../../node_modules/yaml/dist/schema/core/bool.js"(exports) {
|
|
12045
12043
|
"use strict";
|
|
12046
12044
|
var Scalar = require_Scalar();
|
|
12047
12045
|
var boolTag = {
|
|
@@ -12063,9 +12061,9 @@ var require_bool = __commonJS({
|
|
|
12063
12061
|
}
|
|
12064
12062
|
});
|
|
12065
12063
|
|
|
12066
|
-
// node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
12064
|
+
// ../../node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
12067
12065
|
var require_stringifyNumber = __commonJS({
|
|
12068
|
-
"node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
|
|
12066
|
+
"../../node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
|
|
12069
12067
|
"use strict";
|
|
12070
12068
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
12071
12069
|
if (typeof value === "bigint")
|
|
@@ -12090,9 +12088,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
12090
12088
|
}
|
|
12091
12089
|
});
|
|
12092
12090
|
|
|
12093
|
-
// node_modules/yaml/dist/schema/core/float.js
|
|
12091
|
+
// ../../node_modules/yaml/dist/schema/core/float.js
|
|
12094
12092
|
var require_float = __commonJS({
|
|
12095
|
-
"node_modules/yaml/dist/schema/core/float.js"(exports) {
|
|
12093
|
+
"../../node_modules/yaml/dist/schema/core/float.js"(exports) {
|
|
12096
12094
|
"use strict";
|
|
12097
12095
|
var Scalar = require_Scalar();
|
|
12098
12096
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -12136,9 +12134,9 @@ var require_float = __commonJS({
|
|
|
12136
12134
|
}
|
|
12137
12135
|
});
|
|
12138
12136
|
|
|
12139
|
-
// node_modules/yaml/dist/schema/core/int.js
|
|
12137
|
+
// ../../node_modules/yaml/dist/schema/core/int.js
|
|
12140
12138
|
var require_int = __commonJS({
|
|
12141
|
-
"node_modules/yaml/dist/schema/core/int.js"(exports) {
|
|
12139
|
+
"../../node_modules/yaml/dist/schema/core/int.js"(exports) {
|
|
12142
12140
|
"use strict";
|
|
12143
12141
|
var stringifyNumber = require_stringifyNumber();
|
|
12144
12142
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -12181,9 +12179,9 @@ var require_int = __commonJS({
|
|
|
12181
12179
|
}
|
|
12182
12180
|
});
|
|
12183
12181
|
|
|
12184
|
-
// node_modules/yaml/dist/schema/core/schema.js
|
|
12182
|
+
// ../../node_modules/yaml/dist/schema/core/schema.js
|
|
12185
12183
|
var require_schema = __commonJS({
|
|
12186
|
-
"node_modules/yaml/dist/schema/core/schema.js"(exports) {
|
|
12184
|
+
"../../node_modules/yaml/dist/schema/core/schema.js"(exports) {
|
|
12187
12185
|
"use strict";
|
|
12188
12186
|
var map = require_map();
|
|
12189
12187
|
var _null = require_null();
|
|
@@ -12209,9 +12207,9 @@ var require_schema = __commonJS({
|
|
|
12209
12207
|
}
|
|
12210
12208
|
});
|
|
12211
12209
|
|
|
12212
|
-
// node_modules/yaml/dist/schema/json/schema.js
|
|
12210
|
+
// ../../node_modules/yaml/dist/schema/json/schema.js
|
|
12213
12211
|
var require_schema2 = __commonJS({
|
|
12214
|
-
"node_modules/yaml/dist/schema/json/schema.js"(exports) {
|
|
12212
|
+
"../../node_modules/yaml/dist/schema/json/schema.js"(exports) {
|
|
12215
12213
|
"use strict";
|
|
12216
12214
|
var Scalar = require_Scalar();
|
|
12217
12215
|
var map = require_map();
|
|
@@ -12276,9 +12274,9 @@ var require_schema2 = __commonJS({
|
|
|
12276
12274
|
}
|
|
12277
12275
|
});
|
|
12278
12276
|
|
|
12279
|
-
// node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
12277
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
12280
12278
|
var require_binary = __commonJS({
|
|
12281
|
-
"node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
|
|
12279
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
|
|
12282
12280
|
"use strict";
|
|
12283
12281
|
var node_buffer = __require("buffer");
|
|
12284
12282
|
var Scalar = require_Scalar();
|
|
@@ -12342,9 +12340,9 @@ var require_binary = __commonJS({
|
|
|
12342
12340
|
}
|
|
12343
12341
|
});
|
|
12344
12342
|
|
|
12345
|
-
// node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
12343
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
12346
12344
|
var require_pairs = __commonJS({
|
|
12347
|
-
"node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
|
|
12345
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
|
|
12348
12346
|
"use strict";
|
|
12349
12347
|
var identity = require_identity();
|
|
12350
12348
|
var Pair = require_Pair();
|
|
@@ -12420,9 +12418,9 @@ ${cn.comment}` : item.comment;
|
|
|
12420
12418
|
}
|
|
12421
12419
|
});
|
|
12422
12420
|
|
|
12423
|
-
// node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
12421
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
12424
12422
|
var require_omap = __commonJS({
|
|
12425
|
-
"node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
|
|
12423
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
|
|
12426
12424
|
"use strict";
|
|
12427
12425
|
var identity = require_identity();
|
|
12428
12426
|
var toJS = require_toJS();
|
|
@@ -12498,9 +12496,9 @@ var require_omap = __commonJS({
|
|
|
12498
12496
|
}
|
|
12499
12497
|
});
|
|
12500
12498
|
|
|
12501
|
-
// node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
12499
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
12502
12500
|
var require_bool2 = __commonJS({
|
|
12503
|
-
"node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
|
|
12501
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
|
|
12504
12502
|
"use strict";
|
|
12505
12503
|
var Scalar = require_Scalar();
|
|
12506
12504
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -12530,9 +12528,9 @@ var require_bool2 = __commonJS({
|
|
|
12530
12528
|
}
|
|
12531
12529
|
});
|
|
12532
12530
|
|
|
12533
|
-
// node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
12531
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
12534
12532
|
var require_float2 = __commonJS({
|
|
12535
|
-
"node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
|
|
12533
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
|
|
12536
12534
|
"use strict";
|
|
12537
12535
|
var Scalar = require_Scalar();
|
|
12538
12536
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -12579,9 +12577,9 @@ var require_float2 = __commonJS({
|
|
|
12579
12577
|
}
|
|
12580
12578
|
});
|
|
12581
12579
|
|
|
12582
|
-
// node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
12580
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
12583
12581
|
var require_int2 = __commonJS({
|
|
12584
|
-
"node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
|
|
12582
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
|
|
12585
12583
|
"use strict";
|
|
12586
12584
|
var stringifyNumber = require_stringifyNumber();
|
|
12587
12585
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -12658,9 +12656,9 @@ var require_int2 = __commonJS({
|
|
|
12658
12656
|
}
|
|
12659
12657
|
});
|
|
12660
12658
|
|
|
12661
|
-
// node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
12659
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
12662
12660
|
var require_set = __commonJS({
|
|
12663
|
-
"node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
|
|
12661
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
|
|
12664
12662
|
"use strict";
|
|
12665
12663
|
var identity = require_identity();
|
|
12666
12664
|
var Pair = require_Pair();
|
|
@@ -12747,9 +12745,9 @@ var require_set = __commonJS({
|
|
|
12747
12745
|
}
|
|
12748
12746
|
});
|
|
12749
12747
|
|
|
12750
|
-
// node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
12748
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
12751
12749
|
var require_timestamp = __commonJS({
|
|
12752
|
-
"node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
12750
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
12753
12751
|
"use strict";
|
|
12754
12752
|
var stringifyNumber = require_stringifyNumber();
|
|
12755
12753
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -12835,9 +12833,9 @@ var require_timestamp = __commonJS({
|
|
|
12835
12833
|
}
|
|
12836
12834
|
});
|
|
12837
12835
|
|
|
12838
|
-
// node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
12836
|
+
// ../../node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
12839
12837
|
var require_schema3 = __commonJS({
|
|
12840
|
-
"node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
|
|
12838
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
|
|
12841
12839
|
"use strict";
|
|
12842
12840
|
var map = require_map();
|
|
12843
12841
|
var _null = require_null();
|
|
@@ -12879,9 +12877,9 @@ var require_schema3 = __commonJS({
|
|
|
12879
12877
|
}
|
|
12880
12878
|
});
|
|
12881
12879
|
|
|
12882
|
-
// node_modules/yaml/dist/schema/tags.js
|
|
12880
|
+
// ../../node_modules/yaml/dist/schema/tags.js
|
|
12883
12881
|
var require_tags = __commonJS({
|
|
12884
|
-
"node_modules/yaml/dist/schema/tags.js"(exports) {
|
|
12882
|
+
"../../node_modules/yaml/dist/schema/tags.js"(exports) {
|
|
12885
12883
|
"use strict";
|
|
12886
12884
|
var map = require_map();
|
|
12887
12885
|
var _null = require_null();
|
|
@@ -12973,9 +12971,9 @@ var require_tags = __commonJS({
|
|
|
12973
12971
|
}
|
|
12974
12972
|
});
|
|
12975
12973
|
|
|
12976
|
-
// node_modules/yaml/dist/schema/Schema.js
|
|
12974
|
+
// ../../node_modules/yaml/dist/schema/Schema.js
|
|
12977
12975
|
var require_Schema = __commonJS({
|
|
12978
|
-
"node_modules/yaml/dist/schema/Schema.js"(exports) {
|
|
12976
|
+
"../../node_modules/yaml/dist/schema/Schema.js"(exports) {
|
|
12979
12977
|
"use strict";
|
|
12980
12978
|
var identity = require_identity();
|
|
12981
12979
|
var map = require_map();
|
|
@@ -13005,9 +13003,9 @@ var require_Schema = __commonJS({
|
|
|
13005
13003
|
}
|
|
13006
13004
|
});
|
|
13007
13005
|
|
|
13008
|
-
// node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
13006
|
+
// ../../node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
13009
13007
|
var require_stringifyDocument = __commonJS({
|
|
13010
|
-
"node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
13008
|
+
"../../node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
13011
13009
|
"use strict";
|
|
13012
13010
|
var identity = require_identity();
|
|
13013
13011
|
var stringify = require_stringify();
|
|
@@ -13085,9 +13083,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
13085
13083
|
}
|
|
13086
13084
|
});
|
|
13087
13085
|
|
|
13088
|
-
// node_modules/yaml/dist/doc/Document.js
|
|
13086
|
+
// ../../node_modules/yaml/dist/doc/Document.js
|
|
13089
13087
|
var require_Document = __commonJS({
|
|
13090
|
-
"node_modules/yaml/dist/doc/Document.js"(exports) {
|
|
13088
|
+
"../../node_modules/yaml/dist/doc/Document.js"(exports) {
|
|
13091
13089
|
"use strict";
|
|
13092
13090
|
var Alias = require_Alias();
|
|
13093
13091
|
var Collection = require_Collection();
|
|
@@ -13125,14 +13123,14 @@ var require_Document = __commonJS({
|
|
|
13125
13123
|
version: "1.2"
|
|
13126
13124
|
}, options);
|
|
13127
13125
|
this.options = opt;
|
|
13128
|
-
let { version } = opt;
|
|
13126
|
+
let { version: version2 } = opt;
|
|
13129
13127
|
if (options?._directives) {
|
|
13130
13128
|
this.directives = options._directives.atDocument();
|
|
13131
13129
|
if (this.directives.yaml.explicit)
|
|
13132
|
-
|
|
13130
|
+
version2 = this.directives.yaml.version;
|
|
13133
13131
|
} else
|
|
13134
|
-
this.directives = new directives.Directives({ version });
|
|
13135
|
-
this.setSchema(
|
|
13132
|
+
this.directives = new directives.Directives({ version: version2 });
|
|
13133
|
+
this.setSchema(version2, options);
|
|
13136
13134
|
this.contents = value === void 0 ? null : this.createNode(value, _replacer, options);
|
|
13137
13135
|
}
|
|
13138
13136
|
/**
|
|
@@ -13312,11 +13310,11 @@ var require_Document = __commonJS({
|
|
|
13312
13310
|
*
|
|
13313
13311
|
* Overrides all previously set schema options.
|
|
13314
13312
|
*/
|
|
13315
|
-
setSchema(
|
|
13316
|
-
if (typeof
|
|
13317
|
-
|
|
13313
|
+
setSchema(version2, options = {}) {
|
|
13314
|
+
if (typeof version2 === "number")
|
|
13315
|
+
version2 = String(version2);
|
|
13318
13316
|
let opt;
|
|
13319
|
-
switch (
|
|
13317
|
+
switch (version2) {
|
|
13320
13318
|
case "1.1":
|
|
13321
13319
|
if (this.directives)
|
|
13322
13320
|
this.directives.yaml.version = "1.1";
|
|
@@ -13327,9 +13325,9 @@ var require_Document = __commonJS({
|
|
|
13327
13325
|
case "1.2":
|
|
13328
13326
|
case "next":
|
|
13329
13327
|
if (this.directives)
|
|
13330
|
-
this.directives.yaml.version =
|
|
13328
|
+
this.directives.yaml.version = version2;
|
|
13331
13329
|
else
|
|
13332
|
-
this.directives = new directives.Directives({ version });
|
|
13330
|
+
this.directives = new directives.Directives({ version: version2 });
|
|
13333
13331
|
opt = { resolveKnownTags: true, schema: "core" };
|
|
13334
13332
|
break;
|
|
13335
13333
|
case null:
|
|
@@ -13338,7 +13336,7 @@ var require_Document = __commonJS({
|
|
|
13338
13336
|
opt = null;
|
|
13339
13337
|
break;
|
|
13340
13338
|
default: {
|
|
13341
|
-
const sv = JSON.stringify(
|
|
13339
|
+
const sv = JSON.stringify(version2);
|
|
13342
13340
|
throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`);
|
|
13343
13341
|
}
|
|
13344
13342
|
}
|
|
@@ -13394,9 +13392,9 @@ var require_Document = __commonJS({
|
|
|
13394
13392
|
}
|
|
13395
13393
|
});
|
|
13396
13394
|
|
|
13397
|
-
// node_modules/yaml/dist/errors.js
|
|
13395
|
+
// ../../node_modules/yaml/dist/errors.js
|
|
13398
13396
|
var require_errors = __commonJS({
|
|
13399
|
-
"node_modules/yaml/dist/errors.js"(exports) {
|
|
13397
|
+
"../../node_modules/yaml/dist/errors.js"(exports) {
|
|
13400
13398
|
"use strict";
|
|
13401
13399
|
var YAMLError = class extends Error {
|
|
13402
13400
|
constructor(name, pos, code, message2) {
|
|
@@ -13459,9 +13457,9 @@ ${pointer}
|
|
|
13459
13457
|
}
|
|
13460
13458
|
});
|
|
13461
13459
|
|
|
13462
|
-
// node_modules/yaml/dist/compose/resolve-props.js
|
|
13460
|
+
// ../../node_modules/yaml/dist/compose/resolve-props.js
|
|
13463
13461
|
var require_resolve_props = __commonJS({
|
|
13464
|
-
"node_modules/yaml/dist/compose/resolve-props.js"(exports) {
|
|
13462
|
+
"../../node_modules/yaml/dist/compose/resolve-props.js"(exports) {
|
|
13465
13463
|
"use strict";
|
|
13466
13464
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
13467
13465
|
let spaceBefore = false;
|
|
@@ -13593,9 +13591,9 @@ var require_resolve_props = __commonJS({
|
|
|
13593
13591
|
}
|
|
13594
13592
|
});
|
|
13595
13593
|
|
|
13596
|
-
// node_modules/yaml/dist/compose/util-contains-newline.js
|
|
13594
|
+
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
|
13597
13595
|
var require_util_contains_newline = __commonJS({
|
|
13598
|
-
"node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
|
|
13596
|
+
"../../node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
|
|
13599
13597
|
"use strict";
|
|
13600
13598
|
function containsNewline(key) {
|
|
13601
13599
|
if (!key)
|
|
@@ -13635,9 +13633,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
13635
13633
|
}
|
|
13636
13634
|
});
|
|
13637
13635
|
|
|
13638
|
-
// node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
13636
|
+
// ../../node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
13639
13637
|
var require_util_flow_indent_check = __commonJS({
|
|
13640
|
-
"node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
|
|
13638
|
+
"../../node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
|
|
13641
13639
|
"use strict";
|
|
13642
13640
|
var utilContainsNewline = require_util_contains_newline();
|
|
13643
13641
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -13653,9 +13651,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
13653
13651
|
}
|
|
13654
13652
|
});
|
|
13655
13653
|
|
|
13656
|
-
// node_modules/yaml/dist/compose/util-map-includes.js
|
|
13654
|
+
// ../../node_modules/yaml/dist/compose/util-map-includes.js
|
|
13657
13655
|
var require_util_map_includes = __commonJS({
|
|
13658
|
-
"node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
13656
|
+
"../../node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
13659
13657
|
"use strict";
|
|
13660
13658
|
var identity = require_identity();
|
|
13661
13659
|
function mapIncludes(ctx, items, search) {
|
|
@@ -13669,9 +13667,9 @@ var require_util_map_includes = __commonJS({
|
|
|
13669
13667
|
}
|
|
13670
13668
|
});
|
|
13671
13669
|
|
|
13672
|
-
// node_modules/yaml/dist/compose/resolve-block-map.js
|
|
13670
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-map.js
|
|
13673
13671
|
var require_resolve_block_map = __commonJS({
|
|
13674
|
-
"node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
|
|
13672
|
+
"../../node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
|
|
13675
13673
|
"use strict";
|
|
13676
13674
|
var Pair = require_Pair();
|
|
13677
13675
|
var YAMLMap = require_YAMLMap();
|
|
@@ -13777,9 +13775,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
13777
13775
|
}
|
|
13778
13776
|
});
|
|
13779
13777
|
|
|
13780
|
-
// node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
13778
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
13781
13779
|
var require_resolve_block_seq = __commonJS({
|
|
13782
|
-
"node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
|
|
13780
|
+
"../../node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
|
|
13783
13781
|
"use strict";
|
|
13784
13782
|
var YAMLSeq = require_YAMLSeq();
|
|
13785
13783
|
var resolveProps = require_resolve_props();
|
|
@@ -13828,9 +13826,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
13828
13826
|
}
|
|
13829
13827
|
});
|
|
13830
13828
|
|
|
13831
|
-
// node_modules/yaml/dist/compose/resolve-end.js
|
|
13829
|
+
// ../../node_modules/yaml/dist/compose/resolve-end.js
|
|
13832
13830
|
var require_resolve_end = __commonJS({
|
|
13833
|
-
"node_modules/yaml/dist/compose/resolve-end.js"(exports) {
|
|
13831
|
+
"../../node_modules/yaml/dist/compose/resolve-end.js"(exports) {
|
|
13834
13832
|
"use strict";
|
|
13835
13833
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
13836
13834
|
let comment = "";
|
|
@@ -13871,9 +13869,9 @@ var require_resolve_end = __commonJS({
|
|
|
13871
13869
|
}
|
|
13872
13870
|
});
|
|
13873
13871
|
|
|
13874
|
-
// node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
13872
|
+
// ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
13875
13873
|
var require_resolve_flow_collection = __commonJS({
|
|
13876
|
-
"node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
|
|
13874
|
+
"../../node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
|
|
13877
13875
|
"use strict";
|
|
13878
13876
|
var identity = require_identity();
|
|
13879
13877
|
var Pair = require_Pair();
|
|
@@ -14065,9 +14063,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
14065
14063
|
}
|
|
14066
14064
|
});
|
|
14067
14065
|
|
|
14068
|
-
// node_modules/yaml/dist/compose/compose-collection.js
|
|
14066
|
+
// ../../node_modules/yaml/dist/compose/compose-collection.js
|
|
14069
14067
|
var require_compose_collection = __commonJS({
|
|
14070
|
-
"node_modules/yaml/dist/compose/compose-collection.js"(exports) {
|
|
14068
|
+
"../../node_modules/yaml/dist/compose/compose-collection.js"(exports) {
|
|
14071
14069
|
"use strict";
|
|
14072
14070
|
var identity = require_identity();
|
|
14073
14071
|
var Scalar = require_Scalar();
|
|
@@ -14130,9 +14128,9 @@ var require_compose_collection = __commonJS({
|
|
|
14130
14128
|
}
|
|
14131
14129
|
});
|
|
14132
14130
|
|
|
14133
|
-
// node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
14131
|
+
// ../../node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
14134
14132
|
var require_resolve_block_scalar = __commonJS({
|
|
14135
|
-
"node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
|
|
14133
|
+
"../../node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
|
|
14136
14134
|
"use strict";
|
|
14137
14135
|
var Scalar = require_Scalar();
|
|
14138
14136
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -14313,9 +14311,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
14313
14311
|
}
|
|
14314
14312
|
});
|
|
14315
14313
|
|
|
14316
|
-
// node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
14314
|
+
// ../../node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
14317
14315
|
var require_resolve_flow_scalar = __commonJS({
|
|
14318
|
-
"node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
|
|
14316
|
+
"../../node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
|
|
14319
14317
|
"use strict";
|
|
14320
14318
|
var Scalar = require_Scalar();
|
|
14321
14319
|
var resolveEnd = require_resolve_end();
|
|
@@ -14534,9 +14532,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
14534
14532
|
}
|
|
14535
14533
|
});
|
|
14536
14534
|
|
|
14537
|
-
// node_modules/yaml/dist/compose/compose-scalar.js
|
|
14535
|
+
// ../../node_modules/yaml/dist/compose/compose-scalar.js
|
|
14538
14536
|
var require_compose_scalar = __commonJS({
|
|
14539
|
-
"node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
|
|
14537
|
+
"../../node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
|
|
14540
14538
|
"use strict";
|
|
14541
14539
|
var identity = require_identity();
|
|
14542
14540
|
var Scalar = require_Scalar();
|
|
@@ -14615,9 +14613,9 @@ var require_compose_scalar = __commonJS({
|
|
|
14615
14613
|
}
|
|
14616
14614
|
});
|
|
14617
14615
|
|
|
14618
|
-
// node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
14616
|
+
// ../../node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
14619
14617
|
var require_util_empty_scalar_position = __commonJS({
|
|
14620
|
-
"node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
|
|
14618
|
+
"../../node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
|
|
14621
14619
|
"use strict";
|
|
14622
14620
|
function emptyScalarPosition(offset, before, pos) {
|
|
14623
14621
|
if (before) {
|
|
@@ -14645,9 +14643,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
14645
14643
|
}
|
|
14646
14644
|
});
|
|
14647
14645
|
|
|
14648
|
-
// node_modules/yaml/dist/compose/compose-node.js
|
|
14646
|
+
// ../../node_modules/yaml/dist/compose/compose-node.js
|
|
14649
14647
|
var require_compose_node = __commonJS({
|
|
14650
|
-
"node_modules/yaml/dist/compose/compose-node.js"(exports) {
|
|
14648
|
+
"../../node_modules/yaml/dist/compose/compose-node.js"(exports) {
|
|
14651
14649
|
"use strict";
|
|
14652
14650
|
var Alias = require_Alias();
|
|
14653
14651
|
var identity = require_identity();
|
|
@@ -14751,9 +14749,9 @@ var require_compose_node = __commonJS({
|
|
|
14751
14749
|
}
|
|
14752
14750
|
});
|
|
14753
14751
|
|
|
14754
|
-
// node_modules/yaml/dist/compose/compose-doc.js
|
|
14752
|
+
// ../../node_modules/yaml/dist/compose/compose-doc.js
|
|
14755
14753
|
var require_compose_doc = __commonJS({
|
|
14756
|
-
"node_modules/yaml/dist/compose/compose-doc.js"(exports) {
|
|
14754
|
+
"../../node_modules/yaml/dist/compose/compose-doc.js"(exports) {
|
|
14757
14755
|
"use strict";
|
|
14758
14756
|
var Document = require_Document();
|
|
14759
14757
|
var composeNode = require_compose_node();
|
|
@@ -14794,9 +14792,9 @@ var require_compose_doc = __commonJS({
|
|
|
14794
14792
|
}
|
|
14795
14793
|
});
|
|
14796
14794
|
|
|
14797
|
-
// node_modules/yaml/dist/compose/composer.js
|
|
14795
|
+
// ../../node_modules/yaml/dist/compose/composer.js
|
|
14798
14796
|
var require_composer = __commonJS({
|
|
14799
|
-
"node_modules/yaml/dist/compose/composer.js"(exports) {
|
|
14797
|
+
"../../node_modules/yaml/dist/compose/composer.js"(exports) {
|
|
14800
14798
|
"use strict";
|
|
14801
14799
|
var node_process = __require("process");
|
|
14802
14800
|
var directives = require_directives();
|
|
@@ -15002,9 +15000,9 @@ ${end.comment}` : end.comment;
|
|
|
15002
15000
|
}
|
|
15003
15001
|
});
|
|
15004
15002
|
|
|
15005
|
-
// node_modules/yaml/dist/parse/cst-scalar.js
|
|
15003
|
+
// ../../node_modules/yaml/dist/parse/cst-scalar.js
|
|
15006
15004
|
var require_cst_scalar = __commonJS({
|
|
15007
|
-
"node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
|
|
15005
|
+
"../../node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
|
|
15008
15006
|
"use strict";
|
|
15009
15007
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
15010
15008
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -15187,9 +15185,9 @@ var require_cst_scalar = __commonJS({
|
|
|
15187
15185
|
}
|
|
15188
15186
|
});
|
|
15189
15187
|
|
|
15190
|
-
// node_modules/yaml/dist/parse/cst-stringify.js
|
|
15188
|
+
// ../../node_modules/yaml/dist/parse/cst-stringify.js
|
|
15191
15189
|
var require_cst_stringify = __commonJS({
|
|
15192
|
-
"node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
15190
|
+
"../../node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
15193
15191
|
"use strict";
|
|
15194
15192
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
15195
15193
|
function stringifyToken(token) {
|
|
@@ -15248,9 +15246,9 @@ var require_cst_stringify = __commonJS({
|
|
|
15248
15246
|
}
|
|
15249
15247
|
});
|
|
15250
15248
|
|
|
15251
|
-
// node_modules/yaml/dist/parse/cst-visit.js
|
|
15249
|
+
// ../../node_modules/yaml/dist/parse/cst-visit.js
|
|
15252
15250
|
var require_cst_visit = __commonJS({
|
|
15253
|
-
"node_modules/yaml/dist/parse/cst-visit.js"(exports) {
|
|
15251
|
+
"../../node_modules/yaml/dist/parse/cst-visit.js"(exports) {
|
|
15254
15252
|
"use strict";
|
|
15255
15253
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
15256
15254
|
var SKIP = /* @__PURE__ */ Symbol("skip children");
|
|
@@ -15310,9 +15308,9 @@ var require_cst_visit = __commonJS({
|
|
|
15310
15308
|
}
|
|
15311
15309
|
});
|
|
15312
15310
|
|
|
15313
|
-
// node_modules/yaml/dist/parse/cst.js
|
|
15311
|
+
// ../../node_modules/yaml/dist/parse/cst.js
|
|
15314
15312
|
var require_cst = __commonJS({
|
|
15315
|
-
"node_modules/yaml/dist/parse/cst.js"(exports) {
|
|
15313
|
+
"../../node_modules/yaml/dist/parse/cst.js"(exports) {
|
|
15316
15314
|
"use strict";
|
|
15317
15315
|
var cstScalar = require_cst_scalar();
|
|
15318
15316
|
var cstStringify = require_cst_stringify();
|
|
@@ -15412,9 +15410,9 @@ var require_cst = __commonJS({
|
|
|
15412
15410
|
}
|
|
15413
15411
|
});
|
|
15414
15412
|
|
|
15415
|
-
// node_modules/yaml/dist/parse/lexer.js
|
|
15413
|
+
// ../../node_modules/yaml/dist/parse/lexer.js
|
|
15416
15414
|
var require_lexer = __commonJS({
|
|
15417
|
-
"node_modules/yaml/dist/parse/lexer.js"(exports) {
|
|
15415
|
+
"../../node_modules/yaml/dist/parse/lexer.js"(exports) {
|
|
15418
15416
|
"use strict";
|
|
15419
15417
|
var cst = require_cst();
|
|
15420
15418
|
function isEmpty(ch) {
|
|
@@ -16001,9 +15999,9 @@ var require_lexer = __commonJS({
|
|
|
16001
15999
|
}
|
|
16002
16000
|
});
|
|
16003
16001
|
|
|
16004
|
-
// node_modules/yaml/dist/parse/line-counter.js
|
|
16002
|
+
// ../../node_modules/yaml/dist/parse/line-counter.js
|
|
16005
16003
|
var require_line_counter = __commonJS({
|
|
16006
|
-
"node_modules/yaml/dist/parse/line-counter.js"(exports) {
|
|
16004
|
+
"../../node_modules/yaml/dist/parse/line-counter.js"(exports) {
|
|
16007
16005
|
"use strict";
|
|
16008
16006
|
var LineCounter = class {
|
|
16009
16007
|
constructor() {
|
|
@@ -16032,9 +16030,9 @@ var require_line_counter = __commonJS({
|
|
|
16032
16030
|
}
|
|
16033
16031
|
});
|
|
16034
16032
|
|
|
16035
|
-
// node_modules/yaml/dist/parse/parser.js
|
|
16033
|
+
// ../../node_modules/yaml/dist/parse/parser.js
|
|
16036
16034
|
var require_parser = __commonJS({
|
|
16037
|
-
"node_modules/yaml/dist/parse/parser.js"(exports) {
|
|
16035
|
+
"../../node_modules/yaml/dist/parse/parser.js"(exports) {
|
|
16038
16036
|
"use strict";
|
|
16039
16037
|
var node_process = __require("process");
|
|
16040
16038
|
var cst = require_cst();
|
|
@@ -16906,9 +16904,9 @@ var require_parser = __commonJS({
|
|
|
16906
16904
|
}
|
|
16907
16905
|
});
|
|
16908
16906
|
|
|
16909
|
-
// node_modules/yaml/dist/public-api.js
|
|
16907
|
+
// ../../node_modules/yaml/dist/public-api.js
|
|
16910
16908
|
var require_public_api = __commonJS({
|
|
16911
|
-
"node_modules/yaml/dist/public-api.js"(exports) {
|
|
16909
|
+
"../../node_modules/yaml/dist/public-api.js"(exports) {
|
|
16912
16910
|
"use strict";
|
|
16913
16911
|
var composer = require_composer();
|
|
16914
16912
|
var Document = require_Document();
|
|
@@ -17003,9 +17001,9 @@ var require_public_api = __commonJS({
|
|
|
17003
17001
|
}
|
|
17004
17002
|
});
|
|
17005
17003
|
|
|
17006
|
-
// node_modules/yaml/dist/index.js
|
|
17004
|
+
// ../../node_modules/yaml/dist/index.js
|
|
17007
17005
|
var require_dist4 = __commonJS({
|
|
17008
|
-
"node_modules/yaml/dist/index.js"(exports) {
|
|
17006
|
+
"../../node_modules/yaml/dist/index.js"(exports) {
|
|
17009
17007
|
"use strict";
|
|
17010
17008
|
var composer = require_composer();
|
|
17011
17009
|
var Document = require_Document();
|
|
@@ -17055,9 +17053,9 @@ var require_dist4 = __commonJS({
|
|
|
17055
17053
|
}
|
|
17056
17054
|
});
|
|
17057
17055
|
|
|
17058
|
-
// node_modules/bmp-js/lib/encoder.js
|
|
17056
|
+
// ../../node_modules/bmp-js/lib/encoder.js
|
|
17059
17057
|
var require_encoder = __commonJS({
|
|
17060
|
-
"node_modules/bmp-js/lib/encoder.js"(exports, module) {
|
|
17058
|
+
"../../node_modules/bmp-js/lib/encoder.js"(exports, module) {
|
|
17061
17059
|
"use strict";
|
|
17062
17060
|
function BmpEncoder(imgData) {
|
|
17063
17061
|
this.buffer = imgData.data;
|
|
@@ -17142,9 +17140,9 @@ var require_encoder = __commonJS({
|
|
|
17142
17140
|
}
|
|
17143
17141
|
});
|
|
17144
17142
|
|
|
17145
|
-
// node_modules/bmp-js/lib/decoder.js
|
|
17143
|
+
// ../../node_modules/bmp-js/lib/decoder.js
|
|
17146
17144
|
var require_decoder = __commonJS({
|
|
17147
|
-
"node_modules/bmp-js/lib/decoder.js"(exports, module) {
|
|
17145
|
+
"../../node_modules/bmp-js/lib/decoder.js"(exports, module) {
|
|
17148
17146
|
"use strict";
|
|
17149
17147
|
function BmpDecoder(buffer, is_with_alpha) {
|
|
17150
17148
|
this.pos = 0;
|
|
@@ -17546,9 +17544,9 @@ var require_decoder = __commonJS({
|
|
|
17546
17544
|
}
|
|
17547
17545
|
});
|
|
17548
17546
|
|
|
17549
|
-
// node_modules/bmp-js/index.js
|
|
17547
|
+
// ../../node_modules/bmp-js/index.js
|
|
17550
17548
|
var require_bmp_js = __commonJS({
|
|
17551
|
-
"node_modules/bmp-js/index.js"(exports, module) {
|
|
17549
|
+
"../../node_modules/bmp-js/index.js"(exports, module) {
|
|
17552
17550
|
"use strict";
|
|
17553
17551
|
var encode = require_encoder();
|
|
17554
17552
|
var decode = require_decoder();
|
|
@@ -17559,7 +17557,7 @@ var require_bmp_js = __commonJS({
|
|
|
17559
17557
|
}
|
|
17560
17558
|
});
|
|
17561
17559
|
|
|
17562
|
-
//
|
|
17560
|
+
// ../coding-agent/src/core/session-manager.ts
|
|
17563
17561
|
import { createHash, randomUUID as randomUUID2 } from "crypto";
|
|
17564
17562
|
import {
|
|
17565
17563
|
appendFileSync,
|
|
@@ -17574,7 +17572,7 @@ import {
|
|
|
17574
17572
|
import { homedir } from "os";
|
|
17575
17573
|
import { dirname, join, resolve } from "path";
|
|
17576
17574
|
|
|
17577
|
-
//
|
|
17575
|
+
// ../coding-agent/src/core/transcript-store.ts
|
|
17578
17576
|
var provenance = /* @__PURE__ */ new WeakMap();
|
|
17579
17577
|
function setMessageProvenance(message2, source) {
|
|
17580
17578
|
provenance.set(message2, source);
|
|
@@ -17583,7 +17581,7 @@ function getMessageProvenance(message2) {
|
|
|
17583
17581
|
return provenance.get(message2);
|
|
17584
17582
|
}
|
|
17585
17583
|
|
|
17586
|
-
//
|
|
17584
|
+
// ../coding-agent/src/core/microcompact.ts
|
|
17587
17585
|
var MICROCOMPACT_CLEARED_TOOL_RESULT_MESSAGE = "[Old tool result content cleared]";
|
|
17588
17586
|
var DEFAULT_MICROCOMPACT_KEEP_RECENT_TOOL_RESULTS = 5;
|
|
17589
17587
|
var DEFAULT_MICROCOMPACT_IDLE_THRESHOLD_MINUTES = 60;
|
|
@@ -17696,7 +17694,7 @@ function microcompactClearedIds(entry2) {
|
|
|
17696
17694
|
return Array.isArray(data.clearedToolCallIds) ? data.clearedToolCallIds.filter((id) => typeof id === "string" && !kept.has(id)) : [];
|
|
17697
17695
|
}
|
|
17698
17696
|
|
|
17699
|
-
//
|
|
17697
|
+
// ../coding-agent/src/core/record-validation.ts
|
|
17700
17698
|
import { Type } from "typebox";
|
|
17701
17699
|
import { Compile } from "typebox/compile";
|
|
17702
17700
|
var maxSessionEntryBytes = 8 * 1024 * 1024;
|
|
@@ -17808,7 +17806,8 @@ var entry = Type.Intersect([
|
|
|
17808
17806
|
Type.Object({ readFiles: Type.Array(Type.String()), modifiedFiles: Type.Array(Type.String()) })
|
|
17809
17807
|
),
|
|
17810
17808
|
usage: Type.Optional(usage),
|
|
17811
|
-
systemMessage: Type.Optional(systemMessage)
|
|
17809
|
+
systemMessage: Type.Optional(systemMessage),
|
|
17810
|
+
contextMessage: Type.Optional(systemMessage)
|
|
17812
17811
|
})
|
|
17813
17812
|
])
|
|
17814
17813
|
]);
|
|
@@ -17825,7 +17824,7 @@ function validateMessage(value) {
|
|
|
17825
17824
|
if (!messageValidator.Check(value)) throw new Error("Invalid message record");
|
|
17826
17825
|
}
|
|
17827
17826
|
|
|
17828
|
-
//
|
|
17827
|
+
// ../coding-agent/src/core/streaming-tool-journal.ts
|
|
17829
17828
|
import { randomUUID } from "crypto";
|
|
17830
17829
|
var JOURNAL_TYPE = "zpi.streaming_tools";
|
|
17831
17830
|
var StreamingToolJournal = class {
|
|
@@ -18054,7 +18053,7 @@ async function recoverCanonicalToolCallsAsync(manager, messages) {
|
|
|
18054
18053
|
for (const message2 of plan.trailing) await manager.appendEntryAsync({ type: "message", message: message2 });
|
|
18055
18054
|
}
|
|
18056
18055
|
|
|
18057
|
-
//
|
|
18056
|
+
// ../coding-agent/src/core/session-manager.ts
|
|
18058
18057
|
var SessionManager = class _SessionManager {
|
|
18059
18058
|
header;
|
|
18060
18059
|
store;
|
|
@@ -18382,10 +18381,16 @@ ${entry2.summary}`,
|
|
|
18382
18381
|
start = boundary.seq;
|
|
18383
18382
|
}
|
|
18384
18383
|
const retainedCalls = /* @__PURE__ */ new Set();
|
|
18384
|
+
let contextRestored = false;
|
|
18385
18385
|
for (const { seq, entry: entry2 } of this.store.readRange(start, view.endSeq, view, [
|
|
18386
18386
|
"message",
|
|
18387
18387
|
"microcompact"
|
|
18388
18388
|
])) {
|
|
18389
|
+
if (compaction && seq >= compaction.seq && !contextRestored) {
|
|
18390
|
+
if (compaction.entry.type === "compaction" && compaction.entry.contextMessage)
|
|
18391
|
+
messages.push(compaction.entry.contextMessage);
|
|
18392
|
+
contextRestored = true;
|
|
18393
|
+
}
|
|
18389
18394
|
if (entry2.type !== "message") {
|
|
18390
18395
|
const projected = applyMicrocompactBoundary(messages, microcompactClearedIds(entry2));
|
|
18391
18396
|
messages.splice(0, messages.length, ...projected);
|
|
@@ -18403,6 +18408,8 @@ ${entry2.summary}`,
|
|
|
18403
18408
|
setMessageProvenance(entry2.message, { entryId: entry2.id, seq, kind: "message" });
|
|
18404
18409
|
messages.push(entry2.message);
|
|
18405
18410
|
}
|
|
18411
|
+
if (compaction && !contextRestored && compaction.entry.type === "compaction" && compaction.entry.contextMessage)
|
|
18412
|
+
messages.push(compaction.entry.contextMessage);
|
|
18406
18413
|
const context = {
|
|
18407
18414
|
messages,
|
|
18408
18415
|
model: state.model,
|
|
@@ -18456,7 +18463,7 @@ ${entry2.summary}`,
|
|
|
18456
18463
|
if (!summary.trim() || !this.readEntryById(firstKeptEntryId))
|
|
18457
18464
|
throw new Error("Invalid compaction boundary or summary");
|
|
18458
18465
|
const current = this.buildSessionContext().messages;
|
|
18459
|
-
const
|
|
18466
|
+
const snapshot = systemSnapshot(current, Date.now());
|
|
18460
18467
|
return {
|
|
18461
18468
|
type: "compaction",
|
|
18462
18469
|
summary,
|
|
@@ -18464,7 +18471,7 @@ ${entry2.summary}`,
|
|
|
18464
18471
|
tokensBefore,
|
|
18465
18472
|
details,
|
|
18466
18473
|
usage: usage3,
|
|
18467
|
-
|
|
18474
|
+
...snapshot
|
|
18468
18475
|
};
|
|
18469
18476
|
}
|
|
18470
18477
|
createEntry(fields) {
|
|
@@ -18505,23 +18512,30 @@ ${entry2.summary}`,
|
|
|
18505
18512
|
function sessionEntryToContextMessages(entry2) {
|
|
18506
18513
|
return entry2.type === "message" ? [entry2.message] : [];
|
|
18507
18514
|
}
|
|
18508
|
-
function
|
|
18509
|
-
const
|
|
18515
|
+
function systemSnapshot(messages, timestamp) {
|
|
18516
|
+
const initial = messages[0]?.role === "system" ? messages[0] : void 0;
|
|
18517
|
+
const systemMessage2 = {
|
|
18518
|
+
...initial,
|
|
18510
18519
|
role: "system",
|
|
18511
|
-
content: "",
|
|
18512
|
-
sections: {},
|
|
18520
|
+
content: initial?.content ?? "",
|
|
18513
18521
|
toolsAdded: getCurrentTools(messages),
|
|
18522
|
+
toolsRemoved: void 0,
|
|
18514
18523
|
timestamp
|
|
18515
18524
|
};
|
|
18516
|
-
|
|
18525
|
+
const sections = /* @__PURE__ */ Object.create(null);
|
|
18526
|
+
const content = [];
|
|
18527
|
+
for (const message2 of messages.slice(initial ? 1 : 0)) {
|
|
18517
18528
|
if (message2.role !== "system") continue;
|
|
18518
|
-
const
|
|
18519
|
-
if (
|
|
18520
|
-
|
|
18521
|
-
`;
|
|
18522
|
-
Object.assign(system.sections ?? {}, message2.sections);
|
|
18529
|
+
const text3 = typeof message2.content === "string" ? message2.content : message2.content.map((c) => c.text).join("\n");
|
|
18530
|
+
if (text3) content.push(text3);
|
|
18531
|
+
Object.assign(sections, message2.sections);
|
|
18523
18532
|
}
|
|
18524
|
-
return
|
|
18533
|
+
return {
|
|
18534
|
+
systemMessage: systemMessage2,
|
|
18535
|
+
...content.length || Object.keys(sections).length ? {
|
|
18536
|
+
contextMessage: { role: "system", content: content.join("\n\n"), sections, timestamp }
|
|
18537
|
+
} : {}
|
|
18538
|
+
};
|
|
18525
18539
|
}
|
|
18526
18540
|
function buildSessionContext(entries) {
|
|
18527
18541
|
const context = {
|
|
@@ -18552,12 +18566,9 @@ function buildSessionContext(entries) {
|
|
|
18552
18566
|
const keepIndex = entries.findIndex((e) => e.id === compaction.firstKeptEntryId);
|
|
18553
18567
|
if (keepIndex < 0 || keepIndex >= compactionIndex) throw new Error("Invalid compaction boundary");
|
|
18554
18568
|
const timestamp = Date.parse(compaction.timestamp);
|
|
18555
|
-
const
|
|
18556
|
-
entries.slice(0, compactionIndex).flatMap(sessionEntryToContextMessages),
|
|
18557
|
-
timestamp
|
|
18558
|
-
);
|
|
18569
|
+
const snapshot = compaction.systemMessage ? { systemMessage: compaction.systemMessage, contextMessage: compaction.contextMessage } : systemSnapshot(entries.slice(0, compactionIndex).flatMap(sessionEntryToContextMessages), timestamp);
|
|
18559
18570
|
context.messages = [
|
|
18560
|
-
|
|
18571
|
+
snapshot.systemMessage,
|
|
18561
18572
|
{
|
|
18562
18573
|
role: "user",
|
|
18563
18574
|
synthetic: true,
|
|
@@ -18566,6 +18577,7 @@ ${compaction.summary}`,
|
|
|
18566
18577
|
timestamp
|
|
18567
18578
|
},
|
|
18568
18579
|
...entries.slice(keepIndex, compactionIndex).flatMap(sessionEntryToContextMessages).filter((m) => m.role !== "system"),
|
|
18580
|
+
...snapshot.contextMessage ? [snapshot.contextMessage] : [],
|
|
18569
18581
|
...entries.slice(compactionIndex + 1).flatMap(sessionEntryToContextMessages)
|
|
18570
18582
|
];
|
|
18571
18583
|
context.messages = replayMicrocompact(context.messages, entries);
|
|
@@ -18597,15 +18609,15 @@ function* remapSessionEntries(source) {
|
|
|
18597
18609
|
}
|
|
18598
18610
|
}
|
|
18599
18611
|
|
|
18600
|
-
//
|
|
18612
|
+
// ../coding-agent/src/core/settings-manager.ts
|
|
18601
18613
|
import { readFileSync as readFileSync2 } from "fs";
|
|
18602
18614
|
import { homedir as homedir2 } from "os";
|
|
18603
18615
|
import { join as join2 } from "path";
|
|
18604
18616
|
|
|
18605
|
-
//
|
|
18617
|
+
// ../coding-agent/src/core/compaction.ts
|
|
18606
18618
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
18607
18619
|
|
|
18608
|
-
//
|
|
18620
|
+
// ../coding-agent/src/core/compaction-utils.ts
|
|
18609
18621
|
function createFileOps() {
|
|
18610
18622
|
return {
|
|
18611
18623
|
read: /* @__PURE__ */ new Set(),
|
|
@@ -18709,7 +18721,7 @@ var SUMMARIZATION_SYSTEM_PROMPT = `You are a context summarization assistant. Yo
|
|
|
18709
18721
|
|
|
18710
18722
|
Do NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.`;
|
|
18711
18723
|
|
|
18712
|
-
//
|
|
18724
|
+
// ../coding-agent/src/core/compaction.ts
|
|
18713
18725
|
var convertToLlm = (messages) => messages;
|
|
18714
18726
|
function extractFileOperations(messages, entries, prevCompactionIndex) {
|
|
18715
18727
|
const fileOps = createFileOps();
|
|
@@ -19349,7 +19361,7 @@ ${TURN_PREFIX_SUMMARIZATION_PROMPT}`;
|
|
|
19349
19361
|
};
|
|
19350
19362
|
}
|
|
19351
19363
|
|
|
19352
|
-
//
|
|
19364
|
+
// ../coding-agent/src/core/settings-manager.ts
|
|
19353
19365
|
function object2(value) {
|
|
19354
19366
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
19355
19367
|
}
|
|
@@ -19456,12 +19468,12 @@ var SettingsManager = class _SettingsManager {
|
|
|
19456
19468
|
}
|
|
19457
19469
|
};
|
|
19458
19470
|
|
|
19459
|
-
//
|
|
19471
|
+
// ../ai/src/api/responses-session.ts
|
|
19460
19472
|
var import_https_proxy_agent = __toESM(require_dist2(), 1);
|
|
19461
19473
|
import { createHash as createHash2 } from "crypto";
|
|
19462
19474
|
import { isDeepStrictEqual } from "util";
|
|
19463
19475
|
|
|
19464
|
-
// node_modules/ws/wrapper.mjs
|
|
19476
|
+
// ../../node_modules/ws/wrapper.mjs
|
|
19465
19477
|
var wrapper_exports = {};
|
|
19466
19478
|
__export(wrapper_exports, {
|
|
19467
19479
|
PerMessageDeflate: () => import_permessage_deflate.default,
|
|
@@ -19484,7 +19496,7 @@ var import_websocket = __toESM(require_websocket(), 1);
|
|
|
19484
19496
|
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
19485
19497
|
var wrapper_default = import_websocket.default;
|
|
19486
19498
|
|
|
19487
|
-
// node_modules/openai/internal/ws.mjs
|
|
19499
|
+
// ../../node_modules/openai/internal/ws.mjs
|
|
19488
19500
|
var webSocketErrors = /* @__PURE__ */ new WeakMap();
|
|
19489
19501
|
function recordWebSocketError(socket, error) {
|
|
19490
19502
|
webSocketErrors.set(socket, error);
|
|
@@ -19739,7 +19751,7 @@ function isRecoverableClose(code) {
|
|
|
19739
19751
|
}
|
|
19740
19752
|
}
|
|
19741
19753
|
|
|
19742
|
-
// node_modules/openai/internal/ws-adapter-node.mjs
|
|
19754
|
+
// ../../node_modules/openai/internal/ws-adapter-node.mjs
|
|
19743
19755
|
var NodeWebSocket = class _NodeWebSocket {
|
|
19744
19756
|
/** Wraps an existing socket created by the optional `ws` package. */
|
|
19745
19757
|
constructor(ws) {
|
|
@@ -19881,7 +19893,7 @@ var NodeWebSocket = class _NodeWebSocket {
|
|
|
19881
19893
|
}
|
|
19882
19894
|
};
|
|
19883
19895
|
|
|
19884
|
-
// node_modules/openai/core/EventEmitter.mjs
|
|
19896
|
+
// ../../node_modules/openai/core/EventEmitter.mjs
|
|
19885
19897
|
var _EventEmitter_instances;
|
|
19886
19898
|
var _EventEmitter_listeners;
|
|
19887
19899
|
var _EventEmitter_emittedListenerRegistrations;
|
|
@@ -20057,7 +20069,7 @@ var InternalEventEmitter = class extends EventEmitter {
|
|
|
20057
20069
|
}
|
|
20058
20070
|
};
|
|
20059
20071
|
|
|
20060
|
-
// node_modules/openai/resources/responses/internal-base.mjs
|
|
20072
|
+
// ../../node_modules/openai/resources/responses/internal-base.mjs
|
|
20061
20073
|
var WebSocketError = class extends OpenAIError {
|
|
20062
20074
|
constructor(message2, event) {
|
|
20063
20075
|
super(message2);
|
|
@@ -20110,7 +20122,7 @@ function safeWebSocketErrorMessage(event, message2) {
|
|
|
20110
20122
|
}
|
|
20111
20123
|
}
|
|
20112
20124
|
|
|
20113
|
-
// node_modules/openai/internal/ws-adapter.mjs
|
|
20125
|
+
// ../../node_modules/openai/internal/ws-adapter.mjs
|
|
20114
20126
|
var ReadyState = {
|
|
20115
20127
|
/** The connection has been created but is not ready to send messages. */
|
|
20116
20128
|
CONNECTING: 0,
|
|
@@ -20122,7 +20134,7 @@ var ReadyState = {
|
|
|
20122
20134
|
CLOSED: 3
|
|
20123
20135
|
};
|
|
20124
20136
|
|
|
20125
|
-
// node_modules/openai/resources/responses/ws-base.mjs
|
|
20137
|
+
// ../../node_modules/openai/resources/responses/ws-base.mjs
|
|
20126
20138
|
var webSocketEventPayloads = /* @__PURE__ */ new WeakMap();
|
|
20127
20139
|
var webSocketEventBytes = /* @__PURE__ */ new WeakMap();
|
|
20128
20140
|
var ResponsesWSBase = class extends ResponsesEmitter {
|
|
@@ -20619,7 +20631,7 @@ var ResponsesWSBase = class extends ResponsesEmitter {
|
|
|
20619
20631
|
}
|
|
20620
20632
|
};
|
|
20621
20633
|
|
|
20622
|
-
// node_modules/openai/resources/responses/ws.mjs
|
|
20634
|
+
// ../../node_modules/openai/resources/responses/ws.mjs
|
|
20623
20635
|
var ResponsesWS = class extends ResponsesWSBase {
|
|
20624
20636
|
constructor(client, options) {
|
|
20625
20637
|
if (!wrapper_exports?.WebSocket) {
|
|
@@ -20653,7 +20665,7 @@ var ResponsesWS = class extends ResponsesWSBase {
|
|
|
20653
20665
|
}
|
|
20654
20666
|
};
|
|
20655
20667
|
|
|
20656
|
-
//
|
|
20668
|
+
// ../ai/src/api/responses-session.ts
|
|
20657
20669
|
var import_socks_proxy_agent = __toESM(require_dist3(), 1);
|
|
20658
20670
|
var IDLE_MS = 5 * 6e4;
|
|
20659
20671
|
function supportsResponsesWebSocket(model) {
|
|
@@ -20967,7 +20979,7 @@ function outputInput(items, model) {
|
|
|
20967
20979
|
});
|
|
20968
20980
|
}
|
|
20969
20981
|
|
|
20970
|
-
//
|
|
20982
|
+
// ../coding-agent/src/core/model-runtime.ts
|
|
20971
20983
|
var ModelRuntime = class _ModelRuntime {
|
|
20972
20984
|
providers = /* @__PURE__ */ new Map();
|
|
20973
20985
|
keys = /* @__PURE__ */ new Map();
|
|
@@ -21099,11 +21111,11 @@ var ModelRuntime = class _ModelRuntime {
|
|
|
21099
21111
|
}
|
|
21100
21112
|
};
|
|
21101
21113
|
|
|
21102
|
-
//
|
|
21114
|
+
// ../coding-agent/src/core/sdk.ts
|
|
21103
21115
|
import { homedir as homedir6 } from "os";
|
|
21104
21116
|
import { join as join9, resolve as resolve4 } from "path";
|
|
21105
21117
|
|
|
21106
|
-
//
|
|
21118
|
+
// ../coding-agent/src/core/tools/pi/tool-definition-wrapper.ts
|
|
21107
21119
|
function wrapToolDefinition(definition, context, serializeDetails = true) {
|
|
21108
21120
|
assertSupportedOptions(
|
|
21109
21121
|
definition,
|
|
@@ -21156,7 +21168,7 @@ function wrapToolDefinition(definition, context, serializeDetails = true) {
|
|
|
21156
21168
|
};
|
|
21157
21169
|
}
|
|
21158
21170
|
|
|
21159
|
-
//
|
|
21171
|
+
// ../coding-agent/src/plugins/hooks.ts
|
|
21160
21172
|
import { randomUUID as randomUUID4 } from "crypto";
|
|
21161
21173
|
import { Type as Type2 } from "typebox";
|
|
21162
21174
|
import { Check } from "typebox/value";
|
|
@@ -21287,7 +21299,7 @@ var HookRunner = class {
|
|
|
21287
21299
|
}
|
|
21288
21300
|
};
|
|
21289
21301
|
|
|
21290
|
-
//
|
|
21302
|
+
// ../coding-agent/src/plugins/assembly.ts
|
|
21291
21303
|
var identifier = /^[a-zA-Z0-9][a-zA-Z0-9_.:@/-]*$/;
|
|
21292
21304
|
var commandName = /^[a-zA-Z0-9][a-zA-Z0-9_:-]*$/;
|
|
21293
21305
|
var reservedCommands = /* @__PURE__ */ new Set(["compact"]);
|
|
@@ -21314,10 +21326,10 @@ function validatePluginSnapshot(value) {
|
|
|
21314
21326
|
throw new Error("Invalid plugin skill");
|
|
21315
21327
|
}
|
|
21316
21328
|
function pluginSnapshotData(plugin) {
|
|
21317
|
-
const { id, version, name, description, instructions, commands, skills, runtime: runtime2, options } = plugin;
|
|
21329
|
+
const { id, version: version2, name, description, instructions, commands, skills, runtime: runtime2, options } = plugin;
|
|
21318
21330
|
return {
|
|
21319
21331
|
id,
|
|
21320
|
-
version,
|
|
21332
|
+
version: version2,
|
|
21321
21333
|
name,
|
|
21322
21334
|
description,
|
|
21323
21335
|
instructions,
|
|
@@ -21406,13 +21418,20 @@ function assembleSession(options) {
|
|
|
21406
21418
|
activeTools,
|
|
21407
21419
|
commands,
|
|
21408
21420
|
skills,
|
|
21409
|
-
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
|
|
21414
|
-
|
|
21415
|
-
|
|
21421
|
+
getContextSections: () => Object.fromEntries(
|
|
21422
|
+
plugins.flatMap((plugin) => {
|
|
21423
|
+
const dynamic = plugin.contextInstructions?.() ?? {};
|
|
21424
|
+
if (!dynamic || typeof dynamic !== "object" || Array.isArray(dynamic) || Object.entries(dynamic).some(([name, part]) => !name || typeof part !== "string"))
|
|
21425
|
+
throw new Error("Invalid plugin context instructions");
|
|
21426
|
+
return [
|
|
21427
|
+
[JSON.stringify(["plugin", plugin.id]), (plugin.instructions ?? []).join("\n\n")],
|
|
21428
|
+
...Object.entries(dynamic).map(([name, value]) => [
|
|
21429
|
+
JSON.stringify(["plugin", plugin.id, name]),
|
|
21430
|
+
value
|
|
21431
|
+
])
|
|
21432
|
+
].filter(([, value]) => value);
|
|
21433
|
+
})
|
|
21434
|
+
),
|
|
21416
21435
|
hooks: plugins.flatMap(
|
|
21417
21436
|
(plugin) => (plugin.hooks ?? []).map((hook) => ({ ...hook, pluginId: plugin.id }))
|
|
21418
21437
|
)
|
|
@@ -21422,7 +21441,7 @@ function expandPluginCommand(command, args, cwd) {
|
|
|
21422
21441
|
return command.prompt.replace(/{{\s*(cwd|arguments)\s*}}/g, (_, key) => key === "cwd" ? cwd : args);
|
|
21423
21442
|
}
|
|
21424
21443
|
|
|
21425
|
-
//
|
|
21444
|
+
// ../coding-agent/src/plugins/resources.ts
|
|
21426
21445
|
function withPluginResources(loader, skills) {
|
|
21427
21446
|
if (!skills.length) return loader;
|
|
21428
21447
|
const metadata = skills.map(({ body: _body, ...skill }) => ({ ...skill, source: "plugin" }));
|
|
@@ -21446,10 +21465,10 @@ function withPluginResources(loader, skills) {
|
|
|
21446
21465
|
};
|
|
21447
21466
|
}
|
|
21448
21467
|
|
|
21449
|
-
//
|
|
21468
|
+
// ../coding-agent/src/core/agent-session.ts
|
|
21450
21469
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
21451
21470
|
|
|
21452
|
-
//
|
|
21471
|
+
// ../agent/src/tool-execution.ts
|
|
21453
21472
|
import { Check as Check2 } from "typebox/value";
|
|
21454
21473
|
var toolFailure = (error) => ({
|
|
21455
21474
|
content: [{ type: "text", text: error instanceof Error ? error.message : String(error) }],
|
|
@@ -21573,7 +21592,7 @@ function createToolExecutor(context, assistant, config, emit, signal) {
|
|
|
21573
21592
|
return { schedule };
|
|
21574
21593
|
}
|
|
21575
21594
|
|
|
21576
|
-
//
|
|
21595
|
+
// ../agent/src/streaming-tool-coordinator.ts
|
|
21577
21596
|
var CANCEL_DRAIN_TIMEOUT_MS = 250;
|
|
21578
21597
|
function shouldExecuteDuringStream(context, config, call2) {
|
|
21579
21598
|
if (!call2.name.trim() || config.streamingToolExecution === "off" || config.toolExecution === "sequential" || context.tools?.some((tool3) => tool3.executionMode === "sequential"))
|
|
@@ -21704,7 +21723,7 @@ function createStreamingToolCoordinator(context, config, emit, signal) {
|
|
|
21704
21723
|
};
|
|
21705
21724
|
}
|
|
21706
21725
|
|
|
21707
|
-
//
|
|
21726
|
+
// ../agent/src/agent-loop.ts
|
|
21708
21727
|
function declareTools(context) {
|
|
21709
21728
|
const old = getCurrentTools(context.messages);
|
|
21710
21729
|
const next = (context.tools ?? []).map(toToolDeclaration);
|
|
@@ -21717,7 +21736,7 @@ async function runAgentLoop(prompts, context, config, emit, signal, streamFn) {
|
|
|
21717
21736
|
}
|
|
21718
21737
|
async function runAgentLoopContinue(context, config, emit, signal, streamFn) {
|
|
21719
21738
|
const converted = await config.convertToLlm(context.messages);
|
|
21720
|
-
const last = converted.
|
|
21739
|
+
const last = converted.findLast((message2) => message2.role !== "system");
|
|
21721
21740
|
if (!last || last.role !== "user" && last.role !== "toolResult")
|
|
21722
21741
|
throw new Error("Cannot continue: last message must be user or toolResult");
|
|
21723
21742
|
return run(declareTools(context), context, config, emit, signal, streamFn);
|
|
@@ -21897,7 +21916,7 @@ async function run(prompts, initial, config, sink, signal, streamFn) {
|
|
|
21897
21916
|
return fresh;
|
|
21898
21917
|
}
|
|
21899
21918
|
|
|
21900
|
-
//
|
|
21919
|
+
// ../agent/src/agent.ts
|
|
21901
21920
|
var Agent = class {
|
|
21902
21921
|
state;
|
|
21903
21922
|
options;
|
|
@@ -22062,7 +22081,7 @@ var Agent = class {
|
|
|
22062
22081
|
}
|
|
22063
22082
|
};
|
|
22064
22083
|
|
|
22065
|
-
//
|
|
22084
|
+
// ../coding-agent/src/plugins/session-hooks.ts
|
|
22066
22085
|
import { Check as Check3 } from "typebox/value";
|
|
22067
22086
|
var SessionHooks = class {
|
|
22068
22087
|
runner;
|
|
@@ -22184,7 +22203,7 @@ ${contexts.join("\n\n").slice(0, maxHookContextChars)}
|
|
|
22184
22203
|
] : [];
|
|
22185
22204
|
}
|
|
22186
22205
|
|
|
22187
|
-
//
|
|
22206
|
+
// ../coding-agent/src/core/commands.ts
|
|
22188
22207
|
var localCommands = [{ name: "compact", description: "\u6458\u8981\u65E7\u5BF9\u8BDD\uFF0C\u4FDD\u7559\u5B8C\u6574\u5386\u53F2" }];
|
|
22189
22208
|
function listCommands(commands = []) {
|
|
22190
22209
|
return [...commands, ...localCommands].map(({ name, description }) => ({ name, description }));
|
|
@@ -22199,7 +22218,29 @@ function parseInput(text3) {
|
|
|
22199
22218
|
return { kind: "prompt", text: text3 };
|
|
22200
22219
|
}
|
|
22201
22220
|
|
|
22202
|
-
//
|
|
22221
|
+
// ../coding-agent/src/core/dynamic-context.ts
|
|
22222
|
+
function sdkBlock(name) {
|
|
22223
|
+
return name.startsWith("zpi.") || name.startsWith('["plugin",');
|
|
22224
|
+
}
|
|
22225
|
+
function contextUpdate(messages, current) {
|
|
22226
|
+
const previous = /* @__PURE__ */ new Map();
|
|
22227
|
+
for (const message2 of messages) {
|
|
22228
|
+
if (message2.role !== "system") continue;
|
|
22229
|
+
for (const [name, value] of Object.entries(message2.sections ?? {}))
|
|
22230
|
+
if (sdkBlock(name)) previous.set(name, value || null);
|
|
22231
|
+
}
|
|
22232
|
+
const sections = /* @__PURE__ */ Object.create(null);
|
|
22233
|
+
for (const [name, value] of Object.entries(current)) {
|
|
22234
|
+
if (!sdkBlock(name) || typeof value !== "string") throw new Error(`Invalid SDK context block: ${name}`);
|
|
22235
|
+
const next = value || null;
|
|
22236
|
+
if (next !== (previous.get(name) ?? null)) sections[name] = next;
|
|
22237
|
+
}
|
|
22238
|
+
for (const [name, value] of previous)
|
|
22239
|
+
if (!Object.hasOwn(current, name) && value !== null) sections[name] = null;
|
|
22240
|
+
return Object.keys(sections).length ? { role: "system", content: "", sections, timestamp: Date.now() } : void 0;
|
|
22241
|
+
}
|
|
22242
|
+
|
|
22243
|
+
// ../coding-agent/src/core/http-idle-timeout.ts
|
|
22203
22244
|
function withHttpIdleTimeout(requestFetch, timeoutMs) {
|
|
22204
22245
|
if (timeoutMs === 0) return requestFetch;
|
|
22205
22246
|
return async (input, init) => {
|
|
@@ -22283,7 +22324,7 @@ function withHttpIdleTimeout(requestFetch, timeoutMs) {
|
|
|
22283
22324
|
};
|
|
22284
22325
|
}
|
|
22285
22326
|
|
|
22286
|
-
//
|
|
22327
|
+
// ../coding-agent/src/core/model-performance.ts
|
|
22287
22328
|
var emptyPerformanceTotals = () => ({
|
|
22288
22329
|
turns: 0,
|
|
22289
22330
|
steps: 0,
|
|
@@ -22411,7 +22452,7 @@ var SessionPerformance = class {
|
|
|
22411
22452
|
}
|
|
22412
22453
|
};
|
|
22413
22454
|
|
|
22414
|
-
//
|
|
22455
|
+
// ../coding-agent/src/core/session-state.ts
|
|
22415
22456
|
function contextUsage(entries, model) {
|
|
22416
22457
|
const result = {
|
|
22417
22458
|
contextWindow: model.contextWindow,
|
|
@@ -22453,7 +22494,7 @@ function contextUsage(entries, model) {
|
|
|
22453
22494
|
return result;
|
|
22454
22495
|
}
|
|
22455
22496
|
|
|
22456
|
-
//
|
|
22497
|
+
// ../coding-agent/src/core/agent-session.ts
|
|
22457
22498
|
function withReferences(text3, references) {
|
|
22458
22499
|
const instructions = references?.some((path) => path.endsWith("/")) ? "Referenced project files and folders (use bash to list folders and read to inspect files when needed)" : "Referenced project files (read with the read tool when needed)";
|
|
22459
22500
|
return references?.length ? `${text3}
|
|
@@ -22521,7 +22562,12 @@ var AgentSession = class _AgentSession {
|
|
|
22521
22562
|
this.resources = resources;
|
|
22522
22563
|
this.settingsManager = resources?.settingsManager ?? SettingsManager.inMemory();
|
|
22523
22564
|
this.allTools = new Map(allTools.map((t) => [t.name, t]));
|
|
22524
|
-
for (const message2 of initialSystemMessages(
|
|
22565
|
+
for (const message2 of initialSystemMessages(
|
|
22566
|
+
manager,
|
|
22567
|
+
activeTools,
|
|
22568
|
+
systemPrompt,
|
|
22569
|
+
resources?.buildContext()
|
|
22570
|
+
))
|
|
22525
22571
|
manager.appendMessage(message2);
|
|
22526
22572
|
this.lastAssistantCompletedAtMs = manager.buildSessionContext().messages.findLast(
|
|
22527
22573
|
(message2) => message2.role === "assistant" && message2.stopReason !== "error" && message2.stopReason !== "aborted"
|
|
@@ -22559,12 +22605,13 @@ var AgentSession = class _AgentSession {
|
|
|
22559
22605
|
return result.messages;
|
|
22560
22606
|
},
|
|
22561
22607
|
prepareNextTurnWithContext: async (turn, signal) => {
|
|
22608
|
+
const updated = await this.syncContext();
|
|
22562
22609
|
const settings = this.settingsManager.getCompactionSettings(this.model);
|
|
22563
22610
|
if (this.model.contextWindow > 0 && shouldCompact(this.estimateTokens(turn.context.messages), this.model.contextWindow, settings)) {
|
|
22564
22611
|
if (await this.tryAutoCompact(signal))
|
|
22565
22612
|
return { context: { ...turn.context, messages: this.manager.buildSessionContext().messages } };
|
|
22566
22613
|
}
|
|
22567
|
-
return void 0;
|
|
22614
|
+
return updated ? { context: { ...turn.context, messages: this.manager.buildSessionContext().messages } } : void 0;
|
|
22568
22615
|
},
|
|
22569
22616
|
beforeToolCall: this.hooks.runner.hasToolHooks ? this.hooks.beforeToolCall : void 0,
|
|
22570
22617
|
afterToolCall: this.hooks.runner.hasToolHooks ? this.hooks.afterToolCall : void 0,
|
|
@@ -22650,8 +22697,13 @@ var AgentSession = class _AgentSession {
|
|
|
22650
22697
|
this.responsesWarmupTimer.unref();
|
|
22651
22698
|
}
|
|
22652
22699
|
static async create(...args) {
|
|
22653
|
-
const [, , manager, , activeTools, systemPrompt] = args;
|
|
22654
|
-
for (const message2 of initialSystemMessages(
|
|
22700
|
+
const [, , manager, , activeTools, systemPrompt, , resources] = args;
|
|
22701
|
+
for (const message2 of initialSystemMessages(
|
|
22702
|
+
manager,
|
|
22703
|
+
activeTools,
|
|
22704
|
+
systemPrompt,
|
|
22705
|
+
resources?.buildContext()
|
|
22706
|
+
))
|
|
22655
22707
|
await manager.appendEntryAsync({ type: "message", message: message2 });
|
|
22656
22708
|
return new _AgentSession(...args);
|
|
22657
22709
|
}
|
|
@@ -22720,25 +22772,21 @@ var AgentSession = class _AgentSession {
|
|
|
22720
22772
|
if (input.kind !== "prompt") throw new Error("Input must be prepared before execution");
|
|
22721
22773
|
return this.prompt(withReferences(input.text, context.fileReferences), { images: context.images });
|
|
22722
22774
|
}
|
|
22723
|
-
async
|
|
22724
|
-
const
|
|
22725
|
-
if (
|
|
22726
|
-
|
|
22727
|
-
|
|
22728
|
-
|
|
22729
|
-
message: {
|
|
22730
|
-
role: "system",
|
|
22731
|
-
content: "",
|
|
22732
|
-
sections: { [name]: value },
|
|
22733
|
-
timestamp: Date.now()
|
|
22734
|
-
}
|
|
22775
|
+
async syncContext() {
|
|
22776
|
+
const current = this.resources?.buildContext();
|
|
22777
|
+
if (!current) return false;
|
|
22778
|
+
const update = contextUpdate(this.manager.buildSessionContext().messages, {
|
|
22779
|
+
"zpi.base": current.base,
|
|
22780
|
+
...current.sections
|
|
22735
22781
|
});
|
|
22782
|
+
if (!update) return false;
|
|
22783
|
+
await this.manager.appendEntryAsync({ type: "message", message: update });
|
|
22736
22784
|
this.notifyLastEntry();
|
|
22737
|
-
|
|
22785
|
+
return true;
|
|
22738
22786
|
}
|
|
22739
22787
|
async refreshInstructions() {
|
|
22740
22788
|
await this.resources?.loader.reload?.();
|
|
22741
|
-
if (this.
|
|
22789
|
+
if (await this.syncContext()) this.agent.state.messages = this.manager.buildSessionContext().messages;
|
|
22742
22790
|
}
|
|
22743
22791
|
compactionBoundary() {
|
|
22744
22792
|
const preparation = prepareCompaction(
|
|
@@ -22797,9 +22845,10 @@ var AgentSession = class _AgentSession {
|
|
|
22797
22845
|
return false;
|
|
22798
22846
|
}
|
|
22799
22847
|
dropFailedAssistant() {
|
|
22800
|
-
const
|
|
22848
|
+
const index = this.messages.findLastIndex((message2) => message2.role !== "system");
|
|
22849
|
+
const last = this.messages[index];
|
|
22801
22850
|
if (last?.role === "assistant" && ["error", "length"].includes(last.stopReason))
|
|
22802
|
-
this.state.messages = this.messages.
|
|
22851
|
+
this.state.messages = this.messages.filter((_, i) => i !== index);
|
|
22803
22852
|
}
|
|
22804
22853
|
async waitForRetry(message2, signal) {
|
|
22805
22854
|
if (!this.canRetry(message2)) return false;
|
|
@@ -23264,39 +23313,37 @@ var AgentSession = class _AgentSession {
|
|
|
23264
23313
|
this.notify({ type: "session_info_changed", name });
|
|
23265
23314
|
}
|
|
23266
23315
|
};
|
|
23267
|
-
function initialSystemMessages(manager, activeTools, systemPrompt) {
|
|
23316
|
+
function initialSystemMessages(manager, activeTools, systemPrompt, context) {
|
|
23268
23317
|
const messages = [];
|
|
23269
23318
|
const restored = manager.buildSessionContext();
|
|
23270
|
-
if (
|
|
23271
|
-
|
|
23272
|
-
|
|
23273
|
-
|
|
23274
|
-
|
|
23275
|
-
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
|
|
23281
|
-
|
|
23282
|
-
|
|
23283
|
-
|
|
23284
|
-
|
|
23285
|
-
|
|
23286
|
-
role: "system",
|
|
23287
|
-
content: "",
|
|
23288
|
-
sections: { "zpi.instructions": systemPrompt },
|
|
23289
|
-
timestamp: Date.now()
|
|
23319
|
+
if (restored.messages.some((m) => m.role === "system")) return messages;
|
|
23320
|
+
messages.push({
|
|
23321
|
+
role: "system",
|
|
23322
|
+
content: "",
|
|
23323
|
+
sections: { "zpi.base": systemPrompt },
|
|
23324
|
+
toolsAdded: activeTools.map((t) => ({
|
|
23325
|
+
name: t.name,
|
|
23326
|
+
description: t.description,
|
|
23327
|
+
parameters: t.parameters
|
|
23328
|
+
})),
|
|
23329
|
+
timestamp: Date.now()
|
|
23330
|
+
});
|
|
23331
|
+
if (context) {
|
|
23332
|
+
const update = contextUpdate([...restored.messages, ...messages], {
|
|
23333
|
+
"zpi.base": context.base,
|
|
23334
|
+
...context.sections
|
|
23290
23335
|
});
|
|
23336
|
+
if (update) messages.push(update);
|
|
23337
|
+
}
|
|
23291
23338
|
return messages;
|
|
23292
23339
|
}
|
|
23293
23340
|
|
|
23294
|
-
//
|
|
23341
|
+
// ../coding-agent/src/core/resources.ts
|
|
23295
23342
|
import { open, readdir, readFile, realpath, stat } from "fs/promises";
|
|
23296
23343
|
import { homedir as homedir3 } from "os";
|
|
23297
23344
|
import { basename, dirname as dirname2, join as join3, resolve as resolve2 } from "path";
|
|
23298
23345
|
|
|
23299
|
-
//
|
|
23346
|
+
// ../coding-agent/src/core/markdown.ts
|
|
23300
23347
|
var import_yaml = __toESM(require_dist4(), 1);
|
|
23301
23348
|
function matchMarkdownFrontmatter(text3) {
|
|
23302
23349
|
const match = /^\uFEFF?---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/.exec(text3);
|
|
@@ -23312,7 +23359,7 @@ function parseMarkdownFrontmatter(text3) {
|
|
|
23312
23359
|
return { fields, body: text3.slice(match.bodyOffset).trim(), bodyOffset: match.bodyOffset };
|
|
23313
23360
|
}
|
|
23314
23361
|
|
|
23315
|
-
//
|
|
23362
|
+
// ../coding-agent/src/core/resources.ts
|
|
23316
23363
|
function missing(error) {
|
|
23317
23364
|
return error instanceof Error && "code" in error && error.code === "ENOENT";
|
|
23318
23365
|
}
|
|
@@ -23492,7 +23539,7 @@ function formatSkillsForPrompt(skills, tool2 = "read") {
|
|
|
23492
23539
|
return [
|
|
23493
23540
|
"<skills>",
|
|
23494
23541
|
"The following skills provide specialized instructions for specific tasks.",
|
|
23495
|
-
tool2 === "
|
|
23542
|
+
tool2 === "Skill" ? "Use the Skill tool with the skill name to load its instructions when the task matches its description." : `Use the ${tool2} tool to load a skill's file when the task matches its description.`,
|
|
23496
23543
|
"When a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.",
|
|
23497
23544
|
"",
|
|
23498
23545
|
"<available_skills>",
|
|
@@ -23508,7 +23555,7 @@ function formatSkillsForPrompt(skills, tool2 = "read") {
|
|
|
23508
23555
|
].join("\n");
|
|
23509
23556
|
}
|
|
23510
23557
|
|
|
23511
|
-
//
|
|
23558
|
+
// ../coding-agent/src/core/types.ts
|
|
23512
23559
|
function resourceInstructions(loader) {
|
|
23513
23560
|
return loader?.getInstructions?.() ?? [];
|
|
23514
23561
|
}
|
|
@@ -23516,7 +23563,7 @@ function resourceBaseInstructions(loader) {
|
|
|
23516
23563
|
return loader?.getBaseInstructions?.();
|
|
23517
23564
|
}
|
|
23518
23565
|
|
|
23519
|
-
//
|
|
23566
|
+
// ../coding-agent/src/core/system-prompt.ts
|
|
23520
23567
|
var piTemplate = {
|
|
23521
23568
|
id: "pi",
|
|
23522
23569
|
name: "ZPI \u901A\u7528",
|
|
@@ -23537,7 +23584,7 @@ function renderTemplate(text3, context) {
|
|
|
23537
23584
|
(_, key) => context[key]
|
|
23538
23585
|
);
|
|
23539
23586
|
}
|
|
23540
|
-
function
|
|
23587
|
+
function buildSystemContext(options) {
|
|
23541
23588
|
if (options.customInstructions !== void 0 && (!Array.isArray(options.customInstructions) || options.customInstructions.some((part) => typeof part !== "string")))
|
|
23542
23589
|
throw new Error("invalid_input: customInstructions must be an array of strings");
|
|
23543
23590
|
const template = options.template ?? piTemplate;
|
|
@@ -23551,39 +23598,45 @@ function buildSystemPrompt(options) {
|
|
|
23551
23598
|
if (options.tools.some((t) => t.name === "bash") && !options.tools.some((t) => ["grep", "find", "ls"].includes(t.name)))
|
|
23552
23599
|
rules.push("Use bash for file operations like ls, rg, find");
|
|
23553
23600
|
for (const tool2 of options.tools) rules.push(...tool2.promptGuidelines ?? []);
|
|
23554
|
-
rules.
|
|
23555
|
-
...renderTemplate(template.rules, context).split("\n").map((line) => line.replace(/^\s*-\s*/, "")).filter(Boolean)
|
|
23556
|
-
);
|
|
23601
|
+
const baseRules = renderTemplate(template.rules, context).split("\n").map((line) => line.replace(/^\s*-\s*/, "")).filter(Boolean);
|
|
23557
23602
|
const toolSnippets = options.tools.filter((tool2) => ["read", "write", "edit", "bash"].includes(tool2.name) && tool2.promptSnippet).map((tool2) => `- ${tool2.name}: ${tool2.promptSnippet}`);
|
|
23558
23603
|
const skills = options.loader?.listSkills?.().skills ?? [];
|
|
23559
|
-
const
|
|
23604
|
+
const skillTool = ["read", "Read", "Skill", "bash", "Bash"].find(
|
|
23605
|
+
(name) => options.tools.some((tool2) => tool2.name === name)
|
|
23606
|
+
);
|
|
23607
|
+
const base = options.baseInstructions ?? [
|
|
23560
23608
|
resourceBaseInstructions(options.loader) ?? renderTemplate(template.preamble, context),
|
|
23561
|
-
...toolSnippets.length ? [`<tools>
|
|
23562
|
-
${toolSnippets.join("\n")}
|
|
23563
|
-
</tools>`] : [],
|
|
23564
23609
|
`<rules>
|
|
23610
|
+
${[...new Set(baseRules)].map((r) => `- ${r}`).join("\n")}
|
|
23611
|
+
</rules>`
|
|
23612
|
+
].filter(Boolean).join("\n\n");
|
|
23613
|
+
const sections = {
|
|
23614
|
+
"zpi.tools": toolSnippets.length ? `<tools>
|
|
23615
|
+
${toolSnippets.join("\n")}
|
|
23616
|
+
</tools>` : "",
|
|
23617
|
+
"zpi.tool-rules": rules.length ? `<rules>
|
|
23565
23618
|
${[...new Set(rules)].map((r) => `- ${r}`).join("\n")}
|
|
23566
|
-
</rules
|
|
23567
|
-
|
|
23568
|
-
|
|
23569
|
-
|
|
23570
|
-
`<cwd>
|
|
23619
|
+
</rules>` : "",
|
|
23620
|
+
"zpi.resources": resourceInstructions(options.loader).filter((part) => !part.startsWith("<skills>")).join("\n\n"),
|
|
23621
|
+
"zpi.custom": (options.customInstructions ?? []).join("\n\n"),
|
|
23622
|
+
"zpi.skills": skills.length && skillTool ? formatSkillsForPrompt(skills, skillTool) : "",
|
|
23623
|
+
"zpi.environment": `<cwd>
|
|
23571
23624
|
${options.cwd.replace(/\\/g, "/")}
|
|
23572
23625
|
</cwd>`
|
|
23573
|
-
|
|
23574
|
-
return sections
|
|
23626
|
+
};
|
|
23627
|
+
return { base, sections };
|
|
23575
23628
|
}
|
|
23576
23629
|
|
|
23577
|
-
//
|
|
23630
|
+
// ../coding-agent/src/core/tools/index.ts
|
|
23578
23631
|
import { createHash as createHash6 } from "crypto";
|
|
23579
23632
|
import { realpath as realpath3, writeFile as writeFile2 } from "fs/promises";
|
|
23580
23633
|
|
|
23581
|
-
//
|
|
23634
|
+
// ../coding-agent/src/core/tools/file-change.ts
|
|
23582
23635
|
import { createHash as createHash3, randomUUID as randomUUID6 } from "crypto";
|
|
23583
23636
|
import { mkdir, writeFile } from "fs/promises";
|
|
23584
23637
|
import { join as join4 } from "path";
|
|
23585
23638
|
|
|
23586
|
-
// node_modules/diff/libesm/diff/base.js
|
|
23639
|
+
// ../../node_modules/diff/libesm/diff/base.js
|
|
23587
23640
|
var Diff = class {
|
|
23588
23641
|
diff(oldStr, newStr, options = {}) {
|
|
23589
23642
|
let callback;
|
|
@@ -23785,7 +23838,7 @@ var Diff = class {
|
|
|
23785
23838
|
}
|
|
23786
23839
|
};
|
|
23787
23840
|
|
|
23788
|
-
// node_modules/diff/libesm/diff/line.js
|
|
23841
|
+
// ../../node_modules/diff/libesm/diff/line.js
|
|
23789
23842
|
var LineDiff = class extends Diff {
|
|
23790
23843
|
constructor() {
|
|
23791
23844
|
super(...arguments);
|
|
@@ -23833,7 +23886,7 @@ function tokenize(value, options) {
|
|
|
23833
23886
|
return retLines;
|
|
23834
23887
|
}
|
|
23835
23888
|
|
|
23836
|
-
// node_modules/diff/libesm/patch/parse.js
|
|
23889
|
+
// ../../node_modules/diff/libesm/patch/parse.js
|
|
23837
23890
|
function parsePatch(uniDiff) {
|
|
23838
23891
|
const diffstr = uniDiff.split(/\n/), list = [];
|
|
23839
23892
|
let i = 0;
|
|
@@ -24169,7 +24222,7 @@ function parsePatch(uniDiff) {
|
|
|
24169
24222
|
return list;
|
|
24170
24223
|
}
|
|
24171
24224
|
|
|
24172
|
-
// node_modules/diff/libesm/patch/create.js
|
|
24225
|
+
// ../../node_modules/diff/libesm/patch/create.js
|
|
24173
24226
|
function needsQuoting(s) {
|
|
24174
24227
|
for (let i = 0; i < s.length; i++) {
|
|
24175
24228
|
if (s[i] < " " || s[i] > "~" || s[i] === '"' || s[i] === "\\") {
|
|
@@ -24433,7 +24486,7 @@ function splitLines(text3) {
|
|
|
24433
24486
|
return result;
|
|
24434
24487
|
}
|
|
24435
24488
|
|
|
24436
|
-
//
|
|
24489
|
+
// ../coding-agent/src/core/tools/pi/utils/read-file.ts
|
|
24437
24490
|
import { constants } from "fs";
|
|
24438
24491
|
import { open as open2 } from "fs/promises";
|
|
24439
24492
|
async function readRegularFile(path) {
|
|
@@ -24446,7 +24499,7 @@ async function readRegularFile(path) {
|
|
|
24446
24499
|
}
|
|
24447
24500
|
}
|
|
24448
24501
|
|
|
24449
|
-
//
|
|
24502
|
+
// ../coding-agent/src/core/tools/file-change.ts
|
|
24450
24503
|
async function beforeFile(path) {
|
|
24451
24504
|
try {
|
|
24452
24505
|
return await readRegularFile(path);
|
|
@@ -24517,21 +24570,21 @@ function patchLineCounts(patch) {
|
|
|
24517
24570
|
return { additions, deletions };
|
|
24518
24571
|
}
|
|
24519
24572
|
|
|
24520
|
-
//
|
|
24573
|
+
// ../coding-agent/src/core/tools/pi/bash.ts
|
|
24521
24574
|
import { spawn as spawn2 } from "child_process";
|
|
24522
24575
|
import { constants as constants2 } from "fs";
|
|
24523
24576
|
import { access as fsAccess } from "fs/promises";
|
|
24524
24577
|
import { constants as osConstants } from "os";
|
|
24525
24578
|
import { Type as Type3 } from "typebox";
|
|
24526
24579
|
|
|
24527
|
-
//
|
|
24580
|
+
// ../coding-agent/src/core/tools/pi/output-accumulator.ts
|
|
24528
24581
|
import { randomBytes } from "crypto";
|
|
24529
24582
|
import { createWriteStream } from "fs";
|
|
24530
24583
|
import { open as open3, readdir as readdir2, rm, stat as stat2 } from "fs/promises";
|
|
24531
24584
|
import { tmpdir } from "os";
|
|
24532
24585
|
import { join as join5 } from "path";
|
|
24533
24586
|
|
|
24534
|
-
//
|
|
24587
|
+
// ../coding-agent/src/core/tools/pi/truncate.ts
|
|
24535
24588
|
var DEFAULT_MAX_LINES = 2e3;
|
|
24536
24589
|
var DEFAULT_MAX_BYTES = 50 * 1024;
|
|
24537
24590
|
function splitLinesForCounting(content) {
|
|
@@ -24688,7 +24741,7 @@ function truncateStringToBytesFromEnd(str, maxBytes2) {
|
|
|
24688
24741
|
return buf.slice(start).toString("utf-8");
|
|
24689
24742
|
}
|
|
24690
24743
|
|
|
24691
|
-
//
|
|
24744
|
+
// ../coding-agent/src/core/tools/pi/output-accumulator.ts
|
|
24692
24745
|
function defaultTempFilePath(prefix) {
|
|
24693
24746
|
const id = randomBytes(8).toString("hex");
|
|
24694
24747
|
return join5(tmpdir(), `${prefix}-${id}.log`);
|
|
@@ -24931,7 +24984,7 @@ ${tailText}`, truncated: true };
|
|
|
24931
24984
|
}
|
|
24932
24985
|
};
|
|
24933
24986
|
|
|
24934
|
-
//
|
|
24987
|
+
// ../coding-agent/src/core/tools/pi/utils/child-process.ts
|
|
24935
24988
|
var EXIT_STDIO_GRACE_MS = 100;
|
|
24936
24989
|
function waitForChildProcess(child) {
|
|
24937
24990
|
return new Promise((resolve12, reject) => {
|
|
@@ -25026,7 +25079,7 @@ function waitForChildProcess(child) {
|
|
|
25026
25079
|
});
|
|
25027
25080
|
}
|
|
25028
25081
|
|
|
25029
|
-
//
|
|
25082
|
+
// ../coding-agent/src/core/tools/pi/utils/shell.ts
|
|
25030
25083
|
import { spawn, spawnSync } from "child_process";
|
|
25031
25084
|
import { existsSync as existsSync2 } from "fs";
|
|
25032
25085
|
import { homedir as homedir4 } from "os";
|
|
@@ -25195,7 +25248,7 @@ function killProcessTree(pid) {
|
|
|
25195
25248
|
}
|
|
25196
25249
|
}
|
|
25197
25250
|
|
|
25198
|
-
//
|
|
25251
|
+
// ../coding-agent/src/core/tools/pi/bash.ts
|
|
25199
25252
|
var BASH_UPDATE_THROTTLE_MS = 100;
|
|
25200
25253
|
var MAX_TIMEOUT_MS = 2147483647;
|
|
25201
25254
|
var STRUCTURED_OUTPUT_MAX_BYTES = 1024 * 1024;
|
|
@@ -25548,12 +25601,12 @@ function createBashToolDefinition(cwd, options) {
|
|
|
25548
25601
|
return createShellToolDefinition(cwd, bashToolConfig, options);
|
|
25549
25602
|
}
|
|
25550
25603
|
|
|
25551
|
-
//
|
|
25604
|
+
// ../coding-agent/src/core/tools/pi/edit.ts
|
|
25552
25605
|
import { constants as constants4 } from "fs";
|
|
25553
25606
|
import { access as fsAccess2, writeFile as fsWriteFile } from "fs/promises";
|
|
25554
25607
|
import { Type as Type4 } from "typebox";
|
|
25555
25608
|
|
|
25556
|
-
//
|
|
25609
|
+
// ../coding-agent/src/core/tools/pi/edit-diff.ts
|
|
25557
25610
|
function detectLineEnding(content) {
|
|
25558
25611
|
const ending = content.match(/\r\n|\r|\n/)?.[0];
|
|
25559
25612
|
return ending === "\r\n" || ending === "\r" ? ending : "\n";
|
|
@@ -25886,7 +25939,7 @@ function generateDiffString(oldContent, newContent, contextLines = 4) {
|
|
|
25886
25939
|
return { diff: output.join("\n"), firstChangedLine };
|
|
25887
25940
|
}
|
|
25888
25941
|
|
|
25889
|
-
//
|
|
25942
|
+
// ../coding-agent/src/core/tools/pi/file-mutation-queue.ts
|
|
25890
25943
|
import { readlink, realpath as realpath2 } from "fs/promises";
|
|
25891
25944
|
import { basename as basename2, dirname as dirname3, join as join7, resolve as resolve3 } from "path";
|
|
25892
25945
|
var fileMutationQueues = /* @__PURE__ */ new Map();
|
|
@@ -25954,11 +26007,11 @@ async function withFileMutationQueue(filePath, fn) {
|
|
|
25954
26007
|
}
|
|
25955
26008
|
}
|
|
25956
26009
|
|
|
25957
|
-
//
|
|
26010
|
+
// ../coding-agent/src/core/tools/pi/path-utils.ts
|
|
25958
26011
|
import { constants as constants3 } from "fs";
|
|
25959
26012
|
import { access } from "fs/promises";
|
|
25960
26013
|
|
|
25961
|
-
//
|
|
26014
|
+
// ../coding-agent/src/core/tools/pi/utils/paths.ts
|
|
25962
26015
|
import { homedir as homedir5 } from "os";
|
|
25963
26016
|
import { isAbsolute, join as join8, resolve as nodeResolvePath } from "path";
|
|
25964
26017
|
import { fileURLToPath } from "url";
|
|
@@ -25999,7 +26052,7 @@ function resolvePath(input, baseDir = process.cwd(), options = {}) {
|
|
|
25999
26052
|
return isAbsolute(normalized) ? nodeResolvePath(normalized) : nodeResolvePath(normalizedBaseDir, normalized);
|
|
26000
26053
|
}
|
|
26001
26054
|
|
|
26002
|
-
//
|
|
26055
|
+
// ../coding-agent/src/core/tools/pi/path-utils.ts
|
|
26003
26056
|
var NARROW_NO_BREAK_SPACE = "\u202F";
|
|
26004
26057
|
function tryMacOSScreenshotPath(filePath) {
|
|
26005
26058
|
return filePath.replace(/ (AM|PM)\./gi, `${NARROW_NO_BREAK_SPACE}$1.`);
|
|
@@ -26045,12 +26098,12 @@ async function resolveReadPathAsync(filePath, cwd) {
|
|
|
26045
26098
|
return resolved;
|
|
26046
26099
|
}
|
|
26047
26100
|
|
|
26048
|
-
//
|
|
26101
|
+
// ../coding-agent/src/core/tools/pi/utils/text.ts
|
|
26049
26102
|
function splitBom(content) {
|
|
26050
26103
|
return content.startsWith("\uFEFF") ? { bom: "\uFEFF", text: content.slice(1) } : { bom: "", text: content };
|
|
26051
26104
|
}
|
|
26052
26105
|
|
|
26053
|
-
//
|
|
26106
|
+
// ../coding-agent/src/core/tools/pi/edit.ts
|
|
26054
26107
|
var MAX_EDIT_DETAIL_BYTES = 64 * 1024;
|
|
26055
26108
|
var OMITTED_EDIT_DIFF = "[Diff omitted: exceeds the inline display or computation limit.]";
|
|
26056
26109
|
var replaceEditSchema = Type4.Object(
|
|
@@ -26185,7 +26238,7 @@ function createEditToolDefinition(cwd, options) {
|
|
|
26185
26238
|
};
|
|
26186
26239
|
}
|
|
26187
26240
|
|
|
26188
|
-
//
|
|
26241
|
+
// ../coding-agent/src/core/tools/pi/file-read-state.ts
|
|
26189
26242
|
import { createHash as createHash4 } from "crypto";
|
|
26190
26243
|
function contentHash(content) {
|
|
26191
26244
|
return createHash4("sha256").update(content).digest("hex");
|
|
@@ -26230,12 +26283,12 @@ var FileReadState = class {
|
|
|
26230
26283
|
}
|
|
26231
26284
|
};
|
|
26232
26285
|
|
|
26233
|
-
//
|
|
26286
|
+
// ../coding-agent/src/core/tools/pi/read.ts
|
|
26234
26287
|
import { constants as constants6, createReadStream } from "fs";
|
|
26235
26288
|
import { access as fsAccess3, readFile as fsReadFile } from "fs/promises";
|
|
26236
26289
|
import { Type as Type5 } from "typebox";
|
|
26237
26290
|
|
|
26238
|
-
//
|
|
26291
|
+
// ../coding-agent/src/core/image-limits.ts
|
|
26239
26292
|
var READ_MAX_OUTPUT_TOKENS = 25e3;
|
|
26240
26293
|
var READ_IMAGE_MAX_BASE64_BYTES = 5 * 1024 * 1024;
|
|
26241
26294
|
var READ_IMAGE_TARGET_BYTES = Math.floor(READ_IMAGE_MAX_BASE64_BYTES * 3 / 4);
|
|
@@ -26255,7 +26308,7 @@ var imageLimits = {
|
|
|
26255
26308
|
messagePixels: 8e7
|
|
26256
26309
|
};
|
|
26257
26310
|
|
|
26258
|
-
//
|
|
26311
|
+
// ../coding-agent/src/core/read-file-bounded.ts
|
|
26259
26312
|
import { open as open4 } from "fs/promises";
|
|
26260
26313
|
async function readFileBounded(path, maxBytes2) {
|
|
26261
26314
|
if (!Number.isSafeInteger(maxBytes2) || maxBytes2 < 0 || maxBytes2 >= Number.MAX_SAFE_INTEGER)
|
|
@@ -26279,7 +26332,7 @@ async function readFileBounded(path, maxBytes2) {
|
|
|
26279
26332
|
}
|
|
26280
26333
|
}
|
|
26281
26334
|
|
|
26282
|
-
//
|
|
26335
|
+
// ../coding-agent/src/core/tools/pi/text-range-reader.ts
|
|
26283
26336
|
import { createHash as createHash5 } from "crypto";
|
|
26284
26337
|
async function readTextRange(chunks, offset, limit) {
|
|
26285
26338
|
const hash3 = createHash5("sha256");
|
|
@@ -26342,7 +26395,7 @@ async function readTextRange(chunks, offset, limit) {
|
|
|
26342
26395
|
return { hash: hash3.digest("hex"), totalFileLines, firstLineBytes, truncation };
|
|
26343
26396
|
}
|
|
26344
26397
|
|
|
26345
|
-
//
|
|
26398
|
+
// ../coding-agent/src/core/tools/pi/utils/image-budget.ts
|
|
26346
26399
|
function imageBudget(options) {
|
|
26347
26400
|
return {
|
|
26348
26401
|
maxRawBytes: options?.maxRawBytes ?? READ_IMAGE_TARGET_BYTES,
|
|
@@ -26381,7 +26434,7 @@ var ImageProcessorError = class extends Error {
|
|
|
26381
26434
|
}
|
|
26382
26435
|
};
|
|
26383
26436
|
|
|
26384
|
-
//
|
|
26437
|
+
// ../coding-agent/src/core/tools/pi/utils/image-resize.ts
|
|
26385
26438
|
function formatDimensionNote(result) {
|
|
26386
26439
|
if (!result.wasResized) {
|
|
26387
26440
|
return void 0;
|
|
@@ -26392,14 +26445,14 @@ function formatDimensionNote(result) {
|
|
|
26392
26445
|
return `[Image: original ${result.originalWidth}x${result.originalHeight}, displayed at ${result.width}x${result.height}. Multiply coordinates by ${scale} to map to original image.]`;
|
|
26393
26446
|
}
|
|
26394
26447
|
|
|
26395
|
-
//
|
|
26448
|
+
// ../coding-agent/src/core/tools/pi/utils/image-resize-core.ts
|
|
26396
26449
|
import sharp2 from "sharp";
|
|
26397
26450
|
|
|
26398
|
-
//
|
|
26451
|
+
// ../coding-agent/src/core/tools/pi/utils/image-source.ts
|
|
26399
26452
|
var import_bmp_js = __toESM(require_bmp_js(), 1);
|
|
26400
26453
|
import sharp from "sharp";
|
|
26401
26454
|
|
|
26402
|
-
//
|
|
26455
|
+
// ../coding-agent/src/core/tools/pi/utils/bmp-source.ts
|
|
26403
26456
|
var invalid = () => new Error("invalid_input: BMP \u6587\u4EF6\u7ED3\u6784\u65E0\u6548\u6216\u6570\u636E\u4E0D\u5B8C\u6574");
|
|
26404
26457
|
var unsupported = () => new Error(
|
|
26405
26458
|
"invalid_input: BMP \u4EC5\u652F\u6301 Windows BI_RGB\uFF081/4/8/16/24/32 \u4F4D\uFF09\u548C BI_RLE4/BI_RLE8\uFF0C\u4E0D\u652F\u6301\u4F4D\u57DF\u6216\u5D4C\u5165\u5F0F\u7F16\u7801"
|
|
@@ -26509,7 +26562,7 @@ function expandRle(source, width, height, bits, stride, paletteSize) {
|
|
|
26509
26562
|
throw invalid();
|
|
26510
26563
|
}
|
|
26511
26564
|
|
|
26512
|
-
//
|
|
26565
|
+
// ../coding-agent/src/core/tools/pi/utils/mime.ts
|
|
26513
26566
|
import { constants as constants5 } from "fs";
|
|
26514
26567
|
import { open as open5 } from "fs/promises";
|
|
26515
26568
|
var IMAGE_TYPE_SNIFF_BYTES = 4100;
|
|
@@ -26602,7 +26655,7 @@ function startsWithAscii(buffer, offset, text3) {
|
|
|
26602
26655
|
return true;
|
|
26603
26656
|
}
|
|
26604
26657
|
|
|
26605
|
-
//
|
|
26658
|
+
// ../coding-agent/src/core/tools/pi/utils/image-source.ts
|
|
26606
26659
|
function imageFormat(bytes) {
|
|
26607
26660
|
const b = Buffer.from(bytes);
|
|
26608
26661
|
if (b.subarray(0, 8).equals(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]))) return "png";
|
|
@@ -26650,7 +26703,7 @@ async function openImage(bytes) {
|
|
|
26650
26703
|
};
|
|
26651
26704
|
}
|
|
26652
26705
|
|
|
26653
|
-
//
|
|
26706
|
+
// ../coding-agent/src/core/tools/pi/utils/image-resize-core.ts
|
|
26654
26707
|
var JPEG_QUALITY_STEPS = [80, 60, 40, 20];
|
|
26655
26708
|
var PROGRESSIVE_SCALE_FACTORS = [0.75, 0.5, 0.25];
|
|
26656
26709
|
var AGGRESSIVE_JPEG_MAX_EDGES = [1e3, 800, 600, 400, 300, 200];
|
|
@@ -26830,7 +26883,7 @@ async function resizeImageInProcess(inputBytes, mimeType, options, autoResizeIma
|
|
|
26830
26883
|
);
|
|
26831
26884
|
}
|
|
26832
26885
|
|
|
26833
|
-
//
|
|
26886
|
+
// ../coding-agent/src/core/tools/pi/utils/image-process.ts
|
|
26834
26887
|
async function processImage(bytes, mimeType, options) {
|
|
26835
26888
|
try {
|
|
26836
26889
|
const resized = await resizeImageInProcess(
|
|
@@ -26859,7 +26912,7 @@ async function processImage(bytes, mimeType, options) {
|
|
|
26859
26912
|
}
|
|
26860
26913
|
}
|
|
26861
26914
|
|
|
26862
|
-
//
|
|
26915
|
+
// ../coding-agent/src/core/tools/pi/read.ts
|
|
26863
26916
|
var readSchema = Type5.Object({
|
|
26864
26917
|
path: Type5.String({ description: "Path to the file to read (relative or absolute)" }),
|
|
26865
26918
|
offset: Type5.Optional(
|
|
@@ -27047,7 +27100,7 @@ ${nonVisionImageNote}`;
|
|
|
27047
27100
|
};
|
|
27048
27101
|
}
|
|
27049
27102
|
|
|
27050
|
-
//
|
|
27103
|
+
// ../coding-agent/src/core/tools/pi/write.ts
|
|
27051
27104
|
import { mkdir as fsMkdir, writeFile as fsWriteFile2 } from "fs/promises";
|
|
27052
27105
|
import { dirname as dirname4 } from "path";
|
|
27053
27106
|
import { Type as Type6 } from "typebox";
|
|
@@ -27094,7 +27147,7 @@ function createWriteToolDefinition(cwd, options) {
|
|
|
27094
27147
|
};
|
|
27095
27148
|
}
|
|
27096
27149
|
|
|
27097
|
-
//
|
|
27150
|
+
// ../coding-agent/src/core/tools/index.ts
|
|
27098
27151
|
function createReadTool(cwd, options, context) {
|
|
27099
27152
|
const getModel = typeof options === "function" ? options : void 0;
|
|
27100
27153
|
const definition = createReadToolDefinition(cwd, typeof options === "function" ? void 0 : options);
|
|
@@ -27203,7 +27256,7 @@ function createCodingTools(cwd, outputDir, getModel, context, fileReadState = ne
|
|
|
27203
27256
|
];
|
|
27204
27257
|
}
|
|
27205
27258
|
|
|
27206
|
-
//
|
|
27259
|
+
// ../coding-agent/src/core/sdk.ts
|
|
27207
27260
|
async function createAgentSession(options = {}) {
|
|
27208
27261
|
assertSupportedOptions(
|
|
27209
27262
|
options,
|
|
@@ -27292,27 +27345,27 @@ async function createAgentSession(options = {}) {
|
|
|
27292
27345
|
assertSupportedOptions(prepared, ["customTools", "tools"], "prepareTools result");
|
|
27293
27346
|
const assembly = assembleSession({ ...options, ...prepared, builtinTools: builtin, context: toolContext });
|
|
27294
27347
|
const { allTools: all, activeTools: active } = assembly;
|
|
27295
|
-
const
|
|
27348
|
+
const buildContext = () => {
|
|
27349
|
+
let baseInstructions;
|
|
27296
27350
|
if (options.systemPrompt !== void 0) {
|
|
27297
|
-
|
|
27298
|
-
tools: session?.state.tools ?? active
|
|
27299
|
-
pluginInstructions: assembly.getInstructions(),
|
|
27300
|
-
resourceLoader: loader
|
|
27351
|
+
baseInstructions = typeof options.systemPrompt === "function" ? options.systemPrompt({
|
|
27352
|
+
tools: session?.state.tools ?? active
|
|
27301
27353
|
}) : options.systemPrompt;
|
|
27302
|
-
if (typeof
|
|
27303
|
-
return value;
|
|
27354
|
+
if (typeof baseInstructions !== "string") throw new Error("Invalid systemPrompt");
|
|
27304
27355
|
}
|
|
27305
27356
|
const instructions = typeof options.customInstructions === "function" ? options.customInstructions() : options.customInstructions;
|
|
27306
27357
|
if (instructions !== void 0 && (!Array.isArray(instructions) || instructions.some((part) => typeof part !== "string")))
|
|
27307
27358
|
throw new Error("invalid_input: customInstructions must be an array of strings");
|
|
27308
|
-
|
|
27359
|
+
const context = buildSystemContext({
|
|
27309
27360
|
cwd,
|
|
27310
27361
|
projectName: typeof options.projectName === "function" ? options.projectName() : options.projectName,
|
|
27311
27362
|
template: options.promptTemplate?.(),
|
|
27312
27363
|
tools: session?.state.tools ?? active,
|
|
27313
27364
|
loader,
|
|
27314
|
-
customInstructions:
|
|
27365
|
+
customInstructions: instructions,
|
|
27366
|
+
baseInstructions
|
|
27315
27367
|
});
|
|
27368
|
+
return { ...context, sections: { ...context.sections, ...assembly.getContextSections() } };
|
|
27316
27369
|
};
|
|
27317
27370
|
let requestedThinking = options.thinkingLevel;
|
|
27318
27371
|
if (requestedThinking == null) {
|
|
@@ -27328,11 +27381,11 @@ async function createAgentSession(options = {}) {
|
|
|
27328
27381
|
manager,
|
|
27329
27382
|
all,
|
|
27330
27383
|
active,
|
|
27331
|
-
|
|
27384
|
+
buildContext().base,
|
|
27332
27385
|
thinking2,
|
|
27333
27386
|
{
|
|
27334
27387
|
loader,
|
|
27335
|
-
|
|
27388
|
+
buildContext,
|
|
27336
27389
|
settingsManager
|
|
27337
27390
|
},
|
|
27338
27391
|
options.modelPerformanceTotals,
|
|
@@ -27351,7 +27404,7 @@ async function createAgentSession(options = {}) {
|
|
|
27351
27404
|
return { session };
|
|
27352
27405
|
}
|
|
27353
27406
|
|
|
27354
|
-
//
|
|
27407
|
+
// ../coding-agent/src/core/file-rewind.ts
|
|
27355
27408
|
import { createHash as createHash7, randomUUID as randomUUID7 } from "crypto";
|
|
27356
27409
|
import { lstatSync, readFileSync as readFileSync3, renameSync as renameSync2, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
27357
27410
|
import { lstat, realpath as realpath4 } from "fs/promises";
|
|
@@ -27456,15 +27509,15 @@ async function applyFileRewind(plan, commit) {
|
|
|
27456
27509
|
return [];
|
|
27457
27510
|
}
|
|
27458
27511
|
|
|
27459
|
-
//
|
|
27512
|
+
// ../coding-agent/src/core/fs.ts
|
|
27460
27513
|
import { closeSync, fsyncSync, openSync } from "fs";
|
|
27461
27514
|
|
|
27462
|
-
//
|
|
27515
|
+
// src/sessions.ts
|
|
27463
27516
|
import { readdir as readdir3, stat as stat3 } from "fs/promises";
|
|
27464
27517
|
import { homedir as homedir7 } from "os";
|
|
27465
27518
|
import { join as join11, resolve as resolve6 } from "path";
|
|
27466
27519
|
|
|
27467
|
-
//
|
|
27520
|
+
// src/messages.ts
|
|
27468
27521
|
import { createHash as createHash8, randomUUID as randomUUID8 } from "crypto";
|
|
27469
27522
|
var emptyUsage = () => ({
|
|
27470
27523
|
input_tokens: 0,
|
|
@@ -27549,7 +27602,7 @@ function messageUuids(entries) {
|
|
|
27549
27602
|
return ids;
|
|
27550
27603
|
}
|
|
27551
27604
|
|
|
27552
|
-
//
|
|
27605
|
+
// src/sessions.ts
|
|
27553
27606
|
var agentDirectory = (options) => resolve6(options?.agentDir ?? join11(homedir7(), ".zpi", "sdk"));
|
|
27554
27607
|
function sessionPath(id, options) {
|
|
27555
27608
|
if (!/^[a-zA-Z0-9_-]+$/.test(id)) throw new Error("Invalid session ID");
|
|
@@ -27712,18 +27765,18 @@ async function rewindFiles(manager, userMessageId, dryRun = false) {
|
|
|
27712
27765
|
}
|
|
27713
27766
|
}
|
|
27714
27767
|
|
|
27715
|
-
//
|
|
27768
|
+
// src/query.ts
|
|
27716
27769
|
import { randomUUID as randomUUID11 } from "crypto";
|
|
27717
27770
|
import { join as join14, resolve as resolve11 } from "path";
|
|
27718
27771
|
|
|
27719
|
-
//
|
|
27772
|
+
// ../plugin-compat/src/index.ts
|
|
27720
27773
|
import { createHash as createHash9, randomUUID as randomUUID9 } from "crypto";
|
|
27721
27774
|
import { lstatSync as lstatSync2, readdirSync, readFileSync as readFileSync4 } from "fs";
|
|
27722
27775
|
import { chmod, mkdir as mkdir3, rename, rm as rm2, writeFile as writeFile3 } from "fs/promises";
|
|
27723
27776
|
import { basename as basename3, dirname as dirname6, isAbsolute as isAbsolute2, join as join12, relative, resolve as resolve7, sep } from "path";
|
|
27724
27777
|
import { isDeepStrictEqual as isDeepStrictEqual2 } from "util";
|
|
27725
27778
|
|
|
27726
|
-
//
|
|
27779
|
+
// ../plugin-compat/src/command-hooks.ts
|
|
27727
27780
|
import { spawn as spawn3 } from "child_process";
|
|
27728
27781
|
import { mkdir as mkdir2 } from "fs/promises";
|
|
27729
27782
|
var maxFileBytes = 2 * 1024 * 1024;
|
|
@@ -27913,7 +27966,7 @@ function bindCommandHooks(hooks, context) {
|
|
|
27913
27966
|
}));
|
|
27914
27967
|
}
|
|
27915
27968
|
|
|
27916
|
-
//
|
|
27969
|
+
// ../plugin-compat/src/index.ts
|
|
27917
27970
|
var runtime = "external.command-v1";
|
|
27918
27971
|
var maxFileBytes2 = 2 * 1024 * 1024;
|
|
27919
27972
|
var maxTreeBytes = 32 * 1024 * 1024;
|
|
@@ -28201,11 +28254,14 @@ function bindExternalPlugin(snapshot, options) {
|
|
|
28201
28254
|
};
|
|
28202
28255
|
}
|
|
28203
28256
|
|
|
28204
|
-
//
|
|
28257
|
+
// src/query.ts
|
|
28205
28258
|
import { Type as Type9 } from "typebox";
|
|
28206
28259
|
import { Check as Check4 } from "typebox/value";
|
|
28207
28260
|
|
|
28208
|
-
//
|
|
28261
|
+
// package.json
|
|
28262
|
+
var version = "0.1.61";
|
|
28263
|
+
|
|
28264
|
+
// src/hooks.ts
|
|
28209
28265
|
function coreHooks(options, transcript) {
|
|
28210
28266
|
const core = /* @__PURE__ */ new Set([
|
|
28211
28267
|
"SessionStart",
|
|
@@ -28252,7 +28308,7 @@ async function lifecycleHook(options, event, input, signal) {
|
|
|
28252
28308
|
);
|
|
28253
28309
|
try {
|
|
28254
28310
|
signal.throwIfAborted();
|
|
28255
|
-
const { abortable: abortable2 } = await import("./src-
|
|
28311
|
+
const { abortable: abortable2 } = await import("./src-GYA4LFM7.js");
|
|
28256
28312
|
await abortable2(
|
|
28257
28313
|
callback({ ...input, hook_event_name: event }, void 0, {
|
|
28258
28314
|
signal: controller.signal
|
|
@@ -28269,7 +28325,7 @@ async function lifecycleHook(options, event, input, signal) {
|
|
|
28269
28325
|
}
|
|
28270
28326
|
}
|
|
28271
28327
|
|
|
28272
|
-
//
|
|
28328
|
+
// src/permissions.ts
|
|
28273
28329
|
import { isAbsolute as isAbsolute3, resolve as resolve8 } from "path";
|
|
28274
28330
|
function permissionRules(rules = []) {
|
|
28275
28331
|
return rules.map((source) => {
|
|
@@ -28330,11 +28386,11 @@ function permissionHook(options, denials, interrupt) {
|
|
|
28330
28386
|
};
|
|
28331
28387
|
}
|
|
28332
28388
|
|
|
28333
|
-
//
|
|
28389
|
+
// src/resources.ts
|
|
28334
28390
|
import { readdir as readdir4, stat as stat4 } from "fs/promises";
|
|
28335
28391
|
import { join as join13 } from "path";
|
|
28336
28392
|
|
|
28337
|
-
//
|
|
28393
|
+
// src/runtime.ts
|
|
28338
28394
|
import { homedir as homedir8 } from "os";
|
|
28339
28395
|
import { resolve as resolve9 } from "path";
|
|
28340
28396
|
async function runtimeFor(options) {
|
|
@@ -28405,7 +28461,7 @@ function thinkingLevel(options) {
|
|
|
28405
28461
|
}
|
|
28406
28462
|
var sdkHome = (options) => resolve9(options.env?.HOME ?? homedir8());
|
|
28407
28463
|
|
|
28408
|
-
//
|
|
28464
|
+
// src/resources.ts
|
|
28409
28465
|
var SdkResources = class {
|
|
28410
28466
|
instructions = [];
|
|
28411
28467
|
skills = [];
|
|
@@ -28523,7 +28579,7 @@ function pluginAgents(snapshot) {
|
|
|
28523
28579
|
return result;
|
|
28524
28580
|
}
|
|
28525
28581
|
|
|
28526
|
-
//
|
|
28582
|
+
// src/tasks.ts
|
|
28527
28583
|
import { randomUUID as randomUUID10 } from "crypto";
|
|
28528
28584
|
import { Type as Type7 } from "typebox";
|
|
28529
28585
|
var Tasks = class {
|
|
@@ -28609,7 +28665,7 @@ var Tasks = class {
|
|
|
28609
28665
|
}
|
|
28610
28666
|
};
|
|
28611
28667
|
|
|
28612
|
-
//
|
|
28668
|
+
// src/tools.ts
|
|
28613
28669
|
import { execFile } from "child_process";
|
|
28614
28670
|
import { readdir as readdir5, readFile as readFile2, stat as stat5 } from "fs/promises";
|
|
28615
28671
|
import { relative as relative2, resolve as resolve10 } from "path";
|
|
@@ -28794,7 +28850,7 @@ function canonicalTools(cwd, outputDir, context, options, tasks) {
|
|
|
28794
28850
|
];
|
|
28795
28851
|
}
|
|
28796
28852
|
|
|
28797
|
-
//
|
|
28853
|
+
// src/query.ts
|
|
28798
28854
|
var allowedOptions = [
|
|
28799
28855
|
"cwd",
|
|
28800
28856
|
"model",
|
|
@@ -29008,29 +29064,20 @@ Arguments: ${input.args ?? ""}`
|
|
|
29008
29064
|
);
|
|
29009
29065
|
return { customTools: tools, tools: primary?.tools?.filter((name) => !disabled.has(name)) ?? names };
|
|
29010
29066
|
};
|
|
29011
|
-
const systemPrompt = ({
|
|
29012
|
-
|
|
29013
|
-
|
|
29014
|
-
|
|
29015
|
-
|
|
29067
|
+
const systemPrompt = () => {
|
|
29068
|
+
const value = options.systemPrompt;
|
|
29069
|
+
return primary?.prompt ?? (typeof value === "string" ? value : Array.isArray(value) ? value.join("\n\n") : value?.type === "custom" ? [value.prompt].flat().join("\n\n") : value?.type === "preset" ? buildSystemContext({ cwd, tools: [] }).base : "You are a helpful assistant.");
|
|
29070
|
+
};
|
|
29071
|
+
const customInstructions = () => {
|
|
29016
29072
|
const value = options.systemPrompt;
|
|
29017
|
-
const skills = resourceLoader.listSkills?.().skills ?? [];
|
|
29018
|
-
const custom = typeof value === "string" ? value : Array.isArray(value) ? value.join("\n\n") : value?.type === "custom" ? [value.prompt].flat().join("\n\n") : value?.type === "preset" ? buildSystemPrompt({ cwd, tools }) : "You are a helpful assistant.";
|
|
29019
29073
|
return [
|
|
29020
|
-
primary?.prompt ?? custom,
|
|
29021
29074
|
typeof value === "object" && !Array.isArray(value) && value.type === "preset" ? value.append : void 0,
|
|
29022
|
-
...resourceLoader.getInstructions?.() ?? [],
|
|
29023
|
-
...pluginInstructions,
|
|
29024
29075
|
...Object.keys(options.agents ?? {}).length ? [
|
|
29025
29076
|
`Available agents:
|
|
29026
29077
|
${Object.entries(options.agents ?? {}).map(([name, agent]) => `${name}: ${agent.description}`).join("\n")}`
|
|
29027
|
-
] : [],
|
|
29028
|
-
...skills.length ? [
|
|
29029
|
-
`Available skills:
|
|
29030
|
-
${skills.map((skill) => `${skill.name}: ${skill.description}`).join("\n")}`
|
|
29031
29078
|
] : [],
|
|
29032
29079
|
...options.outputFormat ? [`Return only JSON satisfying this schema: ${JSON.stringify(options.outputFormat.schema)}`] : []
|
|
29033
|
-
].filter(
|
|
29080
|
+
].filter((part) => typeof part === "string" && !!part);
|
|
29034
29081
|
};
|
|
29035
29082
|
const hooks = [
|
|
29036
29083
|
...coreHooks(options, this.manager.getSessionFile() ?? ""),
|
|
@@ -29076,6 +29123,7 @@ ${skills.map((skill) => `${skill.name}: ${skill.description}`).join("\n")}`
|
|
|
29076
29123
|
settingsManager: SettingsManager.inMemory({ retry: { enabled: false } }),
|
|
29077
29124
|
resourceLoader: options.zpi?.resourceLoader ?? new SdkResources(options, cwd),
|
|
29078
29125
|
systemPrompt,
|
|
29126
|
+
customInstructions,
|
|
29079
29127
|
plugins,
|
|
29080
29128
|
prepareTools,
|
|
29081
29129
|
noTools: "builtin",
|
|
@@ -29101,7 +29149,7 @@ ${skills.map((skill) => `${skill.name}: ${skill.description}`).join("\n")}`
|
|
|
29101
29149
|
model: this.session.model.id,
|
|
29102
29150
|
tools: this.session.state.tools.map((tool2) => tool2.name),
|
|
29103
29151
|
apiKeySource: options.zpi?.providers || options.zpi?.modelRuntime ? "user" : "env",
|
|
29104
|
-
claude_code_version:
|
|
29152
|
+
claude_code_version: `zpi/${version}`,
|
|
29105
29153
|
mcp_servers: [],
|
|
29106
29154
|
slash_commands: this.session.listCommands().map((command) => command.name),
|
|
29107
29155
|
output_style: "default",
|
|
@@ -29604,4 +29652,4 @@ export {
|
|
|
29604
29652
|
forkSession,
|
|
29605
29653
|
query
|
|
29606
29654
|
};
|
|
29607
|
-
//# sourceMappingURL=chunk-
|
|
29655
|
+
//# sourceMappingURL=chunk-YPFTXFZL.js.map
|