@opencode/server 2.0.32 → 2.1.1

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 +1994 -1968
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{workerd-v1jdrp9c.js → location-08x9tjee.js} +1 -1
  5. package/dist/chunks/{workerd-aqzwjzmb.js → location-0d864bga.js} +1 -1
  6. package/dist/chunks/{workerd-gx2yvssc.js → location-10hxeg6b.js} +3 -3
  7. package/dist/chunks/{workerd-zbkyrdqr.js → location-2c5m7t9e.js} +16 -16
  8. package/dist/chunks/{workerd-sq0m2new.js → location-33prfkkd.js} +18 -4
  9. package/dist/chunks/{workerd-wtxh433d.js → location-43r48nqn.js} +2 -2
  10. package/dist/chunks/{workerd-j8p25vmv.js → location-4d1eemzq.js} +2 -2
  11. package/dist/chunks/{workerd-vtvdbwhg.js → location-4dv9a668.js} +2 -2
  12. package/dist/chunks/{workerd-n9y13hgv.js → location-4g2hx1xt.js} +5 -5
  13. package/dist/chunks/{workerd-1ahadpvw.js → location-4hhhes7w.js} +1 -1
  14. package/dist/chunks/{workerd-gv627jgt.js → location-5zsr2h86.js} +1 -1
  15. package/dist/chunks/{workerd-q282hknm.js → location-686p2xfa.js} +2 -2
  16. package/dist/chunks/{workerd-41c7f34m.js → location-71n7prbj.js} +8 -8
  17. package/dist/chunks/{workerd-rmttg9h7.js → location-7vd5668a.js} +1 -1
  18. package/dist/chunks/{workerd-6t8za67t.js → location-8137b89p.js} +2 -2
  19. package/dist/chunks/{workerd-6kta5392.js → location-97eb2r3v.js} +2 -2
  20. package/dist/chunks/{workerd-gb66h69v.js → location-9snwnvf8.js} +3 -3
  21. package/dist/chunks/{workerd-anm12x33.js → location-anm12x33.js} +1 -1
  22. package/dist/chunks/{workerd-gqq6kfhc.js → location-b56hqv74.js} +3 -3
  23. package/dist/chunks/{workerd-bkk2wfbz.js → location-bkk2wfbz.js} +1 -1
  24. package/dist/chunks/{workerd-hspp8v12.js → location-bx47k33v.js} +2 -2
  25. package/dist/chunks/{workerd-w9v2ckxc.js → location-ctk1s78a.js} +32 -32
  26. package/dist/chunks/{workerd-atk2et4d.js → location-cv0ajwc9.js} +2 -2
  27. package/dist/chunks/{workerd-xxxx0904.js → location-ewe1fzkk.js} +2 -2
  28. package/dist/chunks/{workerd-19dc7z8q.js → location-ftaz8n62.js} +2 -2
  29. package/dist/chunks/{workerd-g0rzwe5g.js → location-ghk96rjy.js} +7 -7
  30. package/dist/chunks/{workerd-6br0y3ag.js → location-h8ws5ssa.js} +1 -1
  31. package/dist/chunks/{workerd-yet0vexm.js → location-j4zqsxgy.js} +1 -1
  32. package/dist/chunks/{workerd-6v3300ee.js → location-jkvn5n4s.js} +2 -2
  33. package/dist/chunks/{workerd-3nkz1tfz.js → location-p74g497q.js} +5 -5
  34. package/dist/chunks/{workerd-67kmywtk.js → location-ptey1p5v.js} +2 -2
  35. package/dist/chunks/{workerd-q8cqvm6j.js → location-qbh90c1d.js} +2 -2
  36. package/dist/chunks/{workerd-74sf36cc.js → location-rf01ee6q.js} +1 -1
  37. package/dist/chunks/{workerd-cqhyyp3f.js → location-rntbwr87.js} +2 -2
  38. package/dist/chunks/{workerd-kr61w04k.js → location-sstsrjtg.js} +7 -7
  39. package/dist/chunks/{workerd-77mqkxfz.js → location-ssyxw8nc.js} +2 -2
  40. package/dist/chunks/{workerd-5s6jxak8.js → location-tz3mehbr.js} +6 -6
  41. package/dist/chunks/{workerd-0m09ryg3.js → location-vb5yx5r0.js} +2 -2
  42. package/dist/chunks/{workerd-nvdz1s2r.js → location-vbzm2jgm.js} +2 -2
  43. package/dist/chunks/{workerd-xsrtpxyd.js → location-vpz7f20y.js} +4 -4
  44. package/dist/chunks/{workerd-98r9ymd0.js → location-wk806w00.js} +6 -34
  45. package/dist/chunks/{workerd-ej45n981.js → location-yehasrps.js} +2 -2
  46. package/dist/chunks/{workerd-yfz2nrjq.js → location-yfz2nrjq.js} +1 -1
  47. package/dist/chunks/{workerd-m0y4004e.js → location-z6sxg6td.js} +1 -1
  48. package/dist/chunks/{workerd-pxdkane5.js → location-zessacar.js} +2 -2
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +3 -3
  51. package/dist/fetch.d.ts +26 -26
  52. package/dist/fetch.js +50 -50
  53. package/dist/handlers/agent.d.ts +1 -1
  54. package/dist/handlers/agent.js +6 -6
  55. package/dist/handlers/command.d.ts +1 -1
  56. package/dist/handlers/command.js +6 -6
  57. package/dist/handlers/config.d.ts +1 -1
  58. package/dist/handlers/config.js +6 -6
  59. package/dist/handlers/credential.d.ts +1 -1
  60. package/dist/handlers/credential.js +6 -6
  61. package/dist/handlers/debug.d.ts +1 -1
  62. package/dist/handlers/debug.js +6 -6
  63. package/dist/handlers/event.d.ts +1 -1
  64. package/dist/handlers/event.js +7 -7
  65. package/dist/handlers/form.d.ts +1 -1
  66. package/dist/handlers/form.js +6 -6
  67. package/dist/handlers/fs.d.ts +1 -1
  68. package/dist/handlers/fs.js +6 -6
  69. package/dist/handlers/generate.d.ts +1 -1
  70. package/dist/handlers/generate.js +6 -6
  71. package/dist/handlers/integration.d.ts +1 -1
  72. package/dist/handlers/integration.js +6 -6
  73. package/dist/handlers/location.d.ts +1 -1
  74. package/dist/handlers/location.js +6 -6
  75. package/dist/handlers/mcp.d.ts +1 -1
  76. package/dist/handlers/mcp.js +6 -6
  77. package/dist/handlers/message.d.ts +1 -1
  78. package/dist/handlers/message.js +6 -6
  79. package/dist/handlers/migration.d.ts +1 -1
  80. package/dist/handlers/migration.js +6 -6
  81. package/dist/handlers/model.d.ts +1 -1
  82. package/dist/handlers/model.js +6 -6
  83. package/dist/handlers/permission.d.ts +1 -1
  84. package/dist/handlers/permission.js +6 -6
  85. package/dist/handlers/persistent-pty.d.ts +1 -1
  86. package/dist/handlers/persistent-pty.js +8 -8
  87. package/dist/handlers/plugin.d.ts +1 -1
  88. package/dist/handlers/plugin.js +6 -6
  89. package/dist/handlers/project.d.ts +1 -1
  90. package/dist/handlers/project.js +6 -6
  91. package/dist/handlers/provider.d.ts +1 -1
  92. package/dist/handlers/provider.js +6 -6
  93. package/dist/handlers/pty-socket.d.ts +1 -1
  94. package/dist/handlers/pty-socket.js +1 -1
  95. package/dist/handlers/pty.d.ts +1 -1
  96. package/dist/handlers/pty.js +9 -9
  97. package/dist/handlers/reference.d.ts +1 -1
  98. package/dist/handlers/reference.js +6 -6
  99. package/dist/handlers/rpc.d.ts +1 -1
  100. package/dist/handlers/rpc.js +6 -6
  101. package/dist/handlers/server.d.ts +1 -1
  102. package/dist/handlers/server.js +9 -9
  103. package/dist/handlers/session-error.js +1 -1
  104. package/dist/handlers/session.d.ts +1 -1
  105. package/dist/handlers/session.js +6 -6
  106. package/dist/handlers/shell.d.ts +1 -1
  107. package/dist/handlers/shell.js +6 -6
  108. package/dist/handlers/skill.d.ts +1 -1
  109. package/dist/handlers/skill.js +6 -6
  110. package/dist/handlers/vcs.d.ts +1 -1
  111. package/dist/handlers/vcs.js +6 -6
  112. package/dist/handlers/voice.d.ts +1 -1
  113. package/dist/handlers/voice.js +6 -6
  114. package/dist/handlers/websearch.d.ts +1 -1
  115. package/dist/handlers/websearch.js +6 -6
  116. package/dist/handlers/worktree.d.ts +1 -1
  117. package/dist/handlers/worktree.js +6 -6
  118. package/dist/handlers.d.ts +1 -1
  119. package/dist/handlers.js +44 -44
  120. package/dist/location.d.ts +1 -1
  121. package/dist/location.js +4 -4
  122. package/dist/middleware/authorization.js +2 -2
  123. package/dist/middleware/form-location.d.ts +1 -1
  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 +3 -3
  129. package/dist/process.d.ts +27 -27
  130. package/dist/process.js +52 -52
  131. package/dist/pty-environment.js +1 -1
  132. package/dist/request-tracing.js +1 -1
  133. package/dist/routes.d.ts +2 -2
  134. package/dist/routes.js +47 -47
  135. package/dist/server-info.js +5 -5
  136. package/dist/service-status.js +3 -3
  137. package/dist/workerd.js +51 -51
  138. package/package.json +11 -11
  139. /package/dist/chunks/{workerd-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  140. /package/dist/chunks/{workerd-erzfdgke.js → location-erzfdgke.js} +0 -0
  141. /package/dist/chunks/{workerd-h6rt5k9s.js → location-h6rt5k9s.js} +0 -0
  142. /package/dist/chunks/{workerd-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
  143. /package/dist/chunks/{workerd-smaf4a18.js → location-smaf4a18.js} +0 -0
  144. /package/dist/chunks/{workerd-yc7nft6q.js → location-yc7nft6q.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./workerd-gqq6kfhc.js";
4
+ } from "./location-b56hqv74.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-gb66h69v.js";
3
+ } from "./location-9snwnvf8.js";
4
4
  import {
5
5
  Service4,
6
6
  frame2
7
- } from "./workerd-n9y13hgv.js";
7
+ } from "./location-4g2hx1xt.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -2,20 +2,20 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./workerd-gqq6kfhc.js";
5
+ } from "./location-b56hqv74.js";
6
6
  import {
7
7
  Api2
8
- } from "./workerd-gb66h69v.js";
8
+ } from "./location-9snwnvf8.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./workerd-q4bn6dy8.js";
12
+ } from "./location-q4bn6dy8.js";
13
13
  import {
14
14
  Service2
15
- } from "./workerd-bkk2wfbz.js";
15
+ } from "./location-bkk2wfbz.js";
16
16
  import {
17
17
  runPtySocket2
18
- } from "./workerd-h6rt5k9s.js";
18
+ } from "./location-h6rt5k9s.js";
19
19
 
