@opencode/server 2.2.4 → 2.2.6

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 (130) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{event-feed-0fv515j7.js → options-02a60aws.js} +2 -2
  4. package/dist/chunks/{event-feed-059rbh9c.js → options-059rbh9c.js} +1 -1
  5. package/dist/chunks/{event-feed-vbgqk0mr.js → options-0r9ve3h3.js} +2 -2
  6. package/dist/chunks/{event-feed-5dbnrgeg.js → options-32zxn73z.js} +4 -4
  7. package/dist/chunks/{event-feed-04phqjtk.js → options-3k93sd3m.js} +17 -16
  8. package/dist/chunks/{event-feed-z3e7v67k.js → options-3te71694.js} +7 -7
  9. package/dist/chunks/{event-feed-f8r9p2vr.js → options-4xzps9pr.js} +2 -2
  10. package/dist/chunks/{event-feed-8wqj6mpn.js → options-5km4ra1j.js} +8 -6
  11. package/dist/chunks/{event-feed-9grnt8dc.js → options-62bfwtjc.js} +2 -2
  12. package/dist/chunks/options-78rcgzsr.js +28 -0
  13. package/dist/chunks/{event-feed-7b9xm1qg.js → options-7b9xm1qg.js} +1 -1
  14. package/dist/chunks/{event-feed-axe8xgk8.js → options-7jx462hf.js} +11 -7
  15. package/dist/chunks/{event-feed-mzqcpmk1.js → options-82vbxjqd.js} +7 -5
  16. package/dist/chunks/{event-feed-nz17qv97.js → options-85kbrn7y.js} +2 -2
  17. package/dist/chunks/{event-feed-g2961dtz.js → options-9f2aybte.js} +8 -8
  18. package/dist/chunks/{event-feed-q44yktpv.js → options-9q55v56g.js} +2 -2
  19. package/dist/chunks/{event-feed-dx89xydc.js → options-axx4wwen.js} +2 -2
  20. package/dist/chunks/{event-feed-m119esdv.js → options-b5crh3ce.js} +3 -3
  21. package/dist/chunks/{event-feed-0j6zxxn8.js → options-dczgzh3x.js} +2 -2
  22. package/dist/chunks/{event-feed-htyf2qs7.js → options-ddnay6e1.js} +1 -1
  23. package/dist/chunks/{event-feed-n321d8vm.js → options-djr0jy89.js} +8 -6
  24. package/dist/chunks/{event-feed-0ey2b45p.js → options-dx07zb36.js} +9 -6
  25. package/dist/chunks/{event-feed-hx8bsq9d.js → options-e0z6mnzj.js} +1 -1
  26. package/dist/chunks/{event-feed-39nnfjx1.js → options-e6e4kz0w.js} +4 -4
  27. package/dist/chunks/{event-feed-zbe9jfhy.js → options-f0kpaq89.js} +1 -1
  28. package/dist/chunks/{event-feed-s9tkswmw.js → options-f96zeczf.js} +2 -2
  29. package/dist/chunks/{event-feed-50bbk3b2.js → options-gymtz25n.js} +3 -3
  30. package/dist/chunks/options-hmwn16zp.js +39 -0
  31. package/dist/chunks/{event-feed-0n4tjm17.js → options-hr24310e.js} +1 -1
  32. package/dist/chunks/{event-feed-2wexxjwf.js → options-j1bh82b8.js} +2 -2
  33. package/dist/chunks/{event-feed-j4at0y5c.js → options-j4at0y5c.js} +1 -1
  34. package/dist/chunks/{event-feed-h1thjy6x.js → options-j6d0mxrp.js} +2 -2
  35. package/dist/chunks/{event-feed-n1zdbfv7.js → options-j77vxdbh.js} +9 -4
  36. package/dist/chunks/{event-feed-m9ezm2eq.js → options-kgr24bct.js} +14 -8
  37. package/dist/chunks/{event-feed-mzs0n5xz.js → options-kqr36gas.js} +7 -7
  38. package/dist/chunks/{event-feed-05c5061t.js → options-mam5ppd3.js} +1 -1
  39. package/dist/chunks/{event-feed-h6rt5k9s.js → options-q187pxxd.js} +7 -1
  40. package/dist/chunks/{event-feed-ndcq61v8.js → options-q59gseq4.js} +35 -35
  41. package/dist/chunks/{event-feed-kg0ybx4v.js → options-q7gnt7ra.js} +3 -3
  42. package/dist/chunks/{event-feed-r6xkfcdx.js → options-rbck9dgd.js} +2 -2
  43. package/dist/chunks/{event-feed-zvbhqxt5.js → options-s9jd931e.js} +4 -4
  44. package/dist/chunks/options-t32e1bbt.js +32 -0
  45. package/dist/chunks/{event-feed-0e81et3m.js → options-v7p1kzzd.js} +3 -3
  46. package/dist/chunks/{event-feed-89egwzf3.js → options-va7wgp70.js} +2 -2
  47. package/dist/chunks/{event-feed-v8aqacn3.js → options-vyzvby0b.js} +2 -2
  48. package/dist/chunks/{event-feed-qfyg9gb7.js → options-wecgp61r.js} +7 -7
  49. package/dist/chunks/{event-feed-b3bmdkga.js → options-x74w7e1f.js} +1 -1
  50. package/dist/chunks/{event-feed-s62wjkvx.js → options-xad49dn3.js} +2 -2
  51. package/dist/chunks/{event-feed-et00mhwf.js → options-xfynz25m.js} +2 -2
  52. package/dist/chunks/{event-feed-x4b2rtcb.js → options-xwy6frfd.js} +1 -1
  53. package/dist/chunks/{event-feed-4p2y0qs3.js → options-y56ann6c.js} +2 -2
  54. package/dist/chunks/{event-feed-b4mqtccx.js → options-zzxz7279.js} +2 -2
  55. package/dist/content-headers.d.ts +13 -0
  56. package/dist/content-headers.js +12 -0
  57. package/dist/cors.js +1 -1
  58. package/dist/event-feed.js +5 -5
  59. package/dist/fetch.d.ts +1 -0
  60. package/dist/fetch.js +58 -54
  61. package/dist/handlers/agent.js +6 -6
  62. package/dist/handlers/artifact.js +3 -3
  63. package/dist/handlers/command.js +6 -6
  64. package/dist/handlers/config.js +6 -6
  65. package/dist/handlers/credential.js +7 -7
  66. package/dist/handlers/debug.js +6 -6
  67. package/dist/handlers/event.js +7 -7
  68. package/dist/handlers/form.js +6 -6
  69. package/dist/handlers/fs.js +7 -6
  70. package/dist/handlers/generate.js +6 -6
  71. package/dist/handlers/integration.js +6 -6
  72. package/dist/handlers/job.d.ts +51 -0
  73. package/dist/handlers/job.js +7 -0
  74. package/dist/handlers/location.js +6 -6
  75. package/dist/handlers/mcp.js +8 -8
  76. package/dist/handlers/media.js +2 -1
  77. package/dist/handlers/message.js +7 -7
  78. package/dist/handlers/migration.js +6 -6
  79. package/dist/handlers/model.js +6 -6
  80. package/dist/handlers/permission.js +6 -6
  81. package/dist/handlers/persistent-pty.d.ts +1 -1
  82. package/dist/handlers/persistent-pty.js +13 -11
  83. package/dist/handlers/plugin.js +6 -6
  84. package/dist/handlers/project.js +6 -6
  85. package/dist/handlers/provider.js +6 -6
  86. package/dist/handlers/pty-socket.d.ts +2 -0
  87. package/dist/handlers/pty-socket.js +4 -2
  88. package/dist/handlers/pty.js +8 -8
  89. package/dist/handlers/reference.js +6 -6
  90. package/dist/handlers/rpc.js +6 -6
  91. package/dist/handlers/schedule.js +2 -2
  92. package/dist/handlers/server.js +9 -9
  93. package/dist/handlers/session-error.js +1 -1
  94. package/dist/handlers/session.js +7 -7
  95. package/dist/handlers/shell.js +6 -6
  96. package/dist/handlers/skill.js +6 -6
  97. package/dist/handlers/usage.js +6 -6
  98. package/dist/handlers/vcs.js +6 -6
  99. package/dist/handlers/voice.js +6 -6
  100. package/dist/handlers/websearch.js +6 -6
  101. package/dist/handlers/worktree.js +6 -6
  102. package/dist/handlers.d.ts +1 -1
  103. package/dist/handlers.js +50 -48
  104. package/dist/location.js +4 -4
  105. package/dist/media-uri.js +1 -1
  106. package/dist/middleware/authorization.js +2 -2
  107. package/dist/middleware/form-location.js +3 -3
  108. package/dist/middleware/schema-error.js +1 -1
  109. package/dist/middleware/session-location.js +3 -3
  110. package/dist/options.d.ts +7 -0
  111. package/dist/options.js +1 -0
  112. package/dist/pairing.js +3 -3
  113. package/dist/process.d.ts +1 -0
  114. package/dist/process.js +63 -58
  115. package/dist/request-site.d.ts +11 -0
  116. package/dist/request-site.js +11 -0
  117. package/dist/request-tracing.d.ts +2 -2
  118. package/dist/request-tracing.js +1 -1
  119. package/dist/routes.js +53 -51
  120. package/dist/server-info.js +5 -5
  121. package/dist/service-status.js +3 -3
  122. package/dist/workerd.d.ts +2 -0
  123. package/dist/workerd.js +61 -56
  124. package/package.json +11 -11
  125. /package/dist/chunks/{event-feed-9rqn6x4v.js → options-9rqn6x4v.js} +0 -0
  126. /package/dist/chunks/{event-feed-bd8755ek.js → options-bd8755ek.js} +0 -0
  127. /package/dist/chunks/{event-feed-q4bn6dy8.js → options-q4bn6dy8.js} +0 -0
  128. /package/dist/chunks/{event-feed-smaf4a18.js → options-smaf4a18.js} +0 -0
  129. /package/dist/chunks/{event-feed-xthc02cw.js → options-xthc02cw.js} +0 -0
  130. /package/dist/chunks/{event-feed-yc7nft6q.js → options-yc7nft6q.js} +0 -0
