Open History to see the last commit
1import * as Schema from "effect/Schema";
2
3export const ProviderApprovalPolicy = Schema.Literals([
4 "untrusted",
5 "on-failure",
6 "on-request",
7 "never",
8]);
9export type ProviderApprovalPolicy = typeof ProviderApprovalPolicy.Type;
10
11export const ProviderSandboxMode = Schema.Literals([
12 "read-only",
13 "workspace-write",
14 "danger-full-access",
15]);
16export type ProviderSandboxMode = typeof ProviderSandboxMode.Type;
17
18export const RuntimeMode = Schema.Literals([
19 "approval-required",
20 "auto-accept-edits",
21 "full-access",
22]);
23export type RuntimeMode = typeof RuntimeMode.Type;
24export const DEFAULT_RUNTIME_MODE: RuntimeMode = "full-access";
25
26export const ProviderInteractionMode = Schema.Literals(["default", "plan"]);
27export type ProviderInteractionMode = typeof ProviderInteractionMode.Type;
28export const DEFAULT_PROVIDER_INTERACTION_MODE: ProviderInteractionMode = "default";
29
30export const ProviderRequestKind = Schema.Literals(["command", "file-read", "file-change"]);
31export type ProviderRequestKind = typeof ProviderRequestKind.Type;
32
33export const AssistantDeliveryMode = Schema.Literals(["buffered", "streaming"]);
34export type AssistantDeliveryMode = typeof AssistantDeliveryMode.Type;
35
36export const ProviderApprovalDecision = Schema.Literals([
37 "accept",
38 "acceptForSession",
39 "decline",
40 "cancel",
41]);
42export type ProviderApprovalDecision = typeof ProviderApprovalDecision.Type;
43
44export const ProviderUserInputAnswers = Schema.Record(Schema.String, Schema.Unknown);
45export type ProviderUserInputAnswers = typeof ProviderUserInputAnswers.Type;