@opencode/server 0.0.0-dev-20769 → 0.0.0-dev-20774
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-14vy2pac.js → location-14vy2pac.js} +1 -1
- package/dist/chunks/{api-dcpc6tbm.js → location-1fwkx03c.js} +6 -6
- package/dist/chunks/{api-kww1pvjb.js → location-30xnqq49.js} +2 -2
- package/dist/chunks/{api-r3mjvgfk.js → location-42x3g9ax.js} +1 -1
- package/dist/chunks/{api-0x6kc6v7.js → location-44xejzws.js} +3 -3
- package/dist/chunks/{api-ae765ree.js → location-4ramkaya.js} +2 -2
- package/dist/chunks/{api-xsrtpxyd.js → location-5w24ch67.js} +4 -4
- package/dist/chunks/{api-6n8edpm0.js → location-6n8edpm0.js} +1 -1
- package/dist/chunks/{api-0gwhtgb0.js → location-71ywpadx.js} +1 -1
- package/dist/chunks/{api-gj3deeq3.js → location-7t3j0sgt.js} +3 -3
- package/dist/chunks/{api-00b7zw9n.js → location-8yd0ggw2.js} +2 -2
- package/dist/chunks/{api-5w803dat.js → location-99j0y489.js} +3 -3
- package/dist/chunks/{api-zgk9zpte.js → location-9e7dezt6.js} +1 -1
- package/dist/chunks/{api-sb0vzfpe.js → location-9n5apwv6.js} +4 -4
- package/dist/chunks/{api-wkt3zs7x.js → location-a0dqwany.js} +2 -2
- package/dist/chunks/{api-evmrcn2p.js → location-a9wwhyvg.js} +2 -2
- package/dist/chunks/{api-anm12x33.js → location-anm12x33.js} +1 -1
- package/dist/chunks/{api-ajhv9q2g.js → location-bf6vsze9.js} +1 -1
- package/dist/chunks/{api-bkk2wfbz.js → location-bkk2wfbz.js} +1 -1
- package/dist/chunks/{api-byt4hbw9.js → location-byt4hbw9.js} +1 -1
- package/dist/chunks/{api-z854b9h8.js → location-cr0n1s13.js} +2 -2
- package/dist/chunks/{api-pmra5yx3.js → location-dkb9k25y.js} +2 -2
- package/dist/chunks/{api-9f4pqzk4.js → location-fed9vx2e.js} +12 -12
- package/dist/chunks/{api-wq6tfxrf.js → location-fzqedhmt.js} +1 -1
- package/dist/chunks/{api-g0rzwe5g.js → location-g0rzwe5g.js} +1 -1
- package/dist/chunks/{api-gr63yha5.js → location-g8bfz8sd.js} +1 -1
- package/dist/chunks/{api-6w79g1zd.js → location-gg3fwzdw.js} +2 -2
- package/dist/chunks/{api-gtkdacvk.js → location-gtkdacvk.js} +1 -1
- package/dist/chunks/{api-ddsqnn2y.js → location-k1jxt98b.js} +2 -2
- package/dist/chunks/{api-kcvfpwaw.js → location-k8mpqm0r.js} +2 -2
- package/dist/chunks/{api-kta0tack.js → location-m71k2gq4.js} +2 -2
- package/dist/chunks/{api-0vcrsckz.js → location-mwb94amj.js} +2 -2
- package/dist/chunks/{api-x22271m7.js → location-n7bvwmvb.js} +3 -3
- package/dist/chunks/{api-d261w70h.js → location-pq7vm9zh.js} +2 -2
- package/dist/chunks/{api-gesckh61.js → location-pyjbkjwx.js} +2 -2
- package/dist/chunks/{api-2nwa3ky2.js → location-qq99dtkx.js} +2 -2
- package/dist/chunks/{api-rjpqaa8h.js → location-rjpqaa8h.js} +1 -1
- package/dist/chunks/{api-yddkh4zb.js → location-s6vr588s.js} +2 -2
- package/dist/chunks/{api-tfdbmzkj.js → location-tfdbmzkj.js} +1 -1
- package/dist/chunks/{api-qwcstt60.js → location-v5wyphc9.js} +1 -1
- package/dist/chunks/{api-rytwz38r.js → location-xf4a0915.js} +3 -3
- package/dist/chunks/{api-5strb8q0.js → location-y29tfrte.js} +31 -31
- package/dist/chunks/{api-7a1h5ft1.js → location-yr73eq63.js} +5 -5
- package/dist/chunks/{api-g27fjyd3.js → location-z68seea0.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +1 -1
- package/dist/fetch.js +49 -49
- 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/websearch.js +6 -6
- package/dist/handlers/worktree.js +6 -6
- package/dist/handlers.js +43 -43
- package/dist/location.js +2 -2
- 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 +1 -1
- package/dist/process.js +51 -51
- package/dist/pty-environment.js +1 -1
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +46 -46
- package/dist/server-info.js +1 -1
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +50 -50
- package/package.json +8 -8
- /package/dist/chunks/{api-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{api-hezj1jdf.js → location-hezj1jdf.js} +0 -0
- /package/dist/chunks/{api-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{api-smaf4a18.js → location-smaf4a18.js} +0 -0
- /package/dist/chunks/{api-t8yzmczr.js → location-t8yzmczr.js} +0 -0
- /package/dist/chunks/{api-yc7nft6q.js → location-yc7nft6q.js} +0 -0
package/dist/api.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
3
|
+
} from "./chunks/location-n7bvwmvb.js";
|
|
4
|
+
import"./chunks/location-6n8edpm0.js";
|
|
5
|
+
import"./chunks/location-tfdbmzkj.js";
|
|
6
|
+
import"./chunks/location-14vy2pac.js";
|
|
7
|
+
import"./chunks/location-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-fed9vx2e.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/fetch.ts
|
|
12
12
|
var exports_fetch = {};
|
|
13
13
|
__export(exports_fetch, {
|
|
14
14
|
ServerFetch: () => exports_fetch,
|
|
15
|
-
make: () =>
|
|
15
|
+
make: () => make2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Layer } from "effect";
|
|
18
18
|
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/unstable/http";
|
|
19
19
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
20
|
-
var
|
|
20
|
+
var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
21
21
|
const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
|
|
22
22
|
yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
|
|
23
23
|
return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { make2, exports_fetch };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-n7bvwmvb.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/fs.ts
|
|
9
9
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -20,7 +20,7 @@ var FileSystemHandler2 = HttpApiBuilder.group(Api2, "server.fs", (handlers) => E
|
|
|
20
20
|
return serveFile(ctx.request, file);
|
|
21
21
|
})).handle("fs.list", (ctx) => response2(Effect.gen(function* () {
|
|
22
22
|
const fs = yield* FileSystem.Service;
|
|
23
|
-
return yield* fs.list(ctx.query);
|
|
23
|
+
return yield* fs.list(ctx.query).pipe(Effect.mapError((error) => new FileNotFoundError({ path: error.path, message: `Directory not found: ${error.path}` })));
|
|
24
24
|
}))).handle("fs.find", (ctx) => response2(Effect.gen(function* () {
|
|
25
25
|
const fs = yield* FileSystem.Service;
|
|
26
26
|
return yield* fs.find(ctx.query);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-n7bvwmvb.js";
|
|
4
4
|
import {
|
|
5
5
|
Service3,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-rjpqaa8h.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/event.ts
|
|
10
10
|
import { Event } from "@opencode/schema/event";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/service-status.ts
|
|
6
6
|
var exports_service_status = {};
|
|
7
7
|
__export(exports_service_status, {
|
|
8
8
|
Status: () => exports_service_status,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make3
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make3 = Effect.fnUntraced(function* (options = {}) {
|
|
13
13
|
const current = yield* Ref.make(options.initial ?? { type: "starting" });
|
|
14
14
|
const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
|
|
15
15
|
return {
|
|
@@ -20,4 +20,4 @@ var make2 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make3, exports_service_status };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-n7bvwmvb.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
runPtySocket2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-hezj1jdf.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/persistent-pty.ts
|
|
13
13
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-14vy2pac.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-n7bvwmvb.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-n7bvwmvb.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-anm12x33.js";
|
|
10
10
|
import {
|
|
11
11
|
Service5
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-g0rzwe5g.js";
|
|
13
13
|
import {
|
|
14
14
|
Service4
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-byt4hbw9.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { Duration, Effect } from "effect";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-n7bvwmvb.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/generate.ts
|
|
9
9
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
3
|
failedMessageDecode2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-smaf4a18.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-n7bvwmvb.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/message.ts
|
|
10
10
|
import { SessionMessage } from "@opencode/core/session/message";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer4
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-6n8edpm0.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-tfdbmzkj.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-n7bvwmvb.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-anm12x33.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
20
|
layer5
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-g0rzwe5g.js";
|
|
22
22
|
import {
|
|
23
23
|
node3
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-byt4hbw9.js";
|
|
25
25
|
import {
|
|
26
26
|
node2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-bkk2wfbz.js";
|
|
28
28
|
import {
|
|
29
29
|
handlers2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-y29tfrte.js";
|
|
31
31
|
import {
|
|
32
32
|
authorizationLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-gtkdacvk.js";
|
|
34
34
|
import {
|
|
35
35
|
schemaErrorLayer2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./location-t8yzmczr.js";
|
|
37
37
|
|
|
38
38
|
// src/routes.ts
|
|
39
39
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-n7bvwmvb.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-n7bvwmvb.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-6n8edpm0.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-tfdbmzkj.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
missingMessage2,
|
|
4
4
|
failedMessageDecode2,
|
|
5
5
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-14vy2pac.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-n7bvwmvb.js";
|
|
13
13
|
|
|
14
14
|
// src/handlers/session.ts
|
|
15
15
|
import { Session } from "@opencode/core/session";
|