@openbuilder/cli 0.50.43 → 0.50.46

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 (86) hide show
  1. package/dist/chunks/{Banner-C-FTiOIR.js → Banner-BKC6yG6z.js} +2 -2
  2. package/dist/chunks/Banner-BKC6yG6z.js.map +1 -0
  3. package/dist/chunks/auto-update-Dq2PFvjt.js +1 -0
  4. package/dist/chunks/auto-update-Dq2PFvjt.js.map +1 -0
  5. package/dist/chunks/build-D0qYqIq0.js +1 -0
  6. package/dist/chunks/build-D0qYqIq0.js.map +1 -0
  7. package/dist/chunks/cleanup-qVTsA3tk.js +1 -0
  8. package/dist/chunks/cleanup-qVTsA3tk.js.map +1 -0
  9. package/dist/chunks/{cli-auth-ChCnxlFl.js → cli-auth-BgiGSBOt.js} +4 -3
  10. package/dist/chunks/cli-auth-BgiGSBOt.js.map +1 -0
  11. package/dist/chunks/cli-error-BjQwvWtK.js +1 -0
  12. package/dist/chunks/cli-error-BjQwvWtK.js.map +1 -0
  13. package/dist/chunks/config-BGP1jZJ4.js +1 -0
  14. package/dist/chunks/config-BGP1jZJ4.js.map +1 -0
  15. package/dist/chunks/config-manager-BkbjtN-H.js +1 -0
  16. package/dist/chunks/config-manager-BkbjtN-H.js.map +1 -0
  17. package/dist/chunks/database-BvAbD4sP.js +1 -0
  18. package/dist/chunks/database-BvAbD4sP.js.map +1 -0
  19. package/dist/chunks/database-setup-BYjIRAmT.js +1 -0
  20. package/dist/chunks/database-setup-BYjIRAmT.js.map +1 -0
  21. package/dist/chunks/devtools-7A3EXJhY.js +75 -0
  22. package/dist/chunks/devtools-7A3EXJhY.js.map +1 -0
  23. package/dist/chunks/index-ZNRLfdj5.js +119 -0
  24. package/dist/chunks/index-ZNRLfdj5.js.map +1 -0
  25. package/dist/chunks/{init-DNyPS_SR.js → init-IQRjA1g3.js} +8 -9
  26. package/dist/chunks/init-IQRjA1g3.js.map +1 -0
  27. package/dist/chunks/{init-tui-EFMXj-MG.js → init-tui-B4jfmo3U.js} +7 -8
  28. package/dist/chunks/init-tui-B4jfmo3U.js.map +1 -0
  29. package/dist/chunks/logger-ZpJi7chw.js +1 -0
  30. package/dist/chunks/logger-ZpJi7chw.js.map +1 -0
  31. package/dist/chunks/{login-BhtodVsj.js → login-CrIcDJpS.js} +2 -1
  32. package/dist/chunks/login-CrIcDJpS.js.map +1 -0
  33. package/dist/chunks/{logout-CDDASeuQ.js → logout-BxgiczmY.js} +2 -1
  34. package/dist/chunks/logout-BxgiczmY.js.map +1 -0
  35. package/dist/chunks/{main-tui-D-SG-Ba5.js → main-tui-NPDVPKol.js} +9 -10
  36. package/dist/chunks/main-tui-NPDVPKol.js.map +1 -0
  37. package/dist/chunks/manager-CvGX9qqe.js +1 -0
  38. package/dist/chunks/manager-CvGX9qqe.js.map +1 -0
  39. package/dist/chunks/{port-allocator-B0q7xkLs.js → port-allocator-DuAZe2_S.js} +3 -36
  40. package/dist/chunks/port-allocator-DuAZe2_S.js.map +1 -0
  41. package/dist/chunks/process-killer-CaUL7Kpl.js +1 -0
  42. package/dist/chunks/process-killer-CaUL7Kpl.js.map +1 -0
  43. package/dist/chunks/prompts-1QbE_bRr.js +1 -0
  44. package/dist/chunks/prompts-1QbE_bRr.js.map +1 -0
  45. package/dist/chunks/repo-cloner-CpOQjFSo.js +1 -0
  46. package/dist/chunks/repo-cloner-CpOQjFSo.js.map +1 -0
  47. package/dist/chunks/repo-detector-B_oj696o.js +1 -0
  48. package/dist/chunks/repo-detector-B_oj696o.js.map +1 -0
  49. package/dist/chunks/{run-Cor14S0I.js → run-Yh3YjeLl.js} +17 -36
  50. package/dist/chunks/run-Yh3YjeLl.js.map +1 -0
  51. package/dist/chunks/runner-logger-instance-nDWv2h2T.js +1 -0
  52. package/dist/chunks/runner-logger-instance-nDWv2h2T.js.map +1 -0
  53. package/dist/chunks/spinner-BJL9zWAJ.js +1 -0
  54. package/dist/chunks/spinner-BJL9zWAJ.js.map +1 -0
  55. package/dist/chunks/{start-k9iGDVWo.js → start-B-brfyVy.js} +7 -7
  56. package/dist/chunks/start-B-brfyVy.js.map +1 -0
  57. package/dist/chunks/start-traditional-uoLZXdxm.js +1 -0
  58. package/dist/chunks/start-traditional-uoLZXdxm.js.map +1 -0
  59. package/dist/chunks/status-cS8YwtUx.js +1 -0
  60. package/dist/chunks/status-cS8YwtUx.js.map +1 -0
  61. package/dist/chunks/{vendor-react-CXgiD1Dl.js → theme-DOjeB8BU.js} +50 -225
  62. package/dist/chunks/theme-DOjeB8BU.js.map +1 -0
  63. package/dist/chunks/upgrade-CKjl4HlB.js +1 -0
  64. package/dist/chunks/upgrade-CKjl4HlB.js.map +1 -0
  65. package/dist/chunks/use-app-DozfqdJj.js +10 -0
  66. package/dist/chunks/use-app-DozfqdJj.js.map +1 -0
  67. package/dist/chunks/{useBuildState-DscLOZLl.js → useBuildState-DV6wurQ2.js} +2 -2
  68. package/dist/chunks/useBuildState-DV6wurQ2.js.map +1 -0
  69. package/dist/cli/index.js +8 -7
  70. package/dist/cli/index.js.map +1 -0
  71. package/dist/index.js +109 -700
  72. package/dist/index.js.map +1 -0
  73. package/dist/instrument.js +8 -81
  74. package/dist/instrument.js.map +1 -0
  75. package/package.json +2 -11
  76. package/dist/chunks/theme-DhorI2Hb.js +0 -43
  77. package/dist/chunks/vendor-ai-sdk-CSJ0bw9X.js +0 -1970
  78. package/dist/chunks/vendor-sentry-CqA9P3UG.js +0 -71910
  79. package/scripts/install-vendor-deps.js +0 -34
  80. package/scripts/install-vendor.js +0 -167
  81. package/scripts/prepare-release.js +0 -83
  82. package/vendor/ai-sdk-provider-claude-code-LOCAL.tgz +0 -0
  83. package/vendor/sentry-core-LOCAL.tgz +0 -0
  84. package/vendor/sentry-nextjs-LOCAL.tgz +0 -0
  85. package/vendor/sentry-node-LOCAL.tgz +0 -0
  86. package/vendor/sentry-node-core-LOCAL.tgz +0 -0
