@opencode/server 2.0.26 → 2.0.27

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 (144) hide show
  1. package/dist/api.d.ts +17 -14
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{fetch-eekrj6qv.js → pty-environment-08x9tjee.js} +2 -2
  5. package/dist/chunks/{fetch-0chp8crd.js → pty-environment-0chp8crd.js} +1 -1
  6. package/dist/chunks/pty-environment-0d864bga.js +15 -0
  7. package/dist/chunks/{fetch-m4fq9qce.js → pty-environment-1k1cts14.js} +4 -4
  8. package/dist/chunks/{fetch-n1svm92q.js → pty-environment-383t61pr.js} +5 -5
  9. package/dist/chunks/{fetch-agftk6b6.js → pty-environment-43r48nqn.js} +3 -3
  10. package/dist/chunks/{fetch-wb43dd8f.js → pty-environment-4d1eemzq.js} +6 -4
  11. package/dist/chunks/{fetch-zhympcbw.js → pty-environment-4dv9a668.js} +3 -3
  12. package/dist/chunks/{fetch-d00srfh1.js → pty-environment-4hhhes7w.js} +3 -3
  13. package/dist/chunks/{fetch-b44t4qeg.js → pty-environment-4yg61rns.js} +30 -29
  14. package/dist/chunks/{fetch-gtkdacvk.js → pty-environment-5ytyqf1q.js} +5 -4
  15. package/dist/chunks/{fetch-r5bb0n1s.js → pty-environment-5zsr2h86.js} +2 -2
  16. package/dist/chunks/{fetch-rwwc81rq.js → pty-environment-7vd5668a.js} +2 -2
  17. package/dist/chunks/{fetch-w1fepcwh.js → pty-environment-8137b89p.js} +3 -3
  18. package/dist/chunks/{fetch-053p7hbt.js → pty-environment-8ad8dwnf.js} +4 -4
  19. package/dist/chunks/{fetch-4qyjttng.js → pty-environment-97eb2r3v.js} +3 -3
  20. package/dist/chunks/{fetch-jxc39wgw.js → pty-environment-9snwnvf8.js} +3 -3
  21. package/dist/chunks/{fetch-t1n0m4wb.js → pty-environment-aey6dvfz.js} +30 -34
  22. package/dist/chunks/{fetch-anm12x33.js → pty-environment-anm12x33.js} +1 -1
  23. package/dist/chunks/{fetch-acgs9zzk.js → pty-environment-b56hqv74.js} +14 -6
  24. package/dist/chunks/{fetch-cm271yqe.js → pty-environment-bx47k33v.js} +3 -3
  25. package/dist/chunks/{fetch-c6kb7fmf.js → pty-environment-c6kb7fmf.js} +1 -1
  26. package/dist/chunks/{fetch-t8yzmczr.js → pty-environment-erzfdgke.js} +1 -1
  27. package/dist/chunks/{fetch-gj6tv0s4.js → pty-environment-ewe1fzkk.js} +6 -3
  28. package/dist/chunks/{fetch-hajt4q09.js → pty-environment-ftaz8n62.js} +3 -3
  29. package/dist/chunks/pty-environment-h6rt5k9s.js +24 -0
  30. package/dist/chunks/{fetch-mjepr257.js → pty-environment-h8ws5ssa.js} +2 -2
  31. package/dist/chunks/{fetch-kzj5eept.js → pty-environment-hkm2snxm.js} +33 -33
  32. package/dist/chunks/{fetch-nxdx74sv.js → pty-environment-j4zqsxgy.js} +3 -3
  33. package/dist/chunks/{fetch-80mhd8t7.js → pty-environment-nn6dbt3f.js} +3 -3
  34. package/dist/chunks/{fetch-6fr0a7bp.js → pty-environment-pfs7tp5t.js} +17 -16
  35. package/dist/chunks/{fetch-0y03q8mn.js → pty-environment-ptey1p5v.js} +3 -3
  36. package/dist/chunks/{fetch-g9rgg5ys.js → pty-environment-qbh90c1d.js} +3 -3
  37. package/dist/chunks/{fetch-rhnwnf76.js → pty-environment-rf01ee6q.js} +2 -2
  38. package/dist/chunks/{fetch-1w9kp1gg.js → pty-environment-rntbwr87.js} +3 -3
  39. package/dist/chunks/{fetch-q9rkrfm7.js → pty-environment-ssyxw8nc.js} +5 -5
  40. package/dist/chunks/{fetch-78n975k2.js → pty-environment-sxyyq1rb.js} +6 -6
  41. package/dist/chunks/{fetch-cy7y42ks.js → pty-environment-tqspcwns.js} +4 -4
  42. package/dist/chunks/{fetch-bvp1r88z.js → pty-environment-vb5yx5r0.js} +3 -3
  43. package/dist/chunks/{fetch-m6xk774d.js → pty-environment-vbzm2jgm.js} +3 -3
  44. package/dist/chunks/{fetch-54sczv30.js → pty-environment-vghchchj.js} +7 -7
  45. package/dist/chunks/{fetch-5w24ch67.js → pty-environment-vpz7f20y.js} +4 -4
  46. package/dist/chunks/{fetch-1kbkbftd.js → pty-environment-y1gfy88d.js} +4 -4
  47. package/dist/chunks/{fetch-t70dy8sr.js → pty-environment-yehasrps.js} +3 -3
  48. package/dist/chunks/{fetch-8c9kbrtm.js → pty-environment-z6sxg6td.js} +2 -2
  49. package/dist/chunks/{fetch-j3pdvhe2.js → pty-environment-zessacar.js} +3 -3
  50. package/dist/cors.js +1 -1
  51. package/dist/event-feed.js +5 -5
  52. package/dist/fetch.d.ts +1 -1
  53. package/dist/fetch.js +47 -47
  54. package/dist/handlers/agent.d.ts +1 -1
  55. package/dist/handlers/agent.js +6 -6
  56. package/dist/handlers/command.d.ts +1 -1
  57. package/dist/handlers/command.js +6 -6
  58. package/dist/handlers/config.d.ts +1 -1
  59. package/dist/handlers/config.js +6 -6
  60. package/dist/handlers/credential.d.ts +1 -1
  61. package/dist/handlers/credential.js +6 -6
  62. package/dist/handlers/debug.d.ts +1 -1
  63. package/dist/handlers/debug.js +6 -6
  64. package/dist/handlers/event.d.ts +1 -1
  65. package/dist/handlers/event.js +7 -7
  66. package/dist/handlers/form.d.ts +1 -1
  67. package/dist/handlers/form.js +6 -6
  68. package/dist/handlers/fs.d.ts +1 -1
  69. package/dist/handlers/fs.js +6 -6
  70. package/dist/handlers/generate.d.ts +1 -1
  71. package/dist/handlers/generate.js +6 -6
  72. package/dist/handlers/integration.d.ts +1 -1
  73. package/dist/handlers/integration.js +6 -6
  74. package/dist/handlers/location.d.ts +1 -1
  75. package/dist/handlers/location.js +6 -6
  76. package/dist/handlers/mcp.d.ts +1 -1
  77. package/dist/handlers/mcp.js +6 -6
  78. package/dist/handlers/message.d.ts +1 -1
  79. package/dist/handlers/message.js +6 -6
  80. package/dist/handlers/migration.d.ts +1 -1
  81. package/dist/handlers/migration.js +6 -6
  82. package/dist/handlers/model.d.ts +1 -1
  83. package/dist/handlers/model.js +6 -6
  84. package/dist/handlers/permission.d.ts +1 -1
  85. package/dist/handlers/permission.js +6 -6
  86. package/dist/handlers/persistent-pty.d.ts +1 -1
  87. package/dist/handlers/persistent-pty.js +8 -8
  88. package/dist/handlers/plugin.d.ts +1 -1
  89. package/dist/handlers/plugin.js +6 -6
  90. package/dist/handlers/project.d.ts +1 -1
  91. package/dist/handlers/project.js +6 -6
  92. package/dist/handlers/provider.d.ts +1 -1
  93. package/dist/handlers/provider.js +6 -6
  94. package/dist/handlers/pty-socket.d.ts +10 -2
  95. package/dist/handlers/pty-socket.js +1 -1
  96. package/dist/handlers/pty.d.ts +1 -1
  97. package/dist/handlers/pty.js +9 -9
  98. package/dist/handlers/reference.d.ts +1 -1
  99. package/dist/handlers/reference.js +6 -6
  100. package/dist/handlers/rpc.d.ts +1 -1
  101. package/dist/handlers/rpc.js +6 -6
  102. package/dist/handlers/server.d.ts +1 -1
  103. package/dist/handlers/server.js +9 -9
  104. package/dist/handlers/session-error.js +1 -1
  105. package/dist/handlers/session.d.ts +1 -1
  106. package/dist/handlers/session.js +6 -6
  107. package/dist/handlers/shell.d.ts +1 -1
  108. package/dist/handlers/shell.js +6 -6
  109. package/dist/handlers/skill.d.ts +1 -1
  110. package/dist/handlers/skill.js +6 -6
  111. package/dist/handlers/vcs.d.ts +1 -1
  112. package/dist/handlers/vcs.js +6 -6
  113. package/dist/handlers/websearch.d.ts +1 -1
  114. package/dist/handlers/websearch.js +6 -6
  115. package/dist/handlers/worktree.d.ts +1 -1
  116. package/dist/handlers/worktree.js +6 -6
  117. package/dist/handlers.d.ts +1 -1
  118. package/dist/handlers.js +43 -43
  119. package/dist/location.d.ts +5 -3
  120. package/dist/location.js +6 -4
  121. package/dist/middleware/authorization.d.ts +1 -1
  122. package/dist/middleware/authorization.js +2 -2
  123. package/dist/middleware/form-location.d.ts +2 -2
  124. package/dist/middleware/form-location.js +3 -3
  125. package/dist/middleware/schema-error.js +1 -1
  126. package/dist/middleware/session-location.d.ts +1 -1
  127. package/dist/middleware/session-location.js +3 -3
  128. package/dist/pairing.js +1 -1
  129. package/dist/process.d.ts +5 -4
  130. package/dist/process.js +52 -52
  131. package/dist/pty-environment.js +3 -3
  132. package/dist/request-tracing.js +1 -1
  133. package/dist/routes.d.ts +3 -3
  134. package/dist/routes.js +46 -46
  135. package/dist/server-info.js +1 -1
  136. package/dist/service-status.js +3 -3
  137. package/dist/workerd.js +48 -48
  138. package/package.json +14 -12
  139. package/dist/chunks/fetch-dy0yben3.js +0 -15
  140. package/dist/chunks/fetch-hezj1jdf.js +0 -7
  141. /package/dist/chunks/{fetch-9rqn6x4v.js → pty-environment-9rqn6x4v.js} +0 -0
  142. /package/dist/chunks/{fetch-q4bn6dy8.js → pty-environment-q4bn6dy8.js} +0 -0
  143. /package/dist/chunks/{fetch-smaf4a18.js → pty-environment-smaf4a18.js} +0 -0
  144. /package/dist/chunks/{fetch-yc7nft6q.js → pty-environment-yc7nft6q.js} +0 -0
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  Api2
3
- } from "./fetch-jxc39wgw.js";
3
+ } from "./pty-environment-9snwnvf8.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./fetch-anm12x33.js";
9
+ } from "./pty-environment-anm12x33.js";
10
10
  import {
11
11
  Service2
12
- } from "./fetch-c6kb7fmf.js";
12
+ } from "./pty-environment-c6kb7fmf.js";
13
13
  import {
14
14
  Service3
15
- } from "./fetch-0chp8crd.js";
15
+ } from "./pty-environment-0chp8crd.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { Duration, Effect } from "effect";
19
- import { HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
20
- import { HttpApiBuilder } from "effect/unstable/httpapi";
19
+ import { HttpServerRequest, HttpServerResponse } from "effect/http";
20
+ 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* () {
@@ -3,13 +3,13 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./fetch-smaf4a18.js";
6
+ } from "./pty-environment-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./fetch-acgs9zzk.js";
9
+ } from "./pty-environment-b56hqv74.js";
10
10
  import {
11
11
  Api2
12
- } from "./fetch-jxc39wgw.js";
12
+ } from "./pty-environment-9snwnvf8.js";
13
13
 
