@opencode/server 0.0.0-dev-1141 → 0.0.0-dev-1153

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 (121) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{request-site-059rbh9c.js → handlers-059rbh9c.js} +1 -1
  4. package/dist/chunks/{request-site-a8jcac9a.js → handlers-05c5061t.js} +1 -1
  5. package/dist/chunks/{request-site-j87xz9bt.js → handlers-0e81et3m.js} +3 -3
  6. package/dist/chunks/{request-site-hxzpzbpx.js → handlers-0h34b0f1.js} +5 -5
  7. package/dist/chunks/{request-site-yqhefp4s.js → handlers-0j6zxxn8.js} +2 -2
  8. package/dist/chunks/{request-site-91858wp1.js → handlers-2pbbrzpp.js} +2 -2
  9. package/dist/chunks/{request-site-yjbzmfhm.js → handlers-3te71694.js} +5 -5
  10. package/dist/chunks/{request-site-09kw3a77.js → handlers-4ed680xg.js} +2 -2
  11. package/dist/chunks/{request-site-rha2aq18.js → handlers-4p2y0qs3.js} +2 -2
  12. package/dist/chunks/{request-site-50bbk3b2.js → handlers-50bbk3b2.js} +1 -1
  13. package/dist/chunks/{request-site-15ftw0kt.js → handlers-58n429bk.js} +3 -3
  14. package/dist/chunks/{request-site-78rcgzsr.js → handlers-78rcgzsr.js} +1 -1
  15. package/dist/chunks/{request-site-7b9xm1qg.js → handlers-7b9xm1qg.js} +1 -1
  16. package/dist/chunks/{request-site-8qkc4x1k.js → handlers-7nb2rv11.js} +4 -4
  17. package/dist/chunks/{request-site-enp1bp7r.js → handlers-861wfsmy.js} +1 -1
  18. package/dist/chunks/{request-site-az0609r6.js → handlers-9grnt8dc.js} +2 -2
  19. package/dist/chunks/{request-site-b3bmdkga.js → handlers-b3bmdkga.js} +1 -1
  20. package/dist/chunks/{request-site-4q6e7fh8.js → handlers-b4mqtccx.js} +2 -2
  21. package/dist/chunks/{request-site-5cpb32hf.js → handlers-d8b9pm2q.js} +1 -1
  22. package/dist/chunks/{request-site-8mj7kvhm.js → handlers-dezpcckc.js} +2 -2
  23. package/dist/chunks/{request-site-djr0jy89.js → handlers-djr0jy89.js} +1 -1
  24. package/dist/chunks/{request-site-kkdkqt8j.js → handlers-dx89xydc.js} +2 -2
  25. package/dist/chunks/{request-site-1ndv3m9h.js → handlers-dz2mkdr7.js} +4 -4
  26. package/dist/chunks/{request-site-0q7s66m2.js → handlers-e6e4kz0w.js} +4 -4
  27. package/dist/chunks/{request-site-d0edqfxx.js → handlers-et00mhwf.js} +2 -2
  28. package/dist/chunks/{request-site-p9aw5n5a.js → handlers-ev2taemj.js} +33 -33
  29. package/dist/chunks/{request-site-qd0r787n.js → handlers-f8r9p2vr.js} +2 -2
  30. package/dist/chunks/{request-site-gyryr0mf.js → handlers-feabp8g5.js} +4 -4
  31. package/dist/chunks/{request-site-vj1qg112.js → handlers-fq2pk4yf.js} +7 -7
  32. package/dist/chunks/{request-site-20b2yx1f.js → handlers-fvpjvjpp.js} +9 -9
  33. package/dist/chunks/{request-site-qcg3sqtb.js → handlers-h1thjy6x.js} +2 -2
  34. package/dist/chunks/{request-site-rs3v36hp.js → handlers-h286a6py.js} +2 -2
  35. package/dist/chunks/{request-site-htyf2qs7.js → handlers-htyf2qs7.js} +1 -1
  36. package/dist/chunks/{request-site-cezwbsk5.js → handlers-hx8bsq9d.js} +1 -1
  37. package/dist/chunks/{request-site-j4at0y5c.js → handlers-j4at0y5c.js} +1 -1
  38. package/dist/chunks/{request-site-btahnm2b.js → handlers-kg0ybx4v.js} +3 -3
  39. package/dist/chunks/{request-site-5s0wnsg4.js → handlers-m119esdv.js} +3 -3
  40. package/dist/chunks/{request-site-myqk22k5.js → handlers-myqk22k5.js} +2 -2
  41. package/dist/chunks/{request-site-kqr36gas.js → handlers-mzs0n5xz.js} +7 -7
  42. package/dist/chunks/{request-site-p86kew8c.js → handlers-p86kew8c.js} +2 -2
  43. package/dist/chunks/{request-site-8frfbbhr.js → handlers-pxx342gc.js} +8 -8
  44. package/dist/chunks/{request-site-ny1j968n.js → handlers-q44yktpv.js} +2 -2
  45. package/dist/chunks/{request-site-te8jwba1.js → handlers-s9tkswmw.js} +2 -2
  46. package/dist/chunks/{request-site-t32e1bbt.js → handlers-t32e1bbt.js} +1 -1
  47. package/dist/chunks/{request-site-yk755swr.js → handlers-tk56ffsq.js} +2 -2
  48. package/dist/chunks/{request-site-f559fakr.js → handlers-v8aqacn3.js} +2 -2
  49. package/dist/chunks/{request-site-2eaky32g.js → handlers-vbgqk0mr.js} +2 -2
  50. package/dist/chunks/{request-site-psw29prz.js → handlers-wq29mwx6.js} +4 -4
  51. package/dist/chunks/{request-site-6z9pvq7p.js → handlers-x4b2rtcb.js} +1 -1
  52. package/dist/chunks/{request-site-1jkyba64.js → handlers-yspq6mns.js} +14 -12
  53. package/dist/chunks/{request-site-zcvan105.js → handlers-zbe9jfhy.js} +1 -1
  54. package/dist/content-headers.js +1 -1
  55. package/dist/cors.js +1 -1
  56. package/dist/event-feed.js +5 -5
  57. package/dist/fetch.js +56 -56
  58. package/dist/handlers/agent.js +6 -6
  59. package/dist/handlers/artifact.js +3 -3
  60. package/dist/handlers/command.js +6 -6
  61. package/dist/handlers/config.js +6 -6
  62. package/dist/handlers/credential.js +7 -7
  63. package/dist/handlers/debug.js +6 -6
  64. package/dist/handlers/event.js +7 -7
  65. package/dist/handlers/form.js +6 -6
  66. package/dist/handlers/fs.js +7 -7
  67. package/dist/handlers/generate.js +6 -6
  68. package/dist/handlers/integration.js +6 -6
  69. package/dist/handlers/job.js +2 -2
  70. package/dist/handlers/location.js +6 -6
  71. package/dist/handlers/mcp.js +8 -8
  72. package/dist/handlers/media.js +2 -2
  73. package/dist/handlers/message.js +7 -7
  74. package/dist/handlers/migration.js +6 -6
  75. package/dist/handlers/model.js +6 -6
  76. package/dist/handlers/permission.js +6 -6
  77. package/dist/handlers/persistent-pty.d.ts +1 -1
  78. package/dist/handlers/persistent-pty.js +13 -13
  79. package/dist/handlers/plugin.js +6 -6
  80. package/dist/handlers/project.js +6 -6
  81. package/dist/handlers/provider.js +6 -6
  82. package/dist/handlers/pty-socket.js +1 -1
  83. package/dist/handlers/pty.js +8 -8
  84. package/dist/handlers/reference.js +6 -6
  85. package/dist/handlers/rpc.js +6 -6
  86. package/dist/handlers/schedule.js +2 -2
  87. package/dist/handlers/server.js +9 -9
  88. package/dist/handlers/session-error.js +1 -1
  89. package/dist/handlers/session.js +7 -7
  90. package/dist/handlers/shell.js +6 -6
  91. package/dist/handlers/skill.js +6 -6
  92. package/dist/handlers/usage.js +6 -6
  93. package/dist/handlers/vcs.js +6 -6
  94. package/dist/handlers/voice.js +6 -6
  95. package/dist/handlers/websearch.js +6 -6
  96. package/dist/handlers/worktree.js +6 -6
  97. package/dist/handlers.d.ts +1 -1
  98. package/dist/handlers.js +50 -50
  99. package/dist/location.js +2 -2
  100. package/dist/media-uri.js +1 -1
  101. package/dist/middleware/authorization.js +2 -2
  102. package/dist/middleware/form-location.js +3 -3
  103. package/dist/middleware/schema-error.js +1 -1
  104. package/dist/middleware/session-location.js +3 -3
  105. package/dist/pairing.js +3 -3
  106. package/dist/process.js +59 -59
  107. package/dist/request-site.js +2 -2
  108. package/dist/request-tracing.js +1 -1
  109. package/dist/routes.d.ts +3 -2
  110. package/dist/routes.js +53 -53
  111. package/dist/server-info.js +3 -3
  112. package/dist/service-status.js +3 -3
  113. package/dist/workerd.js +57 -57
  114. package/package.json +8 -8
  115. /package/dist/chunks/{request-site-9rqn6x4v.js → handlers-9rqn6x4v.js} +0 -0
  116. /package/dist/chunks/{request-site-bd8755ek.js → handlers-bd8755ek.js} +0 -0
  117. /package/dist/chunks/{request-site-q187pxxd.js → handlers-q187pxxd.js} +0 -0
  118. /package/dist/chunks/{request-site-q4bn6dy8.js → handlers-q4bn6dy8.js} +0 -0
  119. /package/dist/chunks/{request-site-smaf4a18.js → handlers-smaf4a18.js} +0 -0
  120. /package/dist/chunks/{request-site-xthc02cw.js → handlers-xthc02cw.js} +0 -0
  121. /package/dist/chunks/{request-site-yc7nft6q.js → handlers-yc7nft6q.js} +0 -0
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  __export
3
- } from "./request-site-9rqn6x4v.js";
3
+ } from "./handlers-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,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./request-site-50bbk3b2.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-site-j87xz9bt.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-site-50bbk3b2.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-site-j87xz9bt.js";
6
+ } from "./handlers-0e81et3m.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 "./request-site-50bbk3b2.js";
5
+ } from "./handlers-50bbk3b2.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-site-j87xz9bt.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./request-site-9rqn6x4v.js";
3
+ } from "./handlers-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./request-site-smaf4a18.js";
3
+ } from "./handlers-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./request-site-50bbk3b2.js";
8
+ } from "./handlers-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./request-site-j87xz9bt.js";
11
+ } from "./handlers-0e81et3m.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./request-site-smaf4a18.js";
4
+ } from "./handlers-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-site-j87xz9bt.js";
7
+ } from "./handlers-0e81et3m.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./request-site-xthc02cw.js";
10
+ } from "./handlers-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
  isAllowedRequestOrigin2
