@opencode/server 0.0.0-dev-70 → 0.0.0-dev-75
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/{event-feed-1v577ncx.js → options-1v577ncx.js} +2 -2
- package/dist/chunks/{event-feed-2eaky32g.js → options-2eaky32g.js} +2 -2
- package/dist/chunks/{event-feed-2h6qktqa.js → options-2h6qktqa.js} +2 -2
- package/dist/chunks/{event-feed-ns41f588.js → options-2mzs8tn8.js} +4 -4
- package/dist/chunks/{event-feed-0q7s66m2.js → options-39nnfjx1.js} +4 -4
- package/dist/chunks/{event-feed-4fy84009.js → options-4fy84009.js} +1 -1
- package/dist/chunks/{event-feed-4q6e7fh8.js → options-4q6e7fh8.js} +2 -2
- package/dist/chunks/{event-feed-50bbk3b2.js → options-50bbk3b2.js} +1 -1
- package/dist/chunks/{event-feed-5b42hxrf.js → options-5b42hxrf.js} +1 -1
- package/dist/chunks/{event-feed-5s0wnsg4.js → options-5s0wnsg4.js} +3 -3
- package/dist/chunks/{event-feed-5s6gh8sx.js → options-5s6gh8sx.js} +2 -2
- package/dist/chunks/{event-feed-6z9pvq7p.js → options-6z9pvq7p.js} +1 -1
- package/dist/chunks/{event-feed-7b9xm1qg.js → options-7b9xm1qg.js} +1 -1
- package/dist/chunks/{event-feed-a8jcac9a.js → options-a8jcac9a.js} +1 -1
- package/dist/chunks/{event-feed-az0609r6.js → options-az0609r6.js} +2 -2
- package/dist/chunks/{event-feed-b105zy65.js → options-b105zy65.js} +2 -2
- package/dist/chunks/{event-feed-b3bmdkga.js → options-b3bmdkga.js} +1 -1
- package/dist/chunks/{event-feed-btahnm2b.js → options-btahnm2b.js} +3 -3
- package/dist/chunks/{event-feed-cezwbsk5.js → options-cezwbsk5.js} +1 -1
- package/dist/chunks/{event-feed-d0edqfxx.js → options-d0edqfxx.js} +2 -2
- package/dist/chunks/{event-feed-788ex2hp.js → options-d8ckqryk.js} +33 -33
- package/dist/chunks/{event-feed-490afdyv.js → options-e2jmaxxy.js} +6 -6
- package/dist/chunks/{event-feed-zpr61asr.js → options-e5dc5tv0.js} +4 -4
- package/dist/chunks/{event-feed-f559fakr.js → options-f559fakr.js} +2 -2
- package/dist/chunks/{event-feed-20b2yx1f.js → options-fvpjvjpp.js} +9 -9
- package/dist/chunks/{event-feed-h29xjj1e.js → options-h29xjj1e.js} +2 -2
- package/dist/chunks/{event-feed-htyf2qs7.js → options-htyf2qs7.js} +1 -1
- package/dist/chunks/{event-feed-j4at0y5c.js → options-j4at0y5c.js} +1 -1
- package/dist/chunks/{event-feed-j87xz9bt.js → options-j87xz9bt.js} +3 -3
- package/dist/chunks/{event-feed-k3txyteh.js → options-k3txyteh.js} +4 -4
- package/dist/chunks/{event-feed-kkdkqt8j.js → options-kkdkqt8j.js} +2 -2
- package/dist/chunks/{event-feed-ny1j968n.js → options-ny1j968n.js} +2 -2
- package/dist/chunks/{event-feed-qn5rv5km.js → options-p3dq0zav.js} +11 -11
- package/dist/chunks/{event-feed-qcg3sqtb.js → options-qcg3sqtb.js} +2 -2
- package/dist/chunks/{event-feed-qd0r787n.js → options-qd0r787n.js} +2 -2
- package/dist/chunks/{event-feed-rha2aq18.js → options-rha2aq18.js} +2 -2
- package/dist/chunks/{event-feed-s282vggx.js → options-s282vggx.js} +1 -1
- package/dist/chunks/{event-feed-9ta6c6c1.js → options-sm8my433.js} +6 -6
- package/dist/chunks/{event-feed-te8jwba1.js → options-te8jwba1.js} +2 -2
- package/dist/chunks/{event-feed-kqr36gas.js → options-w9jcwh65.js} +7 -7
- package/dist/chunks/{event-feed-bhbc7551.js → options-wd7hxrwh.js} +4 -4
- package/dist/chunks/{event-feed-yjbzmfhm.js → options-yjbzmfhm.js} +1 -1
- package/dist/chunks/options-yqhefp4s.js +83 -0
- package/dist/chunks/{event-feed-zcvan105.js → options-zcvan105.js} +1 -1
- package/dist/chunks/{event-feed-atvkw3fc.js → options-zd7h3c1z.js} +4 -4
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +52 -52
- 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.d.ts +1 -1
- 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 +9 -9
- 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 +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 +46 -46
- package/dist/location.js +2 -2
- 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 +54 -54
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +49 -49
- package/dist/server-info.js +1 -1
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +53 -53
- package/package.json +8 -8
- package/dist/chunks/event-feed-0c5s68vs.js +0 -30
- /package/dist/chunks/{event-feed-9rqn6x4v.js → options-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{event-feed-bd8755ek.js → options-bd8755ek.js} +0 -0
- /package/dist/chunks/{event-feed-h6rt5k9s.js → options-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{event-feed-n321d8vm.js → options-n321d8vm.js} +0 -0
- /package/dist/chunks/{event-feed-q4bn6dy8.js → options-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{event-feed-smaf4a18.js → options-smaf4a18.js} +0 -0
- /package/dist/chunks/{event-feed-xthc02cw.js → options-xthc02cw.js} +0 -0
- /package/dist/chunks/{event-feed-yc7nft6q.js → options-yc7nft6q.js} +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
locationErrors2,
|
|
3
|
-
awaitPlugins2
|
|
4
|
-
} from "./event-feed-50bbk3b2.js";
|
|
5
|
-
import {
|
|
6
|
-
Api2
|
|
7
|
-
} from "./event-feed-j87xz9bt.js";
|
|
8
|
-
|
|
9
|
-
// src/handlers/generate.ts
|
|
10
|
-
import { Generate } from "@opencode/core/generate";
|
|
11
|
-
import { Location } from "@opencode/core/location";
|
|
12
|
-
import { LocationServiceMap } from "@opencode/core/location-services";
|
|
13
|
-
import { AbsolutePath } from "@opencode/core/schema";
|
|
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 GenerateHandler2 = HttpApiBuilder.group(Api2, "server.generate", (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("generate.text", Effect.fn("server.generate.text")(function* (request) {
|
|
23
|
-
yield* awaitPlugins2;
|
|
24
|
-
const generate = yield* Generate.Service;
|
|
25
|
-
const text = yield* generate.text(request.payload).pipe(Effect.mapError((error) => error._tag === "Generate.ModelSelectionError" ? new InvalidRequestError({ message: error.message }) : new ServiceUnavailableError({ message: error.message, service: error.service })));
|
|
26
|
-
return { data: { text } };
|
|
27
|
-
}, Effect.provide(services), locationErrors2));
|
|
28
|
-
}));
|
|
29
|
-
|
|
30
|
-
export { GenerateHandler2 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|