@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
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
locationErrors2,
|
|
3
|
-
awaitPlugins2
|
|
4
|
-
} from "./location-b56hqv74.js";
|
|
5
|
-
import {
|
|
6
|
-
Api2
|
|
7
|
-
} from "./location-9snwnvf8.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 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|