@opencode/server 0.0.0-dev-1352 → 0.0.0-dev-1358

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 (140) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{workerd-fdy3gtcd.js → request-tracing-1nsytpdt.js} +4 -4
  4. package/dist/chunks/{workerd-g7jcf7zq.js → request-tracing-294h7qkd.js} +6 -6
  5. package/dist/chunks/{workerd-rktygpea.js → request-tracing-29nx48hm.js} +4 -1
  6. package/dist/chunks/{workerd-j605n900.js → request-tracing-3w2mqh28.js} +2 -2
  7. package/dist/chunks/{workerd-ws2ckpmb.js → request-tracing-5ky8bme5.js} +3 -3
  8. package/dist/chunks/{workerd-k12h8tw9.js → request-tracing-6anyjjh1.js} +1 -1
  9. package/dist/chunks/request-tracing-6hw64pe6.js +108 -0
  10. package/dist/chunks/{workerd-6pm6ek88.js → request-tracing-6pm6ek88.js} +1 -1
  11. package/dist/chunks/{workerd-yvy5qft7.js → request-tracing-7r996r31.js} +2 -2
  12. package/dist/chunks/{workerd-raj3p8q0.js → request-tracing-8gbtt6ty.js} +3 -3
  13. package/dist/chunks/{workerd-8sb6qqpn.js → request-tracing-8sb6qqpn.js} +1 -1
  14. package/dist/chunks/{workerd-341zm3rs.js → request-tracing-8y9zssdg.js} +2 -2
  15. package/dist/chunks/{workerd-ggw25rqf.js → request-tracing-ar950k47.js} +1 -1
  16. package/dist/chunks/{workerd-72bf7qt9.js → request-tracing-br4x4prt.js} +3 -3
  17. package/dist/chunks/{workerd-0dfmev2z.js → request-tracing-ca564221.js} +1 -1
  18. package/dist/chunks/{workerd-qgjb3f4w.js → request-tracing-cj97w75w.js} +2 -2
  19. package/dist/chunks/{workerd-89vcfemc.js → request-tracing-daegfhsz.js} +15 -11
  20. package/dist/chunks/{workerd-844nmnmk.js → request-tracing-ddhjwr2w.js} +2 -2
  21. package/dist/chunks/{workerd-kc553r92.js → request-tracing-df03ef4a.js} +2 -2
  22. package/dist/chunks/{workerd-djr0jy89.js → request-tracing-djr0jy89.js} +1 -1
  23. package/dist/chunks/{workerd-0q7s66m2.js → request-tracing-e6e4kz0w.js} +4 -4
  24. package/dist/chunks/{workerd-2h3x7256.js → request-tracing-eacgzt6w.js} +1 -1
  25. package/dist/chunks/{workerd-fsvp99pe.js → request-tracing-ehyp3zqd.js} +1 -1
  26. package/dist/chunks/{workerd-qcnb494j.js → request-tracing-esvnag9e.js} +2 -2
  27. package/dist/chunks/{workerd-tktas153.js → request-tracing-f412ctvv.js} +2 -2
  28. package/dist/chunks/{workerd-50kbksvb.js → request-tracing-g23ffrnz.js} +2 -2
  29. package/dist/chunks/{workerd-n9xnk9z3.js → request-tracing-g354sg86.js} +2 -2
  30. package/dist/chunks/{workerd-ntf3tw9k.js → request-tracing-hbrnhmez.js} +1 -1
  31. package/dist/chunks/{workerd-zs3a96ke.js → request-tracing-htk4x1jk.js} +2 -2
  32. package/dist/chunks/{workerd-j4at0y5c.js → request-tracing-j4at0y5c.js} +1 -1
  33. package/dist/chunks/{workerd-j6y32kmq.js → request-tracing-javgytnb.js} +2 -2
  34. package/dist/chunks/{workerd-8y4d9f30.js → request-tracing-jhs8rzvk.js} +3 -3
  35. package/dist/chunks/request-tracing-ka2mtp6f.js +189 -0
  36. package/dist/chunks/{workerd-zs1mkg1y.js → request-tracing-khe9dd99.js} +2 -2
  37. package/dist/chunks/{workerd-pertn7qr.js → request-tracing-mq10h3bj.js} +4 -4
  38. package/dist/chunks/{workerd-myqk22k5.js → request-tracing-myqk22k5.js} +2 -2
  39. package/dist/chunks/{workerd-cgcw2b0e.js → request-tracing-phgds112.js} +2 -2
  40. package/dist/chunks/{workerd-zmrq0y42.js → request-tracing-r682v2h3.js} +2 -2
  41. package/dist/chunks/request-tracing-r6qsbz4y.js +20 -0
  42. package/dist/chunks/{workerd-fcw485c9.js → request-tracing-rg932pab.js} +2 -2
  43. package/dist/chunks/{workerd-e0ppd0jy.js → request-tracing-s802fzg1.js} +10 -10
  44. package/dist/chunks/{workerd-t32e1bbt.js → request-tracing-t32e1bbt.js} +1 -1
  45. package/dist/chunks/{workerd-8vb7b9fr.js → request-tracing-tttb6mvj.js} +4 -4
  46. package/dist/chunks/{workerd-7wqhvmdw.js → request-tracing-v5qprkre.js} +4 -4
  47. package/dist/chunks/{workerd-w9jcwh65.js → request-tracing-w9jcwh65.js} +1 -1
  48. package/dist/chunks/{workerd-fegnxd42.js → request-tracing-wjh98yw2.js} +1 -1
  49. package/dist/chunks/{workerd-nessw55r.js → request-tracing-wjhv2a2x.js} +20 -16
  50. package/dist/chunks/{workerd-chs3pn0j.js → request-tracing-ww68cgwg.js} +5 -5
  51. package/dist/chunks/{workerd-dyvstyyh.js → request-tracing-x1nd0396.js} +4 -4
  52. package/dist/chunks/{workerd-x2qy7jg1.js → request-tracing-x2qy7jg1.js} +1 -1
  53. package/dist/chunks/{workerd-sn8sqewc.js → request-tracing-y8sa9sbe.js} +2 -2
  54. package/dist/chunks/{workerd-7tv8nec1.js → request-tracing-ykr4m3zx.js} +1 -1
  55. package/dist/chunks/{workerd-gqstb6bx.js → request-tracing-z0v7xmc8.js} +2 -2
  56. package/dist/chunks/{workerd-7dtbad8d.js → request-tracing-z3e7v67k.js} +7 -7
  57. package/dist/chunks/{workerd-bcs2rr9e.js → request-tracing-zhgmk0fm.js} +2 -2
  58. package/dist/content-headers.js +1 -1
  59. package/dist/cors.js +1 -1
  60. package/dist/event-feed.js +7 -7
  61. package/dist/fetch.d.ts +1 -1
  62. package/dist/fetch.js +63 -61
  63. package/dist/handlers/agent.js +6 -6
  64. package/dist/handlers/artifact.js +3 -3
  65. package/dist/handlers/automation.js +2 -2
  66. package/dist/handlers/blob.js +3 -3
  67. package/dist/handlers/command.js +6 -6
  68. package/dist/handlers/config.js +6 -6
  69. package/dist/handlers/credential.js +7 -7
  70. package/dist/handlers/debug.js +6 -6
  71. package/dist/handlers/event.js +7 -7
  72. package/dist/handlers/experimental/browser-tunnel.d.ts +11 -0
  73. package/dist/handlers/experimental/browser-tunnel.js +9 -0
  74. package/dist/handlers/flag.d.ts +1 -0
  75. package/dist/handlers/flag.js +11 -0
  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.d.ts +1 -1
  90. package/dist/handlers/persistent-pty.js +18 -17
  91. package/dist/handlers/plugin.js +6 -6
  92. package/dist/handlers/project.js +6 -6
  93. package/dist/handlers/provider.js +6 -6
  94. package/dist/handlers/pty-socket.js +1 -1
  95. package/dist/handlers/pty.js +8 -8
  96. package/dist/handlers/push.js +1 -1
  97. package/dist/handlers/reference.js +6 -6
  98. package/dist/handlers/rpc.js +6 -6
  99. package/dist/handlers/server.js +9 -9
  100. package/dist/handlers/session-error.js +1 -1
  101. package/dist/handlers/session.js +7 -7
  102. package/dist/handlers/shell.js +6 -6
  103. package/dist/handlers/skill.js +6 -6
  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.d.ts +1 -1
  110. package/dist/handlers.js +56 -54
  111. package/dist/location.js +4 -4
  112. package/dist/media-uri.js +1 -1
  113. package/dist/middleware/authorization.js +2 -2
  114. package/dist/middleware/defect-response.js +1 -1
  115. package/dist/middleware/form-location.js +3 -3
  116. package/dist/middleware/schema-error.js +1 -1
  117. package/dist/middleware/session-location.js +3 -3
  118. package/dist/pairing.d.ts +1 -1
  119. package/dist/pairing.js +1 -1
  120. package/dist/process.js +75 -65
  121. package/dist/range.js +1 -1
  122. package/dist/request-site.js +2 -2
  123. package/dist/request-tracing.js +1 -1
  124. package/dist/routes.d.ts +3 -2
  125. package/dist/routes.js +60 -58
  126. package/dist/server-info.js +5 -5
  127. package/dist/service-status.js +3 -3
  128. package/dist/workerd.js +66 -62
  129. package/package.json +9 -9
  130. package/dist/chunks/workerd-wq8p9yvz.js +0 -105
  131. /package/dist/chunks/{workerd-017ycvbx.js → request-tracing-017ycvbx.js} +0 -0
  132. /package/dist/chunks/{workerd-9rqn6x4v.js → request-tracing-9rqn6x4v.js} +0 -0
  133. /package/dist/chunks/{workerd-bd8755ek.js → request-tracing-bd8755ek.js} +0 -0
  134. /package/dist/chunks/{workerd-n26yr6pw.js → request-tracing-n26yr6pw.js} +0 -0
  135. /package/dist/chunks/{workerd-q187pxxd.js → request-tracing-q187pxxd.js} +0 -0
  136. /package/dist/chunks/{workerd-q4bn6dy8.js → request-tracing-q4bn6dy8.js} +0 -0
  137. /package/dist/chunks/{workerd-qpnw2qd1.js → request-tracing-qpnw2qd1.js} +0 -0
  138. /package/dist/chunks/{workerd-rqgv9x42.js → request-tracing-rqgv9x42.js} +0 -0
  139. /package/dist/chunks/{workerd-xthc02cw.js → request-tracing-xthc02cw.js} +0 -0
  140. /package/dist/chunks/{workerd-yc7nft6q.js → request-tracing-yc7nft6q.js} +0 -0
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/workerd-8y4d9f30.js";
4
- import"./chunks/workerd-0dfmev2z.js";
5
- import"./chunks/workerd-fsvp99pe.js";
6
- import"./chunks/workerd-72bf7qt9.js";
7
- import"./chunks/workerd-rqgv9x42.js";
3
+ } from "./chunks/request-tracing-jhs8rzvk.js";
4
+ import"./chunks/request-tracing-ca564221.js";
5
+ import"./chunks/request-tracing-ehyp3zqd.js";
6
+ import"./chunks/request-tracing-br4x4prt.js";
7
+ import"./chunks/request-tracing-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/workerd-j4at0y5c.js";
10
+ } from "./chunks/request-tracing-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 "./workerd-72bf7qt9.js";
5
+ } from "./request-tracing-br4x4prt.js";
6
6
  import {
7
7
  Api2
8
- } from "./workerd-8y4d9f30.js";
8
+ } from "./request-tracing-jhs8rzvk.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./workerd-q4bn6dy8.js";
12
+ } from "./request-tracing-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./workerd-q187pxxd.js";
16
+ } from "./request-tracing-q187pxxd.js";
17
17
 
