@loucompanion/forge-bridge 0.1.3-dev.f66395c3ac21 → 0.1.3-dev.fbe15023cdfe
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 +78 -0
- package/dist/bridge/bridge.base.d.ts +6 -1
- package/dist/bridge/bridge.service.d.ts +60 -3
- package/dist/bridge/bridge.service.js +970 -24
- package/dist/bridge/bridge.types.d.ts +172 -1
- package/dist/cleanup/cleanup.service.d.ts +13 -2
- package/dist/cleanup/cleanup.service.js +435 -3
- package/dist/cleanup/cleanup.types.d.ts +10 -0
- package/dist/cleanup/index.d.ts +1 -1
- package/dist/cleanup/index.js +1 -1
- package/dist/cleanup/internals.d.ts +2 -2
- package/dist/cleanup/internals.js +1 -1
- package/dist/cli/cli.help.d.ts +2 -0
- package/dist/cli/cli.help.js +217 -0
- package/dist/cli/cli.service.d.ts +42 -2
- package/dist/cli/cli.service.js +356 -205
- package/dist/cli/local-config.d.ts +6 -0
- package/dist/cli/local-config.js +47 -3
- package/dist/runtime/attempt-node-runtime-launcher.d.ts +17 -0
- package/dist/runtime/attempt-node-runtime-launcher.js +101 -0
- package/dist/runtime/attempt-process-supervisor-registry.d.ts +20 -0
- package/dist/runtime/attempt-process-supervisor-registry.js +64 -0
- package/dist/runtime/attempt-process-supervisor.d.ts +86 -0
- package/dist/runtime/attempt-process-supervisor.js +350 -0
- package/dist/runtime/generated-output-reset.d.ts +10 -0
- package/dist/runtime/generated-output-reset.js +103 -0
- package/dist/runtime/host-listener-inspector.d.ts +44 -0
- package/dist/runtime/host-listener-inspector.js +324 -0
- package/dist/runtime/host-port-broker.d.ts +76 -0
- package/dist/runtime/host-port-broker.js +333 -0
- package/dist/runtime/host-runtime-contract.d.ts +47 -0
- package/dist/runtime/host-runtime-contract.js +700 -0
- package/dist/runtime/host-runtime-lease.d.ts +133 -0
- package/dist/runtime/host-runtime-lease.js +1460 -0
- package/dist/runtime/host-runtime-promotion.d.ts +23 -0
- package/dist/runtime/host-runtime-promotion.js +159 -0
- package/dist/runtime/node-host-runtime-adapter.d.ts +51 -0
- package/dist/runtime/node-host-runtime-adapter.js +268 -0
- package/dist/runtime/playwright-host-runtime-adapter.d.ts +20 -0
- package/dist/runtime/playwright-host-runtime-adapter.js +220 -0
- package/dist/runtime/runtime-isolation-lease.d.ts +67 -0
- package/dist/runtime/runtime-isolation-lease.js +158 -0
- package/dist/sandbox/command-runner.d.ts +4 -0
- package/dist/sandbox/command-runner.js +47 -0
- package/dist/sandbox/contract.d.ts +5 -0
- package/dist/sandbox/contract.js +276 -0
- package/dist/sandbox/event-budget.d.ts +11 -0
- package/dist/sandbox/event-budget.js +27 -0
- package/dist/sandbox/image-policy.d.ts +35 -0
- package/dist/sandbox/image-policy.js +247 -0
- package/dist/sandbox/index.d.ts +5 -0
- package/dist/sandbox/index.js +5 -0
- package/dist/sandbox/lease-watchdog.d.ts +18 -0
- package/dist/sandbox/lease-watchdog.js +67 -0
- package/dist/sandbox/preflight.d.ts +54 -0
- package/dist/sandbox/preflight.js +335 -0
- package/dist/sandbox/process.d.ts +20 -0
- package/dist/sandbox/process.js +209 -0
- package/dist/sandbox/provider-auth/codex.d.ts +26 -0
- package/dist/sandbox/provider-auth/codex.js +212 -0
- package/dist/sandbox/repository-lock.d.ts +5 -0
- package/dist/sandbox/repository-lock.js +119 -0
- package/dist/sandbox/runtime.d.ts +297 -0
- package/dist/sandbox/runtime.js +2338 -0
- package/dist/sandbox/sandbox.types.d.ts +86 -0
- package/dist/sandbox/sandbox.types.js +1 -0
- package/dist/sandbox/smoke.d.ts +76 -0
- package/dist/sandbox/smoke.js +380 -0
- package/dist/sandbox/worker-supervisor.d.ts +13 -0
- package/dist/sandbox/worker-supervisor.js +36 -0
- package/dist/sandbox/worker.d.ts +1 -0
- package/dist/sandbox/worker.js +225 -0
- package/dist/sandbox/workspace.service.d.ts +13 -0
- package/dist/sandbox/workspace.service.js +72 -0
- package/dist/session/managed-attempt-tools.d.ts +12 -0
- package/dist/session/managed-attempt-tools.js +561 -0
- package/dist/session/phase-completion.artifacts.d.ts +10 -0
- package/dist/session/phase-completion.artifacts.js +627 -0
- package/dist/session/phase-completion.d.ts +43 -42
- package/dist/session/phase-completion.helpers.d.ts +112 -0
- package/dist/session/phase-completion.helpers.js +684 -0
- package/dist/session/phase-completion.js +114 -3007
- package/dist/session/phase-completion.prompts.d.ts +14 -0
- package/dist/session/phase-completion.prompts.js +234 -0
- package/dist/session/phase-completion.runtime.d.ts +47 -0
- package/dist/session/phase-completion.runtime.js +731 -0
- package/dist/session/phase-completion.schemas.d.ts +3 -0
- package/dist/session/phase-completion.schemas.js +812 -0
- package/dist/session/phase-completion.validation.d.ts +37 -0
- package/dist/session/phase-completion.validation.js +828 -0
- package/dist/session/provider-cli/ci-repair-readiness.d.ts +8 -0
- package/dist/session/provider-cli/ci-repair-readiness.js +90 -0
- package/dist/session/provider-cli/provider-cli.artifacts.d.ts +93 -0
- package/dist/session/provider-cli/provider-cli.artifacts.js +778 -0
- package/dist/session/provider-cli/provider-cli.base.d.ts +1 -0
- package/dist/session/provider-cli/provider-cli.deterministic-payloads.d.ts +12 -0
- package/dist/session/provider-cli/provider-cli.deterministic-payloads.js +279 -0
- package/dist/session/provider-cli/provider-cli.deterministic.d.ts +14 -0
- package/dist/session/provider-cli/provider-cli.deterministic.js +375 -0
- package/dist/session/provider-cli/provider-cli.process.d.ts +48 -0
- package/dist/session/provider-cli/provider-cli.process.js +474 -0
- package/dist/session/provider-cli/provider-cli.prompts.d.ts +47 -0
- package/dist/session/provider-cli/provider-cli.prompts.js +595 -0
- package/dist/session/provider-cli/provider-cli.qa-sidecars.d.ts +11 -0
- package/dist/session/provider-cli/provider-cli.qa-sidecars.js +66 -0
- package/dist/session/provider-cli/provider-cli.runtime.d.ts +9 -0
- package/dist/session/provider-cli/provider-cli.runtime.js +41 -0
- package/dist/session/provider-cli/provider-cli.service.d.ts +22 -53
- package/dist/session/provider-cli/provider-cli.service.js +587 -2530
- package/dist/session/provider-cli/provider-cli.types.d.ts +6 -0
- package/dist/session/provider-cli/provider-output-state.d.ts +22 -0
- package/dist/session/provider-cli/provider-output-state.js +473 -0
- package/dist/session/session-redaction.d.ts +3 -0
- package/dist/session/session-redaction.js +23 -0
- package/dist/session/session.base.d.ts +6 -1
- package/dist/session/session.service.d.ts +8 -2
- package/dist/session/session.service.js +463 -58
- package/dist/session/session.types.d.ts +177 -1
- package/dist/session/session.types.js +352 -3
- package/dist/shared/path/path.js +3 -1
- package/dist/shared/process/host-process-recovery.d.ts +12 -0
- package/dist/shared/process/host-process-recovery.js +78 -0
- package/dist/shared/process/host-process-supervisor.d.ts +57 -0
- package/dist/shared/process/host-process-supervisor.js +282 -0
- package/dist/shared/process/process.d.ts +1 -0
- package/dist/shared/process/process.js +1 -0
- package/dist/shared/process/windows-launch.d.ts +8 -0
- package/dist/shared/process/windows-launch.js +41 -0
- package/dist/shared/provider-capabilities.d.ts +1 -0
- package/dist/shared/provider-capabilities.js +3 -0
- package/dist/shared/redaction/redaction.js +10 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worktree/artifact-injector.d.ts +3 -2
- package/dist/worktree/artifact-injector.js +82 -10
- package/dist/worktree/dependency-warmer.d.ts +21 -1
- package/dist/worktree/dependency-warmer.js +138 -5
- package/dist/worktree/index.d.ts +1 -0
- package/dist/worktree/index.js +1 -0
- package/dist/worktree/prior-phase-artifact-hydrator.d.ts +2 -0
- package/dist/worktree/prior-phase-artifact-hydrator.js +136 -0
- package/dist/worktree/worktree-paths.d.ts +4 -0
- package/dist/worktree/worktree-paths.js +30 -0
- package/dist/worktree/worktree.base.d.ts +3 -0
- package/dist/worktree/worktree.service.d.ts +9 -3
- package/dist/worktree/worktree.service.js +100 -52
- package/dist/worktree/worktree.types.d.ts +3 -1
- package/package.json +6 -3
- package/runtime/windows-job-supervisor.ps1 +356 -0
- package/runtime/windows-listener-owner.ps1 +33 -0
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import type { RunOnceDispatchPacket
|
|
1
|
+
import type { RunOnceDispatchPacket } from "./session.types.js";
|
|
2
2
|
import type { WorktreeHandle } from "../worktree/worktree.types.js";
|
|
3
|
+
export { isDebugCompletionPhase } from "./phase-completion.validation.js";
|
|
4
|
+
export { readCompletionArtifact, writeCompletionArtifact } from "./phase-completion.artifacts.js";
|
|
5
|
+
export * from "./phase-completion.prompts.js";
|
|
6
|
+
export * from "./phase-completion.runtime.js";
|
|
3
7
|
export type DevelopCompletionPhase = "implementation" | "self_review" | "validation";
|
|
4
8
|
export type DebugCompletionPhase = "debug_repro" | "debug_root_cause" | "debug_fix" | "debug_regression";
|
|
5
9
|
export type ArchitectCompletionPhase = "architect";
|
|
6
10
|
export type DraftCompletionPhase = "draft";
|
|
7
|
-
export type
|
|
11
|
+
export type DecomposeCompletionPhase = "decompose";
|
|
12
|
+
export type CiRepairCompletionPhase = "ci_repair";
|
|
13
|
+
export type CompletionPhase = DevelopCompletionPhase | "qa" | DebugCompletionPhase | ArchitectCompletionPhase | DraftCompletionPhase | DecomposeCompletionPhase | CiRepairCompletionPhase;
|
|
8
14
|
export type QaCompletionGate = "qa_plan" | "qa_regression" | "qa_api" | "qa_manual_web" | "qa_bug_repro" | "qa_findings" | "qa_verdict";
|
|
9
15
|
export type DraftCompletionGate = "draft_intent" | "draft_repo_context" | "draft_graph_context" | "draft_product_scope" | "draft_work_order_plan" | "draft_critic" | "draft_proposal";
|
|
16
|
+
export type DecomposeCompletionGate = "decompose_subject_intake" | "decompose_context_review" | "decompose_breakdown_strategy" | "decompose_child_items" | "decompose_dependency_graph" | "decompose_critic" | "decompose_proposal";
|
|
10
17
|
export interface CompletionToolRuntime {
|
|
11
18
|
readonly serverName: string;
|
|
12
19
|
readonly command: string;
|
|
@@ -19,6 +26,7 @@ export interface CompletionToolRuntimeOptions {
|
|
|
19
26
|
readonly dispatch: RunOnceDispatchPacket;
|
|
20
27
|
readonly worktree: WorktreeHandle;
|
|
21
28
|
readonly phase?: CompletionPhase;
|
|
29
|
+
readonly runtimeEnvironment?: Readonly<Record<string, string>>;
|
|
22
30
|
}
|
|
23
31
|
export interface CompletionToolServerConfig {
|
|
24
32
|
readonly worktreePath: string;
|
|
@@ -33,6 +41,7 @@ export interface CompletionToolServerConfig {
|
|
|
33
41
|
readonly debugCycle?: boolean;
|
|
34
42
|
readonly architectCycle?: boolean;
|
|
35
43
|
readonly draftCycle?: boolean;
|
|
44
|
+
readonly decomposeCycle?: boolean;
|
|
36
45
|
}
|
|
37
46
|
export interface CompletionToolCallResult {
|
|
38
47
|
readonly content: readonly {
|
|
@@ -44,11 +53,12 @@ export interface CompletionToolCallResult {
|
|
|
44
53
|
readonly phase: CompletionPhase;
|
|
45
54
|
readonly qaGate?: QaCompletionGate;
|
|
46
55
|
readonly draftGate?: DraftCompletionGate;
|
|
56
|
+
readonly decomposeGate?: DecomposeCompletionGate;
|
|
47
57
|
readonly status: string;
|
|
48
58
|
readonly allowed: boolean;
|
|
49
59
|
readonly reason: string;
|
|
50
60
|
};
|
|
51
|
-
readonly nextPhase: CompletionPhase | "dev_test_ready" | "qa_ready" | "sign_off_ready";
|
|
61
|
+
readonly nextPhase: CompletionPhase | "dev_test_ready" | "qa_ready" | "sign_off_ready" | "provider_checks_ready";
|
|
52
62
|
readonly nextInstruction: string;
|
|
53
63
|
};
|
|
54
64
|
}
|
|
@@ -64,9 +74,37 @@ export interface CompletionArtifactReference {
|
|
|
64
74
|
readonly status: string;
|
|
65
75
|
readonly producedBy: string;
|
|
66
76
|
}
|
|
77
|
+
export interface CompletionArtifactFiles {
|
|
78
|
+
readonly jsonFileName: string;
|
|
79
|
+
readonly reportFileName: string;
|
|
80
|
+
}
|
|
81
|
+
export declare const toolServerName = "forge";
|
|
82
|
+
export declare const completionRedactionSecretsEnv = "FORGE_COMPLETION_REDACTION_SECRETS";
|
|
83
|
+
export declare const completionPhaseOrder: readonly DevelopCompletionPhase[];
|
|
67
84
|
export declare const debugCompletionPhaseOrder: readonly DebugCompletionPhase[];
|
|
68
85
|
export declare const qaCompletionGateOrder: readonly QaCompletionGate[];
|
|
69
86
|
export declare const draftCompletionGateOrder: readonly DraftCompletionGate[];
|
|
87
|
+
export declare const decomposeCompletionGateOrder: readonly DecomposeCompletionGate[];
|
|
88
|
+
export declare const decomposeGateFileNames: Record<DecomposeCompletionGate, string>;
|
|
89
|
+
export declare const decomposeGateToolNames: Record<DecomposeCompletionGate, string>;
|
|
90
|
+
export declare const draftGateFileNames: Record<DraftCompletionGate, string>;
|
|
91
|
+
export declare const draftGateToolNames: Record<DraftCompletionGate, string>;
|
|
92
|
+
export declare const qaGateFileNames: Record<QaCompletionGate, string>;
|
|
93
|
+
export declare const qaGateToolNames: Record<QaCompletionGate, string>;
|
|
94
|
+
export declare const debugGateToolNames: Record<DebugCompletionPhase, string>;
|
|
95
|
+
export declare const qaBlockerReasons: Set<string>;
|
|
96
|
+
export declare const resolvedFindingStatusValues: readonly ["resolved", "disputed", "not_reproduced"];
|
|
97
|
+
export declare const resolvedFindingStatuses: Set<string>;
|
|
98
|
+
export declare const qaFindingSeverities: Set<string>;
|
|
99
|
+
export declare const qaFindingScopes: Set<string>;
|
|
100
|
+
export declare const qaCandidateBugActions: Set<string>;
|
|
101
|
+
export declare const qaScopeSurfaces: Set<string>;
|
|
102
|
+
export declare const qaScopeEvidence: Set<string>;
|
|
103
|
+
export declare const qaScopeSources: Set<string>;
|
|
104
|
+
export declare const qaScopeAuthorities: Set<string>;
|
|
105
|
+
export declare const qaScopeConfidence: Set<string>;
|
|
106
|
+
export declare const qaScopeFields: Set<string>;
|
|
107
|
+
export declare const phaseFiles: Record<CompletionPhase, CompletionArtifactFiles>;
|
|
70
108
|
export declare function completionPhaseFromDispatch(dispatch: RunOnceDispatchPacket): CompletionPhase;
|
|
71
109
|
export declare function normalizeCompletionPhase(value: string | null | undefined): CompletionPhase;
|
|
72
110
|
export declare function usesDevelopCycleCompletion(dispatch: RunOnceDispatchPacket): boolean;
|
|
@@ -77,50 +115,13 @@ export declare function completionToolNamesForPhase(phase: CompletionPhase): rea
|
|
|
77
115
|
export declare function completionToolNamesForQaGate(gate: QaCompletionGate): readonly string[];
|
|
78
116
|
export declare function completionToolNamesForDebugGate(gate: DebugCompletionPhase): readonly string[];
|
|
79
117
|
export declare function completionToolNamesForDraftGate(gate: DraftCompletionGate): readonly string[];
|
|
118
|
+
export declare function completionToolNamesForDecomposeGate(gate: DecomposeCompletionGate): readonly string[];
|
|
80
119
|
export declare function expectedCompletionToolName(phase: CompletionPhase): string;
|
|
81
120
|
export declare function expectedQaCompletionToolName(gate: QaCompletionGate): string;
|
|
82
121
|
export declare function expectedDebugCompletionToolName(gate: DebugCompletionPhase): string;
|
|
83
122
|
export declare function expectedDraftCompletionToolName(gate: DraftCompletionGate): string;
|
|
123
|
+
export declare function expectedDecomposeCompletionToolName(gate: DecomposeCompletionGate): string;
|
|
84
124
|
export declare function artifactRootFor(worktreePath: string, workItemId: string): string;
|
|
85
125
|
export declare function artifactRootForOwner(worktreePath: string, ownerType: string, ownerId: string): string;
|
|
86
126
|
export declare function completionArtifactJsonPath(worktreePath: string, workItemId: string, phase: CompletionPhase, ownerType?: string | null, ownerId?: string | null): string;
|
|
87
127
|
export declare function completionArtifactReportPath(worktreePath: string, workItemId: string, phase: CompletionPhase, ownerType?: string | null, ownerId?: string | null): string;
|
|
88
|
-
export declare function prepareCompletionToolRuntime(options: CompletionToolRuntimeOptions): Promise<CompletionToolRuntime>;
|
|
89
|
-
export declare function buildCompletionToolServerArgs(config: CompletionToolServerConfig): readonly string[];
|
|
90
|
-
export declare function codexMcpConfigArgs(runtime: CompletionToolRuntime): readonly string[];
|
|
91
|
-
export declare function cursorMcpServerConfig(runtime: CompletionToolRuntime): unknown;
|
|
92
|
-
export declare function completionPromptForPhase(phase: CompletionPhase): string;
|
|
93
|
-
export declare function completionPromptForDevelopCycle(phase: CompletionPhase): string;
|
|
94
|
-
export declare function completionPromptForQaCycle(currentGate?: QaCompletionGate): string;
|
|
95
|
-
export declare function completionPromptForDraftCycle(currentGate?: DraftCompletionGate): string;
|
|
96
|
-
export declare function completionPromptForDebugCycle(currentGate?: DebugCompletionPhase): string;
|
|
97
|
-
export declare function completionToolNamesForServer(config: CompletionToolServerConfig): readonly string[];
|
|
98
|
-
export declare class CompletionToolServerSession {
|
|
99
|
-
private readonly config;
|
|
100
|
-
private currentPhase;
|
|
101
|
-
private currentQaGate;
|
|
102
|
-
private currentDraftGate;
|
|
103
|
-
private completed;
|
|
104
|
-
constructor(config: CompletionToolServerConfig);
|
|
105
|
-
get instructions(): string;
|
|
106
|
-
toolDefinitions(): readonly unknown[];
|
|
107
|
-
callTool(toolName: string, input: unknown): Promise<CompletionToolCallResult>;
|
|
108
|
-
private callDraftGateTool;
|
|
109
|
-
private callDebugGateTool;
|
|
110
|
-
private callQaGateTool;
|
|
111
|
-
private advanceAfterPass;
|
|
112
|
-
private advanceAfterDraftGate;
|
|
113
|
-
private advanceAfterQaGate;
|
|
114
|
-
private advanceAfterDebugGate;
|
|
115
|
-
}
|
|
116
|
-
export declare function writeCompletionArtifact(config: CompletionToolServerConfig, toolName: string, input: unknown): Promise<CompletionArtifactReference>;
|
|
117
|
-
export declare function readCompletionArtifact(worktreePath: string, workItemId: string, phase: CompletionPhase, ownerType?: string | null, ownerId?: string | null): Promise<RunnerDispatchArtifact | null>;
|
|
118
|
-
export declare function runCompletionMcpServer(config: CompletionToolServerConfig): Promise<void>;
|
|
119
|
-
export declare function parseCompletionMcpArgs(argv: readonly string[]): {
|
|
120
|
-
readonly ok: true;
|
|
121
|
-
readonly config: CompletionToolServerConfig;
|
|
122
|
-
} | {
|
|
123
|
-
readonly ok: false;
|
|
124
|
-
readonly error: string;
|
|
125
|
-
};
|
|
126
|
-
export declare function completionRedactionEnv(secrets: readonly string[]): Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { RunOnceDispatchPacket } from "./session.types.js";
|
|
2
|
+
import { type CompletionPhase, type DebugCompletionPhase, type DecomposeCompletionGate, type DevelopCompletionPhase, type DraftCompletionGate, type QaCompletionGate } from "./phase-completion.js";
|
|
3
|
+
export declare function normalizeArtifactPayload(payload: Record<string, unknown>, defaults: {
|
|
4
|
+
readonly phase: CompletionPhase;
|
|
5
|
+
readonly workItemId: string;
|
|
6
|
+
readonly ownerType?: string;
|
|
7
|
+
readonly ownerId?: string;
|
|
8
|
+
readonly producedBy: string;
|
|
9
|
+
readonly status: string;
|
|
10
|
+
}): Record<string, unknown>;
|
|
11
|
+
export declare function normalizeQaGateArtifactPayload(payload: Record<string, unknown>, defaults: {
|
|
12
|
+
readonly gate: QaCompletionGate;
|
|
13
|
+
readonly workItemId: string;
|
|
14
|
+
readonly ownerType?: string;
|
|
15
|
+
readonly ownerId?: string;
|
|
16
|
+
readonly producedBy: string;
|
|
17
|
+
readonly status: string;
|
|
18
|
+
}): Record<string, unknown>;
|
|
19
|
+
export declare function reportMarkdown(payload: Record<string, unknown>, phase: CompletionPhase, status: string, producedBy: string, contentHash: string): string;
|
|
20
|
+
export declare function parseStrictCompletionPhase(value: string | null | undefined): CompletionPhase | null;
|
|
21
|
+
export declare function normalizeDebugCompletionPhase(value: string | null | undefined): DebugCompletionPhase | null;
|
|
22
|
+
export declare function isDevelopCompletionPhase(phase: CompletionPhase): phase is DevelopCompletionPhase;
|
|
23
|
+
export declare function isDebugCompletionPhase(phase: string | null | undefined): phase is DebugCompletionPhase;
|
|
24
|
+
export declare function asDebugCompletionPhase(phase: CompletionPhase): DebugCompletionPhase;
|
|
25
|
+
export declare function parseCompletionRedactionSecrets(raw: string | undefined): readonly string[];
|
|
26
|
+
export declare function phaseFromToolName(toolName: string): CompletionPhase;
|
|
27
|
+
export declare function draftGateFromToolName(toolName: string): DraftCompletionGate | null;
|
|
28
|
+
export declare function decomposeGateFromToolName(toolName: string): DecomposeCompletionGate | null;
|
|
29
|
+
export declare function isDecomposeDispatch(dispatch: RunOnceDispatchPacket): boolean;
|
|
30
|
+
export declare function debugGateFromToolName(toolName: string): DebugCompletionPhase | null;
|
|
31
|
+
export declare function qaGateFromToolName(toolName: string): QaCompletionGate | null;
|
|
32
|
+
export declare function requireField(payload: Record<string, unknown>, key: string): void;
|
|
33
|
+
export declare function requireNonPassEvidence(payload: Record<string, unknown>): void;
|
|
34
|
+
export declare function requireImplementationEvidence(payload: Record<string, unknown>): void;
|
|
35
|
+
export declare function requirePassingCommands(payload: Record<string, unknown>): void;
|
|
36
|
+
export declare function requireArray(payload: Record<string, unknown>, key: string): void;
|
|
37
|
+
export declare function requireNonEmptyArray(payload: Record<string, unknown>, key: string): void;
|
|
38
|
+
export declare function arrayLength(payload: Record<string, unknown>, key: string): number;
|
|
39
|
+
export declare function requireAllowedStatus(payload: Record<string, unknown>, key: string, allowed: readonly string[]): void;
|
|
40
|
+
export declare function requireObject(payload: Record<string, unknown>, key: string): void;
|
|
41
|
+
export declare function requiredRecord(payload: Record<string, unknown>, key: string): Record<string, unknown>;
|
|
42
|
+
export declare function requireBoolean(payload: Record<string, unknown>, key: string): void;
|
|
43
|
+
export declare function requireNumericOne(payload: Record<string, unknown>, key: string, pathLabel: string): void;
|
|
44
|
+
export declare function requireSatisfiedAcceptanceCriteria(payload: Record<string, unknown>): void;
|
|
45
|
+
export declare function validateResolvedFindings(payload: Record<string, unknown>): void;
|
|
46
|
+
export declare function qaEvidenceSource(payload: Record<string, unknown>): Record<string, unknown>;
|
|
47
|
+
export declare function qaArray(payload: Record<string, unknown>, key: string, fallback?: Record<string, unknown>): readonly unknown[];
|
|
48
|
+
export declare function qaObjectArray(payload: Record<string, unknown>, key: string): Record<string, unknown>[];
|
|
49
|
+
export declare function qaPolicyWarnings(payload: Record<string, unknown>): Record<string, unknown>[];
|
|
50
|
+
export declare function qaStringArray(payload: Record<string, unknown>, key: string): string[];
|
|
51
|
+
export declare function requireEvidenceRecord(value: unknown, label: string): void;
|
|
52
|
+
export declare function requireNonEmptyStringRecord(source: Record<string, unknown>, key: string, prefix?: string): void;
|
|
53
|
+
export declare function requireArrayRecord(source: Record<string, unknown>, key: string, prefix?: string): void;
|
|
54
|
+
export declare function requireKnownStringRecord(source: Record<string, unknown>, key: string, allowed: ReadonlySet<string>, prefix?: string): void;
|
|
55
|
+
export declare function requireNonEmptyStringArrayRecord(source: Record<string, unknown>, key: string, prefix?: string): void;
|
|
56
|
+
export declare function requireSubstantiveValueRecord(source: Record<string, unknown>, key: string, prefix?: string): void;
|
|
57
|
+
export declare function requireSubstantiveEvidenceRecord(source: Record<string, unknown>, prefix?: string): void;
|
|
58
|
+
export declare function hasSubstantiveJsonValue(value: unknown): boolean;
|
|
59
|
+
export declare function normalizedString(value: unknown): string;
|
|
60
|
+
export declare function normalizedOwnerType(value: unknown): "work_item" | "story" | undefined;
|
|
61
|
+
export declare function artifactOwnerFields(config: {
|
|
62
|
+
readonly workItemId: string;
|
|
63
|
+
readonly ownerType?: string;
|
|
64
|
+
readonly ownerId?: string;
|
|
65
|
+
}): {
|
|
66
|
+
readonly owner_type?: string;
|
|
67
|
+
readonly owner_id?: string;
|
|
68
|
+
};
|
|
69
|
+
export declare function artifactReferenceOwnerFields(config: {
|
|
70
|
+
readonly workItemId: string;
|
|
71
|
+
readonly ownerType?: string;
|
|
72
|
+
readonly ownerId?: string;
|
|
73
|
+
}): {
|
|
74
|
+
readonly ownerType?: string;
|
|
75
|
+
readonly ownerId?: string;
|
|
76
|
+
};
|
|
77
|
+
export declare function artifactOwnerDirectory(ownerType: string): string;
|
|
78
|
+
export declare function artifactOwnerRelativeRoot(ownerType: string | undefined, ownerId: string | undefined, workItemId: string): string;
|
|
79
|
+
export declare function defaultQaChecklist(status: string): string[];
|
|
80
|
+
export declare function qaArtifactRelativePath(workItemId: string, fileName: string): string;
|
|
81
|
+
export declare function qaArtifactRelativePathForOwner(ownerType: string, ownerId: string, fileName: string): string;
|
|
82
|
+
export declare function jsonText(value: unknown): string;
|
|
83
|
+
export declare function fallbackReport(parsed: Record<string, unknown>, phase: CompletionPhase, artifactPath: string): string;
|
|
84
|
+
export declare function parseJsonObject(content: string, label: string): Record<string, unknown>;
|
|
85
|
+
export declare function parseOptionalJsonObject(content: string, label: string): Record<string, unknown>;
|
|
86
|
+
export declare function asRecord(value: unknown, label: string): Record<string, unknown>;
|
|
87
|
+
export declare function asMutableRecord(value: unknown): Record<string, unknown>;
|
|
88
|
+
export declare function requiredString(source: Record<string, unknown>, key: string): string;
|
|
89
|
+
export declare function optionalString(source: Record<string, unknown>, key: string): string | null;
|
|
90
|
+
export declare function numberOrDefault(value: unknown, fallback: number): number;
|
|
91
|
+
export declare function stripUndefined(value: Record<string, unknown>): Record<string, unknown>;
|
|
92
|
+
export declare function safePathSegment(value: string, label: string): string;
|
|
93
|
+
export declare function readOptionalFile(filePath: string): Promise<string | null>;
|
|
94
|
+
export declare function writeFileAtomic(filePath: string, content: string): Promise<void>;
|
|
95
|
+
export declare function stableStringify(value: unknown): string;
|
|
96
|
+
export declare function sortJson(value: unknown): unknown;
|
|
97
|
+
export declare function sha256(content: string): string;
|
|
98
|
+
export declare function forgeBridgeCliBinPath(): string;
|
|
99
|
+
export declare function tomlString(value: string): string;
|
|
100
|
+
export declare function tomlStringArray(values: readonly string[]): string;
|
|
101
|
+
export declare function writeJsonRpc(message: unknown): void;
|
|
102
|
+
export declare function rpcError(code: number, message: string): {
|
|
103
|
+
readonly code: number;
|
|
104
|
+
readonly message: string;
|
|
105
|
+
};
|
|
106
|
+
export declare function asJsonRpcMessage(value: unknown): {
|
|
107
|
+
readonly id?: string | number | null;
|
|
108
|
+
readonly method: string;
|
|
109
|
+
readonly params?: unknown;
|
|
110
|
+
} | null;
|
|
111
|
+
export declare function errorMessage(error: unknown): string;
|
|
112
|
+
export declare function isNodeError(error: unknown): error is NodeJS.ErrnoException;
|