@opencode/server 0.0.0-dev-431 → 0.0.0-dev-434

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 (113) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{api-059rbh9c.js → auth-059rbh9c.js} +1 -1
  4. package/dist/chunks/{api-mam5ppd3.js → auth-05c5061t.js} +1 -1
  5. package/dist/chunks/{api-v7p1kzzd.js → auth-0e81et3m.js} +3 -3
  6. package/dist/chunks/{api-tgb4pddq.js → auth-0ey2b45p.js} +2 -2
  7. package/dist/chunks/{api-02a60aws.js → auth-0fv515j7.js} +2 -2
  8. package/dist/chunks/{api-dczgzh3x.js → auth-0j6zxxn8.js} +2 -2
  9. package/dist/chunks/{api-hr24310e.js → auth-0n4tjm17.js} +1 -1
  10. package/dist/chunks/{api-1jtv083t.js → auth-2wexxjwf.js} +2 -2
  11. package/dist/chunks/{api-xeyga1yz.js → auth-373ntpps.js} +6 -6
  12. package/dist/chunks/{api-e6e4kz0w.js → auth-39nnfjx1.js} +4 -4
  13. package/dist/chunks/{api-7dtbad8d.js → auth-3te71694.js} +7 -7
  14. package/dist/chunks/{api-y56ann6c.js → auth-4p2y0qs3.js} +2 -2
  15. package/dist/chunks/{api-gymtz25n.js → auth-50bbk3b2.js} +3 -3
  16. package/dist/chunks/{api-57jtpf4y.js → auth-6ghv845j.js} +35 -35
  17. package/dist/chunks/{api-7b9xm1qg.js → auth-7b9xm1qg.js} +1 -1
  18. package/dist/chunks/{api-3p18p8bt.js → auth-7nb2rv11.js} +2 -2
  19. package/dist/chunks/{api-rbck9dgd.js → auth-861wfsmy.js} +1 -1
  20. package/dist/chunks/{api-va7wgp70.js → auth-89egwzf3.js} +2 -2
  21. package/dist/chunks/{api-62bfwtjc.js → auth-9grnt8dc.js} +2 -2
  22. package/dist/chunks/{api-b5crh3ce.js → auth-ap1t95t8.js} +3 -3
  23. package/dist/chunks/{api-x74w7e1f.js → auth-b3bmdkga.js} +1 -1
  24. package/dist/chunks/{api-zzxz7279.js → auth-b4mqtccx.js} +2 -2
  25. package/dist/chunks/{api-0tp180yj.js → auth-d4534456.js} +7 -5
  26. package/dist/chunks/{api-axx4wwen.js → auth-dx89xydc.js} +2 -2
  27. package/dist/chunks/{api-21ywsb9g.js → auth-e2xb6wqz.js} +6 -6
  28. package/dist/chunks/{api-xfynz25m.js → auth-et00mhwf.js} +2 -2
  29. package/dist/chunks/{api-4xzps9pr.js → auth-f8r9p2vr.js} +2 -2
  30. package/dist/chunks/{api-arzv3fj6.js → auth-fvpjvjpp.js} +4 -4
  31. package/dist/chunks/{api-j6d0mxrp.js → auth-h1thjy6x.js} +2 -2
  32. package/dist/chunks/{api-ddnay6e1.js → auth-htyf2qs7.js} +1 -1
  33. package/dist/chunks/{api-e0z6mnzj.js → auth-hx8bsq9d.js} +1 -1
  34. package/dist/chunks/{api-j4at0y5c.js → auth-j4at0y5c.js} +1 -1
  35. package/dist/chunks/{api-tq4yvz0c.js → auth-ja5tst8d.js} +15 -15
  36. package/dist/chunks/{api-972dky5b.js → auth-jjvpqmx6.js} +8 -6
  37. package/dist/chunks/{api-s9jd931e.js → auth-jydxnq20.js} +4 -4
  38. package/dist/chunks/{api-q7gnt7ra.js → auth-kg0ybx4v.js} +3 -3
  39. package/dist/chunks/{api-w9jcwh65.js → auth-mzs0n5xz.js} +7 -7
  40. package/dist/chunks/{api-f1ds1268.js → auth-n1zdbfv7.js} +2 -2
  41. package/dist/chunks/{api-85kbrn7y.js → auth-nz17qv97.js} +2 -2
  42. package/dist/chunks/{api-h6rt5k9s.js → auth-q187pxxd.js} +7 -1
  43. package/dist/chunks/{api-9q55v56g.js → auth-q44yktpv.js} +2 -2
  44. package/dist/chunks/{api-xad49dn3.js → auth-s62wjkvx.js} +2 -2
  45. package/dist/chunks/{api-f96zeczf.js → auth-s9tkswmw.js} +2 -2
  46. package/dist/chunks/{api-vyzvby0b.js → auth-v8aqacn3.js} +2 -2
  47. package/dist/chunks/{api-0r9ve3h3.js → auth-vbgqk0mr.js} +2 -2
  48. package/dist/chunks/{api-e4ab5twg.js → auth-wj271kqf.js} +8 -8
  49. package/dist/chunks/{api-xwy6frfd.js → auth-x4b2rtcb.js} +1 -1
  50. package/dist/chunks/{api-f0kpaq89.js → auth-zbe9jfhy.js} +1 -1
  51. package/dist/cors.js +1 -1
  52. package/dist/event-feed.js +3 -3
  53. package/dist/fetch.js +54 -54
  54. package/dist/handlers/agent.js +6 -6
  55. package/dist/handlers/artifact.js +3 -3
  56. package/dist/handlers/command.js +6 -6
  57. package/dist/handlers/config.js +6 -6
  58. package/dist/handlers/credential.js +7 -7
  59. package/dist/handlers/debug.js +6 -6
  60. package/dist/handlers/event.js +7 -7
  61. package/dist/handlers/form.js +6 -6
  62. package/dist/handlers/fs.js +6 -6
  63. package/dist/handlers/generate.js +6 -6
  64. package/dist/handlers/integration.js +6 -6
  65. package/dist/handlers/location.js +6 -6
  66. package/dist/handlers/mcp.js +8 -8
  67. package/dist/handlers/media.js +1 -1
  68. package/dist/handlers/message.js +7 -7
  69. package/dist/handlers/migration.js +6 -6
  70. package/dist/handlers/model.js +6 -6
  71. package/dist/handlers/permission.js +6 -6
  72. package/dist/handlers/persistent-pty.js +11 -11
  73. package/dist/handlers/plugin.js +6 -6
  74. package/dist/handlers/project.js +6 -6
  75. package/dist/handlers/provider.js +6 -6
  76. package/dist/handlers/pty-socket.d.ts +2 -0
  77. package/dist/handlers/pty-socket.js +4 -2
  78. package/dist/handlers/pty.js +8 -8
  79. package/dist/handlers/reference.js +6 -6
  80. package/dist/handlers/rpc.js +6 -6
  81. package/dist/handlers/schedule.js +2 -2
  82. package/dist/handlers/server.js +9 -9
  83. package/dist/handlers/session-error.js +1 -1
  84. package/dist/handlers/session.js +7 -7
  85. package/dist/handlers/shell.js +6 -6
  86. package/dist/handlers/skill.js +6 -6
  87. package/dist/handlers/usage.js +6 -6
  88. package/dist/handlers/vcs.js +6 -6
  89. package/dist/handlers/voice.js +6 -6
  90. package/dist/handlers/websearch.js +6 -6
  91. package/dist/handlers/worktree.js +6 -6
  92. package/dist/handlers.js +48 -48
  93. package/dist/location.js +4 -4
  94. package/dist/media-uri.js +1 -1
  95. package/dist/middleware/authorization.js +2 -2
  96. package/dist/middleware/form-location.js +3 -3
  97. package/dist/middleware/schema-error.js +1 -1
  98. package/dist/middleware/session-location.js +3 -3
  99. package/dist/pairing.js +3 -3
  100. package/dist/process.js +56 -56
  101. package/dist/request-tracing.js +1 -1
  102. package/dist/routes.js +51 -51
  103. package/dist/server-info.js +5 -5
  104. package/dist/service-status.js +3 -3
  105. package/dist/workerd.js +55 -55
  106. package/package.json +8 -8
  107. /package/dist/chunks/{api-9rqn6x4v.js → auth-9rqn6x4v.js} +0 -0
  108. /package/dist/chunks/{api-bd8755ek.js → auth-bd8755ek.js} +0 -0
  109. /package/dist/chunks/{api-n321d8vm.js → auth-n321d8vm.js} +0 -0
  110. /package/dist/chunks/{api-q4bn6dy8.js → auth-q4bn6dy8.js} +0 -0
  111. /package/dist/chunks/{api-smaf4a18.js → auth-smaf4a18.js} +0 -0
  112. /package/dist/chunks/{api-xthc02cw.js → auth-xthc02cw.js} +0 -0
  113. /package/dist/chunks/{api-yc7nft6q.js → auth-yc7nft6q.js} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./api-gymtz25n.js";
