@opencode/server 0.0.0-dev-1362 → 0.0.0-dev-1364

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 (99) hide show
  1. package/dist/api.js +4 -4
  2. package/dist/chunks/{service-status-9vfv9n1y.js → service-status-0vqsbvsa.js} +2 -2
  3. package/dist/chunks/{service-status-r5yb7twv.js → service-status-0wjm8gvs.js} +2 -2
  4. package/dist/chunks/{service-status-2h3x7256.js → service-status-10sj2tcf.js} +1 -1
  5. package/dist/chunks/{service-status-4gs63nyp.js → service-status-295pvv9p.js} +2 -2
  6. package/dist/chunks/{service-status-yvy5qft7.js → service-status-2tmcamrc.js} +2 -2
  7. package/dist/chunks/{service-status-5pdfedjd.js → service-status-3te71694.js} +3 -3
  8. package/dist/chunks/{service-status-r9w3a44p.js → service-status-3xkwxcke.js} +2 -2
  9. package/dist/chunks/{service-status-mj1ewmp1.js → service-status-64x7nvxd.js} +7 -7
  10. package/dist/chunks/{service-status-4gt38746.js → service-status-6qz6pn3m.js} +37 -37
  11. package/dist/chunks/{service-status-bcs2rr9e.js → service-status-784gqmc7.js} +4 -4
  12. package/dist/chunks/{service-status-fcw485c9.js → service-status-7dkb5ks8.js} +2 -2
  13. package/dist/chunks/{service-status-k12h8tw9.js → service-status-8nezxn08.js} +1 -1
  14. package/dist/chunks/{service-status-qcnb494j.js → service-status-8qsq6tbs.js} +2 -2
  15. package/dist/chunks/{service-status-j605n900.js → service-status-8xdajgpr.js} +2 -2
  16. package/dist/chunks/{service-status-z564cb4b.js → service-status-9hynp6rm.js} +2 -2
  17. package/dist/chunks/{service-status-qw2j92v5.js → service-status-9w6vdav3.js} +1 -1
  18. package/dist/chunks/{service-status-fegnxd42.js → service-status-am27j67f.js} +1 -1
  19. package/dist/chunks/{service-status-72bf7qt9.js → service-status-br4x4prt.js} +2 -2
  20. package/dist/chunks/{service-status-0dfmev2z.js → service-status-ca564221.js} +1 -1
  21. package/dist/chunks/{service-status-ntf3tw9k.js → service-status-e3jd9akj.js} +2 -2
  22. package/dist/chunks/{service-status-fsvp99pe.js → service-status-ehyp3zqd.js} +1 -1
  23. package/dist/chunks/{service-status-gqstb6bx.js → service-status-em7ed65n.js} +2 -2
  24. package/dist/chunks/{service-status-tktas153.js → service-status-exwy1kbj.js} +2 -2
  25. package/dist/chunks/{service-status-kc553r92.js → service-status-f3gr6hfv.js} +2 -2
  26. package/dist/chunks/{service-status-evw6vf0s.js → service-status-g4964mny.js} +1 -1
  27. package/dist/chunks/{service-status-7p3x8m34.js → service-status-hs3dbf8w.js} +6 -6
  28. package/dist/chunks/{service-status-j6y32kmq.js → service-status-javgytnb.js} +1 -1
  29. package/dist/chunks/{service-status-4rg1tmcj.js → service-status-jmx3akz9.js} +5 -5
  30. package/dist/chunks/{service-status-ggw25rqf.js → service-status-k74zefsg.js} +1 -1
  31. package/dist/chunks/{service-status-vyjhrbg0.js → service-status-ka2mtp6f.js} +1 -1
  32. package/dist/chunks/{service-status-w7n3bfa8.js → service-status-keqzz950.js} +5 -5
  33. package/dist/chunks/{service-status-ws2ckpmb.js → service-status-kmwr1xw9.js} +2 -2
  34. package/dist/chunks/{service-status-7tv8nec1.js → service-status-n2zyxnzr.js} +1 -1
  35. package/dist/chunks/{service-status-zmrq0y42.js → service-status-prwd5gwt.js} +2 -2
  36. package/dist/chunks/{service-status-5h6n6h4q.js → service-status-q6d8smwt.js} +12 -12
  37. package/dist/chunks/{service-status-zs3a96ke.js → service-status-qq3f8fnn.js} +2 -2
  38. package/dist/chunks/{service-status-pp5985xb.js → service-status-qssmdh31.js} +2 -2
  39. package/dist/chunks/{service-status-341zm3rs.js → service-status-rgbnpstw.js} +2 -2
  40. package/dist/chunks/{service-status-cgcw2b0e.js → service-status-rjhxbsc4.js} +2 -2
  41. package/dist/chunks/{service-status-4th25279.js → service-status-rm5kndzh.js} +2 -2
  42. package/dist/chunks/{service-status-sn8sqewc.js → service-status-s0zgx365.js} +2 -2
  43. package/dist/chunks/{service-status-10r1zt22.js → service-status-tf74fj8k.js} +4 -4
  44. package/dist/chunks/{service-status-xw05m515.js → service-status-tt779q2a.js} +3 -3
  45. package/dist/chunks/{service-status-69weg9qz.js → service-status-v9t81kwn.js} +6 -6
  46. package/dist/chunks/{service-status-8y4d9f30.js → service-status-whvq72as.js} +3 -3
  47. package/dist/chunks/{service-status-844nmnmk.js → service-status-wsvmph03.js} +2 -2
  48. package/dist/chunks/{service-status-qgjb3f4w.js → service-status-yc92za0p.js} +2 -2
  49. package/dist/event-feed.js +5 -5
  50. package/dist/fetch.js +56 -56
  51. package/dist/handlers/agent.js +5 -5
  52. package/dist/handlers/artifact.js +2 -2
  53. package/dist/handlers/blob.js +2 -2
  54. package/dist/handlers/command.js +5 -5
  55. package/dist/handlers/config.js +5 -5
  56. package/dist/handlers/credential.js +6 -6
  57. package/dist/handlers/debug.js +5 -5
  58. package/dist/handlers/event.js +6 -6
  59. package/dist/handlers/experimental/browser-tunnel.js +3 -3
  60. package/dist/handlers/flag.js +5 -5
  61. package/dist/handlers/form.js +5 -5
  62. package/dist/handlers/fs.js +7 -7
  63. package/dist/handlers/generate.js +5 -5
  64. package/dist/handlers/integration.js +5 -5
  65. package/dist/handlers/location.js +5 -5
  66. package/dist/handlers/mcp.js +6 -6
  67. package/dist/handlers/message.js +5 -5
  68. package/dist/handlers/migration.js +5 -5
  69. package/dist/handlers/model.js +5 -5
  70. package/dist/handlers/permission.js +5 -5
  71. package/dist/handlers/persistent-pty.js +14 -14
  72. package/dist/handlers/plugin.js +5 -5
  73. package/dist/handlers/project.js +5 -5
  74. package/dist/handlers/provider.js +5 -5
  75. package/dist/handlers/pty.js +6 -6
  76. package/dist/handlers/reference.js +5 -5
  77. package/dist/handlers/rpc.js +5 -5
  78. package/dist/handlers/server.js +7 -7
  79. package/dist/handlers/session.js +5 -5
  80. package/dist/handlers/shell.js +5 -5
  81. package/dist/handlers/skill.js +5 -5
  82. package/dist/handlers/space.js +2 -2
  83. package/dist/handlers/usage.js +5 -5
  84. package/dist/handlers/vcs.js +5 -5
  85. package/dist/handlers/voice.js +5 -5
  86. package/dist/handlers/websearch.js +5 -5
  87. package/dist/handlers/worktree.js +5 -5
  88. package/dist/handlers.js +51 -51
  89. package/dist/location.js +3 -3
  90. package/dist/middleware/form-location.js +2 -2
  91. package/dist/middleware/session-location.js +2 -2
  92. package/dist/pairing.js +3 -3
  93. package/dist/process.js +47 -47
  94. package/dist/routes.js +54 -54
  95. package/dist/server-info.js +3 -3
  96. package/dist/space-store.js +3 -3
  97. package/dist/workerd.js +48 -48
  98. package/package.json +8 -8
  99. /package/dist/chunks/{service-status-50kbksvb.js → service-status-g23ffrnz.js} +0 -0
