@opencode/server 2.0.31 → 2.1.0

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 (145) hide show
  1. package/dist/api.d.ts +1994 -1968
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{location-gb66h69v.js → service-status-026wrard.js} +3 -3
  5. package/dist/chunks/{location-98r9ymd0.js → service-status-10jzh2zk.js} +6 -34
  6. package/dist/chunks/{location-1ahadpvw.js → service-status-1ahadpvw.js} +1 -1
  7. package/dist/chunks/{location-wtxh433d.js → service-status-2s3n8phw.js} +2 -2
  8. package/dist/chunks/{location-qtxsbn9t.js → service-status-3j8kyrsr.js} +5 -5
  9. package/dist/chunks/{location-19dc7z8q.js → service-status-4vaqgjp8.js} +2 -2
  10. package/dist/chunks/{location-0m09ryg3.js → service-status-56rkpa1p.js} +2 -2
  11. package/dist/chunks/{location-6kta5392.js → service-status-5bchp9s2.js} +2 -2
  12. package/dist/chunks/{location-xsrtpxyd.js → service-status-5w24ch67.js} +4 -4
  13. package/dist/chunks/{location-rmttg9h7.js → service-status-7q8ata5b.js} +1 -1
  14. package/dist/chunks/{location-sq0m2new.js → service-status-9h3s5d39.js} +18 -4
  15. package/dist/chunks/{location-67kmywtk.js → service-status-aajxxgqb.js} +2 -2
  16. package/dist/chunks/{location-anm12x33.js → service-status-anm12x33.js} +1 -1
  17. package/dist/chunks/{location-gv2dqana.js → service-status-dc18tjnc.js} +3 -3
  18. package/dist/chunks/{location-v1jdrp9c.js → service-status-e2cx9grb.js} +1 -1
  19. package/dist/chunks/{location-atk2et4d.js → service-status-g0g9ma1m.js} +2 -2
  20. package/dist/chunks/{location-6t8za67t.js → service-status-g1bp01xw.js} +2 -2
  21. package/dist/chunks/{location-gqq6kfhc.js → service-status-gqq6kfhc.js} +1 -1
  22. package/dist/chunks/service-status-h29z6nze.js +102 -0
  23. package/dist/chunks/{location-vtvdbwhg.js → service-status-hxgz4x38.js} +2 -2
  24. package/dist/chunks/{location-nvdz1s2r.js → service-status-j3626vk8.js} +2 -2
  25. package/dist/chunks/{location-hspp8v12.js → service-status-j66ekhc9.js} +2 -2
  26. package/dist/chunks/{location-c6kb7fmf.js → service-status-k7wggcq2.js} +5 -5
  27. package/dist/chunks/{location-4cq5wmr6.js → service-status-kmgak63h.js} +12 -12
  28. package/dist/chunks/{location-m0y4004e.js → service-status-ksvmmk2r.js} +1 -1
  29. package/dist/chunks/{location-pxdkane5.js → service-status-n3hqkreg.js} +2 -2
  30. package/dist/chunks/{location-d0efjmp3.js → service-status-n9y13hgv.js} +6 -6
  31. package/dist/chunks/{location-q8cqvm6j.js → service-status-nmcxqxxx.js} +2 -2
  32. package/dist/chunks/{location-6br0y3ag.js → service-status-qbrxhger.js} +1 -1
  33. package/dist/chunks/{location-x6486bry.js → service-status-rbn15j6z.js} +7 -7
  34. package/dist/chunks/{location-77mqkxfz.js → service-status-rrf9gkkq.js} +2 -2
  35. package/dist/chunks/service-status-rys6nden.js +30 -0
  36. package/dist/chunks/{location-aqzwjzmb.js → service-status-scq1j2yg.js} +1 -1
  37. package/dist/chunks/{location-j8p25vmv.js → service-status-t7dxwnb0.js} +2 -2
  38. package/dist/chunks/{location-xrd0qdqf.js → service-status-tefn0j7n.js} +8 -8
  39. package/dist/chunks/{location-74sf36cc.js → service-status-vg73xc24.js} +1 -1
  40. package/dist/chunks/{location-xxxx0904.js → service-status-vkgak0vv.js} +2 -2
  41. package/dist/chunks/{location-1r4kjxf0.js → service-status-vrkptjpq.js} +6 -6
  42. package/dist/chunks/{location-wf9nh8mj.js → service-status-vy0x6yc6.js} +4 -4
  43. package/dist/chunks/{location-wv5twc2g.js → service-status-wv5twc2g.js} +1 -1
  44. package/dist/chunks/{location-ej45n981.js → service-status-xt7xrv1r.js} +2 -2
  45. package/dist/chunks/{location-cqhyyp3f.js → service-status-y7p3rgqn.js} +2 -2
  46. package/dist/chunks/{location-yet0vexm.js → service-status-yet0vexm.js} +1 -1
  47. package/dist/chunks/{location-yfz2nrjq.js → service-status-yfz2nrjq.js} +1 -1
  48. package/dist/chunks/{location-gv627jgt.js → service-status-zfjz2b4g.js} +1 -1
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +3 -3
  51. package/dist/fetch.d.ts +26 -26
  52. package/dist/fetch.js +50 -49
  53. package/dist/handlers/agent.d.ts +1 -1
  54. package/dist/handlers/agent.js +6 -6
  55. package/dist/handlers/command.d.ts +1 -1
  56. package/dist/handlers/command.js +6 -6
  57. package/dist/handlers/config.d.ts +1 -1
  58. package/dist/handlers/config.js +6 -6
  59. package/dist/handlers/credential.d.ts +1 -1
  60. package/dist/handlers/credential.js +6 -6
  61. package/dist/handlers/debug.d.ts +1 -1
  62. package/dist/handlers/debug.js +6 -6
  63. package/dist/handlers/event.d.ts +1 -1
  64. package/dist/handlers/event.js +7 -7
  65. package/dist/handlers/form.d.ts +1 -1
  66. package/dist/handlers/form.js +6 -6
  67. package/dist/handlers/fs.d.ts +1 -1
  68. package/dist/handlers/fs.js +6 -6
  69. package/dist/handlers/generate.d.ts +1 -1
  70. package/dist/handlers/generate.js +6 -6
  71. package/dist/handlers/integration.d.ts +1 -1
  72. package/dist/handlers/integration.js +6 -6
  73. package/dist/handlers/location.d.ts +1 -1
  74. package/dist/handlers/location.js +6 -6
  75. package/dist/handlers/mcp.d.ts +1 -1
  76. package/dist/handlers/mcp.js +6 -6
  77. package/dist/handlers/message.d.ts +1 -1
  78. package/dist/handlers/message.js +6 -6
  79. package/dist/handlers/migration.d.ts +1 -1
  80. package/dist/handlers/migration.js +6 -6
  81. package/dist/handlers/model.d.ts +1 -1
  82. package/dist/handlers/model.js +6 -6
  83. package/dist/handlers/permission.d.ts +1 -1
  84. package/dist/handlers/permission.js +6 -6
  85. package/dist/handlers/persistent-pty.d.ts +1 -1
  86. package/dist/handlers/persistent-pty.js +8 -8
  87. package/dist/handlers/plugin.d.ts +1 -1
  88. package/dist/handlers/plugin.js +6 -6
  89. package/dist/handlers/project.d.ts +1 -1
  90. package/dist/handlers/project.js +6 -6
  91. package/dist/handlers/provider.d.ts +1 -1
  92. package/dist/handlers/provider.js +6 -6
  93. package/dist/handlers/pty-socket.d.ts +1 -1
  94. package/dist/handlers/pty-socket.js +1 -1
  95. package/dist/handlers/pty.d.ts +1 -1
  96. package/dist/handlers/pty.js +9 -9
  97. package/dist/handlers/reference.d.ts +1 -1
  98. package/dist/handlers/reference.js +6 -6
  99. package/dist/handlers/rpc.d.ts +1 -1
  100. package/dist/handlers/rpc.js +6 -6
  101. package/dist/handlers/server.d.ts +1 -1
  102. package/dist/handlers/server.js +9 -9
  103. package/dist/handlers/session-error.js +1 -1
  104. package/dist/handlers/session.d.ts +1 -1
  105. package/dist/handlers/session.js +6 -6
  106. package/dist/handlers/shell.d.ts +1 -1
  107. package/dist/handlers/shell.js +6 -6
  108. package/dist/handlers/skill.d.ts +1 -1
  109. package/dist/handlers/skill.js +6 -6
  110. package/dist/handlers/vcs.d.ts +1 -1
  111. package/dist/handlers/vcs.js +6 -6
  112. package/dist/handlers/voice.d.ts +3 -0
  113. package/dist/handlers/voice.js +11 -0
  114. package/dist/handlers/websearch.d.ts +1 -1
  115. package/dist/handlers/websearch.js +6 -6
  116. package/dist/handlers/worktree.d.ts +1 -1
  117. package/dist/handlers/worktree.js +6 -6
  118. package/dist/handlers.d.ts +1 -1
  119. package/dist/handlers.js +44 -43
  120. package/dist/location.d.ts +1 -1
  121. package/dist/location.js +2 -2
  122. package/dist/middleware/authorization.js +2 -2
  123. package/dist/middleware/form-location.d.ts +1 -1
  124. package/dist/middleware/form-location.js +3 -3
  125. package/dist/middleware/schema-error.js +1 -1
  126. package/dist/middleware/session-location.d.ts +1 -1
  127. package/dist/middleware/session-location.js +3 -3
  128. package/dist/pairing.js +3 -3
  129. package/dist/process.d.ts +27 -27
  130. package/dist/process.js +52 -51
  131. package/dist/pty-environment.js +1 -1
  132. package/dist/request-tracing.js +1 -1
  133. package/dist/routes.d.ts +2 -2
  134. package/dist/routes.js +47 -46
  135. package/dist/server-info.js +3 -3
  136. package/dist/service-status.js +3 -3
  137. package/dist/workerd.js +51 -50
  138. package/package.json +11 -11
  139. package/dist/chunks/location-vxv1mn6h.js +0 -99
  140. /package/dist/chunks/{location-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
  141. /package/dist/chunks/{location-erzfdgke.js → service-status-erzfdgke.js} +0 -0
  142. /package/dist/chunks/{location-h6rt5k9s.js → service-status-h6rt5k9s.js} +0 -0
  143. /package/dist/chunks/{location-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
  144. /package/dist/chunks/{location-smaf4a18.js → service-status-smaf4a18.js} +0 -0
  145. /package/dist/chunks/{location-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  __export
3
- } from "./location-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service3,
10
+ Service: () => Service4,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
@@ -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 layer4 = 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, layer4, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer4, exports_event_feed };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./location-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./location-gb66h69v.js";
6
+ } from "./service-status-026wrard.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./location-gb66h69v.js";
3
+ } from "./service-status-026wrard.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./location-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/pairing.ts
6
6
  var exports_pairing = {};