14
14
  // src/handlers/session.ts
15
15
  import { Session } from "@opencode/core/session";
@@ -19,7 +19,7 @@ import { SessionTransfer } from "@opencode/core/session/transfer";
19
19
  import { InstructionEntry } from "@opencode/core/session/instruction-entry";
20
20
  import { Form } from "@opencode/core/form";
21
21
  import { DateTime, Effect, Stream } from "effect";
22
- import { HttpApiBuilder, HttpApiSchema } from "effect/unstable/httpapi";
22
+ import { HttpApiBuilder, HttpApiSchema } from "effect/http-api";
23
23
  import { SessionsCursor } from "@opencode/protocol/groups/session";
24
24
  import {
25
25
  ConflictError,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./fetch-smaf4a18.js";
4
+ } from "./pty-environment-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./fetch-jxc39wgw.js";
7
+ } from "./pty-environment-9snwnvf8.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
11
11
  import { Session } from "@opencode/core/session";
12
12
  import { Effect, Schema } from "effect";
13
- import { HttpApiBuilder } from "effect/unstable/httpapi";
13
+ import { HttpApiBuilder } from "effect/http-api";
14
14
  import { InvalidCursorError } from "@opencode/protocol/errors";
15
15
  var DefaultMessagesLimit = 50;
16
16
  var Cursor = Schema.Struct({
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./fetch-acgs9zzk.js";
3
+ } from "./pty-environment-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-jxc39wgw.js";
6
+ } from "./pty-environment-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
10
10
  import { Effect, Option, RcMap } from "effect";
