@opencode/server 0.0.0-dev-256 → 0.0.0-dev-271
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/{process-059rbh9c.js → fetch-059rbh9c.js} +1 -1
- package/dist/chunks/{process-a8jcac9a.js → fetch-05c5061t.js} +1 -1
- package/dist/chunks/{process-j87xz9bt.js → fetch-0e81et3m.js} +3 -3
- package/dist/chunks/{process-2h6qktqa.js → fetch-0ey2b45p.js} +2 -2
- package/dist/chunks/{process-yqhefp4s.js → fetch-0j6zxxn8.js} +2 -2
- package/dist/chunks/{process-s282vggx.js → fetch-0n4tjm17.js} +1 -1
- package/dist/chunks/{process-39nnfjx1.js → fetch-0q7s66m2.js} +4 -4
- package/dist/chunks/fetch-2wexxjwf.js +61 -0
- package/dist/chunks/{process-z3e7v67k.js → fetch-3te71694.js} +7 -7
- package/dist/chunks/{process-rha2aq18.js → fetch-4p2y0qs3.js} +2 -2
- package/dist/chunks/{process-50bbk3b2.js → fetch-50bbk3b2.js} +1 -1
- package/dist/chunks/{process-7b9xm1qg.js → fetch-7b9xm1qg.js} +1 -1
- package/dist/chunks/{process-zh6nt7d4.js → fetch-7brhgywr.js} +6 -6
- package/dist/chunks/{process-b105zy65.js → fetch-89egwzf3.js} +2 -2
- package/dist/chunks/{process-az0609r6.js → fetch-9grnt8dc.js} +2 -2
- package/dist/chunks/{process-5s0wnsg4.js → fetch-ap1t95t8.js} +3 -3
- package/dist/chunks/{process-b3bmdkga.js → fetch-b3bmdkga.js} +1 -1
- package/dist/chunks/{process-4q6e7fh8.js → fetch-b4mqtccx.js} +2 -2
- package/dist/chunks/{process-xaq6r89c.js → fetch-d9q09cmk.js} +13 -13
- package/dist/chunks/{process-kkdkqt8j.js → fetch-dx89xydc.js} +2 -2
- package/dist/chunks/{process-qfyg9gb7.js → fetch-e0ppd0jy.js} +10 -10
- package/dist/chunks/{process-d0edqfxx.js → fetch-et00mhwf.js} +2 -2
- package/dist/chunks/{process-qd0r787n.js → fetch-f8r9p2vr.js} +2 -2
- package/dist/chunks/{process-vsfeekyx.js → fetch-fmgbtszc.js} +4 -4
- package/dist/chunks/{process-03x11xk6.js → fetch-gsj0w1r0.js} +4 -4
- package/dist/chunks/{process-qcg3sqtb.js → fetch-h1thjy6x.js} +2 -2
- package/dist/chunks/{process-htyf2qs7.js → fetch-htyf2qs7.js} +1 -1
- package/dist/chunks/{process-cezwbsk5.js → fetch-hx8bsq9d.js} +1 -1
- package/dist/chunks/{process-4qshv3yw.js → fetch-hy3y599d.js} +5 -5
- package/dist/chunks/{process-j4at0y5c.js → fetch-j4at0y5c.js} +1 -1
- package/dist/chunks/{process-k3txyteh.js → fetch-jydxnq20.js} +4 -4
- package/dist/chunks/{process-btahnm2b.js → fetch-kg0ybx4v.js} +3 -3
- package/dist/chunks/{process-99ggccwj.js → fetch-mk4c0q2p.js} +35 -35
- package/dist/chunks/{process-mzs0n5xz.js → fetch-mzs0n5xz.js} +1 -1
- package/dist/chunks/{process-h29xjj1e.js → fetch-n1zdbfv7.js} +29 -4
- package/dist/chunks/{process-5s6gh8sx.js → fetch-nz17qv97.js} +2 -2
- package/dist/chunks/{process-20hxek78.js → fetch-pprz9xer.js} +4 -4
- package/dist/chunks/{process-ny1j968n.js → fetch-q44yktpv.js} +2 -2
- package/dist/chunks/{process-4fy84009.js → fetch-r6xkfcdx.js} +1 -1
- package/dist/chunks/{process-1v577ncx.js → fetch-s62wjkvx.js} +2 -2
- package/dist/chunks/{process-te8jwba1.js → fetch-s9tkswmw.js} +2 -2
- package/dist/chunks/{process-f559fakr.js → fetch-v8aqacn3.js} +2 -2
- package/dist/chunks/{process-2eaky32g.js → fetch-vbgqk0mr.js} +2 -2
- package/dist/chunks/{process-6z9pvq7p.js → fetch-x4b2rtcb.js} +1 -1
- package/dist/chunks/{process-9jza3m7j.js → fetch-z2ndp6vh.js} +6 -6
- package/dist/chunks/{process-zcvan105.js → fetch-zbe9jfhy.js} +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +7 -7
- package/dist/fetch.js +53 -53
- 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.d.ts +3 -1
- package/dist/handlers/credential.js +7 -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 +5 -0
- package/dist/handlers/integration.js +9 -7
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/mcp.js +8 -8
- package/dist/handlers/media.js +1 -1
- 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.js +10 -10
- 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/reference.js +6 -6
- package/dist/handlers/rpc.js +6 -6
- package/dist/handlers/schedule.d.ts +30 -0
- package/dist/handlers/schedule.js +2 -2
- 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/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 +47 -47
- package/dist/location.js +2 -2
- package/dist/media-uri.js +1 -1
- 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 +1 -1
- package/dist/process.js +55 -55
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +50 -50
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.d.ts +2 -2
- package/dist/workerd.js +54 -54
- package/package.json +8 -8
- package/dist/chunks/process-5b42hxrf.js +0 -47
- /package/dist/chunks/{process-9rqn6x4v.js → fetch-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{process-bd8755ek.js → fetch-bd8755ek.js} +0 -0
- /package/dist/chunks/{process-h6rt5k9s.js → fetch-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{process-n321d8vm.js → fetch-n321d8vm.js} +0 -0
- /package/dist/chunks/{process-q4bn6dy8.js → fetch-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{process-smaf4a18.js → fetch-smaf4a18.js} +0 -0
- /package/dist/chunks/{process-xthc02cw.js → fetch-xthc02cw.js} +0 -0
- /package/dist/chunks/{process-yc7nft6q.js → fetch-yc7nft6q.js} +0 -0
package/dist/workerd.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
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/
|
|
47
|
-
import"./chunks/
|
|
48
|
-
import"./chunks/
|
|
49
|
-
import"./chunks/
|
|
50
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/fetch-q4bn6dy8.js";
|
|
2
|
+
import"./chunks/fetch-smaf4a18.js";
|
|
3
|
+
import"./chunks/fetch-50bbk3b2.js";
|
|
4
|
+
import"./chunks/fetch-htyf2qs7.js";
|
|
5
|
+
import"./chunks/fetch-b3bmdkga.js";
|
|
6
|
+
import"./chunks/fetch-0e81et3m.js";
|
|
7
|
+
import"./chunks/fetch-j4at0y5c.js";
|
|
8
|
+
import"./chunks/fetch-0j6zxxn8.js";
|
|
9
|
+
import"./chunks/fetch-et00mhwf.js";
|
|
10
|
+
import"./chunks/fetch-xthc02cw.js";
|
|
11
|
+
import"./chunks/fetch-ap1t95t8.js";
|
|
12
|
+
import"./chunks/fetch-4p2y0qs3.js";
|
|
13
|
+
import"./chunks/fetch-9grnt8dc.js";
|
|
14
|
+
import"./chunks/fetch-jydxnq20.js";
|
|
15
|
+
import"./chunks/fetch-kg0ybx4v.js";
|
|
16
|
+
import"./chunks/fetch-0ey2b45p.js";
|
|
17
|
+
import"./chunks/fetch-v8aqacn3.js";
|
|
18
|
+
import"./chunks/fetch-b4mqtccx.js";
|
|
19
|
+
import"./chunks/fetch-q44yktpv.js";
|
|
20
|
+
import"./chunks/fetch-0n4tjm17.js";
|
|
21
|
+
import"./chunks/fetch-e0ppd0jy.js";
|
|
22
|
+
import"./chunks/fetch-gsj0w1r0.js";
|
|
23
|
+
import"./chunks/fetch-s62wjkvx.js";
|
|
24
|
+
import"./chunks/fetch-vbgqk0mr.js";
|
|
25
|
+
import"./chunks/fetch-3te71694.js";
|
|
26
|
+
import"./chunks/fetch-mzs0n5xz.js";
|
|
27
|
+
import"./chunks/fetch-z2ndp6vh.js";
|
|
28
|
+
import"./chunks/fetch-h1thjy6x.js";
|
|
29
|
+
import"./chunks/fetch-h6rt5k9s.js";
|
|
30
|
+
import"./chunks/fetch-fmgbtszc.js";
|
|
31
|
+
import"./chunks/fetch-n321d8vm.js";
|
|
32
|
+
import"./chunks/fetch-059rbh9c.js";
|
|
33
|
+
import"./chunks/fetch-hy3y599d.js";
|
|
34
|
+
import"./chunks/fetch-f8r9p2vr.js";
|
|
35
|
+
import"./chunks/fetch-s9tkswmw.js";
|
|
36
|
+
import"./chunks/fetch-zbe9jfhy.js";
|
|
37
|
+
import"./chunks/fetch-n1zdbfv7.js";
|
|
38
|
+
import"./chunks/fetch-dx89xydc.js";
|
|
39
|
+
import"./chunks/fetch-89egwzf3.js";
|
|
40
|
+
import"./chunks/fetch-pprz9xer.js";
|
|
41
|
+
import"./chunks/fetch-2wexxjwf.js";
|
|
42
|
+
import"./chunks/fetch-05c5061t.js";
|
|
43
|
+
import"./chunks/fetch-r6xkfcdx.js";
|
|
44
|
+
import"./chunks/fetch-nz17qv97.js";
|
|
45
|
+
import"./chunks/fetch-x4b2rtcb.js";
|
|
46
|
+
import"./chunks/fetch-hx8bsq9d.js";
|
|
47
|
+
import"./chunks/fetch-mk4c0q2p.js";
|
|
48
|
+
import"./chunks/fetch-7b9xm1qg.js";
|
|
49
|
+
import"./chunks/fetch-bd8755ek.js";
|
|
50
|
+
import"./chunks/fetch-d9q09cmk.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
} from "./chunks/
|
|
52
|
+
make2
|
|
53
|
+
} from "./chunks/fetch-7brhgywr.js";
|
|
54
54
|
import {
|
|
55
55
|
__export
|
|
56
|
-
} from "./chunks/
|
|
56
|
+
} from "./chunks/fetch-9rqn6x4v.js";
|
|
57
57
|
|
|
58
58
|
// src/workerd.ts
|
|
59
59
|
var exports_workerd = {};
|
|
@@ -75,7 +75,7 @@ import { Snapshot } from "@opencode/core/snapshot";
|
|
|
75
75
|
import { Vcs } from "@opencode/core/vcs";
|
|
76
76
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
77
77
|
function create(options) {
|
|
78
|
-
return
|
|
78
|
+
return make2(serverOptions(options), { overrides: replacements(options) });
|
|
79
79
|
}
|
|
80
80
|
function serverOptions(options) {
|
|
81
81
|
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-271",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@effect/platform-node": "4.0.6",
|
|
34
34
|
"@effect/platform-node-shared": "4.0.6",
|
|
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-271",
|
|
36
|
+
"@opencode/protocol": "0.0.0-dev-271",
|
|
37
|
+
"@opencode/schema": "0.0.0-dev-271",
|
|
38
|
+
"@opencode/simulation": "0.0.0-dev-271",
|
|
39
|
+
"@opencode/util": "0.0.0-dev-271",
|
|
40
40
|
"effect": "4.0.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@opencode/pty": "0.3.3",
|
|
44
|
-
"@opencode/client": "0.0.0-dev-
|
|
45
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
44
|
+
"@opencode/client": "0.0.0-dev-271",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-271",
|
|
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,47 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Api2
|
|
3
|
-
} from "./process-j87xz9bt.js";
|
|
4
|
-
|
|
5
|
-
// src/handlers/credential.ts
|
|
6
|
-
import { Credential } from "@opencode/core/credential";
|
|
7
|
-
import { ConflictError } from "@opencode/protocol/errors";
|
|
8
|
-
import { Effect } from "effect";
|
|
9
|
-
import { HttpApiBuilder, HttpApiSchema } from "effect/http-api";
|
|
10
|
-
var CredentialHandler2 = HttpApiBuilder.group(Api2, "server.credential", (handlers) => handlers.handle("credential.list", Effect.fn(function* () {
|
|
11
|
-
const credential = yield* Credential.Service;
|
|
12
|
-
return { data: entries(yield* credential.all()) };
|
|
13
|
-
})).handle("credential.create", Effect.fn(function* (ctx) {
|
|
14
|
-
const credential = yield* Credential.Service;
|
|
15
|
-
if (ctx.payload.id && (yield* credential.get(ctx.payload.id)))
|
|
16
|
-
return yield* new ConflictError({
|
|
17
|
-
resource: ctx.payload.id,
|
|
18
|
-
message: `Credential already exists: ${ctx.payload.id}`
|
|
19
|
-
});
|
|
20
|
-
const created = yield* credential.create(ctx.payload);
|
|
21
|
-
const entry = entries(yield* credential.list(created.integrationID)).find((item) => item.id === created.id);
|
|
22
|
-
return { data: entry ?? { ...created, active: false } };
|
|
23
|
-
})).handle("credential.update", Effect.fn(function* (ctx) {
|
|
24
|
-
const credential = yield* Credential.Service;
|
|
25
|
-
yield* credential.update(ctx.params.credentialID, { label: ctx.payload.label });
|
|
26
|
-
return HttpApiSchema.NoContent.make();
|
|
27
|
-
})).handle("credential.activate", Effect.fn(function* (ctx) {
|
|
28
|
-
const credential = yield* Credential.Service;
|
|
29
|
-
yield* credential.activate(ctx.params.credentialID);
|
|
30
|
-
return HttpApiSchema.NoContent.make();
|
|
31
|
-
})).handle("credential.remove", Effect.fn(function* (ctx) {
|
|
32
|
-
const credential = yield* Credential.Service;
|
|
33
|
-
yield* credential.remove(ctx.params.credentialID);
|
|
34
|
-
return HttpApiSchema.NoContent.make();
|
|
35
|
-
})));
|
|
36
|
-
function entries(credentials) {
|
|
37
|
-
const selected = new Map(credentials.map((item) => [item.integrationID, item.id]));
|
|
38
|
-
return credentials.map((item) => ({
|
|
39
|
-
id: item.id,
|
|
40
|
-
integrationID: item.integrationID,
|
|
41
|
-
label: item.label,
|
|
42
|
-
active: selected.get(item.integrationID) === item.id,
|
|
43
|
-
value: item.value
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { CredentialHandler2 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|