@opencode/server 0.0.0-dev-21881 → 0.0.0-dev-21894

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 (107) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{fetch-ez8kk7rt.js → location-0e4fm4yw.js} +1 -1
  4. package/dist/chunks/{fetch-j1p3e665.js → location-0pbbhyf6.js} +24 -6
  5. package/dist/chunks/{fetch-9ysy73xp.js → location-1q9bkvt1.js} +4 -4
  6. package/dist/chunks/{fetch-eajbg6ry.js → location-1s3664te.js} +4 -4
  7. package/dist/chunks/{fetch-vdcre1n5.js → location-2835150m.js} +2 -2
  8. package/dist/chunks/{fetch-ztnmeapk.js → location-2qjvs0kv.js} +4 -4
  9. package/dist/chunks/{fetch-0r0edp62.js → location-3kjp2hst.js} +3 -3
  10. package/dist/chunks/{fetch-yv9sxhn9.js → location-3mffapg0.js} +2 -2
  11. package/dist/chunks/{fetch-w0jn068c.js → location-3yw6ah7d.js} +2 -2
  12. package/dist/chunks/{fetch-mhfbkkb7.js → location-4gk9fc6f.js} +2 -2
  13. package/dist/chunks/{fetch-ka1fmf42.js → location-4y0588xc.js} +35 -35
  14. package/dist/chunks/{fetch-9mfgjndz.js → location-50xc6x42.js} +3 -3
  15. package/dist/chunks/{fetch-82sqqxbn.js → location-5z5anmwp.js} +2 -2
  16. package/dist/chunks/{fetch-3aej5azy.js → location-74kxthdf.js} +1 -1
  17. package/dist/chunks/{fetch-7b9xm1qg.js → location-7b9xm1qg.js} +1 -1
  18. package/dist/chunks/{fetch-vdtx70fv.js → location-7cd61xtm.js} +2 -2
  19. package/dist/chunks/{fetch-gsqctp76.js → location-7x1re4zg.js} +2 -2
  20. package/dist/chunks/{fetch-e6e4kz0w.js → location-e6e4kz0w.js} +1 -1
  21. package/dist/chunks/{fetch-mk2mz66m.js → location-f4exzdsf.js} +4 -2
  22. package/dist/chunks/{fetch-4gnb9897.js → location-gk0yxcp6.js} +5 -3
  23. package/dist/chunks/{fetch-50bbk3b2.js → location-gqq6kfhc.js} +3 -3
  24. package/dist/chunks/{fetch-n60r5keb.js → location-hdwd22w5.js} +1 -1
  25. package/dist/chunks/{fetch-j4at0y5c.js → location-j4at0y5c.js} +1 -1
  26. package/dist/chunks/{fetch-kypj8v4s.js → location-jc2vwkyw.js} +2 -2
  27. package/dist/chunks/{fetch-dnwg64ce.js → location-k6dz4enc.js} +7 -7
  28. package/dist/chunks/{fetch-rfdbtrd0.js → location-nhmzdcst.js} +3 -3
  29. package/dist/chunks/{fetch-rc3nk1bx.js → location-np6gr6g7.js} +2 -2
  30. package/dist/chunks/{fetch-4w75v92x.js → location-qfvz5xpd.js} +2 -2
  31. package/dist/chunks/{fetch-q8n44kky.js → location-r5696se6.js} +3 -3
  32. package/dist/chunks/{fetch-6ypp9np2.js → location-rxyx8sa0.js} +2 -2
  33. package/dist/chunks/{fetch-eaxk76q8.js → location-skcryrty.js} +2 -2
  34. package/dist/chunks/{fetch-zy1yk0n2.js → location-vfkjeyp3.js} +1 -1
  35. package/dist/chunks/{fetch-gx9nwmym.js → location-vtfzy3at.js} +4 -2
  36. package/dist/chunks/{fetch-vbanrv0z.js → location-vvp99hc9.js} +1 -1
  37. package/dist/chunks/{fetch-mzs0n5xz.js → location-w9jcwh65.js} +7 -7
  38. package/dist/chunks/{fetch-krpsczf8.js → location-xbqm7mpj.js} +2 -2
  39. package/dist/chunks/{fetch-0cppk2bc.js → location-xckd9f88.js} +2 -2
  40. package/dist/chunks/{fetch-mahm5rvs.js → location-xpg37vzc.js} +2 -2
  41. package/dist/chunks/{fetch-rwnm9zvw.js → location-y6e7cs8e.js} +10 -8
  42. package/dist/chunks/{fetch-b3bmdkga.js → location-yet0vexm.js} +1 -1
  43. package/dist/chunks/{fetch-v4mq5ya7.js → location-yr80hdrp.js} +3 -3
  44. package/dist/chunks/{fetch-3te71694.js → location-z3e7v67k.js} +7 -7
  45. package/dist/chunks/{fetch-k8rzy6d4.js → location-zmgfywqd.js} +1 -1
  46. package/dist/chunks/{fetch-5ynbgcax.js → location-ztrvqkd5.js} +19 -16
  47. package/dist/chunks/{fetch-7b00qdf6.js → location-zyntahe8.js} +1 -1
  48. package/dist/cors.js +1 -1
  49. package/dist/event-feed.js +5 -5
  50. package/dist/fetch.js +48 -48
  51. package/dist/handlers/agent.js +6 -6
  52. package/dist/handlers/command.js +6 -6
  53. package/dist/handlers/config.js +6 -6
  54. package/dist/handlers/credential.js +6 -6
  55. package/dist/handlers/debug.js +6 -6
  56. package/dist/handlers/event.js +7 -7
  57. package/dist/handlers/form.js +6 -6
  58. package/dist/handlers/fs.d.ts +2 -1
  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 +8 -8
  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 +8 -8
  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/usage.js +6 -6
  82. package/dist/handlers/vcs.js +6 -6
  83. package/dist/handlers/voice.js +6 -6
  84. package/dist/handlers/websearch.js +6 -6
  85. package/dist/handlers/worktree.js +6 -6
  86. package/dist/handlers.d.ts +1 -1
  87. package/dist/handlers.js +44 -44
  88. package/dist/location.js +4 -4
  89. package/dist/middleware/authorization.js +2 -2
  90. package/dist/middleware/form-location.js +3 -3
  91. package/dist/middleware/schema-error.js +1 -1
  92. package/dist/middleware/session-location.js +3 -3
  93. package/dist/pairing.js +3 -3
  94. package/dist/process.js +50 -50
  95. package/dist/request-tracing.js +1 -1
  96. package/dist/routes.d.ts +3 -2
  97. package/dist/routes.js +47 -47
  98. package/dist/server-info.js +5 -5
  99. package/dist/service-status.js +1 -1
  100. package/dist/workerd.js +49 -49
  101. package/package.json +8 -8
  102. /package/dist/chunks/{fetch-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  103. /package/dist/chunks/{fetch-erzfdgke.js → location-erzfdgke.js} +0 -0
  104. /package/dist/chunks/{fetch-h6rt5k9s.js → location-h6rt5k9s.js} +0 -0
  105. /package/dist/chunks/{fetch-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
  106. /package/dist/chunks/{fetch-smaf4a18.js → location-smaf4a18.js} +0 -0
  107. /package/dist/chunks/{fetch-yc7nft6q.js → location-yc7nft6q.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./fetch-50bbk3b2.js";
3
+ } from "./location-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-q8n44kky.js";
6
+ } from "./location-r5696se6.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./fetch-smaf4a18.js";
4
+ } from "./location-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./fetch-q8n44kky.js";
7
+ } from "./location-r5696se6.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./fetch-50bbk3b2.js";
3
+ } from "./location-gqq6kfhc.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./fetch-4gnb9897.js";
6
+ } from "./location-gk0yxcp6.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./fetch-b3bmdkga.js";
9
+ } from "./location-yet0vexm.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./fetch-50bbk3b2.js";
3
+ } from "./location-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-q8n44kky.js";
6
+ } from "./location-r5696se6.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./fetch-50bbk3b2.js";
3
+ } from "./location-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-q8n44kky.js";
6
+ } from "./location-r5696se6.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./fetch-q8n44kky.js";
3
+ } from "./location-r5696se6.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,9 +1,10 @@
1
1
  import {
2
+ awaitPlugins2,
2
3
  response2
3
- } from "./fetch-50bbk3b2.js";
4
+ } from "./location-gqq6kfhc.js";
4
5
  import {
5
6
  Api2
6
- } from "./fetch-q8n44kky.js";
7
+ } from "./location-r5696se6.js";
7
8
 
