ph-cmd 6.0.0-dev.58 → 6.0.0-dev.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/cli.js CHANGED
@@ -187623,7 +187623,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
187623
187623
  } });
187624
187624
  });
187625
187625
 
187626
- // ../../node_modules/.pnpm/@isaacs+balanced-match@4.0.1/node_modules/@isaacs/balanced-match/dist/commonjs/index.js
187626
+ // ../../node_modules/.pnpm/balanced-match@4.0.2/node_modules/balanced-match/dist/commonjs/index.js
187627
187627
  var require_commonjs2 = __commonJS((exports) => {
187628
187628
  Object.defineProperty(exports, "__esModule", { value: true });
187629
187629
  exports.range = exports.balanced = undefined;
@@ -187682,9 +187682,10 @@ var require_commonjs2 = __commonJS((exports) => {
187682
187682
  exports.range = range;
187683
187683
  });
187684
187684
 
187685
- // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js
187685
+ // ../../node_modules/.pnpm/brace-expansion@5.0.2/node_modules/brace-expansion/dist/commonjs/index.js
187686
187686
  var require_commonjs3 = __commonJS((exports) => {
187687
187687
  Object.defineProperty(exports, "__esModule", { value: true });
187688
+ exports.EXPANSION_MAX = undefined;
187688
187689
  exports.expand = expand;
187689
187690
  var balanced_match_1 = require_commonjs2();
187690
187691
  var escSlash = "\x00SLASH" + Math.random() + "\x00";
@@ -187702,6 +187703,7 @@ var require_commonjs3 = __commonJS((exports) => {
187702
187703
  var closePattern = /\\}/g;
187703
187704
  var commaPattern = /\\,/g;
187704
187705
  var periodPattern = /\\./g;
187706
+ exports.EXPANSION_MAX = 1e5;
187705
187707
  function numeric(str2) {
187706
187708
  return !isNaN(str2) ? parseInt(str2, 10) : str2.charCodeAt(0);
187707
187709
  }
@@ -187731,14 +187733,15 @@ var require_commonjs3 = __commonJS((exports) => {
187731
187733
  parts.push.apply(parts, p);
187732
187734
  return parts;
187733
187735
  }
187734
- function expand(str2) {
187736
+ function expand(str2, options = {}) {
187735
187737
  if (!str2) {
187736
187738
  return [];
187737
187739
  }
187740
+ const { max = exports.EXPANSION_MAX } = options;
187738
187741
  if (str2.slice(0, 2) === "{}") {
187739
187742
  str2 = "\\{\\}" + str2.slice(2);
187740
187743
  }
187741
- return expand_(escapeBraces(str2), true).map(unescapeBraces);
187744
+ return expand_(escapeBraces(str2), max, true).map(unescapeBraces);
187742
187745
  }
187743
187746
  function embrace(str2) {
187744
187747
  return "{" + str2 + "}";
@@ -187752,15 +187755,15 @@ var require_commonjs3 = __commonJS((exports) => {
187752
187755
  function gte(i, y) {
187753
187756
  return i >= y;
187754
187757
  }
187755
- function expand_(str2, isTop) {
187758
+ function expand_(str2, max, isTop) {
187756
187759
  const expansions = [];
187757
187760
  const m = (0, balanced_match_1.balanced)("{", "}", str2);
187758
187761
  if (!m)
187759
187762
  return [str2];
187760
187763
  const pre = m.pre;
187761
- const post = m.post.length ? expand_(m.post, false) : [""];
187764
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
187762
187765
  if (/\$$/.test(m.pre)) {
187763
- for (let k = 0;k < post.length; k++) {
187766
+ for (let k = 0;k < post.length && k < max; k++) {
187764
187767
  const expansion = pre + "{" + m.body + "}" + post[k];
187765
187768
  expansions.push(expansion);
187766
187769
  }
@@ -187772,7 +187775,7 @@ var require_commonjs3 = __commonJS((exports) => {
187772
187775
  if (!isSequence && !isOptions) {
187773
187776
  if (m.post.match(/,(?!,).*\}/)) {
187774
187777
  str2 = m.pre + "{" + m.body + escClose + m.post;
187775
- return expand_(str2);
187778
+ return expand_(str2, max, true);
187776
187779
  }
187777
187780
  return [str2];
187778
187781
  }
@@ -187782,7 +187785,7 @@ var require_commonjs3 = __commonJS((exports) => {
187782
187785
  } else {
187783
187786
  n = parseCommaParts(m.body);
187784
187787
  if (n.length === 1 && n[0] !== undefined) {
187785
- n = expand_(n[0], false).map(embrace);
187788
+ n = expand_(n[0], max, false).map(embrace);
187786
187789
  if (n.length === 1) {
187787
187790
  return post.map((p) => m.pre + n[0] + p);
187788
187791
  }
@@ -187828,11 +187831,11 @@ var require_commonjs3 = __commonJS((exports) => {
187828
187831
  } else {
187829
187832
  N = [];
187830
187833
  for (let j = 0;j < n.length; j++) {
187831
- N.push.apply(N, expand_(n[j], false));
187834
+ N.push.apply(N, expand_(n[j], max, false));
187832
187835
  }
187833
187836
  }
187834
187837
  for (let j = 0;j < N.length; j++) {
187835
- for (let k = 0;k < post.length; k++) {
187838
+ for (let k = 0;k < post.length && expansions.length < max; k++) {
187836
187839
  const expansion = pre + N[j] + post[k];
187837
187840
  if (!isTop || isSequence || expansion) {
187838
187841
  expansions.push(expansion);
@@ -187844,7 +187847,7 @@ var require_commonjs3 = __commonJS((exports) => {
187844
187847
  }
187845
187848
  });
187846
187849
 
187847
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
187850
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
187848
187851
  var require_assert_valid_pattern = __commonJS((exports) => {
187849
187852
  Object.defineProperty(exports, "__esModule", { value: true });
187850
187853
  exports.assertValidPattern = undefined;
@@ -187860,7 +187863,7 @@ var require_assert_valid_pattern = __commonJS((exports) => {
187860
187863
  exports.assertValidPattern = assertValidPattern;
187861
187864
  });
187862
187865
 
187863
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/brace-expressions.js
187866
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/brace-expressions.js
187864
187867
  var require_brace_expressions = __commonJS((exports) => {
187865
187868
  Object.defineProperty(exports, "__esModule", { value: true });
187866
187869
  exports.parseClass = undefined;
@@ -187975,7 +187978,7 @@ var require_brace_expressions = __commonJS((exports) => {
187975
187978
  exports.parseClass = parseClass;
187976
187979
  });
187977
187980
 
187978
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/unescape.js
187981
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/unescape.js
187979
187982
  var require_unescape = __commonJS((exports) => {
187980
187983
  Object.defineProperty(exports, "__esModule", { value: true });
187981
187984
  exports.unescape = undefined;
@@ -187988,7 +187991,7 @@ var require_unescape = __commonJS((exports) => {
187988
187991
  exports.unescape = unescape;
187989
187992
  });
187990
187993
 
187991
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/ast.js
187994
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/ast.js
187992
187995
  var require_ast = __commonJS((exports) => {
187993
187996
  Object.defineProperty(exports, "__esModule", { value: true });
187994
187997
  exports.AST = undefined;
@@ -188347,6 +188350,7 @@ var require_ast = __commonJS((exports) => {
188347
188350
  let escaping = false;
188348
188351
  let re = "";
188349
188352
  let uflag = false;
188353
+ let inStar = false;
188350
188354
  for (let i = 0;i < glob.length; i++) {
188351
188355
  const c2 = glob.charAt(i);
188352
188356
  if (escaping) {
@@ -188354,6 +188358,16 @@ var require_ast = __commonJS((exports) => {
188354
188358
  re += (reSpecials.has(c2) ? "\\" : "") + c2;
188355
188359
  continue;
188356
188360
  }
188361
+ if (c2 === "*") {
188362
+ if (inStar)
188363
+ continue;
188364
+ inStar = true;
188365
+ re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
188366
+ hasMagic = true;
188367
+ continue;
188368
+ } else {
188369
+ inStar = false;
188370
+ }
188357
188371
  if (c2 === "\\") {
188358
188372
  if (i === glob.length - 1) {
188359
188373
  re += "\\\\";
@@ -188372,11 +188386,6 @@ var require_ast = __commonJS((exports) => {
188372
188386
  continue;
188373
188387
  }
188374
188388
  }
188375
- if (c2 === "*") {
188376
- re += noEmpty && glob === "*" ? starNoEmpty : star;
188377
- hasMagic = true;
188378
- continue;
188379
- }
188380
188389
  if (c2 === "?") {
188381
188390
  re += qmark;
188382
188391
  hasMagic = true;
@@ -188390,7 +188399,7 @@ var require_ast = __commonJS((exports) => {
188390
188399
  exports.AST = AST;
188391
188400
  });
188392
188401
 
188393
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/escape.js
188402
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/escape.js
188394
188403
  var require_escape = __commonJS((exports) => {
188395
188404
  Object.defineProperty(exports, "__esModule", { value: true });
188396
188405
  exports.escape = undefined;
@@ -188403,7 +188412,7 @@ var require_escape = __commonJS((exports) => {
188403
188412
  exports.escape = escape;
188404
188413
  });
188405
188414
 
188406
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/index.js
188415
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/index.js
188407
188416
  var require_commonjs4 = __commonJS((exports) => {
188408
188417
  Object.defineProperty(exports, "__esModule", { value: true });
188409
188418
  exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = undefined;
@@ -188528,7 +188537,7 @@ var require_commonjs4 = __commonJS((exports) => {
188528
188537
  if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
188529
188538
  return [pattern];
188530
188539
  }
188531
- return (0, brace_expansion_1.expand)(pattern);
188540
+ return (0, brace_expansion_1.expand)(pattern, { max: options.braceExpandMax });
188532
188541
  };
188533
188542
  exports.braceExpand = braceExpand;
188534
188543
  exports.minimatch.braceExpand = exports.braceExpand;
@@ -188573,7 +188582,8 @@ var require_commonjs4 = __commonJS((exports) => {
188573
188582
  this.pattern = pattern;
188574
188583
  this.platform = options.platform || defaultPlatform;
188575
188584
  this.isWindows = this.platform === "win32";
188576
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
188585
+ const awe = "allowWindow" + "sEscape";
188586
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false;
188577
188587
  if (this.windowsPathsNoEscape) {
188578
188588
  this.pattern = this.pattern.replace(/\\/g, "/");
188579
188589
  }
@@ -188629,7 +188639,10 @@ var require_commonjs4 = __commonJS((exports) => {
188629
188639
  const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
188630
188640
  const isDrive = /^[a-z]:/i.test(s[0]);
188631
188641
  if (isUNC) {
188632
- return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
188642
+ return [
188643
+ ...s.slice(0, 4),
188644
+ ...s.slice(4).map((ss) => this.parse(ss))
188645
+ ];
188633
188646
  } else if (isDrive) {
188634
188647
  return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
188635
188648
  }
@@ -188873,7 +188886,10 @@ var require_commonjs4 = __commonJS((exports) => {
188873
188886
  const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
188874
188887
  const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
188875
188888
  if (typeof fdi === "number" && typeof pdi === "number") {
188876
- const [fd, pd] = [file[fdi], pattern[pdi]];
188889
+ const [fd, pd] = [
188890
+ file[fdi],
188891
+ pattern[pdi]
188892
+ ];
188877
188893
  if (fd.toLowerCase() === pd.toLowerCase()) {
188878
188894
  pattern[pdi] = fd;
188879
188895
  if (pdi > fdi) {
@@ -575165,7 +575181,7 @@ var devDependenciesTemplate = (versionedDevDependencies) => json`
575165
575181
  `)},
575166
575182
  "@electric-sql/pglite": "^0.2.12",
575167
575183
  "@eslint/js": "^9.38.0",
575168
- "@powerhousedao/analytics-engine-core": "^0.5.0",
575184
+ "@powerhousedao/analytics-engine-core": "0.6.4",
575169
575185
  "@tailwindcss/cli": "^4.1.4",
575170
575186
  "@testing-library/react": "^16.3.0",
575171
575187
  "@types/node": "^24.9.2",
@@ -603886,7 +603902,7 @@ var use = import_cmd_ts16.command({
603886
603902
  });
603887
603903
 
603888
603904
  // src/commands/ph.ts
603889
- var phCmdVersionInfo = await getPhCmdVersionInfo("6.0.0-dev.57");
603905
+ var phCmdVersionInfo = await getPhCmdVersionInfo("6.0.0-dev.58");
603890
603906
  var ph = import_cmd_ts17.subcommands({
603891
603907
  name: "ph",
603892
603908
  version: phCmdVersionInfo,
package/build/cli.old.js CHANGED
@@ -187031,7 +187031,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
187031
187031
  } });
187032
187032
  });
187033
187033
 
187034
- // ../../node_modules/.pnpm/@isaacs+balanced-match@4.0.1/node_modules/@isaacs/balanced-match/dist/commonjs/index.js
187034
+ // ../../node_modules/.pnpm/balanced-match@4.0.2/node_modules/balanced-match/dist/commonjs/index.js
187035
187035
  var require_commonjs2 = __commonJS((exports) => {
187036
187036
  Object.defineProperty(exports, "__esModule", { value: true });
187037
187037
  exports.range = exports.balanced = undefined;
@@ -187090,9 +187090,10 @@ var require_commonjs2 = __commonJS((exports) => {
187090
187090
  exports.range = range;
187091
187091
  });
187092
187092
 
187093
- // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js
187093
+ // ../../node_modules/.pnpm/brace-expansion@5.0.2/node_modules/brace-expansion/dist/commonjs/index.js
187094
187094
  var require_commonjs3 = __commonJS((exports) => {
187095
187095
  Object.defineProperty(exports, "__esModule", { value: true });
187096
+ exports.EXPANSION_MAX = undefined;
187096
187097
  exports.expand = expand;
187097
187098
  var balanced_match_1 = require_commonjs2();
187098
187099
  var escSlash = "\x00SLASH" + Math.random() + "\x00";
@@ -187110,6 +187111,7 @@ var require_commonjs3 = __commonJS((exports) => {
187110
187111
  var closePattern = /\\}/g;
187111
187112
  var commaPattern = /\\,/g;
187112
187113
  var periodPattern = /\\./g;
187114
+ exports.EXPANSION_MAX = 1e5;
187113
187115
  function numeric(str2) {
187114
187116
  return !isNaN(str2) ? parseInt(str2, 10) : str2.charCodeAt(0);
187115
187117
  }
@@ -187139,14 +187141,15 @@ var require_commonjs3 = __commonJS((exports) => {
187139
187141
  parts.push.apply(parts, p);
187140
187142
  return parts;
187141
187143
  }
187142
- function expand(str2) {
187144
+ function expand(str2, options = {}) {
187143
187145
  if (!str2) {
187144
187146
  return [];
187145
187147
  }
187148
+ const { max = exports.EXPANSION_MAX } = options;
187146
187149
  if (str2.slice(0, 2) === "{}") {
187147
187150
  str2 = "\\{\\}" + str2.slice(2);
187148
187151
  }
187149
- return expand_(escapeBraces(str2), true).map(unescapeBraces);
187152
+ return expand_(escapeBraces(str2), max, true).map(unescapeBraces);
187150
187153
  }
187151
187154
  function embrace(str2) {
187152
187155
  return "{" + str2 + "}";
@@ -187160,15 +187163,15 @@ var require_commonjs3 = __commonJS((exports) => {
187160
187163
  function gte(i, y) {
187161
187164
  return i >= y;
187162
187165
  }
187163
- function expand_(str2, isTop) {
187166
+ function expand_(str2, max, isTop) {
187164
187167
  const expansions = [];
187165
187168
  const m = (0, balanced_match_1.balanced)("{", "}", str2);
187166
187169
  if (!m)
187167
187170
  return [str2];
187168
187171
  const pre = m.pre;
187169
- const post = m.post.length ? expand_(m.post, false) : [""];
187172
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
187170
187173
  if (/\$$/.test(m.pre)) {
187171
- for (let k = 0;k < post.length; k++) {
187174
+ for (let k = 0;k < post.length && k < max; k++) {
187172
187175
  const expansion = pre + "{" + m.body + "}" + post[k];
187173
187176
  expansions.push(expansion);
187174
187177
  }
@@ -187180,7 +187183,7 @@ var require_commonjs3 = __commonJS((exports) => {
187180
187183
  if (!isSequence && !isOptions) {
187181
187184
  if (m.post.match(/,(?!,).*\}/)) {
187182
187185
  str2 = m.pre + "{" + m.body + escClose + m.post;
187183
- return expand_(str2);
187186
+ return expand_(str2, max, true);
187184
187187
  }
187185
187188
  return [str2];
187186
187189
  }
@@ -187190,7 +187193,7 @@ var require_commonjs3 = __commonJS((exports) => {
187190
187193
  } else {
187191
187194
  n = parseCommaParts(m.body);
187192
187195
  if (n.length === 1 && n[0] !== undefined) {
187193
- n = expand_(n[0], false).map(embrace);
187196
+ n = expand_(n[0], max, false).map(embrace);
187194
187197
  if (n.length === 1) {
187195
187198
  return post.map((p) => m.pre + n[0] + p);
187196
187199
  }
@@ -187236,11 +187239,11 @@ var require_commonjs3 = __commonJS((exports) => {
187236
187239
  } else {
187237
187240
  N = [];
187238
187241
  for (let j = 0;j < n.length; j++) {
187239
- N.push.apply(N, expand_(n[j], false));
187242
+ N.push.apply(N, expand_(n[j], max, false));
187240
187243
  }
187241
187244
  }
187242
187245
  for (let j = 0;j < N.length; j++) {
187243
- for (let k = 0;k < post.length; k++) {
187246
+ for (let k = 0;k < post.length && expansions.length < max; k++) {
187244
187247
  const expansion = pre + N[j] + post[k];
187245
187248
  if (!isTop || isSequence || expansion) {
187246
187249
  expansions.push(expansion);
@@ -187252,7 +187255,7 @@ var require_commonjs3 = __commonJS((exports) => {
187252
187255
  }
187253
187256
  });
187254
187257
 
187255
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
187258
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
187256
187259
  var require_assert_valid_pattern = __commonJS((exports) => {
187257
187260
  Object.defineProperty(exports, "__esModule", { value: true });
187258
187261
  exports.assertValidPattern = undefined;
@@ -187268,7 +187271,7 @@ var require_assert_valid_pattern = __commonJS((exports) => {
187268
187271
  exports.assertValidPattern = assertValidPattern;
187269
187272
  });
187270
187273
 
187271
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/brace-expressions.js
187274
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/brace-expressions.js
187272
187275
  var require_brace_expressions = __commonJS((exports) => {
187273
187276
  Object.defineProperty(exports, "__esModule", { value: true });
187274
187277
  exports.parseClass = undefined;
@@ -187383,7 +187386,7 @@ var require_brace_expressions = __commonJS((exports) => {
187383
187386
  exports.parseClass = parseClass;
187384
187387
  });
187385
187388
 
187386
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/unescape.js
187389
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/unescape.js
187387
187390
  var require_unescape = __commonJS((exports) => {
187388
187391
  Object.defineProperty(exports, "__esModule", { value: true });
187389
187392
  exports.unescape = undefined;
@@ -187396,7 +187399,7 @@ var require_unescape = __commonJS((exports) => {
187396
187399
  exports.unescape = unescape;
187397
187400
  });
187398
187401
 
187399
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/ast.js
187402
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/ast.js
187400
187403
  var require_ast = __commonJS((exports) => {
187401
187404
  Object.defineProperty(exports, "__esModule", { value: true });
187402
187405
  exports.AST = undefined;
@@ -187755,6 +187758,7 @@ var require_ast = __commonJS((exports) => {
187755
187758
  let escaping = false;
187756
187759
  let re = "";
187757
187760
  let uflag = false;
187761
+ let inStar = false;
187758
187762
  for (let i = 0;i < glob.length; i++) {
187759
187763
  const c2 = glob.charAt(i);
187760
187764
  if (escaping) {
@@ -187762,6 +187766,16 @@ var require_ast = __commonJS((exports) => {
187762
187766
  re += (reSpecials.has(c2) ? "\\" : "") + c2;
187763
187767
  continue;
187764
187768
  }
187769
+ if (c2 === "*") {
187770
+ if (inStar)
187771
+ continue;
187772
+ inStar = true;
187773
+ re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
187774
+ hasMagic = true;
187775
+ continue;
187776
+ } else {
187777
+ inStar = false;
187778
+ }
187765
187779
  if (c2 === "\\") {
187766
187780
  if (i === glob.length - 1) {
187767
187781
  re += "\\\\";
@@ -187780,11 +187794,6 @@ var require_ast = __commonJS((exports) => {
187780
187794
  continue;
187781
187795
  }
187782
187796
  }
187783
- if (c2 === "*") {
187784
- re += noEmpty && glob === "*" ? starNoEmpty : star;
187785
- hasMagic = true;
187786
- continue;
187787
- }
187788
187797
  if (c2 === "?") {
187789
187798
  re += qmark;
187790
187799
  hasMagic = true;
@@ -187798,7 +187807,7 @@ var require_ast = __commonJS((exports) => {
187798
187807
  exports.AST = AST;
187799
187808
  });
187800
187809
 
187801
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/escape.js
187810
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/escape.js
187802
187811
  var require_escape = __commonJS((exports) => {
187803
187812
  Object.defineProperty(exports, "__esModule", { value: true });
187804
187813
  exports.escape = undefined;
@@ -187811,7 +187820,7 @@ var require_escape = __commonJS((exports) => {
187811
187820
  exports.escape = escape;
187812
187821
  });
187813
187822
 
187814
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/index.js
187823
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/index.js
187815
187824
  var require_commonjs4 = __commonJS((exports) => {
187816
187825
  Object.defineProperty(exports, "__esModule", { value: true });
187817
187826
  exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = undefined;
@@ -187936,7 +187945,7 @@ var require_commonjs4 = __commonJS((exports) => {
187936
187945
  if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
187937
187946
  return [pattern];
187938
187947
  }
187939
- return (0, brace_expansion_1.expand)(pattern);
187948
+ return (0, brace_expansion_1.expand)(pattern, { max: options.braceExpandMax });
187940
187949
  };
187941
187950
  exports.braceExpand = braceExpand;
187942
187951
  exports.minimatch.braceExpand = exports.braceExpand;
@@ -187981,7 +187990,8 @@ var require_commonjs4 = __commonJS((exports) => {
187981
187990
  this.pattern = pattern;
187982
187991
  this.platform = options.platform || defaultPlatform;
187983
187992
  this.isWindows = this.platform === "win32";
187984
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
187993
+ const awe = "allowWindow" + "sEscape";
187994
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false;
187985
187995
  if (this.windowsPathsNoEscape) {
187986
187996
  this.pattern = this.pattern.replace(/\\/g, "/");
187987
187997
  }
@@ -188037,7 +188047,10 @@ var require_commonjs4 = __commonJS((exports) => {
188037
188047
  const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
188038
188048
  const isDrive = /^[a-z]:/i.test(s[0]);
188039
188049
  if (isUNC) {
188040
- return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
188050
+ return [
188051
+ ...s.slice(0, 4),
188052
+ ...s.slice(4).map((ss) => this.parse(ss))
188053
+ ];
188041
188054
  } else if (isDrive) {
188042
188055
  return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
188043
188056
  }
@@ -188281,7 +188294,10 @@ var require_commonjs4 = __commonJS((exports) => {
188281
188294
  const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
188282
188295
  const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
188283
188296
  if (typeof fdi === "number" && typeof pdi === "number") {
188284
- const [fd, pd] = [file[fdi], pattern[pdi]];
188297
+ const [fd, pd] = [
188298
+ file[fdi],
188299
+ pattern[pdi]
188300
+ ];
188285
188301
  if (fd.toLowerCase() === pd.toLowerCase()) {
188286
188302
  pattern[pdi] = fd;
188287
188303
  if (pdi > fdi) {
@@ -574006,7 +574022,7 @@ var devDependenciesTemplate = (versionedDevDependencies) => json`
574006
574022
  `)},
574007
574023
  "@electric-sql/pglite": "^0.2.12",
574008
574024
  "@eslint/js": "^9.38.0",
574009
- "@powerhousedao/analytics-engine-core": "^0.5.0",
574025
+ "@powerhousedao/analytics-engine-core": "0.6.4",
574010
574026
  "@tailwindcss/cli": "^4.1.4",
574011
574027
  "@testing-library/react": "^16.3.0",
574012
574028
  "@types/node": "^24.9.2",
@@ -602218,7 +602234,7 @@ import fs6 from "node:fs";
602218
602234
  import path9 from "node:path";
602219
602235
  var customVersionHandler = async () => {
602220
602236
  const projectInfo = await getProjectInfo(undefined, false);
602221
- const version2 = "6.0.0-dev.57";
602237
+ const version2 = "6.0.0-dev.58";
602222
602238
  console.log("PH CMD version: ", version2);
602223
602239
  if (projectInfo.available) {
602224
602240
  const packageManager = getPackageManagerFromLockfile(projectInfo.path);
@@ -187622,7 +187622,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
187622
187622
  } });
187623
187623
  });
187624
187624
 
187625
- // ../../node_modules/.pnpm/@isaacs+balanced-match@4.0.1/node_modules/@isaacs/balanced-match/dist/commonjs/index.js
187625
+ // ../../node_modules/.pnpm/balanced-match@4.0.2/node_modules/balanced-match/dist/commonjs/index.js
187626
187626
  var require_commonjs2 = __commonJS((exports) => {
187627
187627
  Object.defineProperty(exports, "__esModule", { value: true });
187628
187628
  exports.range = exports.balanced = undefined;
@@ -187681,9 +187681,10 @@ var require_commonjs2 = __commonJS((exports) => {
187681
187681
  exports.range = range;
187682
187682
  });
187683
187683
 
187684
- // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js
187684
+ // ../../node_modules/.pnpm/brace-expansion@5.0.2/node_modules/brace-expansion/dist/commonjs/index.js
187685
187685
  var require_commonjs3 = __commonJS((exports) => {
187686
187686
  Object.defineProperty(exports, "__esModule", { value: true });
187687
+ exports.EXPANSION_MAX = undefined;
187687
187688
  exports.expand = expand;
187688
187689
  var balanced_match_1 = require_commonjs2();
187689
187690
  var escSlash = "\x00SLASH" + Math.random() + "\x00";
@@ -187701,6 +187702,7 @@ var require_commonjs3 = __commonJS((exports) => {
187701
187702
  var closePattern = /\\}/g;
187702
187703
  var commaPattern = /\\,/g;
187703
187704
  var periodPattern = /\\./g;
187705
+ exports.EXPANSION_MAX = 1e5;
187704
187706
  function numeric(str2) {
187705
187707
  return !isNaN(str2) ? parseInt(str2, 10) : str2.charCodeAt(0);
187706
187708
  }
@@ -187730,14 +187732,15 @@ var require_commonjs3 = __commonJS((exports) => {
187730
187732
  parts.push.apply(parts, p);
187731
187733
  return parts;
187732
187734
  }
187733
- function expand(str2) {
187735
+ function expand(str2, options = {}) {
187734
187736
  if (!str2) {
187735
187737
  return [];
187736
187738
  }
187739
+ const { max = exports.EXPANSION_MAX } = options;
187737
187740
  if (str2.slice(0, 2) === "{}") {
187738
187741
  str2 = "\\{\\}" + str2.slice(2);
187739
187742
  }
187740
- return expand_(escapeBraces(str2), true).map(unescapeBraces);
187743
+ return expand_(escapeBraces(str2), max, true).map(unescapeBraces);
187741
187744
  }
187742
187745
  function embrace(str2) {
187743
187746
  return "{" + str2 + "}";
@@ -187751,15 +187754,15 @@ var require_commonjs3 = __commonJS((exports) => {
187751
187754
  function gte(i, y) {
187752
187755
  return i >= y;
187753
187756
  }
187754
- function expand_(str2, isTop) {
187757
+ function expand_(str2, max, isTop) {
187755
187758
  const expansions = [];
187756
187759
  const m = (0, balanced_match_1.balanced)("{", "}", str2);
187757
187760
  if (!m)
187758
187761
  return [str2];
187759
187762
  const pre = m.pre;
187760
- const post = m.post.length ? expand_(m.post, false) : [""];
187763
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
187761
187764
  if (/\$$/.test(m.pre)) {
187762
- for (let k = 0;k < post.length; k++) {
187765
+ for (let k = 0;k < post.length && k < max; k++) {
187763
187766
  const expansion = pre + "{" + m.body + "}" + post[k];
187764
187767
  expansions.push(expansion);
187765
187768
  }
@@ -187771,7 +187774,7 @@ var require_commonjs3 = __commonJS((exports) => {
187771
187774
  if (!isSequence && !isOptions) {
187772
187775
  if (m.post.match(/,(?!,).*\}/)) {
187773
187776
  str2 = m.pre + "{" + m.body + escClose + m.post;
187774
- return expand_(str2);
187777
+ return expand_(str2, max, true);
187775
187778
  }
187776
187779
  return [str2];
187777
187780
  }
@@ -187781,7 +187784,7 @@ var require_commonjs3 = __commonJS((exports) => {
187781
187784
  } else {
187782
187785
  n = parseCommaParts(m.body);
187783
187786
  if (n.length === 1 && n[0] !== undefined) {
187784
- n = expand_(n[0], false).map(embrace);
187787
+ n = expand_(n[0], max, false).map(embrace);
187785
187788
  if (n.length === 1) {
187786
187789
  return post.map((p) => m.pre + n[0] + p);
187787
187790
  }
@@ -187827,11 +187830,11 @@ var require_commonjs3 = __commonJS((exports) => {
187827
187830
  } else {
187828
187831
  N = [];
187829
187832
  for (let j = 0;j < n.length; j++) {
187830
- N.push.apply(N, expand_(n[j], false));
187833
+ N.push.apply(N, expand_(n[j], max, false));
187831
187834
  }
187832
187835
  }
187833
187836
  for (let j = 0;j < N.length; j++) {
187834
- for (let k = 0;k < post.length; k++) {
187837
+ for (let k = 0;k < post.length && expansions.length < max; k++) {
187835
187838
  const expansion = pre + N[j] + post[k];
187836
187839
  if (!isTop || isSequence || expansion) {
187837
187840
  expansions.push(expansion);
@@ -187843,7 +187846,7 @@ var require_commonjs3 = __commonJS((exports) => {
187843
187846
  }
187844
187847
  });
187845
187848
 
187846
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
187849
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
187847
187850
  var require_assert_valid_pattern = __commonJS((exports) => {
187848
187851
  Object.defineProperty(exports, "__esModule", { value: true });
187849
187852
  exports.assertValidPattern = undefined;
@@ -187859,7 +187862,7 @@ var require_assert_valid_pattern = __commonJS((exports) => {
187859
187862
  exports.assertValidPattern = assertValidPattern;
187860
187863
  });
187861
187864
 
187862
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/brace-expressions.js
187865
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/brace-expressions.js
187863
187866
  var require_brace_expressions = __commonJS((exports) => {
187864
187867
  Object.defineProperty(exports, "__esModule", { value: true });
187865
187868
  exports.parseClass = undefined;
@@ -187974,7 +187977,7 @@ var require_brace_expressions = __commonJS((exports) => {
187974
187977
  exports.parseClass = parseClass;
187975
187978
  });
187976
187979
 
187977
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/unescape.js
187980
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/unescape.js
187978
187981
  var require_unescape = __commonJS((exports) => {
187979
187982
  Object.defineProperty(exports, "__esModule", { value: true });
187980
187983
  exports.unescape = undefined;
@@ -187987,7 +187990,7 @@ var require_unescape = __commonJS((exports) => {
187987
187990
  exports.unescape = unescape;
187988
187991
  });
187989
187992
 
187990
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/ast.js
187993
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/ast.js
187991
187994
  var require_ast = __commonJS((exports) => {
187992
187995
  Object.defineProperty(exports, "__esModule", { value: true });
187993
187996
  exports.AST = undefined;
@@ -188346,6 +188349,7 @@ var require_ast = __commonJS((exports) => {
188346
188349
  let escaping = false;
188347
188350
  let re = "";
188348
188351
  let uflag = false;
188352
+ let inStar = false;
188349
188353
  for (let i = 0;i < glob.length; i++) {
188350
188354
  const c2 = glob.charAt(i);
188351
188355
  if (escaping) {
@@ -188353,6 +188357,16 @@ var require_ast = __commonJS((exports) => {
188353
188357
  re += (reSpecials.has(c2) ? "\\" : "") + c2;
188354
188358
  continue;
188355
188359
  }
188360
+ if (c2 === "*") {
188361
+ if (inStar)
188362
+ continue;
188363
+ inStar = true;
188364
+ re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
188365
+ hasMagic = true;
188366
+ continue;
188367
+ } else {
188368
+ inStar = false;
188369
+ }
188356
188370
  if (c2 === "\\") {
188357
188371
  if (i === glob.length - 1) {
188358
188372
  re += "\\\\";
@@ -188371,11 +188385,6 @@ var require_ast = __commonJS((exports) => {
188371
188385
  continue;
188372
188386
  }
188373
188387
  }
188374
- if (c2 === "*") {
188375
- re += noEmpty && glob === "*" ? starNoEmpty : star;
188376
- hasMagic = true;
188377
- continue;
188378
- }
188379
188388
  if (c2 === "?") {
188380
188389
  re += qmark;
188381
188390
  hasMagic = true;
@@ -188389,7 +188398,7 @@ var require_ast = __commonJS((exports) => {
188389
188398
  exports.AST = AST;
188390
188399
  });
188391
188400
 
188392
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/escape.js
188401
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/escape.js
188393
188402
  var require_escape = __commonJS((exports) => {
188394
188403
  Object.defineProperty(exports, "__esModule", { value: true });
188395
188404
  exports.escape = undefined;
@@ -188402,7 +188411,7 @@ var require_escape = __commonJS((exports) => {
188402
188411
  exports.escape = escape;
188403
188412
  });
188404
188413
 
188405
- // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/commonjs/index.js
188414
+ // ../../node_modules/.pnpm/minimatch@10.2.1/node_modules/minimatch/dist/commonjs/index.js
188406
188415
  var require_commonjs4 = __commonJS((exports) => {
188407
188416
  Object.defineProperty(exports, "__esModule", { value: true });
188408
188417
  exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = undefined;
@@ -188527,7 +188536,7 @@ var require_commonjs4 = __commonJS((exports) => {
188527
188536
  if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
188528
188537
  return [pattern];
188529
188538
  }
188530
- return (0, brace_expansion_1.expand)(pattern);
188539
+ return (0, brace_expansion_1.expand)(pattern, { max: options.braceExpandMax });
188531
188540
  };
188532
188541
  exports.braceExpand = braceExpand;
188533
188542
  exports.minimatch.braceExpand = exports.braceExpand;
@@ -188572,7 +188581,8 @@ var require_commonjs4 = __commonJS((exports) => {
188572
188581
  this.pattern = pattern;
188573
188582
  this.platform = options.platform || defaultPlatform;
188574
188583
  this.isWindows = this.platform === "win32";
188575
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
188584
+ const awe = "allowWindow" + "sEscape";
188585
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false;
188576
188586
  if (this.windowsPathsNoEscape) {
188577
188587
  this.pattern = this.pattern.replace(/\\/g, "/");
188578
188588
  }
@@ -188628,7 +188638,10 @@ var require_commonjs4 = __commonJS((exports) => {
188628
188638
  const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
188629
188639
  const isDrive = /^[a-z]:/i.test(s[0]);
188630
188640
  if (isUNC) {
188631
- return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
188641
+ return [
188642
+ ...s.slice(0, 4),
188643
+ ...s.slice(4).map((ss) => this.parse(ss))
188644
+ ];
188632
188645
  } else if (isDrive) {
188633
188646
  return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
188634
188647
  }
@@ -188872,7 +188885,10 @@ var require_commonjs4 = __commonJS((exports) => {
188872
188885
  const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
188873
188886
  const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
188874
188887
  if (typeof fdi === "number" && typeof pdi === "number") {
188875
- const [fd, pd] = [file[fdi], pattern[pdi]];
188888
+ const [fd, pd] = [
188889
+ file[fdi],
188890
+ pattern[pdi]
188891
+ ];
188876
188892
  if (fd.toLowerCase() === pd.toLowerCase()) {
188877
188893
  pattern[pdi] = fd;
188878
188894
  if (pdi > fdi) {
@@ -573591,7 +573607,7 @@ var devDependenciesTemplate = (versionedDevDependencies) => json`
573591
573607
  `)},
573592
573608
  "@electric-sql/pglite": "^0.2.12",
573593
573609
  "@eslint/js": "^9.38.0",
573594
- "@powerhousedao/analytics-engine-core": "^0.5.0",
573610
+ "@powerhousedao/analytics-engine-core": "0.6.4",
573595
573611
  "@tailwindcss/cli": "^4.1.4",
573596
573612
  "@testing-library/react": "^16.3.0",
573597
573613
  "@types/node": "^24.9.2",
@@ -603871,7 +603887,7 @@ var use = import_cmd_ts16.command({
603871
603887
  });
603872
603888
 
603873
603889
  // src/commands/ph.ts
603874
- var phCmdVersionInfo = await getPhCmdVersionInfo("6.0.0-dev.57");
603890
+ var phCmdVersionInfo = await getPhCmdVersionInfo("6.0.0-dev.58");
603875
603891
  var ph = import_cmd_ts17.subcommands({
603876
603892
  name: "ph",
603877
603893
  version: phCmdVersionInfo,
@@ -603899,7 +603915,7 @@ var cliDescription = ph.description ?? "";
603899
603915
  async function main2() {
603900
603916
  await writeCliDocsMarkdownFile({
603901
603917
  filePath: "COMMANDS.md",
603902
- docsTitle: `PH-CMD CLI Commands (${"6.0.0-dev.57"})`,
603918
+ docsTitle: `PH-CMD CLI Commands (${"6.0.0-dev.58"})`,
603903
603919
  docsIntroduction: "This document provides detailed information about the available commands in the PH-CMD CLI. The CLI is published as `ph-cmd` and is invoked with the `ph` command.",
603904
603920
  cliDescription,
603905
603921
  entries: commands
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ph-cmd",
3
- "version": "6.0.0-dev.58",
3
+ "version": "6.0.0-dev.59",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
@@ -34,8 +34,8 @@
34
34
  "read-pkg": "10.1.0",
35
35
  "vitest": "3.2.4",
36
36
  "write-package": "7.2.0",
37
- "@powerhousedao/codegen": "6.0.0-dev.58",
38
- "@powerhousedao/common": "6.0.0-dev.58"
37
+ "@powerhousedao/codegen": "6.0.0-dev.59",
38
+ "@powerhousedao/common": "6.0.0-dev.59"
39
39
  },
40
40
  "scripts": {
41
41
  "tsc": "tsc",