@opencode/server 0.0.0-dev-21784 → 0.0.0-dev-21788

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 +0 -33
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{pairing-t8b0det0.js → service-status-01xew4zj.js} +4 -4
  5. package/dist/chunks/{pairing-4w75v92x.js → service-status-1e765wh0.js} +2 -2
  6. package/dist/chunks/{pairing-e6e4kz0w.js → service-status-39nnfjx1.js} +4 -4
  7. package/dist/chunks/{pairing-k8rzy6d4.js → service-status-3d7qdbre.js} +1 -1
  8. package/dist/chunks/{pairing-z3e7v67k.js → service-status-3te71694.js} +7 -7
  9. package/dist/chunks/{pairing-4gnb9897.js → service-status-4gnb9897.js} +1 -1
  10. package/dist/chunks/{pairing-q8n44kky.js → service-status-4nbah0zs.js} +3 -3
  11. package/dist/chunks/{pairing-50bbk3b2.js → service-status-50bbk3b2.js} +1 -1
  12. package/dist/chunks/{pairing-ysps4amp.js → service-status-50ds5bvf.js} +6 -6
  13. package/dist/chunks/{pairing-krpsczf8.js → service-status-547pgmmc.js} +2 -2
  14. package/dist/chunks/{pairing-7b9xm1qg.js → service-status-7b9xm1qg.js} +1 -1
  15. package/dist/chunks/{pairing-3aej5azy.js → service-status-7xe5pzvy.js} +1 -1
  16. package/dist/chunks/{pairing-b3bmdkga.js → service-status-b3bmdkga.js} +1 -1
  17. package/dist/chunks/{pairing-2pxz5brc.js → service-status-befrkb2k.js} +8 -8
  18. package/dist/chunks/{pairing-82sqqxbn.js → service-status-ca30pptj.js} +2 -2
  19. package/dist/chunks/{pairing-yv9sxhn9.js → service-status-cpp0zjdy.js} +2 -2
  20. package/dist/chunks/{pairing-ntrsy3zp.js → service-status-dnwg64ce.js} +7 -7
  21. package/dist/chunks/{pairing-9mfgjndz.js → service-status-emkxpff3.js} +3 -3
  22. package/dist/chunks/{pairing-gx9nwmym.js → service-status-fazm2c7b.js} +2 -2
  23. package/dist/chunks/{pairing-xytmyrg1.js → service-status-fwwttn5v.js} +13 -13
  24. package/dist/chunks/{pairing-mahm5rvs.js → service-status-fysmzcya.js} +2 -2
  25. package/dist/chunks/{pairing-a2ssjmyk.js → service-status-g3mfewdn.js} +4 -4
  26. package/dist/chunks/{pairing-mk2mz66m.js → service-status-g7sdbt1s.js} +2 -2
  27. package/dist/chunks/{pairing-w0jn068c.js → service-status-gq8jw616.js} +2 -2
  28. package/dist/chunks/{pairing-rc3nk1bx.js → service-status-gw6rc7x0.js} +2 -2
  29. package/dist/chunks/{pairing-kypj8v4s.js → service-status-gy667q5r.js} +2 -2
  30. package/dist/chunks/{pairing-f42vky19.js → service-status-hwjnnkmp.js} +35 -35
  31. package/dist/chunks/{pairing-ez8kk7rt.js → service-status-hwqxzcvy.js} +1 -1
  32. package/dist/chunks/{pairing-j4at0y5c.js → service-status-j4at0y5c.js} +1 -1
  33. package/dist/chunks/{pairing-0cppk2bc.js → service-status-jd2d9483.js} +2 -2
  34. package/dist/chunks/{pairing-mhfbkkb7.js → service-status-jk5edc6h.js} +2 -2
  35. package/dist/chunks/{pairing-w9jcwh65.js → service-status-mzs0n5xz.js} +7 -7
  36. package/dist/chunks/{pairing-dr1f0hkr.js → service-status-nnsgc8by.js} +3 -3
  37. package/dist/chunks/{pairing-j1p3e665.js → service-status-qcfps8nc.js} +2 -2
  38. package/dist/chunks/{pairing-n60r5keb.js → service-status-qx5ydgm0.js} +1 -1
  39. package/dist/chunks/{pairing-gsqctp76.js → service-status-s0qm098c.js} +2 -2
  40. package/dist/chunks/{pairing-jyqwgkdk.js → service-status-sc3gatcy.js} +3 -3
  41. package/dist/chunks/{pairing-6ypp9np2.js → service-status-t4c683g8.js} +2 -2
  42. package/dist/chunks/{pairing-vbanrv0z.js → service-status-tp6qcw6t.js} +1 -1
  43. package/dist/chunks/{pairing-7b00qdf6.js → service-status-w4e9jgda.js} +1 -1
  44. package/dist/chunks/{pairing-vdtx70fv.js → service-status-wexwfee0.js} +2 -2
  45. package/dist/chunks/{pairing-vdcre1n5.js → service-status-xeq9w5wr.js} +2 -2
  46. package/dist/chunks/{pairing-vpathhmw.js → service-status-ye9tw5gq.js} +4 -4
  47. package/dist/chunks/{pairing-zy1yk0n2.js → service-status-z3akqjf6.js} +1 -1
  48. package/dist/chunks/{pairing-eaxk76q8.js → service-status-z6z134jc.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 +2 -2
  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 +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/{pairing-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{pairing-erzfdgke.js → service-status-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{pairing-h6rt5k9s.js → service-status-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{pairing-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{pairing-smaf4a18.js → service-status-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{pairing-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -1120,11 +1120,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1120
1120
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1121
1121
  zero: number & import("effect/Brand").Brand<"Money.USD">;
1122
1122
  };
1123
- readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1124
- zero: number & import("effect/Brand").Brand<"Money.USD">;
1125
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1126
- zero: number & import("effect/Brand").Brand<"Money.USD">;
1127
- }>, never, never>;
1128
1123
  readonly tokens: import("effect/Schema").Struct<{
1129
1124
  readonly input: import("effect/Schema").Finite;
1130
1125
  readonly output: import("effect/Schema").Finite;
@@ -1146,11 +1141,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1146
1141
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1147
1142
  zero: number & import("effect/Brand").Brand<"Money.USD">;
1148
1143
  };
1149
- readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1150
- zero: number & import("effect/Brand").Brand<"Money.USD">;
1151
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1152
- zero: number & import("effect/Brand").Brand<"Money.USD">;
1153
- }>, never, never>;
1154
1144
  readonly tokens: import("effect/Schema").Struct<{
1155
1145
  readonly input: import("effect/Schema").Finite;
1156
1146
  readonly output: import("effect/Schema").Finite;
@@ -2636,11 +2626,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2636
2626
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2637
2627
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2638
2628
  };
2639
- readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2640
- zero: number & import("effect/Brand").Brand<"Money.USD">;
2641
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2642
- zero: number & import("effect/Brand").Brand<"Money.USD">;
2643
- }>, never, never>;
2644
2629
  readonly tokens: import("effect/Schema").Struct<{
2645
2630
  readonly input: import("effect/Schema").Finite;
2646
2631
  readonly output: import("effect/Schema").Finite;
@@ -2674,11 +2659,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2674
2659
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2675
2660
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2676
2661
  };
2677
- readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2678
- zero: number & import("effect/Brand").Brand<"Money.USD">;
2679
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2680
- zero: number & import("effect/Brand").Brand<"Money.USD">;
2681
- }>, never, never>;
2682
2662
  readonly tokens: import("effect/Schema").Struct<{
2683
2663
  readonly input: import("effect/Schema").Finite;
2684
2664
  readonly output: import("effect/Schema").Finite;
@@ -2749,11 +2729,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2749
2729
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2750
2730
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2751
2731
  }>, never, never>;
2752
- readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2753
- zero: number & import("effect/Brand").Brand<"Money.USD">;
2754
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2755
- zero: number & import("effect/Brand").Brand<"Money.USD">;
2756
- }>, never, never>;
2757
2732
  readonly tokens: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
2758
2733
  readonly input: import("effect/Schema").Finite;
2759
2734
  readonly output: import("effect/Schema").Finite;
@@ -2808,11 +2783,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2808
2783
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2809
2784
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2810
2785
  }>, never, never>;
