@opencode/server 0.0.0-dev-1136 → 0.0.0-dev-1147

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 (121) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{cors-059rbh9c.js → service-status-059rbh9c.js} +1 -1
  4. package/dist/chunks/{cors-jqvq1ywe.js → service-status-09kw3a77.js} +2 -2
  5. package/dist/chunks/{cors-5553qfcy.js → service-status-1gwc8nvb.js} +3 -3
  6. package/dist/chunks/{cors-sqxx1p54.js → service-status-2eaky32g.js} +2 -2
  7. package/dist/chunks/{cors-zgvwy66h.js → service-status-35gk56sd.js} +3 -3
  8. package/dist/chunks/{cors-4z8yg1dv.js → service-status-4jrhe93k.js} +4 -4
  9. package/dist/chunks/{cors-xpg37vzc.js → service-status-4q6e7fh8.js} +2 -2
  10. package/dist/chunks/{cors-gqq6kfhc.js → service-status-50bbk3b2.js} +3 -3
  11. package/dist/chunks/{cors-rcmctvp9.js → service-status-5cpb32hf.js} +1 -1
  12. package/dist/chunks/{cors-r2veymj8.js → service-status-6jh85srs.js} +4 -4
  13. package/dist/chunks/{cors-vvp99hc9.js → service-status-6z9pvq7p.js} +1 -1
  14. package/dist/chunks/{cors-78rcgzsr.js → service-status-78rcgzsr.js} +1 -1
  15. package/dist/chunks/{cors-7b9xm1qg.js → service-status-7b9xm1qg.js} +1 -1
  16. package/dist/chunks/{cors-em1ee8ew.js → service-status-7jzhrxbx.js} +2 -2
  17. package/dist/chunks/{cors-p3f060n2.js → service-status-8mj7kvhm.js} +2 -2
  18. package/dist/chunks/{cors-amndpc82.js → service-status-91858wp1.js} +2 -2
  19. package/dist/chunks/{cors-zmgfywqd.js → service-status-a8jcac9a.js} +1 -1
  20. package/dist/chunks/{cors-vtfzy3at.js → service-status-az0609r6.js} +2 -2
  21. package/dist/chunks/{cors-yet0vexm.js → service-status-b3bmdkga.js} +1 -1
  22. package/dist/chunks/{cors-88jc3dbp.js → service-status-b7s379ba.js} +16 -14
  23. package/dist/chunks/{cors-50xc6x42.js → service-status-btahnm2b.js} +3 -3
  24. package/dist/chunks/{cors-zms3a2aj.js → service-status-c0c1fvvq.js} +8 -18
  25. package/dist/chunks/{cors-0e4fm4yw.js → service-status-cezwbsk5.js} +1 -1
  26. package/dist/chunks/{cors-2835150m.js → service-status-d0edqfxx.js} +2 -2
  27. package/dist/chunks/{cors-vmvp93ax.js → service-status-d1p8kepy.js} +5 -5
  28. package/dist/chunks/{cors-djr0jy89.js → service-status-djr0jy89.js} +1 -1
  29. package/dist/chunks/{cors-e6e4kz0w.js → service-status-e6e4kz0w.js} +1 -1
  30. package/dist/chunks/{cors-zds85vps.js → service-status-enp1bp7r.js} +1 -1
  31. package/dist/chunks/{cors-7x1re4zg.js → service-status-f559fakr.js} +2 -2
  32. package/dist/chunks/{cors-gk0yxcp6.js → service-status-htyf2qs7.js} +1 -1
  33. package/dist/chunks/{cors-j4at0y5c.js → service-status-j4at0y5c.js} +1 -1
  34. package/dist/chunks/{cors-r5696se6.js → service-status-j87xz9bt.js} +3 -3
  35. package/dist/chunks/{cors-7cd61xtm.js → service-status-kkdkqt8j.js} +2 -2
  36. package/dist/chunks/{cors-myqk22k5.js → service-status-myqk22k5.js} +2 -2
  37. package/dist/chunks/{cors-mzs0n5xz.js → service-status-mzs0n5xz.js} +1 -1
  38. package/dist/chunks/{cors-xbqm7mpj.js → service-status-ny1j968n.js} +2 -2
  39. package/dist/chunks/{cors-5b2rbwyb.js → service-status-p6k38q1z.js} +35 -35
  40. package/dist/chunks/{cors-w5yp0ga8.js → service-status-p86kew8c.js} +2 -2
  41. package/dist/chunks/{cors-jc2vwkyw.js → service-status-qcg3sqtb.js} +2 -2
  42. package/dist/chunks/{cors-rxyx8sa0.js → service-status-qd0r787n.js} +2 -2
  43. package/dist/chunks/{cors-qd05162x.js → service-status-qfyg9gb7.js} +4 -4
  44. package/dist/chunks/{cors-370cpmna.js → service-status-rha2aq18.js} +2 -2
  45. package/dist/chunks/{cors-agenqygg.js → service-status-rs3v36hp.js} +2 -2
  46. package/dist/chunks/{cors-dfxfd950.js → service-status-ssxxka7j.js} +4 -4
  47. package/dist/chunks/{cors-t32e1bbt.js → service-status-t32e1bbt.js} +1 -1
  48. package/dist/chunks/{cors-skcryrty.js → service-status-te8jwba1.js} +2 -2
  49. package/dist/chunks/{cors-3a2y3rg9.js → service-status-wej4c8ac.js} +4 -4
  50. package/dist/chunks/{cors-1vxxxmgg.js → service-status-yk755swr.js} +2 -2
  51. package/dist/chunks/{cors-wqv43pj9.js → service-status-yqhefp4s.js} +2 -2
  52. package/dist/chunks/{cors-z3e7v67k.js → service-status-z3e7v67k.js} +1 -1
  53. package/dist/chunks/{cors-74kxthdf.js → service-status-zcvan105.js} +1 -1
  54. package/dist/content-headers.js +1 -1
  55. package/dist/cors.js +1 -1
  56. package/dist/event-feed.js +3 -3
  57. package/dist/fetch.js +56 -56
  58. package/dist/handlers/agent.js +6 -6
  59. package/dist/handlers/artifact.js +3 -3
  60. package/dist/handlers/command.js +6 -6
  61. package/dist/handlers/config.js +6 -6
  62. package/dist/handlers/credential.js +7 -7
  63. package/dist/handlers/debug.js +6 -6
  64. package/dist/handlers/event.js +7 -7
  65. package/dist/handlers/form.js +6 -6
  66. package/dist/handlers/fs.js +7 -7
  67. package/dist/handlers/generate.js +6 -6
  68. package/dist/handlers/integration.js +6 -6
  69. package/dist/handlers/job.js +2 -2
  70. package/dist/handlers/location.js +6 -6
  71. package/dist/handlers/mcp.js +8 -8
  72. package/dist/handlers/media.js +2 -2
  73. package/dist/handlers/message.js +7 -7
  74. package/dist/handlers/migration.js +6 -6
  75. package/dist/handlers/model.js +6 -6
  76. package/dist/handlers/permission.js +6 -6
  77. package/dist/handlers/persistent-pty.d.ts +1 -1
  78. package/dist/handlers/persistent-pty.js +13 -13
  79. package/dist/handlers/plugin.js +6 -6
  80. package/dist/handlers/project.js +6 -6
  81. package/dist/handlers/provider.js +6 -6
  82. package/dist/handlers/pty-socket.js +1 -1
  83. package/dist/handlers/pty.js +8 -8
  84. package/dist/handlers/reference.js +6 -6
  85. package/dist/handlers/rpc.js +6 -6
  86. package/dist/handlers/schedule.js +2 -2
  87. package/dist/handlers/server.js +9 -9
  88. package/dist/handlers/session-error.js +1 -1
  89. package/dist/handlers/session.js +7 -7
  90. package/dist/handlers/shell.js +6 -6
  91. package/dist/handlers/skill.js +6 -6
  92. package/dist/handlers/usage.js +6 -6
  93. package/dist/handlers/vcs.js +6 -6
  94. package/dist/handlers/voice.js +6 -6
  95. package/dist/handlers/websearch.js +6 -6
  96. package/dist/handlers/worktree.js +6 -6
  97. package/dist/handlers.d.ts +1 -1
  98. package/dist/handlers.js +50 -50
  99. package/dist/location.js +4 -4
  100. package/dist/media-uri.js +1 -1
  101. package/dist/middleware/authorization.js +2 -2
  102. package/dist/middleware/form-location.js +3 -3
  103. package/dist/middleware/schema-error.js +1 -1
  104. package/dist/middleware/session-location.js +3 -3
  105. package/dist/pairing.js +1 -1
  106. package/dist/process.js +57 -57
  107. package/dist/request-site.js +2 -2
  108. package/dist/request-tracing.js +1 -1
  109. package/dist/routes.d.ts +3 -2
  110. package/dist/routes.js +53 -53
  111. package/dist/server-info.js +1 -1
  112. package/dist/service-status.js +1 -1
  113. package/dist/workerd.js +57 -57
  114. package/package.json +9 -9
  115. /package/dist/chunks/{cors-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
  116. /package/dist/chunks/{cors-bd8755ek.js → service-status-bd8755ek.js} +0 -0
  117. /package/dist/chunks/{cors-q187pxxd.js → service-status-q187pxxd.js} +0 -0
  118. /package/dist/chunks/{cors-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
  119. /package/dist/chunks/{cors-smaf4a18.js → service-status-smaf4a18.js} +0 -0
  120. /package/dist/chunks/{cors-xthc02cw.js → service-status-xthc02cw.js} +0 -0
  121. /package/dist/chunks/{cors-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/cors-r5696se6.js";
4
- import"./chunks/cors-gk0yxcp6.js";
5
- import"./chunks/cors-yet0vexm.js";
6
- import"./chunks/cors-gqq6kfhc.js";
7
- import"./chunks/cors-smaf4a18.js";
3
+ } from "./chunks/service-status-j87xz9bt.js";
4
+ import"./chunks/service-status-htyf2qs7.js";
5
+ import"./chunks/service-status-b3bmdkga.js";
6
+ import"./chunks/service-status-50bbk3b2.js";
7
+ import"./chunks/service-status-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/cors-j4at0y5c.js";
10
+ } from "./chunks/service-status-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./cors-smaf4a18.js";
3
+ } from "./service-status-smaf4a18.js";
4
4
 
