@opencode/server 0.0.0-dev-1325 → 0.0.0-dev-1326

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 (130) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{location-j9bm09j4.js → event-feed-0bzgr4rt.js} +1 -1
  4. package/dist/chunks/{location-z030czn6.js → event-feed-0d9m1wm4.js} +2 -2
  5. package/dist/chunks/{location-wtrkk6n8.js → event-feed-1pw2nrsx.js} +1 -1
  6. package/dist/chunks/{location-ghcy4ddk.js → event-feed-2d18d1yn.js} +1 -1
  7. package/dist/chunks/{location-39nnfjx1.js → event-feed-39nnfjx1.js} +1 -1
  8. package/dist/chunks/{location-3svx81fb.js → event-feed-3cp4agan.js} +3 -3
  9. package/dist/chunks/{location-2b13xzyt.js → event-feed-4vbpeb73.js} +2 -2
  10. package/dist/chunks/{location-cx7az6y7.js → event-feed-55yh37zc.js} +2 -2
  11. package/dist/chunks/{location-nezkqcz0.js → event-feed-5b1w9hwr.js} +2 -2
  12. package/dist/chunks/{location-3d706mcp.js → event-feed-5z0ssrt9.js} +18 -16
  13. package/dist/chunks/{location-n7n1k6t0.js → event-feed-6f7nn4kk.js} +2 -2
  14. package/dist/chunks/{location-20aw7tea.js → event-feed-6jmqkv3t.js} +35 -35
  15. package/dist/chunks/{location-w7qv5azt.js → event-feed-6ptjjp36.js} +2 -2
  16. package/dist/chunks/{location-c0pd5awd.js → event-feed-735y9bwf.js} +2 -2
  17. package/dist/chunks/{location-7ydfwv45.js → event-feed-7ydfwv45.js} +1 -1
  18. package/dist/chunks/{location-xygx09yd.js → event-feed-8ptkdkh0.js} +2 -2
  19. package/dist/chunks/{location-27f8nny0.js → event-feed-8q8t4r9z.js} +2 -2
  20. package/dist/chunks/{location-8sb6qqpn.js → event-feed-8sb6qqpn.js} +1 -1
  21. package/dist/chunks/{location-9cd3a4b8.js → event-feed-9cd3a4b8.js} +1 -1
  22. package/dist/chunks/{location-065pppgn.js → event-feed-9d8cvn0j.js} +2 -2
  23. package/dist/chunks/{location-z4znncxg.js → event-feed-a5hb5213.js} +2 -2
  24. package/dist/chunks/{location-8pn9ceqg.js → event-feed-a9m1qywq.js} +3 -3
  25. package/dist/chunks/{location-fvpjvjpp.js → event-feed-arzv3fj6.js} +4 -4
  26. package/dist/chunks/{location-7qpea5x7.js → event-feed-aw6r5m46.js} +2 -2
  27. package/dist/chunks/{location-3te71694.js → event-feed-b1prsepx.js} +4 -4
  28. package/dist/chunks/{location-669rq3zn.js → event-feed-cha5bc7v.js} +3 -3
  29. package/dist/chunks/{location-bwjy9ex5.js → event-feed-d6gdrha6.js} +2 -2
  30. package/dist/chunks/{location-djr0jy89.js → event-feed-djr0jy89.js} +1 -1
  31. package/dist/chunks/{location-0tp9bckc.js → event-feed-dx59hhqy.js} +1 -1
  32. package/dist/chunks/{location-xhsknm82.js → event-feed-e4amrgg0.js} +2 -2
  33. package/dist/chunks/{location-g23ffrnz.js → event-feed-g23ffrnz.js} +2 -2
  34. package/dist/chunks/{location-2q06e3dd.js → event-feed-harnzwyx.js} +1 -1
  35. package/dist/chunks/{location-j4at0y5c.js → event-feed-j4at0y5c.js} +1 -1
  36. package/dist/chunks/{location-500wz90y.js → event-feed-jdn2h5zy.js} +2 -2
  37. package/dist/chunks/{location-9chkqb53.js → event-feed-knscys1g.js} +4 -4
  38. package/dist/chunks/{location-ah2sj2pr.js → event-feed-kstarh2s.js} +1 -1
  39. package/dist/chunks/{location-k3qt4jsw.js → event-feed-mbf5t0tq.js} +1 -1
  40. package/dist/chunks/{location-ahhjt1wh.js → event-feed-mnk4yp0a.js} +2 -2
  41. package/dist/chunks/{location-myqk22k5.js → event-feed-myqk22k5.js} +2 -2
  42. package/dist/chunks/{location-mzs0n5xz.js → event-feed-mzs0n5xz.js} +1 -1
  43. package/dist/chunks/{location-fhb2ewd9.js → event-feed-p4hr7w7j.js} +2 -2
  44. package/dist/chunks/{location-01ta1g14.js → event-feed-p7f8d9ed.js} +4 -4
  45. package/dist/chunks/{location-7b9xm1qg.js → event-feed-rktygpea.js} +4 -1
  46. package/dist/chunks/{location-9epy4pks.js → event-feed-rxp97434.js} +4 -4
  47. package/dist/chunks/event-feed-syfzpkey.js +144 -0
  48. package/dist/chunks/{location-t32e1bbt.js → event-feed-t32e1bbt.js} +1 -1
  49. package/dist/chunks/{location-2ghz4m36.js → event-feed-tb37vts4.js} +13 -9
  50. package/dist/chunks/{location-ywn523ee.js → event-feed-tdwf54y9.js} +3 -3
  51. package/dist/chunks/{location-66wjg7cg.js → event-feed-tphz28p0.js} +4 -4
  52. package/dist/chunks/{location-yr4jk19s.js → event-feed-vjj7wrqn.js} +2 -2
  53. package/dist/chunks/{location-qzq425w0.js → event-feed-vxnq9y72.js} +5 -5
  54. package/dist/chunks/{location-mevm0qpj.js → event-feed-y50v5y23.js} +4 -4
  55. package/dist/chunks/{location-ryf8gt7t.js → event-feed-ye16b3jy.js} +2 -2
  56. package/dist/chunks/{location-vw0q3knq.js → event-feed-ytyf0yt4.js} +1 -1
  57. package/dist/content-headers.js +1 -1
  58. package/dist/cors.js +1 -1
  59. package/dist/event-feed.js +3 -3
  60. package/dist/fetch.js +60 -59
  61. package/dist/handlers/agent.js +6 -6
  62. package/dist/handlers/artifact.js +3 -3
  63. package/dist/handlers/automation.js +2 -2
  64. package/dist/handlers/blob.js +3 -3
  65. package/dist/handlers/command.js +6 -6
  66. package/dist/handlers/config.js +6 -6
  67. package/dist/handlers/credential.js +7 -7
  68. package/dist/handlers/debug.js +6 -6
  69. package/dist/handlers/event.js +7 -7
  70. package/dist/handlers/form.js +6 -6
  71. package/dist/handlers/fs.js +8 -8
  72. package/dist/handlers/generate.js +6 -6
  73. package/dist/handlers/integration.js +6 -6
  74. package/dist/handlers/job.js +2 -2
  75. package/dist/handlers/location.js +6 -6
  76. package/dist/handlers/machine.d.ts +61 -0
  77. package/dist/handlers/machine.js +16 -0
  78. package/dist/handlers/mcp.js +8 -8
  79. package/dist/handlers/media.js +2 -2
  80. package/dist/handlers/message.js +7 -7
  81. package/dist/handlers/migration.js +6 -6
  82. package/dist/handlers/model.js +6 -6
  83. package/dist/handlers/permission.js +6 -6
  84. package/dist/handlers/persistent-pty.d.ts +1 -1
  85. package/dist/handlers/persistent-pty.js +16 -15
  86. package/dist/handlers/plugin.js +6 -6
  87. package/dist/handlers/project.js +6 -6
  88. package/dist/handlers/provider.js +6 -6
  89. package/dist/handlers/pty-socket.js +1 -1
  90. package/dist/handlers/pty.js +8 -8
  91. package/dist/handlers/reference.js +6 -6
  92. package/dist/handlers/rpc.js +6 -6
  93. package/dist/handlers/server.js +9 -9
  94. package/dist/handlers/session-error.js +1 -1
  95. package/dist/handlers/session.js +7 -7
  96. package/dist/handlers/shell.js +6 -6
  97. package/dist/handlers/skill.js +6 -6
  98. package/dist/handlers/usage.js +6 -6
  99. package/dist/handlers/vcs.js +6 -6
  100. package/dist/handlers/voice.js +6 -6
  101. package/dist/handlers/websearch.js +6 -6
  102. package/dist/handlers/worktree.js +6 -6
  103. package/dist/handlers.d.ts +1 -1
  104. package/dist/handlers.js +53 -52
  105. package/dist/location.js +4 -4
  106. package/dist/media-uri.js +1 -1
  107. package/dist/middleware/authorization.js +2 -2
  108. package/dist/middleware/defect-response.js +1 -1
  109. package/dist/middleware/form-location.js +3 -3
  110. package/dist/middleware/schema-error.js +1 -1
  111. package/dist/middleware/session-location.js +3 -3
  112. package/dist/pairing.js +1 -1
  113. package/dist/process.js +70 -63
  114. package/dist/range.js +1 -1
  115. package/dist/request-site.js +2 -2
  116. package/dist/request-tracing.js +1 -1
  117. package/dist/routes.d.ts +3 -2
  118. package/dist/routes.js +57 -56
  119. package/dist/server-info.js +3 -3
  120. package/dist/service-status.js +1 -1
  121. package/dist/workerd.js +61 -60
  122. package/package.json +8 -8
  123. /package/dist/chunks/{location-9rqn6x4v.js → event-feed-9rqn6x4v.js} +0 -0
  124. /package/dist/chunks/{location-bd8755ek.js → event-feed-bd8755ek.js} +0 -0
  125. /package/dist/chunks/{location-n26yr6pw.js → event-feed-n26yr6pw.js} +0 -0
  126. /package/dist/chunks/{location-q187pxxd.js → event-feed-q187pxxd.js} +0 -0
  127. /package/dist/chunks/{location-q4bn6dy8.js → event-feed-q4bn6dy8.js} +0 -0
  128. /package/dist/chunks/{location-smaf4a18.js → event-feed-smaf4a18.js} +0 -0
  129. /package/dist/chunks/{location-xthc02cw.js → event-feed-xthc02cw.js} +0 -0
  130. /package/dist/chunks/{location-yc7nft6q.js → event-feed-yc7nft6q.js} +0 -0
