@loucompanion/forge-bridge 0.1.1-dev.2ac58b6f94ce → 0.1.1-dev.2d1a116ca78d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bridge/bridge.service.d.ts +1 -0
- package/dist/bridge/bridge.service.js +146 -17
- package/dist/bridge/bridge.types.d.ts +4 -2
- package/dist/cli/cli.service.js +225 -10
- package/dist/cli/local-config.d.ts +1 -0
- package/dist/cli/local-config.js +18 -3
- package/dist/config.js +1 -1
- package/dist/session/phase-completion.d.ts +19 -5
- package/dist/session/phase-completion.js +1092 -26
- package/dist/session/provider-cli/provider-cli.base.d.ts +3 -1
- package/dist/session/provider-cli/provider-cli.service.d.ts +16 -1
- package/dist/session/provider-cli/provider-cli.service.js +1108 -216
- package/dist/session/provider-cli/provider-cli.types.d.ts +5 -0
- package/dist/session/session.service.js +43 -4
- package/dist/session/session.types.d.ts +77 -0
- package/dist/session/session.types.js +143 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worktree/artifact-injector.d.ts +1 -0
- package/dist/worktree/artifact-injector.js +117 -1
- package/dist/worktree/worktree.service.d.ts +1 -0
- package/dist/worktree/worktree.service.js +132 -6
- package/dist/worktree/worktree.types.d.ts +8 -1
- package/package.json +8 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { RunOnceDispatchPacket, RunnerDispatchArtifact } from "./session.types.js";
|
|
2
2
|
import type { WorktreeHandle } from "../worktree/worktree.types.js";
|
|
3
|
-
export type
|
|
3
|
+
export type DevelopCompletionPhase = "implementation" | "self_review" | "validation";
|
|
4
|
+
export type DebugCompletionPhase = "debug_repro" | "debug_root_cause" | "debug_fix" | "debug_regression";
|
|
5
|
+
export type ArchitectCompletionPhase = "architect";
|
|
6
|
+
export type CompletionPhase = DevelopCompletionPhase | "qa" | DebugCompletionPhase | ArchitectCompletionPhase;
|
|
4
7
|
export type QaCompletionGate = "qa_plan" | "qa_regression" | "qa_api" | "qa_manual_web" | "qa_bug_repro" | "qa_findings" | "qa_verdict";
|
|
5
8
|
export interface CompletionToolRuntime {
|
|
6
9
|
readonly serverName: string;
|
|
@@ -25,6 +28,8 @@ export interface CompletionToolServerConfig {
|
|
|
25
28
|
readonly redactionSecrets?: readonly string[];
|
|
26
29
|
readonly developCycle?: boolean;
|
|
27
30
|
readonly qaCycle?: boolean;
|
|
31
|
+
readonly debugCycle?: boolean;
|
|
32
|
+
readonly architectCycle?: boolean;
|
|
28
33
|
}
|
|
29
34
|
export interface CompletionToolCallResult {
|
|
30
35
|
readonly content: readonly {
|
|
@@ -39,7 +44,7 @@ export interface CompletionToolCallResult {
|
|
|
39
44
|
readonly allowed: boolean;
|
|
40
45
|
readonly reason: string;
|
|
41
46
|
};
|
|
42
|
-
readonly nextPhase: CompletionPhase | "dev_test_ready" | "sign_off_ready";
|
|
47
|
+
readonly nextPhase: CompletionPhase | "dev_test_ready" | "qa_ready" | "sign_off_ready";
|
|
43
48
|
readonly nextInstruction: string;
|
|
44
49
|
};
|
|
45
50
|
}
|
|
@@ -55,18 +60,24 @@ export interface CompletionArtifactReference {
|
|
|
55
60
|
readonly status: string;
|
|
56
61
|
readonly producedBy: string;
|
|
57
62
|
}
|
|
63
|
+
export declare const debugCompletionPhaseOrder: readonly DebugCompletionPhase[];
|
|
58
64
|
export declare const qaCompletionGateOrder: readonly QaCompletionGate[];
|
|
59
65
|
export declare function completionPhaseFromDispatch(dispatch: RunOnceDispatchPacket): CompletionPhase;
|
|
60
66
|
export declare function normalizeCompletionPhase(value: string | null | undefined): CompletionPhase;
|
|
61
67
|
export declare function usesDevelopCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
|
|
62
68
|
export declare function usesQaCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
|
|
69
|
+
export declare function usesDebugCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
|
|
70
|
+
export declare function usesArchitectCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
|
|
63
71
|
export declare function completionToolNamesForPhase(phase: CompletionPhase): readonly string[];
|
|
64
72
|
export declare function completionToolNamesForQaGate(gate: QaCompletionGate): readonly string[];
|
|
73
|
+
export declare function completionToolNamesForDebugGate(gate: DebugCompletionPhase): readonly string[];
|
|
65
74
|
export declare function expectedCompletionToolName(phase: CompletionPhase): string;
|
|
66
75
|
export declare function expectedQaCompletionToolName(gate: QaCompletionGate): string;
|
|
76
|
+
export declare function expectedDebugCompletionToolName(gate: DebugCompletionPhase): string;
|
|
67
77
|
export declare function artifactRootFor(worktreePath: string, workItemId: string): string;
|
|
68
|
-
export declare function
|
|
69
|
-
export declare function
|
|
78
|
+
export declare function artifactRootForOwner(worktreePath: string, ownerType: string, ownerId: string): string;
|
|
79
|
+
export declare function completionArtifactJsonPath(worktreePath: string, workItemId: string, phase: CompletionPhase, ownerType?: string | null, ownerId?: string | null): string;
|
|
80
|
+
export declare function completionArtifactReportPath(worktreePath: string, workItemId: string, phase: CompletionPhase, ownerType?: string | null, ownerId?: string | null): string;
|
|
70
81
|
export declare function prepareCompletionToolRuntime(options: CompletionToolRuntimeOptions): Promise<CompletionToolRuntime>;
|
|
71
82
|
export declare function buildCompletionToolServerArgs(config: CompletionToolServerConfig): readonly string[];
|
|
72
83
|
export declare function codexMcpConfigArgs(runtime: CompletionToolRuntime): readonly string[];
|
|
@@ -74,6 +85,7 @@ export declare function cursorMcpServerConfig(runtime: CompletionToolRuntime): u
|
|
|
74
85
|
export declare function completionPromptForPhase(phase: CompletionPhase): string;
|
|
75
86
|
export declare function completionPromptForDevelopCycle(phase: CompletionPhase): string;
|
|
76
87
|
export declare function completionPromptForQaCycle(currentGate?: QaCompletionGate): string;
|
|
88
|
+
export declare function completionPromptForDebugCycle(currentGate?: DebugCompletionPhase): string;
|
|
77
89
|
export declare function completionToolNamesForServer(config: CompletionToolServerConfig): readonly string[];
|
|
78
90
|
export declare class CompletionToolServerSession {
|
|
79
91
|
private readonly config;
|
|
@@ -84,12 +96,14 @@ export declare class CompletionToolServerSession {
|
|
|
84
96
|
get instructions(): string;
|
|
85
97
|
toolDefinitions(): readonly unknown[];
|
|
86
98
|
callTool(toolName: string, input: unknown): Promise<CompletionToolCallResult>;
|
|
99
|
+
private callDebugGateTool;
|
|
87
100
|
private callQaGateTool;
|
|
88
101
|
private advanceAfterPass;
|
|
89
102
|
private advanceAfterQaGate;
|
|
103
|
+
private advanceAfterDebugGate;
|
|
90
104
|
}
|
|
91
105
|
export declare function writeCompletionArtifact(config: CompletionToolServerConfig, toolName: string, input: unknown): Promise<CompletionArtifactReference>;
|
|
92
|
-
export declare function readCompletionArtifact(worktreePath: string, workItemId: string, phase: CompletionPhase): Promise<RunnerDispatchArtifact | null>;
|
|
106
|
+
export declare function readCompletionArtifact(worktreePath: string, workItemId: string, phase: CompletionPhase, ownerType?: string | null, ownerId?: string | null): Promise<RunnerDispatchArtifact | null>;
|
|
93
107
|
export declare function runCompletionMcpServer(config: CompletionToolServerConfig): Promise<void>;
|
|
94
108
|
export declare function parseCompletionMcpArgs(argv: readonly string[]): {
|
|
95
109
|
readonly ok: true;
|