@opencode/server 0.0.0-dev-1017 → 0.0.0-dev-1019

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 (119) hide show
  1. package/dist/api.d.ts +16 -3
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{cors-059rbh9c.js → media-uri-059rbh9c.js} +1 -1
  5. package/dist/chunks/{cors-k5thrxbp.js → media-uri-06zffp76.js} +2 -2
  6. package/dist/chunks/{cors-rha2aq18.js → media-uri-0a5jm2na.js} +2 -2
  7. package/dist/chunks/{cors-5s0wnsg4.js → media-uri-0n1e9dnh.js} +3 -3
  8. package/dist/chunks/{cors-6z9pvq7p.js → media-uri-1je14sn4.js} +1 -1
  9. package/dist/chunks/{cors-x23bdssa.js → media-uri-1pxxxc2w.js} +15 -15
  10. package/dist/chunks/{cors-qd0r787n.js → media-uri-22wspztn.js} +2 -2
  11. package/dist/chunks/{cors-y6b5qq9t.js → media-uri-27hs38qv.js} +3 -3
  12. package/dist/chunks/{cors-skxr37j4.js → media-uri-287m9s8a.js} +7 -7
  13. package/dist/chunks/{cors-s282vggx.js → media-uri-2xcc0x05.js} +1 -1
  14. package/dist/chunks/{cors-1ndv3m9h.js → media-uri-34xzc0ha.js} +4 -4
  15. package/dist/chunks/{cors-enp1bp7r.js → media-uri-41yet3w7.js} +1 -1
  16. package/dist/chunks/{cors-tafb0nc0.js → media-uri-4qfw2ywd.js} +8 -8
  17. package/dist/chunks/{cors-mpvvr0mh.js → media-uri-4zy25zv5.js} +2 -2
  18. package/dist/chunks/{cors-0fv515j7.js → media-uri-57m9rtnr.js} +2 -2
  19. package/dist/chunks/{cors-78rcgzsr.js → media-uri-78rcgzsr.js} +1 -1
  20. package/dist/chunks/{cors-7b9xm1qg.js → media-uri-7b9xm1qg.js} +1 -1
  21. package/dist/chunks/{cors-yjbzmfhm.js → media-uri-7dtbad8d.js} +4 -4
  22. package/dist/chunks/{cors-psw29prz.js → media-uri-84dqjc6j.js} +4 -4
  23. package/dist/chunks/{cors-j87xz9bt.js → media-uri-9c4eyh8m.js} +3 -3
  24. package/dist/chunks/{cors-zrenqfrt.js → media-uri-9xzkq3nb.js} +33 -33
  25. package/dist/chunks/{cors-cezwbsk5.js → media-uri-b2k9041j.js} +1 -1
  26. package/dist/chunks/{cors-yqhefp4s.js → media-uri-c6sjpm0r.js} +2 -2
  27. package/dist/chunks/{cors-djr0jy89.js → media-uri-djr0jy89.js} +1 -1
  28. package/dist/chunks/{cors-a8jcac9a.js → media-uri-dk68ymtv.js} +1 -1
  29. package/dist/chunks/{cors-kkdkqt8j.js → media-uri-e46y0tfd.js} +2 -2
  30. package/dist/chunks/{cors-39nnfjx1.js → media-uri-e6e4kz0w.js} +4 -4
  31. package/dist/chunks/{cors-3p9jwgak.js → media-uri-fvpjvjpp.js} +6 -6
  32. package/dist/chunks/{cors-htyf2qs7.js → media-uri-gk0yxcp6.js} +1 -1
  33. package/dist/chunks/{cors-50bbk3b2.js → media-uri-gqq6kfhc.js} +3 -3
  34. package/dist/chunks/{cors-zcvan105.js → media-uri-h072q2hm.js} +1 -1
  35. package/dist/chunks/{cors-az0609r6.js → media-uri-hax1v4bv.js} +2 -2
  36. package/dist/chunks/{cors-1v577ncx.js → media-uri-hnheq3hv.js} +2 -2
  37. package/dist/chunks/{cors-j4at0y5c.js → media-uri-j4at0y5c.js} +1 -1
  38. package/dist/chunks/{cors-b105zy65.js → media-uri-j9gxd9me.js} +2 -2
  39. package/dist/chunks/{cors-f559fakr.js → media-uri-m5rae7m4.js} +2 -2
  40. package/dist/chunks/{cors-myqk22k5.js → media-uri-myqk22k5.js} +2 -2
  41. package/dist/chunks/{cors-btahnm2b.js → media-uri-ppma8fcc.js} +3 -3
  42. package/dist/chunks/{cors-r7kkkqba.js → media-uri-prdak4hd.js} +4 -4
  43. package/dist/chunks/{cors-qnrjgbyc.js → media-uri-qaqpw80j.js} +2 -2
  44. package/dist/chunks/{cors-2eaky32g.js → media-uri-qn8kkfq6.js} +2 -2
  45. package/dist/chunks/{cors-t32e1bbt.js → media-uri-t32e1bbt.js} +1 -1
  46. package/dist/chunks/{cors-kqr36gas.js → media-uri-w9jcwh65.js} +7 -7
  47. package/dist/chunks/{cors-k3txyteh.js → media-uri-wd7b20jw.js} +4 -4
  48. package/dist/chunks/{cors-p6jxhmbt.js → media-uri-wnzs2aq5.js} +6 -6
  49. package/dist/chunks/{cors-d0edqfxx.js → media-uri-wxj3d9av.js} +2 -2
  50. package/dist/chunks/{cors-qcg3sqtb.js → media-uri-x8dgc261.js} +2 -2
  51. package/dist/chunks/{cors-5s6gh8sx.js → media-uri-xe9t9xr4.js} +2 -2
  52. package/dist/chunks/{cors-b3bmdkga.js → media-uri-yet0vexm.js} +1 -1
  53. package/dist/chunks/{cors-te8jwba1.js → media-uri-yr4wsvrw.js} +2 -2
  54. package/dist/chunks/{cors-4q6e7fh8.js → media-uri-z59gyc0x.js} +2 -2
  55. package/dist/content-headers.js +1 -1
  56. package/dist/cors.js +1 -1
  57. package/dist/event-feed.js +3 -3
  58. package/dist/fetch.js +58 -58
  59. package/dist/handlers/agent.js +6 -6
  60. package/dist/handlers/artifact.js +3 -3
  61. package/dist/handlers/command.js +6 -6
  62. package/dist/handlers/config.js +6 -6
  63. package/dist/handlers/credential.js +7 -7
  64. package/dist/handlers/debug.js +6 -6
  65. package/dist/handlers/event.js +7 -7
  66. package/dist/handlers/form.js +6 -6
  67. package/dist/handlers/fs.js +7 -7
  68. package/dist/handlers/generate.js +6 -6
  69. package/dist/handlers/integration.js +6 -6
  70. package/dist/handlers/job.js +2 -2
  71. package/dist/handlers/location.js +6 -6
  72. package/dist/handlers/mcp.js +8 -8
  73. package/dist/handlers/media.js +2 -2
  74. package/dist/handlers/message.js +7 -7
  75. package/dist/handlers/migration.js +6 -6
  76. package/dist/handlers/model.js +6 -6
  77. package/dist/handlers/permission.js +6 -6
  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.js +50 -50
  98. package/dist/location.js +4 -4
  99. package/dist/media-uri.js +1 -1
  100. package/dist/middleware/authorization.js +2 -2
  101. package/dist/middleware/form-location.js +3 -3
  102. package/dist/middleware/schema-error.js +1 -1
  103. package/dist/middleware/session-location.js +3 -3
  104. package/dist/pairing.js +3 -3
  105. package/dist/process.js +59 -59
  106. package/dist/request-site.js +2 -2
  107. package/dist/request-tracing.js +1 -1
  108. package/dist/routes.js +53 -53
  109. package/dist/server-info.js +3 -3
  110. package/dist/service-status.js +3 -3
  111. package/dist/workerd.js +59 -59
  112. package/package.json +8 -8
  113. /package/dist/chunks/{cors-9rqn6x4v.js → media-uri-9rqn6x4v.js} +0 -0
  114. /package/dist/chunks/{cors-bd8755ek.js → media-uri-bd8755ek.js} +0 -0
  115. /package/dist/chunks/{cors-q187pxxd.js → media-uri-q187pxxd.js} +0 -0
  116. /package/dist/chunks/{cors-q4bn6dy8.js → media-uri-q4bn6dy8.js} +0 -0
  117. /package/dist/chunks/{cors-smaf4a18.js → media-uri-smaf4a18.js} +0 -0
  118. /package/dist/chunks/{cors-xthc02cw.js → media-uri-xthc02cw.js} +0 -0
  119. /package/dist/chunks/{cors-yc7nft6q.js → media-uri-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -93,12 +93,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
93
93
  create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
94
94
  }>, never, never>;