18
18
  // src/handlers/mcp.ts
19
19
  import { Location } from "@opencode/core/location";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-8y4d9f30.js";
3
+ } from "./request-tracing-jhs8rzvk.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./workerd-j4at0y5c.js";
9
+ } from "./request-tracing-j4at0y5c.js";
10
10
  import {
11
- Service4
12
- } from "./workerd-7dtbad8d.js";
11
+ Service2
12
+ } from "./request-tracing-z3e7v67k.js";
13
13
  import {
14
14
  Service3
15
- } from "./workerd-w9jcwh65.js";
15
+ } from "./request-tracing-w9jcwh65.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { hostname } from "node:os";
@@ -25,7 +25,7 @@ var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => E
25
25
  const pairing = yield* Service3;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
- const info = yield* Service4;
28
+ const info = yield* Service2;
29
29
  return {
30
30
  version: info.app.version ?? "unknown",
31
31
  pid: process.pid ?? 0,
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./workerd-j4at0y5c.js";
7
+ } from "./request-tracing-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -13,6 +13,7 @@ import { Authorization as Authorization2 } from "@opencode/protocol/middleware/a
13
13
  import { PTY_CONNECT_PATH, PTY_CONNECT_TICKET_QUERY } from "@opencode/protocol/groups/pty";
