@opencode/server 2.0.24 → 2.0.26
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/{event-feed-pvrbm2ca.js → fetch-053p7hbt.js} +6 -6
- package/dist/chunks/{event-feed-x6486bry.js → fetch-0chp8crd.js} +7 -7
- package/dist/chunks/{event-feed-q4y3mw2d.js → fetch-0y03q8mn.js} +2 -2
- package/dist/chunks/{event-feed-pg3sqc69.js → fetch-1kbkbftd.js} +3 -3
- package/dist/chunks/{event-feed-qcy0p5fz.js → fetch-1w9kp1gg.js} +2 -2
- package/dist/chunks/{event-feed-swb5yrqf.js → fetch-4qyjttng.js} +2 -2
- package/dist/chunks/{event-feed-d0efjmp3.js → fetch-54sczv30.js} +7 -7
- package/dist/chunks/{event-feed-xsrtpxyd.js → fetch-5w24ch67.js} +4 -4
- package/dist/chunks/{event-feed-hqjvw1vc.js → fetch-6fr0a7bp.js} +13 -13
- package/dist/chunks/{event-feed-mz8smzxk.js → fetch-78n975k2.js} +6 -6
- package/dist/chunks/{event-feed-bptmkrac.js → fetch-80mhd8t7.js} +2 -2
- package/dist/chunks/{event-feed-zhqf1t9m.js → fetch-8c9kbrtm.js} +1 -1
- package/dist/chunks/{event-feed-acgs9zzk.js → fetch-acgs9zzk.js} +1 -1
- package/dist/chunks/{event-feed-2vy10eeh.js → fetch-agftk6b6.js} +2 -2
- package/dist/chunks/{event-feed-anm12x33.js → fetch-anm12x33.js} +1 -1
- package/dist/chunks/{event-feed-f90y8hv1.js → fetch-b44t4qeg.js} +62 -51
- package/dist/chunks/{event-feed-0b1t2b2s.js → fetch-bvp1r88z.js} +2 -2
- package/dist/chunks/{event-feed-s4aja1df.js → fetch-c6kb7fmf.js} +11 -6
- package/dist/chunks/{event-feed-m9wzfeff.js → fetch-cm271yqe.js} +2 -2
- package/dist/chunks/{event-feed-30gqa6y8.js → fetch-cy7y42ks.js} +3 -3
- package/dist/chunks/{event-feed-d00srfh1.js → fetch-d00srfh1.js} +1 -1
- package/dist/chunks/{event-feed-5fmydwgy.js → fetch-dy0yben3.js} +1 -1
- package/dist/chunks/{event-feed-j54drd5e.js → fetch-eekrj6qv.js} +1 -1
- package/dist/chunks/{event-feed-nvmdgpqv.js → fetch-g9rgg5ys.js} +2 -2
- package/dist/chunks/{event-feed-fsrvj92d.js → fetch-gj6tv0s4.js} +2 -2
- package/dist/chunks/{event-feed-gtkdacvk.js → fetch-gtkdacvk.js} +1 -1
- package/dist/chunks/{event-feed-6sgwm4gr.js → fetch-hajt4q09.js} +16 -2
- package/dist/chunks/{event-feed-3c937re8.js → fetch-j3pdvhe2.js} +2 -2
- package/dist/chunks/{event-feed-ep84ha6r.js → fetch-jxc39wgw.js} +3 -3
- package/dist/chunks/{event-feed-0nvjg055.js → fetch-kzj5eept.js} +33 -33
- package/dist/chunks/{event-feed-ppd3f187.js → fetch-m4fq9qce.js} +4 -4
- package/dist/chunks/{event-feed-w8db1rkr.js → fetch-m6xk774d.js} +2 -2
- package/dist/chunks/{event-feed-da5stqtt.js → fetch-mjepr257.js} +1 -1
- package/dist/chunks/{event-feed-wv5twc2g.js → fetch-n1svm92q.js} +7 -7
- package/dist/chunks/{event-feed-nxdx74sv.js → fetch-nxdx74sv.js} +1 -1
- package/dist/chunks/fetch-q9rkrfm7.js +106 -0
- package/dist/chunks/{event-feed-jskw5q1g.js → fetch-r5bb0n1s.js} +1 -1
- package/dist/chunks/{event-feed-387sf4vs.js → fetch-rhnwnf76.js} +1 -1
- package/dist/chunks/{event-feed-ccfecbt4.js → fetch-rwwc81rq.js} +1 -1
- package/dist/chunks/{event-feed-k4rfktze.js → fetch-t1n0m4wb.js} +7 -8
- package/dist/chunks/{event-feed-n7kafg5g.js → fetch-t70dy8sr.js} +2 -2
- package/dist/chunks/{event-feed-62qjgyra.js → fetch-w1fepcwh.js} +2 -2
- package/dist/chunks/{event-feed-mpbfcr4e.js → fetch-wb43dd8f.js} +2 -2
- package/dist/chunks/{event-feed-srcrrwjk.js → fetch-zhympcbw.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +49 -49
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/command.js +6 -6
- package/dist/handlers/config.js +6 -6
- package/dist/handlers/credential.js +6 -6
- package/dist/handlers/debug.js +6 -6
- package/dist/handlers/event.js +7 -7
- package/dist/handlers/form.js +6 -6
- package/dist/handlers/fs.js +6 -6
- package/dist/handlers/generate.js +6 -6
- package/dist/handlers/integration.d.ts +1 -1
- package/dist/handlers/integration.js +6 -6
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/mcp.js +6 -6
- package/dist/handlers/message.js +6 -6
- 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.js +8 -8
- 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.d.ts +2 -1
- package/dist/handlers/pty.js +9 -9
- 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 +6 -6
- package/dist/handlers/shell.js +6 -6
- package/dist/handlers/skill.js +6 -6
- package/dist/handlers/vcs.js +6 -6
- package/dist/handlers/websearch.js +6 -6
- package/dist/handlers/worktree.js +6 -6
- package/dist/handlers.js +43 -43
- package/dist/location.js +2 -2
- package/dist/middleware/authorization.js +2 -2
- 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 +3 -3
- package/dist/process.d.ts +1 -1
- package/dist/process.js +54 -53
- package/dist/pty-environment.js +5 -5
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +46 -46
- package/dist/server-info.js +1 -1
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +50 -50
- package/package.json +8 -9
- package/dist/chunks/event-feed-jhsx8jtg.js +0 -34
- /package/dist/chunks/{event-feed-9rqn6x4v.js → fetch-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{event-feed-hezj1jdf.js → fetch-hezj1jdf.js} +0 -0
- /package/dist/chunks/{event-feed-q4bn6dy8.js → fetch-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{event-feed-smaf4a18.js → fetch-smaf4a18.js} +0 -0
- /package/dist/chunks/{event-feed-t8yzmczr.js → fetch-t8yzmczr.js} +0 -0
- /package/dist/chunks/{event-feed-yc7nft6q.js → fetch-yc7nft6q.js} +0 -0
package/dist/workerd.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import"./chunks/
|
|
2
|
-
import"./chunks/
|
|
3
|
-
import"./chunks/
|
|
4
|
-
import"./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/
|
|
1
|
+
import"./chunks/fetch-q4bn6dy8.js";
|
|
2
|
+
import"./chunks/fetch-smaf4a18.js";
|
|
3
|
+
import"./chunks/fetch-acgs9zzk.js";
|
|
4
|
+
import"./chunks/fetch-d00srfh1.js";
|
|
5
|
+
import"./chunks/fetch-nxdx74sv.js";
|
|
6
|
+
import"./chunks/fetch-jxc39wgw.js";
|
|
7
|
+
import"./chunks/fetch-anm12x33.js";
|
|
8
|
+
import"./chunks/fetch-wb43dd8f.js";
|
|
9
|
+
import"./chunks/fetch-bvp1r88z.js";
|
|
10
|
+
import"./chunks/fetch-gj6tv0s4.js";
|
|
11
|
+
import"./chunks/fetch-4qyjttng.js";
|
|
12
|
+
import"./chunks/fetch-cy7y42ks.js";
|
|
13
|
+
import"./chunks/fetch-1kbkbftd.js";
|
|
14
|
+
import"./chunks/fetch-q9rkrfm7.js";
|
|
15
|
+
import"./chunks/fetch-agftk6b6.js";
|
|
16
|
+
import"./chunks/fetch-0y03q8mn.js";
|
|
17
|
+
import"./chunks/fetch-cm271yqe.js";
|
|
18
|
+
import"./chunks/fetch-8c9kbrtm.js";
|
|
19
|
+
import"./chunks/fetch-54sczv30.js";
|
|
20
|
+
import"./chunks/fetch-m4fq9qce.js";
|
|
21
|
+
import"./chunks/fetch-1w9kp1gg.js";
|
|
22
|
+
import"./chunks/fetch-w1fepcwh.js";
|
|
23
|
+
import"./chunks/fetch-c6kb7fmf.js";
|
|
24
|
+
import"./chunks/fetch-0chp8crd.js";
|
|
25
|
+
import"./chunks/fetch-78n975k2.js";
|
|
26
|
+
import"./chunks/fetch-m6xk774d.js";
|
|
27
|
+
import"./chunks/fetch-n1svm92q.js";
|
|
28
|
+
import"./chunks/fetch-hezj1jdf.js";
|
|
29
|
+
import"./chunks/fetch-b44t4qeg.js";
|
|
30
|
+
import"./chunks/fetch-t1n0m4wb.js";
|
|
31
|
+
import"./chunks/fetch-zhympcbw.js";
|
|
32
|
+
import"./chunks/fetch-t70dy8sr.js";
|
|
33
|
+
import"./chunks/fetch-mjepr257.js";
|
|
34
|
+
import"./chunks/fetch-hajt4q09.js";
|
|
35
|
+
import"./chunks/fetch-80mhd8t7.js";
|
|
36
|
+
import"./chunks/fetch-j3pdvhe2.js";
|
|
37
|
+
import"./chunks/fetch-eekrj6qv.js";
|
|
38
|
+
import"./chunks/fetch-dy0yben3.js";
|
|
39
|
+
import"./chunks/fetch-rwwc81rq.js";
|
|
40
|
+
import"./chunks/fetch-g9rgg5ys.js";
|
|
41
|
+
import"./chunks/fetch-rhnwnf76.js";
|
|
42
|
+
import"./chunks/fetch-r5bb0n1s.js";
|
|
43
|
+
import"./chunks/fetch-kzj5eept.js";
|
|
44
|
+
import"./chunks/fetch-gtkdacvk.js";
|
|
45
|
+
import"./chunks/fetch-t8yzmczr.js";
|
|
46
|
+
import"./chunks/fetch-6fr0a7bp.js";
|
|
47
47
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunks/
|
|
48
|
+
make2
|
|
49
|
+
} from "./chunks/fetch-053p7hbt.js";
|
|
50
50
|
import {
|
|
51
51
|
__export
|
|
52
|
-
} from "./chunks/
|
|
52
|
+
} from "./chunks/fetch-9rqn6x4v.js";
|
|
53
53
|
|
|
54
54
|
// src/workerd.ts
|
|
55
55
|
var exports_workerd = {};
|
|
@@ -71,7 +71,7 @@ import { Snapshot } from "@opencode/core/snapshot";
|
|
|
71
71
|
import { Vcs } from "@opencode/core/vcs";
|
|
72
72
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
73
73
|
function create(options) {
|
|
74
|
-
return
|
|
74
|
+
return make2(serverOptions(options), { overrides: replacements(options) });
|
|
75
75
|
}
|
|
76
76
|
function serverOptions(options) {
|
|
77
77
|
return {
|
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": "2.0.
|
|
4
|
+
"version": "2.0.26",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -30,17 +30,16 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
32
32
|
"@effect/platform-node-shared": "4.0.0-rc.112",
|
|
33
|
-
"@opencode/core": "2.0.
|
|
34
|
-
"@opencode/protocol": "2.0.
|
|
35
|
-
"@opencode/schema": "2.0.
|
|
36
|
-
"@opencode/simulation": "2.0.
|
|
37
|
-
"@opencode/util": "2.0.
|
|
38
|
-
"drizzle-orm": "1.0.0-rc.5-169397b",
|
|
33
|
+
"@opencode/core": "2.0.26",
|
|
34
|
+
"@opencode/protocol": "2.0.26",
|
|
35
|
+
"@opencode/schema": "2.0.26",
|
|
36
|
+
"@opencode/simulation": "2.0.26",
|
|
37
|
+
"@opencode/util": "2.0.26",
|
|
39
38
|
"effect": "4.0.0-rc.112"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@opencode/client": "2.0.
|
|
43
|
-
"@opencode/plugin": "2.0.
|
|
41
|
+
"@opencode/client": "2.0.26",
|
|
42
|
+
"@opencode/plugin": "2.0.26",
|
|
44
43
|
"@tsconfig/bun": "1.0.9",
|
|
45
44
|
"@types/bun": "1.4.0",
|
|
46
45
|
"@typescript/native-preview": "7.0.0-dev.20251207.1"
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
response2
|
|
3
|
-
} from "./event-feed-acgs9zzk.js";
|
|
4
|
-
import {
|
|
5
|
-
Api2
|
|
6
|
-
} from "./event-feed-ep84ha6r.js";
|
|
7
|
-
|
|
8
|
-
// src/handlers/fs.ts
|
|
9
|
-
import { FileSystem } from "@opencode/core/filesystem";
|
|
10
|
-
import { RelativePath } from "@opencode/core/schema";
|
|
11
|
-
import { FileNotFoundError } from "@opencode/protocol/errors";
|
|
12
|
-
import { Effect } from "effect";
|
|
13
|
-
import { HttpServerResponse } from "effect/unstable/http";
|
|
14
|
-
import { HttpApiBuilder } from "effect/unstable/httpapi";
|
|
15
|
-
var FileSystemHandler2 = HttpApiBuilder.group(Api2, "server.fs", (handlers) => Effect.gen(function* () {
|
|
16
|
-
return handlers.handleRaw("fs.read", (ctx) => Effect.gen(function* () {
|
|
17
|
-
const fs = yield* FileSystem.Service;
|
|
18
|
-
const file = yield* fs.read({
|
|
19
|
-
path: RelativePath.make(decodeURIComponent(new URL(ctx.request.url, "http://localhost").pathname.slice(13)))
|
|
20
|
-
}).pipe(Effect.mapError((error) => new FileNotFoundError({ path: error.path, message: `File not found: ${error.path}` })));
|
|
21
|
-
return HttpServerResponse.uint8Array(file.content, { contentType: file.mime });
|
|
22
|
-
})).handle("fs.list", (ctx) => response2(Effect.gen(function* () {
|
|
23
|
-
const fs = yield* FileSystem.Service;
|
|
24
|
-
return yield* fs.list(ctx.query);
|
|
25
|
-
}))).handle("fs.find", (ctx) => response2(Effect.gen(function* () {
|
|
26
|
-
const fs = yield* FileSystem.Service;
|
|
27
|
-
return yield* fs.find(ctx.query);
|
|
28
|
-
}))).handle("fs.write", (ctx) => response2(Effect.gen(function* () {
|
|
29
|
-
const fs = yield* FileSystem.Service;
|
|
30
|
-
return yield* fs.write({ path: ctx.query.path, data: ctx.payload });
|
|
31
|
-
})));
|
|
32
|
-
}));
|
|
33
|
-
|
|
34
|
-
export { FileSystemHandler2 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|