7
7
  __export(exports_pairing, {
8
8
  ServerPairing: () => exports_pairing,
9
- Service: () => Service4,
9
+ Service: () => Service2,
10
10
  node: () => node2
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 Service2 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(Service2, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service4.of({
22
+ return Service2.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 node2 = makeGlobalNode({ service: Service4, layer, deps: [] });
33
+ var node2 = makeGlobalNode({ service: Service2, layer, deps: [] });
34
34
 
35
- export { Service4, node2, exports_pairing };
35
+ export { Service2, node2, exports_pairing };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./location-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./location-gb66h69v.js";
6
+ } from "./service-status-026wrard.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -0,0 +1,30 @@
1
+ import {
2
+ locationErrors2,
3
+ awaitPlugins2
4
+ } from "./service-status-gqq6kfhc.js";
5
+ import {
6
+ Api2
7
+ } from "./service-status-026wrard.js";
8
+
9
+ // src/handlers/voice.ts
10
+ import { Location } from "@opencode/core/location";
11
+ import { LocationServiceMap } from "@opencode/core/location-services";
12
+ import { AbsolutePath } from "@opencode/core/schema";
13
+ import { Voice } from "@opencode/core/voice";
14
+ import { InvalidRequestError, ServiceUnavailableError } from "@opencode/protocol/errors";
15
+ import { Global } from "@opencode/util/global";
16
+ import { Effect } from "effect";
17
+ import { HttpApiBuilder } from "effect/http-api";
18
+ var VoiceHandler2 = HttpApiBuilder.group(Api2, "server.voice", (handlers) => Effect.gen(function* () {
19
+ const global = yield* Global.Service;
20
+ const locations = yield* LocationServiceMap.Service;
21
+ const services = locations.get(Location.Ref.make({ directory: AbsolutePath.make(global.config) }));
22
+ return handlers.handle("voice.session", Effect.fn("server.voice.session")(function* (request) {
23
+ yield* awaitPlugins2;
24
+ const voice = yield* Voice.Service;
25
+ const transport = yield* voice.session(request.payload).pipe(Effect.mapError((error) => error._tag === "Voice.InvalidRequestError" ? new InvalidRequestError({ message: error.message }) : new ServiceUnavailableError({ message: error.message, service: error.service })));
26
+ return { data: { transport } };
27
+ }, Effect.provide(services), locationErrors2));
28
+ }));
29
+
30
+ export { VoiceHandler2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./location-gb66h69v.js";
3
+ } from "./service-status-026wrard.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./location-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./location-gb66h69v.js";
7
+ } from "./service-status-026wrard.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./location-gb66h69v.js";
3
+ } from "./service-status-026wrard.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./location-anm12x33.js";
9
+ } from "./service-status-anm12x33.js";
10
10
  import {
11
- Service2
12
- } from "./location-c6kb7fmf.js";
11
+ Service3
12
+ } from "./service-status-k7wggcq2.js";
13
13
  import {
14
- Service4
15
- } from "./location-x6486bry.js";
14
+ Service2
15
+ } from "./service-status-rbn15j6z.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* Service2;
25
25
  const auth = yield* Config2;
