@opencode/server 0.0.0-dev-21920 → 0.0.0-dev-44

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 (115) hide show
  1. package/dist/api.d.ts +3 -1
  2. package/dist/api.js +5 -5
  3. package/dist/auth.d.ts +5 -1
  4. package/dist/auth.js +3 -1
  5. package/dist/chunks/{media-uri-b2acc4mg.js → options-0a5jm2na.js} +4 -4
  6. package/dist/chunks/{media-uri-0c5s68vs.js → options-17ecnfcg.js} +2 -2
  7. package/dist/chunks/{media-uri-6z9pvq7p.js → options-1je14sn4.js} +1 -1
  8. package/dist/chunks/{media-uri-qd0r787n.js → options-22wspztn.js} +2 -2
  9. package/dist/chunks/{media-uri-s282vggx.js → options-2xcc0x05.js} +1 -1
  10. package/dist/chunks/{media-uri-z3e7v67k.js → options-5pdfedjd.js} +5 -5
  11. package/dist/chunks/{media-uri-ny1j968n.js → options-6vs5sqy6.js} +2 -2
  12. package/dist/chunks/{media-uri-j87xz9bt.js → options-9c4eyh8m.js} +3 -3
  13. package/dist/chunks/{media-uri-7b9xm1qg.js → options-9tsb9bht.js} +1 -1
  14. package/dist/chunks/{media-uri-5xzbpdv4.js → options-awjv4jq4.js} +2 -2
  15. package/dist/chunks/{media-uri-cezwbsk5.js → options-b2k9041j.js} +1 -1
  16. package/dist/chunks/{media-uri-5b42hxrf.js → options-be53s2qz.js} +1 -1
  17. package/dist/chunks/{media-uri-a8jcac9a.js → options-dk68ymtv.js} +1 -1
  18. package/dist/chunks/{media-uri-kkdkqt8j.js → options-e46y0tfd.js} +2 -2
  19. package/dist/chunks/{media-uri-0q7s66m2.js → options-e6e4kz0w.js} +4 -4
  20. package/dist/chunks/{media-uri-wcn6e2d2.js → options-e9906t2e.js} +6 -6
  21. package/dist/chunks/{media-uri-8254b7zm.js → options-fqnn17ss.js} +35 -35
  22. package/dist/chunks/{media-uri-htyf2qs7.js → options-gk0yxcp6.js} +1 -1
  23. package/dist/chunks/{media-uri-50bbk3b2.js → options-gqq6kfhc.js} +3 -3
  24. package/dist/chunks/{media-uri-zcvan105.js → options-h072q2hm.js} +1 -1
  25. package/dist/chunks/{media-uri-4fy84009.js → options-h9rcwvg0.js} +1 -1
  26. package/dist/chunks/{media-uri-az0609r6.js → options-hax1v4bv.js} +2 -2
  27. package/dist/chunks/{media-uri-1v577ncx.js → options-hnheq3hv.js} +2 -2
  28. package/dist/chunks/{media-uri-b105zy65.js → options-j9gxd9me.js} +2 -2
  29. package/dist/chunks/{media-uri-htj50t1a.js → options-kffvskmv.js} +4 -4
  30. package/dist/chunks/{media-uri-p9jzpjd0.js → options-khcas2q2.js} +3 -3
  31. package/dist/chunks/{media-uri-mzs0n5xz.js → options-kqr36gas.js} +7 -7
  32. package/dist/chunks/{media-uri-f559fakr.js → options-m5rae7m4.js} +2 -2
  33. package/dist/chunks/{media-uri-20hxek78.js → options-nha9c8fp.js} +4 -4
  34. package/dist/chunks/{media-uri-j4at0y5c.js → options-peg0afvz.js} +9 -5
  35. package/dist/chunks/{media-uri-btahnm2b.js → options-ppma8fcc.js} +3 -3
  36. package/dist/chunks/{media-uri-2h6qktqa.js → options-r6vmgwff.js} +2 -2
  37. package/dist/chunks/{media-uri-sz1xtn87.js → options-s9k7mqbm.js} +14 -14
  38. package/dist/chunks/{media-uri-vsfeekyx.js → options-vj2c9626.js} +4 -4
  39. package/dist/chunks/{media-uri-47s7e54k.js → options-wcfd0w14.js} +8 -8
  40. package/dist/chunks/{media-uri-y4zerkz9.js → options-wecgp61r.js} +27 -26
  41. package/dist/chunks/{media-uri-d0edqfxx.js → options-wxj3d9av.js} +2 -2
  42. package/dist/chunks/{media-uri-qcg3sqtb.js → options-x8dgc261.js} +2 -2
  43. package/dist/chunks/{media-uri-5s6gh8sx.js → options-xe9t9xr4.js} +2 -2
  44. package/dist/chunks/{media-uri-8s23qbm0.js → options-xga54a1t.js} +4 -4
  45. package/dist/chunks/{media-uri-b3bmdkga.js → options-yet0vexm.js} +1 -1
  46. package/dist/chunks/{media-uri-te8jwba1.js → options-yr4wsvrw.js} +2 -2
  47. package/dist/chunks/{media-uri-4q6e7fh8.js → options-z59gyc0x.js} +2 -2
  48. package/dist/chunks/{media-uri-58psf7ej.js → options-zgt2tacv.js} +3 -3
  49. package/dist/chunks/{media-uri-h29xjj1e.js → options-zjy4sw3d.js} +2 -2
  50. package/dist/cors.js +1 -1
  51. package/dist/event-feed.d.ts +1 -1
  52. package/dist/event-feed.js +7 -7
  53. package/dist/fetch.d.ts +1 -0
  54. package/dist/fetch.js +50 -50
  55. package/dist/handlers/agent.js +6 -6
  56. package/dist/handlers/command.js +6 -6
  57. package/dist/handlers/config.js +6 -6
  58. package/dist/handlers/credential.js +6 -6
  59. package/dist/handlers/debug.js +6 -6
  60. package/dist/handlers/event.js +7 -7
  61. package/dist/handlers/form.js +6 -6
  62. package/dist/handlers/fs.js +6 -6
  63. package/dist/handlers/generate.js +6 -6
  64. package/dist/handlers/integration.js +6 -6
  65. package/dist/handlers/location.js +6 -6
  66. package/dist/handlers/mcp.js +8 -8
  67. package/dist/handlers/media.js +1 -1
  68. package/dist/handlers/message.js +7 -7
  69. package/dist/handlers/migration.js +6 -6
  70. package/dist/handlers/model.js +6 -6
  71. package/dist/handlers/permission.js +6 -6
  72. package/dist/handlers/persistent-pty.js +9 -9
  73. package/dist/handlers/plugin.js +6 -6
  74. package/dist/handlers/project.js +6 -6
  75. package/dist/handlers/provider.js +6 -6
  76. package/dist/handlers/pty-socket.js +1 -1
  77. package/dist/handlers/pty.js +8 -8
  78. package/dist/handlers/reference.js +6 -6
  79. package/dist/handlers/rpc.js +6 -6
  80. package/dist/handlers/server.js +9 -9
  81. package/dist/handlers/session-error.js +1 -1
  82. package/dist/handlers/session.js +7 -7
  83. package/dist/handlers/shell.js +6 -6
  84. package/dist/handlers/skill.js +6 -6
  85. package/dist/handlers/usage.js +6 -6
  86. package/dist/handlers/vcs.js +6 -6
  87. package/dist/handlers/voice.js +6 -6
  88. package/dist/handlers/websearch.js +6 -6
  89. package/dist/handlers/worktree.js +6 -6
  90. package/dist/handlers.js +46 -46
  91. package/dist/location.js +4 -4
  92. package/dist/media-uri.js +1 -1
  93. package/dist/middleware/authorization.js +2 -2
  94. package/dist/middleware/form-location.js +3 -3
  95. package/dist/middleware/schema-error.js +1 -1
  96. package/dist/middleware/session-location.js +3 -3
  97. package/dist/options.d.ts +1 -0
  98. package/dist/options.js +1 -0
  99. package/dist/pairing.js +3 -3
  100. package/dist/process.d.ts +1 -0
  101. package/dist/process.js +61 -57
  102. package/dist/request-tracing.js +1 -1
  103. package/dist/routes.js +49 -49
  104. package/dist/server-info.js +3 -3
  105. package/dist/service-status.js +3 -3
  106. package/dist/workerd.js +51 -51
  107. package/package.json +9 -8
  108. /package/dist/chunks/{media-uri-9rqn6x4v.js → options-9rqn6x4v.js} +0 -0
  109. /package/dist/chunks/{media-uri-erzfdgke.js → options-erzfdgke.js} +0 -0
  110. /package/dist/chunks/{media-uri-h6rt5k9s.js → options-h6rt5k9s.js} +0 -0
  111. /package/dist/chunks/{media-uri-n321d8vm.js → options-n321d8vm.js} +0 -0
  112. /package/dist/chunks/{media-uri-q4bn6dy8.js → options-q4bn6dy8.js} +0 -0
  113. /package/dist/chunks/{media-uri-smaf4a18.js → options-smaf4a18.js} +0 -0
  114. /package/dist/chunks/{media-uri-xthc02cw.js → options-xthc02cw.js} +0 -0
  115. /package/dist/chunks/{media-uri-yc7nft6q.js → options-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import { LocationMiddleware } from "./location";
2
2
  import { FormLocationMiddleware } from "./middleware/form-location";
3
3
  import { SessionLocationMiddleware } from "./middleware/session-location";
4
- export declare const Api: import("@opencode/protocol/api").Api<LocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, FormLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, SessionLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, import("effect/http-api/HttpApiGroup").HttpApiGroup<"server.event", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, never, never, never, import("effect/http-api/HttpApiSchema").StreamSse<import("effect/http-api/HttpApiSchema").SseEventFromData<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4
+ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, FormLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, SessionLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, import("effect/http-api/HttpApiGroup").HttpApiGroup<"server.event", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
5
+ readonly types: import("effect/Schema").optional<import("effect/Schema").ArrayEnsure<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ("agent.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated")[]>, import("effect/Schema").TemplateLiteral<readonly ["rpc.", import("effect/Schema").String]>]>>>;
6
+ }>>, never, never, import("effect/http-api/HttpApiSchema").StreamSse<import("effect/http-api/HttpApiSchema").SseEventFromData<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5
7
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
6
8
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
7
9
  };
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/media-uri-j87xz9bt.js";
4
- import"./chunks/media-uri-htyf2qs7.js";
5
- import"./chunks/media-uri-b3bmdkga.js";
6
- import"./chunks/media-uri-50bbk3b2.js";
7
- import"./chunks/media-uri-smaf4a18.js";
3
+ } from "./chunks/options-9c4eyh8m.js";
4
+ import"./chunks/options-yet0vexm.js";
5
+ import"./chunks/options-gk0yxcp6.js";
6
+ import"./chunks/options-gqq6kfhc.js";
7
+ import"./chunks/options-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.d.ts CHANGED
@@ -8,10 +8,14 @@ export type Info = {
8
8
  readonly password: Option.Option<string>;
9
9
  readonly username: string;
10
10
  };
