@boxes-dev/dvb-runtime 1.0.711 → 1.0.712
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 +84 -42
- 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]="55095012-5e75-5705-a25e-8d8608617cfd")}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.712";
|
|
74559
|
+
const rawGitSha = "98921583dcbf90837d73756a485fc8953f65dec3";
|
|
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.712";
|
|
112519
|
+
const rawGitSha = "98921583dcbf90837d73756a485fc8953f65dec3";
|
|
112520
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.712+98921583dcbf90837d73756a485fc8953f65dec3";
|
|
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;
|
|
@@ -118632,7 +118632,7 @@ var init_packageVersion = __esm({
|
|
|
118632
118632
|
return import_node_path16.default.join(process.cwd(), "dvb");
|
|
118633
118633
|
};
|
|
118634
118634
|
readEmbeddedPackageVersion = () => {
|
|
118635
|
-
const raw = "1.0.
|
|
118635
|
+
const raw = "1.0.712";
|
|
118636
118636
|
return trimVersion(raw);
|
|
118637
118637
|
};
|
|
118638
118638
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -133477,7 +133477,7 @@ var init_index_node = __esm({
|
|
|
133477
133477
|
});
|
|
133478
133478
|
|
|
133479
133479
|
// src/devbox/controlPlane.ts
|
|
133480
|
-
var import_node_http, import_node_crypto6, MANAGED_DAEMON_NOT_READY_CODE, CONVEX_INFLIGHT_ACTION_DISCONNECTED_MESSAGE, CONTROL_PLANE_ACTION_RETRY_MAX_ATTEMPTS, CONTROL_PLANE_ACTION_RETRY_BASE_DELAY_MS, CONTROL_PLANE_CHECKPOINT_RECOVERY_MAX_ATTEMPTS, CONTROL_PLANE_CHECKPOINT_RECOVERY_POLL_MS, ManagedDaemonNotReadyError, isManagedDaemonNotReadyError, sleep2, isRetryableTransientConvexActionError, buildTransientConvexActionRetryMessage, announceTransientConvexActionRetry, retryTransientConvexAction, normalizeStringRecord, E2B_DEVBOX_ALIAS_EXISTS_CODE, isRecord, maybeMapE2bProvisionControlPlaneError, mapE2bProvisionControlPlaneError, resolveControlPlaneUrl, resolveConvexUrl, escapeHtml, CALLBACK_LOGO_MARK, CALLBACK_FULL_LOGO, renderCallbackPage, requestJson, startCallbackServer, getControlPlaneUrl, getConvexUrl, createDefaultBrowserSignInDeps, signInWithBrowser, claudeTokenGet, claudeTokenSet, claudeTokenClear, codexAuthCacheGet, codexAuthCacheSet, codexAuthCacheClear, claudeTokenReportRuntimeAuthFailureForViewer, claudeTokenReportRuntimeValidatedForViewer, e2bTokenResolvedGet, userSettingsGet, userSettingsSet, e2bDevboxRemove, e2bDevboxGet, e2bDevboxStatusesList, e2bDevboxDestroy, e2bDevboxProvision, e2bDevboxRestoreLatestSnapshot, e2bDevboxPause, e2bDevboxEnsureActive, e2bDevboxKeepAlive, e2bDevboxReset, e2bDevboxIssueBootstrapConnectInfo, e2bDevboxSetDaemonBootstrapState, managedDevboxIssueDaemonConnectInfo, managedDevboxCreateCheckpoint, managedDevboxListRemoteStates, spriteDaemonReleaseGet, spriteDaemonTokenIssue, clientThreadsListForPrimaryInstance, threadTitleGenerationStatesListForPrimaryInstance, spriteDaemonSessionsList, clientThreadsUpsertRemoteInitCodexThread, clientThreadsDiscardRemoteInitCodexThread, projectInitJobsGetActiveForProject, instancesList, helloViewerGet, billingSummaryGet, convexBrowserModulePromise, loadConvexBrowserModule, buildConvexClientOptions, withConvexClient, resolveInstanceIdForAlias, resolveSpriteInstanceId, fetchClaudeTokenStatus, fetchResolvedE2bCredentials, fetchViewerIdentity, BILLING_ACTIVATION_STATES, readBillingActivationBoolean, parseBillingActivationDecision, parseBillingActivationSummary, fetchTeamBillingActivationForViewer, fetchActiveDesktopInitJobForProject, storeViewerCodingAgentPreference, storeClaudeCodeOauthToken, clearClaudeCodeOauthToken, reportClaudeRuntimeAuthFailureForViewer, reportClaudeRuntimeValidatedForViewer, fetchCodexAuthCacheStatus, storeCodexAuthCache, clearCodexAuthCache, normalizeE2bDevboxRecord, fetchE2bDevboxLifecycle, listE2bDevboxStatuses, destroyE2bDevbox, provisionE2bDevbox, restoreLatestSnapshotForE2bDevbox, pauseE2bDevbox, ensureE2bDevboxActive, keepAliveE2bDevbox, resetE2bDevbox, setE2bDaemonBootstrapState, markE2bDaemonBootstrapReady, markE2bDaemonBootstrapFailed, throwManagedDaemonNotReady, normalizeOptionalString2, normalizeAliasForLookup, normalizeManagedCheckpointResponse, buildRecoveredManagedCheckpointResponse, readManagedCheckpointRecoveryState, recoverManagedCheckpointAfterDisconnect, buildManagedDaemonConnectInfoResponseSummary, buildManagedDaemonConnectInfoUnexpectedMessage, buildManagedDaemonConnectInfoSleepingMessage, logManagedDaemonConnectInfoResponse, fetchManagedDaemonConnectInfo, fetchE2bBootstrapConnectInfo, createManagedCheckpoint, listManagedRemoteStates, listViewerInstances, fetchSpriteDaemonRelease, issueSpriteDaemonToken, listClientThreadsForPrimaryInstance, listThreadTitleGenerationStatesForPrimaryInstance, listSpriteDaemonSessions, upsertRemoteInitCodexThread, discardRemoteInitCodexThread, signOutControlPlane, refreshControlPlaneSession;
|
|
133480
|
+
var import_node_http, import_node_crypto6, MANAGED_DAEMON_NOT_READY_CODE, CONVEX_INFLIGHT_ACTION_DISCONNECTED_MESSAGE, CONTROL_PLANE_ACTION_RETRY_MAX_ATTEMPTS, CONTROL_PLANE_ACTION_RETRY_BASE_DELAY_MS, CONTROL_PLANE_CHECKPOINT_RECOVERY_MAX_ATTEMPTS, CONTROL_PLANE_CHECKPOINT_RECOVERY_POLL_MS, ManagedDaemonNotReadyError, isManagedDaemonNotReadyError, sleep2, isRetryableTransientConvexActionError, buildTransientConvexActionRetryMessage, announceTransientConvexActionRetry, retryTransientConvexAction, normalizeStringRecord, E2B_DEVBOX_ALIAS_EXISTS_CODE, isRecord, maybeMapE2bProvisionControlPlaneError, mapE2bProvisionControlPlaneError, resolveControlPlaneUrl, resolveConvexUrl, escapeHtml, CALLBACK_LOGO_MARK, CALLBACK_FULL_LOGO, renderCallbackPage, requestJson, startCallbackServer, getControlPlaneUrl, getConvexUrl, createDefaultBrowserSignInDeps, signInWithBrowser, claudeTokenGet, claudeTokenSet, claudeTokenClear, codexAuthCacheGet, codexAuthCacheSet, codexAuthCacheClear, claudeTokenReportRuntimeAuthFailureForViewer, claudeTokenReportRuntimeValidatedForViewer, e2bTokenResolvedGet, userSettingsGet, userSettingsSet, e2bDevboxRemove, e2bDevboxGet, e2bDevboxStatusesList, e2bDevboxDestroy, e2bDevboxProvision, e2bDevboxRestoreLatestSnapshot, e2bDevboxPause, e2bDevboxEnsureActive, e2bDevboxKeepAlive, e2bDevboxReset, e2bDevboxIssueBootstrapConnectInfo, e2bDevboxSetDaemonBootstrapState, managedDevboxIssueDaemonConnectInfo, managedDevboxCreateCheckpoint, managedDevboxListRemoteStates, spriteDaemonReleaseGet, spriteDaemonTokenIssue, clientThreadsListForPrimaryInstance, threadTitleGenerationStatesListForPrimaryInstance, spriteDaemonSessionsList, clientThreadsUpsertRemoteInitCodexThread, clientThreadsDiscardRemoteInitCodexThread, projectInitJobsGetActiveForProject, instancesList, helloViewerGet, billingSummaryGet, convexBrowserModulePromise, loadConvexBrowserModule, buildConvexClientOptions, withConvexClient, resolveInstanceIdForAlias, resolveSpriteInstanceId, fetchClaudeTokenStatus, fetchResolvedE2bCredentials, fetchViewerIdentity, BILLING_ACTIVATION_STATES, readBillingActivationBoolean, parseBillingActivationDecision, parseBillingActivationSummary, fetchTeamBillingActivationForViewer, fetchActiveDesktopInitJobForProject, storeViewerCodingAgentPreference, storeClaudeCodeOauthToken, clearClaudeCodeOauthToken, reportClaudeRuntimeAuthFailureForViewer, reportClaudeRuntimeValidatedForViewer, fetchCodexAuthCacheStatus, storeCodexAuthCache, clearCodexAuthCache, normalizeE2bDevboxRecord, fetchE2bDevboxLifecycle, listE2bDevboxStatuses, destroyE2bDevbox, provisionE2bDevbox, restoreLatestSnapshotForE2bDevbox, pauseE2bDevbox, ensureE2bDevboxActive, keepAliveE2bDevbox, resetE2bDevbox, setE2bDaemonBootstrapState, markE2bDaemonBootstrapReady, markE2bDaemonBootstrapFailed, throwManagedDaemonNotReady, normalizeOptionalString2, normalizeAliasForLookup, normalizeManagedCheckpointResponse, buildRecoveredManagedCheckpointResponse, readManagedCheckpointRecoveryState, recoverManagedCheckpointAfterDisconnect, buildManagedDaemonConnectInfoResponseSummary, buildManagedDaemonConnectInfoUnexpectedMessage, buildManagedDaemonConnectInfoSleepingMessage, logManagedDaemonConnectInfoResponse, fetchManagedDaemonConnectInfo, fetchE2bBootstrapConnectInfo, createManagedCheckpoint, listManagedRemoteStates, listViewerInstances, fetchSpriteDaemonRelease, issueSpriteDaemonToken, listClientThreadsForPrimaryInstance, listThreadTitleGenerationStatesForPrimaryInstance, listSpriteDaemonSessions, upsertRemoteInitCodexThread, discardRemoteInitCodexThread, signOutControlPlane, refreshControlPlaneSession, createCliInitResponsesRelayTokenForViewer;
|
|
133481
133481
|
var init_controlPlane = __esm({
|
|
133482
133482
|
"src/devbox/controlPlane.ts"() {
|
|
133483
133483
|
"use strict";
|
|
@@ -135019,6 +135019,26 @@ var init_controlPlane = __esm({
|
|
|
135019
135019
|
}
|
|
135020
135020
|
return response.refresh_token ? { token: response.token, refreshToken: response.refresh_token } : { token: response.token };
|
|
135021
135021
|
};
|
|
135022
|
+
createCliInitResponsesRelayTokenForViewer = async (controlPlaneToken) => {
|
|
135023
|
+
const baseUrl = resolveControlPlaneUrl();
|
|
135024
|
+
if (!baseUrl) {
|
|
135025
|
+
throw new Error(
|
|
135026
|
+
"This dvb build is missing its boxes.dev URL. Reinstall dvb, then retry."
|
|
135027
|
+
);
|
|
135028
|
+
}
|
|
135029
|
+
const response = await requestJson(
|
|
135030
|
+
baseUrl,
|
|
135031
|
+
"POST",
|
|
135032
|
+
"/codex/init-relay-token",
|
|
135033
|
+
void 0,
|
|
135034
|
+
controlPlaneToken
|
|
135035
|
+
);
|
|
135036
|
+
const token = response.token?.trim() ?? "";
|
|
135037
|
+
if (!token) {
|
|
135038
|
+
throw new Error("Could not prepare Codex proxy login for init.");
|
|
135039
|
+
}
|
|
135040
|
+
return token;
|
|
135041
|
+
};
|
|
135022
135042
|
}
|
|
135023
135043
|
});
|
|
135024
135044
|
|
|
@@ -185946,8 +185966,8 @@ var init_proxy2 = __esm({
|
|
|
185946
185966
|
"use strict";
|
|
185947
185967
|
normalizeRelayBaseUrl2 = (value) => value.trim().replace(/\/+$/, "");
|
|
185948
185968
|
toTomlString = (value) => JSON.stringify(value);
|
|
185949
|
-
buildCodexProxyAuthorizationHeader = (
|
|
185950
|
-
const trimmed =
|
|
185969
|
+
buildCodexProxyAuthorizationHeader = (relayToken) => {
|
|
185970
|
+
const trimmed = relayToken.trim();
|
|
185951
185971
|
if (!trimmed) {
|
|
185952
185972
|
throw new Error(
|
|
185953
185973
|
"Not logged in. Run `dvb setup` to log in to boxes.dev before using Codex proxy mode."
|
|
@@ -187509,7 +187529,7 @@ ${turnFailedMessage}` : combinedOutput;
|
|
|
187509
187529
|
CODEX_HOME: codexExecHome,
|
|
187510
187530
|
...proxyOptions ? {
|
|
187511
187531
|
DEVBOX_TOKEN: buildCodexProxyAuthorizationHeader(
|
|
187512
|
-
proxyOptions.
|
|
187532
|
+
proxyOptions.relayToken
|
|
187513
187533
|
)
|
|
187514
187534
|
} : {}
|
|
187515
187535
|
};
|
|
@@ -190182,7 +190202,7 @@ ${execResult.stderr}`;
|
|
|
190182
190202
|
const tokenPath = `${proxyRoot}/devbox-token`;
|
|
190183
190203
|
const configPath = `${codexHomePath}/config.toml`;
|
|
190184
190204
|
const proxyAuthHeader = buildCodexProxyAuthorizationHeader(
|
|
190185
|
-
proxyOptions.
|
|
190205
|
+
proxyOptions.relayToken
|
|
190186
190206
|
);
|
|
190187
190207
|
const proxyConfig = buildCodexProxyConfig({
|
|
190188
190208
|
relayBaseUrl: proxyOptions.relayBaseUrl,
|
|
@@ -191385,7 +191405,7 @@ codex login`
|
|
|
191385
191405
|
);
|
|
191386
191406
|
}
|
|
191387
191407
|
const proxyAuthHeader = buildCodexProxyAuthorizationHeader(
|
|
191388
|
-
proxyOptions.
|
|
191408
|
+
proxyOptions.relayToken
|
|
191389
191409
|
);
|
|
191390
191410
|
const proxyConfig = buildCodexProxyConfig({
|
|
191391
191411
|
relayBaseUrl: proxyOptions.relayBaseUrl,
|
|
@@ -202424,6 +202444,7 @@ var init_codexExecution = __esm({
|
|
|
202424
202444
|
import_promises45 = __toESM(require("node:fs/promises"), 1);
|
|
202425
202445
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
202426
202446
|
import_node_path53 = __toESM(require("node:path"), 1);
|
|
202447
|
+
init_controlPlane();
|
|
202427
202448
|
init_managedCodexAuth();
|
|
202428
202449
|
init_managedCodexValidation();
|
|
202429
202450
|
init_managedCodex();
|
|
@@ -202432,10 +202453,11 @@ var init_codexExecution = __esm({
|
|
|
202432
202453
|
CODEX_INIT_MODEL_PROBE_TIMEOUT_MS = 45e3;
|
|
202433
202454
|
CODEX_INIT_MODEL_PROBE_PROMPT = "Reply with exactly OK. Do not inspect files or run commands.";
|
|
202434
202455
|
normalizePlanType = (planType) => trim8(planType).toLowerCase();
|
|
202435
|
-
buildProxyOptions = ({
|
|
202456
|
+
buildProxyOptions = async ({
|
|
202436
202457
|
relayBaseUrl,
|
|
202437
202458
|
remoteRelayBaseUrl,
|
|
202438
|
-
controlPlaneToken
|
|
202459
|
+
controlPlaneToken,
|
|
202460
|
+
createCliInitResponsesRelayTokenFn = createCliInitResponsesRelayTokenForViewer
|
|
202439
202461
|
}) => {
|
|
202440
202462
|
const token = trim8(controlPlaneToken);
|
|
202441
202463
|
if (!token) {
|
|
@@ -202443,14 +202465,18 @@ var init_codexExecution = __esm({
|
|
|
202443
202465
|
"Not logged in. Run `dvb setup` to log in to boxes.dev before using Codex during init."
|
|
202444
202466
|
);
|
|
202445
202467
|
}
|
|
202468
|
+
const relayToken = trim8(await createCliInitResponsesRelayTokenFn(token));
|
|
202469
|
+
if (!relayToken) {
|
|
202470
|
+
throw new Error("Could not prepare Codex proxy login for init.");
|
|
202471
|
+
}
|
|
202446
202472
|
return {
|
|
202447
202473
|
localProxyOptions: {
|
|
202448
202474
|
relayBaseUrl,
|
|
202449
|
-
|
|
202475
|
+
relayToken
|
|
202450
202476
|
},
|
|
202451
202477
|
remoteProxyOptions: {
|
|
202452
202478
|
relayBaseUrl: remoteRelayBaseUrl,
|
|
202453
|
-
|
|
202479
|
+
relayToken
|
|
202454
202480
|
}
|
|
202455
202481
|
};
|
|
202456
202482
|
};
|
|
@@ -202545,22 +202571,24 @@ var init_codexExecution = __esm({
|
|
|
202545
202571
|
resolve2({ code: code2, stdout, stderr, timedOut });
|
|
202546
202572
|
});
|
|
202547
202573
|
});
|
|
202548
|
-
buildProxyDecision = ({
|
|
202574
|
+
buildProxyDecision = async ({
|
|
202549
202575
|
execModel = CODEX_INIT_FALLBACK_EXEC_MODEL,
|
|
202550
202576
|
preflight,
|
|
202551
202577
|
sparkProbe,
|
|
202552
202578
|
relayBaseUrl,
|
|
202553
202579
|
remoteRelayBaseUrl,
|
|
202554
|
-
controlPlaneToken
|
|
202580
|
+
controlPlaneToken,
|
|
202581
|
+
createCliInitResponsesRelayTokenFn
|
|
202555
202582
|
}) => ({
|
|
202556
202583
|
mode: "proxy",
|
|
202557
202584
|
execModel,
|
|
202558
202585
|
preflight,
|
|
202559
202586
|
sparkProbe,
|
|
202560
|
-
...buildProxyOptions({
|
|
202587
|
+
...await buildProxyOptions({
|
|
202561
202588
|
relayBaseUrl,
|
|
202562
202589
|
remoteRelayBaseUrl,
|
|
202563
|
-
controlPlaneToken
|
|
202590
|
+
controlPlaneToken,
|
|
202591
|
+
...createCliInitResponsesRelayTokenFn ? { createCliInitResponsesRelayTokenFn } : {}
|
|
202564
202592
|
})
|
|
202565
202593
|
});
|
|
202566
202594
|
buildUserAuthDecision = ({
|
|
@@ -202574,12 +202602,13 @@ var init_codexExecution = __esm({
|
|
|
202574
202602
|
sparkProbe
|
|
202575
202603
|
});
|
|
202576
202604
|
canUseFallbackUserAuth = (preflight) => preflight.executionMode === "user_auth";
|
|
202577
|
-
selectInitCodexExecutionDecision = ({
|
|
202605
|
+
selectInitCodexExecutionDecision = async ({
|
|
202578
202606
|
preflight,
|
|
202579
202607
|
sparkProbe,
|
|
202580
202608
|
relayBaseUrl,
|
|
202581
202609
|
remoteRelayBaseUrl,
|
|
202582
|
-
controlPlaneToken
|
|
202610
|
+
controlPlaneToken,
|
|
202611
|
+
createCliInitResponsesRelayTokenFn
|
|
202583
202612
|
}) => {
|
|
202584
202613
|
if (sparkProbe?.status === "available") {
|
|
202585
202614
|
return buildUserAuthDecision({
|
|
@@ -202595,13 +202624,14 @@ var init_codexExecution = __esm({
|
|
|
202595
202624
|
sparkProbe
|
|
202596
202625
|
});
|
|
202597
202626
|
}
|
|
202598
|
-
return buildProxyDecision({
|
|
202627
|
+
return await buildProxyDecision({
|
|
202599
202628
|
execModel: CODEX_INIT_FALLBACK_EXEC_MODEL,
|
|
202600
202629
|
preflight,
|
|
202601
202630
|
sparkProbe,
|
|
202602
202631
|
relayBaseUrl,
|
|
202603
202632
|
remoteRelayBaseUrl,
|
|
202604
|
-
controlPlaneToken
|
|
202633
|
+
controlPlaneToken,
|
|
202634
|
+
...createCliInitResponsesRelayTokenFn ? { createCliInitResponsesRelayTokenFn } : {}
|
|
202605
202635
|
});
|
|
202606
202636
|
};
|
|
202607
202637
|
shouldAttemptSparkProbe = ({
|
|
@@ -202702,6 +202732,7 @@ var init_codexExecution = __esm({
|
|
|
202702
202732
|
relayBaseUrl,
|
|
202703
202733
|
remoteRelayBaseUrl,
|
|
202704
202734
|
controlPlaneToken,
|
|
202735
|
+
createCliInitResponsesRelayTokenFn = createCliInitResponsesRelayTokenForViewer,
|
|
202705
202736
|
preflightManagedCodexForInitFn = preflightManagedCodexForInit,
|
|
202706
202737
|
probeManagedCodexModelFn = probeManagedCodexModel,
|
|
202707
202738
|
onStatusStage
|
|
@@ -202720,12 +202751,13 @@ var init_codexExecution = __esm({
|
|
|
202720
202751
|
if (!shouldAttemptSparkProbe({ authStatus: preflight.authStatus })) {
|
|
202721
202752
|
return {
|
|
202722
202753
|
preflight,
|
|
202723
|
-
decision: selectInitCodexExecutionDecision({
|
|
202754
|
+
decision: await selectInitCodexExecutionDecision({
|
|
202724
202755
|
preflight,
|
|
202725
202756
|
sparkProbe: null,
|
|
202726
202757
|
relayBaseUrl,
|
|
202727
202758
|
remoteRelayBaseUrl,
|
|
202728
|
-
controlPlaneToken
|
|
202759
|
+
controlPlaneToken,
|
|
202760
|
+
createCliInitResponsesRelayTokenFn
|
|
202729
202761
|
})
|
|
202730
202762
|
};
|
|
202731
202763
|
}
|
|
@@ -202733,12 +202765,13 @@ var init_codexExecution = __esm({
|
|
|
202733
202765
|
const sparkProbe = await probeManagedCodexModelFn({ accountScope, homeDir: homeDir2 });
|
|
202734
202766
|
return {
|
|
202735
202767
|
preflight,
|
|
202736
|
-
decision: selectInitCodexExecutionDecision({
|
|
202768
|
+
decision: await selectInitCodexExecutionDecision({
|
|
202737
202769
|
preflight,
|
|
202738
202770
|
sparkProbe,
|
|
202739
202771
|
relayBaseUrl,
|
|
202740
202772
|
remoteRelayBaseUrl,
|
|
202741
|
-
controlPlaneToken
|
|
202773
|
+
controlPlaneToken,
|
|
202774
|
+
createCliInitResponsesRelayTokenFn
|
|
202742
202775
|
})
|
|
202743
202776
|
};
|
|
202744
202777
|
};
|
|
@@ -202751,19 +202784,21 @@ var init_codexExecution = __esm({
|
|
|
202751
202784
|
relayBaseUrl,
|
|
202752
202785
|
remoteRelayBaseUrl,
|
|
202753
202786
|
controlPlaneToken,
|
|
202787
|
+
createCliInitResponsesRelayTokenFn = createCliInitResponsesRelayTokenForViewer,
|
|
202754
202788
|
preflightManagedCodexForInitFn = preflightManagedCodexForInit,
|
|
202755
202789
|
probeManagedCodexModelFn = probeManagedCodexModel,
|
|
202756
202790
|
onStatusStage
|
|
202757
202791
|
}) => {
|
|
202758
202792
|
if (!usesCodex) {
|
|
202759
202793
|
return {
|
|
202760
|
-
decision: buildProxyDecision({
|
|
202794
|
+
decision: await buildProxyDecision({
|
|
202761
202795
|
execModel: CODEX_INIT_FALLBACK_EXEC_MODEL,
|
|
202762
202796
|
preflight: null,
|
|
202763
202797
|
sparkProbe: null,
|
|
202764
202798
|
relayBaseUrl,
|
|
202765
202799
|
remoteRelayBaseUrl,
|
|
202766
|
-
controlPlaneToken
|
|
202800
|
+
controlPlaneToken,
|
|
202801
|
+
createCliInitResponsesRelayTokenFn
|
|
202767
202802
|
}),
|
|
202768
202803
|
preflight: null,
|
|
202769
202804
|
shouldProbeRemoteCodexAuth: false,
|
|
@@ -202778,13 +202813,14 @@ var init_codexExecution = __esm({
|
|
|
202778
202813
|
if (needsManagedCodexRepair(preflight)) {
|
|
202779
202814
|
if (pinnedMode === "proxy") {
|
|
202780
202815
|
return {
|
|
202781
|
-
decision: buildProxyDecision({
|
|
202816
|
+
decision: await buildProxyDecision({
|
|
202782
202817
|
execModel: CODEX_INIT_FALLBACK_EXEC_MODEL,
|
|
202783
202818
|
preflight,
|
|
202784
202819
|
sparkProbe: null,
|
|
202785
202820
|
relayBaseUrl,
|
|
202786
202821
|
remoteRelayBaseUrl,
|
|
202787
|
-
controlPlaneToken
|
|
202822
|
+
controlPlaneToken,
|
|
202823
|
+
createCliInitResponsesRelayTokenFn
|
|
202788
202824
|
}),
|
|
202789
202825
|
preflight,
|
|
202790
202826
|
shouldProbeRemoteCodexAuth: false,
|
|
@@ -202805,13 +202841,14 @@ var init_codexExecution = __esm({
|
|
|
202805
202841
|
}
|
|
202806
202842
|
if (pinnedMode === "proxy") {
|
|
202807
202843
|
return {
|
|
202808
|
-
decision: buildProxyDecision({
|
|
202844
|
+
decision: await buildProxyDecision({
|
|
202809
202845
|
execModel: CODEX_INIT_FALLBACK_EXEC_MODEL,
|
|
202810
202846
|
preflight,
|
|
202811
202847
|
sparkProbe: null,
|
|
202812
202848
|
relayBaseUrl,
|
|
202813
202849
|
remoteRelayBaseUrl,
|
|
202814
|
-
controlPlaneToken
|
|
202850
|
+
controlPlaneToken,
|
|
202851
|
+
createCliInitResponsesRelayTokenFn
|
|
202815
202852
|
}),
|
|
202816
202853
|
preflight,
|
|
202817
202854
|
shouldProbeRemoteCodexAuth: false,
|
|
@@ -202837,12 +202874,13 @@ var init_codexExecution = __esm({
|
|
|
202837
202874
|
);
|
|
202838
202875
|
sparkProbe = await probeManagedCodexModelFn({ accountScope, homeDir: homeDir2 });
|
|
202839
202876
|
}
|
|
202840
|
-
const decision = selectInitCodexExecutionDecision({
|
|
202877
|
+
const decision = await selectInitCodexExecutionDecision({
|
|
202841
202878
|
preflight,
|
|
202842
202879
|
sparkProbe,
|
|
202843
202880
|
relayBaseUrl,
|
|
202844
202881
|
remoteRelayBaseUrl,
|
|
202845
|
-
controlPlaneToken
|
|
202882
|
+
controlPlaneToken,
|
|
202883
|
+
createCliInitResponsesRelayTokenFn
|
|
202846
202884
|
});
|
|
202847
202885
|
return {
|
|
202848
202886
|
decision,
|
|
@@ -202858,18 +202896,20 @@ var init_codexExecution = __esm({
|
|
|
202858
202896
|
relayBaseUrl,
|
|
202859
202897
|
remoteRelayBaseUrl,
|
|
202860
202898
|
controlPlaneToken,
|
|
202899
|
+
createCliInitResponsesRelayTokenFn = createCliInitResponsesRelayTokenForViewer,
|
|
202861
202900
|
preflightManagedCodexForInitFn = preflightManagedCodexForInit,
|
|
202862
202901
|
probeManagedCodexModelFn = probeManagedCodexModel,
|
|
202863
202902
|
onStatusStage
|
|
202864
202903
|
}) => {
|
|
202865
202904
|
if (!usesCodex) {
|
|
202866
|
-
return buildProxyDecision({
|
|
202905
|
+
return await buildProxyDecision({
|
|
202867
202906
|
execModel: CODEX_INIT_FALLBACK_EXEC_MODEL,
|
|
202868
202907
|
preflight: null,
|
|
202869
202908
|
sparkProbe: null,
|
|
202870
202909
|
relayBaseUrl,
|
|
202871
202910
|
remoteRelayBaseUrl,
|
|
202872
|
-
controlPlaneToken
|
|
202911
|
+
controlPlaneToken,
|
|
202912
|
+
createCliInitResponsesRelayTokenFn
|
|
202873
202913
|
});
|
|
202874
202914
|
}
|
|
202875
202915
|
const resolved = await resolveFreshInitCodexExecutionFromLocalAuth({
|
|
@@ -202878,6 +202918,7 @@ var init_codexExecution = __esm({
|
|
|
202878
202918
|
relayBaseUrl,
|
|
202879
202919
|
remoteRelayBaseUrl,
|
|
202880
202920
|
controlPlaneToken,
|
|
202921
|
+
createCliInitResponsesRelayTokenFn,
|
|
202881
202922
|
preflightManagedCodexForInitFn,
|
|
202882
202923
|
probeManagedCodexModelFn,
|
|
202883
202924
|
...onStatusStage ? { onStatusStage } : {}
|
|
@@ -202885,13 +202926,14 @@ var init_codexExecution = __esm({
|
|
|
202885
202926
|
if (resolved.decision) {
|
|
202886
202927
|
return resolved.decision;
|
|
202887
202928
|
}
|
|
202888
|
-
return buildProxyDecision({
|
|
202929
|
+
return await buildProxyDecision({
|
|
202889
202930
|
execModel: CODEX_INIT_FALLBACK_EXEC_MODEL,
|
|
202890
202931
|
preflight: resolved.preflight,
|
|
202891
202932
|
sparkProbe: null,
|
|
202892
202933
|
relayBaseUrl,
|
|
202893
202934
|
remoteRelayBaseUrl,
|
|
202894
|
-
controlPlaneToken
|
|
202935
|
+
controlPlaneToken,
|
|
202936
|
+
createCliInitResponsesRelayTokenFn
|
|
202895
202937
|
});
|
|
202896
202938
|
};
|
|
202897
202939
|
}
|
|
@@ -209565,4 +209607,4 @@ smol-toml/dist/index.js:
|
|
|
209565
209607
|
*/
|
|
209566
209608
|
//# sourceMappingURL=dvb.cjs.map
|
|
209567
209609
|
|
|
209568
|
-
//# debugId=
|
|
209610
|
+
//# debugId=55095012-5e75-5705-a25e-8d8608617cfd
|