@opencode-ai/schema 0.0.0-next-14798 → 0.0.0-next-14800
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +6 -28
- package/dist/agent.js +2 -2
- package/dist/catalog.d.ts +6 -28
- package/dist/catalog.js +2 -2
- package/dist/command.d.ts +6 -28
- package/dist/command.js +2 -2
- package/dist/durable-event-manifest.d.ts +254 -8301
- package/dist/durable-event-manifest.js +2 -5
- package/dist/event-manifest.d.ts +994 -2747
- package/dist/event-manifest.js +2 -2
- package/dist/event.d.ts +65 -19
- package/dist/event.js +24 -5
- package/dist/filesystem-watcher.d.ts +6 -28
- package/dist/filesystem-watcher.js +2 -2
- package/dist/filesystem.d.ts +6 -28
- package/dist/filesystem.js +2 -2
- package/dist/form.d.ts +18 -84
- package/dist/form.js +4 -4
- package/dist/ide-event.d.ts +6 -28
- package/dist/ide-event.js +1 -1
- package/dist/installation-event.d.ts +12 -56
- package/dist/installation-event.js +2 -2
- package/dist/integration.d.ts +12 -56
- package/dist/integration.js +3 -3
- package/dist/lsp-event.d.ts +6 -28
- package/dist/lsp-event.js +1 -1
- package/dist/mcp-event.d.ts +18 -84
- package/dist/mcp-event.js +3 -3
- package/dist/models-dev.d.ts +6 -28
- package/dist/models-dev.js +2 -2
- package/dist/permission.d.ts +12 -56
- package/dist/permission.js +3 -3
- package/dist/plugin.d.ts +6 -28
- package/dist/plugin.js +2 -2
- package/dist/project-directories.d.ts +6 -28
- package/dist/project-directories.js +2 -2
- package/dist/project.d.ts +6 -28
- package/dist/project.js +2 -2
- package/dist/pty.d.ts +24 -112
- package/dist/pty.js +5 -5
- package/dist/question.d.ts +18 -84
- package/dist/question.js +4 -4
- package/dist/reference.d.ts +6 -28
- package/dist/reference.js +2 -2
- package/dist/server-event.d.ts +12 -56
- package/dist/server-event.js +2 -2
- package/dist/session-compaction-event.d.ts +6 -28
- package/dist/session-compaction-event.js +1 -1
- package/dist/session-event.d.ts +1900 -2530
- package/dist/session-event.js +37 -37
- package/dist/session-status-event.d.ts +12 -56
- package/dist/session-status-event.js +2 -2
- package/dist/session-todo.d.ts +6 -28
- package/dist/session-todo.js +2 -2
- package/dist/shell.d.ts +18 -84
- package/dist/shell.js +4 -4
- package/dist/skill.d.ts +6 -28
- package/dist/skill.js +2 -2
- package/dist/tui-event.d.ts +24 -112
- package/dist/tui-event.js +4 -4
- package/dist/v1/legacy-event.d.ts +6 -28
- package/dist/v1/legacy-event.js +2 -2
- package/dist/v1/permission.d.ts +12 -56
- package/dist/v1/permission.js +3 -3
- package/dist/v1/question.d.ts +18 -84
- package/dist/v1/question.js +4 -4
- package/dist/v1/session.d.ts +139 -280
- package/dist/v1/session.js +11 -11
- package/dist/vcs-event.d.ts +6 -28
- package/dist/vcs-event.js +1 -1
- package/dist/workspace-event.d.ts +18 -84
- package/dist/workspace-event.js +3 -3
- package/dist/worktree-event.d.ts +12 -56
- package/dist/worktree-event.js +2 -2
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -96,15 +96,6 @@ export declare const Event: {
|
|
|
96
96
|
};
|
|
97
97
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
98
98
|
readonly type: Schema.Literal<"agent.updated">;
|
|
99
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
100
|
-
readonly aggregateID: Schema.String;
|
|
101
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
102
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
103
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
104
|
-
readonly aggregateID: Schema.String;
|
|
105
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
106
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
107
|
-
}>>, never, never>;
|
|
108
99
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
109
100
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
110
101
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -126,12 +117,10 @@ export declare const Event: {
|
|
|
126
117
|
}>>, never, never>;
|
|
127
118
|
readonly data: Schema.Struct<{}>;
|
|
128
119
|
}> & {
|
|
129
|
-
data: Schema.Struct<{}>;
|
|
130
|
-
durable?: {
|
|
131
|
-
readonly version: number;
|
|
132
|
-
readonly aggregate: string;
|
|
133
|
-
} | undefined;
|
|
134
120
|
type: "agent.updated";
|
|
121
|
+
durability: "ephemeral";
|
|
122
|
+
durable: undefined;
|
|
123
|
+
data: Schema.Struct<{}>;
|
|
135
124
|
};
|
|
136
125
|
Definitions: readonly [Schema.Struct<{
|
|
137
126
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -139,15 +128,6 @@ export declare const Event: {
|
|
|
139
128
|
};
|
|
140
129
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
141
130
|
readonly type: Schema.Literal<"agent.updated">;
|
|
142
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
143
|
-
readonly aggregateID: Schema.String;
|
|
144
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
145
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
146
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
147
|
-
readonly aggregateID: Schema.String;
|
|
148
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
149
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
150
|
-
}>>, never, never>;
|
|
151
131
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
152
132
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
153
133
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -169,11 +149,9 @@ export declare const Event: {
|
|
|
169
149
|
}>>, never, never>;
|
|
170
150
|
readonly data: Schema.Struct<{}>;
|
|
171
151
|
}> & {
|
|
172
|
-
data: Schema.Struct<{}>;
|
|
173
|
-
durable?: {
|
|
174
|
-
readonly version: number;
|
|
175
|
-
readonly aggregate: string;
|
|
176
|
-
} | undefined;
|
|
177
152
|
type: "agent.updated";
|
|
153
|
+
durability: "ephemeral";
|
|
154
|
+
durable: undefined;
|
|
155
|
+
data: Schema.Struct<{}>;
|
|
178
156
|
}];
|
|
179
157
|
};
|
package/dist/agent.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as Agent from "./agent.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import {
|
|
3
|
+
import { ephemeral, inventory } from "./event.js";
|
|
4
4
|
import { optional } from "./schema.js";
|
|
5
5
|
import { Model } from "./model.js";
|
|
6
6
|
import { Permission } from "./permission.js";
|
|
7
7
|
import { Provider } from "./provider.js";
|
|
8
8
|
import { PositiveInt, statics } from "./schema.js";
|
|
9
|
-
const Updated =
|
|
9
|
+
const Updated = ephemeral({ type: "agent.updated", schema: {} });
|
|
10
10
|
export const ID = Schema.String.pipe(Schema.brand("AgentV2.ID"));
|
|
11
11
|
export const Color = Schema.Union([
|
|
12
12
|
Schema.String.check(Schema.isPattern(/^#[0-9a-fA-F]{6}$/)),
|
package/dist/catalog.d.ts
CHANGED
|
@@ -6,15 +6,6 @@ export declare const Event: {
|
|
|
6
6
|
};
|
|
7
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
8
|
readonly type: import("effect/Schema").Literal<"catalog.updated">;
|
|
9
|
-
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
10
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
11
|
-
readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
|
|
12
|
-
readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
|
|
13
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
14
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
15
|
-
readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
|
|
16
|
-
readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
|
|
17
|
-
}>>, never, never>;
|
|
18
9
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
19
10
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
20
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"> & {
|
|
@@ -36,12 +27,10 @@ export declare const Event: {
|
|
|
36
27
|
}>>, never, never>;
|
|
37
28
|
readonly data: import("effect/Schema").Struct<{}>;
|
|
38
29
|
}> & {
|
|
39
|
-
data: import("effect/Schema").Struct<{}>;
|
|
40
|
-
durable?: {
|
|
41
|
-
readonly version: number;
|
|
42
|
-
readonly aggregate: string;
|
|
43
|
-
} | undefined;
|
|
44
30
|
type: "catalog.updated";
|
|
31
|
+
durability: "ephemeral";
|
|
32
|
+
durable: undefined;
|
|
33
|
+
data: import("effect/Schema").Struct<{}>;
|
|
45
34
|
};
|
|
46
35
|
Definitions: readonly [import("effect/Schema").Struct<{
|
|
47
36
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
@@ -49,15 +38,6 @@ export declare const Event: {
|
|
|
49
38
|
};
|
|
50
39
|
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
51
40
|
readonly type: import("effect/Schema").Literal<"catalog.updated">;
|
|
52
|
-
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
53
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
54
|
-
readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
|
|
55
|
-
readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
|
|
56
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
57
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
58
|
-
readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
|
|
59
|
-
readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
|
|
60
|
-
}>>, never, never>;
|
|
61
41
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
62
42
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
63
43
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -79,11 +59,9 @@ export declare const Event: {
|
|
|
79
59
|
}>>, never, never>;
|
|
80
60
|
readonly data: import("effect/Schema").Struct<{}>;
|
|
81
61
|
}> & {
|
|
82
|
-
data: import("effect/Schema").Struct<{}>;
|
|
83
|
-
durable?: {
|
|
84
|
-
readonly version: number;
|
|
85
|
-
readonly aggregate: string;
|
|
86
|
-
} | undefined;
|
|
87
62
|
type: "catalog.updated";
|
|
63
|
+
durability: "ephemeral";
|
|
64
|
+
durable: undefined;
|
|
65
|
+
data: import("effect/Schema").Struct<{}>;
|
|
88
66
|
}];
|
|
89
67
|
};
|
package/dist/catalog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * as Catalog from "./catalog.js";
|
|
2
|
-
import {
|
|
3
|
-
const Updated =
|
|
2
|
+
import { ephemeral, inventory } from "./event.js";
|
|
3
|
+
const Updated = ephemeral({ type: "catalog.updated", schema: {} });
|
|
4
4
|
export const Event = { Updated, Definitions: inventory(Updated) };
|
package/dist/command.d.ts
CHANGED
|
@@ -49,15 +49,6 @@ export declare const Event: {
|
|
|
49
49
|
};
|
|
50
50
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
51
51
|
readonly type: Schema.Literal<"command.updated">;
|
|
52
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
53
|
-
readonly aggregateID: Schema.String;
|
|
54
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
55
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
56
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
57
|
-
readonly aggregateID: Schema.String;
|
|
58
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
59
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
60
|
-
}>>, never, never>;
|
|
61
52
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
62
53
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
63
54
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -79,12 +70,10 @@ export declare const Event: {
|
|
|
79
70
|
}>>, never, never>;
|
|
80
71
|
readonly data: Schema.Struct<{}>;
|
|
81
72
|
}> & {
|
|
82
|
-
data: Schema.Struct<{}>;
|
|
83
|
-
durable?: {
|
|
84
|
-
readonly version: number;
|
|
85
|
-
readonly aggregate: string;
|
|
86
|
-
} | undefined;
|
|
87
73
|
type: "command.updated";
|
|
74
|
+
durability: "ephemeral";
|
|
75
|
+
durable: undefined;
|
|
76
|
+
data: Schema.Struct<{}>;
|
|
88
77
|
};
|
|
89
78
|
Definitions: readonly [Schema.Struct<{
|
|
90
79
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -92,15 +81,6 @@ export declare const Event: {
|
|
|
92
81
|
};
|
|
93
82
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
94
83
|
readonly type: Schema.Literal<"command.updated">;
|
|
95
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
96
|
-
readonly aggregateID: Schema.String;
|
|
97
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
98
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
99
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
100
|
-
readonly aggregateID: Schema.String;
|
|
101
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
102
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
103
|
-
}>>, never, never>;
|
|
104
84
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
105
85
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
106
86
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -122,11 +102,9 @@ export declare const Event: {
|
|
|
122
102
|
}>>, never, never>;
|
|
123
103
|
readonly data: Schema.Struct<{}>;
|
|
124
104
|
}> & {
|
|
125
|
-
data: Schema.Struct<{}>;
|
|
126
|
-
durable?: {
|
|
127
|
-
readonly version: number;
|
|
128
|
-
readonly aggregate: string;
|
|
129
|
-
} | undefined;
|
|
130
105
|
type: "command.updated";
|
|
106
|
+
durability: "ephemeral";
|
|
107
|
+
durable: undefined;
|
|
108
|
+
data: Schema.Struct<{}>;
|
|
131
109
|
}];
|
|
132
110
|
};
|
package/dist/command.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as Command from "./command.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import {
|
|
3
|
+
import { ephemeral, inventory } from "./event.js";
|
|
4
4
|
import { optional } from "./schema.js";
|
|
5
5
|
import { Model } from "./model.js";
|
|
6
|
-
const Updated =
|
|
6
|
+
const Updated = ephemeral({ type: "command.updated", schema: {} });
|
|
7
7
|
export const Info = Schema.Struct({
|
|
8
8
|
name: Schema.String,
|
|
9
9
|
template: Schema.String,
|