@mrclrchtr/supi-review 7.3.1 → 8.0.0
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/README.md +4 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/README.md +11 -1
- package/node_modules/@mrclrchtr/supi-agent-runtime/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-agent-runtime/node_modules/@mrclrchtr/supi-core/src/config/config.ts +110 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/node_modules/@mrclrchtr/supi-core/src/config.ts +6 -1
- package/node_modules/@mrclrchtr/supi-agent-runtime/node_modules/@mrclrchtr/supi-core/src/settings/settings-schema.ts +2 -1
- package/node_modules/@mrclrchtr/supi-agent-runtime/package.json +7 -3
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/api.ts +37 -1
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/lifecycle-trace.ts +5 -2
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/run.ts +237 -35
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/session/agent-run-registry-types.ts +95 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/session/agent-run-registry.ts +372 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/session/transcript-format.ts +184 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/session/transcript-store.ts +284 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/types.ts +30 -4
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-command.ts +206 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-overlay-data.ts +100 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-overlay-render.ts +167 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-overlay.ts +398 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-run-list.ts +95 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-run-switcher.ts +29 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-run-viewer-input.ts +69 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-run-viewer-render.ts +246 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-run-viewer.ts +400 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-run-viewport.ts +112 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-steering-input.ts +50 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-transcript-context.ts +56 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-transcript-pane.ts +386 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-transcript-payload.ts +66 -0
- package/node_modules/@mrclrchtr/supi-agent-runtime/src/ui/agents-transcript.ts +380 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/README.md +6 -6
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +22 -4
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-core/src/config/config.ts +110 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-core/src/config.ts +6 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-core/src/settings/settings-schema.ts +2 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/README.md +29 -6
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +22 -4
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/config/config.ts +110 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/config.ts +6 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/settings/settings-schema.ts +2 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/package.json +3 -3
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/api.ts +25 -3
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-host.ts +2 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-refresh.ts +5 -2
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostics.ts +39 -6
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/client/client-document-sync.ts +82 -12
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/client/client-semantic-input-barrier.ts +28 -5
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/client/client.ts +606 -30
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/config/capabilities.ts +9 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/config/config.ts +69 -8
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/config/operation-support.ts +196 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/config/server-config.ts +15 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/config/types.ts +9 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-project-info.ts +2 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-workspace-symbol.ts +31 -2
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/manager/manager.ts +72 -2
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/provider/lsp-refactor-provider.ts +9 -43
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/provider/refactor-planning.ts +102 -50
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/provider/semantic-edit-normalizer.ts +49 -3
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-controller.ts +78 -18
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-registry.ts +46 -2
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/session/workspace-lsp-runtime.ts +14 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/workspace-path-policy.ts +30 -4
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +22 -4
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/config/config.ts +110 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/config.ts +6 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/settings/settings-schema.ts +2 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-tree-sitter/package.json +3 -3
- package/node_modules/@mrclrchtr/supi-code-intelligence/package.json +5 -5
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/analysis/capability/capability-warnings.ts +64 -25
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/analysis/health/server-status.ts +23 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/analysis/health/signals.ts +1 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/analysis/search/ast-scan.ts +42 -8
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/analysis/search/pattern.ts +4 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/config.ts +64 -34
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/extension.ts +29 -10
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/headless.ts +1 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/session/find-types.ts +2 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/session/find-workflow.ts +5 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/session/health-types.ts +3 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/session/health-workflow.ts +10 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/session/session.ts +34 -2
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/substrate/lsp/lifecycle.ts +2 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/substrate/lsp/recovery.ts +3 -3
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/substrate/lsp/settings.ts +191 -108
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/substrate/workspace-provider-host.ts +50 -12
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/tool/code_find/markdown.ts +12 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/tool/code_find/render.ts +20 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/tool/code_find/result.ts +3 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/tool/code_health/markdown.ts +3 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/tool/code_health/result.ts +3 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/tool/result/types.ts +3 -1
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/ui/status-command.ts +54 -6
- package/node_modules/@mrclrchtr/supi-code-intelligence/src/ui/status-overlay.ts +5 -0
- package/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-core/src/config/config.ts +110 -0
- package/node_modules/@mrclrchtr/supi-core/src/config.ts +6 -1
- package/node_modules/@mrclrchtr/supi-core/src/settings/settings-schema.ts +2 -1
- package/package.json +4 -4
- package/src/review.ts +5 -2
- package/src/tool/review_run/child-session.ts +29 -7
- package/src/tool/review_run/execute.ts +6 -1
- package/src/tool/review_run/execution.ts +6 -0
- package/src/tool/review_run/register.ts +3 -1
- package/src/tool/review_run/runner.ts +40 -0
- package/src/tool/review_run/spec.ts +2 -0
- package/src/tool/review_run/workflow.ts +7 -1
- package/src/tui/review-command.ts +74 -3
- package/src/types.ts +5 -0
- package/node_modules/@mrclrchtr/supi-code-intelligence/node_modules/@mrclrchtr/supi-lsp/src/config/lsp-settings.ts +0 -22
|
@@ -4,8 +4,13 @@
|
|
|
4
4
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
5
5
|
import { truncateToWidth } from "@earendil-works/pi-tui";
|
|
6
6
|
import { getDefaultWorkspaceRuntime } from "@mrclrchtr/supi-code-runtime/api";
|
|
7
|
-
import { getWorkspaceLspRuntime, type WorkspaceLspRuntimeState } from "@mrclrchtr/supi-lsp/api";
|
|
8
7
|
import {
|
|
8
|
+
type AutomaticLspPathPolicy,
|
|
9
|
+
getWorkspaceLspRuntime,
|
|
10
|
+
type WorkspaceLspRuntimeState,
|
|
11
|
+
} from "@mrclrchtr/supi-lsp/api";
|
|
12
|
+
import {
|
|
13
|
+
type CapabilityWarningMissingServerSource,
|
|
9
14
|
evaluateCapabilityWarnings,
|
|
10
15
|
gatherCapabilityWarningInput,
|
|
11
16
|
} from "../analysis/capability/capability-warnings.ts";
|
|
@@ -20,8 +25,20 @@ interface InspectorState {
|
|
|
20
25
|
close: (() => void) | null;
|
|
21
26
|
}
|
|
22
27
|
|
|
28
|
+
/** Owned LSP facts used by the status warning collector. */
|
|
29
|
+
export interface CiStatusWarningSource {
|
|
30
|
+
get(cwd: string): {
|
|
31
|
+
lspController: CapabilityWarningMissingServerSource | null;
|
|
32
|
+
automaticPathPolicy: AutomaticLspPathPolicy | null;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
23
36
|
/** Register the interactive /supi-ci-status overlay command. */
|
|
24
|
-
export function registerCiStatusCommand(
|
|
37
|
+
export function registerCiStatusCommand(
|
|
38
|
+
pi: ExtensionAPI,
|
|
39
|
+
homeDir?: string,
|
|
40
|
+
warningSource?: CiStatusWarningSource,
|
|
41
|
+
): void {
|
|
25
42
|
const inspector: InspectorState = { handle: null, close: null };
|
|
26
43
|
pi.registerCommand("supi-ci-status", {
|
|
27
44
|
description: "Toggle code intelligence status — LSP and structural analysis state",
|
|
@@ -31,7 +48,15 @@ export function registerCiStatusCommand(pi: ExtensionAPI): void {
|
|
|
31
48
|
return;
|
|
32
49
|
}
|
|
33
50
|
|
|
34
|
-
const dataRef = {
|
|
51
|
+
const dataRef = {
|
|
52
|
+
current: await gatherCiStatusData({
|
|
53
|
+
cwd: ctx.cwd,
|
|
54
|
+
pi,
|
|
55
|
+
projectTrusted: ctx.isProjectTrusted(),
|
|
56
|
+
homeDir,
|
|
57
|
+
warningSource,
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
35
60
|
updateStatusAndWidget(ctx, dataRef.current);
|
|
36
61
|
|
|
37
62
|
// Custom footer while overlay is open — reads latest data via ref
|
|
@@ -56,7 +81,13 @@ export function registerCiStatusCommand(pi: ExtensionAPI): void {
|
|
|
56
81
|
return lspState.runtime.getOutstandingDiagnostics(maxSeverity).entries;
|
|
57
82
|
},
|
|
58
83
|
onRefresh: async () => {
|
|
59
|
-
const fresh = await gatherCiStatusData(
|
|
84
|
+
const fresh = await gatherCiStatusData({
|
|
85
|
+
cwd: ctx.cwd,
|
|
86
|
+
pi,
|
|
87
|
+
projectTrusted: ctx.isProjectTrusted(),
|
|
88
|
+
homeDir,
|
|
89
|
+
warningSource,
|
|
90
|
+
});
|
|
60
91
|
dataRef.current = fresh;
|
|
61
92
|
updateStatusAndWidget(ctx, fresh);
|
|
62
93
|
return fresh;
|
|
@@ -87,8 +118,18 @@ export function registerCiStatusCommand(pi: ExtensionAPI): void {
|
|
|
87
118
|
});
|
|
88
119
|
}
|
|
89
120
|
|
|
121
|
+
/** Inputs for one status dialog snapshot. */
|
|
122
|
+
interface GatherCiStatusOptions {
|
|
123
|
+
cwd: string;
|
|
124
|
+
pi: ExtensionAPI;
|
|
125
|
+
projectTrusted: boolean;
|
|
126
|
+
homeDir?: string;
|
|
127
|
+
warningSource?: CiStatusWarningSource;
|
|
128
|
+
}
|
|
129
|
+
|
|
90
130
|
/** Gather a snapshot of LSP and structural state for the dialog. */
|
|
91
|
-
async function gatherCiStatusData(
|
|
131
|
+
async function gatherCiStatusData(options: GatherCiStatusOptions): Promise<CiStatusData> {
|
|
132
|
+
const { cwd, pi, projectTrusted, homeDir, warningSource } = options;
|
|
92
133
|
const workspace = getDefaultWorkspaceRuntime().getWorkspace(cwd);
|
|
93
134
|
const lspState = getWorkspaceLspRuntime(cwd);
|
|
94
135
|
const serverInventoryAvailable = lspState.kind === "ready" || lspState.kind === "disabled";
|
|
@@ -118,7 +159,14 @@ async function gatherCiStatusData(cwd: string, pi: ExtensionAPI): Promise<CiStat
|
|
|
118
159
|
const activeTools = pi.getActiveTools().filter((t) => t.startsWith("code_"));
|
|
119
160
|
|
|
120
161
|
// Evaluate current Capability Warnings from available data.
|
|
121
|
-
const
|
|
162
|
+
const warningFacts = warningSource?.get(cwd);
|
|
163
|
+
const capabilityWarnings = evaluateCapabilityWarnings(
|
|
164
|
+
gatherCapabilityWarningInput(cwd, warningFacts?.lspController ?? null, {
|
|
165
|
+
projectTrusted,
|
|
166
|
+
homeDir,
|
|
167
|
+
automaticPathPolicy: warningFacts?.automaticPathPolicy ?? undefined,
|
|
168
|
+
}),
|
|
169
|
+
);
|
|
122
170
|
|
|
123
171
|
return {
|
|
124
172
|
workspaceRoot: cwd,
|
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
import type { CapabilityWarningReport } from "../analysis/capability/capability-warnings.ts";
|
|
21
21
|
import {
|
|
22
22
|
countProjectServerRouteStatuses,
|
|
23
|
+
formatProjectServerOperationSupport,
|
|
23
24
|
formatProjectServerRoot,
|
|
24
25
|
formatProjectServerStatusReason,
|
|
25
26
|
} from "../analysis/health/server-status.ts";
|
|
@@ -382,6 +383,10 @@ export class CiStatusDialog {
|
|
|
382
383
|
if (statusReason) {
|
|
383
384
|
container.addChild(new Text(t.fg("warning", ` ${statusReason}`), 0, 0));
|
|
384
385
|
}
|
|
386
|
+
const operationSupport = formatProjectServerOperationSupport(server.operationSupport);
|
|
387
|
+
if (operationSupport) {
|
|
388
|
+
container.addChild(new Text(t.fg("dim", ` ${operationSupport}`), 0, 0));
|
|
389
|
+
}
|
|
385
390
|
|
|
386
391
|
if (server.openFiles.length > 0) {
|
|
387
392
|
const shown = server.openFiles.slice(0, MAX_OPEN_FILES_SHOWN);
|
|
@@ -70,6 +70,116 @@ export interface SupiConfigOptions {
|
|
|
70
70
|
homeDir?: string;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/** Options for loading automatic code-intelligence exclusions. */
|
|
74
|
+
export interface AutomaticExclusionOptions extends SupiConfigOptions {
|
|
75
|
+
/** Whether the project config is trusted and can apply. Defaults to true. */
|
|
76
|
+
projectTrusted?: boolean;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Load the one configured exclusion list shared by automatic LSP work and
|
|
81
|
+
* broad AST searches.
|
|
82
|
+
*
|
|
83
|
+
* Project values replace global values. An explicit empty project list clears
|
|
84
|
+
* the global list. The old `lsp.exclude` key is rejected in every applicable
|
|
85
|
+
* scope so automatic work cannot start without its former protection.
|
|
86
|
+
*/
|
|
87
|
+
export function loadAutomaticExclusionPatterns(
|
|
88
|
+
cwd: string,
|
|
89
|
+
options: AutomaticExclusionOptions = {},
|
|
90
|
+
): readonly string[] {
|
|
91
|
+
const projectTrusted = options.projectTrusted !== false;
|
|
92
|
+
const globalCodeIntelligence = loadSupiConfigSectionForScope("code-intelligence", cwd, {
|
|
93
|
+
scope: "global",
|
|
94
|
+
homeDir: options.homeDir,
|
|
95
|
+
});
|
|
96
|
+
const projectCodeIntelligence = projectTrusted
|
|
97
|
+
? loadSupiConfigSectionForScope("code-intelligence", cwd, { scope: "project" })
|
|
98
|
+
: null;
|
|
99
|
+
const globalLsp = loadSupiConfigSectionForScope("lsp", cwd, {
|
|
100
|
+
scope: "global",
|
|
101
|
+
homeDir: options.homeDir,
|
|
102
|
+
});
|
|
103
|
+
const projectLsp = projectTrusted
|
|
104
|
+
? loadSupiConfigSectionForScope("lsp", cwd, { scope: "project" })
|
|
105
|
+
: null;
|
|
106
|
+
|
|
107
|
+
const legacyPath = findLegacyExclusionPath(cwd, options, globalLsp, projectLsp);
|
|
108
|
+
if (legacyPath) {
|
|
109
|
+
throw new Error(
|
|
110
|
+
`Unsupported ${legacyPath.scope} configuration at ${legacyPath.path}: "lsp.exclude" was removed. Move its value to "code-intelligence.exclude". Automatic LSP and broad AST work did not start; reload after migration.`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const source = findExclusionSource(cwd, options, {
|
|
115
|
+
projectTrusted,
|
|
116
|
+
globalCodeIntelligence,
|
|
117
|
+
projectCodeIntelligence,
|
|
118
|
+
});
|
|
119
|
+
return validateExclusionSource(source);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface ExclusionSource {
|
|
123
|
+
value: unknown;
|
|
124
|
+
path: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
interface LegacyExclusionPath {
|
|
128
|
+
scope: "global" | "project";
|
|
129
|
+
path: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function findLegacyExclusionPath(
|
|
133
|
+
cwd: string,
|
|
134
|
+
options: AutomaticExclusionOptions,
|
|
135
|
+
globalLsp: Record<string, unknown> | null,
|
|
136
|
+
projectLsp: Record<string, unknown> | null,
|
|
137
|
+
): LegacyExclusionPath | null {
|
|
138
|
+
if (globalLsp && Object.hasOwn(globalLsp, "exclude")) {
|
|
139
|
+
return { scope: "global", path: getSupiConfigPath("global", cwd, options) };
|
|
140
|
+
}
|
|
141
|
+
if (projectLsp && Object.hasOwn(projectLsp, "exclude")) {
|
|
142
|
+
return { scope: "project", path: getSupiConfigPath("project", cwd) };
|
|
143
|
+
}
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function findExclusionSource(
|
|
148
|
+
cwd: string,
|
|
149
|
+
options: AutomaticExclusionOptions,
|
|
150
|
+
sections: {
|
|
151
|
+
projectTrusted: boolean;
|
|
152
|
+
globalCodeIntelligence: Record<string, unknown> | null;
|
|
153
|
+
projectCodeIntelligence: Record<string, unknown> | null;
|
|
154
|
+
},
|
|
155
|
+
): ExclusionSource | null {
|
|
156
|
+
const { projectTrusted, globalCodeIntelligence, projectCodeIntelligence } = sections;
|
|
157
|
+
if (
|
|
158
|
+
projectTrusted &&
|
|
159
|
+
projectCodeIntelligence &&
|
|
160
|
+
Object.hasOwn(projectCodeIntelligence, "exclude")
|
|
161
|
+
) {
|
|
162
|
+
return { value: projectCodeIntelligence.exclude, path: getSupiConfigPath("project", cwd) };
|
|
163
|
+
}
|
|
164
|
+
if (globalCodeIntelligence && Object.hasOwn(globalCodeIntelligence, "exclude")) {
|
|
165
|
+
return {
|
|
166
|
+
value: globalCodeIntelligence.exclude,
|
|
167
|
+
path: getSupiConfigPath("global", cwd, options),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function validateExclusionSource(source: ExclusionSource | null): readonly string[] {
|
|
174
|
+
if (!source) return Object.freeze([]);
|
|
175
|
+
if (!Array.isArray(source.value) || !source.value.every((entry) => typeof entry === "string")) {
|
|
176
|
+
throw new Error(
|
|
177
|
+
`Invalid "code-intelligence.exclude" in ${source.path}: expected an array of gitignore-style strings. Automatic LSP and broad AST work did not start.`,
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
return Object.freeze([...source.value]);
|
|
181
|
+
}
|
|
182
|
+
|
|
73
183
|
/**
|
|
74
184
|
* Load and merge config for a given extension section.
|
|
75
185
|
*
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
// supi-core config domain — config loading.
|
|
2
|
-
export type {
|
|
2
|
+
export type {
|
|
3
|
+
AutomaticExclusionOptions,
|
|
4
|
+
SupiConfigLocation,
|
|
5
|
+
SupiConfigOptions,
|
|
6
|
+
} from "./config/config.ts";
|
|
3
7
|
export {
|
|
4
8
|
getSupiConfigPath,
|
|
9
|
+
loadAutomaticExclusionPatterns,
|
|
5
10
|
loadSupiConfig,
|
|
6
11
|
loadSupiConfigForScope,
|
|
7
12
|
loadSupiConfigSectionForScope,
|
|
@@ -151,6 +151,7 @@ export interface CustomField extends BaseField {
|
|
|
151
151
|
cwd: string,
|
|
152
152
|
action: SettingsAction,
|
|
153
153
|
helpers: ConfigHelpers,
|
|
154
|
+
ctx?: ExtensionContext,
|
|
154
155
|
) => void | Promise<void>;
|
|
155
156
|
}
|
|
156
157
|
|
|
@@ -404,7 +405,7 @@ async function applyConfigAction(
|
|
|
404
405
|
const helpers = createConfigHelpers(options.section, scope, cwd, options.homeDir);
|
|
405
406
|
let storedValue: unknown;
|
|
406
407
|
if (field.kind === "custom") {
|
|
407
|
-
await field.persist(scope, cwd, action, helpers);
|
|
408
|
+
await field.persist(scope, cwd, action, helpers, ctx);
|
|
408
409
|
storedValue = action.kind === "set" ? action.value : undefined;
|
|
409
410
|
} else if (action.kind === "set") {
|
|
410
411
|
storedValue = parseTypedValue(action.value, field);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-review",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Parallel inspection-only reviews of exact Git targets",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@mrclrchtr/supi-agent-runtime": "
|
|
35
|
-
"@mrclrchtr/supi-code-intelligence": "
|
|
36
|
-
"@mrclrchtr/supi-core": "
|
|
34
|
+
"@mrclrchtr/supi-agent-runtime": "8.0.0",
|
|
35
|
+
"@mrclrchtr/supi-code-intelligence": "8.0.0",
|
|
36
|
+
"@mrclrchtr/supi-core": "8.0.0"
|
|
37
37
|
},
|
|
38
38
|
"bundledDependencies": [
|
|
39
39
|
"@mrclrchtr/supi-agent-runtime",
|
package/src/review.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ExtensionAPI, getAgentDir } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { Box } from "@earendil-works/pi-tui";
|
|
3
|
+
import { registerAgentsCommand } from "@mrclrchtr/supi-agent-runtime/api";
|
|
3
4
|
import { LocalReviewAuditStore } from "./audit/local-review-audit-store.ts";
|
|
4
5
|
import { registerReviewSettings, syncReviewAgentTools } from "./config.ts";
|
|
5
6
|
import { ReviewArtifactStore } from "./session/review-artifact-store.ts";
|
|
@@ -16,9 +17,10 @@ export default function reviewExtension(pi: ExtensionAPI): void {
|
|
|
16
17
|
const auditStore = new LocalReviewAuditStore({
|
|
17
18
|
agentDir: process.env.PI_CODING_AGENT_DIR || getAgentDir(),
|
|
18
19
|
});
|
|
20
|
+
const registry = registerAgentsCommand(pi);
|
|
19
21
|
registerReviewSettings(pi);
|
|
20
22
|
registerReviewOutputTool(pi, artifactStore);
|
|
21
|
-
registerReviewRunTool(pi, artifactStore, auditStore);
|
|
23
|
+
registerReviewRunTool(pi, artifactStore, auditStore, registry);
|
|
22
24
|
registerReviewAuditTool(pi, auditStore);
|
|
23
25
|
pi.on("session_start", (_event, ctx) => syncReviewAgentTools(pi, ctx.cwd));
|
|
24
26
|
registerReviewWorkspaceCleanupCommand(pi);
|
|
@@ -39,6 +41,7 @@ export default function reviewExtension(pi: ExtensionAPI): void {
|
|
|
39
41
|
|
|
40
42
|
pi.registerCommand("supi-review", {
|
|
41
43
|
description: "Run one or more caller-defined Inspection-only review tasks",
|
|
42
|
-
handler: async (_args, ctx) =>
|
|
44
|
+
handler: async (_args, ctx) =>
|
|
45
|
+
runReviewCommand(ctx, { pi, artifactStore, auditStore, registry }),
|
|
43
46
|
});
|
|
44
47
|
}
|
|
@@ -3,11 +3,16 @@ import type { ToolDefinition } from "@earendil-works/pi-coding-agent";
|
|
|
3
3
|
import { getAgentDir } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
import {
|
|
5
5
|
type AgentRunContinuation,
|
|
6
|
+
type AgentRunDisplayMetadata,
|
|
7
|
+
type AgentRunDisplayResult,
|
|
6
8
|
type AgentRunOutcome,
|
|
7
9
|
type AgentRunProgress,
|
|
8
10
|
type AgentRunProviderAuthority,
|
|
11
|
+
type AgentRunRegistry,
|
|
9
12
|
type AgentRunSessionView,
|
|
13
|
+
type StartAgentRunOptions,
|
|
10
14
|
startAgentRun,
|
|
15
|
+
startRegisteredAgentRun,
|
|
11
16
|
} from "@mrclrchtr/supi-agent-runtime/api";
|
|
12
17
|
import type { ChildRunOutcome, ReviewProgress } from "../../types.ts";
|
|
13
18
|
import { createIsolatedChildResources } from "./child-resources.ts";
|
|
@@ -38,6 +43,9 @@ export interface IsolatedRunConfig<T> {
|
|
|
38
43
|
headlessInspection?: boolean;
|
|
39
44
|
projectTrusted?: boolean;
|
|
40
45
|
onSessionCreated?: (session: AgentRunSessionView) => undefined | (() => void);
|
|
46
|
+
runDisplay?: AgentRunDisplayMetadata & { readonly runKey: string; readonly batchId: string };
|
|
47
|
+
registry?: AgentRunRegistry;
|
|
48
|
+
displayResult?: (outcome: ChildRunOutcome<T>) => AgentRunDisplayResult;
|
|
41
49
|
onProgress?: (progress: ReviewProgress) => void;
|
|
42
50
|
}
|
|
43
51
|
|
|
@@ -114,7 +122,7 @@ export async function runIsolatedChild<T>(
|
|
|
114
122
|
projectTrusted: config.projectTrusted,
|
|
115
123
|
},
|
|
116
124
|
);
|
|
117
|
-
const
|
|
125
|
+
const runOptions: StartAgentRunOptions<T> = {
|
|
118
126
|
inputs: {
|
|
119
127
|
cwd: config.cwd,
|
|
120
128
|
model: config.model,
|
|
@@ -138,11 +146,17 @@ export async function runIsolatedChild<T>(
|
|
|
138
146
|
? undefined
|
|
139
147
|
: config.holder.value,
|
|
140
148
|
...(config.continuation ? { continuation: config.continuation } : {}),
|
|
141
|
-
observer:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
149
|
+
observer: config.onSessionCreated,
|
|
150
|
+
};
|
|
151
|
+
const registeredRun = config.runDisplay
|
|
152
|
+
? startRegisteredAgentRun<T>({
|
|
153
|
+
...runOptions,
|
|
154
|
+
registry: config.registry,
|
|
155
|
+
registration: { metadata: config.runDisplay },
|
|
156
|
+
transcriptSystemPrompt: config.protocolPrompt,
|
|
157
|
+
})
|
|
158
|
+
: undefined;
|
|
159
|
+
const run = registeredRun ?? startAgentRun<T>(runOptions);
|
|
146
160
|
const unsubscribe = config.onProgress
|
|
147
161
|
? run.subscribe((progress) => {
|
|
148
162
|
if (
|
|
@@ -155,7 +169,15 @@ export async function runIsolatedChild<T>(
|
|
|
155
169
|
})
|
|
156
170
|
: undefined;
|
|
157
171
|
try {
|
|
158
|
-
|
|
172
|
+
const outcome = mapOutcome(await run.result);
|
|
173
|
+
if (registeredRun) {
|
|
174
|
+
config.registry?.setDisplayResult(
|
|
175
|
+
registeredRun.runKey,
|
|
176
|
+
config.displayResult?.(outcome) ??
|
|
177
|
+
(outcome.kind === "failed" ? { failureCode: outcome.failureCode } : {}),
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
return outcome;
|
|
159
181
|
} finally {
|
|
160
182
|
unsubscribe?.();
|
|
161
183
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
type AgentRunRegistry,
|
|
4
|
+
createAgentRunProviderAuthority,
|
|
5
|
+
} from "@mrclrchtr/supi-agent-runtime/api";
|
|
3
6
|
import { StatusSpinner } from "@mrclrchtr/supi-core/status-spinner";
|
|
4
7
|
import type { LocalReviewAuditStore } from "../../audit/local-review-audit-store.ts";
|
|
5
8
|
import { loadReviewConfig } from "../../config.ts";
|
|
@@ -78,6 +81,7 @@ function initialReviewProgress(input: ReturnType<typeof parseRunReviewToolInput>
|
|
|
78
81
|
export function makeRunReviewExecute(
|
|
79
82
|
artifactStore: ReviewArtifactStore,
|
|
80
83
|
localAuditStore?: LocalReviewAuditStore,
|
|
84
|
+
registry?: AgentRunRegistry,
|
|
81
85
|
): NonNullable<Parameters<ExtensionAPI["registerTool"]>[0]["execute"]> {
|
|
82
86
|
// biome-ignore lint/complexity/useMaxParams: Pi ToolDefinition execute signature
|
|
83
87
|
return async (_id, params, signal, onUpdate, ctx) => {
|
|
@@ -115,6 +119,7 @@ export function makeRunReviewExecute(
|
|
|
115
119
|
bootstrapCommand: config.bootstrapCommand,
|
|
116
120
|
projectTrusted: ctx.isProjectTrusted(),
|
|
117
121
|
...(auditStore ? { auditStore } : {}),
|
|
122
|
+
...(registry ? { registry } : {}),
|
|
118
123
|
signal,
|
|
119
124
|
onUpdate: wrappedUpdate,
|
|
120
125
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
1
2
|
import {
|
|
2
3
|
type AgentRunProviderAuthority,
|
|
4
|
+
type AgentRunRegistry,
|
|
3
5
|
createUnobservedAgentRunDiagnostics,
|
|
4
6
|
} from "@mrclrchtr/supi-agent-runtime/api";
|
|
5
7
|
import { normalizeReviewInput } from "../../review-input.ts";
|
|
@@ -126,11 +128,13 @@ export async function executeReviewTasks(
|
|
|
126
128
|
providerAuthority?: AgentRunProviderAuthority,
|
|
127
129
|
recoveryModel?: ReviewModelSelection,
|
|
128
130
|
recoveryModelId?: string,
|
|
131
|
+
registry?: AgentRunRegistry,
|
|
129
132
|
): Promise<ReviewTaskResult[]> {
|
|
130
133
|
const review = normalizeReviewInput(reviewInput);
|
|
131
134
|
let completedCount = 0;
|
|
132
135
|
const totalCount = review.tasks.length;
|
|
133
136
|
const effectiveThinkingLevel = clampReviewThinkingLevel(model.model, reviewerThinkingLevel);
|
|
137
|
+
const runGroupId = randomUUID();
|
|
134
138
|
// Partial tool output is replaced repeatedly; retain the review context and task state for expanded views.
|
|
135
139
|
const presentation = {
|
|
136
140
|
targetTitle: snapshot.title,
|
|
@@ -191,11 +195,13 @@ export async function executeReviewTasks(
|
|
|
191
195
|
requestedThinkingLevel: reviewerThinkingLevel,
|
|
192
196
|
...(recoveryModel ? { recoveryModel } : {}),
|
|
193
197
|
...(recoveryModelId ? { recoveryModelId } : {}),
|
|
198
|
+
...(registry ? { registry } : {}),
|
|
194
199
|
providerAuthority,
|
|
195
200
|
projectTrusted,
|
|
196
201
|
...(audit ? { audit } : {}),
|
|
197
202
|
...(dependencyBootstrapConfigured ? { dependencyBootstrapConfigured } : {}),
|
|
198
203
|
signal,
|
|
204
|
+
runGroupId,
|
|
199
205
|
onProgress: (progress) => {
|
|
200
206
|
taskStates[task.id] = { status: "running", progress };
|
|
201
207
|
emitUpdate(onUpdate, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import type { AgentRunRegistry } from "@mrclrchtr/supi-agent-runtime/api";
|
|
2
3
|
import type { LocalReviewAuditStore } from "../../audit/local-review-audit-store.ts";
|
|
3
4
|
import type { ReviewArtifactStore } from "../../session/review-artifact-store.ts";
|
|
4
5
|
import { makeRunReviewExecute } from "./execute.ts";
|
|
@@ -11,6 +12,7 @@ export function registerReviewRunTool(
|
|
|
11
12
|
pi: ExtensionAPI,
|
|
12
13
|
artifactStore: ReviewArtifactStore,
|
|
13
14
|
localAuditStore?: LocalReviewAuditStore,
|
|
15
|
+
registry?: AgentRunRegistry,
|
|
14
16
|
): void {
|
|
15
17
|
pi.registerTool({
|
|
16
18
|
...reviewRunSpec,
|
|
@@ -19,6 +21,6 @@ export function registerReviewRunTool(
|
|
|
19
21
|
promptGuidelines: [...promptGuidelines],
|
|
20
22
|
renderCall: renderRunCall,
|
|
21
23
|
renderResult: renderRunResult,
|
|
22
|
-
execute: makeRunReviewExecute(artifactStore, localAuditStore),
|
|
24
|
+
execute: makeRunReviewExecute(artifactStore, localAuditStore, registry),
|
|
23
25
|
});
|
|
24
26
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
1
2
|
import {
|
|
3
|
+
type AgentRunDisplayMetadata,
|
|
2
4
|
type AgentRunSessionView,
|
|
3
5
|
createEarlyCancellationDiagnostics,
|
|
4
6
|
} from "@mrclrchtr/supi-agent-runtime/api";
|
|
@@ -16,8 +18,30 @@ import type {
|
|
|
16
18
|
import { runIsolatedChild } from "./child-session.ts";
|
|
17
19
|
import { createReviewRecoveryDeclineTool, createReviewSubmissionTool } from "./child-tools.ts";
|
|
18
20
|
import { ReviewRecoveryPolicy } from "./recovery.ts";
|
|
21
|
+
import { normalizeReviewSubmission } from "./submission.ts";
|
|
19
22
|
import { buildReviewerSystemPrompt } from "./system-prompt.ts";
|
|
20
23
|
|
|
24
|
+
function reviewerRunDisplay(
|
|
25
|
+
invocation: ReviewerInvocation,
|
|
26
|
+
thinkingLevel: AgentRunDisplayMetadata["thinkingLevel"],
|
|
27
|
+
tools: readonly string[],
|
|
28
|
+
): AgentRunDisplayMetadata & { readonly runKey: string; readonly batchId: string } {
|
|
29
|
+
return {
|
|
30
|
+
runKey: randomUUID(),
|
|
31
|
+
batchId: invocation.runGroupId ?? randomUUID(),
|
|
32
|
+
taskId: invocation.task.id,
|
|
33
|
+
kind: "Reviewer",
|
|
34
|
+
label: `${invocation.task.mode} review`,
|
|
35
|
+
cwd: invocation.cwd,
|
|
36
|
+
modelId: invocation.model.canonicalId,
|
|
37
|
+
thinkingLevel,
|
|
38
|
+
tools,
|
|
39
|
+
taskDescription: `Inspection-only Review Task in ${invocation.task.mode} mode.`,
|
|
40
|
+
display: { target: invocation.snapshot.title },
|
|
41
|
+
startedAt: Date.now(),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
21
45
|
function auditOutcome(result: ReviewerRunResult): {
|
|
22
46
|
kind: string;
|
|
23
47
|
failureCode?: string;
|
|
@@ -89,8 +113,24 @@ export async function runReviewer(invocation: ReviewerInvocation): Promise<Revie
|
|
|
89
113
|
...(invocation.recoveryModel
|
|
90
114
|
? { authorizedContinuationModels: [invocation.recoveryModel.model] }
|
|
91
115
|
: {}),
|
|
116
|
+
...(invocation.registry ? { registry: invocation.registry } : {}),
|
|
92
117
|
headlessInspection: true,
|
|
93
118
|
projectTrusted: invocation.projectTrusted ?? false,
|
|
119
|
+
runDisplay: reviewerRunDisplay(invocation, effectiveThinkingLevel, originalTools),
|
|
120
|
+
displayResult: (result) => {
|
|
121
|
+
if (result.kind === "failed") return { failureCode: result.failureCode };
|
|
122
|
+
if (result.kind !== "success") return {};
|
|
123
|
+
const submission = normalizeReviewSubmission(result.value);
|
|
124
|
+
return {
|
|
125
|
+
finalText: submission.summary,
|
|
126
|
+
display: {
|
|
127
|
+
target: invocation.snapshot.title,
|
|
128
|
+
verdict: submission.verdict,
|
|
129
|
+
findingCount: submission.findingCounts.total,
|
|
130
|
+
blockingFindingCount: submission.findingCounts.blocking,
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
},
|
|
94
134
|
onSessionCreated: (created) => {
|
|
95
135
|
session = created;
|
|
96
136
|
if (invocation.audit) {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// biome-ignore lint/style/noExcessiveLinesPerFile: Review Target and Workspace lifecycle remain in one workflow module.
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
AgentRunProviderAuthority,
|
|
4
|
+
AgentRunRegistry,
|
|
5
|
+
} from "@mrclrchtr/supi-agent-runtime/api";
|
|
3
6
|
import {
|
|
4
7
|
combineAgentRunUsage,
|
|
5
8
|
createEarlyCancellationDiagnostics,
|
|
@@ -75,6 +78,8 @@ export interface RunReviewInput {
|
|
|
75
78
|
projectTrusted?: boolean;
|
|
76
79
|
/** Present when local reviewer replay is enabled. */
|
|
77
80
|
auditStore?: LocalReviewAuditStore;
|
|
81
|
+
/** Registry for the Pi runtime that owns the Review request. */
|
|
82
|
+
registry?: AgentRunRegistry;
|
|
78
83
|
signal?: AbortSignal;
|
|
79
84
|
onUpdate?: OnUpdate;
|
|
80
85
|
}
|
|
@@ -395,6 +400,7 @@ export async function runReview(input: RunReviewInput) {
|
|
|
395
400
|
input.providerAuthority,
|
|
396
401
|
input.recoveryModel,
|
|
397
402
|
input.recoveryModelId,
|
|
403
|
+
input.registry,
|
|
398
404
|
);
|
|
399
405
|
} finally {
|
|
400
406
|
cleanupWarning = await workspace.cleanup();
|