95
95
  }>>, never, never>;
96
- readonly data: import("effect/Schema").Struct<{}>;
96
+ readonly data: import("effect/Schema").Struct<{
97
+ readonly integrationID: import("effect/Schema").brand<import("effect/Schema").String, "Integration.ID">;
98
+ readonly credentialID: import("effect/Schema").brand<import("effect/Schema").String, "Credential.ID"> & {
99
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
100
+ };
101
+ }>;
97
102
  }> & {
98
103
  type: "credential.updated";
99
104
  durability: "ephemeral";
100
105
  durable: undefined;
101
- data: import("effect/Schema").Struct<{}>;
106
+ data: import("effect/Schema").Struct<{
107
+ readonly integrationID: import("effect/Schema").brand<import("effect/Schema").String, "Integration.ID">;
108
+ readonly credentialID: import("effect/Schema").brand<import("effect/Schema").String, "Credential.ID"> & {
109
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
110
+ };
111
+ }>;
102
112
  }, import("effect/Schema").Struct<{
103
113
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
104
114
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -7769,7 +7779,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7769
7779
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7770
7780
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7771
7781
  } | undefined;
7772
- readonly data: {};
7782
+ readonly data: {
7783
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
7784
+ readonly credentialID: string & import("effect/Brand").Brand<"Credential.ID">;
7785
+ };
7773
7786
  } | {
7774
7787
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7775
7788
  readonly created: number;
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/cors-j87xz9bt.js";
4
- import"./chunks/cors-htyf2qs7.js";
5
- import"./chunks/cors-b3bmdkga.js";
6
- import"./chunks/cors-50bbk3b2.js";
7
- import"./chunks/cors-smaf4a18.js";
3
+ } from "./chunks/media-uri-9c4eyh8m.js";
4
+ import"./chunks/media-uri-yet0vexm.js";
5
+ import"./chunks/media-uri-gk0yxcp6.js";
6
+ import"./chunks/media-uri-gqq6kfhc.js";
7
+ import"./chunks/media-uri-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/cors-j4at0y5c.js";
10
+ } from "./chunks/media-uri-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./cors-smaf4a18.js";
3
+ } from "./media-uri-smaf4a18.js";
4
4
 
