@opencode/server 0.0.0-dev-19983 → 0.0.0-dev-19985

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./cors-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./cors-1y186f5x.js";
6
+ } from "./cors-yf295zqb.js";
7
7
  import {
8
8
  __export
9
9
  } from "./cors-9rqn6x4v.js";
@@ -12,15 +12,15 @@ import {
12
12
  var exports_fetch = {};
13
13
  __export(exports_fetch, {
14
14
  ServerFetch: () => exports_fetch,
15
- make: () => make2
15
+ make: () => make3
16
16
  });
17
17
  import { Context, Effect, Layer } from "effect";
18
18
  import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/unstable/http";
19
19
  import { SessionRestart } from "@opencode/core/session/execution/restart";
20
- var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
20
+ var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
21
21
  const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
22
22
  yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
23
23
  return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
24
24
  });
25
25
 
26
- export { make2, exports_fetch };
26
+ export { make3, exports_fetch };
@@ -6,18 +6,18 @@ import {
6
6
  var exports_pty_environment = {};
7
7
  __export(exports_pty_environment, {
8
8
  PtyEnvironment: () => exports_pty_environment,
9
- Service: () => Service4,
10
- layer: () => layer4,
9
+ Service: () => Service2,
10
+ layer: () => layer2,
11
11
  node: () => node2
12
12
  });
13
13
  import { Context, Effect, Layer } from "effect";
14
14
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
15
15
 
16
- class Service4 extends Context.Service()("@opencode/ServerPtyEnvironment") {
16
+ class Service2 extends Context.Service()("@opencode/ServerPtyEnvironment") {
17
17
  }
18
- var layer4 = Layer.succeed(Service4, Service4.of({
18
+ var layer2 = Layer.succeed(Service2, Service2.of({
19
19
  get: () => Effect.succeed({})
20
20
  }));
21
- var node2 = makeGlobalNode({ service: Service4, layer: layer4, deps: [] });
21
+ var node2 = makeGlobalNode({ service: Service2, layer: layer2, deps: [] });
22
22
 
23
- export { Service4, layer4, node2, exports_pty_environment };
23
+ export { Service2, layer2, node2, exports_pty_environment };
@@ -32,11 +32,11 @@ import {
32
32
  RpcHandler2
33
33
  } from "./cors-1wj0ectp.js";
34
34
  import {
35
- layer3
36
- } from "./cors-rjpqaa8h.js";
35
+ layer4
36
+ } from "./cors-n9y13hgv.js";
37
37
  import {
38
38
  EventHandler2
39
- } from "./cors-gkvpj2tq.js";
39
+ } from "./cors-xaw29g0h.js";
40
40
  import {
41
41
  AgentHandler2
42
42
  } from "./cors-zxvt7wd3.js";
@@ -45,13 +45,13 @@ import {
45
45
  } from "./cors-vgxn80m1.js";
46
46
  import {
47
47
  ServerHandler2
48
- } from "./cors-backsp39.js";
48
+ } from "./cors-zkazzta0.js";
49
49
  import {
50
50
  DebugHandler2
51
51
  } from "./cors-8e21y1bd.js";
52
52
  import {
53
53
  PtyHandler2
54
- } from "./cors-n48g09tr.js";
54
+ } from "./cors-w7jfcsdf.js";
55
55
  import {
56
56
  PersistentPtyHandler2
57
57
  } from "./cors-0qzy9yxk.js";
@@ -94,6 +94,6 @@ import {
94
94
 
95
95
  // src/handlers.ts
96
96
  import { Layer } from "effect";
97
- var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer3)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
97
+ var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer4)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
98
98
 
99
99
  export { handlers2 };