@@ -1,15 +1,13 @@
1
1
  // OpenBuilder CLI - Built with Rollup
2
- import moduleModule__default from 'module';
3
- import require$$5 from 'events';
4
- import require$$0$1 from 'assert';
5
- import WebSocket from 'ws';
6
- import devtools$1 from 'react-devtools-core';
7
2
  import { PassThrough, Stream } from 'node:stream';
8
3
  import process$1, { env, cwd } from 'node:process';
4
+ import require$$0$1 from 'assert';
5
+ import require$$2 from 'events';
9
6
  import chalk from 'chalk';
10
- import os__default from 'node:os';
7
+ import os from 'node:os';
11
8
  import { EventEmitter } from 'node:events';
12
9
  import * as fs from 'node:fs';
10
+ import require$$1 from 'module';
13
11
  import { Buffer as Buffer$1 } from 'node:buffer';
14
12
 
15
13
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -18,31 +16,6 @@ function getDefaultExportFromCjs (x) {
18
16
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
19
17
  }
20
18
 
21
- function getAugmentedNamespace(n) {
22
- if (n.__esModule) return n;
23
- var f = n.default;
24
- if (typeof f == "function") {
25
- var a = function a () {
26
- if (this instanceof a) {
27
- return Reflect.construct(f, arguments, this.constructor);
28
- }
29
- return f.apply(this, arguments);
30
- };
31
- a.prototype = f.prototype;
32
- } else a = {};
33
- Object.defineProperty(a, '__esModule', {value: true});
34
- Object.keys(n).forEach(function (k) {
35
- var d = Object.getOwnPropertyDescriptor(n, k);
36
- Object.defineProperty(a, k, d.get ? d : {
37
- enumerable: true,
38
- get: function () {
39
- return n[k];
40
- }
41
- });
42
- });
43
- return a;
44
- }
45
-
46
19
  var react = {exports: {}};