11
- import { HttpApiBuilder } from "effect/unstable/httpapi";
11
+ import { HttpApiBuilder } from "effect/http-api";
12
12
  var DebugHandler2 = HttpApiBuilder.group(Api2, "server.debug", (handlers) => handlers.handle("debug.location", Effect.fn(function* () {
13
13
  const locations = Option.getOrThrow(yield* Effect.serviceOption(LocationServiceMap.Service));
14
14
  return Array.from(yield* RcMap.keys(locations.rcMap));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./fetch-9rqn6x4v.js";
3
+ } from "./pty-environment-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: () => layer5,
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 layer5 = Layer.effect(Service5, Effect.gen(function* () {
78
+ var layer4 = Layer.effect(Service5, 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, Service5, frame2, make4, layer5, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service5, frame2, make3, layer4, exports_event_feed };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./fetch-9rqn6x4v.js";
3
+ } from "./pty-environment-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: () => make4
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make3 = 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 make3 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make3, exports_service_status };
23
+ export { make4, exports_service_status };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./fetch-smaf4a18.js";
3
+ } from "./pty-environment-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./fetch-acgs9zzk.js";
8
+ } from "./pty-environment-b56hqv74.js";
9
9
  import {
10
10
  Api2
11
- } from "./fetch-jxc39wgw.js";
11
+ } from "./pty-environment-9snwnvf8.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -17,7 +17,7 @@ import { Permission } from "@opencode/core/permission";
17
17
  import { PermissionSaved } from "@opencode/core/permission/saved";
18
18
  import { Session } from "@opencode/core/session";
19
19
  import { Effect } from "effect";
20
- import { HttpApiBuilder, HttpApiSchema } from "effect/unstable/httpapi";
20
+ import { HttpApiBuilder, HttpApiSchema } from "effect/http-api";
21
21
  import { PermissionNotFoundError } from "@opencode/protocol/errors";
22
22
  function missingRequest(id) {
23
23
  return new PermissionNotFoundError({ requestID: id, message: `Permission request not found: ${id}` });
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  response2
3
- } from "./fetch-acgs9zzk.js";
3
+ } from "./pty-environment-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-jxc39wgw.js";
6
+ } from "./pty-environment-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
10
- import { HttpApiBuilder } from "effect/unstable/httpapi";
10
+ import { HttpApiBuilder } from "effect/http-api";
11
11
  var ReferenceHandler2 = HttpApiBuilder.group(Api2, "server.reference", (handlers) => handlers.handle("reference.list", () => response2(Reference.Service.use((reference) => reference.list()))));
