@opencode/protocol 0.0.0-dev-21105 → 0.0.0-dev-21107
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/groups/agent.d.ts +9 -9
- package/dist/groups/credential.d.ts +36 -36
- package/dist/groups/event.d.ts +2202 -2202
- package/dist/groups/form.d.ts +24 -24
- package/dist/groups/fs.d.ts +12 -12
- package/dist/groups/integration.d.ts +278 -278
- package/dist/groups/mcp.d.ts +22 -22
- package/dist/groups/message.d.ts +72 -72
- package/dist/groups/model.d.ts +108 -108
- package/dist/groups/permission.d.ts +16 -16
- package/dist/groups/persistent-pty.d.ts +122 -122
- package/dist/groups/plugin.d.ts +7 -7
- package/dist/groups/provider.d.ts +20 -20
- package/dist/groups/pty.d.ts +11 -11
- package/dist/groups/reference.d.ts +5 -5
- package/dist/groups/server.d.ts +6 -6
- package/dist/groups/session.d.ts +6256 -6256
- package/dist/groups/shell.d.ts +20 -20
- package/dist/groups/vcs.d.ts +30 -30
- package/dist/groups/worktree.d.ts +11 -11
- package/dist/simulation.d.ts +237 -237
- package/package.json +5 -5
package/dist/groups/form.d.ts
CHANGED
|
@@ -9,7 +9,27 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
9
9
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10
10
|
}>;
|
|
11
11
|
readonly data: Schema.$Array<Schema.Struct<{
|
|
12
|
+
readonly id: Schema.brand<Schema.String, "Form.ID"> & {
|
|
13
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
14
|
+
};
|
|
15
|
+
readonly sessionID: Schema.String;
|
|
16
|
+
readonly title: Schema.String;
|
|
17
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12
18
|
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
19
|
+
readonly key: Schema.String;
|
|
20
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
21
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
22
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
23
|
+
readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
24
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
25
|
+
readonly key: Schema.String;
|
|
26
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
27
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
28
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
29
|
+
readonly key: Schema.String;
|
|
30
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
31
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
32
|
+
}>>>, never, never>;
|
|
13
33
|
readonly type: Schema.Literal<"string">;
|
|
14
34
|
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
15
35
|
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
@@ -27,6 +47,7 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
27
47
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
28
48
|
}>>>, never, never>;
|
|
29
49
|
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
50
|
+
}>, Schema.Struct<{
|
|
30
51
|
readonly key: Schema.String;
|
|
31
52
|
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
32
53
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -41,11 +62,11 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
41
62
|
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
42
63
|
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
43
64
|
}>>>, never, never>;
|
|
44
|
-
}>, Schema.Struct<{
|
|
45
65
|
readonly type: Schema.Literal<"number">;
|
|
46
66
|
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
47
67
|
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
48
68
|
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
69
|
+
}>, Schema.Struct<{
|
|
49
70
|
readonly key: Schema.String;
|
|
50
71
|
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
51
72
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -60,11 +81,11 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
60
81
|
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
61
82
|
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
62
83
|
}>>>, never, never>;
|
|
63
|
-
}>, Schema.Struct<{
|
|
64
84
|
readonly type: Schema.Literal<"integer">;
|
|
65
85
|
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
66
86
|
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
67
87
|
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
88
|
+
}>, Schema.Struct<{
|
|
68
89
|
readonly key: Schema.String;
|
|
69
90
|
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
70
91
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -79,9 +100,9 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
79
100
|
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
80
101
|
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
81
102
|
}>>>, never, never>;
|
|
82
|
-
}>, Schema.Struct<{
|
|
83
103
|
readonly type: Schema.Literal<"boolean">;
|
|
84
104
|
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
105
|
+
}>, Schema.Struct<{
|
|
85
106
|
readonly key: Schema.String;
|
|
86
107
|
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
87
108
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -96,7 +117,6 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
96
117
|
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
97
118
|
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
98
119
|
}>>>, never, never>;
|
|
99
|
-
}>, Schema.Struct<{
|
|
100
120
|
readonly type: Schema.Literal<"multiselect">;
|
|
101
121
|
readonly options: Schema.$Array<Schema.Struct<{
|
|
102
122
|
readonly value: Schema.String;
|
|
@@ -107,20 +127,6 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
107
127
|
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
108
128
|
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
109
129
|
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
110
|
-
readonly key: Schema.String;
|
|
111
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
112
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
113
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
114
|
-
readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
115
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
116
|
-
readonly key: Schema.String;
|
|
117
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
118
|
-
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
119
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
120
|
-
readonly key: Schema.String;
|
|
121
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
122
|
-
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
123
|
-
}>>>, never, never>;
|
|
124
130
|
}>, Schema.Struct<{
|
|
125
131
|
readonly key: Schema.String;
|
|
126
132
|
readonly type: Schema.Literal<"external">;
|
|
@@ -128,11 +134,5 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
128
134
|
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
129
135
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
130
136
|
}>]>>;
|
|
131
|
-
readonly id: Schema.brand<Schema.String, "Form.ID"> & {
|
|
132
|
-
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
133
|
-
};
|
|
134
|
-
readonly sessionID: Schema.String;
|
|
135
|
-
readonly title: Schema.String;
|
|
136
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
137
137
|
}>>;
|
|
138
138
|
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>>, false>;
|
package/dist/groups/fs.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import { FileNotFoundError } from "../errors.js";
|
|
4
|
-
export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", HttpApiEndpoint.HttpApiEndpoint<"fs.
|
|
5
|
-
readonly location: Schema.optional<Schema.Struct<{
|
|
6
|
-
readonly directory: Schema.optional<Schema.String>;
|
|
7
|
-
}>>;
|
|
8
|
-
}>>, never, never, Schema.toCodecJson<Schema.Uint8Array>, Schema.toCodecJson<typeof FileNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.list", "GET", "/api/fs/list", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
9
|
-
readonly path: Schema.optional<Schema.String>;
|
|
4
|
+
export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", HttpApiEndpoint.HttpApiEndpoint<"fs.find", "GET", "/api/fs/find", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
10
5
|
readonly location: Schema.optional<Schema.Struct<{
|
|
11
6
|
readonly directory: Schema.optional<Schema.String>;
|
|
12
7
|
}>>;
|
|
8
|
+
readonly query: Schema.String;
|
|
9
|
+
readonly type: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["file", "directory"]>>>, Schema.optionalKey<Schema.Literals<readonly ["file", "directory"]>>, never, never>;
|
|
10
|
+
readonly limit: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
|
|
13
11
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
14
12
|
readonly location: Schema.Struct<{
|
|
15
13
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -18,13 +16,11 @@ export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", Htt
|
|
|
18
16
|
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
19
17
|
readonly type: Schema.Literals<readonly ["file", "directory"]>;
|
|
20
18
|
}>>;
|
|
21
|
-
}>>,
|
|
22
|
-
readonly query: Schema.String;
|
|
23
|
-
readonly type: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["file", "directory"]>>>, Schema.optionalKey<Schema.Literals<readonly ["file", "directory"]>>, never, never>;
|
|
24
|
-
readonly limit: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
|
|
19
|
+
}>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.list", "GET", "/api/fs/list", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
25
20
|
readonly location: Schema.optional<Schema.Struct<{
|
|
26
21
|
readonly directory: Schema.optional<Schema.String>;
|
|
27
22
|
}>>;
|
|
23
|
+
readonly path: Schema.optional<Schema.String>;
|
|
28
24
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
29
25
|
readonly location: Schema.Struct<{
|
|
30
26
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -33,11 +29,15 @@ export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", Htt
|
|
|
33
29
|
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
34
30
|
readonly type: Schema.Literals<readonly ["file", "directory"]>;
|
|
35
31
|
}>>;
|
|
36
|
-
}>>,
|
|
37
|
-
readonly path: Schema.String;
|
|
32
|
+
}>>, Schema.toCodecJson<typeof FileNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.read", "GET", "/api/fs/read/*", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
38
33
|
readonly location: Schema.optional<Schema.Struct<{
|
|
39
34
|
readonly directory: Schema.optional<Schema.String>;
|
|
40
35
|
}>>;
|
|
36
|
+
}>>, never, never, Schema.toCodecJson<Schema.Uint8Array>, Schema.toCodecJson<typeof FileNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.write", "POST", "/api/experimental/fs/write", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
37
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
38
|
+
readonly directory: Schema.optional<Schema.String>;
|
|
39
|
+
}>>;
|
|
40
|
+
readonly path: Schema.String;
|
|
41
41
|
}>>, Schema.toCodecJson<Schema.Uint8Array>, never, Schema.toCodecJson<Schema.Struct<{
|
|
42
42
|
readonly location: Schema.Struct<{
|
|
43
43
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|