@opencode/server 0.0.0-dev-21821 → 0.0.0-dev-21824

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 (81) hide show
  1. package/dist/api.js +2 -2
  2. package/dist/chunks/{options-sbb1dtv2.js → options-01xew4zj.js} +4 -4
  3. package/dist/chunks/{options-4w75v92x.js → options-1e765wh0.js} +1 -1
  4. package/dist/chunks/{options-k8rzy6d4.js → options-3d7qdbre.js} +1 -1
  5. package/dist/chunks/{options-z3e7v67k.js → options-3te71694.js} +6 -6
  6. package/dist/chunks/{options-krpsczf8.js → options-547pgmmc.js} +1 -1
  7. package/dist/chunks/{options-3aej5azy.js → options-7xe5pzvy.js} +1 -1
  8. package/dist/chunks/{options-jycmxc83.js → options-bjsrtjse.js} +35 -35
  9. package/dist/chunks/{options-82sqqxbn.js → options-ca30pptj.js} +1 -1
  10. package/dist/chunks/{options-yv9sxhn9.js → options-cpp0zjdy.js} +1 -1
  11. package/dist/chunks/{options-c8a27nas.js → options-dnwg64ce.js} +6 -6
  12. package/dist/chunks/{options-f6gnf3s9.js → options-e412n66x.js} +4 -4
  13. package/dist/chunks/{options-39nnfjx1.js → options-e6e4kz0w.js} +3 -3
  14. package/dist/chunks/{options-9mfgjndz.js → options-emkxpff3.js} +1 -1
  15. package/dist/chunks/{options-gx9nwmym.js → options-fazm2c7b.js} +1 -1
  16. package/dist/chunks/{options-mahm5rvs.js → options-fysmzcya.js} +1 -1
  17. package/dist/chunks/{options-a2ssjmyk.js → options-g3mfewdn.js} +1 -1
  18. package/dist/chunks/{options-mk2mz66m.js → options-g7sdbt1s.js} +1 -1
  19. package/dist/chunks/{options-w0jn068c.js → options-gq8jw616.js} +1 -1
  20. package/dist/chunks/{options-rc3nk1bx.js → options-gw6rc7x0.js} +1 -1
  21. package/dist/chunks/{options-kypj8v4s.js → options-gy667q5r.js} +1 -1
  22. package/dist/chunks/{options-ez8kk7rt.js → options-hwqxzcvy.js} +1 -1
  23. package/dist/chunks/{options-0cppk2bc.js → options-jd2d9483.js} +1 -1
  24. package/dist/chunks/{options-mhfbkkb7.js → options-jk5edc6h.js} +1 -1
  25. package/dist/chunks/{options-dr1f0hkr.js → options-nnsgc8by.js} +1 -1
  26. package/dist/chunks/{options-j1p3e665.js → options-qcfps8nc.js} +1 -1
  27. package/dist/chunks/{options-n60r5keb.js → options-qx5ydgm0.js} +1 -1
  28. package/dist/chunks/{options-gsqctp76.js → options-s0qm098c.js} +1 -1
  29. package/dist/chunks/{options-jyqwgkdk.js → options-sc3gatcy.js} +1 -1
  30. package/dist/chunks/{options-x7pt8jb3.js → options-smn8t17d.js} +4 -4
  31. package/dist/chunks/{options-6ypp9np2.js → options-t4c683g8.js} +1 -1
  32. package/dist/chunks/{options-vbanrv0z.js → options-tp6qcw6t.js} +1 -1
  33. package/dist/chunks/{options-7b00qdf6.js → options-w4e9jgda.js} +1 -1
  34. package/dist/chunks/{options-vdtx70fv.js → options-wexwfee0.js} +1 -1
  35. package/dist/chunks/{options-vdcre1n5.js → options-xeq9w5wr.js} +1 -1
  36. package/dist/chunks/{options-w7818rzw.js → options-xw8wscxx.js} +5 -5
  37. package/dist/chunks/{options-vpathhmw.js → options-ye9tw5gq.js} +1 -1
  38. package/dist/chunks/{options-zy1yk0n2.js → options-z3akqjf6.js} +1 -1
  39. package/dist/chunks/{options-eaxk76q8.js → options-z6z134jc.js} +1 -1
  40. package/dist/event-feed.js +5 -5
  41. package/dist/fetch.js +43 -43
  42. package/dist/handlers/agent.js +3 -3
  43. package/dist/handlers/command.js +3 -3
  44. package/dist/handlers/config.js +3 -3
  45. package/dist/handlers/credential.js +3 -3
  46. package/dist/handlers/debug.js +3 -3
  47. package/dist/handlers/event.js +4 -4
  48. package/dist/handlers/form.js +3 -3
  49. package/dist/handlers/fs.js +3 -3
  50. package/dist/handlers/generate.js +3 -3
  51. package/dist/handlers/integration.js +3 -3
  52. package/dist/handlers/location.js +3 -3
  53. package/dist/handlers/mcp.js +4 -4
  54. package/dist/handlers/message.js +3 -3
  55. package/dist/handlers/migration.js +3 -3
  56. package/dist/handlers/model.js +3 -3
  57. package/dist/handlers/permission.js +3 -3
  58. package/dist/handlers/persistent-pty.js +4 -4
  59. package/dist/handlers/plugin.js +3 -3
  60. package/dist/handlers/project.js +3 -3
  61. package/dist/handlers/provider.js +3 -3
  62. package/dist/handlers/pty.js +4 -4
  63. package/dist/handlers/reference.js +3 -3
  64. package/dist/handlers/rpc.js +3 -3
  65. package/dist/handlers/server.js +4 -4
  66. package/dist/handlers/session.js +3 -3
  67. package/dist/handlers/shell.js +3 -3
  68. package/dist/handlers/skill.js +3 -3
  69. package/dist/handlers/usage.js +3 -3
  70. package/dist/handlers/vcs.js +3 -3
  71. package/dist/handlers/voice.js +3 -3
  72. package/dist/handlers/websearch.js +3 -3
  73. package/dist/handlers/worktree.js +3 -3
  74. package/dist/handlers.js +38 -38
  75. package/dist/process.js +40 -40
  76. package/dist/routes.js +40 -40
  77. package/dist/server-info.js +5 -5
  78. package/dist/service-status.js +3 -3
  79. package/dist/workerd.js +40 -40
  80. package/package.json +8 -8
  81. /package/dist/chunks/{options-q8n44kky.js → options-4nbah0zs.js} +0 -0
