@opencode/server 0.0.0-dev-1325 → 0.0.0-dev-1326

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 (130) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{location-j9bm09j4.js → event-feed-0bzgr4rt.js} +1 -1
  4. package/dist/chunks/{location-z030czn6.js → event-feed-0d9m1wm4.js} +2 -2
  5. package/dist/chunks/{location-wtrkk6n8.js → event-feed-1pw2nrsx.js} +1 -1
  6. package/dist/chunks/{location-ghcy4ddk.js → event-feed-2d18d1yn.js} +1 -1
  7. package/dist/chunks/{location-39nnfjx1.js → event-feed-39nnfjx1.js} +1 -1
  8. package/dist/chunks/{location-3svx81fb.js → event-feed-3cp4agan.js} +3 -3
  9. package/dist/chunks/{location-2b13xzyt.js → event-feed-4vbpeb73.js} +2 -2
  10. package/dist/chunks/{location-cx7az6y7.js → event-feed-55yh37zc.js} +2 -2
  11. package/dist/chunks/{location-nezkqcz0.js → event-feed-5b1w9hwr.js} +2 -2
  12. package/dist/chunks/{location-3d706mcp.js → event-feed-5z0ssrt9.js} +18 -16
  13. package/dist/chunks/{location-n7n1k6t0.js → event-feed-6f7nn4kk.js} +2 -2
  14. package/dist/chunks/{location-20aw7tea.js → event-feed-6jmqkv3t.js} +35 -35
  15. package/dist/chunks/{location-w7qv5azt.js → event-feed-6ptjjp36.js} +2 -2
  16. package/dist/chunks/{location-c0pd5awd.js → event-feed-735y9bwf.js} +2 -2
  17. package/dist/chunks/{location-7ydfwv45.js → event-feed-7ydfwv45.js} +1 -1
  18. package/dist/chunks/{location-xygx09yd.js → event-feed-8ptkdkh0.js} +2 -2
  19. package/dist/chunks/{location-27f8nny0.js → event-feed-8q8t4r9z.js} +2 -2
  20. package/dist/chunks/{location-8sb6qqpn.js → event-feed-8sb6qqpn.js} +1 -1
  21. package/dist/chunks/{location-9cd3a4b8.js → event-feed-9cd3a4b8.js} +1 -1
  22. package/dist/chunks/{location-065pppgn.js → event-feed-9d8cvn0j.js} +2 -2
  23. package/dist/chunks/{location-z4znncxg.js → event-feed-a5hb5213.js} +2 -2
  24. package/dist/chunks/{location-8pn9ceqg.js → event-feed-a9m1qywq.js} +3 -3
  25. package/dist/chunks/{location-fvpjvjpp.js → event-feed-arzv3fj6.js} +4 -4
  26. package/dist/chunks/{location-7qpea5x7.js → event-feed-aw6r5m46.js} +2 -2
  27. package/dist/chunks/{location-3te71694.js → event-feed-b1prsepx.js} +4 -4
  28. package/dist/chunks/{location-669rq3zn.js → event-feed-cha5bc7v.js} +3 -3
  29. package/dist/chunks/{location-bwjy9ex5.js → event-feed-d6gdrha6.js} +2 -2
  30. package/dist/chunks/{location-djr0jy89.js → event-feed-djr0jy89.js} +1 -1
  31. package/dist/chunks/{location-0tp9bckc.js → event-feed-dx59hhqy.js} +1 -1
  32. package/dist/chunks/{location-xhsknm82.js → event-feed-e4amrgg0.js} +2 -2
  33. package/dist/chunks/{location-g23ffrnz.js → event-feed-g23ffrnz.js} +2 -2
  34. package/dist/chunks/{location-2q06e3dd.js → event-feed-harnzwyx.js} +1 -1
  35. package/dist/chunks/{location-j4at0y5c.js → event-feed-j4at0y5c.js} +1 -1
  36. package/dist/chunks/{location-500wz90y.js → event-feed-jdn2h5zy.js} +2 -2
  37. package/dist/chunks/{location-9chkqb53.js → event-feed-knscys1g.js} +4 -4
  38. package/dist/chunks/{location-ah2sj2pr.js → event-feed-kstarh2s.js} +1 -1
  39. package/dist/chunks/{location-k3qt4jsw.js → event-feed-mbf5t0tq.js} +1 -1
  40. package/dist/chunks/{location-ahhjt1wh.js → event-feed-mnk4yp0a.js} +2 -2
  41. package/dist/chunks/{location-myqk22k5.js → event-feed-myqk22k5.js} +2 -2
  42. package/dist/chunks/{location-mzs0n5xz.js → event-feed-mzs0n5xz.js} +1 -1
  43. package/dist/chunks/{location-fhb2ewd9.js → event-feed-p4hr7w7j.js} +2 -2
  44. package/dist/chunks/{location-01ta1g14.js → event-feed-p7f8d9ed.js} +4 -4
  45. package/dist/chunks/{location-7b9xm1qg.js → event-feed-rktygpea.js} +4 -1
  46. package/dist/chunks/{location-9epy4pks.js → event-feed-rxp97434.js} +4 -4
  47. package/dist/chunks/event-feed-syfzpkey.js +144 -0
  48. package/dist/chunks/{location-t32e1bbt.js → event-feed-t32e1bbt.js} +1 -1
  49. package/dist/chunks/{location-2ghz4m36.js → event-feed-tb37vts4.js} +13 -9
  50. package/dist/chunks/{location-ywn523ee.js → event-feed-tdwf54y9.js} +3 -3
  51. package/dist/chunks/{location-66wjg7cg.js → event-feed-tphz28p0.js} +4 -4
  52. package/dist/chunks/{location-yr4jk19s.js → event-feed-vjj7wrqn.js} +2 -2
  53. package/dist/chunks/{location-qzq425w0.js → event-feed-vxnq9y72.js} +5 -5
  54. package/dist/chunks/{location-mevm0qpj.js → event-feed-y50v5y23.js} +4 -4
  55. package/dist/chunks/{location-ryf8gt7t.js → event-feed-ye16b3jy.js} +2 -2
  56. package/dist/chunks/{location-vw0q3knq.js → event-feed-ytyf0yt4.js} +1 -1
  57. package/dist/content-headers.js +1 -1
  58. package/dist/cors.js +1 -1
  59. package/dist/event-feed.js +3 -3
  60. package/dist/fetch.js +60 -59
  61. package/dist/handlers/agent.js +6 -6
  62. package/dist/handlers/artifact.js +3 -3
  63. package/dist/handlers/automation.js +2 -2
  64. package/dist/handlers/blob.js +3 -3
  65. package/dist/handlers/command.js +6 -6
  66. package/dist/handlers/config.js +6 -6
  67. package/dist/handlers/credential.js +7 -7
  68. package/dist/handlers/debug.js +6 -6
  69. package/dist/handlers/event.js +7 -7
  70. package/dist/handlers/form.js +6 -6
  71. package/dist/handlers/fs.js +8 -8
  72. package/dist/handlers/generate.js +6 -6
  73. package/dist/handlers/integration.js +6 -6
  74. package/dist/handlers/job.js +2 -2
  75. package/dist/handlers/location.js +6 -6
  76. package/dist/handlers/machine.d.ts +61 -0
  77. package/dist/handlers/machine.js +16 -0
  78. package/dist/handlers/mcp.js +8 -8
  79. package/dist/handlers/media.js +2 -2
  80. package/dist/handlers/message.js +7 -7
  81. package/dist/handlers/migration.js +6 -6
  82. package/dist/handlers/model.js +6 -6
  83. package/dist/handlers/permission.js +6 -6
  84. package/dist/handlers/persistent-pty.d.ts +1 -1
  85. package/dist/handlers/persistent-pty.js +16 -15
  86. package/dist/handlers/plugin.js +6 -6
  87. package/dist/handlers/project.js +6 -6
  88. package/dist/handlers/provider.js +6 -6
  89. package/dist/handlers/pty-socket.js +1 -1
  90. package/dist/handlers/pty.js +8 -8
  91. package/dist/handlers/reference.js +6 -6
  92. package/dist/handlers/rpc.js +6 -6
  93. package/dist/handlers/server.js +9 -9
  94. package/dist/handlers/session-error.js +1 -1
  95. package/dist/handlers/session.js +7 -7
  96. package/dist/handlers/shell.js +6 -6
  97. package/dist/handlers/skill.js +6 -6
  98. package/dist/handlers/usage.js +6 -6
  99. package/dist/handlers/vcs.js +6 -6
  100. package/dist/handlers/voice.js +6 -6
  101. package/dist/handlers/websearch.js +6 -6
  102. package/dist/handlers/worktree.js +6 -6
  103. package/dist/handlers.d.ts +1 -1
  104. package/dist/handlers.js +53 -52
  105. package/dist/location.js +4 -4
  106. package/dist/media-uri.js +1 -1
  107. package/dist/middleware/authorization.js +2 -2
  108. package/dist/middleware/defect-response.js +1 -1
  109. package/dist/middleware/form-location.js +3 -3
  110. package/dist/middleware/schema-error.js +1 -1
  111. package/dist/middleware/session-location.js +3 -3
  112. package/dist/pairing.js +1 -1
  113. package/dist/process.js +70 -63
  114. package/dist/range.js +1 -1
  115. package/dist/request-site.js +2 -2
  116. package/dist/request-tracing.js +1 -1
  117. package/dist/routes.d.ts +3 -2
  118. package/dist/routes.js +57 -56
  119. package/dist/server-info.js +3 -3
  120. package/dist/service-status.js +1 -1
  121. package/dist/workerd.js +61 -60
  122. package/package.json +8 -8
  123. /package/dist/chunks/{location-9rqn6x4v.js → event-feed-9rqn6x4v.js} +0 -0
  124. /package/dist/chunks/{location-bd8755ek.js → event-feed-bd8755ek.js} +0 -0
  125. /package/dist/chunks/{location-n26yr6pw.js → event-feed-n26yr6pw.js} +0 -0
  126. /package/dist/chunks/{location-q187pxxd.js → event-feed-q187pxxd.js} +0 -0
  127. /package/dist/chunks/{location-q4bn6dy8.js → event-feed-q4bn6dy8.js} +0 -0
  128. /package/dist/chunks/{location-smaf4a18.js → event-feed-smaf4a18.js} +0 -0
  129. /package/dist/chunks/{location-xthc02cw.js → event-feed-xthc02cw.js} +0 -0
  130. /package/dist/chunks/{location-yc7nft6q.js → event-feed-yc7nft6q.js} +0 -0