@@ -1,16 +1,18 @@
1
1
  import {
2
2
  PersistentPtyHandler2
3
- } from "../chunks/event-feed-axe8xgk8.js";
4
- import"../chunks/event-feed-059rbh9c.js";
5
- import"../chunks/event-feed-0fv515j7.js";
6
- import"../chunks/event-feed-n321d8vm.js";
7
- import"../chunks/event-feed-h6rt5k9s.js";
8
- import"../chunks/event-feed-q4bn6dy8.js";
9
- import"../chunks/event-feed-0e81et3m.js";
10
- import"../chunks/event-feed-b3bmdkga.js";
11
- import"../chunks/event-feed-htyf2qs7.js";
12
- import"../chunks/event-feed-50bbk3b2.js";
13
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-7jx462hf.js";
4
+ import"../chunks/options-059rbh9c.js";
5
+ import"../chunks/options-02a60aws.js";
6
+ import"../chunks/options-78rcgzsr.js";
7
+ import"../chunks/options-q187pxxd.js";
8
+ import"../chunks/options-djr0jy89.js";
9
+ import"../chunks/options-t32e1bbt.js";
10
+ import"../chunks/options-v7p1kzzd.js";
11
+ import"../chunks/options-ddnay6e1.js";
12
+ import"../chunks/options-x74w7e1f.js";
13
+ import"../chunks/options-gymtz25n.js";
14
+ import"../chunks/options-smaf4a18.js";
15
+ import"../chunks/options-q4bn6dy8.js";
14
16
  export {
15
17
  PersistentPtyHandler2 as PersistentPtyHandler
16
18
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  PluginHandler2
3
- } from "../chunks/event-feed-vbgqk0mr.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-0r9ve3h3.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  PluginHandler2 as PluginHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ProjectHandler2
3
- } from "../chunks/event-feed-05c5061t.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-mam5ppd3.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  ProjectHandler2 as ProjectHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ProviderHandler2
3
- } from "../chunks/event-feed-9grnt8dc.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-62bfwtjc.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  ProviderHandler2 as ProviderHandler
11
11
  };
