@opencode/server 2.2.2 → 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 (116) 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/{workerd-059rbh9c.js → service-status-059rbh9c.js} +1 -1
  5. package/dist/chunks/{workerd-0e4fm4yw.js → service-status-0e4fm4yw.js} +1 -1
  6. package/dist/chunks/{workerd-yemng8y6.js → service-status-0mnp9wde.js} +6 -6
  7. package/dist/chunks/{workerd-0pbbhyf6.js → service-status-0pbbhyf6.js} +2 -2
  8. package/dist/chunks/{workerd-1s3664te.js → service-status-1s3664te.js} +4 -4
  9. package/dist/chunks/service-status-1t8ee1b5.js +61 -0
  10. package/dist/chunks/{workerd-2835150m.js → service-status-2835150m.js} +2 -2
  11. package/dist/chunks/{workerd-2qjvs0kv.js → service-status-2qjvs0kv.js} +4 -4
  12. package/dist/chunks/{workerd-370cpmna.js → service-status-370cpmna.js} +2 -2
  13. package/dist/chunks/{workerd-ze052fvn.js → service-status-39fj7rnq.js} +11 -11
  14. package/dist/chunks/{workerd-0q7s66m2.js → service-status-39nnfjx1.js} +4 -4
  15. package/dist/chunks/{workerd-50xc6x42.js → service-status-50xc6x42.js} +3 -3
  16. package/dist/chunks/{workerd-5z5anmwp.js → service-status-5z5anmwp.js} +2 -2
  17. package/dist/chunks/{workerd-71pkxez6.js → service-status-6211mtn3.js} +33 -33
  18. package/dist/chunks/{workerd-74kxthdf.js → service-status-74kxthdf.js} +1 -1
  19. package/dist/chunks/{workerd-7b9xm1qg.js → service-status-7b9xm1qg.js} +1 -1
  20. package/dist/chunks/{workerd-7cd61xtm.js → service-status-7cd61xtm.js} +2 -2
  21. package/dist/chunks/{workerd-7dtbad8d.js → service-status-7dtbad8d.js} +1 -1
  22. package/dist/chunks/{workerd-7tewdwsb.js → service-status-7tewdwsb.js} +2 -2
  23. package/dist/chunks/{workerd-7x1re4zg.js → service-status-7x1re4zg.js} +2 -2
  24. package/dist/chunks/{workerd-zhns4s2s.js → service-status-9jpfpdce.js} +4 -4
  25. package/dist/chunks/{workerd-5553qfcy.js → service-status-ac10qb5k.js} +3 -3
  26. package/dist/chunks/{workerd-4gk9fc6f.js → service-status-bv5jg9y6.js} +29 -4
  27. package/dist/chunks/{workerd-wh109kze.js → service-status-dm74gm07.js} +6 -6
  28. package/dist/chunks/{workerd-f4exzdsf.js → service-status-f4exzdsf.js} +2 -2
  29. package/dist/chunks/{workerd-20b2yx1f.js → service-status-fvpjvjpp.js} +9 -9
  30. package/dist/chunks/{workerd-fvqb5t8b.js → service-status-fvqb5t8b.js} +5 -5
  31. package/dist/chunks/{workerd-gk0yxcp6.js → service-status-gk0yxcp6.js} +1 -1
  32. package/dist/chunks/{workerd-gqq6kfhc.js → service-status-gqq6kfhc.js} +1 -1
  33. package/dist/chunks/{workerd-j4at0y5c.js → service-status-j4at0y5c.js} +1 -1
  34. package/dist/chunks/{workerd-jc2vwkyw.js → service-status-jc2vwkyw.js} +2 -2
  35. package/dist/chunks/{workerd-r5696se6.js → service-status-r5696se6.js} +3 -3
  36. package/dist/chunks/{workerd-rxyx8sa0.js → service-status-rxyx8sa0.js} +2 -2
  37. package/dist/chunks/{workerd-skcryrty.js → service-status-skcryrty.js} +2 -2
  38. package/dist/chunks/{workerd-sqxx1p54.js → service-status-sqxx1p54.js} +2 -2
  39. package/dist/chunks/{workerd-vfkjeyp3.js → service-status-vfkjeyp3.js} +1 -1
  40. package/dist/chunks/{workerd-vtfzy3at.js → service-status-vtfzy3at.js} +2 -2
  41. package/dist/chunks/{workerd-vvp99hc9.js → service-status-vvp99hc9.js} +1 -1
  42. package/dist/chunks/{workerd-kqr36gas.js → service-status-w9jcwh65.js} +7 -7
  43. package/dist/chunks/{workerd-wqv43pj9.js → service-status-wqv43pj9.js} +2 -2
  44. package/dist/chunks/{workerd-xbqm7mpj.js → service-status-xbqm7mpj.js} +2 -2
  45. package/dist/chunks/{workerd-xpg37vzc.js → service-status-xpg37vzc.js} +2 -2
  46. package/dist/chunks/{workerd-yet0vexm.js → service-status-yet0vexm.js} +1 -1
  47. package/dist/chunks/{workerd-z9kgby92.js → service-status-zkg10e14.js} +4 -4
  48. package/dist/chunks/{workerd-zmgfywqd.js → service-status-zmgfywqd.js} +1 -1
  49. package/dist/chunks/{workerd-zyntahe8.js → service-status-zyntahe8.js} +1 -1
  50. package/dist/cors.js +1 -1
  51. package/dist/event-feed.js +5 -5
  52. package/dist/fetch.js +53 -53
  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.js +6 -6
  72. package/dist/handlers/persistent-pty.js +10 -10
  73. package/dist/handlers/plugin.js +6 -6
  74. package/dist/handlers/project.js +6 -6
  75. package/dist/handlers/provider.js +6 -6
  76. package/dist/handlers/pty-socket.js +1 -1
  77. package/dist/handlers/pty.js +8 -8
  78. package/dist/handlers/reference.js +6 -6
  79. package/dist/handlers/rpc.js +6 -6
  80. package/dist/handlers/schedule.d.ts +30 -0
  81. package/dist/handlers/schedule.js +2 -2
  82. package/dist/handlers/server.js +9 -9
  83. package/dist/handlers/session-error.js +1 -1
  84. package/dist/handlers/session.js +7 -7
  85. package/dist/handlers/shell.js +6 -6
  86. package/dist/handlers/skill.js +6 -6
  87. package/dist/handlers/usage.js +6 -6
  88. package/dist/handlers/vcs.js +6 -6
  89. package/dist/handlers/voice.js +6 -6
  90. package/dist/handlers/websearch.js +6 -6
  91. package/dist/handlers/worktree.js +6 -6
  92. package/dist/handlers.js +47 -47
  93. package/dist/location.js +2 -2
  94. package/dist/media-uri.js +1 -1
  95. package/dist/middleware/authorization.js +2 -2
  96. package/dist/middleware/form-location.js +3 -3
  97. package/dist/middleware/schema-error.js +1 -1
  98. package/dist/middleware/session-location.js +3 -3
  99. package/dist/pairing.js +3 -3
  100. package/dist/process.js +55 -55
  101. package/dist/request-tracing.js +1 -1
  102. package/dist/routes.js +50 -50
  103. package/dist/server-info.js +1 -1
  104. package/dist/service-status.js +3 -3
  105. package/dist/workerd.d.ts +4 -3
  106. package/dist/workerd.js +68 -54
  107. package/package.json +8 -8
  108. package/dist/chunks/workerd-hdwd22w5.js +0 -47
  109. /package/dist/chunks/{workerd-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
  110. /package/dist/chunks/{workerd-bd8755ek.js → service-status-bd8755ek.js} +0 -0
  111. /package/dist/chunks/{workerd-h6rt5k9s.js → service-status-h6rt5k9s.js} +0 -0
  112. /package/dist/chunks/{workerd-n321d8vm.js → service-status-n321d8vm.js} +0 -0
  113. /package/dist/chunks/{workerd-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
  114. /package/dist/chunks/{workerd-smaf4a18.js → service-status-smaf4a18.js} +0 -0
  115. /package/dist/chunks/{workerd-xthc02cw.js → service-status-xthc02cw.js} +0 -0
  116. /package/dist/chunks/{workerd-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-r5696se6.js";
3
+ } from "./service-status-r5696se6.js";
4
4
  import {
5
- Service3,
5
+ Service2,
6
6
  frame2
7
- } from "./workerd-20b2yx1f.js";
7
+ } from "./service-status-fvpjvjpp.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
12
12
  import { HttpServerResponse } from "effect/http";
13
13
  import { HttpApiBuilder } from "effect/http-api";
14
14
  var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
15
- const feed = yield* Service3;
15
+ const feed = yield* Service2;
16
16
  return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
17
17
  const connected = {
18
18
  id: Event.ID.create(),
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./workerd-smaf4a18.js";
4
+ } from "./service-status-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./workerd-r5696se6.js";
7
+ } from "./service-status-r5696se6.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./workerd-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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-r5696se6.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 "./workerd-j4at0y5c.js";
9
+ } from "./service-status-j4at0y5c.js";
10
10
  import {
11
11
  Service4
12
- } from "./workerd-7dtbad8d.js";
12
+ } from "./service-status-7dtbad8d.js";
13
13
  import {
14
- Service2
15
- } from "./workerd-kqr36gas.js";
14
+ Service3
15
+ } from "./service-status-w9jcwh65.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* Service2;
25
+ const pairing = yield* Service3;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
28
  const info = yield* Service4;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./workerd-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./workerd-r5696se6.js";