11
+ export declare const DEFAULT_USERNAME = "opencode";
11
12
  export declare const SESSION_TTL_SECONDS: number;
12
13
  declare const Config_base: Context.ServiceClass<Config, "@opencode/ServerAuthConfig", Info>;
13
14
  export declare class Config extends Config_base {
14
- static configLayer(input: Pick<Info, "password">): Layer.Layer<Config, never, never>;
15
+ static configLayer(input: {
16
+ readonly password: Option.Option<string>;
17
+ readonly username?: string;
18
+ }): Layer.Layer<Config, never, never>;
15
19
  static get layer(): Layer.Layer<Config, never, never>;
16
20
  }
17
21
  export declare function required(config: Info): boolean;
package/dist/auth.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import {
2
+ DEFAULT_USERNAME2,
2
3
  SESSION_TTL_SECONDS2,
3
4
  Config2,
4
5
  required2,
@@ -7,9 +8,10 @@ import {
7
8
  verifySession2,
8
9
  sessionCookieName2,
9
10
  exports_auth
10
- } from "./chunks/media-uri-j4at0y5c.js";
11
+ } from "./chunks/options-peg0afvz.js";
11
12
  export {
12
13
  Config2 as Config,
14
+ DEFAULT_USERNAME2 as DEFAULT_USERNAME,
13
15
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
14
16
  exports_auth as ServerAuth,
15
17
  authorized2 as authorized,
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-50bbk3b2.js";
4
+ } from "./options-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-j87xz9bt.js";
7
+ } from "./options-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
11
11
  import { Effect } from "effect";
