@h-rig/cli 0.0.6-alpha.9 → 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.d.ts +2 -0
- package/dist/bin/build-rig-binaries.js +22 -10
- package/dist/bin/rig.d.ts +72 -0
- package/dist/bin/rig.js +15637 -7344
- package/dist/config/rig-default-config.yml +5 -0
- package/dist/src/app/drone-ui.d.ts +34 -0
- package/dist/src/app/drone-ui.js +278 -0
- package/dist/src/commands/_async-ui.d.ts +10 -0
- package/dist/src/commands/_async-ui.js +121 -0
- package/dist/src/commands/_cli-format.d.ts +56 -0
- package/dist/src/commands/_cli-format.js +319 -0
- package/dist/src/commands/_connection-state.d.ts +54 -0
- package/dist/src/commands/_connection-state.js +75 -11
- package/dist/src/commands/_doctor-checks.d.ts +46 -0
- package/dist/src/commands/_doctor-checks.js +100 -267
- package/dist/src/commands/_help-catalog.d.ts +51 -0
- package/dist/src/commands/_help-catalog.js +502 -0
- 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.d.ts +11 -0
- package/dist/src/commands/_json-output.js +60 -0
- package/dist/src/commands/_lazy-reconcile.d.ts +34 -0
- package/dist/src/commands/_lazy-reconcile.js +102 -0
- package/dist/src/commands/_parsers.d.ts +15 -0
- package/dist/src/commands/_parsers.js +18 -11
- package/dist/src/commands/_paths.d.ts +11 -0
- package/dist/src/commands/_paths.js +1 -1
- package/dist/src/commands/_pi-frontend.d.ts +35 -0
- package/dist/src/commands/_pi-frontend.js +64 -0
- package/dist/src/commands/_pi-install.d.ts +42 -0
- package/dist/src/commands/_pi-install.js +19 -36
- package/dist/src/commands/_policy.d.ts +8 -0
- package/dist/src/commands/_policy.js +67 -19
- package/dist/src/commands/_probes.d.ts +1 -0
- 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 +26 -0
- package/dist/src/commands/_run-driver-helpers.js +79 -230
- 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.d.ts +25 -0
- package/dist/src/commands/_spinner.js +65 -0
- package/dist/src/commands/agent.d.ts +3 -0
- package/dist/src/commands/agent.js +8575 -236
- package/dist/src/commands/dist.d.ts +28 -0
- package/dist/src/commands/dist.js +44 -29
- package/dist/src/commands/doctor.d.ts +3 -0
- package/dist/src/commands/doctor.js +219 -268
- package/dist/src/commands/github.d.ts +3 -0
- package/dist/src/commands/github.js +236 -188
- package/dist/src/commands/inbox.d.ts +28 -0
- package/dist/src/commands/inbox.js +530 -111
- package/dist/src/commands/init.d.ts +64 -0
- package/dist/src/commands/init.js +912 -705
- package/dist/src/commands/inspect.d.ts +20 -0
- package/dist/src/commands/inspect.js +709 -119
- package/dist/src/commands/pi.d.ts +3 -0
- package/dist/src/commands/pi.js +177 -0
- package/dist/src/commands/plugin.d.ts +16 -0
- package/dist/src/commands/plugin.js +576 -29
- package/dist/src/commands/profile-and-review.d.ts +4 -0
- package/dist/src/commands/profile-and-review.js +112 -67
- package/dist/src/commands/queue.d.ts +3 -0
- package/dist/src/commands/queue.js +20 -20
- package/dist/src/commands/remote.d.ts +3 -0
- package/dist/src/commands/remote.js +880 -50
- package/dist/src/commands/repo-git-harness.d.ts +5 -0
- package/dist/src/commands/repo-git-harness.js +78 -28
- package/dist/src/commands/run.d.ts +21 -0
- package/dist/src/commands/run.js +17701 -661
- package/dist/src/commands/server.d.ts +3 -0
- package/dist/src/commands/server.js +166 -303
- package/dist/src/commands/setup.d.ts +16 -0
- package/dist/src/commands/setup.js +244 -299
- package/dist/src/commands/stats.d.ts +15 -0
- package/dist/src/commands/stats.js +979 -0
- package/dist/src/commands/task-run-driver.d.ts +94 -0
- package/dist/src/commands/task-run-driver.js +116 -1961
- package/dist/src/commands/task.d.ts +35 -0
- package/dist/src/commands/task.js +676 -1201
- package/dist/src/commands/test.d.ts +3 -0
- package/dist/src/commands/test.js +15 -8
- package/dist/src/commands/triage.d.ts +11 -0
- package/dist/src/commands/triage.js +227 -0
- package/dist/src/commands/workspace.d.ts +3 -0
- package/dist/src/commands/workspace.js +18 -11
- package/dist/src/commands.d.ts +13 -0
- package/dist/src/commands.js +16792 -8055
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +16862 -8450
- package/dist/src/launcher.d.ts +61 -0
- package/dist/src/launcher.js +81 -13
- 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/dist/src/runner.d.ts +47 -0
- package/dist/src/runner.js +16 -22
- package/dist/src/withMutedConsole.d.ts +2 -0
- package/package.json +21 -8
- package/dist/src/commands/_authority-runs.js +0 -111
- package/dist/src/commands/_operator-view.js +0 -340
- package/dist/src/commands/_preflight.js +0 -478
- package/dist/src/commands/_server-client.js +0 -382
- package/dist/src/commands/_snapshot-upload.js +0 -331
- package/dist/src/commands/_task-picker.js +0 -48
- package/dist/src/commands/browser.js +0 -890
- package/dist/src/commands/connect.js +0 -180
- package/dist/src/commands/inspector.js +0 -256
- package/dist/src/commands/task-report-bug.js +0 -1083
- package/dist/src/report-bug.js +0 -260
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare function canonicalPiRunStages(): string[];
|
|
26
|
+
export declare function buildPiRigBridgeEnv(input: {
|
|
27
|
+
projectRoot: string;
|
|
28
|
+
runId: string;
|
|
29
|
+
taskId?: string | null;
|
|
30
|
+
runtimeMode?: string | null;
|
|
31
|
+
model?: string | null;
|
|
32
|
+
}): Record<string, string>;
|
|
33
|
+
export declare function applyDirtyBaselineSnapshot(input: {
|
|
34
|
+
sourceRoot: string;
|
|
35
|
+
targetRoot: string;
|
|
36
|
+
}): {
|
|
37
|
+
applied: boolean;
|
|
38
|
+
copiedUntracked: number;
|
|
39
|
+
detail: string;
|
|
40
|
+
};
|
|
41
|
+
export declare function buildTaskRunReviewEnv(config?: TaskRunAutomationConfig | null): Record<string, string>;
|
|
42
|
+
export declare function buildDirtyBaselineHandshakeEnv(input: {
|
|
43
|
+
projectRoot: string;
|
|
44
|
+
runId: string;
|
|
45
|
+
baselineMode: "head" | "dirty-snapshot";
|
|
46
|
+
}): Record<string, string>;
|
|
47
|
+
export declare function resolveTaskRunAutomationLimits(config?: TaskRunAutomationConfig | null, env?: Record<string, string | undefined>): {
|
|
48
|
+
maxValidationAttempts: number;
|
|
49
|
+
maxPrFixIterations: number;
|
|
50
|
+
};
|
|
51
|
+
export type PlanningClassification = {
|
|
52
|
+
needsPlanning: boolean;
|
|
53
|
+
reason: string;
|
|
54
|
+
};
|
|
55
|
+
export declare function classifyPlanningNeed(input: {
|
|
56
|
+
prompt: string;
|
|
57
|
+
acceptanceCriteria?: string | null;
|
|
58
|
+
}): PlanningClassification;
|
|
59
|
+
export declare function buildPiValidationRetrySteeringPrompt(input: {
|
|
60
|
+
taskId?: string | null;
|
|
61
|
+
attempt: number;
|
|
62
|
+
failureDetail: string;
|
|
63
|
+
}): string;
|
|
64
|
+
export declare function classifyValidationRetryOutcome(input: {
|
|
65
|
+
attempt: number;
|
|
66
|
+
maxAttempts: number;
|
|
67
|
+
failureDetail: string;
|
|
68
|
+
}): {
|
|
69
|
+
stage: "Validate failed";
|
|
70
|
+
status: "retry" | "needs_attention";
|
|
71
|
+
failureDetail: string;
|
|
72
|
+
};
|
|
73
|
+
export declare function taskRunStageLogId(runId: string, stage: TaskRunStageName): string;
|
|
74
|
+
export declare function createRunLogIdFactory(runId: string): () => string;
|
|
75
|
+
export declare function summarizeTaskRunProcessFailure(input: {
|
|
76
|
+
stage: string;
|
|
77
|
+
exitCode?: number | null;
|
|
78
|
+
stderr?: string | null;
|
|
79
|
+
stdout?: string | null;
|
|
80
|
+
fallback?: string | null;
|
|
81
|
+
}): string;
|
|
82
|
+
export declare function classifyCompletionVerificationLine(line: string): {
|
|
83
|
+
isCompletionLine: boolean;
|
|
84
|
+
stage: string | null;
|
|
85
|
+
status: "started" | "passed" | "failed" | null;
|
|
86
|
+
};
|
|
87
|
+
export declare function readTaskRunAcceptedArtifactState(input: {
|
|
88
|
+
artifactPath: string;
|
|
89
|
+
}): {
|
|
90
|
+
accepted: boolean;
|
|
91
|
+
reason: string | null;
|
|
92
|
+
};
|
|
93
|
+
export declare function runTaskRunPostValidationLifecycle(input: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
94
|
+
export {};
|