@opencode/server 0.0.0-dev-21083 → 0.0.0-dev-21086

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 (90) hide show
  1. package/dist/api.js +4 -4
  2. package/dist/chunks/{service-status-f6n7ws9b.js → service-status-0614xxr7.js} +2 -2
  3. package/dist/chunks/{service-status-49c878v9.js → service-status-0cppk2bc.js} +2 -2
  4. package/dist/chunks/{service-status-hg93khqa.js → service-status-2sy3c7de.js} +3 -3
  5. package/dist/chunks/{service-status-cfhthk6z.js → service-status-3aej5azy.js} +1 -1
  6. package/dist/chunks/{service-status-jabz3c4v.js → service-status-3atcw39t.js} +1 -1
  7. package/dist/chunks/{service-status-cknb45j3.js → service-status-3q4vdk9m.js} +7 -7
  8. package/dist/chunks/{service-status-y9mzegx1.js → service-status-4epskng5.js} +2 -2
  9. package/dist/chunks/{service-status-3154e7fk.js → service-status-4gnb9897.js} +1 -1
  10. package/dist/chunks/{service-status-gymtz25n.js → service-status-50bbk3b2.js} +2 -2
  11. package/dist/chunks/{service-status-wa5wshp7.js → service-status-6q8ztdfd.js} +12 -12
  12. package/dist/chunks/{service-status-2yr2dq97.js → service-status-6ypp9np2.js} +2 -2
  13. package/dist/chunks/{service-status-5w10ccet.js → service-status-7b00qdf6.js} +1 -1
  14. package/dist/chunks/{service-status-x74w7e1f.js → service-status-b3bmdkga.js} +1 -1
  15. package/dist/chunks/{service-status-agw55v2c.js → service-status-e2hzz5kk.js} +2 -2
  16. package/dist/chunks/{service-status-kd6vzpgq.js → service-status-eaxk76q8.js} +2 -2
  17. package/dist/chunks/{service-status-zs542hzz.js → service-status-esbdfpyn.js} +2 -2
  18. package/dist/chunks/{service-status-e7pctymn.js → service-status-ez8kk7rt.js} +1 -1
  19. package/dist/chunks/{service-status-g0rzwe5g.js → service-status-ghk96rjy.js} +6 -6
  20. package/dist/chunks/{service-status-91mt6ewz.js → service-status-gsqctp76.js} +2 -2
  21. package/dist/chunks/{service-status-swdgbzpj.js → service-status-gx9nwmym.js} +2 -2
  22. package/dist/chunks/{service-status-x9vr2ttf.js → service-status-j1p3e665.js} +2 -2
  23. package/dist/chunks/service-status-jf93wtb0.js +102 -0
  24. package/dist/chunks/service-status-jqrn6kzd.js +30 -0
  25. package/dist/chunks/{service-status-77qydj7b.js → service-status-jyqwgkdk.js} +1 -1
  26. package/dist/chunks/{service-status-j5aeaa16.js → service-status-k8rzy6d4.js} +1 -1
  27. package/dist/chunks/{service-status-4b0899hb.js → service-status-krpsczf8.js} +2 -2
  28. package/dist/chunks/{service-status-xmwystkq.js → service-status-mahm5rvs.js} +2 -2
  29. package/dist/chunks/{service-status-72ygafj3.js → service-status-mhfbkkb7.js} +2 -2
  30. package/dist/chunks/{service-status-ga3m49sz.js → service-status-mk2mz66m.js} +2 -2
  31. package/dist/chunks/{service-status-f4b2q3tn.js → service-status-n60r5keb.js} +1 -1
  32. package/dist/chunks/{service-status-cx1d1bht.js → service-status-p6ct2ak8.js} +2 -2
  33. package/dist/chunks/{service-status-t3j5ftv1.js → service-status-q8n44kky.js} +3 -3
  34. package/dist/chunks/{service-status-31acg4hb.js → service-status-rc3nk1bx.js} +2 -2
  35. package/dist/chunks/{service-status-pf9p09ew.js → service-status-tp1rntzw.js} +1 -1
  36. package/dist/chunks/{service-status-x0608mvx.js → service-status-vbanrv0z.js} +1 -1
  37. package/dist/chunks/{service-status-kcjd09wg.js → service-status-vdtx70fv.js} +2 -2
  38. package/dist/chunks/{service-status-pmjbkszz.js → service-status-w0jn068c.js} +2 -2
  39. package/dist/chunks/{service-status-2vd4m4xh.js → service-status-w0v7k7r7.js} +1 -1
  40. package/dist/chunks/{service-status-n1svm92q.js → service-status-wv5twc2g.js} +6 -6
  41. package/dist/chunks/{service-status-0chp8crd.js → service-status-x6486bry.js} +6 -6
  42. package/dist/chunks/{service-status-8b24270g.js → service-status-xdf2rf2e.js} +5 -5
  43. package/dist/chunks/{service-status-e4x9285j.js → service-status-yv9sxhn9.js} +2 -2
  44. package/dist/event-feed.js +3 -3
  45. package/dist/fetch.js +44 -43
  46. package/dist/handlers/agent.js +5 -5
  47. package/dist/handlers/command.js +5 -5
  48. package/dist/handlers/config.js +5 -5
  49. package/dist/handlers/credential.js +5 -5
  50. package/dist/handlers/debug.js +5 -5
  51. package/dist/handlers/event.js +6 -6
  52. package/dist/handlers/form.js +5 -5
  53. package/dist/handlers/fs.js +5 -5
  54. package/dist/handlers/generate.js +5 -5
  55. package/dist/handlers/integration.js +5 -5
  56. package/dist/handlers/location.js +5 -5
  57. package/dist/handlers/mcp.js +5 -5
  58. package/dist/handlers/message.js +5 -5
  59. package/dist/handlers/migration.js +5 -5
  60. package/dist/handlers/model.js +5 -5
  61. package/dist/handlers/permission.js +5 -5
  62. package/dist/handlers/persistent-pty.js +5 -5
  63. package/dist/handlers/plugin.js +5 -5
  64. package/dist/handlers/project.js +5 -5
  65. package/dist/handlers/provider.js +5 -5
  66. package/dist/handlers/pty.js +6 -6
  67. package/dist/handlers/reference.js +5 -5
  68. package/dist/handlers/rpc.js +5 -5
  69. package/dist/handlers/server.js +8 -8
  70. package/dist/handlers/session.js +5 -5
  71. package/dist/handlers/shell.js +5 -5
  72. package/dist/handlers/skill.js +5 -5
  73. package/dist/handlers/vcs.js +5 -5
  74. package/dist/handlers/voice.d.ts +3 -0
  75. package/dist/handlers/voice.js +11 -0
  76. package/dist/handlers/websearch.js +5 -5
  77. package/dist/handlers/worktree.js +5 -5
  78. package/dist/handlers.d.ts +1 -1
  79. package/dist/handlers.js +41 -40
  80. package/dist/location.js +3 -3
  81. package/dist/middleware/form-location.js +2 -2
  82. package/dist/middleware/session-location.js +2 -2
  83. package/dist/pairing.js +3 -3
  84. package/dist/process.js +41 -40
  85. package/dist/pty-environment.js +5 -5
  86. package/dist/routes.js +43 -42
  87. package/dist/server-info.js +5 -5
  88. package/dist/workerd.js +42 -41
  89. package/package.json +8 -8
  90. package/dist/chunks/service-status-ppf1vkj6.js +0 -99
