@opencode/server 0.0.0-dev-21458 → 0.0.0-dev-21463

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 (82) hide show
  1. package/dist/api.js +2 -2
  2. package/dist/chunks/{options-jd2d9483.js → options-0cppk2bc.js} +1 -1
  3. package/dist/chunks/{options-wv5twc2g.js → options-0d9kah4z.js} +7 -7
  4. package/dist/chunks/{options-aq15fqdh.js → options-282a4qdn.js} +7 -7
  5. package/dist/chunks/{options-7xe5pzvy.js → options-3aej5azy.js} +1 -1
  6. package/dist/chunks/{options-8t0ckx4f.js → options-3atcw39t.js} +1 -1
  7. package/dist/chunks/{options-xsrtpxyd.js → options-5w24ch67.js} +3 -3
  8. package/dist/chunks/{options-t4c683g8.js → options-6ypp9np2.js} +1 -1
  9. package/dist/chunks/{options-w4e9jgda.js → options-7b00qdf6.js} +1 -1
  10. package/dist/chunks/{options-ycvzrvpb.js → options-8rce7p24.js} +31 -31
  11. package/dist/chunks/{options-emkxpff3.js → options-9mfgjndz.js} +1 -1
  12. package/dist/chunks/{options-w23ar4xz.js → options-9nc587qk.js} +4 -4
  13. package/dist/chunks/{options-amh2w8sq.js → options-ankhmcz6.js} +1 -1
  14. package/dist/chunks/{options-xweetfxd.js → options-b9vncdrk.js} +10 -10
  15. package/dist/chunks/{options-nnsgc8by.js → options-dr1f0hkr.js} +1 -1
  16. package/dist/chunks/{options-z6z134jc.js → options-eaxk76q8.js} +1 -1
  17. package/dist/chunks/{options-rhdada90.js → options-esbdfpyn.js} +1 -1
  18. package/dist/chunks/{options-hwqxzcvy.js → options-ez8kk7rt.js} +1 -1
  19. package/dist/chunks/{options-s0qm098c.js → options-gsqctp76.js} +1 -1
  20. package/dist/chunks/{options-fazm2c7b.js → options-gx9nwmym.js} +1 -1
  21. package/dist/chunks/{options-qcfps8nc.js → options-j1p3e665.js} +1 -1
  22. package/dist/chunks/{options-apeppj4j.js → options-jyqwgkdk.js} +1 -1
  23. package/dist/chunks/{options-3d7qdbre.js → options-k8rzy6d4.js} +1 -1
  24. package/dist/chunks/{options-547pgmmc.js → options-krpsczf8.js} +1 -1
  25. package/dist/chunks/{options-fysmzcya.js → options-mahm5rvs.js} +1 -1
  26. package/dist/chunks/{options-jk5edc6h.js → options-mhfbkkb7.js} +1 -1
  27. package/dist/chunks/{options-g7sdbt1s.js → options-mk2mz66m.js} +1 -1
  28. package/dist/chunks/{options-qx5ydgm0.js → options-n60r5keb.js} +1 -1
  29. package/dist/chunks/{options-yeebkdj0.js → options-p6ct2ak8.js} +1 -1
  30. package/dist/chunks/{options-gw6rc7x0.js → options-rc3nk1bx.js} +1 -1
  31. package/dist/chunks/{options-dknpej2x.js → options-rw20mvg0.js} +4 -4
  32. package/dist/chunks/{options-x6486bry.js → options-sstsrjtg.js} +7 -7
  33. package/dist/chunks/{options-ghk96rjy.js → options-szpzdv3v.js} +6 -6
  34. package/dist/chunks/{options-xeq9w5wr.js → options-t604mhvp.js} +10 -3
  35. package/dist/chunks/{options-zfbzqd0e.js → options-tp1rntzw.js} +1 -1
  36. package/dist/chunks/{options-tp6qcw6t.js → options-vbanrv0z.js} +1 -1
  37. package/dist/chunks/{options-wexwfee0.js → options-vdtx70fv.js} +1 -1
  38. package/dist/chunks/{options-gq8jw616.js → options-w0jn068c.js} +1 -1
  39. package/dist/chunks/{options-cpp0zjdy.js → options-yv9sxhn9.js} +1 -1
  40. package/dist/fetch.js +42 -42
  41. package/dist/handlers/agent.js +3 -3
  42. package/dist/handlers/command.js +3 -3
  43. package/dist/handlers/config.js +3 -3
  44. package/dist/handlers/credential.js +3 -3
  45. package/dist/handlers/debug.js +3 -3
  46. package/dist/handlers/event.js +3 -3
  47. package/dist/handlers/form.js +3 -3
  48. package/dist/handlers/fs.js +3 -3
  49. package/dist/handlers/generate.js +3 -3
  50. package/dist/handlers/integration.js +3 -3
  51. package/dist/handlers/location.js +3 -3
  52. package/dist/handlers/mcp.js +3 -3
  53. package/dist/handlers/message.js +3 -3
  54. package/dist/handlers/migration.js +3 -3
  55. package/dist/handlers/model.js +3 -3
  56. package/dist/handlers/permission.js +3 -3
  57. package/dist/handlers/persistent-pty.js +3 -3
  58. package/dist/handlers/plugin.js +3 -3
  59. package/dist/handlers/project.js +3 -3
  60. package/dist/handlers/provider.js +3 -3
  61. package/dist/handlers/pty.js +4 -4
  62. package/dist/handlers/reference.js +3 -3
  63. package/dist/handlers/rpc.js +3 -3
  64. package/dist/handlers/server.js +5 -5
  65. package/dist/handlers/session.js +3 -3
  66. package/dist/handlers/shell.js +3 -3
  67. package/dist/handlers/skill.js +3 -3
  68. package/dist/handlers/vcs.js +3 -3
  69. package/dist/handlers/voice.d.ts +1 -1
  70. package/dist/handlers/voice.js +3 -3
  71. package/dist/handlers/websearch.js +3 -3
  72. package/dist/handlers/worktree.js +3 -3
  73. package/dist/handlers.js +38 -38
  74. package/dist/pairing.js +5 -5
  75. package/dist/process.js +40 -40
  76. package/dist/pty-environment.js +7 -7
  77. package/dist/routes.js +39 -39
  78. package/dist/server-info.js +5 -5
  79. package/dist/service-status.js +3 -3
  80. package/dist/workerd.js +40 -40
  81. package/package.json +8 -8
  82. /package/dist/chunks/{options-4nbah0zs.js → options-q8n44kky.js} +0 -0
