@opencode-ai/schema 0.0.0-next-14855 → 0.0.0-reserved.0
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 +3 -0
- package/index.js +1 -0
- package/package.json +3 -26
- package/dist/agent.d.ts +0 -159
- package/dist/agent.js +0 -43
- package/dist/catalog.d.ts +0 -69
- package/dist/catalog.js +0 -4
- package/dist/command.d.ts +0 -112
- package/dist/command.js +0 -18
- package/dist/config.d.ts +0 -69
- package/dist/config.js +0 -7
- package/dist/connection.d.ts +0 -28
- package/dist/connection.js +0 -15
- package/dist/credential.d.ts +0 -36
- package/dist/credential.js +0 -23
- package/dist/durable-event-manifest.d.ts +0 -2370
- package/dist/durable-event-manifest.js +0 -9
- package/dist/event-log.d.ts +0 -45
- package/dist/event-log.js +0 -43
- package/dist/event-manifest.d.ts +0 -15273
- package/dist/event-manifest.js +0 -52
- package/dist/event.d.ts +0 -142
- package/dist/event.js +0 -102
- package/dist/file-diff.d.ts +0 -11
- package/dist/file-diff.js +0 -10
- package/dist/filesystem-v1.d.ts +0 -1
- package/dist/filesystem-v1.js +0 -1
- package/dist/filesystem.d.ts +0 -118
- package/dist/filesystem.js +0 -35
- package/dist/form.d.ts +0 -1279
- package/dist/form.js +0 -112
- package/dist/ide-event.d.ts +0 -76
- package/dist/ide-event.js +0 -10
- package/dist/identifier.d.ts +0 -3
- package/dist/identifier.js +0 -24
- package/dist/index.d.ts +0 -32
- package/dist/index.js +0 -32
- package/dist/installation-event.d.ts +0 -149
- package/dist/installation-event.js +0 -16
- package/dist/integration-id.d.ts +0 -5
- package/dist/integration-id.js +0 -3
- package/dist/integration.d.ts +0 -532
- package/dist/integration.js +0 -93
- package/dist/legacy-event.d.ts +0 -1
- package/dist/legacy-event.js +0 -1
- package/dist/llm.d.ts +0 -28
- package/dist/llm.js +0 -19
- package/dist/location.d.ts +0 -36
- package/dist/location.js +0 -21
- package/dist/lsp-event.d.ts +0 -67
- package/dist/lsp-event.js +0 -4
- package/dist/mcp-event.d.ts +0 -188
- package/dist/mcp-event.js +0 -25
- package/dist/mcp.d.ts +0 -39
- package/dist/mcp.js +0 -38
- package/dist/model.d.ts +0 -213
- package/dist/model.js +0 -86
- package/dist/models-dev.d.ts +0 -69
- package/dist/models-dev.js +0 -7
- package/dist/permission-saved.d.ts +0 -18
- package/dist/permission-saved.js +0 -12
- package/dist/permission-v1.d.ts +0 -1
- package/dist/permission-v1.js +0 -1
- package/dist/permission.d.ts +0 -306
- package/dist/permission.js +0 -45
- package/dist/plugin.d.ts +0 -85
- package/dist/plugin.js +0 -12
- package/dist/project-copy.d.ts +0 -29
- package/dist/project-copy.js +0 -21
- package/dist/project-directories.d.ts +0 -85
- package/dist/project-directories.js +0 -8
- package/dist/project-id.d.ts +0 -5
- package/dist/project-id.js +0 -3
- package/dist/project.d.ts +0 -258
- package/dist/project.js +0 -44
- package/dist/prompt-input.d.ts +0 -106
- package/dist/prompt-input.js +0 -19
- package/dist/prompt.d.ts +0 -177
- package/dist/prompt.js +0 -43
- package/dist/provider.d.ts +0 -118
- package/dist/provider.js +0 -55
- package/dist/pty-ticket.d.ts +0 -8
- package/dist/pty-ticket.js +0 -7
- package/dist/pty.d.ts +0 -462
- package/dist/pty.js +0 -43
- package/dist/question-v1.d.ts +0 -1
- package/dist/question-v1.js +0 -1
- package/dist/question.d.ts +0 -456
- package/dist/question.js +0 -64
- package/dist/reference.d.ts +0 -120
- package/dist/reference.js +0 -31
- package/dist/revert.d.ts +0 -35
- package/dist/revert.js +0 -19
- package/dist/schema.d.ts +0 -10
- package/dist/schema.js +0 -14
- package/dist/server-event.d.ts +0 -132
- package/dist/server-event.js +0 -5
- package/dist/session-compaction-event.d.ts +0 -87
- package/dist/session-compaction-event.js +0 -10
- package/dist/session-context-entry.d.ts +0 -15
- package/dist/session-context-entry.js +0 -15
- package/dist/session-delivery.d.ts +0 -4
- package/dist/session-delivery.js +0 -3
- package/dist/session-event.d.ts +0 -12728
- package/dist/session-event.js +0 -423
- package/dist/session-id.d.ts +0 -6
- package/dist/session-id.js +0 -10
- package/dist/session-input.d.ts +0 -146
- package/dist/session-input.js +0 -18
- package/dist/session-message.d.ts +0 -1390
- package/dist/session-message.js +0 -175
- package/dist/session-status-event.d.ts +0 -299
- package/dist/session-status-event.js +0 -43
- package/dist/session-todo.d.ts +0 -117
- package/dist/session-todo.js +0 -21
- package/dist/session-v1.d.ts +0 -1
- package/dist/session-v1.js +0 -1
- package/dist/session.d.ts +0 -142
- package/dist/session.js +0 -43
- package/dist/shell.d.ts +0 -381
- package/dist/shell.js +0 -58
- package/dist/skill.d.ts +0 -126
- package/dist/skill.js +0 -45
- package/dist/tui-event.d.ts +0 -307
- package/dist/tui-event.js +0 -53
- package/dist/v1/filesystem.d.ts +0 -78
- package/dist/v1/filesystem.js +0 -8
- package/dist/v1/legacy-event.d.ts +0 -108
- package/dist/v1/legacy-event.js +0 -15
- package/dist/v1/permission.d.ts +0 -316
- package/dist/v1/permission.js +0 -41
- package/dist/v1/question.d.ts +0 -444
- package/dist/v1/question.js +0 -57
- package/dist/v1/session.d.ts +0 -7657
- package/dist/v1/session.js +0 -535
- package/dist/vcs-event.d.ts +0 -76
- package/dist/vcs-event.js +0 -11
- package/dist/vcs.d.ts +0 -12
- package/dist/vcs.js +0 -10
- package/dist/workspace-event.d.ts +0 -247
- package/dist/workspace-event.js +0 -25
- package/dist/workspace-id.d.ts +0 -6
- package/dist/workspace-id.js +0 -16
- package/dist/workspace.d.ts +0 -9
- package/dist/workspace.js +0 -5
- package/dist/worktree-event.d.ts +0 -153
- package/dist/worktree-event.js +0 -18
package/dist/provider.d.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
export * as Provider from "./provider.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const ID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
4
|
-
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5
|
-
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6
|
-
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
7
|
-
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
8
|
-
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
9
|
-
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
10
|
-
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
11
|
-
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
12
|
-
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
13
|
-
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
14
|
-
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
15
|
-
};
|
|
16
|
-
export type ID = typeof ID.Type;
|
|
17
|
-
export interface AISDK extends Schema.Schema.Type<typeof AISDK> {
|
|
18
|
-
}
|
|
19
|
-
export declare const AISDK: Schema.Struct<{
|
|
20
|
-
readonly type: Schema.Literal<"aisdk">;
|
|
21
|
-
readonly package: Schema.String;
|
|
22
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
23
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
24
|
-
}>;
|
|
25
|
-
export interface Native extends Schema.Schema.Type<typeof Native> {
|
|
26
|
-
}
|
|
27
|
-
export declare const Native: Schema.Struct<{
|
|
28
|
-
readonly type: Schema.Literal<"native">;
|
|
29
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
30
|
-
readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const Api: Schema.Union<readonly [Schema.Struct<{
|
|
33
|
-
readonly type: Schema.Literal<"aisdk">;
|
|
34
|
-
readonly package: Schema.String;
|
|
35
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
36
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
37
|
-
}>, Schema.Struct<{
|
|
38
|
-
readonly type: Schema.Literal<"native">;
|
|
39
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
40
|
-
readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
41
|
-
}>]>;
|
|
42
|
-
export type Api = typeof Api.Type;
|
|
43
|
-
export declare const Settings: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
44
|
-
export type Settings = typeof Settings.Type;
|
|
45
|
-
export interface Request extends Schema.Schema.Type<typeof Request> {
|
|
46
|
-
}
|
|
47
|
-
export declare const Request: Schema.Struct<{
|
|
48
|
-
readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
49
|
-
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
50
|
-
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
51
|
-
}>;
|
|
52
|
-
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
53
|
-
}
|
|
54
|
-
export declare const Info: Schema.Struct<{
|
|
55
|
-
readonly id: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
56
|
-
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
57
|
-
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
58
|
-
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
59
|
-
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
60
|
-
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
61
|
-
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
62
|
-
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
63
|
-
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
64
|
-
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
65
|
-
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
66
|
-
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
67
|
-
};
|
|
68
|
-
readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;
|
|
69
|
-
readonly name: Schema.String;
|
|
70
|
-
readonly disabled: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
71
|
-
readonly api: Schema.Union<readonly [Schema.Struct<{
|
|
72
|
-
readonly type: Schema.Literal<"aisdk">;
|
|
73
|
-
readonly package: Schema.String;
|
|
74
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
75
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
76
|
-
}>, Schema.Struct<{
|
|
77
|
-
readonly type: Schema.Literal<"native">;
|
|
78
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
79
|
-
readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
80
|
-
}>]>;
|
|
81
|
-
readonly request: Schema.Struct<{
|
|
82
|
-
readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
83
|
-
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
84
|
-
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
85
|
-
}>;
|
|
86
|
-
}> & {
|
|
87
|
-
empty: (id: ID) => {
|
|
88
|
-
readonly id: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
89
|
-
readonly name: string;
|
|
90
|
-
readonly api: {
|
|
91
|
-
readonly type: "aisdk";
|
|
92
|
-
readonly package: string;
|
|
93
|
-
readonly url?: string | undefined;
|
|
94
|
-
readonly settings?: {
|
|
95
|
-
readonly [x: string]: unknown;
|
|
96
|
-
} | undefined;
|
|
97
|
-
} | {
|
|
98
|
-
readonly type: "native";
|
|
99
|
-
readonly settings: {
|
|
100
|
-
readonly [x: string]: unknown;
|
|
101
|
-
};
|
|
102
|
-
readonly url?: string | undefined;
|
|
103
|
-
};
|
|
104
|
-
readonly request: {
|
|
105
|
-
readonly settings: {
|
|
106
|
-
readonly [x: string]: unknown;
|
|
107
|
-
};
|
|
108
|
-
readonly headers: {
|
|
109
|
-
readonly [x: string]: string;
|
|
110
|
-
};
|
|
111
|
-
readonly body: {
|
|
112
|
-
readonly [x: string]: Schema.Json;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
|
|
116
|
-
readonly disabled?: boolean | undefined;
|
|
117
|
-
};
|
|
118
|
-
};
|
package/dist/provider.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export * as Provider from "./provider.js";
|
|
2
|
-
import { Effect, Schema } from "effect";
|
|
3
|
-
import { optional } from "./schema.js";
|
|
4
|
-
import { Integration } from "./integration.js";
|
|
5
|
-
import { statics } from "./schema.js";
|
|
6
|
-
export const ID = Schema.String.pipe(Schema.brand("ProviderV2.ID"), statics((schema) => ({
|
|
7
|
-
opencode: schema.make("opencode"),
|
|
8
|
-
anthropic: schema.make("anthropic"),
|
|
9
|
-
openai: schema.make("openai"),
|
|
10
|
-
google: schema.make("google"),
|
|
11
|
-
googleVertex: schema.make("google-vertex"),
|
|
12
|
-
githubCopilot: schema.make("github-copilot"),
|
|
13
|
-
amazonBedrock: schema.make("amazon-bedrock"),
|
|
14
|
-
azure: schema.make("azure"),
|
|
15
|
-
openrouter: schema.make("openrouter"),
|
|
16
|
-
mistral: schema.make("mistral"),
|
|
17
|
-
gitlab: schema.make("gitlab"),
|
|
18
|
-
})));
|
|
19
|
-
export const AISDK = Schema.Struct({
|
|
20
|
-
type: Schema.Literal("aisdk"),
|
|
21
|
-
package: Schema.String,
|
|
22
|
-
url: Schema.String.pipe(optional),
|
|
23
|
-
settings: Schema.Record(Schema.String, Schema.Unknown).pipe(optional),
|
|
24
|
-
}).annotate({ identifier: "Provider.AISDK" });
|
|
25
|
-
export const Native = Schema.Struct({
|
|
26
|
-
type: Schema.Literal("native"),
|
|
27
|
-
url: Schema.String.pipe(optional),
|
|
28
|
-
settings: Schema.Record(Schema.String, Schema.Unknown),
|
|
29
|
-
}).annotate({ identifier: "Provider.Native" });
|
|
30
|
-
export const Api = Schema.Union([AISDK, Native])
|
|
31
|
-
.pipe(Schema.toTaggedUnion("type"))
|
|
32
|
-
.annotate({ identifier: "Provider.Api" });
|
|
33
|
-
export const Settings = Schema.Record(Schema.String, Schema.Unknown).annotate({ identifier: "Provider.Settings" });
|
|
34
|
-
export const Request = Schema.Struct({
|
|
35
|
-
settings: Settings.pipe(Schema.withConstructorDefault(Effect.succeed({}))),
|
|
36
|
-
headers: Schema.Record(Schema.String, Schema.String),
|
|
37
|
-
body: Schema.Record(Schema.String, Schema.Json),
|
|
38
|
-
}).annotate({ identifier: "Provider.Request" });
|
|
39
|
-
export const Info = Schema.Struct({
|
|
40
|
-
id: ID,
|
|
41
|
-
integrationID: Integration.ID.pipe(optional),
|
|
42
|
-
name: Schema.String,
|
|
43
|
-
disabled: Schema.Boolean.pipe(optional),
|
|
44
|
-
api: Api,
|
|
45
|
-
request: Request,
|
|
46
|
-
})
|
|
47
|
-
.annotate({ identifier: "ProviderV2.Info" })
|
|
48
|
-
.pipe(statics((schema) => ({
|
|
49
|
-
empty: (id) => schema.make({
|
|
50
|
-
id,
|
|
51
|
-
name: id,
|
|
52
|
-
api: { type: "native", settings: {} },
|
|
53
|
-
request: { settings: {}, headers: {}, body: {} },
|
|
54
|
-
}),
|
|
55
|
-
})));
|
package/dist/pty-ticket.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * as PtyTicket from "./pty-ticket.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const ConnectToken: Schema.Struct<{
|
|
4
|
-
readonly ticket: Schema.String;
|
|
5
|
-
readonly expires_in: Schema.Int;
|
|
6
|
-
}>;
|
|
7
|
-
export interface ConnectToken extends Schema.Schema.Type<typeof ConnectToken> {
|
|
8
|
-
}
|
package/dist/pty-ticket.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * as PtyTicket from "./pty-ticket.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { PositiveInt } from "./schema.js";
|
|
4
|
-
export const ConnectToken = Schema.Struct({
|
|
5
|
-
ticket: Schema.String,
|
|
6
|
-
expires_in: PositiveInt,
|
|
7
|
-
}).annotate({ identifier: "PtyTicket.ConnectToken" });
|