package/dist/process.js CHANGED
@@ -1,82 +1,85 @@
1
1
  import {
2
2
  Config2
3
- } from "./chunks/location-j4at0y5c.js";
3
+ } from "./chunks/event-feed-j4at0y5c.js";
4
4
  import {
5
5
  isAllowedCorsOrigin2
6
- } from "./chunks/location-q4bn6dy8.js";
6
+ } from "./chunks/event-feed-q4bn6dy8.js";
7
+ import {
8
+ machinesEnabled2
9
+ } from "./chunks/event-feed-syfzpkey.js";
7
10
  import {
8
11
  unauthorizedResponse2,
9
12
  authorizedRequest2
10
- } from "./chunks/location-7b9xm1qg.js";
13
+ } from "./chunks/event-feed-rktygpea.js";
11
14
  import {
12
15
  withoutParentSpan2
13
- } from "./chunks/location-yc7nft6q.js";
16
+ } from "./chunks/event-feed-yc7nft6q.js";
14
17
  import {
15
18
  middleware2
16
- } from "./chunks/location-myqk22k5.js";
17
- import"./chunks/location-smaf4a18.js";
18
- import"./chunks/location-ywn523ee.js";
19
- import"./chunks/location-ah2sj2pr.js";
20
- import"./chunks/location-vw0q3knq.js";
21
- import"./chunks/location-8pn9ceqg.js";
22
- import"./chunks/location-w7qv5azt.js";
23
- import"./chunks/location-xygx09yd.js";
24
- import"./chunks/location-xthc02cw.js";
25
- import"./chunks/location-3svx81fb.js";
26
- import"./chunks/location-ahhjt1wh.js";
27
- import"./chunks/location-065pppgn.js";
28
- import"./chunks/location-9chkqb53.js";
29
- import"./chunks/location-669rq3zn.js";
30
- import"./chunks/location-t32e1bbt.js";
31
- import"./chunks/location-8sb6qqpn.js";
32
- import"./chunks/location-01ta1g14.js";
33
- import"./chunks/location-cx7az6y7.js";
34
- import"./chunks/location-27f8nny0.js";
35
- import"./chunks/location-c0pd5awd.js";
36
- import"./chunks/location-k3qt4jsw.js";
37
- import"./chunks/location-fvpjvjpp.js";
38
- import"./chunks/location-bwjy9ex5.js";
39
- import"./chunks/location-nezkqcz0.js";
40
- import"./chunks/location-ryf8gt7t.js";
19
+ } from "./chunks/event-feed-myqk22k5.js";
20
+ import"./chunks/event-feed-smaf4a18.js";
21
+ import"./chunks/event-feed-tdwf54y9.js";
22
+ import"./chunks/event-feed-kstarh2s.js";
23
+ import"./chunks/event-feed-ytyf0yt4.js";
24
+ import"./chunks/event-feed-a9m1qywq.js";
25
+ import"./chunks/event-feed-6ptjjp36.js";
26
+ import"./chunks/event-feed-8ptkdkh0.js";
27
+ import"./chunks/event-feed-xthc02cw.js";
28
+ import"./chunks/event-feed-3cp4agan.js";
29
+ import"./chunks/event-feed-mnk4yp0a.js";
30
+ import"./chunks/event-feed-9d8cvn0j.js";
31
+ import"./chunks/event-feed-knscys1g.js";
32
+ import"./chunks/event-feed-cha5bc7v.js";
33
+ import"./chunks/event-feed-t32e1bbt.js";
34
+ import"./chunks/event-feed-8sb6qqpn.js";
35
+ import"./chunks/event-feed-p7f8d9ed.js";
36
+ import"./chunks/event-feed-55yh37zc.js";
37
+ import"./chunks/event-feed-8q8t4r9z.js";
38
+ import"./chunks/event-feed-735y9bwf.js";
39
+ import"./chunks/event-feed-mbf5t0tq.js";
40
+ import"./chunks/event-feed-arzv3fj6.js";
41
+ import"./chunks/event-feed-d6gdrha6.js";
42
+ import"./chunks/event-feed-5b1w9hwr.js";
43
+ import"./chunks/event-feed-ye16b3jy.js";
41
44
  import {
42
45
  connectionURLs2
43
- } from "./chunks/location-3te71694.js";
44
- import"./chunks/location-mzs0n5xz.js";
45
- import"./chunks/location-66wjg7cg.js";
46
- import"./chunks/location-500wz90y.js";
47
- import"./chunks/location-q187pxxd.js";
48
- import"./chunks/location-mevm0qpj.js";
49
- import"./chunks/location-7qpea5x7.js";
50
- import"./chunks/location-g23ffrnz.js";
51
- import"./chunks/location-9cd3a4b8.js";
52
- import"./chunks/location-7ydfwv45.js";
53
- import"./chunks/location-djr0jy89.js";
54
- import"./chunks/location-2ghz4m36.js";
55
- import"./chunks/location-xhsknm82.js";
56
- import"./chunks/location-yr4jk19s.js";
57
- import"./chunks/location-wtrkk6n8.js";
58
- import"./chunks/location-2b13xzyt.js";
59
- import"./chunks/location-fhb2ewd9.js";
60
- import"./chunks/location-n7n1k6t0.js";
61
- import"./chunks/location-9epy4pks.js";
62
- import"./chunks/location-z4znncxg.js";
63
- import"./chunks/location-0tp9bckc.js";
64
- import"./chunks/location-2q06e3dd.js";
65
- import"./chunks/location-z030czn6.js";
66
- import"./chunks/location-ghcy4ddk.js";
67
- import"./chunks/location-j9bm09j4.js";
68
- import"./chunks/location-20aw7tea.js";
69
- import"./chunks/location-bd8755ek.js";
70
- import"./chunks/location-n26yr6pw.js";
46
+ } from "./chunks/event-feed-b1prsepx.js";
47
+ import"./chunks/event-feed-mzs0n5xz.js";
48
+ import"./chunks/event-feed-tphz28p0.js";
49
+ import"./chunks/event-feed-jdn2h5zy.js";
50
+ import"./chunks/event-feed-q187pxxd.js";
51
+ import"./chunks/event-feed-y50v5y23.js";
52
+ import"./chunks/event-feed-aw6r5m46.js";
53
+ import"./chunks/event-feed-g23ffrnz.js";
54
+ import"./chunks/event-feed-9cd3a4b8.js";
55
+ import"./chunks/event-feed-7ydfwv45.js";
56
+ import"./chunks/event-feed-djr0jy89.js";
57
+ import"./chunks/event-feed-tb37vts4.js";
58
+ import"./chunks/event-feed-e4amrgg0.js";
59
+ import"./chunks/event-feed-vjj7wrqn.js";
60
+ import"./chunks/event-feed-1pw2nrsx.js";
61
+ import"./chunks/event-feed-4vbpeb73.js";
62
+ import"./chunks/event-feed-p4hr7w7j.js";
63
+ import"./chunks/event-feed-6f7nn4kk.js";
64
+ import"./chunks/event-feed-rxp97434.js";
65
+ import"./chunks/event-feed-a5hb5213.js";
66
+ import"./chunks/event-feed-dx59hhqy.js";
67
+ import"./chunks/event-feed-harnzwyx.js";
68
+ import"./chunks/event-feed-0d9m1wm4.js";
69
+ import"./chunks/event-feed-2d18d1yn.js";
70
+ import"./chunks/event-feed-0bzgr4rt.js";
71
+ import"./chunks/event-feed-6jmqkv3t.js";
72
+ import"./chunks/event-feed-bd8755ek.js";
73
+ import"./chunks/event-feed-n26yr6pw.js";
71
74
  import {
72
75
  createRoutes2
73
- } from "./chunks/location-3d706mcp.js";
76
+ } from "./chunks/event-feed-5z0ssrt9.js";
74
77
  import {
75
78
  make2
76
- } from "./chunks/location-39nnfjx1.js";
79
+ } from "./chunks/event-feed-39nnfjx1.js";
77
80
  import {
78
81
  __export
79
- } from "./chunks/location-9rqn6x4v.js";
82
+ } from "./chunks/event-feed-9rqn6x4v.js";
80
83
 
