@opencode/server 0.0.0-dev-256 → 0.0.0-dev-261
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-rha2aq18.js → fetch-0a5jm2na.js} +2 -2
- package/dist/chunks/{process-6z9pvq7p.js → fetch-1je14sn4.js} +1 -1
- package/dist/chunks/{process-qd0r787n.js → fetch-22wspztn.js} +2 -2
- package/dist/chunks/{process-s282vggx.js → fetch-2xcc0x05.js} +1 -1
- package/dist/chunks/{process-ny1j968n.js → fetch-6vs5sqy6.js} +2 -2
- package/dist/chunks/{process-7b9xm1qg.js → fetch-7b9xm1qg.js} +1 -1
- package/dist/chunks/{process-99ggccwj.js → fetch-95h1mmtp.js} +35 -35
- package/dist/chunks/{process-j87xz9bt.js → fetch-9c4eyh8m.js} +3 -3
- package/dist/chunks/{process-cezwbsk5.js → fetch-b2k9041j.js} +1 -1
- package/dist/chunks/fetch-b5vdqx3g.js +61 -0
- package/dist/chunks/{process-yqhefp4s.js → fetch-c6sjpm0r.js} +2 -2
- package/dist/chunks/{process-vsfeekyx.js → fetch-ckkpcd9y.js} +4 -4
- package/dist/chunks/{process-a8jcac9a.js → fetch-dk68ymtv.js} +1 -1
- package/dist/chunks/{process-kkdkqt8j.js → fetch-e46y0tfd.js} +2 -2
- package/dist/chunks/{process-39nnfjx1.js → fetch-e6e4kz0w.js} +4 -4
- package/dist/chunks/{process-03x11xk6.js → fetch-e9906t2e.js} +4 -4
- package/dist/chunks/{process-htyf2qs7.js → fetch-gk0yxcp6.js} +1 -1
- package/dist/chunks/{process-50bbk3b2.js → fetch-gqq6kfhc.js} +3 -3
- package/dist/chunks/{process-4qshv3yw.js → fetch-gsyfxrkq.js} +5 -5
- package/dist/chunks/{process-zcvan105.js → fetch-h072q2hm.js} +1 -1
- package/dist/chunks/{process-4fy84009.js → fetch-h9rcwvg0.js} +1 -1
- package/dist/chunks/{process-az0609r6.js → fetch-hax1v4bv.js} +2 -2
- package/dist/chunks/{process-1v577ncx.js → fetch-hnheq3hv.js} +2 -2
- package/dist/chunks/{process-j4at0y5c.js → fetch-j4at0y5c.js} +1 -1
- package/dist/chunks/{process-b105zy65.js → fetch-j9gxd9me.js} +2 -2
- package/dist/chunks/{process-k3txyteh.js → fetch-kffvskmv.js} +4 -4
- package/dist/chunks/{process-f559fakr.js → fetch-m5rae7m4.js} +2 -2
- package/dist/chunks/{process-btahnm2b.js → fetch-ppma8fcc.js} +3 -3
- package/dist/chunks/{process-xaq6r89c.js → fetch-qb54r15e.js} +13 -13
- package/dist/chunks/{process-2eaky32g.js → fetch-qn8kkfq6.js} +2 -2
- package/dist/chunks/{process-2h6qktqa.js → fetch-r6vmgwff.js} +2 -2
- package/dist/chunks/{process-20hxek78.js → fetch-rztv1fyf.js} +4 -4
- package/dist/chunks/{process-zh6nt7d4.js → fetch-w1r7dqbt.js} +6 -6
- package/dist/chunks/{process-9jza3m7j.js → fetch-w587cpb2.js} +6 -6
- package/dist/chunks/{process-mzs0n5xz.js → fetch-w9jcwh65.js} +7 -7
- package/dist/chunks/{process-qfyg9gb7.js → fetch-wecgp61r.js} +7 -7
- package/dist/chunks/{process-d0edqfxx.js → fetch-wxj3d9av.js} +2 -2
- package/dist/chunks/{process-qcg3sqtb.js → fetch-x8dgc261.js} +2 -2
- package/dist/chunks/{process-5s6gh8sx.js → fetch-xe9t9xr4.js} +2 -2
- package/dist/chunks/{process-b3bmdkga.js → fetch-yet0vexm.js} +1 -1
- package/dist/chunks/{process-te8jwba1.js → fetch-yr4wsvrw.js} +2 -2
- package/dist/chunks/{process-z3e7v67k.js → fetch-z3e7v67k.js} +1 -1
- package/dist/chunks/{process-4q6e7fh8.js → fetch-z59gyc0x.js} +2 -2
- package/dist/chunks/{process-5s0wnsg4.js → fetch-zgt2tacv.js} +3 -3
- package/dist/chunks/{process-h29xjj1e.js → fetch-zrprg5z5.js} +29 -4
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- 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.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 +4 -4
- 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 +3 -3
- package/dist/process.js +55 -55
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +50 -50
- package/dist/server-info.js +1 -1
- package/dist/service-status.js +3 -3
- 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-gqq6kfhc.js";
|
|
4
|
+
import"./chunks/fetch-gk0yxcp6.js";
|
|
5
|
+
import"./chunks/fetch-yet0vexm.js";
|
|
6
|
+
import"./chunks/fetch-9c4eyh8m.js";
|
|
7
|
+
import"./chunks/fetch-j4at0y5c.js";
|
|
8
|
+
import"./chunks/fetch-c6sjpm0r.js";
|
|
9
|
+
import"./chunks/fetch-wxj3d9av.js";
|
|
10
|
+
import"./chunks/fetch-xthc02cw.js";
|
|
11
|
+
import"./chunks/fetch-zgt2tacv.js";
|
|
12
|
+
import"./chunks/fetch-0a5jm2na.js";
|
|
13
|
+
import"./chunks/fetch-hax1v4bv.js";
|
|
14
|
+
import"./chunks/fetch-kffvskmv.js";
|
|
15
|
+
import"./chunks/fetch-ppma8fcc.js";
|
|
16
|
+
import"./chunks/fetch-r6vmgwff.js";
|
|
17
|
+
import"./chunks/fetch-m5rae7m4.js";
|
|
18
|
+
import"./chunks/fetch-z59gyc0x.js";
|
|
19
|
+
import"./chunks/fetch-6vs5sqy6.js";
|
|
20
|
+
import"./chunks/fetch-2xcc0x05.js";
|
|
21
|
+
import"./chunks/fetch-wecgp61r.js";
|
|
22
|
+
import"./chunks/fetch-e9906t2e.js";
|
|
23
|
+
import"./chunks/fetch-hnheq3hv.js";
|
|
24
|
+
import"./chunks/fetch-qn8kkfq6.js";
|
|
25
|
+
import"./chunks/fetch-z3e7v67k.js";
|
|
26
|
+
import"./chunks/fetch-w9jcwh65.js";
|
|
27
|
+
import"./chunks/fetch-w587cpb2.js";
|
|
28
|
+
import"./chunks/fetch-x8dgc261.js";
|
|
29
|
+
import"./chunks/fetch-h6rt5k9s.js";
|
|
30
|
+
import"./chunks/fetch-ckkpcd9y.js";
|
|
31
|
+
import"./chunks/fetch-n321d8vm.js";
|
|
32
|
+
import"./chunks/fetch-059rbh9c.js";
|
|
33
|
+
import"./chunks/fetch-gsyfxrkq.js";
|
|
34
|
+
import"./chunks/fetch-22wspztn.js";
|
|
35
|
+
import"./chunks/fetch-yr4wsvrw.js";
|
|
36
|
+
import"./chunks/fetch-h072q2hm.js";
|
|
37
|
+
import"./chunks/fetch-zrprg5z5.js";
|
|
38
|
+
import"./chunks/fetch-e46y0tfd.js";
|
|
39
|
+
import"./chunks/fetch-j9gxd9me.js";
|
|
40
|
+
import"./chunks/fetch-rztv1fyf.js";
|
|
41
|
+
import"./chunks/fetch-b5vdqx3g.js";
|
|
42
|
+
import"./chunks/fetch-dk68ymtv.js";
|
|
43
|
+
import"./chunks/fetch-h9rcwvg0.js";
|
|
44
|
+
import"./chunks/fetch-xe9t9xr4.js";
|
|
45
|
+
import"./chunks/fetch-1je14sn4.js";
|
|
46
|
+
import"./chunks/fetch-b2k9041j.js";
|
|
47
|
+
import"./chunks/fetch-95h1mmtp.js";
|
|
48
|
+
import"./chunks/fetch-7b9xm1qg.js";
|
|
49
|
+
import"./chunks/fetch-bd8755ek.js";
|
|
50
|
+
import"./chunks/fetch-qb54r15e.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
} from "./chunks/
|
|
52
|
+
make2
|
|
53
|
+
} from "./chunks/fetch-w1r7dqbt.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-261",
|
|
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-261",
|
|
36
|
+
"@opencode/protocol": "0.0.0-dev-261",
|
|
37
|
+
"@opencode/schema": "0.0.0-dev-261",
|
|
38
|
+
"@opencode/simulation": "0.0.0-dev-261",
|
|
39
|
+
"@opencode/util": "0.0.0-dev-261",
|
|
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-261",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-261",
|
|
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
|