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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{content-headers-qagtm26v.js → media-uri-07adkgh3.js} +4 -4
  4. package/dist/chunks/{content-headers-21qqm769.js → media-uri-0nzx8p8z.js} +12 -12
  5. package/dist/chunks/{content-headers-e6e4kz0w.js → media-uri-0q7s66m2.js} +4 -4
  6. package/dist/chunks/{content-headers-f1tstpac.js → media-uri-0wwbgx8t.js} +23 -27
  7. package/dist/chunks/{content-headers-r6qsbz4y.js → media-uri-0xhepbgy.js} +2 -2
  8. package/dist/chunks/{content-headers-y8sa9sbe.js → media-uri-1qgvww4g.js} +2 -2
  9. package/dist/chunks/{content-headers-8y9zssdg.js → media-uri-20m6qdhp.js} +2 -2
  10. package/dist/chunks/{content-headers-eacgzt6w.js → media-uri-23bsg0bb.js} +1 -1
  11. package/dist/chunks/{content-headers-29nx48hm.js → media-uri-29nx48hm.js} +1 -1
  12. package/dist/chunks/{content-headers-nh63c3gg.js → media-uri-3sdebxp3.js} +3 -3
  13. package/dist/chunks/{content-headers-phgds112.js → media-uri-44ywgpsx.js} +2 -2
  14. package/dist/chunks/{content-headers-ka2mtp6f.js → media-uri-44zzbkrb.js} +2 -2
  15. package/dist/chunks/{content-headers-wjh98yw2.js → media-uri-4a2eztcc.js} +1 -1
  16. package/dist/chunks/{content-headers-maarxay5.js → media-uri-4abt2dvn.js} +4 -4
  17. package/dist/chunks/{content-headers-ar950k47.js → media-uri-4dcft65w.js} +1 -1
  18. package/dist/chunks/{content-headers-cj97w75w.js → media-uri-61xgwjgp.js} +2 -2
  19. package/dist/chunks/{content-headers-6pm6ek88.js → media-uri-6pm6ek88.js} +1 -1
  20. package/dist/chunks/{content-headers-g9qy0kb1.js → media-uri-7qa33b41.js} +2 -2
  21. package/dist/chunks/{content-headers-8sb6qqpn.js → media-uri-8sb6qqpn.js} +1 -1
  22. package/dist/chunks/{content-headers-ddhjwr2w.js → media-uri-9bpmwzvq.js} +2 -2
  23. package/dist/chunks/{content-headers-ehyp3zqd.js → media-uri-aexh791j.js} +1 -1
  24. package/dist/chunks/{content-headers-8xffg4dw.js → media-uri-d77v3xnm.js} +4 -4
  25. package/dist/chunks/{content-headers-djr0jy89.js → media-uri-djr0jy89.js} +1 -1
  26. package/dist/chunks/{content-headers-7r996r31.js → media-uri-dxh72p2c.js} +2 -2
  27. package/dist/chunks/{content-headers-1nsytpdt.js → media-uri-ej8k6nk6.js} +4 -4
  28. package/dist/chunks/{content-headers-df03ef4a.js → media-uri-ezydv7x1.js} +2 -2
  29. package/dist/chunks/{content-headers-htk4x1jk.js → media-uri-g1wjh7qe.js} +2 -2
  30. package/dist/chunks/{content-headers-50kbksvb.js → media-uri-g23ffrnz.js} +2 -2
  31. package/dist/chunks/{content-headers-hs3dbf8w.js → media-uri-gb9bc2v4.js} +10 -10
  32. package/dist/chunks/{content-headers-esvnag9e.js → media-uri-gk96xf2h.js} +2 -2
  33. package/dist/chunks/{content-headers-5ky8bme5.js → media-uri-hj8z77wc.js} +3 -3
  34. package/dist/chunks/{content-headers-myqk22k5.js → media-uri-hmwn16zp.js} +2 -2
  35. package/dist/chunks/{content-headers-j4at0y5c.js → media-uri-j4at0y5c.js} +1 -1
  36. package/dist/chunks/{content-headers-rg932pab.js → media-uri-j4hk2st6.js} +2 -2
  37. package/dist/chunks/{content-headers-ca564221.js → media-uri-jy2ammbg.js} +1 -1
  38. package/dist/chunks/{content-headers-6n31atta.js → media-uri-katdrqa2.js} +37 -37
  39. package/dist/chunks/{content-headers-r682v2h3.js → media-uri-kpw06y11.js} +2 -2
  40. package/dist/chunks/{content-headers-ykr4m3zx.js → media-uri-kxxxzk43.js} +1 -1
  41. package/dist/chunks/{content-headers-3te71694.js → media-uri-megkv1kf.js} +7 -7
  42. package/dist/chunks/{content-headers-c6ktqe09.js → media-uri-mf0jv62d.js} +2 -2
  43. package/dist/chunks/{content-headers-fmkwyf76.js → media-uri-mj1ewmp1.js} +9 -9
  44. package/dist/chunks/{content-headers-z0v7xmc8.js → media-uri-nfv0r61b.js} +2 -2
  45. package/dist/chunks/media-uri-njmm6d43.js +43 -0
  46. package/dist/chunks/{content-headers-6anyjjh1.js → media-uri-npqc081y.js} +1 -1
  47. package/dist/chunks/{content-headers-jhs8rzvk.js → media-uri-p8x80wn6.js} +3 -3
  48. package/dist/chunks/{content-headers-f412ctvv.js → media-uri-r3c5pb1c.js} +2 -2
  49. package/dist/chunks/{content-headers-3w2mqh28.js → media-uri-sar77n3p.js} +2 -2
  50. package/dist/chunks/{content-headers-z80wqx10.js → media-uri-sh3ejx5x.js} +1 -1
  51. package/dist/chunks/{content-headers-javgytnb.js → media-uri-sqfq92mf.js} +2 -2
  52. package/dist/chunks/{content-headers-br4x4prt.js → media-uri-stx1bw5w.js} +3 -3
  53. package/dist/chunks/{content-headers-t32e1bbt.js → media-uri-t32e1bbt.js} +1 -1
  54. package/dist/chunks/{content-headers-mq10h3bj.js → media-uri-t6q8af35.js} +4 -4
  55. package/dist/chunks/{content-headers-nfrn9zxf.js → media-uri-t6ryhghb.js} +2 -2
  56. package/dist/chunks/{content-headers-8a8vhjqy.js → media-uri-tg713d3t.js} +8 -8
  57. package/dist/chunks/{content-headers-mzs0n5xz.js → media-uri-vb61dkrm.js} +8 -8
  58. package/dist/chunks/{content-headers-x2qy7jg1.js → media-uri-x2qy7jg1.js} +1 -1
  59. package/dist/chunks/{content-headers-v60tcbt5.js → media-uri-xw05m515.js} +3 -3
  60. package/dist/content-headers.js +1 -1
  61. package/dist/cors.js +1 -1
  62. package/dist/event-feed.js +7 -7
  63. package/dist/fetch.d.ts +22 -11
  64. package/dist/fetch.js +70 -66
  65. package/dist/handlers/agent.js +6 -6
  66. package/dist/handlers/artifact.js +3 -3
  67. package/dist/handlers/automation.js +2 -2
  68. package/dist/handlers/blob.js +3 -3
  69. package/dist/handlers/command.js +6 -6
  70. package/dist/handlers/config.js +6 -6
  71. package/dist/handlers/credential.js +7 -7
  72. package/dist/handlers/debug.js +6 -6
  73. package/dist/handlers/event.js +7 -7
  74. package/dist/handlers/experimental/browser-tunnel.js +4 -4
  75. package/dist/handlers/flag.js +6 -6
  76. package/dist/handlers/form.js +6 -6
  77. package/dist/handlers/fs.js +8 -8
  78. package/dist/handlers/generate.js +6 -6
  79. package/dist/handlers/integration.js +6 -6
  80. package/dist/handlers/job.js +2 -2
  81. package/dist/handlers/location.js +6 -6
  82. package/dist/handlers/machine.js +1 -1
  83. package/dist/handlers/mcp.js +8 -8
  84. package/dist/handlers/media.js +2 -2
  85. package/dist/handlers/message.js +7 -7
  86. package/dist/handlers/migration.js +6 -6
  87. package/dist/handlers/model.js +6 -6
  88. package/dist/handlers/permission.js +6 -6
  89. package/dist/handlers/persistent-pty.js +20 -20
  90. package/dist/handlers/plugin.js +6 -6
  91. package/dist/handlers/project.js +6 -6
  92. package/dist/handlers/provider.js +6 -6
  93. package/dist/handlers/pty-socket.js +1 -1
  94. package/dist/handlers/pty.js +8 -8
  95. package/dist/handlers/push.js +1 -1
  96. package/dist/handlers/reference.js +6 -6
  97. package/dist/handlers/rpc.js +6 -6
  98. package/dist/handlers/server.js +9 -9
  99. package/dist/handlers/session-error.js +1 -1
  100. package/dist/handlers/session.js +7 -7
  101. package/dist/handlers/shell.js +6 -6
  102. package/dist/handlers/skill.js +6 -6
  103. package/dist/handlers/space.js +2 -2
  104. package/dist/handlers/usage.js +6 -6
  105. package/dist/handlers/vcs.js +6 -6
  106. package/dist/handlers/voice.js +6 -6
  107. package/dist/handlers/websearch.js +6 -6
  108. package/dist/handlers/worktree.js +6 -6
  109. package/dist/handlers.js +58 -58
  110. package/dist/location.js +4 -4
  111. package/dist/media-uri.js +1 -1
  112. package/dist/middleware/authorization.js +2 -2
  113. package/dist/middleware/defect-response.js +1 -1
  114. package/dist/middleware/form-location.js +3 -3
  115. package/dist/middleware/schema-error.js +1 -1
  116. package/dist/middleware/session-location.js +3 -3
  117. package/dist/options.d.ts +69 -2
  118. package/dist/options.js +14 -6
  119. package/dist/pairing.js +5 -5
  120. package/dist/process.d.ts +5 -5
  121. package/dist/process.js +68 -68
  122. package/dist/range.js +1 -1
  123. package/dist/request-site.js +2 -2
  124. package/dist/request-tracing.js +1 -1
  125. package/dist/routes.d.ts +8 -2
  126. package/dist/routes.js +62 -62
  127. package/dist/server-info.js +5 -5
  128. package/dist/service-status.js +3 -3
  129. package/dist/space-store.js +5 -5
  130. package/dist/workerd.js +66 -66
  131. package/package.json +8 -8
  132. package/dist/chunks/content-headers-1kqc9805.js +0 -37
  133. /package/dist/chunks/{content-headers-017ycvbx.js → media-uri-017ycvbx.js} +0 -0
  134. /package/dist/chunks/{content-headers-9rqn6x4v.js → media-uri-9rqn6x4v.js} +0 -0
  135. /package/dist/chunks/{content-headers-bd8755ek.js → media-uri-bd8755ek.js} +0 -0
  136. /package/dist/chunks/{content-headers-n26yr6pw.js → media-uri-n26yr6pw.js} +0 -0
  137. /package/dist/chunks/{content-headers-q187pxxd.js → media-uri-q187pxxd.js} +0 -0
  138. /package/dist/chunks/{content-headers-q4bn6dy8.js → media-uri-q4bn6dy8.js} +0 -0
  139. /package/dist/chunks/{content-headers-qpnw2qd1.js → media-uri-qpnw2qd1.js} +0 -0
  140. /package/dist/chunks/{content-headers-rqgv9x42.js → media-uri-rqgv9x42.js} +0 -0
  141. /package/dist/chunks/{content-headers-xthc02cw.js → media-uri-xthc02cw.js} +0 -0
  142. /package/dist/chunks/{content-headers-yc7nft6q.js → media-uri-yc7nft6q.js} +0 -0
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/content-headers-jhs8rzvk.js";
4
- import"./chunks/content-headers-ca564221.js";
5
- import"./chunks/content-headers-ehyp3zqd.js";
6
- import"./chunks/content-headers-br4x4prt.js";
7
- import"./chunks/content-headers-rqgv9x42.js";
3
+ } from "./chunks/media-uri-p8x80wn6.js";
4
+ import"./chunks/media-uri-jy2ammbg.js";
5
+ import"./chunks/media-uri-aexh791j.js";
6
+ import"./chunks/media-uri-stx1bw5w.js";
7
+ import"./chunks/media-uri-rqgv9x42.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/content-headers-j4at0y5c.js";
10
+ } from "./chunks/media-uri-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -4,16 +4,16 @@ import {
4
4
  missingMessage2,
