@maiaos/protocol 0.1.0-canary.44938d4.manual.1
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 +239 -0
- package/dist/aggregate/revision-effect-schema.d.ts +3 -0
- package/dist/aggregate/revision-effect-schema.d.ts.map +1 -0
- package/dist/aggregate/revision-effect-schema.js +4 -0
- package/dist/aggregate/revision-effect-schema.js.map +1 -0
- package/dist/capability.d.ts +12 -0
- package/dist/capability.d.ts.map +1 -0
- package/dist/capability.js +27 -0
- package/dist/capability.js.map +1 -0
- package/dist/command-receipt/contract.d.ts +85 -0
- package/dist/command-receipt/contract.d.ts.map +1 -0
- package/dist/command-receipt/contract.js +12 -0
- package/dist/command-receipt/contract.js.map +1 -0
- package/dist/command-receipt/effect-schema.d.ts +78 -0
- package/dist/command-receipt/effect-schema.d.ts.map +1 -0
- package/dist/command-receipt/effect-schema.js +72 -0
- package/dist/command-receipt/effect-schema.js.map +1 -0
- package/dist/command-receipt/policy.d.ts +16 -0
- package/dist/command-receipt/policy.d.ts.map +1 -0
- package/dist/command-receipt/policy.js +76 -0
- package/dist/command-receipt/policy.js.map +1 -0
- package/dist/command-receipt/version.d.ts +2 -0
- package/dist/command-receipt/version.d.ts.map +1 -0
- package/dist/command-receipt/version.js +2 -0
- package/dist/command-receipt/version.js.map +1 -0
- package/dist/configuration.d.ts +63 -0
- package/dist/configuration.d.ts.map +1 -0
- package/dist/configuration.js +93 -0
- package/dist/configuration.js.map +1 -0
- package/dist/envelope-effect-schema.d.ts +49 -0
- package/dist/envelope-effect-schema.d.ts.map +1 -0
- package/dist/envelope-effect-schema.js +50 -0
- package/dist/envelope-effect-schema.js.map +1 -0
- package/dist/envelope-policy.d.ts +4 -0
- package/dist/envelope-policy.d.ts.map +1 -0
- package/dist/envelope-policy.js +4 -0
- package/dist/envelope-policy.js.map +1 -0
- package/dist/envelope.d.ts +52 -0
- package/dist/envelope.d.ts.map +1 -0
- package/dist/envelope.js +41 -0
- package/dist/envelope.js.map +1 -0
- package/dist/execution/contract.d.ts +230 -0
- package/dist/execution/contract.d.ts.map +1 -0
- package/dist/execution/contract.js +16 -0
- package/dist/execution/contract.js.map +1 -0
- package/dist/execution/effect-schema.d.ts +370 -0
- package/dist/execution/effect-schema.d.ts.map +1 -0
- package/dist/execution/effect-schema.js +148 -0
- package/dist/execution/effect-schema.js.map +1 -0
- package/dist/execution/version.d.ts +5 -0
- package/dist/execution/version.d.ts.map +1 -0
- package/dist/execution/version.js +5 -0
- package/dist/execution/version.js.map +1 -0
- package/dist/harness/installed/contract.d.ts +144 -0
- package/dist/harness/installed/contract.d.ts.map +1 -0
- package/dist/harness/installed/contract.js +6 -0
- package/dist/harness/installed/contract.js.map +1 -0
- package/dist/harness/installed/effect-schema.d.ts +261 -0
- package/dist/harness/installed/effect-schema.d.ts.map +1 -0
- package/dist/harness/installed/effect-schema.js +63 -0
- package/dist/harness/installed/effect-schema.js.map +1 -0
- package/dist/harness/installed/version.d.ts +2 -0
- package/dist/harness/installed/version.d.ts.map +1 -0
- package/dist/harness/installed/version.js +2 -0
- package/dist/harness/installed/version.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/integration-authorization/contract.d.ts +3495 -0
- package/dist/integration-authorization/contract.d.ts.map +1 -0
- package/dist/integration-authorization/contract.js +25 -0
- package/dist/integration-authorization/contract.js.map +1 -0
- package/dist/integration-authorization/effect-schema.d.ts +4495 -0
- package/dist/integration-authorization/effect-schema.d.ts.map +1 -0
- package/dist/integration-authorization/effect-schema.js +293 -0
- package/dist/integration-authorization/effect-schema.js.map +1 -0
- package/dist/integration-authorization/policy.d.ts +5 -0
- package/dist/integration-authorization/policy.d.ts.map +1 -0
- package/dist/integration-authorization/policy.js +5 -0
- package/dist/integration-authorization/policy.js.map +1 -0
- package/dist/integration-authorization/version.d.ts +2 -0
- package/dist/integration-authorization/version.d.ts.map +1 -0
- package/dist/integration-authorization/version.js +2 -0
- package/dist/integration-authorization/version.js.map +1 -0
- package/dist/invocation-context/contract.d.ts +38 -0
- package/dist/invocation-context/contract.d.ts.map +1 -0
- package/dist/invocation-context/contract.js +7 -0
- package/dist/invocation-context/contract.js.map +1 -0
- package/dist/invocation-context/effect-schema.d.ts +63 -0
- package/dist/invocation-context/effect-schema.d.ts.map +1 -0
- package/dist/invocation-context/effect-schema.js +52 -0
- package/dist/invocation-context/effect-schema.js.map +1 -0
- package/dist/invocation-context/policy.d.ts +8 -0
- package/dist/invocation-context/policy.d.ts.map +1 -0
- package/dist/invocation-context/policy.js +8 -0
- package/dist/invocation-context/policy.js.map +1 -0
- package/dist/invocation-context/version.d.ts +2 -0
- package/dist/invocation-context/version.d.ts.map +1 -0
- package/dist/invocation-context/version.js +2 -0
- package/dist/invocation-context/version.js.map +1 -0
- package/dist/local-node/contract.d.ts +233 -0
- package/dist/local-node/contract.d.ts.map +1 -0
- package/dist/local-node/contract.js +43 -0
- package/dist/local-node/contract.js.map +1 -0
- package/dist/local-node/effect-schema.d.ts +58786 -0
- package/dist/local-node/effect-schema.d.ts.map +1 -0
- package/dist/local-node/effect-schema.js +279 -0
- package/dist/local-node/effect-schema.js.map +1 -0
- package/dist/local-node/methods.d.ts +4 -0
- package/dist/local-node/methods.d.ts.map +1 -0
- package/dist/local-node/methods.js +73 -0
- package/dist/local-node/methods.js.map +1 -0
- package/dist/local-node/policy.d.ts +11 -0
- package/dist/local-node/policy.d.ts.map +1 -0
- package/dist/local-node/policy.js +11 -0
- package/dist/local-node/policy.js.map +1 -0
- package/dist/local-node.d.ts +2 -0
- package/dist/local-node.d.ts.map +1 -0
- package/dist/local-node.js +2 -0
- package/dist/local-node.js.map +1 -0
- package/dist/orchestration/canonical.d.ts +12 -0
- package/dist/orchestration/canonical.d.ts.map +1 -0
- package/dist/orchestration/canonical.js +50 -0
- package/dist/orchestration/canonical.js.map +1 -0
- package/dist/orchestration/contract.d.ts +2867 -0
- package/dist/orchestration/contract.d.ts.map +1 -0
- package/dist/orchestration/contract.js +45 -0
- package/dist/orchestration/contract.js.map +1 -0
- package/dist/orchestration/effect-schema.d.ts +4933 -0
- package/dist/orchestration/effect-schema.d.ts.map +1 -0
- package/dist/orchestration/effect-schema.js +610 -0
- package/dist/orchestration/effect-schema.js.map +1 -0
- package/dist/orchestration/policy.d.ts +28 -0
- package/dist/orchestration/policy.d.ts.map +1 -0
- package/dist/orchestration/policy.js +28 -0
- package/dist/orchestration/policy.js.map +1 -0
- package/dist/orchestration/topology.d.ts +13 -0
- package/dist/orchestration/topology.d.ts.map +1 -0
- package/dist/orchestration/topology.js +109 -0
- package/dist/orchestration/topology.js.map +1 -0
- package/dist/orchestration/version.d.ts +3 -0
- package/dist/orchestration/version.d.ts.map +1 -0
- package/dist/orchestration/version.js +3 -0
- package/dist/orchestration/version.js.map +1 -0
- package/dist/project-workspace/contract.d.ts +346 -0
- package/dist/project-workspace/contract.d.ts.map +1 -0
- package/dist/project-workspace/contract.js +20 -0
- package/dist/project-workspace/contract.js.map +1 -0
- package/dist/project-workspace/effect-schema.d.ts +602 -0
- package/dist/project-workspace/effect-schema.d.ts.map +1 -0
- package/dist/project-workspace/effect-schema.js +185 -0
- package/dist/project-workspace/effect-schema.js.map +1 -0
- package/dist/project-workspace/version.d.ts +5 -0
- package/dist/project-workspace/version.d.ts.map +1 -0
- package/dist/project-workspace/version.js +5 -0
- package/dist/project-workspace/version.js.map +1 -0
- package/dist/runtime/contract.d.ts +172 -0
- package/dist/runtime/contract.d.ts.map +1 -0
- package/dist/runtime/contract.js +6 -0
- package/dist/runtime/contract.js.map +1 -0
- package/dist/runtime/effect-schema.d.ts +211 -0
- package/dist/runtime/effect-schema.d.ts.map +1 -0
- package/dist/runtime/effect-schema.js +137 -0
- package/dist/runtime/effect-schema.js.map +1 -0
- package/dist/runtime/version.d.ts +2 -0
- package/dist/runtime/version.d.ts.map +1 -0
- package/dist/runtime/version.js +2 -0
- package/dist/runtime/version.js.map +1 -0
- package/dist/runtime-schema-effect.d.ts +4 -0
- package/dist/runtime-schema-effect.d.ts.map +1 -0
- package/dist/runtime-schema-effect.js +25 -0
- package/dist/runtime-schema-effect.js.map +1 -0
- package/dist/runtime-schema.d.ts +23 -0
- package/dist/runtime-schema.d.ts.map +1 -0
- package/dist/runtime-schema.js +12 -0
- package/dist/runtime-schema.js.map +1 -0
- package/dist/session/contract.d.ts +666 -0
- package/dist/session/contract.d.ts.map +1 -0
- package/dist/session/contract.js +16 -0
- package/dist/session/contract.js.map +1 -0
- package/dist/session/effect-schema.d.ts +1176 -0
- package/dist/session/effect-schema.d.ts.map +1 -0
- package/dist/session/effect-schema.js +195 -0
- package/dist/session/effect-schema.js.map +1 -0
- package/dist/session/version.d.ts +4 -0
- package/dist/session/version.d.ts.map +1 -0
- package/dist/session/version.js +4 -0
- package/dist/session/version.js.map +1 -0
- package/dist/temporal/recorded-at.d.ts +3 -0
- package/dist/temporal/recorded-at.d.ts.map +1 -0
- package/dist/temporal/recorded-at.js +13 -0
- package/dist/temporal/recorded-at.js.map +1 -0
- package/dist/terminal/contract.d.ts +3502 -0
- package/dist/terminal/contract.d.ts.map +1 -0
- package/dist/terminal/contract.js +31 -0
- package/dist/terminal/contract.js.map +1 -0
- package/dist/terminal/effect-schema.d.ts +15745 -0
- package/dist/terminal/effect-schema.d.ts.map +1 -0
- package/dist/terminal/effect-schema.js +193 -0
- package/dist/terminal/effect-schema.js.map +1 -0
- package/dist/terminal/live-contract.d.ts +87 -0
- package/dist/terminal/live-contract.d.ts.map +1 -0
- package/dist/terminal/live-contract.js +52 -0
- package/dist/terminal/live-contract.js.map +1 -0
- package/dist/terminal/live-effect-schema.d.ts +24770 -0
- package/dist/terminal/live-effect-schema.d.ts.map +1 -0
- package/dist/terminal/live-effect-schema.js +987 -0
- package/dist/terminal/live-effect-schema.js.map +1 -0
- package/dist/terminal/live-policy.d.ts +79 -0
- package/dist/terminal/live-policy.d.ts.map +1 -0
- package/dist/terminal/live-policy.js +91 -0
- package/dist/terminal/live-policy.js.map +1 -0
- package/dist/terminal/live-types.d.ts +584 -0
- package/dist/terminal/live-types.d.ts.map +1 -0
- package/dist/terminal/live-types.js +2 -0
- package/dist/terminal/live-types.js.map +1 -0
- package/dist/terminal/live-version.d.ts +4 -0
- package/dist/terminal/live-version.d.ts.map +1 -0
- package/dist/terminal/live-version.js +4 -0
- package/dist/terminal/live-version.js.map +1 -0
- package/dist/terminal/policy.d.ts +5 -0
- package/dist/terminal/policy.d.ts.map +1 -0
- package/dist/terminal/policy.js +5 -0
- package/dist/terminal/policy.js.map +1 -0
- package/dist/terminal/version.d.ts +4 -0
- package/dist/terminal/version.d.ts.map +1 -0
- package/dist/terminal/version.js +4 -0
- package/dist/terminal/version.js.map +1 -0
- package/dist/turn/contract.d.ts +493 -0
- package/dist/turn/contract.d.ts.map +1 -0
- package/dist/turn/contract.js +14 -0
- package/dist/turn/contract.js.map +1 -0
- package/dist/turn/effect-schema.d.ts +1063 -0
- package/dist/turn/effect-schema.d.ts.map +1 -0
- package/dist/turn/effect-schema.js +215 -0
- package/dist/turn/effect-schema.js.map +1 -0
- package/dist/turn/policy.d.ts +3 -0
- package/dist/turn/policy.d.ts.map +1 -0
- package/dist/turn/policy.js +3 -0
- package/dist/turn/policy.js.map +1 -0
- package/dist/turn/version.d.ts +2 -0
- package/dist/turn/version.d.ts.map +1 -0
- package/dist/turn/version.js +2 -0
- package/dist/turn/version.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import type { InferRuntimeSchema } from "../runtime-schema.js";
|
|
2
|
+
export declare const executionProviderDescriptorSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
3
|
+
readonly binding: "unavailable";
|
|
4
|
+
readonly builtIn: true;
|
|
5
|
+
readonly deploymentMode: "agentless";
|
|
6
|
+
readonly id: "provider_local_host";
|
|
7
|
+
readonly kind: "local-host";
|
|
8
|
+
readonly reason: "local_provider_unbound";
|
|
9
|
+
readonly releaseQualified: false;
|
|
10
|
+
readonly revision: "1";
|
|
11
|
+
readonly schemaVersion: "maia.execution/v1alpha1";
|
|
12
|
+
readonly trust: "trusted_host";
|
|
13
|
+
}>;
|
|
14
|
+
export type ExecutionProviderDescriptor = InferRuntimeSchema<typeof executionProviderDescriptorSchema>;
|
|
15
|
+
export declare const executionProfileSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
16
|
+
readonly builtIn: true;
|
|
17
|
+
readonly id: "execution_profile_local_host";
|
|
18
|
+
readonly name: "Local host";
|
|
19
|
+
readonly providerId: "provider_local_host";
|
|
20
|
+
readonly revision: "1";
|
|
21
|
+
readonly schemaVersion: "maia.execution/v1alpha1";
|
|
22
|
+
}>;
|
|
23
|
+
export type ExecutionProfile = InferRuntimeSchema<typeof executionProfileSchema>;
|
|
24
|
+
export declare const placementPolicySchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
25
|
+
readonly builtIn: true;
|
|
26
|
+
readonly id: "placement_policy_local_default";
|
|
27
|
+
readonly name: "Local default";
|
|
28
|
+
readonly profileIds: readonly ["execution_profile_local_host"];
|
|
29
|
+
readonly revision: "1";
|
|
30
|
+
readonly schemaVersion: "maia.execution/v1alpha1";
|
|
31
|
+
}>;
|
|
32
|
+
export type PlacementPolicy = InferRuntimeSchema<typeof placementPolicySchema>;
|
|
33
|
+
export declare const workspaceExecutionSelectionSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly kind: "profile";
|
|
36
|
+
} | {
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly kind: "policy";
|
|
39
|
+
}>;
|
|
40
|
+
export type WorkspaceExecutionSelection = InferRuntimeSchema<typeof workspaceExecutionSelectionSchema>;
|
|
41
|
+
export declare const workspaceExecutionBindingSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
42
|
+
readonly selection: {
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly kind: "profile";
|
|
45
|
+
} | {
|
|
46
|
+
readonly id: string;
|
|
47
|
+
readonly kind: "policy";
|
|
48
|
+
};
|
|
49
|
+
readonly workspaceId: string;
|
|
50
|
+
readonly workspaceRevision: string;
|
|
51
|
+
}>;
|
|
52
|
+
export type WorkspaceExecutionBinding = InferRuntimeSchema<typeof workspaceExecutionBindingSchema>;
|
|
53
|
+
export declare const workspaceExecutionResolutionSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
54
|
+
readonly reason: "local_provider_unbound";
|
|
55
|
+
readonly selectedProfileId: string;
|
|
56
|
+
readonly selection: {
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly kind: "profile";
|
|
59
|
+
} | {
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly kind: "policy";
|
|
62
|
+
};
|
|
63
|
+
readonly source: "workspace" | "node-default";
|
|
64
|
+
readonly status: "unavailable";
|
|
65
|
+
readonly workspaceId: string;
|
|
66
|
+
readonly workspaceRevision: string;
|
|
67
|
+
}>;
|
|
68
|
+
export type WorkspaceExecutionResolution = InferRuntimeSchema<typeof workspaceExecutionResolutionSchema>;
|
|
69
|
+
export declare const executionCatalogGetParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
70
|
+
readonly [x: string]: never;
|
|
71
|
+
}>;
|
|
72
|
+
export type ExecutionCatalogGetParameters = InferRuntimeSchema<typeof executionCatalogGetParametersSchema>;
|
|
73
|
+
export declare const executionCatalogGetResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
74
|
+
readonly defaultPolicyId: "placement_policy_local_default";
|
|
75
|
+
readonly method: "execution.catalog.get";
|
|
76
|
+
readonly policies: readonly [{
|
|
77
|
+
readonly builtIn: true;
|
|
78
|
+
readonly id: "placement_policy_local_default";
|
|
79
|
+
readonly name: "Local default";
|
|
80
|
+
readonly profileIds: readonly ["execution_profile_local_host"];
|
|
81
|
+
readonly revision: "1";
|
|
82
|
+
readonly schemaVersion: "maia.execution/v1alpha1";
|
|
83
|
+
}];
|
|
84
|
+
readonly profiles: readonly [{
|
|
85
|
+
readonly builtIn: true;
|
|
86
|
+
readonly id: "execution_profile_local_host";
|
|
87
|
+
readonly name: "Local host";
|
|
88
|
+
readonly providerId: "provider_local_host";
|
|
89
|
+
readonly revision: "1";
|
|
90
|
+
readonly schemaVersion: "maia.execution/v1alpha1";
|
|
91
|
+
}];
|
|
92
|
+
readonly providers: readonly [{
|
|
93
|
+
readonly binding: "unavailable";
|
|
94
|
+
readonly builtIn: true;
|
|
95
|
+
readonly deploymentMode: "agentless";
|
|
96
|
+
readonly id: "provider_local_host";
|
|
97
|
+
readonly kind: "local-host";
|
|
98
|
+
readonly reason: "local_provider_unbound";
|
|
99
|
+
readonly releaseQualified: false;
|
|
100
|
+
readonly revision: "1";
|
|
101
|
+
readonly schemaVersion: "maia.execution/v1alpha1";
|
|
102
|
+
readonly trust: "trusted_host";
|
|
103
|
+
}];
|
|
104
|
+
}>;
|
|
105
|
+
export type ExecutionCatalogGetResult = InferRuntimeSchema<typeof executionCatalogGetResultSchema>;
|
|
106
|
+
export declare const workspaceExecutionShowParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
107
|
+
readonly workspaceId: string;
|
|
108
|
+
}>;
|
|
109
|
+
export type WorkspaceExecutionShowParameters = InferRuntimeSchema<typeof workspaceExecutionShowParametersSchema>;
|
|
110
|
+
export declare const workspaceExecutionShowResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
111
|
+
readonly method: "workspace.execution.show";
|
|
112
|
+
readonly workspace: {
|
|
113
|
+
readonly createdAt: string;
|
|
114
|
+
readonly id: string;
|
|
115
|
+
readonly kind: "local-main" | "git-worktree";
|
|
116
|
+
readonly name: string;
|
|
117
|
+
readonly projectId: string;
|
|
118
|
+
readonly revision: string;
|
|
119
|
+
readonly schemaVersion: 1;
|
|
120
|
+
readonly state: "provisioning" | "ready" | "removing" | "failed";
|
|
121
|
+
readonly updatedAt: string;
|
|
122
|
+
};
|
|
123
|
+
readonly resolution: {
|
|
124
|
+
readonly reason: "local_provider_unbound";
|
|
125
|
+
readonly selectedProfileId: string;
|
|
126
|
+
readonly selection: {
|
|
127
|
+
readonly id: string;
|
|
128
|
+
readonly kind: "profile";
|
|
129
|
+
} | {
|
|
130
|
+
readonly id: string;
|
|
131
|
+
readonly kind: "policy";
|
|
132
|
+
};
|
|
133
|
+
readonly source: "workspace" | "node-default";
|
|
134
|
+
readonly status: "unavailable";
|
|
135
|
+
readonly workspaceId: string;
|
|
136
|
+
readonly workspaceRevision: string;
|
|
137
|
+
};
|
|
138
|
+
readonly binding?: {
|
|
139
|
+
readonly selection: {
|
|
140
|
+
readonly id: string;
|
|
141
|
+
readonly kind: "profile";
|
|
142
|
+
} | {
|
|
143
|
+
readonly id: string;
|
|
144
|
+
readonly kind: "policy";
|
|
145
|
+
};
|
|
146
|
+
readonly workspaceId: string;
|
|
147
|
+
readonly workspaceRevision: string;
|
|
148
|
+
} | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
export type WorkspaceExecutionShowResult = InferRuntimeSchema<typeof workspaceExecutionShowResultSchema>;
|
|
151
|
+
export declare const workspaceExecutionConfigureParametersSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
152
|
+
readonly operation: "clear";
|
|
153
|
+
readonly commandId: string;
|
|
154
|
+
readonly expectedRevision: string;
|
|
155
|
+
readonly workspaceId: string;
|
|
156
|
+
} | {
|
|
157
|
+
readonly operation: "set";
|
|
158
|
+
readonly selection: {
|
|
159
|
+
readonly id: string;
|
|
160
|
+
readonly kind: "profile";
|
|
161
|
+
} | {
|
|
162
|
+
readonly id: string;
|
|
163
|
+
readonly kind: "policy";
|
|
164
|
+
};
|
|
165
|
+
readonly commandId: string;
|
|
166
|
+
readonly expectedRevision: string;
|
|
167
|
+
readonly workspaceId: string;
|
|
168
|
+
}>;
|
|
169
|
+
export type WorkspaceExecutionConfigureParameters = InferRuntimeSchema<typeof workspaceExecutionConfigureParametersSchema>;
|
|
170
|
+
export declare const workspaceExecutionConfigureResultSchema: import("../runtime-schema.js").RuntimeSchema<{
|
|
171
|
+
readonly method: "workspace.execution.configure";
|
|
172
|
+
readonly receipt: {
|
|
173
|
+
readonly actorId: string;
|
|
174
|
+
readonly aggregateRevision: string;
|
|
175
|
+
readonly commandId: string;
|
|
176
|
+
readonly createdAt: string;
|
|
177
|
+
readonly eventCursor: string;
|
|
178
|
+
readonly method: string;
|
|
179
|
+
readonly receiptId: string;
|
|
180
|
+
readonly schemaVersion: 1;
|
|
181
|
+
readonly state: "succeeded";
|
|
182
|
+
readonly target: {
|
|
183
|
+
readonly id: string;
|
|
184
|
+
readonly type: string;
|
|
185
|
+
};
|
|
186
|
+
readonly updatedAt: string;
|
|
187
|
+
};
|
|
188
|
+
readonly delivery: "new" | "duplicate";
|
|
189
|
+
readonly workspace: {
|
|
190
|
+
readonly createdAt: string;
|
|
191
|
+
readonly id: string;
|
|
192
|
+
readonly kind: "local-main" | "git-worktree";
|
|
193
|
+
readonly name: string;
|
|
194
|
+
readonly projectId: string;
|
|
195
|
+
readonly revision: string;
|
|
196
|
+
readonly schemaVersion: 1;
|
|
197
|
+
readonly state: "provisioning" | "ready" | "removing" | "failed";
|
|
198
|
+
readonly updatedAt: string;
|
|
199
|
+
};
|
|
200
|
+
readonly resolution: {
|
|
201
|
+
readonly reason: "local_provider_unbound";
|
|
202
|
+
readonly selectedProfileId: string;
|
|
203
|
+
readonly selection: {
|
|
204
|
+
readonly id: string;
|
|
205
|
+
readonly kind: "profile";
|
|
206
|
+
} | {
|
|
207
|
+
readonly id: string;
|
|
208
|
+
readonly kind: "policy";
|
|
209
|
+
};
|
|
210
|
+
readonly source: "workspace" | "node-default";
|
|
211
|
+
readonly status: "unavailable";
|
|
212
|
+
readonly workspaceId: string;
|
|
213
|
+
readonly workspaceRevision: string;
|
|
214
|
+
};
|
|
215
|
+
readonly binding?: {
|
|
216
|
+
readonly selection: {
|
|
217
|
+
readonly id: string;
|
|
218
|
+
readonly kind: "profile";
|
|
219
|
+
} | {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
readonly kind: "policy";
|
|
222
|
+
};
|
|
223
|
+
readonly workspaceId: string;
|
|
224
|
+
readonly workspaceRevision: string;
|
|
225
|
+
} | undefined;
|
|
226
|
+
}>;
|
|
227
|
+
export type WorkspaceExecutionConfigureResult = InferRuntimeSchema<typeof workspaceExecutionConfigureResultSchema>;
|
|
228
|
+
export type ExecutionResult = ExecutionCatalogGetResult | WorkspaceExecutionConfigureResult | WorkspaceExecutionShowResult;
|
|
229
|
+
export { EXECUTION_SCHEMA_VERSION, LOCAL_DEFAULT_POLICY_ID, LOCAL_HOST_PROFILE_ID, LOCAL_HOST_PROVIDER_ID, } from "./version.js";
|
|
230
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/execution/contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAkB/D,eAAO,MAAM,iCAAiC;;;;;;;;;;;EAE7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAC1D,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;EAElC,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAC/C,OAAO,sBAAsB,CAC9B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;EAEjC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE/E,eAAO,MAAM,iCAAiC;;;;;;EAE7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAC1D,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;EAE3C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CACxD,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;EAE9C,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,kBAAkB,CAC3D,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,mCAAmC;;EAE/C,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAC5D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CACxD,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,sCAAsC;;EAElD,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,kBAAkB,CAC/D,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9C,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,kBAAkB,CAC3D,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;EACoB,CAAC;AAC7E,MAAM,MAAM,qCAAqC,GAAG,kBAAkB,CACpE,OAAO,2CAA2C,CACnD,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnD,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,kBAAkB,CAChE,OAAO,uCAAuC,CAC/C,CAAC;AAEF,MAAM,MAAM,eAAe,GACvB,yBAAyB,GACzB,iCAAiC,GACjC,4BAA4B,CAAC;AAEjC,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { makeEffectRuntimeSchema } from "../runtime-schema-effect.js";
|
|
2
|
+
import { executionCatalogGetParametersEffectSchema, executionCatalogGetResultEffectSchema, executionProfileEffectSchema, executionProviderDescriptorEffectSchema, placementPolicyEffectSchema, workspaceExecutionBindingEffectSchema, workspaceExecutionConfigureParametersEffectSchema, workspaceExecutionConfigureResultEffectSchema, workspaceExecutionResolutionEffectSchema, workspaceExecutionSelectionEffectSchema, workspaceExecutionShowParametersEffectSchema, workspaceExecutionShowResultEffectSchema, } from "./effect-schema.js";
|
|
3
|
+
export const executionProviderDescriptorSchema = makeEffectRuntimeSchema(executionProviderDescriptorEffectSchema);
|
|
4
|
+
export const executionProfileSchema = makeEffectRuntimeSchema(executionProfileEffectSchema);
|
|
5
|
+
export const placementPolicySchema = makeEffectRuntimeSchema(placementPolicyEffectSchema);
|
|
6
|
+
export const workspaceExecutionSelectionSchema = makeEffectRuntimeSchema(workspaceExecutionSelectionEffectSchema);
|
|
7
|
+
export const workspaceExecutionBindingSchema = makeEffectRuntimeSchema(workspaceExecutionBindingEffectSchema);
|
|
8
|
+
export const workspaceExecutionResolutionSchema = makeEffectRuntimeSchema(workspaceExecutionResolutionEffectSchema);
|
|
9
|
+
export const executionCatalogGetParametersSchema = makeEffectRuntimeSchema(executionCatalogGetParametersEffectSchema);
|
|
10
|
+
export const executionCatalogGetResultSchema = makeEffectRuntimeSchema(executionCatalogGetResultEffectSchema);
|
|
11
|
+
export const workspaceExecutionShowParametersSchema = makeEffectRuntimeSchema(workspaceExecutionShowParametersEffectSchema);
|
|
12
|
+
export const workspaceExecutionShowResultSchema = makeEffectRuntimeSchema(workspaceExecutionShowResultEffectSchema);
|
|
13
|
+
export const workspaceExecutionConfigureParametersSchema = makeEffectRuntimeSchema(workspaceExecutionConfigureParametersEffectSchema);
|
|
14
|
+
export const workspaceExecutionConfigureResultSchema = makeEffectRuntimeSchema(workspaceExecutionConfigureResultEffectSchema);
|
|
15
|
+
export { EXECUTION_SCHEMA_VERSION, LOCAL_DEFAULT_POLICY_ID, LOCAL_HOST_PROFILE_ID, LOCAL_HOST_PROVIDER_ID, } from "./version.js";
|
|
16
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/execution/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EACL,yCAAyC,EACzC,qCAAqC,EACrC,4BAA4B,EAC5B,uCAAuC,EACvC,2BAA2B,EAC3B,qCAAqC,EACrC,iDAAiD,EACjD,6CAA6C,EAC7C,wCAAwC,EACxC,uCAAuC,EACvC,4CAA4C,EAC5C,wCAAwC,GACzC,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB,CACtE,uCAAuC,CACxC,CAAC;AAKF,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAC3D,4BAA4B,CAC7B,CAAC;AAKF,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAC1D,2BAA2B,CAC5B,CAAC;AAGF,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB,CACtE,uCAAuC,CACxC,CAAC;AAKF,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CACpE,qCAAqC,CACtC,CAAC;AAKF,MAAM,CAAC,MAAM,kCAAkC,GAAG,uBAAuB,CACvE,wCAAwC,CACzC,CAAC;AAKF,MAAM,CAAC,MAAM,mCAAmC,GAAG,uBAAuB,CACxE,yCAAyC,CAC1C,CAAC;AAKF,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CACpE,qCAAqC,CACtC,CAAC;AAKF,MAAM,CAAC,MAAM,sCAAsC,GAAG,uBAAuB,CAC3E,4CAA4C,CAC7C,CAAC;AAKF,MAAM,CAAC,MAAM,kCAAkC,GAAG,uBAAuB,CACvE,wCAAwC,CACzC,CAAC;AAKF,MAAM,CAAC,MAAM,2CAA2C,GACtD,uBAAuB,CAAC,iDAAiD,CAAC,CAAC;AAK7E,MAAM,CAAC,MAAM,uCAAuC,GAAG,uBAAuB,CAC5E,6CAA6C,CAC9C,CAAC;AAUF,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const executionProviderDescriptorEffectSchema: Schema.Struct<{
|
|
3
|
+
readonly binding: Schema.Literal<"unavailable">;
|
|
4
|
+
readonly builtIn: Schema.Literal<true>;
|
|
5
|
+
readonly deploymentMode: Schema.Literal<"agentless">;
|
|
6
|
+
readonly id: Schema.Literal<"provider_local_host">;
|
|
7
|
+
readonly kind: Schema.Literal<"local-host">;
|
|
8
|
+
readonly reason: Schema.Literal<"local_provider_unbound">;
|
|
9
|
+
readonly releaseQualified: Schema.Literal<false>;
|
|
10
|
+
readonly revision: Schema.Literal<"1">;
|
|
11
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
12
|
+
readonly trust: Schema.Literal<"trusted_host">;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const executionProfileEffectSchema: Schema.Struct<{
|
|
15
|
+
readonly builtIn: Schema.Literal<true>;
|
|
16
|
+
readonly id: Schema.Literal<"execution_profile_local_host">;
|
|
17
|
+
readonly name: Schema.Literal<"Local host">;
|
|
18
|
+
readonly providerId: Schema.Literal<"provider_local_host">;
|
|
19
|
+
readonly revision: Schema.Literal<"1">;
|
|
20
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const placementPolicyEffectSchema: Schema.Struct<{
|
|
23
|
+
readonly builtIn: Schema.Literal<true>;
|
|
24
|
+
readonly id: Schema.Literal<"placement_policy_local_default">;
|
|
25
|
+
readonly name: Schema.Literal<"Local default">;
|
|
26
|
+
readonly profileIds: Schema.Tuple<readonly [Schema.Literal<"execution_profile_local_host">]>;
|
|
27
|
+
readonly revision: Schema.Literal<"1">;
|
|
28
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const workspaceExecutionSelectionEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
31
|
+
readonly id: Schema.String;
|
|
32
|
+
readonly kind: Schema.Literal<"profile">;
|
|
33
|
+
}>, Schema.Struct<{
|
|
34
|
+
readonly id: Schema.String;
|
|
35
|
+
readonly kind: Schema.Literal<"policy">;
|
|
36
|
+
}>]>;
|
|
37
|
+
export declare const workspaceExecutionBindingEffectSchema: Schema.Struct<{
|
|
38
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
39
|
+
readonly id: Schema.String;
|
|
40
|
+
readonly kind: Schema.Literal<"profile">;
|
|
41
|
+
}>, Schema.Struct<{
|
|
42
|
+
readonly id: Schema.String;
|
|
43
|
+
readonly kind: Schema.Literal<"policy">;
|
|
44
|
+
}>]>;
|
|
45
|
+
readonly workspaceId: Schema.String;
|
|
46
|
+
readonly workspaceRevision: Schema.String;
|
|
47
|
+
}>;
|
|
48
|
+
export declare const workspaceExecutionResolutionEffectSchema: Schema.Struct<{
|
|
49
|
+
readonly reason: Schema.Literal<"local_provider_unbound">;
|
|
50
|
+
readonly selectedProfileId: Schema.String;
|
|
51
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
52
|
+
readonly id: Schema.String;
|
|
53
|
+
readonly kind: Schema.Literal<"profile">;
|
|
54
|
+
}>, Schema.Struct<{
|
|
55
|
+
readonly id: Schema.String;
|
|
56
|
+
readonly kind: Schema.Literal<"policy">;
|
|
57
|
+
}>]>;
|
|
58
|
+
readonly source: Schema.Literals<readonly ["node-default", "workspace"]>;
|
|
59
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
60
|
+
readonly workspaceId: Schema.String;
|
|
61
|
+
readonly workspaceRevision: Schema.String;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const executionCatalogGetParametersEffectSchema: Schema.$Record<Schema.String, Schema.Never>;
|
|
64
|
+
export declare const workspaceExecutionShowParametersEffectSchema: Schema.Struct<{
|
|
65
|
+
readonly workspaceId: Schema.String;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const workspaceExecutionConfigureParametersEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
68
|
+
readonly operation: Schema.Literal<"clear">;
|
|
69
|
+
readonly commandId: Schema.String;
|
|
70
|
+
readonly expectedRevision: Schema.String;
|
|
71
|
+
readonly workspaceId: Schema.String;
|
|
72
|
+
}>, Schema.Struct<{
|
|
73
|
+
readonly operation: Schema.Literal<"set">;
|
|
74
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
75
|
+
readonly id: Schema.String;
|
|
76
|
+
readonly kind: Schema.Literal<"profile">;
|
|
77
|
+
}>, Schema.Struct<{
|
|
78
|
+
readonly id: Schema.String;
|
|
79
|
+
readonly kind: Schema.Literal<"policy">;
|
|
80
|
+
}>]>;
|
|
81
|
+
readonly commandId: Schema.String;
|
|
82
|
+
readonly expectedRevision: Schema.String;
|
|
83
|
+
readonly workspaceId: Schema.String;
|
|
84
|
+
}>]>;
|
|
85
|
+
export declare const executionCatalogGetResultEffectSchema: Schema.Struct<{
|
|
86
|
+
readonly defaultPolicyId: Schema.Literal<"placement_policy_local_default">;
|
|
87
|
+
readonly method: Schema.Literal<"execution.catalog.get">;
|
|
88
|
+
readonly policies: Schema.Tuple<readonly [Schema.Struct<{
|
|
89
|
+
readonly builtIn: Schema.Literal<true>;
|
|
90
|
+
readonly id: Schema.Literal<"placement_policy_local_default">;
|
|
91
|
+
readonly name: Schema.Literal<"Local default">;
|
|
92
|
+
readonly profileIds: Schema.Tuple<readonly [Schema.Literal<"execution_profile_local_host">]>;
|
|
93
|
+
readonly revision: Schema.Literal<"1">;
|
|
94
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
95
|
+
}>]>;
|
|
96
|
+
readonly profiles: Schema.Tuple<readonly [Schema.Struct<{
|
|
97
|
+
readonly builtIn: Schema.Literal<true>;
|
|
98
|
+
readonly id: Schema.Literal<"execution_profile_local_host">;
|
|
99
|
+
readonly name: Schema.Literal<"Local host">;
|
|
100
|
+
readonly providerId: Schema.Literal<"provider_local_host">;
|
|
101
|
+
readonly revision: Schema.Literal<"1">;
|
|
102
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
103
|
+
}>]>;
|
|
104
|
+
readonly providers: Schema.Tuple<readonly [Schema.Struct<{
|
|
105
|
+
readonly binding: Schema.Literal<"unavailable">;
|
|
106
|
+
readonly builtIn: Schema.Literal<true>;
|
|
107
|
+
readonly deploymentMode: Schema.Literal<"agentless">;
|
|
108
|
+
readonly id: Schema.Literal<"provider_local_host">;
|
|
109
|
+
readonly kind: Schema.Literal<"local-host">;
|
|
110
|
+
readonly reason: Schema.Literal<"local_provider_unbound">;
|
|
111
|
+
readonly releaseQualified: Schema.Literal<false>;
|
|
112
|
+
readonly revision: Schema.Literal<"1">;
|
|
113
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
114
|
+
readonly trust: Schema.Literal<"trusted_host">;
|
|
115
|
+
}>]>;
|
|
116
|
+
}>;
|
|
117
|
+
export declare const workspaceExecutionShowResultEffectSchema: Schema.Struct<{
|
|
118
|
+
readonly binding: Schema.optional<Schema.Struct<{
|
|
119
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
120
|
+
readonly id: Schema.String;
|
|
121
|
+
readonly kind: Schema.Literal<"profile">;
|
|
122
|
+
}>, Schema.Struct<{
|
|
123
|
+
readonly id: Schema.String;
|
|
124
|
+
readonly kind: Schema.Literal<"policy">;
|
|
125
|
+
}>]>;
|
|
126
|
+
readonly workspaceId: Schema.String;
|
|
127
|
+
readonly workspaceRevision: Schema.String;
|
|
128
|
+
}>>;
|
|
129
|
+
readonly method: Schema.Literal<"workspace.execution.show">;
|
|
130
|
+
readonly resolution: Schema.Struct<{
|
|
131
|
+
readonly reason: Schema.Literal<"local_provider_unbound">;
|
|
132
|
+
readonly selectedProfileId: Schema.String;
|
|
133
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
134
|
+
readonly id: Schema.String;
|
|
135
|
+
readonly kind: Schema.Literal<"profile">;
|
|
136
|
+
}>, Schema.Struct<{
|
|
137
|
+
readonly id: Schema.String;
|
|
138
|
+
readonly kind: Schema.Literal<"policy">;
|
|
139
|
+
}>]>;
|
|
140
|
+
readonly source: Schema.Literals<readonly ["node-default", "workspace"]>;
|
|
141
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
142
|
+
readonly workspaceId: Schema.String;
|
|
143
|
+
readonly workspaceRevision: Schema.String;
|
|
144
|
+
}>;
|
|
145
|
+
readonly workspace: Schema.Struct<{
|
|
146
|
+
readonly createdAt: Schema.String;
|
|
147
|
+
readonly id: Schema.String;
|
|
148
|
+
readonly kind: Schema.Literals<readonly ["local-main", "git-worktree"]>;
|
|
149
|
+
readonly name: Schema.Trim;
|
|
150
|
+
readonly projectId: Schema.String;
|
|
151
|
+
readonly revision: Schema.String;
|
|
152
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
153
|
+
readonly state: Schema.Literals<readonly ["provisioning", "ready", "removing", "failed"]>;
|
|
154
|
+
readonly updatedAt: Schema.String;
|
|
155
|
+
}>;
|
|
156
|
+
}>;
|
|
157
|
+
export declare const workspaceExecutionConfigureResultEffectSchema: Schema.Struct<{
|
|
158
|
+
readonly binding: Schema.optional<Schema.Struct<{
|
|
159
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
160
|
+
readonly id: Schema.String;
|
|
161
|
+
readonly kind: Schema.Literal<"profile">;
|
|
162
|
+
}>, Schema.Struct<{
|
|
163
|
+
readonly id: Schema.String;
|
|
164
|
+
readonly kind: Schema.Literal<"policy">;
|
|
165
|
+
}>]>;
|
|
166
|
+
readonly workspaceId: Schema.String;
|
|
167
|
+
readonly workspaceRevision: Schema.String;
|
|
168
|
+
}>>;
|
|
169
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
170
|
+
readonly method: Schema.Literal<"workspace.execution.configure">;
|
|
171
|
+
readonly receipt: Schema.Struct<{
|
|
172
|
+
readonly actorId: Schema.String;
|
|
173
|
+
readonly aggregateRevision: Schema.String;
|
|
174
|
+
readonly commandId: Schema.String;
|
|
175
|
+
readonly createdAt: Schema.String;
|
|
176
|
+
readonly eventCursor: Schema.String;
|
|
177
|
+
readonly method: Schema.String;
|
|
178
|
+
readonly receiptId: Schema.String;
|
|
179
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
180
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
181
|
+
readonly target: Schema.Struct<{
|
|
182
|
+
readonly id: Schema.String;
|
|
183
|
+
readonly type: Schema.String;
|
|
184
|
+
}>;
|
|
185
|
+
readonly updatedAt: Schema.String;
|
|
186
|
+
}>;
|
|
187
|
+
readonly resolution: Schema.Struct<{
|
|
188
|
+
readonly reason: Schema.Literal<"local_provider_unbound">;
|
|
189
|
+
readonly selectedProfileId: Schema.String;
|
|
190
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
191
|
+
readonly id: Schema.String;
|
|
192
|
+
readonly kind: Schema.Literal<"profile">;
|
|
193
|
+
}>, Schema.Struct<{
|
|
194
|
+
readonly id: Schema.String;
|
|
195
|
+
readonly kind: Schema.Literal<"policy">;
|
|
196
|
+
}>]>;
|
|
197
|
+
readonly source: Schema.Literals<readonly ["node-default", "workspace"]>;
|
|
198
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
199
|
+
readonly workspaceId: Schema.String;
|
|
200
|
+
readonly workspaceRevision: Schema.String;
|
|
201
|
+
}>;
|
|
202
|
+
readonly workspace: Schema.Struct<{
|
|
203
|
+
readonly createdAt: Schema.String;
|
|
204
|
+
readonly id: Schema.String;
|
|
205
|
+
readonly kind: Schema.Literals<readonly ["local-main", "git-worktree"]>;
|
|
206
|
+
readonly name: Schema.Trim;
|
|
207
|
+
readonly projectId: Schema.String;
|
|
208
|
+
readonly revision: Schema.String;
|
|
209
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
210
|
+
readonly state: Schema.Literals<readonly ["provisioning", "ready", "removing", "failed"]>;
|
|
211
|
+
readonly updatedAt: Schema.String;
|
|
212
|
+
}>;
|
|
213
|
+
}>;
|
|
214
|
+
export declare const executionRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
215
|
+
readonly method: Schema.Literal<"execution.catalog.get">;
|
|
216
|
+
readonly parameters: Schema.$Record<Schema.String, Schema.Never>;
|
|
217
|
+
}>, Schema.Struct<{
|
|
218
|
+
readonly method: Schema.Literal<"workspace.execution.show">;
|
|
219
|
+
readonly parameters: Schema.Struct<{
|
|
220
|
+
readonly workspaceId: Schema.String;
|
|
221
|
+
}>;
|
|
222
|
+
}>, Schema.Struct<{
|
|
223
|
+
readonly method: Schema.Literal<"workspace.execution.configure">;
|
|
224
|
+
readonly parameters: Schema.Union<readonly [Schema.Struct<{
|
|
225
|
+
readonly operation: Schema.Literal<"clear">;
|
|
226
|
+
readonly commandId: Schema.String;
|
|
227
|
+
readonly expectedRevision: Schema.String;
|
|
228
|
+
readonly workspaceId: Schema.String;
|
|
229
|
+
}>, Schema.Struct<{
|
|
230
|
+
readonly operation: Schema.Literal<"set">;
|
|
231
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
232
|
+
readonly id: Schema.String;
|
|
233
|
+
readonly kind: Schema.Literal<"profile">;
|
|
234
|
+
}>, Schema.Struct<{
|
|
235
|
+
readonly id: Schema.String;
|
|
236
|
+
readonly kind: Schema.Literal<"policy">;
|
|
237
|
+
}>]>;
|
|
238
|
+
readonly commandId: Schema.String;
|
|
239
|
+
readonly expectedRevision: Schema.String;
|
|
240
|
+
readonly workspaceId: Schema.String;
|
|
241
|
+
}>]>;
|
|
242
|
+
}>]>;
|
|
243
|
+
export declare const executionSuccessResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
244
|
+
readonly defaultPolicyId: Schema.Literal<"placement_policy_local_default">;
|
|
245
|
+
readonly method: Schema.Literal<"execution.catalog.get">;
|
|
246
|
+
readonly policies: Schema.Tuple<readonly [Schema.Struct<{
|
|
247
|
+
readonly builtIn: Schema.Literal<true>;
|
|
248
|
+
readonly id: Schema.Literal<"placement_policy_local_default">;
|
|
249
|
+
readonly name: Schema.Literal<"Local default">;
|
|
250
|
+
readonly profileIds: Schema.Tuple<readonly [Schema.Literal<"execution_profile_local_host">]>;
|
|
251
|
+
readonly revision: Schema.Literal<"1">;
|
|
252
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
253
|
+
}>]>;
|
|
254
|
+
readonly profiles: Schema.Tuple<readonly [Schema.Struct<{
|
|
255
|
+
readonly builtIn: Schema.Literal<true>;
|
|
256
|
+
readonly id: Schema.Literal<"execution_profile_local_host">;
|
|
257
|
+
readonly name: Schema.Literal<"Local host">;
|
|
258
|
+
readonly providerId: Schema.Literal<"provider_local_host">;
|
|
259
|
+
readonly revision: Schema.Literal<"1">;
|
|
260
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
261
|
+
}>]>;
|
|
262
|
+
readonly providers: Schema.Tuple<readonly [Schema.Struct<{
|
|
263
|
+
readonly binding: Schema.Literal<"unavailable">;
|
|
264
|
+
readonly builtIn: Schema.Literal<true>;
|
|
265
|
+
readonly deploymentMode: Schema.Literal<"agentless">;
|
|
266
|
+
readonly id: Schema.Literal<"provider_local_host">;
|
|
267
|
+
readonly kind: Schema.Literal<"local-host">;
|
|
268
|
+
readonly reason: Schema.Literal<"local_provider_unbound">;
|
|
269
|
+
readonly releaseQualified: Schema.Literal<false>;
|
|
270
|
+
readonly revision: Schema.Literal<"1">;
|
|
271
|
+
readonly schemaVersion: Schema.Literal<"maia.execution/v1alpha1">;
|
|
272
|
+
readonly trust: Schema.Literal<"trusted_host">;
|
|
273
|
+
}>]>;
|
|
274
|
+
}>, Schema.Struct<{
|
|
275
|
+
readonly binding: Schema.optional<Schema.Struct<{
|
|
276
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
277
|
+
readonly id: Schema.String;
|
|
278
|
+
readonly kind: Schema.Literal<"profile">;
|
|
279
|
+
}>, Schema.Struct<{
|
|
280
|
+
readonly id: Schema.String;
|
|
281
|
+
readonly kind: Schema.Literal<"policy">;
|
|
282
|
+
}>]>;
|
|
283
|
+
readonly workspaceId: Schema.String;
|
|
284
|
+
readonly workspaceRevision: Schema.String;
|
|
285
|
+
}>>;
|
|
286
|
+
readonly method: Schema.Literal<"workspace.execution.show">;
|
|
287
|
+
readonly resolution: Schema.Struct<{
|
|
288
|
+
readonly reason: Schema.Literal<"local_provider_unbound">;
|
|
289
|
+
readonly selectedProfileId: Schema.String;
|
|
290
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
291
|
+
readonly id: Schema.String;
|
|
292
|
+
readonly kind: Schema.Literal<"profile">;
|
|
293
|
+
}>, Schema.Struct<{
|
|
294
|
+
readonly id: Schema.String;
|
|
295
|
+
readonly kind: Schema.Literal<"policy">;
|
|
296
|
+
}>]>;
|
|
297
|
+
readonly source: Schema.Literals<readonly ["node-default", "workspace"]>;
|
|
298
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
299
|
+
readonly workspaceId: Schema.String;
|
|
300
|
+
readonly workspaceRevision: Schema.String;
|
|
301
|
+
}>;
|
|
302
|
+
readonly workspace: Schema.Struct<{
|
|
303
|
+
readonly createdAt: Schema.String;
|
|
304
|
+
readonly id: Schema.String;
|
|
305
|
+
readonly kind: Schema.Literals<readonly ["local-main", "git-worktree"]>;
|
|
306
|
+
readonly name: Schema.Trim;
|
|
307
|
+
readonly projectId: Schema.String;
|
|
308
|
+
readonly revision: Schema.String;
|
|
309
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
310
|
+
readonly state: Schema.Literals<readonly ["provisioning", "ready", "removing", "failed"]>;
|
|
311
|
+
readonly updatedAt: Schema.String;
|
|
312
|
+
}>;
|
|
313
|
+
}>, Schema.Struct<{
|
|
314
|
+
readonly binding: Schema.optional<Schema.Struct<{
|
|
315
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
316
|
+
readonly id: Schema.String;
|
|
317
|
+
readonly kind: Schema.Literal<"profile">;
|
|
318
|
+
}>, Schema.Struct<{
|
|
319
|
+
readonly id: Schema.String;
|
|
320
|
+
readonly kind: Schema.Literal<"policy">;
|
|
321
|
+
}>]>;
|
|
322
|
+
readonly workspaceId: Schema.String;
|
|
323
|
+
readonly workspaceRevision: Schema.String;
|
|
324
|
+
}>>;
|
|
325
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
326
|
+
readonly method: Schema.Literal<"workspace.execution.configure">;
|
|
327
|
+
readonly receipt: Schema.Struct<{
|
|
328
|
+
readonly actorId: Schema.String;
|
|
329
|
+
readonly aggregateRevision: Schema.String;
|
|
330
|
+
readonly commandId: Schema.String;
|
|
331
|
+
readonly createdAt: Schema.String;
|
|
332
|
+
readonly eventCursor: Schema.String;
|
|
333
|
+
readonly method: Schema.String;
|
|
334
|
+
readonly receiptId: Schema.String;
|
|
335
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
336
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
337
|
+
readonly target: Schema.Struct<{
|
|
338
|
+
readonly id: Schema.String;
|
|
339
|
+
readonly type: Schema.String;
|
|
340
|
+
}>;
|
|
341
|
+
readonly updatedAt: Schema.String;
|
|
342
|
+
}>;
|
|
343
|
+
readonly resolution: Schema.Struct<{
|
|
344
|
+
readonly reason: Schema.Literal<"local_provider_unbound">;
|
|
345
|
+
readonly selectedProfileId: Schema.String;
|
|
346
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
347
|
+
readonly id: Schema.String;
|
|
348
|
+
readonly kind: Schema.Literal<"profile">;
|
|
349
|
+
}>, Schema.Struct<{
|
|
350
|
+
readonly id: Schema.String;
|
|
351
|
+
readonly kind: Schema.Literal<"policy">;
|
|
352
|
+
}>]>;
|
|
353
|
+
readonly source: Schema.Literals<readonly ["node-default", "workspace"]>;
|
|
354
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
355
|
+
readonly workspaceId: Schema.String;
|
|
356
|
+
readonly workspaceRevision: Schema.String;
|
|
357
|
+
}>;
|
|
358
|
+
readonly workspace: Schema.Struct<{
|
|
359
|
+
readonly createdAt: Schema.String;
|
|
360
|
+
readonly id: Schema.String;
|
|
361
|
+
readonly kind: Schema.Literals<readonly ["local-main", "git-worktree"]>;
|
|
362
|
+
readonly name: Schema.Trim;
|
|
363
|
+
readonly projectId: Schema.String;
|
|
364
|
+
readonly revision: Schema.String;
|
|
365
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
366
|
+
readonly state: Schema.Literals<readonly ["provisioning", "ready", "removing", "failed"]>;
|
|
367
|
+
readonly updatedAt: Schema.String;
|
|
368
|
+
}>;
|
|
369
|
+
}>]>;
|
|
370
|
+
//# sourceMappingURL=effect-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../src/execution/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAexC,eAAO,MAAM,uCAAuC;;;;;;;;;;;EAWlD,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;EAOvC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;EAOtC,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;IASlD,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;EAIhD,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;EAQnD,CAAC;AAIH,eAAO,MAAM,yCAAyC,6CACzB,CAAC;AAE9B,eAAO,MAAM,4CAA4C;;EAEvD,CAAC;AAQH,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;IAU5D,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMhD,CAAC;AA0CH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlD,CAAC;AAUJ,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAevD,CAAC;AAEJ,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAa9C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI7C,CAAC"}
|