@opencode/server 2.0.24 → 2.0.25
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-wv5twc2g.js → location-0d9kah4z.js} +8 -8
- package/dist/chunks/{event-feed-swb5yrqf.js → location-0vyswjsz.js} +2 -2
- package/dist/chunks/{event-feed-bptmkrac.js → location-16qfdx6b.js} +2 -2
- package/dist/chunks/{event-feed-j54drd5e.js → location-1nwce8pe.js} +1 -1
- package/dist/chunks/{event-feed-q4y3mw2d.js → location-1xva44q8.js} +2 -2
- package/dist/chunks/{event-feed-d0efjmp3.js → location-2sy3c7de.js} +7 -7
- package/dist/chunks/{event-feed-0b1t2b2s.js → location-4rww2e47.js} +2 -2
- package/dist/chunks/{event-feed-da5stqtt.js → location-4znne276.js} +1 -1
- package/dist/chunks/{event-feed-nxdx74sv.js → location-796j10e5.js} +1 -1
- package/dist/chunks/{event-feed-mpbfcr4e.js → location-7gfv664k.js} +2 -2
- package/dist/chunks/{event-feed-jskw5q1g.js → location-7rxakzjh.js} +1 -1
- package/dist/chunks/{event-feed-6sgwm4gr.js → location-934cmkaf.js} +16 -2
- package/dist/chunks/location-93wjydnn.js +41 -0
- package/dist/chunks/{event-feed-ep84ha6r.js → location-9cw9axw5.js} +3 -3
- package/dist/chunks/{event-feed-mz8smzxk.js → location-9gvk307e.js} +8 -8
- package/dist/chunks/{event-feed-n7kafg5g.js → location-ajzgetf8.js} +2 -2
- package/dist/chunks/{event-feed-anm12x33.js → location-anm12x33.js} +1 -1
- package/dist/chunks/{event-feed-0nvjg055.js → location-ap5bajez.js} +33 -33
- package/dist/chunks/{event-feed-ppd3f187.js → location-c7mfxxxb.js} +4 -4
- package/dist/chunks/{event-feed-3c937re8.js → location-ca257yb3.js} +2 -2
- package/dist/chunks/{event-feed-hqjvw1vc.js → location-ceje7ncg.js} +20 -20
- package/dist/chunks/location-cqdj4ap7.js +106 -0
- package/dist/chunks/{event-feed-m9wzfeff.js → location-dqsr2g0t.js} +2 -2
- package/dist/chunks/{event-feed-acgs9zzk.js → location-f2c3fmpg.js} +3 -3
- package/dist/chunks/{event-feed-f90y8hv1.js → location-f7sjppyz.js} +62 -51
- package/dist/chunks/{event-feed-nvmdgpqv.js → location-g85r3kcp.js} +2 -2
- package/dist/chunks/{event-feed-30gqa6y8.js → location-gny2k2ap.js} +3 -3
- package/dist/chunks/{event-feed-gtkdacvk.js → location-gtkdacvk.js} +1 -1
- package/dist/chunks/{event-feed-ccfecbt4.js → location-hvft24jv.js} +1 -1
- package/dist/chunks/{event-feed-387sf4vs.js → location-jzqzrtw5.js} +1 -1
- package/dist/chunks/{event-feed-srcrrwjk.js → location-krn4521r.js} +2 -2
- package/dist/chunks/{event-feed-pvrbm2ca.js → location-m9xs9t19.js} +3 -3
- package/dist/chunks/{event-feed-w8db1rkr.js → location-n52yc5x0.js} +2 -2
- package/dist/chunks/{event-feed-x6486bry.js → location-sstsrjtg.js} +8 -8
- package/dist/chunks/{event-feed-fsrvj92d.js → location-td9k2nw3.js} +2 -2
- package/dist/chunks/{event-feed-2vy10eeh.js → location-v9pcqbqn.js} +2 -2
- package/dist/chunks/{event-feed-5fmydwgy.js → location-vb9atgxj.js} +1 -1
- package/dist/chunks/{event-feed-d00srfh1.js → location-w070c2h2.js} +1 -1
- package/dist/chunks/{event-feed-62qjgyra.js → location-weqhmjbd.js} +2 -2
- package/dist/chunks/{event-feed-k4rfktze.js → location-x2by5wsf.js} +7 -8
- package/dist/chunks/{event-feed-xsrtpxyd.js → location-xsrtpxyd.js} +1 -1
- package/dist/chunks/{event-feed-zhqf1t9m.js → location-y1grnrmm.js} +1 -1
- package/dist/chunks/{event-feed-pg3sqc69.js → location-ym27c8rr.js} +3 -3
- package/dist/chunks/{event-feed-qcy0p5fz.js → location-yybdkkb6.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +47 -47
- 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 +4 -4
- 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 +5 -5
- package/dist/process.d.ts +1 -1
- package/dist/process.js +52 -51
- package/dist/pty-environment.js +7 -7
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +46 -46
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +1 -1
- package/dist/workerd.js +48 -48
- package/package.json +8 -9
- package/dist/chunks/event-feed-jhsx8jtg.js +0 -34
- package/dist/chunks/event-feed-s4aja1df.js +0 -36
- /package/dist/chunks/{event-feed-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{event-feed-hezj1jdf.js → location-hezj1jdf.js} +0 -0
- /package/dist/chunks/{event-feed-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{event-feed-smaf4a18.js → location-smaf4a18.js} +0 -0
- /package/dist/chunks/{event-feed-t8yzmczr.js → location-t8yzmczr.js} +0 -0
- /package/dist/chunks/{event-feed-yc7nft6q.js → location-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/location-q4bn6dy8.js";
|
|
2
|
+
import"./chunks/location-smaf4a18.js";
|
|
3
|
+
import"./chunks/location-f2c3fmpg.js";
|
|
4
|
+
import"./chunks/location-w070c2h2.js";
|
|
5
|
+
import"./chunks/location-796j10e5.js";
|
|
6
|
+
import"./chunks/location-9cw9axw5.js";
|
|
7
|
+
import"./chunks/location-anm12x33.js";
|
|
8
|
+
import"./chunks/location-7gfv664k.js";
|
|
9
|
+
import"./chunks/location-4rww2e47.js";
|
|
10
|
+
import"./chunks/location-td9k2nw3.js";
|
|
11
|
+
import"./chunks/location-0vyswjsz.js";
|
|
12
|
+
import"./chunks/location-gny2k2ap.js";
|
|
13
|
+
import"./chunks/location-ym27c8rr.js";
|
|
14
|
+
import"./chunks/location-cqdj4ap7.js";
|
|
15
|
+
import"./chunks/location-v9pcqbqn.js";
|
|
16
|
+
import"./chunks/location-1xva44q8.js";
|
|
17
|
+
import"./chunks/location-dqsr2g0t.js";
|
|
18
|
+
import"./chunks/location-y1grnrmm.js";
|
|
19
|
+
import"./chunks/location-2sy3c7de.js";
|
|
20
|
+
import"./chunks/location-c7mfxxxb.js";
|
|
21
|
+
import"./chunks/location-yybdkkb6.js";
|
|
22
|
+
import"./chunks/location-weqhmjbd.js";
|
|
23
|
+
import"./chunks/location-93wjydnn.js";
|
|
24
|
+
import"./chunks/location-sstsrjtg.js";
|
|
25
|
+
import"./chunks/location-9gvk307e.js";
|
|
26
|
+
import"./chunks/location-n52yc5x0.js";
|
|
27
|
+
import"./chunks/location-0d9kah4z.js";
|
|
28
|
+
import"./chunks/location-hezj1jdf.js";
|
|
29
|
+
import"./chunks/location-f7sjppyz.js";
|
|
30
|
+
import"./chunks/location-x2by5wsf.js";
|
|
31
|
+
import"./chunks/location-krn4521r.js";
|
|
32
|
+
import"./chunks/location-ajzgetf8.js";
|
|
33
|
+
import"./chunks/location-4znne276.js";
|
|
34
|
+
import"./chunks/location-934cmkaf.js";
|
|
35
|
+
import"./chunks/location-16qfdx6b.js";
|
|
36
|
+
import"./chunks/location-ca257yb3.js";
|
|
37
|
+
import"./chunks/location-1nwce8pe.js";
|
|
38
|
+
import"./chunks/location-vb9atgxj.js";
|
|
39
|
+
import"./chunks/location-hvft24jv.js";
|
|
40
|
+
import"./chunks/location-g85r3kcp.js";
|
|
41
|
+
import"./chunks/location-jzqzrtw5.js";
|
|
42
|
+
import"./chunks/location-7rxakzjh.js";
|
|
43
|
+
import"./chunks/location-ap5bajez.js";
|
|
44
|
+
import"./chunks/location-gtkdacvk.js";
|
|
45
|
+
import"./chunks/location-t8yzmczr.js";
|
|
46
|
+
import"./chunks/location-ceje7ncg.js";
|
|
47
47
|
import {
|
|
48
48
|
make3
|
|
49
|
-
} from "./chunks/
|
|
49
|
+
} from "./chunks/location-m9xs9t19.js";
|
|
50
50
|
import {
|
|
51
51
|
__export
|
|
52
|
-
} from "./chunks/
|
|
52
|
+
} from "./chunks/location-9rqn6x4v.js";
|
|
53
53
|
|
|
54
54
|
// src/workerd.ts
|
|
55
55
|
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": "2.0.
|
|
4
|
+
"version": "2.0.25",
|
|
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.25",
|
|
34
|
+
"@opencode/protocol": "2.0.25",
|
|
35
|
+
"@opencode/schema": "2.0.25",
|
|
36
|
+
"@opencode/simulation": "2.0.25",
|
|
37
|
+
"@opencode/util": "2.0.25",
|
|
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.25",
|
|
42
|
+
"@opencode/plugin": "2.0.25",
|
|
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 };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__export
|
|
3
|
-
} from "./event-feed-9rqn6x4v.js";
|
|
4
|
-
|
|
5
|
-
// src/server-info.ts
|
|
6
|
-
var exports_server_info = {};
|
|
7
|
-
__export(exports_server_info, {
|
|
8
|
-
ServerInfo: () => exports_server_info,
|
|
9
|
-
Service: () => Service2,
|
|
10
|
-
connectionURLs: () => connectionURLs2,
|
|
11
|
-
layer: () => layer2
|
|
12
|
-
});
|
|
13
|
-
import { Context, Layer } from "effect";
|
|
14
|
-
import { networkInterfaces } from "node:os";
|
|
15
|
-
|
|
16
|
-
class Service2 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
|
-
}
|
|
18
|
-
function layer2(urls, tmp, app = {}) {
|
|
19
|
-
return Layer.succeed(Service2, Service2.of({ urls, app, paths: { tmp } }));
|
|
20
|
-
}
|
|
21
|
-
function connectionURLs2(value, requestedHostname) {
|
|
22
|
-
const url = new URL(value);
|
|
23
|
-
const hostname = requestedHostname ?? url.hostname;
|
|
24
|
-
const family = hostname === "0.0.0.0" ? "IPv4" : hostname === "::" || hostname === "[::]" ? "IPv6" : undefined;
|
|
25
|
-
if (family === undefined)
|
|
26
|
-
return [value];
|
|
27
|
-
return [
|
|
28
|
-
...new Set(Object.values(networkInterfaces()).flatMap((entries) => entries ?? []).filter((entry) => !entry.internal && entry.family === family).map((entry) => {
|
|
29
|
-
const result = new URL(value);
|
|
30
|
-
result.hostname = family === "IPv6" ? `[${entry.address}]` : entry.address;
|
|
31
|
-
return result.toString().replace(/\/$/, "");
|
|
32
|
-
}))
|
|
33
|
-
];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { Service2, layer2, connectionURLs2, exports_server_info };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|