@opencode/server 0.0.0-dev-566 → 0.0.0-dev-572

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 (114) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{media-uri-059rbh9c.js → handlers-059rbh9c.js} +1 -1
  4. package/dist/chunks/{media-uri-0tg0yqad.js → handlers-05c5061t.js} +1 -1
  5. package/dist/chunks/{media-uri-3j7dhvn1.js → handlers-0e81et3m.js} +3 -3
  6. package/dist/chunks/{media-uri-9grgz57j.js → handlers-0ey2b45p.js} +2 -2
  7. package/dist/chunks/{media-uri-02a60aws.js → handlers-0fv515j7.js} +2 -2
  8. package/dist/chunks/{media-uri-y088ynta.js → handlers-0j6zxxn8.js} +2 -2
  9. package/dist/chunks/{media-uri-4k36hr0g.js → handlers-0n4tjm17.js} +1 -1
  10. package/dist/chunks/{media-uri-vs70b87e.js → handlers-2wexxjwf.js} +2 -2
  11. package/dist/chunks/{media-uri-39nnfjx1.js → handlers-39nnfjx1.js} +1 -1
  12. package/dist/chunks/{media-uri-3te71694.js → handlers-3te71694.js} +1 -1
  13. package/dist/chunks/{media-uri-w3zqyffx.js → handlers-4p2y0qs3.js} +2 -2
  14. package/dist/chunks/{media-uri-gymtz25n.js → handlers-50bbk3b2.js} +3 -3
  15. package/dist/chunks/{media-uri-78rcgzsr.js → handlers-78rcgzsr.js} +1 -1
  16. package/dist/chunks/{media-uri-7b9xm1qg.js → handlers-7b9xm1qg.js} +1 -1
  17. package/dist/chunks/{media-uri-zpezcvb8.js → handlers-7nb2rv11.js} +4 -4
  18. package/dist/chunks/{media-uri-dewwmefa.js → handlers-861wfsmy.js} +1 -1
  19. package/dist/chunks/{media-uri-wxp1se1k.js → handlers-89egwzf3.js} +2 -2
  20. package/dist/chunks/{media-uri-rhyt0p0x.js → handlers-9grnt8dc.js} +2 -2
  21. package/dist/chunks/{media-uri-w841zcb3.js → handlers-ap1t95t8.js} +3 -3
  22. package/dist/chunks/{media-uri-x74w7e1f.js → handlers-b3bmdkga.js} +1 -1
  23. package/dist/chunks/{media-uri-yqy45vey.js → handlers-b4mqtccx.js} +2 -2
  24. package/dist/chunks/{media-uri-xp2nc168.js → handlers-d4534456.js} +4 -4
  25. package/dist/chunks/{media-uri-4jn53ynt.js → handlers-dx89xydc.js} +2 -2
  26. package/dist/chunks/{media-uri-07m4906f.js → handlers-et00mhwf.js} +2 -2
  27. package/dist/chunks/{media-uri-5rj5qfk5.js → handlers-f8r9p2vr.js} +2 -2
  28. package/dist/chunks/{media-uri-wecgp61r.js → handlers-fvpjvjpp.js} +7 -7
  29. package/dist/chunks/{media-uri-0n72fzdh.js → handlers-fwdg5x6y.js} +7 -7
  30. package/dist/chunks/{media-uri-txb93cxt.js → handlers-h1thjy6x.js} +2 -2
  31. package/dist/chunks/{media-uri-ddnay6e1.js → handlers-htyf2qs7.js} +1 -1
  32. package/dist/chunks/{media-uri-g3qjtfrt.js → handlers-hx8bsq9d.js} +1 -1
  33. package/dist/chunks/{media-uri-j4at0y5c.js → handlers-j4at0y5c.js} +1 -1
  34. package/dist/chunks/{media-uri-a91x6bkq.js → handlers-jjvpqmx6.js} +4 -4
  35. package/dist/chunks/{media-uri-pqe2eqpc.js → handlers-jydxnq20.js} +4 -4
  36. package/dist/chunks/{media-uri-wrt9gvm9.js → handlers-kg0ybx4v.js} +3 -3
  37. package/dist/chunks/{media-uri-kqr36gas.js → handlers-mzs0n5xz.js} +7 -7
  38. package/dist/chunks/{media-uri-22dr3gtt.js → handlers-n1zdbfv7.js} +2 -2
  39. package/dist/chunks/{media-uri-y91dtbe4.js → handlers-nz17qv97.js} +2 -2
  40. package/dist/chunks/{media-uri-vtywfyp2.js → handlers-p09gwn03.js} +4 -4
  41. package/dist/chunks/{media-uri-bstqs6fb.js → handlers-q44yktpv.js} +2 -2
  42. package/dist/chunks/{media-uri-pj735m3z.js → handlers-s62wjkvx.js} +2 -2
  43. package/dist/chunks/{media-uri-6h0nmx1z.js → handlers-s9tkswmw.js} +2 -2
  44. package/dist/chunks/{media-uri-6941fsxg.js → handlers-sbpj35wn.js} +35 -35
  45. package/dist/chunks/{media-uri-jyk0ayfs.js → handlers-v8aqacn3.js} +2 -2
  46. package/dist/chunks/{media-uri-8jrvh9sp.js → handlers-vbgqk0mr.js} +2 -2
  47. package/dist/chunks/{media-uri-9w99npj6.js → handlers-x4b2rtcb.js} +1 -1
  48. package/dist/chunks/{media-uri-53v6qpaq.js → handlers-yg3b5pe6.js} +13 -13
  49. package/dist/chunks/{media-uri-sqtjgs4d.js → handlers-z2ndp6vh.js} +6 -6
  50. package/dist/chunks/{media-uri-dpm5c7yf.js → handlers-zbe9jfhy.js} +1 -1
  51. package/dist/cors.js +1 -1
  52. package/dist/event-feed.js +5 -5
  53. package/dist/fetch.js +54 -54
  54. package/dist/handlers/agent.js +6 -6
  55. package/dist/handlers/artifact.js +3 -3
  56. package/dist/handlers/command.js +6 -6
  57. package/dist/handlers/config.js +6 -6
  58. package/dist/handlers/credential.js +7 -7
  59. package/dist/handlers/debug.js +6 -6
  60. package/dist/handlers/event.js +7 -7
  61. package/dist/handlers/form.js +6 -6
  62. package/dist/handlers/fs.js +6 -6
  63. package/dist/handlers/generate.js +6 -6
  64. package/dist/handlers/integration.js +6 -6
  65. package/dist/handlers/job.js +2 -2
  66. package/dist/handlers/location.js +6 -6
  67. package/dist/handlers/mcp.js +8 -8
  68. package/dist/handlers/media.js +1 -1
  69. package/dist/handlers/message.js +7 -7
  70. package/dist/handlers/migration.js +6 -6
  71. package/dist/handlers/model.js +6 -6
  72. package/dist/handlers/permission.js +6 -6
  73. package/dist/handlers/persistent-pty.js +12 -12
  74. package/dist/handlers/plugin.js +6 -6
  75. package/dist/handlers/project.js +6 -6
  76. package/dist/handlers/provider.js +6 -6
  77. package/dist/handlers/pty-socket.js +1 -1
  78. package/dist/handlers/pty.js +8 -8
  79. package/dist/handlers/reference.js +6 -6
  80. package/dist/handlers/rpc.js +6 -6
  81. package/dist/handlers/schedule.js +2 -2
  82. package/dist/handlers/server.js +9 -9
  83. package/dist/handlers/session-error.js +1 -1
  84. package/dist/handlers/session.js +7 -7
  85. package/dist/handlers/shell.js +6 -6
  86. package/dist/handlers/skill.js +6 -6
  87. package/dist/handlers/usage.js +6 -6
  88. package/dist/handlers/vcs.js +6 -6
  89. package/dist/handlers/voice.js +6 -6
  90. package/dist/handlers/websearch.js +6 -6
  91. package/dist/handlers/worktree.js +6 -6
  92. package/dist/handlers.js +49 -49
  93. package/dist/location.js +4 -4
  94. package/dist/media-uri.js +1 -1
  95. package/dist/middleware/authorization.js +2 -2
  96. package/dist/middleware/form-location.js +3 -3
  97. package/dist/middleware/schema-error.js +1 -1
  98. package/dist/middleware/session-location.js +3 -3
  99. package/dist/pairing.js +3 -3
  100. package/dist/process.js +55 -55
  101. package/dist/request-tracing.js +1 -1
  102. package/dist/routes.js +52 -52
  103. package/dist/server-info.js +1 -1
  104. package/dist/service-status.js +1 -1
  105. package/dist/workerd.js +55 -55
  106. package/package.json +8 -8
  107. /package/dist/chunks/{media-uri-9rqn6x4v.js → handlers-9rqn6x4v.js} +0 -0
  108. /package/dist/chunks/{media-uri-bd8755ek.js → handlers-bd8755ek.js} +0 -0
  109. /package/dist/chunks/{media-uri-n321d8vm.js → handlers-n321d8vm.js} +0 -0
  110. /package/dist/chunks/{media-uri-q187pxxd.js → handlers-q187pxxd.js} +0 -0
  111. /package/dist/chunks/{media-uri-q4bn6dy8.js → handlers-q4bn6dy8.js} +0 -0
  112. /package/dist/chunks/{media-uri-smaf4a18.js → handlers-smaf4a18.js} +0 -0
  113. /package/dist/chunks/{media-uri-xthc02cw.js → handlers-xthc02cw.js} +0 -0
  114. /package/dist/chunks/{media-uri-yc7nft6q.js → handlers-yc7nft6q.js} +0 -0
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/media-uri-3j7dhvn1.js";
4
- import"./chunks/media-uri-x74w7e1f.js";
5
- import"./chunks/media-uri-ddnay6e1.js";
6
- import"./chunks/media-uri-gymtz25n.js";
7
- import"./chunks/media-uri-smaf4a18.js";
3
+ } from "./chunks/handlers-0e81et3m.js";
4
+ import"./chunks/handlers-b3bmdkga.js";
5
+ import"./chunks/handlers-htyf2qs7.js";
6
+ import"./chunks/handlers-50bbk3b2.js";
7
+ import"./chunks/handlers-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/media-uri-j4at0y5c.js";
10
+ } from "./chunks/handlers-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./media-uri-smaf4a18.js";
3
+ } from "./handlers-smaf4a18.js";
4
4
 
