@opencode/server 0.0.0-dev-1366 → 0.0.0-dev-1368

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 (142) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{content-headers-mq10h3bj.js → workerd-0vqsbvsa.js} +4 -4
  4. package/dist/chunks/{content-headers-c6ktqe09.js → workerd-0wjm8gvs.js} +2 -2
  5. package/dist/chunks/{content-headers-eacgzt6w.js → workerd-10sj2tcf.js} +1 -1
  6. package/dist/chunks/{content-headers-maarxay5.js → workerd-1g4xykqx.js} +4 -4
  7. package/dist/chunks/{content-headers-8xffg4dw.js → workerd-1pbjpk0f.js} +4 -4
  8. package/dist/chunks/{content-headers-nh63c3gg.js → workerd-23n65c7j.js} +3 -3
  9. package/dist/chunks/{content-headers-29nx48hm.js → workerd-29nx48hm.js} +1 -1
  10. package/dist/chunks/{content-headers-7r996r31.js → workerd-2tmcamrc.js} +2 -2
  11. package/dist/chunks/{content-headers-e6e4kz0w.js → workerd-39nnfjx1.js} +4 -4
  12. package/dist/chunks/{content-headers-g9qy0kb1.js → workerd-3xkwxcke.js} +2 -2
  13. package/dist/chunks/{content-headers-50kbksvb.js → workerd-50kbksvb.js} +2 -2
  14. package/dist/chunks/{content-headers-3te71694.js → workerd-5pdfedjd.js} +4 -4
  15. package/dist/chunks/{content-headers-6pm6ek88.js → workerd-6pm6ek88.js} +1 -1
  16. package/dist/chunks/{content-headers-nfrn9zxf.js → workerd-784gqmc7.js} +2 -2
  17. package/dist/chunks/{content-headers-rg932pab.js → workerd-7dkb5ks8.js} +2 -2
  18. package/dist/chunks/{content-headers-6anyjjh1.js → workerd-8nezxn08.js} +1 -1
  19. package/dist/chunks/{content-headers-esvnag9e.js → workerd-8qsq6tbs.js} +2 -2
  20. package/dist/chunks/{content-headers-8sb6qqpn.js → workerd-8sb6qqpn.js} +1 -1
  21. package/dist/chunks/{content-headers-3w2mqh28.js → workerd-8xdajgpr.js} +2 -2
  22. package/dist/chunks/{content-headers-r6qsbz4y.js → workerd-9hynp6rm.js} +2 -2
  23. package/dist/chunks/{content-headers-21qqm769.js → workerd-9tw35sfc.js} +12 -12
  24. package/dist/chunks/{content-headers-f1tstpac.js → workerd-a6b7h8n6.js} +21 -25
  25. package/dist/chunks/{content-headers-wjh98yw2.js → workerd-am27j67f.js} +1 -1
  26. package/dist/chunks/{content-headers-br4x4prt.js → workerd-br4x4prt.js} +1 -1
  27. package/dist/chunks/{content-headers-ca564221.js → workerd-ca564221.js} +1 -1
  28. package/dist/chunks/{content-headers-djr0jy89.js → workerd-djr0jy89.js} +1 -1
  29. package/dist/chunks/{content-headers-8a8vhjqy.js → workerd-dsxhsz16.js} +6 -6
  30. package/dist/chunks/{content-headers-z80wqx10.js → workerd-e3jd9akj.js} +1 -1
  31. package/dist/chunks/{content-headers-ehyp3zqd.js → workerd-ehyp3zqd.js} +1 -1
  32. package/dist/chunks/{content-headers-z0v7xmc8.js → workerd-em7ed65n.js} +2 -2
  33. package/dist/chunks/{content-headers-qagtm26v.js → workerd-epfdwcja.js} +4 -4
  34. package/dist/chunks/{content-headers-f412ctvv.js → workerd-exwy1kbj.js} +2 -2
  35. package/dist/chunks/{content-headers-df03ef4a.js → workerd-f3gr6hfv.js} +2 -2
  36. package/dist/chunks/{content-headers-6n31atta.js → workerd-hfbw093d.js} +37 -37
  37. package/dist/chunks/{content-headers-j4at0y5c.js → workerd-j4at0y5c.js} +1 -1
  38. package/dist/chunks/{content-headers-javgytnb.js → workerd-javgytnb.js} +2 -2
  39. package/dist/chunks/{content-headers-ar950k47.js → workerd-k74zefsg.js} +1 -1
  40. package/dist/chunks/{content-headers-ka2mtp6f.js → workerd-ka2mtp6f.js} +2 -2
  41. package/dist/chunks/{content-headers-5ky8bme5.js → workerd-kmwr1xw9.js} +3 -3
  42. package/dist/chunks/{content-headers-fmkwyf76.js → workerd-mj1ewmp1.js} +9 -9
  43. package/dist/chunks/{content-headers-myqk22k5.js → workerd-myqk22k5.js} +2 -2
  44. package/dist/chunks/{content-headers-ykr4m3zx.js → workerd-n2zyxnzr.js} +1 -1
  45. package/dist/chunks/{content-headers-r682v2h3.js → workerd-prwd5gwt.js} +2 -2
  46. package/dist/chunks/{content-headers-htk4x1jk.js → workerd-qq3f8fnn.js} +2 -2
  47. package/dist/chunks/workerd-r8tdr8qd.js +43 -0
  48. package/dist/chunks/{content-headers-8y9zssdg.js → workerd-rgbnpstw.js} +2 -2
  49. package/dist/chunks/{content-headers-phgds112.js → workerd-rjhxbsc4.js} +2 -2
  50. package/dist/chunks/{content-headers-1nsytpdt.js → workerd-rm5kndzh.js} +4 -4
  51. package/dist/chunks/{content-headers-y8sa9sbe.js → workerd-s0zgx365.js} +2 -2
  52. package/dist/chunks/{content-headers-t32e1bbt.js → workerd-t32e1bbt.js} +1 -1
  53. package/dist/chunks/{content-headers-mzs0n5xz.js → workerd-v9t81kwn.js} +8 -8
  54. package/dist/chunks/{content-headers-jhs8rzvk.js → workerd-whvq72as.js} +3 -3
  55. package/dist/chunks/{content-headers-ddhjwr2w.js → workerd-wsvmph03.js} +2 -2
  56. package/dist/chunks/{content-headers-x2qy7jg1.js → workerd-x2qy7jg1.js} +1 -1
  57. package/dist/chunks/{content-headers-v60tcbt5.js → workerd-xw05m515.js} +3 -3
  58. package/dist/chunks/{content-headers-cj97w75w.js → workerd-yc92za0p.js} +2 -2
  59. package/dist/chunks/{content-headers-hs3dbf8w.js → workerd-z5c20bjd.js} +7 -7
  60. package/dist/content-headers.js +1 -1
  61. package/dist/cors.js +1 -1
  62. package/dist/event-feed.js +5 -5
  63. package/dist/fetch.d.ts +22 -11
  64. package/dist/fetch.js +72 -68
  65. package/dist/handlers/agent.js +6 -6
  66. package/dist/handlers/artifact.js +3 -3
  67. package/dist/handlers/automation.js +2 -2
  68. package/dist/handlers/blob.js +3 -3
  69. package/dist/handlers/command.js +6 -6
  70. package/dist/handlers/config.js +6 -6
  71. package/dist/handlers/credential.js +7 -7
  72. package/dist/handlers/debug.js +6 -6
  73. package/dist/handlers/event.js +7 -7
  74. package/dist/handlers/experimental/browser-tunnel.js +4 -4
  75. package/dist/handlers/flag.js +6 -6
  76. package/dist/handlers/form.js +6 -6
  77. package/dist/handlers/fs.js +8 -8
  78. package/dist/handlers/generate.js +6 -6
  79. package/dist/handlers/integration.js +6 -6
  80. package/dist/handlers/job.js +2 -2
  81. package/dist/handlers/location.js +6 -6
  82. package/dist/handlers/machine.js +1 -1
  83. package/dist/handlers/mcp.js +8 -8
  84. package/dist/handlers/media.js +2 -2
  85. package/dist/handlers/message.js +7 -7
  86. package/dist/handlers/migration.js +6 -6
  87. package/dist/handlers/model.js +6 -6
  88. package/dist/handlers/permission.js +6 -6
  89. package/dist/handlers/persistent-pty.js +20 -20
  90. package/dist/handlers/plugin.js +6 -6
  91. package/dist/handlers/project.js +6 -6
  92. package/dist/handlers/provider.js +6 -6
  93. package/dist/handlers/pty-socket.js +1 -1
  94. package/dist/handlers/pty.js +8 -8
  95. package/dist/handlers/push.js +1 -1
  96. package/dist/handlers/reference.js +6 -6
  97. package/dist/handlers/rpc.js +6 -6
  98. package/dist/handlers/server.js +9 -9
  99. package/dist/handlers/session-error.js +1 -1
  100. package/dist/handlers/session.js +7 -7
  101. package/dist/handlers/shell.js +6 -6
  102. package/dist/handlers/skill.js +6 -6
  103. package/dist/handlers/space.js +2 -2
  104. package/dist/handlers/usage.js +6 -6
  105. package/dist/handlers/vcs.js +6 -6
  106. package/dist/handlers/voice.js +6 -6
  107. package/dist/handlers/websearch.js +6 -6
  108. package/dist/handlers/worktree.js +6 -6
  109. package/dist/handlers.js +58 -58
  110. package/dist/location.js +2 -2
  111. package/dist/media-uri.js +1 -1
  112. package/dist/middleware/authorization.js +2 -2
  113. package/dist/middleware/defect-response.js +1 -1
  114. package/dist/middleware/form-location.js +3 -3
  115. package/dist/middleware/schema-error.js +1 -1
  116. package/dist/middleware/session-location.js +3 -3
  117. package/dist/options.d.ts +69 -2
  118. package/dist/options.js +14 -6
  119. package/dist/pairing.js +5 -5
  120. package/dist/process.d.ts +5 -5
  121. package/dist/process.js +68 -68
  122. package/dist/range.js +1 -1
  123. package/dist/request-site.js +2 -2
  124. package/dist/request-tracing.js +1 -1
  125. package/dist/routes.d.ts +8 -2
  126. package/dist/routes.js +62 -62
  127. package/dist/server-info.js +3 -3
  128. package/dist/service-status.js +3 -3
  129. package/dist/space-store.js +5 -5
  130. package/dist/workerd.js +66 -66
  131. package/package.json +8 -8
  132. package/dist/chunks/content-headers-1kqc9805.js +0 -37
  133. /package/dist/chunks/{content-headers-017ycvbx.js → workerd-017ycvbx.js} +0 -0
  134. /package/dist/chunks/{content-headers-9rqn6x4v.js → workerd-9rqn6x4v.js} +0 -0
  135. /package/dist/chunks/{content-headers-bd8755ek.js → workerd-bd8755ek.js} +0 -0
  136. /package/dist/chunks/{content-headers-n26yr6pw.js → workerd-n26yr6pw.js} +0 -0
  137. /package/dist/chunks/{content-headers-q187pxxd.js → workerd-q187pxxd.js} +0 -0
  138. /package/dist/chunks/{content-headers-q4bn6dy8.js → workerd-q4bn6dy8.js} +0 -0
  139. /package/dist/chunks/{content-headers-qpnw2qd1.js → workerd-qpnw2qd1.js} +0 -0
  140. /package/dist/chunks/{content-headers-rqgv9x42.js → workerd-rqgv9x42.js} +0 -0
  141. /package/dist/chunks/{content-headers-xthc02cw.js → workerd-xthc02cw.js} +0 -0
  142. /package/dist/chunks/{content-headers-yc7nft6q.js → workerd-yc7nft6q.js} +0 -0
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/content-headers-jhs8rzvk.js";
4
- import"./chunks/content-headers-ca564221.js";
5
- import"./chunks/content-headers-ehyp3zqd.js";
6
- import"./chunks/content-headers-br4x4prt.js";
7
- import"./chunks/content-headers-rqgv9x42.js";
3
+ } from "./chunks/workerd-whvq72as.js";
4
+ import"./chunks/workerd-ehyp3zqd.js";
5
+ import"./chunks/workerd-ca564221.js";
6
+ import"./chunks/workerd-br4x4prt.js";
7
+ import"./chunks/workerd-rqgv9x42.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/content-headers-j4at0y5c.js";
10
+ } from "./chunks/workerd-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./content-headers-br4x4prt.js";
5
+ } from "./workerd-br4x4prt.js";
6
6
  import {
7
7
  Api2
8
- } from "./content-headers-jhs8rzvk.js";
8
+ } from "./workerd-whvq72as.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./content-headers-q4bn6dy8.js";
12
+ } from "./workerd-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./content-headers-q187pxxd.js";
16
+ } from "./workerd-q187pxxd.js";
17
17
 
