@opencode/server 0.0.0-dev-1311 → 0.0.0-dev-1313
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-84dqjc6j.js → server-info-1s2hfsfr.js} +4 -4
- package/dist/chunks/{api-qn8kkfq6.js → server-info-20wvj9q6.js} +2 -2
- package/dist/chunks/{api-39nnfjx1.js → server-info-39nnfjx1.js} +1 -1
- package/dist/chunks/{api-6vs5sqy6.js → server-info-4apj6a8e.js} +2 -2
- package/dist/chunks/{api-4d0zahrw.js → server-info-4d81c38p.js} +4 -4
- package/dist/chunks/{api-b0sezs8j.js → server-info-4gbck4qg.js} +2 -2
- package/dist/chunks/{api-r3h1014p.js → server-info-4r2ye500.js} +2 -2
- package/dist/chunks/{api-50kbksvb.js → server-info-50kbksvb.js} +2 -2
- package/dist/chunks/{api-3z6z4adb.js → server-info-58twjv3r.js} +14 -14
- package/dist/chunks/{api-b1prsepx.js → server-info-5pdfedjd.js} +4 -4
- package/dist/chunks/{api-prdak4hd.js → server-info-6s1v5h8n.js} +4 -4
- package/dist/chunks/{api-hax1v4bv.js → server-info-6t6fd9bq.js} +2 -4
- package/dist/chunks/{api-78rcgzsr.js → server-info-78rcgzsr.js} +1 -1
- package/dist/chunks/{api-7b9xm1qg.js → server-info-7b9xm1qg.js} +1 -1
- package/dist/chunks/{api-e46y0tfd.js → server-info-7x6cg3xs.js} +2 -4
- package/dist/chunks/{api-ppma8fcc.js → server-info-8n1ypg70.js} +3 -3
- package/dist/chunks/{api-8sb6qqpn.js → server-info-8sb6qqpn.js} +1 -1
- package/dist/chunks/{api-9cd3a4b8.js → server-info-9cd3a4b8.js} +1 -1
- package/dist/chunks/{api-452na7zm.js → server-info-9wqhmdh7.js} +2 -2
- package/dist/chunks/{api-22wspztn.js → server-info-b1x3j2e8.js} +2 -2
- package/dist/chunks/{api-x8dgc261.js → server-info-b7yt2ykh.js} +2 -2
- package/dist/chunks/{api-z59gyc0x.js → server-info-b87bs0cf.js} +2 -2
- package/dist/chunks/{api-0a5jm2na.js → server-info-d0advawr.js} +2 -5
- package/dist/chunks/{api-djr0jy89.js → server-info-djr0jy89.js} +1 -1
- package/dist/chunks/{api-2q11qvwk.js → server-info-dvxxj8f2.js} +35 -35
- package/dist/chunks/{api-1xwg7d8k.js → server-info-e44cjq9e.js} +6 -6
- package/dist/chunks/{api-dk68ymtv.js → server-info-edwk6ehd.js} +1 -1
- package/dist/chunks/{api-4vqvqsgg.js → server-info-g80pvn6e.js} +2 -2
- package/dist/chunks/{api-b2k9041j.js → server-info-g97h7k0s.js} +1 -1
- package/dist/chunks/{api-zgt2tacv.js → server-info-gp51b0m6.js} +3 -3
- package/dist/chunks/{api-j4at0y5c.js → server-info-j4at0y5c.js} +1 -1
- package/dist/chunks/{api-gqq6kfhc.js → server-info-j80tzjj3.js} +3 -11
- package/dist/chunks/{api-zdv005zd.js → server-info-jcw94z5n.js} +8 -8
- package/dist/chunks/{api-np3ws677.js → server-info-k26h7zjg.js} +2 -2
- package/dist/chunks/{api-mzs0n5xz.js → server-info-kqr36gas.js} +7 -7
- package/dist/chunks/{api-myqk22k5.js → server-info-myqk22k5.js} +2 -2
- package/dist/chunks/{api-gk0yxcp6.js → server-info-n6ypjnhz.js} +1 -1
- package/dist/chunks/{api-z7gkfgax.js → server-info-p4zkxzv7.js} +1 -1
- package/dist/chunks/{api-41yet3w7.js → server-info-p9wp66hf.js} +1 -1
- package/dist/chunks/{api-1je14sn4.js → server-info-pv4dnzzq.js} +1 -1
- package/dist/chunks/{api-yet0vexm.js → server-info-qahj7606.js} +1 -1
- package/dist/chunks/{api-jfjg0q42.js → server-info-qy4aakr9.js} +3 -8
- package/dist/chunks/{api-9c4eyh8m.js → server-info-s8t5gq7c.js} +3 -3
- package/dist/chunks/{api-t32e1bbt.js → server-info-t32e1bbt.js} +1 -1
- package/dist/chunks/{api-w5yp0ga8.js → server-info-t62b1gmw.js} +2 -2
- package/dist/chunks/{api-yr4wsvrw.js → server-info-t8azv5ge.js} +2 -2
- package/dist/chunks/{api-wxj3d9av.js → server-info-v0z8pce5.js} +3 -6
- package/dist/chunks/{api-34xzc0ha.js → server-info-w0qzmhfg.js} +4 -4
- package/dist/chunks/{api-fvpjvjpp.js → server-info-wecgp61r.js} +7 -7
- package/dist/chunks/{api-h072q2hm.js → server-info-wh07bcjv.js} +1 -1
- package/dist/chunks/{api-296sv0gc.js → server-info-x0gby756.js} +4 -4
- package/dist/chunks/{api-48ba7vwf.js → server-info-xfbejptx.js} +5 -5
- package/dist/chunks/{api-m5rae7m4.js → server-info-zrptb2x8.js} +2 -2
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- 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 +2 -4
- 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 +3 -3
- 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 → server-info-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{api-bd8755ek.js → server-info-bd8755ek.js} +0 -0
- /package/dist/chunks/{api-n26yr6pw.js → server-info-n26yr6pw.js} +0 -0
- /package/dist/chunks/{api-q187pxxd.js → server-info-q187pxxd.js} +0 -0
- /package/dist/chunks/{api-q4bn6dy8.js → server-info-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{api-smaf4a18.js → server-info-smaf4a18.js} +0 -0
- /package/dist/chunks/{api-xthc02cw.js → server-info-xthc02cw.js} +0 -0
- /package/dist/chunks/{api-yc7nft6q.js → server-info-yc7nft6q.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
3
|
failedMessageDecode2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./server-info-smaf4a18.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./server-info-s8t5gq7c.js";
|
|
8
8
|
import {
|
|
9
9
|
wantsMediaRefs2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./server-info-xthc02cw.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/message.ts
|
|
13
13
|
import { SessionMessage } from "@opencode/core/session/message";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-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;
|
|
@@ -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, layer3 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-s8t5gq7c.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./server-info-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./server-info-t62b1gmw.js";
|
|
11
11
|
import {
|
|
12
12
|
makeBlobGet2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./server-info-50kbksvb.js";
|
|
14
14
|
import {
|
|
15
15
|
makeAutomation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./server-info-9cd3a4b8.js";
|
|
17
17
|
import {
|
|
18
18
|
makeJob2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./server-info-78rcgzsr.js";
|
|
20
20
|
import {
|
|
21
21
|
makeMediaGet2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./server-info-djr0jy89.js";
|
|
23
23
|
import {
|
|
24
24
|
runPtySocket2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./server-info-q187pxxd.js";
|
|
26
26
|
|
|
27
27
|
// src/handlers/persistent-pty.ts
|
|
28
28
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-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: () =>
|
|
9
|
+
Service: () => Service2,
|
|
10
10
|
node: () => node2
|
|
11
11
|
});
|
|
12
12
|
import { Cache, Context, Duration, Effect, Layer } from "effect";
|
|
@@ -14,12 +14,12 @@ 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 Service2 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(Service2, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service2.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(Service4, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var node2 = makeGlobalNode({ service:
|
|
33
|
+
var node2 = makeGlobalNode({ service: Service2, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service2, node2, exports_pairing };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
locationErrors2
|
|
3
|
-
|
|
4
|
-
} from "./api-gqq6kfhc.js";
|
|
2
|
+
locationErrors2
|
|
3
|
+
} from "./server-info-j80tzjj3.js";
|
|
5
4
|
import {
|
|
6
5
|
Api2
|
|
7
|
-
} from "./
|
|
6
|
+
} from "./server-info-s8t5gq7c.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,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-j80tzjj3.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./server-info-n6ypjnhz.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./server-info-qahj7606.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
requestRef2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./server-info-j80tzjj3.js";
|
|
9
9
|
|
|
10
10
|
// src/handlers/artifact.ts
|
|
11
11
|
import { Artifact } from "@opencode/core/artifact";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-j80tzjj3.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./server-info-s8t5gq7c.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/reference.ts
|
|
9
9
|
import { Reference } from "@opencode/core/reference";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
locationErrors2
|
|
3
|
-
|
|
4
|
-
} from "./api-gqq6kfhc.js";
|
|
2
|
+
locationErrors2
|
|
3
|
+
} from "./server-info-j80tzjj3.js";
|
|
5
4
|
import {
|
|
6
5
|
Api2
|
|
7
|
-
} from "./
|
|
6
|
+
} from "./server-info-s8t5gq7c.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 } };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./server-info-j80tzjj3.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./server-info-s8t5gq7c.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./server-info-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2,
|
|
15
15
|
holdLocation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./server-info-q187pxxd.js";
|
|
17
17
|
|
|
18
18
|
// src/handlers/mcp.ts
|
|
19
19
|
import { Location } from "@opencode/core/location";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-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: () => Service4,
|
|
11
11
|
SubscriberCapacity: () => SubscriberCapacity2,
|
|
12
12
|
SubscriberOverflowError: () => SubscriberOverflowError2,
|
|
13
13
|
frame: () => frame2,
|
|
14
|
-
layer: () =>
|
|
14
|
+
layer: () => layer4,
|
|
15
15
|
make: () => make4
|
|
16
16
|
});
|
|
17
17
|
import { Bus } from "@opencode/core/bus";
|
|
@@ -30,7 +30,7 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
|
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class Service4 extends Context.Service()("@opencode/server/EventFeed") {
|
|
34
34
|
}
|
|
35
35
|
function frame2(event) {
|
|
36
36
|
return `data: ${JSON.stringify(event)}
|
|
@@ -72,13 +72,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
72
72
|
});
|
|
73
73
|
const unsubscribe = yield* observe(publish);
|
|
74
74
|
yield* Effect.addFinalizer(() => unsubscribe);
|
|
75
|
-
return
|
|
75
|
+
return Service4.of({
|
|
76
76
|
subscribe: (types) => Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.set(queue, types?.length ? new Set(types) : undefined)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
|
-
var
|
|
79
|
+
var layer4 = Layer.effect(Service4, Effect.gen(function* () {
|
|
80
80
|
const bus = yield* Bus.Service;
|
|
81
81
|
return yield* make4(bus.listen);
|
|
82
82
|
}));
|
|
83
83
|
|
|
84
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2,
|
|
84
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer4, exports_event_feed };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-j80tzjj3.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./server-info-s8t5gq7c.js";
|
|
7
7
|
import {
|
|
8
8
|
download2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./server-info-t32e1bbt.js";
|
|
10
10
|
import {
|
|
11
11
|
parse2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./server-info-8sb6qqpn.js";
|
|
13
13
|
|
|
14
14
|
// src/handlers/fs.ts
|
|
15
15
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./server-info-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
middleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./server-info-myqk22k5.js";
|
|
7
7
|
import {
|
|
8
8
|
withoutParentSpan2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./server-info-yc7nft6q.js";
|
|
10
10
|
import {
|
|
11
11
|
createRoutes2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./server-info-58twjv3r.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./server-info-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/fetch.ts
|
|
18
18
|
var exports_fetch = {};
|
package/dist/content-headers.js
CHANGED
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
|
+
Service4,
|
|
6
6
|
frame2,
|
|
7
7
|
make4,
|
|
8
|
-
|
|
8
|
+
layer4,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/server-info-wecgp61r.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
14
|
-
|
|
14
|
+
Service4 as Service,
|
|
15
15
|
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
|
18
|
-
|
|
18
|
+
layer4 as layer,
|
|
19
19
|
make4 as make
|
|
20
20
|
};
|