@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/llm.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * as LLM from "./llm.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { optional } from "./schema.js";
|
|
4
|
-
export const ProviderMetadata = Schema.Record(Schema.String, Schema.Record(Schema.String, Schema.Unknown)).annotate({
|
|
5
|
-
identifier: "LLM.ProviderMetadata",
|
|
6
|
-
});
|
|
7
|
-
export const ToolTextContent = Schema.Struct({
|
|
8
|
-
type: Schema.Literal("text"),
|
|
9
|
-
text: Schema.String,
|
|
10
|
-
}).annotate({ identifier: "Tool.TextContent" });
|
|
11
|
-
export const ToolFileContent = Schema.Struct({
|
|
12
|
-
type: Schema.Literal("file"),
|
|
13
|
-
uri: Schema.String,
|
|
14
|
-
mime: Schema.String,
|
|
15
|
-
name: optional(Schema.String),
|
|
16
|
-
}).annotate({ identifier: "Tool.FileContent" });
|
|
17
|
-
export const ToolContent = Schema.Union([ToolTextContent, ToolFileContent])
|
|
18
|
-
.pipe(Schema.toTaggedUnion("type"))
|
|
19
|
-
.annotate({ identifier: "LLM.ToolContent" });
|
package/dist/location.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export * as Location from "./location.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export interface Ref extends Schema.Schema.Type<typeof Ref> {
|
|
4
|
-
}
|
|
5
|
-
export declare const Ref: Schema.Struct<{
|
|
6
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
7
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
9
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
10
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
12
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13
|
-
}>, never, never>;
|
|
14
|
-
}>;
|
|
15
|
-
declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
16
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
18
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
19
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
20
|
-
}>>, Schema.optionalKey<Schema.brand<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
|
-
}>, never, never>;
|
|
24
|
-
readonly project: Schema.Struct<{
|
|
25
|
-
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
26
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
27
|
-
};
|
|
28
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
29
|
-
}>;
|
|
30
|
-
}>, {}>;
|
|
31
|
-
export declare class Info extends Info_base {
|
|
32
|
-
}
|
|
33
|
-
export declare function response<S extends Schema.Top>(data: S): Schema.Struct<{
|
|
34
|
-
readonly location: typeof Info;
|
|
35
|
-
readonly data: S;
|
|
36
|
-
}>;
|
package/dist/location.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * as Location from "./location.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { AbsolutePath, optional } from "./schema.js";
|
|
4
|
-
import { ProjectID } from "./project-id.js";
|
|
5
|
-
import { WorkspaceID } from "./workspace-id.js";
|
|
6
|
-
export const Ref = Schema.Struct({
|
|
7
|
-
directory: AbsolutePath,
|
|
8
|
-
workspaceID: optional(WorkspaceID),
|
|
9
|
-
}).annotate({ identifier: "Location.Ref" });
|
|
10
|
-
export class Info extends Schema.Class("Location.Info")({
|
|
11
|
-
directory: AbsolutePath,
|
|
12
|
-
workspaceID: optional(WorkspaceID),
|
|
13
|
-
project: Schema.Struct({
|
|
14
|
-
id: ProjectID,
|
|
15
|
-
directory: AbsolutePath,
|
|
16
|
-
}),
|
|
17
|
-
}) {
|
|
18
|
-
}
|
|
19
|
-
export function response(data) {
|
|
20
|
-
return Schema.Struct({ location: Info, data });
|
|
21
|
-
}
|
package/dist/lsp-event.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export * as LspEvent from "./lsp-event.js";
|
|
2
|
-
export declare const Updated: import("effect/Schema").Struct<{
|
|
3
|
-
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
4
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5
|
-
};
|
|
6
|
-
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
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<"lsp.updated">;
|
|
9
|
-
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
10
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
11
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
12
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
15
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
16
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
17
|
-
}>, never, never>;
|
|
18
|
-
}>>>, import("effect/Schema").optionalKey<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
|
-
}>>, never, never>;
|
|
28
|
-
readonly data: import("effect/Schema").Struct<{}>;
|
|
29
|
-
}> & {
|
|
30
|
-
type: "lsp.updated";
|
|
31
|
-
durability: "ephemeral";
|
|
32
|
-
durable: undefined;
|
|
33
|
-
data: import("effect/Schema").Struct<{}>;
|
|
34
|
-
};
|
|
35
|
-
export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
36
|
-
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
37
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
38
|
-
};
|
|
39
|
-
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
40
|
-
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>;
|
|
41
|
-
readonly type: import("effect/Schema").Literal<"lsp.updated">;
|
|
42
|
-
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
43
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
44
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
45
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
46
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
47
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
48
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
49
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
50
|
-
}>, never, never>;
|
|
51
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
52
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
53
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
54
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
55
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
56
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
57
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
58
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
59
|
-
}>, never, never>;
|
|
60
|
-
}>>, never, never>;
|
|
61
|
-
readonly data: import("effect/Schema").Struct<{}>;
|
|
62
|
-
}> & {
|
|
63
|
-
type: "lsp.updated";
|
|
64
|
-
durability: "ephemeral";
|
|
65
|
-
durable: undefined;
|
|
66
|
-
data: import("effect/Schema").Struct<{}>;
|
|
67
|
-
}];
|
package/dist/lsp-event.js
DELETED
package/dist/mcp-event.d.ts
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
export * as McpEvent from "./mcp-event.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const ToolsChanged: Schema.Struct<{
|
|
4
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6
|
-
};
|
|
7
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9
|
-
readonly type: Schema.Literal<"mcp.tools.changed">;
|
|
10
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
12
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
13
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
15
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
16
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
17
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
18
|
-
}>, never, never>;
|
|
19
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
21
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
22
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
23
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
24
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
25
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
26
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
27
|
-
}>, never, never>;
|
|
28
|
-
}>>, never, never>;
|
|
29
|
-
readonly data: Schema.Struct<{
|
|
30
|
-
readonly server: Schema.String;
|
|
31
|
-
}>;
|
|
32
|
-
}> & {
|
|
33
|
-
type: "mcp.tools.changed";
|
|
34
|
-
durability: "ephemeral";
|
|
35
|
-
durable: undefined;
|
|
36
|
-
data: Schema.Struct<{
|
|
37
|
-
readonly server: Schema.String;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
export declare const BrowserOpenFailed: Schema.Struct<{
|
|
41
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
42
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
43
|
-
};
|
|
44
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
45
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
46
|
-
readonly type: Schema.Literal<"mcp.browser.open.failed">;
|
|
47
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
48
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
49
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
50
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
51
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
52
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
53
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
54
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
55
|
-
}>, never, never>;
|
|
56
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
57
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
58
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
59
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
60
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
61
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
62
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
63
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
64
|
-
}>, never, never>;
|
|
65
|
-
}>>, never, never>;
|
|
66
|
-
readonly data: Schema.Struct<{
|
|
67
|
-
readonly mcpName: Schema.String;
|
|
68
|
-
readonly url: Schema.String;
|
|
69
|
-
}>;
|
|
70
|
-
}> & {
|
|
71
|
-
type: "mcp.browser.open.failed";
|
|
72
|
-
durability: "ephemeral";
|
|
73
|
-
durable: undefined;
|
|
74
|
-
data: Schema.Struct<{
|
|
75
|
-
readonly mcpName: Schema.String;
|
|
76
|
-
readonly url: Schema.String;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
export declare const StatusChanged: Schema.Struct<{
|
|
80
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
81
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
82
|
-
};
|
|
83
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
84
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
85
|
-
readonly type: Schema.Literal<"mcp.status.changed">;
|
|
86
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
87
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
88
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
89
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
90
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
91
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
92
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
93
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
94
|
-
}>, never, never>;
|
|
95
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
96
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
97
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
98
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
99
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
100
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
101
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
102
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
103
|
-
}>, never, never>;
|
|
104
|
-
}>>, never, never>;
|
|
105
|
-
readonly data: Schema.Struct<{
|
|
106
|
-
readonly server: Schema.String;
|
|
107
|
-
}>;
|
|
108
|
-
}> & {
|
|
109
|
-
type: "mcp.status.changed";
|
|
110
|
-
durability: "ephemeral";
|
|
111
|
-
durable: undefined;
|
|
112
|
-
data: Schema.Struct<{
|
|
113
|
-
readonly server: Schema.String;
|
|
114
|
-
}>;
|
|
115
|
-
};
|
|
116
|
-
export declare const Definitions: readonly [Schema.Struct<{
|
|
117
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
118
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
119
|
-
};
|
|
120
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
121
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
122
|
-
readonly type: Schema.Literal<"mcp.tools.changed">;
|
|
123
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
124
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
125
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
126
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
127
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
128
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
129
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
130
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
131
|
-
}>, never, never>;
|
|
132
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
133
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
134
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
135
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
136
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
137
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
138
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
139
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
140
|
-
}>, never, never>;
|
|
141
|
-
}>>, never, never>;
|
|
142
|
-
readonly data: Schema.Struct<{
|
|
143
|
-
readonly server: Schema.String;
|
|
144
|
-
}>;
|
|
145
|
-
}> & {
|
|
146
|
-
type: "mcp.tools.changed";
|
|
147
|
-
durability: "ephemeral";
|
|
148
|
-
durable: undefined;
|
|
149
|
-
data: Schema.Struct<{
|
|
150
|
-
readonly server: Schema.String;
|
|
151
|
-
}>;
|
|
152
|
-
}, Schema.Struct<{
|
|
153
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
154
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
155
|
-
};
|
|
156
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
157
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
158
|
-
readonly type: Schema.Literal<"mcp.status.changed">;
|
|
159
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
160
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
161
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<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
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
165
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
166
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
167
|
-
}>, never, never>;
|
|
168
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
169
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
170
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
171
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
172
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
173
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
174
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
175
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
176
|
-
}>, never, never>;
|
|
177
|
-
}>>, never, never>;
|
|
178
|
-
readonly data: Schema.Struct<{
|
|
179
|
-
readonly server: Schema.String;
|
|
180
|
-
}>;
|
|
181
|
-
}> & {
|
|
182
|
-
type: "mcp.status.changed";
|
|
183
|
-
durability: "ephemeral";
|
|
184
|
-
durable: undefined;
|
|
185
|
-
data: Schema.Struct<{
|
|
186
|
-
readonly server: Schema.String;
|
|
187
|
-
}>;
|
|
188
|
-
}];
|
package/dist/mcp-event.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export * as McpEvent from "./mcp-event.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { Event } from "./event.js";
|
|
4
|
-
export const ToolsChanged = Event.ephemeral({
|
|
5
|
-
type: "mcp.tools.changed",
|
|
6
|
-
schema: {
|
|
7
|
-
server: Schema.String,
|
|
8
|
-
},
|
|
9
|
-
});
|
|
10
|
-
export const BrowserOpenFailed = Event.ephemeral({
|
|
11
|
-
type: "mcp.browser.open.failed",
|
|
12
|
-
schema: {
|
|
13
|
-
mcpName: Schema.String,
|
|
14
|
-
url: Schema.String,
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
// Emitted whenever a server's connection status settles (connected, failed, needs_auth, closed) so
|
|
18
|
-
// observers can refresh status without polling.
|
|
19
|
-
export const StatusChanged = Event.ephemeral({
|
|
20
|
-
type: "mcp.status.changed",
|
|
21
|
-
schema: {
|
|
22
|
-
server: Schema.String,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
export const Definitions = Event.inventory(ToolsChanged, StatusChanged);
|
package/dist/mcp.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export * as Mcp from "./mcp.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export type Status = typeof Status.Type;
|
|
4
|
-
export declare const Status: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
5
|
-
readonly status: Schema.Literal<"connected">;
|
|
6
|
-
}>, Schema.Struct<{
|
|
7
|
-
readonly status: Schema.Literal<"pending">;
|
|
8
|
-
}>, Schema.Struct<{
|
|
9
|
-
readonly status: Schema.Literal<"disabled">;
|
|
10
|
-
}>, Schema.Struct<{
|
|
11
|
-
readonly status: Schema.Literal<"failed">;
|
|
12
|
-
readonly error: Schema.String;
|
|
13
|
-
}>, Schema.Struct<{
|
|
14
|
-
readonly status: Schema.Literal<"needs_auth">;
|
|
15
|
-
}>, Schema.Struct<{
|
|
16
|
-
readonly status: Schema.Literal<"needs_client_registration">;
|
|
17
|
-
readonly error: Schema.String;
|
|
18
|
-
}>]>;
|
|
19
|
-
export interface Server extends Schema.Schema.Type<typeof Server> {
|
|
20
|
-
}
|
|
21
|
-
export declare const Server: Schema.Struct<{
|
|
22
|
-
readonly name: Schema.String;
|
|
23
|
-
readonly status: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
24
|
-
readonly status: Schema.Literal<"connected">;
|
|
25
|
-
}>, Schema.Struct<{
|
|
26
|
-
readonly status: Schema.Literal<"pending">;
|
|
27
|
-
}>, Schema.Struct<{
|
|
28
|
-
readonly status: Schema.Literal<"disabled">;
|
|
29
|
-
}>, Schema.Struct<{
|
|
30
|
-
readonly status: Schema.Literal<"failed">;
|
|
31
|
-
readonly error: Schema.String;
|
|
32
|
-
}>, Schema.Struct<{
|
|
33
|
-
readonly status: Schema.Literal<"needs_auth">;
|
|
34
|
-
}>, Schema.Struct<{
|
|
35
|
-
readonly status: Schema.Literal<"needs_client_registration">;
|
|
36
|
-
readonly error: Schema.String;
|
|
37
|
-
}>]>;
|
|
38
|
-
readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;
|
|
39
|
-
}>;
|
package/dist/mcp.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export * as Mcp from "./mcp.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { optional } from "./schema.js";
|
|
4
|
-
import { IntegrationID } from "./integration-id.js";
|
|
5
|
-
const Connected = Schema.Struct({ status: Schema.Literal("connected") }).annotate({
|
|
6
|
-
identifier: "Mcp.Status.Connected",
|
|
7
|
-
});
|
|
8
|
-
const Pending = Schema.Struct({ status: Schema.Literal("pending") }).annotate({
|
|
9
|
-
identifier: "Mcp.Status.Pending",
|
|
10
|
-
});
|
|
11
|
-
const Disabled = Schema.Struct({ status: Schema.Literal("disabled") }).annotate({
|
|
12
|
-
identifier: "Mcp.Status.Disabled",
|
|
13
|
-
});
|
|
14
|
-
const Failed = Schema.Struct({ status: Schema.Literal("failed"), error: Schema.String }).annotate({
|
|
15
|
-
identifier: "Mcp.Status.Failed",
|
|
16
|
-
});
|
|
17
|
-
const NeedsAuth = Schema.Struct({ status: Schema.Literal("needs_auth") }).annotate({
|
|
18
|
-
identifier: "Mcp.Status.NeedsAuth",
|
|
19
|
-
});
|
|
20
|
-
const NeedsClientRegistration = Schema.Struct({
|
|
21
|
-
status: Schema.Literal("needs_client_registration"),
|
|
22
|
-
error: Schema.String,
|
|
23
|
-
}).annotate({ identifier: "Mcp.Status.NeedsClientRegistration" });
|
|
24
|
-
export const Status = Schema.Union([
|
|
25
|
-
Connected,
|
|
26
|
-
Pending,
|
|
27
|
-
Disabled,
|
|
28
|
-
Failed,
|
|
29
|
-
NeedsAuth,
|
|
30
|
-
NeedsClientRegistration,
|
|
31
|
-
]).pipe(Schema.toTaggedUnion("status"));
|
|
32
|
-
export const Server = Schema.Struct({
|
|
33
|
-
name: Schema.String,
|
|
34
|
-
status: Status,
|
|
35
|
-
// Set for remote servers registered as OAuth integrations; lets clients act on the right integration
|
|
36
|
-
// without matching by name, which could collide with provider or plugin integrations.
|
|
37
|
-
integrationID: optional(IntegrationID),
|
|
38
|
-
}).annotate({ identifier: "Mcp.Server" });
|