@opencode/server 2.2.1 → 2.2.3

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 (123) hide show
  1. package/dist/api.d.ts +16 -0
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{media-uri-xzvdbbpy.js → service-status-059rbh9c.js} +5 -2
  5. package/dist/chunks/{media-uri-b2k9041j.js → service-status-0e4fm4yw.js} +1 -1
  6. package/dist/chunks/{media-uri-qbhbayp5.js → service-status-0mnp9wde.js} +3 -3
  7. package/dist/chunks/{media-uri-r6vmgwff.js → service-status-0pbbhyf6.js} +2 -2
  8. package/dist/chunks/{media-uri-rztv1fyf.js → service-status-1s3664te.js} +4 -4
  9. package/dist/chunks/service-status-1t8ee1b5.js +61 -0
  10. package/dist/chunks/{media-uri-wxj3d9av.js → service-status-2835150m.js} +2 -2
  11. package/dist/chunks/{media-uri-ckkpcd9y.js → service-status-2qjvs0kv.js} +4 -4
  12. package/dist/chunks/{media-uri-0a5jm2na.js → service-status-370cpmna.js} +2 -2
  13. package/dist/chunks/{media-uri-3t6z87e1.js → service-status-39fj7rnq.js} +11 -11
  14. package/dist/chunks/{media-uri-39nnfjx1.js → service-status-39nnfjx1.js} +1 -1
  15. package/dist/chunks/{media-uri-ppma8fcc.js → service-status-50xc6x42.js} +3 -3
  16. package/dist/chunks/{media-uri-j9gxd9me.js → service-status-5z5anmwp.js} +2 -2
  17. package/dist/chunks/{media-uri-ndydfxzp.js → service-status-6211mtn3.js} +33 -33
  18. package/dist/chunks/{media-uri-h072q2hm.js → service-status-74kxthdf.js} +1 -1
  19. package/dist/chunks/{media-uri-7b9xm1qg.js → service-status-7b9xm1qg.js} +1 -1
  20. package/dist/chunks/{media-uri-e46y0tfd.js → service-status-7cd61xtm.js} +2 -2
  21. package/dist/chunks/{media-uri-b1prsepx.js → service-status-7dtbad8d.js} +5 -5
  22. package/dist/chunks/{media-uri-xe9t9xr4.js → service-status-7tewdwsb.js} +2 -2
  23. package/dist/chunks/{media-uri-m5rae7m4.js → service-status-7x1re4zg.js} +2 -2
  24. package/dist/chunks/{media-uri-prdak4hd.js → service-status-9jpfpdce.js} +2 -2
  25. package/dist/chunks/{media-uri-0n1e9dnh.js → service-status-ac10qb5k.js} +3 -3
  26. package/dist/chunks/{media-uri-zjy4sw3d.js → service-status-bv5jg9y6.js} +29 -4
  27. package/dist/chunks/{media-uri-8113w26k.js → service-status-dm74gm07.js} +8 -8
  28. package/dist/chunks/{media-uri-hnheq3hv.js → service-status-f4exzdsf.js} +2 -2
  29. package/dist/chunks/{media-uri-fvpjvjpp.js → service-status-fvpjvjpp.js} +1 -1
  30. package/dist/chunks/{media-uri-h3g82chs.js → service-status-fvqb5t8b.js} +15 -7
  31. package/dist/chunks/{media-uri-gk0yxcp6.js → service-status-gk0yxcp6.js} +1 -1
  32. package/dist/chunks/{media-uri-gqq6kfhc.js → service-status-gqq6kfhc.js} +1 -1
  33. package/dist/chunks/{media-uri-j4at0y5c.js → service-status-j4at0y5c.js} +1 -1
  34. package/dist/chunks/{media-uri-x8dgc261.js → service-status-jc2vwkyw.js} +2 -2
  35. package/dist/chunks/{media-uri-9c4eyh8m.js → service-status-r5696se6.js} +3 -3
  36. package/dist/chunks/{media-uri-22wspztn.js → service-status-rxyx8sa0.js} +2 -2
  37. package/dist/chunks/{media-uri-yr4wsvrw.js → service-status-skcryrty.js} +2 -2
  38. package/dist/chunks/{media-uri-qn8kkfq6.js → service-status-sqxx1p54.js} +2 -2
  39. package/dist/chunks/{media-uri-h9rcwvg0.js → service-status-vfkjeyp3.js} +1 -1
  40. package/dist/chunks/{media-uri-hax1v4bv.js → service-status-vtfzy3at.js} +2 -2
  41. package/dist/chunks/{media-uri-1je14sn4.js → service-status-vvp99hc9.js} +1 -1
  42. package/dist/chunks/{media-uri-mzs0n5xz.js → service-status-w9jcwh65.js} +7 -7
  43. package/dist/chunks/{media-uri-c6sjpm0r.js → service-status-wqv43pj9.js} +2 -2
  44. package/dist/chunks/{media-uri-6vs5sqy6.js → service-status-xbqm7mpj.js} +2 -2
  45. package/dist/chunks/{media-uri-z59gyc0x.js → service-status-xpg37vzc.js} +2 -2
  46. package/dist/chunks/{media-uri-yet0vexm.js → service-status-yet0vexm.js} +1 -1
  47. package/dist/chunks/{media-uri-wd7b20jw.js → service-status-zkg10e14.js} +4 -4
  48. package/dist/chunks/{media-uri-dk68ymtv.js → service-status-zmgfywqd.js} +1 -1
  49. package/dist/chunks/{media-uri-2xcc0x05.js → service-status-zyntahe8.js} +1 -1
  50. package/dist/cors.js +1 -1
  51. package/dist/event-feed.js +1 -1
  52. package/dist/fetch.js +51 -51
  53. package/dist/handlers/agent.js +6 -6
  54. package/dist/handlers/command.js +6 -6
  55. package/dist/handlers/config.js +6 -6
  56. package/dist/handlers/credential.d.ts +3 -1
  57. package/dist/handlers/credential.js +7 -6
  58. package/dist/handlers/debug.js +6 -6
  59. package/dist/handlers/event.js +7 -7
  60. package/dist/handlers/form.js +6 -6
  61. package/dist/handlers/fs.js +6 -6
  62. package/dist/handlers/generate.js +6 -6
  63. package/dist/handlers/integration.d.ts +5 -0
  64. package/dist/handlers/integration.js +9 -7
  65. package/dist/handlers/location.js +6 -6
  66. package/dist/handlers/mcp.js +8 -8
  67. package/dist/handlers/media.js +1 -1
  68. package/dist/handlers/message.js +7 -7
  69. package/dist/handlers/migration.js +6 -6
  70. package/dist/handlers/model.js +6 -6
  71. package/dist/handlers/permission.d.ts +1 -1
  72. package/dist/handlers/permission.js +6 -6
  73. package/dist/handlers/persistent-pty.js +10 -10
  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.d.ts +110 -5
  82. package/dist/handlers/schedule.js +2 -2
  83. package/dist/handlers/server.js +9 -9
  84. package/dist/handlers/session-error.js +1 -1
  85. package/dist/handlers/session.d.ts +1 -1
  86. package/dist/handlers/session.js +7 -7
  87. package/dist/handlers/shell.js +6 -6
  88. package/dist/handlers/skill.js +6 -6
  89. package/dist/handlers/usage.js +6 -6
  90. package/dist/handlers/vcs.d.ts +1 -1
  91. package/dist/handlers/vcs.js +6 -6
  92. package/dist/handlers/voice.js +6 -6
  93. package/dist/handlers/websearch.js +6 -6
  94. package/dist/handlers/worktree.js +6 -6
  95. package/dist/handlers.d.ts +1 -1
  96. package/dist/handlers.js +47 -47
  97. package/dist/location.js +2 -2
  98. package/dist/media-uri.js +1 -1
  99. package/dist/middleware/authorization.js +2 -2
  100. package/dist/middleware/form-location.d.ts +1 -1
  101. package/dist/middleware/form-location.js +3 -3
  102. package/dist/middleware/schema-error.js +1 -1
  103. package/dist/middleware/session-location.d.ts +1 -1
  104. package/dist/middleware/session-location.js +3 -3
  105. package/dist/pairing.js +3 -3
  106. package/dist/process.js +53 -53
  107. package/dist/request-tracing.js +1 -1
  108. package/dist/routes.d.ts +2 -2
  109. package/dist/routes.js +50 -50
  110. package/dist/server-info.js +3 -3
  111. package/dist/service-status.js +1 -1
  112. package/dist/workerd.d.ts +4 -3
  113. package/dist/workerd.js +66 -52
  114. package/package.json +12 -12
  115. package/dist/chunks/media-uri-be53s2qz.js +0 -47
  116. /package/dist/chunks/{media-uri-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
  117. /package/dist/chunks/{media-uri-bd8755ek.js → service-status-bd8755ek.js} +0 -0
  118. /package/dist/chunks/{media-uri-h6rt5k9s.js → service-status-h6rt5k9s.js} +0 -0
  119. /package/dist/chunks/{media-uri-n321d8vm.js → service-status-n321d8vm.js} +0 -0
  120. /package/dist/chunks/{media-uri-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
  121. /package/dist/chunks/{media-uri-smaf4a18.js → service-status-smaf4a18.js} +0 -0
  122. /package/dist/chunks/{media-uri-xthc02cw.js → service-status-xthc02cw.js} +0 -0
  123. /package/dist/chunks/{media-uri-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/server-info.ts
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
11
  layer: () => layer4
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
18
  function layer4(urls, tmp, app = {}) {
19
- return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
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, layer4, connectionURLs2, exports_server_info };
41
+ export { Service4, layer4, connectionURLs2, exports_server_info };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-9c4eyh8m.js";
3
+ } from "./service-status-r5696se6.js";
4
4
  import {
5
5
  Service2,
6
6
  frame2
7
- } from "./media-uri-fvpjvjpp.js";
7
+ } from "./service-status-fvpjvjpp.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./media-uri-smaf4a18.js";
4
+ } from "./service-status-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-9c4eyh8m.js";
7
+ } from "./service-status-r5696se6.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./media-uri-xthc02cw.js";
10
+ } from "./service-status-xthc02cw.js";
11
11
 
