@opencode/server 0.0.0-dev-20484 → 0.0.0-dev-20485

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/api.d.ts +1 -1
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{request-tracing-pme11y2y.js → fetch-00b7zw9n.js} +2 -2
  5. package/dist/chunks/{request-tracing-bkk2wfbz.js → fetch-0d9kah4z.js} +7 -7
  6. package/dist/chunks/{request-tracing-x5ncpjy3.js → fetch-0gwhtgb0.js} +2 -2
  7. package/dist/chunks/{request-tracing-v1emgcvb.js → fetch-0vcrsckz.js} +2 -2
  8. package/dist/chunks/{request-tracing-6gkz39ey.js → fetch-14vy2pac.js} +12 -5
  9. package/dist/chunks/{request-tracing-b1rdg9nf.js → fetch-2nwa3ky2.js} +2 -2
  10. package/dist/chunks/{request-tracing-rjpqaa8h.js → fetch-2sy3c7de.js} +7 -7
  11. package/dist/chunks/{request-tracing-t88f2hhf.js → fetch-5w803dat.js} +5 -4
  12. package/dist/chunks/{request-tracing-5rwqcaw2.js → fetch-6n8edpm0.js} +6 -5
  13. package/dist/chunks/{request-tracing-hp5sxeae.js → fetch-6w79g1zd.js} +2 -2
  14. package/dist/chunks/{request-tracing-19ydfr4n.js → fetch-a44pvkv9.js} +6 -6
  15. package/dist/chunks/{request-tracing-e1j0tbav.js → fetch-ajhv9q2g.js} +1 -1
  16. package/dist/chunks/{request-tracing-anm12x33.js → fetch-anm12x33.js} +1 -1
  17. package/dist/chunks/{request-tracing-byt4hbw9.js → fetch-byt4hbw9.js} +1 -1
  18. package/dist/chunks/{request-tracing-wz0qz28j.js → fetch-d261w70h.js} +2 -2
  19. package/dist/chunks/{request-tracing-7wjh4a38.js → fetch-eces9922.js} +4 -4
  20. package/dist/chunks/{request-tracing-7eckj7zq.js → fetch-evmrcn2p.js} +2 -2
  21. package/dist/chunks/{request-tracing-ees77nh9.js → fetch-g27fjyd3.js} +2 -2
  22. package/dist/chunks/{request-tracing-p09w8kwp.js → fetch-gesckh61.js} +2 -2
  23. package/dist/chunks/{request-tracing-qj9kjxn3.js → fetch-gr63yha5.js} +1 -1
  24. package/dist/chunks/{request-tracing-gtkdacvk.js → fetch-gtkdacvk.js} +1 -1
  25. package/dist/chunks/{request-tracing-mb9kfqxc.js → fetch-h9qn14ck.js} +7 -7
  26. package/dist/chunks/{request-tracing-np19kmxx.js → fetch-jv3gkh16.js} +2 -2
  27. package/dist/chunks/{request-tracing-140y8w7p.js → fetch-kcvfpwaw.js} +2 -2
  28. package/dist/chunks/{request-tracing-hr75rahr.js → fetch-kta0tack.js} +2 -2
  29. package/dist/chunks/{request-tracing-haswyr8z.js → fetch-kww1pvjb.js} +2 -2
  30. package/dist/chunks/{request-tracing-5bwq5cz2.js → fetch-pmra5yx3.js} +2 -2
  31. package/dist/chunks/{request-tracing-3atyrqsp.js → fetch-qf0s8ctx.js} +4 -4
  32. package/dist/chunks/{request-tracing-6qwktr1g.js → fetch-qwcstt60.js} +1 -1
  33. package/dist/chunks/{request-tracing-bt9tc5rb.js → fetch-r3mjvgfk.js} +1 -1
  34. package/dist/chunks/{request-tracing-zf591zt5.js → fetch-rdf72e8a.js} +33 -33
  35. package/dist/chunks/{request-tracing-vzvra1kj.js → fetch-rytwz38r.js} +11 -8
  36. package/dist/chunks/{request-tracing-3kzx88w9.js → fetch-tfdbmzkj.js} +5 -4
  37. package/dist/chunks/{request-tracing-v305azr7.js → fetch-v305azr7.js} +1 -1
  38. package/dist/chunks/{request-tracing-96s6m0w3.js → fetch-vrg6639h.js} +2 -2
  39. package/dist/chunks/{request-tracing-pckpdj13.js → fetch-w4srakgh.js} +12 -12
  40. package/dist/chunks/{request-tracing-rjqbhscq.js → fetch-wkt3zs7x.js} +5 -2
  41. package/dist/chunks/{request-tracing-bmqkn4ah.js → fetch-wq6tfxrf.js} +1 -1
  42. package/dist/chunks/{request-tracing-v573ws0d.js → fetch-x22271m7.js} +3 -3
  43. package/dist/chunks/{request-tracing-5w24ch67.js → fetch-xsrtpxyd.js} +4 -4
  44. package/dist/chunks/{request-tracing-ctscy0f5.js → fetch-yddkh4zb.js} +2 -2
  45. package/dist/chunks/{request-tracing-r2rnm758.js → fetch-yjn29jjj.js} +3 -3
  46. package/dist/chunks/{request-tracing-26ta7ngt.js → fetch-z854b9h8.js} +2 -2
  47. package/dist/chunks/{request-tracing-f8rap8f6.js → fetch-zgk9zpte.js} +1 -1
  48. package/dist/cors.js +1 -1
  49. package/dist/event-feed.js +5 -5
  50. package/dist/fetch.js +49 -49
  51. package/dist/handlers/agent.js +6 -6
  52. package/dist/handlers/command.js +6 -6
  53. package/dist/handlers/config.js +6 -6
  54. package/dist/handlers/credential.js +6 -6
  55. package/dist/handlers/debug.js +6 -6
  56. package/dist/handlers/event.js +7 -7
  57. package/dist/handlers/form.js +6 -6
  58. package/dist/handlers/fs.js +6 -6
  59. package/dist/handlers/generate.js +6 -6
  60. package/dist/handlers/integration.js +6 -6
  61. package/dist/handlers/location.js +6 -6
  62. package/dist/handlers/mcp.js +6 -6
  63. package/dist/handlers/message.js +6 -6
  64. package/dist/handlers/migration.js +6 -6
  65. package/dist/handlers/model.js +6 -6
  66. package/dist/handlers/permission.js +6 -6
  67. package/dist/handlers/persistent-pty.js +8 -8
  68. package/dist/handlers/plugin.js +6 -6
  69. package/dist/handlers/project.js +6 -6
  70. package/dist/handlers/provider.js +6 -6
  71. package/dist/handlers/pty-socket.js +1 -1
  72. package/dist/handlers/pty.js +9 -9
  73. package/dist/handlers/reference.js +6 -6
  74. package/dist/handlers/rpc.js +6 -6
  75. package/dist/handlers/server.js +9 -9
  76. package/dist/handlers/session-error.js +1 -1
  77. package/dist/handlers/session.js +6 -6
  78. package/dist/handlers/shell.js +6 -6
  79. package/dist/handlers/skill.js +6 -6
  80. package/dist/handlers/vcs.js +6 -6
  81. package/dist/handlers/websearch.js +6 -6
  82. package/dist/handlers/worktree.js +6 -6
  83. package/dist/handlers.js +43 -43
  84. package/dist/location.d.ts +5 -3
  85. package/dist/location.js +4 -2
  86. package/dist/middleware/authorization.js +2 -2
  87. package/dist/middleware/form-location.d.ts +3 -3
  88. package/dist/middleware/form-location.js +3 -3
  89. package/dist/middleware/schema-error.js +1 -1
  90. package/dist/middleware/session-location.d.ts +3 -3
  91. package/dist/middleware/session-location.js +3 -3
  92. package/dist/pairing.js +1 -1
  93. package/dist/process.js +51 -51
  94. package/dist/pty-environment.js +5 -5
  95. package/dist/request-tracing.js +1 -1
  96. package/dist/routes.d.ts +2 -2
  97. package/dist/routes.js +46 -46
  98. package/dist/server-info.js +1 -1
  99. package/dist/service-status.js +3 -3
  100. package/dist/workerd.js +50 -50
  101. package/package.json +8 -8
  102. /package/dist/chunks/{request-tracing-9rqn6x4v.js → fetch-9rqn6x4v.js} +0 -0
  103. /package/dist/chunks/{request-tracing-hezj1jdf.js → fetch-hezj1jdf.js} +0 -0
  104. /package/dist/chunks/{request-tracing-q4bn6dy8.js → fetch-q4bn6dy8.js} +0 -0
  105. /package/dist/chunks/{request-tracing-smaf4a18.js → fetch-smaf4a18.js} +0 -0
  106. /package/dist/chunks/{request-tracing-t8yzmczr.js → fetch-t8yzmczr.js} +0 -0
  107. /package/dist/chunks/{request-tracing-yc7nft6q.js → fetch-yc7nft6q.js} +0 -0
