@opencode/server 0.0.0-dev-21922 → 0.0.0-dev-51

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/{cors-x4gped6c.js → options-1h63dkgz.js} +16 -16
  6. package/dist/chunks/{cors-qkqa867r.js → options-32zxn73z.js} +6 -6
  7. package/dist/chunks/{cors-e6e4kz0w.js → options-39nnfjx1.js} +4 -4
  8. package/dist/chunks/{cors-z3e7v67k.js → options-3te71694.js} +7 -7
  9. package/dist/chunks/{cors-rxyx8sa0.js → options-4xzps9pr.js} +2 -2
  10. package/dist/chunks/{cors-3a2y3rg9.js → options-57bnbjk6.js} +8 -8
  11. package/dist/chunks/{cors-vtfzy3at.js → options-62bfwtjc.js} +2 -2
  12. package/dist/chunks/{cors-7tewdwsb.js → options-85kbrn7y.js} +2 -2
  13. package/dist/chunks/{cors-xbqm7mpj.js → options-9q55v56g.js} +2 -2
  14. package/dist/chunks/{cors-7b9xm1qg.js → options-9tsb9bht.js} +1 -1
  15. package/dist/chunks/{cors-7cd61xtm.js → options-axx4wwen.js} +2 -2
  16. package/dist/chunks/{cors-3whnvwbg.js → options-bknbvq67.js} +4 -4
  17. package/dist/chunks/{cors-hdwd22w5.js → options-dags6vpm.js} +1 -1
  18. package/dist/chunks/{cors-gk0yxcp6.js → options-ddnay6e1.js} +1 -1
  19. package/dist/chunks/{cors-0e4fm4yw.js → options-e0z6mnzj.js} +1 -1
  20. package/dist/chunks/{cors-5553qfcy.js → options-ey9m07rx.js} +3 -3
  21. package/dist/chunks/{cors-74kxthdf.js → options-f0kpaq89.js} +1 -1
  22. package/dist/chunks/{cors-skcryrty.js → options-f96zeczf.js} +2 -2
  23. package/dist/chunks/{cors-gqq6kfhc.js → options-gymtz25n.js} +3 -3
  24. package/dist/chunks/{cors-zyntahe8.js → options-hr24310e.js} +1 -1
  25. package/dist/chunks/{cors-3yw6ah7d.js → options-j5nctpa6.js} +2 -2
  26. package/dist/chunks/{cors-jc2vwkyw.js → options-j6d0mxrp.js} +2 -2
  27. package/dist/chunks/{cors-mzs0n5xz.js → options-kqr36gas.js} +7 -7
  28. package/dist/chunks/{cors-zmgfywqd.js → options-mam5ppd3.js} +1 -1
  29. package/dist/chunks/{cors-pw72p9a3.js → options-mftrjw1x.js} +33 -33
  30. package/dist/chunks/{cors-z9kgby92.js → options-nzrkt0f5.js} +4 -4
  31. package/dist/chunks/{cors-m3t57gm1.js → options-pbxe02h0.js} +4 -4
  32. package/dist/chunks/{cors-j4at0y5c.js → options-peg0afvz.js} +9 -5
  33. package/dist/chunks/{cors-631x5hrn.js → options-pf68b6b2.js} +4 -4
  34. package/dist/chunks/{cors-50xc6x42.js → options-q7gnt7ra.js} +3 -3
  35. package/dist/chunks/{cors-9jtrwq3h.js → options-sst5eg8z.js} +6 -6
  36. package/dist/chunks/{cors-0pbbhyf6.js → options-tgb4pddq.js} +2 -2
  37. package/dist/chunks/{cors-xckd9f88.js → options-v4jqkmz1.js} +2 -2
  38. package/dist/chunks/{cors-r5696se6.js → options-v7p1kzzd.js} +3 -3
  39. package/dist/chunks/{cors-5z5anmwp.js → options-va7wgp70.js} +2 -2
  40. package/dist/chunks/{cors-7x1re4zg.js → options-vyzvby0b.js} +2 -2
  41. package/dist/chunks/{cors-08zhnp7p.js → options-wecgp61r.js} +23 -22
  42. package/dist/chunks/{cors-yet0vexm.js → options-x74w7e1f.js} +1 -1
  43. package/dist/chunks/{cors-f4exzdsf.js → options-xad49dn3.js} +2 -2
  44. package/dist/chunks/{cors-2835150m.js → options-xfynz25m.js} +2 -2
  45. package/dist/chunks/{cors-vvp99hc9.js → options-xwy6frfd.js} +1 -1
  46. package/dist/chunks/{cors-3mffapg0.js → options-y56ann6c.js} +4 -4
  47. package/dist/chunks/{cors-vfkjeyp3.js → options-z48nkxh0.js} +1 -1
  48. package/dist/chunks/{cors-xpg37vzc.js → options-zzxz7279.js} +2 -2
  49. package/dist/chunks/{cors-4gk9fc6f.js → options-zzyy0zrw.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 +3 -3
  53. package/dist/fetch.d.ts +1 -0
  54. package/dist/fetch.js +52 -52
  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 +5 -5
  105. package/dist/service-status.js +3 -3
  106. package/dist/workerd.js +53 -53
  107. package/package.json +9 -8
  108. /package/dist/chunks/{cors-9rqn6x4v.js → options-9rqn6x4v.js} +0 -0
  109. /package/dist/chunks/{cors-erzfdgke.js → options-erzfdgke.js} +0 -0
  110. /package/dist/chunks/{cors-h6rt5k9s.js → options-h6rt5k9s.js} +0 -0
  111. /package/dist/chunks/{cors-n321d8vm.js → options-n321d8vm.js} +0 -0
  112. /package/dist/chunks/{cors-q4bn6dy8.js → options-q4bn6dy8.js} +0 -0
  113. /package/dist/chunks/{cors-smaf4a18.js → options-smaf4a18.js} +0 -0
  114. /package/dist/chunks/{cors-xthc02cw.js → options-xthc02cw.js} +0 -0
  115. /package/dist/chunks/{cors-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/cors-r5696se6.js";
4
- import"./chunks/cors-gk0yxcp6.js";
5
- import"./chunks/cors-yet0vexm.js";
6
- import"./chunks/cors-gqq6kfhc.js";
7
- import"./chunks/cors-smaf4a18.js";
3
+ } from "./chunks/options-v7p1kzzd.js";
4
+ import"./chunks/options-ddnay6e1.js";
5
+ import"./chunks/options-x74w7e1f.js";
6
+ import"./chunks/options-gymtz25n.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/cors-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,36 +1,36 @@
1
1
  import {
2
- layer3
3
- } from "./cors-gqq6kfhc.js";
2
+ layer2
3
+ } from "./options-gymtz25n.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./cors-gk0yxcp6.js";
6
+ } from "./options-ddnay6e1.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./cors-yet0vexm.js";
9
+ } from "./options-x74w7e1f.js";
10
10
  import {
11
11
  Api2
12
- } from "./cors-r5696se6.js";
12
+ } from "./options-v7p1kzzd.js";
13
13
  import {
14
14
  Config2
15
- } from "./cors-j4at0y5c.js";
15
+ } from "./options-peg0afvz.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./cors-q4bn6dy8.js";
18
+ } from "./options-q4bn6dy8.js";
19
19
  import {
20
- layer2
21
- } from "./cors-z3e7v67k.js";
20
+ layer3
21
+ } from "./options-3te71694.js";
22
22
  import {
23
23
  node2
24
- } from "./cors-mzs0n5xz.js";
24
+ } from "./options-kqr36gas.js";
25
25
  import {
26
26
  handlers2
27
- } from "./cors-pw72p9a3.js";
27
+ } from "./options-mftrjw1x.js";
28
28
  import {
29
29
  authorizationLayer2
30
- } from "./cors-7b9xm1qg.js";
30
+ } from "./options-9tsb9bht.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./cors-erzfdgke.js";
33
+ } from "./options-erzfdgke.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -103,7 +103,7 @@ var applicationServiceNodes = [
103
103
  ];
