@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
package/dist/cors.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * as EventFeed from "./event-feed";
|
|
2
|
+
import { Bus } from "@radheim/core/bus";
|
|
3
|
+
import { type RadheEvent } from "@radheim/protocol/groups/event";
|
|
4
|
+
import { Cause, Context, Effect, Layer, Schema, Scope, Stream } from "effect";
|
|
5
|
+
export declare const SubscriberCapacity = 4096;
|
|
6
|
+
declare const SubscriberOverflowError_base: Schema.Class<SubscriberOverflowError, Schema.TaggedStruct<"EventFeed.SubscriberOverflow", {
|
|
7
|
+
readonly capacity: Schema.Int;
|
|
8
|
+
}>, Cause.YieldableError>;
|
|
9
|
+
export declare class SubscriberOverflowError extends SubscriberOverflowError_base {
|
|
10
|
+
}
|
|
11
|
+
declare const EncodingError_base: Schema.Class<EncodingError, Schema.TaggedStruct<"EventFeed.EncodingError", {
|
|
12
|
+
readonly eventID: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
14
|
+
};
|
|
15
|
+
readonly eventType: Schema.String;
|
|
16
|
+
readonly cause: Schema.Defect;
|
|
17
|
+
}>, Cause.YieldableError>;
|
|
18
|
+
export declare class EncodingError extends EncodingError_base {
|
|
19
|
+
}
|
|
20
|
+
export type Error = SubscriberOverflowError | EncodingError;
|
|
21
|
+
export interface Interface {
|
|
22
|
+
/** Opens a stream of encoded events, with the random ID that addresses it, e.g. to subscribe it to more events. */
|
|
23
|
+
readonly subscribe: (types?: ReadonlyArray<string>) => Effect.Effect<{
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly events: Stream.Stream<string, Error>;
|
|
26
|
+
}, never, Scope.Scope>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Adds events from outside the bus. `open` runs once for each stream, with its ID and a `send` that reaches that
|
|
30
|
+
* stream, whatever its `types`, until the stream closes along with the scope `open` gets.
|
|
31
|
+
*/
|
|
32
|
+
export interface Extension {
|
|
33
|
+
readonly open: (stream: string, send: (event: RadheEvent) => Effect.Effect<void>) => Effect.Effect<void, never, Scope.Scope>;
|
|
34
|
+
}
|
|
35
|
+
declare const Service_base: Context.ServiceClass<Service, "@radheim/server/EventFeed", Interface>;
|
|
36
|
+
export declare class Service extends Service_base {
|
|
37
|
+
}
|
|
38
|
+
export declare function frame(event: RadheEvent): string;
|
|
39
|
+
export declare const make: (observe: (subscriber: Bus.Subscriber) => Effect.Effect<Bus.Unsubscribe>, options?: {
|
|
40
|
+
readonly capacity?: number;
|
|
41
|
+
readonly encode?: (event: RadheEvent) => string;
|
|
42
|
+
readonly extensions?: ReadonlyArray<Extension>;
|
|
43
|
+
} | undefined) => Effect.Effect<Interface, never, Scope.Scope>;
|
|
44
|
+
export declare const layer: <R>(...extensions: ReadonlyArray<Effect.Effect<Extension, never, R>>) => Layer.Layer<Service, never, Bus.Service | Exclude<R, Scope.Scope>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SubscriberCapacity2,
|
|
3
|
+
SubscriberOverflowError2,
|
|
4
|
+
EncodingError2,
|
|
5
|
+
Service5,
|
|
6
|
+
frame2,
|
|
7
|
+
make5,
|
|
8
|
+
layer3,
|
|
9
|
+
exports_event_feed
|
|
10
|
+
} from "./chunks/api-7tqjsq7b.js";
|
|
11
|
+
export {
|
|
12
|
+
EncodingError2 as EncodingError,
|
|
13
|
+
exports_event_feed as EventFeed,
|
|
14
|
+
Service5 as Service,
|
|
15
|
+
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
|
+
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
|
+
frame2 as frame,
|
|
18
|
+
layer3 as layer,
|
|
19
|
+
make5 as make
|
|
20
|
+
};
|
package/dist/fetch.d.ts
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export * as ServerFetch from "./fetch";
|
|
2
|
+
import { Context, Effect, Layer } from "effect";
|
|
3
|
+
import { HttpRouter } from "effect/http";
|
|
4
|
+
import { SessionRestart } from "@radheim/core/session/execution/restart";
|
|
5
|
+
import type { LayerNode } from "@radheim/util/effect/layer-node";
|
|
6
|
+
import { type CorsOptions } from "./cors";
|
|
7
|
+
export interface BootOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Runtime-profile service replacements, applied after the standard set so later entries
|
|
10
|
+
* win — swaps services the standard graph assumes are local. See `ServerWorkerd.replacements`.
|
|
11
|
+
*/
|
|
12
|
+
readonly overrides?: LayerNode.Replacements;
|
|
13
|
+
}
|
|
14
|
+
/** `make`, also returning the built service context, for callers (such as tests) that read services from it. */
|
|
15
|
+
export declare const makeWithContext: (options?: {
|
|
16
|
+
readonly app?: {
|
|
17
|
+
readonly name?: string | undefined;
|
|
18
|
+
readonly version?: string | undefined;
|
|
19
|
+
readonly channel?: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
readonly database?: {
|
|
22
|
+
readonly path?: string | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
readonly pty?: {
|
|
25
|
+
readonly handoff?: {
|
|
26
|
+
readonly directory: string;
|
|
27
|
+
readonly instanceID: string;
|
|
28
|
+
readonly ticket: string;
|
|
29
|
+
readonly expiresAt: number;
|
|
30
|
+
} | undefined;
|
|
31
|
+
readonly root?: string | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly events?: {
|
|
34
|
+
readonly persist?: boolean | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
readonly models?: {
|
|
37
|
+
readonly url?: string | undefined;
|
|
38
|
+
readonly file?: string | undefined;
|
|
39
|
+
readonly fetch?: boolean | undefined;
|
|
40
|
+
readonly snapshot?: boolean | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
readonly fetch?: import("@radheim/util/effect/app-node-platform").Fetch | undefined;
|
|
43
|
+
readonly config?: {
|
|
44
|
+
readonly directory?: string | undefined;
|
|
45
|
+
readonly project?: boolean | undefined;
|
|
46
|
+
readonly claude?: boolean | undefined;
|
|
47
|
+
readonly file?: string | undefined;
|
|
48
|
+
readonly content?: string | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
readonly instructions?: {
|
|
51
|
+
readonly claude?: boolean | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
readonly windows?: {
|
|
54
|
+
readonly gitbash?: string | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
readonly fs?: {
|
|
57
|
+
readonly filewatcher?: boolean | undefined;
|
|
58
|
+
readonly fff?: boolean | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
readonly experimental?: {
|
|
61
|
+
readonly push?: {
|
|
62
|
+
readonly relays?: readonly string[] | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
readonly hostname?: string | undefined;
|
|
66
|
+
readonly port?: number | undefined;
|
|
67
|
+
readonly password?: string | undefined;
|
|
68
|
+
readonly cors?: readonly string[] | undefined;
|
|
69
|
+
readonly simulation?: boolean | undefined;
|
|
70
|
+
} | undefined, boot?: BootOptions | undefined) => Effect.Effect<{
|
|
71
|
+
handler: (request: Request, context?: Context.Context<never> | undefined) => Promise<globalThis.Response>;
|
|
72
|
+
context: Context.Context<import("@radheim/core/shell").Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | import("@radheim/util/fs-util").FSUtil.Service | import("@radheim/util/global").Service | import("@radheim/core/database/database").Service | import("@radheim/core/app").Service | import("@radheim/core/credential").Service | import("@radheim/core/kv").Service | import("@radheim/core/wellknown").Service | import("@radheim/core/session/instruction-entry").Service | import("@radheim/core/job").Service | import("@radheim/core/machine/identity").Service | import("@radheim/core/machine/machines").Service | import("@radheim/core/workspace").Service | import("@radheim/core/codemode/api").Service | import("@radheim/core/permission/saved").Service | import("@radheim/core/location-service-map").Service | import("@radheim/core/persistent-pty/index").Service | import("@radheim/core/session").Service | import("@radheim/core/automation").Service | import("@radheim/core/push/list").Service | import("@radheim/core/push/sender").Service | import("@radheim/core/worktree").Service | import("@radheim/core/blob-store").Service | import("@radheim/core/session/search-build").Service | import("@radheim/core/video-generation").Service | import("@radheim/core/experimental/browser-tunnel").Service | import("@radheim/core/plugin/sdk").Service | import("@radheim/core/plugin/update").Service | import("@radheim/core/instance").Service | import("@radheim/core/bus").Service | import("@radheim/core/project").Service | SessionRestart.Service | import("@radheim/core/pty/ticket").Service | import("@radheim/core/session/transfer").Service | import("@radheim/core/location-activity").Service | import("@radheim/core/filesystem/file-watch").Service | import("./space-store").Service | import("./pairing").Service | import("./handlers/machine").MachinesFlag.Service>;
|
|
73
|
+
}, Error, import("effect/Scope").Scope>;
|
|
74
|
+
/** What a served handler runs in front of the routes: cross-site browser requests get 403, then CORS. */
|
|
75
|
+
export declare const middleware: (options: CorsOptions) => <E, R>(app: Effect.Effect<import("effect/http/HttpServerResponse").HttpServerResponse, E, R | import("effect/http/HttpServerRequest").HttpServerRequest>) => Effect.Effect<import("effect/http/HttpServerResponse").HttpServerResponse, E, R | import("effect/http/HttpServerRequest").HttpServerRequest>;
|
|
76
|
+
/**
|
|
77
|
+
* Builds a route layer (`createRoutes` or `createEmbeddedRoutes`) in the current Scope. Shared with the SDK's
|
|
78
|
+
* embedded host so both serve the same graph.
|
|
79
|
+
*/
|
|
80
|
+
export declare const build: <A, E, R>(routes: Layer.Layer<A, E, R>) => Effect.Effect<Context.Context<A>, E, import("effect/Scope").Scope | Exclude<R, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>>;
|
|
81
|
+
/**
|
|
82
|
+
* Starts serving a built route context: resumes suspended Sessions in a fiber the current Scope owns, then returns
|
|
83
|
+
* the web handler. Shared with the SDK's embedded host, which registers its plugins between `build` and `serve` so
|
|
84
|
+
* recovery never runs without them.
|
|
85
|
+
*/
|
|
86
|
+
export declare const serve: (context: Context.Context<HttpRouter.HttpRouter | SessionRestart.Service>, middleware?: ((app: ReturnType<HttpRouter.HttpRouter["asHttpEffect"]>) => ReturnType<HttpRouter.HttpRouter["asHttpEffect"]>) | undefined) => Effect.Effect<(request: Request, context?: Context.Context<never> | undefined) => Promise<globalThis.Response>, never, import("effect/Scope").Scope>;
|
|
87
|
+
/**
|
|
88
|
+
* Builds a web-standard fetch handler — `(request: Request) => Promise<Response>` — serving the
|
|
89
|
+
* same HttpApi routes as the Node server process without binding a port, owning a listener, or
|
|
90
|
+
* installing signal handlers. This is the entry for runtimes that hand requests to the embedder
|
|
91
|
+
* instead of letting it listen: workerd (Workers and Durable Objects), Deno.serve, Bun.serve, or
|
|
92
|
+
* a test harness.
|
|
93
|
+
*
|
|
94
|
+
* The application layer builds EAGERLY, inside the caller's `Scope`, before the handler is
|
|
95
|
+
* returned. Do not convert this to a lazy first-request build: on workerd, a first request that
|
|
96
|
+
* aborts mid-build interrupts the layer construction and wedges every subsequent request
|
|
97
|
+
* (Effect-TS/effect#6319 class). The embedder owns the lifecycle — closing the scope releases
|
|
98
|
+
* the application layer.
|
|
99
|
+
*
|
|
100
|
+
* Auth follows `createRoutes` semantics: `options.password` enforces Basic auth; omitting it
|
|
101
|
+
* serves unauthenticated, so an embedder without a password must front the handler with its own
|
|
102
|
+
* access control.
|
|
103
|
+
*
|
|
104
|
+
* Sessions whose execution claim was never released resume once the layer is built, exactly as
|
|
105
|
+
* the Node server process does: a runtime that dies without teardown — an evicted Durable
|
|
106
|
+
* Object leaves the same durable signature as a killed process — replays orphaned turns on the
|
|
107
|
+
* next boot, and the sweep is a no-op when nothing is suspended.
|
|
108
|
+
*/
|
|
109
|
+
export declare const make: (options?: {
|
|
110
|
+
readonly app?: {
|
|
111
|
+
readonly name?: string | undefined;
|
|
112
|
+
readonly version?: string | undefined;
|
|
113
|
+
readonly channel?: string | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
readonly database?: {
|
|
116
|
+
readonly path?: string | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
readonly pty?: {
|
|
119
|
+
readonly handoff?: {
|
|
120
|
+
readonly directory: string;
|
|
121
|
+
readonly instanceID: string;
|
|
122
|
+
readonly ticket: string;
|
|
123
|
+
readonly expiresAt: number;
|
|
124
|
+
} | undefined;
|
|
125
|
+
readonly root?: string | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
readonly events?: {
|
|
128
|
+
readonly persist?: boolean | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
readonly models?: {
|
|
131
|
+
readonly url?: string | undefined;
|
|
132
|
+
readonly file?: string | undefined;
|
|
133
|
+
readonly fetch?: boolean | undefined;
|
|
134
|
+
readonly snapshot?: boolean | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
readonly fetch?: import("@radheim/util/effect/app-node-platform").Fetch | undefined;
|
|
137
|
+
readonly config?: {
|
|
138
|
+
readonly directory?: string | undefined;
|
|
139
|
+
readonly project?: boolean | undefined;
|
|
140
|
+
readonly claude?: boolean | undefined;
|
|
141
|
+
readonly file?: string | undefined;
|
|
142
|
+
readonly content?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
readonly instructions?: {
|
|
145
|
+
readonly claude?: boolean | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
readonly windows?: {
|
|
148
|
+
readonly gitbash?: string | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
readonly fs?: {
|
|
151
|
+
readonly filewatcher?: boolean | undefined;
|
|
152
|
+
readonly fff?: boolean | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
readonly experimental?: {
|
|
155
|
+
readonly push?: {
|
|
156
|
+
readonly relays?: readonly string[] | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
readonly hostname?: string | undefined;
|
|
160
|
+
readonly port?: number | undefined;
|
|
161
|
+
readonly password?: string | undefined;
|
|
162
|
+
readonly cors?: readonly string[] | undefined;
|
|
163
|
+
readonly simulation?: boolean | undefined;
|
|
164
|
+
} | undefined, boot?: BootOptions | undefined) => Effect.Effect<(request: Request, context?: Context.Context<never> | undefined) => Promise<globalThis.Response>, Error, import("effect/Scope").Scope>;
|
package/dist/fetch.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeWithContext2,
|
|
3
|
+
middleware2,
|
|
4
|
+
build2,
|
|
5
|
+
serve3,
|
|
6
|
+
make4,
|
|
7
|
+
exports_fetch
|
|
8
|
+
} from "./chunks/api-61ndsq4a.js";
|
|
9
|
+
import"./chunks/api-8tn84h85.js";
|
|
10
|
+
import"./chunks/api-azwdvyh3.js";
|
|
11
|
+
import"./chunks/api-kvefct3s.js";
|
|
12
|
+
import"./chunks/api-qft4mah5.js";
|
|
13
|
+
import"./chunks/api-bxwfazps.js";
|
|
14
|
+
import"./chunks/api-bctzdhd7.js";
|
|
15
|
+
import"./chunks/api-ygxfyj7m.js";
|
|
16
|
+
import"./chunks/api-z3ybfekq.js";
|
|
17
|
+
import"./chunks/api-31hzmefh.js";
|
|
18
|
+
import"./chunks/api-kb431qm0.js";
|
|
19
|
+
import"./chunks/api-fhp54bwg.js";
|
|
20
|
+
import"./chunks/api-djs9m6v0.js";
|
|
21
|
+
import"./chunks/api-fq7f3wrn.js";
|
|
22
|
+
import"./chunks/api-d8rk8yaw.js";
|
|
23
|
+
import"./chunks/api-1mn3274c.js";
|
|
24
|
+
import"./chunks/api-5ggmn0t6.js";
|
|
25
|
+
import"./chunks/api-kb0k6qg1.js";
|
|
26
|
+
import"./chunks/api-b3j0kcev.js";
|
|
27
|
+
import"./chunks/api-hpgyxnbj.js";
|
|
28
|
+
import"./chunks/api-34msk99p.js";
|
|
29
|
+
import"./chunks/api-gghkbyq2.js";
|
|
30
|
+
import"./chunks/api-h8v4dbra.js";
|
|
31
|
+
import"./chunks/api-jb6q2eqf.js";
|
|
32
|
+
import"./chunks/api-8cw69z4p.js";
|
|
33
|
+
import"./chunks/api-ph6j0w88.js";
|
|
34
|
+
import"./chunks/api-qz4nw4cc.js";
|
|
35
|
+
import"./chunks/api-e4v11dgy.js";
|
|
36
|
+
import"./chunks/api-1jnx79t4.js";
|
|
37
|
+
import"./chunks/api-njzqh2v3.js";
|
|
38
|
+
import"./chunks/api-n0gqhwq7.js";
|
|
39
|
+
import"./chunks/api-zvb9sh2w.js";
|
|
40
|
+
import"./chunks/api-ns3kfwpq.js";
|
|
41
|
+
import"./chunks/api-rrsy7az3.js";
|
|
42
|
+
import"./chunks/api-vtj5wyks.js";
|
|
43
|
+
import"./chunks/api-t7f8xf56.js";
|
|
44
|
+
import"./chunks/api-nqw28mmv.js";
|
|
45
|
+
import"./chunks/api-q8azxbmk.js";
|
|
46
|
+
import"./chunks/api-wrma0ern.js";
|
|
47
|
+
import"./chunks/api-40z6h0fq.js";
|
|
48
|
+
import"./chunks/api-e2746nhp.js";
|
|
49
|
+
import"./chunks/api-xcn5yyhy.js";
|
|
50
|
+
import"./chunks/api-t2s5ghf4.js";
|
|
51
|
+
import"./chunks/api-280h8k1v.js";
|
|
52
|
+
import"./chunks/api-mzafcgd5.js";
|
|
53
|
+
import"./chunks/api-v2h85c6p.js";
|
|
54
|
+
import"./chunks/api-9bxtygz0.js";
|
|
55
|
+
import"./chunks/api-d4cyxj7e.js";
|
|
56
|
+
import"./chunks/api-trzj52xd.js";
|
|
57
|
+
import"./chunks/api-x180v472.js";
|
|
58
|
+
import"./chunks/api-wrj46kzw.js";
|
|
59
|
+
import"./chunks/api-k0fc7y6c.js";
|
|
60
|
+
import"./chunks/api-238wcyzf.js";
|
|
61
|
+
import"./chunks/api-xthc02cw.js";
|
|
62
|
+
import"./chunks/api-fpzegjvk.js";
|
|
63
|
+
import"./chunks/api-8sb6qqpn.js";
|
|
64
|
+
import"./chunks/api-f6955nmc.js";
|
|
65
|
+
import"./chunks/api-5fr63cjn.js";
|
|
66
|
+
import"./chunks/api-bnpt5zxx.js";
|
|
67
|
+
import"./chunks/api-9qr3r2v1.js";
|
|
68
|
+
import"./chunks/api-t32e1bbt.js";
|
|
69
|
+
import"./chunks/api-11hx8jza.js";
|
|
70
|
+
import"./chunks/api-7tqjsq7b.js";
|
|
71
|
+
import"./chunks/api-0q8mvh3b.js";
|
|
72
|
+
import"./chunks/api-ghyd9ren.js";
|
|
73
|
+
export {
|
|
74
|
+
exports_fetch as ServerFetch,
|
|
75
|
+
build2 as build,
|
|
76
|
+
make4 as make,
|
|
77
|
+
makeWithContext2 as makeWithContext,
|
|
78
|
+
middleware2 as middleware,
|
|
79
|
+
serve3 as serve
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AgentHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.agent">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentHandler2
|
|
3
|
+
} from "../chunks/api-mzafcgd5.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
|
+
AgentHandler2 as AgentHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Artifact } from "@radheim/core/artifact";
|
|
2
|
+
import { KV } from "@radheim/core/kv";
|
|
3
|
+
import { Location } from "@radheim/core/location";
|
|
4
|
+
import { LocationServiceMap } from "@radheim/core/location-service-map";
|
|
5
|
+
import { Session } from "@radheim/core/session";
|
|
6
|
+
import { Effect } from "effect";
|
|
7
|
+
import { type HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
8
|
+
/** `artifacts.*` in the `server.experimental` group. Every route needs experimental.artifacts in the resolved Location. */
|
|
9
|
+
export declare const makeArtifact: Effect.Effect<{
|
|
10
|
+
providers: (query: {
|
|
11
|
+
readonly location?: {
|
|
12
|
+
readonly directory?: string;
|
|
13
|
+
};
|
|
14
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
15
|
+
location: Location.Info;
|
|
16
|
+
data: readonly Artifact.Provider[];
|
|
17
|
+
}, never, never>;
|
|
18
|
+
list: (query: {
|
|
19
|
+
readonly location?: {
|
|
20
|
+
readonly directory?: string;
|
|
21
|
+
};
|
|
22
|
+
readonly sessionID?: Session.ID;
|
|
23
|
+
readonly provider?: Artifact.ProviderID;
|
|
24
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
25
|
+
location: Location.Info;
|
|
26
|
+
data: readonly Artifact.Info[];
|
|
27
|
+
}, never, never>;
|
|
28
|
+
create: (query: {
|
|
29
|
+
readonly location?: {
|
|
30
|
+
readonly directory?: string;
|
|
31
|
+
};
|
|
32
|
+
}, payload: Artifact.CreateInput, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
33
|
+
location: Location.Info;
|
|
34
|
+
data: Artifact.Info;
|
|
35
|
+
}, never, never>;
|
|
36
|
+
get: (artifactID: Artifact.ID, query: {
|
|
37
|
+
readonly location?: {
|
|
38
|
+
readonly directory?: string;
|
|
39
|
+
};
|
|
40
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
41
|
+
location: Location.Info;
|
|
42
|
+
data: Artifact.Content;
|
|
43
|
+
}, never, never>;
|
|
44
|
+
update: (artifactID: Artifact.ID, query: {
|
|
45
|
+
readonly location?: {
|
|
46
|
+
readonly directory?: string;
|
|
47
|
+
};
|
|
48
|
+
}, payload: Artifact.UpdateInput, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<{
|
|
49
|
+
location: Location.Info;
|
|
50
|
+
data: Artifact.Info;
|
|
51
|
+
}, never, never>;
|
|
52
|
+
remove: (artifactID: Artifact.ID, query: {
|
|
53
|
+
readonly location?: {
|
|
54
|
+
readonly directory?: string;
|
|
55
|
+
};
|
|
56
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<void, never, never>;
|
|
57
|
+
view: (artifactID: Artifact.ID, query: {
|
|
58
|
+
readonly location?: {
|
|
59
|
+
readonly directory?: string;
|
|
60
|
+
};
|
|
61
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, never>;
|
|
62
|
+
}, never, KV.Service | LocationServiceMap.Service | Session.Service>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Automation } from "@radheim/core/automation";
|
|
2
|
+
import { AutomationNotFoundError, ForbiddenError, InvalidRequestError } from "@radheim/protocol/errors";
|
|
3
|
+
import type { CreatePayload, ListQuery } from "@radheim/protocol/groups/automation";
|
|
4
|
+
import { Effect } from "effect";
|
|
5
|
+
/** `automation.*` in the `server.experimental` group. Every route requires automations to be enabled where it runs. */
|
|
6
|
+
export declare const makeAutomation: Effect.Effect<{
|
|
7
|
+
create: (payload: CreatePayload) => Effect.Effect<{
|
|
8
|
+
data: Automation.Info;
|
|
9
|
+
}, ForbiddenError | InvalidRequestError | import("@radheim/protocol/errors").SessionNotFoundError, never>;
|
|
10
|
+
list: (query: ListQuery) => Effect.Effect<{
|
|
11
|
+
data: Automation.Info[];
|
|
12
|
+
}, ForbiddenError | InvalidRequestError | import("@radheim/protocol/errors").SessionNotFoundError, never>;
|
|
13
|
+
get: (id: Automation.ID) => Effect.Effect<{
|
|
14
|
+
data: Automation.Info;
|
|
15
|
+
}, AutomationNotFoundError | ForbiddenError, never>;
|
|
16
|
+
pause: (id: Automation.ID) => Effect.Effect<{
|
|
17
|
+
data: Automation.Info;
|
|
18
|
+
}, AutomationNotFoundError | ForbiddenError, never>;
|
|
19
|
+
resume: (id: Automation.ID) => Effect.Effect<{
|
|
20
|
+
data: Automation.Info;
|
|
21
|
+
}, AutomationNotFoundError | ForbiddenError, never>;
|
|
22
|
+
remove: (id: Automation.ID) => Effect.Effect<void, AutomationNotFoundError | ForbiddenError, never>;
|
|
23
|
+
}, never, Automation.Service>;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { BlobStore } from "@radheim/core/blob-store";
|
|
2
|
+
import { Session } from "@radheim/core/session";
|
|
3
|
+
import { BlobNotFoundError, InvalidCursorError, InvalidRequestError, ServiceUnavailableError } from "@radheim/protocol/errors";
|
|
4
|
+
import { Effect } from "effect";
|
|
5
|
+
import { type HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
6
|
+
/** `blob.*` in the `server.experimental` group. */
|
|
7
|
+
export declare const makeBlob: Effect.Effect<{
|
|
8
|
+
list: (query: {
|
|
9
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
10
|
+
readonly limit?: number | undefined;
|
|
11
|
+
readonly cursor?: (string & import("effect/Brand").Brand<"Blob.ListCursor">) | undefined;
|
|
12
|
+
}) => Effect.Effect<{
|
|
13
|
+
readonly data: readonly BlobStore.Info[];
|
|
14
|
+
readonly cursor: {
|
|
15
|
+
readonly previous?: BlobStore.ListCursor;
|
|
16
|
+
readonly next?: BlobStore.ListCursor;
|
|
17
|
+
};
|
|
18
|
+
}, InvalidCursorError, never>;
|
|
19
|
+
create: (query: {
|
|
20
|
+
readonly name?: string | undefined;
|
|
21
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
22
|
+
}, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, InvalidRequestError | ServiceUnavailableError | import("@radheim/protocol/errors").SessionNotFoundError, never>;
|
|
23
|
+
get: (id: string & import("effect/Brand").Brand<"Blob.ID">) => Effect.Effect<{
|
|
24
|
+
data: {
|
|
25
|
+
readonly id: string & import("effect/Brand").Brand<"Blob.ID">;
|
|
26
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
27
|
+
readonly mime: string;
|
|
28
|
+
readonly bytes: number;
|
|
29
|
+
readonly name?: string | undefined;
|
|
30
|
+
readonly metadata?: {
|
|
31
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly time: {
|
|
34
|
+
readonly created: number;
|
|
35
|
+
readonly updated: number;
|
|
36
|
+
};
|
|
37
|
+
readonly type: "image";
|
|
38
|
+
readonly size?: {
|
|
39
|
+
readonly width: number;
|
|
40
|
+
readonly height: number;
|
|
41
|
+
} | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
readonly id: string & import("effect/Brand").Brand<"Blob.ID">;
|
|
44
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
45
|
+
readonly mime: string;
|
|
46
|
+
readonly bytes: number;
|
|
47
|
+
readonly name?: string | undefined;
|
|
48
|
+
readonly metadata?: {
|
|
49
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
50
|
+
} | undefined;
|
|
51
|
+
readonly time: {
|
|
52
|
+
readonly created: number;
|
|
53
|
+
readonly updated: number;
|
|
54
|
+
};
|
|
55
|
+
readonly type: "video";
|
|
56
|
+
readonly size?: {
|
|
57
|
+
readonly width: number;
|
|
58
|
+
readonly height: number;
|
|
59
|
+
} | undefined;
|
|
60
|
+
readonly durationMs?: number | undefined;
|
|
61
|
+
} | {
|
|
62
|
+
readonly id: string & import("effect/Brand").Brand<"Blob.ID">;
|
|
63
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
64
|
+
readonly mime: string;
|
|
65
|
+
readonly bytes: number;
|
|
66
|
+
readonly name?: string | undefined;
|
|
67
|
+
readonly metadata?: {
|
|
68
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
69
|
+
} | undefined;
|
|
70
|
+
readonly time: {
|
|
71
|
+
readonly created: number;
|
|
72
|
+
readonly updated: number;
|
|
73
|
+
};
|
|
74
|
+
readonly type: "audio";
|
|
75
|
+
readonly durationMs?: number | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
readonly id: string & import("effect/Brand").Brand<"Blob.ID">;
|
|
78
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
79
|
+
readonly mime: string;
|
|
80
|
+
readonly bytes: number;
|
|
81
|
+
readonly name?: string | undefined;
|
|
82
|
+
readonly metadata?: {
|
|
83
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
84
|
+
} | undefined;
|
|
85
|
+
readonly time: {
|
|
86
|
+
readonly created: number;
|
|
87
|
+
readonly updated: number;
|
|
88
|
+
};
|
|
89
|
+
readonly type: "file";
|
|
90
|
+
};
|
|
91
|
+
}, BlobNotFoundError, never>;
|
|
92
|
+
content: (id: string & import("effect/Brand").Brand<"Blob.ID">, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, BlobNotFoundError, never>;
|
|
93
|
+
update: (id: string & import("effect/Brand").Brand<"Blob.ID">, payload: {
|
|
94
|
+
readonly name?: string | undefined;
|
|
95
|
+
readonly metadata?: {
|
|
96
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}) => Effect.Effect<{
|
|
99
|
+
data: {
|
|
100
|
+
readonly id: string & import("effect/Brand").Brand<"Blob.ID">;
|
|
101
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
102
|
+
readonly mime: string;
|
|
103
|
+
readonly bytes: number;
|
|
104
|
+
readonly name?: string | undefined;
|
|
105
|
+
readonly metadata?: {
|
|
106
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
107
|
+
} | undefined;
|
|
108
|
+
readonly time: {
|
|
109
|
+
readonly created: number;
|
|
110
|
+
readonly updated: number;
|
|
111
|
+
};
|
|
112
|
+
readonly type: "image";
|
|
113
|
+
readonly size?: {
|
|
114
|
+
readonly width: number;
|
|
115
|
+
readonly height: number;
|
|
116
|
+
} | undefined;
|
|
117
|
+
} | {
|
|
118
|
+
readonly id: string & import("effect/Brand").Brand<"Blob.ID">;
|
|
119
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
120
|
+
readonly mime: string;
|
|
121
|
+
readonly bytes: number;
|
|
122
|
+
readonly name?: string | undefined;
|
|
123
|
+
readonly metadata?: {
|
|
124
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
125
|
+
} | undefined;
|
|
126
|
+
readonly time: {
|
|
127
|
+
readonly created: number;
|
|
128
|
+
readonly updated: number;
|
|
129
|
+
};
|
|
130
|
+
readonly type: "video";
|
|
131
|
+
readonly size?: {
|
|
132
|
+
readonly width: number;
|
|
133
|
+
readonly height: number;
|
|
134
|
+
} | undefined;
|
|
135
|
+
readonly durationMs?: number | undefined;
|
|
136
|
+
} | {
|
|
137
|
+
readonly id: string & import("effect/Brand").Brand<"Blob.ID">;
|
|
138
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
139
|
+
readonly mime: string;
|
|
140
|
+
readonly bytes: number;
|
|
141
|
+
readonly name?: string | undefined;
|
|
142
|
+
readonly metadata?: {
|
|
143
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
144
|
+
} | undefined;
|
|
145
|
+
readonly time: {
|
|
146
|
+
readonly created: number;
|
|
147
|
+
readonly updated: number;
|
|
148
|
+
};
|
|
149
|
+
readonly type: "audio";
|
|
150
|
+
readonly durationMs?: number | undefined;
|
|
151
|
+
} | {
|
|
152
|
+
readonly id: string & import("effect/Brand").Brand<"Blob.ID">;
|
|
153
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
154
|
+
readonly mime: string;
|
|
155
|
+
readonly bytes: number;
|
|
156
|
+
readonly name?: string | undefined;
|
|
157
|
+
readonly metadata?: {
|
|
158
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
159
|
+
} | undefined;
|
|
160
|
+
readonly time: {
|
|
161
|
+
readonly created: number;
|
|
162
|
+
readonly updated: number;
|
|
163
|
+
};
|
|
164
|
+
readonly type: "file";
|
|
165
|
+
};
|
|
166
|
+
}, BlobNotFoundError | InvalidRequestError, never>;
|
|
167
|
+
remove: (id: string & import("effect/Brand").Brand<"Blob.ID">) => Effect.Effect<void, BlobNotFoundError, never>;
|
|
168
|
+
}, never, Session.Service | BlobStore.Service>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CommandHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.command">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CommandHandler2
|
|
3
|
+
} from "../chunks/api-trzj52xd.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
|
+
CommandHandler2 as CommandHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ConfigHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.config">, never, import("@radheim/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("@radheim/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConfigHandler2
|
|
3
|
+
} from "../chunks/api-x180v472.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
|
+
ConfigHandler2 as ConfigHandler
|
|
11
|
+
};
|