package/dist/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/service-status-t3j5ftv1.js";
4
- import"./chunks/service-status-3154e7fk.js";
5
- import"./chunks/service-status-x74w7e1f.js";
6
- import"./chunks/service-status-gymtz25n.js";
3
+ } from "./chunks/service-status-q8n44kky.js";
4
+ import"./chunks/service-status-b3bmdkga.js";
5
+ import"./chunks/service-status-4gnb9897.js";
6
+ import"./chunks/service-status-50bbk3b2.js";
7
7
  import"./chunks/service-status-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
@@ -6,10 +6,10 @@ import {
6
6
  } from "./service-status-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./service-status-gymtz25n.js";
9
+ } from "./service-status-50bbk3b2.js";
10
10
  import {
11
11
  Api2
12
- } from "./service-status-t3j5ftv1.js";
12
+ } from "./service-status-q8n44kky.js";
13
13
 
14
14
  // src/handlers/session.ts
15
15
  import { Session } from "@opencode/core/session";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -11,7 +11,7 @@ __export(exports_event_feed, {
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer3,
14
+ layer: () => layer2,
15
15
  make: () => make4
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
@@ -75,9 +75,9 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
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(Service2, Effect.gen(function* () {
78
+ var layer2 = Layer.effect(Service2, Effect.gen(function* () {
79
79
  const bus = yield* Bus.Service;
80
80
  return yield* make4(bus.listen);
81
81
  }));
82
82
 
83
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer3, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./service-status-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./service-status-t3j5ftv1.js";
7
+ } from "./service-status-q8n44kky.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
9
  } from "./service-status-anm12x33.js";
10
- import {
11
- Service5
12
- } from "./service-status-g0rzwe5g.js";
13
10
  import {
14
11
  Service3
15
- } from "./service-status-0chp8crd.js";
12
+ } from "./service-status-ghk96rjy.js";
13
+ import {
14
+ Service4
15
+ } from "./service-status-x6486bry.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { Duration, Effect } from "effect";
@@ -21,10 +21,10 @@ import { HttpApiBuilder } from "effect/http-api";
21
21
  import { PersistentPty } from "@opencode/core/persistent-pty";
22
22
  import { UnauthorizedError } from "@opencode/protocol/errors";
23
23
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
24
- const pairing = yield* Service3;
24
+ const pairing = yield* Service4;
25
25
  const auth = yield* Config2;
26
26
  return handlers.handle("server.info", () => Effect.gen(function* () {
27
- const info = yield* Service5;
27
+ const info = yield* Service3;
28
28
  return {
29
29
  version: info.app.version ?? "unknown",
30
30
  pid: process.pid ?? 0,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
  import {
5
5
  Service2,
6
6
  frame2
7
- } from "./service-status-hg93khqa.js";
7
+ } from "./service-status-2sy3c7de.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./service-status-gymtz25n.js";
5
+ } from "./service-status-50bbk3b2.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -59,7 +59,7 @@ function decode(input) {
59
59
  return input;
60
60
  }
61
61
  }
62
- var layer2 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
62
+ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
63
63
  const locations = yield* LocationServiceMap.Service;
64
64
  return LocationMiddleware2.of((effect) => Effect.gen(function* () {
65
65
  const request = yield* HttpServerRequest.HttpServerRequest;
@@ -67,4 +67,4 @@ var layer2 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer2 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer4 };
@@ -1,15 +1,15 @@
1
1
  import {
2
- layer2
3
- } from "./service-status-gymtz25n.js";
2
+ layer4
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./service-status-3154e7fk.js";
6
+ } from "./service-status-4gnb9897.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./service-status-x74w7e1f.js";
9
+ } from "./service-status-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./service-status-t3j5ftv1.js";
12
+ } from "./service-status-q8n44kky.js";
13
13
  import {
14
14
  Config2
15
15
  } from "./service-status-anm12x33.js";
@@ -17,17 +17,17 @@ import {
17
17
  CorsConfig2
18
18
  } from "./service-status-q4bn6dy8.js";
19
19
  import {
20
- layer5
21
- } from "./service-status-g0rzwe5g.js";
20
+ layer3
21
+ } from "./service-status-ghk96rjy.js";
22
22
  import {
23
23
  node2
24
- } from "./service-status-0chp8crd.js";
24
+ } from "./service-status-x6486bry.js";
25
25
  import {
26
26
  node3
27
- } from "./service-status-n1svm92q.js";
27
+ } from "./service-status-wv5twc2g.js";
28
28
  import {
29
29
  handlers2
30
- } from "./service-status-ppf1vkj6.js";
30
+ } from "./service-status-jf93wtb0.js";
31
31
  import {
32
32
  authorizationLayer2
33
33
  } from "./service-status-yfz2nrjq.js";