@@ -6,17 +6,17 @@ import {
6
6
  var exports_server_info = {};
7
7
  __export(exports_server_info, {
8
8
  ServerInfo: () => exports_server_info,
9
- Service: () => Service2,
9
+ Service: () => Service3,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer2
11
+ layer: () => layer3
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
- class Service2 extends Context.Service()("@opencode/server/ServerInfo") {
16
+ class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer2(urls, tmp, app = {}) {
19
- return Layer.succeed(Service2, Service2.of({ urls, app, paths: { tmp } }));
18
+ function layer3(urls, tmp, app = {}) {
19
+ return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
20
20
  }
21
21
  function connectionURLs2(value, requestedHostname) {
22
22
  const url = new URL(value);
@@ -33,4 +33,4 @@ function connectionURLs2(value, requestedHostname) {
33
33
  ];
34
34
  }
35
35
 
36
- export { Service2, layer2, connectionURLs2, exports_server_info };
36
+ export { Service3, layer3, connectionURLs2, exports_server_info };
@@ -7,11 +7,11 @@ var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service3,
10
+ Service: () => Service4,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer3,
14
+ layer: () => layer4,
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 Service3 extends Context.Service()("@opencode/server/EventFeed") {
33
+ class Service4 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 Service3.of({
74
+ return Service4.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(Service3, Effect.gen(function* () {
78
+ var layer4 = Layer.effect(Service4, 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, Service3, frame2, make4, layer3, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer4, exports_event_feed };
@@ -9,8 +9,8 @@ import {
9
9
  isAllowedRequestOrigin2
10
10
  } from "./cors-q4bn6dy8.js";
11
11
  import {
12
- Service4
13
- } from "./cors-w06km2r1.js";
12
+ Service2
13
+ } from "./cors-bkk2wfbz.js";
14
14
  import {
15
15
  runPtySocket2
16
16
  } from "./cors-hezj1jdf.js";
@@ -37,7 +37,7 @@ var ticketScope = Effect.gen(function* () {
37
37
  var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.gen(function* () {
38
38
  const tickets = yield* PtyTicket.Service;
39
39
  const cors = yield* CorsConfig2;
40
- const environment = yield* Service4;
40
+ const environment = yield* Service2;
41
41
  return handlers.handle("pty.list", Effect.fn(function* () {
42
42
  const pty = yield* Pty.Service;
43
43
  return yield* response2(pty.list());
@@ -2,9 +2,9 @@ import {
2
2
  Api2
3
3
  } from "./cors-z6kg9h7e.js";
4
4
  import {
5
- Service3,
5
+ Service4,
6
6
  frame2
7
- } from "./cors-rjpqaa8h.js";
7
+ } from "./cors-n9y13hgv.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
12
12
  import { HttpServerResponse } from "effect/unstable/http";
13
13
  import { HttpApiBuilder } from "effect/unstable/httpapi";
14
14
  var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
15
- const feed = yield* Service3;
15
+ const feed = yield* Service4;
16
16
  return handlers.handleRaw("event.subscribe", () => Effect.gen(function* () {
17
17
  const connected = {
18
18
  id: Event.ID.create(),
@@ -6,10 +6,10 @@ import {
6
6
  var exports_service_status = {};
7
7
  __export(exports_service_status, {
8
8
  Status: () => exports_service_status,
9
- make: () => make3
9
+ make: () => make2
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make3 = Effect.fnUntraced(function* (options = {}) {
12
+ var make2 = Effect.fnUntraced(function* (options = {}) {
13
13
  const current = yield* Ref.make(options.initial ?? { type: "starting" });
14
14
  const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
15
15
  return {
@@ -20,4 +20,4 @@ var make3 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make3, exports_service_status };
23
+ export { make2, exports_service_status };
@@ -17,14 +17,14 @@ import {
17
17
  CorsConfig2
18
18
  } from "./cors-q4bn6dy8.js";
19
19
  import {
20
- layer2
21
- } from "./cors-s4aja1df.js";
20
+ layer3
21
+ } from "./cors-mzr9gftb.js";
22
22
  import {
23
23
  node2
24
- } from "./cors-w06km2r1.js";
24
+ } from "./cors-bkk2wfbz.js";
25
25
  import {
26
26
  handlers2
27
- } from "./cors-282xd4rh.js";
27
+ } from "./cors-enrvkezg.js";
28
28
  import {
29
29
  authorizationLayer2
30
30
  } from "./cors-m6wvgbfq.js";
@@ -140,7 +140,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
140
140
  })) : build(overrides);
141
141
  return serviceLayer.pipe(Layer.flatMap((context) => {
142
142
  const services = Layer.succeedContext(context);
143
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer2(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
143
+ 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));
144
144
  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));
145
145
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
146
146
  }));
@@ -2,14 +2,14 @@ import {
2
2
  Api2
3
3
  } from "./cors-z6kg9h7e.js";
4
4
  import {
5
- Service2
6
- } from "./cors-s4aja1df.js";
5
+ Service3
6
+ } from "./cors-mzr9gftb.js";
7
7
 
8
8
  // src/handlers/server.ts
9
9
  import { Effect } from "effect";
10
10
  import { HttpApiBuilder } from "effect/unstable/httpapi";
11
11
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => handlers.handle("server.info", () => Effect.gen(function* () {
12
- const info = yield* Service2;
12
+ const info = yield* Service3;
13
13
  return {
14
14
  version: info.app.version ?? "unknown",
15
15
  pid: process.pid ?? 0,
@@ -2,19 +2,19 @@ import {
2
2
  SubscriberCapacity2,
3
3
  SubscriberOverflowError2,
4
4
  EncodingError2,
5
- Service3,
5
+ Service4,
6
6
  frame2,
7
7
  make4,
8
- layer3,
8
+ layer4,
9
9
  exports_event_feed
10
- } from "./chunks/cors-rjpqaa8h.js";
10
+ } from "./chunks/cors-n9y13hgv.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,
14
- Service3 as Service,
14
+ Service4 as Service,
15
15
  SubscriberCapacity2 as SubscriberCapacity,
16
16
  SubscriberOverflowError2 as SubscriberOverflowError,
17
17
  frame2 as frame,
18
- layer3 as layer,
18
+ layer4 as layer,
19
19
  make4 as make
20
20
  };
package/dist/fetch.js CHANGED
@@ -1,53 +1,53 @@
1
1
  import {
2
- make2,
2
+ make3,
3
3
  exports_fetch
4
- } from "./chunks/cors-119j7728.js";
5
- import"./chunks/cors-1y186f5x.js";
4
+ } from "./chunks/cors-0yezpgkm.js";
5
+ import"./chunks/cors-yf295zqb.js";
6
6
  import"./chunks/cors-m6wvgbfq.js";
7
7
  import"./chunks/cors-t8yzmczr.js";
8
- import"./chunks/cors-282xd4rh.js";
9
- import"./chunks/cors-8ygjd1s8.js";
10
- import"./chunks/cors-8e21y1bd.js";
11
- import"./chunks/cors-fyjxk8m3.js";
12
- import"./chunks/cors-gkvpj2tq.js";
8
+ import"./chunks/cors-zyv89x5n.js";
9
+ import"./chunks/cors-enrvkezg.js";
13
10
  import"./chunks/cors-bkb1xk38.js";
14
- import"./chunks/cors-txhx6f1m.js";
11
+ import"./chunks/cors-erwrh284.js";
12
+ import"./chunks/cors-bgzrbsek.js";
15
13
  import"./chunks/cors-8nbs1vvt.js";
16
- import"./chunks/cors-kv6ycdgm.js";
17
- import"./chunks/cors-zxvt7wd3.js";
18
- import"./chunks/cors-cm8xmqjn.js";
19
- import"./chunks/cors-0qzy9yxk.js";
20
- import"./chunks/cors-6aya8ky6.js";
14
+ import"./chunks/cors-txhx6f1m.js";
15
+ import"./chunks/cors-tk6nqkmh.js";
16
+ import"./chunks/cors-1wj0ectp.js";
21
17
  import"./chunks/cors-34e6wr3b.js";
22
- import"./chunks/cors-vgxn80m1.js";
18
+ import"./chunks/cors-e09mshwt.js";
19
+ import"./chunks/cors-w7jfcsdf.js";
20
+ import"./chunks/cors-zkazzta0.js";
21
+ import"./chunks/cors-40g8rvw4.js";
22
+ import"./chunks/cors-xaw29g0h.js";
23
+ import"./chunks/cors-8ygjd1s8.js";
24
+ import"./chunks/cors-xpxp1sqb.js";
23
25
  import"./chunks/cors-7qtja2kq.js";
24
- import"./chunks/cors-r4dhhtgz.js";
25
- import"./chunks/cors-zw9j8b8g.js";
26
- import"./chunks/cors-tk6nqkmh.js";
27
- import"./chunks/cors-n48g09tr.js";
26
+ import"./chunks/cors-0qzy9yxk.js";
28
27
  import"./chunks/cors-hezj1jdf.js";
29
- import"./chunks/cors-bgzrbsek.js";
28
+ import"./chunks/cors-vgxn80m1.js";
30
29
  import"./chunks/cors-pd1pbg0v.js";
31
- import"./chunks/cors-xpxp1sqb.js";
32
- import"./chunks/cors-40g8rvw4.js";
33
30
  import"./chunks/cors-d2g7egyw.js";
34
- import"./chunks/cors-backsp39.js";
35
- import"./chunks/cors-erwrh284.js";
36
- import"./chunks/cors-1wj0ectp.js";
37
- import"./chunks/cors-e09mshwt.js";
31
+ import"./chunks/cors-fyjxk8m3.js";
32
+ import"./chunks/cors-kv6ycdgm.js";
33
+ import"./chunks/cors-zxvt7wd3.js";
34
+ import"./chunks/cors-cm8xmqjn.js";
38
35
  import"./chunks/cors-z3nth2hg.js";
39
- import"./chunks/cors-s4aja1df.js";
40
- import"./chunks/cors-rjpqaa8h.js";
41
- import"./chunks/cors-w06km2r1.js";
42
36
  import"./chunks/cors-760vtqy2.js";
37
+ import"./chunks/cors-zw9j8b8g.js";
38
+ import"./chunks/cors-r4dhhtgz.js";
39
+ import"./chunks/cors-6aya8ky6.js";
40
+ import"./chunks/cors-8e21y1bd.js";
43
41
  import"./chunks/cors-q4bn6dy8.js";
42
+ import"./chunks/cors-bkk2wfbz.js";
43
+ import"./chunks/cors-mzr9gftb.js";
44
+ import"./chunks/cors-n9y13hgv.js";
44
45
  import"./chunks/cors-z6kg9h7e.js";
45
46
  import"./chunks/cors-23w8t84j.js";
46
47
  import"./chunks/cors-frv6gfy7.js";
47
48
  import"./chunks/cors-0ar9gf7q.js";
48
49
  import"./chunks/cors-smaf4a18.js";
49
- import"./chunks/cors-zyv89x5n.js";
50
50
  export {
51
51
  exports_fetch as ServerFetch,
52
- make2 as make
52
+ make3 as make
53
53
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EventHandler2
3
- } from "../chunks/cors-gkvpj2tq.js";
4
- import"../chunks/cors-rjpqaa8h.js";
3
+ } from "../chunks/cors-xaw29g0h.js";
4
+ import"../chunks/cors-n9y13hgv.js";
5
5
  import"../chunks/cors-z6kg9h7e.js";
6
6
  import"../chunks/cors-23w8t84j.js";
7
7
  import"../chunks/cors-frv6gfy7.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PtyHandler2
3
- } from "../chunks/cors-n48g09tr.js";
3
+ } from "../chunks/cors-w7jfcsdf.js";
4
4
  import"../chunks/cors-hezj1jdf.js";
5
- import"../chunks/cors-w06km2r1.js";
6
5
  import"../chunks/cors-q4bn6dy8.js";
6
+ import"../chunks/cors-bkk2wfbz.js";
7
7
  import"../chunks/cors-z6kg9h7e.js";
8
8
  import"../chunks/cors-23w8t84j.js";
9
9
  import"../chunks/cors-frv6gfy7.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ServerHandler2
3
- } from "../chunks/cors-backsp39.js";
4
- import"../chunks/cors-s4aja1df.js";
3
+ } from "../chunks/cors-zkazzta0.js";
4
+ import"../chunks/cors-mzr9gftb.js";
5
5
  import"../chunks/cors-z6kg9h7e.js";
6
6
  import"../chunks/cors-23w8t84j.js";
7
7
  import"../chunks/cors-frv6gfy7.js";
package/dist/handlers.js CHANGED
@@ -1,41 +1,41 @@
1
1
  import {
2
2
  handlers2
3
- } from "./chunks/cors-282xd4rh.js";
4
- import"./chunks/cors-8ygjd1s8.js";
5
- import"./chunks/cors-8e21y1bd.js";
6
- import"./chunks/cors-fyjxk8m3.js";
7
- import"./chunks/cors-gkvpj2tq.js";
3
+ } from "./chunks/cors-enrvkezg.js";
8
4
  import"./chunks/cors-bkb1xk38.js";
9
- import"./chunks/cors-txhx6f1m.js";
5
+ import"./chunks/cors-erwrh284.js";
6
+ import"./chunks/cors-bgzrbsek.js";
10
7
  import"./chunks/cors-8nbs1vvt.js";
11
- import"./chunks/cors-kv6ycdgm.js";
12
- import"./chunks/cors-zxvt7wd3.js";
13
- import"./chunks/cors-cm8xmqjn.js";
14
- import"./chunks/cors-0qzy9yxk.js";
15
- import"./chunks/cors-6aya8ky6.js";
8
+ import"./chunks/cors-txhx6f1m.js";
9
+ import"./chunks/cors-tk6nqkmh.js";
10
+ import"./chunks/cors-1wj0ectp.js";
16
11
  import"./chunks/cors-34e6wr3b.js";
17
- import"./chunks/cors-vgxn80m1.js";
12
+ import"./chunks/cors-e09mshwt.js";
13
+ import"./chunks/cors-w7jfcsdf.js";
14
+ import"./chunks/cors-zkazzta0.js";
15
+ import"./chunks/cors-40g8rvw4.js";
16
+ import"./chunks/cors-xaw29g0h.js";
17
+ import"./chunks/cors-8ygjd1s8.js";
18
+ import"./chunks/cors-xpxp1sqb.js";
18
19
  import"./chunks/cors-7qtja2kq.js";
19
- import"./chunks/cors-r4dhhtgz.js";
20
- import"./chunks/cors-zw9j8b8g.js";
21
- import"./chunks/cors-tk6nqkmh.js";
22
- import"./chunks/cors-n48g09tr.js";
20
+ import"./chunks/cors-0qzy9yxk.js";
23
21
  import"./chunks/cors-hezj1jdf.js";
24
- import"./chunks/cors-bgzrbsek.js";
22
+ import"./chunks/cors-vgxn80m1.js";
25
23
  import"./chunks/cors-pd1pbg0v.js";
26
- import"./chunks/cors-xpxp1sqb.js";
27
- import"./chunks/cors-40g8rvw4.js";
28
24
  import"./chunks/cors-d2g7egyw.js";
29
- import"./chunks/cors-backsp39.js";
30
- import"./chunks/cors-erwrh284.js";
31
- import"./chunks/cors-1wj0ectp.js";
32
- import"./chunks/cors-e09mshwt.js";
25
+ import"./chunks/cors-fyjxk8m3.js";
26
+ import"./chunks/cors-kv6ycdgm.js";
27
+ import"./chunks/cors-zxvt7wd3.js";
28
+ import"./chunks/cors-cm8xmqjn.js";
33
29
  import"./chunks/cors-z3nth2hg.js";
34
- import"./chunks/cors-s4aja1df.js";
35
- import"./chunks/cors-rjpqaa8h.js";
36
- import"./chunks/cors-w06km2r1.js";
37
30
  import"./chunks/cors-760vtqy2.js";
31
+ import"./chunks/cors-zw9j8b8g.js";
32
+ import"./chunks/cors-r4dhhtgz.js";
33
+ import"./chunks/cors-6aya8ky6.js";
34
+ import"./chunks/cors-8e21y1bd.js";
38
35
  import"./chunks/cors-q4bn6dy8.js";
36
+ import"./chunks/cors-bkk2wfbz.js";
37
+ import"./chunks/cors-mzr9gftb.js";
38
+ import"./chunks/cors-n9y13hgv.js";
39
39
  import"./chunks/cors-z6kg9h7e.js";
40
40
  import"./chunks/cors-23w8t84j.js";
41
41
  import"./chunks/cors-frv6gfy7.js";
package/dist/process.js CHANGED
@@ -26,18 +26,18 @@ import"./chunks/cors-pd1pbg0v.js";
26
26
  import"./chunks/cors-bgzrbsek.js";
27
27
  import"./chunks/cors-34e6wr3b.js";
28
28
  import"./chunks/cors-1wj0ectp.js";
29
- import"./chunks/cors-rjpqaa8h.js";
30
- import"./chunks/cors-gkvpj2tq.js";
29
+ import"./chunks/cors-n9y13hgv.js";
30
+ import"./chunks/cors-xaw29g0h.js";
31
31
  import"./chunks/cors-zxvt7wd3.js";
32
32
  import"./chunks/cors-vgxn80m1.js";
33
33
  import {
34
34
  connectionURLs2
35
- } from "./chunks/cors-s4aja1df.js";
36
- import"./chunks/cors-backsp39.js";
35
+ } from "./chunks/cors-mzr9gftb.js";
36
+ import"./chunks/cors-zkazzta0.js";
37
37
  import"./chunks/cors-8e21y1bd.js";
38
- import"./chunks/cors-w06km2r1.js";
38
+ import"./chunks/cors-bkk2wfbz.js";
39
39
  import"./chunks/cors-hezj1jdf.js";
40
- import"./chunks/cors-n48g09tr.js";
40
+ import"./chunks/cors-w7jfcsdf.js";
41
41
  import"./chunks/cors-0qzy9yxk.js";
42
42
  import"./chunks/cors-z3nth2hg.js";
43
43
  import"./chunks/cors-cm8xmqjn.js";
@@ -51,14 +51,14 @@ import"./chunks/cors-bkb1xk38.js";
51
51
  import"./chunks/cors-zw9j8b8g.js";
52
52
  import"./chunks/cors-txhx6f1m.js";
53
53
  import"./chunks/cors-xpxp1sqb.js";
54
- import"./chunks/cors-282xd4rh.js";
54
+ import"./chunks/cors-enrvkezg.js";
55
55
  import"./chunks/cors-t8yzmczr.js";
56
56
  import {
57
57
  createRoutes2
58
- } from "./chunks/cors-1y186f5x.js";
58
+ } from "./chunks/cors-yf295zqb.js";
59
59
  import {
60
- make3
61
- } from "./chunks/cors-5w24ch67.js";
60
+ make2
61
+ } from "./chunks/cors-xsrtpxyd.js";
62
62
  import {
63
63
  __export
64
64
  } from "./chunks/cors-9rqn6x4v.js";
@@ -87,7 +87,7 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
87
87
  const hostname = options.hostname ?? "127.0.0.1";
88
88
  const port = Option.fromNullishOr(options.port);
89
89
  const shutdown = yield* Latch.make();
90
- const status = yield* make3();
90
+ const status = yield* make2();
91
91
  const bound = yield* listen({ hostname, port });
92
92
  const urls = () => {
93
93
  const address = bound.server.address();
@@ -1,12 +1,12 @@
1
1
  import {
2
- Service4,
3
- layer4,
2
+ Service2,
3
+ layer2,
4
4
  node2,
5
5
  exports_pty_environment
6
- } from "./chunks/cors-w06km2r1.js";
6
+ } from "./chunks/cors-bkk2wfbz.js";
7
7
  export {
8
8
  exports_pty_environment as PtyEnvironment,
9
- Service4 as Service,
10
- layer4 as layer,
9
+ Service2 as Service,
10
+ layer2 as layer,
11
11
  node2 as node
12
12
  };
package/dist/routes.js CHANGED
@@ -1,51 +1,51 @@
1
1
  import {
2
2
  createRoutes2,
3
3
  createEmbeddedRoutes2
4
- } from "./chunks/cors-1y186f5x.js";
4
+ } from "./chunks/cors-yf295zqb.js";
5
5
  import"./chunks/cors-m6wvgbfq.js";
6
6
  import"./chunks/cors-t8yzmczr.js";
7
- import"./chunks/cors-282xd4rh.js";
8
- import"./chunks/cors-8ygjd1s8.js";
9
- import"./chunks/cors-8e21y1bd.js";
10
- import"./chunks/cors-fyjxk8m3.js";
11
- import"./chunks/cors-gkvpj2tq.js";
7
+ import"./chunks/cors-zyv89x5n.js";
8
+ import"./chunks/cors-enrvkezg.js";
12
9
  import"./chunks/cors-bkb1xk38.js";
13
- import"./chunks/cors-txhx6f1m.js";
10
+ import"./chunks/cors-erwrh284.js";
11
+ import"./chunks/cors-bgzrbsek.js";
14
12
  import"./chunks/cors-8nbs1vvt.js";
15
- import"./chunks/cors-kv6ycdgm.js";
16
- import"./chunks/cors-zxvt7wd3.js";
17
- import"./chunks/cors-cm8xmqjn.js";
18
- import"./chunks/cors-0qzy9yxk.js";
19
- import"./chunks/cors-6aya8ky6.js";
13
+ import"./chunks/cors-txhx6f1m.js";
14
+ import"./chunks/cors-tk6nqkmh.js";
15
+ import"./chunks/cors-1wj0ectp.js";
20
16
  import"./chunks/cors-34e6wr3b.js";
21
- import"./chunks/cors-vgxn80m1.js";
17
+ import"./chunks/cors-e09mshwt.js";
18
+ import"./chunks/cors-w7jfcsdf.js";
19
+ import"./chunks/cors-zkazzta0.js";
20
+ import"./chunks/cors-40g8rvw4.js";
21
+ import"./chunks/cors-xaw29g0h.js";
22
+ import"./chunks/cors-8ygjd1s8.js";
23
+ import"./chunks/cors-xpxp1sqb.js";
22
24
  import"./chunks/cors-7qtja2kq.js";
23
- import"./chunks/cors-r4dhhtgz.js";
24
- import"./chunks/cors-zw9j8b8g.js";
25
- import"./chunks/cors-tk6nqkmh.js";
26
- import"./chunks/cors-n48g09tr.js";
25
+ import"./chunks/cors-0qzy9yxk.js";
27
26
  import"./chunks/cors-hezj1jdf.js";
28
- import"./chunks/cors-bgzrbsek.js";
27
+ import"./chunks/cors-vgxn80m1.js";
29
28
  import"./chunks/cors-pd1pbg0v.js";
30
- import"./chunks/cors-xpxp1sqb.js";
31
- import"./chunks/cors-40g8rvw4.js";
32
29
  import"./chunks/cors-d2g7egyw.js";
33
- import"./chunks/cors-backsp39.js";
34
- import"./chunks/cors-erwrh284.js";
35
- import"./chunks/cors-1wj0ectp.js";
36
- import"./chunks/cors-e09mshwt.js";
30
+ import"./chunks/cors-fyjxk8m3.js";
31
+ import"./chunks/cors-kv6ycdgm.js";
32
+ import"./chunks/cors-zxvt7wd3.js";
33
+ import"./chunks/cors-cm8xmqjn.js";
37
34
  import"./chunks/cors-z3nth2hg.js";
38
- import"./chunks/cors-s4aja1df.js";
39
- import"./chunks/cors-rjpqaa8h.js";
40
- import"./chunks/cors-w06km2r1.js";
41
35
  import"./chunks/cors-760vtqy2.js";
36
+ import"./chunks/cors-zw9j8b8g.js";
37
+ import"./chunks/cors-r4dhhtgz.js";
38
+ import"./chunks/cors-6aya8ky6.js";
39
+ import"./chunks/cors-8e21y1bd.js";
42
40
  import"./chunks/cors-q4bn6dy8.js";
41
+ import"./chunks/cors-bkk2wfbz.js";
42
+ import"./chunks/cors-mzr9gftb.js";
43
+ import"./chunks/cors-n9y13hgv.js";
43
44
  import"./chunks/cors-z6kg9h7e.js";
44
45
  import"./chunks/cors-23w8t84j.js";
45
46
  import"./chunks/cors-frv6gfy7.js";
46
47
  import"./chunks/cors-0ar9gf7q.js";
47
48
  import"./chunks/cors-smaf4a18.js";
48
- import"./chunks/cors-zyv89x5n.js";
49
49
  export {
50
50
  createEmbeddedRoutes2 as createEmbeddedRoutes,
51
51
  createRoutes2 as createRoutes
@@ -1,12 +1,12 @@
1
1
  import {
2
- Service2,
3
- layer2,
2
+ Service3,
3
+ layer3,
4
4
  connectionURLs2,
5
5
  exports_server_info
6
- } from "./chunks/cors-s4aja1df.js";
6
+ } from "./chunks/cors-mzr9gftb.js";
7
7
  export {
8
8
  exports_server_info as ServerInfo,
9
- Service2 as Service,
9
+ Service3 as Service,
10
10
  connectionURLs2 as connectionURLs,
11
- layer2 as layer
11
+ layer3 as layer
12
12
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
- make3,
2
+ make2,
3
3
  exports_service_status
4
- } from "./chunks/cors-5w24ch67.js";
4
+ } from "./chunks/cors-xsrtpxyd.js";
5
5
  export {
6
6
  exports_service_status as Status,
7
- make3 as make
7
+ make2 as make
8
8
  };
package/dist/workerd.js CHANGED
@@ -16,16 +16,16 @@ import"./chunks/cors-pd1pbg0v.js";
16
16
  import"./chunks/cors-bgzrbsek.js";
17
17
  import"./chunks/cors-34e6wr3b.js";
18
18
  import"./chunks/cors-1wj0ectp.js";
19
- import"./chunks/cors-rjpqaa8h.js";
20
- import"./chunks/cors-gkvpj2tq.js";
19
+ import"./chunks/cors-n9y13hgv.js";
20
+ import"./chunks/cors-xaw29g0h.js";
21
21
  import"./chunks/cors-zxvt7wd3.js";
22
22
  import"./chunks/cors-vgxn80m1.js";
23
- import"./chunks/cors-s4aja1df.js";
24
- import"./chunks/cors-backsp39.js";
23
+ import"./chunks/cors-mzr9gftb.js";
24
+ import"./chunks/cors-zkazzta0.js";
25
25
  import"./chunks/cors-8e21y1bd.js";
26
- import"./chunks/cors-w06km2r1.js";
26
+ import"./chunks/cors-bkk2wfbz.js";
27
27
  import"./chunks/cors-hezj1jdf.js";
28
- import"./chunks/cors-n48g09tr.js";
28
+ import"./chunks/cors-w7jfcsdf.js";
29
29
  import"./chunks/cors-0qzy9yxk.js";
30
30
  import"./chunks/cors-z3nth2hg.js";
31
31
  import"./chunks/cors-cm8xmqjn.js";
@@ -39,13 +39,13 @@ import"./chunks/cors-bkb1xk38.js";
39
39
  import"./chunks/cors-zw9j8b8g.js";
40
40
  import"./chunks/cors-txhx6f1m.js";
41
41
  import"./chunks/cors-xpxp1sqb.js";
42
- import"./chunks/cors-282xd4rh.js";
42
+ import"./chunks/cors-enrvkezg.js";
43
43
  import"./chunks/cors-m6wvgbfq.js";
44
44
  import"./chunks/cors-t8yzmczr.js";
45
- import"./chunks/cors-1y186f5x.js";
45
+ import"./chunks/cors-yf295zqb.js";
46
46
  import {
47
- make2
48
- } from "./chunks/cors-119j7728.js";
47
+ make3
48
+ } from "./chunks/cors-0yezpgkm.js";
49
49
  import {
50
50
  __export
51
51
  } from "./chunks/cors-9rqn6x4v.js";
@@ -70,7 +70,7 @@ import { Snapshot } from "@opencode/core/snapshot";
70
70
  import { Vcs } from "@opencode/core/vcs";
71
71
  import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
72
72
  function create(options) {
73
- return make2(serverOptions(options), { overrides: replacements(options) });
73
+ return make3(serverOptions(options), { overrides: replacements(options) });
74
74
  }
75
75
  function serverOptions(options) {
76
76
  return {
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-19983",
4
+ "version": "0.0.0-dev-19985",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -30,17 +30,17 @@
30
30
  "dependencies": {
31
31
  "@effect/platform-node": "4.0.0-rc.112",
32
32
  "@effect/platform-node-shared": "4.0.0-rc.112",
33
- "@opencode/core": "0.0.0-dev-19983",
34
- "@opencode/protocol": "0.0.0-dev-19983",
35
- "@opencode/schema": "0.0.0-dev-19983",
36
- "@opencode/simulation": "0.0.0-dev-19983",
37
- "@opencode/util": "0.0.0-dev-19983",
33
+ "@opencode/core": "0.0.0-dev-19985",
34
+ "@opencode/protocol": "0.0.0-dev-19985",
35
+ "@opencode/schema": "0.0.0-dev-19985",
36
+ "@opencode/simulation": "0.0.0-dev-19985",
37
+ "@opencode/util": "0.0.0-dev-19985",
38
38
  "drizzle-orm": "1.0.0-rc.5-169397b",
39
39
  "effect": "4.0.0-rc.112"
40
40
  },
41
41
  "devDependencies": {
42
- "@opencode/client": "0.0.0-dev-19983",
43
- "@opencode/plugin": "0.0.0-dev-19983",
42
+ "@opencode/client": "0.0.0-dev-19985",
43
+ "@opencode/plugin": "0.0.0-dev-19985",
44
44
  "@tsconfig/bun": "1.0.9",
45
45
  "@types/bun": "1.4.0",
46
46
  "@typescript/native-preview": "7.0.0-dev.20251207.1"