@boxes-dev/dvb-runtime 1.0.201 → 1.0.203

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 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]="216def26-f1b1-5732-9018-83049303d6bc")}catch(e){}}();
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]="8e9ed0f1-3869-55c7-9fcf-8774402acea2")}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.201";
88692
- const rawGitSha = "34485d8e39bd45e275d9b9f6687c5101110a218a";
88691
+ const rawPackageVersion = "1.0.203";
88692
+ const rawGitSha = "1c1910379e987defb7aedac5129b38792a544243";
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 };
@@ -120881,9 +120881,9 @@ var init_sentry = __esm({
120881
120881
  sentryEnabled = false;
120882
120882
  uncaughtExceptionMonitorInstalled = false;
120883
120883
  readBuildMetadata2 = () => {
120884
- const rawPackageVersion = "1.0.201";
120885
- const rawGitSha = "34485d8e39bd45e275d9b9f6687c5101110a218a";
120886
- const rawSentryRelease = "boxes-dev-dvb@1.0.201+34485d8e39bd45e275d9b9f6687c5101110a218a";
120884
+ const rawPackageVersion = "1.0.203";
120885
+ const rawGitSha = "1c1910379e987defb7aedac5129b38792a544243";
120886
+ const rawSentryRelease = "boxes-dev-dvb@1.0.203+1c1910379e987defb7aedac5129b38792a544243";
120887
120887
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
120888
120888
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
120889
120889
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -124880,7 +124880,7 @@ var init_packageVersion = __esm({
124880
124880
  return import_node_path8.default.join(process.cwd(), "dvb");
124881
124881
  };
124882
124882
  readEmbeddedPackageVersion = () => {
124883
- const raw = "1.0.201";
124883
+ const raw = "1.0.203";
124884
124884
  return trimVersion(raw);
124885
124885
  };
124886
124886
  readNearestPackageMetadata = (basePath) => {
@@ -217435,7 +217435,7 @@ var init_events = __esm({
217435
217435
  });
217436
217436
 
217437
217437
  // src/devbox/commands/init/codex/remote.ts
217438
- var import_node_child_process10, decodeBase644, parseExitCode2, parseRemoteExecMessage, extractAuthUrl, extractLocalPort, summarizeExecOutput, buildEntrypointsBlock, resolveRemoteApplyTemplateName, renderRemoteApplyPromptFromTemplate, renderRemoteApplyPrompt, openBrowser3, handleCodexProgressLine, ensureRemoteCodexInstalled, isRemoteCodexLoggedIn, runRemoteCodexLogin, runRemoteCodexExec, runRemoteCodexExecDirect;
217438
+ var import_node_child_process10, decodeBase644, parseExitCode2, parseRemoteExecMessage, extractAuthUrl, extractLocalPort, summarizeExecOutput, buildEntrypointsBlock, resolveRemoteApplyTemplateName, renderRemoteApplyPromptFromTemplate, renderRemoteApplyPrompt, openBrowser3, handleCodexProgressLine, buildEnsureRemoteCodexScript, ensureRemoteCodexInstalled, isRemoteCodexLoggedIn, runRemoteCodexLogin, runRemoteCodexExec, runRemoteCodexExecDirect;
217439
217439
  var init_remote2 = __esm({
217440
217440
  "src/devbox/commands/init/codex/remote.ts"() {
217441
217441
  "use strict";
@@ -217617,17 +217617,52 @@ var init_remote2 = __esm({
217617
217617
  state.lastProgressKey = progressKey;
217618
217618
  onProgress({ kind: "reasoning", message: bold });
217619
217619
  };
217620
- ensureRemoteCodexInstalled = async (client2, spriteAlias) => {
217621
- const installScript = [
217620
+ buildEnsureRemoteCodexScript = (computeProvider) => {
217621
+ if (computeProvider !== "modal") {
217622
+ return [
217623
+ "set -euo pipefail",
217624
+ 'prefix="${HOME}/.local"',
217625
+ 'npm install -g --prefix "$prefix" @openai/codex --loglevel=error',
217626
+ 'if [ ! -x "$prefix/bin/codex" ]; then',
217627
+ ' echo "codex binary missing at $prefix/bin/codex" >&2',
217628
+ " exit 1",
217629
+ "fi",
217630
+ '"$prefix/bin/codex" --version >/dev/null'
217631
+ ].join("\n");
217632
+ }
217633
+ return [
217622
217634
  "set -euo pipefail",
217623
- 'prefix="${HOME}/.local"',
217624
- 'npm install -g --prefix "$prefix" @openai/codex --loglevel=error',
217625
- 'if [ ! -x "$prefix/bin/codex" ]; then',
217626
- ' echo "codex binary missing at $prefix/bin/codex" >&2',
217635
+ 'cleaned_path=""',
217636
+ 'IFS=":" read -r -a path_parts <<< "${PATH:-}"',
217637
+ 'for path_part in "${path_parts[@]}"; do',
217638
+ ' if [ -z "$path_part" ]; then',
217639
+ " continue",
217640
+ " fi",
217641
+ ' if [ "$path_part" = "$HOME/.devbox/bin" ] || [ "$path_part" = "$HOME/.local/bin" ]; then',
217642
+ " continue",
217643
+ " fi",
217644
+ ' if [ -n "$cleaned_path" ]; then',
217645
+ ' cleaned_path="${cleaned_path}:$path_part"',
217646
+ " else",
217647
+ ' cleaned_path="$path_part"',
217648
+ " fi",
217649
+ "done",
217650
+ 'if [ -n "$cleaned_path" ]; then',
217651
+ ' if ! codex_bin="$(PATH="$cleaned_path" command -v codex 2>/dev/null)"; then',
217652
+ ' codex_bin=""',
217653
+ " fi",
217654
+ "else",
217655
+ ' codex_bin=""',
217656
+ "fi",
217657
+ 'if [ -z "$codex_bin" ] || [ ! -x "$codex_bin" ]; then',
217658
+ ' echo "codex binary missing from Modal base image PATH" >&2',
217627
217659
  " exit 1",
217628
217660
  "fi",
217629
- '"$prefix/bin/codex" --version >/dev/null'
217661
+ '"$codex_bin" --version >/dev/null'
217630
217662
  ].join("\n");
217663
+ };
217664
+ ensureRemoteCodexInstalled = async (client2, spriteAlias, computeProvider) => {
217665
+ const installScript = buildEnsureRemoteCodexScript(computeProvider);
217631
217666
  const install = await client2.exec(spriteAlias, [
217632
217667
  "/bin/bash",
217633
217668
  "--noprofile",
@@ -223108,6 +223143,7 @@ var init_claudeBootstrap = __esm({
223108
223143
  const base = settings ? { ...settings } : {};
223109
223144
  const existingPermissions = base.permissions;
223110
223145
  const permissions = isRecord2(existingPermissions) ? { ...existingPermissions } : {};
223146
+ base.skipDangerousModePermissionPrompt = true;
223111
223147
  permissions.defaultMode = "bypassPermissions";
223112
223148
  base.permissions = permissions;
223113
223149
  return base;
@@ -226089,7 +226125,11 @@ var init_init = __esm({
226089
226125
  await retryInitStep({
226090
226126
  status,
226091
226127
  title: "Ensuring Codex CLI",
226092
- fn: async () => await ensureRemoteCodexInstalled(client2, alias)
226128
+ fn: async () => await ensureRemoteCodexInstalled(
226129
+ client2,
226130
+ alias,
226131
+ computeProvider
226132
+ )
226093
226133
  });
226094
226134
  await updateInitState({ steps: { codexCliEnsured: true } });
226095
226135
  } catch (error2) {
@@ -231944,4 +231984,4 @@ smol-toml/dist/index.js:
231944
231984
  */
231945
231985
  //# sourceMappingURL=dvb.cjs.map
231946
231986
 
231947
- //# debugId=216def26-f1b1-5732-9018-83049303d6bc
231987
+ //# debugId=8e9ed0f1-3869-55c7-9fcf-8774402acea2