@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.
- package/dist/chunks/{Banner-C-FTiOIR.js → Banner-BKC6yG6z.js} +2 -2
- package/dist/chunks/Banner-BKC6yG6z.js.map +1 -0
- package/dist/chunks/auto-update-Dq2PFvjt.js +1 -0
- package/dist/chunks/auto-update-Dq2PFvjt.js.map +1 -0
- package/dist/chunks/build-D0qYqIq0.js +1 -0
- package/dist/chunks/build-D0qYqIq0.js.map +1 -0
- package/dist/chunks/cleanup-qVTsA3tk.js +1 -0
- package/dist/chunks/cleanup-qVTsA3tk.js.map +1 -0
- package/dist/chunks/{cli-auth-ChCnxlFl.js → cli-auth-BgiGSBOt.js} +4 -3
- package/dist/chunks/cli-auth-BgiGSBOt.js.map +1 -0
- package/dist/chunks/cli-error-BjQwvWtK.js +1 -0
- package/dist/chunks/cli-error-BjQwvWtK.js.map +1 -0
- package/dist/chunks/config-BGP1jZJ4.js +1 -0
- package/dist/chunks/config-BGP1jZJ4.js.map +1 -0
- package/dist/chunks/config-manager-BkbjtN-H.js +1 -0
- package/dist/chunks/config-manager-BkbjtN-H.js.map +1 -0
- package/dist/chunks/database-BvAbD4sP.js +1 -0
- package/dist/chunks/database-BvAbD4sP.js.map +1 -0
- package/dist/chunks/database-setup-BYjIRAmT.js +1 -0
- package/dist/chunks/database-setup-BYjIRAmT.js.map +1 -0
- package/dist/chunks/devtools-7A3EXJhY.js +75 -0
- package/dist/chunks/devtools-7A3EXJhY.js.map +1 -0
- package/dist/chunks/index-ZNRLfdj5.js +119 -0
- package/dist/chunks/index-ZNRLfdj5.js.map +1 -0
- package/dist/chunks/{init-DNyPS_SR.js → init-IQRjA1g3.js} +8 -9
- package/dist/chunks/init-IQRjA1g3.js.map +1 -0
- package/dist/chunks/{init-tui-EFMXj-MG.js → init-tui-B4jfmo3U.js} +7 -8
- package/dist/chunks/init-tui-B4jfmo3U.js.map +1 -0
- package/dist/chunks/logger-ZpJi7chw.js +1 -0
- package/dist/chunks/logger-ZpJi7chw.js.map +1 -0
- package/dist/chunks/{login-BhtodVsj.js → login-CrIcDJpS.js} +2 -1
- package/dist/chunks/login-CrIcDJpS.js.map +1 -0
- package/dist/chunks/{logout-CDDASeuQ.js → logout-BxgiczmY.js} +2 -1
- package/dist/chunks/logout-BxgiczmY.js.map +1 -0
- package/dist/chunks/{main-tui-D-SG-Ba5.js → main-tui-NPDVPKol.js} +9 -10
- package/dist/chunks/main-tui-NPDVPKol.js.map +1 -0
- package/dist/chunks/manager-CvGX9qqe.js +1 -0
- package/dist/chunks/manager-CvGX9qqe.js.map +1 -0
- package/dist/chunks/{port-allocator-B0q7xkLs.js → port-allocator-DuAZe2_S.js} +3 -36
- package/dist/chunks/port-allocator-DuAZe2_S.js.map +1 -0
- package/dist/chunks/process-killer-CaUL7Kpl.js +1 -0
- package/dist/chunks/process-killer-CaUL7Kpl.js.map +1 -0
- package/dist/chunks/prompts-1QbE_bRr.js +1 -0
- package/dist/chunks/prompts-1QbE_bRr.js.map +1 -0
- package/dist/chunks/repo-cloner-CpOQjFSo.js +1 -0
- package/dist/chunks/repo-cloner-CpOQjFSo.js.map +1 -0
- package/dist/chunks/repo-detector-B_oj696o.js +1 -0
- package/dist/chunks/repo-detector-B_oj696o.js.map +1 -0
- package/dist/chunks/{run-Cor14S0I.js → run-Yh3YjeLl.js} +17 -36
- package/dist/chunks/run-Yh3YjeLl.js.map +1 -0
- package/dist/chunks/runner-logger-instance-nDWv2h2T.js +1 -0
- package/dist/chunks/runner-logger-instance-nDWv2h2T.js.map +1 -0
- package/dist/chunks/spinner-BJL9zWAJ.js +1 -0
- package/dist/chunks/spinner-BJL9zWAJ.js.map +1 -0
- package/dist/chunks/{start-k9iGDVWo.js → start-B-brfyVy.js} +7 -7
- package/dist/chunks/start-B-brfyVy.js.map +1 -0
- package/dist/chunks/start-traditional-uoLZXdxm.js +1 -0
- package/dist/chunks/start-traditional-uoLZXdxm.js.map +1 -0
- package/dist/chunks/status-cS8YwtUx.js +1 -0
- package/dist/chunks/status-cS8YwtUx.js.map +1 -0
- package/dist/chunks/{vendor-react-CXgiD1Dl.js → theme-DOjeB8BU.js} +50 -225
- package/dist/chunks/theme-DOjeB8BU.js.map +1 -0
- package/dist/chunks/upgrade-CKjl4HlB.js +1 -0
- package/dist/chunks/upgrade-CKjl4HlB.js.map +1 -0
- package/dist/chunks/use-app-DozfqdJj.js +10 -0
- package/dist/chunks/use-app-DozfqdJj.js.map +1 -0
- package/dist/chunks/{useBuildState-DscLOZLl.js → useBuildState-DV6wurQ2.js} +2 -2
- package/dist/chunks/useBuildState-DV6wurQ2.js.map +1 -0
- package/dist/cli/index.js +8 -7
- package/dist/cli/index.js.map +1 -0
- package/dist/index.js +109 -700
- package/dist/index.js.map +1 -0
- package/dist/instrument.js +8 -81
- package/dist/instrument.js.map +1 -0
- package/package.json +2 -11
- package/dist/chunks/theme-DhorI2Hb.js +0 -43
- package/dist/chunks/vendor-ai-sdk-CSJ0bw9X.js +0 -1970
- package/dist/chunks/vendor-sentry-CqA9P3UG.js +0 -71910
- package/scripts/install-vendor-deps.js +0 -34
- package/scripts/install-vendor.js +0 -167
- package/scripts/prepare-release.js +0 -83
- package/vendor/ai-sdk-provider-claude-code-LOCAL.tgz +0 -0
- package/vendor/sentry-core-LOCAL.tgz +0 -0
- package/vendor/sentry-nextjs-LOCAL.tgz +0 -0
- package/vendor/sentry-node-LOCAL.tgz +0 -0
- package/vendor/sentry-node-core-LOCAL.tgz +0 -0
package/dist/instrument.js
CHANGED
|
@@ -2,94 +2,20 @@
|
|
|
2
2
|
import { createRequire as __createRequire } from 'node:module';
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import 'url';
|
|
7
|
-
import 'path';
|
|
8
|
-
import 'tty';
|
|
9
|
-
import 'util';
|
|
10
|
-
import 'os';
|
|
11
|
-
import 'worker_threads';
|
|
12
|
-
import 'process';
|
|
13
|
-
import 'crypto';
|
|
14
|
-
import 'node:module';
|
|
15
|
-
import 'node:fs';
|
|
16
|
-
import 'node:path';
|
|
17
|
-
import 'node:os';
|
|
18
|
-
import 'async_hooks';
|
|
19
|
-
import 'diagnostics_channel';
|
|
20
|
-
import './chunks/vendor-react-CXgiD1Dl.js';
|
|
21
|
-
import 'module';
|
|
22
|
-
import 'events';
|
|
23
|
-
import 'assert';
|
|
24
|
-
import 'ws';
|
|
25
|
-
import 'react-devtools-core';
|
|
26
|
-
import 'node:stream';
|
|
27
|
-
import 'node:process';
|
|
28
|
-
import 'chalk';
|
|
29
|
-
import 'node:events';
|
|
30
|
-
import 'node:buffer';
|
|
31
|
-
import 'fs';
|
|
32
|
-
import 'node:diagnostics_channel';
|
|
33
|
-
import 'node:net';
|
|
34
|
-
import 'node:child_process';
|
|
35
|
-
import 'node:util';
|
|
36
|
-
import 'node:readline';
|
|
37
|
-
import 'node:worker_threads';
|
|
38
|
-
import 'node:http';
|
|
39
|
-
import 'node:https';
|
|
40
|
-
import 'node:zlib';
|
|
41
|
-
import 'node:tls';
|
|
5
|
+
import * as Sentry from '@sentry/node';
|
|
42
6
|
|
|
43
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
|
-
const SentryAny = Sentry;
|
|
45
7
|
// Debug logging for instrumentation (enabled via DEBUG_SENTRY=1)
|
|
46
8
|
const debugSentry = process.env.DEBUG_SENTRY === '1';
|
|
47
9
|
const log = (msg) => debugSentry && console.log(`[sentry-instrument] ${msg}`);
|
|
48
|
-
// Build integrations array
|
|
49
|
-
// Custom integrations (claudeCodeAgentSdkIntegration, vercelAIIntegration, openAIIntegration)
|
|
50
|
-
// are only available in the vendored Sentry SDK, not the public npm version
|
|
10
|
+
// Build integrations array
|
|
51
11
|
const integrations = [];
|
|
52
|
-
//
|
|
53
|
-
if (typeof httpIntegration === "function") {
|
|
54
|
-
integrations.push(httpIntegration());
|
|
55
|
-
log('
|
|
56
|
-
}
|
|
57
|
-
// Add custom integrations if available (vendored SDK only)
|
|
58
|
-
// Use 'opencode' as agent name when OpenCode SDK is enabled for better Sentry visibility
|
|
59
|
-
const useOpenCodeSdk = process.env.USE_OPENCODE_SDK === '1' && !!process.env.OPENCODE_URL;
|
|
60
|
-
if (typeof SentryAny.claudeCodeAgentSdkIntegration === "function") {
|
|
61
|
-
integrations.push(SentryAny.claudeCodeAgentSdkIntegration({
|
|
62
|
-
recordInputs: true,
|
|
63
|
-
recordOutputs: true,
|
|
64
|
-
agentName: useOpenCodeSdk ? 'opencode' : 'claude-code',
|
|
65
|
-
}));
|
|
66
|
-
log(`✓ Added claudeCodeAgentSdkIntegration (agentName: ${useOpenCodeSdk ? 'opencode' : 'claude-code'})`);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
log('✗ claudeCodeAgentSdkIntegration NOT available - AI spans will use manual instrumentation');
|
|
70
|
-
}
|
|
71
|
-
if (typeof SentryAny.vercelAIIntegration === "function") {
|
|
72
|
-
integrations.push(SentryAny.vercelAIIntegration({
|
|
73
|
-
recordInputs: true,
|
|
74
|
-
recordOutputs: true,
|
|
75
|
-
}));
|
|
76
|
-
log('✓ Added vercelAIIntegration');
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
log('✗ vercelAIIntegration NOT available');
|
|
80
|
-
}
|
|
81
|
-
if (typeof SentryAny.openAIIntegration === "function") {
|
|
82
|
-
integrations.push(SentryAny.openAIIntegration({
|
|
83
|
-
recordInputs: true,
|
|
84
|
-
recordOutputs: true,
|
|
85
|
-
}));
|
|
86
|
-
log('✓ Added openAIIntegration');
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
log('✗ openAIIntegration NOT available');
|
|
12
|
+
// Add http integration for request tracing
|
|
13
|
+
if (typeof Sentry.httpIntegration === "function") {
|
|
14
|
+
integrations.push(Sentry.httpIntegration());
|
|
15
|
+
log('Added httpIntegration');
|
|
90
16
|
}
|
|
91
17
|
log(`Total integrations configured: ${integrations.length}`);
|
|
92
|
-
init({
|
|
18
|
+
Sentry.init({
|
|
93
19
|
dsn: process.env.SENTRY_DSN,
|
|
94
20
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
95
21
|
integrations: integrations,
|
|
@@ -116,3 +42,4 @@ init({
|
|
|
116
42
|
/^https?:\/\/.*\.openbuilder\.app/, // Custom domain subdomains
|
|
117
43
|
],
|
|
118
44
|
});
|
|
45
|
+
//# sourceMappingURL=instrument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrument.js","sources":["../src/instrument.ts"],"sourcesContent":["import * as Sentry from \"@sentry/node\";\n\n// Debug logging for instrumentation (enabled via DEBUG_SENTRY=1)\nconst debugSentry = process.env.DEBUG_SENTRY === '1';\nconst log = (msg: string) => debugSentry && console.log(`[sentry-instrument] ${msg}`);\n\n// Build integrations array\nconst integrations: unknown[] = [];\n\n// Add http integration for request tracing\nif (typeof Sentry.httpIntegration === \"function\") {\n integrations.push(Sentry.httpIntegration());\n log('Added httpIntegration');\n}\n\nlog(`Total integrations configured: ${integrations.length}`);\n\nSentry.init({\n dsn: process.env.SENTRY_DSN,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n integrations: integrations as any[],\n tracesSampleRate: 1.0,\n debug: false,\n sendDefaultPii: false,\n // Configure trace propagation (Runner → Broker communication)\n tracePropagationTargets: [\n // Local development\n \"localhost\",\n \"localhost:3000\",\n \"localhost:4000\",\n /^https?:\\/\\/localhost:\\d+$/,\n\n // Production domains\n \"openbuilder.sh\",\n \"openbuilder.app\",\n \"openbuilder.up.railway.app\",\n \"broker.openbuilder.sh\",\n \"broker.openbuilder.app\",\n \"broker.up.railway.app\",\n\n // Wildcard patterns for Railway\n /^https?:\\/\\/.*\\.railway\\.app/, // Railway deployments\n /^https?:\\/\\/.*\\.up\\.railway\\.app/, // Railway preview deployments\n /^https?:\\/\\/.*\\.openbuilder\\.app/, // Custom domain subdomains\n ],\n});\n"],"names":[],"mappings":";;;;;;AAEA;AACA,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,GAAG;AACpD,MAAM,GAAG,GAAG,CAAC,GAAW,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,GAAG,CAAA,CAAE,CAAC;AAErF;AACA,MAAM,YAAY,GAAc,EAAE;AAElC;AACA,IAAI,OAAO,MAAM,CAAC,eAAe,KAAK,UAAU,EAAE;IAChD,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;IAC3C,GAAG,CAAC,uBAAuB,CAAC;AAC9B;AAEA,GAAG,CAAC,CAAA,+BAAA,EAAkC,YAAY,CAAC,MAAM,CAAA,CAAE,CAAC;AAE5D,MAAM,CAAC,IAAI,CAAC;AACV,IAAA,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;;AAE3B,IAAA,YAAY,EAAE,YAAqB;AACnC,IAAA,gBAAgB,EAAE,GAAG;AACrB,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,cAAc,EAAE,KAAK;;AAErB,IAAA,uBAAuB,EAAE;;QAEvB,WAAW;QACX,gBAAgB;QAChB,gBAAgB;QAChB,4BAA4B;;QAG5B,gBAAgB;QAChB,iBAAiB;QACjB,4BAA4B;QAC5B,uBAAuB;QACvB,wBAAwB;QACxB,uBAAuB;;AAGvB,QAAA,8BAA8B;AAC9B,QAAA,kCAAkC;AAClC,QAAA,kCAAkC;AACnC,KAAA;AACF,CAAA,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openbuilder/cli",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.46",
|
|
4
4
|
"description": "OpenBuilder CLI - Build AI-powered apps with Claude. Just run: npx @openbuilder/cli runner",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
"bin/",
|
|
14
14
|
"dist/",
|
|
15
15
|
"templates/",
|
|
16
|
-
"vendor/*.tgz",
|
|
17
|
-
"scripts/",
|
|
18
16
|
"templates.json",
|
|
19
17
|
".npmrc"
|
|
20
18
|
],
|
|
@@ -43,7 +41,6 @@
|
|
|
43
41
|
"homepage": "https://github.com/codyde/openbuilder#readme",
|
|
44
42
|
"preferGlobal": true,
|
|
45
43
|
"scripts": {
|
|
46
|
-
"postinstall": "node scripts/install-vendor.js",
|
|
47
44
|
"dev": "RUNNER_WS_URL=ws://localhost:3000/ws/runner tsx --import ./src/instrument.ts src/index.ts",
|
|
48
45
|
"dev:cli": "tsx --import ./src/instrument.ts src/cli/index.ts",
|
|
49
46
|
"build": "rollup -c && cp templates.json dist/",
|
|
@@ -52,16 +49,10 @@
|
|
|
52
49
|
"cli": "node --import ./dist/instrument.js dist/cli/index.js"
|
|
53
50
|
},
|
|
54
51
|
"dependencies": {
|
|
55
|
-
"@ai-sdk/openai": "^2.0.53",
|
|
56
52
|
"@anthropic-ai/claude-agent-sdk": "^0.2.12",
|
|
57
53
|
"@clack/prompts": "^0.11.0",
|
|
58
54
|
"@openai/codex-sdk": "^0.53.0",
|
|
59
|
-
"@sentry/
|
|
60
|
-
"@sentry/nextjs": "^10.17.0",
|
|
61
|
-
"@sentry/node": "^10.17.0",
|
|
62
|
-
"@sentry/node-core": "^10.17.0",
|
|
63
|
-
"ai": "^5.0.79",
|
|
64
|
-
"ai-sdk-provider-claude-code": "^2.1.0",
|
|
55
|
+
"@sentry/node": "^10.37.0",
|
|
65
56
|
"chalk": "^5.6.2",
|
|
66
57
|
"commander": "^14.0.1",
|
|
67
58
|
"conf": "^15.0.2",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// OpenBuilder CLI - Built with Rollup
|
|
2
|
-
/**
|
|
3
|
-
* Theme and color definitions for the TUI
|
|
4
|
-
*/
|
|
5
|
-
const colors = {
|
|
6
|
-
// Primary brand colors
|
|
7
|
-
cyan: '#06b6d4',
|
|
8
|
-
purple: '#a855f7',
|
|
9
|
-
brightPurple: '#c084fc',
|
|
10
|
-
// Status colors
|
|
11
|
-
success: '#22c55e',
|
|
12
|
-
error: '#ef4444',
|
|
13
|
-
warning: '#f59e0b',
|
|
14
|
-
// Neutral colors
|
|
15
|
-
white: '#ffffff',
|
|
16
|
-
gray: '#6b7280',
|
|
17
|
-
dimGray: '#4b5563',
|
|
18
|
-
darkGray: '#374151',
|
|
19
|
-
};
|
|
20
|
-
const symbols = {
|
|
21
|
-
// Progress indicators
|
|
22
|
-
filledDot: '●',
|
|
23
|
-
hollowDot: '○',
|
|
24
|
-
errorDot: '✗',
|
|
25
|
-
// Task states
|
|
26
|
-
check: '✓',
|
|
27
|
-
cross: '✗',
|
|
28
|
-
// Connectors
|
|
29
|
-
horizontalLine: '─',
|
|
30
|
-
// Spinners (will cycle through these)
|
|
31
|
-
spinnerFrames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'],
|
|
32
|
-
};
|
|
33
|
-
const layout = {
|
|
34
|
-
// Animation timing (slower as requested)
|
|
35
|
-
spinnerInterval: 120, // ms between spinner frames
|
|
36
|
-
taskCompletionDelay: 400, // ms to pause after task completion
|
|
37
|
-
stepTransitionDelay: 300, // ms between step transitions
|
|
38
|
-
// Shared width for progress stepper and task list (keeps them aligned)
|
|
39
|
-
// ProgressStepper: 4 cells * 10 chars + 3 connectors * 7 chars = 61 chars
|
|
40
|
-
progressWidth: 61,
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export { colors as c, layout as l, symbols as s };
|