@boxes-dev/dvb-runtime 1.0.707 → 1.0.708
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/bin/dvb.cjs +23 -50
- package/dist/bin/dvb.cjs.map +1 -1
- package/dist/bin/dvbd.cjs +6 -6
- package/package.json +2 -2
package/dist/bin/dvb.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="95a3965a-c871-5a95-aa80-40f114e5e014")}catch(e){}}();
|
|
4
4
|
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -74555,8 +74555,8 @@ var init_otel = __esm({
|
|
|
74555
74555
|
return trimmed && trimmed.length > 0 ? trimmed : void 0;
|
|
74556
74556
|
};
|
|
74557
74557
|
readBuildMetadata = () => {
|
|
74558
|
-
const rawPackageVersion = "1.0.
|
|
74559
|
-
const rawGitSha = "
|
|
74558
|
+
const rawPackageVersion = "1.0.708";
|
|
74559
|
+
const rawGitSha = "dbc2b38ef01ad4821cae425ea5ca9032dcdaee62";
|
|
74560
74560
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
74561
74561
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
74562
74562
|
return { packageVersion, gitSha };
|
|
@@ -112515,9 +112515,9 @@ var init_sentry = __esm({
|
|
|
112515
112515
|
uncaughtExceptionMonitorInstalled = false;
|
|
112516
112516
|
currentDevboxSentryUser = null;
|
|
112517
112517
|
readBuildMetadata2 = () => {
|
|
112518
|
-
const rawPackageVersion = "1.0.
|
|
112519
|
-
const rawGitSha = "
|
|
112520
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
112518
|
+
const rawPackageVersion = "1.0.708";
|
|
112519
|
+
const rawGitSha = "dbc2b38ef01ad4821cae425ea5ca9032dcdaee62";
|
|
112520
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.708+dbc2b38ef01ad4821cae425ea5ca9032dcdaee62";
|
|
112521
112521
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
112522
112522
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
112523
112523
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -118625,7 +118625,7 @@ var init_packageVersion = __esm({
|
|
|
118625
118625
|
return import_node_path16.default.join(process.cwd(), "dvb");
|
|
118626
118626
|
};
|
|
118627
118627
|
readEmbeddedPackageVersion = () => {
|
|
118628
|
-
const raw = "1.0.
|
|
118628
|
+
const raw = "1.0.708";
|
|
118629
118629
|
return trimVersion(raw);
|
|
118630
118630
|
};
|
|
118631
118631
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -195351,7 +195351,7 @@ var init_ssh = __esm({
|
|
|
195351
195351
|
buildSettingsUrl = (host) => {
|
|
195352
195352
|
const lower = host.toLowerCase();
|
|
195353
195353
|
if (lower.includes("gitlab")) {
|
|
195354
|
-
return `https://${host}/-/
|
|
195354
|
+
return `https://${host}/-/user_settings/ssh_keys`;
|
|
195355
195355
|
}
|
|
195356
195356
|
return `https://${host}/settings/ssh/new`;
|
|
195357
195357
|
};
|
|
@@ -197012,7 +197012,7 @@ var init_claudeSetupDiscovery = __esm({
|
|
|
197012
197012
|
request_id: requestId,
|
|
197013
197013
|
request: request2
|
|
197014
197014
|
});
|
|
197015
|
-
LEGACY_CLAUDE_AUTH_DISCOVERY_AUTHORIZE_URL = "https://claude.
|
|
197015
|
+
LEGACY_CLAUDE_AUTH_DISCOVERY_AUTHORIZE_URL = "https://claude.com/cai/oauth/authorize";
|
|
197016
197016
|
LEGACY_CLAUDE_AUTH_DISCOVERY_CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
|
|
197017
197017
|
LEGACY_CLAUDE_AUTH_DISCOVERY_MANUAL_REDIRECT_URL = "https://platform.claude.com/oauth/code/callback";
|
|
197018
197018
|
LEGACY_CLAUDE_AUTH_DISCOVERY_AUTOMATIC_REDIRECT_URL = "http://localhost/callback";
|
|
@@ -198028,7 +198028,7 @@ var init_claudeSetupOauth = __esm({
|
|
|
198028
198028
|
});
|
|
198029
198029
|
|
|
198030
198030
|
// src/devbox/commands/setupClaude.ts
|
|
198031
|
-
var CLAUDE_TOKEN_RENEWAL_WINDOW_MS, trim3, formatDate, parseClaudeCliVersion, CLAUDE_AUTH_DISCOVERY_MINIMUM_SUPPORTED_VERSION, parseClaudeCliVersionSegments, shouldSkipClaudeAuthDiscoveryProbe, resolveClaudeSetupState, formatClaudeSetupState, preflightClaudeSetupToken, resolveClaudeSetupPromptContent, needsClaudeSetupAttention, promptForClaudeSetupAuthMethod, collectClaudeCodeOauthTokenInteractively, ensureManagedClaudeAuth;
|
|
198031
|
+
var CLAUDE_TOKEN_RENEWAL_WINDOW_MS, trim3, formatDate, parseClaudeCliVersion, CLAUDE_AUTH_DISCOVERY_MINIMUM_SUPPORTED_VERSION, MANAGED_PINNED_CLAUDE_DISCOVERY_VERSION, parseClaudeCliVersionSegments, shouldSkipClaudeAuthDiscoveryProbe, buildManagedPinnedClaudeAuthDiscoveryPreflight, resolveClaudeSetupState, formatClaudeSetupState, preflightClaudeSetupToken, resolveClaudeSetupPromptContent, needsClaudeSetupAttention, promptForClaudeSetupAuthMethod, collectClaudeCodeOauthTokenInteractively, ensureManagedClaudeAuth;
|
|
198032
198032
|
var init_setupClaude = __esm({
|
|
198033
198033
|
"src/devbox/commands/setupClaude.ts"() {
|
|
198034
198034
|
"use strict";
|
|
@@ -198050,6 +198050,7 @@ var init_setupClaude = __esm({
|
|
|
198050
198050
|
return version2;
|
|
198051
198051
|
};
|
|
198052
198052
|
CLAUDE_AUTH_DISCOVERY_MINIMUM_SUPPORTED_VERSION = [2, 1, 77];
|
|
198053
|
+
MANAGED_PINNED_CLAUDE_DISCOVERY_VERSION = "managed-pinned-fallback";
|
|
198053
198054
|
parseClaudeCliVersionSegments = (value) => {
|
|
198054
198055
|
const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(value);
|
|
198055
198056
|
if (!match) {
|
|
@@ -198077,6 +198078,10 @@ var init_setupClaude = __esm({
|
|
|
198077
198078
|
}
|
|
198078
198079
|
return false;
|
|
198079
198080
|
};
|
|
198081
|
+
buildManagedPinnedClaudeAuthDiscoveryPreflight = () => ({
|
|
198082
|
+
claudeCliVersion: MANAGED_PINNED_CLAUDE_DISCOVERY_VERSION,
|
|
198083
|
+
discovery: buildLegacyClaudeAuthDiscoveryFallback()
|
|
198084
|
+
});
|
|
198080
198085
|
resolveClaudeSetupState = ({
|
|
198081
198086
|
authMode = null,
|
|
198082
198087
|
hasToken,
|
|
@@ -198133,21 +198138,13 @@ var init_setupClaude = __esm({
|
|
|
198133
198138
|
runCommandCapturedFn = runCommandCaptured
|
|
198134
198139
|
} = {}) => {
|
|
198135
198140
|
const version2 = await runCommandCapturedFn("claude", ["--version"]).catch(
|
|
198136
|
-
(
|
|
198137
|
-
throw new Error(
|
|
198138
|
-
`Claude CLI is unavailable locally. Install or fix \`claude\` first (${error2 instanceof Error ? error2.message : String(error2)}).`
|
|
198139
|
-
);
|
|
198140
|
-
}
|
|
198141
|
+
() => null
|
|
198141
198142
|
);
|
|
198143
|
+
if (!version2) {
|
|
198144
|
+
return buildManagedPinnedClaudeAuthDiscoveryPreflight();
|
|
198145
|
+
}
|
|
198142
198146
|
if (version2.code !== 0) {
|
|
198143
|
-
|
|
198144
|
-
formatCommandFailure({
|
|
198145
|
-
command: "claude",
|
|
198146
|
-
args: ["--version"],
|
|
198147
|
-
code: version2.code,
|
|
198148
|
-
stderr: version2.stderr
|
|
198149
|
-
})
|
|
198150
|
-
);
|
|
198147
|
+
return buildManagedPinnedClaudeAuthDiscoveryPreflight();
|
|
198151
198148
|
}
|
|
198152
198149
|
const claudeCliVersion = parseClaudeCliVersion(version2.stdout);
|
|
198153
198150
|
const discovery = shouldSkipClaudeAuthDiscoveryProbe(claudeCliVersion) ? buildLegacyClaudeAuthDiscoveryFallback() : await probeClaudeAuthDiscoveryFn().catch(
|
|
@@ -198259,7 +198256,7 @@ var init_setupClaude = __esm({
|
|
|
198259
198256
|
}
|
|
198260
198257
|
}
|
|
198261
198258
|
const preflight = await preflightClaudeSetupTokenFn();
|
|
198262
|
-
logSuccess("
|
|
198259
|
+
logSuccess("Claude Code sign-in is ready.");
|
|
198263
198260
|
if (promptContent.noteLines.length > 0) {
|
|
198264
198261
|
notePrompt(promptContent.noteLines.join("\n"), promptContent.noteTitle);
|
|
198265
198262
|
}
|
|
@@ -198294,7 +198291,6 @@ var init_setupClaude = __esm({
|
|
|
198294
198291
|
forceReplace = false,
|
|
198295
198292
|
requireSetupConfirmation = true,
|
|
198296
198293
|
canPromptInteractively,
|
|
198297
|
-
localClaudeCliAvailable,
|
|
198298
198294
|
fetchClaudeTokenStatusFn,
|
|
198299
198295
|
storeClaudeCodeOauthTokenFn,
|
|
198300
198296
|
collectClaudeCodeOauthTokenInteractivelyFn = collectClaudeCodeOauthTokenInteractively,
|
|
@@ -198363,7 +198359,7 @@ var init_setupClaude = __esm({
|
|
|
198363
198359
|
await storeClaudeToken(trim3(providedClaudeCodeOauthToken ?? ""));
|
|
198364
198360
|
return { claudeTokenStatus, claudeAuthState, didUpdateClaudeAuth };
|
|
198365
198361
|
}
|
|
198366
|
-
const shouldOfferInteractiveClaudeSetup = canPromptInteractively
|
|
198362
|
+
const shouldOfferInteractiveClaudeSetup = canPromptInteractively;
|
|
198367
198363
|
if (shouldOfferInteractiveClaudeSetup && (forceReplace || needsClaudeSetupAttention(claudeAuthState))) {
|
|
198368
198364
|
const interactiveState = forceReplace ? "healthy" : claudeAuthState;
|
|
198369
198365
|
onInteractivePromptStart?.();
|
|
@@ -199053,7 +199049,6 @@ var init_setupAgents = __esm({
|
|
|
199053
199049
|
skipClaudeAuth,
|
|
199054
199050
|
providedClaudeCodeOauthToken,
|
|
199055
199051
|
canPromptInteractively,
|
|
199056
|
-
localClaudeCliAvailable,
|
|
199057
199052
|
controlPlaneToken: initialControlPlaneToken,
|
|
199058
199053
|
accountScope: initialAccountScope = null,
|
|
199059
199054
|
onStatusStage,
|
|
@@ -199120,11 +199115,6 @@ var init_setupAgents = __esm({
|
|
|
199120
199115
|
}
|
|
199121
199116
|
claudeAuthState = "skipped";
|
|
199122
199117
|
} else {
|
|
199123
|
-
if (!localClaudeCliAvailable) {
|
|
199124
|
-
throw new Error(
|
|
199125
|
-
"Claude CLI is unavailable locally. Install or fix `claude` first."
|
|
199126
|
-
);
|
|
199127
|
-
}
|
|
199128
199118
|
let shouldForceReplaceClaudeAuth = false;
|
|
199129
199119
|
if (!skipClaudeAuth) {
|
|
199130
199120
|
const token = await ensureControlPlaneTokenForAgents();
|
|
@@ -199158,7 +199148,6 @@ var init_setupAgents = __esm({
|
|
|
199158
199148
|
forceReplace: shouldForceReplaceClaudeAuth,
|
|
199159
199149
|
requireSetupConfirmation: !shouldForceReplaceClaudeAuth,
|
|
199160
199150
|
canPromptInteractively,
|
|
199161
|
-
localClaudeCliAvailable,
|
|
199162
199151
|
fetchClaudeTokenStatusFn,
|
|
199163
199152
|
storeClaudeCodeOauthTokenFn,
|
|
199164
199153
|
...onStatusStage ? { onStatusStage } : {},
|
|
@@ -199265,7 +199254,6 @@ var init_setup = __esm({
|
|
|
199265
199254
|
init_statusLine();
|
|
199266
199255
|
init_completions();
|
|
199267
199256
|
init_setupClaude();
|
|
199268
|
-
init_setupTooling();
|
|
199269
199257
|
init_managedCodex();
|
|
199270
199258
|
init_setupAgents();
|
|
199271
199259
|
init_managedCodexAuth();
|
|
@@ -199800,8 +199788,6 @@ var init_setup = __esm({
|
|
|
199800
199788
|
const status = createStatusLine({ enabled: statusEnabled });
|
|
199801
199789
|
const run2 = async () => {
|
|
199802
199790
|
const homeDir2 = process.env.HOME;
|
|
199803
|
-
status.stage("Checking local tooling");
|
|
199804
|
-
const localClaudeCli = await probeLocalCli("claude");
|
|
199805
199791
|
status.stage("Loading devbox config");
|
|
199806
199792
|
const configOptions = homeDir2 ? { homeDir: homeDir2 } : void 0;
|
|
199807
199793
|
const existingConfig = await loadConfig(configOptions);
|
|
@@ -199842,7 +199828,6 @@ var init_setup = __esm({
|
|
|
199842
199828
|
skipClaudeAuth: parsed.noClaudeAuth === true,
|
|
199843
199829
|
providedClaudeCodeOauthToken: parsed.claudeCodeOauthToken ?? null,
|
|
199844
199830
|
canPromptInteractively,
|
|
199845
|
-
localClaudeCliAvailable: localClaudeCli.available,
|
|
199846
199831
|
controlPlaneToken,
|
|
199847
199832
|
onStatusStage: (message) => status.stage(message),
|
|
199848
199833
|
onInteractivePromptStart: () => {
|
|
@@ -203342,7 +203327,6 @@ var init_agentsSection = __esm({
|
|
|
203342
203327
|
shouldBootstrapManagedLocalCodexAuthFromRemote,
|
|
203343
203328
|
usesClaudeCode,
|
|
203344
203329
|
canPromptInteractively,
|
|
203345
|
-
localClaudeCliAvailable,
|
|
203346
203330
|
initialClaudeAuthOutcome,
|
|
203347
203331
|
initialPendingManagedClaudeTokenUpdate,
|
|
203348
203332
|
shouldRunRemoteClaudeAuthValidation,
|
|
@@ -203392,7 +203376,6 @@ var init_agentsSection = __esm({
|
|
|
203392
203376
|
skipClaudeAuth: !usesClaudeCode,
|
|
203393
203377
|
requireSetupConfirmation: false,
|
|
203394
203378
|
canPromptInteractively,
|
|
203395
|
-
localClaudeCliAvailable,
|
|
203396
203379
|
fetchClaudeTokenStatusFn,
|
|
203397
203380
|
storeClaudeCodeOauthTokenFn,
|
|
203398
203381
|
onStoredToken: (value) => {
|
|
@@ -203584,7 +203567,6 @@ var init_init = __esm({
|
|
|
203584
203567
|
init_provider();
|
|
203585
203568
|
init_e2bRuntime();
|
|
203586
203569
|
init_setupClaude();
|
|
203587
|
-
init_setupTooling();
|
|
203588
203570
|
init_setup();
|
|
203589
203571
|
init_claudeAuthProbe();
|
|
203590
203572
|
init_initialSetup();
|
|
@@ -204066,13 +204048,6 @@ var init_init = __esm({
|
|
|
204066
204048
|
initState = preparedSession.initState;
|
|
204067
204049
|
const { shouldResume, nonInteractive, skipCodexCliEnsure } = preparedSession;
|
|
204068
204050
|
const canPromptInteractively = !nonInteractive;
|
|
204069
|
-
const localClaudeCli = canPromptInteractively ? await probeLocalCli("claude") : {
|
|
204070
|
-
available: false,
|
|
204071
|
-
code: null,
|
|
204072
|
-
stdout: "",
|
|
204073
|
-
stderr: "",
|
|
204074
|
-
detail: null
|
|
204075
|
-
};
|
|
204076
204051
|
let claudeAuthOutcome = null;
|
|
204077
204052
|
let pendingManagedClaudeTokenUpdate = null;
|
|
204078
204053
|
let shouldRunRemoteClaudeAuthValidation = false;
|
|
@@ -204292,7 +204267,6 @@ var init_init = __esm({
|
|
|
204292
204267
|
skipClaudeAuth: !usesClaudeCode,
|
|
204293
204268
|
requireSetupConfirmation: false,
|
|
204294
204269
|
canPromptInteractively,
|
|
204295
|
-
localClaudeCliAvailable: localClaudeCli.available,
|
|
204296
204270
|
fetchClaudeTokenStatusFn: fetchClaudeTokenStatus,
|
|
204297
204271
|
storeClaudeCodeOauthTokenFn: storeClaudeCodeOauthToken,
|
|
204298
204272
|
onStoredToken: (value) => {
|
|
@@ -204731,7 +204705,6 @@ var init_init = __esm({
|
|
|
204731
204705
|
shouldBootstrapManagedLocalCodexAuthFromRemote: codexExecutionPreparation.shouldBootstrapLocalAuthFromRemote,
|
|
204732
204706
|
usesClaudeCode,
|
|
204733
204707
|
canPromptInteractively,
|
|
204734
|
-
localClaudeCliAvailable: localClaudeCli.available,
|
|
204735
204708
|
initialClaudeAuthOutcome: claudeAuthOutcome,
|
|
204736
204709
|
initialPendingManagedClaudeTokenUpdate: pendingManagedClaudeTokenUpdate,
|
|
204737
204710
|
shouldRunRemoteClaudeAuthValidation,
|
|
@@ -209289,4 +209262,4 @@ smol-toml/dist/index.js:
|
|
|
209289
209262
|
*/
|
|
209290
209263
|
//# sourceMappingURL=dvb.cjs.map
|
|
209291
209264
|
|
|
209292
|
-
//# debugId=
|
|
209265
|
+
//# debugId=95a3965a-c871-5a95-aa80-40f114e5e014
|