5
5
  failedMessageDecode2,
6
6
  failedSnapshot2
7
- } from "./content-headers-rqgv9x42.js";
7
+ } from "./media-uri-rqgv9x42.js";
8
8
  import {
9
9
  locationErrors2
10
- } from "./content-headers-br4x4prt.js";
10
+ } from "./media-uri-stx1bw5w.js";
11
11
  import {
12
12
  Api2
13
- } from "./content-headers-jhs8rzvk.js";
13
+ } from "./media-uri-p8x80wn6.js";
14
14
  import {
15
15
  wantsMediaRefs2
16
- } from "./content-headers-xthc02cw.js";
16
+ } from "./media-uri-xthc02cw.js";
17
17
 
18
18
  // src/handlers/session.ts
19
19
  import { Instance } from "@opencode/core/instance/service";
@@ -1,41 +1,41 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./media-uri-p8x80wn6.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./content-headers-q4bn6dy8.js";
7
+ } from "./media-uri-q4bn6dy8.js";
8
8
  import {
9
9
  makeArtifact2
10
- } from "./content-headers-javgytnb.js";
10
+ } from "./media-uri-sqfq92mf.js";
11
11
  import {
12
12
  makeBlobGet2
13
- } from "./content-headers-50kbksvb.js";
13
+ } from "./media-uri-g23ffrnz.js";
14
14
  import {
15
15
  makeBrowserTunnel2
16
- } from "./content-headers-ka2mtp6f.js";
16
+ } from "./media-uri-44zzbkrb.js";
17
17
  import {
18
18
  makeAutomation2
19
- } from "./content-headers-6pm6ek88.js";
19
+ } from "./media-uri-6pm6ek88.js";
20
20
  import {
21
21
  makeJob2
22
- } from "./content-headers-x2qy7jg1.js";
22
+ } from "./media-uri-x2qy7jg1.js";
23
23
  import {
24
24
  makeMachineLink2,
25
25
  makeMachine2
26
- } from "./content-headers-017ycvbx.js";
26
+ } from "./media-uri-017ycvbx.js";
27
27
  import {
28
28
  makeMediaGet2
29
- } from "./content-headers-djr0jy89.js";
29
+ } from "./media-uri-djr0jy89.js";
30
30
  import {
31
31
  makePush2
32
- } from "./content-headers-qpnw2qd1.js";
32
+ } from "./media-uri-qpnw2qd1.js";
33
33
  import {
34
34
  makeSpace2
35
- } from "./content-headers-v60tcbt5.js";
35
+ } from "./media-uri-xw05m515.js";
36
36
  import {
37
37
  runPtySocket2
38
- } from "./content-headers-q187pxxd.js";
38
+ } from "./media-uri-q187pxxd.js";
39
39
 
