@h-rig/core 0.0.6-alpha.155 → 0.0.6-alpha.156
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/src/config.d.ts +1 -1
- package/dist/src/config.js +4 -91
- package/dist/src/define-plugin.d.ts +11 -7
- package/dist/src/define-plugin.js +4 -91
- package/dist/src/index.d.ts +1 -11
- package/dist/src/index.js +33 -3704
- package/dist/src/plugin-host.d.ts +25 -18
- package/dist/src/plugin-host.js +28 -149
- package/dist/src/plugin-runtime.d.ts +82 -51
- package/dist/src/project-plugins.d.ts +66 -0
- package/dist/src/project-plugins.js +596 -0
- package/dist/src/task-io.d.ts +54 -0
- package/dist/src/task-io.js +707 -0
- package/package.json +8 -20
- package/dist/src/dependencyGraph.d.ts +0 -43
- package/dist/src/dependencyGraph.js +0 -703
- package/dist/src/engineReadModelReducer.d.ts +0 -12
- package/dist/src/engineReadModelReducer.js +0 -1784
- package/dist/src/rig-init-builder.d.ts +0 -30
- package/dist/src/rig-init-builder.js +0 -61
- package/dist/src/rigSelectors.d.ts +0 -220
- package/dist/src/rigSelectors.js +0 -414
- package/dist/src/rollups.d.ts +0 -6
- package/dist/src/rollups.js +0 -377
- package/dist/src/stageResolve.d.ts +0 -77
- package/dist/src/stageResolve.js +0 -361
- package/dist/src/taskGraph.d.ts +0 -64
- package/dist/src/taskGraph.js +0 -377
- package/dist/src/taskGraphCodes.d.ts +0 -3
- package/dist/src/taskGraphCodes.js +0 -26
- package/dist/src/taskGraphLayout.d.ts +0 -61
- package/dist/src/taskGraphLayout.js +0 -397
- package/dist/src/taskScore.d.ts +0 -17
- package/dist/src/taskScore.js +0 -49
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure builder that turns a small input shape into the source text of a
|
|
3
|
-
* `rig.config.ts` file. Shared between the CLI `rig init` wizard and the
|
|
4
|
-
* desktop app's in-app setup wizard so both surfaces produce identical
|
|
5
|
-
* output.
|
|
6
|
-
*
|
|
7
|
-
* Pure — no fs, no node, no imports outside this file. Safe to bundle into
|
|
8
|
-
* a renderer (Vite, esbuild, webpack).
|
|
9
|
-
*/
|
|
10
|
-
export type RigInitConfigInput = {
|
|
11
|
-
projectName: string;
|
|
12
|
-
projectRepo?: string;
|
|
13
|
-
taskSource: {
|
|
14
|
-
kind: "github-issues";
|
|
15
|
-
owner: string;
|
|
16
|
-
repo: string;
|
|
17
|
-
assignee?: string;
|
|
18
|
-
} | {
|
|
19
|
-
kind: "files";
|
|
20
|
-
path: string;
|
|
21
|
-
};
|
|
22
|
-
useStandardPlugin: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Remote run placement (ssh target, e.g. `ubuntu@host`). Omit / empty = local
|
|
25
|
-
* placement (runs execute where `rig` starts) — the default. Surfaced as a
|
|
26
|
-
* dedicated `rig init` step; written to `runtime.server.sshTarget`.
|
|
27
|
-
*/
|
|
28
|
-
sshTarget?: string;
|
|
29
|
-
};
|
|
30
|
-
export declare function buildRigInitConfigSource(input: RigInitConfigInput): string;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// packages/core/src/rig-init-builder.ts
|
|
3
|
-
function buildRigInitConfigSource(input) {
|
|
4
|
-
const lines = [`import { defineConfig } from "@rig/core/config";`];
|
|
5
|
-
if (input.useStandardPlugin) {
|
|
6
|
-
lines.push(`import { standardPlugins } from "@rig/standard-plugin/bundle";`);
|
|
7
|
-
if (input.taskSource.kind === "github-issues") {
|
|
8
|
-
lines.push(`import { createStateGitHubCredentialProvider } from "@rig/standard-plugin";`);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
lines.push(``, `export default defineConfig({`);
|
|
12
|
-
const projectRepo = input.projectRepo ?? (input.taskSource.kind === "github-issues" ? `${input.taskSource.owner}/${input.taskSource.repo}` : undefined);
|
|
13
|
-
lines.push(projectRepo ? ` project: { name: ${JSON.stringify(input.projectName)}, repo: ${JSON.stringify(projectRepo)} },` : ` project: { name: ${JSON.stringify(input.projectName)} },`);
|
|
14
|
-
if (input.useStandardPlugin && input.taskSource.kind === "github-issues") {
|
|
15
|
-
lines.push(` plugins: [...standardPlugins({`);
|
|
16
|
-
lines.push(` taskSources: {`);
|
|
17
|
-
lines.push(` githubCredentialProvider: createStateGitHubCredentialProvider(),`);
|
|
18
|
-
lines.push(` githubWorkspaceId: ${JSON.stringify(`${input.taskSource.owner}/${input.taskSource.repo}`)},`);
|
|
19
|
-
lines.push(` githubUserId: process.env.RIG_GITHUB_USER_ID ?? "server-selected-user",`);
|
|
20
|
-
lines.push(` },`);
|
|
21
|
-
lines.push(` })],`);
|
|
22
|
-
} else {
|
|
23
|
-
lines.push(` plugins: [${input.useStandardPlugin ? "...standardPlugins()" : ""}],`);
|
|
24
|
-
}
|
|
25
|
-
if (input.taskSource.kind === "github-issues") {
|
|
26
|
-
lines.push(` taskSource: {`);
|
|
27
|
-
lines.push(` kind: "github-issues",`);
|
|
28
|
-
lines.push(` owner: ${JSON.stringify(input.taskSource.owner)},`);
|
|
29
|
-
lines.push(` repo: ${JSON.stringify(input.taskSource.repo)},`);
|
|
30
|
-
lines.push(` // labels: ["task"], // uncomment to filter by labels`);
|
|
31
|
-
lines.push(` state: "open",`);
|
|
32
|
-
if (input.taskSource.assignee?.trim()) {
|
|
33
|
-
lines.push(` options: { assignee: ${JSON.stringify(input.taskSource.assignee.trim())} },`);
|
|
34
|
-
}
|
|
35
|
-
lines.push(` },`);
|
|
36
|
-
} else {
|
|
37
|
-
lines.push(` taskSource: {`);
|
|
38
|
-
lines.push(` kind: "files",`);
|
|
39
|
-
lines.push(` path: ${JSON.stringify(input.taskSource.path)},`);
|
|
40
|
-
lines.push(` },`);
|
|
41
|
-
}
|
|
42
|
-
lines.push(` workspace: { mainRepo: ".", isolation: "worktree" },`);
|
|
43
|
-
const sshTarget = input.sshTarget?.trim();
|
|
44
|
-
lines.push(sshTarget ? ` runtime: { harness: "pi", mode: "yolo", server: { sshTarget: ${JSON.stringify(sshTarget)} } },` : ` runtime: { harness: "pi", mode: "yolo" }, // server.sshTarget unset = local placement`);
|
|
45
|
-
lines.push(` planning: { mode: "auto" },`);
|
|
46
|
-
lines.push(` github: {`);
|
|
47
|
-
lines.push(` issueUpdates: "lifecycle",`);
|
|
48
|
-
lines.push(` projects: { enabled: false },`);
|
|
49
|
-
lines.push(` },`);
|
|
50
|
-
lines.push(` automation: { maxValidationAttempts: 30, maxPrFixIterations: 100500 },`);
|
|
51
|
-
lines.push(` pr: { mode: "auto", watchChecks: true, autoFixChecks: true, autoFixReview: true },`);
|
|
52
|
-
lines.push(` merge: { mode: "auto", method: "repo-default", deleteBranch: "repo-default", bypass: false },`);
|
|
53
|
-
lines.push(` issueAnalysis: { enabled: true, harness: "pi", mode: "continuous" },`);
|
|
54
|
-
lines.push(`});`);
|
|
55
|
-
lines.push(``);
|
|
56
|
-
return lines.join(`
|
|
57
|
-
`);
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
buildRigInitConfigSource
|
|
61
|
-
};
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import type { ArtifactSummary, ApprovalSummary, EngineReadModel, GraphSummary, QueueEntry, RemoteConnectionSummary, RemoteEndpoint, RunId, RunJournalProjection, RunStatus, RunSummary, TaskId, TaskStatus, TaskSummary, UserInputRequestSummary, WorkspaceId, WorkspaceSummary } from "@rig/contracts";
|
|
2
|
-
import type { TaskDependencyProjection } from "./taskGraph";
|
|
3
|
-
export declare function selectWorkspaces(snapshot: EngineReadModel | null): readonly WorkspaceSummary[];
|
|
4
|
-
export declare function selectPrimaryWorkspace(snapshot: EngineReadModel | null): WorkspaceSummary | null;
|
|
5
|
-
export declare function pickDefaultWorkspaceId(snapshot: EngineReadModel | null): WorkspaceId | null;
|
|
6
|
-
export declare function selectWorkspace(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): WorkspaceSummary | null;
|
|
7
|
-
export declare function selectTask(snapshot: EngineReadModel | null, taskId: TaskId | null): TaskSummary | null;
|
|
8
|
-
export declare function selectTasksByWorkspace(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): TaskSummary[];
|
|
9
|
-
export declare const selectTasksForWorkspace: typeof selectTasksByWorkspace;
|
|
10
|
-
export declare function selectTasksByStatus(snapshot: EngineReadModel | null, status: TaskStatus): TaskSummary[];
|
|
11
|
-
export type RigTaskSessionProjection = Pick<RunJournalProjection, "record" | "status" | "lastEventAt"> & {
|
|
12
|
-
readonly taskId?: string | null;
|
|
13
|
-
};
|
|
14
|
-
export interface RigTaskStatusGroupingInput<T extends TaskDependencyProjection = TaskDependencyProjection> {
|
|
15
|
-
readonly tasks: readonly T[];
|
|
16
|
-
readonly sessions?: readonly RigTaskSessionProjection[];
|
|
17
|
-
readonly workspaceId?: string | null;
|
|
18
|
-
}
|
|
19
|
-
export interface RigTaskStatusGroup<T extends TaskDependencyProjection = TaskDependencyProjection> {
|
|
20
|
-
readonly status: string;
|
|
21
|
-
readonly tasks: readonly T[];
|
|
22
|
-
}
|
|
23
|
-
export declare function projectTaskStatusForGrouping(status: string | null | undefined): string;
|
|
24
|
-
export declare function projectRunStatusForTaskGrouping(status: RunStatus | null | undefined): string | null;
|
|
25
|
-
export declare function projectTaskStatusWithSessions(task: TaskDependencyProjection, sessionsByTask?: ReadonlyMap<string, RigTaskSessionProjection>): string;
|
|
26
|
-
export declare function selectTasksGroupedByStatus(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): Array<{
|
|
27
|
-
status: string;
|
|
28
|
-
tasks: readonly TaskSummary[];
|
|
29
|
-
}>;
|
|
30
|
-
export declare function selectTasksGroupedByStatus<T extends TaskDependencyProjection>(input: RigTaskStatusGroupingInput<T>): Array<RigTaskStatusGroup<T>>;
|
|
31
|
-
export declare function normalizeTaskAssigneeFilter(assignee: string | null | undefined, currentUserLogin?: string | null): string | null;
|
|
32
|
-
export declare function readTaskAssigneeLogins(task: TaskDependencyProjection): readonly string[];
|
|
33
|
-
export declare function taskMatchesAssigneeFilter(task: TaskDependencyProjection, assignee: string | null | undefined, options?: {
|
|
34
|
-
readonly currentUserLogin?: string | null;
|
|
35
|
-
}): boolean;
|
|
36
|
-
export declare function selectTasksAssignedTo<T extends TaskDependencyProjection>(tasks: readonly T[], assignee: string | null | undefined, options?: {
|
|
37
|
-
readonly currentUserLogin?: string | null;
|
|
38
|
-
}): T[];
|
|
39
|
-
export declare function selectTasksAssignedToMe<T extends TaskDependencyProjection>(tasks: readonly T[], currentUserLogin: string | null | undefined): T[];
|
|
40
|
-
export declare function selectRun(snapshot: EngineReadModel | null, runId: RunId | null): RunSummary | null;
|
|
41
|
-
export declare function selectRunsByTask(snapshot: EngineReadModel | null, taskId: TaskId | null): RunSummary[];
|
|
42
|
-
export declare const selectRunsForTask: typeof selectRunsByTask;
|
|
43
|
-
export declare function selectRunsForWorkspace(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): RunSummary[];
|
|
44
|
-
export declare function selectAdhocRuns(snapshot: EngineReadModel | null): RunSummary[];
|
|
45
|
-
export declare function selectAdhocRunsForWorkspace(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): RunSummary[];
|
|
46
|
-
export declare function selectGraphsForWorkspace(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): GraphSummary[];
|
|
47
|
-
export declare function selectQueueForWorkspace(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): QueueEntry[];
|
|
48
|
-
export declare function selectPendingApprovals(snapshot: EngineReadModel | null): ApprovalSummary[];
|
|
49
|
-
export declare function selectApprovalsForRun(snapshot: EngineReadModel | null, runId: RunId | null): ApprovalSummary[];
|
|
50
|
-
export declare function selectPendingApprovalsForRun(snapshot: EngineReadModel | null, runId: RunId | null): ApprovalSummary[];
|
|
51
|
-
export declare function selectApprovalsForWorkspace(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): ApprovalSummary[];
|
|
52
|
-
export declare function selectUserInputsForRun(snapshot: EngineReadModel | null, runId: RunId | null): UserInputRequestSummary[];
|
|
53
|
-
export declare function selectPendingUserInputs(snapshot: EngineReadModel | null): UserInputRequestSummary[];
|
|
54
|
-
export declare function selectPendingUserInputsForRun(snapshot: EngineReadModel | null, runId: RunId | null): UserInputRequestSummary[];
|
|
55
|
-
export declare function selectUserInputsForWorkspace(snapshot: EngineReadModel | null, workspaceId: WorkspaceId | null): UserInputRequestSummary[];
|
|
56
|
-
export declare function selectRuntimeForRun(snapshot: EngineReadModel | null, runId: RunId | null): {
|
|
57
|
-
readonly id: string & import("effect/Brand").Brand<"EngineRuntimeId">;
|
|
58
|
-
readonly updatedAt: string;
|
|
59
|
-
readonly status: "starting" | "running" | "interrupted" | "failed" | "prepared" | "exited" | "destroyed";
|
|
60
|
-
readonly startedAt: string | null;
|
|
61
|
-
readonly pid: number | null;
|
|
62
|
-
readonly stateDir: string | null;
|
|
63
|
-
readonly workspaceId: string & import("effect/Brand").Brand<"WorkspaceId">;
|
|
64
|
-
readonly adapterKind: "pi";
|
|
65
|
-
readonly workspaceDir: string | null;
|
|
66
|
-
readonly homeDir: string | null;
|
|
67
|
-
readonly tmpDir: string | null;
|
|
68
|
-
readonly cacheDir: string | null;
|
|
69
|
-
readonly logsDir: string | null;
|
|
70
|
-
readonly sessionDir: string | null;
|
|
71
|
-
readonly sessionLogPath: string | null;
|
|
72
|
-
readonly exitedAt: string | null;
|
|
73
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
74
|
-
readonly sandboxMode: "read-only" | "workspace-write" | "danger-full-access";
|
|
75
|
-
readonly isolationMode: "none" | "env" | "worktree";
|
|
76
|
-
readonly executionTarget?: "remote" | "local" | undefined;
|
|
77
|
-
readonly remoteHostId?: string | null | undefined;
|
|
78
|
-
} | null;
|
|
79
|
-
export declare function selectLatestRuntimeForTask(snapshot: EngineReadModel | null, taskId: TaskId | null): {
|
|
80
|
-
readonly id: string & import("effect/Brand").Brand<"EngineRuntimeId">;
|
|
81
|
-
readonly updatedAt: string;
|
|
82
|
-
readonly status: "starting" | "running" | "interrupted" | "failed" | "prepared" | "exited" | "destroyed";
|
|
83
|
-
readonly startedAt: string | null;
|
|
84
|
-
readonly pid: number | null;
|
|
85
|
-
readonly stateDir: string | null;
|
|
86
|
-
readonly workspaceId: string & import("effect/Brand").Brand<"WorkspaceId">;
|
|
87
|
-
readonly adapterKind: "pi";
|
|
88
|
-
readonly workspaceDir: string | null;
|
|
89
|
-
readonly homeDir: string | null;
|
|
90
|
-
readonly tmpDir: string | null;
|
|
91
|
-
readonly cacheDir: string | null;
|
|
92
|
-
readonly logsDir: string | null;
|
|
93
|
-
readonly sessionDir: string | null;
|
|
94
|
-
readonly sessionLogPath: string | null;
|
|
95
|
-
readonly exitedAt: string | null;
|
|
96
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
97
|
-
readonly sandboxMode: "read-only" | "workspace-write" | "danger-full-access";
|
|
98
|
-
readonly isolationMode: "none" | "env" | "worktree";
|
|
99
|
-
readonly executionTarget?: "remote" | "local" | undefined;
|
|
100
|
-
readonly remoteHostId?: string | null | undefined;
|
|
101
|
-
} | null;
|
|
102
|
-
export declare function selectActionsForTask(snapshot: EngineReadModel | null, taskId: TaskId | null): {
|
|
103
|
-
readonly id: string & import("effect/Brand").Brand<"ActionId">;
|
|
104
|
-
readonly title: string;
|
|
105
|
-
readonly completedAt: string | null;
|
|
106
|
-
readonly payload: unknown;
|
|
107
|
-
readonly startedAt: string;
|
|
108
|
-
readonly state: string;
|
|
109
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
110
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
111
|
-
readonly detail: string | null;
|
|
112
|
-
readonly actionType: string;
|
|
113
|
-
}[];
|
|
114
|
-
export declare function selectApprovalsForTask(snapshot: EngineReadModel | null, taskId: TaskId | null): {
|
|
115
|
-
readonly id: string;
|
|
116
|
-
readonly createdAt: string;
|
|
117
|
-
readonly status: "pending" | "resolved";
|
|
118
|
-
readonly payload: unknown;
|
|
119
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
120
|
-
readonly actionId: string | null;
|
|
121
|
-
readonly resolvedAt: string | null;
|
|
122
|
-
readonly requestKind: string;
|
|
123
|
-
}[];
|
|
124
|
-
export declare function selectUserInputsForTask(snapshot: EngineReadModel | null, taskId: TaskId | null): {
|
|
125
|
-
readonly id: string;
|
|
126
|
-
readonly createdAt: string;
|
|
127
|
-
readonly status: "pending" | "resolved";
|
|
128
|
-
readonly payload: unknown;
|
|
129
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
130
|
-
readonly resolvedAt: string | null;
|
|
131
|
-
}[];
|
|
132
|
-
export declare function selectValidationsForRun(snapshot: EngineReadModel | null, runId: RunId | null): {
|
|
133
|
-
readonly id: string & import("effect/Brand").Brand<"ValidationResultId">;
|
|
134
|
-
readonly status: "running" | "pending" | "failed" | "passed" | "skipped";
|
|
135
|
-
readonly completedAt: string | null;
|
|
136
|
-
readonly startedAt: string;
|
|
137
|
-
readonly taskId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
138
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
139
|
-
readonly validatorKey: string;
|
|
140
|
-
readonly output: unknown;
|
|
141
|
-
}[];
|
|
142
|
-
export declare function selectValidationsForTask(snapshot: EngineReadModel | null, taskId: TaskId | null): {
|
|
143
|
-
readonly id: string & import("effect/Brand").Brand<"ValidationResultId">;
|
|
144
|
-
readonly status: "running" | "pending" | "failed" | "passed" | "skipped";
|
|
145
|
-
readonly completedAt: string | null;
|
|
146
|
-
readonly startedAt: string;
|
|
147
|
-
readonly taskId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
148
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
149
|
-
readonly validatorKey: string;
|
|
150
|
-
readonly output: unknown;
|
|
151
|
-
}[];
|
|
152
|
-
export declare function selectFailedValidations(snapshot: EngineReadModel | null, runId: RunId | null): {
|
|
153
|
-
readonly id: string & import("effect/Brand").Brand<"ValidationResultId">;
|
|
154
|
-
readonly status: "running" | "pending" | "failed" | "passed" | "skipped";
|
|
155
|
-
readonly completedAt: string | null;
|
|
156
|
-
readonly startedAt: string;
|
|
157
|
-
readonly taskId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
158
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
159
|
-
readonly validatorKey: string;
|
|
160
|
-
readonly output: unknown;
|
|
161
|
-
}[];
|
|
162
|
-
export declare function selectReviewsForRun(snapshot: EngineReadModel | null, runId: RunId | null): {
|
|
163
|
-
readonly id: string & import("effect/Brand").Brand<"ReviewResultId">;
|
|
164
|
-
readonly createdAt: string;
|
|
165
|
-
readonly status: "running" | "error" | "rejected" | "pending" | "approved";
|
|
166
|
-
readonly completedAt: string | null;
|
|
167
|
-
readonly summary: string | null;
|
|
168
|
-
readonly provider: string;
|
|
169
|
-
readonly mode: "required" | "off" | "advisory";
|
|
170
|
-
readonly taskId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
171
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
172
|
-
readonly output: unknown;
|
|
173
|
-
}[];
|
|
174
|
-
export declare function selectReviewsForTask(snapshot: EngineReadModel | null, taskId: TaskId | null): {
|
|
175
|
-
readonly id: string & import("effect/Brand").Brand<"ReviewResultId">;
|
|
176
|
-
readonly createdAt: string;
|
|
177
|
-
readonly status: "running" | "error" | "rejected" | "pending" | "approved";
|
|
178
|
-
readonly completedAt: string | null;
|
|
179
|
-
readonly summary: string | null;
|
|
180
|
-
readonly provider: string;
|
|
181
|
-
readonly mode: "required" | "off" | "advisory";
|
|
182
|
-
readonly taskId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
183
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
184
|
-
readonly output: unknown;
|
|
185
|
-
}[];
|
|
186
|
-
export declare function selectArtifactsForRun(snapshot: EngineReadModel | null, runId: RunId | null): ArtifactSummary[];
|
|
187
|
-
export declare function selectArtifactsForTask(snapshot: EngineReadModel | null, taskId: TaskId | null): ArtifactSummary[];
|
|
188
|
-
export declare function selectPolicyDecisionsForTask(snapshot: EngineReadModel | null, taskId: TaskId | null): {
|
|
189
|
-
readonly id: string;
|
|
190
|
-
readonly createdAt: string;
|
|
191
|
-
readonly decision: "allow" | "block" | "warn";
|
|
192
|
-
readonly mode: "observe" | "off" | "enforce";
|
|
193
|
-
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
194
|
-
readonly actionId: (string & import("effect/Brand").Brand<"ActionId">) | null;
|
|
195
|
-
readonly reason: string;
|
|
196
|
-
readonly matchedRules: readonly string[];
|
|
197
|
-
}[];
|
|
198
|
-
export declare function selectRemoteEndpoints(snapshot: EngineReadModel | null): readonly RemoteEndpoint[];
|
|
199
|
-
export declare function selectRemoteConnections(snapshot: EngineReadModel | null): readonly RemoteConnectionSummary[];
|
|
200
|
-
export declare function selectRemoteEndpoint(snapshot: EngineReadModel | null, endpointId: string | null): {
|
|
201
|
-
readonly id: string & import("effect/Brand").Brand<"RemoteEndpointId">;
|
|
202
|
-
readonly port: number;
|
|
203
|
-
readonly host: string;
|
|
204
|
-
readonly lastConnectedAt: string | null;
|
|
205
|
-
readonly alias: string;
|
|
206
|
-
readonly token: string;
|
|
207
|
-
readonly addedAt: string;
|
|
208
|
-
readonly tokenConfigured?: boolean | undefined;
|
|
209
|
-
readonly autoConnect?: boolean | undefined;
|
|
210
|
-
} | null;
|
|
211
|
-
export declare function selectRemoteConnection(snapshot: EngineReadModel | null, endpointId: string | null): {
|
|
212
|
-
readonly error: string | null;
|
|
213
|
-
readonly status: "error" | "disconnected" | "connecting" | "authenticating" | "connected" | "reconnecting";
|
|
214
|
-
readonly endpointId: string & import("effect/Brand").Brand<"RemoteEndpointId">;
|
|
215
|
-
readonly connectedAt: string | null;
|
|
216
|
-
readonly tokenExpiresAt: string | null;
|
|
217
|
-
readonly latencyMs: number | null;
|
|
218
|
-
readonly subscribedEvents: readonly string[];
|
|
219
|
-
} | null;
|
|
220
|
-
export declare function selectConnectedRemoteCount(snapshot: EngineReadModel | null): number;
|