@boxes-dev/dvb-runtime 1.0.297 → 1.0.299
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/.bundle-state.json +2 -2
- package/dist/bin/dvb.cjs +6 -6
- package/dist/bin/dvbd.cjs +6 -6
- package/package.json +7 -5
- package/dist/devbox/auth.d.ts +0 -22
- package/dist/devbox/auth.d.ts.map +0 -1
- package/dist/devbox/auth.js +0 -233
- package/dist/devbox/auth.js.map +0 -1
- package/dist/devbox/browser.d.ts +0 -19
- package/dist/devbox/browser.d.ts.map +0 -1
- package/dist/devbox/browser.js +0 -60
- package/dist/devbox/browser.js.map +0 -1
- package/dist/devbox/cli.d.ts +0 -7
- package/dist/devbox/cli.d.ts.map +0 -1
- package/dist/devbox/cli.js +0 -124
- package/dist/devbox/cli.js.map +0 -1
- package/dist/devbox/commandRegistry/args.d.ts +0 -18
- package/dist/devbox/commandRegistry/args.d.ts.map +0 -1
- package/dist/devbox/commandRegistry/args.js +0 -107
- package/dist/devbox/commandRegistry/args.js.map +0 -1
- package/dist/devbox/commandRegistry/catalog.d.ts +0 -4
- package/dist/devbox/commandRegistry/catalog.d.ts.map +0 -1
- package/dist/devbox/commandRegistry/catalog.js +0 -763
- package/dist/devbox/commandRegistry/catalog.js.map +0 -1
- package/dist/devbox/commandRegistry/dispatch.d.ts +0 -3
- package/dist/devbox/commandRegistry/dispatch.d.ts.map +0 -1
- package/dist/devbox/commandRegistry/dispatch.js +0 -61
- package/dist/devbox/commandRegistry/dispatch.js.map +0 -1
- package/dist/devbox/commandRegistry/errors.d.ts +0 -8
- package/dist/devbox/commandRegistry/errors.d.ts.map +0 -1
- package/dist/devbox/commandRegistry/errors.js +0 -26
- package/dist/devbox/commandRegistry/errors.js.map +0 -1
- package/dist/devbox/commandRegistry/help.d.ts +0 -5
- package/dist/devbox/commandRegistry/help.d.ts.map +0 -1
- package/dist/devbox/commandRegistry/help.js +0 -94
- package/dist/devbox/commandRegistry/help.js.map +0 -1
- package/dist/devbox/commandRegistry/resolve.d.ts +0 -7
- package/dist/devbox/commandRegistry/resolve.d.ts.map +0 -1
- package/dist/devbox/commandRegistry/resolve.js +0 -32
- package/dist/devbox/commandRegistry/resolve.js.map +0 -1
- package/dist/devbox/commandRegistry/tab.d.ts +0 -10
- package/dist/devbox/commandRegistry/tab.d.ts.map +0 -1
- package/dist/devbox/commandRegistry/tab.js +0 -83
- package/dist/devbox/commandRegistry/tab.js.map +0 -1
- package/dist/devbox/commandRegistry/types.d.ts +0 -32
- package/dist/devbox/commandRegistry/types.d.ts.map +0 -1
- package/dist/devbox/commandRegistry/types.js +0 -2
- package/dist/devbox/commandRegistry/types.js.map +0 -1
- package/dist/devbox/commands/agent.d.ts +0 -52
- package/dist/devbox/commands/agent.d.ts.map +0 -1
- package/dist/devbox/commands/agent.js +0 -397
- package/dist/devbox/commands/agent.js.map +0 -1
- package/dist/devbox/commands/boxSelect.d.ts +0 -25
- package/dist/devbox/commands/boxSelect.d.ts.map +0 -1
- package/dist/devbox/commands/boxSelect.js +0 -94
- package/dist/devbox/commands/boxSelect.js.map +0 -1
- package/dist/devbox/commands/checkpoint.d.ts +0 -9
- package/dist/devbox/commands/checkpoint.d.ts.map +0 -1
- package/dist/devbox/commands/checkpoint.js +0 -105
- package/dist/devbox/commands/checkpoint.js.map +0 -1
- package/dist/devbox/commands/commandProvider.d.ts +0 -33
- package/dist/devbox/commands/commandProvider.d.ts.map +0 -1
- package/dist/devbox/commands/commandProvider.js +0 -156
- package/dist/devbox/commands/commandProvider.js.map +0 -1
- package/dist/devbox/commands/connect.d.ts +0 -39
- package/dist/devbox/commands/connect.d.ts.map +0 -1
- package/dist/devbox/commands/connect.js +0 -1367
- package/dist/devbox/commands/connect.js.map +0 -1
- package/dist/devbox/commands/connectSessionMapping.d.ts +0 -64
- package/dist/devbox/commands/connectSessionMapping.d.ts.map +0 -1
- package/dist/devbox/commands/connectSessionMapping.js +0 -153
- package/dist/devbox/commands/connectSessionMapping.js.map +0 -1
- package/dist/devbox/commands/cp.d.ts +0 -60
- package/dist/devbox/commands/cp.d.ts.map +0 -1
- package/dist/devbox/commands/cp.js +0 -383
- package/dist/devbox/commands/cp.js.map +0 -1
- package/dist/devbox/commands/daemon.d.ts +0 -4
- package/dist/devbox/commands/daemon.d.ts.map +0 -1
- package/dist/devbox/commands/daemon.js +0 -49
- package/dist/devbox/commands/daemon.js.map +0 -1
- package/dist/devbox/commands/destroy.d.ts +0 -2
- package/dist/devbox/commands/destroy.d.ts.map +0 -1
- package/dist/devbox/commands/destroy.js +0 -204
- package/dist/devbox/commands/destroy.js.map +0 -1
- package/dist/devbox/commands/destroyE2b.d.ts +0 -22
- package/dist/devbox/commands/destroyE2b.d.ts.map +0 -1
- package/dist/devbox/commands/destroyE2b.js +0 -12
- package/dist/devbox/commands/destroyE2b.js.map +0 -1
- package/dist/devbox/commands/destroyLocalState.d.ts +0 -34
- package/dist/devbox/commands/destroyLocalState.d.ts.map +0 -1
- package/dist/devbox/commands/destroyLocalState.js +0 -187
- package/dist/devbox/commands/destroyLocalState.js.map +0 -1
- package/dist/devbox/commands/destroyModal.d.ts +0 -21
- package/dist/devbox/commands/destroyModal.d.ts.map +0 -1
- package/dist/devbox/commands/destroyModal.js +0 -13
- package/dist/devbox/commands/destroyModal.js.map +0 -1
- package/dist/devbox/commands/destroyShared.d.ts +0 -14
- package/dist/devbox/commands/destroyShared.d.ts.map +0 -1
- package/dist/devbox/commands/destroyShared.js +0 -37
- package/dist/devbox/commands/destroyShared.js.map +0 -1
- package/dist/devbox/commands/fork.d.ts +0 -9
- package/dist/devbox/commands/fork.d.ts.map +0 -1
- package/dist/devbox/commands/fork.js +0 -94
- package/dist/devbox/commands/fork.js.map +0 -1
- package/dist/devbox/commands/ide.d.ts +0 -35
- package/dist/devbox/commands/ide.d.ts.map +0 -1
- package/dist/devbox/commands/ide.js +0 -987
- package/dist/devbox/commands/ide.js.map +0 -1
- package/dist/devbox/commands/init/args.d.ts +0 -18
- package/dist/devbox/commands/init/args.d.ts.map +0 -1
- package/dist/devbox/commands/init/args.js +0 -44
- package/dist/devbox/commands/init/args.js.map +0 -1
- package/dist/devbox/commands/init/clack.d.ts +0 -22
- package/dist/devbox/commands/init/clack.d.ts.map +0 -1
- package/dist/devbox/commands/init/clack.js +0 -158
- package/dist/devbox/commands/init/clack.js.map +0 -1
- package/dist/devbox/commands/init/claudeBootstrap.d.ts +0 -49
- package/dist/devbox/commands/init/claudeBootstrap.d.ts.map +0 -1
- package/dist/devbox/commands/init/claudeBootstrap.js +0 -504
- package/dist/devbox/commands/init/claudeBootstrap.js.map +0 -1
- package/dist/devbox/commands/init/codex/artifacts.d.ts +0 -49
- package/dist/devbox/commands/init/codex/artifacts.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/artifacts.js +0 -278
- package/dist/devbox/commands/init/codex/artifacts.js.map +0 -1
- package/dist/devbox/commands/init/codex/config.d.ts +0 -6
- package/dist/devbox/commands/init/codex/config.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/config.js +0 -43
- package/dist/devbox/commands/init/codex/config.js.map +0 -1
- package/dist/devbox/commands/init/codex/events.d.ts +0 -14
- package/dist/devbox/commands/init/codex/events.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/events.js +0 -435
- package/dist/devbox/commands/init/codex/events.js.map +0 -1
- package/dist/devbox/commands/init/codex/execConfig.d.ts +0 -5
- package/dist/devbox/commands/init/codex/execConfig.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/execConfig.js +0 -10
- package/dist/devbox/commands/init/codex/execConfig.js.map +0 -1
- package/dist/devbox/commands/init/codex/index.d.ts +0 -136
- package/dist/devbox/commands/init/codex/index.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/index.js +0 -1115
- package/dist/devbox/commands/init/codex/index.js.map +0 -1
- package/dist/devbox/commands/init/codex/local.d.ts +0 -124
- package/dist/devbox/commands/init/codex/local.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/local.js +0 -1381
- package/dist/devbox/commands/init/codex/local.js.map +0 -1
- package/dist/devbox/commands/init/codex/localExecArgs.d.ts +0 -25
- package/dist/devbox/commands/init/codex/localExecArgs.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/localExecArgs.js +0 -48
- package/dist/devbox/commands/init/codex/localExecArgs.js.map +0 -1
- package/dist/devbox/commands/init/codex/plan.d.ts +0 -99
- package/dist/devbox/commands/init/codex/plan.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/plan.js +0 -231
- package/dist/devbox/commands/init/codex/plan.js.map +0 -1
- package/dist/devbox/commands/init/codex/prompts.d.ts +0 -9
- package/dist/devbox/commands/init/codex/prompts.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/prompts.js +0 -51
- package/dist/devbox/commands/init/codex/prompts.js.map +0 -1
- package/dist/devbox/commands/init/codex/proxy.d.ts +0 -10
- package/dist/devbox/commands/init/codex/proxy.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/proxy.js +0 -32
- package/dist/devbox/commands/init/codex/proxy.js.map +0 -1
- package/dist/devbox/commands/init/codex/remote.d.ts +0 -96
- package/dist/devbox/commands/init/codex/remote.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/remote.js +0 -927
- package/dist/devbox/commands/init/codex/remote.js.map +0 -1
- package/dist/devbox/commands/init/codex/retry.d.ts +0 -17
- package/dist/devbox/commands/init/codex/retry.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/retry.js +0 -17
- package/dist/devbox/commands/init/codex/retry.js.map +0 -1
- package/dist/devbox/commands/init/codex/scanStatus.d.ts +0 -5
- package/dist/devbox/commands/init/codex/scanStatus.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/scanStatus.js +0 -27
- package/dist/devbox/commands/init/codex/scanStatus.js.map +0 -1
- package/dist/devbox/commands/init/codex/shellHistory.d.ts +0 -39
- package/dist/devbox/commands/init/codex/shellHistory.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/shellHistory.js +0 -258
- package/dist/devbox/commands/init/codex/shellHistory.js.map +0 -1
- package/dist/devbox/commands/init/codex/template.d.ts +0 -3
- package/dist/devbox/commands/init/codex/template.d.ts.map +0 -1
- package/dist/devbox/commands/init/codex/template.js +0 -3
- package/dist/devbox/commands/init/codex/template.js.map +0 -1
- package/dist/devbox/commands/init/finalizeFlow.d.ts +0 -95
- package/dist/devbox/commands/init/finalizeFlow.d.ts.map +0 -1
- package/dist/devbox/commands/init/finalizeFlow.js +0 -786
- package/dist/devbox/commands/init/finalizeFlow.js.map +0 -1
- package/dist/devbox/commands/init/index.d.ts +0 -11
- package/dist/devbox/commands/init/index.d.ts.map +0 -1
- package/dist/devbox/commands/init/index.js +0 -1058
- package/dist/devbox/commands/init/index.js.map +0 -1
- package/dist/devbox/commands/init/modal.d.ts +0 -5
- package/dist/devbox/commands/init/modal.d.ts.map +0 -1
- package/dist/devbox/commands/init/modal.js +0 -4
- package/dist/devbox/commands/init/modal.js.map +0 -1
- package/dist/devbox/commands/init/packaging.d.ts +0 -5
- package/dist/devbox/commands/init/packaging.d.ts.map +0 -1
- package/dist/devbox/commands/init/packaging.js +0 -81
- package/dist/devbox/commands/init/packaging.js.map +0 -1
- package/dist/devbox/commands/init/progress.d.ts +0 -31
- package/dist/devbox/commands/init/progress.d.ts.map +0 -1
- package/dist/devbox/commands/init/progress.js +0 -205
- package/dist/devbox/commands/init/progress.js.map +0 -1
- package/dist/devbox/commands/init/provider/e2b.d.ts +0 -29
- package/dist/devbox/commands/init/provider/e2b.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/e2b.js +0 -130
- package/dist/devbox/commands/init/provider/e2b.js.map +0 -1
- package/dist/devbox/commands/init/provider/e2bRuntime.d.ts +0 -39
- package/dist/devbox/commands/init/provider/e2bRuntime.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/e2bRuntime.js +0 -679
- package/dist/devbox/commands/init/provider/e2bRuntime.js.map +0 -1
- package/dist/devbox/commands/init/provider/index.d.ts +0 -8
- package/dist/devbox/commands/init/provider/index.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/index.js +0 -5
- package/dist/devbox/commands/init/provider/index.js.map +0 -1
- package/dist/devbox/commands/init/provider/modal.d.ts +0 -34
- package/dist/devbox/commands/init/provider/modal.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/modal.js +0 -274
- package/dist/devbox/commands/init/provider/modal.js.map +0 -1
- package/dist/devbox/commands/init/provider/modalRuntime.d.ts +0 -3
- package/dist/devbox/commands/init/provider/modalRuntime.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/modalRuntime.js +0 -2
- package/dist/devbox/commands/init/provider/modalRuntime.js.map +0 -1
- package/dist/devbox/commands/init/provider/resolve.d.ts +0 -44
- package/dist/devbox/commands/init/provider/resolve.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/resolve.js +0 -172
- package/dist/devbox/commands/init/provider/resolve.js.map +0 -1
- package/dist/devbox/commands/init/provider/shared.d.ts +0 -10
- package/dist/devbox/commands/init/provider/shared.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/shared.js +0 -2
- package/dist/devbox/commands/init/provider/shared.js.map +0 -1
- package/dist/devbox/commands/init/provider/sprites.d.ts +0 -30
- package/dist/devbox/commands/init/provider/sprites.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/sprites.js +0 -183
- package/dist/devbox/commands/init/provider/sprites.js.map +0 -1
- package/dist/devbox/commands/init/provider/types.d.ts +0 -19
- package/dist/devbox/commands/init/provider/types.d.ts.map +0 -1
- package/dist/devbox/commands/init/provider/types.js +0 -2
- package/dist/devbox/commands/init/provider/types.js.map +0 -1
- package/dist/devbox/commands/init/provisionFlow.d.ts +0 -53
- package/dist/devbox/commands/init/provisionFlow.d.ts.map +0 -1
- package/dist/devbox/commands/init/provisionFlow.js +0 -541
- package/dist/devbox/commands/init/provisionFlow.js.map +0 -1
- package/dist/devbox/commands/init/registry.d.ts +0 -15
- package/dist/devbox/commands/init/registry.d.ts.map +0 -1
- package/dist/devbox/commands/init/registry.js +0 -38
- package/dist/devbox/commands/init/registry.js.map +0 -1
- package/dist/devbox/commands/init/remote.d.ts +0 -48
- package/dist/devbox/commands/init/remote.d.ts.map +0 -1
- package/dist/devbox/commands/init/remote.js +0 -766
- package/dist/devbox/commands/init/remote.js.map +0 -1
- package/dist/devbox/commands/init/repo.d.ts +0 -45
- package/dist/devbox/commands/init/repo.d.ts.map +0 -1
- package/dist/devbox/commands/init/repo.js +0 -235
- package/dist/devbox/commands/init/repo.js.map +0 -1
- package/dist/devbox/commands/init/retryableErrors.d.ts +0 -4
- package/dist/devbox/commands/init/retryableErrors.d.ts.map +0 -1
- package/dist/devbox/commands/init/retryableErrors.js +0 -42
- package/dist/devbox/commands/init/retryableErrors.js.map +0 -1
- package/dist/devbox/commands/init/scanProgress.d.ts +0 -18
- package/dist/devbox/commands/init/scanProgress.d.ts.map +0 -1
- package/dist/devbox/commands/init/scanProgress.js +0 -47
- package/dist/devbox/commands/init/scanProgress.js.map +0 -1
- package/dist/devbox/commands/init/session.d.ts +0 -72
- package/dist/devbox/commands/init/session.d.ts.map +0 -1
- package/dist/devbox/commands/init/session.js +0 -348
- package/dist/devbox/commands/init/session.js.map +0 -1
- package/dist/devbox/commands/init/setupArtifactsValidation.d.ts +0 -28
- package/dist/devbox/commands/init/setupArtifactsValidation.d.ts.map +0 -1
- package/dist/devbox/commands/init/setupArtifactsValidation.js +0 -113
- package/dist/devbox/commands/init/setupArtifactsValidation.js.map +0 -1
- package/dist/devbox/commands/init/setupPlanFlow.d.ts +0 -34
- package/dist/devbox/commands/init/setupPlanFlow.d.ts.map +0 -1
- package/dist/devbox/commands/init/setupPlanFlow.js +0 -967
- package/dist/devbox/commands/init/setupPlanFlow.js.map +0 -1
- package/dist/devbox/commands/init/ssh.d.ts +0 -19
- package/dist/devbox/commands/init/ssh.d.ts.map +0 -1
- package/dist/devbox/commands/init/ssh.js +0 -276
- package/dist/devbox/commands/init/ssh.js.map +0 -1
- package/dist/devbox/commands/init/state.d.ts +0 -73
- package/dist/devbox/commands/init/state.d.ts.map +0 -1
- package/dist/devbox/commands/init/state.js +0 -118
- package/dist/devbox/commands/init/state.js.map +0 -1
- package/dist/devbox/commands/init/statusFlow.d.ts +0 -27
- package/dist/devbox/commands/init/statusFlow.d.ts.map +0 -1
- package/dist/devbox/commands/init/statusFlow.js +0 -160
- package/dist/devbox/commands/init/statusFlow.js.map +0 -1
- package/dist/devbox/commands/list.d.ts +0 -35
- package/dist/devbox/commands/list.d.ts.map +0 -1
- package/dist/devbox/commands/list.js +0 -311
- package/dist/devbox/commands/list.js.map +0 -1
- package/dist/devbox/commands/listFormatting.d.ts +0 -27
- package/dist/devbox/commands/listFormatting.d.ts.map +0 -1
- package/dist/devbox/commands/listFormatting.js +0 -155
- package/dist/devbox/commands/listFormatting.js.map +0 -1
- package/dist/devbox/commands/logout.d.ts +0 -2
- package/dist/devbox/commands/logout.d.ts.map +0 -1
- package/dist/devbox/commands/logout.js +0 -64
- package/dist/devbox/commands/logout.js.map +0 -1
- package/dist/devbox/commands/managedProviderClient.d.ts +0 -24
- package/dist/devbox/commands/managedProviderClient.d.ts.map +0 -1
- package/dist/devbox/commands/managedProviderClient.js +0 -42
- package/dist/devbox/commands/managedProviderClient.js.map +0 -1
- package/dist/devbox/commands/managedProviderContext.d.ts +0 -34
- package/dist/devbox/commands/managedProviderContext.d.ts.map +0 -1
- package/dist/devbox/commands/managedProviderContext.js +0 -34
- package/dist/devbox/commands/managedProviderContext.js.map +0 -1
- package/dist/devbox/commands/mount.d.ts +0 -25
- package/dist/devbox/commands/mount.d.ts.map +0 -1
- package/dist/devbox/commands/mount.js +0 -200
- package/dist/devbox/commands/mount.js.map +0 -1
- package/dist/devbox/commands/ports.d.ts +0 -11
- package/dist/devbox/commands/ports.d.ts.map +0 -1
- package/dist/devbox/commands/ports.js +0 -183
- package/dist/devbox/commands/ports.js.map +0 -1
- package/dist/devbox/commands/power.d.ts +0 -10
- package/dist/devbox/commands/power.d.ts.map +0 -1
- package/dist/devbox/commands/power.js +0 -139
- package/dist/devbox/commands/power.js.map +0 -1
- package/dist/devbox/commands/provider/daemonRuntimeShared.d.ts +0 -25
- package/dist/devbox/commands/provider/daemonRuntimeShared.d.ts.map +0 -1
- package/dist/devbox/commands/provider/daemonRuntimeShared.js +0 -217
- package/dist/devbox/commands/provider/daemonRuntimeShared.js.map +0 -1
- package/dist/devbox/commands/provider/directDaemonRuntime.d.ts +0 -106
- package/dist/devbox/commands/provider/directDaemonRuntime.d.ts.map +0 -1
- package/dist/devbox/commands/provider/directDaemonRuntime.js +0 -1442
- package/dist/devbox/commands/provider/directDaemonRuntime.js.map +0 -1
- package/dist/devbox/commands/provider/e2bCommandContext.d.ts +0 -11
- package/dist/devbox/commands/provider/e2bCommandContext.d.ts.map +0 -1
- package/dist/devbox/commands/provider/e2bCommandContext.js +0 -16
- package/dist/devbox/commands/provider/e2bCommandContext.js.map +0 -1
- package/dist/devbox/commands/provider/e2bLifecycleShared.d.ts +0 -20
- package/dist/devbox/commands/provider/e2bLifecycleShared.d.ts.map +0 -1
- package/dist/devbox/commands/provider/e2bLifecycleShared.js +0 -42
- package/dist/devbox/commands/provider/e2bLifecycleShared.js.map +0 -1
- package/dist/devbox/commands/provider/modalCommandContext.d.ts +0 -22
- package/dist/devbox/commands/provider/modalCommandContext.d.ts.map +0 -1
- package/dist/devbox/commands/provider/modalCommandContext.js +0 -47
- package/dist/devbox/commands/provider/modalCommandContext.js.map +0 -1
- package/dist/devbox/commands/provider/modalLifecycle.d.ts +0 -158
- package/dist/devbox/commands/provider/modalLifecycle.d.ts.map +0 -1
- package/dist/devbox/commands/provider/modalLifecycle.js +0 -702
- package/dist/devbox/commands/provider/modalLifecycle.js.map +0 -1
- package/dist/devbox/commands/provider/modalRuntime.d.ts +0 -25
- package/dist/devbox/commands/provider/modalRuntime.d.ts.map +0 -1
- package/dist/devbox/commands/provider/modalRuntime.js +0 -791
- package/dist/devbox/commands/provider/modalRuntime.js.map +0 -1
- package/dist/devbox/commands/provider/runtimeTypes.d.ts +0 -8
- package/dist/devbox/commands/provider/runtimeTypes.d.ts.map +0 -1
- package/dist/devbox/commands/provider/runtimeTypes.js +0 -2
- package/dist/devbox/commands/provider/runtimeTypes.js.map +0 -1
- package/dist/devbox/commands/providerClient.d.ts +0 -82
- package/dist/devbox/commands/providerClient.d.ts.map +0 -1
- package/dist/devbox/commands/providerClient.js +0 -719
- package/dist/devbox/commands/providerClient.js.map +0 -1
- package/dist/devbox/commands/reboot.d.ts +0 -8
- package/dist/devbox/commands/reboot.d.ts.map +0 -1
- package/dist/devbox/commands/reboot.js +0 -100
- package/dist/devbox/commands/reboot.js.map +0 -1
- package/dist/devbox/commands/reset.d.ts +0 -30
- package/dist/devbox/commands/reset.d.ts.map +0 -1
- package/dist/devbox/commands/reset.js +0 -114
- package/dist/devbox/commands/reset.js.map +0 -1
- package/dist/devbox/commands/runtimeClient.d.ts +0 -65
- package/dist/devbox/commands/runtimeClient.d.ts.map +0 -1
- package/dist/devbox/commands/runtimeClient.js +0 -127
- package/dist/devbox/commands/runtimeClient.js.map +0 -1
- package/dist/devbox/commands/sentryTest.d.ts +0 -2
- package/dist/devbox/commands/sentryTest.d.ts.map +0 -1
- package/dist/devbox/commands/sentryTest.js +0 -117
- package/dist/devbox/commands/sentryTest.js.map +0 -1
- package/dist/devbox/commands/services.d.ts +0 -2
- package/dist/devbox/commands/services.d.ts.map +0 -1
- package/dist/devbox/commands/services.js +0 -619
- package/dist/devbox/commands/services.js.map +0 -1
- package/dist/devbox/commands/servicesConfig.d.ts +0 -19
- package/dist/devbox/commands/servicesConfig.d.ts.map +0 -1
- package/dist/devbox/commands/servicesConfig.js +0 -61
- package/dist/devbox/commands/servicesConfig.js.map +0 -1
- package/dist/devbox/commands/servicesToml.d.ts +0 -13
- package/dist/devbox/commands/servicesToml.d.ts.map +0 -1
- package/dist/devbox/commands/servicesToml.js +0 -201
- package/dist/devbox/commands/servicesToml.js.map +0 -1
- package/dist/devbox/commands/sessionUtils.d.ts +0 -10
- package/dist/devbox/commands/sessionUtils.d.ts.map +0 -1
- package/dist/devbox/commands/sessionUtils.js +0 -48
- package/dist/devbox/commands/sessionUtils.js.map +0 -1
- package/dist/devbox/commands/sessions.d.ts +0 -3
- package/dist/devbox/commands/sessions.d.ts.map +0 -1
- package/dist/devbox/commands/sessions.js +0 -490
- package/dist/devbox/commands/sessions.js.map +0 -1
- package/dist/devbox/commands/setup.d.ts +0 -36
- package/dist/devbox/commands/setup.d.ts.map +0 -1
- package/dist/devbox/commands/setup.js +0 -816
- package/dist/devbox/commands/setup.js.map +0 -1
- package/dist/devbox/commands/setupClaude.d.ts +0 -51
- package/dist/devbox/commands/setupClaude.d.ts.map +0 -1
- package/dist/devbox/commands/setupClaude.js +0 -202
- package/dist/devbox/commands/setupClaude.js.map +0 -1
- package/dist/devbox/commands/setupTooling.d.ts +0 -56
- package/dist/devbox/commands/setupTooling.d.ts.map +0 -1
- package/dist/devbox/commands/setupTooling.js +0 -187
- package/dist/devbox/commands/setupTooling.js.map +0 -1
- package/dist/devbox/commands/sshAccess.d.ts +0 -31
- package/dist/devbox/commands/sshAccess.d.ts.map +0 -1
- package/dist/devbox/commands/sshAccess.js +0 -353
- package/dist/devbox/commands/sshAccess.js.map +0 -1
- package/dist/devbox/commands/sshConfig.d.ts +0 -23
- package/dist/devbox/commands/sshConfig.d.ts.map +0 -1
- package/dist/devbox/commands/sshConfig.js +0 -366
- package/dist/devbox/commands/sshConfig.js.map +0 -1
- package/dist/devbox/commands/sshProxy.d.ts +0 -2
- package/dist/devbox/commands/sshProxy.d.ts.map +0 -1
- package/dist/devbox/commands/sshProxy.js +0 -215
- package/dist/devbox/commands/sshProxy.js.map +0 -1
- package/dist/devbox/commands/uninstall.d.ts +0 -2
- package/dist/devbox/commands/uninstall.d.ts.map +0 -1
- package/dist/devbox/commands/uninstall.js +0 -365
- package/dist/devbox/commands/uninstall.js.map +0 -1
- package/dist/devbox/commands/upgrade.d.ts +0 -14
- package/dist/devbox/commands/upgrade.d.ts.map +0 -1
- package/dist/devbox/commands/upgrade.js +0 -60
- package/dist/devbox/commands/upgrade.js.map +0 -1
- package/dist/devbox/commands/version.d.ts +0 -8
- package/dist/devbox/commands/version.d.ts.map +0 -1
- package/dist/devbox/commands/version.js +0 -134
- package/dist/devbox/commands/version.js.map +0 -1
- package/dist/devbox/commands/whoami.d.ts +0 -2
- package/dist/devbox/commands/whoami.d.ts.map +0 -1
- package/dist/devbox/commands/whoami.js +0 -114
- package/dist/devbox/commands/whoami.js.map +0 -1
- package/dist/devbox/completions/cache.d.ts +0 -53
- package/dist/devbox/completions/cache.d.ts.map +0 -1
- package/dist/devbox/completions/cache.js +0 -227
- package/dist/devbox/completions/cache.js.map +0 -1
- package/dist/devbox/completions/index.d.ts +0 -18
- package/dist/devbox/completions/index.d.ts.map +0 -1
- package/dist/devbox/completions/index.js +0 -759
- package/dist/devbox/completions/index.js.map +0 -1
- package/dist/devbox/controlPlane.d.ts +0 -460
- package/dist/devbox/controlPlane.d.ts.map +0 -1
- package/dist/devbox/controlPlane.js +0 -1910
- package/dist/devbox/controlPlane.js.map +0 -1
- package/dist/devbox/daemonClient.d.ts +0 -44
- package/dist/devbox/daemonClient.d.ts.map +0 -1
- package/dist/devbox/daemonClient.js +0 -677
- package/dist/devbox/daemonClient.js.map +0 -1
- package/dist/devbox/e2bExecErrors.d.ts +0 -11
- package/dist/devbox/e2bExecErrors.d.ts.map +0 -1
- package/dist/devbox/e2bExecErrors.js +0 -19
- package/dist/devbox/e2bExecErrors.js.map +0 -1
- package/dist/devbox/latency.d.ts +0 -25
- package/dist/devbox/latency.d.ts.map +0 -1
- package/dist/devbox/latency.js +0 -186
- package/dist/devbox/latency.js.map +0 -1
- package/dist/devbox/logger.d.ts +0 -2
- package/dist/devbox/logger.d.ts.map +0 -1
- package/dist/devbox/logger.js +0 -3
- package/dist/devbox/logger.js.map +0 -1
- package/dist/devbox/terminal/kittyCtrlCReleaseSuppressor.d.ts +0 -11
- package/dist/devbox/terminal/kittyCtrlCReleaseSuppressor.d.ts.map +0 -1
- package/dist/devbox/terminal/kittyCtrlCReleaseSuppressor.js +0 -118
- package/dist/devbox/terminal/kittyCtrlCReleaseSuppressor.js.map +0 -1
- package/dist/devbox/terminal/osc.d.ts +0 -11
- package/dist/devbox/terminal/osc.d.ts.map +0 -1
- package/dist/devbox/terminal/osc.js +0 -84
- package/dist/devbox/terminal/osc.js.map +0 -1
- package/dist/devbox/terminal/sessionProtocol.d.ts +0 -46
- package/dist/devbox/terminal/sessionProtocol.d.ts.map +0 -1
- package/dist/devbox/terminal/sessionProtocol.js +0 -631
- package/dist/devbox/terminal/sessionProtocol.js.map +0 -1
- package/dist/devbox/ui/colors.d.ts +0 -19
- package/dist/devbox/ui/colors.d.ts.map +0 -1
- package/dist/devbox/ui/colors.js +0 -22
- package/dist/devbox/ui/colors.js.map +0 -1
- package/dist/devbox/ui/copyableUrl.d.ts +0 -4
- package/dist/devbox/ui/copyableUrl.d.ts.map +0 -1
- package/dist/devbox/ui/copyableUrl.js +0 -10
- package/dist/devbox/ui/copyableUrl.js.map +0 -1
- package/dist/devbox/ui/qr.d.ts +0 -3
- package/dist/devbox/ui/qr.d.ts.map +0 -1
- package/dist/devbox/ui/qr.js +0 -17
- package/dist/devbox/ui/qr.js.map +0 -1
- package/dist/devbox/ui/statusLine.d.ts +0 -14
- package/dist/devbox/ui/statusLine.d.ts.map +0 -1
- package/dist/devbox/ui/statusLine.js +0 -92
- package/dist/devbox/ui/statusLine.js.map +0 -1
- package/dist/devbox/updateNotice.d.ts +0 -2
- package/dist/devbox/updateNotice.d.ts.map +0 -1
- package/dist/devbox/updateNotice.js +0 -43
- package/dist/devbox/updateNotice.js.map +0 -1
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { createHash } from "node:crypto";
|
|
2
|
-
import { createReadStream } from "node:fs";
|
|
3
|
-
import fs from "node:fs/promises";
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import os from "node:os";
|
|
6
|
-
import { runCommand } from "../repo.js";
|
|
7
|
-
const macCopyfileDisabledEnv = process.platform === "darwin" ? { COPYFILE_DISABLE: "1" } : undefined;
|
|
8
|
-
const SETUP_ARTIFACT_PART_SIZE_BYTES = 90 * 1024 * 1024;
|
|
9
|
-
const SETUP_ARTIFACT_PARTS_DIRNAME = "setup-artifacts.parts";
|
|
10
|
-
const SETUP_ARTIFACT_PARTS_DESCRIPTOR_FILENAME = "setup-artifacts.parts.json";
|
|
11
|
-
const IMPLICIT_REPO_AGENT_ARTIFACTS = [
|
|
12
|
-
{
|
|
13
|
-
relativePath: ".claude",
|
|
14
|
-
description: "Repo-local Claude workspace config",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
relativePath: ".codex",
|
|
18
|
-
description: "Repo-local Codex workspace config",
|
|
19
|
-
},
|
|
20
|
-
];
|
|
21
|
-
const isWithinRepo = (repoRoot, candidate) => {
|
|
22
|
-
const relative = path.relative(repoRoot, candidate);
|
|
23
|
-
return relative && !relative.startsWith("..") && !path.isAbsolute(relative);
|
|
24
|
-
};
|
|
25
|
-
const normalizeExternalPath = (value) => value.replace(/^([A-Za-z]:)?[\\/]+/, "");
|
|
26
|
-
const expandHomePath = (value, homeDir) => {
|
|
27
|
-
if (!value.startsWith("~"))
|
|
28
|
-
return value;
|
|
29
|
-
const home = homeDir ?? os.homedir();
|
|
30
|
-
if (!home)
|
|
31
|
-
return value;
|
|
32
|
-
if (value === "~")
|
|
33
|
-
return home;
|
|
34
|
-
if (value.startsWith("~/") || value.startsWith("~\\")) {
|
|
35
|
-
return path.join(home, value.slice(2));
|
|
36
|
-
}
|
|
37
|
-
return value;
|
|
38
|
-
};
|
|
39
|
-
const buildArtifactEntry = (repoRoot, kind, name, artifactPath, homeDir, description, vars, usage) => {
|
|
40
|
-
const expanded = expandHomePath(artifactPath, homeDir);
|
|
41
|
-
const resolved = path.isAbsolute(expanded)
|
|
42
|
-
? expanded
|
|
43
|
-
: path.resolve(repoRoot, expanded);
|
|
44
|
-
const base = {
|
|
45
|
-
kind,
|
|
46
|
-
name,
|
|
47
|
-
sourcePath: resolved,
|
|
48
|
-
bundlePath: isWithinRepo(repoRoot, resolved)
|
|
49
|
-
? path.join("repo", path.relative(repoRoot, resolved))
|
|
50
|
-
: path.join("external", normalizeExternalPath(path.resolve(resolved))),
|
|
51
|
-
};
|
|
52
|
-
if (description !== undefined) {
|
|
53
|
-
base.description = description;
|
|
54
|
-
}
|
|
55
|
-
if (vars !== undefined) {
|
|
56
|
-
base.vars = vars;
|
|
57
|
-
}
|
|
58
|
-
if (usage !== undefined) {
|
|
59
|
-
base.usage = usage;
|
|
60
|
-
}
|
|
61
|
-
return base;
|
|
62
|
-
};
|
|
63
|
-
const buildEntries = (repoRoot, plan, homeDir) => {
|
|
64
|
-
const entries = [];
|
|
65
|
-
for (const item of plan.envFiles) {
|
|
66
|
-
entries.push(buildArtifactEntry(repoRoot, "env_file", item.name, item.path, homeDir, undefined, item.vars.map((entry) => entry.name), item.usage));
|
|
67
|
-
}
|
|
68
|
-
for (const item of plan.secretFiles) {
|
|
69
|
-
entries.push(buildArtifactEntry(repoRoot, "secret_file", item.name, item.path, homeDir, item.description));
|
|
70
|
-
}
|
|
71
|
-
for (const item of plan.extraArtifacts) {
|
|
72
|
-
entries.push(buildArtifactEntry(repoRoot, "extra_artifact", item.name, item.path, homeDir, item.description));
|
|
73
|
-
}
|
|
74
|
-
for (const item of plan.externalConfigs) {
|
|
75
|
-
entries.push(buildArtifactEntry(repoRoot, "external_config", item.name, item.path, homeDir, item.description));
|
|
76
|
-
}
|
|
77
|
-
return entries;
|
|
78
|
-
};
|
|
79
|
-
const isMissingPathError = (error) => Boolean(error &&
|
|
80
|
-
typeof error === "object" &&
|
|
81
|
-
"code" in error &&
|
|
82
|
-
(error.code === "ENOENT" ||
|
|
83
|
-
error.code === "ENOTDIR"));
|
|
84
|
-
const appendImplicitRepoAgentArtifacts = async ({ repoRoot, entries, }) => {
|
|
85
|
-
const seenSourcePaths = new Set(entries.map((entry) => entry.sourcePath));
|
|
86
|
-
for (const artifact of IMPLICIT_REPO_AGENT_ARTIFACTS) {
|
|
87
|
-
const entry = buildArtifactEntry(repoRoot, "extra_artifact", artifact.relativePath, artifact.relativePath, undefined, artifact.description);
|
|
88
|
-
if (seenSourcePaths.has(entry.sourcePath)) {
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
try {
|
|
92
|
-
await fs.lstat(entry.sourcePath);
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
if (isMissingPathError(error)) {
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
throw error;
|
|
99
|
-
}
|
|
100
|
-
entries.push(entry);
|
|
101
|
-
seenSourcePaths.add(entry.sourcePath);
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const copyArtifact = async (entry, bundleRoot) => {
|
|
105
|
-
const destPath = path.join(bundleRoot, entry.bundlePath);
|
|
106
|
-
const stat = await fs.lstat(entry.sourcePath);
|
|
107
|
-
await fs.mkdir(path.dirname(destPath), { recursive: true });
|
|
108
|
-
if (stat.isDirectory()) {
|
|
109
|
-
await fs.cp(entry.sourcePath, destPath, { recursive: true });
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
await fs.cp(entry.sourcePath, destPath, { recursive: false });
|
|
113
|
-
};
|
|
114
|
-
const sha256File = async (filePath) => await new Promise((resolve, reject) => {
|
|
115
|
-
const hash = createHash("sha256");
|
|
116
|
-
const stream = createReadStream(filePath);
|
|
117
|
-
stream.on("data", (chunk) => hash.update(chunk));
|
|
118
|
-
stream.on("error", reject);
|
|
119
|
-
stream.on("end", () => resolve(hash.digest("hex")));
|
|
120
|
-
});
|
|
121
|
-
const readSetupArtifactsPartsDescriptor = async (descriptorPath) => {
|
|
122
|
-
const raw = await fs.readFile(descriptorPath, "utf8");
|
|
123
|
-
const parsed = JSON.parse(raw);
|
|
124
|
-
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
125
|
-
throw new Error(`Invalid setup artifacts parts descriptor: ${descriptorPath}`);
|
|
126
|
-
}
|
|
127
|
-
const record = parsed;
|
|
128
|
-
if (record.version !== 1 || record.algorithm !== "sha256") {
|
|
129
|
-
throw new Error(`Unsupported setup artifacts parts descriptor: ${descriptorPath}`);
|
|
130
|
-
}
|
|
131
|
-
if (typeof record.partSizeBytes !== "number" ||
|
|
132
|
-
!Number.isFinite(record.partSizeBytes) ||
|
|
133
|
-
record.partSizeBytes <= 0) {
|
|
134
|
-
throw new Error(`Invalid partSizeBytes in descriptor: ${descriptorPath}`);
|
|
135
|
-
}
|
|
136
|
-
if (typeof record.totalSizeBytes !== "number" ||
|
|
137
|
-
!Number.isFinite(record.totalSizeBytes) ||
|
|
138
|
-
record.totalSizeBytes <= 0) {
|
|
139
|
-
throw new Error(`Invalid totalSizeBytes in descriptor: ${descriptorPath}`);
|
|
140
|
-
}
|
|
141
|
-
if (typeof record.bundleSha256 !== "string" || !record.bundleSha256.trim()) {
|
|
142
|
-
throw new Error(`Invalid bundleSha256 in descriptor: ${descriptorPath}`);
|
|
143
|
-
}
|
|
144
|
-
if (!Array.isArray(record.parts) || record.parts.length === 0) {
|
|
145
|
-
throw new Error(`Descriptor has no parts: ${descriptorPath}`);
|
|
146
|
-
}
|
|
147
|
-
const parts = [];
|
|
148
|
-
for (const entry of record.parts) {
|
|
149
|
-
if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
|
|
150
|
-
throw new Error(`Invalid part entry in descriptor: ${descriptorPath}`);
|
|
151
|
-
}
|
|
152
|
-
const part = entry;
|
|
153
|
-
if (typeof part.index !== "number" ||
|
|
154
|
-
!Number.isFinite(part.index) ||
|
|
155
|
-
part.index < 0) {
|
|
156
|
-
throw new Error(`Invalid part index in descriptor: ${descriptorPath}`);
|
|
157
|
-
}
|
|
158
|
-
if (typeof part.relativePath !== "string" ||
|
|
159
|
-
part.relativePath.trim().length === 0) {
|
|
160
|
-
throw new Error(`Invalid part relativePath in descriptor: ${descriptorPath}`);
|
|
161
|
-
}
|
|
162
|
-
if (typeof part.sizeBytes !== "number" ||
|
|
163
|
-
!Number.isFinite(part.sizeBytes) ||
|
|
164
|
-
part.sizeBytes <= 0) {
|
|
165
|
-
throw new Error(`Invalid part sizeBytes in descriptor: ${descriptorPath}`);
|
|
166
|
-
}
|
|
167
|
-
if (typeof part.sha256 !== "string" || !part.sha256.trim()) {
|
|
168
|
-
throw new Error(`Invalid part sha256 in descriptor: ${descriptorPath}`);
|
|
169
|
-
}
|
|
170
|
-
parts.push({
|
|
171
|
-
index: part.index,
|
|
172
|
-
relativePath: part.relativePath,
|
|
173
|
-
sizeBytes: part.sizeBytes,
|
|
174
|
-
sha256: part.sha256,
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
parts.sort((a, b) => a.index - b.index);
|
|
178
|
-
return {
|
|
179
|
-
version: 1,
|
|
180
|
-
algorithm: "sha256",
|
|
181
|
-
partSizeBytes: record.partSizeBytes,
|
|
182
|
-
totalSizeBytes: record.totalSizeBytes,
|
|
183
|
-
bundleSha256: record.bundleSha256,
|
|
184
|
-
parts,
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
const createSetupArtifacts = async ({ repoRoot, plan, outputDir, tempDir, homeDir, }) => {
|
|
188
|
-
const entries = buildEntries(repoRoot, plan, homeDir);
|
|
189
|
-
await appendImplicitRepoAgentArtifacts({ repoRoot, entries });
|
|
190
|
-
if (entries.length === 0)
|
|
191
|
-
return null;
|
|
192
|
-
const bundleRoot = path.join(tempDir, "setup-artifacts");
|
|
193
|
-
await fs.mkdir(bundleRoot, { recursive: true });
|
|
194
|
-
for (const entry of entries) {
|
|
195
|
-
await copyArtifact(entry, bundleRoot);
|
|
196
|
-
}
|
|
197
|
-
const manifest = {
|
|
198
|
-
entries: entries.map((entry) => ({
|
|
199
|
-
kind: entry.kind,
|
|
200
|
-
name: entry.name,
|
|
201
|
-
sourcePath: entry.sourcePath,
|
|
202
|
-
bundlePath: entry.bundlePath,
|
|
203
|
-
description: entry.description,
|
|
204
|
-
vars: entry.vars,
|
|
205
|
-
usage: entry.usage ?? null,
|
|
206
|
-
})),
|
|
207
|
-
};
|
|
208
|
-
const manifestPath = path.join(tempDir, "setup-artifacts.json");
|
|
209
|
-
await fs.writeFile(manifestPath, JSON.stringify(manifest, null, 2), "utf8");
|
|
210
|
-
const bundlePath = path.join(tempDir, "setup-artifacts.tgz");
|
|
211
|
-
await runCommand(bundleRoot, "tar", ["-czf", bundlePath, "-C", bundleRoot, "."], macCopyfileDisabledEnv ? { env: macCopyfileDisabledEnv } : undefined);
|
|
212
|
-
const finalBundle = path.join(outputDir, "setup-artifacts.tgz");
|
|
213
|
-
const finalManifest = path.join(outputDir, "setup-artifacts.json");
|
|
214
|
-
const finalPartsDir = path.join(outputDir, SETUP_ARTIFACT_PARTS_DIRNAME);
|
|
215
|
-
const finalPartsDescriptor = path.join(outputDir, SETUP_ARTIFACT_PARTS_DESCRIPTOR_FILENAME);
|
|
216
|
-
await fs.rm(finalPartsDir, { recursive: true, force: true });
|
|
217
|
-
await fs.rm(finalPartsDescriptor, { force: true });
|
|
218
|
-
await fs.copyFile(bundlePath, finalBundle);
|
|
219
|
-
await fs.copyFile(manifestPath, finalManifest);
|
|
220
|
-
const finalBundleStat = await fs.stat(finalBundle);
|
|
221
|
-
if (finalBundleStat.size <= SETUP_ARTIFACT_PART_SIZE_BYTES) {
|
|
222
|
-
return {
|
|
223
|
-
bundlePath: finalBundle,
|
|
224
|
-
manifestPath: finalManifest,
|
|
225
|
-
entries,
|
|
226
|
-
partsDescriptorPath: null,
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
const partsTempDir = path.join(tempDir, SETUP_ARTIFACT_PARTS_DIRNAME);
|
|
230
|
-
await fs.mkdir(partsTempDir, { recursive: true });
|
|
231
|
-
const partPrefix = path.join(partsTempDir, "setup-artifacts.tgz.part-");
|
|
232
|
-
await runCommand(tempDir, "split", [
|
|
233
|
-
"-b",
|
|
234
|
-
String(SETUP_ARTIFACT_PART_SIZE_BYTES),
|
|
235
|
-
"-d",
|
|
236
|
-
"-a",
|
|
237
|
-
"5",
|
|
238
|
-
bundlePath,
|
|
239
|
-
partPrefix,
|
|
240
|
-
]);
|
|
241
|
-
const partFileNames = (await fs.readdir(partsTempDir))
|
|
242
|
-
.filter((entry) => entry.startsWith("setup-artifacts.tgz.part-"))
|
|
243
|
-
.sort();
|
|
244
|
-
if (partFileNames.length === 0) {
|
|
245
|
-
throw new Error("setup artifacts split produced no parts");
|
|
246
|
-
}
|
|
247
|
-
await fs.mkdir(finalPartsDir, { recursive: true });
|
|
248
|
-
const parts = [];
|
|
249
|
-
for (const [index, fileName] of partFileNames.entries()) {
|
|
250
|
-
const tempPartPath = path.join(partsTempDir, fileName);
|
|
251
|
-
const partStat = await fs.stat(tempPartPath);
|
|
252
|
-
const partSha = await sha256File(tempPartPath);
|
|
253
|
-
await fs.copyFile(tempPartPath, path.join(finalPartsDir, fileName));
|
|
254
|
-
parts.push({
|
|
255
|
-
index,
|
|
256
|
-
relativePath: path.posix.join(SETUP_ARTIFACT_PARTS_DIRNAME, fileName),
|
|
257
|
-
sizeBytes: partStat.size,
|
|
258
|
-
sha256: partSha,
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
const descriptor = {
|
|
262
|
-
version: 1,
|
|
263
|
-
algorithm: "sha256",
|
|
264
|
-
partSizeBytes: SETUP_ARTIFACT_PART_SIZE_BYTES,
|
|
265
|
-
totalSizeBytes: finalBundleStat.size,
|
|
266
|
-
bundleSha256: await sha256File(finalBundle),
|
|
267
|
-
parts,
|
|
268
|
-
};
|
|
269
|
-
await fs.writeFile(finalPartsDescriptor, JSON.stringify(descriptor, null, 2), "utf8");
|
|
270
|
-
return {
|
|
271
|
-
bundlePath: finalBundle,
|
|
272
|
-
manifestPath: finalManifest,
|
|
273
|
-
entries,
|
|
274
|
-
partsDescriptorPath: finalPartsDescriptor,
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
export { createSetupArtifacts, readSetupArtifactsPartsDescriptor };
|
|
278
|
-
//# sourceMappingURL=artifacts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../../src/devbox/commands/init/codex/artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AASxC,MAAM,sBAAsB,GAC1B,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAyCxE,MAAM,8BAA8B,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACxD,MAAM,4BAA4B,GAAG,uBAAuB,CAAC;AAC7D,MAAM,wCAAwC,GAAG,4BAA4B,CAAC;AAC9E,MAAM,6BAA6B,GAAG;IACpC;QACE,YAAY,EAAE,SAAS;QACvB,WAAW,EAAE,oCAAoC;KAClD;IACD;QACE,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE,mCAAmC;KACjD;CACO,CAAC;AAEX,MAAM,YAAY,GAAG,CAAC,QAAgB,EAAE,SAAiB,EAAE,EAAE;IAC3D,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACpD,OAAO,QAAQ,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF,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,CAAC,IAAI;YACxB,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,UAAU,GAAkC;QAChD,OAAO,EAAE,CAAC;QACV,SAAS,EAAE,QAAQ;QACnB,aAAa,EAAE,8BAA8B;QAC7C,cAAc,EAAE,eAAe,CAAC,IAAI;QACpC,YAAY,EAAE,MAAM,UAAU,CAAC,WAAW,CAAC;QAC3C,KAAK;KACN,CAAC;IACF,MAAM,EAAE,CAAC,SAAS,CAChB,oBAAoB,EACpB,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,EACnC,MAAM,CACP,CAAC;IAEF,OAAO;QACL,UAAU,EAAE,WAAW;QACvB,YAAY,EAAE,aAAa;QAC3B,OAAO;QACP,mBAAmB,EAAE,oBAAoB;KAC1C,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,iCAAiC,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/devbox/commands/init/codex/config.ts"],"names":[],"mappings":"AA0CA,QAAA,MAAM,oBAAoB,GAAI,oCAG3B;IACD,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,WAQA,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { parse as parseToml, stringify as stringifyToml } from "smol-toml";
|
|
2
|
-
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3
|
-
const parseExistingConfig = (content) => {
|
|
4
|
-
if (!content)
|
|
5
|
-
return {};
|
|
6
|
-
try {
|
|
7
|
-
const parsed = parseToml(content);
|
|
8
|
-
return isRecord(parsed) ? { ...parsed } : {};
|
|
9
|
-
}
|
|
10
|
-
catch {
|
|
11
|
-
return {};
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
const normalizeTrustedPaths = (trustedPaths) => [
|
|
15
|
-
...new Set(trustedPaths.map((path) => path.trim()).filter(Boolean)),
|
|
16
|
-
];
|
|
17
|
-
const ensureNoticeConfig = (config) => {
|
|
18
|
-
const notice = isRecord(config.notice) ? { ...config.notice } : {};
|
|
19
|
-
notice.hide_full_access_warning = true;
|
|
20
|
-
config.notice = notice;
|
|
21
|
-
};
|
|
22
|
-
const ensureTrustedProjects = (config, trustedPaths) => {
|
|
23
|
-
const projects = isRecord(config.projects) ? { ...config.projects } : {};
|
|
24
|
-
for (const trustedPath of normalizeTrustedPaths(trustedPaths)) {
|
|
25
|
-
const existingProject = isRecord(projects[trustedPath])
|
|
26
|
-
? { ...projects[trustedPath] }
|
|
27
|
-
: {};
|
|
28
|
-
existingProject.trust_level = "trusted";
|
|
29
|
-
projects[trustedPath] = existingProject;
|
|
30
|
-
}
|
|
31
|
-
config.projects = projects;
|
|
32
|
-
};
|
|
33
|
-
const mergeCodexInitConfig = ({ existingContent, trustedPaths, }) => {
|
|
34
|
-
const config = parseExistingConfig(existingContent);
|
|
35
|
-
config.approval_policy = "never";
|
|
36
|
-
config.sandbox_mode = "danger-full-access";
|
|
37
|
-
ensureNoticeConfig(config);
|
|
38
|
-
ensureTrustedProjects(config, trustedPaths);
|
|
39
|
-
const rendered = stringifyToml(config);
|
|
40
|
-
return rendered.endsWith("\n") ? rendered : `${rendered}\n`;
|
|
41
|
-
};
|
|
42
|
-
export { mergeCodexInitConfig };
|
|
43
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/devbox/commands/init/codex/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,WAAW,CAAC;AAE3E,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE,CACpE,OAAO,K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BAAqB,CAAC,YAAY,CAAC,EAAE,CAAC;QAC9D,MAAM,eAAe,GAAG,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YACrD,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,WAAW,CAAC,EAAE;YAC9B,CAAC,CAAC,EAAE,CAAC;QACP,eAAe,CAAC,WAAW,GAAG,SAAS,CAAC;QACxC,QAAQ,CAAC,WAAW,CAAC,GAAG,eAAe,CAAC;IAC1C,CAAC;IACD,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,EAC5B,eAAe,EACf,YAAY,GAIb,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACpD,MAAM,CAAC,eAAe,GAAG,OAAO,CAAC;IACjC,MAAM,CAAC,YAAY,GAAG,oBAAoB,CAAC;IAC3C,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC3B,qBAAqB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,CAAC;AAC9D,CAAC,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const stripAnsi: (value: string) => string;
|
|
2
|
-
type CodexProgressUpdate = {
|
|
3
|
-
kind: "todo" | "reasoning" | "command";
|
|
4
|
-
message: string;
|
|
5
|
-
};
|
|
6
|
-
declare const extractBoldText: (line: string) => string | null;
|
|
7
|
-
declare const normalizeProgressMessage: (value: string | null) => string | null;
|
|
8
|
-
declare const extractProgressUpdateFromJsonLine: (line: string) => CodexProgressUpdate | null;
|
|
9
|
-
declare const extractProgressFromJsonLine: (line: string) => string | null;
|
|
10
|
-
declare const extractThreadIdFromJsonLine: (line: string) => string | null;
|
|
11
|
-
declare const extractTurnCompletedFromJsonLine: (line: string) => boolean;
|
|
12
|
-
declare const extractTurnFailureFromJsonLine: (line: string) => string | null;
|
|
13
|
-
export { type CodexProgressUpdate, extractBoldText, extractProgressFromJsonLine, extractProgressUpdateFromJsonLine, extractTurnCompletedFromJsonLine, extractThreadIdFromJsonLine, extractTurnFailureFromJsonLine, normalizeProgressMessage, stripAnsi, };
|
|
14
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../../src/devbox/commands/init/codex/events.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,GAAI,OAAO,MAAM,WACe,CAAC;AAEhD,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,MAAM,MAAM,kBAIpC,CAAC;AAgBF,QAAA,MAAM,wBAAwB,GAAI,OAAO,MAAM,GAAG,IAAI,kBASrD,CAAC;AA2XF,QAAA,MAAM,iCAAiC,GACrC,MAAM,MAAM,KACX,mBAAmB,GAAG,IAgDxB,CAAC;AAEF,QAAA,MAAM,2BAA2B,GAAI,MAAM,MAAM,kBACS,CAAC;AAE3D,QAAA,MAAM,2BAA2B,GAAI,MAAM,MAAM,kBAchD,CAAC;AAEF,QAAA,MAAM,gCAAgC,GAAI,MAAM,MAAM,YAYrD,CAAC;AAEF,QAAA,MAAM,8BAA8B,GAAI,MAAM,MAAM,kBAoBnD,CAAC;AAEF,OAAO,EACL,KAAK,mBAAmB,EACxB,eAAe,EACf,2BAA2B,EAC3B,iCAAiC,EACjC,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,SAAS,GACV,CAAC"}
|