@opencode/server 0.0.0-dev-21906 → 0.0.0-dev-21908

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 +5 -0
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{request-tracing-39nnfjx1.js → cors-0q7s66m2.js} +4 -4
  5. package/dist/chunks/{request-tracing-0c5s68vs.js → cors-17ecnfcg.js} +2 -2
  6. package/dist/chunks/{request-tracing-6z9pvq7p.js → cors-1je14sn4.js} +1 -1
  7. package/dist/chunks/{request-tracing-qd0r787n.js → cors-22wspztn.js} +2 -2
  8. package/dist/chunks/{request-tracing-s282vggx.js → cors-2xcc0x05.js} +1 -1
  9. package/dist/chunks/{request-tracing-4q6twprv.js → cors-31rtm1s3.js} +2 -2
  10. package/dist/chunks/{request-tracing-ny1j968n.js → cors-6vs5sqy6.js} +2 -2
  11. package/dist/chunks/{request-tracing-7b9xm1qg.js → cors-7b9xm1qg.js} +1 -1
  12. package/dist/chunks/{request-tracing-j87xz9bt.js → cors-9c4eyh8m.js} +3 -3
  13. package/dist/chunks/{request-tracing-b2acc4mg.js → cors-a5yawcck.js} +2 -2
  14. package/dist/chunks/{request-tracing-4t612tqm.js → cors-ahexmkv8.js} +3 -3
  15. package/dist/chunks/{request-tracing-5xzbpdv4.js → cors-awjv4jq4.js} +2 -2
  16. package/dist/chunks/{request-tracing-cezwbsk5.js → cors-b2k9041j.js} +1 -1
  17. package/dist/chunks/{request-tracing-5b42hxrf.js → cors-be53s2qz.js} +1 -1
  18. package/dist/chunks/{request-tracing-zpr61asr.js → cors-ckkpcd9y.js} +4 -4
  19. package/dist/chunks/{request-tracing-a8jcac9a.js → cors-dk68ymtv.js} +1 -1
  20. package/dist/chunks/{request-tracing-kkdkqt8j.js → cors-e46y0tfd.js} +2 -2
  21. package/dist/chunks/{request-tracing-htyf2qs7.js → cors-gk0yxcp6.js} +1 -1
  22. package/dist/chunks/{request-tracing-50bbk3b2.js → cors-gqq6kfhc.js} +3 -3
  23. package/dist/chunks/{request-tracing-zcvan105.js → cors-h072q2hm.js} +1 -1
  24. package/dist/chunks/{request-tracing-4fy84009.js → cors-h9rcwvg0.js} +1 -1
  25. package/dist/chunks/{request-tracing-az0609r6.js → cors-hax1v4bv.js} +2 -2
  26. package/dist/chunks/{request-tracing-1v577ncx.js → cors-hnheq3hv.js} +2 -2
  27. package/dist/chunks/{request-tracing-bw6trrfk.js → cors-hyhbf37e.js} +6 -6
  28. package/dist/chunks/{request-tracing-j4at0y5c.js → cors-j4at0y5c.js} +1 -1
  29. package/dist/chunks/{request-tracing-b105zy65.js → cors-j9gxd9me.js} +2 -2
  30. package/dist/chunks/{request-tracing-f559fakr.js → cors-m5rae7m4.js} +2 -2
  31. package/dist/chunks/{request-tracing-ntrsy3zp.js → cors-p2b2w3c7.js} +7 -7
  32. package/dist/chunks/{request-tracing-btahnm2b.js → cors-ppma8fcc.js} +3 -3
  33. package/dist/chunks/{request-tracing-2h6qktqa.js → cors-r6vmgwff.js} +2 -2
  34. package/dist/chunks/{request-tracing-bhbc7551.js → cors-rztv1fyf.js} +4 -4
  35. package/dist/chunks/{request-tracing-hksba7t8.js → cors-stmn2fz7.js} +35 -35
  36. package/dist/chunks/{request-tracing-tcxb910m.js → cors-vpfg86w3.js} +13 -13
  37. package/dist/chunks/{request-tracing-kqr36gas.js → cors-w9jcwh65.js} +7 -7
  38. package/dist/chunks/{request-tracing-d0edqfxx.js → cors-wxj3d9av.js} +2 -2
  39. package/dist/chunks/{request-tracing-r8abc100.js → cors-wyzgdy3p.js} +3 -3
  40. package/dist/chunks/{request-tracing-qcg3sqtb.js → cors-x8dgc261.js} +2 -2
  41. package/dist/chunks/{request-tracing-dhcmfdv7.js → cors-xe9t9xr4.js} +7 -3
  42. package/dist/chunks/{request-tracing-4ybzmrfw.js → cors-xg8gbd2j.js} +8 -8
  43. package/dist/chunks/{request-tracing-b3bmdkga.js → cors-yet0vexm.js} +1 -1
  44. package/dist/chunks/{request-tracing-te8jwba1.js → cors-yr4wsvrw.js} +2 -2
  45. package/dist/chunks/{request-tracing-5pdfedjd.js → cors-z3e7v67k.js} +5 -5
  46. package/dist/chunks/{request-tracing-4q6e7fh8.js → cors-z59gyc0x.js} +2 -2
  47. package/dist/chunks/{request-tracing-t1qh93g0.js → cors-zez59srt.js} +2 -2
  48. package/dist/chunks/{request-tracing-h29xjj1e.js → cors-zjy4sw3d.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 +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.js +44 -44
  87. package/dist/location.js +4 -4
  88. package/dist/middleware/authorization.js +2 -2
  89. package/dist/middleware/form-location.js +3 -3
  90. package/dist/middleware/schema-error.js +1 -1
  91. package/dist/middleware/session-location.js +3 -3
  92. package/dist/pairing.js +3 -3
  93. package/dist/process.js +52 -52
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +47 -47
  96. package/dist/server-info.js +3 -3
  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 → cors-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{request-tracing-erzfdgke.js → cors-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{request-tracing-h6rt5k9s.js → cors-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{request-tracing-q4bn6dy8.js → cors-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{request-tracing-smaf4a18.js → cors-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{request-tracing-yc7nft6q.js → cors-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -4193,12 +4193,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4193
4193
  readonly additions: import("effect/Schema").Int;
4194
4194
  readonly deletions: import("effect/Schema").Int;
4195
4195
  readonly status: import("effect/Schema").Literals<readonly ["added", "deleted", "modified"]>;
4196
+ readonly more: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literal<true>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literal<true>>, never, never>;
4196
4197
  }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
4197
4198
  readonly file: import("effect/Schema").String;
4198
4199
  readonly patch: import("effect/Schema").String;
4199
4200
  readonly additions: import("effect/Schema").Int;
4200
4201
  readonly deletions: import("effect/Schema").Int;
4201
4202
  readonly status: import("effect/Schema").Literals<readonly ["added", "deleted", "modified"]>;
4203
+ readonly more: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literal<true>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literal<true>>, never, never>;
4202
4204
  }>>>, never, never>;
4203
4205
  }>;
4204
4206
  }>;
@@ -4226,12 +4228,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4226
4228
  readonly additions: import("effect/Schema").Int;
4227
4229
  readonly deletions: import("effect/Schema").Int;
4228
4230
  readonly status: import("effect/Schema").Literals<readonly ["added", "deleted", "modified"]>;
4231
+ readonly more: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literal<true>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literal<true>>, never, never>;
4229
4232
  }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
4230
4233
  readonly file: import("effect/Schema").String;
4231
4234
  readonly patch: import("effect/Schema").String;
4232
4235
  readonly additions: import("effect/Schema").Int;
4233
4236
  readonly deletions: import("effect/Schema").Int;
4234
4237
  readonly status: import("effect/Schema").Literals<readonly ["added", "deleted", "modified"]>;
4238
+ readonly more: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literal<true>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literal<true>>, never, never>;
4235
4239
  }>>>, never, never>;