14
14
  import { PERSISTENT_PTY_CONNECT_PATH } from "@opencode/protocol/groups/persistent-pty";
15
15
  import { MCP_CLIENT_PATH } from "@opencode/protocol/groups/mcp";
16
+ import { BROWSER_TUNNEL_PATH, hasBrowserTunnelUpgrade } from "@opencode/protocol/groups/experimental/browser-tunnel";
16
17
  import { isWebSocketUpgrade, MACHINE_LINK_PATH } from "@opencode/protocol/groups/machine";
17
18
  import { PAIRING_CONNECT_PATH } from "@opencode/protocol/groups/server";
18
19
  import { Effect, Layer, Redacted } from "effect";
@@ -76,6 +77,8 @@ var authorizationLayer2 = Layer.effect(Authorization, Effect.gen(function* () {
76
77
  return yield* effect;
77
78
  if (route.route.path === MACHINE_LINK_PATH && isWebSocketUpgrade(request))
78
79
  return yield* effect;
80
+ if (route.route.path === BROWSER_TUNNEL_PATH && hasBrowserTunnelUpgrade(request))
81
+ return yield* effect;
79
82
  if (yield* authorizedRequest2(request, config))
80
83
  return yield* effect;
81
84
  if (challengeRequest(request))
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-8y4d9f30.js";
3
+ } from "./request-tracing-jhs8rzvk.js";
4
4
  import {
5
5
  requireConnectable2
6
- } from "./workerd-yvy5qft7.js";
6
+ } from "./request-tracing-7r996r31.js";
7
7
 
8
8
  // src/handlers/credential.ts
9
9
  import { Credential } from "@opencode/core/credential";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./workerd-rqgv9x42.js";
3
+ } from "./request-tracing-rqgv9x42.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./workerd-72bf7qt9.js";
8
+ } from "./request-tracing-br4x4prt.js";
9
9
  import {
10
10
  Api2
11
- } from "./workerd-8y4d9f30.js";
11
+ } from "./request-tracing-jhs8rzvk.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-8y4d9f30.js";
3
+ } from "./request-tracing-jhs8rzvk.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -0,0 +1,108 @@
1
+ import {
2
+ GenerateHandler2
3
+ } from "./request-tracing-r682v2h3.js";
4
+ import {
5
+ VoiceHandler2
6
+ } from "./request-tracing-phgds112.js";
7
+ import {
8
+ MessageHandler2
9
+ } from "./request-tracing-8gbtt6ty.js";
10
+ import {
11
+ ModelHandler2
12
+ } from "./request-tracing-y8sa9sbe.js";
13
+ import {
14
+ ProviderHandler2
15
+ } from "./request-tracing-cj97w75w.js";
16
+ import {
17
+ SessionHandler2
18
+ } from "./request-tracing-x1nd0396.js";
19
+ import {
20
+ PermissionHandler2
21
+ } from "./request-tracing-5ky8bme5.js";
22
+ import {
23
+ FileSystemHandler2
24
+ } from "./request-tracing-v5qprkre.js";
25
+ import {
26
+ FormHandler2
27
+ } from "./request-tracing-esvnag9e.js";
28
+ import {
29
+ CommandHandler2
30
+ } from "./request-tracing-8y9zssdg.js";
31
+ import {
32
+ SkillHandler2
33
+ } from "./request-tracing-g354sg86.js";
34
+ import {
35
+ RpcHandler2
36
+ } from "./request-tracing-ar950k47.js";
37
+ import {
38
+ layer3
39
+ } from "./request-tracing-s802fzg1.js";
40
+ import {
41
+ EventHandler2
42
+ } from "./request-tracing-tttb6mvj.js";
43
+ import {
44
+ AgentHandler2
45
+ } from "./request-tracing-f412ctvv.js";
46
+ import {
47
+ PluginHandler2
48
+ } from "./request-tracing-z0v7xmc8.js";
49
+ import {
50
+ ServerHandler2
51
+ } from "./request-tracing-294h7qkd.js";
52
+ import {
53
+ DebugHandler2
54
+ } from "./request-tracing-zhgmk0fm.js";
55
+ import {
56
+ PtyHandler2
57
+ } from "./request-tracing-mq10h3bj.js";
58
+ import {
59
+ PersistentPtyHandler2
60
+ } from "./request-tracing-daegfhsz.js";
61
+ import {
62
+ ShellHandler2
63
+ } from "./request-tracing-df03ef4a.js";
64
+ import {
65
+ ReferenceHandler2
66
+ } from "./request-tracing-rg932pab.js";
67
+ import {
68
+ LocationHandler2
69
+ } from "./request-tracing-hbrnhmez.js";
70
+ import {
71
+ IntegrationHandler2
72
+ } from "./request-tracing-7r996r31.js";
73
+ import {
74
+ WebSearchHandler2
75
+ } from "./request-tracing-htk4x1jk.js";
76
+ import {
77
+ UsageHandler2
78
+ } from "./request-tracing-ddhjwr2w.js";
79
+ import {
80
+ FlagHandler2
81
+ } from "./request-tracing-r6qsbz4y.js";
82
+ import {
83
+ McpHandler2
84
+ } from "./request-tracing-1nsytpdt.js";
85
+ import {
86
+ CredentialHandler2
87
+ } from "./request-tracing-3w2mqh28.js";
88
+ import {
89
+ ProjectHandler2
90
+ } from "./request-tracing-6anyjjh1.js";
91
+ import {
92
+ WorktreeHandler2
93
+ } from "./request-tracing-ykr4m3zx.js";
94
+ import {
95
+ VcsHandler2
96
+ } from "./request-tracing-khe9dd99.js";
97
+ import {
98
+ MigrationHandler2
99
+ } from "./request-tracing-eacgzt6w.js";
100
+ import {
101
+ ConfigHandler2
102
+ } from "./request-tracing-wjh98yw2.js";
103
+
104
+ // src/handlers.ts
105
+ import { Layer } from "effect";
106
+ var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, FlagHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer3)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
107
+
108
+ export { handlers2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./workerd-rqgv9x42.js";
3
+ } from "./request-tracing-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
  response2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./workerd-rqgv9x42.js";
