@betty-blocks/cli 25.109.0-beta.1 → 26.0.0-alpha.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 (46) hide show
  1. package/assets/app-functions/wasm-template/.wasm-functions +0 -0
  2. package/assets/app-functions/wasm-template/functions/say-hello/1.0/Cargo.lock +449 -0
  3. package/assets/app-functions/wasm-template/functions/say-hello/1.0/Cargo.toml +10 -0
  4. package/assets/app-functions/wasm-template/functions/say-hello/1.0/Justfile +6 -0
  5. package/assets/app-functions/wasm-template/functions/say-hello/1.0/function.json +35 -0
  6. package/assets/app-functions/wasm-template/functions/say-hello/1.0/src/lib.rs +19 -0
  7. package/assets/app-functions/wasm-template/functions/say-hello/1.0/wit/world.wit +13 -0
  8. package/build/src/bb-blocks-new.js +5361 -2181
  9. package/build/src/bb-blocks-publish.js +11493 -18303
  10. package/build/src/bb-blocks-release.js +65 -46
  11. package/build/src/bb-blocks.js +32 -32
  12. package/build/src/bb-bundle-init.js +1542 -912
  13. package/build/src/bb-bundle.js +35 -32
  14. package/build/src/bb-components-build.js +34965 -7598
  15. package/build/src/bb-components-create.js +1542 -912
  16. package/build/src/bb-components-generate.js +1542 -912
  17. package/build/src/bb-components-publish-bundle.js +1519 -889
  18. package/build/src/bb-components-publish.js +1522 -892
  19. package/build/src/bb-components-serve.js +1524 -894
  20. package/build/src/bb-components.js +32 -32
  21. package/build/src/bb-functions-bump.js +6047 -2733
  22. package/build/src/bb-functions-init.js +100 -593
  23. package/build/src/bb-functions-login.js +65 -46
  24. package/build/src/bb-functions-logout.js +65 -46
  25. package/build/src/bb-functions-new.js +5464 -2195
  26. package/build/src/bb-functions-publish.js +15134 -76022
  27. package/build/src/bb-functions-validate.js +7262 -3950
  28. package/build/src/bb-functions.js +35 -37
  29. package/build/src/bb.js +76 -74
  30. package/package.json +41 -42
  31. package/assets/app-functions/templates/test/helpers.js +0 -3
  32. package/assets/app-functions/templates/test/say-hello.test.js +0 -4
  33. package/assets/functions/packer/package.json +0 -9
  34. package/assets/functions/packer/webpack.config.js +0 -12
  35. package/assets/functions/templates/functions.json +0 -14
  36. package/assets/functions/templates/package.json +0 -11
  37. package/assets/functions/templates/src/all-users.js +0 -14
  38. package/assets/functions/templates/src/get-json.js +0 -9
  39. package/assets/functions/templates/src/index.js +0 -5
  40. package/assets/functions/templates/src/say-hello.js +0 -13
  41. package/build/src/bb-functions-build.js +0 -4285
  42. package/src/bb.ts +0 -31
  43. /package/assets/app-functions/{templates → js-template}/.app-functions +0 -0
  44. /package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/function.json +0 -0
  45. /package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/index.js +0 -0
  46. /package/assets/app-functions/{templates → js-template}/package.json +0 -0
