@opencode/server 0.0.0-dev-1314 → 0.0.0-dev-1317
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 +249 -1
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{location-p83m65n5.js → routes-065pppgn.js} +2 -2
- package/dist/chunks/{location-4zkx9wb3.js → routes-0tp9bckc.js} +1 -1
- package/dist/chunks/{location-5jm9kajg.js → routes-27f8nny0.js} +2 -2
- package/dist/chunks/{location-hk9crnsa.js → routes-2b13xzyt.js} +2 -2
- package/dist/chunks/{location-yty6dk04.js → routes-2q06e3dd.js} +1 -1
- package/dist/chunks/{location-19v80edx.js → routes-316w8ap0.js} +2 -2
- package/dist/chunks/{location-e6e4kz0w.js → routes-39nnfjx1.js} +4 -4
- package/dist/chunks/{location-q95pa0yx.js → routes-3g4m9m3c.js} +12 -12
- package/dist/chunks/{location-kszms9fe.js → routes-500bq927.js} +9 -9
- package/dist/chunks/{location-y60jfeab.js → routes-500wz90y.js} +2 -2
- package/dist/chunks/{location-g23ffrnz.js → routes-50kbksvb.js} +2 -2
- package/dist/chunks/{location-gq4jwh93.js → routes-669rq3zn.js} +3 -3
- package/dist/chunks/{location-7b9xm1qg.js → routes-7b9xm1qg.js} +1 -1
- package/dist/chunks/{location-7qpea5x7.js → routes-7qpea5x7.js} +2 -2
- package/dist/chunks/{location-78rcgzsr.js → routes-7ydfwv45.js} +4 -1
- package/dist/chunks/{location-zjmacp9c.js → routes-8pn9ceqg.js} +3 -3
- package/dist/chunks/{location-8sb6qqpn.js → routes-8sb6qqpn.js} +1 -1
- package/dist/chunks/{location-9cd3a4b8.js → routes-9cd3a4b8.js} +1 -1
- package/dist/chunks/{location-ddrpmftb.js → routes-9ejn6qb5.js} +4 -4
- package/dist/chunks/{location-ah2sj2pr.js → routes-ah2sj2pr.js} +1 -1
- package/dist/chunks/{location-100nc7c0.js → routes-ahhjt1wh.js} +2 -2
- package/dist/chunks/{location-1r438we2.js → routes-br2vmgmj.js} +4 -4
- package/dist/chunks/{location-jmmhprac.js → routes-c0pd5awd.js} +2 -2
- package/dist/chunks/{location-nva2vd23.js → routes-c57nyq8z.js} +4 -4
- package/dist/chunks/{location-2cm4dfcc.js → routes-cx7az6y7.js} +2 -2
- package/dist/chunks/{location-bjh20vhp.js → routes-dcnkmm29.js} +4 -4
- package/dist/chunks/{location-djr0jy89.js → routes-djr0jy89.js} +1 -1
- package/dist/chunks/{location-8vayf59r.js → routes-ez7f77hp.js} +2 -2
- package/dist/chunks/{location-8ja97vv6.js → routes-fhb2ewd9.js} +2 -2
- package/dist/chunks/{location-2dzr03as.js → routes-ghcy4ddk.js} +1 -1
- package/dist/chunks/{location-jnnepw73.js → routes-grb8rvfd.js} +8 -8
- package/dist/chunks/{location-j4at0y5c.js → routes-j4at0y5c.js} +1 -1
- package/dist/chunks/{location-d20xfnpc.js → routes-j9bm09j4.js} +1 -1
- package/dist/chunks/{location-rmfb1myj.js → routes-k3qt4jsw.js} +1 -1
- package/dist/chunks/{location-myqk22k5.js → routes-myqk22k5.js} +2 -2
- package/dist/chunks/{location-mzs0n5xz.js → routes-mzs0n5xz.js} +1 -1
- package/dist/chunks/{location-ykk3p1r3.js → routes-n7n1k6t0.js} +2 -2
- package/dist/chunks/{location-4fc68szf.js → routes-nezkqcz0.js} +2 -2
- package/dist/chunks/{location-arvsdqhh.js → routes-nts8mhtp.js} +33 -33
- package/dist/chunks/{location-qfyg9gb7.js → routes-qfyg9gb7.js} +1 -1
- package/dist/chunks/{location-r40v995e.js → routes-ryf8gt7t.js} +2 -2
- package/dist/chunks/{location-t32e1bbt.js → routes-t32e1bbt.js} +1 -1
- package/dist/chunks/{location-vw0q3knq.js → routes-vw0q3knq.js} +1 -1
- package/dist/chunks/{location-r6zj4kgb.js → routes-vxppfe3v.js} +4 -4
- package/dist/chunks/{location-ccr1pbeb.js → routes-w7qv5azt.js} +2 -2
- package/dist/chunks/{location-prn0chz2.js → routes-wtrkk6n8.js} +1 -1
- package/dist/chunks/{location-801prsqk.js → routes-xhsknm82.js} +2 -2
- package/dist/chunks/{location-vcgrt9yw.js → routes-xsh28tj2.js} +3 -3
- package/dist/chunks/{location-s3zgwc17.js → routes-xygx09yd.js} +2 -2
- package/dist/chunks/{location-wka57cdm.js → routes-yr4jk19s.js} +2 -2
- package/dist/chunks/{location-ywn523ee.js → routes-ywn523ee.js} +1 -1
- package/dist/chunks/{location-w3xmknp7.js → routes-z030czn6.js} +2 -2
- package/dist/chunks/{location-z3e7v67k.js → routes-z3e7v67k.js} +1 -1
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +1 -1
- package/dist/fetch.js +61 -61
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.js +3 -3
- package/dist/handlers/automation.js +2 -2
- package/dist/handlers/blob.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 +8 -8
- package/dist/handlers/generate.js +6 -6
- package/dist/handlers/integration.js +6 -6
- package/dist/handlers/job.d.ts +1 -0
- package/dist/handlers/job.js +2 -2
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/mcp.js +8 -8
- package/dist/handlers/media.js +2 -2
- 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 +15 -15
- 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/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 +52 -52
- package/dist/location.js +2 -2
- package/dist/media-uri.js +1 -1
- package/dist/middleware/authorization.js +2 -2
- package/dist/middleware/defect-response.js +1 -1
- 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 +62 -62
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +56 -56
- package/dist/server-info.js +1 -1
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +63 -62
- package/package.json +8 -8
- /package/dist/chunks/{location-9rqn6x4v.js → routes-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-bd8755ek.js → routes-bd8755ek.js} +0 -0
- /package/dist/chunks/{location-n26yr6pw.js → routes-n26yr6pw.js} +0 -0
- /package/dist/chunks/{location-q187pxxd.js → routes-q187pxxd.js} +0 -0
- /package/dist/chunks/{location-q4bn6dy8.js → routes-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{location-smaf4a18.js → routes-smaf4a18.js} +0 -0
- /package/dist/chunks/{location-xthc02cw.js → routes-xthc02cw.js} +0 -0
- /package/dist/chunks/{location-yc7nft6q.js → routes-yc7nft6q.js} +0 -0
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { LocationMiddleware } from "./location";
|
|
|
2
2
|
import { FormLocationMiddleware } from "./middleware/form-location";
|
|
3
3
|
import { SessionLocationMiddleware } from "./middleware/session-location";
|
|
4
4
|
export declare const Api: import("@opencode/protocol/api").Api<LocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, FormLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, SessionLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, import("effect/http-api/HttpApiGroup").HttpApiGroup<"server.event", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
5
|
-
readonly types: import("effect/Schema").optional<import("effect/Schema").ArrayEnsure<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ("agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "experimental.mcp.event" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.first-token" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated")[]>, import("effect/Schema").TemplateLiteral<readonly ["rpc.", import("effect/Schema").String]>]>>>;
|
|
5
|
+
readonly types: import("effect/Schema").optional<import("effect/Schema").ArrayEnsure<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ("agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "experimental.job.updated" | "experimental.mcp.event" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.first-token" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated")[]>, import("effect/Schema").TemplateLiteral<readonly ["rpc.", import("effect/Schema").String]>]>>>;
|
|
6
6
|
}>>, never, never, import("effect/http-api/HttpApiSchema").StreamSse<import("effect/http-api/HttpApiSchema").SseEventFromData<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
7
7
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
8
8
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -5539,6 +5539,182 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
5539
5539
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
5540
5540
|
};
|
|
5541
5541
|
}>;
|
|
5542
|
+
}, import("effect/Schema").Struct<{
|
|
5543
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5544
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5545
|
+
};
|
|
5546
|
+
readonly created: import("effect/Schema").Finite;
|
|
5547
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
5548
|
+
readonly type: import("effect/Schema").Literal<"experimental.job.updated">;
|
|
5549
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
5550
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5551
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5552
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5553
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5554
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5555
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5556
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5557
|
+
}>, never, never>;
|
|
5558
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
5559
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5560
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5561
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5562
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5563
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5564
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5565
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5566
|
+
}>, never, never>;
|
|
5567
|
+
}>>, never, never>;
|
|
5568
|
+
readonly data: import("effect/Schema").Struct<{
|
|
5569
|
+
readonly info: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5570
|
+
readonly id: import("effect/Schema").String;
|
|
5571
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5572
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5573
|
+
};
|
|
5574
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5575
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5576
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5577
|
+
readonly started: import("effect/Schema").Finite;
|
|
5578
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5579
|
+
}>;
|
|
5580
|
+
readonly kind: import("effect/Schema").tag<"shell">;
|
|
5581
|
+
readonly shellID: import("effect/Schema").String;
|
|
5582
|
+
readonly command: import("effect/Schema").String;
|
|
5583
|
+
}>, import("effect/Schema").Struct<{
|
|
5584
|
+
readonly id: import("effect/Schema").String;
|
|
5585
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5586
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5587
|
+
};
|
|
5588
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5589
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5590
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5591
|
+
readonly started: import("effect/Schema").Finite;
|
|
5592
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5593
|
+
}>;
|
|
5594
|
+
readonly kind: import("effect/Schema").tag<"subagent">;
|
|
5595
|
+
readonly childSessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5596
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5597
|
+
};
|
|
5598
|
+
readonly agent: import("effect/Schema").String;
|
|
5599
|
+
readonly description: import("effect/Schema").String;
|
|
5600
|
+
}>, import("effect/Schema").Struct<{
|
|
5601
|
+
readonly id: import("effect/Schema").String;
|
|
5602
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5603
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5604
|
+
};
|
|
5605
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5606
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5607
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5608
|
+
readonly started: import("effect/Schema").Finite;
|
|
5609
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5610
|
+
}>;
|
|
5611
|
+
readonly kind: import("effect/Schema").tag<"image">;
|
|
5612
|
+
readonly path: import("effect/Schema").String;
|
|
5613
|
+
readonly model: import("effect/Schema").String;
|
|
5614
|
+
}>, import("effect/Schema").Struct<{
|
|
5615
|
+
readonly id: import("effect/Schema").String;
|
|
5616
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5617
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5618
|
+
};
|
|
5619
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5620
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5621
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5622
|
+
readonly started: import("effect/Schema").Finite;
|
|
5623
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5624
|
+
}>;
|
|
5625
|
+
readonly kind: import("effect/Schema").tag<"video">;
|
|
5626
|
+
readonly path: import("effect/Schema").String;
|
|
5627
|
+
}>, import("effect/Schema").Struct<{
|
|
5628
|
+
readonly id: import("effect/Schema").String;
|
|
5629
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5630
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5631
|
+
};
|
|
5632
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5633
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5634
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5635
|
+
readonly started: import("effect/Schema").Finite;
|
|
5636
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5637
|
+
}>;
|
|
5638
|
+
readonly kind: import("effect/Schema").tag<"codemode">;
|
|
5639
|
+
}>]>;
|
|
5640
|
+
}>;
|
|
5641
|
+
}> & {
|
|
5642
|
+
type: "experimental.job.updated";
|
|
5643
|
+
durability: "ephemeral";
|
|
5644
|
+
durable: undefined;
|
|
5645
|
+
data: import("effect/Schema").Struct<{
|
|
5646
|
+
readonly info: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5647
|
+
readonly id: import("effect/Schema").String;
|
|
5648
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5649
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5650
|
+
};
|
|
5651
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5652
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5653
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5654
|
+
readonly started: import("effect/Schema").Finite;
|
|
5655
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5656
|
+
}>;
|
|
5657
|
+
readonly kind: import("effect/Schema").tag<"shell">;
|
|
5658
|
+
readonly shellID: import("effect/Schema").String;
|
|
5659
|
+
readonly command: import("effect/Schema").String;
|
|
5660
|
+
}>, import("effect/Schema").Struct<{
|
|
5661
|
+
readonly id: import("effect/Schema").String;
|
|
5662
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5663
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5664
|
+
};
|
|
5665
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5666
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5667
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5668
|
+
readonly started: import("effect/Schema").Finite;
|
|
5669
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5670
|
+
}>;
|
|
5671
|
+
readonly kind: import("effect/Schema").tag<"subagent">;
|
|
5672
|
+
readonly childSessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5673
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5674
|
+
};
|
|
5675
|
+
readonly agent: import("effect/Schema").String;
|
|
5676
|
+
readonly description: import("effect/Schema").String;
|
|
5677
|
+
}>, import("effect/Schema").Struct<{
|
|
5678
|
+
readonly id: import("effect/Schema").String;
|
|
5679
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5680
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5681
|
+
};
|
|
5682
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5683
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5684
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5685
|
+
readonly started: import("effect/Schema").Finite;
|
|
5686
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5687
|
+
}>;
|
|
5688
|
+
readonly kind: import("effect/Schema").tag<"image">;
|
|
5689
|
+
readonly path: import("effect/Schema").String;
|
|
5690
|
+
readonly model: import("effect/Schema").String;
|
|
5691
|
+
}>, import("effect/Schema").Struct<{
|
|
5692
|
+
readonly id: import("effect/Schema").String;
|
|
5693
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5694
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5695
|
+
};
|
|
5696
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5697
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5698
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5699
|
+
readonly started: import("effect/Schema").Finite;
|
|
5700
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5701
|
+
}>;
|
|
5702
|
+
readonly kind: import("effect/Schema").tag<"video">;
|
|
5703
|
+
readonly path: import("effect/Schema").String;
|
|
5704
|
+
}>, import("effect/Schema").Struct<{
|
|
5705
|
+
readonly id: import("effect/Schema").String;
|
|
5706
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5707
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5708
|
+
};
|
|
5709
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "completed", "error", "cancelled"]>;
|
|
5710
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
5711
|
+
readonly time: import("effect/Schema").Struct<{
|
|
5712
|
+
readonly started: import("effect/Schema").Finite;
|
|
5713
|
+
readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Finite>>, import("effect/Schema").optionalKey<import("effect/Schema").Finite>, never, never>;
|
|
5714
|
+
}>;
|
|
5715
|
+
readonly kind: import("effect/Schema").tag<"codemode">;
|
|
5716
|
+
}>]>;
|
|
5717
|
+
}>;
|
|
5542
5718
|
}, import("effect/Schema").Struct<{
|
|
5543
5719
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5544
5720
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -7909,6 +8085,78 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
7909
8085
|
readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
|
|
7910
8086
|
readonly credentialID: string & import("effect/Brand").Brand<"Credential.ID">;
|
|
7911
8087
|
};
|
|
8088
|
+
} | {
|
|
8089
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8090
|
+
readonly created: number;
|
|
8091
|
+
readonly metadata?: {
|
|
8092
|
+
readonly [x: string]: unknown;
|
|
8093
|
+
} | undefined;
|
|
8094
|
+
readonly type: "experimental.job.updated";
|
|
8095
|
+
readonly location?: {
|
|
8096
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
8097
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
8098
|
+
} | undefined;
|
|
8099
|
+
readonly data: {
|
|
8100
|
+
readonly info: {
|
|
8101
|
+
readonly id: string;
|
|
8102
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8103
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
8104
|
+
readonly title?: string | undefined;
|
|
8105
|
+
readonly time: {
|
|
8106
|
+
readonly started: number;
|
|
8107
|
+
readonly completed?: number | undefined;
|
|
8108
|
+
};
|
|
8109
|
+
readonly kind: "shell";
|
|
8110
|
+
readonly shellID: string;
|
|
8111
|
+
readonly command: string;
|
|
8112
|
+
} | {
|
|
8113
|
+
readonly id: string;
|
|
8114
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8115
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
8116
|
+
readonly title?: string | undefined;
|
|
8117
|
+
readonly time: {
|
|
8118
|
+
readonly started: number;
|
|
8119
|
+
readonly completed?: number | undefined;
|
|
8120
|
+
};
|
|
8121
|
+
readonly kind: "subagent";
|
|
8122
|
+
readonly childSessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8123
|
+
readonly agent: string;
|
|
8124
|
+
readonly description: string;
|
|
8125
|
+
} | {
|
|
8126
|
+
readonly id: string;
|
|
8127
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8128
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
8129
|
+
readonly title?: string | undefined;
|
|
8130
|
+
readonly time: {
|
|
8131
|
+
readonly started: number;
|
|
8132
|
+
readonly completed?: number | undefined;
|
|
8133
|
+
};
|
|
8134
|
+
readonly kind: "image";
|
|
8135
|
+
readonly path: string;
|
|
8136
|
+
readonly model: string;
|
|
8137
|
+
} | {
|
|
8138
|
+
readonly id: string;
|
|
8139
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8140
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
8141
|
+
readonly title?: string | undefined;
|
|
8142
|
+
readonly time: {
|
|
8143
|
+
readonly started: number;
|
|
8144
|
+
readonly completed?: number | undefined;
|
|
8145
|
+
};
|
|
8146
|
+
readonly kind: "video";
|
|
8147
|
+
readonly path: string;
|
|
8148
|
+
} | {
|
|
8149
|
+
readonly id: string;
|
|
8150
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8151
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
8152
|
+
readonly title?: string | undefined;
|
|
8153
|
+
readonly time: {
|
|
8154
|
+
readonly started: number;
|
|
8155
|
+
readonly completed?: number | undefined;
|
|
8156
|
+
};
|
|
8157
|
+
readonly kind: "codemode";
|
|
8158
|
+
};
|
|
8159
|
+
};
|
|
7912
8160
|
} | {
|
|
7913
8161
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7914
8162
|
readonly created: number;
|
package/dist/api.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
3
|
+
} from "./chunks/routes-8pn9ceqg.js";
|
|
4
|
+
import"./chunks/routes-ah2sj2pr.js";
|
|
5
|
+
import"./chunks/routes-vw0q3knq.js";
|
|
6
|
+
import"./chunks/routes-ywn523ee.js";
|
|
7
|
+
import"./chunks/routes-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./routes-8pn9ceqg.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./routes-8pn9ceqg.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-8pn9ceqg.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./routes-2b13xzyt.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/credential.ts
|
|
9
9
|
import { Credential } from "@opencode/core/credential";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/service-status.ts
|
|
6
6
|
var exports_service_status = {};
|
|
7
7
|
__export(exports_service_status, {
|
|
8
8
|
Status: () => exports_service_status,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make2
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make2 = Effect.fnUntraced(function* (options = {}) {
|
|
13
13
|
const current = yield* Ref.make(options.initial ?? { type: "starting" });
|
|
14
14
|
const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
|
|
15
15
|
return {
|
|
@@ -20,4 +20,4 @@ var make3 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make2, exports_service_status };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer4
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./routes-ah2sj2pr.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./routes-vw0q3knq.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./routes-8pn9ceqg.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./routes-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./routes-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
20
|
layer2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./routes-z3e7v67k.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./routes-mzs0n5xz.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./routes-nts8mhtp.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./routes-7b9xm1qg.js";
|
|
31
31
|
import {
|
|
32
32
|
schemaErrorLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./routes-bd8755ek.js";
|
|
34
34
|
import {
|
|
35
35
|
defectResponseLayer2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./routes-n26yr6pw.js";
|
|
37
37
|
|
|
38
38
|
// src/routes.ts
|
|
39
39
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-8pn9ceqg.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./routes-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./routes-7qpea5x7.js";
|
|
11
11
|
import {
|
|
12
12
|
makeBlobGet2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./routes-50kbksvb.js";
|
|
14
14
|
import {
|
|
15
15
|
makeAutomation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./routes-9cd3a4b8.js";
|
|
17
17
|
import {
|
|
18
18
|
makeJob2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./routes-7ydfwv45.js";
|
|
20
20
|
import {
|
|
21
21
|
makeMediaGet2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./routes-djr0jy89.js";
|
|
23
23
|
import {
|
|
24
24
|
runPtySocket2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./routes-q187pxxd.js";
|
|
26
26
|
|
|
27
27
|
// src/handlers/persistent-pty.ts
|
|
28
28
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -51,7 +51,7 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
|
|
|
51
51
|
const mediaGet = yield* makeMediaGet2;
|
|
52
52
|
const blobGet = yield* makeBlobGet2;
|
|
53
53
|
const automation = yield* makeAutomation2;
|
|
54
|
-
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handleRaw("blob.get", (ctx) => blobGet(ctx.params.id, 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("automation.create", (ctx) => automation.create(ctx.payload)).handle("automation.list", (ctx) => automation.list(ctx.query)).handle("automation.get", (ctx) => automation.get(ctx.params.automationID)).handle("automation.pause", (ctx) => automation.pause(ctx.params.automationID)).handle("automation.resume", (ctx) => automation.resume(ctx.params.automationID)).handle("automation.delete", (ctx) => automation.remove(ctx.params.automationID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
|
|
54
|
+
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handleRaw("blob.get", (ctx) => blobGet(ctx.params.id, ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).handle("job.cancel", (ctx) => job.cancel(ctx.params.id)).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("automation.create", (ctx) => automation.create(ctx.payload)).handle("automation.list", (ctx) => automation.list(ctx.query)).handle("automation.get", (ctx) => automation.get(ctx.params.automationID)).handle("automation.pause", (ctx) => automation.pause(ctx.params.automationID)).handle("automation.resume", (ctx) => automation.resume(ctx.params.automationID)).handle("automation.delete", (ctx) => automation.remove(ctx.params.automationID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
|
|
55
55
|
return { data: yield* pty.read(ctx.params.sessionID, ctx.query.lines).pipe(mapUnavailable) };
|
|
56
56
|
})).handle("persistentPty.list", Effect.fn(function* (ctx) {
|
|
57
57
|
return { data: yield* pty.list(ctx.params.sessionID).pipe(mapUnavailable) };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./routes-8pn9ceqg.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
download2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-t32e1bbt.js";
|
|
4
4
|
import {
|
|
5
5
|
parse2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./routes-8sb6qqpn.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/blob.ts
|
|
9
9
|
import { BlobStore } from "@opencode/core/blob-store";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./routes-ywn523ee.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./routes-8pn9ceqg.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
requestRef2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./routes-ywn523ee.js";
|
|
9
9
|
|
|
10
10
|
// src/handlers/artifact.ts
|
|
11
11
|
import { Artifact } from "@opencode/core/artifact";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-smaf4a18.js";
|
|
4
4
|
|
|
5
5
|
// src/handlers/job.ts
|
|
6
6
|
import { Job } from "@opencode/core/job";
|
|
@@ -21,6 +21,9 @@ var makeJob2 = Effect.gen(function* () {
|
|
|
21
21
|
return {
|
|
22
22
|
data: yield* SessionBackground.list(jobs, lookup, query)
|
|
23
23
|
};
|
|
24
|
+
}),
|
|
25
|
+
cancel: Effect.fn("JobHandler.cancel")(function* (id) {
|
|
26
|
+
yield* jobs.cancel(id);
|
|
24
27
|
})
|
|
25
28
|
};
|
|
26
29
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./routes-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./routes-ah2sj2pr.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./routes-vw0q3knq.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|