package/dist/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/service-status-8y4d9f30.js";
4
- import"./chunks/service-status-0dfmev2z.js";
5
- import"./chunks/service-status-fsvp99pe.js";
6
- import"./chunks/service-status-72bf7qt9.js";
3
+ } from "./chunks/service-status-whvq72as.js";
4
+ import"./chunks/service-status-ehyp3zqd.js";
5
+ import"./chunks/service-status-ca564221.js";
6
+ import"./chunks/service-status-br4x4prt.js";
7
7
  import"./chunks/service-status-rqgv9x42.js";
8
8
  export {
9
9
  Api2 as Api
@@ -2,10 +2,10 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./service-status-72bf7qt9.js";
5
+ } from "./service-status-br4x4prt.js";
6
6
  import {
7
7
  Api2
8
- } from "./service-status-8y4d9f30.js";
8
+ } from "./service-status-whvq72as.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-whvq72as.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
  import {
8
8
  download2
9
9
  } from "./service-status-t32e1bbt.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -8,14 +8,14 @@ __export(exports_server_info, {
8
8
  ServerInfo: () => exports_server_info,
9
9
  Service: () => Service3,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer2
11
+ layer: () => layer3
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
16
  class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer2(urls, tmp, app = {}) {
18
+ function layer3(urls, tmp, app = {}) {
19
19
  return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
20
20
  }
21
21
  function connectionURLs2(value, requestedHostname) {
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
38
38
  ];
39
39
  }
