@radheim/server 0.0.0-stage → 2.4.3
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.d.ts +9383 -0
- package/dist/api.js +10 -0
- package/dist/auth.d.ts +21 -0
- package/dist/auth.js +20 -0
- package/dist/chunks/api-0q8mvh3b.js +62 -0
- package/dist/chunks/api-11hx8jza.js +39 -0
- package/dist/chunks/api-1jnx79t4.js +31 -0
- package/dist/chunks/api-1mn3274c.js +57 -0
- package/dist/chunks/api-238wcyzf.js +252 -0
- package/dist/chunks/api-280h8k1v.js +198 -0
- package/dist/chunks/api-31hzmefh.js +73 -0
- package/dist/chunks/api-34msk99p.js +208 -0
- package/dist/chunks/api-40z6h0fq.js +20 -0
- package/dist/chunks/api-5fr63cjn.js +27 -0
- package/dist/chunks/api-5ggmn0t6.js +348 -0
- package/dist/chunks/api-61ndsq4a.js +45 -0
- package/dist/chunks/api-7tqjsq7b.js +101 -0
- package/dist/chunks/api-8cw69z4p.js +15 -0
- package/dist/chunks/api-8sb6qqpn.js +28 -0
- package/dist/chunks/api-8tn84h85.js +39 -0
- package/dist/chunks/api-9bxtygz0.js +48 -0
- package/dist/chunks/api-9qr3r2v1.js +66 -0
- package/dist/chunks/api-9rqn6x4v.js +16 -0
- package/dist/chunks/api-azwdvyh3.js +4 -0
- package/dist/chunks/api-b3j0kcev.js +30 -0
- package/dist/chunks/api-bctzdhd7.js +21 -0
- package/dist/chunks/api-bnpt5zxx.js +36 -0
- package/dist/chunks/api-bxwfazps.js +90 -0
- package/dist/chunks/api-d4cyxj7e.js +80 -0
- package/dist/chunks/api-d8rk8yaw.js +20 -0
- package/dist/chunks/api-djs9m6v0.js +42 -0
- package/dist/chunks/api-e2746nhp.js +17 -0
- package/dist/chunks/api-e4v11dgy.js +58 -0
- package/dist/chunks/api-e6e4kz0w.js +23 -0
- package/dist/chunks/api-f6955nmc.js +19 -0
- package/dist/chunks/api-fhp54bwg.js +39 -0
- package/dist/chunks/api-fpzegjvk.js +35 -0
- package/dist/chunks/api-fq7f3wrn.js +13 -0
- package/dist/chunks/api-gg2tbqc5.js +270 -0
- package/dist/chunks/api-gghkbyq2.js +189 -0
- package/dist/chunks/api-ghyd9ren.js +32 -0
- package/dist/chunks/api-h8v4dbra.js +49 -0
- package/dist/chunks/api-hpgyxnbj.js +92 -0
- package/dist/chunks/api-jb6q2eqf.js +70 -0
- package/dist/chunks/api-k0fc7y6c.js +219 -0
- package/dist/chunks/api-kb0k6qg1.js +35 -0
- package/dist/chunks/api-kb431qm0.js +31 -0
- package/dist/chunks/api-kvefct3s.js +215 -0
- package/dist/chunks/api-mzafcgd5.js +23 -0
- package/dist/chunks/api-n0gqhwq7.js +109 -0
- package/dist/chunks/api-njzqh2v3.js +22 -0
- package/dist/chunks/api-nqw28mmv.js +62 -0
- package/dist/chunks/api-ns3kfwpq.js +48 -0
- package/dist/chunks/api-ph6j0w88.js +29 -0
- package/dist/chunks/api-q8azxbmk.js +38 -0
- package/dist/chunks/api-qft4mah5.js +33 -0
- package/dist/chunks/api-qz4nw4cc.js +130 -0
- package/dist/chunks/api-rrsy7az3.js +69 -0
- package/dist/chunks/api-t2s5ghf4.js +91 -0
- package/dist/chunks/api-t32e1bbt.js +32 -0
- package/dist/chunks/api-t7f8xf56.js +22 -0
- package/dist/chunks/api-trzj52xd.js +13 -0
- package/dist/chunks/api-v2h85c6p.js +143 -0
- package/dist/chunks/api-vtj5wyks.js +13 -0
- package/dist/chunks/api-wrj46kzw.js +41 -0
- package/dist/chunks/api-wrma0ern.js +36 -0
- package/dist/chunks/api-x180v472.js +22 -0
- package/dist/chunks/api-xcn5yyhy.js +134 -0
- package/dist/chunks/api-xthc02cw.js +6 -0
- package/dist/chunks/api-ygxfyj7m.js +111 -0
- package/dist/chunks/api-z3ybfekq.js +20 -0
- package/dist/chunks/api-zvb9sh2w.js +30 -0
- package/dist/content-headers.d.ts +13 -0
- package/dist/content-headers.js +12 -0
- package/dist/cors.d.ts +7 -0
- package/dist/cors.js +10 -0
- package/dist/event-feed.d.ts +44 -0
- package/dist/event-feed.js +20 -0
- package/dist/fetch.d.ts +164 -0
- package/dist/fetch.js +80 -0
- package/dist/handlers/agent.d.ts +1 -0
- package/dist/handlers/agent.js +11 -0
- package/dist/handlers/artifact.d.ts +62 -0
- package/dist/handlers/artifact.js +8 -0
- package/dist/handlers/automation.d.ts +23 -0
- package/dist/handlers/automation.js +7 -0
- package/dist/handlers/blob.d.ts +168 -0
- package/dist/handlers/blob.js +9 -0
- package/dist/handlers/command.d.ts +1 -0
- package/dist/handlers/command.js +11 -0
- package/dist/handlers/config.d.ts +1 -0
- package/dist/handlers/config.js +11 -0
- package/dist/handlers/credential.d.ts +4 -0
- package/dist/handlers/credential.js +12 -0
- package/dist/handlers/debug.d.ts +2 -0
- package/dist/handlers/debug.js +11 -0
- package/dist/handlers/event.d.ts +2 -0
- package/dist/handlers/event.js +12 -0
- package/dist/handlers/experimental/browser-tunnel.d.ts +11 -0
- package/dist/handlers/experimental/browser-tunnel.js +9 -0
- package/dist/handlers/flag.d.ts +1 -0
- package/dist/handlers/flag.js +11 -0
- package/dist/handlers/form.d.ts +1 -0
- package/dist/handlers/form.js +11 -0
- package/dist/handlers/fs.d.ts +2 -0
- package/dist/handlers/fs.js +13 -0
- package/dist/handlers/generate.d.ts +4 -0
- package/dist/handlers/generate.js +11 -0
- package/dist/handlers/integration.d.ts +7 -0
- package/dist/handlers/integration.js +13 -0
- package/dist/handlers/job.d.ts +73 -0
- package/dist/handlers/job.js +7 -0
- package/dist/handlers/location.d.ts +2 -0
- package/dist/handlers/location.js +11 -0
- package/dist/handlers/machine.d.ts +164 -0
- package/dist/handlers/machine.js +28 -0
- package/dist/handlers/mcp.d.ts +3 -0
- package/dist/handlers/mcp.js +13 -0
- package/dist/handlers/media.d.ts +6 -0
- package/dist/handlers/media.js +7 -0
- package/dist/handlers/message.d.ts +2 -0
- package/dist/handlers/message.js +12 -0
- package/dist/handlers/migration.d.ts +1 -0
- package/dist/handlers/migration.js +11 -0
- package/dist/handlers/model.d.ts +1 -0
- package/dist/handlers/model.js +11 -0
- package/dist/handlers/permission.d.ts +4 -0
- package/dist/handlers/permission.js +11 -0
- package/dist/handlers/persistent-pty.d.ts +3 -0
- package/dist/handlers/persistent-pty.js +25 -0
- package/dist/handlers/plugin.d.ts +2 -0
- package/dist/handlers/plugin.js +11 -0
- package/dist/handlers/project.d.ts +2 -0
- package/dist/handlers/project.js +11 -0
- package/dist/handlers/provider.d.ts +1 -0
- package/dist/handlers/provider.js +11 -0
- package/dist/handlers/pty-socket.d.ts +12 -0
- package/dist/handlers/pty-socket.js +8 -0
- package/dist/handlers/pty.d.ts +3 -0
- package/dist/handlers/pty.js +13 -0
- package/dist/handlers/push.d.ts +28 -0
- package/dist/handlers/push.js +6 -0
- package/dist/handlers/reference.d.ts +1 -0
- package/dist/handlers/reference.js +11 -0
- package/dist/handlers/rpc.d.ts +1 -0
- package/dist/handlers/rpc.js +11 -0
- package/dist/handlers/server.d.ts +4 -0
- package/dist/handlers/server.js +14 -0
- package/dist/handlers/session-error.d.ts +11 -0
- package/dist/handlers/session-error.js +14 -0
- package/dist/handlers/session.d.ts +5 -0
- package/dist/handlers/session.js +12 -0
- package/dist/handlers/shell.d.ts +1 -0
- package/dist/handlers/shell.js +11 -0
- package/dist/handlers/skill.d.ts +1 -0
- package/dist/handlers/skill.js +11 -0
- package/dist/handlers/space.d.ts +54 -0
- package/dist/handlers/space.js +7 -0
- package/dist/handlers/usage.d.ts +1 -0
- package/dist/handlers/usage.js +11 -0
- package/dist/handlers/vcs.d.ts +4 -0
- package/dist/handlers/vcs.js +11 -0
- package/dist/handlers/voice.d.ts +3 -0
- package/dist/handlers/voice.js +11 -0
- package/dist/handlers/websearch.d.ts +1 -0
- package/dist/handlers/websearch.js +11 -0
- package/dist/handlers/worktree.d.ts +2 -0
- package/dist/handlers/worktree.js +11 -0
- package/dist/handlers.d.ts +3 -0
- package/dist/handlers.js +63 -0
- package/dist/location.d.ts +28 -0
- package/dist/location.js +17 -0
- package/dist/media-uri.d.ts +6 -0
- package/dist/media-uri.js +6 -0
- package/dist/middleware/authorization.d.ts +8 -0
- package/dist/middleware/authorization.js +13 -0
- package/dist/middleware/defect-response.d.ts +2 -0
- package/dist/middleware/defect-response.js +6 -0
- package/dist/middleware/form-location.d.ts +18 -0
- package/dist/middleware/form-location.js +10 -0
- package/dist/middleware/schema-error.d.ts +3 -0
- package/dist/middleware/schema-error.js +8 -0
- package/dist/middleware/session-location.d.ts +17 -0
- package/dist/middleware/session-location.js +10 -0
- package/dist/options.d.ts +130 -0
- package/dist/options.js +55 -0
- package/dist/pairing.d.ts +13 -0
- package/dist/pairing.js +10 -0
- package/dist/process.d.ts +70 -0
- package/dist/process.js +241 -0
- package/dist/range.d.ts +6 -0
- package/dist/range.js +8 -0
- package/dist/request-site.d.ts +11 -0
- package/dist/request-site.js +11 -0
- package/dist/request-tracing.d.ts +1 -0
- package/dist/request-tracing.js +6 -0
- package/dist/routes.d.ts +54 -0
- package/dist/routes.js +69 -0
- package/dist/server-info.d.ts +14 -0
- package/dist/server-info.js +12 -0
- package/dist/service-status.d.ts +25 -0
- package/dist/service-status.js +8 -0
- package/dist/space-store.d.ts +62 -0
- package/dist/space-store.js +16 -0
- package/dist/workerd-machine-link.d.ts +107 -0
- package/dist/workerd-machine-link.js +19 -0
- package/dist/workerd.d.ts +113 -0
- package/dist/workerd.js +168 -0
- package/package.json +50 -4
- package/README.md +0 -3
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Credential } from "@radheim/core/credential";
|
|
2
|
+
import { LocationServiceMap } from "@radheim/core/location-services";
|
|
3
|
+
import { Global } from "@radheim/util/global";
|
|
4
|
+
export declare const CredentialHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.credential">, never, import("effect/http/HttpRouter").Request<"Requires", Credential.Service> | Global.Service | LocationServiceMap.Service | (import("@radheim/protocol/middleware/authorization").Authorization | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CredentialHandler2
|
|
3
|
+
} from "../chunks/api-nqw28mmv.js";
|
|
4
|
+
import"../chunks/api-280h8k1v.js";
|
|
5
|
+
import"../chunks/api-f6955nmc.js";
|
|
6
|
+
import"../chunks/api-5fr63cjn.js";
|
|
7
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
8
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
9
|
+
import"../chunks/api-ghyd9ren.js";
|
|
10
|
+
export {
|
|
11
|
+
CredentialHandler2 as CredentialHandler
|
|
12
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Global } from "@radheim/util/global";
|
|
2
|
+
export declare const DebugHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.debug">, never, Global.Service | (import("@radheim/protocol/middleware/authorization").Authorization | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware)>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DebugHandler2
|
|
3
|
+
} from "../chunks/api-q8azxbmk.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
DebugHandler2 as DebugHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { EventFeed } from "../event-feed";
|
|
2
|
+
export declare const EventHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.event">, never, EventFeed.Service | (import("@radheim/protocol/middleware/authorization").Authorization | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EventHandler2
|
|
3
|
+
} from "../chunks/api-wrma0ern.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-7tqjsq7b.js";
|
|
8
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
9
|
+
import"../chunks/api-ghyd9ren.js";
|
|
10
|
+
export {
|
|
11
|
+
EventHandler2 as EventHandler
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BrowserTunnelGateway } from "@radheim/core/experimental/browser-tunnel";
|
|
2
|
+
import { LocationServiceMap } from "@radheim/core/location-service-map";
|
|
3
|
+
import { Effect, Scope } from "effect";
|
|
4
|
+
import { type HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
5
|
+
/**
|
|
6
|
+
* Narrow experimental upgrade route for remote desktop browser streaming.
|
|
7
|
+
* Authenticates a single-use, attachment-bound ticket from `x-opencode-browser-ticket`,
|
|
8
|
+
* checks origin, upgrades to a raw binary WebSocket, and hands ownership directly to the
|
|
9
|
+
* live browser attachment. Never exposes a general TCP proxy API.
|
|
10
|
+
*/
|
|
11
|
+
export declare const makeBrowserTunnel: Effect.Effect<(request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, HttpServerRequest.HttpServerRequest>, never, Scope.Scope | LocationServiceMap.Service | BrowserTunnelGateway.Service>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FlagHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.flag">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FlagHandler2
|
|
3
|
+
} from "../chunks/api-40z6h0fq.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
FlagHandler2 as FlagHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.form">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormHandler2
|
|
3
|
+
} from "../chunks/api-e2746nhp.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
FormHandler2 as FormHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { FileWatch } from "@radheim/core/filesystem/file-watch";
|
|
2
|
+
export declare const FileSystemHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.fs">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware | FileWatch.Service>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FileSystemHandler2
|
|
3
|
+
} from "../chunks/api-xcn5yyhy.js";
|
|
4
|
+
import"../chunks/api-8sb6qqpn.js";
|
|
5
|
+
import"../chunks/api-f6955nmc.js";
|
|
6
|
+
import"../chunks/api-5fr63cjn.js";
|
|
7
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
8
|
+
import"../chunks/api-t32e1bbt.js";
|
|
9
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
10
|
+
import"../chunks/api-ghyd9ren.js";
|
|
11
|
+
export {
|
|
12
|
+
FileSystemHandler2 as FileSystemHandler
|
|
13
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { VideoGeneration } from "@radheim/core/video-generation";
|
|
2
|
+
import { LocationServiceMap } from "@radheim/core/location-services";
|
|
3
|
+
import { Global } from "@radheim/util/global";
|
|
4
|
+
export declare const GenerateHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.generate">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware | Global.Service | LocationServiceMap.Service | VideoGeneration.Service>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GenerateHandler2
|
|
3
|
+
} from "../chunks/api-t2s5ghf4.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
GenerateHandler2 as GenerateHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Integration } from "@radheim/core/integration";
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
import { InvalidRequestError } from "@radheim/protocol/errors";
|
|
4
|
+
import { WellKnown } from "@radheim/core/wellknown";
|
|
5
|
+
import { Config } from "@radheim/core/config";
|
|
6
|
+
export declare const requireConnectable: (integrationID: string & import("effect/Brand").Brand<"Integration.ID">) => Effect.Effect<undefined, InvalidRequestError, Integration.Service | Config.Service>;
|
|
7
|
+
export declare const IntegrationHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.integration">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("effect/http/HttpRouter").Request<"Requires", WellKnown.Service> | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
requireConnectable2,
|
|
3
|
+
IntegrationHandler2
|
|
4
|
+
} from "../chunks/api-280h8k1v.js";
|
|
5
|
+
import"../chunks/api-f6955nmc.js";
|
|
6
|
+
import"../chunks/api-5fr63cjn.js";
|
|
7
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
8
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
9
|
+
import"../chunks/api-ghyd9ren.js";
|
|
10
|
+
export {
|
|
11
|
+
IntegrationHandler2 as IntegrationHandler,
|
|
12
|
+
requireConnectable2 as requireConnectable
|
|
13
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Job } from "@radheim/core/job";
|
|
2
|
+
import { Session } from "@radheim/core/session";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
/** `job.*` in the `server.experimental` group. */
|
|
5
|
+
export declare const makeJob: Effect.Effect<{
|
|
6
|
+
list: (query: {
|
|
7
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
8
|
+
readonly kind?: "codemode" | "image" | "shell" | "subagent" | "video" | undefined;
|
|
9
|
+
readonly status?: "cancelled" | "completed" | "error" | "running" | undefined;
|
|
10
|
+
readonly descendants?: boolean | undefined;
|
|
11
|
+
}) => Effect.Effect<{
|
|
12
|
+
data: ({
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
15
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
16
|
+
readonly title?: string | undefined;
|
|
17
|
+
readonly time: {
|
|
18
|
+
readonly started: number;
|
|
19
|
+
readonly completed?: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
readonly kind: "shell";
|
|
22
|
+
readonly shellID: string;
|
|
23
|
+
readonly command: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
27
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
28
|
+
readonly title?: string | undefined;
|
|
29
|
+
readonly time: {
|
|
30
|
+
readonly started: number;
|
|
31
|
+
readonly completed?: number | undefined;
|
|
32
|
+
};
|
|
33
|
+
readonly kind: "subagent";
|
|
34
|
+
readonly childSessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
35
|
+
readonly agent: string;
|
|
36
|
+
readonly description: string;
|
|
37
|
+
} | {
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
40
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
41
|
+
readonly title?: string | undefined;
|
|
42
|
+
readonly time: {
|
|
43
|
+
readonly started: number;
|
|
44
|
+
readonly completed?: number | undefined;
|
|
45
|
+
};
|
|
46
|
+
readonly kind: "image";
|
|
47
|
+
readonly path: string;
|
|
48
|
+
readonly model: string;
|
|
49
|
+
} | {
|
|
50
|
+
readonly id: string;
|
|
51
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
52
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
53
|
+
readonly title?: string | undefined;
|
|
54
|
+
readonly time: {
|
|
55
|
+
readonly started: number;
|
|
56
|
+
readonly completed?: number | undefined;
|
|
57
|
+
};
|
|
58
|
+
readonly kind: "video";
|
|
59
|
+
readonly path: string;
|
|
60
|
+
} | {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
63
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
64
|
+
readonly title?: string | undefined;
|
|
65
|
+
readonly time: {
|
|
66
|
+
readonly started: number;
|
|
67
|
+
readonly completed?: number | undefined;
|
|
68
|
+
};
|
|
69
|
+
readonly kind: "codemode";
|
|
70
|
+
})[];
|
|
71
|
+
}, import("@radheim/protocol/errors").SessionNotFoundError, never>;
|
|
72
|
+
cancel: (id: string) => Effect.Effect<void, never, never>;
|
|
73
|
+
}, never, Job.Service | Session.Service>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { LocationServiceMap } from "@radheim/core/location-service-map";
|
|
2
|
+
export declare const LocationHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.location">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware | LocationServiceMap.Service>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LocationHandler2
|
|
3
|
+
} from "../chunks/api-njzqh2v3.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
LocationHandler2 as LocationHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { type WebSocket, WebSocketServer } from "@effect/platform-node-shared/NodeWS";
|
|
2
|
+
import { LocationServiceMap } from "@radheim/core/location-services";
|
|
3
|
+
import { Identity } from "@radheim/core/machine/identity";
|
|
4
|
+
import { Link } from "@radheim/core/machine/link";
|
|
5
|
+
import { Machines } from "@radheim/core/machine/machines";
|
|
6
|
+
import { ConflictError, ForbiddenError, InvalidRequestError, MachineNotFoundError, ServiceUnavailableError } from "@radheim/protocol/errors";
|
|
7
|
+
import { Global } from "@radheim/util/global";
|
|
8
|
+
import { Context, Effect, Scope } from "effect";
|
|
9
|
+
import { type HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
10
|
+
import { Socket } from "effect/socket";
|
|
11
|
+
import { IncomingMessage } from "node:http";
|
|
12
|
+
/** Handshakes in progress across the server: what strangers can hold open at once, each for at most ten seconds. */
|
|
13
|
+
export declare const MAX_HANDSHAKES = 32;
|
|
14
|
+
/** Noise's largest message, so nothing longer is ever a frame. */
|
|
15
|
+
export declare const MAX_FRAME = 65535;
|
|
16
|
+
/** Noise's authentication tag, which every frame ends with, so nothing shorter is ever a frame. */
|
|
17
|
+
export declare const MIN_FRAME = 16;
|
|
18
|
+
/**
|
|
19
|
+
* Policy violation, the code RFC 6455 gives for hiding the reason. Every close the home makes carries it and no
|
|
20
|
+
* reason: a refused handshake, a bad frame, a removed machine and a shutdown look the same.
|
|
21
|
+
*/
|
|
22
|
+
export declare const CLOSE = 1008;
|
|
23
|
+
/**
|
|
24
|
+
* Only for tests, as `Link.Fixed` is: called with the endpoint's `ws` server when it is made, so a test can count its
|
|
25
|
+
* clients and watch a socket from the home's side. Production never sets it.
|
|
26
|
+
*/
|
|
27
|
+
export declare const Watch: Context.Reference<(sockets: WebSocketServer) => void>;
|
|
28
|
+
/**
|
|
29
|
+
* Server-level `machines` flag provider. Defaults to reading `Flag.enabled("machines")` from the server's base
|
|
30
|
+
* configuration Location; workerd replaces it with `MachinesFlag.inline` so waking a Durable Object with hibernated
|
|
31
|
+
* machine sockets never boots a Location or arms `LocationActivity`'s sweep timer.
|
|
32
|
+
*/
|
|
33
|
+
export declare namespace MachinesFlag {
|
|
34
|
+
export interface Interface {
|
|
35
|
+
readonly enabled: Effect.Effect<boolean>;
|
|
36
|
+
}
|
|
37
|
+
const Service_base: Context.ServiceClass<Service, "@radheim/MachineLink/MachinesFlag", Interface>;
|
|
38
|
+
export class Service extends Service_base {
|
|
39
|
+
}
|
|
40
|
+
export const node: import("@radheim/util/effect/layer-node").Provider<Service, never, import("@radheim/util/effect/layer-node").Tag<"global">, true>;
|
|
41
|
+
export const inline: (content?: string) => import("@radheim/util/effect/layer-node").Provider<Service, never, import("@radheim/util/effect/layer-node").Tag<"global">, true>;
|
|
42
|
+
export {};
|
|
43
|
+
}
|
|
44
|
+
/** Whether the `machines` flag is on in the server's base configuration, where the video routes read theirs. */
|
|
45
|
+
export declare const machinesEnabled: Effect.Effect<Effect.Effect<boolean, never, never>, never, Global.Service | LocationServiceMap.Service>;
|
|
46
|
+
/**
|
|
47
|
+
* Upgrades a request the HTTP server took off its parser, on the endpoint's own `ws` server, and gives its `ws` socket
|
|
48
|
+
* for the scope. Closing the scope sends the close and waits until the connection is gone, dropping it if the peer has
|
|
49
|
+
* not answered within `CLOSING`: the HTTP response the route returns afterwards must find nothing to be written to.
|
|
50
|
+
*/
|
|
51
|
+
export declare const upgrade: (sockets: WebSocketServer, request: IncomingMessage) => Effect.Effect<WebSocket, Link.Closed, Scope.Scope>;
|
|
52
|
+
/** What the carrier and the keepalive use of a `ws` socket. */
|
|
53
|
+
export interface Transport {
|
|
54
|
+
readonly bufferedAmount: number;
|
|
55
|
+
/** Whether reading is stopped because enough already waits unread. Nothing the peer sends is seen meanwhile. */
|
|
56
|
+
readonly isPaused: boolean;
|
|
57
|
+
/** Calls back once the socket has taken the message, or cannot. */
|
|
58
|
+
send(message: Uint8Array, taken: () => void): void;
|
|
59
|
+
ping(): void;
|
|
60
|
+
on(event: "pong" | "ping" | "message", listener: () => void): unknown;
|
|
61
|
+
off(event: "pong" | "ping" | "message", listener: () => void): unknown;
|
|
62
|
+
/** Drops the connection at once, sending nothing more. */
|
|
63
|
+
terminate(): void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A `ws` socket as the link's carrier, read through Effect's reader. A text message ends it like a closed socket, before
|
|
67
|
+
* anything is decrypted: the caller closes the socket. Inbound memory is bounded by the socket: `ws` refuses a message
|
|
68
|
+
* over `MAX_FRAME` before buffering it, `upgrade` drops the connection on one under `MIN_FRAME`, and the reader stops
|
|
69
|
+
* reading once 64 KiB waits, so what is held is that and what one read of the connection brings, and a read that still
|
|
70
|
+
* brings more than `MAX_WAITING` ends the carrier. `send` returns once the socket has taken the message, so the link's
|
|
71
|
+
* one writer never has more than a frame waiting behind a slow peer, and it drops a socket that takes nothing at all
|
|
72
|
+
* for `STALL`.
|
|
73
|
+
*/
|
|
74
|
+
export declare const carrier: (reader: Socket.Reader, transport: Transport) => Link.Carrier;
|
|
75
|
+
/**
|
|
76
|
+
* The idle limit of a served link: pings the peer every `PING` and drops the connection once a whole interval passes
|
|
77
|
+
* with nothing from it. Its answer counts, and so does anything else it sent. While reading is paused none of that can
|
|
78
|
+
* be seen, so an interval is held against the peer only if reading was paused at neither end of it. That covers a
|
|
79
|
+
* pause in between as well: reading pauses on a message, and a message is the peer heard.
|
|
80
|
+
*/
|
|
81
|
+
export declare const keepalive: (transport: Transport) => Effect.Effect<void, never, never>;
|
|
82
|
+
/**
|
|
83
|
+
* `machine.link` in the `server.experimental` group: the WebSocket where a machine's link lands. Anyone who can reach
|
|
84
|
+
* the server can open it, and only the link's handshake gets past it. One scope per connection holds the socket and the
|
|
85
|
+
* link's fibers, and closing it is the only way a connection ends, whatever ended it. The first request shaped like a
|
|
86
|
+
* link upgrade reads the flag from the server's base configuration, which loads that configuration once even when the
|
|
87
|
+
* flag is off; only a GET WebSocket upgrade to exactly this path does.
|
|
88
|
+
*/
|
|
89
|
+
export declare const makeMachineLink: Effect.Effect<(request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, HttpServerRequest.HttpServerRequest>, never, Scope.Scope | Global.Service | Identity.Service | Machines.Service | LocationServiceMap.Service>;
|
|
90
|
+
/**
|
|
91
|
+
* `machine.*` HTTP routes in the `server.experimental` group. Every route needs the `machines` flag.
|
|
92
|
+
*
|
|
93
|
+
* The home's Iroh endpoint is bound the first time it is needed and kept for the routes' scope: when a join string is
|
|
94
|
+
* made, and at start when the flag is on and there are machines to come back. Until then the binding is not imported.
|
|
95
|
+
* Without it, logged once, join strings carry only their URLs.
|
|
96
|
+
*/
|
|
97
|
+
export declare const makeMachine: Effect.Effect<{
|
|
98
|
+
list: () => Effect.Effect<{
|
|
99
|
+
data: readonly {
|
|
100
|
+
readonly id: string;
|
|
101
|
+
readonly status: {
|
|
102
|
+
readonly type: "unpaired";
|
|
103
|
+
} | {
|
|
104
|
+
readonly type: "offline";
|
|
105
|
+
} | {
|
|
106
|
+
readonly type: "incompatible";
|
|
107
|
+
readonly reason: {
|
|
108
|
+
readonly type: "protocol-mismatch";
|
|
109
|
+
readonly worker: number;
|
|
110
|
+
readonly server: number;
|
|
111
|
+
} | {
|
|
112
|
+
readonly type: "protocol-error";
|
|
113
|
+
};
|
|
114
|
+
} | {
|
|
115
|
+
readonly type: "online";
|
|
116
|
+
readonly os: string;
|
|
117
|
+
readonly arch: string;
|
|
118
|
+
readonly version?: string | undefined;
|
|
119
|
+
readonly connection?: {
|
|
120
|
+
readonly type: "websocket";
|
|
121
|
+
} | {
|
|
122
|
+
readonly type: "iroh";
|
|
123
|
+
readonly route?: {
|
|
124
|
+
readonly path: "direct" | "relayed";
|
|
125
|
+
readonly rtt: number;
|
|
126
|
+
} | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
};
|
|
129
|
+
}[];
|
|
130
|
+
}, ForbiddenError, never>;
|
|
131
|
+
add: (payload: {
|
|
132
|
+
readonly name: string;
|
|
133
|
+
readonly reach: readonly {
|
|
134
|
+
readonly type: "url";
|
|
135
|
+
readonly url: string;
|
|
136
|
+
}[];
|
|
137
|
+
readonly replace?: boolean | undefined;
|
|
138
|
+
}) => Effect.Effect<{
|
|
139
|
+
data: {
|
|
140
|
+
name: string & import("effect/Brand").Brand<"Environment.ID">;
|
|
141
|
+
join: string;
|
|
142
|
+
expires: number;
|
|
143
|
+
reach: ({
|
|
144
|
+
readonly type: "url";
|
|
145
|
+
readonly url: string;
|
|
146
|
+
} | {
|
|
147
|
+
readonly type: "iroh";
|
|
148
|
+
})[];
|
|
149
|
+
};
|
|
150
|
+
}, ConflictError | ForbiddenError | InvalidRequestError | MachineNotFoundError, never>;
|
|
151
|
+
remove: (name: string) => Effect.Effect<void, ForbiddenError | MachineNotFoundError, never>;
|
|
152
|
+
update: (name: string, payload: {
|
|
153
|
+
readonly version?: string | undefined;
|
|
154
|
+
readonly mode?: "drain" | "force" | undefined;
|
|
155
|
+
}) => Effect.Effect<{
|
|
156
|
+
data: {
|
|
157
|
+
version: string;
|
|
158
|
+
state: "downloading" | "draining" | "restarting" | "up-to-date";
|
|
159
|
+
runningProcesses?: number | undefined;
|
|
160
|
+
activeForwards?: number | undefined;
|
|
161
|
+
machine: string;
|
|
162
|
+
};
|
|
163
|
+
}, ConflictError | ForbiddenError | InvalidRequestError | MachineNotFoundError | ServiceUnavailableError, never>;
|
|
164
|
+
}, never, Scope.Scope | Global.Service | Identity.Service | Machines.Service | LocationServiceMap.Service>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MAX_HANDSHAKES2,
|
|
3
|
+
MAX_FRAME2,
|
|
4
|
+
MIN_FRAME2,
|
|
5
|
+
CLOSE2,
|
|
6
|
+
Watch2,
|
|
7
|
+
MachinesFlag2,
|
|
8
|
+
machinesEnabled2,
|
|
9
|
+
upgrade2,
|
|
10
|
+
carrier3,
|
|
11
|
+
keepalive2,
|
|
12
|
+
makeMachineLink2,
|
|
13
|
+
makeMachine2
|
|
14
|
+
} from "../chunks/api-238wcyzf.js";
|
|
15
|
+
export {
|
|
16
|
+
CLOSE2 as CLOSE,
|
|
17
|
+
MAX_FRAME2 as MAX_FRAME,
|
|
18
|
+
MAX_HANDSHAKES2 as MAX_HANDSHAKES,
|
|
19
|
+
MIN_FRAME2 as MIN_FRAME,
|
|
20
|
+
MachinesFlag2 as MachinesFlag,
|
|
21
|
+
Watch2 as Watch,
|
|
22
|
+
carrier3 as carrier,
|
|
23
|
+
keepalive2 as keepalive,
|
|
24
|
+
machinesEnabled2 as machinesEnabled,
|
|
25
|
+
makeMachine2 as makeMachine,
|
|
26
|
+
makeMachineLink2 as makeMachineLink,
|
|
27
|
+
upgrade2 as upgrade
|
|
28
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { LocationServiceMap } from "@radheim/core/location-service-map";
|
|
2
|
+
import { PtyTicket } from "@radheim/core/pty/ticket";
|
|
3
|
+
export declare const McpHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.mcp">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware | LocationServiceMap.Service | PtyTicket.Service>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
McpHandler2
|
|
3
|
+
} from "../chunks/api-n0gqhwq7.js";
|
|
4
|
+
import"../chunks/api-zvb9sh2w.js";
|
|
5
|
+
import"../chunks/api-f6955nmc.js";
|
|
6
|
+
import"../chunks/api-5fr63cjn.js";
|
|
7
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
8
|
+
import"../chunks/api-11hx8jza.js";
|
|
9
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
10
|
+
import"../chunks/api-ghyd9ren.js";
|
|
11
|
+
export {
|
|
12
|
+
McpHandler2 as McpHandler
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Database } from "@radheim/core/database/database";
|
|
2
|
+
import { FileNotFoundError } from "@radheim/protocol/errors";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
import { type HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
5
|
+
/** `media.get` in the `server.experimental` group; serves only blobs a message or inbox item still references. */
|
|
6
|
+
export declare const makeMediaGet: Effect.Effect<(hash: string, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, FileNotFoundError, never>, never, Database.Service>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Session } from "@radheim/core/session";
|
|
2
|
+
export declare const MessageHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.message">, never, Session.Service | (import("@radheim/protocol/middleware/authorization").Authorization | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MessageHandler2
|
|
3
|
+
} from "../chunks/api-rrsy7az3.js";
|
|
4
|
+
import"../chunks/api-xthc02cw.js";
|
|
5
|
+
import"../chunks/api-f6955nmc.js";
|
|
6
|
+
import"../chunks/api-5fr63cjn.js";
|
|
7
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
8
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
9
|
+
import"../chunks/api-ghyd9ren.js";
|
|
10
|
+
export {
|
|
11
|
+
MessageHandler2 as MessageHandler
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MigrationHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.migration">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("effect/http/HttpRouter").Request<"Requires", import("@radheim/core/database/database").Service> | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MigrationHandler2
|
|
3
|
+
} from "../chunks/api-vtj5wyks.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
MigrationHandler2 as MigrationHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModelHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.model">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ModelHandler2
|
|
3
|
+
} from "../chunks/api-t7f8xf56.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
ModelHandler2 as ModelHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Instance } from "@radheim/core/instance/service";
|
|
2
|
+
import { PermissionSaved } from "@radheim/core/permission/saved";
|
|
3
|
+
import { Session } from "@radheim/core/session";
|
|
4
|
+
export declare const PermissionHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.permission">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("effect/http/HttpRouter").Request<"Requires", PermissionSaved.Service> | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware | Session.Service | Instance.Service | import("../middleware/session-location").SessionLocationMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PermissionHandler2
|
|
3
|
+
} from "../chunks/api-hpgyxnbj.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
PermissionHandler2 as PermissionHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PersistentPty } from "@radheim/core/persistent-pty";
|
|
2
|
+
import { PtyTicket } from "@radheim/core/pty/ticket";
|
|
3
|
+
export declare const PersistentPtyHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental">, never, import("@radheim/util/global").Service | import("@radheim/core/database/database").Service | import("@radheim/core/kv").Service | import("@radheim/core/job").Service | import("@radheim/core/machine/identity").Service | import("@radheim/core/machine/machines").Service | import("@radheim/core/location-service-map").Service | PersistentPty.Service | import("@radheim/core/session").Service | import("@radheim/core/automation").Service | import("@radheim/core/push/list").Service | import("@radheim/core/blob-store").Service | import("@radheim/core/experimental/browser-tunnel").Service | PtyTicket.Service | import("../space-store").Service | (import("@radheim/protocol/middleware/authorization").Authorization | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware)>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PersistentPtyHandler2
|
|
3
|
+
} from "../chunks/api-34msk99p.js";
|
|
4
|
+
import"../chunks/api-gghkbyq2.js";
|
|
5
|
+
import"../chunks/api-h8v4dbra.js";
|
|
6
|
+
import"../chunks/api-e4v11dgy.js";
|
|
7
|
+
import"../chunks/api-1jnx79t4.js";
|
|
8
|
+
import"../chunks/api-zvb9sh2w.js";
|
|
9
|
+
import"../chunks/api-ns3kfwpq.js";
|
|
10
|
+
import"../chunks/api-v2h85c6p.js";
|
|
11
|
+
import"../chunks/api-9bxtygz0.js";
|
|
12
|
+
import"../chunks/api-d4cyxj7e.js";
|
|
13
|
+
import"../chunks/api-k0fc7y6c.js";
|
|
14
|
+
import"../chunks/api-238wcyzf.js";
|
|
15
|
+
import"../chunks/api-8sb6qqpn.js";
|
|
16
|
+
import"../chunks/api-f6955nmc.js";
|
|
17
|
+
import"../chunks/api-5fr63cjn.js";
|
|
18
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
19
|
+
import"../chunks/api-t32e1bbt.js";
|
|
20
|
+
import"../chunks/api-11hx8jza.js";
|
|
21
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
22
|
+
import"../chunks/api-ghyd9ren.js";
|
|
23
|
+
export {
|
|
24
|
+
PersistentPtyHandler2 as PersistentPtyHandler
|
|
25
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PluginUpdate } from "@radheim/core/plugin/update";
|
|
2
|
+
export declare const PluginHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.plugin">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("effect/http/HttpRouter").Request<"Requires", PluginUpdate.Service> | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PluginHandler2
|
|
3
|
+
} from "../chunks/api-jb6q2eqf.js";
|
|
4
|
+
import"../chunks/api-f6955nmc.js";
|
|
5
|
+
import"../chunks/api-5fr63cjn.js";
|
|
6
|
+
import"../chunks/api-bnpt5zxx.js";
|
|
7
|
+
import"../chunks/api-0q8mvh3b.js";
|
|
8
|
+
import"../chunks/api-ghyd9ren.js";
|
|
9
|
+
export {
|
|
10
|
+
PluginHandler2 as PluginHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Project } from "@radheim/core/project";
|
|
2
|
+
export declare const ProjectHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.project">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("effect/http/HttpRouter").Request<"Requires", Project.Service> | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|