12
12
  // src/handlers/message.ts
13
13
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -17,6 +17,25 @@ import {
17
17
  InvalidRequestError
18
18
  } from "@opencode/protocol/errors";
19
19
  import { WellKnown } from "@opencode/core/wellknown";
20
+ import { Config } from "@opencode/core/config";
21
+ import { ManagedPolicy } from "@opencode/core/managed-policy";
22
+ var statements = Effect.fnUntraced(function* () {
23
+ const config = yield* Config.Service;
24
+ return ManagedPolicy.statements(yield* config.entries());
25
+ });
26
+ var isMcp = (integration) => integration?.metadata?.source === "mcp";
27
+ var requireConnectable2 = Effect.fnUntraced(function* (integrationID) {
28
+ const integrations = yield* Integration.Service;
29
+ if (isMcp(yield* integrations.get(integrationID)))
30
+ return;
31
+ const denied = ManagedPolicy.match(yield* statements(), "integration.connect", integrationID);
32
+ if (denied?.effect !== "deny")
33
+ return;
34
+ return yield* new InvalidRequestError({
35
+ message: `${denied.message}: connecting ${integrationID} is not allowed`,
36
+ kind: "integration_policy"
37
+ });
38
+ });
20
39
  var authorize = (effect) => effect.pipe(Effect.mapError((error) => new InvalidRequestError({
21
40
  message: error.cause instanceof Error && error.cause.message.trim() ? error.cause.message : "Authentication failed",
22
41
  kind: "integration_authorization"
@@ -25,7 +44,8 @@ var IntegrationHandler2 = HttpApiBuilder.group(Api2, "server.integration", (hand
25
44
  return handlers.handle("integration.list", Effect.fn(function* () {
26
45
  yield* Plugin.awaitActivation;
27
46
  const service = yield* Integration.Service;
28
- return yield* response2(service.list());
47
+ const current = yield* statements();
48
+ return yield* response2(service.list().pipe(Effect.map((integrations) => integrations.filter((integration) => isMcp(integration) || ManagedPolicy.decision(current, "integration.connect", integration.id) !== "deny"))));
29
49
  })).handle("integration.get", Effect.fn(function* (ctx) {
30
50
  const service = yield* Integration.Service;
31
51
  const integration = yield* service.get(ctx.params.integrationID);
@@ -38,10 +58,12 @@ var IntegrationHandler2 = HttpApiBuilder.group(Api2, "server.integration", (hand
38
58
  })).handle("integration.wellknown.add", Effect.fn(function* (ctx) {
39
59
  const wellknown = yield* WellKnown.Service;
40
60
  const integration = yield* Integration.Service;
61
+ yield* requireConnectable2(Integration.ID.make(ctx.payload.url.replace(/\/+$/, "")));
41
62
  yield* wellknown.add(ctx.payload.url).pipe(Effect.mapError((error) => new InvalidRequestError({ message: error.message, kind: "well_known_discovery" })));
42
63
  yield* integration.reload();
43
64
  return HttpApiSchema.NoContent.make();
44
65
  })).handle("integration.connect.key", Effect.fn(function* (ctx) {
66
+ yield* requireConnectable2(ctx.params.integrationID);
45
67
  const service = yield* Integration.Service;
46
68
  if (!(yield* service.get(ctx.params.integrationID)))
47
69
  return yield* new IntegrationNotFoundError({
@@ -56,6 +78,7 @@ var IntegrationHandler2 = HttpApiBuilder.group(Api2, "server.integration", (hand
56
78
  }));
57
79
  return HttpApiSchema.NoContent.make();
58
80
  })).handle("integration.connect.external", Effect.fn(function* (ctx) {
81
+ yield* requireConnectable2(ctx.params.integrationID);
59
82
  const service = yield* Integration.Service;
60
83
  if (!(yield* service.get(ctx.params.integrationID)))
61
84
  return yield* new IntegrationNotFoundError({
@@ -70,6 +93,7 @@ var IntegrationHandler2 = HttpApiBuilder.group(Api2, "server.integration", (hand
70
93
  }));
71
94
  return HttpApiSchema.NoContent.make();
72
95
  })).handle("integration.oauth.connect", Effect.fn(function* (ctx) {
96
+ yield* requireConnectable2(ctx.params.integrationID);
73
97
  const service = yield* Integration.Service;
74
98
  return yield* response2(authorize(service.oauth.connect({
75
99
  integrationID: ctx.params.integrationID,
@@ -124,6 +148,7 @@ var IntegrationHandler2 = HttpApiBuilder.group(Api2, "server.integration", (hand
124
148
  });
125
149
  return HttpApiSchema.NoContent.make();
126
150
  })).handle("integration.command.connect", Effect.fn(function* (ctx) {
151
+ yield* requireConnectable2(ctx.params.integrationID);
127
152
  const service = yield* Integration.Service;
128
153
  const integration = yield* service.get(ctx.params.integrationID);
129
154
  if (!integration)
@@ -167,4 +192,4 @@ var IntegrationHandler2 = HttpApiBuilder.group(Api2, "server.integration", (hand
167
192
  }));
168
193
  }));
169
194
 
170
- export { IntegrationHandler2 };
195
+ export { requireConnectable2, IntegrationHandler2 };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-9c4eyh8m.js";
3
+ } from "./service-status-r5696se6.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./media-uri-j4at0y5c.js";
10
- import {
11
- Service3
12
- } from "./media-uri-b1prsepx.js";
9
+ } from "./service-status-j4at0y5c.js";
13
10
  import {
14
11
  Service4
15
- } from "./media-uri-mzs0n5xz.js";
12
+ } from "./service-status-7dtbad8d.js";
13
+ import {
14
+ Service3
15
+ } from "./service-status-w9jcwh65.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { hostname } from "node:os";
@@ -22,10 +22,10 @@ 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* Service3;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
- const info = yield* Service3;
28
+ const info = yield* Service4;
29
29
  return {
30
30
  version: info.app.version ?? "unknown",
31
31
  pid: process.pid ?? 0,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-9c4eyh8m.js";
7
+ } from "./service-status-r5696se6.js";
8
8
 
9
9
  // src/handlers/agent.ts
10
10
  import { Agent } from "@opencode/core/agent";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
@@ -1,24 +1,29 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-9c4eyh8m.js";
3
+ } from "./service-status-r5696se6.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./media-uri-q4bn6dy8.js";
7
+ } from "./service-status-q4bn6dy8.js";
8
8
  import {
9
9
  makeMediaGet2
10
- } from "./media-uri-n321d8vm.js";
10
+ } from "./service-status-n321d8vm.js";
11
11
  import {
12
12
  runPtySocket2
13
- } from "./media-uri-h6rt5k9s.js";
13
+ } from "./service-status-h6rt5k9s.js";
14
14
  import {
15
15
  makeSchedule2
16
- } from "./media-uri-xzvdbbpy.js";
16
+ } from "./service-status-059rbh9c.js";
17
17
 
18
18
  // src/handlers/persistent-pty.ts
19
19
  import { PersistentPty } from "@opencode/core/persistent-pty";
20
20
  import { PtyTicket } from "@opencode/core/pty/ticket";
21
- import { ForbiddenError, PtyNotFoundError, ServiceUnavailableError } from "@opencode/protocol/errors";
21
+ import {
22
+ ForbiddenError,
23
+ InvalidRequestError,
24
+ PtyNotFoundError,
25
+ ServiceUnavailableError
26
+ } from "@opencode/protocol/errors";
22
27
  import {
23
28
  PTY_CONNECT_TICKET_QUERY,
24
29
  PTY_CONNECT_TOKEN_HEADER,
@@ -48,7 +53,10 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
48
53
  env: ctx.payload.env,
49
54
  cols: ctx.payload.size?.cols,
50
55
  rows: ctx.payload.size?.rows
51
- }).pipe(Effect.catchTag("PersistentPty.UnavailableError", unavailable))
56
+ }).pipe(Effect.catchTags({
57
+ "PersistentPty.InvalidCwdError": (error) => new InvalidRequestError({ message: error.message, kind: "invalid_cwd", field: "cwd" }),
58
+ "PersistentPty.UnavailableError": unavailable
59
+ }))
52
60
  };
53
61
  })).handle("persistentPty.shutdown", Effect.fn(function* () {
54
62
  yield* pty.shutdown().pipe(mapUnavailable);
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./media-uri-gqq6kfhc.js";
5
+ } from "./service-status-gqq6kfhc.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
  missingSession2
3
- } from "./media-uri-smaf4a18.js";
3
+ } from "./service-status-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./media-uri-gk0yxcp6.js";
6
+ } from "./service-status-gk0yxcp6.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./media-uri-yet0vexm.js";
9
+ } from "./service-status-yet0vexm.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-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-9c4eyh8m.js";
3
+ } from "./service-status-r5696se6.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-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-9c4eyh8m.js";
7
+ } from "./service-status-r5696se6.js";
8
8
 