@@ -1,99 +1,99 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./request-tracing-rjqbhscq.js";
3
+ } from "./fetch-wkt3zs7x.js";
4
4
  import {
5
5
  MessageHandler2
6
- } from "./request-tracing-26ta7ngt.js";
6
+ } from "./fetch-z854b9h8.js";
7
7
  import {
8
8
  ModelHandler2
9
- } from "./request-tracing-b1rdg9nf.js";
9
+ } from "./fetch-2nwa3ky2.js";
10
10
  import {
11
11
  ProviderHandler2
12
- } from "./request-tracing-haswyr8z.js";
12
+ } from "./fetch-kww1pvjb.js";
13
13
  import {
14
14
  SessionHandler2
15
- } from "./request-tracing-vzvra1kj.js";
15
+ } from "./fetch-rytwz38r.js";
16
16
  import {
17
17
  PermissionHandler2
18
- } from "./request-tracing-t88f2hhf.js";
18
+ } from "./fetch-5w803dat.js";
19
19
  import {
20
20
  FileSystemHandler2
21
- } from "./request-tracing-96s6m0w3.js";
21
+ } from "./fetch-vrg6639h.js";
22
22
  import {
23
23
  FormHandler2
24
- } from "./request-tracing-ees77nh9.js";
24
+ } from "./fetch-g27fjyd3.js";
25
25
  import {
26
26
  CommandHandler2
27
- } from "./request-tracing-pme11y2y.js";
27
+ } from "./fetch-00b7zw9n.js";
28
28
  import {
29
29
  SkillHandler2
30
- } from "./request-tracing-hp5sxeae.js";
30
+ } from "./fetch-6w79g1zd.js";
31
31
  import {
32
32
  RpcHandler2
33
- } from "./request-tracing-f8rap8f6.js";
33
+ } from "./fetch-zgk9zpte.js";
34
34
  import {
35
- layer3
36
- } from "./request-tracing-rjpqaa8h.js";
35
+ layer2
36
+ } from "./fetch-2sy3c7de.js";
37
37
  import {
38
38
  EventHandler2
39
- } from "./request-tracing-3atyrqsp.js";
39
+ } from "./fetch-qf0s8ctx.js";
40
40
  import {
41
41
  AgentHandler2
42
- } from "./request-tracing-ctscy0f5.js";
42
+ } from "./fetch-yddkh4zb.js";
43
43
  import {
44
44
  PluginHandler2
45
- } from "./request-tracing-hr75rahr.js";
45
+ } from "./fetch-kta0tack.js";
46
46
  import {
47
47
  ServerHandler2
48
- } from "./request-tracing-7wjh4a38.js";
48
+ } from "./fetch-eces9922.js";
49
49
  import {
50
50
  DebugHandler2
51
- } from "./request-tracing-140y8w7p.js";
51
+ } from "./fetch-kcvfpwaw.js";
52
52
  import {
53
53
  PtyHandler2
54
- } from "./request-tracing-mb9kfqxc.js";
54
+ } from "./fetch-h9qn14ck.js";
55
55
  import {
56
56
  PersistentPtyHandler2
57
- } from "./request-tracing-r2rnm758.js";
57
+ } from "./fetch-yjn29jjj.js";
58
58
  import {
59
59
  ShellHandler2
60
- } from "./request-tracing-7eckj7zq.js";
60
+ } from "./fetch-evmrcn2p.js";
61
61
  import {
62
62
  ReferenceHandler2
63
- } from "./request-tracing-5bwq5cz2.js";
63
+ } from "./fetch-pmra5yx3.js";
64
64
  import {
65
65
  LocationHandler2
66
- } from "./request-tracing-x5ncpjy3.js";
66
+ } from "./fetch-0gwhtgb0.js";
67
67
  import {
68
68
  IntegrationHandler2
69
- } from "./request-tracing-np19kmxx.js";
69
+ } from "./fetch-jv3gkh16.js";
70
70
  import {
71
71
  WebSearchHandler2
72
- } from "./request-tracing-v1emgcvb.js";
72
+ } from "./fetch-0vcrsckz.js";
73
73
  import {
74
74
  McpHandler2
75
- } from "./request-tracing-wz0qz28j.js";
75
+ } from "./fetch-d261w70h.js";
76
76
  import {
77
77
  CredentialHandler2
78
- } from "./request-tracing-e1j0tbav.js";
78
+ } from "./fetch-ajhv9q2g.js";
79
79
  import {
80
80
  ProjectHandler2
81
- } from "./request-tracing-qj9kjxn3.js";
81
+ } from "./fetch-gr63yha5.js";
82
82
  import {
83
83
  WorktreeHandler2
84
- } from "./request-tracing-bt9tc5rb.js";
84
+ } from "./fetch-r3mjvgfk.js";
85
85
  import {
86
86
  VcsHandler2
87
- } from "./request-tracing-p09w8kwp.js";
87
+ } from "./fetch-gesckh61.js";
88
88
  import {
89
89
  MigrationHandler2
90
- } from "./request-tracing-bmqkn4ah.js";
90
+ } from "./fetch-wq6tfxrf.js";
91
91
  import {
92
92
  ConfigHandler2
93
- } from "./request-tracing-6qwktr1g.js";
93
+ } from "./fetch-qwcstt60.js";
94
94
 