12
12
  import { HttpApiBuilder } from "effect/http-api";
13
13
  var ModelHandler2 = HttpApiBuilder.group(Api2, "server.model", (handlers) => Effect.gen(function* () {
14
- return handlers.handle("model.list", Effect.fn(function* () {
14
+ return handlers.handle("model.list", Effect.fn(function* (ctx) {
15
15
  yield* awaitPlugins2;
16
16
  const models = yield* Model.Service;
17
- return yield* response2(models.available());
17
+ return yield* response2(models.available(ctx.query.types));
18
18
  })).handle("model.default", Effect.fn(function* () {
19
19
  yield* awaitPlugins2;
20
20
  const models = yield* Model.Service;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./media-uri-50bbk3b2.js";
4
+ } from "./options-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-j87xz9bt.js";
7
+ } from "./options-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-j87xz9bt.js";
3
+ } from "./options-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-50bbk3b2.js";
3
+ } from "./options-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-j87xz9bt.js";
6
+ } from "./options-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-j87xz9bt.js";
3
+ } from "./options-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./options-9rqn6x4v.js";
4
4
 
5
5
  // src/server-info.ts
6
6
  var exports_server_info = {};
7
7
  __export(exports_server_info, {
8
8
  ServerInfo: () => exports_server_info,
9
- Service: () => Service2,
9
+ Service: () => Service3,
10
10
  connectionURLs: () => connectionURLs2,
11
11
  layer: () => layer2
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
- class Service2 extends Context.Service()("@opencode/server/ServerInfo") {
16
+ class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
18
  function layer2(urls, tmp, app = {}) {
19
- return Layer.succeed(Service2, Service2.of({ urls, app, paths: { tmp } }));
19
+ return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
20
20
  }
21
21
  function connectionURLs2(value, requestedHostname) {
22
22
  const url = new URL(value);
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
38
38
  ];
39
39
  }
40
40
 
41
- export { Service2, layer2, connectionURLs2, exports_server_info };
41
+ export { Service3, layer2, connectionURLs2, exports_server_info };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-50bbk3b2.js";
3
+ } from "./options-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-j87xz9bt.js";
6
+ } from "./options-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./media-uri-50bbk3b2.js";
3
+ } from "./options-gqq6kfhc.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./media-uri-htyf2qs7.js";
6
+ } from "./options-gk0yxcp6.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./media-uri-b3bmdkga.js";
9
+ } from "./options-yet0vexm.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./media-uri-j4at0y5c.js";
7
+ } from "./options-peg0afvz.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./media-uri-50bbk3b2.js";
3
+ } from "./options-gqq6kfhc.js";
4
4
  import {
5
5
  Api2
6
- } from "./media-uri-j87xz9bt.js";
6
+ } from "./options-9c4eyh8m.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-j87xz9bt.js";
3
+ } from "./options-9c4eyh8m.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
  Api2