8
9
  // src/handlers/provider.ts
9
10
  import { Provider } from "@opencode/core/provider";
@@ -12,6 +13,7 @@ import { Effect } from "effect";
12
13
  import { HttpApiBuilder } from "effect/http-api";
13
14
  var ProviderHandler2 = HttpApiBuilder.group(Api2, "server.provider", (handlers) => Effect.gen(function* () {
14
15
  return handlers.handle("provider.list", Effect.fn(function* () {
16
+ yield* awaitPlugins2;
15
17
  const providers = yield* Provider.Service;
16
18
  return yield* response2(providers.available());
17
19
  })).handle("provider.get", Effect.fn(function* (ctx) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./fetch-q8n44kky.js";
3
+ } from "./location-r5696se6.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./fetch-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: () => 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 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./fetch-50bbk3b2.js";
3
+ } from "./location-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-q8n44kky.js";
6
+ } from "./location-r5696se6.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./fetch-50bbk3b2.js";
3
+ } from "./location-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-q8n44kky.js";
6
+ } from "./location-r5696se6.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./fetch-50bbk3b2.js";
3
+ } from "./location-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-q8n44kky.js";
6
+ } from "./location-r5696se6.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,33 +1,35 @@
1
1
  import {
2
2
  Api2
3
- } from "./fetch-q8n44kky.js";
3
+ } from "./location-r5696se6.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./fetch-j4at0y5c.js";
9
+ } from "./location-j4at0y5c.js";
10
10
  import {
11
- Service3
12
- } from "./fetch-3te71694.js";
11
+ Service2
12
+ } from "./location-z3e7v67k.js";
13
13
  import {
14
- Service4
15
- } from "./fetch-mzs0n5xz.js";
14
+ Service3
15
+ } from "./location-w9jcwh65.js";
16
16
 
