@loomwright/cli 0.12.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -2
- package/README.md +11 -9
- package/dist/cli.js +934 -430
- package/dist/package.json +1 -3
- package/package.json +8 -34
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
|
-
//
|
|
14685
|
-
import { resolve as
|
|
14684
|
+
// packages/cli/src/main.ts
|
|
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 = "0.
|
|
14745
|
+
// packages/core/src/version.ts
|
|
14746
|
+
var FACTORY_VERSION = "1.0.1";
|
|
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,7 +22240,7 @@ 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
22246
|
maxExclusive: "2.3.0",
|
|
@@ -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 (;; ) {
|
|
@@ -22702,16 +22710,20 @@ async function findWorkspaceRoot(start) {
|
|
|
22702
22710
|
const configRoot = findConfigRoot(start);
|
|
22703
22711
|
if (configRoot)
|
|
22704
22712
|
return configRoot;
|
|
22705
|
-
|
|
22706
|
-
|
|
22707
|
-
|
|
22708
|
-
|
|
22709
|
-
|
|
22710
|
-
|
|
22711
|
-
|
|
22712
|
-
|
|
22713
|
+
let root;
|
|
22714
|
+
for (let cwd = start;; ) {
|
|
22715
|
+
const res = await git(["rev-parse", "--show-toplevel", "--show-superproject-working-tree"], {
|
|
22716
|
+
cwd
|
|
22717
|
+
});
|
|
22718
|
+
if (res.code !== 0)
|
|
22719
|
+
return root;
|
|
22720
|
+
const [top = "", parent = ""] = res.stdout.split(`
|
|
22721
|
+
`).map((line) => line.trim());
|
|
22722
|
+
if (top !== "")
|
|
22723
|
+
root = top;
|
|
22724
|
+
if (parent === "")
|
|
22713
22725
|
return root;
|
|
22714
|
-
|
|
22726
|
+
cwd = parent;
|
|
22715
22727
|
}
|
|
22716
22728
|
}
|
|
22717
22729
|
function formatZodIssues(error) {
|
|
@@ -22744,7 +22756,7 @@ function loadConfig(root) {
|
|
|
22744
22756
|
return { root, file, text, config: parseConfigText(text, CONFIG_FILE) };
|
|
22745
22757
|
}
|
|
22746
22758
|
|
|
22747
|
-
// src/git/repo.ts
|
|
22759
|
+
// packages/core/src/git/repo.ts
|
|
22748
22760
|
var CHANGE_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
22749
22761
|
var changeBranch = (id) => `change/${id}`;
|
|
22750
22762
|
async function dirtyPaths(dir) {
|
|
@@ -22798,11 +22810,11 @@ async function resolveBranchRef(dir, branch, options = {}) {
|
|
|
22798
22810
|
]);
|
|
22799
22811
|
}
|
|
22800
22812
|
|
|
22801
|
-
// src/openspec/changes.ts
|
|
22813
|
+
// packages/core/src/openspec/changes.ts
|
|
22802
22814
|
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
22803
22815
|
import { join as join3 } from "node:path";
|
|
22804
22816
|
|
|
22805
|
-
// node_modules/yaml/dist/index.js
|
|
22817
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js
|
|
22806
22818
|
var composer = require_composer();
|
|
22807
22819
|
var Document = require_Document();
|
|
22808
22820
|
var Schema = require_Schema();
|
|
@@ -22848,7 +22860,7 @@ var $stringify = publicApi.stringify;
|
|
|
22848
22860
|
var $visit = visit2.visit;
|
|
22849
22861
|
var $visitAsync = visit2.visitAsync;
|
|
22850
22862
|
|
|
22851
|
-
// src/tasks/parse.ts
|
|
22863
|
+
// packages/core/src/tasks/parse.ts
|
|
22852
22864
|
var TASK_LINE = /^- \[( |x|X)\] (\d+(?:\.\d+)+)\s+(.+?)\s*$/;
|
|
22853
22865
|
var ANY_CHECKBOX = /^\s*[-*] \[[ xX]\]/;
|
|
22854
22866
|
var META_LINE = /^\s{2,}- (repo|deps|touches):\s*(.*?)\s*$/;
|
|
@@ -22919,7 +22931,7 @@ function normalizeCheckboxes(text) {
|
|
|
22919
22931
|
`);
|
|
22920
22932
|
}
|
|
22921
22933
|
|
|
22922
|
-
// src/openspec/cli.ts
|
|
22934
|
+
// packages/core/src/openspec/cli.ts
|
|
22923
22935
|
import {
|
|
22924
22936
|
existsSync as existsSync2,
|
|
22925
22937
|
mkdirSync,
|
|
@@ -22932,7 +22944,7 @@ import {
|
|
|
22932
22944
|
import { tmpdir } from "node:os";
|
|
22933
22945
|
import { join as join2, relative, sep } from "node:path";
|
|
22934
22946
|
|
|
22935
|
-
// src/tasks/glob.ts
|
|
22947
|
+
// packages/core/src/tasks/glob.ts
|
|
22936
22948
|
var cache = new Map;
|
|
22937
22949
|
function globRegExp(glob) {
|
|
22938
22950
|
const cached = cache.get(glob);
|
|
@@ -22999,7 +23011,7 @@ function opencodeGlobRegExp(glob) {
|
|
|
22999
23011
|
return new RegExp(`^${body}$`);
|
|
23000
23012
|
}
|
|
23001
23013
|
|
|
23002
|
-
// src/tasks/dag.ts
|
|
23014
|
+
// packages/core/src/tasks/dag.ts
|
|
23003
23015
|
function globSyntaxError(glob) {
|
|
23004
23016
|
let bracket = false;
|
|
23005
23017
|
let braces = 0;
|
|
@@ -23147,7 +23159,7 @@ function dependentsOf(tasks, id) {
|
|
|
23147
23159
|
return [...out];
|
|
23148
23160
|
}
|
|
23149
23161
|
|
|
23150
|
-
// src/tools.ts
|
|
23162
|
+
// packages/core/src/tools.ts
|
|
23151
23163
|
var TOOL_SPECS = {
|
|
23152
23164
|
git: {
|
|
23153
23165
|
bin: "git",
|
|
@@ -23229,7 +23241,7 @@ function checkTools(names, cwd) {
|
|
|
23229
23241
|
return Promise.all(names.map((n) => checkTool(n, cwd)));
|
|
23230
23242
|
}
|
|
23231
23243
|
|
|
23232
|
-
// src/openspec/cli.ts
|
|
23244
|
+
// packages/core/src/openspec/cli.ts
|
|
23233
23245
|
function env(root) {
|
|
23234
23246
|
const xdg = join2(root, ".factory", "cache", "openspec-xdg");
|
|
23235
23247
|
mkdirSync(xdg, { recursive: true });
|
|
@@ -23337,7 +23349,7 @@ async function renderOpenspecTools(root) {
|
|
|
23337
23349
|
}
|
|
23338
23350
|
}
|
|
23339
23351
|
|
|
23340
|
-
// src/openspec/changes.ts
|
|
23352
|
+
// packages/core/src/openspec/changes.ts
|
|
23341
23353
|
var factoryRunFile = (root, id) => join3(root, ".factory", "runs", `${id}.json`);
|
|
23342
23354
|
var hasRun = (root, id) => existsSync3(factoryRunFile(root, id));
|
|
23343
23355
|
function pendingChanges(root) {
|
|
@@ -23410,11 +23422,11 @@ function section(text, heading) {
|
|
|
23410
23422
|
`).trim();
|
|
23411
23423
|
}
|
|
23412
23424
|
|
|
23413
|
-
// src/pipeline/design.ts
|
|
23425
|
+
// packages/core/src/pipeline/design.ts
|
|
23414
23426
|
import { existsSync as existsSync11 } from "node:fs";
|
|
23415
23427
|
import { join as join12 } from "node:path";
|
|
23416
23428
|
|
|
23417
|
-
// src/config/instructions.ts
|
|
23429
|
+
// packages/core/src/config/instructions.ts
|
|
23418
23430
|
import { relative as relative2 } from "node:path";
|
|
23419
23431
|
var repoOf = (config, name) => config.repos.find((r) => r.name === name)?.path ?? name;
|
|
23420
23432
|
function instructionPaths(config, repo) {
|
|
@@ -23439,7 +23451,7 @@ function allInstructionPaths(config) {
|
|
|
23439
23451
|
];
|
|
23440
23452
|
}
|
|
23441
23453
|
|
|
23442
|
-
// src/git/branching.ts
|
|
23454
|
+
// packages/core/src/git/branching.ts
|
|
23443
23455
|
import { existsSync as existsSync4 } from "node:fs";
|
|
23444
23456
|
import { join as join4 } from "node:path";
|
|
23445
23457
|
async function switchToChangeBranch(dir, branch, start) {
|
|
@@ -23493,11 +23505,11 @@ async function branchSubmodule(root, repo, id) {
|
|
|
23493
23505
|
return { repo: repo.name, branch, base, created };
|
|
23494
23506
|
}
|
|
23495
23507
|
|
|
23496
|
-
// src/graph/graph.ts
|
|
23508
|
+
// packages/core/src/graph/graph.ts
|
|
23497
23509
|
import { existsSync as existsSync7, readFileSync as readFileSync5, rmSync as rmSync4, statSync as statSync4 } from "node:fs";
|
|
23498
23510
|
import { join as join7 } from "node:path";
|
|
23499
23511
|
|
|
23500
|
-
// src/logs/log.ts
|
|
23512
|
+
// packages/core/src/logs/log.ts
|
|
23501
23513
|
import {
|
|
23502
23514
|
appendFileSync,
|
|
23503
23515
|
existsSync as existsSync5,
|
|
@@ -23509,7 +23521,7 @@ import {
|
|
|
23509
23521
|
} from "node:fs";
|
|
23510
23522
|
import { join as join5 } from "node:path";
|
|
23511
23523
|
|
|
23512
|
-
// src/logs/redact.ts
|
|
23524
|
+
// packages/core/src/logs/redact.ts
|
|
23513
23525
|
var MARK = (kind) => `[REDACTED:${kind}]`;
|
|
23514
23526
|
var PATTERNS = [
|
|
23515
23527
|
[
|
|
@@ -23555,7 +23567,7 @@ function redact(text, envValues = [], options = {}) {
|
|
|
23555
23567
|
}
|
|
23556
23568
|
var redactProcess = (text) => redact(text, secretEnvValues(process.env));
|
|
23557
23569
|
|
|
23558
|
-
// src/logs/log.ts
|
|
23570
|
+
// packages/core/src/logs/log.ts
|
|
23559
23571
|
function redactValue(value, env, heuristic) {
|
|
23560
23572
|
if (typeof value === "string")
|
|
23561
23573
|
return redact(value, env, { heuristic });
|
|
@@ -23601,7 +23613,7 @@ function pruneLogs(root, retentionDays, now = Date.now()) {
|
|
|
23601
23613
|
return removed;
|
|
23602
23614
|
}
|
|
23603
23615
|
|
|
23604
|
-
// src/state/files.ts
|
|
23616
|
+
// packages/core/src/state/files.ts
|
|
23605
23617
|
import {
|
|
23606
23618
|
closeSync,
|
|
23607
23619
|
existsSync as existsSync6,
|
|
@@ -23712,7 +23724,7 @@ async function withFileLock(path, fn, timeoutMs = 1e4, options = {}) {
|
|
|
23712
23724
|
}
|
|
23713
23725
|
}
|
|
23714
23726
|
|
|
23715
|
-
// src/graph/graph.ts
|
|
23727
|
+
// packages/core/src/graph/graph.ts
|
|
23716
23728
|
var graphDir = (root) => join7(root, "graphify-out");
|
|
23717
23729
|
var graphFile = (root) => join7(graphDir(root), "graph.json");
|
|
23718
23730
|
var metaFile = (root) => factoryDir(root, "graph-meta.json");
|
|
@@ -23818,7 +23830,7 @@ function dependentFiles(root, files) {
|
|
|
23818
23830
|
return out;
|
|
23819
23831
|
}
|
|
23820
23832
|
|
|
23821
|
-
// src/handoff/schema.ts
|
|
23833
|
+
// packages/core/src/handoff/schema.ts
|
|
23822
23834
|
var Finding = strictObject({
|
|
23823
23835
|
severity: _enum(["must", "should", "nice"]),
|
|
23824
23836
|
file: string2().optional(),
|
|
@@ -23843,7 +23855,7 @@ function handoffJsonSchema() {
|
|
|
23843
23855
|
`;
|
|
23844
23856
|
}
|
|
23845
23857
|
|
|
23846
|
-
// src/runtime/types.ts
|
|
23858
|
+
// packages/core/src/runtime/types.ts
|
|
23847
23859
|
var ZERO_USAGE = {
|
|
23848
23860
|
input: 0,
|
|
23849
23861
|
output: 0,
|
|
@@ -23863,7 +23875,7 @@ function addUsage(a, b) {
|
|
|
23863
23875
|
};
|
|
23864
23876
|
}
|
|
23865
23877
|
|
|
23866
|
-
// src/runtime/handoff.ts
|
|
23878
|
+
// packages/core/src/runtime/handoff.ts
|
|
23867
23879
|
var FENCED = /```json\s*\n([\s\S]*?)\n?```/g;
|
|
23868
23880
|
function extractHandoff(text) {
|
|
23869
23881
|
const blocks = [...text.matchAll(FENCED)].map((m) => m[1] ?? "");
|
|
@@ -23920,11 +23932,11 @@ function decisionValues(handoff) {
|
|
|
23920
23932
|
return out;
|
|
23921
23933
|
}
|
|
23922
23934
|
|
|
23923
|
-
// src/state/active.ts
|
|
23935
|
+
// packages/core/src/state/active.ts
|
|
23924
23936
|
import { rmSync as rmSync5 } from "node:fs";
|
|
23925
23937
|
import { hostname as hostname2 } from "node:os";
|
|
23926
23938
|
|
|
23927
|
-
// src/state/run.ts
|
|
23939
|
+
// packages/core/src/state/run.ts
|
|
23928
23940
|
import { existsSync as existsSync8, readdirSync as readdirSync4 } from "node:fs";
|
|
23929
23941
|
var PHASES = [
|
|
23930
23942
|
"intake",
|
|
@@ -24082,7 +24094,7 @@ function recordTask(task, event, detail) {
|
|
|
24082
24094
|
task.history.splice(0, task.history.length - MAX_HISTORY);
|
|
24083
24095
|
}
|
|
24084
24096
|
|
|
24085
|
-
// src/state/active.ts
|
|
24097
|
+
// packages/core/src/state/active.ts
|
|
24086
24098
|
var ActiveLock = strictObject({
|
|
24087
24099
|
changeId: string2(),
|
|
24088
24100
|
pid: int().nullable(),
|
|
@@ -24163,11 +24175,11 @@ function dequeue(root) {
|
|
|
24163
24175
|
});
|
|
24164
24176
|
}
|
|
24165
24177
|
|
|
24166
|
-
// src/usage/usage.ts
|
|
24178
|
+
// packages/core/src/usage/usage.ts
|
|
24167
24179
|
import { existsSync as existsSync9, readdirSync as readdirSync5, readFileSync as readFileSync6, renameSync as renameSync2 } from "node:fs";
|
|
24168
24180
|
import { join as join9, relative as relative4 } from "node:path";
|
|
24169
24181
|
|
|
24170
|
-
// src/artifacts/paths.ts
|
|
24182
|
+
// packages/core/src/artifacts/paths.ts
|
|
24171
24183
|
import { join as join8 } from "node:path";
|
|
24172
24184
|
var ARTIFACTS_DIR = "factory-records";
|
|
24173
24185
|
var ARTIFACT_ID = /^[a-z0-9][a-z0-9-]*$/;
|
|
@@ -24179,7 +24191,7 @@ function artifactFile(root, kind, name) {
|
|
|
24179
24191
|
}
|
|
24180
24192
|
var artifactDir = (root, kind) => kind === undefined ? join8(root, ARTIFACTS_DIR) : join8(root, ARTIFACTS_DIR, kind);
|
|
24181
24193
|
|
|
24182
|
-
// src/usage/usage.ts
|
|
24194
|
+
// packages/core/src/usage/usage.ts
|
|
24183
24195
|
var usageFile = (root, id) => factoryDir(root, "usage", `${id}.json`);
|
|
24184
24196
|
function readLedger(file) {
|
|
24185
24197
|
try {
|
|
@@ -24403,7 +24415,7 @@ function usageReport(summary) {
|
|
|
24403
24415
|
];
|
|
24404
24416
|
}
|
|
24405
24417
|
|
|
24406
|
-
// src/pipeline/clarify.ts
|
|
24418
|
+
// packages/core/src/pipeline/clarify.ts
|
|
24407
24419
|
import { existsSync as existsSync10, mkdirSync as mkdirSync4, readFileSync as readFileSync7, writeFileSync as writeFileSync2 } from "node:fs";
|
|
24408
24420
|
import { dirname as dirname3, join as join10 } from "node:path";
|
|
24409
24421
|
var START = "<!-- ai-factory:questions:start -->";
|
|
@@ -24504,10 +24516,10 @@ ${block}`);
|
|
|
24504
24516
|
writeFileSync2(file, mergeQuestionsBlock(existing, block));
|
|
24505
24517
|
}
|
|
24506
24518
|
|
|
24507
|
-
// src/pipeline/context.ts
|
|
24519
|
+
// packages/core/src/pipeline/context.ts
|
|
24508
24520
|
import { join as join11 } from "node:path";
|
|
24509
24521
|
|
|
24510
|
-
// src/runtime/rate-limit.ts
|
|
24522
|
+
// packages/core/src/runtime/rate-limit.ts
|
|
24511
24523
|
function sleep(ms, signal) {
|
|
24512
24524
|
return new Promise((resolve) => {
|
|
24513
24525
|
if (signal?.aborted)
|
|
@@ -24570,7 +24582,7 @@ function limited(session, limiter, provider, maxWaits = 8) {
|
|
|
24570
24582
|
};
|
|
24571
24583
|
}
|
|
24572
24584
|
|
|
24573
|
-
// src/util/semaphore.ts
|
|
24585
|
+
// packages/core/src/util/semaphore.ts
|
|
24574
24586
|
class Semaphore {
|
|
24575
24587
|
#available;
|
|
24576
24588
|
#waiting = [];
|
|
@@ -24603,7 +24615,7 @@ class Semaphore {
|
|
|
24603
24615
|
}
|
|
24604
24616
|
}
|
|
24605
24617
|
|
|
24606
|
-
// src/util/duration.ts
|
|
24618
|
+
// packages/core/src/util/duration.ts
|
|
24607
24619
|
function formatDuration(ms) {
|
|
24608
24620
|
const bounded = Math.max(0, Math.round(ms));
|
|
24609
24621
|
if (bounded < 950)
|
|
@@ -24619,7 +24631,7 @@ function formatDuration(ms) {
|
|
|
24619
24631
|
return `${hours}h${String(minutes - hours * 60).padStart(2, "0")}m`;
|
|
24620
24632
|
}
|
|
24621
24633
|
|
|
24622
|
-
// src/pipeline/progress.ts
|
|
24634
|
+
// packages/core/src/pipeline/progress.ts
|
|
24623
24635
|
var DEFAULT_HEARTBEAT_MS = 30000;
|
|
24624
24636
|
var SLOW_GATE_MS = 1e4;
|
|
24625
24637
|
var DETAIL_MAX = 100;
|
|
@@ -24928,7 +24940,7 @@ class Progress {
|
|
|
24928
24940
|
}
|
|
24929
24941
|
}
|
|
24930
24942
|
|
|
24931
|
-
// src/pipeline/context.ts
|
|
24943
|
+
// packages/core/src/pipeline/context.ts
|
|
24932
24944
|
class ChangeAborted extends Error {
|
|
24933
24945
|
changeId;
|
|
24934
24946
|
constructor(changeId) {
|
|
@@ -25113,7 +25125,7 @@ class Pipeline {
|
|
|
25113
25125
|
}
|
|
25114
25126
|
}
|
|
25115
25127
|
|
|
25116
|
-
// src/util/fence.ts
|
|
25128
|
+
// packages/core/src/util/fence.ts
|
|
25117
25129
|
function fence(text, info = "") {
|
|
25118
25130
|
const longest = Math.max(0, ...(text.match(/`+/g) ?? []).map((run) => run.length));
|
|
25119
25131
|
const marks = "`".repeat(Math.max(3, longest + 1));
|
|
@@ -25122,7 +25134,7 @@ ${text}
|
|
|
25122
25134
|
${marks}`;
|
|
25123
25135
|
}
|
|
25124
25136
|
|
|
25125
|
-
// src/pipeline/prompts.ts
|
|
25137
|
+
// packages/core/src/pipeline/prompts.ts
|
|
25126
25138
|
var repoLines = (repos) => repos.map((r) => `- ${r.name} (${r.path}): ${r.languages.join(", ") || "no languages detected"}`).join(`
|
|
25127
25139
|
`);
|
|
25128
25140
|
function intakePrompt(request, repos) {
|
|
@@ -25382,7 +25394,7 @@ ${input.diffs.map((d) => `- \`${d}\``).join(`
|
|
|
25382
25394
|
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"\`.`;
|
|
25383
25395
|
}
|
|
25384
25396
|
|
|
25385
|
-
// src/pipeline/design.ts
|
|
25397
|
+
// packages/core/src/pipeline/design.ts
|
|
25386
25398
|
function specDir(p, draft) {
|
|
25387
25399
|
return draft === undefined ? p.root : join12(p.root, draft);
|
|
25388
25400
|
}
|
|
@@ -25615,7 +25627,7 @@ async function design(p, id) {
|
|
|
25615
25627
|
return { ok: issues.length === 0, issues };
|
|
25616
25628
|
}
|
|
25617
25629
|
|
|
25618
|
-
// src/update/update.ts
|
|
25630
|
+
// packages/core/src/update/update.ts
|
|
25619
25631
|
import {
|
|
25620
25632
|
cpSync,
|
|
25621
25633
|
existsSync as existsSync19,
|
|
@@ -25627,11 +25639,11 @@ import {
|
|
|
25627
25639
|
} from "node:fs";
|
|
25628
25640
|
import { dirname as dirname5, join as join23 } from "node:path";
|
|
25629
25641
|
|
|
25630
|
-
// src/detect/contracts.ts
|
|
25642
|
+
// packages/core/src/detect/contracts.ts
|
|
25631
25643
|
import { readFileSync as readFileSync8 } from "node:fs";
|
|
25632
25644
|
import { join as join14 } from "node:path";
|
|
25633
25645
|
|
|
25634
|
-
// src/detect/walk.ts
|
|
25646
|
+
// packages/core/src/detect/walk.ts
|
|
25635
25647
|
import { existsSync as existsSync12, readdirSync as readdirSync6, statSync as statSync5 } from "node:fs";
|
|
25636
25648
|
import { join as join13 } from "node:path";
|
|
25637
25649
|
var SKIP_DIRS = new Set([
|
|
@@ -25701,7 +25713,7 @@ function isWithin(dir, ancestor) {
|
|
|
25701
25713
|
return ancestor === "." || dir === ancestor || dir.startsWith(`${ancestor}/`);
|
|
25702
25714
|
}
|
|
25703
25715
|
|
|
25704
|
-
// src/detect/contracts.ts
|
|
25716
|
+
// packages/core/src/detect/contracts.ts
|
|
25705
25717
|
var MAX_SPEC_BYTES = 1024 * 1024;
|
|
25706
25718
|
var MAX_TEXT_BYTES = 256 * 1024;
|
|
25707
25719
|
var MAX_TEXT_FILES = 3000;
|
|
@@ -25849,11 +25861,11 @@ function contractKey(c) {
|
|
|
25849
25861
|
return `${c.kind}:${c.provider}:${c.path}`;
|
|
25850
25862
|
}
|
|
25851
25863
|
|
|
25852
|
-
// src/detect/workspace.ts
|
|
25864
|
+
// packages/core/src/detect/workspace.ts
|
|
25853
25865
|
import { existsSync as existsSync13, readFileSync as readFileSync10 } from "node:fs";
|
|
25854
25866
|
import { basename, join as join16 } from "node:path";
|
|
25855
25867
|
|
|
25856
|
-
// src/detect/languages.ts
|
|
25868
|
+
// packages/core/src/detect/languages.ts
|
|
25857
25869
|
import { readFileSync as readFileSync9 } from "node:fs";
|
|
25858
25870
|
import { join as join15 } from "node:path";
|
|
25859
25871
|
var MAX_MANIFEST_BYTES = 256 * 1024;
|
|
@@ -25966,7 +25978,7 @@ function detectLanguages(root, files) {
|
|
|
25966
25978
|
return { languages, subPaths: emitted.sort((a, b) => a.path.localeCompare(b.path)) };
|
|
25967
25979
|
}
|
|
25968
25980
|
|
|
25969
|
-
// src/detect/workspace.ts
|
|
25981
|
+
// packages/core/src/detect/workspace.ts
|
|
25970
25982
|
var WALK = { maxDepth: 6, maxFiles: 20000 };
|
|
25971
25983
|
function repoNameFrom(path) {
|
|
25972
25984
|
const name = basename(path).toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
@@ -26132,7 +26144,7 @@ function toRepoConfig(repo) {
|
|
|
26132
26144
|
return rest;
|
|
26133
26145
|
}
|
|
26134
26146
|
|
|
26135
|
-
// src/detect/diff.ts
|
|
26147
|
+
// packages/core/src/detect/diff.ts
|
|
26136
26148
|
var same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
26137
26149
|
function repoChanges(configured, detected) {
|
|
26138
26150
|
const changes = [];
|
|
@@ -26228,7 +26240,7 @@ function formatChange(change) {
|
|
|
26228
26240
|
}
|
|
26229
26241
|
}
|
|
26230
26242
|
|
|
26231
|
-
// src/lock/lock.ts
|
|
26243
|
+
// packages/core/src/lock/lock.ts
|
|
26232
26244
|
import { existsSync as existsSync14, readFileSync as readFileSync11 } from "node:fs";
|
|
26233
26245
|
import { join as join17 } from "node:path";
|
|
26234
26246
|
var LOCK_FILE = "factory.lock.json";
|
|
@@ -26303,7 +26315,7 @@ function ensureNotNewer(lock, allow = false) {
|
|
|
26303
26315
|
]);
|
|
26304
26316
|
}
|
|
26305
26317
|
|
|
26306
|
-
// src/migrations/001-graph-exclude-defaults.ts
|
|
26318
|
+
// packages/core/src/migrations/001-graph-exclude-defaults.ts
|
|
26307
26319
|
var V1_GRAPH_EXCLUDE = [
|
|
26308
26320
|
"**/node_modules/**",
|
|
26309
26321
|
"**/target/**",
|
|
@@ -26327,7 +26339,7 @@ var graphExcludeDefaults = {
|
|
|
26327
26339
|
}
|
|
26328
26340
|
};
|
|
26329
26341
|
|
|
26330
|
-
// src/migrations/002-config-v3.ts
|
|
26342
|
+
// packages/core/src/migrations/002-config-v3.ts
|
|
26331
26343
|
var configV3 = {
|
|
26332
26344
|
from: 2,
|
|
26333
26345
|
to: 3,
|
|
@@ -26338,7 +26350,7 @@ var configV3 = {
|
|
|
26338
26350
|
}
|
|
26339
26351
|
};
|
|
26340
26352
|
|
|
26341
|
-
// src/migrations/003-artifacts.ts
|
|
26353
|
+
// packages/core/src/migrations/003-artifacts.ts
|
|
26342
26354
|
var artifactsV4 = {
|
|
26343
26355
|
from: 3,
|
|
26344
26356
|
to: 4,
|
|
@@ -26359,7 +26371,7 @@ var artifactsV4 = {
|
|
|
26359
26371
|
}
|
|
26360
26372
|
};
|
|
26361
26373
|
|
|
26362
|
-
// src/migrations/index.ts
|
|
26374
|
+
// packages/core/src/migrations/index.ts
|
|
26363
26375
|
var MIGRATIONS = [graphExcludeDefaults, configV3, artifactsV4];
|
|
26364
26376
|
function schemaVersionOf(text) {
|
|
26365
26377
|
const { value } = parseJsonc(text);
|
|
@@ -26389,7 +26401,7 @@ function migrateConfigText(text, migrations = MIGRATIONS) {
|
|
|
26389
26401
|
return { text: out, from, to: current, applied };
|
|
26390
26402
|
}
|
|
26391
26403
|
|
|
26392
|
-
// src/workspace/sync.ts
|
|
26404
|
+
// packages/core/src/workspace/sync.ts
|
|
26393
26405
|
import { existsSync as existsSync18, writeFileSync as writeFileSync5 } from "node:fs";
|
|
26394
26406
|
import { join as join22 } from "node:path";
|
|
26395
26407
|
|
|
@@ -26632,7 +26644,7 @@ The add-on above is advice about writing less code. Where it conflicts with the
|
|
|
26632
26644
|
7. {{shortcuts}}
|
|
26633
26645
|
`;
|
|
26634
26646
|
|
|
26635
|
-
// src/addons/hash.ts
|
|
26647
|
+
// packages/core/src/addons/hash.ts
|
|
26636
26648
|
import { createHash } from "node:crypto";
|
|
26637
26649
|
function contentHash(files) {
|
|
26638
26650
|
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}
|
|
@@ -26650,7 +26662,7 @@ function isText(bytes) {
|
|
|
26650
26662
|
}
|
|
26651
26663
|
}
|
|
26652
26664
|
|
|
26653
|
-
// src/addons/ponytail.ts
|
|
26665
|
+
// packages/core/src/addons/ponytail.ts
|
|
26654
26666
|
var PONYTAIL_DIR = ".opencode/addons/ponytail";
|
|
26655
26667
|
var PONYTAIL_REF = `${PONYTAIL.tag}@${PONYTAIL.commit}`;
|
|
26656
26668
|
var VENDORED = {
|
|
@@ -26728,7 +26740,7 @@ ${reviewChecklist()}`, REVIEWER_MAPPING);
|
|
|
26728
26740
|
`);
|
|
26729
26741
|
}
|
|
26730
26742
|
|
|
26731
|
-
// src/git/commit.ts
|
|
26743
|
+
// packages/core/src/git/commit.ts
|
|
26732
26744
|
import { existsSync as existsSync15 } from "node:fs";
|
|
26733
26745
|
import { join as join18 } from "node:path";
|
|
26734
26746
|
var TYPE_BY_VERB = [
|
|
@@ -26793,7 +26805,7 @@ function commitTask(worktree, id, task, title, type, style = {}) {
|
|
|
26793
26805
|
});
|
|
26794
26806
|
}
|
|
26795
26807
|
|
|
26796
|
-
// src/git/hooks.ts
|
|
26808
|
+
// packages/core/src/git/hooks.ts
|
|
26797
26809
|
import { chmodSync, existsSync as existsSync16, mkdirSync as mkdirSync5, readFileSync as readFileSync12, renameSync as renameSync3, writeFileSync as writeFileSync3 } from "node:fs";
|
|
26798
26810
|
import { join as join19, relative as relative5 } from "node:path";
|
|
26799
26811
|
var HOOK_MARKER = "# ai-factory-hook v1";
|
|
@@ -26883,7 +26895,7 @@ function agentGitEnv(base = process.env) {
|
|
|
26883
26895
|
};
|
|
26884
26896
|
}
|
|
26885
26897
|
|
|
26886
|
-
// src/managed/sync.ts
|
|
26898
|
+
// packages/core/src/managed/sync.ts
|
|
26887
26899
|
import { createHash as createHash2 } from "node:crypto";
|
|
26888
26900
|
import {
|
|
26889
26901
|
existsSync as existsSync17,
|
|
@@ -26895,9 +26907,10 @@ import {
|
|
|
26895
26907
|
writeFileSync as writeFileSync4
|
|
26896
26908
|
} from "node:fs";
|
|
26897
26909
|
import { tmpdir as tmpdir2 } from "node:os";
|
|
26898
|
-
import { dirname as dirname4, join as join21 } from "node:path";
|
|
26910
|
+
import { dirname as dirname4, join as join21, resolve as resolve2 } from "node:path";
|
|
26911
|
+
import { deflateSync } from "node:zlib";
|
|
26899
26912
|
|
|
26900
|
-
// src/render/workspace.ts
|
|
26913
|
+
// packages/core/src/render/workspace.ts
|
|
26901
26914
|
import { readFileSync as readFileSync13 } from "node:fs";
|
|
26902
26915
|
import { join as join20 } from "node:path";
|
|
26903
26916
|
|
|
@@ -27121,18 +27134,18 @@ Use \`task: "<task id>"\` in your handoff and list the scenario → test mapping
|
|
|
27121
27134
|
`;
|
|
27122
27135
|
|
|
27123
27136
|
// templates/plugin/factory-plugin.txt
|
|
27124
|
-
var factory_plugin_default = `// Loomwright opencode plugin — generated from src/plugin/entry.ts; do not edit.
|
|
27137
|
+
var factory_plugin_default = `// Loomwright opencode plugin — generated from packages/core/src/plugin/entry.ts; do not edit.
|
|
27125
27138
|
// @bun
|
|
27126
|
-
// src/plugin/entry.ts
|
|
27139
|
+
// packages/core/src/plugin/entry.ts
|
|
27127
27140
|
import { existsSync as existsSync4, readdirSync as readdirSync3, readFileSync as readFileSync3, statSync as statSync3 } from "fs";
|
|
27128
27141
|
import { isAbsolute as isAbsolute4, join as join8, relative as relative3, resolve as resolve5 } from "path";
|
|
27129
27142
|
|
|
27130
|
-
// src/approval/approval.ts
|
|
27143
|
+
// packages/core/src/approval/approval.ts
|
|
27131
27144
|
import { createHash } from "crypto";
|
|
27132
27145
|
import { existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "fs";
|
|
27133
27146
|
import { dirname, join } from "path";
|
|
27134
27147
|
|
|
27135
|
-
// src/tasks/parse.ts
|
|
27148
|
+
// packages/core/src/tasks/parse.ts
|
|
27136
27149
|
var TASK_LINE = /^- \\[( |x|X)\\] (\\d+(?:\\.\\d+)+)\\s+(.+?)\\s*$/;
|
|
27137
27150
|
function normalizeCheckboxes(text) {
|
|
27138
27151
|
return text.split(\`
|
|
@@ -27140,7 +27153,7 @@ function normalizeCheckboxes(text) {
|
|
|
27140
27153
|
\`);
|
|
27141
27154
|
}
|
|
27142
27155
|
|
|
27143
|
-
// src/approval/approval.ts
|
|
27156
|
+
// packages/core/src/approval/approval.ts
|
|
27144
27157
|
function parseApproval(value) {
|
|
27145
27158
|
if (typeof value !== "object" || value === null)
|
|
27146
27159
|
return;
|
|
@@ -27212,7 +27225,7 @@ function checkApprovalHash(root, id) {
|
|
|
27212
27225
|
return { valid: true, approval };
|
|
27213
27226
|
}
|
|
27214
27227
|
|
|
27215
|
-
// src/logs/log.ts
|
|
27228
|
+
// packages/core/src/logs/log.ts
|
|
27216
27229
|
import {
|
|
27217
27230
|
appendFileSync,
|
|
27218
27231
|
existsSync as existsSync2,
|
|
@@ -27224,7 +27237,7 @@ import {
|
|
|
27224
27237
|
} from "fs";
|
|
27225
27238
|
import { join as join2 } from "path";
|
|
27226
27239
|
|
|
27227
|
-
// src/logs/redact.ts
|
|
27240
|
+
// packages/core/src/logs/redact.ts
|
|
27228
27241
|
var MARK = (kind) => \`[REDACTED:\${kind}]\`;
|
|
27229
27242
|
var PATTERNS = [
|
|
27230
27243
|
[
|
|
@@ -27269,7 +27282,7 @@ function redact(text, envValues = [], options = {}) {
|
|
|
27269
27282
|
return out;
|
|
27270
27283
|
}
|
|
27271
27284
|
|
|
27272
|
-
// src/logs/log.ts
|
|
27285
|
+
// packages/core/src/logs/log.ts
|
|
27273
27286
|
function redactValue(value, env, heuristic) {
|
|
27274
27287
|
if (typeof value === "string")
|
|
27275
27288
|
return redact(value, env, { heuristic });
|
|
@@ -27293,7 +27306,7 @@ function appendLog(root, changeId, entry, options = {}) {
|
|
|
27293
27306
|
\`);
|
|
27294
27307
|
}
|
|
27295
27308
|
|
|
27296
|
-
// src/policy/paths.ts
|
|
27309
|
+
// packages/core/src/policy/paths.ts
|
|
27297
27310
|
var PROTECTED = [
|
|
27298
27311
|
/^openspec\\/specs(\\/|$)/i,
|
|
27299
27312
|
/^\\.opencode(\\/|$)/i,
|
|
@@ -27372,7 +27385,7 @@ function isGeneratedLockfile(path) {
|
|
|
27372
27385
|
return GENERATED_LOCKFILES.has(p.slice(p.lastIndexOf("/") + 1).toLowerCase());
|
|
27373
27386
|
}
|
|
27374
27387
|
|
|
27375
|
-
// src/policy/realpath.ts
|
|
27388
|
+
// packages/core/src/policy/realpath.ts
|
|
27376
27389
|
import { lstatSync, readlinkSync, realpathSync } from "fs";
|
|
27377
27390
|
import { basename, dirname as dirname2, join as join3, resolve } from "path";
|
|
27378
27391
|
function realPathOf(abs, depth = 0) {
|
|
@@ -27402,7 +27415,7 @@ function realPathOf(abs, depth = 0) {
|
|
|
27402
27415
|
return abs;
|
|
27403
27416
|
}
|
|
27404
27417
|
|
|
27405
|
-
// src/policy/sandbox.ts
|
|
27418
|
+
// packages/core/src/policy/sandbox.ts
|
|
27406
27419
|
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
|
|
27407
27420
|
import { isAbsolute, join as join4, resolve as resolve2 } from "path";
|
|
27408
27421
|
var SANDBOX_EXEC = "/usr/bin/sandbox-exec";
|
|
@@ -27546,10 +27559,10 @@ function checkoutPolicy(workspace, dir, extra = [], home = process.env.HOME) {
|
|
|
27546
27559
|
};
|
|
27547
27560
|
}
|
|
27548
27561
|
|
|
27549
|
-
// src/policy/scope.ts
|
|
27562
|
+
// packages/core/src/policy/scope.ts
|
|
27550
27563
|
import { isAbsolute as isAbsolute2, normalize, relative, resolve as resolve3 } from "path";
|
|
27551
27564
|
|
|
27552
|
-
// src/tasks/glob.ts
|
|
27565
|
+
// packages/core/src/tasks/glob.ts
|
|
27553
27566
|
var cache = new Map;
|
|
27554
27567
|
function globRegExp(glob) {
|
|
27555
27568
|
const cached = cache.get(glob);
|
|
@@ -27589,7 +27602,7 @@ function opencodeGlobRegExp(glob) {
|
|
|
27589
27602
|
return new RegExp(\`^\${body}$\`);
|
|
27590
27603
|
}
|
|
27591
27604
|
|
|
27592
|
-
// src/policy/scope.ts
|
|
27605
|
+
// packages/core/src/policy/scope.ts
|
|
27593
27606
|
var ROLES = [
|
|
27594
27607
|
"orchestrator",
|
|
27595
27608
|
"architect",
|
|
@@ -27686,7 +27699,7 @@ function patchPaths(patchText) {
|
|
|
27686
27699
|
return [...out];
|
|
27687
27700
|
}
|
|
27688
27701
|
|
|
27689
|
-
// src/policy/secrets.ts
|
|
27702
|
+
// packages/core/src/policy/secrets.ts
|
|
27690
27703
|
import { join as join5 } from "path";
|
|
27691
27704
|
var GLOB = /[*?[]/;
|
|
27692
27705
|
function segmentRegExp(segment) {
|
|
@@ -27801,14 +27814,306 @@ function mentionedSecret(code) {
|
|
|
27801
27814
|
return code.match(MENTION)?.[1];
|
|
27802
27815
|
}
|
|
27803
27816
|
|
|
27804
|
-
// src/policy/session-files.ts
|
|
27817
|
+
// packages/core/src/policy/session-files.ts
|
|
27805
27818
|
import { join as join6 } from "path";
|
|
27806
27819
|
var sessionContextFile = (workspace, sessionId) => join6(workspace, ".factory", "sessions", \`\${sessionId}.json\`);
|
|
27807
27820
|
|
|
27808
|
-
// src/policy/shell.ts
|
|
27821
|
+
// packages/core/src/policy/shell.ts
|
|
27809
27822
|
import { basename as basename2, dirname as dirname3, isAbsolute as isAbsolute3, join as join7, normalize as normalize2, relative as relative2, resolve as resolve4 } from "path";
|
|
27810
27823
|
|
|
27811
|
-
// src/policy/
|
|
27824
|
+
// packages/core/src/policy/script-text.ts
|
|
27825
|
+
function execSinkLiterals(source) {
|
|
27826
|
+
const results = [];
|
|
27827
|
+
const sinks = [];
|
|
27828
|
+
const templates = [];
|
|
27829
|
+
let mode = "code";
|
|
27830
|
+
let i = 0;
|
|
27831
|
+
let prevWord;
|
|
27832
|
+
let stringQuote = "";
|
|
27833
|
+
let stringSink;
|
|
27834
|
+
let stringText = "";
|
|
27835
|
+
let regexAllowed = true;
|
|
27836
|
+
let regexInClass = false;
|
|
27837
|
+
const currentSink = () => sinks.at(-1);
|
|
27838
|
+
const addPart = (sink, text) => {
|
|
27839
|
+
if (sink === undefined)
|
|
27840
|
+
return;
|
|
27841
|
+
if (sink.glue)
|
|
27842
|
+
sink.text += text;
|
|
27843
|
+
else if (text.trim() !== "")
|
|
27844
|
+
sink.text = sink.text === "" ? text : \`\${sink.text} \${text}\`;
|
|
27845
|
+
sink.glue = false;
|
|
27846
|
+
sink.afterPart = true;
|
|
27847
|
+
};
|
|
27848
|
+
const breakChain = (sink) => {
|
|
27849
|
+
if (sink === undefined)
|
|
27850
|
+
return;
|
|
27851
|
+
sink.glue = false;
|
|
27852
|
+
sink.afterPart = false;
|
|
27853
|
+
};
|
|
27854
|
+
const openSink = () => {
|
|
27855
|
+
const sink = { text: "", glue: false, afterPart: false };
|
|
27856
|
+
results.push(sink);
|
|
27857
|
+
return sink;
|
|
27858
|
+
};
|
|
27859
|
+
while (i < source.length) {
|
|
27860
|
+
const ch = source[i] ?? "";
|
|
27861
|
+
if (mode === "line") {
|
|
27862
|
+
if (ch === \`
|
|
27863
|
+
\`)
|
|
27864
|
+
mode = "code";
|
|
27865
|
+
i += 1;
|
|
27866
|
+
continue;
|
|
27867
|
+
}
|
|
27868
|
+
if (mode === "block") {
|
|
27869
|
+
if (ch === "*" && source[i + 1] === "/") {
|
|
27870
|
+
mode = "code";
|
|
27871
|
+
i += 2;
|
|
27872
|
+
} else {
|
|
27873
|
+
i += 1;
|
|
27874
|
+
}
|
|
27875
|
+
continue;
|
|
27876
|
+
}
|
|
27877
|
+
if (mode === "string") {
|
|
27878
|
+
if (ch === "\\\\") {
|
|
27879
|
+
const next = source[i + 1];
|
|
27880
|
+
if (next !== undefined)
|
|
27881
|
+
stringText += next;
|
|
27882
|
+
i += next === undefined ? 1 : 2;
|
|
27883
|
+
} else if (ch === stringQuote) {
|
|
27884
|
+
addPart(stringSink, stringText);
|
|
27885
|
+
stringSink = undefined;
|
|
27886
|
+
stringText = "";
|
|
27887
|
+
mode = "code";
|
|
27888
|
+
i += 1;
|
|
27889
|
+
} else {
|
|
27890
|
+
stringText += ch;
|
|
27891
|
+
i += 1;
|
|
27892
|
+
}
|
|
27893
|
+
continue;
|
|
27894
|
+
}
|
|
27895
|
+
if (mode === "template") {
|
|
27896
|
+
const frame = templates.at(-1);
|
|
27897
|
+
if (frame === undefined) {
|
|
27898
|
+
mode = "code";
|
|
27899
|
+
continue;
|
|
27900
|
+
}
|
|
27901
|
+
if (ch === "\\\\") {
|
|
27902
|
+
const next = source[i + 1];
|
|
27903
|
+
if (next !== undefined)
|
|
27904
|
+
frame.text += next;
|
|
27905
|
+
i += next === undefined ? 1 : 2;
|
|
27906
|
+
} else if (ch === "\`") {
|
|
27907
|
+
addPart(frame.sink, frame.text);
|
|
27908
|
+
templates.pop();
|
|
27909
|
+
sinks.pop();
|
|
27910
|
+
prevWord = undefined;
|
|
27911
|
+
mode = "code";
|
|
27912
|
+
i += 1;
|
|
27913
|
+
} else if (ch === "$" && source[i + 1] === "{") {
|
|
27914
|
+
addPart(frame.sink, frame.text);
|
|
27915
|
+
frame.text = "";
|
|
27916
|
+
frame.depth = 1;
|
|
27917
|
+
prevWord = undefined;
|
|
27918
|
+
regexAllowed = true;
|
|
27919
|
+
mode = "code";
|
|
27920
|
+
i += 2;
|
|
27921
|
+
} else {
|
|
27922
|
+
frame.text += ch;
|
|
27923
|
+
i += 1;
|
|
27924
|
+
}
|
|
27925
|
+
continue;
|
|
27926
|
+
}
|
|
27927
|
+
if (mode === "regex") {
|
|
27928
|
+
if (ch === "\\\\") {
|
|
27929
|
+
i += source[i + 1] === undefined ? 1 : 2;
|
|
27930
|
+
} else if (ch === \`
|
|
27931
|
+
\`) {
|
|
27932
|
+
mode = "code";
|
|
27933
|
+
regexAllowed = true;
|
|
27934
|
+
i += 1;
|
|
27935
|
+
} else if (ch === "[") {
|
|
27936
|
+
regexInClass = true;
|
|
27937
|
+
i += 1;
|
|
27938
|
+
} else if (ch === "]") {
|
|
27939
|
+
regexInClass = false;
|
|
27940
|
+
i += 1;
|
|
27941
|
+
} else if (ch === "/" && !regexInClass) {
|
|
27942
|
+
mode = "code";
|
|
27943
|
+
regexAllowed = false;
|
|
27944
|
+
i += 1;
|
|
27945
|
+
while (i < source.length && isIdentChar(source[i] ?? ""))
|
|
27946
|
+
i += 1;
|
|
27947
|
+
} else {
|
|
27948
|
+
i += 1;
|
|
27949
|
+
}
|
|
27950
|
+
continue;
|
|
27951
|
+
}
|
|
27952
|
+
if (ch === " " || ch === "\\t" || ch === \`
|
|
27953
|
+
\` || ch === "\\r") {
|
|
27954
|
+
i += 1;
|
|
27955
|
+
continue;
|
|
27956
|
+
}
|
|
27957
|
+
if (ch === "/" && source[i + 1] === "/") {
|
|
27958
|
+
mode = "line";
|
|
27959
|
+
i += 2;
|
|
27960
|
+
continue;
|
|
27961
|
+
}
|
|
27962
|
+
if (ch === "/" && source[i + 1] === "*") {
|
|
27963
|
+
mode = "block";
|
|
27964
|
+
i += 2;
|
|
27965
|
+
continue;
|
|
27966
|
+
}
|
|
27967
|
+
if (ch === "/" && regexAllowed) {
|
|
27968
|
+
breakChain(currentSink());
|
|
27969
|
+
prevWord = undefined;
|
|
27970
|
+
regexInClass = false;
|
|
27971
|
+
mode = "regex";
|
|
27972
|
+
i += 1;
|
|
27973
|
+
continue;
|
|
27974
|
+
}
|
|
27975
|
+
if (ch === "'" || ch === '"') {
|
|
27976
|
+
stringQuote = ch;
|
|
27977
|
+
stringSink = currentSink();
|
|
27978
|
+
stringText = "";
|
|
27979
|
+
prevWord = undefined;
|
|
27980
|
+
regexAllowed = false;
|
|
27981
|
+
mode = "string";
|
|
27982
|
+
i += 1;
|
|
27983
|
+
continue;
|
|
27984
|
+
}
|
|
27985
|
+
if (ch === "\`") {
|
|
27986
|
+
const tag = prevWord;
|
|
27987
|
+
const sink = tag !== undefined && EXEC_PRIMITIVES.has(tag) ? openSink() : currentSink();
|
|
27988
|
+
sinks.push(sink);
|
|
27989
|
+
templates.push({ sink, depth: 0, text: "" });
|
|
27990
|
+
prevWord = undefined;
|
|
27991
|
+
regexAllowed = false;
|
|
27992
|
+
mode = "template";
|
|
27993
|
+
i += 1;
|
|
27994
|
+
continue;
|
|
27995
|
+
}
|
|
27996
|
+
if (ch === "(") {
|
|
27997
|
+
const callee = prevWord;
|
|
27998
|
+
const sink = callee !== undefined && EXEC_PRIMITIVES.has(callee) ? openSink() : currentSink();
|
|
27999
|
+
sinks.push(sink);
|
|
28000
|
+
breakChain(sink);
|
|
28001
|
+
prevWord = undefined;
|
|
28002
|
+
regexAllowed = true;
|
|
28003
|
+
i += 1;
|
|
28004
|
+
continue;
|
|
28005
|
+
}
|
|
28006
|
+
if (ch === ")") {
|
|
28007
|
+
sinks.pop();
|
|
28008
|
+
breakChain(currentSink());
|
|
28009
|
+
prevWord = undefined;
|
|
28010
|
+
regexAllowed = false;
|
|
28011
|
+
i += 1;
|
|
28012
|
+
continue;
|
|
28013
|
+
}
|
|
28014
|
+
if (ch === "]") {
|
|
28015
|
+
breakChain(currentSink());
|
|
28016
|
+
prevWord = undefined;
|
|
28017
|
+
regexAllowed = false;
|
|
28018
|
+
i += 1;
|
|
28019
|
+
continue;
|
|
28020
|
+
}
|
|
28021
|
+
if (ch === "{") {
|
|
28022
|
+
const frame = templates.at(-1);
|
|
28023
|
+
if (frame !== undefined && frame.depth > 0)
|
|
28024
|
+
frame.depth += 1;
|
|
28025
|
+
breakChain(currentSink());
|
|
28026
|
+
prevWord = undefined;
|
|
28027
|
+
regexAllowed = true;
|
|
28028
|
+
i += 1;
|
|
28029
|
+
continue;
|
|
28030
|
+
}
|
|
28031
|
+
if (ch === "}") {
|
|
28032
|
+
const frame = templates.at(-1);
|
|
28033
|
+
if (frame !== undefined && frame.depth > 0) {
|
|
28034
|
+
frame.depth -= 1;
|
|
28035
|
+
if (frame.depth === 0)
|
|
28036
|
+
mode = "template";
|
|
28037
|
+
}
|
|
28038
|
+
breakChain(currentSink());
|
|
28039
|
+
prevWord = undefined;
|
|
28040
|
+
regexAllowed = false;
|
|
28041
|
+
i += 1;
|
|
28042
|
+
continue;
|
|
28043
|
+
}
|
|
28044
|
+
if ((ch === "+" || ch === "-") && source[i + 1] === ch) {
|
|
28045
|
+
breakChain(currentSink());
|
|
28046
|
+
prevWord = undefined;
|
|
28047
|
+
regexAllowed = false;
|
|
28048
|
+
i += 2;
|
|
28049
|
+
continue;
|
|
28050
|
+
}
|
|
28051
|
+
if (ch === "+") {
|
|
28052
|
+
const sink = currentSink();
|
|
28053
|
+
if (sink !== undefined) {
|
|
28054
|
+
sink.glue = sink.afterPart;
|
|
28055
|
+
sink.afterPart = false;
|
|
28056
|
+
}
|
|
28057
|
+
prevWord = undefined;
|
|
28058
|
+
regexAllowed = true;
|
|
28059
|
+
i += 1;
|
|
28060
|
+
continue;
|
|
28061
|
+
}
|
|
28062
|
+
if (isIdentChar(ch)) {
|
|
28063
|
+
const start = i;
|
|
28064
|
+
while (i < source.length && isIdentChar(source[i] ?? ""))
|
|
28065
|
+
i += 1;
|
|
28066
|
+
breakChain(currentSink());
|
|
28067
|
+
prevWord = source.slice(start, i);
|
|
28068
|
+
regexAllowed = REGEX_PREFIX_WORDS.has(prevWord);
|
|
28069
|
+
continue;
|
|
28070
|
+
}
|
|
28071
|
+
breakChain(currentSink());
|
|
28072
|
+
prevWord = undefined;
|
|
28073
|
+
regexAllowed = true;
|
|
28074
|
+
i += 1;
|
|
28075
|
+
}
|
|
28076
|
+
if (mode === "string")
|
|
28077
|
+
addPart(stringSink, stringText);
|
|
28078
|
+
const tail = templates.at(-1);
|
|
28079
|
+
if (tail !== undefined)
|
|
28080
|
+
addPart(tail.sink, tail.text);
|
|
28081
|
+
return results.map((sink) => sink.text.trim());
|
|
28082
|
+
}
|
|
28083
|
+
var EXEC_PRIMITIVES = new Set([
|
|
28084
|
+
"exec",
|
|
28085
|
+
"execFile",
|
|
28086
|
+
"execSync",
|
|
28087
|
+
"execFileSync",
|
|
28088
|
+
"spawn",
|
|
28089
|
+
"spawnSync",
|
|
28090
|
+
"system",
|
|
28091
|
+
"eval",
|
|
28092
|
+
"Function",
|
|
28093
|
+
"sh",
|
|
28094
|
+
"$"
|
|
28095
|
+
]);
|
|
28096
|
+
var REGEX_PREFIX_WORDS = new Set([
|
|
28097
|
+
"await",
|
|
28098
|
+
"case",
|
|
28099
|
+
"delete",
|
|
28100
|
+
"do",
|
|
28101
|
+
"else",
|
|
28102
|
+
"in",
|
|
28103
|
+
"instanceof",
|
|
28104
|
+
"new",
|
|
28105
|
+
"of",
|
|
28106
|
+
"return",
|
|
28107
|
+
"throw",
|
|
28108
|
+
"typeof",
|
|
28109
|
+
"void",
|
|
28110
|
+
"yield"
|
|
28111
|
+
]);
|
|
28112
|
+
function isIdentChar(ch) {
|
|
28113
|
+
return ch === "$" || ch === "_" || /[A-Za-z0-9]/.test(ch);
|
|
28114
|
+
}
|
|
28115
|
+
|
|
28116
|
+
// packages/core/src/policy/shell-parse.ts
|
|
27812
28117
|
class ShellParseError extends Error {
|
|
27813
28118
|
}
|
|
27814
28119
|
var OPS = ["&&", "||", ";;", ";", "|&", "|", "&", "(", ")", \`
|
|
@@ -28182,7 +28487,7 @@ function parseScript(src) {
|
|
|
28182
28487
|
return new Parser(new Lexer(src).lex()).script(false);
|
|
28183
28488
|
}
|
|
28184
28489
|
|
|
28185
|
-
// src/policy/shell.ts
|
|
28490
|
+
// packages/core/src/policy/shell.ts
|
|
28186
28491
|
class Blocked extends Error {
|
|
28187
28492
|
}
|
|
28188
28493
|
function block(reason) {
|
|
@@ -28268,6 +28573,35 @@ var BREW_READ_ONLY_FLAGS = new Set([
|
|
|
28268
28573
|
"--version",
|
|
28269
28574
|
"--help"
|
|
28270
28575
|
]);
|
|
28576
|
+
var BUN_BUILTINS = new Set([
|
|
28577
|
+
"test",
|
|
28578
|
+
"build",
|
|
28579
|
+
"install",
|
|
28580
|
+
"i",
|
|
28581
|
+
"add",
|
|
28582
|
+
"a",
|
|
28583
|
+
"remove",
|
|
28584
|
+
"rm",
|
|
28585
|
+
"update",
|
|
28586
|
+
"link",
|
|
28587
|
+
"unlink",
|
|
28588
|
+
"pm",
|
|
28589
|
+
"x",
|
|
28590
|
+
"create",
|
|
28591
|
+
"c",
|
|
28592
|
+
"init",
|
|
28593
|
+
"run",
|
|
28594
|
+
"repl",
|
|
28595
|
+
"upgrade",
|
|
28596
|
+
"publish",
|
|
28597
|
+
"outdated",
|
|
28598
|
+
"audit",
|
|
28599
|
+
"why",
|
|
28600
|
+
"whoami",
|
|
28601
|
+
"patch",
|
|
28602
|
+
"patch-commit",
|
|
28603
|
+
"help"
|
|
28604
|
+
]);
|
|
28271
28605
|
var BREW_READ_ONLY_SUBCOMMANDS = new Set([
|
|
28272
28606
|
"info",
|
|
28273
28607
|
"list",
|
|
@@ -28285,6 +28619,9 @@ var BREW_READ_ONLY_SUBCOMMANDS = new Set([
|
|
|
28285
28619
|
"tap-info"
|
|
28286
28620
|
]);
|
|
28287
28621
|
var BREW_GLOBAL_FLAGS = new Set(["-v", "--verbose", "-d", "--debug", "-q", "--quiet"]);
|
|
28622
|
+
function isJsLike(path) {
|
|
28623
|
+
return /\\.[cm]?[jt]sx?$/.test(path);
|
|
28624
|
+
}
|
|
28288
28625
|
function scanText(text) {
|
|
28289
28626
|
for (const t of [text, text.replace(/(['"\`])\\s*\\+\\s*\\1/g, "")]) {
|
|
28290
28627
|
if (/\\bgit\\b[\\s"',[\\]()]+push\\b/.test(t))
|
|
@@ -28447,18 +28784,127 @@ function checkRecursiveSearch(state, base, args) {
|
|
|
28447
28784
|
block(\`searches \\\`\${root}\\\`, which contains secret file \\\`\${found}\\\`; search specific directories instead\`);
|
|
28448
28785
|
}
|
|
28449
28786
|
}
|
|
28787
|
+
var PACKAGE_MANAGERS = new Set(["npm", "pnpm", "yarn", "bun", "bunx"]);
|
|
28788
|
+
var BUN_GLOBAL_SUBCOMMANDS = new Set([
|
|
28789
|
+
"install",
|
|
28790
|
+
"i",
|
|
28791
|
+
"add",
|
|
28792
|
+
"a",
|
|
28793
|
+
"remove",
|
|
28794
|
+
"rm",
|
|
28795
|
+
"update",
|
|
28796
|
+
"link",
|
|
28797
|
+
"unlink"
|
|
28798
|
+
]);
|
|
28799
|
+
var BUN_GLOBAL_VALUE_FLAGS = new Set([
|
|
28800
|
+
"-c",
|
|
28801
|
+
"--config",
|
|
28802
|
+
"--cwd",
|
|
28803
|
+
"--env-file",
|
|
28804
|
+
"--filter",
|
|
28805
|
+
"--preload"
|
|
28806
|
+
]);
|
|
28807
|
+
function bunSubcommand(args) {
|
|
28808
|
+
for (let i = 0;i < args.length; i++) {
|
|
28809
|
+
const a = args[i] ?? "";
|
|
28810
|
+
if (a === "--") {
|
|
28811
|
+
const next = args[i + 1];
|
|
28812
|
+
return next === undefined ? undefined : { index: i + 1, word: next };
|
|
28813
|
+
}
|
|
28814
|
+
if (!a.startsWith("-") || a === "-")
|
|
28815
|
+
return { index: i, word: a };
|
|
28816
|
+
if (!a.includes("=") && BUN_GLOBAL_VALUE_FLAGS.has(a))
|
|
28817
|
+
i++;
|
|
28818
|
+
}
|
|
28819
|
+
return;
|
|
28820
|
+
}
|
|
28821
|
+
function bunRunScript(args, start) {
|
|
28822
|
+
for (let i = start;i < args.length; i++) {
|
|
28823
|
+
const a = args[i] ?? "";
|
|
28824
|
+
if (a === "--")
|
|
28825
|
+
return args[i + 1];
|
|
28826
|
+
if (!a.startsWith("-") || a === "-")
|
|
28827
|
+
return a;
|
|
28828
|
+
if (!a.includes("=") && BUN_GLOBAL_VALUE_FLAGS.has(a))
|
|
28829
|
+
i++;
|
|
28830
|
+
}
|
|
28831
|
+
return;
|
|
28832
|
+
}
|
|
28833
|
+
function checkPackageManager(state, tool, args, outer) {
|
|
28834
|
+
if (tool === "bunx") {
|
|
28835
|
+
checkPackageManager(state, "bun", ["x", ...args], outer);
|
|
28836
|
+
return;
|
|
28837
|
+
}
|
|
28838
|
+
const cmd = tool === "bun" ? bunSubcommand(args) : undefined;
|
|
28839
|
+
const sub = cmd?.word;
|
|
28840
|
+
const known = tool !== "bun" || sub !== undefined && BUN_BUILTINS.has(sub);
|
|
28841
|
+
const installSide = tool !== "bun" || sub !== undefined && BUN_GLOBAL_SUBCOMMANDS.has(sub);
|
|
28842
|
+
const globalWord = tool === "bun" ? sub === "global" || sub === "link" : args[0] === "global" || args[0] === "link";
|
|
28843
|
+
if ((installSide || !known) && args.some((a) => a === "-g" || a === "--global" || a === "--location=global") || globalWord)
|
|
28844
|
+
block(\`\${tool} global installs change the machine, not the worktree\`);
|
|
28845
|
+
if (cmd?.word === "x") {
|
|
28846
|
+
let i = cmd.index + 1;
|
|
28847
|
+
while (i < args.length && (args[i] ?? "").startsWith("-")) {
|
|
28848
|
+
i += args[i] === "-p" || args[i] === "--package" ? 2 : 1;
|
|
28849
|
+
}
|
|
28850
|
+
const wrapped = args.slice(i);
|
|
28851
|
+
if (wrapped.length === 0)
|
|
28852
|
+
return;
|
|
28853
|
+
if (++state.depth > 25)
|
|
28854
|
+
block("command nests too deeply to inspect");
|
|
28855
|
+
try {
|
|
28856
|
+
scoped(state, () => checkSimple(state, {
|
|
28857
|
+
kind: "simple",
|
|
28858
|
+
assigns: [],
|
|
28859
|
+
words: wrapped,
|
|
28860
|
+
redirects: [...outer.redirects],
|
|
28861
|
+
substitutions: []
|
|
28862
|
+
}, outer.stdin));
|
|
28863
|
+
} finally {
|
|
28864
|
+
state.depth--;
|
|
28865
|
+
}
|
|
28866
|
+
return;
|
|
28867
|
+
}
|
|
28868
|
+
const publishArgs = tool === "bun" && known && sub !== undefined ? [sub] : args;
|
|
28869
|
+
if (publishArgs.some((a) => a === "publish" || a === "login" || a === "adduser" || a === "unpublish" || a === "deprecate"))
|
|
28870
|
+
block(\`\${tool} publishing is not allowed\`);
|
|
28871
|
+
}
|
|
28872
|
+
var BUN_INSTALL_SUBCOMMANDS = new Set(["install", "i", "add", "a", "remove", "rm", "update"]);
|
|
28873
|
+
function expandScripts(state, dir, scripts, keys) {
|
|
28874
|
+
for (const key of keys) {
|
|
28875
|
+
const body = scripts[key];
|
|
28876
|
+
if (typeof body !== "string")
|
|
28877
|
+
continue;
|
|
28878
|
+
const expansion = \`\${dir}\\x00\${key}\`;
|
|
28879
|
+
if (state.expanding.has(expansion))
|
|
28880
|
+
block(\`script \\\`\${key}\\\` expands into itself\`);
|
|
28881
|
+
state.expanding.add(expansion);
|
|
28882
|
+
try {
|
|
28883
|
+
checkScript(state, body);
|
|
28884
|
+
} finally {
|
|
28885
|
+
state.expanding.delete(expansion);
|
|
28886
|
+
}
|
|
28887
|
+
}
|
|
28888
|
+
}
|
|
28450
28889
|
function checkPackageScript(state, tool, args) {
|
|
28451
28890
|
const pos = positionals(args);
|
|
28452
|
-
const
|
|
28891
|
+
const cmd = tool === "bun" ? bunSubcommand(args) : undefined;
|
|
28892
|
+
const sub = cmd === undefined ? pos[0] : cmd.word;
|
|
28453
28893
|
if (sub === undefined || state.cwd === undefined)
|
|
28454
28894
|
return;
|
|
28455
|
-
const
|
|
28895
|
+
const dir = state.cwd;
|
|
28896
|
+
const text = state.ctx.readFile?.(join7(dir, "package.json"));
|
|
28456
28897
|
let scripts = {};
|
|
28457
28898
|
try {
|
|
28458
28899
|
scripts = (text === undefined ? {} : JSON.parse(text).scripts) ?? {};
|
|
28459
28900
|
} catch {
|
|
28460
28901
|
return;
|
|
28461
28902
|
}
|
|
28903
|
+
if (tool === "bun" && sub !== "run" && BUN_BUILTINS.has(sub)) {
|
|
28904
|
+
if (BUN_INSTALL_SUBCOMMANDS.has(sub))
|
|
28905
|
+
expandScripts(state, dir, scripts, ["preinstall", "postinstall"]);
|
|
28906
|
+
return;
|
|
28907
|
+
}
|
|
28462
28908
|
const NPM_RUN = new Set(["run", "run-script", "rum", "urn"]);
|
|
28463
28909
|
const NPM_LIFECYCLE = {
|
|
28464
28910
|
test: "test",
|
|
@@ -28472,24 +28918,20 @@ function checkPackageScript(state, tool, args) {
|
|
|
28472
28918
|
if (tool === "npm")
|
|
28473
28919
|
name = NPM_RUN.has(sub) ? pos[1] : NPM_LIFECYCLE[sub];
|
|
28474
28920
|
else if (sub === "run")
|
|
28475
|
-
name = pos[1];
|
|
28921
|
+
name = cmd === undefined ? pos[1] : bunRunScript(args, cmd.index + 1);
|
|
28476
28922
|
else if (sub in scripts)
|
|
28477
28923
|
name = sub;
|
|
28478
|
-
else if (tool === "bun" &&
|
|
28924
|
+
else if (tool === "bun" && isJsLike(sub)) {
|
|
28479
28925
|
checkScriptFile(state, sub, "other");
|
|
28480
28926
|
return;
|
|
28481
28927
|
}
|
|
28482
28928
|
if (name === undefined)
|
|
28483
28929
|
return;
|
|
28484
|
-
if (tool === "bun" && !(name in scripts) &&
|
|
28930
|
+
if (tool === "bun" && !(name in scripts) && isJsLike(name)) {
|
|
28485
28931
|
checkScriptFile(state, name, "other");
|
|
28486
28932
|
return;
|
|
28487
28933
|
}
|
|
28488
|
-
|
|
28489
|
-
const body = scripts[key];
|
|
28490
|
-
if (typeof body === "string")
|
|
28491
|
-
checkScript(state, body);
|
|
28492
|
-
}
|
|
28934
|
+
expandScripts(state, dir, scripts, [\`pre\${name}\`, name, \`post\${name}\`]);
|
|
28493
28935
|
}
|
|
28494
28936
|
function parseMakefile(text) {
|
|
28495
28937
|
const vars = new Map;
|
|
@@ -28949,6 +29391,12 @@ function checkScriptFile(state, word, interpreter) {
|
|
|
28949
29391
|
const isShell = interpreter === "shell" ? shebang === "" || /\\b(sh|bash|zsh|dash|ksh)\\b/.test(shebang) : false;
|
|
28950
29392
|
if (isShell) {
|
|
28951
29393
|
checkScript(state, text);
|
|
29394
|
+
} else if (isJsLike(word)) {
|
|
29395
|
+
for (const literal of execSinkLiterals(text)) {
|
|
29396
|
+
const found = scanText(literal);
|
|
29397
|
+
if (found)
|
|
29398
|
+
block(\`\${word}: \${found}\`);
|
|
29399
|
+
}
|
|
28952
29400
|
} else {
|
|
28953
29401
|
const found = scanText(text);
|
|
28954
29402
|
if (found)
|
|
@@ -29291,6 +29739,8 @@ function checkSimple(state, cmd, stdin) {
|
|
|
29291
29739
|
state.cwd = undefined;
|
|
29292
29740
|
return;
|
|
29293
29741
|
}
|
|
29742
|
+
if (PACKAGE_MANAGERS.has(base))
|
|
29743
|
+
checkPackageManager(state, base, args, { redirects: cmd.redirects, stdin });
|
|
29294
29744
|
const interpreter = base.replace(/\\d+(\\.\\d+)*$/, "");
|
|
29295
29745
|
if ((interpreter === "perl" || interpreter === "ruby") && args.some(isInPlaceFlag)) {
|
|
29296
29746
|
const operands = [];
|
|
@@ -29496,11 +29946,6 @@ function checkSimple(state, cmd, stdin) {
|
|
|
29496
29946
|
case "pnpm":
|
|
29497
29947
|
case "yarn":
|
|
29498
29948
|
case "bun":
|
|
29499
|
-
if (args.some((a) => a === "-g" || a === "--global" || a === "--location=global") || args[0] === "global" || args[0] === "link")
|
|
29500
|
-
return block(\`\${base} global installs change the machine, not the worktree\`);
|
|
29501
|
-
if (args.some((a) => a === "publish" || a === "login" || a === "adduser" || a === "unpublish" || a === "deprecate")) {
|
|
29502
|
-
return block(\`\${base} publishing is not allowed\`);
|
|
29503
|
-
}
|
|
29504
29949
|
checkPackageScript(state, base, args);
|
|
29505
29950
|
return;
|
|
29506
29951
|
case "make":
|
|
@@ -29622,7 +30067,14 @@ function checkScript(state, text) {
|
|
|
29622
30067
|
return;
|
|
29623
30068
|
}
|
|
29624
30069
|
function checkShell(command, ctx) {
|
|
29625
|
-
const state = {
|
|
30070
|
+
const state = {
|
|
30071
|
+
ctx,
|
|
30072
|
+
aliases: new Map,
|
|
30073
|
+
depth: 0,
|
|
30074
|
+
cwd: ctx.cwd,
|
|
30075
|
+
written: new Set,
|
|
30076
|
+
expanding: new Set
|
|
30077
|
+
};
|
|
29626
30078
|
try {
|
|
29627
30079
|
checkScript(state, command);
|
|
29628
30080
|
return { allowed: true };
|
|
@@ -29635,7 +30087,7 @@ function checkShell(command, ctx) {
|
|
|
29635
30087
|
}
|
|
29636
30088
|
}
|
|
29637
30089
|
|
|
29638
|
-
// src/plugin/entry.ts
|
|
30090
|
+
// packages/core/src/plugin/entry.ts
|
|
29639
30091
|
var FACTORY_AGENTS = new Set([
|
|
29640
30092
|
"orchestrator",
|
|
29641
30093
|
"architect",
|
|
@@ -29909,7 +30361,7 @@ export {
|
|
|
29909
30361
|
};
|
|
29910
30362
|
`;
|
|
29911
30363
|
|
|
29912
|
-
// src/policy/permissions.ts
|
|
30364
|
+
// packages/core/src/policy/permissions.ts
|
|
29913
30365
|
var ACTIONS = [
|
|
29914
30366
|
"read",
|
|
29915
30367
|
"glob",
|
|
@@ -31118,7 +31570,7 @@ try {
|
|
|
31118
31570
|
- Use the repo's runner and file naming; one behaviour per test; mock only process boundaries (network, clock, filesystem). <!-- factory -->
|
|
31119
31571
|
`;
|
|
31120
31572
|
|
|
31121
|
-
// src/profiles/index.ts
|
|
31573
|
+
// packages/core/src/profiles/index.ts
|
|
31122
31574
|
var TS_TEST_GLOBS = [
|
|
31123
31575
|
"*.test.ts",
|
|
31124
31576
|
"*.test.tsx",
|
|
@@ -31409,7 +31861,7 @@ function profilesFor(languages) {
|
|
|
31409
31861
|
return Object.keys(PROFILES).filter((l) => set.has(l)).map((l) => PROFILES[l]);
|
|
31410
31862
|
}
|
|
31411
31863
|
|
|
31412
|
-
// src/render/workspace.ts
|
|
31864
|
+
// packages/core/src/render/workspace.ts
|
|
31413
31865
|
var BLOCK_MARKERS = {
|
|
31414
31866
|
"AGENTS.md": {
|
|
31415
31867
|
start: "<!-- ai-factory:start (managed by ai-factory; edit outside this block) -->",
|
|
@@ -31803,7 +32255,7 @@ function renderWorkspace(config, options = {}) {
|
|
|
31803
32255
|
return files.sort((a, b) => a.path.localeCompare(b.path));
|
|
31804
32256
|
}
|
|
31805
32257
|
|
|
31806
|
-
// src/managed/sync.ts
|
|
32258
|
+
// packages/core/src/managed/sync.ts
|
|
31807
32259
|
function sha256(text) {
|
|
31808
32260
|
return createHash2("sha256").update(text, "utf8").digest("hex");
|
|
31809
32261
|
}
|
|
@@ -31908,8 +32360,42 @@ function removeOwned(root, path, mode) {
|
|
|
31908
32360
|
`);
|
|
31909
32361
|
writeAtomic(abs, rest.trim() === "" ? "" : rest);
|
|
31910
32362
|
}
|
|
31911
|
-
|
|
31912
|
-
|
|
32363
|
+
|
|
32364
|
+
class BlobStore {
|
|
32365
|
+
#root;
|
|
32366
|
+
#pending;
|
|
32367
|
+
#seq = 0;
|
|
32368
|
+
constructor(root) {
|
|
32369
|
+
this.#root = root;
|
|
32370
|
+
this.#pending = this.#objectDir();
|
|
32371
|
+
}
|
|
32372
|
+
async#objectDir() {
|
|
32373
|
+
const res = await exec(["git", "rev-parse", "--git-path", "objects", "--show-object-format"], {
|
|
32374
|
+
cwd: this.#root
|
|
32375
|
+
});
|
|
32376
|
+
const [dir = "", format = ""] = res.stdout.split(`
|
|
32377
|
+
`).map((line) => line.trim());
|
|
32378
|
+
if (res.code !== 0 || dir === "" || format !== "sha1")
|
|
32379
|
+
return;
|
|
32380
|
+
return resolve2(this.#root, dir);
|
|
32381
|
+
}
|
|
32382
|
+
async write(content) {
|
|
32383
|
+
const dir = await this.#pending;
|
|
32384
|
+
if (dir === undefined) {
|
|
32385
|
+
return execOk(["git", "hash-object", "-w", "--stdin"], { cwd: this.#root, input: content });
|
|
32386
|
+
}
|
|
32387
|
+
const body = Buffer.from(content, "utf8");
|
|
32388
|
+
const header = Buffer.from(`blob ${body.length}\x00`, "utf8");
|
|
32389
|
+
const oid = createHash2("sha1").update(header).update(body).digest("hex");
|
|
32390
|
+
const file = join21(dir, oid.slice(0, 2), oid.slice(2));
|
|
32391
|
+
if (!existsSync17(file)) {
|
|
32392
|
+
mkdirSync6(dirname4(file), { recursive: true });
|
|
32393
|
+
const tmp = join21(dir, `tmp_loomwright_${process.pid}_${this.#seq++}`);
|
|
32394
|
+
writeFileSync4(tmp, deflateSync(Buffer.concat([header, body])));
|
|
32395
|
+
renameSync4(tmp, file);
|
|
32396
|
+
}
|
|
32397
|
+
return oid;
|
|
32398
|
+
}
|
|
31913
32399
|
}
|
|
31914
32400
|
async function blobText(root, blob) {
|
|
31915
32401
|
const res = await exec(["git", "cat-file", "-p", blob], { cwd: root });
|
|
@@ -31947,12 +32433,13 @@ async function executeSync(root, plan, previous, options = {}) {
|
|
|
31947
32433
|
const managed = {};
|
|
31948
32434
|
const merged = [];
|
|
31949
32435
|
const conflicts = [];
|
|
32436
|
+
const blobs = new BlobStore(root);
|
|
31950
32437
|
const entry = async (file) => ({
|
|
31951
32438
|
template: file.template,
|
|
31952
32439
|
templateVersion: FACTORY_VERSION,
|
|
31953
32440
|
mode: file.mode,
|
|
31954
32441
|
sha256: sha256(file.content),
|
|
31955
|
-
blob: await
|
|
32442
|
+
blob: await blobs.write(file.content)
|
|
31956
32443
|
});
|
|
31957
32444
|
for (const change of plan) {
|
|
31958
32445
|
const prev = previous[change.path];
|
|
@@ -32009,7 +32496,7 @@ async function executeSync(root, plan, previous, options = {}) {
|
|
|
32009
32496
|
return { managed, merged, conflicts };
|
|
32010
32497
|
}
|
|
32011
32498
|
|
|
32012
|
-
// src/workspace/sync.ts
|
|
32499
|
+
// packages/core/src/workspace/sync.ts
|
|
32013
32500
|
var INSTALL_PATHS = [
|
|
32014
32501
|
"AGENTS.md",
|
|
32015
32502
|
".gitignore",
|
|
@@ -32088,7 +32575,7 @@ function commitInstall(root, message) {
|
|
|
32088
32575
|
return commitPaths(root, INSTALL_PATHS.filter((p) => existsSync18(join22(root, p))), message);
|
|
32089
32576
|
}
|
|
32090
32577
|
|
|
32091
|
-
// src/update/update.ts
|
|
32578
|
+
// packages/core/src/update/update.ts
|
|
32092
32579
|
var WRITES = new Set([
|
|
32093
32580
|
"create",
|
|
32094
32581
|
"update",
|
|
@@ -32243,7 +32730,7 @@ function requireInstalled(root) {
|
|
|
32243
32730
|
return lock;
|
|
32244
32731
|
}
|
|
32245
32732
|
|
|
32246
|
-
//
|
|
32733
|
+
// packages/cli/src/command.ts
|
|
32247
32734
|
import { parseArgs } from "node:util";
|
|
32248
32735
|
function parseCommandArgs(command, args, options, allowPositionals = false) {
|
|
32249
32736
|
try {
|
|
@@ -32254,15 +32741,15 @@ function parseCommandArgs(command, args, options, allowPositionals = false) {
|
|
|
32254
32741
|
}
|
|
32255
32742
|
}
|
|
32256
32743
|
|
|
32257
|
-
//
|
|
32744
|
+
// packages/cli/src/commands/pipeline-commands.ts
|
|
32258
32745
|
import { existsSync as existsSync34, readFileSync as readFileSync30 } from "node:fs";
|
|
32259
|
-
import { join as join45, relative as relative9, resolve as
|
|
32746
|
+
import { join as join45, relative as relative9, resolve as resolve6 } from "node:path";
|
|
32260
32747
|
|
|
32261
|
-
// src/pipeline/approve.ts
|
|
32748
|
+
// packages/core/src/pipeline/approve.ts
|
|
32262
32749
|
import { existsSync as existsSync22, readFileSync as readFileSync18 } from "node:fs";
|
|
32263
32750
|
import { join as join26 } from "node:path";
|
|
32264
32751
|
|
|
32265
|
-
// src/approval/approval.ts
|
|
32752
|
+
// packages/core/src/approval/approval.ts
|
|
32266
32753
|
import { createHash as createHash3 } from "node:crypto";
|
|
32267
32754
|
import { existsSync as existsSync20, mkdirSync as mkdirSync8, readdirSync as readdirSync8, readFileSync as readFileSync16, statSync as statSync6, writeFileSync as writeFileSync7 } from "node:fs";
|
|
32268
32755
|
import { dirname as dirname6, join as join24 } from "node:path";
|
|
@@ -32353,7 +32840,7 @@ function checkApprovalHash(root, id) {
|
|
|
32353
32840
|
return { valid: true, approval };
|
|
32354
32841
|
}
|
|
32355
32842
|
|
|
32356
|
-
// src/update/snapshot.ts
|
|
32843
|
+
// packages/core/src/update/snapshot.ts
|
|
32357
32844
|
import { cpSync as cpSync2, existsSync as existsSync21, mkdirSync as mkdirSync9, readdirSync as readdirSync9, readFileSync as readFileSync17, rmSync as rmSync8 } from "node:fs";
|
|
32358
32845
|
import { join as join25 } from "node:path";
|
|
32359
32846
|
var gateFile = (root, id) => join25(root, ".factory", "runs", id, "snapshot", "gates.json");
|
|
@@ -32402,7 +32889,7 @@ function dropAgentSnapshot(root, id) {
|
|
|
32402
32889
|
rmSync8(dir, { recursive: true });
|
|
32403
32890
|
}
|
|
32404
32891
|
|
|
32405
|
-
// src/pipeline/approve.ts
|
|
32892
|
+
// packages/core/src/pipeline/approve.ts
|
|
32406
32893
|
async function approve(p, id) {
|
|
32407
32894
|
let run = p.run(id);
|
|
32408
32895
|
assertApprovable(id, run);
|
|
@@ -32500,18 +32987,18 @@ async function verifyApproval(p, id, dir) {
|
|
|
32500
32987
|
}
|
|
32501
32988
|
}
|
|
32502
32989
|
|
|
32503
|
-
// src/pipeline/contracts.ts
|
|
32990
|
+
// packages/core/src/pipeline/contracts.ts
|
|
32504
32991
|
import { mkdirSync as mkdirSync14, writeFileSync as writeFileSync10 } from "node:fs";
|
|
32505
32992
|
import { join as join40 } from "node:path";
|
|
32506
32993
|
|
|
32507
|
-
// src/contracts/gate.ts
|
|
32994
|
+
// packages/core/src/contracts/gate.ts
|
|
32508
32995
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
32509
32996
|
var import__2020 = __toESM(require__2020(), 1);
|
|
32510
32997
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
32511
32998
|
import { readFileSync as readFileSync20 } from "node:fs";
|
|
32512
32999
|
import { join as join28 } from "node:path";
|
|
32513
33000
|
|
|
32514
|
-
// src/gates/compact.ts
|
|
33001
|
+
// packages/core/src/gates/compact.ts
|
|
32515
33002
|
var ANSI = /\u001b\[[0-9;?]*[ -/]*[@-~]|\u001b\][^\u0007]*\u0007/g;
|
|
32516
33003
|
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;
|
|
32517
33004
|
var CONTEXT = 2;
|
|
@@ -32557,18 +33044,34 @@ function compactOutput(raw, maxLines) {
|
|
|
32557
33044
|
`);
|
|
32558
33045
|
}
|
|
32559
33046
|
|
|
32560
|
-
// src/gates/guard.ts
|
|
33047
|
+
// packages/core/src/gates/guard.ts
|
|
32561
33048
|
import { createHash as createHash4 } from "node:crypto";
|
|
32562
33049
|
import { existsSync as existsSync23, mkdirSync as mkdirSync10, readFileSync as readFileSync19, rmSync as rmSync9, writeFileSync as writeFileSync8 } from "node:fs";
|
|
32563
33050
|
import { dirname as dirname7, join as join27 } from "node:path";
|
|
32564
33051
|
var MISSING = "missing";
|
|
32565
|
-
async function
|
|
32566
|
-
const res = await git(["status", "--porcelain=
|
|
32567
|
-
cwd: worktree
|
|
32568
|
-
});
|
|
33052
|
+
async function state(worktree) {
|
|
33053
|
+
const res = await git(["status", "--porcelain=v2", "-z", "--branch", "--no-renames", "--untracked-files=all"], { cwd: worktree });
|
|
32569
33054
|
if (res.code !== 0)
|
|
32570
33055
|
throw new Error(`git status failed in ${worktree}: ${res.stderr.trim()}`);
|
|
32571
|
-
|
|
33056
|
+
const records = res.stdout.split("\x00");
|
|
33057
|
+
const paths = [];
|
|
33058
|
+
let head = "";
|
|
33059
|
+
for (let i = 0;i < records.length; i++) {
|
|
33060
|
+
const record = records[i] ?? "";
|
|
33061
|
+
if (record.startsWith("# branch.oid "))
|
|
33062
|
+
head = record.slice("# branch.oid ".length);
|
|
33063
|
+
else if (record.startsWith("? "))
|
|
33064
|
+
paths.push(record.slice(2));
|
|
33065
|
+
else if (record.startsWith("1 "))
|
|
33066
|
+
paths.push(record.split(" ").slice(8).join(" "));
|
|
33067
|
+
else if (record.startsWith("u "))
|
|
33068
|
+
paths.push(record.split(" ").slice(10).join(" "));
|
|
33069
|
+
else if (record.startsWith("2 ")) {
|
|
33070
|
+
paths.push(record.split(" ").slice(9).join(" "));
|
|
33071
|
+
i++;
|
|
33072
|
+
}
|
|
33073
|
+
}
|
|
33074
|
+
return { head, paths };
|
|
32572
33075
|
}
|
|
32573
33076
|
function hashFile(abs) {
|
|
32574
33077
|
if (!existsSync23(abs))
|
|
@@ -32577,10 +33080,11 @@ function hashFile(abs) {
|
|
|
32577
33080
|
return { hash: createHash4("sha256").update(content).digest("hex"), content };
|
|
32578
33081
|
}
|
|
32579
33082
|
async function snapshot(worktree) {
|
|
33083
|
+
const { head, paths } = await state(worktree);
|
|
32580
33084
|
const entries = new Map;
|
|
32581
|
-
for (const path of
|
|
33085
|
+
for (const path of paths)
|
|
32582
33086
|
entries.set(path, hashFile(join27(worktree, path)));
|
|
32583
|
-
return { worktree, head
|
|
33087
|
+
return { worktree, head, entries };
|
|
32584
33088
|
}
|
|
32585
33089
|
async function changedSince(before) {
|
|
32586
33090
|
const after = await snapshot(before.worktree);
|
|
@@ -32619,7 +33123,7 @@ async function restore(before, paths) {
|
|
|
32619
33123
|
}
|
|
32620
33124
|
}
|
|
32621
33125
|
|
|
32622
|
-
// src/contracts/schema-diff.ts
|
|
33126
|
+
// packages/core/src/contracts/schema-diff.ts
|
|
32623
33127
|
var isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
32624
33128
|
function deref(schema, resolve) {
|
|
32625
33129
|
let current = schema;
|
|
@@ -32760,7 +33264,7 @@ function localResolver(doc) {
|
|
|
32760
33264
|
};
|
|
32761
33265
|
}
|
|
32762
33266
|
|
|
32763
|
-
// src/contracts/openapi.ts
|
|
33267
|
+
// packages/core/src/contracts/openapi.ts
|
|
32764
33268
|
var isObj2 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
32765
33269
|
var METHODS = ["get", "put", "post", "delete", "options", "head", "patch", "trace"];
|
|
32766
33270
|
var normalizePath = (path) => path.replace(/\{[^}]+\}/g, "{}");
|
|
@@ -32896,7 +33400,7 @@ function referencedRemovedPaths(oldDoc, newDoc, sources) {
|
|
|
32896
33400
|
});
|
|
32897
33401
|
}
|
|
32898
33402
|
|
|
32899
|
-
// src/contracts/proto.ts
|
|
33403
|
+
// packages/core/src/contracts/proto.ts
|
|
32900
33404
|
function stripComments3(text) {
|
|
32901
33405
|
return text.replace(/\/\*[\s\S]*?\*\//g, " ").replace(/\/\/[^\n]*/g, " ");
|
|
32902
33406
|
}
|
|
@@ -33103,7 +33607,7 @@ function diffProto(oldModel, newModel) {
|
|
|
33103
33607
|
return out;
|
|
33104
33608
|
}
|
|
33105
33609
|
|
|
33106
|
-
// src/contracts/gate.ts
|
|
33610
|
+
// packages/core/src/contracts/gate.ts
|
|
33107
33611
|
var contractKey2 = (c) => `${c.kind}:${c.provider}:${c.path}`;
|
|
33108
33612
|
var addFormats = import_ajv_formats.default;
|
|
33109
33613
|
function compile2(schema) {
|
|
@@ -33305,7 +33809,7 @@ function touchedContracts(config, repos) {
|
|
|
33305
33809
|
return config.contracts.filter((c) => repos.has(c.provider) || c.consumers.some((x) => repos.has(x)));
|
|
33306
33810
|
}
|
|
33307
33811
|
|
|
33308
|
-
// src/pipeline/implement.ts
|
|
33812
|
+
// packages/core/src/pipeline/implement.ts
|
|
33309
33813
|
import {
|
|
33310
33814
|
existsSync as existsSync31,
|
|
33311
33815
|
mkdirSync as mkdirSync13,
|
|
@@ -33317,11 +33821,11 @@ import {
|
|
|
33317
33821
|
} from "node:fs";
|
|
33318
33822
|
import { join as join39 } from "node:path";
|
|
33319
33823
|
|
|
33320
|
-
// src/gates/affected.ts
|
|
33824
|
+
// packages/core/src/gates/affected.ts
|
|
33321
33825
|
import { existsSync as existsSync25, readFileSync as readFileSync22 } from "node:fs";
|
|
33322
33826
|
import { join as join30, relative as relative6 } from "node:path";
|
|
33323
33827
|
|
|
33324
|
-
// src/gates/targets.ts
|
|
33828
|
+
// packages/core/src/gates/targets.ts
|
|
33325
33829
|
import { existsSync as existsSync24, readFileSync as readFileSync21 } from "node:fs";
|
|
33326
33830
|
import { join as join29 } from "node:path";
|
|
33327
33831
|
var WALK2 = { maxDepth: 8, maxFiles: 50000 };
|
|
@@ -33407,7 +33911,7 @@ function requirementHolds(req, worktree, dir) {
|
|
|
33407
33911
|
});
|
|
33408
33912
|
}
|
|
33409
33913
|
|
|
33410
|
-
// src/gates/affected.ts
|
|
33914
|
+
// packages/core/src/gates/affected.ts
|
|
33411
33915
|
async function changedFiles(worktree, base) {
|
|
33412
33916
|
const diff = await git(["diff", "--name-only", "--no-renames", base, "--"], { cwd: worktree });
|
|
33413
33917
|
const untracked = await git(["ls-files", "--others", "--exclude-standard"], { cwd: worktree });
|
|
@@ -33494,7 +33998,7 @@ function fillPlaceholders(command, values) {
|
|
|
33494
33998
|
return empty ? undefined : out;
|
|
33495
33999
|
}
|
|
33496
34000
|
|
|
33497
|
-
// src/gates/definitions.ts
|
|
34001
|
+
// packages/core/src/gates/definitions.ts
|
|
33498
34002
|
import { readFileSync as readFileSync23 } from "node:fs";
|
|
33499
34003
|
import { join as join31 } from "node:path";
|
|
33500
34004
|
var HOSTS = ["package.json", "Makefile", "justfile", "Justfile", "Taskfile.yml", "Taskfile.yaml"];
|
|
@@ -33560,11 +34064,11 @@ async function changedGateDefinitions(dir, base, names) {
|
|
|
33560
34064
|
return out;
|
|
33561
34065
|
}
|
|
33562
34066
|
|
|
33563
|
-
// src/gates/install.ts
|
|
34067
|
+
// packages/core/src/gates/install.ts
|
|
33564
34068
|
import { existsSync as existsSync26, mkdirSync as mkdirSync11 } from "node:fs";
|
|
33565
34069
|
import { join as join32 } from "node:path";
|
|
33566
34070
|
|
|
33567
|
-
// src/runtime/credentials.ts
|
|
34071
|
+
// packages/core/src/runtime/credentials.ts
|
|
33568
34072
|
var PROVIDER_ENV = {
|
|
33569
34073
|
anthropic: ["ANTHROPIC_API_KEY", "ANTHROPIC_BASE_URL"],
|
|
33570
34074
|
openai: ["OPENAI_API_KEY", "OPENAI_BASE_URL", "OPENAI_ORG_ID"],
|
|
@@ -33613,7 +34117,7 @@ function agentProcessEnv(base = process.env) {
|
|
|
33613
34117
|
return { ...env, ...agentGitEnv(base) };
|
|
33614
34118
|
}
|
|
33615
34119
|
|
|
33616
|
-
// src/gates/install.ts
|
|
34120
|
+
// packages/core/src/gates/install.ts
|
|
33617
34121
|
function cacheEnv(root, repoName) {
|
|
33618
34122
|
const cache = join32(root, ".factory", "cache");
|
|
33619
34123
|
const env = {
|
|
@@ -33676,7 +34180,7 @@ async function installDeps(root, worktree, repo, timeoutMs = 15 * 60000) {
|
|
|
33676
34180
|
return steps;
|
|
33677
34181
|
}
|
|
33678
34182
|
|
|
33679
|
-
// src/gates/resolve.ts
|
|
34183
|
+
// packages/core/src/gates/resolve.ts
|
|
33680
34184
|
import { existsSync as existsSync27, readFileSync as readFileSync24 } from "node:fs";
|
|
33681
34185
|
import { join as join33 } from "node:path";
|
|
33682
34186
|
var GATES_BY_MODE = {
|
|
@@ -33884,11 +34388,11 @@ function repoPlaceholders(input, targets) {
|
|
|
33884
34388
|
};
|
|
33885
34389
|
}
|
|
33886
34390
|
|
|
33887
|
-
// src/gates/run.ts
|
|
34391
|
+
// packages/core/src/gates/run.ts
|
|
33888
34392
|
import { existsSync as existsSync29 } from "node:fs";
|
|
33889
34393
|
import { delimiter, join as join37 } from "node:path";
|
|
33890
34394
|
|
|
33891
|
-
// src/addons/shortcuts.ts
|
|
34395
|
+
// packages/core/src/addons/shortcuts.ts
|
|
33892
34396
|
import { readFileSync as readFileSync25 } from "node:fs";
|
|
33893
34397
|
import { join as join34 } from "node:path";
|
|
33894
34398
|
var SHORTCUT = /(?:\/\/|#|\/\*|\*|--|<!--|;)\s*(?:shortcut|ponytail):\s*(.+?)\s*(?:\*\/|-->)?\s*$/i;
|
|
@@ -33947,7 +34451,7 @@ async function changeShortcuts(dir, base, head) {
|
|
|
33947
34451
|
return shortcutsInDiff(diff.stdout);
|
|
33948
34452
|
}
|
|
33949
34453
|
|
|
33950
|
-
// src/policy/paths.ts
|
|
34454
|
+
// packages/core/src/policy/paths.ts
|
|
33951
34455
|
var PROTECTED = [
|
|
33952
34456
|
/^openspec\/specs(\/|$)/i,
|
|
33953
34457
|
/^\.opencode(\/|$)/i,
|
|
@@ -34026,13 +34530,13 @@ function isGeneratedLockfile(path) {
|
|
|
34026
34530
|
return GENERATED_LOCKFILES.has(p.slice(p.lastIndexOf("/") + 1).toLowerCase());
|
|
34027
34531
|
}
|
|
34028
34532
|
|
|
34029
|
-
// src/policy/sandbox.ts
|
|
34533
|
+
// packages/core/src/policy/sandbox.ts
|
|
34030
34534
|
import { existsSync as existsSync28, readFileSync as readFileSync26 } from "node:fs";
|
|
34031
|
-
import { isAbsolute, join as join36, resolve as
|
|
34535
|
+
import { isAbsolute, join as join36, resolve as resolve4 } from "node:path";
|
|
34032
34536
|
|
|
34033
|
-
// src/policy/realpath.ts
|
|
34537
|
+
// packages/core/src/policy/realpath.ts
|
|
34034
34538
|
import { lstatSync, readlinkSync, realpathSync as realpathSync2 } from "node:fs";
|
|
34035
|
-
import { basename as basename2, dirname as dirname8, join as join35, resolve as
|
|
34539
|
+
import { basename as basename2, dirname as dirname8, join as join35, resolve as resolve3 } from "node:path";
|
|
34036
34540
|
function realPathOf(abs, depth = 0) {
|
|
34037
34541
|
if (depth > 40)
|
|
34038
34542
|
return abs;
|
|
@@ -34045,7 +34549,7 @@ function realPathOf(abs, depth = 0) {
|
|
|
34045
34549
|
return join35(realpathSync2.native(current), ...missing.reverse());
|
|
34046
34550
|
} catch {
|
|
34047
34551
|
if (st.isSymbolicLink()) {
|
|
34048
|
-
const target =
|
|
34552
|
+
const target = resolve3(dirname8(current), readlinkSync(current));
|
|
34049
34553
|
return realPathOf(join35(target, ...missing.reverse()), depth + 1);
|
|
34050
34554
|
}
|
|
34051
34555
|
return abs;
|
|
@@ -34060,7 +34564,7 @@ function realPathOf(abs, depth = 0) {
|
|
|
34060
34564
|
return abs;
|
|
34061
34565
|
}
|
|
34062
34566
|
|
|
34063
|
-
// src/policy/sandbox.ts
|
|
34567
|
+
// packages/core/src/policy/sandbox.ts
|
|
34064
34568
|
var SANDBOX_EXEC = "/usr/bin/sandbox-exec";
|
|
34065
34569
|
function sandboxEnabled(setting, platform = process.platform, exists = existsSync28) {
|
|
34066
34570
|
return setting !== "off" && platform === "darwin" && exists(SANDBOX_EXEC);
|
|
@@ -34170,14 +34674,14 @@ function gitWritableDirs(worktree) {
|
|
|
34170
34674
|
const text = readFileSync26(dotGit, "utf8");
|
|
34171
34675
|
const m = text.match(/^gitdir:\s*(.+)$/m);
|
|
34172
34676
|
if (m?.[1])
|
|
34173
|
-
gitDir = isAbsolute(m[1].trim()) ? m[1].trim() :
|
|
34677
|
+
gitDir = isAbsolute(m[1].trim()) ? m[1].trim() : resolve4(worktree, m[1].trim());
|
|
34174
34678
|
} catch {
|
|
34175
34679
|
return [join36(dotGit, "index"), join36(dotGit, "index.lock"), join36(dotGit, "objects")];
|
|
34176
34680
|
}
|
|
34177
34681
|
let common = gitDir;
|
|
34178
34682
|
try {
|
|
34179
34683
|
const rel = readFileSync26(join36(gitDir, "commondir"), "utf8").trim();
|
|
34180
|
-
common = isAbsolute(rel) ? rel :
|
|
34684
|
+
common = isAbsolute(rel) ? rel : resolve4(gitDir, rel);
|
|
34181
34685
|
} catch {}
|
|
34182
34686
|
return [gitDir, join36(common, "objects")];
|
|
34183
34687
|
}
|
|
@@ -34204,7 +34708,7 @@ function checkoutPolicy(workspace, dir, extra = [], home = process.env.HOME) {
|
|
|
34204
34708
|
};
|
|
34205
34709
|
}
|
|
34206
34710
|
|
|
34207
|
-
// src/gates/run.ts
|
|
34711
|
+
// packages/core/src/gates/run.ts
|
|
34208
34712
|
var FAILING = new Set(["fail", "missing", "not-check-only", "timeout"]);
|
|
34209
34713
|
var TEST_GATES = new Set(["test", "testAffected"]);
|
|
34210
34714
|
function staleLockfileNote(paths) {
|
|
@@ -34424,7 +34928,7 @@ async function runGates(input) {
|
|
|
34424
34928
|
};
|
|
34425
34929
|
}
|
|
34426
34930
|
|
|
34427
|
-
// src/git/worktrees.ts
|
|
34931
|
+
// packages/core/src/git/worktrees.ts
|
|
34428
34932
|
import { existsSync as existsSync30, mkdirSync as mkdirSync12 } from "node:fs";
|
|
34429
34933
|
import { dirname as dirname9, join as join38 } from "node:path";
|
|
34430
34934
|
var taskBranch = (id, task) => `${changeBranch(id)}--${task}`;
|
|
@@ -34450,7 +34954,7 @@ async function removeTaskWorktree(repoDir, wt) {
|
|
|
34450
34954
|
return del.code === 0 || !await refExists(repoDir, `refs/heads/${wt.branch}`);
|
|
34451
34955
|
}
|
|
34452
34956
|
|
|
34453
|
-
// src/git/merge-queue.ts
|
|
34957
|
+
// packages/core/src/git/merge-queue.ts
|
|
34454
34958
|
var NON_INTERACTIVE = { GIT_EDITOR: "true", GIT_SEQUENCE_EDITOR: "true" };
|
|
34455
34959
|
async function conflictedFiles(worktree) {
|
|
34456
34960
|
const out = await gitOk(["diff", "--name-only", "--diff-filter=U"], { cwd: worktree });
|
|
@@ -34517,7 +35021,7 @@ class MergeQueue {
|
|
|
34517
35021
|
}
|
|
34518
35022
|
}
|
|
34519
35023
|
|
|
34520
|
-
// src/graph/updater.ts
|
|
35024
|
+
// packages/core/src/graph/updater.ts
|
|
34521
35025
|
class GraphUpdater {
|
|
34522
35026
|
update;
|
|
34523
35027
|
onCovered;
|
|
@@ -34568,15 +35072,15 @@ class GraphUpdater {
|
|
|
34568
35072
|
}
|
|
34569
35073
|
}
|
|
34570
35074
|
|
|
34571
|
-
// src/policy/scope.ts
|
|
34572
|
-
import { isAbsolute as isAbsolute2, normalize, relative as relative7, resolve as
|
|
35075
|
+
// packages/core/src/policy/scope.ts
|
|
35076
|
+
import { isAbsolute as isAbsolute2, normalize, relative as relative7, resolve as resolve5 } from "node:path";
|
|
34573
35077
|
var architectDirs = (changeId) => [
|
|
34574
35078
|
`openspec/changes/${changeId}/`,
|
|
34575
35079
|
`.factory/context/${changeId}/`
|
|
34576
35080
|
];
|
|
34577
35081
|
var IMPLEMENTING_ROLES = new Set(["implementer", "tester"]);
|
|
34578
35082
|
function checkEdit(ctx, path, approval) {
|
|
34579
|
-
const abs = normalize(isAbsolute2(path) ? path :
|
|
35083
|
+
const abs = normalize(isAbsolute2(path) ? path : resolve5(ctx.directory, path));
|
|
34580
35084
|
const rel = relative7(ctx.directory, abs);
|
|
34581
35085
|
if (rel === "" || rel.startsWith("..") || isAbsolute2(rel)) {
|
|
34582
35086
|
return {
|
|
@@ -34633,7 +35137,7 @@ function auditChanges(ctx, changed, approved) {
|
|
|
34633
35137
|
});
|
|
34634
35138
|
}
|
|
34635
35139
|
|
|
34636
|
-
// src/scheduler/scheduler.ts
|
|
35140
|
+
// packages/core/src/scheduler/scheduler.ts
|
|
34637
35141
|
var MAX_TRANSIENT = 3;
|
|
34638
35142
|
var TERMINAL = new Set(["merged", "failed", "cancelled"]);
|
|
34639
35143
|
function retryTask(draft, taskId) {
|
|
@@ -34998,7 +35502,7 @@ class Scheduler {
|
|
|
34998
35502
|
}
|
|
34999
35503
|
}
|
|
35000
35504
|
|
|
35001
|
-
// src/tasks/routing.ts
|
|
35505
|
+
// packages/core/src/tasks/routing.ts
|
|
35002
35506
|
function agentForTask(config, repo, touches) {
|
|
35003
35507
|
for (const rule of config.routing) {
|
|
35004
35508
|
const agent = config.agents.find((a) => a.id === rule.agent);
|
|
@@ -35017,7 +35521,7 @@ function agentForTask(config, repo, touches) {
|
|
|
35017
35521
|
return { agent: `implementer-${repo}`, role: "implementer", custom: false };
|
|
35018
35522
|
}
|
|
35019
35523
|
|
|
35020
|
-
// src/util/cap.ts
|
|
35524
|
+
// packages/core/src/util/cap.ts
|
|
35021
35525
|
var CHARS_PER_TOKEN = 4;
|
|
35022
35526
|
var estimateTokens = (text) => Math.ceil(text.length / CHARS_PER_TOKEN);
|
|
35023
35527
|
function capText(text, maxTokens, note) {
|
|
@@ -35031,7 +35535,7 @@ function capText(text, maxTokens, note) {
|
|
|
35031
35535
|
${note}`;
|
|
35032
35536
|
}
|
|
35033
35537
|
|
|
35034
|
-
// src/pipeline/implement.ts
|
|
35538
|
+
// packages/core/src/pipeline/implement.ts
|
|
35035
35539
|
var forbidShortcuts = (p) => p.config.addons.ponytail.enabled && p.config.addons.ponytail.shortcutComments === "forbid";
|
|
35036
35540
|
function gateDefinitions(p, id) {
|
|
35037
35541
|
const snapshot = loadGateSnapshot(p.root, id);
|
|
@@ -35576,7 +36080,7 @@ async function implement(p, id) {
|
|
|
35576
36080
|
return adjusted;
|
|
35577
36081
|
}
|
|
35578
36082
|
|
|
35579
|
-
// src/pipeline/contracts.ts
|
|
36083
|
+
// packages/core/src/pipeline/contracts.ts
|
|
35580
36084
|
var MAX_CONTRACT_ROUNDS = 1;
|
|
35581
36085
|
function addFixTask(p, draft, id, task) {
|
|
35582
36086
|
if (draft.tasks.some((t) => t.id === task.id))
|
|
@@ -35711,11 +36215,11 @@ ${summarize(r)}
|
|
|
35711
36215
|
return { ok: true, added, issues: [] };
|
|
35712
36216
|
}
|
|
35713
36217
|
|
|
35714
|
-
// src/pipeline/finish.ts
|
|
36218
|
+
// packages/core/src/pipeline/finish.ts
|
|
35715
36219
|
import { existsSync as existsSync33, mkdirSync as mkdirSync16, readdirSync as readdirSync12, readFileSync as readFileSync29, writeFileSync as writeFileSync12 } from "node:fs";
|
|
35716
36220
|
import { join as join42 } from "node:path";
|
|
35717
36221
|
|
|
35718
|
-
// src/artifacts/export.ts
|
|
36222
|
+
// packages/core/src/artifacts/export.ts
|
|
35719
36223
|
import {
|
|
35720
36224
|
existsSync as existsSync32,
|
|
35721
36225
|
mkdirSync as mkdirSync15,
|
|
@@ -35860,7 +36364,7 @@ async function maybeExport(root, config, id, options = {}) {
|
|
|
35860
36364
|
return exportArtifacts(root, config, id, options);
|
|
35861
36365
|
}
|
|
35862
36366
|
|
|
35863
|
-
// src/git/pointers.ts
|
|
36367
|
+
// packages/core/src/git/pointers.ts
|
|
35864
36368
|
import { join as join41 } from "node:path";
|
|
35865
36369
|
var PROVISIONAL_SUBJECT = (id) => `chore(submodules): bump for ${id} [provisional]`;
|
|
35866
36370
|
async function bumpPointers(root, id, repos) {
|
|
@@ -36011,7 +36515,7 @@ async function repoint(root, config, id) {
|
|
|
36011
36515
|
return { ...commit ? { commit } : {}, results };
|
|
36012
36516
|
}
|
|
36013
36517
|
|
|
36014
|
-
// src/pipeline/finish.ts
|
|
36518
|
+
// packages/core/src/pipeline/finish.ts
|
|
36015
36519
|
var MAX_SUITE_ROUNDS = 2;
|
|
36016
36520
|
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}\``;
|
|
36017
36521
|
var touchedRepos = (run) => [...new Set(run.tasks.map((t) => t.repo))];
|
|
@@ -36390,7 +36894,7 @@ Archived as \`openspec/changes/archive/${archivedAs}\`.`,
|
|
|
36390
36894
|
return file;
|
|
36391
36895
|
}
|
|
36392
36896
|
|
|
36393
|
-
// src/pipeline/drive.ts
|
|
36897
|
+
// packages/core/src/pipeline/drive.ts
|
|
36394
36898
|
async function ensureDriver(p, id) {
|
|
36395
36899
|
const claim = await claimActive(p.root, id);
|
|
36396
36900
|
if (claim.status === "busy")
|
|
@@ -36602,18 +37106,18 @@ async function step(p, id) {
|
|
|
36602
37106
|
}
|
|
36603
37107
|
}
|
|
36604
37108
|
|
|
36605
|
-
// src/runtime/opencode.ts
|
|
37109
|
+
// packages/core/src/runtime/opencode.ts
|
|
36606
37110
|
import { spawn as spawn2 } from "node:child_process";
|
|
36607
37111
|
import { randomBytes } from "node:crypto";
|
|
36608
37112
|
import { mkdirSync as mkdirSync17, writeFileSync as writeFileSync13 } from "node:fs";
|
|
36609
37113
|
import { createServer } from "node:net";
|
|
36610
37114
|
import { join as join44 } from "node:path";
|
|
36611
37115
|
|
|
36612
|
-
// src/policy/session-files.ts
|
|
37116
|
+
// packages/core/src/policy/session-files.ts
|
|
36613
37117
|
import { join as join43 } from "node:path";
|
|
36614
37118
|
var sessionContextFile = (workspace, sessionId) => join43(workspace, ".factory", "sessions", `${sessionId}.json`);
|
|
36615
37119
|
|
|
36616
|
-
// src/runtime/auth.ts
|
|
37120
|
+
// packages/core/src/runtime/auth.ts
|
|
36617
37121
|
var EXPORT_ENV = [
|
|
36618
37122
|
"PATH",
|
|
36619
37123
|
"HOME",
|
|
@@ -36825,7 +37329,7 @@ async function syncCredentials(api, scoped) {
|
|
|
36825
37329
|
return { created, updated, removed, activated, skipped, failed };
|
|
36826
37330
|
}
|
|
36827
37331
|
|
|
36828
|
-
// src/runtime/opencode.ts
|
|
37332
|
+
// packages/core/src/runtime/opencode.ts
|
|
36829
37333
|
var ENV_ALLOW = [
|
|
36830
37334
|
"PATH",
|
|
36831
37335
|
"HOME",
|
|
@@ -37291,7 +37795,7 @@ class OpencodeRuntime {
|
|
|
37291
37795
|
}
|
|
37292
37796
|
}
|
|
37293
37797
|
|
|
37294
|
-
//
|
|
37798
|
+
// packages/cli/src/commands/pipeline-commands.ts
|
|
37295
37799
|
async function setup(io) {
|
|
37296
37800
|
const root = await findWorkspaceRoot(io.cwd);
|
|
37297
37801
|
if (root === undefined)
|
|
@@ -37417,7 +37921,7 @@ in openspec/changes/<id>/questions.md and .factory/clarifications/<id>.md.
|
|
|
37417
37921
|
const { values, positionals } = parseCommandArgs("run", args, RUN_OPTIONS, true);
|
|
37418
37922
|
let request = positionals.join(" ").trim();
|
|
37419
37923
|
if (values.request !== undefined) {
|
|
37420
|
-
request = readFileSync30(
|
|
37924
|
+
request = readFileSync30(resolve6(io.cwd, values.request), "utf8").trim();
|
|
37421
37925
|
}
|
|
37422
37926
|
if (request === "")
|
|
37423
37927
|
throw new UsageError('run: expected a request, e.g. loomwright run "add a health endpoint"');
|
|
@@ -37507,7 +38011,7 @@ kept worktrees, finished ones stay; a queued change starts when the workspace is
|
|
|
37507
38011
|
}
|
|
37508
38012
|
};
|
|
37509
38013
|
|
|
37510
|
-
//
|
|
38014
|
+
// packages/cli/src/commands/adopt.ts
|
|
37511
38015
|
var HELP = `Usage: loomwright adopt [<change-id>... | --all] [--dry-run] [--json] [--normalize] [--preserve-progress]
|
|
37512
38016
|
|
|
37513
38017
|
Takes over OpenSpec changes that already exist in openspec/changes/ when the factory is
|
|
@@ -37818,7 +38322,7 @@ function reportCode(results, dryRun) {
|
|
|
37818
38322
|
return ExitCode.Ok;
|
|
37819
38323
|
}
|
|
37820
38324
|
|
|
37821
|
-
//
|
|
38325
|
+
// packages/cli/src/commands/artifacts.ts
|
|
37822
38326
|
var HELP2 = `Usage: loomwright artifacts sync [<change-id> | --all] [--dry-run] [--json]
|
|
37823
38327
|
|
|
37824
38328
|
Copies a finished change's final report, approval record and usage ledger from the
|
|
@@ -37885,11 +38389,11 @@ var artifactsCommand = {
|
|
|
37885
38389
|
}
|
|
37886
38390
|
};
|
|
37887
38391
|
|
|
37888
|
-
//
|
|
38392
|
+
// packages/cli/src/commands/bench.ts
|
|
37889
38393
|
import { mkdirSync as mkdirSync19, writeFileSync as writeFileSync15 } from "node:fs";
|
|
37890
38394
|
import { join as join47 } from "node:path";
|
|
37891
38395
|
|
|
37892
|
-
// src/bench/ponytail.ts
|
|
38396
|
+
// packages/core/src/bench/ponytail.ts
|
|
37893
38397
|
import {
|
|
37894
38398
|
mkdirSync as mkdirSync18,
|
|
37895
38399
|
mkdtempSync as mkdtempSync3,
|
|
@@ -38115,7 +38619,7 @@ function benchMarkdown(results, models, date) {
|
|
|
38115
38619
|
`);
|
|
38116
38620
|
}
|
|
38117
38621
|
|
|
38118
|
-
//
|
|
38622
|
+
// packages/cli/src/commands/bench.ts
|
|
38119
38623
|
var HELP3 = `Usage: loomwright bench ponytail [--runs N] [--case ID] [--levels L,…] [--yes] [--json]
|
|
38120
38624
|
|
|
38121
38625
|
Runs each bench case (${BENCH_CASES.map((c) => c.id).join(", ")}) N times (default 3) with and
|
|
@@ -38206,13 +38710,13 @@ function benchCommand(cli) {
|
|
|
38206
38710
|
};
|
|
38207
38711
|
}
|
|
38208
38712
|
|
|
38209
|
-
//
|
|
38713
|
+
// packages/cli/src/commands/completion.ts
|
|
38210
38714
|
import { basename as basename3 } from "node:path";
|
|
38211
38715
|
|
|
38212
|
-
//
|
|
38213
|
-
import { resolve as
|
|
38716
|
+
// packages/cli/src/completion/engine.ts
|
|
38717
|
+
import { resolve as resolve7 } from "node:path";
|
|
38214
38718
|
|
|
38215
|
-
//
|
|
38719
|
+
// packages/cli/src/completion/registry.ts
|
|
38216
38720
|
var registry2 = [];
|
|
38217
38721
|
function setCompletionCommands(commands) {
|
|
38218
38722
|
registry2 = commands;
|
|
@@ -38221,7 +38725,7 @@ function completionCommands() {
|
|
|
38221
38725
|
return registry2;
|
|
38222
38726
|
}
|
|
38223
38727
|
|
|
38224
|
-
//
|
|
38728
|
+
// packages/cli/src/completion/values.ts
|
|
38225
38729
|
import { readdirSync as readdirSync14 } from "node:fs";
|
|
38226
38730
|
import { join as join48 } from "node:path";
|
|
38227
38731
|
var names = (dir, suffix) => {
|
|
@@ -38344,7 +38848,7 @@ function valueCandidates(kind, context) {
|
|
|
38344
38848
|
}
|
|
38345
38849
|
}
|
|
38346
38850
|
|
|
38347
|
-
//
|
|
38851
|
+
// packages/cli/src/completion/engine.ts
|
|
38348
38852
|
var GLOBAL_FLAGS = [
|
|
38349
38853
|
{ value: "-C", description: "Run as if started in <dir>", complete: "dir" },
|
|
38350
38854
|
{ value: "-h", description: "Show help" },
|
|
@@ -38502,7 +39006,7 @@ async function splitGlobals(words, cwd) {
|
|
|
38502
39006
|
if (word === "-C") {
|
|
38503
39007
|
if (i + 1 >= words.length)
|
|
38504
39008
|
return { rest: [], cwd: dir, dirPending: true };
|
|
38505
|
-
dir =
|
|
39009
|
+
dir = resolve7(dir, words[i + 1] ?? "");
|
|
38506
39010
|
i += 2;
|
|
38507
39011
|
continue;
|
|
38508
39012
|
}
|
|
@@ -38530,7 +39034,7 @@ async function completeWords(words, cwd) {
|
|
|
38530
39034
|
return commandCandidates(command, globals.rest.slice(1), current, globals.cwd);
|
|
38531
39035
|
}
|
|
38532
39036
|
|
|
38533
|
-
//
|
|
39037
|
+
// packages/cli/src/completion/scripts.ts
|
|
38534
39038
|
import {
|
|
38535
39039
|
chmodSync as chmodSync2,
|
|
38536
39040
|
existsSync as existsSync35,
|
|
@@ -38541,7 +39045,7 @@ import {
|
|
|
38541
39045
|
writeFileSync as writeFileSync16
|
|
38542
39046
|
} from "node:fs";
|
|
38543
39047
|
import { homedir } from "node:os";
|
|
38544
|
-
import { dirname as dirname12, isAbsolute as isAbsolute3, join as join49, resolve as
|
|
39048
|
+
import { dirname as dirname12, isAbsolute as isAbsolute3, join as join49, resolve as resolve8 } from "node:path";
|
|
38545
39049
|
var SHELLS = ["bash", "zsh", "fish"];
|
|
38546
39050
|
function isShell(value) {
|
|
38547
39051
|
return SHELLS.includes(value);
|
|
@@ -38630,7 +39134,7 @@ var START2 = "# >>> ai-factory completion >>>";
|
|
|
38630
39134
|
var END2 = "# <<< ai-factory completion <<<";
|
|
38631
39135
|
var rcPath = (shell, cwd, override) => {
|
|
38632
39136
|
if (override !== undefined)
|
|
38633
|
-
return isAbsolute3(override) ? override :
|
|
39137
|
+
return isAbsolute3(override) ? override : resolve8(cwd, override);
|
|
38634
39138
|
const home = homedir();
|
|
38635
39139
|
if (shell === "bash")
|
|
38636
39140
|
return join49(home, ".bashrc");
|
|
@@ -38683,7 +39187,7 @@ function installCompletion(shell, cwd, override) {
|
|
|
38683
39187
|
return { path, changed: true };
|
|
38684
39188
|
}
|
|
38685
39189
|
|
|
38686
|
-
//
|
|
39190
|
+
// packages/cli/src/commands/completion.ts
|
|
38687
39191
|
var OPTIONS4 = {
|
|
38688
39192
|
install: { type: "boolean", default: false, description: "Add the script to your shell rc" },
|
|
38689
39193
|
rc: { type: "string", complete: "file", description: "With --install: the rc file to edit" }
|
|
@@ -38759,11 +39263,11 @@ var completeCommand = {
|
|
|
38759
39263
|
}
|
|
38760
39264
|
};
|
|
38761
39265
|
|
|
38762
|
-
//
|
|
39266
|
+
// packages/cli/src/commands/detect.ts
|
|
38763
39267
|
import { existsSync as existsSync36, renameSync as renameSync7, writeFileSync as writeFileSync17 } from "node:fs";
|
|
38764
39268
|
import { join as join50 } from "node:path";
|
|
38765
39269
|
|
|
38766
|
-
// src/detect/apply.ts
|
|
39270
|
+
// packages/core/src/detect/apply.ts
|
|
38767
39271
|
function applyChanges(text, config, changes) {
|
|
38768
39272
|
let out = text;
|
|
38769
39273
|
const repoIndex = (path) => config.repos.findIndex((r) => r.path === path);
|
|
@@ -38795,7 +39299,7 @@ function applyChanges(text, config, changes) {
|
|
|
38795
39299
|
return out;
|
|
38796
39300
|
}
|
|
38797
39301
|
|
|
38798
|
-
//
|
|
39302
|
+
// packages/cli/src/commands/detect.ts
|
|
38799
39303
|
var HELP5 = `Usage: loomwright detect [--apply [--no-commit] [--allow-downgrade]] [--check] [--json]
|
|
38800
39304
|
|
|
38801
39305
|
Re-detects the layout, repos, languages and contracts and shows the difference
|
|
@@ -38916,12 +39420,12 @@ var detectCommand = {
|
|
|
38916
39420
|
}
|
|
38917
39421
|
};
|
|
38918
39422
|
|
|
38919
|
-
// src/doctor/doctor.ts
|
|
39423
|
+
// packages/core/src/doctor/doctor.ts
|
|
38920
39424
|
import { existsSync as existsSync37, lstatSync as lstatSync2, mkdtempSync as mkdtempSync4, readdirSync as readdirSync15, readFileSync as readFileSync33, rmSync as rmSync12 } from "node:fs";
|
|
38921
39425
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
38922
39426
|
import { delimiter as delimiter2, extname, join as join51 } from "node:path";
|
|
38923
39427
|
|
|
38924
|
-
// src/policy/shell-parse.ts
|
|
39428
|
+
// packages/core/src/policy/shell-parse.ts
|
|
38925
39429
|
class ShellParseError extends Error {
|
|
38926
39430
|
}
|
|
38927
39431
|
var OPS = ["&&", "||", ";;", ";", "|&", "|", "&", "(", ")", `
|
|
@@ -39295,7 +39799,7 @@ function parseScript(src) {
|
|
|
39295
39799
|
return new Parser(new Lexer(src).lex()).script(false);
|
|
39296
39800
|
}
|
|
39297
39801
|
|
|
39298
|
-
// src/doctor/doctor.ts
|
|
39802
|
+
// packages/core/src/doctor/doctor.ts
|
|
39299
39803
|
var SHELL_BUILTINS = new Set([
|
|
39300
39804
|
"[",
|
|
39301
39805
|
"test",
|
|
@@ -39891,7 +40395,7 @@ async function runDoctor(root) {
|
|
|
39891
40395
|
return { checks: c.list, gates, uninitialised };
|
|
39892
40396
|
}
|
|
39893
40397
|
|
|
39894
|
-
//
|
|
40398
|
+
// packages/cli/src/commands/doctor.ts
|
|
39895
40399
|
var MARK2 = { ok: "✓", warn: "!", fail: "✗" };
|
|
39896
40400
|
function print(io, report) {
|
|
39897
40401
|
let section = "";
|
|
@@ -39963,7 +40467,7 @@ Exit code ${ExitCode.Precondition} when a check fails; warnings exit 0.`,
|
|
|
39963
40467
|
}
|
|
39964
40468
|
};
|
|
39965
40469
|
|
|
39966
|
-
//
|
|
40470
|
+
// packages/cli/src/commands/gate.ts
|
|
39967
40471
|
import { existsSync as existsSync38, readdirSync as readdirSync16 } from "node:fs";
|
|
39968
40472
|
import { join as join52 } from "node:path";
|
|
39969
40473
|
var HELP6 = `Usage: loomwright gate <change-id> [--task <id>] [--repo <name>] [--full] [--json]
|
|
@@ -40095,7 +40599,7 @@ var gateCommand = {
|
|
|
40095
40599
|
}
|
|
40096
40600
|
};
|
|
40097
40601
|
|
|
40098
|
-
//
|
|
40602
|
+
// packages/cli/src/commands/graph.ts
|
|
40099
40603
|
import { existsSync as existsSync39 } from "node:fs";
|
|
40100
40604
|
import { join as join53 } from "node:path";
|
|
40101
40605
|
var OPTIONS8 = {
|
|
@@ -40135,11 +40639,11 @@ The pipeline also updates it after every task merge, so this is rarely needed by
|
|
|
40135
40639
|
}
|
|
40136
40640
|
};
|
|
40137
40641
|
|
|
40138
|
-
//
|
|
40642
|
+
// packages/cli/src/commands/init.ts
|
|
40139
40643
|
import { existsSync as existsSync41, writeFileSync as writeFileSync18 } from "node:fs";
|
|
40140
40644
|
import { join as join55 } from "node:path";
|
|
40141
40645
|
|
|
40142
|
-
// src/config/render.ts
|
|
40646
|
+
// packages/core/src/config/render.ts
|
|
40143
40647
|
var DEFAULT_MODELS = {
|
|
40144
40648
|
orchestrator: "anthropic/claude-sonnet-5-5",
|
|
40145
40649
|
architect: "anthropic/claude-opus-5-5",
|
|
@@ -40301,7 +40805,7 @@ ${contracts}
|
|
|
40301
40805
|
`;
|
|
40302
40806
|
}
|
|
40303
40807
|
|
|
40304
|
-
// src/workspace/legacy.ts
|
|
40808
|
+
// packages/core/src/workspace/legacy.ts
|
|
40305
40809
|
import { existsSync as existsSync40, mkdirSync as mkdirSync21, readdirSync as readdirSync17, renameSync as renameSync8, rmdirSync as rmdirSync2 } from "node:fs";
|
|
40306
40810
|
import { dirname as dirname13, join as join54 } from "node:path";
|
|
40307
40811
|
var OPENSPEC_PREFIX = /^(opsx-|openspec-)/;
|
|
@@ -40343,7 +40847,7 @@ function archiveLegacySetups(root, repoPaths) {
|
|
|
40343
40847
|
return { stamp, archived };
|
|
40344
40848
|
}
|
|
40345
40849
|
|
|
40346
|
-
//
|
|
40850
|
+
// packages/cli/src/commands/init.ts
|
|
40347
40851
|
var OPENSPEC_CONFIG = "openspec/config.yaml";
|
|
40348
40852
|
var HELP7 = `Usage: loomwright init [--plan] [--force] [--allow-downgrade] [--no-commit] [--no-graph] [--json]
|
|
40349
40853
|
|
|
@@ -40515,7 +41019,7 @@ var initCommand = {
|
|
|
40515
41019
|
}
|
|
40516
41020
|
};
|
|
40517
41021
|
|
|
40518
|
-
// src/pipeline/land.ts
|
|
41022
|
+
// packages/core/src/pipeline/land.ts
|
|
40519
41023
|
import { existsSync as existsSync42, readdirSync as readdirSync18, readFileSync as readFileSync34, rmSync as rmSync13 } from "node:fs";
|
|
40520
41024
|
import { join as join56 } from "node:path";
|
|
40521
41025
|
var refs = {
|
|
@@ -40893,7 +41397,7 @@ var inProgress = async (dir) => {
|
|
|
40893
41397
|
return false;
|
|
40894
41398
|
};
|
|
40895
41399
|
|
|
40896
|
-
//
|
|
41400
|
+
// packages/cli/src/commands/land.ts
|
|
40897
41401
|
var OPTIONS10 = {
|
|
40898
41402
|
"dry-run": {
|
|
40899
41403
|
type: "boolean",
|
|
@@ -40978,11 +41482,11 @@ var landCommand = {
|
|
|
40978
41482
|
}
|
|
40979
41483
|
};
|
|
40980
41484
|
|
|
40981
|
-
// src/pipeline/quick.ts
|
|
41485
|
+
// packages/core/src/pipeline/quick.ts
|
|
40982
41486
|
import { rmSync as rmSync14 } from "node:fs";
|
|
40983
41487
|
import { join as join58 } from "node:path";
|
|
40984
41488
|
|
|
40985
|
-
// src/pipeline/refine.ts
|
|
41489
|
+
// packages/core/src/pipeline/refine.ts
|
|
40986
41490
|
import { mkdirSync as mkdirSync22, writeFileSync as writeFileSync19 } from "node:fs";
|
|
40987
41491
|
import { join as join57 } from "node:path";
|
|
40988
41492
|
var QUESTIONS = [
|
|
@@ -41043,7 +41547,7 @@ Q&A in \`openspec/changes/<id>/questions.md\`.
|
|
|
41043
41547
|
return { path, text };
|
|
41044
41548
|
}
|
|
41045
41549
|
|
|
41046
|
-
// src/pipeline/quick.ts
|
|
41550
|
+
// packages/core/src/pipeline/quick.ts
|
|
41047
41551
|
var quickChangeId = (task) => `quick-${requestSlug(task)}`;
|
|
41048
41552
|
async function revert(dir, paths) {
|
|
41049
41553
|
for (const path of paths) {
|
|
@@ -41263,7 +41767,7 @@ ${findings.join(`
|
|
|
41263
41767
|
};
|
|
41264
41768
|
}
|
|
41265
41769
|
|
|
41266
|
-
//
|
|
41770
|
+
// packages/cli/src/commands/quick.ts
|
|
41267
41771
|
var HELP9 = `Usage: loomwright quick "<task>" [--repo <name>] [--agent <id>] [--no-review] [--verbose|--quiet]
|
|
41268
41772
|
|
|
41269
41773
|
The no-OpenSpec path: create a task/<slug> branch, implement, run the repository gates, run
|
|
@@ -41315,7 +41819,7 @@ var quickCommand = {
|
|
|
41315
41819
|
}
|
|
41316
41820
|
};
|
|
41317
41821
|
|
|
41318
|
-
//
|
|
41822
|
+
// packages/cli/src/commands/refine.ts
|
|
41319
41823
|
var HELP10 = `Usage: loomwright refine "<request>"
|
|
41320
41824
|
|
|
41321
41825
|
Ask a few scope, verification and constraint questions, then write a refined request to
|
|
@@ -41339,7 +41843,7 @@ var refineCommand = {
|
|
|
41339
41843
|
}
|
|
41340
41844
|
};
|
|
41341
41845
|
|
|
41342
|
-
//
|
|
41846
|
+
// packages/cli/src/commands/repoint.ts
|
|
41343
41847
|
var HELP11 = `Usage: loomwright repoint <change-id> [--json]
|
|
41344
41848
|
|
|
41345
41849
|
After the submodule MRs of a change are merged upstream: fetches each submodule, finds the
|
|
@@ -41384,7 +41888,7 @@ var repointCommand = {
|
|
|
41384
41888
|
}
|
|
41385
41889
|
};
|
|
41386
41890
|
|
|
41387
|
-
// src/pipeline/reword.ts
|
|
41891
|
+
// packages/core/src/pipeline/reword.ts
|
|
41388
41892
|
import { createHash as createHash5 } from "node:crypto";
|
|
41389
41893
|
import {
|
|
41390
41894
|
existsSync as existsSync43,
|
|
@@ -41766,7 +42270,7 @@ async function reword(p, id, options = {}) {
|
|
|
41766
42270
|
return { changed: true, approval, specCommit, findings: remaining };
|
|
41767
42271
|
}
|
|
41768
42272
|
|
|
41769
|
-
//
|
|
42273
|
+
// packages/cli/src/commands/reword.ts
|
|
41770
42274
|
function selectedFindings(command, all, value) {
|
|
41771
42275
|
if (value === undefined)
|
|
41772
42276
|
return [...all];
|
|
@@ -41871,7 +42375,7 @@ architect apply review findings. Continue with \`loomwright resume <id>\`.
|
|
|
41871
42375
|
}
|
|
41872
42376
|
};
|
|
41873
42377
|
|
|
41874
|
-
//
|
|
42378
|
+
// packages/cli/src/commands/state-commands.ts
|
|
41875
42379
|
import { existsSync as existsSync44, readdirSync as readdirSync20 } from "node:fs";
|
|
41876
42380
|
import { join as join60 } from "node:path";
|
|
41877
42381
|
async function workspace(io) {
|
|
@@ -42163,7 +42667,7 @@ that were cancelled because of it. Continue the change with \`loomwright resume
|
|
|
42163
42667
|
}
|
|
42164
42668
|
};
|
|
42165
42669
|
|
|
42166
|
-
//
|
|
42670
|
+
// packages/cli/src/commands/update.ts
|
|
42167
42671
|
import { rmSync as rmSync16, writeFileSync as writeFileSync21 } from "node:fs";
|
|
42168
42672
|
import { join as join61 } from "node:path";
|
|
42169
42673
|
async function workspaceRoot(io) {
|
|
@@ -42323,7 +42827,7 @@ Restores every file the latest \`loomwright update\` touched (including the lock
|
|
|
42323
42827
|
}
|
|
42324
42828
|
};
|
|
42325
42829
|
|
|
42326
|
-
//
|
|
42830
|
+
// packages/cli/src/commands/usage.ts
|
|
42327
42831
|
import { basename as basename4 } from "node:path";
|
|
42328
42832
|
var DIMENSIONS = ["change", "agent", "model", "day"];
|
|
42329
42833
|
var OPTIONS14 = {
|
|
@@ -42444,7 +42948,7 @@ var usageCommand = {
|
|
|
42444
42948
|
}
|
|
42445
42949
|
};
|
|
42446
42950
|
|
|
42447
|
-
//
|
|
42951
|
+
// packages/cli/src/main.ts
|
|
42448
42952
|
var COMMANDS = [
|
|
42449
42953
|
initCommand,
|
|
42450
42954
|
adoptCommand,
|
|
@@ -42531,7 +43035,7 @@ async function runCli(argv, io) {
|
|
|
42531
43035
|
io.err("error: -C needs a directory");
|
|
42532
43036
|
return ExitCode.Usage;
|
|
42533
43037
|
}
|
|
42534
|
-
cwd =
|
|
43038
|
+
cwd = resolve9(cwd, dir);
|
|
42535
43039
|
} else if (arg === "-V" || arg === "--version") {
|
|
42536
43040
|
io.out(FACTORY_VERSION);
|
|
42537
43041
|
return ExitCode.Ok;
|
|
@@ -42566,7 +43070,7 @@ ${usage()}`);
|
|
|
42566
43070
|
}
|
|
42567
43071
|
}
|
|
42568
43072
|
|
|
42569
|
-
//
|
|
43073
|
+
// packages/cli/src/bin.ts
|
|
42570
43074
|
var code = await runCli(process.argv.slice(2), {
|
|
42571
43075
|
cwd: process.cwd(),
|
|
42572
43076
|
out: (text) => process.stdout.write(`${text}
|