@opencode/server 0.0.0-dev-57 → 0.0.0-dev-64

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 (83) hide show
  1. package/dist/api.js +2 -2
  2. package/dist/chunks/{options-rfdwk27n.js → options-0c5s68vs.js} +1 -1
  3. package/dist/chunks/{options-s62wjkvx.js → options-1v577ncx.js} +1 -1
  4. package/dist/chunks/{options-vbgqk0mr.js → options-2eaky32g.js} +1 -1
  5. package/dist/chunks/{options-0ey2b45p.js → options-2h6qktqa.js} +1 -1
  6. package/dist/chunks/{options-4m3ck1cn.js → options-2mzs8tn8.js} +1 -1
  7. package/dist/chunks/{options-e6e4kz0w.js → options-39nnfjx1.js} +3 -3
  8. package/dist/chunks/{options-r6xkfcdx.js → options-4fy84009.js} +1 -1
  9. package/dist/chunks/{options-b4mqtccx.js → options-4q6e7fh8.js} +1 -1
  10. package/dist/chunks/{options-djj5asqw.js → options-5b42hxrf.js} +1 -1
  11. package/dist/chunks/{options-bqv643t2.js → options-5mcgbe4y.js} +5 -5
  12. package/dist/chunks/{options-m119esdv.js → options-5s0wnsg4.js} +1 -1
  13. package/dist/chunks/{options-nz17qv97.js → options-5s6gh8sx.js} +1 -1
  14. package/dist/chunks/{options-x4b2rtcb.js → options-6z9pvq7p.js} +1 -1
  15. package/dist/chunks/{options-ws8y8588.js → options-73y9ys6v.js} +32 -32
  16. package/dist/chunks/{options-05c5061t.js → options-a8jcac9a.js} +1 -1
  17. package/dist/chunks/{options-9grnt8dc.js → options-az0609r6.js} +1 -1
  18. package/dist/chunks/{options-89egwzf3.js → options-b105zy65.js} +1 -1
  19. package/dist/chunks/{options-erzfdgke.js → options-bd8755ek.js} +16 -1
  20. package/dist/chunks/{options-kg0ybx4v.js → options-btahnm2b.js} +1 -1
  21. package/dist/chunks/{options-hx8bsq9d.js → options-cezwbsk5.js} +1 -1
  22. package/dist/chunks/{options-et00mhwf.js → options-d0edqfxx.js} +1 -1
  23. package/dist/chunks/{options-brwhzv0g.js → options-dgmnhnxb.js} +4 -4
  24. package/dist/chunks/{options-wv8xnah8.js → options-e2jmaxxy.js} +7 -7
  25. package/dist/chunks/{options-fmgbtszc.js → options-e5dc5tv0.js} +1 -1
  26. package/dist/chunks/{options-v8aqacn3.js → options-f559fakr.js} +1 -1
  27. package/dist/chunks/{options-28ztppy1.js → options-h29xjj1e.js} +1 -1
  28. package/dist/chunks/{options-zvbhqxt5.js → options-k3txyteh.js} +1 -1
  29. package/dist/chunks/{options-dx89xydc.js → options-kkdkqt8j.js} +1 -1
  30. package/dist/chunks/{options-q44yktpv.js → options-ny1j968n.js} +1 -1
  31. package/dist/chunks/{options-h1thjy6x.js → options-qcg3sqtb.js} +1 -1
  32. package/dist/chunks/{options-f8r9p2vr.js → options-qd0r787n.js} +1 -1
  33. package/dist/chunks/{options-4p2y0qs3.js → options-rha2aq18.js} +1 -1
  34. package/dist/chunks/{options-0n4tjm17.js → options-s282vggx.js} +1 -1
  35. package/dist/chunks/{options-s9tkswmw.js → options-te8jwba1.js} +1 -1
  36. package/dist/chunks/{options-mzs0n5xz.js → options-w9jcwh65.js} +6 -6
  37. package/dist/chunks/{options-pprz9xer.js → options-wd7hxrwh.js} +1 -1
  38. package/dist/chunks/{options-3te71694.js → options-yjbzmfhm.js} +4 -4
  39. package/dist/chunks/{options-zbe9jfhy.js → options-zcvan105.js} +1 -1
  40. package/dist/chunks/{options-1qsaq6yn.js → options-zd7h3c1z.js} +1 -1
  41. package/dist/fetch.js +46 -46
  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 +5 -5
  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 +6 -6
  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 +41 -41
  75. package/dist/middleware/schema-error.js +1 -1
  76. package/dist/pairing.js +3 -3
  77. package/dist/process.js +41 -41
  78. package/dist/routes.js +43 -43
  79. package/dist/server-info.js +3 -3
  80. package/dist/service-status.js +3 -3
  81. package/dist/workerd.js +41 -41
  82. package/package.json +8 -8
  83. /package/dist/chunks/{options-0e81et3m.js → options-j87xz9bt.js} +0 -0
