@docyrus/docyrus 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -1
- package/agent-loader.js +249 -45
- package/agent-loader.js.map +3 -3
- package/main.js +499 -259
- package/main.js.map +4 -4
- package/package.json +2 -1
- package/resources/pi-agent/extensions/architect.ts +18 -34
- package/resources/pi-agent/extensions/plan.ts +1197 -0
- package/resources/pi-agent/shared/askUserProtocol.ts +248 -0
- package/resources/pi-agent/skills/docyrus-platform/SKILL.md +1 -1
- package/resources/pi-agent/skills/docyrus-platform/references/developer-tools.md +1 -1
- package/resources/pi-agent/skills/docyrus-platform/references/docyrus-cli-usage.md +46 -0
- package/resources/pi-agent/skills/docyrus-platform/references/querying-and-data-operations.md +7 -0
- package/server-loader.js +1647 -61
- package/server-loader.js.map +4 -4
package/main.js
CHANGED
|
@@ -34,9 +34,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
));
|
|
35
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
37
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
|
|
38
38
|
var require_identity = __commonJS({
|
|
39
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
39
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js"(exports2) {
|
|
40
40
|
"use strict";
|
|
41
41
|
var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
|
|
42
42
|
var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
|
|
@@ -91,9 +91,9 @@ var require_identity = __commonJS({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
94
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js
|
|
95
95
|
var require_visit = __commonJS({
|
|
96
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
96
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js"(exports2) {
|
|
97
97
|
"use strict";
|
|
98
98
|
var identity2 = require_identity();
|
|
99
99
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
@@ -249,9 +249,9 @@ var require_visit = __commonJS({
|
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
|
|
252
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
252
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
|
|
253
253
|
var require_directives = __commonJS({
|
|
254
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
254
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js"(exports2) {
|
|
255
255
|
"use strict";
|
|
256
256
|
var identity2 = require_identity();
|
|
257
257
|
var visit = require_visit();
|
|
@@ -420,9 +420,9 @@ var require_directives = __commonJS({
|
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
|
|
423
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
423
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
|
|
424
424
|
var require_anchors = __commonJS({
|
|
425
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
425
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js"(exports2) {
|
|
426
426
|
"use strict";
|
|
427
427
|
var identity2 = require_identity();
|
|
428
428
|
var visit = require_visit();
|
|
@@ -490,9 +490,9 @@ var require_anchors = __commonJS({
|
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
492
|
|
|
493
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
493
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
|
|
494
494
|
var require_applyReviver = __commonJS({
|
|
495
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
495
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
|
|
496
496
|
"use strict";
|
|
497
497
|
function applyReviver(reviver, obj, key, val) {
|
|
498
498
|
if (val && typeof val === "object") {
|
|
@@ -540,9 +540,9 @@ var require_applyReviver = __commonJS({
|
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
|
|
543
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
543
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
|
|
544
544
|
var require_toJS = __commonJS({
|
|
545
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
545
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
|
|
546
546
|
"use strict";
|
|
547
547
|
var identity2 = require_identity();
|
|
548
548
|
function toJS(value, arg, ctx) {
|
|
@@ -570,9 +570,9 @@ var require_toJS = __commonJS({
|
|
|
570
570
|
}
|
|
571
571
|
});
|
|
572
572
|
|
|
573
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
573
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
|
|
574
574
|
var require_Node = __commonJS({
|
|
575
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
575
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js"(exports2) {
|
|
576
576
|
"use strict";
|
|
577
577
|
var applyReviver = require_applyReviver();
|
|
578
578
|
var identity2 = require_identity();
|
|
@@ -611,9 +611,9 @@ var require_Node = __commonJS({
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
|
|
614
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
614
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
|
|
615
615
|
var require_Alias = __commonJS({
|
|
616
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
616
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
|
|
617
617
|
"use strict";
|
|
618
618
|
var anchors = require_anchors();
|
|
619
619
|
var visit = require_visit();
|
|
@@ -725,9 +725,9 @@ var require_Alias = __commonJS({
|
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
727
|
|
|
728
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
728
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
|
|
729
729
|
var require_Scalar = __commonJS({
|
|
730
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
730
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
|
|
731
731
|
"use strict";
|
|
732
732
|
var identity2 = require_identity();
|
|
733
733
|
var Node = require_Node();
|
|
@@ -755,9 +755,9 @@ var require_Scalar = __commonJS({
|
|
|
755
755
|
}
|
|
756
756
|
});
|
|
757
757
|
|
|
758
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
758
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
|
|
759
759
|
var require_createNode = __commonJS({
|
|
760
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
760
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js"(exports2) {
|
|
761
761
|
"use strict";
|
|
762
762
|
var Alias = require_Alias();
|
|
763
763
|
var identity2 = require_identity();
|
|
@@ -830,9 +830,9 @@ var require_createNode = __commonJS({
|
|
|
830
830
|
}
|
|
831
831
|
});
|
|
832
832
|
|
|
833
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
833
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
|
|
834
834
|
var require_Collection = __commonJS({
|
|
835
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
835
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
|
|
836
836
|
"use strict";
|
|
837
837
|
var createNode = require_createNode();
|
|
838
838
|
var identity2 = require_identity();
|
|
@@ -973,9 +973,9 @@ var require_Collection = __commonJS({
|
|
|
973
973
|
}
|
|
974
974
|
});
|
|
975
975
|
|
|
976
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
976
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
977
977
|
var require_stringifyComment = __commonJS({
|
|
978
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
978
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
|
|
979
979
|
"use strict";
|
|
980
980
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
981
981
|
function indentComment(comment, indent) {
|
|
@@ -990,9 +990,9 @@ var require_stringifyComment = __commonJS({
|
|
|
990
990
|
}
|
|
991
991
|
});
|
|
992
992
|
|
|
993
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
993
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
994
994
|
var require_foldFlowLines = __commonJS({
|
|
995
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
995
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
|
|
996
996
|
"use strict";
|
|
997
997
|
var FOLD_FLOW = "flow";
|
|
998
998
|
var FOLD_BLOCK = "block";
|
|
@@ -1126,9 +1126,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1126
1126
|
}
|
|
1127
1127
|
});
|
|
1128
1128
|
|
|
1129
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1129
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1130
1130
|
var require_stringifyString = __commonJS({
|
|
1131
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1131
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
|
|
1132
1132
|
"use strict";
|
|
1133
1133
|
var Scalar = require_Scalar();
|
|
1134
1134
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1409,9 +1409,9 @@ ${indent}`);
|
|
|
1409
1409
|
}
|
|
1410
1410
|
});
|
|
1411
1411
|
|
|
1412
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1412
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
1413
1413
|
var require_stringify = __commonJS({
|
|
1414
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1414
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
|
|
1415
1415
|
"use strict";
|
|
1416
1416
|
var anchors = require_anchors();
|
|
1417
1417
|
var identity2 = require_identity();
|
|
@@ -1434,6 +1434,7 @@ var require_stringify = __commonJS({
|
|
|
1434
1434
|
nullStr: "null",
|
|
1435
1435
|
simpleKeys: false,
|
|
1436
1436
|
singleQuote: null,
|
|
1437
|
+
trailingComma: false,
|
|
1437
1438
|
trueStr: "true",
|
|
1438
1439
|
verifyAliasOrder: true
|
|
1439
1440
|
}, doc.schema.toStringOptions, options2);
|
|
@@ -1532,9 +1533,9 @@ ${ctx.indent}${str}`;
|
|
|
1532
1533
|
}
|
|
1533
1534
|
});
|
|
1534
1535
|
|
|
1535
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1536
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1536
1537
|
var require_stringifyPair = __commonJS({
|
|
1537
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1538
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
|
|
1538
1539
|
"use strict";
|
|
1539
1540
|
var identity2 = require_identity();
|
|
1540
1541
|
var Scalar = require_Scalar();
|
|
@@ -1665,9 +1666,9 @@ ${ctx.indent}`;
|
|
|
1665
1666
|
}
|
|
1666
1667
|
});
|
|
1667
1668
|
|
|
1668
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1669
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js
|
|
1669
1670
|
var require_log = __commonJS({
|
|
1670
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1671
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js"(exports2) {
|
|
1671
1672
|
"use strict";
|
|
1672
1673
|
var node_process = require("process");
|
|
1673
1674
|
function debug(logLevel, ...messages) {
|
|
@@ -1687,9 +1688,9 @@ var require_log = __commonJS({
|
|
|
1687
1688
|
}
|
|
1688
1689
|
});
|
|
1689
1690
|
|
|
1690
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1691
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1691
1692
|
var require_merge = __commonJS({
|
|
1692
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1693
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
|
|
1693
1694
|
"use strict";
|
|
1694
1695
|
var identity2 = require_identity();
|
|
1695
1696
|
var Scalar = require_Scalar();
|
|
@@ -1744,9 +1745,9 @@ var require_merge = __commonJS({
|
|
|
1744
1745
|
}
|
|
1745
1746
|
});
|
|
1746
1747
|
|
|
1747
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1748
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1748
1749
|
var require_addPairToJSMap = __commonJS({
|
|
1749
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1750
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
|
|
1750
1751
|
"use strict";
|
|
1751
1752
|
var log = require_log();
|
|
1752
1753
|
var merge2 = require_merge();
|
|
@@ -1808,9 +1809,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1808
1809
|
}
|
|
1809
1810
|
});
|
|
1810
1811
|
|
|
1811
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1812
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
|
|
1812
1813
|
var require_Pair = __commonJS({
|
|
1813
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1814
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
|
|
1814
1815
|
"use strict";
|
|
1815
1816
|
var createNode = require_createNode();
|
|
1816
1817
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1848,9 +1849,9 @@ var require_Pair = __commonJS({
|
|
|
1848
1849
|
}
|
|
1849
1850
|
});
|
|
1850
1851
|
|
|
1851
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1852
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1852
1853
|
var require_stringifyCollection = __commonJS({
|
|
1853
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1854
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
1854
1855
|
"use strict";
|
|
1855
1856
|
var identity2 = require_identity();
|
|
1856
1857
|
var stringify = require_stringify();
|
|
@@ -1951,12 +1952,19 @@ ${indent}${line}` : "\n";
|
|
|
1951
1952
|
if (comment)
|
|
1952
1953
|
reqNewline = true;
|
|
1953
1954
|
let str = stringify.stringify(item, itemCtx, () => comment = null);
|
|
1954
|
-
|
|
1955
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
|
|
1956
|
+
if (i < items.length - 1) {
|
|
1955
1957
|
str += ",";
|
|
1958
|
+
} else if (ctx.options.trailingComma) {
|
|
1959
|
+
if (ctx.options.lineWidth > 0) {
|
|
1960
|
+
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
|
|
1961
|
+
}
|
|
1962
|
+
if (reqNewline) {
|
|
1963
|
+
str += ",";
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1956
1966
|
if (comment)
|
|
1957
1967
|
str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
|
|
1958
|
-
if (!reqNewline && (lines.length > linesAtValue || str.includes("\n")))
|
|
1959
|
-
reqNewline = true;
|
|
1960
1968
|
lines.push(str);
|
|
1961
1969
|
linesAtValue = lines.length;
|
|
1962
1970
|
}
|
|
@@ -1992,9 +2000,9 @@ ${indent}${end}`;
|
|
|
1992
2000
|
}
|
|
1993
2001
|
});
|
|
1994
2002
|
|
|
1995
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2003
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1996
2004
|
var require_YAMLMap = __commonJS({
|
|
1997
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2005
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
|
|
1998
2006
|
"use strict";
|
|
1999
2007
|
var stringifyCollection = require_stringifyCollection();
|
|
2000
2008
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2136,9 +2144,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2136
2144
|
}
|
|
2137
2145
|
});
|
|
2138
2146
|
|
|
2139
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2147
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
|
|
2140
2148
|
var require_map = __commonJS({
|
|
2141
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2149
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js"(exports2) {
|
|
2142
2150
|
"use strict";
|
|
2143
2151
|
var identity2 = require_identity();
|
|
2144
2152
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2158,9 +2166,9 @@ var require_map = __commonJS({
|
|
|
2158
2166
|
}
|
|
2159
2167
|
});
|
|
2160
2168
|
|
|
2161
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2169
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2162
2170
|
var require_YAMLSeq = __commonJS({
|
|
2163
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2171
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
|
|
2164
2172
|
"use strict";
|
|
2165
2173
|
var createNode = require_createNode();
|
|
2166
2174
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2274,9 +2282,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2274
2282
|
}
|
|
2275
2283
|
});
|
|
2276
2284
|
|
|
2277
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2285
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
|
|
2278
2286
|
var require_seq = __commonJS({
|
|
2279
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2287
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
|
|
2280
2288
|
"use strict";
|
|
2281
2289
|
var identity2 = require_identity();
|
|
2282
2290
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2296,9 +2304,9 @@ var require_seq = __commonJS({
|
|
|
2296
2304
|
}
|
|
2297
2305
|
});
|
|
2298
2306
|
|
|
2299
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2307
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
|
|
2300
2308
|
var require_string = __commonJS({
|
|
2301
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2309
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js"(exports2) {
|
|
2302
2310
|
"use strict";
|
|
2303
2311
|
var stringifyString = require_stringifyString();
|
|
2304
2312
|
var string4 = {
|
|
@@ -2315,9 +2323,9 @@ var require_string = __commonJS({
|
|
|
2315
2323
|
}
|
|
2316
2324
|
});
|
|
2317
2325
|
|
|
2318
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2326
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
|
|
2319
2327
|
var require_null = __commonJS({
|
|
2320
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2328
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js"(exports2) {
|
|
2321
2329
|
"use strict";
|
|
2322
2330
|
var Scalar = require_Scalar();
|
|
2323
2331
|
var nullTag = {
|
|
@@ -2333,9 +2341,9 @@ var require_null = __commonJS({
|
|
|
2333
2341
|
}
|
|
2334
2342
|
});
|
|
2335
2343
|
|
|
2336
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2344
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
|
|
2337
2345
|
var require_bool = __commonJS({
|
|
2338
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2346
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
|
|
2339
2347
|
"use strict";
|
|
2340
2348
|
var Scalar = require_Scalar();
|
|
2341
2349
|
var boolTag = {
|
|
@@ -2357,9 +2365,9 @@ var require_bool = __commonJS({
|
|
|
2357
2365
|
}
|
|
2358
2366
|
});
|
|
2359
2367
|
|
|
2360
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2368
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2361
2369
|
var require_stringifyNumber = __commonJS({
|
|
2362
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2370
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
|
|
2363
2371
|
"use strict";
|
|
2364
2372
|
function stringifyNumber({ format: format2, minFractionDigits, tag: tag2, value }) {
|
|
2365
2373
|
if (typeof value === "bigint")
|
|
@@ -2384,9 +2392,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2384
2392
|
}
|
|
2385
2393
|
});
|
|
2386
2394
|
|
|
2387
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2395
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
|
|
2388
2396
|
var require_float = __commonJS({
|
|
2389
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2397
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js"(exports2) {
|
|
2390
2398
|
"use strict";
|
|
2391
2399
|
var Scalar = require_Scalar();
|
|
2392
2400
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2430,9 +2438,9 @@ var require_float = __commonJS({
|
|
|
2430
2438
|
}
|
|
2431
2439
|
});
|
|
2432
2440
|
|
|
2433
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2441
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
|
|
2434
2442
|
var require_int = __commonJS({
|
|
2435
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2443
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js"(exports2) {
|
|
2436
2444
|
"use strict";
|
|
2437
2445
|
var stringifyNumber = require_stringifyNumber();
|
|
2438
2446
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2475,9 +2483,9 @@ var require_int = __commonJS({
|
|
|
2475
2483
|
}
|
|
2476
2484
|
});
|
|
2477
2485
|
|
|
2478
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2486
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
|
|
2479
2487
|
var require_schema = __commonJS({
|
|
2480
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2488
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
|
|
2481
2489
|
"use strict";
|
|
2482
2490
|
var map2 = require_map();
|
|
2483
2491
|
var _null4 = require_null();
|
|
@@ -2503,9 +2511,9 @@ var require_schema = __commonJS({
|
|
|
2503
2511
|
}
|
|
2504
2512
|
});
|
|
2505
2513
|
|
|
2506
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2514
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
|
|
2507
2515
|
var require_schema2 = __commonJS({
|
|
2508
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2516
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
|
|
2509
2517
|
"use strict";
|
|
2510
2518
|
var Scalar = require_Scalar();
|
|
2511
2519
|
var map2 = require_map();
|
|
@@ -2570,9 +2578,9 @@ var require_schema2 = __commonJS({
|
|
|
2570
2578
|
}
|
|
2571
2579
|
});
|
|
2572
2580
|
|
|
2573
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2581
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2574
2582
|
var require_binary = __commonJS({
|
|
2575
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2583
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
|
|
2576
2584
|
"use strict";
|
|
2577
2585
|
var node_buffer = require("buffer");
|
|
2578
2586
|
var Scalar = require_Scalar();
|
|
@@ -2636,9 +2644,9 @@ var require_binary = __commonJS({
|
|
|
2636
2644
|
}
|
|
2637
2645
|
});
|
|
2638
2646
|
|
|
2639
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2647
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2640
2648
|
var require_pairs = __commonJS({
|
|
2641
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2649
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
|
|
2642
2650
|
"use strict";
|
|
2643
2651
|
var identity2 = require_identity();
|
|
2644
2652
|
var Pair = require_Pair();
|
|
@@ -2714,9 +2722,9 @@ ${cn.comment}` : item.comment;
|
|
|
2714
2722
|
}
|
|
2715
2723
|
});
|
|
2716
2724
|
|
|
2717
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2725
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2718
2726
|
var require_omap = __commonJS({
|
|
2719
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2727
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
|
|
2720
2728
|
"use strict";
|
|
2721
2729
|
var identity2 = require_identity();
|
|
2722
2730
|
var toJS = require_toJS();
|
|
@@ -2792,9 +2800,9 @@ var require_omap = __commonJS({
|
|
|
2792
2800
|
}
|
|
2793
2801
|
});
|
|
2794
2802
|
|
|
2795
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2803
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2796
2804
|
var require_bool2 = __commonJS({
|
|
2797
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2805
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
|
|
2798
2806
|
"use strict";
|
|
2799
2807
|
var Scalar = require_Scalar();
|
|
2800
2808
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2824,9 +2832,9 @@ var require_bool2 = __commonJS({
|
|
|
2824
2832
|
}
|
|
2825
2833
|
});
|
|
2826
2834
|
|
|
2827
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2835
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2828
2836
|
var require_float2 = __commonJS({
|
|
2829
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2837
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
|
|
2830
2838
|
"use strict";
|
|
2831
2839
|
var Scalar = require_Scalar();
|
|
2832
2840
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2873,9 +2881,9 @@ var require_float2 = __commonJS({
|
|
|
2873
2881
|
}
|
|
2874
2882
|
});
|
|
2875
2883
|
|
|
2876
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2884
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2877
2885
|
var require_int2 = __commonJS({
|
|
2878
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2886
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
|
|
2879
2887
|
"use strict";
|
|
2880
2888
|
var stringifyNumber = require_stringifyNumber();
|
|
2881
2889
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2952,9 +2960,9 @@ var require_int2 = __commonJS({
|
|
|
2952
2960
|
}
|
|
2953
2961
|
});
|
|
2954
2962
|
|
|
2955
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2963
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2956
2964
|
var require_set = __commonJS({
|
|
2957
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2965
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
|
|
2958
2966
|
"use strict";
|
|
2959
2967
|
var identity2 = require_identity();
|
|
2960
2968
|
var Pair = require_Pair();
|
|
@@ -3041,9 +3049,9 @@ var require_set = __commonJS({
|
|
|
3041
3049
|
}
|
|
3042
3050
|
});
|
|
3043
3051
|
|
|
3044
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3052
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3045
3053
|
var require_timestamp = __commonJS({
|
|
3046
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3054
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
|
|
3047
3055
|
"use strict";
|
|
3048
3056
|
var stringifyNumber = require_stringifyNumber();
|
|
3049
3057
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3129,9 +3137,9 @@ var require_timestamp = __commonJS({
|
|
|
3129
3137
|
}
|
|
3130
3138
|
});
|
|
3131
3139
|
|
|
3132
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3140
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3133
3141
|
var require_schema3 = __commonJS({
|
|
3134
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3142
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
|
|
3135
3143
|
"use strict";
|
|
3136
3144
|
var map2 = require_map();
|
|
3137
3145
|
var _null4 = require_null();
|
|
@@ -3173,9 +3181,9 @@ var require_schema3 = __commonJS({
|
|
|
3173
3181
|
}
|
|
3174
3182
|
});
|
|
3175
3183
|
|
|
3176
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3184
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
|
|
3177
3185
|
var require_tags = __commonJS({
|
|
3178
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3186
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js"(exports2) {
|
|
3179
3187
|
"use strict";
|
|
3180
3188
|
var map2 = require_map();
|
|
3181
3189
|
var _null4 = require_null();
|
|
@@ -3267,9 +3275,9 @@ var require_tags = __commonJS({
|
|
|
3267
3275
|
}
|
|
3268
3276
|
});
|
|
3269
3277
|
|
|
3270
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3278
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
|
|
3271
3279
|
var require_Schema = __commonJS({
|
|
3272
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3280
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js"(exports2) {
|
|
3273
3281
|
"use strict";
|
|
3274
3282
|
var identity2 = require_identity();
|
|
3275
3283
|
var map2 = require_map();
|
|
@@ -3299,9 +3307,9 @@ var require_Schema = __commonJS({
|
|
|
3299
3307
|
}
|
|
3300
3308
|
});
|
|
3301
3309
|
|
|
3302
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3310
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3303
3311
|
var require_stringifyDocument = __commonJS({
|
|
3304
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3312
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
|
|
3305
3313
|
"use strict";
|
|
3306
3314
|
var identity2 = require_identity();
|
|
3307
3315
|
var stringify = require_stringify();
|
|
@@ -3379,9 +3387,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3379
3387
|
}
|
|
3380
3388
|
});
|
|
3381
3389
|
|
|
3382
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3390
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
|
|
3383
3391
|
var require_Document = __commonJS({
|
|
3384
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3392
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js"(exports2) {
|
|
3385
3393
|
"use strict";
|
|
3386
3394
|
var Alias = require_Alias();
|
|
3387
3395
|
var Collection = require_Collection();
|
|
@@ -3688,9 +3696,9 @@ var require_Document = __commonJS({
|
|
|
3688
3696
|
}
|
|
3689
3697
|
});
|
|
3690
3698
|
|
|
3691
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3699
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js
|
|
3692
3700
|
var require_errors = __commonJS({
|
|
3693
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3701
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js"(exports2) {
|
|
3694
3702
|
"use strict";
|
|
3695
3703
|
var YAMLError = class extends Error {
|
|
3696
3704
|
constructor(name, pos, code, message) {
|
|
@@ -3753,9 +3761,9 @@ ${pointer}
|
|
|
3753
3761
|
}
|
|
3754
3762
|
});
|
|
3755
3763
|
|
|
3756
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3764
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
|
|
3757
3765
|
var require_resolve_props = __commonJS({
|
|
3758
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3766
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
|
|
3759
3767
|
"use strict";
|
|
3760
3768
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3761
3769
|
let spaceBefore = false;
|
|
@@ -3887,9 +3895,9 @@ var require_resolve_props = __commonJS({
|
|
|
3887
3895
|
}
|
|
3888
3896
|
});
|
|
3889
3897
|
|
|
3890
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3898
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3891
3899
|
var require_util_contains_newline = __commonJS({
|
|
3892
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3900
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
|
|
3893
3901
|
"use strict";
|
|
3894
3902
|
function containsNewline(key) {
|
|
3895
3903
|
if (!key)
|
|
@@ -3929,9 +3937,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
3929
3937
|
}
|
|
3930
3938
|
});
|
|
3931
3939
|
|
|
3932
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3940
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3933
3941
|
var require_util_flow_indent_check = __commonJS({
|
|
3934
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3942
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
|
|
3935
3943
|
"use strict";
|
|
3936
3944
|
var utilContainsNewline = require_util_contains_newline();
|
|
3937
3945
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3947,9 +3955,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
3947
3955
|
}
|
|
3948
3956
|
});
|
|
3949
3957
|
|
|
3950
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3958
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3951
3959
|
var require_util_map_includes = __commonJS({
|
|
3952
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3960
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
|
|
3953
3961
|
"use strict";
|
|
3954
3962
|
var identity2 = require_identity();
|
|
3955
3963
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3963,9 +3971,9 @@ var require_util_map_includes = __commonJS({
|
|
|
3963
3971
|
}
|
|
3964
3972
|
});
|
|
3965
3973
|
|
|
3966
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3974
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3967
3975
|
var require_resolve_block_map = __commonJS({
|
|
3968
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3976
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
|
|
3969
3977
|
"use strict";
|
|
3970
3978
|
var Pair = require_Pair();
|
|
3971
3979
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4071,9 +4079,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4071
4079
|
}
|
|
4072
4080
|
});
|
|
4073
4081
|
|
|
4074
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4082
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4075
4083
|
var require_resolve_block_seq = __commonJS({
|
|
4076
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4084
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
|
|
4077
4085
|
"use strict";
|
|
4078
4086
|
var YAMLSeq = require_YAMLSeq();
|
|
4079
4087
|
var resolveProps = require_resolve_props();
|
|
@@ -4122,9 +4130,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4122
4130
|
}
|
|
4123
4131
|
});
|
|
4124
4132
|
|
|
4125
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4133
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
|
|
4126
4134
|
var require_resolve_end = __commonJS({
|
|
4127
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4135
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
|
|
4128
4136
|
"use strict";
|
|
4129
4137
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4130
4138
|
let comment = "";
|
|
@@ -4165,9 +4173,9 @@ var require_resolve_end = __commonJS({
|
|
|
4165
4173
|
}
|
|
4166
4174
|
});
|
|
4167
4175
|
|
|
4168
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4176
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4169
4177
|
var require_resolve_flow_collection = __commonJS({
|
|
4170
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4178
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
|
|
4171
4179
|
"use strict";
|
|
4172
4180
|
var identity2 = require_identity();
|
|
4173
4181
|
var Pair = require_Pair();
|
|
@@ -4359,9 +4367,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4359
4367
|
}
|
|
4360
4368
|
});
|
|
4361
4369
|
|
|
4362
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4370
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
|
|
4363
4371
|
var require_compose_collection = __commonJS({
|
|
4364
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4372
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
|
|
4365
4373
|
"use strict";
|
|
4366
4374
|
var identity2 = require_identity();
|
|
4367
4375
|
var Scalar = require_Scalar();
|
|
@@ -4424,9 +4432,9 @@ var require_compose_collection = __commonJS({
|
|
|
4424
4432
|
}
|
|
4425
4433
|
});
|
|
4426
4434
|
|
|
4427
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4435
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4428
4436
|
var require_resolve_block_scalar = __commonJS({
|
|
4429
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4437
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
|
|
4430
4438
|
"use strict";
|
|
4431
4439
|
var Scalar = require_Scalar();
|
|
4432
4440
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4607,9 +4615,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4607
4615
|
}
|
|
4608
4616
|
});
|
|
4609
4617
|
|
|
4610
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4618
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4611
4619
|
var require_resolve_flow_scalar = __commonJS({
|
|
4612
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4620
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
|
|
4613
4621
|
"use strict";
|
|
4614
4622
|
var Scalar = require_Scalar();
|
|
4615
4623
|
var resolveEnd = require_resolve_end();
|
|
@@ -4826,9 +4834,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4826
4834
|
}
|
|
4827
4835
|
});
|
|
4828
4836
|
|
|
4829
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4837
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4830
4838
|
var require_compose_scalar = __commonJS({
|
|
4831
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4839
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
|
|
4832
4840
|
"use strict";
|
|
4833
4841
|
var identity2 = require_identity();
|
|
4834
4842
|
var Scalar = require_Scalar();
|
|
@@ -4907,9 +4915,9 @@ var require_compose_scalar = __commonJS({
|
|
|
4907
4915
|
}
|
|
4908
4916
|
});
|
|
4909
4917
|
|
|
4910
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4918
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4911
4919
|
var require_util_empty_scalar_position = __commonJS({
|
|
4912
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4920
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
|
|
4913
4921
|
"use strict";
|
|
4914
4922
|
function emptyScalarPosition(offset, before, pos) {
|
|
4915
4923
|
if (before) {
|
|
@@ -4937,9 +4945,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
4937
4945
|
}
|
|
4938
4946
|
});
|
|
4939
4947
|
|
|
4940
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4948
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
|
|
4941
4949
|
var require_compose_node = __commonJS({
|
|
4942
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4950
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
|
|
4943
4951
|
"use strict";
|
|
4944
4952
|
var Alias = require_Alias();
|
|
4945
4953
|
var identity2 = require_identity();
|
|
@@ -4970,17 +4978,22 @@ var require_compose_node = __commonJS({
|
|
|
4970
4978
|
case "block-map":
|
|
4971
4979
|
case "block-seq":
|
|
4972
4980
|
case "flow-collection":
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4981
|
+
try {
|
|
4982
|
+
node = composeCollection.composeCollection(CN, ctx, token, props, onError);
|
|
4983
|
+
if (anchor)
|
|
4984
|
+
node.anchor = anchor.source.substring(1);
|
|
4985
|
+
} catch (error48) {
|
|
4986
|
+
const message = error48 instanceof Error ? error48.message : String(error48);
|
|
4987
|
+
onError(token, "RESOURCE_EXHAUSTION", message);
|
|
4988
|
+
}
|
|
4976
4989
|
break;
|
|
4977
4990
|
default: {
|
|
4978
4991
|
const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
|
|
4979
4992
|
onError(token, "UNEXPECTED_TOKEN", message);
|
|
4980
|
-
node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError);
|
|
4981
4993
|
isSrcToken = false;
|
|
4982
4994
|
}
|
|
4983
4995
|
}
|
|
4996
|
+
node ?? (node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError));
|
|
4984
4997
|
if (anchor && node.anchor === "")
|
|
4985
4998
|
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
4986
4999
|
if (atKey && ctx.options.stringKeys && (!identity2.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
|
|
@@ -5038,9 +5051,9 @@ var require_compose_node = __commonJS({
|
|
|
5038
5051
|
}
|
|
5039
5052
|
});
|
|
5040
5053
|
|
|
5041
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5054
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
|
|
5042
5055
|
var require_compose_doc = __commonJS({
|
|
5043
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5056
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
|
|
5044
5057
|
"use strict";
|
|
5045
5058
|
var Document = require_Document();
|
|
5046
5059
|
var composeNode = require_compose_node();
|
|
@@ -5081,9 +5094,9 @@ var require_compose_doc = __commonJS({
|
|
|
5081
5094
|
}
|
|
5082
5095
|
});
|
|
5083
5096
|
|
|
5084
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5097
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
|
|
5085
5098
|
var require_composer = __commonJS({
|
|
5086
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5099
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js"(exports2) {
|
|
5087
5100
|
"use strict";
|
|
5088
5101
|
var node_process = require("process");
|
|
5089
5102
|
var directives = require_directives();
|
|
@@ -5287,9 +5300,9 @@ ${end.comment}` : end.comment;
|
|
|
5287
5300
|
}
|
|
5288
5301
|
});
|
|
5289
5302
|
|
|
5290
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5303
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5291
5304
|
var require_cst_scalar = __commonJS({
|
|
5292
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5305
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
|
|
5293
5306
|
"use strict";
|
|
5294
5307
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5295
5308
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5472,9 +5485,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5472
5485
|
}
|
|
5473
5486
|
});
|
|
5474
5487
|
|
|
5475
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5488
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5476
5489
|
var require_cst_stringify = __commonJS({
|
|
5477
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5490
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
|
|
5478
5491
|
"use strict";
|
|
5479
5492
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5480
5493
|
function stringifyToken(token) {
|
|
@@ -5533,9 +5546,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5533
5546
|
}
|
|
5534
5547
|
});
|
|
5535
5548
|
|
|
5536
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5549
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
|
|
5537
5550
|
var require_cst_visit = __commonJS({
|
|
5538
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5551
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
|
|
5539
5552
|
"use strict";
|
|
5540
5553
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
5541
5554
|
var SKIP = /* @__PURE__ */ Symbol("skip children");
|
|
@@ -5595,9 +5608,9 @@ var require_cst_visit = __commonJS({
|
|
|
5595
5608
|
}
|
|
5596
5609
|
});
|
|
5597
5610
|
|
|
5598
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5611
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
|
|
5599
5612
|
var require_cst = __commonJS({
|
|
5600
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5613
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js"(exports2) {
|
|
5601
5614
|
"use strict";
|
|
5602
5615
|
var cstScalar = require_cst_scalar();
|
|
5603
5616
|
var cstStringify = require_cst_stringify();
|
|
@@ -5697,9 +5710,9 @@ var require_cst = __commonJS({
|
|
|
5697
5710
|
}
|
|
5698
5711
|
});
|
|
5699
5712
|
|
|
5700
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5713
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
|
|
5701
5714
|
var require_lexer = __commonJS({
|
|
5702
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5715
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js"(exports2) {
|
|
5703
5716
|
"use strict";
|
|
5704
5717
|
var cst = require_cst();
|
|
5705
5718
|
function isEmpty(ch) {
|
|
@@ -6276,9 +6289,9 @@ var require_lexer = __commonJS({
|
|
|
6276
6289
|
}
|
|
6277
6290
|
});
|
|
6278
6291
|
|
|
6279
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
6292
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
|
|
6280
6293
|
var require_line_counter = __commonJS({
|
|
6281
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
6294
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
|
|
6282
6295
|
"use strict";
|
|
6283
6296
|
var LineCounter = class {
|
|
6284
6297
|
constructor() {
|
|
@@ -6307,9 +6320,9 @@ var require_line_counter = __commonJS({
|
|
|
6307
6320
|
}
|
|
6308
6321
|
});
|
|
6309
6322
|
|
|
6310
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
6323
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
|
|
6311
6324
|
var require_parser = __commonJS({
|
|
6312
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
6325
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js"(exports2) {
|
|
6313
6326
|
"use strict";
|
|
6314
6327
|
var node_process = require("process");
|
|
6315
6328
|
var cst = require_cst();
|
|
@@ -7174,9 +7187,9 @@ var require_parser = __commonJS({
|
|
|
7174
7187
|
}
|
|
7175
7188
|
});
|
|
7176
7189
|
|
|
7177
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
7190
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js
|
|
7178
7191
|
var require_public_api = __commonJS({
|
|
7179
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
7192
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js"(exports2) {
|
|
7180
7193
|
"use strict";
|
|
7181
7194
|
var composer = require_composer();
|
|
7182
7195
|
var Document = require_Document();
|
|
@@ -7271,9 +7284,9 @@ var require_public_api = __commonJS({
|
|
|
7271
7284
|
}
|
|
7272
7285
|
});
|
|
7273
7286
|
|
|
7274
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
7287
|
+
// ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js
|
|
7275
7288
|
var require_dist = __commonJS({
|
|
7276
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
7289
|
+
"../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js"(exports2) {
|
|
7277
7290
|
"use strict";
|
|
7278
7291
|
var composer = require_composer();
|
|
7279
7292
|
var Document = require_Document();
|
|
@@ -80756,7 +80769,7 @@ var require_formdata = __commonJS({
|
|
|
80756
80769
|
var { kEnumerableProperty } = require_util3();
|
|
80757
80770
|
var { webidl } = require_webidl();
|
|
80758
80771
|
var nodeUtil = require("node:util");
|
|
80759
|
-
var
|
|
80772
|
+
var FormData2 = class _FormData {
|
|
80760
80773
|
#state = [];
|
|
80761
80774
|
constructor(form = void 0) {
|
|
80762
80775
|
webidl.util.markAsUncloneable(this);
|
|
@@ -80873,11 +80886,11 @@ var require_formdata = __commonJS({
|
|
|
80873
80886
|
formData.#state = newState;
|
|
80874
80887
|
}
|
|
80875
80888
|
};
|
|
80876
|
-
var { getFormDataState, setFormDataState } =
|
|
80877
|
-
Reflect.deleteProperty(
|
|
80878
|
-
Reflect.deleteProperty(
|
|
80879
|
-
iteratorMixin("FormData",
|
|
80880
|
-
Object.defineProperties(
|
|
80889
|
+
var { getFormDataState, setFormDataState } = FormData2;
|
|
80890
|
+
Reflect.deleteProperty(FormData2, "getFormDataState");
|
|
80891
|
+
Reflect.deleteProperty(FormData2, "setFormDataState");
|
|
80892
|
+
iteratorMixin("FormData", FormData2, getFormDataState, "name", "value");
|
|
80893
|
+
Object.defineProperties(FormData2.prototype, {
|
|
80881
80894
|
append: kEnumerableProperty,
|
|
80882
80895
|
delete: kEnumerableProperty,
|
|
80883
80896
|
get: kEnumerableProperty,
|
|
@@ -80905,8 +80918,8 @@ var require_formdata = __commonJS({
|
|
|
80905
80918
|
}
|
|
80906
80919
|
return { name, value };
|
|
80907
80920
|
}
|
|
80908
|
-
webidl.is.FormData = webidl.util.MakeTypeAssertion(
|
|
80909
|
-
module2.exports = { FormData, makeEntry, setFormDataState };
|
|
80921
|
+
webidl.is.FormData = webidl.util.MakeTypeAssertion(FormData2);
|
|
80922
|
+
module2.exports = { FormData: FormData2, makeEntry, setFormDataState };
|
|
80910
80923
|
}
|
|
80911
80924
|
});
|
|
80912
80925
|
|
|
@@ -81264,7 +81277,7 @@ var require_body = __commonJS({
|
|
|
81264
81277
|
fullyReadBody,
|
|
81265
81278
|
extractMimeType
|
|
81266
81279
|
} = require_util4();
|
|
81267
|
-
var { FormData, setFormDataState } = require_formdata();
|
|
81280
|
+
var { FormData: FormData2, setFormDataState } = require_formdata();
|
|
81268
81281
|
var { webidl } = require_webidl();
|
|
81269
81282
|
var assert2 = require("node:assert");
|
|
81270
81283
|
var { isErrored, isDisturbed } = require("node:stream");
|
|
@@ -81457,13 +81470,13 @@ Content-Type: ${value.type || "application/octet-stream"}\r
|
|
|
81457
81470
|
switch (mimeType.essence) {
|
|
81458
81471
|
case "multipart/form-data": {
|
|
81459
81472
|
const parsed = multipartFormDataParser(value, mimeType);
|
|
81460
|
-
const fd = new
|
|
81473
|
+
const fd = new FormData2();
|
|
81461
81474
|
setFormDataState(fd, parsed);
|
|
81462
81475
|
return fd;
|
|
81463
81476
|
}
|
|
81464
81477
|
case "application/x-www-form-urlencoded": {
|
|
81465
81478
|
const entries = new URLSearchParams(value.toString());
|
|
81466
|
-
const fd = new
|
|
81479
|
+
const fd = new FormData2();
|
|
81467
81480
|
for (const [name, value2] of entries) {
|
|
81468
81481
|
fd.append(name, value2);
|
|
81469
81482
|
}
|
|
@@ -87850,7 +87863,7 @@ var require_snapshot_utils = __commonJS({
|
|
|
87850
87863
|
var require_snapshot_recorder = __commonJS({
|
|
87851
87864
|
"../../node_modules/.pnpm/undici@7.22.0/node_modules/undici/lib/mock/snapshot-recorder.js"(exports2, module2) {
|
|
87852
87865
|
"use strict";
|
|
87853
|
-
var { writeFile: writeFile5, readFile:
|
|
87866
|
+
var { writeFile: writeFile5, readFile: readFile7, mkdir: mkdir5 } = require("node:fs/promises");
|
|
87854
87867
|
var { dirname: dirname7, resolve } = require("node:path");
|
|
87855
87868
|
var { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = require("node:timers");
|
|
87856
87869
|
var { InvalidArgumentError, UndiciError } = require_errors3();
|
|
@@ -88052,7 +88065,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
88052
88065
|
throw new InvalidArgumentError("Snapshot path is required");
|
|
88053
88066
|
}
|
|
88054
88067
|
try {
|
|
88055
|
-
const data = await
|
|
88068
|
+
const data = await readFile7(resolve(path3), "utf8");
|
|
88056
88069
|
const parsed = JSON.parse(data);
|
|
88057
88070
|
if (Array.isArray(parsed)) {
|
|
88058
88071
|
this.#snapshots.clear();
|
|
@@ -124678,7 +124691,7 @@ function buildInputSchema(args, env2, options2) {
|
|
|
124678
124691
|
// package.json
|
|
124679
124692
|
var package_default = {
|
|
124680
124693
|
name: "@docyrus/docyrus",
|
|
124681
|
-
version: "0.0.
|
|
124694
|
+
version: "0.0.27",
|
|
124682
124695
|
private: false,
|
|
124683
124696
|
description: "Docyrus API CLI",
|
|
124684
124697
|
main: "./main.js",
|
|
@@ -124695,6 +124708,7 @@ var package_default = {
|
|
|
124695
124708
|
"@mozilla/readability": "^0.6.0",
|
|
124696
124709
|
"@opentui/core": "^0.1.85",
|
|
124697
124710
|
"@opentui/react": "^0.1.85",
|
|
124711
|
+
"@sinclair/typebox": "^0.34.48",
|
|
124698
124712
|
"@xterm/headless": "^5.5.0",
|
|
124699
124713
|
cheerio: "^1.1.2",
|
|
124700
124714
|
diff: "^8.0.2",
|
|
@@ -124892,6 +124906,7 @@ function createServerCli(dependencies) {
|
|
|
124892
124906
|
thinking: external_exports.enum(PI_AGENT_THINKING_LEVELS2).optional().describe("Thinking level"),
|
|
124893
124907
|
sessionDir: external_exports.string().optional().describe("Override session storage directory"),
|
|
124894
124908
|
apiKey: external_exports.string().optional().describe("Temporary provider API key override for this run"),
|
|
124909
|
+
auth: external_exports.string().optional().describe("Require this bearer token for all HTTP requests"),
|
|
124895
124910
|
verbose: external_exports.boolean().optional().describe("Enable verbose pi startup output")
|
|
124896
124911
|
}),
|
|
124897
124912
|
run: async (context) => {
|
|
@@ -124903,6 +124918,7 @@ function createServerCli(dependencies) {
|
|
|
124903
124918
|
thinking: context.options.thinking,
|
|
124904
124919
|
sessionDir: context.options.sessionDir,
|
|
124905
124920
|
apiKey: context.options.apiKey,
|
|
124921
|
+
auth: context.options.auth,
|
|
124906
124922
|
verbose: context.options.verbose || hasRawVerboseFlag2() ? true : void 0
|
|
124907
124923
|
});
|
|
124908
124924
|
}
|
|
@@ -126237,7 +126253,46 @@ function createCurlCli(dependencies) {
|
|
|
126237
126253
|
}
|
|
126238
126254
|
|
|
126239
126255
|
// src/commands/dsCommands.ts
|
|
126256
|
+
var import_promises3 = require("node:fs/promises");
|
|
126257
|
+
var import_node_path6 = require("node:path");
|
|
126240
126258
|
var BULK_OPERATION_LIMIT = 50;
|
|
126259
|
+
var FILE_EXTENSION_TO_CONTENT_TYPE = {
|
|
126260
|
+
".avi": "video/x-msvideo",
|
|
126261
|
+
".bmp": "image/bmp",
|
|
126262
|
+
".csv": "text/csv",
|
|
126263
|
+
".doc": "application/msword",
|
|
126264
|
+
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
126265
|
+
".flac": "audio/flac",
|
|
126266
|
+
".gif": "image/gif",
|
|
126267
|
+
".jpeg": "image/jpeg",
|
|
126268
|
+
".jpg": "image/jpeg",
|
|
126269
|
+
".json": "application/json",
|
|
126270
|
+
".m4a": "audio/m4a",
|
|
126271
|
+
".mov": "video/quicktime",
|
|
126272
|
+
".mp3": "audio/mpeg",
|
|
126273
|
+
".mp4": "video/mp4",
|
|
126274
|
+
".mpga": "audio/mpga",
|
|
126275
|
+
".ogg": "audio/ogg",
|
|
126276
|
+
".opus": "audio/opus",
|
|
126277
|
+
".pdf": "application/pdf",
|
|
126278
|
+
".png": "image/png",
|
|
126279
|
+
".ppt": "application/vnd.ms-powerpoint",
|
|
126280
|
+
".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
126281
|
+
".rar": "application/x-rar-compressed",
|
|
126282
|
+
".rtf": "text/rtf",
|
|
126283
|
+
".tif": "image/tiff",
|
|
126284
|
+
".tiff": "image/tiff",
|
|
126285
|
+
".txt": "text/plain",
|
|
126286
|
+
".wav": "audio/wav",
|
|
126287
|
+
".webm": "video/webm",
|
|
126288
|
+
".webp": "image/webp",
|
|
126289
|
+
".xls": "application/vnd.ms-excel",
|
|
126290
|
+
".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
126291
|
+
".yaml": "application/yaml",
|
|
126292
|
+
".yml": "application/yaml",
|
|
126293
|
+
".zip": "application/zip",
|
|
126294
|
+
".7z": "application/x-7z-compressed"
|
|
126295
|
+
};
|
|
126241
126296
|
function isRecord(value) {
|
|
126242
126297
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
126243
126298
|
}
|
|
@@ -126287,6 +126342,87 @@ function toSinglePayload(payload) {
|
|
|
126287
126342
|
}
|
|
126288
126343
|
return payload;
|
|
126289
126344
|
}
|
|
126345
|
+
async function toCommentPayload(params) {
|
|
126346
|
+
const hasStructuredPayload = normalizeOptionalString(params.data) !== void 0 || normalizeOptionalString(params.fromFile) !== void 0;
|
|
126347
|
+
const hasFieldOptions = normalizeOptionalString(params.message) !== void 0 || normalizeOptionalString(params.parentId) !== void 0 || normalizeOptionalString(params.assignedTo) !== void 0 || normalizeOptionalString(params.attachments) !== void 0 || params.level !== void 0 || params.status !== void 0 || params.done !== void 0;
|
|
126348
|
+
if (hasStructuredPayload) {
|
|
126349
|
+
if (hasFieldOptions) {
|
|
126350
|
+
throw new UserInputError(
|
|
126351
|
+
"Do not mix --data/--fromFile with comment field options. Use one input style only."
|
|
126352
|
+
);
|
|
126353
|
+
}
|
|
126354
|
+
const payload2 = await readDataInput({
|
|
126355
|
+
data: params.data,
|
|
126356
|
+
fromFile: params.fromFile
|
|
126357
|
+
});
|
|
126358
|
+
return toSinglePayload(payload2);
|
|
126359
|
+
}
|
|
126360
|
+
const message = normalizeOptionalString(params.message);
|
|
126361
|
+
if (!message) {
|
|
126362
|
+
throw new UserInputError("Comment message is required. Pass --message, --data, or --fromFile.");
|
|
126363
|
+
}
|
|
126364
|
+
const payload = {
|
|
126365
|
+
message
|
|
126366
|
+
};
|
|
126367
|
+
const parentId = normalizeOptionalString(params.parentId);
|
|
126368
|
+
const assignedTo = normalizeOptionalString(params.assignedTo);
|
|
126369
|
+
const attachments = normalizeOptionalString(params.attachments);
|
|
126370
|
+
if (parentId) {
|
|
126371
|
+
payload.parentId = parentId;
|
|
126372
|
+
}
|
|
126373
|
+
if (assignedTo) {
|
|
126374
|
+
payload.assignedTo = assignedTo;
|
|
126375
|
+
}
|
|
126376
|
+
if (attachments) {
|
|
126377
|
+
payload.attachments = parseJsonData(attachments, "--attachments");
|
|
126378
|
+
}
|
|
126379
|
+
if (params.level !== void 0) {
|
|
126380
|
+
payload.level = params.level;
|
|
126381
|
+
}
|
|
126382
|
+
if (params.status !== void 0) {
|
|
126383
|
+
payload.status = params.status;
|
|
126384
|
+
}
|
|
126385
|
+
if (params.done !== void 0) {
|
|
126386
|
+
payload.done = params.done;
|
|
126387
|
+
}
|
|
126388
|
+
return payload;
|
|
126389
|
+
}
|
|
126390
|
+
function resolveAttachmentContentType(params) {
|
|
126391
|
+
const contentType = normalizeOptionalString(params.contentType);
|
|
126392
|
+
if (contentType) {
|
|
126393
|
+
return contentType;
|
|
126394
|
+
}
|
|
126395
|
+
const extension = (0, import_node_path6.extname)(params.filePath).toLowerCase();
|
|
126396
|
+
const inferredContentType = FILE_EXTENSION_TO_CONTENT_TYPE[extension];
|
|
126397
|
+
if (inferredContentType) {
|
|
126398
|
+
return inferredContentType;
|
|
126399
|
+
}
|
|
126400
|
+
throw new UserInputError(
|
|
126401
|
+
`Unable to infer content type for '${params.filePath}'. Pass --contentType explicitly.`
|
|
126402
|
+
);
|
|
126403
|
+
}
|
|
126404
|
+
async function toFileUploadBody(params) {
|
|
126405
|
+
const filePath = normalizeOptionalString(params.filePath);
|
|
126406
|
+
if (!filePath) {
|
|
126407
|
+
throw new UserInputError("File path is required.");
|
|
126408
|
+
}
|
|
126409
|
+
let fileBuffer;
|
|
126410
|
+
try {
|
|
126411
|
+
fileBuffer = await (0, import_promises3.readFile)(filePath);
|
|
126412
|
+
} catch (error48) {
|
|
126413
|
+
const message = error48 instanceof Error ? error48.message : "Unknown error";
|
|
126414
|
+
throw new UserInputError(`Unable to read file '${filePath}': ${message}`);
|
|
126415
|
+
}
|
|
126416
|
+
const fileName = (0, import_node_path6.basename)(filePath);
|
|
126417
|
+
const contentType = resolveAttachmentContentType({
|
|
126418
|
+
filePath,
|
|
126419
|
+
contentType: params.contentType
|
|
126420
|
+
});
|
|
126421
|
+
const formData = new FormData();
|
|
126422
|
+
const fileBytes = new Uint8Array(fileBuffer);
|
|
126423
|
+
formData.set("file", new Blob([fileBytes], { type: contentType }), fileName);
|
|
126424
|
+
return formData;
|
|
126425
|
+
}
|
|
126290
126426
|
function createDsCli(dependencies) {
|
|
126291
126427
|
const dsCli = Cli_exports.create("ds", {
|
|
126292
126428
|
description: "Data source commands",
|
|
@@ -126467,11 +126603,99 @@ function createDsCli(dependencies) {
|
|
|
126467
126603
|
});
|
|
126468
126604
|
}
|
|
126469
126605
|
});
|
|
126606
|
+
const commentsCli = Cli_exports.create("comments", {
|
|
126607
|
+
description: "Record comment commands",
|
|
126608
|
+
env: EnvSchema
|
|
126609
|
+
});
|
|
126610
|
+
commentsCli.command("create", {
|
|
126611
|
+
description: "Create a comment for a data source record",
|
|
126612
|
+
args: external_exports.object({
|
|
126613
|
+
appSlug: external_exports.string().min(1),
|
|
126614
|
+
dataSourceSlug: external_exports.string().min(1),
|
|
126615
|
+
recordId: external_exports.string().min(1)
|
|
126616
|
+
}),
|
|
126617
|
+
options: external_exports.object({
|
|
126618
|
+
message: external_exports.string().optional().describe("Comment message"),
|
|
126619
|
+
data: external_exports.string().optional().describe("Full JSON payload for comment DTO"),
|
|
126620
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
126621
|
+
parentId: external_exports.string().optional().describe("Parent comment ID"),
|
|
126622
|
+
assignedTo: external_exports.string().optional().describe("Assigned user ID"),
|
|
126623
|
+
attachments: external_exports.string().optional().describe("JSON attachments payload"),
|
|
126624
|
+
level: external_exports.number().optional().describe("Comment level"),
|
|
126625
|
+
status: external_exports.number().optional().describe("Comment status"),
|
|
126626
|
+
done: external_exports.boolean().optional().describe("Mark comment as done")
|
|
126627
|
+
}),
|
|
126628
|
+
run: async (context) => {
|
|
126629
|
+
const apiBaseUrl = await dependencies.environmentConfigService.getActiveApiBaseUrl();
|
|
126630
|
+
const apiClient = dependencies.createApiClient(apiBaseUrl);
|
|
126631
|
+
const payload = await toCommentPayload({
|
|
126632
|
+
message: context.options.message,
|
|
126633
|
+
data: context.options.data,
|
|
126634
|
+
fromFile: context.options.fromFile,
|
|
126635
|
+
parentId: context.options.parentId,
|
|
126636
|
+
assignedTo: context.options.assignedTo,
|
|
126637
|
+
attachments: context.options.attachments,
|
|
126638
|
+
level: context.options.level,
|
|
126639
|
+
status: context.options.status,
|
|
126640
|
+
done: context.options.done
|
|
126641
|
+
});
|
|
126642
|
+
const response = await apiClient.request({
|
|
126643
|
+
method: "POST",
|
|
126644
|
+
path: `/apps/${context.args.appSlug}/data-sources/${context.args.dataSourceSlug}/items/${context.args.recordId}/comments`,
|
|
126645
|
+
body: payload
|
|
126646
|
+
});
|
|
126647
|
+
return await injectContext({
|
|
126648
|
+
apiBaseUrl,
|
|
126649
|
+
authStore: dependencies.authStore,
|
|
126650
|
+
payload: response.data
|
|
126651
|
+
});
|
|
126652
|
+
}
|
|
126653
|
+
});
|
|
126654
|
+
dsCli.command(commentsCli);
|
|
126655
|
+
const filesCli = Cli_exports.create("files", {
|
|
126656
|
+
description: "Record file attachment commands",
|
|
126657
|
+
env: EnvSchema
|
|
126658
|
+
});
|
|
126659
|
+
filesCli.command("upload", {
|
|
126660
|
+
description: "Upload a file attachment for a data source record",
|
|
126661
|
+
args: external_exports.object({
|
|
126662
|
+
appSlug: external_exports.string().min(1),
|
|
126663
|
+
dataSourceSlug: external_exports.string().min(1),
|
|
126664
|
+
recordId: external_exports.string().min(1)
|
|
126665
|
+
}),
|
|
126666
|
+
options: external_exports.object({
|
|
126667
|
+
file: external_exports.string().min(1).describe("Path to local file"),
|
|
126668
|
+
contentType: external_exports.string().optional().describe("Override file content type"),
|
|
126669
|
+
publicFile: external_exports.boolean().optional().describe("Store file in public tenant bucket")
|
|
126670
|
+
}),
|
|
126671
|
+
run: async (context) => {
|
|
126672
|
+
const apiBaseUrl = await dependencies.environmentConfigService.getActiveApiBaseUrl();
|
|
126673
|
+
const apiClient = dependencies.createApiClient(apiBaseUrl);
|
|
126674
|
+
const body = await toFileUploadBody({
|
|
126675
|
+
filePath: context.options.file,
|
|
126676
|
+
contentType: context.options.contentType
|
|
126677
|
+
});
|
|
126678
|
+
const response = await apiClient.request({
|
|
126679
|
+
method: "POST",
|
|
126680
|
+
path: `/apps/${context.args.appSlug}/data-sources/${context.args.dataSourceSlug}/items/${context.args.recordId}/files/upload`,
|
|
126681
|
+
query: {
|
|
126682
|
+
publicFile: context.options.publicFile
|
|
126683
|
+
},
|
|
126684
|
+
body
|
|
126685
|
+
});
|
|
126686
|
+
return await injectContext({
|
|
126687
|
+
apiBaseUrl,
|
|
126688
|
+
authStore: dependencies.authStore,
|
|
126689
|
+
payload: response.data
|
|
126690
|
+
});
|
|
126691
|
+
}
|
|
126692
|
+
});
|
|
126693
|
+
dsCli.command(filesCli);
|
|
126470
126694
|
return dsCli;
|
|
126471
126695
|
}
|
|
126472
126696
|
|
|
126473
126697
|
// src/commands/discoverCommands.ts
|
|
126474
|
-
var
|
|
126698
|
+
var import_promises4 = require("node:fs/promises");
|
|
126475
126699
|
var SUPPORTED_HTTP_METHODS2 = [
|
|
126476
126700
|
"GET",
|
|
126477
126701
|
"POST",
|
|
@@ -126616,7 +126840,7 @@ async function loadOpenApiSpec(dependencies, tenantId, options2) {
|
|
|
126616
126840
|
let sourceUrl;
|
|
126617
126841
|
let content;
|
|
126618
126842
|
try {
|
|
126619
|
-
content = await (0,
|
|
126843
|
+
content = await (0, import_promises4.readFile)(filePath, "utf8");
|
|
126620
126844
|
} catch (error48) {
|
|
126621
126845
|
if (!isEnoentError(error48)) {
|
|
126622
126846
|
throw new UserInputError("Failed to read downloaded OpenAPI spec file.", {
|
|
@@ -126628,7 +126852,7 @@ async function loadOpenApiSpec(dependencies, tenantId, options2) {
|
|
|
126628
126852
|
downloaded = true;
|
|
126629
126853
|
sourceUrl = downloadResult.sourceUrl;
|
|
126630
126854
|
filePath = downloadResult.filePath;
|
|
126631
|
-
content = await (0,
|
|
126855
|
+
content = await (0, import_promises4.readFile)(filePath, "utf8");
|
|
126632
126856
|
}
|
|
126633
126857
|
return {
|
|
126634
126858
|
filePath,
|
|
@@ -126875,8 +127099,8 @@ function createEnvCli(dependencies) {
|
|
|
126875
127099
|
}
|
|
126876
127100
|
|
|
126877
127101
|
// src/services/studioPayload.ts
|
|
126878
|
-
var
|
|
126879
|
-
var
|
|
127102
|
+
var import_promises5 = require("node:fs/promises");
|
|
127103
|
+
var import_node_path7 = require("node:path");
|
|
126880
127104
|
async function readStdinText2() {
|
|
126881
127105
|
if (process.stdin.isTTY) {
|
|
126882
127106
|
return "";
|
|
@@ -126899,7 +127123,7 @@ async function readStudioWriteInput(params) {
|
|
|
126899
127123
|
data,
|
|
126900
127124
|
fromFile,
|
|
126901
127125
|
readStdin = readStdinText2,
|
|
126902
|
-
readFileFn = async (path3, encoding) => await (0,
|
|
127126
|
+
readFileFn = async (path3, encoding) => await (0, import_promises5.readFile)(path3, encoding)
|
|
126903
127127
|
} = params;
|
|
126904
127128
|
const trimmedData = data?.trim();
|
|
126905
127129
|
const trimmedFromFile = fromFile?.trim();
|
|
@@ -126907,7 +127131,7 @@ async function readStudioWriteInput(params) {
|
|
|
126907
127131
|
throw new UserInputError("Provide either --data or --from-file, not both.");
|
|
126908
127132
|
}
|
|
126909
127133
|
if (trimmedFromFile) {
|
|
126910
|
-
const extension = (0,
|
|
127134
|
+
const extension = (0, import_node_path7.extname)(trimmedFromFile).toLowerCase();
|
|
126911
127135
|
if (extension && extension !== ".json") {
|
|
126912
127136
|
throw new UserInputError("Studio commands support only JSON files in --from-file.");
|
|
126913
127137
|
}
|
|
@@ -127912,7 +128136,7 @@ function createStudioCli(dependencies) {
|
|
|
127912
128136
|
// src/commands/tuiCommand.ts
|
|
127913
128137
|
var import_node_child_process3 = require("node:child_process");
|
|
127914
128138
|
var import_node_fs4 = require("node:fs");
|
|
127915
|
-
var
|
|
128139
|
+
var import_node_path8 = require("node:path");
|
|
127916
128140
|
function summarizeFailure2(result) {
|
|
127917
128141
|
const stderr = result.stderr?.toString().trim();
|
|
127918
128142
|
if (stderr && stderr.length > 0) {
|
|
@@ -127929,7 +128153,7 @@ function summarizeFailure2(result) {
|
|
|
127929
128153
|
function resolveCliScriptPath() {
|
|
127930
128154
|
const argvScript = process.argv[1];
|
|
127931
128155
|
if (argvScript && argvScript.trim().length > 0) {
|
|
127932
|
-
return (0,
|
|
128156
|
+
return (0, import_node_path8.isAbsolute)(argvScript) ? argvScript : (0, import_node_path8.resolve)(process.cwd(), argvScript);
|
|
127933
128157
|
}
|
|
127934
128158
|
return __filename;
|
|
127935
128159
|
}
|
|
@@ -127940,12 +128164,12 @@ function resolveOpenTuiEntryPath(options2 = {}) {
|
|
|
127940
128164
|
const candidates = [
|
|
127941
128165
|
// Source/dev mode in monorepo. Prefer this first so Bun resolves deps via
|
|
127942
128166
|
// apps/api-cli/node_modules in workspace runs (e.g. `pnpm docyrus tui`).
|
|
127943
|
-
(0,
|
|
127944
|
-
(0,
|
|
128167
|
+
(0, import_node_path8.resolve)(cwd, "apps/api-cli/src/tui/opentuiMain.tsx"),
|
|
128168
|
+
(0, import_node_path8.resolve)(dirname7, "../tui/opentuiMain.tsx"),
|
|
127945
128169
|
// Dist mode (bundled command runtime)
|
|
127946
|
-
(0,
|
|
127947
|
-
(0,
|
|
127948
|
-
(0,
|
|
128170
|
+
(0, import_node_path8.resolve)(dirname7, "tui.mjs"),
|
|
128171
|
+
(0, import_node_path8.resolve)(dirname7, "../tui.mjs"),
|
|
128172
|
+
(0, import_node_path8.resolve)(cwd, "dist/apps/api-cli/tui.mjs")
|
|
127949
128173
|
];
|
|
127950
128174
|
const resolved = candidates.find((candidate) => fileExists(candidate));
|
|
127951
128175
|
if (!resolved) {
|
|
@@ -128013,6 +128237,18 @@ function createTuiCli(dependencies) {
|
|
|
128013
128237
|
|
|
128014
128238
|
// src/services/apiClient.ts
|
|
128015
128239
|
var insecureLocalhostDispatcherPromise = null;
|
|
128240
|
+
function isFormData(value) {
|
|
128241
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
128242
|
+
}
|
|
128243
|
+
function isUrlSearchParams(value) {
|
|
128244
|
+
return typeof URLSearchParams !== "undefined" && value instanceof URLSearchParams;
|
|
128245
|
+
}
|
|
128246
|
+
function isBlob(value) {
|
|
128247
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
128248
|
+
}
|
|
128249
|
+
function isBinaryBody(value) {
|
|
128250
|
+
return isFormData(value) || isUrlSearchParams(value) || isBlob(value) || value instanceof ArrayBuffer || ArrayBuffer.isView(value);
|
|
128251
|
+
}
|
|
128016
128252
|
function normalizeResponseHeaders(headers) {
|
|
128017
128253
|
const normalized = {};
|
|
128018
128254
|
headers.forEach((value, key) => {
|
|
@@ -128123,6 +128359,8 @@ async function requestDocyrusApi(options2) {
|
|
|
128123
128359
|
if (!requestHeaders["Content-Type"] && !requestHeaders["content-type"]) {
|
|
128124
128360
|
requestHeaders["Content-Type"] = "text/plain; charset=utf-8";
|
|
128125
128361
|
}
|
|
128362
|
+
} else if (isBinaryBody(body)) {
|
|
128363
|
+
requestBody = body;
|
|
128126
128364
|
} else {
|
|
128127
128365
|
requestBody = JSON.stringify(body);
|
|
128128
128366
|
if (!requestHeaders["Content-Type"] && !requestHeaders["content-type"]) {
|
|
@@ -128730,8 +128968,8 @@ var AuthSessionService = class {
|
|
|
128730
128968
|
};
|
|
128731
128969
|
|
|
128732
128970
|
// src/services/authStore.ts
|
|
128733
|
-
var
|
|
128734
|
-
var
|
|
128971
|
+
var import_promises6 = require("node:fs/promises");
|
|
128972
|
+
var import_node_path9 = require("node:path");
|
|
128735
128973
|
function createEmptyState() {
|
|
128736
128974
|
return {
|
|
128737
128975
|
version: 2,
|
|
@@ -128770,7 +129008,7 @@ var AuthStore = class {
|
|
|
128770
129008
|
}
|
|
128771
129009
|
async readState() {
|
|
128772
129010
|
try {
|
|
128773
|
-
const raw = await (0,
|
|
129011
|
+
const raw = await (0, import_promises6.readFile)(this.authFilePath, "utf8");
|
|
128774
129012
|
const parsed = JSON.parse(raw);
|
|
128775
129013
|
const legacy = LegacyAuthSessionSchema.safeParse(parsed);
|
|
128776
129014
|
if (legacy.success) {
|
|
@@ -128806,17 +129044,17 @@ var AuthStore = class {
|
|
|
128806
129044
|
});
|
|
128807
129045
|
}
|
|
128808
129046
|
const normalized = normalizeState(validated.data);
|
|
128809
|
-
const directory = (0,
|
|
128810
|
-
await (0,
|
|
129047
|
+
const directory = (0, import_node_path9.dirname)(this.authFilePath);
|
|
129048
|
+
await (0, import_promises6.mkdir)(directory, {
|
|
128811
129049
|
recursive: true,
|
|
128812
129050
|
mode: 448
|
|
128813
129051
|
});
|
|
128814
|
-
await (0,
|
|
129052
|
+
await (0, import_promises6.writeFile)(this.authFilePath, `${JSON.stringify(normalized, null, 2)}
|
|
128815
129053
|
`, {
|
|
128816
129054
|
encoding: "utf8",
|
|
128817
129055
|
mode: 384
|
|
128818
129056
|
});
|
|
128819
|
-
await (0,
|
|
129057
|
+
await (0, import_promises6.chmod)(this.authFilePath, 384);
|
|
128820
129058
|
}
|
|
128821
129059
|
async getActiveProfile(apiBaseUrl) {
|
|
128822
129060
|
const normalizedApiBaseUrl = normalizeApiBaseUrl(apiBaseUrl);
|
|
@@ -129013,15 +129251,15 @@ var AuthStore = class {
|
|
|
129013
129251
|
await this.writeState(state);
|
|
129014
129252
|
}
|
|
129015
129253
|
async clear() {
|
|
129016
|
-
await (0,
|
|
129254
|
+
await (0, import_promises6.rm)(this.authFilePath, {
|
|
129017
129255
|
force: true
|
|
129018
129256
|
});
|
|
129019
129257
|
}
|
|
129020
129258
|
};
|
|
129021
129259
|
|
|
129022
129260
|
// src/services/environmentConfig.ts
|
|
129023
|
-
var
|
|
129024
|
-
var
|
|
129261
|
+
var import_promises7 = require("node:fs/promises");
|
|
129262
|
+
var import_node_path10 = require("node:path");
|
|
129025
129263
|
var ENVIRONMENT_ID_ALIASES = {
|
|
129026
129264
|
"local-development": "dev",
|
|
129027
129265
|
prod: "live"
|
|
@@ -129107,7 +129345,7 @@ var EnvironmentConfigService = class {
|
|
|
129107
129345
|
}
|
|
129108
129346
|
async readState() {
|
|
129109
129347
|
try {
|
|
129110
|
-
const raw = await (0,
|
|
129348
|
+
const raw = await (0, import_promises7.readFile)(this.configFilePath, "utf8");
|
|
129111
129349
|
const parsed = JSON.parse(raw);
|
|
129112
129350
|
const validated = EnvironmentConfigStateSchema.safeParse(parsed);
|
|
129113
129351
|
if (!validated.success) {
|
|
@@ -129141,17 +129379,17 @@ var EnvironmentConfigService = class {
|
|
|
129141
129379
|
});
|
|
129142
129380
|
}
|
|
129143
129381
|
const normalized = normalizeState2(validated.data);
|
|
129144
|
-
const directory = (0,
|
|
129145
|
-
await (0,
|
|
129382
|
+
const directory = (0, import_node_path10.dirname)(this.configFilePath);
|
|
129383
|
+
await (0, import_promises7.mkdir)(directory, {
|
|
129146
129384
|
recursive: true,
|
|
129147
129385
|
mode: 448
|
|
129148
129386
|
});
|
|
129149
|
-
await (0,
|
|
129387
|
+
await (0, import_promises7.writeFile)(this.configFilePath, `${JSON.stringify(normalized, null, 2)}
|
|
129150
129388
|
`, {
|
|
129151
129389
|
encoding: "utf8",
|
|
129152
129390
|
mode: 384
|
|
129153
129391
|
});
|
|
129154
|
-
await (0,
|
|
129392
|
+
await (0, import_promises7.chmod)(this.configFilePath, 384);
|
|
129155
129393
|
}
|
|
129156
129394
|
async getActiveEnvironment() {
|
|
129157
129395
|
const state = await this.#readStateWithDefaults();
|
|
@@ -129219,8 +129457,8 @@ var EnvironmentConfigService = class {
|
|
|
129219
129457
|
// src/services/piAgentLauncher.ts
|
|
129220
129458
|
var import_node_child_process4 = require("node:child_process");
|
|
129221
129459
|
var import_node_fs5 = require("node:fs");
|
|
129222
|
-
var
|
|
129223
|
-
var
|
|
129460
|
+
var import_promises8 = require("node:fs/promises");
|
|
129461
|
+
var import_node_path11 = require("node:path");
|
|
129224
129462
|
var DOCYRUS_EXTERNAL_SKILL_SOURCE = "docyrus/agent-skills";
|
|
129225
129463
|
var DOCYRUS_PACKAGED_PLATFORM_SKILL_NAME = "docyrus-platform";
|
|
129226
129464
|
var DOCYRUS_MIGRATED_SKILL_NAMES = [
|
|
@@ -129257,10 +129495,10 @@ function resolvePackagedPiResourceRoot(options2 = {}) {
|
|
|
129257
129495
|
const dirname7 = options2.dirname ?? __dirname;
|
|
129258
129496
|
const fileExists = options2.existsSyncFn ?? import_node_fs5.existsSync;
|
|
129259
129497
|
const candidates = [
|
|
129260
|
-
(0,
|
|
129261
|
-
(0,
|
|
129262
|
-
(0,
|
|
129263
|
-
(0,
|
|
129498
|
+
(0, import_node_path11.resolve)(cwd, "apps/api-cli/resources/pi-agent"),
|
|
129499
|
+
(0, import_node_path11.resolve)(dirname7, "../resources/pi-agent"),
|
|
129500
|
+
(0, import_node_path11.resolve)(dirname7, "resources/pi-agent"),
|
|
129501
|
+
(0, import_node_path11.resolve)(cwd, "dist/apps/api-cli/resources/pi-agent")
|
|
129264
129502
|
];
|
|
129265
129503
|
const resolved = candidates.find((candidate) => fileExists(candidate));
|
|
129266
129504
|
if (!resolved) {
|
|
@@ -129281,23 +129519,23 @@ function resolveDocyrusPiLoaderEntryPath(options2 = {}) {
|
|
|
129281
129519
|
}
|
|
129282
129520
|
};
|
|
129283
129521
|
const collectAncestorCandidates = (startDir) => {
|
|
129284
|
-
let currentDir = (0,
|
|
129522
|
+
let currentDir = (0, import_node_path11.resolve)(startDir);
|
|
129285
129523
|
while (true) {
|
|
129286
|
-
addCandidate((0,
|
|
129287
|
-
addCandidate((0,
|
|
129288
|
-
if ((0,
|
|
129289
|
-
addCandidate((0,
|
|
129524
|
+
addCandidate((0, import_node_path11.join)(currentDir, "dist", "apps", "api-cli", "agent-loader.js"));
|
|
129525
|
+
addCandidate((0, import_node_path11.join)(currentDir, "agent-loader.js"));
|
|
129526
|
+
if ((0, import_node_path11.basename)(currentDir) === "dist") {
|
|
129527
|
+
addCandidate((0, import_node_path11.join)(currentDir, "apps", "api-cli", "agent-loader.js"));
|
|
129290
129528
|
}
|
|
129291
|
-
const parentDir = (0,
|
|
129529
|
+
const parentDir = (0, import_node_path11.resolve)(currentDir, "..");
|
|
129292
129530
|
if (parentDir === currentDir) {
|
|
129293
129531
|
break;
|
|
129294
129532
|
}
|
|
129295
129533
|
currentDir = parentDir;
|
|
129296
129534
|
}
|
|
129297
129535
|
};
|
|
129298
|
-
addCandidate((0,
|
|
129299
|
-
addCandidate((0,
|
|
129300
|
-
addCandidate((0,
|
|
129536
|
+
addCandidate((0, import_node_path11.resolve)(cwd, "dist/apps/api-cli/agent-loader.js"));
|
|
129537
|
+
addCandidate((0, import_node_path11.resolve)(dirname7, "../agent-loader.js"));
|
|
129538
|
+
addCandidate((0, import_node_path11.resolve)(dirname7, "agent-loader.js"));
|
|
129301
129539
|
collectAncestorCandidates(cwd);
|
|
129302
129540
|
collectAncestorCandidates(dirname7);
|
|
129303
129541
|
const resolved = candidates.find((candidate) => fileExists(candidate));
|
|
@@ -129317,20 +129555,20 @@ function resolveDocyrusCliEntryPath(options2 = {}) {
|
|
|
129317
129555
|
if (!candidate) {
|
|
129318
129556
|
return;
|
|
129319
129557
|
}
|
|
129320
|
-
const resolvedCandidate = (0,
|
|
129558
|
+
const resolvedCandidate = (0, import_node_path11.resolve)(candidate);
|
|
129321
129559
|
if (!seen.has(resolvedCandidate)) {
|
|
129322
129560
|
seen.add(resolvedCandidate);
|
|
129323
129561
|
candidates.push(resolvedCandidate);
|
|
129324
129562
|
}
|
|
129325
129563
|
};
|
|
129326
129564
|
const argvScript = argv[1]?.trim();
|
|
129327
|
-
const normalizedArgvScript = argvScript ? argvScript.startsWith("/") ? argvScript : (0,
|
|
129565
|
+
const normalizedArgvScript = argvScript ? argvScript.startsWith("/") ? argvScript : (0, import_node_path11.resolve)(cwd, argvScript) : void 0;
|
|
129328
129566
|
if (normalizedArgvScript && normalizedArgvScript.endsWith(".js")) {
|
|
129329
129567
|
addCandidate(normalizedArgvScript);
|
|
129330
129568
|
}
|
|
129331
|
-
addCandidate((0,
|
|
129332
|
-
addCandidate((0,
|
|
129333
|
-
addCandidate((0,
|
|
129569
|
+
addCandidate((0, import_node_path11.resolve)(cwd, "dist/apps/api-cli/main.js"));
|
|
129570
|
+
addCandidate((0, import_node_path11.resolve)(dirname7, "../main.js"));
|
|
129571
|
+
addCandidate((0, import_node_path11.resolve)(dirname7, "main.js"));
|
|
129334
129572
|
if (normalizedArgvScript) {
|
|
129335
129573
|
addCandidate(normalizedArgvScript);
|
|
129336
129574
|
}
|
|
@@ -129353,28 +129591,28 @@ function resolveInstalledPiPackageRootPath(options2 = {}) {
|
|
|
129353
129591
|
}
|
|
129354
129592
|
};
|
|
129355
129593
|
const collectAncestorCandidates = (startDir) => {
|
|
129356
|
-
let currentDir = (0,
|
|
129594
|
+
let currentDir = (0, import_node_path11.resolve)(startDir);
|
|
129357
129595
|
while (true) {
|
|
129358
|
-
addCandidate((0,
|
|
129359
|
-
if ((0,
|
|
129360
|
-
addCandidate((0,
|
|
129596
|
+
addCandidate((0, import_node_path11.join)(currentDir, "node_modules", "@mariozechner", "pi-coding-agent", "package.json"));
|
|
129597
|
+
if ((0, import_node_path11.basename)(currentDir) === "node_modules") {
|
|
129598
|
+
addCandidate((0, import_node_path11.join)(currentDir, "@mariozechner", "pi-coding-agent", "package.json"));
|
|
129361
129599
|
}
|
|
129362
|
-
const parentDir = (0,
|
|
129600
|
+
const parentDir = (0, import_node_path11.resolve)(currentDir, "..");
|
|
129363
129601
|
if (parentDir === currentDir) {
|
|
129364
129602
|
break;
|
|
129365
129603
|
}
|
|
129366
129604
|
currentDir = parentDir;
|
|
129367
129605
|
}
|
|
129368
129606
|
};
|
|
129369
|
-
addCandidate((0,
|
|
129370
|
-
addCandidate((0,
|
|
129607
|
+
addCandidate((0, import_node_path11.resolve)(cwd, "apps/api-cli/node_modules/@mariozechner/pi-coding-agent/package.json"));
|
|
129608
|
+
addCandidate((0, import_node_path11.resolve)(dirname7, "../../../apps/api-cli/node_modules/@mariozechner/pi-coding-agent/package.json"));
|
|
129371
129609
|
collectAncestorCandidates(cwd);
|
|
129372
129610
|
collectAncestorCandidates(dirname7);
|
|
129373
129611
|
const resolvedPackageJson = candidates.find((candidate) => fileExists(candidate));
|
|
129374
129612
|
if (!resolvedPackageJson) {
|
|
129375
129613
|
throw new UserInputError(`Unable to locate the installed pi package root. Checked: ${candidates.join(", ")}`);
|
|
129376
129614
|
}
|
|
129377
|
-
return (0,
|
|
129615
|
+
return (0, import_node_path11.resolve)(resolvedPackageJson, "..");
|
|
129378
129616
|
}
|
|
129379
129617
|
function createPiAgentRuntimeSkill(params) {
|
|
129380
129618
|
const commandPrefix = params.scope === "global" ? "docyrus -g" : "docyrus";
|
|
@@ -129421,35 +129659,35 @@ function createPiAgentRuntimeSkill(params) {
|
|
|
129421
129659
|
].join("\n");
|
|
129422
129660
|
}
|
|
129423
129661
|
async function syncPackagedSkills(params) {
|
|
129424
|
-
const sourceSkillsRoot = (0,
|
|
129425
|
-
const targetSkillsRoot = (0,
|
|
129426
|
-
await (0,
|
|
129662
|
+
const sourceSkillsRoot = (0, import_node_path11.join)(params.resourceRoot, "skills");
|
|
129663
|
+
const targetSkillsRoot = (0, import_node_path11.join)(params.agentRootPath, "skills");
|
|
129664
|
+
await (0, import_promises8.mkdir)(targetSkillsRoot, {
|
|
129427
129665
|
recursive: true,
|
|
129428
129666
|
mode: 448
|
|
129429
129667
|
});
|
|
129430
|
-
const entries = await (0,
|
|
129668
|
+
const entries = await (0, import_promises8.readdir)(sourceSkillsRoot, {
|
|
129431
129669
|
withFileTypes: true
|
|
129432
129670
|
});
|
|
129433
129671
|
await Promise.all(DOCYRUS_MIGRATED_SKILL_NAMES.map(async (skillName) => {
|
|
129434
|
-
await (0,
|
|
129672
|
+
await (0, import_promises8.rm)((0, import_node_path11.join)(targetSkillsRoot, skillName), {
|
|
129435
129673
|
recursive: true,
|
|
129436
129674
|
force: true
|
|
129437
129675
|
});
|
|
129438
129676
|
}));
|
|
129439
129677
|
await Promise.all(entries.map(async (entry) => {
|
|
129440
|
-
await (0,
|
|
129678
|
+
await (0, import_promises8.cp)((0, import_node_path11.join)(sourceSkillsRoot, entry.name), (0, import_node_path11.join)(targetSkillsRoot, entry.name), {
|
|
129441
129679
|
recursive: true,
|
|
129442
129680
|
force: true
|
|
129443
129681
|
});
|
|
129444
129682
|
}));
|
|
129445
129683
|
}
|
|
129446
129684
|
async function writeRuntimeSkill(params) {
|
|
129447
|
-
const runtimeSkillDir = (0,
|
|
129448
|
-
await (0,
|
|
129685
|
+
const runtimeSkillDir = (0, import_node_path11.join)(params.agentRootPath, "skills", "docyrus-runtime-context");
|
|
129686
|
+
await (0, import_promises8.mkdir)(runtimeSkillDir, {
|
|
129449
129687
|
recursive: true,
|
|
129450
129688
|
mode: 448
|
|
129451
129689
|
});
|
|
129452
|
-
await (0,
|
|
129690
|
+
await (0, import_promises8.writeFile)((0, import_node_path11.join)(runtimeSkillDir, "SKILL.md"), `${params.content}
|
|
129453
129691
|
`, {
|
|
129454
129692
|
encoding: "utf8",
|
|
129455
129693
|
mode: 384
|
|
@@ -129462,10 +129700,10 @@ function resolveNpmCommand() {
|
|
|
129462
129700
|
return process.platform === "win32" ? "npm.cmd" : "npm";
|
|
129463
129701
|
}
|
|
129464
129702
|
function resolveManagedDiffityInstallRoot(agentRootPath) {
|
|
129465
|
-
return (0,
|
|
129703
|
+
return (0, import_node_path11.join)(agentRootPath, "tools", "diffity");
|
|
129466
129704
|
}
|
|
129467
129705
|
function resolveManagedDiffityExecutablePath(agentRootPath) {
|
|
129468
|
-
return (0,
|
|
129706
|
+
return (0, import_node_path11.join)(
|
|
129469
129707
|
resolveManagedDiffityInstallRoot(agentRootPath),
|
|
129470
129708
|
"node_modules",
|
|
129471
129709
|
".bin",
|
|
@@ -129473,10 +129711,10 @@ function resolveManagedDiffityExecutablePath(agentRootPath) {
|
|
|
129473
129711
|
);
|
|
129474
129712
|
}
|
|
129475
129713
|
function prependPathEntry(entry, existingPath) {
|
|
129476
|
-
const values = existingPath ? existingPath.split(
|
|
129714
|
+
const values = existingPath ? existingPath.split(import_node_path11.delimiter).filter((value) => value.trim().length > 0) : [];
|
|
129477
129715
|
const normalizedEntry = entry.trim();
|
|
129478
129716
|
const remaining = values.filter((value) => value !== normalizedEntry);
|
|
129479
|
-
return [normalizedEntry, ...remaining].join(
|
|
129717
|
+
return [normalizedEntry, ...remaining].join(import_node_path11.delimiter);
|
|
129480
129718
|
}
|
|
129481
129719
|
function createDocyrusSkillsInstallArgs(scope) {
|
|
129482
129720
|
const args = [
|
|
@@ -129514,7 +129752,7 @@ function createPackagedDocyrusPlatformInstallArgs(params) {
|
|
|
129514
129752
|
return args;
|
|
129515
129753
|
}
|
|
129516
129754
|
async function installExternalDocyrusSkillsOnce(params) {
|
|
129517
|
-
const markerPath = (0,
|
|
129755
|
+
const markerPath = (0, import_node_path11.join)(params.agentRootPath, DOCYRUS_EXTERNAL_SKILL_MARKER_FILE);
|
|
129518
129756
|
if ((0, import_node_fs5.existsSync)(markerPath)) {
|
|
129519
129757
|
return;
|
|
129520
129758
|
}
|
|
@@ -129533,7 +129771,7 @@ async function installExternalDocyrusSkillsOnce(params) {
|
|
|
129533
129771
|
);
|
|
129534
129772
|
return;
|
|
129535
129773
|
}
|
|
129536
|
-
await (0,
|
|
129774
|
+
await (0, import_promises8.writeFile)(markerPath, `${JSON.stringify({
|
|
129537
129775
|
source: DOCYRUS_EXTERNAL_SKILL_SOURCE,
|
|
129538
129776
|
skills: DOCYRUS_MIGRATED_SKILL_NAMES,
|
|
129539
129777
|
agents: DOCYRUS_EXTERNAL_SKILL_AGENT_IDS,
|
|
@@ -129547,7 +129785,7 @@ async function installExternalDocyrusSkillsOnce(params) {
|
|
|
129547
129785
|
}
|
|
129548
129786
|
async function ensureManagedDiffityInstalled(params) {
|
|
129549
129787
|
const executablePath = resolveManagedDiffityExecutablePath(params.agentRootPath);
|
|
129550
|
-
const binDir = (0,
|
|
129788
|
+
const binDir = (0, import_node_path11.dirname)(executablePath);
|
|
129551
129789
|
if ((0, import_node_fs5.existsSync)(executablePath)) {
|
|
129552
129790
|
return {
|
|
129553
129791
|
available: true,
|
|
@@ -129586,7 +129824,7 @@ async function ensureManagedDiffityInstalled(params) {
|
|
|
129586
129824
|
};
|
|
129587
129825
|
}
|
|
129588
129826
|
function resolvePackagedDocyrusPlatformSkillPath(resourceRoot) {
|
|
129589
|
-
return (0,
|
|
129827
|
+
return (0, import_node_path11.join)(resourceRoot, "skills", DOCYRUS_PACKAGED_PLATFORM_SKILL_NAME);
|
|
129590
129828
|
}
|
|
129591
129829
|
function installPackagedDocyrusPlatformSkill(params) {
|
|
129592
129830
|
const skillSourcePath = resolvePackagedDocyrusPlatformSkillPath(params.resourceRoot);
|
|
@@ -129707,8 +129945,10 @@ function createPiAgentLauncher(options2) {
|
|
|
129707
129945
|
// src/services/piAgentServerLauncher.ts
|
|
129708
129946
|
var import_node_child_process5 = require("node:child_process");
|
|
129709
129947
|
var import_node_fs6 = require("node:fs");
|
|
129710
|
-
var
|
|
129711
|
-
|
|
129948
|
+
var import_node_path12 = require("node:path");
|
|
129949
|
+
function serializePiAgentServerRequest(request) {
|
|
129950
|
+
return JSON.stringify(request);
|
|
129951
|
+
}
|
|
129712
129952
|
function resolveServerLoaderEntryPath(cwd, dirname7) {
|
|
129713
129953
|
const seen = /* @__PURE__ */ new Set();
|
|
129714
129954
|
const candidates = [];
|
|
@@ -129719,23 +129959,23 @@ function resolveServerLoaderEntryPath(cwd, dirname7) {
|
|
|
129719
129959
|
}
|
|
129720
129960
|
};
|
|
129721
129961
|
const collectAncestorCandidates = (startDir) => {
|
|
129722
|
-
let currentDir = (0,
|
|
129962
|
+
let currentDir = (0, import_node_path12.resolve)(startDir);
|
|
129723
129963
|
while (true) {
|
|
129724
|
-
addCandidate((0,
|
|
129725
|
-
addCandidate((0,
|
|
129726
|
-
if ((0,
|
|
129727
|
-
addCandidate((0,
|
|
129964
|
+
addCandidate((0, import_node_path12.join)(currentDir, "dist", "apps", "api-cli", "server-loader.js"));
|
|
129965
|
+
addCandidate((0, import_node_path12.join)(currentDir, "server-loader.js"));
|
|
129966
|
+
if ((0, import_node_path12.basename)(currentDir) === "dist") {
|
|
129967
|
+
addCandidate((0, import_node_path12.join)(currentDir, "apps", "api-cli", "server-loader.js"));
|
|
129728
129968
|
}
|
|
129729
|
-
const parentDir = (0,
|
|
129969
|
+
const parentDir = (0, import_node_path12.resolve)(currentDir, "..");
|
|
129730
129970
|
if (parentDir === currentDir) {
|
|
129731
129971
|
break;
|
|
129732
129972
|
}
|
|
129733
129973
|
currentDir = parentDir;
|
|
129734
129974
|
}
|
|
129735
129975
|
};
|
|
129736
|
-
addCandidate((0,
|
|
129737
|
-
addCandidate((0,
|
|
129738
|
-
addCandidate((0,
|
|
129976
|
+
addCandidate((0, import_node_path12.resolve)(cwd, "dist/apps/api-cli/server-loader.js"));
|
|
129977
|
+
addCandidate((0, import_node_path12.resolve)(dirname7, "../server-loader.js"));
|
|
129978
|
+
addCandidate((0, import_node_path12.resolve)(dirname7, "server-loader.js"));
|
|
129739
129979
|
collectAncestorCandidates(cwd);
|
|
129740
129980
|
collectAncestorCandidates(dirname7);
|
|
129741
129981
|
const resolved = candidates.find((candidate) => (0, import_node_fs6.existsSync)(candidate));
|
|
@@ -129770,13 +130010,13 @@ function createPiAgentServerLauncher(options2) {
|
|
|
129770
130010
|
agentRootPath,
|
|
129771
130011
|
cwd,
|
|
129772
130012
|
scope: options2.settingsPaths.scope,
|
|
129773
|
-
spawnCommand:
|
|
130013
|
+
spawnCommand: import_node_child_process5.spawnSync
|
|
129774
130014
|
});
|
|
129775
130015
|
installPackagedDocyrusPlatformSkill({
|
|
129776
130016
|
resourceRoot,
|
|
129777
130017
|
cwd,
|
|
129778
130018
|
scope: options2.settingsPaths.scope,
|
|
129779
|
-
spawnCommand:
|
|
130019
|
+
spawnCommand: import_node_child_process5.spawnSync
|
|
129780
130020
|
});
|
|
129781
130021
|
const loaderEntryPath = resolveServerLoaderEntryPath(cwd, __dirname);
|
|
129782
130022
|
const piPackageRoot = resolveInstalledPiPackageRootPath({ cwd });
|
|
@@ -129787,7 +130027,7 @@ function createPiAgentServerLauncher(options2) {
|
|
|
129787
130027
|
...process.env,
|
|
129788
130028
|
PI_CODING_AGENT_DIR: agentRootPath,
|
|
129789
130029
|
PI_PACKAGE_DIR: piPackageRoot,
|
|
129790
|
-
DOCYRUS_PI_REQUEST:
|
|
130030
|
+
DOCYRUS_PI_REQUEST: serializePiAgentServerRequest(request),
|
|
129791
130031
|
DOCYRUS_PI_VERSION: options2.version || "dev"
|
|
129792
130032
|
}
|
|
129793
130033
|
});
|
|
@@ -129837,8 +130077,8 @@ async function runWithIncurSkillsOutOfDateWarningSuppressed(params) {
|
|
|
129837
130077
|
}
|
|
129838
130078
|
|
|
129839
130079
|
// src/services/tenantOpenApi.ts
|
|
129840
|
-
var
|
|
129841
|
-
var
|
|
130080
|
+
var import_promises9 = require("node:fs/promises");
|
|
130081
|
+
var import_node_path13 = require("node:path");
|
|
129842
130082
|
function resolveSourceUrl(tenantId, template) {
|
|
129843
130083
|
return template.replace("{tenantId}", encodeURIComponent(tenantId));
|
|
129844
130084
|
}
|
|
@@ -129862,16 +130102,16 @@ var TenantOpenApiService = class {
|
|
|
129862
130102
|
}
|
|
129863
130103
|
async #writeOpenApiFile(tenantId, parsedContent) {
|
|
129864
130104
|
const filePath = this.getTenantOpenApiFilePath(tenantId);
|
|
129865
|
-
await (0,
|
|
130105
|
+
await (0, import_promises9.mkdir)((0, import_node_path13.dirname)(filePath), {
|
|
129866
130106
|
recursive: true,
|
|
129867
130107
|
mode: 448
|
|
129868
130108
|
});
|
|
129869
|
-
await (0,
|
|
130109
|
+
await (0, import_promises9.writeFile)(filePath, `${JSON.stringify(parsedContent, null, 2)}
|
|
129870
130110
|
`, {
|
|
129871
130111
|
encoding: "utf8",
|
|
129872
130112
|
mode: 384
|
|
129873
130113
|
});
|
|
129874
|
-
await (0,
|
|
130114
|
+
await (0, import_promises9.chmod)(filePath, 384);
|
|
129875
130115
|
return filePath;
|
|
129876
130116
|
}
|
|
129877
130117
|
async #generateTenantOpenApiViaAuthenticatedEndpoint(tenantId, options2) {
|
|
@@ -129908,7 +130148,7 @@ var TenantOpenApiService = class {
|
|
|
129908
130148
|
throw new AuthSessionError("Tenant ID is required to resolve OpenAPI spec path.");
|
|
129909
130149
|
}
|
|
129910
130150
|
const rootPath = this.params?.rootPath || TENANT_OPENAPI_ROOT_PATH;
|
|
129911
|
-
return (0,
|
|
130151
|
+
return (0, import_node_path13.join)(rootPath, normalizedTenantId, "openapi.json");
|
|
129912
130152
|
}
|
|
129913
130153
|
async downloadTenantOpenApi(tenantId, options2 = {}) {
|
|
129914
130154
|
const normalizedTenantId = tenantId.trim();
|