package/dist/api.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/options-4nbah0zs.js";
4
- import"./chunks/options-4gnb9897.js";
3
+ } from "./chunks/options-q8n44kky.js";
5
4
  import"./chunks/options-b3bmdkga.js";
5
+ import"./chunks/options-4gnb9897.js";
6
6
  import"./chunks/options-50bbk3b2.js";
7
7
  import"./chunks/options-smaf4a18.js";
8
8
  export {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -6,18 +6,18 @@ import {
6
6
  var exports_pty_environment = {};
7
7
  __export(exports_pty_environment, {
8
8
  PtyEnvironment: () => exports_pty_environment,
9
- Service: () => Service5,
10
- layer: () => layer5,
11
- node: () => node3
9
+ Service: () => Service3,
10
+ layer: () => layer3,
11
+ node: () => node2
12
12
  });
13
13
  import { Context, Effect, Layer } from "effect";
14
14
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
15
15
 
16
- class Service5 extends Context.Service()("@opencode/ServerPtyEnvironment") {
16
+ class Service3 extends Context.Service()("@opencode/ServerPtyEnvironment") {
17
17
  }
18
- var layer5 = Layer.succeed(Service5, Service5.of({
18
+ var layer3 = Layer.succeed(Service3, Service3.of({
19
19
  get: () => Effect.succeed({})
20
20
  }));
21
- var node3 = makeGlobalNode({ service: Service5, layer: layer5, deps: [] });
21
+ var node2 = makeGlobalNode({ service: Service3, layer: layer3, deps: [] });
22
22
 
23
- export { Service5, layer5, node3, exports_pty_environment };
23
+ export { Service3, layer3, node2, exports_pty_environment };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-4nbah0zs.js";
3
+ } from "./options-q8n44kky.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
9
  } from "./options-anm12x33.js";
10
- import {
11
- Service3
12
- } from "./options-ghk96rjy.js";
13
10
  import {
14
11
  Service4
15
- } from "./options-x6486bry.js";
12
+ } from "./options-szpzdv3v.js";
13
+ import {
14
+ Service5
15
+ } from "./options-sstsrjtg.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { Duration, Effect } from "effect";
@@ -21,10 +21,10 @@ import { HttpApiBuilder } from "effect/http-api";
21
21
  import { PersistentPty } from "@opencode/core/persistent-pty";
22
22
  import { UnauthorizedError } from "@opencode/protocol/errors";
23
23
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
24
- const pairing = yield* Service4;
24
+ const pairing = yield* Service5;
25
25
  const auth = yield* Config2;
26
26
  return handlers.handle("server.info", () => Effect.gen(function* () {
27
- const info = yield* Service3;
27
+ const info = yield* Service4;
28
28
  return {
29
29
  version: info.app.version ?? "unknown",
30
30
  pid: process.pid ?? 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-4nbah0zs.js";
3
+ } from "./options-q8n44kky.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./options-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-4nbah0zs.js";
7
+ } from "./options-q8n44kky.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -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: () => make2
9
+ make: () => make3
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make2 = Effect.fnUntraced(function* (options = {}) {
12
+ var make3 = 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 make2 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make2, exports_service_status };
23
+ export { make3, exports_service_status };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.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 "./options-4nbah0zs.js";
3
+ } from "./options-q8n44kky.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,99 +1,99 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./options-gq8jw616.js";
3
+ } from "./options-w0jn068c.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./options-xeq9w5wr.js";
6
+ } from "./options-t604mhvp.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./options-8t0ckx4f.js";
9
+ } from "./options-3atcw39t.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./options-cpp0zjdy.js";
12
+ } from "./options-yv9sxhn9.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./options-fazm2c7b.js";
15
+ } from "./options-gx9nwmym.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./options-nnsgc8by.js";
18
+ } from "./options-dr1f0hkr.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./options-emkxpff3.js";
21
+ } from "./options-9mfgjndz.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./options-qcfps8nc.js";
24
+ } from "./options-j1p3e665.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./options-s0qm098c.js";
27
+ } from "./options-gsqctp76.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./options-fysmzcya.js";
30
+ } from "./options-mahm5rvs.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./options-547pgmmc.js";
33
+ } from "./options-krpsczf8.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./options-w4e9jgda.js";
36
+ } from "./options-7b00qdf6.js";
37
37
  import {
38
38
  layer2
39
39
  } from "./options-2sy3c7de.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./options-amh2w8sq.js";