95
95
  // src/handlers.ts
96
96
  import { Layer } from "effect";
97
- var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer3)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
97
+ var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer2)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
98
98
 
99
99
  export { handlers2 };
@@ -3,10 +3,13 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./request-tracing-smaf4a18.js";
6
+ } from "./fetch-smaf4a18.js";
7
+ import {
8
+ locationErrors2
9
+ } from "./fetch-14vy2pac.js";
7
10
  import {
8
11
  Api2
9
- } from "./request-tracing-v573ws0d.js";
12
+ } from "./fetch-x22271m7.js";
10
13
 
11
14
  // src/handlers/session.ts
12
15
  import { Session } from "@opencode/core/session";
@@ -188,7 +191,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
188
191
  }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.PromptConflictError", (error) => Effect.fail(new ConflictError({
189
192
  message: `Prompt message ID conflicts with an existing durable record: ${error.messageID}`,
190
193
  resource: error.messageID
191
- }))), Effect.catchTag("Session.AttachmentError", (error) => Effect.fail(new InvalidRequestError({ message: error.message, field: "files" }))), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new InvalidRequestError({ message: `Skill not found: ${error.skill}`, field: "skills" }))))
194
+ }))), Effect.catchTag("Session.AttachmentError", (error) => Effect.fail(new InvalidRequestError({ message: error.message, field: "files" }))), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new InvalidRequestError({ message: `Skill not found: ${error.skill}`, field: "skills" }))), locationErrors2)
192
195
  };
