@boxes-dev/dvb-runtime 1.0.1080 → 1.0.1081
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.
|
@@ -98,6 +98,12 @@ repository, every repository and top-level file inside it starts selected;
|
|
|
98
98
|
keep only what belongs in the project in `project.repositories` and
|
|
99
99
|
`project.rootEntries`.
|
|
100
100
|
|
|
101
|
+
When the manifest uses managed GitHub access, `start` also checks whether
|
|
102
|
+
boxes.dev can already use the project's GitHub repositories. If it reports a
|
|
103
|
+
GitHub access problem, run `dvb agent-init github connect` before you
|
|
104
|
+
investigate, so the user can finish on GitHub while you work. `check` verifies
|
|
105
|
+
access again before launch.
|
|
106
|
+
|
|
101
107
|
Read any worktree, project-overlap, or skipped-repository explanations printed by `start`.
|
|
102
108
|
Explain them to the user during review and confirm the intended project scope.
|
|
103
109
|
`check` repeats these explanations in the launch summary; an overlap does not
|
|
@@ -122,8 +128,8 @@ The remote thread will use that choice when available on the connected
|
|
|
122
128
|
account, with high reasoning where supported.
|
|
123
129
|
|
|
124
130
|
For GitHub repos, the manifest defaults to `githubAccess: managed` and keeps
|
|
125
|
-
the seeded GitHub `gitSsh` rows in skip mode. If check says GitHub is
|
|
126
|
-
connected, or that the boxes.dev GitHub App can't access a repository, run
|
|
131
|
+
the seeded GitHub `gitSsh` rows in skip mode. If start or check says GitHub is
|
|
132
|
+
not connected, or that the boxes.dev GitHub App can't access a repository, run
|
|
127
133
|
`dvb agent-init github connect`, have the user finish in the browser, and then
|
|
128
134
|
re-run check. Once GitHub is connected, that command opens GitHub and prints
|
|
129
135
|
which account the user should choose. If an installation needs an update,
|
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]="4b9bb473-e618-5a79-8a86-c0fdba0f0295")}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";
|
|
@@ -6323,17 +6323,20 @@ var init_callbackServer = __esm({
|
|
|
6323
6323
|
rejectCallback = reject;
|
|
6324
6324
|
});
|
|
6325
6325
|
void waitForCallback.catch(() => void 0);
|
|
6326
|
-
const settleFailure = (error55) => {
|
|
6326
|
+
const settleFailure = (error55, response) => {
|
|
6327
6327
|
if (settled)
|
|
6328
6328
|
return;
|
|
6329
6329
|
settled = true;
|
|
6330
|
-
|
|
6330
|
+
if (response)
|
|
6331
|
+
response.once("close", () => rejectCallback(error55));
|
|
6332
|
+
else
|
|
6333
|
+
rejectCallback(error55);
|
|
6331
6334
|
};
|
|
6332
6335
|
const server = http.createServer((request2, response) => {
|
|
6333
6336
|
const target = request2.url ?? "";
|
|
6334
6337
|
if (target.length > MAX_CALLBACK_TARGET_CHARS) {
|
|
6338
|
+
settleFailure(new McpOAuthCompanionError("sdk_protocol_error", "The OAuth callback was too large."), response);
|
|
6335
6339
|
writeHtml(response, 414, "Authentication failed");
|
|
6336
|
-
settleFailure(new McpOAuthCompanionError("sdk_protocol_error", "The OAuth callback was too large."));
|
|
6337
6340
|
return;
|
|
6338
6341
|
}
|
|
6339
6342
|
if (request2.method !== "GET") {
|
|
@@ -6351,29 +6354,31 @@ var init_callbackServer = __esm({
|
|
|
6351
6354
|
}
|
|
6352
6355
|
const state = parsed.searchParams.get("state") ?? "";
|
|
6353
6356
|
if (!safeStateEqual(expectedState, state)) {
|
|
6357
|
+
settleFailure(new McpOAuthCompanionError("state_mismatch", "The OAuth callback state did not match."), response);
|
|
6354
6358
|
writeHtml(response, 400, "Authentication failed");
|
|
6355
|
-
settleFailure(new McpOAuthCompanionError("state_mismatch", "The OAuth callback state did not match."));
|
|
6356
6359
|
return;
|
|
6357
6360
|
}
|
|
6358
6361
|
const providerError = parsed.searchParams.get("error");
|
|
6359
6362
|
if (providerError) {
|
|
6363
|
+
settleFailure(new McpOAuthCompanionError("provider_denied", "The OAuth provider did not authorize this connection."), response);
|
|
6360
6364
|
writeHtml(response, 200, "Authentication was not completed");
|
|
6361
|
-
settleFailure(new McpOAuthCompanionError("provider_denied", "The OAuth provider did not authorize this connection."));
|
|
6362
6365
|
return;
|
|
6363
6366
|
}
|
|
6364
6367
|
const authorizationCode = parsed.searchParams.get("code") ?? "";
|
|
6365
6368
|
if (!authorizationCode) {
|
|
6369
|
+
settleFailure(new McpOAuthCompanionError("sdk_protocol_error", "The OAuth callback did not include an authorization code."), response);
|
|
6366
6370
|
writeHtml(response, 400, "Authentication failed");
|
|
6367
|
-
settleFailure(new McpOAuthCompanionError("sdk_protocol_error", "The OAuth callback did not include an authorization code."));
|
|
6368
6371
|
return;
|
|
6369
6372
|
}
|
|
6370
6373
|
callbackAccepted = true;
|
|
6371
6374
|
settled = true;
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6375
|
+
response.once("close", () => {
|
|
6376
|
+
resolveCallback({
|
|
6377
|
+
authorizationCode,
|
|
6378
|
+
issuer: parsed.searchParams.get("iss") ?? void 0
|
|
6379
|
+
});
|
|
6376
6380
|
});
|
|
6381
|
+
writeHtml(response, 200, "Authentication successful");
|
|
6377
6382
|
});
|
|
6378
6383
|
let localPort;
|
|
6379
6384
|
try {
|
|
@@ -6419,7 +6424,10 @@ var init_callbackServer = __esm({
|
|
|
6419
6424
|
signal?.removeEventListener("abort", onAbort);
|
|
6420
6425
|
if (!server.listening)
|
|
6421
6426
|
return;
|
|
6422
|
-
await new Promise((resolve3) =>
|
|
6427
|
+
await new Promise((resolve3) => {
|
|
6428
|
+
server.close(() => resolve3());
|
|
6429
|
+
server.closeAllConnections();
|
|
6430
|
+
});
|
|
6423
6431
|
};
|
|
6424
6432
|
const onAbort = () => {
|
|
6425
6433
|
settleFailure(new McpOAuthCompanionError("canceled", "MCP authorization was canceled."));
|
|
@@ -27449,6 +27457,9 @@ var init_chatGptBrowserSignIn = __esm({
|
|
|
27449
27457
|
server.close(() => resolve3());
|
|
27450
27458
|
server.closeIdleConnections();
|
|
27451
27459
|
});
|
|
27460
|
+
if (stage === "settled") {
|
|
27461
|
+
server.closeAllConnections();
|
|
27462
|
+
}
|
|
27452
27463
|
return shutDown;
|
|
27453
27464
|
};
|
|
27454
27465
|
const settle = (error55) => {
|
|
@@ -70343,9 +70354,9 @@ var init_sentry = __esm({
|
|
|
70343
70354
|
uncaughtExceptionMonitorInstalled = false;
|
|
70344
70355
|
currentDevboxSentryUser = null;
|
|
70345
70356
|
readBuildMetadata = () => {
|
|
70346
|
-
const rawPackageVersion = "1.0.
|
|
70347
|
-
const rawGitSha = "
|
|
70348
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
70357
|
+
const rawPackageVersion = "1.0.1081";
|
|
70358
|
+
const rawGitSha = "13a23bcb8c308616abb295a6dd2553104ca405c0";
|
|
70359
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.1081+13a23bcb8c308616abb295a6dd2553104ca405c0";
|
|
70349
70360
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
70350
70361
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
70351
70362
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -75729,7 +75740,7 @@ var init_packageVersion = __esm({
|
|
|
75729
75740
|
return path18.join(process.cwd(), "dvb");
|
|
75730
75741
|
};
|
|
75731
75742
|
readEmbeddedPackageVersion = () => {
|
|
75732
|
-
const raw = "1.0.
|
|
75743
|
+
const raw = "1.0.1081";
|
|
75733
75744
|
return trimVersion(raw);
|
|
75734
75745
|
};
|
|
75735
75746
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -91083,6 +91094,10 @@ var init_controlPlane = __esm({
|
|
|
91083
91094
|
}
|
|
91084
91095
|
const code2 = url3.searchParams.get("code");
|
|
91085
91096
|
const error55 = url3.searchParams.get("error");
|
|
91097
|
+
res.once("close", () => {
|
|
91098
|
+
if (code2) waiter.resolve(code2);
|
|
91099
|
+
else waiter.reject(new Error("OAuth failed."));
|
|
91100
|
+
});
|
|
91086
91101
|
res.statusCode = code2 ? 200 : 400;
|
|
91087
91102
|
res.setHeader("content-type", "text/html; charset=utf-8");
|
|
91088
91103
|
if (code2) {
|
|
@@ -91101,11 +91116,6 @@ var init_controlPlane = __esm({
|
|
|
91101
91116
|
})
|
|
91102
91117
|
);
|
|
91103
91118
|
}
|
|
91104
|
-
if (code2) {
|
|
91105
|
-
waiter.resolve(code2);
|
|
91106
|
-
} else {
|
|
91107
|
-
waiter.reject(new Error("OAuth failed."));
|
|
91108
|
-
}
|
|
91109
91119
|
});
|
|
91110
91120
|
const waiter = (() => {
|
|
91111
91121
|
let resolveFn;
|
|
@@ -91132,6 +91142,7 @@ var init_controlPlane = __esm({
|
|
|
91132
91142
|
waitForCode: () => waiter.promise,
|
|
91133
91143
|
close: () => new Promise((closeResolve) => {
|
|
91134
91144
|
server.close(() => closeResolve());
|
|
91145
|
+
server.closeAllConnections();
|
|
91135
91146
|
})
|
|
91136
91147
|
});
|
|
91137
91148
|
});
|
|
@@ -264522,7 +264533,7 @@ var init_gitSsh = __esm({
|
|
|
264522
264533
|
});
|
|
264523
264534
|
|
|
264524
264535
|
// src/devbox/commands/agentInit/github.ts
|
|
264525
|
-
var GITHUB_USAGE, startAgentInitGithubConnection, runAgentInitGithub, isGithubConnectionReady, readInstallUrl, connectAgentInitGithub, manageAgentInitGithubCliAccess;
|
|
264536
|
+
var GITHUB_USAGE, startAgentInitGithubConnection, runAgentInitGithub, isGithubConnectionReady, findAgentInitGithubAccessIssue, readInstallUrl, connectAgentInitGithub, manageAgentInitGithubCliAccess;
|
|
264526
264537
|
var init_github = __esm({
|
|
264527
264538
|
"src/devbox/commands/agentInit/github.ts"() {
|
|
264528
264539
|
"use strict";
|
|
@@ -264617,6 +264628,18 @@ var init_github = __esm({
|
|
|
264617
264628
|
const fields = connection;
|
|
264618
264629
|
return fields["connectionStatus"] === "connected" && fields["tokenStatus"] === "valid" && fields["authorizationStatus"] === "current" && fields["credentialUpgradeStatus"] !== "update_available";
|
|
264619
264630
|
};
|
|
264631
|
+
findAgentInitGithubAccessIssue = async ({
|
|
264632
|
+
client,
|
|
264633
|
+
projectLayoutRepos
|
|
264634
|
+
}) => {
|
|
264635
|
+
const connectionResult = await client.getGithubConnection({});
|
|
264636
|
+
const resolution = resolveAgentInitManagedGithubAccess({
|
|
264637
|
+
connectionResult,
|
|
264638
|
+
inventoryResult: isGithubConnectionReady(connectionResult) ? await client.listGithubRepositories({}) : null,
|
|
264639
|
+
projectLayoutRepos
|
|
264640
|
+
});
|
|
264641
|
+
return resolution.ok ? null : resolution.issue;
|
|
264642
|
+
};
|
|
264620
264643
|
readInstallUrl = (result) => {
|
|
264621
264644
|
if (!result || typeof result !== "object") return null;
|
|
264622
264645
|
const fields = result;
|
|
@@ -266103,6 +266126,8 @@ var init_start = __esm({
|
|
|
266103
266126
|
init_seed();
|
|
266104
266127
|
init_check();
|
|
266105
266128
|
init_githubAccess();
|
|
266129
|
+
init_parse6();
|
|
266130
|
+
init_github();
|
|
266106
266131
|
init_progressReport();
|
|
266107
266132
|
init_guidance();
|
|
266108
266133
|
init_silencedConsole();
|
|
@@ -266174,13 +266199,13 @@ var init_start = __esm({
|
|
|
266174
266199
|
fs56.rm(statePaths.preparedBundleStatePath, { force: true })
|
|
266175
266200
|
]);
|
|
266176
266201
|
}
|
|
266202
|
+
const projectLayoutRepos = readAgentInitProjectLayoutRepos({
|
|
266203
|
+
repo,
|
|
266204
|
+
validation
|
|
266205
|
+
});
|
|
266177
266206
|
let manifestSeeded = false;
|
|
266178
266207
|
const manifestExists = await fileExists3(statePaths.manifestPath);
|
|
266179
266208
|
if (!manifestExists || reseed) {
|
|
266180
|
-
const projectLayoutRepos = readAgentInitProjectLayoutRepos({
|
|
266181
|
-
repo,
|
|
266182
|
-
validation
|
|
266183
|
-
});
|
|
266184
266209
|
const [agentConfigScan, threadScan, untrackedTree] = await withSilencedConsole(
|
|
266185
266210
|
async () => Promise.all([
|
|
266186
266211
|
scanDesktopAgentConfig({ localRepoRoot: repo.repoRoot }).catch(
|
|
@@ -266251,6 +266276,16 @@ var init_start = __esm({
|
|
|
266251
266276
|
phase: checkStillPasses ? "ready_to_launch" : "preparing"
|
|
266252
266277
|
}
|
|
266253
266278
|
});
|
|
266279
|
+
const parsedManifest = manifestText === null ? null : parseAgentInitManifest(manifestText);
|
|
266280
|
+
const githubAccessIssue = parsedManifest?.ok === true && parsedManifest.manifest.version !== 1 && parsedManifest.manifest.githubAccess === "managed" ? await findAgentInitGithubAccessIssue({
|
|
266281
|
+
client: context34.controlPlaneClient,
|
|
266282
|
+
projectLayoutRepos
|
|
266283
|
+
}).catch((error55) => {
|
|
266284
|
+
console.warn(
|
|
266285
|
+
`Could not check GitHub access yet: ${error55 instanceof Error ? error55.message : String(error55)}`
|
|
266286
|
+
);
|
|
266287
|
+
return null;
|
|
266288
|
+
}) : null;
|
|
266254
266289
|
if (json3) {
|
|
266255
266290
|
console.log(
|
|
266256
266291
|
JSON.stringify(
|
|
@@ -266263,7 +266298,8 @@ var init_start = __esm({
|
|
|
266263
266298
|
projectId: repo.projectId,
|
|
266264
266299
|
projectRoot: repo.repoRoot,
|
|
266265
266300
|
stagingDir: statePaths.stagingDir,
|
|
266266
|
-
projectGuidance: buildProjectSelectionGuidance(validation.project)
|
|
266301
|
+
projectGuidance: buildProjectSelectionGuidance(validation.project),
|
|
266302
|
+
githubAccessIssue
|
|
266267
266303
|
},
|
|
266268
266304
|
null,
|
|
266269
266305
|
2
|
|
@@ -266281,6 +266317,13 @@ var init_start = __esm({
|
|
|
266281
266317
|
console.log(
|
|
266282
266318
|
`Staging folder for edited file copies: ${statePaths.stagingDir}`
|
|
266283
266319
|
);
|
|
266320
|
+
if (githubAccessIssue) {
|
|
266321
|
+
console.log("");
|
|
266322
|
+
console.log(`GitHub access: ${githubAccessIssue.message}`);
|
|
266323
|
+
console.log(
|
|
266324
|
+
`Start on this first so the user can finish on GitHub while you investigate. ${githubAccessIssue.fix}`
|
|
266325
|
+
);
|
|
266326
|
+
}
|
|
266284
266327
|
console.log("");
|
|
266285
266328
|
console.log("Next steps:");
|
|
266286
266329
|
console.log(
|
|
@@ -300811,4 +300854,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
300811
300854
|
*)
|
|
300812
300855
|
*/
|
|
300813
300856
|
|
|
300814
|
-
//# debugId=
|
|
300857
|
+
//# debugId=4b9bb473-e618-5a79-8a86-c0fdba0f0295
|
package/dist/bin/dvbd.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]="37a3fca6-6f66-5106-99a6-67552067615c")}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";
|
|
@@ -64675,9 +64675,9 @@ var init_sentry = __esm({
|
|
|
64675
64675
|
uncaughtExceptionMonitorInstalled = false;
|
|
64676
64676
|
currentDevboxSentryUser = null;
|
|
64677
64677
|
readBuildMetadata = () => {
|
|
64678
|
-
const rawPackageVersion = "1.0.
|
|
64679
|
-
const rawGitSha = "
|
|
64680
|
-
const rawSentryRelease = "boxes-dev-dvb@1.0.
|
|
64678
|
+
const rawPackageVersion = "1.0.1081";
|
|
64679
|
+
const rawGitSha = "13a23bcb8c308616abb295a6dd2553104ca405c0";
|
|
64680
|
+
const rawSentryRelease = "boxes-dev-dvb@1.0.1081+13a23bcb8c308616abb295a6dd2553104ca405c0";
|
|
64681
64681
|
const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
|
|
64682
64682
|
const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
|
|
64683
64683
|
const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
|
|
@@ -66894,7 +66894,7 @@ var init_packageVersion = __esm({
|
|
|
66894
66894
|
return path8.join(process.cwd(), "dvb");
|
|
66895
66895
|
};
|
|
66896
66896
|
readEmbeddedPackageVersion = () => {
|
|
66897
|
-
const raw = "1.0.
|
|
66897
|
+
const raw = "1.0.1081";
|
|
66898
66898
|
return trimVersion(raw);
|
|
66899
66899
|
};
|
|
66900
66900
|
readNearestPackageMetadata = (basePath) => {
|
|
@@ -80047,4 +80047,4 @@ smol-toml/dist/index.js:
|
|
|
80047
80047
|
*)
|
|
80048
80048
|
*/
|
|
80049
80049
|
|
|
80050
|
-
//# debugId=
|
|
80050
|
+
//# debugId=37a3fca6-6f66-5106-99a6-67552067615c
|
|
@@ -648,9 +648,9 @@ comments. The agent replies to or resolves review conversations only
|
|
|
648
648
|
when your instructions or the project's agent guidance tell it to.
|
|
649
649
|
|
|
650
650
|
While a Codex agent is working, its follow-up waits for the current turn to
|
|
651
|
-
finish. Later events
|
|
652
|
-
|
|
653
|
-
request's current state when the follow-up starts.
|
|
651
|
+
finish. Later events join a waiting follow-up that already covers those kinds,
|
|
652
|
+
even if a follow-up for a different kind of event was queued more recently.
|
|
653
|
+
The agent reads the pull request's current state when the follow-up starts.
|
|
654
654
|
|
|
655
655
|
GitHub does not announce new merge conflicts, so boxes.dev checks the pull
|
|
656
656
|
request about ten minutes after its base branch changes, or an hour after the
|
|
@@ -673,6 +673,11 @@ deleted threads will not receive it. Turning follow-ups off will also turn off
|
|
|
673
673
|
the merge notice. Closing a pull request without merging will end follow-ups
|
|
674
674
|
silently.
|
|
675
675
|
|
|
676
|
+
When a pull request closes or merges, boxes.dev also tries to cancel its waiting
|
|
677
|
+
automatic repairs. A repair already being sent to the agent or running can
|
|
678
|
+
finish. Your queued messages and follow-ups for other pull requests stay in
|
|
679
|
+
place.
|
|
680
|
+
|
|
676
681
|
Only one agent thread per boxes.dev account can handle follow-ups for a pull
|
|
677
682
|
request at a time. Turning them on from another thread will show the current
|
|
678
683
|
thread and ask you to move the job. While that thread is still available,
|
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.1081",
|
|
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-16T19:12:34Z"
|
|
81
81
|
}
|