byterover-cli 2.3.0 → 2.3.2

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 (56) hide show
  1. package/dist/oclif/commands/restart.d.ts +34 -50
  2. package/dist/oclif/commands/restart.js +122 -209
  3. package/dist/oclif/hooks/init/block-command-update-npm.d.ts +11 -0
  4. package/dist/oclif/hooks/init/block-command-update-npm.js +15 -0
  5. package/dist/oclif/hooks/init/update-notifier.d.ts +3 -0
  6. package/dist/oclif/hooks/init/update-notifier.js +17 -4
  7. package/dist/oclif/hooks/postrun/restart-after-update.d.ts +22 -0
  8. package/dist/oclif/hooks/postrun/restart-after-update.js +40 -0
  9. package/dist/server/infra/http/openrouter-api-client.js +1 -1
  10. package/node_modules/@campfirein/brv-transport-client/package.json +1 -1
  11. package/node_modules/{socket.io-parser/node_modules/debug → debug}/package.json +7 -3
  12. package/node_modules/{socket.io-parser/node_modules/debug → debug}/src/browser.js +2 -1
  13. package/node_modules/{socket.io-client/node_modules/debug → debug}/src/common.js +57 -39
  14. package/node_modules/socket.io-client/build/cjs/index.d.ts +2 -2
  15. package/node_modules/socket.io-client/build/cjs/socket.js +2 -3
  16. package/node_modules/socket.io-client/build/esm/index.d.ts +2 -2
  17. package/node_modules/socket.io-client/build/esm/package.json +1 -1
  18. package/node_modules/socket.io-client/build/esm/socket.js +1 -3
  19. package/node_modules/socket.io-client/build/esm-debug/index.d.ts +2 -2
  20. package/node_modules/socket.io-client/build/esm-debug/package.json +1 -1
  21. package/node_modules/socket.io-client/build/esm-debug/socket.js +2 -3
  22. package/node_modules/socket.io-client/dist/socket.io.esm.min.js +3 -3
  23. package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -1
  24. package/node_modules/socket.io-client/dist/socket.io.js +89 -42
  25. package/node_modules/socket.io-client/dist/socket.io.js.map +1 -1
  26. package/node_modules/socket.io-client/dist/socket.io.min.js +3 -3
  27. package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -1
  28. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +3 -3
  29. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -1
  30. package/node_modules/socket.io-client/package.json +3 -3
  31. package/node_modules/socket.io-parser/LICENSE +1 -1
  32. package/node_modules/socket.io-parser/build/cjs/binary.js +2 -3
  33. package/node_modules/socket.io-parser/build/cjs/index.d.ts +15 -4
  34. package/node_modules/socket.io-parser/build/cjs/index.js +62 -16
  35. package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +1 -1
  36. package/node_modules/socket.io-parser/build/cjs/is-binary.js +2 -3
  37. package/node_modules/socket.io-parser/build/esm/index.d.ts +15 -4
  38. package/node_modules/socket.io-parser/build/esm/index.js +60 -15
  39. package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +1 -1
  40. package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +15 -4
  41. package/node_modules/socket.io-parser/build/esm-debug/index.js +60 -15
  42. package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +1 -1
  43. package/node_modules/socket.io-parser/package.json +8 -22
  44. package/oclif.manifest.json +107 -100
  45. package/package.json +7 -7
  46. package/node_modules/socket.io-client/node_modules/debug/package.json +0 -60
  47. package/node_modules/socket.io-client/node_modules/debug/src/browser.js +0 -271
  48. package/node_modules/socket.io-parser/node_modules/debug/LICENSE +0 -20
  49. package/node_modules/socket.io-parser/node_modules/debug/README.md +0 -481
  50. package/node_modules/socket.io-parser/node_modules/debug/src/common.js +0 -274
  51. package/node_modules/socket.io-parser/node_modules/debug/src/index.js +0 -10
  52. package/node_modules/socket.io-parser/node_modules/debug/src/node.js +0 -263
  53. /package/node_modules/{socket.io-client/node_modules/debug → debug}/LICENSE +0 -0
  54. /package/node_modules/{socket.io-client/node_modules/debug → debug}/README.md +0 -0
  55. /package/node_modules/{socket.io-client/node_modules/debug → debug}/src/index.js +0 -0
  56. /package/node_modules/{socket.io-client/node_modules/debug → debug}/src/node.js +0 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Socket.IO v4.8.1