193
196
  })).handle("session.command", Effect.fn(function* (ctx) {
194
197
  yield* session.command({
@@ -205,14 +208,14 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
205
208
  }))), Effect.catchTag("Command.ExecutionError", (error) => Effect.fail(new CommandExecutionError({
206
209
  command: error.command,
207
210
  message: error.message
208
- }))));
211
+ }))), locationErrors2);
209
212
  return HttpApiSchema.NoContent.make();
210
213
  })).handle("session.skill", Effect.fn(function* (ctx) {
211
214
  yield* session.skill({
212
215
  sessionID: ctx.params.sessionID,
213
216
  skill: ctx.payload.id,
214
217
  resume: ctx.payload.resume
215
- }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new SkillNotFoundError({ skill: error.skill, message: `Skill not found: ${error.skill}` }))));
218
+ }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new SkillNotFoundError({ skill: error.skill, message: `Skill not found: ${error.skill}` }))), locationErrors2);
216
219
  return HttpApiSchema.NoContent.make();
217
220
  })).handle("session.synthetic", Effect.fn(function* (ctx) {
218
221
  const data = yield* session.synthetic({
@@ -248,11 +251,11 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
248
251
  files: ctx.payload.files
249
252
  });
250
253
  return {
251
- data: yield* session.revert.stage({ ...ctx.params, ...ctx.payload }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.MessageNotFoundError", missingMessage2), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Snapshot.Error", failedSnapshot2("stage session revert", ctx.params.sessionID)))
254
+ data: yield* session.revert.stage({ ...ctx.params, ...ctx.payload }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.MessageNotFoundError", missingMessage2), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Snapshot.Error", failedSnapshot2("stage session revert", ctx.params.sessionID)), locationErrors2)
252
255
  };
253
256
  })).handle("session.revert.clear", Effect.fn(function* (ctx) {
254
257
  yield* Effect.log("session.revert.clear", { sessionID: ctx.params.sessionID });
255
- yield* session.revert.clear(ctx.params.sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Snapshot.Error", failedSnapshot2("clear session revert", ctx.params.sessionID)));
258
+ yield* session.revert.clear(ctx.params.sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Snapshot.Error", failedSnapshot2("clear session revert", ctx.params.sessionID)), locationErrors2);
256
259
  return HttpApiSchema.NoContent.make();
257
260
  })).handle("session.revert.commit", Effect.fn(function* (ctx) {
258
261
  yield* Effect.log("session.revert.commit", { sessionID: ctx.params.sessionID });
@@ -264,7 +267,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
264
267
  };
265
268
  })).handle("session.diff", Effect.fn(function* (ctx) {
266
269
  return {
267
- data: yield* session.diff({ sessionID: ctx.params.sessionID, ...ctx.query }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.MessageNotFoundError", missingMessage2), Effect.catchTag("Session.TurnRangeError", (error) => new InvalidRequestError({ message: error.message, field: error.field })), Effect.catchTag("Snapshot.Error", failedSnapshot2("diff session turn", ctx.params.sessionID)))
270
+ data: yield* session.diff({ sessionID: ctx.params.sessionID, ...ctx.query }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.MessageNotFoundError", missingMessage2), Effect.catchTag("Session.TurnRangeError", (error) => new InvalidRequestError({ message: error.message, field: error.field })), Effect.catchTag("Snapshot.Error", failedSnapshot2("diff session turn", ctx.params.sessionID)), locationErrors2)
268
271
  };
269
272
  })).handle("session.inbox.list", Effect.fn(function* (ctx) {
270
273
  return {
@@ -1,6 +1,7 @@
1
1
  import {
2
+ locationErrors2,
2
3
  sessionInfo2
3
- } from "./request-tracing-6gkz39ey.js";
4
+ } from "./fetch-14vy2pac.js";
4
5
 
5
6
  // src/middleware/session-location.ts
6
7
  import { Instance } from "@opencode/core/instance/service";
@@ -8,9 +9,9 @@ import { Session } from "@opencode/core/session";
8
9
  import { Effect, Layer } from "effect";
9
10
  import { HttpRouter } from "effect/unstable/http";
10
11
  import { HttpApiMiddleware } from "effect/unstable/httpapi";
11
- import { InvalidRequestError, SessionNotFoundError } from "@opencode/protocol/errors";
12
+ import { LocationNotFoundError, InvalidRequestError, SessionNotFoundError } from "@opencode/protocol/errors";
12
13
  class SessionLocationMiddleware2 extends HttpApiMiddleware.Service()("@opencode/HttpApiSessionLocation", {
13
- error: [InvalidRequestError, SessionNotFoundError]
14
+ error: [InvalidRequestError, SessionNotFoundError, LocationNotFoundError]
14
15
  }) {
15
16
  }
16
17
  var sessionLocationLayer2 = Layer.effect(SessionLocationMiddleware2, Effect.gen(function* () {
@@ -19,7 +20,7 @@ var sessionLocationLayer2 = Layer.effect(SessionLocationMiddleware2, Effect.gen(
19
20
  return SessionLocationMiddleware2.of((effect) => Effect.gen(function* () {
20
21
  const route = yield* HttpRouter.RouteContext;
21
22
  const session = yield* sessionInfo2(sessions, route.params.sessionID);
22
- return yield* effect.pipe(instances.provide(session));
23
+ return yield* effect.pipe(instances.provide(session), locationErrors2);
23
24
  }));
24
25
  }));
25
26
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./fetch-9rqn6x4v.js";
4
4
 
5
5
  // src/server-info.ts
6
6
  var exports_server_info = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-6gkz39ey.js";
3
+ } from "./fetch-14vy2pac.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-v573ws0d.js";
6
+ } from "./fetch-x22271m7.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  layer4
3
- } from "./request-tracing-6gkz39ey.js";
3
+ } from "./fetch-14vy2pac.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./request-tracing-5rwqcaw2.js";
6
+ } from "./fetch-6n8edpm0.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./request-tracing-3kzx88w9.js";
9
+ } from "./fetch-tfdbmzkj.js";
10
10
  import {
11
11
  Api2
12
- } from "./request-tracing-v573ws0d.js";
12
+ } from "./fetch-x22271m7.js";
13
13
  import {
14
14
  Config2
15
- } from "./request-tracing-anm12x33.js";
15
+ } from "./fetch-anm12x33.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./request-tracing-q4bn6dy8.js";
18
+ } from "./fetch-q4bn6dy8.js";
19
19
  import {
20
20
  layer5
21
- } from "./request-tracing-v305azr7.js";
21
+ } from "./fetch-v305azr7.js";
22
22
  import {
23
23
  node3
24
- } from "./request-tracing-byt4hbw9.js";
24
+ } from "./fetch-byt4hbw9.js";
25
25
  import {
26
26
  node2
27
- } from "./request-tracing-bkk2wfbz.js";
27
+ } from "./fetch-0d9kah4z.js";
28
28
  import {
29
29
  handlers2
30
- } from "./request-tracing-zf591zt5.js";
30
+ } from "./fetch-rdf72e8a.js";
31
31
  import {
32
32
  authorizationLayer2
33
- } from "./request-tracing-gtkdacvk.js";
33
+ } from "./fetch-gtkdacvk.js";
34
34
  import {
35
35
  schemaErrorLayer2
36
- } from "./request-tracing-t8yzmczr.js";
36
+ } from "./fetch-t8yzmczr.js";
37
37
 