4236
4240
  }>;
4237
4241
  }>;
@@ -7008,6 +7012,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7008
7012
  readonly additions: number;
7009
7013
  readonly deletions: number;
7010
7014
  readonly status: "added" | "deleted" | "modified";
7015
+ readonly more?: true | undefined;
7011
7016
  }[] | undefined;
7012
7017
  };
7013
7018
  };
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/request-tracing-j87xz9bt.js";
4
- import"./chunks/request-tracing-htyf2qs7.js";
5
- import"./chunks/request-tracing-b3bmdkga.js";
6
- import"./chunks/request-tracing-50bbk3b2.js";
7
- import"./chunks/request-tracing-smaf4a18.js";
3
+ } from "./chunks/cors-9c4eyh8m.js";
4
+ import"./chunks/cors-yet0vexm.js";
5
+ import"./chunks/cors-gk0yxcp6.js";
6
+ import"./chunks/cors-gqq6kfhc.js";
7
+ import"./chunks/cors-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/request-tracing-j4at0y5c.js";
10
+ } from "./chunks/cors-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./cors-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: () => make2
9
+ make: () => make4
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make2 = Effect.fnUntraced(function* (options = {}) {
12
+ var make4 = Effect.fnUntraced(function* (options = {}) {
13
13
  const current = yield* Ref.make(options.initial ?? { type: "starting" });
14
14
  const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
15
15
  return {
@@ -20,4 +20,4 @@ var make2 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make2, exports_service_status };
23
+ export { make4, exports_service_status };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./request-tracing-50bbk3b2.js";
4
+ } from "./cors-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-j87xz9bt.js";
7
+ } from "./cors-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-j87xz9bt.js";
3
+ } from "./cors-9c4eyh8m.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-50bbk3b2.js";
3
+ } from "./cors-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-j87xz9bt.js";
6
+ } from "./cors-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-j87xz9bt.js";
3
+ } from "./cors-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./request-tracing-smaf4a18.js";
4
+ } from "./cors-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-j87xz9bt.js";
7
+ } from "./cors-9c4eyh8m.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
  response2