3
- } from "./request-site-q4bn6dy8.js";
3
+ } from "./handlers-q4bn6dy8.js";
4
4
  import {
5
5
  __export
6
- } from "./request-site-9rqn6x4v.js";
6
+ } from "./handlers-9rqn6x4v.js";
7
7
 
8
8
  // src/request-site.ts
9
9
  var exports_request_site = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./request-site-9rqn6x4v.js";
3
+ } from "./handlers-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: () => Service4,
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 Service4 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(Service4, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service2.of({
22
+ return Service4.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: Service4, layer, deps: [] });
34
34
 
35
- export { Service2, node2, exports_pairing };
35
+ export { Service4, node2, exports_pairing };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./request-site-smaf4a18.js";
3
+ } from "./handlers-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  requestRef2
8
- } from "./request-site-50bbk3b2.js";
8
+ } from "./handlers-50bbk3b2.js";
9
9
 
10
10
  // src/handlers/artifact.ts
11
11
  import { Artifact } from "@opencode/core/artifact";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-site-j87xz9bt.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./request-site-j4at0y5c.js";
9
+ } from "./handlers-j4at0y5c.js";
10
10
  import {
11
- Service4
12
- } from "./request-site-yjbzmfhm.js";
11
+ Service3
12
+ } from "./handlers-3te71694.js";
13
13
  import {
14
- Service2
15
- } from "./request-site-kqr36gas.js";
14
+ Service4
15
+ } from "./handlers-mzs0n5xz.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* Service2;
25
+ const pairing = yield* Service4;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
- const info = yield* Service4;
28
+ const info = yield* Service3;
29
29
  return {
30
30
  version: info.app.version ?? "unknown",
31
31
  pid: process.pid ?? 0,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-site-50bbk3b2.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-site-j87xz9bt.js";
6
+ } from "./handlers-0e81et3m.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 "./request-site-50bbk3b2.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-site-j87xz9bt.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./request-site-9rqn6x4v.js";
3
+ } from "./handlers-9rqn6x4v.js";
4
4
 
