@opencode/server 0.0.0-dev-21309 → 0.0.0-dev-21314
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/{fetch-hc75vmb2.js → workerd-08x9tjee.js} +1 -1
- package/dist/chunks/{fetch-begnybrv.js → workerd-0d864bga.js} +1 -1
- package/dist/chunks/{fetch-pax5zcj7.js → workerd-33prfkkd.js} +3 -3
- package/dist/chunks/{fetch-b3jp5nc2.js → workerd-43r48nqn.js} +2 -2
- package/dist/chunks/{fetch-7bgw0qp5.js → workerd-4d1eemzq.js} +2 -2
- package/dist/chunks/{fetch-gpx0gpd1.js → workerd-4dv9a668.js} +2 -2
- package/dist/chunks/{fetch-4hhhes7w.js → workerd-4hhhes7w.js} +1 -1
- package/dist/chunks/{fetch-tnm0edrn.js → workerd-5jh2cd2m.js} +15 -15
- package/dist/chunks/{fetch-5w24ch67.js → workerd-5w24ch67.js} +1 -1
- package/dist/chunks/{fetch-k136bvh5.js → workerd-5zsr2h86.js} +1 -1
- package/dist/chunks/{fetch-z09f7k88.js → workerd-686p2xfa.js} +2 -2
- package/dist/chunks/{fetch-zj4vfrqs.js → workerd-7vd5668a.js} +1 -1
- package/dist/chunks/{fetch-adb03esn.js → workerd-8137b89p.js} +2 -2
- package/dist/chunks/{fetch-qhkd50xa.js → workerd-88r0nawh.js} +4 -4
- package/dist/chunks/{fetch-y9g6k1bm.js → workerd-97eb2r3v.js} +2 -2
- package/dist/chunks/{fetch-2ac2kv4c.js → workerd-9snwnvf8.js} +3 -3
- package/dist/chunks/{fetch-anm12x33.js → workerd-anm12x33.js} +1 -1
- package/dist/chunks/{fetch-b56hqv74.js → workerd-b56hqv74.js} +1 -1
- package/dist/chunks/{fetch-vvagfka3.js → workerd-bkk2wfbz.js} +7 -7
- package/dist/chunks/{fetch-3m0ygtwr.js → workerd-bx47k33v.js} +2 -2
- package/dist/chunks/{fetch-8z4c9n9h.js → workerd-cv0ajwc9.js} +2 -2
- package/dist/chunks/{fetch-wy9xrth3.js → workerd-e4r7zr2v.js} +8 -8
- package/dist/chunks/{fetch-x34tt0qt.js → workerd-ewe1fzkk.js} +2 -2
- package/dist/chunks/{fetch-rkx9hda5.js → workerd-ftaz8n62.js} +2 -2
- package/dist/chunks/{fetch-ybyz10ny.js → workerd-g3s4wze6.js} +32 -32
- package/dist/chunks/{fetch-b8ygg5k2.js → workerd-ghk96rjy.js} +5 -5
- package/dist/chunks/{fetch-nqkf5k2k.js → workerd-h8ws5ssa.js} +1 -1
- package/dist/chunks/{fetch-j4zqsxgy.js → workerd-j4zqsxgy.js} +1 -1
- package/dist/chunks/{fetch-5y3fv168.js → workerd-jvzvt9t3.js} +7 -7
- package/dist/chunks/{fetch-3y8a8g3j.js → workerd-n9y13hgv.js} +6 -6
- package/dist/chunks/{fetch-4bxenate.js → workerd-ptey1p5v.js} +2 -2
- package/dist/chunks/{fetch-8me0mqmd.js → workerd-qbh90c1d.js} +2 -2
- package/dist/chunks/{fetch-8p6mxwh1.js → workerd-re68qx3k.js} +3 -3
- package/dist/chunks/{fetch-nnn3xt9j.js → workerd-rf01ee6q.js} +1 -1
- package/dist/chunks/{fetch-1wyt3am5.js → workerd-rntbwr87.js} +2 -2
- package/dist/chunks/{fetch-rbn15j6z.js → workerd-sstsrjtg.js} +8 -8
- package/dist/chunks/{fetch-y5j6n4zr.js → workerd-ssyxw8nc.js} +2 -2
- package/dist/chunks/{fetch-qnwsemje.js → workerd-tavn74n1.js} +3 -3
- package/dist/chunks/{fetch-7armztsr.js → workerd-vb5yx5r0.js} +2 -2
- package/dist/chunks/{fetch-vfwf1dhc.js → workerd-vbzm2jgm.js} +2 -2
- package/dist/chunks/{fetch-h5qms5ez.js → workerd-wk806w00.js} +3 -3
- package/dist/chunks/{fetch-pc33848r.js → workerd-yehasrps.js} +2 -2
- package/dist/chunks/{fetch-yfz2nrjq.js → workerd-yfz2nrjq.js} +1 -1
- package/dist/chunks/{fetch-rw74d7br.js → workerd-z6sxg6td.js} +1 -1
- package/dist/chunks/{fetch-0gbaaetm.js → workerd-zessacar.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +3 -3
- package/dist/fetch.js +48 -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.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 +6 -6
- package/dist/handlers/message.js +6 -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.js +8 -8
- 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 +9 -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.js +6 -6
- package/dist/handlers/shell.js +6 -6
- package/dist/handlers/skill.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 +44 -44
- package/dist/location.js +2 -2
- 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 +50 -50
- package/dist/pty-environment.js +5 -5
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +47 -47
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +1 -1
- package/dist/workerd.js +49 -49
- package/package.json +8 -8
- /package/dist/chunks/{fetch-9rqn6x4v.js → workerd-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{fetch-erzfdgke.js → workerd-erzfdgke.js} +0 -0
- /package/dist/chunks/{fetch-h6rt5k9s.js → workerd-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{fetch-q4bn6dy8.js → workerd-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{fetch-smaf4a18.js → workerd-smaf4a18.js} +0 -0
- /package/dist/chunks/{fetch-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-9snwnvf8.js";
|
|
4
|
+
import"./chunks/workerd-j4zqsxgy.js";
|
|
5
|
+
import"./chunks/workerd-4hhhes7w.js";
|
|
6
|
+
import"./chunks/workerd-b56hqv74.js";
|
|
7
|
+
import"./chunks/workerd-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workerd-b56hqv74.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./workerd-9snwnvf8.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workerd-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer5
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-4hhhes7w.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-j4zqsxgy.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-9snwnvf8.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workerd-anm12x33.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workerd-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
20
|
layer3
|
|
21
|
-
} from "./
|
|
22
|
-
import {
|
|
23
|
-
node2
|
|
24
|
-
} from "./fetch-rbn15j6z.js";
|
|
21
|
+
} from "./workerd-ghk96rjy.js";
|
|
25
22
|
import {
|
|
26
23
|
node3
|
|
27
|
-
} from "./
|
|
24
|
+
} from "./workerd-sstsrjtg.js";
|
|
25
|
+
import {
|
|
26
|
+
node2
|
|
27
|
+
} from "./workerd-bkk2wfbz.js";
|
|
28
28
|
import {
|
|
29
29
|
handlers2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./workerd-g3s4wze6.js";
|
|
31
31
|
import {
|
|
32
32
|
authorizationLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./workerd-yfz2nrjq.js";
|
|
34
34
|
import {
|
|
35
35
|
schemaErrorLayer2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./workerd-erzfdgke.js";
|
|
37
37
|
|
|
38
38
|
// src/routes.ts
|
|
39
39
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -92,8 +92,8 @@ var applicationServiceNodes = [
|
|
|
92
92
|
PersistentPty.node,
|
|
93
93
|
Credential.node,
|
|
94
94
|
WellKnown.node,
|
|
95
|
-
node3,
|
|
96
95
|
node2,
|
|
96
|
+
node3,
|
|
97
97
|
LocationServiceMap.node,
|
|
98
98
|
LocationActivity.node,
|
|
99
99
|
SessionRestart.node,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workerd-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/voice.ts
|
|
10
10
|
import { Location } from "@opencode/core/location";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-9snwnvf8.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service4,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-n9y13hgv.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", () => Effect.gen(function* () {
|
|
17
17
|
const connected = {
|
|
18
18
|
id: Event.ID.create(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-4hhhes7w.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-j4zqsxgy.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/pty-environment.ts
|
|
6
6
|
var exports_pty_environment = {};
|
|
7
7
|
__export(exports_pty_environment, {
|
|
8
8
|
PtyEnvironment: () => exports_pty_environment,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service2,
|
|
10
10
|
layer: () => layer2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node2
|
|
12
12
|
});
|
|
13
13
|
import { Context, Effect, Layer } from "effect";
|
|
14
14
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service2 extends Context.Service()("@opencode/ServerPtyEnvironment") {
|
|
17
17
|
}
|
|
18
|
-
var layer2 = Layer.succeed(
|
|
18
|
+
var layer2 = Layer.succeed(Service2, Service2.of({
|
|
19
19
|
get: () => Effect.succeed({})
|
|
20
20
|
}));
|
|
21
|
-
var
|
|
21
|
+
var node2 = makeGlobalNode({ service: Service2, layer: layer2, deps: [] });
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { Service2, layer2, node2, exports_pty_environment };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workerd-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-9snwnvf8.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-anm12x33.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service3
|
|
12
|
+
} from "./workerd-ghk96rjy.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service5
|
|
15
|
+
} from "./workerd-sstsrjtg.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { Duration, Effect } from "effect";
|
|
@@ -21,10 +21,10 @@ import { HttpApiBuilder } from "effect/http-api";
|
|
|
21
21
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
22
22
|
import { UnauthorizedError } from "@opencode/protocol/errors";
|
|
23
23
|
var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
|
|
24
|
-
const pairing = yield*
|
|
24
|
+
const pairing = yield* Service5;
|
|
25
25
|
const auth = yield* Config2;
|
|
26
26
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
27
|
-
const info = yield*
|
|
27
|
+
const info = yield* Service3;
|
|
28
28
|
return {
|
|
29
29
|
version: info.app.version ?? "unknown",
|
|
30
30
|
pid: process.pid ?? 0,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workerd-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workerd-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/model.ts
|
|
10
10
|
import { Model } from "@opencode/core/model";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-9snwnvf8.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,99 +1,99 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-4d1eemzq.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-686p2xfa.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-vb5yx5r0.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-ewe1fzkk.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workerd-97eb2r3v.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workerd-wk806w00.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./workerd-33prfkkd.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./workerd-ssyxw8nc.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./workerd-43r48nqn.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./workerd-ptey1p5v.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./workerd-bx47k33v.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./workerd-z6sxg6td.js";
|
|
37
37
|
import {
|
|
38
38
|
layer4
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./workerd-n9y13hgv.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./workerd-88r0nawh.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./workerd-rntbwr87.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./workerd-8137b89p.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./workerd-e4r7zr2v.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./workerd-vbzm2jgm.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./workerd-jvzvt9t3.js";
|
|
58
58
|
import {
|
|
59
59
|
PersistentPtyHandler2
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./workerd-tavn74n1.js";
|
|
61
61
|
import {
|
|
62
62
|
ShellHandler2
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./workerd-4dv9a668.js";
|
|
64
64
|
import {
|
|
65
65
|
ReferenceHandler2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./workerd-yehasrps.js";
|
|
67
67
|
import {
|
|
68
68
|
LocationHandler2
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./workerd-h8ws5ssa.js";
|
|
70
70
|
import {
|
|
71
71
|
IntegrationHandler2
|
|
72
|
-
} from "./
|
|
72
|
+
} from "./workerd-ftaz8n62.js";
|
|
73
73
|
import {
|
|
74
74
|
WebSearchHandler2
|
|
75
|
-
} from "./
|
|
75
|
+
} from "./workerd-cv0ajwc9.js";
|
|
76
76
|
import {
|
|
77
77
|
McpHandler2
|
|
78
|
-
} from "./
|
|
78
|
+
} from "./workerd-zessacar.js";
|
|
79
79
|
import {
|
|
80
80
|
CredentialHandler2
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./workerd-08x9tjee.js";
|
|
82
82
|
import {
|
|
83
83
|
ProjectHandler2
|
|
84
|
-
} from "./
|
|
84
|
+
} from "./workerd-0d864bga.js";
|
|
85
85
|
import {
|
|
86
86
|
WorktreeHandler2
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./workerd-7vd5668a.js";
|
|
88
88
|
import {
|
|
89
89
|
VcsHandler2
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./workerd-qbh90c1d.js";
|
|
91
91
|
import {
|
|
92
92
|
MigrationHandler2
|
|
93
|
-
} from "./
|
|
93
|
+
} from "./workerd-rf01ee6q.js";
|
|
94
94
|
import {
|
|
95
95
|
ConfigHandler2
|
|
96
|
-
} from "./
|
|
96
|
+
} from "./workerd-5zsr2h86.js";
|
|
97
97
|
|
|
98
98
|
// src/handlers.ts
|
|
99
99
|
import { Layer } from "effect";
|
|
@@ -1,22 +1,22 @@
|
|
|
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 = {};
|
|
7
7
|
__export(exports_server_info, {
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service3,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
11
|
layer: () => layer3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
18
|
function layer3(urls, tmp, app = {}) {
|
|
19
|
-
return Layer.succeed(
|
|
19
|
+
return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
|
|
20
20
|
}
|
|
21
21
|
function connectionURLs2(value, requestedHostname) {
|
|
22
22
|
const url = new URL(value);
|
|
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Service3, layer3, connectionURLs2, exports_server_info };
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./workerd-b56hqv74.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workerd-9snwnvf8.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service2
|
|
15
|
+
} from "./workerd-bkk2wfbz.js";
|
|
16
16
|
import {
|
|
17
17
|
runPtySocket2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workerd-h6rt5k9s.js";
|
|
19
19
|
|
|
20
20
|
// src/handlers/pty.ts
|
|
21
21
|
import { Pty } from "@opencode/core/pty";
|
|
@@ -41,7 +41,7 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
|
|
|
41
41
|
const locations = yield* LocationServiceMap.Service;
|
|
42
42
|
const tickets = yield* PtyTicket.Service;
|
|
43
43
|
const cors = yield* CorsConfig2;
|
|
44
|
-
const environment = yield*
|
|
44
|
+
const environment = yield* Service2;
|
|
45
45
|
return handlers.handle("pty.list", Effect.fn(function* () {
|
|
46
46
|
const pty = yield* Pty.Service;
|
|
47
47
|
return yield* response2(pty.list());
|