@opencode/server 0.0.0-dev-1361 → 0.0.0-dev-1363
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/{cors-msvebcy2.js → service-status-286nzxac.js} +8 -8
- package/dist/chunks/{cors-29nx48hm.js → service-status-29nx48hm.js} +1 -1
- package/dist/chunks/{cors-e6e4kz0w.js → service-status-39nnfjx1.js} +4 -4
- package/dist/chunks/{cors-sv3a4xc1.js → service-status-3kn3vtva.js} +13 -13
- package/dist/chunks/{cors-5pdfedjd.js → service-status-3te71694.js} +4 -4
- package/dist/chunks/{cors-8xdajgpr.js → service-status-3w2mqh28.js} +2 -2
- package/dist/chunks/{cors-fa6nnfxm.js → service-status-4z6dd0zp.js} +37 -37
- package/dist/chunks/{cors-g23ffrnz.js → service-status-50kbksvb.js} +2 -2
- package/dist/chunks/{cors-kmwr1xw9.js → service-status-5ky8bme5.js} +3 -3
- package/dist/chunks/{cors-8nezxn08.js → service-status-6anyjjh1.js} +1 -1
- package/dist/chunks/{cors-6pm6ek88.js → service-status-6pm6ek88.js} +1 -1
- package/dist/chunks/{cors-2tmcamrc.js → service-status-7r996r31.js} +2 -2
- package/dist/chunks/{cors-8sb6qqpn.js → service-status-8sb6qqpn.js} +1 -1
- package/dist/chunks/{cors-rgbnpstw.js → service-status-8y9zssdg.js} +2 -2
- package/dist/chunks/{cors-k74zefsg.js → service-status-ar950k47.js} +1 -1
- package/dist/chunks/{cors-br4x4prt.js → service-status-br4x4prt.js} +1 -1
- package/dist/chunks/{cors-0wjm8gvs.js → service-status-c6ktqe09.js} +2 -2
- package/dist/chunks/{cors-ca564221.js → service-status-ca564221.js} +1 -1
- package/dist/chunks/{cors-yc92za0p.js → service-status-cj97w75w.js} +2 -2
- package/dist/chunks/{cors-wsvmph03.js → service-status-ddhjwr2w.js} +2 -2
- package/dist/chunks/{cors-f3gr6hfv.js → service-status-df03ef4a.js} +2 -2
- package/dist/chunks/{cors-6cmsxt3d.js → service-status-dh44mzk7.js} +6 -6
- package/dist/chunks/{cors-djr0jy89.js → service-status-djr0jy89.js} +1 -1
- package/dist/chunks/{cors-10sj2tcf.js → service-status-eacgzt6w.js} +1 -1
- package/dist/chunks/{cors-ehyp3zqd.js → service-status-ehyp3zqd.js} +1 -1
- package/dist/chunks/{cors-3cx4ac5j.js → service-status-ek3gas7h.js} +23 -26
- package/dist/chunks/{cors-8qsq6tbs.js → service-status-esvnag9e.js} +2 -2
- package/dist/chunks/{cors-exwy1kbj.js → service-status-f412ctvv.js} +2 -2
- package/dist/chunks/{cors-w6xb5z15.js → service-status-fmkwyf76.js} +91 -68
- package/dist/chunks/{cors-3xkwxcke.js → service-status-g9qy0kb1.js} +2 -2
- package/dist/chunks/{cors-hb1ty1t1.js → service-status-hhwsfbf5.js} +4 -4
- package/dist/chunks/{cors-z5c20bjd.js → service-status-hs3dbf8w.js} +7 -7
- package/dist/chunks/{cors-qq3f8fnn.js → service-status-htk4x1jk.js} +2 -2
- package/dist/chunks/{cors-j4at0y5c.js → service-status-j4at0y5c.js} +1 -1
- package/dist/chunks/{cors-javgytnb.js → service-status-javgytnb.js} +2 -2
- package/dist/chunks/{cors-whvq72as.js → service-status-jhs8rzvk.js} +3 -3
- package/dist/chunks/{cors-ka2mtp6f.js → service-status-ka2mtp6f.js} +2 -2
- package/dist/chunks/{cors-g4964mny.js → service-status-krsfryqp.js} +3 -3
- package/dist/chunks/{cors-myqk22k5.js → service-status-myqk22k5.js} +2 -2
- package/dist/chunks/{cors-v9t81kwn.js → service-status-mzs0n5xz.js} +8 -8
- package/dist/chunks/{cors-csnx1nj3.js → service-status-nfrn9zxf.js} +4 -4
- package/dist/chunks/{cors-qssmdh31.js → service-status-nmknd757.js} +4 -4
- package/dist/chunks/{cors-enx9e1dz.js → service-status-nrpq6p1a.js} +4 -4
- package/dist/chunks/{cors-rjhxbsc4.js → service-status-phgds112.js} +2 -2
- package/dist/chunks/{cors-prwd5gwt.js → service-status-r682v2h3.js} +2 -2
- package/dist/chunks/{cors-9hynp6rm.js → service-status-r6qsbz4y.js} +2 -2
- package/dist/chunks/{cors-7dkb5ks8.js → service-status-rg932pab.js} +2 -2
- package/dist/chunks/{cors-t32e1bbt.js → service-status-t32e1bbt.js} +1 -1
- package/dist/chunks/{cors-1z9qd4y2.js → service-status-t91ekvs6.js} +4 -4
- package/dist/chunks/service-status-v60tcbt5.js +49 -0
- package/dist/chunks/{cors-am27j67f.js → service-status-wjh98yw2.js} +1 -1
- package/dist/chunks/{cors-x2qy7jg1.js → service-status-x2qy7jg1.js} +1 -1
- package/dist/chunks/{cors-s0zgx365.js → service-status-y8sa9sbe.js} +2 -2
- package/dist/chunks/{cors-n2zyxnzr.js → service-status-ykr4m3zx.js} +1 -1
- package/dist/chunks/{cors-em7ed65n.js → service-status-z0v7xmc8.js} +2 -2
- package/dist/chunks/{cors-p3bbq7g3.js → service-status-z80wqx10.js} +2 -2
- package/dist/chunks/{cors-nvb61mgq.js → service-status-zgjt1dbn.js} +4 -4
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +67 -67
- 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/experimental/browser-tunnel.js +4 -4
- package/dist/handlers/flag.js +6 -6
- 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/machine.js +1 -1
- 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.d.ts +1 -1
- package/dist/handlers/persistent-pty.js +20 -20
- 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/push.js +1 -1
- 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/space.d.ts +35 -25
- package/dist/handlers/space.js +2 -2
- 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 +58 -58
- package/dist/location.js +2 -2
- 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 +5 -5
- package/dist/process.js +68 -68
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +62 -62
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +3 -3
- package/dist/space-store.d.ts +22 -9
- package/dist/space-store.js +5 -5
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +67 -67
- package/package.json +8 -8
- package/dist/chunks/cors-5fn432p6.js +0 -44
- /package/dist/chunks/{cors-017ycvbx.js → service-status-017ycvbx.js} +0 -0
- /package/dist/chunks/{cors-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{cors-bd8755ek.js → service-status-bd8755ek.js} +0 -0
- /package/dist/chunks/{cors-n26yr6pw.js → service-status-n26yr6pw.js} +0 -0
- /package/dist/chunks/{cors-q187pxxd.js → service-status-q187pxxd.js} +0 -0
- /package/dist/chunks/{cors-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{cors-qpnw2qd1.js → service-status-qpnw2qd1.js} +0 -0
- /package/dist/chunks/{cors-rqgv9x42.js → service-status-rqgv9x42.js} +0 -0
- /package/dist/chunks/{cors-xthc02cw.js → service-status-xthc02cw.js} +0 -0
- /package/dist/chunks/{cors-yc7nft6q.js → service-status-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/service-status-jhs8rzvk.js";
|
|
4
|
+
import"./chunks/service-status-ca564221.js";
|
|
5
|
+
import"./chunks/service-status-ehyp3zqd.js";
|
|
6
|
+
import"./chunks/service-status-br4x4prt.js";
|
|
7
|
+
import"./chunks/service-status-rqgv9x42.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
middleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-myqk22k5.js";
|
|
7
7
|
import {
|
|
8
8
|
withoutParentSpan2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-status-yc7nft6q.js";
|
|
10
10
|
import {
|
|
11
11
|
createRoutes2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-status-ek3gas7h.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./service-status-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/fetch.ts
|
|
18
18
|
var exports_fetch = {};
|
|
19
19
|
__export(exports_fetch, {
|
|
20
20
|
ServerFetch: () => exports_fetch,
|
|
21
|
-
make: () =>
|
|
21
|
+
make: () => make3,
|
|
22
22
|
makeWithContext: () => makeWithContext2
|
|
23
23
|
});
|
|
24
24
|
import { Context, Effect, Layer } from "effect";
|
|
@@ -30,8 +30,8 @@ var makeWithContext2 = Effect.fn("ServerFetch.makeWithContext")(function* (optio
|
|
|
30
30
|
const handler = Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(middleware2(options), HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
31
31
|
return { handler, context };
|
|
32
32
|
});
|
|
33
|
-
var
|
|
33
|
+
var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
34
34
|
return (yield* makeWithContext2(options, boot)).handler;
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export { makeWithContext2,
|
|
37
|
+
export { makeWithContext2, make3, exports_fetch };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-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: () => make2
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make2 = 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 make3 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make2, exports_service_status };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-jhs8rzvk.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./service-status-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./service-status-javgytnb.js";
|
|
11
11
|
import {
|
|
12
12
|
makeBlobGet2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./service-status-50kbksvb.js";
|
|
14
14
|
import {
|
|
15
15
|
makeBrowserTunnel2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./service-status-ka2mtp6f.js";
|
|
17
17
|
import {
|
|
18
18
|
makeAutomation2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./service-status-6pm6ek88.js";
|
|
20
20
|
import {
|
|
21
21
|
makeJob2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./service-status-x2qy7jg1.js";
|
|
23
23
|
import {
|
|
24
24
|
makeMachineLink2,
|
|
25
25
|
makeMachine2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./service-status-017ycvbx.js";
|
|
27
27
|
import {
|
|
28
28
|
makeMediaGet2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./service-status-djr0jy89.js";
|
|
30
30
|
import {
|
|
31
31
|
makePush2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./service-status-qpnw2qd1.js";
|
|
33
33
|
import {
|
|
34
34
|
makeSpace2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./service-status-v60tcbt5.js";
|
|
36
36
|
import {
|
|
37
37
|
runPtySocket2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./service-status-q187pxxd.js";
|
|
39
39
|
|
|
40
40
|
// src/handlers/persistent-pty.ts
|
|
41
41
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -69,7 +69,7 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
|
|
|
69
69
|
const machineLink = yield* makeMachineLink2;
|
|
70
70
|
const browserTunnel = yield* makeBrowserTunnel2;
|
|
71
71
|
const push = yield* makePush2;
|
|
72
|
-
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handleRaw("blob.get", (ctx) => blobGet(ctx.params.id, ctx.request)).handleRaw("browser.tunnel", (ctx) => browserTunnel(ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).handle("job.cancel", (ctx) => job.cancel(ctx.params.id)).handleRaw("machine.link", (ctx) => machineLink(ctx.request)).handle("machine.list", () => machine.list()).handle("machine.add", (ctx) => machine.add(ctx.payload)).handle("machine.remove", (ctx) => machine.remove(ctx.params.name)).handle("push.get", () => push.get()).handle("push.device.register", (ctx) => push.register(ctx.params.deviceID, ctx.payload)).handle("push.device.remove", (ctx) => push.remove(ctx.params.deviceID)).handle("push.device.update", (ctx) => push.update(ctx.params.deviceID, ctx.payload)).handle("push.device.session.set", (ctx) => push.setDeviceBell(ctx.params.deviceID, ctx.params.sessionID, ctx.payload)).handle("push.device.session.remove", (ctx) => push.removeDeviceBell(ctx.params.deviceID, ctx.params.sessionID)).handle("push.session.set", (ctx) => push.setSessionBell(ctx.params.sessionID, ctx.payload)).handle("push.session.remove", (ctx) => push.removeSessionBell(ctx.params.sessionID)).handle("push.settings.set", (ctx) => push.setSettings(ctx.payload)).handle("space.
|
|
72
|
+
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handleRaw("blob.get", (ctx) => blobGet(ctx.params.id, ctx.request)).handleRaw("browser.tunnel", (ctx) => browserTunnel(ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).handle("job.cancel", (ctx) => job.cancel(ctx.params.id)).handleRaw("machine.link", (ctx) => machineLink(ctx.request)).handle("machine.list", () => machine.list()).handle("machine.add", (ctx) => machine.add(ctx.payload)).handle("machine.remove", (ctx) => machine.remove(ctx.params.name)).handle("push.get", () => push.get()).handle("push.device.register", (ctx) => push.register(ctx.params.deviceID, ctx.payload)).handle("push.device.remove", (ctx) => push.remove(ctx.params.deviceID)).handle("push.device.update", (ctx) => push.update(ctx.params.deviceID, ctx.payload)).handle("push.device.session.set", (ctx) => push.setDeviceBell(ctx.params.deviceID, ctx.params.sessionID, ctx.payload)).handle("push.device.session.remove", (ctx) => push.removeDeviceBell(ctx.params.deviceID, ctx.params.sessionID)).handle("push.session.set", (ctx) => push.setSessionBell(ctx.params.sessionID, ctx.payload)).handle("push.session.remove", (ctx) => push.removeSessionBell(ctx.params.sessionID)).handle("push.settings.set", (ctx) => push.setSettings(ctx.payload)).handle("space.write", (ctx) => space.write(ctx.payload.changes)).handle("space.sync", (ctx) => space.sync(ctx.payload.spaces)).handle("space.subscribe", (ctx) => space.subscribe(ctx.payload)).handle("space.unsubscribe", (ctx) => space.unsubscribe(ctx.payload)).handle("space.reset", () => space.reset()).handle("artifacts.providers", (ctx) => artifact.providers(ctx.query, ctx.request)).handle("artifacts.list", (ctx) => artifact.list(ctx.query, ctx.request)).handle("artifacts.create", (ctx) => artifact.create(ctx.query, ctx.payload, ctx.request)).handle("artifacts.get", (ctx) => artifact.get(ctx.params.artifactID, ctx.query, ctx.request)).handle("artifacts.update", (ctx) => artifact.update(ctx.params.artifactID, ctx.query, ctx.payload, ctx.request)).handle("artifacts.delete", (ctx) => artifact.remove(ctx.params.artifactID, ctx.query, ctx.request)).handleRaw("artifacts.view", (ctx) => artifact.view(ctx.params.artifactID, ctx.query, ctx.request)).handle("automation.create", (ctx) => automation.create(ctx.payload)).handle("automation.list", (ctx) => automation.list(ctx.query)).handle("automation.get", (ctx) => automation.get(ctx.params.automationID)).handle("automation.pause", (ctx) => automation.pause(ctx.params.automationID)).handle("automation.resume", (ctx) => automation.resume(ctx.params.automationID)).handle("automation.delete", (ctx) => automation.remove(ctx.params.automationID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
|
|
73
73
|
return { data: yield* pty.read(ctx.params.sessionID, ctx.query.lines).pipe(mapUnavailable) };
|
|
74
74
|
})).handle("persistentPty.list", Effect.fn(function* (ctx) {
|
|
75
75
|
return { data: yield* pty.list(ctx.params.sessionID).pipe(mapUnavailable) };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/server-info.ts
|
|
6
6
|
var exports_server_info = {};
|
|
@@ -8,14 +8,14 @@ __export(exports_server_info, {
|
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
9
|
Service: () => Service3,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
|
-
layer: () =>
|
|
11
|
+
layer: () => layer3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
16
|
class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function layer3(urls, tmp, app = {}) {
|
|
19
19
|
return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
|
|
20
20
|
}
|
|
21
21
|
function connectionURLs2(value, requestedHostname) {
|
|
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export { Service3,
|
|
41
|
+
export { Service3, layer3, connectionURLs2, exports_server_info };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-jhs8rzvk.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-7r996r31.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/credential.ts
|
|
9
9
|
import { Credential } from "@opencode/core/credential";
|
|
@@ -1,111 +1,111 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-r682v2h3.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-phgds112.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-status-krsfryqp.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-status-y8sa9sbe.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./service-status-cj97w75w.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./service-status-nmknd757.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./service-status-5ky8bme5.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./service-status-zgjt1dbn.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./service-status-esvnag9e.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./service-status-8y9zssdg.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./service-status-g9qy0kb1.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./service-status-ar950k47.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
38
|
+
layer2
|
|
39
|
+
} from "./service-status-hs3dbf8w.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./service-status-hhwsfbf5.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./service-status-f412ctvv.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./service-status-z0v7xmc8.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./service-status-dh44mzk7.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./service-status-nfrn9zxf.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./service-status-t91ekvs6.js";
|
|
58
58
|
import {
|
|
59
59
|
extension2
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./service-status-fmkwyf76.js";
|
|
61
61
|
import {
|
|
62
62
|
PersistentPtyHandler2
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./service-status-3kn3vtva.js";
|
|
64
64
|
import {
|
|
65
65
|
ShellHandler2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./service-status-df03ef4a.js";
|
|
67
67
|
import {
|
|
68
68
|
ReferenceHandler2
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./service-status-rg932pab.js";
|
|
70
70
|
import {
|
|
71
71
|
LocationHandler2
|
|
72
|
-
} from "./
|
|
72
|
+
} from "./service-status-z80wqx10.js";
|
|
73
73
|
import {
|
|
74
74
|
IntegrationHandler2
|
|
75
|
-
} from "./
|
|
75
|
+
} from "./service-status-7r996r31.js";
|
|
76
76
|
import {
|
|
77
77
|
WebSearchHandler2
|
|
78
|
-
} from "./
|
|
78
|
+
} from "./service-status-htk4x1jk.js";
|
|
79
79
|
import {
|
|
80
80
|
UsageHandler2
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./service-status-ddhjwr2w.js";
|
|
82
82
|
import {
|
|
83
83
|
FlagHandler2
|
|
84
|
-
} from "./
|
|
84
|
+
} from "./service-status-r6qsbz4y.js";
|
|
85
85
|
import {
|
|
86
86
|
McpHandler2
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./service-status-nrpq6p1a.js";
|
|
88
88
|
import {
|
|
89
89
|
CredentialHandler2
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./service-status-3w2mqh28.js";
|
|
91
91
|
import {
|
|
92
92
|
ProjectHandler2
|
|
93
|
-
} from "./
|
|
93
|
+
} from "./service-status-6anyjjh1.js";
|
|
94
94
|
import {
|
|
95
95
|
WorktreeHandler2
|
|
96
|
-
} from "./
|
|
96
|
+
} from "./service-status-ykr4m3zx.js";
|
|
97
97
|
import {
|
|
98
98
|
VcsHandler2
|
|
99
|
-
} from "./
|
|
99
|
+
} from "./service-status-c6ktqe09.js";
|
|
100
100
|
import {
|
|
101
101
|
MigrationHandler2
|
|
102
|
-
} from "./
|
|
102
|
+
} from "./service-status-eacgzt6w.js";
|
|
103
103
|
import {
|
|
104
104
|
ConfigHandler2
|
|
105
|
-
} from "./
|
|
105
|
+
} from "./service-status-wjh98yw2.js";
|
|
106
106
|
|
|
107
107
|
// src/handlers.ts
|
|
108
108
|
import { Layer } from "effect";
|
|
109
|
-
var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, FlagHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(
|
|
109
|
+
var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, FlagHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer2(extension2))), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
|
|
110
110
|
|
|
111
111
|
export { handlers2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
download2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-t32e1bbt.js";
|
|
4
4
|
import {
|
|
5
5
|
parse2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-8sb6qqpn.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/blob.ts
|
|
9
9
|
import { BlobStore } from "@opencode/core/blob-store";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-rqgv9x42.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./service-status-br4x4prt.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./service-status-jhs8rzvk.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 "./service-status-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-jhs8rzvk.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
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/command.ts
|
|
9
9
|
import { Command } from "@opencode/core/command";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/usage.ts
|
|
9
9
|
import { UsageLimits } from "@opencode/core/usage-limits";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-jhs8rzvk.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-status-j4at0y5c.js";
|
|
10
10
|
import {
|
|
11
11
|
Service3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-status-3te71694.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service4
|
|
15
|
+
} from "./service-status-mzs0n5xz.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { hostname } from "node:os";
|
|
@@ -22,7 +22,7 @@ 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* Service4;
|
|
26
26
|
const auth = yield* Config2;
|
|
27
27
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
28
28
|
const info = yield* Service3;
|