40
40
 
41
- export { Service3, layer2, connectionURLs2, exports_server_info };
41
+ export { Service3, layer3, connectionURLs2, exports_server_info };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -7,7 +7,7 @@ var exports_space_store = {};
7
7
  __export(exports_space_store, {
8
8
  BatchSize: () => BatchSize2,
9
9
  PurgeInterval: () => PurgeInterval2,
10
- Service: () => Service2,
10
+ Service: () => Service4,
11
11
  SpaceStore: () => exports_space_store,
12
12
  extension: () => extension2,
13
13
  node: () => node2
@@ -22,9 +22,9 @@ import { Clock, Context, Effect, Layer } from "effect";
22
22
  var BatchSize2 = 500;
23
23
  var PurgeInterval2 = 64;
24
24
 
25
- class Service2 extends Context.Service()("@opencode/server/SpaceStore") {
25
+ class Service4 extends Context.Service()("@opencode/server/SpaceStore") {
26
26
  }
27
- var layer = Layer.effect(Service2, Effect.gen(function* () {
27
+ var layer = Layer.effect(Service4, Effect.gen(function* () {
28
28
  const db = (yield* Database.Service).db;
29
29
  let epoch = yield* SpaceRows.epoch(db).pipe(Effect.catchCause((cause) => Effect.logWarning("Could not read the space epoch", { cause }).pipe(Effect.as(crypto.randomUUID()))));
30
30
  const listeners = new Array;
@@ -102,7 +102,7 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
102
102
  events: read.rows.map((row) => change(space, row, created))
103
103
  };
104
104
  });
105
- return Service2.of({
105
+ return Service4.of({
106
106
  write: Effect.fn("SpaceStore.write")(function* (changes) {
107
107
  return yield* [...new Set(changes.map((change) => change.space))].toSorted().reduceRight((effect, space) => locks.withLock(space)(effect), Effect.uninterruptible(Effect.gen(function* () {
108
108
  const result = yield* SpaceRows.write(db, changes);
@@ -183,9 +183,9 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
183
183
  })
184
184
  });
185
185
  }));
186
- var node2 = makeGlobalNode({ service: Service2, layer, deps: [Database.node] });
186
+ var node2 = makeGlobalNode({ service: Service4, layer, deps: [Database.node] });
187
187
  var extension2 = Effect.gen(function* () {
188
- const store = yield* Service2;
188
+ const store = yield* Service4;
189
189
  return { open: (stream, send) => store.attach(stream, send) };
190
190
  });
191
191
  function change(space, row, created) {
@@ -216,4 +216,4 @@ function parse(epoch, cursor) {
216
216
  return { since: Number(parts[0]), head: parts[1] === undefined ? undefined : Number(parts[1]) };
217
217
  }
218
218
 
219
- export { BatchSize2, PurgeInterval2, Service2, node2, extension2, exports_space_store };
219
+ export { BatchSize2, PurgeInterval2, Service4, node2, extension2, exports_space_store };
@@ -1,111 +1,111 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./service-status-zmrq0y42.js";
3
+ } from "./service-status-prwd5gwt.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./service-status-cgcw2b0e.js";
6
+ } from "./service-status-rjhxbsc4.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./service-status-evw6vf0s.js";
9
+ } from "./service-status-g4964mny.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./service-status-sn8sqewc.js";
12
+ } from "./service-status-s0zgx365.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./service-status-qgjb3f4w.js";
15
+ } from "./service-status-yc92za0p.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./service-status-pp5985xb.js";
18
+ } from "./service-status-qssmdh31.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./service-status-ws2ckpmb.js";
21
+ } from "./service-status-kmwr1xw9.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./service-status-4gs63nyp.js";
24
+ } from "./service-status-295pvv9p.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./service-status-qcnb494j.js";
27
+ } from "./service-status-8qsq6tbs.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./service-status-341zm3rs.js";
30
+ } from "./service-status-rgbnpstw.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./service-status-r9w3a44p.js";
33
+ } from "./service-status-3xkwxcke.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./service-status-ggw25rqf.js";
36
+ } from "./service-status-k74zefsg.js";
37
37
  import {
38
- layer4
39
- } from "./service-status-7p3x8m34.js";
38
+ layer2
39
+ } from "./service-status-hs3dbf8w.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./service-status-10r1zt22.js";
42
+ } from "./service-status-tf74fj8k.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./service-status-tktas153.js";
45
+ } from "./service-status-exwy1kbj.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./service-status-gqstb6bx.js";
48
+ } from "./service-status-em7ed65n.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./service-status-4rg1tmcj.js";
51
+ } from "./service-status-jmx3akz9.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./service-status-bcs2rr9e.js";
54
+ } from "./service-status-784gqmc7.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./service-status-9vfv9n1y.js";
57
+ } from "./service-status-0vqsbvsa.js";
58
58
  import {
59
59
  extension2
60
- } from "./service-status-mj1ewmp1.js";
60
+ } from "./service-status-64x7nvxd.js";
61
61
  import {
62
62
  PersistentPtyHandler2
63
- } from "./service-status-w7n3bfa8.js";
63
+ } from "./service-status-keqzz950.js";
64
64
  import {
65
65
  ShellHandler2
66
- } from "./service-status-kc553r92.js";
66
+ } from "./service-status-f3gr6hfv.js";
67
67
  import {
68
68
  ReferenceHandler2
69
- } from "./service-status-fcw485c9.js";
69
+ } from "./service-status-7dkb5ks8.js";
70
70
  import {
71
71
  LocationHandler2
72
- } from "./service-status-ntf3tw9k.js";
72
+ } from "./service-status-e3jd9akj.js";
73
73
  import {
74
74
  IntegrationHandler2
75
- } from "./service-status-yvy5qft7.js";
75
+ } from "./service-status-2tmcamrc.js";
76
76
  import {
77
77
  WebSearchHandler2
78
- } from "./service-status-zs3a96ke.js";
78
+ } from "./service-status-qq3f8fnn.js";
79
79
  import {
80
80
  UsageHandler2
81
- } from "./service-status-844nmnmk.js";
81
+ } from "./service-status-wsvmph03.js";
82
82
  import {
83
83
  FlagHandler2
84
- } from "./service-status-z564cb4b.js";
84
+ } from "./service-status-9hynp6rm.js";
85
85
  import {
86
86
  McpHandler2
87
- } from "./service-status-4th25279.js";
87
+ } from "./service-status-rm5kndzh.js";
88
88
  import {
89
89
  CredentialHandler2
90
- } from "./service-status-j605n900.js";
90
+ } from "./service-status-8xdajgpr.js";
91
91
  import {
92
92
  ProjectHandler2
93
- } from "./service-status-k12h8tw9.js";
93
+ } from "./service-status-8nezxn08.js";
94
94
  import {
95
95
  WorktreeHandler2
96
- } from "./service-status-7tv8nec1.js";
96
+ } from "./service-status-n2zyxnzr.js";
97
97
  import {
98
98
  VcsHandler2
99
- } from "./service-status-r5yb7twv.js";
99
+ } from "./service-status-0wjm8gvs.js";
100
100
  import {
101
101
  MigrationHandler2
102
- } from "./service-status-2h3x7256.js";
102
+ } from "./service-status-10sj2tcf.js";
103
103
  import {
104
104
  ConfigHandler2
105
- } from "./service-status-fegnxd42.js";
105
+ } from "./service-status-am27j67f.js";
106
106
 
