@boxes-dev/dvb 1.0.77 → 1.0.78
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 +43 -20
- package/dist/bin/dvb.cjs.map +1 -1
- package/dist/bin/dvbd.cjs +5 -5
- package/dist/devbox/commands/init/claudeBootstrap.d.ts +2 -1
- package/dist/devbox/commands/init/claudeBootstrap.d.ts.map +1 -1
- package/dist/devbox/commands/init/claudeBootstrap.js +23 -8
- package/dist/devbox/commands/init/claudeBootstrap.js.map +1 -1
- package/dist/devbox/commands/init/codex/remote.d.ts.map +1 -1
- package/dist/devbox/commands/init/codex/remote.js +11 -2
- package/dist/devbox/commands/init/codex/remote.js.map +1 -1
- package/dist/devbox/commands/init/index.d.ts.map +1 -1
- package/dist/devbox/commands/init/index.js +1 -1
- package/dist/devbox/commands/init/index.js.map +1 -1
- package/dist/devbox/commands/init/session.js +1 -1
- package/dist/devbox/commands/init/session.js.map +1 -1
- package/dist/devbox/ui/statusLine.d.ts.map +1 -1
- package/dist/devbox/ui/statusLine.js +3 -1
- package/dist/devbox/ui/statusLine.js.map +1 -1
- package/package.json +1 -1
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]="582fe27b-e777-538c-bbd5-5055c01e366b")}catch(e){}}();
|
|
4
4
|
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -88688,8 +88688,8 @@ var init_otel = __esm({
|
|
|
88688
88688
|
return trimmed && trimmed.length > 0 ? trimmed : void 0;
|
|
88689
88689
|
};
|
|
88690
88690
|
readBuildMetadata = () => {
|
|
88691
|
-
const rawPackageVersion = "1.0.
|
|
88692
|
-
const rawGitSha = "
|
|
88691
|
+
const rawPackageVersion = "1.0.78";
|
|
88692
|
+
const rawGitSha = "47fdfa1265d82766958857c6dcfcc196103475be";
|
|
88693
88693
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
88694
88694
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
88695
88695
|
return { packageVersion, gitSha };
|
|
@@ -120679,9 +120679,9 @@ var init_sentry = __esm({
|
|
|
120679
120679
|
sentryEnabled = false;
|
|
120680
120680
|
uncaughtExceptionMonitorInstalled = false;
|
|
120681
120681
|
readBuildMetadata2 = () => {
|
|
120682
|
-
const rawPackageVersion = "1.0.
|
|
120683
|
-
const rawGitSha = "
|
|
120684
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
120682
|
+
const rawPackageVersion = "1.0.78";
|
|
120683
|
+
const rawGitSha = "47fdfa1265d82766958857c6dcfcc196103475be";
|
|
120684
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.78+47fdfa1265d82766958857c6dcfcc196103475be";
|
|
120685
120685
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
120686
120686
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
120687
120687
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -141302,7 +141302,9 @@ var init_statusLine = __esm({
|
|
|
141302
141302
|
enabled,
|
|
141303
141303
|
stream = process.stderr
|
|
141304
141304
|
}) => {
|
|
141305
|
-
|
|
141305
|
+
const usableColumns = typeof stream.columns !== "number" || stream.columns > 0;
|
|
141306
|
+
const spinnerEnabled = enabled && (!stream.isTTY || usableColumns);
|
|
141307
|
+
if (!spinnerEnabled) {
|
|
141306
141308
|
return {
|
|
141307
141309
|
stage: () => {
|
|
141308
141310
|
},
|
|
@@ -205365,7 +205367,7 @@ var init_session3 = __esm({
|
|
|
205365
205367
|
nonInteractive || shouldResume && initState?.steps.codexApplied
|
|
205366
205368
|
);
|
|
205367
205369
|
const skipCodexCliEnsure = Boolean(
|
|
205368
|
-
|
|
205370
|
+
shouldResume && initState?.steps.codexCliEnsured
|
|
205369
205371
|
);
|
|
205370
205372
|
return {
|
|
205371
205373
|
initState,
|
|
@@ -206416,7 +206418,16 @@ var init_remote2 = __esm({
|
|
|
206416
206418
|
});
|
|
206417
206419
|
};
|
|
206418
206420
|
ensureRemoteCodexInstalled = async (client2, spriteAlias) => {
|
|
206419
|
-
const
|
|
206421
|
+
const installScript = [
|
|
206422
|
+
"set -euo pipefail",
|
|
206423
|
+
'prefix="${HOME}/.local"',
|
|
206424
|
+
'npm install -g --prefix "$prefix" @openai/codex --loglevel=error',
|
|
206425
|
+
'if [ ! -x "$prefix/bin/codex" ]; then',
|
|
206426
|
+
' echo "codex binary missing at $prefix/bin/codex" >&2',
|
|
206427
|
+
" exit 1",
|
|
206428
|
+
"fi",
|
|
206429
|
+
'"$prefix/bin/codex" --version >/dev/null'
|
|
206430
|
+
].join("\n");
|
|
206420
206431
|
const install = await client2.exec(spriteAlias, [
|
|
206421
206432
|
"/bin/bash",
|
|
206422
206433
|
"--noprofile",
|
|
@@ -206426,8 +206437,7 @@ var init_remote2 = __esm({
|
|
|
206426
206437
|
"-o",
|
|
206427
206438
|
"pipefail",
|
|
206428
206439
|
"-c",
|
|
206429
|
-
|
|
206430
|
-
npm install -g @openai/codex`
|
|
206440
|
+
installScript
|
|
206431
206441
|
]);
|
|
206432
206442
|
if (install.exitCode !== 0) {
|
|
206433
206443
|
throw new Error(install.stderr || "Failed to install/upgrade Codex.");
|
|
@@ -211015,7 +211025,7 @@ ${sshResult.stderr}`.trim();
|
|
|
211015
211025
|
});
|
|
211016
211026
|
|
|
211017
211027
|
// src/devbox/commands/init/claudeBootstrap.ts
|
|
211018
|
-
var import_promises29, import_node_path32, import_node_crypto16, import_node_child_process11, import_node_os17, import_node_util5, REMOTE_CLAUDE_DIR, REMOTE_CLAUDE_JSON_PATH, REMOTE_CLAUDE_CONFIG_OVERRIDE_PATH, REMOTE_CLAUDE_SETTINGS_PATH, REMOTE_CLAUDE_CREDENTIALS_PATH, REMOTE_CLAUDE_MD_PATH, REMOTE_CLAUDE_PLUGINS_DIR, REMOTE_CLAUDE_PLUGINS_CONFIG_PATH, CLAUDE_STATE_VARIANT_PATTERN, SECURITY_TIMEOUT_MS, OAUTH_SERVICE_SUFFIX_CANDIDATES, CLAUDE_ROOT_ALLOWLIST, CLAUDE_PROJECT_ALLOWLIST, isRecord2, hasOwn, execFileAsync, stripLeadingBom, getExecErrorStatus,
|
|
211028
|
+
var import_promises29, import_node_path32, import_node_crypto16, import_node_child_process11, import_node_os17, import_node_util5, REMOTE_CLAUDE_DIR, REMOTE_CLAUDE_JSON_PATH, REMOTE_CLAUDE_CONFIG_OVERRIDE_PATH, REMOTE_CLAUDE_SETTINGS_PATH, REMOTE_CLAUDE_CREDENTIALS_PATH, REMOTE_CLAUDE_MD_PATH, REMOTE_CLAUDE_PLUGINS_DIR, REMOTE_CLAUDE_PLUGINS_CONFIG_PATH, CLAUDE_STATE_VARIANT_PATTERN, SECURITY_TIMEOUT_MS, OAUTH_SERVICE_SUFFIX_CANDIDATES, CLAUDE_ROOT_ALLOWLIST, CLAUDE_PROJECT_ALLOWLIST, isRecord2, hasOwn, execFileAsync, stripLeadingBom, getExecErrorStatus, getExecErrorExitCode, parseJsonRecord3, uniquePaths, resolveLocalClaudeDirCandidates, resolveLocalClaudeStateBaseDir, resolveLocalClaudeStorageDir, getCredentialStorageHashSuffix, getOauthServiceSuffixCandidates, resolveClaudeCredentialKeychainServices, resolveClaudeCredentialKeychainAccounts, listClaudeStateVariantPaths, readFileIfExists, findFirstExistingFile, readLocalClaudeStateSource, resolveLocalClaudeFilePath, readLocalClaudeFile, readLocalClaudeSettings, extractClaudeOauthRecord, readClaudeOauthFromKeychain, readLocalClaudeOauthCredentials, normalizeLocalRepoRootCandidates, copyAllowlistedKeys, buildBootstrapClaudeState, mergeClaudeSettingsForDevbox, isNotFoundError2, readRemoteFileIfExists, ensureRemoteClaudeDirectories, applyRemoteClaudePermissions, bootstrapRemoteClaudeConfig;
|
|
211019
211029
|
var init_claudeBootstrap = __esm({
|
|
211020
211030
|
"src/devbox/commands/init/claudeBootstrap.ts"() {
|
|
211021
211031
|
"use strict";
|
|
@@ -211094,10 +211104,15 @@ var init_claudeBootstrap = __esm({
|
|
|
211094
211104
|
const status = error2.status;
|
|
211095
211105
|
return typeof status === "number" ? status : null;
|
|
211096
211106
|
};
|
|
211097
|
-
|
|
211107
|
+
getExecErrorExitCode = (error2) => {
|
|
211098
211108
|
if (!error2 || typeof error2 !== "object") return null;
|
|
211099
211109
|
const code2 = error2.code;
|
|
211100
|
-
|
|
211110
|
+
if (typeof code2 === "number") return code2;
|
|
211111
|
+
if (typeof code2 === "string") {
|
|
211112
|
+
const parsed = Number.parseInt(code2, 10);
|
|
211113
|
+
return Number.isNaN(parsed) ? null : parsed;
|
|
211114
|
+
}
|
|
211115
|
+
return null;
|
|
211101
211116
|
};
|
|
211102
211117
|
parseJsonRecord3 = (value, sourcePath) => {
|
|
211103
211118
|
const parsed = JSON.parse(stripLeadingBom(value.toString("utf8")));
|
|
@@ -211141,7 +211156,15 @@ var init_claudeBootstrap = __esm({
|
|
|
211141
211156
|
};
|
|
211142
211157
|
getOauthServiceSuffixCandidates = () => {
|
|
211143
211158
|
const preferred = process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL ? "-custom-oauth" : "";
|
|
211144
|
-
|
|
211159
|
+
const ordered = [preferred, ...OAUTH_SERVICE_SUFFIX_CANDIDATES];
|
|
211160
|
+
const seen = /* @__PURE__ */ new Set();
|
|
211161
|
+
const candidates = [];
|
|
211162
|
+
for (const suffix of ordered) {
|
|
211163
|
+
if (seen.has(suffix)) continue;
|
|
211164
|
+
seen.add(suffix);
|
|
211165
|
+
candidates.push(suffix);
|
|
211166
|
+
}
|
|
211167
|
+
return candidates;
|
|
211145
211168
|
};
|
|
211146
211169
|
resolveClaudeCredentialKeychainServices = () => {
|
|
211147
211170
|
const storageHashSuffix = getCredentialStorageHashSuffix();
|
|
@@ -211323,13 +211346,13 @@ var init_claudeBootstrap = __esm({
|
|
|
211323
211346
|
};
|
|
211324
211347
|
} catch (error2) {
|
|
211325
211348
|
const status = getExecErrorStatus(error2);
|
|
211326
|
-
|
|
211349
|
+
const exitCode = getExecErrorExitCode(error2);
|
|
211350
|
+
if (status === 44 || exitCode === 44) {
|
|
211327
211351
|
continue;
|
|
211328
211352
|
}
|
|
211329
211353
|
if (!warning) {
|
|
211330
|
-
const code2 = getExecErrorCode(error2);
|
|
211331
211354
|
const rawMessage = error2 instanceof Error ? error2.message : String(error2);
|
|
211332
|
-
const detail = status ? `status ${status}` :
|
|
211355
|
+
const detail = status ? `status ${status}` : exitCode !== null ? `code ${exitCode}` : rawMessage;
|
|
211333
211356
|
warning = `Failed to copy Claude OAuth credentials from macOS Keychain (${detail}).`;
|
|
211334
211357
|
}
|
|
211335
211358
|
continue;
|
|
@@ -213663,7 +213686,7 @@ var init_init = __esm({
|
|
|
213663
213686
|
".devbox",
|
|
213664
213687
|
"setup-artifacts.parts.json"
|
|
213665
213688
|
);
|
|
213666
|
-
const pathSetup = 'export PATH="$(npm bin -g 2>/dev/null):$PATH"';
|
|
213689
|
+
const pathSetup = 'export PATH="$HOME/.local/bin:$(npm bin -g 2>/dev/null || true):$PATH"';
|
|
213667
213690
|
let canonical = alias;
|
|
213668
213691
|
let projectCreatedAt = existingEntry?.createdAt ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
213669
213692
|
let projectLocalPaths = mergeLocalPaths(
|
|
@@ -220157,4 +220180,4 @@ smol-toml/dist/index.js:
|
|
|
220157
220180
|
*/
|
|
220158
220181
|
//# sourceMappingURL=dvb.cjs.map
|
|
220159
220182
|
|
|
220160
|
-
//# debugId=
|
|
220183
|
+
//# debugId=582fe27b-e777-538c-bbd5-5055c01e366b
|