5
5
  // src/handlers/schedule.ts
6
6
  import { Permission } from "@opencode/core/permission";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-j87xz9bt.js";
3
+ } from "./media-uri-9c4eyh8m.js";
4
4
  import {
5
5
  requireConnectable2
6
- } from "./cors-mpvvr0mh.js";
6
+ } from "./media-uri-4zy25zv5.js";
7
7
 
8
8
  // src/handlers/credential.ts
9
9
  import { Credential } from "@opencode/core/credential";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./cors-50bbk3b2.js";
4
+ } from "./media-uri-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-j87xz9bt.js";
7
+ } from "./media-uri-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./cors-smaf4a18.js";
4
+ } from "./media-uri-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-j87xz9bt.js";
7
+ } from "./media-uri-9c4eyh8m.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./cors-xthc02cw.js";
10
+ } from "./media-uri-xthc02cw.js";
11
11
 
12
12
  // src/handlers/message.ts
13
13
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-j87xz9bt.js";
3
+ } from "./media-uri-9c4eyh8m.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
- layer4
3
- } from "./cors-50bbk3b2.js";
2
+ layer3
3
+ } from "./media-uri-gqq6kfhc.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./cors-htyf2qs7.js";
6
+ } from "./media-uri-gk0yxcp6.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./cors-b3bmdkga.js";
9
+ } from "./media-uri-yet0vexm.js";
10
10
  import {
11
11
  Api2
12
- } from "./cors-j87xz9bt.js";
12
+ } from "./media-uri-9c4eyh8m.js";
13
13
  import {
14
14
  Config2
15
- } from "./cors-j4at0y5c.js";
15
+ } from "./media-uri-j4at0y5c.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./cors-q4bn6dy8.js";
18
+ } from "./media-uri-q4bn6dy8.js";
19
19
  import {
20
- layer3
21
- } from "./cors-yjbzmfhm.js";
20
+ layer4
21
+ } from "./media-uri-7dtbad8d.js";
22
22
  import {
23
23
  node2
24
- } from "./cors-kqr36gas.js";
24
+ } from "./media-uri-w9jcwh65.js";
25
25
  import {
26
26
  handlers2
27
- } from "./cors-zrenqfrt.js";
27
+ } from "./media-uri-9xzkq3nb.js";
28
28
  import {
29
29
  authorizationLayer2
30
- } from "./cors-7b9xm1qg.js";
30
+ } from "./media-uri-7b9xm1qg.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./cors-bd8755ek.js";
33
+ } from "./media-uri-bd8755ek.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -155,8 +155,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
155
155
  })) : build(overrides);