@@ -146,8 +146,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
146
146
  })) : build(overrides);
147
147
  return serviceLayer.pipe(Layer.flatMap((context) => {
148
148
  const services = Layer.succeedContext(context);
149
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer5(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
150
- const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer2), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
149
+ const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer3(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
150
+ 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));
151
151
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
152
152
  }));
153
153
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./service-status-gymtz25n.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -5,10 +5,10 @@ import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./service-status-gymtz25n.js";
8
+ } from "./service-status-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./service-status-t3j5ftv1.js";
11
+ } from "./service-status-q8n44kky.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.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
  requestRef2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -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 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -0,0 +1,102 @@
1
+ import {
2
+ GenerateHandler2
3
+ } from "./service-status-w0jn068c.js";
4
+ import {
5
+ VoiceHandler2
6
+ } from "./service-status-jqrn6kzd.js";
7
+ import {
8
+ MessageHandler2
9
+ } from "./service-status-3atcw39t.js";
10
+ import {
11
+ ModelHandler2
12
+ } from "./service-status-yv9sxhn9.js";
13
+ import {
14
+ ProviderHandler2
15
+ } from "./service-status-gx9nwmym.js";
16
+ import {
17
+ SessionHandler2
18
+ } from "./service-status-0614xxr7.js";
19
+ import {
20
+ PermissionHandler2
21
+ } from "./service-status-e2hzz5kk.js";
22
+ import {
23
+ FileSystemHandler2
24
+ } from "./service-status-j1p3e665.js";
25
+ import {
26
+ FormHandler2
27
+ } from "./service-status-gsqctp76.js";
28
+ import {
29
+ CommandHandler2
30
+ } from "./service-status-mahm5rvs.js";
31
+ import {
32
+ SkillHandler2
33
+ } from "./service-status-krpsczf8.js";
34
+ import {
35
+ RpcHandler2
36
+ } from "./service-status-7b00qdf6.js";
37
+ import {
38
+ layer2
39
+ } from "./service-status-2sy3c7de.js";
40
+ import {
41
+ EventHandler2
42
+ } from "./service-status-4epskng5.js";
43
+ import {
44
+ AgentHandler2
45
+ } from "./service-status-mk2mz66m.js";
46
+ import {
47
+ PluginHandler2
48
+ } from "./service-status-0cppk2bc.js";
49
+ import {
50
+ ServerHandler2
51
+ } from "./service-status-3q4vdk9m.js";
52
+ import {
53
+ DebugHandler2
54
+ } from "./service-status-esbdfpyn.js";
55
+ import {
56
+ PtyHandler2
57
+ } from "./service-status-xdf2rf2e.js";
58
+ import {
59
+ PersistentPtyHandler2
60
+ } from "./service-status-jyqwgkdk.js";
61
+ import {
62
+ ShellHandler2
63
+ } from "./service-status-6ypp9np2.js";
64
+ import {
65
+ ReferenceHandler2
66
+ } from "./service-status-eaxk76q8.js";
67
+ import {
68
+ LocationHandler2
69
+ } from "./service-status-3aej5azy.js";
70
+ import {
71
+ IntegrationHandler2
72
+ } from "./service-status-mhfbkkb7.js";
73
+ import {
74
+ WebSearchHandler2
75
+ } from "./service-status-vdtx70fv.js";
76
+ import {
77
+ McpHandler2
78
+ } from "./service-status-p6ct2ak8.js";
79
+ import {
80
+ CredentialHandler2
81
+ } from "./service-status-n60r5keb.js";
82
+ import {
83
+ ProjectHandler2
84
+ } from "./service-status-k8rzy6d4.js";
85
+ import {
86
+ WorktreeHandler2
87
+ } from "./service-status-tp1rntzw.js";
88
+ import {
89
+ VcsHandler2
90
+ } from "./service-status-rc3nk1bx.js";
91
+ import {
92
+ MigrationHandler2
93
+ } from "./service-status-vbanrv0z.js";
94
+ import {
95
+ ConfigHandler2
96
+ } from "./service-status-ez8kk7rt.js";
97
+
98
+ // src/handlers.ts
99
+ import { Layer } from "effect";
100
+ var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer2)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
101
+
102
+ export { handlers2 };
@@ -0,0 +1,30 @@
1
+ import {
2
+ locationErrors2,
3
+ awaitPlugins2
4
+ } from "./service-status-50bbk3b2.js";
5
+ import {
6
+ Api2
7
+ } from "./service-status-q8n44kky.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 "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
 
5
5
  // src/handlers/credential.ts
6
6
  import { Credential } from "@opencode/core/credential";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.js";
7
7
 
8
8
  // src/handlers/mcp.ts
9
9
  import { Mcp } from "@opencode/core/mcp/index";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./service-status-3154e7fk.js";
6
+ } from "./service-status-4gnb9897.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./service-status-x74w7e1f.js";
9
+ } from "./service-status-b3bmdkga.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-gymtz25n.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-t3j5ftv1.js";
6
+ } from "./service-status-q8n44kky.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 "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-t3j5ftv1.js";
3
+ } from "./service-status-q8n44kky.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";