@opencode/server 0.0.0-dev-368 → 0.0.0-dev-372
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.d.ts +175 -1
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{cors-059rbh9c.js → auth-059rbh9c.js} +1 -1
- package/dist/chunks/{cors-dk68ymtv.js → auth-05c5061t.js} +1 -1
- package/dist/chunks/{cors-9c4eyh8m.js → auth-0e81et3m.js} +3 -3
- package/dist/chunks/{cors-r6vmgwff.js → auth-0ey2b45p.js} +2 -2
- package/dist/chunks/auth-0fv515j7.js +144 -0
- package/dist/chunks/{cors-c6sjpm0r.js → auth-0j6zxxn8.js} +2 -2
- package/dist/chunks/{cors-2xcc0x05.js → auth-0n4tjm17.js} +1 -1
- package/dist/chunks/{cors-prdak4hd.js → auth-15tv3cxt.js} +2 -2
- package/dist/chunks/{cors-b5vdqx3g.js → auth-2wexxjwf.js} +2 -2
- package/dist/chunks/{cors-e6e4kz0w.js → auth-39nnfjx1.js} +4 -4
- package/dist/chunks/{cors-0a5jm2na.js → auth-4p2y0qs3.js} +2 -2
- package/dist/chunks/{cors-gqq6kfhc.js → auth-50bbk3b2.js} +3 -3
- package/dist/chunks/{cors-7b9xm1qg.js → auth-7b9xm1qg.js} +1 -1
- package/dist/chunks/{cors-j9gxd9me.js → auth-89egwzf3.js} +2 -2
- package/dist/chunks/{cors-zgt2tacv.js → auth-8wnrbp5z.js} +3 -3
- package/dist/chunks/{cors-hax1v4bv.js → auth-9grnt8dc.js} +2 -2
- package/dist/chunks/{cors-yet0vexm.js → auth-b3bmdkga.js} +1 -1
- package/dist/chunks/{cors-z59gyc0x.js → auth-b4mqtccx.js} +2 -2
- package/dist/chunks/{cors-e46y0tfd.js → auth-dx89xydc.js} +2 -2
- package/dist/chunks/{cors-5hx85a1p.js → auth-ebnf2c08.js} +8 -8
- package/dist/chunks/{cors-wxj3d9av.js → auth-et00mhwf.js} +2 -2
- package/dist/chunks/{cors-rztv1fyf.js → auth-f2m3ds36.js} +4 -4
- package/dist/chunks/{cors-22wspztn.js → auth-f8r9p2vr.js} +2 -2
- package/dist/chunks/{cors-fvpjvjpp.js → auth-fvpjvjpp.js} +1 -1
- package/dist/chunks/{cors-x8dgc261.js → auth-h1thjy6x.js} +2 -2
- package/dist/chunks/{cors-gk0yxcp6.js → auth-htyf2qs7.js} +1 -1
- package/dist/chunks/{cors-b2k9041j.js → auth-hx8bsq9d.js} +1 -1
- package/dist/chunks/{cors-j4at0y5c.js → auth-j4at0y5c.js} +1 -1
- package/dist/chunks/{cors-ppma8fcc.js → auth-kg0ybx4v.js} +3 -3
- package/dist/chunks/{cors-zrprg5z5.js → auth-n1zdbfv7.js} +2 -2
- package/dist/chunks/{cors-xe9t9xr4.js → auth-nz17qv97.js} +2 -2
- package/dist/chunks/{cors-6vs5sqy6.js → auth-q44yktpv.js} +2 -2
- package/dist/chunks/{cors-h9rcwvg0.js → auth-r6xkfcdx.js} +1 -1
- package/dist/chunks/{cors-r6xthn22.js → auth-s27ys3k9.js} +17 -15
- package/dist/chunks/{cors-hnheq3hv.js → auth-s62wjkvx.js} +2 -2
- package/dist/chunks/{cors-yr4wsvrw.js → auth-s9tkswmw.js} +2 -2
- package/dist/chunks/{cors-mfe5g848.js → auth-t14ehw0c.js} +33 -33
- package/dist/chunks/{cors-ckkpcd9y.js → auth-t7vhq1fh.js} +4 -4
- package/dist/chunks/{cors-xm1s9q2w.js → auth-tdejw8rx.js} +6 -6
- package/dist/chunks/{cors-m5rae7m4.js → auth-v8aqacn3.js} +2 -2
- package/dist/chunks/{cors-qn8kkfq6.js → auth-vbgqk0mr.js} +2 -2
- package/dist/chunks/{cors-kffvskmv.js → auth-vxy18n8f.js} +4 -4
- package/dist/chunks/{cors-mzs0n5xz.js → auth-w9jcwh65.js} +7 -7
- package/dist/chunks/{cors-1je14sn4.js → auth-x4b2rtcb.js} +1 -1
- package/dist/chunks/{cors-b1prsepx.js → auth-yjbzmfhm.js} +7 -7
- package/dist/chunks/{cors-h072q2hm.js → auth-zbe9jfhy.js} +1 -1
- package/dist/chunks/{cors-gsyfxrkq.js → auth-zcdjyqpw.js} +27 -9
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +1 -1
- package/dist/fetch.js +54 -53
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.d.ts +62 -0
- package/dist/handlers/artifact.js +8 -0
- package/dist/handlers/command.js +6 -6
- package/dist/handlers/config.js +6 -6
- package/dist/handlers/credential.js +7 -7
- 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 +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.d.ts +1 -1
- package/dist/handlers/persistent-pty.js +11 -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.d.ts +1 -1
- package/dist/handlers.js +48 -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 +56 -55
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +3 -2
- package/dist/routes.js +51 -50
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +55 -54
- package/package.json +8 -8
- /package/dist/chunks/{cors-9rqn6x4v.js → auth-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{cors-bd8755ek.js → auth-bd8755ek.js} +0 -0
- /package/dist/chunks/{cors-h6rt5k9s.js → auth-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{cors-n321d8vm.js → auth-n321d8vm.js} +0 -0
- /package/dist/chunks/{cors-q4bn6dy8.js → auth-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{cors-smaf4a18.js → auth-smaf4a18.js} +0 -0
- /package/dist/chunks/{cors-xthc02cw.js → auth-xthc02cw.js} +0 -0
- /package/dist/chunks/{cors-yc7nft6q.js → auth-yc7nft6q.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./auth-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/server-info.ts
|
|
6
6
|
var exports_server_info = {};
|
|
7
7
|
__export(exports_server_info, {
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service4,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
|
-
layer: () =>
|
|
11
|
+
layer: () => layer3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service4 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return Layer.succeed(
|
|
18
|
+
function layer3(urls, tmp, app = {}) {
|
|
19
|
+
return Layer.succeed(Service4, Service4.of({ urls, app, paths: { tmp } }));
|
|
20
20
|
}
|
|
21
21
|
function connectionURLs2(value, requestedHostname) {
|
|
22
22
|
const url = new URL(value);
|
|
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Service4, layer3, connectionURLs2, exports_server_info };
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./auth-0e81et3m.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./auth-q4bn6dy8.js";
|
|
8
|
+
import {
|
|
9
|
+
makeArtifact2
|
|
10
|
+
} from "./auth-0fv515j7.js";
|
|
8
11
|
import {
|
|
9
12
|
makeMediaGet2
|
|
10
|
-
} from "./
|
|
13
|
+
} from "./auth-n321d8vm.js";
|
|
11
14
|
import {
|
|
12
15
|
runPtySocket2
|
|
13
|
-
} from "./
|
|
16
|
+
} from "./auth-h6rt5k9s.js";
|
|
14
17
|
import {
|
|
15
18
|
makeSchedule2
|
|
16
|
-
} from "./
|
|
19
|
+
} from "./auth-059rbh9c.js";
|
|
17
20
|
|
|
18
21
|
// src/handlers/persistent-pty.ts
|
|
19
22
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -21,6 +24,7 @@ import { PtyTicket } from "@opencode/core/pty/ticket";
|
|
|
21
24
|
import {
|
|
22
25
|
ForbiddenError,
|
|
23
26
|
InvalidRequestError,
|
|
27
|
+
PtyFeatureUnsupportedError,
|
|
24
28
|
PtyNotFoundError,
|
|
25
29
|
ServiceUnavailableError
|
|
26
30
|
} from "@opencode/protocol/errors";
|
|
@@ -37,9 +41,10 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
|
|
|
37
41
|
const tickets = yield* PtyTicket.Service;
|
|
38
42
|
const cors = yield* CorsConfig2;
|
|
39
43
|
const pty = yield* PersistentPty.Service;
|
|
44
|
+
const artifact = yield* makeArtifact2;
|
|
40
45
|
const mediaGet = yield* makeMediaGet2;
|
|
41
46
|
const schedule = yield* makeSchedule2;
|
|
42
|
-
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handle("schedule.create", (ctx) => schedule.create(ctx.payload)).handle("schedule.list", (ctx) => schedule.list(ctx.query.sessionID)).handle("schedule.get", (ctx) => schedule.get(ctx.params.scheduleID)).handle("schedule.pause", (ctx) => schedule.pause(ctx.params.scheduleID)).handle("schedule.resume", (ctx) => schedule.resume(ctx.params.scheduleID)).handle("schedule.delete", (ctx) => schedule.remove(ctx.params.scheduleID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
|
|
47
|
+
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handle("artifacts.providers", (ctx) => artifact.providers(ctx.query, ctx.request)).handle("artifacts.list", (ctx) => artifact.list(ctx.query, ctx.request)).handle("artifacts.create", (ctx) => artifact.create(ctx.query, ctx.payload, ctx.request)).handle("artifacts.get", (ctx) => artifact.get(ctx.params.artifactID, ctx.query, ctx.request)).handle("artifacts.update", (ctx) => artifact.update(ctx.params.artifactID, ctx.query, ctx.payload, ctx.request)).handle("artifacts.delete", (ctx) => artifact.remove(ctx.params.artifactID, ctx.query, ctx.request)).handleRaw("artifacts.view", (ctx) => artifact.view(ctx.params.artifactID, ctx.query, ctx.request)).handle("schedule.create", (ctx) => schedule.create(ctx.payload)).handle("schedule.list", (ctx) => schedule.list(ctx.query.sessionID)).handle("schedule.get", (ctx) => schedule.get(ctx.params.scheduleID)).handle("schedule.pause", (ctx) => schedule.pause(ctx.params.scheduleID)).handle("schedule.resume", (ctx) => schedule.resume(ctx.params.scheduleID)).handle("schedule.delete", (ctx) => schedule.remove(ctx.params.scheduleID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
|
|
43
48
|
return { data: yield* pty.read(ctx.params.sessionID, ctx.query.lines).pipe(mapUnavailable) };
|
|
44
49
|
})).handle("persistentPty.list", Effect.fn(function* (ctx) {
|
|
45
50
|
return { data: yield* pty.list(ctx.params.sessionID).pipe(mapUnavailable) };
|
|
@@ -66,8 +71,20 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
|
|
|
66
71
|
})).handle("persistentPty.get", Effect.fn(function* (ctx) {
|
|
67
72
|
return { data: yield* pty.get(ctx.params.ptyID).pipe(mapTerminalError) };
|
|
68
73
|
})).handle("persistentPty.update", Effect.fn(function* (ctx) {
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
if (ctx.payload.size)
|
|
75
|
+
yield* pty.resize(ctx.params.ptyID, ctx.payload.size.cols, ctx.payload.size.rows, ctx.payload.attachmentID).pipe(mapTerminalError);
|
|
76
|
+
if (ctx.payload.title === undefined)
|
|
77
|
+
return { data: yield* pty.get(ctx.params.ptyID).pipe(mapTerminalError) };
|
|
78
|
+
return {
|
|
79
|
+
data: yield* pty.rename(ctx.params.ptyID, ctx.payload.title).pipe(Effect.catchTags({
|
|
80
|
+
"PersistentPty.NotFoundError": notFound,
|
|
81
|
+
"PersistentPty.UnsupportedError": (error) => new PtyFeatureUnsupportedError({
|
|
82
|
+
feature: error.feature,
|
|
83
|
+
message: "Terminal renaming will be available after OpenCode's terminal service restarts"
|
|
84
|
+
}),
|
|
85
|
+
"PersistentPty.UnavailableError": unavailable
|
|
86
|
+
}))
|
|
87
|
+
};
|
|
71
88
|
})).handle("persistentPty.snapshot", Effect.fn(function* (ctx) {
|
|
72
89
|
return { data: yield* pty.snapshot(ctx.params.ptyID).pipe(mapTerminalError) };
|
|
73
90
|
})).handle("persistentPty.remove", Effect.fn(function* (ctx) {
|
|
@@ -166,9 +183,10 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
|
|
|
166
183
|
}));
|
|
167
184
|
var mapUnavailable = (effect) => effect.pipe(Effect.catchTag("PersistentPty.UnavailableError", unavailable));
|
|
168
185
|
var mapTerminalError = (effect) => effect.pipe(Effect.catchTags({
|
|
169
|
-
"PersistentPty.NotFoundError":
|
|
186
|
+
"PersistentPty.NotFoundError": notFound,
|
|
170
187
|
"PersistentPty.UnavailableError": unavailable
|
|
171
188
|
}));
|
|
189
|
+
var notFound = (error) => new PtyNotFoundError({ ptyID: error.ptyID, message: `PTY session not found: ${error.ptyID}` });
|
|
172
190
|
var unavailable = (error) => new ServiceUnavailableError({ message: error.message, service: "opencode-pty" });
|
|
173
191
|
|
|
174
192
|
export { PersistentPtyHandler2 };
|
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
package/dist/fetch.js
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make3,
|
|
3
3
|
exports_fetch
|
|
4
|
-
} from "./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/
|
|
51
|
-
import"./chunks/
|
|
52
|
-
import"./chunks/
|
|
53
|
-
import"./chunks/
|
|
54
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/auth-tdejw8rx.js";
|
|
5
|
+
import"./chunks/auth-s27ys3k9.js";
|
|
6
|
+
import"./chunks/auth-7b9xm1qg.js";
|
|
7
|
+
import"./chunks/auth-bd8755ek.js";
|
|
8
|
+
import"./chunks/auth-t14ehw0c.js";
|
|
9
|
+
import"./chunks/auth-t7vhq1fh.js";
|
|
10
|
+
import"./chunks/auth-vbgqk0mr.js";
|
|
11
|
+
import"./chunks/auth-b4mqtccx.js";
|
|
12
|
+
import"./chunks/auth-05c5061t.js";
|
|
13
|
+
import"./chunks/auth-et00mhwf.js";
|
|
14
|
+
import"./chunks/auth-8wnrbp5z.js";
|
|
15
|
+
import"./chunks/auth-v8aqacn3.js";
|
|
16
|
+
import"./chunks/auth-9grnt8dc.js";
|
|
17
|
+
import"./chunks/auth-r6xkfcdx.js";
|
|
18
|
+
import"./chunks/auth-0ey2b45p.js";
|
|
19
|
+
import"./chunks/auth-f2m3ds36.js";
|
|
20
|
+
import"./chunks/auth-89egwzf3.js";
|
|
21
|
+
import"./chunks/auth-x4b2rtcb.js";
|
|
22
|
+
import"./chunks/auth-hx8bsq9d.js";
|
|
23
|
+
import"./chunks/auth-nz17qv97.js";
|
|
24
|
+
import"./chunks/auth-zbe9jfhy.js";
|
|
25
|
+
import"./chunks/auth-s62wjkvx.js";
|
|
26
|
+
import"./chunks/auth-kg0ybx4v.js";
|
|
27
|
+
import"./chunks/auth-vxy18n8f.js";
|
|
28
|
+
import"./chunks/auth-2wexxjwf.js";
|
|
29
|
+
import"./chunks/auth-ebnf2c08.js";
|
|
30
|
+
import"./chunks/auth-zcdjyqpw.js";
|
|
31
|
+
import"./chunks/auth-0fv515j7.js";
|
|
32
|
+
import"./chunks/auth-n321d8vm.js";
|
|
33
|
+
import"./chunks/auth-h6rt5k9s.js";
|
|
34
|
+
import"./chunks/auth-dx89xydc.js";
|
|
35
|
+
import"./chunks/auth-h1thjy6x.js";
|
|
36
|
+
import"./chunks/auth-q44yktpv.js";
|
|
37
|
+
import"./chunks/auth-0j6zxxn8.js";
|
|
38
|
+
import"./chunks/auth-s9tkswmw.js";
|
|
39
|
+
import"./chunks/auth-n1zdbfv7.js";
|
|
40
|
+
import"./chunks/auth-0n4tjm17.js";
|
|
41
|
+
import"./chunks/auth-15tv3cxt.js";
|
|
42
|
+
import"./chunks/auth-059rbh9c.js";
|
|
43
|
+
import"./chunks/auth-f8r9p2vr.js";
|
|
44
|
+
import"./chunks/auth-4p2y0qs3.js";
|
|
45
|
+
import"./chunks/auth-0e81et3m.js";
|
|
46
|
+
import"./chunks/auth-b3bmdkga.js";
|
|
47
|
+
import"./chunks/auth-htyf2qs7.js";
|
|
48
|
+
import"./chunks/auth-q4bn6dy8.js";
|
|
49
|
+
import"./chunks/auth-j4at0y5c.js";
|
|
50
|
+
import"./chunks/auth-fvpjvjpp.js";
|
|
51
|
+
import"./chunks/auth-xthc02cw.js";
|
|
52
|
+
import"./chunks/auth-w9jcwh65.js";
|
|
53
|
+
import"./chunks/auth-yjbzmfhm.js";
|
|
54
|
+
import"./chunks/auth-50bbk3b2.js";
|
|
55
|
+
import"./chunks/auth-smaf4a18.js";
|
|
55
56
|
export {
|
|
56
57
|
exports_fetch as ServerFetch,
|
|
57
|
-
|
|
58
|
+
make3 as make
|
|
58
59
|
};
|
package/dist/handlers/agent.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-s62wjkvx.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Artifact } from "@opencode/core/artifact";
|
|
2
|
+
import { KV } from "@opencode/core/kv";
|
|
3
|
+
import { Location } from "@opencode/core/location";
|
|
4
|
+
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
5
|
+
import { Session } from "@opencode/core/session";
|
|
6
|
+
import { Effect } from "effect";
|
|
7
|
+
import { type HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
8
|
+
/** `artifacts.*` in the `server.experimental` group. Every route needs experimental.artifacts in the resolved Location. */
|
|
9
|
+
export declare const makeArtifact: Effect.Effect<{
|
|
10
|
+
providers: (query: {
|
|
11
|
+
readonly location?: {
|
|
12
|
+
readonly directory?: string;
|
|
13
|
+
};
|
|
14
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
15
|
+
location: Location.Info;
|
|
16
|
+
data: readonly Artifact.Provider[];
|
|
17
|
+
}, never, never>;
|
|
18
|
+
list: (query: {
|
|
19
|
+
readonly location?: {
|
|
20
|
+
readonly directory?: string;
|
|
21
|
+
};
|
|
22
|
+
readonly sessionID?: Session.ID;
|
|
23
|
+
readonly provider?: Artifact.ProviderID;
|
|
24
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
25
|
+
location: Location.Info;
|
|
26
|
+
data: readonly Artifact.Info[];
|
|
27
|
+
}, never, never>;
|
|
28
|
+
create: (query: {
|
|
29
|
+
readonly location?: {
|
|
30
|
+
readonly directory?: string;
|
|
31
|
+
};
|
|
32
|
+
}, payload: Artifact.CreateInput, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
33
|
+
location: Location.Info;
|
|
34
|
+
data: Artifact.Info;
|
|
35
|
+
}, never, never>;
|
|
36
|
+
get: (artifactID: Artifact.ID, query: {
|
|
37
|
+
readonly location?: {
|
|
38
|
+
readonly directory?: string;
|
|
39
|
+
};
|
|
40
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
41
|
+
location: Location.Info;
|
|
42
|
+
data: Artifact.Content;
|
|
43
|
+
}, never, never>;
|
|
44
|
+
update: (artifactID: Artifact.ID, query: {
|
|
45
|
+
readonly location?: {
|
|
46
|
+
readonly directory?: string;
|
|
47
|
+
};
|
|
48
|
+
}, payload: Artifact.UpdateInput, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
49
|
+
location: Location.Info;
|
|
50
|
+
data: Artifact.Info;
|
|
51
|
+
}, never, never>;
|
|
52
|
+
remove: (artifactID: Artifact.ID, query: {
|
|
53
|
+
readonly location?: {
|
|
54
|
+
readonly directory?: string;
|
|
55
|
+
};
|
|
56
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<void, never, never>;
|
|
57
|
+
view: (artifactID: Artifact.ID, query: {
|
|
58
|
+
readonly location?: {
|
|
59
|
+
readonly directory?: string;
|
|
60
|
+
};
|
|
61
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, never>;
|
|
62
|
+
}, never, KV.Service | LocationServiceMap.Service | Session.Service>;
|
package/dist/handlers/command.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommandHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-b4mqtccx.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
CommandHandler2 as CommandHandler
|
|
11
11
|
};
|
package/dist/handlers/config.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-hx8bsq9d.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
ConfigHandler2 as ConfigHandler
|
|
11
11
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CredentialHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-2wexxjwf.js";
|
|
4
|
+
import"../chunks/auth-n1zdbfv7.js";
|
|
5
|
+
import"../chunks/auth-0e81et3m.js";
|
|
6
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
7
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
8
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
9
|
+
import"../chunks/auth-smaf4a18.js";
|
|
10
10
|
export {
|
|
11
11
|
CredentialHandler2 as CredentialHandler
|
|
12
12
|
};
|
package/dist/handlers/debug.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DebugHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-h1thjy6x.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
DebugHandler2 as DebugHandler
|
|
11
11
|
};
|
package/dist/handlers/event.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EventHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-15tv3cxt.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-fvpjvjpp.js";
|
|
8
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
9
|
+
import"../chunks/auth-smaf4a18.js";
|
|
10
10
|
export {
|
|
11
11
|
EventHandler2 as EventHandler
|
|
12
12
|
};
|
package/dist/handlers/form.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FormHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-v8aqacn3.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
FormHandler2 as FormHandler
|
|
11
11
|
};
|
package/dist/handlers/fs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FileSystemHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-0ey2b45p.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
FileSystemHandler2 as FileSystemHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-0j6zxxn8.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
GenerateHandler2 as GenerateHandler
|
|
11
11
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requireConnectable2,
|
|
3
3
|
IntegrationHandler2
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/auth-n1zdbfv7.js";
|
|
5
|
+
import"../chunks/auth-0e81et3m.js";
|
|
6
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
7
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
8
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
9
|
+
import"../chunks/auth-smaf4a18.js";
|
|
10
10
|
export {
|
|
11
11
|
IntegrationHandler2 as IntegrationHandler,
|
|
12
12
|
requireConnectable2 as requireConnectable
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-zbe9jfhy.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
LocationHandler2 as LocationHandler
|
|
11
11
|
};
|
package/dist/handlers/mcp.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
McpHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-f2m3ds36.js";
|
|
4
|
+
import"../chunks/auth-h6rt5k9s.js";
|
|
5
|
+
import"../chunks/auth-0e81et3m.js";
|
|
6
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
7
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
8
|
+
import"../chunks/auth-q4bn6dy8.js";
|
|
9
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
10
|
+
import"../chunks/auth-smaf4a18.js";
|
|
11
11
|
export {
|
|
12
12
|
McpHandler2 as McpHandler
|
|
13
13
|
};
|
package/dist/handlers/media.js
CHANGED
package/dist/handlers/message.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MessageHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-8wnrbp5z.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-xthc02cw.js";
|
|
8
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
9
|
+
import"../chunks/auth-smaf4a18.js";
|
|
10
10
|
export {
|
|
11
11
|
MessageHandler2 as MessageHandler
|
|
12
12
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MigrationHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/auth-x4b2rtcb.js";
|
|
4
|
+
import"../chunks/auth-0e81et3m.js";
|
|
5
|
+
import"../chunks/auth-b3bmdkga.js";
|
|
6
|
+
import"../chunks/auth-htyf2qs7.js";
|
|
7
|
+
import"../chunks/auth-50bbk3b2.js";
|
|
8
|
+
import"../chunks/auth-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
MigrationHandler2 as MigrationHandler
|
|
11
11
|
};
|