156
156
  return serviceLayer.pipe(Layer.flatMap((context) => {
157
157
  const services = Layer.succeedContext(context);
158
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer3(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
159
- const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
158
+ const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer4(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
159
+ const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer3), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
160
160
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
161
161
  }));
162
162
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-50bbk3b2.js";
3
+ } from "./media-uri-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-j87xz9bt.js";
6
+ } from "./media-uri-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-50bbk3b2.js";
3
+ } from "./media-uri-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-j87xz9bt.js";
6
+ } from "./media-uri-9c4eyh8m.js";
7
7
  import {
8
8
  download2
9
- } from "./cors-t32e1bbt.js";
9
+ } from "./media-uri-t32e1bbt.js";
10
10
 
11
11
  // src/handlers/fs.ts
12
12
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-j87xz9bt.js";
3
+ } from "./media-uri-9c4eyh8m.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./cors-q4bn6dy8.js";
7
+ } from "./media-uri-q4bn6dy8.js";
8
8
  import {
9
9
  makeArtifact2
10
- } from "./cors-0fv515j7.js";
10
+ } from "./media-uri-57m9rtnr.js";
11
11
  import {
12
12
  makeJob2
13
- } from "./cors-78rcgzsr.js";
13
+ } from "./media-uri-78rcgzsr.js";
14
14
  import {
15
15
  makeMediaGet2
16
- } from "./cors-djr0jy89.js";
16
+ } from "./media-uri-djr0jy89.js";
17
17
  import {
18
18
  runPtySocket2
19
- } from "./cors-q187pxxd.js";
19
+ } from "./media-uri-q187pxxd.js";
20
20
  import {
21
21
  makeSchedule2
22
- } from "./cors-059rbh9c.js";
22
+ } from "./media-uri-059rbh9c.js";
23
23
 
24
24
  // src/handlers/persistent-pty.ts
25
25
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-j87xz9bt.js";
3
+ } from "./media-uri-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./cors-50bbk3b2.js";
5
+ } from "./media-uri-gqq6kfhc.js";
6
6
  import {
7
7
  Api2
8
- } from "./cors-j87xz9bt.js";
8
+ } from "./media-uri-9c4eyh8m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./cors-q4bn6dy8.js";
12
+ } from "./media-uri-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./cors-q187pxxd.js";
16
+ } from "./media-uri-q187pxxd.js";
17
17
 
18
18
  // src/handlers/mcp.ts
19
19
  import { Location } from "@opencode/core/location";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-j87xz9bt.js";
3
+ } from "./media-uri-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./cors-q4bn6dy8.js";
3
+ } from "./media-uri-q4bn6dy8.js";
4
4
  import {
5
5
  middleware2
6
- } from "./cors-myqk22k5.js";
6
+ } from "./media-uri-myqk22k5.js";
7
7
  import {
8
8
  withoutParentSpan2
9
- } from "./cors-yc7nft6q.js";
9
+ } from "./media-uri-yc7nft6q.js";
10
10
  import {
11
11
  createRoutes2
12
- } from "./cors-x23bdssa.js";
12
+ } from "./media-uri-1pxxxc2w.js";
13
13
  import {
14
14
  __export
15
- } from "./cors-9rqn6x4v.js";
15
+ } from "./media-uri-9rqn6x4v.js";
16
16
 