5
+ } from "./auth-50bbk3b2.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./api-v7p1kzzd.js";
3
+ } from "./auth-0e81et3m.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./api-9rqn6x4v.js";
3
+ } from "./auth-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -1,36 +1,36 @@
1
1
  import {
2
- layer2
3
- } from "./api-gymtz25n.js";
2
+ layer4
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./api-ddnay6e1.js";
6
+ } from "./auth-htyf2qs7.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./api-x74w7e1f.js";
9
+ } from "./auth-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./api-v7p1kzzd.js";
12
+ } from "./auth-0e81et3m.js";
13
13
  import {
14
14
  Config2
15
- } from "./api-j4at0y5c.js";
15
+ } from "./auth-j4at0y5c.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./api-q4bn6dy8.js";
18
+ } from "./auth-q4bn6dy8.js";
19
19
  import {
20
- layer4
21
- } from "./api-7dtbad8d.js";
20
+ layer3
21
+ } from "./auth-3te71694.js";
22
22
  import {
23
23
  node2
24
- } from "./api-w9jcwh65.js";
24
+ } from "./auth-mzs0n5xz.js";
25
25
  import {
26
26
  handlers2
27
- } from "./api-57jtpf4y.js";
27
+ } from "./auth-6ghv845j.js";
28
28
  import {
29
29
  authorizationLayer2
30
- } from "./api-7b9xm1qg.js";
30
+ } from "./auth-7b9xm1qg.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./api-bd8755ek.js";
33
+ } from "./auth-bd8755ek.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -153,8 +153,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
153
153
  })) : build(overrides);