@@ -1,3 +1,4 @@
1
+ import { LocationLifecycle } from "@opencode/core/location-lifecycle";
1
2
  import { Effect, Queue } from "effect";
2
3
  import { Socket } from "effect/socket";
3
4
  export type Outbound = string | Uint8Array | Socket.CloseEvent;
@@ -8,3 +9,4 @@ export declare function runPtySocket<R>(input: {
8
9
  readonly onMessage: (message: string | Uint8Array) => Effect.Effect<void, never, R>;
9
10
  readonly detach: () => void;
10
11
  }): Effect.Effect<void, never, R | import("effect/Scope").Scope>;
12
+ export declare const holdLocation: (outbox: Queue.Enqueue<Outbound, never>) => Effect.Effect<void, never, import("effect/Scope").Scope | LocationLifecycle.Service>;
@@ -1,6 +1,8 @@
1
1
  import {
2
- runPtySocket2
3
- } from "../chunks/event-feed-h6rt5k9s.js";
2
+ runPtySocket2,
3
+ holdLocation2
4
+ } from "../chunks/options-q187pxxd.js";
4
5
  export {
6
+ holdLocation2 as holdLocation,
5
7
  runPtySocket2 as runPtySocket
6
8
  };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  PtyHandler2
3
- } from "../chunks/event-feed-8wqj6mpn.js";
4
- import"../chunks/event-feed-h6rt5k9s.js";
5
- import"../chunks/event-feed-q4bn6dy8.js";
6
- import"../chunks/event-feed-0e81et3m.js";
7
- import"../chunks/event-feed-b3bmdkga.js";
8
- import"../chunks/event-feed-htyf2qs7.js";
9
- import"../chunks/event-feed-50bbk3b2.js";
10
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-5km4ra1j.js";
4
+ import"../chunks/options-q187pxxd.js";
5
+ import"../chunks/options-v7p1kzzd.js";
6
+ import"../chunks/options-ddnay6e1.js";
7
+ import"../chunks/options-x74w7e1f.js";
8
+ import"../chunks/options-gymtz25n.js";
9
+ import"../chunks/options-smaf4a18.js";
10
+ import"../chunks/options-q4bn6dy8.js";
11
11
  export {
12
12
  PtyHandler2 as PtyHandler
13
13
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ReferenceHandler2
3
- } from "../chunks/event-feed-s9tkswmw.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-f96zeczf.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  ReferenceHandler2 as ReferenceHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  RpcHandler2
3
- } from "../chunks/event-feed-0n4tjm17.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-hr24310e.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  RpcHandler2 as RpcHandler
11
11
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeSchedule2
3
- } from "../chunks/event-feed-059rbh9c.js";
4
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-059rbh9c.js";
4
+ import"../chunks/options-smaf4a18.js";
5
5
  export {
6
6
  makeSchedule2 as makeSchedule
7
7
  };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  ServerHandler2
