@opencode/server 0.0.0-dev-1366 → 0.0.0-dev-1368

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 (142) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{content-headers-mq10h3bj.js → workerd-0vqsbvsa.js} +4 -4
  4. package/dist/chunks/{content-headers-c6ktqe09.js → workerd-0wjm8gvs.js} +2 -2
  5. package/dist/chunks/{content-headers-eacgzt6w.js → workerd-10sj2tcf.js} +1 -1
  6. package/dist/chunks/{content-headers-maarxay5.js → workerd-1g4xykqx.js} +4 -4
  7. package/dist/chunks/{content-headers-8xffg4dw.js → workerd-1pbjpk0f.js} +4 -4
  8. package/dist/chunks/{content-headers-nh63c3gg.js → workerd-23n65c7j.js} +3 -3
  9. package/dist/chunks/{content-headers-29nx48hm.js → workerd-29nx48hm.js} +1 -1
  10. package/dist/chunks/{content-headers-7r996r31.js → workerd-2tmcamrc.js} +2 -2
  11. package/dist/chunks/{content-headers-e6e4kz0w.js → workerd-39nnfjx1.js} +4 -4
  12. package/dist/chunks/{content-headers-g9qy0kb1.js → workerd-3xkwxcke.js} +2 -2
  13. package/dist/chunks/{content-headers-50kbksvb.js → workerd-50kbksvb.js} +2 -2
  14. package/dist/chunks/{content-headers-3te71694.js → workerd-5pdfedjd.js} +4 -4
  15. package/dist/chunks/{content-headers-6pm6ek88.js → workerd-6pm6ek88.js} +1 -1
  16. package/dist/chunks/{content-headers-nfrn9zxf.js → workerd-784gqmc7.js} +2 -2
  17. package/dist/chunks/{content-headers-rg932pab.js → workerd-7dkb5ks8.js} +2 -2
  18. package/dist/chunks/{content-headers-6anyjjh1.js → workerd-8nezxn08.js} +1 -1
  19. package/dist/chunks/{content-headers-esvnag9e.js → workerd-8qsq6tbs.js} +2 -2
  20. package/dist/chunks/{content-headers-8sb6qqpn.js → workerd-8sb6qqpn.js} +1 -1
  21. package/dist/chunks/{content-headers-3w2mqh28.js → workerd-8xdajgpr.js} +2 -2
  22. package/dist/chunks/{content-headers-r6qsbz4y.js → workerd-9hynp6rm.js} +2 -2
  23. package/dist/chunks/{content-headers-21qqm769.js → workerd-9tw35sfc.js} +12 -12
  24. package/dist/chunks/{content-headers-f1tstpac.js → workerd-a6b7h8n6.js} +21 -25
  25. package/dist/chunks/{content-headers-wjh98yw2.js → workerd-am27j67f.js} +1 -1
  26. package/dist/chunks/{content-headers-br4x4prt.js → workerd-br4x4prt.js} +1 -1
  27. package/dist/chunks/{content-headers-ca564221.js → workerd-ca564221.js} +1 -1
  28. package/dist/chunks/{content-headers-djr0jy89.js → workerd-djr0jy89.js} +1 -1
  29. package/dist/chunks/{content-headers-8a8vhjqy.js → workerd-dsxhsz16.js} +6 -6
  30. package/dist/chunks/{content-headers-z80wqx10.js → workerd-e3jd9akj.js} +1 -1
  31. package/dist/chunks/{content-headers-ehyp3zqd.js → workerd-ehyp3zqd.js} +1 -1
  32. package/dist/chunks/{content-headers-z0v7xmc8.js → workerd-em7ed65n.js} +2 -2
  33. package/dist/chunks/{content-headers-qagtm26v.js → workerd-epfdwcja.js} +4 -4
  34. package/dist/chunks/{content-headers-f412ctvv.js → workerd-exwy1kbj.js} +2 -2
  35. package/dist/chunks/{content-headers-df03ef4a.js → workerd-f3gr6hfv.js} +2 -2
  36. package/dist/chunks/{content-headers-6n31atta.js → workerd-hfbw093d.js} +37 -37
  37. package/dist/chunks/{content-headers-j4at0y5c.js → workerd-j4at0y5c.js} +1 -1
  38. package/dist/chunks/{content-headers-javgytnb.js → workerd-javgytnb.js} +2 -2
  39. package/dist/chunks/{content-headers-ar950k47.js → workerd-k74zefsg.js} +1 -1
  40. package/dist/chunks/{content-headers-ka2mtp6f.js → workerd-ka2mtp6f.js} +2 -2
  41. package/dist/chunks/{content-headers-5ky8bme5.js → workerd-kmwr1xw9.js} +3 -3
  42. package/dist/chunks/{content-headers-fmkwyf76.js → workerd-mj1ewmp1.js} +9 -9
  43. package/dist/chunks/{content-headers-myqk22k5.js → workerd-myqk22k5.js} +2 -2
  44. package/dist/chunks/{content-headers-ykr4m3zx.js → workerd-n2zyxnzr.js} +1 -1
  45. package/dist/chunks/{content-headers-r682v2h3.js → workerd-prwd5gwt.js} +2 -2
  46. package/dist/chunks/{content-headers-htk4x1jk.js → workerd-qq3f8fnn.js} +2 -2
  47. package/dist/chunks/workerd-r8tdr8qd.js +43 -0
  48. package/dist/chunks/{content-headers-8y9zssdg.js → workerd-rgbnpstw.js} +2 -2
  49. package/dist/chunks/{content-headers-phgds112.js → workerd-rjhxbsc4.js} +2 -2
  50. package/dist/chunks/{content-headers-1nsytpdt.js → workerd-rm5kndzh.js} +4 -4
  51. package/dist/chunks/{content-headers-y8sa9sbe.js → workerd-s0zgx365.js} +2 -2
  52. package/dist/chunks/{content-headers-t32e1bbt.js → workerd-t32e1bbt.js} +1 -1
  53. package/dist/chunks/{content-headers-mzs0n5xz.js → workerd-v9t81kwn.js} +8 -8
  54. package/dist/chunks/{content-headers-jhs8rzvk.js → workerd-whvq72as.js} +3 -3
  55. package/dist/chunks/{content-headers-ddhjwr2w.js → workerd-wsvmph03.js} +2 -2
  56. package/dist/chunks/{content-headers-x2qy7jg1.js → workerd-x2qy7jg1.js} +1 -1
  57. package/dist/chunks/{content-headers-v60tcbt5.js → workerd-xw05m515.js} +3 -3
  58. package/dist/chunks/{content-headers-cj97w75w.js → workerd-yc92za0p.js} +2 -2
  59. package/dist/chunks/{content-headers-hs3dbf8w.js → workerd-z5c20bjd.js} +7 -7
  60. package/dist/content-headers.js +1 -1
  61. package/dist/cors.js +1 -1
  62. package/dist/event-feed.js +5 -5
  63. package/dist/fetch.d.ts +22 -11
  64. package/dist/fetch.js +72 -68
  65. package/dist/handlers/agent.js +6 -6
  66. package/dist/handlers/artifact.js +3 -3
  67. package/dist/handlers/automation.js +2 -2
  68. package/dist/handlers/blob.js +3 -3
  69. package/dist/handlers/command.js +6 -6
  70. package/dist/handlers/config.js +6 -6
  71. package/dist/handlers/credential.js +7 -7
  72. package/dist/handlers/debug.js +6 -6
  73. package/dist/handlers/event.js +7 -7
  74. package/dist/handlers/experimental/browser-tunnel.js +4 -4
  75. package/dist/handlers/flag.js +6 -6
  76. package/dist/handlers/form.js +6 -6
  77. package/dist/handlers/fs.js +8 -8
  78. package/dist/handlers/generate.js +6 -6
  79. package/dist/handlers/integration.js +6 -6
  80. package/dist/handlers/job.js +2 -2
  81. package/dist/handlers/location.js +6 -6
  82. package/dist/handlers/machine.js +1 -1
  83. package/dist/handlers/mcp.js +8 -8
  84. package/dist/handlers/media.js +2 -2
  85. package/dist/handlers/message.js +7 -7
  86. package/dist/handlers/migration.js +6 -6
  87. package/dist/handlers/model.js +6 -6
  88. package/dist/handlers/permission.js +6 -6
  89. package/dist/handlers/persistent-pty.js +20 -20
  90. package/dist/handlers/plugin.js +6 -6
  91. package/dist/handlers/project.js +6 -6
  92. package/dist/handlers/provider.js +6 -6
  93. package/dist/handlers/pty-socket.js +1 -1
  94. package/dist/handlers/pty.js +8 -8
  95. package/dist/handlers/push.js +1 -1
  96. package/dist/handlers/reference.js +6 -6
  97. package/dist/handlers/rpc.js +6 -6
  98. package/dist/handlers/server.js +9 -9
  99. package/dist/handlers/session-error.js +1 -1
  100. package/dist/handlers/session.js +7 -7
  101. package/dist/handlers/shell.js +6 -6
  102. package/dist/handlers/skill.js +6 -6
  103. package/dist/handlers/space.js +2 -2
  104. package/dist/handlers/usage.js +6 -6
  105. package/dist/handlers/vcs.js +6 -6
  106. package/dist/handlers/voice.js +6 -6
  107. package/dist/handlers/websearch.js +6 -6
  108. package/dist/handlers/worktree.js +6 -6
  109. package/dist/handlers.js +58 -58
  110. package/dist/location.js +2 -2
  111. package/dist/media-uri.js +1 -1
  112. package/dist/middleware/authorization.js +2 -2
  113. package/dist/middleware/defect-response.js +1 -1
  114. package/dist/middleware/form-location.js +3 -3
  115. package/dist/middleware/schema-error.js +1 -1
  116. package/dist/middleware/session-location.js +3 -3
  117. package/dist/options.d.ts +69 -2
  118. package/dist/options.js +14 -6
  119. package/dist/pairing.js +5 -5
  120. package/dist/process.d.ts +5 -5
  121. package/dist/process.js +68 -68
  122. package/dist/range.js +1 -1
  123. package/dist/request-site.js +2 -2
  124. package/dist/request-tracing.js +1 -1
  125. package/dist/routes.d.ts +8 -2
  126. package/dist/routes.js +62 -62
  127. package/dist/server-info.js +3 -3
  128. package/dist/service-status.js +3 -3
  129. package/dist/space-store.js +5 -5
  130. package/dist/workerd.js +66 -66
  131. package/package.json +8 -8
  132. package/dist/chunks/content-headers-1kqc9805.js +0 -37
  133. /package/dist/chunks/{content-headers-017ycvbx.js → workerd-017ycvbx.js} +0 -0
  134. /package/dist/chunks/{content-headers-9rqn6x4v.js → workerd-9rqn6x4v.js} +0 -0
  135. /package/dist/chunks/{content-headers-bd8755ek.js → workerd-bd8755ek.js} +0 -0
  136. /package/dist/chunks/{content-headers-n26yr6pw.js → workerd-n26yr6pw.js} +0 -0
  137. /package/dist/chunks/{content-headers-q187pxxd.js → workerd-q187pxxd.js} +0 -0
  138. /package/dist/chunks/{content-headers-q4bn6dy8.js → workerd-q4bn6dy8.js} +0 -0
  139. /package/dist/chunks/{content-headers-qpnw2qd1.js → workerd-qpnw2qd1.js} +0 -0
  140. /package/dist/chunks/{content-headers-rqgv9x42.js → workerd-rqgv9x42.js} +0 -0
  141. /package/dist/chunks/{content-headers-xthc02cw.js → workerd-xthc02cw.js} +0 -0
  142. /package/dist/chunks/{content-headers-yc7nft6q.js → workerd-yc7nft6q.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionLocationMiddleware2,
3
3
  sessionLocationLayer2
4
- } from "../chunks/content-headers-ehyp3zqd.js";
5
- import"../chunks/content-headers-br4x4prt.js";
6
- import"../chunks/content-headers-rqgv9x42.js";
4
+ } from "../chunks/workerd-ehyp3zqd.js";
5
+ import"../chunks/workerd-br4x4prt.js";
6
+ import"../chunks/workerd-rqgv9x42.js";
7
7
  export {
8
8
  SessionLocationMiddleware2 as SessionLocationMiddleware,
9
9
  sessionLocationLayer2 as sessionLocationLayer
package/dist/options.d.ts CHANGED
@@ -1,16 +1,72 @@
1
1
  import { Schema } from "effect";
2
2
  import type { LayerNodePlatform } from "@opencode/util/effect/app-node-platform";
3
- export declare const ServerOptions: Schema.Struct<{
3
+ /** The application runtime: everything the service graph reads, with or without an HTTP listener in front. */
4
+ export declare const AppOptions: Schema.Struct<{
4
5
  readonly app: Schema.optional<Schema.Struct<{
5
6
  readonly name: Schema.optional<Schema.String>;
6
7
  readonly version: Schema.optional<Schema.String>;
7
8
  readonly channel: Schema.optional<Schema.String>;
8
9
  }>>;
10
+ readonly database: Schema.optional<Schema.Struct<{
11
+ readonly path: Schema.optional<Schema.String>;
12
+ }>>;
13
+ readonly pty: Schema.optional<Schema.Struct<{
14
+ readonly handoff: Schema.optional<Schema.Struct<{
15
+ readonly directory: Schema.String;
16
+ readonly instanceID: Schema.String;
17
+ readonly ticket: Schema.String;
18
+ readonly expiresAt: Schema.Number;
19
+ }>>;
20
+ readonly root: Schema.optional<Schema.String>;
21
+ }>>;
22
+ readonly events: Schema.optional<Schema.Struct<{
23
+ readonly persist: Schema.optional<Schema.Boolean>;
24
+ }>>;
25
+ readonly models: Schema.optional<Schema.Struct<{
26
+ readonly url: Schema.optional<Schema.String>;
27
+ readonly file: Schema.optional<Schema.String>;
28
+ readonly fetch: Schema.optional<Schema.Boolean>;
29
+ readonly snapshot: Schema.optional<Schema.Boolean>;
30
+ }>>;
31
+ /**
32
+ * Replaces `globalThis.fetch` for OpenCode's own HTTP requests: OpenCode Console config, model requests, web fetch
33
+ * and search, well-known config, and remote MCP servers. Agent code in Code Mode keeps `globalThis.fetch`. For
34
+ * example, a Cloudflare Worker can route requests through a Service Binding.
35
+ */
36
+ readonly fetch: Schema.optional<Schema.declare<LayerNodePlatform.Fetch, LayerNodePlatform.Fetch>>;
37
+ readonly config: Schema.optional<Schema.Struct<{
38
+ readonly directory: Schema.optional<Schema.String>;
39
+ readonly project: Schema.optional<Schema.Boolean>;
40
+ readonly claude: Schema.optional<Schema.Boolean>;
41
+ readonly file: Schema.optional<Schema.String>;
42
+ readonly content: Schema.optional<Schema.String>;
43
+ }>>;
44
+ readonly instructions: Schema.optional<Schema.Struct<{
45
+ readonly claude: Schema.optional<Schema.Boolean>;
46
+ }>>;
47
+ readonly windows: Schema.optional<Schema.Struct<{
48
+ readonly gitbash: Schema.optional<Schema.String>;
49
+ }>>;
50
+ readonly fs: Schema.optional<Schema.Struct<{
51
+ readonly filewatcher: Schema.optional<Schema.Boolean>;
52
+ readonly fff: Schema.optional<Schema.Boolean>;
53
+ }>>;
54
+ }>;
55
+ export type AppOptions = typeof AppOptions.Type;
56
+ /** The HTTP listener in front of the application: where it binds, who may call it, and which origins it trusts. */
57
+ export declare const HttpListenerOptions: Schema.Struct<{
9
58
  readonly hostname: Schema.optional<Schema.String>;
10
59
  readonly port: Schema.optional<Schema.Int>;
11
60
  readonly password: Schema.optional<Schema.String>;
12
61
  readonly cors: Schema.optional<Schema.$Array<Schema.String>>;
13
- readonly simulation: Schema.optional<Schema.Boolean>;
62
+ }>;
63
+ export type HttpListenerOptions = typeof HttpListenerOptions.Type;
64
+ export declare const ServerOptions: Schema.Struct<{
65
+ readonly app: Schema.optional<Schema.Struct<{
66
+ readonly name: Schema.optional<Schema.String>;
67
+ readonly version: Schema.optional<Schema.String>;
68
+ readonly channel: Schema.optional<Schema.String>;
69
+ }>>;
14
70
  readonly database: Schema.optional<Schema.Struct<{
15
71
  readonly path: Schema.optional<Schema.String>;
16
72
  }>>;
@@ -55,5 +111,16 @@ export declare const ServerOptions: Schema.Struct<{
55
111
  readonly filewatcher: Schema.optional<Schema.Boolean>;
56
112
  readonly fff: Schema.optional<Schema.Boolean>;
57
113
  }>>;
114
+ readonly hostname: Schema.optional<Schema.String>;
115
+ readonly port: Schema.optional<Schema.Int>;
116
+ readonly password: Schema.optional<Schema.String>;
117
+ readonly cors: Schema.optional<Schema.$Array<Schema.String>>;
118
+ readonly simulation: Schema.optional<Schema.Boolean>;
58
119
  }>;
59
120
  export type ServerOptions = typeof ServerOptions.Type;
121
+ /**
122
+ * What routes served without a listener honor: the application, plus the origin allowlist the WebSocket handlers
123
+ * check and the simulation switch. There is no `hostname`, `port` or `password`: nothing binds, and the embedder
124
+ * owns access control.
125
+ */
126
+ export type EmbeddedRoutesOptions = AppOptions & Pick<ServerOptions, "cors" | "simulation">;
package/dist/options.js CHANGED
@@ -3,17 +3,12 @@ import { Database } from "@opencode/core/database/database";
3
3
  import { ModelsDev } from "@opencode/core/models-dev";
4
4
  import { PersistentPty } from "@opencode/core/persistent-pty";
5
5
  import { Schema } from "effect";
6
- var ServerOptions = Schema.Struct({
6
+ var AppOptions = Schema.Struct({
7
7
  app: Schema.optional(Schema.Struct({
8
8
  name: Schema.optional(Schema.String),
9
9
  version: Schema.optional(Schema.String),
10
10
  channel: Schema.optional(Schema.String)
11
11
  })),
12
- hostname: Schema.optional(Schema.String),
13
- port: Schema.optional(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(65535))),
14
- password: Schema.optional(Schema.String),
15
- cors: Schema.optional(Schema.Array(Schema.String)),
16
- simulation: Schema.optional(Schema.Boolean),
17
12
  database: Schema.optional(Database.Options),
18
13
  pty: Schema.optional(PersistentPty.Options),
19
14
  events: Schema.optional(Schema.Struct({
@@ -39,6 +34,19 @@ var ServerOptions = Schema.Struct({
39
34
  fff: Schema.optional(Schema.Boolean)
40
35
  }))
41
36
  });
37
+ var HttpListenerOptions = Schema.Struct({
38
+ hostname: Schema.optional(Schema.String),
39
+ port: Schema.optional(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(65535))),
40
+ password: Schema.optional(Schema.String),
41
+ cors: Schema.optional(Schema.Array(Schema.String))
42
+ });
43
+ var ServerOptions = Schema.Struct({
44
+ ...AppOptions.fields,
45
+ ...HttpListenerOptions.fields,
46
+ simulation: Schema.optional(Schema.Boolean)
47
+ });
42
48
  export {
49
+ AppOptions,
50
+ HttpListenerOptions,
43
51
  ServerOptions
44
52
  };
package/dist/pairing.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
- Service4,
3
- node2,
2
+ Service5,
3
+ node3,
4
4
  exports_pairing
5
- } from "./chunks/content-headers-mzs0n5xz.js";
5
+ } from "./chunks/workerd-v9t81kwn.js";
6
6
  export {
7
7
  exports_pairing as ServerPairing,
8
- Service4 as Service,
9
- node2 as node
8
+ Service5 as Service,
9
+ node3 as node
10
10
  };
package/dist/process.d.ts CHANGED
@@ -13,11 +13,6 @@ export declare const start: <E, R>(options: {
13
13
  readonly version?: string | undefined;
14
14
  readonly channel?: string | undefined;
15
15
  } | undefined;
16
- readonly hostname?: string | undefined;
17
- readonly port?: number | undefined;
18
- readonly password?: string | undefined;
19
- readonly cors?: readonly string[] | undefined;
20
- readonly simulation?: boolean | undefined;
21
16
  readonly database?: {
22
17
  readonly path?: string | undefined;
23
18
  } | undefined;
@@ -57,6 +52,11 @@ export declare const start: <E, R>(options: {
57
52
  readonly filewatcher?: boolean | undefined;
58
53
  readonly fff?: boolean | undefined;
59
54
  } | undefined;
55
+ readonly hostname?: string | undefined;
56
+ readonly port?: number | undefined;
57
+ readonly password?: string | undefined;
58
+ readonly cors?: readonly string[] | undefined;
59
+ readonly simulation?: boolean | undefined;
60
60
  }, lifecycle?: Lifecycle<E, R> | undefined, transform?: Transform | undefined, remoteURLs?: (() => ReadonlyArray<string>) | undefined) => Effect.Effect<{
61
61
  address: NetAddress.SocketAddress;
62
62
  shutdown: Effect.Effect<void, never, never>;
package/dist/process.js CHANGED
@@ -1,90 +1,90 @@
1
1
  import {
2
2
  Config2
3
- } from "./chunks/content-headers-j4at0y5c.js";
3
+ } from "./chunks/workerd-j4at0y5c.js";
4
4
  import {
5
5
  isAllowedCorsOrigin2
6
- } from "./chunks/content-headers-q4bn6dy8.js";
6
+ } from "./chunks/workerd-q4bn6dy8.js";
7
7
  import {
8
8
  machinesEnabled2
9
- } from "./chunks/content-headers-017ycvbx.js";
9
+ } from "./chunks/workerd-017ycvbx.js";
10
10
  import {
11
11
  unauthorizedResponse2,
12
12
  authorizedRequest2
13
- } from "./chunks/content-headers-29nx48hm.js";
13
+ } from "./chunks/workerd-29nx48hm.js";
14
14
  import {
15
15
  withoutParentSpan2
16
- } from "./chunks/content-headers-yc7nft6q.js";
16
+ } from "./chunks/workerd-yc7nft6q.js";
17
17
  import {
18
18
  middleware2
19
- } from "./chunks/content-headers-myqk22k5.js";
20
- import"./chunks/content-headers-rqgv9x42.js";
21
- import"./chunks/content-headers-br4x4prt.js";
22
- import"./chunks/content-headers-ca564221.js";
23
- import"./chunks/content-headers-ehyp3zqd.js";
24
- import"./chunks/content-headers-jhs8rzvk.js";
25
- import"./chunks/content-headers-fmkwyf76.js";
26
- import"./chunks/content-headers-r682v2h3.js";
27
- import"./chunks/content-headers-phgds112.js";
28
- import"./chunks/content-headers-xthc02cw.js";
29
- import"./chunks/content-headers-nh63c3gg.js";
30
- import"./chunks/content-headers-y8sa9sbe.js";
31
- import"./chunks/content-headers-cj97w75w.js";
32
- import"./chunks/content-headers-qagtm26v.js";
33
- import"./chunks/content-headers-5ky8bme5.js";
34
- import"./chunks/content-headers-t32e1bbt.js";
35
- import"./chunks/content-headers-8sb6qqpn.js";
36
- import"./chunks/content-headers-maarxay5.js";
37
- import"./chunks/content-headers-esvnag9e.js";
38
- import"./chunks/content-headers-8y9zssdg.js";
39
- import"./chunks/content-headers-g9qy0kb1.js";
40
- import"./chunks/content-headers-ar950k47.js";
41
- import"./chunks/content-headers-hs3dbf8w.js";
42
- import"./chunks/content-headers-8xffg4dw.js";
43
- import"./chunks/content-headers-f412ctvv.js";
44
- import"./chunks/content-headers-z0v7xmc8.js";
19
+ } from "./chunks/workerd-myqk22k5.js";
20
+ import"./chunks/workerd-rqgv9x42.js";
21
+ import"./chunks/workerd-br4x4prt.js";
22
+ import"./chunks/workerd-ca564221.js";
23
+ import"./chunks/workerd-ehyp3zqd.js";
24
+ import"./chunks/workerd-whvq72as.js";
25
+ import"./chunks/workerd-mj1ewmp1.js";
26
+ import"./chunks/workerd-prwd5gwt.js";
27
+ import"./chunks/workerd-rjhxbsc4.js";
28
+ import"./chunks/workerd-xthc02cw.js";
29
+ import"./chunks/workerd-23n65c7j.js";
30
+ import"./chunks/workerd-s0zgx365.js";
31
+ import"./chunks/workerd-yc92za0p.js";
32
+ import"./chunks/workerd-epfdwcja.js";
33
+ import"./chunks/workerd-kmwr1xw9.js";
34
+ import"./chunks/workerd-t32e1bbt.js";
35
+ import"./chunks/workerd-8sb6qqpn.js";
36
+ import"./chunks/workerd-1g4xykqx.js";
37
+ import"./chunks/workerd-8qsq6tbs.js";
38
+ import"./chunks/workerd-rgbnpstw.js";
39
+ import"./chunks/workerd-3xkwxcke.js";
40
+ import"./chunks/workerd-k74zefsg.js";
41
+ import"./chunks/workerd-z5c20bjd.js";
42
+ import"./chunks/workerd-1pbjpk0f.js";
43
+ import"./chunks/workerd-exwy1kbj.js";
44
+ import"./chunks/workerd-em7ed65n.js";
45
45
  import {
46
46
  connectionURLs2
47
- } from "./chunks/content-headers-3te71694.js";
48
- import"./chunks/content-headers-mzs0n5xz.js";
49
- import"./chunks/content-headers-8a8vhjqy.js";
50
- import"./chunks/content-headers-nfrn9zxf.js";
51
- import"./chunks/content-headers-q187pxxd.js";
52
- import"./chunks/content-headers-mq10h3bj.js";
53
- import"./chunks/content-headers-javgytnb.js";
54
- import"./chunks/content-headers-50kbksvb.js";
55
- import"./chunks/content-headers-ka2mtp6f.js";
56
- import"./chunks/content-headers-6pm6ek88.js";
57
- import"./chunks/content-headers-x2qy7jg1.js";
58
- import"./chunks/content-headers-djr0jy89.js";
59
- import"./chunks/content-headers-qpnw2qd1.js";
60
- import"./chunks/content-headers-v60tcbt5.js";
61
- import"./chunks/content-headers-21qqm769.js";
62
- import"./chunks/content-headers-df03ef4a.js";
63
- import"./chunks/content-headers-rg932pab.js";
64
- import"./chunks/content-headers-z80wqx10.js";
65
- import"./chunks/content-headers-7r996r31.js";
66
- import"./chunks/content-headers-htk4x1jk.js";
67
- import"./chunks/content-headers-ddhjwr2w.js";
68
- import"./chunks/content-headers-r6qsbz4y.js";
69
- import"./chunks/content-headers-1nsytpdt.js";
70
- import"./chunks/content-headers-3w2mqh28.js";
71
- import"./chunks/content-headers-6anyjjh1.js";
72
- import"./chunks/content-headers-ykr4m3zx.js";
73
- import"./chunks/content-headers-c6ktqe09.js";
74
- import"./chunks/content-headers-eacgzt6w.js";
75
- import"./chunks/content-headers-wjh98yw2.js";
76
- import"./chunks/content-headers-6n31atta.js";
77
- import"./chunks/content-headers-bd8755ek.js";
78
- import"./chunks/content-headers-n26yr6pw.js";
47
+ } from "./chunks/workerd-5pdfedjd.js";
48
+ import"./chunks/workerd-v9t81kwn.js";
49
+ import"./chunks/workerd-dsxhsz16.js";
50
+ import"./chunks/workerd-784gqmc7.js";
51
+ import"./chunks/workerd-q187pxxd.js";
52
+ import"./chunks/workerd-0vqsbvsa.js";
53
+ import"./chunks/workerd-javgytnb.js";
54
+ import"./chunks/workerd-50kbksvb.js";
55
+ import"./chunks/workerd-ka2mtp6f.js";
56
+ import"./chunks/workerd-6pm6ek88.js";
57
+ import"./chunks/workerd-x2qy7jg1.js";
58
+ import"./chunks/workerd-djr0jy89.js";
59
+ import"./chunks/workerd-qpnw2qd1.js";
60
+ import"./chunks/workerd-xw05m515.js";
61
+ import"./chunks/workerd-9tw35sfc.js";
62
+ import"./chunks/workerd-f3gr6hfv.js";
63
+ import"./chunks/workerd-7dkb5ks8.js";
64
+ import"./chunks/workerd-e3jd9akj.js";
65
+ import"./chunks/workerd-2tmcamrc.js";
66
+ import"./chunks/workerd-qq3f8fnn.js";
67
+ import"./chunks/workerd-wsvmph03.js";
68
+ import"./chunks/workerd-9hynp6rm.js";
69
+ import"./chunks/workerd-rm5kndzh.js";
70
+ import"./chunks/workerd-8xdajgpr.js";
71
+ import"./chunks/workerd-8nezxn08.js";
72
+ import"./chunks/workerd-n2zyxnzr.js";
73
+ import"./chunks/workerd-0wjm8gvs.js";
74
+ import"./chunks/workerd-10sj2tcf.js";
75
+ import"./chunks/workerd-am27j67f.js";
76
+ import"./chunks/workerd-hfbw093d.js";
77
+ import"./chunks/workerd-bd8755ek.js";
78
+ import"./chunks/workerd-n26yr6pw.js";
79
79
  import {
80
80
  createRoutes2
81
- } from "./chunks/content-headers-f1tstpac.js";
81
+ } from "./chunks/workerd-a6b7h8n6.js";
82
82
  import {
83
- make3
84
- } from "./chunks/content-headers-e6e4kz0w.js";
83
+ make2
84
+ } from "./chunks/workerd-39nnfjx1.js";
85
85
  import {
86
86
  __export
87
- } from "./chunks/content-headers-9rqn6x4v.js";
87
+ } from "./chunks/workerd-9rqn6x4v.js";
88
88
 
