@opencode/server 0.0.0-dev-856 → 0.0.0-dev-857
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/{server-info-059rbh9c.js → request-tracing-059rbh9c.js} +1 -1
- package/dist/chunks/{server-info-k5thrxbp.js → request-tracing-06zffp76.js} +2 -2
- package/dist/chunks/{server-info-rha2aq18.js → request-tracing-0a5jm2na.js} +2 -2
- package/dist/chunks/{server-info-d9byryse.js → request-tracing-0k64m50r.js} +35 -35
- package/dist/chunks/{server-info-5s0wnsg4.js → request-tracing-0n1e9dnh.js} +3 -3
- package/dist/chunks/{server-info-39nnfjx1.js → request-tracing-0q7s66m2.js} +4 -4
- package/dist/chunks/{server-info-6z9pvq7p.js → request-tracing-1je14sn4.js} +1 -1
- package/dist/chunks/{server-info-qfyg9gb7.js → request-tracing-20b2yx1f.js} +7 -7
- package/dist/chunks/{server-info-qd0r787n.js → request-tracing-22wspztn.js} +2 -2
- package/dist/chunks/{server-info-s282vggx.js → request-tracing-2xcc0x05.js} +1 -1
- package/dist/chunks/{server-info-1ndv3m9h.js → request-tracing-34xzc0ha.js} +4 -4
- package/dist/chunks/{server-info-enp1bp7r.js → request-tracing-41yet3w7.js} +1 -1
- package/dist/chunks/{server-info-mpvvr0mh.js → request-tracing-4zy25zv5.js} +2 -2
- package/dist/chunks/{server-info-0fv515j7.js → request-tracing-57m9rtnr.js} +2 -2
- package/dist/chunks/{server-info-03x11xk6.js → request-tracing-685a6gp2.js} +2 -2
- package/dist/chunks/{server-info-ny1j968n.js → request-tracing-6vs5sqy6.js} +2 -2
- package/dist/chunks/{server-info-78rcgzsr.js → request-tracing-78rcgzsr.js} +1 -1
- package/dist/chunks/{server-info-7b9xm1qg.js → request-tracing-7b9xm1qg.js} +1 -1
- package/dist/chunks/{server-info-z3e7v67k.js → request-tracing-7dtbad8d.js} +7 -7
- package/dist/chunks/{server-info-psw29prz.js → request-tracing-84dqjc6j.js} +4 -4
- package/dist/chunks/{server-info-4j6fza0w.js → request-tracing-850131ea.js} +7 -7
- package/dist/chunks/{server-info-j87xz9bt.js → request-tracing-9c4eyh8m.js} +3 -3
- package/dist/chunks/{server-info-cezwbsk5.js → request-tracing-b2k9041j.js} +1 -1
- package/dist/chunks/{server-info-yqhefp4s.js → request-tracing-c6sjpm0r.js} +2 -2
- package/dist/chunks/{server-info-a8jcac9a.js → request-tracing-dk68ymtv.js} +1 -1
- package/dist/chunks/{server-info-kkdkqt8j.js → request-tracing-e46y0tfd.js} +2 -2
- package/dist/chunks/{server-info-ehrw6cyc.js → request-tracing-gbmryxzb.js} +15 -15
- package/dist/chunks/{server-info-htyf2qs7.js → request-tracing-gk0yxcp6.js} +1 -1
- package/dist/chunks/{server-info-50bbk3b2.js → request-tracing-gqq6kfhc.js} +3 -3
- package/dist/chunks/{server-info-zcvan105.js → request-tracing-h072q2hm.js} +1 -1
- package/dist/chunks/{server-info-az0609r6.js → request-tracing-hax1v4bv.js} +2 -2
- package/dist/chunks/{server-info-1v577ncx.js → request-tracing-hnheq3hv.js} +2 -2
- package/dist/chunks/{server-info-j4at0y5c.js → request-tracing-j4at0y5c.js} +1 -1
- package/dist/chunks/{server-info-b105zy65.js → request-tracing-j9gxd9me.js} +2 -2
- package/dist/chunks/{server-info-s50nqf37.js → request-tracing-kb64xpsr.js} +8 -8
- package/dist/chunks/{server-info-mzs0n5xz.js → request-tracing-kqr36gas.js} +7 -7
- package/dist/chunks/{server-info-f559fakr.js → request-tracing-m5rae7m4.js} +2 -2
- package/dist/chunks/{server-info-btahnm2b.js → request-tracing-ppma8fcc.js} +3 -3
- package/dist/chunks/{server-info-2eaky32g.js → request-tracing-qn8kkfq6.js} +2 -2
- package/dist/chunks/{server-info-2h6qktqa.js → request-tracing-r6vmgwff.js} +2 -2
- package/dist/chunks/{server-info-k3txyteh.js → request-tracing-wd7b20jw.js} +4 -4
- package/dist/chunks/{server-info-d0edqfxx.js → request-tracing-wxj3d9av.js} +2 -2
- package/dist/chunks/{server-info-vsjq3qjx.js → request-tracing-x7eqeent.js} +7 -7
- package/dist/chunks/{server-info-qcg3sqtb.js → request-tracing-x8dgc261.js} +2 -2
- package/dist/chunks/{server-info-5s6gh8sx.js → request-tracing-xe9t9xr4.js} +2 -2
- package/dist/chunks/{server-info-b3bmdkga.js → request-tracing-yet0vexm.js} +1 -1
- package/dist/chunks/{server-info-te8jwba1.js → request-tracing-yr4wsvrw.js} +2 -2
- package/dist/chunks/{server-info-4q6e7fh8.js → request-tracing-z59gyc0x.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +56 -56
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.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 +6 -6
- 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 +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 +12 -12
- 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/schedule.js +2 -2
- 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 +49 -49
- package/dist/location.js +4 -4
- 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 +57 -57
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +52 -52
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +57 -57
- package/package.json +8 -8
- /package/dist/chunks/{server-info-9rqn6x4v.js → request-tracing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{server-info-bd8755ek.js → request-tracing-bd8755ek.js} +0 -0
- /package/dist/chunks/{server-info-n321d8vm.js → request-tracing-n321d8vm.js} +0 -0
- /package/dist/chunks/{server-info-q187pxxd.js → request-tracing-q187pxxd.js} +0 -0
- /package/dist/chunks/{server-info-q4bn6dy8.js → request-tracing-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{server-info-smaf4a18.js → request-tracing-smaf4a18.js} +0 -0
- /package/dist/chunks/{server-info-xthc02cw.js → request-tracing-xthc02cw.js} +0 -0
- /package/dist/chunks/{server-info-yc7nft6q.js → request-tracing-yc7nft6q.js} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
layer3
|
|
3
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-gk0yxcp6.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./request-tracing-yet0vexm.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./request-tracing-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./request-tracing-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
layer4
|
|
21
|
+
} from "./request-tracing-7dtbad8d.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./request-tracing-kqr36gas.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./request-tracing-0k64m50r.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./request-tracing-7b9xm1qg.js";
|
|
31
31
|
import {
|
|
32
32
|
schemaErrorLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./request-tracing-bd8755ek.js";
|
|
34
34
|
|
|
35
35
|
// src/routes.ts
|
|
36
36
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -156,8 +156,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
156
156
|
})) : build(overrides);
|
|
157
157
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
158
158
|
const services = Layer.succeedContext(context);
|
|
159
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
160
|
-
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(
|
|
159
|
+
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer4(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
|
|
160
|
+
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(layer3), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
161
161
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
162
162
|
}));
|
|
163
163
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-smaf4a18.js";
|
|
4
4
|
|
|
5
5
|
// src/location.ts
|
|
6
6
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -59,7 +59,7 @@ function decode(input) {
|
|
|
59
59
|
return input;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
|
|
63
63
|
const locations = yield* LocationServiceMap.Service;
|
|
64
64
|
return LocationMiddleware2.of((effect) => Effect.gen(function* () {
|
|
65
65
|
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
@@ -67,4 +67,4 @@ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
|
|
|
67
67
|
}));
|
|
68
68
|
}));
|
|
69
69
|
|
|
70
|
-
export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2,
|
|
70
|
+
export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer3 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/provider.ts
|
|
10
10
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/agent.ts
|
|
10
10
|
import { Agent } from "@opencode/core/agent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/usage.ts
|
|
10
10
|
import { UsageLimits } from "@opencode/core/usage-limits";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
10
|
-
import {
|
|
11
|
-
Service2
|
|
12
|
-
} from "./server-info-z3e7v67k.js";
|
|
9
|
+
} from "./request-tracing-j4at0y5c.js";
|
|
13
10
|
import {
|
|
14
11
|
Service4
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./request-tracing-7dtbad8d.js";
|
|
13
|
+
import {
|
|
14
|
+
Service2
|
|
15
|
+
} from "./request-tracing-kqr36gas.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { hostname } from "node:os";
|
|
@@ -22,10 +22,10 @@ import { HttpApiBuilder } from "effect/http-api";
|
|
|
22
22
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
23
23
|
import { UnauthorizedError } from "@opencode/protocol/errors";
|
|
24
24
|
var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
|
|
25
|
-
const pairing = yield*
|
|
25
|
+
const pairing = yield* Service2;
|
|
26
26
|
const auth = yield* Config2;
|
|
27
27
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
28
|
-
const info = yield*
|
|
28
|
+
const info = yield* Service4;
|
|
29
29
|
return {
|
|
30
30
|
version: info.app.version ?? "unknown",
|
|
31
31
|
pid: process.pid ?? 0,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/form.ts
|
|
9
9
|
import { Form } from "@opencode/core/form";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/plugin.ts
|
|
9
9
|
import { Plugin } from "@opencode/core/plugin";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/fs.ts
|
|
9
9
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
missingMessage2,
|
|
4
4
|
failedMessageDecode2,
|
|
5
5
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
13
13
|
import {
|
|
14
14
|
wantsMediaRefs2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./request-tracing-xthc02cw.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/session.ts
|
|
18
18
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/voice.ts
|
|
10
10
|
import { Location } from "@opencode/core/location";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
withoutParentSpan2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-yc7nft6q.js";
|
|
7
7
|
import {
|
|
8
8
|
createRoutes2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./request-tracing-gbmryxzb.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./request-tracing-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/fetch.ts
|
|
15
15
|
var exports_fetch = {};
|
|
16
16
|
__export(exports_fetch, {
|
|
17
17
|
ServerFetch: () => exports_fetch,
|
|
18
|
-
make: () =>
|
|
18
|
+
make: () => make2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
|
|
22
22
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
23
|
-
var
|
|
23
|
+
var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
24
24
|
const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices))).pipe(withoutParentSpan2);
|
|
25
25
|
yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
|
|
26
26
|
return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
export {
|
|
29
|
+
export { make2, exports_fetch };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-9c4eyh8m.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-tracing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/vcs.ts
|
|
9
9
|
import { Vcs } from "@opencode/core/vcs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-9c4eyh8m.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
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-gqq6kfhc.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-9c4eyh8m.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/command.ts
|
|
9
9
|
import { Command } from "@opencode/core/command";
|
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
EncodingError2,
|
|
5
5
|
Service3,
|
|
6
6
|
frame2,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
make3,
|
|
8
|
+
layer2,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/request-tracing-20b2yx1f.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
@@ -15,6 +15,6 @@ export {
|
|
|
15
15
|
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
layer2 as layer,
|
|
19
|
+
make3 as make
|
|
20
20
|
};
|
package/dist/fetch.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
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/
|
|
51
|
-
import"./chunks/
|
|
52
|
-
import"./chunks/
|
|
53
|
-
import"./chunks/
|
|
54
|
-
import"./chunks/
|
|
55
|
-
import"./chunks/
|
|
56
|
-
import"./chunks/
|
|
57
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/request-tracing-x7eqeent.js";
|
|
5
|
+
import"./chunks/request-tracing-gbmryxzb.js";
|
|
6
|
+
import"./chunks/request-tracing-bd8755ek.js";
|
|
7
|
+
import"./chunks/request-tracing-7b9xm1qg.js";
|
|
8
|
+
import"./chunks/request-tracing-0k64m50r.js";
|
|
9
|
+
import"./chunks/request-tracing-hnheq3hv.js";
|
|
10
|
+
import"./chunks/request-tracing-0n1e9dnh.js";
|
|
11
|
+
import"./chunks/request-tracing-kb64xpsr.js";
|
|
12
|
+
import"./chunks/request-tracing-yr4wsvrw.js";
|
|
13
|
+
import"./chunks/request-tracing-hax1v4bv.js";
|
|
14
|
+
import"./chunks/request-tracing-x8dgc261.js";
|
|
15
|
+
import"./chunks/request-tracing-e46y0tfd.js";
|
|
16
|
+
import"./chunks/request-tracing-0a5jm2na.js";
|
|
17
|
+
import"./chunks/request-tracing-2xcc0x05.js";
|
|
18
|
+
import"./chunks/request-tracing-z59gyc0x.js";
|
|
19
|
+
import"./chunks/request-tracing-m5rae7m4.js";
|
|
20
|
+
import"./chunks/request-tracing-h072q2hm.js";
|
|
21
|
+
import"./chunks/request-tracing-1je14sn4.js";
|
|
22
|
+
import"./chunks/request-tracing-850131ea.js";
|
|
23
|
+
import"./chunks/request-tracing-78rcgzsr.js";
|
|
24
|
+
import"./chunks/request-tracing-r6vmgwff.js";
|
|
25
|
+
import"./chunks/request-tracing-n321d8vm.js";
|
|
26
|
+
import"./chunks/request-tracing-84dqjc6j.js";
|
|
27
|
+
import"./chunks/request-tracing-ppma8fcc.js";
|
|
28
|
+
import"./chunks/request-tracing-57m9rtnr.js";
|
|
29
|
+
import"./chunks/request-tracing-059rbh9c.js";
|
|
30
|
+
import"./chunks/request-tracing-j9gxd9me.js";
|
|
31
|
+
import"./chunks/request-tracing-685a6gp2.js";
|
|
32
|
+
import"./chunks/request-tracing-c6sjpm0r.js";
|
|
33
|
+
import"./chunks/request-tracing-wd7b20jw.js";
|
|
34
|
+
import"./chunks/request-tracing-34xzc0ha.js";
|
|
35
|
+
import"./chunks/request-tracing-q187pxxd.js";
|
|
36
|
+
import"./chunks/request-tracing-dk68ymtv.js";
|
|
37
|
+
import"./chunks/request-tracing-b2k9041j.js";
|
|
38
|
+
import"./chunks/request-tracing-41yet3w7.js";
|
|
39
|
+
import"./chunks/request-tracing-qn8kkfq6.js";
|
|
40
|
+
import"./chunks/request-tracing-6vs5sqy6.js";
|
|
41
|
+
import"./chunks/request-tracing-wxj3d9av.js";
|
|
42
|
+
import"./chunks/request-tracing-06zffp76.js";
|
|
43
|
+
import"./chunks/request-tracing-4zy25zv5.js";
|
|
44
|
+
import"./chunks/request-tracing-xe9t9xr4.js";
|
|
45
|
+
import"./chunks/request-tracing-22wspztn.js";
|
|
46
|
+
import"./chunks/request-tracing-kqr36gas.js";
|
|
47
|
+
import"./chunks/request-tracing-20b2yx1f.js";
|
|
48
|
+
import"./chunks/request-tracing-9c4eyh8m.js";
|
|
49
|
+
import"./chunks/request-tracing-yet0vexm.js";
|
|
50
|
+
import"./chunks/request-tracing-gk0yxcp6.js";
|
|
51
|
+
import"./chunks/request-tracing-gqq6kfhc.js";
|
|
52
|
+
import"./chunks/request-tracing-smaf4a18.js";
|
|
53
|
+
import"./chunks/request-tracing-yc7nft6q.js";
|
|
54
|
+
import"./chunks/request-tracing-q4bn6dy8.js";
|
|
55
|
+
import"./chunks/request-tracing-xthc02cw.js";
|
|
56
|
+
import"./chunks/request-tracing-7dtbad8d.js";
|
|
57
|
+
import"./chunks/request-tracing-j4at0y5c.js";
|
|
58
58
|
export {
|
|
59
59
|
exports_fetch as ServerFetch,
|
|
60
|
-
|
|
60
|
+
make2 as make
|
|
61
61
|
};
|
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-tracing-hnheq3hv.js";
|
|
4
|
+
import"../chunks/request-tracing-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/request-tracing-yet0vexm.js";
|
|
6
|
+
import"../chunks/request-tracing-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/request-tracing-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/request-tracing-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-tracing-57m9rtnr.js";
|
|
4
|
+
import"../chunks/request-tracing-gqq6kfhc.js";
|
|
5
|
+
import"../chunks/request-tracing-smaf4a18.js";
|
|
6
6
|
export {
|
|
7
7
|
makeArtifact2 as makeArtifact
|
|
8
8
|
};
|