5
5
  // src/handlers/schedule.ts
6
6
  import { Permission } from "@opencode/core/permission";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-3j7dhvn1.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./media-uri-gymtz25n.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./media-uri-ddnay6e1.js";
6
+ } from "./handlers-htyf2qs7.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./media-uri-x74w7e1f.js";
9
+ } from "./handlers-b3bmdkga.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gymtz25n.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-3j7dhvn1.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./media-uri-smaf4a18.js";
3
+ } from "./handlers-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  awaitPlugins2,
7
7
  response2,
8
8
  requestRef2
9
- } from "./media-uri-gymtz25n.js";
9
+ } from "./handlers-50bbk3b2.js";
10
10
 
11
11
  // src/handlers/artifact.ts
12
12
  import { Artifact } from "@opencode/core/artifact";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./media-uri-gymtz25n.js";
4
+ } from "./handlers-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-3j7dhvn1.js";
7
+ } from "./handlers-0e81et3m.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-3j7dhvn1.js";
3
+ } from "./handlers-0e81et3m.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
  Api2
3
- } from "./media-uri-3j7dhvn1.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
  import {
5
5
  requireConnectable2
6
- } from "./media-uri-22dr3gtt.js";
6
+ } from "./handlers-n1zdbfv7.js";
7
7
 
