ph-cmd 5.3.0-staging.9 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/cli.js +188 -555
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -180276,7 +180276,7 @@ var require_path_browserify = __commonJS((exports, module) => {
180276
180276
  }
180277
180277
  return _format("/", pathObject);
180278
180278
  },
180279
- parse: function parse(path2) {
180279
+ parse: function parse3(path2) {
180280
180280
  assertPath(path2);
180281
180281
  var ret = { root: "", dir: "", base: "", ext: "", name: "" };
180282
180282
  if (path2.length === 0)
@@ -254506,12 +254506,12 @@ var init_babel = __esm(() => {
254506
254506
  let r2 = { AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter", AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference", SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter", SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter", SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType" };
254507
254507
  r2[e] && (e = r2[e]);
254508
254508
  }
254509
- return function r(n25, o2) {
254509
+ return function r2(n25, o2) {
254510
254510
  let l2 = new SyntaxError;
254511
254511
  return l2.code = t, l2.reasonCode = e, l2.loc = n25, l2.pos = n25.index, l2.syntaxPlugin = s, i && (l2.missingPlugin = o2.missingPlugin), ps3(l2, "clone", function(c3 = {}) {
254512
254512
  var u2;
254513
254513
  let { line: f, column: d3, index: x3 } = (u2 = c3.loc) != null ? u2 : n25;
254514
- return r(new B4(f, d3, x3), Object.assign({}, o2, c3.details));
254514
+ return r2(new B4(f, d3, x3), Object.assign({}, o2, c3.details));
254515
254515
  }), ps3(l2, "details", o2), Object.defineProperty(l2, "message", { configurable: true, get() {
254516
254516
  let h = `${a2(o2)} (${n25.line}:${n25.column})`;
254517
254517
  return this.message = h, h;
@@ -264981,7 +264981,7 @@ function na2(e) {
264981
264981
  }
264982
264982
  function sa2(e, t, r2, n25 = {}) {
264983
264983
  let s = [], u2, i = [], a2 = false, o2 = !n25.expandLastArg && e.node.body.type === "ArrowFunctionExpression", p2;
264984
- (function B() {
264984
+ (function B4() {
264985
264985
  let { node: g2 } = e, _3 = Ol(e, t, r2, n25);
264986
264986
  if (s.length === 0)
264987
264987
  s.push(_3);
@@ -264989,7 +264989,7 @@ function sa2(e, t, r2, n25 = {}) {
264989
264989
  let { leading: M3, trailing: J4 } = fs4(e, t);
264990
264990
  s.push([M3, _3]), i.unshift(J4);
264991
264991
  }
264992
- o2 && (a2 || (a2 = g2.returnType && Q3(g2).length > 0 || g2.typeParameters || Q3(g2).some((M3) => M3.type !== "Identifier"))), !o2 || g2.body.type !== "ArrowFunctionExpression" ? (u2 = r2("body", n25), p2 = g2.body) : e.call(B, "body");
264992
+ o2 && (a2 || (a2 = g2.returnType && Q3(g2).length > 0 || g2.typeParameters || Q3(g2).some((M3) => M3.type !== "Identifier"))), !o2 || g2.body.type !== "ArrowFunctionExpression" ? (u2 = r2("body", n25), p2 = g2.body) : e.call(B4, "body");
264993
264993
  })();
264994
264994
  let m2 = !de4(t.originalText, p2) && (wl(p2) || _l(p2, u2, t) || !a2 && na2(p2)), f = e.key === "callee" && yt3(e.parent), y2 = Symbol("arrow-chain"), C3 = Ml(e, n25, { signatureDocs: s, shouldBreak: a2 }), c3 = false, A3 = false, T = false;
264995
264995
  return o2 && (f || n25.assignmentLayout) && (A3 = true, T = !d3(e.node, h.Leading & h.Line), c3 = n25.assignmentLayout === "chain-tail-arrow-chain" || f && !m2), u2 = vl(e, t, n25, { bodyDoc: u2, bodyComments: i, functionBody: p2, shouldPutBodyOnSameLine: m2 }), l2([l2(A3 ? D3([T ? E2 : "", C3]) : C3, { shouldBreak: c3, id: y2 }), " =>", o2 ? xt3(u2, { groupId: y2 }) : l2(u2), o2 && f ? S3(E2, "", { groupId: y2 }) : ""]);
@@ -303825,9 +303825,9 @@ function Nr6(e6, r2) {
303825
303825
  `) ? t7.slice(0, -1) : t7;
303826
303826
  }
303827
303827
  function ye4(e6, r2) {
303828
- return function t(n25, a2, i) {
303828
+ return function t7(n25, a2, i) {
303829
303829
  let u2 = { ...r2(n25, a2, i) };
303830
- return u2.children && (u2.children = u2.children.map((o3, s) => t(o3, s, [u2, ...i]))), u2;
303830
+ return u2.children && (u2.children = u2.children.map((o3, s) => t7(o3, s, [u2, ...i]))), u2;
303831
303831
  }(e6, null, []);
303832
303832
  }
303833
303833
  function Ct8(e6) {
@@ -304215,11 +304215,11 @@ function Ui6(e6, r2, t7) {
304215
304215
  }
304216
304216
  function Df(e6) {
304217
304217
  let r2 = [""];
304218
- return function t(n25) {
304218
+ return function t7(n25) {
304219
304219
  for (let a2 of n25) {
304220
304220
  let i = G8(a2);
304221
304221
  if (i === H7) {
304222
- t(a2);
304222
+ t7(a2);
304223
304223
  continue;
304224
304224
  }
304225
304225
  let u2 = a2, o3 = [];
@@ -306696,12 +306696,12 @@ $$`;
306696
306696
  return;
306697
306697
  return r2[t7];
306698
306698
  };
306699
- yc2.exports = function e() {
306699
+ yc2.exports = function e6() {
306700
306700
  var r2, t7, n25, a2, i, u2, o3 = arguments[0], s = 1, l3 = arguments.length, c4 = false;
306701
306701
  for (typeof o3 == "boolean" && (c4 = o3, o3 = arguments[1] || {}, s = 2), (o3 == null || typeof o3 != "object" && typeof o3 != "function") && (o3 = {});s < l3; ++s)
306702
306702
  if (r2 = arguments[s], r2 != null)
306703
306703
  for (t7 in r2)
306704
- n25 = bc2(o3, t7), a2 = bc2(r2, t7), o3 !== a2 && (c4 && a2 && (vc2(a2) || (i = Ec2(a2))) ? (i ? (i = false, u2 = n25 && Ec2(n25) ? n25 : []) : u2 = n25 && vc2(n25) ? n25 : {}, Cc2(o3, { name: t7, newValue: e(c4, u2, a2) })) : typeof a2 < "u" && Cc2(o3, { name: t7, newValue: a2 }));
306704
+ n25 = bc2(o3, t7), a2 = bc2(r2, t7), o3 !== a2 && (c4 && a2 && (vc2(a2) || (i = Ec2(a2))) ? (i ? (i = false, u2 = n25 && Ec2(n25) ? n25 : []) : u2 = n25 && vc2(n25) ? n25 : {}, Cc2(o3, { name: t7, newValue: e6(c4, u2, a2) })) : typeof a2 < "u" && Cc2(o3, { name: t7, newValue: a2 }));
306705
306705
  return o3;
306706
306706
  };
306707
306707
  });
@@ -313776,7 +313776,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
313776
313776
  if (!(t7 instanceof e6))
313777
313777
  throw new TypeError("Cannot call a class as a function");
313778
313778
  }
313779
- var Cp2 = function t(e6, s) {
313779
+ var Cp2 = function t7(e6, s) {
313780
313780
  if ((typeof e6 > "u" ? "undefined" : Ta4(e6)) !== "object")
313781
313781
  return e6;
313782
313782
  var r3 = new e6.constructor;
@@ -313784,8 +313784,8 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
313784
313784
  if (e6.hasOwnProperty(n26)) {
313785
313785
  var i = e6[n26], o3 = typeof i > "u" ? "undefined" : Ta4(i);
313786
313786
  n26 === "parent" && o3 === "object" ? s && (r3[n26] = s) : i instanceof Array ? r3[n26] = i.map(function(u3) {
313787
- return t(u3, r3);
313788
- }) : r3[n26] = t(i, r3);
313787
+ return t7(u3, r3);
313788
+ }) : r3[n26] = t7(i, r3);
313789
313789
  }
313790
313790
  return r3;
313791
313791
  }, Ap2 = function() {
@@ -334679,7 +334679,7 @@ async function clearCache3() {
334679
334679
  }
334680
334680
  var require2, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __typeError = (msg) => {
334681
334681
  throw TypeError(msg);
334682
- }, __defNormalProp = (obj, key2, value2) => (key2 in obj) ? __defProp3(obj, key2, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key2] = value2, __require2, __commonJS2 = (cb2, mod) => function __require2() {
334682
+ }, __defNormalProp = (obj, key2, value2) => (key2 in obj) ? __defProp3(obj, key2, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key2] = value2, __require2, __commonJS2 = (cb2, mod) => function __require22() {
334683
334683
  return mod || (0, cb2[__getOwnPropNames2(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
334684
334684
  }, __export3 = (target, all) => {
334685
334685
  for (var name in all)
@@ -375902,9 +375902,9 @@ var require_instanceOf = __commonJS((exports) => {
375902
375902
  exports.instanceOf = undefined;
375903
375903
  var _inspect = require_inspect();
375904
375904
  var isProduction = globalThis.process && false;
375905
- var instanceOf = isProduction ? function instanceOf(value2, constructor) {
375905
+ var instanceOf = isProduction ? function instanceOf2(value2, constructor) {
375906
375906
  return value2 instanceof constructor;
375907
- } : function instanceOf(value2, constructor) {
375907
+ } : function instanceOf2(value2, constructor) {
375908
375908
  if (value2 instanceof constructor) {
375909
375909
  return true;
375910
375910
  }
@@ -389145,7 +389145,7 @@ var require_is_arrayish = __commonJS((exports, module3) => {
389145
389145
  var require_error_ex = __commonJS((exports, module3) => {
389146
389146
  var util2 = __require("util");
389147
389147
  var isArrayish = require_is_arrayish();
389148
- var errorEx = function errorEx(name, properties) {
389148
+ var errorEx = function errorEx2(name, properties) {
389149
389149
  if (!name || name.constructor !== String) {
389150
389150
  properties = name || {};
389151
389151
  name = Error.name;
@@ -470943,7 +470943,7 @@ ${lanes.join(`
470943
470943
  }
470944
470944
  }
470945
470945
  function isSymbolUsedInConditionBody(expr, body, testedNode, testedSymbol) {
470946
- return !!forEachChild(body, function check(childNode) {
470946
+ return !!forEachChild(body, function check2(childNode) {
470947
470947
  if (isIdentifier(childNode)) {
470948
470948
  const childSymbol = getSymbolAtLocation(childNode);
470949
470949
  if (childSymbol && childSymbol === testedSymbol) {
@@ -470970,7 +470970,7 @@ ${lanes.join(`
470970
470970
  }
470971
470971
  }
470972
470972
  }
470973
- return forEachChild(childNode, check);
470973
+ return forEachChild(childNode, check2);
470974
470974
  });
470975
470975
  }
470976
470976
  function isSymbolUsedInBinaryExpressionChain(node, testedSymbol) {
@@ -514059,7 +514059,7 @@ ${lanes.join(`
514059
514059
  }
514060
514060
  function getEncodedSemanticClassifications(typeChecker, cancellationToken, sourceFile, classifiableNames, span) {
514061
514061
  const spans = [];
514062
- sourceFile.forEachChild(function cb(node) {
514062
+ sourceFile.forEachChild(function cb2(node) {
514063
514063
  if (!node || !textSpanIntersectsWith(span, node.pos, node.getFullWidth())) {
514064
514064
  return;
514065
514065
  }
@@ -514071,7 +514071,7 @@ ${lanes.join(`
514071
514071
  pushClassification(node.getStart(sourceFile), node.getEnd(), type);
514072
514072
  }
514073
514073
  }
514074
- node.forEachChild(cb);
514074
+ node.forEachChild(cb2);
514075
514075
  });
514076
514076
  return { spans, endOfLineState: 0 };
514077
514077
  function pushClassification(start, end, type) {
@@ -518528,7 +518528,7 @@ interface Symbol {
518528
518528
  return forEachKey(importsFromNewFile, symbolNameNoDefault) || forEachKey(movedSymbols, symbolNameNoDefault) || "newFile";
518529
518529
  }
518530
518530
  function forEachReference(node, checker, enclosingRange, onReference) {
518531
- node.forEachChild(function cb(node2) {
518531
+ node.forEachChild(function cb2(node2) {
518532
518532
  if (isIdentifier(node2) && !isDeclarationName(node2)) {
518533
518533
  if (enclosingRange && !rangeContainsRange(enclosingRange, node2)) {
518534
518534
  return;
@@ -518537,7 +518537,7 @@ interface Symbol {
518537
518537
  if (sym)
518538
518538
  onReference(sym, isValidTypeOnlyAliasUseSite(node2));
518539
518539
  } else {
518540
- node2.forEachChild(cb);
518540
+ node2.forEachChild(cb2);
518541
518541
  }
518542
518542
  });
518543
518543
  }
@@ -520595,14 +520595,14 @@ ${newComment.split(`
520595
520595
  }
520596
520596
  break;
520597
520597
  case 220:
520598
- forEachChild(node2, function check(n64) {
520598
+ forEachChild(node2, function check2(n64) {
520599
520599
  if (isThis(n64)) {
520600
520600
  rangeFacts |= 8;
520601
520601
  thisNode = node2;
520602
520602
  } else if (isClassLike(n64) || isFunctionLike(n64) && !isArrowFunction(n64)) {
520603
520603
  return false;
520604
520604
  } else {
520605
- forEachChild(n64, check);
520605
+ forEachChild(n64, check2);
520606
520606
  }
520607
520607
  });
520608
520608
  case 264:
@@ -540389,11 +540389,11 @@ ${newComment.split(`
540389
540389
  continue;
540390
540390
  }
540391
540391
  if (member.body) {
540392
- member.body.forEachChild(function cb(node) {
540392
+ member.body.forEachChild(function cb2(node) {
540393
540393
  if (node.kind === 110) {
540394
540394
  addRef(node);
540395
540395
  } else if (!isFunctionLike(node) && !isClassLike(node)) {
540396
- node.forEachChild(cb);
540396
+ node.forEachChild(cb2);
540397
540397
  }
540398
540398
  });
540399
540399
  }
@@ -561441,14 +561441,14 @@ var require_loaders = __commonJS((exports) => {
561441
561441
  var path_1 = __importDefault(__require("path"));
561442
561442
  var url_1 = __require("url");
561443
561443
  var importFresh;
561444
- var loadJsSync = function loadJsSync(filepath) {
561444
+ var loadJsSync = function loadJsSync2(filepath) {
561445
561445
  if (importFresh === undefined) {
561446
561446
  importFresh = require_import_fresh();
561447
561447
  }
561448
561448
  return importFresh(filepath);
561449
561449
  };
561450
561450
  exports.loadJsSync = loadJsSync;
561451
- var loadJs = async function loadJs(filepath) {
561451
+ var loadJs = async function loadJs2(filepath) {
561452
561452
  try {
561453
561453
  const { href } = (0, url_1.pathToFileURL)(filepath);
561454
561454
  return (await import(href)).default;
@@ -561465,7 +561465,7 @@ var require_loaders = __commonJS((exports) => {
561465
561465
  };
561466
561466
  exports.loadJs = loadJs;
561467
561467
  var parseJson2;
561468
- var loadJson = function loadJson(filepath, content) {
561468
+ var loadJson = function loadJson2(filepath, content) {
561469
561469
  if (parseJson2 === undefined) {
561470
561470
  parseJson2 = require_parse_json();
561471
561471
  }
@@ -561479,7 +561479,7 @@ ${error2.message}`;
561479
561479
  };
561480
561480
  exports.loadJson = loadJson;
561481
561481
  var yaml2;
561482
- var loadYaml2 = function loadYaml(filepath, content) {
561482
+ var loadYaml2 = function loadYaml3(filepath, content) {
561483
561483
  if (yaml2 === undefined) {
561484
561484
  yaml2 = require_js_yaml();
561485
561485
  }
@@ -561493,7 +561493,7 @@ ${error2.message}`;
561493
561493
  };
561494
561494
  exports.loadYaml = loadYaml2;
561495
561495
  var typescript;
561496
- var loadTsSync = function loadTsSync(filepath, content) {
561496
+ var loadTsSync = function loadTsSync2(filepath, content) {
561497
561497
  if (typescript === undefined) {
561498
561498
  typescript = require_typescript2();
561499
561499
  }
@@ -561521,7 +561521,7 @@ ${error2.message}`;
561521
561521
  }
561522
561522
  };
561523
561523
  exports.loadTsSync = loadTsSync;
561524
- var loadTs = async function loadTs(filepath, content) {
561524
+ var loadTs = async function loadTs2(filepath, content) {
561525
561525
  if (typescript === undefined) {
561526
561526
  typescript = (await Promise.resolve().then(() => __toESM(require_typescript2()))).default;
561527
561527
  }
@@ -562314,7 +562314,7 @@ var require_dist23 = __commonJS((exports) => {
562314
562314
  var Explorer_js_1 = require_Explorer();
562315
562315
  var ExplorerSync_js_1 = require_ExplorerSync();
562316
562316
  var util_1 = require_util5();
562317
- var identity = function identity(x8) {
562317
+ var identity = function identity2(x8) {
562318
562318
  return x8;
562319
562319
  };
562320
562320
  function getUserDefinedOptionsFromMetaConfig() {
@@ -594711,7 +594711,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
594711
594711
  const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral");
594712
594712
  const unaryOperator = (0, _utils.assertOneOf)("-");
594713
594713
  const literal2 = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
594714
- const validator = function validator(parent, key2, node) {
594714
+ const validator = function validator2(parent, key2, node) {
594715
594715
  if ((0, _is.default)("UnaryExpression", node)) {
594716
594716
  unaryOperator(node, "operator", node.operator);
594717
594717
  unaryExpression(node, "argument", node.argument);
@@ -604331,7 +604331,7 @@ var require_eventemitter3 = __commonJS((exports, module3) => {
604331
604331
  }
604332
604332
  return true;
604333
604333
  };
604334
- EventEmitter.prototype.on = function on(event, fn9, context) {
604334
+ EventEmitter.prototype.on = function on10(event, fn9, context) {
604335
604335
  return addListener(this, event, fn9, context, false);
604336
604336
  };
604337
604337
  EventEmitter.prototype.once = function once(event, fn9, context) {
@@ -606194,7 +606194,7 @@ var require_parse7 = __commonJS((exports, module3) => {
606194
606194
  return typeof arg2 === "undefined" ? prev : prev.concat(arg2);
606195
606195
  }, []);
606196
606196
  }
606197
- module3.exports = function parse(s5, env3, opts) {
606197
+ module3.exports = function parse8(s5, env3, opts) {
606198
606198
  var mapped = parseInternal(s5, env3, opts);
606199
606199
  if (typeof env3 !== "function") {
606200
606200
  return mapped;
@@ -606879,7 +606879,7 @@ var require_trace_mapping_umd = __commonJS((exports, module3) => {
606879
606879
  var __getOwnPropNames4 = Object.getOwnPropertyNames;
606880
606880
  var __getProtoOf4 = Object.getPrototypeOf;
606881
606881
  var __hasOwnProp4 = Object.prototype.hasOwnProperty;
606882
- var __commonJS3 = (cb2, mod) => function __require() {
606882
+ var __commonJS3 = (cb2, mod) => function __require3() {
606883
606883
  return mod || (0, cb2[__getOwnPropNames4(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
606884
606884
  };
606885
606885
  var __export4 = (target, all) => {
@@ -607408,7 +607408,7 @@ var require_gen_mapping_umd = __commonJS((exports, module3) => {
607408
607408
  var __getOwnPropNames4 = Object.getOwnPropertyNames;
607409
607409
  var __getProtoOf4 = Object.getPrototypeOf;
607410
607410
  var __hasOwnProp4 = Object.prototype.hasOwnProperty;
607411
- var __commonJS3 = (cb2, mod) => function __require() {
607411
+ var __commonJS3 = (cb2, mod) => function __require3() {
607412
607412
  return mod || (0, cb2[__getOwnPropNames4(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
607413
607413
  };
607414
607414
  var __export4 = (target, all) => {
@@ -618279,9 +618279,9 @@ GFS4: `);
618279
618279
  function readdir(path15, options8, cb2) {
618280
618280
  if (typeof options8 === "function")
618281
618281
  cb2 = options8, options8 = null;
618282
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir(path17, options9, cb3, startTime) {
618282
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path17, options9, cb3, startTime) {
618283
618283
  return fs$readdir(path17, fs$readdirCallback(path17, options9, cb3, startTime));
618284
- } : function go$readdir(path17, options9, cb3, startTime) {
618284
+ } : function go$readdir2(path17, options9, cb3, startTime) {
618285
618285
  return fs$readdir(path17, options9, fs$readdirCallback(path17, options9, cb3, startTime));
618286
618286
  };
618287
618287
  return go$readdir(path15, options8, cb2);
@@ -619442,7 +619442,7 @@ var require_empty = __commonJS((exports, module3) => {
619442
619442
  var path15 = __require("path");
619443
619443
  var mkdir = require_mkdirs();
619444
619444
  var remove = require_remove();
619445
- var emptyDir = u24(async function emptyDir(dir) {
619445
+ var emptyDir = u24(async function emptyDir2(dir) {
619446
619446
  let items;
619447
619447
  try {
619448
619448
  items = await fs11.readdir(dir);
@@ -621290,7 +621290,7 @@ var require_build2 = __commonJS((exports, module3) => {
621290
621290
  ;
621291
621291
  }
621292
621292
  });
621293
- var yargsParser2 = function Parser(args, opts) {
621293
+ var yargsParser2 = function Parser2(args, opts) {
621294
621294
  const result = parser2.parse(args.slice(), opts);
621295
621295
  return result.argv;
621296
621296
  };
@@ -622260,7 +622260,7 @@ var require_make_error = __commonJS((exports, module3) => {
622260
622260
  var defineProperty = Object.defineProperty;
622261
622261
  var captureStackTrace2 = Error.captureStackTrace;
622262
622262
  if (captureStackTrace2 === undefined) {
622263
- captureStackTrace2 = function captureStackTrace(error49) {
622263
+ captureStackTrace2 = function captureStackTrace3(error49) {
622264
622264
  var container = new Error;
622265
622265
  defineProperty(error49, "stack", {
622266
622266
  configurable: true,
@@ -624827,7 +624827,7 @@ var require_acorn = __commonJS((exports, module3) => {
624827
624827
  }
624828
624828
  return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
624829
624829
  }
624830
- var TokenType = function TokenType(label2, conf) {
624830
+ var TokenType = function TokenType2(label2, conf) {
624831
624831
  if (conf === undefined)
624832
624832
  conf = {};
624833
624833
  this.label = label2;
@@ -624970,14 +624970,14 @@ var require_acorn = __commonJS((exports, module3) => {
624970
624970
  return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
624971
624971
  }
624972
624972
  var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
624973
- var Position = function Position(line3, col) {
624973
+ var Position = function Position2(line3, col) {
624974
624974
  this.line = line3;
624975
624975
  this.column = col;
624976
624976
  };
624977
624977
  Position.prototype.offset = function offset(n64) {
624978
624978
  return new Position(this.line, this.column + n64);
624979
624979
  };
624980
- var SourceLocation = function SourceLocation(p26, start, end) {
624980
+ var SourceLocation = function SourceLocation2(p26, start, end) {
624981
624981
  this.start = start;
624982
624982
  this.end = end;
624983
624983
  if (p26.sourceFile !== null) {
@@ -625072,7 +625072,7 @@ Defaulting to 2020, but this will stop working in the future.`);
625072
625072
  return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator2 ? SCOPE_GENERATOR : 0);
625073
625073
  }
625074
625074
  var BIND_NONE = 0, BIND_VAR = 1, BIND_LEXICAL = 2, BIND_FUNCTION = 3, BIND_SIMPLE_CATCH = 4, BIND_OUTSIDE = 5;
625075
- var Parser2 = function Parser(options8, input, startPos) {
625075
+ var Parser2 = function Parser3(options8, input, startPos) {
625076
625076
  this.options = options8 = getOptions(options8);
625077
625077
  this.sourceFile = options8.sourceFile;
625078
625078
  this.keywords = wordsRegexp(keywords$1[options8.ecmaVersion >= 6 ? 6 : options8.sourceType === "module" ? "5module" : 5]);
@@ -625122,7 +625122,7 @@ Defaulting to 2020, but this will stop working in the future.`);
625122
625122
  this.privateNameStack = [];
625123
625123
  };
625124
625124
  var prototypeAccessors = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
625125
- Parser2.prototype.parse = function parse() {
625125
+ Parser2.prototype.parse = function parse13() {
625126
625126
  var node = this.options.program || this.startNode();
625127
625127
  this.nextToken();
625128
625128
  return this.parseTopLevel(node);
@@ -625173,7 +625173,7 @@ Defaulting to 2020, but this will stop working in the future.`);
625173
625173
  prototypeAccessors.inClassStaticBlock.get = function() {
625174
625174
  return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
625175
625175
  };
625176
- Parser2.extend = function extend() {
625176
+ Parser2.extend = function extend2() {
625177
625177
  var plugins2 = [], len = arguments.length;
625178
625178
  while (len--)
625179
625179
  plugins2[len] = arguments[len];
@@ -625183,15 +625183,15 @@ Defaulting to 2020, but this will stop working in the future.`);
625183
625183
  }
625184
625184
  return cls;
625185
625185
  };
625186
- Parser2.parse = function parse(input, options8) {
625186
+ Parser2.parse = function parse13(input, options8) {
625187
625187
  return new this(options8, input).parse();
625188
625188
  };
625189
- Parser2.parseExpressionAt = function parseExpressionAt(input, pos2, options8) {
625189
+ Parser2.parseExpressionAt = function parseExpressionAt2(input, pos2, options8) {
625190
625190
  var parser2 = new this(options8, input, pos2);
625191
625191
  parser2.nextToken();
625192
625192
  return parser2.parseExpression();
625193
625193
  };
625194
- Parser2.tokenizer = function tokenizer(input, options8) {
625194
+ Parser2.tokenizer = function tokenizer2(input, options8) {
625195
625195
  return new this(options8, input);
625196
625196
  };
625197
625197
  Object.defineProperties(Parser2.prototype, prototypeAccessors);
@@ -625278,7 +625278,7 @@ Defaulting to 2020, but this will stop working in the future.`);
625278
625278
  pp$9.unexpected = function(pos2) {
625279
625279
  this.raise(pos2 != null ? pos2 : this.start, "Unexpected token");
625280
625280
  };
625281
- var DestructuringErrors = function DestructuringErrors() {
625281
+ var DestructuringErrors = function DestructuringErrors2() {
625282
625282
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
625283
625283
  };
625284
625284
  pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
@@ -626688,7 +626688,7 @@ Defaulting to 2020, but this will stop working in the future.`);
626688
626688
  this.checkLValPattern(expr, bindingType, checkClashes);
626689
626689
  }
626690
626690
  };
626691
- var TokContext = function TokContext(token2, isExpr, preserveSpace, override, generator2) {
626691
+ var TokContext = function TokContext2(token2, isExpr, preserveSpace, override, generator2) {
626692
626692
  this.token = token2;
626693
626693
  this.isExpr = !!isExpr;
626694
626694
  this.preserveSpace = !!preserveSpace;
@@ -627896,7 +627896,7 @@ Defaulting to 2020, but this will stop working in the future.`);
627896
627896
  }
627897
627897
  };
627898
627898
  var pp$3 = Parser2.prototype;
627899
- var Scope = function Scope(flags) {
627899
+ var Scope = function Scope2(flags) {
627900
627900
  this.flags = flags;
627901
627901
  this.var = [];
627902
627902
  this.lexical = [];
@@ -627975,7 +627975,7 @@ Defaulting to 2020, but this will stop working in the future.`);
627975
627975
  }
627976
627976
  }
627977
627977
  };
627978
- var Node = function Node(parser2, pos2, loc) {
627978
+ var Node = function Node2(parser2, pos2, loc) {
627979
627979
  this.type = "";
627980
627980
  this.start = pos2;
627981
627981
  this.end = 0;
@@ -628079,7 +628079,7 @@ Defaulting to 2020, but this will stop working in the future.`);
628079
628079
  buildUnicodeData(ecmaVersion);
628080
628080
  }
628081
628081
  var pp$1 = Parser2.prototype;
628082
- var BranchID = function BranchID(parent, base2) {
628082
+ var BranchID = function BranchID2(parent, base2) {
628083
628083
  this.parent = parent;
628084
628084
  this.base = base2 || this;
628085
628085
  };
@@ -628096,7 +628096,7 @@ Defaulting to 2020, but this will stop working in the future.`);
628096
628096
  BranchID.prototype.sibling = function sibling() {
628097
628097
  return new BranchID(this.parent, this.base);
628098
628098
  };
628099
- var RegExpValidationState = function RegExpValidationState(parser2) {
628099
+ var RegExpValidationState = function RegExpValidationState2(parser2) {
628100
628100
  this.parser = parser2;
628101
628101
  this.validFlags = "gim" + (parser2.options.ecmaVersion >= 6 ? "uy" : "") + (parser2.options.ecmaVersion >= 9 ? "s" : "") + (parser2.options.ecmaVersion >= 13 ? "d" : "") + (parser2.options.ecmaVersion >= 15 ? "v" : "");
628102
628102
  this.unicodeProperties = data[parser2.options.ecmaVersion >= 14 ? 14 : parser2.options.ecmaVersion];
@@ -628116,7 +628116,7 @@ Defaulting to 2020, but this will stop working in the future.`);
628116
628116
  this.backReferenceNames = [];
628117
628117
  this.branchID = null;
628118
628118
  };
628119
- RegExpValidationState.prototype.reset = function reset(start, pattern, flags) {
628119
+ RegExpValidationState.prototype.reset = function reset2(start, pattern, flags) {
628120
628120
  var unicodeSets = flags.indexOf("v") !== -1;
628121
628121
  var unicode2 = flags.indexOf("u") !== -1;
628122
628122
  this.start = start | 0;
@@ -628135,7 +628135,7 @@ Defaulting to 2020, but this will stop working in the future.`);
628135
628135
  RegExpValidationState.prototype.raise = function raise(message) {
628136
628136
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
628137
628137
  };
628138
- RegExpValidationState.prototype.at = function at(i8, forceU) {
628138
+ RegExpValidationState.prototype.at = function at12(i8, forceU) {
628139
628139
  if (forceU === undefined)
628140
628140
  forceU = false;
628141
628141
  var s5 = this.source;
@@ -629172,7 +629172,7 @@ Defaulting to 2020, but this will stop working in the future.`);
629172
629172
  }
629173
629173
  return true;
629174
629174
  };
629175
- var Token = function Token(p26) {
629175
+ var Token = function Token2(p26) {
629176
629176
  this.type = p26.type;
629177
629177
  this.value = p26.value;
629178
629178
  this.start = p26.start;
@@ -630042,9 +630042,9 @@ var require_walk = __commonJS((exports, module3) => {
630042
630042
  if (!baseVisitor) {
630043
630043
  baseVisitor = base2;
630044
630044
  }
630045
- (function c(node2, st9, override2) {
630045
+ (function c8(node2, st9, override2) {
630046
630046
  var type18 = override2 || node2.type;
630047
- baseVisitor[type18](node2, st9, c);
630047
+ baseVisitor[type18](node2, st9, c8);
630048
630048
  if (visitors[type18]) {
630049
630049
  visitors[type18](node2, st9);
630050
630050
  }
@@ -630055,13 +630055,13 @@ var require_walk = __commonJS((exports, module3) => {
630055
630055
  if (!baseVisitor) {
630056
630056
  baseVisitor = base2;
630057
630057
  }
630058
- (function c(node2, st9, override2) {
630058
+ (function c8(node2, st9, override2) {
630059
630059
  var type18 = override2 || node2.type;
630060
630060
  var isNew = node2 !== ancestors[ancestors.length - 1];
630061
630061
  if (isNew) {
630062
630062
  ancestors.push(node2);
630063
630063
  }
630064
- baseVisitor[type18](node2, st9, c);
630064
+ baseVisitor[type18](node2, st9, c8);
630065
630065
  if (visitors[type18]) {
630066
630066
  visitors[type18](node2, st9 || ancestors, ancestors);
630067
630067
  }
@@ -630072,8 +630072,8 @@ var require_walk = __commonJS((exports, module3) => {
630072
630072
  }
630073
630073
  function recursive(node, state, funcs, baseVisitor, override) {
630074
630074
  var visitor = funcs ? make(funcs, baseVisitor || undefined) : baseVisitor;
630075
- (function c(node2, st9, override2) {
630076
- visitor[override2 || node2.type](node2, st9, c);
630075
+ (function c8(node2, st9, override2) {
630076
+ visitor[override2 || node2.type](node2, st9, c8);
630077
630077
  })(node, state, override);
630078
630078
  }
630079
630079
  function makeTest(test) {
@@ -630089,7 +630089,7 @@ var require_walk = __commonJS((exports, module3) => {
630089
630089
  return test;
630090
630090
  }
630091
630091
  }
630092
- var Found = function Found(node, state) {
630092
+ var Found = function Found2(node, state) {
630093
630093
  this.node = node;
630094
630094
  this.state = state;
630095
630095
  };
@@ -630098,9 +630098,9 @@ var require_walk = __commonJS((exports, module3) => {
630098
630098
  baseVisitor = base2;
630099
630099
  }
630100
630100
  var last;
630101
- (function c(node2, st9, override2) {
630101
+ (function c8(node2, st9, override2) {
630102
630102
  var type18 = override2 || node2.type;
630103
- baseVisitor[type18](node2, st9, c);
630103
+ baseVisitor[type18](node2, st9, c8);
630104
630104
  if (last !== node2) {
630105
630105
  callback(node2, st9, type18);
630106
630106
  last = node2;
@@ -630112,13 +630112,13 @@ var require_walk = __commonJS((exports, module3) => {
630112
630112
  baseVisitor = base2;
630113
630113
  }
630114
630114
  var ancestors = [], last;
630115
- (function c(node2, st9, override) {
630115
+ (function c8(node2, st9, override) {
630116
630116
  var type18 = override || node2.type;
630117
630117
  var isNew = node2 !== ancestors[ancestors.length - 1];
630118
630118
  if (isNew) {
630119
630119
  ancestors.push(node2);
630120
630120
  }
630121
- baseVisitor[type18](node2, st9, c);
630121
+ baseVisitor[type18](node2, st9, c8);
630122
630122
  if (last !== node2) {
630123
630123
  callback(node2, st9 || ancestors, ancestors, type18);
630124
630124
  last = node2;
@@ -630134,10 +630134,10 @@ var require_walk = __commonJS((exports, module3) => {
630134
630134
  }
630135
630135
  test = makeTest(test);
630136
630136
  try {
630137
- (function c(node2, st9, override) {
630137
+ (function c8(node2, st9, override) {
630138
630138
  var type18 = override || node2.type;
630139
630139
  if ((start == null || node2.start <= start) && (end == null || node2.end >= end)) {
630140
- baseVisitor[type18](node2, st9, c);
630140
+ baseVisitor[type18](node2, st9, c8);
630141
630141
  }
630142
630142
  if ((start == null || node2.start === start) && (end == null || node2.end === end) && test(type18, node2)) {
630143
630143
  throw new Found(node2, st9);
@@ -630156,12 +630156,12 @@ var require_walk = __commonJS((exports, module3) => {
630156
630156
  baseVisitor = base2;
630157
630157
  }
630158
630158
  try {
630159
- (function c(node2, st9, override) {
630159
+ (function c8(node2, st9, override) {
630160
630160
  var type18 = override || node2.type;
630161
630161
  if (node2.start > pos2 || node2.end < pos2) {
630162
630162
  return;
630163
630163
  }
630164
- baseVisitor[type18](node2, st9, c);
630164
+ baseVisitor[type18](node2, st9, c8);
630165
630165
  if (test(type18, node2)) {
630166
630166
  throw new Found(node2, st9);
630167
630167
  }
@@ -630179,7 +630179,7 @@ var require_walk = __commonJS((exports, module3) => {
630179
630179
  baseVisitor = base2;
630180
630180
  }
630181
630181
  try {
630182
- (function c(node2, st9, override) {
630182
+ (function c8(node2, st9, override) {
630183
630183
  if (node2.end < pos2) {
630184
630184
  return;
630185
630185
  }
@@ -630187,7 +630187,7 @@ var require_walk = __commonJS((exports, module3) => {
630187
630187
  if (node2.start >= pos2 && test(type18, node2)) {
630188
630188
  throw new Found(node2, st9);
630189
630189
  }
630190
- baseVisitor[type18](node2, st9, c);
630190
+ baseVisitor[type18](node2, st9, c8);
630191
630191
  })(node, state);
630192
630192
  } catch (e8) {
630193
630193
  if (e8 instanceof Found) {
@@ -630202,7 +630202,7 @@ var require_walk = __commonJS((exports, module3) => {
630202
630202
  baseVisitor = base2;
630203
630203
  }
630204
630204
  var max;
630205
- (function c(node2, st9, override) {
630205
+ (function c8(node2, st9, override) {
630206
630206
  if (node2.start > pos2) {
630207
630207
  return;
630208
630208
  }
@@ -630210,7 +630210,7 @@ var require_walk = __commonJS((exports, module3) => {
630210
630210
  if (node2.end <= pos2 && (!max || max.node.end < node2.end) && test(type18, node2)) {
630211
630211
  max = new Found(node2, st9);
630212
630212
  }
630213
- baseVisitor[type18](node2, st9, c);
630213
+ baseVisitor[type18](node2, st9, c8);
630214
630214
  })(node, state);
630215
630215
  return max;
630216
630216
  }
@@ -630707,7 +630707,7 @@ var require_base2 = __commonJS((exports) => {
630707
630707
  exports.default = Diff2;
630708
630708
  function Diff2() {}
630709
630709
  Diff2.prototype = {
630710
- diff: function diff(oldString, newString) {
630710
+ diff: function diff2(oldString, newString) {
630711
630711
  var options8 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
630712
630712
  var callback = options8.callback;
630713
630713
  if (typeof options8 === "function") {
@@ -630774,13 +630774,13 @@ var require_base2 = __commonJS((exports) => {
630774
630774
  editLength++;
630775
630775
  }
630776
630776
  if (callback) {
630777
- (function exec() {
630777
+ (function exec2() {
630778
630778
  setTimeout(function() {
630779
630779
  if (editLength > maxEditLength) {
630780
630780
  return callback();
630781
630781
  }
630782
630782
  if (!execEditLength()) {
630783
- exec();
630783
+ exec2();
630784
630784
  }
630785
630785
  }, 0);
630786
630786
  })();
@@ -630843,10 +630843,10 @@ var require_base2 = __commonJS((exports) => {
630843
630843
  castInput: function castInput(value2) {
630844
630844
  return value2;
630845
630845
  },
630846
- tokenize: function tokenize(value2) {
630846
+ tokenize: function tokenize3(value2) {
630847
630847
  return value2.split("");
630848
630848
  },
630849
- join: function join(chars) {
630849
+ join: function join3(chars) {
630850
630850
  return chars.join("");
630851
630851
  }
630852
630852
  };
@@ -631079,11 +631079,11 @@ var require_json3 = __commonJS((exports) => {
631079
631079
  }
631080
631080
  function _typeof(obj) {
631081
631081
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
631082
- _typeof = function _typeof(obj2) {
631082
+ _typeof = function _typeof2(obj2) {
631083
631083
  return typeof obj2;
631084
631084
  };
631085
631085
  } else {
631086
- _typeof = function _typeof(obj2) {
631086
+ _typeof = function _typeof2(obj2) {
631087
631087
  return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
631088
631088
  };
631089
631089
  }
@@ -631494,7 +631494,7 @@ var require_create = __commonJS((exports) => {
631494
631494
  }
631495
631495
  var hunks = [];
631496
631496
  var oldRangeStart = 0, newRangeStart = 0, curRange = [], oldLine = 1, newLine = 1;
631497
- var _loop = function _loop(i8) {
631497
+ var _loop = function _loop2(i8) {
631498
631498
  var current = diff2[i8], lines = current.lines || current.value.replace(/\n$/, "").split(`
631499
631499
  `);
631500
631500
  current.lines = lines;
@@ -636306,7 +636306,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
636306
636306
  emitter.on(ev2, cb2);
636307
636307
  return remove;
636308
636308
  };
636309
- unload2 = function unload() {
636309
+ unload2 = function unload3() {
636310
636310
  if (!loaded || !processOk2(global.process)) {
636311
636311
  return;
636312
636312
  }
@@ -636321,7 +636321,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
636321
636321
  emitter.count -= 1;
636322
636322
  };
636323
636323
  module3.exports.unload = unload2;
636324
- emit = function emit(event, code, signal) {
636324
+ emit = function emit2(event, code, signal) {
636325
636325
  if (emitter.emitted[event]) {
636326
636326
  return;
636327
636327
  }
@@ -636350,7 +636350,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
636350
636350
  return signals2;
636351
636351
  };
636352
636352
  loaded = false;
636353
- load2 = function load() {
636353
+ load2 = function load3() {
636354
636354
  if (loaded || !processOk2(global.process)) {
636355
636355
  return;
636356
636356
  }
@@ -636369,7 +636369,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
636369
636369
  };
636370
636370
  module3.exports.load = load2;
636371
636371
  originalProcessReallyExit = process6.reallyExit;
636372
- processReallyExit = function processReallyExit(code) {
636372
+ processReallyExit = function processReallyExit2(code) {
636373
636373
  if (!processOk2(global.process)) {
636374
636374
  return;
636375
636375
  }
@@ -636379,7 +636379,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
636379
636379
  originalProcessReallyExit.call(process6, process6.exitCode);
636380
636380
  };
636381
636381
  originalProcessEmit = process6.emit;
636382
- processEmit = function processEmit(ev2, arg2) {
636382
+ processEmit = function processEmit2(ev2, arg2) {
636383
636383
  if (ev2 === "exit" && processOk2(global.process)) {
636384
636384
  if (arg2 !== undefined) {
636385
636385
  process6.exitCode = arg2;
@@ -638377,12 +638377,12 @@ var require_wcwidth = __commonJS((exports, module3) => {
638377
638377
  nul: 0,
638378
638378
  control: 0
638379
638379
  };
638380
- module3.exports = function wcwidth(str2) {
638380
+ module3.exports = function wcwidth2(str2) {
638381
638381
  return wcswidth(str2, DEFAULTS);
638382
638382
  };
638383
638383
  module3.exports.config = function(opts) {
638384
638384
  opts = defaults(opts || {}, DEFAULTS);
638385
- return function wcwidth(str2) {
638385
+ return function wcwidth2(str2) {
638386
638386
  return wcswidth(str2, opts);
638387
638387
  };
638388
638388
  };
@@ -638521,7 +638521,7 @@ var require_buffer_list = __commonJS((exports, module3) => {
638521
638521
  }
638522
638522
  _createClass(BufferList, [{
638523
638523
  key: "push",
638524
- value: function push(v25) {
638524
+ value: function push2(v25) {
638525
638525
  var entry = {
638526
638526
  data: v25,
638527
638527
  next: null
@@ -638566,7 +638566,7 @@ var require_buffer_list = __commonJS((exports, module3) => {
638566
638566
  }
638567
638567
  }, {
638568
638568
  key: "join",
638569
- value: function join(s5) {
638569
+ value: function join3(s5) {
638570
638570
  if (this.length === 0)
638571
638571
  return "";
638572
638572
  var p26 = this.head;
@@ -638675,7 +638675,7 @@ var require_buffer_list = __commonJS((exports, module3) => {
638675
638675
  }
638676
638676
  }, {
638677
638677
  key: custom2,
638678
- value: function value(_8, options8) {
638678
+ value: function value2(_8, options8) {
638679
638679
  return inspect4(this, _objectSpread(_objectSpread({}, options8), {}, {
638680
638680
  depth: 0,
638681
638681
  customInspect: false
@@ -639043,7 +639043,7 @@ var require__stream_writable = __commonJS((exports, module3) => {
639043
639043
  if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") {
639044
639044
  realHasInstance = Function.prototype[Symbol.hasInstance];
639045
639045
  Object.defineProperty(Writable2, Symbol.hasInstance, {
639046
- value: function value(object2) {
639046
+ value: function value2(object2) {
639047
639047
  if (realHasInstance.call(this, object2))
639048
639048
  return true;
639049
639049
  if (this !== Writable2)
@@ -639052,7 +639052,7 @@ var require__stream_writable = __commonJS((exports, module3) => {
639052
639052
  }
639053
639053
  });
639054
639054
  } else {
639055
- realHasInstance = function realHasInstance(object2) {
639055
+ realHasInstance = function realHasInstance2(object2) {
639056
639056
  return object2 instanceof this;
639057
639057
  };
639058
639058
  }
@@ -639411,7 +639411,7 @@ var require__stream_writable = __commonJS((exports, module3) => {
639411
639411
  }
639412
639412
  return this._writableState.destroyed;
639413
639413
  },
639414
- set: function set(value2) {
639414
+ set: function set3(value2) {
639415
639415
  if (!this._writableState) {
639416
639416
  return;
639417
639417
  }
@@ -639499,7 +639499,7 @@ var require__stream_duplex = __commonJS((exports, module3) => {
639499
639499
  }
639500
639500
  return this._readableState.destroyed && this._writableState.destroyed;
639501
639501
  },
639502
- set: function set(value2) {
639502
+ set: function set3(value2) {
639503
639503
  if (this._readableState === undefined || this._writableState === undefined) {
639504
639504
  return;
639505
639505
  }
@@ -639850,28 +639850,28 @@ var require_end_of_stream = __commonJS((exports, module3) => {
639850
639850
  callback = once(callback || noop3);
639851
639851
  var readable = opts.readable || opts.readable !== false && stream.readable;
639852
639852
  var writable = opts.writable || opts.writable !== false && stream.writable;
639853
- var onlegacyfinish = function onlegacyfinish() {
639853
+ var onlegacyfinish = function onlegacyfinish2() {
639854
639854
  if (!stream.writable)
639855
639855
  onfinish();
639856
639856
  };
639857
639857
  var writableEnded = stream._writableState && stream._writableState.finished;
639858
- var onfinish = function onfinish() {
639858
+ var onfinish = function onfinish2() {
639859
639859
  writable = false;
639860
639860
  writableEnded = true;
639861
639861
  if (!readable)
639862
639862
  callback.call(stream);
639863
639863
  };
639864
639864
  var readableEnded = stream._readableState && stream._readableState.endEmitted;
639865
- var onend = function onend() {
639865
+ var onend = function onend2() {
639866
639866
  readable = false;
639867
639867
  readableEnded = true;
639868
639868
  if (!writable)
639869
639869
  callback.call(stream);
639870
639870
  };
639871
- var onerror = function onerror(err) {
639871
+ var onerror = function onerror2(err) {
639872
639872
  callback.call(stream, err);
639873
639873
  };
639874
- var onclose = function onclose() {
639874
+ var onclose = function onclose2() {
639875
639875
  var err;
639876
639876
  if (readable && !readableEnded) {
639877
639877
  if (!stream._readableState || !stream._readableState.ended)
@@ -639884,7 +639884,7 @@ var require_end_of_stream = __commonJS((exports, module3) => {
639884
639884
  return callback.call(stream, err);
639885
639885
  }
639886
639886
  };
639887
- var onrequest = function onrequest() {
639887
+ var onrequest = function onrequest2() {
639888
639888
  stream.req.on("finish", onfinish);
639889
639889
  };
639890
639890
  if (isRequest(stream)) {
@@ -640041,7 +640041,7 @@ var require_async_iterator = __commonJS((exports, module3) => {
640041
640041
  });
640042
640042
  });
640043
640043
  }), _Object$setPrototypeO), AsyncIteratorPrototype);
640044
- var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {
640044
+ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream) {
640045
640045
  var _Object$create;
640046
640046
  var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
640047
640047
  value: stream,
@@ -640059,7 +640059,7 @@ var require_async_iterator = __commonJS((exports, module3) => {
640059
640059
  value: stream._readableState.endEmitted,
640060
640060
  writable: true
640061
640061
  }), _defineProperty(_Object$create, kHandlePromise, {
640062
- value: function value(resolve4, reject) {
640062
+ value: function value2(resolve4, reject) {
640063
640063
  var data = iterator[kStream].read();
640064
640064
  if (data) {
640065
640065
  iterator[kLastPromise] = null;
@@ -640230,7 +640230,7 @@ var require__stream_readable = __commonJS((exports, module3) => {
640230
640230
  var Duplex;
640231
640231
  Readable.ReadableState = ReadableState;
640232
640232
  var EE = __require("events").EventEmitter;
640233
- var EElistenerCount = function EElistenerCount(emitter, type18) {
640233
+ var EElistenerCount = function EElistenerCount2(emitter, type18) {
640234
640234
  return emitter.listeners(type18).length;
640235
640235
  };
640236
640236
  var Stream = __require("stream");
@@ -640247,7 +640247,7 @@ var require__stream_readable = __commonJS((exports, module3) => {
640247
640247
  if (debugUtil && debugUtil.debuglog) {
640248
640248
  debug = debugUtil.debuglog("stream");
640249
640249
  } else {
640250
- debug = function debug() {};
640250
+ debug = function debug2() {};
640251
640251
  }
640252
640252
  var BufferList = require_buffer_list();
640253
640253
  var destroyImpl = require_destroy();
@@ -640335,7 +640335,7 @@ var require__stream_readable = __commonJS((exports, module3) => {
640335
640335
  }
640336
640336
  return this._readableState.destroyed;
640337
640337
  },
640338
- set: function set(value2) {
640338
+ set: function set3(value2) {
640339
640339
  if (!this._readableState) {
640340
640340
  return;
640341
640341
  }
@@ -640929,7 +640929,7 @@ var require__stream_readable = __commonJS((exports, module3) => {
640929
640929
  get: function get() {
640930
640930
  return this._readableState.flowing;
640931
640931
  },
640932
- set: function set(state) {
640932
+ set: function set3(state) {
640933
640933
  if (this._readableState) {
640934
640934
  this._readableState.flowing = state;
640935
640935
  }
@@ -641257,7 +641257,7 @@ var require_BufferList = __commonJS((exports, module3) => {
641257
641257
  BufferList.prototype._new = function _new(buf) {
641258
641258
  return new BufferList(buf);
641259
641259
  };
641260
- BufferList.prototype._offset = function _offset(offset) {
641260
+ BufferList.prototype._offset = function _offset2(offset) {
641261
641261
  if (offset === 0) {
641262
641262
  return [0, 0];
641263
641263
  }
@@ -641307,14 +641307,14 @@ var require_BufferList = __commonJS((exports, module3) => {
641307
641307
  if (srcEnd <= 0) {
641308
641308
  return dst || Buffer2.alloc(0);
641309
641309
  }
641310
- const copy = !!dst;
641310
+ const copy2 = !!dst;
641311
641311
  const off = this._offset(srcStart);
641312
641312
  const len = srcEnd - srcStart;
641313
641313
  let bytes = len;
641314
- let bufoff = copy && dstStart || 0;
641314
+ let bufoff = copy2 && dstStart || 0;
641315
641315
  let start = off[1];
641316
641316
  if (srcStart === 0 && srcEnd === this.length) {
641317
- if (!copy) {
641317
+ if (!copy2) {
641318
641318
  return this._bufs.length === 1 ? this._bufs[0] : Buffer2.concat(this._bufs, this.length);
641319
641319
  }
641320
641320
  for (let i4 = 0;i4 < this._bufs.length; i4++) {
@@ -641324,9 +641324,9 @@ var require_BufferList = __commonJS((exports, module3) => {
641324
641324
  return dst;
641325
641325
  }
641326
641326
  if (bytes <= this._bufs[off[0]].length - start) {
641327
- return copy ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) : this._bufs[off[0]].slice(start, start + bytes);
641327
+ return copy2 ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) : this._bufs[off[0]].slice(start, start + bytes);
641328
641328
  }
641329
- if (!copy) {
641329
+ if (!copy2) {
641330
641330
  dst = Buffer2.allocUnsafe(len);
641331
641331
  }
641332
641332
  for (let i4 = off[0];i4 < this._bufs.length; i4++) {
@@ -641548,7 +641548,7 @@ var require_bl = __commonJS((exports, module3) => {
641548
641548
  }
641549
641549
  if (typeof callback === "function") {
641550
641550
  this._callback = callback;
641551
- const piper = function piper(err) {
641551
+ const piper = function piper2(err) {
641552
641552
  if (this._callback) {
641553
641553
  this._callback(err);
641554
641554
  this._callback = null;
@@ -648709,7 +648709,7 @@ GFS4: `);
648709
648709
  }
648710
648710
  });
648711
648711
  }
648712
- mkdirP.sync = function sync(p26, opts, made) {
648712
+ mkdirP.sync = function sync2(p26, opts, made) {
648713
648713
  if (!opts || typeof opts !== "object") {
648714
648714
  opts = { mode: opts };
648715
648715
  }
@@ -648727,8 +648727,8 @@ GFS4: `);
648727
648727
  } catch (err0) {
648728
648728
  switch (err0.code) {
648729
648729
  case "ENOENT":
648730
- made = sync(path__default["default"].dirname(p26), opts, made);
648731
- sync(p26, opts, made);
648730
+ made = sync2(path__default["default"].dirname(p26), opts, made);
648731
+ sync2(p26, opts, made);
648732
648732
  break;
648733
648733
  default:
648734
648734
  var stat2;
@@ -648791,7 +648791,7 @@ GFS4: `);
648791
648791
  splitRootRe = /^[\/]*/;
648792
648792
  }
648793
648793
  var splitRootRe;
648794
- var realpathSync$1 = function realpathSync(p26, cache3) {
648794
+ var realpathSync$1 = function realpathSync3(p26, cache3) {
648795
648795
  p26 = path__default["default"].resolve(p26);
648796
648796
  if (cache3 && Object.prototype.hasOwnProperty.call(cache3, p26)) {
648797
648797
  return cache3[p26];
@@ -648858,7 +648858,7 @@ GFS4: `);
648858
648858
  cache3[original] = p26;
648859
648859
  return p26;
648860
648860
  };
648861
- var realpath$1 = function realpath(p26, cache3, cb2) {
648861
+ var realpath$1 = function realpath2(p26, cache3, cb2) {
648862
648862
  if (typeof cb2 !== "function") {
648863
648863
  cb2 = maybeCallback(cache3);
648864
648864
  cache3 = null;
@@ -649253,10 +649253,10 @@ GFS4: `);
649253
649253
  if (!def || !Object.keys(def).length)
649254
649254
  return minimatch;
649255
649255
  var orig = minimatch;
649256
- var m34 = function minimatch(p26, pattern, options8) {
649256
+ var m34 = function minimatch2(p26, pattern, options8) {
649257
649257
  return orig.minimatch(p26, pattern, ext(def, options8));
649258
649258
  };
649259
- m34.Minimatch = function Minimatch(pattern, options8) {
649259
+ m34.Minimatch = function Minimatch2(pattern, options8) {
649260
649260
  return new orig.Minimatch(pattern, ext(def, options8));
649261
649261
  };
649262
649262
  return m34;
@@ -649768,7 +649768,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
649768
649768
  }
649769
649769
  var inherits_browser = createCommonjsModule(function(module4) {
649770
649770
  if (typeof Object.create === "function") {
649771
- module4.exports = function inherits(ctor, superCtor) {
649771
+ module4.exports = function inherits2(ctor, superCtor) {
649772
649772
  ctor.super_ = superCtor;
649773
649773
  ctor.prototype = Object.create(superCtor.prototype, {
649774
649774
  constructor: {
@@ -649780,7 +649780,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
649780
649780
  });
649781
649781
  };
649782
649782
  } else {
649783
- module4.exports = function inherits(ctor, superCtor) {
649783
+ module4.exports = function inherits2(ctor, superCtor) {
649784
649784
  ctor.super_ = superCtor;
649785
649785
  var TempCtor = function() {};
649786
649786
  TempCtor.prototype = superCtor.prototype;
@@ -651295,7 +651295,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
651295
651295
  var src3 = ref.resolvedPath;
651296
651296
  var readOptions = ref.options;
651297
651297
  return {
651298
- to: function to() {
651298
+ to: function to5() {
651299
651299
  var ref2 = resolvePathAndOptions(arguments);
651300
651300
  var dest = ref2.resolvedPath;
651301
651301
  var writeOptions = ref2.options;
@@ -653847,7 +653847,7 @@ var require_mark = __commonJS((exports, module3) => {
653847
653847
  this.line = line3;
653848
653848
  this.column = column2;
653849
653849
  }
653850
- Mark.prototype.getSnippet = function getSnippet(indent4, maxLength) {
653850
+ Mark.prototype.getSnippet = function getSnippet2(indent4, maxLength) {
653851
653851
  var head, start, tail, end, snippet;
653852
653852
  if (!this.buffer)
653853
653853
  return null;
@@ -654004,7 +654004,7 @@ var require_schema6 = __commonJS((exports, module3) => {
654004
654004
  this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
654005
654005
  }
654006
654006
  Schema2.DEFAULT = null;
654007
- Schema2.create = function createSchema() {
654007
+ Schema2.create = function createSchema3() {
654008
654008
  var schemas3, types3;
654009
654009
  switch (arguments.length) {
654010
654010
  case 1:
@@ -656912,25 +656912,25 @@ var require_minimatch = __commonJS((exports, module3) => {
656912
656912
  return minimatch;
656913
656913
  }
656914
656914
  var orig = minimatch;
656915
- var m25 = function minimatch(p26, pattern, options8) {
656915
+ var m25 = function minimatch2(p26, pattern, options8) {
656916
656916
  return orig(p26, pattern, ext(def, options8));
656917
656917
  };
656918
- m25.Minimatch = function Minimatch(pattern, options8) {
656918
+ m25.Minimatch = function Minimatch2(pattern, options8) {
656919
656919
  return new orig.Minimatch(pattern, ext(def, options8));
656920
656920
  };
656921
656921
  m25.Minimatch.defaults = function defaults(options8) {
656922
656922
  return orig.defaults(ext(def, options8)).Minimatch;
656923
656923
  };
656924
- m25.filter = function filter(pattern, options8) {
656924
+ m25.filter = function filter3(pattern, options8) {
656925
656925
  return orig.filter(pattern, ext(def, options8));
656926
656926
  };
656927
656927
  m25.defaults = function defaults(options8) {
656928
656928
  return orig.defaults(ext(def, options8));
656929
656929
  };
656930
- m25.makeRe = function makeRe(pattern, options8) {
656930
+ m25.makeRe = function makeRe2(pattern, options8) {
656931
656931
  return orig.makeRe(pattern, ext(def, options8));
656932
656932
  };
656933
- m25.braceExpand = function braceExpand(pattern, options8) {
656933
+ m25.braceExpand = function braceExpand2(pattern, options8) {
656934
656934
  return orig.braceExpand(pattern, ext(def, options8));
656935
656935
  };
656936
656936
  m25.match = function(list, pattern, options8) {
@@ -658661,7 +658661,7 @@ var exports_version = {};
658661
658661
  __export(exports_version, {
658662
658662
  version: () => version2
658663
658663
  });
658664
- var version2 = "5.3.0-staging.8";
658664
+ var version2 = "5.3.0";
658665
658665
 
658666
658666
  // ../../node_modules/.pnpm/didyoumean@1.2.2/node_modules/didyoumean/didYouMean-1.2.1.js
658667
658667
  var require_didYouMean_1_2_1 = __commonJS((exports, module3) => {
@@ -664654,413 +664654,47 @@ throw new MissingIdError("message");
664654
664654
  - **InvalidInputError**: Business logic violations
664655
664655
  - **PermissionDeniedError**: Access control violations
664656
664656
 
664657
- ## Document Model Structure
664658
-
664659
- ### Core Components
664660
-
664661
- - **Basic Metadata**: \`id\`, \`name\`, \`extension\`, \`description\`, \`author\` (name + website)
664662
- - **Specifications**: Versioned specs with \`version\`, \`changeLog\`, \`state\` (global/local with schema, initialValue, examples)
664663
- - **Modules**: Operational modules containing their operations
664664
-
664665
- ## Available Document Model Operations (37 total)
664666
-
664667
- | Category | Operations | Count |
664668
- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
664669
- | **Header Management** | \`SET_MODEL_NAME\`, \`SET_MODEL_ID\`, \`SET_MODEL_EXTENSION\`, \`SET_MODEL_DESCRIPTION\`, \`SET_AUTHOR_NAME\`, \`SET_AUTHOR_WEBSITE\` | 6 |
664670
- | **Versioning** | ⚠️ **DO NOT USE** - Not implemented | 0 |
664671
- | **Module Management** | \`ADD_MODULE\`, \`SET_MODULE_NAME\`, \`SET_MODULE_DESCRIPTION\`, \`DELETE_MODULE\`, \`REORDER_MODULES\` | 5 |
664672
- | **Operation Management** | \`ADD_OPERATION\`, \`SET_OPERATION_NAME\`, \`SET_OPERATION_SCHEMA\`, \`SET_OPERATION_DESCRIPTION\`, \`SET_OPERATION_TEMPLATE\`, \`SET_OPERATION_REDUCER\`, \`MOVE_OPERATION\`, \`DELETE_OPERATION\`, \`REORDER_MODULE_OPERATIONS\` | 9 |
664673
- | **Operation Error Management** | \`ADD_OPERATION_ERROR\`, \`SET_OPERATION_ERROR_CODE\`, \`SET_OPERATION_ERROR_NAME\`, \`SET_OPERATION_ERROR_DESCRIPTION\`, \`SET_OPERATION_ERROR_TEMPLATE\`, \`DELETE_OPERATION_ERROR\`, \`REORDER_OPERATION_ERRORS\` | 7 |
664674
- | **Operation Example Management** | \`ADD_OPERATION_EXAMPLE\`, \`UPDATE_OPERATION_EXAMPLE\`, \`DELETE_OPERATION_EXAMPLE\`, \`REORDER_OPERATION_EXAMPLES\` | 4 |
664675
- | **State Management** | \`SET_STATE_SCHEMA\`, \`SET_INITIAL_STATE\`, \`ADD_STATE_EXAMPLE\`, \`UPDATE_STATE_EXAMPLE\`, \`DELETE_STATE_EXAMPLE\`, \`REORDER_STATE_EXAMPLES\` | 6 |
664676
-
664677
- ## Best Practices & Design Principles
664678
-
664679
- ### Scope Selection
664680
-
664681
- - **\`scope: "global"\`**: State shared among all users with document access
664682
- - **\`scope: "local"\`**: State private to each individual user
664683
-
664684
- ### Operation Design
664685
-
664686
- - Use descriptive operation names (e.g., \`ADD_LINE_ITEM\`, \`UPDATE_RECIPIENT\`)
664687
- - One operation per user intent (separate concerns)
664688
- - Include comprehensive examples and error definitions
664689
- - Organize related operations into logical modules
664690
-
664691
- ## GraphQL Schema Guidelines
664692
-
664693
- ### Document State Schema
664694
-
664695
- - **Most fields optional** to support creating empty documents
664696
- - Use required fields \`!\` only when absolutely necessary
664697
- - Defaults handled by operations, not schema
664698
-
664699
- ### ⚠️ CRITICAL: State Type Naming Convention
664700
-
664701
- **MANDATORY**: The global state type name MUST follow this exact pattern:
664702
-
664703
- ~~~graphql
664704
- type <DocumentModelName>State {
664705
- # your fields here
664706
- }
664707
- ~~~
664708
-
664709
- **DO NOT** append "Global" to the state type name, even when defining global state:
664710
-
664711
- ~~~graphql
664712
- // ❌ WRONG - Do not use "GlobalState" suffix
664713
- type TodoListGlobalState {
664714
- todos: [Todo!]!
664715
- }
664716
-
664717
- // ✅ CORRECT - Use only "State" suffix
664718
- type TodoListState {
664719
- todos: [Todo!]!
664720
- }
664721
-
664722
- // ✅ CORRECT - Use "LocalState" suffix for Local scope
664723
- type TodoListLocalState {
664724
- localTodos: [Todo!]!
664725
- }
664726
- ~~~
664727
-
664728
- **Why this matters:**
664729
-
664730
- - The code generator expects the type to be named \`<DocumentModelName>State\`
664731
- - Using \`GlobalState\` or \`LocalState\` suffix will cause TypeScript compilation errors
664732
- - This applies when using \`SET_STATE_SCHEMA\` with \`scope: "global"\`
664733
-
664734
- **Rule**: For global state, the type should be \`<DocumentModelName>State\`. For local state (if needed), the type name should be \`<DocumentModelName>LocalState\`.
664735
-
664736
- ### Available Scalar Types
664737
-
664738
- | Standard | Custom Identity | Custom Amounts | Custom Specialized |
664739
- | --------- | ---------------------- | ------------------- | ------------------ |
664740
- | \`String\` | \`OID\` (Object ID) | \`Amount\` | \`EthereumAddress\` |
664741
- | \`Int\` | \`PHID\` (Powerhouse ID) | \`Amount_Tokens\` | \`EmailAddress\` |
664742
- | \`Float\` | \`OLabel\` | \`Amount_Money\` | \`Date\` |
664743
- | \`Boolean\` | | \`Amount_Fiat\` | \`DateTime\` |
664744
- | | | \`Amount_Currency\` | \`URL\` |
664745
- | | | \`Amount_Crypto\` | \`Currency\` |
664746
- | | | \`Amount_Percentage\` | |
664747
-
664748
- ### Arrays and Objects
664749
-
664750
- - **Arrays**: Must be mandatory \`[ObjectType!]!\`
664751
- - **Objects in arrays**: Must include \`OID!\` field for unique identification
664752
- - Include \`OLabel\` for metadata when relevant
664753
-
664754
- ### Input Types
664755
-
664756
- - Reflect user intent with descriptive names
664757
- - Simple, specific fields over complex nested types
664758
- - System auto-generates \`OID\` for new objects (users don't provide manually)
664759
-
664760
- ## Working with Drives
664761
-
664762
- **MANDATORY**: Check the document-drive schema before performing drive operations.
664763
-
664764
- ### Drive Types
664765
-
664766
- There might be two drives available with a special use case:
664767
-
664768
- 1. **Vetra Drive** (\`vetra-{hash}\`):
664769
- - Contains **source documents**: document models and document editors
664770
- - Used for development
664771
- - Add document model and editor definitions here
664772
-
664773
- 2. **Preview Drive** (\`preview-{hash}\`, named "Vetra Preview"):
664774
- - Contains **demo and preview documents** (document instances)
664775
- - Used for showcasing and testing document models
664776
- - Add actual document instances here
664777
-
664778
- ### Drive Operations
664779
-
664780
- When working with drives (adding/removing documents, creating folders, etc.):
664781
-
664782
- 1. **Always get the drive schema first**:
664783
-
664784
- ~~~typescript
664785
- mcp__reactor -
664786
- mcp__getDocumentModelSchema({ type: "powerhouse/document-drive" });
664787
- ~~~
664788
-
664789
- 2. **Review available operations** in the schema, such as:
664790
- - \`ADD_FILE\` - Add a document to the drive
664791
- - \`ADD_FOLDER\` - Create a new folder
664792
- - \`DELETE_NODE\` - Remove a file or folder (use this, NOT "DELETE_FILE")
664793
- - \`UPDATE_NODE\` - Update node properties
664794
- - \`MOVE_NODE\` - Move a node to different location
664795
-
664796
- 3. **Check input schemas** for each operation to ensure you're passing correct parameters
664797
- `.raw;
664798
- // ../../packages/codegen/dist/src/templates/boilerplate/CLAUDE.md.js
664799
- var claudeTemplate = md`
664800
- # Powerhouse Document Models Assistant
664801
-
664802
- This project creates document models, editors, processors and subgraphs for the Powerhouse ecosystem. Your role is to help users create these modules based on their needs.
664803
-
664804
- ## Core Concepts
664805
-
664806
- - **Document Model**: A template for creating documents. Defines schema and allowed operations for a document type.
664807
- - **Document**: An instance of a document model containing actual data that follows the model's structure and can be modified using operations.
664808
- - **Drive**: A document of type "powerhouse/document-drive" representing a collection of documents and folders. Add documents using "addActions" with "ADD_FILE" action.
664809
- - **Action**: A proposed change to a document (JSON object with action name and input). Dispatch using "addActions" tool.
664810
- - **Operation**: A completed change to a document containing the action plus metadata (index, timestamp, hash, errors). Actions become operations after dispatch.
664811
-
664812
- ## CRITICAL: MCP Tool Usage Rules
664813
-
664814
- **MANDATORY**: The \`reactor-mcp\` MUST BE USED when handling documents or document-models for the Powerhouse/Vetra ecosystem.
664815
- If the \`reactor-mcp\` server is unavailable, ask the user to run \`ph vetra\` on a separate terminal to start the server and try to reconnect to the MCP server, DO NOT run it yourself.
664816
-
664817
- ### Key Requirements:
664818
-
664819
- - Never set document IDs manually - they're auto-generated by 'createDocument'
664820
- - Minimize "addActions" calls by batching multiple actions together
664821
- - Add new document model documents to "vetra-{hash}" drive unless specified otherwise
664822
- - Always check document model schema before calling addActions
664823
- - Use MCP tools for ALL document and document-model operations
664824
-
664825
- ## Document Model Creation Workflow
664826
-
664827
- ### 1. Planning Phase
664828
-
664829
- **MANDATORY**: Present your proposal to the user and ask for confirmation before implementing ANY document model.
664830
-
664831
- - **ALWAYS** describe the proposed document model structure (state schema, operations, modules) before creating
664832
- - **NEVER** proceed with implementation without explicit user approval of your proposal
664833
- - When in doubt, ask for clarification
664834
- - Break complex models into logical modules and operations
664835
-
664836
- ### 2. Pre-Implementation Requirements
664837
-
664838
- **MANDATORY**: Check document model schema before making any MCP tool calls.
664839
-
664840
- - **ALWAYS** use \`mcp__reactor-mcp__getDocumentModelSchema\` with \`type: "powerhouse/document-model"\` first
664841
- - Review input schema requirements for operations like \`ADD_MODULE\`, \`ADD_OPERATION\`, etc.
664842
- - Ensure all required parameters (like \`id\` or \`scope\` fields) are included in action inputs
664843
- - This prevents failed tool calls and reduces iteration
664844
-
664845
- ### 3. Implementation Requirements
664846
-
664847
- - Document model reducers must be **pure synchronous functions**
664848
- - Reducers receive current state and operation, always returning the same result
664849
- - Values like dates/IDs must come from operation input, not generated in reducer
664850
- - Reducer code goes into SET_OPERATION_REDUCER action (no function header needed)
664851
- - Reducers are wrapped with Mutative - you can mutate the state object directly
664852
- - External imports go at the beginning of the actual reducer file in \`src/\`
664853
- - Ensure that the reducer code of each operation in the document model schema is applied in \`document-models/<document-model-name>/src/reducers/<module-name>.ts\`
664854
-
664855
- ### 4. Quality assurance
664856
-
664857
- After doing changes to the code, or after creating a new document model or a new editor, _YOU MUST RUN_ the following commands to check for errors in your implementation:
664858
-
664859
- - **TypeScript Check**: Run \`npm run tsc\` to validate type safety
664860
- - **ESLint Check**: Run \`npm run lint:fix\` to check for errors with ESLint
664861
-
664862
- ## Document editor creation flow
664863
-
664864
- When the user requests to create or make changes on a document editor, follow these steps:
664865
-
664866
- - Check if the document editor already exists and if it does, ask the user if a new one should be created or if the existing one should be reimplemented
664867
- - If it's a new editor, create a new editor document on the "vetra-{hash}" drive if available, of type \`powerhouse/document-editor\`
664868
- - Check the document editor schema and comply with it
664869
- - After adding the editor document to the \`vetra-{hash}\` drive, a new editor will be generated in the \`editors\` folder
664870
- - Inspect the hooks in \`editors/hooks\` as they should be useful
664871
- - Read the schema of the document model that the editor is for to know how to interact with it
664872
- - Style the editor using tailwind classes or a style tag. If using a style tag, make sure to make the selectors specific to only apply to the editor component.
664873
- - Create modular components for the UI elements and place them on separate files to make it easier to maintain and update
664874
- - Consider using the React Components exported by \`@powerhousedao/design-system\` and \`@powerhousedao/document-engineering\`
664875
- - Separate business logic from presentation logic
664876
- - Use TypeScript for type safety, avoid using any and type casting
664877
- - Always check for type and lint errors after creating or modifying the editor
664878
-
664879
- ### Document Editor Implementation Pattern
664880
-
664881
- **CRITICAL**: When implementing document editors, use the modern React hooks pattern from \`@powerhousedao/reactor-browser\`.
664882
-
664883
- The following section is valid for editors that edit a single document type.
664884
-
664885
- #### Required Imports and Setup
664886
-
664887
- Using a "Todo" document model as example:
664888
-
664889
- ~~~typescript
664890
- import { generateId } from "document-model/core";
664891
- import { useSelectedTodoDocument } from "../hooks/useTodoDocument.js";
664892
- import {
664893
- addTodo,
664894
- } from "../../document-models/todo/gen/creators.js";
664895
-
664896
- export default function Editor() {
664897
- const [document, dispatch] = useSelectedTodoDocument();
664898
-
664899
- function handleAddTodo(values: { title: string }) {
664900
- if (values.title) {
664901
- dispatch(addTodo({ id: generateId(), title: values.title }));
664902
- }
664903
- };
664904
- ~~~
664905
-
664906
- The \`useSelectedTodoDocument\` gets generated automatically so you don't need to implement it yourself.
664907
-
664908
- ## ⚠️ CRITICAL: Generated Files & Modification Rules
664909
-
664910
- ### Generated Files Rule
664911
-
664912
- **NEVER edit files in \`gen/\` folders** - they are auto-generated and will be overwritten.
664913
-
664914
- ### Document Model Modification Process
664915
-
664916
- For ANY document model changes, follow this **mandatory** two-step process:
664917
-
664918
- #### Step 1: Update Document Model via MCP
664919
-
664920
- Use \`mcp__reactor-mcp__addActions\` with operations like:
664921
-
664922
- - \`SET_OPERATION_SCHEMA\` - update input/output schemas
664923
- - \`SET_OPERATION_REDUCER\` - update reducer code
664924
- - \`SET_STATE_SCHEMA\` - update state definitions
664925
-
664926
- #### Step 2: Update Existing Source Files
664927
-
664928
- **ALSO manually update existing reducer files in \`src/\` folder** - these are NOT auto-generated.
664929
- Make sure to check if the operation reducer code needs to be updated after changing the state schema.
664930
-
664931
- ### ⚠️ Critical Reminder
664932
-
664933
- **ALWAYS do BOTH steps when fixing reducer issues:**
664934
-
664935
- 1. ✅ Fix existing reducer files in \`src/\` manually
664936
- 2. ✅ Update document model via MCP with same fixes
664937
-
664938
- **Forgetting step 2 means future code generations will still contain the bugs!**
664939
-
664940
- ## Reducer Implementation Guidelines
664941
-
664942
- ### ❌ Forbidden in Reducers (Non-Deterministic)
664943
-
664944
- - \`crypto.randomUUID()\`, \`Math.random()\`, \`Date.now()\`, \`new Date()\`
664945
- - External API calls or side effects
664946
- - Asynchronous functions
664947
- - Any non-deterministic functions
664948
-
664949
- ### ❌ Forbidden Patterns
664950
-
664951
- ~~~typescript
664952
- // NEVER use fallback values with non-deterministic functions
664953
- id: action.input.id || crypto.randomUUID(); // ❌ FORBIDDEN
664954
- timestamp: action.input.timestamp || new Date(); // ❌ FORBIDDEN
664955
- ~~~
664956
-
664957
- ### ✅ Required Pattern
664958
-
664959
- All dynamic values must come from action input:
664960
-
664961
- - **IDs**: Include \`id: OID!\` in input schema, use \`action.input.id\` in reducer
664962
- - **Timestamps**: Include \`timestamp: DateTime!\` in input schema
664963
- - **Computed values**: Calculate before dispatching action
664964
-
664965
- ### Example
664966
-
664967
- ~~~typescript
664968
- // ❌ BAD - impure reducer
664969
- const newItem = {
664970
- id: crypto.randomUUID(), // Non-deterministic
664971
- createdAt: new Date(), // Non-deterministic
664972
- };
664973
-
664974
- // ✅ GOOD - pure reducer
664975
- const newItem = {
664976
- id: action.input.id, // From action input
664977
- createdAt: action.input.createdAt, // From action input
664978
- };
664979
- ~~~
664980
-
664981
- ### Handling Nullable Input Types
664982
-
664983
- **CRITICAL**: Be careful when handling optional input types:
664984
-
664985
- - Optional input types use \`InputMaybe<T>\` allowing \`null | undefined | T\`.
664986
- - Optional state types use \`Maybe<T>\` = \`T | null\`.
664987
- - If there is no applicable default value then use \`|| null\`.
664988
-
664989
- ~~~typescript
664990
- // ❌ BAD - Type error with Maybe<string>
664991
- amount: action.input.amount,
664992
- notes: action.input.notes,
664993
-
664994
- // ✅ GOOD - Matches Maybe<T> = T | null
664995
- amount: action.input.amount || null,
664996
- notes: action.input.notes || [],
664997
- ~~~
664998
-
664999
- Use truthy checks when conditionally assigning optional values from input to state:
665000
-
665001
- ~~~typescript
665002
- // ❌ BAD - Type 'string | null' is not assignable to type 'string'.
665003
- if (action.input.field !== undefined) entry.field = action.input.field;
664657
+ #### Testing Reducer Errors
665004
664658
 
665005
- // GOOD - use truthy checks
665006
- if (action.input.field) state.field = action.input.field;
664659
+ **CRITICAL**: When a reducer throws an error, the operation is **still added** to the document but with an \`.error\` property containing the error message as a string.
665007
664660
 
665008
- // GOOD - For booleans use explicit null/undefined checks
665009
- if (action.input.field !== undefined && action.input.field !== null)
665010
- state.field = action.input.field;
665011
- ~~~
664661
+ **DO NOT** use \`.toThrow()\` or \`expect(() => ...).toThrow()\` patterns when testing reducer errors.
665012
664662
 
665013
- ### Error Handling in Operations
664663
+ ##### How Errors Work in Operations
665014
664664
 
665015
- **MANDATORY**: Define specific error types for each operation to handle invalid inputs and edge cases properly.
665016
- Action inputs are validated so they are guaranteed to respect the input schema.
665017
- Errors referenced in the reducer code will be imported automatically.
664665
+ 1. The reducer throws an error (e.g., \`throw new InvalidNameError("message")\`)
664666
+ 2. The operation is still recorded in \`document.operations.global\` (or \`.local\`)
664667
+ 3. The error message is stored in \`operation.error\` as a string
664668
+ 4. **The state is NOT mutated** - it remains unchanged from before the operation
665018
664669
 
665019
- #### Error Definition Requirements
665020
-
665021
- 1. **Add error definitions** to operations using \`ADD_OPERATION_ERROR\`:
665022
- - \`code\`: Uppercase snake_case (e.g., \`"MISSING_ID"\`, \`"ENTRY_NOT_FOUND"\`)
665023
- - \`name\`: PascalCase ending with "Error" (e.g., \`"MissingIdError"\`, \`"EntryNotFoundError"\`)
665024
- - \`description\`: Human-readable description of the error condition
664670
+ ##### Accessing the Correct Operation Index
665025
664671
 
665026
- 2. **Error names must end with "Error"** for consistency and code generation
665027
-
665028
- 3. **Use specific error types** rather than generic validation
664672
+ **CRITICAL**: You must access the correct operation index. The index corresponds to how many operations were dispatched before it.
665029
664673
 
665030
- 4. **Must use unique error names and ids**
664674
+ - If this is the **first** operation dispatched, access \`[0]\`
664675
+ - If 3 operations were dispatched **before** the failing one, access \`[3]\`
665031
664676
 
665032
- #### Error Usage in Reducers
664677
+ ##### Example
665033
664678
 
665034
664679
  ~~~typescript
665035
- // GOOD - Throw specific errors by name
665036
- if (!action.input.id) {
665037
- throw new MissingIdError("ID is required for operation");
665038
- }
664680
+ it("should return error and not mutate state", () => {
664681
+ const document = utils.createDocument();
664682
+ const initialState = document.state.global.name;
665039
664683
 
665040
- if (entryIndex === -1) {
665041
- throw new EntryNotFoundError(\`Entry not found\`);
665042
- }
664684
+ const updatedDocument = reducer(document, setName({ name: "invalid" }));
665043
664685
 
665044
- // BAD - Generic Error
665045
- throw new Error("Something went wrong");
665046
-
665047
- // ❌ BAD - Nested error access
665048
- throw new errors.ModuleName.MissingIdError("message");
665049
-
665050
- // ❌ BAD - Do not import error classes in the reducer code,
665051
- import { MissingIdError } from "../../gen/module-name/error.js";
664686
+ // Access the correct operation index (0 = first operation)
664687
+ expect(updatedDocument.operations.global[0].error).toBe(
664688
+ "Name is not allowed",
664689
+ );
664690
+ // State remains unchanged
664691
+ expect(updatedDocument.state.global.name).toBe(initialState);
664692
+ });
665052
664693
 
665053
- // GOOD - Simply reference the error and it will be imported automatically
665054
- throw new MissingIdError("message");
664694
+ // WRONG - Never use toThrow()
664695
+ expect(() => reducer(document, setName({ name: "invalid" }))).toThrow();
665055
664696
  ~~~
665056
664697
 
665057
- #### Common Error Patterns
665058
-
665059
- - **EntityNotFoundError**: Referenced entity doesn't exist
665060
- - **DuplicateIdError**: ID already exists when creating new entries
665061
- - **InvalidInputError**: Business logic violations
665062
- - **PermissionDeniedError**: Access control violations
665063
-
665064
664698
  ## Document Model Structure
665065
664699
 
665066
664700
  ### Core Components
@@ -666222,7 +665856,6 @@ var devDependenciesTemplate = (versionedDevDependencies) => json`
666222
665856
  "@electric-sql/pglite": "^0.2.12",
666223
665857
  "@eslint/js": "^9.38.0",
666224
665858
  "@powerhousedao/analytics-engine-core": "^0.5.0",
666225
- "@powerhousedao/scalars": "^2.0.1",
666226
665859
  "@tailwindcss/cli": "^4.1.4",
666227
665860
  "@testing-library/react": "^16.3.0",
666228
665861
  "@types/node": "^24.9.2",
@@ -666364,7 +665997,7 @@ var import_ts_morph = __toESM(require_ts_morph(), 1);
666364
665997
  // ../../packages/codegen/dist/src/utils/format-with-prettier.js
666365
665998
  init_prettier();
666366
665999
  async function runPrettier() {
666367
- await spawnAsync("prettier", ["--write", "."]);
666000
+ await spawnAsync("npx", ["prettier", "--write", "."]);
666368
666001
  }
666369
666002
  // ../../node_modules/.pnpm/zocker@3.0.0_zod@4.3.5/node_modules/zocker/dist/index.cjs
666370
666003
  var __create3 = Object.create;
@@ -671373,13 +671006,13 @@ var federationSpec = import_graphql9.parse(`
671373
671006
  var getCachedDocumentNodeFromSchema = memoize1(getDocumentNodeFromSchema);
671374
671007
  // ../../node_modules/.pnpm/@graphql-codegen+plugin-helpers@6.1.0_graphql@16.12.0/node_modules/@graphql-codegen/plugin-helpers/esm/resolve-external-module-and-fn.js
671375
671008
  var changeCaseAll = __toESM(require_dist22(), 1);
671376
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/config.js
671009
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/config.js
671377
671010
  var import_cosmiconfig = __toESM(require_dist23(), 1);
671378
671011
 
671379
671012
  // ../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs
671380
671013
  var import_jiti = __toESM(require_jiti(), 1);
671381
671014
 
671382
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/config.js
671015
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/config.js
671383
671016
  var import_yaml = __toESM(require_dist24(), 1);
671384
671017
 
671385
671018
  // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/lib/platform-shims/esm.mjs
@@ -673610,14 +673243,14 @@ function usage(yargs, shim2) {
673610
673243
  const logger = yargs.getInternalMethods().getLoggerInstance();
673611
673244
  if (fails.length) {
673612
673245
  for (let i4 = fails.length - 1;i4 >= 0; --i4) {
673613
- const fail = fails[i4];
673614
- if (isBoolean(fail)) {
673246
+ const fail2 = fails[i4];
673247
+ if (isBoolean(fail2)) {
673615
673248
  if (err)
673616
673249
  throw err;
673617
673250
  else if (msg)
673618
673251
  throw Error(msg);
673619
673252
  } else {
673620
- fail(msg, err, self2);
673253
+ fail2(msg, err, self2);
673621
673254
  }
673622
673255
  }
673623
673256
  } else {
@@ -673674,7 +673307,7 @@ function usage(yargs, shim2) {
673674
673307
  examples.push([cmd, description || ""]);
673675
673308
  };
673676
673309
  let commands = [];
673677
- self2.command = function command(cmd, description, isDefault, aliases, deprecated = false) {
673310
+ self2.command = function command2(cmd, description, isDefault, aliases, deprecated = false) {
673678
673311
  if (isDefault) {
673679
673312
  commands = commands.map((cmdArray) => {
673680
673313
  cmdArray[2] = false;
@@ -676231,7 +675864,7 @@ function isYargsInstance(y25) {
676231
675864
  // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/index.mjs
676232
675865
  var Yargs = YargsFactory(esm_default);
676233
675866
 
676234
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/generate-and-save.js
675867
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/generate-and-save.js
676235
675868
  var import_log_symbols2 = __toESM(require_log_symbols(), 1);
676236
675869
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
676237
675870
  var import__3 = __toESM(require_eventemitter3(), 1);
@@ -678135,7 +677768,7 @@ var Listr = class {
678135
677768
  }
678136
677769
  };
678137
677770
 
678138
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/utils/logger.js
677771
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/utils/logger.js
678139
677772
  var import_ts_log = __toESM(require_src3(), 1);
678140
677773
  var logger;
678141
677774
  useWinstonLogger();
@@ -678146,7 +677779,7 @@ function useWinstonLogger() {
678146
677779
  logger = console;
678147
677780
  }
678148
677781
 
678149
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/utils/debugging.js
677782
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/utils/debugging.js
678150
677783
  var queue = [];
678151
677784
  function debugLog(message, ...meta) {
678152
677785
  queue.push({
@@ -678155,22 +677788,22 @@ function debugLog(message, ...meta) {
678155
677788
  });
678156
677789
  }
678157
677790
 
678158
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/codegen.js
678159
- var __dirname = "/home/runner/work/powerhouse/powerhouse/node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm";
677791
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/codegen.js
677792
+ var __dirname = "/home/runner/work/powerhouse/powerhouse/node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm";
678160
677793
 
678161
677794
  // ../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js
678162
677795
  var $quote = require_quote();
678163
677796
  var $parse = require_parse7();
678164
677797
 
678165
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/utils/watcher.js
677798
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/utils/watcher.js
678166
677799
  var import_micromatch3 = __toESM(require_micromatch(), 1);
678167
677800
  var import_log_symbols = __toESM(require_log_symbols(), 1);
678168
677801
 
678169
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/utils/patterns.js
677802
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/utils/patterns.js
678170
677803
  var import_is_glob = __toESM(require_is_glob(), 1);
678171
677804
  var import_micromatch2 = __toESM(require_micromatch(), 1);
678172
677805
 
678173
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/utils/abort-controller-polyfill.js
677806
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/utils/abort-controller-polyfill.js
678174
677807
  import { EventEmitter as EventEmitter2 } from "events";
678175
677808
  class AbortSignalPolyfill {
678176
677809
  eventEmitter;
@@ -678246,14 +677879,14 @@ class AbortControllerPolyfill {
678246
677879
  }
678247
677880
  var AbortController = global.AbortController ?? AbortControllerPolyfill;
678248
677881
 
678249
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/init/helpers.js
677882
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/init/helpers.js
678250
677883
  var import_generator = __toESM(require_lib11(), 1);
678251
677884
  var import_template = __toESM(require_lib12(), 1);
678252
677885
  var t59 = __toESM(require_lib10(), 1);
678253
677886
  var import_chalk = __toESM(require_source2(), 1);
678254
677887
  var import_detect_indent = __toESM(require_detect_indent(), 1);
678255
677888
 
678256
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/init/types.js
677889
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/init/types.js
678257
677890
  var Tags;
678258
677891
  (function(Tags2) {
678259
677892
  Tags2["client"] = "Browser";
@@ -678267,12 +677900,12 @@ var Tags;
678267
677900
  Tags2["graphqlRequest"] = "graphqlRequest";
678268
677901
  })(Tags || (Tags = {}));
678269
677902
 
678270
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/init/helpers.js
677903
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/init/helpers.js
678271
677904
  function italic2(str2) {
678272
677905
  return import_chalk.default.italic(str2);
678273
677906
  }
678274
677907
 
678275
- // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_6c251f9655bb20d3e3d5fd40cf1fcba1/node_modules/@graphql-codegen/cli/esm/init/plugins.js
677908
+ // ../../node_modules/.pnpm/@graphql-codegen+cli@6.1.0_@parcel+watcher@2.5.1_@types+node@24.10.0_bufferutil@4.0.9_c_b56a165b8b5cacbe5d4b03402baab265/node_modules/@graphql-codegen/cli/esm/init/plugins.js
678276
677909
  var plugins = [
678277
677910
  {
678278
677911
  name: `TypeScript ${italic2("(required by other typescript plugins)")}`,
@@ -693287,7 +692920,7 @@ async function writeProjectRootFiles(args) {
693287
692920
  await writeFileEnsuringDir("powerhouse.config.json", powerhouseConfig);
693288
692921
  await writeFileEnsuringDir("package.json", packageJson);
693289
692922
  await writeFileEnsuringDir("tsconfig.json", tsConfigTemplate);
693290
- await writeFileEnsuringDir("index.html", legacyIndexHtmlTemplate);
692923
+ await writeFileEnsuringDir("index.html", indexHtmlTemplate);
693291
692924
  await writeFileEnsuringDir("eslint.config.js", eslintConfigTemplate);
693292
692925
  await writeFileEnsuringDir("index.ts", indexTsTemplate);
693293
692926
  await writeFileEnsuringDir("style.css", styleTemplate);
@@ -693303,7 +692936,7 @@ async function writeModuleFiles() {
693303
692936
  await writeFileEnsuringDir("subgraphs/index.ts", subgraphsIndexTemplate);
693304
692937
  }
693305
692938
  async function writeAiConfigFiles() {
693306
- await writeFileEnsuringDir("CLAUDE.md", claudeTemplate);
692939
+ await writeFileEnsuringDir("CLAUDE.md", agentsTemplate);
693307
692940
  await writeFileEnsuringDir("AGENTS.md", agentsTemplate);
693308
692941
  await writeFileEnsuringDir(".mcp.json", mcpTemplate);
693309
692942
  await writeFileEnsuringDir(".gemini/settings.json", geminiSettingsTemplate);