89
89
  // src/process.ts
90
90
  var exports_process = {};
@@ -117,7 +117,7 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
117
117
  const hostname = options.hostname ?? "127.0.0.1";
118
118
  const port = Option.fromNullishOr(options.port);
119
119
  const shutdown = yield* Latch.make();
120
- const status = yield* make3();
120
+ const status = yield* make2();
121
121
  const bound = yield* listen({ hostname, port });
122
122
  const localURLs = () => {
123
123
  const address = bound.server.address();
package/dist/range.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  parse2,
3
3
  exports_range
4
- } from "./chunks/content-headers-8sb6qqpn.js";
4
+ } from "./chunks/workerd-8sb6qqpn.js";
5
5
  export {
6
6
  exports_range as ByteRange,
7
7
  parse2 as parse
@@ -2,8 +2,8 @@ import {
2
2
  rejected2,
3
3
  middleware2,
4
4
  exports_request_site
5
- } from "./chunks/content-headers-myqk22k5.js";
6
- import"./chunks/content-headers-q4bn6dy8.js";
5
+ } from "./chunks/workerd-myqk22k5.js";
6
+ import"./chunks/workerd-q4bn6dy8.js";
7
7
  export {
8
8
  exports_request_site as RequestSite,
9
9
  middleware2 as middleware,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withoutParentSpan2
3
- } from "./chunks/content-headers-yc7nft6q.js";
3
+ } from "./chunks/workerd-yc7nft6q.js";
4
4
  export {
5
5
  withoutParentSpan2 as withoutParentSpan
6
6
  };