8
8
  // src/handlers/credential.ts
9
9
  import { Credential } from "@opencode/core/credential";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./handlers-9rqn6x4v.js";
4
4
 
5
5
  // src/service-status.ts
6
6
  var exports_service_status = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./handlers-9rqn6x4v.js";
4
4
 
5
5
  // src/server-info.ts
6
6
  var exports_server_info = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-gymtz25n.js";
4
+ } from "./handlers-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-3j7dhvn1.js";
7
+ } from "./handlers-0e81et3m.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./media-uri-smaf4a18.js";
3
+ } from "./handlers-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -59,7 +59,7 @@ function decode(input) {
59
59
  return input;
60
60
  }
61
61
  }
62
- var layer2 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
62
+ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
63
63
  const locations = yield* LocationServiceMap.Service;
64
64
  return LocationMiddleware2.of((effect) => Effect.gen(function* () {
65
65
  const request = yield* HttpServerRequest.HttpServerRequest;
@@ -67,4 +67,4 @@ var layer2 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer2 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer4 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./media-uri-smaf4a18.js";
3
+ } from "./handlers-smaf4a18.js";
4
4
 
5
5
  // src/handlers/job.ts
6
6
  import { Job } from "@opencode/core/job";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./media-uri-j4at0y5c.js";
7
+ } from "./handlers-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-3j7dhvn1.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
  import {
5
- Service4,
5
+ Service2,
6
6
  frame2
7
- } from "./media-uri-wecgp61r.js";
7
+ } from "./handlers-fvpjvjpp.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* Service4;
15
+ const feed = yield* Service2;
16
16
  return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