38
38
  // src/routes.ts
39
39
  import { Database } from "@opencode/core/database/database";
@@ -1,6 +1,9 @@
1
+ import {
2
+ locationErrors2
3
+ } from "./fetch-14vy2pac.js";
1
4
  import {
2
5
  Api2
3
- } from "./request-tracing-v573ws0d.js";
6
+ } from "./fetch-x22271m7.js";
4
7
 
5
8
  // src/handlers/generate.ts
6
9
  import { Generate } from "@opencode/core/generate";
@@ -19,7 +22,7 @@ var GenerateHandler2 = HttpApiBuilder.group(Api2, "server.generate", (handlers)
19
22
  const generate = yield* Generate.Service;
20
23
  const text = yield* generate.text(request.payload).pipe(Effect.mapError((error) => error._tag === "Generate.ModelSelectionError" ? new InvalidRequestError({ message: error.message }) : new ServiceUnavailableError({ message: error.message, service: error.service })));
21
24
  return { data: { text } };
22
- }, Effect.provide(services)));
25
+ }, Effect.provide(services), locationErrors2));
23
26
  }));
24
27
 
25
28
  export { GenerateHandler2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-v573ws0d.js";
3
+ } from "./fetch-x22271m7.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./request-tracing-6gkz39ey.js";
3
+ } from "./fetch-14vy2pac.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./request-tracing-5rwqcaw2.js";
6
+ } from "./fetch-6n8edpm0.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./request-tracing-3kzx88w9.js";
9
+ } from "./fetch-tfdbmzkj.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./fetch-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,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-6gkz39ey.js";
3
+ } from "./fetch-14vy2pac.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-v573ws0d.js";
6
+ } from "./fetch-x22271m7.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-v573ws0d.js";
3
+ } from "./fetch-x22271m7.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./request-tracing-q4bn6dy8.js";
7
+ } from "./fetch-q4bn6dy8.js";
8
8
  import {
9
9
  runPtySocket2
10
- } from "./request-tracing-hezj1jdf.js";
10
+ } from "./fetch-hezj1jdf.js";
11
11
 
