@opencode/server 0.0.0-dev-20810 → 0.0.0-dev-20813
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 +4 -1
- package/dist/api.js +4 -4
- package/dist/chunks/{server-info-sstsrjtg.js → server-info-0chp8crd.js} +7 -7
- package/dist/chunks/{server-info-yeebkdj0.js → server-info-0gbaaetm.js} +2 -2
- package/dist/chunks/{server-info-g7sdbt1s.js → server-info-1wyt3am5.js} +2 -2
- package/dist/chunks/{server-info-brs8esa7.js → server-info-1ybjhnn1.js} +2 -2
- package/dist/chunks/{server-info-4nbah0zs.js → server-info-2ac2kv4c.js} +3 -3
- package/dist/chunks/{server-info-547pgmmc.js → server-info-3m0ygtwr.js} +2 -2
- package/dist/chunks/{server-info-fysmzcya.js → server-info-4bxenate.js} +2 -2
- package/dist/chunks/{server-info-4gnb9897.js → server-info-4hhhes7w.js} +1 -1
- package/dist/chunks/{server-info-fge4n079.js → server-info-604r47cy.js} +2 -2
- package/dist/chunks/{server-info-amh2w8sq.js → server-info-660rwdts.js} +1 -1
- package/dist/chunks/{server-info-8t0ckx4f.js → server-info-7armztsr.js} +1 -1
- package/dist/chunks/{server-info-gq8jw616.js → server-info-7bgw0qp5.js} +2 -2
- package/dist/chunks/{server-info-pdrpwng2.js → server-info-8d3kne8a.js} +5 -5
- package/dist/chunks/{server-info-gw6rc7x0.js → server-info-8me0mqmd.js} +2 -2
- package/dist/chunks/{server-info-jd2d9483.js → server-info-adb03esn.js} +2 -2
- package/dist/chunks/{server-info-s0qm098c.js → server-info-b3jp5nc2.js} +2 -2
- package/dist/chunks/{server-info-50bbk3b2.js → server-info-b56hqv74.js} +2 -2
- package/dist/chunks/{server-info-ghk96rjy.js → server-info-b8ygg5k2.js} +4 -4
- package/dist/chunks/{server-info-z7784r19.js → server-info-begnybrv.js} +2 -2
- package/dist/chunks/{server-info-3kqp6d6s.js → server-info-f38btkx0.js} +30 -30
- package/dist/chunks/{server-info-t4c683g8.js → server-info-gpx0gpd1.js} +2 -2
- package/dist/chunks/{server-info-ejxveg3k.js → server-info-gyhhex9x.js} +1 -1
- package/dist/chunks/{server-info-qx5ydgm0.js → server-info-hc75vmb2.js} +1 -1
- package/dist/chunks/{server-info-b3bmdkga.js → server-info-j4zqsxgy.js} +1 -1
- package/dist/chunks/{server-info-hwqxzcvy.js → server-info-k136bvh5.js} +1 -1
- package/dist/chunks/{server-info-tp6qcw6t.js → server-info-nnn3xt9j.js} +1 -1
- package/dist/chunks/{server-info-7xe5pzvy.js → server-info-nqkf5k2k.js} +1 -1
- package/dist/chunks/{server-info-z6z134jc.js → server-info-pc33848r.js} +2 -2
- package/dist/chunks/{server-info-230swv0t.js → server-info-pk8nang1.js} +7 -7
- package/dist/chunks/{server-info-jk5edc6h.js → server-info-rkx9hda5.js} +2 -2
- package/dist/chunks/{server-info-w4e9jgda.js → server-info-rw74d7br.js} +1 -1
- package/dist/chunks/{server-info-sc3gatcy.js → server-info-rwtj6z5q.js} +1 -1
- package/dist/chunks/{server-info-a5enak0e.js → server-info-ryr0njrg.js} +2 -2
- package/dist/chunks/{server-info-p2rqjjcb.js → server-info-t0qy28ny.js} +14 -13
- package/dist/chunks/{server-info-75c938bc.js → server-info-tnr0rqd3.js} +7 -7
- package/dist/chunks/{server-info-rhdada90.js → server-info-vfwf1dhc.js} +2 -2
- package/dist/chunks/{server-info-cpp0zjdy.js → server-info-x34tt0qt.js} +2 -2
- package/dist/chunks/{server-info-qcfps8nc.js → server-info-y5j6n4zr.js} +2 -2
- package/dist/chunks/{server-info-fazm2c7b.js → server-info-y9g6k1bm.js} +2 -2
- package/dist/chunks/{server-info-zfbzqd0e.js → server-info-zj4vfrqs.js} +1 -1
- package/dist/fetch.js +41 -41
- package/dist/handlers/agent.js +5 -5
- package/dist/handlers/command.js +5 -5
- package/dist/handlers/config.js +5 -5
- package/dist/handlers/credential.js +5 -5
- package/dist/handlers/debug.js +5 -5
- package/dist/handlers/event.js +5 -5
- package/dist/handlers/form.js +5 -5
- package/dist/handlers/fs.js +5 -5
- package/dist/handlers/generate.js +5 -5
- package/dist/handlers/integration.js +5 -5
- package/dist/handlers/location.js +5 -5
- package/dist/handlers/mcp.js +5 -5
- package/dist/handlers/message.js +5 -5
- package/dist/handlers/migration.js +5 -5
- package/dist/handlers/model.js +5 -5
- package/dist/handlers/permission.js +5 -5
- package/dist/handlers/persistent-pty.js +5 -5
- package/dist/handlers/plugin.js +5 -5
- package/dist/handlers/project.js +5 -5
- package/dist/handlers/provider.js +5 -5
- package/dist/handlers/pty.js +6 -6
- package/dist/handlers/reference.js +5 -5
- package/dist/handlers/rpc.js +5 -5
- package/dist/handlers/server.js +7 -7
- package/dist/handlers/session.js +5 -5
- package/dist/handlers/shell.js +5 -5
- package/dist/handlers/skill.js +5 -5
- package/dist/handlers/vcs.js +5 -5
- package/dist/handlers/websearch.js +5 -5
- package/dist/handlers/worktree.js +5 -5
- package/dist/handlers.js +38 -38
- package/dist/location.js +3 -3
- package/dist/middleware/form-location.js +2 -2
- package/dist/middleware/session-location.js +2 -2
- package/dist/pairing.js +5 -5
- package/dist/process.js +39 -39
- package/dist/pty-environment.js +7 -7
- package/dist/routes.js +40 -40
- package/dist/server-info.js +3 -3
- package/dist/workerd.js +40 -40
- package/package.json +8 -8
package/dist/api.d.ts
CHANGED
|
@@ -4714,6 +4714,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
4714
4714
|
readonly created: import("effect/Schema").Int;
|
|
4715
4715
|
readonly updated: import("effect/Schema").Int;
|
|
4716
4716
|
readonly active: import("effect/Schema").Int;
|
|
4717
|
+
readonly archived: 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>;
|
|
4717
4718
|
}>;
|
|
4718
4719
|
readonly sandboxes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
4719
4720
|
}>;
|
|
@@ -4746,6 +4747,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
4746
4747
|
readonly created: import("effect/Schema").Int;
|
|
4747
4748
|
readonly updated: import("effect/Schema").Int;
|
|
4748
4749
|
readonly active: import("effect/Schema").Int;
|
|
4750
|
+
readonly archived: 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>;
|
|
4749
4751
|
}>;
|
|
4750
4752
|
readonly sandboxes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
4751
4753
|
}>;
|
|
@@ -6732,8 +6734,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
6732
6734
|
readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
6733
6735
|
readonly time: {
|
|
6734
6736
|
readonly created: number;
|
|
6735
|
-
readonly updated: number;
|
|
6736
6737
|
readonly active: number;
|
|
6738
|
+
readonly updated: number;
|
|
6739
|
+
readonly archived?: number | undefined;
|
|
6737
6740
|
};
|
|
6738
6741
|
readonly sandboxes: readonly string[];
|
|
6739
6742
|
readonly name?: string | undefined;
|
package/dist/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./chunks/server-info-
|
|
4
|
-
import"./chunks/server-info-
|
|
5
|
-
import"./chunks/server-info-
|
|
6
|
-
import"./chunks/server-info-
|
|
3
|
+
} from "./chunks/server-info-2ac2kv4c.js";
|
|
4
|
+
import"./chunks/server-info-4hhhes7w.js";
|
|
5
|
+
import"./chunks/server-info-j4zqsxgy.js";
|
|
6
|
+
import"./chunks/server-info-b56hqv74.js";
|
|
7
7
|
import"./chunks/server-info-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
var exports_pairing = {};
|
|
7
7
|
__export(exports_pairing, {
|
|
8
8
|
ServerPairing: () => exports_pairing,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service3,
|
|
10
|
+
node: () => node2
|
|
11
11
|
});
|
|
12
12
|
import { Cache, Context, Duration, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { randomBytes } from "node:crypto";
|
|
15
15
|
var TTL = Duration.minutes(5);
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class Service3 extends Context.Service()("@opencode/ServerPairing") {
|
|
18
18
|
}
|
|
19
19
|
var noLookup = () => Effect.die(new Error("ServerPairing cache must be used via set/invalidateWhen, never get"));
|
|
20
|
-
var layer = Layer.effect(
|
|
20
|
+
var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service3.of({
|
|
23
23
|
issue: Effect.fn("ServerPairing.issue")(function* () {
|
|
24
24
|
const code = randomBytes(16).toString("base64url");
|
|
25
25
|
yield* Cache.set(cache, code, true);
|
|
@@ -30,6 +30,6 @@ var layer = Layer.effect(Service5, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var
|
|
33
|
+
var node2 = makeGlobalNode({ service: Service3, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service3, node2, exports_pairing };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/mcp.ts
|
|
9
9
|
import { Mcp } from "@opencode/core/mcp/index";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/agent.ts
|
|
9
9
|
import { Agent } from "@opencode/core/agent";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./server-info-
|
|
8
|
+
} from "./server-info-b56hqv74.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./server-info-
|
|
11
|
+
} from "./server-info-2ac2kv4c.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-4hhhes7w.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./server-info-
|
|
9
|
+
} from "./server-info-j4zqsxgy.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.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
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/command.ts
|
|
9
9
|
import { Command } from "@opencode/core/command";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./server-info-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./server-info-
|
|
9
|
+
} from "./server-info-b56hqv74.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./server-info-
|
|
12
|
+
} from "./server-info-2ac2kv4c.js";
|
|
13
13
|
|
|
14
14
|
// src/handlers/session.ts
|
|
15
15
|
import { Session } from "@opencode/core/session";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./server-info-
|
|
4
|
+
} from "./server-info-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./server-info-
|
|
7
|
+
} from "./server-info-2ac2kv4c.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./server-info-
|
|
5
|
+
} from "./server-info-b56hqv74.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./server-info-
|
|
8
|
+
} from "./server-info-2ac2kv4c.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
12
|
} from "./server-info-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./server-info-
|
|
14
|
+
Service5
|
|
15
|
+
} from "./server-info-tnr0rqd3.js";
|
|
16
16
|
import {
|
|
17
17
|
runPtySocket2
|
|
18
18
|
} from "./server-info-h6rt5k9s.js";
|
|
@@ -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* Service5;
|
|
45
45
|
return handlers.handle("pty.list", Effect.fn(function* () {
|
|
46
46
|
const pty = yield* Pty.Service;
|
|
47
47
|
return yield* response2(pty.list());
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.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 "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.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
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/form.ts
|
|
9
9
|
import { Form } from "@opencode/core/form";
|
|
@@ -59,7 +59,7 @@ function decode(input) {
|
|
|
59
59
|
return input;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var layer5 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
|
|
63
63
|
const locations = yield* LocationServiceMap.Service;
|
|
64
64
|
return LocationMiddleware2.of((effect) => Effect.gen(function* () {
|
|
65
65
|
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
@@ -67,4 +67,4 @@ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
|
|
|
67
67
|
}));
|
|
68
68
|
}));
|
|
69
69
|
|
|
70
|
-
export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2,
|
|
70
|
+
export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer5 };
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
var exports_server_info = {};
|
|
7
7
|
__export(exports_server_info, {
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service4,
|
|
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 Service4 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
18
|
function layer3(urls, tmp, app = {}) {
|
|
19
|
-
return Layer.succeed(
|
|
19
|
+
return Layer.succeed(Service4, Service4.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 { Service4, layer3, connectionURLs2, exports_server_info };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-2ac2kv4c.js";
|
|
4
4
|
|
|
5
5
|
// src/handlers/project.ts
|
|
6
6
|
import { Project } from "@opencode/core/project";
|
|
7
7
|
import { Effect } from "effect";
|
|
8
8
|
import { HttpApiBuilder } from "effect/http-api";
|
|
9
9
|
import { ProjectNotFoundError } from "@opencode/protocol/errors";
|
|
10
|
-
var ProjectHandler2 = HttpApiBuilder.group(Api2, "server.project", (handlers) => handlers.handle("project.list", () => Project.Service.use((project) => project.list())).handle("project.update", (ctx) => Project.Service.use((project) => project.update({ ...ctx.payload, projectID: ctx.params.projectID }).pipe(Effect.mapError(() => new ProjectNotFoundError({
|
|
10
|
+
var ProjectHandler2 = HttpApiBuilder.group(Api2, "server.project", (handlers) => handlers.handle("project.list", (ctx) => Project.Service.use((project) => project.list(ctx.query))).handle("project.update", (ctx) => Project.Service.use((project) => project.update({ ...ctx.payload, projectID: ctx.params.projectID }).pipe(Effect.mapError(() => new ProjectNotFoundError({
|
|
11
11
|
projectID: ctx.params.projectID,
|
|
12
12
|
message: `Project not found: ${ctx.params.projectID}`
|
|
13
13
|
}))))));
|
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-7bgw0qp5.js";
|
|
4
4
|
import {
|
|
5
5
|
MessageHandler2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-7armztsr.js";
|
|
7
7
|
import {
|
|
8
8
|
ModelHandler2
|
|
9
|
-
} from "./server-info-
|
|
9
|
+
} from "./server-info-x34tt0qt.js";
|
|
10
10
|
import {
|
|
11
11
|
ProviderHandler2
|
|
12
|
-
} from "./server-info-
|
|
12
|
+
} from "./server-info-y9g6k1bm.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionHandler2
|
|
15
|
-
} from "./server-info-
|
|
15
|
+
} from "./server-info-604r47cy.js";
|
|
16
16
|
import {
|
|
17
17
|
PermissionHandler2
|
|
18
|
-
} from "./server-info-
|
|
18
|
+
} from "./server-info-1ybjhnn1.js";
|
|
19
19
|
import {
|
|
20
20
|
FileSystemHandler2
|
|
21
|
-
} from "./server-info-
|
|
21
|
+
} from "./server-info-y5j6n4zr.js";
|
|
22
22
|
import {
|
|
23
23
|
FormHandler2
|
|
24
|
-
} from "./server-info-
|
|
24
|
+
} from "./server-info-b3jp5nc2.js";
|
|
25
25
|
import {
|
|
26
26
|
CommandHandler2
|
|
27
|
-
} from "./server-info-
|
|
27
|
+
} from "./server-info-4bxenate.js";
|
|
28
28
|
import {
|
|
29
29
|
SkillHandler2
|
|
30
|
-
} from "./server-info-
|
|
30
|
+
} from "./server-info-3m0ygtwr.js";
|
|
31
31
|
import {
|
|
32
32
|
RpcHandler2
|
|
33
|
-
} from "./server-info-
|
|
33
|
+
} from "./server-info-rw74d7br.js";
|
|
34
34
|
import {
|
|
35
35
|
layer2
|
|
36
36
|
} from "./server-info-2sy3c7de.js";
|
|
37
37
|
import {
|
|
38
38
|
EventHandler2
|
|
39
|
-
} from "./server-info-
|
|
39
|
+
} from "./server-info-660rwdts.js";
|
|
40
40
|
import {
|
|
41
41
|
AgentHandler2
|
|
42
|
-
} from "./server-info-
|
|
42
|
+
} from "./server-info-1wyt3am5.js";
|
|
43
43
|
import {
|
|
44
44
|
PluginHandler2
|
|
45
|
-
} from "./server-info-
|
|
45
|
+
} from "./server-info-adb03esn.js";
|
|
46
46
|
import {
|
|
47
47
|
ServerHandler2
|
|
48
|
-
} from "./server-info-
|
|
48
|
+
} from "./server-info-pk8nang1.js";
|
|
49
49
|
import {
|
|
50
50
|
DebugHandler2
|
|
51
|
-
} from "./server-info-
|
|
51
|
+
} from "./server-info-vfwf1dhc.js";
|
|
52
52
|
import {
|
|
53
53
|
PtyHandler2
|
|
54
|
-
} from "./server-info-
|
|
54
|
+
} from "./server-info-8d3kne8a.js";
|
|
55
55
|
import {
|
|
56
56
|
PersistentPtyHandler2
|
|
57
|
-
} from "./server-info-
|
|
57
|
+
} from "./server-info-rwtj6z5q.js";
|
|
58
58
|
import {
|
|
59
59
|
ShellHandler2
|
|
60
|
-
} from "./server-info-
|
|
60
|
+
} from "./server-info-gpx0gpd1.js";
|
|
61
61
|
import {
|
|
62
62
|
ReferenceHandler2
|
|
63
|
-
} from "./server-info-
|
|
63
|
+
} from "./server-info-pc33848r.js";
|
|
64
64
|
import {
|
|
65
65
|
LocationHandler2
|
|
66
|
-
} from "./server-info-
|
|
66
|
+
} from "./server-info-nqkf5k2k.js";
|
|
67
67
|
import {
|
|
68
68
|
IntegrationHandler2
|
|
69
|
-
} from "./server-info-
|
|
69
|
+
} from "./server-info-rkx9hda5.js";
|
|
70
70
|
import {
|
|
71
71
|
WebSearchHandler2
|
|
72
|
-
} from "./server-info-
|
|
72
|
+
} from "./server-info-ryr0njrg.js";
|
|
73
73
|
import {
|
|
74
74
|
McpHandler2
|
|
75
|
-
} from "./server-info-
|
|
75
|
+
} from "./server-info-0gbaaetm.js";
|
|
76
76
|
import {
|
|
77
77
|
CredentialHandler2
|
|
78
|
-
} from "./server-info-
|
|
78
|
+
} from "./server-info-hc75vmb2.js";
|
|
79
79
|
import {
|
|
80
80
|
ProjectHandler2
|
|
81
|
-
} from "./server-info-
|
|
81
|
+
} from "./server-info-begnybrv.js";
|
|
82
82
|
import {
|
|
83
83
|
WorktreeHandler2
|
|
84
|
-
} from "./server-info-
|
|
84
|
+
} from "./server-info-zj4vfrqs.js";
|
|
85
85
|
import {
|
|
86
86
|
VcsHandler2
|
|
87
|
-
} from "./server-info-
|
|
87
|
+
} from "./server-info-8me0mqmd.js";
|
|
88
88
|
import {
|
|
89
89
|
MigrationHandler2
|
|
90
|
-
} from "./server-info-
|
|
90
|
+
} from "./server-info-nnn3xt9j.js";
|
|
91
91
|
import {
|
|
92
92
|
ConfigHandler2
|
|
93
|
-
} from "./server-info-
|
|
93
|
+
} from "./server-info-k136bvh5.js";
|
|
94
94
|
|
|
95
95
|
// src/handlers.ts
|
|
96
96
|
import { Layer } from "effect";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/shell.ts
|
|
9
9
|
import { Shell } from "@opencode/core/shell";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/reference.ts
|
|
9
9
|
import { Reference } from "@opencode/core/reference";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-2ac2kv4c.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
sessionCookieName2
|
|
9
9
|
} from "./server-info-anm12x33.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./server-info-
|
|
11
|
+
Service4
|
|
12
|
+
} from "./server-info-b8ygg5k2.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./server-info-
|
|
14
|
+
Service3
|
|
15
|
+
} from "./server-info-0chp8crd.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* Service3;
|
|
25
25
|
const auth = yield* Config2;
|
|
26
26
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
27
|
-
const info = yield*
|
|
27
|
+
const info = yield* Service4;
|
|
28
28
|
return {
|
|
29
29
|
version: info.app.version ?? "unknown",
|
|
30
30
|
pid: process.pid ?? 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./server-info-
|
|
3
|
+
} from "./server-info-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./server-info-
|
|
6
|
+
} from "./server-info-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/websearch.ts
|
|
9
9
|
import { WebSearch } from "@opencode/core/websearch";
|