@opencode/server 0.0.0-dev-1360 → 0.0.0-dev-1361
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.d.ts +171 -2
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{auth-0wjm8gvs.js → cors-0wjm8gvs.js} +2 -2
- package/dist/chunks/{auth-10sj2tcf.js → cors-10sj2tcf.js} +1 -1
- package/dist/chunks/{auth-1z9qd4y2.js → cors-1z9qd4y2.js} +4 -4
- package/dist/chunks/{auth-29nx48hm.js → cors-29nx48hm.js} +1 -1
- package/dist/chunks/{auth-2tmcamrc.js → cors-2tmcamrc.js} +2 -2
- package/dist/chunks/{auth-2p8psxn9.js → cors-3cx4ac5j.js} +17 -13
- package/dist/chunks/{auth-74nxvsrn.js → cors-3xkwxcke.js} +7 -4
- package/dist/chunks/cors-5fn432p6.js +44 -0
- package/dist/chunks/{auth-z3e7v67k.js → cors-5pdfedjd.js} +5 -5
- package/dist/chunks/{auth-59yyxpa4.js → cors-6cmsxt3d.js} +8 -8
- package/dist/chunks/{auth-6pm6ek88.js → cors-6pm6ek88.js} +1 -1
- package/dist/chunks/{auth-7dkb5ks8.js → cors-7dkb5ks8.js} +2 -2
- package/dist/chunks/{auth-8nezxn08.js → cors-8nezxn08.js} +1 -1
- package/dist/chunks/{auth-8qsq6tbs.js → cors-8qsq6tbs.js} +2 -2
- package/dist/chunks/{auth-8sb6qqpn.js → cors-8sb6qqpn.js} +1 -1
- package/dist/chunks/{auth-8xdajgpr.js → cors-8xdajgpr.js} +2 -2
- package/dist/chunks/{auth-9hynp6rm.js → cors-9hynp6rm.js} +2 -2
- package/dist/chunks/{auth-am27j67f.js → cors-am27j67f.js} +1 -1
- package/dist/chunks/{auth-br4x4prt.js → cors-br4x4prt.js} +1 -1
- package/dist/chunks/{auth-ca564221.js → cors-ca564221.js} +1 -1
- package/dist/chunks/{auth-csnx1nj3.js → cors-csnx1nj3.js} +2 -2
- package/dist/chunks/{auth-djr0jy89.js → cors-djr0jy89.js} +1 -1
- package/dist/chunks/{auth-0q7s66m2.js → cors-e6e4kz0w.js} +4 -4
- package/dist/chunks/{auth-ehyp3zqd.js → cors-ehyp3zqd.js} +1 -1
- package/dist/chunks/{auth-em7ed65n.js → cors-em7ed65n.js} +2 -2
- package/dist/chunks/{auth-enx9e1dz.js → cors-enx9e1dz.js} +4 -4
- package/dist/chunks/{auth-exwy1kbj.js → cors-exwy1kbj.js} +2 -2
- package/dist/chunks/{auth-f3gr6hfv.js → cors-f3gr6hfv.js} +2 -2
- package/dist/chunks/{auth-ey0z35hy.js → cors-fa6nnfxm.js} +38 -35
- package/dist/chunks/{auth-g23ffrnz.js → cors-g23ffrnz.js} +2 -2
- package/dist/chunks/{auth-g4964mny.js → cors-g4964mny.js} +3 -3
- package/dist/chunks/{auth-xcshf76p.js → cors-hb1ty1t1.js} +5 -6
- package/dist/chunks/{auth-j4at0y5c.js → cors-j4at0y5c.js} +1 -1
- package/dist/chunks/{auth-javgytnb.js → cors-javgytnb.js} +2 -2
- package/dist/chunks/{auth-k74zefsg.js → cors-k74zefsg.js} +1 -1
- package/dist/chunks/{auth-ka2mtp6f.js → cors-ka2mtp6f.js} +2 -2
- package/dist/chunks/{auth-kmwr1xw9.js → cors-kmwr1xw9.js} +3 -3
- package/dist/chunks/{auth-1aar1z9e.js → cors-msvebcy2.js} +5 -5
- package/dist/chunks/{auth-myqk22k5.js → cors-myqk22k5.js} +2 -2
- package/dist/chunks/{auth-n2zyxnzr.js → cors-n2zyxnzr.js} +1 -1
- package/dist/chunks/{auth-nvb61mgq.js → cors-nvb61mgq.js} +4 -4
- package/dist/chunks/{auth-p3bbq7g3.js → cors-p3bbq7g3.js} +1 -1
- package/dist/chunks/{auth-prwd5gwt.js → cors-prwd5gwt.js} +2 -2
- package/dist/chunks/{auth-qq3f8fnn.js → cors-qq3f8fnn.js} +2 -2
- package/dist/chunks/{auth-qssmdh31.js → cors-qssmdh31.js} +4 -4
- package/dist/chunks/{auth-rgbnpstw.js → cors-rgbnpstw.js} +2 -2
- package/dist/chunks/{auth-rjhxbsc4.js → cors-rjhxbsc4.js} +2 -2
- package/dist/chunks/{auth-s0zgx365.js → cors-s0zgx365.js} +2 -2
- package/dist/chunks/{auth-gaegw7xv.js → cors-sv3a4xc1.js} +16 -12
- package/dist/chunks/{auth-t32e1bbt.js → cors-t32e1bbt.js} +1 -1
- package/dist/chunks/{auth-w9jcwh65.js → cors-v9t81kwn.js} +8 -8
- package/dist/chunks/cors-w6xb5z15.js +196 -0
- package/dist/chunks/{auth-whvq72as.js → cors-whvq72as.js} +3 -3
- package/dist/chunks/{auth-wsvmph03.js → cors-wsvmph03.js} +2 -2
- package/dist/chunks/{auth-x2qy7jg1.js → cors-x2qy7jg1.js} +1 -1
- package/dist/chunks/{auth-yc92za0p.js → cors-yc92za0p.js} +2 -2
- package/dist/chunks/{auth-tjxfj8xj.js → cors-z5c20bjd.js} +29 -12
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.d.ts +14 -2
- package/dist/event-feed.js +3 -3
- package/dist/fetch.d.ts +1 -1
- package/dist/fetch.js +65 -63
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.js +3 -3
- package/dist/handlers/automation.js +2 -2
- package/dist/handlers/blob.js +3 -3
- package/dist/handlers/command.js +6 -6
- package/dist/handlers/config.js +6 -6
- package/dist/handlers/credential.js +7 -7
- package/dist/handlers/debug.js +6 -6
- package/dist/handlers/event.js +7 -7
- package/dist/handlers/experimental/browser-tunnel.js +4 -4
- package/dist/handlers/flag.js +6 -6
- package/dist/handlers/form.js +6 -6
- package/dist/handlers/fs.js +8 -8
- package/dist/handlers/generate.js +6 -6
- package/dist/handlers/integration.js +6 -6
- package/dist/handlers/job.js +2 -2
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/machine.js +1 -1
- package/dist/handlers/mcp.js +8 -8
- package/dist/handlers/media.js +2 -2
- package/dist/handlers/message.js +7 -7
- package/dist/handlers/migration.js +6 -6
- package/dist/handlers/model.js +6 -6
- package/dist/handlers/permission.js +6 -6
- package/dist/handlers/persistent-pty.d.ts +1 -1
- package/dist/handlers/persistent-pty.js +20 -18
- package/dist/handlers/plugin.js +6 -6
- package/dist/handlers/project.js +6 -6
- package/dist/handlers/provider.js +6 -6
- package/dist/handlers/pty-socket.js +1 -1
- package/dist/handlers/pty.js +8 -8
- package/dist/handlers/push.js +1 -1
- package/dist/handlers/reference.js +6 -6
- package/dist/handlers/rpc.js +6 -6
- package/dist/handlers/server.js +9 -9
- package/dist/handlers/session-error.js +1 -1
- package/dist/handlers/session.js +7 -7
- package/dist/handlers/shell.js +6 -6
- package/dist/handlers/skill.js +6 -6
- package/dist/handlers/space.d.ts +44 -0
- package/dist/handlers/space.js +7 -0
- package/dist/handlers/usage.js +6 -6
- package/dist/handlers/vcs.js +6 -6
- package/dist/handlers/voice.js +6 -6
- package/dist/handlers/websearch.js +6 -6
- package/dist/handlers/worktree.js +6 -6
- package/dist/handlers.d.ts +2 -1
- package/dist/handlers.js +58 -56
- package/dist/location.js +2 -2
- package/dist/media-uri.js +1 -1
- package/dist/middleware/authorization.js +2 -2
- package/dist/middleware/defect-response.js +1 -1
- package/dist/middleware/form-location.js +3 -3
- package/dist/middleware/schema-error.js +1 -1
- package/dist/middleware/session-location.js +3 -3
- package/dist/pairing.js +5 -5
- package/dist/process.js +68 -66
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +3 -2
- package/dist/routes.js +62 -60
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +3 -3
- package/dist/space-store.d.ts +49 -0
- package/dist/space-store.js +16 -0
- package/dist/workerd.js +66 -64
- package/package.json +8 -8
- /package/dist/chunks/{auth-017ycvbx.js → cors-017ycvbx.js} +0 -0
- /package/dist/chunks/{auth-9rqn6x4v.js → cors-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{auth-bd8755ek.js → cors-bd8755ek.js} +0 -0
- /package/dist/chunks/{auth-n26yr6pw.js → cors-n26yr6pw.js} +0 -0
- /package/dist/chunks/{auth-q187pxxd.js → cors-q187pxxd.js} +0 -0
- /package/dist/chunks/{auth-q4bn6dy8.js → cors-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{auth-qpnw2qd1.js → cors-qpnw2qd1.js} +0 -0
- /package/dist/chunks/{auth-rqgv9x42.js → cors-rqgv9x42.js} +0 -0
- /package/dist/chunks/{auth-xthc02cw.js → cors-xthc02cw.js} +0 -0
- /package/dist/chunks/{auth-yc7nft6q.js → cors-yc7nft6q.js} +0 -0
package/dist/request-tracing.js
CHANGED
package/dist/routes.d.ts
CHANGED
|
@@ -38,9 +38,10 @@ import { Workspace } from "@opencode/core/workspace";
|
|
|
38
38
|
import { FileWatch } from "@opencode/core/filesystem/file-watch";
|
|
39
39
|
import { HttpRouter } from "effect/http";
|
|
40
40
|
import { Layer } from "effect";
|
|
41
|
+
import { SpaceStore } from "./space-store";
|
|
41
42
|
import { ServerPairing } from "./pairing";
|
|
42
43
|
import type { ServerOptions } from "./options";
|
|
43
|
-
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 | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
|
|
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>;
|
|
44
45
|
type InstanceNode = (replacements: () => LayerNode.Replacements) => LayerNode.Provider<Instance.Service, never, typeof Node.tags.values.global>;
|
|
45
|
-
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 | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
|
|
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
|
export {};
|
package/dist/routes.js
CHANGED
|
@@ -1,66 +1,68 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRoutes2,
|
|
3
3
|
createEmbeddedRoutes2
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
11
|
-
import"./chunks/
|
|
12
|
-
import"./chunks/
|
|
13
|
-
import"./chunks/
|
|
14
|
-
import"./chunks/
|
|
15
|
-
import"./chunks/
|
|
16
|
-
import"./chunks/
|
|
17
|
-
import"./chunks/
|
|
18
|
-
import"./chunks/
|
|
19
|
-
import"./chunks/
|
|
20
|
-
import"./chunks/
|
|
21
|
-
import"./chunks/
|
|
22
|
-
import"./chunks/
|
|
23
|
-
import"./chunks/
|
|
24
|
-
import"./chunks/
|
|
25
|
-
import"./chunks/
|
|
26
|
-
import"./chunks/
|
|
27
|
-
import"./chunks/
|
|
28
|
-
import"./chunks/
|
|
29
|
-
import"./chunks/
|
|
30
|
-
import"./chunks/
|
|
31
|
-
import"./chunks/
|
|
32
|
-
import"./chunks/
|
|
33
|
-
import"./chunks/
|
|
34
|
-
import"./chunks/
|
|
35
|
-
import"./chunks/
|
|
36
|
-
import"./chunks/
|
|
37
|
-
import"./chunks/
|
|
38
|
-
import"./chunks/
|
|
39
|
-
import"./chunks/
|
|
40
|
-
import"./chunks/
|
|
41
|
-
import"./chunks/
|
|
42
|
-
import"./chunks/
|
|
43
|
-
import"./chunks/
|
|
44
|
-
import"./chunks/
|
|
45
|
-
import"./chunks/
|
|
46
|
-
import"./chunks/
|
|
47
|
-
import"./chunks/
|
|
48
|
-
import"./chunks/
|
|
49
|
-
import"./chunks/
|
|
50
|
-
import"./chunks/
|
|
51
|
-
import"./chunks/
|
|
52
|
-
import"./chunks/
|
|
53
|
-
import"./chunks/
|
|
54
|
-
import"./chunks/
|
|
55
|
-
import"./chunks/
|
|
56
|
-
import"./chunks/
|
|
57
|
-
import"./chunks/
|
|
58
|
-
import"./chunks/
|
|
59
|
-
import"./chunks/
|
|
60
|
-
import"./chunks/
|
|
61
|
-
import"./chunks/
|
|
62
|
-
import"./chunks/
|
|
63
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/cors-3cx4ac5j.js";
|
|
5
|
+
import"./chunks/cors-n26yr6pw.js";
|
|
6
|
+
import"./chunks/cors-29nx48hm.js";
|
|
7
|
+
import"./chunks/cors-bd8755ek.js";
|
|
8
|
+
import"./chunks/cors-fa6nnfxm.js";
|
|
9
|
+
import"./chunks/cors-p3bbq7g3.js";
|
|
10
|
+
import"./chunks/cors-0wjm8gvs.js";
|
|
11
|
+
import"./chunks/cors-8qsq6tbs.js";
|
|
12
|
+
import"./chunks/cors-k74zefsg.js";
|
|
13
|
+
import"./chunks/cors-qq3f8fnn.js";
|
|
14
|
+
import"./chunks/cors-8nezxn08.js";
|
|
15
|
+
import"./chunks/cors-qssmdh31.js";
|
|
16
|
+
import"./chunks/cors-kmwr1xw9.js";
|
|
17
|
+
import"./chunks/cors-n2zyxnzr.js";
|
|
18
|
+
import"./chunks/cors-prwd5gwt.js";
|
|
19
|
+
import"./chunks/cors-10sj2tcf.js";
|
|
20
|
+
import"./chunks/cors-1z9qd4y2.js";
|
|
21
|
+
import"./chunks/cors-nvb61mgq.js";
|
|
22
|
+
import"./chunks/cors-csnx1nj3.js";
|
|
23
|
+
import"./chunks/cors-7dkb5ks8.js";
|
|
24
|
+
import"./chunks/cors-enx9e1dz.js";
|
|
25
|
+
import"./chunks/cors-rgbnpstw.js";
|
|
26
|
+
import"./chunks/cors-3xkwxcke.js";
|
|
27
|
+
import"./chunks/cors-wsvmph03.js";
|
|
28
|
+
import"./chunks/cors-6cmsxt3d.js";
|
|
29
|
+
import"./chunks/cors-em7ed65n.js";
|
|
30
|
+
import"./chunks/cors-9hynp6rm.js";
|
|
31
|
+
import"./chunks/cors-f3gr6hfv.js";
|
|
32
|
+
import"./chunks/cors-s0zgx365.js";
|
|
33
|
+
import"./chunks/cors-am27j67f.js";
|
|
34
|
+
import"./chunks/cors-g4964mny.js";
|
|
35
|
+
import"./chunks/cors-sv3a4xc1.js";
|
|
36
|
+
import"./chunks/cors-qpnw2qd1.js";
|
|
37
|
+
import"./chunks/cors-g23ffrnz.js";
|
|
38
|
+
import"./chunks/cors-ka2mtp6f.js";
|
|
39
|
+
import"./chunks/cors-6pm6ek88.js";
|
|
40
|
+
import"./chunks/cors-javgytnb.js";
|
|
41
|
+
import"./chunks/cors-5fn432p6.js";
|
|
42
|
+
import"./chunks/cors-017ycvbx.js";
|
|
43
|
+
import"./chunks/cors-hb1ty1t1.js";
|
|
44
|
+
import"./chunks/cors-q187pxxd.js";
|
|
45
|
+
import"./chunks/cors-exwy1kbj.js";
|
|
46
|
+
import"./chunks/cors-x2qy7jg1.js";
|
|
47
|
+
import"./chunks/cors-rjhxbsc4.js";
|
|
48
|
+
import"./chunks/cors-djr0jy89.js";
|
|
49
|
+
import"./chunks/cors-yc92za0p.js";
|
|
50
|
+
import"./chunks/cors-8xdajgpr.js";
|
|
51
|
+
import"./chunks/cors-2tmcamrc.js";
|
|
52
|
+
import"./chunks/cors-w6xb5z15.js";
|
|
53
|
+
import"./chunks/cors-xthc02cw.js";
|
|
54
|
+
import"./chunks/cors-5pdfedjd.js";
|
|
55
|
+
import"./chunks/cors-z5c20bjd.js";
|
|
56
|
+
import"./chunks/cors-j4at0y5c.js";
|
|
57
|
+
import"./chunks/cors-8sb6qqpn.js";
|
|
58
|
+
import"./chunks/cors-q4bn6dy8.js";
|
|
59
|
+
import"./chunks/cors-t32e1bbt.js";
|
|
60
|
+
import"./chunks/cors-v9t81kwn.js";
|
|
61
|
+
import"./chunks/cors-whvq72as.js";
|
|
62
|
+
import"./chunks/cors-ehyp3zqd.js";
|
|
63
|
+
import"./chunks/cors-ca564221.js";
|
|
64
|
+
import"./chunks/cors-br4x4prt.js";
|
|
65
|
+
import"./chunks/cors-rqgv9x42.js";
|
|
64
66
|
export {
|
|
65
67
|
createEmbeddedRoutes2 as createEmbeddedRoutes,
|
|
66
68
|
createRoutes2 as createRoutes
|
package/dist/server-info.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service3,
|
|
3
3
|
layer2,
|
|
4
4
|
connectionURLs2,
|
|
5
5
|
exports_server_info
|
|
6
|
-
} from "./chunks/
|
|
6
|
+
} from "./chunks/cors-5pdfedjd.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_server_info as ServerInfo,
|
|
9
|
-
|
|
9
|
+
Service3 as Service,
|
|
10
10
|
connectionURLs2 as connectionURLs,
|
|
11
11
|
layer2 as layer
|
|
12
12
|
};
|
package/dist/service-status.js
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export * as SpaceStore from "./space-store";
|
|
2
|
+
import { Space } from "@opencode/schema/space";
|
|
3
|
+
import { Context, Effect, Scope } from "effect";
|
|
4
|
+
/** Rows per snapshot or delta batch, so a large space never goes out as one event. */
|
|
5
|
+
export declare const BatchSize = 500;
|
|
6
|
+
/** Tombstone-creating deletes in a space between two checks of its tombstones against `SpaceRows.TombstoneLimit`. */
|
|
7
|
+
export declare const PurgeInterval = 64;
|
|
8
|
+
export type Change = typeof Space.Event.Updated.Type | typeof Space.Event.Deleted.Type;
|
|
9
|
+
export type Listener = (change: Change) => Effect.Effect<void>;
|
|
10
|
+
type Send = (event: typeof Space.Event.Resync.Type | Change) => Effect.Effect<void>;
|
|
11
|
+
export interface Interface {
|
|
12
|
+
readonly set: (space: Space.Name, key: Space.Key, value: Space.Value) => Effect.Effect<void>;
|
|
13
|
+
readonly remove: (space: Space.Name, key: Space.Key) => Effect.Effect<void>;
|
|
14
|
+
/** This database's epoch, created once and kept, so revisions from another server or database are never used. */
|
|
15
|
+
readonly epoch: string;
|
|
16
|
+
/** Replaces the epoch: every client's next sync starts from a snapshot, e.g. after a database restore. */
|
|
17
|
+
readonly resetEpoch: Effect.Effect<void>;
|
|
18
|
+
/**
|
|
19
|
+
* One page of at most `BatchSize` keys after `cursor`: a delta when this database issued the cursor and still holds
|
|
20
|
+
* every deletion after it, else a snapshot. `next` continues it.
|
|
21
|
+
*/
|
|
22
|
+
readonly sync: (space: Space.Name, cursor?: string) => Effect.Effect<Space.Page>;
|
|
23
|
+
/** Lets `subscribe` address an event stream by its ID while `send` reaches it, until the scope closes. */
|
|
24
|
+
readonly attach: (stream: string, send: Send) => Effect.Effect<void, never, Scope.Scope>;
|
|
25
|
+
/**
|
|
26
|
+
* Sends each space's changes since its cursor to the stream as single updated and deleted events, or `resync` when
|
|
27
|
+
* they do not fit one batch or the cursor is unusable, then its live changes, none missed or repeated. Replaces earlier subscriptions of those spaces
|
|
28
|
+
* on the stream; false when no such stream is attached.
|
|
29
|
+
*/
|
|
30
|
+
readonly subscribe: (stream: string, spaces: ReadonlyArray<{
|
|
31
|
+
readonly space: Space.Name;
|
|
32
|
+
readonly cursor: string;
|
|
33
|
+
}>) => Effect.Effect<boolean>;
|
|
34
|
+
/** Stops sending those spaces to the stream, also mid catch-up; false when no such stream is attached. */
|
|
35
|
+
readonly unsubscribe: (stream: string, spaces: ReadonlyArray<Space.Name>) => Effect.Effect<boolean>;
|
|
36
|
+
/**
|
|
37
|
+
* Runs `listener` with every change before its write returns and before subscribed streams get it, in revision
|
|
38
|
+
* order within a space. Changes never go through the bus, so plugins do not see them.
|
|
39
|
+
*/
|
|
40
|
+
readonly listen: (listener: Listener) => Effect.Effect<Effect.Effect<void>>;
|
|
41
|
+
}
|
|
42
|
+
declare const Service_base: Context.ServiceClass<Service, "@opencode/server/SpaceStore", Interface>;
|
|
43
|
+
export declare class Service extends Service_base {
|
|
44
|
+
}
|
|
45
|
+
export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"global">, true>;
|
|
46
|
+
/** Attaches every event stream to the store, so `subscribe` can send space changes to it. */
|
|
47
|
+
export declare const extension: Effect.Effect<{
|
|
48
|
+
open: (stream: string, send: (event: import("@opencode/protocol/groups/event").OpenCodeEvent) => Effect.Effect<void>) => Effect.Effect<void, never, Scope.Scope>;
|
|
49
|
+
}, never, Service>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BatchSize2,
|
|
3
|
+
PurgeInterval2,
|
|
4
|
+
Service2,
|
|
5
|
+
node2,
|
|
6
|
+
extension2,
|
|
7
|
+
exports_space_store
|
|
8
|
+
} from "./chunks/cors-w6xb5z15.js";
|
|
9
|
+
export {
|
|
10
|
+
BatchSize2 as BatchSize,
|
|
11
|
+
PurgeInterval2 as PurgeInterval,
|
|
12
|
+
Service2 as Service,
|
|
13
|
+
exports_space_store as SpaceStore,
|
|
14
|
+
extension2 as extension,
|
|
15
|
+
node2 as node
|
|
16
|
+
};
|
package/dist/workerd.js
CHANGED
|
@@ -1,73 +1,75 @@
|
|
|
1
|
-
import"./chunks/
|
|
2
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/cors-q4bn6dy8.js";
|
|
2
|
+
import"./chunks/cors-myqk22k5.js";
|
|
3
3
|
import {
|
|
4
4
|
withoutParentSpan2
|
|
5
|
-
} from "./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
11
|
-
import"./chunks/
|
|
12
|
-
import"./chunks/
|
|
13
|
-
import"./chunks/
|
|
14
|
-
import"./chunks/
|
|
15
|
-
import"./chunks/
|
|
16
|
-
import"./chunks/
|
|
17
|
-
import"./chunks/
|
|
18
|
-
import"./chunks/
|
|
19
|
-
import"./chunks/
|
|
20
|
-
import"./chunks/
|
|
21
|
-
import"./chunks/
|
|
22
|
-
import"./chunks/
|
|
23
|
-
import"./chunks/
|
|
24
|
-
import"./chunks/
|
|
25
|
-
import"./chunks/
|
|
26
|
-
import"./chunks/
|
|
27
|
-
import"./chunks/
|
|
28
|
-
import"./chunks/
|
|
29
|
-
import"./chunks/
|
|
30
|
-
import"./chunks/
|
|
31
|
-
import"./chunks/
|
|
32
|
-
import"./chunks/
|
|
33
|
-
import"./chunks/
|
|
34
|
-
import"./chunks/
|
|
35
|
-
import"./chunks/
|
|
36
|
-
import"./chunks/
|
|
37
|
-
import"./chunks/
|
|
38
|
-
import"./chunks/
|
|
39
|
-
import"./chunks/
|
|
40
|
-
import"./chunks/
|
|
41
|
-
import"./chunks/
|
|
42
|
-
import"./chunks/
|
|
43
|
-
import"./chunks/
|
|
44
|
-
import"./chunks/
|
|
45
|
-
import"./chunks/
|
|
46
|
-
import"./chunks/
|
|
47
|
-
import"./chunks/
|
|
48
|
-
import"./chunks/
|
|
49
|
-
import"./chunks/
|
|
50
|
-
import"./chunks/
|
|
51
|
-
import"./chunks/
|
|
52
|
-
import"./chunks/
|
|
53
|
-
import"./chunks/
|
|
54
|
-
import"./chunks/
|
|
55
|
-
import"./chunks/
|
|
56
|
-
import"./chunks/
|
|
57
|
-
import"./chunks/
|
|
58
|
-
import"./chunks/
|
|
59
|
-
import"./chunks/
|
|
60
|
-
import"./chunks/
|
|
61
|
-
import"./chunks/
|
|
62
|
-
import"./chunks/
|
|
63
|
-
import"./chunks/
|
|
64
|
-
import"./chunks/
|
|
5
|
+
} from "./chunks/cors-yc7nft6q.js";
|
|
6
|
+
import"./chunks/cors-rqgv9x42.js";
|
|
7
|
+
import"./chunks/cors-br4x4prt.js";
|
|
8
|
+
import"./chunks/cors-ca564221.js";
|
|
9
|
+
import"./chunks/cors-ehyp3zqd.js";
|
|
10
|
+
import"./chunks/cors-whvq72as.js";
|
|
11
|
+
import"./chunks/cors-j4at0y5c.js";
|
|
12
|
+
import"./chunks/cors-w6xb5z15.js";
|
|
13
|
+
import"./chunks/cors-prwd5gwt.js";
|
|
14
|
+
import"./chunks/cors-rjhxbsc4.js";
|
|
15
|
+
import"./chunks/cors-xthc02cw.js";
|
|
16
|
+
import"./chunks/cors-g4964mny.js";
|
|
17
|
+
import"./chunks/cors-s0zgx365.js";
|
|
18
|
+
import"./chunks/cors-yc92za0p.js";
|
|
19
|
+
import"./chunks/cors-qssmdh31.js";
|
|
20
|
+
import"./chunks/cors-kmwr1xw9.js";
|
|
21
|
+
import"./chunks/cors-t32e1bbt.js";
|
|
22
|
+
import"./chunks/cors-8sb6qqpn.js";
|
|
23
|
+
import"./chunks/cors-nvb61mgq.js";
|
|
24
|
+
import"./chunks/cors-8qsq6tbs.js";
|
|
25
|
+
import"./chunks/cors-rgbnpstw.js";
|
|
26
|
+
import"./chunks/cors-3xkwxcke.js";
|
|
27
|
+
import"./chunks/cors-k74zefsg.js";
|
|
28
|
+
import"./chunks/cors-z5c20bjd.js";
|
|
29
|
+
import"./chunks/cors-hb1ty1t1.js";
|
|
30
|
+
import"./chunks/cors-exwy1kbj.js";
|
|
31
|
+
import"./chunks/cors-em7ed65n.js";
|
|
32
|
+
import"./chunks/cors-5pdfedjd.js";
|
|
33
|
+
import"./chunks/cors-v9t81kwn.js";
|
|
34
|
+
import"./chunks/cors-6cmsxt3d.js";
|
|
35
|
+
import"./chunks/cors-csnx1nj3.js";
|
|
36
|
+
import"./chunks/cors-q187pxxd.js";
|
|
37
|
+
import"./chunks/cors-1z9qd4y2.js";
|
|
38
|
+
import"./chunks/cors-javgytnb.js";
|
|
39
|
+
import"./chunks/cors-g23ffrnz.js";
|
|
40
|
+
import"./chunks/cors-ka2mtp6f.js";
|
|
41
|
+
import"./chunks/cors-6pm6ek88.js";
|
|
42
|
+
import"./chunks/cors-x2qy7jg1.js";
|
|
43
|
+
import"./chunks/cors-017ycvbx.js";
|
|
44
|
+
import"./chunks/cors-djr0jy89.js";
|
|
45
|
+
import"./chunks/cors-qpnw2qd1.js";
|
|
46
|
+
import"./chunks/cors-5fn432p6.js";
|
|
47
|
+
import"./chunks/cors-sv3a4xc1.js";
|
|
48
|
+
import"./chunks/cors-f3gr6hfv.js";
|
|
49
|
+
import"./chunks/cors-7dkb5ks8.js";
|
|
50
|
+
import"./chunks/cors-p3bbq7g3.js";
|
|
51
|
+
import"./chunks/cors-2tmcamrc.js";
|
|
52
|
+
import"./chunks/cors-qq3f8fnn.js";
|
|
53
|
+
import"./chunks/cors-wsvmph03.js";
|
|
54
|
+
import"./chunks/cors-9hynp6rm.js";
|
|
55
|
+
import"./chunks/cors-enx9e1dz.js";
|
|
56
|
+
import"./chunks/cors-8xdajgpr.js";
|
|
57
|
+
import"./chunks/cors-8nezxn08.js";
|
|
58
|
+
import"./chunks/cors-n2zyxnzr.js";
|
|
59
|
+
import"./chunks/cors-0wjm8gvs.js";
|
|
60
|
+
import"./chunks/cors-10sj2tcf.js";
|
|
61
|
+
import"./chunks/cors-am27j67f.js";
|
|
62
|
+
import"./chunks/cors-fa6nnfxm.js";
|
|
63
|
+
import"./chunks/cors-29nx48hm.js";
|
|
64
|
+
import"./chunks/cors-bd8755ek.js";
|
|
65
|
+
import"./chunks/cors-n26yr6pw.js";
|
|
66
|
+
import"./chunks/cors-3cx4ac5j.js";
|
|
65
67
|
import {
|
|
66
68
|
makeWithContext2
|
|
67
|
-
} from "./chunks/
|
|
69
|
+
} from "./chunks/cors-msvebcy2.js";
|
|
68
70
|
import {
|
|
69
71
|
__export
|
|
70
|
-
} from "./chunks/
|
|
72
|
+
} from "./chunks/cors-9rqn6x4v.js";
|
|
71
73
|
|
|
72
74
|
// src/workerd.ts
|
|
73
75
|
var exports_workerd = {};
|
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-1361",
|
|
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-1361",
|
|
36
|
+
"@opencode/protocol": "0.0.0-dev-1361",
|
|
37
|
+
"@opencode/schema": "0.0.0-dev-1361",
|
|
38
|
+
"@opencode/simulation": "0.0.0-dev-1361",
|
|
39
|
+
"@opencode/util": "0.0.0-dev-1361",
|
|
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-1361",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-1361",
|
|
46
46
|
"@tsconfig/bun": "1.0.9",
|
|
47
47
|
"@types/bun": "1.4.3",
|
|
48
48
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|