4
+ } from "./request-tracing-rqgv9x42.js";
5
5
  import {
6
6
  Api2
7
- } from "./workerd-8y4d9f30.js";
7
+ } from "./request-tracing-jhs8rzvk.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./workerd-xthc02cw.js";
10
+ } from "./request-tracing-xthc02cw.js";
11
11
 
12
12
  // src/handlers/message.ts
13
13
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./request-tracing-9rqn6x4v.js";
4
4
 
5
5
  // src/range.ts
6
6
  var exports_range = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.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
  Api2
3
- } from "./workerd-8y4d9f30.js";
3
+ } from "./request-tracing-jhs8rzvk.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./workerd-rqgv9x42.js";
3
+ } from "./request-tracing-rqgv9x42.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -51,7 +51,7 @@ function decode(input) {
51
51
  return input;
52
52
  }
53
53
  }
54
- var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
54
+ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
55
55
  const locations = yield* LocationServiceMap.Service;
56
56
  return LocationMiddleware2.of((effect) => Effect.gen(function* () {
57
57
  const request = yield* HttpServerRequest.HttpServerRequest;
@@ -59,4 +59,4 @@ var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
59
59
  }));
60
60
  }));
61
61
 
62
- export { LocationMiddleware2, locationErrors2, response2, sessionInfo2, requestRef2, layer3 };
62
+ export { LocationMiddleware2, locationErrors2, response2, sessionInfo2, requestRef2, layer4 };
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./workerd-72bf7qt9.js";
5
+ } from "./request-tracing-br4x4prt.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -1,35 +1,38 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-8y4d9f30.js";
3
+ } from "./request-tracing-jhs8rzvk.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./workerd-q4bn6dy8.js";
7
+ } from "./request-tracing-q4bn6dy8.js";
8
8
  import {
9
9
  makeArtifact2
10
- } from "./workerd-j6y32kmq.js";
10
+ } from "./request-tracing-javgytnb.js";
11
11
  import {
12
12
  makeBlobGet2
13
- } from "./workerd-50kbksvb.js";
13
+ } from "./request-tracing-g23ffrnz.js";
14
+ import {
15
+ makeBrowserTunnel2
16
+ } from "./request-tracing-ka2mtp6f.js";
14
17
  import {
15
18
  makeAutomation2
16
- } from "./workerd-6pm6ek88.js";
19
+ } from "./request-tracing-6pm6ek88.js";
17
20
  import {
18
21
  makeJob2
19
- } from "./workerd-x2qy7jg1.js";
22
+ } from "./request-tracing-x2qy7jg1.js";
20
23
  import {
21
24
  makeMachineLink2,
22
25
  makeMachine2
23
- } from "./workerd-017ycvbx.js";
26
+ } from "./request-tracing-017ycvbx.js";
24
27
  import {
25
28
  makeMediaGet2
26
- } from "./workerd-djr0jy89.js";
29
+ } from "./request-tracing-djr0jy89.js";
27
30
  import {
28
31
  makePush2
29
- } from "./workerd-qpnw2qd1.js";
32
+ } from "./request-tracing-qpnw2qd1.js";
30
33
  import {
31
34
  runPtySocket2
32
- } from "./workerd-q187pxxd.js";
35
+ } from "./request-tracing-q187pxxd.js";
33
36
 