81
84
  // src/process.ts
82
85
  var exports_process = {};
@@ -93,6 +96,7 @@ import { InstallationEvent } from "@opencode/schema/installation-event";
93
96
  import { hasPtyConnectTicketURL } from "@opencode/protocol/groups/pty";
94
97
  import { hasPersistentPtyConnectTicketURL } from "@opencode/protocol/groups/persistent-pty";
95
98
  import { hasMcpClientTicketURL } from "@opencode/protocol/groups/mcp";
99
+ import { isMachineLinkUpgrade } from "@opencode/protocol/groups/machine";
96
100
  import { isPairingConnectURL } from "@opencode/protocol/groups/server";
97
101
  import { Global } from "@opencode/util/global";
98
102
  import { Cause, Context, Effect, Exit, Latch, Layer, Option, Ref, Scope } from "effect";
@@ -117,7 +121,8 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
117
121
  };
118
122
  const urls = () => [...localURLs(), ...remoteURLs?.() ?? []];
119
123
  const application = yield* Ref.make(Option.none());
120
- const app = dispatch(password, status, application, options.app?.version ?? "unknown", urls, Global.Path.tmp);
124
+ const machinesFlag = yield* Ref.make(Effect.succeed(false));
125
+ const app = dispatch(password, status, application, machinesFlag, options.app?.version ?? "unknown", urls, Global.Path.tmp);
121
126
  yield* bound.http.serve((transform ? transform(app) : app).pipe(middleware2(options), HttpMiddleware.compression(), HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 })), errorResponseLogger).pipe(Effect.provide(NodeHttpServer.layerHttpServices), withoutParentSpan2);
