@dendelion/paper-camp 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/index-BTh66TxZ.js +2 -0
- package/dist/app/assets/index-BTh66TxZ.js.map +1 -0
- package/dist/app/assets/{index-ChVvOU5G.js → index-C5as2mi1.js} +2 -2
- package/dist/app/assets/{index-ChVvOU5G.js.map → index-C5as2mi1.js.map} +1 -1
- package/dist/app/assets/{index-D7DjxVq7.js → index-CXl1uFWF.js} +2 -2
- package/dist/app/assets/{index-D7DjxVq7.js.map → index-CXl1uFWF.js.map} +1 -1
- package/dist/app/assets/{index-CPoqe3xq.js → index-D2zDC3YW.js} +2 -2
- package/dist/app/assets/{index-CPoqe3xq.js.map → index-D2zDC3YW.js.map} +1 -1
- package/dist/app/assets/{index-CvQKE4RC.js → index-DrOhvDGC.js} +2 -2
- package/dist/app/assets/{index-CvQKE4RC.js.map → index-DrOhvDGC.js.map} +1 -1
- package/dist/app/assets/{index-jTvzs7JN.js → index-SjRbcqaJ.js} +2 -2
- package/dist/app/assets/{index-jTvzs7JN.js.map → index-SjRbcqaJ.js.map} +1 -1
- package/dist/app/assets/main-BC7PxPmE.js +207 -0
- package/dist/app/assets/main-BC7PxPmE.js.map +1 -0
- package/dist/app/assets/{main-CZ1b3UwB.css → main-uLU_O3GC.css} +1 -1
- package/dist/app/assets/{sidebar-section-X7KA8eUz.js → sidebar-section-BlseNbG8.js} +2 -2
- package/dist/app/assets/{sidebar-section-X7KA8eUz.js.map → sidebar-section-BlseNbG8.js.map} +1 -1
- package/dist/app/index.html +2 -2
- package/dist/chunks/dev-port.CEt1H9LA.js +35 -0
- package/dist/chunks/dev-port.CEt1H9LA.js.map +1 -0
- package/dist/chunks/helpers.CUQjsQwc.js +9 -0
- package/dist/chunks/helpers.CUQjsQwc.js.map +1 -0
- package/dist/chunks/{scaffold.DTcLEZRV.js → scaffold.BL48Net9.js} +198 -180
- package/dist/chunks/{scaffold.DTcLEZRV.js.map → scaffold.BL48Net9.js.map} +1 -1
- package/dist/cli/index.js +6299 -6106
- package/dist/cli/index.js.map +1 -1
- package/dist/core/index.js +33 -32
- package/dist/core/parse/schemas.d.ts +8 -0
- package/dist/core/parse/schemas.d.ts.map +1 -1
- package/dist/core/thread.d.ts +8 -0
- package/dist/core/thread.d.ts.map +1 -1
- package/dist/core/thread.test.d.ts +2 -0
- package/dist/core/thread.test.d.ts.map +1 -0
- package/dist/toolbar/focus-panel.d.ts +7 -0
- package/dist/toolbar/focus-panel.d.ts.map +1 -0
- package/dist/toolbar/index.d.ts +2 -0
- package/dist/toolbar/index.d.ts.map +1 -0
- package/dist/toolbar/runs-panel.d.ts +12 -0
- package/dist/toolbar/runs-panel.d.ts.map +1 -0
- package/dist/toolbar/scout-panel.d.ts +10 -0
- package/dist/toolbar/scout-panel.d.ts.map +1 -0
- package/dist/toolbar/ship-panel.d.ts +6 -0
- package/dist/toolbar/ship-panel.d.ts.map +1 -0
- package/dist/toolbar/toolbar-element.d.ts +7 -0
- package/dist/toolbar/toolbar-element.d.ts.map +1 -0
- package/dist/toolbar/toolbar-idle.d.ts +4 -0
- package/dist/toolbar/toolbar-idle.d.ts.map +1 -0
- package/dist/toolbar/toolbar-idle.test.d.ts +2 -0
- package/dist/toolbar/toolbar-idle.test.d.ts.map +1 -0
- package/dist/toolbar/toolbar-link.d.ts +7 -0
- package/dist/toolbar/toolbar-link.d.ts.map +1 -0
- package/dist/toolbar/toolbar-shell.d.ts +15 -0
- package/dist/toolbar/toolbar-shell.d.ts.map +1 -0
- package/dist/toolbar/toolbar-shell.test.d.ts +2 -0
- package/dist/toolbar/toolbar-shell.test.d.ts.map +1 -0
- package/dist/toolbar/toolbar.d.ts +2 -0
- package/dist/toolbar/toolbar.d.ts.map +1 -0
- package/dist/toolbar/use-toolbar-shell.d.ts +8 -0
- package/dist/toolbar/use-toolbar-shell.d.ts.map +1 -0
- package/dist/toolbar.d.ts +1 -0
- package/dist/toolbar.js +27019 -0
- package/dist/toolbar.js.map +1 -0
- package/dist/types/index.d.ts +32 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +12 -10
- package/dist/types/index.js.map +1 -1
- package/dist/vite/index.d.ts +8 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +48 -0
- package/dist/vite/index.js.map +1 -0
- package/dist/vite/index.test.d.ts +2 -0
- package/dist/vite/index.test.d.ts.map +1 -0
- package/dist/vite/proxy.d.ts +7 -0
- package/dist/vite/proxy.d.ts.map +1 -0
- package/dist/vite/proxy.test.d.ts +2 -0
- package/dist/vite/proxy.test.d.ts.map +1 -0
- package/dist/vite.d.ts +6 -0
- package/package.json +12 -2
- package/dist/app/assets/index-CSirjtoU.js +0 -2
- package/dist/app/assets/index-CSirjtoU.js.map +0 -1
- package/dist/app/assets/main-CezpONOg.js +0 -207
- package/dist/app/assets/main-CezpONOg.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { spawn as K } from "node:child_process";
|
|
2
2
|
import { readdir as ws, readFile as pe, stat as Ln, writeFile as z, mkdir as le, rename as _n, access as Pn } from "node:fs/promises";
|
|
3
3
|
import { join as A, dirname as Rn } from "node:path";
|
|
4
|
-
import { AGENT_IDS as
|
|
4
|
+
import { AGENT_IDS as ve, PLAN_KINDS as Dn } from "../types/index.js";
|
|
5
5
|
import { createHash as Mn } from "node:crypto";
|
|
6
6
|
import { z as b } from "zod";
|
|
7
7
|
const jn = /^([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*)$/;
|
|
@@ -227,7 +227,7 @@ async function Ts(s, e = Kn) {
|
|
|
227
227
|
function qo() {
|
|
228
228
|
gt.clear();
|
|
229
229
|
}
|
|
230
|
-
const At = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), x = Symbol.for("yaml.map"), $s = Symbol.for("yaml.pair"), H = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), B = Symbol.for("yaml.node.type"), ge = (s) => !!s && typeof s == "object" && s[B] === At,
|
|
230
|
+
const At = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), x = Symbol.for("yaml.map"), $s = Symbol.for("yaml.pair"), H = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), B = Symbol.for("yaml.node.type"), ge = (s) => !!s && typeof s == "object" && s[B] === At, Oe = (s) => !!s && typeof s == "object" && s[B] === yt, Ce = (s) => !!s && typeof s == "object" && s[B] === x, _ = (s) => !!s && typeof s == "object" && s[B] === $s, O = (s) => !!s && typeof s == "object" && s[B] === H, Le = (s) => !!s && typeof s == "object" && s[B] === me;
|
|
231
231
|
function C(s) {
|
|
232
232
|
if (s && typeof s == "object")
|
|
233
233
|
switch (s[B]) {
|
|
@@ -248,14 +248,14 @@ function L(s) {
|
|
|
248
248
|
}
|
|
249
249
|
return !1;
|
|
250
250
|
}
|
|
251
|
-
const As = (s) => (O(s) || C(s)) && !!s.anchor, X = Symbol("break visit"), xn = Symbol("skip children"),
|
|
251
|
+
const As = (s) => (O(s) || C(s)) && !!s.anchor, X = Symbol("break visit"), xn = Symbol("skip children"), Ie = Symbol("remove node");
|
|
252
252
|
function ye(s, e) {
|
|
253
253
|
const t = Qn(e);
|
|
254
|
-
|
|
254
|
+
Oe(s) ? re(null, s.contents, t, Object.freeze([s])) === Ie && (s.contents = null) : re(null, s, t, Object.freeze([]));
|
|
255
255
|
}
|
|
256
256
|
ye.BREAK = X;
|
|
257
257
|
ye.SKIP = xn;
|
|
258
|
-
ye.REMOVE =
|
|
258
|
+
ye.REMOVE = Ie;
|
|
259
259
|
function re(s, e, t, n) {
|
|
260
260
|
const i = Xn(s, e, t, n);
|
|
261
261
|
if (L(i) || _(i))
|
|
@@ -270,7 +270,7 @@ function re(s, e, t, n) {
|
|
|
270
270
|
else {
|
|
271
271
|
if (o === X)
|
|
272
272
|
return X;
|
|
273
|
-
o ===
|
|
273
|
+
o === Ie && (e.items.splice(r, 1), r -= 1);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} else if (_(e)) {
|
|
@@ -278,11 +278,11 @@ function re(s, e, t, n) {
|
|
|
278
278
|
const r = re("key", e.key, t, n);
|
|
279
279
|
if (r === X)
|
|
280
280
|
return X;
|
|
281
|
-
r ===
|
|
281
|
+
r === Ie && (e.key = null);
|
|
282
282
|
const o = re("value", e.value, t, n);
|
|
283
283
|
if (o === X)
|
|
284
284
|
return X;
|
|
285
|
-
o ===
|
|
285
|
+
o === Ie && (e.value = null);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
return i;
|
|
@@ -306,9 +306,9 @@ function Xn(s, e, t, n) {
|
|
|
306
306
|
var i, r, o, a, c;
|
|
307
307
|
if (typeof t == "function")
|
|
308
308
|
return t(s, e, n);
|
|
309
|
-
if (Oe(e))
|
|
310
|
-
return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
|
|
311
309
|
if (Ce(e))
|
|
310
|
+
return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
|
|
311
|
+
if (Le(e))
|
|
312
312
|
return (r = t.Seq) == null ? void 0 : r.call(t, s, e, n);
|
|
313
313
|
if (_(e))
|
|
314
314
|
return (o = t.Pair) == null ? void 0 : o.call(t, s, e, n);
|
|
@@ -323,7 +323,7 @@ function Zn(s, e, t) {
|
|
|
323
323
|
n.items[s] = t;
|
|
324
324
|
else if (_(n))
|
|
325
325
|
s === "key" ? n.key = t : n.value = t;
|
|
326
|
-
else if (
|
|
326
|
+
else if (Oe(n))
|
|
327
327
|
n.contents = t;
|
|
328
328
|
else {
|
|
329
329
|
const i = ge(n) ? "alias" : "scalar";
|
|
@@ -548,7 +548,7 @@ class vt {
|
|
|
548
548
|
}
|
|
549
549
|
/** A plain JavaScript representation of this node. */
|
|
550
550
|
toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: i, reviver: r } = {}) {
|
|
551
|
-
if (!
|
|
551
|
+
if (!Oe(e))
|
|
552
552
|
throw new TypeError("A document argument is required");
|
|
553
553
|
const o = {
|
|
554
554
|
anchors: /* @__PURE__ */ new Map(),
|
|
@@ -672,9 +672,9 @@ function ii(s, e, t) {
|
|
|
672
672
|
return ((i = n.identify) == null ? void 0 : i.call(n, s)) && !n.format;
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function $e(s, e, t) {
|
|
676
676
|
var f, h, p;
|
|
677
|
-
if (
|
|
677
|
+
if (Oe(s) && (s = s.contents), L(s))
|
|
678
678
|
return s;
|
|
679
679
|
if (_(s)) {
|
|
680
680
|
const g = (h = (f = t.schema[x]).createNode) == null ? void 0 : h.call(f, t.schema, null, t);
|
|
@@ -711,7 +711,7 @@ function Ge(s, e, t) {
|
|
|
711
711
|
} else
|
|
712
712
|
n = /* @__PURE__ */ new Map([[r, n]]);
|
|
713
713
|
}
|
|
714
|
-
return
|
|
714
|
+
return $e(n, void 0, {
|
|
715
715
|
aliasDuplicateObjects: !1,
|
|
716
716
|
keepUndefined: !1,
|
|
717
717
|
onAnchor: () => {
|
|
@@ -721,7 +721,7 @@ function Ge(s, e, t) {
|
|
|
721
721
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const Ee = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
|
|
725
725
|
class _s extends vt {
|
|
726
726
|
constructor(e, t) {
|
|
727
727
|
super(e), Object.defineProperty(this, "schema", {
|
|
@@ -746,7 +746,7 @@ class _s extends vt {
|
|
|
746
746
|
* that already exists in the map.
|
|
747
747
|
*/
|
|
748
748
|
addIn(e, t) {
|
|
749
|
-
if (
|
|
749
|
+
if (Ee(e))
|
|
750
750
|
this.add(t);
|
|
751
751
|
else {
|
|
752
752
|
const [n, ...i] = e, r = this.get(n, !0);
|
|
@@ -926,7 +926,7 @@ function oi(s, e, t) {
|
|
|
926
926
|
}
|
|
927
927
|
return !0;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Te(s, e) {
|
|
930
930
|
const t = JSON.stringify(s);
|
|
931
931
|
if (e.options.doubleQuotedAsJSON)
|
|
932
932
|
return t;
|
|
@@ -990,7 +990,7 @@ function Ie(s, e) {
|
|
|
990
990
|
function bt(s, e) {
|
|
991
991
|
if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
|
|
992
992
|
`) || /[ \t]\n|\n[ \t]/.test(s))
|
|
993
|
-
return
|
|
993
|
+
return Te(s, e);
|
|
994
994
|
const t = e.indent || (Ze(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
995
995
|
${t}`) + "'";
|
|
996
996
|
return e.implicitKey ? n : Qe(n, t, Ps, Xe(e, !1));
|
|
@@ -999,10 +999,10 @@ function ae(s, e) {
|
|
|
999
999
|
const { singleQuote: t } = e.options;
|
|
1000
1000
|
let n;
|
|
1001
1001
|
if (t === !1)
|
|
1002
|
-
n =
|
|
1002
|
+
n = Te;
|
|
1003
1003
|
else {
|
|
1004
1004
|
const i = s.includes('"'), r = s.includes("'");
|
|
1005
|
-
i && !r ? n = bt : r && !i ? n =
|
|
1005
|
+
i && !r ? n = bt : r && !i ? n = Te : n = t ? bt : Te;
|
|
1006
1006
|
}
|
|
1007
1007
|
return n(s, e);
|
|
1008
1008
|
}
|
|
@@ -1105,7 +1105,7 @@ function Ct(s, e, t, n) {
|
|
|
1105
1105
|
case I.BLOCK_LITERAL:
|
|
1106
1106
|
return i || r ? ae(o.value, e) : Ye(o, e, t, n);
|
|
1107
1107
|
case I.QUOTE_DOUBLE:
|
|
1108
|
-
return
|
|
1108
|
+
return Te(o.value, e);
|
|
1109
1109
|
case I.QUOTE_SINGLE:
|
|
1110
1110
|
return bt(o.value, e);
|
|
1111
1111
|
case I.PLAIN:
|
|
@@ -1250,7 +1250,7 @@ function fi({ key: s, value: e }, t, n, i) {
|
|
|
1250
1250
|
g && (h = null), p ? (h && (m += Z(m, t.indent, l(h))), m = `? ${m}
|
|
1251
1251
|
${a}:`) : (m = `${m}:`, h && (m += Z(m, t.indent, l(h))));
|
|
1252
1252
|
let y, w, E;
|
|
1253
|
-
L(e) ? (y = !!e.spaceBefore, w = e.commentBefore, E = e.comment) : (y = !1, w = null, E = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !p && !h && O(e) && (t.indentAtStart = m.length + 1), d = !1, !u && c.length >= 2 && !t.inFlow && !p &&
|
|
1253
|
+
L(e) ? (y = !!e.spaceBefore, w = e.commentBefore, E = e.comment) : (y = !1, w = null, E = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !p && !h && O(e) && (t.indentAtStart = m.length + 1), d = !1, !u && c.length >= 2 && !t.inFlow && !p && Le(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
|
|
1254
1254
|
let S = !1;
|
|
1255
1255
|
const N = de(e, t, () => S = !0, () => d = !0);
|
|
1256
1256
|
let $ = " ";
|
|
@@ -1285,19 +1285,19 @@ ${t.indent}`);
|
|
|
1285
1285
|
function Ds(s, e) {
|
|
1286
1286
|
(s === "debug" || s === "warn") && console.warn(e);
|
|
1287
1287
|
}
|
|
1288
|
-
const
|
|
1289
|
-
identify: (s) => s ===
|
|
1288
|
+
const Me = "<<", J = {
|
|
1289
|
+
identify: (s) => s === Me || typeof s == "symbol" && s.description === Me,
|
|
1290
1290
|
default: "key",
|
|
1291
1291
|
tag: "tag:yaml.org,2002:merge",
|
|
1292
1292
|
test: /^<<$/,
|
|
1293
|
-
resolve: () => Object.assign(new I(Symbol(
|
|
1293
|
+
resolve: () => Object.assign(new I(Symbol(Me)), {
|
|
1294
1294
|
addToJSMap: Ms
|
|
1295
1295
|
}),
|
|
1296
|
-
stringify: () =>
|
|
1296
|
+
stringify: () => Me
|
|
1297
1297
|
}, ui = (s, e) => (J.identify(e) || O(e) && (!e.type || e.type === I.PLAIN) && J.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === J.tag && t.default));
|
|
1298
1298
|
function Ms(s, e, t) {
|
|
1299
1299
|
const n = js(s, t);
|
|
1300
|
-
if (
|
|
1300
|
+
if (Le(n))
|
|
1301
1301
|
for (const i of n.items)
|
|
1302
1302
|
ft(s, e, i);
|
|
1303
1303
|
else if (Array.isArray(n))
|
|
@@ -1308,7 +1308,7 @@ function Ms(s, e, t) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
function ft(s, e, t) {
|
|
1310
1310
|
const n = js(s, t);
|
|
1311
|
-
if (!
|
|
1311
|
+
if (!Ce(n))
|
|
1312
1312
|
throw new Error("Merge sources must be maps or map aliases");
|
|
1313
1313
|
const i = n.toJSON(null, s, Map);
|
|
1314
1314
|
for (const [r, o] of i)
|
|
@@ -1367,7 +1367,7 @@ function di(s, e, t) {
|
|
|
1367
1367
|
return JSON.stringify(e);
|
|
1368
1368
|
}
|
|
1369
1369
|
function Lt(s, e, t) {
|
|
1370
|
-
const n =
|
|
1370
|
+
const n = $e(s, void 0, t), i = $e(e, void 0, t);
|
|
1371
1371
|
return new D(n, i);
|
|
1372
1372
|
}
|
|
1373
1373
|
class D {
|
|
@@ -1572,7 +1572,7 @@ const we = {
|
|
|
1572
1572
|
nodeClass: M,
|
|
1573
1573
|
tag: "tag:yaml.org,2002:map",
|
|
1574
1574
|
resolve(s, e) {
|
|
1575
|
-
return
|
|
1575
|
+
return Ce(s) || e("Expected a mapping for this tag"), s;
|
|
1576
1576
|
},
|
|
1577
1577
|
createNode: (s, e, t) => M.from(s, e, t)
|
|
1578
1578
|
};
|
|
@@ -1595,11 +1595,11 @@ class te extends _s {
|
|
|
1595
1595
|
* @returns `true` if the item was found and removed.
|
|
1596
1596
|
*/
|
|
1597
1597
|
delete(e) {
|
|
1598
|
-
const t =
|
|
1598
|
+
const t = je(e);
|
|
1599
1599
|
return typeof t != "number" ? !1 : this.items.splice(t, 1).length > 0;
|
|
1600
1600
|
}
|
|
1601
1601
|
get(e, t) {
|
|
1602
|
-
const n =
|
|
1602
|
+
const n = je(e);
|
|
1603
1603
|
if (typeof n != "number")
|
|
1604
1604
|
return;
|
|
1605
1605
|
const i = this.items[n];
|
|
@@ -1612,7 +1612,7 @@ class te extends _s {
|
|
|
1612
1612
|
* It may be wrapped in a `Scalar`.
|
|
1613
1613
|
*/
|
|
1614
1614
|
has(e) {
|
|
1615
|
-
const t =
|
|
1615
|
+
const t = je(e);
|
|
1616
1616
|
return typeof t == "number" && t < this.items.length;
|
|
1617
1617
|
}
|
|
1618
1618
|
/**
|
|
@@ -1623,7 +1623,7 @@ class te extends _s {
|
|
|
1623
1623
|
* It may be wrapped in a `Scalar`.
|
|
1624
1624
|
*/
|
|
1625
1625
|
set(e, t) {
|
|
1626
|
-
const n =
|
|
1626
|
+
const n = je(e);
|
|
1627
1627
|
if (typeof n != "number")
|
|
1628
1628
|
throw new Error(`Expected a valid index, not ${e}.`);
|
|
1629
1629
|
const i = this.items[n];
|
|
@@ -1655,13 +1655,13 @@ class te extends _s {
|
|
|
1655
1655
|
const c = t instanceof Set ? a : String(o++);
|
|
1656
1656
|
a = i.call(t, c, a);
|
|
1657
1657
|
}
|
|
1658
|
-
r.items.push(
|
|
1658
|
+
r.items.push($e(a, void 0, n));
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
return r;
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function je(s) {
|
|
1665
1665
|
let e = O(s) ? s.value : s;
|
|
1666
1666
|
return e && typeof e == "string" && (e = Number(e)), typeof e == "number" && Number.isInteger(e) && e >= 0 ? e : null;
|
|
1667
1667
|
}
|
|
@@ -1671,7 +1671,7 @@ const be = {
|
|
|
1671
1671
|
nodeClass: te,
|
|
1672
1672
|
tag: "tag:yaml.org,2002:seq",
|
|
1673
1673
|
resolve(s, e) {
|
|
1674
|
-
return
|
|
1674
|
+
return Le(s) || e("Expected a sequence for this tag"), s;
|
|
1675
1675
|
},
|
|
1676
1676
|
createNode: (s, e, t) => te.from(s, e, t)
|
|
1677
1677
|
}, et = {
|
|
@@ -1793,13 +1793,13 @@ const Hs = {
|
|
|
1793
1793
|
function ns(s) {
|
|
1794
1794
|
return typeof s == "bigint" || Number.isInteger(s);
|
|
1795
1795
|
}
|
|
1796
|
-
const
|
|
1796
|
+
const Be = ({ value: s }) => JSON.stringify(s), gi = [
|
|
1797
1797
|
{
|
|
1798
1798
|
identify: (s) => typeof s == "string",
|
|
1799
1799
|
default: !0,
|
|
1800
1800
|
tag: "tag:yaml.org,2002:str",
|
|
1801
1801
|
resolve: (s) => s,
|
|
1802
|
-
stringify:
|
|
1802
|
+
stringify: Be
|
|
1803
1803
|
},
|
|
1804
1804
|
{
|
|
1805
1805
|
identify: (s) => s == null,
|
|
@@ -1808,7 +1808,7 @@ const je = ({ value: s }) => JSON.stringify(s), gi = [
|
|
|
1808
1808
|
tag: "tag:yaml.org,2002:null",
|
|
1809
1809
|
test: /^null$/,
|
|
1810
1810
|
resolve: () => null,
|
|
1811
|
-
stringify:
|
|
1811
|
+
stringify: Be
|
|
1812
1812
|
},
|
|
1813
1813
|
{
|
|
1814
1814
|
identify: (s) => typeof s == "boolean",
|
|
@@ -1816,7 +1816,7 @@ const je = ({ value: s }) => JSON.stringify(s), gi = [
|
|
|
1816
1816
|
tag: "tag:yaml.org,2002:bool",
|
|
1817
1817
|
test: /^true$|^false$/,
|
|
1818
1818
|
resolve: (s) => s === "true",
|
|
1819
|
-
stringify:
|
|
1819
|
+
stringify: Be
|
|
1820
1820
|
},
|
|
1821
1821
|
{
|
|
1822
1822
|
identify: ns,
|
|
@@ -1832,7 +1832,7 @@ const je = ({ value: s }) => JSON.stringify(s), gi = [
|
|
|
1832
1832
|
tag: "tag:yaml.org,2002:float",
|
|
1833
1833
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
1834
1834
|
resolve: (s) => parseFloat(s),
|
|
1835
|
-
stringify:
|
|
1835
|
+
stringify: Be
|
|
1836
1836
|
}
|
|
1837
1837
|
], yi = {
|
|
1838
1838
|
default: !0,
|
|
@@ -1886,11 +1886,11 @@ const je = ({ value: s }) => JSON.stringify(s), gi = [
|
|
|
1886
1886
|
}
|
|
1887
1887
|
};
|
|
1888
1888
|
function Js(s, e) {
|
|
1889
|
-
if (
|
|
1889
|
+
if (Le(s))
|
|
1890
1890
|
for (let t = 0; t < s.items.length; ++t) {
|
|
1891
1891
|
let n = s.items[t];
|
|
1892
1892
|
if (!_(n)) {
|
|
1893
|
-
if (
|
|
1893
|
+
if (Ce(n)) {
|
|
1894
1894
|
n.items.length > 1 && e("Each pair must have its own sequence indicator");
|
|
1895
1895
|
const i = n.items[0] || new D(new I(null));
|
|
1896
1896
|
if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
|
|
@@ -2030,7 +2030,7 @@ const xs = {
|
|
|
2030
2030
|
return e;
|
|
2031
2031
|
},
|
|
2032
2032
|
stringify: Y
|
|
2033
|
-
},
|
|
2033
|
+
}, _e = (s) => typeof s == "bigint" || Number.isInteger(s);
|
|
2034
2034
|
function nt(s, e, t, { intAsBigInt: n }) {
|
|
2035
2035
|
const i = s[0];
|
|
2036
2036
|
if ((i === "-" || i === "+") && (e += 1), s = s.substring(e).replace(/_/g, ""), n) {
|
|
@@ -2053,14 +2053,14 @@ function nt(s, e, t, { intAsBigInt: n }) {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
function jt(s, e, t) {
|
|
2055
2055
|
const { value: n } = s;
|
|
2056
|
-
if (
|
|
2056
|
+
if (_e(n)) {
|
|
2057
2057
|
const i = n.toString(e);
|
|
2058
2058
|
return n < 0 ? "-" + t + i.substr(1) : t + i;
|
|
2059
2059
|
}
|
|
2060
2060
|
return Y(s);
|
|
2061
2061
|
}
|
|
2062
2062
|
const Ei = {
|
|
2063
|
-
identify:
|
|
2063
|
+
identify: _e,
|
|
2064
2064
|
default: !0,
|
|
2065
2065
|
tag: "tag:yaml.org,2002:int",
|
|
2066
2066
|
format: "BIN",
|
|
@@ -2068,7 +2068,7 @@ const Ei = {
|
|
|
2068
2068
|
resolve: (s, e, t) => nt(s, 2, 2, t),
|
|
2069
2069
|
stringify: (s) => jt(s, 2, "0b")
|
|
2070
2070
|
}, Ni = {
|
|
2071
|
-
identify:
|
|
2071
|
+
identify: _e,
|
|
2072
2072
|
default: !0,
|
|
2073
2073
|
tag: "tag:yaml.org,2002:int",
|
|
2074
2074
|
format: "OCT",
|
|
@@ -2076,14 +2076,14 @@ const Ei = {
|
|
|
2076
2076
|
resolve: (s, e, t) => nt(s, 1, 8, t),
|
|
2077
2077
|
stringify: (s) => jt(s, 8, "0")
|
|
2078
2078
|
}, Ii = {
|
|
2079
|
-
identify:
|
|
2079
|
+
identify: _e,
|
|
2080
2080
|
default: !0,
|
|
2081
2081
|
tag: "tag:yaml.org,2002:int",
|
|
2082
2082
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
2083
2083
|
resolve: (s, e, t) => nt(s, 0, 10, t),
|
|
2084
2084
|
stringify: Y
|
|
2085
2085
|
}, Ti = {
|
|
2086
|
-
identify:
|
|
2086
|
+
identify: _e,
|
|
2087
2087
|
default: !0,
|
|
2088
2088
|
tag: "tag:yaml.org,2002:int",
|
|
2089
2089
|
format: "HEX",
|
|
@@ -2140,7 +2140,7 @@ const Bt = {
|
|
|
2140
2140
|
tag: "tag:yaml.org,2002:set",
|
|
2141
2141
|
createNode: (s, e, t) => ue.from(s, e, t),
|
|
2142
2142
|
resolve(s, e) {
|
|
2143
|
-
if (
|
|
2143
|
+
if (Ce(s)) {
|
|
2144
2144
|
if (s.hasAllNullValues(!0))
|
|
2145
2145
|
return Object.assign(new ue(), s);
|
|
2146
2146
|
e("Set items must all have null values");
|
|
@@ -2336,7 +2336,7 @@ function vi(s, e) {
|
|
|
2336
2336
|
`) + `
|
|
2337
2337
|
`;
|
|
2338
2338
|
}
|
|
2339
|
-
class
|
|
2339
|
+
class Pe {
|
|
2340
2340
|
constructor(e, t, n) {
|
|
2341
2341
|
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, B, { value: yt });
|
|
2342
2342
|
let i = null;
|
|
@@ -2361,7 +2361,7 @@ class _e {
|
|
|
2361
2361
|
* Custom Node values that inherit from `Object` still refer to their original instances.
|
|
2362
2362
|
*/
|
|
2363
2363
|
clone() {
|
|
2364
|
-
const e = Object.create(
|
|
2364
|
+
const e = Object.create(Pe.prototype, {
|
|
2365
2365
|
[B]: { value: yt }
|
|
2366
2366
|
});
|
|
2367
2367
|
return e.commentBefore = this.commentBefore, e.comment = this.comment, e.errors = this.errors.slice(), e.warnings = this.warnings.slice(), e.options = Object.assign({}, this.options), this.directives && (e.directives = this.directives.clone()), e.schema = this.schema.clone(), e.contents = L(this.contents) ? this.contents.clone(e.schema) : this.contents, this.range && (e.range = this.range.slice()), e;
|
|
@@ -2411,7 +2411,7 @@ class _e {
|
|
|
2411
2411
|
replacer: i,
|
|
2412
2412
|
schema: this.schema,
|
|
2413
2413
|
sourceObjects: p
|
|
2414
|
-
}, d =
|
|
2414
|
+
}, d = $e(e, u, g);
|
|
2415
2415
|
return a && C(d) && (d.flow = !0), h(), d;
|
|
2416
2416
|
}
|
|
2417
2417
|
/**
|
|
@@ -2434,7 +2434,7 @@ class _e {
|
|
|
2434
2434
|
* @returns `true` if the item was found and removed.
|
|
2435
2435
|
*/
|
|
2436
2436
|
deleteIn(e) {
|
|
2437
|
-
return
|
|
2437
|
+
return Ee(e) ? this.contents == null ? !1 : (this.contents = null, !0) : ne(this.contents) ? this.contents.deleteIn(e) : !1;
|
|
2438
2438
|
}
|
|
2439
2439
|
/**
|
|
2440
2440
|
* Returns item at `key`, or `undefined` if not found. By default unwraps
|
|
@@ -2450,7 +2450,7 @@ class _e {
|
|
|
2450
2450
|
* `true` (collections are always returned intact).
|
|
2451
2451
|
*/
|
|
2452
2452
|
getIn(e, t) {
|
|
2453
|
-
return
|
|
2453
|
+
return Ee(e) ? !t && O(this.contents) ? this.contents.value : this.contents : C(this.contents) ? this.contents.getIn(e, t) : void 0;
|
|
2454
2454
|
}
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Checks if the document includes a value with the key `key`.
|
|
@@ -2462,7 +2462,7 @@ class _e {
|
|
|
2462
2462
|
* Checks if the document includes a value at `path`.
|
|
2463
2463
|
*/
|
|
2464
2464
|
hasIn(e) {
|
|
2465
|
-
return
|
|
2465
|
+
return Ee(e) ? this.contents !== void 0 : C(this.contents) ? this.contents.hasIn(e) : !1;
|
|
2466
2466
|
}
|
|
2467
2467
|
/**
|
|
2468
2468
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
@@ -2476,7 +2476,7 @@ class _e {
|
|
|
2476
2476
|
* boolean to add/remove the item from the set.
|
|
2477
2477
|
*/
|
|
2478
2478
|
setIn(e, t) {
|
|
2479
|
-
|
|
2479
|
+
Ee(e) ? this.contents = t : this.contents == null ? this.contents = Ge(this.schema, Array.from(e), t) : ne(this.contents) && this.contents.setIn(e, t);
|
|
2480
2480
|
}
|
|
2481
2481
|
/**
|
|
2482
2482
|
* Change the YAML version and schema used by the document.
|
|
@@ -2556,7 +2556,7 @@ class tn extends Error {
|
|
|
2556
2556
|
super(), this.name = e, this.code = n, this.message = i, this.pos = t;
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
|
-
class
|
|
2559
|
+
class Ne extends tn {
|
|
2560
2560
|
constructor(e, t, n) {
|
|
2561
2561
|
super("YAMLParseError", e, t, n);
|
|
2562
2562
|
}
|
|
@@ -2642,7 +2642,7 @@ function he(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
|
|
|
2642
2642
|
start: N ?? T
|
|
2643
2643
|
};
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2645
|
+
function Ae(s) {
|
|
2646
2646
|
if (!s)
|
|
2647
2647
|
return null;
|
|
2648
2648
|
switch (s.type) {
|
|
@@ -2669,7 +2669,7 @@ function $e(s) {
|
|
|
2669
2669
|
if (t.type === "newline")
|
|
2670
2670
|
return !0;
|
|
2671
2671
|
}
|
|
2672
|
-
if (
|
|
2672
|
+
if (Ae(e.key) || Ae(e.value))
|
|
2673
2673
|
return !0;
|
|
2674
2674
|
}
|
|
2675
2675
|
return !1;
|
|
@@ -2680,7 +2680,7 @@ function $e(s) {
|
|
|
2680
2680
|
function St(s, e, t) {
|
|
2681
2681
|
if ((e == null ? void 0 : e.type) === "flow-collection") {
|
|
2682
2682
|
const n = e.end[0];
|
|
2683
|
-
n.indent === s && (n.source === "]" || n.source === "}") &&
|
|
2683
|
+
n.indent === s && (n.source === "]" || n.source === "}") && Ae(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
|
|
2684
2684
|
}
|
|
2685
2685
|
}
|
|
2686
2686
|
function sn(s, e, t) {
|
|
@@ -2711,7 +2711,7 @@ function Ci({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2711
2711
|
` + m.comment : a.comment = m.comment);
|
|
2712
2712
|
continue;
|
|
2713
2713
|
}
|
|
2714
|
-
(m.newlineAfterProp ||
|
|
2714
|
+
(m.newlineAfterProp || Ae(p)) && i(p ?? h[h.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
2715
2715
|
} else ((u = m.found) == null ? void 0 : u.indent) !== n.indent && i(c, "BAD_INDENT", cs);
|
|
2716
2716
|
t.atKey = !0;
|
|
2717
2717
|
const w = m.end, E = p ? s(t, p, m, i) : e(t, w, h, null, m, i);
|
|
@@ -2764,7 +2764,7 @@ function Li({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
return a.range = [n.offset, c, l ?? c], a;
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2767
|
+
function Re(s, e, t, n) {
|
|
2768
2768
|
let i = "";
|
|
2769
2769
|
if (s) {
|
|
2770
2770
|
let r = !1, o = "";
|
|
@@ -2815,7 +2815,7 @@ function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2815
2815
|
` + T.comment : l.comment = T.comment), f = T.end;
|
|
2816
2816
|
continue;
|
|
2817
2817
|
}
|
|
2818
|
-
!o && t.options.strict &&
|
|
2818
|
+
!o && t.options.strict && Ae(S) && i(
|
|
2819
2819
|
S,
|
|
2820
2820
|
// checked by containsNewline()
|
|
2821
2821
|
"MULTILINE_IMPLICIT_KEY",
|
|
@@ -2898,7 +2898,7 @@ function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2898
2898
|
i(f, u ? "MISSING_CHAR" : "BAD_INDENT", w), p && p.source.length !== 1 && g.unshift(p);
|
|
2899
2899
|
}
|
|
2900
2900
|
if (g.length > 0) {
|
|
2901
|
-
const y =
|
|
2901
|
+
const y = Re(g, d, t.options.strict, i);
|
|
2902
2902
|
y.comment && (l.comment ? l.comment += `
|
|
2903
2903
|
` + y.comment : l.comment = y.comment), l.range = [n.offset, d, y.offset];
|
|
2904
2904
|
} else
|
|
@@ -3071,7 +3071,7 @@ function ji(s, e, t) {
|
|
|
3071
3071
|
range: [n, n + r.length, n + r.length]
|
|
3072
3072
|
};
|
|
3073
3073
|
}
|
|
3074
|
-
const u = n + r.length, f =
|
|
3074
|
+
const u = n + r.length, f = Re(o, u, e, t);
|
|
3075
3075
|
return {
|
|
3076
3076
|
value: c,
|
|
3077
3077
|
type: a,
|
|
@@ -3333,11 +3333,11 @@ function qt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: a, end: c
|
|
|
3333
3333
|
function Wi({ options: s }, { offset: e, source: t, end: n }, i) {
|
|
3334
3334
|
const r = new Ot(t.substring(1));
|
|
3335
3335
|
r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
|
|
3336
|
-
const o = e + t.length, a =
|
|
3336
|
+
const o = e + t.length, a = Re(n, o, s.strict, i);
|
|
3337
3337
|
return r.range = [e, o, a.offset], a.comment && (r.comment = a.comment), r;
|
|
3338
3338
|
}
|
|
3339
3339
|
function zi(s, e, { offset: t, start: n, value: i, end: r }, o) {
|
|
3340
|
-
const a = Object.assign({ _directives: e }, s), c = new
|
|
3340
|
+
const a = Object.assign({ _directives: e }, s), c = new Pe(void 0, a), l = {
|
|
3341
3341
|
atKey: !1,
|
|
3342
3342
|
atRoot: !0,
|
|
3343
3343
|
directives: c.directives,
|
|
@@ -3352,7 +3352,7 @@ function zi(s, e, { offset: t, start: n, value: i, end: r }, o) {
|
|
|
3352
3352
|
startOnNewline: !0
|
|
3353
3353
|
});
|
|
3354
3354
|
u.found && (c.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !u.hasNewline && o(u.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), c.contents = i ? on(l, i, u, o) : qt(l, u.end, n, null, u, o);
|
|
3355
|
-
const f = c.contents.range[2], h =
|
|
3355
|
+
const f = c.contents.range[2], h = Re(r, f, !1, o);
|
|
3356
3356
|
return h.comment && (c.comment = h.comment), c.range = [t, f, h.offset], c;
|
|
3357
3357
|
}
|
|
3358
3358
|
function ke(s) {
|
|
@@ -3388,7 +3388,7 @@ class xi {
|
|
|
3388
3388
|
constructor(e = {}) {
|
|
3389
3389
|
this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
|
|
3390
3390
|
const o = ke(t);
|
|
3391
|
-
r ? this.warnings.push(new Oi(o, n, i)) : this.errors.push(new
|
|
3391
|
+
r ? this.warnings.push(new Oi(o, n, i)) : this.errors.push(new Ne(o, n, i));
|
|
3392
3392
|
}, this.directives = new R({ version: e.version || "1.2" }), this.options = e;
|
|
3393
3393
|
}
|
|
3394
3394
|
decorate(e, t) {
|
|
@@ -3467,18 +3467,18 @@ ${o}` : n;
|
|
|
3467
3467
|
this.prelude.push(e.source);
|
|
3468
3468
|
break;
|
|
3469
3469
|
case "error": {
|
|
3470
|
-
const t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new
|
|
3470
|
+
const t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new Ne(ke(e), "UNEXPECTED_TOKEN", t);
|
|
3471
3471
|
this.atDirectives || !this.doc ? this.errors.push(n) : this.doc.errors.push(n);
|
|
3472
3472
|
break;
|
|
3473
3473
|
}
|
|
3474
3474
|
case "doc-end": {
|
|
3475
3475
|
if (!this.doc) {
|
|
3476
3476
|
const n = "Unexpected doc-end without preceding document";
|
|
3477
|
-
this.errors.push(new
|
|
3477
|
+
this.errors.push(new Ne(ke(e), "UNEXPECTED_TOKEN", n));
|
|
3478
3478
|
break;
|
|
3479
3479
|
}
|
|
3480
3480
|
this.doc.directives.docEnd = !0;
|
|
3481
|
-
const t =
|
|
3481
|
+
const t = Re(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
|
|
3482
3482
|
if (this.decorate(this.doc, !0), t.comment) {
|
|
3483
3483
|
const n = this.doc.comment;
|
|
3484
3484
|
this.doc.comment = n ? `${n}
|
|
@@ -3488,7 +3488,7 @@ ${t.comment}` : t.comment;
|
|
|
3488
3488
|
break;
|
|
3489
3489
|
}
|
|
3490
3490
|
default:
|
|
3491
|
-
this.errors.push(new
|
|
3491
|
+
this.errors.push(new Ne(ke(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
3494
|
/**
|
|
@@ -3501,7 +3501,7 @@ ${t.comment}` : t.comment;
|
|
|
3501
3501
|
if (this.doc)
|
|
3502
3502
|
this.decorate(this.doc, !0), yield this.doc, this.doc = null;
|
|
3503
3503
|
else if (e) {
|
|
3504
|
-
const n = Object.assign({ _directives: this.directives }, this.options), i = new
|
|
3504
|
+
const n = Object.assign({ _directives: this.directives }, this.options), i = new Pe(void 0, n);
|
|
3505
3505
|
this.atDirectives && this.onError(t, "MISSING_CHAR", "Missing directives-end indicator line"), i.range = [0, t, t], this.decorate(i, !1), yield i;
|
|
3506
3506
|
}
|
|
3507
3507
|
}
|
|
@@ -3581,7 +3581,7 @@ function U(s) {
|
|
|
3581
3581
|
return !1;
|
|
3582
3582
|
}
|
|
3583
3583
|
}
|
|
3584
|
-
const fs = new Set("0123456789ABCDEFabcdef"), Xi = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),
|
|
3584
|
+
const fs = new Set("0123456789ABCDEFabcdef"), Xi = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Ke = new Set(",[]{}"), Zi = new Set(` ,[]{}
|
|
3585
3585
|
\r `), mt = (s) => !s || Zi.has(s);
|
|
3586
3586
|
class er {
|
|
3587
3587
|
constructor() {
|
|
@@ -3908,14 +3908,14 @@ class er {
|
|
|
3908
3908
|
for (; i = this.buffer[++n]; )
|
|
3909
3909
|
if (i === ":") {
|
|
3910
3910
|
const r = this.buffer[n + 1];
|
|
3911
|
-
if (U(r) || e &&
|
|
3911
|
+
if (U(r) || e && Ke.has(r))
|
|
3912
3912
|
break;
|
|
3913
3913
|
t = n;
|
|
3914
3914
|
} else if (U(i)) {
|
|
3915
3915
|
let r = this.buffer[n + 1];
|
|
3916
3916
|
if (i === "\r" && (r === `
|
|
3917
3917
|
` ? (n += 1, i = `
|
|
3918
|
-
`, r = this.buffer[n + 1]) : t = n), r === "#" || e &&
|
|
3918
|
+
`, r = this.buffer[n + 1]) : t = n), r === "#" || e && Ke.has(r))
|
|
3919
3919
|
break;
|
|
3920
3920
|
if (i === `
|
|
3921
3921
|
`) {
|
|
@@ -3925,7 +3925,7 @@ class er {
|
|
|
3925
3925
|
n = Math.max(n, o - 2);
|
|
3926
3926
|
}
|
|
3927
3927
|
} else {
|
|
3928
|
-
if (e &&
|
|
3928
|
+
if (e && Ke.has(i))
|
|
3929
3929
|
break;
|
|
3930
3930
|
t = n;
|
|
3931
3931
|
}
|
|
@@ -3952,7 +3952,7 @@ class er {
|
|
|
3952
3952
|
case "?":
|
|
3953
3953
|
case ":": {
|
|
3954
3954
|
const t = this.flowLevel > 0, n = this.charAt(1);
|
|
3955
|
-
if (U(n) || t &&
|
|
3955
|
+
if (U(n) || t && Ke.has(n)) {
|
|
3956
3956
|
t ? this.flowKey && (this.flowKey = !1) : this.indentNext = this.indentValue + 1, e += yield* this.pushCount(1), e += yield* this.pushSpaces(!0);
|
|
3957
3957
|
continue e;
|
|
3958
3958
|
}
|
|
@@ -4048,7 +4048,7 @@ function fn(s) {
|
|
|
4048
4048
|
return !1;
|
|
4049
4049
|
}
|
|
4050
4050
|
}
|
|
4051
|
-
function
|
|
4051
|
+
function Fe(s) {
|
|
4052
4052
|
switch (s.type) {
|
|
4053
4053
|
case "document":
|
|
4054
4054
|
return s.start;
|
|
@@ -4305,7 +4305,7 @@ class sr {
|
|
|
4305
4305
|
}
|
|
4306
4306
|
*scalar(e) {
|
|
4307
4307
|
if (this.type === "map-value-ind") {
|
|
4308
|
-
const t =
|
|
4308
|
+
const t = Fe(this.peek(2)), n = ie(t);
|
|
4309
4309
|
let i;
|
|
4310
4310
|
e.end ? (i = e.end, i.push(this.sourceToken), delete e.end) : i = [this.sourceToken];
|
|
4311
4311
|
const r = {
|
|
@@ -4563,7 +4563,7 @@ class sr {
|
|
|
4563
4563
|
if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === e.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
|
|
4564
4564
|
yield* this.pop(), yield* this.step();
|
|
4565
4565
|
else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
|
|
4566
|
-
const i =
|
|
4566
|
+
const i = Fe(n), r = ie(i);
|
|
4567
4567
|
ds(e);
|
|
4568
4568
|
const o = e.end.splice(1, e.end.length);
|
|
4569
4569
|
o.push(this.sourceToken);
|
|
@@ -4627,7 +4627,7 @@ class sr {
|
|
|
4627
4627
|
};
|
|
4628
4628
|
case "explicit-key-ind": {
|
|
4629
4629
|
this.onKeyLine = !0;
|
|
4630
|
-
const t =
|
|
4630
|
+
const t = Fe(e), n = ie(t);
|
|
4631
4631
|
return n.push(this.sourceToken), {
|
|
4632
4632
|
type: "block-map",
|
|
4633
4633
|
offset: this.offset,
|
|
@@ -4637,7 +4637,7 @@ class sr {
|
|
|
4637
4637
|
}
|
|
4638
4638
|
case "map-value-ind": {
|
|
4639
4639
|
this.onKeyLine = !0;
|
|
4640
|
-
const t =
|
|
4640
|
+
const t = Fe(e), n = ie(t);
|
|
4641
4641
|
return {
|
|
4642
4642
|
type: "block-map",
|
|
4643
4643
|
offset: this.offset,
|
|
@@ -4684,7 +4684,7 @@ function ir(s, e = {}) {
|
|
|
4684
4684
|
if (!o)
|
|
4685
4685
|
o = a;
|
|
4686
4686
|
else if (o.options.logLevel !== "silent") {
|
|
4687
|
-
o.errors.push(new
|
|
4687
|
+
o.errors.push(new Ne(a.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
4688
4688
|
break;
|
|
4689
4689
|
}
|
|
4690
4690
|
return n && t && (o.errors.forEach(as(s, t)), o.warnings.forEach(as(s, t))), o;
|
|
@@ -4708,9 +4708,9 @@ function or(s, e, t) {
|
|
|
4708
4708
|
if (!i)
|
|
4709
4709
|
return;
|
|
4710
4710
|
}
|
|
4711
|
-
return
|
|
4711
|
+
return Oe(s) && !n ? s.toString(t) : new Pe(s, n, t).toString(t);
|
|
4712
4712
|
}
|
|
4713
|
-
const ar = /^#{2,3}\s+/, Nt = /^[-*]\s+\[([ xX])\]\s+(.*)$/, cr = /^\[review\]\s+(.*)$/, lr = /^-\s+(\d{4}-\d{2}-\d{2}):\s*(.*)$/, fr = /^\[(?:phase:(\d+)|body)\]\s+(?:\[(decision|question)\]\s+)?(.*)$/, ur = /^-\s+\[([ xX])\]\s+(?:(\d{4}-\d{2}-\d{2})\s+)?\[(log|clarification|review|note|decision|question)\]\s+(\[agent\]\s+)?(.*)$/, dr = ["note", "decision", "question"];
|
|
4713
|
+
const ar = /^#{2,3}\s+/, Nt = /^[-*]\s+\[([ xX])\]\s+(.*)$/, cr = /^\[review\]\s+(.*)$/, lr = /^-\s+(\d{4}-\d{2}-\d{2}):\s*(.*)$/, fr = /^\[(?:phase:(\d+)|body)\]\s+(?:\[(decision|question)\]\s+)?(.*)$/, ur = /^-\s+\[([ xX])\]\s+(?:(\d{4}-\d{2}-\d{2})\s+)?\[(log|clarification|review|note|decision|question|chat)\]\s+(\[agent\]\s+)?(.*)$/, dr = ["note", "decision", "question"];
|
|
4714
4714
|
function un(s, e, t) {
|
|
4715
4715
|
const n = [];
|
|
4716
4716
|
let i = e;
|
|
@@ -4797,7 +4797,7 @@ const rt = {
|
|
|
4797
4797
|
headingRe: /^#{2,3}\s+Fixes\s*$/i,
|
|
4798
4798
|
parseEntries: un,
|
|
4799
4799
|
formatLines: (s) => dn("### Fixes", s)
|
|
4800
|
-
},
|
|
4800
|
+
}, De = {
|
|
4801
4801
|
headingRe: /^#{2,3}\s+Log\s*$/i,
|
|
4802
4802
|
parseEntries: Ut,
|
|
4803
4803
|
formatLines: (s) => Yt("### Log", s)
|
|
@@ -4874,10 +4874,25 @@ function Er(s = []) {
|
|
|
4874
4874
|
function Uo(s, e, t) {
|
|
4875
4875
|
return [...(s ?? []).filter((n) => !e.includes(n.kind)), ...t];
|
|
4876
4876
|
}
|
|
4877
|
-
|
|
4877
|
+
function Yo(s, e, t, n) {
|
|
4878
|
+
return s.map((i, r) => {
|
|
4879
|
+
if (r !== e) return i;
|
|
4880
|
+
const o = n ? `${i.text}
|
|
4881
|
+
|
|
4882
|
+
${n}` : i.text;
|
|
4883
|
+
if (t === "decision") return { ...i, kind: t, state: "open", text: o };
|
|
4884
|
+
const { state: a, ...c } = i;
|
|
4885
|
+
return { ...c, kind: t, text: o };
|
|
4886
|
+
});
|
|
4887
|
+
}
|
|
4888
|
+
function Ho(s = []) {
|
|
4889
|
+
const e = s.reduce((t, n, i) => n.kind === "log" ? i : t, -1);
|
|
4890
|
+
return s.slice(e + 1).filter((t) => t.kind === "chat");
|
|
4891
|
+
}
|
|
4892
|
+
const Se = b.preprocess(
|
|
4878
4893
|
(s) => typeof s == "string" ? { agent: s } : s,
|
|
4879
4894
|
b.object({
|
|
4880
|
-
agent: b.enum(
|
|
4895
|
+
agent: b.enum(ve),
|
|
4881
4896
|
model: b.string().optional(),
|
|
4882
4897
|
effort: b.string().optional()
|
|
4883
4898
|
})
|
|
@@ -4886,7 +4901,7 @@ const Fe = b.preprocess(
|
|
|
4886
4901
|
kind: b.enum(["feat", "fix", "chore", "docs", "refactor"]).optional(),
|
|
4887
4902
|
id: b.string().optional(),
|
|
4888
4903
|
idea: b.string().optional(),
|
|
4889
|
-
agent: b.enum(
|
|
4904
|
+
agent: b.enum(ve).optional(),
|
|
4890
4905
|
created: Q,
|
|
4891
4906
|
updated: Q.optional(),
|
|
4892
4907
|
tags: b.string().optional()
|
|
@@ -4896,7 +4911,7 @@ const Fe = b.preprocess(
|
|
|
4896
4911
|
kind: b.enum(["feat", "fix", "chore", "docs", "refactor"]).describe("Plan kind matching Conventional Commits types"),
|
|
4897
4912
|
status: b.enum(["idea", "planned", "in-progress", "review", "done", "dropped"]).describe("Current lifecycle status"),
|
|
4898
4913
|
idea: b.string().optional().describe("IDEA-N backlink if this plan grew out of an idea"),
|
|
4899
|
-
agent: b.enum(
|
|
4914
|
+
agent: b.enum(ve).optional().describe("Per-plan agent override"),
|
|
4900
4915
|
created: Q.describe("Creation date (YYYY-MM-DD)"),
|
|
4901
4916
|
updated: Q.optional().describe("Last significant update date (YYYY-MM-DD)"),
|
|
4902
4917
|
audited: Q.optional().describe("Date of last successful convergence audit (YYYY-MM-DD)"),
|
|
@@ -4920,7 +4935,7 @@ const Fe = b.preprocess(
|
|
|
4920
4935
|
status: b.enum(["idea", "planned", "in-progress", "review", "done", "dropped", "open"]).optional().describe(
|
|
4921
4936
|
"Stored override, no longer the source of truth: most lifecycle states derive from phases/branch/PR. Only dropped, a planless idea/note being closed, or the offline fallback need this set."
|
|
4922
4937
|
),
|
|
4923
|
-
agent: b.enum(
|
|
4938
|
+
agent: b.enum(ve).optional().describe("Per-entity agent override"),
|
|
4924
4939
|
created: Q.describe("Creation date (YYYY-MM-DD)"),
|
|
4925
4940
|
updated: Q.optional().describe("Last significant update date (YYYY-MM-DD)"),
|
|
4926
4941
|
audited: Q.optional().describe("Date of last successful convergence audit (YYYY-MM-DD)"),
|
|
@@ -4953,12 +4968,13 @@ const Fe = b.preprocess(
|
|
|
4953
4968
|
docs: b.number().optional(),
|
|
4954
4969
|
refactor: b.number().optional()
|
|
4955
4970
|
}).optional(),
|
|
4956
|
-
defaultAgent: b.enum(
|
|
4971
|
+
defaultAgent: b.enum(ve).optional(),
|
|
4957
4972
|
defaultAgents: b.object({
|
|
4958
|
-
phase:
|
|
4959
|
-
planDraft:
|
|
4960
|
-
ideaExtend:
|
|
4961
|
-
commitSuggest:
|
|
4973
|
+
phase: Se,
|
|
4974
|
+
planDraft: Se,
|
|
4975
|
+
ideaExtend: Se,
|
|
4976
|
+
commitSuggest: Se,
|
|
4977
|
+
feedback: Se
|
|
4962
4978
|
}).optional()
|
|
4963
4979
|
}), hs = /^##\s+(.+?)\s*$/, vr = /^\*\*([A-Za-z][A-Za-z-]*):\*\*\s*(.*)$/, Or = /^#{2,3}\s+/;
|
|
4964
4980
|
function We(s, e) {
|
|
@@ -4977,7 +4993,7 @@ function We(s, e) {
|
|
|
4977
4993
|
}
|
|
4978
4994
|
const ps = {
|
|
4979
4995
|
phases: rt,
|
|
4980
|
-
log:
|
|
4996
|
+
log: De,
|
|
4981
4997
|
clarifications: Ht,
|
|
4982
4998
|
notes: Gt,
|
|
4983
4999
|
review: gr
|
|
@@ -5020,7 +5036,7 @@ function Cr(s) {
|
|
|
5020
5036
|
}
|
|
5021
5037
|
return n;
|
|
5022
5038
|
}
|
|
5023
|
-
function
|
|
5039
|
+
function Go(s) {
|
|
5024
5040
|
const e = [], t = [];
|
|
5025
5041
|
for (const n of Cr(s)) {
|
|
5026
5042
|
const i = Nr.safeParse(n.fields);
|
|
@@ -5121,7 +5137,7 @@ function gn(s) {
|
|
|
5121
5137
|
...d.length > 0 && { thread: d }
|
|
5122
5138
|
}], warnings: e };
|
|
5123
5139
|
}
|
|
5124
|
-
function
|
|
5140
|
+
function Vo(s) {
|
|
5125
5141
|
const e = [], {
|
|
5126
5142
|
data: t,
|
|
5127
5143
|
body: n,
|
|
@@ -5150,7 +5166,7 @@ function Ho(s) {
|
|
|
5150
5166
|
review: u
|
|
5151
5167
|
}], warnings: e };
|
|
5152
5168
|
}
|
|
5153
|
-
function
|
|
5169
|
+
function Jo(s) {
|
|
5154
5170
|
const {
|
|
5155
5171
|
data: e,
|
|
5156
5172
|
body: t,
|
|
@@ -5158,7 +5174,7 @@ function Go(s) {
|
|
|
5158
5174
|
} = Wt(s, Tr);
|
|
5159
5175
|
if (!e)
|
|
5160
5176
|
return { entries: [], warnings: n };
|
|
5161
|
-
const { body: i, entries: r } = We(t,
|
|
5177
|
+
const { body: i, entries: r } = We(t, De);
|
|
5162
5178
|
return { entries: [{
|
|
5163
5179
|
id: e.id,
|
|
5164
5180
|
title: e.title,
|
|
@@ -5169,7 +5185,7 @@ function Go(s) {
|
|
|
5169
5185
|
}], warnings: n };
|
|
5170
5186
|
}
|
|
5171
5187
|
const _r = /^(IDEA-\d+):\s*/, Pr = /\n---+\n/;
|
|
5172
|
-
function
|
|
5188
|
+
function Wo(s) {
|
|
5173
5189
|
return s.split(Pr).filter(Boolean).map((t) => {
|
|
5174
5190
|
var c;
|
|
5175
5191
|
const n = t.match(/^#{1,3}\s+(.+)/m), i = n ? n[1].trim() : ((c = t.trim().split(`
|
|
@@ -5203,7 +5219,7 @@ function Dr(s) {
|
|
|
5203
5219
|
return e;
|
|
5204
5220
|
}
|
|
5205
5221
|
const yn = /^-\s+(\d{4}-\d{2}-\d{2}):\s+(.+?)\s+—\s+(.*)$/;
|
|
5206
|
-
function
|
|
5222
|
+
function zo(s) {
|
|
5207
5223
|
const e = [];
|
|
5208
5224
|
for (const t of s.split(`
|
|
5209
5225
|
`)) {
|
|
@@ -5223,7 +5239,7 @@ function Mr(s) {
|
|
|
5223
5239
|
};
|
|
5224
5240
|
});
|
|
5225
5241
|
}
|
|
5226
|
-
function
|
|
5242
|
+
function xo(s) {
|
|
5227
5243
|
return s.length === 0 ? "" : `${s.map((e) => `${e.id}${It}${e.title}`).join(`
|
|
5228
5244
|
`)}
|
|
5229
5245
|
`;
|
|
@@ -5322,28 +5338,28 @@ async function zt(s) {
|
|
|
5322
5338
|
const { entries: e, warnings: t } = await at(s), n = await Ts(A(s, "..", ".."));
|
|
5323
5339
|
return { entries: e, warnings: t, prs: n, resolved: n !== void 0 };
|
|
5324
5340
|
}
|
|
5325
|
-
async function
|
|
5341
|
+
async function Qo(s) {
|
|
5326
5342
|
const { entries: e, warnings: t, prs: n, resolved: i } = await zt(s);
|
|
5327
5343
|
return { entries: e.map((o) => ({
|
|
5328
5344
|
...o,
|
|
5329
5345
|
status: ot(o, n == null ? void 0 : n.get(o.id), i)
|
|
5330
5346
|
})), warnings: t };
|
|
5331
5347
|
}
|
|
5332
|
-
async function
|
|
5348
|
+
async function Xo(s) {
|
|
5333
5349
|
const { entries: e, warnings: t, prs: n, resolved: i } = await zt(s);
|
|
5334
5350
|
return {
|
|
5335
5351
|
entries: e.filter((r) => r.kind !== "note").map((r) => bn(r, n == null ? void 0 : n.get(r.id), i)),
|
|
5336
5352
|
warnings: t
|
|
5337
5353
|
};
|
|
5338
5354
|
}
|
|
5339
|
-
async function
|
|
5355
|
+
async function Zo(s) {
|
|
5340
5356
|
const { entries: e, prs: t } = await zt(s);
|
|
5341
5357
|
return e.flatMap((n) => {
|
|
5342
5358
|
const i = t == null ? void 0 : t.get(n.id);
|
|
5343
5359
|
return i && Br(n, i) ? [{ id: n.id, title: n.title, pr: i }] : [];
|
|
5344
5360
|
});
|
|
5345
5361
|
}
|
|
5346
|
-
async function
|
|
5362
|
+
async function ea(s) {
|
|
5347
5363
|
const { entries: e, warnings: t } = await at(s);
|
|
5348
5364
|
return {
|
|
5349
5365
|
entries: e.filter((n) => n.kind === "note").map(qr),
|
|
@@ -5412,14 +5428,14 @@ function ct(s, e) {
|
|
|
5412
5428
|
}), n.on("close", () => t(i)), n.on("error", () => t(""));
|
|
5413
5429
|
});
|
|
5414
5430
|
}
|
|
5415
|
-
async function
|
|
5431
|
+
async function ta(s, e) {
|
|
5416
5432
|
if (!Hr.test(e)) return null;
|
|
5417
5433
|
const t = await ct(s, ["log", "-1", "--format=%B", e]), n = t ? ms(t) : null;
|
|
5418
5434
|
if (n) return n;
|
|
5419
5435
|
const i = await Tt(A(s, "CHANGELOG.md")), r = Ur(i, e);
|
|
5420
5436
|
return r ? ms(r) : null;
|
|
5421
5437
|
}
|
|
5422
|
-
async function
|
|
5438
|
+
async function sa(s, e) {
|
|
5423
5439
|
const [{ entries: t }, n, i, r, o] = await Promise.all([
|
|
5424
5440
|
at(A(s, "papercamp", "ideas")),
|
|
5425
5441
|
Ts(s),
|
|
@@ -5523,7 +5539,7 @@ function xt(s, e, t) {
|
|
|
5523
5539
|
return { start: i, end: o };
|
|
5524
5540
|
}
|
|
5525
5541
|
}
|
|
5526
|
-
function
|
|
5542
|
+
function na(s, e, t, n) {
|
|
5527
5543
|
const i = s.split(`
|
|
5528
5544
|
`), r = xt(i, e, t);
|
|
5529
5545
|
if (!r) return s;
|
|
@@ -5538,7 +5554,7 @@ function ta(s, e, t, n) {
|
|
|
5538
5554
|
}
|
|
5539
5555
|
return s;
|
|
5540
5556
|
}
|
|
5541
|
-
function
|
|
5557
|
+
function ia(s, e, t, n) {
|
|
5542
5558
|
const i = s.split(`
|
|
5543
5559
|
`), r = In(i, e);
|
|
5544
5560
|
if (!r) return s;
|
|
@@ -5547,13 +5563,13 @@ function sa(s, e, t, n) {
|
|
|
5547
5563
|
return i.splice(o, 0, `- **${t}** — ${n}`), i.join(`
|
|
5548
5564
|
`);
|
|
5549
5565
|
}
|
|
5550
|
-
function
|
|
5566
|
+
function ra(s, e, t, n) {
|
|
5551
5567
|
const i = s.split(`
|
|
5552
5568
|
`), r = xt(i, e, t);
|
|
5553
5569
|
return r ? (i.splice(r.end, 0, ` - ${n}`), i.join(`
|
|
5554
5570
|
`)) : s;
|
|
5555
5571
|
}
|
|
5556
|
-
function
|
|
5572
|
+
function oa(s, e, t, n) {
|
|
5557
5573
|
const i = s.split(`
|
|
5558
5574
|
`), r = xt(i, e, t);
|
|
5559
5575
|
return r ? (i.splice(r.end, 0, ` - → ${n}`), i.join(`
|
|
@@ -5565,7 +5581,7 @@ function Xr(s) {
|
|
|
5565
5581
|
...s.standingConcerns.map((e) => e.name)
|
|
5566
5582
|
];
|
|
5567
5583
|
}
|
|
5568
|
-
function
|
|
5584
|
+
function aa(s, e, t = [], n = "") {
|
|
5569
5585
|
const i = new Map(e.filter((c) => c.id).map((c) => [c.id, c])), r = /* @__PURE__ */ new Map();
|
|
5570
5586
|
for (const c of t)
|
|
5571
5587
|
c.planId && r.set(c.planId, (r.get(c.planId) ?? 0) + 1);
|
|
@@ -5710,7 +5726,7 @@ async function se(s, e) {
|
|
|
5710
5726
|
if (o)
|
|
5711
5727
|
return { id: n, view: t, entry: o };
|
|
5712
5728
|
}
|
|
5713
|
-
async function
|
|
5729
|
+
async function ca(s, e) {
|
|
5714
5730
|
const t = await se(s, e);
|
|
5715
5731
|
if (!t) return;
|
|
5716
5732
|
const { id: n, entry: i } = t;
|
|
@@ -5740,7 +5756,7 @@ function io(s, e, t) {
|
|
|
5740
5756
|
}), i.on("close", (a) => n(a === 0)), i.on("error", () => n(!1)), (o = i.stdin) == null || o.end(t);
|
|
5741
5757
|
});
|
|
5742
5758
|
}
|
|
5743
|
-
async function
|
|
5759
|
+
async function la(s, e) {
|
|
5744
5760
|
const t = await se(s, e);
|
|
5745
5761
|
if (!(t != null && t.view)) return "unresolved";
|
|
5746
5762
|
const { view: n, entry: i } = t, r = no(n.body, i.phases);
|
|
@@ -5800,7 +5816,7 @@ function co(s, e, t) {
|
|
|
5800
5816
|
}), i.on("close", (o) => n(o === 0)), i.on("error", () => n(!1));
|
|
5801
5817
|
});
|
|
5802
5818
|
}
|
|
5803
|
-
async function
|
|
5819
|
+
async function fa(s, e) {
|
|
5804
5820
|
const t = await se(s, e);
|
|
5805
5821
|
if (!(t != null && t.view)) return "unresolved";
|
|
5806
5822
|
const { view: n, entry: i } = t, r = ro({ kind: i.type, tags: i.tags }), o = new Set((n.labels ?? []).map((u) => u.name)), a = r.filter((u) => !o.has(u));
|
|
@@ -5833,13 +5849,13 @@ function uo(s, e, t) {
|
|
|
5833
5849
|
}), i.on("close", (o) => n(o === 0)), i.on("error", () => n(!1));
|
|
5834
5850
|
});
|
|
5835
5851
|
}
|
|
5836
|
-
async function
|
|
5852
|
+
async function ua(s, e) {
|
|
5837
5853
|
const t = await se(s, e);
|
|
5838
5854
|
if (!(t != null && t.view)) return "unresolved";
|
|
5839
5855
|
const { id: n, view: i, entry: r } = t, o = vn(n, r);
|
|
5840
5856
|
return i.title === o ? "unchanged" : await uo(s, e, o) ? "updated" : "unresolved";
|
|
5841
5857
|
}
|
|
5842
|
-
async function
|
|
5858
|
+
async function da(s, e) {
|
|
5843
5859
|
const t = await Tn(s, e);
|
|
5844
5860
|
if (!t) return "no-pr";
|
|
5845
5861
|
const n = await se(s, e);
|
|
@@ -5867,7 +5883,7 @@ function po(s, e) {
|
|
|
5867
5883
|
}), n.on("close", (r) => t(r === 0)), n.on("error", () => t(!1));
|
|
5868
5884
|
});
|
|
5869
5885
|
}
|
|
5870
|
-
async function
|
|
5886
|
+
async function ha(s, e) {
|
|
5871
5887
|
const t = await se(s, e);
|
|
5872
5888
|
if (!(t != null && t.view)) return "unresolved";
|
|
5873
5889
|
const { view: n, entry: i } = t;
|
|
@@ -5918,7 +5934,7 @@ function wo(s, e, t, n, i) {
|
|
|
5918
5934
|
}), o.on("close", (l) => r(l === 0)), o.on("error", () => r(!1)), (c = o.stdin) == null || c.end(i);
|
|
5919
5935
|
});
|
|
5920
5936
|
}
|
|
5921
|
-
async function
|
|
5937
|
+
async function pa(s, e) {
|
|
5922
5938
|
var g, d;
|
|
5923
5939
|
const t = await se(s, e);
|
|
5924
5940
|
if (!((g = t == null ? void 0 : t.view) != null && g.url)) return "unresolved";
|
|
@@ -5936,7 +5952,7 @@ async function da(s, e) {
|
|
|
5936
5952
|
}
|
|
5937
5953
|
return await yo(s, e, f) ? "created" : "unresolved";
|
|
5938
5954
|
}
|
|
5939
|
-
function
|
|
5955
|
+
function ma(s, e, t) {
|
|
5940
5956
|
if (!s) return;
|
|
5941
5957
|
const n = (e ?? "feat").toLowerCase(), i = t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
5942
5958
|
return `${n}/${s.toLowerCase()}-${i}`;
|
|
@@ -5949,7 +5965,7 @@ function lt(s, e) {
|
|
|
5949
5965
|
function Cn() {
|
|
5950
5966
|
return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
5951
5967
|
}
|
|
5952
|
-
function
|
|
5968
|
+
function ga(s, e = "log") {
|
|
5953
5969
|
return {
|
|
5954
5970
|
kind: e,
|
|
5955
5971
|
date: Cn(),
|
|
@@ -6005,13 +6021,13 @@ function So(s) {
|
|
|
6005
6021
|
return s.body && t.push(s.body), lt(t, [
|
|
6006
6022
|
{ entries: s.clarifications, section: Ht },
|
|
6007
6023
|
{ entries: s.phases, section: rt },
|
|
6008
|
-
{ entries: s.log, section:
|
|
6024
|
+
{ entries: s.log, section: De },
|
|
6009
6025
|
{ entries: s.notes, section: Gt }
|
|
6010
6026
|
]), t.join(`
|
|
6011
6027
|
|
|
6012
6028
|
`).trimEnd();
|
|
6013
6029
|
}
|
|
6014
|
-
function
|
|
6030
|
+
function ya(s) {
|
|
6015
6031
|
return s.length === 0 ? "" : `${s.map((e) => So(e)).join(`
|
|
6016
6032
|
|
|
6017
6033
|
`)}
|
|
@@ -6022,7 +6038,7 @@ function Xt(s) {
|
|
|
6022
6038
|
${or(s).trimEnd()}
|
|
6023
6039
|
---`;
|
|
6024
6040
|
}
|
|
6025
|
-
function
|
|
6041
|
+
function wa(s) {
|
|
6026
6042
|
const e = {
|
|
6027
6043
|
id: s.id,
|
|
6028
6044
|
title: s.title,
|
|
@@ -6035,7 +6051,7 @@ function ga(s) {
|
|
|
6035
6051
|
return s.body && t.push(s.body), lt(t, [
|
|
6036
6052
|
{ entries: s.clarifications, section: Ht },
|
|
6037
6053
|
{ entries: s.phases, section: rt },
|
|
6038
|
-
{ entries: s.log, section:
|
|
6054
|
+
{ entries: s.log, section: De },
|
|
6039
6055
|
{ entries: s.notes, section: Gt }
|
|
6040
6056
|
]), t.join(`
|
|
6041
6057
|
|
|
@@ -6056,10 +6072,10 @@ function Eo(s) {
|
|
|
6056
6072
|
|
|
6057
6073
|
`).trimEnd();
|
|
6058
6074
|
}
|
|
6059
|
-
async function
|
|
6075
|
+
async function ba(s) {
|
|
6060
6076
|
return ko(s, "idea");
|
|
6061
6077
|
}
|
|
6062
|
-
async function
|
|
6078
|
+
async function ka(s, e) {
|
|
6063
6079
|
const t = xe.then(async () => {
|
|
6064
6080
|
let n = null;
|
|
6065
6081
|
try {
|
|
@@ -6074,7 +6090,7 @@ async function wa(s, e) {
|
|
|
6074
6090
|
return xe = t.catch(() => {
|
|
6075
6091
|
}), t;
|
|
6076
6092
|
}
|
|
6077
|
-
function
|
|
6093
|
+
function Sa(s) {
|
|
6078
6094
|
const e = {
|
|
6079
6095
|
id: s.id,
|
|
6080
6096
|
title: s.title
|
|
@@ -6083,11 +6099,11 @@ function ba(s) {
|
|
|
6083
6099
|
const t = [Xt(e)], n = `## ${s.id}: ${s.title}`;
|
|
6084
6100
|
return t.push(s.body ? `${n}
|
|
6085
6101
|
|
|
6086
|
-
${s.body}` : n), lt(t, [{ entries: s.log, section:
|
|
6102
|
+
${s.body}` : n), lt(t, [{ entries: s.log, section: De }]), t.join(`
|
|
6087
6103
|
|
|
6088
6104
|
`).trimEnd();
|
|
6089
6105
|
}
|
|
6090
|
-
async function
|
|
6106
|
+
async function Ea(s, e) {
|
|
6091
6107
|
const t = A(s, "papercamp", "ideas"), n = A(t, "archive"), i = A(t, `${e}.md`), r = A(n, `${e}.md`);
|
|
6092
6108
|
await le(n, { recursive: !0 });
|
|
6093
6109
|
try {
|
|
@@ -6097,7 +6113,7 @@ async function ka(s, e) {
|
|
|
6097
6113
|
throw o;
|
|
6098
6114
|
}
|
|
6099
6115
|
}
|
|
6100
|
-
function
|
|
6116
|
+
function Na(s, e) {
|
|
6101
6117
|
let t = !1;
|
|
6102
6118
|
const n = s.split(`
|
|
6103
6119
|
`).filter((i) => {
|
|
@@ -6111,7 +6127,7 @@ function Sa(s, e) {
|
|
|
6111
6127
|
return t ? n.join(`
|
|
6112
6128
|
`) : s;
|
|
6113
6129
|
}
|
|
6114
|
-
function
|
|
6130
|
+
function Ia(s) {
|
|
6115
6131
|
return s.length === 0 ? `# Ideas
|
|
6116
6132
|
|
|
6117
6133
|
No ideas yet.
|
|
@@ -6225,7 +6241,7 @@ async function ce(s) {
|
|
|
6225
6241
|
}
|
|
6226
6242
|
}
|
|
6227
6243
|
const vo = ["suggestions.md"];
|
|
6228
|
-
async function
|
|
6244
|
+
async function Ta(s, e) {
|
|
6229
6245
|
const t = A(s, "papercamp"), n = A(t, "config.json");
|
|
6230
6246
|
if (await ce(n))
|
|
6231
6247
|
throw new Ao(s);
|
|
@@ -6287,73 +6303,75 @@ export {
|
|
|
6287
6303
|
Ao as A,
|
|
6288
6304
|
kn as B,
|
|
6289
6305
|
To as C,
|
|
6290
|
-
|
|
6306
|
+
Ia as D,
|
|
6291
6307
|
Eo as E,
|
|
6292
|
-
|
|
6308
|
+
Sa as F,
|
|
6293
6309
|
So as G,
|
|
6294
|
-
|
|
6295
|
-
|
|
6310
|
+
wa as H,
|
|
6311
|
+
ya as I,
|
|
6296
6312
|
Tr as J,
|
|
6297
|
-
|
|
6313
|
+
Ta as K,
|
|
6298
6314
|
fo as L,
|
|
6299
|
-
|
|
6315
|
+
oa as M,
|
|
6300
6316
|
Ar as N,
|
|
6301
6317
|
gn as O,
|
|
6302
6318
|
$o as P,
|
|
6303
6319
|
Mo as Q,
|
|
6304
6320
|
Wt as R,
|
|
6305
6321
|
No as S,
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6322
|
+
Jo as T,
|
|
6323
|
+
Wo as U,
|
|
6324
|
+
Vo as V,
|
|
6325
|
+
Go as W,
|
|
6310
6326
|
Cr as X,
|
|
6311
6327
|
Qr as Y,
|
|
6312
|
-
|
|
6328
|
+
zo as Z,
|
|
6313
6329
|
Dr as _,
|
|
6314
6330
|
Qt as a,
|
|
6315
6331
|
Ir as a0,
|
|
6316
6332
|
at as a1,
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6333
|
+
Qo as a2,
|
|
6334
|
+
ea as a3,
|
|
6335
|
+
Xo as a4,
|
|
6336
|
+
na as a5,
|
|
6337
|
+
Na as a6,
|
|
6322
6338
|
go as a7,
|
|
6323
6339
|
no as a8,
|
|
6324
6340
|
Fo as a9,
|
|
6325
|
-
|
|
6326
|
-
|
|
6341
|
+
ta as aa,
|
|
6342
|
+
sa as ab,
|
|
6327
6343
|
ms as ac,
|
|
6328
|
-
|
|
6344
|
+
ca as ad,
|
|
6329
6345
|
to as ae,
|
|
6330
6346
|
Ts as af,
|
|
6331
6347
|
Ko as ag,
|
|
6332
|
-
|
|
6348
|
+
aa as ah,
|
|
6333
6349
|
Xt as ai,
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6350
|
+
pa as aj,
|
|
6351
|
+
la as ak,
|
|
6352
|
+
fa as al,
|
|
6353
|
+
ha as am,
|
|
6354
|
+
ua as an,
|
|
6339
6355
|
Cn as ao,
|
|
6340
|
-
|
|
6356
|
+
da as ap,
|
|
6341
6357
|
Mr as aq,
|
|
6342
|
-
|
|
6358
|
+
xo as ar,
|
|
6343
6359
|
mn as as,
|
|
6344
|
-
|
|
6345
|
-
|
|
6360
|
+
Yo as at,
|
|
6361
|
+
Ho as au,
|
|
6362
|
+
Uo as av,
|
|
6363
|
+
br as aw,
|
|
6346
6364
|
Hr as b,
|
|
6347
6365
|
yn as c,
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6366
|
+
ra as d,
|
|
6367
|
+
ia as e,
|
|
6368
|
+
Se as f,
|
|
6369
|
+
ga as g,
|
|
6352
6370
|
jo as h,
|
|
6353
|
-
|
|
6354
|
-
|
|
6371
|
+
Ea as i,
|
|
6372
|
+
ba as j,
|
|
6355
6373
|
ko as k,
|
|
6356
|
-
|
|
6374
|
+
ma as l,
|
|
6357
6375
|
qo as m,
|
|
6358
6376
|
eo as n,
|
|
6359
6377
|
vn as o,
|
|
@@ -6361,12 +6379,12 @@ export {
|
|
|
6361
6379
|
ro as q,
|
|
6362
6380
|
Zr as r,
|
|
6363
6381
|
Xr as s,
|
|
6364
|
-
|
|
6382
|
+
ka as t,
|
|
6365
6383
|
$r as u,
|
|
6366
6384
|
qr as v,
|
|
6367
6385
|
bn as w,
|
|
6368
6386
|
Bo as x,
|
|
6369
|
-
|
|
6387
|
+
Zo as y,
|
|
6370
6388
|
Rr as z
|
|
6371
6389
|
};
|
|
6372
|
-
//# sourceMappingURL=scaffold.
|
|
6390
|
+
//# sourceMappingURL=scaffold.BL48Net9.js.map
|