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

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-qw2j92v5.js → service-status-286nzxac.js} +4 -4
  3. package/dist/chunks/{service-status-e6e4kz0w.js → service-status-39nnfjx1.js} +3 -3
  4. package/dist/chunks/{service-status-w7n3bfa8.js → service-status-3kn3vtva.js} +4 -4
  5. package/dist/chunks/{service-status-5pdfedjd.js → service-status-3te71694.js} +3 -3
  6. package/dist/chunks/{service-status-j605n900.js → service-status-3w2mqh28.js} +2 -2
  7. package/dist/chunks/{service-status-4gt38746.js → service-status-4z6dd0zp.js} +37 -37
  8. package/dist/chunks/{service-status-ws2ckpmb.js → service-status-5ky8bme5.js} +2 -2
  9. package/dist/chunks/{service-status-k12h8tw9.js → service-status-6anyjjh1.js} +1 -1
  10. package/dist/chunks/{service-status-yvy5qft7.js → service-status-7r996r31.js} +2 -2
  11. package/dist/chunks/{service-status-341zm3rs.js → service-status-8y9zssdg.js} +2 -2
  12. package/dist/chunks/{service-status-ggw25rqf.js → service-status-ar950k47.js} +1 -1
  13. package/dist/chunks/{service-status-72bf7qt9.js → service-status-br4x4prt.js} +2 -2
  14. package/dist/chunks/{service-status-r5yb7twv.js → service-status-c6ktqe09.js} +2 -2
  15. package/dist/chunks/{service-status-0dfmev2z.js → service-status-ca564221.js} +1 -1
  16. package/dist/chunks/{service-status-qgjb3f4w.js → service-status-cj97w75w.js} +2 -2
  17. package/dist/chunks/{service-status-844nmnmk.js → service-status-ddhjwr2w.js} +2 -2
  18. package/dist/chunks/{service-status-kc553r92.js → service-status-df03ef4a.js} +2 -2
  19. package/dist/chunks/{service-status-4rg1tmcj.js → service-status-dh44mzk7.js} +3 -3
  20. package/dist/chunks/{service-status-2h3x7256.js → service-status-eacgzt6w.js} +1 -1
  21. package/dist/chunks/{service-status-fsvp99pe.js → service-status-ehyp3zqd.js} +1 -1
  22. package/dist/chunks/{service-status-5h6n6h4q.js → service-status-ek3gas7h.js} +15 -15
  23. package/dist/chunks/{service-status-qcnb494j.js → service-status-esvnag9e.js} +2 -2
  24. package/dist/chunks/{service-status-tktas153.js → service-status-f412ctvv.js} +2 -2
  25. package/dist/chunks/{service-status-mj1ewmp1.js → service-status-fmkwyf76.js} +8 -8
  26. package/dist/chunks/{service-status-r9w3a44p.js → service-status-g9qy0kb1.js} +2 -2
  27. package/dist/chunks/{service-status-10r1zt22.js → service-status-hhwsfbf5.js} +4 -4
  28. package/dist/chunks/{service-status-7p3x8m34.js → service-status-hs3dbf8w.js} +6 -6
  29. package/dist/chunks/{service-status-zs3a96ke.js → service-status-htk4x1jk.js} +2 -2
  30. package/dist/chunks/{service-status-j6y32kmq.js → service-status-javgytnb.js} +1 -1
  31. package/dist/chunks/{service-status-8y4d9f30.js → service-status-jhs8rzvk.js} +3 -3
  32. package/dist/chunks/{service-status-vyjhrbg0.js → service-status-ka2mtp6f.js} +1 -1
  33. package/dist/chunks/{service-status-evw6vf0s.js → service-status-krsfryqp.js} +1 -1
  34. package/dist/chunks/{service-status-69weg9qz.js → service-status-mzs0n5xz.js} +3 -3
  35. package/dist/chunks/{service-status-bcs2rr9e.js → service-status-nfrn9zxf.js} +4 -4
  36. package/dist/chunks/{service-status-pp5985xb.js → service-status-nmknd757.js} +2 -2
  37. package/dist/chunks/{service-status-4th25279.js → service-status-nrpq6p1a.js} +2 -2
  38. package/dist/chunks/{service-status-cgcw2b0e.js → service-status-phgds112.js} +2 -2
  39. package/dist/chunks/{service-status-zmrq0y42.js → service-status-r682v2h3.js} +2 -2
  40. package/dist/chunks/{service-status-z564cb4b.js → service-status-r6qsbz4y.js} +2 -2
  41. package/dist/chunks/{service-status-fcw485c9.js → service-status-rg932pab.js} +2 -2
  42. package/dist/chunks/{service-status-9vfv9n1y.js → service-status-t91ekvs6.js} +2 -2
  43. package/dist/chunks/{service-status-xw05m515.js → service-status-v60tcbt5.js} +3 -3
  44. package/dist/chunks/{service-status-fegnxd42.js → service-status-wjh98yw2.js} +1 -1
  45. package/dist/chunks/{service-status-sn8sqewc.js → service-status-y8sa9sbe.js} +2 -2
  46. package/dist/chunks/{service-status-7tv8nec1.js → service-status-ykr4m3zx.js} +1 -1
  47. package/dist/chunks/{service-status-gqstb6bx.js → service-status-z0v7xmc8.js} +2 -2
  48. package/dist/chunks/{service-status-ntf3tw9k.js → service-status-z80wqx10.js} +2 -2
  49. package/dist/chunks/{service-status-4gs63nyp.js → service-status-zgjt1dbn.js} +2 -2
  50. package/dist/event-feed.js +5 -5
  51. package/dist/fetch.js +58 -58
  52. package/dist/handlers/agent.js +5 -5
  53. package/dist/handlers/artifact.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 +6 -6
  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 +6 -6
  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 +6 -6
  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 +49 -49
  94. package/dist/routes.js +54 -54
  95. package/dist/server-info.js +3 -3
  96. package/dist/service-status.js +3 -3
  97. package/dist/space-store.js +5 -5
  98. package/dist/workerd.js +47 -47
  99. package/package.json +8 -8
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-jhs8rzvk.js";
4
+ import"./chunks/service-status-ca564221.js";
5
+ import"./chunks/service-status-ehyp3zqd.js";
6
+ import"./chunks/service-status-br4x4prt.js";
7
7
  import"./chunks/service-status-rqgv9x42.js";
