@opencode/server 0.0.0-dev-20786 → 0.0.0-dev-20788

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.
@@ -32,11 +32,11 @@ import {
32
32
  RpcHandler2
33
33
  } from "./cors-10bq7mg4.js";
34
34
  import {
35
- layer3
36
- } from "./cors-rjpqaa8h.js";
35
+ layer2
36
+ } from "./cors-kmrabwkf.js";
37
37
  import {
38
38
  EventHandler2
39
- } from "./cors-72xpy55t.js";
39
+ } from "./cors-m3ph2jkv.js";
40
40
  import {
41
41
  AgentHandler2
42
42
  } from "./cors-jphw74cq.js";
@@ -45,16 +45,16 @@ import {
45
45
  } from "./cors-735x1s0d.js";
46
46
  import {
47
47
  ServerHandler2
48
- } from "./cors-r5pmcrqb.js";
48
+ } from "./cors-z31qr7z9.js";
49
49
  import {
50
50
  DebugHandler2
51
51
  } from "./cors-f3xezvck.js";
52
52
  import {
53
53
  PtyHandler2
54
- } from "./cors-1tk2rec1.js";
54
+ } from "./cors-gzx549bj.js";
55
55
  import {
56
56
  PersistentPtyHandler2
57
- } from "./cors-drahxf95.js";
57
+ } from "./cors-p7hhg8cx.js";
58
58
  import {
59
59
  ShellHandler2
60
60
  } from "./cors-qggsn6y0.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(layer2)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
98
98
 
99
99
  export { handlers2 };
@@ -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: () => Service2,
10
- layer: () => layer2,
9
+ Service: () => Service4,
10
+ layer: () => layer5,
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 Service2 extends Context.Service()("@opencode/ServerPtyEnvironment") {
16
+ class Service4 extends Context.Service()("@opencode/ServerPtyEnvironment") {
17
17
  }
18
- var layer2 = Layer.succeed(Service2, Service2.of({
18
+ var layer5 = Layer.succeed(Service4, Service4.of({
19
19
  get: () => Effect.succeed({})
20
20
  }));
21
- var node2 = makeGlobalNode({ service: Service2, layer: layer2, deps: [] });
21
+ var node2 = makeGlobalNode({ service: Service4, layer: layer5, deps: [] });
22
22
 
23
- export { Service2, layer2, node2, exports_pty_environment };
23
+ export { Service4, layer5, node2, exports_pty_environment };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./cors-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./cors-1x5dvcb3.js";
6
+ } from "./cors-hz7d3per.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: () => make3
15
+ make: () => make2
16
16
  });
17
17
  import { Context, Effect, Layer } from "effect";
18
18
  import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
19
19
  import { SessionRestart } from "@opencode/core/session/execution/restart";
20
- var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
20
+ var make2 = 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 { make3, exports_fetch };
26
+ export { make2, exports_fetch };
@@ -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: () => Service5,
9
+ Service: () => Service3,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer5
11
+ layer: () => layer3
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
- class Service5 extends Context.Service()("@opencode/server/ServerInfo") {
16
+ class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer5(urls, tmp, app = {}) {
19
- return Layer.succeed(Service5, Service5.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);
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
38
38
  ];
39
39
  }
40
40
 
41
- export { Service5, layer5, connectionURLs2, exports_server_info };
41
+ export { Service3, layer3, connectionURLs2, exports_server_info };
@@ -11,8 +11,8 @@ import {
11
11
  isAllowedRequestOrigin2
12
12
  } from "./cors-q4bn6dy8.js";
13
13
  import {
14
- Service2
15
- } from "./cors-bkk2wfbz.js";
14
+ Service4
15
+ } from "./cors-75c938bc.js";
16
16
  import {
17
17
  runPtySocket2
18
18
  } from "./cors-h6rt5k9s.js";
@@ -41,7 +41,7 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
41
41
  const locations = yield* LocationServiceMap.Service;
42
42
  const tickets = yield* PtyTicket.Service;
43
43
  const cors = yield* CorsConfig2;
44
- const environment = yield* Service2;
44
+ const environment = yield* Service4;
45
45
  return handlers.handle("pty.list", Effect.fn(function* () {
46
46
  const pty = yield* Pty.Service;
47
47
  return yield* response2(pty.list());
@@ -17,17 +17,17 @@ import {
17
17
  CorsConfig2
18
18
  } from "./cors-q4bn6dy8.js";
19
19
  import {
20
- layer5
21
- } from "./cors-g0rzwe5g.js";
20
+ layer3
21
+ } from "./cors-ghk96rjy.js";
22
22
  import {
23
23
  node3
24
- } from "./cors-byt4hbw9.js";
24
+ } from "./cors-sstsrjtg.js";
25
25
  import {
26
26
  node2
27
- } from "./cors-bkk2wfbz.js";
27
+ } from "./cors-75c938bc.js";
28
28
  import {
29
29
  handlers2
30
- } from "./cors-yk6p4dkd.js";
30
+ } from "./cors-16tek5gb.js";
31
31
  import {
32
32
  authorizationLayer2
33
33
  } from "./cors-5ytyqf1q.js";