34
37
  // src/handlers/persistent-pty.ts
35
38
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -60,8 +63,9 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
60
63
  const automation = yield* makeAutomation2;
61
64
  const machine = yield* makeMachine2;
62
65
  const machineLink = yield* makeMachineLink2;
66
+ const browserTunnel = yield* makeBrowserTunnel2;
63
67
  const push = yield* makePush2;
64
- return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handleRaw("blob.get", (ctx) => blobGet(ctx.params.id, ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).handle("job.cancel", (ctx) => job.cancel(ctx.params.id)).handleRaw("machine.link", (ctx) => machineLink(ctx.request)).handle("machine.list", () => machine.list()).handle("machine.add", (ctx) => machine.add(ctx.payload)).handle("machine.remove", (ctx) => machine.remove(ctx.params.name)).handle("push.get", () => push.get()).handle("push.device.register", (ctx) => push.register(ctx.params.deviceID, ctx.payload)).handle("push.device.remove", (ctx) => push.remove(ctx.params.deviceID)).handle("push.device.update", (ctx) => push.update(ctx.params.deviceID, ctx.payload)).handle("push.device.session.set", (ctx) => push.setDeviceBell(ctx.params.deviceID, ctx.params.sessionID, ctx.payload)).handle("push.device.session.remove", (ctx) => push.removeDeviceBell(ctx.params.deviceID, ctx.params.sessionID)).handle("push.session.set", (ctx) => push.setSessionBell(ctx.params.sessionID, ctx.payload)).handle("push.session.remove", (ctx) => push.removeSessionBell(ctx.params.sessionID)).handle("push.settings.set", (ctx) => push.setSettings(ctx.payload)).handle("artifacts.providers", (ctx) => artifact.providers(ctx.query, ctx.request)).handle("artifacts.list", (ctx) => artifact.list(ctx.query, ctx.request)).handle("artifacts.create", (ctx) => artifact.create(ctx.query, ctx.payload, ctx.request)).handle("artifacts.get", (ctx) => artifact.get(ctx.params.artifactID, ctx.query, ctx.request)).handle("artifacts.update", (ctx) => artifact.update(ctx.params.artifactID, ctx.query, ctx.payload, ctx.request)).handle("artifacts.delete", (ctx) => artifact.remove(ctx.params.artifactID, ctx.query, ctx.request)).handleRaw("artifacts.view", (ctx) => artifact.view(ctx.params.artifactID, ctx.query, ctx.request)).handle("automation.create", (ctx) => automation.create(ctx.payload)).handle("automation.list", (ctx) => automation.list(ctx.query)).handle("automation.get", (ctx) => automation.get(ctx.params.automationID)).handle("automation.pause", (ctx) => automation.pause(ctx.params.automationID)).handle("automation.resume", (ctx) => automation.resume(ctx.params.automationID)).handle("automation.delete", (ctx) => automation.remove(ctx.params.automationID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
68
+ return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handleRaw("blob.get", (ctx) => blobGet(ctx.params.id, ctx.request)).handleRaw("browser.tunnel", (ctx) => browserTunnel(ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).handle("job.cancel", (ctx) => job.cancel(ctx.params.id)).handleRaw("machine.link", (ctx) => machineLink(ctx.request)).handle("machine.list", () => machine.list()).handle("machine.add", (ctx) => machine.add(ctx.payload)).handle("machine.remove", (ctx) => machine.remove(ctx.params.name)).handle("push.get", () => push.get()).handle("push.device.register", (ctx) => push.register(ctx.params.deviceID, ctx.payload)).handle("push.device.remove", (ctx) => push.remove(ctx.params.deviceID)).handle("push.device.update", (ctx) => push.update(ctx.params.deviceID, ctx.payload)).handle("push.device.session.set", (ctx) => push.setDeviceBell(ctx.params.deviceID, ctx.params.sessionID, ctx.payload)).handle("push.device.session.remove", (ctx) => push.removeDeviceBell(ctx.params.deviceID, ctx.params.sessionID)).handle("push.session.set", (ctx) => push.setSessionBell(ctx.params.sessionID, ctx.payload)).handle("push.session.remove", (ctx) => push.removeSessionBell(ctx.params.sessionID)).handle("push.settings.set", (ctx) => push.setSettings(ctx.payload)).handle("artifacts.providers", (ctx) => artifact.providers(ctx.query, ctx.request)).handle("artifacts.list", (ctx) => artifact.list(ctx.query, ctx.request)).handle("artifacts.create", (ctx) => artifact.create(ctx.query, ctx.payload, ctx.request)).handle("artifacts.get", (ctx) => artifact.get(ctx.params.artifactID, ctx.query, ctx.request)).handle("artifacts.update", (ctx) => artifact.update(ctx.params.artifactID, ctx.query, ctx.payload, ctx.request)).handle("artifacts.delete", (ctx) => artifact.remove(ctx.params.artifactID, ctx.query, ctx.request)).handleRaw("artifacts.view", (ctx) => artifact.view(ctx.params.artifactID, ctx.query, ctx.request)).handle("automation.create", (ctx) => automation.create(ctx.payload)).handle("automation.list", (ctx) => automation.list(ctx.query)).handle("automation.get", (ctx) => automation.get(ctx.params.automationID)).handle("automation.pause", (ctx) => automation.pause(ctx.params.automationID)).handle("automation.resume", (ctx) => automation.resume(ctx.params.automationID)).handle("automation.delete", (ctx) => automation.remove(ctx.params.automationID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
65
69
  return { data: yield* pty.read(ctx.params.sessionID, ctx.query.lines).pipe(mapUnavailable) };
66
70
  })).handle("persistentPty.list", Effect.fn(function* (ctx) {
67
71
  return { data: yield* pty.list(ctx.params.sessionID).pipe(mapUnavailable) };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/usage.ts
9
9
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CONTENT_SECURITY_POLICY2,
3
3
  disposition2
4
- } from "./workerd-t32e1bbt.js";
4
+ } from "./request-tracing-t32e1bbt.js";
5
5
 
6
6
  // src/handlers/media.ts
7
7
  import { Database } from "@opencode/core/database/database";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./request-tracing-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: () => make4
9
+ make: () => make3
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make4 = Effect.fnUntraced(function* (options = {}) {
12
+ var make3 = 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 make4 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make4, exports_service_status };
23
+ export { make3, exports_service_status };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-8y4d9f30.js";
3
+ } from "./request-tracing-jhs8rzvk.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./workerd-72bf7qt9.js";
4
+ } from "./request-tracing-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 "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.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
  download2
3
- } from "./workerd-t32e1bbt.js";
3
+ } from "./request-tracing-t32e1bbt.js";
4
4
  import {
5
5
  parse2
6
- } from "./workerd-8sb6qqpn.js";
6
+ } from "./request-tracing-8sb6qqpn.js";
7
7
 
8
8
  // src/handlers/blob.ts
9
9
  import { BlobStore } from "@opencode/core/blob-store";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-8y4d9f30.js";
3
+ } from "./request-tracing-jhs8rzvk.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-8y4d9f30.js";
6
+ } from "./request-tracing-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/websearch.ts
9
9
  import { WebSearch } from "@opencode/core/websearch";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./request-tracing-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./workerd-rqgv9x42.js";
3
+ } from "./request-tracing-rqgv9x42.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  requestRef2
8
- } from "./workerd-72bf7qt9.js";
8
+ } from "./request-tracing-br4x4prt.js";
9
9
 
10
10
  // src/handlers/artifact.ts
11
11
  import { Artifact } from "@opencode/core/artifact";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./workerd-72bf7qt9.js";
3
+ } from "./request-tracing-br4x4prt.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./workerd-0dfmev2z.js";
6
+ } from "./request-tracing-ca564221.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./workerd-fsvp99pe.js";
9
+ } from "./request-tracing-ehyp3zqd.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";