8
8
  export {
9
9
  Api2 as Api
@@ -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-ek3gas7h.js";
13
13
  import {
14
14
  __export
15
15
  } from "./service-status-9rqn6x4v.js";
@@ -18,7 +18,7 @@ import {
18
18
  var exports_fetch = {};
19
19
  __export(exports_fetch, {
20
20
  ServerFetch: () => exports_fetch,
21
- make: () => make2,
21
+ make: () => make3,
22
22
  makeWithContext: () => makeWithContext2
23
23
  });
24
24
  import { Context, Effect, Layer } from "effect";
@@ -30,8 +30,8 @@ var makeWithContext2 = Effect.fn("ServerFetch.makeWithContext")(function* (optio
30
30
  const handler = Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(middleware2(options), HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
31
31
  return { handler, context };
32
32
  });
33
- var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
33
+ var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
34
34
  return (yield* makeWithContext2(options, boot)).handler;
35
35
  });
36
36
 
37
- export { makeWithContext2, make2, exports_fetch };
37
+ export { makeWithContext2, make3, exports_fetch };
@@ -6,10 +6,10 @@ import {
6
6
  var exports_service_status = {};
7
7
  __export(exports_service_status, {
8
8
  Status: () => exports_service_status,
9
- make: () => make3
9
+ make: () => make2
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make3 = Effect.fnUntraced(function* (options = {}) {
12
+ var make2 = 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 { make2, exports_service_status };
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-jhs8rzvk.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
7
  } from "./service-status-q4bn6dy8.js";
8
8
  import {
9
9
  makeArtifact2
10
- } from "./service-status-j6y32kmq.js";
10
+ } from "./service-status-javgytnb.js";
11
11
  import {
12
12
  makeBlobGet2
13
13
  } from "./service-status-50kbksvb.js";
14
14
  import {
15
15
  makeBrowserTunnel2
16
- } from "./service-status-vyjhrbg0.js";
16
+ } from "./service-status-ka2mtp6f.js";
17
17
  import {
18
18
  makeAutomation2
19
19
  } from "./service-status-6pm6ek88.js";
@@ -32,7 +32,7 @@ import {
32
32
  } from "./service-status-qpnw2qd1.js";
33
33
  import {
34
34
  makeSpace2
35
- } from "./service-status-xw05m515.js";
35
+ } from "./service-status-v60tcbt5.js";
36
36
  import {
37
37
  runPtySocket2
38
38
  } from "./service-status-q187pxxd.js";
@@ -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
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-jhs8rzvk.js";
4
4
  import {
5
5
  requireConnectable2
6
- } from "./service-status-yvy5qft7.js";
6
+ } from "./service-status-7r996r31.js";
7
7
 
8
8
  // src/handlers/credential.ts
9
9
  import { Credential } from "@opencode/core/credential";
@@ -1,111 +1,111 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./service-status-zmrq0y42.js";
3
+ } from "./service-status-r682v2h3.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./service-status-cgcw2b0e.js";
6
+ } from "./service-status-phgds112.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./service-status-evw6vf0s.js";
9
+ } from "./service-status-krsfryqp.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./service-status-sn8sqewc.js";
12
+ } from "./service-status-y8sa9sbe.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./service-status-qgjb3f4w.js";
15
+ } from "./service-status-cj97w75w.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./service-status-pp5985xb.js";
18
+ } from "./service-status-nmknd757.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./service-status-ws2ckpmb.js";
21
+ } from "./service-status-5ky8bme5.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./service-status-4gs63nyp.js";
24
+ } from "./service-status-zgjt1dbn.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./service-status-qcnb494j.js";
27
+ } from "./service-status-esvnag9e.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./service-status-341zm3rs.js";
30
+ } from "./service-status-8y9zssdg.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./service-status-r9w3a44p.js";
33
+ } from "./service-status-g9qy0kb1.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./service-status-ggw25rqf.js";
36
+ } from "./service-status-ar950k47.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-hhwsfbf5.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./service-status-tktas153.js";
45
+ } from "./service-status-f412ctvv.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./service-status-gqstb6bx.js";
48
+ } from "./service-status-z0v7xmc8.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./service-status-4rg1tmcj.js";
51
+ } from "./service-status-dh44mzk7.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./service-status-bcs2rr9e.js";
54
+ } from "./service-status-nfrn9zxf.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./service-status-9vfv9n1y.js";
57
+ } from "./service-status-t91ekvs6.js";
58
58
  import {
59
59
  extension2
60
- } from "./service-status-mj1ewmp1.js";
60
+ } from "./service-status-fmkwyf76.js";
61
61
  import {
62
62
  PersistentPtyHandler2
63
- } from "./service-status-w7n3bfa8.js";
63
+ } from "./service-status-3kn3vtva.js";
64
64
  import {
65
65
  ShellHandler2
66
- } from "./service-status-kc553r92.js";
66
+ } from "./service-status-df03ef4a.js";
67
67
  import {
68
68
  ReferenceHandler2
69
- } from "./service-status-fcw485c9.js";
69
+ } from "./service-status-rg932pab.js";
70
70
  import {
71
71
  LocationHandler2
72
- } from "./service-status-ntf3tw9k.js";
72
+ } from "./service-status-z80wqx10.js";
73
73
  import {
74
74
  IntegrationHandler2
75
- } from "./service-status-yvy5qft7.js";
75
+ } from "./service-status-7r996r31.js";
76
76
  import {
77
77
  WebSearchHandler2
78
- } from "./service-status-zs3a96ke.js";
78
+ } from "./service-status-htk4x1jk.js";
79
79
  import {
80
80
  UsageHandler2
81
- } from "./service-status-844nmnmk.js";
81
+ } from "./service-status-ddhjwr2w.js";
82
82
  import {
83
83
  FlagHandler2
84
- } from "./service-status-z564cb4b.js";
84
+ } from "./service-status-r6qsbz4y.js";
85
85
  import {
86
86
  McpHandler2
87
- } from "./service-status-4th25279.js";
87
+ } from "./service-status-nrpq6p1a.js";
88
88
  import {
89
89
  CredentialHandler2
90
- } from "./service-status-j605n900.js";
90
+ } from "./service-status-3w2mqh28.js";
91
91
  import {
92
92
  ProjectHandler2
93
- } from "./service-status-k12h8tw9.js";
93
+ } from "./service-status-6anyjjh1.js";
94
94
  import {
95
95
  WorktreeHandler2
96
- } from "./service-status-7tv8nec1.js";
96
+ } from "./service-status-ykr4m3zx.js";
97
97
  import {
98
98
  VcsHandler2
99
- } from "./service-status-r5yb7twv.js";
99
+ } from "./service-status-c6ktqe09.js";
100
100
  import {
101
101
  MigrationHandler2
102
- } from "./service-status-2h3x7256.js";
102
+ } from "./service-status-eacgzt6w.js";
103
103
  import {
104
104
  ConfigHandler2
105
- } from "./service-status-fegnxd42.js";
105
+ } from "./service-status-wjh98yw2.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 };
@@ -5,10 +5,10 @@ import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./service-status-72bf7qt9.js";
8
+ } from "./service-status-br4x4prt.js";
9
9
  import {
10
10
  Api2
11
- } from "./service-status-8y4d9f30.js";
11
+ } from "./service-status-jhs8rzvk.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-jhs8rzvk.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-jhs8rzvk.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 "./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-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-jhs8rzvk.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -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 };
@@ -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-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -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,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-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -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-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/usage.ts
9
9
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./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-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-jhs8rzvk.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
14
  Service4