104
104
  var applicationServices = LayerNode.group(applicationServiceNodes);
105
105
  function createRoutes2(options = {}, serviceURLs = () => [], overrides = []) {
106
- return makeRoutes(options.password ? Config2.configLayer({ password: Option.some(options.password) }) : Config2.layer, options, serviceURLs, overrides);
106
+ return makeRoutes(options.password ? Config2.configLayer({ password: Option.some(options.password), username: options.username }) : Config2.layer, options, serviceURLs, overrides);
107
107
  }
108
108
  function createEmbeddedRoutes2(options = {}, overrides = [], instances) {
109
109
  return makeRoutes(Config2.configLayer({ password: Option.none() }), options, () => [], overrides, instances);
@@ -149,8 +149,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
149
149
  })) : build(overrides);
150
150
  return serviceLayer.pipe(Layer.flatMap((context) => {
151
151
  const services = Layer.succeedContext(context);
152
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer2(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
153
- 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));
152
+ 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));
153
+ 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(layer2), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
154
154
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
155
155
  }));
156
156
  }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./options-v7p1kzzd.js";
4
4
  import {
5
- Service3,
5
+ Service4,
6
6
  frame2
7
- } from "./cors-08zhnp7p.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,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./cors-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: () => make3
9
+ make: () => make2
10
10
  });
