@loomwright/cli 1.0.0 → 1.0.2
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/CHANGELOG.md +23 -0
- package/README.md +20 -16
- package/dist/cli.js +910 -419
- package/dist/package.json +1 -3
- package/package.json +5 -33
package/dist/cli.js
CHANGED
|
@@ -35,7 +35,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
35
35
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
36
36
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
37
37
|
|
|
38
|
-
// node_modules/yaml/dist/nodes/identity.js
|
|
38
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
|
|
39
39
|
var require_identity = __commonJS(function(exports) {
|
|
40
40
|
var ALIAS = Symbol.for("yaml.alias");
|
|
41
41
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -89,7 +89,7 @@ var require_identity = __commonJS(function(exports) {
|
|
|
89
89
|
exports.isSeq = isSeq;
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
// node_modules/yaml/dist/visit.js
|
|
92
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/visit.js
|
|
93
93
|
var require_visit = __commonJS(function(exports) {
|
|
94
94
|
var identity = require_identity();
|
|
95
95
|
var BREAK = Symbol("break visit");
|
|
@@ -244,7 +244,7 @@ var require_visit = __commonJS(function(exports) {
|
|
|
244
244
|
exports.visitAsync = visitAsync;
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
-
// node_modules/yaml/dist/doc/directives.js
|
|
247
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js
|
|
248
248
|
var require_directives = __commonJS(function(exports) {
|
|
249
249
|
var identity = require_identity();
|
|
250
250
|
var visit = require_visit();
|
|
@@ -396,7 +396,7 @@ var require_directives = __commonJS(function(exports) {
|
|
|
396
396
|
exports.Directives = Directives;
|
|
397
397
|
});
|
|
398
398
|
|
|
399
|
-
// node_modules/yaml/dist/doc/anchors.js
|
|
399
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js
|
|
400
400
|
var require_anchors = __commonJS(function(exports) {
|
|
401
401
|
var identity = require_identity();
|
|
402
402
|
var visit = require_visit();
|
|
@@ -458,7 +458,7 @@ var require_anchors = __commonJS(function(exports) {
|
|
|
458
458
|
exports.findNewAnchor = findNewAnchor;
|
|
459
459
|
});
|
|
460
460
|
|
|
461
|
-
// node_modules/yaml/dist/doc/applyReviver.js
|
|
461
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js
|
|
462
462
|
var require_applyReviver = __commonJS(function(exports) {
|
|
463
463
|
function applyReviver(reviver, obj, key, val) {
|
|
464
464
|
if (val && typeof val === "object") {
|
|
@@ -505,7 +505,7 @@ var require_applyReviver = __commonJS(function(exports) {
|
|
|
505
505
|
exports.applyReviver = applyReviver;
|
|
506
506
|
});
|
|
507
507
|
|
|
508
|
-
// node_modules/yaml/dist/nodes/toJS.js
|
|
508
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js
|
|
509
509
|
var require_toJS = __commonJS(function(exports) {
|
|
510
510
|
var identity = require_identity();
|
|
511
511
|
function toJS(value, arg, ctx) {
|
|
@@ -532,7 +532,7 @@ var require_toJS = __commonJS(function(exports) {
|
|
|
532
532
|
exports.toJS = toJS;
|
|
533
533
|
});
|
|
534
534
|
|
|
535
|
-
// node_modules/yaml/dist/nodes/Node.js
|
|
535
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js
|
|
536
536
|
var require_Node = __commonJS(function(exports) {
|
|
537
537
|
var applyReviver = require_applyReviver();
|
|
538
538
|
var identity = require_identity();
|
|
@@ -569,7 +569,7 @@ var require_Node = __commonJS(function(exports) {
|
|
|
569
569
|
exports.NodeBase = NodeBase;
|
|
570
570
|
});
|
|
571
571
|
|
|
572
|
-
// node_modules/yaml/dist/nodes/Alias.js
|
|
572
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js
|
|
573
573
|
var require_Alias = __commonJS(function(exports) {
|
|
574
574
|
var anchors = require_anchors();
|
|
575
575
|
var visit = require_visit();
|
|
@@ -681,7 +681,7 @@ var require_Alias = __commonJS(function(exports) {
|
|
|
681
681
|
exports.Alias = Alias;
|
|
682
682
|
});
|
|
683
683
|
|
|
684
|
-
// node_modules/yaml/dist/nodes/Scalar.js
|
|
684
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js
|
|
685
685
|
var require_Scalar = __commonJS(function(exports) {
|
|
686
686
|
var identity = require_identity();
|
|
687
687
|
var Node = require_Node();
|
|
@@ -709,7 +709,7 @@ var require_Scalar = __commonJS(function(exports) {
|
|
|
709
709
|
exports.isScalarValue = isScalarValue;
|
|
710
710
|
});
|
|
711
711
|
|
|
712
|
-
// node_modules/yaml/dist/doc/createNode.js
|
|
712
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js
|
|
713
713
|
var require_createNode = __commonJS(function(exports) {
|
|
714
714
|
var Alias = require_Alias();
|
|
715
715
|
var identity = require_identity();
|
|
@@ -781,7 +781,7 @@ var require_createNode = __commonJS(function(exports) {
|
|
|
781
781
|
exports.createNode = createNode;
|
|
782
782
|
});
|
|
783
783
|
|
|
784
|
-
// node_modules/yaml/dist/nodes/Collection.js
|
|
784
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js
|
|
785
785
|
var require_Collection = __commonJS(function(exports) {
|
|
786
786
|
var createNode = require_createNode();
|
|
787
787
|
var identity = require_identity();
|
|
@@ -896,7 +896,7 @@ var require_Collection = __commonJS(function(exports) {
|
|
|
896
896
|
exports.isEmptyPath = isEmptyPath;
|
|
897
897
|
});
|
|
898
898
|
|
|
899
|
-
// node_modules/yaml/dist/stringify/stringifyComment.js
|
|
899
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
900
900
|
var require_stringifyComment = __commonJS(function(exports) {
|
|
901
901
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
902
902
|
function indentComment(comment, indent) {
|
|
@@ -913,7 +913,7 @@ var require_stringifyComment = __commonJS(function(exports) {
|
|
|
913
913
|
exports.stringifyComment = stringifyComment;
|
|
914
914
|
});
|
|
915
915
|
|
|
916
|
-
// node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
916
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
917
917
|
var require_foldFlowLines = __commonJS(function(exports) {
|
|
918
918
|
var FOLD_FLOW = "flow";
|
|
919
919
|
var FOLD_BLOCK = "block";
|
|
@@ -1050,7 +1050,7 @@ ${indent}${text.slice(fold + 1, end)}`;
|
|
|
1050
1050
|
exports.foldFlowLines = foldFlowLines;
|
|
1051
1051
|
});
|
|
1052
1052
|
|
|
1053
|
-
// node_modules/yaml/dist/stringify/stringifyString.js
|
|
1053
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1054
1054
|
var require_stringifyString = __commonJS(function(exports) {
|
|
1055
1055
|
var Scalar = require_Scalar();
|
|
1056
1056
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1348,7 +1348,7 @@ ${indent}`);
|
|
|
1348
1348
|
exports.stringifyString = stringifyString;
|
|
1349
1349
|
});
|
|
1350
1350
|
|
|
1351
|
-
// node_modules/yaml/dist/stringify/stringify.js
|
|
1351
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js
|
|
1352
1352
|
var require_stringify = __commonJS(function(exports) {
|
|
1353
1353
|
var anchors = require_anchors();
|
|
1354
1354
|
var identity = require_identity();
|
|
@@ -1469,7 +1469,7 @@ ${ctx.indent}${str}`;
|
|
|
1469
1469
|
exports.stringify = stringify;
|
|
1470
1470
|
});
|
|
1471
1471
|
|
|
1472
|
-
// node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1472
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1473
1473
|
var require_stringifyPair = __commonJS(function(exports) {
|
|
1474
1474
|
var identity = require_identity();
|
|
1475
1475
|
var Scalar = require_Scalar();
|
|
@@ -1605,7 +1605,7 @@ ${ctx.indent}`;
|
|
|
1605
1605
|
exports.stringifyPair = stringifyPair;
|
|
1606
1606
|
});
|
|
1607
1607
|
|
|
1608
|
-
// node_modules/yaml/dist/log.js
|
|
1608
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/log.js
|
|
1609
1609
|
var require_log = __commonJS(function(exports) {
|
|
1610
1610
|
var node_process = __require("process");
|
|
1611
1611
|
function debug(logLevel, ...messages) {
|
|
@@ -1624,7 +1624,7 @@ var require_log = __commonJS(function(exports) {
|
|
|
1624
1624
|
exports.warn = warn;
|
|
1625
1625
|
});
|
|
1626
1626
|
|
|
1627
|
-
// node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1627
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1628
1628
|
var require_merge = __commonJS(function(exports) {
|
|
1629
1629
|
var identity = require_identity();
|
|
1630
1630
|
var Scalar = require_Scalar();
|
|
@@ -1681,7 +1681,7 @@ var require_merge = __commonJS(function(exports) {
|
|
|
1681
1681
|
exports.merge = merge;
|
|
1682
1682
|
});
|
|
1683
1683
|
|
|
1684
|
-
// node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1684
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1685
1685
|
var require_addPairToJSMap = __commonJS(function(exports) {
|
|
1686
1686
|
var log = require_log();
|
|
1687
1687
|
var merge = require_merge();
|
|
@@ -1742,7 +1742,7 @@ var require_addPairToJSMap = __commonJS(function(exports) {
|
|
|
1742
1742
|
exports.addPairToJSMap = addPairToJSMap;
|
|
1743
1743
|
});
|
|
1744
1744
|
|
|
1745
|
-
// node_modules/yaml/dist/nodes/Pair.js
|
|
1745
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js
|
|
1746
1746
|
var require_Pair = __commonJS(function(exports) {
|
|
1747
1747
|
var createNode = require_createNode();
|
|
1748
1748
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1780,7 +1780,7 @@ var require_Pair = __commonJS(function(exports) {
|
|
|
1780
1780
|
exports.createPair = createPair;
|
|
1781
1781
|
});
|
|
1782
1782
|
|
|
1783
|
-
// node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1783
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1784
1784
|
var require_stringifyCollection = __commonJS(function(exports) {
|
|
1785
1785
|
var identity = require_identity();
|
|
1786
1786
|
var stringify = require_stringify();
|
|
@@ -1932,7 +1932,7 @@ ${indent}${end}`;
|
|
|
1932
1932
|
exports.stringifyCollection = stringifyCollection;
|
|
1933
1933
|
});
|
|
1934
1934
|
|
|
1935
|
-
// node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1935
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1936
1936
|
var require_YAMLMap = __commonJS(function(exports) {
|
|
1937
1937
|
var stringifyCollection = require_stringifyCollection();
|
|
1938
1938
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2059,7 +2059,7 @@ var require_YAMLMap = __commonJS(function(exports) {
|
|
|
2059
2059
|
exports.findPair = findPair;
|
|
2060
2060
|
});
|
|
2061
2061
|
|
|
2062
|
-
// node_modules/yaml/dist/schema/common/map.js
|
|
2062
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js
|
|
2063
2063
|
var require_map = __commonJS(function(exports) {
|
|
2064
2064
|
var identity = require_identity();
|
|
2065
2065
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2078,7 +2078,7 @@ var require_map = __commonJS(function(exports) {
|
|
|
2078
2078
|
exports.map = map;
|
|
2079
2079
|
});
|
|
2080
2080
|
|
|
2081
|
-
// node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2081
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2082
2082
|
var require_YAMLSeq = __commonJS(function(exports) {
|
|
2083
2083
|
var createNode = require_createNode();
|
|
2084
2084
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2171,7 +2171,7 @@ var require_YAMLSeq = __commonJS(function(exports) {
|
|
|
2171
2171
|
exports.YAMLSeq = YAMLSeq;
|
|
2172
2172
|
});
|
|
2173
2173
|
|
|
2174
|
-
// node_modules/yaml/dist/schema/common/seq.js
|
|
2174
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js
|
|
2175
2175
|
var require_seq = __commonJS(function(exports) {
|
|
2176
2176
|
var identity = require_identity();
|
|
2177
2177
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2190,7 +2190,7 @@ var require_seq = __commonJS(function(exports) {
|
|
|
2190
2190
|
exports.seq = seq;
|
|
2191
2191
|
});
|
|
2192
2192
|
|
|
2193
|
-
// node_modules/yaml/dist/schema/common/string.js
|
|
2193
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js
|
|
2194
2194
|
var require_string = __commonJS(function(exports) {
|
|
2195
2195
|
var stringifyString = require_stringifyString();
|
|
2196
2196
|
var string = {
|
|
@@ -2206,7 +2206,7 @@ var require_string = __commonJS(function(exports) {
|
|
|
2206
2206
|
exports.string = string;
|
|
2207
2207
|
});
|
|
2208
2208
|
|
|
2209
|
-
// node_modules/yaml/dist/schema/common/null.js
|
|
2209
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js
|
|
2210
2210
|
var require_null = __commonJS(function(exports) {
|
|
2211
2211
|
var Scalar = require_Scalar();
|
|
2212
2212
|
var nullTag = {
|
|
@@ -2221,7 +2221,7 @@ var require_null = __commonJS(function(exports) {
|
|
|
2221
2221
|
exports.nullTag = nullTag;
|
|
2222
2222
|
});
|
|
2223
2223
|
|
|
2224
|
-
// node_modules/yaml/dist/schema/core/bool.js
|
|
2224
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js
|
|
2225
2225
|
var require_bool = __commonJS(function(exports) {
|
|
2226
2226
|
var Scalar = require_Scalar();
|
|
2227
2227
|
var boolTag = {
|
|
@@ -2242,7 +2242,7 @@ var require_bool = __commonJS(function(exports) {
|
|
|
2242
2242
|
exports.boolTag = boolTag;
|
|
2243
2243
|
});
|
|
2244
2244
|
|
|
2245
|
-
// node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2245
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2246
2246
|
var require_stringifyNumber = __commonJS(function(exports) {
|
|
2247
2247
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2248
2248
|
if (typeof value === "bigint")
|
|
@@ -2266,7 +2266,7 @@ var require_stringifyNumber = __commonJS(function(exports) {
|
|
|
2266
2266
|
exports.stringifyNumber = stringifyNumber;
|
|
2267
2267
|
});
|
|
2268
2268
|
|
|
2269
|
-
// node_modules/yaml/dist/schema/core/float.js
|
|
2269
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js
|
|
2270
2270
|
var require_float = __commonJS(function(exports) {
|
|
2271
2271
|
var Scalar = require_Scalar();
|
|
2272
2272
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2309,7 +2309,7 @@ var require_float = __commonJS(function(exports) {
|
|
|
2309
2309
|
exports.floatNaN = floatNaN;
|
|
2310
2310
|
});
|
|
2311
2311
|
|
|
2312
|
-
// node_modules/yaml/dist/schema/core/int.js
|
|
2312
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js
|
|
2313
2313
|
var require_int = __commonJS(function(exports) {
|
|
2314
2314
|
var stringifyNumber = require_stringifyNumber();
|
|
2315
2315
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2351,7 +2351,7 @@ var require_int = __commonJS(function(exports) {
|
|
|
2351
2351
|
exports.intOct = intOct;
|
|
2352
2352
|
});
|
|
2353
2353
|
|
|
2354
|
-
// node_modules/yaml/dist/schema/core/schema.js
|
|
2354
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js
|
|
2355
2355
|
var require_schema = __commonJS(function(exports) {
|
|
2356
2356
|
var map = require_map();
|
|
2357
2357
|
var _null = require_null();
|
|
@@ -2376,7 +2376,7 @@ var require_schema = __commonJS(function(exports) {
|
|
|
2376
2376
|
exports.schema = schema;
|
|
2377
2377
|
});
|
|
2378
2378
|
|
|
2379
|
-
// node_modules/yaml/dist/schema/json/schema.js
|
|
2379
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js
|
|
2380
2380
|
var require_schema2 = __commonJS(function(exports) {
|
|
2381
2381
|
var Scalar = require_Scalar();
|
|
2382
2382
|
var map = require_map();
|
|
@@ -2440,7 +2440,7 @@ var require_schema2 = __commonJS(function(exports) {
|
|
|
2440
2440
|
exports.schema = schema;
|
|
2441
2441
|
});
|
|
2442
2442
|
|
|
2443
|
-
// node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2443
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2444
2444
|
var require_binary = __commonJS(function(exports) {
|
|
2445
2445
|
var node_buffer = __require("buffer");
|
|
2446
2446
|
var Scalar = require_Scalar();
|
|
@@ -2495,7 +2495,7 @@ var require_binary = __commonJS(function(exports) {
|
|
|
2495
2495
|
exports.binary = binary;
|
|
2496
2496
|
});
|
|
2497
2497
|
|
|
2498
|
-
// node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2498
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2499
2499
|
var require_pairs = __commonJS(function(exports) {
|
|
2500
2500
|
var identity = require_identity();
|
|
2501
2501
|
var Pair = require_Pair();
|
|
@@ -2570,7 +2570,7 @@ ${cn.comment}` : item.comment;
|
|
|
2570
2570
|
exports.resolvePairs = resolvePairs;
|
|
2571
2571
|
});
|
|
2572
2572
|
|
|
2573
|
-
// node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2573
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2574
2574
|
var require_omap = __commonJS(function(exports) {
|
|
2575
2575
|
var identity = require_identity();
|
|
2576
2576
|
var toJS = require_toJS();
|
|
@@ -2642,7 +2642,7 @@ var require_omap = __commonJS(function(exports) {
|
|
|
2642
2642
|
exports.omap = omap;
|
|
2643
2643
|
});
|
|
2644
2644
|
|
|
2645
|
-
// node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2645
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2646
2646
|
var require_bool2 = __commonJS(function(exports) {
|
|
2647
2647
|
var Scalar = require_Scalar();
|
|
2648
2648
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2671,7 +2671,7 @@ var require_bool2 = __commonJS(function(exports) {
|
|
|
2671
2671
|
exports.trueTag = trueTag;
|
|
2672
2672
|
});
|
|
2673
2673
|
|
|
2674
|
-
// node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2674
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2675
2675
|
var require_float2 = __commonJS(function(exports) {
|
|
2676
2676
|
var Scalar = require_Scalar();
|
|
2677
2677
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2717,7 +2717,7 @@ var require_float2 = __commonJS(function(exports) {
|
|
|
2717
2717
|
exports.floatNaN = floatNaN;
|
|
2718
2718
|
});
|
|
2719
2719
|
|
|
2720
|
-
// node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2720
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2721
2721
|
var require_int2 = __commonJS(function(exports) {
|
|
2722
2722
|
var stringifyNumber = require_stringifyNumber();
|
|
2723
2723
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2793,7 +2793,7 @@ var require_int2 = __commonJS(function(exports) {
|
|
|
2793
2793
|
exports.intOct = intOct;
|
|
2794
2794
|
});
|
|
2795
2795
|
|
|
2796
|
-
// node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2796
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2797
2797
|
var require_set = __commonJS(function(exports) {
|
|
2798
2798
|
var identity = require_identity();
|
|
2799
2799
|
var Pair = require_Pair();
|
|
@@ -2876,7 +2876,7 @@ var require_set = __commonJS(function(exports) {
|
|
|
2876
2876
|
exports.set = set;
|
|
2877
2877
|
});
|
|
2878
2878
|
|
|
2879
|
-
// node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2879
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2880
2880
|
var require_timestamp = __commonJS(function(exports) {
|
|
2881
2881
|
var stringifyNumber = require_stringifyNumber();
|
|
2882
2882
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -2958,7 +2958,7 @@ var require_timestamp = __commonJS(function(exports) {
|
|
|
2958
2958
|
exports.timestamp = timestamp;
|
|
2959
2959
|
});
|
|
2960
2960
|
|
|
2961
|
-
// node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
2961
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
2962
2962
|
var require_schema3 = __commonJS(function(exports) {
|
|
2963
2963
|
var map = require_map();
|
|
2964
2964
|
var _null = require_null();
|
|
@@ -2999,7 +2999,7 @@ var require_schema3 = __commonJS(function(exports) {
|
|
|
2999
2999
|
exports.schema = schema;
|
|
3000
3000
|
});
|
|
3001
3001
|
|
|
3002
|
-
// node_modules/yaml/dist/schema/tags.js
|
|
3002
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js
|
|
3003
3003
|
var require_tags = __commonJS(function(exports) {
|
|
3004
3004
|
var map = require_map();
|
|
3005
3005
|
var _null = require_null();
|
|
@@ -3090,7 +3090,7 @@ var require_tags = __commonJS(function(exports) {
|
|
|
3090
3090
|
exports.getTags = getTags;
|
|
3091
3091
|
});
|
|
3092
3092
|
|
|
3093
|
-
// node_modules/yaml/dist/schema/Schema.js
|
|
3093
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js
|
|
3094
3094
|
var require_Schema = __commonJS(function(exports) {
|
|
3095
3095
|
var identity = require_identity();
|
|
3096
3096
|
var map = require_map();
|
|
@@ -3120,7 +3120,7 @@ var require_Schema = __commonJS(function(exports) {
|
|
|
3120
3120
|
exports.Schema = Schema;
|
|
3121
3121
|
});
|
|
3122
3122
|
|
|
3123
|
-
// node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3123
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3124
3124
|
var require_stringifyDocument = __commonJS(function(exports) {
|
|
3125
3125
|
var identity = require_identity();
|
|
3126
3126
|
var stringify = require_stringify();
|
|
@@ -3200,7 +3200,7 @@ var require_stringifyDocument = __commonJS(function(exports) {
|
|
|
3200
3200
|
exports.stringifyDocument = stringifyDocument;
|
|
3201
3201
|
});
|
|
3202
3202
|
|
|
3203
|
-
// node_modules/yaml/dist/doc/Document.js
|
|
3203
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js
|
|
3204
3204
|
var require_Document = __commonJS(function(exports) {
|
|
3205
3205
|
var Alias = require_Alias();
|
|
3206
3206
|
var Collection = require_Collection();
|
|
@@ -3435,7 +3435,7 @@ var require_Document = __commonJS(function(exports) {
|
|
|
3435
3435
|
exports.Document = Document;
|
|
3436
3436
|
});
|
|
3437
3437
|
|
|
3438
|
-
// node_modules/yaml/dist/errors.js
|
|
3438
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/errors.js
|
|
3439
3439
|
var require_errors = __commonJS(function(exports) {
|
|
3440
3440
|
class YAMLError extends Error {
|
|
3441
3441
|
constructor(name, pos, code, message) {
|
|
@@ -3500,7 +3500,7 @@ ${pointer}
|
|
|
3500
3500
|
exports.prettifyError = prettifyError;
|
|
3501
3501
|
});
|
|
3502
3502
|
|
|
3503
|
-
// node_modules/yaml/dist/compose/resolve-props.js
|
|
3503
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js
|
|
3504
3504
|
var require_resolve_props = __commonJS(function(exports) {
|
|
3505
3505
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3506
3506
|
let spaceBefore = false;
|
|
@@ -3630,7 +3630,7 @@ var require_resolve_props = __commonJS(function(exports) {
|
|
|
3630
3630
|
exports.resolveProps = resolveProps;
|
|
3631
3631
|
});
|
|
3632
3632
|
|
|
3633
|
-
// node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3633
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3634
3634
|
var require_util_contains_newline = __commonJS(function(exports) {
|
|
3635
3635
|
function containsNewline(key) {
|
|
3636
3636
|
if (!key)
|
|
@@ -3670,7 +3670,7 @@ var require_util_contains_newline = __commonJS(function(exports) {
|
|
|
3670
3670
|
exports.containsNewline = containsNewline;
|
|
3671
3671
|
});
|
|
3672
3672
|
|
|
3673
|
-
// node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3673
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3674
3674
|
var require_util_flow_indent_check = __commonJS(function(exports) {
|
|
3675
3675
|
var utilContainsNewline = require_util_contains_newline();
|
|
3676
3676
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3685,7 +3685,7 @@ var require_util_flow_indent_check = __commonJS(function(exports) {
|
|
|
3685
3685
|
exports.flowIndentCheck = flowIndentCheck;
|
|
3686
3686
|
});
|
|
3687
3687
|
|
|
3688
|
-
// node_modules/yaml/dist/compose/util-map-includes.js
|
|
3688
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3689
3689
|
var require_util_map_includes = __commonJS(function(exports) {
|
|
3690
3690
|
var identity = require_identity();
|
|
3691
3691
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3698,7 +3698,7 @@ var require_util_map_includes = __commonJS(function(exports) {
|
|
|
3698
3698
|
exports.mapIncludes = mapIncludes;
|
|
3699
3699
|
});
|
|
3700
3700
|
|
|
3701
|
-
// node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3701
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3702
3702
|
var require_resolve_block_map = __commonJS(function(exports) {
|
|
3703
3703
|
var Pair = require_Pair();
|
|
3704
3704
|
var YAMLMap = require_YAMLMap();
|
|
@@ -3805,7 +3805,7 @@ var require_resolve_block_map = __commonJS(function(exports) {
|
|
|
3805
3805
|
exports.resolveBlockMap = resolveBlockMap;
|
|
3806
3806
|
});
|
|
3807
3807
|
|
|
3808
|
-
// node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3808
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3809
3809
|
var require_resolve_block_seq = __commonJS(function(exports) {
|
|
3810
3810
|
var YAMLSeq = require_YAMLSeq();
|
|
3811
3811
|
var resolveProps = require_resolve_props();
|
|
@@ -3853,7 +3853,7 @@ var require_resolve_block_seq = __commonJS(function(exports) {
|
|
|
3853
3853
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
3854
3854
|
});
|
|
3855
3855
|
|
|
3856
|
-
// node_modules/yaml/dist/compose/resolve-end.js
|
|
3856
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js
|
|
3857
3857
|
var require_resolve_end = __commonJS(function(exports) {
|
|
3858
3858
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
3859
3859
|
let comment = "";
|
|
@@ -3893,7 +3893,7 @@ var require_resolve_end = __commonJS(function(exports) {
|
|
|
3893
3893
|
exports.resolveEnd = resolveEnd;
|
|
3894
3894
|
});
|
|
3895
3895
|
|
|
3896
|
-
// node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
3896
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
3897
3897
|
var require_resolve_flow_collection = __commonJS(function(exports) {
|
|
3898
3898
|
var identity = require_identity();
|
|
3899
3899
|
var Pair = require_Pair();
|
|
@@ -4084,7 +4084,7 @@ var require_resolve_flow_collection = __commonJS(function(exports) {
|
|
|
4084
4084
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
4085
4085
|
});
|
|
4086
4086
|
|
|
4087
|
-
// node_modules/yaml/dist/compose/compose-collection.js
|
|
4087
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js
|
|
4088
4088
|
var require_compose_collection = __commonJS(function(exports) {
|
|
4089
4089
|
var identity = require_identity();
|
|
4090
4090
|
var Scalar = require_Scalar();
|
|
@@ -4146,7 +4146,7 @@ var require_compose_collection = __commonJS(function(exports) {
|
|
|
4146
4146
|
exports.composeCollection = composeCollection;
|
|
4147
4147
|
});
|
|
4148
4148
|
|
|
4149
|
-
// node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4149
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4150
4150
|
var require_resolve_block_scalar = __commonJS(function(exports) {
|
|
4151
4151
|
var Scalar = require_Scalar();
|
|
4152
4152
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4339,7 +4339,7 @@ var require_resolve_block_scalar = __commonJS(function(exports) {
|
|
|
4339
4339
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
4340
4340
|
});
|
|
4341
4341
|
|
|
4342
|
-
// node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4342
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4343
4343
|
var require_resolve_flow_scalar = __commonJS(function(exports) {
|
|
4344
4344
|
var Scalar = require_Scalar();
|
|
4345
4345
|
var resolveEnd = require_resolve_end();
|
|
@@ -4555,7 +4555,7 @@ var require_resolve_flow_scalar = __commonJS(function(exports) {
|
|
|
4555
4555
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
4556
4556
|
});
|
|
4557
4557
|
|
|
4558
|
-
// node_modules/yaml/dist/compose/compose-scalar.js
|
|
4558
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4559
4559
|
var require_compose_scalar = __commonJS(function(exports) {
|
|
4560
4560
|
var identity = require_identity();
|
|
4561
4561
|
var Scalar = require_Scalar();
|
|
@@ -4633,7 +4633,7 @@ var require_compose_scalar = __commonJS(function(exports) {
|
|
|
4633
4633
|
exports.composeScalar = composeScalar;
|
|
4634
4634
|
});
|
|
4635
4635
|
|
|
4636
|
-
// node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4636
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4637
4637
|
var require_util_empty_scalar_position = __commonJS(function(exports) {
|
|
4638
4638
|
function emptyScalarPosition(offset, before, pos) {
|
|
4639
4639
|
if (before) {
|
|
@@ -4660,7 +4660,7 @@ var require_util_empty_scalar_position = __commonJS(function(exports) {
|
|
|
4660
4660
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
4661
4661
|
});
|
|
4662
4662
|
|
|
4663
|
-
// node_modules/yaml/dist/compose/compose-node.js
|
|
4663
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js
|
|
4664
4664
|
var require_compose_node = __commonJS(function(exports) {
|
|
4665
4665
|
var Alias = require_Alias();
|
|
4666
4666
|
var identity = require_identity();
|
|
@@ -4763,7 +4763,7 @@ var require_compose_node = __commonJS(function(exports) {
|
|
|
4763
4763
|
exports.composeNode = composeNode;
|
|
4764
4764
|
});
|
|
4765
4765
|
|
|
4766
|
-
// node_modules/yaml/dist/compose/compose-doc.js
|
|
4766
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js
|
|
4767
4767
|
var require_compose_doc = __commonJS(function(exports) {
|
|
4768
4768
|
var Document = require_Document();
|
|
4769
4769
|
var composeNode = require_compose_node();
|
|
@@ -4803,7 +4803,7 @@ var require_compose_doc = __commonJS(function(exports) {
|
|
|
4803
4803
|
exports.composeDoc = composeDoc;
|
|
4804
4804
|
});
|
|
4805
4805
|
|
|
4806
|
-
// node_modules/yaml/dist/compose/composer.js
|
|
4806
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js
|
|
4807
4807
|
var require_composer = __commonJS(function(exports) {
|
|
4808
4808
|
var node_process = __require("process");
|
|
4809
4809
|
var directives = require_directives();
|
|
@@ -4994,7 +4994,7 @@ ${end.comment}` : end.comment;
|
|
|
4994
4994
|
exports.Composer = Composer;
|
|
4995
4995
|
});
|
|
4996
4996
|
|
|
4997
|
-
// node_modules/yaml/dist/parse/cst-scalar.js
|
|
4997
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js
|
|
4998
4998
|
var require_cst_scalar = __commonJS(function(exports) {
|
|
4999
4999
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5000
5000
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5184,7 +5184,7 @@ var require_cst_scalar = __commonJS(function(exports) {
|
|
|
5184
5184
|
exports.setScalarValue = setScalarValue;
|
|
5185
5185
|
});
|
|
5186
5186
|
|
|
5187
|
-
// node_modules/yaml/dist/parse/cst-stringify.js
|
|
5187
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5188
5188
|
var require_cst_stringify = __commonJS(function(exports) {
|
|
5189
5189
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5190
5190
|
function stringifyToken(token) {
|
|
@@ -5242,7 +5242,7 @@ var require_cst_stringify = __commonJS(function(exports) {
|
|
|
5242
5242
|
exports.stringify = stringify;
|
|
5243
5243
|
});
|
|
5244
5244
|
|
|
5245
|
-
// node_modules/yaml/dist/parse/cst-visit.js
|
|
5245
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js
|
|
5246
5246
|
var require_cst_visit = __commonJS(function(exports) {
|
|
5247
5247
|
var BREAK = Symbol("break visit");
|
|
5248
5248
|
var SKIP = Symbol("skip children");
|
|
@@ -5301,7 +5301,7 @@ var require_cst_visit = __commonJS(function(exports) {
|
|
|
5301
5301
|
exports.visit = visit;
|
|
5302
5302
|
});
|
|
5303
5303
|
|
|
5304
|
-
// node_modules/yaml/dist/parse/cst.js
|
|
5304
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js
|
|
5305
5305
|
var require_cst = __commonJS(function(exports) {
|
|
5306
5306
|
var cstScalar = require_cst_scalar();
|
|
5307
5307
|
var cstStringify = require_cst_stringify();
|
|
@@ -5402,7 +5402,7 @@ var require_cst = __commonJS(function(exports) {
|
|
|
5402
5402
|
exports.tokenType = tokenType;
|
|
5403
5403
|
});
|
|
5404
5404
|
|
|
5405
|
-
// node_modules/yaml/dist/parse/lexer.js
|
|
5405
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js
|
|
5406
5406
|
var require_lexer = __commonJS(function(exports) {
|
|
5407
5407
|
var cst = require_cst();
|
|
5408
5408
|
function isEmpty(ch) {
|
|
@@ -5999,7 +5999,7 @@ var require_lexer = __commonJS(function(exports) {
|
|
|
5999
5999
|
exports.Lexer = Lexer;
|
|
6000
6000
|
});
|
|
6001
6001
|
|
|
6002
|
-
// node_modules/yaml/dist/parse/line-counter.js
|
|
6002
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js
|
|
6003
6003
|
var require_line_counter = __commonJS(function(exports) {
|
|
6004
6004
|
class LineCounter {
|
|
6005
6005
|
constructor() {
|
|
@@ -6027,7 +6027,7 @@ var require_line_counter = __commonJS(function(exports) {
|
|
|
6027
6027
|
exports.LineCounter = LineCounter;
|
|
6028
6028
|
});
|
|
6029
6029
|
|
|
6030
|
-
// node_modules/yaml/dist/parse/parser.js
|
|
6030
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js
|
|
6031
6031
|
var require_parser = __commonJS(function(exports) {
|
|
6032
6032
|
var node_process = __require("process");
|
|
6033
6033
|
var cst = require_cst();
|
|
@@ -6883,7 +6883,7 @@ var require_parser = __commonJS(function(exports) {
|
|
|
6883
6883
|
exports.Parser = Parser;
|
|
6884
6884
|
});
|
|
6885
6885
|
|
|
6886
|
-
// node_modules/yaml/dist/public-api.js
|
|
6886
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/public-api.js
|
|
6887
6887
|
var require_public_api = __commonJS(function(exports) {
|
|
6888
6888
|
var composer = require_composer();
|
|
6889
6889
|
var Document = require_Document();
|
|
@@ -6977,7 +6977,7 @@ var require_public_api = __commonJS(function(exports) {
|
|
|
6977
6977
|
exports.stringify = stringify;
|
|
6978
6978
|
});
|
|
6979
6979
|
|
|
6980
|
-
// node_modules/ajv/dist/compile/codegen/code.js
|
|
6980
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
6981
6981
|
var require_code = __commonJS(function(exports) {
|
|
6982
6982
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6983
6983
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
|
|
@@ -7131,7 +7131,7 @@ var require_code = __commonJS(function(exports) {
|
|
|
7131
7131
|
exports.regexpCode = regexpCode;
|
|
7132
7132
|
});
|
|
7133
7133
|
|
|
7134
|
-
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
7134
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
7135
7135
|
var require_scope = __commonJS(function(exports) {
|
|
7136
7136
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7137
7137
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
@@ -7277,7 +7277,7 @@ var require_scope = __commonJS(function(exports) {
|
|
|
7277
7277
|
exports.ValueScope = ValueScope;
|
|
7278
7278
|
});
|
|
7279
7279
|
|
|
7280
|
-
// node_modules/ajv/dist/compile/codegen/index.js
|
|
7280
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
7281
7281
|
var require_codegen = __commonJS(function(exports) {
|
|
7282
7282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7283
7283
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
|
|
@@ -7987,7 +7987,7 @@ var require_codegen = __commonJS(function(exports) {
|
|
|
7987
7987
|
}
|
|
7988
7988
|
});
|
|
7989
7989
|
|
|
7990
|
-
// node_modules/ajv/dist/compile/util.js
|
|
7990
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
7991
7991
|
var require_util = __commonJS(function(exports) {
|
|
7992
7992
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7993
7993
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
|
|
@@ -8151,7 +8151,7 @@ var require_util = __commonJS(function(exports) {
|
|
|
8151
8151
|
exports.checkStrictMode = checkStrictMode;
|
|
8152
8152
|
});
|
|
8153
8153
|
|
|
8154
|
-
// node_modules/ajv/dist/compile/names.js
|
|
8154
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
8155
8155
|
var require_names = __commonJS(function(exports) {
|
|
8156
8156
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8157
8157
|
var codegen_1 = require_codegen();
|
|
@@ -8176,7 +8176,7 @@ var require_names = __commonJS(function(exports) {
|
|
|
8176
8176
|
exports.default = names;
|
|
8177
8177
|
});
|
|
8178
8178
|
|
|
8179
|
-
// node_modules/ajv/dist/compile/errors.js
|
|
8179
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
8180
8180
|
var require_errors2 = __commonJS(function(exports) {
|
|
8181
8181
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8182
8182
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
@@ -8294,7 +8294,7 @@ var require_errors2 = __commonJS(function(exports) {
|
|
|
8294
8294
|
}
|
|
8295
8295
|
});
|
|
8296
8296
|
|
|
8297
|
-
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
8297
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
8298
8298
|
var require_boolSchema = __commonJS(function(exports) {
|
|
8299
8299
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8300
8300
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
@@ -8342,7 +8342,7 @@ var require_boolSchema = __commonJS(function(exports) {
|
|
|
8342
8342
|
}
|
|
8343
8343
|
});
|
|
8344
8344
|
|
|
8345
|
-
// node_modules/ajv/dist/compile/rules.js
|
|
8345
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
8346
8346
|
var require_rules = __commonJS(function(exports) {
|
|
8347
8347
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8348
8348
|
exports.getRules = exports.isJSONType = undefined;
|
|
@@ -8370,7 +8370,7 @@ var require_rules = __commonJS(function(exports) {
|
|
|
8370
8370
|
exports.getRules = getRules;
|
|
8371
8371
|
});
|
|
8372
8372
|
|
|
8373
|
-
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
8373
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
8374
8374
|
var require_applicability = __commonJS(function(exports) {
|
|
8375
8375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8376
8376
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
@@ -8390,7 +8390,7 @@ var require_applicability = __commonJS(function(exports) {
|
|
|
8390
8390
|
exports.shouldUseRule = shouldUseRule;
|
|
8391
8391
|
});
|
|
8392
8392
|
|
|
8393
|
-
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
8393
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
8394
8394
|
var require_dataType = __commonJS(function(exports) {
|
|
8395
8395
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8396
8396
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
@@ -8571,7 +8571,7 @@ var require_dataType = __commonJS(function(exports) {
|
|
|
8571
8571
|
}
|
|
8572
8572
|
});
|
|
8573
8573
|
|
|
8574
|
-
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
8574
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
8575
8575
|
var require_defaults = __commonJS(function(exports) {
|
|
8576
8576
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8577
8577
|
exports.assignDefaults = undefined;
|
|
@@ -8605,7 +8605,7 @@ var require_defaults = __commonJS(function(exports) {
|
|
|
8605
8605
|
}
|
|
8606
8606
|
});
|
|
8607
8607
|
|
|
8608
|
-
// node_modules/ajv/dist/vocabularies/code.js
|
|
8608
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
8609
8609
|
var require_code2 = __commonJS(function(exports) {
|
|
8610
8610
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8611
8611
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
|
|
@@ -8734,7 +8734,7 @@ var require_code2 = __commonJS(function(exports) {
|
|
|
8734
8734
|
exports.validateUnion = validateUnion;
|
|
8735
8735
|
});
|
|
8736
8736
|
|
|
8737
|
-
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
8737
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
8738
8738
|
var require_keyword = __commonJS(function(exports) {
|
|
8739
8739
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8740
8740
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
@@ -8849,7 +8849,7 @@ var require_keyword = __commonJS(function(exports) {
|
|
|
8849
8849
|
exports.validateKeywordUsage = validateKeywordUsage;
|
|
8850
8850
|
});
|
|
8851
8851
|
|
|
8852
|
-
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
8852
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
8853
8853
|
var require_subschema = __commonJS(function(exports) {
|
|
8854
8854
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8855
8855
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
@@ -8929,7 +8929,7 @@ var require_subschema = __commonJS(function(exports) {
|
|
|
8929
8929
|
exports.extendSubschemaMode = extendSubschemaMode;
|
|
8930
8930
|
});
|
|
8931
8931
|
|
|
8932
|
-
// node_modules/fast-deep-equal/index.js
|
|
8932
|
+
// node_modules/.bun/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
8933
8933
|
var require_fast_deep_equal = __commonJS(function(exports, module) {
|
|
8934
8934
|
module.exports = function equal(a, b) {
|
|
8935
8935
|
if (a === b)
|
|
@@ -8971,7 +8971,7 @@ var require_fast_deep_equal = __commonJS(function(exports, module) {
|
|
|
8971
8971
|
};
|
|
8972
8972
|
});
|
|
8973
8973
|
|
|
8974
|
-
// node_modules/json-schema-traverse/index.js
|
|
8974
|
+
// node_modules/.bun/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
8975
8975
|
var require_json_schema_traverse = __commonJS(function(exports, module) {
|
|
8976
8976
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
8977
8977
|
if (typeof opts == "function") {
|
|
@@ -9054,7 +9054,7 @@ var require_json_schema_traverse = __commonJS(function(exports, module) {
|
|
|
9054
9054
|
}
|
|
9055
9055
|
});
|
|
9056
9056
|
|
|
9057
|
-
// node_modules/ajv/dist/compile/resolve.js
|
|
9057
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
9058
9058
|
var require_resolve = __commonJS(function(exports) {
|
|
9059
9059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9060
9060
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
@@ -9207,7 +9207,7 @@ var require_resolve = __commonJS(function(exports) {
|
|
|
9207
9207
|
exports.getSchemaRefs = getSchemaRefs;
|
|
9208
9208
|
});
|
|
9209
9209
|
|
|
9210
|
-
// node_modules/ajv/dist/compile/validate/index.js
|
|
9210
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
9211
9211
|
var require_validate = __commonJS(function(exports) {
|
|
9212
9212
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9213
9213
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
@@ -9712,7 +9712,7 @@ var require_validate = __commonJS(function(exports) {
|
|
|
9712
9712
|
exports.getData = getData;
|
|
9713
9713
|
});
|
|
9714
9714
|
|
|
9715
|
-
// node_modules/ajv/dist/runtime/validation_error.js
|
|
9715
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
9716
9716
|
var require_validation_error = __commonJS(function(exports) {
|
|
9717
9717
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9718
9718
|
|
|
@@ -9726,7 +9726,7 @@ var require_validation_error = __commonJS(function(exports) {
|
|
|
9726
9726
|
exports.default = ValidationError;
|
|
9727
9727
|
});
|
|
9728
9728
|
|
|
9729
|
-
// node_modules/ajv/dist/compile/ref_error.js
|
|
9729
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
9730
9730
|
var require_ref_error = __commonJS(function(exports) {
|
|
9731
9731
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9732
9732
|
var resolve_1 = require_resolve();
|
|
@@ -9741,7 +9741,7 @@ var require_ref_error = __commonJS(function(exports) {
|
|
|
9741
9741
|
exports.default = MissingRefError;
|
|
9742
9742
|
});
|
|
9743
9743
|
|
|
9744
|
-
// node_modules/ajv/dist/compile/index.js
|
|
9744
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
9745
9745
|
var require_compile = __commonJS(function(exports) {
|
|
9746
9746
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9747
9747
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
@@ -9962,7 +9962,7 @@ var require_compile = __commonJS(function(exports) {
|
|
|
9962
9962
|
}
|
|
9963
9963
|
});
|
|
9964
9964
|
|
|
9965
|
-
// node_modules/ajv/dist/refs/data.json
|
|
9965
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
9966
9966
|
var require_data = __commonJS(function(exports, module) {
|
|
9967
9967
|
module.exports = {
|
|
9968
9968
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -9979,7 +9979,7 @@ var require_data = __commonJS(function(exports, module) {
|
|
|
9979
9979
|
};
|
|
9980
9980
|
});
|
|
9981
9981
|
|
|
9982
|
-
// node_modules/fast-uri/lib/utils.js
|
|
9982
|
+
// node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/lib/utils.js
|
|
9983
9983
|
var require_utils = __commonJS(function(exports, module) {
|
|
9984
9984
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
9985
9985
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -10528,7 +10528,7 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
10528
10528
|
};
|
|
10529
10529
|
});
|
|
10530
10530
|
|
|
10531
|
-
// node_modules/fast-uri/lib/schemes.js
|
|
10531
|
+
// node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/lib/schemes.js
|
|
10532
10532
|
var require_schemes = __commonJS(function(exports, module) {
|
|
10533
10533
|
var { isUUID } = require_utils();
|
|
10534
10534
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -10703,7 +10703,7 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
10703
10703
|
};
|
|
10704
10704
|
});
|
|
10705
10705
|
|
|
10706
|
-
// node_modules/fast-uri/index.js
|
|
10706
|
+
// node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/index.js
|
|
10707
10707
|
var require_fast_uri = __commonJS(function(exports, module) {
|
|
10708
10708
|
var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
10709
10709
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -11128,7 +11128,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
11128
11128
|
module.exports.fastUri = fastUri;
|
|
11129
11129
|
});
|
|
11130
11130
|
|
|
11131
|
-
// node_modules/ajv/dist/runtime/uri.js
|
|
11131
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
11132
11132
|
var require_uri = __commonJS(function(exports) {
|
|
11133
11133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11134
11134
|
var uri = require_fast_uri();
|
|
@@ -11136,7 +11136,7 @@ var require_uri = __commonJS(function(exports) {
|
|
|
11136
11136
|
exports.default = uri;
|
|
11137
11137
|
});
|
|
11138
11138
|
|
|
11139
|
-
// node_modules/ajv/dist/core.js
|
|
11139
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
11140
11140
|
var require_core = __commonJS(function(exports) {
|
|
11141
11141
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11142
11142
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
@@ -11729,7 +11729,7 @@ var require_core = __commonJS(function(exports) {
|
|
|
11729
11729
|
}
|
|
11730
11730
|
});
|
|
11731
11731
|
|
|
11732
|
-
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
11732
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
11733
11733
|
var require_id = __commonJS(function(exports) {
|
|
11734
11734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11735
11735
|
var def = {
|
|
@@ -11741,7 +11741,7 @@ var require_id = __commonJS(function(exports) {
|
|
|
11741
11741
|
exports.default = def;
|
|
11742
11742
|
});
|
|
11743
11743
|
|
|
11744
|
-
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
11744
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
11745
11745
|
var require_ref = __commonJS(function(exports) {
|
|
11746
11746
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11747
11747
|
exports.callRef = exports.getValidate = undefined;
|
|
@@ -11860,7 +11860,7 @@ var require_ref = __commonJS(function(exports) {
|
|
|
11860
11860
|
exports.default = def;
|
|
11861
11861
|
});
|
|
11862
11862
|
|
|
11863
|
-
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
11863
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
11864
11864
|
var require_core2 = __commonJS(function(exports) {
|
|
11865
11865
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11866
11866
|
var id_1 = require_id();
|
|
@@ -11878,7 +11878,7 @@ var require_core2 = __commonJS(function(exports) {
|
|
|
11878
11878
|
exports.default = core;
|
|
11879
11879
|
});
|
|
11880
11880
|
|
|
11881
|
-
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
11881
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
11882
11882
|
var require_limitNumber = __commonJS(function(exports) {
|
|
11883
11883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11884
11884
|
var codegen_1 = require_codegen();
|
|
@@ -11907,7 +11907,7 @@ var require_limitNumber = __commonJS(function(exports) {
|
|
|
11907
11907
|
exports.default = def;
|
|
11908
11908
|
});
|
|
11909
11909
|
|
|
11910
|
-
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
11910
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
11911
11911
|
var require_multipleOf = __commonJS(function(exports) {
|
|
11912
11912
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11913
11913
|
var codegen_1 = require_codegen();
|
|
@@ -11932,7 +11932,7 @@ var require_multipleOf = __commonJS(function(exports) {
|
|
|
11932
11932
|
exports.default = def;
|
|
11933
11933
|
});
|
|
11934
11934
|
|
|
11935
|
-
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
11935
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
11936
11936
|
var require_ucs2length = __commonJS(function(exports) {
|
|
11937
11937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11938
11938
|
function ucs2length(str) {
|
|
@@ -11955,7 +11955,7 @@ var require_ucs2length = __commonJS(function(exports) {
|
|
|
11955
11955
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
11956
11956
|
});
|
|
11957
11957
|
|
|
11958
|
-
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
11958
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
11959
11959
|
var require_limitLength = __commonJS(function(exports) {
|
|
11960
11960
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11961
11961
|
var codegen_1 = require_codegen();
|
|
@@ -11984,7 +11984,7 @@ var require_limitLength = __commonJS(function(exports) {
|
|
|
11984
11984
|
exports.default = def;
|
|
11985
11985
|
});
|
|
11986
11986
|
|
|
11987
|
-
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
11987
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
11988
11988
|
var require_pattern = __commonJS(function(exports) {
|
|
11989
11989
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11990
11990
|
var code_1 = require_code2();
|
|
@@ -12018,7 +12018,7 @@ var require_pattern = __commonJS(function(exports) {
|
|
|
12018
12018
|
exports.default = def;
|
|
12019
12019
|
});
|
|
12020
12020
|
|
|
12021
|
-
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
12021
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
12022
12022
|
var require_limitProperties = __commonJS(function(exports) {
|
|
12023
12023
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12024
12024
|
var codegen_1 = require_codegen();
|
|
@@ -12044,7 +12044,7 @@ var require_limitProperties = __commonJS(function(exports) {
|
|
|
12044
12044
|
exports.default = def;
|
|
12045
12045
|
});
|
|
12046
12046
|
|
|
12047
|
-
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
12047
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
12048
12048
|
var require_required = __commonJS(function(exports) {
|
|
12049
12049
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12050
12050
|
var code_1 = require_code2();
|
|
@@ -12123,7 +12123,7 @@ var require_required = __commonJS(function(exports) {
|
|
|
12123
12123
|
exports.default = def;
|
|
12124
12124
|
});
|
|
12125
12125
|
|
|
12126
|
-
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
12126
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
12127
12127
|
var require_limitItems = __commonJS(function(exports) {
|
|
12128
12128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12129
12129
|
var codegen_1 = require_codegen();
|
|
@@ -12149,7 +12149,7 @@ var require_limitItems = __commonJS(function(exports) {
|
|
|
12149
12149
|
exports.default = def;
|
|
12150
12150
|
});
|
|
12151
12151
|
|
|
12152
|
-
// node_modules/ajv/dist/runtime/equal.js
|
|
12152
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
12153
12153
|
var require_equal = __commonJS(function(exports) {
|
|
12154
12154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12155
12155
|
var equal = require_fast_deep_equal();
|
|
@@ -12157,7 +12157,7 @@ var require_equal = __commonJS(function(exports) {
|
|
|
12157
12157
|
exports.default = equal;
|
|
12158
12158
|
});
|
|
12159
12159
|
|
|
12160
|
-
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
12160
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
12161
12161
|
var require_uniqueItems = __commonJS(function(exports) {
|
|
12162
12162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12163
12163
|
var dataType_1 = require_dataType();
|
|
@@ -12221,7 +12221,7 @@ var require_uniqueItems = __commonJS(function(exports) {
|
|
|
12221
12221
|
exports.default = def;
|
|
12222
12222
|
});
|
|
12223
12223
|
|
|
12224
|
-
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
12224
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
12225
12225
|
var require_const = __commonJS(function(exports) {
|
|
12226
12226
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12227
12227
|
var codegen_1 = require_codegen();
|
|
@@ -12247,7 +12247,7 @@ var require_const = __commonJS(function(exports) {
|
|
|
12247
12247
|
exports.default = def;
|
|
12248
12248
|
});
|
|
12249
12249
|
|
|
12250
|
-
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
12250
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
12251
12251
|
var require_enum = __commonJS(function(exports) {
|
|
12252
12252
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12253
12253
|
var codegen_1 = require_codegen();
|
|
@@ -12293,7 +12293,7 @@ var require_enum = __commonJS(function(exports) {
|
|
|
12293
12293
|
exports.default = def;
|
|
12294
12294
|
});
|
|
12295
12295
|
|
|
12296
|
-
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
12296
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
12297
12297
|
var require_validation = __commonJS(function(exports) {
|
|
12298
12298
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12299
12299
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -12323,7 +12323,7 @@ var require_validation = __commonJS(function(exports) {
|
|
|
12323
12323
|
exports.default = validation;
|
|
12324
12324
|
});
|
|
12325
12325
|
|
|
12326
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
12326
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
12327
12327
|
var require_additionalItems = __commonJS(function(exports) {
|
|
12328
12328
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12329
12329
|
exports.validateAdditionalItems = undefined;
|
|
@@ -12373,7 +12373,7 @@ var require_additionalItems = __commonJS(function(exports) {
|
|
|
12373
12373
|
exports.default = def;
|
|
12374
12374
|
});
|
|
12375
12375
|
|
|
12376
|
-
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
12376
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
12377
12377
|
var require_items = __commonJS(function(exports) {
|
|
12378
12378
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12379
12379
|
exports.validateTuple = undefined;
|
|
@@ -12427,7 +12427,7 @@ var require_items = __commonJS(function(exports) {
|
|
|
12427
12427
|
exports.default = def;
|
|
12428
12428
|
});
|
|
12429
12429
|
|
|
12430
|
-
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
12430
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
12431
12431
|
var require_prefixItems = __commonJS(function(exports) {
|
|
12432
12432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12433
12433
|
var items_1 = require_items();
|
|
@@ -12441,7 +12441,7 @@ var require_prefixItems = __commonJS(function(exports) {
|
|
|
12441
12441
|
exports.default = def;
|
|
12442
12442
|
});
|
|
12443
12443
|
|
|
12444
|
-
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
12444
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
12445
12445
|
var require_items2020 = __commonJS(function(exports) {
|
|
12446
12446
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12447
12447
|
var codegen_1 = require_codegen();
|
|
@@ -12473,7 +12473,7 @@ var require_items2020 = __commonJS(function(exports) {
|
|
|
12473
12473
|
exports.default = def;
|
|
12474
12474
|
});
|
|
12475
12475
|
|
|
12476
|
-
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
12476
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
12477
12477
|
var require_contains = __commonJS(function(exports) {
|
|
12478
12478
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12479
12479
|
var codegen_1 = require_codegen();
|
|
@@ -12564,7 +12564,7 @@ var require_contains = __commonJS(function(exports) {
|
|
|
12564
12564
|
exports.default = def;
|
|
12565
12565
|
});
|
|
12566
12566
|
|
|
12567
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
12567
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
12568
12568
|
var require_dependencies = __commonJS(function(exports) {
|
|
12569
12569
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12570
12570
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
@@ -12649,7 +12649,7 @@ var require_dependencies = __commonJS(function(exports) {
|
|
|
12649
12649
|
exports.default = def;
|
|
12650
12650
|
});
|
|
12651
12651
|
|
|
12652
|
-
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
12652
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
12653
12653
|
var require_propertyNames = __commonJS(function(exports) {
|
|
12654
12654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12655
12655
|
var codegen_1 = require_codegen();
|
|
@@ -12689,7 +12689,7 @@ var require_propertyNames = __commonJS(function(exports) {
|
|
|
12689
12689
|
exports.default = def;
|
|
12690
12690
|
});
|
|
12691
12691
|
|
|
12692
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
12692
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
12693
12693
|
var require_additionalProperties = __commonJS(function(exports) {
|
|
12694
12694
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12695
12695
|
var code_1 = require_code2();
|
|
@@ -12792,7 +12792,7 @@ var require_additionalProperties = __commonJS(function(exports) {
|
|
|
12792
12792
|
exports.default = def;
|
|
12793
12793
|
});
|
|
12794
12794
|
|
|
12795
|
-
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
12795
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
12796
12796
|
var require_properties = __commonJS(function(exports) {
|
|
12797
12797
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12798
12798
|
var validate_1 = require_validate();
|
|
@@ -12847,7 +12847,7 @@ var require_properties = __commonJS(function(exports) {
|
|
|
12847
12847
|
exports.default = def;
|
|
12848
12848
|
});
|
|
12849
12849
|
|
|
12850
|
-
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
12850
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
12851
12851
|
var require_patternProperties = __commonJS(function(exports) {
|
|
12852
12852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12853
12853
|
var code_1 = require_code2();
|
|
@@ -12918,7 +12918,7 @@ var require_patternProperties = __commonJS(function(exports) {
|
|
|
12918
12918
|
exports.default = def;
|
|
12919
12919
|
});
|
|
12920
12920
|
|
|
12921
|
-
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
12921
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
12922
12922
|
var require_not = __commonJS(function(exports) {
|
|
12923
12923
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12924
12924
|
var util_1 = require_util();
|
|
@@ -12946,7 +12946,7 @@ var require_not = __commonJS(function(exports) {
|
|
|
12946
12946
|
exports.default = def;
|
|
12947
12947
|
});
|
|
12948
12948
|
|
|
12949
|
-
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
12949
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
12950
12950
|
var require_anyOf = __commonJS(function(exports) {
|
|
12951
12951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12952
12952
|
var code_1 = require_code2();
|
|
@@ -12960,7 +12960,7 @@ var require_anyOf = __commonJS(function(exports) {
|
|
|
12960
12960
|
exports.default = def;
|
|
12961
12961
|
});
|
|
12962
12962
|
|
|
12963
|
-
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
12963
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
12964
12964
|
var require_oneOf = __commonJS(function(exports) {
|
|
12965
12965
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12966
12966
|
var codegen_1 = require_codegen();
|
|
@@ -13015,7 +13015,7 @@ var require_oneOf = __commonJS(function(exports) {
|
|
|
13015
13015
|
exports.default = def;
|
|
13016
13016
|
});
|
|
13017
13017
|
|
|
13018
|
-
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
13018
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
13019
13019
|
var require_allOf = __commonJS(function(exports) {
|
|
13020
13020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13021
13021
|
var util_1 = require_util();
|
|
@@ -13039,7 +13039,7 @@ var require_allOf = __commonJS(function(exports) {
|
|
|
13039
13039
|
exports.default = def;
|
|
13040
13040
|
});
|
|
13041
13041
|
|
|
13042
|
-
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
13042
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
13043
13043
|
var require_if = __commonJS(function(exports) {
|
|
13044
13044
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13045
13045
|
var codegen_1 = require_codegen();
|
|
@@ -13105,7 +13105,7 @@ var require_if = __commonJS(function(exports) {
|
|
|
13105
13105
|
exports.default = def;
|
|
13106
13106
|
});
|
|
13107
13107
|
|
|
13108
|
-
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
13108
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
13109
13109
|
var require_thenElse = __commonJS(function(exports) {
|
|
13110
13110
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13111
13111
|
var util_1 = require_util();
|
|
@@ -13120,7 +13120,7 @@ var require_thenElse = __commonJS(function(exports) {
|
|
|
13120
13120
|
exports.default = def;
|
|
13121
13121
|
});
|
|
13122
13122
|
|
|
13123
|
-
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
13123
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
13124
13124
|
var require_applicator = __commonJS(function(exports) {
|
|
13125
13125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13126
13126
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -13163,7 +13163,7 @@ var require_applicator = __commonJS(function(exports) {
|
|
|
13163
13163
|
exports.default = getApplicator;
|
|
13164
13164
|
});
|
|
13165
13165
|
|
|
13166
|
-
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
13166
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
13167
13167
|
var require_format = __commonJS(function(exports) {
|
|
13168
13168
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13169
13169
|
var codegen_1 = require_codegen();
|
|
@@ -13250,7 +13250,7 @@ var require_format = __commonJS(function(exports) {
|
|
|
13250
13250
|
exports.default = def;
|
|
13251
13251
|
});
|
|
13252
13252
|
|
|
13253
|
-
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
13253
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
13254
13254
|
var require_format2 = __commonJS(function(exports) {
|
|
13255
13255
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13256
13256
|
var format_1 = require_format();
|
|
@@ -13258,7 +13258,7 @@ var require_format2 = __commonJS(function(exports) {
|
|
|
13258
13258
|
exports.default = format;
|
|
13259
13259
|
});
|
|
13260
13260
|
|
|
13261
|
-
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
13261
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
13262
13262
|
var require_metadata = __commonJS(function(exports) {
|
|
13263
13263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13264
13264
|
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
@@ -13278,7 +13278,7 @@ var require_metadata = __commonJS(function(exports) {
|
|
|
13278
13278
|
];
|
|
13279
13279
|
});
|
|
13280
13280
|
|
|
13281
|
-
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
13281
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
13282
13282
|
var require_draft7 = __commonJS(function(exports) {
|
|
13283
13283
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13284
13284
|
var core_1 = require_core2();
|
|
@@ -13297,7 +13297,7 @@ var require_draft7 = __commonJS(function(exports) {
|
|
|
13297
13297
|
exports.default = draft7Vocabularies;
|
|
13298
13298
|
});
|
|
13299
13299
|
|
|
13300
|
-
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
13300
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
13301
13301
|
var require_types = __commonJS(function(exports) {
|
|
13302
13302
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13303
13303
|
exports.DiscrError = undefined;
|
|
@@ -13308,7 +13308,7 @@ var require_types = __commonJS(function(exports) {
|
|
|
13308
13308
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
13309
13309
|
});
|
|
13310
13310
|
|
|
13311
|
-
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
13311
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
13312
13312
|
var require_discriminator = __commonJS(function(exports) {
|
|
13313
13313
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13314
13314
|
var codegen_1 = require_codegen();
|
|
@@ -13410,7 +13410,7 @@ var require_discriminator = __commonJS(function(exports) {
|
|
|
13410
13410
|
exports.default = def;
|
|
13411
13411
|
});
|
|
13412
13412
|
|
|
13413
|
-
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
13413
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
13414
13414
|
var require_json_schema_draft_07 = __commonJS(function(exports, module) {
|
|
13415
13415
|
module.exports = {
|
|
13416
13416
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -13565,7 +13565,7 @@ var require_json_schema_draft_07 = __commonJS(function(exports, module) {
|
|
|
13565
13565
|
};
|
|
13566
13566
|
});
|
|
13567
13567
|
|
|
13568
|
-
// node_modules/ajv/dist/ajv.js
|
|
13568
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/ajv.js
|
|
13569
13569
|
var require_ajv = __commonJS(function(exports, module) {
|
|
13570
13570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13571
13571
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
@@ -13633,7 +13633,7 @@ var require_ajv = __commonJS(function(exports, module) {
|
|
|
13633
13633
|
} });
|
|
13634
13634
|
});
|
|
13635
13635
|
|
|
13636
|
-
// node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
13636
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
13637
13637
|
var require_dynamicAnchor = __commonJS(function(exports) {
|
|
13638
13638
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13639
13639
|
exports.dynamicAnchor = undefined;
|
|
@@ -13665,7 +13665,7 @@ var require_dynamicAnchor = __commonJS(function(exports) {
|
|
|
13665
13665
|
exports.default = def;
|
|
13666
13666
|
});
|
|
13667
13667
|
|
|
13668
|
-
// node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
13668
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
13669
13669
|
var require_dynamicRef = __commonJS(function(exports) {
|
|
13670
13670
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13671
13671
|
exports.dynamicRef = undefined;
|
|
@@ -13708,7 +13708,7 @@ var require_dynamicRef = __commonJS(function(exports) {
|
|
|
13708
13708
|
exports.default = def;
|
|
13709
13709
|
});
|
|
13710
13710
|
|
|
13711
|
-
// node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
13711
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
13712
13712
|
var require_recursiveAnchor = __commonJS(function(exports) {
|
|
13713
13713
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13714
13714
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -13726,7 +13726,7 @@ var require_recursiveAnchor = __commonJS(function(exports) {
|
|
|
13726
13726
|
exports.default = def;
|
|
13727
13727
|
});
|
|
13728
13728
|
|
|
13729
|
-
// node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
13729
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
13730
13730
|
var require_recursiveRef = __commonJS(function(exports) {
|
|
13731
13731
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13732
13732
|
var dynamicRef_1 = require_dynamicRef();
|
|
@@ -13738,7 +13738,7 @@ var require_recursiveRef = __commonJS(function(exports) {
|
|
|
13738
13738
|
exports.default = def;
|
|
13739
13739
|
});
|
|
13740
13740
|
|
|
13741
|
-
// node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
13741
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
13742
13742
|
var require_dynamic = __commonJS(function(exports) {
|
|
13743
13743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13744
13744
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -13749,7 +13749,7 @@ var require_dynamic = __commonJS(function(exports) {
|
|
|
13749
13749
|
exports.default = dynamic;
|
|
13750
13750
|
});
|
|
13751
13751
|
|
|
13752
|
-
// node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
13752
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
13753
13753
|
var require_dependentRequired = __commonJS(function(exports) {
|
|
13754
13754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13755
13755
|
var dependencies_1 = require_dependencies();
|
|
@@ -13763,7 +13763,7 @@ var require_dependentRequired = __commonJS(function(exports) {
|
|
|
13763
13763
|
exports.default = def;
|
|
13764
13764
|
});
|
|
13765
13765
|
|
|
13766
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
13766
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
13767
13767
|
var require_dependentSchemas = __commonJS(function(exports) {
|
|
13768
13768
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13769
13769
|
var dependencies_1 = require_dependencies();
|
|
@@ -13776,7 +13776,7 @@ var require_dependentSchemas = __commonJS(function(exports) {
|
|
|
13776
13776
|
exports.default = def;
|
|
13777
13777
|
});
|
|
13778
13778
|
|
|
13779
|
-
// node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
13779
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
13780
13780
|
var require_limitContains = __commonJS(function(exports) {
|
|
13781
13781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13782
13782
|
var util_1 = require_util();
|
|
@@ -13793,7 +13793,7 @@ var require_limitContains = __commonJS(function(exports) {
|
|
|
13793
13793
|
exports.default = def;
|
|
13794
13794
|
});
|
|
13795
13795
|
|
|
13796
|
-
// node_modules/ajv/dist/vocabularies/next.js
|
|
13796
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js
|
|
13797
13797
|
var require_next = __commonJS(function(exports) {
|
|
13798
13798
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13799
13799
|
var dependentRequired_1 = require_dependentRequired();
|
|
@@ -13803,7 +13803,7 @@ var require_next = __commonJS(function(exports) {
|
|
|
13803
13803
|
exports.default = next;
|
|
13804
13804
|
});
|
|
13805
13805
|
|
|
13806
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
13806
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
13807
13807
|
var require_unevaluatedProperties = __commonJS(function(exports) {
|
|
13808
13808
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13809
13809
|
var codegen_1 = require_codegen();
|
|
@@ -13866,7 +13866,7 @@ var require_unevaluatedProperties = __commonJS(function(exports) {
|
|
|
13866
13866
|
exports.default = def;
|
|
13867
13867
|
});
|
|
13868
13868
|
|
|
13869
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
13869
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
13870
13870
|
var require_unevaluatedItems = __commonJS(function(exports) {
|
|
13871
13871
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13872
13872
|
var codegen_1 = require_codegen();
|
|
@@ -13907,7 +13907,7 @@ var require_unevaluatedItems = __commonJS(function(exports) {
|
|
|
13907
13907
|
exports.default = def;
|
|
13908
13908
|
});
|
|
13909
13909
|
|
|
13910
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
13910
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
13911
13911
|
var require_unevaluated = __commonJS(function(exports) {
|
|
13912
13912
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13913
13913
|
var unevaluatedProperties_1 = require_unevaluatedProperties();
|
|
@@ -13916,7 +13916,7 @@ var require_unevaluated = __commonJS(function(exports) {
|
|
|
13916
13916
|
exports.default = unevaluated;
|
|
13917
13917
|
});
|
|
13918
13918
|
|
|
13919
|
-
// node_modules/ajv/dist/vocabularies/draft2020.js
|
|
13919
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js
|
|
13920
13920
|
var require_draft2020 = __commonJS(function(exports) {
|
|
13921
13921
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13922
13922
|
var core_1 = require_core2();
|
|
@@ -13941,7 +13941,7 @@ var require_draft2020 = __commonJS(function(exports) {
|
|
|
13941
13941
|
exports.default = draft2020Vocabularies;
|
|
13942
13942
|
});
|
|
13943
13943
|
|
|
13944
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
13944
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
13945
13945
|
var require_schema4 = __commonJS(function(exports, module) {
|
|
13946
13946
|
module.exports = {
|
|
13947
13947
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -13999,7 +13999,7 @@ var require_schema4 = __commonJS(function(exports, module) {
|
|
|
13999
13999
|
};
|
|
14000
14000
|
});
|
|
14001
14001
|
|
|
14002
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
14002
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
14003
14003
|
var require_applicator2 = __commonJS(function(exports, module) {
|
|
14004
14004
|
module.exports = {
|
|
14005
14005
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14050,7 +14050,7 @@ var require_applicator2 = __commonJS(function(exports, module) {
|
|
|
14050
14050
|
};
|
|
14051
14051
|
});
|
|
14052
14052
|
|
|
14053
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
14053
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
14054
14054
|
var require_unevaluated2 = __commonJS(function(exports, module) {
|
|
14055
14055
|
module.exports = {
|
|
14056
14056
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14068,7 +14068,7 @@ var require_unevaluated2 = __commonJS(function(exports, module) {
|
|
|
14068
14068
|
};
|
|
14069
14069
|
});
|
|
14070
14070
|
|
|
14071
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
14071
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
14072
14072
|
var require_content = __commonJS(function(exports, module) {
|
|
14073
14073
|
module.exports = {
|
|
14074
14074
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14087,7 +14087,7 @@ var require_content = __commonJS(function(exports, module) {
|
|
|
14087
14087
|
};
|
|
14088
14088
|
});
|
|
14089
14089
|
|
|
14090
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
14090
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
14091
14091
|
var require_core3 = __commonJS(function(exports, module) {
|
|
14092
14092
|
module.exports = {
|
|
14093
14093
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14141,7 +14141,7 @@ var require_core3 = __commonJS(function(exports, module) {
|
|
|
14141
14141
|
};
|
|
14142
14142
|
});
|
|
14143
14143
|
|
|
14144
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
14144
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
14145
14145
|
var require_format_annotation = __commonJS(function(exports, module) {
|
|
14146
14146
|
module.exports = {
|
|
14147
14147
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14158,7 +14158,7 @@ var require_format_annotation = __commonJS(function(exports, module) {
|
|
|
14158
14158
|
};
|
|
14159
14159
|
});
|
|
14160
14160
|
|
|
14161
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
14161
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
14162
14162
|
var require_meta_data = __commonJS(function(exports, module) {
|
|
14163
14163
|
module.exports = {
|
|
14164
14164
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14197,7 +14197,7 @@ var require_meta_data = __commonJS(function(exports, module) {
|
|
|
14197
14197
|
};
|
|
14198
14198
|
});
|
|
14199
14199
|
|
|
14200
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
14200
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
14201
14201
|
var require_validation2 = __commonJS(function(exports, module) {
|
|
14202
14202
|
module.exports = {
|
|
14203
14203
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14290,7 +14290,7 @@ var require_validation2 = __commonJS(function(exports, module) {
|
|
|
14290
14290
|
};
|
|
14291
14291
|
});
|
|
14292
14292
|
|
|
14293
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
14293
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
14294
14294
|
var require_json_schema_2020_12 = __commonJS(function(exports) {
|
|
14295
14295
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14296
14296
|
var metaSchema = require_schema4();
|
|
@@ -14321,7 +14321,7 @@ var require_json_schema_2020_12 = __commonJS(function(exports) {
|
|
|
14321
14321
|
exports.default = addMetaSchema2020;
|
|
14322
14322
|
});
|
|
14323
14323
|
|
|
14324
|
-
// node_modules/ajv/dist/2020.js
|
|
14324
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/2020.js
|
|
14325
14325
|
var require__2020 = __commonJS(function(exports, module) {
|
|
14326
14326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14327
14327
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = undefined;
|
|
@@ -14396,7 +14396,7 @@ var require__2020 = __commonJS(function(exports, module) {
|
|
|
14396
14396
|
} });
|
|
14397
14397
|
});
|
|
14398
14398
|
|
|
14399
|
-
// node_modules/ajv-formats/dist/formats.js
|
|
14399
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/formats.js
|
|
14400
14400
|
var require_formats = __commonJS(function(exports) {
|
|
14401
14401
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14402
14402
|
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
@@ -14573,7 +14573,7 @@ var require_formats = __commonJS(function(exports) {
|
|
|
14573
14573
|
}
|
|
14574
14574
|
});
|
|
14575
14575
|
|
|
14576
|
-
// node_modules/ajv-formats/dist/limit.js
|
|
14576
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/limit.js
|
|
14577
14577
|
var require_limit = __commonJS(function(exports) {
|
|
14578
14578
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14579
14579
|
exports.formatLimitDefinition = undefined;
|
|
@@ -14642,7 +14642,7 @@ var require_limit = __commonJS(function(exports) {
|
|
|
14642
14642
|
exports.default = formatLimitPlugin;
|
|
14643
14643
|
});
|
|
14644
14644
|
|
|
14645
|
-
// node_modules/ajv-formats/dist/index.js
|
|
14645
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/index.js
|
|
14646
14646
|
var require_dist = __commonJS(function(exports, module) {
|
|
14647
14647
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14648
14648
|
var formats_1 = require_formats();
|
|
@@ -14681,11 +14681,11 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
14681
14681
|
exports.default = formatsPlugin;
|
|
14682
14682
|
});
|
|
14683
14683
|
|
|
14684
|
-
//
|
|
14684
|
+
// packages/cli/src/main.ts
|
|
14685
14685
|
import { resolve as resolve9 } from "node:path";
|
|
14686
14686
|
import { createInterface } from "node:readline/promises";
|
|
14687
14687
|
|
|
14688
|
-
// src/
|
|
14688
|
+
// packages/core/src/exit-codes.ts
|
|
14689
14689
|
var ExitCode = {
|
|
14690
14690
|
Ok: 0,
|
|
14691
14691
|
Failure: 1,
|
|
@@ -14697,7 +14697,7 @@ var ExitCode = {
|
|
|
14697
14697
|
Drift: 10
|
|
14698
14698
|
};
|
|
14699
14699
|
|
|
14700
|
-
// src/errors.ts
|
|
14700
|
+
// packages/core/src/errors.ts
|
|
14701
14701
|
class FactoryError extends Error {
|
|
14702
14702
|
exitCode;
|
|
14703
14703
|
details;
|
|
@@ -14742,16 +14742,16 @@ class TransientError extends Error {
|
|
|
14742
14742
|
}
|
|
14743
14743
|
}
|
|
14744
14744
|
|
|
14745
|
-
// src/version.ts
|
|
14746
|
-
var FACTORY_VERSION = "1.0.
|
|
14745
|
+
// packages/core/src/version.ts
|
|
14746
|
+
var FACTORY_VERSION = "1.0.2";
|
|
14747
14747
|
var PACKAGE_NAME = "@loomwright/cli";
|
|
14748
14748
|
var runVersion = (version) => `npx ${PACKAGE_NAME}@${version}`;
|
|
14749
14749
|
|
|
14750
|
-
// src/config/load.ts
|
|
14750
|
+
// packages/core/src/config/load.ts
|
|
14751
14751
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
14752
14752
|
import { dirname, join, resolve } from "node:path";
|
|
14753
14753
|
|
|
14754
|
-
// src/exec.ts
|
|
14754
|
+
// packages/core/src/exec.ts
|
|
14755
14755
|
import { spawn } from "node:child_process";
|
|
14756
14756
|
var OPENSPEC_ENV = {
|
|
14757
14757
|
OPENSPEC_TELEMETRY: "0",
|
|
@@ -14785,13 +14785,12 @@ function exec(command, options) {
|
|
|
14785
14785
|
const stdout = [];
|
|
14786
14786
|
const stderr = [];
|
|
14787
14787
|
let timedOut = false;
|
|
14788
|
-
|
|
14789
|
-
|
|
14790
|
-
child.kill("SIGKILL");
|
|
14791
|
-
}, options.timeoutMs ?? DEFAULT_TIMEOUT_MS);
|
|
14792
|
-
child.stdout.on("data", (chunk) => stdout.push(chunk));
|
|
14793
|
-
child.stderr.on("data", (chunk) => stderr.push(chunk));
|
|
14788
|
+
let settled = false;
|
|
14789
|
+
let timer;
|
|
14794
14790
|
const finish = (code, extraErr = "") => {
|
|
14791
|
+
if (settled)
|
|
14792
|
+
return;
|
|
14793
|
+
settled = true;
|
|
14795
14794
|
clearTimeout(timer);
|
|
14796
14795
|
resolve({
|
|
14797
14796
|
command,
|
|
@@ -14802,6 +14801,15 @@ function exec(command, options) {
|
|
|
14802
14801
|
durationMs: Math.round(performance.now() - started)
|
|
14803
14802
|
});
|
|
14804
14803
|
};
|
|
14804
|
+
timer = setTimeout(() => {
|
|
14805
|
+
timedOut = true;
|
|
14806
|
+
child.kill("SIGKILL");
|
|
14807
|
+
child.stdout?.destroy();
|
|
14808
|
+
child.stderr?.destroy();
|
|
14809
|
+
finish(null);
|
|
14810
|
+
}, options.timeoutMs ?? DEFAULT_TIMEOUT_MS);
|
|
14811
|
+
child.stdout.on("data", (chunk) => stdout.push(chunk));
|
|
14812
|
+
child.stderr.on("data", (chunk) => stderr.push(chunk));
|
|
14805
14813
|
child.on("error", (err) => finish(127, err.message));
|
|
14806
14814
|
child.on("close", (code) => finish(code));
|
|
14807
14815
|
child.stdin.end(options.input ?? "");
|
|
@@ -14822,7 +14830,7 @@ function gitOk(args, options) {
|
|
|
14822
14830
|
return execOk(["git", ...args], { ...options, env: { ...GIT_ENV, ...options.env } });
|
|
14823
14831
|
}
|
|
14824
14832
|
|
|
14825
|
-
// node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
14833
|
+
// node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
14826
14834
|
function createScanner(text, ignoreTrivia = false) {
|
|
14827
14835
|
const len = text.length;
|
|
14828
14836
|
let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
|
|
@@ -15237,7 +15245,7 @@ var CharacterCodes;
|
|
|
15237
15245
|
CharacterCodes[CharacterCodes["tab"] = 9] = "tab";
|
|
15238
15246
|
})(CharacterCodes || (CharacterCodes = {}));
|
|
15239
15247
|
|
|
15240
|
-
// node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
15248
|
+
// node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
15241
15249
|
var cachedSpaces = new Array(20).fill(0).map((_, index) => {
|
|
15242
15250
|
return " ".repeat(index);
|
|
15243
15251
|
});
|
|
@@ -15274,7 +15282,7 @@ var supportedEols = [`
|
|
|
15274
15282
|
`, "\r", `\r
|
|
15275
15283
|
`];
|
|
15276
15284
|
|
|
15277
|
-
// node_modules/jsonc-parser/lib/esm/impl/format.js
|
|
15285
|
+
// node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/format.js
|
|
15278
15286
|
function format(documentText, range, options) {
|
|
15279
15287
|
let initialIndentLevel;
|
|
15280
15288
|
let formatText;
|
|
@@ -15514,7 +15522,7 @@ function isEOL(text, offset) {
|
|
|
15514
15522
|
`.indexOf(text.charAt(offset)) !== -1;
|
|
15515
15523
|
}
|
|
15516
15524
|
|
|
15517
|
-
// node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
15525
|
+
// node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
15518
15526
|
var ParseOptions;
|
|
15519
15527
|
(function(ParseOptions) {
|
|
15520
15528
|
ParseOptions.DEFAULT = {
|
|
@@ -15926,7 +15934,7 @@ function getNodeType(value) {
|
|
|
15926
15934
|
}
|
|
15927
15935
|
}
|
|
15928
15936
|
|
|
15929
|
-
// node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
15937
|
+
// node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
15930
15938
|
function setProperty(text, originalPath, value, options) {
|
|
15931
15939
|
const path = originalPath.slice();
|
|
15932
15940
|
const errors = [];
|
|
@@ -16070,7 +16078,7 @@ function applyEdit(text, edit) {
|
|
|
16070
16078
|
return text.substring(0, edit.offset) + edit.content + text.substring(edit.offset + edit.length);
|
|
16071
16079
|
}
|
|
16072
16080
|
|
|
16073
|
-
// node_modules/jsonc-parser/lib/esm/main.js
|
|
16081
|
+
// node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js
|
|
16074
16082
|
var ScanError;
|
|
16075
16083
|
(function(ScanError) {
|
|
16076
16084
|
ScanError[ScanError["None"] = 0] = "None";
|
|
@@ -16182,7 +16190,7 @@ function applyEdits(text, edits) {
|
|
|
16182
16190
|
return text;
|
|
16183
16191
|
}
|
|
16184
16192
|
|
|
16185
|
-
// src/config/jsonc.ts
|
|
16193
|
+
// packages/core/src/config/jsonc.ts
|
|
16186
16194
|
function parseJsonc(text) {
|
|
16187
16195
|
const raw = [];
|
|
16188
16196
|
const value = parse2(text, raw, { allowTrailingComma: true, disallowComments: false });
|
|
@@ -16219,7 +16227,7 @@ function appendJsonc(text, path, value) {
|
|
|
16219
16227
|
return applyEdits(text, edits);
|
|
16220
16228
|
}
|
|
16221
16229
|
|
|
16222
|
-
// node_modules/zod/v4/core/util.js
|
|
16230
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
16223
16231
|
function getEnumValues(entries) {
|
|
16224
16232
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
16225
16233
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -16774,7 +16782,7 @@ function constantCatch(value) {
|
|
|
16774
16782
|
return fn;
|
|
16775
16783
|
}
|
|
16776
16784
|
|
|
16777
|
-
// node_modules/zod/v4/core/core.js
|
|
16785
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
16778
16786
|
var _a;
|
|
16779
16787
|
var _zodDesc = { value: undefined, enumerable: false };
|
|
16780
16788
|
var _E = "captureStackTrace" in Error ? Error : null;
|
|
@@ -16892,7 +16900,7 @@ function config(newConfig) {
|
|
|
16892
16900
|
Object.assign(globalConfig, newConfig);
|
|
16893
16901
|
return globalConfig;
|
|
16894
16902
|
}
|
|
16895
|
-
// node_modules/zod/v4/core/errors.js
|
|
16903
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
16896
16904
|
function _getMessage() {
|
|
16897
16905
|
const internals = this._zod;
|
|
16898
16906
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -17007,7 +17015,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
17007
17015
|
return fieldErrors;
|
|
17008
17016
|
}
|
|
17009
17017
|
|
|
17010
|
-
// node_modules/zod/v4/core/parse.js
|
|
17018
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
17011
17019
|
function finalizeParams(callee, params) {
|
|
17012
17020
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
17013
17021
|
}
|
|
@@ -17154,7 +17162,7 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
17154
17162
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
17155
17163
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
17156
17164
|
};
|
|
17157
|
-
// node_modules/zod/v4/core/regexes.js
|
|
17165
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/regexes.js
|
|
17158
17166
|
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
17159
17167
|
var cuid2 = /^[0-9a-z]+$/;
|
|
17160
17168
|
var ulid = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
@@ -17212,7 +17220,7 @@ var boolean = /^(?:true|false)$/i;
|
|
|
17212
17220
|
var lowercase = /^[^A-Z]*$/;
|
|
17213
17221
|
var uppercase = /^[^a-z]*$/;
|
|
17214
17222
|
|
|
17215
|
-
// node_modules/zod/v4/core/checks.js
|
|
17223
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/checks.js
|
|
17216
17224
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
17217
17225
|
var _a;
|
|
17218
17226
|
inst._zod ?? (inst._zod = {});
|
|
@@ -17528,7 +17536,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
17528
17536
|
};
|
|
17529
17537
|
});
|
|
17530
17538
|
|
|
17531
|
-
// node_modules/zod/v4/core/doc.js
|
|
17539
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/doc.js
|
|
17532
17540
|
class Doc {
|
|
17533
17541
|
constructor(args = [], closed = {}) {
|
|
17534
17542
|
this.content = [];
|
|
@@ -17570,14 +17578,14 @@ ${content.join(`
|
|
|
17570
17578
|
}
|
|
17571
17579
|
}
|
|
17572
17580
|
|
|
17573
|
-
// node_modules/zod/v4/core/versions.js
|
|
17581
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/versions.js
|
|
17574
17582
|
var version = {
|
|
17575
17583
|
major: 4,
|
|
17576
17584
|
minor: 6,
|
|
17577
17585
|
patch: 7
|
|
17578
17586
|
};
|
|
17579
17587
|
|
|
17580
|
-
// node_modules/zod/v4/core/schemas.js
|
|
17588
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/schemas.js
|
|
17581
17589
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
17582
17590
|
var _a;
|
|
17583
17591
|
inst ?? (inst = {});
|
|
@@ -19130,7 +19138,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
19130
19138
|
payload.issues.push(issue(_iss));
|
|
19131
19139
|
}
|
|
19132
19140
|
}
|
|
19133
|
-
// node_modules/zod/v4/core/memoizer.js
|
|
19141
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
19134
19142
|
class $ZodCyclicError extends Error {
|
|
19135
19143
|
constructor() {
|
|
19136
19144
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -19399,7 +19407,7 @@ function isBackEdge(ctx, value) {
|
|
|
19399
19407
|
const backEdges = ctx[STATE]?.backEdges;
|
|
19400
19408
|
return backEdges !== undefined && isRef(value) && backEdges.has(value);
|
|
19401
19409
|
}
|
|
19402
|
-
// node_modules/zod/v4/locales/en.js
|
|
19410
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
19403
19411
|
var error = () => {
|
|
19404
19412
|
const Sizable = {
|
|
19405
19413
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -19521,7 +19529,7 @@ function en_default() {
|
|
|
19521
19529
|
localeError: error()
|
|
19522
19530
|
};
|
|
19523
19531
|
}
|
|
19524
|
-
// node_modules/zod/v4/core/registries.js
|
|
19532
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
19525
19533
|
var _a2;
|
|
19526
19534
|
class $ZodRegistry {
|
|
19527
19535
|
constructor() {
|
|
@@ -19568,7 +19576,7 @@ function registry() {
|
|
|
19568
19576
|
}
|
|
19569
19577
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
19570
19578
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
19571
|
-
// node_modules/zod/v4/core/api.js
|
|
19579
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
19572
19580
|
function snapshotChecks(def) {
|
|
19573
19581
|
if (def.checks)
|
|
19574
19582
|
def.checks = [...def.checks];
|
|
@@ -20013,7 +20021,7 @@ function _check(fn, params) {
|
|
|
20013
20021
|
ch._zod.check = fn;
|
|
20014
20022
|
return ch;
|
|
20015
20023
|
}
|
|
20016
|
-
// node_modules/zod/v4/core/to-json-schema.js
|
|
20024
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
20017
20025
|
function assignProps(target, ...sources) {
|
|
20018
20026
|
for (const source of sources) {
|
|
20019
20027
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -20536,7 +20544,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
20536
20544
|
extractDefs(ctx, schema);
|
|
20537
20545
|
return finalize(ctx, schema);
|
|
20538
20546
|
};
|
|
20539
|
-
// node_modules/zod/v4/core/json-schema-processors.js
|
|
20547
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
|
|
20540
20548
|
var narrowMin = (agg, key, value) => {
|
|
20541
20549
|
if (agg[key] === undefined || value > agg[key])
|
|
20542
20550
|
agg[key] = value;
|
|
@@ -21279,7 +21287,7 @@ function toJSONSchema(input, params) {
|
|
|
21279
21287
|
extractDefs(ctx, input);
|
|
21280
21288
|
return finalize(ctx, input);
|
|
21281
21289
|
}
|
|
21282
|
-
// node_modules/zod/v4/classic/errors.js
|
|
21290
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/errors.js
|
|
21283
21291
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
21284
21292
|
function _lazyMethod(proto, key, make) {
|
|
21285
21293
|
Object.defineProperty(proto, key, {
|
|
@@ -21324,7 +21332,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, undefi
|
|
|
21324
21332
|
Parent: Error
|
|
21325
21333
|
});
|
|
21326
21334
|
|
|
21327
|
-
// node_modules/zod/v4/classic/parse.js
|
|
21335
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/parse.js
|
|
21328
21336
|
var parse4 = /* @__PURE__ */ _parse(ZodRealError);
|
|
21329
21337
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
21330
21338
|
var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -21338,7 +21346,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
21338
21346
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
21339
21347
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
21340
21348
|
|
|
21341
|
-
// node_modules/zod/v4/classic/schemas.js
|
|
21349
|
+
// node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
21342
21350
|
function _ensureDefaultLocale() {
|
|
21343
21351
|
if (!globalConfig.localeError)
|
|
21344
21352
|
config(en_default());
|
|
@@ -22232,10 +22240,10 @@ function refine(fn, _params = {}) {
|
|
|
22232
22240
|
function superRefine(fn, params) {
|
|
22233
22241
|
return _superRefine(fn, params);
|
|
22234
22242
|
}
|
|
22235
|
-
// src/versions.ts
|
|
22243
|
+
// packages/core/src/versions.ts
|
|
22236
22244
|
var OPENCODE = {
|
|
22237
22245
|
min: "2.1.2",
|
|
22238
|
-
maxExclusive: "
|
|
22246
|
+
maxExclusive: "3.0.0",
|
|
22239
22247
|
tested: "2.2.0",
|
|
22240
22248
|
npmCli: "@opencode/cli"
|
|
22241
22249
|
};
|
|
@@ -22268,7 +22276,7 @@ var PONYTAIL = {
|
|
|
22268
22276
|
]
|
|
22269
22277
|
};
|
|
22270
22278
|
|
|
22271
|
-
// src/config/schema.ts
|
|
22279
|
+
// packages/core/src/config/schema.ts
|
|
22272
22280
|
var CONFIG_SCHEMA_VERSION = 4;
|
|
22273
22281
|
var CONFIG_FILE = "factory.config.jsonc";
|
|
22274
22282
|
var LANGUAGES = [
|
|
@@ -22686,7 +22694,7 @@ function providerIds(config) {
|
|
|
22686
22694
|
return [...new Set(allModels(config).map((m) => m.split("/")[0] ?? m))].sort();
|
|
22687
22695
|
}
|
|
22688
22696
|
|
|
22689
|
-
// src/config/load.ts
|
|
22697
|
+
// packages/core/src/config/load.ts
|
|
22690
22698
|
function findConfigRoot(start) {
|
|
22691
22699
|
let dir = realpathSync(resolve(start));
|
|
22692
22700
|
for (;; ) {
|
|
@@ -22748,7 +22756,7 @@ function loadConfig(root) {
|
|
|
22748
22756
|
return { root, file, text, config: parseConfigText(text, CONFIG_FILE) };
|
|
22749
22757
|
}
|
|
22750
22758
|
|
|
22751
|
-
// src/git/repo.ts
|
|
22759
|
+
// packages/core/src/git/repo.ts
|
|
22752
22760
|
var CHANGE_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
22753
22761
|
var changeBranch = (id) => `change/${id}`;
|
|
22754
22762
|
async function dirtyPaths(dir) {
|
|
@@ -22802,11 +22810,11 @@ async function resolveBranchRef(dir, branch, options = {}) {
|
|
|
22802
22810
|
]);
|
|
22803
22811
|
}
|
|
22804
22812
|
|
|
22805
|
-
// src/openspec/changes.ts
|
|
22813
|
+
// packages/core/src/openspec/changes.ts
|
|
22806
22814
|
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
22807
22815
|
import { join as join3 } from "node:path";
|
|
22808
22816
|
|
|
22809
|
-
// node_modules/yaml/dist/index.js
|
|
22817
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js
|
|
22810
22818
|
var composer = require_composer();
|
|
22811
22819
|
var Document = require_Document();
|
|
22812
22820
|
var Schema = require_Schema();
|
|
@@ -22852,7 +22860,7 @@ var $stringify = publicApi.stringify;
|
|
|
22852
22860
|
var $visit = visit2.visit;
|
|
22853
22861
|
var $visitAsync = visit2.visitAsync;
|
|
22854
22862
|
|
|
22855
|
-
// src/tasks/parse.ts
|
|
22863
|
+
// packages/core/src/tasks/parse.ts
|
|
22856
22864
|
var TASK_LINE = /^- \[( |x|X)\] (\d+(?:\.\d+)+)\s+(.+?)\s*$/;
|
|
22857
22865
|
var ANY_CHECKBOX = /^\s*[-*] \[[ xX]\]/;
|
|
22858
22866
|
var META_LINE = /^\s{2,}- (repo|deps|touches):\s*(.*?)\s*$/;
|
|
@@ -22923,7 +22931,7 @@ function normalizeCheckboxes(text) {
|
|
|
22923
22931
|
`);
|
|
22924
22932
|
}
|
|
22925
22933
|
|
|
22926
|
-
// src/openspec/cli.ts
|
|
22934
|
+
// packages/core/src/openspec/cli.ts
|
|
22927
22935
|
import {
|
|
22928
22936
|
existsSync as existsSync2,
|
|
22929
22937
|
mkdirSync,
|
|
@@ -22936,7 +22944,7 @@ import {
|
|
|
22936
22944
|
import { tmpdir } from "node:os";
|
|
22937
22945
|
import { join as join2, relative, sep } from "node:path";
|
|
22938
22946
|
|
|
22939
|
-
// src/tasks/glob.ts
|
|
22947
|
+
// packages/core/src/tasks/glob.ts
|
|
22940
22948
|
var cache = new Map;
|
|
22941
22949
|
function globRegExp(glob) {
|
|
22942
22950
|
const cached = cache.get(glob);
|
|
@@ -23003,7 +23011,7 @@ function opencodeGlobRegExp(glob) {
|
|
|
23003
23011
|
return new RegExp(`^${body}$`);
|
|
23004
23012
|
}
|
|
23005
23013
|
|
|
23006
|
-
// src/tasks/dag.ts
|
|
23014
|
+
// packages/core/src/tasks/dag.ts
|
|
23007
23015
|
function globSyntaxError(glob) {
|
|
23008
23016
|
let bracket = false;
|
|
23009
23017
|
let braces = 0;
|
|
@@ -23151,7 +23159,7 @@ function dependentsOf(tasks, id) {
|
|
|
23151
23159
|
return [...out];
|
|
23152
23160
|
}
|
|
23153
23161
|
|
|
23154
|
-
// src/tools.ts
|
|
23162
|
+
// packages/core/src/tools.ts
|
|
23155
23163
|
var TOOL_SPECS = {
|
|
23156
23164
|
git: {
|
|
23157
23165
|
bin: "git",
|
|
@@ -23198,8 +23206,9 @@ function compareVersions(a, b) {
|
|
|
23198
23206
|
}
|
|
23199
23207
|
return 0;
|
|
23200
23208
|
}
|
|
23201
|
-
async function checkTool(name, cwd) {
|
|
23209
|
+
async function checkTool(name, cwd, requirement) {
|
|
23202
23210
|
const spec = TOOL_SPECS[name];
|
|
23211
|
+
const floor = requirement !== undefined && compareVersions(requirement.min, spec.min) > 0 ? requirement.min : spec.min;
|
|
23203
23212
|
const res = await exec([toolBin(name), "--version"], {
|
|
23204
23213
|
cwd,
|
|
23205
23214
|
env: toolEnv(name),
|
|
@@ -23209,12 +23218,13 @@ async function checkTool(name, cwd) {
|
|
|
23209
23218
|
if (version === undefined) {
|
|
23210
23219
|
return { tool: name, ok: false, problem: "not found", fix: spec.install };
|
|
23211
23220
|
}
|
|
23212
|
-
if (compareVersions(version,
|
|
23221
|
+
if (compareVersions(version, floor) < 0) {
|
|
23222
|
+
const reason = requirement === undefined ? "" : ` — ${requirement.reason}`;
|
|
23213
23223
|
return {
|
|
23214
23224
|
tool: name,
|
|
23215
23225
|
ok: false,
|
|
23216
23226
|
version,
|
|
23217
|
-
problem: `${version} < ${
|
|
23227
|
+
problem: `${version} < ${floor}${reason}`,
|
|
23218
23228
|
fix: spec.install
|
|
23219
23229
|
};
|
|
23220
23230
|
}
|
|
@@ -23229,11 +23239,11 @@ async function checkTool(name, cwd) {
|
|
|
23229
23239
|
}
|
|
23230
23240
|
return { tool: name, ok: true, version };
|
|
23231
23241
|
}
|
|
23232
|
-
function checkTools(names, cwd) {
|
|
23233
|
-
return Promise.all(names.map((n) => checkTool(n, cwd)));
|
|
23242
|
+
function checkTools(names, cwd, requirements = {}) {
|
|
23243
|
+
return Promise.all(names.map((n) => checkTool(n, cwd, requirements[n])));
|
|
23234
23244
|
}
|
|
23235
23245
|
|
|
23236
|
-
// src/openspec/cli.ts
|
|
23246
|
+
// packages/core/src/openspec/cli.ts
|
|
23237
23247
|
function env(root) {
|
|
23238
23248
|
const xdg = join2(root, ".factory", "cache", "openspec-xdg");
|
|
23239
23249
|
mkdirSync(xdg, { recursive: true });
|
|
@@ -23341,7 +23351,7 @@ async function renderOpenspecTools(root) {
|
|
|
23341
23351
|
}
|
|
23342
23352
|
}
|
|
23343
23353
|
|
|
23344
|
-
// src/openspec/changes.ts
|
|
23354
|
+
// packages/core/src/openspec/changes.ts
|
|
23345
23355
|
var factoryRunFile = (root, id) => join3(root, ".factory", "runs", `${id}.json`);
|
|
23346
23356
|
var hasRun = (root, id) => existsSync3(factoryRunFile(root, id));
|
|
23347
23357
|
function pendingChanges(root) {
|
|
@@ -23414,11 +23424,11 @@ function section(text, heading) {
|
|
|
23414
23424
|
`).trim();
|
|
23415
23425
|
}
|
|
23416
23426
|
|
|
23417
|
-
// src/pipeline/design.ts
|
|
23427
|
+
// packages/core/src/pipeline/design.ts
|
|
23418
23428
|
import { existsSync as existsSync11 } from "node:fs";
|
|
23419
23429
|
import { join as join12 } from "node:path";
|
|
23420
23430
|
|
|
23421
|
-
// src/config/instructions.ts
|
|
23431
|
+
// packages/core/src/config/instructions.ts
|
|
23422
23432
|
import { relative as relative2 } from "node:path";
|
|
23423
23433
|
var repoOf = (config, name) => config.repos.find((r) => r.name === name)?.path ?? name;
|
|
23424
23434
|
function instructionPaths(config, repo) {
|
|
@@ -23443,7 +23453,7 @@ function allInstructionPaths(config) {
|
|
|
23443
23453
|
];
|
|
23444
23454
|
}
|
|
23445
23455
|
|
|
23446
|
-
// src/git/branching.ts
|
|
23456
|
+
// packages/core/src/git/branching.ts
|
|
23447
23457
|
import { existsSync as existsSync4 } from "node:fs";
|
|
23448
23458
|
import { join as join4 } from "node:path";
|
|
23449
23459
|
async function switchToChangeBranch(dir, branch, start) {
|
|
@@ -23497,11 +23507,11 @@ async function branchSubmodule(root, repo, id) {
|
|
|
23497
23507
|
return { repo: repo.name, branch, base, created };
|
|
23498
23508
|
}
|
|
23499
23509
|
|
|
23500
|
-
// src/graph/graph.ts
|
|
23510
|
+
// packages/core/src/graph/graph.ts
|
|
23501
23511
|
import { existsSync as existsSync7, readFileSync as readFileSync5, rmSync as rmSync4, statSync as statSync4 } from "node:fs";
|
|
23502
23512
|
import { join as join7 } from "node:path";
|
|
23503
23513
|
|
|
23504
|
-
// src/logs/log.ts
|
|
23514
|
+
// packages/core/src/logs/log.ts
|
|
23505
23515
|
import {
|
|
23506
23516
|
appendFileSync,
|
|
23507
23517
|
existsSync as existsSync5,
|
|
@@ -23513,7 +23523,7 @@ import {
|
|
|
23513
23523
|
} from "node:fs";
|
|
23514
23524
|
import { join as join5 } from "node:path";
|
|
23515
23525
|
|
|
23516
|
-
// src/logs/redact.ts
|
|
23526
|
+
// packages/core/src/logs/redact.ts
|
|
23517
23527
|
var MARK = (kind) => `[REDACTED:${kind}]`;
|
|
23518
23528
|
var PATTERNS = [
|
|
23519
23529
|
[
|
|
@@ -23559,7 +23569,7 @@ function redact(text, envValues = [], options = {}) {
|
|
|
23559
23569
|
}
|
|
23560
23570
|
var redactProcess = (text) => redact(text, secretEnvValues(process.env));
|
|
23561
23571
|
|
|
23562
|
-
// src/logs/log.ts
|
|
23572
|
+
// packages/core/src/logs/log.ts
|
|
23563
23573
|
function redactValue(value, env, heuristic) {
|
|
23564
23574
|
if (typeof value === "string")
|
|
23565
23575
|
return redact(value, env, { heuristic });
|
|
@@ -23605,7 +23615,7 @@ function pruneLogs(root, retentionDays, now = Date.now()) {
|
|
|
23605
23615
|
return removed;
|
|
23606
23616
|
}
|
|
23607
23617
|
|
|
23608
|
-
// src/state/files.ts
|
|
23618
|
+
// packages/core/src/state/files.ts
|
|
23609
23619
|
import {
|
|
23610
23620
|
closeSync,
|
|
23611
23621
|
existsSync as existsSync6,
|
|
@@ -23716,7 +23726,7 @@ async function withFileLock(path, fn, timeoutMs = 1e4, options = {}) {
|
|
|
23716
23726
|
}
|
|
23717
23727
|
}
|
|
23718
23728
|
|
|
23719
|
-
// src/graph/graph.ts
|
|
23729
|
+
// packages/core/src/graph/graph.ts
|
|
23720
23730
|
var graphDir = (root) => join7(root, "graphify-out");
|
|
23721
23731
|
var graphFile = (root) => join7(graphDir(root), "graph.json");
|
|
23722
23732
|
var metaFile = (root) => factoryDir(root, "graph-meta.json");
|
|
@@ -23822,7 +23832,7 @@ function dependentFiles(root, files) {
|
|
|
23822
23832
|
return out;
|
|
23823
23833
|
}
|
|
23824
23834
|
|
|
23825
|
-
// src/handoff/schema.ts
|
|
23835
|
+
// packages/core/src/handoff/schema.ts
|
|
23826
23836
|
var Finding = strictObject({
|
|
23827
23837
|
severity: _enum(["must", "should", "nice"]),
|
|
23828
23838
|
file: string2().optional(),
|
|
@@ -23847,7 +23857,7 @@ function handoffJsonSchema() {
|
|
|
23847
23857
|
`;
|
|
23848
23858
|
}
|
|
23849
23859
|
|
|
23850
|
-
// src/runtime/types.ts
|
|
23860
|
+
// packages/core/src/runtime/types.ts
|
|
23851
23861
|
var ZERO_USAGE = {
|
|
23852
23862
|
input: 0,
|
|
23853
23863
|
output: 0,
|
|
@@ -23867,7 +23877,7 @@ function addUsage(a, b) {
|
|
|
23867
23877
|
};
|
|
23868
23878
|
}
|
|
23869
23879
|
|
|
23870
|
-
// src/runtime/handoff.ts
|
|
23880
|
+
// packages/core/src/runtime/handoff.ts
|
|
23871
23881
|
var FENCED = /```json\s*\n([\s\S]*?)\n?```/g;
|
|
23872
23882
|
function extractHandoff(text) {
|
|
23873
23883
|
const blocks = [...text.matchAll(FENCED)].map((m) => m[1] ?? "");
|
|
@@ -23924,11 +23934,11 @@ function decisionValues(handoff) {
|
|
|
23924
23934
|
return out;
|
|
23925
23935
|
}
|
|
23926
23936
|
|
|
23927
|
-
// src/state/active.ts
|
|
23937
|
+
// packages/core/src/state/active.ts
|
|
23928
23938
|
import { rmSync as rmSync5 } from "node:fs";
|
|
23929
23939
|
import { hostname as hostname2 } from "node:os";
|
|
23930
23940
|
|
|
23931
|
-
// src/state/run.ts
|
|
23941
|
+
// packages/core/src/state/run.ts
|
|
23932
23942
|
import { existsSync as existsSync8, readdirSync as readdirSync4 } from "node:fs";
|
|
23933
23943
|
var PHASES = [
|
|
23934
23944
|
"intake",
|
|
@@ -24086,7 +24096,7 @@ function recordTask(task, event, detail) {
|
|
|
24086
24096
|
task.history.splice(0, task.history.length - MAX_HISTORY);
|
|
24087
24097
|
}
|
|
24088
24098
|
|
|
24089
|
-
// src/state/active.ts
|
|
24099
|
+
// packages/core/src/state/active.ts
|
|
24090
24100
|
var ActiveLock = strictObject({
|
|
24091
24101
|
changeId: string2(),
|
|
24092
24102
|
pid: int().nullable(),
|
|
@@ -24167,11 +24177,11 @@ function dequeue(root) {
|
|
|
24167
24177
|
});
|
|
24168
24178
|
}
|
|
24169
24179
|
|
|
24170
|
-
// src/usage/usage.ts
|
|
24180
|
+
// packages/core/src/usage/usage.ts
|
|
24171
24181
|
import { existsSync as existsSync9, readdirSync as readdirSync5, readFileSync as readFileSync6, renameSync as renameSync2 } from "node:fs";
|
|
24172
24182
|
import { join as join9, relative as relative4 } from "node:path";
|
|
24173
24183
|
|
|
24174
|
-
// src/artifacts/paths.ts
|
|
24184
|
+
// packages/core/src/artifacts/paths.ts
|
|
24175
24185
|
import { join as join8 } from "node:path";
|
|
24176
24186
|
var ARTIFACTS_DIR = "factory-records";
|
|
24177
24187
|
var ARTIFACT_ID = /^[a-z0-9][a-z0-9-]*$/;
|
|
@@ -24183,7 +24193,7 @@ function artifactFile(root, kind, name) {
|
|
|
24183
24193
|
}
|
|
24184
24194
|
var artifactDir = (root, kind) => kind === undefined ? join8(root, ARTIFACTS_DIR) : join8(root, ARTIFACTS_DIR, kind);
|
|
24185
24195
|
|
|
24186
|
-
// src/usage/usage.ts
|
|
24196
|
+
// packages/core/src/usage/usage.ts
|
|
24187
24197
|
var usageFile = (root, id) => factoryDir(root, "usage", `${id}.json`);
|
|
24188
24198
|
function readLedger(file) {
|
|
24189
24199
|
try {
|
|
@@ -24407,7 +24417,7 @@ function usageReport(summary) {
|
|
|
24407
24417
|
];
|
|
24408
24418
|
}
|
|
24409
24419
|
|
|
24410
|
-
// src/pipeline/clarify.ts
|
|
24420
|
+
// packages/core/src/pipeline/clarify.ts
|
|
24411
24421
|
import { existsSync as existsSync10, mkdirSync as mkdirSync4, readFileSync as readFileSync7, writeFileSync as writeFileSync2 } from "node:fs";
|
|
24412
24422
|
import { dirname as dirname3, join as join10 } from "node:path";
|
|
24413
24423
|
var START = "<!-- ai-factory:questions:start -->";
|
|
@@ -24508,10 +24518,10 @@ ${block}`);
|
|
|
24508
24518
|
writeFileSync2(file, mergeQuestionsBlock(existing, block));
|
|
24509
24519
|
}
|
|
24510
24520
|
|
|
24511
|
-
// src/pipeline/context.ts
|
|
24521
|
+
// packages/core/src/pipeline/context.ts
|
|
24512
24522
|
import { join as join11 } from "node:path";
|
|
24513
24523
|
|
|
24514
|
-
// src/runtime/rate-limit.ts
|
|
24524
|
+
// packages/core/src/runtime/rate-limit.ts
|
|
24515
24525
|
function sleep(ms, signal) {
|
|
24516
24526
|
return new Promise((resolve) => {
|
|
24517
24527
|
if (signal?.aborted)
|
|
@@ -24574,7 +24584,7 @@ function limited(session, limiter, provider, maxWaits = 8) {
|
|
|
24574
24584
|
};
|
|
24575
24585
|
}
|
|
24576
24586
|
|
|
24577
|
-
// src/util/semaphore.ts
|
|
24587
|
+
// packages/core/src/util/semaphore.ts
|
|
24578
24588
|
class Semaphore {
|
|
24579
24589
|
#available;
|
|
24580
24590
|
#waiting = [];
|
|
@@ -24607,7 +24617,7 @@ class Semaphore {
|
|
|
24607
24617
|
}
|
|
24608
24618
|
}
|
|
24609
24619
|
|
|
24610
|
-
// src/util/duration.ts
|
|
24620
|
+
// packages/core/src/util/duration.ts
|
|
24611
24621
|
function formatDuration(ms) {
|
|
24612
24622
|
const bounded = Math.max(0, Math.round(ms));
|
|
24613
24623
|
if (bounded < 950)
|
|
@@ -24623,7 +24633,7 @@ function formatDuration(ms) {
|
|
|
24623
24633
|
return `${hours}h${String(minutes - hours * 60).padStart(2, "0")}m`;
|
|
24624
24634
|
}
|
|
24625
24635
|
|
|
24626
|
-
// src/pipeline/progress.ts
|
|
24636
|
+
// packages/core/src/pipeline/progress.ts
|
|
24627
24637
|
var DEFAULT_HEARTBEAT_MS = 30000;
|
|
24628
24638
|
var SLOW_GATE_MS = 1e4;
|
|
24629
24639
|
var DETAIL_MAX = 100;
|
|
@@ -24932,7 +24942,7 @@ class Progress {
|
|
|
24932
24942
|
}
|
|
24933
24943
|
}
|
|
24934
24944
|
|
|
24935
|
-
// src/pipeline/context.ts
|
|
24945
|
+
// packages/core/src/pipeline/context.ts
|
|
24936
24946
|
class ChangeAborted extends Error {
|
|
24937
24947
|
changeId;
|
|
24938
24948
|
constructor(changeId) {
|
|
@@ -25117,7 +25127,7 @@ class Pipeline {
|
|
|
25117
25127
|
}
|
|
25118
25128
|
}
|
|
25119
25129
|
|
|
25120
|
-
// src/util/fence.ts
|
|
25130
|
+
// packages/core/src/util/fence.ts
|
|
25121
25131
|
function fence(text, info = "") {
|
|
25122
25132
|
const longest = Math.max(0, ...(text.match(/`+/g) ?? []).map((run) => run.length));
|
|
25123
25133
|
const marks = "`".repeat(Math.max(3, longest + 1));
|
|
@@ -25126,7 +25136,7 @@ ${text}
|
|
|
25126
25136
|
${marks}`;
|
|
25127
25137
|
}
|
|
25128
25138
|
|
|
25129
|
-
// src/pipeline/prompts.ts
|
|
25139
|
+
// packages/core/src/pipeline/prompts.ts
|
|
25130
25140
|
var repoLines = (repos) => repos.map((r) => `- ${r.name} (${r.path}): ${r.languages.join(", ") || "no languages detected"}`).join(`
|
|
25131
25141
|
`);
|
|
25132
25142
|
function intakePrompt(request, repos) {
|
|
@@ -25386,7 +25396,7 @@ ${input.diffs.map((d) => `- \`${d}\``).join(`
|
|
|
25386
25396
|
Report only real mismatches between providers and consumers as findings, with \`file\` as a workspace-relative path. If a finding's fix is a wording change in \`openspec/changes/${input.id}/\`, set \`file\` to that spec path instead of the code file where the mismatch shows. Use \`task: "contract-review"\`.`;
|
|
25387
25397
|
}
|
|
25388
25398
|
|
|
25389
|
-
// src/pipeline/design.ts
|
|
25399
|
+
// packages/core/src/pipeline/design.ts
|
|
25390
25400
|
function specDir(p, draft) {
|
|
25391
25401
|
return draft === undefined ? p.root : join12(p.root, draft);
|
|
25392
25402
|
}
|
|
@@ -25619,7 +25629,7 @@ async function design(p, id) {
|
|
|
25619
25629
|
return { ok: issues.length === 0, issues };
|
|
25620
25630
|
}
|
|
25621
25631
|
|
|
25622
|
-
// src/update/update.ts
|
|
25632
|
+
// packages/core/src/update/update.ts
|
|
25623
25633
|
import {
|
|
25624
25634
|
cpSync,
|
|
25625
25635
|
existsSync as existsSync19,
|
|
@@ -25631,11 +25641,11 @@ import {
|
|
|
25631
25641
|
} from "node:fs";
|
|
25632
25642
|
import { dirname as dirname5, join as join23 } from "node:path";
|
|
25633
25643
|
|
|
25634
|
-
// src/detect/contracts.ts
|
|
25644
|
+
// packages/core/src/detect/contracts.ts
|
|
25635
25645
|
import { readFileSync as readFileSync8 } from "node:fs";
|
|
25636
25646
|
import { join as join14 } from "node:path";
|
|
25637
25647
|
|
|
25638
|
-
// src/detect/walk.ts
|
|
25648
|
+
// packages/core/src/detect/walk.ts
|
|
25639
25649
|
import { existsSync as existsSync12, readdirSync as readdirSync6, statSync as statSync5 } from "node:fs";
|
|
25640
25650
|
import { join as join13 } from "node:path";
|
|
25641
25651
|
var SKIP_DIRS = new Set([
|
|
@@ -25705,7 +25715,7 @@ function isWithin(dir, ancestor) {
|
|
|
25705
25715
|
return ancestor === "." || dir === ancestor || dir.startsWith(`${ancestor}/`);
|
|
25706
25716
|
}
|
|
25707
25717
|
|
|
25708
|
-
// src/detect/contracts.ts
|
|
25718
|
+
// packages/core/src/detect/contracts.ts
|
|
25709
25719
|
var MAX_SPEC_BYTES = 1024 * 1024;
|
|
25710
25720
|
var MAX_TEXT_BYTES = 256 * 1024;
|
|
25711
25721
|
var MAX_TEXT_FILES = 3000;
|
|
@@ -25853,11 +25863,11 @@ function contractKey(c) {
|
|
|
25853
25863
|
return `${c.kind}:${c.provider}:${c.path}`;
|
|
25854
25864
|
}
|
|
25855
25865
|
|
|
25856
|
-
// src/detect/workspace.ts
|
|
25866
|
+
// packages/core/src/detect/workspace.ts
|
|
25857
25867
|
import { existsSync as existsSync13, readFileSync as readFileSync10 } from "node:fs";
|
|
25858
25868
|
import { basename, join as join16 } from "node:path";
|
|
25859
25869
|
|
|
25860
|
-
// src/detect/languages.ts
|
|
25870
|
+
// packages/core/src/detect/languages.ts
|
|
25861
25871
|
import { readFileSync as readFileSync9 } from "node:fs";
|
|
25862
25872
|
import { join as join15 } from "node:path";
|
|
25863
25873
|
var MAX_MANIFEST_BYTES = 256 * 1024;
|
|
@@ -25970,7 +25980,7 @@ function detectLanguages(root, files) {
|
|
|
25970
25980
|
return { languages, subPaths: emitted.sort((a, b) => a.path.localeCompare(b.path)) };
|
|
25971
25981
|
}
|
|
25972
25982
|
|
|
25973
|
-
// src/detect/workspace.ts
|
|
25983
|
+
// packages/core/src/detect/workspace.ts
|
|
25974
25984
|
var WALK = { maxDepth: 6, maxFiles: 20000 };
|
|
25975
25985
|
function repoNameFrom(path) {
|
|
25976
25986
|
const name = basename(path).toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
@@ -26136,7 +26146,7 @@ function toRepoConfig(repo) {
|
|
|
26136
26146
|
return rest;
|
|
26137
26147
|
}
|
|
26138
26148
|
|
|
26139
|
-
// src/detect/diff.ts
|
|
26149
|
+
// packages/core/src/detect/diff.ts
|
|
26140
26150
|
var same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
26141
26151
|
function repoChanges(configured, detected) {
|
|
26142
26152
|
const changes = [];
|
|
@@ -26232,7 +26242,7 @@ function formatChange(change) {
|
|
|
26232
26242
|
}
|
|
26233
26243
|
}
|
|
26234
26244
|
|
|
26235
|
-
// src/lock/lock.ts
|
|
26245
|
+
// packages/core/src/lock/lock.ts
|
|
26236
26246
|
import { existsSync as existsSync14, readFileSync as readFileSync11 } from "node:fs";
|
|
26237
26247
|
import { join as join17 } from "node:path";
|
|
26238
26248
|
var LOCK_FILE = "factory.lock.json";
|
|
@@ -26260,7 +26270,7 @@ var Lock = strictObject({
|
|
|
26260
26270
|
}).default({}),
|
|
26261
26271
|
managed: record(string2(), LockEntry)
|
|
26262
26272
|
});
|
|
26263
|
-
function buildLock(managed, addons = {}) {
|
|
26273
|
+
function buildLock(managed, addons = {}, opencodeMin = OPENCODE.min) {
|
|
26264
26274
|
const sorted = Object.fromEntries(Object.entries(managed).sort(([a], [b]) => a.localeCompare(b)));
|
|
26265
26275
|
return {
|
|
26266
26276
|
lockVersion: LOCK_VERSION,
|
|
@@ -26268,7 +26278,7 @@ function buildLock(managed, addons = {}) {
|
|
|
26268
26278
|
configSchemaVersion: CONFIG_SCHEMA_VERSION,
|
|
26269
26279
|
tools: {
|
|
26270
26280
|
git: { min: GIT.min, tested: GIT.tested },
|
|
26271
|
-
opencode: { min:
|
|
26281
|
+
opencode: { min: opencodeMin, maxExclusive: OPENCODE.maxExclusive, tested: OPENCODE.tested },
|
|
26272
26282
|
openspec: { min: OPENSPEC.min, maxExclusive: OPENSPEC.maxExclusive, tested: OPENSPEC.tested },
|
|
26273
26283
|
graphify: { min: GRAPHIFY.min, maxExclusive: GRAPHIFY.maxExclusive, tested: GRAPHIFY.tested }
|
|
26274
26284
|
},
|
|
@@ -26307,7 +26317,7 @@ function ensureNotNewer(lock, allow = false) {
|
|
|
26307
26317
|
]);
|
|
26308
26318
|
}
|
|
26309
26319
|
|
|
26310
|
-
// src/migrations/001-graph-exclude-defaults.ts
|
|
26320
|
+
// packages/core/src/migrations/001-graph-exclude-defaults.ts
|
|
26311
26321
|
var V1_GRAPH_EXCLUDE = [
|
|
26312
26322
|
"**/node_modules/**",
|
|
26313
26323
|
"**/target/**",
|
|
@@ -26331,7 +26341,7 @@ var graphExcludeDefaults = {
|
|
|
26331
26341
|
}
|
|
26332
26342
|
};
|
|
26333
26343
|
|
|
26334
|
-
// src/migrations/002-config-v3.ts
|
|
26344
|
+
// packages/core/src/migrations/002-config-v3.ts
|
|
26335
26345
|
var configV3 = {
|
|
26336
26346
|
from: 2,
|
|
26337
26347
|
to: 3,
|
|
@@ -26342,7 +26352,7 @@ var configV3 = {
|
|
|
26342
26352
|
}
|
|
26343
26353
|
};
|
|
26344
26354
|
|
|
26345
|
-
// src/migrations/003-artifacts.ts
|
|
26355
|
+
// packages/core/src/migrations/003-artifacts.ts
|
|
26346
26356
|
var artifactsV4 = {
|
|
26347
26357
|
from: 3,
|
|
26348
26358
|
to: 4,
|
|
@@ -26363,7 +26373,7 @@ var artifactsV4 = {
|
|
|
26363
26373
|
}
|
|
26364
26374
|
};
|
|
26365
26375
|
|
|
26366
|
-
// src/migrations/index.ts
|
|
26376
|
+
// packages/core/src/migrations/index.ts
|
|
26367
26377
|
var MIGRATIONS = [graphExcludeDefaults, configV3, artifactsV4];
|
|
26368
26378
|
function schemaVersionOf(text) {
|
|
26369
26379
|
const { value } = parseJsonc(text);
|
|
@@ -26393,7 +26403,7 @@ function migrateConfigText(text, migrations = MIGRATIONS) {
|
|
|
26393
26403
|
return { text: out, from, to: current, applied };
|
|
26394
26404
|
}
|
|
26395
26405
|
|
|
26396
|
-
// src/workspace/sync.ts
|
|
26406
|
+
// packages/core/src/workspace/sync.ts
|
|
26397
26407
|
import { existsSync as existsSync18, writeFileSync as writeFileSync5 } from "node:fs";
|
|
26398
26408
|
import { join as join22 } from "node:path";
|
|
26399
26409
|
|
|
@@ -26636,7 +26646,7 @@ The add-on above is advice about writing less code. Where it conflicts with the
|
|
|
26636
26646
|
7. {{shortcuts}}
|
|
26637
26647
|
`;
|
|
26638
26648
|
|
|
26639
|
-
// src/addons/hash.ts
|
|
26649
|
+
// packages/core/src/addons/hash.ts
|
|
26640
26650
|
import { createHash } from "node:crypto";
|
|
26641
26651
|
function contentHash(files) {
|
|
26642
26652
|
const lines = [...files].sort((a, b) => a.path < b.path ? -1 : a.path > b.path ? 1 : 0).map((f) => `${createHash("sha256").update(f.content).digest("hex")} ${f.path}
|
|
@@ -26654,7 +26664,7 @@ function isText(bytes) {
|
|
|
26654
26664
|
}
|
|
26655
26665
|
}
|
|
26656
26666
|
|
|
26657
|
-
// src/addons/ponytail.ts
|
|
26667
|
+
// packages/core/src/addons/ponytail.ts
|
|
26658
26668
|
var PONYTAIL_DIR = ".opencode/addons/ponytail";
|
|
26659
26669
|
var PONYTAIL_REF = `${PONYTAIL.tag}@${PONYTAIL.commit}`;
|
|
26660
26670
|
var VENDORED = {
|
|
@@ -26732,7 +26742,7 @@ ${reviewChecklist()}`, REVIEWER_MAPPING);
|
|
|
26732
26742
|
`);
|
|
26733
26743
|
}
|
|
26734
26744
|
|
|
26735
|
-
// src/git/commit.ts
|
|
26745
|
+
// packages/core/src/git/commit.ts
|
|
26736
26746
|
import { existsSync as existsSync15 } from "node:fs";
|
|
26737
26747
|
import { join as join18 } from "node:path";
|
|
26738
26748
|
var TYPE_BY_VERB = [
|
|
@@ -26797,7 +26807,7 @@ function commitTask(worktree, id, task, title, type, style = {}) {
|
|
|
26797
26807
|
});
|
|
26798
26808
|
}
|
|
26799
26809
|
|
|
26800
|
-
// src/git/hooks.ts
|
|
26810
|
+
// packages/core/src/git/hooks.ts
|
|
26801
26811
|
import { chmodSync, existsSync as existsSync16, mkdirSync as mkdirSync5, readFileSync as readFileSync12, renameSync as renameSync3, writeFileSync as writeFileSync3 } from "node:fs";
|
|
26802
26812
|
import { join as join19, relative as relative5 } from "node:path";
|
|
26803
26813
|
var HOOK_MARKER = "# ai-factory-hook v1";
|
|
@@ -26887,7 +26897,7 @@ function agentGitEnv(base = process.env) {
|
|
|
26887
26897
|
};
|
|
26888
26898
|
}
|
|
26889
26899
|
|
|
26890
|
-
// src/managed/sync.ts
|
|
26900
|
+
// packages/core/src/managed/sync.ts
|
|
26891
26901
|
import { createHash as createHash2 } from "node:crypto";
|
|
26892
26902
|
import {
|
|
26893
26903
|
existsSync as existsSync17,
|
|
@@ -26902,7 +26912,7 @@ import { tmpdir as tmpdir2 } from "node:os";
|
|
|
26902
26912
|
import { dirname as dirname4, join as join21, resolve as resolve2 } from "node:path";
|
|
26903
26913
|
import { deflateSync } from "node:zlib";
|
|
26904
26914
|
|
|
26905
|
-
// src/render/workspace.ts
|
|
26915
|
+
// packages/core/src/render/workspace.ts
|
|
26906
26916
|
import { readFileSync as readFileSync13 } from "node:fs";
|
|
26907
26917
|
import { join as join20 } from "node:path";
|
|
26908
26918
|
|
|
@@ -27126,18 +27136,18 @@ Use \`task: "<task id>"\` in your handoff and list the scenario → test mapping
|
|
|
27126
27136
|
`;
|
|
27127
27137
|
|
|
27128
27138
|
// templates/plugin/factory-plugin.txt
|
|
27129
|
-
var factory_plugin_default = `// Loomwright opencode plugin — generated from src/plugin/entry.ts; do not edit.
|
|
27139
|
+
var factory_plugin_default = `// Loomwright opencode plugin — generated from packages/core/src/plugin/entry.ts; do not edit.
|
|
27130
27140
|
// @bun
|
|
27131
|
-
// src/plugin/entry.ts
|
|
27141
|
+
// packages/core/src/plugin/entry.ts
|
|
27132
27142
|
import { existsSync as existsSync4, readdirSync as readdirSync3, readFileSync as readFileSync3, statSync as statSync3 } from "fs";
|
|
27133
27143
|
import { isAbsolute as isAbsolute4, join as join8, relative as relative3, resolve as resolve5 } from "path";
|
|
27134
27144
|
|
|
27135
|
-
// src/approval/approval.ts
|
|
27145
|
+
// packages/core/src/approval/approval.ts
|
|
27136
27146
|
import { createHash } from "crypto";
|
|
27137
27147
|
import { existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "fs";
|
|
27138
27148
|
import { dirname, join } from "path";
|
|
27139
27149
|
|
|
27140
|
-
// src/tasks/parse.ts
|
|
27150
|
+
// packages/core/src/tasks/parse.ts
|
|
27141
27151
|
var TASK_LINE = /^- \\[( |x|X)\\] (\\d+(?:\\.\\d+)+)\\s+(.+?)\\s*$/;
|
|
27142
27152
|
function normalizeCheckboxes(text) {
|
|
27143
27153
|
return text.split(\`
|
|
@@ -27145,7 +27155,7 @@ function normalizeCheckboxes(text) {
|
|
|
27145
27155
|
\`);
|
|
27146
27156
|
}
|
|
27147
27157
|
|
|
27148
|
-
// src/approval/approval.ts
|
|
27158
|
+
// packages/core/src/approval/approval.ts
|
|
27149
27159
|
function parseApproval(value) {
|
|
27150
27160
|
if (typeof value !== "object" || value === null)
|
|
27151
27161
|
return;
|
|
@@ -27217,7 +27227,7 @@ function checkApprovalHash(root, id) {
|
|
|
27217
27227
|
return { valid: true, approval };
|
|
27218
27228
|
}
|
|
27219
27229
|
|
|
27220
|
-
// src/logs/log.ts
|
|
27230
|
+
// packages/core/src/logs/log.ts
|
|
27221
27231
|
import {
|
|
27222
27232
|
appendFileSync,
|
|
27223
27233
|
existsSync as existsSync2,
|
|
@@ -27229,7 +27239,7 @@ import {
|
|
|
27229
27239
|
} from "fs";
|
|
27230
27240
|
import { join as join2 } from "path";
|
|
27231
27241
|
|
|
27232
|
-
// src/logs/redact.ts
|
|
27242
|
+
// packages/core/src/logs/redact.ts
|
|
27233
27243
|
var MARK = (kind) => \`[REDACTED:\${kind}]\`;
|
|
27234
27244
|
var PATTERNS = [
|
|
27235
27245
|
[
|
|
@@ -27274,7 +27284,7 @@ function redact(text, envValues = [], options = {}) {
|
|
|
27274
27284
|
return out;
|
|
27275
27285
|
}
|
|
27276
27286
|
|
|
27277
|
-
// src/logs/log.ts
|
|
27287
|
+
// packages/core/src/logs/log.ts
|
|
27278
27288
|
function redactValue(value, env, heuristic) {
|
|
27279
27289
|
if (typeof value === "string")
|
|
27280
27290
|
return redact(value, env, { heuristic });
|
|
@@ -27298,7 +27308,7 @@ function appendLog(root, changeId, entry, options = {}) {
|
|
|
27298
27308
|
\`);
|
|
27299
27309
|
}
|
|
27300
27310
|
|
|
27301
|
-
// src/policy/paths.ts
|
|
27311
|
+
// packages/core/src/policy/paths.ts
|
|
27302
27312
|
var PROTECTED = [
|
|
27303
27313
|
/^openspec\\/specs(\\/|$)/i,
|
|
27304
27314
|
/^\\.opencode(\\/|$)/i,
|
|
@@ -27377,7 +27387,7 @@ function isGeneratedLockfile(path) {
|
|
|
27377
27387
|
return GENERATED_LOCKFILES.has(p.slice(p.lastIndexOf("/") + 1).toLowerCase());
|
|
27378
27388
|
}
|
|
27379
27389
|
|
|
27380
|
-
// src/policy/realpath.ts
|
|
27390
|
+
// packages/core/src/policy/realpath.ts
|
|
27381
27391
|
import { lstatSync, readlinkSync, realpathSync } from "fs";
|
|
27382
27392
|
import { basename, dirname as dirname2, join as join3, resolve } from "path";
|
|
27383
27393
|
function realPathOf(abs, depth = 0) {
|
|
@@ -27407,7 +27417,7 @@ function realPathOf(abs, depth = 0) {
|
|
|
27407
27417
|
return abs;
|
|
27408
27418
|
}
|
|
27409
27419
|
|
|
27410
|
-
// src/policy/sandbox.ts
|
|
27420
|
+
// packages/core/src/policy/sandbox.ts
|
|
27411
27421
|
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
|
|
27412
27422
|
import { isAbsolute, join as join4, resolve as resolve2 } from "path";
|
|
27413
27423
|
var SANDBOX_EXEC = "/usr/bin/sandbox-exec";
|
|
@@ -27551,10 +27561,10 @@ function checkoutPolicy(workspace, dir, extra = [], home = process.env.HOME) {
|
|
|
27551
27561
|
};
|
|
27552
27562
|
}
|
|
27553
27563
|
|
|
27554
|
-
// src/policy/scope.ts
|
|
27564
|
+
// packages/core/src/policy/scope.ts
|
|
27555
27565
|
import { isAbsolute as isAbsolute2, normalize, relative, resolve as resolve3 } from "path";
|
|
27556
27566
|
|
|
27557
|
-
// src/tasks/glob.ts
|
|
27567
|
+
// packages/core/src/tasks/glob.ts
|
|
27558
27568
|
var cache = new Map;
|
|
27559
27569
|
function globRegExp(glob) {
|
|
27560
27570
|
const cached = cache.get(glob);
|
|
@@ -27594,7 +27604,7 @@ function opencodeGlobRegExp(glob) {
|
|
|
27594
27604
|
return new RegExp(\`^\${body}$\`);
|
|
27595
27605
|
}
|
|
27596
27606
|
|
|
27597
|
-
// src/policy/scope.ts
|
|
27607
|
+
// packages/core/src/policy/scope.ts
|
|
27598
27608
|
var ROLES = [
|
|
27599
27609
|
"orchestrator",
|
|
27600
27610
|
"architect",
|
|
@@ -27691,7 +27701,7 @@ function patchPaths(patchText) {
|
|
|
27691
27701
|
return [...out];
|
|
27692
27702
|
}
|
|
27693
27703
|
|
|
27694
|
-
// src/policy/secrets.ts
|
|
27704
|
+
// packages/core/src/policy/secrets.ts
|
|
27695
27705
|
import { join as join5 } from "path";
|
|
27696
27706
|
var GLOB = /[*?[]/;
|
|
27697
27707
|
function segmentRegExp(segment) {
|
|
@@ -27806,14 +27816,306 @@ function mentionedSecret(code) {
|
|
|
27806
27816
|
return code.match(MENTION)?.[1];
|
|
27807
27817
|
}
|
|
27808
27818
|
|
|
27809
|
-
// src/policy/session-files.ts
|
|
27819
|
+
// packages/core/src/policy/session-files.ts
|
|
27810
27820
|
import { join as join6 } from "path";
|
|
27811
27821
|
var sessionContextFile = (workspace, sessionId) => join6(workspace, ".factory", "sessions", \`\${sessionId}.json\`);
|
|
27812
27822
|
|
|
27813
|
-
// src/policy/shell.ts
|
|
27823
|
+
// packages/core/src/policy/shell.ts
|
|
27814
27824
|
import { basename as basename2, dirname as dirname3, isAbsolute as isAbsolute3, join as join7, normalize as normalize2, relative as relative2, resolve as resolve4 } from "path";
|
|
27815
27825
|
|
|
27816
|
-
// src/policy/
|
|
27826
|
+
// packages/core/src/policy/script-text.ts
|
|
27827
|
+
function execSinkLiterals(source) {
|
|
27828
|
+
const results = [];
|
|
27829
|
+
const sinks = [];
|
|
27830
|
+
const templates = [];
|
|
27831
|
+
let mode = "code";
|
|
27832
|
+
let i = 0;
|
|
27833
|
+
let prevWord;
|
|
27834
|
+
let stringQuote = "";
|
|
27835
|
+
let stringSink;
|
|
27836
|
+
let stringText = "";
|
|
27837
|
+
let regexAllowed = true;
|
|
27838
|
+
let regexInClass = false;
|
|
27839
|
+
const currentSink = () => sinks.at(-1);
|
|
27840
|
+
const addPart = (sink, text) => {
|
|
27841
|
+
if (sink === undefined)
|
|
27842
|
+
return;
|
|
27843
|
+
if (sink.glue)
|
|
27844
|
+
sink.text += text;
|
|
27845
|
+
else if (text.trim() !== "")
|
|
27846
|
+
sink.text = sink.text === "" ? text : \`\${sink.text} \${text}\`;
|
|
27847
|
+
sink.glue = false;
|
|
27848
|
+
sink.afterPart = true;
|
|
27849
|
+
};
|
|
27850
|
+
const breakChain = (sink) => {
|
|
27851
|
+
if (sink === undefined)
|
|
27852
|
+
return;
|
|
27853
|
+
sink.glue = false;
|
|
27854
|
+
sink.afterPart = false;
|
|
27855
|
+
};
|
|
27856
|
+
const openSink = () => {
|
|
27857
|
+
const sink = { text: "", glue: false, afterPart: false };
|
|
27858
|
+
results.push(sink);
|
|
27859
|
+
return sink;
|
|
27860
|
+
};
|
|
27861
|
+
while (i < source.length) {
|
|
27862
|
+
const ch = source[i] ?? "";
|
|
27863
|
+
if (mode === "line") {
|
|
27864
|
+
if (ch === \`
|
|
27865
|
+
\`)
|
|
27866
|
+
mode = "code";
|
|
27867
|
+
i += 1;
|
|
27868
|
+
continue;
|
|
27869
|
+
}
|
|
27870
|
+
if (mode === "block") {
|
|
27871
|
+
if (ch === "*" && source[i + 1] === "/") {
|
|
27872
|
+
mode = "code";
|
|
27873
|
+
i += 2;
|
|
27874
|
+
} else {
|
|
27875
|
+
i += 1;
|
|
27876
|
+
}
|
|
27877
|
+
continue;
|
|
27878
|
+
}
|
|
27879
|
+
if (mode === "string") {
|
|
27880
|
+
if (ch === "\\\\") {
|
|
27881
|
+
const next = source[i + 1];
|
|
27882
|
+
if (next !== undefined)
|
|
27883
|
+
stringText += next;
|
|
27884
|
+
i += next === undefined ? 1 : 2;
|
|
27885
|
+
} else if (ch === stringQuote) {
|
|
27886
|
+
addPart(stringSink, stringText);
|
|
27887
|
+
stringSink = undefined;
|
|
27888
|
+
stringText = "";
|
|
27889
|
+
mode = "code";
|
|
27890
|
+
i += 1;
|
|
27891
|
+
} else {
|
|
27892
|
+
stringText += ch;
|
|
27893
|
+
i += 1;
|
|
27894
|
+
}
|
|
27895
|
+
continue;
|
|
27896
|
+
}
|
|
27897
|
+
if (mode === "template") {
|
|
27898
|
+
const frame = templates.at(-1);
|
|
27899
|
+
if (frame === undefined) {
|
|
27900
|
+
mode = "code";
|
|
27901
|
+
continue;
|
|
27902
|
+
}
|
|
27903
|
+
if (ch === "\\\\") {
|
|
27904
|
+
const next = source[i + 1];
|
|
27905
|
+
if (next !== undefined)
|
|
27906
|
+
frame.text += next;
|
|
27907
|
+
i += next === undefined ? 1 : 2;
|
|
27908
|
+
} else if (ch === "\`") {
|
|
27909
|
+
addPart(frame.sink, frame.text);
|
|
27910
|
+
templates.pop();
|
|
27911
|
+
sinks.pop();
|
|
27912
|
+
prevWord = undefined;
|
|
27913
|
+
mode = "code";
|
|
27914
|
+
i += 1;
|
|
27915
|
+
} else if (ch === "$" && source[i + 1] === "{") {
|
|
27916
|
+
addPart(frame.sink, frame.text);
|
|
27917
|
+
frame.text = "";
|
|
27918
|
+
frame.depth = 1;
|
|
27919
|
+
prevWord = undefined;
|
|
27920
|
+
regexAllowed = true;
|
|
27921
|
+
mode = "code";
|
|
27922
|
+
i += 2;
|
|
27923
|
+
} else {
|
|
27924
|
+
frame.text += ch;
|
|
27925
|
+
i += 1;
|
|
27926
|
+
}
|
|
27927
|
+
continue;
|
|
27928
|
+
}
|
|
27929
|
+
if (mode === "regex") {
|
|
27930
|
+
if (ch === "\\\\") {
|
|
27931
|
+
i += source[i + 1] === undefined ? 1 : 2;
|
|
27932
|
+
} else if (ch === \`
|
|
27933
|
+
\`) {
|
|
27934
|
+
mode = "code";
|
|
27935
|
+
regexAllowed = true;
|
|
27936
|
+
i += 1;
|
|
27937
|
+
} else if (ch === "[") {
|
|
27938
|
+
regexInClass = true;
|
|
27939
|
+
i += 1;
|
|
27940
|
+
} else if (ch === "]") {
|
|
27941
|
+
regexInClass = false;
|
|
27942
|
+
i += 1;
|
|
27943
|
+
} else if (ch === "/" && !regexInClass) {
|
|
27944
|
+
mode = "code";
|
|
27945
|
+
regexAllowed = false;
|
|
27946
|
+
i += 1;
|
|
27947
|
+
while (i < source.length && isIdentChar(source[i] ?? ""))
|
|
27948
|
+
i += 1;
|
|
27949
|
+
} else {
|
|
27950
|
+
i += 1;
|
|
27951
|
+
}
|
|
27952
|
+
continue;
|
|
27953
|
+
}
|
|
27954
|
+
if (ch === " " || ch === "\\t" || ch === \`
|
|
27955
|
+
\` || ch === "\\r") {
|
|
27956
|
+
i += 1;
|
|
27957
|
+
continue;
|
|
27958
|
+
}
|
|
27959
|
+
if (ch === "/" && source[i + 1] === "/") {
|
|
27960
|
+
mode = "line";
|
|
27961
|
+
i += 2;
|
|
27962
|
+
continue;
|
|
27963
|
+
}
|
|
27964
|
+
if (ch === "/" && source[i + 1] === "*") {
|
|
27965
|
+
mode = "block";
|
|
27966
|
+
i += 2;
|
|
27967
|
+
continue;
|
|
27968
|
+
}
|
|
27969
|
+
if (ch === "/" && regexAllowed) {
|
|
27970
|
+
breakChain(currentSink());
|
|
27971
|
+
prevWord = undefined;
|
|
27972
|
+
regexInClass = false;
|
|
27973
|
+
mode = "regex";
|
|
27974
|
+
i += 1;
|
|
27975
|
+
continue;
|
|
27976
|
+
}
|
|
27977
|
+
if (ch === "'" || ch === '"') {
|
|
27978
|
+
stringQuote = ch;
|
|
27979
|
+
stringSink = currentSink();
|
|
27980
|
+
stringText = "";
|
|
27981
|
+
prevWord = undefined;
|
|
27982
|
+
regexAllowed = false;
|
|
27983
|
+
mode = "string";
|
|
27984
|
+
i += 1;
|
|
27985
|
+
continue;
|
|
27986
|
+
}
|
|
27987
|
+
if (ch === "\`") {
|
|
27988
|
+
const tag = prevWord;
|
|
27989
|
+
const sink = tag !== undefined && EXEC_PRIMITIVES.has(tag) ? openSink() : currentSink();
|
|
27990
|
+
sinks.push(sink);
|
|
27991
|
+
templates.push({ sink, depth: 0, text: "" });
|
|
27992
|
+
prevWord = undefined;
|
|
27993
|
+
regexAllowed = false;
|
|
27994
|
+
mode = "template";
|
|
27995
|
+
i += 1;
|
|
27996
|
+
continue;
|
|
27997
|
+
}
|
|
27998
|
+
if (ch === "(") {
|
|
27999
|
+
const callee = prevWord;
|
|
28000
|
+
const sink = callee !== undefined && EXEC_PRIMITIVES.has(callee) ? openSink() : currentSink();
|
|
28001
|
+
sinks.push(sink);
|
|
28002
|
+
breakChain(sink);
|
|
28003
|
+
prevWord = undefined;
|
|
28004
|
+
regexAllowed = true;
|
|
28005
|
+
i += 1;
|
|
28006
|
+
continue;
|
|
28007
|
+
}
|
|
28008
|
+
if (ch === ")") {
|
|
28009
|
+
sinks.pop();
|
|
28010
|
+
breakChain(currentSink());
|
|
28011
|
+
prevWord = undefined;
|
|
28012
|
+
regexAllowed = false;
|
|
28013
|
+
i += 1;
|
|
28014
|
+
continue;
|
|
28015
|
+
}
|
|
28016
|
+
if (ch === "]") {
|
|
28017
|
+
breakChain(currentSink());
|
|
28018
|
+
prevWord = undefined;
|
|
28019
|
+
regexAllowed = false;
|
|
28020
|
+
i += 1;
|
|
28021
|
+
continue;
|
|
28022
|
+
}
|
|
28023
|
+
if (ch === "{") {
|
|
28024
|
+
const frame = templates.at(-1);
|
|
28025
|
+
if (frame !== undefined && frame.depth > 0)
|
|
28026
|
+
frame.depth += 1;
|
|
28027
|
+
breakChain(currentSink());
|
|
28028
|
+
prevWord = undefined;
|
|
28029
|
+
regexAllowed = true;
|
|
28030
|
+
i += 1;
|
|
28031
|
+
continue;
|
|
28032
|
+
}
|
|
28033
|
+
if (ch === "}") {
|
|
28034
|
+
const frame = templates.at(-1);
|
|
28035
|
+
if (frame !== undefined && frame.depth > 0) {
|
|
28036
|
+
frame.depth -= 1;
|
|
28037
|
+
if (frame.depth === 0)
|
|
28038
|
+
mode = "template";
|
|
28039
|
+
}
|
|
28040
|
+
breakChain(currentSink());
|
|
28041
|
+
prevWord = undefined;
|
|
28042
|
+
regexAllowed = false;
|
|
28043
|
+
i += 1;
|
|
28044
|
+
continue;
|
|
28045
|
+
}
|
|
28046
|
+
if ((ch === "+" || ch === "-") && source[i + 1] === ch) {
|
|
28047
|
+
breakChain(currentSink());
|
|
28048
|
+
prevWord = undefined;
|
|
28049
|
+
regexAllowed = false;
|
|
28050
|
+
i += 2;
|
|
28051
|
+
continue;
|
|
28052
|
+
}
|
|
28053
|
+
if (ch === "+") {
|
|
28054
|
+
const sink = currentSink();
|
|
28055
|
+
if (sink !== undefined) {
|
|
28056
|
+
sink.glue = sink.afterPart;
|
|
28057
|
+
sink.afterPart = false;
|
|
28058
|
+
}
|
|
28059
|
+
prevWord = undefined;
|
|
28060
|
+
regexAllowed = true;
|
|
28061
|
+
i += 1;
|
|
28062
|
+
continue;
|
|
28063
|
+
}
|
|
28064
|
+
if (isIdentChar(ch)) {
|
|
28065
|
+
const start = i;
|
|
28066
|
+
while (i < source.length && isIdentChar(source[i] ?? ""))
|
|
28067
|
+
i += 1;
|
|
28068
|
+
breakChain(currentSink());
|
|
28069
|
+
prevWord = source.slice(start, i);
|
|
28070
|
+
regexAllowed = REGEX_PREFIX_WORDS.has(prevWord);
|
|
28071
|
+
continue;
|
|
28072
|
+
}
|
|
28073
|
+
breakChain(currentSink());
|
|
28074
|
+
prevWord = undefined;
|
|
28075
|
+
regexAllowed = true;
|
|
28076
|
+
i += 1;
|
|
28077
|
+
}
|
|
28078
|
+
if (mode === "string")
|
|
28079
|
+
addPart(stringSink, stringText);
|
|
28080
|
+
const tail = templates.at(-1);
|
|
28081
|
+
if (tail !== undefined)
|
|
28082
|
+
addPart(tail.sink, tail.text);
|
|
28083
|
+
return results.map((sink) => sink.text.trim());
|
|
28084
|
+
}
|
|
28085
|
+
var EXEC_PRIMITIVES = new Set([
|
|
28086
|
+
"exec",
|
|
28087
|
+
"execFile",
|
|
28088
|
+
"execSync",
|
|
28089
|
+
"execFileSync",
|
|
28090
|
+
"spawn",
|
|
28091
|
+
"spawnSync",
|
|
28092
|
+
"system",
|
|
28093
|
+
"eval",
|
|
28094
|
+
"Function",
|
|
28095
|
+
"sh",
|
|
28096
|
+
"$"
|
|
28097
|
+
]);
|
|
28098
|
+
var REGEX_PREFIX_WORDS = new Set([
|
|
28099
|
+
"await",
|
|
28100
|
+
"case",
|
|
28101
|
+
"delete",
|
|
28102
|
+
"do",
|
|
28103
|
+
"else",
|
|
28104
|
+
"in",
|
|
28105
|
+
"instanceof",
|
|
28106
|
+
"new",
|
|
28107
|
+
"of",
|
|
28108
|
+
"return",
|
|
28109
|
+
"throw",
|
|
28110
|
+
"typeof",
|
|
28111
|
+
"void",
|
|
28112
|
+
"yield"
|
|
28113
|
+
]);
|
|
28114
|
+
function isIdentChar(ch) {
|
|
28115
|
+
return ch === "$" || ch === "_" || /[A-Za-z0-9]/.test(ch);
|
|
28116
|
+
}
|
|
28117
|
+
|
|
28118
|
+
// packages/core/src/policy/shell-parse.ts
|
|
27817
28119
|
class ShellParseError extends Error {
|
|
27818
28120
|
}
|
|
27819
28121
|
var OPS = ["&&", "||", ";;", ";", "|&", "|", "&", "(", ")", \`
|
|
@@ -28187,7 +28489,7 @@ function parseScript(src) {
|
|
|
28187
28489
|
return new Parser(new Lexer(src).lex()).script(false);
|
|
28188
28490
|
}
|
|
28189
28491
|
|
|
28190
|
-
// src/policy/shell.ts
|
|
28492
|
+
// packages/core/src/policy/shell.ts
|
|
28191
28493
|
class Blocked extends Error {
|
|
28192
28494
|
}
|
|
28193
28495
|
function block(reason) {
|
|
@@ -28273,6 +28575,35 @@ var BREW_READ_ONLY_FLAGS = new Set([
|
|
|
28273
28575
|
"--version",
|
|
28274
28576
|
"--help"
|
|
28275
28577
|
]);
|
|
28578
|
+
var BUN_BUILTINS = new Set([
|
|
28579
|
+
"test",
|
|
28580
|
+
"build",
|
|
28581
|
+
"install",
|
|
28582
|
+
"i",
|
|
28583
|
+
"add",
|
|
28584
|
+
"a",
|
|
28585
|
+
"remove",
|
|
28586
|
+
"rm",
|
|
28587
|
+
"update",
|
|
28588
|
+
"link",
|
|
28589
|
+
"unlink",
|
|
28590
|
+
"pm",
|
|
28591
|
+
"x",
|
|
28592
|
+
"create",
|
|
28593
|
+
"c",
|
|
28594
|
+
"init",
|
|
28595
|
+
"run",
|
|
28596
|
+
"repl",
|
|
28597
|
+
"upgrade",
|
|
28598
|
+
"publish",
|
|
28599
|
+
"outdated",
|
|
28600
|
+
"audit",
|
|
28601
|
+
"why",
|
|
28602
|
+
"whoami",
|
|
28603
|
+
"patch",
|
|
28604
|
+
"patch-commit",
|
|
28605
|
+
"help"
|
|
28606
|
+
]);
|
|
28276
28607
|
var BREW_READ_ONLY_SUBCOMMANDS = new Set([
|
|
28277
28608
|
"info",
|
|
28278
28609
|
"list",
|
|
@@ -28290,6 +28621,9 @@ var BREW_READ_ONLY_SUBCOMMANDS = new Set([
|
|
|
28290
28621
|
"tap-info"
|
|
28291
28622
|
]);
|
|
28292
28623
|
var BREW_GLOBAL_FLAGS = new Set(["-v", "--verbose", "-d", "--debug", "-q", "--quiet"]);
|
|
28624
|
+
function isJsLike(path) {
|
|
28625
|
+
return /\\.[cm]?[jt]sx?$/.test(path);
|
|
28626
|
+
}
|
|
28293
28627
|
function scanText(text) {
|
|
28294
28628
|
for (const t of [text, text.replace(/(['"\`])\\s*\\+\\s*\\1/g, "")]) {
|
|
28295
28629
|
if (/\\bgit\\b[\\s"',[\\]()]+push\\b/.test(t))
|
|
@@ -28452,18 +28786,127 @@ function checkRecursiveSearch(state, base, args) {
|
|
|
28452
28786
|
block(\`searches \\\`\${root}\\\`, which contains secret file \\\`\${found}\\\`; search specific directories instead\`);
|
|
28453
28787
|
}
|
|
28454
28788
|
}
|
|
28789
|
+
var PACKAGE_MANAGERS = new Set(["npm", "pnpm", "yarn", "bun", "bunx"]);
|
|
28790
|
+
var BUN_GLOBAL_SUBCOMMANDS = new Set([
|
|
28791
|
+
"install",
|
|
28792
|
+
"i",
|
|
28793
|
+
"add",
|
|
28794
|
+
"a",
|
|
28795
|
+
"remove",
|
|
28796
|
+
"rm",
|
|
28797
|
+
"update",
|
|
28798
|
+
"link",
|
|
28799
|
+
"unlink"
|
|
28800
|
+
]);
|
|
28801
|
+
var BUN_GLOBAL_VALUE_FLAGS = new Set([
|
|
28802
|
+
"-c",
|
|
28803
|
+
"--config",
|
|
28804
|
+
"--cwd",
|
|
28805
|
+
"--env-file",
|
|
28806
|
+
"--filter",
|
|
28807
|
+
"--preload"
|
|
28808
|
+
]);
|
|
28809
|
+
function bunSubcommand(args) {
|
|
28810
|
+
for (let i = 0;i < args.length; i++) {
|
|
28811
|
+
const a = args[i] ?? "";
|
|
28812
|
+
if (a === "--") {
|
|
28813
|
+
const next = args[i + 1];
|
|
28814
|
+
return next === undefined ? undefined : { index: i + 1, word: next };
|
|
28815
|
+
}
|
|
28816
|
+
if (!a.startsWith("-") || a === "-")
|
|
28817
|
+
return { index: i, word: a };
|
|
28818
|
+
if (!a.includes("=") && BUN_GLOBAL_VALUE_FLAGS.has(a))
|
|
28819
|
+
i++;
|
|
28820
|
+
}
|
|
28821
|
+
return;
|
|
28822
|
+
}
|
|
28823
|
+
function bunRunScript(args, start) {
|
|
28824
|
+
for (let i = start;i < args.length; i++) {
|
|
28825
|
+
const a = args[i] ?? "";
|
|
28826
|
+
if (a === "--")
|
|
28827
|
+
return args[i + 1];
|
|
28828
|
+
if (!a.startsWith("-") || a === "-")
|
|
28829
|
+
return a;
|
|
28830
|
+
if (!a.includes("=") && BUN_GLOBAL_VALUE_FLAGS.has(a))
|
|
28831
|
+
i++;
|
|
28832
|
+
}
|
|
28833
|
+
return;
|
|
28834
|
+
}
|
|
28835
|
+
function checkPackageManager(state, tool, args, outer) {
|
|
28836
|
+
if (tool === "bunx") {
|
|
28837
|
+
checkPackageManager(state, "bun", ["x", ...args], outer);
|
|
28838
|
+
return;
|
|
28839
|
+
}
|
|
28840
|
+
const cmd = tool === "bun" ? bunSubcommand(args) : undefined;
|
|
28841
|
+
const sub = cmd?.word;
|
|
28842
|
+
const known = tool !== "bun" || sub !== undefined && BUN_BUILTINS.has(sub);
|
|
28843
|
+
const installSide = tool !== "bun" || sub !== undefined && BUN_GLOBAL_SUBCOMMANDS.has(sub);
|
|
28844
|
+
const globalWord = tool === "bun" ? sub === "global" || sub === "link" : args[0] === "global" || args[0] === "link";
|
|
28845
|
+
if ((installSide || !known) && args.some((a) => a === "-g" || a === "--global" || a === "--location=global") || globalWord)
|
|
28846
|
+
block(\`\${tool} global installs change the machine, not the worktree\`);
|
|
28847
|
+
if (cmd?.word === "x") {
|
|
28848
|
+
let i = cmd.index + 1;
|
|
28849
|
+
while (i < args.length && (args[i] ?? "").startsWith("-")) {
|
|
28850
|
+
i += args[i] === "-p" || args[i] === "--package" ? 2 : 1;
|
|
28851
|
+
}
|
|
28852
|
+
const wrapped = args.slice(i);
|
|
28853
|
+
if (wrapped.length === 0)
|
|
28854
|
+
return;
|
|
28855
|
+
if (++state.depth > 25)
|
|
28856
|
+
block("command nests too deeply to inspect");
|
|
28857
|
+
try {
|
|
28858
|
+
scoped(state, () => checkSimple(state, {
|
|
28859
|
+
kind: "simple",
|
|
28860
|
+
assigns: [],
|
|
28861
|
+
words: wrapped,
|
|
28862
|
+
redirects: [...outer.redirects],
|
|
28863
|
+
substitutions: []
|
|
28864
|
+
}, outer.stdin));
|
|
28865
|
+
} finally {
|
|
28866
|
+
state.depth--;
|
|
28867
|
+
}
|
|
28868
|
+
return;
|
|
28869
|
+
}
|
|
28870
|
+
const publishArgs = tool === "bun" && known && sub !== undefined ? [sub] : args;
|
|
28871
|
+
if (publishArgs.some((a) => a === "publish" || a === "login" || a === "adduser" || a === "unpublish" || a === "deprecate"))
|
|
28872
|
+
block(\`\${tool} publishing is not allowed\`);
|
|
28873
|
+
}
|
|
28874
|
+
var BUN_INSTALL_SUBCOMMANDS = new Set(["install", "i", "add", "a", "remove", "rm", "update"]);
|
|
28875
|
+
function expandScripts(state, dir, scripts, keys) {
|
|
28876
|
+
for (const key of keys) {
|
|
28877
|
+
const body = scripts[key];
|
|
28878
|
+
if (typeof body !== "string")
|
|
28879
|
+
continue;
|
|
28880
|
+
const expansion = \`\${dir}\\x00\${key}\`;
|
|
28881
|
+
if (state.expanding.has(expansion))
|
|
28882
|
+
block(\`script \\\`\${key}\\\` expands into itself\`);
|
|
28883
|
+
state.expanding.add(expansion);
|
|
28884
|
+
try {
|
|
28885
|
+
checkScript(state, body);
|
|
28886
|
+
} finally {
|
|
28887
|
+
state.expanding.delete(expansion);
|
|
28888
|
+
}
|
|
28889
|
+
}
|
|
28890
|
+
}
|
|
28455
28891
|
function checkPackageScript(state, tool, args) {
|
|
28456
28892
|
const pos = positionals(args);
|
|
28457
|
-
const
|
|
28893
|
+
const cmd = tool === "bun" ? bunSubcommand(args) : undefined;
|
|
28894
|
+
const sub = cmd === undefined ? pos[0] : cmd.word;
|
|
28458
28895
|
if (sub === undefined || state.cwd === undefined)
|
|
28459
28896
|
return;
|
|
28460
|
-
const
|
|
28897
|
+
const dir = state.cwd;
|
|
28898
|
+
const text = state.ctx.readFile?.(join7(dir, "package.json"));
|
|
28461
28899
|
let scripts = {};
|
|
28462
28900
|
try {
|
|
28463
28901
|
scripts = (text === undefined ? {} : JSON.parse(text).scripts) ?? {};
|
|
28464
28902
|
} catch {
|
|
28465
28903
|
return;
|
|
28466
28904
|
}
|
|
28905
|
+
if (tool === "bun" && sub !== "run" && BUN_BUILTINS.has(sub)) {
|
|
28906
|
+
if (BUN_INSTALL_SUBCOMMANDS.has(sub))
|
|
28907
|
+
expandScripts(state, dir, scripts, ["preinstall", "postinstall"]);
|
|
28908
|
+
return;
|
|
28909
|
+
}
|
|
28467
28910
|
const NPM_RUN = new Set(["run", "run-script", "rum", "urn"]);
|
|
28468
28911
|
const NPM_LIFECYCLE = {
|
|
28469
28912
|
test: "test",
|
|
@@ -28477,24 +28920,20 @@ function checkPackageScript(state, tool, args) {
|
|
|
28477
28920
|
if (tool === "npm")
|
|
28478
28921
|
name = NPM_RUN.has(sub) ? pos[1] : NPM_LIFECYCLE[sub];
|
|
28479
28922
|
else if (sub === "run")
|
|
28480
|
-
name = pos[1];
|
|
28923
|
+
name = cmd === undefined ? pos[1] : bunRunScript(args, cmd.index + 1);
|
|
28481
28924
|
else if (sub in scripts)
|
|
28482
28925
|
name = sub;
|
|
28483
|
-
else if (tool === "bun" &&
|
|
28926
|
+
else if (tool === "bun" && isJsLike(sub)) {
|
|
28484
28927
|
checkScriptFile(state, sub, "other");
|
|
28485
28928
|
return;
|
|
28486
28929
|
}
|
|
28487
28930
|
if (name === undefined)
|
|
28488
28931
|
return;
|
|
28489
|
-
if (tool === "bun" && !(name in scripts) &&
|
|
28932
|
+
if (tool === "bun" && !(name in scripts) && isJsLike(name)) {
|
|
28490
28933
|
checkScriptFile(state, name, "other");
|
|
28491
28934
|
return;
|
|
28492
28935
|
}
|
|
28493
|
-
|
|
28494
|
-
const body = scripts[key];
|
|
28495
|
-
if (typeof body === "string")
|
|
28496
|
-
checkScript(state, body);
|
|
28497
|
-
}
|
|
28936
|
+
expandScripts(state, dir, scripts, [\`pre\${name}\`, name, \`post\${name}\`]);
|
|
28498
28937
|
}
|
|
28499
28938
|
function parseMakefile(text) {
|
|
28500
28939
|
const vars = new Map;
|
|
@@ -28954,6 +29393,12 @@ function checkScriptFile(state, word, interpreter) {
|
|
|
28954
29393
|
const isShell = interpreter === "shell" ? shebang === "" || /\\b(sh|bash|zsh|dash|ksh)\\b/.test(shebang) : false;
|
|
28955
29394
|
if (isShell) {
|
|
28956
29395
|
checkScript(state, text);
|
|
29396
|
+
} else if (isJsLike(word)) {
|
|
29397
|
+
for (const literal of execSinkLiterals(text)) {
|
|
29398
|
+
const found = scanText(literal);
|
|
29399
|
+
if (found)
|
|
29400
|
+
block(\`\${word}: \${found}\`);
|
|
29401
|
+
}
|
|
28957
29402
|
} else {
|
|
28958
29403
|
const found = scanText(text);
|
|
28959
29404
|
if (found)
|
|
@@ -29296,6 +29741,8 @@ function checkSimple(state, cmd, stdin) {
|
|
|
29296
29741
|
state.cwd = undefined;
|
|
29297
29742
|
return;
|
|
29298
29743
|
}
|
|
29744
|
+
if (PACKAGE_MANAGERS.has(base))
|
|
29745
|
+
checkPackageManager(state, base, args, { redirects: cmd.redirects, stdin });
|
|
29299
29746
|
const interpreter = base.replace(/\\d+(\\.\\d+)*$/, "");
|
|
29300
29747
|
if ((interpreter === "perl" || interpreter === "ruby") && args.some(isInPlaceFlag)) {
|
|
29301
29748
|
const operands = [];
|
|
@@ -29501,11 +29948,6 @@ function checkSimple(state, cmd, stdin) {
|
|
|
29501
29948
|
case "pnpm":
|
|
29502
29949
|
case "yarn":
|
|
29503
29950
|
case "bun":
|
|
29504
|
-
if (args.some((a) => a === "-g" || a === "--global" || a === "--location=global") || args[0] === "global" || args[0] === "link")
|
|
29505
|
-
return block(\`\${base} global installs change the machine, not the worktree\`);
|
|
29506
|
-
if (args.some((a) => a === "publish" || a === "login" || a === "adduser" || a === "unpublish" || a === "deprecate")) {
|
|
29507
|
-
return block(\`\${base} publishing is not allowed\`);
|
|
29508
|
-
}
|
|
29509
29951
|
checkPackageScript(state, base, args);
|
|
29510
29952
|
return;
|
|
29511
29953
|
case "make":
|
|
@@ -29627,7 +30069,14 @@ function checkScript(state, text) {
|
|
|
29627
30069
|
return;
|
|
29628
30070
|
}
|
|
29629
30071
|
function checkShell(command, ctx) {
|
|
29630
|
-
const state = {
|
|
30072
|
+
const state = {
|
|
30073
|
+
ctx,
|
|
30074
|
+
aliases: new Map,
|
|
30075
|
+
depth: 0,
|
|
30076
|
+
cwd: ctx.cwd,
|
|
30077
|
+
written: new Set,
|
|
30078
|
+
expanding: new Set
|
|
30079
|
+
};
|
|
29631
30080
|
try {
|
|
29632
30081
|
checkScript(state, command);
|
|
29633
30082
|
return { allowed: true };
|
|
@@ -29640,7 +30089,7 @@ function checkShell(command, ctx) {
|
|
|
29640
30089
|
}
|
|
29641
30090
|
}
|
|
29642
30091
|
|
|
29643
|
-
// src/plugin/entry.ts
|
|
30092
|
+
// packages/core/src/plugin/entry.ts
|
|
29644
30093
|
var FACTORY_AGENTS = new Set([
|
|
29645
30094
|
"orchestrator",
|
|
29646
30095
|
"architect",
|
|
@@ -29914,7 +30363,7 @@ export {
|
|
|
29914
30363
|
};
|
|
29915
30364
|
`;
|
|
29916
30365
|
|
|
29917
|
-
// src/policy/permissions.ts
|
|
30366
|
+
// packages/core/src/policy/permissions.ts
|
|
29918
30367
|
var ACTIONS = [
|
|
29919
30368
|
"read",
|
|
29920
30369
|
"glob",
|
|
@@ -31123,7 +31572,7 @@ try {
|
|
|
31123
31572
|
- Use the repo's runner and file naming; one behaviour per test; mock only process boundaries (network, clock, filesystem). <!-- factory -->
|
|
31124
31573
|
`;
|
|
31125
31574
|
|
|
31126
|
-
// src/profiles/index.ts
|
|
31575
|
+
// packages/core/src/profiles/index.ts
|
|
31127
31576
|
var TS_TEST_GLOBS = [
|
|
31128
31577
|
"*.test.ts",
|
|
31129
31578
|
"*.test.tsx",
|
|
@@ -31414,7 +31863,7 @@ function profilesFor(languages) {
|
|
|
31414
31863
|
return Object.keys(PROFILES).filter((l) => set.has(l)).map((l) => PROFILES[l]);
|
|
31415
31864
|
}
|
|
31416
31865
|
|
|
31417
|
-
// src/render/workspace.ts
|
|
31866
|
+
// packages/core/src/render/workspace.ts
|
|
31418
31867
|
var BLOCK_MARKERS = {
|
|
31419
31868
|
"AGENTS.md": {
|
|
31420
31869
|
start: "<!-- ai-factory:start (managed by ai-factory; edit outside this block) -->",
|
|
@@ -31808,7 +32257,7 @@ function renderWorkspace(config, options = {}) {
|
|
|
31808
32257
|
return files.sort((a, b) => a.path.localeCompare(b.path));
|
|
31809
32258
|
}
|
|
31810
32259
|
|
|
31811
|
-
// src/managed/sync.ts
|
|
32260
|
+
// packages/core/src/managed/sync.ts
|
|
31812
32261
|
function sha256(text) {
|
|
31813
32262
|
return createHash2("sha256").update(text, "utf8").digest("hex");
|
|
31814
32263
|
}
|
|
@@ -32049,7 +32498,35 @@ async function executeSync(root, plan, previous, options = {}) {
|
|
|
32049
32498
|
return { managed, merged, conflicts };
|
|
32050
32499
|
}
|
|
32051
32500
|
|
|
32052
|
-
// src/
|
|
32501
|
+
// packages/core/src/opencode-features.ts
|
|
32502
|
+
var OPENCODE_FEATURES = {
|
|
32503
|
+
"mcp.roles": {
|
|
32504
|
+
min: "2.2.0",
|
|
32505
|
+
why: "direct MCP/plugin tool exposure when `execute` is denied, which makes `config.mcp.roles` effective"
|
|
32506
|
+
}
|
|
32507
|
+
};
|
|
32508
|
+
function enabledOpencodeFeatures(config) {
|
|
32509
|
+
const enabled = [];
|
|
32510
|
+
if (Object.values(config.mcp.roles).some((patterns) => (patterns?.length ?? 0) > 0)) {
|
|
32511
|
+
enabled.push("mcp.roles");
|
|
32512
|
+
}
|
|
32513
|
+
return enabled;
|
|
32514
|
+
}
|
|
32515
|
+
function opencodeRequirement(config) {
|
|
32516
|
+
let requirement;
|
|
32517
|
+
for (const id of enabledOpencodeFeatures(config)) {
|
|
32518
|
+
const feature = OPENCODE_FEATURES[id];
|
|
32519
|
+
if (requirement === undefined || compareVersions(feature.min, requirement.min) > 0) {
|
|
32520
|
+
requirement = {
|
|
32521
|
+
min: feature.min,
|
|
32522
|
+
reason: `${id} needs opencode >= ${feature.min}: ${feature.why}`
|
|
32523
|
+
};
|
|
32524
|
+
}
|
|
32525
|
+
}
|
|
32526
|
+
return requirement;
|
|
32527
|
+
}
|
|
32528
|
+
|
|
32529
|
+
// packages/core/src/workspace/sync.ts
|
|
32053
32530
|
var INSTALL_PATHS = [
|
|
32054
32531
|
"AGENTS.md",
|
|
32055
32532
|
".gitignore",
|
|
@@ -32109,7 +32586,7 @@ async function syncWorkspace(root, config, options = {}) {
|
|
|
32109
32586
|
contentSha256: PONYTAIL.contentSha256,
|
|
32110
32587
|
files: [...PONYTAIL.files]
|
|
32111
32588
|
}
|
|
32112
|
-
} : {});
|
|
32589
|
+
} : {}, opencodeRequirement(config)?.min ?? OPENCODE.min);
|
|
32113
32590
|
writeFileSync5(join22(root, LOCK_FILE), serializeLock(lock));
|
|
32114
32591
|
const hooks = [];
|
|
32115
32592
|
for (const repo of config.repos) {
|
|
@@ -32128,7 +32605,7 @@ function commitInstall(root, message) {
|
|
|
32128
32605
|
return commitPaths(root, INSTALL_PATHS.filter((p) => existsSync18(join22(root, p))), message);
|
|
32129
32606
|
}
|
|
32130
32607
|
|
|
32131
|
-
// src/update/update.ts
|
|
32608
|
+
// packages/core/src/update/update.ts
|
|
32132
32609
|
var WRITES = new Set([
|
|
32133
32610
|
"create",
|
|
32134
32611
|
"update",
|
|
@@ -32283,7 +32760,7 @@ function requireInstalled(root) {
|
|
|
32283
32760
|
return lock;
|
|
32284
32761
|
}
|
|
32285
32762
|
|
|
32286
|
-
//
|
|
32763
|
+
// packages/cli/src/command.ts
|
|
32287
32764
|
import { parseArgs } from "node:util";
|
|
32288
32765
|
function parseCommandArgs(command, args, options, allowPositionals = false) {
|
|
32289
32766
|
try {
|
|
@@ -32294,15 +32771,15 @@ function parseCommandArgs(command, args, options, allowPositionals = false) {
|
|
|
32294
32771
|
}
|
|
32295
32772
|
}
|
|
32296
32773
|
|
|
32297
|
-
//
|
|
32774
|
+
// packages/cli/src/commands/pipeline-commands.ts
|
|
32298
32775
|
import { existsSync as existsSync34, readFileSync as readFileSync30 } from "node:fs";
|
|
32299
32776
|
import { join as join45, relative as relative9, resolve as resolve6 } from "node:path";
|
|
32300
32777
|
|
|
32301
|
-
// src/pipeline/approve.ts
|
|
32778
|
+
// packages/core/src/pipeline/approve.ts
|
|
32302
32779
|
import { existsSync as existsSync22, readFileSync as readFileSync18 } from "node:fs";
|
|
32303
32780
|
import { join as join26 } from "node:path";
|
|
32304
32781
|
|
|
32305
|
-
// src/approval/approval.ts
|
|
32782
|
+
// packages/core/src/approval/approval.ts
|
|
32306
32783
|
import { createHash as createHash3 } from "node:crypto";
|
|
32307
32784
|
import { existsSync as existsSync20, mkdirSync as mkdirSync8, readdirSync as readdirSync8, readFileSync as readFileSync16, statSync as statSync6, writeFileSync as writeFileSync7 } from "node:fs";
|
|
32308
32785
|
import { dirname as dirname6, join as join24 } from "node:path";
|
|
@@ -32393,7 +32870,7 @@ function checkApprovalHash(root, id) {
|
|
|
32393
32870
|
return { valid: true, approval };
|
|
32394
32871
|
}
|
|
32395
32872
|
|
|
32396
|
-
// src/update/snapshot.ts
|
|
32873
|
+
// packages/core/src/update/snapshot.ts
|
|
32397
32874
|
import { cpSync as cpSync2, existsSync as existsSync21, mkdirSync as mkdirSync9, readdirSync as readdirSync9, readFileSync as readFileSync17, rmSync as rmSync8 } from "node:fs";
|
|
32398
32875
|
import { join as join25 } from "node:path";
|
|
32399
32876
|
var gateFile = (root, id) => join25(root, ".factory", "runs", id, "snapshot", "gates.json");
|
|
@@ -32442,7 +32919,7 @@ function dropAgentSnapshot(root, id) {
|
|
|
32442
32919
|
rmSync8(dir, { recursive: true });
|
|
32443
32920
|
}
|
|
32444
32921
|
|
|
32445
|
-
// src/pipeline/approve.ts
|
|
32922
|
+
// packages/core/src/pipeline/approve.ts
|
|
32446
32923
|
async function approve(p, id) {
|
|
32447
32924
|
let run = p.run(id);
|
|
32448
32925
|
assertApprovable(id, run);
|
|
@@ -32540,18 +33017,18 @@ async function verifyApproval(p, id, dir) {
|
|
|
32540
33017
|
}
|
|
32541
33018
|
}
|
|
32542
33019
|
|
|
32543
|
-
// src/pipeline/contracts.ts
|
|
33020
|
+
// packages/core/src/pipeline/contracts.ts
|
|
32544
33021
|
import { mkdirSync as mkdirSync14, writeFileSync as writeFileSync10 } from "node:fs";
|
|
32545
33022
|
import { join as join40 } from "node:path";
|
|
32546
33023
|
|
|
32547
|
-
// src/contracts/gate.ts
|
|
33024
|
+
// packages/core/src/contracts/gate.ts
|
|
32548
33025
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
32549
33026
|
var import__2020 = __toESM(require__2020(), 1);
|
|
32550
33027
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
32551
33028
|
import { readFileSync as readFileSync20 } from "node:fs";
|
|
32552
33029
|
import { join as join28 } from "node:path";
|
|
32553
33030
|
|
|
32554
|
-
// src/gates/compact.ts
|
|
33031
|
+
// packages/core/src/gates/compact.ts
|
|
32555
33032
|
var ANSI = /\u001b\[[0-9;?]*[ -/]*[@-~]|\u001b\][^\u0007]*\u0007/g;
|
|
32556
33033
|
var SIGNAL = /\b(error|errors|fail|failed|failure|panic|exception|traceback|assert|expected|received|warning|undefined|cannot|not found)\b|✗|✖|×|FAIL|:\d+:\d+|\b[A-Z]{1,4}\d{3,5}\b/i;
|
|
32557
33034
|
var CONTEXT = 2;
|
|
@@ -32597,7 +33074,7 @@ function compactOutput(raw, maxLines) {
|
|
|
32597
33074
|
`);
|
|
32598
33075
|
}
|
|
32599
33076
|
|
|
32600
|
-
// src/gates/guard.ts
|
|
33077
|
+
// packages/core/src/gates/guard.ts
|
|
32601
33078
|
import { createHash as createHash4 } from "node:crypto";
|
|
32602
33079
|
import { existsSync as existsSync23, mkdirSync as mkdirSync10, readFileSync as readFileSync19, rmSync as rmSync9, writeFileSync as writeFileSync8 } from "node:fs";
|
|
32603
33080
|
import { dirname as dirname7, join as join27 } from "node:path";
|
|
@@ -32676,7 +33153,7 @@ async function restore(before, paths) {
|
|
|
32676
33153
|
}
|
|
32677
33154
|
}
|
|
32678
33155
|
|
|
32679
|
-
// src/contracts/schema-diff.ts
|
|
33156
|
+
// packages/core/src/contracts/schema-diff.ts
|
|
32680
33157
|
var isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
32681
33158
|
function deref(schema, resolve) {
|
|
32682
33159
|
let current = schema;
|
|
@@ -32817,7 +33294,7 @@ function localResolver(doc) {
|
|
|
32817
33294
|
};
|
|
32818
33295
|
}
|
|
32819
33296
|
|
|
32820
|
-
// src/contracts/openapi.ts
|
|
33297
|
+
// packages/core/src/contracts/openapi.ts
|
|
32821
33298
|
var isObj2 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
32822
33299
|
var METHODS = ["get", "put", "post", "delete", "options", "head", "patch", "trace"];
|
|
32823
33300
|
var normalizePath = (path) => path.replace(/\{[^}]+\}/g, "{}");
|
|
@@ -32953,7 +33430,7 @@ function referencedRemovedPaths(oldDoc, newDoc, sources) {
|
|
|
32953
33430
|
});
|
|
32954
33431
|
}
|
|
32955
33432
|
|
|
32956
|
-
// src/contracts/proto.ts
|
|
33433
|
+
// packages/core/src/contracts/proto.ts
|
|
32957
33434
|
function stripComments3(text) {
|
|
32958
33435
|
return text.replace(/\/\*[\s\S]*?\*\//g, " ").replace(/\/\/[^\n]*/g, " ");
|
|
32959
33436
|
}
|
|
@@ -33160,7 +33637,7 @@ function diffProto(oldModel, newModel) {
|
|
|
33160
33637
|
return out;
|
|
33161
33638
|
}
|
|
33162
33639
|
|
|
33163
|
-
// src/contracts/gate.ts
|
|
33640
|
+
// packages/core/src/contracts/gate.ts
|
|
33164
33641
|
var contractKey2 = (c) => `${c.kind}:${c.provider}:${c.path}`;
|
|
33165
33642
|
var addFormats = import_ajv_formats.default;
|
|
33166
33643
|
function compile2(schema) {
|
|
@@ -33362,7 +33839,7 @@ function touchedContracts(config, repos) {
|
|
|
33362
33839
|
return config.contracts.filter((c) => repos.has(c.provider) || c.consumers.some((x) => repos.has(x)));
|
|
33363
33840
|
}
|
|
33364
33841
|
|
|
33365
|
-
// src/pipeline/implement.ts
|
|
33842
|
+
// packages/core/src/pipeline/implement.ts
|
|
33366
33843
|
import {
|
|
33367
33844
|
existsSync as existsSync31,
|
|
33368
33845
|
mkdirSync as mkdirSync13,
|
|
@@ -33374,11 +33851,11 @@ import {
|
|
|
33374
33851
|
} from "node:fs";
|
|
33375
33852
|
import { join as join39 } from "node:path";
|
|
33376
33853
|
|
|
33377
|
-
// src/gates/affected.ts
|
|
33854
|
+
// packages/core/src/gates/affected.ts
|
|
33378
33855
|
import { existsSync as existsSync25, readFileSync as readFileSync22 } from "node:fs";
|
|
33379
33856
|
import { join as join30, relative as relative6 } from "node:path";
|
|
33380
33857
|
|
|
33381
|
-
// src/gates/targets.ts
|
|
33858
|
+
// packages/core/src/gates/targets.ts
|
|
33382
33859
|
import { existsSync as existsSync24, readFileSync as readFileSync21 } from "node:fs";
|
|
33383
33860
|
import { join as join29 } from "node:path";
|
|
33384
33861
|
var WALK2 = { maxDepth: 8, maxFiles: 50000 };
|
|
@@ -33464,7 +33941,7 @@ function requirementHolds(req, worktree, dir) {
|
|
|
33464
33941
|
});
|
|
33465
33942
|
}
|
|
33466
33943
|
|
|
33467
|
-
// src/gates/affected.ts
|
|
33944
|
+
// packages/core/src/gates/affected.ts
|
|
33468
33945
|
async function changedFiles(worktree, base) {
|
|
33469
33946
|
const diff = await git(["diff", "--name-only", "--no-renames", base, "--"], { cwd: worktree });
|
|
33470
33947
|
const untracked = await git(["ls-files", "--others", "--exclude-standard"], { cwd: worktree });
|
|
@@ -33551,7 +34028,7 @@ function fillPlaceholders(command, values) {
|
|
|
33551
34028
|
return empty ? undefined : out;
|
|
33552
34029
|
}
|
|
33553
34030
|
|
|
33554
|
-
// src/gates/definitions.ts
|
|
34031
|
+
// packages/core/src/gates/definitions.ts
|
|
33555
34032
|
import { readFileSync as readFileSync23 } from "node:fs";
|
|
33556
34033
|
import { join as join31 } from "node:path";
|
|
33557
34034
|
var HOSTS = ["package.json", "Makefile", "justfile", "Justfile", "Taskfile.yml", "Taskfile.yaml"];
|
|
@@ -33617,11 +34094,11 @@ async function changedGateDefinitions(dir, base, names) {
|
|
|
33617
34094
|
return out;
|
|
33618
34095
|
}
|
|
33619
34096
|
|
|
33620
|
-
// src/gates/install.ts
|
|
34097
|
+
// packages/core/src/gates/install.ts
|
|
33621
34098
|
import { existsSync as existsSync26, mkdirSync as mkdirSync11 } from "node:fs";
|
|
33622
34099
|
import { join as join32 } from "node:path";
|
|
33623
34100
|
|
|
33624
|
-
// src/runtime/credentials.ts
|
|
34101
|
+
// packages/core/src/runtime/credentials.ts
|
|
33625
34102
|
var PROVIDER_ENV = {
|
|
33626
34103
|
anthropic: ["ANTHROPIC_API_KEY", "ANTHROPIC_BASE_URL"],
|
|
33627
34104
|
openai: ["OPENAI_API_KEY", "OPENAI_BASE_URL", "OPENAI_ORG_ID"],
|
|
@@ -33670,7 +34147,7 @@ function agentProcessEnv(base = process.env) {
|
|
|
33670
34147
|
return { ...env, ...agentGitEnv(base) };
|
|
33671
34148
|
}
|
|
33672
34149
|
|
|
33673
|
-
// src/gates/install.ts
|
|
34150
|
+
// packages/core/src/gates/install.ts
|
|
33674
34151
|
function cacheEnv(root, repoName) {
|
|
33675
34152
|
const cache = join32(root, ".factory", "cache");
|
|
33676
34153
|
const env = {
|
|
@@ -33733,7 +34210,7 @@ async function installDeps(root, worktree, repo, timeoutMs = 15 * 60000) {
|
|
|
33733
34210
|
return steps;
|
|
33734
34211
|
}
|
|
33735
34212
|
|
|
33736
|
-
// src/gates/resolve.ts
|
|
34213
|
+
// packages/core/src/gates/resolve.ts
|
|
33737
34214
|
import { existsSync as existsSync27, readFileSync as readFileSync24 } from "node:fs";
|
|
33738
34215
|
import { join as join33 } from "node:path";
|
|
33739
34216
|
var GATES_BY_MODE = {
|
|
@@ -33941,11 +34418,11 @@ function repoPlaceholders(input, targets) {
|
|
|
33941
34418
|
};
|
|
33942
34419
|
}
|
|
33943
34420
|
|
|
33944
|
-
// src/gates/run.ts
|
|
34421
|
+
// packages/core/src/gates/run.ts
|
|
33945
34422
|
import { existsSync as existsSync29 } from "node:fs";
|
|
33946
34423
|
import { delimiter, join as join37 } from "node:path";
|
|
33947
34424
|
|
|
33948
|
-
// src/addons/shortcuts.ts
|
|
34425
|
+
// packages/core/src/addons/shortcuts.ts
|
|
33949
34426
|
import { readFileSync as readFileSync25 } from "node:fs";
|
|
33950
34427
|
import { join as join34 } from "node:path";
|
|
33951
34428
|
var SHORTCUT = /(?:\/\/|#|\/\*|\*|--|<!--|;)\s*(?:shortcut|ponytail):\s*(.+?)\s*(?:\*\/|-->)?\s*$/i;
|
|
@@ -34004,7 +34481,7 @@ async function changeShortcuts(dir, base, head) {
|
|
|
34004
34481
|
return shortcutsInDiff(diff.stdout);
|
|
34005
34482
|
}
|
|
34006
34483
|
|
|
34007
|
-
// src/policy/paths.ts
|
|
34484
|
+
// packages/core/src/policy/paths.ts
|
|
34008
34485
|
var PROTECTED = [
|
|
34009
34486
|
/^openspec\/specs(\/|$)/i,
|
|
34010
34487
|
/^\.opencode(\/|$)/i,
|
|
@@ -34083,11 +34560,11 @@ function isGeneratedLockfile(path) {
|
|
|
34083
34560
|
return GENERATED_LOCKFILES.has(p.slice(p.lastIndexOf("/") + 1).toLowerCase());
|
|
34084
34561
|
}
|
|
34085
34562
|
|
|
34086
|
-
// src/policy/sandbox.ts
|
|
34563
|
+
// packages/core/src/policy/sandbox.ts
|
|
34087
34564
|
import { existsSync as existsSync28, readFileSync as readFileSync26 } from "node:fs";
|
|
34088
34565
|
import { isAbsolute, join as join36, resolve as resolve4 } from "node:path";
|
|
34089
34566
|
|
|
34090
|
-
// src/policy/realpath.ts
|
|
34567
|
+
// packages/core/src/policy/realpath.ts
|
|
34091
34568
|
import { lstatSync, readlinkSync, realpathSync as realpathSync2 } from "node:fs";
|
|
34092
34569
|
import { basename as basename2, dirname as dirname8, join as join35, resolve as resolve3 } from "node:path";
|
|
34093
34570
|
function realPathOf(abs, depth = 0) {
|
|
@@ -34117,7 +34594,7 @@ function realPathOf(abs, depth = 0) {
|
|
|
34117
34594
|
return abs;
|
|
34118
34595
|
}
|
|
34119
34596
|
|
|
34120
|
-
// src/policy/sandbox.ts
|
|
34597
|
+
// packages/core/src/policy/sandbox.ts
|
|
34121
34598
|
var SANDBOX_EXEC = "/usr/bin/sandbox-exec";
|
|
34122
34599
|
function sandboxEnabled(setting, platform = process.platform, exists = existsSync28) {
|
|
34123
34600
|
return setting !== "off" && platform === "darwin" && exists(SANDBOX_EXEC);
|
|
@@ -34261,7 +34738,7 @@ function checkoutPolicy(workspace, dir, extra = [], home = process.env.HOME) {
|
|
|
34261
34738
|
};
|
|
34262
34739
|
}
|
|
34263
34740
|
|
|
34264
|
-
// src/gates/run.ts
|
|
34741
|
+
// packages/core/src/gates/run.ts
|
|
34265
34742
|
var FAILING = new Set(["fail", "missing", "not-check-only", "timeout"]);
|
|
34266
34743
|
var TEST_GATES = new Set(["test", "testAffected"]);
|
|
34267
34744
|
function staleLockfileNote(paths) {
|
|
@@ -34481,7 +34958,7 @@ async function runGates(input) {
|
|
|
34481
34958
|
};
|
|
34482
34959
|
}
|
|
34483
34960
|
|
|
34484
|
-
// src/git/worktrees.ts
|
|
34961
|
+
// packages/core/src/git/worktrees.ts
|
|
34485
34962
|
import { existsSync as existsSync30, mkdirSync as mkdirSync12 } from "node:fs";
|
|
34486
34963
|
import { dirname as dirname9, join as join38 } from "node:path";
|
|
34487
34964
|
var taskBranch = (id, task) => `${changeBranch(id)}--${task}`;
|
|
@@ -34507,7 +34984,7 @@ async function removeTaskWorktree(repoDir, wt) {
|
|
|
34507
34984
|
return del.code === 0 || !await refExists(repoDir, `refs/heads/${wt.branch}`);
|
|
34508
34985
|
}
|
|
34509
34986
|
|
|
34510
|
-
// src/git/merge-queue.ts
|
|
34987
|
+
// packages/core/src/git/merge-queue.ts
|
|
34511
34988
|
var NON_INTERACTIVE = { GIT_EDITOR: "true", GIT_SEQUENCE_EDITOR: "true" };
|
|
34512
34989
|
async function conflictedFiles(worktree) {
|
|
34513
34990
|
const out = await gitOk(["diff", "--name-only", "--diff-filter=U"], { cwd: worktree });
|
|
@@ -34574,7 +35051,7 @@ class MergeQueue {
|
|
|
34574
35051
|
}
|
|
34575
35052
|
}
|
|
34576
35053
|
|
|
34577
|
-
// src/graph/updater.ts
|
|
35054
|
+
// packages/core/src/graph/updater.ts
|
|
34578
35055
|
class GraphUpdater {
|
|
34579
35056
|
update;
|
|
34580
35057
|
onCovered;
|
|
@@ -34625,7 +35102,7 @@ class GraphUpdater {
|
|
|
34625
35102
|
}
|
|
34626
35103
|
}
|
|
34627
35104
|
|
|
34628
|
-
// src/policy/scope.ts
|
|
35105
|
+
// packages/core/src/policy/scope.ts
|
|
34629
35106
|
import { isAbsolute as isAbsolute2, normalize, relative as relative7, resolve as resolve5 } from "node:path";
|
|
34630
35107
|
var architectDirs = (changeId) => [
|
|
34631
35108
|
`openspec/changes/${changeId}/`,
|
|
@@ -34690,7 +35167,7 @@ function auditChanges(ctx, changed, approved) {
|
|
|
34690
35167
|
});
|
|
34691
35168
|
}
|
|
34692
35169
|
|
|
34693
|
-
// src/scheduler/scheduler.ts
|
|
35170
|
+
// packages/core/src/scheduler/scheduler.ts
|
|
34694
35171
|
var MAX_TRANSIENT = 3;
|
|
34695
35172
|
var TERMINAL = new Set(["merged", "failed", "cancelled"]);
|
|
34696
35173
|
function retryTask(draft, taskId) {
|
|
@@ -35055,7 +35532,7 @@ class Scheduler {
|
|
|
35055
35532
|
}
|
|
35056
35533
|
}
|
|
35057
35534
|
|
|
35058
|
-
// src/tasks/routing.ts
|
|
35535
|
+
// packages/core/src/tasks/routing.ts
|
|
35059
35536
|
function agentForTask(config, repo, touches) {
|
|
35060
35537
|
for (const rule of config.routing) {
|
|
35061
35538
|
const agent = config.agents.find((a) => a.id === rule.agent);
|
|
@@ -35074,7 +35551,7 @@ function agentForTask(config, repo, touches) {
|
|
|
35074
35551
|
return { agent: `implementer-${repo}`, role: "implementer", custom: false };
|
|
35075
35552
|
}
|
|
35076
35553
|
|
|
35077
|
-
// src/util/cap.ts
|
|
35554
|
+
// packages/core/src/util/cap.ts
|
|
35078
35555
|
var CHARS_PER_TOKEN = 4;
|
|
35079
35556
|
var estimateTokens = (text) => Math.ceil(text.length / CHARS_PER_TOKEN);
|
|
35080
35557
|
function capText(text, maxTokens, note) {
|
|
@@ -35088,7 +35565,7 @@ function capText(text, maxTokens, note) {
|
|
|
35088
35565
|
${note}`;
|
|
35089
35566
|
}
|
|
35090
35567
|
|
|
35091
|
-
// src/pipeline/implement.ts
|
|
35568
|
+
// packages/core/src/pipeline/implement.ts
|
|
35092
35569
|
var forbidShortcuts = (p) => p.config.addons.ponytail.enabled && p.config.addons.ponytail.shortcutComments === "forbid";
|
|
35093
35570
|
function gateDefinitions(p, id) {
|
|
35094
35571
|
const snapshot = loadGateSnapshot(p.root, id);
|
|
@@ -35633,7 +36110,7 @@ async function implement(p, id) {
|
|
|
35633
36110
|
return adjusted;
|
|
35634
36111
|
}
|
|
35635
36112
|
|
|
35636
|
-
// src/pipeline/contracts.ts
|
|
36113
|
+
// packages/core/src/pipeline/contracts.ts
|
|
35637
36114
|
var MAX_CONTRACT_ROUNDS = 1;
|
|
35638
36115
|
function addFixTask(p, draft, id, task) {
|
|
35639
36116
|
if (draft.tasks.some((t) => t.id === task.id))
|
|
@@ -35768,11 +36245,11 @@ ${summarize(r)}
|
|
|
35768
36245
|
return { ok: true, added, issues: [] };
|
|
35769
36246
|
}
|
|
35770
36247
|
|
|
35771
|
-
// src/pipeline/finish.ts
|
|
36248
|
+
// packages/core/src/pipeline/finish.ts
|
|
35772
36249
|
import { existsSync as existsSync33, mkdirSync as mkdirSync16, readdirSync as readdirSync12, readFileSync as readFileSync29, writeFileSync as writeFileSync12 } from "node:fs";
|
|
35773
36250
|
import { join as join42 } from "node:path";
|
|
35774
36251
|
|
|
35775
|
-
// src/artifacts/export.ts
|
|
36252
|
+
// packages/core/src/artifacts/export.ts
|
|
35776
36253
|
import {
|
|
35777
36254
|
existsSync as existsSync32,
|
|
35778
36255
|
mkdirSync as mkdirSync15,
|
|
@@ -35917,7 +36394,7 @@ async function maybeExport(root, config, id, options = {}) {
|
|
|
35917
36394
|
return exportArtifacts(root, config, id, options);
|
|
35918
36395
|
}
|
|
35919
36396
|
|
|
35920
|
-
// src/git/pointers.ts
|
|
36397
|
+
// packages/core/src/git/pointers.ts
|
|
35921
36398
|
import { join as join41 } from "node:path";
|
|
35922
36399
|
var PROVISIONAL_SUBJECT = (id) => `chore(submodules): bump for ${id} [provisional]`;
|
|
35923
36400
|
async function bumpPointers(root, id, repos) {
|
|
@@ -36068,7 +36545,7 @@ async function repoint(root, config, id) {
|
|
|
36068
36545
|
return { ...commit ? { commit } : {}, results };
|
|
36069
36546
|
}
|
|
36070
36547
|
|
|
36071
|
-
// src/pipeline/finish.ts
|
|
36548
|
+
// packages/core/src/pipeline/finish.ts
|
|
36072
36549
|
var MAX_SUITE_ROUNDS = 2;
|
|
36073
36550
|
var specPauseReason = (id, count) => `${count} review finding${count === 1 ? "" : "s"} concern the change's spec; run \`loomwright reword ${id}\` to apply them (or edit it and run \`loomwright reapprove ${id}\`), then \`loomwright resume ${id}\``;
|
|
36074
36551
|
var touchedRepos = (run) => [...new Set(run.tasks.map((t) => t.repo))];
|
|
@@ -36447,7 +36924,7 @@ Archived as \`openspec/changes/archive/${archivedAs}\`.`,
|
|
|
36447
36924
|
return file;
|
|
36448
36925
|
}
|
|
36449
36926
|
|
|
36450
|
-
// src/pipeline/drive.ts
|
|
36927
|
+
// packages/core/src/pipeline/drive.ts
|
|
36451
36928
|
async function ensureDriver(p, id) {
|
|
36452
36929
|
const claim = await claimActive(p.root, id);
|
|
36453
36930
|
if (claim.status === "busy")
|
|
@@ -36659,18 +37136,18 @@ async function step(p, id) {
|
|
|
36659
37136
|
}
|
|
36660
37137
|
}
|
|
36661
37138
|
|
|
36662
|
-
// src/runtime/opencode.ts
|
|
37139
|
+
// packages/core/src/runtime/opencode.ts
|
|
36663
37140
|
import { spawn as spawn2 } from "node:child_process";
|
|
36664
37141
|
import { randomBytes } from "node:crypto";
|
|
36665
37142
|
import { mkdirSync as mkdirSync17, writeFileSync as writeFileSync13 } from "node:fs";
|
|
36666
37143
|
import { createServer } from "node:net";
|
|
36667
37144
|
import { join as join44 } from "node:path";
|
|
36668
37145
|
|
|
36669
|
-
// src/policy/session-files.ts
|
|
37146
|
+
// packages/core/src/policy/session-files.ts
|
|
36670
37147
|
import { join as join43 } from "node:path";
|
|
36671
37148
|
var sessionContextFile = (workspace, sessionId) => join43(workspace, ".factory", "sessions", `${sessionId}.json`);
|
|
36672
37149
|
|
|
36673
|
-
// src/runtime/auth.ts
|
|
37150
|
+
// packages/core/src/runtime/auth.ts
|
|
36674
37151
|
var EXPORT_ENV = [
|
|
36675
37152
|
"PATH",
|
|
36676
37153
|
"HOME",
|
|
@@ -36882,7 +37359,7 @@ async function syncCredentials(api, scoped) {
|
|
|
36882
37359
|
return { created, updated, removed, activated, skipped, failed };
|
|
36883
37360
|
}
|
|
36884
37361
|
|
|
36885
|
-
// src/runtime/opencode.ts
|
|
37362
|
+
// packages/core/src/runtime/opencode.ts
|
|
36886
37363
|
var ENV_ALLOW = [
|
|
36887
37364
|
"PATH",
|
|
36888
37365
|
"HOME",
|
|
@@ -37348,7 +37825,7 @@ class OpencodeRuntime {
|
|
|
37348
37825
|
}
|
|
37349
37826
|
}
|
|
37350
37827
|
|
|
37351
|
-
//
|
|
37828
|
+
// packages/cli/src/commands/pipeline-commands.ts
|
|
37352
37829
|
async function setup(io) {
|
|
37353
37830
|
const root = await findWorkspaceRoot(io.cwd);
|
|
37354
37831
|
if (root === undefined)
|
|
@@ -37564,7 +38041,7 @@ kept worktrees, finished ones stay; a queued change starts when the workspace is
|
|
|
37564
38041
|
}
|
|
37565
38042
|
};
|
|
37566
38043
|
|
|
37567
|
-
//
|
|
38044
|
+
// packages/cli/src/commands/adopt.ts
|
|
37568
38045
|
var HELP = `Usage: loomwright adopt [<change-id>... | --all] [--dry-run] [--json] [--normalize] [--preserve-progress]
|
|
37569
38046
|
|
|
37570
38047
|
Takes over OpenSpec changes that already exist in openspec/changes/ when the factory is
|
|
@@ -37875,7 +38352,7 @@ function reportCode(results, dryRun) {
|
|
|
37875
38352
|
return ExitCode.Ok;
|
|
37876
38353
|
}
|
|
37877
38354
|
|
|
37878
|
-
//
|
|
38355
|
+
// packages/cli/src/commands/artifacts.ts
|
|
37879
38356
|
var HELP2 = `Usage: loomwright artifacts sync [<change-id> | --all] [--dry-run] [--json]
|
|
37880
38357
|
|
|
37881
38358
|
Copies a finished change's final report, approval record and usage ledger from the
|
|
@@ -37942,11 +38419,11 @@ var artifactsCommand = {
|
|
|
37942
38419
|
}
|
|
37943
38420
|
};
|
|
37944
38421
|
|
|
37945
|
-
//
|
|
38422
|
+
// packages/cli/src/commands/bench.ts
|
|
37946
38423
|
import { mkdirSync as mkdirSync19, writeFileSync as writeFileSync15 } from "node:fs";
|
|
37947
38424
|
import { join as join47 } from "node:path";
|
|
37948
38425
|
|
|
37949
|
-
// src/bench/ponytail.ts
|
|
38426
|
+
// packages/core/src/bench/ponytail.ts
|
|
37950
38427
|
import {
|
|
37951
38428
|
mkdirSync as mkdirSync18,
|
|
37952
38429
|
mkdtempSync as mkdtempSync3,
|
|
@@ -38172,7 +38649,7 @@ function benchMarkdown(results, models, date) {
|
|
|
38172
38649
|
`);
|
|
38173
38650
|
}
|
|
38174
38651
|
|
|
38175
|
-
//
|
|
38652
|
+
// packages/cli/src/commands/bench.ts
|
|
38176
38653
|
var HELP3 = `Usage: loomwright bench ponytail [--runs N] [--case ID] [--levels L,…] [--yes] [--json]
|
|
38177
38654
|
|
|
38178
38655
|
Runs each bench case (${BENCH_CASES.map((c) => c.id).join(", ")}) N times (default 3) with and
|
|
@@ -38263,13 +38740,13 @@ function benchCommand(cli) {
|
|
|
38263
38740
|
};
|
|
38264
38741
|
}
|
|
38265
38742
|
|
|
38266
|
-
//
|
|
38743
|
+
// packages/cli/src/commands/completion.ts
|
|
38267
38744
|
import { basename as basename3 } from "node:path";
|
|
38268
38745
|
|
|
38269
|
-
//
|
|
38746
|
+
// packages/cli/src/completion/engine.ts
|
|
38270
38747
|
import { resolve as resolve7 } from "node:path";
|
|
38271
38748
|
|
|
38272
|
-
//
|
|
38749
|
+
// packages/cli/src/completion/registry.ts
|
|
38273
38750
|
var registry2 = [];
|
|
38274
38751
|
function setCompletionCommands(commands) {
|
|
38275
38752
|
registry2 = commands;
|
|
@@ -38278,7 +38755,7 @@ function completionCommands() {
|
|
|
38278
38755
|
return registry2;
|
|
38279
38756
|
}
|
|
38280
38757
|
|
|
38281
|
-
//
|
|
38758
|
+
// packages/cli/src/completion/values.ts
|
|
38282
38759
|
import { readdirSync as readdirSync14 } from "node:fs";
|
|
38283
38760
|
import { join as join48 } from "node:path";
|
|
38284
38761
|
var names = (dir, suffix) => {
|
|
@@ -38401,7 +38878,7 @@ function valueCandidates(kind, context) {
|
|
|
38401
38878
|
}
|
|
38402
38879
|
}
|
|
38403
38880
|
|
|
38404
|
-
//
|
|
38881
|
+
// packages/cli/src/completion/engine.ts
|
|
38405
38882
|
var GLOBAL_FLAGS = [
|
|
38406
38883
|
{ value: "-C", description: "Run as if started in <dir>", complete: "dir" },
|
|
38407
38884
|
{ value: "-h", description: "Show help" },
|
|
@@ -38587,7 +39064,7 @@ async function completeWords(words, cwd) {
|
|
|
38587
39064
|
return commandCandidates(command, globals.rest.slice(1), current, globals.cwd);
|
|
38588
39065
|
}
|
|
38589
39066
|
|
|
38590
|
-
//
|
|
39067
|
+
// packages/cli/src/completion/scripts.ts
|
|
38591
39068
|
import {
|
|
38592
39069
|
chmodSync as chmodSync2,
|
|
38593
39070
|
existsSync as existsSync35,
|
|
@@ -38740,7 +39217,7 @@ function installCompletion(shell, cwd, override) {
|
|
|
38740
39217
|
return { path, changed: true };
|
|
38741
39218
|
}
|
|
38742
39219
|
|
|
38743
|
-
//
|
|
39220
|
+
// packages/cli/src/commands/completion.ts
|
|
38744
39221
|
var OPTIONS4 = {
|
|
38745
39222
|
install: { type: "boolean", default: false, description: "Add the script to your shell rc" },
|
|
38746
39223
|
rc: { type: "string", complete: "file", description: "With --install: the rc file to edit" }
|
|
@@ -38816,11 +39293,11 @@ var completeCommand = {
|
|
|
38816
39293
|
}
|
|
38817
39294
|
};
|
|
38818
39295
|
|
|
38819
|
-
//
|
|
39296
|
+
// packages/cli/src/commands/detect.ts
|
|
38820
39297
|
import { existsSync as existsSync36, renameSync as renameSync7, writeFileSync as writeFileSync17 } from "node:fs";
|
|
38821
39298
|
import { join as join50 } from "node:path";
|
|
38822
39299
|
|
|
38823
|
-
// src/detect/apply.ts
|
|
39300
|
+
// packages/core/src/detect/apply.ts
|
|
38824
39301
|
function applyChanges(text, config, changes) {
|
|
38825
39302
|
let out = text;
|
|
38826
39303
|
const repoIndex = (path) => config.repos.findIndex((r) => r.path === path);
|
|
@@ -38852,7 +39329,7 @@ function applyChanges(text, config, changes) {
|
|
|
38852
39329
|
return out;
|
|
38853
39330
|
}
|
|
38854
39331
|
|
|
38855
|
-
//
|
|
39332
|
+
// packages/cli/src/commands/detect.ts
|
|
38856
39333
|
var HELP5 = `Usage: loomwright detect [--apply [--no-commit] [--allow-downgrade]] [--check] [--json]
|
|
38857
39334
|
|
|
38858
39335
|
Re-detects the layout, repos, languages and contracts and shows the difference
|
|
@@ -38973,12 +39450,12 @@ var detectCommand = {
|
|
|
38973
39450
|
}
|
|
38974
39451
|
};
|
|
38975
39452
|
|
|
38976
|
-
// src/doctor/doctor.ts
|
|
39453
|
+
// packages/core/src/doctor/doctor.ts
|
|
38977
39454
|
import { existsSync as existsSync37, lstatSync as lstatSync2, mkdtempSync as mkdtempSync4, readdirSync as readdirSync15, readFileSync as readFileSync33, rmSync as rmSync12 } from "node:fs";
|
|
38978
39455
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
38979
39456
|
import { delimiter as delimiter2, extname, join as join51 } from "node:path";
|
|
38980
39457
|
|
|
38981
|
-
// src/policy/shell-parse.ts
|
|
39458
|
+
// packages/core/src/policy/shell-parse.ts
|
|
38982
39459
|
class ShellParseError extends Error {
|
|
38983
39460
|
}
|
|
38984
39461
|
var OPS = ["&&", "||", ";;", ";", "|&", "|", "&", "(", ")", `
|
|
@@ -39352,7 +39829,7 @@ function parseScript(src) {
|
|
|
39352
39829
|
return new Parser(new Lexer(src).lex()).script(false);
|
|
39353
39830
|
}
|
|
39354
39831
|
|
|
39355
|
-
// src/doctor/doctor.ts
|
|
39832
|
+
// packages/core/src/doctor/doctor.ts
|
|
39356
39833
|
var SHELL_BUILTINS = new Set([
|
|
39357
39834
|
"[",
|
|
39358
39835
|
"test",
|
|
@@ -39464,18 +39941,23 @@ class Checks {
|
|
|
39464
39941
|
var GUARD_PLUGIN = ".opencode/plugins/factory.js";
|
|
39465
39942
|
var CURRENT_PINS = buildLock({}).tools;
|
|
39466
39943
|
var range = (pin) => `>= ${pin.min}${pin.maxExclusive ? ` < ${pin.maxExclusive}` : ""}`;
|
|
39467
|
-
async function checkToolsAndLock(c, root, lock) {
|
|
39944
|
+
async function checkToolsAndLock(c, root, lock, config) {
|
|
39468
39945
|
c.in("tools");
|
|
39946
|
+
const requirement = config === undefined ? undefined : opencodeRequirement(config);
|
|
39947
|
+
const floor = requirement !== undefined && compareVersions(requirement.min, OPENCODE.min) > 0 ? requirement.min : OPENCODE.min;
|
|
39469
39948
|
const names = ["git", "opencode", "openspec", "graphify"];
|
|
39470
|
-
for (const t of await checkTools(names, root)) {
|
|
39949
|
+
for (const t of await checkTools(names, root, requirement ? { opencode: requirement } : {})) {
|
|
39471
39950
|
if (!t.ok) {
|
|
39472
39951
|
c.add("fail", t.tool, t.problem, t.fix);
|
|
39473
39952
|
continue;
|
|
39474
39953
|
}
|
|
39475
39954
|
const pin = lock?.tools[t.tool];
|
|
39476
39955
|
const outsideLock = pin !== undefined && (compareVersions(t.version, pin.min) < 0 || pin.maxExclusive !== undefined && compareVersions(t.version, pin.maxExclusive) >= 0);
|
|
39956
|
+
const staleFloor = t.tool === "opencode" && pin !== undefined && !outsideLock && compareVersions(pin.min, floor) < 0;
|
|
39477
39957
|
if (pin !== undefined && outsideLock) {
|
|
39478
39958
|
c.add("warn", t.tool, `${t.version} is outside the lock's range (${range(pin)})`, "loomwright update --tools");
|
|
39959
|
+
} else if (staleFloor) {
|
|
39960
|
+
c.add("warn", t.tool, `${t.version}; the lock's floor is ${pin.min}, this config needs ${floor}${requirement === undefined ? "" : ` (${requirement.reason})`}`, "loomwright update");
|
|
39479
39961
|
} else if (pin !== undefined && pin.tested !== CURRENT_PINS[t.tool].tested) {
|
|
39480
39962
|
c.add("warn", t.tool, `${t.version}; the lock pins tested ${pin.tested}, this factory ${CURRENT_PINS[t.tool].tested}`, "loomwright update --tools");
|
|
39481
39963
|
} else {
|
|
@@ -39915,20 +40397,26 @@ function checkSandbox(c, config) {
|
|
|
39915
40397
|
async function runDoctor(root) {
|
|
39916
40398
|
const c = new Checks("tools");
|
|
39917
40399
|
const lock = readLock(root);
|
|
39918
|
-
|
|
40400
|
+
let config;
|
|
40401
|
+
let configFailure;
|
|
40402
|
+
if (lock !== undefined) {
|
|
40403
|
+
try {
|
|
40404
|
+
config = loadConfig(root).config;
|
|
40405
|
+
} catch (err) {
|
|
40406
|
+
if (!(err instanceof FactoryError))
|
|
40407
|
+
throw err;
|
|
40408
|
+
configFailure = err;
|
|
40409
|
+
}
|
|
40410
|
+
}
|
|
40411
|
+
await checkToolsAndLock(c, root, lock, config);
|
|
39919
40412
|
const uninitialised = [];
|
|
39920
40413
|
c.in("install");
|
|
39921
40414
|
if (lock === undefined) {
|
|
39922
40415
|
c.add("fail", "install", "loomwright is not installed here", "loomwright init");
|
|
39923
40416
|
return { checks: c.list, gates: [], uninitialised };
|
|
39924
40417
|
}
|
|
39925
|
-
|
|
39926
|
-
|
|
39927
|
-
config = loadConfig(root).config;
|
|
39928
|
-
} catch (err) {
|
|
39929
|
-
if (!(err instanceof FactoryError))
|
|
39930
|
-
throw err;
|
|
39931
|
-
c.add("fail", "config", err.message, err.details.join("; ") || undefined);
|
|
40418
|
+
if (config === undefined) {
|
|
40419
|
+
c.add("fail", "config", configFailure?.message ?? "config could not be read", configFailure?.details.join("; ") || undefined);
|
|
39932
40420
|
return { checks: c.list, gates: [], uninitialised };
|
|
39933
40421
|
}
|
|
39934
40422
|
c.add("ok", "config", `schemaVersion ${config.schemaVersion}, layout ${config.layout}`);
|
|
@@ -39948,7 +40436,7 @@ async function runDoctor(root) {
|
|
|
39948
40436
|
return { checks: c.list, gates, uninitialised };
|
|
39949
40437
|
}
|
|
39950
40438
|
|
|
39951
|
-
//
|
|
40439
|
+
// packages/cli/src/commands/doctor.ts
|
|
39952
40440
|
var MARK2 = { ok: "✓", warn: "!", fail: "✗" };
|
|
39953
40441
|
function print(io, report) {
|
|
39954
40442
|
let section = "";
|
|
@@ -40020,7 +40508,7 @@ Exit code ${ExitCode.Precondition} when a check fails; warnings exit 0.`,
|
|
|
40020
40508
|
}
|
|
40021
40509
|
};
|
|
40022
40510
|
|
|
40023
|
-
//
|
|
40511
|
+
// packages/cli/src/commands/gate.ts
|
|
40024
40512
|
import { existsSync as existsSync38, readdirSync as readdirSync16 } from "node:fs";
|
|
40025
40513
|
import { join as join52 } from "node:path";
|
|
40026
40514
|
var HELP6 = `Usage: loomwright gate <change-id> [--task <id>] [--repo <name>] [--full] [--json]
|
|
@@ -40152,7 +40640,7 @@ var gateCommand = {
|
|
|
40152
40640
|
}
|
|
40153
40641
|
};
|
|
40154
40642
|
|
|
40155
|
-
//
|
|
40643
|
+
// packages/cli/src/commands/graph.ts
|
|
40156
40644
|
import { existsSync as existsSync39 } from "node:fs";
|
|
40157
40645
|
import { join as join53 } from "node:path";
|
|
40158
40646
|
var OPTIONS8 = {
|
|
@@ -40192,11 +40680,11 @@ The pipeline also updates it after every task merge, so this is rarely needed by
|
|
|
40192
40680
|
}
|
|
40193
40681
|
};
|
|
40194
40682
|
|
|
40195
|
-
//
|
|
40683
|
+
// packages/cli/src/commands/init.ts
|
|
40196
40684
|
import { existsSync as existsSync41, writeFileSync as writeFileSync18 } from "node:fs";
|
|
40197
40685
|
import { join as join55 } from "node:path";
|
|
40198
40686
|
|
|
40199
|
-
// src/config/render.ts
|
|
40687
|
+
// packages/core/src/config/render.ts
|
|
40200
40688
|
var DEFAULT_MODELS = {
|
|
40201
40689
|
orchestrator: "anthropic/claude-sonnet-5-5",
|
|
40202
40690
|
architect: "anthropic/claude-opus-5-5",
|
|
@@ -40358,7 +40846,7 @@ ${contracts}
|
|
|
40358
40846
|
`;
|
|
40359
40847
|
}
|
|
40360
40848
|
|
|
40361
|
-
// src/workspace/legacy.ts
|
|
40849
|
+
// packages/core/src/workspace/legacy.ts
|
|
40362
40850
|
import { existsSync as existsSync40, mkdirSync as mkdirSync21, readdirSync as readdirSync17, renameSync as renameSync8, rmdirSync as rmdirSync2 } from "node:fs";
|
|
40363
40851
|
import { dirname as dirname13, join as join54 } from "node:path";
|
|
40364
40852
|
var OPENSPEC_PREFIX = /^(opsx-|openspec-)/;
|
|
@@ -40400,7 +40888,7 @@ function archiveLegacySetups(root, repoPaths) {
|
|
|
40400
40888
|
return { stamp, archived };
|
|
40401
40889
|
}
|
|
40402
40890
|
|
|
40403
|
-
//
|
|
40891
|
+
// packages/cli/src/commands/init.ts
|
|
40404
40892
|
var OPENSPEC_CONFIG = "openspec/config.yaml";
|
|
40405
40893
|
var HELP7 = `Usage: loomwright init [--plan] [--force] [--allow-downgrade] [--no-commit] [--no-graph] [--json]
|
|
40406
40894
|
|
|
@@ -40472,7 +40960,11 @@ var initCommand = {
|
|
|
40472
40960
|
if (top !== root) {
|
|
40473
40961
|
throw new PreconditionError(`${root} is not the top level of its git repository (${top})`);
|
|
40474
40962
|
}
|
|
40475
|
-
const
|
|
40963
|
+
const configPath = join55(root, CONFIG_FILE);
|
|
40964
|
+
const newConfig = !existsSync41(configPath);
|
|
40965
|
+
const existingConfig = newConfig ? undefined : loadConfig(root).config;
|
|
40966
|
+
const requirement = existingConfig === undefined ? undefined : opencodeRequirement(existingConfig);
|
|
40967
|
+
const tools = await checkTools(REQUIRED_TOOLS, root, requirement === undefined ? {} : { opencode: requirement });
|
|
40476
40968
|
const missing = tools.filter((t) => !t.ok);
|
|
40477
40969
|
if (missing.length > 0) {
|
|
40478
40970
|
throw new PreconditionError("required tools are missing or unsupported", missing.map((t) => t.ok ? "" : `${t.tool}: ${t.problem} → ${t.fix}`));
|
|
@@ -40486,15 +40978,13 @@ var initCommand = {
|
|
|
40486
40978
|
]);
|
|
40487
40979
|
}
|
|
40488
40980
|
}
|
|
40489
|
-
const configPath = join55(root, CONFIG_FILE);
|
|
40490
|
-
const newConfig = !existsSync41(configPath);
|
|
40491
40981
|
const unadopted = unadoptedChanges(root);
|
|
40492
40982
|
const detection = newConfig ? await detectWorkspace(root) : undefined;
|
|
40493
40983
|
const legacy = !values.plan && readLock(root) === undefined && detection !== undefined ? archiveLegacySetups(root, detection.repos.map((r) => r.path)) : undefined;
|
|
40494
40984
|
const keepOpenspec = newConfig && !values.force && existsSync41(join55(root, OPENSPEC_CONFIG)) && readLock(root) === undefined;
|
|
40495
40985
|
const rendered = detection !== undefined ? renderInitialConfig(detection) : undefined;
|
|
40496
40986
|
const configText = rendered !== undefined && keepOpenspec ? setJsonc(rendered, ["unmanaged"], [OPENSPEC_CONFIG]) : rendered;
|
|
40497
|
-
const config = configText !== undefined ? parseConfigText(configText, CONFIG_FILE) : loadConfig(root).config;
|
|
40987
|
+
const config = configText !== undefined ? parseConfigText(configText, CONFIG_FILE) : existingConfig ?? loadConfig(root).config;
|
|
40498
40988
|
const openspecFiles = await renderOpenspecTools(root);
|
|
40499
40989
|
if (values.plan) {
|
|
40500
40990
|
const planned = planSync(root, [...renderWorkspace(config, { root }), ...openspecFiles], readLock(root)?.managed ?? {}, { unmanaged: config.unmanaged, force: values.force });
|
|
@@ -40572,7 +41062,7 @@ var initCommand = {
|
|
|
40572
41062
|
}
|
|
40573
41063
|
};
|
|
40574
41064
|
|
|
40575
|
-
// src/pipeline/land.ts
|
|
41065
|
+
// packages/core/src/pipeline/land.ts
|
|
40576
41066
|
import { existsSync as existsSync42, readdirSync as readdirSync18, readFileSync as readFileSync34, rmSync as rmSync13 } from "node:fs";
|
|
40577
41067
|
import { join as join56 } from "node:path";
|
|
40578
41068
|
var refs = {
|
|
@@ -40950,7 +41440,7 @@ var inProgress = async (dir) => {
|
|
|
40950
41440
|
return false;
|
|
40951
41441
|
};
|
|
40952
41442
|
|
|
40953
|
-
//
|
|
41443
|
+
// packages/cli/src/commands/land.ts
|
|
40954
41444
|
var OPTIONS10 = {
|
|
40955
41445
|
"dry-run": {
|
|
40956
41446
|
type: "boolean",
|
|
@@ -41035,11 +41525,11 @@ var landCommand = {
|
|
|
41035
41525
|
}
|
|
41036
41526
|
};
|
|
41037
41527
|
|
|
41038
|
-
// src/pipeline/quick.ts
|
|
41528
|
+
// packages/core/src/pipeline/quick.ts
|
|
41039
41529
|
import { rmSync as rmSync14 } from "node:fs";
|
|
41040
41530
|
import { join as join58 } from "node:path";
|
|
41041
41531
|
|
|
41042
|
-
// src/pipeline/refine.ts
|
|
41532
|
+
// packages/core/src/pipeline/refine.ts
|
|
41043
41533
|
import { mkdirSync as mkdirSync22, writeFileSync as writeFileSync19 } from "node:fs";
|
|
41044
41534
|
import { join as join57 } from "node:path";
|
|
41045
41535
|
var QUESTIONS = [
|
|
@@ -41100,7 +41590,7 @@ Q&A in \`openspec/changes/<id>/questions.md\`.
|
|
|
41100
41590
|
return { path, text };
|
|
41101
41591
|
}
|
|
41102
41592
|
|
|
41103
|
-
// src/pipeline/quick.ts
|
|
41593
|
+
// packages/core/src/pipeline/quick.ts
|
|
41104
41594
|
var quickChangeId = (task) => `quick-${requestSlug(task)}`;
|
|
41105
41595
|
async function revert(dir, paths) {
|
|
41106
41596
|
for (const path of paths) {
|
|
@@ -41320,7 +41810,7 @@ ${findings.join(`
|
|
|
41320
41810
|
};
|
|
41321
41811
|
}
|
|
41322
41812
|
|
|
41323
|
-
//
|
|
41813
|
+
// packages/cli/src/commands/quick.ts
|
|
41324
41814
|
var HELP9 = `Usage: loomwright quick "<task>" [--repo <name>] [--agent <id>] [--no-review] [--verbose|--quiet]
|
|
41325
41815
|
|
|
41326
41816
|
The no-OpenSpec path: create a task/<slug> branch, implement, run the repository gates, run
|
|
@@ -41372,7 +41862,7 @@ var quickCommand = {
|
|
|
41372
41862
|
}
|
|
41373
41863
|
};
|
|
41374
41864
|
|
|
41375
|
-
//
|
|
41865
|
+
// packages/cli/src/commands/refine.ts
|
|
41376
41866
|
var HELP10 = `Usage: loomwright refine "<request>"
|
|
41377
41867
|
|
|
41378
41868
|
Ask a few scope, verification and constraint questions, then write a refined request to
|
|
@@ -41396,7 +41886,7 @@ var refineCommand = {
|
|
|
41396
41886
|
}
|
|
41397
41887
|
};
|
|
41398
41888
|
|
|
41399
|
-
//
|
|
41889
|
+
// packages/cli/src/commands/repoint.ts
|
|
41400
41890
|
var HELP11 = `Usage: loomwright repoint <change-id> [--json]
|
|
41401
41891
|
|
|
41402
41892
|
After the submodule MRs of a change are merged upstream: fetches each submodule, finds the
|
|
@@ -41441,7 +41931,7 @@ var repointCommand = {
|
|
|
41441
41931
|
}
|
|
41442
41932
|
};
|
|
41443
41933
|
|
|
41444
|
-
// src/pipeline/reword.ts
|
|
41934
|
+
// packages/core/src/pipeline/reword.ts
|
|
41445
41935
|
import { createHash as createHash5 } from "node:crypto";
|
|
41446
41936
|
import {
|
|
41447
41937
|
existsSync as existsSync43,
|
|
@@ -41823,7 +42313,7 @@ async function reword(p, id, options = {}) {
|
|
|
41823
42313
|
return { changed: true, approval, specCommit, findings: remaining };
|
|
41824
42314
|
}
|
|
41825
42315
|
|
|
41826
|
-
//
|
|
42316
|
+
// packages/cli/src/commands/reword.ts
|
|
41827
42317
|
function selectedFindings(command, all, value) {
|
|
41828
42318
|
if (value === undefined)
|
|
41829
42319
|
return [...all];
|
|
@@ -41928,7 +42418,7 @@ architect apply review findings. Continue with \`loomwright resume <id>\`.
|
|
|
41928
42418
|
}
|
|
41929
42419
|
};
|
|
41930
42420
|
|
|
41931
|
-
//
|
|
42421
|
+
// packages/cli/src/commands/state-commands.ts
|
|
41932
42422
|
import { existsSync as existsSync44, readdirSync as readdirSync20 } from "node:fs";
|
|
41933
42423
|
import { join as join60 } from "node:path";
|
|
41934
42424
|
async function workspace(io) {
|
|
@@ -42220,7 +42710,7 @@ that were cancelled because of it. Continue the change with \`loomwright resume
|
|
|
42220
42710
|
}
|
|
42221
42711
|
};
|
|
42222
42712
|
|
|
42223
|
-
//
|
|
42713
|
+
// packages/cli/src/commands/update.ts
|
|
42224
42714
|
import { rmSync as rmSync16, writeFileSync as writeFileSync21 } from "node:fs";
|
|
42225
42715
|
import { join as join61 } from "node:path";
|
|
42226
42716
|
async function workspaceRoot(io) {
|
|
@@ -42312,7 +42802,8 @@ Upgrades this workspace to the installed factory version, as one local commit
|
|
|
42312
42802
|
}, null, 2));
|
|
42313
42803
|
return ExitCode.Ok;
|
|
42314
42804
|
}
|
|
42315
|
-
const
|
|
42805
|
+
const requirement = opencodeRequirement(plan.config);
|
|
42806
|
+
const tools = await checkTools(["git", "opencode", "openspec", "graphify"], root, requirement === undefined ? {} : { opencode: requirement });
|
|
42316
42807
|
for (const t of tools)
|
|
42317
42808
|
if (!t.ok)
|
|
42318
42809
|
io.out(`warning: ${t.tool}: ${t.problem} → ${t.fix}`);
|
|
@@ -42380,7 +42871,7 @@ Restores every file the latest \`loomwright update\` touched (including the lock
|
|
|
42380
42871
|
}
|
|
42381
42872
|
};
|
|
42382
42873
|
|
|
42383
|
-
//
|
|
42874
|
+
// packages/cli/src/commands/usage.ts
|
|
42384
42875
|
import { basename as basename4 } from "node:path";
|
|
42385
42876
|
var DIMENSIONS = ["change", "agent", "model", "day"];
|
|
42386
42877
|
var OPTIONS14 = {
|
|
@@ -42501,7 +42992,7 @@ var usageCommand = {
|
|
|
42501
42992
|
}
|
|
42502
42993
|
};
|
|
42503
42994
|
|
|
42504
|
-
//
|
|
42995
|
+
// packages/cli/src/main.ts
|
|
42505
42996
|
var COMMANDS = [
|
|
42506
42997
|
initCommand,
|
|
42507
42998
|
adoptCommand,
|
|
@@ -42623,7 +43114,7 @@ ${usage()}`);
|
|
|
42623
43114
|
}
|
|
42624
43115
|
}
|
|
42625
43116
|
|
|
42626
|
-
//
|
|
43117
|
+
// packages/cli/src/bin.ts
|
|
42627
43118
|
var code = await runCli(process.argv.slice(2), {
|
|
42628
43119
|
cwd: process.cwd(),
|
|
42629
43120
|
out: (text) => process.stdout.write(`${text}
|