26
26
  return handlers.handle("server.info", () => Effect.gen(function* () {
27
- const info = yield* Service2;
27
+ const info = yield* Service3;
28
28
  return {
29
29
  version: info.app.version ?? "unknown",
30
30
  pid: process.pid ?? 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./location-gb66h69v.js";
3
+ } from "./service-status-026wrard.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./location-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./location-gb66h69v.js";
7
+ } from "./service-status-026wrard.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./location-q4bn6dy8.js";
3
+ } from "./service-status-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./location-4cq5wmr6.js";
6
+ } from "./service-status-kmgak63h.js";
7
7
  import {
8
8
  __export
9
- } from "./location-9rqn6x4v.js";
9
+ } from "./service-status-9rqn6x4v.js";
10
10
 
11
11
  // src/fetch.ts
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 };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./location-gb66h69v.js";
3
+ } from "./service-status-026wrard.js";
4
4
  import {
5
- Service3,
5
+ Service4,
6
6
  frame2
7
- } from "./location-d0efjmp3.js";
7
+ } from "./service-status-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/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* Service4;
16
16
  return handlers.handleRaw("event.subscribe", () => Effect.gen(function* () {
17
17
  const connected = {
18
18
  id: Event.ID.create(),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./location-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/pty-environment.ts
6
6
  var exports_pty_environment = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./location-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./location-gb66h69v.js";
6
+ } from "./service-status-026wrard.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./location-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./location-gb66h69v.js";
6
+ } from "./service-status-026wrard.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./location-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./location-anm12x33.js";
7
+ } from "./service-status-anm12x33.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./location-gb66h69v.js";
3
+ } from "./service-status-026wrard.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
package/dist/cors.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CorsConfig2,
3
3
  isAllowedCorsOrigin2,