package/dist/fetch.js CHANGED
@@ -1,65 +1,66 @@
1
1
  import {
2
2
  make3,
3
3
  exports_fetch
4
- } from "./chunks/location-qzq425w0.js";
5
- import"./chunks/location-myqk22k5.js";
6
- import"./chunks/location-3d706mcp.js";
7
- import"./chunks/location-n26yr6pw.js";
8
- import"./chunks/location-7b9xm1qg.js";
9
- import"./chunks/location-bd8755ek.js";
10
- import"./chunks/location-20aw7tea.js";
11
- import"./chunks/location-66wjg7cg.js";
12
- import"./chunks/location-z4znncxg.js";
13
- import"./chunks/location-xygx09yd.js";
14
- import"./chunks/location-cx7az6y7.js";
15
- import"./chunks/location-2q06e3dd.js";
16
- import"./chunks/location-01ta1g14.js";
17
- import"./chunks/location-mevm0qpj.js";
18
- import"./chunks/location-065pppgn.js";
19
- import"./chunks/location-nezkqcz0.js";
20
- import"./chunks/location-j9bm09j4.js";
21
- import"./chunks/location-ghcy4ddk.js";
22
- import"./chunks/location-ryf8gt7t.js";
23
- import"./chunks/location-0tp9bckc.js";
24
- import"./chunks/location-k3qt4jsw.js";
25
- import"./chunks/location-fhb2ewd9.js";
26
- import"./chunks/location-27f8nny0.js";
27
- import"./chunks/location-yr4jk19s.js";
28
- import"./chunks/location-500wz90y.js";
29
- import"./chunks/location-xhsknm82.js";
30
- import"./chunks/location-3svx81fb.js";
31
- import"./chunks/location-w7qv5azt.js";
32
- import"./chunks/location-z030czn6.js";
33
- import"./chunks/location-c0pd5awd.js";
34
- import"./chunks/location-2b13xzyt.js";
35
- import"./chunks/location-2ghz4m36.js";
36
- import"./chunks/location-7qpea5x7.js";
37
- import"./chunks/location-g23ffrnz.js";
38
- import"./chunks/location-djr0jy89.js";
39
- import"./chunks/location-7ydfwv45.js";
40
- import"./chunks/location-9chkqb53.js";
41
- import"./chunks/location-wtrkk6n8.js";
42
- import"./chunks/location-669rq3zn.js";
43
- import"./chunks/location-bwjy9ex5.js";
44
- import"./chunks/location-n7n1k6t0.js";
45
- import"./chunks/location-ahhjt1wh.js";
46
- import"./chunks/location-9epy4pks.js";
47
- import"./chunks/location-q187pxxd.js";
48
- import"./chunks/location-9cd3a4b8.js";
49
- import"./chunks/location-fvpjvjpp.js";
50
- import"./chunks/location-3te71694.js";
51
- import"./chunks/location-8sb6qqpn.js";
52
- import"./chunks/location-xthc02cw.js";
53
- import"./chunks/location-j4at0y5c.js";
54
- import"./chunks/location-q4bn6dy8.js";
55
- import"./chunks/location-8pn9ceqg.js";
56
- import"./chunks/location-ah2sj2pr.js";
57
- import"./chunks/location-vw0q3knq.js";
58
- import"./chunks/location-ywn523ee.js";
59
- import"./chunks/location-smaf4a18.js";
60
- import"./chunks/location-yc7nft6q.js";
61
- import"./chunks/location-mzs0n5xz.js";
62
- import"./chunks/location-t32e1bbt.js";
4
+ } from "./chunks/event-feed-vxnq9y72.js";
5
+ import"./chunks/event-feed-myqk22k5.js";
6
+ import"./chunks/event-feed-yc7nft6q.js";
7
+ import"./chunks/event-feed-5z0ssrt9.js";
8
+ import"./chunks/event-feed-bd8755ek.js";
9
+ import"./chunks/event-feed-rktygpea.js";
10
+ import"./chunks/event-feed-n26yr6pw.js";
11
+ import"./chunks/event-feed-6jmqkv3t.js";
12
+ import"./chunks/event-feed-2d18d1yn.js";
13
+ import"./chunks/event-feed-mbf5t0tq.js";
14
+ import"./chunks/event-feed-y50v5y23.js";
15
+ import"./chunks/event-feed-1pw2nrsx.js";
16
+ import"./chunks/event-feed-6ptjjp36.js";
17
+ import"./chunks/event-feed-jdn2h5zy.js";
18
+ import"./chunks/event-feed-3cp4agan.js";
19
+ import"./chunks/event-feed-8q8t4r9z.js";
20
+ import"./chunks/event-feed-55yh37zc.js";
21
+ import"./chunks/event-feed-5b1w9hwr.js";
22
+ import"./chunks/event-feed-rxp97434.js";
23
+ import"./chunks/event-feed-mnk4yp0a.js";
24
+ import"./chunks/event-feed-dx59hhqy.js";
25
+ import"./chunks/event-feed-cha5bc7v.js";
26
+ import"./chunks/event-feed-a5hb5213.js";
27
+ import"./chunks/event-feed-4vbpeb73.js";
28
+ import"./chunks/event-feed-735y9bwf.js";
29
+ import"./chunks/event-feed-ye16b3jy.js";
30
+ import"./chunks/event-feed-d6gdrha6.js";
31
+ import"./chunks/event-feed-p4hr7w7j.js";
32
+ import"./chunks/event-feed-tb37vts4.js";
33
+ import"./chunks/event-feed-aw6r5m46.js";
34
+ import"./chunks/event-feed-g23ffrnz.js";
35
+ import"./chunks/event-feed-djr0jy89.js";
36
+ import"./chunks/event-feed-q187pxxd.js";
37
+ import"./chunks/event-feed-syfzpkey.js";
38
+ import"./chunks/event-feed-9cd3a4b8.js";
39
+ import"./chunks/event-feed-p7f8d9ed.js";
40
+ import"./chunks/event-feed-9d8cvn0j.js";
41
+ import"./chunks/event-feed-6f7nn4kk.js";
42
+ import"./chunks/event-feed-7ydfwv45.js";
43
+ import"./chunks/event-feed-8ptkdkh0.js";
44
+ import"./chunks/event-feed-harnzwyx.js";
45
+ import"./chunks/event-feed-e4amrgg0.js";
46
+ import"./chunks/event-feed-0bzgr4rt.js";
47
+ import"./chunks/event-feed-knscys1g.js";
48
+ import"./chunks/event-feed-tphz28p0.js";
49
+ import"./chunks/event-feed-0d9m1wm4.js";
50
+ import"./chunks/event-feed-vjj7wrqn.js";
51
+ import"./chunks/event-feed-8sb6qqpn.js";
52
+ import"./chunks/event-feed-t32e1bbt.js";
53
+ import"./chunks/event-feed-a9m1qywq.js";
54
+ import"./chunks/event-feed-kstarh2s.js";
55
+ import"./chunks/event-feed-ytyf0yt4.js";
56
+ import"./chunks/event-feed-tdwf54y9.js";
57
+ import"./chunks/event-feed-smaf4a18.js";
58
+ import"./chunks/event-feed-arzv3fj6.js";
59
+ import"./chunks/event-feed-xthc02cw.js";
60
+ import"./chunks/event-feed-b1prsepx.js";
61
+ import"./chunks/event-feed-q4bn6dy8.js";
62
+ import"./chunks/event-feed-mzs0n5xz.js";
63
+ import"./chunks/event-feed-j4at0y5c.js";
63
64
  export {
64
65
  exports_fetch as ServerFetch,
65
66
  make3 as make
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentHandler2
3
- } from "../chunks/location-nezkqcz0.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-5b1w9hwr.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  AgentHandler2 as AgentHandler
11
11
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  makeArtifact2
3
- } from "../chunks/location-7qpea5x7.js";
4
- import"../chunks/location-ywn523ee.js";
5
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-aw6r5m46.js";
4
+ import"../chunks/event-feed-tdwf54y9.js";
5
+ import"../chunks/event-feed-smaf4a18.js";
6
6
  export {
7
7
  makeArtifact2 as makeArtifact
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeAutomation2
3
- } from "../chunks/location-9cd3a4b8.js";
4
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-9cd3a4b8.js";
4
+ import"../chunks/event-feed-smaf4a18.js";
5
5
  export {
6
6
  makeAutomation2 as makeAutomation
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  makeBlobGet2
3
- } from "../chunks/location-g23ffrnz.js";
4
- import"../chunks/location-8sb6qqpn.js";
5
- import"../chunks/location-t32e1bbt.js";
3
+ } from "../chunks/event-feed-g23ffrnz.js";
4
+ import"../chunks/event-feed-8sb6qqpn.js";
5
+ import"../chunks/event-feed-t32e1bbt.js";
6
6
  export {
7
7
  makeBlobGet2 as makeBlobGet
8
8
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CommandHandler2
3
- } from "../chunks/location-27f8nny0.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-8q8t4r9z.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  CommandHandler2 as CommandHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ConfigHandler2
3
- } from "../chunks/location-j9bm09j4.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-0bzgr4rt.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  ConfigHandler2 as ConfigHandler
11
11
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CredentialHandler2
3
- } from "../chunks/location-z4znncxg.js";
4
- import"../chunks/location-2b13xzyt.js";
5
- import"../chunks/location-8pn9ceqg.js";
6
- import"../chunks/location-ah2sj2pr.js";
7
- import"../chunks/location-vw0q3knq.js";
8
- import"../chunks/location-ywn523ee.js";
9
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-a5hb5213.js";
4
+ import"../chunks/event-feed-4vbpeb73.js";
5
+ import"../chunks/event-feed-a9m1qywq.js";
6
+ import"../chunks/event-feed-kstarh2s.js";
7
+ import"../chunks/event-feed-ytyf0yt4.js";
8
+ import"../chunks/event-feed-tdwf54y9.js";
9
+ import"../chunks/event-feed-smaf4a18.js";
10
10
  export {
11
11
  CredentialHandler2 as CredentialHandler
12
12
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DebugHandler2
3
- } from "../chunks/location-500wz90y.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-jdn2h5zy.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  DebugHandler2 as DebugHandler
11
11
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  EventHandler2
3
- } from "../chunks/location-bwjy9ex5.js";
4
- import"../chunks/location-fvpjvjpp.js";
5
- import"../chunks/location-8pn9ceqg.js";
6
- import"../chunks/location-ah2sj2pr.js";
7
- import"../chunks/location-vw0q3knq.js";
8
- import"../chunks/location-ywn523ee.js";
9
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-d6gdrha6.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
+ import"../chunks/event-feed-arzv3fj6.js";
10
10
  export {
11
11
  EventHandler2 as EventHandler
12
12
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  FormHandler2
3
- } from "../chunks/location-cx7az6y7.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-55yh37zc.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  FormHandler2 as FormHandler
11
11
  };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  FileSystemHandler2
