@h-rig/contracts 0.0.6-alpha.15 → 0.0.6-alpha.151
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/index.cjs +7456 -0
- package/dist/index.mjs +7415 -0
- package/dist/src/artifact.d.ts +13 -0
- package/dist/src/artifact.js +3 -0
- package/dist/src/baseSchemas.d.ts +63 -0
- package/dist/src/baseSchemas.js +6 -0
- package/dist/src/cli-output.d.ts +324 -0
- package/dist/src/cli-output.js +190 -0
- package/dist/src/config.d.ts +536 -0
- package/dist/src/config.js +1592 -162
- package/dist/src/conversation.d.ts +50 -0
- package/dist/src/conversation.js +3 -0
- package/dist/src/drift.d.ts +28 -0
- package/dist/src/drift.js +69 -0
- package/dist/src/editor.d.ts +25 -0
- package/dist/src/editor.js +3 -0
- package/dist/src/engine.d.ts +2789 -0
- package/dist/src/engine.js +127 -13
- package/dist/src/git.d.ts +144 -0
- package/dist/src/git.js +3 -0
- package/dist/src/graph.d.ts +323 -0
- package/dist/src/graph.js +124 -1
- package/dist/src/help-catalog.d.ts +34 -0
- package/dist/src/help-catalog.js +655 -0
- package/dist/src/index.d.ts +46 -0
- package/dist/src/index.js +4095 -1228
- package/dist/src/ipc.d.ts +248 -0
- package/dist/src/kernel.d.ts +221 -0
- package/dist/src/kernel.js +269 -0
- package/dist/src/keybindings.d.ts +71 -0
- package/dist/src/keybindings.js +3 -0
- package/dist/src/model.d.ts +77 -0
- package/dist/src/orchestration.d.ts +3695 -0
- package/dist/src/orchestration.js +3 -0
- package/dist/src/pi-session.d.ts +113 -0
- package/dist/src/pi-session.js +1 -0
- package/dist/src/planning.d.ts +64 -0
- package/dist/src/planning.js +90 -0
- package/dist/src/plugin-hooks.d.ts +51 -0
- package/dist/src/plugin-hooks.js +375 -0
- package/dist/src/plugin.d.ts +416 -0
- package/dist/src/plugin.js +332 -64
- package/dist/src/policy.d.ts +16 -0
- package/dist/src/policy.js +3 -0
- package/dist/src/project.d.ts +71 -0
- package/dist/src/project.js +3 -0
- package/dist/src/protocol-version.d.ts +21 -0
- package/dist/src/protocol-version.js +6 -0
- package/dist/src/provider.d.ts +105 -0
- package/dist/src/provider.js +3 -0
- package/dist/src/providerRuntime.d.ts +3949 -0
- package/dist/src/providerRuntime.js +3 -0
- package/dist/src/remote.d.ts +326 -0
- package/dist/src/remote.js +16 -10
- package/dist/src/review.d.ts +18 -0
- package/dist/src/review.js +3 -0
- package/dist/src/rig.d.ts +783 -0
- package/dist/src/rig.js +178 -15
- package/dist/src/rollups.d.ts +41 -0
- package/dist/src/rollups.js +70 -0
- package/dist/src/run-journal.d.ts +930 -0
- package/dist/src/run-journal.js +1641 -0
- package/dist/src/run-record.d.ts +45 -0
- package/dist/src/run-record.js +1 -0
- package/dist/src/run-session-journal.d.ts +93 -0
- package/dist/src/run-session-journal.js +1809 -0
- package/dist/src/run-status.d.ts +12 -0
- package/dist/src/run-status.js +38 -0
- package/dist/src/run-timeline.d.ts +10 -0
- package/dist/src/run-timeline.js +1499 -0
- package/dist/src/runtime.d.ts +103 -0
- package/dist/src/runtime.js +9 -4
- package/dist/src/server.d.ts +106 -0
- package/dist/src/server.js +3 -0
- package/dist/src/serviceFabric.d.ts +62 -0
- package/dist/src/serviceFabric.js +5 -2
- package/dist/src/stage.d.ts +245 -0
- package/dist/src/stage.js +169 -0
- package/dist/src/supervisor-journal.d.ts +205 -0
- package/dist/src/supervisor-journal.js +1246 -0
- package/dist/src/task-source.d.ts +37 -0
- package/dist/src/terminal.d.ts +130 -0
- package/dist/src/terminal.js +3 -0
- package/dist/src/validation.d.ts +14 -0
- package/dist/src/validation.js +3 -0
- package/dist/src/workflow-journal.d.ts +124 -0
- package/dist/src/workflow-journal.js +389 -0
- package/dist/src/workspace.d.ts +204 -0
- package/dist/src/workspace.js +5 -2
- package/dist/src/ws.d.ts +747 -0
- package/dist/src/ws.js +172 -14
- package/package.json +51 -4
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const RunKind: Schema.Literals<readonly ["adhoc", "task", "batch", "validation", "review"]>;
|
|
3
|
+
export type RunKind = typeof RunKind.Type;
|
|
4
|
+
export declare const RunMode: Schema.Literals<readonly ["interactive", "autonomous", "supervised"]>;
|
|
5
|
+
export type RunMode = typeof RunMode.Type;
|
|
6
|
+
export declare const RunStatus: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
7
|
+
export type RunStatus = typeof RunStatus.Type;
|
|
8
|
+
export declare const EngineSandboxMode: Schema.Literals<readonly ["read-only", "workspace-write", "danger-full-access"]>;
|
|
9
|
+
export type EngineSandboxMode = typeof EngineSandboxMode.Type;
|
|
10
|
+
export declare const IsolationMode: Schema.Literals<readonly ["none", "env", "worktree"]>;
|
|
11
|
+
export type IsolationMode = typeof IsolationMode.Type;
|
|
12
|
+
export declare const RuntimeStatus: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
|
|
13
|
+
export type RuntimeStatus = typeof RuntimeStatus.Type;
|
|
14
|
+
export declare const RunExecutionTarget: Schema.Literals<readonly ["local", "remote"]>;
|
|
15
|
+
export type RunExecutionTarget = typeof RunExecutionTarget.Type;
|
|
16
|
+
export declare const RunSummary: Schema.Struct<{
|
|
17
|
+
readonly id: Schema.brand<Schema.Trim, "RunId">;
|
|
18
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
19
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
20
|
+
readonly title: Schema.Trim;
|
|
21
|
+
readonly runKind: Schema.Literals<readonly ["adhoc", "task", "batch", "validation", "review"]>;
|
|
22
|
+
readonly mode: Schema.Literals<readonly ["interactive", "autonomous", "supervised"]>;
|
|
23
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
24
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
25
|
+
readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
26
|
+
readonly runtimeAdapter: Schema.Literal<"pi">;
|
|
27
|
+
readonly model: Schema.NullOr<Schema.Trim>;
|
|
28
|
+
readonly initialPrompt: Schema.NullOr<Schema.String>;
|
|
29
|
+
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
30
|
+
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
31
|
+
readonly remoteLeaseId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
32
|
+
readonly remoteLeaseClaimedAt: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
33
|
+
readonly activeRuntimeId: Schema.NullOr<Schema.brand<Schema.Trim, "EngineRuntimeId">>;
|
|
34
|
+
readonly latestMessageId: Schema.NullOr<Schema.Trim>;
|
|
35
|
+
readonly pendingApprovalCount: Schema.Int;
|
|
36
|
+
readonly pendingUserInputCount: Schema.Int;
|
|
37
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
38
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
39
|
+
readonly errorText: Schema.NullOr<Schema.String>;
|
|
40
|
+
readonly createdAt: Schema.String;
|
|
41
|
+
readonly updatedAt: Schema.String;
|
|
42
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
43
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
44
|
+
}>;
|
|
45
|
+
export type RunSummary = typeof RunSummary.Type;
|
|
46
|
+
export declare const RuntimeSummary: Schema.Struct<{
|
|
47
|
+
readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
|
|
48
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
49
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
50
|
+
readonly adapterKind: Schema.Literal<"pi">;
|
|
51
|
+
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
52
|
+
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
53
|
+
readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
|
|
54
|
+
readonly sandboxMode: Schema.Literals<readonly ["read-only", "workspace-write", "danger-full-access"]>;
|
|
55
|
+
readonly isolationMode: Schema.Literals<readonly ["none", "env", "worktree"]>;
|
|
56
|
+
readonly workspaceDir: Schema.NullOr<Schema.Trim>;
|
|
57
|
+
readonly homeDir: Schema.NullOr<Schema.Trim>;
|
|
58
|
+
readonly tmpDir: Schema.NullOr<Schema.Trim>;
|
|
59
|
+
readonly cacheDir: Schema.NullOr<Schema.Trim>;
|
|
60
|
+
readonly logsDir: Schema.NullOr<Schema.Trim>;
|
|
61
|
+
readonly stateDir: Schema.NullOr<Schema.Trim>;
|
|
62
|
+
readonly sessionDir: Schema.NullOr<Schema.Trim>;
|
|
63
|
+
readonly sessionLogPath: Schema.NullOr<Schema.Trim>;
|
|
64
|
+
readonly pid: Schema.NullOr<Schema.Int>;
|
|
65
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
66
|
+
readonly updatedAt: Schema.String;
|
|
67
|
+
readonly exitedAt: Schema.NullOr<Schema.String>;
|
|
68
|
+
}>;
|
|
69
|
+
export type RuntimeSummary = typeof RuntimeSummary.Type;
|
|
70
|
+
export declare const ApprovalStatus: Schema.Literals<readonly ["pending", "resolved"]>;
|
|
71
|
+
export type ApprovalStatus = typeof ApprovalStatus.Type;
|
|
72
|
+
export declare const ApprovalSummary: Schema.Struct<{
|
|
73
|
+
readonly id: Schema.Trim;
|
|
74
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
75
|
+
readonly actionId: Schema.NullOr<Schema.Trim>;
|
|
76
|
+
readonly requestKind: Schema.Trim;
|
|
77
|
+
readonly status: Schema.Literals<readonly ["pending", "resolved"]>;
|
|
78
|
+
readonly payload: Schema.Unknown;
|
|
79
|
+
readonly createdAt: Schema.String;
|
|
80
|
+
readonly resolvedAt: Schema.NullOr<Schema.String>;
|
|
81
|
+
}>;
|
|
82
|
+
export type ApprovalSummary = typeof ApprovalSummary.Type;
|
|
83
|
+
export declare const UserInputRequestSummary: Schema.Struct<{
|
|
84
|
+
readonly id: Schema.Trim;
|
|
85
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
86
|
+
readonly status: Schema.Literals<readonly ["pending", "resolved"]>;
|
|
87
|
+
readonly payload: Schema.Unknown;
|
|
88
|
+
readonly createdAt: Schema.String;
|
|
89
|
+
readonly resolvedAt: Schema.NullOr<Schema.String>;
|
|
90
|
+
}>;
|
|
91
|
+
export type UserInputRequestSummary = typeof UserInputRequestSummary.Type;
|
|
92
|
+
export declare const WorktreeSummary: Schema.Struct<{
|
|
93
|
+
readonly id: Schema.brand<Schema.Trim, "WorktreeId">;
|
|
94
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
95
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
96
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
97
|
+
readonly branchName: Schema.Trim;
|
|
98
|
+
readonly path: Schema.Trim;
|
|
99
|
+
readonly status: Schema.Trim;
|
|
100
|
+
readonly createdAt: Schema.String;
|
|
101
|
+
readonly cleanedAt: Schema.NullOr<Schema.String>;
|
|
102
|
+
}>;
|
|
103
|
+
export type WorktreeSummary = typeof WorktreeSummary.Type;
|
package/dist/src/runtime.js
CHANGED
|
@@ -16,6 +16,9 @@ var WorkspaceId = makeEntityId("WorkspaceId");
|
|
|
16
16
|
var GraphId = makeEntityId("GraphId");
|
|
17
17
|
var TaskId = makeEntityId("TaskId");
|
|
18
18
|
var RunId = makeEntityId("RunId");
|
|
19
|
+
var SafePathSegment = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)).pipe(Schema.brand("SafePathSegment"));
|
|
20
|
+
var SafeRunId = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/)).pipe(Schema.brand("SafeRunId"));
|
|
21
|
+
var SafeGitRefComponent = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)).pipe(Schema.brand("SafeGitRefComponent"));
|
|
19
22
|
var EngineRuntimeId = makeEntityId("EngineRuntimeId");
|
|
20
23
|
var ConversationId = makeEntityId("ConversationId");
|
|
21
24
|
var ActionId = makeEntityId("ActionId");
|
|
@@ -921,12 +924,14 @@ var RunStatus = Schema4.Literals([
|
|
|
921
924
|
"running",
|
|
922
925
|
"waiting-approval",
|
|
923
926
|
"waiting-user-input",
|
|
927
|
+
"paused",
|
|
924
928
|
"validating",
|
|
925
929
|
"reviewing",
|
|
930
|
+
"closing-out",
|
|
931
|
+
"needs-attention",
|
|
926
932
|
"completed",
|
|
927
933
|
"failed",
|
|
928
|
-
"
|
|
929
|
-
"paused"
|
|
934
|
+
"stopped"
|
|
930
935
|
]);
|
|
931
936
|
var EngineSandboxMode = Schema4.Literals([
|
|
932
937
|
"read-only",
|
|
@@ -954,7 +959,7 @@ var RunSummary = Schema4.Struct({
|
|
|
954
959
|
runtimeMode: RuntimeMode,
|
|
955
960
|
interactionMode: ProviderInteractionMode,
|
|
956
961
|
status: RunStatus,
|
|
957
|
-
runtimeAdapter:
|
|
962
|
+
runtimeAdapter: Schema4.Literal("pi"),
|
|
958
963
|
model: Schema4.NullOr(TrimmedNonEmptyString),
|
|
959
964
|
initialPrompt: Schema4.NullOr(Schema4.String),
|
|
960
965
|
executionTarget: Schema4.optional(RunExecutionTarget),
|
|
@@ -977,7 +982,7 @@ var RuntimeSummary = Schema4.Struct({
|
|
|
977
982
|
id: EngineRuntimeId,
|
|
978
983
|
workspaceId: WorkspaceId,
|
|
979
984
|
runId: RunId,
|
|
980
|
-
adapterKind:
|
|
985
|
+
adapterKind: Schema4.Literal("pi"),
|
|
981
986
|
executionTarget: Schema4.optional(RunExecutionTarget),
|
|
982
987
|
remoteHostId: Schema4.optional(Schema4.NullOr(TrimmedNonEmptyString)),
|
|
983
988
|
status: RuntimeStatus,
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const ServerConfigIssue: Schema.Union<readonly [Schema.Struct<{
|
|
3
|
+
readonly kind: Schema.Literal<"keybindings.malformed-config">;
|
|
4
|
+
readonly message: Schema.Trim;
|
|
5
|
+
}>, Schema.Struct<{
|
|
6
|
+
readonly kind: Schema.Literal<"keybindings.invalid-entry">;
|
|
7
|
+
readonly message: Schema.Trim;
|
|
8
|
+
readonly index: Schema.Number;
|
|
9
|
+
}>]>;
|
|
10
|
+
export type ServerConfigIssue = typeof ServerConfigIssue.Type;
|
|
11
|
+
export declare const ServerProviderStatusState: Schema.Literals<readonly ["ready", "warning", "error"]>;
|
|
12
|
+
export type ServerProviderStatusState = typeof ServerProviderStatusState.Type;
|
|
13
|
+
export declare const ServerProviderAuthStatus: Schema.Literals<readonly ["authenticated", "unauthenticated", "unknown"]>;
|
|
14
|
+
export type ServerProviderAuthStatus = typeof ServerProviderAuthStatus.Type;
|
|
15
|
+
export declare const ServerProviderStatus: Schema.Struct<{
|
|
16
|
+
readonly provider: Schema.Literals<readonly ["codex", "claude"]>;
|
|
17
|
+
readonly status: Schema.Literals<readonly ["ready", "warning", "error"]>;
|
|
18
|
+
readonly available: Schema.Boolean;
|
|
19
|
+
readonly authStatus: Schema.Literals<readonly ["authenticated", "unauthenticated", "unknown"]>;
|
|
20
|
+
readonly checkedAt: Schema.String;
|
|
21
|
+
readonly message: Schema.optional<Schema.Trim>;
|
|
22
|
+
}>;
|
|
23
|
+
export type ServerProviderStatus = typeof ServerProviderStatus.Type;
|
|
24
|
+
export declare const ServerConfig: Schema.Struct<{
|
|
25
|
+
readonly cwd: Schema.Trim;
|
|
26
|
+
readonly rigRoot: Schema.NullOr<Schema.Trim>;
|
|
27
|
+
readonly keybindingsConfigPath: Schema.Trim;
|
|
28
|
+
readonly keybindings: Schema.$Array<Schema.Struct<{
|
|
29
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["terminal.toggle", "terminal.split", "terminal.new", "terminal.close", "diff.toggle", "chat.new", "chat.newLocal", "editor.openFavorite"]>, Schema.TemplateLiteral<readonly [Schema.Literal<"script.">, Schema.String, Schema.Literal<".run">]>]>;
|
|
30
|
+
readonly shortcut: Schema.Struct<{
|
|
31
|
+
readonly key: Schema.Trim;
|
|
32
|
+
readonly metaKey: Schema.Boolean;
|
|
33
|
+
readonly ctrlKey: Schema.Boolean;
|
|
34
|
+
readonly shiftKey: Schema.Boolean;
|
|
35
|
+
readonly altKey: Schema.Boolean;
|
|
36
|
+
readonly modKey: Schema.Boolean;
|
|
37
|
+
}>;
|
|
38
|
+
readonly whenAst: Schema.optional<Schema.Schema<import("./keybindings").KeybindingWhenNode>>;
|
|
39
|
+
}>>;
|
|
40
|
+
readonly issues: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
41
|
+
readonly kind: Schema.Literal<"keybindings.malformed-config">;
|
|
42
|
+
readonly message: Schema.Trim;
|
|
43
|
+
}>, Schema.Struct<{
|
|
44
|
+
readonly kind: Schema.Literal<"keybindings.invalid-entry">;
|
|
45
|
+
readonly message: Schema.Trim;
|
|
46
|
+
readonly index: Schema.Number;
|
|
47
|
+
}>]>>;
|
|
48
|
+
readonly providers: Schema.$Array<Schema.Struct<{
|
|
49
|
+
readonly provider: Schema.Literals<readonly ["codex", "claude"]>;
|
|
50
|
+
readonly status: Schema.Literals<readonly ["ready", "warning", "error"]>;
|
|
51
|
+
readonly available: Schema.Boolean;
|
|
52
|
+
readonly authStatus: Schema.Literals<readonly ["authenticated", "unauthenticated", "unknown"]>;
|
|
53
|
+
readonly checkedAt: Schema.String;
|
|
54
|
+
readonly message: Schema.optional<Schema.Trim>;
|
|
55
|
+
}>>;
|
|
56
|
+
readonly availableEditors: Schema.$Array<Schema.Literals<("cursor" | "vscode" | "zed" | "file-manager")[]>>;
|
|
57
|
+
}>;
|
|
58
|
+
export type ServerConfig = typeof ServerConfig.Type;
|
|
59
|
+
export declare const ServerUpsertKeybindingInput: Schema.Struct<{
|
|
60
|
+
readonly key: Schema.Trim;
|
|
61
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["terminal.toggle", "terminal.split", "terminal.new", "terminal.close", "diff.toggle", "chat.new", "chat.newLocal", "editor.openFavorite"]>, Schema.TemplateLiteral<readonly [Schema.Literal<"script.">, Schema.String, Schema.Literal<".run">]>]>;
|
|
62
|
+
readonly when: Schema.optional<Schema.Trim>;
|
|
63
|
+
}>;
|
|
64
|
+
export type ServerUpsertKeybindingInput = typeof ServerUpsertKeybindingInput.Type;
|
|
65
|
+
export declare const ServerUpsertKeybindingResult: Schema.Struct<{
|
|
66
|
+
readonly keybindings: Schema.$Array<Schema.Struct<{
|
|
67
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["terminal.toggle", "terminal.split", "terminal.new", "terminal.close", "diff.toggle", "chat.new", "chat.newLocal", "editor.openFavorite"]>, Schema.TemplateLiteral<readonly [Schema.Literal<"script.">, Schema.String, Schema.Literal<".run">]>]>;
|
|
68
|
+
readonly shortcut: Schema.Struct<{
|
|
69
|
+
readonly key: Schema.Trim;
|
|
70
|
+
readonly metaKey: Schema.Boolean;
|
|
71
|
+
readonly ctrlKey: Schema.Boolean;
|
|
72
|
+
readonly shiftKey: Schema.Boolean;
|
|
73
|
+
readonly altKey: Schema.Boolean;
|
|
74
|
+
readonly modKey: Schema.Boolean;
|
|
75
|
+
}>;
|
|
76
|
+
readonly whenAst: Schema.optional<Schema.Schema<import("./keybindings").KeybindingWhenNode>>;
|
|
77
|
+
}>>;
|
|
78
|
+
readonly issues: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
79
|
+
readonly kind: Schema.Literal<"keybindings.malformed-config">;
|
|
80
|
+
readonly message: Schema.Trim;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
readonly kind: Schema.Literal<"keybindings.invalid-entry">;
|
|
83
|
+
readonly message: Schema.Trim;
|
|
84
|
+
readonly index: Schema.Number;
|
|
85
|
+
}>]>>;
|
|
86
|
+
}>;
|
|
87
|
+
export type ServerUpsertKeybindingResult = typeof ServerUpsertKeybindingResult.Type;
|
|
88
|
+
export declare const ServerConfigUpdatedPayload: Schema.Struct<{
|
|
89
|
+
readonly issues: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
90
|
+
readonly kind: Schema.Literal<"keybindings.malformed-config">;
|
|
91
|
+
readonly message: Schema.Trim;
|
|
92
|
+
}>, Schema.Struct<{
|
|
93
|
+
readonly kind: Schema.Literal<"keybindings.invalid-entry">;
|
|
94
|
+
readonly message: Schema.Trim;
|
|
95
|
+
readonly index: Schema.Number;
|
|
96
|
+
}>]>>;
|
|
97
|
+
readonly providers: Schema.$Array<Schema.Struct<{
|
|
98
|
+
readonly provider: Schema.Literals<readonly ["codex", "claude"]>;
|
|
99
|
+
readonly status: Schema.Literals<readonly ["ready", "warning", "error"]>;
|
|
100
|
+
readonly available: Schema.Boolean;
|
|
101
|
+
readonly authStatus: Schema.Literals<readonly ["authenticated", "unauthenticated", "unknown"]>;
|
|
102
|
+
readonly checkedAt: Schema.String;
|
|
103
|
+
readonly message: Schema.optional<Schema.Trim>;
|
|
104
|
+
}>>;
|
|
105
|
+
}>;
|
|
106
|
+
export type ServerConfigUpdatedPayload = typeof ServerConfigUpdatedPayload.Type;
|
package/dist/src/server.js
CHANGED
|
@@ -16,6 +16,9 @@ var WorkspaceId = makeEntityId("WorkspaceId");
|
|
|
16
16
|
var GraphId = makeEntityId("GraphId");
|
|
17
17
|
var TaskId = makeEntityId("TaskId");
|
|
18
18
|
var RunId = makeEntityId("RunId");
|
|
19
|
+
var SafePathSegment = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)).pipe(Schema.brand("SafePathSegment"));
|
|
20
|
+
var SafeRunId = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/)).pipe(Schema.brand("SafeRunId"));
|
|
21
|
+
var SafeGitRefComponent = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)).pipe(Schema.brand("SafeGitRefComponent"));
|
|
19
22
|
var EngineRuntimeId = makeEntityId("EngineRuntimeId");
|
|
20
23
|
var ConversationId = makeEntityId("ConversationId");
|
|
21
24
|
var ActionId = makeEntityId("ActionId");
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const ServiceFabricWorkspaceInput: Schema.Struct<{
|
|
3
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
4
|
+
}>;
|
|
5
|
+
export type ServiceFabricWorkspaceInput = typeof ServiceFabricWorkspaceInput.Type;
|
|
6
|
+
export declare const ServiceFabricUpInput: Schema.Struct<{
|
|
7
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
8
|
+
readonly services: Schema.optional<Schema.$Array<Schema.Trim>>;
|
|
9
|
+
}>;
|
|
10
|
+
export type ServiceFabricUpInput = typeof ServiceFabricUpInput.Type;
|
|
11
|
+
export declare const ServiceFabricUpResult: Schema.Struct<{
|
|
12
|
+
readonly plan: Schema.Struct<{
|
|
13
|
+
readonly generatedAt: Schema.String;
|
|
14
|
+
readonly serviceCount: Schema.Number;
|
|
15
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
16
|
+
readonly name: Schema.Trim;
|
|
17
|
+
readonly relativeRootPath: Schema.Trim;
|
|
18
|
+
readonly absoluteRootPath: Schema.Trim;
|
|
19
|
+
readonly port: Schema.Number;
|
|
20
|
+
readonly healthcheck: Schema.Trim;
|
|
21
|
+
readonly routePrefix: Schema.NullOr<Schema.Trim>;
|
|
22
|
+
readonly mode: Schema.Literals<readonly ["stub", "process"]>;
|
|
23
|
+
readonly command: Schema.NullOr<Schema.String>;
|
|
24
|
+
readonly environment: Schema.Unknown;
|
|
25
|
+
}>>;
|
|
26
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
27
|
+
}>;
|
|
28
|
+
readonly state: Schema.Struct<{
|
|
29
|
+
readonly generatedAt: Schema.String;
|
|
30
|
+
readonly rootPath: Schema.Trim;
|
|
31
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
32
|
+
readonly name: Schema.Trim;
|
|
33
|
+
readonly pid: Schema.Number;
|
|
34
|
+
readonly mode: Schema.Literals<readonly ["stub", "process"]>;
|
|
35
|
+
readonly port: Schema.Number;
|
|
36
|
+
readonly healthcheck: Schema.Trim;
|
|
37
|
+
readonly routePrefix: Schema.NullOr<Schema.Trim>;
|
|
38
|
+
readonly relativeRootPath: Schema.Trim;
|
|
39
|
+
readonly logPath: Schema.Trim;
|
|
40
|
+
}>>;
|
|
41
|
+
}>;
|
|
42
|
+
readonly summary: Schema.Struct<{
|
|
43
|
+
readonly updatedAt: Schema.String;
|
|
44
|
+
readonly status: Schema.Literals<readonly ["empty", "booting", "ready", "degraded", "stopped"]>;
|
|
45
|
+
readonly serviceCount: Schema.Number;
|
|
46
|
+
readonly healthyServiceCount: Schema.Number;
|
|
47
|
+
readonly stateDir: Schema.Trim;
|
|
48
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
49
|
+
readonly name: Schema.Trim;
|
|
50
|
+
readonly relativeRootPath: Schema.Trim;
|
|
51
|
+
readonly mode: Schema.Literals<readonly ["stub", "process"]>;
|
|
52
|
+
readonly port: Schema.Number;
|
|
53
|
+
readonly healthcheck: Schema.Trim;
|
|
54
|
+
readonly routePrefix: Schema.NullOr<Schema.Trim>;
|
|
55
|
+
readonly status: Schema.Literals<readonly ["planned", "booting", "healthy", "degraded", "failed", "stopped"]>;
|
|
56
|
+
readonly pid: Schema.NullOr<Schema.Number>;
|
|
57
|
+
readonly logPath: Schema.NullOr<Schema.Trim>;
|
|
58
|
+
}>>;
|
|
59
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
60
|
+
}>;
|
|
61
|
+
}>;
|
|
62
|
+
export type ServiceFabricUpResult = typeof ServiceFabricUpResult.Type;
|
|
@@ -16,6 +16,9 @@ var WorkspaceId = makeEntityId("WorkspaceId");
|
|
|
16
16
|
var GraphId = makeEntityId("GraphId");
|
|
17
17
|
var TaskId = makeEntityId("TaskId");
|
|
18
18
|
var RunId = makeEntityId("RunId");
|
|
19
|
+
var SafePathSegment = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)).pipe(Schema.brand("SafePathSegment"));
|
|
20
|
+
var SafeRunId = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/)).pipe(Schema.brand("SafeRunId"));
|
|
21
|
+
var SafeGitRefComponent = TrimmedNonEmptyString.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)).pipe(Schema.brand("SafeGitRefComponent"));
|
|
19
22
|
var EngineRuntimeId = makeEntityId("EngineRuntimeId");
|
|
20
23
|
var ConversationId = makeEntityId("ConversationId");
|
|
21
24
|
var ActionId = makeEntityId("ActionId");
|
|
@@ -967,7 +970,7 @@ var WorkspaceRemoteHostSummary = Schema4.Struct({
|
|
|
967
970
|
region: Schema4.NullOr(TrimmedNonEmptyString),
|
|
968
971
|
labels: Schema4.Array(TrimmedNonEmptyString),
|
|
969
972
|
capabilities: Schema4.Array(TrimmedNonEmptyString),
|
|
970
|
-
runtimeAdapters: Schema4.Array(
|
|
973
|
+
runtimeAdapters: Schema4.Array(Schema4.Literal("pi")),
|
|
971
974
|
status: WorkspaceRemoteHostStatus,
|
|
972
975
|
currentLeaseCount: Schema4.Number,
|
|
973
976
|
lastHeartbeatAt: Schema4.NullOr(IsoDateTime),
|
|
@@ -1008,7 +1011,7 @@ var WorkspaceSummary = Schema4.Struct({
|
|
|
1008
1011
|
title: TrimmedNonEmptyString,
|
|
1009
1012
|
rootPath: TrimmedNonEmptyString,
|
|
1010
1013
|
sourceKind: WorkspaceSourceKind,
|
|
1011
|
-
defaultRuntimeAdapter: Schema4.optional(
|
|
1014
|
+
defaultRuntimeAdapter: Schema4.optional(Schema4.Literal("pi")),
|
|
1012
1015
|
defaultProvider: Schema4.optional(ProviderKind),
|
|
1013
1016
|
defaultModel: Schema4.NullOr(TrimmedNonEmptyString),
|
|
1014
1017
|
topology: Schema4.optional(WorkspaceTopologySummary),
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const StageKind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
3
|
+
export type StageKind = typeof StageKind.Type;
|
|
4
|
+
export declare const StageId: Schema.brand<Schema.Trim, "StageId">;
|
|
5
|
+
export type StageId = typeof StageId.Type;
|
|
6
|
+
export declare const StageContext: Schema.Struct<{
|
|
7
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
8
|
+
readonly taskId: Schema.optional<Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>>;
|
|
9
|
+
readonly state: Schema.Unknown;
|
|
10
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
11
|
+
}>;
|
|
12
|
+
export type StageContext = typeof StageContext.Type;
|
|
13
|
+
export declare const StageDescriptor: Schema.Struct<{
|
|
14
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
15
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
16
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
17
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
18
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
19
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
20
|
+
}>;
|
|
21
|
+
export type StageDescriptor = typeof StageDescriptor.Type;
|
|
22
|
+
export declare const Stage: Schema.Struct<{
|
|
23
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
24
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
25
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
26
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
27
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
28
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
29
|
+
}>;
|
|
30
|
+
export type Stage = typeof Stage.Type;
|
|
31
|
+
export declare const StageContinueResult: Schema.Struct<{
|
|
32
|
+
readonly kind: Schema.Literal<"continue">;
|
|
33
|
+
readonly ctx: Schema.Struct<{
|
|
34
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
35
|
+
readonly taskId: Schema.optional<Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>>;
|
|
36
|
+
readonly state: Schema.Unknown;
|
|
37
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
38
|
+
}>;
|
|
39
|
+
}>;
|
|
40
|
+
export type StageContinueResult = typeof StageContinueResult.Type;
|
|
41
|
+
export declare const StageAllowResult: Schema.Struct<{
|
|
42
|
+
readonly kind: Schema.Literal<"allow">;
|
|
43
|
+
}>;
|
|
44
|
+
export type StageAllowResult = typeof StageAllowResult.Type;
|
|
45
|
+
export declare const StageBlockResult: Schema.Struct<{
|
|
46
|
+
readonly kind: Schema.Literal<"block">;
|
|
47
|
+
readonly reason: Schema.Trim;
|
|
48
|
+
}>;
|
|
49
|
+
export type StageBlockResult = typeof StageBlockResult.Type;
|
|
50
|
+
export declare const StageResult: Schema.Union<readonly [Schema.Struct<{
|
|
51
|
+
readonly kind: Schema.Literal<"continue">;
|
|
52
|
+
readonly ctx: Schema.Struct<{
|
|
53
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
54
|
+
readonly taskId: Schema.optional<Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>>;
|
|
55
|
+
readonly state: Schema.Unknown;
|
|
56
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
57
|
+
}>;
|
|
58
|
+
}>, Schema.Struct<{
|
|
59
|
+
readonly kind: Schema.Literal<"allow">;
|
|
60
|
+
}>, Schema.Struct<{
|
|
61
|
+
readonly kind: Schema.Literal<"block">;
|
|
62
|
+
readonly reason: Schema.Trim;
|
|
63
|
+
}>]>;
|
|
64
|
+
export type StageResult = typeof StageResult.Type;
|
|
65
|
+
export type StageRun = (ctx: StageContext) => Promise<StageResult> | StageResult;
|
|
66
|
+
export declare const StageWrapperDescriptor: Schema.Struct<{
|
|
67
|
+
readonly id: Schema.Trim;
|
|
68
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
69
|
+
}>;
|
|
70
|
+
export type StageWrapperDescriptor = typeof StageWrapperDescriptor.Type;
|
|
71
|
+
export type StageWrapper = (next: StageRun, ctx: StageContext) => Promise<StageResult> | StageResult;
|
|
72
|
+
export declare const StageMutationOp: Schema.Literals<readonly ["insert", "remove", "replace", "wrap", "reorder"]>;
|
|
73
|
+
export type StageMutationOp = typeof StageMutationOp.Type;
|
|
74
|
+
export declare const InsertStageMutation: Schema.Struct<{
|
|
75
|
+
readonly op: Schema.Literal<"insert">;
|
|
76
|
+
readonly stage: Schema.Struct<{
|
|
77
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
78
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
79
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
80
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
81
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
82
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
83
|
+
}>;
|
|
84
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
85
|
+
}>;
|
|
86
|
+
export type InsertStageMutation = typeof InsertStageMutation.Type;
|
|
87
|
+
export declare const RemoveStageMutation: Schema.Struct<{
|
|
88
|
+
readonly op: Schema.Literal<"remove">;
|
|
89
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
90
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
91
|
+
}>;
|
|
92
|
+
export type RemoveStageMutation = typeof RemoveStageMutation.Type;
|
|
93
|
+
export declare const ReplaceStageMutation: Schema.Struct<{
|
|
94
|
+
readonly op: Schema.Literal<"replace">;
|
|
95
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
96
|
+
readonly stage: Schema.Struct<{
|
|
97
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
98
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
99
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
100
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
101
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
102
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
103
|
+
}>;
|
|
104
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
105
|
+
}>;
|
|
106
|
+
export type ReplaceStageMutation = typeof ReplaceStageMutation.Type;
|
|
107
|
+
export declare const WrapStageMutation: Schema.Struct<{
|
|
108
|
+
readonly op: Schema.Literal<"wrap">;
|
|
109
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
110
|
+
readonly around: Schema.Struct<{
|
|
111
|
+
readonly id: Schema.Trim;
|
|
112
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
113
|
+
}>;
|
|
114
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
115
|
+
}>;
|
|
116
|
+
export type WrapStageMutation = typeof WrapStageMutation.Type;
|
|
117
|
+
export declare const ReorderStageMutation: Schema.Struct<{
|
|
118
|
+
readonly op: Schema.Literal<"reorder">;
|
|
119
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
120
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
121
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
122
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
123
|
+
}>;
|
|
124
|
+
export type ReorderStageMutation = typeof ReorderStageMutation.Type;
|
|
125
|
+
export declare const StageMutation: Schema.Union<readonly [Schema.Struct<{
|
|
126
|
+
readonly op: Schema.Literal<"insert">;
|
|
127
|
+
readonly stage: Schema.Struct<{
|
|
128
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
129
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
130
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
131
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
132
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
133
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
134
|
+
}>;
|
|
135
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
136
|
+
}>, Schema.Struct<{
|
|
137
|
+
readonly op: Schema.Literal<"remove">;
|
|
138
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
139
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
140
|
+
}>, Schema.Struct<{
|
|
141
|
+
readonly op: Schema.Literal<"replace">;
|
|
142
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
143
|
+
readonly stage: Schema.Struct<{
|
|
144
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
145
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
146
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
147
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
148
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
149
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
150
|
+
}>;
|
|
151
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
152
|
+
}>, Schema.Struct<{
|
|
153
|
+
readonly op: Schema.Literal<"wrap">;
|
|
154
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
155
|
+
readonly around: Schema.Struct<{
|
|
156
|
+
readonly id: Schema.Trim;
|
|
157
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
158
|
+
}>;
|
|
159
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
160
|
+
}>, Schema.Struct<{
|
|
161
|
+
readonly op: Schema.Literal<"reorder">;
|
|
162
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
163
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
164
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
165
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
166
|
+
}>]>;
|
|
167
|
+
export type StageMutation = typeof StageMutation.Type;
|
|
168
|
+
export declare const ResolutionGrantUse: Schema.Struct<{
|
|
169
|
+
readonly kind: Schema.Literal<"kernel-replacement">;
|
|
170
|
+
readonly target: Schema.Trim;
|
|
171
|
+
readonly pluginId: Schema.Trim;
|
|
172
|
+
}>;
|
|
173
|
+
export type ResolutionGrantUse = typeof ResolutionGrantUse.Type;
|
|
174
|
+
export declare const ResolutionRecordEntry: Schema.Struct<{
|
|
175
|
+
readonly stageId: Schema.brand<Schema.Trim, "StageId">;
|
|
176
|
+
readonly contributedBy: Schema.Trim;
|
|
177
|
+
readonly removedBy: Schema.optional<Schema.Trim>;
|
|
178
|
+
readonly replacedBy: Schema.optional<Schema.Trim>;
|
|
179
|
+
readonly wrappedBy: Schema.optional<Schema.$Array<Schema.Trim>>;
|
|
180
|
+
readonly droppedAnchors: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
181
|
+
readonly isProtected: Schema.Boolean;
|
|
182
|
+
}>;
|
|
183
|
+
export type ResolutionRecordEntry = typeof ResolutionRecordEntry.Type;
|
|
184
|
+
export declare const ResolvedPipeline: Schema.Struct<{
|
|
185
|
+
readonly runId: Schema.optional<Schema.brand<Schema.Trim, "RunId">>;
|
|
186
|
+
readonly order: Schema.$Array<Schema.brand<Schema.Trim, "StageId">>;
|
|
187
|
+
readonly record: Schema.$Array<Schema.Struct<{
|
|
188
|
+
readonly stageId: Schema.brand<Schema.Trim, "StageId">;
|
|
189
|
+
readonly contributedBy: Schema.Trim;
|
|
190
|
+
readonly removedBy: Schema.optional<Schema.Trim>;
|
|
191
|
+
readonly replacedBy: Schema.optional<Schema.Trim>;
|
|
192
|
+
readonly wrappedBy: Schema.optional<Schema.$Array<Schema.Trim>>;
|
|
193
|
+
readonly droppedAnchors: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
194
|
+
readonly isProtected: Schema.Boolean;
|
|
195
|
+
}>>;
|
|
196
|
+
readonly cycles: Schema.$Array<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
197
|
+
readonly grantUses: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
198
|
+
readonly kind: Schema.Literal<"kernel-replacement">;
|
|
199
|
+
readonly target: Schema.Trim;
|
|
200
|
+
readonly pluginId: Schema.Trim;
|
|
201
|
+
}>>>;
|
|
202
|
+
readonly resolvedAt: Schema.optional<Schema.String>;
|
|
203
|
+
}>;
|
|
204
|
+
export type ResolvedPipeline = typeof ResolvedPipeline.Type;
|
|
205
|
+
export declare const ResolutionRecord: Schema.Struct<{
|
|
206
|
+
readonly runId: Schema.optional<Schema.brand<Schema.Trim, "RunId">>;
|
|
207
|
+
readonly order: Schema.$Array<Schema.brand<Schema.Trim, "StageId">>;
|
|
208
|
+
readonly record: Schema.$Array<Schema.Struct<{
|
|
209
|
+
readonly stageId: Schema.brand<Schema.Trim, "StageId">;
|
|
210
|
+
readonly contributedBy: Schema.Trim;
|
|
211
|
+
readonly removedBy: Schema.optional<Schema.Trim>;
|
|
212
|
+
readonly replacedBy: Schema.optional<Schema.Trim>;
|
|
213
|
+
readonly wrappedBy: Schema.optional<Schema.$Array<Schema.Trim>>;
|
|
214
|
+
readonly droppedAnchors: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
215
|
+
readonly isProtected: Schema.Boolean;
|
|
216
|
+
}>>;
|
|
217
|
+
readonly cycles: Schema.$Array<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
218
|
+
readonly grantUses: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
219
|
+
readonly kind: Schema.Literal<"kernel-replacement">;
|
|
220
|
+
readonly target: Schema.Trim;
|
|
221
|
+
readonly pluginId: Schema.Trim;
|
|
222
|
+
}>>>;
|
|
223
|
+
readonly resolvedAt: Schema.optional<Schema.String>;
|
|
224
|
+
}>;
|
|
225
|
+
export type ResolutionRecord = typeof ResolutionRecord.Type;
|
|
226
|
+
export declare const StageRunOutcome: Schema.Struct<{
|
|
227
|
+
readonly stageId: Schema.brand<Schema.Trim, "StageId">;
|
|
228
|
+
readonly result: Schema.Union<readonly [Schema.Struct<{
|
|
229
|
+
readonly kind: Schema.Literal<"continue">;
|
|
230
|
+
readonly ctx: Schema.Struct<{
|
|
231
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
232
|
+
readonly taskId: Schema.optional<Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>>;
|
|
233
|
+
readonly state: Schema.Unknown;
|
|
234
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
235
|
+
}>;
|
|
236
|
+
}>, Schema.Struct<{
|
|
237
|
+
readonly kind: Schema.Literal<"allow">;
|
|
238
|
+
}>, Schema.Struct<{
|
|
239
|
+
readonly kind: Schema.Literal<"block">;
|
|
240
|
+
readonly reason: Schema.Trim;
|
|
241
|
+
}>]>;
|
|
242
|
+
readonly startedAt: Schema.String;
|
|
243
|
+
readonly finishedAt: Schema.String;
|
|
244
|
+
}>;
|
|
245
|
+
export type StageRunOutcome = typeof StageRunOutcome.Type;
|