40
40
  // src/handlers/persistent-pty.ts
41
41
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./content-headers-9rqn6x4v.js";
3
+ } from "./media-uri-9rqn6x4v.js";
4
4
 
5
5
  // src/service-status.ts
6
6
  var exports_service_status = {};
7
7
  __export(exports_service_status, {
8
8
  Status: () => exports_service_status,
9
- make: () => make3
9
+ make: () => make4
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make3 = Effect.fnUntraced(function* (options = {}) {
12
+ var make4 = Effect.fnUntraced(function* (options = {}) {
13
13
  const current = yield* Ref.make(options.initial ?? { type: "starting" });
14
14
  const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
15
15
  return {
@@ -20,4 +20,4 @@ var make3 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make3, exports_service_status };
23
+ export { make4, exports_service_status };
@@ -1,42 +1,42 @@
1
1
  import {
2
- layer4
3
- } from "./content-headers-br4x4prt.js";
2
+ layer2
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./content-headers-ca564221.js";
6
+ } from "./media-uri-jy2ammbg.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./content-headers-ehyp3zqd.js";
9
+ } from "./media-uri-aexh791j.js";
10
10
  import {
11
11
  Api2
12
- } from "./content-headers-jhs8rzvk.js";
12
+ } from "./media-uri-p8x80wn6.js";
13
13
  import {
14
14
  Config2
15
- } from "./content-headers-j4at0y5c.js";
15
+ } from "./media-uri-j4at0y5c.js";
16
16
  import {
17
- node3
18
- } from "./content-headers-fmkwyf76.js";
17
+ node2
18
+ } from "./media-uri-mj1ewmp1.js";
19
19
  import {
20
20
  CorsConfig2
21
- } from "./content-headers-q4bn6dy8.js";
21
+ } from "./media-uri-q4bn6dy8.js";
22
22
  import {
23
- layer3
24
- } from "./content-headers-3te71694.js";
23
+ layer4
24
+ } from "./media-uri-megkv1kf.js";
25
25
  import {
26
- node2
27
- } from "./content-headers-mzs0n5xz.js";
26
+ node3
27
+ } from "./media-uri-vb61dkrm.js";
28
28
  import {
29
29
  handlers2
30
- } from "./content-headers-6n31atta.js";
30
+ } from "./media-uri-katdrqa2.js";
31
31
  import {
32
32
  authorizationLayer2
33
- } from "./content-headers-29nx48hm.js";
33
+ } from "./media-uri-29nx48hm.js";
34
34
  import {
35
35
  schemaErrorLayer2
36
- } from "./content-headers-bd8755ek.js";
36
+ } from "./media-uri-bd8755ek.js";
37
37
  import {
38
38
  defectResponseLayer2
39
- } from "./content-headers-n26yr6pw.js";
39
+ } from "./media-uri-n26yr6pw.js";
40
40
 