3
- * (c) 2014-2024 Guillermo Rauch
2
+ * Socket.IO v4.8.3
3
+ * (c) 2014-2025 Guillermo Rauch
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -899,7 +899,7 @@
899
899
  return hostname.indexOf(":") === -1 ? hostname : "[" + hostname + "]";
900
900
  };
901
901
  _proto._port = function _port() {
902
- if (this.opts.port && (this.opts.secure && Number(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80)) {
902
+ if (this.opts.port && (this.opts.secure && Number(this.opts.port) !== 443 || !this.opts.secure && Number(this.opts.port) !== 80)) {
903
903
  return ":" + this.opts.port;
904
904
  } else {
905
905
  return "";
@@ -2669,21 +2669,65 @@
2669
2669
  createDebug.namespaces = namespaces;
2670
2670
  createDebug.names = [];
2671
2671
  createDebug.skips = [];
2672
- var i;
2673
- var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
2674
- var len = split.length;
2675
- for (i = 0; i < len; i++) {
2676
- if (!split[i]) {
2677
- // ignore empty strings
2678
- continue;
2672
+ var split = (typeof namespaces === 'string' ? namespaces : '').trim().replace(/\s+/g, ',').split(',').filter(Boolean);
2673
+ var _iterator = _createForOfIteratorHelper(split),
2674
+ _step;
2675
+ try {
2676
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2677
+ var ns = _step.value;
2678
+ if (ns[0] === '-') {
2679
+ createDebug.skips.push(ns.slice(1));
2680
+ } else {
2681
+ createDebug.names.push(ns);
2682
+ }
2679
2683
  }
2680
- namespaces = split[i].replace(/\*/g, '.*?');
2681
- if (namespaces[0] === '-') {
2682
- createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
2684
+ } catch (err) {
2685
+ _iterator.e(err);
2686
+ } finally {
2687
+ _iterator.f();
2688
+ }
2689
+ }
2690
+
2691
+ /**
2692
+ * Checks if the given string matches a namespace template, honoring
2693
+ * asterisks as wildcards.
2694
+ *
2695
+ * @param {String} search
2696
+ * @param {String} template
2697
+ * @return {Boolean}
2698
+ */
2699
+ function matchesTemplate(search, template) {
2700
+ var searchIndex = 0;
2701
+ var templateIndex = 0;
2702
+ var starIndex = -1;
2703
+ var matchIndex = 0;
2704
+ while (searchIndex < search.length) {
2705
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
2706
+ // Match character or proceed with wildcard
2707
+ if (template[templateIndex] === '*') {
2708
+ starIndex = templateIndex;
2709
+ matchIndex = searchIndex;
2710
+ templateIndex++; // Skip the '*'
2711
+ } else {
2712
+ searchIndex++;
2713
+ templateIndex++;
2714
+ }
2715
+ } else if (starIndex !== -1) {
2716
+ // eslint-disable-line no-negated-condition
2717
+ // Backtrack to the last '*' and try to match more characters
2718
+ templateIndex = starIndex + 1;
2719
+ matchIndex++;
2720
+ searchIndex = matchIndex;
2683
2721
  } else {
2684
- createDebug.names.push(new RegExp('^' + namespaces + '$'));
2722
+ return false; // No match
2685
2723
  }
2686
2724
  }
2725
+
2726
+ // Handle trailing '*' in template
2727
+ while (templateIndex < template.length && template[templateIndex] === '*') {
2728
+ templateIndex++;
2729
+ }
2730
+ return templateIndex === template.length;
2687
2731
  }
2688
2732
 
2689
2733
  /**
@@ -2693,7 +2737,7 @@
2693
2737
  * @api public
2694
2738
  */
2695
2739
  function disable() {
2696
- var namespaces = [].concat(_toConsumableArray(createDebug.names.map(toNamespace)), _toConsumableArray(createDebug.skips.map(toNamespace).map(function (namespace) {
2740
+ var namespaces = [].concat(_toConsumableArray(createDebug.names), _toConsumableArray(createDebug.skips.map(function (namespace) {
2697
2741
  return '-' + namespace;
2698
2742
  }))).join(',');
2699
2743
  createDebug.enable('');
@@ -2708,35 +2752,37 @@
2708
2752
  * @api public
2709
2753
  */
2710
2754
  function enabled(name) {
2711
- if (name[name.length - 1] === '*') {
2712
- return true;
2713
- }
2714
- var i;
2715
- var len;
2716
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
2717
- if (createDebug.skips[i].test(name)) {
2718
- return false;
2755
+ var _iterator2 = _createForOfIteratorHelper(createDebug.skips),
2756
+ _step2;
2757
+ try {
2758
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2759
+ var skip = _step2.value;
2760
+ if (matchesTemplate(name, skip)) {
2761
+ return false;
2762
+ }
2719
2763
  }
2764
+ } catch (err) {
2765
+ _iterator2.e(err);
2766
+ } finally {
2767
+ _iterator2.f();
2720
2768
  }
2721
- for (i = 0, len = createDebug.names.length; i < len; i++) {
2722
- if (createDebug.names[i].test(name)) {
2723
- return true;
2769
+ var _iterator3 = _createForOfIteratorHelper(createDebug.names),
2770
+ _step3;
2771
+ try {
2772
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2773
+ var ns = _step3.value;
2774
+ if (matchesTemplate(name, ns)) {
2775
+ return true;
2776
+ }
2724
2777
  }
2778
+ } catch (err) {
2779
+ _iterator3.e(err);
2780
+ } finally {
2781
+ _iterator3.f();
2725
2782
  }
2726
2783
  return false;
2727
2784
  }
2728
2785
 
2729
- /**
2730
- * Convert regexp to namespace
2731
- *
2732
- * @param {RegExp} regxep
2733
- * @return {String} namespace
2734
- * @api private
2735
- */
2736
- function toNamespace(regexp) {
2737
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, '*');
2738
- }
2739
-
2740
2786
  /**
2741
2787
  * Coerce `val`.
2742
2788
  *
@@ -2812,15 +2858,17 @@
2812
2858
  if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
2813
2859
  return false;
2814
2860
  }
2861
+ var m;
2815
2862
 
2816
2863
  // Is webkit? http://stackoverflow.com/a/16459606/376773
2817
2864
  // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
2865
+ // eslint-disable-next-line no-return-assign
2818
2866
  return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
2819
2867
  // Is firebug? http://stackoverflow.com/a/398120/376773
2820
2868
  typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) ||
2821
2869
  // Is firefox >= v31?
2822
2870
  // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
2823
- typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 ||
2871
+ typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 ||
2824
2872
  // Double check webkit in userAgent just in case we are in a worker
2825
2873
  typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
2826
2874
  }
@@ -2896,7 +2944,7 @@
2896
2944
  function load() {
2897
2945
  var r;
2898
2946
  try {
2899
- r = exports.storage.getItem('debug');
2947
+ r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG');
2900
2948
  } catch (error) {
2901
2949
  // Swallow
2902
2950
  // XXX (@Qix-) should we be logging these?
@@ -3828,8 +3876,7 @@
3828
3876
  };
3829
3877
  args.push(function (err) {
3830
3878
  if (packet !== _this4._queue[0]) {
3831
- // the packet has already been acknowledged
3832
- return;
3879
+ return debug$2("packet [%d] already acknowledged", packet.id);
3833
3880
  }
3834
3881
  var hasError = err !== null;
3835
3882
  if (hasError) {
@@ -4100,8 +4147,8 @@
4100
4147
  this._pid = pid; // defined only if connection state recovery is enabled
4101
4148
  this.connected = true;
4102
4149
  this.emitBuffered();
4103
- this.emitReserved("connect");
4104
4150
  this._drainQueue(true);
4151
+ this.emitReserved("connect");
4105
4152
  }
4106
4153
  /**
4107
4154
  * Emit buffered events (received and emitted).