@opencode/server 0.0.0-dev-21173 → 0.0.0-dev-21177

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.
Files changed (105) hide show
  1. package/dist/api.d.ts +138 -0
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{request-tracing-08x9tjee.js → location-08x9tjee.js} +1 -1
  5. package/dist/chunks/{request-tracing-0d864bga.js → location-0d864bga.js} +1 -1
  6. package/dist/chunks/{request-tracing-5ybpxcad.js → location-2sy3c7de.js} +7 -7
  7. package/dist/chunks/{request-tracing-33prfkkd.js → location-33prfkkd.js} +3 -3
  8. package/dist/chunks/{request-tracing-sz5hysd1.js → location-3ewjychh.js} +17 -17
  9. package/dist/chunks/{request-tracing-43r48nqn.js → location-43r48nqn.js} +2 -2
  10. package/dist/chunks/{request-tracing-4d1eemzq.js → location-4d1eemzq.js} +2 -2
  11. package/dist/chunks/{request-tracing-4dv9a668.js → location-4dv9a668.js} +2 -2
  12. package/dist/chunks/{request-tracing-hp0wqg6j.js → location-4f7w75bd.js} +8 -8
  13. package/dist/chunks/{request-tracing-4hhhes7w.js → location-4hhhes7w.js} +1 -1
  14. package/dist/chunks/{request-tracing-5zsr2h86.js → location-5zsr2h86.js} +1 -1
  15. package/dist/chunks/{request-tracing-686p2xfa.js → location-686p2xfa.js} +2 -2
  16. package/dist/chunks/{request-tracing-mfq8e8pj.js → location-7ezj0xbn.js} +34 -34
  17. package/dist/chunks/{request-tracing-7vd5668a.js → location-7vd5668a.js} +1 -1
  18. package/dist/chunks/{request-tracing-8137b89p.js → location-8137b89p.js} +2 -2
  19. package/dist/chunks/{request-tracing-c8t3608j.js → location-8qdaaahy.js} +7 -7
  20. package/dist/chunks/{request-tracing-97eb2r3v.js → location-97eb2r3v.js} +2 -2
  21. package/dist/chunks/{request-tracing-9snwnvf8.js → location-9snwnvf8.js} +3 -3
  22. package/dist/chunks/{request-tracing-anm12x33.js → location-anm12x33.js} +1 -1
  23. package/dist/chunks/{request-tracing-b56hqv74.js → location-b56hqv74.js} +1 -1
  24. package/dist/chunks/{request-tracing-bx47k33v.js → location-bx47k33v.js} +2 -2
  25. package/dist/chunks/{request-tracing-cv0ajwc9.js → location-cv0ajwc9.js} +2 -2
  26. package/dist/chunks/{request-tracing-c3bz0j9c.js → location-eb7mc1bh.js} +4 -4
  27. package/dist/chunks/{request-tracing-ewe1fzkk.js → location-ewe1fzkk.js} +2 -2
  28. package/dist/chunks/{request-tracing-ftaz8n62.js → location-ftaz8n62.js} +2 -2
  29. package/dist/chunks/{request-tracing-9very778.js → location-ghk96rjy.js} +7 -7
  30. package/dist/chunks/{request-tracing-h8ws5ssa.js → location-h8ws5ssa.js} +1 -1
  31. package/dist/chunks/{request-tracing-j4zqsxgy.js → location-j4zqsxgy.js} +1 -1
  32. package/dist/chunks/{request-tracing-ptey1p5v.js → location-ptey1p5v.js} +2 -2
  33. package/dist/chunks/{request-tracing-qbh90c1d.js → location-qbh90c1d.js} +2 -2
  34. package/dist/chunks/{request-tracing-rf01ee6q.js → location-rf01ee6q.js} +1 -1
  35. package/dist/chunks/{request-tracing-rntbwr87.js → location-rntbwr87.js} +2 -2
  36. package/dist/chunks/{request-tracing-ssyxw8nc.js → location-ssyxw8nc.js} +2 -2
  37. package/dist/chunks/{request-tracing-tavn74n1.js → location-tavn74n1.js} +3 -3
  38. package/dist/chunks/{request-tracing-bkk2wfbz.js → location-tnr0rqd3.js} +8 -8
  39. package/dist/chunks/{request-tracing-vb5yx5r0.js → location-vb5yx5r0.js} +2 -2
  40. package/dist/chunks/{request-tracing-vbzm2jgm.js → location-vbzm2jgm.js} +2 -2
  41. package/dist/chunks/{request-tracing-rxaz4xsm.js → location-wk806w00.js} +5 -3
  42. package/dist/chunks/{request-tracing-kr61w04k.js → location-x6486bry.js} +8 -8
  43. package/dist/chunks/{request-tracing-xsfckjjz.js → location-xmsxbzs8.js} +6 -6
  44. package/dist/chunks/{request-tracing-5w24ch67.js → location-xsrtpxyd.js} +4 -4
  45. package/dist/chunks/{request-tracing-yehasrps.js → location-yehasrps.js} +2 -2
  46. package/dist/chunks/{request-tracing-yfz2nrjq.js → location-yfz2nrjq.js} +1 -1
  47. package/dist/chunks/{request-tracing-z6sxg6td.js → location-z6sxg6td.js} +1 -1
  48. package/dist/chunks/{request-tracing-zessacar.js → location-zessacar.js} +2 -2
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +5 -5
  51. package/dist/fetch.js +50 -50
  52. package/dist/handlers/agent.js +6 -6
  53. package/dist/handlers/command.js +6 -6
  54. package/dist/handlers/config.js +6 -6
  55. package/dist/handlers/credential.js +6 -6
  56. package/dist/handlers/debug.js +6 -6
  57. package/dist/handlers/event.js +7 -7
  58. package/dist/handlers/form.js +6 -6
  59. package/dist/handlers/fs.js +6 -6
  60. package/dist/handlers/generate.js +6 -6
  61. package/dist/handlers/integration.js +6 -6
  62. package/dist/handlers/location.js +6 -6
  63. package/dist/handlers/mcp.js +6 -6
  64. package/dist/handlers/message.js +6 -6
  65. package/dist/handlers/migration.js +6 -6
  66. package/dist/handlers/model.js +6 -6
  67. package/dist/handlers/permission.js +6 -6
  68. package/dist/handlers/persistent-pty.js +8 -8
  69. package/dist/handlers/plugin.js +6 -6
  70. package/dist/handlers/project.js +6 -6
  71. package/dist/handlers/provider.js +6 -6
  72. package/dist/handlers/pty-socket.js +1 -1
  73. package/dist/handlers/pty.js +9 -9
  74. package/dist/handlers/reference.js +6 -6
  75. package/dist/handlers/rpc.js +6 -6
  76. package/dist/handlers/server.js +9 -9
  77. package/dist/handlers/session-error.js +1 -1
  78. package/dist/handlers/session.js +6 -6
  79. package/dist/handlers/shell.js +6 -6
  80. package/dist/handlers/skill.js +6 -6
  81. package/dist/handlers/vcs.js +6 -6
  82. package/dist/handlers/voice.js +6 -6
  83. package/dist/handlers/websearch.js +6 -6
  84. package/dist/handlers/worktree.js +6 -6
  85. package/dist/handlers.js +44 -44
  86. package/dist/location.js +2 -2
  87. package/dist/middleware/authorization.js +2 -2
  88. package/dist/middleware/form-location.js +3 -3
  89. package/dist/middleware/schema-error.js +1 -1
  90. package/dist/middleware/session-location.js +3 -3
  91. package/dist/pairing.js +5 -5
  92. package/dist/process.js +52 -52
  93. package/dist/pty-environment.js +7 -7
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +47 -47
  96. package/dist/server-info.js +5 -5
  97. package/dist/service-status.js +3 -3
  98. package/dist/workerd.js +51 -51
  99. package/package.json +8 -8
  100. /package/dist/chunks/{request-tracing-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{request-tracing-erzfdgke.js → location-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{request-tracing-h6rt5k9s.js → location-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{request-tracing-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{request-tracing-smaf4a18.js → location-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{request-tracing-yc7nft6q.js → location-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -1011,6 +1011,106 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1011
1011
  };
1012
1012
  readonly idle: import("effect/Schema").Finite;
1013
1013
  }>;
1014
+ }, import("effect/Schema").Struct<{
1015
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
1016
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
1017
+ };
1018
+ readonly created: import("effect/Schema").Finite;
1019
+ 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>;
1020
+ readonly type: import("effect/Schema").Literal<"session.archived">;
1021
+ readonly durable: import("effect/Schema").Struct<{
1022
+ readonly aggregateID: import("effect/Schema").String;
1023
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
1024
+ readonly version: import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">>, import("effect/Schema").Literal<number>, never, never>;
1025
+ }>;
1026
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
1027
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
1028
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1029
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1030
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1031
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1032
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1033
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1034
+ }>, never, never>;
1035
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1036
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
1037
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1038
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1039
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1040
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1041
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1042
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1043
+ }>, never, never>;
1044
+ }>>, never, never>;
1045
+ readonly data: import("effect/Schema").Struct<{
1046
+ sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1047
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1048
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1049
+ };
1050
+ }>;
1051
+ }> & {
1052
+ type: "session.archived";
1053
+ durability: "durable";
1054
+ durable: {
1055
+ readonly version: number;
1056
+ readonly aggregate: string;
1057
+ };
1058
+ data: import("effect/Schema").Struct<{
1059
+ sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1060
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1061
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1062
+ };
1063
+ }>;
1064
+ }, import("effect/Schema").Struct<{
1065
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
1066
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
1067
+ };
1068
+ readonly created: import("effect/Schema").Finite;
1069
+ 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>;
1070
+ readonly type: import("effect/Schema").Literal<"session.unarchived">;
1071
+ readonly durable: import("effect/Schema").Struct<{
1072
+ readonly aggregateID: import("effect/Schema").String;
1073
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
1074
+ readonly version: import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">>, import("effect/Schema").Literal<number>, never, never>;
1075
+ }>;
1076
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
1077
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
1078
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1079
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1080
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1081
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1082
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1083
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1084
+ }>, never, never>;
1085
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1086
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
1087
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1088
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1089
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1090
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1091
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1092
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1093
+ }>, never, never>;
1094
+ }>>, never, never>;
1095
+ readonly data: import("effect/Schema").Struct<{
1096
+ sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1097
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1098
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1099
+ };
1100
+ }>;
1101
+ }> & {
1102
+ type: "session.unarchived";
1103
+ durability: "durable";
1104
+ durable: {
1105
+ readonly version: number;
1106
+ readonly aggregate: string;
1107
+ };
1108
+ data: import("effect/Schema").Struct<{
1109
+ sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1110
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1111
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1112
+ };
1113
+ }>;
1014
1114
  }, import("effect/Schema").Struct<{
1015
1115
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
1016
1116
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6623,6 +6723,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6623
6723
  readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6624
6724
  readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6625
6725
  };
