toc-ocra 0.3.8 → 0.3.9
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 +6 -1
- package/dist/cli/cli.mjs +386 -332
- package/dist/plugin/renderer.js.map +1 -1
- package/dist/service/agent.mjs +262 -208
- package/dist/src/acp/acp-launch-specs.d.ts +1 -1
- package/dist/src/acp/acp-launch-specs.js +77 -0
- package/dist/src/acp/acp-launch-specs.js.map +1 -1
- package/dist/src/acp/acp-model-catalog-probe.js +1 -1
- package/dist/src/acp/acp-model-catalog-probe.js.map +1 -1
- package/dist/src/providers/acp/acp-agents.d.ts +14 -0
- package/dist/src/providers/acp/acp-agents.js +55 -0
- package/dist/src/providers/acp/acp-agents.js.map +1 -0
- package/dist/src/providers/cli-specs.js +11 -0
- package/dist/src/providers/cli-specs.js.map +1 -1
- package/dist/src/providers/kiro-auth.d.ts +5 -4
- package/dist/src/providers/kiro-auth.js +33 -32
- package/dist/src/providers/kiro-auth.js.map +1 -1
- package/dist/src/providers/model-catalog.js +2 -5
- package/dist/src/providers/model-catalog.js.map +1 -1
- package/dist/src/runs/run-supervisor.js +11 -0
- package/dist/src/runs/run-supervisor.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/cli.mjs
CHANGED
|
@@ -40,18 +40,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
40
|
mod
|
|
41
41
|
));
|
|
42
42
|
|
|
43
|
-
//
|
|
43
|
+
// node_modules/qrcode/lib/can-promise.js
|
|
44
44
|
var require_can_promise = __commonJS({
|
|
45
|
-
"
|
|
45
|
+
"node_modules/qrcode/lib/can-promise.js"(exports, module) {
|
|
46
46
|
module.exports = function() {
|
|
47
47
|
return typeof Promise === "function" && Promise.prototype && Promise.prototype.then;
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
//
|
|
52
|
+
// node_modules/qrcode/lib/core/utils.js
|
|
53
53
|
var require_utils = __commonJS({
|
|
54
|
-
"
|
|
54
|
+
"node_modules/qrcode/lib/core/utils.js"(exports) {
|
|
55
55
|
var toSJISFunction;
|
|
56
56
|
var CODEWORDS_COUNT = [
|
|
57
57
|
0,
|
|
@@ -128,9 +128,9 @@ var require_utils = __commonJS({
|
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
//
|
|
131
|
+
// node_modules/qrcode/lib/core/error-correction-level.js
|
|
132
132
|
var require_error_correction_level = __commonJS({
|
|
133
|
-
"
|
|
133
|
+
"node_modules/qrcode/lib/core/error-correction-level.js"(exports) {
|
|
134
134
|
exports.L = { bit: 1 };
|
|
135
135
|
exports.M = { bit: 0 };
|
|
136
136
|
exports.Q = { bit: 3 };
|
|
@@ -173,9 +173,9 @@ var require_error_correction_level = __commonJS({
|
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
//
|
|
176
|
+
// node_modules/qrcode/lib/core/bit-buffer.js
|
|
177
177
|
var require_bit_buffer = __commonJS({
|
|
178
|
-
"
|
|
178
|
+
"node_modules/qrcode/lib/core/bit-buffer.js"(exports, module) {
|
|
179
179
|
function BitBuffer() {
|
|
180
180
|
this.buffer = [];
|
|
181
181
|
this.length = 0;
|
|
@@ -208,9 +208,9 @@ var require_bit_buffer = __commonJS({
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
|
|
211
|
-
//
|
|
211
|
+
// node_modules/qrcode/lib/core/bit-matrix.js
|
|
212
212
|
var require_bit_matrix = __commonJS({
|
|
213
|
-
"
|
|
213
|
+
"node_modules/qrcode/lib/core/bit-matrix.js"(exports, module) {
|
|
214
214
|
function BitMatrix(size) {
|
|
215
215
|
if (!size || size < 1) {
|
|
216
216
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -237,9 +237,9 @@ var require_bit_matrix = __commonJS({
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
|
|
240
|
-
//
|
|
240
|
+
// node_modules/qrcode/lib/core/alignment-pattern.js
|
|
241
241
|
var require_alignment_pattern = __commonJS({
|
|
242
|
-
"
|
|
242
|
+
"node_modules/qrcode/lib/core/alignment-pattern.js"(exports) {
|
|
243
243
|
var getSymbolSize = require_utils().getSymbolSize;
|
|
244
244
|
exports.getRowColCoords = function getRowColCoords(version2) {
|
|
245
245
|
if (version2 === 1) return [];
|
|
@@ -272,9 +272,9 @@ var require_alignment_pattern = __commonJS({
|
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
|
|
275
|
-
//
|
|
275
|
+
// node_modules/qrcode/lib/core/finder-pattern.js
|
|
276
276
|
var require_finder_pattern = __commonJS({
|
|
277
|
-
"
|
|
277
|
+
"node_modules/qrcode/lib/core/finder-pattern.js"(exports) {
|
|
278
278
|
var getSymbolSize = require_utils().getSymbolSize;
|
|
279
279
|
var FINDER_PATTERN_SIZE = 7;
|
|
280
280
|
exports.getPositions = function getPositions(version2) {
|
|
@@ -291,9 +291,9 @@ var require_finder_pattern = __commonJS({
|
|
|
291
291
|
}
|
|
292
292
|
});
|
|
293
293
|
|
|
294
|
-
//
|
|
294
|
+
// node_modules/qrcode/lib/core/mask-pattern.js
|
|
295
295
|
var require_mask_pattern = __commonJS({
|
|
296
|
-
"
|
|
296
|
+
"node_modules/qrcode/lib/core/mask-pattern.js"(exports) {
|
|
297
297
|
exports.Patterns = {
|
|
298
298
|
PATTERN000: 0,
|
|
299
299
|
PATTERN001: 1,
|
|
@@ -433,9 +433,9 @@ var require_mask_pattern = __commonJS({
|
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
435
|
|
|
436
|
-
//
|
|
436
|
+
// node_modules/qrcode/lib/core/error-correction-code.js
|
|
437
437
|
var require_error_correction_code = __commonJS({
|
|
438
|
-
"
|
|
438
|
+
"node_modules/qrcode/lib/core/error-correction-code.js"(exports) {
|
|
439
439
|
var ECLevel = require_error_correction_level();
|
|
440
440
|
var EC_BLOCKS_TABLE = [
|
|
441
441
|
// L M Q H
|
|
@@ -794,9 +794,9 @@ var require_error_correction_code = __commonJS({
|
|
|
794
794
|
}
|
|
795
795
|
});
|
|
796
796
|
|
|
797
|
-
//
|
|
797
|
+
// node_modules/qrcode/lib/core/galois-field.js
|
|
798
798
|
var require_galois_field = __commonJS({
|
|
799
|
-
"
|
|
799
|
+
"node_modules/qrcode/lib/core/galois-field.js"(exports) {
|
|
800
800
|
var EXP_TABLE = new Uint8Array(512);
|
|
801
801
|
var LOG_TABLE = new Uint8Array(256);
|
|
802
802
|
(function initTables() {
|
|
@@ -827,9 +827,9 @@ var require_galois_field = __commonJS({
|
|
|
827
827
|
}
|
|
828
828
|
});
|
|
829
829
|
|
|
830
|
-
//
|
|
830
|
+
// node_modules/qrcode/lib/core/polynomial.js
|
|
831
831
|
var require_polynomial = __commonJS({
|
|
832
|
-
"
|
|
832
|
+
"node_modules/qrcode/lib/core/polynomial.js"(exports) {
|
|
833
833
|
var GF = require_galois_field();
|
|
834
834
|
exports.mul = function mul(p1, p2) {
|
|
835
835
|
const coeff = new Uint8Array(p1.length + p2.length - 1);
|
|
@@ -863,9 +863,9 @@ var require_polynomial = __commonJS({
|
|
|
863
863
|
}
|
|
864
864
|
});
|
|
865
865
|
|
|
866
|
-
//
|
|
866
|
+
// node_modules/qrcode/lib/core/reed-solomon-encoder.js
|
|
867
867
|
var require_reed_solomon_encoder = __commonJS({
|
|
868
|
-
"
|
|
868
|
+
"node_modules/qrcode/lib/core/reed-solomon-encoder.js"(exports, module) {
|
|
869
869
|
var Polynomial = require_polynomial();
|
|
870
870
|
function ReedSolomonEncoder(degree) {
|
|
871
871
|
this.genPoly = void 0;
|
|
@@ -895,18 +895,18 @@ var require_reed_solomon_encoder = __commonJS({
|
|
|
895
895
|
}
|
|
896
896
|
});
|
|
897
897
|
|
|
898
|
-
//
|
|
898
|
+
// node_modules/qrcode/lib/core/version-check.js
|
|
899
899
|
var require_version_check = __commonJS({
|
|
900
|
-
"
|
|
900
|
+
"node_modules/qrcode/lib/core/version-check.js"(exports) {
|
|
901
901
|
exports.isValid = function isValid(version2) {
|
|
902
902
|
return !isNaN(version2) && version2 >= 1 && version2 <= 40;
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
905
|
});
|
|
906
906
|
|
|
907
|
-
//
|
|
907
|
+
// node_modules/qrcode/lib/core/regex.js
|
|
908
908
|
var require_regex = __commonJS({
|
|
909
|
-
"
|
|
909
|
+
"node_modules/qrcode/lib/core/regex.js"(exports) {
|
|
910
910
|
var numeric = "[0-9]+";
|
|
911
911
|
var alphanumeric = "[A-Z $%*+\\-./:]+";
|
|
912
912
|
var kanji = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
@@ -932,9 +932,9 @@ var require_regex = __commonJS({
|
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
934
|
|
|
935
|
-
//
|
|
935
|
+
// node_modules/qrcode/lib/core/mode.js
|
|
936
936
|
var require_mode = __commonJS({
|
|
937
|
-
"
|
|
937
|
+
"node_modules/qrcode/lib/core/mode.js"(exports) {
|
|
938
938
|
var VersionCheck = require_version_check();
|
|
939
939
|
var Regex = require_regex();
|
|
940
940
|
exports.NUMERIC = {
|
|
@@ -1013,9 +1013,9 @@ var require_mode = __commonJS({
|
|
|
1013
1013
|
}
|
|
1014
1014
|
});
|
|
1015
1015
|
|
|
1016
|
-
//
|
|
1016
|
+
// node_modules/qrcode/lib/core/version.js
|
|
1017
1017
|
var require_version = __commonJS({
|
|
1018
|
-
"
|
|
1018
|
+
"node_modules/qrcode/lib/core/version.js"(exports) {
|
|
1019
1019
|
var Utils = require_utils();
|
|
1020
1020
|
var ECCode = require_error_correction_code();
|
|
1021
1021
|
var ECLevel = require_error_correction_level();
|
|
@@ -1108,9 +1108,9 @@ var require_version = __commonJS({
|
|
|
1108
1108
|
}
|
|
1109
1109
|
});
|
|
1110
1110
|
|
|
1111
|
-
//
|
|
1111
|
+
// node_modules/qrcode/lib/core/format-info.js
|
|
1112
1112
|
var require_format_info = __commonJS({
|
|
1113
|
-
"
|
|
1113
|
+
"node_modules/qrcode/lib/core/format-info.js"(exports) {
|
|
1114
1114
|
var Utils = require_utils();
|
|
1115
1115
|
var G15 = 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0;
|
|
1116
1116
|
var G15_MASK = 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1;
|
|
@@ -1126,9 +1126,9 @@ var require_format_info = __commonJS({
|
|
|
1126
1126
|
}
|
|
1127
1127
|
});
|
|
1128
1128
|
|
|
1129
|
-
//
|
|
1129
|
+
// node_modules/qrcode/lib/core/numeric-data.js
|
|
1130
1130
|
var require_numeric_data = __commonJS({
|
|
1131
|
-
"
|
|
1131
|
+
"node_modules/qrcode/lib/core/numeric-data.js"(exports, module) {
|
|
1132
1132
|
var Mode = require_mode();
|
|
1133
1133
|
function NumericData(data) {
|
|
1134
1134
|
this.mode = Mode.NUMERIC;
|
|
@@ -1161,9 +1161,9 @@ var require_numeric_data = __commonJS({
|
|
|
1161
1161
|
}
|
|
1162
1162
|
});
|
|
1163
1163
|
|
|
1164
|
-
//
|
|
1164
|
+
// node_modules/qrcode/lib/core/alphanumeric-data.js
|
|
1165
1165
|
var require_alphanumeric_data = __commonJS({
|
|
1166
|
-
"
|
|
1166
|
+
"node_modules/qrcode/lib/core/alphanumeric-data.js"(exports, module) {
|
|
1167
1167
|
var Mode = require_mode();
|
|
1168
1168
|
var ALPHA_NUM_CHARS = [
|
|
1169
1169
|
"0",
|
|
@@ -1240,9 +1240,9 @@ var require_alphanumeric_data = __commonJS({
|
|
|
1240
1240
|
}
|
|
1241
1241
|
});
|
|
1242
1242
|
|
|
1243
|
-
//
|
|
1243
|
+
// node_modules/qrcode/lib/core/byte-data.js
|
|
1244
1244
|
var require_byte_data = __commonJS({
|
|
1245
|
-
"
|
|
1245
|
+
"node_modules/qrcode/lib/core/byte-data.js"(exports, module) {
|
|
1246
1246
|
var Mode = require_mode();
|
|
1247
1247
|
function ByteData(data) {
|
|
1248
1248
|
this.mode = Mode.BYTE;
|
|
@@ -1270,9 +1270,9 @@ var require_byte_data = __commonJS({
|
|
|
1270
1270
|
}
|
|
1271
1271
|
});
|
|
1272
1272
|
|
|
1273
|
-
//
|
|
1273
|
+
// node_modules/qrcode/lib/core/kanji-data.js
|
|
1274
1274
|
var require_kanji_data = __commonJS({
|
|
1275
|
-
"
|
|
1275
|
+
"node_modules/qrcode/lib/core/kanji-data.js"(exports, module) {
|
|
1276
1276
|
var Mode = require_mode();
|
|
1277
1277
|
var Utils = require_utils();
|
|
1278
1278
|
function KanjiData(data) {
|
|
@@ -1309,9 +1309,9 @@ var require_kanji_data = __commonJS({
|
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
1311
1311
|
|
|
1312
|
-
//
|
|
1312
|
+
// node_modules/dijkstrajs/dijkstra.js
|
|
1313
1313
|
var require_dijkstra = __commonJS({
|
|
1314
|
-
"
|
|
1314
|
+
"node_modules/dijkstrajs/dijkstra.js"(exports, module) {
|
|
1315
1315
|
"use strict";
|
|
1316
1316
|
var dijkstra = {
|
|
1317
1317
|
single_source_shortest_paths: function(graph, s, d) {
|
|
@@ -1410,9 +1410,9 @@ var require_dijkstra = __commonJS({
|
|
|
1410
1410
|
}
|
|
1411
1411
|
});
|
|
1412
1412
|
|
|
1413
|
-
//
|
|
1413
|
+
// node_modules/qrcode/lib/core/segments.js
|
|
1414
1414
|
var require_segments = __commonJS({
|
|
1415
|
-
"
|
|
1415
|
+
"node_modules/qrcode/lib/core/segments.js"(exports) {
|
|
1416
1416
|
var Mode = require_mode();
|
|
1417
1417
|
var NumericData = require_numeric_data();
|
|
1418
1418
|
var AlphanumericData = require_alphanumeric_data();
|
|
@@ -1596,9 +1596,9 @@ var require_segments = __commonJS({
|
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
|
|
1599
|
-
//
|
|
1599
|
+
// node_modules/qrcode/lib/core/qrcode.js
|
|
1600
1600
|
var require_qrcode = __commonJS({
|
|
1601
|
-
"
|
|
1601
|
+
"node_modules/qrcode/lib/core/qrcode.js"(exports) {
|
|
1602
1602
|
var Utils = require_utils();
|
|
1603
1603
|
var ECLevel = require_error_correction_level();
|
|
1604
1604
|
var BitBuffer = require_bit_buffer();
|
|
@@ -1857,9 +1857,9 @@ var require_qrcode = __commonJS({
|
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|
|
1859
1859
|
|
|
1860
|
-
//
|
|
1860
|
+
// node_modules/pngjs/lib/chunkstream.js
|
|
1861
1861
|
var require_chunkstream = __commonJS({
|
|
1862
|
-
"
|
|
1862
|
+
"node_modules/pngjs/lib/chunkstream.js"(exports, module) {
|
|
1863
1863
|
"use strict";
|
|
1864
1864
|
var util = __require("util");
|
|
1865
1865
|
var Stream = __require("stream");
|
|
@@ -1995,9 +1995,9 @@ var require_chunkstream = __commonJS({
|
|
|
1995
1995
|
}
|
|
1996
1996
|
});
|
|
1997
1997
|
|
|
1998
|
-
//
|
|
1998
|
+
// node_modules/pngjs/lib/interlace.js
|
|
1999
1999
|
var require_interlace = __commonJS({
|
|
2000
|
-
"
|
|
2000
|
+
"node_modules/pngjs/lib/interlace.js"(exports) {
|
|
2001
2001
|
"use strict";
|
|
2002
2002
|
var imagePasses = [
|
|
2003
2003
|
{
|
|
@@ -2078,9 +2078,9 @@ var require_interlace = __commonJS({
|
|
|
2078
2078
|
}
|
|
2079
2079
|
});
|
|
2080
2080
|
|
|
2081
|
-
//
|
|
2081
|
+
// node_modules/pngjs/lib/paeth-predictor.js
|
|
2082
2082
|
var require_paeth_predictor = __commonJS({
|
|
2083
|
-
"
|
|
2083
|
+
"node_modules/pngjs/lib/paeth-predictor.js"(exports, module) {
|
|
2084
2084
|
"use strict";
|
|
2085
2085
|
module.exports = function paethPredictor(left, above, upLeft) {
|
|
2086
2086
|
let paeth = left + above - upLeft;
|
|
@@ -2098,9 +2098,9 @@ var require_paeth_predictor = __commonJS({
|
|
|
2098
2098
|
}
|
|
2099
2099
|
});
|
|
2100
2100
|
|
|
2101
|
-
//
|
|
2101
|
+
// node_modules/pngjs/lib/filter-parse.js
|
|
2102
2102
|
var require_filter_parse = __commonJS({
|
|
2103
|
-
"
|
|
2103
|
+
"node_modules/pngjs/lib/filter-parse.js"(exports, module) {
|
|
2104
2104
|
"use strict";
|
|
2105
2105
|
var interlaceUtils = require_interlace();
|
|
2106
2106
|
var paethPredictor = require_paeth_predictor();
|
|
@@ -2239,9 +2239,9 @@ var require_filter_parse = __commonJS({
|
|
|
2239
2239
|
}
|
|
2240
2240
|
});
|
|
2241
2241
|
|
|
2242
|
-
//
|
|
2242
|
+
// node_modules/pngjs/lib/filter-parse-async.js
|
|
2243
2243
|
var require_filter_parse_async = __commonJS({
|
|
2244
|
-
"
|
|
2244
|
+
"node_modules/pngjs/lib/filter-parse-async.js"(exports, module) {
|
|
2245
2245
|
"use strict";
|
|
2246
2246
|
var util = __require("util");
|
|
2247
2247
|
var ChunkStream = require_chunkstream();
|
|
@@ -2265,9 +2265,9 @@ var require_filter_parse_async = __commonJS({
|
|
|
2265
2265
|
}
|
|
2266
2266
|
});
|
|
2267
2267
|
|
|
2268
|
-
//
|
|
2268
|
+
// node_modules/pngjs/lib/constants.js
|
|
2269
2269
|
var require_constants = __commonJS({
|
|
2270
|
-
"
|
|
2270
|
+
"node_modules/pngjs/lib/constants.js"(exports, module) {
|
|
2271
2271
|
"use strict";
|
|
2272
2272
|
module.exports = {
|
|
2273
2273
|
PNG_SIGNATURE: [137, 80, 78, 71, 13, 10, 26, 10],
|
|
@@ -2300,9 +2300,9 @@ var require_constants = __commonJS({
|
|
|
2300
2300
|
}
|
|
2301
2301
|
});
|
|
2302
2302
|
|
|
2303
|
-
//
|
|
2303
|
+
// node_modules/pngjs/lib/crc.js
|
|
2304
2304
|
var require_crc = __commonJS({
|
|
2305
|
-
"
|
|
2305
|
+
"node_modules/pngjs/lib/crc.js"(exports, module) {
|
|
2306
2306
|
"use strict";
|
|
2307
2307
|
var crcTable = [];
|
|
2308
2308
|
(function() {
|
|
@@ -2340,9 +2340,9 @@ var require_crc = __commonJS({
|
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
2342
2342
|
|
|
2343
|
-
//
|
|
2343
|
+
// node_modules/pngjs/lib/parser.js
|
|
2344
2344
|
var require_parser = __commonJS({
|
|
2345
|
-
"
|
|
2345
|
+
"node_modules/pngjs/lib/parser.js"(exports, module) {
|
|
2346
2346
|
"use strict";
|
|
2347
2347
|
var constants3 = require_constants();
|
|
2348
2348
|
var CrcCalculator = require_crc();
|
|
@@ -2561,9 +2561,9 @@ var require_parser = __commonJS({
|
|
|
2561
2561
|
}
|
|
2562
2562
|
});
|
|
2563
2563
|
|
|
2564
|
-
//
|
|
2564
|
+
// node_modules/pngjs/lib/bitmapper.js
|
|
2565
2565
|
var require_bitmapper = __commonJS({
|
|
2566
|
-
"
|
|
2566
|
+
"node_modules/pngjs/lib/bitmapper.js"(exports) {
|
|
2567
2567
|
"use strict";
|
|
2568
2568
|
var interlaceUtils = require_interlace();
|
|
2569
2569
|
var pixelBppMapper = [
|
|
@@ -2809,9 +2809,9 @@ var require_bitmapper = __commonJS({
|
|
|
2809
2809
|
}
|
|
2810
2810
|
});
|
|
2811
2811
|
|
|
2812
|
-
//
|
|
2812
|
+
// node_modules/pngjs/lib/format-normaliser.js
|
|
2813
2813
|
var require_format_normaliser = __commonJS({
|
|
2814
|
-
"
|
|
2814
|
+
"node_modules/pngjs/lib/format-normaliser.js"(exports, module) {
|
|
2815
2815
|
"use strict";
|
|
2816
2816
|
function dePalette(indata, outdata, width, height, palette) {
|
|
2817
2817
|
let pxPos = 0;
|
|
@@ -2890,9 +2890,9 @@ var require_format_normaliser = __commonJS({
|
|
|
2890
2890
|
}
|
|
2891
2891
|
});
|
|
2892
2892
|
|
|
2893
|
-
//
|
|
2893
|
+
// node_modules/pngjs/lib/parser-async.js
|
|
2894
2894
|
var require_parser_async = __commonJS({
|
|
2895
|
-
"
|
|
2895
|
+
"node_modules/pngjs/lib/parser-async.js"(exports, module) {
|
|
2896
2896
|
"use strict";
|
|
2897
2897
|
var util = __require("util");
|
|
2898
2898
|
var zlib = __require("zlib");
|
|
@@ -3016,9 +3016,9 @@ var require_parser_async = __commonJS({
|
|
|
3016
3016
|
}
|
|
3017
3017
|
});
|
|
3018
3018
|
|
|
3019
|
-
//
|
|
3019
|
+
// node_modules/pngjs/lib/bitpacker.js
|
|
3020
3020
|
var require_bitpacker = __commonJS({
|
|
3021
|
-
"
|
|
3021
|
+
"node_modules/pngjs/lib/bitpacker.js"(exports, module) {
|
|
3022
3022
|
"use strict";
|
|
3023
3023
|
var constants3 = require_constants();
|
|
3024
3024
|
module.exports = function(dataIn, width, height, options) {
|
|
@@ -3166,9 +3166,9 @@ var require_bitpacker = __commonJS({
|
|
|
3166
3166
|
}
|
|
3167
3167
|
});
|
|
3168
3168
|
|
|
3169
|
-
//
|
|
3169
|
+
// node_modules/pngjs/lib/filter-pack.js
|
|
3170
3170
|
var require_filter_pack = __commonJS({
|
|
3171
|
-
"
|
|
3171
|
+
"node_modules/pngjs/lib/filter-pack.js"(exports, module) {
|
|
3172
3172
|
"use strict";
|
|
3173
3173
|
var paethPredictor = require_paeth_predictor();
|
|
3174
3174
|
function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
|
|
@@ -3308,9 +3308,9 @@ var require_filter_pack = __commonJS({
|
|
|
3308
3308
|
}
|
|
3309
3309
|
});
|
|
3310
3310
|
|
|
3311
|
-
//
|
|
3311
|
+
// node_modules/pngjs/lib/packer.js
|
|
3312
3312
|
var require_packer = __commonJS({
|
|
3313
|
-
"
|
|
3313
|
+
"node_modules/pngjs/lib/packer.js"(exports, module) {
|
|
3314
3314
|
"use strict";
|
|
3315
3315
|
var constants3 = require_constants();
|
|
3316
3316
|
var CrcStream = require_crc();
|
|
@@ -3408,9 +3408,9 @@ var require_packer = __commonJS({
|
|
|
3408
3408
|
}
|
|
3409
3409
|
});
|
|
3410
3410
|
|
|
3411
|
-
//
|
|
3411
|
+
// node_modules/pngjs/lib/packer-async.js
|
|
3412
3412
|
var require_packer_async = __commonJS({
|
|
3413
|
-
"
|
|
3413
|
+
"node_modules/pngjs/lib/packer-async.js"(exports, module) {
|
|
3414
3414
|
"use strict";
|
|
3415
3415
|
var util = __require("util");
|
|
3416
3416
|
var Stream = __require("stream");
|
|
@@ -3450,9 +3450,9 @@ var require_packer_async = __commonJS({
|
|
|
3450
3450
|
}
|
|
3451
3451
|
});
|
|
3452
3452
|
|
|
3453
|
-
//
|
|
3453
|
+
// node_modules/pngjs/lib/sync-inflate.js
|
|
3454
3454
|
var require_sync_inflate = __commonJS({
|
|
3455
|
-
"
|
|
3455
|
+
"node_modules/pngjs/lib/sync-inflate.js"(exports, module) {
|
|
3456
3456
|
"use strict";
|
|
3457
3457
|
var assert2 = __require("assert").ok;
|
|
3458
3458
|
var zlib = __require("zlib");
|
|
@@ -3587,9 +3587,9 @@ var require_sync_inflate = __commonJS({
|
|
|
3587
3587
|
}
|
|
3588
3588
|
});
|
|
3589
3589
|
|
|
3590
|
-
//
|
|
3590
|
+
// node_modules/pngjs/lib/sync-reader.js
|
|
3591
3591
|
var require_sync_reader = __commonJS({
|
|
3592
|
-
"
|
|
3592
|
+
"node_modules/pngjs/lib/sync-reader.js"(exports, module) {
|
|
3593
3593
|
"use strict";
|
|
3594
3594
|
var SyncReader = module.exports = function(buffer) {
|
|
3595
3595
|
this._buffer = buffer;
|
|
@@ -3625,9 +3625,9 @@ var require_sync_reader = __commonJS({
|
|
|
3625
3625
|
}
|
|
3626
3626
|
});
|
|
3627
3627
|
|
|
3628
|
-
//
|
|
3628
|
+
// node_modules/pngjs/lib/filter-parse-sync.js
|
|
3629
3629
|
var require_filter_parse_sync = __commonJS({
|
|
3630
|
-
"
|
|
3630
|
+
"node_modules/pngjs/lib/filter-parse-sync.js"(exports) {
|
|
3631
3631
|
"use strict";
|
|
3632
3632
|
var SyncReader = require_sync_reader();
|
|
3633
3633
|
var Filter = require_filter_parse();
|
|
@@ -3649,9 +3649,9 @@ var require_filter_parse_sync = __commonJS({
|
|
|
3649
3649
|
}
|
|
3650
3650
|
});
|
|
3651
3651
|
|
|
3652
|
-
//
|
|
3652
|
+
// node_modules/pngjs/lib/parser-sync.js
|
|
3653
3653
|
var require_parser_sync = __commonJS({
|
|
3654
|
-
"
|
|
3654
|
+
"node_modules/pngjs/lib/parser-sync.js"(exports, module) {
|
|
3655
3655
|
"use strict";
|
|
3656
3656
|
var hasSyncZlib = true;
|
|
3657
3657
|
var zlib = __require("zlib");
|
|
@@ -3740,9 +3740,9 @@ var require_parser_sync = __commonJS({
|
|
|
3740
3740
|
}
|
|
3741
3741
|
});
|
|
3742
3742
|
|
|
3743
|
-
//
|
|
3743
|
+
// node_modules/pngjs/lib/packer-sync.js
|
|
3744
3744
|
var require_packer_sync = __commonJS({
|
|
3745
|
-
"
|
|
3745
|
+
"node_modules/pngjs/lib/packer-sync.js"(exports, module) {
|
|
3746
3746
|
"use strict";
|
|
3747
3747
|
var hasSyncZlib = true;
|
|
3748
3748
|
var zlib = __require("zlib");
|
|
@@ -3785,9 +3785,9 @@ var require_packer_sync = __commonJS({
|
|
|
3785
3785
|
}
|
|
3786
3786
|
});
|
|
3787
3787
|
|
|
3788
|
-
//
|
|
3788
|
+
// node_modules/pngjs/lib/png-sync.js
|
|
3789
3789
|
var require_png_sync = __commonJS({
|
|
3790
|
-
"
|
|
3790
|
+
"node_modules/pngjs/lib/png-sync.js"(exports) {
|
|
3791
3791
|
"use strict";
|
|
3792
3792
|
var parse4 = require_parser_sync();
|
|
3793
3793
|
var pack = require_packer_sync();
|
|
@@ -3800,9 +3800,9 @@ var require_png_sync = __commonJS({
|
|
|
3800
3800
|
}
|
|
3801
3801
|
});
|
|
3802
3802
|
|
|
3803
|
-
//
|
|
3803
|
+
// node_modules/pngjs/lib/png.js
|
|
3804
3804
|
var require_png = __commonJS({
|
|
3805
|
-
"
|
|
3805
|
+
"node_modules/pngjs/lib/png.js"(exports) {
|
|
3806
3806
|
"use strict";
|
|
3807
3807
|
var util = __require("util");
|
|
3808
3808
|
var Stream = __require("stream");
|
|
@@ -3937,9 +3937,9 @@ var require_png = __commonJS({
|
|
|
3937
3937
|
}
|
|
3938
3938
|
});
|
|
3939
3939
|
|
|
3940
|
-
//
|
|
3940
|
+
// node_modules/qrcode/lib/renderer/utils.js
|
|
3941
3941
|
var require_utils2 = __commonJS({
|
|
3942
|
-
"
|
|
3942
|
+
"node_modules/qrcode/lib/renderer/utils.js"(exports) {
|
|
3943
3943
|
function hex2rgba(hex3) {
|
|
3944
3944
|
if (typeof hex3 === "number") {
|
|
3945
3945
|
hex3 = hex3.toString();
|
|
@@ -4017,9 +4017,9 @@ var require_utils2 = __commonJS({
|
|
|
4017
4017
|
}
|
|
4018
4018
|
});
|
|
4019
4019
|
|
|
4020
|
-
//
|
|
4020
|
+
// node_modules/qrcode/lib/renderer/png.js
|
|
4021
4021
|
var require_png2 = __commonJS({
|
|
4022
|
-
"
|
|
4022
|
+
"node_modules/qrcode/lib/renderer/png.js"(exports) {
|
|
4023
4023
|
var fs = __require("fs");
|
|
4024
4024
|
var PNG = require_png().PNG;
|
|
4025
4025
|
var Utils = require_utils2();
|
|
@@ -4084,9 +4084,9 @@ var require_png2 = __commonJS({
|
|
|
4084
4084
|
}
|
|
4085
4085
|
});
|
|
4086
4086
|
|
|
4087
|
-
//
|
|
4087
|
+
// node_modules/qrcode/lib/renderer/utf8.js
|
|
4088
4088
|
var require_utf8 = __commonJS({
|
|
4089
|
-
"
|
|
4089
|
+
"node_modules/qrcode/lib/renderer/utf8.js"(exports) {
|
|
4090
4090
|
var Utils = require_utils2();
|
|
4091
4091
|
var BLOCK_CHAR = {
|
|
4092
4092
|
WW: " ",
|
|
@@ -4146,9 +4146,9 @@ var require_utf8 = __commonJS({
|
|
|
4146
4146
|
}
|
|
4147
4147
|
});
|
|
4148
4148
|
|
|
4149
|
-
//
|
|
4149
|
+
// node_modules/qrcode/lib/renderer/terminal/terminal.js
|
|
4150
4150
|
var require_terminal = __commonJS({
|
|
4151
|
-
"
|
|
4151
|
+
"node_modules/qrcode/lib/renderer/terminal/terminal.js"(exports) {
|
|
4152
4152
|
exports.render = function(qrData, options, cb) {
|
|
4153
4153
|
const size = qrData.modules.size;
|
|
4154
4154
|
const data = qrData.modules.data;
|
|
@@ -4174,9 +4174,9 @@ var require_terminal = __commonJS({
|
|
|
4174
4174
|
}
|
|
4175
4175
|
});
|
|
4176
4176
|
|
|
4177
|
-
//
|
|
4177
|
+
// node_modules/qrcode/lib/renderer/terminal/terminal-small.js
|
|
4178
4178
|
var require_terminal_small = __commonJS({
|
|
4179
|
-
"
|
|
4179
|
+
"node_modules/qrcode/lib/renderer/terminal/terminal-small.js"(exports) {
|
|
4180
4180
|
var backgroundWhite = "\x1B[47m";
|
|
4181
4181
|
var backgroundBlack = "\x1B[40m";
|
|
4182
4182
|
var foregroundWhite = "\x1B[37m";
|
|
@@ -4233,9 +4233,9 @@ var require_terminal_small = __commonJS({
|
|
|
4233
4233
|
}
|
|
4234
4234
|
});
|
|
4235
4235
|
|
|
4236
|
-
//
|
|
4236
|
+
// node_modules/qrcode/lib/renderer/terminal.js
|
|
4237
4237
|
var require_terminal2 = __commonJS({
|
|
4238
|
-
"
|
|
4238
|
+
"node_modules/qrcode/lib/renderer/terminal.js"(exports) {
|
|
4239
4239
|
var big = require_terminal();
|
|
4240
4240
|
var small = require_terminal_small();
|
|
4241
4241
|
exports.render = function(qrData, options, cb) {
|
|
@@ -4247,9 +4247,9 @@ var require_terminal2 = __commonJS({
|
|
|
4247
4247
|
}
|
|
4248
4248
|
});
|
|
4249
4249
|
|
|
4250
|
-
//
|
|
4250
|
+
// node_modules/qrcode/lib/renderer/svg-tag.js
|
|
4251
4251
|
var require_svg_tag = __commonJS({
|
|
4252
|
-
"
|
|
4252
|
+
"node_modules/qrcode/lib/renderer/svg-tag.js"(exports) {
|
|
4253
4253
|
var Utils = require_utils2();
|
|
4254
4254
|
function getColorAttrib(color, attrib) {
|
|
4255
4255
|
const alpha = color.a / 255;
|
|
@@ -4305,9 +4305,9 @@ var require_svg_tag = __commonJS({
|
|
|
4305
4305
|
}
|
|
4306
4306
|
});
|
|
4307
4307
|
|
|
4308
|
-
//
|
|
4308
|
+
// node_modules/qrcode/lib/renderer/svg.js
|
|
4309
4309
|
var require_svg = __commonJS({
|
|
4310
|
-
"
|
|
4310
|
+
"node_modules/qrcode/lib/renderer/svg.js"(exports) {
|
|
4311
4311
|
var svgTagRenderer = require_svg_tag();
|
|
4312
4312
|
exports.render = svgTagRenderer.render;
|
|
4313
4313
|
exports.renderToFile = function renderToFile(path, qrData, options, cb) {
|
|
@@ -4323,9 +4323,9 @@ var require_svg = __commonJS({
|
|
|
4323
4323
|
}
|
|
4324
4324
|
});
|
|
4325
4325
|
|
|
4326
|
-
//
|
|
4326
|
+
// node_modules/qrcode/lib/renderer/canvas.js
|
|
4327
4327
|
var require_canvas = __commonJS({
|
|
4328
|
-
"
|
|
4328
|
+
"node_modules/qrcode/lib/renderer/canvas.js"(exports) {
|
|
4329
4329
|
var Utils = require_utils2();
|
|
4330
4330
|
function clearCanvas(ctx, canvas, size) {
|
|
4331
4331
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
@@ -4376,9 +4376,9 @@ var require_canvas = __commonJS({
|
|
|
4376
4376
|
}
|
|
4377
4377
|
});
|
|
4378
4378
|
|
|
4379
|
-
//
|
|
4379
|
+
// node_modules/qrcode/lib/browser.js
|
|
4380
4380
|
var require_browser = __commonJS({
|
|
4381
|
-
"
|
|
4381
|
+
"node_modules/qrcode/lib/browser.js"(exports) {
|
|
4382
4382
|
var canPromise = require_can_promise();
|
|
4383
4383
|
var QRCode2 = require_qrcode();
|
|
4384
4384
|
var CanvasRenderer = require_canvas();
|
|
@@ -4446,9 +4446,9 @@ var require_browser = __commonJS({
|
|
|
4446
4446
|
}
|
|
4447
4447
|
});
|
|
4448
4448
|
|
|
4449
|
-
//
|
|
4449
|
+
// node_modules/qrcode/lib/server.js
|
|
4450
4450
|
var require_server = __commonJS({
|
|
4451
|
-
"
|
|
4451
|
+
"node_modules/qrcode/lib/server.js"(exports) {
|
|
4452
4452
|
var canPromise = require_can_promise();
|
|
4453
4453
|
var QRCode2 = require_qrcode();
|
|
4454
4454
|
var PngRenderer = require_png2();
|
|
@@ -4566,9 +4566,9 @@ var require_server = __commonJS({
|
|
|
4566
4566
|
}
|
|
4567
4567
|
});
|
|
4568
4568
|
|
|
4569
|
-
//
|
|
4569
|
+
// node_modules/qrcode/lib/index.js
|
|
4570
4570
|
var require_lib = __commonJS({
|
|
4571
|
-
"
|
|
4571
|
+
"node_modules/qrcode/lib/index.js"(exports, module) {
|
|
4572
4572
|
module.exports = require_server();
|
|
4573
4573
|
}
|
|
4574
4574
|
});
|
|
@@ -4577,9 +4577,9 @@ var require_lib = __commonJS({
|
|
|
4577
4577
|
import { spawnSync } from "node:child_process";
|
|
4578
4578
|
import { createHash as createHash5 } from "node:crypto";
|
|
4579
4579
|
import { existsSync as existsSync7, mkdtempSync, rmSync, writeFileSync as writeFileSync3 } from "node:fs";
|
|
4580
|
-
import { tmpdir as
|
|
4580
|
+
import { tmpdir as tmpdir5 } from "node:os";
|
|
4581
4581
|
import { createRequire } from "node:module";
|
|
4582
|
-
import { dirname as dirname10, join as
|
|
4582
|
+
import { dirname as dirname10, join as join23, resolve as resolve9 } from "node:path";
|
|
4583
4583
|
import { fileURLToPath as fileURLToPath3, pathToFileURL as pathToFileURL2 } from "node:url";
|
|
4584
4584
|
|
|
4585
4585
|
// src/config.ts
|
|
@@ -4589,7 +4589,7 @@ import { chmod, mkdir, rename, writeFile } from "node:fs/promises";
|
|
|
4589
4589
|
import { homedir, hostname as hostname3, platform } from "node:os";
|
|
4590
4590
|
import { delimiter, dirname, join, resolve, sep } from "node:path";
|
|
4591
4591
|
|
|
4592
|
-
//
|
|
4592
|
+
// node_modules/zod/v4/classic/external.js
|
|
4593
4593
|
var external_exports = {};
|
|
4594
4594
|
__export(external_exports, {
|
|
4595
4595
|
$brand: () => $brand,
|
|
@@ -4852,7 +4852,7 @@ __export(external_exports, {
|
|
|
4852
4852
|
xor: () => xor
|
|
4853
4853
|
});
|
|
4854
4854
|
|
|
4855
|
-
//
|
|
4855
|
+
// node_modules/zod/v4/core/index.js
|
|
4856
4856
|
var core_exports2 = {};
|
|
4857
4857
|
__export(core_exports2, {
|
|
4858
4858
|
$ZodAny: () => $ZodAny,
|
|
@@ -5169,7 +5169,7 @@ __export(core_exports2, {
|
|
|
5169
5169
|
withParser: () => withParser
|
|
5170
5170
|
});
|
|
5171
5171
|
|
|
5172
|
-
//
|
|
5172
|
+
// node_modules/zod/v4/core/util.js
|
|
5173
5173
|
var util_exports = {};
|
|
5174
5174
|
__export(util_exports, {
|
|
5175
5175
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -6025,7 +6025,7 @@ function constantCatch(value) {
|
|
|
6025
6025
|
return fn;
|
|
6026
6026
|
}
|
|
6027
6027
|
|
|
6028
|
-
//
|
|
6028
|
+
// node_modules/zod/v4/core/core.js
|
|
6029
6029
|
var _a;
|
|
6030
6030
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
6031
6031
|
status: "aborted"
|
|
@@ -6147,7 +6147,7 @@ function config(newConfig) {
|
|
|
6147
6147
|
return globalConfig;
|
|
6148
6148
|
}
|
|
6149
6149
|
|
|
6150
|
-
//
|
|
6150
|
+
// node_modules/zod/v4/core/errors.js
|
|
6151
6151
|
function _getMessage() {
|
|
6152
6152
|
const internals = this._zod;
|
|
6153
6153
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -6339,7 +6339,7 @@ function prettifyError(error62) {
|
|
|
6339
6339
|
return lines.join("\n");
|
|
6340
6340
|
}
|
|
6341
6341
|
|
|
6342
|
-
//
|
|
6342
|
+
// node_modules/zod/v4/core/parse.js
|
|
6343
6343
|
function finalizeParams(callee, params) {
|
|
6344
6344
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
6345
6345
|
}
|
|
@@ -6499,7 +6499,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
6499
6499
|
};
|
|
6500
6500
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
6501
6501
|
|
|
6502
|
-
//
|
|
6502
|
+
// node_modules/zod/v4/core/regexes.js
|
|
6503
6503
|
var regexes_exports = {};
|
|
6504
6504
|
__export(regexes_exports, {
|
|
6505
6505
|
anyString: () => anyString,
|
|
@@ -6671,7 +6671,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
6671
6671
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
6672
6672
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
6673
6673
|
|
|
6674
|
-
//
|
|
6674
|
+
// node_modules/zod/v4/core/checks.js
|
|
6675
6675
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
6676
6676
|
var _a3;
|
|
6677
6677
|
inst._zod ?? (inst._zod = {});
|
|
@@ -7147,7 +7147,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
7147
7147
|
};
|
|
7148
7148
|
});
|
|
7149
7149
|
|
|
7150
|
-
//
|
|
7150
|
+
// node_modules/zod/v4/core/doc.js
|
|
7151
7151
|
var Doc = class {
|
|
7152
7152
|
constructor(args = [], closed = {}) {
|
|
7153
7153
|
this.content = [];
|
|
@@ -7188,14 +7188,14 @@ ${content.join("\n")}
|
|
|
7188
7188
|
}
|
|
7189
7189
|
};
|
|
7190
7190
|
|
|
7191
|
-
//
|
|
7191
|
+
// node_modules/zod/v4/core/versions.js
|
|
7192
7192
|
var version = {
|
|
7193
7193
|
major: 4,
|
|
7194
7194
|
minor: 6,
|
|
7195
7195
|
patch: 7
|
|
7196
7196
|
};
|
|
7197
7197
|
|
|
7198
|
-
//
|
|
7198
|
+
// node_modules/zod/v4/core/schemas.js
|
|
7199
7199
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
7200
7200
|
var _a3;
|
|
7201
7201
|
inst ?? (inst = {});
|
|
@@ -9637,7 +9637,7 @@ function handleRefineResult(result, payload, input2, inst) {
|
|
|
9637
9637
|
}
|
|
9638
9638
|
}
|
|
9639
9639
|
|
|
9640
|
-
//
|
|
9640
|
+
// node_modules/zod/v4/core/memoizer.js
|
|
9641
9641
|
var $ZodCyclicError = class extends Error {
|
|
9642
9642
|
constructor() {
|
|
9643
9643
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -9914,7 +9914,7 @@ function isBackEdge(ctx, value) {
|
|
|
9914
9914
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
9915
9915
|
}
|
|
9916
9916
|
|
|
9917
|
-
//
|
|
9917
|
+
// node_modules/zod/v4/locales/index.js
|
|
9918
9918
|
var locales_exports = {};
|
|
9919
9919
|
__export(locales_exports, {
|
|
9920
9920
|
ar: () => ar_default,
|
|
@@ -9982,7 +9982,7 @@ __export(locales_exports, {
|
|
|
9982
9982
|
zhTW: () => zh_TW_default
|
|
9983
9983
|
});
|
|
9984
9984
|
|
|
9985
|
-
//
|
|
9985
|
+
// node_modules/zod/v4/locales/ar.js
|
|
9986
9986
|
var error = () => {
|
|
9987
9987
|
const Sizable = {
|
|
9988
9988
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -10094,7 +10094,7 @@ function ar_default() {
|
|
|
10094
10094
|
};
|
|
10095
10095
|
}
|
|
10096
10096
|
|
|
10097
|
-
//
|
|
10097
|
+
// node_modules/zod/v4/locales/az.js
|
|
10098
10098
|
var error2 = () => {
|
|
10099
10099
|
const Sizable = {
|
|
10100
10100
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -10205,7 +10205,7 @@ function az_default() {
|
|
|
10205
10205
|
};
|
|
10206
10206
|
}
|
|
10207
10207
|
|
|
10208
|
-
//
|
|
10208
|
+
// node_modules/zod/v4/locales/be.js
|
|
10209
10209
|
function getBelarusianPlural(count2, one, few, many) {
|
|
10210
10210
|
const absCount = Math.abs(count2);
|
|
10211
10211
|
const lastDigit = absCount % 10;
|
|
@@ -10374,7 +10374,7 @@ function be_default() {
|
|
|
10374
10374
|
};
|
|
10375
10375
|
}
|
|
10376
10376
|
|
|
10377
|
-
//
|
|
10377
|
+
// node_modules/zod/v4/locales/bg.js
|
|
10378
10378
|
var error4 = () => {
|
|
10379
10379
|
const Sizable = {
|
|
10380
10380
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -10500,7 +10500,7 @@ function bg_default() {
|
|
|
10500
10500
|
};
|
|
10501
10501
|
}
|
|
10502
10502
|
|
|
10503
|
-
//
|
|
10503
|
+
// node_modules/zod/v4/locales/bn.js
|
|
10504
10504
|
var error5 = () => {
|
|
10505
10505
|
const Sizable = {
|
|
10506
10506
|
string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
|
|
@@ -10614,7 +10614,7 @@ function bn_default() {
|
|
|
10614
10614
|
};
|
|
10615
10615
|
}
|
|
10616
10616
|
|
|
10617
|
-
//
|
|
10617
|
+
// node_modules/zod/v4/locales/ca.js
|
|
10618
10618
|
var error6 = () => {
|
|
10619
10619
|
const Sizable = {
|
|
10620
10620
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -10728,7 +10728,7 @@ function ca_default() {
|
|
|
10728
10728
|
};
|
|
10729
10729
|
}
|
|
10730
10730
|
|
|
10731
|
-
//
|
|
10731
|
+
// node_modules/zod/v4/locales/ckb.js
|
|
10732
10732
|
var error7 = () => {
|
|
10733
10733
|
const Sizable = {
|
|
10734
10734
|
string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
|
|
@@ -10861,7 +10861,7 @@ function ckb_default() {
|
|
|
10861
10861
|
};
|
|
10862
10862
|
}
|
|
10863
10863
|
|
|
10864
|
-
//
|
|
10864
|
+
// node_modules/zod/v4/locales/cs.js
|
|
10865
10865
|
var error8 = () => {
|
|
10866
10866
|
const Sizable = {
|
|
10867
10867
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -10978,7 +10978,7 @@ function cs_default() {
|
|
|
10978
10978
|
};
|
|
10979
10979
|
}
|
|
10980
10980
|
|
|
10981
|
-
//
|
|
10981
|
+
// node_modules/zod/v4/locales/da.js
|
|
10982
10982
|
var error9 = () => {
|
|
10983
10983
|
const Sizable = {
|
|
10984
10984
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -11099,7 +11099,7 @@ function da_default() {
|
|
|
11099
11099
|
};
|
|
11100
11100
|
}
|
|
11101
11101
|
|
|
11102
|
-
//
|
|
11102
|
+
// node_modules/zod/v4/locales/de.js
|
|
11103
11103
|
var error10 = () => {
|
|
11104
11104
|
const Sizable = {
|
|
11105
11105
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -11213,7 +11213,7 @@ function de_default() {
|
|
|
11213
11213
|
};
|
|
11214
11214
|
}
|
|
11215
11215
|
|
|
11216
|
-
//
|
|
11216
|
+
// node_modules/zod/v4/locales/el.js
|
|
11217
11217
|
var error11 = () => {
|
|
11218
11218
|
const Sizable = {
|
|
11219
11219
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -11326,7 +11326,7 @@ function el_default() {
|
|
|
11326
11326
|
};
|
|
11327
11327
|
}
|
|
11328
11328
|
|
|
11329
|
-
//
|
|
11329
|
+
// node_modules/zod/v4/locales/en.js
|
|
11330
11330
|
var error12 = () => {
|
|
11331
11331
|
const Sizable = {
|
|
11332
11332
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -11451,7 +11451,7 @@ function en_default() {
|
|
|
11451
11451
|
};
|
|
11452
11452
|
}
|
|
11453
11453
|
|
|
11454
|
-
//
|
|
11454
|
+
// node_modules/zod/v4/locales/eo.js
|
|
11455
11455
|
var error13 = () => {
|
|
11456
11456
|
const Sizable = {
|
|
11457
11457
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -11566,7 +11566,7 @@ function eo_default() {
|
|
|
11566
11566
|
};
|
|
11567
11567
|
}
|
|
11568
11568
|
|
|
11569
|
-
//
|
|
11569
|
+
// node_modules/zod/v4/locales/es.js
|
|
11570
11570
|
var error14 = () => {
|
|
11571
11571
|
const Sizable = {
|
|
11572
11572
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -11703,7 +11703,7 @@ function es_default() {
|
|
|
11703
11703
|
};
|
|
11704
11704
|
}
|
|
11705
11705
|
|
|
11706
|
-
//
|
|
11706
|
+
// node_modules/zod/v4/locales/fa.js
|
|
11707
11707
|
var error15 = () => {
|
|
11708
11708
|
const Sizable = {
|
|
11709
11709
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -11823,7 +11823,7 @@ function fa_default() {
|
|
|
11823
11823
|
};
|
|
11824
11824
|
}
|
|
11825
11825
|
|
|
11826
|
-
//
|
|
11826
|
+
// node_modules/zod/v4/locales/fi.js
|
|
11827
11827
|
var error16 = () => {
|
|
11828
11828
|
const Sizable = {
|
|
11829
11829
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -11941,7 +11941,7 @@ function fi_default() {
|
|
|
11941
11941
|
};
|
|
11942
11942
|
}
|
|
11943
11943
|
|
|
11944
|
-
//
|
|
11944
|
+
// node_modules/zod/v4/locales/fr.js
|
|
11945
11945
|
var error17 = () => {
|
|
11946
11946
|
const Sizable = {
|
|
11947
11947
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -12071,7 +12071,7 @@ function fr_default() {
|
|
|
12071
12071
|
};
|
|
12072
12072
|
}
|
|
12073
12073
|
|
|
12074
|
-
//
|
|
12074
|
+
// node_modules/zod/v4/locales/fr-CA.js
|
|
12075
12075
|
var error18 = () => {
|
|
12076
12076
|
const Sizable = {
|
|
12077
12077
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -12184,7 +12184,7 @@ function fr_CA_default() {
|
|
|
12184
12184
|
};
|
|
12185
12185
|
}
|
|
12186
12186
|
|
|
12187
|
-
//
|
|
12187
|
+
// node_modules/zod/v4/locales/gu.js
|
|
12188
12188
|
var error19 = () => {
|
|
12189
12189
|
const Sizable = {
|
|
12190
12190
|
string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
|
|
@@ -12298,7 +12298,7 @@ function gu_default() {
|
|
|
12298
12298
|
};
|
|
12299
12299
|
}
|
|
12300
12300
|
|
|
12301
|
-
//
|
|
12301
|
+
// node_modules/zod/v4/locales/he.js
|
|
12302
12302
|
var error20 = () => {
|
|
12303
12303
|
const TypeNames = {
|
|
12304
12304
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -12500,7 +12500,7 @@ function he_default() {
|
|
|
12500
12500
|
};
|
|
12501
12501
|
}
|
|
12502
12502
|
|
|
12503
|
-
//
|
|
12503
|
+
// node_modules/zod/v4/locales/hi.js
|
|
12504
12504
|
var error21 = () => {
|
|
12505
12505
|
const Sizable = {
|
|
12506
12506
|
string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
|
|
@@ -12612,7 +12612,7 @@ function hi_default() {
|
|
|
12612
12612
|
};
|
|
12613
12613
|
}
|
|
12614
12614
|
|
|
12615
|
-
//
|
|
12615
|
+
// node_modules/zod/v4/locales/hr.js
|
|
12616
12616
|
var error22 = () => {
|
|
12617
12617
|
const Sizable = {
|
|
12618
12618
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -12739,7 +12739,7 @@ function hr_default() {
|
|
|
12739
12739
|
};
|
|
12740
12740
|
}
|
|
12741
12741
|
|
|
12742
|
-
//
|
|
12742
|
+
// node_modules/zod/v4/locales/hu.js
|
|
12743
12743
|
var error23 = () => {
|
|
12744
12744
|
const Sizable = {
|
|
12745
12745
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -12853,7 +12853,7 @@ function hu_default() {
|
|
|
12853
12853
|
};
|
|
12854
12854
|
}
|
|
12855
12855
|
|
|
12856
|
-
//
|
|
12856
|
+
// node_modules/zod/v4/locales/hy.js
|
|
12857
12857
|
function getArmenianPlural(count2, one, many) {
|
|
12858
12858
|
return Math.abs(count2) === 1 ? one : many;
|
|
12859
12859
|
}
|
|
@@ -13012,7 +13012,7 @@ function hy_default() {
|
|
|
13012
13012
|
};
|
|
13013
13013
|
}
|
|
13014
13014
|
|
|
13015
|
-
//
|
|
13015
|
+
// node_modules/zod/v4/locales/id.js
|
|
13016
13016
|
var error25 = () => {
|
|
13017
13017
|
const Sizable = {
|
|
13018
13018
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -13124,7 +13124,7 @@ function id_default() {
|
|
|
13124
13124
|
};
|
|
13125
13125
|
}
|
|
13126
13126
|
|
|
13127
|
-
//
|
|
13127
|
+
// node_modules/zod/v4/locales/is.js
|
|
13128
13128
|
var error26 = () => {
|
|
13129
13129
|
const Sizable = {
|
|
13130
13130
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -13239,7 +13239,7 @@ function is_default() {
|
|
|
13239
13239
|
};
|
|
13240
13240
|
}
|
|
13241
13241
|
|
|
13242
|
-
//
|
|
13242
|
+
// node_modules/zod/v4/locales/it.js
|
|
13243
13243
|
var error27 = () => {
|
|
13244
13244
|
const Sizable = {
|
|
13245
13245
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -13353,7 +13353,7 @@ function it_default() {
|
|
|
13353
13353
|
};
|
|
13354
13354
|
}
|
|
13355
13355
|
|
|
13356
|
-
//
|
|
13356
|
+
// node_modules/zod/v4/locales/ja.js
|
|
13357
13357
|
var error28 = () => {
|
|
13358
13358
|
const Sizable = {
|
|
13359
13359
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -13466,7 +13466,7 @@ function ja_default() {
|
|
|
13466
13466
|
};
|
|
13467
13467
|
}
|
|
13468
13468
|
|
|
13469
|
-
//
|
|
13469
|
+
// node_modules/zod/v4/locales/ka.js
|
|
13470
13470
|
var error29 = () => {
|
|
13471
13471
|
const Sizable = {
|
|
13472
13472
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -13584,7 +13584,7 @@ function ka_default() {
|
|
|
13584
13584
|
};
|
|
13585
13585
|
}
|
|
13586
13586
|
|
|
13587
|
-
//
|
|
13587
|
+
// node_modules/zod/v4/locales/km.js
|
|
13588
13588
|
var error30 = () => {
|
|
13589
13589
|
const Sizable = {
|
|
13590
13590
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -13700,12 +13700,12 @@ function km_default() {
|
|
|
13700
13700
|
};
|
|
13701
13701
|
}
|
|
13702
13702
|
|
|
13703
|
-
//
|
|
13703
|
+
// node_modules/zod/v4/locales/kh.js
|
|
13704
13704
|
function kh_default() {
|
|
13705
13705
|
return km_default();
|
|
13706
13706
|
}
|
|
13707
13707
|
|
|
13708
|
-
//
|
|
13708
|
+
// node_modules/zod/v4/locales/kn.js
|
|
13709
13709
|
var error31 = () => {
|
|
13710
13710
|
const Sizable = {
|
|
13711
13711
|
string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
|
|
@@ -13821,7 +13821,7 @@ function kn_default() {
|
|
|
13821
13821
|
};
|
|
13822
13822
|
}
|
|
13823
13823
|
|
|
13824
|
-
//
|
|
13824
|
+
// node_modules/zod/v4/locales/ko.js
|
|
13825
13825
|
var error32 = () => {
|
|
13826
13826
|
const Sizable = {
|
|
13827
13827
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -13938,7 +13938,7 @@ function ko_default() {
|
|
|
13938
13938
|
};
|
|
13939
13939
|
}
|
|
13940
13940
|
|
|
13941
|
-
//
|
|
13941
|
+
// node_modules/zod/v4/locales/lt.js
|
|
13942
13942
|
var capitalizeFirstCharacter = (text3) => {
|
|
13943
13943
|
return text3.charAt(0).toUpperCase() + text3.slice(1);
|
|
13944
13944
|
};
|
|
@@ -14146,7 +14146,7 @@ function lt_default() {
|
|
|
14146
14146
|
};
|
|
14147
14147
|
}
|
|
14148
14148
|
|
|
14149
|
-
//
|
|
14149
|
+
// node_modules/zod/v4/locales/mk.js
|
|
14150
14150
|
var error34 = () => {
|
|
14151
14151
|
const Sizable = {
|
|
14152
14152
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -14261,7 +14261,7 @@ function mk_default() {
|
|
|
14261
14261
|
};
|
|
14262
14262
|
}
|
|
14263
14263
|
|
|
14264
|
-
//
|
|
14264
|
+
// node_modules/zod/v4/locales/ms.js
|
|
14265
14265
|
var error35 = () => {
|
|
14266
14266
|
const Sizable = {
|
|
14267
14267
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -14374,7 +14374,7 @@ function ms_default() {
|
|
|
14374
14374
|
};
|
|
14375
14375
|
}
|
|
14376
14376
|
|
|
14377
|
-
//
|
|
14377
|
+
// node_modules/zod/v4/locales/ne.js
|
|
14378
14378
|
var error36 = () => {
|
|
14379
14379
|
const Sizable = {
|
|
14380
14380
|
string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
|
|
@@ -14486,7 +14486,7 @@ function ne_default() {
|
|
|
14486
14486
|
};
|
|
14487
14487
|
}
|
|
14488
14488
|
|
|
14489
|
-
//
|
|
14489
|
+
// node_modules/zod/v4/locales/nl.js
|
|
14490
14490
|
var error37 = () => {
|
|
14491
14491
|
const Sizable = {
|
|
14492
14492
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -14602,7 +14602,7 @@ function nl_default() {
|
|
|
14602
14602
|
};
|
|
14603
14603
|
}
|
|
14604
14604
|
|
|
14605
|
-
//
|
|
14605
|
+
// node_modules/zod/v4/locales/nn.js
|
|
14606
14606
|
var error38 = () => {
|
|
14607
14607
|
const Sizable = {
|
|
14608
14608
|
string: { unit: "teikn", verb: "\xE5 ha" },
|
|
@@ -14716,7 +14716,7 @@ function nn_default() {
|
|
|
14716
14716
|
};
|
|
14717
14717
|
}
|
|
14718
14718
|
|
|
14719
|
-
//
|
|
14719
|
+
// node_modules/zod/v4/locales/no.js
|
|
14720
14720
|
var error39 = () => {
|
|
14721
14721
|
const Sizable = {
|
|
14722
14722
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -14830,7 +14830,7 @@ function no_default() {
|
|
|
14830
14830
|
};
|
|
14831
14831
|
}
|
|
14832
14832
|
|
|
14833
|
-
//
|
|
14833
|
+
// node_modules/zod/v4/locales/ota.js
|
|
14834
14834
|
var error40 = () => {
|
|
14835
14835
|
const Sizable = {
|
|
14836
14836
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -14945,7 +14945,7 @@ function ota_default() {
|
|
|
14945
14945
|
};
|
|
14946
14946
|
}
|
|
14947
14947
|
|
|
14948
|
-
//
|
|
14948
|
+
// node_modules/zod/v4/locales/ps.js
|
|
14949
14949
|
var error41 = () => {
|
|
14950
14950
|
const Sizable = {
|
|
14951
14951
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -15065,7 +15065,7 @@ function ps_default() {
|
|
|
15065
15065
|
};
|
|
15066
15066
|
}
|
|
15067
15067
|
|
|
15068
|
-
//
|
|
15068
|
+
// node_modules/zod/v4/locales/pl.js
|
|
15069
15069
|
var error42 = () => {
|
|
15070
15070
|
const Sizable = {
|
|
15071
15071
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -15180,7 +15180,7 @@ function pl_default() {
|
|
|
15180
15180
|
};
|
|
15181
15181
|
}
|
|
15182
15182
|
|
|
15183
|
-
//
|
|
15183
|
+
// node_modules/zod/v4/locales/pt.js
|
|
15184
15184
|
var error43 = () => {
|
|
15185
15185
|
const Sizable = {
|
|
15186
15186
|
string: { unit: "caracteres" },
|
|
@@ -15324,7 +15324,7 @@ function pt_default() {
|
|
|
15324
15324
|
};
|
|
15325
15325
|
}
|
|
15326
15326
|
|
|
15327
|
-
//
|
|
15327
|
+
// node_modules/zod/v4/locales/pt-BR.js
|
|
15328
15328
|
var error44 = () => {
|
|
15329
15329
|
const Sizable = {
|
|
15330
15330
|
string: { unit: "caracteres" },
|
|
@@ -15469,7 +15469,7 @@ function pt_BR_default() {
|
|
|
15469
15469
|
};
|
|
15470
15470
|
}
|
|
15471
15471
|
|
|
15472
|
-
//
|
|
15472
|
+
// node_modules/zod/v4/locales/ro.js
|
|
15473
15473
|
var error45 = () => {
|
|
15474
15474
|
const Sizable = {
|
|
15475
15475
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -15592,7 +15592,7 @@ function ro_default() {
|
|
|
15592
15592
|
};
|
|
15593
15593
|
}
|
|
15594
15594
|
|
|
15595
|
-
//
|
|
15595
|
+
// node_modules/zod/v4/locales/ru.js
|
|
15596
15596
|
function getRussianPlural(count2, one, few, many) {
|
|
15597
15597
|
const absCount = Math.abs(count2);
|
|
15598
15598
|
const lastDigit = absCount % 10;
|
|
@@ -15761,7 +15761,7 @@ function ru_default() {
|
|
|
15761
15761
|
};
|
|
15762
15762
|
}
|
|
15763
15763
|
|
|
15764
|
-
//
|
|
15764
|
+
// node_modules/zod/v4/locales/sk.js
|
|
15765
15765
|
var error47 = () => {
|
|
15766
15766
|
const Sizable = {
|
|
15767
15767
|
string: { unit: "znakov", verb: "ma\u0165" },
|
|
@@ -15878,7 +15878,7 @@ function sk_default() {
|
|
|
15878
15878
|
};
|
|
15879
15879
|
}
|
|
15880
15880
|
|
|
15881
|
-
//
|
|
15881
|
+
// node_modules/zod/v4/locales/sl.js
|
|
15882
15882
|
var error48 = () => {
|
|
15883
15883
|
const Sizable = {
|
|
15884
15884
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -15993,7 +15993,7 @@ function sl_default() {
|
|
|
15993
15993
|
};
|
|
15994
15994
|
}
|
|
15995
15995
|
|
|
15996
|
-
//
|
|
15996
|
+
// node_modules/zod/v4/locales/sv.js
|
|
15997
15997
|
var error49 = () => {
|
|
15998
15998
|
const Sizable = {
|
|
15999
15999
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -16109,7 +16109,7 @@ function sv_default() {
|
|
|
16109
16109
|
};
|
|
16110
16110
|
}
|
|
16111
16111
|
|
|
16112
|
-
//
|
|
16112
|
+
// node_modules/zod/v4/locales/ta.js
|
|
16113
16113
|
var error50 = () => {
|
|
16114
16114
|
const Sizable = {
|
|
16115
16115
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -16225,7 +16225,7 @@ function ta_default() {
|
|
|
16225
16225
|
};
|
|
16226
16226
|
}
|
|
16227
16227
|
|
|
16228
|
-
//
|
|
16228
|
+
// node_modules/zod/v4/locales/tg.js
|
|
16229
16229
|
var error51 = () => {
|
|
16230
16230
|
const Sizable = {
|
|
16231
16231
|
string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
|
|
@@ -16342,7 +16342,7 @@ function tg_default() {
|
|
|
16342
16342
|
};
|
|
16343
16343
|
}
|
|
16344
16344
|
|
|
16345
|
-
//
|
|
16345
|
+
// node_modules/zod/v4/locales/th.js
|
|
16346
16346
|
var error52 = () => {
|
|
16347
16347
|
const Sizable = {
|
|
16348
16348
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -16458,7 +16458,7 @@ function th_default() {
|
|
|
16458
16458
|
};
|
|
16459
16459
|
}
|
|
16460
16460
|
|
|
16461
|
-
//
|
|
16461
|
+
// node_modules/zod/v4/locales/tk.js
|
|
16462
16462
|
var error53 = () => {
|
|
16463
16463
|
const Sizable = {
|
|
16464
16464
|
string: { unit: "simwol", verb: "bolmaly" },
|
|
@@ -16566,7 +16566,7 @@ function tk_default() {
|
|
|
16566
16566
|
};
|
|
16567
16567
|
}
|
|
16568
16568
|
|
|
16569
|
-
//
|
|
16569
|
+
// node_modules/zod/v4/locales/tr.js
|
|
16570
16570
|
var error54 = () => {
|
|
16571
16571
|
const Sizable = {
|
|
16572
16572
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -16677,7 +16677,7 @@ function tr_default() {
|
|
|
16677
16677
|
};
|
|
16678
16678
|
}
|
|
16679
16679
|
|
|
16680
|
-
//
|
|
16680
|
+
// node_modules/zod/v4/locales/uk.js
|
|
16681
16681
|
var error55 = () => {
|
|
16682
16682
|
const Sizable = {
|
|
16683
16683
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -16791,12 +16791,12 @@ function uk_default() {
|
|
|
16791
16791
|
};
|
|
16792
16792
|
}
|
|
16793
16793
|
|
|
16794
|
-
//
|
|
16794
|
+
// node_modules/zod/v4/locales/ua.js
|
|
16795
16795
|
function ua_default() {
|
|
16796
16796
|
return uk_default();
|
|
16797
16797
|
}
|
|
16798
16798
|
|
|
16799
|
-
//
|
|
16799
|
+
// node_modules/zod/v4/locales/ur.js
|
|
16800
16800
|
var error56 = () => {
|
|
16801
16801
|
const Sizable = {
|
|
16802
16802
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -16912,7 +16912,7 @@ function ur_default() {
|
|
|
16912
16912
|
};
|
|
16913
16913
|
}
|
|
16914
16914
|
|
|
16915
|
-
//
|
|
16915
|
+
// node_modules/zod/v4/locales/uz.js
|
|
16916
16916
|
var error57 = () => {
|
|
16917
16917
|
const Sizable = {
|
|
16918
16918
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -17026,7 +17026,7 @@ function uz_default() {
|
|
|
17026
17026
|
};
|
|
17027
17027
|
}
|
|
17028
17028
|
|
|
17029
|
-
//
|
|
17029
|
+
// node_modules/zod/v4/locales/vi.js
|
|
17030
17030
|
var error58 = () => {
|
|
17031
17031
|
const Sizable = {
|
|
17032
17032
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -17140,7 +17140,7 @@ function vi_default() {
|
|
|
17140
17140
|
};
|
|
17141
17141
|
}
|
|
17142
17142
|
|
|
17143
|
-
//
|
|
17143
|
+
// node_modules/zod/v4/locales/zh-CN.js
|
|
17144
17144
|
var error59 = () => {
|
|
17145
17145
|
const Sizable = {
|
|
17146
17146
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -17255,7 +17255,7 @@ function zh_CN_default() {
|
|
|
17255
17255
|
};
|
|
17256
17256
|
}
|
|
17257
17257
|
|
|
17258
|
-
//
|
|
17258
|
+
// node_modules/zod/v4/locales/zh-TW.js
|
|
17259
17259
|
var error60 = () => {
|
|
17260
17260
|
const Sizable = {
|
|
17261
17261
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -17368,7 +17368,7 @@ function zh_TW_default() {
|
|
|
17368
17368
|
};
|
|
17369
17369
|
}
|
|
17370
17370
|
|
|
17371
|
-
//
|
|
17371
|
+
// node_modules/zod/v4/locales/yo.js
|
|
17372
17372
|
var error61 = () => {
|
|
17373
17373
|
const Sizable = {
|
|
17374
17374
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -17481,7 +17481,7 @@ function yo_default() {
|
|
|
17481
17481
|
};
|
|
17482
17482
|
}
|
|
17483
17483
|
|
|
17484
|
-
//
|
|
17484
|
+
// node_modules/zod/v4/core/registries.js
|
|
17485
17485
|
var _a2;
|
|
17486
17486
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
17487
17487
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -17531,7 +17531,7 @@ function registry() {
|
|
|
17531
17531
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
17532
17532
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
17533
17533
|
|
|
17534
|
-
//
|
|
17534
|
+
// node_modules/zod/v4/core/compile.js
|
|
17535
17535
|
var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
|
|
17536
17536
|
var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
|
|
17537
17537
|
var ZodCompileAsyncError = class extends Error {
|
|
@@ -19141,7 +19141,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
|
|
|
19141
19141
|
return accessor;
|
|
19142
19142
|
}
|
|
19143
19143
|
|
|
19144
|
-
//
|
|
19144
|
+
// node_modules/zod/v4/core/api.js
|
|
19145
19145
|
function snapshotChecks(def) {
|
|
19146
19146
|
if (def.checks)
|
|
19147
19147
|
def.checks = [...def.checks];
|
|
@@ -20200,7 +20200,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
20200
20200
|
return inst;
|
|
20201
20201
|
}
|
|
20202
20202
|
|
|
20203
|
-
//
|
|
20203
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
20204
20204
|
function assignProps(target, ...sources) {
|
|
20205
20205
|
for (const source of sources) {
|
|
20206
20206
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -20730,7 +20730,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
20730
20730
|
return finalize(ctx, schema);
|
|
20731
20731
|
};
|
|
20732
20732
|
|
|
20733
|
-
//
|
|
20733
|
+
// node_modules/zod/v4/core/json-schema-processors.js
|
|
20734
20734
|
var narrowMin = (agg, key, value) => {
|
|
20735
20735
|
if (agg[key] === void 0 || value > agg[key])
|
|
20736
20736
|
agg[key] = value;
|
|
@@ -21478,7 +21478,7 @@ function toJSONSchema(input2, params) {
|
|
|
21478
21478
|
return finalize(ctx, input2);
|
|
21479
21479
|
}
|
|
21480
21480
|
|
|
21481
|
-
//
|
|
21481
|
+
// node_modules/zod/v4/core/json-schema-generator.js
|
|
21482
21482
|
var JSONSchemaGenerator = class {
|
|
21483
21483
|
/** @deprecated Access via ctx instead */
|
|
21484
21484
|
get metadataRegistry() {
|
|
@@ -21556,10 +21556,10 @@ var JSONSchemaGenerator = class {
|
|
|
21556
21556
|
}
|
|
21557
21557
|
};
|
|
21558
21558
|
|
|
21559
|
-
//
|
|
21559
|
+
// node_modules/zod/v4/core/json-schema.js
|
|
21560
21560
|
var json_schema_exports = {};
|
|
21561
21561
|
|
|
21562
|
-
//
|
|
21562
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
21563
21563
|
var schemas_exports2 = {};
|
|
21564
21564
|
__export(schemas_exports2, {
|
|
21565
21565
|
ZodAny: () => ZodAny,
|
|
@@ -21740,7 +21740,7 @@ __export(schemas_exports2, {
|
|
|
21740
21740
|
xor: () => xor
|
|
21741
21741
|
});
|
|
21742
21742
|
|
|
21743
|
-
//
|
|
21743
|
+
// node_modules/zod/v4/classic/checks.js
|
|
21744
21744
|
var checks_exports2 = {};
|
|
21745
21745
|
__export(checks_exports2, {
|
|
21746
21746
|
endsWith: () => _endsWith,
|
|
@@ -21775,7 +21775,7 @@ __export(checks_exports2, {
|
|
|
21775
21775
|
uppercase: () => _uppercase
|
|
21776
21776
|
});
|
|
21777
21777
|
|
|
21778
|
-
//
|
|
21778
|
+
// node_modules/zod/v4/classic/errors.js
|
|
21779
21779
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
21780
21780
|
function _lazyMethod(proto, key, make) {
|
|
21781
21781
|
Object.defineProperty(proto, key, {
|
|
@@ -21821,7 +21821,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
|
|
|
21821
21821
|
Parent: Error
|
|
21822
21822
|
});
|
|
21823
21823
|
|
|
21824
|
-
//
|
|
21824
|
+
// node_modules/zod/v4/classic/parse.js
|
|
21825
21825
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
21826
21826
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
21827
21827
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -21835,7 +21835,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
21835
21835
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
21836
21836
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
21837
21837
|
|
|
21838
|
-
//
|
|
21838
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
21839
21839
|
function _ensureDefaultLocale() {
|
|
21840
21840
|
if (!globalConfig.localeError)
|
|
21841
21841
|
config(en_default());
|
|
@@ -23300,7 +23300,7 @@ function preprocess(fn, schema) {
|
|
|
23300
23300
|
});
|
|
23301
23301
|
}
|
|
23302
23302
|
|
|
23303
|
-
//
|
|
23303
|
+
// node_modules/zod/v4/classic/compat.js
|
|
23304
23304
|
var ZodIssueCode = {
|
|
23305
23305
|
invalid_type: "invalid_type",
|
|
23306
23306
|
too_big: "too_big",
|
|
@@ -23326,7 +23326,7 @@ var ZodFirstPartyTypeKind;
|
|
|
23326
23326
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
23327
23327
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
23328
23328
|
|
|
23329
|
-
//
|
|
23329
|
+
// node_modules/zod/v4/classic/iso.js
|
|
23330
23330
|
var iso_exports = {};
|
|
23331
23331
|
__export(iso_exports, {
|
|
23332
23332
|
ZodISODate: () => ZodISODate,
|
|
@@ -23351,7 +23351,7 @@ function duration2(params) {
|
|
|
23351
23351
|
return _isoDuration(ZodISODuration, params);
|
|
23352
23352
|
}
|
|
23353
23353
|
|
|
23354
|
-
//
|
|
23354
|
+
// node_modules/zod/v4/classic/from-json-schema.js
|
|
23355
23355
|
var z = {
|
|
23356
23356
|
...schemas_exports2,
|
|
23357
23357
|
...checks_exports2,
|
|
@@ -24084,7 +24084,7 @@ function fromJSONSchema(schema, params) {
|
|
|
24084
24084
|
return convertSchema(normalized, ctx);
|
|
24085
24085
|
}
|
|
24086
24086
|
|
|
24087
|
-
//
|
|
24087
|
+
// node_modules/zod/v4/core/visit.js
|
|
24088
24088
|
var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
|
|
24089
24089
|
function visit(schema, fnOrHandlers) {
|
|
24090
24090
|
const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
|
|
@@ -24239,7 +24239,7 @@ function visit(schema, fnOrHandlers) {
|
|
|
24239
24239
|
return run2(schema);
|
|
24240
24240
|
}
|
|
24241
24241
|
|
|
24242
|
-
//
|
|
24242
|
+
// node_modules/zod/v4/classic/deep-partial.js
|
|
24243
24243
|
function deepPartial(schema) {
|
|
24244
24244
|
return visit(schema, {
|
|
24245
24245
|
object: (s) => s.partial(),
|
|
@@ -24251,7 +24251,7 @@ function deepPartial(schema) {
|
|
|
24251
24251
|
});
|
|
24252
24252
|
}
|
|
24253
24253
|
|
|
24254
|
-
//
|
|
24254
|
+
// node_modules/zod/v4/classic/in-out.js
|
|
24255
24255
|
function withChecks(side, checks) {
|
|
24256
24256
|
if (!checks?.length)
|
|
24257
24257
|
return side;
|
|
@@ -24281,7 +24281,7 @@ function output(schema) {
|
|
|
24281
24281
|
});
|
|
24282
24282
|
}
|
|
24283
24283
|
|
|
24284
|
-
//
|
|
24284
|
+
// node_modules/zod/v4/classic/coerce.js
|
|
24285
24285
|
var coerce_exports = {};
|
|
24286
24286
|
__export(coerce_exports, {
|
|
24287
24287
|
bigint: () => bigint3,
|
|
@@ -25081,6 +25081,17 @@ var SOURCES = [
|
|
|
25081
25081
|
{ id: "opencode", label: "OpenCode", command: "opencode", versionArguments: ["--version"], installHint: "npm i -g opencode-ai" },
|
|
25082
25082
|
{ id: "kiro", label: "Kiro CLI", aliases: ["kiro-cli"], command: "kiro-cli", commandAliases: ["kiro"], versionArguments: ["--version"], promptStdin: "omit", restrictedPermission: true },
|
|
25083
25083
|
{ id: "omp", label: "OMP", command: "omp", versionArguments: ["--version"] },
|
|
25084
|
+
// Chinese coding CLIs that serve ACP themselves (acp/acp-launch-specs.ts). Only
|
|
25085
|
+
// the main command is detected: launches use it, never an alias.
|
|
25086
|
+
{ id: "qwen", label: "Qwen Code", aliases: ["qwen-code"], command: "qwen", versionArguments: ["--version"], installHint: "npm i -g @qwen-code/qwen-code" },
|
|
25087
|
+
{ id: "kimi", label: "Kimi Code", aliases: ["kimi-code"], command: "kimi", versionArguments: ["--version"] },
|
|
25088
|
+
{ id: "qoder", label: "Qoder CLI", command: "qodercli", versionArguments: ["--version"] },
|
|
25089
|
+
{ id: "qoder-cn", label: "Qoder CN CLI", aliases: ["qodercn"], command: "qoderclicn", versionArguments: ["--version"], installHint: "npm i -g @qodercn-ai/qoderclicn" },
|
|
25090
|
+
{ id: "codebuddy", label: "CodeBuddy Code", aliases: ["codebuddy-code"], command: "codebuddy", versionArguments: ["--version"], installHint: "npm i -g @tencent-ai/codebuddy-code" },
|
|
25091
|
+
// TRAE CN's own name: `trae-cli` is also installed by the unrelated bytedance/trae-agent.
|
|
25092
|
+
{ id: "trae", label: "TRAE CLI", command: "traecli", versionArguments: ["--version"] },
|
|
25093
|
+
{ id: "mimo", label: "MiMo Code", aliases: ["mimo-code"], command: "mimo", versionArguments: ["--version"] },
|
|
25094
|
+
{ id: "dsh", label: "DeepSeek Harness", aliases: ["deepseek", "deepseek-harness"], command: "dsh", versionArguments: ["--version"] },
|
|
25084
25095
|
{ id: "cursor", label: "Cursor Agent", command: "cursor-agent", commandAliases: ["cursor"] },
|
|
25085
25096
|
{ id: "copilot", label: "GitHub Copilot CLI", command: "copilot" },
|
|
25086
25097
|
{ id: "aider", label: "Aider", command: "aider" },
|
|
@@ -25307,7 +25318,7 @@ function textRows(prefix, text3, maxRows = 40) {
|
|
|
25307
25318
|
|
|
25308
25319
|
// src/acp/acp-launch-specs.ts
|
|
25309
25320
|
import { realpathSync as realpathSync2 } from "node:fs";
|
|
25310
|
-
import { join as
|
|
25321
|
+
import { join as join12 } from "node:path";
|
|
25311
25322
|
|
|
25312
25323
|
// src/providers/cli/codex-catalog.ts
|
|
25313
25324
|
import { spawn as spawn3 } from "node:child_process";
|
|
@@ -25452,38 +25463,41 @@ function codexCatalogArgs() {
|
|
|
25452
25463
|
// src/providers/model-catalog.ts
|
|
25453
25464
|
import { spawn as spawn5 } from "node:child_process";
|
|
25454
25465
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
25455
|
-
import { homedir as
|
|
25456
|
-
import { isAbsolute as isAbsolute2, join as
|
|
25466
|
+
import { homedir as homedir6 } from "node:os";
|
|
25467
|
+
import { isAbsolute as isAbsolute2, join as join9, resolve as resolve3 } from "node:path";
|
|
25457
25468
|
|
|
25458
25469
|
// src/providers/kiro-auth.ts
|
|
25459
25470
|
import { execFile as execFile3 } from "node:child_process";
|
|
25460
|
-
import {
|
|
25471
|
+
import { homedir as homedir5 } from "node:os";
|
|
25472
|
+
import { join as join8 } from "node:path";
|
|
25461
25473
|
import { promisify } from "node:util";
|
|
25462
25474
|
var execFileAsync = promisify(execFile3);
|
|
25463
|
-
|
|
25464
|
-
|
|
25465
|
-
|
|
25466
|
-
|
|
25467
|
-
|
|
25468
|
-
|
|
25475
|
+
var NOT_AUTHENTICATED = "Kiro CLI \u672A\u767B\u5F55\u6216\u65E0\u6CD5\u786E\u8BA4\u767B\u5F55\u72B6\u6001\uFF0C\u8BF7\u5728\u672C\u673A\u767B\u5F55\u540E\u91CD\u8BD5";
|
|
25476
|
+
var knownUnauthenticated = false;
|
|
25477
|
+
async function hasStoredAuthentication(environment) {
|
|
25478
|
+
if (environment.KIRO_API_KEY?.trim()) return true;
|
|
25479
|
+
const database = process.platform === "darwin" ? join8(homedir5(), "Library", "Application Support", "kiro-cli", "data.sqlite3") : process.platform === "win32" ? join8(environment.LOCALAPPDATA || join8(homedir5(), "AppData", "Local"), "Kiro-Cli", "data.sqlite3") : join8(environment.XDG_DATA_HOME || join8(homedir5(), ".local", "share"), "kiro-cli", "data.sqlite3");
|
|
25480
|
+
const sql = "SELECT 1 FROM auth_kv WHERE key IN ('kirocli:odic:token', 'codewhisperer:odic:token', 'kirocli:external-idp:token', 'kirocli:social:token') AND (json_extract(value, '$.expires_at') IS NULL OR julianday(json_extract(value, '$.expires_at')) > julianday('now')) LIMIT 1;";
|
|
25469
25481
|
try {
|
|
25470
|
-
const { stdout } = await execFileAsync(
|
|
25471
|
-
env:
|
|
25472
|
-
|
|
25473
|
-
|
|
25474
|
-
maxBuffer: 64 * 1024,
|
|
25482
|
+
const { stdout } = await execFileAsync("sqlite3", ["-readonly", database, sql], {
|
|
25483
|
+
env: environment,
|
|
25484
|
+
timeout: 3e3,
|
|
25485
|
+
maxBuffer: 1024,
|
|
25475
25486
|
windowsHide: true
|
|
25476
25487
|
});
|
|
25477
|
-
|
|
25478
|
-
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
25479
|
-
const result = value;
|
|
25480
|
-
const account = result.account && typeof result.account === "object" && !Array.isArray(result.account) ? result.account : result;
|
|
25481
|
-
const accountType = account.accountType ?? result.accountType;
|
|
25482
|
-
if (typeof accountType === "string" && accountType.trim() && !/^(?:none|unknown|anonymous|unauthenticated|not[\s_-]*logged[\s_-]*in)$/i.test(accountType.trim())) return;
|
|
25483
|
-
}
|
|
25488
|
+
return stdout.trim() === "1";
|
|
25484
25489
|
} catch {
|
|
25490
|
+
return false;
|
|
25491
|
+
}
|
|
25492
|
+
}
|
|
25493
|
+
async function requireKiroAuthentication(environment, options = {}) {
|
|
25494
|
+
if (knownUnauthenticated && !options.force) throw new Error(NOT_AUTHENTICATED);
|
|
25495
|
+
if (await hasStoredAuthentication(environment ?? process.env)) {
|
|
25496
|
+
knownUnauthenticated = false;
|
|
25497
|
+
return;
|
|
25485
25498
|
}
|
|
25486
|
-
|
|
25499
|
+
knownUnauthenticated = true;
|
|
25500
|
+
throw new Error(NOT_AUTHENTICATED);
|
|
25487
25501
|
}
|
|
25488
25502
|
|
|
25489
25503
|
// src/providers/kiro-models.ts
|
|
@@ -25606,15 +25620,15 @@ function parseClaudeModelCatalog(settings, environment = process.env, fetchedAt
|
|
|
25606
25620
|
if (defaultModel) catalog.default_model = defaultModel;
|
|
25607
25621
|
return catalog;
|
|
25608
25622
|
}
|
|
25609
|
-
var claudeHome = () => process.env.CLAUDE_CONFIG_DIR?.trim() ||
|
|
25610
|
-
var codexHome2 = () => process.env.CODEX_HOME?.trim() ||
|
|
25611
|
-
var geminiHome = () => process.env.GEMINI_CLI_HOME?.trim() ||
|
|
25612
|
-
var grokHome = () => process.env.GROK_HOME?.trim() ||
|
|
25613
|
-
var opencodeHome = () =>
|
|
25614
|
-
var kiroHome = () =>
|
|
25623
|
+
var claudeHome = () => process.env.CLAUDE_CONFIG_DIR?.trim() || join9(homedir6(), ".claude");
|
|
25624
|
+
var codexHome2 = () => process.env.CODEX_HOME?.trim() || join9(homedir6(), ".codex");
|
|
25625
|
+
var geminiHome = () => process.env.GEMINI_CLI_HOME?.trim() || join9(homedir6(), ".gemini");
|
|
25626
|
+
var grokHome = () => process.env.GROK_HOME?.trim() || join9(homedir6(), ".grok");
|
|
25627
|
+
var opencodeHome = () => join9(process.env.XDG_CONFIG_HOME?.trim() || join9(homedir6(), ".config"), "opencode");
|
|
25628
|
+
var kiroHome = () => join9(homedir6(), ".kiro");
|
|
25615
25629
|
async function readClaudeModelCatalog() {
|
|
25616
25630
|
const home = claudeHome();
|
|
25617
|
-
const content = await readFile3(
|
|
25631
|
+
const content = await readFile3(join9(home, "settings.json"), "utf8").catch(() => "");
|
|
25618
25632
|
let settings = {};
|
|
25619
25633
|
if (content) {
|
|
25620
25634
|
try {
|
|
@@ -25676,13 +25690,13 @@ async function readCodexModels(codexHome3, config2) {
|
|
|
25676
25690
|
const configuredModels = parseCodexModels(await readFile3(catalogPath, "utf8").catch(() => ""));
|
|
25677
25691
|
if (configuredModels?.length) return configuredModels;
|
|
25678
25692
|
}
|
|
25679
|
-
const cached3 = parseCodexModels(await readFile3(
|
|
25693
|
+
const cached3 = parseCodexModels(await readFile3(join9(codexHome3, "models_cache.json"), "utf8").catch(() => ""));
|
|
25680
25694
|
if (cached3?.length) return cached3;
|
|
25681
25695
|
return codexModelsFrom(await codexBundledCatalog().catch(() => void 0), { listedOnly: true }) ?? [];
|
|
25682
25696
|
}
|
|
25683
25697
|
async function readCodexModelCatalog() {
|
|
25684
25698
|
const home = codexHome2();
|
|
25685
|
-
const config2 = await readFile3(
|
|
25699
|
+
const config2 = await readFile3(join9(home, "config.toml"), "utf8").catch(() => "");
|
|
25686
25700
|
const models2 = await readCodexModels(home, config2);
|
|
25687
25701
|
const defaultModel = configValue(config2, "model");
|
|
25688
25702
|
const defaultReasoningEffort = configValue(config2, "model_reasoning_effort");
|
|
@@ -25775,7 +25789,7 @@ function withKnownEfforts(base, known) {
|
|
|
25775
25789
|
async function readKiroModelCatalog(options = {}) {
|
|
25776
25790
|
const environment = mergeShellProxyEnvironment(await hydrateShellPath(), providerEnvironment());
|
|
25777
25791
|
const kiro = requireCliSpec("kiro");
|
|
25778
|
-
await requireKiroAuthentication(environment);
|
|
25792
|
+
await requireKiroAuthentication(environment, { force: options.force === true });
|
|
25779
25793
|
const listLaunch = launchCli({ spec: kiro, args: ["chat", "--list-models", "--format", "json"], env: environment });
|
|
25780
25794
|
const output2 = await runModelListCommand(listLaunch.executable, listLaunch.args, "kiro-cli", environment);
|
|
25781
25795
|
let listed;
|
|
@@ -25796,7 +25810,7 @@ async function readKiroModelCatalog(options = {}) {
|
|
|
25796
25810
|
if (current) return known.catalog;
|
|
25797
25811
|
try {
|
|
25798
25812
|
const launch = launchCli({ spec: kiro, args: ["acp", "--trust-tools="], env: environment });
|
|
25799
|
-
const catalog = await readKiroNativeModels(launch,
|
|
25813
|
+
const catalog = await readKiroNativeModels(launch, homedir6(), { catalog: base });
|
|
25800
25814
|
kiroEfforts = { signature, readAt: Date.now(), catalog };
|
|
25801
25815
|
return catalog;
|
|
25802
25816
|
} catch {
|
|
@@ -25805,7 +25819,7 @@ async function readKiroModelCatalog(options = {}) {
|
|
|
25805
25819
|
};
|
|
25806
25820
|
const [payload, content] = await Promise.all([
|
|
25807
25821
|
readEfforts(),
|
|
25808
|
-
readFile3(
|
|
25822
|
+
readFile3(join9(kiroHome(), "settings", "cli.json"), "utf8").catch(() => "{}")
|
|
25809
25823
|
]);
|
|
25810
25824
|
let settings;
|
|
25811
25825
|
try {
|
|
@@ -25862,7 +25876,7 @@ function geminiModelsUrl(baseUrl) {
|
|
|
25862
25876
|
}
|
|
25863
25877
|
async function readGeminiModelCatalog() {
|
|
25864
25878
|
const fileEnvironment = parseEnvFile(
|
|
25865
|
-
await readFile3(
|
|
25879
|
+
await readFile3(join9(geminiHome(), ".env"), "utf8").catch(() => "")
|
|
25866
25880
|
);
|
|
25867
25881
|
const environment = { ...fileEnvironment, ...process.env };
|
|
25868
25882
|
const baseUrl = environment.GOOGLE_GEMINI_BASE_URL?.trim();
|
|
@@ -25907,7 +25921,7 @@ function parseGrokModelCatalog(output2, config2 = "", fetchedAt = (/* @__PURE__
|
|
|
25907
25921
|
return catalog;
|
|
25908
25922
|
}
|
|
25909
25923
|
async function readGrokModelCatalog() {
|
|
25910
|
-
const config2 = await readFile3(
|
|
25924
|
+
const config2 = await readFile3(join9(grokHome(), "config.toml"), "utf8").catch(() => "");
|
|
25911
25925
|
const output2 = await runModelListCommand(cliExecutable("grok"), ["models"], "grok");
|
|
25912
25926
|
const catalog = parseGrokModelCatalog(output2, config2);
|
|
25913
25927
|
if (catalog.models.length === 0) throw new Error("Grok \u672C\u673A\u672A\u8FD4\u56DE\u53EF\u7528\u6A21\u578B");
|
|
@@ -25926,35 +25940,38 @@ function parseOpencodeModelCatalog(output2, config2 = "", fetchedAt = (/* @__PUR
|
|
|
25926
25940
|
return catalog;
|
|
25927
25941
|
}
|
|
25928
25942
|
async function readOpencodeModelCatalog() {
|
|
25929
|
-
const config2 = await readFile3(
|
|
25943
|
+
const config2 = await readFile3(join9(opencodeHome(), "opencode.json"), "utf8").catch(() => "") || await readFile3(join9(opencodeHome(), "opencode.jsonc"), "utf8").catch(() => "");
|
|
25930
25944
|
const output2 = await runModelListCommand(cliExecutable("opencode"), ["models"], "opencode");
|
|
25931
25945
|
const catalog = parseOpencodeModelCatalog(output2, config2);
|
|
25932
25946
|
if (catalog.models.length === 0) throw new Error("OpenCode \u672C\u673A\u672A\u8FD4\u56DE\u53EF\u7528\u6A21\u578B");
|
|
25933
25947
|
return catalog;
|
|
25934
25948
|
}
|
|
25935
25949
|
var TEN_MINUTES = 10 * 60 * 1e3;
|
|
25936
|
-
var TWO_MINUTES = 2 * 60 * 1e3;
|
|
25937
25950
|
var MODEL_SOURCES = {
|
|
25938
|
-
claude: { read: readClaudeModelCatalog, watchFiles: () => [
|
|
25951
|
+
claude: { read: readClaudeModelCatalog, watchFiles: () => [join9(claudeHome(), "settings.json")] },
|
|
25939
25952
|
codex: {
|
|
25940
25953
|
read: readCodexModelCatalog,
|
|
25941
25954
|
watchFiles: () => {
|
|
25942
25955
|
const home = codexHome2();
|
|
25943
|
-
return [
|
|
25956
|
+
return [join9(home, "config.toml"), join9(home, "models_cache.json")];
|
|
25944
25957
|
},
|
|
25945
25958
|
// model_catalog_json may point anywhere; a periodic re-read covers it.
|
|
25946
25959
|
refreshEveryMs: TEN_MINUTES
|
|
25947
25960
|
},
|
|
25948
|
-
gemini: { read: readGeminiModelCatalog, watchFiles: () => [
|
|
25949
|
-
grok: { read: readGrokModelCatalog, watchFiles: () => [
|
|
25950
|
-
kiro: { read: readKiroModelCatalog, watchFiles: () => [
|
|
25961
|
+
gemini: { read: readGeminiModelCatalog, watchFiles: () => [join9(geminiHome(), ".env")], refreshEveryMs: TEN_MINUTES },
|
|
25962
|
+
grok: { read: readGrokModelCatalog, watchFiles: () => [join9(grokHome(), "config.toml")], refreshEveryMs: TEN_MINUTES },
|
|
25963
|
+
kiro: { read: readKiroModelCatalog, watchFiles: () => [join9(kiroHome(), "settings", "cli.json")] },
|
|
25951
25964
|
opencode: {
|
|
25952
25965
|
read: readOpencodeModelCatalog,
|
|
25953
|
-
watchFiles: () => [
|
|
25966
|
+
watchFiles: () => [join9(opencodeHome(), "opencode.json"), join9(opencodeHome(), "opencode.jsonc")],
|
|
25954
25967
|
refreshEveryMs: TEN_MINUTES
|
|
25955
25968
|
}
|
|
25956
25969
|
};
|
|
25957
25970
|
|
|
25971
|
+
// src/acp/acp-dialects/acp-dialect.ts
|
|
25972
|
+
var GENERIC_ACP_DIALECT = {};
|
|
25973
|
+
var record2 = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
25974
|
+
|
|
25958
25975
|
// src/acp/acp-dialects/gemini-dialect.ts
|
|
25959
25976
|
var GEMINI_FAILURE_RULES = [
|
|
25960
25977
|
{ kind: "sessionMissing", pattern: /session[^\n]{0,60}(?:not found|does not exist)|no session found|invalid session/i },
|
|
@@ -25962,9 +25979,6 @@ var GEMINI_FAILURE_RULES = [
|
|
|
25962
25979
|
];
|
|
25963
25980
|
var GEMINI_ACP_DIALECT = { failureRules: GEMINI_FAILURE_RULES };
|
|
25964
25981
|
|
|
25965
|
-
// src/acp/acp-dialects/acp-dialect.ts
|
|
25966
|
-
var record2 = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
25967
|
-
|
|
25968
25982
|
// src/acp/acp-dialects/grok-dialect.ts
|
|
25969
25983
|
function modelEfforts(model) {
|
|
25970
25984
|
const meta3 = record2(model._meta);
|
|
@@ -26064,11 +26078,11 @@ function classifySpawnError(error62, context) {
|
|
|
26064
26078
|
|
|
26065
26079
|
// src/providers/cli/kiro-session-log.ts
|
|
26066
26080
|
import { open as open2, readdir, readFile as readFile4, stat as stat2 } from "node:fs/promises";
|
|
26067
|
-
import { homedir as
|
|
26068
|
-
import { join as
|
|
26081
|
+
import { homedir as homedir7 } from "node:os";
|
|
26082
|
+
import { join as join10 } from "node:path";
|
|
26069
26083
|
var SHELL_TOOLS = /* @__PURE__ */ new Set(["shell", "execute_bash", "bash"]);
|
|
26070
26084
|
function kiroSessionsDirectory() {
|
|
26071
|
-
return process.env.TOC_OCRA_KIRO_SESSIONS_DIR ||
|
|
26085
|
+
return process.env.TOC_OCRA_KIRO_SESSIONS_DIR || join10(homedir7(), ".kiro", "sessions", "cli");
|
|
26072
26086
|
}
|
|
26073
26087
|
var KiroSessionLog = class {
|
|
26074
26088
|
constructor(options) {
|
|
@@ -26087,7 +26101,7 @@ var KiroSessionLog = class {
|
|
|
26087
26101
|
/** Called before the CLI starts: a resumed log is followed from its current end. */
|
|
26088
26102
|
async begin() {
|
|
26089
26103
|
if (!this.options.sessionId) return;
|
|
26090
|
-
this.path =
|
|
26104
|
+
this.path = join10(this.directory, `${this.options.sessionId}.jsonl`);
|
|
26091
26105
|
this.offset = await stat2(this.path).then((info) => info.size, () => 0);
|
|
26092
26106
|
}
|
|
26093
26107
|
/**
|
|
@@ -26100,11 +26114,11 @@ var KiroSessionLog = class {
|
|
|
26100
26114
|
const found = [];
|
|
26101
26115
|
for (const name of names) {
|
|
26102
26116
|
if (!name.endsWith(".json")) continue;
|
|
26103
|
-
const meta3 = await readFile4(
|
|
26117
|
+
const meta3 = await readFile4(join10(this.directory, name), "utf8").then((text3) => JSON.parse(text3), () => void 0);
|
|
26104
26118
|
const created = meta3?.created_at ? Date.parse(meta3.created_at) : NaN;
|
|
26105
26119
|
if (meta3?.cwd && sameFolder(meta3.cwd, this.options.workdir) && created >= this.options.startedAt - 2e3) found.push(name.slice(0, -5));
|
|
26106
26120
|
}
|
|
26107
|
-
if (found.length === 1) this.path =
|
|
26121
|
+
if (found.length === 1) this.path = join10(this.directory, `${found[0]}.jsonl`);
|
|
26108
26122
|
}
|
|
26109
26123
|
/** Reads entries appended since the last call. */
|
|
26110
26124
|
async refresh() {
|
|
@@ -26475,7 +26489,7 @@ import { spawn as spawn6 } from "node:child_process";
|
|
|
26475
26489
|
import { createHash } from "node:crypto";
|
|
26476
26490
|
import { existsSync as existsSync4, readFileSync as readFileSync4 } from "node:fs";
|
|
26477
26491
|
import { copyFile, mkdir as mkdir4, rename as rename4, rm as rm2, writeFile as writeFile4 } from "node:fs/promises";
|
|
26478
|
-
import { dirname as dirname5, join as
|
|
26492
|
+
import { dirname as dirname5, join as join11, resolve as resolve4 } from "node:path";
|
|
26479
26493
|
import { fileURLToPath } from "node:url";
|
|
26480
26494
|
var AcpRuntimeUnavailable = class extends Error {
|
|
26481
26495
|
constructor(message) {
|
|
@@ -26508,21 +26522,21 @@ function agentPackageVersion() {
|
|
|
26508
26522
|
const directory = agentRoot();
|
|
26509
26523
|
if (!directory) return "0";
|
|
26510
26524
|
try {
|
|
26511
|
-
return JSON.parse(readFileSync4(
|
|
26525
|
+
return JSON.parse(readFileSync4(join11(directory, "package.json"), "utf8")).version ?? "0";
|
|
26512
26526
|
} catch {
|
|
26513
26527
|
return "0";
|
|
26514
26528
|
}
|
|
26515
26529
|
}
|
|
26516
26530
|
function vendoredAdapter(name) {
|
|
26517
26531
|
const directory = agentRoot();
|
|
26518
|
-
const entry = directory ?
|
|
26532
|
+
const entry = directory ? join11(directory, "assets", "acp", name, "index.mjs") : void 0;
|
|
26519
26533
|
return entry && existsSync4(entry) ? entry : void 0;
|
|
26520
26534
|
}
|
|
26521
26535
|
var installs = /* @__PURE__ */ new Map();
|
|
26522
26536
|
function ensureClaudeRuntime(dataDir2) {
|
|
26523
26537
|
const entry = vendoredAdapter("claude");
|
|
26524
26538
|
if (!entry) return Promise.reject(new AcpRuntimeUnavailable("\u8FD9\u4E2A\u7248\u672C\u7684\u8BBE\u5907\u4EE3\u7406\u6CA1\u6709\u9644\u5E26 Claude ACP \u9002\u914D\u5668"));
|
|
26525
|
-
const manifestPath =
|
|
26539
|
+
const manifestPath = join11(dirname5(entry), "runtime.json");
|
|
26526
26540
|
let manifest;
|
|
26527
26541
|
try {
|
|
26528
26542
|
manifest = JSON.parse(readFileSync4(manifestPath, "utf8"));
|
|
@@ -26530,7 +26544,7 @@ function ensureClaudeRuntime(dataDir2) {
|
|
|
26530
26544
|
return Promise.reject(new AcpRuntimeUnavailable("Claude ACP \u9002\u914D\u5668\u7F3A\u5C11 runtime.json"));
|
|
26531
26545
|
}
|
|
26532
26546
|
const hash2 = createHash("sha256").update(readFileSync4(entry)).digest("hex").slice(0, 12);
|
|
26533
|
-
const directory =
|
|
26547
|
+
const directory = join11(dataDir2, "acp-runtimes", `claude-${manifest.adapterVersion}-sdk-${manifest.sdk.version}-${hash2}`);
|
|
26534
26548
|
const existing = installs.get(directory);
|
|
26535
26549
|
if (existing) return existing;
|
|
26536
26550
|
const install = installClaudeRuntime(directory, entry, manifest).catch((error62) => {
|
|
@@ -26541,19 +26555,19 @@ function ensureClaudeRuntime(dataDir2) {
|
|
|
26541
26555
|
return install;
|
|
26542
26556
|
}
|
|
26543
26557
|
async function installClaudeRuntime(directory, entry, manifest) {
|
|
26544
|
-
const sdkPackage =
|
|
26545
|
-
if (existsSync4(sdkPackage) && existsSync4(
|
|
26558
|
+
const sdkPackage = join11(directory, "node_modules", ...manifest.sdk.name.split("/"), "package.json");
|
|
26559
|
+
if (existsSync4(sdkPackage) && existsSync4(join11(directory, "index.mjs"))) return directory;
|
|
26546
26560
|
const temporary = `${directory}.tmp-${process.pid}-${Date.now()}`;
|
|
26547
26561
|
await mkdir4(temporary, { recursive: true, mode: 448 });
|
|
26548
26562
|
try {
|
|
26549
|
-
await writeFile4(
|
|
26563
|
+
await writeFile4(join11(temporary, "package.json"), JSON.stringify({
|
|
26550
26564
|
name: "toc-ocra-claude-acp-runtime",
|
|
26551
26565
|
private: true,
|
|
26552
26566
|
type: "module",
|
|
26553
26567
|
dependencies: { [manifest.sdk.name]: manifest.sdk.version }
|
|
26554
26568
|
}, null, 2));
|
|
26555
26569
|
await runNpm(["install", "--omit=optional", "--no-audit", "--no-fund", "--no-package-lock", "--loglevel=error"], temporary);
|
|
26556
|
-
await copyFile(entry,
|
|
26570
|
+
await copyFile(entry, join11(temporary, "index.mjs"));
|
|
26557
26571
|
await rm2(directory, { recursive: true, force: true });
|
|
26558
26572
|
await rename4(temporary, directory);
|
|
26559
26573
|
} catch (error62) {
|
|
@@ -26645,6 +26659,32 @@ var OMP_LAUNCH_SPEC = {
|
|
|
26645
26659
|
// Its CLI listing includes disabled models, and it cannot delete sessions: list in a disposable session folder.
|
|
26646
26660
|
modelDiscovery: { kind: "session", sessionFolderArgs: (folder) => ["--session-dir", folder] }
|
|
26647
26661
|
};
|
|
26662
|
+
function plainAcpRow(agent, args, rest = {}) {
|
|
26663
|
+
return { agent, headless: "acp", args: () => [...args], dialect: GENERIC_ACP_DIALECT, modelDiscovery: { kind: "session" }, ...rest };
|
|
26664
|
+
}
|
|
26665
|
+
var QWEN_LAUNCH_SPEC = {
|
|
26666
|
+
agent: "qwen",
|
|
26667
|
+
headless: "acp",
|
|
26668
|
+
args: ({ access }) => ["--acp", "--approval-mode", access === "bypassPermissions" ? "yolo" : "default"],
|
|
26669
|
+
dialect: GEMINI_ACP_DIALECT,
|
|
26670
|
+
modelDiscovery: { kind: "session" }
|
|
26671
|
+
};
|
|
26672
|
+
var KIMI_LAUNCH_SPEC = plainAcpRow("kimi", ["acp"], {
|
|
26673
|
+
dialect: { failureRules: [{ kind: "notSignedIn", pattern: /LLM not set|send "?\/login/i }] }
|
|
26674
|
+
});
|
|
26675
|
+
var QODER_LAUNCH_SPEC = plainAcpRow("qoder", ["--acp"]);
|
|
26676
|
+
var QODER_CN_LAUNCH_SPEC = plainAcpRow("qoder-cn", ["--acp"]);
|
|
26677
|
+
var CODEBUDDY_LAUNCH_SPEC = plainAcpRow("codebuddy", ["--acp"]);
|
|
26678
|
+
var TRAE_LAUNCH_SPEC = plainAcpRow("trae", ["acp", "serve"]);
|
|
26679
|
+
var MIMO_LAUNCH_SPEC = plainAcpRow("mimo", ["acp"], {
|
|
26680
|
+
env: { MIMOCODE_CLIENT: "acp", MIMOCODE_ENABLE_QUESTION_TOOL: "false" },
|
|
26681
|
+
dialect: OPENCODE_ACP_DIALECT
|
|
26682
|
+
});
|
|
26683
|
+
var DSH_LAUNCH_SPEC = plainAcpRow("dsh", ["--profile", "acp"], {
|
|
26684
|
+
// Sessions open without a key; the first prompt then fails naming DEEPSEEK_API_KEY.
|
|
26685
|
+
dialect: { failureRules: [{ kind: "notSignedIn", pattern: /no API key for provider route/i }] },
|
|
26686
|
+
modelDiscovery: { kind: "unavailable", reason: "DeepSeek Harness \u7684 ACP \u4E0D\u80FD\u5220\u9664\u4F1A\u8BDD\uFF0C\u4E0D\u8BFB\u53D6\u6A21\u578B\u5217\u8868" }
|
|
26687
|
+
});
|
|
26648
26688
|
function installedCli(spec) {
|
|
26649
26689
|
const override = process.env[spec.overrideEnv]?.trim();
|
|
26650
26690
|
const found = override || findCliCommand(cliCommand(spec), { pathEnv: providerEnvironment().PATH ?? null });
|
|
@@ -26668,7 +26708,7 @@ var CLAUDE_LAUNCH_SPEC = {
|
|
|
26668
26708
|
const executable = installedCli(claude);
|
|
26669
26709
|
const runtime = await ensureClaudeRuntime(dataDir2);
|
|
26670
26710
|
return {
|
|
26671
|
-
launch: { executable: process.execPath, args: [
|
|
26711
|
+
launch: { executable: process.execPath, args: [join12(runtime, "index.mjs")], env: { ...providerEnvironment(), CLAUDE_CODE_EXECUTABLE: executable }, cwd: workdir },
|
|
26672
26712
|
fingerprint: `claude:${runtime}:${executable}`
|
|
26673
26713
|
};
|
|
26674
26714
|
},
|
|
@@ -26716,6 +26756,14 @@ var ACP_LAUNCH_SPECS = [
|
|
|
26716
26756
|
GROK_LAUNCH_SPEC,
|
|
26717
26757
|
OPENCODE_LAUNCH_SPEC,
|
|
26718
26758
|
OMP_LAUNCH_SPEC,
|
|
26759
|
+
QWEN_LAUNCH_SPEC,
|
|
26760
|
+
KIMI_LAUNCH_SPEC,
|
|
26761
|
+
QODER_LAUNCH_SPEC,
|
|
26762
|
+
QODER_CN_LAUNCH_SPEC,
|
|
26763
|
+
CODEBUDDY_LAUNCH_SPEC,
|
|
26764
|
+
TRAE_LAUNCH_SPEC,
|
|
26765
|
+
MIMO_LAUNCH_SPEC,
|
|
26766
|
+
DSH_LAUNCH_SPEC,
|
|
26719
26767
|
CLAUDE_LAUNCH_SPEC,
|
|
26720
26768
|
CODEX_LAUNCH_SPEC
|
|
26721
26769
|
];
|
|
@@ -26783,8 +26831,8 @@ var ACP_CHAT_IDS = [...ACP_CHAT.keys()];
|
|
|
26783
26831
|
|
|
26784
26832
|
// src/acp/acp-model-catalog-probe.ts
|
|
26785
26833
|
import { mkdtemp, rm as rm3 } from "node:fs/promises";
|
|
26786
|
-
import { tmpdir
|
|
26787
|
-
import { join as
|
|
26834
|
+
import { tmpdir } from "node:os";
|
|
26835
|
+
import { join as join13 } from "node:path";
|
|
26788
26836
|
|
|
26789
26837
|
// src/acp/acp-options.ts
|
|
26790
26838
|
var text = (value) => typeof value === "string" && value ? value : void 0;
|
|
@@ -27367,9 +27415,9 @@ async function readSessionModels(row, clientVersion = "1") {
|
|
|
27367
27415
|
const discovery = row.modelDiscovery;
|
|
27368
27416
|
if (discovery.kind !== "session") throw new Error(`${row.agent} does not list its models in a session`);
|
|
27369
27417
|
const cli = requireCliSpec(row.agent);
|
|
27370
|
-
const folder = await mkdtemp(
|
|
27418
|
+
const folder = await mkdtemp(join13(tmpdir(), `toc-ocra-acp-models-${row.agent}-`));
|
|
27371
27419
|
try {
|
|
27372
|
-
const folderArgs = discovery.sessionFolderArgs?.(
|
|
27420
|
+
const folderArgs = discovery.sessionFolderArgs?.(join13(folder, "sessions")) ?? [];
|
|
27373
27421
|
const args = [...row.args({ access: "read-only", model: "", reasoningEffort: "" }), ...folderArgs];
|
|
27374
27422
|
const launch = launchCli({ spec: cli, args, env: { ...providerEnvironment(), ...row.env } });
|
|
27375
27423
|
const connection = await AcpConnection.open({ executable: launch.executable, args: launch.args, env: launch.env, cwd: folder }, {
|
|
@@ -27380,7 +27428,7 @@ async function readSessionModels(row, clientVersion = "1") {
|
|
|
27380
27428
|
stderr: () => void 0
|
|
27381
27429
|
}, clientVersion);
|
|
27382
27430
|
try {
|
|
27383
|
-
if (!connection.deleteSession && !folderArgs.length) throw new Error(`${cli.label} \u4E0D\u80FD\u5220\u9664\u4F1A\u8BDD\uFF0C\
|
|
27431
|
+
if (!connection.deleteSession && !folderArgs.length) throw new Error(`${cli.label} \u4E0D\u80FD\u5220\u9664\u4F1A\u8BDD\uFF0C\u4E0D\u8BFB\u53D6\u6A21\u578B\u5217\u8868\uFF0C\u4F7F\u7528 CLI \u81EA\u5DF1\u7684\u9ED8\u8BA4\u6A21\u578B`);
|
|
27384
27432
|
const state = await connection.newSession(folder);
|
|
27385
27433
|
if (connection.deleteSession) await connection.removeSession(state.sessionId).catch(() => void 0);
|
|
27386
27434
|
const listed = sessionModels(state, row.dialect);
|
|
@@ -27999,13 +28047,13 @@ function isWriterConflict(message) {
|
|
|
27999
28047
|
|
|
28000
28048
|
// src/providers/cli/claude.ts
|
|
28001
28049
|
import { readdirSync as readdirSync2, readFileSync as readFileSync5 } from "node:fs";
|
|
28002
|
-
import { homedir as
|
|
28003
|
-
import { join as
|
|
28050
|
+
import { homedir as homedir8 } from "node:os";
|
|
28051
|
+
import { join as join14 } from "node:path";
|
|
28004
28052
|
var CLAUDE = requireCliSpec("claude");
|
|
28005
28053
|
function claudeProjectRoots() {
|
|
28006
28054
|
const configured = process.env.CLAUDE_CONFIG_DIR;
|
|
28007
|
-
const dirs = configured ? configured.split(process.platform === "win32" ? ";" : ":").map((entry) => entry.trim()).filter(Boolean) : [
|
|
28008
|
-
return dirs.map((dir) =>
|
|
28055
|
+
const dirs = configured ? configured.split(process.platform === "win32" ? ";" : ":").map((entry) => entry.trim()).filter(Boolean) : [join14(homedir8(), ".claude")];
|
|
28056
|
+
return dirs.map((dir) => join14(dir, "projects"));
|
|
28009
28057
|
}
|
|
28010
28058
|
function claudeTranscriptExists(sessionId) {
|
|
28011
28059
|
return claudeTranscriptPath(sessionId) !== void 0;
|
|
@@ -28021,7 +28069,7 @@ function claudeTranscriptPath(sessionId) {
|
|
|
28021
28069
|
}
|
|
28022
28070
|
for (const project of projects) {
|
|
28023
28071
|
try {
|
|
28024
|
-
if (readdirSync2(
|
|
28072
|
+
if (readdirSync2(join14(root2, project)).includes(file2)) return join14(root2, project, file2);
|
|
28025
28073
|
} catch {
|
|
28026
28074
|
}
|
|
28027
28075
|
}
|
|
@@ -28065,7 +28113,7 @@ var claudeProvider = {
|
|
|
28065
28113
|
settings.disableAllHooks = true;
|
|
28066
28114
|
args.push("--restricted", "--permission-mode", "plan", "--tools", "Read,Glob,Grep", "--strict-mcp-config", "--mcp-config", '{"mcpServers":{}}', "--disallowedTools", "mcp__*");
|
|
28067
28115
|
try {
|
|
28068
|
-
const userSettings = JSON.parse(readFileSync5(
|
|
28116
|
+
const userSettings = JSON.parse(readFileSync5(join14(homedir8(), ".claude", "settings.json"), "utf8"));
|
|
28069
28117
|
for (const [key, value] of Object.entries(userSettings.env ?? {})) {
|
|
28070
28118
|
if (/^ANTHROPIC_[A-Z0-9_]+$/.test(key) && typeof value === "string" && env[key] === void 0) env[key] = value;
|
|
28071
28119
|
}
|
|
@@ -28974,7 +29022,7 @@ async function readCodexQuotaWindows() {
|
|
|
28974
29022
|
|
|
28975
29023
|
// src/providers/kiro-quota.ts
|
|
28976
29024
|
import { execFile as execFile5 } from "node:child_process";
|
|
28977
|
-
import { tmpdir as
|
|
29025
|
+
import { tmpdir as tmpdir2 } from "node:os";
|
|
28978
29026
|
import { promisify as promisify3, stripVTControlCharacters } from "node:util";
|
|
28979
29027
|
var execFileAsync3 = promisify3(execFile5);
|
|
28980
29028
|
var amount = (value) => Number(value.replace(/,/g, ""));
|
|
@@ -29036,7 +29084,7 @@ async function readKiroQuotaWindows() {
|
|
|
29036
29084
|
const launch = launchCli({ spec: requireCliSpec("kiro"), args: ["chat", "--no-interactive", "/usage"] });
|
|
29037
29085
|
await requireKiroAuthentication(launch.env);
|
|
29038
29086
|
try {
|
|
29039
|
-
const { stdout, stderr } = await execFileAsync3(launch.executable, launch.args, { env: launch.env, cwd:
|
|
29087
|
+
const { stdout, stderr } = await execFileAsync3(launch.executable, launch.args, { env: launch.env, cwd: tmpdir2(), timeout: 3e4, maxBuffer: 1024 * 1024, windowsHide: true });
|
|
29040
29088
|
return parseKiroQuota(`${stdout}
|
|
29041
29089
|
${stderr}`);
|
|
29042
29090
|
} catch (error62) {
|
|
@@ -29233,13 +29281,13 @@ var cliDetection = new CliDetectionService();
|
|
|
29233
29281
|
|
|
29234
29282
|
// src/smoke/cli-smoke.ts
|
|
29235
29283
|
import { mkdtemp as mkdtemp2, realpath as realpath3, rm as rm5 } from "node:fs/promises";
|
|
29236
|
-
import { tmpdir as
|
|
29237
|
-
import { join as
|
|
29284
|
+
import { tmpdir as tmpdir3 } from "node:os";
|
|
29285
|
+
import { join as join19 } from "node:path";
|
|
29238
29286
|
|
|
29239
29287
|
// src/runs/run-supervisor.ts
|
|
29240
29288
|
import { spawn as spawn11 } from "node:child_process";
|
|
29241
29289
|
import { mkdir as mkdir7, realpath as realpath2, stat as stat5, writeFile as writeFile7 } from "node:fs/promises";
|
|
29242
|
-
import { basename as basename2, isAbsolute as isAbsolute4, join as
|
|
29290
|
+
import { basename as basename2, isAbsolute as isAbsolute4, join as join18, relative as relative2, resolve as resolve5 } from "node:path";
|
|
29243
29291
|
import { createInterface as createInterface6 } from "node:readline";
|
|
29244
29292
|
|
|
29245
29293
|
// src/providers/chat/index.ts
|
|
@@ -29608,19 +29656,19 @@ async function forkCodexThread(options) {
|
|
|
29608
29656
|
|
|
29609
29657
|
// src/runs/run-recorder.ts
|
|
29610
29658
|
import { appendFileSync, mkdirSync as mkdirSync2 } from "node:fs";
|
|
29611
|
-
import { homedir as
|
|
29612
|
-
import { join as
|
|
29659
|
+
import { homedir as homedir9 } from "node:os";
|
|
29660
|
+
import { join as join15 } from "node:path";
|
|
29613
29661
|
var RunRecorder = class _RunRecorder {
|
|
29614
29662
|
constructor(path) {
|
|
29615
29663
|
this.path = path;
|
|
29616
29664
|
}
|
|
29617
29665
|
path;
|
|
29618
|
-
home =
|
|
29666
|
+
home = homedir9();
|
|
29619
29667
|
static fromEnvironment(runId, meta3) {
|
|
29620
29668
|
const directory = process.env.TOC_OCRA_RECORD_DIR?.trim();
|
|
29621
29669
|
if (!directory) return void 0;
|
|
29622
29670
|
mkdirSync2(directory, { recursive: true });
|
|
29623
|
-
const recorder = new _RunRecorder(
|
|
29671
|
+
const recorder = new _RunRecorder(join15(directory, `${String(meta3.agent ?? "cli")}-${runId}.jsonl`));
|
|
29624
29672
|
recorder.write({ meta: meta3 });
|
|
29625
29673
|
return recorder;
|
|
29626
29674
|
}
|
|
@@ -29636,7 +29684,7 @@ var RunRecorder = class _RunRecorder {
|
|
|
29636
29684
|
|
|
29637
29685
|
// src/runs/run-transcript.ts
|
|
29638
29686
|
import { chmod as chmod4, mkdir as mkdir5, readdir as readdir2, readFile as readFile5, rename as rename5, stat as stat3, unlink, writeFile as writeFile5 } from "node:fs/promises";
|
|
29639
|
-
import { join as
|
|
29687
|
+
import { join as join16 } from "node:path";
|
|
29640
29688
|
var MAX_TRANSCRIPT_ITEMS = 5e3;
|
|
29641
29689
|
var MAX_TRANSCRIPT_TEXT = 2e5;
|
|
29642
29690
|
var MAX_TRANSCRIPT_LINES = 2e4;
|
|
@@ -29901,7 +29949,7 @@ function transcriptFileName(runId) {
|
|
|
29901
29949
|
var TranscriptStore = class {
|
|
29902
29950
|
constructor(dataDir2, logger, env = process.env) {
|
|
29903
29951
|
this.logger = logger;
|
|
29904
|
-
this.directory = dataDir2 ?
|
|
29952
|
+
this.directory = dataDir2 ? join16(dataDir2, "transcripts") : "";
|
|
29905
29953
|
this.enabled = Boolean(dataDir2) && transcriptsOnDisk(env);
|
|
29906
29954
|
}
|
|
29907
29955
|
logger;
|
|
@@ -29956,7 +30004,7 @@ var TranscriptStore = class {
|
|
|
29956
30004
|
await this.writes.get(runId);
|
|
29957
30005
|
let text3;
|
|
29958
30006
|
try {
|
|
29959
|
-
text3 = await readFile5(
|
|
30007
|
+
text3 = await readFile5(join16(this.directory, name), "utf8");
|
|
29960
30008
|
} catch (error62) {
|
|
29961
30009
|
if (errorCode(error62) !== "ENOENT") this.logger.warn("run-transcript-read-failed", { runId, error: errorMessage(error62) });
|
|
29962
30010
|
return void 0;
|
|
@@ -30021,7 +30069,7 @@ var TranscriptStore = class {
|
|
|
30021
30069
|
transcript.dirty = false;
|
|
30022
30070
|
const body = JSON.stringify(transcript.toFile());
|
|
30023
30071
|
await this.ensureDirectory();
|
|
30024
|
-
const file2 =
|
|
30072
|
+
const file2 = join16(this.directory, name);
|
|
30025
30073
|
const temporary = `${file2}.${process.pid}.tmp`;
|
|
30026
30074
|
await writeFile5(temporary, body, { mode: 384 });
|
|
30027
30075
|
await rename5(temporary, file2);
|
|
@@ -30058,7 +30106,7 @@ var TranscriptStore = class {
|
|
|
30058
30106
|
const now = Date.now();
|
|
30059
30107
|
const files = [];
|
|
30060
30108
|
for (const name of names) {
|
|
30061
|
-
const path =
|
|
30109
|
+
const path = join16(this.directory, name);
|
|
30062
30110
|
if (name.endsWith(".tmp")) {
|
|
30063
30111
|
const info2 = await stat3(path).catch(() => void 0);
|
|
30064
30112
|
if (info2?.isFile() && now - info2.mtimeMs > STALE_TEMPORARY_MS) await unlink(path).catch(() => void 0);
|
|
@@ -30108,7 +30156,7 @@ function errorMessage(error62) {
|
|
|
30108
30156
|
import { createHash as createHash2, randomUUID as randomUUID2 } from "node:crypto";
|
|
30109
30157
|
import { constants as constants2 } from "node:fs";
|
|
30110
30158
|
import { lstat, mkdir as mkdir6, open as open3, realpath, rename as rename6, rm as rm4, writeFile as writeFile6 } from "node:fs/promises";
|
|
30111
|
-
import { basename, isAbsolute as isAbsolute3, join as
|
|
30159
|
+
import { basename, isAbsolute as isAbsolute3, join as join17, relative } from "node:path";
|
|
30112
30160
|
function within(root2, path) {
|
|
30113
30161
|
const segment = relative(root2, path);
|
|
30114
30162
|
return segment === "" || !segment.startsWith("..") && !isAbsolute3(segment);
|
|
@@ -30116,7 +30164,7 @@ function within(root2, path) {
|
|
|
30116
30164
|
async function attachmentDirectory(workdir, messageId) {
|
|
30117
30165
|
let directory = workdir;
|
|
30118
30166
|
for (const segment of [".echo", "attachments", `message-${encodeURIComponent(messageId).slice(0, 180)}`]) {
|
|
30119
|
-
directory =
|
|
30167
|
+
directory = join17(directory, segment);
|
|
30120
30168
|
await mkdir6(directory, { mode: 448 }).catch((error62) => {
|
|
30121
30169
|
if (error62.code !== "EEXIST") throw error62;
|
|
30122
30170
|
});
|
|
@@ -30124,7 +30172,7 @@ async function attachmentDirectory(workdir, messageId) {
|
|
|
30124
30172
|
if (metadata.isSymbolicLink() || !metadata.isDirectory() || !within(workdir, await realpath(directory))) {
|
|
30125
30173
|
throw new Error("\u9644\u4EF6\u76EE\u5F55\u5FC5\u987B\u4F4D\u4E8E CLI \u5DE5\u4F5C\u76EE\u5F55\u5185\uFF0C\u4E14\u4E0D\u80FD\u662F\u7B26\u53F7\u94FE\u63A5");
|
|
30126
30174
|
}
|
|
30127
|
-
if (segment === ".echo") await writeFile6(
|
|
30175
|
+
if (segment === ".echo") await writeFile6(join17(directory, ".gitignore"), "*\n", { flag: "wx", mode: 384 }).catch((error62) => {
|
|
30128
30176
|
if (error62.code !== "EEXIST") throw error62;
|
|
30129
30177
|
});
|
|
30130
30178
|
}
|
|
@@ -30161,9 +30209,9 @@ async function prepareTaskAttachments(payload, workdir, download, signal2) {
|
|
|
30161
30209
|
const characters = Array.from(basename(file2.name.replace(/\\/g, "/")).replace(/[^\p{L}\p{N}._-]/gu, "_").replace(/\.+$/u, ""));
|
|
30162
30210
|
while (Buffer.byteLength(characters.join("")) > 160) characters.shift();
|
|
30163
30211
|
const name = characters.join("") || "attachment";
|
|
30164
|
-
const path =
|
|
30212
|
+
const path = join17(directory, `${file2.file_id}-${name}`);
|
|
30165
30213
|
if (!await matches(path, file2.size, file2.sha256, signal2)) {
|
|
30166
|
-
const temporary =
|
|
30214
|
+
const temporary = join17(directory, `.download-${file2.file_id}-${randomUUID2()}.part`);
|
|
30167
30215
|
try {
|
|
30168
30216
|
await download(payload.run_id, file2.file_id, temporary, file2.size, file2.sha256, signal2);
|
|
30169
30217
|
signal2.throwIfAborted();
|
|
@@ -32154,12 +32202,12 @@ ${PLAN_MODE_PREFIX}` : payload.prompt;
|
|
|
32154
32202
|
async prepareChatAttachments(payload) {
|
|
32155
32203
|
if (!payload.attachments?.length) return [];
|
|
32156
32204
|
if (!this.reporter.chatMedia) throw new Error("\u9644\u4EF6\u8F6C\u53D1\u672A\u914D\u7F6E");
|
|
32157
|
-
const directory =
|
|
32205
|
+
const directory = join18(this.config.dataDir, "chat-media", encodeURIComponent(payload.chat_session_id ?? payload.run_id));
|
|
32158
32206
|
await mkdir7(directory, { recursive: true, mode: 448 });
|
|
32159
32207
|
const files = [];
|
|
32160
32208
|
for (const attachment of payload.attachments) {
|
|
32161
32209
|
const name = basename2(attachment.name).replace(/[^\p{L}\p{N}._-]/gu, "_").slice(-120) || "attachment";
|
|
32162
|
-
const path =
|
|
32210
|
+
const path = join18(directory, `${encodeURIComponent(attachment.media_id)}-${name}`);
|
|
32163
32211
|
const existing = await stat5(path).catch(() => void 0);
|
|
32164
32212
|
if (!existing?.isFile()) {
|
|
32165
32213
|
const data = await this.reporter.chatMedia(payload.run_id, attachment.media_id);
|
|
@@ -32314,6 +32362,12 @@ ${PLAN_MODE_PREFIX}` : payload.prompt;
|
|
|
32314
32362
|
} catch {
|
|
32315
32363
|
throw new Error(`\u5DE5\u4F5C\u76EE\u5F55\u4E0D\u5B58\u5728\uFF1A${input2}`);
|
|
32316
32364
|
}
|
|
32365
|
+
const lexicalCandidate = resolve5(isAbsolute4(input2) ? input2 : resolve5(input2));
|
|
32366
|
+
for (const root2 of this.config.allowedRoots) {
|
|
32367
|
+
const lexicalRoot = resolve5(root2);
|
|
32368
|
+
const lexicalSegment = relative2(lexicalRoot, lexicalCandidate);
|
|
32369
|
+
if (lexicalSegment === "" || !lexicalSegment.startsWith("..") && !isAbsolute4(lexicalSegment)) return candidate;
|
|
32370
|
+
}
|
|
32317
32371
|
for (const root2 of this.config.allowedRoots) {
|
|
32318
32372
|
const allowed = await realpath2(root2).catch(() => resolve5(root2));
|
|
32319
32373
|
const segment = relative2(allowed, candidate);
|
|
@@ -32354,7 +32408,7 @@ var silent = { debug() {
|
|
|
32354
32408
|
async function runCliSmoke(options = {}) {
|
|
32355
32409
|
const detection = await cliDetection.detect(true);
|
|
32356
32410
|
const ids = options.only?.length ? options.only.map((id) => catalogEntry(id)?.id ?? id) : CLI_CATALOG.filter((entry) => entry.headless && detection.detectedIds.includes(entry.id)).map((entry) => entry.id);
|
|
32357
|
-
const root2 = await realpath3(await mkdtemp2(
|
|
32411
|
+
const root2 = await realpath3(await mkdtemp2(join19(tmpdir3(), "toc-ocra-smoke-")));
|
|
32358
32412
|
const finished = /* @__PURE__ */ new Map();
|
|
32359
32413
|
const config2 = { allowedRoots: [root2], maxConcurrentRuns: 0, maxRunSeconds: options.timeoutSeconds ?? 300, dataDir: root2 };
|
|
32360
32414
|
const supervisor = new RunSupervisor(config2, silent, {
|
|
@@ -32789,7 +32843,7 @@ function createDiagnosticLogger(filePath, options = {}) {
|
|
|
32789
32843
|
|
|
32790
32844
|
// src/runtime/agent-runtime.ts
|
|
32791
32845
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
32792
|
-
import { join as
|
|
32846
|
+
import { join as join22 } from "node:path";
|
|
32793
32847
|
|
|
32794
32848
|
// src/exec/script-runner.ts
|
|
32795
32849
|
import { spawn as spawn12 } from "node:child_process";
|
|
@@ -32961,15 +33015,15 @@ async function readCLIQuotaReport(agentType) {
|
|
|
32961
33015
|
|
|
32962
33016
|
// src/providers/tb-switch-control.ts
|
|
32963
33017
|
import { readFile as readFile8 } from "node:fs/promises";
|
|
32964
|
-
import { homedir as
|
|
32965
|
-
import { join as
|
|
33018
|
+
import { homedir as homedir10 } from "node:os";
|
|
33019
|
+
import { join as join20 } from "node:path";
|
|
32966
33020
|
function dataDir() {
|
|
32967
|
-
return process.env.TB_SWITCH_HOME?.trim() ||
|
|
33021
|
+
return process.env.TB_SWITCH_HOME?.trim() || join20(homedir10(), ".tb-switch");
|
|
32968
33022
|
}
|
|
32969
33023
|
async function readLocalService() {
|
|
32970
33024
|
let discovery;
|
|
32971
33025
|
try {
|
|
32972
|
-
discovery = JSON.parse(await readFile8(
|
|
33026
|
+
discovery = JSON.parse(await readFile8(join20(dataDir(), "api.json"), "utf8"));
|
|
32973
33027
|
} catch {
|
|
32974
33028
|
throw new Error("\u8FD9\u53F0\u8BBE\u5907\u4E0A\u7684 TB Switch \u670D\u52A1\u672A\u8FD0\u884C\uFF0C\u8BF7\u6253\u5F00\u684C\u9762\u7AEF\u63D2\u4EF6\u540E\u91CD\u8BD5\u3002");
|
|
32975
33029
|
}
|
|
@@ -32985,7 +33039,7 @@ async function readLocalService() {
|
|
|
32985
33039
|
}
|
|
32986
33040
|
let token = process.env.TB_SWITCH_API_TOKEN?.trim() ?? "";
|
|
32987
33041
|
try {
|
|
32988
|
-
token = (await readFile8(
|
|
33042
|
+
token = (await readFile8(join20(dataDir(), "api-token"), "utf8")).trim();
|
|
32989
33043
|
} catch {
|
|
32990
33044
|
}
|
|
32991
33045
|
if (!token) throw new Error("\u65E0\u6CD5\u8BFB\u53D6 TB Switch \u672C\u673A\u670D\u52A1\u51ED\u636E\uFF0C\u8BF7\u91CD\u542F\u684C\u9762\u7AEF\u63D2\u4EF6\u540E\u91CD\u8BD5\u3002");
|
|
@@ -33257,11 +33311,11 @@ var GatewayClient = class {
|
|
|
33257
33311
|
|
|
33258
33312
|
// src/workspace/directory-browser.ts
|
|
33259
33313
|
import { readdir as readdir3, realpath as realpath4, stat as stat7 } from "node:fs/promises";
|
|
33260
|
-
import { homedir as
|
|
33314
|
+
import { homedir as homedir11 } from "node:os";
|
|
33261
33315
|
import { dirname as dirname8, parse as parse3, resolve as resolve6 } from "node:path";
|
|
33262
33316
|
var MAX_ENTRIES = 1e3;
|
|
33263
33317
|
async function listDirectory(requested, allowedRoots) {
|
|
33264
|
-
const raw = requested.trim().replace(/^~(?=$|[\\/])/,
|
|
33318
|
+
const raw = requested.trim().replace(/^~(?=$|[\\/])/, homedir11()) || homedir11();
|
|
33265
33319
|
const directory = await realpath4(resolve6(raw)).catch(() => {
|
|
33266
33320
|
throw new Error(`\u76EE\u5F55\u4E0D\u5B58\u5728\uFF1A${requested}`);
|
|
33267
33321
|
});
|
|
@@ -33279,8 +33333,8 @@ async function listDirectory(requested, allowedRoots) {
|
|
|
33279
33333
|
else if (entry.isFile()) files.push(item);
|
|
33280
33334
|
}
|
|
33281
33335
|
const parent = dirname8(directory);
|
|
33282
|
-
const places = [{ label: "\u4E3B\u76EE\u5F55", path:
|
|
33283
|
-
for (const root2 of allowedRoots) if (root2 !==
|
|
33336
|
+
const places = [{ label: "\u4E3B\u76EE\u5F55", path: homedir11() }];
|
|
33337
|
+
for (const root2 of allowedRoots) if (root2 !== homedir11()) places.push({ label: "\u5141\u8BB8\u7684\u76EE\u5F55", path: root2 });
|
|
33284
33338
|
places.push({ label: "\u6839\u76EE\u5F55", path: process.platform === "win32" ? parse3(directory).root : "/" });
|
|
33285
33339
|
return {
|
|
33286
33340
|
path: directory,
|
|
@@ -33295,8 +33349,8 @@ async function listDirectory(requested, allowedRoots) {
|
|
|
33295
33349
|
// src/workspace/workspace-manager.ts
|
|
33296
33350
|
import { spawn as spawn13 } from "node:child_process";
|
|
33297
33351
|
import { chmod as chmod5, mkdir as mkdir9, mkdtemp as mkdtemp3, opendir, realpath as realpath5, rm as rm6, stat as stat8, writeFile as writeFile9 } from "node:fs/promises";
|
|
33298
|
-
import { homedir as
|
|
33299
|
-
import { isAbsolute as isAbsolute5, join as
|
|
33352
|
+
import { homedir as homedir12, tmpdir as tmpdir4 } from "node:os";
|
|
33353
|
+
import { isAbsolute as isAbsolute5, join as join21, relative as relative3, resolve as resolve7 } from "node:path";
|
|
33300
33354
|
var MAX_NODES = 2e3;
|
|
33301
33355
|
var MAX_DIRECTORY_ENTRIES = 12e3;
|
|
33302
33356
|
var IGNORED_DIRECTORIES = /* @__PURE__ */ new Set([
|
|
@@ -33344,7 +33398,7 @@ var WorkspaceManager = class {
|
|
|
33344
33398
|
};
|
|
33345
33399
|
}
|
|
33346
33400
|
validateRootPath(value) {
|
|
33347
|
-
const raw = value.trim().replace(/^~(?=$|[\\/])/,
|
|
33401
|
+
const raw = value.trim().replace(/^~(?=$|[\\/])/, homedir12());
|
|
33348
33402
|
const root2 = resolve7(raw);
|
|
33349
33403
|
if (!isAbsolute5(raw)) throw new Error("\u6839\u76EE\u5F55\u5FC5\u987B\u662F\u7EDD\u5BF9\u8DEF\u5F84");
|
|
33350
33404
|
if (relative3(root2, resolve7(root2, "..")) === "") throw new Error("\u4E0D\u80FD\u628A\u6587\u4EF6\u7CFB\u7EDF\u6839\u76EE\u5F55\u4F5C\u4E3A\u76EE\u5F55\u6839");
|
|
@@ -33671,12 +33725,12 @@ var WorkspaceManager = class {
|
|
|
33671
33725
|
}
|
|
33672
33726
|
async createGitAuthEnvironment(auth) {
|
|
33673
33727
|
if (!auth) return void 0;
|
|
33674
|
-
const directory = await mkdtemp3(
|
|
33728
|
+
const directory = await mkdtemp3(join21(tmpdir4(), "toc-ocra-git-auth-"));
|
|
33675
33729
|
const isWindows = process.platform === "win32";
|
|
33676
|
-
const scriptPath =
|
|
33730
|
+
const scriptPath = join21(directory, isWindows ? "askpass.cmd" : "askpass.sh");
|
|
33677
33731
|
let script;
|
|
33678
33732
|
if (isWindows) {
|
|
33679
|
-
const helperPath =
|
|
33733
|
+
const helperPath = join21(directory, "askpass.cjs");
|
|
33680
33734
|
await writeFile9(
|
|
33681
33735
|
helperPath,
|
|
33682
33736
|
'const prompt = process.argv.slice(2).join(" ");\nprocess.stdout.write(/username/i.test(prompt) ? process.env.ECHO_GIT_USERNAME ?? "" : process.env.ECHO_GIT_PASSWORD ?? "");\n',
|
|
@@ -33887,7 +33941,7 @@ var AgentRuntime = class {
|
|
|
33887
33941
|
}
|
|
33888
33942
|
};
|
|
33889
33943
|
this.workspaces = new WorkspaceManager(config2, this.logger);
|
|
33890
|
-
this.orphans = new OrphanRegistry(
|
|
33944
|
+
this.orphans = new OrphanRegistry(join22(config2.dataDir, "active-runs.json"));
|
|
33891
33945
|
this.runs = new RunSupervisor(config2, this.logger, reporter, this.orphans);
|
|
33892
33946
|
}
|
|
33893
33947
|
config;
|
|
@@ -34648,7 +34702,7 @@ async function runService(options = {}) {
|
|
|
34648
34702
|
}
|
|
34649
34703
|
|
|
34650
34704
|
// src/index.ts
|
|
34651
|
-
var { currentInstallation, installShared, ensureIdle, compareVersions: compareVersions2 } = createRequire(import.meta.url)(
|
|
34705
|
+
var { currentInstallation, installShared, ensureIdle, compareVersions: compareVersions2 } = createRequire(import.meta.url)(join23(agentPackageRoot(), "scripts", "installation.cjs"));
|
|
34652
34706
|
async function run() {
|
|
34653
34707
|
try {
|
|
34654
34708
|
await runService();
|
|
@@ -34776,7 +34830,7 @@ async function update(args) {
|
|
|
34776
34830
|
if (customConfig) process.env.TOC_OCRA_CONFIG = resolve9(customConfig);
|
|
34777
34831
|
await ensureIdle();
|
|
34778
34832
|
const npmPath = resolveCliCommand("npm");
|
|
34779
|
-
const temporary = mkdtempSync(
|
|
34833
|
+
const temporary = mkdtempSync(join23(tmpdir5(), "toc-ocra-update-"));
|
|
34780
34834
|
try {
|
|
34781
34835
|
const metadataResponse = await fetch(`https://registry.npmjs.org/${PACKAGE_NAME}`, { headers: { accept: "application/json", "cache-control": "no-cache" }, signal: AbortSignal.timeout(15e3) });
|
|
34782
34836
|
if (!metadataResponse.ok) throw new Error("\u65E0\u6CD5\u8BFB\u53D6 npm \u6700\u65B0\u7248\u672C\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");
|
|
@@ -34803,7 +34857,7 @@ async function update(args) {
|
|
|
34803
34857
|
}
|
|
34804
34858
|
const archive = Buffer.concat(chunks);
|
|
34805
34859
|
if (`sha512-${createHash5("sha512").update(archive).digest("base64")}` !== dist.integrity) throw new Error("\u8BBE\u5907\u4EE3\u7406\u5B89\u88C5\u5305\u6821\u9A8C\u5931\u8D25\uFF0C\u5DF2\u505C\u6B62\u5347\u7EA7");
|
|
34806
|
-
const archivePath =
|
|
34860
|
+
const archivePath = join23(temporary, "toc-ocra.tgz");
|
|
34807
34861
|
writeFileSync3(archivePath, archive, { mode: 384 });
|
|
34808
34862
|
const npm = directLaunch2(npmPath, ["install", "--prefix", temporary, "--ignore-scripts", "--omit=dev", "--no-package-lock", "--no-audit", "--no-fund", "--prefer-online", "--registry=https://registry.npmjs.org", archivePath]);
|
|
34809
34863
|
const install = spawnSync(npm.executable, npm.args, { stdio: "inherit", shell: false, windowsHide: true });
|
|
@@ -34813,7 +34867,7 @@ async function update(args) {
|
|
|
34813
34867
|
return;
|
|
34814
34868
|
}
|
|
34815
34869
|
const previousVersion = agentVersion();
|
|
34816
|
-
const current = await installShared(
|
|
34870
|
+
const current = await installShared(join23(temporary, "node_modules", PACKAGE_NAME), { startService: existsSync7(defaultConfigPath()) });
|
|
34817
34871
|
if (current.version === previousVersion) process.stdout.write(`toc-ocra \u5DF2\u662F\u6700\u65B0\u7248\u672C ${current.version}
|
|
34818
34872
|
`);
|
|
34819
34873
|
else process.stdout.write(`toc-ocra \u5DF2\u5347\u7EA7\u5230 ${current.version}\uFF0C\u7EC8\u7AEF\u4E0E Echo \u63D2\u4EF6\u5171\u7528\u6B64\u7248\u672C
|
|
@@ -34841,7 +34895,7 @@ async function main() {
|
|
|
34841
34895
|
const selected = !shared || compareVersions2(agentVersion(), shared.version) > 0 ? await installShared(root2) : shared;
|
|
34842
34896
|
const same = (a, b) => process.platform === "win32" ? resolve9(a).toLowerCase() === resolve9(b).toLowerCase() : resolve9(a) === resolve9(b);
|
|
34843
34897
|
if (!same(selected.root, root2)) {
|
|
34844
|
-
await import(pathToFileURL2(
|
|
34898
|
+
await import(pathToFileURL2(join23(selected.root, "dist", "cli", "cli.mjs")).href);
|
|
34845
34899
|
return;
|
|
34846
34900
|
}
|
|
34847
34901
|
}
|