@@ -144,7 +144,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
144
144
  })) : build(overrides);
145
145
  return serviceLayer.pipe(Layer.flatMap((context) => {
146
146
  const services = Layer.succeedContext(context);
147
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer5(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
147
+ 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));
148
148
  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(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
149
149
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
150
150
  }));
@@ -7,12 +7,12 @@ 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: () => Service2,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer3,
15
- make: () => make4
14
+ layer: () => layer2,
15
+ make: () => make3
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
18
18
  import { Event } from "@opencode/schema/event";
@@ -30,14 +30,14 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
30
30
  }) {
31
31
  }
32
32
 
33
- class Service3 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)}
37
37
 
38
38
  `;
39
39
  }
40
- var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
40
+ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
41
41
  const capacity = options?.capacity ?? SubscriberCapacity2;
42
42
  const render = options?.encode ?? frame2;
43
43
  const subscribers = new Set;
@@ -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 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(Service3, Effect.gen(function* () {
78
+ var layer2 = Layer.effect(Service2, Effect.gen(function* () {
79
79
  const bus = yield* Bus.Service;
80
- return yield* make4(bus.listen);
80
+ return yield* make3(bus.listen);
81
81
  }));
82
82
 
83
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service3, frame2, make4, layer3, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make3, layer2, exports_event_feed };
@@ -2,9 +2,9 @@ import {
2
2
  Api2
3
3
  } from "./cors-h2a6nn7k.js";
4
4
  import {
5
- Service3,
5
+ Service2,
6
6
  frame2
7
- } from "./cors-rjpqaa8h.js";
7
+ } from "./cors-kmrabwkf.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/http";
13
13
  import { HttpApiBuilder } from "effect/http-api";
14
14
  var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
15
- const feed = yield* Service3;
15
+ const feed = yield* Service2;
16
16
  return handlers.handleRaw("event.subscribe", () => Effect.gen(function* () {
17
17
  const connected = {
18
18
  id: Event.ID.create(),
@@ -6,7 +6,7 @@ import {
6
6
  var exports_pairing = {};
7
7
  __export(exports_pairing, {
8
8
  ServerPairing: () => exports_pairing,
9
- Service: () => Service4,
9
+ Service: () => Service5,
10
10
  node: () => node3
11
11
  });
12
12
  import { Cache, Context, Duration, Effect, Layer } from "effect";
@@ -14,12 +14,12 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
14
14
  import { randomBytes } from "node:crypto";
15
15
  var TTL = Duration.minutes(5);
16
16
 
17
- class Service4 extends Context.Service()("@opencode/ServerPairing") {
17
+ class Service5 extends Context.Service()("@opencode/ServerPairing") {
18
18
  }
19
19
  var noLookup = () => Effect.die(new Error("ServerPairing cache must be used via set/invalidateWhen, never get"));
20
- var layer = Layer.effect(Service4, Effect.gen(function* () {
20
+ var layer = Layer.effect(Service5, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service4.of({
22
+ return Service5.of({
23
23
  issue: Effect.fn("ServerPairing.issue")(function* () {
24
24
  const code = randomBytes(16).toString("base64url");
25
25
  yield* Cache.set(cache, code, true);
@@ -30,6 +30,6 @@ var layer = Layer.effect(Service4, Effect.gen(function* () {
30
30
  })
31
31
  });
32
32
  }));
33
- var node3 = makeGlobalNode({ service: Service4, layer, deps: [] });
33
+ var node3 = makeGlobalNode({ service: Service5, layer, deps: [] });
34
34
 
35
- export { Service4, node3, exports_pairing };
35
+ export { Service5, node3, exports_pairing };
@@ -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: () => make2
9
+ make: () => make4
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make2 = Effect.fnUntraced(function* (options = {}) {
12
+ var make4 = 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 make2 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make2, exports_service_status };
23
+ export { make4, exports_service_status };
@@ -8,11 +8,11 @@ import {
8
8
  sessionCookieName2
9
9
  } from "./cors-anm12x33.js";
10
10
  import {
11
- Service5
12
- } from "./cors-g0rzwe5g.js";
11
+ Service3
12
+ } from "./cors-ghk96rjy.js";
13
13
  import {
14
- Service4
15
- } from "./cors-byt4hbw9.js";
14
+ Service5
15
+ } from "./cors-sstsrjtg.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* Service4;
24
+ const pairing = yield* Service5;
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,19 +2,19 @@ import {
2
2
  SubscriberCapacity2,
3
3
  SubscriberOverflowError2,
4
4
  EncodingError2,
5
- Service3,
5
+ Service2,
6
6
  frame2,
7
- make4,
8
- layer3,
7
+ make3,
8
+ layer2,
9
9
  exports_event_feed
10
- } from "./chunks/cors-rjpqaa8h.js";
10
+ } from "./chunks/cors-kmrabwkf.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,
14
- Service3 as Service,
14
+ Service2 as Service,
15
15
  SubscriberCapacity2 as SubscriberCapacity,
16
16
  SubscriberOverflowError2 as SubscriberOverflowError,
17
17
  frame2 as frame,
18
- layer3 as layer,
19
- make4 as make
18
+ layer2 as layer,
19
+ make3 as make
20
20
  };
package/dist/fetch.js CHANGED
@@ -1,54 +1,54 @@
1
1
  import {
2
- make3,
2
+ make2,
3
3
  exports_fetch
4
- } from "./chunks/cors-y1vwtgfh.js";
5
- import"./chunks/cors-1x5dvcb3.js";
6
- import"./chunks/cors-erzfdgke.js";
4
+ } from "./chunks/cors-e88d3d7f.js";
5
+ import"./chunks/cors-hz7d3per.js";
7
6
  import"./chunks/cors-5ytyqf1q.js";
8
- import"./chunks/cors-yk6p4dkd.js";
7
+ import"./chunks/cors-erzfdgke.js";
8
+ import"./chunks/cors-16tek5gb.js";
9
+ import"./chunks/cors-ysb51p4r.js";
10
+ import"./chunks/cors-360ay1ws.js";
11
+ import"./chunks/cors-13tvbs17.js";
12
+ import"./chunks/cors-gzx549bj.js";
13
+ import"./chunks/cors-44qh4kfc.js";
14
+ import"./chunks/cors-10bq7mg4.js";
15
+ import"./chunks/cors-735x1s0d.js";
16
+ import"./chunks/cors-8d0mn004.js";
9
17
  import"./chunks/cors-8cnxq26y.js";
10
- import"./chunks/cors-1tk2rec1.js";
11
- import"./chunks/cors-72xpy55t.js";
12
- import"./chunks/cors-0b39h07j.js";
13
- import"./chunks/cors-drahxf95.js";
14
- import"./chunks/cors-h6rt5k9s.js";
18
+ import"./chunks/cors-j03v2rh9.js";
15
19
  import"./chunks/cors-0q1fp77w.js";
16
- import"./chunks/cors-s1824482.js";
17
- import"./chunks/cors-4r8g7rwq.js";
18
- import"./chunks/cors-8d0mn004.js";
19
- import"./chunks/cors-qggsn6y0.js";
20
- import"./chunks/cors-73mn2n3x.js";
21
- import"./chunks/cors-10bq7mg4.js";
22
- import"./chunks/cors-p177e0cw.js";
23
- import"./chunks/cors-jphw74cq.js";
20
+ import"./chunks/cors-z31qr7z9.js";
21
+ import"./chunks/cors-00mapsdc.js";
22
+ import"./chunks/cors-0b39h07j.js";
24
23
  import"./chunks/cors-nqswsw3h.js";
25
24
  import"./chunks/cors-x5jn5rep.js";
26
- import"./chunks/cors-735x1s0d.js";
27
- import"./chunks/cors-tr76qvg4.js";
25
+ import"./chunks/cors-p7hhg8cx.js";
26
+ import"./chunks/cors-jphw74cq.js";
27
+ import"./chunks/cors-9e4rhycp.js";
28
+ import"./chunks/cors-73mn2n3x.js";
28
29
  import"./chunks/cors-19taf7de.js";
29
- import"./chunks/cors-360ay1ws.js";
30
- import"./chunks/cors-j03v2rh9.js";
31
- import"./chunks/cors-44qh4kfc.js";
32
- import"./chunks/cors-13tvbs17.js";
33
30
  import"./chunks/cors-ybxyv6z5.js";
34
- import"./chunks/cors-bwz286mg.js";
35
- import"./chunks/cors-ysb51p4r.js";
31
+ import"./chunks/cors-qggsn6y0.js";
32
+ import"./chunks/cors-m3ph2jkv.js";
33
+ import"./chunks/cors-tr76qvg4.js";
34
+ import"./chunks/cors-h6rt5k9s.js";
35
+ import"./chunks/cors-p177e0cw.js";
36
36
  import"./chunks/cors-f3xezvck.js";
37
- import"./chunks/cors-9e4rhycp.js";
38
- import"./chunks/cors-r5pmcrqb.js";
39
- import"./chunks/cors-00mapsdc.js";
40
- import"./chunks/cors-bkk2wfbz.js";
41
- import"./chunks/cors-rjpqaa8h.js";
37
+ import"./chunks/cors-s1824482.js";
38
+ import"./chunks/cors-bwz286mg.js";
39
+ import"./chunks/cors-4r8g7rwq.js";
40
+ import"./chunks/cors-kmrabwkf.js";
41
+ import"./chunks/cors-anm12x33.js";
42
+ import"./chunks/cors-q4bn6dy8.js";
43
+ import"./chunks/cors-ghk96rjy.js";
42
44
  import"./chunks/cors-h2a6nn7k.js";
43
45
  import"./chunks/cors-ty73jqxf.js";
44
46
  import"./chunks/cors-vw0q3knq.js";
45
47
  import"./chunks/cors-ywn523ee.js";
46
48
  import"./chunks/cors-smaf4a18.js";
47
- import"./chunks/cors-q4bn6dy8.js";
48
- import"./chunks/cors-anm12x33.js";
49
- import"./chunks/cors-byt4hbw9.js";
50
- import"./chunks/cors-g0rzwe5g.js";
49
+ import"./chunks/cors-75c938bc.js";
50
+ import"./chunks/cors-sstsrjtg.js";
51
51
  export {
52
52
  exports_fetch as ServerFetch,
53
- make3 as make
53
+ make2 as make
54
54
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EventHandler2
3
- } from "../chunks/cors-72xpy55t.js";
4
- import"../chunks/cors-rjpqaa8h.js";
3
+ } from "../chunks/cors-m3ph2jkv.js";
4
+ import"../chunks/cors-kmrabwkf.js";
5
5
  import"../chunks/cors-h2a6nn7k.js";
6
6
  import"../chunks/cors-ty73jqxf.js";
7
7
  import"../chunks/cors-vw0q3knq.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  PersistentPtyHandler2
3
- } from "../chunks/cors-drahxf95.js";
3
+ } from "../chunks/cors-p7hhg8cx.js";
4
4
  import"../chunks/cors-h6rt5k9s.js";
5
+ import"../chunks/cors-q4bn6dy8.js";
5
6
  import"../chunks/cors-h2a6nn7k.js";
6
7
  import"../chunks/cors-ty73jqxf.js";
7
8
  import"../chunks/cors-vw0q3knq.js";
8
9
  import"../chunks/cors-ywn523ee.js";
9
10
  import"../chunks/cors-smaf4a18.js";
10
- import"../chunks/cors-q4bn6dy8.js";
11
11
  export {
12
12
  PersistentPtyHandler2 as PersistentPtyHandler
13
13
  };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  PtyHandler2
3
- } from "../chunks/cors-1tk2rec1.js";
3
+ } from "../chunks/cors-gzx549bj.js";
4
4
  import"../chunks/cors-h6rt5k9s.js";
5
- import"../chunks/cors-bkk2wfbz.js";
5
+ import"../chunks/cors-q4bn6dy8.js";
6
6
  import"../chunks/cors-h2a6nn7k.js";
7
7
  import"../chunks/cors-ty73jqxf.js";
8
8
  import"../chunks/cors-vw0q3knq.js";
9
9
  import"../chunks/cors-ywn523ee.js";
10
10
  import"../chunks/cors-smaf4a18.js";
11
- import"../chunks/cors-q4bn6dy8.js";
11
+ import"../chunks/cors-75c938bc.js";
12
12
  export {
13
13
  PtyHandler2 as PtyHandler
14
14
  };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  ServerHandler2
3
- } from "../chunks/cors-r5pmcrqb.js";
3
+ } from "../chunks/cors-z31qr7z9.js";
4
+ import"../chunks/cors-anm12x33.js";
5
+ import"../chunks/cors-ghk96rjy.js";
4
6
  import"../chunks/cors-h2a6nn7k.js";
5
7
  import"../chunks/cors-ty73jqxf.js";
6
8
  import"../chunks/cors-vw0q3knq.js";
7
9
  import"../chunks/cors-ywn523ee.js";
8
10
  import"../chunks/cors-smaf4a18.js";
9
- import"../chunks/cors-anm12x33.js";
10
- import"../chunks/cors-byt4hbw9.js";
11
- import"../chunks/cors-g0rzwe5g.js";
11
+ import"../chunks/cors-sstsrjtg.js";
12
12
  export {
13
13
  ServerHandler2 as ServerHandler
14
14
  };
package/dist/handlers.js CHANGED
@@ -1,48 +1,48 @@
1
1
  import {
2
2
  handlers2
3
- } from "./chunks/cors-yk6p4dkd.js";
3
+ } from "./chunks/cors-16tek5gb.js";
4
+ import"./chunks/cors-ysb51p4r.js";
5
+ import"./chunks/cors-360ay1ws.js";
6
+ import"./chunks/cors-13tvbs17.js";
7
+ import"./chunks/cors-gzx549bj.js";
8
+ import"./chunks/cors-44qh4kfc.js";
9
+ import"./chunks/cors-10bq7mg4.js";
10
+ import"./chunks/cors-735x1s0d.js";
11
+ import"./chunks/cors-8d0mn004.js";
4
12
  import"./chunks/cors-8cnxq26y.js";
5
- import"./chunks/cors-1tk2rec1.js";
6
- import"./chunks/cors-72xpy55t.js";
7
- import"./chunks/cors-0b39h07j.js";
8
- import"./chunks/cors-drahxf95.js";
9
- import"./chunks/cors-h6rt5k9s.js";
13
+ import"./chunks/cors-j03v2rh9.js";
10
14
  import"./chunks/cors-0q1fp77w.js";
11
- import"./chunks/cors-s1824482.js";
12
- import"./chunks/cors-4r8g7rwq.js";
13
- import"./chunks/cors-8d0mn004.js";
14
- import"./chunks/cors-qggsn6y0.js";
15
- import"./chunks/cors-73mn2n3x.js";
16
- import"./chunks/cors-10bq7mg4.js";
17
- import"./chunks/cors-p177e0cw.js";
18
- import"./chunks/cors-jphw74cq.js";
15
+ import"./chunks/cors-z31qr7z9.js";
16
+ import"./chunks/cors-00mapsdc.js";
17
+ import"./chunks/cors-0b39h07j.js";
19
18
  import"./chunks/cors-nqswsw3h.js";
20
19
  import"./chunks/cors-x5jn5rep.js";
21
- import"./chunks/cors-735x1s0d.js";
22
- import"./chunks/cors-tr76qvg4.js";
20
+ import"./chunks/cors-p7hhg8cx.js";
21
+ import"./chunks/cors-jphw74cq.js";
22
+ import"./chunks/cors-9e4rhycp.js";
23
+ import"./chunks/cors-73mn2n3x.js";
23
24
  import"./chunks/cors-19taf7de.js";
24
- import"./chunks/cors-360ay1ws.js";
25
- import"./chunks/cors-j03v2rh9.js";
26
- import"./chunks/cors-44qh4kfc.js";
27
- import"./chunks/cors-13tvbs17.js";
28
25
  import"./chunks/cors-ybxyv6z5.js";
29
- import"./chunks/cors-bwz286mg.js";
30
- import"./chunks/cors-ysb51p4r.js";
26
+ import"./chunks/cors-qggsn6y0.js";
27
+ import"./chunks/cors-m3ph2jkv.js";
28
+ import"./chunks/cors-tr76qvg4.js";
29
+ import"./chunks/cors-h6rt5k9s.js";
30
+ import"./chunks/cors-p177e0cw.js";
31
31
  import"./chunks/cors-f3xezvck.js";
32
- import"./chunks/cors-9e4rhycp.js";
33
- import"./chunks/cors-r5pmcrqb.js";
34
- import"./chunks/cors-00mapsdc.js";
35
- import"./chunks/cors-bkk2wfbz.js";
36
- import"./chunks/cors-rjpqaa8h.js";
32
+ import"./chunks/cors-s1824482.js";
33
+ import"./chunks/cors-bwz286mg.js";
34
+ import"./chunks/cors-4r8g7rwq.js";
35
+ import"./chunks/cors-kmrabwkf.js";
36
+ import"./chunks/cors-anm12x33.js";
37
+ import"./chunks/cors-q4bn6dy8.js";
38
+ import"./chunks/cors-ghk96rjy.js";
37
39
  import"./chunks/cors-h2a6nn7k.js";
38
40
  import"./chunks/cors-ty73jqxf.js";
39
41
  import"./chunks/cors-vw0q3knq.js";
40
42
  import"./chunks/cors-ywn523ee.js";
41
43
  import"./chunks/cors-smaf4a18.js";
42
- import"./chunks/cors-q4bn6dy8.js";
43
- import"./chunks/cors-anm12x33.js";
44
- import"./chunks/cors-byt4hbw9.js";
45
- import"./chunks/cors-g0rzwe5g.js";
44
+ import"./chunks/cors-75c938bc.js";
45
+ import"./chunks/cors-sstsrjtg.js";
46
46
  export {
47
47
  handlers2 as handlers
48
48
  };
package/dist/pairing.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
- Service4,
2
+ Service5,
3
3
  node3,
4
4
  exports_pairing
5
- } from "./chunks/cors-byt4hbw9.js";
5
+ } from "./chunks/cors-sstsrjtg.js";
6
6
  export {
7
7
  exports_pairing as ServerPairing,
8
- Service4 as Service,
8
+ Service5 as Service,
9
9
  node3 as node
10
10
  };
package/dist/process.js CHANGED
@@ -27,20 +27,20 @@ import"./chunks/cors-4r8g7rwq.js";
27
27
  import"./chunks/cors-8cnxq26y.js";
28
28
  import"./chunks/cors-j03v2rh9.js";
29
29
  import"./chunks/cors-10bq7mg4.js";
30
- import"./chunks/cors-rjpqaa8h.js";
31
- import"./chunks/cors-72xpy55t.js";
30
+ import"./chunks/cors-kmrabwkf.js";
31
+ import"./chunks/cors-m3ph2jkv.js";
32
32
  import"./chunks/cors-jphw74cq.js";
33
33
  import"./chunks/cors-735x1s0d.js";
34
34
  import {
35
35
  connectionURLs2
36
- } from "./chunks/cors-g0rzwe5g.js";
37
- import"./chunks/cors-byt4hbw9.js";
38
- import"./chunks/cors-r5pmcrqb.js";
36
+ } from "./chunks/cors-ghk96rjy.js";
37
+ import"./chunks/cors-sstsrjtg.js";
38
+ import"./chunks/cors-z31qr7z9.js";
39
39
  import"./chunks/cors-f3xezvck.js";
40
- import"./chunks/cors-bkk2wfbz.js";
40
+ import"./chunks/cors-75c938bc.js";
41
41
  import"./chunks/cors-h6rt5k9s.js";
42
- import"./chunks/cors-1tk2rec1.js";
43
- import"./chunks/cors-drahxf95.js";
42
+ import"./chunks/cors-gzx549bj.js";
43
+ import"./chunks/cors-p7hhg8cx.js";
44
44
  import"./chunks/cors-qggsn6y0.js";
45
45
  import"./chunks/cors-ysb51p4r.js";
46
46
  import"./chunks/cors-0q1fp77w.js";
@@ -53,14 +53,14 @@ import"./chunks/cors-tr76qvg4.js";
53
53
  import"./chunks/cors-nqswsw3h.js";
54
54
  import"./chunks/cors-ybxyv6z5.js";
55
55
  import"./chunks/cors-0b39h07j.js";
56
- import"./chunks/cors-yk6p4dkd.js";
56
+ import"./chunks/cors-16tek5gb.js";
57
57
  import"./chunks/cors-erzfdgke.js";
58
58
  import {
59
59
  createRoutes2
60
- } from "./chunks/cors-1x5dvcb3.js";
60
+ } from "./chunks/cors-hz7d3per.js";
61
61
  import {
62
- make2
63
- } from "./chunks/cors-xsrtpxyd.js";
62
+ make4
63
+ } from "./chunks/cors-vpz7f20y.js";
64
64
  import {
65
65
  __export
66
66
  } from "./chunks/cors-9rqn6x4v.js";
@@ -90,7 +90,7 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
90
90
  const hostname = options.hostname ?? "127.0.0.1";
91
91
  const port = Option.fromNullishOr(options.port);
92
92
  const shutdown = yield* Latch.make();
93
- const status = yield* make2();
93
+ const status = yield* make4();
94
94
  const bound = yield* listen({ hostname, port });
95
95
  const localURLs = () => {
96
96
  const address = bound.server.address();
@@ -1,12 +1,12 @@
1
1
  import {
2
- Service2,
3
- layer2,
2
+ Service4,
3
+ layer5,
4
4
  node2,
5
5
  exports_pty_environment
6
- } from "./chunks/cors-bkk2wfbz.js";
6
+ } from "./chunks/cors-75c938bc.js";
7
7
  export {
8
8
  exports_pty_environment as PtyEnvironment,
9
- Service2 as Service,
10
- layer2 as layer,
9
+ Service4 as Service,
10
+ layer5 as layer,
11
11
  node2 as node
12
12
  };
package/dist/routes.js CHANGED
@@ -1,52 +1,52 @@
1
1
  import {
2
2
  createRoutes2,
3
3
  createEmbeddedRoutes2
4
- } from "./chunks/cors-1x5dvcb3.js";
5
- import"./chunks/cors-erzfdgke.js";
4
+ } from "./chunks/cors-hz7d3per.js";
6
5
  import"./chunks/cors-5ytyqf1q.js";
7
- import"./chunks/cors-yk6p4dkd.js";
6
+ import"./chunks/cors-erzfdgke.js";
7
+ import"./chunks/cors-16tek5gb.js";
8
+ import"./chunks/cors-ysb51p4r.js";
9
+ import"./chunks/cors-360ay1ws.js";
10
+ import"./chunks/cors-13tvbs17.js";
11
+ import"./chunks/cors-gzx549bj.js";
12
+ import"./chunks/cors-44qh4kfc.js";
13
+ import"./chunks/cors-10bq7mg4.js";
14
+ import"./chunks/cors-735x1s0d.js";
15
+ import"./chunks/cors-8d0mn004.js";
8
16
  import"./chunks/cors-8cnxq26y.js";
9
- import"./chunks/cors-1tk2rec1.js";
10
- import"./chunks/cors-72xpy55t.js";
11
- import"./chunks/cors-0b39h07j.js";
12
- import"./chunks/cors-drahxf95.js";
13
- import"./chunks/cors-h6rt5k9s.js";
17
+ import"./chunks/cors-j03v2rh9.js";
14
18
  import"./chunks/cors-0q1fp77w.js";
15
- import"./chunks/cors-s1824482.js";
16
- import"./chunks/cors-4r8g7rwq.js";
17
- import"./chunks/cors-8d0mn004.js";
18
- import"./chunks/cors-qggsn6y0.js";
19
- import"./chunks/cors-73mn2n3x.js";
20
- import"./chunks/cors-10bq7mg4.js";
21
- import"./chunks/cors-p177e0cw.js";
22
- import"./chunks/cors-jphw74cq.js";
19
+ import"./chunks/cors-z31qr7z9.js";
20
+ import"./chunks/cors-00mapsdc.js";
21
+ import"./chunks/cors-0b39h07j.js";
23
22
  import"./chunks/cors-nqswsw3h.js";
24
23
  import"./chunks/cors-x5jn5rep.js";
25
- import"./chunks/cors-735x1s0d.js";
26
- import"./chunks/cors-tr76qvg4.js";
24
+ import"./chunks/cors-p7hhg8cx.js";
25
+ import"./chunks/cors-jphw74cq.js";
26
+ import"./chunks/cors-9e4rhycp.js";
27
+ import"./chunks/cors-73mn2n3x.js";
27
28
  import"./chunks/cors-19taf7de.js";
28
- import"./chunks/cors-360ay1ws.js";
29
- import"./chunks/cors-j03v2rh9.js";
30
- import"./chunks/cors-44qh4kfc.js";
31
- import"./chunks/cors-13tvbs17.js";
32
29
  import"./chunks/cors-ybxyv6z5.js";
33
- import"./chunks/cors-bwz286mg.js";
34
- import"./chunks/cors-ysb51p4r.js";
30
+ import"./chunks/cors-qggsn6y0.js";
31
+ import"./chunks/cors-m3ph2jkv.js";
32
+ import"./chunks/cors-tr76qvg4.js";
33
+ import"./chunks/cors-h6rt5k9s.js";
34
+ import"./chunks/cors-p177e0cw.js";
35
35
  import"./chunks/cors-f3xezvck.js";
36
- import"./chunks/cors-9e4rhycp.js";
37
- import"./chunks/cors-r5pmcrqb.js";
38
- import"./chunks/cors-00mapsdc.js";
39
- import"./chunks/cors-bkk2wfbz.js";
40
- import"./chunks/cors-rjpqaa8h.js";
36
+ import"./chunks/cors-s1824482.js";
37
+ import"./chunks/cors-bwz286mg.js";
38
+ import"./chunks/cors-4r8g7rwq.js";
39
+ import"./chunks/cors-kmrabwkf.js";
40
+ import"./chunks/cors-anm12x33.js";
41
+ import"./chunks/cors-q4bn6dy8.js";
42
+ import"./chunks/cors-ghk96rjy.js";
41
43
  import"./chunks/cors-h2a6nn7k.js";
42
44
  import"./chunks/cors-ty73jqxf.js";
43
45
  import"./chunks/cors-vw0q3knq.js";
44
46
  import"./chunks/cors-ywn523ee.js";
45
47
  import"./chunks/cors-smaf4a18.js";
46
- import"./chunks/cors-q4bn6dy8.js";
47
- import"./chunks/cors-anm12x33.js";
48
- import"./chunks/cors-byt4hbw9.js";
49
- import"./chunks/cors-g0rzwe5g.js";
48
+ import"./chunks/cors-75c938bc.js";
49
+ import"./chunks/cors-sstsrjtg.js";
50
50
  export {
51
51
  createEmbeddedRoutes2 as createEmbeddedRoutes,
52
52
  createRoutes2 as createRoutes
@@ -1,12 +1,12 @@
1
1
  import {
2
- Service5,
3
- layer5,
2
+ Service3,
3
+ layer3,
4
4
  connectionURLs2,
5
5
  exports_server_info
6
- } from "./chunks/cors-g0rzwe5g.js";
6
+ } from "./chunks/cors-ghk96rjy.js";
7
7
  export {
8
8
  exports_server_info as ServerInfo,
9
- Service5 as Service,
9
+ Service3 as Service,
10
10
  connectionURLs2 as connectionURLs,
11
- layer5 as layer
11
+ layer3 as layer
12
12
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
- make2,
2
+ make4,
3
3
  exports_service_status
4
- } from "./chunks/cors-xsrtpxyd.js";
4
+ } from "./chunks/cors-vpz7f20y.js";
5
5
  export {
6
6
  exports_service_status as Status,
7
- make2 as make
7
+ make4 as make
8
8
  };
package/dist/workerd.js CHANGED
@@ -16,18 +16,18 @@ import"./chunks/cors-4r8g7rwq.js";
16
16
  import"./chunks/cors-8cnxq26y.js";
17
17
  import"./chunks/cors-j03v2rh9.js";
18
18
  import"./chunks/cors-10bq7mg4.js";
19
- import"./chunks/cors-rjpqaa8h.js";
20
- import"./chunks/cors-72xpy55t.js";
19
+ import"./chunks/cors-kmrabwkf.js";
20
+ import"./chunks/cors-m3ph2jkv.js";
21
21
  import"./chunks/cors-jphw74cq.js";
22
22
  import"./chunks/cors-735x1s0d.js";
23
- import"./chunks/cors-g0rzwe5g.js";
24
- import"./chunks/cors-byt4hbw9.js";
25
- import"./chunks/cors-r5pmcrqb.js";
23
+ import"./chunks/cors-ghk96rjy.js";
24
+ import"./chunks/cors-sstsrjtg.js";
25
+ import"./chunks/cors-z31qr7z9.js";
26
26
  import"./chunks/cors-f3xezvck.js";
27
- import"./chunks/cors-bkk2wfbz.js";
27
+ import"./chunks/cors-75c938bc.js";
28
28
  import"./chunks/cors-h6rt5k9s.js";
29
- import"./chunks/cors-1tk2rec1.js";
30
- import"./chunks/cors-drahxf95.js";
29
+ import"./chunks/cors-gzx549bj.js";
30
+ import"./chunks/cors-p7hhg8cx.js";
31
31
  import"./chunks/cors-qggsn6y0.js";
32
32
  import"./chunks/cors-ysb51p4r.js";
33
33
  import"./chunks/cors-0q1fp77w.js";
@@ -40,13 +40,13 @@ import"./chunks/cors-tr76qvg4.js";
40
40
  import"./chunks/cors-nqswsw3h.js";
41
41
  import"./chunks/cors-ybxyv6z5.js";
42
42
  import"./chunks/cors-0b39h07j.js";
43
- import"./chunks/cors-yk6p4dkd.js";
43
+ import"./chunks/cors-16tek5gb.js";
44
44
  import"./chunks/cors-5ytyqf1q.js";
45
45
  import"./chunks/cors-erzfdgke.js";
46
- import"./chunks/cors-1x5dvcb3.js";
46
+ import"./chunks/cors-hz7d3per.js";
47
47
  import {
48
- make3
49
- } from "./chunks/cors-y1vwtgfh.js";
48
+ make2
49
+ } from "./chunks/cors-e88d3d7f.js";
50
50
  import {
51
51
  __export
52
52
  } from "./chunks/cors-9rqn6x4v.js";
@@ -71,7 +71,7 @@ import { Snapshot } from "@opencode/core/snapshot";
71
71
  import { Vcs } from "@opencode/core/vcs";
72
72
  import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
73
73
  function create(options) {
74
- return make3(serverOptions(options), { overrides: replacements(options) });
74
+ return make2(serverOptions(options), { overrides: replacements(options) });
75
75
  }
76
76
  function serverOptions(options) {
77
77
  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-20786",
4
+ "version": "0.0.0-dev-20788",
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.118",
32
32
  "@effect/platform-node-shared": "4.0.0-rc.118",
33
- "@opencode/core": "0.0.0-dev-20786",
34
- "@opencode/protocol": "0.0.0-dev-20786",
35
- "@opencode/schema": "0.0.0-dev-20786",
36
- "@opencode/simulation": "0.0.0-dev-20786",
37
- "@opencode/util": "0.0.0-dev-20786",
33
+ "@opencode/core": "0.0.0-dev-20788",
34
+ "@opencode/protocol": "0.0.0-dev-20788",
35
+ "@opencode/schema": "0.0.0-dev-20788",
36
+ "@opencode/simulation": "0.0.0-dev-20788",
37
+ "@opencode/util": "0.0.0-dev-20788",
38
38
  "effect": "4.0.0-rc.118"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@opencode-ai/pty": "0.2.0",
42
- "@opencode/client": "0.0.0-dev-20786",
43
- "@opencode/plugin": "0.0.0-dev-20786",
42
+ "@opencode/client": "0.0.0-dev-20788",
43
+ "@opencode/plugin": "0.0.0-dev-20788",
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",