@loucompanion/forge-bridge 0.1.1-dev.9acab970e5d1 → 0.1.1-dev.ac656b52f9c6

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.
@@ -2,7 +2,8 @@ import type { RunOnceDispatchPacket, RunnerDispatchArtifact } from "./session.ty
2
2
  import type { WorktreeHandle } from "../worktree/worktree.types.js";
3
3
  export type DevelopCompletionPhase = "implementation" | "self_review" | "validation";
4
4
  export type DebugCompletionPhase = "debug_repro" | "debug_root_cause" | "debug_fix" | "debug_regression";
5
- export type CompletionPhase = DevelopCompletionPhase | "qa" | DebugCompletionPhase;
5
+ export type ArchitectCompletionPhase = "architect";
6
+ export type CompletionPhase = DevelopCompletionPhase | "qa" | DebugCompletionPhase | ArchitectCompletionPhase;
6
7
  export type QaCompletionGate = "qa_plan" | "qa_regression" | "qa_api" | "qa_manual_web" | "qa_bug_repro" | "qa_findings" | "qa_verdict";
7
8
  export interface CompletionToolRuntime {
8
9
  readonly serverName: string;
@@ -28,6 +29,7 @@ export interface CompletionToolServerConfig {
28
29
  readonly developCycle?: boolean;
29
30
  readonly qaCycle?: boolean;
30
31
  readonly debugCycle?: boolean;
32
+ readonly architectCycle?: boolean;
31
33
  }
32
34
  export interface CompletionToolCallResult {
33
35
  readonly content: readonly {
@@ -65,6 +67,7 @@ export declare function normalizeCompletionPhase(value: string | null | undefine
65
67
  export declare function usesDevelopCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
66
68
  export declare function usesQaCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
67
69
  export declare function usesDebugCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
70
+ export declare function usesArchitectCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
68
71
  export declare function completionToolNamesForPhase(phase: CompletionPhase): readonly string[];
69
72
  export declare function completionToolNamesForQaGate(gate: QaCompletionGate): readonly string[];
70
73
  export declare function completionToolNamesForDebugGate(gate: DebugCompletionPhase): readonly string[];
@@ -72,8 +75,9 @@ export declare function expectedCompletionToolName(phase: CompletionPhase): stri
72
75
  export declare function expectedQaCompletionToolName(gate: QaCompletionGate): string;
73
76
  export declare function expectedDebugCompletionToolName(gate: DebugCompletionPhase): string;
74
77
  export declare function artifactRootFor(worktreePath: string, workItemId: string): string;
75
- export declare function completionArtifactJsonPath(worktreePath: string, workItemId: string, phase: CompletionPhase): string;
76
- export declare function completionArtifactReportPath(worktreePath: string, workItemId: string, phase: CompletionPhase): string;
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;
77
81
  export declare function prepareCompletionToolRuntime(options: CompletionToolRuntimeOptions): Promise<CompletionToolRuntime>;
78
82
  export declare function buildCompletionToolServerArgs(config: CompletionToolServerConfig): readonly string[];
79
83
  export declare function codexMcpConfigArgs(runtime: CompletionToolRuntime): readonly string[];
@@ -99,7 +103,7 @@ export declare class CompletionToolServerSession {
99
103
  private advanceAfterDebugGate;
100
104
  }
101
105
  export declare function writeCompletionArtifact(config: CompletionToolServerConfig, toolName: string, input: unknown): Promise<CompletionArtifactReference>;
102
- 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>;
103
107
  export declare function runCompletionMcpServer(config: CompletionToolServerConfig): Promise<void>;
104
108
  export declare function parseCompletionMcpArgs(argv: readonly string[]): {
105
109
  readonly ok: true;