3
- } from "../chunks/event-feed-g2961dtz.js";
4
- import"../chunks/event-feed-z3e7v67k.js";
5
- import"../chunks/event-feed-j4at0y5c.js";
6
- import"../chunks/event-feed-mzs0n5xz.js";
7
- import"../chunks/event-feed-0e81et3m.js";
8
- import"../chunks/event-feed-b3bmdkga.js";
9
- import"../chunks/event-feed-htyf2qs7.js";
10
- import"../chunks/event-feed-50bbk3b2.js";
11
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-9f2aybte.js";
4
+ import"../chunks/options-j4at0y5c.js";
5
+ import"../chunks/options-v7p1kzzd.js";
6
+ import"../chunks/options-ddnay6e1.js";
7
+ import"../chunks/options-x74w7e1f.js";
8
+ import"../chunks/options-kqr36gas.js";
9
+ import"../chunks/options-gymtz25n.js";
10
+ import"../chunks/options-smaf4a18.js";
11
+ import"../chunks/options-3te71694.js";
12
12
  export {
13
13
  ServerHandler2 as ServerHandler
14
14
  };
@@ -3,7 +3,7 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "../chunks/event-feed-smaf4a18.js";
6
+ } from "../chunks/options-smaf4a18.js";
7
7
  export {
8
8
  failedMessageDecode2 as failedMessageDecode,
9
9
  failedSnapshot2 as failedSnapshot,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SessionHandler2
3
- } from "../chunks/event-feed-zvbhqxt5.js";
4
- import"../chunks/event-feed-xthc02cw.js";
5
- import"../chunks/event-feed-0e81et3m.js";
6
- import"../chunks/event-feed-b3bmdkga.js";
7
- import"../chunks/event-feed-htyf2qs7.js";
8
- import"../chunks/event-feed-50bbk3b2.js";
9
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-s9jd931e.js";
4
+ import"../chunks/options-xthc02cw.js";
5
+ import"../chunks/options-v7p1kzzd.js";
6
+ import"../chunks/options-ddnay6e1.js";
7
+ import"../chunks/options-x74w7e1f.js";
8
+ import"../chunks/options-gymtz25n.js";
9
+ import"../chunks/options-smaf4a18.js";
10
10
  export {
11
11
  SessionHandler2 as SessionHandler
12
12
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ShellHandler2
3
- } from "../chunks/event-feed-f8r9p2vr.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-4xzps9pr.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  ShellHandler2 as ShellHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  SkillHandler2
3
- } from "../chunks/event-feed-q44yktpv.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-9q55v56g.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  SkillHandler2 as SkillHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  UsageHandler2
3
- } from "../chunks/event-feed-89egwzf3.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-va7wgp70.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  UsageHandler2 as UsageHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  VcsHandler2
3
- } from "../chunks/event-feed-nz17qv97.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-85kbrn7y.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  VcsHandler2 as VcsHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  VoiceHandler2
3
- } from "../chunks/event-feed-et00mhwf.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-xfynz25m.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  VoiceHandler2 as VoiceHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WebSearchHandler2
3
- } from "../chunks/event-feed-dx89xydc.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-axx4wwen.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  WebSearchHandler2 as WebSearchHandler
11
11
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WorktreeHandler2
3
- } from "../chunks/event-feed-r6xkfcdx.js";
4
- import"../chunks/event-feed-0e81et3m.js";
5
- import"../chunks/event-feed-b3bmdkga.js";
6
- import"../chunks/event-feed-htyf2qs7.js";
7
- import"../chunks/event-feed-50bbk3b2.js";
8
- import"../chunks/event-feed-smaf4a18.js";
3
+ } from "../chunks/options-rbck9dgd.js";
4
+ import"../chunks/options-v7p1kzzd.js";
5
+ import"../chunks/options-ddnay6e1.js";
6
+ import"../chunks/options-x74w7e1f.js";
7
+ import"../chunks/options-gymtz25n.js";
8
+ import"../chunks/options-smaf4a18.js";
9
9
  export {
10
10
  WorktreeHandler2 as WorktreeHandler
11
11
  };
