@loucompanion/forge-bridge 0.1.1-dev.32d4dd5874ee → 0.1.1-dev.40fbc494669b
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 +213 -25
- package/dist/bridge/bridge.types.d.ts +13 -2
- package/dist/cli/cli.service.js +225 -10
- package/dist/cli/local-config.d.ts +1 -0
- package/dist/cli/local-config.js +36 -4
- package/dist/config.js +1 -1
- package/dist/session/internals.d.ts +1 -1
- package/dist/session/phase-completion.d.ts +65 -4
- package/dist/session/phase-completion.js +2424 -110
- package/dist/session/provider-cli/provider-cli.base.d.ts +4 -3
- package/dist/session/provider-cli/provider-cli.service.d.ts +21 -5
- package/dist/session/provider-cli/provider-cli.service.js +2012 -177
- package/dist/session/provider-cli/provider-cli.types.d.ts +5 -0
- package/dist/session/provider-cli/provider-usage.d.ts +25 -0
- package/dist/session/provider-cli/provider-usage.js +64 -0
- package/dist/session/qa-sidecar-validation.d.ts +3 -0
- package/dist/session/qa-sidecar-validation.js +44 -0
- package/dist/session/session.service.js +53 -15
- package/dist/session/session.types.d.ts +128 -0
- package/dist/session/session.types.js +261 -2
- 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 -4
- 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,7 +1,8 @@
|
|
|
1
|
-
import type { ProviderCliRunContext, ProviderCliRunResult } from "./provider-cli.types.js";
|
|
2
|
-
import type { RunOnceDispatchPacket, RunnerDispatchEvent } from "../session.types.js";
|
|
1
|
+
import type { ProviderCliDraftContext, ProviderCliRunContext, ProviderCliRunResult } from "./provider-cli.types.js";
|
|
3
2
|
export interface ProviderCliService {
|
|
4
3
|
runImplementation(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
4
|
+
runArchitect(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
5
5
|
runConflictResolve(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
6
|
-
runQa(
|
|
6
|
+
runQa(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
7
|
+
runDraft(context: ProviderCliDraftContext): Promise<ProviderCliRunResult>;
|
|
7
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GitClient } from "../../shared/git/git.js";
|
|
2
2
|
import { type CompletionToolRuntime } from "../phase-completion.js";
|
|
3
3
|
import type { ProviderCliService } from "./provider-cli.base.js";
|
|
4
|
-
import type { ProviderCliRunContext, ProviderCliRunResult } from "./provider-cli.types.js";
|
|
5
|
-
import type { RunOnceDispatchPacket
|
|
4
|
+
import type { ProviderCliDraftContext, ProviderCliRunContext, ProviderCliRunResult } from "./provider-cli.types.js";
|
|
5
|
+
import type { RunOnceDispatchPacket } from "../session.types.js";
|
|
6
6
|
export interface ProviderCliCommand {
|
|
7
7
|
readonly command: string;
|
|
8
8
|
readonly args: readonly string[];
|
|
@@ -11,6 +11,7 @@ export interface ProviderProcessRunRequest {
|
|
|
11
11
|
readonly command: string;
|
|
12
12
|
readonly args: readonly string[];
|
|
13
13
|
readonly cwd: string;
|
|
14
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
14
15
|
}
|
|
15
16
|
export interface ProviderProcessRunResult {
|
|
16
17
|
readonly exitCode: number;
|
|
@@ -24,27 +25,39 @@ export interface ProviderProcessHandlers {
|
|
|
24
25
|
onStdoutLine?(line: string): Promise<void> | void;
|
|
25
26
|
onStderrLine?(line: string): Promise<void> | void;
|
|
26
27
|
}
|
|
28
|
+
interface ProviderChildEnvironmentOptions {
|
|
29
|
+
readonly parentEnv?: NodeJS.ProcessEnv;
|
|
30
|
+
readonly platform?: NodeJS.Platform;
|
|
31
|
+
readonly homeDir?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function buildProviderChildEnvironment(requestEnv?: Readonly<Record<string, string>>, options?: ProviderChildEnvironmentOptions): NodeJS.ProcessEnv;
|
|
27
34
|
export declare class RoutingProviderCliService implements ProviderCliService {
|
|
28
35
|
private readonly realProvider;
|
|
29
36
|
private readonly deterministicProvider;
|
|
30
37
|
constructor(realProvider?: ProviderCliService, deterministicProvider?: ProviderCliService);
|
|
31
38
|
runImplementation(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
39
|
+
runArchitect(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
32
40
|
runConflictResolve(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
33
|
-
runQa(
|
|
41
|
+
runQa(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
42
|
+
runDraft(context: ProviderCliDraftContext): Promise<ProviderCliRunResult>;
|
|
34
43
|
}
|
|
35
44
|
export declare class ProcessBackedProviderCliService implements ProviderCliService {
|
|
36
45
|
private readonly processRunner;
|
|
37
46
|
private readonly git;
|
|
38
47
|
constructor(processRunner?: ProviderProcessRunner, git?: GitClient);
|
|
48
|
+
runDraft(context: ProviderCliDraftContext): Promise<ProviderCliRunResult>;
|
|
39
49
|
runImplementation(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
40
|
-
|
|
50
|
+
runArchitect(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
51
|
+
runQa(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
41
52
|
runConflictResolve(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
42
53
|
}
|
|
43
54
|
export declare class DeterministicProviderCliService implements ProviderCliService {
|
|
44
55
|
private readonly git;
|
|
45
56
|
constructor(git?: GitClient);
|
|
57
|
+
runDraft(context: ProviderCliDraftContext): Promise<ProviderCliRunResult>;
|
|
46
58
|
runImplementation(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
47
|
-
|
|
59
|
+
runArchitect(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
60
|
+
runQa(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
48
61
|
runConflictResolve(context: ProviderCliRunContext): Promise<ProviderCliRunResult>;
|
|
49
62
|
}
|
|
50
63
|
export declare class StreamingProviderProcessRunner implements ProviderProcessRunner {
|
|
@@ -57,4 +70,7 @@ export declare function buildProviderCliCommand(dispatch: RunOnceDispatchPacket,
|
|
|
57
70
|
readonly prompt?: string;
|
|
58
71
|
readonly worktreePath?: string;
|
|
59
72
|
readonly completionTools?: CompletionToolRuntime;
|
|
73
|
+
readonly skipGitRepoCheck?: boolean;
|
|
60
74
|
}): ProviderCliCommand;
|
|
75
|
+
export declare function codexSandboxModeForPlatform(platform?: NodeJS.Platform): "workspace-write" | "danger-full-access";
|
|
76
|
+
export {};
|