@opencode/server 0.0.0-dev-1311 → 0.0.0-dev-1312
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/{api-0a5jm2na.js → request-site-100nc7c0.js} +2 -5
- package/dist/chunks/{api-452na7zm.js → request-site-19v80edx.js} +2 -2
- package/dist/chunks/{api-m5rae7m4.js → request-site-2cm4dfcc.js} +2 -2
- package/dist/chunks/{api-1je14sn4.js → request-site-2dzr03as.js} +1 -1
- package/dist/chunks/{api-zgt2tacv.js → request-site-2rb1ee6g.js} +3 -3
- package/dist/chunks/{api-39nnfjx1.js → request-site-39nnfjx1.js} +1 -1
- package/dist/chunks/{api-b1prsepx.js → request-site-3te71694.js} +4 -4
- package/dist/chunks/{api-np3ws677.js → request-site-4fc68szf.js} +2 -2
- package/dist/chunks/{api-dk68ymtv.js → request-site-4zkx9wb3.js} +1 -1
- package/dist/chunks/{api-z59gyc0x.js → request-site-5jm9kajg.js} +2 -2
- package/dist/chunks/{api-78rcgzsr.js → request-site-78rcgzsr.js} +1 -1
- package/dist/chunks/{api-7b9xm1qg.js → request-site-7b9xm1qg.js} +1 -1
- package/dist/chunks/{api-w5yp0ga8.js → request-site-7qpea5x7.js} +2 -2
- package/dist/chunks/{api-22wspztn.js → request-site-801prsqk.js} +2 -2
- package/dist/chunks/{api-2q11qvwk.js → request-site-8654jye6.js} +33 -33
- package/dist/chunks/{api-e46y0tfd.js → request-site-8ja97vv6.js} +2 -4
- package/dist/chunks/{api-8sb6qqpn.js → request-site-8sb6qqpn.js} +1 -1
- package/dist/chunks/{api-9cd3a4b8.js → request-site-9cd3a4b8.js} +1 -1
- package/dist/chunks/{api-gk0yxcp6.js → request-site-ah2sj2pr.js} +1 -1
- package/dist/chunks/{api-34xzc0ha.js → request-site-bjh20vhp.js} +4 -4
- package/dist/chunks/{api-b2k9041j.js → request-site-d20xfnpc.js} +1 -1
- package/dist/chunks/{api-296sv0gc.js → request-site-ddrpmftb.js} +4 -4
- package/dist/chunks/{api-djr0jy89.js → request-site-djr0jy89.js} +1 -1
- package/dist/chunks/{api-1xwg7d8k.js → request-site-eajr6f05.js} +4 -4
- package/dist/chunks/{api-48ba7vwf.js → request-site-fh7k1j4y.js} +5 -5
- package/dist/chunks/{api-fvpjvjpp.js → request-site-fvpjvjpp.js} +1 -1
- package/dist/chunks/{api-50kbksvb.js → request-site-g23ffrnz.js} +2 -2
- package/dist/chunks/{api-ppma8fcc.js → request-site-gq4jwh93.js} +3 -3
- package/dist/chunks/{api-r3h1014p.js → request-site-hk9crnsa.js} +2 -2
- package/dist/chunks/{api-j4at0y5c.js → request-site-j4at0y5c.js} +1 -1
- package/dist/chunks/{api-prdak4hd.js → request-site-j5jk0es1.js} +2 -2
- package/dist/chunks/{api-6vs5sqy6.js → request-site-jmmhprac.js} +2 -2
- package/dist/chunks/{api-4d0zahrw.js → request-site-ky9xhfwk.js} +4 -4
- package/dist/chunks/{api-myqk22k5.js → request-site-myqk22k5.js} +2 -2
- package/dist/chunks/{api-mzs0n5xz.js → request-site-mzs0n5xz.js} +1 -1
- package/dist/chunks/{api-jfjg0q42.js → request-site-p0v7cf9m.js} +3 -8
- package/dist/chunks/{api-hax1v4bv.js → request-site-p83m65n5.js} +2 -4
- package/dist/chunks/{api-h072q2hm.js → request-site-prn0chz2.js} +1 -1
- package/dist/chunks/{api-3z6z4adb.js → request-site-q6ebsdyb.js} +16 -16
- package/dist/chunks/{api-zdv005zd.js → request-site-r1hxvaqv.js} +8 -8
- package/dist/chunks/{api-qn8kkfq6.js → request-site-r40v995e.js} +2 -2
- package/dist/chunks/{api-84dqjc6j.js → request-site-r6zj4kgb.js} +4 -4
- package/dist/chunks/{api-z7gkfgax.js → request-site-rmfb1myj.js} +1 -1
- package/dist/chunks/{api-wxj3d9av.js → request-site-s3zgwc17.js} +3 -6
- package/dist/chunks/{api-t32e1bbt.js → request-site-t32e1bbt.js} +1 -1
- package/dist/chunks/{api-yet0vexm.js → request-site-vw0q3knq.js} +1 -1
- package/dist/chunks/{api-4vqvqsgg.js → request-site-w3xmknp7.js} +2 -2
- package/dist/chunks/{api-yr4wsvrw.js → request-site-wka57cdm.js} +2 -2
- package/dist/chunks/{api-x8dgc261.js → request-site-y60jfeab.js} +2 -2
- package/dist/chunks/{api-b0sezs8j.js → request-site-ykk3p1r3.js} +2 -2
- package/dist/chunks/{api-41yet3w7.js → request-site-yty6dk04.js} +1 -1
- package/dist/chunks/{api-gqq6kfhc.js → request-site-ywn523ee.js} +4 -12
- package/dist/chunks/{api-9c4eyh8m.js → request-site-zjmacp9c.js} +3 -3
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +1 -1
- package/dist/fetch.js +59 -59
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.js +3 -3
- package/dist/handlers/automation.js +2 -2
- package/dist/handlers/blob.js +3 -3
- 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 +8 -8
- package/dist/handlers/generate.js +6 -6
- package/dist/handlers/integration.js +6 -6
- package/dist/handlers/job.js +2 -2
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/mcp.js +8 -8
- package/dist/handlers/media.js +2 -2
- 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 +15 -15
- 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 +52 -52
- package/dist/location.d.ts +1 -3
- package/dist/location.js +4 -6
- package/dist/media-uri.js +1 -1
- package/dist/middleware/authorization.js +2 -2
- package/dist/middleware/defect-response.js +1 -1
- 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 +1 -1
- package/dist/process.js +60 -60
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +56 -56
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +1 -1
- package/dist/workerd.js +60 -60
- package/package.json +8 -8
- /package/dist/chunks/{api-9rqn6x4v.js → request-site-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{api-bd8755ek.js → request-site-bd8755ek.js} +0 -0
- /package/dist/chunks/{api-n26yr6pw.js → request-site-n26yr6pw.js} +0 -0
- /package/dist/chunks/{api-q187pxxd.js → request-site-q187pxxd.js} +0 -0
- /package/dist/chunks/{api-q4bn6dy8.js → request-site-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{api-smaf4a18.js → request-site-smaf4a18.js} +0 -0
- /package/dist/chunks/{api-xthc02cw.js → request-site-xthc02cw.js} +0 -0
- /package/dist/chunks/{api-yc7nft6q.js → request-site-yc7nft6q.js} +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
locationErrors2
|
|
3
|
-
|
|
4
|
-
} from "./api-gqq6kfhc.js";
|
|
2
|
+
locationErrors2
|
|
3
|
+
} from "./request-site-ywn523ee.js";
|
|
5
4
|
import {
|
|
6
5
|
Api2
|
|
7
|
-
} from "./
|
|
6
|
+
} from "./request-site-zjmacp9c.js";
|
|
8
7
|
|
|
9
8
|
// src/handlers/generate.ts
|
|
10
9
|
import { Flag } from "@opencode/core/flag";
|
|
@@ -31,12 +30,10 @@ var GenerateHandler2 = HttpApiBuilder.group(Api2, "server.generate", (handlers)
|
|
|
31
30
|
const videos = yield* VideoGeneration.Service;
|
|
32
31
|
const services = locations.get(Location.Ref.make({ directory: AbsolutePath.make(global.config) }));
|
|
33
32
|
const text = Effect.fn("server.generate.text")(function* (request) {
|
|
34
|
-
yield* awaitPlugins2;
|
|
35
33
|
const generate = yield* Generate.Service;
|
|
36
34
|
return { data: { text: yield* generate.text(request.payload).pipe(Effect.mapError(generateError)) } };
|
|
37
35
|
}, Effect.provide(services), locationErrors2);
|
|
38
36
|
const image = Effect.fn("server.generate.image")(function* (request) {
|
|
39
|
-
yield* awaitPlugins2;
|
|
40
37
|
const generate = yield* Generate.Service;
|
|
41
38
|
return { data: yield* generate.image(request.payload).pipe(Effect.mapError(generateError)) };
|
|
42
39
|
}, Effect.provide(services), locationErrors2);
|
|
@@ -47,7 +44,6 @@ var GenerateHandler2 = HttpApiBuilder.group(Api2, "server.generate", (handlers)
|
|
|
47
44
|
message: "Decision question names must be unique",
|
|
48
45
|
field: "questions"
|
|
49
46
|
});
|
|
50
|
-
yield* awaitPlugins2;
|
|
51
47
|
const generate = yield* Generate.Service;
|
|
52
48
|
return { data: yield* generate.decisions(request.payload).pipe(Effect.mapError(generateError)) };
|
|
53
49
|
}, Effect.provide(services), locationErrors2);
|
|
@@ -58,7 +54,6 @@ var GenerateHandler2 = HttpApiBuilder.group(Api2, "server.generate", (handlers)
|
|
|
58
54
|
});
|
|
59
55
|
const videoCreate = Effect.fn("server.generate.video.create")(function* (request) {
|
|
60
56
|
yield* videoEnabled;
|
|
61
|
-
yield* awaitPlugins2;
|
|
62
57
|
return { data: yield* videos.start(request.payload).pipe(Effect.mapError(generateError)) };
|
|
63
58
|
}, Effect.provide(services), locationErrors2);
|
|
64
59
|
const videoGet = Effect.fn("server.generate.video.get")(function* (request) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
awaitPlugins2,
|
|
3
2
|
response2
|
|
4
|
-
} from "./
|
|
3
|
+
} from "./request-site-ywn523ee.js";
|
|
5
4
|
import {
|
|
6
5
|
Api2
|
|
7
|
-
} from "./
|
|
6
|
+
} from "./request-site-zjmacp9c.js";
|
|
8
7
|
|
|
9
8
|
// src/handlers/provider.ts
|
|
10
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -13,7 +12,6 @@ import { Effect } from "effect";
|
|
|
13
12
|
import { HttpApiBuilder } from "effect/http-api";
|
|
14
13
|
var ProviderHandler2 = HttpApiBuilder.group(Api2, "server.provider", (handlers) => Effect.gen(function* () {
|
|
15
14
|
return handlers.handle("provider.list", Effect.fn(function* () {
|
|
16
|
-
yield* awaitPlugins2;
|
|
17
15
|
const providers = yield* Provider.Service;
|
|
18
16
|
return yield* response2(providers.available());
|
|
19
17
|
})).handle("provider.get", Effect.fn(function* (ctx) {
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
layer4
|
|
3
|
+
} from "./request-site-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-site-ah2sj2pr.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./request-site-vw0q3knq.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./request-site-zjmacp9c.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./request-site-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./request-site-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
layer3
|
|
21
|
+
} from "./request-site-3te71694.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./request-site-mzs0n5xz.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./request-site-8654jye6.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./request-site-7b9xm1qg.js";
|
|
31
31
|
import {
|
|
32
32
|
schemaErrorLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./request-site-bd8755ek.js";
|
|
34
34
|
import {
|
|
35
35
|
defectResponseLayer2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./request-site-n26yr6pw.js";
|
|
37
37
|
|
|
38
38
|
// src/routes.ts
|
|
39
39
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -167,8 +167,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
167
167
|
})) : build(overrides);
|
|
168
168
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
169
169
|
const services = Layer.succeedContext(context);
|
|
170
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
171
|
-
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(
|
|
170
|
+
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));
|
|
171
|
+
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(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.merge(defectResponseLayer2), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
172
172
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
173
173
|
}));
|
|
174
174
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-site-zjmacp9c.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./request-site-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./request-site-7qpea5x7.js";
|
|
11
11
|
import {
|
|
12
12
|
makeBlobGet2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./request-site-g23ffrnz.js";
|
|
14
14
|
import {
|
|
15
15
|
makeAutomation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./request-site-9cd3a4b8.js";
|
|
17
17
|
import {
|
|
18
18
|
makeJob2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./request-site-78rcgzsr.js";
|
|
20
20
|
import {
|
|
21
21
|
makeMediaGet2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./request-site-djr0jy89.js";
|
|
23
23
|
import {
|
|
24
24
|
runPtySocket2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./request-site-q187pxxd.js";
|
|
26
26
|
|
|
27
27
|
// src/handlers/persistent-pty.ts
|
|
28
28
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./request-site-ywn523ee.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./request-site-zjmacp9c.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./request-site-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2,
|
|
15
15
|
holdLocation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./request-site-q187pxxd.js";
|
|
17
17
|
|
|
18
18
|
// src/handlers/pty.ts
|
|
19
19
|
import { Pty } from "@opencode/core/pty";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
locationErrors2
|
|
3
|
-
|
|
4
|
-
} from "./api-gqq6kfhc.js";
|
|
2
|
+
locationErrors2
|
|
3
|
+
} from "./request-site-ywn523ee.js";
|
|
5
4
|
import {
|
|
6
5
|
Api2
|
|
7
|
-
} from "./
|
|
6
|
+
} from "./request-site-zjmacp9c.js";
|
|
8
7
|
|
|
9
8
|
// src/handlers/voice.ts
|
|
10
9
|
import { Location } from "@opencode/core/location";
|
|
@@ -20,11 +19,9 @@ var VoiceHandler2 = HttpApiBuilder.group(Api2, "server.voice", (handlers) => Eff
|
|
|
20
19
|
const locations = yield* LocationServiceMap.Service;
|
|
21
20
|
const services = locations.get(Location.Ref.make({ directory: AbsolutePath.make(global.config) }));
|
|
22
21
|
return handlers.handle("voice.models", Effect.fn("server.voice.models")(function* () {
|
|
23
|
-
yield* awaitPlugins2;
|
|
24
22
|
const voice = yield* Voice.Service;
|
|
25
23
|
return { data: yield* voice.models() };
|
|
26
24
|
}, Effect.provide(services), locationErrors2)).handle("voice.session", Effect.fn("server.voice.session")(function* (request) {
|
|
27
|
-
yield* awaitPlugins2;
|
|
28
25
|
const voice = yield* Voice.Service;
|
|
29
26
|
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 })));
|
|
30
27
|
return { data: { transport } };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-site-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-site-zjmacp9c.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 "./request-site-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-site-zjmacp9c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-site-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-site-zjmacp9c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/usage.ts
|
|
9
9
|
import { UsageLimits } from "@opencode/core/usage-limits";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-site-smaf4a18.js";
|
|
4
4
|
|
|
5
5
|
// src/location.ts
|
|
6
6
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
7
7
|
import { Location } from "@opencode/core/location";
|
|
8
|
-
import { Plugin } from "@opencode/core/plugin";
|
|
9
8
|
import { LocationServiceMap } from "@opencode/core/location-services";
|
|
10
9
|
import { AbsolutePath } from "@opencode/core/schema";
|
|
11
10
|
import { Session } from "@opencode/core/session";
|
|
12
|
-
import { LocationNotFoundError, InvalidRequestError
|
|
11
|
+
import { LocationNotFoundError, InvalidRequestError } from "@opencode/protocol/errors";
|
|
13
12
|
import { Effect, Layer, Schema } from "effect";
|
|
14
13
|
import { HttpServerRequest } from "effect/http";
|
|
15
14
|
import { HttpApiMiddleware } from "effect/http-api";
|
|
@@ -21,13 +20,6 @@ function locationErrors2(effect) {
|
|
|
21
20
|
message: `Location not found: ${error.directory}`
|
|
22
21
|
}))));
|
|
23
22
|
}
|
|
24
|
-
var awaitPlugins2 = Plugin.awaitActivation.pipe(Effect.timeoutOrElse({
|
|
25
|
-
duration: "5 seconds",
|
|
26
|
-
orElse: () => Effect.fail(new ServiceUnavailableError({
|
|
27
|
-
message: "Location plugins did not finish activating",
|
|
28
|
-
service: "plugin"
|
|
29
|
-
}))
|
|
30
|
-
}));
|
|
31
23
|
function response2(data) {
|
|
32
24
|
return Effect.gen(function* () {
|
|
33
25
|
const location = yield* Location.Service;
|
|
@@ -59,7 +51,7 @@ function decode(input) {
|
|
|
59
51
|
return input;
|
|
60
52
|
}
|
|
61
53
|
}
|
|
62
|
-
var
|
|
54
|
+
var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
|
|
63
55
|
const locations = yield* LocationServiceMap.Service;
|
|
64
56
|
return LocationMiddleware2.of((effect) => Effect.gen(function* () {
|
|
65
57
|
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
@@ -67,4 +59,4 @@ var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
|
|
|
67
59
|
}));
|
|
68
60
|
}));
|
|
69
61
|
|
|
70
|
-
export { LocationMiddleware2, locationErrors2,
|
|
62
|
+
export { LocationMiddleware2, locationErrors2, response2, sessionInfo2, requestRef2, layer4 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-site-ywn523ee.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-site-ah2sj2pr.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./request-site-vw0q3knq.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
package/dist/content-headers.js
CHANGED
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
package/dist/fetch.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make3,
|
|
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/
|
|
51
|
-
import"./chunks/
|
|
52
|
-
import"./chunks/
|
|
53
|
-
import"./chunks/
|
|
54
|
-
import"./chunks/
|
|
55
|
-
import"./chunks/
|
|
56
|
-
import"./chunks/
|
|
57
|
-
import"./chunks/
|
|
58
|
-
import"./chunks/
|
|
59
|
-
import"./chunks/
|
|
60
|
-
import"./chunks/
|
|
61
|
-
import"./chunks/
|
|
62
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/request-site-fh7k1j4y.js";
|
|
5
|
+
import"./chunks/request-site-yc7nft6q.js";
|
|
6
|
+
import"./chunks/request-site-myqk22k5.js";
|
|
7
|
+
import"./chunks/request-site-q6ebsdyb.js";
|
|
8
|
+
import"./chunks/request-site-n26yr6pw.js";
|
|
9
|
+
import"./chunks/request-site-7b9xm1qg.js";
|
|
10
|
+
import"./chunks/request-site-bd8755ek.js";
|
|
11
|
+
import"./chunks/request-site-8654jye6.js";
|
|
12
|
+
import"./chunks/request-site-r40v995e.js";
|
|
13
|
+
import"./chunks/request-site-5jm9kajg.js";
|
|
14
|
+
import"./chunks/request-site-y60jfeab.js";
|
|
15
|
+
import"./chunks/request-site-eajr6f05.js";
|
|
16
|
+
import"./chunks/request-site-2cm4dfcc.js";
|
|
17
|
+
import"./chunks/request-site-ky9xhfwk.js";
|
|
18
|
+
import"./chunks/request-site-r6zj4kgb.js";
|
|
19
|
+
import"./chunks/request-site-wka57cdm.js";
|
|
20
|
+
import"./chunks/request-site-ddrpmftb.js";
|
|
21
|
+
import"./chunks/request-site-p0v7cf9m.js";
|
|
22
|
+
import"./chunks/request-site-d20xfnpc.js";
|
|
23
|
+
import"./chunks/request-site-s3zgwc17.js";
|
|
24
|
+
import"./chunks/request-site-gq4jwh93.js";
|
|
25
|
+
import"./chunks/request-site-bjh20vhp.js";
|
|
26
|
+
import"./chunks/request-site-2dzr03as.js";
|
|
27
|
+
import"./chunks/request-site-8ja97vv6.js";
|
|
28
|
+
import"./chunks/request-site-r1hxvaqv.js";
|
|
29
|
+
import"./chunks/request-site-78rcgzsr.js";
|
|
30
|
+
import"./chunks/request-site-djr0jy89.js";
|
|
31
|
+
import"./chunks/request-site-7qpea5x7.js";
|
|
32
|
+
import"./chunks/request-site-g23ffrnz.js";
|
|
33
|
+
import"./chunks/request-site-w3xmknp7.js";
|
|
34
|
+
import"./chunks/request-site-yty6dk04.js";
|
|
35
|
+
import"./chunks/request-site-q187pxxd.js";
|
|
36
|
+
import"./chunks/request-site-rmfb1myj.js";
|
|
37
|
+
import"./chunks/request-site-4fc68szf.js";
|
|
38
|
+
import"./chunks/request-site-9cd3a4b8.js";
|
|
39
|
+
import"./chunks/request-site-19v80edx.js";
|
|
40
|
+
import"./chunks/request-site-hk9crnsa.js";
|
|
41
|
+
import"./chunks/request-site-prn0chz2.js";
|
|
42
|
+
import"./chunks/request-site-jmmhprac.js";
|
|
43
|
+
import"./chunks/request-site-100nc7c0.js";
|
|
44
|
+
import"./chunks/request-site-2rb1ee6g.js";
|
|
45
|
+
import"./chunks/request-site-xthc02cw.js";
|
|
46
|
+
import"./chunks/request-site-8sb6qqpn.js";
|
|
47
|
+
import"./chunks/request-site-4zkx9wb3.js";
|
|
48
|
+
import"./chunks/request-site-j5jk0es1.js";
|
|
49
|
+
import"./chunks/request-site-ykk3p1r3.js";
|
|
50
|
+
import"./chunks/request-site-801prsqk.js";
|
|
51
|
+
import"./chunks/request-site-p83m65n5.js";
|
|
52
|
+
import"./chunks/request-site-fvpjvjpp.js";
|
|
53
|
+
import"./chunks/request-site-3te71694.js";
|
|
54
|
+
import"./chunks/request-site-zjmacp9c.js";
|
|
55
|
+
import"./chunks/request-site-vw0q3knq.js";
|
|
56
|
+
import"./chunks/request-site-ah2sj2pr.js";
|
|
57
|
+
import"./chunks/request-site-t32e1bbt.js";
|
|
58
|
+
import"./chunks/request-site-q4bn6dy8.js";
|
|
59
|
+
import"./chunks/request-site-mzs0n5xz.js";
|
|
60
|
+
import"./chunks/request-site-ywn523ee.js";
|
|
61
|
+
import"./chunks/request-site-smaf4a18.js";
|
|
62
|
+
import"./chunks/request-site-j4at0y5c.js";
|
|
63
63
|
export {
|
|
64
64
|
exports_fetch as ServerFetch,
|
|
65
65
|
make3 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/request-site-4fc68szf.js";
|
|
4
|
+
import"../chunks/request-site-zjmacp9c.js";
|
|
5
|
+
import"../chunks/request-site-vw0q3knq.js";
|
|
6
|
+
import"../chunks/request-site-ah2sj2pr.js";
|
|
7
|
+
import"../chunks/request-site-ywn523ee.js";
|
|
8
|
+
import"../chunks/request-site-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeArtifact2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/request-site-7qpea5x7.js";
|
|
4
|
+
import"../chunks/request-site-ywn523ee.js";
|
|
5
|
+
import"../chunks/request-site-smaf4a18.js";
|
|
6
6
|
export {
|
|
7
7
|
makeArtifact2 as makeArtifact
|
|
8
8
|
};
|
package/dist/handlers/blob.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeBlobGet2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/request-site-g23ffrnz.js";
|
|
4
|
+
import"../chunks/request-site-8sb6qqpn.js";
|
|
5
|
+
import"../chunks/request-site-t32e1bbt.js";
|
|
6
6
|
export {
|
|
7
7
|
makeBlobGet2 as makeBlobGet
|
|
8
8
|
};
|