42
+ } from "./options-ankhmcz6.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./options-g7sdbt1s.js";
45
+ } from "./options-mk2mz66m.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./options-jd2d9483.js";
48
+ } from "./options-0cppk2bc.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./options-aq15fqdh.js";
51
+ } from "./options-282a4qdn.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./options-rhdada90.js";
54
+ } from "./options-esbdfpyn.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./options-dknpej2x.js";
57
+ } from "./options-rw20mvg0.js";
58
58
  import {
59
59
  PersistentPtyHandler2
60
- } from "./options-apeppj4j.js";
60
+ } from "./options-jyqwgkdk.js";
61
61
  import {
62
62
  ShellHandler2
63
- } from "./options-t4c683g8.js";
63
+ } from "./options-6ypp9np2.js";
64
64
  import {
65
65
  ReferenceHandler2
66
- } from "./options-z6z134jc.js";
66
+ } from "./options-eaxk76q8.js";
67
67
  import {
68
68
  LocationHandler2
69
- } from "./options-7xe5pzvy.js";
69
+ } from "./options-3aej5azy.js";
70
70
  import {
71
71
  IntegrationHandler2
72
- } from "./options-jk5edc6h.js";
72
+ } from "./options-mhfbkkb7.js";
73
73
  import {
74
74
  WebSearchHandler2
75
- } from "./options-wexwfee0.js";
75
+ } from "./options-vdtx70fv.js";
76
76
  import {
77
77
  McpHandler2
78
- } from "./options-yeebkdj0.js";
78
+ } from "./options-p6ct2ak8.js";
79
79
  import {
80
80
  CredentialHandler2
81
- } from "./options-qx5ydgm0.js";
81
+ } from "./options-n60r5keb.js";
82
82
  import {
83
83
  ProjectHandler2
84
- } from "./options-3d7qdbre.js";
84
+ } from "./options-k8rzy6d4.js";
85
85
  import {
86
86
  WorktreeHandler2
87
- } from "./options-zfbzqd0e.js";
87
+ } from "./options-tp1rntzw.js";
88
88
  import {
89
89
  VcsHandler2
90
- } from "./options-gw6rc7x0.js";
90
+ } from "./options-rc3nk1bx.js";
91
91
  import {
92
92
  MigrationHandler2
93
- } from "./options-tp6qcw6t.js";
93
+ } from "./options-vbanrv0z.js";
94
94
  import {
95
95
  ConfigHandler2
96
- } from "./options-hwqxzcvy.js";
96
+ } from "./options-ez8kk7rt.js";
97
97
 