12
12
 
13
13
  export { ReferenceHandler2 };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Api2
3
- } from "./fetch-jxc39wgw.js";
3
+ } from "./pty-environment-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
7
7
  import { Plugin } from "@opencode/core/plugin";
8
8
  import { RpcError, RpcInternalError } from "@opencode/protocol/errors";
9
9
  import { Effect } from "effect";
10
- import { HttpApiBuilder } from "effect/unstable/httpapi";
10
+ import { HttpApiBuilder } from "effect/http-api";
11
11
  var RpcHandler2 = HttpApiBuilder.group(Api2, "server.rpc", (handlers) => handlers.handle("rpc.call", ({ params, payload }) => Effect.gen(function* () {
12
12
  yield* Plugin.awaitActivation;
13
13
  const rpc = yield* Rpc.Service;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  response2
3
- } from "./fetch-acgs9zzk.js";
3
+ } from "./pty-environment-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./fetch-jxc39wgw.js";
6
+ } from "./pty-environment-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/mcp.ts
9
9
  import { Mcp } from "@opencode/core/mcp/index";
10
10
  import { McpServerNotFoundError } from "@opencode/protocol/errors";
11
11
  import { Effect } from "effect";
12
- import { HttpApiBuilder, HttpApiSchema } from "effect/unstable/httpapi";
12
+ import { HttpApiBuilder, HttpApiSchema } from "effect/http-api";
13
13
  var notFound = (effect) => effect.pipe(Effect.mapError((error) => new McpServerNotFoundError({ server: error.server, message: error.message })));
14
14
  var McpHandler2 = HttpApiBuilder.group(Api2, "server.mcp", (handlers) => Effect.gen(function* () {
15
15
  return handlers.handle("mcp.list", Effect.fn(function* () {
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/pty-environment-q4bn6dy8.js";
6
6
  export {
7
7
  CorsConfig2 as CorsConfig,
8
8
  isAllowedCorsOrigin2 as isAllowedCorsOrigin,
@@ -4,10 +4,10 @@ import {
4
4
  EncodingError2,
5
5
  Service5,
6
6
  frame2,
7
- make4,
8
- layer5,
7
+ make3,
8
+ layer4,
9
9
  exports_event_feed
10
- } from "./chunks/fetch-54sczv30.js";
10
+ } from "./chunks/pty-environment-vghchchj.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
- layer5 as layer,
19
- make4 as make
18
+ layer4 as layer,
19
+ make3 as make
20
20
  };
package/dist/fetch.d.ts CHANGED
@@ -55,13 +55,13 @@ export declare const make: (options?: {
55
55
  readonly content?: string | undefined;
56
56
  readonly file?: string | undefined;
57
57
  } | undefined;
58
+ readonly port?: number | undefined;
58
59
  readonly hostname?: string | undefined;
59
60
  readonly cors?: readonly string[] | undefined;
60
61
  readonly windows?: {
61
62
  readonly gitbash?: string | undefined;
62
63
  } | undefined;
63
64
  readonly password?: string | undefined;
64
- readonly port?: number | undefined;
65
65
  readonly app?: {
66
66
  readonly version?: string | undefined;
67
67
  readonly name?: string | undefined;
package/dist/fetch.js CHANGED
@@ -1,53 +1,53 @@
1
1
  import {
2
2
  make2,
3
3
  exports_fetch
4
- } from "./chunks/fetch-053p7hbt.js";
5
- import"./chunks/fetch-6fr0a7bp.js";
6
- import"./chunks/fetch-gtkdacvk.js";
7
- import"./chunks/fetch-t8yzmczr.js";
8
- import"./chunks/fetch-kzj5eept.js";
9
- import"./chunks/fetch-w1fepcwh.js";
10
- import"./chunks/fetch-dy0yben3.js";
11
- import"./chunks/fetch-t1n0m4wb.js";
12
- import"./chunks/fetch-wb43dd8f.js";
13
- import"./chunks/fetch-eekrj6qv.js";
14
- import"./chunks/fetch-m4fq9qce.js";
15
- import"./chunks/fetch-r5bb0n1s.js";
16
- import"./chunks/fetch-gj6tv0s4.js";
17
- import"./chunks/fetch-cy7y42ks.js";
18
- import"./chunks/fetch-0y03q8mn.js";
19
- import"./chunks/fetch-8c9kbrtm.js";
20
- import"./chunks/fetch-80mhd8t7.js";
21
- import"./chunks/fetch-agftk6b6.js";
22
- import"./chunks/fetch-1kbkbftd.js";
23
- import"./chunks/fetch-hajt4q09.js";
24
- import"./chunks/fetch-b44t4qeg.js";
25
- import"./chunks/fetch-hezj1jdf.js";
26
- import"./chunks/fetch-rwwc81rq.js";
27
- import"./chunks/fetch-rhnwnf76.js";
28
- import"./chunks/fetch-zhympcbw.js";
29
- import"./chunks/fetch-m6xk774d.js";
30
- import"./chunks/fetch-mjepr257.js";
31
- import"./chunks/fetch-1w9kp1gg.js";
32
- import"./chunks/fetch-cm271yqe.js";
33
- import"./chunks/fetch-q9rkrfm7.js";
34
- import"./chunks/fetch-4qyjttng.js";
35
- import"./chunks/fetch-g9rgg5ys.js";
36
- import"./chunks/fetch-j3pdvhe2.js";
37
- import"./chunks/fetch-bvp1r88z.js";
38
- import"./chunks/fetch-78n975k2.js";
39
- import"./chunks/fetch-t70dy8sr.js";
40
- import"./chunks/fetch-jxc39wgw.js";
41
- import"./chunks/fetch-nxdx74sv.js";
42
- import"./chunks/fetch-d00srfh1.js";
43
- import"./chunks/fetch-anm12x33.js";
44
- import"./chunks/fetch-c6kb7fmf.js";
45
- import"./chunks/fetch-0chp8crd.js";
46
- import"./chunks/fetch-acgs9zzk.js";
47
- import"./chunks/fetch-smaf4a18.js";
48
- import"./chunks/fetch-q4bn6dy8.js";
49
- import"./chunks/fetch-n1svm92q.js";
50
- import"./chunks/fetch-54sczv30.js";
4
+ } from "./chunks/pty-environment-8ad8dwnf.js";
5
+ import"./chunks/pty-environment-pfs7tp5t.js";
6
+ import"./chunks/pty-environment-erzfdgke.js";
7
+ import"./chunks/pty-environment-5ytyqf1q.js";
8
+ import"./chunks/pty-environment-hkm2snxm.js";
9
+ import"./chunks/pty-environment-ssyxw8nc.js";
10
+ import"./chunks/pty-environment-bx47k33v.js";
11
+ import"./chunks/pty-environment-ewe1fzkk.js";
12
+ import"./chunks/pty-environment-vbzm2jgm.js";
13
+ import"./chunks/pty-environment-tqspcwns.js";
14
+ import"./chunks/pty-environment-43r48nqn.js";
15
+ import"./chunks/pty-environment-8137b89p.js";
16
+ import"./chunks/pty-environment-rf01ee6q.js";
17
+ import"./chunks/pty-environment-ptey1p5v.js";
18
+ import"./chunks/pty-environment-y1gfy88d.js";
19
+ import"./chunks/pty-environment-08x9tjee.js";
20
+ import"./chunks/pty-environment-7vd5668a.js";
21
+ import"./chunks/pty-environment-1k1cts14.js";
22
+ import"./chunks/pty-environment-nn6dbt3f.js";
23
+ import"./chunks/pty-environment-4d1eemzq.js";
24
+ import"./chunks/pty-environment-z6sxg6td.js";
25
+ import"./chunks/pty-environment-h8ws5ssa.js";
26
+ import"./chunks/pty-environment-yehasrps.js";
27
+ import"./chunks/pty-environment-zessacar.js";
28
+ import"./chunks/pty-environment-4dv9a668.js";
29
+ import"./chunks/pty-environment-97eb2r3v.js";
30
+ import"./chunks/pty-environment-qbh90c1d.js";
31
+ import"./chunks/pty-environment-vb5yx5r0.js";
32
+ import"./chunks/pty-environment-ftaz8n62.js";
33
+ import"./chunks/pty-environment-0d864bga.js";
34
+ import"./chunks/pty-environment-5zsr2h86.js";
35
+ import"./chunks/pty-environment-rntbwr87.js";
36
+ import"./chunks/pty-environment-sxyyq1rb.js";
37
+ import"./chunks/pty-environment-4yg61rns.js";
38
+ import"./chunks/pty-environment-aey6dvfz.js";
39
+ import"./chunks/pty-environment-h6rt5k9s.js";
40
+ import"./chunks/pty-environment-c6kb7fmf.js";
41
+ import"./chunks/pty-environment-anm12x33.js";
42
+ import"./chunks/pty-environment-9snwnvf8.js";
43
+ import"./chunks/pty-environment-j4zqsxgy.js";
44
+ import"./chunks/pty-environment-4hhhes7w.js";
45
+ import"./chunks/pty-environment-0chp8crd.js";
46
+ import"./chunks/pty-environment-383t61pr.js";
47
+ import"./chunks/pty-environment-vghchchj.js";
48
+ import"./chunks/pty-environment-q4bn6dy8.js";
49
+ import"./chunks/pty-environment-b56hqv74.js";
50
+ import"./chunks/pty-environment-smaf4a18.js";
51
51
  export {
52
52
  exports_fetch as ServerFetch,
53
53
  make2 as make
@@ -1 +1 @@
1
- export declare const AgentHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.agent">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
1
+ export declare const AgentHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentHandler2
3
- } from "../chunks/fetch-1w9kp1gg.js";
4
- import"../chunks/fetch-jxc39wgw.js";
5
- import"../chunks/fetch-nxdx74sv.js";
6
- import"../chunks/fetch-d00srfh1.js";
7
- import"../chunks/fetch-acgs9zzk.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/pty-environment-rntbwr87.js";
4
+ import"../chunks/pty-environment-9snwnvf8.js";
5
+ import"../chunks/pty-environment-j4zqsxgy.js";
6
+ import"../chunks/pty-environment-4hhhes7w.js";
7
+ import"../chunks/pty-environment-b56hqv74.js";
8
+ import"../chunks/pty-environment-smaf4a18.js";
9
9
  export {
10
10
  AgentHandler2 as AgentHandler
11
11
  };
@@ -1 +1 @@
1
- export declare const CommandHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.command">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
1
+ export declare const CommandHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.command">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CommandHandler2
3
- } from "../chunks/fetch-0y03q8mn.js";
4
- import"../chunks/fetch-jxc39wgw.js";
5
- import"../chunks/fetch-nxdx74sv.js";
6
- import"../chunks/fetch-d00srfh1.js";
7
- import"../chunks/fetch-acgs9zzk.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/pty-environment-ptey1p5v.js";
4
+ import"../chunks/pty-environment-9snwnvf8.js";
5
+ import"../chunks/pty-environment-j4zqsxgy.js";
6
+ import"../chunks/pty-environment-4hhhes7w.js";
7
+ import"../chunks/pty-environment-b56hqv74.js";
8
+ import"../chunks/pty-environment-smaf4a18.js";
9
9
  export {
10
10
  CommandHandler2 as CommandHandler
11
11
  };
@@ -1 +1 @@
1
- export declare const ConfigHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.config">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
1
+ export declare const ConfigHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.config">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ConfigHandler2
3
- } from "../chunks/fetch-r5bb0n1s.js";
4
- import"../chunks/fetch-jxc39wgw.js";
5
- import"../chunks/fetch-nxdx74sv.js";
6
- import"../chunks/fetch-d00srfh1.js";
7
- import"../chunks/fetch-acgs9zzk.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/pty-environment-5zsr2h86.js";
4
+ import"../chunks/pty-environment-9snwnvf8.js";
5
+ import"../chunks/pty-environment-j4zqsxgy.js";
6
+ import"../chunks/pty-environment-4hhhes7w.js";
7
+ import"../chunks/pty-environment-b56hqv74.js";
8
+ import"../chunks/pty-environment-smaf4a18.js";
9
9
  export {
10
10
  ConfigHandler2 as ConfigHandler
11
11
  };
@@ -1,2 +1,2 @@
1
1
  import { Credential } from "@opencode/core/credential";
2
- export declare const CredentialHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.credential">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("effect/unstable/http/HttpRouter").Request<"Requires", Credential.Service>>;
2
+ export declare const CredentialHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.credential">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("effect/http/HttpRouter").Request<"Requires", Credential.Service>>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CredentialHandler2
3
- } from "../chunks/fetch-eekrj6qv.js";
4
- import"../chunks/fetch-jxc39wgw.js";
5
- import"../chunks/fetch-nxdx74sv.js";
6
- import"../chunks/fetch-d00srfh1.js";
7
- import"../chunks/fetch-acgs9zzk.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/pty-environment-08x9tjee.js";
4
+ import"../chunks/pty-environment-9snwnvf8.js";
5
+ import"../chunks/pty-environment-j4zqsxgy.js";
6
+ import"../chunks/pty-environment-4hhhes7w.js";
7
+ import"../chunks/pty-environment-b56hqv74.js";
8
+ import"../chunks/pty-environment-smaf4a18.js";
9
9
  export {
10
10
  CredentialHandler2 as CredentialHandler
11
11
  };
@@ -1 +1 @@
1
- export declare const DebugHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.debug">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization>;
1
+ export declare const DebugHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.debug">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DebugHandler2
3
- } from "../chunks/fetch-m6xk774d.js";
4
- import"../chunks/fetch-jxc39wgw.js";
5
- import"../chunks/fetch-nxdx74sv.js";
6
- import"../chunks/fetch-d00srfh1.js";
7
- import"../chunks/fetch-acgs9zzk.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/pty-environment-vbzm2jgm.js";
4
+ import"../chunks/pty-environment-9snwnvf8.js";
5
+ import"../chunks/pty-environment-j4zqsxgy.js";
6
+ import"../chunks/pty-environment-4hhhes7w.js";
7
+ import"../chunks/pty-environment-b56hqv74.js";
8
+ import"../chunks/pty-environment-smaf4a18.js";
9
9
  export {
10
10
  DebugHandler2 as DebugHandler
11
11
  };
@@ -1,2 +1,2 @@
1
1
  import { EventFeed } from "../event-feed";
2
- export declare const EventHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.event">, never, EventFeed.Service | (import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization)>;
2
+ export declare const EventHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.event">, never, EventFeed.Service | (import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization)>;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  EventHandler2
3
- } from "../chunks/fetch-m4fq9qce.js";
4
- import"../chunks/fetch-jxc39wgw.js";
5
- import"../chunks/fetch-nxdx74sv.js";
6
- import"../chunks/fetch-d00srfh1.js";
7
- import"../chunks/fetch-acgs9zzk.js";
8
- import"../chunks/fetch-smaf4a18.js";
9
- import"../chunks/fetch-54sczv30.js";
3
+ } from "../chunks/pty-environment-1k1cts14.js";
4
+ import"../chunks/pty-environment-9snwnvf8.js";
5
+ import"../chunks/pty-environment-j4zqsxgy.js";
6
+ import"../chunks/pty-environment-4hhhes7w.js";
7
+ import"../chunks/pty-environment-vghchchj.js";
8
+ import"../chunks/pty-environment-b56hqv74.js";
9
+ import"../chunks/pty-environment-smaf4a18.js";
10
10
  export {
11
11
  EventHandler2 as EventHandler
12
12
  };
@@ -1 +1 @@
1
- export declare const FormHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.form">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
1
+ export declare const FormHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.form">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  FormHandler2
3
- } from "../chunks/fetch-agftk6b6.js";
4
- import"../chunks/fetch-jxc39wgw.js";
5
- import"../chunks/fetch-nxdx74sv.js";
6
- import"../chunks/fetch-d00srfh1.js";
7
- import"../chunks/fetch-acgs9zzk.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/pty-environment-43r48nqn.js";
4
+ import"../chunks/pty-environment-9snwnvf8.js";
5
+ import"../chunks/pty-environment-j4zqsxgy.js";
6
+ import"../chunks/pty-environment-4hhhes7w.js";
7
+ import"../chunks/pty-environment-b56hqv74.js";
8
+ import"../chunks/pty-environment-smaf4a18.js";
9
9
  export {
10
10
  FormHandler2 as FormHandler
11
11
  };