17
17
  // src/fetch.ts
18
18
  var exports_fetch = {};
19
19
  __export(exports_fetch, {
20
20
  ServerFetch: () => exports_fetch,
21
- make: () => make3
21
+ make: () => make2
22
22
  });
23
23
  import { Context, Effect, Layer } from "effect";
24
24
  import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
25
25
  import { SessionRestart } from "@opencode/core/session/execution/restart";
26
- var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
26
+ var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
27
27
  const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices))).pipe(withoutParentSpan2);
28
28
  yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
29
29
  return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(middleware2(options), HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
30
30
  });
31
31
 
32
- export { make3, exports_fetch };
32
+ export { make2, exports_fetch };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-50bbk3b2.js";
3
+ } from "./media-uri-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-j87xz9bt.js";
6
+ } from "./media-uri-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./cors-smaf4a18.js";
3
+ } from "./media-uri-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  awaitPlugins2,
7
7
  response2,
8
8
  requestRef2
9
- } from "./cors-50bbk3b2.js";
9
+ } from "./media-uri-gqq6kfhc.js";
10
10
 
11
11
  // src/handlers/artifact.ts
12
12
  import { Artifact } from "@opencode/core/artifact";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./cors-smaf4a18.js";
3
+ } from "./media-uri-smaf4a18.js";
4
4
 
5
5
  // src/handlers/job.ts
6
6
  import { Job } from "@opencode/core/job";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./cors-j4at0y5c.js";
7
+ } from "./media-uri-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./cors-9rqn6x4v.js";
3
+ } from "./media-uri-9rqn6x4v.js";
4
4
 
5
5
  // src/server-info.ts
6
6
  var exports_server_info = {};
@@ -8,14 +8,14 @@ __export(exports_server_info, {
8
8
  ServerInfo: () => exports_server_info,
9
9
  Service: () => Service4,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer3
11
+ layer: () => layer4
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
16
  class Service4 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer3(urls, tmp, app = {}) {
18
+ function layer4(urls, tmp, app = {}) {
19
19
  return Layer.succeed(Service4, Service4.of({ urls, app, paths: { tmp } }));
20
20
  }
21
21
  function connectionURLs2(value, requestedHostname) {
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
38
38
  ];
39
39
  }
40
40
 
41
- export { Service4, layer3, connectionURLs2, exports_server_info };
41
+ export { Service4, layer4, connectionURLs2, exports_server_info };
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./cors-50bbk3b2.js";
5
+ } from "./media-uri-gqq6kfhc.js";
6
6
  import {
7
7
  Api2
8
- } from "./cors-j87xz9bt.js";
8
+ } from "./media-uri-9c4eyh8m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./cors-q4bn6dy8.js";
12
+ } from "./media-uri-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./cors-q187pxxd.js";
16
+ } from "./media-uri-q187pxxd.js";
17
17
 
18
18
  // src/handlers/pty.ts
19
19
  import { Pty } from "@opencode/core/pty";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./cors-50bbk3b2.js";