4
4
  isAllowedRequestOrigin2
5
- } from "./chunks/location-q4bn6dy8.js";
5
+ } from "./chunks/service-status-q4bn6dy8.js";
6
6
  export {
7
7
  CorsConfig2 as CorsConfig,
8
8
  isAllowedCorsOrigin2 as isAllowedCorsOrigin,
@@ -2,16 +2,16 @@ import {
2
2
  SubscriberCapacity2,
3
3
  SubscriberOverflowError2,
4
4
  EncodingError2,
5
- Service3,
5
+ Service4,
6
6
  frame2,
7
7
  make4,
8
8
  layer4,
9
9
  exports_event_feed
10
- } from "./chunks/location-d0efjmp3.js";
10
+ } from "./chunks/service-status-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,
package/dist/fetch.d.ts CHANGED
@@ -31,49 +31,49 @@ export interface BootOptions {
31
31
  * next boot, and the sweep is a no-op when nothing is suspended.
32
32
  */
33
33
  export declare const make: (options?: {
34
- readonly models?: {
35
- readonly url?: string | undefined;
36
- readonly file?: string | undefined;
37
- readonly snapshot?: boolean | undefined;
38
- readonly fetch?: boolean | undefined;
34
+ readonly app?: {
35
+ readonly name?: string | undefined;
36
+ readonly version?: string | undefined;
37
+ readonly channel?: string | undefined;
39
38
  } | undefined;
40
- readonly events?: {
41
- readonly persist?: boolean | undefined;
39
+ readonly hostname?: string | undefined;
40
+ readonly port?: number | undefined;
41
+ readonly password?: string | undefined;
42
+ readonly cors?: readonly string[] | undefined;
43
+ readonly simulation?: boolean | undefined;
44
+ readonly database?: {
45
+ readonly path?: string | undefined;
42
46
  } | undefined;
43
47
  readonly pty?: {
44
- readonly root?: string | undefined;
45
48
  readonly handoff?: {
46
49
  readonly directory: string;
47
50
  readonly instanceID: string;
48
51
  readonly ticket: string;
49
52
  readonly expiresAt: number;
50
53
  } | undefined;
54
+ readonly root?: string | undefined;
55
+ } | undefined;
56
+ readonly events?: {
57
+ readonly persist?: boolean | undefined;
58
+ } | undefined;
59
+ readonly models?: {
60
+ readonly url?: string | undefined;
61
+ readonly file?: string | undefined;
62
+ readonly fetch?: boolean | undefined;
63
+ readonly snapshot?: boolean | undefined;
51
64
  } | undefined;
52
65
  readonly config?: {
53
66
  readonly directory?: string | undefined;
54
67
  readonly project?: boolean | undefined;
55
- readonly content?: string | undefined;
56
- readonly file?: string | undefined;
57
68
  readonly claude?: boolean | undefined;
69
+ readonly file?: string | undefined;
70
+ readonly content?: string | undefined;
58
71
  } | undefined;
59
- readonly port?: number | undefined;
60
- readonly fs?: {
61
- readonly fff?: boolean | undefined;
62
- readonly filewatcher?: boolean | undefined;
63
- } | undefined;
64
- readonly hostname?: string | undefined;
65
- readonly cors?: readonly string[] | undefined;
66
72
  readonly windows?: {
67
73
  readonly gitbash?: string | undefined;
68
74
  } | undefined;
69
- readonly password?: string | undefined;
70
- readonly app?: {
71
- readonly version?: string | undefined;
72
- readonly name?: string | undefined;
73
- readonly channel?: string | undefined;
74
- } | undefined;
75
- readonly simulation?: boolean | undefined;
76
- readonly database?: {
77
- readonly path?: string | undefined;
75
+ readonly fs?: {
76
+ readonly filewatcher?: boolean | undefined;
77
+ readonly fff?: boolean | undefined;
78
78
  } | undefined;
79
79
  } | undefined, boot?: BootOptions | undefined) => Effect.Effect<(request: Request, context?: Context.Context<never> | undefined) => Promise<globalThis.Response>, Error, import("effect/Scope").Scope>;
package/dist/fetch.js CHANGED
@@ -1,54 +1,55 @@
1
1
  import {
2
- make3,
2
+ make2,
3
3
  exports_fetch
4
- } from "./chunks/location-1r4kjxf0.js";
5
- import"./chunks/location-4cq5wmr6.js";
6
- import"./chunks/location-yfz2nrjq.js";
7
- import"./chunks/location-erzfdgke.js";
8
- import"./chunks/location-vxv1mn6h.js";
9
- import"./chunks/location-sq0m2new.js";
10
- import"./chunks/location-qtxsbn9t.js";
11
- import"./chunks/location-74sf36cc.js";
12
- import"./chunks/location-q8cqvm6j.js";
13
- import"./chunks/location-m0y4004e.js";
14
- import"./chunks/location-98r9ymd0.js";
15
- import"./chunks/location-6kta5392.js";
16
- import"./chunks/location-0m09ryg3.js";
17
- import"./chunks/location-ej45n981.js";
18
- import"./chunks/location-wf9nh8mj.js";
19
- import"./chunks/location-xrd0qdqf.js";
20
- import"./chunks/location-vtvdbwhg.js";
21
- import"./chunks/location-xxxx0904.js";
22
- import"./chunks/location-pxdkane5.js";
23
- import"./chunks/location-gv2dqana.js";
24
- import"./chunks/location-h6rt5k9s.js";
25
- import"./chunks/location-6t8za67t.js";
26
- import"./chunks/location-19dc7z8q.js";
27
- import"./chunks/location-v1jdrp9c.js";
28
- import"./chunks/location-cqhyyp3f.js";
29
- import"./chunks/location-atk2et4d.js";
30
- import"./chunks/location-wtxh433d.js";
31
- import"./chunks/location-gv627jgt.js";
32
- import"./chunks/location-rmttg9h7.js";
33
- import"./chunks/location-aqzwjzmb.js";
34
- import"./chunks/location-j8p25vmv.js";
35
- import"./chunks/location-77mqkxfz.js";
36
- import"./chunks/location-6br0y3ag.js";
37
- import"./chunks/location-hspp8v12.js";
38
- import"./chunks/location-67kmywtk.js";
39
- import"./chunks/location-nvdz1s2r.js";
40
- import"./chunks/location-anm12x33.js";
41
- import"./chunks/location-gb66h69v.js";
42
- import"./chunks/location-1ahadpvw.js";
43
- import"./chunks/location-yet0vexm.js";
44
- import"./chunks/location-c6kb7fmf.js";
45
- import"./chunks/location-gqq6kfhc.js";
46
- import"./chunks/location-smaf4a18.js";
47
- import"./chunks/location-q4bn6dy8.js";
48
- import"./chunks/location-d0efjmp3.js";
49
- import"./chunks/location-x6486bry.js";
50
- import"./chunks/location-wv5twc2g.js";
4
+ } from "./chunks/service-status-vrkptjpq.js";
5
+ import"./chunks/service-status-kmgak63h.js";
6
+ import"./chunks/service-status-yfz2nrjq.js";
7
+ import"./chunks/service-status-erzfdgke.js";
8
+ import"./chunks/service-status-h29z6nze.js";
9
+ import"./chunks/service-status-rrf9gkkq.js";
10
+ import"./chunks/service-status-aajxxgqb.js";
11
+ import"./chunks/service-status-vy0x6yc6.js";
12
+ import"./chunks/service-status-g0g9ma1m.js";
13
+ import"./chunks/service-status-zfjz2b4g.js";
14
+ import"./chunks/service-status-e2cx9grb.js";
15
+ import"./chunks/service-status-qbrxhger.js";
16
+ import"./chunks/service-status-dc18tjnc.js";
17
+ import"./chunks/service-status-4vaqgjp8.js";
18
+ import"./chunks/service-status-tefn0j7n.js";
19
+ import"./chunks/service-status-j66ekhc9.js";
20
+ import"./chunks/service-status-5bchp9s2.js";
21
+ import"./chunks/service-status-9h3s5d39.js";
22
+ import"./chunks/service-status-xt7xrv1r.js";
23
+ import"./chunks/service-status-2s3n8phw.js";
24
+ import"./chunks/service-status-ksvmmk2r.js";
25
+ import"./chunks/service-status-56rkpa1p.js";
26
+ import"./chunks/service-status-3j8kyrsr.js";
27
+ import"./chunks/service-status-g1bp01xw.js";
28
+ import"./chunks/service-status-7q8ata5b.js";
29
+ import"./chunks/service-status-rys6nden.js";
30
+ import"./chunks/service-status-vg73xc24.js";
31
+ import"./chunks/service-status-n3hqkreg.js";
32
+ import"./chunks/service-status-j3626vk8.js";
33
+ import"./chunks/service-status-t7dxwnb0.js";
34
+ import"./chunks/service-status-nmcxqxxx.js";
35
+ import"./chunks/service-status-scq1j2yg.js";
36
+ import"./chunks/service-status-h6rt5k9s.js";
37
+ import"./chunks/service-status-hxgz4x38.js";
38
+ import"./chunks/service-status-vkgak0vv.js";
39
+ import"./chunks/service-status-10jzh2zk.js";
40
+ import"./chunks/service-status-y7p3rgqn.js";
41
+ import"./chunks/service-status-rbn15j6z.js";
42
+ import"./chunks/service-status-026wrard.js";
43
+ import"./chunks/service-status-yet0vexm.js";
44
+ import"./chunks/service-status-1ahadpvw.js";
45
+ import"./chunks/service-status-k7wggcq2.js";
46
+ import"./chunks/service-status-gqq6kfhc.js";
47
+ import"./chunks/service-status-smaf4a18.js";
48
+ import"./chunks/service-status-q4bn6dy8.js";
49
+ import"./chunks/service-status-n9y13hgv.js";
50
+ import"./chunks/service-status-anm12x33.js";
51
+ import"./chunks/service-status-wv5twc2g.js";
51
52
  export {
52
53
  exports_fetch as ServerFetch,
53
- make3 as make
54
+ make2 as make
54
55
  };
@@ -1 +1 @@
1
- export declare const AgentHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
1
+ export declare const AgentHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentHandler2
3
- } from "../chunks/location-cqhyyp3f.js";
4
- import"../chunks/location-gb66h69v.js";
5
- import"../chunks/location-1ahadpvw.js";
6
- import"../chunks/location-yet0vexm.js";
7
- import"../chunks/location-gqq6kfhc.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/service-status-y7p3rgqn.js";
4
+ import"../chunks/service-status-026wrard.js";
5
+ import"../chunks/service-status-yet0vexm.js";
6
+ import"../chunks/service-status-1ahadpvw.js";
7
+ import"../chunks/service-status-gqq6kfhc.js";
8
+ import"../chunks/service-status-smaf4a18.js";
9
9
  export {
10
10
  AgentHandler2 as AgentHandler
11
11
  };
@@ -1 +1 @@
1
- export declare const CommandHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.command">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
1
+ export declare const CommandHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.command">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CommandHandler2
3
- } from "../chunks/location-67kmywtk.js";
4
- import"../chunks/location-gb66h69v.js";
5
- import"../chunks/location-1ahadpvw.js";
6
- import"../chunks/location-yet0vexm.js";
7
- import"../chunks/location-gqq6kfhc.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/service-status-aajxxgqb.js";
4
+ import"../chunks/service-status-026wrard.js";
5
+ import"../chunks/service-status-yet0vexm.js";
6
+ import"../chunks/service-status-1ahadpvw.js";
7
+ import"../chunks/service-status-gqq6kfhc.js";
8
+ import"../chunks/service-status-smaf4a18.js";
9
9
  export {
10
10
  CommandHandler2 as CommandHandler
11
11
  };
@@ -1 +1 @@
1
- export declare const ConfigHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.config">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
1
+ export declare const ConfigHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.config">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware>;