@boxes-dev/dvb-runtime 1.0.963 → 1.0.964
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 +160 -63
- package/dist/bin/dvbd.mjs +6 -6
- package/dist/product-docs/references/agent-tools.md +10 -4
- package/dist/product-docs/references/automations.md +14 -11
- package/dist/product-docs/references/aws.md +6 -5
- package/dist/product-docs/references/billing-and-limits.md +13 -5
- package/dist/product-docs/references/cli.md +22 -12
- package/dist/product-docs/references/core-concepts.md +34 -21
- package/dist/product-docs/references/desktop-workbench.md +27 -21
- package/dist/product-docs/references/files-git-and-review.md +46 -22
- package/dist/product-docs/references/fork-workflows.md +42 -15
- package/dist/product-docs/references/getting-started.md +49 -31
- package/dist/product-docs/references/glossary.md +10 -6
- package/dist/product-docs/references/index.md +17 -13
- package/dist/product-docs/references/mobile.md +26 -23
- package/dist/product-docs/references/onbox-agent-tools.md +14 -7
- package/dist/product-docs/references/ports-terminal-and-runtime.md +11 -9
- package/dist/product-docs/references/project-setup.md +29 -17
- package/dist/product-docs/references/security-and-data.md +38 -19
- package/dist/product-docs/references/tailscale.md +15 -11
- package/dist/product-docs/references/team-template.md +129 -82
- package/dist/product-docs/references/template-box-environment.md +10 -8
- package/dist/product-docs/references/threads-and-agents.md +90 -44
- package/dist/product-docs/references/troubleshooting.md +39 -16
- 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]="b9b2ff67-e0ce-5eab-992c-ad14791de9ca")}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";
|
|
@@ -101145,8 +101145,8 @@ var init_otel = __esm({
|
|
|
101145
101145
|
return trimmed && trimmed.length > 0 ? trimmed : void 0;
|
|
101146
101146
|
};
|
|
101147
101147
|
readBuildMetadata = () => {
|
|
101148
|
-
const rawPackageVersion = "1.0.
|
|
101149
|
-
const rawGitSha = "
|
|
101148
|
+
const rawPackageVersion = "1.0.964";
|
|
101149
|
+
const rawGitSha = "4646c663626fc0640c1a65429e5fda303c7fbd31";
|
|
101150
101150
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
101151
101151
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
101152
101152
|
return { packageVersion, gitSha };
|
|
@@ -133552,9 +133552,9 @@ var init_sentry = __esm({
|
|
|
133552
133552
|
uncaughtExceptionMonitorInstalled = false;
|
|
133553
133553
|
currentDevboxSentryUser = null;
|
|
133554
133554
|
readBuildMetadata2 = () => {
|
|
133555
|
-
const rawPackageVersion = "1.0.
|
|
133556
|
-
const rawGitSha = "
|
|
133557
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
133555
|
+
const rawPackageVersion = "1.0.964";
|
|
133556
|
+
const rawGitSha = "4646c663626fc0640c1a65429e5fda303c7fbd31";
|
|
133557
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.964+4646c663626fc0640c1a65429e5fda303c7fbd31";
|
|
133558
133558
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
133559
133559
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
133560
133560
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -138719,7 +138719,7 @@ var init_packageVersion = __esm({
|
|
|
138719
138719
|
return path17.join(process.cwd(), "dvb");
|
|
138720
138720
|
};
|
|
138721
138721
|
readEmbeddedPackageVersion = () => {
|
|
138722
|
-
const raw = "1.0.
|
|
138722
|
+
const raw = "1.0.964";
|
|
138723
138723
|
return trimVersion(raw);
|
|
138724
138724
|
};
|
|
138725
138725
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -205212,16 +205212,28 @@ var init_threadArchiveEligibility = __esm({
|
|
|
205212
205212
|
});
|
|
205213
205213
|
|
|
205214
205214
|
// ../../../../shared/threadRuntime/cliAgentViewContract.ts
|
|
205215
|
-
var CLI_AGENT_VIEW_CONTRACT_VERSION, CLI_AGENT_VIEW_WINDOW_CONTRACT_VERSION, CLI_AGENT_VIEW_PEEK_CONTRACT_VERSION, CLI_AGENT_VIEW_PRESENCE_SHARD_SIZE, CLI_AGENT_VIEW_PROMPT_MAX_UTF8_BYTES, CLI_AGENT_VIEW_NO_SNAPSHOT_MESSAGE;
|
|
205215
|
+
var CLI_AGENT_VIEW_CONTRACT_VERSION, CLI_AGENT_VIEW_PROJECT_CONTRACT_VERSION, CLI_AGENT_VIEW_WINDOW_CONTRACT_VERSION, CLI_AGENT_VIEW_PEEK_CONTRACT_VERSION, CLI_AGENT_VIEW_PRESENCE_SHARD_SIZE, CLI_AGENT_VIEW_PROMPT_MAX_UTF8_BYTES, CLI_AGENT_VIEW_NO_SNAPSHOT_MESSAGE, adaptCliAgentViewProjectSummaryV2;
|
|
205216
205216
|
var init_cliAgentViewContract = __esm({
|
|
205217
205217
|
"../../../../shared/threadRuntime/cliAgentViewContract.ts"() {
|
|
205218
205218
|
"use strict";
|
|
205219
205219
|
CLI_AGENT_VIEW_CONTRACT_VERSION = 1;
|
|
205220
|
+
CLI_AGENT_VIEW_PROJECT_CONTRACT_VERSION = 2;
|
|
205220
205221
|
CLI_AGENT_VIEW_WINDOW_CONTRACT_VERSION = 2;
|
|
205221
205222
|
CLI_AGENT_VIEW_PEEK_CONTRACT_VERSION = 1;
|
|
205222
205223
|
CLI_AGENT_VIEW_PRESENCE_SHARD_SIZE = 64;
|
|
205223
205224
|
CLI_AGENT_VIEW_PROMPT_MAX_UTF8_BYTES = 32 * 1024;
|
|
205224
205225
|
CLI_AGENT_VIEW_NO_SNAPSHOT_MESSAGE = "This project has no snapshot yet. Take a snapshot of its Template box in boxes.dev, then retry.";
|
|
205226
|
+
adaptCliAgentViewProjectSummaryV2 = (project) => ({
|
|
205227
|
+
projectAlias: project.projectAlias,
|
|
205228
|
+
projectFingerprint: project.projectFingerprint,
|
|
205229
|
+
primaryInstanceId: project.projectAnchorId,
|
|
205230
|
+
templateBoxAlias: project.templateTarget?.alias ?? "",
|
|
205231
|
+
canonicalWorkdir: project.canonicalWorkdir,
|
|
205232
|
+
kind: project.kind,
|
|
205233
|
+
projectAnchorId: project.projectAnchorId,
|
|
205234
|
+
templateTarget: project.templateTarget,
|
|
205235
|
+
setup: project.setup
|
|
205236
|
+
});
|
|
205225
205237
|
}
|
|
205226
205238
|
});
|
|
205227
205239
|
|
|
@@ -205556,7 +205568,20 @@ var init_cliAgentToolsProjection = __esm({
|
|
|
205556
205568
|
projectCliAgentToolsProjectV1 = (project) => ({
|
|
205557
205569
|
name: project.projectAlias,
|
|
205558
205570
|
fingerprint: project.projectFingerprint,
|
|
205559
|
-
canonicalWorkdir: project.canonicalWorkdir
|
|
205571
|
+
canonicalWorkdir: project.canonicalWorkdir,
|
|
205572
|
+
...project.kind ? { kind: project.kind } : {},
|
|
205573
|
+
...project.kind === "team_template_managed" ? {
|
|
205574
|
+
setup: project.setup ? {
|
|
205575
|
+
state: project.setup.state,
|
|
205576
|
+
initialSetupCompletedAt: project.setup.initialSetupCompletedAt,
|
|
205577
|
+
newDevboxState: project.setup.newDevboxState,
|
|
205578
|
+
message: project.setup.newDevboxState === "git_access_required" ? "GitHub access needs review before new devboxes can start." : project.setup.newDevboxFailureMessage,
|
|
205579
|
+
recovery: project.setup.recoveryUrl ? {
|
|
205580
|
+
label: "Review GitHub access",
|
|
205581
|
+
url: project.setup.recoveryUrl
|
|
205582
|
+
} : null
|
|
205583
|
+
} : null
|
|
205584
|
+
} : {}
|
|
205560
205585
|
});
|
|
205561
205586
|
resolveCliAgentToolsThreadStatusV1 = ({
|
|
205562
205587
|
archived,
|
|
@@ -206387,7 +206412,7 @@ var init_projectSelection = __esm({
|
|
|
206387
206412
|
});
|
|
206388
206413
|
|
|
206389
206414
|
// src/devbox/agentView/queryRefs.ts
|
|
206390
|
-
var getAgentViewCreationOptionsV1, getAgentViewCreationExecutionDefaultsV1, setAgentViewCreationExecutionDefaultV1, setAgentViewCreationAgentDefaultV1, getAgentViewCreateContextV1, createAgentViewDraftV1, discardAgentViewDraftV1, getAgentViewDraftForEditV1, setAgentViewComposerDraftText, setAgentViewFailedStartDraftTextV1, updateAgentViewDraftBackendV1, prewarmAgentViewDraftV1, startAgentViewTextThreadV2, createAgentViewImageUploadTargets, discardAgentViewImageUploads, kickoffAgentViewThreadStartV1, getAgentViewCreationStatusV1, getAgentViewEmptyNativeThreadStatusV1, startAgentViewEmptyNativeThreadV1, createAndStartAgentViewEmptyNativeThreadV1, listAgentViewProjectsV1, getAgentViewProjectWindowV1, getAgentViewProjectWindowV2, getAgentViewProjectPresenceV1, getAgentViewThreadPeekBindingV1, loadAgentViewThreadPeekV1, markAgentViewThreadPeekViewedV1, resolveAgentViewTargetV1, resolveAgentViewNativeThreadV1, markAgentViewThreadViewed, loadAgentViewProjectPageV1, loadAgentViewProjectPageV2, retryAgentViewEmptyNativeThreadV1, discardAgentViewEmptyNativeThreadV1, pinAgentViewThread, unpinAgentViewThread, setAgentViewThreadTitle, clearAgentViewThreadTitle, archiveAgentViewTemplateThreadMetadata, archiveAgentViewSecondaryThreadMetadata, unarchiveAgentViewTemplateThreadMetadata, unarchiveAgentViewSecondaryThreadMetadata, restoreAgentViewColdThread;
|
|
206415
|
+
var getAgentViewCreationOptionsV1, getAgentViewCreationExecutionDefaultsV1, setAgentViewCreationExecutionDefaultV1, setAgentViewCreationAgentDefaultV1, getAgentViewCreateContextV1, createAgentViewDraftV1, discardAgentViewDraftV1, getAgentViewDraftForEditV1, setAgentViewComposerDraftText, setAgentViewFailedStartDraftTextV1, updateAgentViewDraftBackendV1, prewarmAgentViewDraftV1, startAgentViewTextThreadV2, createAgentViewImageUploadTargets, discardAgentViewImageUploads, kickoffAgentViewThreadStartV1, getAgentViewCreationStatusV1, getAgentViewEmptyNativeThreadStatusV1, startAgentViewEmptyNativeThreadV1, createAndStartAgentViewEmptyNativeThreadV1, listAgentViewProjectsV1, listAgentViewProjectsV2, getAgentViewProjectWindowV1, getAgentViewProjectWindowV2, getAgentViewProjectPresenceV1, getAgentViewThreadPeekBindingV1, loadAgentViewThreadPeekV1, markAgentViewThreadPeekViewedV1, resolveAgentViewTargetV1, resolveAgentViewNativeThreadV1, markAgentViewThreadViewed, loadAgentViewProjectPageV1, loadAgentViewProjectPageV2, retryAgentViewEmptyNativeThreadV1, discardAgentViewEmptyNativeThreadV1, pinAgentViewThread, unpinAgentViewThread, setAgentViewThreadTitle, clearAgentViewThreadTitle, archiveAgentViewTemplateThreadMetadata, archiveAgentViewSecondaryThreadMetadata, unarchiveAgentViewTemplateThreadMetadata, unarchiveAgentViewSecondaryThreadMetadata, restoreAgentViewColdThread;
|
|
206391
206416
|
var init_queryRefs = __esm({
|
|
206392
206417
|
"src/devbox/agentView/queryRefs.ts"() {
|
|
206393
206418
|
"use strict";
|
|
@@ -206413,6 +206438,7 @@ var init_queryRefs = __esm({
|
|
|
206413
206438
|
startAgentViewEmptyNativeThreadV1 = makeFunctionReference("cliAgentView:startEmptyNativeThreadV1");
|
|
206414
206439
|
createAndStartAgentViewEmptyNativeThreadV1 = makeFunctionReference("cliAgentView:createAndStartEmptyNativeThreadV1");
|
|
206415
206440
|
listAgentViewProjectsV1 = makeFunctionReference("cliAgentView:listProjectsV1");
|
|
206441
|
+
listAgentViewProjectsV2 = makeFunctionReference("cliAgentView:listProjectsV2");
|
|
206416
206442
|
getAgentViewProjectWindowV1 = makeFunctionReference("cliAgentView:getProjectWindowV1");
|
|
206417
206443
|
getAgentViewProjectWindowV2 = makeFunctionReference("cliAgentView:getProjectWindowV2");
|
|
206418
206444
|
getAgentViewProjectPresenceV1 = makeFunctionReference("cliAgentView:getProjectPresenceV1");
|
|
@@ -206457,7 +206483,7 @@ var init_commandContext = __esm({
|
|
|
206457
206483
|
options: projects.map((project) => ({
|
|
206458
206484
|
value: project.projectFingerprint,
|
|
206459
206485
|
label: project.projectAlias,
|
|
206460
|
-
hint: project.templateBoxAlias
|
|
206486
|
+
...project.templateBoxAlias ? { hint: project.templateBoxAlias } : {}
|
|
206461
206487
|
}))
|
|
206462
206488
|
});
|
|
206463
206489
|
return Ct(answer) ? null : String(answer);
|
|
@@ -206491,16 +206517,17 @@ var init_commandContext = __esm({
|
|
|
206491
206517
|
prompt,
|
|
206492
206518
|
recordProjects
|
|
206493
206519
|
}) => {
|
|
206494
|
-
const result = await client.query(
|
|
206495
|
-
if (result.contractVersion !==
|
|
206520
|
+
const result = await client.query(listAgentViewProjectsV2, {});
|
|
206521
|
+
if (result.contractVersion !== CLI_AGENT_VIEW_PROJECT_CONTRACT_VERSION) {
|
|
206496
206522
|
throw new Error(
|
|
206497
206523
|
`Project selection returned unsupported contract version ${String(result.contractVersion)}.`
|
|
206498
206524
|
);
|
|
206499
206525
|
}
|
|
206500
|
-
|
|
206526
|
+
const projects = result.projects.map(adaptCliAgentViewProjectSummaryV2);
|
|
206527
|
+
await recordProjects(projects);
|
|
206501
206528
|
return await resolveAgentViewProjectSelection({
|
|
206502
206529
|
explicitAlias: explicitProject,
|
|
206503
|
-
projects
|
|
206530
|
+
projects,
|
|
206504
206531
|
prompt
|
|
206505
206532
|
});
|
|
206506
206533
|
};
|
|
@@ -206588,20 +206615,20 @@ var init_projects2 = __esm({
|
|
|
206588
206615
|
init_errors5();
|
|
206589
206616
|
init_identifiers();
|
|
206590
206617
|
listCliAgentToolProjects = async (client) => {
|
|
206591
|
-
const result = await client.query(
|
|
206592
|
-
if (result.contractVersion !==
|
|
206618
|
+
const result = await client.query(listAgentViewProjectsV2, {});
|
|
206619
|
+
if (result.contractVersion !== CLI_AGENT_VIEW_PROJECT_CONTRACT_VERSION) {
|
|
206593
206620
|
throw new CliAgentToolError({
|
|
206594
206621
|
code: "contract_version_unsupported",
|
|
206595
206622
|
message: `Project inventory returned unsupported contract version ${String(result.contractVersion)}.`
|
|
206596
206623
|
});
|
|
206597
206624
|
}
|
|
206598
206625
|
return {
|
|
206599
|
-
projects: result.projects.map(projectCliAgentToolsProjectV1)
|
|
206626
|
+
projects: result.projects.map(adaptCliAgentViewProjectSummaryV2).map(projectCliAgentToolsProjectV1)
|
|
206600
206627
|
};
|
|
206601
206628
|
};
|
|
206602
206629
|
loadCliAgentToolProject = async (client, selector) => {
|
|
206603
|
-
const result = await client.query(
|
|
206604
|
-
if (result.contractVersion !==
|
|
206630
|
+
const result = await client.query(listAgentViewProjectsV2, {});
|
|
206631
|
+
if (result.contractVersion !== CLI_AGENT_VIEW_PROJECT_CONTRACT_VERSION) {
|
|
206605
206632
|
throw new CliAgentToolError({
|
|
206606
206633
|
code: "contract_version_unsupported",
|
|
206607
206634
|
message: `Project inventory returned unsupported contract version ${String(result.contractVersion)}.`
|
|
@@ -206609,7 +206636,9 @@ var init_projects2 = __esm({
|
|
|
206609
206636
|
}
|
|
206610
206637
|
return resolveCliAgentToolProject({
|
|
206611
206638
|
selector,
|
|
206612
|
-
projects: result.projects
|
|
206639
|
+
projects: result.projects.map(
|
|
206640
|
+
adaptCliAgentViewProjectSummaryV2
|
|
206641
|
+
)
|
|
206613
206642
|
});
|
|
206614
206643
|
};
|
|
206615
206644
|
}
|
|
@@ -281853,6 +281882,17 @@ var init_createComposer = __esm({
|
|
|
281853
281882
|
selected
|
|
281854
281883
|
}) => {
|
|
281855
281884
|
if (!selected) {
|
|
281885
|
+
if (project.kind === "team_template_managed") {
|
|
281886
|
+
return {
|
|
281887
|
+
kind: "new_devbox",
|
|
281888
|
+
primaryInstanceId: project.primaryInstanceId,
|
|
281889
|
+
executionInstanceId: null,
|
|
281890
|
+
apiTarget: {
|
|
281891
|
+
kind: "new_devbox",
|
|
281892
|
+
forkSnapshotPreference: "use_last_snapshot"
|
|
281893
|
+
}
|
|
281894
|
+
};
|
|
281895
|
+
}
|
|
281856
281896
|
return {
|
|
281857
281897
|
kind: "template_box",
|
|
281858
281898
|
primaryInstanceId: project.primaryInstanceId,
|
|
@@ -281865,6 +281905,17 @@ var init_createComposer = __esm({
|
|
|
281865
281905
|
}
|
|
281866
281906
|
const executionInstanceId = selected.target.executionInstanceId;
|
|
281867
281907
|
if (executionInstanceId === project.primaryInstanceId) {
|
|
281908
|
+
if (project.kind === "team_template_managed") {
|
|
281909
|
+
return {
|
|
281910
|
+
kind: "new_devbox",
|
|
281911
|
+
primaryInstanceId: project.primaryInstanceId,
|
|
281912
|
+
executionInstanceId: null,
|
|
281913
|
+
apiTarget: {
|
|
281914
|
+
kind: "new_devbox",
|
|
281915
|
+
forkSnapshotPreference: "use_last_snapshot"
|
|
281916
|
+
}
|
|
281917
|
+
};
|
|
281918
|
+
}
|
|
281868
281919
|
return {
|
|
281869
281920
|
kind: "template_box",
|
|
281870
281921
|
primaryInstanceId: project.primaryInstanceId,
|
|
@@ -281889,7 +281940,7 @@ var init_createComposer = __esm({
|
|
|
281889
281940
|
kind: "new_devbox",
|
|
281890
281941
|
primaryInstanceId: project.primaryInstanceId,
|
|
281891
281942
|
executionInstanceId: null,
|
|
281892
|
-
alias: project.templateBoxAlias,
|
|
281943
|
+
alias: project.kind === "team_template_managed" ? "" : project.templateBoxAlias,
|
|
281893
281944
|
apiTarget: {
|
|
281894
281945
|
kind: "new_devbox",
|
|
281895
281946
|
forkSnapshotPreference: snapshotPreference
|
|
@@ -281921,7 +281972,7 @@ var init_createComposer = __esm({
|
|
|
281921
281972
|
kind: "new_devbox",
|
|
281922
281973
|
primaryInstanceId: project.primaryInstanceId,
|
|
281923
281974
|
executionInstanceId: null,
|
|
281924
|
-
alias: draft.targetAlias,
|
|
281975
|
+
alias: project.kind === "team_template_managed" ? "" : draft.targetAlias,
|
|
281925
281976
|
apiTarget: draft.target
|
|
281926
281977
|
};
|
|
281927
281978
|
}
|
|
@@ -281933,7 +281984,7 @@ var init_createComposer = __esm({
|
|
|
281933
281984
|
case "existing_devbox":
|
|
281934
281985
|
return `Devbox \xB7 ${target.alias}`;
|
|
281935
281986
|
case "new_devbox":
|
|
281936
|
-
return `From Template box \xB7 ${target.alias}
|
|
281987
|
+
return target.alias ? `From Template box \xB7 ${target.alias}` : "New devbox";
|
|
281937
281988
|
}
|
|
281938
281989
|
};
|
|
281939
281990
|
}
|
|
@@ -283032,15 +283083,19 @@ var init_creationComposerController = __esm({
|
|
|
283032
283083
|
if (!selectedTarget) {
|
|
283033
283084
|
throw new Error("Selected creation target is unavailable.");
|
|
283034
283085
|
}
|
|
283035
|
-
|
|
283036
|
-
|
|
283037
|
-
|
|
283038
|
-
|
|
283039
|
-
|
|
283040
|
-
|
|
283041
|
-
|
|
283042
|
-
|
|
283043
|
-
|
|
283086
|
+
if (selectedTarget.kind === "new_devbox" && this.project.kind === "team_template_managed") {
|
|
283087
|
+
target = { ...selectedTarget, alias: "" };
|
|
283088
|
+
} else {
|
|
283089
|
+
const resolved = await this.client.query(resolveAgentViewTargetV1, {
|
|
283090
|
+
primaryInstanceId: selectedTarget.primaryInstanceId,
|
|
283091
|
+
executionInstanceId: selectedTarget.executionInstanceId ?? selectedTarget.primaryInstanceId
|
|
283092
|
+
});
|
|
283093
|
+
assertContractVersion3(resolved, "Thread creation target");
|
|
283094
|
+
target = {
|
|
283095
|
+
...selectedTarget,
|
|
283096
|
+
alias: resolved.target.alias
|
|
283097
|
+
};
|
|
283098
|
+
}
|
|
283044
283099
|
}
|
|
283045
283100
|
const defaults = await this.loadCreationDefaults(
|
|
283046
283101
|
target.executionInstanceId ?? target.primaryInstanceId
|
|
@@ -284692,7 +284747,7 @@ var init_renderState = __esm({
|
|
|
284692
284747
|
isDraft: row.kind === "draft",
|
|
284693
284748
|
actions: {
|
|
284694
284749
|
enter,
|
|
284695
|
-
shell: {
|
|
284750
|
+
shell: project.kind === "team_template_managed" && row.executionInstanceId === project.primaryInstanceId ? { kind: "none" } : {
|
|
284696
284751
|
kind: "shell",
|
|
284697
284752
|
primaryInstanceId: project.primaryInstanceId,
|
|
284698
284753
|
executionInstanceId: row.executionInstanceId,
|
|
@@ -284854,7 +284909,7 @@ var init_renderState = __esm({
|
|
|
284854
284909
|
loadingBucket,
|
|
284855
284910
|
nowMs
|
|
284856
284911
|
}) => {
|
|
284857
|
-
const belongsToSection = (row) => isTemplateBoxRow(row, project.primaryInstanceId) === (section === "template_box");
|
|
284912
|
+
const belongsToSection = (row) => project.kind === "team_template_managed" ? section === "devboxes" : isTemplateBoxRow(row, project.primaryInstanceId) === (section === "template_box");
|
|
284858
284913
|
const allRows = inventory.rows.filter(belongsToSection);
|
|
284859
284914
|
const pinnedRows = inventory.pinned.filter(belongsToSection);
|
|
284860
284915
|
const recentRows = inventory.recent.filter(belongsToSection);
|
|
@@ -284864,11 +284919,16 @@ var init_renderState = __esm({
|
|
|
284864
284919
|
const templateLifecycle = section === "template_box" ? executionLifecycles.find(
|
|
284865
284920
|
(entry) => entry.instanceId === project.primaryInstanceId
|
|
284866
284921
|
) ?? null : null;
|
|
284922
|
+
const managedProjectNoticeState = project.setup?.state === "ready" && project.setup.newDevboxState === "preparing" ? "ready" : project.setup?.state === "ready" ? project.setup.newDevboxState : project.setup?.state;
|
|
284867
284923
|
blocks.push({
|
|
284868
284924
|
kind: "heading",
|
|
284869
284925
|
key: `heading:${section}`,
|
|
284870
284926
|
title: section === "devboxes" ? "Devboxes" : "Template box",
|
|
284871
|
-
rightToken: section === "template_box" ? buildTemplateLifecycleToken(templateLifecycle, nowMs) :
|
|
284927
|
+
rightToken: section === "template_box" ? buildTemplateLifecycleToken(templateLifecycle, nowMs) : managedProjectNoticeState === "git_access_required" ? { kind: "lifecycle", text: "GitHub access needed", tone: "danger" } : managedProjectNoticeState === "failed" ? {
|
|
284928
|
+
kind: "lifecycle",
|
|
284929
|
+
text: project.setup?.state === "ready" ? "new devboxes unavailable" : "setup failed",
|
|
284930
|
+
tone: "danger"
|
|
284931
|
+
} : managedProjectNoticeState === "preparing" ? { kind: "lifecycle", text: "preparing", tone: "idle" } : null
|
|
284872
284932
|
});
|
|
284873
284933
|
if (pinnedRows.length > 0) {
|
|
284874
284934
|
blocks.push({ kind: "spacer", key: `spacer:pinned:${section}` });
|
|
@@ -285043,20 +285103,22 @@ var init_renderState = __esm({
|
|
|
285043
285103
|
loadingBucket,
|
|
285044
285104
|
nowMs
|
|
285045
285105
|
});
|
|
285046
|
-
|
|
285047
|
-
|
|
285048
|
-
|
|
285049
|
-
|
|
285050
|
-
|
|
285051
|
-
|
|
285052
|
-
|
|
285053
|
-
|
|
285054
|
-
|
|
285055
|
-
|
|
285056
|
-
|
|
285057
|
-
|
|
285058
|
-
|
|
285059
|
-
|
|
285106
|
+
if (project.kind !== "team_template_managed") {
|
|
285107
|
+
appendSection({
|
|
285108
|
+
blocks,
|
|
285109
|
+
project,
|
|
285110
|
+
inventory,
|
|
285111
|
+
section: "template_box",
|
|
285112
|
+
recentVisibleLimit: recentVisibleLimits.template_box,
|
|
285113
|
+
recentBatchSize: 10,
|
|
285114
|
+
recentHasMore,
|
|
285115
|
+
archivedHasAny,
|
|
285116
|
+
collapsedForkGroupKeys,
|
|
285117
|
+
executionLifecycles,
|
|
285118
|
+
loadingBucket,
|
|
285119
|
+
nowMs
|
|
285120
|
+
});
|
|
285121
|
+
}
|
|
285060
285122
|
appendArchived({
|
|
285061
285123
|
blocks,
|
|
285062
285124
|
project,
|
|
@@ -285176,10 +285238,11 @@ var init_windowState = __esm({
|
|
|
285176
285238
|
};
|
|
285177
285239
|
deriveAgentViewPresenceInstanceIds = ({
|
|
285178
285240
|
primaryInstanceId,
|
|
285179
|
-
window: window2
|
|
285241
|
+
window: window2,
|
|
285242
|
+
includeProjectAnchor = true
|
|
285180
285243
|
}) => {
|
|
285181
285244
|
const instanceIds = normalizeInstanceIds([
|
|
285182
|
-
primaryInstanceId,
|
|
285245
|
+
...includeProjectAnchor ? [primaryInstanceId] : [],
|
|
285183
285246
|
...window2.clientThreads.flatMap(
|
|
285184
285247
|
(thread) => thread.executionInstanceId ? [thread.executionInstanceId] : []
|
|
285185
285248
|
),
|
|
@@ -285508,9 +285571,10 @@ var init_metadataActionController = __esm({
|
|
|
285508
285571
|
};
|
|
285509
285572
|
genericFailureCopy = (action) => action === "pin" ? "Thread couldn\u2019t be pinned. Review the latest status and try again." : action === "rename" ? "Thread couldn\u2019t be renamed. Review the latest status and try again." : action === "archive" ? "Thread couldn\u2019t be archived. Review the latest status and try again." : "Thread couldn\u2019t be unarchived. Review the latest status and try again.";
|
|
285510
285573
|
AgentViewMetadataActionController = class {
|
|
285511
|
-
constructor(client, setCodexArchivedState, host) {
|
|
285574
|
+
constructor(client, setCodexArchivedState, managedProject, host) {
|
|
285512
285575
|
this.client = client;
|
|
285513
285576
|
this.setCodexArchivedState = setCodexArchivedState;
|
|
285577
|
+
this.managedProject = managedProject;
|
|
285514
285578
|
this.host = host;
|
|
285515
285579
|
}
|
|
285516
285580
|
snapshot = {
|
|
@@ -285737,6 +285801,14 @@ var init_metadataActionController = __esm({
|
|
|
285737
285801
|
const { action, capture } = selected;
|
|
285738
285802
|
const { target } = action;
|
|
285739
285803
|
if (target.isArchived && (target.storageState === "cold" || target.storageState === "restore_failed")) {
|
|
285804
|
+
if (this.managedProject) {
|
|
285805
|
+
await this.executeArchive({
|
|
285806
|
+
action,
|
|
285807
|
+
capture,
|
|
285808
|
+
coldRestoreDestination: "new_devbox"
|
|
285809
|
+
});
|
|
285810
|
+
return;
|
|
285811
|
+
}
|
|
285740
285812
|
this.restoreCapture = capture;
|
|
285741
285813
|
this.update({
|
|
285742
285814
|
restoreDestinationModal: { target, selected: "new_devbox" },
|
|
@@ -286182,6 +286254,7 @@ var init_controller = __esm({
|
|
|
286182
286254
|
actionDependencies.setCodexArchivedState ?? (async () => {
|
|
286183
286255
|
throw new Error("Codex archive control is unavailable.");
|
|
286184
286256
|
}),
|
|
286257
|
+
project.kind === "team_template_managed",
|
|
286185
286258
|
{
|
|
286186
286259
|
captureSelection: () => this.captureMetadataSelection(),
|
|
286187
286260
|
isSelectionCurrent: (capture) => this.isMetadataSelectionCurrent(capture),
|
|
@@ -286384,7 +286457,9 @@ var init_controller = __esm({
|
|
|
286384
286457
|
this.emit();
|
|
286385
286458
|
}
|
|
286386
286459
|
);
|
|
286387
|
-
this.updatePresenceSubscriptions(
|
|
286460
|
+
this.updatePresenceSubscriptions(
|
|
286461
|
+
this.project.kind === "team_template_managed" ? [] : [this.project.primaryInstanceId]
|
|
286462
|
+
);
|
|
286388
286463
|
this.windowUnsubscribe = this.client.onUpdate(
|
|
286389
286464
|
getAgentViewProjectWindowV2,
|
|
286390
286465
|
{ primaryInstanceId: this.project.primaryInstanceId },
|
|
@@ -287965,7 +288040,8 @@ var init_controller = __esm({
|
|
|
287965
288040
|
this.updatePresenceSubscriptions(
|
|
287966
288041
|
deriveAgentViewPresenceInstanceIds({
|
|
287967
288042
|
primaryInstanceId: this.project.primaryInstanceId,
|
|
287968
|
-
window: window2
|
|
288043
|
+
window: window2,
|
|
288044
|
+
includeProjectAnchor: this.project.kind !== "team_template_managed"
|
|
287969
288045
|
})
|
|
287970
288046
|
);
|
|
287971
288047
|
}
|
|
@@ -294234,10 +294310,10 @@ var init_threads = __esm({
|
|
|
294234
294310
|
}
|
|
294235
294311
|
return chunks;
|
|
294236
294312
|
};
|
|
294237
|
-
mapThread = (row) => ({
|
|
294313
|
+
mapThread = (row, { includeProjectAnchor }) => ({
|
|
294238
294314
|
clientThreadId: String(row.clientThreadId),
|
|
294239
294315
|
agent: row.backend,
|
|
294240
|
-
executionInstanceId: row.executionInstanceId,
|
|
294316
|
+
executionInstanceId: !includeProjectAnchor && row.executionInstanceId === row.primaryInstanceId ? null : row.executionInstanceId,
|
|
294241
294317
|
title: row.title,
|
|
294242
294318
|
status: resolveCliAgentToolsThreadStatusV1({
|
|
294243
294319
|
archived: row.isArchived,
|
|
@@ -294257,6 +294333,7 @@ var init_threads = __esm({
|
|
|
294257
294333
|
projectThreadPage = async ({
|
|
294258
294334
|
client,
|
|
294259
294335
|
primaryInstanceId,
|
|
294336
|
+
includeProjectAnchor,
|
|
294260
294337
|
window: window2,
|
|
294261
294338
|
automationThreads,
|
|
294262
294339
|
section,
|
|
@@ -294264,7 +294341,8 @@ var init_threads = __esm({
|
|
|
294264
294341
|
}) => {
|
|
294265
294342
|
const presenceInstanceIds = deriveAgentViewPresenceInstanceIds({
|
|
294266
294343
|
primaryInstanceId,
|
|
294267
|
-
window: window2
|
|
294344
|
+
window: window2,
|
|
294345
|
+
includeProjectAnchor
|
|
294268
294346
|
});
|
|
294269
294347
|
const presenceResults = await Promise.all(
|
|
294270
294348
|
chunk(presenceInstanceIds, CLI_AGENT_VIEW_PRESENCE_SHARD_SIZE).map(
|
|
@@ -294286,10 +294364,20 @@ var init_threads = __esm({
|
|
|
294286
294364
|
executionLifecycles: presence.executionLifecycles,
|
|
294287
294365
|
activeSessions: presence.activeSessions
|
|
294288
294366
|
});
|
|
294289
|
-
const rows = section === "archived" ? inventory.archived.map(
|
|
294290
|
-
|
|
294291
|
-
|
|
294292
|
-
|
|
294367
|
+
const rows = section === "archived" ? inventory.archived.map(
|
|
294368
|
+
(row) => mapThread(row, { includeProjectAnchor })
|
|
294369
|
+
) : section === "recent" ? inventory.recent.map(
|
|
294370
|
+
(row) => mapThread(row, { includeProjectAnchor })
|
|
294371
|
+
) : [
|
|
294372
|
+
...inventory.pinned.map(
|
|
294373
|
+
(row) => mapThread(row, { includeProjectAnchor })
|
|
294374
|
+
),
|
|
294375
|
+
...inventory.recent.map(
|
|
294376
|
+
(row) => mapThread(row, { includeProjectAnchor })
|
|
294377
|
+
),
|
|
294378
|
+
...section === "all" && includeArchived ? inventory.archived.map(
|
|
294379
|
+
(row) => mapThread(row, { includeProjectAnchor })
|
|
294380
|
+
) : []
|
|
294293
294381
|
];
|
|
294294
294382
|
const seen = /* @__PURE__ */ new Set();
|
|
294295
294383
|
return rows.filter((thread) => {
|
|
@@ -294323,6 +294411,7 @@ var init_threads = __esm({
|
|
|
294323
294411
|
const threads2 = await projectThreadPage({
|
|
294324
294412
|
client,
|
|
294325
294413
|
primaryInstanceId: project.primaryInstanceId,
|
|
294414
|
+
includeProjectAnchor: project.kind !== "team_template_managed",
|
|
294326
294415
|
window: pageResult.page,
|
|
294327
294416
|
automationThreads: pageResult.automationThreads,
|
|
294328
294417
|
section: decoded.bucket,
|
|
@@ -294358,6 +294447,7 @@ var init_threads = __esm({
|
|
|
294358
294447
|
const threads2 = await projectThreadPage({
|
|
294359
294448
|
client,
|
|
294360
294449
|
primaryInstanceId: project.primaryInstanceId,
|
|
294450
|
+
includeProjectAnchor: project.kind !== "team_template_managed",
|
|
294361
294451
|
window: liveResult.window,
|
|
294362
294452
|
automationThreads: liveResult.automationThreads,
|
|
294363
294453
|
section: "live",
|
|
@@ -294412,6 +294502,7 @@ var init_threads = __esm({
|
|
|
294412
294502
|
const threads = await projectThreadPage({
|
|
294413
294503
|
client,
|
|
294414
294504
|
primaryInstanceId: project.primaryInstanceId,
|
|
294505
|
+
includeProjectAnchor: project.kind !== "team_template_managed",
|
|
294415
294506
|
window: window2,
|
|
294416
294507
|
automationThreads,
|
|
294417
294508
|
section: "all",
|
|
@@ -355226,6 +355317,12 @@ var init_threadStart = __esm({
|
|
|
355226
355317
|
context35.client,
|
|
355227
355318
|
projectSelector
|
|
355228
355319
|
);
|
|
355320
|
+
if (project.kind === "team_template_managed" && target.kind === "template_box") {
|
|
355321
|
+
throw new CliAgentToolError({
|
|
355322
|
+
code: "invalid_request",
|
|
355323
|
+
message: "This project does not have a Template box."
|
|
355324
|
+
});
|
|
355325
|
+
}
|
|
355229
355326
|
let resolvedTarget;
|
|
355230
355327
|
if (target.kind === "existing_devbox") {
|
|
355231
355328
|
const inventory = await listCliAgentToolDevboxes({
|
|
@@ -357509,4 +357606,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
357509
357606
|
*)
|
|
357510
357607
|
*/
|
|
357511
357608
|
|
|
357512
|
-
//# debugId=
|
|
357609
|
+
//# debugId=b9b2ff67-e0ce-5eab-992c-ad14791de9ca
|
package/dist/bin/dvbd.mjs
CHANGED
|
@@ -96328,8 +96328,8 @@ var init_otel = __esm({
|
|
|
96328
96328
|
return trimmed && trimmed.length > 0 ? trimmed : void 0;
|
|
96329
96329
|
};
|
|
96330
96330
|
readBuildMetadata = () => {
|
|
96331
|
-
const rawPackageVersion = "1.0.
|
|
96332
|
-
const rawGitSha = "
|
|
96331
|
+
const rawPackageVersion = "1.0.964";
|
|
96332
|
+
const rawGitSha = "4646c663626fc0640c1a65429e5fda303c7fbd31";
|
|
96333
96333
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
96334
96334
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
96335
96335
|
return { packageVersion, gitSha };
|
|
@@ -128624,9 +128624,9 @@ var init_sentry = __esm({
|
|
|
128624
128624
|
uncaughtExceptionMonitorInstalled = false;
|
|
128625
128625
|
currentDevboxSentryUser = null;
|
|
128626
128626
|
readBuildMetadata2 = () => {
|
|
128627
|
-
const rawPackageVersion = "1.0.
|
|
128628
|
-
const rawGitSha = "
|
|
128629
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
128627
|
+
const rawPackageVersion = "1.0.964";
|
|
128628
|
+
const rawGitSha = "4646c663626fc0640c1a65429e5fda303c7fbd31";
|
|
128629
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.964+4646c663626fc0640c1a65429e5fda303c7fbd31";
|
|
128630
128630
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
128631
128631
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
128632
128632
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -130818,7 +130818,7 @@ var init_packageVersion = __esm({
|
|
|
130818
130818
|
return path8.join(process.cwd(), "dvb");
|
|
130819
130819
|
};
|
|
130820
130820
|
readEmbeddedPackageVersion = () => {
|
|
130821
|
-
const raw = "1.0.
|
|
130821
|
+
const raw = "1.0.964";
|
|
130822
130822
|
return trimVersion(raw);
|
|
130823
130823
|
};
|
|
130824
130824
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -49,7 +49,9 @@ event types, or error codes as unsupported rather than guessing. Follow
|
|
|
49
49
|
returned `nextActions` when they apply.
|
|
50
50
|
|
|
51
51
|
Public data is intentionally compact. Project rows contain `name`,
|
|
52
|
-
`fingerprint`,
|
|
52
|
+
`fingerprint`, `canonicalWorkdir`, an optional project `kind`, and an optional
|
|
53
|
+
setup warning with its recovery action. Older CLI releases safely omit Team
|
|
54
|
+
Template member projects. Template-box/devbox rows contain
|
|
53
55
|
`instanceId`, server-generated `name`, `kind`, coarse `status`,
|
|
54
56
|
`canonicalWorkdir`, and `lastActivityAt`. Thread rows contain
|
|
55
57
|
`clientThreadId`, `agent`, `executionInstanceId`, title, action-oriented
|
|
@@ -91,8 +93,10 @@ idempotency key only when the project is identical. A changed request under the
|
|
|
91
93
|
same key fails. Do not generate a new key merely because a request timed out;
|
|
92
94
|
first read the original operation.
|
|
93
95
|
|
|
94
|
-
This workflow creates a devbox from the
|
|
95
|
-
a draft, conversation, or agent thread.
|
|
96
|
+
This workflow creates a devbox from the project's current reusable source
|
|
97
|
+
without creating a draft, conversation, or agent thread. That source is an
|
|
98
|
+
ordinary project's Template-box snapshot or a Team Template member project's
|
|
99
|
+
current saved version. It is CLI/agent-only for now.
|
|
96
100
|
|
|
97
101
|
## Run One-Off Work
|
|
98
102
|
|
|
@@ -148,7 +152,9 @@ dvb threads start \
|
|
|
148
152
|
`--target` accepts `template`, `devbox:<instance-id>`, or `new-devbox`.
|
|
149
153
|
`new-devbox` creates the execution devbox through the normal thread startup
|
|
150
154
|
flow; it is different from `devboxes create`, which creates a devbox without
|
|
151
|
-
starting an agent thread.
|
|
155
|
+
starting an agent thread. A Team Template member project accepts `new-devbox`
|
|
156
|
+
and exact existing devboxes but rejects `template` because it has no personal
|
|
157
|
+
Template box.
|
|
152
158
|
Use exactly one of `--prompt`, `--prompt-file`, or `--stdin`. Thread start
|
|
153
159
|
supports Codex and Claude, not Claude Code.
|
|
154
160
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Automations
|
|
2
2
|
|
|
3
3
|
Automations run Codex or Claude Code from a saved prompt without you manually
|
|
4
|
-
starting a normal thread each time. They
|
|
5
|
-
Automations section
|
|
6
|
-
managed from the workbench's Integrations section, but still use the same
|
|
4
|
+
starting a normal thread each time. They belong to the project and live in its
|
|
5
|
+
desktop workbench **Automations** section. Default Slack and Linear receivers
|
|
6
|
+
are managed from the workbench's Integrations section, but still use the same
|
|
7
7
|
automation detail view.
|
|
8
8
|
|
|
9
9
|
Use automations for repeated work such as scheduled checks, API-triggered
|
|
@@ -24,10 +24,11 @@ An automation has:
|
|
|
24
24
|
- capacity behavior;
|
|
25
25
|
- run history.
|
|
26
26
|
|
|
27
|
-
Automation runs
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
Automation runs start new devboxes from the same reusable source as ordinary
|
|
28
|
+
threads. For an ordinary project, that is the latest Template-box snapshot. For
|
|
29
|
+
a Team Template member project, it is the Team Template's current saved
|
|
30
|
+
version. Keep the source current when future automation runs need new
|
|
31
|
+
dependencies, generated files, or shared setup changes.
|
|
31
32
|
|
|
32
33
|
## Creating An Automation
|
|
33
34
|
|
|
@@ -37,7 +38,7 @@ agent, prompt, and model controls. Trigger-specific setup such as a schedule or
|
|
|
37
38
|
API endpoint appears below the prompt.
|
|
38
39
|
|
|
39
40
|
New automations start with the same agent, model, reasoning, and speed defaults
|
|
40
|
-
that a new thread would use
|
|
41
|
+
that a new project thread would use.
|
|
41
42
|
|
|
42
43
|
New automations keep their runs **Under this automation**. Change **Where runs
|
|
43
44
|
appear** to **In the main thread list** when you want runs alongside normal
|
|
@@ -179,9 +180,11 @@ test that scheduled or API automation.
|
|
|
179
180
|
You can clean up a devbox 30 minutes after its run finishes, after a chosen
|
|
180
181
|
number of inactive days, or after a chosen number of newer eligible runs have
|
|
181
182
|
finished. Cleanup preserves the run thread directly in cold storage and
|
|
182
|
-
destroys its devbox; the automation run remains in run history and its
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
destroys its devbox; the automation run remains in run history and its archived
|
|
184
|
+
thread can still be opened without waking a machine. Restore the thread
|
|
185
|
+
explicitly if it needs to continue. Ordinary projects can restore it to a new
|
|
186
|
+
devbox or the Template box; Team Template member projects restore it only to a
|
|
187
|
+
new devbox.
|
|
185
188
|
|
|
186
189
|
If boxes.dev must wake a sleeping devbox only to inspect or archive it for
|
|
187
190
|
automatic cleanup, that cleanup-only time is maintenance and does not use your
|
|
@@ -62,11 +62,12 @@ changing, or removing AWS.
|
|
|
62
62
|
## How Tools Receive Credentials
|
|
63
63
|
|
|
64
64
|
For a connected project, boxes.dev manages an AWS profile named `boxes-dev` on
|
|
65
|
-
the Template box and
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
its real machines. That means the Template box and devboxes in an ordinary
|
|
66
|
+
project, and the assigned devboxes in a Team Template member project. A project
|
|
67
|
+
can also have named managed profiles such as `boxes-staging` and
|
|
68
|
+
`boxes-production`. Each one selects its own assigned AWS account and permission
|
|
69
|
+
set. New terminals and newly started or safely refreshed managed agent processes
|
|
70
|
+
select the default with the normal AWS environment settings:
|
|
70
71
|
|
|
71
72
|
```text
|
|
72
73
|
AWS_PROFILE=boxes-dev
|