@opencode/server 0.0.0-dev-646 → 0.0.0-dev-665
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 +4 -4
- package/dist/chunks/{service-status-zmgfywqd.js → service-status-05c5061t.js} +1 -1
- package/dist/chunks/{service-status-r5696se6.js → service-status-0e81et3m.js} +3 -3
- package/dist/chunks/{service-status-0pbbhyf6.js → service-status-0ey2b45p.js} +2 -2
- package/dist/chunks/{service-status-57m9rtnr.js → service-status-0fv515j7.js} +1 -1
- package/dist/chunks/{service-status-wqv43pj9.js → service-status-0j6zxxn8.js} +2 -2
- package/dist/chunks/{service-status-zyntahe8.js → service-status-0n4tjm17.js} +1 -1
- package/dist/chunks/{service-status-370cpmna.js → service-status-4p2y0qs3.js} +2 -2
- package/dist/chunks/{service-status-gqq6kfhc.js → service-status-50bbk3b2.js} +2 -2
- package/dist/chunks/{service-status-npznkbd0.js → service-status-7nb2rv11.js} +2 -2
- package/dist/chunks/{service-status-zds85vps.js → service-status-861wfsmy.js} +1 -1
- package/dist/chunks/{service-status-5z5anmwp.js → service-status-89egwzf3.js} +2 -2
- package/dist/chunks/{service-status-vtfzy3at.js → service-status-9grnt8dc.js} +2 -2
- package/dist/chunks/{service-status-f1h0dkrd.js → service-status-a6axt6mc.js} +7 -7
- package/dist/chunks/{service-status-yet0vexm.js → service-status-b3bmdkga.js} +1 -1
- package/dist/chunks/{service-status-xpg37vzc.js → service-status-b4mqtccx.js} +2 -2
- package/dist/chunks/{service-status-5afgx201.js → service-status-cdhjn32v.js} +2 -2
- package/dist/chunks/{service-status-tr1kynej.js → service-status-cr0ys0p9.js} +1 -1
- package/dist/chunks/{service-status-7cd61xtm.js → service-status-dx89xydc.js} +2 -2
- package/dist/chunks/{service-status-4z8yg1dv.js → service-status-dz2mkdr7.js} +2 -2
- package/dist/chunks/{service-status-0q7s66m2.js → service-status-e6e4kz0w.js} +3 -3
- package/dist/chunks/{service-status-2835150m.js → service-status-et00mhwf.js} +2 -2
- package/dist/chunks/{service-status-rxyx8sa0.js → service-status-f8r9p2vr.js} +2 -2
- package/dist/chunks/{service-status-e0ppd0jy.js → service-status-fvpjvjpp.js} +4 -4
- package/dist/chunks/{service-status-jc2vwkyw.js → service-status-h1thjy6x.js} +2 -2
- package/dist/chunks/{service-status-gk0yxcp6.js → service-status-htyf2qs7.js} +1 -1
- package/dist/chunks/{service-status-0e4fm4yw.js → service-status-hx8bsq9d.js} +1 -1
- package/dist/chunks/{service-status-50xc6x42.js → service-status-kg0ybx4v.js} +2 -2
- package/dist/chunks/{service-status-5553qfcy.js → service-status-m119esdv.js} +1 -1
- package/dist/chunks/{service-status-7tewdwsb.js → service-status-nz17qv97.js} +2 -2
- package/dist/chunks/{service-status-xbqm7mpj.js → service-status-q44yktpv.js} +2 -2
- package/dist/chunks/{service-status-jxgd12p9.js → service-status-q7gq5hfr.js} +11 -11
- package/dist/chunks/{service-status-saxc5sqn.js → service-status-qsswwxkv.js} +33 -33
- package/dist/chunks/{service-status-f4exzdsf.js → service-status-s62wjkvx.js} +2 -2
- package/dist/chunks/{service-status-skcryrty.js → service-status-s9tkswmw.js} +2 -2
- package/dist/chunks/{service-status-7x1re4zg.js → service-status-v8aqacn3.js} +2 -2
- package/dist/chunks/{service-status-sqxx1p54.js → service-status-vbgqk0mr.js} +2 -2
- package/dist/chunks/{service-status-mzs0n5xz.js → service-status-w9jcwh65.js} +6 -6
- package/dist/chunks/{service-status-f1s94ffa.js → service-status-w9xs8vmy.js} +2 -2
- package/dist/chunks/{service-status-r2veymj8.js → service-status-wq29mwx6.js} +2 -2
- package/dist/chunks/{service-status-w83vdpy9.js → service-status-x2580v0z.js} +2 -2
- package/dist/chunks/{service-status-vvp99hc9.js → service-status-x4b2rtcb.js} +1 -1
- package/dist/chunks/{service-status-b1prsepx.js → service-status-yjbzmfhm.js} +6 -6
- package/dist/chunks/{service-status-74kxthdf.js → service-status-zbe9jfhy.js} +1 -1
- package/dist/chunks/{service-status-z9kgby92.js → service-status-zvbhqxt5.js} +2 -2
- package/dist/event-feed.js +3 -3
- package/dist/fetch.js +46 -46
- package/dist/handlers/agent.js +5 -5
- package/dist/handlers/artifact.js +2 -2
- package/dist/handlers/command.js +5 -5
- package/dist/handlers/config.js +5 -5
- package/dist/handlers/credential.js +6 -6
- package/dist/handlers/debug.js +5 -5
- package/dist/handlers/event.js +6 -6
- 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 +6 -6
- 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 +8 -8
- 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 +8 -8
- package/dist/handlers/session.js +5 -5
- package/dist/handlers/shell.js +5 -5
- package/dist/handlers/skill.js +5 -5
- package/dist/handlers/usage.js +5 -5
- package/dist/handlers/vcs.js +5 -5
- package/dist/handlers/voice.js +5 -5
- package/dist/handlers/websearch.js +5 -5
- package/dist/handlers/worktree.js +5 -5
- package/dist/handlers.js +43 -43
- 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 +3 -3
- package/dist/process.js +45 -45
- package/dist/routes.js +44 -44
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +43 -43
- package/package.json +8 -8
package/dist/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./chunks/service-status-
|
|
4
|
-
import"./chunks/service-status-
|
|
5
|
-
import"./chunks/service-status-
|
|
6
|
-
import"./chunks/service-status-
|
|
3
|
+
} from "./chunks/service-status-0e81et3m.js";
|
|
4
|
+
import"./chunks/service-status-b3bmdkga.js";
|
|
5
|
+
import"./chunks/service-status-htyf2qs7.js";
|
|
6
|
+
import"./chunks/service-status-50bbk3b2.js";
|
|
7
7
|
import"./chunks/service-status-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-htyf2qs7.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./service-status-
|
|
9
|
+
} from "./service-status-b3bmdkga.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 "./service-status-
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-0e81et3m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/fs.ts
|
|
9
9
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./service-status-
|
|
4
|
+
} from "./service-status-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./service-status-
|
|
7
|
+
} from "./service-status-0e81et3m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./service-status-
|
|
4
|
+
} from "./service-status-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./service-status-
|
|
7
|
+
} from "./service-status-0e81et3m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/model.ts
|
|
10
10
|
import { Model } from "@opencode/core/model";
|
|
@@ -59,7 +59,7 @@ function decode(input) {
|
|
|
59
59
|
return input;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var layer4 = 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 layer3 = 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, layer4 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-0e81et3m.js";
|
|
4
4
|
import {
|
|
5
5
|
Service2,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./service-status-
|
|
7
|
+
} from "./service-status-fvpjvjpp.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/event.ts
|
|
10
10
|
import { Event } from "@opencode/schema/event";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./service-status-
|
|
4
|
+
} from "./service-status-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./service-status-
|
|
7
|
+
} from "./service-status-0e81et3m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/usage.ts
|
|
10
10
|
import { UsageLimits } from "@opencode/core/usage-limits";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./service-status-
|
|
4
|
+
} from "./service-status-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./service-status-
|
|
7
|
+
} from "./service-status-0e81et3m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/provider.ts
|
|
10
10
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-0e81et3m.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
9
|
} from "./service-status-j4at0y5c.js";
|
|
10
|
-
import {
|
|
11
|
-
Service3
|
|
12
|
-
} from "./service-status-b1prsepx.js";
|
|
13
10
|
import {
|
|
14
11
|
Service4
|
|
15
|
-
} from "./service-status-
|
|
12
|
+
} from "./service-status-yjbzmfhm.js";
|
|
13
|
+
import {
|
|
14
|
+
Service3
|
|
15
|
+
} from "./service-status-w9jcwh65.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { hostname } from "node:os";
|
|
@@ -22,10 +22,10 @@ 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* Service3;
|
|
26
26
|
const auth = yield* Config2;
|
|
27
27
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
28
|
-
const info = yield*
|
|
28
|
+
const info = yield* Service4;
|
|
29
29
|
return {
|
|
30
30
|
version: info.app.version ?? "unknown",
|
|
31
31
|
pid: process.pid ?? 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-0e81et3m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/command.ts
|
|
9
9
|
import { Command } from "@opencode/core/command";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-0e81et3m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./service-status-
|
|
4
|
+
} from "./service-status-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./service-status-
|
|
7
|
+
} from "./service-status-0e81et3m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./service-status-
|
|
5
|
+
} from "./service-status-50bbk3b2.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./service-status-
|
|
8
|
+
} from "./service-status-0e81et3m.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_service_status = {};
|
|
7
7
|
__export(exports_service_status, {
|
|
8
8
|
Status: () => exports_service_status,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make3
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make3 = 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 make4 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make3, exports_service_status };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./service-status-
|
|
4
|
+
} from "./service-status-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./service-status-
|
|
7
|
+
} from "./service-status-0e81et3m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/voice.ts
|
|
10
10
|
import { Location } from "@opencode/core/location";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-0e81et3m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/shell.ts
|
|
9
9
|
import { Shell } from "@opencode/core/shell";
|
|
@@ -12,7 +12,7 @@ __export(exports_event_feed, {
|
|
|
12
12
|
SubscriberOverflowError: () => SubscriberOverflowError2,
|
|
13
13
|
frame: () => frame2,
|
|
14
14
|
layer: () => layer2,
|
|
15
|
-
make: () =>
|
|
15
|
+
make: () => make4
|
|
16
16
|
});
|
|
17
17
|
import { Bus } from "@opencode/core/bus";
|
|
18
18
|
import { Event } from "@opencode/schema/event";
|
|
@@ -37,7 +37,7 @@ function frame2(event) {
|
|
|
37
37
|
|
|
38
38
|
`;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
41
41
|
const capacity = options?.capacity ?? SubscriberCapacity2;
|
|
42
42
|
const render = options?.encode ?? frame2;
|
|
43
43
|
const subscribers = new Map;
|
|
@@ -78,7 +78,7 @@ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
78
78
|
});
|
|
79
79
|
var layer2 = Layer.effect(Service2, Effect.gen(function* () {
|
|
80
80
|
const bus = yield* Bus.Service;
|
|
81
|
-
return yield*
|
|
81
|
+
return yield* make4(bus.listen);
|
|
82
82
|
}));
|
|
83
83
|
|
|
84
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2,
|
|
84
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-0e81et3m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./service-status-
|
|
8
|
+
} from "./service-status-50bbk3b2.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./service-status-
|
|
11
|
+
} from "./service-status-0e81et3m.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-0e81et3m.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 "./service-status-
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-0e81et3m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/skill.ts
|
|
9
9
|
import { Skill } from "@opencode/core/skill";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./service-status-
|
|
2
|
+
layer4
|
|
3
|
+
} from "./service-status-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-htyf2qs7.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./service-status-
|
|
9
|
+
} from "./service-status-b3bmdkga.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./service-status-
|
|
12
|
+
} from "./service-status-0e81et3m.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
15
|
} from "./service-status-j4at0y5c.js";
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
CorsConfig2
|
|
18
18
|
} from "./service-status-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./service-status-
|
|
20
|
+
layer3
|
|
21
|
+
} from "./service-status-yjbzmfhm.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./service-status-
|
|
24
|
+
} from "./service-status-w9jcwh65.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./service-status-
|
|
27
|
+
} from "./service-status-qsswwxkv.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
30
|
} from "./service-status-7b9xm1qg.js";
|
|
@@ -156,8 +156,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
156
156
|
})) : build(overrides);
|
|
157
157
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
158
158
|
const services = Layer.succeedContext(context);
|
|
159
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
160
|
-
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(
|
|
159
|
+
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer3(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
|
|
160
|
+
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.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
161
161
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
162
162
|
}));
|
|
163
163
|
}
|
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./service-status-
|
|
3
|
+
} from "./service-status-0j6zxxn8.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./service-status-
|
|
6
|
+
} from "./service-status-et00mhwf.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./service-status-
|
|
9
|
+
} from "./service-status-m119esdv.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./service-status-
|
|
12
|
+
} from "./service-status-4p2y0qs3.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./service-status-
|
|
15
|
+
} from "./service-status-9grnt8dc.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./service-status-
|
|
18
|
+
} from "./service-status-zvbhqxt5.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./service-status-
|
|
21
|
+
} from "./service-status-kg0ybx4v.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./service-status-
|
|
24
|
+
} from "./service-status-0ey2b45p.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./service-status-
|
|
27
|
+
} from "./service-status-v8aqacn3.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./service-status-
|
|
30
|
+
} from "./service-status-b4mqtccx.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./service-status-
|
|
33
|
+
} from "./service-status-q44yktpv.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./service-status-
|
|
36
|
+
} from "./service-status-0n4tjm17.js";
|
|
37
37
|
import {
|
|
38
38
|
layer2
|
|
39
|
-
} from "./service-status-
|
|
39
|
+
} from "./service-status-fvpjvjpp.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./service-status-
|
|
42
|
+
} from "./service-status-7nb2rv11.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./service-status-
|
|
45
|
+
} from "./service-status-s62wjkvx.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./service-status-
|
|
48
|
+
} from "./service-status-vbgqk0mr.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./service-status-
|
|
51
|
+
} from "./service-status-a6axt6mc.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./service-status-
|
|
54
|
+
} from "./service-status-h1thjy6x.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./service-status-
|
|
57
|
+
} from "./service-status-wq29mwx6.js";
|
|
58
58
|
import {
|
|
59
59
|
PersistentPtyHandler2
|
|
60
|
-
} from "./service-status-
|
|
60
|
+
} from "./service-status-w9xs8vmy.js";
|
|
61
61
|
import {
|
|
62
62
|
ShellHandler2
|
|
63
|
-
} from "./service-status-
|
|
63
|
+
} from "./service-status-f8r9p2vr.js";
|
|
64
64
|
import {
|
|
65
65
|
ReferenceHandler2
|
|
66
|
-
} from "./service-status-
|
|
66
|
+
} from "./service-status-s9tkswmw.js";
|
|
67
67
|
import {
|
|
68
68
|
LocationHandler2
|
|
69
|
-
} from "./service-status-
|
|
69
|
+
} from "./service-status-zbe9jfhy.js";
|
|
70
70
|
import {
|
|
71
71
|
IntegrationHandler2
|
|
72
|
-
} from "./service-status-
|
|
72
|
+
} from "./service-status-cdhjn32v.js";
|
|
73
73
|
import {
|
|
74
74
|
WebSearchHandler2
|
|
75
|
-
} from "./service-status-
|
|
75
|
+
} from "./service-status-dx89xydc.js";
|
|
76
76
|
import {
|
|
77
77
|
UsageHandler2
|
|
78
|
-
} from "./service-status-
|
|
78
|
+
} from "./service-status-89egwzf3.js";
|
|
79
79
|
import {
|
|
80
80
|
McpHandler2
|
|
81
|
-
} from "./service-status-
|
|
81
|
+
} from "./service-status-dz2mkdr7.js";
|
|
82
82
|
import {
|
|
83
83
|
CredentialHandler2
|
|
84
|
-
} from "./service-status-
|
|
84
|
+
} from "./service-status-x2580v0z.js";
|
|
85
85
|
import {
|
|
86
86
|
ProjectHandler2
|
|
87
|
-
} from "./service-status-
|
|
87
|
+
} from "./service-status-05c5061t.js";
|
|
88
88
|
import {
|
|
89
89
|
WorktreeHandler2
|
|
90
|
-
} from "./service-status-
|
|
90
|
+
} from "./service-status-861wfsmy.js";
|
|
91
91
|
import {
|
|
92
92
|
VcsHandler2
|
|
93
|
-
} from "./service-status-
|
|
93
|
+
} from "./service-status-nz17qv97.js";
|
|
94
94
|
import {
|
|
95
95
|
MigrationHandler2
|
|
96
|
-
} from "./service-status-
|
|
96
|
+
} from "./service-status-x4b2rtcb.js";
|
|
97
97
|
import {
|
|
98
98
|
ConfigHandler2
|
|
99
|
-
} from "./service-status-
|
|
99
|
+
} from "./service-status-hx8bsq9d.js";
|
|
100
100
|
|
|
101
101
|
// src/handlers.ts
|
|
102
102
|
import { Layer } from "effect";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./service-status-
|
|
4
|
+
} from "./service-status-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./service-status-
|
|
7
|
+
} from "./service-status-0e81et3m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/agent.ts
|
|
10
10
|
import { Agent } from "@opencode/core/agent";
|