package/dist/routes.d.ts CHANGED
@@ -40,8 +40,14 @@ import { HttpRouter } from "effect/http";
40
40
  import { Layer } from "effect";
41
41
  import { SpaceStore } from "./space-store";
42
42
  import { ServerPairing } from "./pairing";
43
- import type { ServerOptions } from "./options";
43
+ import type { EmbeddedRoutesOptions, ServerOptions } from "./options";
44
44
  export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Identity.Service | Machines.Service | Workspace.Service | PermissionSaved.Service | CodeModeApi.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Automation.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | BrowserTunnelGateway.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | PushList.Service | PushSender.Service | FileWatch.Service | SpaceStore.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
45
45
  type InstanceNode = LayerNode.Provider<Instance.Service, never, typeof Node.tags.values.global>;
46
- export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Identity.Service | Machines.Service | Workspace.Service | PermissionSaved.Service | CodeModeApi.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Automation.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | BrowserTunnelGateway.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | PushList.Service | PushSender.Service | FileWatch.Service | SpaceStore.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
46
+ /**
47
+ * The routes without a listener: no Basic auth, so the embedder owns access control. A per-Session `Instance`
48
+ * provider goes in `overrides` as `Instance.node.replace(...)`.
49
+ */
50
+ export declare function createEmbeddedRoutes(options?: EmbeddedRoutesOptions, overrides?: LayerNode.Replacements,
51
+ /** @deprecated Pass `Instance.node.replace(instances)` first in `overrides`. Removed in the next minor. */
52
+ instances?: InstanceNode): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Identity.Service | Machines.Service | Workspace.Service | PermissionSaved.Service | CodeModeApi.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Automation.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | BrowserTunnelGateway.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | PushList.Service | PushSender.Service | FileWatch.Service | SpaceStore.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
47
53
  export {};
