@opencode/server 0.0.0-dev-21765 → 0.0.0-dev-21766
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 +33 -0
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{options-hnty54ys.js → process-08zhnp7p.js} +10 -10
- package/dist/chunks/{options-t0tqzssv.js → process-19cj3ggs.js} +4 -4
- package/dist/chunks/{options-4vaqgjp8.js → process-19dc7z8q.js} +2 -2
- package/dist/chunks/{options-1ahadpvw.js → process-1ahadpvw.js} +1 -1
- package/dist/chunks/{options-9hfgnjjs.js → process-2qk3vekg.js} +2 -2
- package/dist/chunks/{options-b7rpzsrb.js → process-2zren6xa.js} +4 -4
- package/dist/chunks/{options-0q7s66m2.js → process-39nnfjx1.js} +4 -4
- package/dist/chunks/{options-aajxxgqb.js → process-67kmywtk.js} +2 -2
- package/dist/chunks/{options-qbrxhger.js → process-6br0y3ag.js} +1 -1
- package/dist/chunks/{options-5bchp9s2.js → process-6kta5392.js} +2 -2
- package/dist/chunks/{options-ntj59ngc.js → process-6n9b1fbm.js} +1 -1
- package/dist/chunks/{options-g1bp01xw.js → process-6t8za67t.js} +2 -2
- package/dist/chunks/{options-vg73xc24.js → process-74sf36cc.js} +1 -1
- package/dist/chunks/{options-rrf9gkkq.js → process-77mqkxfz.js} +2 -2
- package/dist/chunks/{options-7b9xm1qg.js → process-7b9xm1qg.js} +1 -1
- package/dist/chunks/{options-10jzh2zk.js → process-9k4wjdze.js} +3 -3
- package/dist/chunks/{options-scq1j2yg.js → process-aqzwjzmb.js} +1 -1
- package/dist/chunks/{options-g0g9ma1m.js → process-atk2et4d.js} +2 -2
- package/dist/chunks/{options-9269hq5z.js → process-bfrmyh3g.js} +13 -13
- package/dist/chunks/{options-y7p3rgqn.js → process-cqhyyp3f.js} +2 -2
- package/dist/chunks/{options-9h3s5d39.js → process-e54xd2ay.js} +3 -3
- package/dist/chunks/{options-xt7xrv1r.js → process-ej45n981.js} +2 -2
- package/dist/chunks/{options-zmx22v3a.js → process-f9g2fv52.js} +2 -2
- package/dist/chunks/{options-026wrard.js → process-gb66h69v.js} +3 -3
- package/dist/chunks/{options-gqq6kfhc.js → process-gqq6kfhc.js} +1 -1
- package/dist/chunks/{options-dc18tjnc.js → process-gv2dqana.js} +3 -3
- package/dist/chunks/{options-zfjz2b4g.js → process-gv627jgt.js} +1 -1
- package/dist/chunks/{options-j66ekhc9.js → process-hspp8v12.js} +2 -2
- package/dist/chunks/{options-61g22bd8.js → process-j49n4591.js} +2 -2
- package/dist/chunks/{options-j4at0y5c.js → process-j4at0y5c.js} +1 -1
- package/dist/chunks/{options-t7dxwnb0.js → process-j8p25vmv.js} +2 -2
- package/dist/chunks/{options-ksvmmk2r.js → process-m0y4004e.js} +1 -1
- package/dist/chunks/{options-w9jcwh65.js → process-mzs0n5xz.js} +7 -7
- package/dist/chunks/{options-ecwm7ctq.js → process-q7cxd81r.js} +34 -34
- package/dist/chunks/{options-nmcxqxxx.js → process-q8cqvm6j.js} +2 -2
- package/dist/chunks/{options-e2cx9grb.js → process-v1jdrp9c.js} +1 -1
- package/dist/chunks/{options-hxgz4x38.js → process-vtvdbwhg.js} +2 -2
- package/dist/chunks/{options-48468d7d.js → process-wkjg8t30.js} +8 -8
- package/dist/chunks/{options-2s3n8phw.js → process-wtxh433d.js} +2 -2
- package/dist/chunks/{options-vkgak0vv.js → process-xxxx0904.js} +2 -2
- package/dist/chunks/{options-vh04c1aj.js → process-y1st1r8m.js} +6 -6
- package/dist/chunks/{options-yet0vexm.js → process-yet0vexm.js} +1 -1
- package/dist/chunks/{options-7dtbad8d.js → process-z3e7v67k.js} +7 -7
- package/dist/chunks/{options-a77bxps2.js → process-z8z5sq2q.js} +4 -4
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +7 -7
- package/dist/fetch.js +49 -49
- 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 +8 -8
- 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 +8 -8
- 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 +43 -43
- package/dist/location.js +2 -2
- 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 +51 -51
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +46 -46
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +50 -50
- package/package.json +8 -8
- /package/dist/chunks/{options-9rqn6x4v.js → process-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{options-erzfdgke.js → process-erzfdgke.js} +0 -0
- /package/dist/chunks/{options-h6rt5k9s.js → process-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{options-q4bn6dy8.js → process-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{options-smaf4a18.js → process-smaf4a18.js} +0 -0
- /package/dist/chunks/{options-yc7nft6q.js → process-yc7nft6q.js} +0 -0
package/dist/api.d.ts
CHANGED
|
@@ -1120,6 +1120,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
1120
1120
|
readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
1121
1121
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1122
1122
|
};
|
|
1123
|
+
readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
1124
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1125
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
1126
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1127
|
+
}>, never, never>;
|
|
1123
1128
|
readonly tokens: import("effect/Schema").Struct<{
|
|
1124
1129
|
readonly input: import("effect/Schema").Finite;
|
|
1125
1130
|
readonly output: import("effect/Schema").Finite;
|
|
@@ -1141,6 +1146,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
1141
1146
|
readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
1142
1147
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1143
1148
|
};
|
|
1149
|
+
readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
1150
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1151
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
1152
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1153
|
+
}>, never, never>;
|
|
1144
1154
|
readonly tokens: import("effect/Schema").Struct<{
|
|
1145
1155
|
readonly input: import("effect/Schema").Finite;
|
|
1146
1156
|
readonly output: import("effect/Schema").Finite;
|
|
@@ -2626,6 +2636,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2626
2636
|
readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2627
2637
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2628
2638
|
};
|
|
2639
|
+
readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2640
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2641
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2642
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2643
|
+
}>, never, never>;
|
|
2629
2644
|
readonly tokens: import("effect/Schema").Struct<{
|
|
2630
2645
|
readonly input: import("effect/Schema").Finite;
|
|
2631
2646
|
readonly output: import("effect/Schema").Finite;
|
|
@@ -2659,6 +2674,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2659
2674
|
readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2660
2675
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2661
2676
|
};
|
|
2677
|
+
readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2678
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2679
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2680
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2681
|
+
}>, never, never>;
|
|
2662
2682
|
readonly tokens: import("effect/Schema").Struct<{
|
|
2663
2683
|
readonly input: import("effect/Schema").Finite;
|
|
2664
2684
|
readonly output: import("effect/Schema").Finite;
|
|
@@ -2729,6 +2749,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2729
2749
|
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2730
2750
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2731
2751
|
}>, never, never>;
|
|
2752
|
+
readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2753
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2754
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2755
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2756
|
+
}>, never, never>;
|
|
2732
2757
|
readonly tokens: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
2733
2758
|
readonly input: import("effect/Schema").Finite;
|
|
2734
2759
|
readonly output: import("effect/Schema").Finite;
|
|
@@ -2783,6 +2808,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
2783
2808
|
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2784
2809
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2785
2810
|
}>, never, never>;
|
|
2811
|
+
readonly allowance: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2812
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2813
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
|
|
2814
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2815
|
+
}>, never, never>;
|
|
2786
2816
|
readonly tokens: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
2787
2817
|
readonly input: import("effect/Schema").Finite;
|
|
2788
2818
|
readonly output: import("effect/Schema").Finite;
|
|
@@ -7138,6 +7168,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
7138
7168
|
readonly [x: string]: unknown;
|
|
7139
7169
|
} | undefined;
|
|
7140
7170
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7171
|
+
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
7141
7172
|
readonly tokens: {
|
|
7142
7173
|
readonly input: number;
|
|
7143
7174
|
readonly output: number;
|
|
@@ -7184,6 +7215,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
7184
7215
|
readonly [x: string]: unknown;
|
|
7185
7216
|
} | undefined;
|
|
7186
7217
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
7218
|
+
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
7187
7219
|
readonly tokens?: {
|
|
7188
7220
|
readonly input: number;
|
|
7189
7221
|
readonly output: number;
|
|
@@ -8351,6 +8383,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
|
|
|
8351
8383
|
readonly data: {
|
|
8352
8384
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8353
8385
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8386
|
+
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
8354
8387
|
readonly tokens: {
|
|
8355
8388
|
readonly input: number;
|
|
8356
8389
|
readonly output: number;
|
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/process-gb66h69v.js";
|
|
4
|
+
import"./chunks/process-1ahadpvw.js";
|
|
5
|
+
import"./chunks/process-yet0vexm.js";
|
|
6
|
+
import"./chunks/process-gqq6kfhc.js";
|
|
7
|
+
import"./chunks/process-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-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: () => Service3,
|
|
11
11
|
SubscriberCapacity: () => SubscriberCapacity2,
|
|
12
12
|
SubscriberOverflowError: () => SubscriberOverflowError2,
|
|
13
13
|
frame: () => frame2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
make: () =>
|
|
14
|
+
layer: () => layer4,
|
|
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 Service3 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 Set;
|
|
@@ -71,13 +71,13 @@ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
71
71
|
});
|
|
72
72
|
const unsubscribe = yield* observe(publish);
|
|
73
73
|
yield* Effect.addFinalizer(() => unsubscribe);
|
|
74
|
-
return
|
|
74
|
+
return Service3.of({
|
|
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(Service3, Effect.gen(function* () {
|
|
79
79
|
const bus = yield* Bus.Service;
|
|
80
|
-
return yield*
|
|
80
|
+
return yield* make4(bus.listen);
|
|
81
81
|
}));
|
|
82
82
|
|
|
83
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2,
|
|
83
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service3, frame2, make4, layer4, exports_event_feed };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-gb66h69v.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service3,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./process-08zhnp7p.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* Service3;
|
|
16
16
|
return handlers.handleRaw("event.subscribe", () => Effect.gen(function* () {
|
|
17
17
|
const connected = {
|
|
18
18
|
id: Event.ID.create(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./process-gb66h69v.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./process-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./process-gb66h69v.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/voice.ts
|
|
10
10
|
import { Location } from "@opencode/core/location";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./process-gqq6kfhc.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./process-gb66h69v.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./process-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./process-h6rt5k9s.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/pty.ts
|
|
18
18
|
import { Pty } from "@opencode/core/pty";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-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: () => make2
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make2 = 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 { make2, exports_service_status };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./process-gb66h69v.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
missingMessage2,
|
|
4
4
|
failedMessageDecode2,
|
|
5
5
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./process-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./process-gqq6kfhc.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./process-gb66h69v.js";
|
|
13
13
|
|
|
14
14
|
// src/handlers/session.ts
|
|
15
15
|
import { Session } from "@opencode/core/session";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./process-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./process-gb66h69v.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./process-1ahadpvw.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./process-yet0vexm.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./process-gb66h69v.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./process-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./process-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
layer2
|
|
21
|
+
} from "./process-z3e7v67k.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./process-mzs0n5xz.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./process-q7cxd81r.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./process-7b9xm1qg.js";
|
|
31
31
|
import {
|
|
32
32
|
schemaErrorLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./process-erzfdgke.js";
|
|
34
34
|
|
|
35
35
|
// src/routes.ts
|
|
36
36
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -144,7 +144,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
144
144
|
})) : build(overrides);
|
|
145
145
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
146
146
|
const services = Layer.succeedContext(context);
|
|
147
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
147
|
+
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer2(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
|
|
148
148
|
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(layer3), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
149
149
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
150
150
|
}));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./process-gqq6kfhc.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./process-gb66h69v.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 "./process-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./process-gb66h69v.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/reference.ts
|
|
9
9
|
import { Reference } from "@opencode/core/reference";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./process-gb66h69v.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./process-1ahadpvw.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./process-yet0vexm.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./process-gb66h69v.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./process-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
runPtySocket2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./process-h6rt5k9s.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/persistent-pty.ts
|
|
13
13
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
3
|
failedMessageDecode2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./process-smaf4a18.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./process-gb66h69v.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/message.ts
|
|
10
10
|
import { SessionMessage } from "@opencode/core/session/message";
|