3
- } from "./request-tracing-50bbk3b2.js";
3
+ } from "./cors-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-j87xz9bt.js";
6
+ } from "./cors-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./request-tracing-j4at0y5c.js";
7
+ } from "./cors-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./request-tracing-50bbk3b2.js";
3
+ } from "./cors-gqq6kfhc.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./request-tracing-htyf2qs7.js";
6
+ } from "./cors-gk0yxcp6.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./request-tracing-b3bmdkga.js";
9
+ } from "./cors-yet0vexm.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./request-tracing-50bbk3b2.js";
4
+ } from "./cors-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-j87xz9bt.js";
7
+ } from "./cors-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -3,13 +3,13 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./request-tracing-smaf4a18.js";
6
+ } from "./cors-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./request-tracing-50bbk3b2.js";
9
+ } from "./cors-gqq6kfhc.js";
10
10
  import {
11
11
  Api2
12
- } from "./request-tracing-j87xz9bt.js";
12
+ } from "./cors-9c4eyh8m.js";
13
13
 
14
14
  // src/handlers/session.ts
15
15
  import { Instance } from "@opencode/core/instance/service";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-50bbk3b2.js";
3
+ } from "./cors-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-j87xz9bt.js";
6
+ } from "./cors-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-j87xz9bt.js";
3
+ } from "./cors-9c4eyh8m.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
  Api2
3
- } from "./request-tracing-j87xz9bt.js";
3
+ } from "./cors-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/credential.ts
6
6
  import { Credential } from "@opencode/core/credential";
@@ -2,17 +2,17 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./request-tracing-50bbk3b2.js";
5
+ } from "./cors-gqq6kfhc.js";
6
6
  import {
7
7
  Api2
8
- } from "./request-tracing-j87xz9bt.js";
8
+ } from "./cors-9c4eyh8m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./request-tracing-q4bn6dy8.js";
12
+ } from "./cors-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2
15
- } from "./request-tracing-h6rt5k9s.js";
15
+ } from "./cors-h6rt5k9s.js";
16
16
 
17
17
  // src/handlers/pty.ts
18
18
  import { Pty } from "@opencode/core/pty";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-j87xz9bt.js";
3
+ } from "./cors-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./request-tracing-50bbk3b2.js";
4
+ } from "./cors-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-j87xz9bt.js";
7
+ } from "./cors-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./request-tracing-50bbk3b2.js";
5
+ } from "./cors-gqq6kfhc.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
  missingSession2
