prreviewbuddy 0.80.3 → 0.82.1
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/CHANGELOG.md +52 -0
- package/README.md +3 -4
- package/dist/{delete_review-CYiIfV5A.js → delete_review-BED4mPxB.js} +471 -35
- package/dist/main.js +21 -1
- package/dist/server.js +575 -45
- package/package.json +2 -4
- package/static/chunk-CQNkZ9TG.js +1 -0
- package/static/{chunk-DnOyRP8m.js → chunk-CWRKWlhO.js} +1 -1
- package/static/{chunk-C3E91izb.js → chunk-CxFmUaBj.js} +1 -1
- package/static/help.js +1 -1
- package/static/notifications.js +1 -1
- package/static/reviews.js +1 -1
- package/static/runs.js +1 -1
- package/static/settings.js +1 -1
- package/static/shell.css +128 -0
- package/static/workspace.js +79 -79
- package/static/chunk-C8d9FvLk.js +0 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { $ as MIN_WORKSPACE_PORT, $i as resolveModel, A as batchIdentity, Ar as positionInLineage, B as bootstrapUrl, Bi as WITHHELD_REASON, Bn as readMarker, Dr as loadWorkspace, Fr as reviewedRepositories, Gn as findExistingReview, H as ensureServer, Hi as resolveTarget, In as MANAGED_ROOT, Ir as summarise, J as stopServer, L as queueForReview, Mn as modelHelpLines, Nr as recentWorkspaces, Or as matchingWorkspaceIds, P as runBatch, Q as MAX_WORKSPACE_PORT, Qi as resolveAgent, Un as describeMovement, Vi as kissOutcome, Vn as removeWorktree, W as reviewsUrl, Wn as describeSubject, Xi as git, Y as workspaceUrl, Z as DEFAULT_WORKSPACE_PORT, Zn as forgeResolver, _ as runningJobs, _t as telemetryUploadConsent, a as wasBlocked, aa as STORE_ROOT, ar as loadJob, bt as PACKAGE_NAME, cr as PHASES, ct as reanalyseReview, d as mergeUpdateInto, dt as append, er as allJobs, et as parseWorkspacePort, f as parkedUpdateRefusal, fa as parkedReason, fr as progressSteps, g as liveUpdateFor, gt as recordTelemetryUploadConsent, h as UpdateAlreadyRunningError, ht as deliver, i as liveJobsFor, ia as CONFIG_PATH, k as relativeTime, kr as mutateWorkspace, mr as clearClaim, mt as stamp, n as deleteReview$1, na as readAgentPreference, nt as statedWorkspacePort, oa as AGENT_IDS, ot as prepareReview, p as updateReview, pa as runnableAgents, pr as purposeOf, pt as record$1, ra as writeAgentPreference, rt as writePortPreference, sa as agentById, st as settleReview, ua as detectAgents, ut as startJob, vr as followedRefName, vt as telemetryUploadEnabled, y as recordKissRun, yt as BUILD_VERSION, z as readIndexToken } from "./delete_review-BED4mPxB.js";
|
|
3
3
|
import { basename, dirname, join, resolve } from "node:path";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
5
5
|
import { existsSync, mkdirSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -1150,6 +1150,11 @@ function unknownSettingValue(key, value, known) {
|
|
|
1150
1150
|
*/
|
|
1151
1151
|
function unresolvedAgent(resolution) {
|
|
1152
1152
|
if (resolution.kind === "unknown-id") return unknownAgent(resolution.id, AGENT_IDS);
|
|
1153
|
+
if (resolution.kind === "unavailable" && resolution.parked) return [
|
|
1154
|
+
resolution.reason,
|
|
1155
|
+
"",
|
|
1156
|
+
`Nothing was started. Name another agent with ${runnableAgents().flags}, or change the default with \`prreviewbuddy config set agent <agent>\`.`
|
|
1157
|
+
].join("\n");
|
|
1153
1158
|
if (resolution.kind === "unavailable") return `${resolution.agent?.displayName} cannot be run here. ${resolution.reason}`;
|
|
1154
1159
|
if (resolution.kind === "none") return [
|
|
1155
1160
|
"No coding agent was found, so there is nothing to review with.",
|
|
@@ -2380,6 +2385,11 @@ async function operate(command, workspace) {
|
|
|
2380
2385
|
err(commitReviewCannotUpdate(workspace.changeSet.data.pullRequest.head.sha));
|
|
2381
2386
|
return 1;
|
|
2382
2387
|
}
|
|
2388
|
+
const parked = command.operation === "update" ? parkedUpdateRefusal(workspace) : null;
|
|
2389
|
+
if (parked) {
|
|
2390
|
+
err(parked);
|
|
2391
|
+
return 1;
|
|
2392
|
+
}
|
|
2383
2393
|
enqueue(command, workspace.id);
|
|
2384
2394
|
if (command.operation === "reanalyse") {
|
|
2385
2395
|
const agent = await chooseFor(command, workspace);
|
|
@@ -2718,6 +2728,11 @@ async function agents(command) {
|
|
|
2718
2728
|
out(agentList(detected, preferred));
|
|
2719
2729
|
return 0;
|
|
2720
2730
|
}
|
|
2731
|
+
const parked = parkedReason(command.id);
|
|
2732
|
+
if (parked) {
|
|
2733
|
+
err(parked);
|
|
2734
|
+
return 1;
|
|
2735
|
+
}
|
|
2721
2736
|
if (!AGENT_IDS.includes(command.id)) {
|
|
2722
2737
|
err(unknownAgent(command.id, AGENT_IDS));
|
|
2723
2738
|
return 1;
|
|
@@ -2802,6 +2817,11 @@ function agent(command) {
|
|
|
2802
2817
|
return 0;
|
|
2803
2818
|
}
|
|
2804
2819
|
const id = command.value;
|
|
2820
|
+
const parked = parkedReason(id);
|
|
2821
|
+
if (parked) {
|
|
2822
|
+
err(parked);
|
|
2823
|
+
return 1;
|
|
2824
|
+
}
|
|
2805
2825
|
if (!AGENT_IDS.includes(id)) {
|
|
2806
2826
|
err(unknownAgent(id, AGENT_IDS));
|
|
2807
2827
|
return 1;
|