41
41
  // src/routes.ts
42
42
  import { Database } from "@opencode/core/database/database";
@@ -120,8 +120,8 @@ var applicationServiceNodes = [
120
120
  BrowserTunnelGateway.node,
121
121
  Credential.node,
122
122
  WellKnown.node,
123
- node2,
124
123
  node3,
124
+ node2,
125
125
  LocationServiceMap.node,
126
126
  LocationActivity.node,
127
127
  SessionRestart.node,
@@ -142,9 +142,9 @@ function createRoutes2(options = {}, serviceURLs = () => [], overrides = []) {
142
142
  return makeRoutes(options.password ? Option.some(options.password) : Option.none(), options, serviceURLs, overrides);
143
143
  }
144
144
  function createEmbeddedRoutes2(options = {}, overrides = [], instances) {
145
- return makeRoutes(Option.none(), options, () => [], overrides, instances);
145
+ return makeRoutes(Option.none(), options, () => [], instances ? [Instance.node.replace(instances), ...overrides] : overrides);
146
146
  }
147
- function makeRoutes(password, options, serviceURLs, overrides, instances) {
147
+ function makeRoutes(password, options, serviceURLs, overrides) {
148
148
  const auth = Config2.configLayer({ password });
149
149
  const credential = Option.map(password, (value) => `Basic ${Base64.encode(`opencode:${value}`)}`);
150
150
  let internal;
@@ -191,11 +191,7 @@ function makeRoutes(password, options, serviceURLs, overrides, instances) {
191
191
  }
192
192
  }))