47
20
 
48
21
  var react_production = {};
@@ -2063,7 +2036,7 @@ const isOldWindows = () => {
2063
2036
  return false;
2064
2037
  }
2065
2038
 
2066
- const parts = os__default.release().split('.');
2039
+ const parts = os.release().split('.');
2067
2040
  const major = Number(parts[0]);
2068
2041
  const build = Number(parts[2] ?? 0);
2069
2042
 
@@ -2233,7 +2206,7 @@ function requireSignalExit () {
2233
2206
  var signals = requireSignals();
2234
2207
  var isWin = /^win/i.test(process.platform);
2235
2208
 
2236
- var EE = require$$5;
2209
+ var EE = require$$2;
2237
2210
  /* istanbul ignore if */
2238
2211
  if (typeof EE !== 'function') {
2239
2212
  EE = EE.EventEmitter;
@@ -36826,87 +36799,12 @@ const styles = (node, style = {}) => {
36826
36799
  applyGapStyles(node, style);
36827
36800
  };
36828
36801
 
36829
- // Ignoring missing types error to avoid adding another dependency for this hack to work
36830
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
36831
- const customGlobal = global;
36832
- // These things must exist before importing `react-devtools-core`
36833
- // eslint-disable-next-line n/no-unsupported-features/node-builtins
36834
- customGlobal.WebSocket ||= WebSocket;
36835
- customGlobal.window ||= global;
36836
- customGlobal.self ||= global;
36837
- // Filter out Ink's internal components from devtools for a cleaner view.
36838
- // Also, ince `react-devtools-shared` package isn't published on npm, we can't
36839
- // use its types, that's why there are hard-coded values in `type` fields below.
36840
- // See https://github.com/facebook/react/blob/edf6eac8a181860fd8a2d076a43806f1237495a1/packages/react-devtools-shared/src/types.js#L24
36841
- customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
36842
- {
36843
- // ComponentFilterElementType
36844
- type: 1,
36845
- // ElementTypeHostComponent
36846
- value: 7,
36847
- isEnabled: true,
36848
- },
36849
- {
36850
- // ComponentFilterDisplayName
36851
- type: 2,
36852
- value: 'InternalApp',
36853
- isEnabled: true,
36854
- isValid: true,
36855
- },
36856
- {
36857
- // ComponentFilterDisplayName
36858
- type: 2,
36859
- value: 'InternalAppContext',
36860
- isEnabled: true,
36861
- isValid: true,
36862
- },
36863
- {
36864
- // ComponentFilterDisplayName
36865
- type: 2,
36866
- value: 'InternalStdoutContext',
36867
- isEnabled: true,
36868
- isValid: true,
36869
- },
36870
- {
36871
- // ComponentFilterDisplayName
36872
- type: 2,
36873
- value: 'InternalStderrContext',
36874
- isEnabled: true,
36875
- isValid: true,
36876
- },
36877
- {
36878
- // ComponentFilterDisplayName
36879
- type: 2,
36880
- value: 'InternalStdinContext',
36881
- isEnabled: true,
36882
- isValid: true,
36883
- },
36884
- {
36885
- // ComponentFilterDisplayName
36886
- type: 2,
36887
- value: 'InternalFocusContext',
36888
- isEnabled: true,
36889
- isValid: true,
36890
- },
36891
- ];
36892
-
36893
- /* eslint-disable import/order */
36894
- // eslint-disable-next-line import/no-unassigned-import
36895
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call
36896
- devtools$1.initialize();
36897
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call
36898
- devtools$1.connectToDevTools();
36899
-
36900
- var devtools = /*#__PURE__*/Object.freeze({
36901
- __proto__: null
36902
- });
36903
-
36904
36802
  // We need to conditionally perform devtools connection to avoid
36905
36803
  // accidentally breaking other third-party code.
36906
36804
  // See https://github.com/vadimdemedes/ink/issues/384
36907
36805
  if (process$1.env['DEV'] === 'true') {
36908
36806
  try {
36909
- await Promise.resolve().then(function () { return devtools; });
36807
+ await import('./devtools-7A3EXJhY.js');
36910
36808
  }
36911
36809
  catch (error) {
36912
36810
  if (error.code === 'ERR_MODULE_NOT_FOUND') {
@@ -38390,7 +38288,7 @@ function requireStackUtils () {
38390
38288
  : '.';
38391
38289
 
38392
38290
  const natives = [].concat(
38393
- moduleModule__default.builtinModules,
38291
+ require$$1.builtinModules,
38394
38292
  'bootstrap_node',
38395
38293
  'node',
38396
38294
  ).map(n => new RegExp(`(?:\\((?:node:)?${n}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${n}(?:\\.js)?:\\d+:\\d+$)`));
@@ -39847,11 +39745,6 @@ const useInput = (inputHandler, options = {}) => {
39847
39745
  }, [options.isActive, stdin, internal_exitOnCtrlC, inputHandler]);
39848
39746
  };
39849
39747
 
39850
- /**
39851
- `useApp` is a React hook that exposes a method to manually exit the app (unmount).
39852
- */
39853
- const useApp = () => reactExports.useContext(AppContext);
39854
-
39855
39748
  /**
39856
39749
  `useStdout` is a React hook that exposes the stdout stream where Ink renders your app.
39857
39750
  */
@@ -40284,114 +40177,46 @@ function requireJsxRuntime () {
40284
40177
 
40285
40178
  var jsxRuntimeExports = requireJsxRuntime();
40286
40179
 
40287
- function TextInput({ value: originalValue, placeholder = '', focus = true, mask, highlightPastedText = false, showCursor = true, onChange, onSubmit, }) {
40288
- const [state, setState] = reactExports.useState({
40289
- cursorOffset: (originalValue || '').length,
40290
- cursorWidth: 0,
40291
- });
40292
- const { cursorOffset, cursorWidth } = state;
40293
- reactExports.useEffect(() => {
40294
- setState(previousState => {
40295
- if (!focus || !showCursor) {
40296
- return previousState;
40297
- }
40298
- const newValue = originalValue || '';
40299
- if (previousState.cursorOffset > newValue.length - 1) {
40300
- return {
40301
- cursorOffset: newValue.length,
40302
- cursorWidth: 0,
40303
- };
40304
- }
40305
- return previousState;
40306
- });
40307
- }, [originalValue, focus, showCursor]);
40308
- const cursorActualWidth = highlightPastedText ? cursorWidth : 0;
40309
- const value = mask ? mask.repeat(originalValue.length) : originalValue;
40310
- let renderedValue = value;
40311
- let renderedPlaceholder = placeholder ? chalk.grey(placeholder) : undefined;
40312
- // Fake mouse cursor, because it's too inconvenient to deal with actual cursor and ansi escapes
40313
- if (showCursor && focus) {
40314
- renderedPlaceholder =
40315
- placeholder.length > 0
40316
- ? chalk.inverse(placeholder[0]) + chalk.grey(placeholder.slice(1))
40317
- : chalk.inverse(' ');
40318
- renderedValue = value.length > 0 ? '' : chalk.inverse(' ');
40319
- let i = 0;
40320
- for (const char of value) {
40321
- renderedValue +=
40322
- i >= cursorOffset - cursorActualWidth && i <= cursorOffset
40323
- ? chalk.inverse(char)
40324
- : char;
40325
- i++;
40326
- }
40327
- if (value.length > 0 && cursorOffset === value.length) {
40328
- renderedValue += chalk.inverse(' ');
40329
- }
40330
- }
40331
- useInput((input, key) => {
40332
- if (key.upArrow ||
40333
- key.downArrow ||
40334
- (key.ctrl && input === 'c') ||
40335
- key.tab ||
40336
- (key.shift && key.tab)) {
40337
- return;
40338
- }
40339
- if (key.return) {
40340
- if (onSubmit) {
40341
- onSubmit(originalValue);
40342
- }
40343
- return;
40344
- }
40345
- let nextCursorOffset = cursorOffset;
40346
- let nextValue = originalValue;
40347
- let nextCursorWidth = 0;
40348
- if (key.leftArrow) {
40349
- if (showCursor) {
40350
- nextCursorOffset--;
40351
- }
40352
- }
40353
- else if (key.rightArrow) {
40354
- if (showCursor) {
40355
- nextCursorOffset++;
40356
- }
40357
- }
40358
- else if (key.backspace || key.delete) {
40359
- if (cursorOffset > 0) {
40360
- nextValue =
40361
- originalValue.slice(0, cursorOffset - 1) +
40362
- originalValue.slice(cursorOffset, originalValue.length);
40363
- nextCursorOffset--;
40364
- }
40365
- }
40366
- else {
40367
- nextValue =
40368
- originalValue.slice(0, cursorOffset) +
40369
- input +
40370
- originalValue.slice(cursorOffset, originalValue.length);
40371
- nextCursorOffset += input.length;
40372
- if (input.length > 1) {
40373
- nextCursorWidth = input.length;
40374
- }
40375
- }
40376
- if (cursorOffset < 0) {
40377
- nextCursorOffset = 0;
40378
- }
40379
- if (cursorOffset > originalValue.length) {
40380
- nextCursorOffset = originalValue.length;
40381
- }
40382
- setState({
40383
- cursorOffset: nextCursorOffset,
40384
- cursorWidth: nextCursorWidth,
40385
- });
40386
- if (nextValue !== originalValue) {
40387
- onChange(nextValue);
40388
- }
40389
- }, { isActive: focus });
40390
- return (React.createElement(Text, null, placeholder
40391
- ? value.length > 0
40392
- ? renderedValue
40393
- : renderedPlaceholder
40394
- : renderedValue));
40395
- }
40180
+ /**
40181
+ * Theme and color definitions for the TUI
40182
+ */
40183
+ const colors = {
40184
+ // Primary brand colors
40185
+ cyan: '#06b6d4',
40186
+ purple: '#a855f7',
40187
+ brightPurple: '#c084fc',
40188
+ // Status colors
40189
+ success: '#22c55e',
40190
+ error: '#ef4444',
40191
+ warning: '#f59e0b',
40192
+ // Neutral colors
40193
+ white: '#ffffff',
40194
+ gray: '#6b7280',
40195
+ dimGray: '#4b5563',
40196
+ darkGray: '#374151',
40197
+ };
40198
+ const symbols = {
40199
+ // Progress indicators
40200
+ filledDot: '●',
40201
+ hollowDot: '○',
40202
+ errorDot: '✗',
40203
+ // Task states
40204
+ check: '✓',
40205
+ cross: '✗',
40206
+ // Connectors
40207
+ horizontalLine: '─',
40208
+ // Spinners (will cycle through these)
40209
+ spinnerFrames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'],
40210
+ };
40211
+ const layout = {
40212
+ // Animation timing (slower as requested)
40213
+ spinnerInterval: 120, // ms between spinner frames
40214
+ taskCompletionDelay: 400, // ms to pause after task completion
40215
+ stepTransitionDelay: 300, // ms between step transitions
40216
+ // Shared width for progress stepper and task list (keeps them aligned)
40217
+ // ProgressStepper: 4 cells * 10 chars + 3 connectors * 7 chars = 61 chars
40218
+ progressWidth: 61,
40219
+ };
40396
40220
 
40397
- export { Box as B, React as R, Text as T, getDefaultExportFromCjs as a, useStdout as b, TextInput as c, useApp as d, render as e, getAugmentedNamespace as g, jsxRuntimeExports as j, reactExports as r, useInput as u };
40221
+ export { AppContext as A, Box as B, React as R, Text as T, useStdout as a, render as b, colors as c, jsxRuntimeExports as j, layout as l, reactExports as r, symbols as s, useInput as u };
40222
+ //# sourceMappingURL=theme-DOjeB8BU.js.map