@opencode/protocol 0.0.0-dev-20770 → 0.0.0-dev-20775
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/fs.d.ts +1 -1
- package/dist/groups/fs.js +1 -0
- package/dist/groups/message.d.ts +38 -0
- package/dist/groups/session.d.ts +76 -0
- package/package.json +2 -2
package/dist/groups/fs.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", Htt
|
|
|
18
18
|
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
19
19
|
readonly type: Schema.Literals<readonly ["file", "directory"]>;
|
|
20
20
|
}>>;
|
|
21
|
-
}>>,
|
|
21
|
+
}>>, Schema.toCodecJson<typeof FileNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.find", "GET", "/api/fs/find", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
22
22
|
readonly query: Schema.String;
|
|
23
23
|
readonly type: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["file", "directory"]>>>, Schema.optionalKey<Schema.Literals<readonly ["file", "directory"]>>, never, never>;
|
|
24
24
|
readonly limit: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
|
package/dist/groups/fs.js
CHANGED
|
@@ -38,6 +38,7 @@ export const FileSystemGroup = HttpApiGroup.make("server.fs")
|
|
|
38
38
|
.add(HttpApiEndpoint.get("fs.list", "/api/fs/list", {
|
|
39
39
|
query: ListQuery,
|
|
40
40
|
success: Location.response(Schema.Array(FileSystem.Entry)),
|
|
41
|
+
error: FileNotFoundError,
|
|
41
42
|
})
|
|
42
43
|
.annotateMerge(locationQueryOpenApi)
|
|
43
44
|
.annotateMerge(OpenApi.annotations({
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -717,6 +717,25 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
717
717
|
}>]>, Schema.Struct<{
|
|
718
718
|
readonly type: Schema.tag<"idle">;
|
|
719
719
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
720
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
721
|
+
readonly type: Schema.String;
|
|
722
|
+
readonly message: Schema.String;
|
|
723
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
724
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
725
|
+
readonly body: Schema.String;
|
|
726
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
727
|
+
readonly body: Schema.String;
|
|
728
|
+
}>>, never, never>;
|
|
729
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
730
|
+
readonly type: Schema.String;
|
|
731
|
+
readonly message: Schema.String;
|
|
732
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
733
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
734
|
+
readonly body: Schema.String;
|
|
735
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
736
|
+
readonly body: Schema.String;
|
|
737
|
+
}>>, never, never>;
|
|
738
|
+
}>>, never, never>;
|
|
720
739
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
721
740
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
722
741
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1447,6 +1466,25 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1447
1466
|
}>]>, Schema.Struct<{
|
|
1448
1467
|
readonly type: Schema.tag<"idle">;
|
|
1449
1468
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
1469
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1470
|
+
readonly type: Schema.String;
|
|
1471
|
+
readonly message: Schema.String;
|
|
1472
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1473
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1474
|
+
readonly body: Schema.String;
|
|
1475
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1476
|
+
readonly body: Schema.String;
|
|
1477
|
+
}>>, never, never>;
|
|
1478
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1479
|
+
readonly type: Schema.String;
|
|
1480
|
+
readonly message: Schema.String;
|
|
1481
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1482
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1483
|
+
readonly body: Schema.String;
|
|
1484
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1485
|
+
readonly body: Schema.String;
|
|
1486
|
+
}>>, never, never>;
|
|
1487
|
+
}>>, never, never>;
|
|
1450
1488
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1451
1489
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1452
1490
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -1575,6 +1575,25 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
1575
1575
|
}>]>, Schema.Struct<{
|
|
1576
1576
|
readonly type: Schema.tag<"idle">;
|
|
1577
1577
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
1578
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1579
|
+
readonly type: Schema.String;
|
|
1580
|
+
readonly message: Schema.String;
|
|
1581
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1582
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1583
|
+
readonly body: Schema.String;
|
|
1584
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1585
|
+
readonly body: Schema.String;
|
|
1586
|
+
}>>, never, never>;
|
|
1587
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1588
|
+
readonly type: Schema.String;
|
|
1589
|
+
readonly message: Schema.String;
|
|
1590
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1591
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1592
|
+
readonly body: Schema.String;
|
|
1593
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1594
|
+
readonly body: Schema.String;
|
|
1595
|
+
}>>, never, never>;
|
|
1596
|
+
}>>, never, never>;
|
|
1578
1597
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1579
1598
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1580
1599
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2654,6 +2673,25 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
2654
2673
|
}>]>, Schema.Struct<{
|
|
2655
2674
|
readonly type: Schema.tag<"idle">;
|
|
2656
2675
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
2676
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2677
|
+
readonly type: Schema.String;
|
|
2678
|
+
readonly message: Schema.String;
|
|
2679
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2680
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2681
|
+
readonly body: Schema.String;
|
|
2682
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2683
|
+
readonly body: Schema.String;
|
|
2684
|
+
}>>, never, never>;
|
|
2685
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2686
|
+
readonly type: Schema.String;
|
|
2687
|
+
readonly message: Schema.String;
|
|
2688
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2689
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2690
|
+
readonly body: Schema.String;
|
|
2691
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2692
|
+
readonly body: Schema.String;
|
|
2693
|
+
}>>, never, never>;
|
|
2694
|
+
}>>, never, never>;
|
|
2657
2695
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2658
2696
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2659
2697
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4307,6 +4345,25 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
4307
4345
|
}>]>, Schema.Struct<{
|
|
4308
4346
|
readonly type: Schema.tag<"idle">;
|
|
4309
4347
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
4348
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4349
|
+
readonly type: Schema.String;
|
|
4350
|
+
readonly message: Schema.String;
|
|
4351
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4352
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4353
|
+
readonly body: Schema.String;
|
|
4354
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4355
|
+
readonly body: Schema.String;
|
|
4356
|
+
}>>, never, never>;
|
|
4357
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4358
|
+
readonly type: Schema.String;
|
|
4359
|
+
readonly message: Schema.String;
|
|
4360
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4361
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4362
|
+
readonly body: Schema.String;
|
|
4363
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4364
|
+
readonly body: Schema.String;
|
|
4365
|
+
}>>, never, never>;
|
|
4366
|
+
}>>, never, never>;
|
|
4310
4367
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4311
4368
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4312
4369
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -10893,6 +10950,25 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
10893
10950
|
}>]>, Schema.Struct<{
|
|
10894
10951
|
readonly type: Schema.tag<"idle">;
|
|
10895
10952
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
10953
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10954
|
+
readonly type: Schema.String;
|
|
10955
|
+
readonly message: Schema.String;
|
|
10956
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10957
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10958
|
+
readonly body: Schema.String;
|
|
10959
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10960
|
+
readonly body: Schema.String;
|
|
10961
|
+
}>>, never, never>;
|
|
10962
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10963
|
+
readonly type: Schema.String;
|
|
10964
|
+
readonly message: Schema.String;
|
|
10965
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10966
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10967
|
+
readonly body: Schema.String;
|
|
10968
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10969
|
+
readonly body: Schema.String;
|
|
10970
|
+
}>>, never, never>;
|
|
10971
|
+
}>>, never, never>;
|
|
10896
10972
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10897
10973
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10898
10974
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
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-20775",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsgo --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode/schema": "0.0.0-dev-
|
|
35
|
+
"@opencode/schema": "0.0.0-dev-20775",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|