5
5
  // src/handlers/schedule.ts
6
6
  import { Permission } from "@opencode/core/permission";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./service-status-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/usage.ts
9
9
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./cors-smaf4a18.js";
4
+ } from "./service-status-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-r5696se6.js";
7
+ } from "./service-status-j87xz9bt.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./cors-xthc02cw.js";
10
+ } from "./service-status-xthc02cw.js";
11
11
 
12
12
  // src/handlers/message.ts
13
13
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./service-status-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./service-status-j87xz9bt.js";
7
7
  import {
8
8
  download2
9
- } from "./cors-t32e1bbt.js";
9
+ } from "./service-status-t32e1bbt.js";
10
10
 
11
11
  // src/handlers/fs.ts
12
12
  import { FileSystem } from "@opencode/core/filesystem";
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./cors-gqq6kfhc.js";
5
+ } from "./service-status-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./cors-r5696se6.js";
8
+ } from "./service-status-j87xz9bt.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./cors-q4bn6dy8.js";
12
+ } from "./service-status-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./cors-q187pxxd.js";
16
+ } from "./service-status-q187pxxd.js";
17
17
 
18
18
  // src/handlers/mcp.ts
19
19
  import { Location } from "@opencode/core/location";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./service-status-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./cors-smaf4a18.js";