package/dist/api.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/options-q8n44kky.js";
4
- import"./chunks/options-b3bmdkga.js";
3
+ } from "./chunks/options-4nbah0zs.js";
5
4
  import"./chunks/options-4gnb9897.js";
5
+ import"./chunks/options-b3bmdkga.js";
6
6
  import"./chunks/options-50bbk3b2.js";
7
7
  import"./chunks/options-smaf4a18.js";
8
8
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
  import {
5
- Service3,
5
+ Service2,
6
6
  frame2
7
- } from "./options-c8a27nas.js";
7
+ } from "./options-dnwg64ce.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(),
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-q8n44kky.js";
7
+ } from "./options-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -6,17 +6,17 @@ import {
6
6
  var exports_server_info = {};
7
7
  __export(exports_server_info, {
8
8
  ServerInfo: () => exports_server_info,
9
- Service: () => Service2,
9
+ Service: () => Service3,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer2
11
+ layer: () => layer3
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
- class Service2 extends Context.Service()("@opencode/server/ServerInfo") {
16
+ class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer2(urls, tmp, app = {}) {
19
- return Layer.succeed(Service2, Service2.of({ urls, app, paths: { tmp } }));
18
+ function layer3(urls, tmp, app = {}) {
19
+ return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
20
20
  }
21
21
  function connectionURLs2(value, requestedHostname) {
22
22
  const url = new URL(value);
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
38
38
  ];
39
39
  }
40
40
 
41
- export { Service2, layer2, connectionURLs2, exports_server_info };
41
+ export { Service3, layer3, connectionURLs2, exports_server_info };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,105 +1,105 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./options-w0jn068c.js";
3
+ } from "./options-gq8jw616.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./options-vdcre1n5.js";
6
+ } from "./options-xeq9w5wr.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./options-4w75v92x.js";
9
+ } from "./options-1e765wh0.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./options-yv9sxhn9.js";
12
+ } from "./options-cpp0zjdy.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./options-gx9nwmym.js";
15
+ } from "./options-fazm2c7b.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./options-dr1f0hkr.js";
18
+ } from "./options-nnsgc8by.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./options-9mfgjndz.js";
21
+ } from "./options-emkxpff3.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./options-j1p3e665.js";
24
+ } from "./options-qcfps8nc.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./options-gsqctp76.js";
27
+ } from "./options-s0qm098c.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./options-mahm5rvs.js";
30
+ } from "./options-fysmzcya.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./options-krpsczf8.js";
33
+ } from "./options-547pgmmc.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./options-7b00qdf6.js";
36
+ } from "./options-w4e9jgda.js";
37
37
  import {
38
- layer3
39
- } from "./options-c8a27nas.js";
38
+ layer2
39
+ } from "./options-dnwg64ce.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./options-sbb1dtv2.js";
42
+ } from "./options-01xew4zj.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./options-mk2mz66m.js";
45
+ } from "./options-g7sdbt1s.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./options-0cppk2bc.js";
48
+ } from "./options-jd2d9483.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./options-f6gnf3s9.js";
51
+ } from "./options-e412n66x.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./options-kypj8v4s.js";
54
+ } from "./options-gy667q5r.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./options-vpathhmw.js";
57
+ } from "./options-ye9tw5gq.js";
58
58
  import {
59
59
  PersistentPtyHandler2
60
- } from "./options-jyqwgkdk.js";
60
+ } from "./options-sc3gatcy.js";
61
61
  import {
62
62
  ShellHandler2
63
- } from "./options-6ypp9np2.js";
63
+ } from "./options-t4c683g8.js";
64
64
  import {
65
65
  ReferenceHandler2
66
- } from "./options-eaxk76q8.js";
66
+ } from "./options-z6z134jc.js";
67
67
  import {
68
68
  LocationHandler2
69
- } from "./options-3aej5azy.js";
69
+ } from "./options-7xe5pzvy.js";
70
70
  import {
71
71
  IntegrationHandler2
72
- } from "./options-mhfbkkb7.js";
72
+ } from "./options-jk5edc6h.js";
73
73
  import {
74
74
  WebSearchHandler2
75
- } from "./options-vdtx70fv.js";
75
+ } from "./options-wexwfee0.js";
76
76
  import {
77
77
  UsageHandler2
78
- } from "./options-82sqqxbn.js";
78
+ } from "./options-ca30pptj.js";
79
79
  import {
80
80
  McpHandler2
81
- } from "./options-a2ssjmyk.js";
81
+ } from "./options-g3mfewdn.js";
82
82
  import {
83
83
  CredentialHandler2
84
- } from "./options-n60r5keb.js";
84
+ } from "./options-qx5ydgm0.js";
85
85
  import {
86
86
  ProjectHandler2
87
- } from "./options-k8rzy6d4.js";
87
+ } from "./options-3d7qdbre.js";
88
88
  import {
89
89
  WorktreeHandler2
90
- } from "./options-zy1yk0n2.js";
90
+ } from "./options-z3akqjf6.js";
91
91
  import {
92
92
  VcsHandler2
93
- } from "./options-rc3nk1bx.js";
93
+ } from "./options-gw6rc7x0.js";
94
94
  import {
95
95
  MigrationHandler2
96
- } from "./options-vbanrv0z.js";
96
+ } from "./options-tp6qcw6t.js";
97
97
  import {
98
98
  ConfigHandler2
99
- } from "./options-ez8kk7rt.js";
99
+ } from "./options-hwqxzcvy.js";
100
100
 