98
98
  // src/handlers.ts
99
99
  import { Layer } from "effect";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./options-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./options-4nbah0zs.js";
11
+ } from "./options-q8n44kky.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./options-xweetfxd.js";
6
+ } from "./options-b9vncdrk.js";
7
7
  import {
8
8
  __export
9
9
  } from "./options-9rqn6x4v.js";
@@ -12,15 +12,15 @@ import {
12
12
  var exports_fetch = {};
13
13
  __export(exports_fetch, {
14
14
  ServerFetch: () => exports_fetch,
15
- make: () => make3
15
+ make: () => make2
16
16
  });
17
17
  import { Context, Effect, Layer } from "effect";
18
18
  import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
19
19
  import { SessionRestart } from "@opencode/core/session/execution/restart";
20
- var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
20
+ var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
21
21
  const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
22
22
  yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
23
23
  return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
24
24
  });
25
25
 
26
- export { make3, exports_fetch };
26
+ export { make2, exports_fetch };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-4nbah0zs.js";
3
+ } from "./options-q8n44kky.js";
4
4
  import {
5
5
  Service2,
6
6
  frame2
@@ -9,7 +9,7 @@ import {
9
9
  } from "./options-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./options-4nbah0zs.js";
12
+ } from "./options-q8n44kky.js";
13
13
  import {
14
14
  Config2
15
15
  } from "./options-anm12x33.js";
@@ -17,17 +17,17 @@ import {
17
17
  CorsConfig2
18
18
  } from "./options-q4bn6dy8.js";
19
19
  import {
20
- layer3
21
- } from "./options-ghk96rjy.js";
22
- import {
23
- node2
24
- } from "./options-x6486bry.js";
20
+ layer5
21
+ } from "./options-szpzdv3v.js";
25
22
  import {
26
23
  node3
27
- } from "./options-wv5twc2g.js";
24
+ } from "./options-sstsrjtg.js";
25
+ import {
26
+ node2
27
+ } from "./options-0d9kah4z.js";
28
28
  import {
29
29
  handlers2
30
- } from "./options-ycvzrvpb.js";
30
+ } from "./options-8rce7p24.js";
31
31
  import {
32
32
  authorizationLayer2
33
33
  } from "./options-yfz2nrjq.js";
@@ -92,8 +92,8 @@ var applicationServiceNodes = [
92
92
  PersistentPty.node,
93
93
  Credential.node,
94
94
  WellKnown.node,
95
- node3,
96
95
  node2,
96
+ node3,
97
97
  LocationServiceMap.node,
98
98
  LocationActivity.node,
99
99
  SessionRestart.node,
@@ -146,7 +146,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
146
146
  })) : build(overrides);