5
5
  // src/content-headers.ts
6
6
  var exports_content_headers = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-site-j87xz9bt.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
  import {
5
5
  requireConnectable2
6
- } from "./request-site-91858wp1.js";
6
+ } from "./handlers-2pbbrzpp.js";
7
7
 
8
8
  // src/handlers/credential.ts
9
9
  import { Credential } from "@opencode/core/credential";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-site-50bbk3b2.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-site-j87xz9bt.js";
6
+ } from "./handlers-0e81et3m.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 "./request-site-50bbk3b2.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-site-j87xz9bt.js";
6
+ } from "./handlers-0e81et3m.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./request-site-50bbk3b2.js";
5
+ } from "./handlers-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./request-site-j87xz9bt.js";
8
+ } from "./handlers-0e81et3m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./request-site-q4bn6dy8.js";
12
+ } from "./handlers-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./request-site-q187pxxd.js";
16
+ } from "./handlers-q187pxxd.js";
17
17
 
18
18
  // src/handlers/pty.ts
19
19
  import { Pty } from "@opencode/core/pty";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-site-j87xz9bt.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,36 +1,36 @@
1
1
  import {
2
2
  layer4
3
- } from "./request-site-50bbk3b2.js";
3
+ } from "./handlers-50bbk3b2.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./request-site-htyf2qs7.js";
6
+ } from "./handlers-htyf2qs7.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./request-site-b3bmdkga.js";
9
+ } from "./handlers-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./request-site-j87xz9bt.js";
12
+ } from "./handlers-0e81et3m.js";
13
13
  import {
14
14
  Config2
15
- } from "./request-site-j4at0y5c.js";
15
+ } from "./handlers-j4at0y5c.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./request-site-q4bn6dy8.js";
18
+ } from "./handlers-q4bn6dy8.js";
19
19
  import {
20
20
  layer3
21
- } from "./request-site-yjbzmfhm.js";
21
+ } from "./handlers-3te71694.js";
22
22
  import {
23
23
  node2
24
- } from "./request-site-kqr36gas.js";
24
+ } from "./handlers-mzs0n5xz.js";
25
25
  import {
26
26
  handlers2
27
- } from "./request-site-p9aw5n5a.js";
27
+ } from "./handlers-ev2taemj.js";
28
28
  import {
29
29
  authorizationLayer2
30
- } from "./request-site-7b9xm1qg.js";
30
+ } from "./handlers-7b9xm1qg.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./request-site-bd8755ek.js";
33
+ } from "./handlers-bd8755ek.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -54,6 +54,7 @@ import { Instance } from "@opencode/core/instance/service";
54
54
  import { SessionTransfer } from "@opencode/core/session/transfer";