2811
- readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2812
- zero: number & import("effect/Brand").Brand<"Money.USD">;
2813
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2814
- zero: number & import("effect/Brand").Brand<"Money.USD">;
2815
- }>, never, never>;
2816
2786
  readonly tokens: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
2817
2787
  readonly input: import("effect/Schema").Finite;
2818
2788
  readonly output: import("effect/Schema").Finite;
@@ -7168,7 +7138,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7168
7138
  readonly [x: string]: unknown;
7169
7139
  } | undefined;
7170
7140
  readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7171
- readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7172
7141
  readonly tokens: {
7173
7142
  readonly input: number;
7174
7143
  readonly output: number;
@@ -7215,7 +7184,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7215
7184
  readonly [x: string]: unknown;
7216
7185
  } | undefined;
7217
7186
  readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7218
- readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7219
7187
  readonly tokens?: {
7220
7188
  readonly input: number;
7221
7189
  readonly output: number;
@@ -8383,7 +8351,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8383
8351
  readonly data: {
8384
8352
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8385
8353
  readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8386
- readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
8387
8354
  readonly tokens: {
8388
8355
  readonly input: number;
8389
8356
  readonly output: number;
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/pairing-q8n44kky.js";
4
- import"./chunks/pairing-b3bmdkga.js";
5
- import"./chunks/pairing-4gnb9897.js";
6
- import"./chunks/pairing-50bbk3b2.js";
7
- import"./chunks/pairing-smaf4a18.js";
3
+ } from "./chunks/service-status-4nbah0zs.js";
4
+ import"./chunks/service-status-4gnb9897.js";
5
+ import"./chunks/service-status-b3bmdkga.js";
6
+ import"./chunks/service-status-50bbk3b2.js";
7
+ import"./chunks/service-status-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/pairing-j4at0y5c.js";
10
+ } from "./chunks/service-status-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./pairing-q8n44kky.js";
3
+ } from "./service-status-4nbah0zs.js";
4
4
  import {
5
- Service4,
5
+ Service2,
6
6
  frame2
7
- } from "./pairing-ntrsy3zp.js";
7
+ } from "./service-status-dnwg64ce.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
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./pairing-smaf4a18.js";
4
+ } from "./service-status-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./pairing-q8n44kky.js";
7
+ } from "./service-status-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./pairing-9rqn6x4v.js";
3
+ } from "./service-status-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,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./pairing-q8n44kky.js";
3
+ } from "./service-status-4nbah0zs.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  __export
3
- } from "./pairing-9rqn6x4v.js";
3
+ } from "./service-status-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: () => Service2,
9
+ Service: () => Service3,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer2
11
+ layer: () => layer3
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
- class Service2 extends Context.Service()("@opencode/server/ServerInfo") {
16
+ class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer2(urls, tmp, app = {}) {
19
- return Layer.succeed(Service2, Service2.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 { Service2, layer2, connectionURLs2, exports_server_info };
41
+ export { Service3, layer3, connectionURLs2, exports_server_info };
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./pairing-50bbk3b2.js";
5
+ } from "./service-status-50bbk3b2.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./pairing-50bbk3b2.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./pairing-4gnb9897.js";
6
+ } from "./service-status-4gnb9897.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./pairing-b3bmdkga.js";
9
+ } from "./service-status-b3bmdkga.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
  missingSession2