101
101
  // src/handlers.ts
102
102
  import { Layer } from "effect";
103
- var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer3)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
103
+ var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer2)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
104
104
 
105
105
  export { handlers2 };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-q8n44kky.js";
7
+ } from "./options-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/usage.ts
10
10
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-q8n44kky.js";
7
+ } from "./options-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -7,11 +7,11 @@ var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service3,
10
+ Service: () => Service2,
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";
@@ -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 Service2 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 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
80
  return yield* make4(bus.listen);
81
81
  }));
82
82
 
83
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service3, frame2, make4, layer3, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
@@ -8,8 +8,8 @@ import {
8
8
  sessionCookieName2
9
9
  } from "./options-j4at0y5c.js";
10
10
  import {
11
- Service2
12
- } from "./options-z3e7v67k.js";
11
+ Service3
12
+ } from "./options-3te71694.js";
13
13
  import {
14
14
  Service4
15
15
  } from "./options-mzs0n5xz.js";
@@ -24,7 +24,7 @@ var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => E
24
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* Service2;
27
+ const info = yield* Service3;
28
28
  return {
29
29
  version: info.app.version ?? "unknown",
30
30
  pid: process.pid ?? 0,
@@ -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: () => make3
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make2 = Effect.fnUntraced(function* (options = {}) {
12
+ var make3 = 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 { make3, exports_service_status };
@@ -8,7 +8,7 @@ import {
8
8
  } from "./options-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./options-q8n44kky.js";
11
+ } from "./options-4nbah0zs.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./options-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./options-q8n44kky.js";
8
+ } from "./options-4nbah0zs.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-q8n44kky.js";
7
+ } from "./options-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.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 "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./options-50bbk3b2.js";
10
10
  import {
11
11
  Api2
12
- } from "./options-q8n44kky.js";
12
+ } from "./options-4nbah0zs.js";
13
13
 