18
18
  // src/handlers/pty.ts
19
19
  import { Pty } from "@opencode/core/pty";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.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 "./content-headers-jhs8rzvk.js";
3
+ } from "./workerd-whvq72as.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
  import {
8
8
  download2
9
- } from "./content-headers-t32e1bbt.js";
9
+ } from "./workerd-t32e1bbt.js";
10
10
  import {
11
11
  parse2
12
- } from "./content-headers-8sb6qqpn.js";
12
+ } from "./workerd-8sb6qqpn.js";
13
13
 
14
14
  // src/handlers/fs.ts
15
15
  import { Environment } from "@opencode/core/environment/index";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./workerd-whvq72as.js";
4
4
  import {
5
- Service2,
5
+ Service4,
6
6
  frame2
7
- } from "./content-headers-hs3dbf8w.js";
7
+ } from "./workerd-z5c20bjd.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
12
12
  import { HttpServerResponse } from "effect/http";
13
13
  import { HttpApiBuilder } from "effect/http-api";
14
14
  var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
15
- const feed = yield* Service2;
15
+ const feed = yield* Service4;
16
16
  return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
17
17
  const output = Stream.unwrap(feed.subscribe(ctx.query.types).pipe(Effect.map((subscription) => Stream.make(frame2({
18
18
  id: Event.ID.create(),
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./content-headers-rqgv9x42.js";
4
+ } from "./workerd-rqgv9x42.js";
5
5
  import {
6
6
  Api2
7
- } from "./content-headers-jhs8rzvk.js";
7
+ } from "./workerd-whvq72as.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./content-headers-xthc02cw.js";
10
+ } from "./workerd-xthc02cw.js";
11
11
 
12
12
  // src/handlers/message.ts
13
13
  import { SessionMessage } from "@opencode/core/session/message";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./content-headers-j4at0y5c.js";
7
+ } from "./workerd-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./content-headers-9rqn6x4v.js";
3
+ } from "./workerd-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 "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  download2
3
- } from "./content-headers-t32e1bbt.js";
3
+ } from "./workerd-t32e1bbt.js";
4
4
  import {
5
5
  parse2
6
- } from "./content-headers-8sb6qqpn.js";
6
+ } from "./workerd-8sb6qqpn.js";
7
7
 
