@boxes-dev/dvb-runtime 1.0.1062 → 1.0.1063
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.mjs +178 -98
- package/dist/bin/dvbd.mjs +4 -4
- package/dist/product-docs/references/agent-tools.md +3 -0
- package/dist/product-docs/references/cli.md +6 -6
- package/dist/product-docs/references/desktop-workbench.md +6 -0
- package/dist/product-docs/references/mobile.md +4 -1
- package/dist/product-docs/references/project-setup.md +51 -28
- package/dist/product-docs/references/threads-and-agents.md +5 -4
- package/package.json +2 -2
package/dist/bin/dvb.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
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]="53e072fd-857f-5a39-b752-3d50837dc8a2")}catch(e){}}();
|
|
4
4
|
import { createRequire as __dvbCreateRequire } from "node:module";
|
|
5
5
|
import { dirname as __dvbDirname } from "node:path";
|
|
6
6
|
import { fileURLToPath as __dvbFileURLToPath } from "node:url";
|
|
@@ -69709,9 +69709,9 @@ var init_sentry = __esm({
|
|
|
69709
69709
|
uncaughtExceptionMonitorInstalled = false;
|
|
69710
69710
|
currentDevboxSentryUser = null;
|
|
69711
69711
|
readBuildMetadata = () => {
|
|
69712
|
-
const rawPackageVersion = "1.0.
|
|
69713
|
-
const rawGitSha = "
|
|
69714
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
69712
|
+
const rawPackageVersion = "1.0.1063";
|
|
69713
|
+
const rawGitSha = "7fce98b7b0c6b137390c46333d712985e8e3e69e";
|
|
69714
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.1063+7fce98b7b0c6b137390c46333d712985e8e3e69e";
|
|
69715
69715
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
69716
69716
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
69717
69717
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -75095,7 +75095,7 @@ var init_packageVersion = __esm({
|
|
|
75095
75095
|
return path18.join(process.cwd(), "dvb");
|
|
75096
75096
|
};
|
|
75097
75097
|
readEmbeddedPackageVersion = () => {
|
|
75098
|
-
const raw = "1.0.
|
|
75098
|
+
const raw = "1.0.1063";
|
|
75099
75099
|
return trimVersion(raw);
|
|
75100
75100
|
};
|
|
75101
75101
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -90108,7 +90108,7 @@ var init_index_node2 = __esm({
|
|
|
90108
90108
|
// src/devbox/controlPlane.ts
|
|
90109
90109
|
import http7 from "node:http";
|
|
90110
90110
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
90111
|
-
var MANAGED_DAEMON_NOT_READY_CODE, CONVEX_INFLIGHT_ACTION_DISCONNECTED_MESSAGE, CONTROL_PLANE_ACTION_RETRY_MAX_ATTEMPTS, CONTROL_PLANE_ACTION_RETRY_BASE_DELAY_MS, MANAGED_DAEMON_RECOVERY_WAKING_TIMEOUT_MS, CONTROL_PLANE_CHECKPOINT_RECOVERY_MAX_ATTEMPTS, CONTROL_PLANE_CHECKPOINT_RECOVERY_POLL_MS, ManagedDaemonNotReadyError, isManagedDaemonNotReadyError, isManagedDaemonSleepingError, sleep2, isRetryableTransientConvexActionError, buildTransientConvexActionRetryMessage, announceTransientConvexActionRetry, retryTransientConvexAction, normalizeStringRecord, E2B_DEVBOX_ALIAS_EXISTS_CODE, isRecord3, maybeMapE2bProvisionControlPlaneError, mapE2bProvisionControlPlaneError, LOGIN_CODE_REJECTIONS, resolveControlPlaneUrl, resolveConvexUrl, escapeHtml2, CALLBACK_LOGO_MARK, CALLBACK_FULL_LOGO, renderCallbackPage, CONTROL_PLANE_REQUEST_UNAVAILABLE_CODE, ControlPlaneRequestUnavailableError, isControlPlaneRequestUnavailableError, requestJson, ControlPlaneRequestError, isControlPlaneAuthRejectionError, isControlPlaneSessionRefreshRejectionError, startCallbackServer, getControlPlaneUrl, getConvexUrl, createDefaultBrowserSignInDeps, signInWithBrowser, claudeTokenGet, claudeTokenSet, claudeTokenClear, agentAuthCredentialsList, fetchAgentCredentialRows, codexAuthCacheGet, codexAuthCacheSet, codexAuthCacheClear, claudeTokenReportRuntimeAuthFailureForViewer, claudeTokenReportRuntimeValidatedForViewer, e2bTokenResolvedGet, userSettingsGet, userSettingsSet, projectInstanceTypeOptionsGet, e2bDevboxRemove, e2bDevboxGet, e2bDevboxStatusesList, e2bDevboxDestroy, e2bDevboxProvision, e2bDevboxPause, e2bDevboxEnsureActive, e2bDevboxKeepAlive, e2bDevboxReset, e2bDevboxIssueBootstrapConnectInfo, e2bDevboxBootstrapDaemon, managedDevboxIssueDaemonConnectInfo, managedDaemonRecoverForInstance, managedDaemonControlGrantIssueForViewer, managedDevboxCreateCheckpoint, managedDevboxListRemoteStates, clientThreadsListForPrimaryInstance, threadTitleGenerationStatesListForPrimaryInstance, spriteDaemonSessionsList, clientThreadsUpsertRemoteInitCodexThread, clientThreadsDiscardRemoteInitCodexThread, projectInitJobsGetActiveForProject, agentInitProgressReportCliStep, instancesList, helloViewerGet, billingSummaryGet, convexBrowserModulePromise, loadConvexBrowserModule, buildConvexClientOptions, configureAuthenticatedConvexClient, createAuthenticatedConvexClient, withConvexClient, resolveInstanceIdForAlias, resolveManagedDaemonControlTargetWithClient, issueManagedDaemonControlGrantWithClient, resolveSpriteInstanceId, fetchClaudeTokenStatus, fetchResolvedE2bCredentials, fetchViewerIdentity, BILLING_ACTIVATION_STATES, readBillingActivationBoolean, parseBillingActivationDecision, parseBillingActivationSummary, fetchTeamBillingActivationForViewer, fetchActiveDesktopInitJobForProject, reportAgentInitStep, fetchViewerCodingAgentPreference, fetchProjectInstanceTypeOptionsForViewer, storeViewerCodingAgentPreference, storeClaudeCodeOauthToken, clearClaudeCodeOauthToken, reportClaudeRuntimeAuthFailureForViewer, reportClaudeRuntimeValidatedForViewer, fetchCodexAuthCacheStatus, storeCodexAuthCache, clearCodexAuthCache, normalizeE2bDevboxRecord, fetchE2bDevboxLifecycle, listE2bDevboxStatuses, destroyE2bDevbox, provisionE2bDevbox, pauseE2bDevbox, ensureE2bDevboxActive, keepAliveE2bDevbox, resetE2bDevbox, bootstrapE2bDaemon, throwManagedDaemonNotReady, normalizeOptionalString2, normalizeAliasForLookup, validateManagedDaemonRecoveryResponse, normalizeManagedCheckpointResponse, buildRecoveredManagedCheckpointResponse, readManagedCheckpointRecoveryState, recoverManagedCheckpointAfterDisconnect, buildManagedDaemonConnectInfoResponseSummary, buildManagedDaemonConnectInfoUnexpectedMessage, buildManagedDaemonConnectInfoSleepingMessage, buildManagedDaemonConnectInfoWakingMessage, readWakingRetryAfterMs, logManagedDaemonConnectInfoResponse, fetchManagedDaemonConnectInfoWithAction, requestManagedDaemonConnectInfo, fetchManagedDaemonConnectInfo, recoverManagedDaemonForInit, recoverManagedDaemonControlTargetWithClient, fetchE2bBootstrapConnectInfo, createManagedCheckpoint, listManagedRemoteStates, listViewerInstances, listSpriteDaemonSessions, upsertRemoteInitCodexThread, discardRemoteInitCodexThread, signOutControlPlane, refreshControlPlaneSession, readLoginCodeRejection, exchangeLoginCode, createCliInitResponsesRelayTokenForViewer;
|
|
90111
|
+
var MANAGED_DAEMON_NOT_READY_CODE, CONVEX_INFLIGHT_ACTION_DISCONNECTED_MESSAGE, CONTROL_PLANE_ACTION_RETRY_MAX_ATTEMPTS, CONTROL_PLANE_ACTION_RETRY_BASE_DELAY_MS, MANAGED_DAEMON_RECOVERY_WAKING_TIMEOUT_MS, CONTROL_PLANE_CHECKPOINT_RECOVERY_MAX_ATTEMPTS, CONTROL_PLANE_CHECKPOINT_RECOVERY_POLL_MS, ManagedDaemonNotReadyError, isManagedDaemonNotReadyError, isManagedDaemonSleepingError, sleep2, isRetryableTransientConvexActionError, buildTransientConvexActionRetryMessage, announceTransientConvexActionRetry, retryTransientConvexAction, normalizeStringRecord, E2B_DEVBOX_ALIAS_EXISTS_CODE, isRecord3, maybeMapE2bProvisionControlPlaneError, mapE2bProvisionControlPlaneError, LOGIN_CODE_REJECTIONS, resolveControlPlaneUrl, resolveConvexUrl, escapeHtml2, CALLBACK_LOGO_MARK, CALLBACK_FULL_LOGO, renderCallbackPage, CONTROL_PLANE_REQUEST_UNAVAILABLE_CODE, ControlPlaneRequestUnavailableError, isControlPlaneRequestUnavailableError, requestJson, ControlPlaneRequestError, isControlPlaneAuthRejectionError, isControlPlaneSessionRefreshRejectionError, startCallbackServer, getControlPlaneUrl, getConvexUrl, createDefaultBrowserSignInDeps, signInWithBrowser, claudeTokenGet, claudeTokenSet, claudeTokenClear, agentAuthCredentialsList, fetchAgentCredentialRows, codexAuthCacheGet, codexAuthCacheSet, codexAuthCacheClear, claudeTokenReportRuntimeAuthFailureForViewer, claudeTokenReportRuntimeValidatedForViewer, e2bTokenResolvedGet, userSettingsGet, userSettingsSet, projectInstanceTypeOptionsGet, e2bDevboxRemove, e2bDevboxGet, e2bDevboxStatusesList, e2bDevboxDestroy, e2bDevboxProvision, e2bDevboxPause, e2bDevboxEnsureActive, e2bDevboxKeepAlive, e2bDevboxReset, e2bDevboxIssueBootstrapConnectInfo, e2bDevboxBootstrapDaemon, managedDevboxIssueDaemonConnectInfo, managedDaemonRecoverForInstance, managedDaemonControlGrantIssueForViewer, managedDevboxCreateCheckpoint, managedDevboxListRemoteStates, clientThreadsListForPrimaryInstance, threadTitleGenerationStatesListForPrimaryInstance, spriteDaemonSessionsList, clientThreadsUpsertRemoteInitCodexThread, clientThreadsDiscardRemoteInitCodexThread, projectInitJobsGetActiveForProject, agentInitProgressReportCliStep, instancesList, helloViewerGet, billingSummaryGet, convexBrowserModulePromise, loadConvexBrowserModule, buildConvexClientOptions, configureAuthenticatedConvexClient, createAuthenticatedConvexClient, withConvexClient, resolveInstanceIdForAlias, resolveManagedDaemonControlTargetWithClient, issueManagedDaemonControlGrantWithClient, resolveSpriteInstanceId, fetchClaudeTokenStatus, fetchResolvedE2bCredentials, fetchViewerIdentity, BILLING_ACTIVATION_STATES, readBillingActivationBoolean, parseBillingActivationDecision, parseBillingActivationSummary, fetchTeamBillingActivationForViewer, fetchActiveDesktopInitJobForProject, AGENT_INIT_STEP_REPORT_TIMEOUT_MS, reportAgentInitStep, fetchViewerCodingAgentPreference, fetchProjectInstanceTypeOptionsForViewer, storeViewerCodingAgentPreference, storeClaudeCodeOauthToken, clearClaudeCodeOauthToken, reportClaudeRuntimeAuthFailureForViewer, reportClaudeRuntimeValidatedForViewer, fetchCodexAuthCacheStatus, storeCodexAuthCache, clearCodexAuthCache, normalizeE2bDevboxRecord, fetchE2bDevboxLifecycle, listE2bDevboxStatuses, destroyE2bDevbox, provisionE2bDevbox, pauseE2bDevbox, ensureE2bDevboxActive, keepAliveE2bDevbox, resetE2bDevbox, bootstrapE2bDaemon, throwManagedDaemonNotReady, normalizeOptionalString2, normalizeAliasForLookup, validateManagedDaemonRecoveryResponse, normalizeManagedCheckpointResponse, buildRecoveredManagedCheckpointResponse, readManagedCheckpointRecoveryState, recoverManagedCheckpointAfterDisconnect, buildManagedDaemonConnectInfoResponseSummary, buildManagedDaemonConnectInfoUnexpectedMessage, buildManagedDaemonConnectInfoSleepingMessage, buildManagedDaemonConnectInfoWakingMessage, readWakingRetryAfterMs, logManagedDaemonConnectInfoResponse, fetchManagedDaemonConnectInfoWithAction, requestManagedDaemonConnectInfo, fetchManagedDaemonConnectInfo, recoverManagedDaemonForInit, recoverManagedDaemonControlTargetWithClient, fetchE2bBootstrapConnectInfo, createManagedCheckpoint, listManagedRemoteStates, listViewerInstances, listSpriteDaemonSessions, upsertRemoteInitCodexThread, discardRemoteInitCodexThread, signOutControlPlane, refreshControlPlaneSession, readLoginCodeRejection, exchangeLoginCode, createCliInitResponsesRelayTokenForViewer;
|
|
90112
90112
|
var init_controlPlane = __esm({
|
|
90113
90113
|
"src/devbox/controlPlane.ts"() {
|
|
90114
90114
|
"use strict";
|
|
@@ -90931,9 +90931,26 @@ var init_controlPlane = __esm({
|
|
|
90931
90931
|
});
|
|
90932
90932
|
});
|
|
90933
90933
|
};
|
|
90934
|
+
AGENT_INIT_STEP_REPORT_TIMEOUT_MS = 5e3;
|
|
90934
90935
|
reportAgentInitStep = async (token, request2) => {
|
|
90935
90936
|
await withConvexClient(token, async (client) => {
|
|
90936
|
-
|
|
90937
|
+
let timer;
|
|
90938
|
+
try {
|
|
90939
|
+
await Promise.race([
|
|
90940
|
+
client.mutation(agentInitProgressReportCliStep, request2),
|
|
90941
|
+
new Promise((_2, reject) => {
|
|
90942
|
+
timer = setTimeout(() => {
|
|
90943
|
+
reject(
|
|
90944
|
+
new Error(
|
|
90945
|
+
`Progress report timed out after ${String(AGENT_INIT_STEP_REPORT_TIMEOUT_MS)} ms`
|
|
90946
|
+
)
|
|
90947
|
+
);
|
|
90948
|
+
}, AGENT_INIT_STEP_REPORT_TIMEOUT_MS);
|
|
90949
|
+
})
|
|
90950
|
+
]);
|
|
90951
|
+
} finally {
|
|
90952
|
+
clearTimeout(timer);
|
|
90953
|
+
}
|
|
90937
90954
|
});
|
|
90938
90955
|
};
|
|
90939
90956
|
fetchViewerCodingAgentPreference = async (token) => {
|
|
@@ -95612,7 +95629,7 @@ var init_src = __esm({
|
|
|
95612
95629
|
});
|
|
95613
95630
|
|
|
95614
95631
|
// src/devbox/auth.ts
|
|
95615
|
-
var CONTROL_PLANE_INTERACTIVE_SIGNIN_STAGE, CONTROL_PLANE_AUTH_REFRESH_ERROR_CODE, ControlPlaneAuthRefreshError, isControlPlaneAuthRefreshError, TOKEN_REFRESH_BUFFER_MS2, CONTROL_PLANE_AUTH_REFRESH_RETRY_DELAYS_MS, defaultControlPlaneAuthApi, waitForControlPlaneAuthRefreshRetry, createRetryingControlPlaneTokenProvider, decodeJwtPayload4, parseTokenExpiresAt2, isTokenExpired, shouldRefreshToken2, clearControlPlaneAccessToken2, clearControlPlaneSession, updateControlPlaneSession, refreshControlPlaneToken, refreshLongLivedControlPlaneToken, createLongLivedControlPlaneTokenProvider, validateControlPlaneToken, resolveStoredControlPlaneToken, ensureControlPlaneToken, ensureExistingControlPlaneToken;
|
|
95632
|
+
var CONTROL_PLANE_INTERACTIVE_SIGNIN_STAGE, CONTROL_PLANE_AUTH_REFRESH_ERROR_CODE, ControlPlaneAuthRefreshError, isControlPlaneAuthRefreshError, TOKEN_REFRESH_BUFFER_MS2, CONTROL_PLANE_AUTH_REFRESH_RETRY_DELAYS_MS, defaultControlPlaneAuthApi, waitForControlPlaneAuthRefreshRetry, createRetryingControlPlaneTokenProvider, decodeJwtPayload4, parseTokenExpiresAt2, isTokenExpired, shouldRefreshToken2, clearControlPlaneAccessToken2, clearControlPlaneSession, updateControlPlaneSession, refreshControlPlaneToken, refreshLongLivedControlPlaneToken, createLongLivedControlPlaneTokenProvider, validateControlPlaneToken, resolveStoredControlPlaneToken, ensureControlPlaneToken, readUnexpiredControlPlaneToken, ensureExistingControlPlaneToken;
|
|
95616
95633
|
var init_auth = __esm({
|
|
95617
95634
|
"src/devbox/auth.ts"() {
|
|
95618
95635
|
"use strict";
|
|
@@ -95914,6 +95931,10 @@ var init_auth = __esm({
|
|
|
95914
95931
|
logger2.info("control_plane_signed_in");
|
|
95915
95932
|
return tokens.token;
|
|
95916
95933
|
};
|
|
95934
|
+
readUnexpiredControlPlaneToken = async (store) => {
|
|
95935
|
+
const token = await store.getControlPlaneToken();
|
|
95936
|
+
return token && !isTokenExpired(token) ? token : null;
|
|
95937
|
+
};
|
|
95917
95938
|
ensureExistingControlPlaneToken = async (store, stage, authApi = defaultControlPlaneAuthApi) => {
|
|
95918
95939
|
const controlPlaneUrl = getControlPlaneUrl();
|
|
95919
95940
|
const convexUrl = getConvexUrl();
|
|
@@ -101875,7 +101896,7 @@ var init_detachControl = __esm({
|
|
|
101875
101896
|
});
|
|
101876
101897
|
|
|
101877
101898
|
// src/devbox/terminal/kittyCtrlCReleaseSuppressor.ts
|
|
101878
|
-
var ESC, CSI, OPEN_BRACKET, LOWER_U,
|
|
101899
|
+
var ESC, CSI, OPEN_BRACKET, LOWER_U, KITTY_MODE_CHANGE_PATTERN, MAX_MODE_CHANGE_SEQUENCE_LENGTH, MAX_INPUT_SEQUENCE_BYTES, parseKittyCtrlCReleaseSequenceLength, createKittyCtrlCReleaseSuppressor;
|
|
101879
101900
|
var init_kittyCtrlCReleaseSuppressor = __esm({
|
|
101880
101901
|
"src/devbox/terminal/kittyCtrlCReleaseSuppressor.ts"() {
|
|
101881
101902
|
"use strict";
|
|
@@ -101883,15 +101904,10 @@ var init_kittyCtrlCReleaseSuppressor = __esm({
|
|
|
101883
101904
|
CSI = 155;
|
|
101884
101905
|
OPEN_BRACKET = 91;
|
|
101885
101906
|
LOWER_U = 117;
|
|
101886
|
-
|
|
101887
|
-
|
|
101888
|
-
"\x1B[
|
|
101889
|
-
"
|
|
101890
|
-
"\x9B<u"
|
|
101891
|
-
];
|
|
101892
|
-
MAX_DISABLE_SEQUENCE_LENGTH = KITTY_DISABLE_SEQUENCES.reduce(
|
|
101893
|
-
(max, sequence) => Math.max(max, Buffer.byteLength(sequence, "latin1")),
|
|
101894
|
-
0
|
|
101907
|
+
KITTY_MODE_CHANGE_PATTERN = /(?:\u001b\[|\x9b)([<>])\d{0,3}u/g;
|
|
101908
|
+
MAX_MODE_CHANGE_SEQUENCE_LENGTH = Buffer.byteLength(
|
|
101909
|
+
"\x1B[>255u",
|
|
101910
|
+
"latin1"
|
|
101895
101911
|
);
|
|
101896
101912
|
MAX_INPUT_SEQUENCE_BYTES = 64;
|
|
101897
101913
|
parseKittyCtrlCReleaseSequenceLength = (input) => {
|
|
@@ -101955,20 +101971,33 @@ var init_kittyCtrlCReleaseSuppressor = __esm({
|
|
|
101955
101971
|
if (chunk2.length === 0) {
|
|
101956
101972
|
return;
|
|
101957
101973
|
}
|
|
101974
|
+
const seenLength = pendingOutput.length;
|
|
101958
101975
|
const combined = pendingOutput.length > 0 ? Buffer.concat([pendingOutput, chunk2]) : Buffer.from(chunk2);
|
|
101959
|
-
|
|
101960
|
-
|
|
101976
|
+
let lastChange = null;
|
|
101977
|
+
for (const match of combined.toString("latin1").matchAll(KITTY_MODE_CHANGE_PATTERN)) {
|
|
101978
|
+
if (match.index + match[0].length > seenLength) {
|
|
101979
|
+
lastChange = match[1] ?? null;
|
|
101980
|
+
}
|
|
101981
|
+
}
|
|
101982
|
+
if (lastChange === "<") {
|
|
101961
101983
|
armed = true;
|
|
101962
101984
|
pendingInput = Buffer.alloc(0);
|
|
101985
|
+
} else if (lastChange === ">") {
|
|
101986
|
+
armed = false;
|
|
101963
101987
|
}
|
|
101964
101988
|
const keepBytes = Math.min(
|
|
101965
101989
|
combined.length,
|
|
101966
|
-
|
|
101990
|
+
MAX_MODE_CHANGE_SEQUENCE_LENGTH - 1
|
|
101967
101991
|
);
|
|
101968
101992
|
pendingOutput = keepBytes > 0 ? Buffer.from(combined.subarray(-keepBytes)) : Buffer.alloc(0);
|
|
101969
101993
|
},
|
|
101970
101994
|
filterInput(chunk2) {
|
|
101971
|
-
if (!armed
|
|
101995
|
+
if (!armed) {
|
|
101996
|
+
const output = pendingInput.length > 0 ? Buffer.concat([pendingInput, chunk2]) : Buffer.from(chunk2);
|
|
101997
|
+
pendingInput = Buffer.alloc(0);
|
|
101998
|
+
return { output, suppressed: false };
|
|
101999
|
+
}
|
|
102000
|
+
if (chunk2.length === 0) {
|
|
101972
102001
|
return { output: Buffer.from(chunk2), suppressed: false };
|
|
101973
102002
|
}
|
|
101974
102003
|
const combined = pendingInput.length > 0 ? Buffer.concat([pendingInput, chunk2]) : Buffer.from(chunk2);
|
|
@@ -140886,7 +140915,7 @@ var init_threadInventoryBuilder = __esm({
|
|
|
140886
140915
|
const activePlacementId = state.activePlacementIdByClientThreadId.get(
|
|
140887
140916
|
placement.clientThreadId
|
|
140888
140917
|
);
|
|
140889
|
-
const anchorRow = activePlacementId ===
|
|
140918
|
+
const anchorRow = activePlacementId === placement.placementId ? state.rowsByClientThreadId.get(placement.clientThreadId) : void 0;
|
|
140890
140919
|
if (anchorRow && !rows.some((row) => row.key === anchorRow.key)) {
|
|
140891
140920
|
rows.push(anchorRow);
|
|
140892
140921
|
}
|
|
@@ -141178,9 +141207,12 @@ var init_threadInventoryBuilder = __esm({
|
|
|
141178
141207
|
rowsByClientThreadId: /* @__PURE__ */ new Map(),
|
|
141179
141208
|
runtimeKeyToRow: /* @__PURE__ */ new Map(),
|
|
141180
141209
|
activePlacementIdByClientThreadId: new Map(
|
|
141181
|
-
|
|
141182
|
-
|
|
141183
|
-
)
|
|
141210
|
+
// A cleared link is authoritative, including while an older list page
|
|
141211
|
+
// still contains the placement removed by startup cancellation.
|
|
141212
|
+
clientThreads.map((thread) => [
|
|
141213
|
+
thread.clientThreadId,
|
|
141214
|
+
thread.threadPlacementId
|
|
141215
|
+
])
|
|
141184
141216
|
)
|
|
141185
141217
|
};
|
|
141186
141218
|
for (const thread of clientThreads) {
|
|
@@ -165287,7 +165319,7 @@ result || '';
|
|
|
165287
165319
|
// src/devbox/agentView/claudeNativeImageInput.ts
|
|
165288
165320
|
import { randomUUID as randomUUID19 } from "node:crypto";
|
|
165289
165321
|
import { isAbsolute as isAbsolute3, win32 as win322 } from "node:path";
|
|
165290
|
-
var CLAUDE_PASTE_CLASSIFICATION_MAX_BYTES, BRACKETED_PASTE_START, BRACKETED_PASTE_END, OUTSIDE_SEQUENCES, startsWith, isPrefixOf, appendBytesEvent, nextOutsideSequenceOffset, longestPasteEndPrefix, ClaudeNativeRawInputRecognizer, stripPathEscapes, isPlatformAbsolutePath, findPastePathTokens, encodeClaudeRemotePath, createClaudeNativeImageInput, mapClaudeNativeImageInputError;
|
|
165322
|
+
var CLAUDE_PASTE_CLASSIFICATION_MAX_BYTES, BRACKETED_PASTE_START, BRACKETED_PASTE_END, ESCAPE, OUTSIDE_SEQUENCES, startsWith, isPrefixOf, appendBytesEvent, nextOutsideSequenceOffset, longestPasteEndPrefix, ClaudeNativeRawInputRecognizer, stripPathEscapes, isPlatformAbsolutePath, findPastePathTokens, encodeClaudeRemotePath, createClaudeNativeImageInput, mapClaudeNativeImageInputError;
|
|
165291
165323
|
var init_claudeNativeImageInput = __esm({
|
|
165292
165324
|
"src/devbox/agentView/claudeNativeImageInput.ts"() {
|
|
165293
165325
|
"use strict";
|
|
@@ -165298,6 +165330,7 @@ var init_claudeNativeImageInput = __esm({
|
|
|
165298
165330
|
CLAUDE_PASTE_CLASSIFICATION_MAX_BYTES = 256 * 1024;
|
|
165299
165331
|
BRACKETED_PASTE_START = Buffer.from("\x1B[200~", "utf8");
|
|
165300
165332
|
BRACKETED_PASTE_END = Buffer.from("\x1B[201~", "utf8");
|
|
165333
|
+
ESCAPE = Buffer.from([27]);
|
|
165301
165334
|
OUTSIDE_SEQUENCES = [
|
|
165302
165335
|
{ bytes: BRACKETED_PASTE_START, kind: "paste_start", key: null },
|
|
165303
165336
|
{ bytes: Buffer.from([22]), kind: "image_key", key: "ctrl_v" },
|
|
@@ -165448,7 +165481,7 @@ var init_claudeNativeImageInput = __esm({
|
|
|
165448
165481
|
});
|
|
165449
165482
|
continue;
|
|
165450
165483
|
}
|
|
165451
|
-
if (OUTSIDE_SEQUENCES.some(
|
|
165484
|
+
if (!this.pending.equals(ESCAPE) && OUTSIDE_SEQUENCES.some(
|
|
165452
165485
|
(sequence) => isPrefixOf(this.pending, sequence.bytes)
|
|
165453
165486
|
)) {
|
|
165454
165487
|
break;
|
|
@@ -165712,7 +165745,7 @@ var init_claudeNativeImageInput = __esm({
|
|
|
165712
165745
|
});
|
|
165713
165746
|
|
|
165714
165747
|
// ../../../../shared/threadRuntime/dist-inventory/threadRuntime/managedClaudeThreadCommands.js
|
|
165715
|
-
var MANAGED_CLAUDE_THREAD_COMMAND_MESSAGES, MANAGED_CLAUDE_COMMAND_MENU_MESSAGE, normalizeClaudePromptLine, resolveBlockedManagedClaudeThreadCommand, resolveAmbiguousManagedClaudeThreadCommand, CTRL_A, CTRL_C, CTRL_E, BACKSPACE, CTRL_K, ENTER_LF, ENTER_CR, CTRL_U, CTRL_W, CTRL_Z,
|
|
165748
|
+
var MANAGED_CLAUDE_THREAD_COMMAND_MESSAGES, MANAGED_CLAUDE_COMMAND_MENU_MESSAGE, normalizeClaudePromptLine, resolveBlockedManagedClaudeThreadCommand, resolveAmbiguousManagedClaudeThreadCommand, CTRL_A, CTRL_C, CTRL_E, BACKSPACE, CTRL_K, ENTER_LF, ENTER_CR, CTRL_U, CTRL_W, CTRL_Z, ESCAPE2, DELETE, isCsiFinalByte, ManagedClaudeThreadCommandInputGuard;
|
|
165716
165749
|
var init_managedClaudeThreadCommands = __esm({
|
|
165717
165750
|
"../../../../shared/threadRuntime/dist-inventory/threadRuntime/managedClaudeThreadCommands.js"() {
|
|
165718
165751
|
"use strict";
|
|
@@ -165756,7 +165789,7 @@ var init_managedClaudeThreadCommands = __esm({
|
|
|
165756
165789
|
CTRL_U = 21;
|
|
165757
165790
|
CTRL_W = 23;
|
|
165758
165791
|
CTRL_Z = 26;
|
|
165759
|
-
|
|
165792
|
+
ESCAPE2 = 27;
|
|
165760
165793
|
DELETE = 127;
|
|
165761
165794
|
isCsiFinalByte = (value) => value >= 64 && value <= 126;
|
|
165762
165795
|
ManagedClaudeThreadCommandInputGuard = class {
|
|
@@ -165814,7 +165847,7 @@ var init_managedClaudeThreadCommands = __esm({
|
|
|
165814
165847
|
continue;
|
|
165815
165848
|
}
|
|
165816
165849
|
}
|
|
165817
|
-
if (byte ===
|
|
165850
|
+
if (byte === ESCAPE2) {
|
|
165818
165851
|
this.escapeSequence = [byte];
|
|
165819
165852
|
continue;
|
|
165820
165853
|
}
|
|
@@ -166184,7 +166217,7 @@ function getSgrPrefix(code2) {
|
|
|
166184
166217
|
if (code2.startsWith("\x9B")) {
|
|
166185
166218
|
return "\x9B";
|
|
166186
166219
|
}
|
|
166187
|
-
return `${
|
|
166220
|
+
return `${ESCAPE3}${ANSI_CSI}`;
|
|
166188
166221
|
}
|
|
166189
166222
|
function createSgrCode(prefix, values) {
|
|
166190
166223
|
return `${prefix}${values.join(";")}${ANSI_SGR_TERMINATOR}`;
|
|
@@ -166193,7 +166226,7 @@ function getSgrFragments(code2) {
|
|
|
166193
166226
|
const fragments = [];
|
|
166194
166227
|
const sgrPrefix = getSgrPrefix(code2);
|
|
166195
166228
|
let parameterString;
|
|
166196
|
-
if (code2.startsWith(`${
|
|
166229
|
+
if (code2.startsWith(`${ESCAPE3}${ANSI_CSI}`)) {
|
|
166197
166230
|
parameterString = code2.slice(2, -1);
|
|
166198
166231
|
} else if (code2.startsWith("\x9B")) {
|
|
166199
166232
|
parameterString = code2.slice(1, -1);
|
|
@@ -166354,7 +166387,7 @@ function parseHyperlinkCode(string7, index) {
|
|
|
166354
166387
|
endIndex: sequenceIndex + 1
|
|
166355
166388
|
};
|
|
166356
166389
|
}
|
|
166357
|
-
if (character ===
|
|
166390
|
+
if (character === ESCAPE3 && string7[sequenceIndex + 1] === ANSI_OSC_TERMINATOR) {
|
|
166358
166391
|
const code2 = string7.slice(index, sequenceIndex + 2);
|
|
166359
166392
|
const action = sequenceIndex === uriStart + 1 ? "close" : "open";
|
|
166360
166393
|
return {
|
|
@@ -166437,7 +166470,7 @@ function parseControlStringCode(string7, index) {
|
|
|
166437
166470
|
if (supportsBellTerminator && string7[sequenceIndex] === ANSI_BELL) {
|
|
166438
166471
|
return createControlParseResult(string7.slice(index, sequenceIndex + 1), sequenceIndex + 1);
|
|
166439
166472
|
}
|
|
166440
|
-
if (string7[sequenceIndex] ===
|
|
166473
|
+
if (string7[sequenceIndex] === ESCAPE3 && string7[sequenceIndex + 1] === ANSI_OSC_TERMINATOR) {
|
|
166441
166474
|
return createControlParseResult(string7.slice(index, sequenceIndex + 2), sequenceIndex + 2);
|
|
166442
166475
|
}
|
|
166443
166476
|
if (string7[sequenceIndex] === C1_STRING_TERMINATOR) {
|
|
@@ -166663,7 +166696,7 @@ function tokenizeAnsi(string7, { endCharacter = Number.POSITIVE_INFINITY } = {})
|
|
|
166663
166696
|
}
|
|
166664
166697
|
return tokens;
|
|
166665
166698
|
}
|
|
166666
|
-
var ESCAPE_CODE_POINT, C1_DCS_CODE_POINT, C1_SOS_CODE_POINT, C1_CSI_CODE_POINT, C1_ST_CODE_POINT, C1_OSC_CODE_POINT, C1_PM_CODE_POINT, C1_APC_CODE_POINT, ESCAPES,
|
|
166699
|
+
var ESCAPE_CODE_POINT, C1_DCS_CODE_POINT, C1_SOS_CODE_POINT, C1_CSI_CODE_POINT, C1_ST_CODE_POINT, C1_OSC_CODE_POINT, C1_PM_CODE_POINT, C1_APC_CODE_POINT, ESCAPES, ESCAPE3, ANSI_BELL, ANSI_CSI, ANSI_OSC, ANSI_DCS, ANSI_SOS, ANSI_PM, ANSI_APC, ANSI_SGR_TERMINATOR, ANSI_OSC_TERMINATOR, ANSI_STRING_TERMINATOR, C1_OSC, C1_STRING_TERMINATOR, ANSI_HYPERLINK_ESC_PREFIX, ANSI_HYPERLINK_C1_PREFIX, ANSI_HYPERLINK_ESC_CLOSE, ANSI_HYPERLINK_C1_CLOSE, CODE_POINT_0, CODE_POINT_9, CODE_POINT_SEMICOLON, CODE_POINT_COLON, CODE_POINT_CSI_PARAMETER_START, CODE_POINT_CSI_PARAMETER_END, CODE_POINT_CSI_INTERMEDIATE_START, CODE_POINT_CSI_INTERMEDIATE_END, CODE_POINT_CSI_FINAL_START, CODE_POINT_CSI_FINAL_END, REGIONAL_INDICATOR_SYMBOL_LETTER_A, REGIONAL_INDICATOR_SYMBOL_LETTER_Z, SGR_RESET_CODE, SGR_EXTENDED_FOREGROUND_CODE, SGR_DEFAULT_FOREGROUND_CODE, SGR_EXTENDED_BACKGROUND_CODE, SGR_DEFAULT_BACKGROUND_CODE, SGR_COLOR_TYPE_ANSI_256, SGR_COLOR_TYPE_TRUECOLOR, SGR_ANSI_256_FRAGMENT_LENGTH, SGR_TRUECOLOR_FRAGMENT_LENGTH, SGR_ANSI_256_LAST_PARAMETER_OFFSET, SGR_TRUECOLOR_LAST_PARAMETER_OFFSET, VARIATION_SELECTOR_16_CODE_POINT, COMBINING_ENCLOSING_KEYCAP_CODE_POINT, EMOJI_PRESENTATION_GRAPHEME_REGEX, GRAPHEME_SEGMENTER, endCodeNumbers;
|
|
166667
166700
|
var init_tokenize_ansi = __esm({
|
|
166668
166701
|
"../../node_modules/slice-ansi/tokenize-ansi.js"() {
|
|
166669
166702
|
init_ansi_styles2();
|
|
@@ -166686,7 +166719,7 @@ var init_tokenize_ansi = __esm({
|
|
|
166686
166719
|
C1_PM_CODE_POINT,
|
|
166687
166720
|
C1_APC_CODE_POINT
|
|
166688
166721
|
]);
|
|
166689
|
-
|
|
166722
|
+
ESCAPE3 = "\x1B";
|
|
166690
166723
|
ANSI_BELL = "\x07";
|
|
166691
166724
|
ANSI_CSI = "[";
|
|
166692
166725
|
ANSI_OSC = "]";
|
|
@@ -166696,10 +166729,10 @@ var init_tokenize_ansi = __esm({
|
|
|
166696
166729
|
ANSI_APC = "_";
|
|
166697
166730
|
ANSI_SGR_TERMINATOR = "m";
|
|
166698
166731
|
ANSI_OSC_TERMINATOR = "\\";
|
|
166699
|
-
ANSI_STRING_TERMINATOR = `${
|
|
166732
|
+
ANSI_STRING_TERMINATOR = `${ESCAPE3}${ANSI_OSC_TERMINATOR}`;
|
|
166700
166733
|
C1_OSC = "\x9D";
|
|
166701
166734
|
C1_STRING_TERMINATOR = "\x9C";
|
|
166702
|
-
ANSI_HYPERLINK_ESC_PREFIX = `${
|
|
166735
|
+
ANSI_HYPERLINK_ESC_PREFIX = `${ESCAPE3}${ANSI_OSC}8;`;
|
|
166703
166736
|
ANSI_HYPERLINK_C1_PREFIX = `${C1_OSC}8;`;
|
|
166704
166737
|
ANSI_HYPERLINK_ESC_CLOSE = `${ANSI_HYPERLINK_ESC_PREFIX};`;
|
|
166705
166738
|
ANSI_HYPERLINK_C1_CLOSE = `${ANSI_HYPERLINK_C1_PREFIX};`;
|
|
@@ -233605,64 +233638,6 @@ cat ${shellEscape3(filePath)}`
|
|
|
233605
233638
|
}
|
|
233606
233639
|
});
|
|
233607
233640
|
|
|
233608
|
-
// src/devbox/agentInit/progressReport.ts
|
|
233609
|
-
var resolvedProject, recordAgentInitProgressProject, readFolderProjectId, resolveAgentInitReportProject, reportAgentInitStepBestEffort;
|
|
233610
|
-
var init_progressReport = __esm({
|
|
233611
|
-
"src/devbox/agentInit/progressReport.ts"() {
|
|
233612
|
-
"use strict";
|
|
233613
|
-
init_devboxCore();
|
|
233614
|
-
init_controlPlane();
|
|
233615
|
-
init_logger3();
|
|
233616
|
-
resolvedProject = null;
|
|
233617
|
-
recordAgentInitProgressProject = (project) => {
|
|
233618
|
-
resolvedProject = project;
|
|
233619
|
-
};
|
|
233620
|
-
readFolderProjectId = async (folder) => {
|
|
233621
|
-
const marker = await readProjectRootMarker(folder);
|
|
233622
|
-
if (marker) {
|
|
233623
|
-
return marker.projectId;
|
|
233624
|
-
}
|
|
233625
|
-
return await readGitRootProjectId(folder);
|
|
233626
|
-
};
|
|
233627
|
-
resolveAgentInitReportProject = async (folder) => {
|
|
233628
|
-
if (resolvedProject) {
|
|
233629
|
-
return resolvedProject;
|
|
233630
|
-
}
|
|
233631
|
-
return { projectId: await readFolderProjectId(folder), alias: null };
|
|
233632
|
-
};
|
|
233633
|
-
reportAgentInitStepBestEffort = async ({
|
|
233634
|
-
controlPlaneToken,
|
|
233635
|
-
folder = process.cwd(),
|
|
233636
|
-
report = reportAgentInitStep,
|
|
233637
|
-
step,
|
|
233638
|
-
warn: warn3 = (event, fields) => logger2.warn(event, fields)
|
|
233639
|
-
}) => {
|
|
233640
|
-
try {
|
|
233641
|
-
const project = await resolveAgentInitReportProject(folder);
|
|
233642
|
-
await report(controlPlaneToken, {
|
|
233643
|
-
command: step.command,
|
|
233644
|
-
outcome: step.outcome,
|
|
233645
|
-
phase: step.phase,
|
|
233646
|
-
detail: step.detail ?? null,
|
|
233647
|
-
blockedSections: step.blockedSections ?? [],
|
|
233648
|
-
uploadPercent: step.uploadPercent ?? null,
|
|
233649
|
-
projectId: project.projectId,
|
|
233650
|
-
alias: project.alias,
|
|
233651
|
-
cliVersion: readCurrentPackageMetadata().version ?? null
|
|
233652
|
-
});
|
|
233653
|
-
return true;
|
|
233654
|
-
} catch (error55) {
|
|
233655
|
-
warn3("agent_init_progress_report_failed", {
|
|
233656
|
-
command: step.command,
|
|
233657
|
-
outcome: step.outcome,
|
|
233658
|
-
error: error55 instanceof Error ? error55.message : String(error55)
|
|
233659
|
-
});
|
|
233660
|
-
return false;
|
|
233661
|
-
}
|
|
233662
|
-
};
|
|
233663
|
-
}
|
|
233664
|
-
});
|
|
233665
|
-
|
|
233666
233641
|
// ../../../../shared/initPrep/src/agentConfigFiles.mjs
|
|
233667
233642
|
import fs33 from "node:fs/promises";
|
|
233668
233643
|
import path41 from "node:path";
|
|
@@ -249837,6 +249812,96 @@ var init_service = __esm({
|
|
|
249837
249812
|
}
|
|
249838
249813
|
});
|
|
249839
249814
|
|
|
249815
|
+
// src/devbox/agentInit/progressReport.ts
|
|
249816
|
+
var resolvedProject, recordAgentInitProgressProject, readFolderProjectId, resolveAgentInitReportProject, reportAgentInitStepBestEffort, reportAgentInitActivityBestEffort;
|
|
249817
|
+
var init_progressReport = __esm({
|
|
249818
|
+
"src/devbox/agentInit/progressReport.ts"() {
|
|
249819
|
+
"use strict";
|
|
249820
|
+
init_devboxCore();
|
|
249821
|
+
init_auth();
|
|
249822
|
+
init_controlPlane();
|
|
249823
|
+
init_logger3();
|
|
249824
|
+
init_service();
|
|
249825
|
+
resolvedProject = null;
|
|
249826
|
+
recordAgentInitProgressProject = (project) => {
|
|
249827
|
+
resolvedProject = project;
|
|
249828
|
+
};
|
|
249829
|
+
readFolderProjectId = async (folder) => {
|
|
249830
|
+
const marker = await readProjectRootMarker(folder);
|
|
249831
|
+
if (marker) {
|
|
249832
|
+
return marker.projectId;
|
|
249833
|
+
}
|
|
249834
|
+
return await readGitRootProjectId(folder);
|
|
249835
|
+
};
|
|
249836
|
+
resolveAgentInitReportProject = async (folder) => {
|
|
249837
|
+
if (resolvedProject) {
|
|
249838
|
+
return resolvedProject;
|
|
249839
|
+
}
|
|
249840
|
+
return { projectId: await readFolderProjectId(folder), alias: null };
|
|
249841
|
+
};
|
|
249842
|
+
reportAgentInitStepBestEffort = async ({
|
|
249843
|
+
controlPlaneToken,
|
|
249844
|
+
folder = process.cwd(),
|
|
249845
|
+
report = reportAgentInitStep,
|
|
249846
|
+
step,
|
|
249847
|
+
warn: warn3 = (event, fields) => logger2.warn(event, fields)
|
|
249848
|
+
}) => {
|
|
249849
|
+
try {
|
|
249850
|
+
const project = await resolveAgentInitReportProject(folder);
|
|
249851
|
+
await report(controlPlaneToken, {
|
|
249852
|
+
command: step.command,
|
|
249853
|
+
outcome: step.outcome,
|
|
249854
|
+
phase: step.phase,
|
|
249855
|
+
detail: step.detail ?? null,
|
|
249856
|
+
blockedSections: step.blockedSections ?? [],
|
|
249857
|
+
uploadPercent: step.uploadPercent ?? null,
|
|
249858
|
+
projectId: project.projectId,
|
|
249859
|
+
alias: project.alias,
|
|
249860
|
+
cliVersion: readCurrentPackageMetadata().version ?? null
|
|
249861
|
+
});
|
|
249862
|
+
return true;
|
|
249863
|
+
} catch (error55) {
|
|
249864
|
+
warn3("agent_init_progress_report_failed", {
|
|
249865
|
+
command: step.command,
|
|
249866
|
+
outcome: step.outcome,
|
|
249867
|
+
error: error55 instanceof Error ? error55.message : String(error55)
|
|
249868
|
+
});
|
|
249869
|
+
return false;
|
|
249870
|
+
}
|
|
249871
|
+
};
|
|
249872
|
+
reportAgentInitActivityBestEffort = async ({
|
|
249873
|
+
command,
|
|
249874
|
+
folder
|
|
249875
|
+
}) => {
|
|
249876
|
+
let controlPlaneToken;
|
|
249877
|
+
try {
|
|
249878
|
+
controlPlaneToken = await readUnexpiredControlPlaneToken(
|
|
249879
|
+
await openAgentInitSecretStore()
|
|
249880
|
+
);
|
|
249881
|
+
} catch (error55) {
|
|
249882
|
+
logger2.debug("agent_init_activity_report_skipped", {
|
|
249883
|
+
command,
|
|
249884
|
+
error: error55 instanceof Error ? error55.message : String(error55)
|
|
249885
|
+
});
|
|
249886
|
+
return;
|
|
249887
|
+
}
|
|
249888
|
+
if (controlPlaneToken === null) {
|
|
249889
|
+
logger2.debug("agent_init_activity_report_skipped", {
|
|
249890
|
+
command,
|
|
249891
|
+
error: "no_unexpired_token"
|
|
249892
|
+
});
|
|
249893
|
+
return;
|
|
249894
|
+
}
|
|
249895
|
+
await reportAgentInitStepBestEffort({
|
|
249896
|
+
controlPlaneToken,
|
|
249897
|
+
folder,
|
|
249898
|
+
step: { command, outcome: "ok", phase: null },
|
|
249899
|
+
warn: (event, fields) => logger2.debug(event, fields)
|
|
249900
|
+
});
|
|
249901
|
+
};
|
|
249902
|
+
}
|
|
249903
|
+
});
|
|
249904
|
+
|
|
249840
249905
|
// src/devbox/agentInit/failureReport.ts
|
|
249841
249906
|
var readProgressCommand, readStoredToken, reportAgentInitFailure;
|
|
249842
249907
|
var init_failureReport = __esm({
|
|
@@ -262140,6 +262205,7 @@ var init_detect = __esm({
|
|
|
262140
262205
|
init_args();
|
|
262141
262206
|
init_errors4();
|
|
262142
262207
|
init_commandCore();
|
|
262208
|
+
init_progressReport();
|
|
262143
262209
|
DETECT_USAGE = "Usage: dvb agent-init detect <agent-config|agent-threads|untracked> [--project <path>] [--json] [--all (agent-threads only)]";
|
|
262144
262210
|
withSilencedConsole = async (fn) => {
|
|
262145
262211
|
const original = { info: console.info, log: console.log };
|
|
@@ -262207,6 +262273,10 @@ var init_detect = __esm({
|
|
|
262207
262273
|
);
|
|
262208
262274
|
}
|
|
262209
262275
|
const projectPath = resolveProjectPathFlag(flags);
|
|
262276
|
+
await reportAgentInitActivityBestEffort({
|
|
262277
|
+
command: "detect",
|
|
262278
|
+
folder: projectPath
|
|
262279
|
+
});
|
|
262210
262280
|
if (what === "agent-config") {
|
|
262211
262281
|
const scan = await withSilencedConsole(
|
|
262212
262282
|
async () => await scanDesktopAgentConfig({ localRepoRoot: projectPath })
|
|
@@ -263163,6 +263233,7 @@ var init_guide = __esm({
|
|
|
263163
263233
|
"use strict";
|
|
263164
263234
|
init_args();
|
|
263165
263235
|
init_errors4();
|
|
263236
|
+
init_progressReport();
|
|
263166
263237
|
AGENT_INIT_GUIDE_TOPICS = [
|
|
263167
263238
|
{ topic: "flow", summary: "The whole workflow, phase by phase (start here)" },
|
|
263168
263239
|
{ topic: "manifest", summary: "Manifest format, sections, and rules" },
|
|
@@ -263259,6 +263330,10 @@ var init_guide = __esm({
|
|
|
263259
263330
|
"Usage: dvb agent-init guide [<topic>] [--all]"
|
|
263260
263331
|
);
|
|
263261
263332
|
}
|
|
263333
|
+
await reportAgentInitActivityBestEffort({
|
|
263334
|
+
command: "guide",
|
|
263335
|
+
folder: process.cwd()
|
|
263336
|
+
});
|
|
263262
263337
|
if (readBooleanFlag(flags, "all")) {
|
|
263263
263338
|
for (const entry of AGENT_INIT_GUIDE_TOPICS) {
|
|
263264
263339
|
console.log(`
|
|
@@ -264667,6 +264742,7 @@ var init_status = __esm({
|
|
|
264667
264742
|
init_codingAgents2();
|
|
264668
264743
|
init_desktopHandoff();
|
|
264669
264744
|
init_siteUrl();
|
|
264745
|
+
init_progressReport();
|
|
264670
264746
|
init_jobLoop();
|
|
264671
264747
|
init_check();
|
|
264672
264748
|
init_parse6();
|
|
@@ -264778,6 +264854,10 @@ var init_status = __esm({
|
|
|
264778
264854
|
};
|
|
264779
264855
|
runAgentInitStatus = async (args) => {
|
|
264780
264856
|
const { json: json3, projectPath } = parseStatusArgs(args, "status");
|
|
264857
|
+
await reportAgentInitActivityBestEffort({
|
|
264858
|
+
command: "status",
|
|
264859
|
+
folder: projectPath
|
|
264860
|
+
});
|
|
264781
264861
|
const report = await buildAgentInitStatus({ projectPath });
|
|
264782
264862
|
if (json3) {
|
|
264783
264863
|
console.log(JSON.stringify(report, null, 2));
|
|
@@ -297142,4 +297222,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
297142
297222
|
*)
|
|
297143
297223
|
*/
|
|
297144
297224
|
|
|
297145
|
-
//# debugId=
|
|
297225
|
+
//# debugId=53e072fd-857f-5a39-b752-3d50837dc8a2
|
package/dist/bin/dvbd.mjs
CHANGED
|
@@ -64674,9 +64674,9 @@ var init_sentry = __esm({
|
|
|
64674
64674
|
uncaughtExceptionMonitorInstalled = false;
|
|
64675
64675
|
currentDevboxSentryUser = null;
|
|
64676
64676
|
readBuildMetadata = () => {
|
|
64677
|
-
const rawPackageVersion = "1.0.
|
|
64678
|
-
const rawGitSha = "
|
|
64679
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
64677
|
+
const rawPackageVersion = "1.0.1063";
|
|
64678
|
+
const rawGitSha = "7fce98b7b0c6b137390c46333d712985e8e3e69e";
|
|
64679
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.1063+7fce98b7b0c6b137390c46333d712985e8e3e69e";
|
|
64680
64680
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
64681
64681
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
64682
64682
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -66893,7 +66893,7 @@ var init_packageVersion = __esm({
|
|
|
66893
66893
|
return path8.join(process.cwd(), "dvb");
|
|
66894
66894
|
};
|
|
66895
66895
|
readEmbeddedPackageVersion = () => {
|
|
66896
|
-
const raw = "1.0.
|
|
66896
|
+
const raw = "1.0.1063";
|
|
66897
66897
|
return trimVersion(raw);
|
|
66898
66898
|
};
|
|
66899
66899
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -200,6 +200,9 @@ supports current Codex and Claude threads, not the retired `claude_code` type.
|
|
|
200
200
|
Add `--muted` when the user asks for a quiet thread, such as a worker whose
|
|
201
201
|
result you will collect yourself. A muted thread's finished turns don't notify
|
|
202
202
|
the user or mark it unread; requests for input still do.
|
|
203
|
+
A Claude thread started this way behaves like one started in the desktop app:
|
|
204
|
+
people can reply to it from desktop or mobile, and `dvb agents` asks before
|
|
205
|
+
moving it into a terminal.
|
|
203
206
|
|
|
204
207
|
The result contains a durable `operationId` and stable `clientThreadId`. Retry
|
|
205
208
|
the same logical start with the same idempotency key and identical arguments.
|
|
@@ -300,12 +300,12 @@ surface-specific Claude mode. Press `Esc` before submission to discard a blank
|
|
|
300
300
|
draft or keep a non-blank draft; while waiting for `Ctrl+O`, `Esc` cancels only
|
|
301
301
|
the automatic open and leaves the agent running.
|
|
302
302
|
|
|
303
|
-
|
|
304
|
-
Claude threads in the desktop app. They do not use a
|
|
305
|
-
type. The desktop app can observe their progress and use
|
|
306
|
-
interrupt-and-transfer flow when control needs to move between
|
|
307
|
-
use the same autonomous permission mode as Claude threads
|
|
308
|
-
desktop app.
|
|
303
|
+
Claude threads created from this composer use a persistent Claude terminal
|
|
304
|
+
but remain ordinary Claude threads in the desktop app. They do not use a
|
|
305
|
+
separate conversation type. The desktop app can observe their progress and use
|
|
306
|
+
the usual interrupt-and-transfer flow when control needs to move between
|
|
307
|
+
surfaces. They use the same autonomous permission mode as Claude threads
|
|
308
|
+
started from the desktop app.
|
|
309
309
|
|
|
310
310
|
For a bounded noninteractive snapshot, use:
|
|
311
311
|
|
|
@@ -51,6 +51,12 @@ sign-in in your browser while the current account stays open, then switches to
|
|
|
51
51
|
the new account once sign-in finishes. With only one account signed in, it
|
|
52
52
|
appears directly in the account menu at the bottom of the left pane.
|
|
53
53
|
|
|
54
|
+
While the app waits for Google sign-in, on first sign-in or when adding an
|
|
55
|
+
account, **Open in browser** opens the sign-in page again and **Copy link**
|
|
56
|
+
copies its address for another browser on the same computer. Use them when the
|
|
57
|
+
browser didn't show the page or its tab was closed. If neither button appears,
|
|
58
|
+
update the desktop app.
|
|
59
|
+
|
|
54
60
|
Once more than one account is signed in, the account menu shows **Switch
|
|
55
61
|
account** in its place. That submenu lists every signed-in account, with a
|
|
56
62
|
check beside the current one; click another account to switch. The workbench
|
|
@@ -206,7 +206,10 @@ whether Claude is idle, working, waiting for input, or changing ownership.
|
|
|
206
206
|
terminal. **Take over** asks for confirmation, safely closes that terminal
|
|
207
207
|
session, and resumes the same thread on mobile; text typed but not sent in the
|
|
208
208
|
terminal is lost. Your mobile draft and attachments stay in the composer and
|
|
209
|
-
become editable again after takeover succeeds.
|
|
209
|
+
become editable again after takeover succeeds. When Claude has finished
|
|
210
|
+
replying but a background command it started is still running, the card shows
|
|
211
|
+
Claude as idle and offers only **Take over**, which stops that command. Claude
|
|
212
|
+
is told that the command stopped, so you can ask it to run the command again.
|
|
210
213
|
|
|
211
214
|
Claude Code model and reasoning selections stay with the thread, sync with the
|
|
212
215
|
desktop composer, and remain selected when the thread is reopened or resumed.
|
|
@@ -224,37 +224,60 @@ followed by a Team Template when the team has one. The local-folder and GitHub
|
|
|
224
224
|
options are fallbacks under **Other setup options** at the bottom of the step,
|
|
225
225
|
with the local folder first. The prompt and **Copy prompt** are visible
|
|
226
226
|
immediately. Paste the prompt into Codex or Claude Code in the local project
|
|
227
|
-
folder.
|
|
228
|
-
when the CLI connects and
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
227
|
+
folder. Until the agent reaches the project, the card shows its progress, such
|
|
228
|
+
as when the CLI connects and when the user needs to connect accounts. Once the
|
|
229
|
+
CLI connects, the prompt moves behind **Setup prompt** below the progress.
|
|
230
|
+
|
|
231
|
+
When the agent first reports from the project, the Project step opens that
|
|
232
|
+
project's setup page. The page lists five stages: planning the setup with the
|
|
233
|
+
coding agent, uploading the project files (with a percentage), creating the
|
|
234
|
+
Template box, unpacking the files on the Template box, and starting setup on
|
|
235
|
+
the Template box. While the agent plans, the page shows when it prepares the
|
|
236
|
+
project, when the user needs to act, when the agent is fixing issues a check
|
|
237
|
+
found, when a setup command fails, and when the setup plan is ready for
|
|
238
|
+
approval. **Back** returns to the setup choices, and the page won't open on
|
|
239
|
+
its own again for that project. In **New project**, the page only opens on its
|
|
240
|
+
own for a setup started after the wizard opened.
|
|
241
|
+
|
|
242
|
+
Setups that a coding agent is running also appear under **Setups in
|
|
243
|
+
progress** on the Project step and in the titlebar project selector, with
|
|
244
|
+
their current status, such as **Plan ready for review** or **Waiting for
|
|
245
|
+
you**. Choose **View setup**, or the setup's entry in the project selector, to
|
|
246
|
+
open its setup page. Choosing a project folder that a coding agent is setting
|
|
247
|
+
up also opens its setup page, because continuing in the desktop wizard would
|
|
248
|
+
take over the agent's work. A setup stays listed until it finishes or is
|
|
249
|
+
deleted; before the upload starts, it also leaves the list if the agent hasn't
|
|
250
|
+
reported on it for a day.
|
|
251
|
+
|
|
252
|
+
The setup page for such a project says that setup is waiting for the coding
|
|
253
|
+
agent and suggests asking it to run `dvb agent-init status` and follow its
|
|
254
|
+
next step. The page updates when the agent runs its next setup command, such
|
|
255
|
+
as `dvb agent-init check`; `status` alone doesn't bring it back. When the user
|
|
256
|
+
reaches this page by choosing the project folder, it also offers **Delete
|
|
257
|
+
setup**, which deletes the setup progress saved on the computer. The agent's
|
|
258
|
+
manifest and the project folder are not affected. Choosing the folder again
|
|
259
|
+
then starts the desktop wizard, and a later setup command from the agent,
|
|
260
|
+
such as `dvb agent-init check`, makes the project the agent's setup again.
|
|
233
261
|
|
|
234
262
|
The folder wizard's steps and **Continue** appear only after a local folder
|
|
235
263
|
is selected. **Other setup options** remembers whether it was open across
|
|
236
|
-
reloads in the same app session.
|
|
237
|
-
the
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
follows a setup started while the wizard is open. The Project step does not
|
|
245
|
-
need to stay open for setup to continue.
|
|
246
|
-
|
|
247
|
-
If an agent-driven setup stops before its setup thread starts, the Project
|
|
248
|
-
step shows the error and asks the user to have their coding agent run
|
|
264
|
+
reloads in the same app session. When the setup thread starts on the Template
|
|
265
|
+
box, the desktop app opens it in the workbench. The workbench banner then
|
|
266
|
+
shows **Setup in progress** and **Finishing setup** until setup completes,
|
|
267
|
+
and new devboxes are unavailable until then. The setup page does not need to
|
|
268
|
+
stay open for setup to continue.
|
|
269
|
+
|
|
270
|
+
If an agent-driven setup stops before its setup thread starts, its setup page
|
|
271
|
+
shows the error and asks the user to have their coding agent run
|
|
249
272
|
`dvb agent-init retry` in the project folder. **Delete setup**, shown on the
|
|
250
|
-
|
|
251
|
-
was created, and the setup state saved on the computer,
|
|
252
|
-
manifest; the project folder is not affected. If setup
|
|
273
|
+
page once the upload starts, whether setup is running or stopped, deletes the
|
|
274
|
+
Template box, if one was created, and the setup state saved on the computer,
|
|
275
|
+
including the manifest; the project folder is not affected. If setup
|
|
253
276
|
stops after the thread starts, the workbench banner shows the error and the
|
|
254
277
|
same retry command. A failure while bundling, before the upload starts,
|
|
255
278
|
appears only in the agent's `dvb agent-init` output. The agent's command
|
|
256
279
|
needs to be running when the Template box asks for the bundle's decrypt key;
|
|
257
|
-
if the Template box has waited more than a minute, the
|
|
280
|
+
if the Template box has waited more than a minute, the setup page says setup
|
|
258
281
|
is waiting for the coding agent and asks the user to have it run `dvb
|
|
259
282
|
agent-init watch` in the project folder.
|
|
260
283
|
|
|
@@ -908,11 +931,11 @@ reopen setup at the step where it left off. The wizard row also offers
|
|
|
908
931
|
**Continue setup** and a delete button; deleting removes only the incomplete
|
|
909
932
|
setup state, and the local folder and its files won't be affected. A setup
|
|
910
933
|
waiting on a recoverable error shows **Needs attention** in the project
|
|
911
|
-
selector. Setups started by a coding agent with `dvb agent-init` are
|
|
912
|
-
|
|
913
|
-
Agent-Driven Setup From The Terminal)
|
|
914
|
-
stops, the user should ask the coding agent to run
|
|
915
|
-
the project folder.
|
|
934
|
+
selector. Setups started by a coding agent with `dvb agent-init` are listed
|
|
935
|
+
with their status instead, and choosing one opens its setup page (see
|
|
936
|
+
Agent-Driven Setup From The Terminal). The desktop app never resumes them
|
|
937
|
+
itself. If one stops, the user should ask the coding agent to run
|
|
938
|
+
`dvb agent-init retry` in the project folder.
|
|
916
939
|
|
|
917
940
|
Common recovery paths:
|
|
918
941
|
|
|
@@ -551,10 +551,11 @@ answer. Choose an option to advance to the next question or send the answers
|
|
|
551
551
|
on the last question. For a custom answer, type it and select **Continue** or
|
|
552
552
|
**Send**. Your answer will reach the running turn, and any text or attachments
|
|
553
553
|
already in the reply box will stay there. Use **Skip** to
|
|
554
|
-
leave a question unanswered
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
reopen when you return to the thread
|
|
554
|
+
leave a question unanswered. Once you send or skip the last question, the panel
|
|
555
|
+
closes for the rest of the turn. **Dismiss** minimizes the panel instead;
|
|
556
|
+
select **Answer questions** to reopen it. Historical questions do not
|
|
557
|
+
automatically reopen when you return to the thread; any you have not sent or
|
|
558
|
+
skipped stay under **Answer questions**. An untouched panel minimizes after 30
|
|
558
559
|
seconds without sending anything. If
|
|
559
560
|
the turn ends, edited answers that you have not sent will move to the reply box.
|
|
560
561
|
Answers reach the running turn even if ordinary replies are set to Queue.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boxes-dev/dvb-runtime",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1063",
|
|
4
4
|
"description": "Runtime for the boxes.dev CLI. Install @boxes-dev/dvb to use the CLI.",
|
|
5
5
|
"homepage": "https://boxes.dev",
|
|
6
6
|
"type": "module",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"e2b": "^2.18.0",
|
|
78
78
|
"ink-testing-library": "^4.0.0"
|
|
79
79
|
},
|
|
80
|
-
"devboxReleasedAt": "2026-10-
|
|
80
|
+
"devboxReleasedAt": "2026-10-10T18:25:21Z"
|
|
81
81
|
}
|