@opencode/server 0.0.0-dev-1365 → 0.0.0-dev-1367
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.
- package/dist/api.js +4 -4
- package/dist/chunks/{media-uri-dyvstyyh.js → media-uri-07adkgh3.js} +2 -2
- package/dist/chunks/{media-uri-8xwrz458.js → media-uri-0nzx8p8z.js} +4 -4
- package/dist/chunks/{media-uri-e6e4kz0w.js → media-uri-0q7s66m2.js} +3 -3
- package/dist/chunks/{media-uri-ttd4mjws.js → media-uri-0wwbgx8t.js} +16 -20
- package/dist/chunks/{media-uri-z564cb4b.js → media-uri-0xhepbgy.js} +2 -2
- package/dist/chunks/{media-uri-sn8sqewc.js → media-uri-1qgvww4g.js} +2 -2
- package/dist/chunks/{media-uri-341zm3rs.js → media-uri-20m6qdhp.js} +2 -2
- package/dist/chunks/{media-uri-2h3x7256.js → media-uri-23bsg0bb.js} +1 -1
- package/dist/chunks/{media-uri-raj3p8q0.js → media-uri-3sdebxp3.js} +1 -1
- package/dist/chunks/{media-uri-cgcw2b0e.js → media-uri-44ywgpsx.js} +2 -2
- package/dist/chunks/{media-uri-vyjhrbg0.js → media-uri-44zzbkrb.js} +1 -1
- package/dist/chunks/{media-uri-fegnxd42.js → media-uri-4a2eztcc.js} +1 -1
- package/dist/chunks/{media-uri-r1mf3bzp.js → media-uri-4abt2dvn.js} +2 -2
- package/dist/chunks/{media-uri-ggw25rqf.js → media-uri-4dcft65w.js} +1 -1
- package/dist/chunks/{media-uri-qgjb3f4w.js → media-uri-61xgwjgp.js} +2 -2
- package/dist/chunks/{media-uri-r9w3a44p.js → media-uri-7qa33b41.js} +2 -2
- package/dist/chunks/{media-uri-844nmnmk.js → media-uri-9bpmwzvq.js} +2 -2
- package/dist/chunks/{media-uri-fsvp99pe.js → media-uri-aexh791j.js} +1 -1
- package/dist/chunks/{media-uri-3xfmgb6c.js → media-uri-d77v3xnm.js} +4 -4
- package/dist/chunks/{media-uri-yvy5qft7.js → media-uri-dxh72p2c.js} +2 -2
- package/dist/chunks/{media-uri-4th25279.js → media-uri-ej8k6nk6.js} +2 -2
- package/dist/chunks/{media-uri-kc553r92.js → media-uri-ezydv7x1.js} +2 -2
- package/dist/chunks/{media-uri-zs3a96ke.js → media-uri-g1wjh7qe.js} +2 -2
- package/dist/chunks/{media-uri-hs3dbf8w.js → media-uri-gb9bc2v4.js} +9 -9
- package/dist/chunks/{media-uri-qcnb494j.js → media-uri-gk96xf2h.js} +2 -2
- package/dist/chunks/{media-uri-ws2ckpmb.js → media-uri-hj8z77wc.js} +2 -2
- package/dist/chunks/{media-uri-fcw485c9.js → media-uri-j4hk2st6.js} +2 -2
- package/dist/chunks/{media-uri-0dfmev2z.js → media-uri-jy2ammbg.js} +1 -1
- package/dist/chunks/{media-uri-zy859vyn.js → media-uri-katdrqa2.js} +37 -37
- package/dist/chunks/{media-uri-zmrq0y42.js → media-uri-kpw06y11.js} +2 -2
- package/dist/chunks/{media-uri-7tv8nec1.js → media-uri-kxxxzk43.js} +1 -1
- package/dist/chunks/{media-uri-7dtbad8d.js → media-uri-megkv1kf.js} +4 -4
- package/dist/chunks/{media-uri-r5yb7twv.js → media-uri-mf0jv62d.js} +2 -2
- package/dist/chunks/{media-uri-fmkwyf76.js → media-uri-mj1ewmp1.js} +8 -8
- package/dist/chunks/{media-uri-gqstb6bx.js → media-uri-nfv0r61b.js} +2 -2
- package/dist/chunks/media-uri-njmm6d43.js +43 -0
- package/dist/chunks/{media-uri-k12h8tw9.js → media-uri-npqc081y.js} +1 -1
- package/dist/chunks/{media-uri-8y4d9f30.js → media-uri-p8x80wn6.js} +3 -3
- package/dist/chunks/{media-uri-tktas153.js → media-uri-r3c5pb1c.js} +2 -2
- package/dist/chunks/{media-uri-j605n900.js → media-uri-sar77n3p.js} +2 -2
- package/dist/chunks/{media-uri-sbde0s13.js → media-uri-sh3ejx5x.js} +1 -1
- package/dist/chunks/{media-uri-j6y32kmq.js → media-uri-sqfq92mf.js} +1 -1
- package/dist/chunks/{media-uri-72bf7qt9.js → media-uri-stx1bw5w.js} +2 -2
- package/dist/chunks/{media-uri-9vfv9n1y.js → media-uri-t6q8af35.js} +2 -2
- package/dist/chunks/{media-uri-a7k393fm.js → media-uri-t6ryhghb.js} +2 -2
- package/dist/chunks/{media-uri-py78bw87.js → media-uri-tg713d3t.js} +5 -5
- package/dist/chunks/{media-uri-w9jcwh65.js → media-uri-vb61dkrm.js} +3 -3
- package/dist/chunks/{media-uri-v60tcbt5.js → media-uri-xw05m515.js} +3 -3
- package/dist/event-feed.js +7 -7
- package/dist/fetch.d.ts +22 -11
- package/dist/fetch.js +61 -57
- package/dist/handlers/agent.js +5 -5
- package/dist/handlers/artifact.js +2 -2
- package/dist/handlers/command.js +5 -5
- package/dist/handlers/config.js +5 -5
- package/dist/handlers/credential.js +6 -6
- package/dist/handlers/debug.js +5 -5
- package/dist/handlers/event.js +6 -6
- package/dist/handlers/experimental/browser-tunnel.js +2 -2
- package/dist/handlers/flag.js +5 -5
- package/dist/handlers/form.js +5 -5
- package/dist/handlers/fs.js +6 -6
- package/dist/handlers/generate.js +5 -5
- package/dist/handlers/integration.js +5 -5
- package/dist/handlers/location.js +5 -5
- package/dist/handlers/mcp.js +5 -5
- package/dist/handlers/message.js +5 -5
- package/dist/handlers/migration.js +5 -5
- package/dist/handlers/model.js +5 -5
- package/dist/handlers/permission.js +5 -5
- package/dist/handlers/persistent-pty.js +15 -15
- package/dist/handlers/plugin.js +5 -5
- package/dist/handlers/project.js +5 -5
- package/dist/handlers/provider.js +5 -5
- package/dist/handlers/pty.js +5 -5
- package/dist/handlers/reference.js +5 -5
- package/dist/handlers/rpc.js +5 -5
- package/dist/handlers/server.js +8 -8
- package/dist/handlers/session.js +5 -5
- package/dist/handlers/shell.js +5 -5
- package/dist/handlers/skill.js +5 -5
- package/dist/handlers/space.js +2 -2
- package/dist/handlers/usage.js +5 -5
- package/dist/handlers/vcs.js +5 -5
- package/dist/handlers/voice.js +5 -5
- package/dist/handlers/websearch.js +5 -5
- package/dist/handlers/worktree.js +5 -5
- package/dist/handlers.js +52 -52
- package/dist/location.js +3 -3
- package/dist/middleware/form-location.js +2 -2
- package/dist/middleware/session-location.js +2 -2
- package/dist/options.d.ts +69 -2
- package/dist/options.js +14 -6
- package/dist/pairing.js +3 -3
- package/dist/process.d.ts +5 -5
- package/dist/process.js +50 -50
- package/dist/request-site.js +1 -1
- package/dist/routes.d.ts +8 -2
- package/dist/routes.js +54 -54
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +3 -3
- package/dist/space-store.js +5 -5
- package/dist/workerd.js +50 -59
- package/package.json +8 -8
- package/dist/chunks/media-uri-a7c8a9w3.js +0 -37
- /package/dist/chunks/{media-uri-myqk22k5.js → media-uri-hmwn16zp.js} +0 -0
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
|
-
|
|
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/media-uri-
|
|
4
|
+
} from "./chunks/media-uri-0wwbgx8t.js";
|
|
5
|
+
import"./chunks/media-uri-bd8755ek.js";
|
|
5
6
|
import"./chunks/media-uri-n26yr6pw.js";
|
|
6
7
|
import"./chunks/media-uri-29nx48hm.js";
|
|
7
|
-
import"./chunks/media-uri-
|
|
8
|
-
import"./chunks/media-uri-
|
|
9
|
-
import"./chunks/media-uri-
|
|
10
|
-
import"./chunks/media-uri-
|
|
11
|
-
import"./chunks/media-uri-
|
|
12
|
-
import"./chunks/media-uri-
|
|
13
|
-
import"./chunks/media-uri-
|
|
14
|
-
import"./chunks/media-uri-
|
|
15
|
-
import"./chunks/media-uri-
|
|
16
|
-
import"./chunks/media-uri-
|
|
17
|
-
import"./chunks/media-uri-
|
|
18
|
-
import"./chunks/media-uri-
|
|
19
|
-
import"./chunks/media-uri-
|
|
20
|
-
import"./chunks/media-uri-
|
|
21
|
-
import"./chunks/media-uri-
|
|
22
|
-
import"./chunks/media-uri-
|
|
23
|
-
import"./chunks/media-uri-
|
|
24
|
-
import"./chunks/media-uri-
|
|
25
|
-
import"./chunks/media-uri-
|
|
26
|
-
import"./chunks/media-uri-
|
|
27
|
-
import"./chunks/media-uri-
|
|
28
|
-
import"./chunks/media-uri-
|
|
29
|
-
import"./chunks/media-uri-
|
|
30
|
-
import"./chunks/media-uri-
|
|
31
|
-
import"./chunks/media-uri-
|
|
32
|
-
import"./chunks/media-uri-
|
|
33
|
-
import"./chunks/media-uri-
|
|
8
|
+
import"./chunks/media-uri-katdrqa2.js";
|
|
9
|
+
import"./chunks/media-uri-4a2eztcc.js";
|
|
10
|
+
import"./chunks/media-uri-ezydv7x1.js";
|
|
11
|
+
import"./chunks/media-uri-ej8k6nk6.js";
|
|
12
|
+
import"./chunks/media-uri-07adkgh3.js";
|
|
13
|
+
import"./chunks/media-uri-4dcft65w.js";
|
|
14
|
+
import"./chunks/media-uri-kpw06y11.js";
|
|
15
|
+
import"./chunks/media-uri-61xgwjgp.js";
|
|
16
|
+
import"./chunks/media-uri-npqc081y.js";
|
|
17
|
+
import"./chunks/media-uri-kxxxzk43.js";
|
|
18
|
+
import"./chunks/media-uri-t6q8af35.js";
|
|
19
|
+
import"./chunks/media-uri-r3c5pb1c.js";
|
|
20
|
+
import"./chunks/media-uri-sar77n3p.js";
|
|
21
|
+
import"./chunks/media-uri-dxh72p2c.js";
|
|
22
|
+
import"./chunks/media-uri-9bpmwzvq.js";
|
|
23
|
+
import"./chunks/media-uri-mf0jv62d.js";
|
|
24
|
+
import"./chunks/media-uri-j4hk2st6.js";
|
|
25
|
+
import"./chunks/media-uri-tg713d3t.js";
|
|
26
|
+
import"./chunks/media-uri-1qgvww4g.js";
|
|
27
|
+
import"./chunks/media-uri-23bsg0bb.js";
|
|
28
|
+
import"./chunks/media-uri-4abt2dvn.js";
|
|
29
|
+
import"./chunks/media-uri-44ywgpsx.js";
|
|
30
|
+
import"./chunks/media-uri-nfv0r61b.js";
|
|
31
|
+
import"./chunks/media-uri-sh3ejx5x.js";
|
|
32
|
+
import"./chunks/media-uri-3sdebxp3.js";
|
|
33
|
+
import"./chunks/media-uri-7qa33b41.js";
|
|
34
|
+
import"./chunks/media-uri-gk96xf2h.js";
|
|
35
|
+
import"./chunks/media-uri-20m6qdhp.js";
|
|
36
|
+
import"./chunks/media-uri-d77v3xnm.js";
|
|
37
|
+
import"./chunks/media-uri-g1wjh7qe.js";
|
|
38
|
+
import"./chunks/media-uri-0xhepbgy.js";
|
|
39
|
+
import"./chunks/media-uri-j4at0y5c.js";
|
|
40
|
+
import"./chunks/media-uri-t6ryhghb.js";
|
|
41
|
+
import"./chunks/media-uri-hj8z77wc.js";
|
|
42
|
+
import"./chunks/media-uri-0nzx8p8z.js";
|
|
43
|
+
import"./chunks/media-uri-44zzbkrb.js";
|
|
34
44
|
import"./chunks/media-uri-017ycvbx.js";
|
|
35
|
-
import"./chunks/media-uri-zs3a96ke.js";
|
|
36
|
-
import"./chunks/media-uri-yvy5qft7.js";
|
|
37
45
|
import"./chunks/media-uri-x2qy7jg1.js";
|
|
38
|
-
import"./chunks/media-uri-
|
|
39
|
-
import"./chunks/media-uri-
|
|
40
|
-
import"./chunks/media-uri-
|
|
41
|
-
import"./chunks/media-uri-
|
|
42
|
-
import"./chunks/media-uri-
|
|
43
|
-
import"./chunks/media-uri-3xfmgb6c.js";
|
|
44
|
-
import"./chunks/media-uri-6pm6ek88.js";
|
|
46
|
+
import"./chunks/media-uri-djr0jy89.js";
|
|
47
|
+
import"./chunks/media-uri-sqfq92mf.js";
|
|
48
|
+
import"./chunks/media-uri-g23ffrnz.js";
|
|
49
|
+
import"./chunks/media-uri-xw05m515.js";
|
|
50
|
+
import"./chunks/media-uri-qpnw2qd1.js";
|
|
45
51
|
import"./chunks/media-uri-q187pxxd.js";
|
|
46
|
-
import"./chunks/media-uri-
|
|
47
|
-
import"./chunks/media-uri-
|
|
48
|
-
import"./chunks/media-uri-
|
|
49
|
-
import"./chunks/media-uri-
|
|
50
|
-
import"./chunks/media-uri-
|
|
51
|
-
import"./chunks/media-uri-k12h8tw9.js";
|
|
52
|
-
import"./chunks/media-uri-hs3dbf8w.js";
|
|
53
|
-
import"./chunks/media-uri-8sb6qqpn.js";
|
|
54
|
-
import"./chunks/media-uri-8y4d9f30.js";
|
|
55
|
-
import"./chunks/media-uri-0dfmev2z.js";
|
|
56
|
-
import"./chunks/media-uri-fsvp99pe.js";
|
|
57
|
-
import"./chunks/media-uri-72bf7qt9.js";
|
|
52
|
+
import"./chunks/media-uri-6pm6ek88.js";
|
|
53
|
+
import"./chunks/media-uri-p8x80wn6.js";
|
|
54
|
+
import"./chunks/media-uri-jy2ammbg.js";
|
|
55
|
+
import"./chunks/media-uri-aexh791j.js";
|
|
56
|
+
import"./chunks/media-uri-stx1bw5w.js";
|
|
58
57
|
import"./chunks/media-uri-rqgv9x42.js";
|
|
59
|
-
import"./chunks/media-uri-
|
|
60
|
-
import"./chunks/media-uri-
|
|
58
|
+
import"./chunks/media-uri-mj1ewmp1.js";
|
|
59
|
+
import"./chunks/media-uri-vb61dkrm.js";
|
|
60
|
+
import"./chunks/media-uri-8sb6qqpn.js";
|
|
61
61
|
import"./chunks/media-uri-xthc02cw.js";
|
|
62
|
-
import"./chunks/media-uri-
|
|
62
|
+
import"./chunks/media-uri-gb9bc2v4.js";
|
|
63
|
+
import"./chunks/media-uri-megkv1kf.js";
|
|
63
64
|
import"./chunks/media-uri-t32e1bbt.js";
|
|
64
|
-
import"./chunks/media-uri-
|
|
65
|
-
import"./chunks/media-uri-fmkwyf76.js";
|
|
65
|
+
import"./chunks/media-uri-q4bn6dy8.js";
|
|
66
66
|
export {
|
|
67
67
|
createEmbeddedRoutes2 as createEmbeddedRoutes,
|
|
68
68
|
createRoutes2 as createRoutes
|
package/dist/server-info.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service5,
|
|
3
3
|
layer4,
|
|
4
4
|
connectionURLs2,
|
|
5
5
|
exports_server_info
|
|
6
|
-
} from "./chunks/media-uri-
|
|
6
|
+
} from "./chunks/media-uri-megkv1kf.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_server_info as ServerInfo,
|
|
9
|
-
|
|
9
|
+
Service5 as Service,
|
|
10
10
|
connectionURLs2 as connectionURLs,
|
|
11
11
|
layer4 as layer
|
|
12
12
|
};
|
package/dist/service-status.js
CHANGED
package/dist/space-store.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BatchSize2,
|
|
3
3
|
PurgeInterval2,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Service2,
|
|
5
|
+
node2,
|
|
6
6
|
extension2,
|
|
7
7
|
exports_space_store
|
|
8
|
-
} from "./chunks/media-uri-
|
|
8
|
+
} from "./chunks/media-uri-mj1ewmp1.js";
|
|
9
9
|
export {
|
|
10
10
|
BatchSize2 as BatchSize,
|
|
11
11
|
PurgeInterval2 as PurgeInterval,
|
|
12
|
-
|
|
12
|
+
Service2 as Service,
|
|
13
13
|
exports_space_store as SpaceStore,
|
|
14
14
|
extension2 as extension,
|
|
15
|
-
|
|
15
|
+
node2 as node
|
|
16
16
|
};
|
package/dist/workerd.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import"./chunks/media-uri-q4bn6dy8.js";
|
|
2
|
-
import"./chunks/media-uri-
|
|
2
|
+
import"./chunks/media-uri-hmwn16zp.js";
|
|
3
3
|
import {
|
|
4
4
|
withoutParentSpan2
|
|
5
5
|
} from "./chunks/media-uri-yc7nft6q.js";
|
|
6
6
|
import"./chunks/media-uri-rqgv9x42.js";
|
|
7
|
-
import"./chunks/media-uri-
|
|
8
|
-
import"./chunks/media-uri-
|
|
9
|
-
import"./chunks/media-uri-
|
|
10
|
-
import"./chunks/media-uri-
|
|
7
|
+
import"./chunks/media-uri-stx1bw5w.js";
|
|
8
|
+
import"./chunks/media-uri-jy2ammbg.js";
|
|
9
|
+
import"./chunks/media-uri-aexh791j.js";
|
|
10
|
+
import"./chunks/media-uri-p8x80wn6.js";
|
|
11
11
|
import"./chunks/media-uri-j4at0y5c.js";
|
|
12
|
-
import"./chunks/media-uri-
|
|
13
|
-
import"./chunks/media-uri-
|
|
14
|
-
import"./chunks/media-uri-
|
|
12
|
+
import"./chunks/media-uri-mj1ewmp1.js";
|
|
13
|
+
import"./chunks/media-uri-kpw06y11.js";
|
|
14
|
+
import"./chunks/media-uri-44ywgpsx.js";
|
|
15
15
|
import"./chunks/media-uri-xthc02cw.js";
|
|
16
|
-
import"./chunks/media-uri-
|
|
17
|
-
import"./chunks/media-uri-
|
|
18
|
-
import"./chunks/media-uri-
|
|
19
|
-
import"./chunks/media-uri-
|
|
20
|
-
import"./chunks/media-uri-
|
|
16
|
+
import"./chunks/media-uri-3sdebxp3.js";
|
|
17
|
+
import"./chunks/media-uri-1qgvww4g.js";
|
|
18
|
+
import"./chunks/media-uri-61xgwjgp.js";
|
|
19
|
+
import"./chunks/media-uri-07adkgh3.js";
|
|
20
|
+
import"./chunks/media-uri-hj8z77wc.js";
|
|
21
21
|
import"./chunks/media-uri-t32e1bbt.js";
|
|
22
22
|
import"./chunks/media-uri-8sb6qqpn.js";
|
|
23
|
-
import"./chunks/media-uri-
|
|
24
|
-
import"./chunks/media-uri-
|
|
25
|
-
import"./chunks/media-uri-
|
|
26
|
-
import"./chunks/media-uri-
|
|
27
|
-
import"./chunks/media-uri-
|
|
28
|
-
import"./chunks/media-uri-
|
|
29
|
-
import"./chunks/media-uri-
|
|
30
|
-
import"./chunks/media-uri-
|
|
31
|
-
import"./chunks/media-uri-
|
|
32
|
-
import"./chunks/media-uri-
|
|
33
|
-
import"./chunks/media-uri-
|
|
34
|
-
import"./chunks/media-uri-
|
|
35
|
-
import"./chunks/media-uri-
|
|
23
|
+
import"./chunks/media-uri-4abt2dvn.js";
|
|
24
|
+
import"./chunks/media-uri-gk96xf2h.js";
|
|
25
|
+
import"./chunks/media-uri-20m6qdhp.js";
|
|
26
|
+
import"./chunks/media-uri-7qa33b41.js";
|
|
27
|
+
import"./chunks/media-uri-4dcft65w.js";
|
|
28
|
+
import"./chunks/media-uri-gb9bc2v4.js";
|
|
29
|
+
import"./chunks/media-uri-d77v3xnm.js";
|
|
30
|
+
import"./chunks/media-uri-r3c5pb1c.js";
|
|
31
|
+
import"./chunks/media-uri-nfv0r61b.js";
|
|
32
|
+
import"./chunks/media-uri-megkv1kf.js";
|
|
33
|
+
import"./chunks/media-uri-vb61dkrm.js";
|
|
34
|
+
import"./chunks/media-uri-tg713d3t.js";
|
|
35
|
+
import"./chunks/media-uri-t6ryhghb.js";
|
|
36
36
|
import"./chunks/media-uri-q187pxxd.js";
|
|
37
|
-
import"./chunks/media-uri-
|
|
38
|
-
import"./chunks/media-uri-
|
|
37
|
+
import"./chunks/media-uri-t6q8af35.js";
|
|
38
|
+
import"./chunks/media-uri-sqfq92mf.js";
|
|
39
39
|
import"./chunks/media-uri-g23ffrnz.js";
|
|
40
|
-
import"./chunks/media-uri-
|
|
40
|
+
import"./chunks/media-uri-44zzbkrb.js";
|
|
41
41
|
import"./chunks/media-uri-6pm6ek88.js";
|
|
42
42
|
import"./chunks/media-uri-x2qy7jg1.js";
|
|
43
43
|
import"./chunks/media-uri-017ycvbx.js";
|
|
44
44
|
import"./chunks/media-uri-djr0jy89.js";
|
|
45
45
|
import"./chunks/media-uri-qpnw2qd1.js";
|
|
46
|
-
import"./chunks/media-uri-
|
|
47
|
-
import"./chunks/media-uri-
|
|
48
|
-
import"./chunks/media-uri-
|
|
49
|
-
import"./chunks/media-uri-
|
|
50
|
-
import"./chunks/media-uri-
|
|
51
|
-
import"./chunks/media-uri-
|
|
52
|
-
import"./chunks/media-uri-
|
|
53
|
-
import"./chunks/media-uri-
|
|
54
|
-
import"./chunks/media-uri-
|
|
55
|
-
import"./chunks/media-uri-
|
|
56
|
-
import"./chunks/media-uri-
|
|
57
|
-
import"./chunks/media-uri-
|
|
58
|
-
import"./chunks/media-uri-
|
|
59
|
-
import"./chunks/media-uri-
|
|
60
|
-
import"./chunks/media-uri-
|
|
61
|
-
import"./chunks/media-uri-
|
|
62
|
-
import"./chunks/media-uri-
|
|
46
|
+
import"./chunks/media-uri-xw05m515.js";
|
|
47
|
+
import"./chunks/media-uri-0nzx8p8z.js";
|
|
48
|
+
import"./chunks/media-uri-ezydv7x1.js";
|
|
49
|
+
import"./chunks/media-uri-j4hk2st6.js";
|
|
50
|
+
import"./chunks/media-uri-sh3ejx5x.js";
|
|
51
|
+
import"./chunks/media-uri-dxh72p2c.js";
|
|
52
|
+
import"./chunks/media-uri-g1wjh7qe.js";
|
|
53
|
+
import"./chunks/media-uri-9bpmwzvq.js";
|
|
54
|
+
import"./chunks/media-uri-0xhepbgy.js";
|
|
55
|
+
import"./chunks/media-uri-ej8k6nk6.js";
|
|
56
|
+
import"./chunks/media-uri-sar77n3p.js";
|
|
57
|
+
import"./chunks/media-uri-npqc081y.js";
|
|
58
|
+
import"./chunks/media-uri-kxxxzk43.js";
|
|
59
|
+
import"./chunks/media-uri-mf0jv62d.js";
|
|
60
|
+
import"./chunks/media-uri-23bsg0bb.js";
|
|
61
|
+
import"./chunks/media-uri-4a2eztcc.js";
|
|
62
|
+
import"./chunks/media-uri-katdrqa2.js";
|
|
63
63
|
import"./chunks/media-uri-29nx48hm.js";
|
|
64
64
|
import"./chunks/media-uri-bd8755ek.js";
|
|
65
65
|
import"./chunks/media-uri-n26yr6pw.js";
|
|
66
|
-
import"./chunks/media-uri-
|
|
66
|
+
import"./chunks/media-uri-0wwbgx8t.js";
|
|
67
67
|
import {
|
|
68
68
|
makeWithContext2
|
|
69
|
-
} from "./chunks/media-uri-
|
|
69
|
+
} from "./chunks/media-uri-njmm6d43.js";
|
|
70
70
|
import {
|
|
71
71
|
__export
|
|
72
72
|
} from "./chunks/media-uri-9rqn6x4v.js";
|
|
@@ -79,7 +79,7 @@ __export(exports_workerd, {
|
|
|
79
79
|
replacements: () => replacements,
|
|
80
80
|
serverOptions: () => serverOptions
|
|
81
81
|
});
|
|
82
|
-
import { Context, Effect
|
|
82
|
+
import { Context, Effect } from "effect";
|
|
83
83
|
import { BlobStore } from "@opencode/core/blob-store";
|
|
84
84
|
import { ConfigPluginSource } from "@opencode/core/config/plugin/source";
|
|
85
85
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -125,22 +125,13 @@ function replacements(options) {
|
|
|
125
125
|
})),
|
|
126
126
|
WorkspaceConnector.node.replace(Workspace.connectorNode),
|
|
127
127
|
CrossSpawnSpawner.node.replace(EnvironmentUnavailable.layer),
|
|
128
|
-
Pty.node.replace(
|
|
128
|
+
Pty.node.replace(Pty.unsupportedLayer),
|
|
129
129
|
Npm.node.replace(Npm.unsupportedLayer),
|
|
130
130
|
BlobStore.node.replace(BlobStore.unsupportedLayer),
|
|
131
131
|
VideoGeneration.node.replace(VideoGeneration.unsupportedLayer),
|
|
132
132
|
ConfigPluginSource.node.replace(ConfigPluginSource.empty)
|
|
133
133
|
];
|
|
134
134
|
}
|
|
135
|
-
var ptyLayer = Layer.succeed(Pty.Service, Pty.Service.of({
|
|
136
|
-
list: () => Effect.succeed([]),
|
|
137
|
-
get: (ptyID) => Effect.fail(new Pty.NotFoundError({ ptyID })),
|
|
138
|
-
create: () => Effect.die(new Error("Pty.create is unavailable in the workerd profile")),
|
|
139
|
-
update: (ptyID) => Effect.fail(new Pty.NotFoundError({ ptyID })),
|
|
140
|
-
remove: (ptyID) => Effect.fail(new Pty.NotFoundError({ ptyID })),
|
|
141
|
-
write: (ptyID) => Effect.fail(new Pty.NotFoundError({ ptyID })),
|
|
142
|
-
attach: (ptyID) => Effect.fail(new Pty.NotFoundError({ ptyID }))
|
|
143
|
-
}));
|
|
144
135
|
export {
|
|
145
136
|
exports_workerd as ServerWorkerd,
|
|
146
137
|
create,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/server",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-1367",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@effect/platform-node": "4.1.0",
|
|
34
34
|
"@effect/platform-node-shared": "4.1.0",
|
|
35
|
-
"@opencode/core": "0.0.0-dev-
|
|
36
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
37
|
-
"@opencode/schema": "0.0.0-dev-
|
|
38
|
-
"@opencode/simulation": "0.0.0-dev-
|
|
39
|
-
"@opencode/util": "0.0.0-dev-
|
|
35
|
+
"@opencode/core": "0.0.0-dev-1367",
|
|
36
|
+
"@opencode/protocol": "0.0.0-dev-1367",
|
|
37
|
+
"@opencode/schema": "0.0.0-dev-1367",
|
|
38
|
+
"@opencode/simulation": "0.0.0-dev-1367",
|
|
39
|
+
"@opencode/util": "0.0.0-dev-1367",
|
|
40
40
|
"effect": "4.1.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@opencode/pty": "0.6.0",
|
|
44
|
-
"@opencode/client": "0.0.0-dev-
|
|
45
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
44
|
+
"@opencode/client": "0.0.0-dev-1367",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-1367",
|
|
46
46
|
"@tsconfig/bun": "1.0.9",
|
|
47
47
|
"@types/bun": "1.4.3",
|
|
48
48
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isAllowedCorsOrigin2
|
|
3
|
-
} from "./media-uri-q4bn6dy8.js";
|
|
4
|
-
import {
|
|
5
|
-
middleware2
|
|
6
|
-
} from "./media-uri-myqk22k5.js";
|
|
7
|
-
import {
|
|
8
|
-
withoutParentSpan2
|
|
9
|
-
} from "./media-uri-yc7nft6q.js";
|
|
10
|
-
import {
|
|
11
|
-
createRoutes2
|
|
12
|
-
} from "./media-uri-ttd4mjws.js";
|
|
13
|
-
import {
|
|
14
|
-
__export
|
|
15
|
-
} from "./media-uri-9rqn6x4v.js";
|
|
16
|
-
|
|
17
|
-
// src/fetch.ts
|
|
18
|
-
var exports_fetch = {};
|
|
19
|
-
__export(exports_fetch, {
|
|
20
|
-
ServerFetch: () => exports_fetch,
|
|
21
|
-
make: () => make2,
|
|
22
|
-
makeWithContext: () => makeWithContext2
|
|
23
|
-
});
|
|
24
|
-
import { Context, Effect, Layer } from "effect";
|
|
25
|
-
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
|
|
26
|
-
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
27
|
-
var makeWithContext2 = Effect.fn("ServerFetch.makeWithContext")(function* (options = {}, boot = {}) {
|
|
28
|
-
const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices))).pipe(withoutParentSpan2);
|
|
29
|
-
yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
|
|
30
|
-
const handler = Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(middleware2(options), HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
31
|
-
return { handler, context };
|
|
32
|
-
});
|
|
33
|
-
var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
34
|
-
return (yield* makeWithContext2(options, boot)).handler;
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export { makeWithContext2, make2, exports_fetch };
|
|
File without changes
|