@loomwright/cli 1.0.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 +15 -0
- package/README.md +11 -9
- package/dist/cli.js +842 -395
- package/dist/package.json +1 -3
- package/package.json +5 -33
package/dist/cli.js
CHANGED
|
@@ -35,7 +35,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
35
35
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
36
36
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
37
37
|
|
|
38
|
-
// node_modules/yaml/dist/nodes/identity.js
|
|
38
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
|
|
39
39
|
var require_identity = __commonJS(function(exports) {
|
|
40
40
|
var ALIAS = Symbol.for("yaml.alias");
|
|
41
41
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -89,7 +89,7 @@ var require_identity = __commonJS(function(exports) {
|
|
|
89
89
|
exports.isSeq = isSeq;
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
// node_modules/yaml/dist/visit.js
|
|
92
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/visit.js
|
|
93
93
|
var require_visit = __commonJS(function(exports) {
|
|
94
94
|
var identity = require_identity();
|
|
95
95
|
var BREAK = Symbol("break visit");
|
|
@@ -244,7 +244,7 @@ var require_visit = __commonJS(function(exports) {
|
|
|
244
244
|
exports.visitAsync = visitAsync;
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
-
// node_modules/yaml/dist/doc/directives.js
|
|
247
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js
|
|
248
248
|
var require_directives = __commonJS(function(exports) {
|
|
249
249
|
var identity = require_identity();
|
|
250
250
|
var visit = require_visit();
|
|
@@ -396,7 +396,7 @@ var require_directives = __commonJS(function(exports) {
|
|
|
396
396
|
exports.Directives = Directives;
|
|
397
397
|
});
|
|
398
398
|
|
|
399
|
-
// node_modules/yaml/dist/doc/anchors.js
|
|
399
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js
|
|
400
400
|
var require_anchors = __commonJS(function(exports) {
|
|
401
401
|
var identity = require_identity();
|
|
402
402
|
var visit = require_visit();
|
|
@@ -458,7 +458,7 @@ var require_anchors = __commonJS(function(exports) {
|
|
|
458
458
|
exports.findNewAnchor = findNewAnchor;
|
|
459
459
|
});
|
|
460
460
|
|
|
461
|
-
// node_modules/yaml/dist/doc/applyReviver.js
|
|
461
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js
|
|
462
462
|
var require_applyReviver = __commonJS(function(exports) {
|
|
463
463
|
function applyReviver(reviver, obj, key, val) {
|
|
464
464
|
if (val && typeof val === "object") {
|
|
@@ -505,7 +505,7 @@ var require_applyReviver = __commonJS(function(exports) {
|
|
|
505
505
|
exports.applyReviver = applyReviver;
|
|
506
506
|
});
|
|
507
507
|
|
|
508
|
-
// node_modules/yaml/dist/nodes/toJS.js
|
|
508
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js
|
|
509
509
|
var require_toJS = __commonJS(function(exports) {
|
|
510
510
|
var identity = require_identity();
|
|
511
511
|
function toJS(value, arg, ctx) {
|
|
@@ -532,7 +532,7 @@ var require_toJS = __commonJS(function(exports) {
|
|
|
532
532
|
exports.toJS = toJS;
|
|
533
533
|
});
|
|
534
534
|
|
|
535
|
-
// node_modules/yaml/dist/nodes/Node.js
|
|
535
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js
|
|
536
536
|
var require_Node = __commonJS(function(exports) {
|
|
537
537
|
var applyReviver = require_applyReviver();
|
|
538
538
|
var identity = require_identity();
|
|
@@ -569,7 +569,7 @@ var require_Node = __commonJS(function(exports) {
|
|
|
569
569
|
exports.NodeBase = NodeBase;
|
|
570
570
|
});
|
|
571
571
|
|
|
572
|
-
// node_modules/yaml/dist/nodes/Alias.js
|
|
572
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js
|
|
573
573
|
var require_Alias = __commonJS(function(exports) {
|
|
574
574
|
var anchors = require_anchors();
|
|
575
575
|
var visit = require_visit();
|
|
@@ -681,7 +681,7 @@ var require_Alias = __commonJS(function(exports) {
|
|
|
681
681
|
exports.Alias = Alias;
|
|
682
682
|
});
|
|
683
683
|
|
|
684
|
-
// node_modules/yaml/dist/nodes/Scalar.js
|
|
684
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js
|
|
685
685
|
var require_Scalar = __commonJS(function(exports) {
|
|
686
686
|
var identity = require_identity();
|
|
687
687
|
var Node = require_Node();
|
|
@@ -709,7 +709,7 @@ var require_Scalar = __commonJS(function(exports) {
|
|
|
709
709
|
exports.isScalarValue = isScalarValue;
|
|
710
710
|
});
|
|
711
711
|
|
|
712
|
-
// node_modules/yaml/dist/doc/createNode.js
|
|
712
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js
|
|
713
713
|
var require_createNode = __commonJS(function(exports) {
|
|
714
714
|
var Alias = require_Alias();
|
|
715
715
|
var identity = require_identity();
|
|
@@ -781,7 +781,7 @@ var require_createNode = __commonJS(function(exports) {
|
|
|
781
781
|
exports.createNode = createNode;
|
|
782
782
|
});
|
|
783
783
|
|
|
784
|
-
// node_modules/yaml/dist/nodes/Collection.js
|
|
784
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js
|
|
785
785
|
var require_Collection = __commonJS(function(exports) {
|
|
786
786
|
var createNode = require_createNode();
|
|
787
787
|
var identity = require_identity();
|
|
@@ -896,7 +896,7 @@ var require_Collection = __commonJS(function(exports) {
|
|
|
896
896
|
exports.isEmptyPath = isEmptyPath;
|
|
897
897
|
});
|
|
898
898
|
|
|
899
|
-
// node_modules/yaml/dist/stringify/stringifyComment.js
|
|
899
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
900
900
|
var require_stringifyComment = __commonJS(function(exports) {
|
|
901
901
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
902
902
|
function indentComment(comment, indent) {
|
|
@@ -913,7 +913,7 @@ var require_stringifyComment = __commonJS(function(exports) {
|
|
|
913
913
|
exports.stringifyComment = stringifyComment;
|
|
914
914
|
});
|
|
915
915
|
|
|
916
|
-
// node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
916
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
917
917
|
var require_foldFlowLines = __commonJS(function(exports) {
|
|
918
918
|
var FOLD_FLOW = "flow";
|
|
919
919
|
var FOLD_BLOCK = "block";
|
|
@@ -1050,7 +1050,7 @@ ${indent}${text.slice(fold + 1, end)}`;
|
|
|
1050
1050
|
exports.foldFlowLines = foldFlowLines;
|
|
1051
1051
|
});
|
|
1052
1052
|
|
|
1053
|
-
// node_modules/yaml/dist/stringify/stringifyString.js
|
|
1053
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1054
1054
|
var require_stringifyString = __commonJS(function(exports) {
|
|
1055
1055
|
var Scalar = require_Scalar();
|
|
1056
1056
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1348,7 +1348,7 @@ ${indent}`);
|
|
|
1348
1348
|
exports.stringifyString = stringifyString;
|
|
1349
1349
|
});
|
|
1350
1350
|
|
|
1351
|
-
// node_modules/yaml/dist/stringify/stringify.js
|
|
1351
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js
|
|
1352
1352
|
var require_stringify = __commonJS(function(exports) {
|
|
1353
1353
|
var anchors = require_anchors();
|
|
1354
1354
|
var identity = require_identity();
|
|
@@ -1469,7 +1469,7 @@ ${ctx.indent}${str}`;
|
|
|
1469
1469
|
exports.stringify = stringify;
|
|
1470
1470
|
});
|
|
1471
1471
|
|
|
1472
|
-
// node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1472
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1473
1473
|
var require_stringifyPair = __commonJS(function(exports) {
|
|
1474
1474
|
var identity = require_identity();
|
|
1475
1475
|
var Scalar = require_Scalar();
|
|
@@ -1605,7 +1605,7 @@ ${ctx.indent}`;
|
|
|
1605
1605
|
exports.stringifyPair = stringifyPair;
|
|
1606
1606
|
});
|
|
1607
1607
|
|
|
1608
|
-
// node_modules/yaml/dist/log.js
|
|
1608
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/log.js
|
|
1609
1609
|
var require_log = __commonJS(function(exports) {
|
|
1610
1610
|
var node_process = __require("process");
|
|
1611
1611
|
function debug(logLevel, ...messages) {
|
|
@@ -1624,7 +1624,7 @@ var require_log = __commonJS(function(exports) {
|
|
|
1624
1624
|
exports.warn = warn;
|
|
1625
1625
|
});
|
|
1626
1626
|
|
|
1627
|
-
// node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1627
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1628
1628
|
var require_merge = __commonJS(function(exports) {
|
|
1629
1629
|
var identity = require_identity();
|
|
1630
1630
|
var Scalar = require_Scalar();
|
|
@@ -1681,7 +1681,7 @@ var require_merge = __commonJS(function(exports) {
|
|
|
1681
1681
|
exports.merge = merge;
|
|
1682
1682
|
});
|
|
1683
1683
|
|
|
1684
|
-
// node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1684
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1685
1685
|
var require_addPairToJSMap = __commonJS(function(exports) {
|
|
1686
1686
|
var log = require_log();
|
|
1687
1687
|
var merge = require_merge();
|
|
@@ -1742,7 +1742,7 @@ var require_addPairToJSMap = __commonJS(function(exports) {
|
|
|
1742
1742
|
exports.addPairToJSMap = addPairToJSMap;
|
|
1743
1743
|
});
|
|
1744
1744
|
|
|
1745
|
-
// node_modules/yaml/dist/nodes/Pair.js
|
|
1745
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js
|
|
1746
1746
|
var require_Pair = __commonJS(function(exports) {
|
|
1747
1747
|
var createNode = require_createNode();
|
|
1748
1748
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1780,7 +1780,7 @@ var require_Pair = __commonJS(function(exports) {
|
|
|
1780
1780
|
exports.createPair = createPair;
|
|
1781
1781
|
});
|
|
1782
1782
|
|
|
1783
|
-
// node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1783
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1784
1784
|
var require_stringifyCollection = __commonJS(function(exports) {
|
|
1785
1785
|
var identity = require_identity();
|
|
1786
1786
|
var stringify = require_stringify();
|
|
@@ -1932,7 +1932,7 @@ ${indent}${end}`;
|
|
|
1932
1932
|
exports.stringifyCollection = stringifyCollection;
|
|
1933
1933
|
});
|
|
1934
1934
|
|
|
1935
|
-
// node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1935
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1936
1936
|
var require_YAMLMap = __commonJS(function(exports) {
|
|
1937
1937
|
var stringifyCollection = require_stringifyCollection();
|
|
1938
1938
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2059,7 +2059,7 @@ var require_YAMLMap = __commonJS(function(exports) {
|
|
|
2059
2059
|
exports.findPair = findPair;
|
|
2060
2060
|
});
|
|
2061
2061
|
|
|
2062
|
-
// node_modules/yaml/dist/schema/common/map.js
|
|
2062
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js
|
|
2063
2063
|
var require_map = __commonJS(function(exports) {
|
|
2064
2064
|
var identity = require_identity();
|
|
2065
2065
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2078,7 +2078,7 @@ var require_map = __commonJS(function(exports) {
|
|
|
2078
2078
|
exports.map = map;
|
|
2079
2079
|
});
|
|
2080
2080
|
|
|
2081
|
-
// node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2081
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2082
2082
|
var require_YAMLSeq = __commonJS(function(exports) {
|
|
2083
2083
|
var createNode = require_createNode();
|
|
2084
2084
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2171,7 +2171,7 @@ var require_YAMLSeq = __commonJS(function(exports) {
|
|
|
2171
2171
|
exports.YAMLSeq = YAMLSeq;
|
|
2172
2172
|
});
|
|
2173
2173
|
|
|
2174
|
-
// node_modules/yaml/dist/schema/common/seq.js
|
|
2174
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js
|
|
2175
2175
|
var require_seq = __commonJS(function(exports) {
|
|
2176
2176
|
var identity = require_identity();
|
|
2177
2177
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2190,7 +2190,7 @@ var require_seq = __commonJS(function(exports) {
|
|
|
2190
2190
|
exports.seq = seq;
|
|
2191
2191
|
});
|
|
2192
2192
|
|
|
2193
|
-
// node_modules/yaml/dist/schema/common/string.js
|
|
2193
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js
|
|
2194
2194
|
var require_string = __commonJS(function(exports) {
|
|
2195
2195
|
var stringifyString = require_stringifyString();
|
|
2196
2196
|
var string = {
|
|
@@ -2206,7 +2206,7 @@ var require_string = __commonJS(function(exports) {
|
|
|
2206
2206
|
exports.string = string;
|
|
2207
2207
|
});
|
|
2208
2208
|
|
|
2209
|
-
// node_modules/yaml/dist/schema/common/null.js
|
|
2209
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js
|
|
2210
2210
|
var require_null = __commonJS(function(exports) {
|
|
2211
2211
|
var Scalar = require_Scalar();
|
|
2212
2212
|
var nullTag = {
|
|
@@ -2221,7 +2221,7 @@ var require_null = __commonJS(function(exports) {
|
|
|
2221
2221
|
exports.nullTag = nullTag;
|
|
2222
2222
|
});
|
|
2223
2223
|
|
|
2224
|
-
// node_modules/yaml/dist/schema/core/bool.js
|
|
2224
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js
|
|
2225
2225
|
var require_bool = __commonJS(function(exports) {
|
|
2226
2226
|
var Scalar = require_Scalar();
|
|
2227
2227
|
var boolTag = {
|
|
@@ -2242,7 +2242,7 @@ var require_bool = __commonJS(function(exports) {
|
|
|
2242
2242
|
exports.boolTag = boolTag;
|
|
2243
2243
|
});
|
|
2244
2244
|
|
|
2245
|
-
// node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2245
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2246
2246
|
var require_stringifyNumber = __commonJS(function(exports) {
|
|
2247
2247
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2248
2248
|
if (typeof value === "bigint")
|
|
@@ -2266,7 +2266,7 @@ var require_stringifyNumber = __commonJS(function(exports) {
|
|
|
2266
2266
|
exports.stringifyNumber = stringifyNumber;
|
|
2267
2267
|
});
|
|
2268
2268
|
|
|
2269
|
-
// node_modules/yaml/dist/schema/core/float.js
|
|
2269
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js
|
|
2270
2270
|
var require_float = __commonJS(function(exports) {
|
|
2271
2271
|
var Scalar = require_Scalar();
|
|
2272
2272
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2309,7 +2309,7 @@ var require_float = __commonJS(function(exports) {
|
|
|
2309
2309
|
exports.floatNaN = floatNaN;
|
|
2310
2310
|
});
|
|
2311
2311
|
|
|
2312
|
-
// node_modules/yaml/dist/schema/core/int.js
|
|
2312
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js
|
|
2313
2313
|
var require_int = __commonJS(function(exports) {
|
|
2314
2314
|
var stringifyNumber = require_stringifyNumber();
|
|
2315
2315
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2351,7 +2351,7 @@ var require_int = __commonJS(function(exports) {
|
|
|
2351
2351
|
exports.intOct = intOct;
|
|
2352
2352
|
});
|
|
2353
2353
|
|
|
2354
|
-
// node_modules/yaml/dist/schema/core/schema.js
|
|
2354
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js
|
|
2355
2355
|
var require_schema = __commonJS(function(exports) {
|
|
2356
2356
|
var map = require_map();
|
|
2357
2357
|
var _null = require_null();
|
|
@@ -2376,7 +2376,7 @@ var require_schema = __commonJS(function(exports) {
|
|
|
2376
2376
|
exports.schema = schema;
|
|
2377
2377
|
});
|
|
2378
2378
|
|
|
2379
|
-
// node_modules/yaml/dist/schema/json/schema.js
|
|
2379
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js
|
|
2380
2380
|
var require_schema2 = __commonJS(function(exports) {
|
|
2381
2381
|
var Scalar = require_Scalar();
|
|
2382
2382
|
var map = require_map();
|
|
@@ -2440,7 +2440,7 @@ var require_schema2 = __commonJS(function(exports) {
|
|
|
2440
2440
|
exports.schema = schema;
|
|
2441
2441
|
});
|
|
2442
2442
|
|
|
2443
|
-
// node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2443
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2444
2444
|
var require_binary = __commonJS(function(exports) {
|
|
2445
2445
|
var node_buffer = __require("buffer");
|
|
2446
2446
|
var Scalar = require_Scalar();
|
|
@@ -2495,7 +2495,7 @@ var require_binary = __commonJS(function(exports) {
|
|
|
2495
2495
|
exports.binary = binary;
|
|
2496
2496
|
});
|
|
2497
2497
|
|
|
2498
|
-
// node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2498
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2499
2499
|
var require_pairs = __commonJS(function(exports) {
|
|
2500
2500
|
var identity = require_identity();
|
|
2501
2501
|
var Pair = require_Pair();
|
|
@@ -2570,7 +2570,7 @@ ${cn.comment}` : item.comment;
|
|
|
2570
2570
|
exports.resolvePairs = resolvePairs;
|
|
2571
2571
|
});
|
|
2572
2572
|
|
|
2573
|
-
// node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2573
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2574
2574
|
var require_omap = __commonJS(function(exports) {
|
|
2575
2575
|
var identity = require_identity();
|
|
2576
2576
|
var toJS = require_toJS();
|
|
@@ -2642,7 +2642,7 @@ var require_omap = __commonJS(function(exports) {
|
|
|
2642
2642
|
exports.omap = omap;
|
|
2643
2643
|
});
|
|
2644
2644
|
|
|
2645
|
-
// node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2645
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2646
2646
|
var require_bool2 = __commonJS(function(exports) {
|
|
2647
2647
|
var Scalar = require_Scalar();
|
|
2648
2648
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2671,7 +2671,7 @@ var require_bool2 = __commonJS(function(exports) {
|
|
|
2671
2671
|
exports.trueTag = trueTag;
|
|
2672
2672
|
});
|
|
2673
2673
|
|
|
2674
|
-
// node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2674
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2675
2675
|
var require_float2 = __commonJS(function(exports) {
|
|
2676
2676
|
var Scalar = require_Scalar();
|
|
2677
2677
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2717,7 +2717,7 @@ var require_float2 = __commonJS(function(exports) {
|
|
|
2717
2717
|
exports.floatNaN = floatNaN;
|
|
2718
2718
|
});
|
|
2719
2719
|
|
|
2720
|
-
// node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2720
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2721
2721
|
var require_int2 = __commonJS(function(exports) {
|
|
2722
2722
|
var stringifyNumber = require_stringifyNumber();
|
|
2723
2723
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2793,7 +2793,7 @@ var require_int2 = __commonJS(function(exports) {
|
|
|
2793
2793
|
exports.intOct = intOct;
|
|
2794
2794
|
});
|
|
2795
2795
|
|
|
2796
|
-
// node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2796
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2797
2797
|
var require_set = __commonJS(function(exports) {
|
|
2798
2798
|
var identity = require_identity();
|
|
2799
2799
|
var Pair = require_Pair();
|
|
@@ -2876,7 +2876,7 @@ var require_set = __commonJS(function(exports) {
|
|
|
2876
2876
|
exports.set = set;
|
|
2877
2877
|
});
|
|
2878
2878
|
|
|
2879
|
-
// node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2879
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2880
2880
|
var require_timestamp = __commonJS(function(exports) {
|
|
2881
2881
|
var stringifyNumber = require_stringifyNumber();
|
|
2882
2882
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -2958,7 +2958,7 @@ var require_timestamp = __commonJS(function(exports) {
|
|
|
2958
2958
|
exports.timestamp = timestamp;
|
|
2959
2959
|
});
|
|
2960
2960
|
|
|
2961
|
-
// node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
2961
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
2962
2962
|
var require_schema3 = __commonJS(function(exports) {
|
|
2963
2963
|
var map = require_map();
|
|
2964
2964
|
var _null = require_null();
|
|
@@ -2999,7 +2999,7 @@ var require_schema3 = __commonJS(function(exports) {
|
|
|
2999
2999
|
exports.schema = schema;
|
|
3000
3000
|
});
|
|
3001
3001
|
|
|
3002
|
-
// node_modules/yaml/dist/schema/tags.js
|
|
3002
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js
|
|
3003
3003
|
var require_tags = __commonJS(function(exports) {
|
|
3004
3004
|
var map = require_map();
|
|
3005
3005
|
var _null = require_null();
|
|
@@ -3090,7 +3090,7 @@ var require_tags = __commonJS(function(exports) {
|
|
|
3090
3090
|
exports.getTags = getTags;
|
|
3091
3091
|
});
|
|
3092
3092
|
|
|
3093
|
-
// node_modules/yaml/dist/schema/Schema.js
|
|
3093
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js
|
|
3094
3094
|
var require_Schema = __commonJS(function(exports) {
|
|
3095
3095
|
var identity = require_identity();
|
|
3096
3096
|
var map = require_map();
|
|
@@ -3120,7 +3120,7 @@ var require_Schema = __commonJS(function(exports) {
|
|
|
3120
3120
|
exports.Schema = Schema;
|
|
3121
3121
|
});
|
|
3122
3122
|
|
|
3123
|
-
// node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3123
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3124
3124
|
var require_stringifyDocument = __commonJS(function(exports) {
|
|
3125
3125
|
var identity = require_identity();
|
|
3126
3126
|
var stringify = require_stringify();
|
|
@@ -3200,7 +3200,7 @@ var require_stringifyDocument = __commonJS(function(exports) {
|
|
|
3200
3200
|
exports.stringifyDocument = stringifyDocument;
|
|
3201
3201
|
});
|
|
3202
3202
|
|
|
3203
|
-
// node_modules/yaml/dist/doc/Document.js
|
|
3203
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js
|
|
3204
3204
|
var require_Document = __commonJS(function(exports) {
|
|
3205
3205
|
var Alias = require_Alias();
|
|
3206
3206
|
var Collection = require_Collection();
|
|
@@ -3435,7 +3435,7 @@ var require_Document = __commonJS(function(exports) {
|
|
|
3435
3435
|
exports.Document = Document;
|
|
3436
3436
|
});
|
|
3437
3437
|
|
|
3438
|
-
// node_modules/yaml/dist/errors.js
|
|
3438
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/errors.js
|
|
3439
3439
|
var require_errors = __commonJS(function(exports) {
|
|
3440
3440
|
class YAMLError extends Error {
|
|
3441
3441
|
constructor(name, pos, code, message) {
|
|
@@ -3500,7 +3500,7 @@ ${pointer}
|
|
|
3500
3500
|
exports.prettifyError = prettifyError;
|
|
3501
3501
|
});
|
|
3502
3502
|
|
|
3503
|
-
// node_modules/yaml/dist/compose/resolve-props.js
|
|
3503
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js
|
|
3504
3504
|
var require_resolve_props = __commonJS(function(exports) {
|
|
3505
3505
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3506
3506
|
let spaceBefore = false;
|
|
@@ -3630,7 +3630,7 @@ var require_resolve_props = __commonJS(function(exports) {
|
|
|
3630
3630
|
exports.resolveProps = resolveProps;
|
|
3631
3631
|
});
|
|
3632
3632
|
|
|
3633
|
-
// node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3633
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3634
3634
|
var require_util_contains_newline = __commonJS(function(exports) {
|
|
3635
3635
|
function containsNewline(key) {
|
|
3636
3636
|
if (!key)
|
|
@@ -3670,7 +3670,7 @@ var require_util_contains_newline = __commonJS(function(exports) {
|
|
|
3670
3670
|
exports.containsNewline = containsNewline;
|
|
3671
3671
|
});
|
|
3672
3672
|
|
|
3673
|
-
// node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3673
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3674
3674
|
var require_util_flow_indent_check = __commonJS(function(exports) {
|
|
3675
3675
|
var utilContainsNewline = require_util_contains_newline();
|
|
3676
3676
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3685,7 +3685,7 @@ var require_util_flow_indent_check = __commonJS(function(exports) {
|
|
|
3685
3685
|
exports.flowIndentCheck = flowIndentCheck;
|
|
3686
3686
|
});
|
|
3687
3687
|
|
|
3688
|
-
// node_modules/yaml/dist/compose/util-map-includes.js
|
|
3688
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3689
3689
|
var require_util_map_includes = __commonJS(function(exports) {
|
|
3690
3690
|
var identity = require_identity();
|
|
3691
3691
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3698,7 +3698,7 @@ var require_util_map_includes = __commonJS(function(exports) {
|
|
|
3698
3698
|
exports.mapIncludes = mapIncludes;
|
|
3699
3699
|
});
|
|
3700
3700
|
|
|
3701
|
-
// node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3701
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3702
3702
|
var require_resolve_block_map = __commonJS(function(exports) {
|
|
3703
3703
|
var Pair = require_Pair();
|
|
3704
3704
|
var YAMLMap = require_YAMLMap();
|
|
@@ -3805,7 +3805,7 @@ var require_resolve_block_map = __commonJS(function(exports) {
|
|
|
3805
3805
|
exports.resolveBlockMap = resolveBlockMap;
|
|
3806
3806
|
});
|
|
3807
3807
|
|
|
3808
|
-
// node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3808
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3809
3809
|
var require_resolve_block_seq = __commonJS(function(exports) {
|
|
3810
3810
|
var YAMLSeq = require_YAMLSeq();
|
|
3811
3811
|
var resolveProps = require_resolve_props();
|
|
@@ -3853,7 +3853,7 @@ var require_resolve_block_seq = __commonJS(function(exports) {
|
|
|
3853
3853
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
3854
3854
|
});
|
|
3855
3855
|
|
|
3856
|
-
// node_modules/yaml/dist/compose/resolve-end.js
|
|
3856
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js
|
|
3857
3857
|
var require_resolve_end = __commonJS(function(exports) {
|
|
3858
3858
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
3859
3859
|
let comment = "";
|
|
@@ -3893,7 +3893,7 @@ var require_resolve_end = __commonJS(function(exports) {
|
|
|
3893
3893
|
exports.resolveEnd = resolveEnd;
|
|
3894
3894
|
});
|
|
3895
3895
|
|
|
3896
|
-
// node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
3896
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
3897
3897
|
var require_resolve_flow_collection = __commonJS(function(exports) {
|
|
3898
3898
|
var identity = require_identity();
|
|
3899
3899
|
var Pair = require_Pair();
|
|
@@ -4084,7 +4084,7 @@ var require_resolve_flow_collection = __commonJS(function(exports) {
|
|
|
4084
4084
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
4085
4085
|
});
|
|
4086
4086
|
|
|
4087
|
-
// node_modules/yaml/dist/compose/compose-collection.js
|
|
4087
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js
|
|
4088
4088
|
var require_compose_collection = __commonJS(function(exports) {
|
|
4089
4089
|
var identity = require_identity();
|
|
4090
4090
|
var Scalar = require_Scalar();
|
|
@@ -4146,7 +4146,7 @@ var require_compose_collection = __commonJS(function(exports) {
|
|
|
4146
4146
|
exports.composeCollection = composeCollection;
|
|
4147
4147
|
});
|
|
4148
4148
|
|
|
4149
|
-
// node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4149
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4150
4150
|
var require_resolve_block_scalar = __commonJS(function(exports) {
|
|
4151
4151
|
var Scalar = require_Scalar();
|
|
4152
4152
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4339,7 +4339,7 @@ var require_resolve_block_scalar = __commonJS(function(exports) {
|
|
|
4339
4339
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
4340
4340
|
});
|
|
4341
4341
|
|
|
4342
|
-
// node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4342
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4343
4343
|
var require_resolve_flow_scalar = __commonJS(function(exports) {
|
|
4344
4344
|
var Scalar = require_Scalar();
|
|
4345
4345
|
var resolveEnd = require_resolve_end();
|
|
@@ -4555,7 +4555,7 @@ var require_resolve_flow_scalar = __commonJS(function(exports) {
|
|
|
4555
4555
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
4556
4556
|
});
|
|
4557
4557
|
|
|
4558
|
-
// node_modules/yaml/dist/compose/compose-scalar.js
|
|
4558
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4559
4559
|
var require_compose_scalar = __commonJS(function(exports) {
|
|
4560
4560
|
var identity = require_identity();
|
|
4561
4561
|
var Scalar = require_Scalar();
|
|
@@ -4633,7 +4633,7 @@ var require_compose_scalar = __commonJS(function(exports) {
|
|
|
4633
4633
|
exports.composeScalar = composeScalar;
|
|
4634
4634
|
});
|
|
4635
4635
|
|
|
4636
|
-
// node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4636
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4637
4637
|
var require_util_empty_scalar_position = __commonJS(function(exports) {
|
|
4638
4638
|
function emptyScalarPosition(offset, before, pos) {
|
|
4639
4639
|
if (before) {
|
|
@@ -4660,7 +4660,7 @@ var require_util_empty_scalar_position = __commonJS(function(exports) {
|
|
|
4660
4660
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
4661
4661
|
});
|
|
4662
4662
|
|
|
4663
|
-
// node_modules/yaml/dist/compose/compose-node.js
|
|
4663
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js
|
|
4664
4664
|
var require_compose_node = __commonJS(function(exports) {
|
|
4665
4665
|
var Alias = require_Alias();
|
|
4666
4666
|
var identity = require_identity();
|
|
@@ -4763,7 +4763,7 @@ var require_compose_node = __commonJS(function(exports) {
|
|
|
4763
4763
|
exports.composeNode = composeNode;
|
|
4764
4764
|
});
|
|
4765
4765
|
|
|
4766
|
-
// node_modules/yaml/dist/compose/compose-doc.js
|
|
4766
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js
|
|
4767
4767
|
var require_compose_doc = __commonJS(function(exports) {
|
|
4768
4768
|
var Document = require_Document();
|
|
4769
4769
|
var composeNode = require_compose_node();
|
|
@@ -4803,7 +4803,7 @@ var require_compose_doc = __commonJS(function(exports) {
|
|
|
4803
4803
|
exports.composeDoc = composeDoc;
|
|
4804
4804
|
});
|
|
4805
4805
|
|
|
4806
|
-
// node_modules/yaml/dist/compose/composer.js
|
|
4806
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js
|
|
4807
4807
|
var require_composer = __commonJS(function(exports) {
|
|
4808
4808
|
var node_process = __require("process");
|
|
4809
4809
|
var directives = require_directives();
|
|
@@ -4994,7 +4994,7 @@ ${end.comment}` : end.comment;
|
|
|
4994
4994
|
exports.Composer = Composer;
|
|
4995
4995
|
});
|
|
4996
4996
|
|
|
4997
|
-
// node_modules/yaml/dist/parse/cst-scalar.js
|
|
4997
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js
|
|
4998
4998
|
var require_cst_scalar = __commonJS(function(exports) {
|
|
4999
4999
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5000
5000
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5184,7 +5184,7 @@ var require_cst_scalar = __commonJS(function(exports) {
|
|
|
5184
5184
|
exports.setScalarValue = setScalarValue;
|
|
5185
5185
|
});
|
|
5186
5186
|
|
|
5187
|
-
// node_modules/yaml/dist/parse/cst-stringify.js
|
|
5187
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5188
5188
|
var require_cst_stringify = __commonJS(function(exports) {
|
|
5189
5189
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5190
5190
|
function stringifyToken(token) {
|
|
@@ -5242,7 +5242,7 @@ var require_cst_stringify = __commonJS(function(exports) {
|
|
|
5242
5242
|
exports.stringify = stringify;
|
|
5243
5243
|
});
|
|
5244
5244
|
|
|
5245
|
-
// node_modules/yaml/dist/parse/cst-visit.js
|
|
5245
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js
|
|
5246
5246
|
var require_cst_visit = __commonJS(function(exports) {
|
|
5247
5247
|
var BREAK = Symbol("break visit");
|
|
5248
5248
|
var SKIP = Symbol("skip children");
|
|
@@ -5301,7 +5301,7 @@ var require_cst_visit = __commonJS(function(exports) {
|
|
|
5301
5301
|
exports.visit = visit;
|
|
5302
5302
|
});
|
|
5303
5303
|
|
|
5304
|
-
// node_modules/yaml/dist/parse/cst.js
|
|
5304
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js
|
|
5305
5305
|
var require_cst = __commonJS(function(exports) {
|
|
5306
5306
|
var cstScalar = require_cst_scalar();
|
|
5307
5307
|
var cstStringify = require_cst_stringify();
|
|
@@ -5402,7 +5402,7 @@ var require_cst = __commonJS(function(exports) {
|
|
|
5402
5402
|
exports.tokenType = tokenType;
|
|
5403
5403
|
});
|
|
5404
5404
|
|
|
5405
|
-
// node_modules/yaml/dist/parse/lexer.js
|
|
5405
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js
|
|
5406
5406
|
var require_lexer = __commonJS(function(exports) {
|
|
5407
5407
|
var cst = require_cst();
|
|
5408
5408
|
function isEmpty(ch) {
|
|
@@ -5999,7 +5999,7 @@ var require_lexer = __commonJS(function(exports) {
|
|
|
5999
5999
|
exports.Lexer = Lexer;
|
|
6000
6000
|
});
|
|
6001
6001
|
|
|
6002
|
-
// node_modules/yaml/dist/parse/line-counter.js
|
|
6002
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js
|
|
6003
6003
|
var require_line_counter = __commonJS(function(exports) {
|
|
6004
6004
|
class LineCounter {
|
|
6005
6005
|
constructor() {
|
|
@@ -6027,7 +6027,7 @@ var require_line_counter = __commonJS(function(exports) {
|
|
|
6027
6027
|
exports.LineCounter = LineCounter;
|
|
6028
6028
|
});
|
|
6029
6029
|
|
|
6030
|
-
// node_modules/yaml/dist/parse/parser.js
|
|
6030
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js
|
|
6031
6031
|
var require_parser = __commonJS(function(exports) {
|
|
6032
6032
|
var node_process = __require("process");
|
|
6033
6033
|
var cst = require_cst();
|
|
@@ -6883,7 +6883,7 @@ var require_parser = __commonJS(function(exports) {
|
|
|
6883
6883
|
exports.Parser = Parser;
|
|
6884
6884
|
});
|
|
6885
6885
|
|
|
6886
|
-
// node_modules/yaml/dist/public-api.js
|
|
6886
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/public-api.js
|
|
6887
6887
|
var require_public_api = __commonJS(function(exports) {
|
|
6888
6888
|
var composer = require_composer();
|
|
6889
6889
|
var Document = require_Document();
|
|
@@ -6977,7 +6977,7 @@ var require_public_api = __commonJS(function(exports) {
|
|
|
6977
6977
|
exports.stringify = stringify;
|
|
6978
6978
|
});
|
|
6979
6979
|
|
|
6980
|
-
// node_modules/ajv/dist/compile/codegen/code.js
|
|
6980
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
6981
6981
|
var require_code = __commonJS(function(exports) {
|
|
6982
6982
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6983
6983
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
|
|
@@ -7131,7 +7131,7 @@ var require_code = __commonJS(function(exports) {
|
|
|
7131
7131
|
exports.regexpCode = regexpCode;
|
|
7132
7132
|
});
|
|
7133
7133
|
|
|
7134
|
-
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
7134
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
7135
7135
|
var require_scope = __commonJS(function(exports) {
|
|
7136
7136
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7137
7137
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
@@ -7277,7 +7277,7 @@ var require_scope = __commonJS(function(exports) {
|
|
|
7277
7277
|
exports.ValueScope = ValueScope;
|
|
7278
7278
|
});
|
|
7279
7279
|
|
|
7280
|
-
// node_modules/ajv/dist/compile/codegen/index.js
|
|
7280
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
7281
7281
|
var require_codegen = __commonJS(function(exports) {
|
|
7282
7282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7283
7283
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
|
|
@@ -7987,7 +7987,7 @@ var require_codegen = __commonJS(function(exports) {
|
|
|
7987
7987
|
}
|
|
7988
7988
|
});
|
|
7989
7989
|
|
|
7990
|
-
// node_modules/ajv/dist/compile/util.js
|
|
7990
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
7991
7991
|
var require_util = __commonJS(function(exports) {
|
|
7992
7992
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7993
7993
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
|
|
@@ -8151,7 +8151,7 @@ var require_util = __commonJS(function(exports) {
|
|
|
8151
8151
|
exports.checkStrictMode = checkStrictMode;
|
|
8152
8152
|
});
|
|
8153
8153
|
|
|
8154
|
-
// node_modules/ajv/dist/compile/names.js
|
|
8154
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
8155
8155
|
var require_names = __commonJS(function(exports) {
|
|
8156
8156
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8157
8157
|
var codegen_1 = require_codegen();
|
|
@@ -8176,7 +8176,7 @@ var require_names = __commonJS(function(exports) {
|
|
|
8176
8176
|
exports.default = names;
|
|
8177
8177
|
});
|
|
8178
8178
|
|
|
8179
|
-
// node_modules/ajv/dist/compile/errors.js
|
|
8179
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
8180
8180
|
var require_errors2 = __commonJS(function(exports) {
|
|
8181
8181
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8182
8182
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
@@ -8294,7 +8294,7 @@ var require_errors2 = __commonJS(function(exports) {
|
|
|
8294
8294
|
}
|
|
8295
8295
|
});
|
|
8296
8296
|
|
|
8297
|
-
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
8297
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
8298
8298
|
var require_boolSchema = __commonJS(function(exports) {
|
|
8299
8299
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8300
8300
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
@@ -8342,7 +8342,7 @@ var require_boolSchema = __commonJS(function(exports) {
|
|
|
8342
8342
|
}
|
|
8343
8343
|
});
|
|
8344
8344
|
|
|
8345
|
-
// node_modules/ajv/dist/compile/rules.js
|
|
8345
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
8346
8346
|
var require_rules = __commonJS(function(exports) {
|
|
8347
8347
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8348
8348
|
exports.getRules = exports.isJSONType = undefined;
|
|
@@ -8370,7 +8370,7 @@ var require_rules = __commonJS(function(exports) {
|
|
|
8370
8370
|
exports.getRules = getRules;
|
|
8371
8371
|
});
|
|
8372
8372
|
|
|
8373
|
-
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
8373
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
8374
8374
|
var require_applicability = __commonJS(function(exports) {
|
|
8375
8375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8376
8376
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
@@ -8390,7 +8390,7 @@ var require_applicability = __commonJS(function(exports) {
|
|
|
8390
8390
|
exports.shouldUseRule = shouldUseRule;
|
|
8391
8391
|
});
|
|
8392
8392
|
|
|
8393
|
-
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
8393
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
8394
8394
|
var require_dataType = __commonJS(function(exports) {
|
|
8395
8395
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8396
8396
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
@@ -8571,7 +8571,7 @@ var require_dataType = __commonJS(function(exports) {
|
|
|
8571
8571
|
}
|
|
8572
8572
|
});
|
|
8573
8573
|
|
|
8574
|
-
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
8574
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
8575
8575
|
var require_defaults = __commonJS(function(exports) {
|
|
8576
8576
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8577
8577
|
exports.assignDefaults = undefined;
|
|
@@ -8605,7 +8605,7 @@ var require_defaults = __commonJS(function(exports) {
|
|
|
8605
8605
|
}
|
|
8606
8606
|
});
|
|
8607
8607
|
|
|
8608
|
-
// node_modules/ajv/dist/vocabularies/code.js
|
|
8608
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
8609
8609
|
var require_code2 = __commonJS(function(exports) {
|
|
8610
8610
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8611
8611
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
|
|
@@ -8734,7 +8734,7 @@ var require_code2 = __commonJS(function(exports) {
|
|
|
8734
8734
|
exports.validateUnion = validateUnion;
|
|
8735
8735
|
});
|
|
8736
8736
|
|
|
8737
|
-
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
8737
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
8738
8738
|
var require_keyword = __commonJS(function(exports) {
|
|
8739
8739
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8740
8740
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
@@ -8849,7 +8849,7 @@ var require_keyword = __commonJS(function(exports) {
|
|
|
8849
8849
|
exports.validateKeywordUsage = validateKeywordUsage;
|
|
8850
8850
|
});
|
|
8851
8851
|
|
|
8852
|
-
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
8852
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
8853
8853
|
var require_subschema = __commonJS(function(exports) {
|
|
8854
8854
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8855
8855
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
@@ -8929,7 +8929,7 @@ var require_subschema = __commonJS(function(exports) {
|
|
|
8929
8929
|
exports.extendSubschemaMode = extendSubschemaMode;
|
|
8930
8930
|
});
|
|
8931
8931
|
|
|
8932
|
-
// node_modules/fast-deep-equal/index.js
|
|
8932
|
+
// node_modules/.bun/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
8933
8933
|
var require_fast_deep_equal = __commonJS(function(exports, module) {
|
|
8934
8934
|
module.exports = function equal(a, b) {
|
|
8935
8935
|
if (a === b)
|
|
@@ -8971,7 +8971,7 @@ var require_fast_deep_equal = __commonJS(function(exports, module) {
|
|
|
8971
8971
|
};
|
|
8972
8972
|
});
|
|
8973
8973
|
|
|
8974
|
-
// node_modules/json-schema-traverse/index.js
|
|
8974
|
+
// node_modules/.bun/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
8975
8975
|
var require_json_schema_traverse = __commonJS(function(exports, module) {
|
|
8976
8976
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
8977
8977
|
if (typeof opts == "function") {
|
|
@@ -9054,7 +9054,7 @@ var require_json_schema_traverse = __commonJS(function(exports, module) {
|
|
|
9054
9054
|
}
|
|
9055
9055
|
});
|
|
9056
9056
|
|
|
9057
|
-
// node_modules/ajv/dist/compile/resolve.js
|
|
9057
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
9058
9058
|
var require_resolve = __commonJS(function(exports) {
|
|
9059
9059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9060
9060
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
@@ -9207,7 +9207,7 @@ var require_resolve = __commonJS(function(exports) {
|
|
|
9207
9207
|
exports.getSchemaRefs = getSchemaRefs;
|
|
9208
9208
|
});
|
|
9209
9209
|
|
|
9210
|
-
// node_modules/ajv/dist/compile/validate/index.js
|
|
9210
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
9211
9211
|
var require_validate = __commonJS(function(exports) {
|
|
9212
9212
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9213
9213
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
@@ -9712,7 +9712,7 @@ var require_validate = __commonJS(function(exports) {
|
|
|
9712
9712
|
exports.getData = getData;
|
|
9713
9713
|
});
|
|
9714
9714
|
|
|
9715
|
-
// node_modules/ajv/dist/runtime/validation_error.js
|
|
9715
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
9716
9716
|
var require_validation_error = __commonJS(function(exports) {
|
|
9717
9717
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9718
9718
|
|
|
@@ -9726,7 +9726,7 @@ var require_validation_error = __commonJS(function(exports) {
|
|
|
9726
9726
|
exports.default = ValidationError;
|
|
9727
9727
|
});
|
|
9728
9728
|
|
|
9729
|
-
// node_modules/ajv/dist/compile/ref_error.js
|
|
9729
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
9730
9730
|
var require_ref_error = __commonJS(function(exports) {
|
|
9731
9731
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9732
9732
|
var resolve_1 = require_resolve();
|
|
@@ -9741,7 +9741,7 @@ var require_ref_error = __commonJS(function(exports) {
|
|
|
9741
9741
|
exports.default = MissingRefError;
|
|
9742
9742
|
});
|
|
9743
9743
|
|
|
9744
|
-
// node_modules/ajv/dist/compile/index.js
|
|
9744
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
9745
9745
|
var require_compile = __commonJS(function(exports) {
|
|
9746
9746
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9747
9747
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
@@ -9962,7 +9962,7 @@ var require_compile = __commonJS(function(exports) {
|
|
|
9962
9962
|
}
|
|
9963
9963
|
});
|
|
9964
9964
|
|
|
9965
|
-
// node_modules/ajv/dist/refs/data.json
|
|
9965
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
9966
9966
|
var require_data = __commonJS(function(exports, module) {
|
|
9967
9967
|
module.exports = {
|
|
9968
9968
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -9979,7 +9979,7 @@ var require_data = __commonJS(function(exports, module) {
|
|
|
9979
9979
|
};
|
|
9980
9980
|
});
|
|
9981
9981
|
|
|
9982
|
-
// node_modules/fast-uri/lib/utils.js
|
|
9982
|
+
// node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/lib/utils.js
|
|
9983
9983
|
var require_utils = __commonJS(function(exports, module) {
|
|
9984
9984
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
9985
9985
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -10528,7 +10528,7 @@ var require_utils = __commonJS(function(exports, module) {
|
|
|
10528
10528
|
};
|
|
10529
10529
|
});
|
|
10530
10530
|
|
|
10531
|
-
// node_modules/fast-uri/lib/schemes.js
|
|
10531
|
+
// node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/lib/schemes.js
|
|
10532
10532
|
var require_schemes = __commonJS(function(exports, module) {
|
|
10533
10533
|
var { isUUID } = require_utils();
|
|
10534
10534
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -10703,7 +10703,7 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
10703
10703
|
};
|
|
10704
10704
|
});
|
|
10705
10705
|
|
|
10706
|
-
// node_modules/fast-uri/index.js
|
|
10706
|
+
// node_modules/.bun/fast-uri@3.1.9/node_modules/fast-uri/index.js
|
|
10707
10707
|
var require_fast_uri = __commonJS(function(exports, module) {
|
|
10708
10708
|
var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
10709
10709
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -11128,7 +11128,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
11128
11128
|
module.exports.fastUri = fastUri;
|
|
11129
11129
|
});
|
|
11130
11130
|
|
|
11131
|
-
// node_modules/ajv/dist/runtime/uri.js
|
|
11131
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
11132
11132
|
var require_uri = __commonJS(function(exports) {
|
|
11133
11133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11134
11134
|
var uri = require_fast_uri();
|
|
@@ -11136,7 +11136,7 @@ var require_uri = __commonJS(function(exports) {
|
|
|
11136
11136
|
exports.default = uri;
|
|
11137
11137
|
});
|
|
11138
11138
|
|
|
11139
|
-
// node_modules/ajv/dist/core.js
|
|
11139
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
11140
11140
|
var require_core = __commonJS(function(exports) {
|
|
11141
11141
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11142
11142
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
@@ -11729,7 +11729,7 @@ var require_core = __commonJS(function(exports) {
|
|
|
11729
11729
|
}
|
|
11730
11730
|
});
|
|
11731
11731
|
|
|
11732
|
-
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
11732
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
11733
11733
|
var require_id = __commonJS(function(exports) {
|
|
11734
11734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11735
11735
|
var def = {
|
|
@@ -11741,7 +11741,7 @@ var require_id = __commonJS(function(exports) {
|
|
|
11741
11741
|
exports.default = def;
|
|
11742
11742
|
});
|
|
11743
11743
|
|
|
11744
|
-
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
11744
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
11745
11745
|
var require_ref = __commonJS(function(exports) {
|
|
11746
11746
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11747
11747
|
exports.callRef = exports.getValidate = undefined;
|
|
@@ -11860,7 +11860,7 @@ var require_ref = __commonJS(function(exports) {
|
|
|
11860
11860
|
exports.default = def;
|
|
11861
11861
|
});
|
|
11862
11862
|
|
|
11863
|
-
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
11863
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
11864
11864
|
var require_core2 = __commonJS(function(exports) {
|
|
11865
11865
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11866
11866
|
var id_1 = require_id();
|
|
@@ -11878,7 +11878,7 @@ var require_core2 = __commonJS(function(exports) {
|
|
|
11878
11878
|
exports.default = core;
|
|
11879
11879
|
});
|
|
11880
11880
|
|
|
11881
|
-
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
11881
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
11882
11882
|
var require_limitNumber = __commonJS(function(exports) {
|
|
11883
11883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11884
11884
|
var codegen_1 = require_codegen();
|
|
@@ -11907,7 +11907,7 @@ var require_limitNumber = __commonJS(function(exports) {
|
|
|
11907
11907
|
exports.default = def;
|
|
11908
11908
|
});
|
|
11909
11909
|
|
|
11910
|
-
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
11910
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
11911
11911
|
var require_multipleOf = __commonJS(function(exports) {
|
|
11912
11912
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11913
11913
|
var codegen_1 = require_codegen();
|
|
@@ -11932,7 +11932,7 @@ var require_multipleOf = __commonJS(function(exports) {
|
|
|
11932
11932
|
exports.default = def;
|
|
11933
11933
|
});
|
|
11934
11934
|
|
|
11935
|
-
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
11935
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
11936
11936
|
var require_ucs2length = __commonJS(function(exports) {
|
|
11937
11937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11938
11938
|
function ucs2length(str) {
|
|
@@ -11955,7 +11955,7 @@ var require_ucs2length = __commonJS(function(exports) {
|
|
|
11955
11955
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
11956
11956
|
});
|
|
11957
11957
|
|
|
11958
|
-
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
11958
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
11959
11959
|
var require_limitLength = __commonJS(function(exports) {
|
|
11960
11960
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11961
11961
|
var codegen_1 = require_codegen();
|
|
@@ -11984,7 +11984,7 @@ var require_limitLength = __commonJS(function(exports) {
|
|
|
11984
11984
|
exports.default = def;
|
|
11985
11985
|
});
|
|
11986
11986
|
|
|
11987
|
-
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
11987
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
11988
11988
|
var require_pattern = __commonJS(function(exports) {
|
|
11989
11989
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11990
11990
|
var code_1 = require_code2();
|
|
@@ -12018,7 +12018,7 @@ var require_pattern = __commonJS(function(exports) {
|
|
|
12018
12018
|
exports.default = def;
|
|
12019
12019
|
});
|
|
12020
12020
|
|
|
12021
|
-
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
12021
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
12022
12022
|
var require_limitProperties = __commonJS(function(exports) {
|
|
12023
12023
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12024
12024
|
var codegen_1 = require_codegen();
|
|
@@ -12044,7 +12044,7 @@ var require_limitProperties = __commonJS(function(exports) {
|
|
|
12044
12044
|
exports.default = def;
|
|
12045
12045
|
});
|
|
12046
12046
|
|
|
12047
|
-
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
12047
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
12048
12048
|
var require_required = __commonJS(function(exports) {
|
|
12049
12049
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12050
12050
|
var code_1 = require_code2();
|
|
@@ -12123,7 +12123,7 @@ var require_required = __commonJS(function(exports) {
|
|
|
12123
12123
|
exports.default = def;
|
|
12124
12124
|
});
|
|
12125
12125
|
|
|
12126
|
-
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
12126
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
12127
12127
|
var require_limitItems = __commonJS(function(exports) {
|
|
12128
12128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12129
12129
|
var codegen_1 = require_codegen();
|
|
@@ -12149,7 +12149,7 @@ var require_limitItems = __commonJS(function(exports) {
|
|
|
12149
12149
|
exports.default = def;
|
|
12150
12150
|
});
|
|
12151
12151
|
|
|
12152
|
-
// node_modules/ajv/dist/runtime/equal.js
|
|
12152
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
12153
12153
|
var require_equal = __commonJS(function(exports) {
|
|
12154
12154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12155
12155
|
var equal = require_fast_deep_equal();
|
|
@@ -12157,7 +12157,7 @@ var require_equal = __commonJS(function(exports) {
|
|
|
12157
12157
|
exports.default = equal;
|
|
12158
12158
|
});
|
|
12159
12159
|
|
|
12160
|
-
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
12160
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
12161
12161
|
var require_uniqueItems = __commonJS(function(exports) {
|
|
12162
12162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12163
12163
|
var dataType_1 = require_dataType();
|
|
@@ -12221,7 +12221,7 @@ var require_uniqueItems = __commonJS(function(exports) {
|
|
|
12221
12221
|
exports.default = def;
|
|
12222
12222
|
});
|
|
12223
12223
|
|
|
12224
|
-
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
12224
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
12225
12225
|
var require_const = __commonJS(function(exports) {
|
|
12226
12226
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12227
12227
|
var codegen_1 = require_codegen();
|
|
@@ -12247,7 +12247,7 @@ var require_const = __commonJS(function(exports) {
|
|
|
12247
12247
|
exports.default = def;
|
|
12248
12248
|
});
|
|
12249
12249
|
|
|
12250
|
-
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
12250
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
12251
12251
|
var require_enum = __commonJS(function(exports) {
|
|
12252
12252
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12253
12253
|
var codegen_1 = require_codegen();
|
|
@@ -12293,7 +12293,7 @@ var require_enum = __commonJS(function(exports) {
|
|
|
12293
12293
|
exports.default = def;
|
|
12294
12294
|
});
|
|
12295
12295
|
|
|
12296
|
-
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
12296
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
12297
12297
|
var require_validation = __commonJS(function(exports) {
|
|
12298
12298
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12299
12299
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -12323,7 +12323,7 @@ var require_validation = __commonJS(function(exports) {
|
|
|
12323
12323
|
exports.default = validation;
|
|
12324
12324
|
});
|
|
12325
12325
|
|
|
12326
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
12326
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
12327
12327
|
var require_additionalItems = __commonJS(function(exports) {
|
|
12328
12328
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12329
12329
|
exports.validateAdditionalItems = undefined;
|
|
@@ -12373,7 +12373,7 @@ var require_additionalItems = __commonJS(function(exports) {
|
|
|
12373
12373
|
exports.default = def;
|
|
12374
12374
|
});
|
|
12375
12375
|
|
|
12376
|
-
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
12376
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
12377
12377
|
var require_items = __commonJS(function(exports) {
|
|
12378
12378
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12379
12379
|
exports.validateTuple = undefined;
|
|
@@ -12427,7 +12427,7 @@ var require_items = __commonJS(function(exports) {
|
|
|
12427
12427
|
exports.default = def;
|
|
12428
12428
|
});
|
|
12429
12429
|
|
|
12430
|
-
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
12430
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
12431
12431
|
var require_prefixItems = __commonJS(function(exports) {
|
|
12432
12432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12433
12433
|
var items_1 = require_items();
|
|
@@ -12441,7 +12441,7 @@ var require_prefixItems = __commonJS(function(exports) {
|
|
|
12441
12441
|
exports.default = def;
|
|
12442
12442
|
});
|
|
12443
12443
|
|
|
12444
|
-
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
12444
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
12445
12445
|
var require_items2020 = __commonJS(function(exports) {
|
|
12446
12446
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12447
12447
|
var codegen_1 = require_codegen();
|
|
@@ -12473,7 +12473,7 @@ var require_items2020 = __commonJS(function(exports) {
|
|
|
12473
12473
|
exports.default = def;
|
|
12474
12474
|
});
|
|
12475
12475
|
|
|
12476
|
-
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
12476
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
12477
12477
|
var require_contains = __commonJS(function(exports) {
|
|
12478
12478
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12479
12479
|
var codegen_1 = require_codegen();
|
|
@@ -12564,7 +12564,7 @@ var require_contains = __commonJS(function(exports) {
|
|
|
12564
12564
|
exports.default = def;
|
|
12565
12565
|
});
|
|
12566
12566
|
|
|
12567
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
12567
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
12568
12568
|
var require_dependencies = __commonJS(function(exports) {
|
|
12569
12569
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12570
12570
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
@@ -12649,7 +12649,7 @@ var require_dependencies = __commonJS(function(exports) {
|
|
|
12649
12649
|
exports.default = def;
|
|
12650
12650
|
});
|
|
12651
12651
|
|
|
12652
|
-
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
12652
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
12653
12653
|
var require_propertyNames = __commonJS(function(exports) {
|
|
12654
12654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12655
12655
|
var codegen_1 = require_codegen();
|
|
@@ -12689,7 +12689,7 @@ var require_propertyNames = __commonJS(function(exports) {
|
|
|
12689
12689
|
exports.default = def;
|
|
12690
12690
|
});
|
|
12691
12691
|
|
|
12692
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
12692
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
12693
12693
|
var require_additionalProperties = __commonJS(function(exports) {
|
|
12694
12694
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12695
12695
|
var code_1 = require_code2();
|
|
@@ -12792,7 +12792,7 @@ var require_additionalProperties = __commonJS(function(exports) {
|
|
|
12792
12792
|
exports.default = def;
|
|
12793
12793
|
});
|
|
12794
12794
|
|
|
12795
|
-
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
12795
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
12796
12796
|
var require_properties = __commonJS(function(exports) {
|
|
12797
12797
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12798
12798
|
var validate_1 = require_validate();
|
|
@@ -12847,7 +12847,7 @@ var require_properties = __commonJS(function(exports) {
|
|
|
12847
12847
|
exports.default = def;
|
|
12848
12848
|
});
|
|
12849
12849
|
|
|
12850
|
-
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
12850
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
12851
12851
|
var require_patternProperties = __commonJS(function(exports) {
|
|
12852
12852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12853
12853
|
var code_1 = require_code2();
|
|
@@ -12918,7 +12918,7 @@ var require_patternProperties = __commonJS(function(exports) {
|
|
|
12918
12918
|
exports.default = def;
|
|
12919
12919
|
});
|
|
12920
12920
|
|
|
12921
|
-
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
12921
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
12922
12922
|
var require_not = __commonJS(function(exports) {
|
|
12923
12923
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12924
12924
|
var util_1 = require_util();
|
|
@@ -12946,7 +12946,7 @@ var require_not = __commonJS(function(exports) {
|
|
|
12946
12946
|
exports.default = def;
|
|
12947
12947
|
});
|
|
12948
12948
|
|
|
12949
|
-
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
12949
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
12950
12950
|
var require_anyOf = __commonJS(function(exports) {
|
|
12951
12951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12952
12952
|
var code_1 = require_code2();
|
|
@@ -12960,7 +12960,7 @@ var require_anyOf = __commonJS(function(exports) {
|
|
|
12960
12960
|
exports.default = def;
|
|
12961
12961
|
});
|
|
12962
12962
|
|
|
12963
|
-
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
12963
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
12964
12964
|
var require_oneOf = __commonJS(function(exports) {
|
|
12965
12965
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12966
12966
|
var codegen_1 = require_codegen();
|
|
@@ -13015,7 +13015,7 @@ var require_oneOf = __commonJS(function(exports) {
|
|
|
13015
13015
|
exports.default = def;
|
|
13016
13016
|
});
|
|
13017
13017
|
|
|
13018
|
-
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
13018
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
13019
13019
|
var require_allOf = __commonJS(function(exports) {
|
|
13020
13020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13021
13021
|
var util_1 = require_util();
|
|
@@ -13039,7 +13039,7 @@ var require_allOf = __commonJS(function(exports) {
|
|
|
13039
13039
|
exports.default = def;
|
|
13040
13040
|
});
|
|
13041
13041
|
|
|
13042
|
-
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
13042
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
13043
13043
|
var require_if = __commonJS(function(exports) {
|
|
13044
13044
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13045
13045
|
var codegen_1 = require_codegen();
|
|
@@ -13105,7 +13105,7 @@ var require_if = __commonJS(function(exports) {
|
|
|
13105
13105
|
exports.default = def;
|
|
13106
13106
|
});
|
|
13107
13107
|
|
|
13108
|
-
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
13108
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
13109
13109
|
var require_thenElse = __commonJS(function(exports) {
|
|
13110
13110
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13111
13111
|
var util_1 = require_util();
|
|
@@ -13120,7 +13120,7 @@ var require_thenElse = __commonJS(function(exports) {
|
|
|
13120
13120
|
exports.default = def;
|
|
13121
13121
|
});
|
|
13122
13122
|
|
|
13123
|
-
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
13123
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
13124
13124
|
var require_applicator = __commonJS(function(exports) {
|
|
13125
13125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13126
13126
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -13163,7 +13163,7 @@ var require_applicator = __commonJS(function(exports) {
|
|
|
13163
13163
|
exports.default = getApplicator;
|
|
13164
13164
|
});
|
|
13165
13165
|
|
|
13166
|
-
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
13166
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
13167
13167
|
var require_format = __commonJS(function(exports) {
|
|
13168
13168
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13169
13169
|
var codegen_1 = require_codegen();
|
|
@@ -13250,7 +13250,7 @@ var require_format = __commonJS(function(exports) {
|
|
|
13250
13250
|
exports.default = def;
|
|
13251
13251
|
});
|
|
13252
13252
|
|
|
13253
|
-
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
13253
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
13254
13254
|
var require_format2 = __commonJS(function(exports) {
|
|
13255
13255
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13256
13256
|
var format_1 = require_format();
|
|
@@ -13258,7 +13258,7 @@ var require_format2 = __commonJS(function(exports) {
|
|
|
13258
13258
|
exports.default = format;
|
|
13259
13259
|
});
|
|
13260
13260
|
|
|
13261
|
-
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
13261
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
13262
13262
|
var require_metadata = __commonJS(function(exports) {
|
|
13263
13263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13264
13264
|
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
@@ -13278,7 +13278,7 @@ var require_metadata = __commonJS(function(exports) {
|
|
|
13278
13278
|
];
|
|
13279
13279
|
});
|
|
13280
13280
|
|
|
13281
|
-
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
13281
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
13282
13282
|
var require_draft7 = __commonJS(function(exports) {
|
|
13283
13283
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13284
13284
|
var core_1 = require_core2();
|
|
@@ -13297,7 +13297,7 @@ var require_draft7 = __commonJS(function(exports) {
|
|
|
13297
13297
|
exports.default = draft7Vocabularies;
|
|
13298
13298
|
});
|
|
13299
13299
|
|
|
13300
|
-
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
13300
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
13301
13301
|
var require_types = __commonJS(function(exports) {
|
|
13302
13302
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13303
13303
|
exports.DiscrError = undefined;
|
|
@@ -13308,7 +13308,7 @@ var require_types = __commonJS(function(exports) {
|
|
|
13308
13308
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
13309
13309
|
});
|
|
13310
13310
|
|
|
13311
|
-
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
13311
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
13312
13312
|
var require_discriminator = __commonJS(function(exports) {
|
|
13313
13313
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13314
13314
|
var codegen_1 = require_codegen();
|
|
@@ -13410,7 +13410,7 @@ var require_discriminator = __commonJS(function(exports) {
|
|
|
13410
13410
|
exports.default = def;
|
|
13411
13411
|
});
|
|
13412
13412
|
|
|
13413
|
-
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
13413
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
13414
13414
|
var require_json_schema_draft_07 = __commonJS(function(exports, module) {
|
|
13415
13415
|
module.exports = {
|
|
13416
13416
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -13565,7 +13565,7 @@ var require_json_schema_draft_07 = __commonJS(function(exports, module) {
|
|
|
13565
13565
|
};
|
|
13566
13566
|
});
|
|
13567
13567
|
|
|
13568
|
-
// node_modules/ajv/dist/ajv.js
|
|
13568
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/ajv.js
|
|
13569
13569
|
var require_ajv = __commonJS(function(exports, module) {
|
|
13570
13570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13571
13571
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
@@ -13633,7 +13633,7 @@ var require_ajv = __commonJS(function(exports, module) {
|
|
|
13633
13633
|
} });
|
|
13634
13634
|
});
|
|
13635
13635
|
|
|
13636
|
-
// node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
13636
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
13637
13637
|
var require_dynamicAnchor = __commonJS(function(exports) {
|
|
13638
13638
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13639
13639
|
exports.dynamicAnchor = undefined;
|
|
@@ -13665,7 +13665,7 @@ var require_dynamicAnchor = __commonJS(function(exports) {
|
|
|
13665
13665
|
exports.default = def;
|
|
13666
13666
|
});
|
|
13667
13667
|
|
|
13668
|
-
// node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
13668
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
13669
13669
|
var require_dynamicRef = __commonJS(function(exports) {
|
|
13670
13670
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13671
13671
|
exports.dynamicRef = undefined;
|
|
@@ -13708,7 +13708,7 @@ var require_dynamicRef = __commonJS(function(exports) {
|
|
|
13708
13708
|
exports.default = def;
|
|
13709
13709
|
});
|
|
13710
13710
|
|
|
13711
|
-
// node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
13711
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
13712
13712
|
var require_recursiveAnchor = __commonJS(function(exports) {
|
|
13713
13713
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13714
13714
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -13726,7 +13726,7 @@ var require_recursiveAnchor = __commonJS(function(exports) {
|
|
|
13726
13726
|
exports.default = def;
|
|
13727
13727
|
});
|
|
13728
13728
|
|
|
13729
|
-
// node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
13729
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
13730
13730
|
var require_recursiveRef = __commonJS(function(exports) {
|
|
13731
13731
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13732
13732
|
var dynamicRef_1 = require_dynamicRef();
|
|
@@ -13738,7 +13738,7 @@ var require_recursiveRef = __commonJS(function(exports) {
|
|
|
13738
13738
|
exports.default = def;
|
|
13739
13739
|
});
|
|
13740
13740
|
|
|
13741
|
-
// node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
13741
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
13742
13742
|
var require_dynamic = __commonJS(function(exports) {
|
|
13743
13743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13744
13744
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -13749,7 +13749,7 @@ var require_dynamic = __commonJS(function(exports) {
|
|
|
13749
13749
|
exports.default = dynamic;
|
|
13750
13750
|
});
|
|
13751
13751
|
|
|
13752
|
-
// node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
13752
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
13753
13753
|
var require_dependentRequired = __commonJS(function(exports) {
|
|
13754
13754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13755
13755
|
var dependencies_1 = require_dependencies();
|
|
@@ -13763,7 +13763,7 @@ var require_dependentRequired = __commonJS(function(exports) {
|
|
|
13763
13763
|
exports.default = def;
|
|
13764
13764
|
});
|
|
13765
13765
|
|
|
13766
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
13766
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
13767
13767
|
var require_dependentSchemas = __commonJS(function(exports) {
|
|
13768
13768
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13769
13769
|
var dependencies_1 = require_dependencies();
|
|
@@ -13776,7 +13776,7 @@ var require_dependentSchemas = __commonJS(function(exports) {
|
|
|
13776
13776
|
exports.default = def;
|
|
13777
13777
|
});
|
|
13778
13778
|
|
|
13779
|
-
// node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
13779
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
13780
13780
|
var require_limitContains = __commonJS(function(exports) {
|
|
13781
13781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13782
13782
|
var util_1 = require_util();
|
|
@@ -13793,7 +13793,7 @@ var require_limitContains = __commonJS(function(exports) {
|
|
|
13793
13793
|
exports.default = def;
|
|
13794
13794
|
});
|
|
13795
13795
|
|
|
13796
|
-
// node_modules/ajv/dist/vocabularies/next.js
|
|
13796
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js
|
|
13797
13797
|
var require_next = __commonJS(function(exports) {
|
|
13798
13798
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13799
13799
|
var dependentRequired_1 = require_dependentRequired();
|
|
@@ -13803,7 +13803,7 @@ var require_next = __commonJS(function(exports) {
|
|
|
13803
13803
|
exports.default = next;
|
|
13804
13804
|
});
|
|
13805
13805
|
|
|
13806
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
13806
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
13807
13807
|
var require_unevaluatedProperties = __commonJS(function(exports) {
|
|
13808
13808
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13809
13809
|
var codegen_1 = require_codegen();
|
|
@@ -13866,7 +13866,7 @@ var require_unevaluatedProperties = __commonJS(function(exports) {
|
|
|
13866
13866
|
exports.default = def;
|
|
13867
13867
|
});
|
|
13868
13868
|
|
|
13869
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
13869
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
13870
13870
|
var require_unevaluatedItems = __commonJS(function(exports) {
|
|
13871
13871
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13872
13872
|
var codegen_1 = require_codegen();
|
|
@@ -13907,7 +13907,7 @@ var require_unevaluatedItems = __commonJS(function(exports) {
|
|
|
13907
13907
|
exports.default = def;
|
|
13908
13908
|
});
|
|
13909
13909
|
|
|
13910
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
13910
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
13911
13911
|
var require_unevaluated = __commonJS(function(exports) {
|
|
13912
13912
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13913
13913
|
var unevaluatedProperties_1 = require_unevaluatedProperties();
|
|
@@ -13916,7 +13916,7 @@ var require_unevaluated = __commonJS(function(exports) {
|
|
|
13916
13916
|
exports.default = unevaluated;
|
|
13917
13917
|
});
|
|
13918
13918
|
|
|
13919
|
-
// node_modules/ajv/dist/vocabularies/draft2020.js
|
|
13919
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js
|
|
13920
13920
|
var require_draft2020 = __commonJS(function(exports) {
|
|
13921
13921
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13922
13922
|
var core_1 = require_core2();
|
|
@@ -13941,7 +13941,7 @@ var require_draft2020 = __commonJS(function(exports) {
|
|
|
13941
13941
|
exports.default = draft2020Vocabularies;
|
|
13942
13942
|
});
|
|
13943
13943
|
|
|
13944
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
13944
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
13945
13945
|
var require_schema4 = __commonJS(function(exports, module) {
|
|
13946
13946
|
module.exports = {
|
|
13947
13947
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -13999,7 +13999,7 @@ var require_schema4 = __commonJS(function(exports, module) {
|
|
|
13999
13999
|
};
|
|
14000
14000
|
});
|
|
14001
14001
|
|
|
14002
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
14002
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
14003
14003
|
var require_applicator2 = __commonJS(function(exports, module) {
|
|
14004
14004
|
module.exports = {
|
|
14005
14005
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14050,7 +14050,7 @@ var require_applicator2 = __commonJS(function(exports, module) {
|
|
|
14050
14050
|
};
|
|
14051
14051
|
});
|
|
14052
14052
|
|
|
14053
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
14053
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
14054
14054
|
var require_unevaluated2 = __commonJS(function(exports, module) {
|
|
14055
14055
|
module.exports = {
|
|
14056
14056
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14068,7 +14068,7 @@ var require_unevaluated2 = __commonJS(function(exports, module) {
|
|
|
14068
14068
|
};
|
|
14069
14069
|
});
|
|
14070
14070
|
|
|
14071
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
14071
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
14072
14072
|
var require_content = __commonJS(function(exports, module) {
|
|
14073
14073
|
module.exports = {
|
|
14074
14074
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14087,7 +14087,7 @@ var require_content = __commonJS(function(exports, module) {
|
|
|
14087
14087
|
};
|
|
14088
14088
|
});
|
|
14089
14089
|
|
|
14090
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
14090
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
14091
14091
|
var require_core3 = __commonJS(function(exports, module) {
|
|
14092
14092
|
module.exports = {
|
|
14093
14093
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14141,7 +14141,7 @@ var require_core3 = __commonJS(function(exports, module) {
|
|
|
14141
14141
|
};
|
|
14142
14142
|
});
|
|
14143
14143
|
|
|
14144
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
14144
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
14145
14145
|
var require_format_annotation = __commonJS(function(exports, module) {
|
|
14146
14146
|
module.exports = {
|
|
14147
14147
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14158,7 +14158,7 @@ var require_format_annotation = __commonJS(function(exports, module) {
|
|
|
14158
14158
|
};
|
|
14159
14159
|
});
|
|
14160
14160
|
|
|
14161
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
14161
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
14162
14162
|
var require_meta_data = __commonJS(function(exports, module) {
|
|
14163
14163
|
module.exports = {
|
|
14164
14164
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14197,7 +14197,7 @@ var require_meta_data = __commonJS(function(exports, module) {
|
|
|
14197
14197
|
};
|
|
14198
14198
|
});
|
|
14199
14199
|
|
|
14200
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
14200
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
14201
14201
|
var require_validation2 = __commonJS(function(exports, module) {
|
|
14202
14202
|
module.exports = {
|
|
14203
14203
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -14290,7 +14290,7 @@ var require_validation2 = __commonJS(function(exports, module) {
|
|
|
14290
14290
|
};
|
|
14291
14291
|
});
|
|
14292
14292
|
|
|
14293
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
14293
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
14294
14294
|
var require_json_schema_2020_12 = __commonJS(function(exports) {
|
|
14295
14295
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14296
14296
|
var metaSchema = require_schema4();
|
|
@@ -14321,7 +14321,7 @@ var require_json_schema_2020_12 = __commonJS(function(exports) {
|
|
|
14321
14321
|
exports.default = addMetaSchema2020;
|
|
14322
14322
|
});
|
|
14323
14323
|
|
|
14324
|
-
// node_modules/ajv/dist/2020.js
|
|
14324
|
+
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/2020.js
|
|
14325
14325
|
var require__2020 = __commonJS(function(exports, module) {
|
|
14326
14326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14327
14327
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = undefined;
|
|
@@ -14396,7 +14396,7 @@ var require__2020 = __commonJS(function(exports, module) {
|
|
|
14396
14396
|
} });
|
|
14397
14397
|
});
|
|
14398
14398
|
|
|
14399
|
-
// node_modules/ajv-formats/dist/formats.js
|
|
14399
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/formats.js
|
|
14400
14400
|
var require_formats = __commonJS(function(exports) {
|
|
14401
14401
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14402
14402
|
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
@@ -14573,7 +14573,7 @@ var require_formats = __commonJS(function(exports) {
|
|
|
14573
14573
|
}
|
|
14574
14574
|
});
|
|
14575
14575
|
|
|
14576
|
-
// node_modules/ajv-formats/dist/limit.js
|
|
14576
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/limit.js
|
|
14577
14577
|
var require_limit = __commonJS(function(exports) {
|
|
14578
14578
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14579
14579
|
exports.formatLimitDefinition = undefined;
|
|
@@ -14642,7 +14642,7 @@ var require_limit = __commonJS(function(exports) {
|
|
|
14642
14642
|
exports.default = formatLimitPlugin;
|
|
14643
14643
|
});
|
|
14644
14644
|
|
|
14645
|
-
// node_modules/ajv-formats/dist/index.js
|
|
14645
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/index.js
|
|
14646
14646
|
var require_dist = __commonJS(function(exports, module) {
|
|
14647
14647
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14648
14648
|
var formats_1 = require_formats();
|
|
@@ -14681,11 +14681,11 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
14681
14681
|
exports.default = formatsPlugin;
|
|
14682
14682
|
});
|
|
14683
14683
|
|
|
14684
|
-
//
|
|
14684
|
+
// packages/cli/src/main.ts
|
|
14685
14685
|
import { resolve as resolve9 } from "node:path";
|
|
14686
14686
|
import { createInterface } from "node:readline/promises";
|
|
14687
14687
|
|
|
14688
|
-
// src/
|
|
14688
|
+
// packages/core/src/exit-codes.ts
|
|
14689
14689
|
var ExitCode = {
|
|
14690
14690
|
Ok: 0,
|
|
14691
14691
|
Failure: 1,
|
|
@@ -14697,7 +14697,7 @@ var ExitCode = {
|
|
|
14697
14697
|
Drift: 10
|
|
14698
14698
|
};
|
|
14699
14699
|
|
|
14700
|
-
// src/errors.ts
|
|
14700
|
+
// packages/core/src/errors.ts
|
|
14701
14701
|
class FactoryError extends Error {
|
|
14702
14702
|
exitCode;
|
|
14703
14703
|
details;
|
|
@@ -14742,16 +14742,16 @@ class TransientError extends Error {
|
|
|
14742
14742
|
}
|
|
14743
14743
|
}
|
|
14744
14744
|
|
|
14745
|
-
// src/version.ts
|
|
14746
|
-
var FACTORY_VERSION = "1.0.
|
|
14745
|
+
// packages/core/src/version.ts
|
|
14746
|
+
var FACTORY_VERSION = "1.0.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 (;; ) {
|
|
@@ -22748,7 +22756,7 @@ function loadConfig(root) {
|
|
|
22748
22756
|
return { root, file, text, config: parseConfigText(text, CONFIG_FILE) };
|
|
22749
22757
|
}
|
|
22750
22758
|
|
|
22751
|
-
// src/git/repo.ts
|
|
22759
|
+
// packages/core/src/git/repo.ts
|
|
22752
22760
|
var CHANGE_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
22753
22761
|
var changeBranch = (id) => `change/${id}`;
|
|
22754
22762
|
async function dirtyPaths(dir) {
|
|
@@ -22802,11 +22810,11 @@ async function resolveBranchRef(dir, branch, options = {}) {
|
|
|
22802
22810
|
]);
|
|
22803
22811
|
}
|
|
22804
22812
|
|
|
22805
|
-
// src/openspec/changes.ts
|
|
22813
|
+
// packages/core/src/openspec/changes.ts
|
|
22806
22814
|
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
22807
22815
|
import { join as join3 } from "node:path";
|
|
22808
22816
|
|
|
22809
|
-
// node_modules/yaml/dist/index.js
|
|
22817
|
+
// node_modules/.bun/yaml@2.9.1/node_modules/yaml/dist/index.js
|
|
22810
22818
|
var composer = require_composer();
|
|
22811
22819
|
var Document = require_Document();
|
|
22812
22820
|
var Schema = require_Schema();
|
|
@@ -22852,7 +22860,7 @@ var $stringify = publicApi.stringify;
|
|
|
22852
22860
|
var $visit = visit2.visit;
|
|
22853
22861
|
var $visitAsync = visit2.visitAsync;
|
|
22854
22862
|
|
|
22855
|
-
// src/tasks/parse.ts
|
|
22863
|
+
// packages/core/src/tasks/parse.ts
|
|
22856
22864
|
var TASK_LINE = /^- \[( |x|X)\] (\d+(?:\.\d+)+)\s+(.+?)\s*$/;
|
|
22857
22865
|
var ANY_CHECKBOX = /^\s*[-*] \[[ xX]\]/;
|
|
22858
22866
|
var META_LINE = /^\s{2,}- (repo|deps|touches):\s*(.*?)\s*$/;
|
|
@@ -22923,7 +22931,7 @@ function normalizeCheckboxes(text) {
|
|
|
22923
22931
|
`);
|
|
22924
22932
|
}
|
|
22925
22933
|
|
|
22926
|
-
// src/openspec/cli.ts
|
|
22934
|
+
// packages/core/src/openspec/cli.ts
|
|
22927
22935
|
import {
|
|
22928
22936
|
existsSync as existsSync2,
|
|
22929
22937
|
mkdirSync,
|
|
@@ -22936,7 +22944,7 @@ import {
|
|
|
22936
22944
|
import { tmpdir } from "node:os";
|
|
22937
22945
|
import { join as join2, relative, sep } from "node:path";
|
|
22938
22946
|
|
|
22939
|
-
// src/tasks/glob.ts
|
|
22947
|
+
// packages/core/src/tasks/glob.ts
|
|
22940
22948
|
var cache = new Map;
|
|
22941
22949
|
function globRegExp(glob) {
|
|
22942
22950
|
const cached = cache.get(glob);
|
|
@@ -23003,7 +23011,7 @@ function opencodeGlobRegExp(glob) {
|
|
|
23003
23011
|
return new RegExp(`^${body}$`);
|
|
23004
23012
|
}
|
|
23005
23013
|
|
|
23006
|
-
// src/tasks/dag.ts
|
|
23014
|
+
// packages/core/src/tasks/dag.ts
|
|
23007
23015
|
function globSyntaxError(glob) {
|
|
23008
23016
|
let bracket = false;
|
|
23009
23017
|
let braces = 0;
|
|
@@ -23151,7 +23159,7 @@ function dependentsOf(tasks, id) {
|
|
|
23151
23159
|
return [...out];
|
|
23152
23160
|
}
|
|
23153
23161
|
|
|
23154
|
-
// src/tools.ts
|
|
23162
|
+
// packages/core/src/tools.ts
|
|
23155
23163
|
var TOOL_SPECS = {
|
|
23156
23164
|
git: {
|
|
23157
23165
|
bin: "git",
|
|
@@ -23233,7 +23241,7 @@ function checkTools(names, cwd) {
|
|
|
23233
23241
|
return Promise.all(names.map((n) => checkTool(n, cwd)));
|
|
23234
23242
|
}
|
|
23235
23243
|
|
|
23236
|
-
// src/openspec/cli.ts
|
|
23244
|
+
// packages/core/src/openspec/cli.ts
|
|
23237
23245
|
function env(root) {
|
|
23238
23246
|
const xdg = join2(root, ".factory", "cache", "openspec-xdg");
|
|
23239
23247
|
mkdirSync(xdg, { recursive: true });
|
|
@@ -23341,7 +23349,7 @@ async function renderOpenspecTools(root) {
|
|
|
23341
23349
|
}
|
|
23342
23350
|
}
|
|
23343
23351
|
|
|
23344
|
-
// src/openspec/changes.ts
|
|
23352
|
+
// packages/core/src/openspec/changes.ts
|
|
23345
23353
|
var factoryRunFile = (root, id) => join3(root, ".factory", "runs", `${id}.json`);
|
|
23346
23354
|
var hasRun = (root, id) => existsSync3(factoryRunFile(root, id));
|
|
23347
23355
|
function pendingChanges(root) {
|
|
@@ -23414,11 +23422,11 @@ function section(text, heading) {
|
|
|
23414
23422
|
`).trim();
|
|
23415
23423
|
}
|
|
23416
23424
|
|
|
23417
|
-
// src/pipeline/design.ts
|
|
23425
|
+
// packages/core/src/pipeline/design.ts
|
|
23418
23426
|
import { existsSync as existsSync11 } from "node:fs";
|
|
23419
23427
|
import { join as join12 } from "node:path";
|
|
23420
23428
|
|
|
23421
|
-
// src/config/instructions.ts
|
|
23429
|
+
// packages/core/src/config/instructions.ts
|
|
23422
23430
|
import { relative as relative2 } from "node:path";
|
|
23423
23431
|
var repoOf = (config, name) => config.repos.find((r) => r.name === name)?.path ?? name;
|
|
23424
23432
|
function instructionPaths(config, repo) {
|
|
@@ -23443,7 +23451,7 @@ function allInstructionPaths(config) {
|
|
|
23443
23451
|
];
|
|
23444
23452
|
}
|
|
23445
23453
|
|
|
23446
|
-
// src/git/branching.ts
|
|
23454
|
+
// packages/core/src/git/branching.ts
|
|
23447
23455
|
import { existsSync as existsSync4 } from "node:fs";
|
|
23448
23456
|
import { join as join4 } from "node:path";
|
|
23449
23457
|
async function switchToChangeBranch(dir, branch, start) {
|
|
@@ -23497,11 +23505,11 @@ async function branchSubmodule(root, repo, id) {
|
|
|
23497
23505
|
return { repo: repo.name, branch, base, created };
|
|
23498
23506
|
}
|
|
23499
23507
|
|
|
23500
|
-
// src/graph/graph.ts
|
|
23508
|
+
// packages/core/src/graph/graph.ts
|
|
23501
23509
|
import { existsSync as existsSync7, readFileSync as readFileSync5, rmSync as rmSync4, statSync as statSync4 } from "node:fs";
|
|
23502
23510
|
import { join as join7 } from "node:path";
|
|
23503
23511
|
|
|
23504
|
-
// src/logs/log.ts
|
|
23512
|
+
// packages/core/src/logs/log.ts
|
|
23505
23513
|
import {
|
|
23506
23514
|
appendFileSync,
|
|
23507
23515
|
existsSync as existsSync5,
|
|
@@ -23513,7 +23521,7 @@ import {
|
|
|
23513
23521
|
} from "node:fs";
|
|
23514
23522
|
import { join as join5 } from "node:path";
|
|
23515
23523
|
|
|
23516
|
-
// src/logs/redact.ts
|
|
23524
|
+
// packages/core/src/logs/redact.ts
|
|
23517
23525
|
var MARK = (kind) => `[REDACTED:${kind}]`;
|
|
23518
23526
|
var PATTERNS = [
|
|
23519
23527
|
[
|
|
@@ -23559,7 +23567,7 @@ function redact(text, envValues = [], options = {}) {
|
|
|
23559
23567
|
}
|
|
23560
23568
|
var redactProcess = (text) => redact(text, secretEnvValues(process.env));
|
|
23561
23569
|
|
|
23562
|
-
// src/logs/log.ts
|
|
23570
|
+
// packages/core/src/logs/log.ts
|
|
23563
23571
|
function redactValue(value, env, heuristic) {
|
|
23564
23572
|
if (typeof value === "string")
|
|
23565
23573
|
return redact(value, env, { heuristic });
|
|
@@ -23605,7 +23613,7 @@ function pruneLogs(root, retentionDays, now = Date.now()) {
|
|
|
23605
23613
|
return removed;
|
|
23606
23614
|
}
|
|
23607
23615
|
|
|
23608
|
-
// src/state/files.ts
|
|
23616
|
+
// packages/core/src/state/files.ts
|
|
23609
23617
|
import {
|
|
23610
23618
|
closeSync,
|
|
23611
23619
|
existsSync as existsSync6,
|
|
@@ -23716,7 +23724,7 @@ async function withFileLock(path, fn, timeoutMs = 1e4, options = {}) {
|
|
|
23716
23724
|
}
|
|
23717
23725
|
}
|
|
23718
23726
|
|
|
23719
|
-
// src/graph/graph.ts
|
|
23727
|
+
// packages/core/src/graph/graph.ts
|
|
23720
23728
|
var graphDir = (root) => join7(root, "graphify-out");
|
|
23721
23729
|
var graphFile = (root) => join7(graphDir(root), "graph.json");
|
|
23722
23730
|
var metaFile = (root) => factoryDir(root, "graph-meta.json");
|
|
@@ -23822,7 +23830,7 @@ function dependentFiles(root, files) {
|
|
|
23822
23830
|
return out;
|
|
23823
23831
|
}
|
|
23824
23832
|
|
|
23825
|
-
// src/handoff/schema.ts
|
|
23833
|
+
// packages/core/src/handoff/schema.ts
|
|
23826
23834
|
var Finding = strictObject({
|
|
23827
23835
|
severity: _enum(["must", "should", "nice"]),
|
|
23828
23836
|
file: string2().optional(),
|
|
@@ -23847,7 +23855,7 @@ function handoffJsonSchema() {
|
|
|
23847
23855
|
`;
|
|
23848
23856
|
}
|
|
23849
23857
|
|
|
23850
|
-
// src/runtime/types.ts
|
|
23858
|
+
// packages/core/src/runtime/types.ts
|
|
23851
23859
|
var ZERO_USAGE = {
|
|
23852
23860
|
input: 0,
|
|
23853
23861
|
output: 0,
|
|
@@ -23867,7 +23875,7 @@ function addUsage(a, b) {
|
|
|
23867
23875
|
};
|
|
23868
23876
|
}
|
|
23869
23877
|
|
|
23870
|
-
// src/runtime/handoff.ts
|
|
23878
|
+
// packages/core/src/runtime/handoff.ts
|
|
23871
23879
|
var FENCED = /```json\s*\n([\s\S]*?)\n?```/g;
|
|
23872
23880
|
function extractHandoff(text) {
|
|
23873
23881
|
const blocks = [...text.matchAll(FENCED)].map((m) => m[1] ?? "");
|
|
@@ -23924,11 +23932,11 @@ function decisionValues(handoff) {
|
|
|
23924
23932
|
return out;
|
|
23925
23933
|
}
|
|
23926
23934
|
|
|
23927
|
-
// src/state/active.ts
|
|
23935
|
+
// packages/core/src/state/active.ts
|
|
23928
23936
|
import { rmSync as rmSync5 } from "node:fs";
|
|
23929
23937
|
import { hostname as hostname2 } from "node:os";
|
|
23930
23938
|
|
|
23931
|
-
// src/state/run.ts
|
|
23939
|
+
// packages/core/src/state/run.ts
|
|
23932
23940
|
import { existsSync as existsSync8, readdirSync as readdirSync4 } from "node:fs";
|
|
23933
23941
|
var PHASES = [
|
|
23934
23942
|
"intake",
|
|
@@ -24086,7 +24094,7 @@ function recordTask(task, event, detail) {
|
|
|
24086
24094
|
task.history.splice(0, task.history.length - MAX_HISTORY);
|
|
24087
24095
|
}
|
|
24088
24096
|
|
|
24089
|
-
// src/state/active.ts
|
|
24097
|
+
// packages/core/src/state/active.ts
|
|
24090
24098
|
var ActiveLock = strictObject({
|
|
24091
24099
|
changeId: string2(),
|
|
24092
24100
|
pid: int().nullable(),
|
|
@@ -24167,11 +24175,11 @@ function dequeue(root) {
|
|
|
24167
24175
|
});
|
|
24168
24176
|
}
|
|
24169
24177
|
|
|
24170
|
-
// src/usage/usage.ts
|
|
24178
|
+
// packages/core/src/usage/usage.ts
|
|
24171
24179
|
import { existsSync as existsSync9, readdirSync as readdirSync5, readFileSync as readFileSync6, renameSync as renameSync2 } from "node:fs";
|
|
24172
24180
|
import { join as join9, relative as relative4 } from "node:path";
|
|
24173
24181
|
|
|
24174
|
-
// src/artifacts/paths.ts
|
|
24182
|
+
// packages/core/src/artifacts/paths.ts
|
|
24175
24183
|
import { join as join8 } from "node:path";
|
|
24176
24184
|
var ARTIFACTS_DIR = "factory-records";
|
|
24177
24185
|
var ARTIFACT_ID = /^[a-z0-9][a-z0-9-]*$/;
|
|
@@ -24183,7 +24191,7 @@ function artifactFile(root, kind, name) {
|
|
|
24183
24191
|
}
|
|
24184
24192
|
var artifactDir = (root, kind) => kind === undefined ? join8(root, ARTIFACTS_DIR) : join8(root, ARTIFACTS_DIR, kind);
|
|
24185
24193
|
|
|
24186
|
-
// src/usage/usage.ts
|
|
24194
|
+
// packages/core/src/usage/usage.ts
|
|
24187
24195
|
var usageFile = (root, id) => factoryDir(root, "usage", `${id}.json`);
|
|
24188
24196
|
function readLedger(file) {
|
|
24189
24197
|
try {
|
|
@@ -24407,7 +24415,7 @@ function usageReport(summary) {
|
|
|
24407
24415
|
];
|
|
24408
24416
|
}
|
|
24409
24417
|
|
|
24410
|
-
// src/pipeline/clarify.ts
|
|
24418
|
+
// packages/core/src/pipeline/clarify.ts
|
|
24411
24419
|
import { existsSync as existsSync10, mkdirSync as mkdirSync4, readFileSync as readFileSync7, writeFileSync as writeFileSync2 } from "node:fs";
|
|
24412
24420
|
import { dirname as dirname3, join as join10 } from "node:path";
|
|
24413
24421
|
var START = "<!-- ai-factory:questions:start -->";
|
|
@@ -24508,10 +24516,10 @@ ${block}`);
|
|
|
24508
24516
|
writeFileSync2(file, mergeQuestionsBlock(existing, block));
|
|
24509
24517
|
}
|
|
24510
24518
|
|
|
24511
|
-
// src/pipeline/context.ts
|
|
24519
|
+
// packages/core/src/pipeline/context.ts
|
|
24512
24520
|
import { join as join11 } from "node:path";
|
|
24513
24521
|
|
|
24514
|
-
// src/runtime/rate-limit.ts
|
|
24522
|
+
// packages/core/src/runtime/rate-limit.ts
|
|
24515
24523
|
function sleep(ms, signal) {
|
|
24516
24524
|
return new Promise((resolve) => {
|
|
24517
24525
|
if (signal?.aborted)
|
|
@@ -24574,7 +24582,7 @@ function limited(session, limiter, provider, maxWaits = 8) {
|
|
|
24574
24582
|
};
|
|
24575
24583
|
}
|
|
24576
24584
|
|
|
24577
|
-
// src/util/semaphore.ts
|
|
24585
|
+
// packages/core/src/util/semaphore.ts
|
|
24578
24586
|
class Semaphore {
|
|
24579
24587
|
#available;
|
|
24580
24588
|
#waiting = [];
|
|
@@ -24607,7 +24615,7 @@ class Semaphore {
|
|
|
24607
24615
|
}
|
|
24608
24616
|
}
|
|
24609
24617
|
|
|
24610
|
-
// src/util/duration.ts
|
|
24618
|
+
// packages/core/src/util/duration.ts
|
|
24611
24619
|
function formatDuration(ms) {
|
|
24612
24620
|
const bounded = Math.max(0, Math.round(ms));
|
|
24613
24621
|
if (bounded < 950)
|
|
@@ -24623,7 +24631,7 @@ function formatDuration(ms) {
|
|
|
24623
24631
|
return `${hours}h${String(minutes - hours * 60).padStart(2, "0")}m`;
|
|
24624
24632
|
}
|
|
24625
24633
|
|
|
24626
|
-
// src/pipeline/progress.ts
|
|
24634
|
+
// packages/core/src/pipeline/progress.ts
|
|
24627
24635
|
var DEFAULT_HEARTBEAT_MS = 30000;
|
|
24628
24636
|
var SLOW_GATE_MS = 1e4;
|
|
24629
24637
|
var DETAIL_MAX = 100;
|
|
@@ -24932,7 +24940,7 @@ class Progress {
|
|
|
24932
24940
|
}
|
|
24933
24941
|
}
|
|
24934
24942
|
|
|
24935
|
-
// src/pipeline/context.ts
|
|
24943
|
+
// packages/core/src/pipeline/context.ts
|
|
24936
24944
|
class ChangeAborted extends Error {
|
|
24937
24945
|
changeId;
|
|
24938
24946
|
constructor(changeId) {
|
|
@@ -25117,7 +25125,7 @@ class Pipeline {
|
|
|
25117
25125
|
}
|
|
25118
25126
|
}
|
|
25119
25127
|
|
|
25120
|
-
// src/util/fence.ts
|
|
25128
|
+
// packages/core/src/util/fence.ts
|
|
25121
25129
|
function fence(text, info = "") {
|
|
25122
25130
|
const longest = Math.max(0, ...(text.match(/`+/g) ?? []).map((run) => run.length));
|
|
25123
25131
|
const marks = "`".repeat(Math.max(3, longest + 1));
|
|
@@ -25126,7 +25134,7 @@ ${text}
|
|
|
25126
25134
|
${marks}`;
|
|
25127
25135
|
}
|
|
25128
25136
|
|
|
25129
|
-
// src/pipeline/prompts.ts
|
|
25137
|
+
// packages/core/src/pipeline/prompts.ts
|
|
25130
25138
|
var repoLines = (repos) => repos.map((r) => `- ${r.name} (${r.path}): ${r.languages.join(", ") || "no languages detected"}`).join(`
|
|
25131
25139
|
`);
|
|
25132
25140
|
function intakePrompt(request, repos) {
|
|
@@ -25386,7 +25394,7 @@ ${input.diffs.map((d) => `- \`${d}\``).join(`
|
|
|
25386
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"\`.`;
|
|
25387
25395
|
}
|
|
25388
25396
|
|
|
25389
|
-
// src/pipeline/design.ts
|
|
25397
|
+
// packages/core/src/pipeline/design.ts
|
|
25390
25398
|
function specDir(p, draft) {
|
|
25391
25399
|
return draft === undefined ? p.root : join12(p.root, draft);
|
|
25392
25400
|
}
|
|
@@ -25619,7 +25627,7 @@ async function design(p, id) {
|
|
|
25619
25627
|
return { ok: issues.length === 0, issues };
|
|
25620
25628
|
}
|
|
25621
25629
|
|
|
25622
|
-
// src/update/update.ts
|
|
25630
|
+
// packages/core/src/update/update.ts
|
|
25623
25631
|
import {
|
|
25624
25632
|
cpSync,
|
|
25625
25633
|
existsSync as existsSync19,
|
|
@@ -25631,11 +25639,11 @@ import {
|
|
|
25631
25639
|
} from "node:fs";
|
|
25632
25640
|
import { dirname as dirname5, join as join23 } from "node:path";
|
|
25633
25641
|
|
|
25634
|
-
// src/detect/contracts.ts
|
|
25642
|
+
// packages/core/src/detect/contracts.ts
|
|
25635
25643
|
import { readFileSync as readFileSync8 } from "node:fs";
|
|
25636
25644
|
import { join as join14 } from "node:path";
|
|
25637
25645
|
|
|
25638
|
-
// src/detect/walk.ts
|
|
25646
|
+
// packages/core/src/detect/walk.ts
|
|
25639
25647
|
import { existsSync as existsSync12, readdirSync as readdirSync6, statSync as statSync5 } from "node:fs";
|
|
25640
25648
|
import { join as join13 } from "node:path";
|
|
25641
25649
|
var SKIP_DIRS = new Set([
|
|
@@ -25705,7 +25713,7 @@ function isWithin(dir, ancestor) {
|
|
|
25705
25713
|
return ancestor === "." || dir === ancestor || dir.startsWith(`${ancestor}/`);
|
|
25706
25714
|
}
|
|
25707
25715
|
|
|
25708
|
-
// src/detect/contracts.ts
|
|
25716
|
+
// packages/core/src/detect/contracts.ts
|
|
25709
25717
|
var MAX_SPEC_BYTES = 1024 * 1024;
|
|
25710
25718
|
var MAX_TEXT_BYTES = 256 * 1024;
|
|
25711
25719
|
var MAX_TEXT_FILES = 3000;
|
|
@@ -25853,11 +25861,11 @@ function contractKey(c) {
|
|
|
25853
25861
|
return `${c.kind}:${c.provider}:${c.path}`;
|
|
25854
25862
|
}
|
|
25855
25863
|
|
|
25856
|
-
// src/detect/workspace.ts
|
|
25864
|
+
// packages/core/src/detect/workspace.ts
|
|
25857
25865
|
import { existsSync as existsSync13, readFileSync as readFileSync10 } from "node:fs";
|
|
25858
25866
|
import { basename, join as join16 } from "node:path";
|
|
25859
25867
|
|
|
25860
|
-
// src/detect/languages.ts
|
|
25868
|
+
// packages/core/src/detect/languages.ts
|
|
25861
25869
|
import { readFileSync as readFileSync9 } from "node:fs";
|
|
25862
25870
|
import { join as join15 } from "node:path";
|
|
25863
25871
|
var MAX_MANIFEST_BYTES = 256 * 1024;
|
|
@@ -25970,7 +25978,7 @@ function detectLanguages(root, files) {
|
|
|
25970
25978
|
return { languages, subPaths: emitted.sort((a, b) => a.path.localeCompare(b.path)) };
|
|
25971
25979
|
}
|
|
25972
25980
|
|
|
25973
|
-
// src/detect/workspace.ts
|
|
25981
|
+
// packages/core/src/detect/workspace.ts
|
|
25974
25982
|
var WALK = { maxDepth: 6, maxFiles: 20000 };
|
|
25975
25983
|
function repoNameFrom(path) {
|
|
25976
25984
|
const name = basename(path).toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
@@ -26136,7 +26144,7 @@ function toRepoConfig(repo) {
|
|
|
26136
26144
|
return rest;
|
|
26137
26145
|
}
|
|
26138
26146
|
|
|
26139
|
-
// src/detect/diff.ts
|
|
26147
|
+
// packages/core/src/detect/diff.ts
|
|
26140
26148
|
var same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
26141
26149
|
function repoChanges(configured, detected) {
|
|
26142
26150
|
const changes = [];
|
|
@@ -26232,7 +26240,7 @@ function formatChange(change) {
|
|
|
26232
26240
|
}
|
|
26233
26241
|
}
|
|
26234
26242
|
|
|
26235
|
-
// src/lock/lock.ts
|
|
26243
|
+
// packages/core/src/lock/lock.ts
|
|
26236
26244
|
import { existsSync as existsSync14, readFileSync as readFileSync11 } from "node:fs";
|
|
26237
26245
|
import { join as join17 } from "node:path";
|
|
26238
26246
|
var LOCK_FILE = "factory.lock.json";
|
|
@@ -26307,7 +26315,7 @@ function ensureNotNewer(lock, allow = false) {
|
|
|
26307
26315
|
]);
|
|
26308
26316
|
}
|
|
26309
26317
|
|
|
26310
|
-
// src/migrations/001-graph-exclude-defaults.ts
|
|
26318
|
+
// packages/core/src/migrations/001-graph-exclude-defaults.ts
|
|
26311
26319
|
var V1_GRAPH_EXCLUDE = [
|
|
26312
26320
|
"**/node_modules/**",
|
|
26313
26321
|
"**/target/**",
|
|
@@ -26331,7 +26339,7 @@ var graphExcludeDefaults = {
|
|
|
26331
26339
|
}
|
|
26332
26340
|
};
|
|
26333
26341
|
|
|
26334
|
-
// src/migrations/002-config-v3.ts
|
|
26342
|
+
// packages/core/src/migrations/002-config-v3.ts
|
|
26335
26343
|
var configV3 = {
|
|
26336
26344
|
from: 2,
|
|
26337
26345
|
to: 3,
|
|
@@ -26342,7 +26350,7 @@ var configV3 = {
|
|
|
26342
26350
|
}
|
|
26343
26351
|
};
|
|
26344
26352
|
|
|
26345
|
-
// src/migrations/003-artifacts.ts
|
|
26353
|
+
// packages/core/src/migrations/003-artifacts.ts
|
|
26346
26354
|
var artifactsV4 = {
|
|
26347
26355
|
from: 3,
|
|
26348
26356
|
to: 4,
|
|
@@ -26363,7 +26371,7 @@ var artifactsV4 = {
|
|
|
26363
26371
|
}
|
|
26364
26372
|
};
|
|
26365
26373
|
|
|
26366
|
-
// src/migrations/index.ts
|
|
26374
|
+
// packages/core/src/migrations/index.ts
|
|
26367
26375
|
var MIGRATIONS = [graphExcludeDefaults, configV3, artifactsV4];
|
|
26368
26376
|
function schemaVersionOf(text) {
|
|
26369
26377
|
const { value } = parseJsonc(text);
|
|
@@ -26393,7 +26401,7 @@ function migrateConfigText(text, migrations = MIGRATIONS) {
|
|
|
26393
26401
|
return { text: out, from, to: current, applied };
|
|
26394
26402
|
}
|
|
26395
26403
|
|
|
26396
|
-
// src/workspace/sync.ts
|
|
26404
|
+
// packages/core/src/workspace/sync.ts
|
|
26397
26405
|
import { existsSync as existsSync18, writeFileSync as writeFileSync5 } from "node:fs";
|
|
26398
26406
|
import { join as join22 } from "node:path";
|
|
26399
26407
|
|
|
@@ -26636,7 +26644,7 @@ The add-on above is advice about writing less code. Where it conflicts with the
|
|
|
26636
26644
|
7. {{shortcuts}}
|
|
26637
26645
|
`;
|
|
26638
26646
|
|
|
26639
|
-
// src/addons/hash.ts
|
|
26647
|
+
// packages/core/src/addons/hash.ts
|
|
26640
26648
|
import { createHash } from "node:crypto";
|
|
26641
26649
|
function contentHash(files) {
|
|
26642
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}
|
|
@@ -26654,7 +26662,7 @@ function isText(bytes) {
|
|
|
26654
26662
|
}
|
|
26655
26663
|
}
|
|
26656
26664
|
|
|
26657
|
-
// src/addons/ponytail.ts
|
|
26665
|
+
// packages/core/src/addons/ponytail.ts
|
|
26658
26666
|
var PONYTAIL_DIR = ".opencode/addons/ponytail";
|
|
26659
26667
|
var PONYTAIL_REF = `${PONYTAIL.tag}@${PONYTAIL.commit}`;
|
|
26660
26668
|
var VENDORED = {
|
|
@@ -26732,7 +26740,7 @@ ${reviewChecklist()}`, REVIEWER_MAPPING);
|
|
|
26732
26740
|
`);
|
|
26733
26741
|
}
|
|
26734
26742
|
|
|
26735
|
-
// src/git/commit.ts
|
|
26743
|
+
// packages/core/src/git/commit.ts
|
|
26736
26744
|
import { existsSync as existsSync15 } from "node:fs";
|
|
26737
26745
|
import { join as join18 } from "node:path";
|
|
26738
26746
|
var TYPE_BY_VERB = [
|
|
@@ -26797,7 +26805,7 @@ function commitTask(worktree, id, task, title, type, style = {}) {
|
|
|
26797
26805
|
});
|
|
26798
26806
|
}
|
|
26799
26807
|
|
|
26800
|
-
// src/git/hooks.ts
|
|
26808
|
+
// packages/core/src/git/hooks.ts
|
|
26801
26809
|
import { chmodSync, existsSync as existsSync16, mkdirSync as mkdirSync5, readFileSync as readFileSync12, renameSync as renameSync3, writeFileSync as writeFileSync3 } from "node:fs";
|
|
26802
26810
|
import { join as join19, relative as relative5 } from "node:path";
|
|
26803
26811
|
var HOOK_MARKER = "# ai-factory-hook v1";
|
|
@@ -26887,7 +26895,7 @@ function agentGitEnv(base = process.env) {
|
|
|
26887
26895
|
};
|
|
26888
26896
|
}
|
|
26889
26897
|
|
|
26890
|
-
// src/managed/sync.ts
|
|
26898
|
+
// packages/core/src/managed/sync.ts
|
|
26891
26899
|
import { createHash as createHash2 } from "node:crypto";
|
|
26892
26900
|
import {
|
|
26893
26901
|
existsSync as existsSync17,
|
|
@@ -26902,7 +26910,7 @@ import { tmpdir as tmpdir2 } from "node:os";
|
|
|
26902
26910
|
import { dirname as dirname4, join as join21, resolve as resolve2 } from "node:path";
|
|
26903
26911
|
import { deflateSync } from "node:zlib";
|
|
26904
26912
|
|
|
26905
|
-
// src/render/workspace.ts
|
|
26913
|
+
// packages/core/src/render/workspace.ts
|
|
26906
26914
|
import { readFileSync as readFileSync13 } from "node:fs";
|
|
26907
26915
|
import { join as join20 } from "node:path";
|
|
26908
26916
|
|
|
@@ -27126,18 +27134,18 @@ Use \`task: "<task id>"\` in your handoff and list the scenario → test mapping
|
|
|
27126
27134
|
`;
|
|
27127
27135
|
|
|
27128
27136
|
// templates/plugin/factory-plugin.txt
|
|
27129
|
-
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.
|
|
27130
27138
|
// @bun
|
|
27131
|
-
// src/plugin/entry.ts
|
|
27139
|
+
// packages/core/src/plugin/entry.ts
|
|
27132
27140
|
import { existsSync as existsSync4, readdirSync as readdirSync3, readFileSync as readFileSync3, statSync as statSync3 } from "fs";
|
|
27133
27141
|
import { isAbsolute as isAbsolute4, join as join8, relative as relative3, resolve as resolve5 } from "path";
|
|
27134
27142
|
|
|
27135
|
-
// src/approval/approval.ts
|
|
27143
|
+
// packages/core/src/approval/approval.ts
|
|
27136
27144
|
import { createHash } from "crypto";
|
|
27137
27145
|
import { existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "fs";
|
|
27138
27146
|
import { dirname, join } from "path";
|
|
27139
27147
|
|
|
27140
|
-
// src/tasks/parse.ts
|
|
27148
|
+
// packages/core/src/tasks/parse.ts
|
|
27141
27149
|
var TASK_LINE = /^- \\[( |x|X)\\] (\\d+(?:\\.\\d+)+)\\s+(.+?)\\s*$/;
|
|
27142
27150
|
function normalizeCheckboxes(text) {
|
|
27143
27151
|
return text.split(\`
|
|
@@ -27145,7 +27153,7 @@ function normalizeCheckboxes(text) {
|
|
|
27145
27153
|
\`);
|
|
27146
27154
|
}
|
|
27147
27155
|
|
|
27148
|
-
// src/approval/approval.ts
|
|
27156
|
+
// packages/core/src/approval/approval.ts
|
|
27149
27157
|
function parseApproval(value) {
|
|
27150
27158
|
if (typeof value !== "object" || value === null)
|
|
27151
27159
|
return;
|
|
@@ -27217,7 +27225,7 @@ function checkApprovalHash(root, id) {
|
|
|
27217
27225
|
return { valid: true, approval };
|
|
27218
27226
|
}
|
|
27219
27227
|
|
|
27220
|
-
// src/logs/log.ts
|
|
27228
|
+
// packages/core/src/logs/log.ts
|
|
27221
27229
|
import {
|
|
27222
27230
|
appendFileSync,
|
|
27223
27231
|
existsSync as existsSync2,
|
|
@@ -27229,7 +27237,7 @@ import {
|
|
|
27229
27237
|
} from "fs";
|
|
27230
27238
|
import { join as join2 } from "path";
|
|
27231
27239
|
|
|
27232
|
-
// src/logs/redact.ts
|
|
27240
|
+
// packages/core/src/logs/redact.ts
|
|
27233
27241
|
var MARK = (kind) => \`[REDACTED:\${kind}]\`;
|
|
27234
27242
|
var PATTERNS = [
|
|
27235
27243
|
[
|
|
@@ -27274,7 +27282,7 @@ function redact(text, envValues = [], options = {}) {
|
|
|
27274
27282
|
return out;
|
|
27275
27283
|
}
|
|
27276
27284
|
|
|
27277
|
-
// src/logs/log.ts
|
|
27285
|
+
// packages/core/src/logs/log.ts
|
|
27278
27286
|
function redactValue(value, env, heuristic) {
|
|
27279
27287
|
if (typeof value === "string")
|
|
27280
27288
|
return redact(value, env, { heuristic });
|
|
@@ -27298,7 +27306,7 @@ function appendLog(root, changeId, entry, options = {}) {
|
|
|
27298
27306
|
\`);
|
|
27299
27307
|
}
|
|
27300
27308
|
|
|
27301
|
-
// src/policy/paths.ts
|
|
27309
|
+
// packages/core/src/policy/paths.ts
|
|
27302
27310
|
var PROTECTED = [
|
|
27303
27311
|
/^openspec\\/specs(\\/|$)/i,
|
|
27304
27312
|
/^\\.opencode(\\/|$)/i,
|
|
@@ -27377,7 +27385,7 @@ function isGeneratedLockfile(path) {
|
|
|
27377
27385
|
return GENERATED_LOCKFILES.has(p.slice(p.lastIndexOf("/") + 1).toLowerCase());
|
|
27378
27386
|
}
|
|
27379
27387
|
|
|
27380
|
-
// src/policy/realpath.ts
|
|
27388
|
+
// packages/core/src/policy/realpath.ts
|
|
27381
27389
|
import { lstatSync, readlinkSync, realpathSync } from "fs";
|
|
27382
27390
|
import { basename, dirname as dirname2, join as join3, resolve } from "path";
|
|
27383
27391
|
function realPathOf(abs, depth = 0) {
|
|
@@ -27407,7 +27415,7 @@ function realPathOf(abs, depth = 0) {
|
|
|
27407
27415
|
return abs;
|
|
27408
27416
|
}
|
|
27409
27417
|
|
|
27410
|
-
// src/policy/sandbox.ts
|
|
27418
|
+
// packages/core/src/policy/sandbox.ts
|
|
27411
27419
|
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
|
|
27412
27420
|
import { isAbsolute, join as join4, resolve as resolve2 } from "path";
|
|
27413
27421
|
var SANDBOX_EXEC = "/usr/bin/sandbox-exec";
|
|
@@ -27551,10 +27559,10 @@ function checkoutPolicy(workspace, dir, extra = [], home = process.env.HOME) {
|
|
|
27551
27559
|
};
|
|
27552
27560
|
}
|
|
27553
27561
|
|
|
27554
|
-
// src/policy/scope.ts
|
|
27562
|
+
// packages/core/src/policy/scope.ts
|
|
27555
27563
|
import { isAbsolute as isAbsolute2, normalize, relative, resolve as resolve3 } from "path";
|
|
27556
27564
|
|
|
27557
|
-
// src/tasks/glob.ts
|
|
27565
|
+
// packages/core/src/tasks/glob.ts
|
|
27558
27566
|
var cache = new Map;
|
|
27559
27567
|
function globRegExp(glob) {
|
|
27560
27568
|
const cached = cache.get(glob);
|
|
@@ -27594,7 +27602,7 @@ function opencodeGlobRegExp(glob) {
|
|
|
27594
27602
|
return new RegExp(\`^\${body}$\`);
|
|
27595
27603
|
}
|
|
27596
27604
|
|
|
27597
|
-
// src/policy/scope.ts
|
|
27605
|
+
// packages/core/src/policy/scope.ts
|
|
27598
27606
|
var ROLES = [
|
|
27599
27607
|
"orchestrator",
|
|
27600
27608
|
"architect",
|
|
@@ -27691,7 +27699,7 @@ function patchPaths(patchText) {
|
|
|
27691
27699
|
return [...out];
|
|
27692
27700
|
}
|
|
27693
27701
|
|
|
27694
|
-
// src/policy/secrets.ts
|
|
27702
|
+
// packages/core/src/policy/secrets.ts
|
|
27695
27703
|
import { join as join5 } from "path";
|
|
27696
27704
|
var GLOB = /[*?[]/;
|
|
27697
27705
|
function segmentRegExp(segment) {
|
|
@@ -27806,14 +27814,306 @@ function mentionedSecret(code) {
|
|
|
27806
27814
|
return code.match(MENTION)?.[1];
|
|
27807
27815
|
}
|
|
27808
27816
|
|
|
27809
|
-
// src/policy/session-files.ts
|
|
27817
|
+
// packages/core/src/policy/session-files.ts
|
|
27810
27818
|
import { join as join6 } from "path";
|
|
27811
27819
|
var sessionContextFile = (workspace, sessionId) => join6(workspace, ".factory", "sessions", \`\${sessionId}.json\`);
|
|
27812
27820
|
|
|
27813
|
-
// src/policy/shell.ts
|
|
27821
|
+
// packages/core/src/policy/shell.ts
|
|
27814
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";
|
|
27815
27823
|
|
|
27816
|
-
// 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
|
|
27817
28117
|
class ShellParseError extends Error {
|
|
27818
28118
|
}
|
|
27819
28119
|
var OPS = ["&&", "||", ";;", ";", "|&", "|", "&", "(", ")", \`
|
|
@@ -28187,7 +28487,7 @@ function parseScript(src) {
|
|
|
28187
28487
|
return new Parser(new Lexer(src).lex()).script(false);
|
|
28188
28488
|
}
|
|
28189
28489
|
|
|
28190
|
-
// src/policy/shell.ts
|
|
28490
|
+
// packages/core/src/policy/shell.ts
|
|
28191
28491
|
class Blocked extends Error {
|
|
28192
28492
|
}
|
|
28193
28493
|
function block(reason) {
|
|
@@ -28273,6 +28573,35 @@ var BREW_READ_ONLY_FLAGS = new Set([
|
|
|
28273
28573
|
"--version",
|
|
28274
28574
|
"--help"
|
|
28275
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
|
+
]);
|
|
28276
28605
|
var BREW_READ_ONLY_SUBCOMMANDS = new Set([
|
|
28277
28606
|
"info",
|
|
28278
28607
|
"list",
|
|
@@ -28290,6 +28619,9 @@ var BREW_READ_ONLY_SUBCOMMANDS = new Set([
|
|
|
28290
28619
|
"tap-info"
|
|
28291
28620
|
]);
|
|
28292
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
|
+
}
|
|
28293
28625
|
function scanText(text) {
|
|
28294
28626
|
for (const t of [text, text.replace(/(['"\`])\\s*\\+\\s*\\1/g, "")]) {
|
|
28295
28627
|
if (/\\bgit\\b[\\s"',[\\]()]+push\\b/.test(t))
|
|
@@ -28452,18 +28784,127 @@ function checkRecursiveSearch(state, base, args) {
|
|
|
28452
28784
|
block(\`searches \\\`\${root}\\\`, which contains secret file \\\`\${found}\\\`; search specific directories instead\`);
|
|
28453
28785
|
}
|
|
28454
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
|
+
}
|
|
28455
28889
|
function checkPackageScript(state, tool, args) {
|
|
28456
28890
|
const pos = positionals(args);
|
|
28457
|
-
const
|
|
28891
|
+
const cmd = tool === "bun" ? bunSubcommand(args) : undefined;
|
|
28892
|
+
const sub = cmd === undefined ? pos[0] : cmd.word;
|
|
28458
28893
|
if (sub === undefined || state.cwd === undefined)
|
|
28459
28894
|
return;
|
|
28460
|
-
const
|
|
28895
|
+
const dir = state.cwd;
|
|
28896
|
+
const text = state.ctx.readFile?.(join7(dir, "package.json"));
|
|
28461
28897
|
let scripts = {};
|
|
28462
28898
|
try {
|
|
28463
28899
|
scripts = (text === undefined ? {} : JSON.parse(text).scripts) ?? {};
|
|
28464
28900
|
} catch {
|
|
28465
28901
|
return;
|
|
28466
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
|
+
}
|
|
28467
28908
|
const NPM_RUN = new Set(["run", "run-script", "rum", "urn"]);
|
|
28468
28909
|
const NPM_LIFECYCLE = {
|
|
28469
28910
|
test: "test",
|
|
@@ -28477,24 +28918,20 @@ function checkPackageScript(state, tool, args) {
|
|
|
28477
28918
|
if (tool === "npm")
|
|
28478
28919
|
name = NPM_RUN.has(sub) ? pos[1] : NPM_LIFECYCLE[sub];
|
|
28479
28920
|
else if (sub === "run")
|
|
28480
|
-
name = pos[1];
|
|
28921
|
+
name = cmd === undefined ? pos[1] : bunRunScript(args, cmd.index + 1);
|
|
28481
28922
|
else if (sub in scripts)
|
|
28482
28923
|
name = sub;
|
|
28483
|
-
else if (tool === "bun" &&
|
|
28924
|
+
else if (tool === "bun" && isJsLike(sub)) {
|
|
28484
28925
|
checkScriptFile(state, sub, "other");
|
|
28485
28926
|
return;
|
|
28486
28927
|
}
|
|
28487
28928
|
if (name === undefined)
|
|
28488
28929
|
return;
|
|
28489
|
-
if (tool === "bun" && !(name in scripts) &&
|
|
28930
|
+
if (tool === "bun" && !(name in scripts) && isJsLike(name)) {
|
|
28490
28931
|
checkScriptFile(state, name, "other");
|
|
28491
28932
|
return;
|
|
28492
28933
|
}
|
|
28493
|
-
|
|
28494
|
-
const body = scripts[key];
|
|
28495
|
-
if (typeof body === "string")
|
|
28496
|
-
checkScript(state, body);
|
|
28497
|
-
}
|
|
28934
|
+
expandScripts(state, dir, scripts, [\`pre\${name}\`, name, \`post\${name}\`]);
|
|
28498
28935
|
}
|
|
28499
28936
|
function parseMakefile(text) {
|
|
28500
28937
|
const vars = new Map;
|
|
@@ -28954,6 +29391,12 @@ function checkScriptFile(state, word, interpreter) {
|
|
|
28954
29391
|
const isShell = interpreter === "shell" ? shebang === "" || /\\b(sh|bash|zsh|dash|ksh)\\b/.test(shebang) : false;
|
|
28955
29392
|
if (isShell) {
|
|
28956
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
|
+
}
|
|
28957
29400
|
} else {
|
|
28958
29401
|
const found = scanText(text);
|
|
28959
29402
|
if (found)
|
|
@@ -29296,6 +29739,8 @@ function checkSimple(state, cmd, stdin) {
|
|
|
29296
29739
|
state.cwd = undefined;
|
|
29297
29740
|
return;
|
|
29298
29741
|
}
|
|
29742
|
+
if (PACKAGE_MANAGERS.has(base))
|
|
29743
|
+
checkPackageManager(state, base, args, { redirects: cmd.redirects, stdin });
|
|
29299
29744
|
const interpreter = base.replace(/\\d+(\\.\\d+)*$/, "");
|
|
29300
29745
|
if ((interpreter === "perl" || interpreter === "ruby") && args.some(isInPlaceFlag)) {
|
|
29301
29746
|
const operands = [];
|
|
@@ -29501,11 +29946,6 @@ function checkSimple(state, cmd, stdin) {
|
|
|
29501
29946
|
case "pnpm":
|
|
29502
29947
|
case "yarn":
|
|
29503
29948
|
case "bun":
|
|
29504
|
-
if (args.some((a) => a === "-g" || a === "--global" || a === "--location=global") || args[0] === "global" || args[0] === "link")
|
|
29505
|
-
return block(\`\${base} global installs change the machine, not the worktree\`);
|
|
29506
|
-
if (args.some((a) => a === "publish" || a === "login" || a === "adduser" || a === "unpublish" || a === "deprecate")) {
|
|
29507
|
-
return block(\`\${base} publishing is not allowed\`);
|
|
29508
|
-
}
|
|
29509
29949
|
checkPackageScript(state, base, args);
|
|
29510
29950
|
return;
|
|
29511
29951
|
case "make":
|
|
@@ -29627,7 +30067,14 @@ function checkScript(state, text) {
|
|
|
29627
30067
|
return;
|
|
29628
30068
|
}
|
|
29629
30069
|
function checkShell(command, ctx) {
|
|
29630
|
-
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
|
+
};
|
|
29631
30078
|
try {
|
|
29632
30079
|
checkScript(state, command);
|
|
29633
30080
|
return { allowed: true };
|
|
@@ -29640,7 +30087,7 @@ function checkShell(command, ctx) {
|
|
|
29640
30087
|
}
|
|
29641
30088
|
}
|
|
29642
30089
|
|
|
29643
|
-
// src/plugin/entry.ts
|
|
30090
|
+
// packages/core/src/plugin/entry.ts
|
|
29644
30091
|
var FACTORY_AGENTS = new Set([
|
|
29645
30092
|
"orchestrator",
|
|
29646
30093
|
"architect",
|
|
@@ -29914,7 +30361,7 @@ export {
|
|
|
29914
30361
|
};
|
|
29915
30362
|
`;
|
|
29916
30363
|
|
|
29917
|
-
// src/policy/permissions.ts
|
|
30364
|
+
// packages/core/src/policy/permissions.ts
|
|
29918
30365
|
var ACTIONS = [
|
|
29919
30366
|
"read",
|
|
29920
30367
|
"glob",
|
|
@@ -31123,7 +31570,7 @@ try {
|
|
|
31123
31570
|
- Use the repo's runner and file naming; one behaviour per test; mock only process boundaries (network, clock, filesystem). <!-- factory -->
|
|
31124
31571
|
`;
|
|
31125
31572
|
|
|
31126
|
-
// src/profiles/index.ts
|
|
31573
|
+
// packages/core/src/profiles/index.ts
|
|
31127
31574
|
var TS_TEST_GLOBS = [
|
|
31128
31575
|
"*.test.ts",
|
|
31129
31576
|
"*.test.tsx",
|
|
@@ -31414,7 +31861,7 @@ function profilesFor(languages) {
|
|
|
31414
31861
|
return Object.keys(PROFILES).filter((l) => set.has(l)).map((l) => PROFILES[l]);
|
|
31415
31862
|
}
|
|
31416
31863
|
|
|
31417
|
-
// src/render/workspace.ts
|
|
31864
|
+
// packages/core/src/render/workspace.ts
|
|
31418
31865
|
var BLOCK_MARKERS = {
|
|
31419
31866
|
"AGENTS.md": {
|
|
31420
31867
|
start: "<!-- ai-factory:start (managed by ai-factory; edit outside this block) -->",
|
|
@@ -31808,7 +32255,7 @@ function renderWorkspace(config, options = {}) {
|
|
|
31808
32255
|
return files.sort((a, b) => a.path.localeCompare(b.path));
|
|
31809
32256
|
}
|
|
31810
32257
|
|
|
31811
|
-
// src/managed/sync.ts
|
|
32258
|
+
// packages/core/src/managed/sync.ts
|
|
31812
32259
|
function sha256(text) {
|
|
31813
32260
|
return createHash2("sha256").update(text, "utf8").digest("hex");
|
|
31814
32261
|
}
|
|
@@ -32049,7 +32496,7 @@ async function executeSync(root, plan, previous, options = {}) {
|
|
|
32049
32496
|
return { managed, merged, conflicts };
|
|
32050
32497
|
}
|
|
32051
32498
|
|
|
32052
|
-
// src/workspace/sync.ts
|
|
32499
|
+
// packages/core/src/workspace/sync.ts
|
|
32053
32500
|
var INSTALL_PATHS = [
|
|
32054
32501
|
"AGENTS.md",
|
|
32055
32502
|
".gitignore",
|
|
@@ -32128,7 +32575,7 @@ function commitInstall(root, message) {
|
|
|
32128
32575
|
return commitPaths(root, INSTALL_PATHS.filter((p) => existsSync18(join22(root, p))), message);
|
|
32129
32576
|
}
|
|
32130
32577
|
|
|
32131
|
-
// src/update/update.ts
|
|
32578
|
+
// packages/core/src/update/update.ts
|
|
32132
32579
|
var WRITES = new Set([
|
|
32133
32580
|
"create",
|
|
32134
32581
|
"update",
|
|
@@ -32283,7 +32730,7 @@ function requireInstalled(root) {
|
|
|
32283
32730
|
return lock;
|
|
32284
32731
|
}
|
|
32285
32732
|
|
|
32286
|
-
//
|
|
32733
|
+
// packages/cli/src/command.ts
|
|
32287
32734
|
import { parseArgs } from "node:util";
|
|
32288
32735
|
function parseCommandArgs(command, args, options, allowPositionals = false) {
|
|
32289
32736
|
try {
|
|
@@ -32294,15 +32741,15 @@ function parseCommandArgs(command, args, options, allowPositionals = false) {
|
|
|
32294
32741
|
}
|
|
32295
32742
|
}
|
|
32296
32743
|
|
|
32297
|
-
//
|
|
32744
|
+
// packages/cli/src/commands/pipeline-commands.ts
|
|
32298
32745
|
import { existsSync as existsSync34, readFileSync as readFileSync30 } from "node:fs";
|
|
32299
32746
|
import { join as join45, relative as relative9, resolve as resolve6 } from "node:path";
|
|
32300
32747
|
|
|
32301
|
-
// src/pipeline/approve.ts
|
|
32748
|
+
// packages/core/src/pipeline/approve.ts
|
|
32302
32749
|
import { existsSync as existsSync22, readFileSync as readFileSync18 } from "node:fs";
|
|
32303
32750
|
import { join as join26 } from "node:path";
|
|
32304
32751
|
|
|
32305
|
-
// src/approval/approval.ts
|
|
32752
|
+
// packages/core/src/approval/approval.ts
|
|
32306
32753
|
import { createHash as createHash3 } from "node:crypto";
|
|
32307
32754
|
import { existsSync as existsSync20, mkdirSync as mkdirSync8, readdirSync as readdirSync8, readFileSync as readFileSync16, statSync as statSync6, writeFileSync as writeFileSync7 } from "node:fs";
|
|
32308
32755
|
import { dirname as dirname6, join as join24 } from "node:path";
|
|
@@ -32393,7 +32840,7 @@ function checkApprovalHash(root, id) {
|
|
|
32393
32840
|
return { valid: true, approval };
|
|
32394
32841
|
}
|
|
32395
32842
|
|
|
32396
|
-
// src/update/snapshot.ts
|
|
32843
|
+
// packages/core/src/update/snapshot.ts
|
|
32397
32844
|
import { cpSync as cpSync2, existsSync as existsSync21, mkdirSync as mkdirSync9, readdirSync as readdirSync9, readFileSync as readFileSync17, rmSync as rmSync8 } from "node:fs";
|
|
32398
32845
|
import { join as join25 } from "node:path";
|
|
32399
32846
|
var gateFile = (root, id) => join25(root, ".factory", "runs", id, "snapshot", "gates.json");
|
|
@@ -32442,7 +32889,7 @@ function dropAgentSnapshot(root, id) {
|
|
|
32442
32889
|
rmSync8(dir, { recursive: true });
|
|
32443
32890
|
}
|
|
32444
32891
|
|
|
32445
|
-
// src/pipeline/approve.ts
|
|
32892
|
+
// packages/core/src/pipeline/approve.ts
|
|
32446
32893
|
async function approve(p, id) {
|
|
32447
32894
|
let run = p.run(id);
|
|
32448
32895
|
assertApprovable(id, run);
|
|
@@ -32540,18 +32987,18 @@ async function verifyApproval(p, id, dir) {
|
|
|
32540
32987
|
}
|
|
32541
32988
|
}
|
|
32542
32989
|
|
|
32543
|
-
// src/pipeline/contracts.ts
|
|
32990
|
+
// packages/core/src/pipeline/contracts.ts
|
|
32544
32991
|
import { mkdirSync as mkdirSync14, writeFileSync as writeFileSync10 } from "node:fs";
|
|
32545
32992
|
import { join as join40 } from "node:path";
|
|
32546
32993
|
|
|
32547
|
-
// src/contracts/gate.ts
|
|
32994
|
+
// packages/core/src/contracts/gate.ts
|
|
32548
32995
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
32549
32996
|
var import__2020 = __toESM(require__2020(), 1);
|
|
32550
32997
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
32551
32998
|
import { readFileSync as readFileSync20 } from "node:fs";
|
|
32552
32999
|
import { join as join28 } from "node:path";
|
|
32553
33000
|
|
|
32554
|
-
// src/gates/compact.ts
|
|
33001
|
+
// packages/core/src/gates/compact.ts
|
|
32555
33002
|
var ANSI = /\u001b\[[0-9;?]*[ -/]*[@-~]|\u001b\][^\u0007]*\u0007/g;
|
|
32556
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;
|
|
32557
33004
|
var CONTEXT = 2;
|
|
@@ -32597,7 +33044,7 @@ function compactOutput(raw, maxLines) {
|
|
|
32597
33044
|
`);
|
|
32598
33045
|
}
|
|
32599
33046
|
|
|
32600
|
-
// src/gates/guard.ts
|
|
33047
|
+
// packages/core/src/gates/guard.ts
|
|
32601
33048
|
import { createHash as createHash4 } from "node:crypto";
|
|
32602
33049
|
import { existsSync as existsSync23, mkdirSync as mkdirSync10, readFileSync as readFileSync19, rmSync as rmSync9, writeFileSync as writeFileSync8 } from "node:fs";
|
|
32603
33050
|
import { dirname as dirname7, join as join27 } from "node:path";
|
|
@@ -32676,7 +33123,7 @@ async function restore(before, paths) {
|
|
|
32676
33123
|
}
|
|
32677
33124
|
}
|
|
32678
33125
|
|
|
32679
|
-
// src/contracts/schema-diff.ts
|
|
33126
|
+
// packages/core/src/contracts/schema-diff.ts
|
|
32680
33127
|
var isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
32681
33128
|
function deref(schema, resolve) {
|
|
32682
33129
|
let current = schema;
|
|
@@ -32817,7 +33264,7 @@ function localResolver(doc) {
|
|
|
32817
33264
|
};
|
|
32818
33265
|
}
|
|
32819
33266
|
|
|
32820
|
-
// src/contracts/openapi.ts
|
|
33267
|
+
// packages/core/src/contracts/openapi.ts
|
|
32821
33268
|
var isObj2 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
32822
33269
|
var METHODS = ["get", "put", "post", "delete", "options", "head", "patch", "trace"];
|
|
32823
33270
|
var normalizePath = (path) => path.replace(/\{[^}]+\}/g, "{}");
|
|
@@ -32953,7 +33400,7 @@ function referencedRemovedPaths(oldDoc, newDoc, sources) {
|
|
|
32953
33400
|
});
|
|
32954
33401
|
}
|
|
32955
33402
|
|
|
32956
|
-
// src/contracts/proto.ts
|
|
33403
|
+
// packages/core/src/contracts/proto.ts
|
|
32957
33404
|
function stripComments3(text) {
|
|
32958
33405
|
return text.replace(/\/\*[\s\S]*?\*\//g, " ").replace(/\/\/[^\n]*/g, " ");
|
|
32959
33406
|
}
|
|
@@ -33160,7 +33607,7 @@ function diffProto(oldModel, newModel) {
|
|
|
33160
33607
|
return out;
|
|
33161
33608
|
}
|
|
33162
33609
|
|
|
33163
|
-
// src/contracts/gate.ts
|
|
33610
|
+
// packages/core/src/contracts/gate.ts
|
|
33164
33611
|
var contractKey2 = (c) => `${c.kind}:${c.provider}:${c.path}`;
|
|
33165
33612
|
var addFormats = import_ajv_formats.default;
|
|
33166
33613
|
function compile2(schema) {
|
|
@@ -33362,7 +33809,7 @@ function touchedContracts(config, repos) {
|
|
|
33362
33809
|
return config.contracts.filter((c) => repos.has(c.provider) || c.consumers.some((x) => repos.has(x)));
|
|
33363
33810
|
}
|
|
33364
33811
|
|
|
33365
|
-
// src/pipeline/implement.ts
|
|
33812
|
+
// packages/core/src/pipeline/implement.ts
|
|
33366
33813
|
import {
|
|
33367
33814
|
existsSync as existsSync31,
|
|
33368
33815
|
mkdirSync as mkdirSync13,
|
|
@@ -33374,11 +33821,11 @@ import {
|
|
|
33374
33821
|
} from "node:fs";
|
|
33375
33822
|
import { join as join39 } from "node:path";
|
|
33376
33823
|
|
|
33377
|
-
// src/gates/affected.ts
|
|
33824
|
+
// packages/core/src/gates/affected.ts
|
|
33378
33825
|
import { existsSync as existsSync25, readFileSync as readFileSync22 } from "node:fs";
|
|
33379
33826
|
import { join as join30, relative as relative6 } from "node:path";
|
|
33380
33827
|
|
|
33381
|
-
// src/gates/targets.ts
|
|
33828
|
+
// packages/core/src/gates/targets.ts
|
|
33382
33829
|
import { existsSync as existsSync24, readFileSync as readFileSync21 } from "node:fs";
|
|
33383
33830
|
import { join as join29 } from "node:path";
|
|
33384
33831
|
var WALK2 = { maxDepth: 8, maxFiles: 50000 };
|
|
@@ -33464,7 +33911,7 @@ function requirementHolds(req, worktree, dir) {
|
|
|
33464
33911
|
});
|
|
33465
33912
|
}
|
|
33466
33913
|
|
|
33467
|
-
// src/gates/affected.ts
|
|
33914
|
+
// packages/core/src/gates/affected.ts
|
|
33468
33915
|
async function changedFiles(worktree, base) {
|
|
33469
33916
|
const diff = await git(["diff", "--name-only", "--no-renames", base, "--"], { cwd: worktree });
|
|
33470
33917
|
const untracked = await git(["ls-files", "--others", "--exclude-standard"], { cwd: worktree });
|
|
@@ -33551,7 +33998,7 @@ function fillPlaceholders(command, values) {
|
|
|
33551
33998
|
return empty ? undefined : out;
|
|
33552
33999
|
}
|
|
33553
34000
|
|
|
33554
|
-
// src/gates/definitions.ts
|
|
34001
|
+
// packages/core/src/gates/definitions.ts
|
|
33555
34002
|
import { readFileSync as readFileSync23 } from "node:fs";
|
|
33556
34003
|
import { join as join31 } from "node:path";
|
|
33557
34004
|
var HOSTS = ["package.json", "Makefile", "justfile", "Justfile", "Taskfile.yml", "Taskfile.yaml"];
|
|
@@ -33617,11 +34064,11 @@ async function changedGateDefinitions(dir, base, names) {
|
|
|
33617
34064
|
return out;
|
|
33618
34065
|
}
|
|
33619
34066
|
|
|
33620
|
-
// src/gates/install.ts
|
|
34067
|
+
// packages/core/src/gates/install.ts
|
|
33621
34068
|
import { existsSync as existsSync26, mkdirSync as mkdirSync11 } from "node:fs";
|
|
33622
34069
|
import { join as join32 } from "node:path";
|
|
33623
34070
|
|
|
33624
|
-
// src/runtime/credentials.ts
|
|
34071
|
+
// packages/core/src/runtime/credentials.ts
|
|
33625
34072
|
var PROVIDER_ENV = {
|
|
33626
34073
|
anthropic: ["ANTHROPIC_API_KEY", "ANTHROPIC_BASE_URL"],
|
|
33627
34074
|
openai: ["OPENAI_API_KEY", "OPENAI_BASE_URL", "OPENAI_ORG_ID"],
|
|
@@ -33670,7 +34117,7 @@ function agentProcessEnv(base = process.env) {
|
|
|
33670
34117
|
return { ...env, ...agentGitEnv(base) };
|
|
33671
34118
|
}
|
|
33672
34119
|
|
|
33673
|
-
// src/gates/install.ts
|
|
34120
|
+
// packages/core/src/gates/install.ts
|
|
33674
34121
|
function cacheEnv(root, repoName) {
|
|
33675
34122
|
const cache = join32(root, ".factory", "cache");
|
|
33676
34123
|
const env = {
|
|
@@ -33733,7 +34180,7 @@ async function installDeps(root, worktree, repo, timeoutMs = 15 * 60000) {
|
|
|
33733
34180
|
return steps;
|
|
33734
34181
|
}
|
|
33735
34182
|
|
|
33736
|
-
// src/gates/resolve.ts
|
|
34183
|
+
// packages/core/src/gates/resolve.ts
|
|
33737
34184
|
import { existsSync as existsSync27, readFileSync as readFileSync24 } from "node:fs";
|
|
33738
34185
|
import { join as join33 } from "node:path";
|
|
33739
34186
|
var GATES_BY_MODE = {
|
|
@@ -33941,11 +34388,11 @@ function repoPlaceholders(input, targets) {
|
|
|
33941
34388
|
};
|
|
33942
34389
|
}
|
|
33943
34390
|
|
|
33944
|
-
// src/gates/run.ts
|
|
34391
|
+
// packages/core/src/gates/run.ts
|
|
33945
34392
|
import { existsSync as existsSync29 } from "node:fs";
|
|
33946
34393
|
import { delimiter, join as join37 } from "node:path";
|
|
33947
34394
|
|
|
33948
|
-
// src/addons/shortcuts.ts
|
|
34395
|
+
// packages/core/src/addons/shortcuts.ts
|
|
33949
34396
|
import { readFileSync as readFileSync25 } from "node:fs";
|
|
33950
34397
|
import { join as join34 } from "node:path";
|
|
33951
34398
|
var SHORTCUT = /(?:\/\/|#|\/\*|\*|--|<!--|;)\s*(?:shortcut|ponytail):\s*(.+?)\s*(?:\*\/|-->)?\s*$/i;
|
|
@@ -34004,7 +34451,7 @@ async function changeShortcuts(dir, base, head) {
|
|
|
34004
34451
|
return shortcutsInDiff(diff.stdout);
|
|
34005
34452
|
}
|
|
34006
34453
|
|
|
34007
|
-
// src/policy/paths.ts
|
|
34454
|
+
// packages/core/src/policy/paths.ts
|
|
34008
34455
|
var PROTECTED = [
|
|
34009
34456
|
/^openspec\/specs(\/|$)/i,
|
|
34010
34457
|
/^\.opencode(\/|$)/i,
|
|
@@ -34083,11 +34530,11 @@ function isGeneratedLockfile(path) {
|
|
|
34083
34530
|
return GENERATED_LOCKFILES.has(p.slice(p.lastIndexOf("/") + 1).toLowerCase());
|
|
34084
34531
|
}
|
|
34085
34532
|
|
|
34086
|
-
// src/policy/sandbox.ts
|
|
34533
|
+
// packages/core/src/policy/sandbox.ts
|
|
34087
34534
|
import { existsSync as existsSync28, readFileSync as readFileSync26 } from "node:fs";
|
|
34088
34535
|
import { isAbsolute, join as join36, resolve as resolve4 } from "node:path";
|
|
34089
34536
|
|
|
34090
|
-
// src/policy/realpath.ts
|
|
34537
|
+
// packages/core/src/policy/realpath.ts
|
|
34091
34538
|
import { lstatSync, readlinkSync, realpathSync as realpathSync2 } from "node:fs";
|
|
34092
34539
|
import { basename as basename2, dirname as dirname8, join as join35, resolve as resolve3 } from "node:path";
|
|
34093
34540
|
function realPathOf(abs, depth = 0) {
|
|
@@ -34117,7 +34564,7 @@ function realPathOf(abs, depth = 0) {
|
|
|
34117
34564
|
return abs;
|
|
34118
34565
|
}
|
|
34119
34566
|
|
|
34120
|
-
// src/policy/sandbox.ts
|
|
34567
|
+
// packages/core/src/policy/sandbox.ts
|
|
34121
34568
|
var SANDBOX_EXEC = "/usr/bin/sandbox-exec";
|
|
34122
34569
|
function sandboxEnabled(setting, platform = process.platform, exists = existsSync28) {
|
|
34123
34570
|
return setting !== "off" && platform === "darwin" && exists(SANDBOX_EXEC);
|
|
@@ -34261,7 +34708,7 @@ function checkoutPolicy(workspace, dir, extra = [], home = process.env.HOME) {
|
|
|
34261
34708
|
};
|
|
34262
34709
|
}
|
|
34263
34710
|
|
|
34264
|
-
// src/gates/run.ts
|
|
34711
|
+
// packages/core/src/gates/run.ts
|
|
34265
34712
|
var FAILING = new Set(["fail", "missing", "not-check-only", "timeout"]);
|
|
34266
34713
|
var TEST_GATES = new Set(["test", "testAffected"]);
|
|
34267
34714
|
function staleLockfileNote(paths) {
|
|
@@ -34481,7 +34928,7 @@ async function runGates(input) {
|
|
|
34481
34928
|
};
|
|
34482
34929
|
}
|
|
34483
34930
|
|
|
34484
|
-
// src/git/worktrees.ts
|
|
34931
|
+
// packages/core/src/git/worktrees.ts
|
|
34485
34932
|
import { existsSync as existsSync30, mkdirSync as mkdirSync12 } from "node:fs";
|
|
34486
34933
|
import { dirname as dirname9, join as join38 } from "node:path";
|
|
34487
34934
|
var taskBranch = (id, task) => `${changeBranch(id)}--${task}`;
|
|
@@ -34507,7 +34954,7 @@ async function removeTaskWorktree(repoDir, wt) {
|
|
|
34507
34954
|
return del.code === 0 || !await refExists(repoDir, `refs/heads/${wt.branch}`);
|
|
34508
34955
|
}
|
|
34509
34956
|
|
|
34510
|
-
// src/git/merge-queue.ts
|
|
34957
|
+
// packages/core/src/git/merge-queue.ts
|
|
34511
34958
|
var NON_INTERACTIVE = { GIT_EDITOR: "true", GIT_SEQUENCE_EDITOR: "true" };
|
|
34512
34959
|
async function conflictedFiles(worktree) {
|
|
34513
34960
|
const out = await gitOk(["diff", "--name-only", "--diff-filter=U"], { cwd: worktree });
|
|
@@ -34574,7 +35021,7 @@ class MergeQueue {
|
|
|
34574
35021
|
}
|
|
34575
35022
|
}
|
|
34576
35023
|
|
|
34577
|
-
// src/graph/updater.ts
|
|
35024
|
+
// packages/core/src/graph/updater.ts
|
|
34578
35025
|
class GraphUpdater {
|
|
34579
35026
|
update;
|
|
34580
35027
|
onCovered;
|
|
@@ -34625,7 +35072,7 @@ class GraphUpdater {
|
|
|
34625
35072
|
}
|
|
34626
35073
|
}
|
|
34627
35074
|
|
|
34628
|
-
// src/policy/scope.ts
|
|
35075
|
+
// packages/core/src/policy/scope.ts
|
|
34629
35076
|
import { isAbsolute as isAbsolute2, normalize, relative as relative7, resolve as resolve5 } from "node:path";
|
|
34630
35077
|
var architectDirs = (changeId) => [
|
|
34631
35078
|
`openspec/changes/${changeId}/`,
|
|
@@ -34690,7 +35137,7 @@ function auditChanges(ctx, changed, approved) {
|
|
|
34690
35137
|
});
|
|
34691
35138
|
}
|
|
34692
35139
|
|
|
34693
|
-
// src/scheduler/scheduler.ts
|
|
35140
|
+
// packages/core/src/scheduler/scheduler.ts
|
|
34694
35141
|
var MAX_TRANSIENT = 3;
|
|
34695
35142
|
var TERMINAL = new Set(["merged", "failed", "cancelled"]);
|
|
34696
35143
|
function retryTask(draft, taskId) {
|
|
@@ -35055,7 +35502,7 @@ class Scheduler {
|
|
|
35055
35502
|
}
|
|
35056
35503
|
}
|
|
35057
35504
|
|
|
35058
|
-
// src/tasks/routing.ts
|
|
35505
|
+
// packages/core/src/tasks/routing.ts
|
|
35059
35506
|
function agentForTask(config, repo, touches) {
|
|
35060
35507
|
for (const rule of config.routing) {
|
|
35061
35508
|
const agent = config.agents.find((a) => a.id === rule.agent);
|
|
@@ -35074,7 +35521,7 @@ function agentForTask(config, repo, touches) {
|
|
|
35074
35521
|
return { agent: `implementer-${repo}`, role: "implementer", custom: false };
|
|
35075
35522
|
}
|
|
35076
35523
|
|
|
35077
|
-
// src/util/cap.ts
|
|
35524
|
+
// packages/core/src/util/cap.ts
|
|
35078
35525
|
var CHARS_PER_TOKEN = 4;
|
|
35079
35526
|
var estimateTokens = (text) => Math.ceil(text.length / CHARS_PER_TOKEN);
|
|
35080
35527
|
function capText(text, maxTokens, note) {
|
|
@@ -35088,7 +35535,7 @@ function capText(text, maxTokens, note) {
|
|
|
35088
35535
|
${note}`;
|
|
35089
35536
|
}
|
|
35090
35537
|
|
|
35091
|
-
// src/pipeline/implement.ts
|
|
35538
|
+
// packages/core/src/pipeline/implement.ts
|
|
35092
35539
|
var forbidShortcuts = (p) => p.config.addons.ponytail.enabled && p.config.addons.ponytail.shortcutComments === "forbid";
|
|
35093
35540
|
function gateDefinitions(p, id) {
|
|
35094
35541
|
const snapshot = loadGateSnapshot(p.root, id);
|
|
@@ -35633,7 +36080,7 @@ async function implement(p, id) {
|
|
|
35633
36080
|
return adjusted;
|
|
35634
36081
|
}
|
|
35635
36082
|
|
|
35636
|
-
// src/pipeline/contracts.ts
|
|
36083
|
+
// packages/core/src/pipeline/contracts.ts
|
|
35637
36084
|
var MAX_CONTRACT_ROUNDS = 1;
|
|
35638
36085
|
function addFixTask(p, draft, id, task) {
|
|
35639
36086
|
if (draft.tasks.some((t) => t.id === task.id))
|
|
@@ -35768,11 +36215,11 @@ ${summarize(r)}
|
|
|
35768
36215
|
return { ok: true, added, issues: [] };
|
|
35769
36216
|
}
|
|
35770
36217
|
|
|
35771
|
-
// src/pipeline/finish.ts
|
|
36218
|
+
// packages/core/src/pipeline/finish.ts
|
|
35772
36219
|
import { existsSync as existsSync33, mkdirSync as mkdirSync16, readdirSync as readdirSync12, readFileSync as readFileSync29, writeFileSync as writeFileSync12 } from "node:fs";
|
|
35773
36220
|
import { join as join42 } from "node:path";
|
|
35774
36221
|
|
|
35775
|
-
// src/artifacts/export.ts
|
|
36222
|
+
// packages/core/src/artifacts/export.ts
|
|
35776
36223
|
import {
|
|
35777
36224
|
existsSync as existsSync32,
|
|
35778
36225
|
mkdirSync as mkdirSync15,
|
|
@@ -35917,7 +36364,7 @@ async function maybeExport(root, config, id, options = {}) {
|
|
|
35917
36364
|
return exportArtifacts(root, config, id, options);
|
|
35918
36365
|
}
|
|
35919
36366
|
|
|
35920
|
-
// src/git/pointers.ts
|
|
36367
|
+
// packages/core/src/git/pointers.ts
|
|
35921
36368
|
import { join as join41 } from "node:path";
|
|
35922
36369
|
var PROVISIONAL_SUBJECT = (id) => `chore(submodules): bump for ${id} [provisional]`;
|
|
35923
36370
|
async function bumpPointers(root, id, repos) {
|
|
@@ -36068,7 +36515,7 @@ async function repoint(root, config, id) {
|
|
|
36068
36515
|
return { ...commit ? { commit } : {}, results };
|
|
36069
36516
|
}
|
|
36070
36517
|
|
|
36071
|
-
// src/pipeline/finish.ts
|
|
36518
|
+
// packages/core/src/pipeline/finish.ts
|
|
36072
36519
|
var MAX_SUITE_ROUNDS = 2;
|
|
36073
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}\``;
|
|
36074
36521
|
var touchedRepos = (run) => [...new Set(run.tasks.map((t) => t.repo))];
|
|
@@ -36447,7 +36894,7 @@ Archived as \`openspec/changes/archive/${archivedAs}\`.`,
|
|
|
36447
36894
|
return file;
|
|
36448
36895
|
}
|
|
36449
36896
|
|
|
36450
|
-
// src/pipeline/drive.ts
|
|
36897
|
+
// packages/core/src/pipeline/drive.ts
|
|
36451
36898
|
async function ensureDriver(p, id) {
|
|
36452
36899
|
const claim = await claimActive(p.root, id);
|
|
36453
36900
|
if (claim.status === "busy")
|
|
@@ -36659,18 +37106,18 @@ async function step(p, id) {
|
|
|
36659
37106
|
}
|
|
36660
37107
|
}
|
|
36661
37108
|
|
|
36662
|
-
// src/runtime/opencode.ts
|
|
37109
|
+
// packages/core/src/runtime/opencode.ts
|
|
36663
37110
|
import { spawn as spawn2 } from "node:child_process";
|
|
36664
37111
|
import { randomBytes } from "node:crypto";
|
|
36665
37112
|
import { mkdirSync as mkdirSync17, writeFileSync as writeFileSync13 } from "node:fs";
|
|
36666
37113
|
import { createServer } from "node:net";
|
|
36667
37114
|
import { join as join44 } from "node:path";
|
|
36668
37115
|
|
|
36669
|
-
// src/policy/session-files.ts
|
|
37116
|
+
// packages/core/src/policy/session-files.ts
|
|
36670
37117
|
import { join as join43 } from "node:path";
|
|
36671
37118
|
var sessionContextFile = (workspace, sessionId) => join43(workspace, ".factory", "sessions", `${sessionId}.json`);
|
|
36672
37119
|
|
|
36673
|
-
// src/runtime/auth.ts
|
|
37120
|
+
// packages/core/src/runtime/auth.ts
|
|
36674
37121
|
var EXPORT_ENV = [
|
|
36675
37122
|
"PATH",
|
|
36676
37123
|
"HOME",
|
|
@@ -36882,7 +37329,7 @@ async function syncCredentials(api, scoped) {
|
|
|
36882
37329
|
return { created, updated, removed, activated, skipped, failed };
|
|
36883
37330
|
}
|
|
36884
37331
|
|
|
36885
|
-
// src/runtime/opencode.ts
|
|
37332
|
+
// packages/core/src/runtime/opencode.ts
|
|
36886
37333
|
var ENV_ALLOW = [
|
|
36887
37334
|
"PATH",
|
|
36888
37335
|
"HOME",
|
|
@@ -37348,7 +37795,7 @@ class OpencodeRuntime {
|
|
|
37348
37795
|
}
|
|
37349
37796
|
}
|
|
37350
37797
|
|
|
37351
|
-
//
|
|
37798
|
+
// packages/cli/src/commands/pipeline-commands.ts
|
|
37352
37799
|
async function setup(io) {
|
|
37353
37800
|
const root = await findWorkspaceRoot(io.cwd);
|
|
37354
37801
|
if (root === undefined)
|
|
@@ -37564,7 +38011,7 @@ kept worktrees, finished ones stay; a queued change starts when the workspace is
|
|
|
37564
38011
|
}
|
|
37565
38012
|
};
|
|
37566
38013
|
|
|
37567
|
-
//
|
|
38014
|
+
// packages/cli/src/commands/adopt.ts
|
|
37568
38015
|
var HELP = `Usage: loomwright adopt [<change-id>... | --all] [--dry-run] [--json] [--normalize] [--preserve-progress]
|
|
37569
38016
|
|
|
37570
38017
|
Takes over OpenSpec changes that already exist in openspec/changes/ when the factory is
|
|
@@ -37875,7 +38322,7 @@ function reportCode(results, dryRun) {
|
|
|
37875
38322
|
return ExitCode.Ok;
|
|
37876
38323
|
}
|
|
37877
38324
|
|
|
37878
|
-
//
|
|
38325
|
+
// packages/cli/src/commands/artifacts.ts
|
|
37879
38326
|
var HELP2 = `Usage: loomwright artifacts sync [<change-id> | --all] [--dry-run] [--json]
|
|
37880
38327
|
|
|
37881
38328
|
Copies a finished change's final report, approval record and usage ledger from the
|
|
@@ -37942,11 +38389,11 @@ var artifactsCommand = {
|
|
|
37942
38389
|
}
|
|
37943
38390
|
};
|
|
37944
38391
|
|
|
37945
|
-
//
|
|
38392
|
+
// packages/cli/src/commands/bench.ts
|
|
37946
38393
|
import { mkdirSync as mkdirSync19, writeFileSync as writeFileSync15 } from "node:fs";
|
|
37947
38394
|
import { join as join47 } from "node:path";
|
|
37948
38395
|
|
|
37949
|
-
// src/bench/ponytail.ts
|
|
38396
|
+
// packages/core/src/bench/ponytail.ts
|
|
37950
38397
|
import {
|
|
37951
38398
|
mkdirSync as mkdirSync18,
|
|
37952
38399
|
mkdtempSync as mkdtempSync3,
|
|
@@ -38172,7 +38619,7 @@ function benchMarkdown(results, models, date) {
|
|
|
38172
38619
|
`);
|
|
38173
38620
|
}
|
|
38174
38621
|
|
|
38175
|
-
//
|
|
38622
|
+
// packages/cli/src/commands/bench.ts
|
|
38176
38623
|
var HELP3 = `Usage: loomwright bench ponytail [--runs N] [--case ID] [--levels L,…] [--yes] [--json]
|
|
38177
38624
|
|
|
38178
38625
|
Runs each bench case (${BENCH_CASES.map((c) => c.id).join(", ")}) N times (default 3) with and
|
|
@@ -38263,13 +38710,13 @@ function benchCommand(cli) {
|
|
|
38263
38710
|
};
|
|
38264
38711
|
}
|
|
38265
38712
|
|
|
38266
|
-
//
|
|
38713
|
+
// packages/cli/src/commands/completion.ts
|
|
38267
38714
|
import { basename as basename3 } from "node:path";
|
|
38268
38715
|
|
|
38269
|
-
//
|
|
38716
|
+
// packages/cli/src/completion/engine.ts
|
|
38270
38717
|
import { resolve as resolve7 } from "node:path";
|
|
38271
38718
|
|
|
38272
|
-
//
|
|
38719
|
+
// packages/cli/src/completion/registry.ts
|
|
38273
38720
|
var registry2 = [];
|
|
38274
38721
|
function setCompletionCommands(commands) {
|
|
38275
38722
|
registry2 = commands;
|
|
@@ -38278,7 +38725,7 @@ function completionCommands() {
|
|
|
38278
38725
|
return registry2;
|
|
38279
38726
|
}
|
|
38280
38727
|
|
|
38281
|
-
//
|
|
38728
|
+
// packages/cli/src/completion/values.ts
|
|
38282
38729
|
import { readdirSync as readdirSync14 } from "node:fs";
|
|
38283
38730
|
import { join as join48 } from "node:path";
|
|
38284
38731
|
var names = (dir, suffix) => {
|
|
@@ -38401,7 +38848,7 @@ function valueCandidates(kind, context) {
|
|
|
38401
38848
|
}
|
|
38402
38849
|
}
|
|
38403
38850
|
|
|
38404
|
-
//
|
|
38851
|
+
// packages/cli/src/completion/engine.ts
|
|
38405
38852
|
var GLOBAL_FLAGS = [
|
|
38406
38853
|
{ value: "-C", description: "Run as if started in <dir>", complete: "dir" },
|
|
38407
38854
|
{ value: "-h", description: "Show help" },
|
|
@@ -38587,7 +39034,7 @@ async function completeWords(words, cwd) {
|
|
|
38587
39034
|
return commandCandidates(command, globals.rest.slice(1), current, globals.cwd);
|
|
38588
39035
|
}
|
|
38589
39036
|
|
|
38590
|
-
//
|
|
39037
|
+
// packages/cli/src/completion/scripts.ts
|
|
38591
39038
|
import {
|
|
38592
39039
|
chmodSync as chmodSync2,
|
|
38593
39040
|
existsSync as existsSync35,
|
|
@@ -38740,7 +39187,7 @@ function installCompletion(shell, cwd, override) {
|
|
|
38740
39187
|
return { path, changed: true };
|
|
38741
39188
|
}
|
|
38742
39189
|
|
|
38743
|
-
//
|
|
39190
|
+
// packages/cli/src/commands/completion.ts
|
|
38744
39191
|
var OPTIONS4 = {
|
|
38745
39192
|
install: { type: "boolean", default: false, description: "Add the script to your shell rc" },
|
|
38746
39193
|
rc: { type: "string", complete: "file", description: "With --install: the rc file to edit" }
|
|
@@ -38816,11 +39263,11 @@ var completeCommand = {
|
|
|
38816
39263
|
}
|
|
38817
39264
|
};
|
|
38818
39265
|
|
|
38819
|
-
//
|
|
39266
|
+
// packages/cli/src/commands/detect.ts
|
|
38820
39267
|
import { existsSync as existsSync36, renameSync as renameSync7, writeFileSync as writeFileSync17 } from "node:fs";
|
|
38821
39268
|
import { join as join50 } from "node:path";
|
|
38822
39269
|
|
|
38823
|
-
// src/detect/apply.ts
|
|
39270
|
+
// packages/core/src/detect/apply.ts
|
|
38824
39271
|
function applyChanges(text, config, changes) {
|
|
38825
39272
|
let out = text;
|
|
38826
39273
|
const repoIndex = (path) => config.repos.findIndex((r) => r.path === path);
|
|
@@ -38852,7 +39299,7 @@ function applyChanges(text, config, changes) {
|
|
|
38852
39299
|
return out;
|
|
38853
39300
|
}
|
|
38854
39301
|
|
|
38855
|
-
//
|
|
39302
|
+
// packages/cli/src/commands/detect.ts
|
|
38856
39303
|
var HELP5 = `Usage: loomwright detect [--apply [--no-commit] [--allow-downgrade]] [--check] [--json]
|
|
38857
39304
|
|
|
38858
39305
|
Re-detects the layout, repos, languages and contracts and shows the difference
|
|
@@ -38973,12 +39420,12 @@ var detectCommand = {
|
|
|
38973
39420
|
}
|
|
38974
39421
|
};
|
|
38975
39422
|
|
|
38976
|
-
// src/doctor/doctor.ts
|
|
39423
|
+
// packages/core/src/doctor/doctor.ts
|
|
38977
39424
|
import { existsSync as existsSync37, lstatSync as lstatSync2, mkdtempSync as mkdtempSync4, readdirSync as readdirSync15, readFileSync as readFileSync33, rmSync as rmSync12 } from "node:fs";
|
|
38978
39425
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
38979
39426
|
import { delimiter as delimiter2, extname, join as join51 } from "node:path";
|
|
38980
39427
|
|
|
38981
|
-
// src/policy/shell-parse.ts
|
|
39428
|
+
// packages/core/src/policy/shell-parse.ts
|
|
38982
39429
|
class ShellParseError extends Error {
|
|
38983
39430
|
}
|
|
38984
39431
|
var OPS = ["&&", "||", ";;", ";", "|&", "|", "&", "(", ")", `
|
|
@@ -39352,7 +39799,7 @@ function parseScript(src) {
|
|
|
39352
39799
|
return new Parser(new Lexer(src).lex()).script(false);
|
|
39353
39800
|
}
|
|
39354
39801
|
|
|
39355
|
-
// src/doctor/doctor.ts
|
|
39802
|
+
// packages/core/src/doctor/doctor.ts
|
|
39356
39803
|
var SHELL_BUILTINS = new Set([
|
|
39357
39804
|
"[",
|
|
39358
39805
|
"test",
|
|
@@ -39948,7 +40395,7 @@ async function runDoctor(root) {
|
|
|
39948
40395
|
return { checks: c.list, gates, uninitialised };
|
|
39949
40396
|
}
|
|
39950
40397
|
|
|
39951
|
-
//
|
|
40398
|
+
// packages/cli/src/commands/doctor.ts
|
|
39952
40399
|
var MARK2 = { ok: "✓", warn: "!", fail: "✗" };
|
|
39953
40400
|
function print(io, report) {
|
|
39954
40401
|
let section = "";
|
|
@@ -40020,7 +40467,7 @@ Exit code ${ExitCode.Precondition} when a check fails; warnings exit 0.`,
|
|
|
40020
40467
|
}
|
|
40021
40468
|
};
|
|
40022
40469
|
|
|
40023
|
-
//
|
|
40470
|
+
// packages/cli/src/commands/gate.ts
|
|
40024
40471
|
import { existsSync as existsSync38, readdirSync as readdirSync16 } from "node:fs";
|
|
40025
40472
|
import { join as join52 } from "node:path";
|
|
40026
40473
|
var HELP6 = `Usage: loomwright gate <change-id> [--task <id>] [--repo <name>] [--full] [--json]
|
|
@@ -40152,7 +40599,7 @@ var gateCommand = {
|
|
|
40152
40599
|
}
|
|
40153
40600
|
};
|
|
40154
40601
|
|
|
40155
|
-
//
|
|
40602
|
+
// packages/cli/src/commands/graph.ts
|
|
40156
40603
|
import { existsSync as existsSync39 } from "node:fs";
|
|
40157
40604
|
import { join as join53 } from "node:path";
|
|
40158
40605
|
var OPTIONS8 = {
|
|
@@ -40192,11 +40639,11 @@ The pipeline also updates it after every task merge, so this is rarely needed by
|
|
|
40192
40639
|
}
|
|
40193
40640
|
};
|
|
40194
40641
|
|
|
40195
|
-
//
|
|
40642
|
+
// packages/cli/src/commands/init.ts
|
|
40196
40643
|
import { existsSync as existsSync41, writeFileSync as writeFileSync18 } from "node:fs";
|
|
40197
40644
|
import { join as join55 } from "node:path";
|
|
40198
40645
|
|
|
40199
|
-
// src/config/render.ts
|
|
40646
|
+
// packages/core/src/config/render.ts
|
|
40200
40647
|
var DEFAULT_MODELS = {
|
|
40201
40648
|
orchestrator: "anthropic/claude-sonnet-5-5",
|
|
40202
40649
|
architect: "anthropic/claude-opus-5-5",
|
|
@@ -40358,7 +40805,7 @@ ${contracts}
|
|
|
40358
40805
|
`;
|
|
40359
40806
|
}
|
|
40360
40807
|
|
|
40361
|
-
// src/workspace/legacy.ts
|
|
40808
|
+
// packages/core/src/workspace/legacy.ts
|
|
40362
40809
|
import { existsSync as existsSync40, mkdirSync as mkdirSync21, readdirSync as readdirSync17, renameSync as renameSync8, rmdirSync as rmdirSync2 } from "node:fs";
|
|
40363
40810
|
import { dirname as dirname13, join as join54 } from "node:path";
|
|
40364
40811
|
var OPENSPEC_PREFIX = /^(opsx-|openspec-)/;
|
|
@@ -40400,7 +40847,7 @@ function archiveLegacySetups(root, repoPaths) {
|
|
|
40400
40847
|
return { stamp, archived };
|
|
40401
40848
|
}
|
|
40402
40849
|
|
|
40403
|
-
//
|
|
40850
|
+
// packages/cli/src/commands/init.ts
|
|
40404
40851
|
var OPENSPEC_CONFIG = "openspec/config.yaml";
|
|
40405
40852
|
var HELP7 = `Usage: loomwright init [--plan] [--force] [--allow-downgrade] [--no-commit] [--no-graph] [--json]
|
|
40406
40853
|
|
|
@@ -40572,7 +41019,7 @@ var initCommand = {
|
|
|
40572
41019
|
}
|
|
40573
41020
|
};
|
|
40574
41021
|
|
|
40575
|
-
// src/pipeline/land.ts
|
|
41022
|
+
// packages/core/src/pipeline/land.ts
|
|
40576
41023
|
import { existsSync as existsSync42, readdirSync as readdirSync18, readFileSync as readFileSync34, rmSync as rmSync13 } from "node:fs";
|
|
40577
41024
|
import { join as join56 } from "node:path";
|
|
40578
41025
|
var refs = {
|
|
@@ -40950,7 +41397,7 @@ var inProgress = async (dir) => {
|
|
|
40950
41397
|
return false;
|
|
40951
41398
|
};
|
|
40952
41399
|
|
|
40953
|
-
//
|
|
41400
|
+
// packages/cli/src/commands/land.ts
|
|
40954
41401
|
var OPTIONS10 = {
|
|
40955
41402
|
"dry-run": {
|
|
40956
41403
|
type: "boolean",
|
|
@@ -41035,11 +41482,11 @@ var landCommand = {
|
|
|
41035
41482
|
}
|
|
41036
41483
|
};
|
|
41037
41484
|
|
|
41038
|
-
// src/pipeline/quick.ts
|
|
41485
|
+
// packages/core/src/pipeline/quick.ts
|
|
41039
41486
|
import { rmSync as rmSync14 } from "node:fs";
|
|
41040
41487
|
import { join as join58 } from "node:path";
|
|
41041
41488
|
|
|
41042
|
-
// src/pipeline/refine.ts
|
|
41489
|
+
// packages/core/src/pipeline/refine.ts
|
|
41043
41490
|
import { mkdirSync as mkdirSync22, writeFileSync as writeFileSync19 } from "node:fs";
|
|
41044
41491
|
import { join as join57 } from "node:path";
|
|
41045
41492
|
var QUESTIONS = [
|
|
@@ -41100,7 +41547,7 @@ Q&A in \`openspec/changes/<id>/questions.md\`.
|
|
|
41100
41547
|
return { path, text };
|
|
41101
41548
|
}
|
|
41102
41549
|
|
|
41103
|
-
// src/pipeline/quick.ts
|
|
41550
|
+
// packages/core/src/pipeline/quick.ts
|
|
41104
41551
|
var quickChangeId = (task) => `quick-${requestSlug(task)}`;
|
|
41105
41552
|
async function revert(dir, paths) {
|
|
41106
41553
|
for (const path of paths) {
|
|
@@ -41320,7 +41767,7 @@ ${findings.join(`
|
|
|
41320
41767
|
};
|
|
41321
41768
|
}
|
|
41322
41769
|
|
|
41323
|
-
//
|
|
41770
|
+
// packages/cli/src/commands/quick.ts
|
|
41324
41771
|
var HELP9 = `Usage: loomwright quick "<task>" [--repo <name>] [--agent <id>] [--no-review] [--verbose|--quiet]
|
|
41325
41772
|
|
|
41326
41773
|
The no-OpenSpec path: create a task/<slug> branch, implement, run the repository gates, run
|
|
@@ -41372,7 +41819,7 @@ var quickCommand = {
|
|
|
41372
41819
|
}
|
|
41373
41820
|
};
|
|
41374
41821
|
|
|
41375
|
-
//
|
|
41822
|
+
// packages/cli/src/commands/refine.ts
|
|
41376
41823
|
var HELP10 = `Usage: loomwright refine "<request>"
|
|
41377
41824
|
|
|
41378
41825
|
Ask a few scope, verification and constraint questions, then write a refined request to
|
|
@@ -41396,7 +41843,7 @@ var refineCommand = {
|
|
|
41396
41843
|
}
|
|
41397
41844
|
};
|
|
41398
41845
|
|
|
41399
|
-
//
|
|
41846
|
+
// packages/cli/src/commands/repoint.ts
|
|
41400
41847
|
var HELP11 = `Usage: loomwright repoint <change-id> [--json]
|
|
41401
41848
|
|
|
41402
41849
|
After the submodule MRs of a change are merged upstream: fetches each submodule, finds the
|
|
@@ -41441,7 +41888,7 @@ var repointCommand = {
|
|
|
41441
41888
|
}
|
|
41442
41889
|
};
|
|
41443
41890
|
|
|
41444
|
-
// src/pipeline/reword.ts
|
|
41891
|
+
// packages/core/src/pipeline/reword.ts
|
|
41445
41892
|
import { createHash as createHash5 } from "node:crypto";
|
|
41446
41893
|
import {
|
|
41447
41894
|
existsSync as existsSync43,
|
|
@@ -41823,7 +42270,7 @@ async function reword(p, id, options = {}) {
|
|
|
41823
42270
|
return { changed: true, approval, specCommit, findings: remaining };
|
|
41824
42271
|
}
|
|
41825
42272
|
|
|
41826
|
-
//
|
|
42273
|
+
// packages/cli/src/commands/reword.ts
|
|
41827
42274
|
function selectedFindings(command, all, value) {
|
|
41828
42275
|
if (value === undefined)
|
|
41829
42276
|
return [...all];
|
|
@@ -41928,7 +42375,7 @@ architect apply review findings. Continue with \`loomwright resume <id>\`.
|
|
|
41928
42375
|
}
|
|
41929
42376
|
};
|
|
41930
42377
|
|
|
41931
|
-
//
|
|
42378
|
+
// packages/cli/src/commands/state-commands.ts
|
|
41932
42379
|
import { existsSync as existsSync44, readdirSync as readdirSync20 } from "node:fs";
|
|
41933
42380
|
import { join as join60 } from "node:path";
|
|
41934
42381
|
async function workspace(io) {
|
|
@@ -42220,7 +42667,7 @@ that were cancelled because of it. Continue the change with \`loomwright resume
|
|
|
42220
42667
|
}
|
|
42221
42668
|
};
|
|
42222
42669
|
|
|
42223
|
-
//
|
|
42670
|
+
// packages/cli/src/commands/update.ts
|
|
42224
42671
|
import { rmSync as rmSync16, writeFileSync as writeFileSync21 } from "node:fs";
|
|
42225
42672
|
import { join as join61 } from "node:path";
|
|
42226
42673
|
async function workspaceRoot(io) {
|
|
@@ -42380,7 +42827,7 @@ Restores every file the latest \`loomwright update\` touched (including the lock
|
|
|
42380
42827
|
}
|
|
42381
42828
|
};
|
|
42382
42829
|
|
|
42383
|
-
//
|
|
42830
|
+
// packages/cli/src/commands/usage.ts
|
|
42384
42831
|
import { basename as basename4 } from "node:path";
|
|
42385
42832
|
var DIMENSIONS = ["change", "agent", "model", "day"];
|
|
42386
42833
|
var OPTIONS14 = {
|
|
@@ -42501,7 +42948,7 @@ var usageCommand = {
|
|
|
42501
42948
|
}
|
|
42502
42949
|
};
|
|
42503
42950
|
|
|
42504
|
-
//
|
|
42951
|
+
// packages/cli/src/main.ts
|
|
42505
42952
|
var COMMANDS = [
|
|
42506
42953
|
initCommand,
|
|
42507
42954
|
adoptCommand,
|
|
@@ -42623,7 +43070,7 @@ ${usage()}`);
|
|
|
42623
43070
|
}
|
|
42624
43071
|
}
|
|
42625
43072
|
|
|
42626
|
-
//
|
|
43073
|
+
// packages/cli/src/bin.ts
|
|
42627
43074
|
var code = await runCli(process.argv.slice(2), {
|
|
42628
43075
|
cwd: process.cwd(),
|
|
42629
43076
|
out: (text) => process.stdout.write(`${text}
|