3
- } from "./pairing-smaf4a18.js";
3
+ } from "./service-status-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./pairing-q4bn6dy8.js";
3
+ } from "./service-status-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./pairing-xytmyrg1.js";
6
+ } from "./service-status-fwwttn5v.js";
7
7
  import {
8
8
  __export
9
- } from "./pairing-9rqn6x4v.js";
9
+ } from "./service-status-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,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./pairing-50bbk3b2.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./pairing-q8n44kky.js";
6
+ } from "./service-status-4nbah0zs.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 "./pairing-j4at0y5c.js";
7
+ } from "./service-status-j4at0y5c.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 "./pairing-q8n44kky.js";
3
+ } from "./service-status-4nbah0zs.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 "./pairing-50bbk3b2.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./pairing-q8n44kky.js";
3
+ } from "./service-status-4nbah0zs.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./pairing-j4at0y5c.js";
10
- import {
11
- Service2
12
- } from "./pairing-z3e7v67k.js";
9
+ } from "./service-status-j4at0y5c.js";
13
10
  import {
14
11
  Service3
15
- } from "./pairing-w9jcwh65.js";
12
+ } from "./service-status-3te71694.js";
13
+ import {
14
+ Service4
15
+ } from "./service-status-mzs0n5xz.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { Duration, Effect } from "effect";
@@ -21,10 +21,10 @@ import { HttpApiBuilder } from "effect/http-api";
21
21
  import { PersistentPty } from "@opencode/core/persistent-pty";
22
22
  import { UnauthorizedError } from "@opencode/protocol/errors";
23
23
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
24
- const pairing = yield* Service3;
24
+ const pairing = yield* Service4;
25
25
  const auth = yield* Config2;