@@ -1 +1 @@
1
- export declare const FileSystemHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.fs">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
1
+ export declare const FileSystemHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.fs">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  FileSystemHandler2
3
- } from "../chunks/fetch-q9rkrfm7.js";
4
- import"../chunks/fetch-jxc39wgw.js";
5
- import"../chunks/fetch-nxdx74sv.js";
6
- import"../chunks/fetch-d00srfh1.js";
7
- import"../chunks/fetch-acgs9zzk.js";
8
- import"../chunks/fetch-smaf4a18.js";
3
+ } from "../chunks/pty-environment-ssyxw8nc.js";
4
+ import"../chunks/pty-environment-9snwnvf8.js";
5
+ import"../chunks/pty-environment-j4zqsxgy.js";
6
+ import"../chunks/pty-environment-4hhhes7w.js";
7
+ import"../chunks/pty-environment-b56hqv74.js";
8
+ import"../chunks/pty-environment-smaf4a18.js";
9
9
  export {
10
10
  FileSystemHandler2 as FileSystemHandler
11
11
  };
@@ -1,3 +1,3 @@
1
1
  import { LocationServiceMap } from "@opencode/core/location-services";
2
2
  import { Global } from "@opencode/util/global";
3
- export declare const GenerateHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.generate">, never, Global.Service | LocationServiceMap.Service | (import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization)>;
3
+ export declare const GenerateHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.generate">, never, Global.Service | LocationServiceMap.Service | (import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization)>;