@opencode-ai/schema 0.0.0-next-14854 → 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/README.md
ADDED
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/package.json",
|
|
3
2
|
"name": "@opencode-ai/schema",
|
|
4
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-reserved.0",
|
|
4
|
+
"description": "Reserved package name for opencode schema.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -12,30 +12,7 @@
|
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
15
|
"exports": {
|
|
19
|
-
".":
|
|
20
|
-
"import": "./dist/index.js",
|
|
21
|
-
"types": "./dist/index.d.ts"
|
|
22
|
-
},
|
|
23
|
-
"./*": {
|
|
24
|
-
"import": "./dist/*.js",
|
|
25
|
-
"types": "./dist/*.d.ts"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "bun run script/build.ts",
|
|
30
|
-
"typecheck": "tsgo --noEmit"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"effect": "4.0.0-beta.83"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@tsconfig/bun": "1.0.9",
|
|
37
|
-
"@types/bun": "1.3.13",
|
|
38
|
-
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
39
|
-
"typescript": "5.8.2"
|
|
16
|
+
".": "./index.js"
|
|
40
17
|
}
|
|
41
18
|
}
|
package/dist/agent.d.ts
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
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 settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
46
|
-
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
47
|
-
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
48
|
-
}>;
|
|
49
|
-
readonly system: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
50
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
51
|
-
readonly mode: Schema.Literals<readonly ["subagent", "primary", "all"]>;
|
|
52
|
-
readonly hidden: Schema.Boolean;
|
|
53
|
-
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>;
|
|
54
|
-
readonly steps: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
55
|
-
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
56
|
-
readonly action: Schema.String;
|
|
57
|
-
readonly resource: Schema.String;
|
|
58
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
59
|
-
}>>;
|
|
60
|
-
}> & {
|
|
61
|
-
empty: (id: ID) => {
|
|
62
|
-
readonly id: string & import("effect/Brand").Brand<"AgentV2.ID">;
|
|
63
|
-
readonly request: {
|
|
64
|
-
readonly settings: {
|
|
65
|
-
readonly [x: string]: unknown;
|
|
66
|
-
};
|
|
67
|
-
readonly headers: {
|
|
68
|
-
readonly [x: string]: string;
|
|
69
|
-
};
|
|
70
|
-
readonly body: {
|
|
71
|
-
readonly [x: string]: Schema.Json;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
readonly mode: "primary" | "subagent" | "all";
|
|
75
|
-
readonly hidden: boolean;
|
|
76
|
-
readonly permissions: readonly {
|
|
77
|
-
readonly action: string;
|
|
78
|
-
readonly resource: string;
|
|
79
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
80
|
-
}[];
|
|
81
|
-
readonly model?: {
|
|
82
|
-
readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
|
|
83
|
-
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
84
|
-
readonly variant?: (string & import("effect/Brand").Brand<"VariantID">) | undefined;
|
|
85
|
-
} | undefined;
|
|
86
|
-
readonly system?: string | undefined;
|
|
87
|
-
readonly description?: string | undefined;
|
|
88
|
-
readonly color?: string | undefined;
|
|
89
|
-
readonly steps?: number | undefined;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
export declare const Event: {
|
|
93
|
-
Updated: Schema.Struct<{
|
|
94
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
95
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
96
|
-
};
|
|
97
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
98
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
99
|
-
readonly type: Schema.Literal<"agent.updated">;
|
|
100
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
101
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
102
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
103
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
104
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
105
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
106
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
107
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
108
|
-
}>, never, never>;
|
|
109
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
110
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
111
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
112
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
113
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
114
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
115
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
116
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
117
|
-
}>, never, never>;
|
|
118
|
-
}>>, never, never>;
|
|
119
|
-
readonly data: Schema.Struct<{}>;
|
|
120
|
-
}> & {
|
|
121
|
-
type: "agent.updated";
|
|
122
|
-
durability: "ephemeral";
|
|
123
|
-
durable: undefined;
|
|
124
|
-
data: Schema.Struct<{}>;
|
|
125
|
-
};
|
|
126
|
-
Definitions: readonly [Schema.Struct<{
|
|
127
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
128
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
129
|
-
};
|
|
130
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
131
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
132
|
-
readonly type: Schema.Literal<"agent.updated">;
|
|
133
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
134
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
135
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
136
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
137
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
138
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
139
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
140
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
141
|
-
}>, never, never>;
|
|
142
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
143
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
144
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
145
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
146
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
147
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
148
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
149
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
150
|
-
}>, never, never>;
|
|
151
|
-
}>>, never, never>;
|
|
152
|
-
readonly data: Schema.Struct<{}>;
|
|
153
|
-
}> & {
|
|
154
|
-
type: "agent.updated";
|
|
155
|
-
durability: "ephemeral";
|
|
156
|
-
durable: undefined;
|
|
157
|
-
data: Schema.Struct<{}>;
|
|
158
|
-
}];
|
|
159
|
-
};
|
package/dist/agent.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export * as Agent from "./agent.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { ephemeral, 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 = ephemeral({ 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: { settings: {}, 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
|
-
};
|
package/dist/catalog.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
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 created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
8
|
-
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>;
|
|
9
|
-
readonly type: import("effect/Schema").Literal<"catalog.updated">;
|
|
10
|
-
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
11
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
12
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/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
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/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
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
20
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
21
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/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
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/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: import("effect/Schema").Struct<{}>;
|
|
30
|
-
}> & {
|
|
31
|
-
type: "catalog.updated";
|
|
32
|
-
durability: "ephemeral";
|
|
33
|
-
durable: undefined;
|
|
34
|
-
data: import("effect/Schema").Struct<{}>;
|
|
35
|
-
};
|
|
36
|
-
Definitions: readonly [import("effect/Schema").Struct<{
|
|
37
|
-
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
38
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
39
|
-
};
|
|
40
|
-
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
41
|
-
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>;
|
|
42
|
-
readonly type: import("effect/Schema").Literal<"catalog.updated">;
|
|
43
|
-
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
44
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
45
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
46
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
47
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
48
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
49
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
50
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
51
|
-
}>, never, never>;
|
|
52
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
53
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
54
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
55
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
56
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
57
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
58
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
59
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
60
|
-
}>, never, never>;
|
|
61
|
-
}>>, never, never>;
|
|
62
|
-
readonly data: import("effect/Schema").Struct<{}>;
|
|
63
|
-
}> & {
|
|
64
|
-
type: "catalog.updated";
|
|
65
|
-
durability: "ephemeral";
|
|
66
|
-
durable: undefined;
|
|
67
|
-
data: import("effect/Schema").Struct<{}>;
|
|
68
|
-
}];
|
|
69
|
-
};
|
package/dist/catalog.js
DELETED
package/dist/command.d.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
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
|
-
}>;
|
|
45
|
-
export declare const Event: {
|
|
46
|
-
Updated: Schema.Struct<{
|
|
47
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
48
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
49
|
-
};
|
|
50
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
51
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
52
|
-
readonly type: Schema.Literal<"command.updated">;
|
|
53
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
54
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
55
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
56
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
57
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
58
|
-
}>>, Schema.optionalKey<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
|
-
}>, never, never>;
|
|
62
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
63
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
64
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
65
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
66
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
67
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
68
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
69
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
70
|
-
}>, never, never>;
|
|
71
|
-
}>>, never, never>;
|
|
72
|
-
readonly data: Schema.Struct<{}>;
|
|
73
|
-
}> & {
|
|
74
|
-
type: "command.updated";
|
|
75
|
-
durability: "ephemeral";
|
|
76
|
-
durable: undefined;
|
|
77
|
-
data: Schema.Struct<{}>;
|
|
78
|
-
};
|
|
79
|
-
Definitions: readonly [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<"command.updated">;
|
|
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
|
-
}> & {
|
|
107
|
-
type: "command.updated";
|
|
108
|
-
durability: "ephemeral";
|
|
109
|
-
durable: undefined;
|
|
110
|
-
data: Schema.Struct<{}>;
|
|
111
|
-
}];
|
|
112
|
-
};
|
package/dist/command.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * as Command from "./command.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { ephemeral, inventory } from "./event.js";
|
|
4
|
-
import { optional } from "./schema.js";
|
|
5
|
-
import { Model } from "./model.js";
|
|
6
|
-
const Updated = ephemeral({ type: "command.updated", schema: {} });
|
|
7
|
-
export const Info = Schema.Struct({
|
|
8
|
-
name: Schema.String,
|
|
9
|
-
template: Schema.String,
|
|
10
|
-
description: Schema.String.pipe(optional),
|
|
11
|
-
agent: Schema.String.pipe(optional),
|
|
12
|
-
model: Model.Ref.pipe(optional),
|
|
13
|
-
subtask: Schema.Boolean.pipe(optional),
|
|
14
|
-
}).annotate({ identifier: "CommandV2.Info" });
|
|
15
|
-
export const Event = {
|
|
16
|
-
Updated,
|
|
17
|
-
Definitions: inventory(Updated),
|
|
18
|
-
};
|
package/dist/config.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export * as Config from "./config.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 created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
8
|
-
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>;
|
|
9
|
-
readonly type: import("effect/Schema").Literal<"config.updated">;
|
|
10
|
-
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
11
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
12
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/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
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/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
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
20
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
21
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/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
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/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: import("effect/Schema").Struct<{}>;
|
|
30
|
-
}> & {
|
|
31
|
-
type: "config.updated";
|
|
32
|
-
durability: "ephemeral";
|
|
33
|
-
durable: undefined;
|
|
34
|
-
data: import("effect/Schema").Struct<{}>;
|
|
35
|
-
};
|
|
36
|
-
Definitions: readonly [import("effect/Schema").Struct<{
|
|
37
|
-
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
38
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
39
|
-
};
|
|
40
|
-
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
41
|
-
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>;
|
|
42
|
-
readonly type: import("effect/Schema").Literal<"config.updated">;
|
|
43
|
-
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
44
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
45
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
46
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
47
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
48
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
49
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
50
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
51
|
-
}>, never, never>;
|
|
52
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
53
|
-
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
54
|
-
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
55
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
56
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
57
|
-
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
58
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
59
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
60
|
-
}>, never, never>;
|
|
61
|
-
}>>, never, never>;
|
|
62
|
-
readonly data: import("effect/Schema").Struct<{}>;
|
|
63
|
-
}> & {
|
|
64
|
-
type: "config.updated";
|
|
65
|
-
durability: "ephemeral";
|
|
66
|
-
durable: undefined;
|
|
67
|
-
data: import("effect/Schema").Struct<{}>;
|
|
68
|
-
}];
|
|
69
|
-
};
|
package/dist/config.js
DELETED
package/dist/connection.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
package/dist/connection.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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" });
|