@opencode/server 0.0.0-dev-21173 → 0.0.0-dev-21177

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 (105) hide show
  1. package/dist/api.d.ts +138 -0
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{request-tracing-08x9tjee.js → location-08x9tjee.js} +1 -1
  5. package/dist/chunks/{request-tracing-0d864bga.js → location-0d864bga.js} +1 -1
  6. package/dist/chunks/{request-tracing-5ybpxcad.js → location-2sy3c7de.js} +7 -7
  7. package/dist/chunks/{request-tracing-33prfkkd.js → location-33prfkkd.js} +3 -3
  8. package/dist/chunks/{request-tracing-sz5hysd1.js → location-3ewjychh.js} +17 -17
  9. package/dist/chunks/{request-tracing-43r48nqn.js → location-43r48nqn.js} +2 -2
  10. package/dist/chunks/{request-tracing-4d1eemzq.js → location-4d1eemzq.js} +2 -2
  11. package/dist/chunks/{request-tracing-4dv9a668.js → location-4dv9a668.js} +2 -2
  12. package/dist/chunks/{request-tracing-hp0wqg6j.js → location-4f7w75bd.js} +8 -8
  13. package/dist/chunks/{request-tracing-4hhhes7w.js → location-4hhhes7w.js} +1 -1
  14. package/dist/chunks/{request-tracing-5zsr2h86.js → location-5zsr2h86.js} +1 -1
  15. package/dist/chunks/{request-tracing-686p2xfa.js → location-686p2xfa.js} +2 -2
  16. package/dist/chunks/{request-tracing-mfq8e8pj.js → location-7ezj0xbn.js} +34 -34
  17. package/dist/chunks/{request-tracing-7vd5668a.js → location-7vd5668a.js} +1 -1
  18. package/dist/chunks/{request-tracing-8137b89p.js → location-8137b89p.js} +2 -2
  19. package/dist/chunks/{request-tracing-c8t3608j.js → location-8qdaaahy.js} +7 -7
  20. package/dist/chunks/{request-tracing-97eb2r3v.js → location-97eb2r3v.js} +2 -2
  21. package/dist/chunks/{request-tracing-9snwnvf8.js → location-9snwnvf8.js} +3 -3
  22. package/dist/chunks/{request-tracing-anm12x33.js → location-anm12x33.js} +1 -1
  23. package/dist/chunks/{request-tracing-b56hqv74.js → location-b56hqv74.js} +1 -1
  24. package/dist/chunks/{request-tracing-bx47k33v.js → location-bx47k33v.js} +2 -2
  25. package/dist/chunks/{request-tracing-cv0ajwc9.js → location-cv0ajwc9.js} +2 -2
  26. package/dist/chunks/{request-tracing-c3bz0j9c.js → location-eb7mc1bh.js} +4 -4
  27. package/dist/chunks/{request-tracing-ewe1fzkk.js → location-ewe1fzkk.js} +2 -2
  28. package/dist/chunks/{request-tracing-ftaz8n62.js → location-ftaz8n62.js} +2 -2
  29. package/dist/chunks/{request-tracing-9very778.js → location-ghk96rjy.js} +7 -7
  30. package/dist/chunks/{request-tracing-h8ws5ssa.js → location-h8ws5ssa.js} +1 -1
  31. package/dist/chunks/{request-tracing-j4zqsxgy.js → location-j4zqsxgy.js} +1 -1
  32. package/dist/chunks/{request-tracing-ptey1p5v.js → location-ptey1p5v.js} +2 -2
  33. package/dist/chunks/{request-tracing-qbh90c1d.js → location-qbh90c1d.js} +2 -2
  34. package/dist/chunks/{request-tracing-rf01ee6q.js → location-rf01ee6q.js} +1 -1
  35. package/dist/chunks/{request-tracing-rntbwr87.js → location-rntbwr87.js} +2 -2
  36. package/dist/chunks/{request-tracing-ssyxw8nc.js → location-ssyxw8nc.js} +2 -2
  37. package/dist/chunks/{request-tracing-tavn74n1.js → location-tavn74n1.js} +3 -3
  38. package/dist/chunks/{request-tracing-bkk2wfbz.js → location-tnr0rqd3.js} +8 -8
  39. package/dist/chunks/{request-tracing-vb5yx5r0.js → location-vb5yx5r0.js} +2 -2
  40. package/dist/chunks/{request-tracing-vbzm2jgm.js → location-vbzm2jgm.js} +2 -2
  41. package/dist/chunks/{request-tracing-rxaz4xsm.js → location-wk806w00.js} +5 -3
  42. package/dist/chunks/{request-tracing-kr61w04k.js → location-x6486bry.js} +8 -8
  43. package/dist/chunks/{request-tracing-xsfckjjz.js → location-xmsxbzs8.js} +6 -6
  44. package/dist/chunks/{request-tracing-5w24ch67.js → location-xsrtpxyd.js} +4 -4
  45. package/dist/chunks/{request-tracing-yehasrps.js → location-yehasrps.js} +2 -2
  46. package/dist/chunks/{request-tracing-yfz2nrjq.js → location-yfz2nrjq.js} +1 -1
  47. package/dist/chunks/{request-tracing-z6sxg6td.js → location-z6sxg6td.js} +1 -1
  48. package/dist/chunks/{request-tracing-zessacar.js → location-zessacar.js} +2 -2
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +5 -5
  51. package/dist/fetch.js +50 -50
  52. package/dist/handlers/agent.js +6 -6
  53. package/dist/handlers/command.js +6 -6
  54. package/dist/handlers/config.js +6 -6
  55. package/dist/handlers/credential.js +6 -6
  56. package/dist/handlers/debug.js +6 -6
  57. package/dist/handlers/event.js +7 -7
  58. package/dist/handlers/form.js +6 -6
  59. package/dist/handlers/fs.js +6 -6
  60. package/dist/handlers/generate.js +6 -6
  61. package/dist/handlers/integration.js +6 -6
  62. package/dist/handlers/location.js +6 -6
  63. package/dist/handlers/mcp.js +6 -6
  64. package/dist/handlers/message.js +6 -6
  65. package/dist/handlers/migration.js +6 -6
  66. package/dist/handlers/model.js +6 -6
  67. package/dist/handlers/permission.js +6 -6
  68. package/dist/handlers/persistent-pty.js +8 -8
  69. package/dist/handlers/plugin.js +6 -6
  70. package/dist/handlers/project.js +6 -6
  71. package/dist/handlers/provider.js +6 -6
  72. package/dist/handlers/pty-socket.js +1 -1
  73. package/dist/handlers/pty.js +9 -9
  74. package/dist/handlers/reference.js +6 -6
  75. package/dist/handlers/rpc.js +6 -6
  76. package/dist/handlers/server.js +9 -9
  77. package/dist/handlers/session-error.js +1 -1
  78. package/dist/handlers/session.js +6 -6
  79. package/dist/handlers/shell.js +6 -6
  80. package/dist/handlers/skill.js +6 -6
  81. package/dist/handlers/vcs.js +6 -6
  82. package/dist/handlers/voice.js +6 -6
  83. package/dist/handlers/websearch.js +6 -6
  84. package/dist/handlers/worktree.js +6 -6
  85. package/dist/handlers.js +44 -44
  86. package/dist/location.js +2 -2
  87. package/dist/middleware/authorization.js +2 -2
  88. package/dist/middleware/form-location.js +3 -3
  89. package/dist/middleware/schema-error.js +1 -1
  90. package/dist/middleware/session-location.js +3 -3
  91. package/dist/pairing.js +5 -5
  92. package/dist/process.js +52 -52
  93. package/dist/pty-environment.js +7 -7
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +47 -47
  96. package/dist/server-info.js +5 -5
  97. package/dist/service-status.js +3 -3
  98. package/dist/workerd.js +51 -51
  99. package/package.json +8 -8
  100. /package/dist/chunks/{request-tracing-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{request-tracing-erzfdgke.js → location-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{request-tracing-h6rt5k9s.js → location-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{request-tracing-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{request-tracing-smaf4a18.js → location-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{request-tracing-yc7nft6q.js → location-yc7nft6q.js} +0 -0
@@ -2,20 +2,20 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./request-tracing-b56hqv74.js";
5
+ } from "./location-b56hqv74.js";
6
6
  import {
7
7
  Api2
8
- } from "./request-tracing-9snwnvf8.js";
8
+ } from "./location-9snwnvf8.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./request-tracing-q4bn6dy8.js";
12
+ } from "./location-q4bn6dy8.js";
13
13
  import {
14
- Service2
15
- } from "./request-tracing-bkk2wfbz.js";
14
+ Service5
15
+ } from "./location-tnr0rqd3.js";
16
16
  import {
17
17
  runPtySocket2
18
- } from "./request-tracing-h6rt5k9s.js";
18
+ } from "./location-h6rt5k9s.js";
19
19
 
