@opencode/server 2.2.5 → 2.2.7
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 +16 -3
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{location-059rbh9c.js → process-059rbh9c.js} +1 -1
- package/dist/chunks/{location-e0z6mnzj.js → process-0e4fm4yw.js} +1 -1
- package/dist/chunks/{location-1jtv083t.js → process-1vxxxmgg.js} +2 -2
- package/dist/chunks/{location-xfynz25m.js → process-2835150m.js} +2 -2
- package/dist/chunks/{location-y56ann6c.js → process-370cpmna.js} +2 -2
- package/dist/chunks/{location-bknbvq67.js → process-4z8yg1dv.js} +7 -5
- package/dist/chunks/{location-q7gnt7ra.js → process-50xc6x42.js} +3 -3
- package/dist/chunks/{location-ey9m07rx.js → process-5553qfcy.js} +3 -3
- package/dist/chunks/{location-1kj4am0h.js → process-5kr30cfc.js} +11 -5
- package/dist/chunks/{location-7dtbad8d.js → process-5pdfedjd.js} +7 -7
- package/dist/chunks/{location-f0kpaq89.js → process-74kxthdf.js} +1 -1
- package/dist/chunks/process-78rcgzsr.js +28 -0
- package/dist/chunks/{location-7b9xm1qg.js → process-7b9xm1qg.js} +1 -1
- package/dist/chunks/{location-axx4wwen.js → process-7cd61xtm.js} +2 -2
- package/dist/chunks/{location-vyzvby0b.js → process-7x1re4zg.js} +2 -2
- package/dist/chunks/{location-85kbrn7y.js → process-agenqygg.js} +2 -4
- package/dist/chunks/{location-f1ds1268.js → process-amndpc82.js} +9 -6
- package/dist/chunks/{location-nzrkt0f5.js → process-dfxfd950.js} +6 -6
- package/dist/chunks/{location-n321d8vm.js → process-djr0jy89.js} +8 -6
- package/dist/chunks/{location-e6e4kz0w.js → process-e6e4kz0w.js} +1 -1
- package/dist/chunks/{location-5n22zpzy.js → process-f3xrm535.js} +6 -6
- package/dist/chunks/{location-ja97ph8b.js → process-fszbw5sk.js} +4 -4
- package/dist/chunks/{location-ddnay6e1.js → process-gk0yxcp6.js} +1 -1
- package/dist/chunks/{location-gymtz25n.js → process-gqq6kfhc.js} +3 -3
- package/dist/chunks/{location-j4at0y5c.js → process-j4at0y5c.js} +1 -1
- package/dist/chunks/{location-j6d0mxrp.js → process-jc2vwkyw.js} +2 -2
- package/dist/chunks/{location-va7wgp70.js → process-jqvq1ywe.js} +2 -4
- package/dist/chunks/{location-kqr36gas.js → process-kqr36gas.js} +1 -1
- package/dist/chunks/{location-wy3c18g3.js → process-mx6chrwy.js} +35 -35
- package/dist/chunks/process-myqk22k5.js +39 -0
- package/dist/chunks/{location-xad49dn3.js → process-p3f060n2.js} +3 -7
- package/dist/chunks/{location-h6rt5k9s.js → process-q187pxxd.js} +7 -1
- package/dist/chunks/{location-pbxe02h0.js → process-r2veymj8.js} +8 -6
- package/dist/chunks/{location-v7p1kzzd.js → process-r5696se6.js} +3 -3
- package/dist/chunks/{location-hr24310e.js → process-rcmctvp9.js} +1 -3
- package/dist/chunks/{location-4xzps9pr.js → process-rxyx8sa0.js} +2 -2
- package/dist/chunks/{location-f96zeczf.js → process-skcryrty.js} +2 -2
- package/dist/chunks/{location-0r9ve3h3.js → process-sqxx1p54.js} +2 -2
- package/dist/chunks/process-t32e1bbt.js +32 -0
- package/dist/chunks/{location-62bfwtjc.js → process-vtfzy3at.js} +2 -2
- package/dist/chunks/{location-xwy6frfd.js → process-vvp99hc9.js} +1 -1
- package/dist/chunks/{location-02a60aws.js → process-w5yp0ga8.js} +3 -4
- package/dist/chunks/{location-qfyg9gb7.js → process-wecgp61r.js} +7 -7
- package/dist/chunks/{location-dczgzh3x.js → process-wqv43pj9.js} +2 -2
- package/dist/chunks/{location-9q55v56g.js → process-xbqm7mpj.js} +2 -2
- package/dist/chunks/{location-c48av16v.js → process-xjbee3xk.js} +18 -16
- package/dist/chunks/{location-zzxz7279.js → process-xpg37vzc.js} +2 -2
- package/dist/chunks/{location-x74w7e1f.js → process-yet0vexm.js} +1 -1
- package/dist/chunks/{location-z48nkxh0.js → process-zds85vps.js} +2 -2
- package/dist/chunks/{location-tgb4pddq.js → process-zgvwy66h.js} +9 -6
- package/dist/chunks/{location-g6bmzkma.js → process-zgw0abca.js} +11 -7
- package/dist/chunks/{location-mam5ppd3.js → process-zmgfywqd.js} +1 -1
- package/dist/content-headers.d.ts +13 -0
- package/dist/content-headers.js +12 -0
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.d.ts +1 -0
- package/dist/fetch.js +56 -52
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.js +3 -3
- 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 +7 -6
- package/dist/handlers/generate.js +6 -6
- package/dist/handlers/integration.js +6 -6
- package/dist/handlers/job.d.ts +51 -0
- package/dist/handlers/job.js +7 -0
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/mcp.js +8 -8
- package/dist/handlers/media.js +2 -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 +13 -11
- 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.d.ts +2 -0
- package/dist/handlers/pty-socket.js +4 -2
- 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 +50 -48
- 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/options.d.ts +7 -0
- package/dist/options.js +1 -0
- package/dist/pairing.js +1 -1
- package/dist/process.d.ts +1 -0
- package/dist/process.js +61 -56
- package/dist/request-site.d.ts +11 -0
- package/dist/request-site.js +11 -0
- package/dist/request-tracing.d.ts +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +3 -2
- package/dist/routes.js +53 -51
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +1 -1
- package/dist/workerd.d.ts +2 -0
- package/dist/workerd.js +59 -54
- package/package.json +13 -13
- /package/dist/chunks/{location-9rqn6x4v.js → process-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-bd8755ek.js → process-bd8755ek.js} +0 -0
- /package/dist/chunks/{location-q4bn6dy8.js → process-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{location-smaf4a18.js → process-smaf4a18.js} +0 -0
- /package/dist/chunks/{location-xthc02cw.js → process-xthc02cw.js} +0 -0
- /package/dist/chunks/{location-yc7nft6q.js → process-yc7nft6q.js} +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./process-r5696se6.js";
|
|
7
|
+
import {
|
|
8
|
+
download2
|
|
9
|
+
} from "./process-t32e1bbt.js";
|
|
7
10
|
|
|
8
11
|
// src/handlers/fs.ts
|
|
9
12
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -21,7 +24,7 @@ var FileSystemHandler2 = HttpApiBuilder.group(Api2, "server.fs", (handlers) => E
|
|
|
21
24
|
const path2 = yield* decodeRequestPath(ctx.request.url);
|
|
22
25
|
const fs = yield* FileSystem.Service;
|
|
23
26
|
const file = yield* fs.read({ path: path2 }).pipe(Effect.mapError((error) => new FileNotFoundError({ path: error.path, message: `File not found: ${error.path}` })));
|
|
24
|
-
return serveFile(ctx.request, file);
|
|
27
|
+
return serveFile(ctx.request, file, download2({ path: path2, mime: file.mime }));
|
|
25
28
|
})).handle("fs.list", (ctx) => response2(Effect.gen(function* () {
|
|
26
29
|
const fs = yield* FileSystem.Service;
|
|
27
30
|
return yield* fs.list(ctx.query).pipe(Effect.mapError((error) => new FileNotFoundError({ path: error.path, message: `Directory not found: ${error.path}` })));
|
|
@@ -54,7 +57,7 @@ function decodeRequestPath(url) {
|
|
|
54
57
|
catch: () => new FileNotFoundError({ path: raw, message: `File not found: ${raw}` })
|
|
55
58
|
});
|
|
56
59
|
}
|
|
57
|
-
function serveFile(request, file) {
|
|
60
|
+
function serveFile(request, file, content) {
|
|
58
61
|
const etag = `W/"${file.size.toString(16)}-${Option.match(file.mtime, {
|
|
59
62
|
onNone: () => "0",
|
|
60
63
|
onSome: (mtime) => mtime.getTime().toString(16)
|
|
@@ -66,7 +69,7 @@ function serveFile(request, file) {
|
|
|
66
69
|
...lastModified === undefined ? {} : { "last-modified": lastModified }
|
|
67
70
|
};
|
|
68
71
|
if (isNotModified(request, etag, lastModified))
|
|
69
|
-
return HttpServerResponse.empty({ status: 304, headers: validators });
|
|
72
|
+
return HttpServerResponse.empty({ status: 304, headers: { ...validators, ...content } });
|
|
70
73
|
const rangeHeader = request.method === "GET" ? request.headers["range"] : undefined;
|
|
71
74
|
const range = rangeHeader !== undefined && matchesIfRange(request.headers["if-range"], etag, lastModified) ? parseRange(rangeHeader, file.size) : undefined;
|
|
72
75
|
if (range === "unsatisfiable")
|
|
@@ -81,8 +84,8 @@ function serveFile(request, file) {
|
|
|
81
84
|
contentLength: length,
|
|
82
85
|
headers: {
|
|
83
86
|
...validators,
|
|
87
|
+
...content,
|
|
84
88
|
"accept-ranges": "bytes",
|
|
85
|
-
"content-type": file.mime,
|
|
86
89
|
...range === undefined ? {} : { "content-range": `bytes ${range.start}-${range.end}/${file.size}` }
|
|
87
90
|
}
|
|
88
91
|
});
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-r5696se6.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./process-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./process-w5yp0ga8.js";
|
|
11
|
+
import {
|
|
12
|
+
makeJob2
|
|
13
|
+
} from "./process-78rcgzsr.js";
|
|
11
14
|
import {
|
|
12
15
|
makeMediaGet2
|
|
13
|
-
} from "./
|
|
16
|
+
} from "./process-djr0jy89.js";
|
|
14
17
|
import {
|
|
15
18
|
runPtySocket2
|
|
16
|
-
} from "./
|
|
19
|
+
} from "./process-q187pxxd.js";
|
|
17
20
|
import {
|
|
18
21
|
makeSchedule2
|
|
19
|
-
} from "./
|
|
22
|
+
} from "./process-059rbh9c.js";
|
|
20
23
|
|
|
21
24
|
// src/handlers/persistent-pty.ts
|
|
22
25
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -42,9 +45,10 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
|
|
|
42
45
|
const cors = yield* CorsConfig2;
|
|
43
46
|
const pty = yield* PersistentPty.Service;
|
|
44
47
|
const artifact = yield* makeArtifact2;
|
|
48
|
+
const job = yield* makeJob2;
|
|
45
49
|
const mediaGet = yield* makeMediaGet2;
|
|
46
50
|
const schedule = yield* makeSchedule2;
|
|
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) {
|
|
51
|
+
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).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) {
|
|
48
52
|
return { data: yield* pty.read(ctx.params.sessionID, ctx.query.lines).pipe(mapUnavailable) };
|
|
49
53
|
})).handle("persistentPty.list", Effect.fn(function* (ctx) {
|
|
50
54
|
return { data: yield* pty.list(ctx.params.sessionID).pipe(mapUnavailable) };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * as ContentHeaders from "./content-headers";
|
|
2
|
+
export declare const CONTENT_SECURITY_POLICY = "default-src 'none'; img-src 'self'; media-src 'self'; sandbox";
|
|
3
|
+
/** Headers for raw file bytes: always a download, never rendered as a page on the server's origin. */
|
|
4
|
+
export declare function download(input: {
|
|
5
|
+
readonly path?: string;
|
|
6
|
+
readonly mime: string;
|
|
7
|
+
}): {
|
|
8
|
+
"content-type": string;
|
|
9
|
+
"content-disposition": string;
|
|
10
|
+
"content-security-policy": string;
|
|
11
|
+
"x-content-type-options": string;
|
|
12
|
+
};
|
|
13
|
+
export declare function disposition(name: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONTENT_SECURITY_POLICY2,
|
|
3
|
+
download2,
|
|
4
|
+
disposition2,
|
|
5
|
+
exports_content_headers
|
|
6
|
+
} from "./chunks/process-t32e1bbt.js";
|
|
7
|
+
export {
|
|
8
|
+
CONTENT_SECURITY_POLICY2 as CONTENT_SECURITY_POLICY,
|
|
9
|
+
exports_content_headers as ContentHeaders,
|
|
10
|
+
disposition2 as disposition,
|
|
11
|
+
download2 as download
|
|
12
|
+
};
|
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
SubscriberCapacity2,
|
|
3
3
|
SubscriberOverflowError2,
|
|
4
4
|
EncodingError2,
|
|
5
|
-
|
|
5
|
+
Service4,
|
|
6
6
|
frame2,
|
|
7
7
|
make4,
|
|
8
|
-
|
|
8
|
+
layer4,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/process-wecgp61r.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
14
|
-
|
|
14
|
+
Service4 as Service,
|
|
15
15
|
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
|
18
|
-
|
|
18
|
+
layer4 as layer,
|
|
19
19
|
make4 as make
|
|
20
20
|
};
|
package/dist/fetch.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare const make: (options?: {
|
|
|
62
62
|
readonly fetch?: boolean | undefined;
|
|
63
63
|
readonly snapshot?: boolean | undefined;
|
|
64
64
|
} | undefined;
|
|
65
|
+
readonly fetch?: import("@opencode/util/effect/app-node-platform").Fetch | undefined;
|
|
65
66
|
readonly config?: {
|
|
66
67
|
readonly directory?: string | undefined;
|
|
67
68
|
readonly project?: boolean | undefined;
|
package/dist/fetch.js
CHANGED
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
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/
|
|
55
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/process-5kr30cfc.js";
|
|
5
|
+
import"./chunks/process-yc7nft6q.js";
|
|
6
|
+
import"./chunks/process-xjbee3xk.js";
|
|
7
|
+
import"./chunks/process-bd8755ek.js";
|
|
8
|
+
import"./chunks/process-7b9xm1qg.js";
|
|
9
|
+
import"./chunks/process-myqk22k5.js";
|
|
10
|
+
import"./chunks/process-mx6chrwy.js";
|
|
11
|
+
import"./chunks/process-zmgfywqd.js";
|
|
12
|
+
import"./chunks/process-370cpmna.js";
|
|
13
|
+
import"./chunks/process-jqvq1ywe.js";
|
|
14
|
+
import"./chunks/process-jc2vwkyw.js";
|
|
15
|
+
import"./chunks/process-dfxfd950.js";
|
|
16
|
+
import"./chunks/process-rxyx8sa0.js";
|
|
17
|
+
import"./chunks/process-p3f060n2.js";
|
|
18
|
+
import"./chunks/process-74kxthdf.js";
|
|
19
|
+
import"./chunks/process-sqxx1p54.js";
|
|
20
|
+
import"./chunks/process-fszbw5sk.js";
|
|
21
|
+
import"./chunks/process-50xc6x42.js";
|
|
22
|
+
import"./chunks/process-5553qfcy.js";
|
|
23
|
+
import"./chunks/process-7cd61xtm.js";
|
|
24
|
+
import"./chunks/process-0e4fm4yw.js";
|
|
25
|
+
import"./chunks/process-2835150m.js";
|
|
26
|
+
import"./chunks/process-wqv43pj9.js";
|
|
27
|
+
import"./chunks/process-zds85vps.js";
|
|
28
|
+
import"./chunks/process-vvp99hc9.js";
|
|
29
|
+
import"./chunks/process-7x1re4zg.js";
|
|
30
|
+
import"./chunks/process-r2veymj8.js";
|
|
31
|
+
import"./chunks/process-zgw0abca.js";
|
|
32
|
+
import"./chunks/process-djr0jy89.js";
|
|
33
|
+
import"./chunks/process-w5yp0ga8.js";
|
|
34
|
+
import"./chunks/process-78rcgzsr.js";
|
|
35
|
+
import"./chunks/process-agenqygg.js";
|
|
36
|
+
import"./chunks/process-1vxxxmgg.js";
|
|
37
|
+
import"./chunks/process-amndpc82.js";
|
|
38
|
+
import"./chunks/process-skcryrty.js";
|
|
39
|
+
import"./chunks/process-vtfzy3at.js";
|
|
40
|
+
import"./chunks/process-rcmctvp9.js";
|
|
41
|
+
import"./chunks/process-zgvwy66h.js";
|
|
42
|
+
import"./chunks/process-xpg37vzc.js";
|
|
43
|
+
import"./chunks/process-4z8yg1dv.js";
|
|
44
|
+
import"./chunks/process-q187pxxd.js";
|
|
45
|
+
import"./chunks/process-f3xrm535.js";
|
|
46
|
+
import"./chunks/process-xbqm7mpj.js";
|
|
47
|
+
import"./chunks/process-059rbh9c.js";
|
|
48
|
+
import"./chunks/process-kqr36gas.js";
|
|
49
|
+
import"./chunks/process-xthc02cw.js";
|
|
50
|
+
import"./chunks/process-j4at0y5c.js";
|
|
51
|
+
import"./chunks/process-5pdfedjd.js";
|
|
52
|
+
import"./chunks/process-q4bn6dy8.js";
|
|
53
|
+
import"./chunks/process-t32e1bbt.js";
|
|
54
|
+
import"./chunks/process-r5696se6.js";
|
|
55
|
+
import"./chunks/process-gk0yxcp6.js";
|
|
56
|
+
import"./chunks/process-yet0vexm.js";
|
|
57
|
+
import"./chunks/process-gqq6kfhc.js";
|
|
58
|
+
import"./chunks/process-smaf4a18.js";
|
|
59
|
+
import"./chunks/process-wecgp61r.js";
|
|
56
60
|
export {
|
|
57
61
|
exports_fetch as ServerFetch,
|
|
58
62
|
make2 as make
|
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/process-p3f060n2.js";
|
|
4
|
+
import"../chunks/process-r5696se6.js";
|
|
5
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
6
|
+
import"../chunks/process-yet0vexm.js";
|
|
7
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/process-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeArtifact2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/process-w5yp0ga8.js";
|
|
4
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
5
|
+
import"../chunks/process-smaf4a18.js";
|
|
6
6
|
export {
|
|
7
7
|
makeArtifact2 as makeArtifact
|
|
8
8
|
};
|
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/process-xpg37vzc.js";
|
|
4
|
+
import"../chunks/process-r5696se6.js";
|
|
5
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
6
|
+
import"../chunks/process-yet0vexm.js";
|
|
7
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/process-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/process-0e4fm4yw.js";
|
|
4
|
+
import"../chunks/process-r5696se6.js";
|
|
5
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
6
|
+
import"../chunks/process-yet0vexm.js";
|
|
7
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/process-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/process-1vxxxmgg.js";
|
|
4
|
+
import"../chunks/process-amndpc82.js";
|
|
5
|
+
import"../chunks/process-r5696se6.js";
|
|
6
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/process-yet0vexm.js";
|
|
8
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
9
|
+
import"../chunks/process-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/process-jc2vwkyw.js";
|
|
4
|
+
import"../chunks/process-r5696se6.js";
|
|
5
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
6
|
+
import"../chunks/process-yet0vexm.js";
|
|
7
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/process-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/process-fszbw5sk.js";
|
|
4
|
+
import"../chunks/process-r5696se6.js";
|
|
5
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
6
|
+
import"../chunks/process-yet0vexm.js";
|
|
7
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/process-smaf4a18.js";
|
|
9
|
+
import"../chunks/process-wecgp61r.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/process-7x1re4zg.js";
|
|
4
|
+
import"../chunks/process-r5696se6.js";
|
|
5
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
6
|
+
import"../chunks/process-yet0vexm.js";
|
|
7
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/process-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
FormHandler2 as FormHandler
|
|
11
11
|
};
|
package/dist/handlers/fs.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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/process-zgvwy66h.js";
|
|
4
|
+
import"../chunks/process-t32e1bbt.js";
|
|
5
|
+
import"../chunks/process-r5696se6.js";
|
|
6
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/process-yet0vexm.js";
|
|
8
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
9
|
+
import"../chunks/process-smaf4a18.js";
|
|
9
10
|
export {
|
|
10
11
|
FileSystemHandler2 as FileSystemHandler
|
|
11
12
|
};
|
|
@@ -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/process-wqv43pj9.js";
|
|
4
|
+
import"../chunks/process-r5696se6.js";
|
|
5
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
6
|
+
import"../chunks/process-yet0vexm.js";
|
|
7
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/process-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/process-amndpc82.js";
|
|
5
|
+
import"../chunks/process-r5696se6.js";
|
|
6
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/process-yet0vexm.js";
|
|
8
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
9
|
+
import"../chunks/process-smaf4a18.js";
|
|
10
10
|
export {
|
|
11
11
|
IntegrationHandler2 as IntegrationHandler,
|
|
12
12
|
requireConnectable2 as requireConnectable
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Job } from "@opencode/core/job";
|
|
2
|
+
import { Session } from "@opencode/core/session";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
/** `job.*` in the `server.experimental` group. */
|
|
5
|
+
export declare const makeJob: Effect.Effect<{
|
|
6
|
+
list: (query: {
|
|
7
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
8
|
+
readonly kind?: "image" | "shell" | "subagent" | undefined;
|
|
9
|
+
readonly status?: "cancelled" | "completed" | "error" | "running" | undefined;
|
|
10
|
+
readonly descendants?: boolean | undefined;
|
|
11
|
+
}) => Effect.Effect<{
|
|
12
|
+
data: ({
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
15
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
16
|
+
readonly title?: string | undefined;
|
|
17
|
+
readonly time: {
|
|
18
|
+
readonly started: number;
|
|
19
|
+
readonly completed?: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
readonly kind: "shell";
|
|
22
|
+
readonly shellID: string;
|
|
23
|
+
readonly command: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
27
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
28
|
+
readonly title?: string | undefined;
|
|
29
|
+
readonly time: {
|
|
30
|
+
readonly started: number;
|
|
31
|
+
readonly completed?: number | undefined;
|
|
32
|
+
};
|
|
33
|
+
readonly kind: "subagent";
|
|
34
|
+
readonly childSessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
35
|
+
readonly agent: string;
|
|
36
|
+
readonly description: string;
|
|
37
|
+
} | {
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
40
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
41
|
+
readonly title?: string | undefined;
|
|
42
|
+
readonly time: {
|
|
43
|
+
readonly started: number;
|
|
44
|
+
readonly completed?: number | undefined;
|
|
45
|
+
};
|
|
46
|
+
readonly kind: "image";
|
|
47
|
+
readonly path: string;
|
|
48
|
+
readonly model: string;
|
|
49
|
+
})[];
|
|
50
|
+
}, import("@opencode/protocol/errors").SessionNotFoundError, never>;
|
|
51
|
+
}, never, Job.Service | Session.Service>;
|
|
@@ -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/process-74kxthdf.js";
|
|
4
|
+
import"../chunks/process-r5696se6.js";
|
|
5
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
6
|
+
import"../chunks/process-yet0vexm.js";
|
|
7
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/process-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/process-4z8yg1dv.js";
|
|
4
|
+
import"../chunks/process-q187pxxd.js";
|
|
5
|
+
import"../chunks/process-q4bn6dy8.js";
|
|
6
|
+
import"../chunks/process-r5696se6.js";
|
|
7
|
+
import"../chunks/process-gk0yxcp6.js";
|
|
8
|
+
import"../chunks/process-yet0vexm.js";
|
|
9
|
+
import"../chunks/process-gqq6kfhc.js";
|
|
10
|
+
import"../chunks/process-smaf4a18.js";
|
|
11
11
|
export {
|
|
12
12
|
McpHandler2 as McpHandler
|
|
13
13
|
};
|