17
17
  const connected = {
18
18
  id: Event.ID.create(),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-3j7dhvn1.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-gymtz25n.js";
4
+ } from "./handlers-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-3j7dhvn1.js";
7
+ } from "./handlers-0e81et3m.js";
8
8
 
9
9
  // src/handlers/usage.ts
10
10
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-gymtz25n.js";
4
+ } from "./handlers-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-3j7dhvn1.js";
7
+ } from "./handlers-0e81et3m.js";
8
8
 
9
9
  // src/handlers/provider.ts
10
10
  import { Provider } from "@opencode/core/provider";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./media-uri-smaf4a18.js";
4
+ } from "./handlers-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-3j7dhvn1.js";
7
+ } from "./handlers-0e81et3m.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./media-uri-xthc02cw.js";
10
+ } from "./handlers-xthc02cw.js";
11
11
 
12
12
  // src/handlers/message.ts
13
13
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./media-uri-gymtz25n.js";
4
+ } from "./handlers-50bbk3b2.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 "./media-uri-gymtz25n.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-3j7dhvn1.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./media-uri-gymtz25n.js";
5
+ } from "./handlers-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./media-uri-3j7dhvn1.js";
8
+ } from "./handlers-0e81et3m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./media-uri-q4bn6dy8.js";
12
+ } from "./handlers-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./media-uri-q187pxxd.js";
16
+ } from "./handlers-q187pxxd.js";
17
17
 
18
18
  // src/handlers/mcp.ts
19
19
  import { Location } from "@opencode/core/location";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-gymtz25n.js";
4
+ } from "./handlers-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-3j7dhvn1.js";
7
+ } from "./handlers-0e81et3m.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./media-uri-gymtz25n.js";
4
+ } from "./handlers-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-3j7dhvn1.js";
7
+ } from "./handlers-0e81et3m.js";
8
8
 
9
9
  // src/handlers/voice.ts
10
10
  import { Location } from "@opencode/core/location";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gymtz25n.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-3j7dhvn1.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./handlers-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: () => Service4,
10
+ Service: () => Service2,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer4,
14
+ layer: () => layer2,
15
15
  make: () => make4
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
@@ -30,7 +30,7 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
30
30
  }) {
31
31
  }
32
32
 