package/dist/api.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/options-0e81et3m.js";
4
- import"./chunks/options-b3bmdkga.js";
3
+ } from "./chunks/options-j87xz9bt.js";
5
4
  import"./chunks/options-htyf2qs7.js";
5
+ import"./chunks/options-b3bmdkga.js";
6
6
  import"./chunks/options-50bbk3b2.js";
7
7
  import"./chunks/options-smaf4a18.js";
8
8
  export {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-0e81et3m.js";
7
+ } from "./options-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-0e81et3m.js";
7
+ } from "./options-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/agent.ts
10
10
  import { Agent } from "@opencode/core/agent";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-0e81et3m.js";
6
+ } from "./options-j87xz9bt.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-0e81et3m.js";
6
+ } from "./options-j87xz9bt.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-0e81et3m.js";
3
+ } from "./options-j87xz9bt.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
@@ -6,10 +6,10 @@ import {
6
6
  var exports_service_status = {};
7
7
  __export(exports_service_status, {
8
8
  Status: () => exports_service_status,
9
- make: () => make3
9
+ make: () => make2
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make3 = Effect.fnUntraced(function* (options = {}) {
12
+ var make2 = Effect.fnUntraced(function* (options = {}) {
13
13
  const current = yield* Ref.make(options.initial ?? { type: "starting" });
14
14
  const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
15
15
  return {
@@ -20,4 +20,4 @@ var make3 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make3, exports_service_status };
23
+ export { make2, exports_service_status };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-0e81et3m.js";
3
+ } from "./options-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-0e81et3m.js";
6
+ } from "./options-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-0e81et3m.js";
3
+ } from "./options-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/credential.ts
6
6
  import { Credential } from "@opencode/core/credential";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./options-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./options-0e81et3m.js";
12
+ } from "./options-j87xz9bt.js";
13
13
  import {
14
14
  Config2
15
15
  } from "./options-j4at0y5c.js";
@@ -18,19 +18,19 @@ import {
18
18
  } from "./options-q4bn6dy8.js";
19
19
  import {
20
20
  layer3
21
- } from "./options-3te71694.js";
21
+ } from "./options-yjbzmfhm.js";
22
22
  import {
23
23
  node2
24
- } from "./options-mzs0n5xz.js";
24
+ } from "./options-w9jcwh65.js";
25
25
  import {
26
26
  handlers2
27
- } from "./options-ws8y8588.js";
27
+ } from "./options-73y9ys6v.js";
28
28
  import {
29
29
  authorizationLayer2
30
30
  } from "./options-7b9xm1qg.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./options-erzfdgke.js";
33
+ } from "./options-bd8755ek.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-0e81et3m.js";
7
+ } from "./options-j87xz9bt.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
10
  } from "./options-xthc02cw.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-0e81et3m.js";
6
+ } from "./options-j87xz9bt.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 "./options-0e81et3m.js";
3
+ } from "./options-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,102 +1,102 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./options-rfdwk27n.js";
3
+ } from "./options-0c5s68vs.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./options-et00mhwf.js";
6
+ } from "./options-d0edqfxx.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./options-m119esdv.js";
9
+ } from "./options-5s0wnsg4.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./options-4p2y0qs3.js";
12
+ } from "./options-rha2aq18.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./options-9grnt8dc.js";
15
+ } from "./options-az0609r6.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./options-zvbhqxt5.js";
18
+ } from "./options-k3txyteh.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./options-kg0ybx4v.js";
21
+ } from "./options-btahnm2b.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./options-0ey2b45p.js";
24
+ } from "./options-2h6qktqa.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./options-v8aqacn3.js";
27
+ } from "./options-f559fakr.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./options-b4mqtccx.js";
30
+ } from "./options-4q6e7fh8.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./options-q44yktpv.js";
33
+ } from "./options-ny1j968n.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./options-0n4tjm17.js";
36
+ } from "./options-s282vggx.js";
37
37
  import {
38
38
  layer2
39
39
  } from "./options-fvpjvjpp.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./options-1qsaq6yn.js";