12
12
  // src/handlers/persistent-pty.ts
13
13
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./request-tracing-smaf4a18.js";
4
+ } from "./fetch-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-v573ws0d.js";
7
+ } from "./fetch-x22271m7.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-v573ws0d.js";
3
+ } from "./fetch-x22271m7.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
package/dist/cors.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CorsConfig2,
3
3
  isAllowedCorsOrigin2,
4
4
  isAllowedRequestOrigin2
5
- } from "./chunks/request-tracing-q4bn6dy8.js";
5
+ } from "./chunks/fetch-q4bn6dy8.js";
6
6
  export {
7
7
  CorsConfig2 as CorsConfig,
8
8
  isAllowedCorsOrigin2 as isAllowedCorsOrigin,
@@ -2,19 +2,19 @@ import {
2
2
  SubscriberCapacity2,
3
3
  SubscriberOverflowError2,
4
4
  EncodingError2,
5
- Service3,
5
+ Service2,
6
6
  frame2,
7
7
  make4,
8
- layer3,
8
+ layer2,
9
9
  exports_event_feed
10
- } from "./chunks/request-tracing-rjpqaa8h.js";
10
+ } from "./chunks/fetch-2sy3c7de.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,
14
- Service3 as Service,
14
+ Service2 as Service,
15
15
  SubscriberCapacity2 as SubscriberCapacity,
16
16
  SubscriberOverflowError2 as SubscriberOverflowError,
17
17
  frame2 as frame,
18
- layer3 as layer,
18
+ layer2 as layer,
19
19
  make4 as make
20
20
  };