122
127
  if (lifecycle)
123
128
  yield* lifecycle.onListen(bound.http.address, shutdown.open.pipe(Effect.asVoid)).pipe(Effect.flatMap((cleanup) => Effect.addFinalizer(() => Scope.close(bound.scope, Exit.void).pipe(Effect.andThen(cleanup)))), Effect.uninterruptible);
@@ -134,6 +139,7 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
134
139
  }
135
140
  yield* Effect.forkIn(Context.get(context, Automation.Service).run, applicationScope);
136
141
  yield* Effect.forkIn(Context.get(context, SessionSearchBuild.Service).run, applicationScope);
142
+ yield* Ref.set(machinesFlag, yield* machinesEnabled2.pipe(Effect.provide(context)));
137
143
  yield* Ref.set(application, Option.some(Context.get(context, HttpRouter.HttpRouter).asHttpEffect()));
138
144
  yield* status.ready;
139
145
  const bus = Context.get(context, Bus.Service);
@@ -176,20 +182,21 @@ function addressInUse(error) {
176
182
  const cause = error.cause;
177
183
  return typeof cause === "object" && cause !== null && "code" in cause && cause.code === "EADDRINUSE";
178
184
  }
179
- function dispatch(password, status, application, version, urls, tmp) {
185
+ function dispatch(password, status, application, machinesFlag, version, urls, tmp) {
180
186
  const auth = Config2.of({ password: Option.some(password), username: "opencode" });
181
187
  return Effect.gen(function* () {
182
188
  const request = yield* HttpServerRequest.HttpServerRequest;
183
189
  const url = new URL(request.url, "http://localhost");
184
190
  const state = yield* status.current;
185
191
  const app = yield* Ref.get(application);
192
+ const machines = yield* Ref.get(machinesFlag);
186
193
  const ready = state.type === "ready" && Option.isSome(app);
187
194
  if (request.method === "GET" && url.pathname === "/api/info" && !ready) {
188
195
  if (!(yield* authorizedRequest2(request, auth)))
189
196
  return unauthorizedResponse2(request);
190
197
  return yield* infoResponse(status, version, urls, tmp);
191
198
  }
192
- if (!isPairingConnectURL(url) && (!ready || !hasPtyConnectTicketURL(url) && !hasPersistentPtyConnectTicketURL(url) && !hasMcpClientTicketURL(url)) && !(yield* authorizedRequest2(request, auth)))
199
+ if (!isPairingConnectURL(url) && (!ready || !hasPtyConnectTicketURL(url) && !hasPersistentPtyConnectTicketURL(url) && !hasMcpClientTicketURL(url) && !(isMachineLinkUpgrade(request) && (yield* machines))) && !(yield* authorizedRequest2(request, auth)))
193
200
  return unauthorizedResponse2(request);
194
201
  if (ready)
195
202
  return yield* app.value;
package/dist/range.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  parse2,
3
3
  exports_range
4
- } from "./chunks/location-8sb6qqpn.js";
4
+ } from "./chunks/event-feed-8sb6qqpn.js";
5
5
  export {
6
6
  exports_range as ByteRange,
7
7
  parse2 as parse
@@ -2,8 +2,8 @@ import {
2
2
  rejected2,
3
3
  middleware2,
4
4
  exports_request_site
5
- } from "./chunks/location-myqk22k5.js";
6
- import"./chunks/location-q4bn6dy8.js";
5
+ } from "./chunks/event-feed-myqk22k5.js";
6
+ import"./chunks/event-feed-q4bn6dy8.js";
7
7
  export {
8
8
  exports_request_site as RequestSite,
9
9
  middleware2 as middleware,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withoutParentSpan2
3
- } from "./chunks/location-yc7nft6q.js";
3
+ } from "./chunks/event-feed-yc7nft6q.js";
4
4
  export {
5
5
  withoutParentSpan2 as withoutParentSpan
6
6
  };
package/dist/routes.d.ts CHANGED
@@ -22,6 +22,7 @@ import { Global } from "@opencode/util/global";
22
22
  import { FSUtil } from "@opencode/util/fs-util";
23
23
  import { LocationServiceMap } from "@opencode/core/location-service-map";
24
24
  import { LocationActivity } from "@opencode/core/location-activity";
25
+ import { Identity } from "@opencode/core/machine/identity";
25
26
  import { Machines } from "@opencode/core/machine/machines";
26
27
  import { SessionSearchBuild } from "@opencode/core/session/search-build";
27
28
  import { SessionRestart } from "@opencode/core/session/execution/restart";
@@ -35,7 +36,7 @@ import { HttpRouter } from "effect/http";
35
36
  import { Layer } from "effect";
36
37
  import { ServerPairing } from "./pairing";
37
38
  import type { ServerOptions } from "./options";
38
- export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Workspace.Service | Machines.Service | PermissionSaved.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | Automation.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
39
+ export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Workspace.Service | Identity.Service | Machines.Service | PermissionSaved.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | Automation.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
39
40
  type InstanceNode = (replacements: () => LayerNode.Replacements) => LayerNode.Provider<Instance.Service, never, typeof Node.tags.values.global>;
40
- export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Workspace.Service | Machines.Service | PermissionSaved.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | Automation.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
41
+ export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Workspace.Service | Identity.Service | Machines.Service | PermissionSaved.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | Automation.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
41
42
  export {};
package/dist/routes.js CHANGED
@@ -1,62 +1,63 @@
1
1
  import {
2
2
  createRoutes2,
3
3
  createEmbeddedRoutes2
4
- } from "./chunks/location-3d706mcp.js";
5
- import"./chunks/location-n26yr6pw.js";
6
- import"./chunks/location-7b9xm1qg.js";
7
- import"./chunks/location-bd8755ek.js";
8
- import"./chunks/location-20aw7tea.js";
9
- import"./chunks/location-66wjg7cg.js";
10
- import"./chunks/location-z4znncxg.js";
11
- import"./chunks/location-xygx09yd.js";
12
- import"./chunks/location-cx7az6y7.js";
13
- import"./chunks/location-2q06e3dd.js";
14
- import"./chunks/location-01ta1g14.js";
15
- import"./chunks/location-mevm0qpj.js";
16
- import"./chunks/location-065pppgn.js";
17
- import"./chunks/location-nezkqcz0.js";
18
- import"./chunks/location-j9bm09j4.js";
19
- import"./chunks/location-ghcy4ddk.js";
20
- import"./chunks/location-ryf8gt7t.js";
21
- import"./chunks/location-0tp9bckc.js";
22
- import"./chunks/location-k3qt4jsw.js";
23
- import"./chunks/location-fhb2ewd9.js";
24
- import"./chunks/location-27f8nny0.js";
25
- import"./chunks/location-yr4jk19s.js";
26
- import"./chunks/location-500wz90y.js";
27
- import"./chunks/location-xhsknm82.js";
28
- import"./chunks/location-3svx81fb.js";
29
- import"./chunks/location-w7qv5azt.js";
30
- import"./chunks/location-z030czn6.js";
31
- import"./chunks/location-c0pd5awd.js";
32
- import"./chunks/location-2b13xzyt.js";
33
- import"./chunks/location-2ghz4m36.js";
34
- import"./chunks/location-7qpea5x7.js";
35
- import"./chunks/location-g23ffrnz.js";
36
- import"./chunks/location-djr0jy89.js";
37
- import"./chunks/location-7ydfwv45.js";
38
- import"./chunks/location-9chkqb53.js";
39
- import"./chunks/location-wtrkk6n8.js";
40
- import"./chunks/location-669rq3zn.js";
41
- import"./chunks/location-bwjy9ex5.js";
42
- import"./chunks/location-n7n1k6t0.js";
43
- import"./chunks/location-ahhjt1wh.js";
44
- import"./chunks/location-9epy4pks.js";
45
- import"./chunks/location-q187pxxd.js";
46
- import"./chunks/location-9cd3a4b8.js";
47
- import"./chunks/location-fvpjvjpp.js";
48
- import"./chunks/location-3te71694.js";
49
- import"./chunks/location-8sb6qqpn.js";
50
- import"./chunks/location-xthc02cw.js";
51
- import"./chunks/location-j4at0y5c.js";
52
- import"./chunks/location-q4bn6dy8.js";
53
- import"./chunks/location-8pn9ceqg.js";
54
- import"./chunks/location-ah2sj2pr.js";
55
- import"./chunks/location-vw0q3knq.js";
56
- import"./chunks/location-ywn523ee.js";
57
- import"./chunks/location-smaf4a18.js";
58
- import"./chunks/location-mzs0n5xz.js";
59
- import"./chunks/location-t32e1bbt.js";
4
+ } from "./chunks/event-feed-5z0ssrt9.js";
5
+ import"./chunks/event-feed-bd8755ek.js";
6
+ import"./chunks/event-feed-rktygpea.js";
7
+ import"./chunks/event-feed-n26yr6pw.js";
8
+ import"./chunks/event-feed-6jmqkv3t.js";
9
+ import"./chunks/event-feed-2d18d1yn.js";
10
+ import"./chunks/event-feed-mbf5t0tq.js";
11
+ import"./chunks/event-feed-y50v5y23.js";
12
+ import"./chunks/event-feed-1pw2nrsx.js";
13
+ import"./chunks/event-feed-6ptjjp36.js";
14
+ import"./chunks/event-feed-jdn2h5zy.js";
15
+ import"./chunks/event-feed-3cp4agan.js";
16
+ import"./chunks/event-feed-8q8t4r9z.js";
17
+ import"./chunks/event-feed-55yh37zc.js";
18
+ import"./chunks/event-feed-5b1w9hwr.js";
19
+ import"./chunks/event-feed-rxp97434.js";
20
+ import"./chunks/event-feed-mnk4yp0a.js";
21
+ import"./chunks/event-feed-dx59hhqy.js";
22
+ import"./chunks/event-feed-cha5bc7v.js";
23
+ import"./chunks/event-feed-a5hb5213.js";
24
+ import"./chunks/event-feed-4vbpeb73.js";
25
+ import"./chunks/event-feed-735y9bwf.js";
26
+ import"./chunks/event-feed-ye16b3jy.js";
27
+ import"./chunks/event-feed-d6gdrha6.js";
28
+ import"./chunks/event-feed-p4hr7w7j.js";
29
+ import"./chunks/event-feed-tb37vts4.js";
30
+ import"./chunks/event-feed-aw6r5m46.js";
31
+ import"./chunks/event-feed-g23ffrnz.js";
32
+ import"./chunks/event-feed-djr0jy89.js";
33
+ import"./chunks/event-feed-q187pxxd.js";
34
+ import"./chunks/event-feed-syfzpkey.js";
35
+ import"./chunks/event-feed-9cd3a4b8.js";
36
+ import"./chunks/event-feed-p7f8d9ed.js";
37
+ import"./chunks/event-feed-9d8cvn0j.js";
38
+ import"./chunks/event-feed-6f7nn4kk.js";
39
+ import"./chunks/event-feed-7ydfwv45.js";
40
+ import"./chunks/event-feed-8ptkdkh0.js";
41
+ import"./chunks/event-feed-harnzwyx.js";
42
+ import"./chunks/event-feed-e4amrgg0.js";
43
+ import"./chunks/event-feed-0bzgr4rt.js";
44
+ import"./chunks/event-feed-knscys1g.js";
45
+ import"./chunks/event-feed-tphz28p0.js";
46
+ import"./chunks/event-feed-0d9m1wm4.js";
47
+ import"./chunks/event-feed-vjj7wrqn.js";
48
+ import"./chunks/event-feed-8sb6qqpn.js";
49
+ import"./chunks/event-feed-t32e1bbt.js";
50
+ import"./chunks/event-feed-a9m1qywq.js";
51
+ import"./chunks/event-feed-kstarh2s.js";
52
+ import"./chunks/event-feed-ytyf0yt4.js";
53
+ import"./chunks/event-feed-tdwf54y9.js";
54
+ import"./chunks/event-feed-smaf4a18.js";
55
+ import"./chunks/event-feed-arzv3fj6.js";
56
+ import"./chunks/event-feed-xthc02cw.js";
57
+ import"./chunks/event-feed-b1prsepx.js";
58
+ import"./chunks/event-feed-q4bn6dy8.js";
59
+ import"./chunks/event-feed-mzs0n5xz.js";
60
+ import"./chunks/event-feed-j4at0y5c.js";
60
61
  export {
61
62
  createEmbeddedRoutes2 as createEmbeddedRoutes,
62
63
  createRoutes2 as createRoutes
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Service3,
3
- layer3,
3
+ layer4,
4
4
  connectionURLs2,
5
5
  exports_server_info
6
- } from "./chunks/location-3te71694.js";
6
+ } from "./chunks/event-feed-b1prsepx.js";
7
7
  export {
8
8
  exports_server_info as ServerInfo,
9
9
  Service3 as Service,
10
10
  connectionURLs2 as connectionURLs,
11
- layer3 as layer
11
+ layer4 as layer
12
12
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make2,
3
3
  exports_service_status
4
- } from "./chunks/location-39nnfjx1.js";
4
+ } from "./chunks/event-feed-39nnfjx1.js";
5
5
  export {
6
6
  exports_service_status as Status,
7
7
  make2 as make
package/dist/workerd.js CHANGED
@@ -1,67 +1,68 @@
1
- import"./chunks/location-q4bn6dy8.js";
2
- import"./chunks/location-myqk22k5.js";
3
- import"./chunks/location-yc7nft6q.js";
4
- import"./chunks/location-smaf4a18.js";
5
- import"./chunks/location-ywn523ee.js";
6
- import"./chunks/location-ah2sj2pr.js";
7
- import"./chunks/location-vw0q3knq.js";
8
- import"./chunks/location-8pn9ceqg.js";
9
- import"./chunks/location-j4at0y5c.js";
10
- import"./chunks/location-w7qv5azt.js";
11
- import"./chunks/location-xygx09yd.js";
12
- import"./chunks/location-xthc02cw.js";
13
- import"./chunks/location-3svx81fb.js";
14
- import"./chunks/location-ahhjt1wh.js";
15
- import"./chunks/location-065pppgn.js";
16
- import"./chunks/location-9chkqb53.js";
17
- import"./chunks/location-669rq3zn.js";
18
- import"./chunks/location-t32e1bbt.js";
19
- import"./chunks/location-8sb6qqpn.js";
20
- import"./chunks/location-01ta1g14.js";
21
- import"./chunks/location-cx7az6y7.js";
22
- import"./chunks/location-27f8nny0.js";
23
- import"./chunks/location-c0pd5awd.js";
24
- import"./chunks/location-k3qt4jsw.js";
25
- import"./chunks/location-fvpjvjpp.js";
26
- import"./chunks/location-bwjy9ex5.js";
27
- import"./chunks/location-nezkqcz0.js";
28
- import"./chunks/location-ryf8gt7t.js";
29
- import"./chunks/location-3te71694.js";
30
- import"./chunks/location-mzs0n5xz.js";
31
- import"./chunks/location-66wjg7cg.js";
32
- import"./chunks/location-500wz90y.js";
33
- import"./chunks/location-q187pxxd.js";
34
- import"./chunks/location-mevm0qpj.js";
35
- import"./chunks/location-7qpea5x7.js";
36
- import"./chunks/location-g23ffrnz.js";
37
- import"./chunks/location-9cd3a4b8.js";
38
- import"./chunks/location-7ydfwv45.js";
39
- import"./chunks/location-djr0jy89.js";
40
- import"./chunks/location-2ghz4m36.js";
41
- import"./chunks/location-xhsknm82.js";
42
- import"./chunks/location-yr4jk19s.js";
43
- import"./chunks/location-wtrkk6n8.js";
44
- import"./chunks/location-2b13xzyt.js";
45
- import"./chunks/location-fhb2ewd9.js";
46
- import"./chunks/location-n7n1k6t0.js";
47
- import"./chunks/location-9epy4pks.js";
48
- import"./chunks/location-z4znncxg.js";
49
- import"./chunks/location-0tp9bckc.js";
50
- import"./chunks/location-2q06e3dd.js";
51
- import"./chunks/location-z030czn6.js";
52
- import"./chunks/location-ghcy4ddk.js";
53
- import"./chunks/location-j9bm09j4.js";
54
- import"./chunks/location-20aw7tea.js";
55
- import"./chunks/location-7b9xm1qg.js";
56
- import"./chunks/location-bd8755ek.js";
57
- import"./chunks/location-n26yr6pw.js";
58
- import"./chunks/location-3d706mcp.js";
1
+ import"./chunks/event-feed-q4bn6dy8.js";
2
+ import"./chunks/event-feed-myqk22k5.js";
3
+ import"./chunks/event-feed-yc7nft6q.js";
4
+ import"./chunks/event-feed-smaf4a18.js";
5
+ import"./chunks/event-feed-tdwf54y9.js";
6
+ import"./chunks/event-feed-kstarh2s.js";
7
+ import"./chunks/event-feed-ytyf0yt4.js";
8
+ import"./chunks/event-feed-a9m1qywq.js";
9
+ import"./chunks/event-feed-j4at0y5c.js";
10
+ import"./chunks/event-feed-6ptjjp36.js";
11
+ import"./chunks/event-feed-8ptkdkh0.js";
12
+ import"./chunks/event-feed-xthc02cw.js";
13
+ import"./chunks/event-feed-3cp4agan.js";
14
+ import"./chunks/event-feed-mnk4yp0a.js";
15
+ import"./chunks/event-feed-9d8cvn0j.js";
16
+ import"./chunks/event-feed-knscys1g.js";
17
+ import"./chunks/event-feed-cha5bc7v.js";
18
+ import"./chunks/event-feed-t32e1bbt.js";
19
+ import"./chunks/event-feed-8sb6qqpn.js";
20
+ import"./chunks/event-feed-p7f8d9ed.js";
21
+ import"./chunks/event-feed-55yh37zc.js";
22
+ import"./chunks/event-feed-8q8t4r9z.js";
23
+ import"./chunks/event-feed-735y9bwf.js";
24
+ import"./chunks/event-feed-mbf5t0tq.js";
25
+ import"./chunks/event-feed-arzv3fj6.js";
26
+ import"./chunks/event-feed-d6gdrha6.js";
27
+ import"./chunks/event-feed-5b1w9hwr.js";
28
+ import"./chunks/event-feed-ye16b3jy.js";
29
+ import"./chunks/event-feed-b1prsepx.js";
30
+ import"./chunks/event-feed-mzs0n5xz.js";
31
+ import"./chunks/event-feed-tphz28p0.js";
32
+ import"./chunks/event-feed-jdn2h5zy.js";
33
+ import"./chunks/event-feed-q187pxxd.js";
34
+ import"./chunks/event-feed-y50v5y23.js";
35
+ import"./chunks/event-feed-aw6r5m46.js";
36
+ import"./chunks/event-feed-g23ffrnz.js";
37
+ import"./chunks/event-feed-9cd3a4b8.js";
38
+ import"./chunks/event-feed-7ydfwv45.js";
39
+ import"./chunks/event-feed-syfzpkey.js";
40
+ import"./chunks/event-feed-djr0jy89.js";
41
+ import"./chunks/event-feed-tb37vts4.js";
42
+ import"./chunks/event-feed-e4amrgg0.js";
43
+ import"./chunks/event-feed-vjj7wrqn.js";
44
+ import"./chunks/event-feed-1pw2nrsx.js";
45
+ import"./chunks/event-feed-4vbpeb73.js";
46
+ import"./chunks/event-feed-p4hr7w7j.js";
47
+ import"./chunks/event-feed-6f7nn4kk.js";
48
+ import"./chunks/event-feed-rxp97434.js";
49
+ import"./chunks/event-feed-a5hb5213.js";
50
+ import"./chunks/event-feed-dx59hhqy.js";
51
+ import"./chunks/event-feed-harnzwyx.js";
52
+ import"./chunks/event-feed-0d9m1wm4.js";
53
+ import"./chunks/event-feed-2d18d1yn.js";
54
+ import"./chunks/event-feed-0bzgr4rt.js";
55
+ import"./chunks/event-feed-6jmqkv3t.js";
56
+ import"./chunks/event-feed-rktygpea.js";
57
+ import"./chunks/event-feed-bd8755ek.js";
58
+ import"./chunks/event-feed-n26yr6pw.js";
59
+ import"./chunks/event-feed-5z0ssrt9.js";
59
60
  import {
60
61
  make3
61
- } from "./chunks/location-qzq425w0.js";
62
+ } from "./chunks/event-feed-vxnq9y72.js";
62
63
  import {
63
64
  __export
64
- } from "./chunks/location-9rqn6x4v.js";
65
+ } from "./chunks/event-feed-9rqn6x4v.js";
65
66
 