55
55
  import { InstructionEntry } from "@opencode/core/session/instruction-entry";
56
56
  import { ShellSelect } from "@opencode/core/shell/select";
57
+ import { Shell } from "@opencode/core/shell";
57
58
  import { Job } from "@opencode/core/job";
58
59
  import { KV } from "@opencode/core/kv";
59
60
  import { Mcp } from "@opencode/core/mcp/index";
@@ -81,6 +82,8 @@ var applicationServiceNodes = [
81
82
  Database.node,
82
83
  KV.node,
83
84
  Bus.node,
85
+ PersistentPty.node,
86
+ Shell.daemonNode,
84
87
  EventLogger.node,
85
88
  httpClient,
86
89
  Job.node,
@@ -95,7 +98,6 @@ var applicationServiceNodes = [
95
98
  PluginUpdate.node,
96
99
  PermissionSaved.node,
97
100
  PtyTicket.node,
98
- PersistentPty.node,
99
101
  Credential.node,
100
102
  WellKnown.node,
101
103
  node2,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-site-j87xz9bt.js";
3
+ } from "./handlers-0e81et3m.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -3,7 +3,7 @@ import {
3
3
  download2,
4
4
  disposition2,
5
5
  exports_content_headers
6
- } from "./chunks/request-site-t32e1bbt.js";
6
+ } from "./chunks/handlers-t32e1bbt.js";
7
7
  export {
8
8
  CONTENT_SECURITY_POLICY2 as CONTENT_SECURITY_POLICY,
9
9
  exports_content_headers as ContentHeaders,
package/dist/cors.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CorsConfig2,
3
3
  isAllowedCorsOrigin2,
4
4
  isAllowedRequestOrigin2
5
- } from "./chunks/request-site-q4bn6dy8.js";
5
+ } from "./chunks/handlers-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/request-site-20b2yx1f.js";
10
+ } from "./chunks/handlers-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
  };