3
- } from "./request-tracing-smaf4a18.js";
3
+ } from "./cors-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -59,7 +59,7 @@ function decode(input) {
59
59
  return input;
60
60
  }
61
61
  }
62
- var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
62
+ var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
63
63
  const locations = yield* LocationServiceMap.Service;
64
64
  return LocationMiddleware2.of((effect) => Effect.gen(function* () {
65
65
  const request = yield* HttpServerRequest.HttpServerRequest;
@@ -67,4 +67,4 @@ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer4 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer3 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-j87xz9bt.js";
3
+ } from "./cors-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-j87xz9bt.js";
3
+ } from "./cors-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./request-tracing-50bbk3b2.js";
4
+ } from "./cors-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-j87xz9bt.js";
7
+ } from "./cors-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/provider.ts
10
10
  import { Provider } from "@opencode/core/provider";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./request-tracing-50bbk3b2.js";
4
+ } from "./cors-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-j87xz9bt.js";
7
+ } from "./cors-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/agent.ts
10
10
  import { Agent } from "@opencode/core/agent";
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./request-tracing-q4bn6dy8.js";
3
+ } from "./cors-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./request-tracing-tcxb910m.js";
6
+ } from "./cors-vpfg86w3.js";
7
7
  import {
8
8
  __export
9
- } from "./request-tracing-9rqn6x4v.js";
9
+ } from "./cors-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: () => make3
15
+ make: () => make2
16
16
  });
17
17
  import { Context, Effect, Layer } from "effect";
18
18
  import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
19
19
  import { SessionRestart } from "@opencode/core/session/execution/restart";
20
- var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
20
+ var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
21
21
  const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
22
22
  yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
23
23
  return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
24
24
  });
25
25
 
26
- export { make3, exports_fetch };
26
+ export { make2, exports_fetch };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./cors-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./request-tracing-50bbk3b2.js";
4
+ } from "./cors-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-j87xz9bt.js";
7
+ } from "./cors-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/usage.ts
10
10
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-50bbk3b2.js";
3
+ } from "./cors-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-j87xz9bt.js";
6
+ } from "./cors-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./cors-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
@@ -11,8 +11,8 @@ __export(exports_event_feed, {
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer3,
15
- make: () => make4
14
+ layer: () => layer4,
15
+ make: () => make3
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
18
18
  import { Event } from "@opencode/schema/event";
@@ -37,7 +37,7 @@ function frame2(event) {
37
37
 
38
38
  `;
39
39
  }
40
- var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
40
+ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
41
41
  const capacity = options?.capacity ?? SubscriberCapacity2;
42
42
  const render = options?.encode ?? frame2;
43
43
  const subscribers = new Set;
@@ -75,9 +75,9 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
75
75
  subscribe: Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.add(queue)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
76
76
  });
77
77
  });
78
- var layer3 = Layer.effect(Service4, Effect.gen(function* () {
78
+ var layer4 = Layer.effect(Service4, Effect.gen(function* () {
79
79
  const bus = yield* Bus.Service;
80
- return yield* make4(bus.listen);
80
+ return yield* make3(bus.listen);
81
81
  }));
82
82
 
83
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer3, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make3, layer4, exports_event_feed };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./request-tracing-smaf4a18.js";
3
+ } from "./cors-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./request-tracing-50bbk3b2.js";
8
+ } from "./cors-gqq6kfhc.js";
9
9
  import {
10
10
  Api2
11
- } from "./request-tracing-j87xz9bt.js";
11
+ } from "./cors-9c4eyh8m.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-50bbk3b2.js";
3
+ } from "./cors-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-j87xz9bt.js";
6
+ } from "./cors-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -2,17 +2,17 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./request-tracing-50bbk3b2.js";
5
+ } from "./cors-gqq6kfhc.js";
6
6
  import {
7
7
  Api2
8
- } from "./request-tracing-j87xz9bt.js";
8
+ } from "./cors-9c4eyh8m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./request-tracing-q4bn6dy8.js";
12
+ } from "./cors-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2
15
- } from "./request-tracing-h6rt5k9s.js";
15
+ } from "./cors-h6rt5k9s.js";
16
16
 
17
17
  // src/handlers/mcp.ts
18
18
  import { Location } from "@opencode/core/location";