15
- } from "./service-status-69weg9qz.js";
15
+ } from "./service-status-mzs0n5xz.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { hostname } from "node:os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-jhs8rzvk.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./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,33 +1,33 @@
1
1
  import {
2
- layer3
3
- } from "./service-status-72bf7qt9.js";
2
+ layer4
3
+ } from "./service-status-br4x4prt.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./service-status-0dfmev2z.js";
6
+ } from "./service-status-ca564221.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./service-status-fsvp99pe.js";
9
+ } from "./service-status-ehyp3zqd.js";
10
10
  import {
11
11
  Api2
12
- } from "./service-status-8y4d9f30.js";
12
+ } from "./service-status-jhs8rzvk.js";
13
13
  import {
14
14
  Config2
15
15
  } from "./service-status-j4at0y5c.js";
16
16
  import {
17
- node2
18
- } from "./service-status-mj1ewmp1.js";
17
+ node3
18
+ } from "./service-status-fmkwyf76.js";
19
19
  import {
20
20
  CorsConfig2
21
21
  } from "./service-status-q4bn6dy8.js";
22
22
  import {
23
- layer2
24
- } from "./service-status-5pdfedjd.js";
23
+ layer3
24
+ } from "./service-status-3te71694.js";
25
25
  import {
26
- node3
27
- } from "./service-status-69weg9qz.js";
26
+ node2
27
+ } from "./service-status-mzs0n5xz.js";
28
28
  import {
29
29
  handlers2
30
- } from "./service-status-4gt38746.js";
30
+ } from "./service-status-4z6dd0zp.js";
31
31
  import {
32
32
  authorizationLayer2
33
33
  } from "./service-status-29nx48hm.js";