42
+ } from "./options-zd7h3c1z.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./options-s62wjkvx.js";
45
+ } from "./options-1v577ncx.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./options-vbgqk0mr.js";
48
+ } from "./options-2eaky32g.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./options-wv8xnah8.js";
51
+ } from "./options-e2jmaxxy.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./options-h1thjy6x.js";
54
+ } from "./options-qcg3sqtb.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./options-fmgbtszc.js";
57
+ } from "./options-e5dc5tv0.js";
58
58
  import {
59
59
  PersistentPtyHandler2
60
- } from "./options-4m3ck1cn.js";
60
+ } from "./options-2mzs8tn8.js";
61
61
  import {
62
62
  ShellHandler2
63
- } from "./options-f8r9p2vr.js";
63
+ } from "./options-qd0r787n.js";
64
64
  import {
65
65
  ReferenceHandler2
66
- } from "./options-s9tkswmw.js";
66
+ } from "./options-te8jwba1.js";
67
67
  import {
68
68
  LocationHandler2
69
- } from "./options-zbe9jfhy.js";
69
+ } from "./options-zcvan105.js";
70
70
  import {
71
71
  IntegrationHandler2
72
- } from "./options-28ztppy1.js";
72
+ } from "./options-h29xjj1e.js";
73
73
  import {
74
74
  WebSearchHandler2
75
- } from "./options-dx89xydc.js";
75
+ } from "./options-kkdkqt8j.js";
76
76
  import {
77
77
  UsageHandler2
78
- } from "./options-89egwzf3.js";
78
+ } from "./options-b105zy65.js";
79
79
  import {
80
80
  McpHandler2
81
- } from "./options-pprz9xer.js";
81
+ } from "./options-wd7hxrwh.js";
82
82
  import {
83
83
  CredentialHandler2
84
- } from "./options-djj5asqw.js";
84
+ } from "./options-5b42hxrf.js";
85
85
  import {
86
86
  ProjectHandler2
87
- } from "./options-05c5061t.js";
87
+ } from "./options-a8jcac9a.js";
88
88
  import {
89
89
  WorktreeHandler2
90
- } from "./options-r6xkfcdx.js";
90
+ } from "./options-4fy84009.js";
91
91
  import {
92
92
  VcsHandler2
93
- } from "./options-nz17qv97.js";
93
+ } from "./options-5s6gh8sx.js";
94
94
  import {
95
95
  MigrationHandler2
96
- } from "./options-x4b2rtcb.js";
96
+ } from "./options-6z9pvq7p.js";
97
97
  import {
98
98
  ConfigHandler2
99
- } from "./options-hx8bsq9d.js";
99
+ } from "./options-cezwbsk5.js";
100
100
 
101
101
  // src/handlers.ts
102
102
  import { Layer } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-0e81et3m.js";
3
+ } from "./options-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-0e81et3m.js";
7
+ } from "./options-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/provider.ts
10
10
  import { Provider } from "@opencode/core/provider";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-0e81et3m.js";
7
+ } from "./options-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/usage.ts
10
10
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,5 +1,6 @@
1
1
  // src/middleware/schema-error.ts
2
2
  import { Effect } from "effect";
3
+ import { HttpServerResponse } from "effect/http";
3
4
  import { HttpApiMiddleware } from "effect/http-api";
4
5
  import { InvalidRequestError } from "@opencode/protocol/errors";
5
6
  import { SchemaErrorMiddleware } from "@opencode/protocol/middleware/schema-error";
@@ -10,8 +11,22 @@ function truncateReason(reason) {
10
11
  return reason;
11
12
  return reason.slice(0, REASON_LIMIT) + `... (${reason.length - REASON_LIMIT} more chars)`;
12
13
  }