3
+ } from "./media-uri-gqq6kfhc.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./cors-htyf2qs7.js";
6
+ } from "./media-uri-gk0yxcp6.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./cors-b3bmdkga.js";
9
+ } from "./media-uri-yet0vexm.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,102 +1,102 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./cors-yqhefp4s.js";
3
+ } from "./media-uri-c6sjpm0r.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./cors-d0edqfxx.js";
6
+ } from "./media-uri-wxj3d9av.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./cors-5s0wnsg4.js";
9
+ } from "./media-uri-0n1e9dnh.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./cors-rha2aq18.js";
12
+ } from "./media-uri-0a5jm2na.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./cors-az0609r6.js";
15
+ } from "./media-uri-hax1v4bv.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./cors-k3txyteh.js";
18
+ } from "./media-uri-wd7b20jw.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./cors-btahnm2b.js";
21
+ } from "./media-uri-ppma8fcc.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./cors-y6b5qq9t.js";
24
+ } from "./media-uri-27hs38qv.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./cors-f559fakr.js";
27
+ } from "./media-uri-m5rae7m4.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./cors-4q6e7fh8.js";
30
+ } from "./media-uri-z59gyc0x.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./cors-qnrjgbyc.js";
33
+ } from "./media-uri-qaqpw80j.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./cors-s282vggx.js";
36
+ } from "./media-uri-2xcc0x05.js";
37
37
  import {
38
38
  layer2
39
- } from "./cors-3p9jwgak.js";
39
+ } from "./media-uri-fvpjvjpp.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./cors-r7kkkqba.js";
42
+ } from "./media-uri-prdak4hd.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./cors-1v577ncx.js";
45
+ } from "./media-uri-hnheq3hv.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./cors-2eaky32g.js";
48
+ } from "./media-uri-qn8kkfq6.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./cors-p6jxhmbt.js";
51
+ } from "./media-uri-wnzs2aq5.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./cors-qcg3sqtb.js";
54
+ } from "./media-uri-x8dgc261.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./cors-psw29prz.js";
57
+ } from "./media-uri-84dqjc6j.js";
58
58
  import {
59
59
  PersistentPtyHandler2
60
- } from "./cors-skxr37j4.js";
60
+ } from "./media-uri-287m9s8a.js";
61
61
  import {
62
62
  ShellHandler2
63
- } from "./cors-qd0r787n.js";
63
+ } from "./media-uri-22wspztn.js";
64
64
  import {
65
65
  ReferenceHandler2
66
- } from "./cors-te8jwba1.js";
66
+ } from "./media-uri-yr4wsvrw.js";
67
67
  import {
68
68
  LocationHandler2
69
- } from "./cors-zcvan105.js";
69
+ } from "./media-uri-h072q2hm.js";
70
70
  import {
71
71
  IntegrationHandler2
72
- } from "./cors-mpvvr0mh.js";
72
+ } from "./media-uri-4zy25zv5.js";
73
73
  import {
74
74
  WebSearchHandler2
75
- } from "./cors-kkdkqt8j.js";
75
+ } from "./media-uri-e46y0tfd.js";
76
76
  import {
77
77
  UsageHandler2
78
- } from "./cors-b105zy65.js";
78
+ } from "./media-uri-j9gxd9me.js";
79
79
  import {
80
80
  McpHandler2
81
- } from "./cors-1ndv3m9h.js";
81
+ } from "./media-uri-34xzc0ha.js";
82
82
  import {
83
83
  CredentialHandler2
84
- } from "./cors-k5thrxbp.js";
84
+ } from "./media-uri-06zffp76.js";
85
85
  import {
86
86
  ProjectHandler2
87
- } from "./cors-a8jcac9a.js";
87
+ } from "./media-uri-dk68ymtv.js";
88
88
  import {
89
89
  WorktreeHandler2
90
- } from "./cors-enp1bp7r.js";
90
+ } from "./media-uri-41yet3w7.js";
91
91
  import {
92
92
  VcsHandler2
93
- } from "./cors-5s6gh8sx.js";
93
+ } from "./media-uri-xe9t9xr4.js";
94
94
  import {
95
95
  MigrationHandler2
96
- } from "./cors-6z9pvq7p.js";
96
+ } from "./media-uri-1je14sn4.js";
97
97
  import {
98
98
  ConfigHandler2
99
- } from "./cors-cezwbsk5.js";
99
+ } from "./media-uri-b2k9041j.js";
100
100
 
101
101
  // src/handlers.ts
102
102
  import { Layer } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-j87xz9bt.js";
3
+ } from "./media-uri-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./cors-50bbk3b2.js";
4
+ } from "./media-uri-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-j87xz9bt.js";
7
+ } from "./media-uri-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CONTENT_SECURITY_POLICY2,
3
3
  disposition2
4
- } from "./cors-t32e1bbt.js";
4
+ } from "./media-uri-t32e1bbt.js";
5
5
 
6
6
  // src/handlers/media.ts
7
7
  import { Database } from "@opencode/core/database/database";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-j87xz9bt.js";
3
+ } from "./media-uri-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./cors-50bbk3b2.js";
4
+ } from "./media-uri-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-j87xz9bt.js";
7
+ } from "./media-uri-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";