package/dist/fetch.js CHANGED
@@ -1,54 +1,54 @@
1
1
  import {
2
- make2,
2
+ make3,
3
3
  exports_fetch
4
- } from "./chunks/request-tracing-19ydfr4n.js";
5
- import"./chunks/request-tracing-pckpdj13.js";
6
- import"./chunks/request-tracing-gtkdacvk.js";
7
- import"./chunks/request-tracing-t8yzmczr.js";
8
- import"./chunks/request-tracing-zf591zt5.js";
9
- import"./chunks/request-tracing-3atyrqsp.js";
10
- import"./chunks/request-tracing-96s6m0w3.js";
11
- import"./chunks/request-tracing-bmqkn4ah.js";
12
- import"./chunks/request-tracing-np19kmxx.js";
13
- import"./chunks/request-tracing-bt9tc5rb.js";
14
- import"./chunks/request-tracing-r2rnm758.js";
15
- import"./chunks/request-tracing-v1emgcvb.js";
16
- import"./chunks/request-tracing-haswyr8z.js";
17
- import"./chunks/request-tracing-b1rdg9nf.js";
18
- import"./chunks/request-tracing-qj9kjxn3.js";
19
- import"./chunks/request-tracing-ees77nh9.js";
20
- import"./chunks/request-tracing-t88f2hhf.js";
21
- import"./chunks/request-tracing-5bwq5cz2.js";
22
- import"./chunks/request-tracing-ctscy0f5.js";
23
- import"./chunks/request-tracing-hr75rahr.js";
24
- import"./chunks/request-tracing-hp5sxeae.js";
25
- import"./chunks/request-tracing-7wjh4a38.js";
26
- import"./chunks/request-tracing-vzvra1kj.js";
27
- import"./chunks/request-tracing-e1j0tbav.js";
28
- import"./chunks/request-tracing-mb9kfqxc.js";
29
- import"./chunks/request-tracing-hezj1jdf.js";
30
- import"./chunks/request-tracing-6qwktr1g.js";
31
- import"./chunks/request-tracing-f8rap8f6.js";
32
- import"./chunks/request-tracing-26ta7ngt.js";
33
- import"./chunks/request-tracing-p09w8kwp.js";
34
- import"./chunks/request-tracing-140y8w7p.js";
35
- import"./chunks/request-tracing-pme11y2y.js";
36
- import"./chunks/request-tracing-x5ncpjy3.js";
37
- import"./chunks/request-tracing-7eckj7zq.js";
38
- import"./chunks/request-tracing-wz0qz28j.js";
39
- import"./chunks/request-tracing-rjqbhscq.js";
40
- import"./chunks/request-tracing-bkk2wfbz.js";
41
- import"./chunks/request-tracing-rjpqaa8h.js";
42
- import"./chunks/request-tracing-v573ws0d.js";
43
- import"./chunks/request-tracing-5rwqcaw2.js";
44
- import"./chunks/request-tracing-3kzx88w9.js";
45
- import"./chunks/request-tracing-6gkz39ey.js";
46
- import"./chunks/request-tracing-smaf4a18.js";
47
- import"./chunks/request-tracing-q4bn6dy8.js";
48
- import"./chunks/request-tracing-byt4hbw9.js";
49
- import"./chunks/request-tracing-anm12x33.js";
50
- import"./chunks/request-tracing-v305azr7.js";
4
+ } from "./chunks/fetch-a44pvkv9.js";
5
+ import"./chunks/fetch-w4srakgh.js";
6
+ import"./chunks/fetch-t8yzmczr.js";
7
+ import"./chunks/fetch-gtkdacvk.js";
8
+ import"./chunks/fetch-rdf72e8a.js";
9
+ import"./chunks/fetch-vrg6639h.js";
10
+ import"./chunks/fetch-rytwz38r.js";
11
+ import"./chunks/fetch-eces9922.js";
12
+ import"./chunks/fetch-jv3gkh16.js";
13
+ import"./chunks/fetch-gesckh61.js";
14
+ import"./chunks/fetch-yjn29jjj.js";
15
+ import"./chunks/fetch-pmra5yx3.js";
16
+ import"./chunks/fetch-g27fjyd3.js";
17
+ import"./chunks/fetch-r3mjvgfk.js";
18
+ import"./chunks/fetch-yddkh4zb.js";
19
+ import"./chunks/fetch-h9qn14ck.js";
20
+ import"./chunks/fetch-hezj1jdf.js";
21
+ import"./chunks/fetch-wq6tfxrf.js";
22
+ import"./chunks/fetch-kta0tack.js";
23
+ import"./chunks/fetch-wkt3zs7x.js";
24
+ import"./chunks/fetch-gr63yha5.js";
25
+ import"./chunks/fetch-0vcrsckz.js";
26
+ import"./chunks/fetch-6w79g1zd.js";
27
+ import"./chunks/fetch-z854b9h8.js";
28
+ import"./chunks/fetch-0gwhtgb0.js";
29
+ import"./chunks/fetch-evmrcn2p.js";
30
+ import"./chunks/fetch-kcvfpwaw.js";
31
+ import"./chunks/fetch-5w803dat.js";
32
+ import"./chunks/fetch-qwcstt60.js";
33
+ import"./chunks/fetch-00b7zw9n.js";
34
+ import"./chunks/fetch-qf0s8ctx.js";
35
+ import"./chunks/fetch-kww1pvjb.js";
36
+ import"./chunks/fetch-2nwa3ky2.js";
37
+ import"./chunks/fetch-zgk9zpte.js";
38
+ import"./chunks/fetch-d261w70h.js";
39
+ import"./chunks/fetch-ajhv9q2g.js";
40
+ import"./chunks/fetch-q4bn6dy8.js";
41
+ import"./chunks/fetch-x22271m7.js";
42
+ import"./chunks/fetch-tfdbmzkj.js";
43
+ import"./chunks/fetch-6n8edpm0.js";
44
+ import"./chunks/fetch-2sy3c7de.js";
45
+ import"./chunks/fetch-0d9kah4z.js";
46
+ import"./chunks/fetch-byt4hbw9.js";
47
+ import"./chunks/fetch-14vy2pac.js";
48
+ import"./chunks/fetch-smaf4a18.js";
49
+ import"./chunks/fetch-anm12x33.js";
50
+ import"./chunks/fetch-v305azr7.js";
51
51
  export {
52
52
  exports_fetch as ServerFetch,
53
- make2 as make
53
+ make3 as make
54
54
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentHandler2
3
- } from "../chunks/request-tracing-ctscy0f5.js";
4
- import"../chunks/request-tracing-v573ws0d.js";
5
- import"../chunks/request-tracing-5rwqcaw2.js";
6
- import"../chunks/request-tracing-3kzx88w9.js";
7
- import"../chunks/request-tracing-6gkz39ey.js";
8
- import"../chunks/request-tracing-smaf4a18.js";
3
+ } from "../chunks/fetch-yddkh4zb.js";
4
+ import"../chunks/fetch-x22271m7.js";
5
+ import"../chunks/fetch-tfdbmzkj.js";
6
+ import"../chunks/fetch-6n8edpm0.js";
7
+ import"../chunks/fetch-14vy2pac.js";
8
+ import"../chunks/fetch-smaf4a18.js";
9
9
  export {
10
10
  AgentHandler2 as AgentHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CommandHandler2
3
- } from "../chunks/request-tracing-pme11y2y.js";
4
- import"../chunks/request-tracing-v573ws0d.js";
5
- import"../chunks/request-tracing-5rwqcaw2.js";
6
- import"../chunks/request-tracing-3kzx88w9.js";
7
- import"../chunks/request-tracing-6gkz39ey.js";
8
- import"../chunks/request-tracing-smaf4a18.js";
3
+ } from "../chunks/fetch-00b7zw9n.js";
4
+ import"../chunks/fetch-x22271m7.js";
5
+ import"../chunks/fetch-tfdbmzkj.js";
6
+ import"../chunks/fetch-6n8edpm0.js";
7
+ import"../chunks/fetch-14vy2pac.js";
8
+ import"../chunks/fetch-smaf4a18.js";
9
9
  export {
10
10
  CommandHandler2 as CommandHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ConfigHandler2
3
- } from "../chunks/request-tracing-6qwktr1g.js";
4
- import"../chunks/request-tracing-v573ws0d.js";
5
- import"../chunks/request-tracing-5rwqcaw2.js";
6
- import"../chunks/request-tracing-3kzx88w9.js";
7
- import"../chunks/request-tracing-6gkz39ey.js";
8
- import"../chunks/request-tracing-smaf4a18.js";
3
+ } from "../chunks/fetch-qwcstt60.js";
4
+ import"../chunks/fetch-x22271m7.js";
5
+ import"../chunks/fetch-tfdbmzkj.js";
6
+ import"../chunks/fetch-6n8edpm0.js";
7
+ import"../chunks/fetch-14vy2pac.js";
8
+ import"../chunks/fetch-smaf4a18.js";
9
9
  export {
10
10
  ConfigHandler2 as ConfigHandler
11
11
  };