20
20
  // src/handlers/pty.ts
21
21
  import { Pty } from "@opencode/core/pty";
@@ -41,7 +41,7 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
41
41
  const locations = yield* LocationServiceMap.Service;
42
42
  const tickets = yield* PtyTicket.Service;
43
43
  const cors = yield* CorsConfig2;
44
- const environment = yield* Service2;
44
+ const environment = yield* Service5;
45
45
  return handlers.handle("pty.list", Effect.fn(function* () {
46
46
  const pty = yield* Pty.Service;
47
47
  return yield* response2(pty.list());
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./request-tracing-4hhhes7w.js";
6
+ } from "./location-4hhhes7w.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./request-tracing-j4zqsxgy.js";
9
+ } from "./location-j4zqsxgy.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./request-tracing-smaf4a18.js";
3
+ } from "./location-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./request-tracing-b56hqv74.js";
4
+ } from "./location-b56hqv74.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-9snwnvf8.js";
7
+ } from "./location-9snwnvf8.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
  import {
5
- Service4,
5
+ Service2,
6
6
  frame2
7
- } from "./request-tracing-5ybpxcad.js";
7
+ } from "./location-2sy3c7de.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* Service4;
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(),
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./request-tracing-b56hqv74.js";
4
+ } from "./location-b56hqv74.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-9snwnvf8.js";
7
+ } from "./location-9snwnvf8.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/server-info.ts
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: () => layer4
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 layer4(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, layer4, connectionURLs2, exports_server_info };
41
+ export { Service3, layer3, connectionURLs2, exports_server_info };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./request-tracing-b56hqv74.js";
4
+ } from "./location-b56hqv74.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.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 "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.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 "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./request-tracing-q4bn6dy8.js";
7
+ } from "./location-q4bn6dy8.js";
8
8
  import {
9
9
  runPtySocket2
10
- } from "./request-tracing-h6rt5k9s.js";
10
+ } from "./location-h6rt5k9s.js";
11
11
 
