@h-rig/cli 0.0.6-alpha.90 → 0.0.6-alpha.91
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 +18 -19
- package/dist/bin/build-rig-binaries.js +22 -10
- package/dist/bin/rig.d.ts +71 -1
- package/dist/bin/rig.js +15078 -11169
- package/dist/config/rig-default-config.yml +5 -0
- package/dist/src/app/drone-ui.d.ts +11 -14
- package/dist/src/app/drone-ui.js +70 -86
- package/dist/src/commands/_async-ui.d.ts +1 -4
- package/dist/src/commands/_async-ui.js +9 -111
- package/dist/src/commands/_cli-format.d.ts +16 -9
- package/dist/src/commands/_cli-format.js +167 -295
- package/dist/src/commands/_connection-state.d.ts +11 -1
- package/dist/src/commands/_connection-state.js +50 -5
- package/dist/src/commands/_doctor-checks.d.ts +0 -6
- package/dist/src/commands/_doctor-checks.js +79 -382
- package/dist/src/commands/_help-catalog.d.ts +1 -1
- package/dist/src/commands/_help-catalog.js +217 -157
- package/dist/src/commands/_inprocess-services.d.ts +33 -0
- package/dist/src/commands/_inprocess-services.js +102 -0
- package/dist/src/commands/_json-output.js +4 -0
- package/dist/src/commands/_lazy-reconcile.d.ts +34 -0
- package/dist/src/commands/_lazy-reconcile.js +102 -0
- package/dist/src/commands/_paths.js +1 -1
- package/dist/src/commands/_pi-frontend.d.ts +18 -10
- package/dist/src/commands/_pi-frontend.js +37 -715
- package/dist/src/commands/_pi-install.js +18 -36
- package/dist/src/commands/_policy.d.ts +1 -1
- package/dist/src/commands/_policy.js +56 -15
- package/dist/src/commands/_run-bridge.d.ts +114 -0
- package/dist/src/commands/_run-bridge.js +387 -0
- package/dist/src/commands/_run-diagnostics.d.ts +9 -0
- package/dist/src/commands/_run-diagnostics.js +51 -0
- package/dist/src/commands/_run-driver-helpers.d.ts +8 -81
- package/dist/src/commands/_run-driver-helpers.js +79 -283
- package/dist/src/commands/_run-projection.d.ts +50 -0
- package/dist/src/commands/_run-projection.js +349 -0
- package/dist/src/commands/_run-subcommands.d.ts +3 -0
- package/dist/src/commands/_run-subcommands.js +31 -0
- package/dist/src/commands/_spinner.js +1 -1
- package/dist/src/commands/agent.d.ts +1 -1
- package/dist/src/commands/agent.js +8559 -239
- package/dist/src/commands/dist.d.ts +1 -1
- package/dist/src/commands/dist.js +27 -19
- package/dist/src/commands/doctor.d.ts +1 -1
- package/dist/src/commands/doctor.js +93 -475
- package/dist/src/commands/github.d.ts +1 -1
- package/dist/src/commands/github.js +113 -387
- package/dist/src/commands/inbox.d.ts +22 -24
- package/dist/src/commands/inbox.js +420 -691
- package/dist/src/commands/init.d.ts +6 -16
- package/dist/src/commands/init.js +334 -971
- package/dist/src/commands/inspect.d.ts +19 -2
- package/dist/src/commands/inspect.js +644 -610
- package/dist/src/commands/pi.d.ts +1 -1
- package/dist/src/commands/plugin.d.ts +1 -1
- package/dist/src/commands/plugin.js +486 -7
- package/dist/src/commands/profile-and-review.d.ts +1 -1
- package/dist/src/commands/profile-and-review.js +94 -56
- package/dist/src/commands/queue.js +1 -21
- package/dist/src/commands/remote.d.ts +1 -1
- package/dist/src/commands/remote.js +837 -14
- package/dist/src/commands/repo-git-harness.d.ts +1 -1
- package/dist/src/commands/repo-git-harness.js +57 -14
- package/dist/src/commands/run.d.ts +20 -2
- package/dist/src/commands/run.js +17579 -1759
- package/dist/src/commands/server.d.ts +2 -6
- package/dist/src/commands/server.js +141 -723
- package/dist/src/commands/setup.d.ts +1 -1
- package/dist/src/commands/setup.js +102 -484
- package/dist/src/commands/stats.d.ts +13 -10
- package/dist/src/commands/stats.js +689 -761
- package/dist/src/commands/task-run-driver.d.ts +50 -88
- package/dist/src/commands/task-run-driver.js +116 -2717
- package/dist/src/commands/task.d.ts +34 -13
- package/dist/src/commands/task.js +668 -2523
- package/dist/src/commands/test.d.ts +1 -1
- package/dist/src/commands/triage.d.ts +11 -0
- package/dist/src/commands/triage.js +227 -0
- package/dist/src/commands/workspace.d.ts +1 -1
- package/dist/src/commands.d.ts +0 -16
- package/dist/src/commands.js +16657 -12250
- package/dist/src/index.js +16528 -12497
- package/dist/src/launcher.js +4 -0
- package/dist/src/operator-cli.d.ts +2 -0
- package/dist/src/operator-cli.js +17837 -0
- package/dist/src/operator-entry.d.ts +1 -0
- package/dist/src/operator-entry.js +3 -0
- package/package.json +18 -12
- package/dist/src/app/board.d.ts +0 -23
- package/dist/src/app/board.js +0 -1786
- package/dist/src/app/theme.d.ts +0 -47
- package/dist/src/app/theme.js +0 -150
- package/dist/src/commands/_authority-runs.d.ts +0 -22
- package/dist/src/commands/_authority-runs.js +0 -110
- package/dist/src/commands/_operator-surface.d.ts +0 -34
- package/dist/src/commands/_operator-surface.js +0 -220
- package/dist/src/commands/_operator-view.d.ts +0 -30
- package/dist/src/commands/_operator-view.js +0 -1070
- package/dist/src/commands/_preflight.d.ts +0 -22
- package/dist/src/commands/_preflight.js +0 -540
- package/dist/src/commands/_run-replay.d.ts +0 -24
- package/dist/src/commands/_run-replay.js +0 -142
- package/dist/src/commands/_server-client.d.ts +0 -186
- package/dist/src/commands/_server-client.js +0 -681
- package/dist/src/commands/_snapshot-upload.d.ts +0 -39
- package/dist/src/commands/_snapshot-upload.js +0 -455
- package/dist/src/commands/_task-picker.d.ts +0 -9
- package/dist/src/commands/_task-picker.js +0 -201
- package/dist/src/commands/browser.d.ts +0 -65
- package/dist/src/commands/browser.js +0 -1173
- package/dist/src/commands/connect.d.ts +0 -7
- package/dist/src/commands/connect.js +0 -419
- package/dist/src/commands/inspector.d.ts +0 -3
- package/dist/src/commands/inspector.js +0 -263
- package/dist/src/commands/task-report-bug.d.ts +0 -19
- package/dist/src/commands/task-report-bug.js +0 -1281
- package/dist/src/report-bug.d.ts +0 -44
- package/dist/src/report-bug.js +0 -260
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
export type TaskRunReviewState = Record<string, unknown>;
|
|
2
|
+
export type TaskRunStageName = "Connect" | "Prepare" | "Execute" | "Validate" | "Review" | "Publish" | "Complete" | "Needs attention" | "Failed";
|
|
3
|
+
export type SubmitTaskRunInput = {
|
|
4
|
+
runId: string;
|
|
5
|
+
taskId?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
runtimeAdapter: "claude-code" | "codex" | "pi";
|
|
8
|
+
model?: string;
|
|
9
|
+
runtimeMode: string;
|
|
10
|
+
interactionMode: string;
|
|
11
|
+
initialPrompt?: string;
|
|
12
|
+
baselineMode?: "head" | "dirty-snapshot";
|
|
13
|
+
prMode?: "auto" | "ask" | "off";
|
|
14
|
+
};
|
|
15
|
+
type TaskRunAutomationConfig = {
|
|
16
|
+
review?: {
|
|
17
|
+
mode?: string;
|
|
18
|
+
provider?: string;
|
|
19
|
+
};
|
|
20
|
+
automation?: {
|
|
21
|
+
maxValidationAttempts?: number;
|
|
22
|
+
maxPrFixIterations?: number;
|
|
23
|
+
};
|
|
13
24
|
};
|
|
14
|
-
declare const PI_CANONICAL_RUN_STAGES: readonly ["Connect", "GitHub/task sync", "Prepare workspace", "Launch Pi", "Plan", "Implement", "Validate", "Commit", "Open PR", "Review/CI", "Merge", "Complete"];
|
|
15
25
|
export declare function canonicalPiRunStages(): string[];
|
|
16
26
|
export declare function buildPiRigBridgeEnv(input: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
readonly githubToken?: string | null;
|
|
27
|
+
projectRoot: string;
|
|
28
|
+
runId: string;
|
|
29
|
+
taskId?: string | null;
|
|
30
|
+
runtimeMode?: string | null;
|
|
31
|
+
model?: string | null;
|
|
23
32
|
}): Record<string, string>;
|
|
24
33
|
export declare function applyDirtyBaselineSnapshot(input: {
|
|
25
|
-
|
|
26
|
-
|
|
34
|
+
sourceRoot: string;
|
|
35
|
+
targetRoot: string;
|
|
27
36
|
}): {
|
|
28
37
|
applied: boolean;
|
|
29
38
|
copiedUntracked: number;
|
|
@@ -31,41 +40,26 @@ export declare function applyDirtyBaselineSnapshot(input: {
|
|
|
31
40
|
};
|
|
32
41
|
export declare function buildTaskRunReviewEnv(config?: TaskRunAutomationConfig | null): Record<string, string>;
|
|
33
42
|
export declare function buildDirtyBaselineHandshakeEnv(input: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
projectRoot: string;
|
|
44
|
+
runId: string;
|
|
45
|
+
baselineMode: "head" | "dirty-snapshot";
|
|
37
46
|
}): Record<string, string>;
|
|
38
|
-
type TaskRunAutomationConfig = RigAutomationConfig & {
|
|
39
|
-
readonly github?: {
|
|
40
|
-
readonly issueUpdates?: "lifecycle" | "minimal" | "off";
|
|
41
|
-
};
|
|
42
|
-
readonly planning?: {
|
|
43
|
-
readonly mode?: "auto" | "always" | "off";
|
|
44
|
-
readonly requireForLabels?: readonly string[];
|
|
45
|
-
readonly skipForLabels?: readonly string[];
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
47
|
export declare function resolveTaskRunAutomationLimits(config?: TaskRunAutomationConfig | null, env?: Record<string, string | undefined>): {
|
|
49
48
|
maxValidationAttempts: number;
|
|
50
49
|
maxPrFixIterations: number;
|
|
51
50
|
};
|
|
52
51
|
export type PlanningClassification = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
readonly risk: "low" | "medium" | "high";
|
|
56
|
-
readonly reason: string;
|
|
57
|
-
readonly policy: "always" | "off" | "auto";
|
|
52
|
+
needsPlanning: boolean;
|
|
53
|
+
reason: string;
|
|
58
54
|
};
|
|
59
55
|
export declare function classifyPlanningNeed(input: {
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
prompt: string;
|
|
57
|
+
acceptanceCriteria?: string | null;
|
|
62
58
|
}): PlanningClassification;
|
|
63
59
|
export declare function buildPiValidationRetrySteeringPrompt(input: {
|
|
64
|
-
taskId
|
|
60
|
+
taskId?: string | null;
|
|
65
61
|
attempt: number;
|
|
66
|
-
maxAttempts: number;
|
|
67
62
|
failureDetail: string;
|
|
68
|
-
validationOutput?: string | null;
|
|
69
63
|
}): string;
|
|
70
64
|
export declare function classifyValidationRetryOutcome(input: {
|
|
71
65
|
attempt: number;
|
|
@@ -76,57 +70,25 @@ export declare function classifyValidationRetryOutcome(input: {
|
|
|
76
70
|
status: "retry" | "needs_attention";
|
|
77
71
|
failureDetail: string;
|
|
78
72
|
};
|
|
79
|
-
export type TaskRunStageName = typeof PI_CANONICAL_RUN_STAGES[number] | "Needs attention" | "Failed";
|
|
80
73
|
export declare function taskRunStageLogId(runId: string, stage: TaskRunStageName): string;
|
|
81
|
-
export type TaskRunPostValidationLifecycleResult = {
|
|
82
|
-
readonly status: "completed" | "skipped" | "needs_attention";
|
|
83
|
-
readonly pr?: PrAutomationResult;
|
|
84
|
-
};
|
|
85
|
-
export declare function runTaskRunPostValidationLifecycle(input: {
|
|
86
|
-
readonly projectRoot: string;
|
|
87
|
-
readonly runId: string;
|
|
88
|
-
readonly taskId?: string;
|
|
89
|
-
readonly runtimeTaskId: string;
|
|
90
|
-
readonly runtimeWorkspace?: string | null;
|
|
91
|
-
readonly branch?: string | null;
|
|
92
|
-
readonly config?: TaskRunAutomationConfig | null;
|
|
93
|
-
readonly sourceTask: SourceTaskContract | null;
|
|
94
|
-
readonly uploadedSnapshot?: boolean;
|
|
95
|
-
readonly appendStage?: (stage: TaskRunStageName, detail?: string | null, status?: string, tone?: "info" | "tool" | "error") => void;
|
|
96
|
-
readonly ghCommand?: GitHubCommandRunner;
|
|
97
|
-
readonly gitCommand?: GitCommandRunner;
|
|
98
|
-
readonly prAutomation?: typeof runPrAutomation;
|
|
99
|
-
readonly steerPi?: (message: string) => Promise<void>;
|
|
100
|
-
readonly updateTaskSource?: typeof updateConfiguredTaskSourceTask;
|
|
101
|
-
}): Promise<TaskRunPostValidationLifecycleResult>;
|
|
102
|
-
export declare function classifyCompletionVerificationLine(line: string): {
|
|
103
|
-
isCompletionLine: boolean;
|
|
104
|
-
isVerifierReview: boolean;
|
|
105
|
-
};
|
|
106
74
|
export declare function createRunLogIdFactory(runId: string): () => string;
|
|
107
75
|
export declare function summarizeTaskRunProcessFailure(input: {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
76
|
+
stage: string;
|
|
77
|
+
exitCode?: number | null;
|
|
78
|
+
stderr?: string | null;
|
|
79
|
+
stdout?: string | null;
|
|
80
|
+
fallback?: string | null;
|
|
111
81
|
}): string;
|
|
82
|
+
export declare function classifyCompletionVerificationLine(line: string): {
|
|
83
|
+
isCompletionLine: boolean;
|
|
84
|
+
stage: string | null;
|
|
85
|
+
status: "started" | "passed" | "failed" | null;
|
|
86
|
+
};
|
|
112
87
|
export declare function readTaskRunAcceptedArtifactState(input: {
|
|
113
|
-
|
|
114
|
-
workspaceDir: string | null;
|
|
115
|
-
artifactNotBeforeMs?: number;
|
|
88
|
+
artifactPath: string;
|
|
116
89
|
}): {
|
|
117
90
|
accepted: boolean;
|
|
118
91
|
reason: string | null;
|
|
119
92
|
};
|
|
120
|
-
export declare function
|
|
121
|
-
runId: string;
|
|
122
|
-
taskId?: string;
|
|
123
|
-
title?: string;
|
|
124
|
-
runtimeAdapter: "claude-code" | "codex" | "pi";
|
|
125
|
-
model?: string;
|
|
126
|
-
runtimeMode: string;
|
|
127
|
-
interactionMode: string;
|
|
128
|
-
initialPrompt?: string;
|
|
129
|
-
baselineMode?: "head" | "dirty-snapshot";
|
|
130
|
-
prMode?: "auto" | "ask" | "off";
|
|
131
|
-
}): Promise<void>;
|
|
93
|
+
export declare function runTaskRunPostValidationLifecycle(input: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
132
94
|
export {};
|