@opencode/server 0.0.0-dev-440 → 0.0.0-dev-442
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/{server-info-059rbh9c.js → pairing-059rbh9c.js} +1 -1
- package/dist/chunks/{server-info-0a5jm2na.js → pairing-0a5jm2na.js} +2 -2
- package/dist/chunks/{server-info-0n1e9dnh.js → pairing-0n1e9dnh.js} +3 -3
- package/dist/chunks/{server-info-m4z7bvny.js → pairing-1g8st1y7.js} +6 -6
- package/dist/chunks/{server-info-1je14sn4.js → pairing-1je14sn4.js} +1 -1
- package/dist/chunks/{server-info-22wspztn.js → pairing-22wspztn.js} +2 -2
- package/dist/chunks/{server-info-2xcc0x05.js → pairing-2xcc0x05.js} +1 -1
- package/dist/chunks/{server-info-kjw6zg49.js → pairing-3pagc0a1.js} +6 -6
- package/dist/chunks/{server-info-41yet3w7.js → pairing-41yet3w7.js} +1 -1
- package/dist/chunks/{server-info-57m9rtnr.js → pairing-57m9rtnr.js} +2 -2
- package/dist/chunks/{server-info-84dqjc6j.js → pairing-5d6vbsvc.js} +4 -4
- package/dist/chunks/{server-info-6vs5sqy6.js → pairing-6vs5sqy6.js} +2 -2
- package/dist/chunks/{server-info-7b9xm1qg.js → pairing-7b9xm1qg.js} +1 -1
- package/dist/chunks/{server-info-7dtbad8d.js → pairing-7dtbad8d.js} +1 -1
- package/dist/chunks/{server-info-9c4eyh8m.js → pairing-9c4eyh8m.js} +3 -3
- package/dist/chunks/{server-info-b2k9041j.js → pairing-b2k9041j.js} +1 -1
- package/dist/chunks/{server-info-b5vdqx3g.js → pairing-b5vdqx3g.js} +2 -2
- package/dist/chunks/{server-info-c6sjpm0r.js → pairing-c6sjpm0r.js} +2 -2
- package/dist/chunks/{server-info-skwhrftv.js → pairing-cgg9p0js.js} +11 -11
- package/dist/chunks/{server-info-dk68ymtv.js → pairing-dk68ymtv.js} +1 -1
- package/dist/chunks/{server-info-e46y0tfd.js → pairing-e46y0tfd.js} +2 -2
- package/dist/chunks/{server-info-0q7s66m2.js → pairing-e6e4kz0w.js} +4 -4
- package/dist/chunks/{server-info-34xzc0ha.js → pairing-eyafmjms.js} +4 -4
- package/dist/chunks/{server-info-20b2yx1f.js → pairing-fvpjvjpp.js} +9 -9
- package/dist/chunks/{server-info-bq23jwwt.js → pairing-gje32mse.js} +3 -3
- package/dist/chunks/{server-info-gk0yxcp6.js → pairing-gk0yxcp6.js} +1 -1
- package/dist/chunks/{server-info-gqq6kfhc.js → pairing-gqq6kfhc.js} +1 -1
- package/dist/chunks/{server-info-h072q2hm.js → pairing-h072q2hm.js} +1 -1
- package/dist/chunks/{server-info-hax1v4bv.js → pairing-hax1v4bv.js} +2 -2
- package/dist/chunks/{server-info-hnheq3hv.js → pairing-hnheq3hv.js} +2 -2
- package/dist/chunks/{server-info-j4at0y5c.js → pairing-j4at0y5c.js} +1 -1
- package/dist/chunks/{server-info-j9gxd9me.js → pairing-j9gxd9me.js} +2 -2
- package/dist/chunks/{server-info-m5rae7m4.js → pairing-m5rae7m4.js} +2 -2
- package/dist/chunks/{server-info-vpkct0n8.js → pairing-p3nq01c3.js} +33 -33
- package/dist/chunks/{server-info-ppma8fcc.js → pairing-ppma8fcc.js} +3 -3
- package/dist/chunks/{server-info-685a6gp2.js → pairing-prdak4hd.js} +4 -4
- package/dist/chunks/{server-info-qn8kkfq6.js → pairing-qn8kkfq6.js} +2 -2
- package/dist/chunks/{server-info-r6vmgwff.js → pairing-r6vmgwff.js} +2 -2
- package/dist/chunks/{server-info-kqr36gas.js → pairing-w9jcwh65.js} +7 -7
- package/dist/chunks/{server-info-wd7b20jw.js → pairing-wd7b20jw.js} +4 -4
- package/dist/chunks/{server-info-wxj3d9av.js → pairing-wxj3d9av.js} +2 -2
- package/dist/chunks/{server-info-x8dgc261.js → pairing-x8dgc261.js} +2 -2
- package/dist/chunks/{server-info-xe9t9xr4.js → pairing-xe9t9xr4.js} +2 -2
- package/dist/chunks/{server-info-yet0vexm.js → pairing-yet0vexm.js} +1 -1
- package/dist/chunks/{server-info-yr4wsvrw.js → pairing-yr4wsvrw.js} +2 -2
- package/dist/chunks/{server-info-z59gyc0x.js → pairing-z59gyc0x.js} +2 -2
- package/dist/chunks/{server-info-zrprg5z5.js → pairing-zrprg5z5.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +52 -52
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.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/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 +8 -8
- package/dist/handlers/media.js +1 -1
- 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 +11 -11
- 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/reference.js +6 -6
- package/dist/handlers/rpc.js +6 -6
- package/dist/handlers/schedule.js +2 -2
- 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/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 +48 -48
- package/dist/location.js +2 -2
- package/dist/media-uri.js +1 -1
- 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 +3 -3
- package/dist/process.js +56 -56
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +51 -51
- package/dist/server-info.js +1 -1
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +53 -53
- package/package.json +8 -8
- /package/dist/chunks/{server-info-9rqn6x4v.js → pairing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{server-info-bd8755ek.js → pairing-bd8755ek.js} +0 -0
- /package/dist/chunks/{server-info-n321d8vm.js → pairing-n321d8vm.js} +0 -0
- /package/dist/chunks/{server-info-q187pxxd.js → pairing-q187pxxd.js} +0 -0
- /package/dist/chunks/{server-info-q4bn6dy8.js → pairing-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{server-info-smaf4a18.js → pairing-smaf4a18.js} +0 -0
- /package/dist/chunks/{server-info-xthc02cw.js → pairing-xthc02cw.js} +0 -0
- /package/dist/chunks/{server-info-yc7nft6q.js → pairing-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/pairing-9c4eyh8m.js";
|
|
4
|
+
import"./chunks/pairing-yet0vexm.js";
|
|
5
|
+
import"./chunks/pairing-gk0yxcp6.js";
|
|
6
|
+
import"./chunks/pairing-gqq6kfhc.js";
|
|
7
|
+
import"./chunks/pairing-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/model.ts
|
|
10
10
|
import { Model } from "@opencode/core/model";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
3
|
failedMessageDecode2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-smaf4a18.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9c4eyh8m.js";
|
|
8
8
|
import {
|
|
9
9
|
wantsMediaRefs2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./pairing-xthc02cw.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/message.ts
|
|
13
13
|
import { SessionMessage } from "@opencode/core/session/message";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-9c4eyh8m.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./pairing-57m9rtnr.js";
|
|
11
11
|
import {
|
|
12
12
|
makeMediaGet2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./pairing-n321d8vm.js";
|
|
14
14
|
import {
|
|
15
15
|
runPtySocket2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./pairing-q187pxxd.js";
|
|
17
17
|
import {
|
|
18
18
|
makeSchedule2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./pairing-059rbh9c.js";
|
|
20
20
|
|
|
21
21
|
// src/handlers/persistent-pty.ts
|
|
22
22
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-9c4eyh8m.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pairing-j4at0y5c.js";
|
|
10
10
|
import {
|
|
11
11
|
Service4
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./pairing-7dtbad8d.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service3
|
|
15
|
+
} from "./pairing-w9jcwh65.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* Service3;
|
|
26
26
|
const auth = yield* Config2;
|
|
27
27
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
28
28
|
const info = yield* Service4;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
awaitPlugins2,
|
|
7
7
|
response2,
|
|
8
8
|
requestRef2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pairing-gqq6kfhc.js";
|
|
10
10
|
|
|
11
11
|
// src/handlers/artifact.ts
|
|
12
12
|
import { Artifact } from "@opencode/core/artifact";
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./pairing-gqq6kfhc.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./pairing-9c4eyh8m.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./pairing-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2,
|
|
15
15
|
holdLocation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./pairing-q187pxxd.js";
|
|
17
17
|
|
|
18
18
|
// src/handlers/pty.ts
|
|
19
19
|
import { Pty } from "@opencode/core/pty";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pairing-gk0yxcp6.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pairing-yet0vexm.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
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-9c4eyh8m.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pairing-zrprg5z5.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/credential.ts
|
|
9
9
|
import { Credential } from "@opencode/core/credential";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pairing-gk0yxcp6.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pairing-yet0vexm.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./pairing-9c4eyh8m.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./pairing-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./pairing-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
20
|
layer4
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./pairing-7dtbad8d.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./pairing-w9jcwh65.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./pairing-p3nq01c3.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./pairing-7b9xm1qg.js";
|
|
31
31
|
import {
|
|
32
32
|
schemaErrorLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./pairing-bd8755ek.js";
|
|
34
34
|
|
|
35
35
|
// src/routes.ts
|
|
36
36
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-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: () => 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 };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./pairing-gqq6kfhc.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./pairing-9c4eyh8m.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./pairing-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2,
|
|
15
15
|
holdLocation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./pairing-q187pxxd.js";
|
|
17
17
|
|
|
18
18
|
// src/handlers/mcp.ts
|
|
19
19
|
import { Location } from "@opencode/core/location";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/event-feed.ts
|
|
6
6
|
var exports_event_feed = {};
|
|
7
7
|
__export(exports_event_feed, {
|
|
8
8
|
EncodingError: () => EncodingError2,
|
|
9
9
|
EventFeed: () => exports_event_feed,
|
|
10
|
-
Service: () =>
|
|
10
|
+
Service: () => Service2,
|
|
11
11
|
SubscriberCapacity: () => SubscriberCapacity2,
|
|
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";
|
|
@@ -30,14 +30,14 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
|
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class Service2 extends Context.Service()("@opencode/server/EventFeed") {
|
|
34
34
|
}
|
|
35
35
|
function frame2(event) {
|
|
36
36
|
return `data: ${JSON.stringify(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;
|
|
@@ -72,13 +72,13 @@ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
72
72
|
});
|
|
73
73
|
const unsubscribe = yield* observe(publish);
|
|
74
74
|
yield* Effect.addFinalizer(() => unsubscribe);
|
|
75
|
-
return
|
|
75
|
+
return Service2.of({
|
|
76
76
|
subscribe: (types) => Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.set(queue, types?.length ? new Set(types) : undefined)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
|
-
var layer2 = Layer.effect(
|
|
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,
|
|
84
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pairing-cgg9p0js.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pairing-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/fetch.ts
|
|
12
12
|
var exports_fetch = {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/provider.ts
|
|
10
10
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/agent.ts
|
|
10
10
|
import { Agent } from "@opencode/core/agent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/usage.ts
|
|
10
10
|
import { UsageLimits } from "@opencode/core/usage-limits";
|