@h-rig/cli 0.0.6-alpha.9 → 0.0.6-alpha.90
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 +1 -1
- package/dist/bin/build-rig-binaries.d.ts +2 -0
- package/dist/bin/rig.d.ts +2 -0
- package/dist/bin/rig.js +11052 -6668
- package/dist/src/app/board.d.ts +23 -0
- package/dist/src/app/board.js +1786 -0
- package/dist/src/app/drone-ui.d.ts +37 -0
- package/dist/src/app/drone-ui.js +294 -0
- package/dist/src/app/theme.d.ts +47 -0
- package/dist/src/app/theme.js +150 -0
- package/dist/src/commands/_async-ui.d.ts +13 -0
- package/dist/src/commands/_async-ui.js +223 -0
- package/dist/src/commands/_authority-runs.d.ts +22 -0
- package/dist/src/commands/_authority-runs.js +2 -3
- package/dist/src/commands/_cli-format.d.ts +49 -0
- package/dist/src/commands/_cli-format.js +447 -0
- package/dist/src/commands/_connection-state.d.ts +44 -0
- package/dist/src/commands/_connection-state.js +30 -11
- package/dist/src/commands/_doctor-checks.d.ts +52 -0
- package/dist/src/commands/_doctor-checks.js +180 -44
- package/dist/src/commands/_help-catalog.d.ts +51 -0
- package/dist/src/commands/_help-catalog.js +442 -0
- package/dist/src/commands/_json-output.d.ts +11 -0
- package/dist/src/commands/_json-output.js +56 -0
- package/dist/src/commands/_operator-surface.d.ts +34 -0
- package/dist/src/commands/_operator-surface.js +220 -0
- package/dist/src/commands/_operator-view.d.ts +30 -0
- package/dist/src/commands/_operator-view.js +803 -73
- 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/_pi-frontend.d.ts +27 -0
- package/dist/src/commands/_pi-frontend.js +742 -0
- package/dist/src/commands/_pi-install.d.ts +42 -0
- package/dist/src/commands/_pi-install.js +5 -4
- package/dist/src/commands/_policy.d.ts +8 -0
- package/dist/src/commands/_policy.js +12 -5
- package/dist/src/commands/_preflight.d.ts +22 -0
- package/dist/src/commands/_preflight.js +190 -128
- package/dist/src/commands/_probes.d.ts +1 -0
- package/dist/src/commands/_run-driver-helpers.d.ts +99 -0
- package/dist/src/commands/_run-driver-helpers.js +75 -22
- package/dist/src/commands/_run-replay.d.ts +24 -0
- package/dist/src/commands/_run-replay.js +142 -0
- package/dist/src/commands/_server-client.d.ts +186 -0
- package/dist/src/commands/_server-client.js +360 -61
- package/dist/src/commands/_snapshot-upload.d.ts +39 -0
- package/dist/src/commands/_snapshot-upload.js +163 -39
- package/dist/src/commands/_spinner.d.ts +25 -0
- package/dist/src/commands/_spinner.js +65 -0
- package/dist/src/commands/_task-picker.d.ts +9 -0
- package/dist/src/commands/_task-picker.js +172 -19
- package/dist/src/commands/agent.d.ts +3 -0
- package/dist/src/commands/agent.js +39 -20
- package/dist/src/commands/browser.d.ts +65 -0
- package/dist/src/commands/browser.js +334 -51
- package/dist/src/commands/connect.d.ts +7 -0
- package/dist/src/commands/connect.js +272 -33
- package/dist/src/commands/dist.d.ts +28 -0
- package/dist/src/commands/dist.js +19 -12
- package/dist/src/commands/doctor.d.ts +3 -0
- package/dist/src/commands/doctor.js +378 -45
- package/dist/src/commands/github.d.ts +3 -0
- package/dist/src/commands/github.js +375 -53
- package/dist/src/commands/inbox.d.ts +30 -0
- package/dist/src/commands/inbox.js +760 -70
- package/dist/src/commands/init.d.ts +74 -0
- package/dist/src/commands/init.js +963 -119
- package/dist/src/commands/inspect.d.ts +3 -0
- package/dist/src/commands/inspect.js +588 -32
- package/dist/src/commands/inspector.d.ts +3 -0
- package/dist/src/commands/inspector.js +20 -13
- 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 +95 -27
- package/dist/src/commands/profile-and-review.d.ts +4 -0
- package/dist/src/commands/profile-and-review.js +26 -19
- package/dist/src/commands/queue.d.ts +3 -0
- package/dist/src/commands/queue.js +32 -12
- package/dist/src/commands/remote.d.ts +3 -0
- package/dist/src/commands/remote.js +43 -36
- package/dist/src/commands/repo-git-harness.d.ts +5 -0
- package/dist/src/commands/repo-git-harness.js +22 -15
- package/dist/src/commands/run.d.ts +3 -0
- package/dist/src/commands/run.js +1379 -159
- package/dist/src/commands/server.d.ts +7 -0
- package/dist/src/commands/server.js +502 -57
- package/dist/src/commands/setup.d.ts +16 -0
- package/dist/src/commands/setup.js +390 -63
- package/dist/src/commands/stats.d.ts +12 -0
- package/dist/src/commands/stats.js +1051 -0
- package/dist/src/commands/task-report-bug.d.ts +19 -0
- package/dist/src/commands/task-report-bug.js +260 -62
- package/dist/src/commands/task-run-driver.d.ts +132 -0
- package/dist/src/commands/task-run-driver.js +886 -130
- package/dist/src/commands/task.d.ts +14 -0
- package/dist/src/commands/task.js +1644 -314
- package/dist/src/commands/test.d.ts +3 -0
- package/dist/src/commands/test.js +15 -8
- package/dist/src/commands/workspace.d.ts +3 -0
- package/dist/src/commands/workspace.js +18 -11
- package/dist/src/commands.d.ts +29 -0
- package/dist/src/commands.js +10967 -6637
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +10168 -5787
- package/dist/src/launcher.d.ts +61 -0
- package/dist/src/launcher.js +77 -13
- package/dist/src/report-bug.d.ts +44 -0
- package/dist/src/report-bug.js +3 -3
- 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 +13 -6
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type RunnerContext } from "../runner";
|
|
2
|
+
import { buildRigInitConfigSource, type RigInitConfigInput } from "@rig/core";
|
|
3
|
+
import type { CommandOutcome } from "@rig/runtime/control-plane/runtime/types";
|
|
4
|
+
export { buildRigInitConfigSource };
|
|
5
|
+
export type { RigInitConfigInput };
|
|
6
|
+
type InitAuthMethod = "gh" | "token" | "device" | "skip";
|
|
7
|
+
type RemoteCheckoutStrategy = {
|
|
8
|
+
kind: "managed-clone";
|
|
9
|
+
} | {
|
|
10
|
+
kind: "current-ref";
|
|
11
|
+
ref?: string;
|
|
12
|
+
} | {
|
|
13
|
+
kind: "uploaded-snapshot";
|
|
14
|
+
} | {
|
|
15
|
+
kind: "existing-path";
|
|
16
|
+
path: string;
|
|
17
|
+
};
|
|
18
|
+
type InitControlPlaneOptions = {
|
|
19
|
+
demo?: boolean;
|
|
20
|
+
server?: "local" | "remote";
|
|
21
|
+
remoteUrl?: string;
|
|
22
|
+
connectionAlias?: string;
|
|
23
|
+
repoSlug?: string;
|
|
24
|
+
githubToken?: string;
|
|
25
|
+
githubAuthMethod?: InitAuthMethod;
|
|
26
|
+
githubProject?: "off" | string;
|
|
27
|
+
githubProjectStatusField?: string;
|
|
28
|
+
githubProjectStatuses?: Record<string, string>;
|
|
29
|
+
remoteCheckout?: RemoteCheckoutStrategy;
|
|
30
|
+
yes?: boolean;
|
|
31
|
+
repair?: boolean;
|
|
32
|
+
privateStateOnly?: boolean;
|
|
33
|
+
};
|
|
34
|
+
type InitPromptAdapter = {
|
|
35
|
+
intro?: (message: string) => void;
|
|
36
|
+
outro?: (message: string) => void;
|
|
37
|
+
cancel?: (message: string) => void;
|
|
38
|
+
isCancel: (value: unknown) => boolean;
|
|
39
|
+
text: (options: {
|
|
40
|
+
message: string;
|
|
41
|
+
placeholder?: string;
|
|
42
|
+
initialValue?: string;
|
|
43
|
+
defaultValue?: string;
|
|
44
|
+
}) => Promise<unknown>;
|
|
45
|
+
select: (options: {
|
|
46
|
+
message: string;
|
|
47
|
+
options: Array<{
|
|
48
|
+
value: string;
|
|
49
|
+
label: string;
|
|
50
|
+
hint?: string;
|
|
51
|
+
}>;
|
|
52
|
+
initialValue?: string;
|
|
53
|
+
}) => Promise<unknown>;
|
|
54
|
+
confirm?: (options: {
|
|
55
|
+
message: string;
|
|
56
|
+
initialValue?: boolean;
|
|
57
|
+
}) => Promise<unknown>;
|
|
58
|
+
};
|
|
59
|
+
export declare const DEMO_TASKS_RELATIVE_DIR = ".rig/demo-tasks";
|
|
60
|
+
/**
|
|
61
|
+
* The three sample tasks `rig init --demo` seeds. Shapes match what the
|
|
62
|
+
* standard plugin's files task source reads: one JSON object per file with
|
|
63
|
+
* id/title/body/status/labels (see packages/standard-plugin/src/files-source.ts).
|
|
64
|
+
*/
|
|
65
|
+
export declare const DEMO_TASKS: ReadonlyArray<Record<string, unknown>>;
|
|
66
|
+
/**
|
|
67
|
+
* `rig init --demo` — zero-GitHub, offline demo project: files task source
|
|
68
|
+
* pointing at .rig/demo-tasks/ with three seeded sample tasks, so an
|
|
69
|
+
* operator can see the full run lifecycle in minutes. Non-interactive and
|
|
70
|
+
* idempotent: an existing rig.config is left untouched unless --repair.
|
|
71
|
+
*/
|
|
72
|
+
export declare function runDemoInit(context: RunnerContext, options: InitControlPlaneOptions): CommandOutcome;
|
|
73
|
+
export declare function runInteractiveControlPlaneInit(context: RunnerContext, prompts: InitPromptAdapter): Promise<CommandOutcome>;
|
|
74
|
+
export declare function executeInit(context: RunnerContext, args: string[]): Promise<CommandOutcome>;
|