13
- var schemaErrorLayer2 = HttpApiMiddleware.layerSchemaErrorTransform(SchemaErrorMiddleware, (error) => {
14
+ var schemaErrorLayer2 = HttpApiMiddleware.layerSchemaErrorTransform(SchemaErrorMiddleware, (error, context) => {
14
15
  const reason = truncateReason(error.cause.message);
16
+ if (error.kind === "Body" || error.kind === "ResponseHeaders") {
17
+ const ref = `err_${crypto.randomUUID().slice(0, 8)}`;
18
+ return Effect.logError("failed to encode response").pipe(Effect.annotateLogs({
19
+ ref,
20
+ kind: error.kind,
21
+ endpoint: `${context.group.identifier}.${context.endpoint.name}`,
22
+ route: `${context.endpoint.method} ${context.endpoint.path}`,
23
+ reason
24
+ }), Effect.as(HttpServerResponse.jsonUnsafe({
25
+ _tag: "UnknownError",
26
+ message: "Server failed to encode its response. Check server logs for details.",
27
+ ref
28
+ }, { status: 500 })));
29
+ }
15
30
  return Effect.logWarning("schema rejection").pipe(Effect.annotateLogs({ kind: error.kind, reason }), Effect.andThen(Effect.fail(new InvalidRequestError({ message: reason, kind: error.kind }))));
16
31
  });
17
32
 
@@ -8,7 +8,7 @@ import {
8
8
  } from "./options-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./options-0e81et3m.js";
11
+ } from "./options-j87xz9bt.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-0e81et3m.js";
3
+ } from "./options-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-0e81et3m.js";
7
+ } from "./options-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/voice.ts
10
10
  import { Location } from "@opencode/core/location";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./options-bqv643t2.js";
6
+ } from "./options-5mcgbe4y.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: () => make2
15
+ make: () => make3
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 make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
20
+ var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
21
21
  const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
22
22
  yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
23
23
  return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
24
24
  });
25
25
 
26
- export { make2, exports_fetch };
26
+ export { make3, exports_fetch };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-0e81et3m.js";
3
+ } from "./options-j87xz9bt.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
9
  } from "./options-j4at0y5c.js";
10
- import {
11
- Service3
12
- } from "./options-3te71694.js";
13
10
  import {
14
11
  Service4
15
- } from "./options-mzs0n5xz.js";
12
+ } from "./options-yjbzmfhm.js";
13
+ import {
14
+ Service3
15
+ } from "./options-w9jcwh65.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { hostname } from "node:os";
@@ -22,10 +22,10 @@ import { HttpApiBuilder } from "effect/http-api";
22
22
  import { PersistentPty } from "@opencode/core/persistent-pty";
23
23
  import { UnauthorizedError } from "@opencode/protocol/errors";
24
24
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
25
- const pairing = yield* Service4;
25
+ const pairing = yield* Service3;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
- const info = yield* Service3;
28
+ const info = yield* Service4;
29
29
  return {
30
30
  version: info.app.version ?? "unknown",
31
31
  pid: process.pid ?? 0,
@@ -5,7 +5,7 @@ import {
5
5
  } from "./options-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./options-0e81et3m.js";
8
+ } from "./options-j87xz9bt.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-0e81et3m.js";
6
+ } from "./options-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-0e81et3m.js";
6
+ } from "./options-j87xz9bt.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-0e81et3m.js";
12
+ } from "./options-j87xz9bt.js";
13
13
  import {
14
14
  wantsMediaRefs2
15
15
  } from "./options-xthc02cw.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-0e81et3m.js";
7
+ } from "./options-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-0e81et3m.js";
6
+ } from "./options-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-0e81et3m.js";
6
+ } from "./options-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-0e81et3m.js";
6
+ } from "./options-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-0e81et3m.js";
7
+ } from "./options-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-0e81et3m.js";
3
+ } from "./options-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-0e81et3m.js";
6
+ } from "./options-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -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: () => Service3,
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 Service3 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(Service3, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service4.of({
22
+ return Service3.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: Service3, layer, deps: [] });
34
34
 
35
- export { Service4, node2, exports_pairing };
35
+ export { Service3, node2, exports_pairing };
@@ -5,7 +5,7 @@ import {
5
5
  } from "./options-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./options-0e81et3m.js";
8
+ } from "./options-j87xz9bt.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
@@ -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: () => Service3,
9
+ Service: () => Service4,
10
10
  connectionURLs: () => connectionURLs2,
11
11
  layer: () => layer3
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
- class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
16
+ class Service4 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
18
  function layer3(urls, tmp, app = {}) {
19
- return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
19
+ return Layer.succeed(Service4, Service4.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 { Service3, layer3, connectionURLs2, exports_server_info };
41
+ export { Service4, layer3, connectionURLs2, exports_server_info };