@opencode/server 2.1.3 → 2.2.0
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 +854 -969
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/server-info-1gwc8nvb.js +69 -0
- package/dist/chunks/{service-status-z554rpg5.js → server-info-1v577ncx.js} +4 -2
- package/dist/chunks/{service-status-79n3507d.js → server-info-1wd9c1m3.js} +3 -3
- package/dist/chunks/{service-status-jwf0kwqx.js → server-info-2eaky32g.js} +12 -3
- package/dist/chunks/{service-status-a30hykaf.js → server-info-2h6qktqa.js} +24 -6
- package/dist/chunks/{service-status-6tj91hdj.js → server-info-4fy84009.js} +3 -3
- package/dist/chunks/{service-status-yzwm8eeq.js → server-info-4q6e7fh8.js} +2 -2
- package/dist/chunks/{service-status-gymtz25n.js → server-info-50bbk3b2.js} +3 -3
- package/dist/chunks/{service-status-rj8tbp10.js → server-info-5b42hxrf.js} +1 -1
- package/dist/chunks/{service-status-x2cwbfak.js → server-info-5pdfedjd.js} +7 -7
- package/dist/chunks/{service-status-1qc831kp.js → server-info-5s6gh8sx.js} +7 -3
- package/dist/chunks/{service-status-vg0x3zn0.js → server-info-6z9pvq7p.js} +1 -1
- package/dist/chunks/{service-status-6v4wsps6.js → server-info-7b9xm1qg.js} +3 -2
- package/dist/chunks/{service-status-7qrtcnv4.js → server-info-a8jcac9a.js} +1 -1
- package/dist/chunks/{service-status-5ewqf72w.js → server-info-az0609r6.js} +4 -2
- package/dist/chunks/server-info-b0f38s3n.js +105 -0
- package/dist/chunks/server-info-b105zy65.js +22 -0
- package/dist/chunks/{service-status-x74w7e1f.js → server-info-b3bmdkga.js} +1 -1
- package/dist/chunks/{service-status-erzfdgke.js → server-info-bd8755ek.js} +16 -1
- package/dist/chunks/server-info-bhbc7551.js +107 -0
- package/dist/chunks/{service-status-11d378s5.js → server-info-btahnm2b.js} +3 -3
- package/dist/chunks/{service-status-c2hv5jmf.js → server-info-cezwbsk5.js} +1 -1
- package/dist/chunks/{service-status-crt28xe4.js → server-info-d0edqfxx.js} +4 -11
- package/dist/chunks/{service-status-e6e4kz0w.js → server-info-e6e4kz0w.js} +1 -1
- package/dist/chunks/{service-status-5adf1am9.js → server-info-f559fakr.js} +2 -2
- package/dist/chunks/{service-status-pf9k0dqe.js → server-info-h29xjj1e.js} +2 -2
- package/dist/chunks/{service-status-3154e7fk.js → server-info-htyf2qs7.js} +5 -3
- package/dist/chunks/{service-status-5680j7c4.js → server-info-j2d131x1.js} +23 -20
- package/dist/chunks/{service-status-j4at0y5c.js → server-info-j4at0y5c.js} +1 -1
- package/dist/chunks/{service-status-r82dtfrk.js → server-info-j87xz9bt.js} +3 -3
- package/dist/chunks/{service-status-y89d99mz.js → server-info-kkdkqt8j.js} +2 -2
- package/dist/chunks/{service-status-vb61dkrm.js → server-info-kqr36gas.js} +8 -8
- package/dist/chunks/server-info-n321d8vm.js +46 -0
- package/dist/chunks/{service-status-rkmbbexc.js → server-info-nx6f5k7a.js} +4 -4
- package/dist/chunks/{service-status-0znmasm1.js → server-info-ny1j968n.js} +2 -2
- package/dist/chunks/server-info-qcg3sqtb.js +38 -0
- package/dist/chunks/{service-status-6e6jjne7.js → server-info-qd0r787n.js} +2 -2
- package/dist/chunks/{service-status-xcxwzp6z.js → server-info-rha2aq18.js} +4 -4
- package/dist/chunks/{service-status-6tjqh8g4.js → server-info-rw1dfckh.js} +8 -4
- package/dist/chunks/{service-status-2e16a9cc.js → server-info-s282vggx.js} +1 -1
- package/dist/chunks/{service-status-k6dz4enc.js → server-info-s802fzg1.js} +21 -20
- package/dist/chunks/{service-status-10kexchg.js → server-info-te8jwba1.js} +2 -2
- package/dist/chunks/{service-status-53jj3zgg.js → server-info-tjtyxt9h.js} +32 -12
- package/dist/chunks/server-info-xthc02cw.js +6 -0
- package/dist/chunks/server-info-yqhefp4s.js +83 -0
- package/dist/chunks/{service-status-7scj3y0h.js → server-info-yxw63vq5.js} +10 -8
- package/dist/chunks/{service-status-krqg3gd2.js → server-info-zcvan105.js} +1 -1
- package/dist/chunks/{service-status-q6jxy1hn.js → server-info-zpr61asr.js} +15 -38
- package/dist/cors.js +1 -1
- package/dist/event-feed.d.ts +1 -1
- package/dist/event-feed.js +3 -3
- package/dist/fetch.js +50 -48
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/command.js +6 -6
- package/dist/handlers/config.js +6 -6
- package/dist/handlers/credential.js +6 -6
- package/dist/handlers/debug.d.ts +2 -1
- 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.d.ts +2 -1
- package/dist/handlers/fs.js +6 -6
- package/dist/handlers/generate.d.ts +1 -1
- 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.d.ts +3 -1
- package/dist/handlers/mcp.js +8 -6
- package/dist/handlers/media.d.ts +6 -0
- package/dist/handlers/media.js +6 -0
- package/dist/handlers/message.js +7 -6
- 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 +9 -8
- package/dist/handlers/plugin.js +6 -6
- package/dist/handlers/project.d.ts +1 -1
- 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.d.ts +1 -2
- package/dist/handlers/pty.js +8 -9
- 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.d.ts +3 -1
- package/dist/handlers/session.js +7 -6
- package/dist/handlers/shell.js +6 -6
- package/dist/handlers/skill.js +6 -6
- package/dist/handlers/usage.d.ts +1 -0
- package/dist/handlers/usage.js +11 -0
- package/dist/handlers/vcs.js +6 -6
- package/dist/handlers/voice.d.ts +1 -1
- 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 +46 -44
- package/dist/location.js +4 -4
- package/dist/media-uri.d.ts +6 -0
- package/dist/media-uri.js +6 -0
- 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 +5 -5
- package/dist/process.js +54 -51
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +5 -3
- package/dist/routes.js +49 -47
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +1 -1
- package/dist/workerd.js +51 -49
- package/package.json +12 -10
- package/dist/chunks/service-status-0f489yfb.js +0 -102
- package/dist/chunks/service-status-2f9g7rg2.js +0 -20
- package/dist/chunks/service-status-hwdnjend.js +0 -40
- package/dist/chunks/service-status-j3461ttv.js +0 -59
- package/dist/chunks/service-status-z9g9xjb3.js +0 -30
- package/dist/chunks/service-status-zy1wt1f8.js +0 -23
- package/dist/pty-environment.d.ts +0 -13
- package/dist/pty-environment.js +0 -12
- /package/dist/chunks/{service-status-9rqn6x4v.js → server-info-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-status-h6rt5k9s.js → server-info-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{service-status-q4bn6dy8.js → server-info-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{service-status-smaf4a18.js → server-info-smaf4a18.js} +0 -0
- /package/dist/chunks/{service-status-yc7nft6q.js → server-info-yc7nft6q.js} +0 -0
package/dist/handlers/skill.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SkillHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/server-info-ny1j968n.js";
|
|
4
|
+
import"../chunks/server-info-j87xz9bt.js";
|
|
5
|
+
import"../chunks/server-info-htyf2qs7.js";
|
|
6
|
+
import"../chunks/server-info-b3bmdkga.js";
|
|
7
|
+
import"../chunks/server-info-50bbk3b2.js";
|
|
8
|
+
import"../chunks/server-info-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
SkillHandler2 as SkillHandler
|
|
11
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UsageHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.usage">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UsageHandler2
|
|
3
|
+
} from "../chunks/server-info-b105zy65.js";
|
|
4
|
+
import"../chunks/server-info-j87xz9bt.js";
|
|
5
|
+
import"../chunks/server-info-htyf2qs7.js";
|
|
6
|
+
import"../chunks/server-info-b3bmdkga.js";
|
|
7
|
+
import"../chunks/server-info-50bbk3b2.js";
|
|
8
|
+
import"../chunks/server-info-smaf4a18.js";
|
|
9
|
+
export {
|
|
10
|
+
UsageHandler2 as UsageHandler
|
|
11
|
+
};
|
package/dist/handlers/vcs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VcsHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/server-info-5s6gh8sx.js";
|
|
4
|
+
import"../chunks/server-info-j87xz9bt.js";
|
|
5
|
+
import"../chunks/server-info-htyf2qs7.js";
|
|
6
|
+
import"../chunks/server-info-b3bmdkga.js";
|
|
7
|
+
import"../chunks/server-info-50bbk3b2.js";
|
|
8
|
+
import"../chunks/server-info-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
VcsHandler2 as VcsHandler
|
|
11
11
|
};
|
package/dist/handlers/voice.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LocationServiceMap } from "@opencode/core/location-services";
|
|
2
2
|
import { Global } from "@opencode/util/global";
|
|
3
|
-
export declare const VoiceHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.voice">, never,
|
|
3
|
+
export declare const VoiceHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.voice">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | Global.Service | LocationServiceMap.Service>;
|
package/dist/handlers/voice.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VoiceHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/server-info-d0edqfxx.js";
|
|
4
|
+
import"../chunks/server-info-j87xz9bt.js";
|
|
5
|
+
import"../chunks/server-info-htyf2qs7.js";
|
|
6
|
+
import"../chunks/server-info-b3bmdkga.js";
|
|
7
|
+
import"../chunks/server-info-50bbk3b2.js";
|
|
8
|
+
import"../chunks/server-info-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
VoiceHandler2 as VoiceHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSearchHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/server-info-kkdkqt8j.js";
|
|
4
|
+
import"../chunks/server-info-j87xz9bt.js";
|
|
5
|
+
import"../chunks/server-info-htyf2qs7.js";
|
|
6
|
+
import"../chunks/server-info-b3bmdkga.js";
|
|
7
|
+
import"../chunks/server-info-50bbk3b2.js";
|
|
8
|
+
import"../chunks/server-info-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
WebSearchHandler2 as WebSearchHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorktreeHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/server-info-4fy84009.js";
|
|
4
|
+
import"../chunks/server-info-j87xz9bt.js";
|
|
5
|
+
import"../chunks/server-info-htyf2qs7.js";
|
|
6
|
+
import"../chunks/server-info-b3bmdkga.js";
|
|
7
|
+
import"../chunks/server-info-50bbk3b2.js";
|
|
8
|
+
import"../chunks/server-info-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
WorktreeHandler2 as WorktreeHandler
|
|
11
11
|
};
|
package/dist/handlers.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Layer } from "effect";
|
|
2
|
-
export declare const handlers: Layer.Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.command"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.config"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.credential"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.debug"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.event"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.form"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.fs"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.generate"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.integration"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.location"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.mcp"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.message"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.migration"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.model"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.permission"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.plugin"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.project"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.provider"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.pty"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.reference"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.rpc"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.server"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.session"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.shell"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.skill"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.vcs"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.voice"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.websearch"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.worktree">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("./auth").Config | import("./middleware/form-location").FormLocationMiddleware | import("./location").LocationMiddleware | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/database/database").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/
|
|
2
|
+
export declare const handlers: Layer.Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.command"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.config"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.credential"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.debug"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.event"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.form"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.fs"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.generate"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.integration"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.location"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.mcp"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.message"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.migration"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.model"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.permission"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.plugin"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.project"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.provider"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.pty"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.reference"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.rpc"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.server"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.session"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.shell"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.skill"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.usage"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.vcs"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.voice"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.websearch"> | import("effect/http-api/HttpApiGroup").Service<"server", "server.worktree">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("./auth").Config | import("./middleware/form-location").FormLocationMiddleware | import("./location").LocationMiddleware | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/database/database").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/credential").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/wellknown").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/project").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/permission/saved").Service> | import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/plugin/update").Service> | import("effect/http/HttpRouter").Request<"Requires", import("./server-info").Service> | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/core/bus").Service | import("@opencode/core/project").Service | import("@opencode/core/persistent-pty/index").Service | import("@opencode/core/instance").Service | import("@opencode/core/session/instruction-entry").Service | import("@opencode/core/session").Service | import("@opencode/core/worktree").Service | import("@opencode/core/location-service-map").Service | import("@opencode/core/pty/ticket").Service | import("@opencode/core/session/transfer").Service | import("@opencode/core/filesystem/file-watch").Service | import("./pairing").Service | import("./middleware/session-location").SessionLocationMiddleware>;
|
package/dist/handlers.js
CHANGED
|
@@ -1,49 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handlers2
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
11
|
-
import"./chunks/
|
|
12
|
-
import"./chunks/
|
|
13
|
-
import"./chunks/
|
|
14
|
-
import"./chunks/
|
|
15
|
-
import"./chunks/
|
|
16
|
-
import"./chunks/
|
|
17
|
-
import"./chunks/
|
|
18
|
-
import"./chunks/
|
|
19
|
-
import"./chunks/
|
|
20
|
-
import"./chunks/
|
|
21
|
-
import"./chunks/
|
|
22
|
-
import"./chunks/
|
|
23
|
-
import"./chunks/
|
|
24
|
-
import"./chunks/
|
|
25
|
-
import"./chunks/
|
|
26
|
-
import"./chunks/
|
|
27
|
-
import"./chunks/
|
|
28
|
-
import"./chunks/
|
|
29
|
-
import"./chunks/
|
|
30
|
-
import"./chunks/
|
|
31
|
-
import"./chunks/
|
|
32
|
-
import"./chunks/
|
|
33
|
-
import"./chunks/
|
|
34
|
-
import"./chunks/
|
|
35
|
-
import"./chunks/
|
|
36
|
-
import"./chunks/
|
|
37
|
-
import"./chunks/
|
|
38
|
-
import"./chunks/
|
|
39
|
-
import"./chunks/
|
|
40
|
-
import"./chunks/
|
|
41
|
-
import"./chunks/
|
|
42
|
-
import"./chunks/
|
|
43
|
-
import"./chunks/
|
|
44
|
-
import"./chunks/
|
|
45
|
-
import"./chunks/
|
|
46
|
-
import"./chunks/
|
|
3
|
+
} from "./chunks/server-info-b0f38s3n.js";
|
|
4
|
+
import"./chunks/server-info-b105zy65.js";
|
|
5
|
+
import"./chunks/server-info-kkdkqt8j.js";
|
|
6
|
+
import"./chunks/server-info-1gwc8nvb.js";
|
|
7
|
+
import"./chunks/server-info-ny1j968n.js";
|
|
8
|
+
import"./chunks/server-info-zpr61asr.js";
|
|
9
|
+
import"./chunks/server-info-yxw63vq5.js";
|
|
10
|
+
import"./chunks/server-info-6z9pvq7p.js";
|
|
11
|
+
import"./chunks/server-info-f559fakr.js";
|
|
12
|
+
import"./chunks/server-info-btahnm2b.js";
|
|
13
|
+
import"./chunks/server-info-rw1dfckh.js";
|
|
14
|
+
import"./chunks/server-info-n321d8vm.js";
|
|
15
|
+
import"./chunks/server-info-1v577ncx.js";
|
|
16
|
+
import"./chunks/server-info-h29xjj1e.js";
|
|
17
|
+
import"./chunks/server-info-rha2aq18.js";
|
|
18
|
+
import"./chunks/server-info-te8jwba1.js";
|
|
19
|
+
import"./chunks/server-info-5b42hxrf.js";
|
|
20
|
+
import"./chunks/server-info-zcvan105.js";
|
|
21
|
+
import"./chunks/server-info-az0609r6.js";
|
|
22
|
+
import"./chunks/server-info-qcg3sqtb.js";
|
|
23
|
+
import"./chunks/server-info-qd0r787n.js";
|
|
24
|
+
import"./chunks/server-info-2h6qktqa.js";
|
|
25
|
+
import"./chunks/server-info-4q6e7fh8.js";
|
|
26
|
+
import"./chunks/server-info-yqhefp4s.js";
|
|
27
|
+
import"./chunks/server-info-cezwbsk5.js";
|
|
28
|
+
import"./chunks/server-info-bhbc7551.js";
|
|
29
|
+
import"./chunks/server-info-h6rt5k9s.js";
|
|
30
|
+
import"./chunks/server-info-d0edqfxx.js";
|
|
31
|
+
import"./chunks/server-info-a8jcac9a.js";
|
|
32
|
+
import"./chunks/server-info-4fy84009.js";
|
|
33
|
+
import"./chunks/server-info-2eaky32g.js";
|
|
34
|
+
import"./chunks/server-info-5s6gh8sx.js";
|
|
35
|
+
import"./chunks/server-info-tjtyxt9h.js";
|
|
36
|
+
import"./chunks/server-info-nx6f5k7a.js";
|
|
37
|
+
import"./chunks/server-info-s282vggx.js";
|
|
38
|
+
import"./chunks/server-info-j87xz9bt.js";
|
|
39
|
+
import"./chunks/server-info-htyf2qs7.js";
|
|
40
|
+
import"./chunks/server-info-b3bmdkga.js";
|
|
41
|
+
import"./chunks/server-info-j4at0y5c.js";
|
|
42
|
+
import"./chunks/server-info-kqr36gas.js";
|
|
43
|
+
import"./chunks/server-info-q4bn6dy8.js";
|
|
44
|
+
import"./chunks/server-info-5pdfedjd.js";
|
|
45
|
+
import"./chunks/server-info-xthc02cw.js";
|
|
46
|
+
import"./chunks/server-info-s802fzg1.js";
|
|
47
|
+
import"./chunks/server-info-50bbk3b2.js";
|
|
48
|
+
import"./chunks/server-info-smaf4a18.js";
|
|
47
49
|
export {
|
|
48
50
|
handlers2 as handlers
|
|
49
51
|
};
|
package/dist/location.js
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
response2,
|
|
6
6
|
sessionInfo2,
|
|
7
7
|
requestRef2,
|
|
8
|
-
|
|
9
|
-
} from "./chunks/
|
|
10
|
-
import"./chunks/
|
|
8
|
+
layer4
|
|
9
|
+
} from "./chunks/server-info-50bbk3b2.js";
|
|
10
|
+
import"./chunks/server-info-smaf4a18.js";
|
|
11
11
|
export {
|
|
12
12
|
LocationMiddleware2 as LocationMiddleware,
|
|
13
13
|
awaitPlugins2 as awaitPlugins,
|
|
14
|
-
|
|
14
|
+
layer4 as layer,
|
|
15
15
|
locationErrors2 as locationErrors,
|
|
16
16
|
requestRef2 as requestRef,
|
|
17
17
|
response2 as response,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HttpServerRequest } from "effect/http";
|
|
2
|
+
/**
|
|
3
|
+
* Whether the client opted into `media:` refs. The session's own location decides whether its stored media is
|
|
4
|
+
* actually left as refs (`experimental.media_blob`), so this only picks which read to call.
|
|
5
|
+
*/
|
|
6
|
+
export declare const wantsMediaRefs: (request: HttpServerRequest.HttpServerRequest) => boolean;
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
authorizedRequest2,
|
|
4
4
|
authorizationLayer2,
|
|
5
5
|
Authorization2
|
|
6
|
-
} from "../chunks/
|
|
7
|
-
import"../chunks/
|
|
6
|
+
} from "../chunks/server-info-7b9xm1qg.js";
|
|
7
|
+
import"../chunks/server-info-j4at0y5c.js";
|
|
8
8
|
export {
|
|
9
9
|
Authorization2 as Authorization,
|
|
10
10
|
authorizationLayer2 as authorizationLayer,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FormLocationMiddleware2,
|
|
3
3
|
formLocationLayer2
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/server-info-htyf2qs7.js";
|
|
5
|
+
import"../chunks/server-info-50bbk3b2.js";
|
|
6
|
+
import"../chunks/server-info-smaf4a18.js";
|
|
7
7
|
export {
|
|
8
8
|
FormLocationMiddleware2 as FormLocationMiddleware,
|
|
9
9
|
formLocationLayer2 as formLocationLayer
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionLocationMiddleware2,
|
|
3
3
|
sessionLocationLayer2
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/server-info-b3bmdkga.js";
|
|
5
|
+
import"../chunks/server-info-50bbk3b2.js";
|
|
6
|
+
import"../chunks/server-info-smaf4a18.js";
|
|
7
7
|
export {
|
|
8
8
|
SessionLocationMiddleware2 as SessionLocationMiddleware,
|
|
9
9
|
sessionLocationLayer2 as sessionLocationLayer
|
package/dist/pairing.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service2,
|
|
3
|
+
node2,
|
|
4
4
|
exports_pairing
|
|
5
|
-
} from "./chunks/
|
|
5
|
+
} from "./chunks/server-info-kqr36gas.js";
|
|
6
6
|
export {
|
|
7
7
|
exports_pairing as ServerPairing,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
Service2 as Service,
|
|
9
|
+
node2 as node
|
|
10
10
|
};
|
package/dist/process.js
CHANGED
|
@@ -1,70 +1,72 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Config2
|
|
3
|
-
} from "./chunks/
|
|
3
|
+
} from "./chunks/server-info-j4at0y5c.js";
|
|
4
4
|
import {
|
|
5
5
|
isAllowedCorsOrigin2
|
|
6
|
-
} from "./chunks/
|
|
6
|
+
} from "./chunks/server-info-q4bn6dy8.js";
|
|
7
7
|
import {
|
|
8
8
|
unauthorizedResponse2,
|
|
9
9
|
authorizedRequest2
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/server-info-7b9xm1qg.js";
|
|
11
11
|
import {
|
|
12
12
|
withoutParentSpan2
|
|
13
|
-
} from "./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/
|
|
13
|
+
} from "./chunks/server-info-yc7nft6q.js";
|
|
14
|
+
import"./chunks/server-info-smaf4a18.js";
|
|
15
|
+
import"./chunks/server-info-50bbk3b2.js";
|
|
16
|
+
import"./chunks/server-info-htyf2qs7.js";
|
|
17
|
+
import"./chunks/server-info-b3bmdkga.js";
|
|
18
|
+
import"./chunks/server-info-j87xz9bt.js";
|
|
19
|
+
import"./chunks/server-info-yqhefp4s.js";
|
|
20
|
+
import"./chunks/server-info-d0edqfxx.js";
|
|
21
|
+
import"./chunks/server-info-xthc02cw.js";
|
|
22
|
+
import"./chunks/server-info-1gwc8nvb.js";
|
|
23
|
+
import"./chunks/server-info-rha2aq18.js";
|
|
24
|
+
import"./chunks/server-info-az0609r6.js";
|
|
25
|
+
import"./chunks/server-info-tjtyxt9h.js";
|
|
26
|
+
import"./chunks/server-info-btahnm2b.js";
|
|
27
|
+
import"./chunks/server-info-2h6qktqa.js";
|
|
28
|
+
import"./chunks/server-info-f559fakr.js";
|
|
29
|
+
import"./chunks/server-info-4q6e7fh8.js";
|
|
30
|
+
import"./chunks/server-info-ny1j968n.js";
|
|
31
|
+
import"./chunks/server-info-s282vggx.js";
|
|
32
|
+
import"./chunks/server-info-s802fzg1.js";
|
|
33
|
+
import"./chunks/server-info-nx6f5k7a.js";
|
|
34
|
+
import"./chunks/server-info-1v577ncx.js";
|
|
35
|
+
import"./chunks/server-info-2eaky32g.js";
|
|
35
36
|
import {
|
|
36
37
|
connectionURLs2
|
|
37
|
-
} from "./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/
|
|
56
|
-
import"./chunks/
|
|
57
|
-
import"./chunks/
|
|
58
|
-
import"./chunks/
|
|
38
|
+
} from "./chunks/server-info-5pdfedjd.js";
|
|
39
|
+
import"./chunks/server-info-kqr36gas.js";
|
|
40
|
+
import"./chunks/server-info-yxw63vq5.js";
|
|
41
|
+
import"./chunks/server-info-qcg3sqtb.js";
|
|
42
|
+
import"./chunks/server-info-h6rt5k9s.js";
|
|
43
|
+
import"./chunks/server-info-zpr61asr.js";
|
|
44
|
+
import"./chunks/server-info-n321d8vm.js";
|
|
45
|
+
import"./chunks/server-info-rw1dfckh.js";
|
|
46
|
+
import"./chunks/server-info-qd0r787n.js";
|
|
47
|
+
import"./chunks/server-info-te8jwba1.js";
|
|
48
|
+
import"./chunks/server-info-zcvan105.js";
|
|
49
|
+
import"./chunks/server-info-h29xjj1e.js";
|
|
50
|
+
import"./chunks/server-info-kkdkqt8j.js";
|
|
51
|
+
import"./chunks/server-info-b105zy65.js";
|
|
52
|
+
import"./chunks/server-info-bhbc7551.js";
|
|
53
|
+
import"./chunks/server-info-5b42hxrf.js";
|
|
54
|
+
import"./chunks/server-info-a8jcac9a.js";
|
|
55
|
+
import"./chunks/server-info-4fy84009.js";
|
|
56
|
+
import"./chunks/server-info-5s6gh8sx.js";
|
|
57
|
+
import"./chunks/server-info-6z9pvq7p.js";
|
|
58
|
+
import"./chunks/server-info-cezwbsk5.js";
|
|
59
|
+
import"./chunks/server-info-b0f38s3n.js";
|
|
60
|
+
import"./chunks/server-info-bd8755ek.js";
|
|
59
61
|
import {
|
|
60
62
|
createRoutes2
|
|
61
|
-
} from "./chunks/
|
|
63
|
+
} from "./chunks/server-info-j2d131x1.js";
|
|
62
64
|
import {
|
|
63
65
|
make3
|
|
64
|
-
} from "./chunks/
|
|
66
|
+
} from "./chunks/server-info-e6e4kz0w.js";
|
|
65
67
|
import {
|
|
66
68
|
__export
|
|
67
|
-
} from "./chunks/
|
|
69
|
+
} from "./chunks/server-info-9rqn6x4v.js";
|
|
68
70
|
|
|
69
71
|
// src/process.ts
|
|
70
72
|
var exports_process = {};
|
|
@@ -78,6 +80,7 @@ import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
|
78
80
|
import { InstallationEvent } from "@opencode/schema/installation-event";
|
|
79
81
|
import { hasPtyConnectTicketURL } from "@opencode/protocol/groups/pty";
|
|
80
82
|
import { hasPersistentPtyConnectTicketURL } from "@opencode/protocol/groups/persistent-pty";
|
|
83
|
+
import { hasMcpClientTicketURL } from "@opencode/protocol/groups/mcp";
|
|
81
84
|
import { isPairingConnectURL } from "@opencode/protocol/groups/server";
|
|
82
85
|
import { Global } from "@opencode/util/global";
|
|
83
86
|
import { Cause, Context, Effect, Exit, Latch, Layer, Option, Ref, Scope } from "effect";
|
|
@@ -172,7 +175,7 @@ function dispatch(password, status, application, version, urls, tmp) {
|
|
|
172
175
|
return unauthorizedResponse2(request);
|
|
173
176
|
return yield* infoResponse(status, version, urls, tmp);
|
|
174
177
|
}
|
|
175
|
-
if (!isPairingConnectURL(url) && (!ready || !hasPtyConnectTicketURL(url) && !hasPersistentPtyConnectTicketURL(url)) && !(yield* authorizedRequest2(request, auth)))
|
|
178
|
+
if (!isPairingConnectURL(url) && (!ready || !hasPtyConnectTicketURL(url) && !hasPersistentPtyConnectTicketURL(url) && !hasMcpClientTicketURL(url)) && !(yield* authorizedRequest2(request, auth)))
|
|
176
179
|
return unauthorizedResponse2(request);
|
|
177
180
|
if (ready)
|
|
178
181
|
return yield* app.value;
|
package/dist/request-tracing.js
CHANGED
package/dist/routes.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ import { Worktree } from "@opencode/core/worktree";
|
|
|
11
11
|
import { Session } from "@opencode/core/session";
|
|
12
12
|
import { Instance } from "@opencode/core/instance/service";
|
|
13
13
|
import { SessionTransfer } from "@opencode/core/session/transfer";
|
|
14
|
+
import { InstructionEntry } from "@opencode/core/session/instruction-entry";
|
|
14
15
|
import { Job } from "@opencode/core/job";
|
|
15
16
|
import { Global } from "@opencode/util/global";
|
|
17
|
+
import { FSUtil } from "@opencode/util/fs-util";
|
|
16
18
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
17
19
|
import { LocationActivity } from "@opencode/core/location-activity";
|
|
18
20
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
@@ -20,12 +22,12 @@ import { PluginUpdate } from "@opencode/core/plugin/update";
|
|
|
20
22
|
import { SdkPlugins } from "@opencode/core/plugin/sdk";
|
|
21
23
|
import { WellKnown } from "@opencode/core/wellknown";
|
|
22
24
|
import { Workspace } from "@opencode/core/workspace";
|
|
25
|
+
import { FileWatch } from "@opencode/core/filesystem/file-watch";
|
|
23
26
|
import { HttpRouter } from "effect/http";
|
|
24
27
|
import { Layer } from "effect";
|
|
25
|
-
import { PtyEnvironment } from "./pty-environment";
|
|
26
28
|
import { ServerPairing } from "./pairing";
|
|
27
29
|
import type { ServerOptions } from "./options";
|
|
28
|
-
export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | Global.Service | Database.Service |
|
|
30
|
+
export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | Credential.Service | WellKnown.Service | Bus.Service | Project.Service | Workspace.Service | PersistentPty.Service | PermissionSaved.Service | Instance.Service | InstructionEntry.Service | Job.Service | Session.Service | Worktree.Service | SdkPlugins.Service | PluginUpdate.Service | LocationServiceMap.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
|
|
29
31
|
type InstanceNode = (replacements: () => LayerNode.Replacements) => LayerNode.Provider<Instance.Service, never, typeof Node.tags.values.global>;
|
|
30
|
-
export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | Global.Service | Database.Service |
|
|
32
|
+
export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | Credential.Service | WellKnown.Service | Bus.Service | Project.Service | Workspace.Service | PersistentPty.Service | PermissionSaved.Service | Instance.Service | InstructionEntry.Service | Job.Service | Session.Service | Worktree.Service | SdkPlugins.Service | PluginUpdate.Service | LocationServiceMap.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
|
|
31
33
|
export {};
|