9
9
  // src/handlers/provider.ts
10
10
  import { Provider } from "@opencode/core/provider";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-9c4eyh8m.js";
3
+ } from "./service-status-r5696se6.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./service-status-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: () => Service4,
9
+ Service: () => Service3,
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 Service4 extends Context.Service()("@opencode/ServerPairing") {
17
+ class Service3 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(Service3, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service4.of({
22
+ return Service3.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 node2 = makeGlobalNode({ service: Service3, layer, deps: [] });
34
34
 
35
- export { Service4, node2, exports_pairing };
35
+ export { Service3, node2, exports_pairing };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./media-uri-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-9c4eyh8m.js";
7
+ } from "./service-status-r5696se6.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-9c4eyh8m.js";
6
+ } from "./service-status-r5696se6.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./media-uri-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -3,16 +3,16 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./media-uri-smaf4a18.js";
6
+ } from "./service-status-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./media-uri-gqq6kfhc.js";
9
+ } from "./service-status-gqq6kfhc.js";
10
10
  import {
11
11
  Api2
12
- } from "./media-uri-9c4eyh8m.js";
12
+ } from "./service-status-r5696se6.js";
13
13
  import {
14
14
  wantsMediaRefs2
15
- } from "./media-uri-xthc02cw.js";
15
+ } from "./service-status-xthc02cw.js";
16
16
 
17
17
  // src/handlers/session.ts
18
18
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-9c4eyh8m.js";
3
+ } from "./service-status-r5696se6.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-9c4eyh8m.js";
3
+ } from "./service-status-r5696se6.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
package/dist/cors.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CorsConfig2,
3
3
  isAllowedCorsOrigin2,
4
4
  isAllowedRequestOrigin2
5
- } from "./chunks/media-uri-q4bn6dy8.js";
5
+ } from "./chunks/service-status-q4bn6dy8.js";
6
6
  export {
7
7
  CorsConfig2 as CorsConfig,
8
8
  isAllowedCorsOrigin2 as isAllowedCorsOrigin,
@@ -7,7 +7,7 @@ import {
7
7
  make4,
8
8
  layer2,
9
9
  exports_event_feed
10
- } from "./chunks/media-uri-fvpjvjpp.js";
10
+ } from "./chunks/service-status-fvpjvjpp.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,