@opencode/server 2.2.3 → 2.2.5
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/location-02a60aws.js +144 -0
- package/dist/chunks/{service-status-059rbh9c.js → location-059rbh9c.js} +1 -1
- package/dist/chunks/{service-status-sqxx1p54.js → location-0r9ve3h3.js} +2 -2
- package/dist/chunks/{service-status-1t8ee1b5.js → location-1jtv083t.js} +2 -2
- package/dist/chunks/{service-status-0mnp9wde.js → location-1kj4am0h.js} +6 -6
- package/dist/chunks/{service-status-rxyx8sa0.js → location-4xzps9pr.js} +2 -2
- package/dist/chunks/{service-status-dm74gm07.js → location-5n22zpzy.js} +6 -6
- package/dist/chunks/{service-status-vtfzy3at.js → location-62bfwtjc.js} +2 -2
- package/dist/chunks/{service-status-7b9xm1qg.js → location-7b9xm1qg.js} +1 -1
- package/dist/chunks/{service-status-7dtbad8d.js → location-7dtbad8d.js} +1 -1
- package/dist/chunks/{service-status-7tewdwsb.js → location-85kbrn7y.js} +2 -2
- package/dist/chunks/{service-status-xbqm7mpj.js → location-9q55v56g.js} +2 -2
- package/dist/chunks/{service-status-7cd61xtm.js → location-axx4wwen.js} +2 -2
- package/dist/chunks/{service-status-1s3664te.js → location-bknbvq67.js} +4 -4
- package/dist/chunks/{service-status-39fj7rnq.js → location-c48av16v.js} +15 -13
- package/dist/chunks/{service-status-wqv43pj9.js → location-dczgzh3x.js} +2 -2
- package/dist/chunks/{service-status-gk0yxcp6.js → location-ddnay6e1.js} +1 -1
- package/dist/chunks/{service-status-0e4fm4yw.js → location-e0z6mnzj.js} +1 -1
- package/dist/chunks/{service-status-39nnfjx1.js → location-e6e4kz0w.js} +4 -4
- package/dist/chunks/{service-status-ac10qb5k.js → location-ey9m07rx.js} +3 -3
- package/dist/chunks/{service-status-74kxthdf.js → location-f0kpaq89.js} +1 -1
- package/dist/chunks/{service-status-bv5jg9y6.js → location-f1ds1268.js} +2 -2
- package/dist/chunks/{service-status-skcryrty.js → location-f96zeczf.js} +2 -2
- package/dist/chunks/{service-status-fvqb5t8b.js → location-g6bmzkma.js} +27 -9
- package/dist/chunks/{service-status-gqq6kfhc.js → location-gymtz25n.js} +3 -3
- package/dist/chunks/{service-status-zyntahe8.js → location-hr24310e.js} +1 -1
- package/dist/chunks/{service-status-j4at0y5c.js → location-j4at0y5c.js} +1 -1
- package/dist/chunks/{service-status-jc2vwkyw.js → location-j6d0mxrp.js} +2 -2
- package/dist/chunks/{service-status-9jpfpdce.js → location-ja97ph8b.js} +4 -4
- package/dist/chunks/{service-status-w9jcwh65.js → location-kqr36gas.js} +7 -7
- package/dist/chunks/{service-status-zmgfywqd.js → location-mam5ppd3.js} +1 -1
- package/dist/chunks/{service-status-zkg10e14.js → location-nzrkt0f5.js} +4 -4
- package/dist/chunks/{service-status-2qjvs0kv.js → location-pbxe02h0.js} +4 -4
- package/dist/chunks/{service-status-50xc6x42.js → location-q7gnt7ra.js} +3 -3
- package/dist/chunks/{service-status-fvpjvjpp.js → location-qfyg9gb7.js} +7 -7
- package/dist/chunks/{service-status-0pbbhyf6.js → location-tgb4pddq.js} +2 -2
- package/dist/chunks/{service-status-r5696se6.js → location-v7p1kzzd.js} +3 -3
- package/dist/chunks/{service-status-5z5anmwp.js → location-va7wgp70.js} +2 -2
- package/dist/chunks/{service-status-7x1re4zg.js → location-vyzvby0b.js} +2 -2
- package/dist/chunks/{service-status-6211mtn3.js → location-wy3c18g3.js} +35 -35
- package/dist/chunks/{service-status-yet0vexm.js → location-x74w7e1f.js} +1 -1
- package/dist/chunks/{service-status-f4exzdsf.js → location-xad49dn3.js} +2 -2
- package/dist/chunks/{service-status-2835150m.js → location-xfynz25m.js} +2 -2
- package/dist/chunks/{service-status-vvp99hc9.js → location-xwy6frfd.js} +1 -1
- package/dist/chunks/{service-status-370cpmna.js → location-y56ann6c.js} +2 -2
- package/dist/chunks/{service-status-vfkjeyp3.js → location-z48nkxh0.js} +1 -1
- package/dist/chunks/{service-status-xpg37vzc.js → location-zzxz7279.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- 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 +57 -56
- 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 +1 -1
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +55 -54
- package/package.json +9 -9
- /package/dist/chunks/{service-status-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-status-bd8755ek.js → location-bd8755ek.js} +0 -0
- /package/dist/chunks/{service-status-h6rt5k9s.js → location-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{service-status-n321d8vm.js → location-n321d8vm.js} +0 -0
- /package/dist/chunks/{service-status-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{service-status-smaf4a18.js → location-smaf4a18.js} +0 -0
- /package/dist/chunks/{service-status-xthc02cw.js → location-xthc02cw.js} +0 -0
- /package/dist/chunks/{service-status-yc7nft6q.js → location-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" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "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" | "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.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" | "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.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">;
|
|
@@ -5126,6 +5126,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
5126
5126
|
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5127
5127
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5128
5128
|
};
|
|
5129
|
+
readonly userTitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5129
5130
|
readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5130
5131
|
readonly size: import("effect/Schema").Struct<{
|
|
5131
5132
|
readonly cols: import("effect/Schema").Int;
|
|
@@ -5160,6 +5161,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
5160
5161
|
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5161
5162
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5162
5163
|
};
|
|
5164
|
+
readonly userTitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5163
5165
|
readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5164
5166
|
readonly size: import("effect/Schema").Struct<{
|
|
5165
5167
|
readonly cols: import("effect/Schema").Int;
|
|
@@ -5219,6 +5221,98 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
5219
5221
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
5220
5222
|
};
|
|
5221
5223
|
}>;
|
|
5224
|
+
}, import("effect/Schema").Struct<{
|
|
5225
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5226
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5227
|
+
};
|
|
5228
|
+
readonly created: import("effect/Schema").Finite;
|
|
5229
|
+
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>;
|
|
5230
|
+
readonly type: import("effect/Schema").Literal<"persistent-pty.updated">;
|
|
5231
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
5232
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5233
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5234
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5235
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5236
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5237
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5238
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5239
|
+
}>, never, never>;
|
|
5240
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
5241
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5242
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5243
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5244
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5245
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5246
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5247
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5248
|
+
}>, never, never>;
|
|
5249
|
+
}>>, never, never>;
|
|
5250
|
+
readonly data: import("effect/Schema").Struct<{
|
|
5251
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5252
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5253
|
+
};
|
|
5254
|
+
readonly terminal: import("effect/Schema").Struct<{
|
|
5255
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
|
|
5256
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
5257
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
5258
|
+
};
|
|
5259
|
+
readonly title: import("effect/Schema").String;
|
|
5260
|
+
readonly command: import("effect/Schema").String;
|
|
5261
|
+
readonly args: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
5262
|
+
readonly cwd: import("effect/Schema").String;
|
|
5263
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "exited"]>;
|
|
5264
|
+
readonly pid: import("effect/Schema").Int;
|
|
5265
|
+
readonly exitCode: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
|
|
5266
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5267
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5268
|
+
};
|
|
5269
|
+
readonly userTitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5270
|
+
readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5271
|
+
readonly size: import("effect/Schema").Struct<{
|
|
5272
|
+
readonly cols: import("effect/Schema").Int;
|
|
5273
|
+
readonly rows: import("effect/Schema").Int;
|
|
5274
|
+
}>;
|
|
5275
|
+
readonly output: import("effect/Schema").Struct<{
|
|
5276
|
+
readonly head: import("effect/Schema").Int;
|
|
5277
|
+
readonly tail: import("effect/Schema").Int;
|
|
5278
|
+
}>;
|
|
5279
|
+
}>;
|
|
5280
|
+
}>;
|
|
5281
|
+
}> & {
|
|
5282
|
+
type: "persistent-pty.updated";
|
|
5283
|
+
durability: "ephemeral";
|
|
5284
|
+
durable: undefined;
|
|
5285
|
+
data: import("effect/Schema").Struct<{
|
|
5286
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5287
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5288
|
+
};
|
|
5289
|
+
readonly terminal: import("effect/Schema").Struct<{
|
|
5290
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
|
|
5291
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
5292
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
5293
|
+
};
|
|
5294
|
+
readonly title: import("effect/Schema").String;
|
|
5295
|
+
readonly command: import("effect/Schema").String;
|
|
5296
|
+
readonly args: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
5297
|
+
readonly cwd: import("effect/Schema").String;
|
|
5298
|
+
readonly status: import("effect/Schema").Literals<readonly ["running", "exited"]>;
|
|
5299
|
+
readonly pid: import("effect/Schema").Int;
|
|
5300
|
+
readonly exitCode: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
|
|
5301
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
5302
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5303
|
+
};
|
|
5304
|
+
readonly userTitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5305
|
+
readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
5306
|
+
readonly size: import("effect/Schema").Struct<{
|
|
5307
|
+
readonly cols: import("effect/Schema").Int;
|
|
5308
|
+
readonly rows: import("effect/Schema").Int;
|
|
5309
|
+
}>;
|
|
5310
|
+
readonly output: import("effect/Schema").Struct<{
|
|
5311
|
+
readonly head: import("effect/Schema").Int;
|
|
5312
|
+
readonly tail: import("effect/Schema").Int;
|
|
5313
|
+
}>;
|
|
5314
|
+
}>;
|
|
5315
|
+
}>;
|
|
5222
5316
|
}, import("effect/Schema").Struct<{
|
|
5223
5317
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5224
5318
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -5785,6 +5879,38 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
5785
5879
|
durability: "ephemeral";
|
|
5786
5880
|
durable: undefined;
|
|
5787
5881
|
data: import("effect/Schema").Struct<{}>;
|
|
5882
|
+
}, import("effect/Schema").Struct<{
|
|
5883
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5884
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5885
|
+
};
|
|
5886
|
+
readonly created: import("effect/Schema").Finite;
|
|
5887
|
+
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>;
|
|
5888
|
+
readonly type: import("effect/Schema").Literal<"artifact.updated">;
|
|
5889
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
5890
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5891
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5892
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5893
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5894
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5895
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5896
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5897
|
+
}>, never, never>;
|
|
5898
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
5899
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5900
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5901
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5902
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5903
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
5904
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5905
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5906
|
+
}>, never, never>;
|
|
5907
|
+
}>>, never, never>;
|
|
5908
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
5909
|
+
}> & {
|
|
5910
|
+
type: "artifact.updated";
|
|
5911
|
+
durability: "ephemeral";
|
|
5912
|
+
durable: undefined;
|
|
5913
|
+
data: import("effect/Schema").Struct<{}>;
|
|
5788
5914
|
}, import("effect/Schema").Struct<{
|
|
5789
5915
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5790
5916
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -7581,6 +7707,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
7581
7707
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
7582
7708
|
} | undefined;
|
|
7583
7709
|
readonly data: {};
|
|
7710
|
+
} | {
|
|
7711
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7712
|
+
readonly created: number;
|
|
7713
|
+
readonly metadata?: {
|
|
7714
|
+
readonly [x: string]: unknown;
|
|
7715
|
+
} | undefined;
|
|
7716
|
+
readonly type: "artifact.updated";
|
|
7717
|
+
readonly location?: {
|
|
7718
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
7719
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
7720
|
+
} | undefined;
|
|
7721
|
+
readonly data: {};
|
|
7584
7722
|
} | {
|
|
7585
7723
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7586
7724
|
readonly created: number;
|
|
@@ -8060,6 +8198,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
8060
8198
|
readonly pid: number;
|
|
8061
8199
|
readonly exitCode?: number | undefined;
|
|
8062
8200
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8201
|
+
readonly userTitle: string | null;
|
|
8063
8202
|
readonly foregroundProcess: string | null;
|
|
8064
8203
|
readonly size: {
|
|
8065
8204
|
readonly cols: number;
|
|
@@ -8086,6 +8225,41 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
8086
8225
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8087
8226
|
readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
|
|
8088
8227
|
};
|
|
8228
|
+
} | {
|
|
8229
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8230
|
+
readonly created: number;
|
|
8231
|
+
readonly metadata?: {
|
|
8232
|
+
readonly [x: string]: unknown;
|
|
8233
|
+
} | undefined;
|
|
8234
|
+
readonly type: "persistent-pty.updated";
|
|
8235
|
+
readonly location?: {
|
|
8236
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
8237
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
8238
|
+
} | undefined;
|
|
8239
|
+
readonly data: {
|
|
8240
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8241
|
+
readonly terminal: {
|
|
8242
|
+
readonly id: string & import("effect/Brand").Brand<"PtyID">;
|
|
8243
|
+
readonly title: string;
|
|
8244
|
+
readonly command: string;
|
|
8245
|
+
readonly args: readonly string[];
|
|
8246
|
+
readonly cwd: string;
|
|
8247
|
+
readonly status: "exited" | "running";
|
|
8248
|
+
readonly pid: number;
|
|
8249
|
+
readonly exitCode?: number | undefined;
|
|
8250
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8251
|
+
readonly userTitle: string | null;
|
|
8252
|
+
readonly foregroundProcess: string | null;
|
|
8253
|
+
readonly size: {
|
|
8254
|
+
readonly cols: number;
|
|
8255
|
+
readonly rows: number;
|
|
8256
|
+
};
|
|
8257
|
+
readonly output: {
|
|
8258
|
+
readonly head: number;
|
|
8259
|
+
readonly tail: number;
|
|
8260
|
+
};
|
|
8261
|
+
};
|
|
8262
|
+
};
|
|
8089
8263
|
} | {
|
|
8090
8264
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8091
8265
|
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/location-v7p1kzzd.js";
|
|
4
|
+
import"./chunks/location-ddnay6e1.js";
|
|
5
|
+
import"./chunks/location-x74w7e1f.js";
|
|
6
|
+
import"./chunks/location-gymtz25n.js";
|
|
7
|
+
import"./chunks/location-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import {
|
|
2
|
+
missingSession2
|
|
3
|
+
} from "./location-smaf4a18.js";
|
|
4
|
+
import {
|
|
5
|
+
locationErrors2,
|
|
6
|
+
awaitPlugins2,
|
|
7
|
+
response2,
|
|
8
|
+
requestRef2
|
|
9
|
+
} from "./location-gymtz25n.js";
|
|
10
|
+
|
|
11
|
+
// src/handlers/artifact.ts
|
|
12
|
+
import { Artifact } from "@opencode/core/artifact";
|
|
13
|
+
import { KV } from "@opencode/core/kv";
|
|
14
|
+
import { Location } from "@opencode/core/location";
|
|
15
|
+
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
16
|
+
import { AbsolutePath } from "@opencode/core/schema";
|
|
17
|
+
import { Session } from "@opencode/core/session";
|
|
18
|
+
import {
|
|
19
|
+
ArtifactNotFoundError,
|
|
20
|
+
FileNotFoundError,
|
|
21
|
+
ForbiddenError,
|
|
22
|
+
InvalidRequestError,
|
|
23
|
+
ProviderNotFoundError,
|
|
24
|
+
ServiceUnavailableError
|
|
25
|
+
} from "@opencode/protocol/errors";
|
|
26
|
+
import { Effect } from "effect";
|
|
27
|
+
import { HttpServerResponse } from "effect/http";
|
|
28
|
+
import { HttpApiSchema } from "effect/http-api";
|
|
29
|
+
var makeArtifact2 = Effect.gen(function* () {
|
|
30
|
+
const locations = yield* LocationServiceMap.Service;
|
|
31
|
+
const sessions = yield* Session.Service;
|
|
32
|
+
const kv = yield* KV.Service;
|
|
33
|
+
const explicitDirectory = (request, location) => {
|
|
34
|
+
if (location?.directory !== undefined)
|
|
35
|
+
return location.directory;
|
|
36
|
+
const query = new URL(request.url, "http://localhost").searchParams.get("location[directory]");
|
|
37
|
+
if (query)
|
|
38
|
+
return query;
|
|
39
|
+
const header = request.headers["x-opencode-directory"];
|
|
40
|
+
if (!header)
|
|
41
|
+
return;
|
|
42
|
+
try {
|
|
43
|
+
return decodeURIComponent(header);
|
|
44
|
+
} catch {
|
|
45
|
+
return header;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const resolveLocation = (request, options) => Effect.gen(function* () {
|
|
49
|
+
const requestedDir = explicitDirectory(request, options.location);
|
|
50
|
+
if (requestedDir !== undefined) {
|
|
51
|
+
return Location.Ref.make({ directory: AbsolutePath.make(requestedDir) });
|
|
52
|
+
}
|
|
53
|
+
if (options.sessionID !== undefined) {
|
|
54
|
+
const session = yield* sessions.get(options.sessionID).pipe(Effect.mapError(missingSession2));
|
|
55
|
+
return session.location;
|
|
56
|
+
}
|
|
57
|
+
if (options.artifactID !== undefined) {
|
|
58
|
+
const directory = yield* Artifact.locate(kv, options.artifactID);
|
|
59
|
+
if (directory !== undefined) {
|
|
60
|
+
return Location.Ref.make({ directory: AbsolutePath.make(directory) });
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return requestRef2(request);
|
|
64
|
+
});
|
|
65
|
+
const inLocation = (request, options, effect) => Effect.gen(function* () {
|
|
66
|
+
const ref = yield* resolveLocation(request, options);
|
|
67
|
+
return yield* awaitPlugins2.pipe(Effect.andThen(effect), Effect.provide(locations.get(ref)), locationErrors2);
|
|
68
|
+
});
|
|
69
|
+
const mapCommon = (effect) => effect.pipe(Effect.catchTags({
|
|
70
|
+
"Artifact.DisabledError": (error) => Effect.fail(new ForbiddenError({ message: error.message })),
|
|
71
|
+
"Artifact.NotFoundError": (error) => Effect.fail(new ArtifactNotFoundError({ artifactID: error.artifactID, message: error.message })),
|
|
72
|
+
"Artifact.ProviderNotFoundError": (error) => Effect.fail(new ProviderNotFoundError({ providerID: error.providerID, message: error.message })),
|
|
73
|
+
"Artifact.InvalidError": (error) => Effect.fail(new InvalidRequestError({ message: error.message, kind: "artifact_invalid", field: error.field })),
|
|
74
|
+
"Artifact.ProviderError": (error) => Effect.fail(new ServiceUnavailableError({ message: error.message, service: error.providerID })),
|
|
75
|
+
"Session.NotFoundError": (error) => Effect.fail(missingSession2(error))
|
|
76
|
+
}));
|
|
77
|
+
return {
|
|
78
|
+
providers: (query, request) => inLocation(request, { location: query.location }, Effect.gen(function* () {
|
|
79
|
+
const artifacts = yield* Artifact.Service;
|
|
80
|
+
return yield* response2(artifacts.providers());
|
|
81
|
+
})).pipe(mapCommon),
|
|
82
|
+
list: (query, request) => inLocation(request, { location: query.location, sessionID: query.sessionID }, Effect.gen(function* () {
|
|
83
|
+
const artifacts = yield* Artifact.Service;
|
|
84
|
+
return yield* response2(artifacts.list({ sessionID: query.sessionID, provider: query.provider }));
|
|
85
|
+
})).pipe(mapCommon),
|
|
86
|
+
create: (query, payload, request) => inLocation(request, { location: query.location, sessionID: payload.sessionID }, Effect.gen(function* () {
|
|
87
|
+
const artifacts = yield* Artifact.Service;
|
|
88
|
+
return yield* response2(artifacts.create(payload));
|
|
89
|
+
})).pipe(mapCommon),
|
|
90
|
+
get: (artifactID, query, request) => inLocation(request, { location: query.location, artifactID }, Effect.gen(function* () {
|
|
91
|
+
const artifacts = yield* Artifact.Service;
|
|
92
|
+
return yield* response2(artifacts.get(artifactID));
|
|
93
|
+
})).pipe(mapCommon),
|
|
94
|
+
update: (artifactID, query, payload, request) => inLocation(request, { location: query.location, sessionID: payload.sessionID, artifactID }, Effect.gen(function* () {
|
|
95
|
+
const artifacts = yield* Artifact.Service;
|
|
96
|
+
return yield* response2(artifacts.update(artifactID, payload));
|
|
97
|
+
})).pipe(mapCommon),
|
|
98
|
+
remove: (artifactID, query, request) => inLocation(request, { location: query.location, artifactID }, Effect.gen(function* () {
|
|
99
|
+
const artifacts = yield* Artifact.Service;
|
|
100
|
+
yield* artifacts.remove(artifactID);
|
|
101
|
+
return HttpApiSchema.NoContent.make();
|
|
102
|
+
})).pipe(mapCommon),
|
|
103
|
+
view: (artifactID, query, request) => inLocation(request, { location: query.location, artifactID }, Effect.gen(function* () {
|
|
104
|
+
const artifacts = yield* Artifact.Service;
|
|
105
|
+
const parsed = new URL(request.url, "http://localhost");
|
|
106
|
+
const prefix = `/api/experimental/artifacts/${encodeURIComponent(artifactID)}/view`;
|
|
107
|
+
if (parsed.pathname === prefix) {
|
|
108
|
+
yield* artifacts.info(artifactID);
|
|
109
|
+
return HttpServerResponse.empty({
|
|
110
|
+
status: 308,
|
|
111
|
+
headers: { location: `${prefix}/${parsed.search}` }
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
const subpath = extractViewSubpath(request.url, artifactID);
|
|
115
|
+
const file = yield* artifacts.readLocalFile(artifactID, subpath).pipe(Effect.catchTag("Artifact.FileMissingError", (error) => Effect.fail(new FileNotFoundError({ path: error.path, message: error.message }))));
|
|
116
|
+
return HttpServerResponse.uint8Array(file.bytes, {
|
|
117
|
+
status: 200,
|
|
118
|
+
contentType: file.mime,
|
|
119
|
+
headers: {
|
|
120
|
+
"access-control-allow-origin": "*",
|
|
121
|
+
"cache-control": "private, no-cache",
|
|
122
|
+
"content-security-policy": "sandbox allow-scripts",
|
|
123
|
+
"x-content-type-options": "nosniff"
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
})).pipe(mapCommon)
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
function extractViewSubpath(url, artifactID) {
|
|
130
|
+
const pathname = new URL(url, "http://localhost").pathname;
|
|
131
|
+
const prefix = `/api/experimental/artifacts/${encodeURIComponent(artifactID)}/view/`;
|
|
132
|
+
if (!pathname.startsWith(prefix))
|
|
133
|
+
return;
|
|
134
|
+
const raw = pathname.slice(prefix.length);
|
|
135
|
+
if (!raw)
|
|
136
|
+
return;
|
|
137
|
+
try {
|
|
138
|
+
return decodeURIComponent(raw);
|
|
139
|
+
} catch {
|
|
140
|
+
return raw;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export { makeArtifact2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-v7p1kzzd.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/plugin.ts
|
|
9
9
|
import { Plugin } from "@opencode/core/plugin";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-v7p1kzzd.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-f1ds1268.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/credential.ts
|
|
9
9
|
import { Credential } from "@opencode/core/credential";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-c48av16v.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/fetch.ts
|
|
12
12
|
var exports_fetch = {};
|
|
13
13
|
__export(exports_fetch, {
|
|
14
14
|
ServerFetch: () => exports_fetch,
|
|
15
|
-
make: () =>
|
|
15
|
+
make: () => make2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Layer } from "effect";
|
|
18
18
|
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
|
|
19
19
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
20
|
-
var
|
|
20
|
+
var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
21
21
|
const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
|
|
22
22
|
yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
|
|
23
23
|
return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { make2, exports_fetch };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-v7p1kzzd.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/shell.ts
|
|
9
9
|
import { Shell } from "@opencode/core/shell";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-v7p1kzzd.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-j4at0y5c.js";
|
|
10
10
|
import {
|
|
11
11
|
Service4
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-7dtbad8d.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service2
|
|
15
|
+
} from "./location-kqr36gas.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { hostname } from "node:os";
|
|
@@ -22,7 +22,7 @@ import { HttpApiBuilder } from "effect/http-api";
|
|
|
22
22
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
23
23
|
import { UnauthorizedError } from "@opencode/protocol/errors";
|
|
24
24
|
var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
|
|
25
|
-
const pairing = yield*
|
|
25
|
+
const pairing = yield* Service2;
|
|
26
26
|
const auth = yield* Config2;
|
|
27
27
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
28
28
|
const info = yield* Service4;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/provider.ts
|
|
10
10
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-v7p1kzzd.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/vcs.ts
|
|
9
9
|
import { Vcs } from "@opencode/core/vcs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-v7p1kzzd.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/skill.ts
|
|
9
9
|
import { Skill } from "@opencode/core/skill";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-gymtz25n.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-v7p1kzzd.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-h6rt5k9s.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/mcp.ts
|
|
18
18
|
import { Location } from "@opencode/core/location";
|