@opencode/server 0.0.0-dev-1366 → 0.0.0-dev-1368
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.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{content-headers-mq10h3bj.js → workerd-0vqsbvsa.js} +4 -4
- package/dist/chunks/{content-headers-c6ktqe09.js → workerd-0wjm8gvs.js} +2 -2
- package/dist/chunks/{content-headers-eacgzt6w.js → workerd-10sj2tcf.js} +1 -1
- package/dist/chunks/{content-headers-maarxay5.js → workerd-1g4xykqx.js} +4 -4
- package/dist/chunks/{content-headers-8xffg4dw.js → workerd-1pbjpk0f.js} +4 -4
- package/dist/chunks/{content-headers-nh63c3gg.js → workerd-23n65c7j.js} +3 -3
- package/dist/chunks/{content-headers-29nx48hm.js → workerd-29nx48hm.js} +1 -1
- package/dist/chunks/{content-headers-7r996r31.js → workerd-2tmcamrc.js} +2 -2
- package/dist/chunks/{content-headers-e6e4kz0w.js → workerd-39nnfjx1.js} +4 -4
- package/dist/chunks/{content-headers-g9qy0kb1.js → workerd-3xkwxcke.js} +2 -2
- package/dist/chunks/{content-headers-50kbksvb.js → workerd-50kbksvb.js} +2 -2
- package/dist/chunks/{content-headers-3te71694.js → workerd-5pdfedjd.js} +4 -4
- package/dist/chunks/{content-headers-6pm6ek88.js → workerd-6pm6ek88.js} +1 -1
- package/dist/chunks/{content-headers-nfrn9zxf.js → workerd-784gqmc7.js} +2 -2
- package/dist/chunks/{content-headers-rg932pab.js → workerd-7dkb5ks8.js} +2 -2
- package/dist/chunks/{content-headers-6anyjjh1.js → workerd-8nezxn08.js} +1 -1
- package/dist/chunks/{content-headers-esvnag9e.js → workerd-8qsq6tbs.js} +2 -2
- package/dist/chunks/{content-headers-8sb6qqpn.js → workerd-8sb6qqpn.js} +1 -1
- package/dist/chunks/{content-headers-3w2mqh28.js → workerd-8xdajgpr.js} +2 -2
- package/dist/chunks/{content-headers-r6qsbz4y.js → workerd-9hynp6rm.js} +2 -2
- package/dist/chunks/{content-headers-21qqm769.js → workerd-9tw35sfc.js} +12 -12
- package/dist/chunks/{content-headers-f1tstpac.js → workerd-a6b7h8n6.js} +21 -25
- package/dist/chunks/{content-headers-wjh98yw2.js → workerd-am27j67f.js} +1 -1
- package/dist/chunks/{content-headers-br4x4prt.js → workerd-br4x4prt.js} +1 -1
- package/dist/chunks/{content-headers-ca564221.js → workerd-ca564221.js} +1 -1
- package/dist/chunks/{content-headers-djr0jy89.js → workerd-djr0jy89.js} +1 -1
- package/dist/chunks/{content-headers-8a8vhjqy.js → workerd-dsxhsz16.js} +6 -6
- package/dist/chunks/{content-headers-z80wqx10.js → workerd-e3jd9akj.js} +1 -1
- package/dist/chunks/{content-headers-ehyp3zqd.js → workerd-ehyp3zqd.js} +1 -1
- package/dist/chunks/{content-headers-z0v7xmc8.js → workerd-em7ed65n.js} +2 -2
- package/dist/chunks/{content-headers-qagtm26v.js → workerd-epfdwcja.js} +4 -4
- package/dist/chunks/{content-headers-f412ctvv.js → workerd-exwy1kbj.js} +2 -2
- package/dist/chunks/{content-headers-df03ef4a.js → workerd-f3gr6hfv.js} +2 -2
- package/dist/chunks/{content-headers-6n31atta.js → workerd-hfbw093d.js} +37 -37
- package/dist/chunks/{content-headers-j4at0y5c.js → workerd-j4at0y5c.js} +1 -1
- package/dist/chunks/{content-headers-javgytnb.js → workerd-javgytnb.js} +2 -2
- package/dist/chunks/{content-headers-ar950k47.js → workerd-k74zefsg.js} +1 -1
- package/dist/chunks/{content-headers-ka2mtp6f.js → workerd-ka2mtp6f.js} +2 -2
- package/dist/chunks/{content-headers-5ky8bme5.js → workerd-kmwr1xw9.js} +3 -3
- package/dist/chunks/{content-headers-fmkwyf76.js → workerd-mj1ewmp1.js} +9 -9
- package/dist/chunks/{content-headers-myqk22k5.js → workerd-myqk22k5.js} +2 -2
- package/dist/chunks/{content-headers-ykr4m3zx.js → workerd-n2zyxnzr.js} +1 -1
- package/dist/chunks/{content-headers-r682v2h3.js → workerd-prwd5gwt.js} +2 -2
- package/dist/chunks/{content-headers-htk4x1jk.js → workerd-qq3f8fnn.js} +2 -2
- package/dist/chunks/workerd-r8tdr8qd.js +43 -0
- package/dist/chunks/{content-headers-8y9zssdg.js → workerd-rgbnpstw.js} +2 -2
- package/dist/chunks/{content-headers-phgds112.js → workerd-rjhxbsc4.js} +2 -2
- package/dist/chunks/{content-headers-1nsytpdt.js → workerd-rm5kndzh.js} +4 -4
- package/dist/chunks/{content-headers-y8sa9sbe.js → workerd-s0zgx365.js} +2 -2
- package/dist/chunks/{content-headers-t32e1bbt.js → workerd-t32e1bbt.js} +1 -1
- package/dist/chunks/{content-headers-mzs0n5xz.js → workerd-v9t81kwn.js} +8 -8
- package/dist/chunks/{content-headers-jhs8rzvk.js → workerd-whvq72as.js} +3 -3
- package/dist/chunks/{content-headers-ddhjwr2w.js → workerd-wsvmph03.js} +2 -2
- package/dist/chunks/{content-headers-x2qy7jg1.js → workerd-x2qy7jg1.js} +1 -1
- package/dist/chunks/{content-headers-v60tcbt5.js → workerd-xw05m515.js} +3 -3
- package/dist/chunks/{content-headers-cj97w75w.js → workerd-yc92za0p.js} +2 -2
- package/dist/chunks/{content-headers-hs3dbf8w.js → workerd-z5c20bjd.js} +7 -7
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.d.ts +22 -11
- package/dist/fetch.js +72 -68
- 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/experimental/browser-tunnel.js +4 -4
- package/dist/handlers/flag.js +6 -6
- 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.js +2 -2
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/machine.js +1 -1
- 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.js +20 -20
- 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/push.js +1 -1
- 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/space.js +2 -2
- 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 +58 -58
- 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/options.d.ts +69 -2
- package/dist/options.js +14 -6
- package/dist/pairing.js +5 -5
- package/dist/process.d.ts +5 -5
- package/dist/process.js +68 -68
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +8 -2
- package/dist/routes.js +62 -62
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +3 -3
- package/dist/space-store.js +5 -5
- package/dist/workerd.js +66 -66
- package/package.json +8 -8
- package/dist/chunks/content-headers-1kqc9805.js +0 -37
- /package/dist/chunks/{content-headers-017ycvbx.js → workerd-017ycvbx.js} +0 -0
- /package/dist/chunks/{content-headers-9rqn6x4v.js → workerd-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{content-headers-bd8755ek.js → workerd-bd8755ek.js} +0 -0
- /package/dist/chunks/{content-headers-n26yr6pw.js → workerd-n26yr6pw.js} +0 -0
- /package/dist/chunks/{content-headers-q187pxxd.js → workerd-q187pxxd.js} +0 -0
- /package/dist/chunks/{content-headers-q4bn6dy8.js → workerd-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{content-headers-qpnw2qd1.js → workerd-qpnw2qd1.js} +0 -0
- /package/dist/chunks/{content-headers-rqgv9x42.js → workerd-rqgv9x42.js} +0 -0
- /package/dist/chunks/{content-headers-xthc02cw.js → workerd-xthc02cw.js} +0 -0
- /package/dist/chunks/{content-headers-yc7nft6q.js → workerd-yc7nft6q.js} +0 -0
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/workerd-whvq72as.js";
|
|
4
|
+
import"./chunks/workerd-ehyp3zqd.js";
|
|
5
|
+
import"./chunks/workerd-ca564221.js";
|
|
6
|
+
import"./chunks/workerd-br4x4prt.js";
|
|
7
|
+
import"./chunks/workerd-rqgv9x42.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./workerd-br4x4prt.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workerd-whvq72as.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2,
|
|
15
15
|
holdLocation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./workerd-q187pxxd.js";
|
|
17
17
|
|
|
18
18
|
// src/handlers/pty.ts
|
|
19
19
|
import { Pty } from "@opencode/core/pty";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/vcs.ts
|
|
9
9
|
import { Vcs } from "@opencode/core/vcs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
import {
|
|
8
8
|
download2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-t32e1bbt.js";
|
|
10
10
|
import {
|
|
11
11
|
parse2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-8sb6qqpn.js";
|
|
13
13
|
|
|
14
14
|
// src/handlers/fs.ts
|
|
15
15
|
import { Environment } from "@opencode/core/environment/index";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-whvq72as.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service4,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-z5c20bjd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/event.ts
|
|
10
10
|
import { Event } from "@opencode/schema/event";
|
|
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
|
|
|
12
12
|
import { HttpServerResponse } from "effect/http";
|
|
13
13
|
import { HttpApiBuilder } from "effect/http-api";
|
|
14
14
|
var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
|
|
15
|
-
const feed = yield*
|
|
15
|
+
const feed = yield* Service4;
|
|
16
16
|
return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
|
|
17
17
|
const output = Stream.unwrap(feed.subscribe(ctx.query.types).pipe(Effect.map((subscription) => Stream.make(frame2({
|
|
18
18
|
id: Event.ID.create(),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
3
|
failedMessageDecode2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workerd-rqgv9x42.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-whvq72as.js";
|
|
8
8
|
import {
|
|
9
9
|
wantsMediaRefs2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./workerd-xthc02cw.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/message.ts
|
|
13
13
|
import { SessionMessage } from "@opencode/core/session/message";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/skill.ts
|
|
9
9
|
import { Skill } from "@opencode/core/skill";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
download2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-t32e1bbt.js";
|
|
4
4
|
import {
|
|
5
5
|
parse2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-8sb6qqpn.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/blob.ts
|
|
9
9
|
import { BlobStore } from "@opencode/core/blob-store";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/server-info.ts
|
|
6
6
|
var exports_server_info = {};
|
|
@@ -8,14 +8,14 @@ __export(exports_server_info, {
|
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
9
|
Service: () => Service3,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
|
-
layer: () =>
|
|
11
|
+
layer: () => layer2
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
16
|
class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function layer2(urls, tmp, app = {}) {
|
|
19
19
|
return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
|
|
20
20
|
}
|
|
21
21
|
function connectionURLs2(value, requestedHostname) {
|
|
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export { Service3,
|
|
41
|
+
export { Service3, layer2, connectionURLs2, exports_server_info };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.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
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/reference.ts
|
|
9
9
|
import { Reference } from "@opencode/core/reference";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/form.ts
|
|
9
9
|
import { Form } from "@opencode/core/form";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-whvq72as.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-2tmcamrc.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/credential.ts
|
|
9
9
|
import { Credential } from "@opencode/core/credential";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/flag.ts
|
|
9
9
|
import { Flag } from "@opencode/core/flag";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-whvq72as.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./workerd-javgytnb.js";
|
|
11
11
|
import {
|
|
12
12
|
makeBlobGet2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./workerd-50kbksvb.js";
|
|
14
14
|
import {
|
|
15
15
|
makeBrowserTunnel2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./workerd-ka2mtp6f.js";
|
|
17
17
|
import {
|
|
18
18
|
makeAutomation2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./workerd-6pm6ek88.js";
|
|
20
20
|
import {
|
|
21
21
|
makeJob2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./workerd-x2qy7jg1.js";
|
|
23
23
|
import {
|
|
24
24
|
makeMachineLink2,
|
|
25
25
|
makeMachine2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./workerd-017ycvbx.js";
|
|
27
27
|
import {
|
|
28
28
|
makeMediaGet2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./workerd-djr0jy89.js";
|
|
30
30
|
import {
|
|
31
31
|
makePush2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./workerd-qpnw2qd1.js";
|
|
33
33
|
import {
|
|
34
34
|
makeSpace2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./workerd-xw05m515.js";
|
|
36
36
|
import {
|
|
37
37
|
runPtySocket2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./workerd-q187pxxd.js";
|
|
39
39
|
|
|
40
40
|
// src/handlers/persistent-pty.ts
|
|
41
41
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer4
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-ca564221.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-ehyp3zqd.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-whvq72as.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workerd-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
node2
|
|
18
|
+
} from "./workerd-mj1ewmp1.js";
|
|
19
19
|
import {
|
|
20
20
|
CorsConfig2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./workerd-q4bn6dy8.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
layer2
|
|
24
|
+
} from "./workerd-5pdfedjd.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
node3
|
|
27
|
+
} from "./workerd-v9t81kwn.js";
|
|
28
28
|
import {
|
|
29
29
|
handlers2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./workerd-hfbw093d.js";
|
|
31
31
|
import {
|
|
32
32
|
authorizationLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./workerd-29nx48hm.js";
|
|
34
34
|
import {
|
|
35
35
|
schemaErrorLayer2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./workerd-bd8755ek.js";
|
|
37
37
|
import {
|
|
38
38
|
defectResponseLayer2
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./workerd-n26yr6pw.js";
|
|
40
40
|
|
|
41
41
|
// src/routes.ts
|
|
42
42
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -120,8 +120,8 @@ var applicationServiceNodes = [
|
|
|
120
120
|
BrowserTunnelGateway.node,
|
|
121
121
|
Credential.node,
|
|
122
122
|
WellKnown.node,
|
|
123
|
-
node2,
|
|
124
123
|
node3,
|
|
124
|
+
node2,
|
|
125
125
|
LocationServiceMap.node,
|
|
126
126
|
LocationActivity.node,
|
|
127
127
|
SessionRestart.node,
|
|
@@ -142,9 +142,9 @@ function createRoutes2(options = {}, serviceURLs = () => [], overrides = []) {
|
|
|
142
142
|
return makeRoutes(options.password ? Option.some(options.password) : Option.none(), options, serviceURLs, overrides);
|
|
143
143
|
}
|
|
144
144
|
function createEmbeddedRoutes2(options = {}, overrides = [], instances) {
|
|
145
|
-
return makeRoutes(Option.none(), options, () => [],
|
|
145
|
+
return makeRoutes(Option.none(), options, () => [], instances ? [Instance.node.replace(instances), ...overrides] : overrides);
|
|
146
146
|
}
|
|
147
|
-
function makeRoutes(password, options, serviceURLs, overrides
|
|
147
|
+
function makeRoutes(password, options, serviceURLs, overrides) {
|
|
148
148
|
const auth = Config2.configLayer({ password });
|
|
149
149
|
const credential = Option.map(password, (value) => `Basic ${Base64.encode(`opencode:${value}`)}`);
|
|
150
150
|
let internal;
|
|
@@ -191,11 +191,7 @@ function makeRoutes(password, options, serviceURLs, overrides, instances) {
|
|
|
191
191
|
}
|
|
192
192
|
}))
|
|
193
193
|
];
|
|
194
|
-
const build = (overrides) => AppNodeBuilder.build(applicationServices, [
|
|
195
|
-
...standard,
|
|
196
|
-
...instances ? [Instance.node.replace(instances)] : [],
|
|
197
|
-
...overrides
|
|
198
|
-
]);
|
|
194
|
+
const build = (overrides) => AppNodeBuilder.build(applicationServices, [...standard, ...overrides]);
|
|
199
195
|
const serviceLayer = options.simulation ? Layer.unwrap(Effect.gen(function* () {
|
|
200
196
|
const { simulationReplacements } = yield* Effect.promise(() => import("@opencode/simulation/backend"));
|
|
201
197
|
const simulation = yield* simulationReplacements({ version: App.make(options.app).version });
|
|
@@ -203,7 +199,7 @@ function makeRoutes(password, options, serviceURLs, overrides, instances) {
|
|
|
203
199
|
})) : build(overrides);
|
|
204
200
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
205
201
|
const services = Layer.succeedContext(context);
|
|
206
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
202
|
+
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer2(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
|
|
207
203
|
const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.merge(defectResponseLayer2), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer.pipe(Layer.provide(Layer.succeed(HttpRouter.RouterConfig)({ maxParamLength: 512 })))), Layer.tap((context) => Effect.sync(() => {
|
|
208
204
|
internal = Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpEffect.toWebHandlerWith(context));
|
|
209
205
|
})));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-whvq72as.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-j4at0y5c.js";
|
|
10
10
|
import {
|
|
11
11
|
Service3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-5pdfedjd.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service5
|
|
15
|
+
} from "./workerd-v9t81kwn.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* Service5;
|
|
26
26
|
const auth = yield* Config2;
|
|
27
27
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
28
28
|
const info = yield* Service3;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/plugin.ts
|
|
9
9
|
import { Plugin } from "@opencode/core/plugin";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
missingMessage2,
|
|
5
5
|
failedMessageDecode2,
|
|
6
6
|
failedSnapshot2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-rqgv9x42.js";
|
|
8
8
|
import {
|
|
9
9
|
locationErrors2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./workerd-br4x4prt.js";
|
|
11
11
|
import {
|
|
12
12
|
Api2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./workerd-whvq72as.js";
|
|
14
14
|
import {
|
|
15
15
|
wantsMediaRefs2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./workerd-xthc02cw.js";
|
|
17
17
|
|
|
18
18
|
// src/handlers/session.ts
|
|
19
19
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/agent.ts
|
|
9
9
|
import { Agent } from "@opencode/core/agent";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/shell.ts
|
|
9
9
|
import { Shell } from "@opencode/core/shell";
|