20
20
  // src/handlers/pty.ts
21
21
  import { Pty } from "@opencode/core/pty";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-gb66h69v.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-gb66h69v.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-gb66h69v.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-gb66h69v.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/pairing.ts
6
6
  var exports_pairing = {};
7
7
  __export(exports_pairing, {
8
8
  ServerPairing: () => exports_pairing,
9
- Service: () => Service3,
9
+ Service: () => Service5,
10
10
  node: () => node3
11
11
  });
12
12
  import { Cache, Context, Duration, Effect, Layer } from "effect";
@@ -14,12 +14,12 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
14
14
  import { randomBytes } from "node:crypto";
15
15
  var TTL = Duration.minutes(5);
16
16
 
17
- class Service3 extends Context.Service()("@opencode/ServerPairing") {
17
+ class Service5 extends Context.Service()("@opencode/ServerPairing") {
18
18
  }
19
19
  var noLookup = () => Effect.die(new Error("ServerPairing cache must be used via set/invalidateWhen, never get"));
20
- var layer = Layer.effect(Service3, Effect.gen(function* () {
20
+ var layer = Layer.effect(Service5, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service3.of({
22
+ return Service5.of({
23
23
  issue: Effect.fn("ServerPairing.issue")(function* () {
24
24
  const code = randomBytes(16).toString("base64url");
25
25
  yield* Cache.set(cache, code, true);
@@ -30,6 +30,6 @@ var layer = Layer.effect(Service3, Effect.gen(function* () {
30
30
  })
31
31
  });
32
32
  }));
33
- var node3 = makeGlobalNode({ service: Service3, layer, deps: [] });
33
+ var node3 = makeGlobalNode({ service: Service5, layer, deps: [] });
34
34
 
35
- export { Service3, node3, exports_pairing };
35
+ export { Service5, node3, exports_pairing };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-gb66h69v.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./workerd-q4bn6dy8.js";
3
+ } from "./location-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./workerd-zbkyrdqr.js";
6
+ } from "./location-2c5m7t9e.js";
7
7
  import {
8
8
  __export
9
- } from "./workerd-9rqn6x4v.js";
9
+ } from "./location-9rqn6x4v.js";
10
10
 
11
11
  // src/fetch.ts
12
12
  var exports_fetch = {};
13
13
  __export(exports_fetch, {
14
14
  ServerFetch: () => exports_fetch,
15
- make: () => make3
15
+ make: () => make2
16
16
  });
17
17
  import { Context, Effect, Layer } from "effect";
18
18
  import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
19
19
  import { SessionRestart } from "@opencode/core/session/execution/restart";
20
- var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
20
+ var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
21
21
  const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
22
22
  yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
23
23
  return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
24
24
  });
25
25
 
26
- export { make3, exports_fetch };
26
+ export { make2, exports_fetch };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./workerd-smaf4a18.js";
4
+ } from "./location-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./workerd-gb66h69v.js";
7
+ } from "./location-9snwnvf8.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-gb66h69v.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/service-status.ts
6
6
  var exports_service_status = {};