154
154
  return serviceLayer.pipe(Layer.flatMap((context) => {
155
155
  const services = Layer.succeedContext(context);
156
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer4(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
157
- 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));
156
+ 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));
157
+ 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));
158
158
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
159
159
  }));
160
160
  }
@@ -2,17 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./api-gymtz25n.js";
5
+ } from "./auth-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./api-v7p1kzzd.js";
8
+ } from "./auth-0e81et3m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./api-q4bn6dy8.js";
12
+ } from "./auth-q4bn6dy8.js";
13
13
  import {
14
- runPtySocket2
15
- } from "./api-h6rt5k9s.js";
14
+ runPtySocket2,
15
+ holdLocation2
16
+ } from "./auth-q187pxxd.js";
16
17
 
17
18
  // src/handlers/pty.ts
18
19
  import { Pty } from "@opencode/core/pty";
@@ -90,6 +91,7 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
90
91
  const cursor = cursorNumber !== undefined && Number.isSafeInteger(cursorNumber) && cursorNumber >= -1 ? cursorNumber : undefined;
91
92
  const socket = yield* Effect.orDie(ctx.request.upgrade);
92
93
  const outbox = yield* Queue.unbounded();
94
+ yield* holdLocation2(outbox);
93
95
  const attachment = yield* pty.attach(ctx.params.ptyID, {
94
96
  cursor,
95
97
  onData: (chunk) => Queue.offerUnsafe(outbox, chunk),
@@ -121,7 +123,7 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
121
123
  detach: () => attachment?.detach()
122
124
  });
123
125
  return HttpServerResponse.empty();