12
12
  // src/handlers/persistent-pty.ts
13
13
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/pty-environment.ts
6
6
  var exports_pty_environment = {};
7
7
  __export(exports_pty_environment, {
8
8
  PtyEnvironment: () => exports_pty_environment,
9
- Service: () => Service2,
10
- layer: () => layer2,
11
- node: () => node2
9
+ Service: () => Service5,
10
+ layer: () => layer4,
11
+ node: () => node3
12
12
  });
13
13
  import { Context, Effect, Layer } from "effect";
14
14
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
15
15
 
16
- class Service2 extends Context.Service()("@opencode/ServerPtyEnvironment") {
16
+ class Service5 extends Context.Service()("@opencode/ServerPtyEnvironment") {
17
17
  }
18
- var layer2 = Layer.succeed(Service2, Service2.of({
18
+ var layer4 = Layer.succeed(Service5, Service5.of({
19
19
  get: () => Effect.succeed({})
20
20
  }));
21
- var node2 = makeGlobalNode({ service: Service2, layer: layer2, deps: [] });
21
+ var node3 = makeGlobalNode({ service: Service5, layer: layer4, deps: [] });
22
22
 
23
- export { Service2, layer2, node2, exports_pty_environment };
23
+ export { Service5, layer4, node3, exports_pty_environment };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./request-tracing-smaf4a18.js";
4
+ } from "./location-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-9snwnvf8.js";
7
+ } from "./location-9snwnvf8.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -3,13 +3,13 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./request-tracing-smaf4a18.js";
6
+ } from "./location-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./request-tracing-b56hqv74.js";
9
+ } from "./location-b56hqv74.js";
10
10
  import {
11
11
  Api2
12
- } from "./request-tracing-9snwnvf8.js";
12
+ } from "./location-9snwnvf8.js";
13
13
 