3
+ } from "./service-status-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -59,7 +59,7 @@ function decode(input) {
59
59
  return input;
60
60
  }
61
61
  }
62
- var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
62
+ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
63
63
  const locations = yield* LocationServiceMap.Service;
64
64
  return LocationMiddleware2.of((effect) => Effect.gen(function* () {
65
65
  const request = yield* HttpServerRequest.HttpServerRequest;
@@ -67,4 +67,4 @@ var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer3 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer4 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./service-status-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./cors-gqq6kfhc.js";
5
+ } from "./service-status-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./cors-r5696se6.js";
8
+ } from "./service-status-j87xz9bt.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./cors-q4bn6dy8.js";
12
+ } from "./service-status-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./cors-q187pxxd.js";
16
+ } from "./service-status-q187pxxd.js";
17
17
 
18
18
  // src/handlers/pty.ts
19
19
  import { Pty } from "@opencode/core/pty";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./service-status-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./cors-smaf4a18.js";
3
+ } from "./service-status-smaf4a18.js";
4
4
 
5
5
  // src/handlers/job.ts
6
6
  import { Job } from "@opencode/core/job";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./cors-j4at0y5c.js";
7
+ } from "./service-status-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./service-status-j87xz9bt.js";
4
4
  import {
5
5
  Service3,
6
6
  frame2
7
- } from "./cors-qd05162x.js";
7
+ } from "./service-status-qfyg9gb7.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./service-status-j87xz9bt.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 "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./service-status-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./service-status-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./cors-gqq6kfhc.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-r5696se6.js";
7
+ } from "./service-status-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/provider.ts
10
10
  import { Provider } from "@opencode/core/provider";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./cors-gqq6kfhc.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,36 +1,36 @@