3
- } from "../chunks/location-01ta1g14.js";
4
- import"../chunks/location-8sb6qqpn.js";
5
- import"../chunks/location-8pn9ceqg.js";
6
- import"../chunks/location-ah2sj2pr.js";
7
- import"../chunks/location-vw0q3knq.js";
8
- import"../chunks/location-ywn523ee.js";
9
- import"../chunks/location-smaf4a18.js";
10
- import"../chunks/location-t32e1bbt.js";
3
+ } from "../chunks/event-feed-p7f8d9ed.js";
4
+ import"../chunks/event-feed-8sb6qqpn.js";
5
+ import"../chunks/event-feed-t32e1bbt.js";
6
+ import"../chunks/event-feed-a9m1qywq.js";
7
+ import"../chunks/event-feed-kstarh2s.js";
8
+ import"../chunks/event-feed-ytyf0yt4.js";
9
+ import"../chunks/event-feed-tdwf54y9.js";
10
+ import"../chunks/event-feed-smaf4a18.js";
11
11
  export {
12
12
  FileSystemHandler2 as FileSystemHandler
13
13
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "../chunks/location-w7qv5azt.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-6ptjjp36.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  GenerateHandler2 as GenerateHandler
11
11
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  requireConnectable2,
3
3
  IntegrationHandler2
4
- } from "../chunks/location-2b13xzyt.js";
5
- import"../chunks/location-8pn9ceqg.js";
6
- import"../chunks/location-ah2sj2pr.js";
7
- import"../chunks/location-vw0q3knq.js";
8
- import"../chunks/location-ywn523ee.js";
9
- import"../chunks/location-smaf4a18.js";
4
+ } from "../chunks/event-feed-4vbpeb73.js";
5
+ import"../chunks/event-feed-a9m1qywq.js";
6
+ import"../chunks/event-feed-kstarh2s.js";
7
+ import"../chunks/event-feed-ytyf0yt4.js";
8
+ import"../chunks/event-feed-tdwf54y9.js";
9
+ import"../chunks/event-feed-smaf4a18.js";
10
10
  export {
11
11
  IntegrationHandler2 as IntegrationHandler,
12
12
  requireConnectable2 as requireConnectable
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeJob2
3
- } from "../chunks/location-7ydfwv45.js";
4
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-7ydfwv45.js";
4
+ import"../chunks/event-feed-smaf4a18.js";
5
5
  export {
6
6
  makeJob2 as makeJob
7
7
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  LocationHandler2
3
- } from "../chunks/location-wtrkk6n8.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-1pw2nrsx.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  LocationHandler2 as LocationHandler
11
11
  };