14
14
  // src/handlers/session.ts
15
15
  import { Session } from "@opencode/core/session";
@@ -138,6 +138,8 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
138
138
  yield* session.setMetadata({ sessionID: ctx.params.sessionID, metadata: ctx.payload.metadata }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
139
139
  if (ctx.payload.permissions !== undefined)
140
140
  yield* session.setPermissions({ sessionID: ctx.params.sessionID, permissions: ctx.payload.permissions }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
141
+ if (ctx.payload.archived !== undefined)
142
+ yield* (ctx.payload.archived ? session.archive : session.unarchive)(ctx.params.sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
141
143
  return HttpApiSchema.NoContent.make();
142
144
  })).handle("session.move", Effect.fn(function* (ctx) {
143
145
  yield* session.move({
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./location-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: () => Service3,
10
- node: () => node3
9
+ Service: () => Service4,
10
+ node: () => node2
11
11
  });
12
12
  import { Cache, Context, Duration, Effect, Layer } from "effect";
13
13
  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 Service3 extends Context.Service()("@opencode/ServerPairing") {
17
+ class Service4 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(Service3, Effect.gen(function* () {
20
+ var layer = Layer.effect(Service4, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service3.of({
22
+ return Service4.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(Service3, Effect.gen(function* () {
30
30
  })
31
31
  });
32
32
  }));
33
- var node3 = makeGlobalNode({ service: Service3, layer, deps: [] });
33
+ var node2 = makeGlobalNode({ service: Service4, layer, deps: [] });
34
34
 
35
- export { Service3, node3, exports_pairing };
35
+ export { Service4, node2, exports_pairing };
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./request-tracing-q4bn6dy8.js";
3
+ } from "./location-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./request-tracing-sz5hysd1.js";
6
+ } from "./location-3ewjychh.js";
7
7
  import {
8
8
  __export
9
- } from "./request-tracing-9rqn6x4v.js";
9
+ } from "./location-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: () => 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,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/service-status.ts
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,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./request-tracing-anm12x33.js";
7
+ } from "./location-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 "./request-tracing-9snwnvf8.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/mcp.ts
9
9
  import { Mcp } from "@opencode/core/mcp/index";
package/dist/cors.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CorsConfig2,
3
3
  isAllowedCorsOrigin2,
4
4
  isAllowedRequestOrigin2
5
- } from "./chunks/request-tracing-q4bn6dy8.js";
5
+ } from "./chunks/location-q4bn6dy8.js";
6
6
  export {
7
7
  CorsConfig2 as CorsConfig,
8
8
  isAllowedCorsOrigin2 as isAllowedCorsOrigin,
@@ -2,19 +2,19 @@ import {
2
2
  SubscriberCapacity2,
3
3
  SubscriberOverflowError2,
4
4
  EncodingError2,
5
- Service4,
5
+ Service2,
6
6
  frame2,
7
7
  make4,
8
- layer3,
8
+ layer2,
9
9
  exports_event_feed
10
- } from "./chunks/request-tracing-5ybpxcad.js";
10
+ } from "./chunks/location-2sy3c7de.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,
14
- Service4 as Service,
14
+ Service2 as Service,
15
15
  SubscriberCapacity2 as SubscriberCapacity,
16
16
  SubscriberOverflowError2 as SubscriberOverflowError,
17
17
  frame2 as frame,
18
- layer3 as layer,
18
+ layer2 as layer,
19
19
  make4 as make
20
20
  };