@@ -78,7 +78,7 @@ var require_argument = __commonJS((exports) => {
78
78
  this._name = name;
79
79
  break;
80
80
  }
81
- if (this._name.length > 3 && this._name.slice(-3) === "...") {
81
+ if (this._name.endsWith("...")) {
82
82
  this.variadic = true;
83
83
  this._name = this._name.slice(0, -3);
84
84
  }
@@ -86,11 +86,12 @@ var require_argument = __commonJS((exports) => {
86
86
  name() {
87
87
  return this._name;
88
88
  }
89
- _concatValue(value, previous) {
89
+ _collectValue(value, previous) {
90
90
  if (previous === this.defaultValue || !Array.isArray(previous)) {
91
91
  return [value];
92
92
  }
93
- return previous.concat(value);
93
+ previous.push(value);
94
+ return previous;
94
95
  }
95
96
  default(value, description) {
96
97
  this.defaultValue = value;
@@ -108,7 +109,7 @@ var require_argument = __commonJS((exports) => {
108
109
  throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
109
110
  }
110
111
  if (this.variadic) {
111
- return this._concatValue(arg, previous);
112
+ return this._collectValue(arg, previous);
112
113
  }
113
114
  return arg;
114
115
  };
@@ -555,11 +556,12 @@ var require_option = __commonJS((exports) => {
555
556
  this.hidden = !!hide;
556
557
  return this;
557
558
  }
558
- _concatValue(value, previous) {
559
+ _collectValue(value, previous) {
559
560
  if (previous === this.defaultValue || !Array.isArray(previous)) {
560
561
  return [value];
561
562
  }
562
- return previous.concat(value);
563
+ previous.push(value);
564
+ return previous;
563
565
  }
564
566
  choices(values) {
565
567
  this.argChoices = values.slice();
@@ -568,7 +570,7 @@ var require_option = __commonJS((exports) => {
568
570
  throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
569
571
  }
570
572
  if (this.variadic) {
571
- return this._concatValue(arg, previous);
573
+ return this._collectValue(arg, previous);
572
574
  }
573
575
  return arg;
574
576
  };
@@ -874,7 +876,10 @@ var require_command = __commonJS((exports) => {
874
876
  configureOutput(configuration) {
875
877
  if (configuration === undefined)
876
878
  return this._outputConfiguration;
877
- this._outputConfiguration = Object.assign({}, this._outputConfiguration, configuration);
879
+ this._outputConfiguration = {
880
+ ...this._outputConfiguration,
881
+ ...configuration
882
+ };
878
883
  return this;
879
884
  }
880
885
  showHelpAfterError(displayHelp = true) {
@@ -923,7 +928,7 @@ var require_command = __commonJS((exports) => {
923
928
  }
924
929
  addArgument(argument) {
925
930
  const previousArgument = this.registeredArguments.slice(-1)[0];
926
- if (previousArgument && previousArgument.variadic) {
931
+ if (previousArgument?.variadic) {
927
932
  throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
928
933
  }
929
934
  if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
@@ -1078,7 +1083,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1078
1083
  if (val !== null && option.parseArg) {
1079
1084
  val = this._callParseArg(option, val, oldValue, invalidValueMessage);
1080
1085
  } else if (val !== null && option.variadic) {
1081
- val = option._concatValue(val, oldValue);
1086
+ val = option._collectValue(val, oldValue);
1082
1087
  }
1083
1088
  if (val == null) {
1084
1089
  if (option.negate) {
@@ -1453,7 +1458,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1453
1458
  this.processedArgs = processedArgs;
1454
1459
  }
1455
1460
  _chainOrCall(promise, fn) {
1456
- if (promise && promise.then && typeof promise.then === "function") {
1461
+ if (promise?.then && typeof promise.then === "function") {
1457
1462
  return promise.then(() => fn());
1458
1463
  }
1459
1464
  return fn();
@@ -1530,7 +1535,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1530
1535
  promiseChain = this._chainOrCallHooks(promiseChain, "postAction");
1531
1536
  return promiseChain;
1532
1537
  }
1533
- if (this.parent && this.parent.listenerCount(commandEvent)) {
1538
+ if (this.parent?.listenerCount(commandEvent)) {
1534
1539
  checkForUnknownOptions();
1535
1540
  this._processArguments();
1536
1541
  this.parent.emit(commandEvent, operands, unknown);
@@ -1592,11 +1597,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
1592
1597
  cmd._checkForConflictingLocalOptions();
1593
1598
  });
1594
1599
  }
1595
- parseOptions(argv) {
1600
+ parseOptions(args) {
1596
1601
  const operands = [];
1597
1602
  const unknown = [];
1598
1603
  let dest = operands;
1599
- const args = argv.slice();
1600
1604
  function maybeOption(arg) {
1601
1605
  return arg.length > 1 && arg[0] === "-";
1602
1606
  }
@@ -1606,12 +1610,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
1606
1610
  return !this._getCommandAndAncestors().some((cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short)));
1607
1611
  };
1608
1612
  let activeVariadicOption = null;
1609
- while (args.length) {
1610
- const arg = args.shift();
1613
+ let activeGroup = null;
1614
+ let i = 0;
1615
+ while (i < args.length || activeGroup) {
1616
+ const arg = activeGroup ?? args[i++];
1617
+ activeGroup = null;
1611
1618
  if (arg === "--") {
1612
1619
  if (dest === unknown)
1613
1620
  dest.push(arg);
1614
- dest.push(...args);
1621
+ dest.push(...args.slice(i));
1615
1622
  break;
1616
1623
  }
1617
1624
  if (activeVariadicOption && (!maybeOption(arg) || negativeNumberArg(arg))) {
@@ -1623,14 +1630,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
1623
1630
  const option = this._findOption(arg);
1624
1631
  if (option) {
1625
1632
  if (option.required) {
1626
- const value = args.shift();
1633
+ const value = args[i++];
1627
1634
  if (value === undefined)
1628
1635
  this.optionMissingArgument(option);
1629
1636
  this.emit(`option:${option.name()}`, value);
1630
1637
  } else if (option.optional) {
1631
1638
  let value = null;
1632
- if (args.length > 0 && (!maybeOption(args[0]) || negativeNumberArg(args[0]))) {
1633
- value = args.shift();
1639
+ if (i < args.length && (!maybeOption(args[i]) || negativeNumberArg(args[i]))) {
1640
+ value = args[i++];
1634
1641
  }
1635
1642
  this.emit(`option:${option.name()}`, value);
1636
1643
  } else {
@@ -1647,7 +1654,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1647
1654
  this.emit(`option:${option.name()}`, arg.slice(2));
1648
1655
  } else {
1649
1656
  this.emit(`option:${option.name()}`);
1650
- args.unshift(`-${arg.slice(2)}`);
1657
+ activeGroup = `-${arg.slice(2)}`;
1651
1658
  }
1652
1659
  continue;
1653
1660
  }
@@ -1666,25 +1673,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
1666
1673
  if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown.length === 0) {
1667
1674
  if (this._findCommand(arg)) {
1668
1675
  operands.push(arg);
1669
- if (args.length > 0)
1670
- unknown.push(...args);
1676
+ unknown.push(...args.slice(i));
1671
1677
  break;
1672
1678
  } else if (this._getHelpCommand() && arg === this._getHelpCommand().name()) {
1673
- operands.push(arg);
1674
- if (args.length > 0)
1675
- operands.push(...args);
1679
+ operands.push(arg, ...args.slice(i));
1676
1680
  break;
1677
1681
  } else if (this._defaultCommandName) {
1678
- unknown.push(arg);
1679
- if (args.length > 0)
1680
- unknown.push(...args);
1682
+ unknown.push(arg, ...args.slice(i));
1681
1683
  break;
1682
1684
  }
1683
1685
  }
1684
1686
  if (this._passThroughOptions) {
1685
- dest.push(arg);
1686
- if (args.length > 0)
1687
- dest.push(...args);
1687
+ dest.push(arg, ...args.slice(i));
1688
1688
  break;
1689
1689
  }
1690
1690
  dest.push(arg);
@@ -2139,18 +2139,16 @@ var {
2139
2139
 
2140
2140
  // src/bb-functions.ts
2141
2141
  var availableCommands = [
2142
+ "bump",
2142
2143
  "init",
2143
2144
  "login",
2144
2145
  "logout",
2145
2146
  "new",
2146
- "build",
2147
2147
  "publish",
2148
- "validate",
2149
- "bump",
2150
- "test"
2148
+ "validate"
2151
2149
  ];
2152
2150
  var program2 = new Command;
2153
- program2.usage(`<${availableCommands.join("|")}>`).name("bb functions").command("build", "build functions bundle file of current working directory").command("bump", "increase the major/minor version of a specific function").command("init [identifier]", "initialize functions project").command("login", "login using the same credentials as the IDE").command("logout", "remove all tokens used to authenticate with the APIs").command("new [function-name]", "Initialize a new function").command("publish", "publish functions of current working directory").command("validate", "validate functions of current working directory").command("test", "test your functions within a local light-weight version of the ActionJS environment").on("command:*", ([command]) => {
2151
+ program2.usage(`<${availableCommands.join("|")}>`).name("bb functions").command("bump", "increase the major/minor version of a specific function").command("init", "initialize functions project").command("login", "login using the same credentials as the IDE").command("logout", "remove all tokens used to authenticate with the APIs").command("new [function-name]", "Initialize a new function").command("publish", "publish functions of current working directory").command("validate", "validate functions of current working directory").on("command:*", ([command]) => {
2154
2152
  if (!availableCommands.includes(command)) {
2155
2153
  console.error(`Invalid command: %s
2156
2154
  `, command);
package/build/src/bb.js CHANGED
@@ -79,7 +79,7 @@ var require_argument = __commonJS((exports) => {
79
79
  this._name = name;
80
80
  break;
81
81
  }
82
- if (this._name.length > 3 && this._name.slice(-3) === "...") {
82
+ if (this._name.endsWith("...")) {
83
83
  this.variadic = true;
84
84
  this._name = this._name.slice(0, -3);
85
85
  }
@@ -87,11 +87,12 @@ var require_argument = __commonJS((exports) => {
87
87
  name() {
88
88
  return this._name;
89
89
  }
90
- _concatValue(value, previous) {
90
+ _collectValue(value, previous) {
91
91
  if (previous === this.defaultValue || !Array.isArray(previous)) {
92
92
  return [value];
93
93
  }
94
- return previous.concat(value);
94
+ previous.push(value);
95
+ return previous;
95
96
  }
96
97
  default(value, description) {
97
98
  this.defaultValue = value;
@@ -109,7 +110,7 @@ var require_argument = __commonJS((exports) => {
109
110
  throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
110
111
  }
111
112
  if (this.variadic) {
112
- return this._concatValue(arg, previous);
113
+ return this._collectValue(arg, previous);
113
114
  }
114
115
  return arg;
115
116
  };
@@ -556,11 +557,12 @@ var require_option = __commonJS((exports) => {
556
557
  this.hidden = !!hide;
557
558
  return this;
558
559
  }
559
- _concatValue(value, previous) {
560
+ _collectValue(value, previous) {
560
561
  if (previous === this.defaultValue || !Array.isArray(previous)) {
561
562
  return [value];
562
563
  }
563
- return previous.concat(value);
564
+ previous.push(value);
565
+ return previous;
564
566
  }
565
567
  choices(values) {
566
568
  this.argChoices = values.slice();
@@ -569,7 +571,7 @@ var require_option = __commonJS((exports) => {
569
571
  throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
570
572
  }
571
573
  if (this.variadic) {
572
- return this._concatValue(arg, previous);
574
+ return this._collectValue(arg, previous);
573
575
  }
574
576
  return arg;
575
577
  };
@@ -875,7 +877,10 @@ var require_command = __commonJS((exports) => {
875
877
  configureOutput(configuration) {
876
878
  if (configuration === undefined)
877
879
  return this._outputConfiguration;
878
- this._outputConfiguration = Object.assign({}, this._outputConfiguration, configuration);
880
+ this._outputConfiguration = {
881
+ ...this._outputConfiguration,
882
+ ...configuration
883
+ };
879
884
  return this;
880
885
  }
881
886
  showHelpAfterError(displayHelp = true) {
@@ -924,7 +929,7 @@ var require_command = __commonJS((exports) => {
924
929
  }
925
930
  addArgument(argument) {
926
931
  const previousArgument = this.registeredArguments.slice(-1)[0];
927
- if (previousArgument && previousArgument.variadic) {
932
+ if (previousArgument?.variadic) {
928
933
  throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
929
934
  }
930
935
  if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
@@ -1079,7 +1084,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1079
1084
  if (val !== null && option.parseArg) {
1080
1085
  val = this._callParseArg(option, val, oldValue, invalidValueMessage);
1081
1086
  } else if (val !== null && option.variadic) {
1082
- val = option._concatValue(val, oldValue);
1087
+ val = option._collectValue(val, oldValue);
1083
1088
  }
1084
1089
  if (val == null) {
1085
1090
  if (option.negate) {
@@ -1454,7 +1459,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1454
1459
  this.processedArgs = processedArgs;
1455
1460
  }
1456
1461
  _chainOrCall(promise, fn) {
1457
- if (promise && promise.then && typeof promise.then === "function") {
1462
+ if (promise?.then && typeof promise.then === "function") {
1458
1463
  return promise.then(() => fn());
1459
1464
  }
1460
1465
  return fn();
@@ -1531,7 +1536,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1531
1536
  promiseChain = this._chainOrCallHooks(promiseChain, "postAction");
1532
1537
  return promiseChain;
1533
1538
  }
1534
- if (this.parent && this.parent.listenerCount(commandEvent)) {
1539
+ if (this.parent?.listenerCount(commandEvent)) {
1535
1540
  checkForUnknownOptions();
1536
1541
  this._processArguments();
1537
1542
  this.parent.emit(commandEvent, operands, unknown);
@@ -1593,11 +1598,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
1593
1598
  cmd._checkForConflictingLocalOptions();
1594
1599
  });
1595
1600
  }
1596
- parseOptions(argv) {
1601
+ parseOptions(args) {
1597
1602
  const operands = [];
1598
1603
  const unknown = [];
1599
1604
  let dest = operands;
1600
- const args = argv.slice();
1601
1605
  function maybeOption(arg) {
1602
1606
  return arg.length > 1 && arg[0] === "-";
1603
1607
  }
@@ -1607,12 +1611,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
1607
1611
  return !this._getCommandAndAncestors().some((cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short)));
1608
1612
  };
1609
1613
  let activeVariadicOption = null;
1610
- while (args.length) {
1611
- const arg = args.shift();
1614
+ let activeGroup = null;
1615
+ let i = 0;
1616
+ while (i < args.length || activeGroup) {
1617
+ const arg = activeGroup ?? args[i++];
1618
+ activeGroup = null;
1612
1619
  if (arg === "--") {
1613
1620
  if (dest === unknown)
1614
1621
  dest.push(arg);
1615
- dest.push(...args);
1622
+ dest.push(...args.slice(i));
1616
1623
  break;
1617
1624
  }
1618
1625
  if (activeVariadicOption && (!maybeOption(arg) || negativeNumberArg(arg))) {
@@ -1624,14 +1631,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
1624
1631
  const option = this._findOption(arg);
1625
1632
  if (option) {
1626
1633
  if (option.required) {
1627
- const value = args.shift();
1634
+ const value = args[i++];
1628
1635
  if (value === undefined)
1629
1636
  this.optionMissingArgument(option);
1630
1637
  this.emit(`option:${option.name()}`, value);
1631
1638
  } else if (option.optional) {
1632
1639
  let value = null;
1633
- if (args.length > 0 && (!maybeOption(args[0]) || negativeNumberArg(args[0]))) {
1634
- value = args.shift();
1640
+ if (i < args.length && (!maybeOption(args[i]) || negativeNumberArg(args[i]))) {
1641
+ value = args[i++];
1635
1642
  }
1636
1643
  this.emit(`option:${option.name()}`, value);
1637
1644
  } else {
@@ -1648,7 +1655,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1648
1655
  this.emit(`option:${option.name()}`, arg.slice(2));
1649
1656
  } else {
1650
1657
  this.emit(`option:${option.name()}`);
1651
- args.unshift(`-${arg.slice(2)}`);
1658
+ activeGroup = `-${arg.slice(2)}`;
1652
1659
  }
1653
1660
  continue;
1654
1661
  }
@@ -1667,25 +1674,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
1667
1674
  if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown.length === 0) {
1668
1675
  if (this._findCommand(arg)) {
1669
1676
  operands.push(arg);
1670
- if (args.length > 0)
1671
- unknown.push(...args);
1677
+ unknown.push(...args.slice(i));
1672
1678
  break;
1673
1679
  } else if (this._getHelpCommand() && arg === this._getHelpCommand().name()) {
1674
- operands.push(arg);
1675
- if (args.length > 0)
1676
- operands.push(...args);
1680
+ operands.push(arg, ...args.slice(i));
1677
1681
  break;
1678
1682
  } else if (this._defaultCommandName) {
1679
- unknown.push(arg);
1680
- if (args.length > 0)
1681
- unknown.push(...args);
1683
+ unknown.push(arg, ...args.slice(i));
1682
1684
  break;
1683
1685
  }
1684
1686
  }
1685
1687
  if (this._passThroughOptions) {
1686
- dest.push(arg);
1687
- if (args.length > 0)
1688
- dest.push(...args);
1688
+ dest.push(arg, ...args.slice(i));
1689
1689
  break;
1690
1690
  }
1691
1691
  dest.push(arg);
@@ -2126,9 +2126,9 @@ var require_commander = __commonJS((exports) => {
2126
2126
  var require_package = __commonJS((exports, module) => {
2127
2127
  module.exports = {
2128
2128
  name: "@betty-blocks/cli",
2129
- version: "25.108.0",
2129
+ version: "26.0.0-beta.11",
2130
2130
  description: "A Betty Blocks CLI",
2131
- module: "./src/bb.ts",
2131
+ module: "./build/src/bb.js",
2132
2132
  type: "module",
2133
2133
  license: "UNLICENSED",
2134
2134
  repository: {
@@ -2148,70 +2148,69 @@ var require_package = __commonJS((exports, module) => {
2148
2148
  clean: "rm -rf build/ && rm -rf node_modules/"
2149
2149
  },
2150
2150
  devDependencies: {
2151
- "@commitlint/cli": "^15.0.0",
2152
- "@commitlint/config-angular": "^15.0.0",
2153
- "@commitlint/prompt-cli": "^15.0.0",
2154
- "@semantic-release/changelog": "^6.0.1",
2151
+ "@commitlint/cli": "^20.1.0",
2152
+ "@commitlint/config-angular": "^20.0.0",
2153
+ "@commitlint/prompt-cli": "^20.1.0",
2154
+ "@semantic-release/changelog": "^6.0.3",
2155
2155
  "@semantic-release/git": "^10.0.1",
2156
- "@types/adm-zip": "0.5.7",
2157
2156
  "@types/app-root-path": "^1.2.4",
2158
2157
  "@types/babel__generator": "7.27.0",
2159
2158
  "@types/babel__traverse": "7.28.0",
2160
- "@types/bun": "^1.2.19",
2159
+ "@types/bun": "^1.2.23",
2161
2160
  "@types/fs-extra": "^8.0.0",
2162
2161
  "@types/glob": "^7.2.0",
2163
- "@types/hapi__joi": "^16.0.0",
2164
- "@types/minimatch": "^6.0.0",
2165
- "@types/promise-sequential": "^1.1.0",
2166
- "@types/prompts": "^2.0.14",
2167
- "@types/react": "^16.9.9",
2168
- "@types/semver": "^7.3.9",
2169
- "@types/serve-handler": "^6.1.0",
2162
+ "@types/promise-sequential": "^1.1.2",
2163
+ "@types/semver": "^7.7.1",
2170
2164
  "app-root-path": "^2.2.1",
2171
- eslint: "^9.23.0",
2172
- "eslint-config-prettier": "^10.1.1",
2173
- "eslint-plugin-prettier": "^5.2.5",
2165
+ "eslint-config-prettier": "^10.1.8",
2166
+ "eslint-plugin-prettier": "^5.5.4",
2174
2167
  "eslint-plugin-simple-import-sort": "^12.1.1",
2175
- prettier: "3.5.3",
2176
- "semantic-release": "^24.2.7",
2177
- "typescript-eslint": "^8.18.0",
2178
- typescript: "^5.8.2"
2168
+ eslint: "^9.36.0",
2169
+ prettier: "3.6.2",
2170
+ "semantic-release": "^24.2.9",
2171
+ "typescript-eslint": "^8.45.0"
2179
2172
  },
2180
2173
  dependencies: {
2181
- "@azure/ms-rest-js": "^2.0.4",
2174
+ "@azure/ms-rest-js": "^2.7.0",
2182
2175
  "@azure/storage-blob": "^10.3.0",
2183
- "@babel/generator": "7.28.0",
2184
- "@babel/parser": "7.28.0",
2185
- "@babel/traverse": "7.28.0",
2186
- "@babel/types": "7.28.2",
2187
- "@betty-blocks/component-sdk": "^1.91.3",
2176
+ "@babel/generator": "7.28.3",
2177
+ "@babel/parser": "7.28.4",
2178
+ "@babel/traverse": "7.28.4",
2179
+ "@babel/types": "7.28.4",
2180
+ "@betty-blocks/component-sdk": "^1.91.4",
2181
+ "@types/adm-zip": "0.5.7",
2182
+ "@types/hapi__joi": "^16.0.0",
2183
+ "@types/prompts": "^2.4.9",
2184
+ "@types/react": "^16.9.9",
2185
+ "@types/serve-handler": "^6.1.4",
2188
2186
  "adm-zip": "0.5.16",
2189
2187
  case: "^1.6.3",
2190
- chalk: "^5.5.0",
2191
- commander: "^14.0.0",
2192
- "form-data": "4.0.4",
2193
- "fs-extra": "11.3.1",
2194
- glob: "^7.2.0",
2195
- joi: "18.0.0",
2188
+ chalk: "^5.6.2",
2189
+ commander: "^14.0.1",
2190
+ "fs-extra": "11.3.2",
2191
+ glob: "^11.0.3",
2192
+ joi: "18.0.1",
2196
2193
  "jsdoc-api": "^7.1.0",
2197
- jsonschema: "^1.4.0",
2198
- minimatch: "10.0.3",
2194
+ jsonschema: "^1.5.0",
2199
2195
  minimist: "1.2.8",
2200
2196
  "node-fetch": "3.3.2",
2201
- ora: "8.2.0",
2197
+ ora: "9.0.0",
2202
2198
  prismjs: "1.30.0",
2203
2199
  prompts: "^2.4.2",
2204
- semver: "^6.3.0",
2205
- serve: "^11.1.0",
2200
+ semver: "^7.7.2",
2206
2201
  "serve-handler": "6.1.6",
2207
- "tsconfig-paths": "^3.9.0",
2202
+ serve: "^11.1.0",
2203
+ "ts-node": "10.9.2",
2204
+ "tsconfig-paths": "^3.15.0",
2205
+ typescript: "^5.9.2",
2208
2206
  webhead: "^1.1.3"
2209
2207
  },
2210
2208
  bin: {
2211
- bb: "./src/bb.ts"
2209
+ bb: "./build/src/bb.js"
2212
2210
  },
2213
2211
  resolutions: {
2214
- "@types/react": "^16.9.9"
2212
+ "@types/react": "^16.9.9",
2213
+ "@types/minimatch": "5.1.2"
2215
2214
  },
2216
2215
  files: [
2217
2216
  "assets/",
@@ -2491,6 +2490,9 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
2491
2490
  if (env.TERM === "xterm-ghostty") {
2492
2491
  return 3;
2493
2492
  }
2493
+ if (env.TERM === "wezterm") {
2494
+ return 3;
2495
+ }
2494
2496
  if ("TERM_PROGRAM" in env) {
2495
2497
  const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
2496
2498
  switch (env.TERM_PROGRAM) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@betty-blocks/cli",
3
- "version": "25.109.0-beta.1",
3
+ "version": "26.0.0-alpha.1",
4
4
  "description": "A Betty Blocks CLI",
5
- "module": "./src/bb.ts",
5
+ "module": "./build/src/bb.js",
6
6
  "type": "module",
7
7
  "license": "UNLICENSED",
8
8
  "repository": {
@@ -22,70 +22,69 @@
22
22
  "clean": "rm -rf build/ && rm -rf node_modules/"
23
23
  },
24
24
  "devDependencies": {
25
- "@commitlint/cli": "^15.0.0",
26
- "@commitlint/config-angular": "^15.0.0",
27
- "@commitlint/prompt-cli": "^15.0.0",
28
- "@semantic-release/changelog": "^6.0.1",
25
+ "@commitlint/cli": "^20.1.0",
26
+ "@commitlint/config-angular": "^20.0.0",
27
+ "@commitlint/prompt-cli": "^20.1.0",
28
+ "@semantic-release/changelog": "^6.0.3",
29
29
  "@semantic-release/git": "^10.0.1",
30
- "@types/adm-zip": "0.5.7",
31
30
  "@types/app-root-path": "^1.2.4",
32
31
  "@types/babel__generator": "7.27.0",
33
32
  "@types/babel__traverse": "7.28.0",
34
- "@types/bun": "^1.2.19",
33
+ "@types/bun": "^1.2.23",
35
34
  "@types/fs-extra": "^8.0.0",
36
35
  "@types/glob": "^7.2.0",
37
- "@types/hapi__joi": "^16.0.0",
38
- "@types/minimatch": "^6.0.0",
39
- "@types/promise-sequential": "^1.1.0",
40
- "@types/prompts": "^2.0.14",
41
- "@types/react": "^16.9.9",
42
- "@types/semver": "^7.3.9",
43
- "@types/serve-handler": "^6.1.0",
36
+ "@types/promise-sequential": "^1.1.2",
37
+ "@types/semver": "^7.7.1",
44
38
  "app-root-path": "^2.2.1",
45
- "eslint": "^9.23.0",
46
- "eslint-config-prettier": "^10.1.1",
47
- "eslint-plugin-prettier": "^5.2.5",
39
+ "eslint-config-prettier": "^10.1.8",
40
+ "eslint-plugin-prettier": "^5.5.4",
48
41
  "eslint-plugin-simple-import-sort": "^12.1.1",
49
- "prettier": "3.5.3",
50
- "semantic-release": "^24.2.7",
51
- "typescript-eslint": "^8.18.0",
52
- "typescript": "^5.8.2"
42
+ "eslint": "^9.36.0",
43
+ "prettier": "3.6.2",
44
+ "semantic-release": "^24.2.9",
45
+ "typescript-eslint": "^8.45.0"
53
46
  },
54
47
  "dependencies": {
55
- "@azure/ms-rest-js": "^2.0.4",
48
+ "@azure/ms-rest-js": "^2.7.0",
56
49
  "@azure/storage-blob": "^10.3.0",
57
- "@babel/generator": "7.28.0",
58
- "@babel/parser": "7.28.0",
59
- "@babel/traverse": "7.28.0",
60
- "@babel/types": "7.28.2",
61
- "@betty-blocks/component-sdk": "^1.91.3",
50
+ "@babel/generator": "7.28.3",
51
+ "@babel/parser": "7.28.4",
52
+ "@babel/traverse": "7.28.4",
53
+ "@babel/types": "7.28.4",
54
+ "@betty-blocks/component-sdk": "^1.91.4",
55
+ "@types/adm-zip": "0.5.7",
56
+ "@types/hapi__joi": "^16.0.0",
57
+ "@types/prompts": "^2.4.9",
58
+ "@types/react": "^16.9.9",
59
+ "@types/serve-handler": "^6.1.4",
62
60
  "adm-zip": "0.5.16",
63
61
  "case": "^1.6.3",
64
- "chalk": "^5.5.0",
65
- "commander": "^14.0.0",
66
- "form-data": "4.0.4",
67
- "fs-extra": "11.3.1",
68
- "glob": "^7.2.0",
69
- "joi": "18.0.0",
62
+ "chalk": "^5.6.2",
63
+ "commander": "^14.0.1",
64
+ "fs-extra": "11.3.2",
65
+ "glob": "^11.0.3",
66
+ "joi": "18.0.1",
70
67
  "jsdoc-api": "^7.1.0",
71
- "jsonschema": "^1.4.0",
72
- "minimatch": "10.0.3",
68
+ "jsonschema": "^1.5.0",
73
69
  "minimist": "1.2.8",
74
70
  "node-fetch": "3.3.2",
75
- "ora": "8.2.0",
71
+ "ora": "9.0.0",
76
72
  "prismjs": "1.30.0",
77
73
  "prompts": "^2.4.2",
78
- "semver": "^6.3.0",
79
- "serve": "^11.1.0",
74
+ "semver": "^7.7.2",
80
75
  "serve-handler": "6.1.6",
81
- "tsconfig-paths": "^3.9.0",
76
+ "serve": "^11.1.0",
77
+ "ts-node": "10.9.2",
78
+ "tsconfig-paths": "^3.15.0",
79
+ "typescript": "^5.9.2",
82
80
  "webhead": "^1.1.3"
83
81
  },
84
82
  "bin": {
85
- "bb": "./src/bb.ts"
83
+ "bb": "./build/src/bb.js"
86
84
  },
87
85
  "resolutions": {
88
- "@types/react": "^16.9.9"
86
+ "@types/react": "^16.9.9",
87
+ "@types/minimatch": "5.1.2"
89
88
  },
90
89
  "files": [
91
90
  "assets/",
@@ -1,3 +0,0 @@
1
- const gql = async (query) => {
2
- return [{ id: 1, name: 'Bruce Wayne' }];
3
- };
@@ -1,4 +0,0 @@
1
- test('sayHello 1.0', async () => {
2
- const output = await $app['sayHello 1.0']({ name: 'Bruce' });
3
- assert(output, { greet: 'Hello, Bruce' });
4
- });