107
107
  // src/handlers.ts
108
108
  import { Layer } from "effect";
109
- 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(layer4(extension2))), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
109
+ 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(layer2(extension2))), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
110
110
 
111
111
  export { handlers2 };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
10
10
  import { InvalidRequestError, UnknownError } from "@opencode/protocol/errors";
11
11
  import { Global } from "@opencode/util/global";
12
12
  import { HeapSnapshot } from "@opencode/util/heap-snapshot";
13
- import { Effect, Option, RcMap } from "effect";
13
+ import { Effect, Option } from "effect";
14
14
  import { HttpApiBuilder } from "effect/http-api";
15
15
  import path from "node:path";
16
16
  var DebugHandler2 = HttpApiBuilder.group(Api2, "server.debug", (handlers) => Effect.gen(function* () {
@@ -28,7 +28,7 @@ var DebugHandler2 = HttpApiBuilder.group(Api2, "server.debug", (handlers) => Eff
28
28
  }));
29
29
  })).handle("debug.location", Effect.fn(function* () {
30
30
  const locations = Option.getOrThrow(yield* Effect.serviceOption(LocationServiceMap.Service));
31
- return Array.from(yield* RcMap.keys(locations.rcMap));
31
+ return yield* locations.keys;
32
32
  })).handle("debug.location.evict", Effect.fn(function* (ctx) {
33
33
  const locations = Option.getOrThrow(yield* Effect.serviceOption(LocationServiceMap.Service));
34
34
  yield* locations.invalidate(requestRef2(ctx.request));
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-whvq72as.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.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
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-whvq72as.js";
4
4
  import {
5
5
  requireConnectable2
6
- } from "./service-status-yvy5qft7.js";
6
+ } from "./service-status-2tmcamrc.js";
7
7
 
8
8
  // src/handlers/credential.ts
9
9
  import { Credential } from "@opencode/core/credential";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/flag.ts
9
9
  import { Flag } from "@opencode/core/flag";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./service-status-yc7nft6q.js";
10
10
  import {
11
11
  createRoutes2
12
- } from "./service-status-5h6n6h4q.js";
12
+ } from "./service-status-q6d8smwt.js";
13
13
  import {
14
14
  __export
15
15
  } from "./service-status-9rqn6x4v.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-whvq72as.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -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 "./service-status-72bf7qt9.js";
5
+ } from "./service-status-br4x4prt.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 "./service-status-8y4d9f30.js";
3
+ } from "./service-status-whvq72as.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -16,7 +16,7 @@ var LocationHandler2 = HttpApiBuilder.group(Api2, "server.location", (handlers)
16
16
  directory: location.directory,