26
26
  return handlers.handle("server.info", () => Effect.gen(function* () {
27
- const info = yield* Service2;
27
+ const info = yield* Service3;
28
28
  return {
29
29
  version: info.app.version ?? "unknown",
30
30
  pid: process.pid ?? 0,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./pairing-50bbk3b2.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./pairing-q8n44kky.js";
7
+ } from "./service-status-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/usage.ts
10
10
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./pairing-50bbk3b2.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./pairing-q8n44kky.js";
7
+ } from "./service-status-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  __export
3
- } from "./pairing-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service4,
10
+ Service: () => Service2,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer3,
14
+ layer: () => layer2,
15
15
  make: () => make4
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
@@ -30,7 +30,7 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
30
30
  }) {
31
31
  }
32
32
 
33
- class Service4 extends Context.Service()("@opencode/server/EventFeed") {
33
+ class Service2 extends Context.Service()("@opencode/server/EventFeed") {
34
34
  }
35
35
  function frame2(event) {
36
36
  return `data: ${JSON.stringify(event)}
@@ -71,13 +71,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
71
71
  });
72
72
  const unsubscribe = yield* observe(publish);
73
73
  yield* Effect.addFinalizer(() => unsubscribe);
74
- return Service4.of({
74
+ return Service2.of({
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 layer2 = Layer.effect(Service2, Effect.gen(function* () {
79
79
  const bus = yield* Bus.Service;
80
80
  return yield* make4(bus.listen);
81
81
  }));
82
82
 
83
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer3, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./pairing-smaf4a18.js";
3
+ } from "./service-status-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./pairing-50bbk3b2.js";
8
+ } from "./service-status-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./pairing-q8n44kky.js";
11
+ } from "./service-status-4nbah0zs.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 "./pairing-50bbk3b2.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./pairing-q8n44kky.js";
6
+ } from "./service-status-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -1,36 +1,36 @@
1
1
  import {
2
2
  layer4
3
- } from "./pairing-50bbk3b2.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./pairing-4gnb9897.js";
6
+ } from "./service-status-4gnb9897.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./pairing-b3bmdkga.js";
9
+ } from "./service-status-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./pairing-q8n44kky.js";
12
+ } from "./service-status-4nbah0zs.js";
13
13
  import {
14
14
  Config2
15
- } from "./pairing-j4at0y5c.js";
15
+ } from "./service-status-j4at0y5c.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./pairing-q4bn6dy8.js";
18
+ } from "./service-status-q4bn6dy8.js";
19
19
  import {
20
- layer2
21
- } from "./pairing-z3e7v67k.js";
20
+ layer3
21
+ } from "./service-status-3te71694.js";
22
22
  import {
23
23
  node2
24
- } from "./pairing-w9jcwh65.js";
24
+ } from "./service-status-mzs0n5xz.js";
25
25
  import {
26
26
  handlers2
27
- } from "./pairing-f42vky19.js";
27
+ } from "./service-status-hwjnnkmp.js";
28
28
  import {
29
29
  authorizationLayer2
30
- } from "./pairing-7b9xm1qg.js";
30
+ } from "./service-status-7b9xm1qg.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./pairing-erzfdgke.js";
33
+ } from "./service-status-erzfdgke.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -144,7 +144,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
144
144
  })) : build(overrides);
145
145
  return serviceLayer.pipe(Layer.flatMap((context) => {
146
146
  const services = Layer.succeedContext(context);
147
- 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));
147
+ 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));
148
148
  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));
149
149
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
150
150
  }));
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./pairing-50bbk3b2.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./pairing-q8n44kky.js";
6
+ } from "./service-status-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -2,17 +2,17 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./pairing-50bbk3b2.js";
5
+ } from "./service-status-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./pairing-q8n44kky.js";
8
+ } from "./service-status-4nbah0zs.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./pairing-q4bn6dy8.js";
12
+ } from "./service-status-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2
15
- } from "./pairing-h6rt5k9s.js";
15
+ } from "./service-status-h6rt5k9s.js";
16
16
 
17
17
  // src/handlers/mcp.ts
18
18
  import { Location } from "@opencode/core/location";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./pairing-50bbk3b2.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./pairing-q8n44kky.js";
6
+ } from "./service-status-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./pairing-50bbk3b2.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./pairing-q8n44kky.js";
7
+ } from "./service-status-4nbah0zs.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./pairing-50bbk3b2.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./pairing-q8n44kky.js";
6
+ } from "./service-status-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./pairing-50bbk3b2.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./pairing-q8n44kky.js";
6
+ } from "./service-status-4nbah0zs.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";