193
193
  ];
194
- const build = (overrides) => AppNodeBuilder.build(applicationServices, [
195
- ...standard,
196
- ...instances ? [Instance.node.replace(instances)] : [],
197
- ...overrides
198
- ]);
194
+ const build = (overrides) => AppNodeBuilder.build(applicationServices, [...standard, ...overrides]);
199
195
  const serviceLayer = options.simulation ? Layer.unwrap(Effect.gen(function* () {
200
196
  const { simulationReplacements } = yield* Effect.promise(() => import("@opencode/simulation/backend"));
201
197
  const simulation = yield* simulationReplacements({ version: App.make(options.app).version });
@@ -203,8 +199,8 @@ function makeRoutes(password, options, serviceURLs, overrides, instances) {
203
199
  })) : build(overrides);
204
200
  return serviceLayer.pipe(Layer.flatMap((context) => {
205
201
  const services = Layer.succeedContext(context);
206
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer3(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
207
- const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.merge(defectResponseLayer2), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer.pipe(Layer.provide(Layer.succeed(HttpRouter.RouterConfig)({ maxParamLength: 512 })))), Layer.tap((context) => Effect.sync(() => {
202
+ const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer4(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
203
+ const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer2), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.merge(defectResponseLayer2), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer.pipe(Layer.provide(Layer.succeed(HttpRouter.RouterConfig)({ maxParamLength: 512 })))), Layer.tap((context) => Effect.sync(() => {
208
204
  internal = Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpEffect.toWebHandlerWith(context));
209
205
  })));
210
206
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/flag.ts
9
9
  import { Flag } from "@opencode/core/flag";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/model.ts
9
9
  import { Model } from "@opencode/core/model";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.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 "./content-headers-jhs8rzvk.js";
3
+ } from "./media-uri-p8x80wn6.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./content-headers-j4at0y5c.js";
7
+ } from "./media-uri-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./content-headers-rqgv9x42.js";
4
+ } from "./media-uri-rqgv9x42.js";
5
5
  import {
6
6
  Api2
7
- } from "./content-headers-jhs8rzvk.js";
7
+ } from "./media-uri-p8x80wn6.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./content-headers-xthc02cw.js";
10
+ } from "./media-uri-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
  locationErrors2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/voice.ts