17
17
  project: location.project
18
18
  });
19
- })).handle("location.reload", () => LocationServiceMap.reload().pipe(Effect.provideService(LocationServiceMap.Service, locations), Effect.catchCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.failCause(Cause.fromReasons(cause.reasons.filter(Cause.isInterruptReason))) : Effect.fail(new ServiceUnavailableError({ message: Cause.pretty(cause), service: "location" })))));
19
+ })).handle("location.reload", () => locations.reload.pipe(Effect.withSpan("LocationServiceMap.reload"), Effect.catchCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.failCause(Cause.fromReasons(cause.reasons.filter(Cause.isInterruptReason))) : Effect.fail(new ServiceUnavailableError({ message: Cause.pretty(cause), service: "location" })))));
20
20
  }));
21
21
 
22
22
  export { LocationHandler2 };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./service-status-72bf7qt9.js";
4
+ } from "./service-status-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 "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./service-status-72bf7qt9.js";
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  Api2
6
- } from "./service-status-8y4d9f30.js";
6
+ } from "./service-status-whvq72as.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./service-status-rqgv9x42.js";
5
5
  import {
6
6
  Api2
7
- } from "./service-status-8y4d9f30.js";
7
+ } from "./service-status-whvq72as.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
10
  } from "./service-status-xthc02cw.js";