17
17
  // src/handlers/server.ts
18
+ import { hostname } from "node:os";
18
19
  import { Duration, Effect } from "effect";
19
20
  import { HttpServerRequest, HttpServerResponse } from "effect/http";
20
21
  import { HttpApiBuilder } from "effect/http-api";
21
22
  import { PersistentPty } from "@opencode/core/persistent-pty";
22
23
  import { UnauthorizedError } from "@opencode/protocol/errors";
23
24
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
24
- const pairing = yield* Service4;
25
+ const pairing = yield* Service3;
25
26
  const auth = yield* Config2;
26
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
27
- const info = yield* Service3;
28
+ const info = yield* Service2;
28
29
  return {
29
30
  version: info.app.version ?? "unknown",
30
31
  pid: process.pid ?? 0,
32
+ hostname: hostname() || undefined,
31
33
  urls: info.urls(),
32
34
  paths: info.paths,
33
35
  capabilities: { persistentPty: PersistentPty.available }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./fetch-50bbk3b2.js";
4
+ } from "./location-gqq6kfhc.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Api2
3
- } from "./fetch-q8n44kky.js";
3
+ } from "./location-r5696se6.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./fetch-q4bn6dy8.js";
7
+ } from "./location-q4bn6dy8.js";
8
8
  import {
9
9
  runPtySocket2
10
- } from "./fetch-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,22 +1,22 @@
1
1
  import {
2
2
  __export
3
- } from "./fetch-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: () => Service3,
9
+ Service: () => Service2,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer3
11
+ layer: () => layer2
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 Service2 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer3(urls, tmp, app = {}) {
19
- return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
18
+ function layer2(urls, tmp, app = {}) {
19
+ return Layer.succeed(Service2, Service2.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 { Service2, layer2, connectionURLs2, exports_server_info };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./fetch-q8n44kky.js";
3
+ } from "./location-r5696se6.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,36 +1,36 @@
1
1
  import {
2
- layer4
3
- } from "./fetch-50bbk3b2.js";
2
+ layer3
3
+ } from "./location-gqq6kfhc.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./fetch-4gnb9897.js";
6
+ } from "./location-gk0yxcp6.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./fetch-b3bmdkga.js";
9
+ } from "./location-yet0vexm.js";
10
10
  import {
11
11
  Api2
12
- } from "./fetch-q8n44kky.js";
12
+ } from "./location-r5696se6.js";
13
13
  import {
14
14
  Config2
15
- } from "./fetch-j4at0y5c.js";
15
+ } from "./location-j4at0y5c.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./fetch-q4bn6dy8.js";
18
+ } from "./location-q4bn6dy8.js";
19
19
  import {
20
- layer3
21
- } from "./fetch-3te71694.js";
20
+ layer2
21
+ } from "./location-z3e7v67k.js";
22
22
  import {
23
23
  node2
24
- } from "./fetch-mzs0n5xz.js";
24
+ } from "./location-w9jcwh65.js";
25
25
  import {
26
26
  handlers2
27
- } from "./fetch-ka1fmf42.js";
27
+ } from "./location-4y0588xc.js";
28
28
  import {
29
29
  authorizationLayer2
30
- } from "./fetch-7b9xm1qg.js";
30
+ } from "./location-7b9xm1qg.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./fetch-erzfdgke.js";
33
+ } from "./location-erzfdgke.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -68,6 +68,7 @@ import { SdkPlugins } from "@opencode/core/plugin/sdk";
68
68
  import { WellKnown } from "@opencode/core/wellknown";