11
11
  import { Effect, Ref } from "effect";
12
- var make3 = Effect.fnUntraced(function* (options = {}) {
12
+ var make2 = 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 make3 = Effect.fnUntraced(function* (options = {}) {
20
20
  };
21
21
  });
22
22
 
23
- export { make3, exports_service_status };
23
+ export { make2, exports_service_status };
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  __export
3
- } from "./cors-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
- layer: () => layer2
11
+ layer: () => layer3
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
- function layer2(urls, tmp, app = {}) {
19
- return Layer.succeed(Service2, Service2.of({ urls, app, paths: { tmp } }));
18
+ function layer3(urls, tmp, app = {}) {
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, layer3, connectionURLs2, exports_server_info };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./options-gymtz25n.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./options-v7p1kzzd.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./options-v7p1kzzd.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./cors-j4at0y5c.js";
9
+ } from "./options-peg0afvz.js";
10
10
  import {
11
- Service2
12
- } from "./cors-z3e7v67k.js";
11
+ Service3
12
+ } from "./options-3te71694.js";
13
13
  import {
14
- Service4
15
- } from "./cors-mzs0n5xz.js";
14
+ Service2
15
+ } from "./options-kqr36gas.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { hostname } from "node:os";
@@ -22,10 +22,10 @@ import { HttpApiBuilder } from "effect/http-api";
22
22
  import { PersistentPty } from "@opencode/core/persistent-pty";
23
23
  import { UnauthorizedError } from "@opencode/protocol/errors";
24
24
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
25
- const pairing = yield* Service4;
25
+ const pairing = yield* Service2;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
- const info = yield* Service2;
28
+ const info = yield* Service3;
29
29
  return {
30
30
  version: info.app.version ?? "unknown",
31
31
  pid: process.pid ?? 0,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./cors-gqq6kfhc.js";
4
+ } from "./options-gymtz25n.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-r5696se6.js";
7
+ } from "./options-v7p1kzzd.js";
8
8
 
9
9
  // src/handlers/provider.ts
10
10
  import { Provider } from "@opencode/core/provider";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./options-gymtz25n.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./options-v7p1kzzd.js";
7
7
 
8
8
  // src/handlers/vcs.ts
9
9
  import { Vcs } from "@opencode/core/vcs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./options-gymtz25n.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./options-v7p1kzzd.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./cors-j4at0y5c.js";