@@ -1,2 +1,2 @@
1
1
  import { Layer } from "effect";
2
- export declare const handlers: Layer.Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.command"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.config"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.credential"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.debug"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.event"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.form"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.fs"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.generate"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.integration"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.location"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.mcp"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.message"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.migration"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.model"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.permission"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.plugin"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.project"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.provider"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.pty"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.reference"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.rpc"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.server"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.session"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.shell"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.skill"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.usage"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.vcs"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.voice"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.websearch"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.worktree">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("./auth").Config | import("./middleware/form-location").FormLocationMiddleware | import("./location").LocationMiddleware | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/database/database").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/credential").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/wellknown").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/permission/saved").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/plugin/update").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/project").Service> | import("effect/http/HttpRouter").Request<"Requires", import("./server-info").Service> | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/core/kv").Service | import("@opencode/core/session/instruction-entry").Service | import("@opencode/core/location-service-map").Service | import("@opencode/core/session").Service | import("@opencode/core/persistent-pty/index").Service | import("@opencode/core/worktree").Service | import("@opencode/core/schedule").Service | import("@opencode/core/instance").Service | import("@opencode/core/bus").Service | import("@opencode/core/project").Service | import("@opencode/core/pty/ticket").Service | import("@opencode/core/session/transfer").Service | import("@opencode/core/filesystem/file-watch").Service | import("./pairing").Service | import("./middleware/session-location").SessionLocationMiddleware>;
2
+ export declare const handlers: Layer.Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.command"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.config"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.credential"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.debug"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.event"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.form"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.fs"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.generate"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.integration"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.location"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.mcp"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.message"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.migration"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.model"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.permission"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.plugin"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.project"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.provider"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.pty"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.reference"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.rpc"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.server"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.session"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.shell"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.skill"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.usage"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.vcs"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.voice"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.websearch"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.worktree">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("./auth").Config | import("./middleware/form-location").FormLocationMiddleware | import("./location").LocationMiddleware | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/database/database").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/credential").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/wellknown").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/permission/saved").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/plugin/update").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/project").Service> | import("effect/http/HttpRouter").Request<"Requires", import("./server-info").Service> | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/core/kv").Service | import("@opencode/core/session/instruction-entry").Service | import("@opencode/core/job").Service | import("@opencode/core/location-service-map").Service | import("@opencode/core/session").Service | import("@opencode/core/persistent-pty/index").Service | import("@opencode/core/worktree").Service | import("@opencode/core/schedule").Service | import("@opencode/core/instance").Service | import("@opencode/core/bus").Service | import("@opencode/core/project").Service | import("@opencode/core/pty/ticket").Service | import("@opencode/core/session/transfer").Service | import("@opencode/core/filesystem/file-watch").Service | import("./pairing").Service | import("./middleware/session-location").SessionLocationMiddleware>;
package/dist/handlers.js CHANGED
@@ -1,53 +1,55 @@
1
1
  import {
2
2
  handlers2
3
- } from "./chunks/event-feed-ndcq61v8.js";
4
- import"./chunks/event-feed-et00mhwf.js";
5
- import"./chunks/event-feed-9grnt8dc.js";
6
- import"./chunks/event-feed-0ey2b45p.js";
7
- import"./chunks/event-feed-nz17qv97.js";
8
- import"./chunks/event-feed-2wexxjwf.js";
9
- import"./chunks/event-feed-q44yktpv.js";
10
- import"./chunks/event-feed-x4b2rtcb.js";
11
- import"./chunks/event-feed-v8aqacn3.js";
12
- import"./chunks/event-feed-f8r9p2vr.js";
13
- import"./chunks/event-feed-5dbnrgeg.js";
14
- import"./chunks/event-feed-89egwzf3.js";
15
- import"./chunks/event-feed-s9tkswmw.js";
16
- import"./chunks/event-feed-8wqj6mpn.js";
17
- import"./chunks/event-feed-0j6zxxn8.js";
18
- import"./chunks/event-feed-zbe9jfhy.js";
19
- import"./chunks/event-feed-05c5061t.js";
20
- import"./chunks/event-feed-dx89xydc.js";
21
- import"./chunks/event-feed-h1thjy6x.js";
22
- import"./chunks/event-feed-s62wjkvx.js";
23
- import"./chunks/event-feed-4p2y0qs3.js";
24
- import"./chunks/event-feed-axe8xgk8.js";
25
- import"./chunks/event-feed-059rbh9c.js";
26
- import"./chunks/event-feed-r6xkfcdx.js";
27
- import"./chunks/event-feed-hx8bsq9d.js";
28
- import"./chunks/event-feed-0n4tjm17.js";
29
- import"./chunks/event-feed-g2961dtz.js";
30
- import"./chunks/event-feed-n1zdbfv7.js";
31
- import"./chunks/event-feed-m119esdv.js";
32
- import"./chunks/event-feed-b4mqtccx.js";
33
- import"./chunks/event-feed-vbgqk0mr.js";
34
- import"./chunks/event-feed-0fv515j7.js";
35
- import"./chunks/event-feed-n321d8vm.js";
36
- import"./chunks/event-feed-zvbhqxt5.js";
37
- import"./chunks/event-feed-mzqcpmk1.js";
38
- import"./chunks/event-feed-h6rt5k9s.js";
39
- import"./chunks/event-feed-kg0ybx4v.js";
40
- import"./chunks/event-feed-q4bn6dy8.js";
41
- import"./chunks/event-feed-z3e7v67k.js";
42
- import"./chunks/event-feed-j4at0y5c.js";
43
- import"./chunks/event-feed-qfyg9gb7.js";
44
- import"./chunks/event-feed-mzs0n5xz.js";
45
- import"./chunks/event-feed-xthc02cw.js";
46
- import"./chunks/event-feed-0e81et3m.js";
47
- import"./chunks/event-feed-b3bmdkga.js";
48
- import"./chunks/event-feed-htyf2qs7.js";
49
- import"./chunks/event-feed-50bbk3b2.js";
50
- import"./chunks/event-feed-smaf4a18.js";
3
+ } from "./chunks/options-q59gseq4.js";
4
+ import"./chunks/options-f0kpaq89.js";
5
+ import"./chunks/options-j6d0mxrp.js";
6
+ import"./chunks/options-axx4wwen.js";
7
+ import"./chunks/options-vyzvby0b.js";
8
+ import"./chunks/options-b5crh3ce.js";
9
+ import"./chunks/options-q7gnt7ra.js";
10
+ import"./chunks/options-rbck9dgd.js";
11
+ import"./chunks/options-0r9ve3h3.js";
12
+ import"./chunks/options-zzxz7279.js";
13
+ import"./chunks/options-82vbxjqd.js";
14
+ import"./chunks/options-85kbrn7y.js";
15
+ import"./chunks/options-5km4ra1j.js";
16
+ import"./chunks/options-9f2aybte.js";
17
+ import"./chunks/options-y56ann6c.js";
18
+ import"./chunks/options-mam5ppd3.js";
19
+ import"./chunks/options-hr24310e.js";
20
+ import"./chunks/options-e0z6mnzj.js";
21
+ import"./chunks/options-xfynz25m.js";
22
+ import"./chunks/options-4xzps9pr.js";
23
+ import"./chunks/options-9q55v56g.js";
24
+ import"./chunks/options-xad49dn3.js";
25
+ import"./chunks/options-62bfwtjc.js";
26
+ import"./chunks/options-dczgzh3x.js";
27
+ import"./chunks/options-j1bh82b8.js";
28
+ import"./chunks/options-dx07zb36.js";
29
+ import"./chunks/options-va7wgp70.js";
30
+ import"./chunks/options-j77vxdbh.js";
31
+ import"./chunks/options-s9jd931e.js";
32
+ import"./chunks/options-f96zeczf.js";
33
+ import"./chunks/options-32zxn73z.js";
34
+ import"./chunks/options-j4at0y5c.js";
35
+ import"./chunks/options-7jx462hf.js";
36
+ import"./chunks/options-059rbh9c.js";
37
+ import"./chunks/options-02a60aws.js";
38
+ import"./chunks/options-78rcgzsr.js";
39
+ import"./chunks/options-q187pxxd.js";
40
+ import"./chunks/options-djr0jy89.js";
41
+ import"./chunks/options-xwy6frfd.js";
42
+ import"./chunks/options-xthc02cw.js";
43
+ import"./chunks/options-t32e1bbt.js";
44
+ import"./chunks/options-v7p1kzzd.js";
45
+ import"./chunks/options-ddnay6e1.js";
46
+ import"./chunks/options-x74w7e1f.js";
47
+ import"./chunks/options-kqr36gas.js";
48
+ import"./chunks/options-gymtz25n.js";
49
+ import"./chunks/options-smaf4a18.js";
50
+ import"./chunks/options-3te71694.js";
51
+ import"./chunks/options-wecgp61r.js";
52
+ import"./chunks/options-q4bn6dy8.js";
51
53
  export {
52
54
  handlers2 as handlers
53
55
  };