@@ -120,8 +120,8 @@ var applicationServiceNodes = [
120
120
  BrowserTunnelGateway.node,
121
121
  Credential.node,
122
122
  WellKnown.node,
123
- node3,
124
123
  node2,
124
+ node3,
125
125
  LocationServiceMap.node,
126
126
  LocationActivity.node,
127
127
  SessionRestart.node,
@@ -203,8 +203,8 @@ function makeRoutes(password, options, serviceURLs, overrides, instances) {
203
203
  })) : build(overrides);
204
204
  return serviceLayer.pipe(Layer.flatMap((context) => {
205
205
  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)), layer2(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(layer3), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.merge(defectResponseLayer2), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer), Layer.tap((context) => Effect.sync(() => {
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), Layer.tap((context) => Effect.sync(() => {
208
208
  internal = Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpEffect.toWebHandlerWith(context));
209
209
  })));
210
210
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
@@ -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-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./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-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -7,10 +7,10 @@ var exports_space_store = {};
7
7
  __export(exports_space_store, {
8
8
  BatchSize: () => BatchSize2,
9
9
  PurgeInterval: () => PurgeInterval2,
10
- Service: () => Service2,
10
+ Service: () => Service5,
11
11
  SpaceStore: () => exports_space_store,
12
12
  extension: () => extension2,
13
- node: () => node2
13
+ node: () => node3
14
14
  });
15
15
  import { SpaceRows } from "@opencode/core/space";
16
16
  import { Database } from "@opencode/core/database/database";
@@ -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 Service5 extends Context.Service()("@opencode/server/SpaceStore") {
26
26
  }
27
- var layer = Layer.effect(Service2, Effect.gen(function* () {
27
+ var layer = Layer.effect(Service5, 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 Service5.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 node3 = makeGlobalNode({ service: Service5, layer, deps: [Database.node] });
187
187
  var extension2 = Effect.gen(function* () {
188
- const store = yield* Service2;
188
+ const store = yield* Service5;
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, Service5, node3, extension2, exports_space_store };
@@ -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-jhs8rzvk.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./service-status-8y4d9f30.js";
3
+ } from "./service-status-jhs8rzvk.js";
4
4
  import {
5
- Service5,
5
+ Service2,
6
6
  frame2
7
- } from "./service-status-7p3x8m34.js";
7
+ } from "./service-status-hs3dbf8w.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* Service5;
15
+ const feed = yield* Service2;
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(),