@agent-facets/adapter-claude-code 0.4.5 → 0.5.0
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/dist/index.d.mts +13 -4
- package/dist/index.mjs +125 -106
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -78,15 +78,24 @@ interface Adapter {
|
|
|
78
78
|
* applies adapter-specific defaults, and returns the enriched object.
|
|
79
79
|
*/
|
|
80
80
|
buildAssetMetadata(data: unknown): Validated<AdapterMetadata>;
|
|
81
|
-
/**
|
|
82
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Install an asset at the given scope. Returns the absolute path the
|
|
83
|
+
* asset was written to, if available — used for verbose diagnostic
|
|
84
|
+
* logging. Returning `void` is backward-compatible (older adapters
|
|
85
|
+
* that don't return a path still satisfy the contract).
|
|
86
|
+
*/
|
|
87
|
+
installAsset(scope: Scope, assetType: AssetType, name: string, content: string, metadata: unknown): Promise<string | undefined>;
|
|
83
88
|
/** Read an asset's content from the given scope */
|
|
84
89
|
readAsset(scope: Scope, assetType: AssetType, name: string): Promise<{
|
|
85
90
|
content: string;
|
|
86
91
|
metadata?: AdapterMetadata;
|
|
87
92
|
}>;
|
|
88
|
-
/**
|
|
89
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Delete an asset from the given scope. Returns the absolute path of
|
|
95
|
+
* the deleted asset, if available — used for verbose diagnostic
|
|
96
|
+
* logging. Returning `void` is backward-compatible.
|
|
97
|
+
*/
|
|
98
|
+
deleteAsset(scope: Scope, assetType: AssetType, name: string): Promise<string | undefined>;
|
|
90
99
|
}
|
|
91
100
|
//#endregion
|
|
92
101
|
//#region src/index.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
|
6
6
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
7
7
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
9
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
|
|
10
10
|
var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11
11
|
const ALIAS = Symbol.for("yaml.alias");
|
|
12
12
|
const DOC = Symbol.for("yaml.document");
|
|
@@ -56,7 +56,7 @@ var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56
56
|
exports.isSeq = isSeq;
|
|
57
57
|
}));
|
|
58
58
|
//#endregion
|
|
59
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
59
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js
|
|
60
60
|
var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
61
61
|
var identity = require_identity();
|
|
62
62
|
const BREAK = Symbol("break visit");
|
|
@@ -246,7 +246,7 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
246
246
|
exports.visitAsync = visitAsync;
|
|
247
247
|
}));
|
|
248
248
|
//#endregion
|
|
249
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
249
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
|
|
250
250
|
var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
251
251
|
var identity = require_identity();
|
|
252
252
|
var visit = require_visit();
|
|
@@ -411,7 +411,7 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
411
411
|
exports.Directives = Directives;
|
|
412
412
|
}));
|
|
413
413
|
//#endregion
|
|
414
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
414
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
|
|
415
415
|
var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
416
416
|
var identity = require_identity();
|
|
417
417
|
var visit = require_visit();
|
|
@@ -478,7 +478,7 @@ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
478
478
|
exports.findNewAnchor = findNewAnchor;
|
|
479
479
|
}));
|
|
480
480
|
//#endregion
|
|
481
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
481
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
|
|
482
482
|
var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
483
483
|
/**
|
|
484
484
|
* Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
|
|
@@ -518,7 +518,7 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
518
518
|
exports.applyReviver = applyReviver;
|
|
519
519
|
}));
|
|
520
520
|
//#endregion
|
|
521
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
521
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
|
|
522
522
|
var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
523
523
|
var identity = require_identity();
|
|
524
524
|
/**
|
|
@@ -555,7 +555,7 @@ var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
555
555
|
exports.toJS = toJS;
|
|
556
556
|
}));
|
|
557
557
|
//#endregion
|
|
558
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
558
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
|
|
559
559
|
var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
560
560
|
var applyReviver = require_applyReviver();
|
|
561
561
|
var identity = require_identity();
|
|
@@ -589,7 +589,7 @@ var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
589
589
|
exports.NodeBase = NodeBase;
|
|
590
590
|
}));
|
|
591
591
|
//#endregion
|
|
592
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
592
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
|
|
593
593
|
var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
594
594
|
var anchors = require_anchors();
|
|
595
595
|
var visit = require_visit();
|
|
@@ -609,6 +609,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
609
609
|
* instance of the `source` anchor before this node.
|
|
610
610
|
*/
|
|
611
611
|
resolve(doc, ctx) {
|
|
612
|
+
if (ctx?.maxAliasCount === 0) throw new ReferenceError("Alias resolution is disabled");
|
|
612
613
|
let nodes;
|
|
613
614
|
if (ctx?.aliasResolveCache) nodes = ctx.aliasResolveCache;
|
|
614
615
|
else {
|
|
@@ -682,7 +683,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
682
683
|
exports.Alias = Alias;
|
|
683
684
|
}));
|
|
684
685
|
//#endregion
|
|
685
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
686
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
|
|
686
687
|
var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
687
688
|
var identity = require_identity();
|
|
688
689
|
var Node = require_Node();
|
|
@@ -709,7 +710,7 @@ var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
709
710
|
exports.isScalarValue = isScalarValue;
|
|
710
711
|
}));
|
|
711
712
|
//#endregion
|
|
712
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
713
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
|
|
713
714
|
var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
714
715
|
var Alias = require_Alias();
|
|
715
716
|
var identity = require_identity();
|
|
@@ -772,7 +773,7 @@ var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
772
773
|
exports.createNode = createNode;
|
|
773
774
|
}));
|
|
774
775
|
//#endregion
|
|
775
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
776
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
|
|
776
777
|
var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
777
778
|
var createNode = require_createNode();
|
|
778
779
|
var identity = require_identity();
|
|
@@ -893,7 +894,7 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
893
894
|
exports.isEmptyPath = isEmptyPath;
|
|
894
895
|
}));
|
|
895
896
|
//#endregion
|
|
896
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
897
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
897
898
|
var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
898
899
|
/**
|
|
899
900
|
* Stringifies a comment.
|
|
@@ -913,7 +914,7 @@ var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
913
914
|
exports.stringifyComment = stringifyComment;
|
|
914
915
|
}));
|
|
915
916
|
//#endregion
|
|
916
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
917
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
917
918
|
var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
918
919
|
const FOLD_FLOW = "flow";
|
|
919
920
|
const FOLD_BLOCK = "block";
|
|
@@ -1029,7 +1030,7 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1029
1030
|
exports.foldFlowLines = foldFlowLines;
|
|
1030
1031
|
}));
|
|
1031
1032
|
//#endregion
|
|
1032
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1033
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1033
1034
|
var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1034
1035
|
var Scalar = require_Scalar();
|
|
1035
1036
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1253,7 +1254,7 @@ var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1253
1254
|
exports.stringifyString = stringifyString;
|
|
1254
1255
|
}));
|
|
1255
1256
|
//#endregion
|
|
1256
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1257
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
|
|
1257
1258
|
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1258
1259
|
var anchors = require_anchors();
|
|
1259
1260
|
var identity = require_identity();
|
|
@@ -1361,7 +1362,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1361
1362
|
exports.stringify = stringify;
|
|
1362
1363
|
}));
|
|
1363
1364
|
//#endregion
|
|
1364
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1365
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1365
1366
|
var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1366
1367
|
var identity = require_identity();
|
|
1367
1368
|
var Scalar = require_Scalar();
|
|
@@ -1458,7 +1459,7 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1458
1459
|
exports.stringifyPair = stringifyPair;
|
|
1459
1460
|
}));
|
|
1460
1461
|
//#endregion
|
|
1461
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1462
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js
|
|
1462
1463
|
var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1463
1464
|
var node_process$2 = __require("process");
|
|
1464
1465
|
function debug(logLevel, ...messages) {
|
|
@@ -1472,7 +1473,7 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1472
1473
|
exports.warn = warn;
|
|
1473
1474
|
}));
|
|
1474
1475
|
//#endregion
|
|
1475
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1476
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1476
1477
|
var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1477
1478
|
var identity = require_identity();
|
|
1478
1479
|
var Scalar = require_Scalar();
|
|
@@ -1487,13 +1488,13 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1487
1488
|
};
|
|
1488
1489
|
const isMergeKey = (ctx, key) => (merge.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
|
|
1489
1490
|
function addMergeToJSMap(ctx, map, value) {
|
|
1490
|
-
|
|
1491
|
-
if (identity.isSeq(
|
|
1492
|
-
else if (Array.isArray(
|
|
1493
|
-
else mergeValue(ctx, map,
|
|
1491
|
+
const source = resolveAliasValue(ctx, value);
|
|
1492
|
+
if (identity.isSeq(source)) for (const it of source.items) mergeValue(ctx, map, it);
|
|
1493
|
+
else if (Array.isArray(source)) for (const it of source) mergeValue(ctx, map, it);
|
|
1494
|
+
else mergeValue(ctx, map, source);
|
|
1494
1495
|
}
|
|
1495
1496
|
function mergeValue(ctx, map, value) {
|
|
1496
|
-
const source = ctx
|
|
1497
|
+
const source = resolveAliasValue(ctx, value);
|
|
1497
1498
|
if (!identity.isMap(source)) throw new Error("Merge sources must be maps or map aliases");
|
|
1498
1499
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
1499
1500
|
for (const [key, value] of srcMap) if (map instanceof Map) {
|
|
@@ -1507,12 +1508,15 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1507
1508
|
});
|
|
1508
1509
|
return map;
|
|
1509
1510
|
}
|
|
1511
|
+
function resolveAliasValue(ctx, value) {
|
|
1512
|
+
return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
|
|
1513
|
+
}
|
|
1510
1514
|
exports.addMergeToJSMap = addMergeToJSMap;
|
|
1511
1515
|
exports.isMergeKey = isMergeKey;
|
|
1512
1516
|
exports.merge = merge;
|
|
1513
1517
|
}));
|
|
1514
1518
|
//#endregion
|
|
1515
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1519
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1516
1520
|
var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1517
1521
|
var log = require_log();
|
|
1518
1522
|
var merge = require_merge();
|
|
@@ -1563,7 +1567,7 @@ var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1563
1567
|
exports.addPairToJSMap = addPairToJSMap;
|
|
1564
1568
|
}));
|
|
1565
1569
|
//#endregion
|
|
1566
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1570
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
|
|
1567
1571
|
var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1568
1572
|
var createNode = require_createNode();
|
|
1569
1573
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1596,7 +1600,7 @@ var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1596
1600
|
exports.createPair = createPair;
|
|
1597
1601
|
}));
|
|
1598
1602
|
//#endregion
|
|
1599
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1603
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1600
1604
|
var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1601
1605
|
var identity = require_identity();
|
|
1602
1606
|
var stringify = require_stringify();
|
|
@@ -1714,7 +1718,7 @@ var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1714
1718
|
exports.stringifyCollection = stringifyCollection;
|
|
1715
1719
|
}));
|
|
1716
1720
|
//#endregion
|
|
1717
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1721
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1718
1722
|
var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1719
1723
|
var stringifyCollection = require_stringifyCollection();
|
|
1720
1724
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -1823,7 +1827,7 @@ var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1823
1827
|
exports.findPair = findPair;
|
|
1824
1828
|
}));
|
|
1825
1829
|
//#endregion
|
|
1826
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1830
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
|
|
1827
1831
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1828
1832
|
var identity = require_identity();
|
|
1829
1833
|
var YAMLMap = require_YAMLMap();
|
|
@@ -1840,7 +1844,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1840
1844
|
};
|
|
1841
1845
|
}));
|
|
1842
1846
|
//#endregion
|
|
1843
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1847
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
1844
1848
|
var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1845
1849
|
var createNode = require_createNode();
|
|
1846
1850
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -1946,7 +1950,7 @@ var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1946
1950
|
exports.YAMLSeq = YAMLSeq;
|
|
1947
1951
|
}));
|
|
1948
1952
|
//#endregion
|
|
1949
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1953
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
|
|
1950
1954
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1951
1955
|
var identity = require_identity();
|
|
1952
1956
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -1963,7 +1967,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1963
1967
|
};
|
|
1964
1968
|
}));
|
|
1965
1969
|
//#endregion
|
|
1966
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1970
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
|
|
1967
1971
|
var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1968
1972
|
var stringifyString = require_stringifyString();
|
|
1969
1973
|
exports.string = {
|
|
@@ -1978,7 +1982,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1978
1982
|
};
|
|
1979
1983
|
}));
|
|
1980
1984
|
//#endregion
|
|
1981
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
1985
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
|
|
1982
1986
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1983
1987
|
var Scalar = require_Scalar();
|
|
1984
1988
|
const nullTag = {
|
|
@@ -1993,7 +1997,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1993
1997
|
exports.nullTag = nullTag;
|
|
1994
1998
|
}));
|
|
1995
1999
|
//#endregion
|
|
1996
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2000
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
|
|
1997
2001
|
var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1998
2002
|
var Scalar = require_Scalar();
|
|
1999
2003
|
const boolTag = {
|
|
@@ -2012,14 +2016,14 @@ var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2012
2016
|
exports.boolTag = boolTag;
|
|
2013
2017
|
}));
|
|
2014
2018
|
//#endregion
|
|
2015
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2019
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2016
2020
|
var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2017
2021
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2018
2022
|
if (typeof value === "bigint") return String(value);
|
|
2019
2023
|
const num = typeof value === "number" ? value : Number(value);
|
|
2020
2024
|
if (!isFinite(num)) return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
|
|
2021
2025
|
let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
|
|
2022
|
-
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") &&
|
|
2026
|
+
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
|
|
2023
2027
|
let i = n.indexOf(".");
|
|
2024
2028
|
if (i < 0) {
|
|
2025
2029
|
i = n.length;
|
|
@@ -2033,7 +2037,7 @@ var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2033
2037
|
exports.stringifyNumber = stringifyNumber;
|
|
2034
2038
|
}));
|
|
2035
2039
|
//#endregion
|
|
2036
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2040
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
|
|
2037
2041
|
var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2038
2042
|
var Scalar = require_Scalar();
|
|
2039
2043
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2074,7 +2078,7 @@ var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2074
2078
|
exports.floatNaN = floatNaN;
|
|
2075
2079
|
}));
|
|
2076
2080
|
//#endregion
|
|
2077
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2081
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
|
|
2078
2082
|
var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2079
2083
|
var stringifyNumber = require_stringifyNumber();
|
|
2080
2084
|
const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2115,7 +2119,7 @@ var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2115
2119
|
exports.intOct = intOct;
|
|
2116
2120
|
}));
|
|
2117
2121
|
//#endregion
|
|
2118
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2122
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
|
|
2119
2123
|
var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2120
2124
|
var map = require_map();
|
|
2121
2125
|
var _null = require_null();
|
|
@@ -2139,7 +2143,7 @@ var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2139
2143
|
];
|
|
2140
2144
|
}));
|
|
2141
2145
|
//#endregion
|
|
2142
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2146
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
|
|
2143
2147
|
var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2144
2148
|
var Scalar = require_Scalar();
|
|
2145
2149
|
var map = require_map();
|
|
@@ -2201,7 +2205,7 @@ var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2201
2205
|
});
|
|
2202
2206
|
}));
|
|
2203
2207
|
//#endregion
|
|
2204
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2208
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2205
2209
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2206
2210
|
var node_buffer = __require("buffer");
|
|
2207
2211
|
var Scalar = require_Scalar();
|
|
@@ -2257,7 +2261,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2257
2261
|
};
|
|
2258
2262
|
}));
|
|
2259
2263
|
//#endregion
|
|
2260
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2264
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2261
2265
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2262
2266
|
var identity = require_identity();
|
|
2263
2267
|
var Pair = require_Pair();
|
|
@@ -2317,7 +2321,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2317
2321
|
exports.resolvePairs = resolvePairs;
|
|
2318
2322
|
}));
|
|
2319
2323
|
//#endregion
|
|
2320
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2324
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2321
2325
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2322
2326
|
var identity = require_identity();
|
|
2323
2327
|
var toJS = require_toJS();
|
|
@@ -2380,7 +2384,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2380
2384
|
exports.omap = omap;
|
|
2381
2385
|
}));
|
|
2382
2386
|
//#endregion
|
|
2383
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2387
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2384
2388
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2385
2389
|
var Scalar = require_Scalar();
|
|
2386
2390
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2407,7 +2411,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2407
2411
|
exports.trueTag = trueTag;
|
|
2408
2412
|
}));
|
|
2409
2413
|
//#endregion
|
|
2410
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2414
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2411
2415
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2412
2416
|
var Scalar = require_Scalar();
|
|
2413
2417
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2451,7 +2455,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2451
2455
|
exports.floatNaN = floatNaN;
|
|
2452
2456
|
}));
|
|
2453
2457
|
//#endregion
|
|
2454
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2458
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2455
2459
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2456
2460
|
var stringifyNumber = require_stringifyNumber();
|
|
2457
2461
|
const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2526,7 +2530,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2526
2530
|
exports.intOct = intOct;
|
|
2527
2531
|
}));
|
|
2528
2532
|
//#endregion
|
|
2529
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2533
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2530
2534
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2531
2535
|
var identity = require_identity();
|
|
2532
2536
|
var Pair = require_Pair();
|
|
@@ -2594,7 +2598,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2594
2598
|
exports.set = set;
|
|
2595
2599
|
}));
|
|
2596
2600
|
//#endregion
|
|
2597
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2601
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2598
2602
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2599
2603
|
var stringifyNumber = require_stringifyNumber();
|
|
2600
2604
|
/** Internal types handle bigint as number, because TS can't figure it out. */
|
|
@@ -2677,7 +2681,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2677
2681
|
exports.timestamp = timestamp;
|
|
2678
2682
|
}));
|
|
2679
2683
|
//#endregion
|
|
2680
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2684
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
2681
2685
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2682
2686
|
var map = require_map();
|
|
2683
2687
|
var _null = require_null();
|
|
@@ -2717,7 +2721,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2717
2721
|
];
|
|
2718
2722
|
}));
|
|
2719
2723
|
//#endregion
|
|
2720
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2724
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
|
|
2721
2725
|
var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2722
2726
|
var map = require_map();
|
|
2723
2727
|
var _null = require_null();
|
|
@@ -2801,7 +2805,7 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2801
2805
|
exports.getTags = getTags;
|
|
2802
2806
|
}));
|
|
2803
2807
|
//#endregion
|
|
2804
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2808
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
|
|
2805
2809
|
var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2806
2810
|
var identity = require_identity();
|
|
2807
2811
|
var map = require_map();
|
|
@@ -2829,7 +2833,7 @@ var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2829
2833
|
};
|
|
2830
2834
|
}));
|
|
2831
2835
|
//#endregion
|
|
2832
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2836
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
2833
2837
|
var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2834
2838
|
var identity = require_identity();
|
|
2835
2839
|
var stringify = require_stringify();
|
|
@@ -2890,7 +2894,7 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2890
2894
|
exports.stringifyDocument = stringifyDocument;
|
|
2891
2895
|
}));
|
|
2892
2896
|
//#endregion
|
|
2893
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
2897
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
|
|
2894
2898
|
var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2895
2899
|
var Alias = require_Alias();
|
|
2896
2900
|
var Collection = require_Collection();
|
|
@@ -3171,7 +3175,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3171
3175
|
exports.Document = Document;
|
|
3172
3176
|
}));
|
|
3173
3177
|
//#endregion
|
|
3174
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3178
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js
|
|
3175
3179
|
var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3176
3180
|
var YAMLError = class extends Error {
|
|
3177
3181
|
constructor(name, pos, code, message) {
|
|
@@ -3224,7 +3228,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3224
3228
|
exports.prettifyError = prettifyError;
|
|
3225
3229
|
}));
|
|
3226
3230
|
//#endregion
|
|
3227
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3231
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
|
|
3228
3232
|
var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3229
3233
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3230
3234
|
let spaceBefore = false;
|
|
@@ -3331,7 +3335,7 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3331
3335
|
exports.resolveProps = resolveProps;
|
|
3332
3336
|
}));
|
|
3333
3337
|
//#endregion
|
|
3334
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3338
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3335
3339
|
var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3336
3340
|
function containsNewline(key) {
|
|
3337
3341
|
if (!key) return null;
|
|
@@ -3360,7 +3364,7 @@ var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
3360
3364
|
exports.containsNewline = containsNewline;
|
|
3361
3365
|
}));
|
|
3362
3366
|
//#endregion
|
|
3363
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3367
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3364
3368
|
var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3365
3369
|
var utilContainsNewline = require_util_contains_newline();
|
|
3366
3370
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3372,7 +3376,7 @@ var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
3372
3376
|
exports.flowIndentCheck = flowIndentCheck;
|
|
3373
3377
|
}));
|
|
3374
3378
|
//#endregion
|
|
3375
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3379
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3376
3380
|
var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3377
3381
|
var identity = require_identity();
|
|
3378
3382
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3384,7 +3388,7 @@ var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3384
3388
|
exports.mapIncludes = mapIncludes;
|
|
3385
3389
|
}));
|
|
3386
3390
|
//#endregion
|
|
3387
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3391
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3388
3392
|
var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3389
3393
|
var Pair = require_Pair();
|
|
3390
3394
|
var YAMLMap = require_YAMLMap();
|
|
@@ -3468,7 +3472,7 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3468
3472
|
exports.resolveBlockMap = resolveBlockMap;
|
|
3469
3473
|
}));
|
|
3470
3474
|
//#endregion
|
|
3471
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3475
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3472
3476
|
var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3473
3477
|
var YAMLSeq = require_YAMLSeq();
|
|
3474
3478
|
var resolveProps = require_resolve_props();
|
|
@@ -3510,7 +3514,7 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3510
3514
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
3511
3515
|
}));
|
|
3512
3516
|
//#endregion
|
|
3513
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3517
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
|
|
3514
3518
|
var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3515
3519
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
3516
3520
|
let comment = "";
|
|
@@ -3548,7 +3552,7 @@ var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3548
3552
|
exports.resolveEnd = resolveEnd;
|
|
3549
3553
|
}));
|
|
3550
3554
|
//#endregion
|
|
3551
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3555
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
3552
3556
|
var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3553
3557
|
var identity = require_identity();
|
|
3554
3558
|
var Pair = require_Pair();
|
|
@@ -3703,7 +3707,7 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
|
|
|
3703
3707
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
3704
3708
|
}));
|
|
3705
3709
|
//#endregion
|
|
3706
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3710
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
|
|
3707
3711
|
var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3708
3712
|
var identity = require_identity();
|
|
3709
3713
|
var Scalar = require_Scalar();
|
|
@@ -3755,7 +3759,7 @@ var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3755
3759
|
exports.composeCollection = composeCollection;
|
|
3756
3760
|
}));
|
|
3757
3761
|
//#endregion
|
|
3758
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3762
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
3759
3763
|
var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3760
3764
|
var Scalar = require_Scalar();
|
|
3761
3765
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -3931,7 +3935,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3931
3935
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
3932
3936
|
}));
|
|
3933
3937
|
//#endregion
|
|
3934
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
3938
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
3935
3939
|
var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3936
3940
|
var Scalar = require_Scalar();
|
|
3937
3941
|
var resolveEnd = require_resolve_end();
|
|
@@ -4065,11 +4069,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4065
4069
|
next = source[++i + 1];
|
|
4066
4070
|
while (next === " " || next === " ") next = source[++i + 1];
|
|
4067
4071
|
} else if (next === "x" || next === "u" || next === "U") {
|
|
4068
|
-
const length =
|
|
4069
|
-
x: 2,
|
|
4070
|
-
u: 4,
|
|
4071
|
-
U: 8
|
|
4072
|
-
}[next];
|
|
4072
|
+
const length = next === "x" ? 2 : next === "u" ? 4 : 8;
|
|
4073
4073
|
res += parseCharCode(source, i + 1, length, onError);
|
|
4074
4074
|
i += length;
|
|
4075
4075
|
} else {
|
|
@@ -4129,17 +4129,18 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4129
4129
|
function parseCharCode(source, offset, length, onError) {
|
|
4130
4130
|
const cc = source.substr(offset, length);
|
|
4131
4131
|
const code = cc.length === length && /^[0-9a-fA-F]+$/.test(cc) ? parseInt(cc, 16) : NaN;
|
|
4132
|
-
|
|
4132
|
+
try {
|
|
4133
|
+
return String.fromCodePoint(code);
|
|
4134
|
+
} catch {
|
|
4133
4135
|
const raw = source.substr(offset - 2, length + 2);
|
|
4134
4136
|
onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
|
|
4135
4137
|
return raw;
|
|
4136
4138
|
}
|
|
4137
|
-
return String.fromCodePoint(code);
|
|
4138
4139
|
}
|
|
4139
4140
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
4140
4141
|
}));
|
|
4141
4142
|
//#endregion
|
|
4142
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4143
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4143
4144
|
var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4144
4145
|
var identity = require_identity();
|
|
4145
4146
|
var Scalar = require_Scalar();
|
|
@@ -4198,7 +4199,7 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4198
4199
|
exports.composeScalar = composeScalar;
|
|
4199
4200
|
}));
|
|
4200
4201
|
//#endregion
|
|
4201
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4202
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4202
4203
|
var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4203
4204
|
function emptyScalarPosition(offset, before, pos) {
|
|
4204
4205
|
if (before) {
|
|
@@ -4225,7 +4226,7 @@ var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports
|
|
|
4225
4226
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
4226
4227
|
}));
|
|
4227
4228
|
//#endregion
|
|
4228
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4229
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
|
|
4229
4230
|
var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4230
4231
|
var Alias = require_Alias();
|
|
4231
4232
|
var identity = require_identity();
|
|
@@ -4314,7 +4315,7 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4314
4315
|
exports.composeNode = composeNode;
|
|
4315
4316
|
}));
|
|
4316
4317
|
//#endregion
|
|
4317
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4318
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
|
|
4318
4319
|
var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4319
4320
|
var Document = require_Document();
|
|
4320
4321
|
var composeNode = require_compose_node();
|
|
@@ -4356,7 +4357,7 @@ var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4356
4357
|
exports.composeDoc = composeDoc;
|
|
4357
4358
|
}));
|
|
4358
4359
|
//#endregion
|
|
4359
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4360
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
|
|
4360
4361
|
var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4361
4362
|
var node_process$1 = __require("process");
|
|
4362
4363
|
var directives = require_directives();
|
|
@@ -4440,8 +4441,8 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4440
4441
|
}
|
|
4441
4442
|
}
|
|
4442
4443
|
if (afterDoc) {
|
|
4443
|
-
|
|
4444
|
-
|
|
4444
|
+
for (let i = 0; i < this.errors.length; ++i) doc.errors.push(this.errors[i]);
|
|
4445
|
+
for (let i = 0; i < this.warnings.length; ++i) doc.warnings.push(this.warnings[i]);
|
|
4445
4446
|
} else {
|
|
4446
4447
|
doc.errors = this.errors;
|
|
4447
4448
|
doc.warnings = this.warnings;
|
|
@@ -4554,7 +4555,7 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4554
4555
|
exports.Composer = Composer;
|
|
4555
4556
|
}));
|
|
4556
4557
|
//#endregion
|
|
4557
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4558
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
|
|
4558
4559
|
var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4559
4560
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
4560
4561
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -4821,7 +4822,7 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4821
4822
|
exports.setScalarValue = setScalarValue;
|
|
4822
4823
|
}));
|
|
4823
4824
|
//#endregion
|
|
4824
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4825
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
|
|
4825
4826
|
var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4826
4827
|
/**
|
|
4827
4828
|
* Stringify a CST document, token, or collection item
|
|
@@ -4872,7 +4873,7 @@ var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4872
4873
|
exports.stringify = stringify;
|
|
4873
4874
|
}));
|
|
4874
4875
|
//#endregion
|
|
4875
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4876
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
|
|
4876
4877
|
var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4877
4878
|
const BREAK = Symbol("break visit");
|
|
4878
4879
|
const SKIP = Symbol("skip children");
|
|
@@ -4963,7 +4964,7 @@ var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4963
4964
|
exports.visit = visit;
|
|
4964
4965
|
}));
|
|
4965
4966
|
//#endregion
|
|
4966
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
4967
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
|
|
4967
4968
|
var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4968
4969
|
var cstScalar = require_cst_scalar();
|
|
4969
4970
|
var cstStringify = require_cst_stringify();
|
|
@@ -5042,7 +5043,7 @@ var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5042
5043
|
exports.tokenType = tokenType;
|
|
5043
5044
|
}));
|
|
5044
5045
|
//#endregion
|
|
5045
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
5046
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
|
|
5046
5047
|
var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5047
5048
|
var cst = require_cst();
|
|
5048
5049
|
function isEmpty(ch) {
|
|
@@ -5256,7 +5257,7 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5256
5257
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
5257
5258
|
this.indentNext = this.indentValue + 1;
|
|
5258
5259
|
this.indentValue += n;
|
|
5259
|
-
return
|
|
5260
|
+
return "block-start";
|
|
5260
5261
|
}
|
|
5261
5262
|
return "doc";
|
|
5262
5263
|
}
|
|
@@ -5500,22 +5501,34 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5500
5501
|
return 0;
|
|
5501
5502
|
}
|
|
5502
5503
|
*pushIndicators() {
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5504
|
+
let n = 0;
|
|
5505
|
+
loop: while (true) {
|
|
5506
|
+
switch (this.charAt(0)) {
|
|
5507
|
+
case "!":
|
|
5508
|
+
n += yield* this.pushTag();
|
|
5509
|
+
n += yield* this.pushSpaces(true);
|
|
5510
|
+
continue loop;
|
|
5511
|
+
case "&":
|
|
5512
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
5513
|
+
n += yield* this.pushSpaces(true);
|
|
5514
|
+
continue loop;
|
|
5515
|
+
case "-":
|
|
5516
|
+
case "?":
|
|
5517
|
+
case ":": {
|
|
5518
|
+
const inFlow = this.flowLevel > 0;
|
|
5519
|
+
const ch1 = this.charAt(1);
|
|
5520
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
5521
|
+
if (!inFlow) this.indentNext = this.indentValue + 1;
|
|
5522
|
+
else if (this.flowKey) this.flowKey = false;
|
|
5523
|
+
n += yield* this.pushCount(1);
|
|
5524
|
+
n += yield* this.pushSpaces(true);
|
|
5525
|
+
continue loop;
|
|
5526
|
+
}
|
|
5515
5527
|
}
|
|
5516
5528
|
}
|
|
5529
|
+
break loop;
|
|
5517
5530
|
}
|
|
5518
|
-
return
|
|
5531
|
+
return n;
|
|
5519
5532
|
}
|
|
5520
5533
|
*pushTag() {
|
|
5521
5534
|
if (this.charAt(1) === "<") {
|
|
@@ -5561,7 +5574,7 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5561
5574
|
exports.Lexer = Lexer;
|
|
5562
5575
|
}));
|
|
5563
5576
|
//#endregion
|
|
5564
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
5577
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
|
|
5565
5578
|
var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5566
5579
|
/**
|
|
5567
5580
|
* Tracks newlines during parsing in order to provide an efficient API for
|
|
@@ -5608,7 +5621,7 @@ var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5608
5621
|
exports.LineCounter = LineCounter;
|
|
5609
5622
|
}));
|
|
5610
5623
|
//#endregion
|
|
5611
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
5624
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
|
|
5612
5625
|
var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5613
5626
|
var node_process = __require("process");
|
|
5614
5627
|
var cst = require_cst();
|
|
@@ -5662,14 +5675,18 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5662
5675
|
while (prev[++i]?.type === "space");
|
|
5663
5676
|
return prev.splice(i, prev.length);
|
|
5664
5677
|
}
|
|
5678
|
+
function arrayPushArray(target, source) {
|
|
5679
|
+
if (source.length < 1e5) Array.prototype.push.apply(target, source);
|
|
5680
|
+
else for (let i = 0; i < source.length; ++i) target.push(source[i]);
|
|
5681
|
+
}
|
|
5665
5682
|
function fixFlowSeqItems(fc) {
|
|
5666
5683
|
if (fc.start.type === "flow-seq-start") {
|
|
5667
5684
|
for (const it of fc.items) if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) {
|
|
5668
5685
|
if (it.key) it.value = it.key;
|
|
5669
5686
|
delete it.key;
|
|
5670
|
-
if (isFlowToken(it.value)) if (it.value.end)
|
|
5687
|
+
if (isFlowToken(it.value)) if (it.value.end) arrayPushArray(it.value.end, it.sep);
|
|
5671
5688
|
else it.value.end = it.sep;
|
|
5672
|
-
else
|
|
5689
|
+
else arrayPushArray(it.start, it.sep);
|
|
5673
5690
|
delete it.sep;
|
|
5674
5691
|
}
|
|
5675
5692
|
}
|
|
@@ -6041,7 +6058,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6041
6058
|
if (this.atIndentedComment(it.start, map.indent)) {
|
|
6042
6059
|
const end = map.items[map.items.length - 2]?.value?.end;
|
|
6043
6060
|
if (Array.isArray(end)) {
|
|
6044
|
-
|
|
6061
|
+
arrayPushArray(end, it.start);
|
|
6045
6062
|
end.push(this.sourceToken);
|
|
6046
6063
|
map.items.pop();
|
|
6047
6064
|
return;
|
|
@@ -6239,7 +6256,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6239
6256
|
if (this.atIndentedComment(it.start, seq.indent)) {
|
|
6240
6257
|
const end = seq.items[seq.items.length - 2]?.value?.end;
|
|
6241
6258
|
if (Array.isArray(end)) {
|
|
6242
|
-
|
|
6259
|
+
arrayPushArray(end, it.start);
|
|
6243
6260
|
end.push(this.sourceToken);
|
|
6244
6261
|
seq.items.pop();
|
|
6245
6262
|
return;
|
|
@@ -6467,7 +6484,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6467
6484
|
exports.Parser = Parser;
|
|
6468
6485
|
}));
|
|
6469
6486
|
//#endregion
|
|
6470
|
-
//#region ../../../node_modules/.bun/yaml@2.
|
|
6487
|
+
//#region ../../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js
|
|
6471
6488
|
var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6472
6489
|
var composer = require_composer();
|
|
6473
6490
|
var Document = require_Document();
|
|
@@ -6679,6 +6696,7 @@ async function installAssetFile(path, body, metadata) {
|
|
|
6679
6696
|
await mkdir(dirname(path.file), { recursive: true });
|
|
6680
6697
|
const combined = assembleAssetContent(body, metadata);
|
|
6681
6698
|
await writeFile(path.file, combined, "utf8");
|
|
6699
|
+
return path.file;
|
|
6682
6700
|
}
|
|
6683
6701
|
/**
|
|
6684
6702
|
* Read the asset file at `path.file` and split it into body content +
|
|
@@ -6696,6 +6714,7 @@ async function readAssetFile(path) {
|
|
|
6696
6714
|
async function deleteAssetFile(path) {
|
|
6697
6715
|
await rm(path.file, { force: true });
|
|
6698
6716
|
await rm(`${path.file}.meta.json`, { force: true });
|
|
6717
|
+
return path.file;
|
|
6699
6718
|
}
|
|
6700
6719
|
/**
|
|
6701
6720
|
* Assemble a full file string from optional front-matter metadata + body.
|
|
@@ -14109,13 +14128,13 @@ var src_default = defineAdapter({
|
|
|
14109
14128
|
};
|
|
14110
14129
|
},
|
|
14111
14130
|
async installAsset(scope, assetType, name, content, metadata) {
|
|
14112
|
-
|
|
14131
|
+
return installAssetFile({ file: resolvePath(scope, assetType, name) }, content, metadata);
|
|
14113
14132
|
},
|
|
14114
14133
|
async readAsset(scope, assetType, name) {
|
|
14115
14134
|
return readAssetFile({ file: resolvePath(scope, assetType, name) });
|
|
14116
14135
|
},
|
|
14117
14136
|
async deleteAsset(scope, assetType, name) {
|
|
14118
|
-
|
|
14137
|
+
return deleteAssetFile({ file: resolvePath(scope, assetType, name) });
|
|
14119
14138
|
}
|
|
14120
14139
|
});
|
|
14121
14140
|
/**
|