147
147
  return serviceLayer.pipe(Layer.flatMap((context) => {
148
148
  const services = Layer.succeedContext(context);
149
- 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));
149
+ const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer5(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
150
150
  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.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
151
151
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
152
152
  }));
@@ -9,7 +9,7 @@ import {
9
9
  } from "./options-50bbk3b2.js";
10
10
  import {
11
11
  Api2
12
- } from "./options-4nbah0zs.js";
12
+ } from "./options-q8n44kky.js";
13
13
 
14
14
  // src/handlers/session.ts
15
15
  import { Session } from "@opencode/core/session";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-4nbah0zs.js";
3
+ } from "./options-q8n44kky.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-4nbah0zs.js";
3
+ } from "./options-q8n44kky.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-4nbah0zs.js";
3
+ } from "./options-q8n44kky.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-4nbah0zs.js";
3
+ } from "./options-q8n44kky.js";
4
4
 
5
5
  // src/handlers/credential.ts
6
6
  import { Credential } from "@opencode/core/credential";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/mcp.ts
9
9
  import { Mcp } from "@opencode/core/mcp/index";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./options-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-4nbah0zs.js";
6
+ } from "./options-q8n44kky.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -5,14 +5,14 @@ import {
5
5
  } from "./options-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./options-4nbah0zs.js";
8
+ } from "./options-q8n44kky.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
12
  } from "./options-q4bn6dy8.js";
13
13
  import {
14
- Service5
15
- } from "./options-wv5twc2g.js";
14
+ Service3
15
+ } from "./options-0d9kah4z.js";
16
16
  import {
17
17
  runPtySocket2
18
18
  } from "./options-h6rt5k9s.js";
@@ -41,7 +41,7 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
41
41
  const locations = yield* LocationServiceMap.Service;
42
42
  const tickets = yield* PtyTicket.Service;
43
43
  const cors = yield* CorsConfig2;
44
- const environment = yield* Service5;
44
+ const environment = yield* Service3;
45
45
  return handlers.handle("pty.list", Effect.fn(function* () {
46
46
  const pty = yield* Pty.Service;
47
47
  return yield* response2(pty.list());
@@ -6,20 +6,20 @@ import {
6
6
  var exports_pairing = {};
7
7
  __export(exports_pairing, {
8
8
  ServerPairing: () => exports_pairing,
9
- Service: () => Service4,
10
- node: () => node2
9
+ Service: () => Service5,
10
+ node: () => node3
11
11
  });
12
12
  import { Cache, Context, Duration, Effect, Layer } from "effect";
13
13
  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 Service4 extends Context.Service()("@opencode/ServerPairing") {
17
+ class Service5 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(Service4, Effect.gen(function* () {
20
+ var layer = Layer.effect(Service5, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service4.of({
22
+ return Service5.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(Service4, Effect.gen(function* () {
30
30
  })
31
31
  });
32
32
  }));
33
- var node2 = makeGlobalNode({ service: Service4, layer, deps: [] });
33
+ var node3 = makeGlobalNode({ service: Service5, layer, deps: [] });
34
34
 
35
- export { Service4, node2, exports_pairing };
35
+ export { Service5, node3, exports_pairing };
@@ -6,17 +6,17 @@ import {
6
6
  var exports_server_info = {};
7
7
  __export(exports_server_info, {
8
8
  ServerInfo: () => exports_server_info,
9
- Service: () => Service3,
9
+ Service: () => Service4,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer3
11
+ layer: () => layer5
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
- class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
16
+ class Service4 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer3(urls, tmp, app = {}) {
19
- return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
18
+ function layer5(urls, tmp, app = {}) {
19
+ return Layer.succeed(Service4, Service4.of({ urls, app, paths: { tmp } }));
20
20
  }
21
21
  function connectionURLs2(value, requestedHostname) {
22
22
  const url = new URL(value);
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
38
38
  ];
39
39
  }
40
40
 
41
- export { Service3, layer3, connectionURLs2, exports_server_info };
41
+ export { Service4, layer5, connectionURLs2, exports_server_info };