8
8
  // src/handlers/blob.ts
9
9
  import { BlobStore } from "@opencode/core/blob-store";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./content-headers-9rqn6x4v.js";
3
+ } from "./workerd-9rqn6x4v.js";
4
4
 
5
5
  // src/server-info.ts
6
6
  var exports_server_info = {};
@@ -8,14 +8,14 @@ __export(exports_server_info, {
8
8
  ServerInfo: () => exports_server_info,
9
9
  Service: () => Service3,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer3
11
+ layer: () => layer2
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
16
  class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer3(urls, tmp, app = {}) {
18
+ function layer2(urls, tmp, app = {}) {
19
19
  return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
20
20
  }
21
21
  function connectionURLs2(value, requestedHostname) {
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
38
38
  ];
39
39
  }
40
40
 
41
- export { Service3, layer3, connectionURLs2, exports_server_info };
41
+ export { Service3, layer2, connectionURLs2, exports_server_info };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./content-headers-rqgv9x42.js";
3
+ } from "./workerd-rqgv9x42.js";
4
4
 
5
5
  // src/handlers/automation.ts
6
6
  import { Automation } from "@opencode/core/automation";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./workerd-whvq72as.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./content-headers-9rqn6x4v.js";
3
+ } from "./workerd-9rqn6x4v.js";
4
4
 