3
- } from "./media-uri-j87xz9bt.js";
3
+ } from "./options-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/credential.ts
6
6
  import { Credential } from "@opencode/core/credential";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-j87xz9bt.js";
3
+ } from "./options-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 "./media-uri-50bbk3b2.js";
4
+ } from "./options-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-j87xz9bt.js";
7
+ } from "./options-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./media-uri-9rqn6x4v.js";
3
+ } from "./options-9rqn6x4v.js";
4
4
 
5
5
  // src/service-status.ts
6
6
  var exports_service_status = {};
7
7
  __export(exports_service_status, {
8
8
  Status: () => exports_service_status,
9
- make: () => make4
9
+ make: () => make3
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make4 = Effect.fnUntraced(function* (options = {}) {
12
+ var make3 = Effect.fnUntraced(function* (options = {}) {
13
13
  const current = yield* Ref.make(options.initial ?? { type: "starting" });
14
14
  const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
15
15
  return {
@@ -20,4 +20,4 @@ var make4 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make4, exports_service_status };
23
+ export { make3, exports_service_status };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-j87xz9bt.js";
3
+ } from "./options-9c4eyh8m.js";
4
4
  import {
5
- Service3,
5
+ Service4,
6
6
  frame2
7
- } from "./media-uri-y4zerkz9.js";
7
+ } from "./options-wecgp61r.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -12,14 +12,14 @@ import { Effect, Stream } from "effect";
12
12
  import { HttpServerResponse } from "effect/http";
13
13
  import { HttpApiBuilder } from "effect/http-api";
14
14
  var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
15
- const feed = yield* Service3;
16
- return handlers.handleRaw("event.subscribe", () => Effect.gen(function* () {
15
+ const feed = yield* Service4;
16
+ return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
17
17
  const connected = {
18
18
  id: Event.ID.create(),
19
19
  type: "server.connected",
20
20
  data: {}
21
21
  };
22
- const output = Stream.unwrap(feed.subscribe.pipe(Effect.map((live) => Stream.make(frame2(connected)).pipe(Stream.concat(live)))));
22
+ const output = Stream.unwrap(feed.subscribe(ctx.query.types).pipe(Effect.map((live) => Stream.make(frame2(connected)).pipe(Stream.concat(live)))));
23
23
  const heartbeat = Stream.tick("15 seconds").pipe(Stream.map(() => `: heartbeat
24
24
 
25
25
  `));
@@ -1,105 +1,105 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./media-uri-0c5s68vs.js";
3
+ } from "./options-17ecnfcg.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./media-uri-d0edqfxx.js";
6
+ } from "./options-wxj3d9av.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./media-uri-58psf7ej.js";
9
+ } from "./options-zgt2tacv.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./media-uri-b2acc4mg.js";
12
+ } from "./options-0a5jm2na.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./media-uri-az0609r6.js";
15
+ } from "./options-hax1v4bv.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./media-uri-htj50t1a.js";
18
+ } from "./options-kffvskmv.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./media-uri-btahnm2b.js";
21
+ } from "./options-ppma8fcc.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./media-uri-2h6qktqa.js";
24
+ } from "./options-r6vmgwff.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./media-uri-f559fakr.js";
27
+ } from "./options-m5rae7m4.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./media-uri-4q6e7fh8.js";
30
+ } from "./options-z59gyc0x.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./media-uri-ny1j968n.js";
33
+ } from "./options-6vs5sqy6.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./media-uri-s282vggx.js";
36
+ } from "./options-2xcc0x05.js";
37
37
  import {
38
- layer3
39
- } from "./media-uri-y4zerkz9.js";
38
+ layer4
39
+ } from "./options-wecgp61r.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./media-uri-wcn6e2d2.js";
42
+ } from "./options-e9906t2e.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./media-uri-1v577ncx.js";
45
+ } from "./options-hnheq3hv.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./media-uri-5xzbpdv4.js";
48
+ } from "./options-awjv4jq4.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./media-uri-47s7e54k.js";
51
+ } from "./options-wcfd0w14.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./media-uri-qcg3sqtb.js";
54
+ } from "./options-x8dgc261.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./media-uri-vsfeekyx.js";
57
+ } from "./options-vj2c9626.js";
58
58
  import {
59
59
  PersistentPtyHandler2
60
- } from "./media-uri-8s23qbm0.js";
60
+ } from "./options-xga54a1t.js";
61
61
  import {
62
62
  ShellHandler2
63
- } from "./media-uri-qd0r787n.js";
63
+ } from "./options-22wspztn.js";
64
64
  import {
65
65
  ReferenceHandler2
66
- } from "./media-uri-te8jwba1.js";
66
+ } from "./options-yr4wsvrw.js";
67
67
  import {
68
68
  LocationHandler2
69
- } from "./media-uri-zcvan105.js";
69
+ } from "./options-h072q2hm.js";
70
70
  import {
71
71
  IntegrationHandler2
72
- } from "./media-uri-h29xjj1e.js";
72
+ } from "./options-zjy4sw3d.js";
73
73
  import {
74
74
  WebSearchHandler2
75
- } from "./media-uri-kkdkqt8j.js";
75
+ } from "./options-e46y0tfd.js";
76
76
  import {
77
77
  UsageHandler2
78
- } from "./media-uri-b105zy65.js";
78
+ } from "./options-j9gxd9me.js";
79
79
  import {
80
80
  McpHandler2
81
- } from "./media-uri-20hxek78.js";
81
+ } from "./options-nha9c8fp.js";
82
82
  import {
83
83
  CredentialHandler2
84
- } from "./media-uri-5b42hxrf.js";
84
+ } from "./options-be53s2qz.js";
85
85
  import {
86
86
  ProjectHandler2
87
- } from "./media-uri-a8jcac9a.js";
87
+ } from "./options-dk68ymtv.js";
88
88
  import {
89
89
  WorktreeHandler2
90
- } from "./media-uri-4fy84009.js";
90
+ } from "./options-h9rcwvg0.js";
91
91
  import {
92
92
  VcsHandler2
93
- } from "./media-uri-5s6gh8sx.js";
93
+ } from "./options-xe9t9xr4.js";
94
94
  import {
95
95
  MigrationHandler2
96
- } from "./media-uri-6z9pvq7p.js";
96
+ } from "./options-1je14sn4.js";
97
97
  import {
98
98
  ConfigHandler2
99
- } from "./media-uri-cezwbsk5.js";
99
+ } from "./options-b2k9041j.js";
100
100
 