33
- class Service4 extends Context.Service()("@opencode/server/EventFeed") {
33
+ class Service2 extends Context.Service()("@opencode/server/EventFeed") {
34
34
  }
35
35
  function frame2(event) {
36
36
  return `data: ${JSON.stringify(event)}
@@ -72,13 +72,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
72
72
  });
73
73
  const unsubscribe = yield* observe(publish);
74
74
  yield* Effect.addFinalizer(() => unsubscribe);
75
- return Service4.of({
75
+ return Service2.of({
76
76
  subscribe: (types) => 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)).pipe(Effect.map(Stream.fromQueue))
77
77
  });
78
78
  });
79
- var layer4 = Layer.effect(Service4, Effect.gen(function* () {
79
+ var layer2 = Layer.effect(Service2, Effect.gen(function* () {
80
80
  const bus = yield* Bus.Service;
81
81
  return yield* make4(bus.listen);
82
82
  }));
83
83
 
84
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer4, exports_event_feed };
84
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-3j7dhvn1.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./media-uri-q4bn6dy8.js";
7
+ } from "./handlers-q4bn6dy8.js";
8
8
  import {
9
9
  makeArtifact2
10
- } from "./media-uri-02a60aws.js";
10
+ } from "./handlers-0fv515j7.js";
11
11
  import {
12
12
  makeJob2
13
- } from "./media-uri-78rcgzsr.js";
13
+ } from "./handlers-78rcgzsr.js";
14
14
  import {
15
15
  makeMediaGet2
16
- } from "./media-uri-n321d8vm.js";
16
+ } from "./handlers-n321d8vm.js";
17
17
  import {
18
18
  runPtySocket2
19
- } from "./media-uri-q187pxxd.js";
19
+ } from "./handlers-q187pxxd.js";
20
20
  import {
21
21
  makeSchedule2
22
- } from "./media-uri-059rbh9c.js";
22
+ } from "./handlers-059rbh9c.js";
23
23
 
24
24
  // src/handlers/persistent-pty.ts
25
25
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./media-uri-gymtz25n.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-3j7dhvn1.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./media-uri-gymtz25n.js";
5
+ } from "./handlers-50bbk3b2.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-3j7dhvn1.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./handlers-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./media-uri-gymtz25n.js";
5
+ } from "./handlers-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./media-uri-3j7dhvn1.js";
8
+ } from "./handlers-0e81et3m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./media-uri-q4bn6dy8.js";
12
+ } from "./handlers-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./media-uri-q187pxxd.js";
16
+ } from "./handlers-q187pxxd.js";
17
17
 
18
18
  // src/handlers/pty.ts
19
19
  import { Pty } from "@opencode/core/pty";
@@ -3,16 +3,16 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./media-uri-smaf4a18.js";
6
+ } from "./handlers-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./media-uri-gymtz25n.js";
9
+ } from "./handlers-50bbk3b2.js";
10
10
  import {
11
11
  Api2
12
- } from "./media-uri-3j7dhvn1.js";
12
+ } from "./handlers-0e81et3m.js";
13
13
  import {
14
14
  wantsMediaRefs2
15
- } from "./media-uri-xthc02cw.js";
15
+ } from "./handlers-xthc02cw.js";
16
16
 
17
17
  // src/handlers/session.ts
18
18
  import { Instance } from "@opencode/core/instance/service";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./media-uri-smaf4a18.js";
3
+ } from "./handlers-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./media-uri-gymtz25n.js";
8
+ } from "./handlers-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./media-uri-3j7dhvn1.js";
11
+ } from "./handlers-0e81et3m.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./handlers-9rqn6x4v.js";
4
4
 
5
5
  // src/pairing.ts
6
6
  var exports_pairing = {};
7
7
  __export(exports_pairing, {
8
8
  ServerPairing: () => exports_pairing,
9
- Service: () => Service2,
9
+ Service: () => Service4,
10
10
  node: () => node2
11
11
  });
12
12
  import { Cache, Context, Duration, Effect, Layer } from "effect";
@@ -14,12 +14,12 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
14
14
  import { randomBytes } from "node:crypto";
15
15
  var TTL = Duration.minutes(5);
16
16
 
17
- class Service2 extends Context.Service()("@opencode/ServerPairing") {
17
+ class Service4 extends Context.Service()("@opencode/ServerPairing") {
18
18
  }
19
19
  var noLookup = () => Effect.die(new Error("ServerPairing cache must be used via set/invalidateWhen, never get"));
20
- var layer = Layer.effect(Service2, Effect.gen(function* () {
20
+ var layer = Layer.effect(Service4, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service2.of({
22
+ return Service4.of({
23
23
  issue: Effect.fn("ServerPairing.issue")(function* () {
24
24
  const code = randomBytes(16).toString("base64url");
25
25
  yield* Cache.set(cache, code, true);
@@ -30,6 +30,6 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
30
30
  })
31
31
  });
32
32
  }));
33
- var node2 = makeGlobalNode({ service: Service2, layer, deps: [] });
33
+ var node2 = makeGlobalNode({ service: Service4, layer, deps: [] });
34
34
 
35
- export { Service2, node2, exports_pairing };
35
+ export { Service4, node2, exports_pairing };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gymtz25n.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-3j7dhvn1.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gymtz25n.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-3j7dhvn1.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./media-uri-q4bn6dy8.js";
3
+ } from "./handlers-q4bn6dy8.js";
4
4
  import {
5
5
  withoutParentSpan2
6
- } from "./media-uri-yc7nft6q.js";
6
+ } from "./handlers-yc7nft6q.js";
7
7
  import {
8
8
  createRoutes2
9
- } from "./media-uri-53v6qpaq.js";
9
+ } from "./handlers-yg3b5pe6.js";
10
10
  import {
11
11
  __export
12
- } from "./media-uri-9rqn6x4v.js";
12
+ } from "./handlers-9rqn6x4v.js";
13
13
 
14
14
  // src/fetch.ts
15
15
  var exports_fetch = {};