@@ -0,0 +1,61 @@
1
+ import { type WebSocket, WebSocketServer } from "@effect/platform-node-shared/NodeWS";
2
+ import { LocationServiceMap } from "@opencode/core/location-services";
3
+ import { Identity } from "@opencode/core/machine/identity";
4
+ import { Link } from "@opencode/core/machine/link";
5
+ import { Machines } from "@opencode/core/machine/machines";
6
+ import { Global } from "@opencode/util/global";
7
+ import { Context, Effect, Scope } from "effect";
8
+ import { type HttpServerRequest, HttpServerResponse } from "effect/http";
9
+ import { Socket } from "effect/socket";
10
+ import { IncomingMessage } from "node:http";
11
+ /**
12
+ * Only for tests, as `Link.Fixed` is: called with the endpoint's `ws` server when it is made, so a test can count its
13
+ * clients and watch a socket from the home's side. Production never sets it.
14
+ */
15
+ export declare const Watch: Context.Reference<(sockets: WebSocketServer) => void>;
16
+ /** Whether the `machines` flag is on in the server's base configuration, where the video routes read theirs. */
17
+ export declare const machinesEnabled: Effect.Effect<Effect.Effect<boolean, never, never>, never, Global.Service | LocationServiceMap.Service>;
18
+ /**
19
+ * Upgrades a request the HTTP server took off its parser, on the endpoint's own `ws` server, and gives its `ws` socket
20
+ * for the scope. Closing the scope sends the close and waits until the connection is gone, dropping it if the peer has
21
+ * not answered within `CLOSING`: the HTTP response the route returns afterwards must find nothing to be written to.
22
+ */
23
+ export declare const upgrade: (sockets: WebSocketServer, request: IncomingMessage) => Effect.Effect<WebSocket, Link.Closed, Scope.Scope>;
24
+ /** What the carrier and the keepalive use of a `ws` socket. */
25
+ export interface Transport {
26
+ readonly bufferedAmount: number;
27
+ /** Whether reading is stopped because enough already waits unread. Nothing the peer sends is seen meanwhile. */
28
+ readonly isPaused: boolean;
29
+ /** Calls back once the socket has taken the message, or cannot. */
30
+ send(message: Uint8Array, taken: () => void): void;
31
+ ping(): void;
32
+ on(event: "pong" | "ping" | "message", listener: () => void): unknown;
33
+ off(event: "pong" | "ping" | "message", listener: () => void): unknown;
34
+ /** Drops the connection at once, sending nothing more. */
35
+ terminate(): void;
36
+ }
37
+ /**
38
+ * A `ws` socket as the link's carrier, read through Effect's reader. A text message ends it like a closed socket, before
39
+ * anything is decrypted: the caller closes the socket. Inbound memory is bounded by the socket: `ws` refuses a message
40
+ * over `MAX_FRAME` before buffering it, `upgrade` drops the connection on one under `MIN_FRAME`, and the reader stops
41
+ * reading once 64 KiB waits, so what is held is that and what one read of the connection brings, and a read that still
42
+ * brings more than `MAX_WAITING` ends the carrier. `send` returns once the socket has taken the message, so the link's
43
+ * one writer never has more than a frame waiting behind a slow peer, and it drops a socket that takes nothing at all
44
+ * for `STALL`.
45
+ */
46
+ export declare const carrier: (reader: Socket.Reader, transport: Transport) => Link.Carrier;
47
+ /**
48
+ * The idle limit of a served link: pings the peer every `PING` and drops the connection once a whole interval passes
49
+ * with nothing from it. Its answer counts, and so does anything else it sent. While reading is paused none of that can
50
+ * be seen, so an interval is held against the peer only if reading was paused at neither end of it. That covers a
51
+ * pause in between as well: reading pauses on a message, and a message is the peer heard.
52
+ */
53
+ export declare const keepalive: (transport: Transport) => Effect.Effect<void, never, never>;
54
+ /**
55
+ * `machine.link` in the `server.experimental` group: the WebSocket where a machine's link lands. Anyone who can reach
56
+ * the server can open it, and only the link's handshake gets past it. One scope per connection holds the socket and the
57
+ * link's fibers, and closing it is the only way a connection ends, whatever ended it. The first request shaped like a
58
+ * link upgrade reads the flag from the server's base configuration, which loads that configuration once even when the
59
+ * flag is off; only a GET WebSocket upgrade to exactly this path does.
60
+ */
61
+ export declare const makeMachineLink: Effect.Effect<(request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, HttpServerRequest.HttpServerRequest>, never, Scope.Scope | Global.Service | Identity.Service | Machines.Service | LocationServiceMap.Service>;
@@ -0,0 +1,16 @@
1
+ import {
2
+ Watch2,
3
+ machinesEnabled2,
4
+ upgrade2,
5
+ carrier2,
6
+ keepalive2,
7
+ makeMachineLink2
8
+ } from "../chunks/event-feed-syfzpkey.js";
9
+ export {
10
+ Watch2 as Watch,
11
+ carrier2 as carrier,
12
+ keepalive2 as keepalive,
13
+ machinesEnabled2 as machinesEnabled,
14
+ makeMachineLink2 as makeMachineLink,
15
+ upgrade2 as upgrade
16
+ };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  McpHandler2
3
- } from "../chunks/location-9epy4pks.js";
4
- import"../chunks/location-q187pxxd.js";
5
- import"../chunks/location-q4bn6dy8.js";
6
- import"../chunks/location-8pn9ceqg.js";
7
- import"../chunks/location-ah2sj2pr.js";
8
- import"../chunks/location-vw0q3knq.js";
9
- import"../chunks/location-ywn523ee.js";
10
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-rxp97434.js";
4
+ import"../chunks/event-feed-q187pxxd.js";
5
+ import"../chunks/event-feed-a9m1qywq.js";
6
+ import"../chunks/event-feed-kstarh2s.js";
7
+ import"../chunks/event-feed-ytyf0yt4.js";
8
+ import"../chunks/event-feed-tdwf54y9.js";
9
+ import"../chunks/event-feed-smaf4a18.js";
10
+ import"../chunks/event-feed-q4bn6dy8.js";
11
11
  export {
12
12
  McpHandler2 as McpHandler
13
13
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeMediaGet2
3
- } from "../chunks/location-djr0jy89.js";
4
- import"../chunks/location-t32e1bbt.js";
3
+ } from "../chunks/event-feed-djr0jy89.js";
4
+ import"../chunks/event-feed-t32e1bbt.js";
5
5
  export {
6
6
  makeMediaGet2 as makeMediaGet
7
7
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  MessageHandler2
3
- } from "../chunks/location-3svx81fb.js";
4
- import"../chunks/location-xthc02cw.js";
5
- import"../chunks/location-8pn9ceqg.js";
6
- import"../chunks/location-ah2sj2pr.js";
7
- import"../chunks/location-vw0q3knq.js";
8
- import"../chunks/location-ywn523ee.js";
9
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-3cp4agan.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
+ import"../chunks/event-feed-xthc02cw.js";
10
10
  export {
11
11
  MessageHandler2 as MessageHandler
12
12
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  MigrationHandler2
3
- } from "../chunks/location-ghcy4ddk.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-2d18d1yn.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  MigrationHandler2 as MigrationHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ModelHandler2
3
- } from "../chunks/location-ahhjt1wh.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-mnk4yp0a.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  ModelHandler2 as ModelHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  PermissionHandler2
3
- } from "../chunks/location-669rq3zn.js";
4
- import"../chunks/location-8pn9ceqg.js";
5
- import"../chunks/location-ah2sj2pr.js";
6
- import"../chunks/location-vw0q3knq.js";
7
- import"../chunks/location-ywn523ee.js";
8
- import"../chunks/location-smaf4a18.js";
3
+ } from "../chunks/event-feed-cha5bc7v.js";
4
+ import"../chunks/event-feed-a9m1qywq.js";
5
+ import"../chunks/event-feed-kstarh2s.js";
6
+ import"../chunks/event-feed-ytyf0yt4.js";
7
+ import"../chunks/event-feed-tdwf54y9.js";
8
+ import"../chunks/event-feed-smaf4a18.js";
9
9
  export {
10
10
  PermissionHandler2 as PermissionHandler
11
11
  };
@@ -1,3 +1,3 @@
1
1
  import { PersistentPty } from "@opencode/core/persistent-pty";
2
2
  import { PtyTicket } from "@opencode/core/pty/ticket";
3
- export declare const PersistentPtyHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/util/fs-util").FSUtil.Service | import("@opencode/core/database/database").Service | import("@opencode/core/kv").Service | import("@opencode/core/job").Service | import("@opencode/core/location-service-map").Service | PersistentPty.Service | import("@opencode/core/session").Service | import("@opencode/core/blob-store").Service | import("@opencode/core/automation").Service | import("@opencode/core/project").Service | PtyTicket.Service>;
3
+ export declare const PersistentPtyHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental">, never, import("@opencode/util/fs-util").FSUtil.Service | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/core/kv").Service | import("@opencode/core/job").Service | import("@opencode/core/machine/identity").Service | import("@opencode/core/machine/machines").Service | import("@opencode/core/location-service-map").Service | PersistentPty.Service | import("@opencode/core/session").Service | import("@opencode/core/blob-store").Service | import("@opencode/core/automation").Service | import("@opencode/core/project").Service | PtyTicket.Service | (import("@opencode/protocol/middleware/authorization").Authorization | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware)>;