@opencode-ai/schema 0.0.0-beta-18743 → 0.0.0-beta-18955
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/config/provider.d.ts +25 -0
- package/dist/config/provider.js +2 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +2 -4
- package/dist/event-manifest.d.ts +0 -72
- package/dist/model.d.ts +25 -0
- package/dist/model.js +1 -0
- package/dist/plugin.d.ts +10 -75
- package/dist/plugin.js +9 -7
- package/dist/provider.d.ts +25 -0
- package/dist/provider.js +1 -0
- package/dist/token-usage.d.ts +1 -0
- package/dist/token-usage.js +3 -0
- package/dist/tool.d.ts +4 -0
- package/package.json +1 -1
|
@@ -116,6 +116,31 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
116
116
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
117
117
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
118
118
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
119
|
+
readonly canonical: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Provider.ID"> & {
|
|
120
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
121
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
122
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
123
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
124
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
125
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
126
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
127
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
128
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
129
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
130
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
131
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Provider.ID"> & {
|
|
132
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
133
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
134
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
135
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
136
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
137
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
138
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
139
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
140
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
141
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
142
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
143
|
+
}>, never, never>;
|
|
119
144
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
120
145
|
readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
121
146
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
package/dist/config/provider.js
CHANGED
|
@@ -2,6 +2,7 @@ export * as ConfigProvider from "./provider.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { Money } from "../money.js";
|
|
4
4
|
import { Capabilities, Compatibility, Family, ID, VariantID } from "../model.js";
|
|
5
|
+
import { Provider } from "../provider.js";
|
|
5
6
|
import { optional } from "../schema.js";
|
|
6
7
|
const JsonRecord = Schema.Record(Schema.String, Schema.Json);
|
|
7
8
|
export const Overlays = {
|
|
@@ -53,6 +54,7 @@ class Model extends Schema.Class("Config.Model")({
|
|
|
53
54
|
}) {
|
|
54
55
|
}
|
|
55
56
|
export class Info extends Schema.Class("Config.Provider")({
|
|
57
|
+
canonical: Provider.ID.pipe(optional),
|
|
56
58
|
name: Schema.String.pipe(optional),
|
|
57
59
|
env: Schema.String.pipe(Schema.Array, optional),
|
|
58
60
|
package: Schema.String.pipe(optional),
|
package/dist/config.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
36
36
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
37
37
|
}>]>, never, never>>, never, never>;
|
|
38
38
|
readonly default_agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
39
|
-
readonly
|
|
39
|
+
readonly update: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["disable", "notify", "auto"]>>>, Schema.optionalKey<Schema.Literals<readonly ["disable", "notify", "auto"]>>, never, never>;
|
|
40
40
|
readonly share: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["manual", "auto", "disabled"]>>>, Schema.optionalKey<Schema.Literals<readonly ["manual", "auto", "disabled"]>>, never, never>;
|
|
41
41
|
readonly enterprise: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
42
42
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
package/dist/config.js
CHANGED
|
@@ -32,10 +32,8 @@ export class Info extends Schema.Class("Config.Info")({
|
|
|
32
32
|
default_agent: Schema.String.pipe(optional).annotate({
|
|
33
33
|
description: "Default primary agent to use when no session agent is selected",
|
|
34
34
|
}),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.annotate({
|
|
38
|
-
description: "Automatically update or notify when a new version is available",
|
|
35
|
+
update: Schema.Literals(["disable", "notify", "auto"]).pipe(optional).annotate({
|
|
36
|
+
description: "Disable updates, notify when one is available, or install automatically",
|
|
39
37
|
}),
|
|
40
38
|
share: Schema.Literals(["manual", "auto", "disabled"]).pipe(optional).annotate({
|
|
41
39
|
description: "Control whether sessions may be shared manually, automatically, or not at all",
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -4317,42 +4317,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4317
4317
|
};
|
|
4318
4318
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
4319
4319
|
}>;
|
|
4320
|
-
}, Schema.Struct<{
|
|
4321
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4322
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4323
|
-
};
|
|
4324
|
-
readonly created: Schema.Finite;
|
|
4325
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4326
|
-
readonly type: Schema.Literal<"plugin.added">;
|
|
4327
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4328
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4329
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4330
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4331
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4332
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4333
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4334
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4335
|
-
}>, never, never>;
|
|
4336
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4337
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4338
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4339
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4340
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4341
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4342
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4343
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4344
|
-
}>, never, never>;
|
|
4345
|
-
}>>, never, never>;
|
|
4346
|
-
readonly data: Schema.Struct<{
|
|
4347
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
4348
|
-
}>;
|
|
4349
|
-
}> & {
|
|
4350
|
-
type: "plugin.added";
|
|
4351
|
-
durability: "ephemeral";
|
|
4352
|
-
durable: undefined;
|
|
4353
|
-
data: Schema.Struct<{
|
|
4354
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
4355
|
-
}>;
|
|
4356
4320
|
}, Schema.Struct<{
|
|
4357
4321
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4358
4322
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -10433,42 +10397,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10433
10397
|
};
|
|
10434
10398
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
10435
10399
|
}>;
|
|
10436
|
-
}, Schema.Struct<{
|
|
10437
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10438
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
10439
|
-
};
|
|
10440
|
-
readonly created: Schema.Finite;
|
|
10441
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10442
|
-
readonly type: Schema.Literal<"plugin.added">;
|
|
10443
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10444
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10445
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10446
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10447
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10448
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10449
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10450
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10451
|
-
}>, never, never>;
|
|
10452
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10453
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10454
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10455
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10456
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10457
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10458
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10459
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10460
|
-
}>, never, never>;
|
|
10461
|
-
}>>, never, never>;
|
|
10462
|
-
readonly data: Schema.Struct<{
|
|
10463
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
10464
|
-
}>;
|
|
10465
|
-
}> & {
|
|
10466
|
-
type: "plugin.added";
|
|
10467
|
-
durability: "ephemeral";
|
|
10468
|
-
durable: undefined;
|
|
10469
|
-
data: Schema.Struct<{
|
|
10470
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
10471
|
-
}>;
|
|
10472
10400
|
}, Schema.Struct<{
|
|
10473
10401
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10474
10402
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/model.d.ts
CHANGED
|
@@ -165,6 +165,31 @@ export declare const Info: Schema.Struct<{
|
|
|
165
165
|
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
166
166
|
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
167
167
|
};
|
|
168
|
+
readonly canonical: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Provider.ID"> & {
|
|
169
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
170
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
171
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
172
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
173
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
174
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
175
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
176
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
177
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
178
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
179
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
180
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Provider.ID"> & {
|
|
181
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
182
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
183
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
184
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
185
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
186
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
187
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
188
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
189
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
190
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
191
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
192
|
+
}>, never, never>;
|
|
168
193
|
readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.Family">>, never, never>;
|
|
169
194
|
readonly name: Schema.String;
|
|
170
195
|
readonly compatibility: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
package/dist/model.js
CHANGED
package/dist/plugin.d.ts
CHANGED
|
@@ -6,7 +6,10 @@ export declare const Source: Schema.Union<readonly [Schema.Struct<{
|
|
|
6
6
|
readonly type: Schema.Literal<"builtin">;
|
|
7
7
|
}>, Schema.Struct<{
|
|
8
8
|
readonly type: Schema.Literal<"package">;
|
|
9
|
-
readonly
|
|
9
|
+
readonly target: Schema.String;
|
|
10
|
+
readonly version: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11
|
+
readonly outdated: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
12
|
+
readonly updating: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
10
13
|
}>, Schema.Struct<{
|
|
11
14
|
readonly type: Schema.Literal<"local">;
|
|
12
15
|
readonly path: Schema.String;
|
|
@@ -25,6 +28,7 @@ export declare const State: Schema.Union<readonly [Schema.Struct<{
|
|
|
25
28
|
}>, Schema.Struct<{
|
|
26
29
|
readonly status: Schema.Literal<"failed">;
|
|
27
30
|
readonly error: Schema.String;
|
|
31
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
28
32
|
}>]>;
|
|
29
33
|
export type State = typeof State.Type;
|
|
30
34
|
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
@@ -35,7 +39,10 @@ export declare const Info: Schema.Struct<{
|
|
|
35
39
|
readonly type: Schema.Literal<"builtin">;
|
|
36
40
|
}>, Schema.Struct<{
|
|
37
41
|
readonly type: Schema.Literal<"package">;
|
|
38
|
-
readonly
|
|
42
|
+
readonly target: Schema.String;
|
|
43
|
+
readonly version: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
44
|
+
readonly outdated: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
45
|
+
readonly updating: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
39
46
|
}>, Schema.Struct<{
|
|
40
47
|
readonly type: Schema.Literal<"local">;
|
|
41
48
|
readonly path: Schema.String;
|
|
@@ -52,46 +59,10 @@ export declare const Info: Schema.Struct<{
|
|
|
52
59
|
}>, Schema.Struct<{
|
|
53
60
|
readonly status: Schema.Literal<"failed">;
|
|
54
61
|
readonly error: Schema.String;
|
|
62
|
+
readonly ref: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
55
63
|
}>]>;
|
|
56
64
|
}>;
|
|
57
65
|
export declare const Event: {
|
|
58
|
-
Added: Schema.Struct<{
|
|
59
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
60
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
61
|
-
};
|
|
62
|
-
readonly created: Schema.Finite;
|
|
63
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
64
|
-
readonly type: Schema.Literal<"plugin.added">;
|
|
65
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
66
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
67
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
68
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
69
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
70
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
71
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
72
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
73
|
-
}>, never, never>;
|
|
74
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
75
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
76
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
77
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
78
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
79
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
80
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
81
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
82
|
-
}>, never, never>;
|
|
83
|
-
}>>, never, never>;
|
|
84
|
-
readonly data: Schema.Struct<{
|
|
85
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
86
|
-
}>;
|
|
87
|
-
}> & {
|
|
88
|
-
type: "plugin.added";
|
|
89
|
-
durability: "ephemeral";
|
|
90
|
-
durable: undefined;
|
|
91
|
-
data: Schema.Struct<{
|
|
92
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
93
|
-
}>;
|
|
94
|
-
};
|
|
95
66
|
Updated: Schema.Struct<{
|
|
96
67
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
97
68
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -126,42 +97,6 @@ export declare const Event: {
|
|
|
126
97
|
data: Schema.Struct<{}>;
|
|
127
98
|
};
|
|
128
99
|
Definitions: readonly [Schema.Struct<{
|
|
129
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
130
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
131
|
-
};
|
|
132
|
-
readonly created: Schema.Finite;
|
|
133
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
134
|
-
readonly type: Schema.Literal<"plugin.added">;
|
|
135
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
136
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
137
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
138
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
139
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
140
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
141
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
142
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
143
|
-
}>, never, never>;
|
|
144
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
145
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
146
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
147
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
148
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
149
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
150
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
151
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
152
|
-
}>, never, never>;
|
|
153
|
-
}>>, never, never>;
|
|
154
|
-
readonly data: Schema.Struct<{
|
|
155
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
156
|
-
}>;
|
|
157
|
-
}> & {
|
|
158
|
-
type: "plugin.added";
|
|
159
|
-
durability: "ephemeral";
|
|
160
|
-
durable: undefined;
|
|
161
|
-
data: Schema.Struct<{
|
|
162
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
163
|
-
}>;
|
|
164
|
-
}, Schema.Struct<{
|
|
165
100
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
166
101
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
167
102
|
};
|
package/dist/plugin.js
CHANGED
|
@@ -5,7 +5,13 @@ import { optional } from "./schema.js";
|
|
|
5
5
|
export const ID = Schema.String.pipe(Schema.brand("Plugin.ID"));
|
|
6
6
|
export const Source = Schema.Union([
|
|
7
7
|
Schema.Struct({ type: Schema.Literal("builtin") }),
|
|
8
|
-
Schema.Struct({
|
|
8
|
+
Schema.Struct({
|
|
9
|
+
type: Schema.Literal("package"),
|
|
10
|
+
target: Schema.String,
|
|
11
|
+
version: Schema.String.pipe(optional),
|
|
12
|
+
outdated: Schema.Literal(true).pipe(optional),
|
|
13
|
+
updating: Schema.Literal(true).pipe(optional),
|
|
14
|
+
}),
|
|
9
15
|
Schema.Struct({ type: Schema.Literal("local"), path: Schema.String }),
|
|
10
16
|
Schema.Struct({ type: Schema.Literal("sdk") }),
|
|
11
17
|
]).annotate({ identifier: "Plugin.Source" });
|
|
@@ -16,7 +22,7 @@ export const Features = Schema.Struct({
|
|
|
16
22
|
}).annotate({ identifier: "Plugin.Features" });
|
|
17
23
|
export const State = Schema.Union([
|
|
18
24
|
Schema.Struct({ status: Schema.Literal("active") }),
|
|
19
|
-
Schema.Struct({ status: Schema.Literal("failed"), error: Schema.String }),
|
|
25
|
+
Schema.Struct({ status: Schema.Literal("failed"), error: Schema.String, ref: Schema.String.pipe(optional) }),
|
|
20
26
|
]).annotate({ identifier: "Plugin.State" });
|
|
21
27
|
export const Info = Schema.Struct({
|
|
22
28
|
id: ID.pipe(optional),
|
|
@@ -24,12 +30,8 @@ export const Info = Schema.Struct({
|
|
|
24
30
|
features: Features,
|
|
25
31
|
state: State,
|
|
26
32
|
}).annotate({ identifier: "Plugin.Info" });
|
|
27
|
-
const Added = ephemeral({
|
|
28
|
-
type: "plugin.added",
|
|
29
|
-
schema: { id: ID },
|
|
30
|
-
});
|
|
31
33
|
const Updated = ephemeral({
|
|
32
34
|
type: "plugin.updated",
|
|
33
35
|
schema: {},
|
|
34
36
|
});
|
|
35
|
-
export const Event = {
|
|
37
|
+
export const Event = { Updated, Definitions: inventory(Updated) };
|
package/dist/provider.d.ts
CHANGED
|
@@ -51,6 +51,31 @@ export declare const Info: Schema.Struct<{
|
|
|
51
51
|
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
52
52
|
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
53
53
|
};
|
|
54
|
+
readonly canonical: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Provider.ID"> & {
|
|
55
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
56
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
57
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
58
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
59
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
60
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
61
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
62
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
63
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
64
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
65
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
66
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Provider.ID"> & {
|
|
67
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
68
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
69
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
70
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
71
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
72
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
73
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
74
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
75
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
76
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
77
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
78
|
+
}>, never, never>;
|
|
54
79
|
readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;
|
|
55
80
|
readonly name: Schema.String;
|
|
56
81
|
readonly activation: Schema.Literals<readonly ["auto", "enabled", "disabled"]>;
|
package/dist/provider.js
CHANGED
|
@@ -30,6 +30,7 @@ export const Request = Schema.Struct({
|
|
|
30
30
|
}).annotate({ identifier: "Provider.Request" });
|
|
31
31
|
export const Info = Schema.Struct({
|
|
32
32
|
id: ID,
|
|
33
|
+
canonical: ID.pipe(optional),
|
|
33
34
|
integrationID: Integration.ID.pipe(optional),
|
|
34
35
|
name: Schema.String,
|
|
35
36
|
activation: Activation,
|
package/dist/token-usage.d.ts
CHANGED
package/dist/token-usage.js
CHANGED
package/dist/tool.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export interface Context {
|
|
|
14
14
|
readonly id: CallID;
|
|
15
15
|
readonly progress: (update: Metadata) => Effect.Effect<void>;
|
|
16
16
|
}
|
|
17
|
+
export interface Namespace {
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly description: string;
|
|
20
|
+
}
|
|
17
21
|
interface BaseOptions {
|
|
18
22
|
readonly namespace?: string;
|
|
19
23
|
readonly permission?: string;
|