6726
+ } | {
6727
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6728
+ readonly created: number;
6729
+ readonly metadata?: {
6730
+ readonly [x: string]: unknown;
6731
+ } | undefined;
6732
+ readonly type: "session.archived";
6733
+ readonly durable: {
6734
+ readonly aggregateID: string;
6735
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6736
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6737
+ };
6738
+ readonly location?: {
6739
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6740
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6741
+ } | undefined;
6742
+ readonly data: {
6743
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6744
+ };
6626
6745
  } | {
6627
6746
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6628
6747
  readonly created: number;
@@ -7702,6 +7821,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7702
7821
  readonly [x: string]: unknown;
7703
7822
  } | undefined;
7704
7823
  };
7824
+ } | {
7825
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7826
+ readonly created: number;
7827
+ readonly metadata?: {
7828
+ readonly [x: string]: unknown;
7829
+ } | undefined;
7830
+ readonly type: "session.unarchived";
7831
+ readonly durable: {
7832
+ readonly aggregateID: string;
7833
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7834
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7835
+ };
7836
+ readonly location?: {
7837
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7838
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7839
+ } | undefined;
7840
+ readonly data: {
7841
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7842
+ };
7705
7843
  } | {
7706
7844
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7707
7845
  readonly created: number;
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/request-tracing-9snwnvf8.js";
4
- import"./chunks/request-tracing-j4zqsxgy.js";
5
- import"./chunks/request-tracing-4hhhes7w.js";
6
- import"./chunks/request-tracing-b56hqv74.js";
7
- import"./chunks/request-tracing-smaf4a18.js";
3
+ } from "./chunks/location-9snwnvf8.js";
4
+ import"./chunks/location-j4zqsxgy.js";
5
+ import"./chunks/location-4hhhes7w.js";
6
+ import"./chunks/location-b56hqv74.js";
7
+ import"./chunks/location-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/request-tracing-anm12x33.js";
10
+ } from "./chunks/location-anm12x33.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/credential.ts
6
6
  import { Credential } from "@opencode/core/credential";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service4,