9
9
  import { Location } from "@opencode/core/location";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CorsConfig2,
3
3
  isAllowedRequestOrigin2
4
- } from "./content-headers-q4bn6dy8.js";
4
+ } from "./media-uri-q4bn6dy8.js";
5
5
  import {
6
6
  locationErrors2,
7
7
  requestRef2
8
- } from "./content-headers-br4x4prt.js";
8
+ } from "./media-uri-stx1bw5w.js";
9
9
 
10
10
  // src/handlers/experimental/browser-tunnel.ts
11
11
  import { NodeHttpServerRequest } from "@effect/platform-node";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./media-uri-p8x80wn6.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
  import {
8
8
  download2
9
- } from "./content-headers-t32e1bbt.js";
9
+ } from "./media-uri-t32e1bbt.js";
10
10
  import {
11
11
  parse2
12
- } from "./content-headers-8sb6qqpn.js";
12
+ } from "./media-uri-8sb6qqpn.js";
13
13
 
14
14
  // src/handlers/fs.ts
15
15
  import { Environment } from "@opencode/core/environment/index";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./media-uri-p8x80wn6.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./content-headers-rqgv9x42.js";
3
+ } from "./media-uri-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 "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.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
  __export
3
- } from "./content-headers-9rqn6x4v.js";
3
+ } from "./media-uri-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 "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/usage.ts
9
9
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./content-headers-br4x4prt.js";
4
+ } from "./media-uri-stx1bw5w.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./content-headers-jhs8rzvk.js";
3
+ } from "./media-uri-p8x80wn6.js";
4
4
  import {
5
- Service2,
5
+ Service4,
6
6
  frame2
7
- } from "./content-headers-hs3dbf8w.js";
7
+ } from "./media-uri-gb9bc2v4.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
12
12
  import { HttpServerResponse } from "effect/http";