124
- }).pipe(Effect.provide(locations.get(ref)), locationErrors2);
126
+ }).pipe(Effect.scoped, Effect.provide(locations.get(ref)), locationErrors2);
125
127
  }));
126
128
  }));
127
129
 
@@ -3,16 +3,16 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./api-smaf4a18.js";
6
+ } from "./auth-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./api-gymtz25n.js";
9
+ } from "./auth-50bbk3b2.js";
10
10
  import {
11
11
  Api2
12
- } from "./api-v7p1kzzd.js";
12
+ } from "./auth-0e81et3m.js";
13
13
  import {
14
14
  wantsMediaRefs2
15
- } from "./api-xthc02cw.js";
15
+ } from "./auth-xthc02cw.js";
16
16
 
17
17
  // src/handlers/session.ts
18
18
  import { Instance } from "@opencode/core/instance/service";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./api-smaf4a18.js";
3
+ } from "./auth-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./api-gymtz25n.js";
8
+ } from "./auth-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./api-v7p1kzzd.js";
11
+ } from "./auth-0e81et3m.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./api-9rqn6x4v.js";
3
+ } from "./auth-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,
9
+ Service: () => Service4,
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 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 node2 = makeGlobalNode({ service: Service3, layer, deps: [] });
33
+ var node2 = makeGlobalNode({ service: Service4, layer, deps: [] });
34
34
 
35
- export { Service3, node2, exports_pairing };
35
+ export { Service4, node2, exports_pairing };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./api-gymtz25n.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./api-v7p1kzzd.js";
6
+ } from "./auth-0e81et3m.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 "./api-gymtz25n.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./api-v7p1kzzd.js";
6
+ } from "./auth-0e81et3m.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,4 +1,5 @@
1
1
  // src/handlers/pty-socket.ts
2
+ import { LocationLifecycle } from "@opencode/core/location-lifecycle";
2
3
  import { Effect, Queue } from "effect";
3
4
  import { Socket } from "effect/socket";
4
5
  function runPtySocket2(input) {
@@ -20,5 +21,10 @@ function runPtySocket2(input) {
20
21
  });
21
22
  return Effect.raceFirst(drain, read).pipe(Effect.ensuring(Effect.sync(input.detach)), Effect.catchReason("SocketError", "SocketCloseError", () => Effect.void), Effect.orDie);
22
23
  }
24
+ var holdLocation2 = Effect.fnUntraced(function* (outbox) {
25
+ const lifecycle = yield* LocationLifecycle.Service;
26
+ yield* lifecycle.retain;
27
+ yield* lifecycle.awaitShutdown.pipe(Effect.andThen(Queue.offer(outbox, new Socket.CloseEvent(1012, "location shut down"))), Effect.forkChild);
28
+ });
23
29
 
24
- export { runPtySocket2 };
30
+ export { runPtySocket2, holdLocation2 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./api-gymtz25n.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./api-v7p1kzzd.js";
6
+ } from "./auth-0e81et3m.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 "./api-gymtz25n.js";
4
+ } from "./auth-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./api-v7p1kzzd.js";
7
+ } from "./auth-0e81et3m.js";
8
8
 
9
9
  // src/handlers/agent.ts
10
10
  import { Agent } from "@opencode/core/agent";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./api-gymtz25n.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./api-v7p1kzzd.js";
6
+ } from "./auth-0e81et3m.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./api-gymtz25n.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./api-v7p1kzzd.js";
6
+ } from "./auth-0e81et3m.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 "./api-gymtz25n.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./api-v7p1kzzd.js";
6
+ } from "./auth-0e81et3m.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./api-v7p1kzzd.js";
3
+ } from "./auth-0e81et3m.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./api-j4at0y5c.js";
10
- import {
11
- Service4
12
- } from "./api-7dtbad8d.js";
9
+ } from "./auth-j4at0y5c.js";
13
10
  import {
14
11
  Service3
15
- } from "./api-w9jcwh65.js";
12
+ } from "./auth-3te71694.js";
13
+ import {
14
+ Service4
15
+ } from "./auth-mzs0n5xz.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* Service3;
25
+ const pairing = yield* Service4;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
- const info = yield* Service4;
28
+ const info = yield* Service3;
29
29
  return {
30
30
  version: info.app.version ?? "unknown",
31
31
  pid: process.pid ?? 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./api-v7p1kzzd.js";
3
+ } from "./auth-0e81et3m.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 "./api-v7p1kzzd.js";
3
+ } from "./auth-0e81et3m.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
package/dist/cors.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CorsConfig2,
3
3
  isAllowedCorsOrigin2,
