@opencode-ai/schema 0.0.0-next-14659
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/agent.d.ts +175 -0
- package/dist/agent.js +43 -0
- package/dist/catalog.d.ts +89 -0
- package/dist/catalog.js +4 -0
- package/dist/command.d.ts +44 -0
- package/dist/command.js +12 -0
- package/dist/connection.d.ts +28 -0
- package/dist/connection.js +15 -0
- package/dist/credential.d.ts +36 -0
- package/dist/credential.js +23 -0
- package/dist/durable-event-manifest.d.ts +10626 -0
- package/dist/durable-event-manifest.js +12 -0
- package/dist/event-manifest.d.ts +15309 -0
- package/dist/event-manifest.js +43 -0
- package/dist/event.d.ts +82 -0
- package/dist/event.js +73 -0
- package/dist/file-diff.d.ts +11 -0
- package/dist/file-diff.js +10 -0
- package/dist/filesystem-watcher.d.ts +102 -0
- package/dist/filesystem-watcher.js +11 -0
- package/dist/filesystem.d.ts +134 -0
- package/dist/filesystem.js +32 -0
- package/dist/ide-event.d.ts +96 -0
- package/dist/ide-event.js +10 -0
- package/dist/identifier.d.ts +3 -0
- package/dist/identifier.js +24 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +29 -0
- package/dist/installation-event.d.ts +189 -0
- package/dist/installation-event.js +16 -0
- package/dist/integration-id.d.ts +5 -0
- package/dist/integration-id.js +3 -0
- package/dist/integration.d.ts +572 -0
- package/dist/integration.js +93 -0
- package/dist/legacy-event.d.ts +1 -0
- package/dist/legacy-event.js +1 -0
- package/dist/llm.d.ts +28 -0
- package/dist/llm.js +19 -0
- package/dist/location.d.ts +36 -0
- package/dist/location.js +21 -0
- package/dist/lsp-event.d.ts +87 -0
- package/dist/lsp-event.js +4 -0
- package/dist/mcp-event.d.ts +286 -0
- package/dist/mcp-event.js +25 -0
- package/dist/mcp.d.ts +39 -0
- package/dist/mcp.js +38 -0
- package/dist/model.d.ts +205 -0
- package/dist/model.js +86 -0
- package/dist/models-dev.d.ts +89 -0
- package/dist/models-dev.js +7 -0
- package/dist/permission-saved.d.ts +18 -0
- package/dist/permission-saved.js +12 -0
- package/dist/permission-v1.d.ts +1 -0
- package/dist/permission-v1.js +1 -0
- package/dist/permission.d.ts +346 -0
- package/dist/permission.js +45 -0
- package/dist/plugin.d.ts +105 -0
- package/dist/plugin.js +12 -0
- package/dist/project-copy.d.ts +29 -0
- package/dist/project-copy.js +21 -0
- package/dist/project-directories.d.ts +105 -0
- package/dist/project-directories.js +8 -0
- package/dist/project-id.d.ts +5 -0
- package/dist/project-id.js +3 -0
- package/dist/project.d.ts +278 -0
- package/dist/project.js +44 -0
- package/dist/prompt-input.d.ts +106 -0
- package/dist/prompt-input.js +19 -0
- package/dist/prompt.d.ts +177 -0
- package/dist/prompt.js +43 -0
- package/dist/provider.d.ts +111 -0
- package/dist/provider.js +53 -0
- package/dist/pty-ticket.d.ts +8 -0
- package/dist/pty-ticket.js +7 -0
- package/dist/pty.d.ts +542 -0
- package/dist/pty.js +43 -0
- package/dist/question-v1.d.ts +1 -0
- package/dist/question-v1.js +1 -0
- package/dist/question.d.ts +516 -0
- package/dist/question.js +64 -0
- package/dist/reference.d.ts +140 -0
- package/dist/reference.js +31 -0
- package/dist/revert.d.ts +34 -0
- package/dist/revert.js +19 -0
- package/dist/schema.d.ts +10 -0
- package/dist/schema.js +14 -0
- package/dist/server-event.d.ts +172 -0
- package/dist/server-event.js +5 -0
- package/dist/session-compaction-event.d.ts +107 -0
- package/dist/session-compaction-event.js +10 -0
- package/dist/session-delivery.d.ts +4 -0
- package/dist/session-delivery.js +3 -0
- package/dist/session-event.d.ts +14225 -0
- package/dist/session-event.js +421 -0
- package/dist/session-id.d.ts +6 -0
- package/dist/session-id.js +10 -0
- package/dist/session-input.d.ts +145 -0
- package/dist/session-input.js +18 -0
- package/dist/session-message.d.ts +1318 -0
- package/dist/session-message.js +171 -0
- package/dist/session-status-event.d.ts +339 -0
- package/dist/session-status-event.js +43 -0
- package/dist/session-todo.d.ts +137 -0
- package/dist/session-todo.js +21 -0
- package/dist/session-v1.d.ts +1 -0
- package/dist/session-v1.js +1 -0
- package/dist/session.d.ts +140 -0
- package/dist/session.js +43 -0
- package/dist/shell.d.ts +441 -0
- package/dist/shell.js +58 -0
- package/dist/skill.d.ts +146 -0
- package/dist/skill.js +45 -0
- package/dist/tui-event.d.ts +387 -0
- package/dist/tui-event.js +53 -0
- package/dist/v1/legacy-event.d.ts +128 -0
- package/dist/v1/legacy-event.js +15 -0
- package/dist/v1/permission.d.ts +356 -0
- package/dist/v1/permission.js +41 -0
- package/dist/v1/question.d.ts +504 -0
- package/dist/v1/question.js +57 -0
- package/dist/v1/session.d.ts +7775 -0
- package/dist/v1/session.js +535 -0
- package/dist/vcs-event.d.ts +96 -0
- package/dist/vcs-event.js +11 -0
- package/dist/workspace-event.d.ts +307 -0
- package/dist/workspace-event.js +25 -0
- package/dist/workspace-id.d.ts +6 -0
- package/dist/workspace-id.js +16 -0
- package/dist/workspace.d.ts +9 -0
- package/dist/workspace.js +5 -0
- package/dist/worktree-event.d.ts +193 -0
- package/dist/worktree-event.js +18 -0
- package/package.json +41 -0
package/dist/agent.d.ts
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export * as Agent from "./agent.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const ID: Schema.brand<Schema.String, "AgentV2.ID">;
|
|
4
|
+
export type ID = typeof ID.Type;
|
|
5
|
+
export declare const Color: Schema.Union<readonly [Schema.String, Schema.Literals<readonly ["primary", "secondary", "accent", "success", "warning", "error", "info"]>]>;
|
|
6
|
+
export type Color = typeof Color.Type;
|
|
7
|
+
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
8
|
+
}
|
|
9
|
+
export declare const Info: Schema.Struct<{
|
|
10
|
+
readonly id: Schema.brand<Schema.String, "AgentV2.ID">;
|
|
11
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
13
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
14
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
15
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
16
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
17
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
18
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
19
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
20
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
21
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
22
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
23
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
24
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
25
|
+
};
|
|
26
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
27
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
28
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
29
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
30
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
31
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
32
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
33
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
34
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
35
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
36
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
37
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
38
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
39
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
40
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
41
|
+
};
|
|
42
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
43
|
+
}>>, never, never>;
|
|
44
|
+
readonly request: Schema.Struct<{
|
|
45
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
46
|
+
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
47
|
+
}>;
|
|
48
|
+
readonly system: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
49
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
50
|
+
readonly mode: Schema.Literals<readonly ["subagent", "primary", "all"]>;
|
|
51
|
+
readonly hidden: Schema.Boolean;
|
|
52
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.String, Schema.Literals<readonly ["primary", "secondary", "accent", "success", "warning", "error", "info"]>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Literals<readonly ["primary", "secondary", "accent", "success", "warning", "error", "info"]>]>>, never, never>;
|
|
53
|
+
readonly steps: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
54
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
55
|
+
readonly action: Schema.String;
|
|
56
|
+
readonly resource: Schema.String;
|
|
57
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
58
|
+
}>>;
|
|
59
|
+
}> & {
|
|
60
|
+
empty: (id: ID) => {
|
|
61
|
+
readonly id: string & import("effect/Brand").Brand<"AgentV2.ID">;
|
|
62
|
+
readonly request: {
|
|
63
|
+
readonly headers: {
|
|
64
|
+
readonly [x: string]: string;
|
|
65
|
+
};
|
|
66
|
+
readonly body: {
|
|
67
|
+
readonly [x: string]: Schema.Json;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly mode: "primary" | "subagent" | "all";
|
|
71
|
+
readonly hidden: boolean;
|
|
72
|
+
readonly permissions: readonly {
|
|
73
|
+
readonly action: string;
|
|
74
|
+
readonly resource: string;
|
|
75
|
+
readonly effect: "allow" | "deny" | "ask";
|
|
76
|
+
}[];
|
|
77
|
+
readonly model?: {
|
|
78
|
+
readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
|
|
79
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
80
|
+
readonly variant?: (string & import("effect/Brand").Brand<"VariantID">) | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
readonly system?: string | undefined;
|
|
83
|
+
readonly description?: string | undefined;
|
|
84
|
+
readonly color?: string | undefined;
|
|
85
|
+
readonly steps?: number | undefined;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export declare const Event: {
|
|
89
|
+
Updated: Schema.Struct<{
|
|
90
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
91
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
92
|
+
};
|
|
93
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
94
|
+
readonly type: Schema.Literal<"agent.updated">;
|
|
95
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
96
|
+
readonly aggregateID: Schema.String;
|
|
97
|
+
readonly seq: Schema.Int;
|
|
98
|
+
readonly version: Schema.Int;
|
|
99
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
100
|
+
readonly aggregateID: Schema.String;
|
|
101
|
+
readonly seq: Schema.Int;
|
|
102
|
+
readonly version: Schema.Int;
|
|
103
|
+
}>>, never, never>;
|
|
104
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
105
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
106
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
107
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
108
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
109
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
110
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
111
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
112
|
+
}>, never, never>;
|
|
113
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
114
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
115
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
116
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
117
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
118
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
119
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
120
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
121
|
+
}>, never, never>;
|
|
122
|
+
}>>, never, never>;
|
|
123
|
+
readonly data: Schema.Struct<{}>;
|
|
124
|
+
}> & {
|
|
125
|
+
data: Schema.Struct<{}>;
|
|
126
|
+
durable?: {
|
|
127
|
+
readonly version: number;
|
|
128
|
+
readonly aggregate: string;
|
|
129
|
+
} | undefined;
|
|
130
|
+
type: "agent.updated";
|
|
131
|
+
};
|
|
132
|
+
Definitions: readonly [Schema.Struct<{
|
|
133
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
134
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
135
|
+
};
|
|
136
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
137
|
+
readonly type: Schema.Literal<"agent.updated">;
|
|
138
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
139
|
+
readonly aggregateID: Schema.String;
|
|
140
|
+
readonly seq: Schema.Int;
|
|
141
|
+
readonly version: Schema.Int;
|
|
142
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
143
|
+
readonly aggregateID: Schema.String;
|
|
144
|
+
readonly seq: Schema.Int;
|
|
145
|
+
readonly version: Schema.Int;
|
|
146
|
+
}>>, never, never>;
|
|
147
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
148
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
149
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
150
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
151
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
152
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
153
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
154
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
155
|
+
}>, never, never>;
|
|
156
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
157
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
158
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
159
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
160
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
161
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
162
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
163
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
164
|
+
}>, never, never>;
|
|
165
|
+
}>>, never, never>;
|
|
166
|
+
readonly data: Schema.Struct<{}>;
|
|
167
|
+
}> & {
|
|
168
|
+
data: Schema.Struct<{}>;
|
|
169
|
+
durable?: {
|
|
170
|
+
readonly version: number;
|
|
171
|
+
readonly aggregate: string;
|
|
172
|
+
} | undefined;
|
|
173
|
+
type: "agent.updated";
|
|
174
|
+
}];
|
|
175
|
+
};
|
package/dist/agent.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * as Agent from "./agent.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { define, inventory } from "./event.js";
|
|
4
|
+
import { optional } from "./schema.js";
|
|
5
|
+
import { Model } from "./model.js";
|
|
6
|
+
import { Permission } from "./permission.js";
|
|
7
|
+
import { Provider } from "./provider.js";
|
|
8
|
+
import { PositiveInt, statics } from "./schema.js";
|
|
9
|
+
const Updated = define({ type: "agent.updated", schema: {} });
|
|
10
|
+
export const ID = Schema.String.pipe(Schema.brand("AgentV2.ID"));
|
|
11
|
+
export const Color = Schema.Union([
|
|
12
|
+
Schema.String.check(Schema.isPattern(/^#[0-9a-fA-F]{6}$/)),
|
|
13
|
+
Schema.Literals(["primary", "secondary", "accent", "success", "warning", "error", "info"]),
|
|
14
|
+
]).annotate({ identifier: "Agent.Color" });
|
|
15
|
+
export const Info = Schema.Struct({
|
|
16
|
+
id: ID,
|
|
17
|
+
model: Model.Ref.pipe(optional),
|
|
18
|
+
request: Provider.Request,
|
|
19
|
+
system: Schema.String.pipe(optional),
|
|
20
|
+
description: Schema.String.pipe(optional),
|
|
21
|
+
mode: Schema.Literals(["subagent", "primary", "all"]),
|
|
22
|
+
hidden: Schema.Boolean,
|
|
23
|
+
color: Color.pipe(optional),
|
|
24
|
+
steps: PositiveInt.pipe(optional),
|
|
25
|
+
permissions: Permission.Ruleset,
|
|
26
|
+
})
|
|
27
|
+
.annotate({ identifier: "AgentV2.Info" })
|
|
28
|
+
.pipe(statics((schema) => ({
|
|
29
|
+
empty: (id) => schema.make({
|
|
30
|
+
id,
|
|
31
|
+
request: { headers: {}, body: {} },
|
|
32
|
+
mode: "all",
|
|
33
|
+
hidden: false,
|
|
34
|
+
permissions: [
|
|
35
|
+
{ action: "*", resource: "*", effect: "allow" },
|
|
36
|
+
{ action: "external_directory", resource: "*", effect: "ask" },
|
|
37
|
+
],
|
|
38
|
+
}),
|
|
39
|
+
})));
|
|
40
|
+
export const Event = {
|
|
41
|
+
Updated,
|
|
42
|
+
Definitions: inventory(Updated),
|
|
43
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export * as Catalog from "./catalog.js";
|
|
2
|
+
export declare const Event: {
|
|
3
|
+
Updated: import("effect/Schema").Struct<{
|
|
4
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6
|
+
};
|
|
7
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
8
|
+
readonly type: import("effect/Schema").Literal<"catalog.updated">;
|
|
9
|
+
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
10
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
11
|
+
readonly seq: import("effect/Schema").Int;
|
|
12
|
+
readonly version: import("effect/Schema").Int;
|
|
13
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
14
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
15
|
+
readonly seq: import("effect/Schema").Int;
|
|
16
|
+
readonly version: import("effect/Schema").Int;
|
|
17
|
+
}>>, never, never>;
|
|
18
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
19
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
20
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
21
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
22
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
23
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
24
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
25
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
26
|
+
}>, never, never>;
|
|
27
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
28
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
29
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
30
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
31
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
32
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
33
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
34
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
35
|
+
}>, never, never>;
|
|
36
|
+
}>>, never, never>;
|
|
37
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
38
|
+
}> & {
|
|
39
|
+
data: import("effect/Schema").Struct<{}>;
|
|
40
|
+
durable?: {
|
|
41
|
+
readonly version: number;
|
|
42
|
+
readonly aggregate: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
type: "catalog.updated";
|
|
45
|
+
};
|
|
46
|
+
Definitions: readonly [import("effect/Schema").Struct<{
|
|
47
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
48
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
49
|
+
};
|
|
50
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
51
|
+
readonly type: import("effect/Schema").Literal<"catalog.updated">;
|
|
52
|
+
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
53
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
54
|
+
readonly seq: import("effect/Schema").Int;
|
|
55
|
+
readonly version: import("effect/Schema").Int;
|
|
56
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
57
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
58
|
+
readonly seq: import("effect/Schema").Int;
|
|
59
|
+
readonly version: import("effect/Schema").Int;
|
|
60
|
+
}>>, never, never>;
|
|
61
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
62
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
63
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
64
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
65
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
66
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
67
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
68
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
69
|
+
}>, never, never>;
|
|
70
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
71
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
72
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
73
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
74
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
75
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
76
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
77
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
78
|
+
}>, never, never>;
|
|
79
|
+
}>>, never, never>;
|
|
80
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
81
|
+
}> & {
|
|
82
|
+
data: import("effect/Schema").Struct<{}>;
|
|
83
|
+
durable?: {
|
|
84
|
+
readonly version: number;
|
|
85
|
+
readonly aggregate: string;
|
|
86
|
+
} | undefined;
|
|
87
|
+
type: "catalog.updated";
|
|
88
|
+
}];
|
|
89
|
+
};
|
package/dist/catalog.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * as Command from "./command.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
4
|
+
}
|
|
5
|
+
export declare const Info: Schema.Struct<{
|
|
6
|
+
readonly name: Schema.String;
|
|
7
|
+
readonly template: Schema.String;
|
|
8
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
12
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
13
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
14
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
15
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
16
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
17
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
18
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
19
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
20
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
21
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
22
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
23
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
24
|
+
};
|
|
25
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
26
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
27
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
28
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
29
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
30
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
31
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
32
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
33
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
34
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
35
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
36
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
37
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
38
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
39
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
40
|
+
};
|
|
41
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
42
|
+
}>>, never, never>;
|
|
43
|
+
readonly subtask: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
44
|
+
}>;
|
package/dist/command.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * as Command from "./command.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { optional } from "./schema.js";
|
|
4
|
+
import { Model } from "./model.js";
|
|
5
|
+
export const Info = Schema.Struct({
|
|
6
|
+
name: Schema.String,
|
|
7
|
+
template: Schema.String,
|
|
8
|
+
description: Schema.String.pipe(optional),
|
|
9
|
+
agent: Schema.String.pipe(optional),
|
|
10
|
+
model: Model.Ref.pipe(optional),
|
|
11
|
+
subtask: Schema.Boolean.pipe(optional),
|
|
12
|
+
}).annotate({ identifier: "CommandV2.Info" });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * as Connection from "./connection.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export interface CredentialInfo extends Schema.Schema.Type<typeof CredentialInfo> {
|
|
4
|
+
}
|
|
5
|
+
export declare const CredentialInfo: Schema.Struct<{
|
|
6
|
+
readonly type: Schema.Literal<"credential">;
|
|
7
|
+
readonly id: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
8
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
9
|
+
};
|
|
10
|
+
readonly label: Schema.String;
|
|
11
|
+
}>;
|
|
12
|
+
export interface EnvInfo extends Schema.Schema.Type<typeof EnvInfo> {
|
|
13
|
+
}
|
|
14
|
+
export declare const EnvInfo: Schema.Struct<{
|
|
15
|
+
readonly type: Schema.Literal<"env">;
|
|
16
|
+
readonly name: Schema.String;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
19
|
+
readonly type: Schema.Literal<"credential">;
|
|
20
|
+
readonly id: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
21
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
22
|
+
};
|
|
23
|
+
readonly label: Schema.String;
|
|
24
|
+
}>, Schema.Struct<{
|
|
25
|
+
readonly type: Schema.Literal<"env">;
|
|
26
|
+
readonly name: Schema.String;
|
|
27
|
+
}>]>;
|
|
28
|
+
export type Info = typeof Info.Type;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * as Connection from "./connection.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { Credential } from "./credential.js";
|
|
4
|
+
export const CredentialInfo = Schema.Struct({
|
|
5
|
+
type: Schema.Literal("credential"),
|
|
6
|
+
id: Credential.ID,
|
|
7
|
+
label: Schema.String,
|
|
8
|
+
}).annotate({ identifier: "Connection.CredentialInfo" });
|
|
9
|
+
export const EnvInfo = Schema.Struct({
|
|
10
|
+
type: Schema.Literal("env"),
|
|
11
|
+
name: Schema.String,
|
|
12
|
+
}).annotate({ identifier: "Connection.EnvInfo" });
|
|
13
|
+
export const Info = Schema.Union([CredentialInfo, EnvInfo])
|
|
14
|
+
.pipe(Schema.toTaggedUnion("type"))
|
|
15
|
+
.annotate({ identifier: "Connection.Info" });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * as Credential from "./credential.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const ID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
4
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
5
|
+
};
|
|
6
|
+
export type ID = typeof ID.Type;
|
|
7
|
+
export interface OAuth extends Schema.Schema.Type<typeof OAuth> {
|
|
8
|
+
}
|
|
9
|
+
export declare const OAuth: Schema.Struct<{
|
|
10
|
+
readonly type: Schema.Literal<"oauth">;
|
|
11
|
+
readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
12
|
+
readonly refresh: Schema.String;
|
|
13
|
+
readonly access: Schema.String;
|
|
14
|
+
readonly expires: Schema.Int;
|
|
15
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16
|
+
}>;
|
|
17
|
+
export interface Key extends Schema.Schema.Type<typeof Key> {
|
|
18
|
+
}
|
|
19
|
+
export declare const Key: Schema.Struct<{
|
|
20
|
+
readonly type: Schema.Literal<"key">;
|
|
21
|
+
readonly key: Schema.String;
|
|
22
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const Value: Schema.Union<readonly [Schema.Struct<{
|
|
25
|
+
readonly type: Schema.Literal<"oauth">;
|
|
26
|
+
readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
27
|
+
readonly refresh: Schema.String;
|
|
28
|
+
readonly access: Schema.String;
|
|
29
|
+
readonly expires: Schema.Int;
|
|
30
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
31
|
+
}>, Schema.Struct<{
|
|
32
|
+
readonly type: Schema.Literal<"key">;
|
|
33
|
+
readonly key: Schema.String;
|
|
34
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
35
|
+
}>]>;
|
|
36
|
+
export type Value = Schema.Schema.Type<typeof Value>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * as Credential from "./credential.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { optional } from "./schema.js";
|
|
4
|
+
import { IntegrationMethodID } from "./integration-id.js";
|
|
5
|
+
import { ascending } from "./identifier.js";
|
|
6
|
+
import { NonNegativeInt, statics } from "./schema.js";
|
|
7
|
+
export const ID = Schema.String.pipe(Schema.brand("Credential.ID"), statics((schema) => ({ create: () => schema.make("cred_" + ascending()) })));
|
|
8
|
+
export const OAuth = Schema.Struct({
|
|
9
|
+
type: Schema.Literal("oauth"),
|
|
10
|
+
methodID: IntegrationMethodID,
|
|
11
|
+
refresh: Schema.String,
|
|
12
|
+
access: Schema.String,
|
|
13
|
+
expires: NonNegativeInt,
|
|
14
|
+
metadata: optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
15
|
+
}).annotate({ identifier: "Credential.OAuth" });
|
|
16
|
+
export const Key = Schema.Struct({
|
|
17
|
+
type: Schema.Literal("key"),
|
|
18
|
+
key: Schema.String,
|
|
19
|
+
metadata: optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
20
|
+
}).annotate({ identifier: "Credential.Key" });
|
|
21
|
+
export const Value = Schema.Union([OAuth, Key])
|
|
22
|
+
.pipe(Schema.toTaggedUnion("type"))
|
|
23
|
+
.annotate({ identifier: "Credential.Value" });
|