7
+ } from "./service-status-r5696se6.js";
8
8
 
9
9
  // src/handlers/agent.ts
10
10
  import { Agent } from "@opencode/core/agent";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./service-status-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service3,
10
+ Service: () => Service2,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
14
  layer: () => layer2,
15
- make: () => make3
15
+ make: () => make4
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
18
18
  import { Event } from "@opencode/schema/event";
@@ -30,14 +30,14 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
30
30
  }) {
31
31
  }
32
32
 
33
- class Service3 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)}
37
37
 
38
38
  `;
39
39
  }
40
- var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
40
+ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
41
41
  const capacity = options?.capacity ?? SubscriberCapacity2;
42
42
  const render = options?.encode ?? frame2;
43
43
  const subscribers = new Map;
@@ -72,13 +72,13 @@ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
72
72
  });
73
73
  const unsubscribe = yield* observe(publish);
74
74
  yield* Effect.addFinalizer(() => unsubscribe);
75
- return Service3.of({
75
+ return Service2.of({
76
76
  subscribe: (types) => Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.set(queue, types?.length ? new Set(types) : undefined)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
77
77
  });
78
78
  });
79
- var layer2 = Layer.effect(Service3, Effect.gen(function* () {
79
+ var layer2 = Layer.effect(Service2, Effect.gen(function* () {
80
80
  const bus = yield* Bus.Service;
81
- return yield* make3(bus.listen);
81
+ return yield* make4(bus.listen);
82
82
  }));
83
83
 
84
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service3, frame2, make3, layer2, exports_event_feed };
84
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-r5696se6.js";
3
+ } from "./service-status-r5696se6.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./workerd-q4bn6dy8.js";
7
+ } from "./service-status-q4bn6dy8.js";
8
8
  import {
9
9
  makeMediaGet2
10
- } from "./workerd-n321d8vm.js";
10
+ } from "./service-status-n321d8vm.js";
11
11
  import {
12
12
  runPtySocket2
13
- } from "./workerd-h6rt5k9s.js";
13
+ } from "./service-status-h6rt5k9s.js";
14
14
  import {
15
15
  makeSchedule2
16
- } from "./workerd-059rbh9c.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";
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./workerd-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 "./workerd-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 "./workerd-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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./workerd-gk0yxcp6.js";
6
+ } from "./service-status-gk0yxcp6.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./workerd-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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-r5696se6.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 "./workerd-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./workerd-r5696se6.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 "./workerd-r5696se6.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 "./workerd-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: () => Service2,
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 Service2 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(Service2, 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 Service2.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(Service2, Effect.gen(function* () {
30
30
  })
31
31
  });
32
32
  }));
33
- var node2 = makeGlobalNode({ service: Service2, layer, deps: [] });
33
+ var node2 = makeGlobalNode({ service: Service3, layer, deps: [] });
34
34
 
35
- export { Service2, node2, exports_pairing };
35
+ export { Service3, node2, exports_pairing };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./workerd-gqq6kfhc.js";
4
+ } from "./service-status-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./workerd-r5696se6.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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-gqq6kfhc.js";
3
+ } from "./service-status-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.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 "./workerd-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 "./workerd-smaf4a18.js";
6
+ } from "./service-status-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./workerd-gqq6kfhc.js";
9
+ } from "./service-status-gqq6kfhc.js";
10
10
  import {
11
11
  Api2
12
- } from "./workerd-r5696se6.js";
12
+ } from "./service-status-r5696se6.js";
13
13
  import {
14
14
  wantsMediaRefs2
15
- } from "./workerd-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 "./workerd-r5696se6.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 "./workerd-r5696se6.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/workerd-q4bn6dy8.js";
5
+ } from "./chunks/service-status-q4bn6dy8.js";
6
6
  export {
7
7
  CorsConfig2 as CorsConfig,
8
8
  isAllowedCorsOrigin2 as isAllowedCorsOrigin,
@@ -2,19 +2,19 @@ import {
2
2
  SubscriberCapacity2,
3
3
  SubscriberOverflowError2,
4
4
  EncodingError2,
5
- Service3,
5
+ Service2,
6
6
  frame2,
7
- make3,
7
+ make4,
8
8
  layer2,
9
9
  exports_event_feed
10
- } from "./chunks/workerd-20b2yx1f.js";
10
+ } from "./chunks/service-status-fvpjvjpp.js";
11
11
  export {
12
12
  EncodingError2 as EncodingError,
13
13
  exports_event_feed as EventFeed,
14
- Service3 as Service,
14
+ Service2 as Service,
15
15
  SubscriberCapacity2 as SubscriberCapacity,
16
16
  SubscriberOverflowError2 as SubscriberOverflowError,
17
17
  frame2 as frame,
18
18
  layer2 as layer,
19
- make3 as make
19
+ make4 as make
20
20
  };