4
4
  isAllowedRequestOrigin2
5
- } from "./chunks/api-q4bn6dy8.js";
5
+ } from "./chunks/auth-q4bn6dy8.js";
6
6
  export {
7
7
  CorsConfig2 as CorsConfig,
8
8
  isAllowedCorsOrigin2 as isAllowedCorsOrigin,
@@ -5,9 +5,9 @@ import {
5
5
  Service2,
6
6
  frame2,
7
7
  make4,
8
- layer3,
8
+ layer2,
9
9
  exports_event_feed
10
- } from "./chunks/api-arzv3fj6.js";
10
+ } from "./chunks/auth-fvpjvjpp.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,
@@ -15,6 +15,6 @@ export {
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
  };
package/dist/fetch.js CHANGED
@@ -1,59 +1,59 @@
1
1
  import {
2
- make2,
2
+ make3,
3
3
  exports_fetch
4
- } from "./chunks/api-xeyga1yz.js";
5
- import"./chunks/api-tq4yvz0c.js";
6
- import"./chunks/api-7b9xm1qg.js";
7
- import"./chunks/api-bd8755ek.js";
8
- import"./chunks/api-57jtpf4y.js";
9
- import"./chunks/api-zzxz7279.js";
10
- import"./chunks/api-xfynz25m.js";
11
- import"./chunks/api-f96zeczf.js";
12
- import"./chunks/api-mam5ppd3.js";
13
- import"./chunks/api-0tp180yj.js";
14
- import"./chunks/api-vyzvby0b.js";
15
- import"./chunks/api-s9jd931e.js";
16
- import"./chunks/api-e0z6mnzj.js";
17
- import"./chunks/api-hr24310e.js";
18
- import"./chunks/api-972dky5b.js";
19
- import"./chunks/api-0r9ve3h3.js";
20
- import"./chunks/api-j6d0mxrp.js";
21
- import"./chunks/api-f0kpaq89.js";
22
- import"./chunks/api-q7gnt7ra.js";
23
- import"./chunks/api-b5crh3ce.js";
24
- import"./chunks/api-85kbrn7y.js";
25
- import"./chunks/api-9q55v56g.js";
26
- import"./chunks/api-e4ab5twg.js";
27
- import"./chunks/api-dczgzh3x.js";
28
- import"./chunks/api-va7wgp70.js";
29
- import"./chunks/api-rbck9dgd.js";
30
- import"./chunks/api-3p18p8bt.js";
31
- import"./chunks/api-axx4wwen.js";
32
- import"./chunks/api-xwy6frfd.js";
33
- import"./chunks/api-xad49dn3.js";
34
- import"./chunks/api-tgb4pddq.js";
35
- import"./chunks/api-62bfwtjc.js";
36
- import"./chunks/api-4xzps9pr.js";
37
- import"./chunks/api-21ywsb9g.js";
38
- import"./chunks/api-059rbh9c.js";
39
- import"./chunks/api-h6rt5k9s.js";
40
- import"./chunks/api-n321d8vm.js";
41
- import"./chunks/api-02a60aws.js";
42
- import"./chunks/api-1jtv083t.js";
43
- import"./chunks/api-f1ds1268.js";
44
- import"./chunks/api-y56ann6c.js";
45
- import"./chunks/api-xthc02cw.js";
46
- import"./chunks/api-q4bn6dy8.js";
47
- import"./chunks/api-v7p1kzzd.js";
48
- import"./chunks/api-ddnay6e1.js";
49
- import"./chunks/api-x74w7e1f.js";
50
- import"./chunks/api-gymtz25n.js";
51
- import"./chunks/api-smaf4a18.js";
52
- import"./chunks/api-arzv3fj6.js";
53
- import"./chunks/api-j4at0y5c.js";
54
- import"./chunks/api-w9jcwh65.js";
55
- import"./chunks/api-7dtbad8d.js";
4
+ } from "./chunks/auth-373ntpps.js";
5
+ import"./chunks/auth-ja5tst8d.js";
6
+ import"./chunks/auth-7b9xm1qg.js";
7
+ import"./chunks/auth-bd8755ek.js";
8
+ import"./chunks/auth-6ghv845j.js";
9
+ import"./chunks/auth-05c5061t.js";
10
+ import"./chunks/auth-et00mhwf.js";
11
+ import"./chunks/auth-0j6zxxn8.js";
12
+ import"./chunks/auth-nz17qv97.js";
13
+ import"./chunks/auth-v8aqacn3.js";
14
+ import"./chunks/auth-jjvpqmx6.js";
15
+ import"./chunks/auth-4p2y0qs3.js";
16
+ import"./chunks/auth-s62wjkvx.js";
17
+ import"./chunks/auth-hx8bsq9d.js";
18
+ import"./chunks/auth-vbgqk0mr.js";
19
+ import"./chunks/auth-e2xb6wqz.js";
20
+ import"./chunks/auth-0fv515j7.js";
21
+ import"./chunks/auth-n321d8vm.js";
22
+ import"./chunks/auth-0ey2b45p.js";
23
+ import"./chunks/auth-h1thjy6x.js";
24
+ import"./chunks/auth-dx89xydc.js";
25
+ import"./chunks/auth-2wexxjwf.js";
26
+ import"./chunks/auth-9grnt8dc.js";
27
+ import"./chunks/auth-f8r9p2vr.js";
28
+ import"./chunks/auth-d4534456.js";
29
+ import"./chunks/auth-q187pxxd.js";
30
+ import"./chunks/auth-ap1t95t8.js";
31
+ import"./chunks/auth-s9tkswmw.js";
32
+ import"./chunks/auth-0n4tjm17.js";
33
+ import"./chunks/auth-89egwzf3.js";
34
+ import"./chunks/auth-wj271kqf.js";
35
+ import"./chunks/auth-kg0ybx4v.js";
36
+ import"./chunks/auth-861wfsmy.js";
37
+ import"./chunks/auth-zbe9jfhy.js";
38
+ import"./chunks/auth-n1zdbfv7.js";
39
+ import"./chunks/auth-x4b2rtcb.js";
40
+ import"./chunks/auth-q44yktpv.js";
41
+ import"./chunks/auth-b4mqtccx.js";
42
+ import"./chunks/auth-7nb2rv11.js";
43
+ import"./chunks/auth-059rbh9c.js";
44
+ import"./chunks/auth-jydxnq20.js";
45
+ import"./chunks/auth-q4bn6dy8.js";
46
+ import"./chunks/auth-fvpjvjpp.js";
47
+ import"./chunks/auth-3te71694.js";
48
+ import"./chunks/auth-j4at0y5c.js";
49
+ import"./chunks/auth-0e81et3m.js";
50
+ import"./chunks/auth-b3bmdkga.js";
51
+ import"./chunks/auth-htyf2qs7.js";
52
+ import"./chunks/auth-50bbk3b2.js";
53
+ import"./chunks/auth-smaf4a18.js";
54
+ import"./chunks/auth-mzs0n5xz.js";
55
+ import"./chunks/auth-xthc02cw.js";
56
56
  export {
57
57
  exports_fetch as ServerFetch,
58
- make2 as make
58
+ make3 as make
59
59
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentHandler2
3
- } from "../chunks/api-xad49dn3.js";
4
- import"../chunks/api-v7p1kzzd.js";
5
- import"../chunks/api-ddnay6e1.js";
6
- import"../chunks/api-x74w7e1f.js";
7
- import"../chunks/api-gymtz25n.js";
8
- import"../chunks/api-smaf4a18.js";
3
+ } from "../chunks/auth-s62wjkvx.js";
4
+ import"../chunks/auth-0e81et3m.js";
5
+ import"../chunks/auth-b3bmdkga.js";
6
+ import"../chunks/auth-htyf2qs7.js";
7
+ import"../chunks/auth-50bbk3b2.js";
8
+ import"../chunks/auth-smaf4a18.js";
9
9
  export {
10
10
  AgentHandler2 as AgentHandler
11
11
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  makeArtifact2
3
- } from "../chunks/api-02a60aws.js";
4
- import"../chunks/api-gymtz25n.js";
5
- import"../chunks/api-smaf4a18.js";
3
+ } from "../chunks/auth-0fv515j7.js";
4
+ import"../chunks/auth-50bbk3b2.js";
5
+ import"../chunks/auth-smaf4a18.js";
6
6
  export {
7
7
  makeArtifact2 as makeArtifact
8
8
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CommandHandler2
3
- } from "../chunks/api-zzxz7279.js";
4
- import"../chunks/api-v7p1kzzd.js";
5
- import"../chunks/api-ddnay6e1.js";
6
- import"../chunks/api-x74w7e1f.js";
7
- import"../chunks/api-gymtz25n.js";
8
- import"../chunks/api-smaf4a18.js";
3
+ } from "../chunks/auth-b4mqtccx.js";
4
+ import"../chunks/auth-0e81et3m.js";
5
+ import"../chunks/auth-b3bmdkga.js";
6
+ import"../chunks/auth-htyf2qs7.js";
7
+ import"../chunks/auth-50bbk3b2.js";
8
+ import"../chunks/auth-smaf4a18.js";
9
9
  export {
10
10
  CommandHandler2 as CommandHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ConfigHandler2
3
- } from "../chunks/api-e0z6mnzj.js";
4
- import"../chunks/api-v7p1kzzd.js";
5
- import"../chunks/api-ddnay6e1.js";
6
- import"../chunks/api-x74w7e1f.js";
7
- import"../chunks/api-gymtz25n.js";
8
- import"../chunks/api-smaf4a18.js";
3
+ } from "../chunks/auth-hx8bsq9d.js";
4
+ import"../chunks/auth-0e81et3m.js";
5
+ import"../chunks/auth-b3bmdkga.js";
6
+ import"../chunks/auth-htyf2qs7.js";
7
+ import"../chunks/auth-50bbk3b2.js";
8
+ import"../chunks/auth-smaf4a18.js";
9
9
  export {
10
10
  ConfigHandler2 as ConfigHandler
11
11
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CredentialHandler2
3
- } from "../chunks/api-1jtv083t.js";
4
- import"../chunks/api-f1ds1268.js";
5
- import"../chunks/api-v7p1kzzd.js";
6
- import"../chunks/api-ddnay6e1.js";
7
- import"../chunks/api-x74w7e1f.js";
8
- import"../chunks/api-gymtz25n.js";
9
- import"../chunks/api-smaf4a18.js";
3
+ } from "../chunks/auth-2wexxjwf.js";
4
+ import"../chunks/auth-n1zdbfv7.js";
5
+ import"../chunks/auth-0e81et3m.js";
6
+ import"../chunks/auth-b3bmdkga.js";
7
+ import"../chunks/auth-htyf2qs7.js";
8
+ import"../chunks/auth-50bbk3b2.js";
9
+ import"../chunks/auth-smaf4a18.js";
10
10
  export {
11
11
  CredentialHandler2 as CredentialHandler
12
12
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DebugHandler2
3
- } from "../chunks/api-j6d0mxrp.js";
4
- import"../chunks/api-v7p1kzzd.js";
5
- import"../chunks/api-ddnay6e1.js";
6
- import"../chunks/api-x74w7e1f.js";
7
- import"../chunks/api-gymtz25n.js";
8
- import"../chunks/api-smaf4a18.js";
3
+ } from "../chunks/auth-h1thjy6x.js";
4
+ import"../chunks/auth-0e81et3m.js";
5
+ import"../chunks/auth-b3bmdkga.js";
6
+ import"../chunks/auth-htyf2qs7.js";
7
+ import"../chunks/auth-50bbk3b2.js";
8
+ import"../chunks/auth-smaf4a18.js";
9
9
  export {
10
10
  DebugHandler2 as DebugHandler
11
11
  };