10
+ Service: () => Service2,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer3,
14
+ layer: () => layer2,
15
15
  make: () => make4
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
@@ -30,7 +30,7 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
30
30
  }) {
31
31
  }
32
32
 
33
- class Service4 extends Context.Service()("@opencode/server/EventFeed") {
33
+ class Service2 extends Context.Service()("@opencode/server/EventFeed") {
34
34
  }
35
35
  function frame2(event) {
36
36
  return `data: ${JSON.stringify(event)}
@@ -71,13 +71,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
71
71
  });
72
72
  const unsubscribe = yield* observe(publish);
73
73
  yield* Effect.addFinalizer(() => unsubscribe);
74
- return Service4.of({
74
+ return Service2.of({
75
75
  subscribe: Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.add(queue)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
76
76
  });
77
77
  });
78
- var layer3 = Layer.effect(Service4, Effect.gen(function* () {
78
+ var layer2 = Layer.effect(Service2, Effect.gen(function* () {
79
79
  const bus = yield* Bus.Service;
80
80
  return yield* make4(bus.listen);
81
81
  }));
82
82
 
83
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer3, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./request-tracing-smaf4a18.js";
3
+ } from "./location-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./request-tracing-b56hqv74.js";
8
+ } from "./location-b56hqv74.js";
9
9
  import {
10
10
  Api2
11
- } from "./request-tracing-9snwnvf8.js";
11
+ } from "./location-9snwnvf8.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  layer5
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./request-tracing-4hhhes7w.js";
6
+ } from "./location-4hhhes7w.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./request-tracing-j4zqsxgy.js";
9
+ } from "./location-j4zqsxgy.js";
10
10
  import {
11
11
  Api2
12
- } from "./request-tracing-9snwnvf8.js";
12
+ } from "./location-9snwnvf8.js";
13
13
  import {
14
14
  Config2
15
- } from "./request-tracing-anm12x33.js";
15
+ } from "./location-anm12x33.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./request-tracing-q4bn6dy8.js";
18
+ } from "./location-q4bn6dy8.js";
19
19
  import {
20
- layer4
21
- } from "./request-tracing-9very778.js";
22
- import {
23
- node3
24
- } from "./request-tracing-kr61w04k.js";
20
+ layer3
21
+ } from "./location-ghk96rjy.js";
25
22
  import {
26
23
  node2
27
- } from "./request-tracing-bkk2wfbz.js";
24
+ } from "./location-x6486bry.js";
25
+ import {
26
+ node3
27
+ } from "./location-tnr0rqd3.js";
28
28
  import {
29
29
  handlers2
30
- } from "./request-tracing-mfq8e8pj.js";
30
+ } from "./location-7ezj0xbn.js";
31
31
  import {
32
32
  authorizationLayer2
33
- } from "./request-tracing-yfz2nrjq.js";
33
+ } from "./location-yfz2nrjq.js";
34
34
  import {
35
35
  schemaErrorLayer2
36
- } from "./request-tracing-erzfdgke.js";
36
+ } from "./location-erzfdgke.js";
37
37
 
38
38
  // src/routes.ts
39
39
  import { Database } from "@opencode/core/database/database";
@@ -92,8 +92,8 @@ var applicationServiceNodes = [
92
92
  PersistentPty.node,
93
93
  Credential.node,
94
94
  WellKnown.node,
95
- node2,
96
95
  node3,
96
+ node2,
97
97
  LocationServiceMap.node,
98
98
  LocationActivity.node,
99
99
  SessionRestart.node,
@@ -146,7 +146,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
146
146
  })) : build(overrides);
147
147
  return serviceLayer.pipe(Layer.flatMap((context) => {
148
148
  const services = Layer.succeedContext(context);
149
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer4(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
149
+ const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer3(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
150
150
  const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer5), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
151
151
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
152
152
  }));
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./request-tracing-b56hqv74.js";
4
+ } from "./location-b56hqv74.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-9snwnvf8.js";
7
+ } from "./location-9snwnvf8.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./request-tracing-anm12x33.js";
10
- import {
11
- Service5
12
- } from "./request-tracing-9very778.js";
9
+ } from "./location-anm12x33.js";
13
10
  import {
14
11
  Service3
15
- } from "./request-tracing-kr61w04k.js";
12
+ } from "./location-ghk96rjy.js";
13
+ import {
14
+ Service4
15
+ } from "./location-x6486bry.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { Duration, Effect } from "effect";
@@ -21,10 +21,10 @@ import { HttpApiBuilder } from "effect/http-api";
21
21
  import { PersistentPty } from "@opencode/core/persistent-pty";
22
22
  import { UnauthorizedError } from "@opencode/protocol/errors";
23
23
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
24
- const pairing = yield* Service3;
24
+ const pairing = yield* Service4;
25
25
  const auth = yield* Config2;
26
26
  return handlers.handle("server.info", () => Effect.gen(function* () {
27
- const info = yield* Service5;
27
+ const info = yield* Service3;
28
28
  return {
29
29
  version: info.app.version ?? "unknown",
30
30
  pid: process.pid ?? 0,
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./request-tracing-b56hqv74.js";
5
+ } from "./location-b56hqv74.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./request-tracing-b56hqv74.js";
4
+ } from "./location-b56hqv74.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-9snwnvf8.js";
7
+ } from "./location-9snwnvf8.js";
8
8
 
9
9
  // src/handlers/voice.ts
10
10
  import { Location } from "@opencode/core/location";
@@ -1,102 +1,102 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./request-tracing-4d1eemzq.js";
3
+ } from "./location-4d1eemzq.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./request-tracing-686p2xfa.js";
6
+ } from "./location-686p2xfa.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./request-tracing-vb5yx5r0.js";
9
+ } from "./location-vb5yx5r0.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./request-tracing-ewe1fzkk.js";
12
+ } from "./location-ewe1fzkk.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./request-tracing-97eb2r3v.js";
15
+ } from "./location-97eb2r3v.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./request-tracing-rxaz4xsm.js";
18
+ } from "./location-wk806w00.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./request-tracing-33prfkkd.js";
21
+ } from "./location-33prfkkd.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./request-tracing-ssyxw8nc.js";
24
+ } from "./location-ssyxw8nc.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./request-tracing-43r48nqn.js";
27
+ } from "./location-43r48nqn.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./request-tracing-ptey1p5v.js";
30
+ } from "./location-ptey1p5v.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./request-tracing-bx47k33v.js";
33
+ } from "./location-bx47k33v.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./request-tracing-z6sxg6td.js";
36
+ } from "./location-z6sxg6td.js";
37
37
  import {
38
- layer3
39
- } from "./request-tracing-5ybpxcad.js";
38
+ layer2
39
+ } from "./location-2sy3c7de.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./request-tracing-c3bz0j9c.js";
42
+ } from "./location-eb7mc1bh.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./request-tracing-rntbwr87.js";
45
+ } from "./location-rntbwr87.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./request-tracing-8137b89p.js";
48
+ } from "./location-8137b89p.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./request-tracing-hp0wqg6j.js";
51
+ } from "./location-4f7w75bd.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./request-tracing-vbzm2jgm.js";
54
+ } from "./location-vbzm2jgm.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./request-tracing-c8t3608j.js";
57
+ } from "./location-8qdaaahy.js";
58
58
  import {
59
59
  PersistentPtyHandler2
60
- } from "./request-tracing-tavn74n1.js";
60
+ } from "./location-tavn74n1.js";
61
61
  import {
62
62
  ShellHandler2
63
- } from "./request-tracing-4dv9a668.js";
63
+ } from "./location-4dv9a668.js";
64
64
  import {
65
65
  ReferenceHandler2
66
- } from "./request-tracing-yehasrps.js";
66
+ } from "./location-yehasrps.js";
67
67
  import {
68
68
  LocationHandler2
69
- } from "./request-tracing-h8ws5ssa.js";
69
+ } from "./location-h8ws5ssa.js";
70
70
  import {
71
71
  IntegrationHandler2
72
- } from "./request-tracing-ftaz8n62.js";
72
+ } from "./location-ftaz8n62.js";
73
73
  import {
74
74
  WebSearchHandler2
75
- } from "./request-tracing-cv0ajwc9.js";
75
+ } from "./location-cv0ajwc9.js";
76
76
  import {
77
77
  McpHandler2
78
- } from "./request-tracing-zessacar.js";
78
+ } from "./location-zessacar.js";
79
79
  import {
80
80
  CredentialHandler2
81
- } from "./request-tracing-08x9tjee.js";
81
+ } from "./location-08x9tjee.js";
82
82
  import {
83
83
  ProjectHandler2
84
- } from "./request-tracing-0d864bga.js";
84
+ } from "./location-0d864bga.js";
85
85
  import {
86
86
  WorktreeHandler2
87
- } from "./request-tracing-7vd5668a.js";
87
+ } from "./location-7vd5668a.js";
88
88
  import {
89
89
  VcsHandler2
90
- } from "./request-tracing-qbh90c1d.js";
90
+ } from "./location-qbh90c1d.js";
91
91
  import {
92
92
  MigrationHandler2
93
- } from "./request-tracing-rf01ee6q.js";
93
+ } from "./location-rf01ee6q.js";
94
94
  import {
95
95
  ConfigHandler2
96
- } from "./request-tracing-5zsr2h86.js";
96
+ } from "./location-5zsr2h86.js";
97
97
 
98
98
  // src/handlers.ts
99
99
  import { Layer } from "effect";
100
- var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer3)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
100
+ var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer2)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
101
101
 
102
102
  export { handlers2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";