@opencode/server 0.0.0-dev-347 → 0.0.0-dev-358
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 +16 -0
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{auth-059rbh9c.js → location-059rbh9c.js} +1 -1
- package/dist/chunks/{auth-sqxx1p54.js → location-0r9ve3h3.js} +2 -2
- package/dist/chunks/{auth-1s3664te.js → location-0tp180yj.js} +4 -4
- package/dist/chunks/{auth-1t8ee1b5.js → location-1jtv083t.js} +2 -2
- package/dist/chunks/{auth-k8y9dxyq.js → location-32zxn73z.js} +4 -4
- package/dist/chunks/{auth-7dtbad8d.js → location-3te71694.js} +7 -7
- package/dist/chunks/{auth-rxyx8sa0.js → location-4xzps9pr.js} +2 -2
- package/dist/chunks/{auth-vtfzy3at.js → location-62bfwtjc.js} +2 -2
- package/dist/chunks/{auth-7b9xm1qg.js → location-7b9xm1qg.js} +1 -1
- package/dist/chunks/{auth-7tewdwsb.js → location-85kbrn7y.js} +2 -2
- package/dist/chunks/{auth-2qjvs0kv.js → location-972dky5b.js} +4 -4
- package/dist/chunks/{auth-xbqm7mpj.js → location-9q55v56g.js} +2 -2
- package/dist/chunks/{auth-7cd61xtm.js → location-axx4wwen.js} +2 -2
- package/dist/chunks/{auth-5553qfcy.js → location-b5crh3ce.js} +3 -3
- package/dist/chunks/{auth-jbytz575.js → location-czh3k9k1.js} +6 -6
- package/dist/chunks/{auth-wqv43pj9.js → location-dczgzh3x.js} +2 -2
- package/dist/chunks/{auth-gk0yxcp6.js → location-ddnay6e1.js} +1 -1
- package/dist/chunks/{auth-0e4fm4yw.js → location-e0z6mnzj.js} +1 -1
- package/dist/chunks/{auth-39nnfjx1.js → location-e6e4kz0w.js} +4 -4
- package/dist/chunks/{auth-50qbrtfh.js → location-emg01aep.js} +15 -15
- package/dist/chunks/{auth-h95f8e2d.js → location-etebse43.js} +35 -35
- package/dist/chunks/{auth-74kxthdf.js → location-f0kpaq89.js} +1 -1
- package/dist/chunks/{auth-bv5jg9y6.js → location-f1ds1268.js} +2 -2
- package/dist/chunks/{auth-skcryrty.js → location-f96zeczf.js} +2 -2
- package/dist/chunks/{auth-gqq6kfhc.js → location-gymtz25n.js} +3 -3
- package/dist/chunks/{auth-zyntahe8.js → location-hr24310e.js} +1 -1
- package/dist/chunks/{auth-j4at0y5c.js → location-j4at0y5c.js} +1 -1
- package/dist/chunks/{auth-jc2vwkyw.js → location-j6d0mxrp.js} +2 -2
- package/dist/chunks/{auth-w9jcwh65.js → location-kqr36gas.js} +7 -7
- package/dist/chunks/{auth-zmgfywqd.js → location-mam5ppd3.js} +1 -1
- package/dist/chunks/{auth-50xc6x42.js → location-q7gnt7ra.js} +3 -3
- package/dist/chunks/{auth-289aq9pw.js → location-rnja4559.js} +8 -8
- package/dist/chunks/{auth-z9kgby92.js → location-s9jd931e.js} +4 -4
- package/dist/chunks/{auth-0pbbhyf6.js → location-tgb4pddq.js} +2 -2
- package/dist/chunks/{auth-r5696se6.js → location-v7p1kzzd.js} +3 -3
- package/dist/chunks/{auth-5z5anmwp.js → location-va7wgp70.js} +2 -2
- package/dist/chunks/{auth-7x1re4zg.js → location-vyzvby0b.js} +2 -2
- package/dist/chunks/{auth-fvpjvjpp.js → location-wecgp61r.js} +7 -7
- package/dist/chunks/{auth-yet0vexm.js → location-x74w7e1f.js} +1 -1
- package/dist/chunks/{auth-f4exzdsf.js → location-xad49dn3.js} +2 -2
- package/dist/chunks/{auth-2835150m.js → location-xfynz25m.js} +2 -2
- package/dist/chunks/{auth-vvp99hc9.js → location-xwy6frfd.js} +1 -1
- package/dist/chunks/{auth-370cpmna.js → location-y56ann6c.js} +2 -2
- package/dist/chunks/{auth-fvqb5t8b.js → location-y570139v.js} +5 -5
- package/dist/chunks/{auth-vfkjeyp3.js → location-z48nkxh0.js} +1 -1
- package/dist/chunks/{auth-xpg37vzc.js → location-zzxz7279.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +53 -53
- 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 +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 +10 -10
- 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 +47 -47
- package/dist/location.js +4 -4
- 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 +55 -55
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +50 -50
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +54 -54
- package/package.json +8 -8
- /package/dist/chunks/{auth-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{auth-bd8755ek.js → location-bd8755ek.js} +0 -0
- /package/dist/chunks/{auth-h6rt5k9s.js → location-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{auth-n321d8vm.js → location-n321d8vm.js} +0 -0
- /package/dist/chunks/{auth-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{auth-smaf4a18.js → location-smaf4a18.js} +0 -0
- /package/dist/chunks/{auth-xthc02cw.js → location-xthc02cw.js} +0 -0
- /package/dist/chunks/{auth-yc7nft6q.js → location-yc7nft6q.js} +0 -0
package/dist/api.d.ts
CHANGED
|
@@ -335,6 +335,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
335
335
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
336
336
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
337
337
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
338
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
338
339
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
339
340
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
340
341
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -357,6 +358,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
357
358
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
358
359
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
359
360
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
361
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
360
362
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
361
363
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
362
364
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -425,6 +427,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
425
427
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
426
428
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
427
429
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
430
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
428
431
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
429
432
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
430
433
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -447,6 +450,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
447
450
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
448
451
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
449
452
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
453
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
450
454
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
451
455
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
452
456
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -569,6 +573,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
569
573
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
570
574
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
571
575
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
576
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
572
577
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
573
578
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
574
579
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -592,6 +597,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
592
597
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
593
598
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
594
599
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
600
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
595
601
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
596
602
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
597
603
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -614,6 +620,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
614
620
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
615
621
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
616
622
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
623
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
617
624
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
618
625
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
619
626
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -649,6 +656,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
649
656
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
650
657
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
651
658
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
659
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
652
660
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
653
661
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
654
662
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -672,6 +680,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
672
680
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
673
681
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
674
682
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
683
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
675
684
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
676
685
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
677
686
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -694,6 +703,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
694
703
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
695
704
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
696
705
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
706
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
697
707
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
698
708
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
699
709
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -2468,6 +2478,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2468
2478
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2469
2479
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2470
2480
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2481
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2471
2482
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2472
2483
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2473
2484
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -2510,6 +2521,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2510
2521
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2511
2522
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2512
2523
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2524
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2513
2525
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2514
2526
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2515
2527
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -3874,6 +3886,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
3874
3886
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3875
3887
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3876
3888
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3889
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3877
3890
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3878
3891
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3879
3892
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -3896,6 +3909,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
3896
3909
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3897
3910
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3898
3911
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3912
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3899
3913
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3900
3914
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3901
3915
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -3956,6 +3970,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
3956
3970
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3957
3971
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3958
3972
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3973
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3959
3974
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3960
3975
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3961
3976
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -3978,6 +3993,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
3978
3993
|
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3979
3994
|
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3980
3995
|
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3996
|
+
claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3981
3997
|
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3982
3998
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3983
3999
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
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/location-v7p1kzzd.js";
|
|
4
|
+
import"./chunks/location-ddnay6e1.js";
|
|
5
|
+
import"./chunks/location-x74w7e1f.js";
|
|
6
|
+
import"./chunks/location-gymtz25n.js";
|
|
7
|
+
import"./chunks/location-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-gymtz25n.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-v7p1kzzd.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-h6rt5k9s.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/mcp.ts
|
|
18
18
|
import { Location } from "@opencode/core/location";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-v7p1kzzd.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-f1ds1268.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
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-v7p1kzzd.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service4,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-wecgp61r.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/event.ts
|
|
10
10
|
import { Event } from "@opencode/schema/event";
|
|
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
|
|
|
12
12
|
import { HttpServerResponse } from "effect/http";
|
|
13
13
|
import { HttpApiBuilder } from "effect/http-api";
|
|
14
14
|
var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
|
|
15
|
-
const feed = yield*
|
|
15
|
+
const feed = yield* Service4;
|
|
16
16
|
return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
|
|
17
17
|
const connected = {
|
|
18
18
|
id: Event.ID.create(),
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/server-info.ts
|
|
6
6
|
var exports_server_info = {};
|
|
7
7
|
__export(exports_server_info, {
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service3,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
|
-
layer: () =>
|
|
11
|
+
layer: () => layer3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return Layer.succeed(
|
|
18
|
+
function layer3(urls, tmp, app = {}) {
|
|
19
|
+
return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
|
|
20
20
|
}
|
|
21
21
|
function connectionURLs2(value, requestedHostname) {
|
|
22
22
|
const url = new URL(value);
|
|
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Service3, layer3, connectionURLs2, exports_server_info };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/provider.ts
|
|
10
10
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-gymtz25n.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-v7p1kzzd.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-h6rt5k9s.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/pty.ts
|
|
18
18
|
import { Pty } from "@opencode/core/pty";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
3
|
failedMessageDecode2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-smaf4a18.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-v7p1kzzd.js";
|
|
8
8
|
import {
|
|
9
9
|
wantsMediaRefs2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-xthc02cw.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/message.ts
|
|
13
13
|
import { SessionMessage } from "@opencode/core/session/message";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-emg01aep.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/fetch.ts
|
|
12
12
|
var exports_fetch = {};
|
|
13
13
|
__export(exports_fetch, {
|
|
14
14
|
ServerFetch: () => exports_fetch,
|
|
15
|
-
make: () =>
|
|
15
|
+
make: () => make2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Layer } from "effect";
|
|
18
18
|
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
|
|
19
19
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
20
|
-
var
|
|
20
|
+
var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
21
21
|
const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
|
|
22
22
|
yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
|
|
23
23
|
return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { make2, exports_fetch };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-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 make2 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make3, exports_service_status };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
layer2
|
|
3
|
+
} from "./location-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-ddnay6e1.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-x74w7e1f.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-v7p1kzzd.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
layer3
|
|
21
|
+
} from "./location-3te71694.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-kqr36gas.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-etebse43.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-7b9xm1qg.js";
|
|
31
31
|
import {
|
|
32
32
|
schemaErrorLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-bd8755ek.js";
|
|
34
34
|
|
|
35
35
|
// src/routes.ts
|
|
36
36
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -151,8 +151,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
151
151
|
})) : build(overrides);
|
|
152
152
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
153
153
|
const services = Layer.succeedContext(context);
|
|
154
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
155
|
-
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(
|
|
154
|
+
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));
|
|
155
|
+
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));
|
|
156
156
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
157
157
|
}));
|
|
158
158
|
}
|