1
1
  import {
2
- layer3
3
- } from "./cors-gqq6kfhc.js";
2
+ layer4
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./cors-gk0yxcp6.js";
6
+ } from "./service-status-htyf2qs7.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./cors-yet0vexm.js";
9
+ } from "./service-status-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./cors-r5696se6.js";
12
+ } from "./service-status-j87xz9bt.js";
13
13
  import {
14
14
  Config2
15
- } from "./cors-j4at0y5c.js";
15
+ } from "./service-status-j4at0y5c.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./cors-q4bn6dy8.js";
18
+ } from "./service-status-q4bn6dy8.js";
19
19
  import {
20
20
  layer2
21
- } from "./cors-z3e7v67k.js";
21
+ } from "./service-status-z3e7v67k.js";
22
22
  import {
23
23
  node2
24
- } from "./cors-mzs0n5xz.js";
24
+ } from "./service-status-mzs0n5xz.js";
25
25
  import {
26
26
  handlers2
27
- } from "./cors-5b2rbwyb.js";
27
+ } from "./service-status-p6k38q1z.js";
28
28
  import {
29
29
  authorizationLayer2
30
- } from "./cors-7b9xm1qg.js";
30
+ } from "./service-status-7b9xm1qg.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./cors-bd8755ek.js";
33
+ } from "./service-status-bd8755ek.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -54,6 +54,7 @@ import { Instance } from "@opencode/core/instance/service";
54
54
  import { SessionTransfer } from "@opencode/core/session/transfer";
55
55
  import { InstructionEntry } from "@opencode/core/session/instruction-entry";
56
56
  import { ShellSelect } from "@opencode/core/shell/select";
57
+ import { Shell } from "@opencode/core/shell";
57
58
  import { Job } from "@opencode/core/job";
58
59
  import { KV } from "@opencode/core/kv";
59
60
  import { Mcp } from "@opencode/core/mcp/index";
@@ -81,6 +82,8 @@ var applicationServiceNodes = [
81
82
  Database.node,
82
83
  KV.node,
83
84
  Bus.node,
85
+ PersistentPty.node,
86
+ Shell.daemonNode,
84
87
  EventLogger.node,
85
88
  httpClient,
86
89
  Job.node,
@@ -95,7 +98,6 @@ var applicationServiceNodes = [
95
98
  PluginUpdate.node,
96
99
  PermissionSaved.node,
97
100
  PtyTicket.node,
98
- PersistentPty.node,
99
101
  Credential.node,
100
102
  WellKnown.node,
101
103
  node2,
@@ -156,7 +158,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
156
158
  return serviceLayer.pipe(Layer.flatMap((context) => {
157
159
  const services = Layer.succeedContext(context);
158
160
  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));
159
- 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(layer3), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
161
+ const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
160
162
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
161
163
  }));
162
164
  }
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./cors-smaf4a18.js";
3
+ } from "./service-status-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./cors-gqq6kfhc.js";
8
+ } from "./service-status-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./cors-r5696se6.js";
11
+ } from "./service-status-j87xz9bt.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./service-status-j87xz9bt.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./cors-q4bn6dy8.js";
7
+ } from "./service-status-q4bn6dy8.js";
8
8
  import {
9
9
  makeArtifact2
10
- } from "./cors-w5yp0ga8.js";
10
+ } from "./service-status-p86kew8c.js";
11
11
  import {
12
12
  makeJob2
13
- } from "./cors-78rcgzsr.js";
13
+ } from "./service-status-78rcgzsr.js";
14
14
  import {
15
15
  makeMediaGet2
16
- } from "./cors-djr0jy89.js";
16
+ } from "./service-status-djr0jy89.js";
17
17
  import {
18
18
  runPtySocket2
19
- } from "./cors-q187pxxd.js";
19
+ } from "./service-status-q187pxxd.js";
20
20
  import {
21
21
  makeSchedule2
22
- } from "./cors-059rbh9c.js";
22
+ } from "./service-status-059rbh9c.js";
23
23
 