66
67
  // src/workerd.ts
67
68
  var exports_workerd = {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/server",
4
- "version": "0.0.0-dev-1325",
4
+ "version": "0.0.0-dev-1326",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -32,17 +32,17 @@
32
32
  "dependencies": {
33
33
  "@effect/platform-node": "4.1.0",
34
34
  "@effect/platform-node-shared": "4.1.0",
35
- "@opencode/core": "0.0.0-dev-1325",
36
- "@opencode/protocol": "0.0.0-dev-1325",
37
- "@opencode/schema": "0.0.0-dev-1325",
38
- "@opencode/simulation": "0.0.0-dev-1325",
39
- "@opencode/util": "0.0.0-dev-1325",
35
+ "@opencode/core": "0.0.0-dev-1326",
36
+ "@opencode/protocol": "0.0.0-dev-1326",
37
+ "@opencode/schema": "0.0.0-dev-1326",
38
+ "@opencode/simulation": "0.0.0-dev-1326",
39
+ "@opencode/util": "0.0.0-dev-1326",
40
40
  "effect": "4.1.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@opencode/pty": "0.6.0",
44
- "@opencode/client": "0.0.0-dev-1325",
45
- "@opencode/plugin": "0.0.0-dev-1325",
44
+ "@opencode/client": "0.0.0-dev-1326",
45
+ "@opencode/plugin": "0.0.0-dev-1326",
46
46
  "@tsconfig/bun": "1.0.9",
47
47
  "@types/bun": "1.4.3",
48
48
  "@typescript/native": "npm:typescript@7.1.0-beta",