5
5
  // src/range.ts
6
6
  var exports_range = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./workerd-whvq72as.js";
4
4
  import {
5
5
  requireConnectable2
6
- } from "./content-headers-7r996r31.js";
6
+ } from "./workerd-2tmcamrc.js";
7
7
 
8
8
  // src/handlers/credential.ts
9
9
  import { Credential } from "@opencode/core/credential";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/flag.ts
9
9
  import { Flag } from "@opencode/core/flag";
@@ -1,41 +1,41 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./workerd-whvq72as.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./content-headers-q4bn6dy8.js";
7
+ } from "./workerd-q4bn6dy8.js";
8
8
  import {
9
9
  makeArtifact2
10
- } from "./content-headers-javgytnb.js";
10
+ } from "./workerd-javgytnb.js";
11
11
  import {
12
12
  makeBlobGet2
13
- } from "./content-headers-50kbksvb.js";
13
+ } from "./workerd-50kbksvb.js";
14
14
  import {
15
15
  makeBrowserTunnel2
16
- } from "./content-headers-ka2mtp6f.js";
16
+ } from "./workerd-ka2mtp6f.js";
17
17
  import {
18
18
  makeAutomation2
19
- } from "./content-headers-6pm6ek88.js";
19
+ } from "./workerd-6pm6ek88.js";
20
20
  import {
21
21
  makeJob2
22
- } from "./content-headers-x2qy7jg1.js";
22
+ } from "./workerd-x2qy7jg1.js";
23
23
  import {
24
24
  makeMachineLink2,
25
25
  makeMachine2
26
- } from "./content-headers-017ycvbx.js";
26
+ } from "./workerd-017ycvbx.js";
27
27
  import {
28
28
  makeMediaGet2
29
- } from "./content-headers-djr0jy89.js";
29
+ } from "./workerd-djr0jy89.js";
30
30
  import {
31
31
  makePush2
32
- } from "./content-headers-qpnw2qd1.js";
32
+ } from "./workerd-qpnw2qd1.js";
33
33
  import {
34
34
  makeSpace2
35
- } from "./content-headers-v60tcbt5.js";
35
+ } from "./workerd-xw05m515.js";
36
36
  import {
37
37
  runPtySocket2
38
- } from "./content-headers-q187pxxd.js";
38
+ } from "./workerd-q187pxxd.js";
39
39
 