24
24
  // src/handlers/persistent-pty.ts
25
25
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -27,7 +27,6 @@ import { PtyTicket } from "@opencode/core/pty/ticket";
27
27
  import {
28
28
  ForbiddenError,
29
29
  InvalidRequestError,
30
- PtyFeatureUnsupportedError,
31
30
  PtyNotFoundError,
32
31
  ServiceUnavailableError
33
32
  } from "@opencode/protocol/errors";
@@ -79,16 +78,7 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
79
78
  yield* pty.resize(ctx.params.ptyID, ctx.payload.size.cols, ctx.payload.size.rows, ctx.payload.attachmentID).pipe(mapTerminalError);
80
79
  if (ctx.payload.title === undefined)
81
80
  return { data: yield* pty.get(ctx.params.ptyID).pipe(mapTerminalError) };
82
- return {
83
- data: yield* pty.rename(ctx.params.ptyID, ctx.payload.title).pipe(Effect.catchTags({
84
- "PersistentPty.NotFoundError": notFound,
85
- "PersistentPty.UnsupportedError": (error) => new PtyFeatureUnsupportedError({
86
- feature: error.feature,
87
- message: "Terminal renaming will be available after OpenCode's terminal service restarts"
88
- }),
89
- "PersistentPty.UnavailableError": unavailable
90
- }))
91
- };
81
+ return { data: yield* pty.rename(ctx.params.ptyID, ctx.payload.title).pipe(mapTerminalError) };
92
82
  })).handle("persistentPty.snapshot", Effect.fn(function* (ctx) {
93
83
  return { data: yield* pty.snapshot(ctx.params.ptyID).pipe(mapTerminalError) };
94
84
  })).handle("persistentPty.remove", Effect.fn(function* (ctx) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./service-status-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./cors-gqq6kfhc.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-r5696se6.js";
7
+ } from "./service-status-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/voice.ts
10
10
  import { Location } from "@opencode/core/location";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./cors-q4bn6dy8.js";
3
+ } from "./service-status-q4bn6dy8.js";
4
4
  import {
5
5
  middleware2
6
- } from "./cors-myqk22k5.js";
6
+ } from "./service-status-myqk22k5.js";
7
7
  import {
8
8
  withoutParentSpan2
9
- } from "./cors-yc7nft6q.js";
9
+ } from "./service-status-yc7nft6q.js";
10
10
  import {
11
11
  createRoutes2
12
- } from "./cors-88jc3dbp.js";
12
+ } from "./service-status-b7s379ba.js";
13
13
  import {
14
14
  __export
15
- } from "./cors-9rqn6x4v.js";
15
+ } from "./service-status-9rqn6x4v.js";
16
16
 
17
17
  // src/fetch.ts
18
18
  var exports_fetch = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CONTENT_SECURITY_POLICY2,
3
3
  disposition2
4
- } from "./cors-t32e1bbt.js";
4
+ } from "./service-status-t32e1bbt.js";
5
5
 
6
6
  // src/handlers/media.ts
7
7
  import { Database } from "@opencode/core/database/database";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./cors-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/service-status.ts
6
6
  var exports_service_status = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./service-status-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./service-status-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./cors-gqq6kfhc.js";
5
+ } from "./service-status-50bbk3b2.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./cors-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./cors-gk0yxcp6.js";
6
+ } from "./service-status-htyf2qs7.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./cors-yet0vexm.js";
9
+ } from "./service-status-b3bmdkga.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./cors-gqq6kfhc.js";
4
+ } from "./service-status-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-r5696se6.js";
7
+ } from "./service-status-j87xz9bt.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  isAllowedRequestOrigin2
3
- } from "./cors-q4bn6dy8.js";
3
+ } from "./service-status-q4bn6dy8.js";
4
4
  import {
5
5
  __export
6
- } from "./cors-9rqn6x4v.js";
6
+ } from "./service-status-9rqn6x4v.js";
7
7
 
8
8
  // src/request-site.ts
9
9
  var exports_request_site = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./cors-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/pairing.ts
6
6
  var exports_pairing = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./service-status-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./service-status-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";