69
69
  import { Workspace } from "@opencode/core/workspace";
70
70
  import { Watcher } from "@opencode/core/filesystem/watcher";
71
+ import { FileWatch } from "@opencode/core/filesystem/file-watch";
71
72
  import { HttpRouter } from "effect/http";
72
73
  import { HttpApiBuilder } from "effect/http-api";
73
74
  import { Context, Effect, Layer, Option } from "effect";
@@ -97,7 +98,8 @@ var applicationServiceNodes = [
97
98
  LocationServiceMap.node,
98
99
  LocationActivity.node,
99
100
  SessionRestart.node,
100
- Workspace.node
101
+ Workspace.node,
102
+ FileWatch.node
101
103
  ];
102
104
  var applicationServices = LayerNode.group(applicationServiceNodes);
103
105
  function createRoutes2(options = {}, serviceURLs = () => [], overrides = []) {
@@ -114,6 +116,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
114
116
  App.node.replace(App.configured(options.app)),
115
117
  ModelsDev.node.replace(ModelsDev.configured(options.models)),
116
118
  Watcher.node.replace(Watcher.configured({ enabled: options.fs?.filewatcher })),
119
+ FileWatch.node.replace(FileWatch.configured({ enabled: options.fs?.filewatcher })),
117
120
  FileSystemSearch.node.replace(FileSystemSearch.configured({ fff: options.fs?.fff })),
118
121
  Global.node.replace(Global.layerWith(options.config?.directory ? { config: options.config.directory } : {})),
119
122
  Config.node.replace(Config.configured({
@@ -146,8 +149,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
146
149
  })) : build(overrides);
147
150
  return serviceLayer.pipe(Layer.flatMap((context) => {
148
151
  const services = Layer.succeedContext(context);
149
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer3(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
150
- const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
152
+ 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));
153
+ 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(layer3), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
151
154
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
152
155
  }));
153
156
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./fetch-q8n44kky.js";
3
+ } from "./location-r5696se6.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
package/dist/cors.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CorsConfig2,
3
3
  isAllowedCorsOrigin2,
4
4
  isAllowedRequestOrigin2
5
- } from "./chunks/fetch-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
- Service2,
5
+ Service4,
6
6
  frame2,
7
7
  make4,
8
- layer2,
8
+ layer4,
9
9
  exports_event_feed
10
- } from "./chunks/fetch-dnwg64ce.js";
10
+ } from "./chunks/location-k6dz4enc.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,
14
- Service2 as Service,
14
+ Service4 as Service,
15
15
  SubscriberCapacity2 as SubscriberCapacity,
16
16
  SubscriberOverflowError2 as SubscriberOverflowError,
17
17
  frame2 as frame,
18
- layer2 as layer,
18
+ layer4 as layer,
19
19
  make4 as make
20
20
  };