7
+ } from "./options-peg0afvz.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./cors-gqq6kfhc.js";
4
+ } from "./options-gymtz25n.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-r5696se6.js";
7
+ } from "./options-v7p1kzzd.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -2,17 +2,17 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./cors-gqq6kfhc.js";
5
+ } from "./options-gymtz25n.js";
6
6
  import {
7
7
  Api2
8
- } from "./cors-r5696se6.js";
8
+ } from "./options-v7p1kzzd.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./cors-q4bn6dy8.js";
12
+ } from "./options-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2
15
- } from "./cors-h6rt5k9s.js";
15
+ } from "./options-h6rt5k9s.js";
16
16
 
17
17
  // src/handlers/mcp.ts
18
18
  import { Location } from "@opencode/core/location";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./options-v7p1kzzd.js";
4
4
 
5
5
  // src/handlers/credential.ts
6
6
  import { Credential } from "@opencode/core/credential";
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./cors-gqq6kfhc.js";
5
+ } from "./options-gymtz25n.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./options-v7p1kzzd.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./cors-smaf4a18.js";
4
+ } from "./options-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-r5696se6.js";
7
+ } from "./options-v7p1kzzd.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./cors-xthc02cw.js";
10
+ } from "./options-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-r5696se6.js";
3
+ } from "./options-v7p1kzzd.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./options-gymtz25n.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./options-v7p1kzzd.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./cors-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 layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
62
+ var layer2 = 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 layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer3 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./options-v7p1kzzd.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./cors-gqq6kfhc.js";
4
+ } from "./options-gymtz25n.js";
5
5
  import {
6
6
  Api2
7
- } from "./cors-r5696se6.js";
7
+ } from "./options-v7p1kzzd.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./cors-gqq6kfhc.js";
3
+ } from "./options-gymtz25n.js";
4
4
  import {
5
5
  Api2
6
- } from "./cors-r5696se6.js";
6
+ } from "./options-v7p1kzzd.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./cors-9rqn6x4v.js";
3
+ } from "./options-9rqn6x4v.js";
4
4
 
5
5
  // src/pairing.ts
6
6
  var exports_pairing = {};
7
7
  __export(exports_pairing, {
8
8
  ServerPairing: () => exports_pairing,
9
- Service: () => Service4,
9
+ Service: () => Service2,
10
10
  node: () => node2
11
11
  });
12
12
  import { Cache, Context, Duration, Effect, Layer } from "effect";
@@ -14,12 +14,12 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
14
14
  import { randomBytes } from "node:crypto";
15
15
  var TTL = Duration.minutes(5);
16
16
 
17
- class Service4 extends Context.Service()("@opencode/ServerPairing") {
17
+ class Service2 extends Context.Service()("@opencode/ServerPairing") {
18
18
  }
19
19
  var noLookup = () => Effect.die(new Error("ServerPairing cache must be used via set/invalidateWhen, never get"));
20
- var layer = Layer.effect(Service4, Effect.gen(function* () {
20
+ var layer = Layer.effect(Service2, Effect.gen(function* () {
21
21
  const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
22
- return Service4.of({
22
+ return Service2.of({
23
23
  issue: Effect.fn("ServerPairing.issue")(function* () {
24
24
  const code = randomBytes(16).toString("base64url");
25
25
  yield* Cache.set(cache, code, true);
@@ -30,6 +30,6 @@ var layer = Layer.effect(Service4, Effect.gen(function* () {
30
30
  })
31
31
  });
32
32
  }));
33
- var node2 = makeGlobalNode({ service: Service4, layer, deps: [] });
33
+ var node2 = makeGlobalNode({ service: Service2, layer, deps: [] });
34
34
 
35
- export { Service4, node2, exports_pairing };
35
+ export { Service2, node2, exports_pairing };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./cors-r5696se6.js";
3
+ } from "./options-v7p1kzzd.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";