@loucompanion/forge-bridge 0.1.1-dev.615630fb4618 → 0.1.1-dev.65ea6889412c

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.
@@ -1,6 +1,6 @@
1
1
  import type { RunOnceDispatchPacket, RunnerDispatchArtifact } from "./session.types.js";
2
2
  import type { WorktreeHandle } from "../worktree/worktree.types.js";
3
- export type CompletionPhase = "implementation" | "self_review" | "validation";
3
+ export type CompletionPhase = "implementation" | "self_review" | "validation" | "qa";
4
4
  export interface CompletionToolRuntime {
5
5
  readonly serverName: string;
6
6
  readonly command: string;
@@ -20,6 +20,23 @@ export interface CompletionToolServerConfig {
20
20
  readonly phase: CompletionPhase;
21
21
  readonly producedBy?: string;
22
22
  readonly redactionSecrets?: readonly string[];
23
+ readonly developCycle?: boolean;
24
+ }
25
+ export interface CompletionToolCallResult {
26
+ readonly content: readonly {
27
+ readonly type: "text";
28
+ readonly text: string;
29
+ }[];
30
+ readonly structuredContent: CompletionArtifactReference & {
31
+ readonly gate: {
32
+ readonly phase: CompletionPhase;
33
+ readonly status: string;
34
+ readonly allowed: boolean;
35
+ readonly reason: string;
36
+ };
37
+ readonly nextPhase: CompletionPhase | "dev_test_ready" | "sign_off_ready";
38
+ readonly nextInstruction: string;
39
+ };
23
40
  }
24
41
  export interface CompletionArtifactReference {
25
42
  readonly phase: CompletionPhase;
@@ -33,6 +50,7 @@ export interface CompletionArtifactReference {
33
50
  }
34
51
  export declare function completionPhaseFromDispatch(dispatch: RunOnceDispatchPacket): CompletionPhase;
35
52
  export declare function normalizeCompletionPhase(value: string | null | undefined): CompletionPhase;
53
+ export declare function usesDevelopCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
36
54
  export declare function completionToolNamesForPhase(phase: CompletionPhase): readonly string[];
37
55
  export declare function expectedCompletionToolName(phase: CompletionPhase): string;
38
56
  export declare function artifactRootFor(worktreePath: string, workItemId: string): string;
@@ -43,6 +61,18 @@ export declare function buildCompletionToolServerArgs(config: CompletionToolServ
43
61
  export declare function codexMcpConfigArgs(runtime: CompletionToolRuntime): readonly string[];
44
62
  export declare function cursorMcpServerConfig(runtime: CompletionToolRuntime): unknown;
45
63
  export declare function completionPromptForPhase(phase: CompletionPhase): string;
64
+ export declare function completionPromptForDevelopCycle(phase: CompletionPhase): string;
65
+ export declare function completionToolNamesForServer(config: CompletionToolServerConfig): readonly string[];
66
+ export declare class CompletionToolServerSession {
67
+ private readonly config;
68
+ private currentPhase;
69
+ private completed;
70
+ constructor(config: CompletionToolServerConfig);
71
+ get instructions(): string;
72
+ toolDefinitions(): readonly unknown[];
73
+ callTool(toolName: string, input: unknown): Promise<CompletionToolCallResult>;
74
+ private advanceAfterPass;
75
+ }
46
76
  export declare function writeCompletionArtifact(config: CompletionToolServerConfig, toolName: string, input: unknown): Promise<CompletionArtifactReference>;
47
77
  export declare function readCompletionArtifact(worktreePath: string, workItemId: string, phase: CompletionPhase): Promise<RunnerDispatchArtifact | null>;
48
78
  export declare function runCompletionMcpServer(config: CompletionToolServerConfig): Promise<void>;