7
7
  __export(exports_service_status, {
8
8
  Status: () => exports_service_status,
9
- make: () => make2
9
+ make: () => make4
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make2 = Effect.fnUntraced(function* (options = {}) {
12
+ var make4 = Effect.fnUntraced(function* (options = {}) {
13
13
  const current = yield* Ref.make(options.initial ?? { type: "starting" });
14
14
  const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
15
15
  return {
@@ -20,4 +20,4 @@ var make2 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make2, exports_service_status };
23
+ export { make4, exports_service_status };
@@ -3,13 +3,13 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./workerd-smaf4a18.js";
6
+ } from "./location-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./workerd-gqq6kfhc.js";
9
+ } from "./location-b56hqv74.js";
10
10
  import {
11
11
  Api2
12
- } from "./workerd-gb66h69v.js";
12
+ } from "./location-9snwnvf8.js";
13
13
 
14
14
  // src/handlers/session.ts
15
15
  import { Session } from "@opencode/core/session";
@@ -20,7 +20,6 @@ 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
22
  import { HttpApiBuilder, HttpApiSchema } from "effect/http-api";
23
- import { SessionsCursor } from "@opencode/protocol/groups/session";
24
23
  import {
25
24
  ConflictError,
26
25
  CommandExecutionError,
@@ -36,7 +35,6 @@ import {
36
35
  SkillNotFoundError
37
36
  } from "@opencode/protocol/errors";
38
37
  import { AbsolutePath } from "@opencode/core/schema";
39
- var DefaultSessionsLimit = 50;
40
38
  function missingForm(id) {
41
39
  return new FormNotFoundError({ id, message: `Form not found: ${id}` });
42
40
  }
@@ -56,35 +54,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
56
54
  });
57
55
  const pendingMutation = (effect, conflict) => effect.pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.InboxConflictError", (error) => new ConflictError({ resource: error.inboxID, message: `${conflict}: ${error.inboxID}` })), Effect.as(HttpApiSchema.NoContent.make()));
58
56
  return handlers.handle("session.list", Effect.fn(function* (ctx) {
59
- const query = ctx.query.cursor !== undefined ? yield* SessionsCursor.parse(ctx.query.cursor).pipe(Effect.mapError(() => new InvalidCursorError({ message: "Invalid cursor" }))) : ctx.query;
60
- const page = yield* session.list({
61
- ...query,
62
- limit: ctx.query.limit ?? DefaultSessionsLimit
63
- });
64
- const sessions = page.data;
65
- const first = sessions[0];
66
- const last = sessions.at(-1);
67
- return {
68
- data: sessions,
69
- cursor: {
70
- previous: first ? SessionsCursor.make({
71
- ...query,
72
- anchor: {
73
- id: first.id,
74
- time: DateTime.toEpochMillis(first.time.updated),
75
- direction: "previous"
76
- }
77
- }) : undefined,
78
- next: last ? SessionsCursor.make({
79
- ...query,
80
- anchor: {
81
- id: last.id,
82
- time: DateTime.toEpochMillis(last.time.updated),
83
- direction: "next"
84
- }
85
- }) : undefined
86
- }
87
- };
57
+ return yield* session.list(ctx.query).pipe(Effect.catchTag("Session.InvalidListCursorError", (error) => new InvalidCursorError({ message: error.message })));
88
58
  })).handle("session.stats", Effect.fn(function* (ctx) {
89
59
  const timezone = ctx.query.timezone ?? "UTC";
90
60
  yield* Effect.try({
@@ -168,6 +138,8 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
168
138
  yield* session.setMetadata({ sessionID: ctx.params.sessionID, metadata: ctx.payload.metadata }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
169
139
  if (ctx.payload.permissions !== undefined)
170
140
  yield* session.setPermissions({ sessionID: ctx.params.sessionID, permissions: ctx.payload.permissions }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
141
+ if (ctx.payload.archived !== undefined)
142
+ yield* (ctx.payload.archived ? session.archive : session.unarchive)(ctx.params.sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
171
143
  return HttpApiSchema.NoContent.make();
172
144
  })).handle("session.move", Effect.fn(function* (ctx) {
173
145
  yield* session.move({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-gb66h69v.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./workerd-anm12x33.js";
7
+ } from "./location-anm12x33.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 "./workerd-gb66h69v.js";
3
+ } from "./location-9snwnvf8.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./location-b56hqv74.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-gb66h69v.js";
6
+ } from "./location-9snwnvf8.js";
7
7
 
8
8
  // src/handlers/mcp.ts
9
9
  import { Mcp } from "@opencode/core/mcp/index";
package/dist/cors.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CorsConfig2,
3
3
  isAllowedCorsOrigin2,
4
4
  isAllowedRequestOrigin2
5
- } from "./chunks/workerd-q4bn6dy8.js";
5
+ } from "./chunks/location-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
  Service4,
6
6
  frame2,
7
- make4,
7
+ make3,
8
8
  layer4,
9
9
  exports_event_feed
10
- } from "./chunks/workerd-n9y13hgv.js";
10
+ } from "./chunks/location-4g2hx1xt.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,
@@ -16,5 +16,5 @@ export {
16
16
  SubscriberOverflowError2 as SubscriberOverflowError,
17
17
  frame2 as frame,
18
18
  layer4 as layer,
19
- make4 as make
19
+ make3 as make
20
20
  };
package/dist/fetch.d.ts CHANGED
@@ -31,49 +31,49 @@ export interface BootOptions {
31
31
  * next boot, and the sweep is a no-op when nothing is suspended.
32
32
  */
33
33
  export declare const make: (options?: {
34
- readonly models?: {
35
- readonly url?: string | undefined;
36
- readonly file?: string | undefined;
37
- readonly snapshot?: boolean | undefined;
38
- readonly fetch?: boolean | undefined;
34
+ readonly app?: {
35
+ readonly name?: string | undefined;
36
+ readonly version?: string | undefined;
37
+ readonly channel?: string | undefined;
39
38
  } | undefined;
40
- readonly events?: {
41
- readonly persist?: boolean | undefined;
39
+ readonly hostname?: string | undefined;
40
+ readonly port?: number | undefined;
41
+ readonly password?: string | undefined;
42
+ readonly cors?: readonly string[] | undefined;
43
+ readonly simulation?: boolean | undefined;
44
+ readonly database?: {
45
+ readonly path?: string | undefined;
42
46
  } | undefined;
43
47
  readonly pty?: {
44
- readonly root?: string | undefined;
45
48
  readonly handoff?: {
46
49
  readonly directory: string;
47
50
  readonly instanceID: string;
48
51
  readonly ticket: string;
49
52
  readonly expiresAt: number;
50
53
  } | undefined;
54
+ readonly root?: string | undefined;
55
+ } | undefined;
56
+ readonly events?: {
57
+ readonly persist?: boolean | undefined;
58
+ } | undefined;
59
+ readonly models?: {
60
+ readonly url?: string | undefined;
61
+ readonly file?: string | undefined;
62
+ readonly fetch?: boolean | undefined;
63
+ readonly snapshot?: boolean | undefined;
51
64
  } | undefined;
52
65
  readonly config?: {
53
66
  readonly directory?: string | undefined;
54
67
  readonly project?: boolean | undefined;
55
- readonly content?: string | undefined;
56
- readonly file?: string | undefined;
57
68
  readonly claude?: boolean | undefined;
69
+ readonly file?: string | undefined;
70
+ readonly content?: string | undefined;
58
71
  } | undefined;
59
- readonly port?: number | undefined;
60
- readonly fs?: {
61
- readonly fff?: boolean | undefined;
62
- readonly filewatcher?: boolean | undefined;
63
- } | undefined;
64
- readonly hostname?: string | undefined;
65
- readonly cors?: readonly string[] | undefined;
66
72
  readonly windows?: {
67
73
  readonly gitbash?: string | undefined;
68
74
  } | undefined;
69
- readonly password?: string | undefined;
70
- readonly app?: {
71
- readonly version?: string | undefined;
72
- readonly name?: string | undefined;
73
- readonly channel?: string | undefined;
74
- } | undefined;
75
- readonly simulation?: boolean | undefined;
76
- readonly database?: {
77
- readonly path?: string | undefined;
75
+ readonly fs?: {
76
+ readonly filewatcher?: boolean | undefined;
77
+ readonly fff?: boolean | undefined;
78
78
  } | undefined;
79
79
  } | undefined, boot?: BootOptions | undefined) => Effect.Effect<(request: Request, context?: Context.Context<never> | undefined) => Promise<globalThis.Response>, Error, import("effect/Scope").Scope>;
package/dist/fetch.js CHANGED
@@ -1,55 +1,55 @@
1
1
  import {
2
- make3,
2
+ make2,
3
3
  exports_fetch
4
- } from "./chunks/workerd-5s6jxak8.js";
5
- import"./chunks/workerd-zbkyrdqr.js";
6
- import"./chunks/workerd-erzfdgke.js";
7
- import"./chunks/workerd-yfz2nrjq.js";
8
- import"./chunks/workerd-w9v2ckxc.js";
9
- import"./chunks/workerd-rmttg9h7.js";
10
- import"./chunks/workerd-ej45n981.js";
11
- import"./chunks/workerd-gx2yvssc.js";
12
- import"./chunks/workerd-vtvdbwhg.js";
13
- import"./chunks/workerd-v1jdrp9c.js";
14
- import"./chunks/workerd-cqhyyp3f.js";
15
- import"./chunks/workerd-3nkz1tfz.js";
16
- import"./chunks/workerd-q8cqvm6j.js";
17
- import"./chunks/workerd-gv627jgt.js";
18
- import"./chunks/workerd-m0y4004e.js";
19
- import"./chunks/workerd-67kmywtk.js";
20
- import"./chunks/workerd-98r9ymd0.js";
21
- import"./chunks/workerd-pxdkane5.js";
22
- import"./chunks/workerd-atk2et4d.js";
23
- import"./chunks/workerd-19dc7z8q.js";
24
- import"./chunks/workerd-xxxx0904.js";
25
- import"./chunks/workerd-74sf36cc.js";
26
- import"./chunks/workerd-77mqkxfz.js";
27
- import"./chunks/workerd-wtxh433d.js";
28
- import"./chunks/workerd-nvdz1s2r.js";
29
- import"./chunks/workerd-h6rt5k9s.js";
30
- import"./chunks/workerd-q282hknm.js";
31
- import"./chunks/workerd-6kta5392.js";
32
- import"./chunks/workerd-41c7f34m.js";
33
- import"./chunks/workerd-j8p25vmv.js";
34
- import"./chunks/workerd-6t8za67t.js";
35
- import"./chunks/workerd-0m09ryg3.js";
36
- import"./chunks/workerd-6v3300ee.js";
37
- import"./chunks/workerd-sq0m2new.js";
38
- import"./chunks/workerd-6br0y3ag.js";
39
- import"./chunks/workerd-aqzwjzmb.js";
40
- import"./chunks/workerd-hspp8v12.js";
41
- import"./chunks/workerd-bkk2wfbz.js";
42
- import"./chunks/workerd-anm12x33.js";
43
- import"./chunks/workerd-kr61w04k.js";
44
- import"./chunks/workerd-gb66h69v.js";
45
- import"./chunks/workerd-1ahadpvw.js";
46
- import"./chunks/workerd-yet0vexm.js";
47
- import"./chunks/workerd-q4bn6dy8.js";
48
- import"./chunks/workerd-gqq6kfhc.js";
49
- import"./chunks/workerd-smaf4a18.js";
50
- import"./chunks/workerd-n9y13hgv.js";
51
- import"./chunks/workerd-g0rzwe5g.js";
4
+ } from "./chunks/location-tz3mehbr.js";
5
+ import"./chunks/location-2c5m7t9e.js";
6
+ import"./chunks/location-yfz2nrjq.js";
7
+ import"./chunks/location-erzfdgke.js";
8
+ import"./chunks/location-ctk1s78a.js";
9
+ import"./chunks/location-z6sxg6td.js";
10
+ import"./chunks/location-8137b89p.js";
11
+ import"./chunks/location-43r48nqn.js";
12
+ import"./chunks/location-vbzm2jgm.js";
13
+ import"./chunks/location-rf01ee6q.js";
14
+ import"./chunks/location-33prfkkd.js";
15
+ import"./chunks/location-zessacar.js";
16
+ import"./chunks/location-vb5yx5r0.js";
17
+ import"./chunks/location-97eb2r3v.js";
18
+ import"./chunks/location-yehasrps.js";
19
+ import"./chunks/location-71n7prbj.js";
20
+ import"./chunks/location-686p2xfa.js";
21
+ import"./chunks/location-wk806w00.js";
22
+ import"./chunks/location-7vd5668a.js";
23
+ import"./chunks/location-10hxeg6b.js";
24
+ import"./chunks/location-cv0ajwc9.js";
25
+ import"./chunks/location-ptey1p5v.js";
26
+ import"./chunks/location-p74g497q.js";
27
+ import"./chunks/location-h6rt5k9s.js";
28
+ import"./chunks/location-4dv9a668.js";
29
+ import"./chunks/location-h8ws5ssa.js";
30
+ import"./chunks/location-08x9tjee.js";
31
+ import"./chunks/location-rntbwr87.js";
32
+ import"./chunks/location-4d1eemzq.js";
33
+ import"./chunks/location-5zsr2h86.js";
34
+ import"./chunks/location-ssyxw8nc.js";
35
+ import"./chunks/location-bx47k33v.js";
36
+ import"./chunks/location-ewe1fzkk.js";
37
+ import"./chunks/location-ftaz8n62.js";
38
+ import"./chunks/location-qbh90c1d.js";
39
+ import"./chunks/location-0d864bga.js";
40
+ import"./chunks/location-jkvn5n4s.js";
41
+ import"./chunks/location-anm12x33.js";
42
+ import"./chunks/location-bkk2wfbz.js";
43
+ import"./chunks/location-ghk96rjy.js";
44
+ import"./chunks/location-4g2hx1xt.js";
45
+ import"./chunks/location-sstsrjtg.js";
46
+ import"./chunks/location-9snwnvf8.js";
47
+ import"./chunks/location-j4zqsxgy.js";
48
+ import"./chunks/location-4hhhes7w.js";
49
+ import"./chunks/location-b56hqv74.js";
50
+ import"./chunks/location-smaf4a18.js";
51
+ import"./chunks/location-q4bn6dy8.js";
52
52
  export {
53
53
  exports_fetch as ServerFetch,
54
- make3 as make
54
+ make2 as make
55
55
  };
@@ -1 +1 @@
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
+ export declare const AgentHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentHandler2
3
- } from "../chunks/workerd-cqhyyp3f.js";
4
- import"../chunks/workerd-gb66h69v.js";
5
- import"../chunks/workerd-1ahadpvw.js";
6
- import"../chunks/workerd-yet0vexm.js";
7
- import"../chunks/workerd-gqq6kfhc.js";
8
- import"../chunks/workerd-smaf4a18.js";
3
+ } from "../chunks/location-rntbwr87.js";
4
+ import"../chunks/location-9snwnvf8.js";
5
+ import"../chunks/location-j4zqsxgy.js";
6
+ import"../chunks/location-4hhhes7w.js";
7
+ import"../chunks/location-b56hqv74.js";
8
+ import"../chunks/location-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/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
+ export declare const CommandHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.command">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware>;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CommandHandler2
3
- } from "../chunks/workerd-67kmywtk.js";
4
- import"../chunks/workerd-gb66h69v.js";
5
- import"../chunks/workerd-1ahadpvw.js";
6
- import"../chunks/workerd-yet0vexm.js";
7
- import"../chunks/workerd-gqq6kfhc.js";
8
- import"../chunks/workerd-smaf4a18.js";
3
+ } from "../chunks/location-ptey1p5v.js";
4
+ import"../chunks/location-9snwnvf8.js";
5
+ import"../chunks/location-j4zqsxgy.js";
6
+ import"../chunks/location-4hhhes7w.js";
7
+ import"../chunks/location-b56hqv74.js";
8
+ import"../chunks/location-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/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
+ export declare const ConfigHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.config">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware>;