package/dist/routes.js CHANGED
@@ -1,68 +1,68 @@
1
1
  import {
2
2
  createRoutes2,
3
3
  createEmbeddedRoutes2
4
- } from "./chunks/content-headers-f1tstpac.js";
5
- import"./chunks/content-headers-29nx48hm.js";
6
- import"./chunks/content-headers-n26yr6pw.js";
7
- import"./chunks/content-headers-bd8755ek.js";
8
- import"./chunks/content-headers-6n31atta.js";
9
- import"./chunks/content-headers-mq10h3bj.js";
10
- import"./chunks/content-headers-eacgzt6w.js";
11
- import"./chunks/content-headers-ar950k47.js";
12
- import"./chunks/content-headers-5ky8bme5.js";
13
- import"./chunks/content-headers-21qqm769.js";
14
- import"./chunks/content-headers-djr0jy89.js";
15
- import"./chunks/content-headers-50kbksvb.js";
16
- import"./chunks/content-headers-ka2mtp6f.js";
17
- import"./chunks/content-headers-y8sa9sbe.js";
18
- import"./chunks/content-headers-z0v7xmc8.js";
19
- import"./chunks/content-headers-wjh98yw2.js";
20
- import"./chunks/content-headers-phgds112.js";
21
- import"./chunks/content-headers-rg932pab.js";
22
- import"./chunks/content-headers-javgytnb.js";
23
- import"./chunks/content-headers-1nsytpdt.js";
24
- import"./chunks/content-headers-maarxay5.js";
25
- import"./chunks/content-headers-v60tcbt5.js";
26
- import"./chunks/content-headers-8a8vhjqy.js";
27
- import"./chunks/content-headers-df03ef4a.js";
28
- import"./chunks/content-headers-g9qy0kb1.js";
29
- import"./chunks/content-headers-ykr4m3zx.js";
30
- import"./chunks/content-headers-z80wqx10.js";
31
- import"./chunks/content-headers-f412ctvv.js";
32
- import"./chunks/content-headers-q187pxxd.js";
33
- import"./chunks/content-headers-htk4x1jk.js";
34
- import"./chunks/content-headers-nh63c3gg.js";
35
- import"./chunks/content-headers-nfrn9zxf.js";
36
- import"./chunks/content-headers-esvnag9e.js";
37
- import"./chunks/content-headers-c6ktqe09.js";
38
- import"./chunks/content-headers-r6qsbz4y.js";
39
- import"./chunks/content-headers-3w2mqh28.js";
40
- import"./chunks/content-headers-x2qy7jg1.js";
41
- import"./chunks/content-headers-6anyjjh1.js";
42
- import"./chunks/content-headers-7r996r31.js";
43
- import"./chunks/content-headers-8xffg4dw.js";
44
- import"./chunks/content-headers-6pm6ek88.js";
45
- import"./chunks/content-headers-017ycvbx.js";
46
- import"./chunks/content-headers-r682v2h3.js";
47
- import"./chunks/content-headers-qpnw2qd1.js";
48
- import"./chunks/content-headers-hs3dbf8w.js";
49
- import"./chunks/content-headers-qagtm26v.js";
50
- import"./chunks/content-headers-xthc02cw.js";
51
- import"./chunks/content-headers-ddhjwr2w.js";
52
- import"./chunks/content-headers-cj97w75w.js";
53
- import"./chunks/content-headers-8y9zssdg.js";
54
- import"./chunks/content-headers-jhs8rzvk.js";
55
- import"./chunks/content-headers-ca564221.js";
56
- import"./chunks/content-headers-ehyp3zqd.js";
57
- import"./chunks/content-headers-3te71694.js";
58
- import"./chunks/content-headers-mzs0n5xz.js";
59
- import"./chunks/content-headers-t32e1bbt.js";
60
- import"./chunks/content-headers-8sb6qqpn.js";
61
- import"./chunks/content-headers-q4bn6dy8.js";
62
- import"./chunks/content-headers-fmkwyf76.js";
63
- import"./chunks/content-headers-j4at0y5c.js";
64
- import"./chunks/content-headers-br4x4prt.js";
65
- import"./chunks/content-headers-rqgv9x42.js";
4
+ } from "./chunks/workerd-a6b7h8n6.js";
5
+ import"./chunks/workerd-n26yr6pw.js";
6
+ import"./chunks/workerd-29nx48hm.js";
7
+ import"./chunks/workerd-bd8755ek.js";
8
+ import"./chunks/workerd-hfbw093d.js";
9
+ import"./chunks/workerd-8qsq6tbs.js";
10
+ import"./chunks/workerd-n2zyxnzr.js";
11
+ import"./chunks/workerd-1g4xykqx.js";
12
+ import"./chunks/workerd-8nezxn08.js";
13
+ import"./chunks/workerd-784gqmc7.js";
14
+ import"./chunks/workerd-rgbnpstw.js";
15
+ import"./chunks/workerd-7dkb5ks8.js";
16
+ import"./chunks/workerd-23n65c7j.js";
17
+ import"./chunks/workerd-0vqsbvsa.js";
18
+ import"./chunks/workerd-0wjm8gvs.js";
19
+ import"./chunks/workerd-yc92za0p.js";
20
+ import"./chunks/workerd-am27j67f.js";
21
+ import"./chunks/workerd-9tw35sfc.js";
22
+ import"./chunks/workerd-ka2mtp6f.js";
23
+ import"./chunks/workerd-xw05m515.js";
24
+ import"./chunks/workerd-6pm6ek88.js";
25
+ import"./chunks/workerd-10sj2tcf.js";
26
+ import"./chunks/workerd-017ycvbx.js";
27
+ import"./chunks/workerd-exwy1kbj.js";
28
+ import"./chunks/workerd-qq3f8fnn.js";
29
+ import"./chunks/workerd-3xkwxcke.js";
30
+ import"./chunks/workerd-8xdajgpr.js";
31
+ import"./chunks/workerd-2tmcamrc.js";
32
+ import"./chunks/workerd-kmwr1xw9.js";
33
+ import"./chunks/workerd-em7ed65n.js";
34
+ import"./chunks/workerd-rjhxbsc4.js";
35
+ import"./chunks/workerd-rm5kndzh.js";
36
+ import"./chunks/workerd-q187pxxd.js";
37
+ import"./chunks/workerd-wsvmph03.js";
38
+ import"./chunks/workerd-djr0jy89.js";
39
+ import"./chunks/workerd-k74zefsg.js";
40
+ import"./chunks/workerd-prwd5gwt.js";
41
+ import"./chunks/workerd-e3jd9akj.js";
42
+ import"./chunks/workerd-qpnw2qd1.js";
43
+ import"./chunks/workerd-dsxhsz16.js";
44
+ import"./chunks/workerd-1pbjpk0f.js";
45
+ import"./chunks/workerd-s0zgx365.js";
46
+ import"./chunks/workerd-f3gr6hfv.js";
47
+ import"./chunks/workerd-x2qy7jg1.js";
48
+ import"./chunks/workerd-50kbksvb.js";
49
+ import"./chunks/workerd-mj1ewmp1.js";
50
+ import"./chunks/workerd-9hynp6rm.js";
51
+ import"./chunks/workerd-epfdwcja.js";
52
+ import"./chunks/workerd-whvq72as.js";
53
+ import"./chunks/workerd-ehyp3zqd.js";
54
+ import"./chunks/workerd-ca564221.js";
55
+ import"./chunks/workerd-javgytnb.js";
56
+ import"./chunks/workerd-t32e1bbt.js";
57
+ import"./chunks/workerd-5pdfedjd.js";
58
+ import"./chunks/workerd-8sb6qqpn.js";
59
+ import"./chunks/workerd-xthc02cw.js";
60
+ import"./chunks/workerd-z5c20bjd.js";
61
+ import"./chunks/workerd-q4bn6dy8.js";
62
+ import"./chunks/workerd-br4x4prt.js";
63
+ import"./chunks/workerd-rqgv9x42.js";
64
+ import"./chunks/workerd-v9t81kwn.js";
65
+ import"./chunks/workerd-j4at0y5c.js";
66
66
  export {
67
67
  createEmbeddedRoutes2 as createEmbeddedRoutes,
68
68
  createRoutes2 as createRoutes
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Service3,
3
- layer3,
3
+ layer2,
4
4
  connectionURLs2,
5
5
  exports_server_info
6
- } from "./chunks/content-headers-3te71694.js";
6
+ } from "./chunks/workerd-5pdfedjd.js";
7
7
  export {
8
8
  exports_server_info as ServerInfo,
9
9
  Service3 as Service,
10
10
  connectionURLs2 as connectionURLs,
11
- layer3 as layer
11
+ layer2 as layer
12
12
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
- make3,
2
+ make2,
3
3
  exports_service_status
4
- } from "./chunks/content-headers-e6e4kz0w.js";
4
+ } from "./chunks/workerd-39nnfjx1.js";
5
5
  export {
6
6
  exports_service_status as Status,
7
- make3 as make
7
+ make2 as make
8
8
  };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  BatchSize2,
3
3
  PurgeInterval2,
4
- Service5,
5
- node3,
4
+ Service2,
5
+ node2,
6
6
  extension2,
7
7
  exports_space_store
8
- } from "./chunks/content-headers-fmkwyf76.js";
8
+ } from "./chunks/workerd-mj1ewmp1.js";
9
9
  export {
10
10
  BatchSize2 as BatchSize,
11
11
  PurgeInterval2 as PurgeInterval,
12
- Service5 as Service,
12
+ Service2 as Service,
13
13
  exports_space_store as SpaceStore,
14
14
  extension2 as extension,
15
- node3 as node
15
+ node2 as node
16
16
  };