101
101
  // src/handlers.ts
102
102
  import { Layer } from "effect";
103
- var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer3)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
103
+ var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer4)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
104
104
 
105
105
  export { handlers2 };
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./media-uri-50bbk3b2.js";
5
+ } from "./options-gqq6kfhc.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./media-uri-smaf4a18.js";
3
+ } from "./options-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -59,7 +59,7 @@ function decode(input) {
59
59
  return input;
60
60
  }
61
61
  }
62
- var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
62
+ var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
63
63
  const locations = yield* LocationServiceMap.Service;
64
64
  return LocationMiddleware2.of((effect) => Effect.gen(function* () {
65
65
  const request = yield* HttpServerRequest.HttpServerRequest;
@@ -67,4 +67,4 @@ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer4 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer3 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-j87xz9bt.js";
3
+ } from "./options-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./media-uri-j87xz9bt.js";
3
+ } from "./options-9c4eyh8m.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-50bbk3b2.js";
4
+ } from "./options-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-j87xz9bt.js";
7
+ } from "./options-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/provider.ts
10
10
  import { Provider } from "@opencode/core/provider";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-50bbk3b2.js";
4
+ } from "./options-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-j87xz9bt.js";
7
+ } from "./options-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/agent.ts
10
10
  import { Agent } from "@opencode/core/agent";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./media-uri-50bbk3b2.js";