40
40
  // src/handlers/persistent-pty.ts
41
41
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -1,42 +1,42 @@
1
1
  import {
2
2
  layer4
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./content-headers-ca564221.js";
6
+ } from "./workerd-ca564221.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./content-headers-ehyp3zqd.js";
9
+ } from "./workerd-ehyp3zqd.js";
10
10
  import {
11
11
  Api2
12
- } from "./content-headers-jhs8rzvk.js";
12
+ } from "./workerd-whvq72as.js";
13
13
  import {
14
14
  Config2
15
- } from "./content-headers-j4at0y5c.js";
15
+ } from "./workerd-j4at0y5c.js";
16
16
  import {
17
- node3
18
- } from "./content-headers-fmkwyf76.js";
17
+ node2
18
+ } from "./workerd-mj1ewmp1.js";
19
19
  import {
20
20
  CorsConfig2
21
- } from "./content-headers-q4bn6dy8.js";
21
+ } from "./workerd-q4bn6dy8.js";
22
22
  import {
23
- layer3
24
- } from "./content-headers-3te71694.js";
23
+ layer2
24
+ } from "./workerd-5pdfedjd.js";
25
25
  import {
26
- node2
27
- } from "./content-headers-mzs0n5xz.js";
26
+ node3
27
+ } from "./workerd-v9t81kwn.js";
28
28
  import {
29
29
  handlers2
30
- } from "./content-headers-6n31atta.js";
30
+ } from "./workerd-hfbw093d.js";
31
31
  import {
32
32
  authorizationLayer2
33
- } from "./content-headers-29nx48hm.js";
33
+ } from "./workerd-29nx48hm.js";
34
34
  import {
35
35
  schemaErrorLayer2
36
- } from "./content-headers-bd8755ek.js";
36
+ } from "./workerd-bd8755ek.js";
37
37
  import {
38
38
  defectResponseLayer2
39
- } from "./content-headers-n26yr6pw.js";
39
+ } from "./workerd-n26yr6pw.js";
40
40
 
41
41
  // src/routes.ts
42
42
  import { Database } from "@opencode/core/database/database";
@@ -120,8 +120,8 @@ var applicationServiceNodes = [
120
120
  BrowserTunnelGateway.node,
121
121
  Credential.node,
122
122
  WellKnown.node,
123
- node2,
124
123
  node3,
124
+ node2,
125
125
  LocationServiceMap.node,
126
126
  LocationActivity.node,
127
127
  SessionRestart.node,
@@ -142,9 +142,9 @@ function createRoutes2(options = {}, serviceURLs = () => [], overrides = []) {
142
142
  return makeRoutes(options.password ? Option.some(options.password) : Option.none(), options, serviceURLs, overrides);
143
143
  }
144
144
  function createEmbeddedRoutes2(options = {}, overrides = [], instances) {
145
- return makeRoutes(Option.none(), options, () => [], overrides, instances);
145
+ return makeRoutes(Option.none(), options, () => [], instances ? [Instance.node.replace(instances), ...overrides] : overrides);
146
146
  }
147
- function makeRoutes(password, options, serviceURLs, overrides, instances) {
147
+ function makeRoutes(password, options, serviceURLs, overrides) {
148
148
  const auth = Config2.configLayer({ password });
149
149
  const credential = Option.map(password, (value) => `Basic ${Base64.encode(`opencode:${value}`)}`);
150
150
  let internal;
@@ -191,11 +191,7 @@ function makeRoutes(password, options, serviceURLs, overrides, instances) {
191
191
  }
192
192
  }))
