@opencode/protocol 0.0.0-dev-1303 → 0.0.0-dev-1308
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/experimental.d.ts +13 -1
- package/dist/groups/job.d.ts +14 -2
- package/dist/groups/job.js +1 -1
- package/package.json +2 -2
|
@@ -566,7 +566,7 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
|
|
|
566
566
|
readonly sessionID: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
567
567
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
568
568
|
}>;
|
|
569
|
-
readonly kind: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["shell", "subagent", "image"]>>;
|
|
569
|
+
readonly kind: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["shell", "subagent", "image", "codemode"]>>;
|
|
570
570
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>>;
|
|
571
571
|
readonly descendants: import("effect/Schema").optional<import("effect/Schema").decodeTo<import("effect/Schema").Boolean, import("effect/Schema").Literals<readonly ["true", "false"]>, never, never>>;
|
|
572
572
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -615,6 +615,18 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
|
|
|
615
615
|
readonly kind: import("effect/Schema").tag<"image">;
|
|
616
616
|
readonly path: import("effect/Schema").String;
|
|
617
617
|
readonly model: import("effect/Schema").String;
|
|
618
|
+
}>, import("effect/Schema").Struct<{
|
|
619
|
+
readonly id: import("effect/Schema").String;
|
|
620
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
621
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
622
|
+
};
|
|
623
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
624
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
625
|
+
readonly time: import("effect/Schema").Struct<{
|
|
626
|
+
readonly started: import("effect/Schema").Finite;
|
|
627
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
628
|
+
}>;
|
|
629
|
+
readonly kind: import("effect/Schema").tag<"codemode">;
|
|
618
630
|
}>]>>;
|
|
619
631
|
}>>, import("effect/Schema").toCodecJson<typeof import("../errors.js").InvalidRequestError | typeof import("../errors.js").SessionNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"media.get", "GET", "/api/experimental/media/:hash", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
620
632
|
hash: import("effect/Schema").String;
|
package/dist/groups/job.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const ListQuery: Schema.Struct<{
|
|
|
5
5
|
readonly sessionID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
|
|
6
6
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7
7
|
}>;
|
|
8
|
-
readonly kind: Schema.optional<Schema.Literals<readonly ["shell", "subagent", "image"]>>;
|
|
8
|
+
readonly kind: Schema.optional<Schema.Literals<readonly ["shell", "subagent", "image", "codemode"]>>;
|
|
9
9
|
readonly status: Schema.optional<Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>>;
|
|
10
10
|
readonly descendants: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
11
11
|
}>;
|
|
@@ -15,7 +15,7 @@ export declare const JobEndpoints: readonly [HttpApiEndpoint.HttpApiEndpoint<"jo
|
|
|
15
15
|
readonly sessionID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
|
|
16
16
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
17
17
|
}>;
|
|
18
|
-
readonly kind: Schema.optional<Schema.Literals<readonly ["shell", "subagent", "image"]>>;
|
|
18
|
+
readonly kind: Schema.optional<Schema.Literals<readonly ["shell", "subagent", "image", "codemode"]>>;
|
|
19
19
|
readonly status: Schema.optional<Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>>;
|
|
20
20
|
readonly descendants: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
21
21
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -64,5 +64,17 @@ export declare const JobEndpoints: readonly [HttpApiEndpoint.HttpApiEndpoint<"jo
|
|
|
64
64
|
readonly kind: Schema.tag<"image">;
|
|
65
65
|
readonly path: Schema.String;
|
|
66
66
|
readonly model: Schema.String;
|
|
67
|
+
}>, Schema.Struct<{
|
|
68
|
+
readonly id: Schema.String;
|
|
69
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
70
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
71
|
+
};
|
|
72
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
73
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
74
|
+
readonly time: Schema.Struct<{
|
|
75
|
+
readonly started: Schema.Finite;
|
|
76
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
77
|
+
}>;
|
|
78
|
+
readonly kind: Schema.tag<"codemode">;
|
|
67
79
|
}>]>>;
|
|
68
80
|
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof SessionNotFoundError>, never, never>];
|
package/dist/groups/job.js
CHANGED
|
@@ -12,7 +12,7 @@ export const ListQuery = Schema.Struct({
|
|
|
12
12
|
description: "Filter to background jobs owned by this session.",
|
|
13
13
|
}),
|
|
14
14
|
kind: Schema.optional(Job.Kind).annotate({
|
|
15
|
-
description: "Filter by background job kind
|
|
15
|
+
description: "Filter by background job kind.",
|
|
16
16
|
}),
|
|
17
17
|
status: Schema.optional(Job.Status).annotate({
|
|
18
18
|
description: "Filter by job status (running, completed, error, or cancelled).",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/protocol",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-1308",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"typecheck:tsc": "tsc --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@opencode/schema": "0.0.0-dev-
|
|
38
|
+
"@opencode/schema": "0.0.0-dev-1308",
|
|
39
39
|
"effect": "4.1.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|