@@ -7,11 +7,11 @@ var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service5,
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 Service5 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)}
@@ -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 Service5.of({
78
+ return Service2.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 layer4 = (...extensions) => Layer.effect(Service5, Effect.gen(function* () {
96
+ var layer2 = (...extensions) => Layer.effect(Service2, Effect.gen(function* () {
97
97
  const bus = yield* Bus.Service;
98
98
  return yield* make4(bus.listen, { extensions: yield* Effect.all(extensions) });
99
99
  }));
100
100
 
101
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service5, frame2, make4, layer4, exports_event_feed };
101
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
@@ -5,7 +5,7 @@ import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  requestRef2
8
- } from "./service-status-72bf7qt9.js";
8
+ } from "./service-status-br4x4prt.js";
9
9
 
10
10
  // src/handlers/artifact.ts
11
11
  import { Artifact } from "@opencode/core/artifact";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-whvq72as.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
@@ -9,10 +9,10 @@ import {
9
9
  } from "./service-status-j4at0y5c.js";
10
10
  import {
11
11
  Service3
12
- } from "./service-status-5pdfedjd.js";
12
+ } from "./service-status-3te71694.js";
13
13
  import {
14
- Service4
15
- } from "./service-status-69weg9qz.js";
14
+ Service5
15
+ } from "./service-status-v9t81kwn.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { hostname } from "node:os";
@@ -22,7 +22,7 @@ import { HttpApiBuilder } from "effect/http-api";
22
22
  import { PersistentPty } from "@opencode/core/persistent-pty";
23
23
  import { UnauthorizedError } from "@opencode/protocol/errors";
24
24
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
25
- const pairing = yield* Service4;
25
+ const pairing = yield* Service5;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
28
  const info = yield* Service3;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-whvq72as.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  locationErrors2,
7
7
  requestRef2
8
- } from "./service-status-72bf7qt9.js";
8
+ } from "./service-status-br4x4prt.js";
9
9
 
10
10
  // src/handlers/experimental/browser-tunnel.ts
11
11
  import { NodeHttpServerRequest } from "@effect/platform-node";