@opencode/server 0.0.0-dev-21362 → 0.0.0-dev-21366
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 +15 -0
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{location-qx5ydgm0.js → pairing-08x9tjee.js} +1 -1
- package/dist/chunks/{location-byt4hbw9.js → pairing-0chp8crd.js} +8 -8
- package/dist/chunks/{location-3d7qdbre.js → pairing-0d864bga.js} +1 -1
- package/dist/chunks/{location-emkxpff3.js → pairing-33prfkkd.js} +3 -3
- package/dist/chunks/{location-bkk2wfbz.js → pairing-383t61pr.js} +8 -8
- package/dist/chunks/{location-54sczv30.js → pairing-3y8a8g3j.js} +4 -4
- package/dist/chunks/{location-s0qm098c.js → pairing-43r48nqn.js} +2 -2
- package/dist/chunks/{location-gq8jw616.js → pairing-4d1eemzq.js} +2 -2
- package/dist/chunks/{location-t4c683g8.js → pairing-4dv9a668.js} +2 -2
- package/dist/chunks/{location-4gnb9897.js → pairing-4hhhes7w.js} +1 -1
- package/dist/chunks/{location-5evj5ge1.js → pairing-4vnsvbep.js} +34 -34
- package/dist/chunks/{location-8whnk5q4.js → pairing-4zp76609.js} +2 -2
- package/dist/chunks/{location-hwqxzcvy.js → pairing-5zsr2h86.js} +1 -1
- package/dist/chunks/{location-xwnn9gpm.js → pairing-686p2xfa.js} +2 -2
- package/dist/chunks/{location-zfbzqd0e.js → pairing-7vd5668a.js} +1 -1
- package/dist/chunks/{location-jd2d9483.js → pairing-8137b89p.js} +2 -2
- package/dist/chunks/{location-fazm2c7b.js → pairing-97eb2r3v.js} +2 -2
- package/dist/chunks/{location-4nbah0zs.js → pairing-9snwnvf8.js} +3 -3
- package/dist/chunks/{location-8ezc7a8q.js → pairing-a3b3p0e1.js} +3 -3
- package/dist/chunks/{location-4x9ztr5s.js → pairing-aey6dvfz.js} +3 -3
- package/dist/chunks/{location-anm12x33.js → pairing-anm12x33.js} +1 -1
- package/dist/chunks/{location-50bbk3b2.js → pairing-b56hqv74.js} +3 -3
- package/dist/chunks/{location-547pgmmc.js → pairing-bx47k33v.js} +2 -2
- package/dist/chunks/{location-ghk96rjy.js → pairing-c6kb7fmf.js} +7 -7
- package/dist/chunks/{location-wexwfee0.js → pairing-cv0ajwc9.js} +2 -2
- package/dist/chunks/{location-cpp0zjdy.js → pairing-ewe1fzkk.js} +2 -2
- package/dist/chunks/{location-jk5edc6h.js → pairing-ftaz8n62.js} +2 -2
- package/dist/chunks/{location-7xe5pzvy.js → pairing-h8ws5ssa.js} +1 -1
- package/dist/chunks/{location-b3bmdkga.js → pairing-j4zqsxgy.js} +1 -1
- package/dist/chunks/{location-cv4t5p2n.js → pairing-j6h8m3wx.js} +7 -7
- package/dist/chunks/{location-fysmzcya.js → pairing-ptey1p5v.js} +2 -2
- package/dist/chunks/{location-0hxp7vtq.js → pairing-q79xfdqr.js} +19 -19
- package/dist/chunks/{location-gw6rc7x0.js → pairing-qbh90c1d.js} +2 -2
- package/dist/chunks/{location-tp6qcw6t.js → pairing-rf01ee6q.js} +1 -1
- package/dist/chunks/{location-g7sdbt1s.js → pairing-rntbwr87.js} +2 -2
- package/dist/chunks/{location-qcfps8nc.js → pairing-ssyxw8nc.js} +2 -2
- package/dist/chunks/{location-g3kty0fk.js → pairing-swsgy6xd.js} +8 -8
- package/dist/chunks/{location-8t0ckx4f.js → pairing-vb5yx5r0.js} +2 -2
- package/dist/chunks/{location-rhdada90.js → pairing-vbzm2jgm.js} +2 -2
- package/dist/chunks/{location-nnsgc8by.js → pairing-wk806w00.js} +3 -3
- package/dist/chunks/{location-xsrtpxyd.js → pairing-xsrtpxyd.js} +1 -1
- package/dist/chunks/{location-z6z134jc.js → pairing-yehasrps.js} +2 -2
- package/dist/chunks/{location-yfz2nrjq.js → pairing-yfz2nrjq.js} +1 -1
- package/dist/chunks/{location-w4e9jgda.js → pairing-z6sxg6td.js} +1 -1
- package/dist/chunks/{location-yeebkdj0.js → pairing-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 +4 -4
- 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 +7 -7
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +47 -47
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +1 -1
- package/dist/workerd.js +49 -49
- package/package.json +8 -8
- /package/dist/chunks/{location-9rqn6x4v.js → pairing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-erzfdgke.js → pairing-erzfdgke.js} +0 -0
- /package/dist/chunks/{location-h6rt5k9s.js → pairing-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{location-q4bn6dy8.js → pairing-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{location-smaf4a18.js → pairing-smaf4a18.js} +0 -0
- /package/dist/chunks/{location-yc7nft6q.js → pairing-yc7nft6q.js} +0 -0
package/dist/api.d.ts
CHANGED
|
@@ -2042,6 +2042,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2042
2042
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2043
2043
|
readonly body: import("effect/Schema").String;
|
|
2044
2044
|
}>>, never, never>;
|
|
2045
|
+
readonly retryAfterMs: 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>;
|
|
2045
2046
|
}>;
|
|
2046
2047
|
}>;
|
|
2047
2048
|
}> & {
|
|
@@ -2065,6 +2066,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2065
2066
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2066
2067
|
readonly body: import("effect/Schema").String;
|
|
2067
2068
|
}>>, never, never>;
|
|
2069
|
+
readonly retryAfterMs: 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>;
|
|
2068
2070
|
}>;
|
|
2069
2071
|
}>;
|
|
2070
2072
|
}, import("effect/Schema").Struct<{
|
|
@@ -2782,6 +2784,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2782
2784
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2783
2785
|
readonly body: import("effect/Schema").String;
|
|
2784
2786
|
}>>, never, never>;
|
|
2787
|
+
readonly retryAfterMs: 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>;
|
|
2785
2788
|
}>;
|
|
2786
2789
|
readonly finish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["content-filter"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["content-filter"]>>, never, never>;
|
|
2787
2790
|
readonly rawFinish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
@@ -2836,6 +2839,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2836
2839
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2837
2840
|
readonly body: import("effect/Schema").String;
|
|
2838
2841
|
}>>, never, never>;
|
|
2842
|
+
readonly retryAfterMs: 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>;
|
|
2839
2843
|
}>;
|
|
2840
2844
|
readonly finish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["content-filter"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["content-filter"]>>, never, never>;
|
|
2841
2845
|
readonly rawFinish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
@@ -3655,6 +3659,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
3655
3659
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3656
3660
|
readonly body: import("effect/Schema").String;
|
|
3657
3661
|
}>>, never, never>;
|
|
3662
|
+
readonly retryAfterMs: 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>;
|
|
3658
3663
|
}>;
|
|
3659
3664
|
readonly content: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3660
3665
|
readonly type: import("effect/Schema").Literal<"text">;
|
|
@@ -3703,6 +3708,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
3703
3708
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3704
3709
|
readonly body: import("effect/Schema").String;
|
|
3705
3710
|
}>>, never, never>;
|
|
3711
|
+
readonly retryAfterMs: 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>;
|
|
3706
3712
|
}>;
|
|
3707
3713
|
readonly content: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
3708
3714
|
readonly type: import("effect/Schema").Literal<"text">;
|
|
@@ -3776,6 +3782,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
3776
3782
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3777
3783
|
readonly body: import("effect/Schema").String;
|
|
3778
3784
|
}>>, never, never>;
|
|
3785
|
+
readonly retryAfterMs: 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>;
|
|
3779
3786
|
}>;
|
|
3780
3787
|
}>;
|
|
3781
3788
|
}> & {
|
|
@@ -3805,6 +3812,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
3805
3812
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3806
3813
|
readonly body: import("effect/Schema").String;
|
|
3807
3814
|
}>>, never, never>;
|
|
3815
|
+
readonly retryAfterMs: 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>;
|
|
3808
3816
|
}>;
|
|
3809
3817
|
}>;
|
|
3810
3818
|
}, import("effect/Schema").Struct<{
|
|
@@ -4153,6 +4161,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
4153
4161
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
4154
4162
|
readonly body: import("effect/Schema").String;
|
|
4155
4163
|
}>>, never, never>;
|
|
4164
|
+
readonly retryAfterMs: 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>;
|
|
4156
4165
|
}>;
|
|
4157
4166
|
readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
|
|
4158
4167
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4206,6 +4215,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
4206
4215
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
4207
4216
|
readonly body: import("effect/Schema").String;
|
|
4208
4217
|
}>>, never, never>;
|
|
4218
|
+
readonly retryAfterMs: 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>;
|
|
4209
4219
|
}>;
|
|
4210
4220
|
readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
|
|
4211
4221
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6929,6 +6939,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
6929
6939
|
readonly response?: {
|
|
6930
6940
|
readonly body: string;
|
|
6931
6941
|
} | undefined;
|
|
6942
|
+
readonly retryAfterMs?: number | undefined;
|
|
6932
6943
|
};
|
|
6933
6944
|
};
|
|
6934
6945
|
} | {
|
|
@@ -7211,6 +7222,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
7211
7222
|
readonly response?: {
|
|
7212
7223
|
readonly body: string;
|
|
7213
7224
|
} | undefined;
|
|
7225
|
+
readonly retryAfterMs?: number | undefined;
|
|
7214
7226
|
};
|
|
7215
7227
|
readonly finish?: "content-filter" | undefined;
|
|
7216
7228
|
readonly rawFinish?: string | undefined;
|
|
@@ -7539,6 +7551,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
7539
7551
|
readonly response?: {
|
|
7540
7552
|
readonly body: string;
|
|
7541
7553
|
} | undefined;
|
|
7554
|
+
readonly retryAfterMs?: number | undefined;
|
|
7542
7555
|
};
|
|
7543
7556
|
readonly content?: readonly [{
|
|
7544
7557
|
readonly type: "text";
|
|
@@ -7593,6 +7606,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
7593
7606
|
readonly response?: {
|
|
7594
7607
|
readonly body: string;
|
|
7595
7608
|
} | undefined;
|
|
7609
|
+
readonly retryAfterMs?: number | undefined;
|
|
7596
7610
|
};
|
|
7597
7611
|
};
|
|
7598
7612
|
} | {
|
|
@@ -7696,6 +7710,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
7696
7710
|
readonly response?: {
|
|
7697
7711
|
readonly body: string;
|
|
7698
7712
|
} | undefined;
|
|
7713
|
+
readonly retryAfterMs?: number | undefined;
|
|
7699
7714
|
};
|
|
7700
7715
|
readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
7701
7716
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
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-9snwnvf8.js";
|
|
4
|
+
import"./chunks/pairing-j4zqsxgy.js";
|
|
5
|
+
import"./chunks/pairing-4hhhes7w.js";
|
|
6
|
+
import"./chunks/pairing-b56hqv74.js";
|
|
7
|
+
import"./chunks/pairing-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/pairing.ts
|
|
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(Service4, 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,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./pairing-b56hqv74.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./pairing-9snwnvf8.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-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: () =>
|
|
10
|
-
layer: () =>
|
|
11
|
-
node: () =>
|
|
9
|
+
Service: () => Service4,
|
|
10
|
+
layer: () => layer3,
|
|
11
|
+
node: () => node3
|
|
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 Service4 extends Context.Service()("@opencode/ServerPtyEnvironment") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var layer3 = Layer.succeed(Service4, Service4.of({
|
|
19
19
|
get: () => Effect.succeed({})
|
|
20
20
|
}));
|
|
21
|
-
var
|
|
21
|
+
var node3 = makeGlobalNode({ service: Service4, layer: layer3, deps: [] });
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { Service4, layer3, node3, exports_pty_environment };
|
|
@@ -1,6 +1,6 @@
|
|
|
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 = {};
|
|
@@ -11,7 +11,7 @@ __export(exports_event_feed, {
|
|
|
11
11
|
SubscriberCapacity: () => SubscriberCapacity2,
|
|
12
12
|
SubscriberOverflowError: () => SubscriberOverflowError2,
|
|
13
13
|
frame: () => frame2,
|
|
14
|
-
layer: () =>
|
|
14
|
+
layer: () => layer4,
|
|
15
15
|
make: () => make4
|
|
16
16
|
});
|
|
17
17
|
import { Bus } from "@opencode/core/bus";
|
|
@@ -75,9 +75,9 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
75
75
|
subscribe: Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.add(queue)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
-
var
|
|
78
|
+
var layer4 = Layer.effect(Service5, Effect.gen(function* () {
|
|
79
79
|
const bus = yield* Bus.Service;
|
|
80
80
|
return yield* make4(bus.listen);
|
|
81
81
|
}));
|
|
82
82
|
|
|
83
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service5, frame2, make4,
|
|
83
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service5, frame2, make4, layer4, exports_event_feed };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-4d1eemzq.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pairing-686p2xfa.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pairing-vb5yx5r0.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./pairing-ewe1fzkk.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./pairing-97eb2r3v.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./pairing-wk806w00.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./pairing-33prfkkd.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./pairing-ssyxw8nc.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./pairing-43r48nqn.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./pairing-ptey1p5v.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./pairing-bx47k33v.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./pairing-z6sxg6td.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
38
|
+
layer4
|
|
39
|
+
} from "./pairing-3y8a8g3j.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./pairing-4zp76609.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./pairing-rntbwr87.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./pairing-8137b89p.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./pairing-swsgy6xd.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./pairing-vbzm2jgm.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./pairing-j6h8m3wx.js";
|
|
58
58
|
import {
|
|
59
59
|
PersistentPtyHandler2
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./pairing-aey6dvfz.js";
|
|
61
61
|
import {
|
|
62
62
|
ShellHandler2
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./pairing-4dv9a668.js";
|
|
64
64
|
import {
|
|
65
65
|
ReferenceHandler2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./pairing-yehasrps.js";
|
|
67
67
|
import {
|
|
68
68
|
LocationHandler2
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./pairing-h8ws5ssa.js";
|
|
70
70
|
import {
|
|
71
71
|
IntegrationHandler2
|
|
72
|
-
} from "./
|
|
72
|
+
} from "./pairing-ftaz8n62.js";
|
|
73
73
|
import {
|
|
74
74
|
WebSearchHandler2
|
|
75
|
-
} from "./
|
|
75
|
+
} from "./pairing-cv0ajwc9.js";
|
|
76
76
|
import {
|
|
77
77
|
McpHandler2
|
|
78
|
-
} from "./
|
|
78
|
+
} from "./pairing-zessacar.js";
|
|
79
79
|
import {
|
|
80
80
|
CredentialHandler2
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./pairing-08x9tjee.js";
|
|
82
82
|
import {
|
|
83
83
|
ProjectHandler2
|
|
84
|
-
} from "./
|
|
84
|
+
} from "./pairing-0d864bga.js";
|
|
85
85
|
import {
|
|
86
86
|
WorktreeHandler2
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./pairing-7vd5668a.js";
|
|
88
88
|
import {
|
|
89
89
|
VcsHandler2
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./pairing-qbh90c1d.js";
|
|
91
91
|
import {
|
|
92
92
|
MigrationHandler2
|
|
93
|
-
} from "./
|
|
93
|
+
} from "./pairing-rf01ee6q.js";
|
|
94
94
|
import {
|
|
95
95
|
ConfigHandler2
|
|
96
|
-
} from "./
|
|
96
|
+
} from "./pairing-5zsr2h86.js";
|
|
97
97
|
|
|
98
98
|
// src/handlers.ts
|
|
99
99
|
import { Layer } from "effect";
|
|
100
|
-
var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(
|
|
100
|
+
var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer4)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
|
|
101
101
|
|
|
102
102
|
export { handlers2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-9snwnvf8.js";
|
|
4
4
|
import {
|
|
5
5
|
Service5,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-3y8a8g3j.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
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pairing-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-9snwnvf8.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 "./
|
|
3
|
+
} from "./pairing-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pairing-9snwnvf8.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pairing-4hhhes7w.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pairing-j4zqsxgy.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -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-q79xfdqr.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,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-9snwnvf8.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./pairing-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
runPtySocket2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./pairing-h6rt5k9s.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/persistent-pty.ts
|
|
13
13
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pairing-smaf4a18.js";
|
|
4
4
|
|
|
5
5
|
// src/location.ts
|
|
6
6
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -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 };
|