@juicesharp/rpiv-pi 2.13.8 → 2.13.9
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/extensions/rpiv-core/agents-inject.ts +3 -3
- package/extensions/rpiv-core/agents-manifest.ts +3 -3
- package/extensions/rpiv-core/agents-sync.ts +9 -9
- package/extensions/rpiv-core/agents.ts +6 -6
- package/extensions/rpiv-core/built-in-workflows.ts +6 -6
- package/extensions/rpiv-core/built-ins/citations.ts +2 -2
- package/extensions/rpiv-core/built-ins/design.ts +2 -2
- package/extensions/rpiv-core/built-ins/elaboration.ts +3 -3
- package/extensions/rpiv-core/built-ins/gate-passes.ts +2 -2
- package/extensions/rpiv-core/built-ins/gate-rosters.ts +2 -2
- package/extensions/rpiv-core/built-ins/gates.ts +3 -3
- package/extensions/rpiv-core/built-ins/goal-baseline.ts +1 -1
- package/extensions/rpiv-core/built-ins/grade-panel.ts +4 -4
- package/extensions/rpiv-core/built-ins/index.ts +16 -16
- package/extensions/rpiv-core/built-ins/plan-cite.ts +4 -4
- package/extensions/rpiv-core/built-ins/plan-phases.ts +2 -2
- package/extensions/rpiv-core/built-ins/priors.ts +2 -2
- package/extensions/rpiv-core/built-ins/reconcile.ts +2 -2
- package/extensions/rpiv-core/built-ins/scope-checks.ts +3 -3
- package/extensions/rpiv-core/built-ins/slice-checks.ts +5 -5
- package/extensions/rpiv-core/built-ins/slices.ts +2 -2
- package/extensions/rpiv-core/built-ins/verdict-collector.ts +1 -1
- package/extensions/rpiv-core/built-ins/verdict-core.ts +1 -1
- package/extensions/rpiv-core/built-ins/verdict-outcome.ts +2 -2
- package/extensions/rpiv-core/git-context.ts +1 -1
- package/extensions/rpiv-core/guidance.ts +1 -1
- package/extensions/rpiv-core/index.ts +14 -14
- package/extensions/rpiv-core/lane-console.ts +3 -3
- package/extensions/rpiv-core/lane-dock-editor.ts +1 -1
- package/extensions/rpiv-core/lane-dock.ts +2 -2
- package/extensions/rpiv-core/lane-list.ts +4 -4
- package/extensions/rpiv-core/lane-progress.ts +5 -5
- package/extensions/rpiv-core/lane-relay-ui.ts +1 -1
- package/extensions/rpiv-core/lane-streaming.ts +1 -1
- package/extensions/rpiv-core/lane-switcher.ts +6 -6
- package/extensions/rpiv-core/lane-transcript-disk.ts +2 -2
- package/extensions/rpiv-core/lane-transcript-view.ts +3 -3
- package/extensions/rpiv-core/loaded-siblings.ts +2 -2
- package/extensions/rpiv-core/meta/checks.ts +2 -2
- package/extensions/rpiv-core/meta/presets.ts +3 -3
- package/extensions/rpiv-core/meta/unit-graph.ts +4 -4
- package/extensions/rpiv-core/meta/wip-guard.ts +3 -3
- package/extensions/rpiv-core/models-config-sources.ts +1 -1
- package/extensions/rpiv-core/models-config-validate.ts +2 -2
- package/extensions/rpiv-core/outcome-derivation.ts +2 -2
- package/extensions/rpiv-core/package-checks.ts +2 -2
- package/extensions/rpiv-core/pi-installer.ts +1 -1
- package/extensions/rpiv-core/pipeline-pointer.ts +1 -1
- package/extensions/rpiv-core/prune-legacy-siblings.ts +2 -2
- package/extensions/rpiv-core/register-built-in-workflows.ts +2 -2
- package/extensions/rpiv-core/rpiv-models/command.ts +4 -4
- package/extensions/rpiv-core/rpiv-models/index.ts +3 -3
- package/extensions/rpiv-core/rpiv-models/items.ts +2 -2
- package/extensions/rpiv-core/rpiv-models/overrides.ts +3 -3
- package/extensions/rpiv-core/run-lane-registry.ts +5 -5
- package/extensions/rpiv-core/run-lane-types.ts +2 -2
- package/extensions/rpiv-core/sdk-workflow-host.ts +7 -7
- package/extensions/rpiv-core/session-capture.ts +3 -3
- package/extensions/rpiv-core/session-hooks.ts +9 -9
- package/extensions/rpiv-core/setup-command.ts +6 -6
- package/extensions/rpiv-core/skill-bracket.ts +2 -2
- package/extensions/rpiv-core/skill-contracts-source.ts +3 -3
- package/extensions/rpiv-core/subagent-usage.ts +1 -1
- package/extensions/rpiv-core/update-agents-command.ts +3 -3
- package/extensions/rpiv-core/workflow-execution-host.ts +7 -7
- package/extensions/rpiv-core/workflow-question-warp-bridge.ts +3 -3
- package/extensions/rpiv-core/workflows/build.ts +3 -3
- package/extensions/rpiv-core/workflows/polish.ts +2 -2
- package/extensions/rpiv-core/workflows/shared.ts +2 -2
- package/extensions/rpiv-core/workflows/ship.ts +2 -2
- package/extensions/rpiv-core/workflows/vet.ts +2 -2
- package/package.json +2 -2
|
@@ -20,10 +20,10 @@ import type {
|
|
|
20
20
|
} from "@earendil-works/pi-coding-agent";
|
|
21
21
|
import type { EditorTheme, KeyId, TUI } from "@earendil-works/pi-tui";
|
|
22
22
|
import type { WorkflowHostContext } from "@juicesharp/rpiv-workflow";
|
|
23
|
-
import { showLaneConsole } from "./lane-console.
|
|
24
|
-
import { LaneDock } from "./lane-dock.
|
|
25
|
-
import { LaneDockEditor } from "./lane-dock-editor.
|
|
26
|
-
import { isLaneRelayUiContext } from "./lane-relay-ui.
|
|
23
|
+
import { showLaneConsole } from "./lane-console.ts";
|
|
24
|
+
import { LaneDock } from "./lane-dock.ts";
|
|
25
|
+
import { LaneDockEditor } from "./lane-dock-editor.ts";
|
|
26
|
+
import { isLaneRelayUiContext } from "./lane-relay-ui.ts";
|
|
27
27
|
import {
|
|
28
28
|
getFocusedRun,
|
|
29
29
|
laneCount,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
SINGLE_UNIT_KEY,
|
|
32
32
|
setFocusedRun,
|
|
33
33
|
subscribeLanes,
|
|
34
|
-
} from "./run-lane-registry.
|
|
35
|
-
import { isModuleNotFound } from "./utils.
|
|
34
|
+
} from "./run-lane-registry.ts";
|
|
35
|
+
import { isModuleNotFound } from "./utils.ts";
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Root hotkey that opens the lane switcher, registered via Pi's `registerShortcut`
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import { existsSync, readdirSync, statSync } from "node:fs";
|
|
19
19
|
import { join } from "node:path";
|
|
20
20
|
import { SessionManager } from "@earendil-works/pi-coding-agent";
|
|
21
|
-
import { getCachedToolDef } from "./lane-tool-defs.
|
|
22
|
-
import type { RenderSource, ToolDefArg, ViewerEntry } from "./lane-transcript.
|
|
21
|
+
import { getCachedToolDef } from "./lane-tool-defs.ts";
|
|
22
|
+
import type { RenderSource, ToolDefArg, ViewerEntry } from "./lane-transcript.ts";
|
|
23
23
|
|
|
24
24
|
/** A branch loaded from disk plus the render source the transcript pipeline needs. */
|
|
25
25
|
export interface DiskBranch {
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
type ToolDefArg,
|
|
20
20
|
type ViewerEntry,
|
|
21
21
|
type ViewerMessage,
|
|
22
|
-
} from "./lane-transcript.
|
|
23
|
-
import { type DiskBranch, loadBranchFromDisk } from "./lane-transcript-disk.
|
|
22
|
+
} from "./lane-transcript.ts";
|
|
23
|
+
import { type DiskBranch, loadBranchFromDisk } from "./lane-transcript-disk.ts";
|
|
24
24
|
import {
|
|
25
25
|
getLane,
|
|
26
26
|
getUnit,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
SINGLE_UNIT_KEY,
|
|
30
30
|
subscribeLanes,
|
|
31
31
|
type UnitLane,
|
|
32
|
-
} from "./run-lane-registry.
|
|
32
|
+
} from "./run-lane-registry.ts";
|
|
33
33
|
|
|
34
34
|
/** True when the lane currently carries real fan-out unit sub-rows (indices ≥ 0 —
|
|
35
35
|
* the reserved scalar slot is negative, so it never counts as a generation). */
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Reads a structural slice of `ExtensionAPI`, so it imports no Pi value.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { LoadedSiblingSources } from "./package-checks.
|
|
8
|
-
import { SIBLINGS } from "./siblings.
|
|
7
|
+
import type { LoadedSiblingSources } from "./package-checks.ts";
|
|
8
|
+
import { SIBLINGS } from "./siblings.ts";
|
|
9
9
|
|
|
10
10
|
/** The structural slice of `ExtensionAPI` the snapshot reads (Pi ≥ 0.80.1 carries `sourceInfo` on both). */
|
|
11
11
|
export interface LoadedSourcesReader {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import { execSync } from "node:child_process";
|
|
8
8
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
9
|
import { isAbsolute, join } from "node:path";
|
|
10
|
-
import { FILE_LINE_CITATION_RE, planCitationCheck } from "../built-ins/index.
|
|
11
|
-
import type { Check, CheckContext, Failure } from "./unit-graph.
|
|
10
|
+
import { FILE_LINE_CITATION_RE, planCitationCheck } from "../built-ins/index.ts";
|
|
11
|
+
import type { Check, CheckContext, Failure } from "./unit-graph.ts";
|
|
12
12
|
|
|
13
13
|
const abs = (ctx: CheckContext, p: string) => (isAbsolute(p) ? p : join(ctx.cwd, p));
|
|
14
14
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* scoped returns vs build's sliced, panel-gated stage graph — not the prompts.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { IMPLEMENT_DAG_FANOUT } from "../built-ins/index.
|
|
13
|
+
import { IMPLEMENT_DAG_FANOUT } from "../built-ins/index.ts";
|
|
14
14
|
import {
|
|
15
15
|
acceptanceCommands,
|
|
16
16
|
acceptanceDisposed,
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
minCitations,
|
|
20
20
|
planCitations,
|
|
21
21
|
treeChanged,
|
|
22
|
-
} from "./checks.
|
|
23
|
-
import { defineUnitGraph, type UnitSpec } from "./unit-graph.
|
|
22
|
+
} from "./checks.ts";
|
|
23
|
+
import { defineUnitGraph, type UnitSpec } from "./unit-graph.ts";
|
|
24
24
|
|
|
25
25
|
const research: UnitSpec = {
|
|
26
26
|
skill: "research",
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
setRouteNote,
|
|
49
49
|
type Workflow,
|
|
50
50
|
} from "@juicesharp/rpiv-workflow/registration";
|
|
51
|
-
import { rpivBucketOutcome } from "../artifact-collector.
|
|
52
|
-
import { COMMIT_BASELINE_PROMPT, latestFsArtifact } from "../built-ins/index.
|
|
53
|
-
import { lessonsBlock, recordLessons } from "./lessons.
|
|
54
|
-
import { captureGoalKeepingWip, wipIntact, wipNotice } from "./wip-guard.
|
|
51
|
+
import { rpivBucketOutcome } from "../artifact-collector.ts";
|
|
52
|
+
import { COMMIT_BASELINE_PROMPT, latestFsArtifact } from "../built-ins/index.ts";
|
|
53
|
+
import { lessonsBlock, recordLessons } from "./lessons.ts";
|
|
54
|
+
import { captureGoalKeepingWip, wipIntact, wipNotice } from "./wip-guard.ts";
|
|
55
55
|
|
|
56
56
|
// ---------------------------------------------------------------------------
|
|
57
57
|
// Public vocabulary
|
|
@@ -24,9 +24,9 @@ import { execFileSync } from "node:child_process";
|
|
|
24
24
|
import { cpSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
25
25
|
import { dirname, join } from "node:path";
|
|
26
26
|
import { fs, type Output, type RunView, type ScriptContext } from "@juicesharp/rpiv-workflow/registration";
|
|
27
|
-
import { gitDirtyEntries, readGoalBaseline } from "../built-ins/goal-baseline.
|
|
28
|
-
import { captureGoal } from "../built-ins/index.
|
|
29
|
-
import type { Check } from "./unit-graph.
|
|
27
|
+
import { gitDirtyEntries, readGoalBaseline } from "../built-ins/goal-baseline.ts";
|
|
28
|
+
import { captureGoal } from "../built-ins/index.ts";
|
|
29
|
+
import type { Check } from "./unit-graph.ts";
|
|
30
30
|
|
|
31
31
|
interface WipRecord {
|
|
32
32
|
/** Paths dirty (tracked-modified or untracked) when the run started. */
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import { readdirSync } from "node:fs";
|
|
12
12
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
13
|
-
import { BUNDLED_AGENTS_DIR } from "./paths.
|
|
13
|
+
import { BUNDLED_AGENTS_DIR } from "./paths.ts";
|
|
14
14
|
|
|
15
15
|
/** Bundled-agent names (filenames sans `.md`), sorted. `[]` if the dir is unreadable. */
|
|
16
16
|
export function bundledAgentNames(): string[] {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
18
|
-
import { findUnknownModelKeys, type KnownModelKeys, loadModelsConfig } from "./models-config.
|
|
19
|
-
import { bundledAgentNames, loadWorkflowMap, skillCommandNames } from "./models-config-sources.
|
|
18
|
+
import { findUnknownModelKeys, type KnownModelKeys, loadModelsConfig } from "./models-config.ts";
|
|
19
|
+
import { bundledAgentNames, loadWorkflowMap, skillCommandNames } from "./models-config-sources.ts";
|
|
20
20
|
|
|
21
21
|
/** Warn once per process — sub-session spawns re-fire session_start, but the
|
|
22
22
|
* config is process-cached and the typo set is identical, so repeat warnings
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import type { OutcomeDeriverFn } from "@juicesharp/rpiv-workflow/registration";
|
|
16
|
-
import { rpivBucketOutcome } from "./artifact-collector.
|
|
17
|
-
import { isModuleNotFound } from "./utils.
|
|
16
|
+
import { rpivBucketOutcome } from "./artifact-collector.ts";
|
|
17
|
+
import { isModuleNotFound } from "./utils.ts";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Canonical mapping from a skill's `produces.meta.artifactKind` to the bucket
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* settings-only rule.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { SIBLINGS, type SiblingPlugin } from "./siblings.
|
|
16
|
-
import { readPiAgentSettings } from "./utils.
|
|
15
|
+
import { SIBLINGS, type SiblingPlugin } from "./siblings.ts";
|
|
16
|
+
import { readPiAgentSettings } from "./utils.ts";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* What is loaded in this process, read once per pass by `readLoadedSiblingSources`
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
19
|
-
import { FLAG_DEBUG, MSG_TYPE_PIPELINE_INDEX } from "./constants.
|
|
19
|
+
import { FLAG_DEBUG, MSG_TYPE_PIPELINE_INDEX } from "./constants.ts";
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Keep this in sync with the `disable-model-invocation: true` skill set under
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
import { writeFileSync } from "node:fs";
|
|
25
|
-
import { LEGACY_SIBLINGS } from "./siblings.
|
|
26
|
-
import { getPiAgentSettingsPath, readPiAgentSettings } from "./utils.
|
|
25
|
+
import { LEGACY_SIBLINGS } from "./siblings.ts";
|
|
26
|
+
import { getPiAgentSettingsPath, readPiAgentSettings } from "./utils.ts";
|
|
27
27
|
|
|
28
28
|
export interface PruneLegacySiblingsResult {
|
|
29
29
|
/** settings.json `packages[]` entries that were removed (empty = no-op). */
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* other siblings already follow (siblings.ts header).
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import { isModuleNotFound } from "./utils.
|
|
21
|
+
import { isModuleNotFound } from "./utils.ts";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Register the four built-in workflows (build / polish / vet / ship)
|
|
@@ -34,7 +34,7 @@ export async function registerBuiltInWorkflows(): Promise<void> {
|
|
|
34
34
|
// ERR_MODULE_NOT_FOUND → no-op (no `/wf` without it).
|
|
35
35
|
const { registerBuiltInsProvider, registerBuiltIns } = await import("@juicesharp/rpiv-workflow/startup");
|
|
36
36
|
registerBuiltInsProvider(async () => {
|
|
37
|
-
const { builtInWorkflows } = await import("./built-in-workflows.
|
|
37
|
+
const { builtInWorkflows } = await import("./built-in-workflows.ts");
|
|
38
38
|
registerBuiltIns(builtInWorkflows);
|
|
39
39
|
});
|
|
40
40
|
} catch (err) {
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
invalidateModelsConfigCache,
|
|
22
22
|
type ModelsConfigSchema,
|
|
23
23
|
type ModelThinkingLevelValue,
|
|
24
|
-
} from "../models-config.
|
|
25
|
-
import { showFilterablePicker } from "../models-picker.
|
|
24
|
+
} from "../models-config.ts";
|
|
25
|
+
import { showFilterablePicker } from "../models-picker.ts";
|
|
26
26
|
import {
|
|
27
27
|
buildEffortItems,
|
|
28
28
|
buildModelItems,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
RESET_LABEL,
|
|
32
32
|
RESET_VALUE,
|
|
33
33
|
scopeItems,
|
|
34
|
-
} from "./items.
|
|
34
|
+
} from "./items.ts";
|
|
35
35
|
import {
|
|
36
36
|
applyOverride,
|
|
37
37
|
floatChecked,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
SCOPE_RESET_ALL,
|
|
48
48
|
SCOPES,
|
|
49
49
|
type ScopeDescriptor,
|
|
50
|
-
} from "./overrides.
|
|
50
|
+
} from "./overrides.ts";
|
|
51
51
|
|
|
52
52
|
export function registerRpivModelsCommand(pi: ExtensionAPI): void {
|
|
53
53
|
pi.registerCommand("rpiv-models", {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* command — /rpiv-models command registration
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
export { registerRpivModelsCommand } from "./command.
|
|
10
|
+
export { registerRpivModelsCommand } from "./command.ts";
|
|
11
11
|
export {
|
|
12
12
|
buildEffortItems,
|
|
13
13
|
buildModelItems,
|
|
@@ -16,7 +16,7 @@ export {
|
|
|
16
16
|
RESET_LABEL,
|
|
17
17
|
RESET_VALUE,
|
|
18
18
|
scopeItems,
|
|
19
|
-
} from "./items.
|
|
19
|
+
} from "./items.ts";
|
|
20
20
|
export {
|
|
21
21
|
applyOverride,
|
|
22
22
|
CHECK,
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
SCOPES,
|
|
40
40
|
type ScopeDescriptor,
|
|
41
41
|
withCheck,
|
|
42
|
-
} from "./overrides.
|
|
42
|
+
} from "./overrides.ts";
|
|
@@ -10,7 +10,7 @@ import type { Api, Model } from "@earendil-works/pi-ai";
|
|
|
10
10
|
import { getSupportedThinkingLevels } from "@earendil-works/pi-ai";
|
|
11
11
|
import type { SelectItem } from "@earendil-works/pi-tui";
|
|
12
12
|
import { loadJsonConfigWithLegacyFallback, modelKey } from "@juicesharp/rpiv-config";
|
|
13
|
-
import { type ModelsConfigSchema, THINKING_LEVEL_VALUES, type ThinkingLevelValue } from "../models-config.
|
|
13
|
+
import { type ModelsConfigSchema, THINKING_LEVEL_VALUES, type ThinkingLevelValue } from "../models-config.ts";
|
|
14
14
|
import {
|
|
15
15
|
CHECK,
|
|
16
16
|
SCOPE_AGENTS,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
SCOPE_STAGES,
|
|
22
22
|
SCOPES,
|
|
23
23
|
withCheck,
|
|
24
|
-
} from "./overrides.
|
|
24
|
+
} from "./overrides.ts";
|
|
25
25
|
|
|
26
26
|
// ---------------------------------------------------------------------------
|
|
27
27
|
// Sentinel values
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
18
18
|
import type { SelectItem } from "@earendil-works/pi-tui";
|
|
19
|
-
import type { ModelsConfigSchema, ModelThinkingLevelValue } from "../models-config.
|
|
20
|
-
import { bundledAgentNames, loadWorkflowMap, skillCommandNames } from "../models-config-sources.
|
|
21
|
-
import { showFilterablePicker } from "../models-picker.
|
|
19
|
+
import type { ModelsConfigSchema, ModelThinkingLevelValue } from "../models-config.ts";
|
|
20
|
+
import { bundledAgentNames, loadWorkflowMap, skillCommandNames } from "../models-config-sources.ts";
|
|
21
|
+
import { showFilterablePicker } from "../models-picker.ts";
|
|
22
22
|
|
|
23
23
|
// ---------------------------------------------------------------------------
|
|
24
24
|
// Scope constants
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import type { RunRecap } from "@juicesharp/rpiv-workflow";
|
|
18
18
|
|
|
19
|
-
import { addLaneUsage, type LaneUsage, toLaneUsage } from "./lane-usage.
|
|
20
|
-
import { emitQuestionAsked, emitQuestionResolved } from "./question-lifecycle.
|
|
19
|
+
import { addLaneUsage, type LaneUsage, toLaneUsage } from "./lane-usage.ts";
|
|
20
|
+
import { emitQuestionAsked, emitQuestionResolved } from "./question-lifecycle.ts";
|
|
21
21
|
import type {
|
|
22
22
|
DisplayRow,
|
|
23
23
|
LaneEntry,
|
|
@@ -26,7 +26,7 @@ import type {
|
|
|
26
26
|
LaneStatus,
|
|
27
27
|
PendingInput,
|
|
28
28
|
UnitLane,
|
|
29
|
-
} from "./run-lane-types.
|
|
29
|
+
} from "./run-lane-types.ts";
|
|
30
30
|
|
|
31
31
|
// ---------------------------------------------------------------------------
|
|
32
32
|
// Lane data model — the type surface lives in ./run-lane-types.ts (this
|
|
@@ -46,8 +46,8 @@ export type {
|
|
|
46
46
|
LaneStatus,
|
|
47
47
|
PendingInput,
|
|
48
48
|
UnitLane,
|
|
49
|
-
} from "./run-lane-types.
|
|
50
|
-
export { SINGLE_UNIT_KEY } from "./run-lane-types.
|
|
49
|
+
} from "./run-lane-types.ts";
|
|
50
|
+
export { SINGLE_UNIT_KEY } from "./run-lane-types.ts";
|
|
51
51
|
|
|
52
52
|
type Listener = () => void;
|
|
53
53
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* requests, unit sub-lanes, stage progress, lane entries, dock display rows)
|
|
5
5
|
* with zero runtime surface except the SINGLE_UNIT_KEY sentinel const. The
|
|
6
6
|
* registry owns all state and behavior and re-exports everything declared
|
|
7
|
-
* here — consumers keep importing from "./run-lane-registry.
|
|
7
|
+
* here — consumers keep importing from "./run-lane-registry.ts", never from
|
|
8
8
|
* this module directly.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ import type { ExtensionUIContext } from "@earendil-works/pi-coding-agent";
|
|
|
12
12
|
|
|
13
13
|
import type { RunRecap } from "@juicesharp/rpiv-workflow";
|
|
14
14
|
|
|
15
|
-
import type { LaneUsage } from "./lane-usage.
|
|
15
|
+
import type { LaneUsage } from "./lane-usage.ts";
|
|
16
16
|
|
|
17
17
|
/** Lane status taxonomy — mirrors rpiv-workflow's RunTermination.status (types.ts:145-149). */
|
|
18
18
|
export type LaneStatus = "running" | "completed" | "failed" | "aborted" | "cancelled";
|
|
@@ -54,19 +54,19 @@ import {
|
|
|
54
54
|
} from "@earendil-works/pi-coding-agent";
|
|
55
55
|
import { parseModelKey } from "@juicesharp/rpiv-config";
|
|
56
56
|
import type { ModelSelection, WorkflowHostContext, WorkflowSessionContext } from "@juicesharp/rpiv-workflow";
|
|
57
|
-
import { armBashWatchdog, type BashWatchdog } from "./bash-timeout.
|
|
58
|
-
import { createLaneRelayUiContext } from "./lane-relay-ui.
|
|
59
|
-
import { createLaneSessionView } from "./lane-streaming.
|
|
60
|
-
import { harvestToolDefs } from "./lane-tool-defs.
|
|
61
|
-
import { childModelServices } from "./pi-compat.
|
|
57
|
+
import { armBashWatchdog, type BashWatchdog } from "./bash-timeout.ts";
|
|
58
|
+
import { createLaneRelayUiContext } from "./lane-relay-ui.ts";
|
|
59
|
+
import { createLaneSessionView } from "./lane-streaming.ts";
|
|
60
|
+
import { harvestToolDefs } from "./lane-tool-defs.ts";
|
|
61
|
+
import { childModelServices } from "./pi-compat.ts";
|
|
62
62
|
import {
|
|
63
63
|
captureFinalSnapshot,
|
|
64
64
|
getLane,
|
|
65
65
|
SINGLE_UNIT_KEY,
|
|
66
66
|
setCurrentSession,
|
|
67
67
|
setLaneSessionFile,
|
|
68
|
-
} from "./run-lane-registry.
|
|
69
|
-
import { recordSubagentCompletion } from "./subagent-usage.
|
|
68
|
+
} from "./run-lane-registry.ts";
|
|
69
|
+
import { recordSubagentCompletion } from "./subagent-usage.ts";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Launcher-only "ambient observer" extensions: they register session-lifecycle
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
|
|
20
20
|
import type { ExtensionAPI, ExtensionUIContext, ModelRegistry } from "@earendil-works/pi-coding-agent";
|
|
21
21
|
import { parseModelKey } from "@juicesharp/rpiv-config";
|
|
22
|
-
import { isLaneRelayUiContext } from "./lane-relay-ui.
|
|
23
|
-
import type { ModelThinkingLevelValue } from "./models-config.
|
|
24
|
-
import { isStaleCtxError } from "./utils.
|
|
22
|
+
import { isLaneRelayUiContext } from "./lane-relay-ui.ts";
|
|
23
|
+
import type { ModelThinkingLevelValue } from "./models-config.ts";
|
|
24
|
+
import { isStaleCtxError } from "./utils.ts";
|
|
25
25
|
|
|
26
26
|
/** First parameter type of pi.setModel() — avoids importing Pi's Model<Api> generic. */
|
|
27
27
|
export type CapturedModel = Parameters<ExtensionAPI["setModel"]>[0];
|
|
@@ -18,21 +18,21 @@ import {
|
|
|
18
18
|
type SyncResult,
|
|
19
19
|
summarizeCleanupSkips,
|
|
20
20
|
syncBundledAgents,
|
|
21
|
-
} from "./agents.
|
|
22
|
-
import { renderBanner } from "./banner.
|
|
23
|
-
import { FLAG_DEBUG, MSG_TYPE_GIT_CONTEXT, MSG_TYPE_POST_COMPACT_CONTEXT } from "./constants.
|
|
21
|
+
} from "./agents.ts";
|
|
22
|
+
import { renderBanner } from "./banner.ts";
|
|
23
|
+
import { FLAG_DEBUG, MSG_TYPE_GIT_CONTEXT, MSG_TYPE_POST_COMPACT_CONTEXT } from "./constants.ts";
|
|
24
24
|
import {
|
|
25
25
|
clearGitContextCache,
|
|
26
26
|
isGitMutatingCommand,
|
|
27
27
|
refreshGitContextForInjection,
|
|
28
28
|
resetInjectedMarker,
|
|
29
29
|
takeGitContextIfChanged,
|
|
30
|
-
} from "./git-context.
|
|
31
|
-
import { clearInjectionState, handleToolCallGuidance, injectRootGuidance, takeRootGuidance } from "./guidance.
|
|
32
|
-
import { readLoadedSiblingSources } from "./loaded-siblings.
|
|
33
|
-
import { findMissingSiblings, type LoadedSiblingSources } from "./package-checks.
|
|
34
|
-
import { injectPipelinePointer, PIPELINE_POINTER } from "./pipeline-pointer.
|
|
35
|
-
import { isStaleCtxError } from "./utils.
|
|
30
|
+
} from "./git-context.ts";
|
|
31
|
+
import { clearInjectionState, handleToolCallGuidance, injectRootGuidance, takeRootGuidance } from "./guidance.ts";
|
|
32
|
+
import { readLoadedSiblingSources } from "./loaded-siblings.ts";
|
|
33
|
+
import { findMissingSiblings, type LoadedSiblingSources } from "./package-checks.ts";
|
|
34
|
+
import { injectPipelinePointer, PIPELINE_POINTER } from "./pipeline-pointer.ts";
|
|
35
|
+
import { isStaleCtxError } from "./utils.ts";
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Module-local latch for the startup-maintenance block (per-cwd agent cleanup,
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
14
|
-
import { readLoadedSiblingSources } from "./loaded-siblings.
|
|
15
|
-
import { findMissingSiblings } from "./package-checks.
|
|
16
|
-
import { spawnPiInstall } from "./pi-installer.
|
|
17
|
-
import { findLegacySiblings, pruneLegacySiblings } from "./prune-legacy-siblings.
|
|
18
|
-
import type { SiblingPlugin } from "./siblings.
|
|
19
|
-
import { getPiAgentSettingsPath, toErrorMessage } from "./utils.
|
|
14
|
+
import { readLoadedSiblingSources } from "./loaded-siblings.ts";
|
|
15
|
+
import { findMissingSiblings } from "./package-checks.ts";
|
|
16
|
+
import { spawnPiInstall } from "./pi-installer.ts";
|
|
17
|
+
import { findLegacySiblings, pruneLegacySiblings } from "./prune-legacy-siblings.ts";
|
|
18
|
+
import type { SiblingPlugin } from "./siblings.ts";
|
|
19
|
+
import { getPiAgentSettingsPath, toErrorMessage } from "./utils.ts";
|
|
20
20
|
|
|
21
21
|
const INSTALL_TIMEOUT_MS = 120_000;
|
|
22
22
|
const STDERR_SNIPPET_CHARS = 300;
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
import { type ExtensionAPI, type InputEvent, parseSkillBlock } from "@earendil-works/pi-coding-agent";
|
|
25
|
-
import { loadModelsConfig, type ModelThinkingLevelValue } from "./models-config.
|
|
25
|
+
import { loadModelsConfig, type ModelThinkingLevelValue } from "./models-config.ts";
|
|
26
26
|
import {
|
|
27
27
|
applyEffectiveModel,
|
|
28
28
|
applyOrSkipIfStale,
|
|
29
29
|
type BaselineSnapshot,
|
|
30
30
|
getCapturedModel,
|
|
31
31
|
restoreBaseline,
|
|
32
|
-
} from "./session-capture.
|
|
32
|
+
} from "./session-capture.ts";
|
|
33
33
|
|
|
34
34
|
const SKILL_PREFIX = "/skill:";
|
|
35
35
|
|
|
@@ -20,8 +20,8 @@ import type {
|
|
|
20
20
|
SchemaCompatResult,
|
|
21
21
|
SkillContract,
|
|
22
22
|
} from "@juicesharp/rpiv-workflow/registration";
|
|
23
|
-
import { BUNDLED_SKILLS_DIR } from "./paths.
|
|
24
|
-
import { isModuleNotFound } from "./utils.
|
|
23
|
+
import { BUNDLED_SKILLS_DIR } from "./paths.ts";
|
|
24
|
+
import { isModuleNotFound } from "./utils.ts";
|
|
25
25
|
|
|
26
26
|
const JSON_SCHEMA_ROOT_KEYWORDS = new Set([
|
|
27
27
|
"type",
|
|
@@ -253,7 +253,7 @@ export async function registerSkillContractsSource(): Promise<void> {
|
|
|
253
253
|
// edge off the entry path: it only resolves after the `/startup` import above
|
|
254
254
|
// already succeeded, and a missing/non-resolvable sibling degrades to the
|
|
255
255
|
// isModuleNotFound no-op below instead of crashing the extension.
|
|
256
|
-
const { registerOutcomeDerivation } = await import("./outcome-derivation.
|
|
256
|
+
const { registerOutcomeDerivation } = await import("./outcome-derivation.ts");
|
|
257
257
|
await registerOutcomeDerivation();
|
|
258
258
|
} catch (err) {
|
|
259
259
|
if (isModuleNotFound(err)) return; // sibling absent — /rpiv-setup prompts the user
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* into `test/setup.ts` beforeEach.
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
|
-
import { addLaneUsage, type LaneUsage } from "./lane-usage.
|
|
40
|
+
import { addLaneUsage, type LaneUsage } from "./lane-usage.ts";
|
|
41
41
|
|
|
42
42
|
/** A minimal structural view of a `subagents:completed` payload, used only for
|
|
43
43
|
* defensive narrowing. Typed loose so the module imports no pi-subagents type. */
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
8
|
-
import { cleanupPerCwdAgents, type SyncResult, summarizeCleanupSkips, syncBundledAgents } from "./agents.
|
|
9
|
-
import { readLoadedSiblingSources } from "./loaded-siblings.
|
|
10
|
-
import { invalidateModelsConfigCache } from "./models-config.
|
|
8
|
+
import { cleanupPerCwdAgents, type SyncResult, summarizeCleanupSkips, syncBundledAgents } from "./agents.ts";
|
|
9
|
+
import { readLoadedSiblingSources } from "./loaded-siblings.ts";
|
|
10
|
+
import { invalidateModelsConfigCache } from "./models-config.ts";
|
|
11
11
|
|
|
12
12
|
const MSG_UP_TO_DATE = "All agents already up-to-date.";
|
|
13
13
|
const MSG_NO_CHANGES = "No changes needed.";
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
import type { ExtensionAPI, ExtensionUIContext } from "@earendil-works/pi-coding-agent";
|
|
21
21
|
import { SessionManager } from "@earendil-works/pi-coding-agent";
|
|
22
22
|
import type { BranchEntry, ModelSelection, WorkflowHostContext } from "@juicesharp/rpiv-workflow";
|
|
23
|
-
import { isLaneRelayUiContext } from "./lane-relay-ui.
|
|
24
|
-
import { loadModelsConfig, resolveMaxConcurrency, resolveStageModel } from "./models-config.
|
|
25
|
-
import { getFocusedRun, getLane, recordRun, retireRun, setLaneAbort } from "./run-lane-registry.
|
|
26
|
-
import { SdkWorkflowHost } from "./sdk-workflow-host.
|
|
27
|
-
import { getCapturedModelRegistry, getCapturedUiContext } from "./session-capture.
|
|
28
|
-
import { isModuleNotFound } from "./utils.
|
|
23
|
+
import { isLaneRelayUiContext } from "./lane-relay-ui.ts";
|
|
24
|
+
import { loadModelsConfig, resolveMaxConcurrency, resolveStageModel } from "./models-config.ts";
|
|
25
|
+
import { getFocusedRun, getLane, recordRun, retireRun, setLaneAbort } from "./run-lane-registry.ts";
|
|
26
|
+
import { SdkWorkflowHost } from "./sdk-workflow-host.ts";
|
|
27
|
+
import { getCapturedModelRegistry, getCapturedUiContext } from "./session-capture.ts";
|
|
28
|
+
import { isModuleNotFound } from "./utils.ts";
|
|
29
29
|
|
|
30
30
|
/** Build the detached executor + abort tap from the live observer ctx + run identity. */
|
|
31
31
|
type WorkflowExecution = {
|
|
@@ -40,7 +40,7 @@ type WorkflowExecution = {
|
|
|
40
40
|
* preserve the tested public surface; the live cap is driven through
|
|
41
41
|
* `resolveMaxConcurrency(loadModelsConfig())` at the consumer below.
|
|
42
42
|
*/
|
|
43
|
-
export { DEFAULT_MAX_CONCURRENCY } from "./models-config.
|
|
43
|
+
export { DEFAULT_MAX_CONCURRENCY } from "./models-config.ts";
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Map the config layer's `ResolvedModelConfig` ({ model?, thinking? }) to the
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
import type { ExtensionAPI, ExtensionUIContext } from "@earendil-works/pi-coding-agent";
|
|
39
|
-
import { isLaneRelayUiContext } from "./lane-relay-ui.
|
|
40
|
-
import { type QuestionLifecycleEvent, subscribeQuestionLifecycle } from "./question-lifecycle.
|
|
41
|
-
import { isModuleNotFound } from "./utils.
|
|
39
|
+
import { isLaneRelayUiContext } from "./lane-relay-ui.ts";
|
|
40
|
+
import { type QuestionLifecycleEvent, subscribeQuestionLifecycle } from "./question-lifecycle.ts";
|
|
41
|
+
import { isModuleNotFound } from "./utils.ts";
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Process-global guard holding the active lifecycle unsubscribe fn + a ref to the
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
produces,
|
|
41
41
|
setRouteNote,
|
|
42
42
|
} from "@juicesharp/rpiv-workflow/registration";
|
|
43
|
-
import { rpivBucketOutcome } from "../artifact-collector.
|
|
43
|
+
import { rpivBucketOutcome } from "../artifact-collector.ts";
|
|
44
44
|
import {
|
|
45
45
|
CODE_CONFIRM_FANOUT,
|
|
46
46
|
CODE_DIMENSION_FANOUT,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
unitFailedDimensions,
|
|
86
86
|
VALIDATE_GOAL_PROMPT,
|
|
87
87
|
verdictOutcome,
|
|
88
|
-
} from "../built-ins/index.
|
|
88
|
+
} from "../built-ins/index.ts";
|
|
89
89
|
import {
|
|
90
90
|
RECONCILE_FIX_OUTCOME,
|
|
91
91
|
RECONCILE_FIX_PROMPT,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
unitFailedNote,
|
|
95
95
|
validateFixGate,
|
|
96
96
|
validateGate,
|
|
97
|
-
} from "./shared.
|
|
97
|
+
} from "./shared.ts";
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* `goal` displaces `research` as build's start stage, and ONLY the start stage
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
type PromptFn,
|
|
15
15
|
produces,
|
|
16
16
|
} from "@juicesharp/rpiv-workflow/registration";
|
|
17
|
-
import { IMPLEMENT_PLANS_FANOUT, latestPlans, REVIEW_PHASE_ITERATE } from "../built-ins/index.
|
|
18
|
-
import { codeReviewGate } from "./shared.
|
|
17
|
+
import { IMPLEMENT_PLANS_FANOUT, latestPlans, REVIEW_PHASE_ITERATE } from "../built-ins/index.ts";
|
|
18
|
+
import { codeReviewGate } from "./shared.ts";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Hand the single validate session EVERY plan from the latest blueprint pass
|
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
type PromptFn,
|
|
27
27
|
setRouteNote,
|
|
28
28
|
} from "@juicesharp/rpiv-workflow/registration";
|
|
29
|
-
import { rpivBucketOutcome } from "../artifact-collector.
|
|
30
|
-
import { latestFsArtifact, verdictRiskRulings } from "../built-ins/index.
|
|
29
|
+
import { rpivBucketOutcome } from "../artifact-collector.ts";
|
|
30
|
+
import { latestFsArtifact, verdictRiskRulings } from "../built-ins/index.ts";
|
|
31
31
|
|
|
32
32
|
// The code-review stage's output schema is no longer declared here — every
|
|
33
33
|
// code-review stage sources it from the skill's contract `produces.data`
|