@opencode/server 2.1.1 → 2.1.3
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 +19 -4
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{location-ctk1s78a.js → service-status-0f489yfb.js} +32 -32
- package/dist/chunks/{location-bx47k33v.js → service-status-0znmasm1.js} +2 -2
- package/dist/chunks/{location-yehasrps.js → service-status-10kexchg.js} +2 -2
- package/dist/chunks/{location-33prfkkd.js → service-status-11d378s5.js} +3 -3
- package/dist/chunks/{location-qbh90c1d.js → service-status-1qc831kp.js} +2 -2
- package/dist/chunks/{location-z6sxg6td.js → service-status-2e16a9cc.js} +1 -1
- package/dist/chunks/{location-vbzm2jgm.js → service-status-2f9g7rg2.js} +2 -2
- package/dist/chunks/{location-4hhhes7w.js → service-status-3154e7fk.js} +1 -1
- package/dist/chunks/{location-wk806w00.js → service-status-53jj3zgg.js} +3 -3
- package/dist/chunks/{location-2c5m7t9e.js → service-status-5680j7c4.js} +16 -16
- package/dist/chunks/{location-43r48nqn.js → service-status-5adf1am9.js} +2 -2
- package/dist/chunks/{location-97eb2r3v.js → service-status-5ewqf72w.js} +2 -2
- package/dist/chunks/{location-4dv9a668.js → service-status-6e6jjne7.js} +2 -2
- package/dist/chunks/{location-7vd5668a.js → service-status-6tj91hdj.js} +1 -1
- package/dist/chunks/{location-10hxeg6b.js → service-status-6tjqh8g4.js} +3 -3
- package/dist/chunks/{location-yfz2nrjq.js → service-status-6v4wsps6.js} +1 -1
- package/dist/chunks/{location-tz3mehbr.js → service-status-79n3507d.js} +3 -3
- package/dist/chunks/{location-0d864bga.js → service-status-7qrtcnv4.js} +1 -1
- package/dist/chunks/{location-71n7prbj.js → service-status-7scj3y0h.js} +8 -8
- package/dist/chunks/{location-ssyxw8nc.js → service-status-a30hykaf.js} +2 -2
- package/dist/chunks/{location-5zsr2h86.js → service-status-c2hv5jmf.js} +1 -1
- package/dist/chunks/service-status-crt28xe4.js +41 -0
- package/dist/chunks/{location-vpz7f20y.js → service-status-e6e4kz0w.js} +4 -4
- package/dist/chunks/{location-b56hqv74.js → service-status-gymtz25n.js} +3 -3
- package/dist/chunks/{location-zessacar.js → service-status-hwdnjend.js} +2 -2
- package/dist/chunks/{location-vb5yx5r0.js → service-status-j3461ttv.js} +2 -2
- package/dist/chunks/{location-anm12x33.js → service-status-j4at0y5c.js} +1 -1
- package/dist/chunks/{location-8137b89p.js → service-status-jwf0kwqx.js} +2 -2
- package/dist/chunks/{location-4g2hx1xt.js → service-status-k6dz4enc.js} +5 -5
- package/dist/chunks/{location-h8ws5ssa.js → service-status-krqg3gd2.js} +1 -1
- package/dist/chunks/{location-ftaz8n62.js → service-status-pf9k0dqe.js} +2 -2
- package/dist/chunks/{location-p74g497q.js → service-status-q6jxy1hn.js} +5 -5
- package/dist/chunks/{location-9snwnvf8.js → service-status-r82dtfrk.js} +3 -3
- package/dist/chunks/{location-08x9tjee.js → service-status-rj8tbp10.js} +1 -1
- package/dist/chunks/{location-jkvn5n4s.js → service-status-rkmbbexc.js} +2 -2
- package/dist/chunks/{location-sstsrjtg.js → service-status-vb61dkrm.js} +7 -7
- package/dist/chunks/{location-rf01ee6q.js → service-status-vg0x3zn0.js} +1 -1
- package/dist/chunks/{location-ghk96rjy.js → service-status-x2cwbfak.js} +7 -7
- package/dist/chunks/{location-j4zqsxgy.js → service-status-x74w7e1f.js} +1 -1
- package/dist/chunks/{location-ewe1fzkk.js → service-status-xcxwzp6z.js} +2 -2
- package/dist/chunks/{location-cv0ajwc9.js → service-status-y89d99mz.js} +2 -2
- package/dist/chunks/{location-ptey1p5v.js → service-status-yzwm8eeq.js} +2 -2
- package/dist/chunks/{location-rntbwr87.js → service-status-z554rpg5.js} +2 -2
- package/dist/chunks/{location-4d1eemzq.js → service-status-z9g9xjb3.js} +2 -2
- package/dist/chunks/{location-bkk2wfbz.js → service-status-zy1wt1f8.js} +5 -5
- 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 +3 -3
- package/dist/process.js +52 -52
- package/dist/pty-environment.js +3 -3
- 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 +3 -3
- package/dist/workerd.js +49 -49
- package/package.json +9 -9
- package/dist/chunks/location-686p2xfa.js +0 -30
- /package/dist/chunks/{location-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-erzfdgke.js → service-status-erzfdgke.js} +0 -0
- /package/dist/chunks/{location-h6rt5k9s.js → service-status-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{location-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{location-smaf4a18.js → service-status-smaf4a18.js} +0 -0
- /package/dist/chunks/{location-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
package/dist/api.d.ts
CHANGED
|
@@ -1454,7 +1454,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
1454
1454
|
readonly text: import("effect/Schema").String;
|
|
1455
1455
|
}>>, never, never>;
|
|
1456
1456
|
}> & {
|
|
1457
|
-
create: (input: import("@opencode/schema
|
|
1457
|
+
create: (input: import("@opencode/schema").FileAttachment) => {
|
|
1458
1458
|
readonly data: string;
|
|
1459
1459
|
readonly mime: string;
|
|
1460
1460
|
readonly source: {
|
|
@@ -1492,7 +1492,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
1492
1492
|
readonly text: import("effect/Schema").String;
|
|
1493
1493
|
}>>, never, never>;
|
|
1494
1494
|
}> & {
|
|
1495
|
-
create: (input: import("@opencode/schema
|
|
1495
|
+
create: (input: import("@opencode/schema").FileAttachment) => {
|
|
1496
1496
|
readonly data: string;
|
|
1497
1497
|
readonly mime: string;
|
|
1498
1498
|
readonly source: {
|
|
@@ -1637,7 +1637,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
1637
1637
|
readonly text: import("effect/Schema").String;
|
|
1638
1638
|
}>>, never, never>;
|
|
1639
1639
|
}> & {
|
|
1640
|
-
create: (input: import("@opencode/schema
|
|
1640
|
+
create: (input: import("@opencode/schema").FileAttachment) => {
|
|
1641
1641
|
readonly data: string;
|
|
1642
1642
|
readonly mime: string;
|
|
1643
1643
|
readonly source: {
|
|
@@ -1675,7 +1675,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
1675
1675
|
readonly text: import("effect/Schema").String;
|
|
1676
1676
|
}>>, never, never>;
|
|
1677
1677
|
}> & {
|
|
1678
|
-
create: (input: import("@opencode/schema
|
|
1678
|
+
create: (input: import("@opencode/schema").FileAttachment) => {
|
|
1679
1679
|
readonly data: string;
|
|
1680
1680
|
readonly mime: string;
|
|
1681
1681
|
readonly source: {
|
|
@@ -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/service-status-r82dtfrk.js";
|
|
4
|
+
import"./chunks/service-status-x74w7e1f.js";
|
|
5
|
+
import"./chunks/service-status-3154e7fk.js";
|
|
6
|
+
import"./chunks/service-status-gymtz25n.js";
|
|
7
|
+
import"./chunks/service-status-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-z9g9xjb3.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-crt28xe4.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-status-j3461ttv.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-status-xcxwzp6z.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./service-status-5ewqf72w.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./service-status-53jj3zgg.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./service-status-11d378s5.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./service-status-a30hykaf.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./service-status-5adf1am9.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./service-status-yzwm8eeq.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./service-status-0znmasm1.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./service-status-2e16a9cc.js";
|
|
37
37
|
import {
|
|
38
38
|
layer4
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./service-status-k6dz4enc.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./service-status-rkmbbexc.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./service-status-z554rpg5.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./service-status-jwf0kwqx.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./service-status-7scj3y0h.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./service-status-2f9g7rg2.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./service-status-q6jxy1hn.js";
|
|
58
58
|
import {
|
|
59
59
|
PersistentPtyHandler2
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./service-status-6tjqh8g4.js";
|
|
61
61
|
import {
|
|
62
62
|
ShellHandler2
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./service-status-6e6jjne7.js";
|
|
64
64
|
import {
|
|
65
65
|
ReferenceHandler2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./service-status-10kexchg.js";
|
|
67
67
|
import {
|
|
68
68
|
LocationHandler2
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./service-status-krqg3gd2.js";
|
|
70
70
|
import {
|
|
71
71
|
IntegrationHandler2
|
|
72
|
-
} from "./
|
|
72
|
+
} from "./service-status-pf9k0dqe.js";
|
|
73
73
|
import {
|
|
74
74
|
WebSearchHandler2
|
|
75
|
-
} from "./
|
|
75
|
+
} from "./service-status-y89d99mz.js";
|
|
76
76
|
import {
|
|
77
77
|
McpHandler2
|
|
78
|
-
} from "./
|
|
78
|
+
} from "./service-status-hwdnjend.js";
|
|
79
79
|
import {
|
|
80
80
|
CredentialHandler2
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./service-status-rj8tbp10.js";
|
|
82
82
|
import {
|
|
83
83
|
ProjectHandler2
|
|
84
|
-
} from "./
|
|
84
|
+
} from "./service-status-7qrtcnv4.js";
|
|
85
85
|
import {
|
|
86
86
|
WorktreeHandler2
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./service-status-6tj91hdj.js";
|
|
88
88
|
import {
|
|
89
89
|
VcsHandler2
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./service-status-1qc831kp.js";
|
|
91
91
|
import {
|
|
92
92
|
MigrationHandler2
|
|
93
|
-
} from "./
|
|
93
|
+
} from "./service-status-vg0x3zn0.js";
|
|
94
94
|
import {
|
|
95
95
|
ConfigHandler2
|
|
96
|
-
} from "./
|
|
96
|
+
} from "./service-status-c2hv5jmf.js";
|
|
97
97
|
|
|
98
98
|
// src/handlers.ts
|
|
99
99
|
import { Layer } from "effect";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.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 "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/reference.ts
|
|
9
9
|
import { Reference } from "@opencode/core/reference";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./service-status-gymtz25n.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./service-status-r82dtfrk.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 "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.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
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
missingMessage2,
|
|
4
4
|
failedMessageDecode2,
|
|
5
5
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-status-gymtz25n.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-status-r82dtfrk.js";
|
|
13
13
|
|
|
14
14
|
// src/handlers/session.ts
|
|
15
15
|
import { Session } from "@opencode/core/session";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
layer2
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-3154e7fk.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-status-x74w7e1f.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-status-r82dtfrk.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./service-status-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./service-status-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
layer5
|
|
21
|
+
} from "./service-status-x2cwbfak.js";
|
|
22
22
|
import {
|
|
23
23
|
node3
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./service-status-vb61dkrm.js";
|
|
25
25
|
import {
|
|
26
26
|
node2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./service-status-zy1wt1f8.js";
|
|
28
28
|
import {
|
|
29
29
|
handlers2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./service-status-0f489yfb.js";
|
|
31
31
|
import {
|
|
32
32
|
authorizationLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./service-status-6v4wsps6.js";
|
|
34
34
|
import {
|
|
35
35
|
schemaErrorLayer2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./service-status-erzfdgke.js";
|
|
37
37
|
|
|
38
38
|
// src/routes.ts
|
|
39
39
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -146,8 +146,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
146
146
|
})) : build(overrides);
|
|
147
147
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
148
148
|
const services = Layer.succeedContext(context);
|
|
149
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
150
|
-
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(
|
|
149
|
+
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer5(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
|
|
150
|
+
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(layer2), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
151
151
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
152
152
|
}));
|
|
153
153
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/form.ts
|
|
9
9
|
import { Form } from "@opencode/core/form";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/shell.ts
|
|
9
9
|
import { Shell } from "@opencode/core/shell";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-r82dtfrk.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./service-status-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
runPtySocket2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./service-status-h6rt5k9s.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/persistent-pty.ts
|
|
13
13
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-5680j7c4.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-status-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/fetch.ts
|
|
12
12
|
var exports_fetch = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-r82dtfrk.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
10
|
-
import {
|
|
11
|
-
Service3
|
|
12
|
-
} from "./location-ghk96rjy.js";
|
|
9
|
+
} from "./service-status-j4at0y5c.js";
|
|
13
10
|
import {
|
|
14
11
|
Service5
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./service-status-x2cwbfak.js";
|
|
13
|
+
import {
|
|
14
|
+
Service3
|
|
15
|
+
} from "./service-status-vb61dkrm.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* Service5;
|
|
28
28
|
return {
|
|
29
29
|
version: info.app.version ?? "unknown",
|
|
30
30
|
pid: process.pid ?? 0,
|