package/dist/fetch.js CHANGED
@@ -1,62 +1,62 @@
1
1
  import {
2
2
  make2,
3
3
  exports_fetch
4
- } from "./chunks/request-site-hxzpzbpx.js";
5
- import"./chunks/request-site-1jkyba64.js";
6
- import"./chunks/request-site-7b9xm1qg.js";
7
- import"./chunks/request-site-bd8755ek.js";
8
- import"./chunks/request-site-p9aw5n5a.js";
9
- import"./chunks/request-site-qcg3sqtb.js";
10
- import"./chunks/request-site-kkdkqt8j.js";
11
- import"./chunks/request-site-yqhefp4s.js";
12
- import"./chunks/request-site-5cpb32hf.js";
13
- import"./chunks/request-site-4q6e7fh8.js";
14
- import"./chunks/request-site-8frfbbhr.js";
15
- import"./chunks/request-site-rs3v36hp.js";
16
- import"./chunks/request-site-a8jcac9a.js";
17
- import"./chunks/request-site-gyryr0mf.js";
18
- import"./chunks/request-site-yk755swr.js";
19
- import"./chunks/request-site-ny1j968n.js";
20
- import"./chunks/request-site-f559fakr.js";
21
- import"./chunks/request-site-te8jwba1.js";
22
- import"./chunks/request-site-az0609r6.js";
23
- import"./chunks/request-site-psw29prz.js";
24
- import"./chunks/request-site-2eaky32g.js";
25
- import"./chunks/request-site-91858wp1.js";
26
- import"./chunks/request-site-8qkc4x1k.js";
27
- import"./chunks/request-site-zcvan105.js";
28
- import"./chunks/request-site-d0edqfxx.js";
29
- import"./chunks/request-site-6z9pvq7p.js";
30
- import"./chunks/request-site-enp1bp7r.js";
31
- import"./chunks/request-site-1ndv3m9h.js";
32
- import"./chunks/request-site-5s0wnsg4.js";
33
- import"./chunks/request-site-rha2aq18.js";
34
- import"./chunks/request-site-09kw3a77.js";
35
- import"./chunks/request-site-8mj7kvhm.js";
36
- import"./chunks/request-site-btahnm2b.js";
37
- import"./chunks/request-site-qd0r787n.js";
38
- import"./chunks/request-site-15ftw0kt.js";
39
- import"./chunks/request-site-xthc02cw.js";
40
- import"./chunks/request-site-vj1qg112.js";
41
- import"./chunks/request-site-78rcgzsr.js";
42
- import"./chunks/request-site-djr0jy89.js";
43
- import"./chunks/request-site-059rbh9c.js";
44
- import"./chunks/request-site-p86kew8c.js";
45
- import"./chunks/request-site-q187pxxd.js";
46
- import"./chunks/request-site-cezwbsk5.js";
47
- import"./chunks/request-site-kqr36gas.js";
48
- import"./chunks/request-site-20b2yx1f.js";
49
- import"./chunks/request-site-j4at0y5c.js";
50
- import"./chunks/request-site-myqk22k5.js";
51
- import"./chunks/request-site-t32e1bbt.js";
52
- import"./chunks/request-site-yjbzmfhm.js";
53
- import"./chunks/request-site-q4bn6dy8.js";
54
- import"./chunks/request-site-j87xz9bt.js";
55
- import"./chunks/request-site-htyf2qs7.js";
56
- import"./chunks/request-site-b3bmdkga.js";
57
- import"./chunks/request-site-50bbk3b2.js";
58
- import"./chunks/request-site-smaf4a18.js";
59
- import"./chunks/request-site-yc7nft6q.js";
4
+ } from "./chunks/handlers-0h34b0f1.js";
5
+ import"./chunks/handlers-yc7nft6q.js";
6
+ import"./chunks/handlers-yspq6mns.js";
7
+ import"./chunks/handlers-7b9xm1qg.js";
8
+ import"./chunks/handlers-bd8755ek.js";
9
+ import"./chunks/handlers-ev2taemj.js";
10
+ import"./chunks/handlers-fq2pk4yf.js";
11
+ import"./chunks/handlers-d8b9pm2q.js";
12
+ import"./chunks/handlers-vbgqk0mr.js";
13
+ import"./chunks/handlers-f8r9p2vr.js";
14
+ import"./chunks/handlers-feabp8g5.js";
15
+ import"./chunks/handlers-h286a6py.js";
16
+ import"./chunks/handlers-b4mqtccx.js";
17
+ import"./chunks/handlers-4ed680xg.js";
18
+ import"./chunks/handlers-7nb2rv11.js";
19
+ import"./chunks/handlers-dezpcckc.js";
20
+ import"./chunks/handlers-zbe9jfhy.js";
21
+ import"./chunks/handlers-m119esdv.js";
22
+ import"./chunks/handlers-4p2y0qs3.js";
23
+ import"./chunks/handlers-v8aqacn3.js";
24
+ import"./chunks/handlers-q44yktpv.js";
25
+ import"./chunks/handlers-p86kew8c.js";
26
+ import"./chunks/handlers-tk56ffsq.js";
27
+ import"./chunks/handlers-dx89xydc.js";
28
+ import"./chunks/handlers-s9tkswmw.js";
29
+ import"./chunks/handlers-et00mhwf.js";
30
+ import"./chunks/handlers-05c5061t.js";
31
+ import"./chunks/handlers-dz2mkdr7.js";
32
+ import"./chunks/handlers-9grnt8dc.js";
33
+ import"./chunks/handlers-wq29mwx6.js";
34
+ import"./chunks/handlers-q187pxxd.js";
35
+ import"./chunks/handlers-58n429bk.js";
36
+ import"./chunks/handlers-x4b2rtcb.js";
37
+ import"./chunks/handlers-861wfsmy.js";
38
+ import"./chunks/handlers-0j6zxxn8.js";
39
+ import"./chunks/handlers-kg0ybx4v.js";
40
+ import"./chunks/handlers-pxx342gc.js";
41
+ import"./chunks/handlers-fvpjvjpp.js";
42
+ import"./chunks/handlers-78rcgzsr.js";
43
+ import"./chunks/handlers-h1thjy6x.js";
44
+ import"./chunks/handlers-hx8bsq9d.js";
45
+ import"./chunks/handlers-059rbh9c.js";
46
+ import"./chunks/handlers-2pbbrzpp.js";
47
+ import"./chunks/handlers-djr0jy89.js";
48
+ import"./chunks/handlers-j4at0y5c.js";
49
+ import"./chunks/handlers-3te71694.js";
50
+ import"./chunks/handlers-xthc02cw.js";
51
+ import"./chunks/handlers-mzs0n5xz.js";
52
+ import"./chunks/handlers-0e81et3m.js";
53
+ import"./chunks/handlers-b3bmdkga.js";
54
+ import"./chunks/handlers-htyf2qs7.js";
55
+ import"./chunks/handlers-50bbk3b2.js";
56
+ import"./chunks/handlers-smaf4a18.js";
57
+ import"./chunks/handlers-t32e1bbt.js";
58
+ import"./chunks/handlers-myqk22k5.js";
59
+ import"./chunks/handlers-q4bn6dy8.js";
60
60
  export {
61
61
  exports_fetch as ServerFetch,
62
62
  make2 as make
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentHandler2
3
- } from "../chunks/request-site-8mj7kvhm.js";
4
- import"../chunks/request-site-j87xz9bt.js";
5
- import"../chunks/request-site-htyf2qs7.js";
6
- import"../chunks/request-site-b3bmdkga.js";
7
- import"../chunks/request-site-50bbk3b2.js";
8
- import"../chunks/request-site-smaf4a18.js";
3
+ } from "../chunks/handlers-dezpcckc.js";
4
+ import"../chunks/handlers-0e81et3m.js";
5
+ import"../chunks/handlers-b3bmdkga.js";
6
+ import"../chunks/handlers-htyf2qs7.js";
7
+ import"../chunks/handlers-50bbk3b2.js";
8
+ import"../chunks/handlers-smaf4a18.js";
9
9
  export {
10
10
  AgentHandler2 as AgentHandler
11
11
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  makeArtifact2
3
- } from "../chunks/request-site-p86kew8c.js";
4
- import"../chunks/request-site-50bbk3b2.js";
5
- import"../chunks/request-site-smaf4a18.js";
3
+ } from "../chunks/handlers-p86kew8c.js";
4
+ import"../chunks/handlers-50bbk3b2.js";
5
+ import"../chunks/handlers-smaf4a18.js";
6
6
  export {
7
7
  makeArtifact2 as makeArtifact
8
8
  };