package/dist/location.js CHANGED
@@ -5,13 +5,13 @@ import {
5
5
  response2,
6
6
  sessionInfo2,
7
7
  requestRef2,
8
- layer4
9
- } from "./chunks/event-feed-50bbk3b2.js";
10
- import"./chunks/event-feed-smaf4a18.js";
8
+ layer2
9
+ } from "./chunks/options-gymtz25n.js";
10
+ import"./chunks/options-smaf4a18.js";
11
11
  export {
12
12
  LocationMiddleware2 as LocationMiddleware,
13
13
  awaitPlugins2 as awaitPlugins,
14
- layer4 as layer,
14
+ layer2 as layer,
15
15
  locationErrors2 as locationErrors,
16
16
  requestRef2 as requestRef,
17
17
  response2 as response,
package/dist/media-uri.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  wantsMediaRefs2
3
- } from "./chunks/event-feed-xthc02cw.js";
3
+ } from "./chunks/options-xthc02cw.js";
4
4
  export {
5
5
  wantsMediaRefs2 as wantsMediaRefs
6
6
  };
@@ -3,8 +3,8 @@ import {
3
3
  authorizedRequest2,
4
4
  authorizationLayer2,
5
5
  Authorization2
6
- } from "../chunks/event-feed-7b9xm1qg.js";
7
- import"../chunks/event-feed-j4at0y5c.js";
6
+ } from "../chunks/options-7b9xm1qg.js";
7
+ import"../chunks/options-j4at0y5c.js";
8
8
  export {
9
9
  Authorization2 as Authorization,
10
10
  authorizationLayer2 as authorizationLayer,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  FormLocationMiddleware2,
3
3
  formLocationLayer2
4
- } from "../chunks/event-feed-htyf2qs7.js";
5
- import"../chunks/event-feed-50bbk3b2.js";
6
- import"../chunks/event-feed-smaf4a18.js";
4
+ } from "../chunks/options-ddnay6e1.js";
5
+ import"../chunks/options-gymtz25n.js";
6
+ import"../chunks/options-smaf4a18.js";
7
7
  export {
8
8
  FormLocationMiddleware2 as FormLocationMiddleware,
9
9
  formLocationLayer2 as formLocationLayer
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  schemaErrorLayer2,
3
3
  SchemaErrorMiddleware2
4
- } from "../chunks/event-feed-bd8755ek.js";
4
+ } from "../chunks/options-bd8755ek.js";
5
5
  export {
6
6
  SchemaErrorMiddleware2 as SchemaErrorMiddleware,
7
7
  schemaErrorLayer2 as schemaErrorLayer
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionLocationMiddleware2,
3
3
  sessionLocationLayer2
4
- } from "../chunks/event-feed-b3bmdkga.js";
5
- import"../chunks/event-feed-50bbk3b2.js";
6
- import"../chunks/event-feed-smaf4a18.js";
4
+ } from "../chunks/options-x74w7e1f.js";
5
+ import"../chunks/options-gymtz25n.js";
6
+ import"../chunks/options-smaf4a18.js";
7
7
  export {
8
8
  SessionLocationMiddleware2 as SessionLocationMiddleware,
9
9
  sessionLocationLayer2 as sessionLocationLayer
package/dist/options.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Schema } from "effect";
2
+ import type { LayerNodePlatform } from "@opencode/util/effect/app-node-platform";
2
3
  export declare const ServerOptions: Schema.Struct<{
3
4
  readonly app: Schema.optional<Schema.Struct<{
4
5
  readonly name: Schema.optional<Schema.String>;
@@ -31,6 +32,12 @@ export declare const ServerOptions: Schema.Struct<{
31
32
  readonly fetch: Schema.optional<Schema.Boolean>;
32
33
  readonly snapshot: Schema.optional<Schema.Boolean>;
33
34
  }>>;
35
+ /**
36
+ * Replaces `globalThis.fetch` for OpenCode's own HTTP requests: OpenCode Console config, model requests, web fetch
37
+ * and search, well-known config, and remote MCP servers. Agent code in Code Mode keeps `globalThis.fetch`. For
38
+ * example, a Cloudflare Worker can route requests through a Service Binding.
39
+ */
40
+ readonly fetch: Schema.optional<Schema.declare<LayerNodePlatform.Fetch, LayerNodePlatform.Fetch>>;
34
41
  readonly config: Schema.optional<Schema.Struct<{
35
42
  readonly directory: Schema.optional<Schema.String>;
36
43
  readonly project: Schema.optional<Schema.Boolean>;
package/dist/options.js CHANGED
@@ -20,6 +20,7 @@ var ServerOptions = Schema.Struct({
20
20
  persist: Schema.optional(Schema.Boolean)
21
21
  })),
22
22
  models: Schema.optional(ModelsDev.Options),
23
+ fetch: Schema.optional(Schema.declare((input) => typeof input === "function")),
23
24
  config: Schema.optional(Schema.Struct({
24
25
  directory: Schema.optional(Schema.String),
25
26
  project: Schema.optional(Schema.Boolean),