@opencode/server 0.0.0-dev-21085 → 0.0.0-dev-21090
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{request-tracing-0gbaaetm.js → handlers-0gbaaetm.js} +2 -2
- package/dist/chunks/{request-tracing-1wyt3am5.js → handlers-1wyt3am5.js} +2 -2
- package/dist/chunks/{request-tracing-1ybjhnn1.js → handlers-1ybjhnn1.js} +3 -3
- package/dist/chunks/{request-tracing-2ac2kv4c.js → handlers-2ac2kv4c.js} +3 -3
- package/dist/chunks/{request-tracing-3m0ygtwr.js → handlers-3m0ygtwr.js} +2 -2
- package/dist/chunks/{request-tracing-4bxenate.js → handlers-4bxenate.js} +2 -2
- package/dist/chunks/{request-tracing-4hhhes7w.js → handlers-4hhhes7w.js} +1 -1
- package/dist/chunks/{request-tracing-tv7zw7jd.js → handlers-4yynsby0.js} +6 -6
- package/dist/chunks/{request-tracing-7armztsr.js → handlers-7armztsr.js} +2 -2
- package/dist/chunks/{request-tracing-7bgw0qp5.js → handlers-7bgw0qp5.js} +2 -2
- package/dist/chunks/{request-tracing-4j6v5d49.js → handlers-7ckfkptd.js} +15 -15
- package/dist/chunks/{request-tracing-pmerjmj3.js → handlers-7jgfqyjw.js} +4 -4
- package/dist/chunks/{request-tracing-8me0mqmd.js → handlers-8me0mqmd.js} +2 -2
- package/dist/chunks/{request-tracing-8z4c9n9h.js → handlers-8z4c9n9h.js} +2 -2
- package/dist/chunks/{request-tracing-adb03esn.js → handlers-adb03esn.js} +2 -2
- package/dist/chunks/{request-tracing-anm12x33.js → handlers-anm12x33.js} +1 -1
- package/dist/chunks/{request-tracing-b3jp5nc2.js → handlers-b3jp5nc2.js} +2 -2
- package/dist/chunks/{request-tracing-b56hqv74.js → handlers-b56hqv74.js} +1 -1
- package/dist/chunks/{request-tracing-begnybrv.js → handlers-begnybrv.js} +1 -1
- package/dist/chunks/{request-tracing-c6kb7fmf.js → handlers-c6kb7fmf.js} +1 -1
- package/dist/chunks/{request-tracing-t834y4ab.js → handlers-ftx0rasv.js} +5 -5
- package/dist/chunks/{request-tracing-gpx0gpd1.js → handlers-gpx0gpd1.js} +2 -2
- package/dist/chunks/{request-tracing-hc75vmb2.js → handlers-hc75vmb2.js} +1 -1
- package/dist/chunks/{request-tracing-j4zqsxgy.js → handlers-j4zqsxgy.js} +1 -1
- package/dist/chunks/{request-tracing-k136bvh5.js → handlers-k136bvh5.js} +1 -1
- package/dist/chunks/{request-tracing-nnn3xt9j.js → handlers-nnn3xt9j.js} +1 -1
- package/dist/chunks/{request-tracing-nqkf5k2k.js → handlers-nqkf5k2k.js} +1 -1
- package/dist/chunks/{request-tracing-pc33848r.js → handlers-pc33848r.js} +2 -2
- package/dist/chunks/{request-tracing-qnwsemje.js → handlers-qnwsemje.js} +3 -3
- package/dist/chunks/{request-tracing-rkx9hda5.js → handlers-rkx9hda5.js} +2 -2
- package/dist/chunks/handlers-rsyh80xz.js +102 -0
- package/dist/chunks/{request-tracing-rw74d7br.js → handlers-rw74d7br.js} +1 -1
- package/dist/chunks/{request-tracing-604r47cy.js → handlers-ssr7ed3s.js} +6 -7
- package/dist/chunks/{request-tracing-0chp8crd.js → handlers-sstsrjtg.js} +8 -8
- package/dist/chunks/{request-tracing-gm3syx07.js → handlers-teh9fk9j.js} +3 -3
- package/dist/chunks/{request-tracing-3y8a8g3j.js → handlers-tjpn0s1b.js} +10 -10
- package/dist/chunks/{request-tracing-vfwf1dhc.js → handlers-vfwf1dhc.js} +2 -2
- package/dist/chunks/{request-tracing-5w24ch67.js → handlers-vpz7f20y.js} +4 -4
- package/dist/chunks/{request-tracing-383t61pr.js → handlers-w06km2r1.js} +6 -6
- package/dist/chunks/{request-tracing-x34tt0qt.js → handlers-x34tt0qt.js} +2 -2
- package/dist/chunks/{request-tracing-y5j6n4zr.js → handlers-y5j6n4zr.js} +2 -2
- package/dist/chunks/{request-tracing-y9g6k1bm.js → handlers-y9g6k1bm.js} +2 -2
- package/dist/chunks/{request-tracing-yfz2nrjq.js → handlers-yfz2nrjq.js} +1 -1
- package/dist/chunks/handlers-z09f7k88.js +30 -0
- package/dist/chunks/{request-tracing-zj4vfrqs.js → handlers-zj4vfrqs.js} +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +7 -7
- package/dist/fetch.js +48 -47
- 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.d.ts +3 -0
- package/dist/handlers/voice.js +11 -0
- package/dist/handlers/websearch.js +6 -6
- package/dist/handlers/worktree.js +6 -6
- package/dist/handlers.d.ts +1 -1
- package/dist/handlers.js +44 -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 +5 -5
- package/dist/process.js +52 -51
- package/dist/pty-environment.js +5 -5
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +47 -46
- package/dist/server-info.js +1 -1
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +49 -48
- package/package.json +8 -8
- package/dist/chunks/request-tracing-07zbaz8t.js +0 -99
- /package/dist/chunks/{request-tracing-9rqn6x4v.js → handlers-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{request-tracing-erzfdgke.js → handlers-erzfdgke.js} +0 -0
- /package/dist/chunks/{request-tracing-h6rt5k9s.js → handlers-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{request-tracing-q4bn6dy8.js → handlers-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{request-tracing-smaf4a18.js → handlers-smaf4a18.js} +0 -0
- /package/dist/chunks/{request-tracing-yc7nft6q.js → handlers-yc7nft6q.js} +0 -0
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
missingMessage2,
|
|
4
4
|
failedMessageDecode2,
|
|
5
5
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./handlers-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./handlers-b56hqv74.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./handlers-2ac2kv4c.js";
|
|
13
13
|
|
|
14
14
|
// src/handlers/session.ts
|
|
15
15
|
import { Session } from "@opencode/core/session";
|
|
@@ -20,7 +20,6 @@ import { InstructionEntry } from "@opencode/core/session/instruction-entry";
|
|
|
20
20
|
import { Form } from "@opencode/core/form";
|
|
21
21
|
import { DateTime, Effect, Stream } from "effect";
|
|
22
22
|
import { HttpApiBuilder, HttpApiSchema } from "effect/http-api";
|
|
23
|
-
import { SessionsCursor } from "@opencode/protocol/groups/session";
|
|
24
23
|
import {
|
|
25
24
|
ConflictError,
|
|
26
25
|
CommandExecutionError,
|
|
@@ -56,7 +55,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
56
55
|
});
|
|
57
56
|
const pendingMutation = (effect, conflict) => effect.pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.InboxConflictError", (error) => new ConflictError({ resource: error.inboxID, message: `${conflict}: ${error.inboxID}` })), Effect.as(HttpApiSchema.NoContent.make()));
|
|
58
57
|
return handlers.handle("session.list", Effect.fn(function* (ctx) {
|
|
59
|
-
const query = ctx.query.cursor !== undefined ? yield*
|
|
58
|
+
const query = ctx.query.cursor !== undefined ? yield* Session.ListCursor.parse(ctx.query.cursor).pipe(Effect.mapError(() => new InvalidCursorError({ message: "Invalid cursor" }))) : ctx.query;
|
|
60
59
|
const page = yield* session.list({
|
|
61
60
|
...query,
|
|
62
61
|
limit: ctx.query.limit ?? DefaultSessionsLimit
|
|
@@ -67,7 +66,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
67
66
|
return {
|
|
68
67
|
data: sessions,
|
|
69
68
|
cursor: {
|
|
70
|
-
previous: first ?
|
|
69
|
+
previous: first ? Session.ListCursor.make({
|
|
71
70
|
...query,
|
|
72
71
|
anchor: {
|
|
73
72
|
id: first.id,
|
|
@@ -75,7 +74,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
75
74
|
direction: "previous"
|
|
76
75
|
}
|
|
77
76
|
}) : undefined,
|
|
78
|
-
next: last ?
|
|
77
|
+
next: last ? Session.ListCursor.make({
|
|
79
78
|
...query,
|
|
80
79
|
anchor: {
|
|
81
80
|
id: last.id,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./handlers-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: () => Service5,
|
|
10
|
+
node: () => node3
|
|
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 Service5 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(Service5, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service5.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(Service3, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var
|
|
33
|
+
var node3 = makeGlobalNode({ service: Service5, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service5, node3, exports_pairing };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./handlers-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./handlers-7ckfkptd.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./handlers-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/fetch.ts
|
|
12
12
|
var exports_fetch = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./handlers-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: () => layer3,
|
|
15
|
+
make: () => make3
|
|
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 make3 = 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 make4 = 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 layer3 = Layer.effect(Service3, Effect.gen(function* () {
|
|
79
79
|
const bus = yield* Bus.Service;
|
|
80
|
-
return yield*
|
|
80
|
+
return yield* make3(bus.listen);
|
|
81
81
|
}));
|
|
82
82
|
|
|
83
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2,
|
|
83
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service3, frame2, make3, layer3, exports_event_feed };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./handlers-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./handlers-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./handlers-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: () => make4
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make4 = 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 make3 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make4, exports_service_status };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./handlers-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
9
|
Service: () => Service4,
|
|
10
|
-
layer: () =>
|
|
11
|
-
node: () =>
|
|
10
|
+
layer: () => layer4,
|
|
11
|
+
node: () => node2
|
|
12
12
|
});
|
|
13
13
|
import { Context, Effect, Layer } from "effect";
|
|
14
14
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
16
|
class Service4 extends Context.Service()("@opencode/ServerPtyEnvironment") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var layer4 = Layer.succeed(Service4, Service4.of({
|
|
19
19
|
get: () => Effect.succeed({})
|
|
20
20
|
}));
|
|
21
|
-
var
|
|
21
|
+
var node2 = makeGlobalNode({ service: Service4, layer: layer4, deps: [] });
|
|
22
22
|
|
|
23
|
-
export { Service4,
|
|
23
|
+
export { Service4, layer4, node2, exports_pty_environment };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./handlers-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./handlers-2ac2kv4c.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/model.ts
|
|
10
10
|
import { Model } from "@opencode/core/model";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./handlers-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./handlers-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/fs.ts
|
|
9
9
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./handlers-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./handlers-2ac2kv4c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
locationErrors2,
|
|
3
|
+
awaitPlugins2
|
|
4
|
+
} from "./handlers-b56hqv74.js";
|
|
5
|
+
import {
|
|
6
|
+
Api2
|
|
7
|
+
} from "./handlers-2ac2kv4c.js";
|
|
8
|
+
|
|
9
|
+
// src/handlers/voice.ts
|
|
10
|
+
import { Location } from "@opencode/core/location";
|
|
11
|
+
import { LocationServiceMap } from "@opencode/core/location-services";
|
|
12
|
+
import { AbsolutePath } from "@opencode/core/schema";
|
|
13
|
+
import { Voice } from "@opencode/core/voice";
|
|
14
|
+
import { InvalidRequestError, ServiceUnavailableError } from "@opencode/protocol/errors";
|
|
15
|
+
import { Global } from "@opencode/util/global";
|
|
16
|
+
import { Effect } from "effect";
|
|
17
|
+
import { HttpApiBuilder } from "effect/http-api";
|
|
18
|
+
var VoiceHandler2 = HttpApiBuilder.group(Api2, "server.voice", (handlers) => Effect.gen(function* () {
|
|
19
|
+
const global = yield* Global.Service;
|
|
20
|
+
const locations = yield* LocationServiceMap.Service;
|
|
21
|
+
const services = locations.get(Location.Ref.make({ directory: AbsolutePath.make(global.config) }));
|
|
22
|
+
return handlers.handle("voice.session", Effect.fn("server.voice.session")(function* (request) {
|
|
23
|
+
yield* awaitPlugins2;
|
|
24
|
+
const voice = yield* Voice.Service;
|
|
25
|
+
const transport = yield* voice.session(request.payload).pipe(Effect.mapError((error) => error._tag === "Voice.InvalidRequestError" ? new InvalidRequestError({ message: error.message }) : new ServiceUnavailableError({ message: error.message, service: error.service })));
|
|
26
|
+
return { data: { transport } };
|
|
27
|
+
}, Effect.provide(services), locationErrors2));
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
export { VoiceHandler2 };
|
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
SubscriberCapacity2,
|
|
3
3
|
SubscriberOverflowError2,
|
|
4
4
|
EncodingError2,
|
|
5
|
-
|
|
5
|
+
Service3,
|
|
6
6
|
frame2,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
make3,
|
|
8
|
+
layer3,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/handlers-tjpn0s1b.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
14
|
-
|
|
14
|
+
Service3 as Service,
|
|
15
15
|
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
layer3 as layer,
|
|
19
|
+
make3 as make
|
|
20
20
|
};
|
package/dist/fetch.js
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_fetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
11
|
-
import"./chunks/
|
|
12
|
-
import"./chunks/
|
|
13
|
-
import"./chunks/
|
|
14
|
-
import"./chunks/
|
|
15
|
-
import"./chunks/
|
|
16
|
-
import"./chunks/
|
|
17
|
-
import"./chunks/
|
|
18
|
-
import"./chunks/
|
|
19
|
-
import"./chunks/
|
|
20
|
-
import"./chunks/
|
|
21
|
-
import"./chunks/
|
|
22
|
-
import"./chunks/
|
|
23
|
-
import"./chunks/
|
|
24
|
-
import"./chunks/
|
|
25
|
-
import"./chunks/
|
|
26
|
-
import"./chunks/
|
|
27
|
-
import"./chunks/
|
|
28
|
-
import"./chunks/
|
|
29
|
-
import"./chunks/
|
|
30
|
-
import"./chunks/
|
|
31
|
-
import"./chunks/
|
|
32
|
-
import"./chunks/
|
|
33
|
-
import"./chunks/
|
|
34
|
-
import"./chunks/
|
|
35
|
-
import"./chunks/
|
|
36
|
-
import"./chunks/
|
|
37
|
-
import"./chunks/
|
|
38
|
-
import"./chunks/
|
|
39
|
-
import"./chunks/
|
|
40
|
-
import"./chunks/
|
|
41
|
-
import"./chunks/
|
|
42
|
-
import"./chunks/
|
|
43
|
-
import"./chunks/
|
|
44
|
-
import"./chunks/
|
|
45
|
-
import"./chunks/
|
|
46
|
-
import"./chunks/
|
|
47
|
-
import"./chunks/
|
|
48
|
-
import"./chunks/
|
|
49
|
-
import"./chunks/
|
|
50
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/handlers-teh9fk9j.js";
|
|
5
|
+
import"./chunks/handlers-7ckfkptd.js";
|
|
6
|
+
import"./chunks/handlers-yfz2nrjq.js";
|
|
7
|
+
import"./chunks/handlers-erzfdgke.js";
|
|
8
|
+
import"./chunks/handlers-rsyh80xz.js";
|
|
9
|
+
import"./chunks/handlers-nnn3xt9j.js";
|
|
10
|
+
import"./chunks/handlers-pc33848r.js";
|
|
11
|
+
import"./chunks/handlers-8z4c9n9h.js";
|
|
12
|
+
import"./chunks/handlers-gpx0gpd1.js";
|
|
13
|
+
import"./chunks/handlers-rkx9hda5.js";
|
|
14
|
+
import"./chunks/handlers-ftx0rasv.js";
|
|
15
|
+
import"./chunks/handlers-4bxenate.js";
|
|
16
|
+
import"./chunks/handlers-7armztsr.js";
|
|
17
|
+
import"./chunks/handlers-4yynsby0.js";
|
|
18
|
+
import"./chunks/handlers-nqkf5k2k.js";
|
|
19
|
+
import"./chunks/handlers-hc75vmb2.js";
|
|
20
|
+
import"./chunks/handlers-3m0ygtwr.js";
|
|
21
|
+
import"./chunks/handlers-1wyt3am5.js";
|
|
22
|
+
import"./chunks/handlers-b3jp5nc2.js";
|
|
23
|
+
import"./chunks/handlers-7bgw0qp5.js";
|
|
24
|
+
import"./chunks/handlers-z09f7k88.js";
|
|
25
|
+
import"./chunks/handlers-qnwsemje.js";
|
|
26
|
+
import"./chunks/handlers-h6rt5k9s.js";
|
|
27
|
+
import"./chunks/handlers-0gbaaetm.js";
|
|
28
|
+
import"./chunks/handlers-ssr7ed3s.js";
|
|
29
|
+
import"./chunks/handlers-1ybjhnn1.js";
|
|
30
|
+
import"./chunks/handlers-7jgfqyjw.js";
|
|
31
|
+
import"./chunks/handlers-x34tt0qt.js";
|
|
32
|
+
import"./chunks/handlers-vfwf1dhc.js";
|
|
33
|
+
import"./chunks/handlers-8me0mqmd.js";
|
|
34
|
+
import"./chunks/handlers-zj4vfrqs.js";
|
|
35
|
+
import"./chunks/handlers-y5j6n4zr.js";
|
|
36
|
+
import"./chunks/handlers-y9g6k1bm.js";
|
|
37
|
+
import"./chunks/handlers-rw74d7br.js";
|
|
38
|
+
import"./chunks/handlers-begnybrv.js";
|
|
39
|
+
import"./chunks/handlers-adb03esn.js";
|
|
40
|
+
import"./chunks/handlers-k136bvh5.js";
|
|
41
|
+
import"./chunks/handlers-anm12x33.js";
|
|
42
|
+
import"./chunks/handlers-q4bn6dy8.js";
|
|
43
|
+
import"./chunks/handlers-c6kb7fmf.js";
|
|
44
|
+
import"./chunks/handlers-tjpn0s1b.js";
|
|
45
|
+
import"./chunks/handlers-2ac2kv4c.js";
|
|
46
|
+
import"./chunks/handlers-4hhhes7w.js";
|
|
47
|
+
import"./chunks/handlers-j4zqsxgy.js";
|
|
48
|
+
import"./chunks/handlers-w06km2r1.js";
|
|
49
|
+
import"./chunks/handlers-b56hqv74.js";
|
|
50
|
+
import"./chunks/handlers-smaf4a18.js";
|
|
51
|
+
import"./chunks/handlers-sstsrjtg.js";
|
|
51
52
|
export {
|
|
52
53
|
exports_fetch as ServerFetch,
|
|
53
54
|
make2 as make
|
package/dist/handlers/agent.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/handlers-1wyt3am5.js";
|
|
4
|
+
import"../chunks/handlers-2ac2kv4c.js";
|
|
5
|
+
import"../chunks/handlers-4hhhes7w.js";
|
|
6
|
+
import"../chunks/handlers-j4zqsxgy.js";
|
|
7
|
+
import"../chunks/handlers-b56hqv74.js";
|
|
8
|
+
import"../chunks/handlers-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|
package/dist/handlers/command.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommandHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/handlers-4bxenate.js";
|
|
4
|
+
import"../chunks/handlers-2ac2kv4c.js";
|
|
5
|
+
import"../chunks/handlers-4hhhes7w.js";
|
|
6
|
+
import"../chunks/handlers-j4zqsxgy.js";
|
|
7
|
+
import"../chunks/handlers-b56hqv74.js";
|
|
8
|
+
import"../chunks/handlers-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
CommandHandler2 as CommandHandler
|
|
11
11
|
};
|
package/dist/handlers/config.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/handlers-k136bvh5.js";
|
|
4
|
+
import"../chunks/handlers-2ac2kv4c.js";
|
|
5
|
+
import"../chunks/handlers-4hhhes7w.js";
|
|
6
|
+
import"../chunks/handlers-j4zqsxgy.js";
|
|
7
|
+
import"../chunks/handlers-b56hqv74.js";
|
|
8
|
+
import"../chunks/handlers-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
ConfigHandler2 as ConfigHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CredentialHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/handlers-hc75vmb2.js";
|
|
4
|
+
import"../chunks/handlers-2ac2kv4c.js";
|
|
5
|
+
import"../chunks/handlers-4hhhes7w.js";
|
|
6
|
+
import"../chunks/handlers-j4zqsxgy.js";
|
|
7
|
+
import"../chunks/handlers-b56hqv74.js";
|
|
8
|
+
import"../chunks/handlers-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
CredentialHandler2 as CredentialHandler
|
|
11
11
|
};
|
package/dist/handlers/debug.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DebugHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/handlers-vfwf1dhc.js";
|
|
4
|
+
import"../chunks/handlers-2ac2kv4c.js";
|
|
5
|
+
import"../chunks/handlers-4hhhes7w.js";
|
|
6
|
+
import"../chunks/handlers-j4zqsxgy.js";
|
|
7
|
+
import"../chunks/handlers-b56hqv74.js";
|
|
8
|
+
import"../chunks/handlers-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
DebugHandler2 as DebugHandler
|
|
11
11
|
};
|
package/dist/handlers/event.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EventHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/handlers-7jgfqyjw.js";
|
|
4
|
+
import"../chunks/handlers-tjpn0s1b.js";
|
|
5
|
+
import"../chunks/handlers-2ac2kv4c.js";
|
|
6
|
+
import"../chunks/handlers-4hhhes7w.js";
|
|
7
|
+
import"../chunks/handlers-j4zqsxgy.js";
|
|
8
|
+
import"../chunks/handlers-b56hqv74.js";
|
|
9
|
+
import"../chunks/handlers-smaf4a18.js";
|
|
10
10
|
export {
|
|
11
11
|
EventHandler2 as EventHandler
|
|
12
12
|
};
|
package/dist/handlers/form.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FormHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/handlers-b3jp5nc2.js";
|
|
4
|
+
import"../chunks/handlers-2ac2kv4c.js";
|
|
5
|
+
import"../chunks/handlers-4hhhes7w.js";
|
|
6
|
+
import"../chunks/handlers-j4zqsxgy.js";
|
|
7
|
+
import"../chunks/handlers-b56hqv74.js";
|
|
8
|
+
import"../chunks/handlers-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
FormHandler2 as FormHandler
|
|
11
11
|
};
|
package/dist/handlers/fs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FileSystemHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/handlers-y5j6n4zr.js";
|
|
4
|
+
import"../chunks/handlers-2ac2kv4c.js";
|
|
5
|
+
import"../chunks/handlers-4hhhes7w.js";
|
|
6
|
+
import"../chunks/handlers-j4zqsxgy.js";
|
|
7
|
+
import"../chunks/handlers-b56hqv74.js";
|
|
8
|
+
import"../chunks/handlers-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
FileSystemHandler2 as FileSystemHandler
|
|
11
11
|
};
|