193
193
  ];
194
- const build = (overrides) => AppNodeBuilder.build(applicationServices, [
195
- ...standard,
196
- ...instances ? [Instance.node.replace(instances)] : [],
197
- ...overrides
198
- ]);
194
+ const build = (overrides) => AppNodeBuilder.build(applicationServices, [...standard, ...overrides]);
199
195
  const serviceLayer = options.simulation ? Layer.unwrap(Effect.gen(function* () {
200
196
  const { simulationReplacements } = yield* Effect.promise(() => import("@opencode/simulation/backend"));
201
197
  const simulation = yield* simulationReplacements({ version: App.make(options.app).version });
@@ -203,7 +199,7 @@ function makeRoutes(password, options, serviceURLs, overrides, instances) {
203
199
  })) : build(overrides);
204
200
  return serviceLayer.pipe(Layer.flatMap((context) => {
205
201
  const services = Layer.succeedContext(context);
206
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer3(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
202
+ const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer2(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
207
203
  const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.merge(defectResponseLayer2), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer.pipe(Layer.provide(Layer.succeed(HttpRouter.RouterConfig)({ maxParamLength: 512 })))), Layer.tap((context) => Effect.sync(() => {
208
204
  internal = Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpEffect.toWebHandlerWith(context));
209
205
  })));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./workerd-whvq72as.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./content-headers-rqgv9x42.js";
3
+ } from "./workerd-rqgv9x42.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./content-headers-br4x4prt.js";
5
+ } from "./workerd-br4x4prt.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CONTENT_SECURITY_POLICY2,
3
3
  disposition2
4
- } from "./content-headers-t32e1bbt.js";
4
+ } from "./workerd-t32e1bbt.js";
5
5
 
6
6
  // src/handlers/media.ts
7
7
  import { Database } from "@opencode/core/database/database";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./workerd-whvq72as.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./content-headers-j4at0y5c.js";
9
+ } from "./workerd-j4at0y5c.js";
10
10
  import {
11
11
  Service3
12
- } from "./content-headers-3te71694.js";
12
+ } from "./workerd-5pdfedjd.js";
13
13
  import {
14
- Service4
15
- } from "./content-headers-mzs0n5xz.js";
14
+ Service5
15
+ } from "./workerd-v9t81kwn.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { hostname } from "node:os";
@@ -22,7 +22,7 @@ import { HttpApiBuilder } from "effect/http-api";
22
22
  import { PersistentPty } from "@opencode/core/persistent-pty";
23
23
  import { UnauthorizedError } from "@opencode/protocol/errors";
24
24
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
25
- const pairing = yield* Service4;
25
+ const pairing = yield* Service5;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
28
  const info = yield* Service3;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./workerd-whvq72as.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./content-headers-br4x4prt.js";
4
+ } from "./workerd-br4x4prt.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -4,16 +4,16 @@ import {
4
4
  missingMessage2,
5
5
  failedMessageDecode2,
6
6
  failedSnapshot2
7
- } from "./content-headers-rqgv9x42.js";
7
+ } from "./workerd-rqgv9x42.js";
8
8
  import {
9
9
  locationErrors2
10
- } from "./content-headers-br4x4prt.js";
10
+ } from "./workerd-br4x4prt.js";
11
11
  import {
12
12
  Api2
13
- } from "./content-headers-jhs8rzvk.js";
13
+ } from "./workerd-whvq72as.js";
14
14
  import {
15
15
  wantsMediaRefs2
16
- } from "./content-headers-xthc02cw.js";
16
+ } from "./workerd-xthc02cw.js";
17
17
 
18
18
  // src/handlers/session.ts
19
19
  import { Instance } from "@opencode/core/instance/service";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./workerd-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./workerd-whvq72as.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";