4
+ } from "./options-gqq6kfhc.js";
5
5
  import {
6
6
  Api2
7
- } from "./media-uri-j87xz9bt.js";
7
+ } from "./options-9c4eyh8m.js";
8
8
 
9
9
  // src/handlers/usage.ts
10
10
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -3,16 +3,16 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./media-uri-smaf4a18.js";
6
+ } from "./options-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./media-uri-50bbk3b2.js";
9
+ } from "./options-gqq6kfhc.js";
10
10
  import {
11
11
  Api2
12
- } from "./media-uri-j87xz9bt.js";
12
+ } from "./options-9c4eyh8m.js";
13
13
  import {
14
14
  wantsMediaRefs2
15
- } from "./media-uri-xthc02cw.js";
15
+ } from "./options-xthc02cw.js";
16
16
 
17
17
  // src/handlers/session.ts
18
18
  import { Instance } from "@opencode/core/instance/service";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./media-uri-q4bn6dy8.js";
3
+ } from "./options-q4bn6dy8.js";
4
4
  import {
5
5
  createRoutes2
6
- } from "./media-uri-sz1xtn87.js";
6
+ } from "./options-s9k7mqbm.js";
7
7
  import {
8
8
  __export
9
- } from "./media-uri-9rqn6x4v.js";
9
+ } from "./options-9rqn6x4v.js";
10
10
 
11
11
  // src/fetch.ts
12
12
  var exports_fetch = {};