@opencode/server 0.0.0-dev-1361 → 0.0.0-dev-1363
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 +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{cors-msvebcy2.js → service-status-286nzxac.js} +8 -8
- package/dist/chunks/{cors-29nx48hm.js → service-status-29nx48hm.js} +1 -1
- package/dist/chunks/{cors-e6e4kz0w.js → service-status-39nnfjx1.js} +4 -4
- package/dist/chunks/{cors-sv3a4xc1.js → service-status-3kn3vtva.js} +13 -13
- package/dist/chunks/{cors-5pdfedjd.js → service-status-3te71694.js} +4 -4
- package/dist/chunks/{cors-8xdajgpr.js → service-status-3w2mqh28.js} +2 -2
- package/dist/chunks/{cors-fa6nnfxm.js → service-status-4z6dd0zp.js} +37 -37
- package/dist/chunks/{cors-g23ffrnz.js → service-status-50kbksvb.js} +2 -2
- package/dist/chunks/{cors-kmwr1xw9.js → service-status-5ky8bme5.js} +3 -3
- package/dist/chunks/{cors-8nezxn08.js → service-status-6anyjjh1.js} +1 -1
- package/dist/chunks/{cors-6pm6ek88.js → service-status-6pm6ek88.js} +1 -1
- package/dist/chunks/{cors-2tmcamrc.js → service-status-7r996r31.js} +2 -2
- package/dist/chunks/{cors-8sb6qqpn.js → service-status-8sb6qqpn.js} +1 -1
- package/dist/chunks/{cors-rgbnpstw.js → service-status-8y9zssdg.js} +2 -2
- package/dist/chunks/{cors-k74zefsg.js → service-status-ar950k47.js} +1 -1
- package/dist/chunks/{cors-br4x4prt.js → service-status-br4x4prt.js} +1 -1
- package/dist/chunks/{cors-0wjm8gvs.js → service-status-c6ktqe09.js} +2 -2
- package/dist/chunks/{cors-ca564221.js → service-status-ca564221.js} +1 -1
- package/dist/chunks/{cors-yc92za0p.js → service-status-cj97w75w.js} +2 -2
- package/dist/chunks/{cors-wsvmph03.js → service-status-ddhjwr2w.js} +2 -2
- package/dist/chunks/{cors-f3gr6hfv.js → service-status-df03ef4a.js} +2 -2
- package/dist/chunks/{cors-6cmsxt3d.js → service-status-dh44mzk7.js} +6 -6
- package/dist/chunks/{cors-djr0jy89.js → service-status-djr0jy89.js} +1 -1
- package/dist/chunks/{cors-10sj2tcf.js → service-status-eacgzt6w.js} +1 -1
- package/dist/chunks/{cors-ehyp3zqd.js → service-status-ehyp3zqd.js} +1 -1
- package/dist/chunks/{cors-3cx4ac5j.js → service-status-ek3gas7h.js} +23 -26
- package/dist/chunks/{cors-8qsq6tbs.js → service-status-esvnag9e.js} +2 -2
- package/dist/chunks/{cors-exwy1kbj.js → service-status-f412ctvv.js} +2 -2
- package/dist/chunks/{cors-w6xb5z15.js → service-status-fmkwyf76.js} +91 -68
- package/dist/chunks/{cors-3xkwxcke.js → service-status-g9qy0kb1.js} +2 -2
- package/dist/chunks/{cors-hb1ty1t1.js → service-status-hhwsfbf5.js} +4 -4
- package/dist/chunks/{cors-z5c20bjd.js → service-status-hs3dbf8w.js} +7 -7
- package/dist/chunks/{cors-qq3f8fnn.js → service-status-htk4x1jk.js} +2 -2
- package/dist/chunks/{cors-j4at0y5c.js → service-status-j4at0y5c.js} +1 -1
- package/dist/chunks/{cors-javgytnb.js → service-status-javgytnb.js} +2 -2
- package/dist/chunks/{cors-whvq72as.js → service-status-jhs8rzvk.js} +3 -3
- package/dist/chunks/{cors-ka2mtp6f.js → service-status-ka2mtp6f.js} +2 -2
- package/dist/chunks/{cors-g4964mny.js → service-status-krsfryqp.js} +3 -3
- package/dist/chunks/{cors-myqk22k5.js → service-status-myqk22k5.js} +2 -2
- package/dist/chunks/{cors-v9t81kwn.js → service-status-mzs0n5xz.js} +8 -8
- package/dist/chunks/{cors-csnx1nj3.js → service-status-nfrn9zxf.js} +4 -4
- package/dist/chunks/{cors-qssmdh31.js → service-status-nmknd757.js} +4 -4
- package/dist/chunks/{cors-enx9e1dz.js → service-status-nrpq6p1a.js} +4 -4
- package/dist/chunks/{cors-rjhxbsc4.js → service-status-phgds112.js} +2 -2
- package/dist/chunks/{cors-prwd5gwt.js → service-status-r682v2h3.js} +2 -2
- package/dist/chunks/{cors-9hynp6rm.js → service-status-r6qsbz4y.js} +2 -2
- package/dist/chunks/{cors-7dkb5ks8.js → service-status-rg932pab.js} +2 -2
- package/dist/chunks/{cors-t32e1bbt.js → service-status-t32e1bbt.js} +1 -1
- package/dist/chunks/{cors-1z9qd4y2.js → service-status-t91ekvs6.js} +4 -4
- package/dist/chunks/service-status-v60tcbt5.js +49 -0
- package/dist/chunks/{cors-am27j67f.js → service-status-wjh98yw2.js} +1 -1
- package/dist/chunks/{cors-x2qy7jg1.js → service-status-x2qy7jg1.js} +1 -1
- package/dist/chunks/{cors-s0zgx365.js → service-status-y8sa9sbe.js} +2 -2
- package/dist/chunks/{cors-n2zyxnzr.js → service-status-ykr4m3zx.js} +1 -1
- package/dist/chunks/{cors-em7ed65n.js → service-status-z0v7xmc8.js} +2 -2
- package/dist/chunks/{cors-p3bbq7g3.js → service-status-z80wqx10.js} +2 -2
- package/dist/chunks/{cors-nvb61mgq.js → service-status-zgjt1dbn.js} +4 -4
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +67 -67
- 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 -20
- 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 +35 -25
- package/dist/handlers/space.js +2 -2
- 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.js +58 -58
- 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 -68
- 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 +1 -1
- package/dist/routes.js +62 -62
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +3 -3
- package/dist/space-store.d.ts +22 -9
- package/dist/space-store.js +5 -5
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +67 -67
- package/package.json +8 -8
- package/dist/chunks/cors-5fn432p6.js +0 -44
- /package/dist/chunks/{cors-017ycvbx.js → service-status-017ycvbx.js} +0 -0
- /package/dist/chunks/{cors-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{cors-bd8755ek.js → service-status-bd8755ek.js} +0 -0
- /package/dist/chunks/{cors-n26yr6pw.js → service-status-n26yr6pw.js} +0 -0
- /package/dist/chunks/{cors-q187pxxd.js → service-status-q187pxxd.js} +0 -0
- /package/dist/chunks/{cors-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{cors-qpnw2qd1.js → service-status-qpnw2qd1.js} +0 -0
- /package/dist/chunks/{cors-rqgv9x42.js → service-status-rqgv9x42.js} +0 -0
- /package/dist/chunks/{cors-xthc02cw.js → service-status-xthc02cw.js} +0 -0
- /package/dist/chunks/{cors-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
package/dist/routes.js
CHANGED
|
@@ -1,68 +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/
|
|
64
|
-
import"./chunks/
|
|
65
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/service-status-ek3gas7h.js";
|
|
5
|
+
import"./chunks/service-status-n26yr6pw.js";
|
|
6
|
+
import"./chunks/service-status-bd8755ek.js";
|
|
7
|
+
import"./chunks/service-status-29nx48hm.js";
|
|
8
|
+
import"./chunks/service-status-4z6dd0zp.js";
|
|
9
|
+
import"./chunks/service-status-df03ef4a.js";
|
|
10
|
+
import"./chunks/service-status-z0v7xmc8.js";
|
|
11
|
+
import"./chunks/service-status-htk4x1jk.js";
|
|
12
|
+
import"./chunks/service-status-y8sa9sbe.js";
|
|
13
|
+
import"./chunks/service-status-z80wqx10.js";
|
|
14
|
+
import"./chunks/service-status-t91ekvs6.js";
|
|
15
|
+
import"./chunks/service-status-r6qsbz4y.js";
|
|
16
|
+
import"./chunks/service-status-6anyjjh1.js";
|
|
17
|
+
import"./chunks/service-status-rg932pab.js";
|
|
18
|
+
import"./chunks/service-status-ar950k47.js";
|
|
19
|
+
import"./chunks/service-status-ddhjwr2w.js";
|
|
20
|
+
import"./chunks/service-status-nmknd757.js";
|
|
21
|
+
import"./chunks/service-status-phgds112.js";
|
|
22
|
+
import"./chunks/service-status-nrpq6p1a.js";
|
|
23
|
+
import"./chunks/service-status-3w2mqh28.js";
|
|
24
|
+
import"./chunks/service-status-5ky8bme5.js";
|
|
25
|
+
import"./chunks/service-status-r682v2h3.js";
|
|
26
|
+
import"./chunks/service-status-esvnag9e.js";
|
|
27
|
+
import"./chunks/service-status-krsfryqp.js";
|
|
28
|
+
import"./chunks/service-status-eacgzt6w.js";
|
|
29
|
+
import"./chunks/service-status-dh44mzk7.js";
|
|
30
|
+
import"./chunks/service-status-8y9zssdg.js";
|
|
31
|
+
import"./chunks/service-status-c6ktqe09.js";
|
|
32
|
+
import"./chunks/service-status-3kn3vtva.js";
|
|
33
|
+
import"./chunks/service-status-017ycvbx.js";
|
|
34
|
+
import"./chunks/service-status-qpnw2qd1.js";
|
|
35
|
+
import"./chunks/service-status-ka2mtp6f.js";
|
|
36
|
+
import"./chunks/service-status-50kbksvb.js";
|
|
37
|
+
import"./chunks/service-status-djr0jy89.js";
|
|
38
|
+
import"./chunks/service-status-x2qy7jg1.js";
|
|
39
|
+
import"./chunks/service-status-6pm6ek88.js";
|
|
40
|
+
import"./chunks/service-status-q187pxxd.js";
|
|
41
|
+
import"./chunks/service-status-ykr4m3zx.js";
|
|
42
|
+
import"./chunks/service-status-cj97w75w.js";
|
|
43
|
+
import"./chunks/service-status-hhwsfbf5.js";
|
|
44
|
+
import"./chunks/service-status-wjh98yw2.js";
|
|
45
|
+
import"./chunks/service-status-zgjt1dbn.js";
|
|
46
|
+
import"./chunks/service-status-f412ctvv.js";
|
|
47
|
+
import"./chunks/service-status-v60tcbt5.js";
|
|
48
|
+
import"./chunks/service-status-j4at0y5c.js";
|
|
49
|
+
import"./chunks/service-status-hs3dbf8w.js";
|
|
50
|
+
import"./chunks/service-status-g9qy0kb1.js";
|
|
51
|
+
import"./chunks/service-status-javgytnb.js";
|
|
52
|
+
import"./chunks/service-status-7r996r31.js";
|
|
53
|
+
import"./chunks/service-status-nfrn9zxf.js";
|
|
54
|
+
import"./chunks/service-status-3te71694.js";
|
|
55
|
+
import"./chunks/service-status-mzs0n5xz.js";
|
|
56
|
+
import"./chunks/service-status-t32e1bbt.js";
|
|
57
|
+
import"./chunks/service-status-q4bn6dy8.js";
|
|
58
|
+
import"./chunks/service-status-jhs8rzvk.js";
|
|
59
|
+
import"./chunks/service-status-ca564221.js";
|
|
60
|
+
import"./chunks/service-status-ehyp3zqd.js";
|
|
61
|
+
import"./chunks/service-status-br4x4prt.js";
|
|
62
|
+
import"./chunks/service-status-rqgv9x42.js";
|
|
63
|
+
import"./chunks/service-status-8sb6qqpn.js";
|
|
64
|
+
import"./chunks/service-status-xthc02cw.js";
|
|
65
|
+
import"./chunks/service-status-fmkwyf76.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
|
Service3,
|
|
3
|
-
|
|
3
|
+
layer3,
|
|
4
4
|
connectionURLs2,
|
|
5
5
|
exports_server_info
|
|
6
|
-
} from "./chunks/
|
|
6
|
+
} from "./chunks/service-status-3te71694.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_server_info as ServerInfo,
|
|
9
9
|
Service3 as Service,
|
|
10
10
|
connectionURLs2 as connectionURLs,
|
|
11
|
-
|
|
11
|
+
layer3 as layer
|
|
12
12
|
};
|
package/dist/service-status.js
CHANGED
package/dist/space-store.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as SpaceStore from "./space-store";
|
|
2
2
|
import { Space } from "@opencode/schema/space";
|
|
3
3
|
import { Context, Effect, Scope } from "effect";
|
|
4
|
-
/** Rows
|
|
4
|
+
/** Rows one sync, or one subscribe's catch-up, reads at most across all its spaces. */
|
|
5
5
|
export declare const BatchSize = 500;
|
|
6
6
|
/** Tombstone-creating deletes in a space between two checks of its tombstones against `SpaceRows.TombstoneLimit`. */
|
|
7
7
|
export declare const PurgeInterval = 64;
|
|
@@ -9,23 +9,36 @@ export type Change = typeof Space.Event.Updated.Type | typeof Space.Event.Delete
|
|
|
9
9
|
export type Listener = (change: Change) => Effect.Effect<void>;
|
|
10
10
|
type Send = (event: typeof Space.Event.Resync.Type | Change) => Effect.Effect<void>;
|
|
11
11
|
export interface Interface {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Commits the changes in one transaction, as `SpaceRows.write` applies them, then sends each one that changed a row
|
|
14
|
+
* in revision order. Returns each space's head after them, with its cursor, in the order the spaces first appear.
|
|
15
|
+
*/
|
|
16
|
+
readonly write: (changes: ReadonlyArray<Space.Change>) => Effect.Effect<ReadonlyArray<{
|
|
17
|
+
readonly space: Space.Name;
|
|
18
|
+
readonly revision: Space.Revision;
|
|
19
|
+
readonly cursor: string;
|
|
20
|
+
}>>;
|
|
14
21
|
/** This database's epoch, created once and kept, so revisions from another server or database are never used. */
|
|
15
22
|
readonly epoch: string;
|
|
16
23
|
/** Replaces the epoch: every client's next sync starts from a snapshot, e.g. after a database restore. */
|
|
17
24
|
readonly resetEpoch: Effect.Effect<void>;
|
|
18
25
|
/**
|
|
19
|
-
* One page
|
|
20
|
-
* every deletion after it, else a snapshot
|
|
26
|
+
* One page per space after its cursor, in order, of `BatchSize` rows in total: a delta when this database issued the
|
|
27
|
+
* cursor and still holds every deletion after it, else a snapshot; `next` continues it. Once the rows are used up,
|
|
28
|
+
* the remaining spaces are not read and get no page.
|
|
21
29
|
*/
|
|
22
|
-
readonly sync: (
|
|
30
|
+
readonly sync: (spaces: ReadonlyArray<{
|
|
31
|
+
readonly space: Space.Name;
|
|
32
|
+
readonly cursor?: string;
|
|
33
|
+
}>) => Effect.Effect<ReadonlyArray<Space.Page>>;
|
|
23
34
|
/** Lets `subscribe` address an event stream by its ID while `send` reaches it, until the scope closes. */
|
|
24
35
|
readonly attach: (stream: string, send: Send) => Effect.Effect<void, never, Scope.Scope>;
|
|
25
36
|
/**
|
|
26
|
-
* Sends each space's changes since its cursor to the stream as single updated and deleted events,
|
|
27
|
-
*
|
|
28
|
-
*
|
|
37
|
+
* Sends each space's changes since its cursor to the stream as single updated and deleted events, then its live
|
|
38
|
+
* changes, none missed or repeated. The spaces' catch-ups read `BatchSize` rows in total, in order: a space whose
|
|
39
|
+
* changes do not fit what is left, every space after the rows are used up, and one with an unusable cursor get
|
|
40
|
+
* `resync` instead. Replaces earlier subscriptions of those spaces on the stream; false when no such stream is
|
|
41
|
+
* attached.
|
|
29
42
|
*/
|
|
30
43
|
readonly subscribe: (stream: string, spaces: ReadonlyArray<{
|
|
31
44
|
readonly space: Space.Name;
|
package/dist/space-store.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BatchSize2,
|
|
3
3
|
PurgeInterval2,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Service5,
|
|
5
|
+
node3,
|
|
6
6
|
extension2,
|
|
7
7
|
exports_space_store
|
|
8
|
-
} from "./chunks/
|
|
8
|
+
} from "./chunks/service-status-fmkwyf76.js";
|
|
9
9
|
export {
|
|
10
10
|
BatchSize2 as BatchSize,
|
|
11
11
|
PurgeInterval2 as PurgeInterval,
|
|
12
|
-
|
|
12
|
+
Service5 as Service,
|
|
13
13
|
exports_space_store as SpaceStore,
|
|
14
14
|
extension2 as extension,
|
|
15
|
-
|
|
15
|
+
node3 as node
|
|
16
16
|
};
|
package/dist/workerd.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface Options {
|
|
|
38
38
|
readonly config?: {
|
|
39
39
|
readonly content?: string;
|
|
40
40
|
};
|
|
41
|
-
/** models.dev catalog options
|
|
41
|
+
/** models.dev catalog options. Fetching is off by default, so a wake serves the bundled snapshot with no network. */
|
|
42
42
|
readonly models?: ServerOptions["models"];
|
|
43
43
|
/** Replaces `globalThis.fetch` for OpenCode's own HTTP requests, e.g. to route them through a Service Binding. */
|
|
44
44
|
readonly fetch?: ServerOptions["fetch"];
|
package/dist/workerd.js
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import"./chunks/
|
|
2
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/service-status-q4bn6dy8.js";
|
|
2
|
+
import"./chunks/service-status-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/
|
|
65
|
-
import"./chunks/
|
|
66
|
-
import"./chunks/
|
|
5
|
+
} from "./chunks/service-status-yc7nft6q.js";
|
|
6
|
+
import"./chunks/service-status-rqgv9x42.js";
|
|
7
|
+
import"./chunks/service-status-br4x4prt.js";
|
|
8
|
+
import"./chunks/service-status-ca564221.js";
|
|
9
|
+
import"./chunks/service-status-ehyp3zqd.js";
|
|
10
|
+
import"./chunks/service-status-jhs8rzvk.js";
|
|
11
|
+
import"./chunks/service-status-j4at0y5c.js";
|
|
12
|
+
import"./chunks/service-status-fmkwyf76.js";
|
|
13
|
+
import"./chunks/service-status-r682v2h3.js";
|
|
14
|
+
import"./chunks/service-status-phgds112.js";
|
|
15
|
+
import"./chunks/service-status-xthc02cw.js";
|
|
16
|
+
import"./chunks/service-status-krsfryqp.js";
|
|
17
|
+
import"./chunks/service-status-y8sa9sbe.js";
|
|
18
|
+
import"./chunks/service-status-cj97w75w.js";
|
|
19
|
+
import"./chunks/service-status-nmknd757.js";
|
|
20
|
+
import"./chunks/service-status-5ky8bme5.js";
|
|
21
|
+
import"./chunks/service-status-t32e1bbt.js";
|
|
22
|
+
import"./chunks/service-status-8sb6qqpn.js";
|
|
23
|
+
import"./chunks/service-status-zgjt1dbn.js";
|
|
24
|
+
import"./chunks/service-status-esvnag9e.js";
|
|
25
|
+
import"./chunks/service-status-8y9zssdg.js";
|
|
26
|
+
import"./chunks/service-status-g9qy0kb1.js";
|
|
27
|
+
import"./chunks/service-status-ar950k47.js";
|
|
28
|
+
import"./chunks/service-status-hs3dbf8w.js";
|
|
29
|
+
import"./chunks/service-status-hhwsfbf5.js";
|
|
30
|
+
import"./chunks/service-status-f412ctvv.js";
|
|
31
|
+
import"./chunks/service-status-z0v7xmc8.js";
|
|
32
|
+
import"./chunks/service-status-3te71694.js";
|
|
33
|
+
import"./chunks/service-status-mzs0n5xz.js";
|
|
34
|
+
import"./chunks/service-status-dh44mzk7.js";
|
|
35
|
+
import"./chunks/service-status-nfrn9zxf.js";
|
|
36
|
+
import"./chunks/service-status-q187pxxd.js";
|
|
37
|
+
import"./chunks/service-status-t91ekvs6.js";
|
|
38
|
+
import"./chunks/service-status-javgytnb.js";
|
|
39
|
+
import"./chunks/service-status-50kbksvb.js";
|
|
40
|
+
import"./chunks/service-status-ka2mtp6f.js";
|
|
41
|
+
import"./chunks/service-status-6pm6ek88.js";
|
|
42
|
+
import"./chunks/service-status-x2qy7jg1.js";
|
|
43
|
+
import"./chunks/service-status-017ycvbx.js";
|
|
44
|
+
import"./chunks/service-status-djr0jy89.js";
|
|
45
|
+
import"./chunks/service-status-qpnw2qd1.js";
|
|
46
|
+
import"./chunks/service-status-v60tcbt5.js";
|
|
47
|
+
import"./chunks/service-status-3kn3vtva.js";
|
|
48
|
+
import"./chunks/service-status-df03ef4a.js";
|
|
49
|
+
import"./chunks/service-status-rg932pab.js";
|
|
50
|
+
import"./chunks/service-status-z80wqx10.js";
|
|
51
|
+
import"./chunks/service-status-7r996r31.js";
|
|
52
|
+
import"./chunks/service-status-htk4x1jk.js";
|
|
53
|
+
import"./chunks/service-status-ddhjwr2w.js";
|
|
54
|
+
import"./chunks/service-status-r6qsbz4y.js";
|
|
55
|
+
import"./chunks/service-status-nrpq6p1a.js";
|
|
56
|
+
import"./chunks/service-status-3w2mqh28.js";
|
|
57
|
+
import"./chunks/service-status-6anyjjh1.js";
|
|
58
|
+
import"./chunks/service-status-ykr4m3zx.js";
|
|
59
|
+
import"./chunks/service-status-c6ktqe09.js";
|
|
60
|
+
import"./chunks/service-status-eacgzt6w.js";
|
|
61
|
+
import"./chunks/service-status-wjh98yw2.js";
|
|
62
|
+
import"./chunks/service-status-4z6dd0zp.js";
|
|
63
|
+
import"./chunks/service-status-29nx48hm.js";
|
|
64
|
+
import"./chunks/service-status-bd8755ek.js";
|
|
65
|
+
import"./chunks/service-status-n26yr6pw.js";
|
|
66
|
+
import"./chunks/service-status-ek3gas7h.js";
|
|
67
67
|
import {
|
|
68
68
|
makeWithContext2
|
|
69
|
-
} from "./chunks/
|
|
69
|
+
} from "./chunks/service-status-286nzxac.js";
|
|
70
70
|
import {
|
|
71
71
|
__export
|
|
72
|
-
} from "./chunks/
|
|
72
|
+
} from "./chunks/service-status-9rqn6x4v.js";
|
|
73
73
|
|
|
74
74
|
// src/workerd.ts
|
|
75
75
|
var exports_workerd = {};
|
|
@@ -110,7 +110,7 @@ function serverOptions(options) {
|
|
|
110
110
|
fs: { filewatcher: false, fff: false },
|
|
111
111
|
events: { persist: true },
|
|
112
112
|
config: { content: options.config?.content },
|
|
113
|
-
models: options.models,
|
|
113
|
+
models: { ...options.models, fetch: options.models?.fetch ?? false },
|
|
114
114
|
fetch: options.fetch
|
|
115
115
|
};
|
|
116
116
|
}
|
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-1363",
|
|
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-1363",
|
|
36
|
+
"@opencode/protocol": "0.0.0-dev-1363",
|
|
37
|
+
"@opencode/schema": "0.0.0-dev-1363",
|
|
38
|
+
"@opencode/simulation": "0.0.0-dev-1363",
|
|
39
|
+
"@opencode/util": "0.0.0-dev-1363",
|
|
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-1363",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-1363",
|
|
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,44 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service2
|
|
3
|
-
} from "./cors-w6xb5z15.js";
|
|
4
|
-
|
|
5
|
-
// src/handlers/space.ts
|
|
6
|
-
import { InvalidRequestError } from "@opencode/protocol/errors";
|
|
7
|
-
import { Space } from "@opencode/schema/space";
|
|
8
|
-
import { Effect } from "effect";
|
|
9
|
-
import { HttpApiSchema } from "effect/http-api";
|
|
10
|
-
var streamNotFound = () => new InvalidRequestError({ message: "No open event stream has this ID", kind: "stream_not_found", field: "stream" });
|
|
11
|
-
var makeSpace2 = Effect.gen(function* () {
|
|
12
|
-
const store = yield* Service2;
|
|
13
|
-
return {
|
|
14
|
-
set: Effect.fn("SpaceHandler.set")(function* (space, key, value) {
|
|
15
|
-
if (new TextEncoder().encode(value).length > Space.MaxValueBytes)
|
|
16
|
-
return yield* new InvalidRequestError({ message: "Value exceeds 1 MiB of UTF-8", field: "value" });
|
|
17
|
-
yield* store.set(space, key, value);
|
|
18
|
-
return HttpApiSchema.NoContent.make();
|
|
19
|
-
}),
|
|
20
|
-
sync: Effect.fn("SpaceHandler.sync")(function* (space, cursor) {
|
|
21
|
-
return yield* store.sync(space, cursor);
|
|
22
|
-
}),
|
|
23
|
-
subscribe: Effect.fn("SpaceHandler.subscribe")(function* (payload) {
|
|
24
|
-
if (!(yield* store.subscribe(payload.stream, payload.spaces)))
|
|
25
|
-
return yield* streamNotFound();
|
|
26
|
-
return HttpApiSchema.NoContent.make();
|
|
27
|
-
}),
|
|
28
|
-
unsubscribe: Effect.fn("SpaceHandler.unsubscribe")(function* (payload) {
|
|
29
|
-
if (!(yield* store.unsubscribe(payload.stream, payload.spaces)))
|
|
30
|
-
return yield* streamNotFound();
|
|
31
|
-
return HttpApiSchema.NoContent.make();
|
|
32
|
-
}),
|
|
33
|
-
reset: Effect.fn("SpaceHandler.reset")(function* () {
|
|
34
|
-
yield* store.resetEpoch;
|
|
35
|
-
return HttpApiSchema.NoContent.make();
|
|
36
|
-
}),
|
|
37
|
-
remove: Effect.fn("SpaceHandler.remove")(function* (space, key) {
|
|
38
|
-
yield* store.remove(space, key);
|
|
39
|
-
return HttpApiSchema.NoContent.make();
|
|
40
|
-
})
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export { makeSpace2 };
|
|
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
|