The best way to control Claude Code, Codex and more from any computer or phone

main
ts 13 lines 542 Bytes
Raw
1 import * as Context from "effect/Context";
2 import * as Layer from "effect/Layer";
3
4 import * as PayloadSigner from "../auth/PayloadSigner.ts";
5 import type * as ServerSecretStore from "../auth/ServerSecretStore.ts";
6
7 /** Signs asset and attachment-upload URLs; both share one key. */
8 export class AssetSigner extends Context.Service<
9 AssetSigner,
10 PayloadSigner.PayloadSigner<ServerSecretStore.SecretStoreError>
11 >()("t3/assets/AssetSigner") {}
12
13 export const layer = Layer.effect(AssetSigner, PayloadSigner.make("asset-access-signing-key"));