package/dist/fetch.js CHANGED
@@ -1,54 +1,54 @@
1
1
  import {
2
2
  make2,
3
3
  exports_fetch
4
- } from "./chunks/fetch-0r0edp62.js";
5
- import"./chunks/fetch-5ynbgcax.js";
6
- import"./chunks/fetch-erzfdgke.js";
7
- import"./chunks/fetch-7b9xm1qg.js";
8
- import"./chunks/fetch-ka1fmf42.js";
9
- import"./chunks/fetch-vdcre1n5.js";
10
- import"./chunks/fetch-n60r5keb.js";
11
- import"./chunks/fetch-9mfgjndz.js";
12
- import"./chunks/fetch-3aej5azy.js";
13
- import"./chunks/fetch-gsqctp76.js";
14
- import"./chunks/fetch-mahm5rvs.js";
15
- import"./chunks/fetch-eajbg6ry.js";
16
- import"./chunks/fetch-eaxk76q8.js";
17
- import"./chunks/fetch-mhfbkkb7.js";
18
- import"./chunks/fetch-rfdbtrd0.js";
19
- import"./chunks/fetch-vbanrv0z.js";
20
- import"./chunks/fetch-rwnm9zvw.js";
21
- import"./chunks/fetch-yv9sxhn9.js";
22
- import"./chunks/fetch-v4mq5ya7.js";
23
- import"./chunks/fetch-mk2mz66m.js";
24
- import"./chunks/fetch-82sqqxbn.js";
25
- import"./chunks/fetch-ez8kk7rt.js";
26
- import"./chunks/fetch-kypj8v4s.js";
27
- import"./chunks/fetch-zy1yk0n2.js";
28
- import"./chunks/fetch-0cppk2bc.js";
29
- import"./chunks/fetch-ztnmeapk.js";
30
- import"./chunks/fetch-h6rt5k9s.js";
31
- import"./chunks/fetch-gx9nwmym.js";
32
- import"./chunks/fetch-j1p3e665.js";
33
- import"./chunks/fetch-6ypp9np2.js";
34
- import"./chunks/fetch-vdtx70fv.js";
35
- import"./chunks/fetch-9ysy73xp.js";
36
- import"./chunks/fetch-4w75v92x.js";
37
- import"./chunks/fetch-k8rzy6d4.js";
38
- import"./chunks/fetch-krpsczf8.js";
39
- import"./chunks/fetch-7b00qdf6.js";
40
- import"./chunks/fetch-rc3nk1bx.js";
41
- import"./chunks/fetch-dnwg64ce.js";
42
- import"./chunks/fetch-3te71694.js";
43
- import"./chunks/fetch-mzs0n5xz.js";
44
- import"./chunks/fetch-w0jn068c.js";
45
- import"./chunks/fetch-q8n44kky.js";
46
- import"./chunks/fetch-b3bmdkga.js";
47
- import"./chunks/fetch-4gnb9897.js";
48
- import"./chunks/fetch-j4at0y5c.js";
49
- import"./chunks/fetch-q4bn6dy8.js";
50
- import"./chunks/fetch-50bbk3b2.js";
51
- import"./chunks/fetch-smaf4a18.js";
4
+ } from "./chunks/location-3kjp2hst.js";
5
+ import"./chunks/location-ztrvqkd5.js";
6
+ import"./chunks/location-erzfdgke.js";
7
+ import"./chunks/location-7b9xm1qg.js";
8
+ import"./chunks/location-4y0588xc.js";
9
+ import"./chunks/location-2qjvs0kv.js";
10
+ import"./chunks/location-vfkjeyp3.js";
11
+ import"./chunks/location-7x1re4zg.js";
12
+ import"./chunks/location-yr80hdrp.js";
13
+ import"./chunks/location-50xc6x42.js";
14
+ import"./chunks/location-y6e7cs8e.js";
15
+ import"./chunks/location-5z5anmwp.js";
16
+ import"./chunks/location-7cd61xtm.js";
17
+ import"./chunks/location-1q9bkvt1.js";
18
+ import"./chunks/location-vvp99hc9.js";
19
+ import"./chunks/location-nhmzdcst.js";
20
+ import"./chunks/location-0pbbhyf6.js";
21
+ import"./chunks/location-skcryrty.js";
22
+ import"./chunks/location-zyntahe8.js";
23
+ import"./chunks/location-rxyx8sa0.js";
24
+ import"./chunks/location-0e4fm4yw.js";
25
+ import"./chunks/location-np6gr6g7.js";
26
+ import"./chunks/location-vtfzy3at.js";
27
+ import"./chunks/location-1s3664te.js";
28
+ import"./chunks/location-h6rt5k9s.js";
29
+ import"./chunks/location-jc2vwkyw.js";
30
+ import"./chunks/location-hdwd22w5.js";
31
+ import"./chunks/location-xbqm7mpj.js";
32
+ import"./chunks/location-f4exzdsf.js";
33
+ import"./chunks/location-74kxthdf.js";
34
+ import"./chunks/location-3yw6ah7d.js";
35
+ import"./chunks/location-3mffapg0.js";
36
+ import"./chunks/location-qfvz5xpd.js";
37
+ import"./chunks/location-zmgfywqd.js";
38
+ import"./chunks/location-xckd9f88.js";
39
+ import"./chunks/location-2835150m.js";
40
+ import"./chunks/location-xpg37vzc.js";
41
+ import"./chunks/location-z3e7v67k.js";
42
+ import"./chunks/location-4gk9fc6f.js";
43
+ import"./chunks/location-r5696se6.js";
44
+ import"./chunks/location-gk0yxcp6.js";
45
+ import"./chunks/location-yet0vexm.js";
46
+ import"./chunks/location-gqq6kfhc.js";
47
+ import"./chunks/location-smaf4a18.js";
48
+ import"./chunks/location-w9jcwh65.js";
49
+ import"./chunks/location-q4bn6dy8.js";
50
+ import"./chunks/location-k6dz4enc.js";
51
+ import"./chunks/location-j4at0y5c.js";
52
52
  export {
53
53
  exports_fetch as ServerFetch,
54
54
  make2 as make
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentHandler2
3
- } from "../chunks/fetch-mk2mz66m.js";
4
- import"../chunks/fetch-q8n44kky.js";
5
- import"../chunks/fetch-b3bmdkga.js";
6
- import"../chunks/fetch-4gnb9897.js";
7
- import"../chunks/fetch-50bbk3b2.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/location-f4exzdsf.js";
4
+ import"../chunks/location-r5696se6.js";
5
+ import"../chunks/location-gk0yxcp6.js";
6
+ import"../chunks/location-yet0vexm.js";
7
+ import"../chunks/location-gqq6kfhc.js";
8
+ import"../chunks/location-smaf4a18.js";
9
9
  export {
10
10
  AgentHandler2 as AgentHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CommandHandler2
3
- } from "../chunks/fetch-mahm5rvs.js";
4
- import"../chunks/fetch-q8n44kky.js";
5
- import"../chunks/fetch-b3bmdkga.js";
6
- import"../chunks/fetch-4gnb9897.js";
7
- import"../chunks/fetch-50bbk3b2.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/location-xpg37vzc.js";
4
+ import"../chunks/location-r5696se6.js";
5
+ import"../chunks/location-gk0yxcp6.js";
6
+ import"../chunks/location-yet0vexm.js";
7
+ import"../chunks/location-gqq6kfhc.js";
8
+ import"../chunks/location-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/fetch-ez8kk7rt.js";
4
- import"../chunks/fetch-q8n44kky.js";
5
- import"../chunks/fetch-b3bmdkga.js";
6
- import"../chunks/fetch-4gnb9897.js";
7
- import"../chunks/fetch-50bbk3b2.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/location-0e4fm4yw.js";
4
+ import"../chunks/location-r5696se6.js";
5
+ import"../chunks/location-gk0yxcp6.js";
6
+ import"../chunks/location-yet0vexm.js";
7
+ import"../chunks/location-gqq6kfhc.js";
8
+ import"../chunks/location-smaf4a18.js";
9
9
  export {
10
10
  ConfigHandler2 as ConfigHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CredentialHandler2
3
- } from "../chunks/fetch-n60r5keb.js";
4
- import"../chunks/fetch-q8n44kky.js";
5
- import"../chunks/fetch-b3bmdkga.js";
6
- import"../chunks/fetch-4gnb9897.js";
7
- import"../chunks/fetch-50bbk3b2.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/location-hdwd22w5.js";
4
+ import"../chunks/location-r5696se6.js";
5
+ import"../chunks/location-gk0yxcp6.js";
6
+ import"../chunks/location-yet0vexm.js";
7
+ import"../chunks/location-gqq6kfhc.js";
8
+ import"../chunks/location-smaf4a18.js";
9
9
  export {
10
10
  CredentialHandler2 as CredentialHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DebugHandler2
3
- } from "../chunks/fetch-kypj8v4s.js";
4
- import"../chunks/fetch-q8n44kky.js";
5
- import"../chunks/fetch-b3bmdkga.js";
6
- import"../chunks/fetch-4gnb9897.js";
7
- import"../chunks/fetch-50bbk3b2.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/location-jc2vwkyw.js";
4
+ import"../chunks/location-r5696se6.js";
5
+ import"../chunks/location-gk0yxcp6.js";
6
+ import"../chunks/location-yet0vexm.js";
7
+ import"../chunks/location-gqq6kfhc.js";
8
+ import"../chunks/location-smaf4a18.js";
9
9
  export {
10
10
  DebugHandler2 as DebugHandler
11
11
  };