@opencode/server 0.0.0-dev-20113 → 0.0.0-dev-20115
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.d.ts +4 -0
- package/dist/auth.js +10 -2
- package/dist/chunks/{options-5bwq5cz2.js → fetch-1g0h49bb.js} +2 -2
- package/dist/chunks/{options-xewf68xm.js → fetch-1y0kev0a.js} +19 -15
- package/dist/chunks/{options-5rwqcaw2.js → fetch-27edjygf.js} +1 -1
- package/dist/chunks/{options-wz0qz28j.js → fetch-2nqgjchx.js} +2 -2
- package/dist/chunks/{options-18k6g42r.js → fetch-3jweah5a.js} +7 -7
- package/dist/chunks/{options-b1rdg9nf.js → fetch-42hredtt.js} +2 -2
- package/dist/chunks/{options-6qwktr1g.js → fetch-436zj0s2.js} +1 -1
- package/dist/chunks/{options-hp5sxeae.js → fetch-4zhj4tp6.js} +2 -2
- package/dist/chunks/{options-5jh9m3wx.js → fetch-5xpvxbxg.js} +5 -5
- package/dist/chunks/{options-g1cbdcxy.js → fetch-70rdrjmf.js} +4 -4
- package/dist/chunks/{options-v1emgcvb.js → fetch-77mkgw7d.js} +2 -2
- package/dist/chunks/{options-x5ncpjy3.js → fetch-830yc5sa.js} +1 -1
- package/dist/chunks/{options-6gkz39ey.js → fetch-8j6eh3dh.js} +3 -3
- package/dist/chunks/{options-haswyr8z.js → fetch-8tzsm9rr.js} +2 -2
- package/dist/chunks/{options-tjpn0s1b.js → fetch-99sfd1j8.js} +10 -10
- package/dist/chunks/{options-qj9kjxn3.js → fetch-9gjx5y7a.js} +1 -1
- package/dist/chunks/{options-s0padj6k.js → fetch-9qna85w8.js} +3 -3
- package/dist/chunks/fetch-anm12x33.js +66 -0
- package/dist/chunks/{options-v573ws0d.js → fetch-cb0457h1.js} +3 -3
- package/dist/chunks/{options-hr75rahr.js → fetch-fbrf1xh2.js} +2 -2
- package/dist/chunks/{options-m6wvgbfq.js → fetch-gtkdacvk.js} +28 -7
- package/dist/chunks/{options-ees77nh9.js → fetch-h7dczx71.js} +2 -2
- package/dist/chunks/{options-3kzx88w9.js → fetch-kb9735wh.js} +1 -1
- package/dist/chunks/{options-44xy5pnk.js → fetch-kbnh7vq7.js} +1 -1
- package/dist/chunks/{options-zpz5afwq.js → fetch-kpeb8xpg.js} +2 -2
- package/dist/chunks/{options-f1xg0r1h.js → fetch-kwec6m6e.js} +33 -33
- package/dist/chunks/{options-bt9tc5rb.js → fetch-m7cvtaax.js} +1 -1
- package/dist/chunks/{options-96s6m0w3.js → fetch-nq5wb210.js} +2 -2
- package/dist/chunks/{options-7eckj7zq.js → fetch-nq63h5nv.js} +2 -2
- package/dist/chunks/{options-rjqbhscq.js → fetch-qvxvnv5e.js} +1 -1
- package/dist/chunks/{options-pme11y2y.js → fetch-rnws4wbc.js} +2 -2
- package/dist/chunks/{options-t88f2hhf.js → fetch-rre9g8c5.js} +3 -3
- package/dist/chunks/fetch-sstsrjtg.js +35 -0
- package/dist/chunks/fetch-sxpmt7wt.js +53 -0
- package/dist/chunks/{options-bkk2wfbz.js → fetch-t7k3q1ah.js} +5 -5
- package/dist/chunks/{options-140y8w7p.js → fetch-tj793hqk.js} +2 -2
- package/dist/chunks/{options-f8rap8f6.js → fetch-vgwss5ek.js} +1 -1
- package/dist/chunks/{options-aa9bsk9n.js → fetch-vmxdyx1n.js} +6 -6
- package/dist/chunks/{options-ctscy0f5.js → fetch-x34qkqqy.js} +2 -2
- package/dist/chunks/{options-vpz7f20y.js → fetch-xsrtpxyd.js} +4 -4
- package/dist/chunks/{options-bmqkn4ah.js → fetch-y7jha6td.js} +1 -1
- package/dist/chunks/{options-np19kmxx.js → fetch-ybejac25.js} +2 -2
- package/dist/chunks/{options-26ta7ngt.js → fetch-ywj7qjmv.js} +2 -2
- package/dist/chunks/{options-367ngss7.js → fetch-yybhtx8s.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +7 -7
- package/dist/fetch.js +49 -48
- 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.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.js +9 -9
- package/dist/handlers/reference.js +6 -6
- package/dist/handlers/rpc.js +6 -6
- package/dist/handlers/server.d.ts +3 -1
- package/dist/handlers/server.js +9 -7
- 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.d.ts +1 -1
- package/dist/handlers.js +43 -41
- package/dist/location.js +4 -4
- package/dist/middleware/authorization.d.ts +2 -1
- package/dist/middleware/authorization.js +5 -3
- 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.d.ts +13 -0
- package/dist/pairing.js +10 -0
- package/dist/process.js +56 -59
- package/dist/pty-environment.js +3 -3
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +3 -2
- package/dist/routes.js +46 -45
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +50 -49
- package/package.json +8 -8
- package/dist/chunks/options-veszktdp.js +0 -21
- package/dist/chunks/options-zyv89x5n.js +0 -30
- /package/dist/chunks/{options-9rqn6x4v.js → fetch-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{options-hezj1jdf.js → fetch-hezj1jdf.js} +0 -0
- /package/dist/chunks/{options-q4bn6dy8.js → fetch-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{options-smaf4a18.js → fetch-smaf4a18.js} +0 -0
- /package/dist/chunks/{options-t8yzmczr.js → fetch-t8yzmczr.js} +0 -0
- /package/dist/chunks/{options-yc7nft6q.js → fetch-yc7nft6q.js} +0 -0
package/dist/workerd.js
CHANGED
|
@@ -1,54 +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/
|
|
1
|
+
import"./chunks/fetch-q4bn6dy8.js";
|
|
2
|
+
import"./chunks/fetch-smaf4a18.js";
|
|
3
|
+
import"./chunks/fetch-8j6eh3dh.js";
|
|
4
|
+
import"./chunks/fetch-27edjygf.js";
|
|
5
|
+
import"./chunks/fetch-kb9735wh.js";
|
|
6
|
+
import"./chunks/fetch-cb0457h1.js";
|
|
7
|
+
import"./chunks/fetch-anm12x33.js";
|
|
8
|
+
import"./chunks/fetch-qvxvnv5e.js";
|
|
9
|
+
import"./chunks/fetch-ywj7qjmv.js";
|
|
10
|
+
import"./chunks/fetch-42hredtt.js";
|
|
11
|
+
import"./chunks/fetch-8tzsm9rr.js";
|
|
12
|
+
import"./chunks/fetch-yybhtx8s.js";
|
|
13
|
+
import"./chunks/fetch-rre9g8c5.js";
|
|
14
|
+
import"./chunks/fetch-nq5wb210.js";
|
|
15
|
+
import"./chunks/fetch-h7dczx71.js";
|
|
16
|
+
import"./chunks/fetch-rnws4wbc.js";
|
|
17
|
+
import"./chunks/fetch-4zhj4tp6.js";
|
|
18
|
+
import"./chunks/fetch-vgwss5ek.js";
|
|
19
|
+
import"./chunks/fetch-99sfd1j8.js";
|
|
20
|
+
import"./chunks/fetch-70rdrjmf.js";
|
|
21
|
+
import"./chunks/fetch-x34qkqqy.js";
|
|
22
|
+
import"./chunks/fetch-fbrf1xh2.js";
|
|
23
|
+
import"./chunks/fetch-3jweah5a.js";
|
|
24
|
+
import"./chunks/fetch-sstsrjtg.js";
|
|
25
|
+
import"./chunks/fetch-sxpmt7wt.js";
|
|
26
|
+
import"./chunks/fetch-tj793hqk.js";
|
|
27
|
+
import"./chunks/fetch-t7k3q1ah.js";
|
|
28
|
+
import"./chunks/fetch-hezj1jdf.js";
|
|
29
|
+
import"./chunks/fetch-5xpvxbxg.js";
|
|
30
|
+
import"./chunks/fetch-9qna85w8.js";
|
|
31
|
+
import"./chunks/fetch-nq63h5nv.js";
|
|
32
|
+
import"./chunks/fetch-1g0h49bb.js";
|
|
33
|
+
import"./chunks/fetch-830yc5sa.js";
|
|
34
|
+
import"./chunks/fetch-ybejac25.js";
|
|
35
|
+
import"./chunks/fetch-77mkgw7d.js";
|
|
36
|
+
import"./chunks/fetch-2nqgjchx.js";
|
|
37
|
+
import"./chunks/fetch-kbnh7vq7.js";
|
|
38
|
+
import"./chunks/fetch-9gjx5y7a.js";
|
|
39
|
+
import"./chunks/fetch-m7cvtaax.js";
|
|
40
|
+
import"./chunks/fetch-kpeb8xpg.js";
|
|
41
|
+
import"./chunks/fetch-y7jha6td.js";
|
|
42
|
+
import"./chunks/fetch-436zj0s2.js";
|
|
43
|
+
import"./chunks/fetch-kwec6m6e.js";
|
|
44
|
+
import"./chunks/fetch-gtkdacvk.js";
|
|
45
|
+
import"./chunks/fetch-t8yzmczr.js";
|
|
46
|
+
import"./chunks/fetch-1y0kev0a.js";
|
|
46
47
|
import {
|
|
47
|
-
|
|
48
|
-
} from "./chunks/
|
|
48
|
+
make3
|
|
49
|
+
} from "./chunks/fetch-vmxdyx1n.js";
|
|
49
50
|
import {
|
|
50
51
|
__export
|
|
51
|
-
} from "./chunks/
|
|
52
|
+
} from "./chunks/fetch-9rqn6x4v.js";
|
|
52
53
|
|
|
53
54
|
// src/workerd.ts
|
|
54
55
|
var exports_workerd = {};
|
|
@@ -70,7 +71,7 @@ import { Snapshot } from "@opencode/core/snapshot";
|
|
|
70
71
|
import { Vcs } from "@opencode/core/vcs";
|
|
71
72
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
72
73
|
function create(options) {
|
|
73
|
-
return
|
|
74
|
+
return make3(serverOptions(options), { overrides: replacements(options) });
|
|
74
75
|
}
|
|
75
76
|
function serverOptions(options) {
|
|
76
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": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-20115",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -30,17 +30,17 @@
|
|
|
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": "0.0.0-dev-
|
|
34
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
35
|
-
"@opencode/schema": "0.0.0-dev-
|
|
36
|
-
"@opencode/simulation": "0.0.0-dev-
|
|
37
|
-
"@opencode/util": "0.0.0-dev-
|
|
33
|
+
"@opencode/core": "0.0.0-dev-20115",
|
|
34
|
+
"@opencode/protocol": "0.0.0-dev-20115",
|
|
35
|
+
"@opencode/schema": "0.0.0-dev-20115",
|
|
36
|
+
"@opencode/simulation": "0.0.0-dev-20115",
|
|
37
|
+
"@opencode/util": "0.0.0-dev-20115",
|
|
38
38
|
"drizzle-orm": "1.0.0-rc.5-169397b",
|
|
39
39
|
"effect": "4.0.0-rc.112"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@opencode/client": "0.0.0-dev-
|
|
43
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
42
|
+
"@opencode/client": "0.0.0-dev-20115",
|
|
43
|
+
"@opencode/plugin": "0.0.0-dev-20115",
|
|
44
44
|
"@tsconfig/bun": "1.0.9",
|
|
45
45
|
"@types/bun": "1.4.0",
|
|
46
46
|
"@typescript/native-preview": "7.0.0-dev.20251207.1"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Api2
|
|
3
|
-
} from "./options-v573ws0d.js";
|
|
4
|
-
import {
|
|
5
|
-
Service4
|
|
6
|
-
} from "./options-18k6g42r.js";
|
|
7
|
-
|
|
8
|
-
// src/handlers/server.ts
|
|
9
|
-
import { Effect } from "effect";
|
|
10
|
-
import { HttpApiBuilder } from "effect/unstable/httpapi";
|
|
11
|
-
var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => handlers.handle("server.info", () => Effect.gen(function* () {
|
|
12
|
-
const info = yield* Service4;
|
|
13
|
-
return {
|
|
14
|
-
version: info.app.version ?? "unknown",
|
|
15
|
-
pid: process.pid ?? 0,
|
|
16
|
-
urls: info.urls(),
|
|
17
|
-
paths: info.paths
|
|
18
|
-
};
|
|
19
|
-
})));
|
|
20
|
-
|
|
21
|
-
export { ServerHandler2 };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__export
|
|
3
|
-
} from "./options-9rqn6x4v.js";
|
|
4
|
-
|
|
5
|
-
// src/auth.ts
|
|
6
|
-
var exports_auth = {};
|
|
7
|
-
__export(exports_auth, {
|
|
8
|
-
Config: () => Config2,
|
|
9
|
-
ServerAuth: () => exports_auth,
|
|
10
|
-
authorized: () => authorized2,
|
|
11
|
-
required: () => required2
|
|
12
|
-
});
|
|
13
|
-
import { Context, Layer, Option, Redacted } from "effect";
|
|
14
|
-
|
|
15
|
-
class Config2 extends Context.Service()("@opencode/ServerAuthConfig") {
|
|
16
|
-
static configLayer(input) {
|
|
17
|
-
return Layer.succeed(this, this.of({ ...input, username: "opencode" }));
|
|
18
|
-
}
|
|
19
|
-
static get layer() {
|
|
20
|
-
return this.configLayer({ password: Option.none() });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function required2(config) {
|
|
24
|
-
return Option.isSome(config.password) && config.password.value !== "";
|
|
25
|
-
}
|
|
26
|
-
function authorized2(credentials, config) {
|
|
27
|
-
return Option.isSome(config.password) && credentials.username === config.username && Redacted.value(credentials.password) === config.password.value;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { Config2, required2, authorized2, exports_auth };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|