13
13
  import { HttpApiBuilder } from "effect/http-api";
14
14
  var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
15
- const feed = yield* Service2;
15
+ const feed = yield* Service4;
16
16
  return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
17
17
  const output = Stream.unwrap(feed.subscribe(ctx.query.types).pipe(Effect.map((subscription) => Stream.make(frame2({
18
18
  id: Event.ID.create(),
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CONTENT_SECURITY_POLICY2,
3
3
  disposition2
4
- } from "./content-headers-t32e1bbt.js";
4
+ } from "./media-uri-t32e1bbt.js";
5
5
 
6
6
  // src/handlers/media.ts
7
7
  import { Database } from "@opencode/core/database/database";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./content-headers-br4x4prt.js";
5
+ } from "./media-uri-stx1bw5w.js";
6
6
  import {
7
7
  Api2
8
- } from "./content-headers-jhs8rzvk.js";
8
+ } from "./media-uri-p8x80wn6.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./content-headers-q4bn6dy8.js";
12
+ } from "./media-uri-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./content-headers-q187pxxd.js";
16
+ } from "./media-uri-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 "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/websearch.ts
9
9
  import { WebSearch } from "@opencode/core/websearch";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  download2
3
- } from "./content-headers-t32e1bbt.js";
3
+ } from "./media-uri-t32e1bbt.js";
4
4
  import {
5
5
  parse2
6
- } from "./content-headers-8sb6qqpn.js";
6
+ } from "./media-uri-8sb6qqpn.js";
7
7
 
8
8
  // src/handlers/blob.ts
9
9
  import { BlobStore } from "@opencode/core/blob-store";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  __export
3
- } from "./content-headers-9rqn6x4v.js";
3
+ } from "./media-uri-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service2,
10
+ Service: () => Service4,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer2,
15
- make: () => make4
14
+ layer: () => layer3,
15
+ make: () => make3
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
18
18
  import { Event } from "@opencode/schema/event";
@@ -30,14 +30,14 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
30
30
  }) {
31
31
  }
32
32
 
33
- class Service2 extends Context.Service()("@opencode/server/EventFeed") {
33
+ class Service4 extends Context.Service()("@opencode/server/EventFeed") {
34
34
  }
35
35
  function frame2(event) {
36
36
  return `data: ${JSON.stringify(event)}
37
37
 
38
38
  `;
39
39
  }
40
- var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
40
+ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
41
41
  const capacity = options?.capacity ?? SubscriberCapacity2;
42
42
  const render = options?.encode ?? frame2;
43
43
  const subscribers = new Map;
@@ -75,7 +75,7 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
75
75
  });
76
76
  const unsubscribe = yield* observe(publish);
77
77
  yield* Effect.addFinalizer(() => unsubscribe);
78
- return Service2.of({
78
+ return Service4.of({
79
79
  subscribe: (types) => Effect.gen(function* () {
80
80
  const queue = yield* Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.set(queue, types?.length ? new Set(types) : undefined)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid));
81
81
  const id = crypto.randomUUID();
@@ -93,9 +93,9 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
93
93
  })
94
94
  });
95
95
  });
96
- var layer2 = (...extensions) => Layer.effect(Service2, Effect.gen(function* () {
96
+ var layer3 = (...extensions) => Layer.effect(Service4, Effect.gen(function* () {
97
97
  const bus = yield* Bus.Service;
98
- return yield* make4(bus.listen, { extensions: yield* Effect.all(extensions) });
98
+ return yield* make3(bus.listen, { extensions: yield* Effect.all(extensions) });
99
99
  }));
100
100
 
101
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
101
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make3, layer3, exports_event_feed };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./content-headers-br4x4prt.js";
3
+ } from "./media-uri-stx1bw5w.js";
4
4
  import {
5
5
  Api2
6
- } from "./content-headers-jhs8rzvk.js";
6
+ } from "./media-uri-p8x80wn6.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";