14
14
  // src/handlers/session.ts
15
15
  import { Session } from "@opencode/core/session";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
 
5
5
  // src/handlers/credential.ts
6
6
  import { Credential } from "@opencode/core/credential";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./options-w7818rzw.js";
6
+ } from "./options-xw8wscxx.js";
7
7
  import {
8
8
  __export
9
9
  } from "./options-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 };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-q8n44kky.js";
6
+ } from "./options-4nbah0zs.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 "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-q8n44kky.js";
7
+ } from "./options-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-q8n44kky.js";
7
+ } from "./options-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/voice.ts
10
10
  import { Location } from "@opencode/core/location";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./options-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./options-q8n44kky.js";
12
+ } from "./options-4nbah0zs.js";
13
13
  import {
14
14
  Config2
15
15
  } from "./options-j4at0y5c.js";
@@ -17,14 +17,14 @@ import {
17
17
  CorsConfig2
18
18
  } from "./options-q4bn6dy8.js";
19
19
  import {
20
- layer2
21
- } from "./options-z3e7v67k.js";
20
+ layer3
21
+ } from "./options-3te71694.js";
22
22
  import {
23
23
  node2
24
24
  } from "./options-mzs0n5xz.js";
25
25
  import {
26
26
  handlers2
27
- } from "./options-jycmxc83.js";
27
+ } from "./options-bjsrtjse.js";
28
28
  import {
29
29
  authorizationLayer2
30
30
  } from "./options-7b9xm1qg.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)), layer2(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
  }));
@@ -5,7 +5,7 @@ import {
5
5
  } from "./options-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./options-q8n44kky.js";
8
+ } from "./options-4nbah0zs.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-q8n44kky.js";
3
+ } from "./options-4nbah0zs.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";