@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 17 lines 762 Bytes
Raw
1 import * as agentcore from "@distilled.cloud/aws/bedrock-agentcore";
2 import * as Layer from "effect/Layer";
3 import { makeAgentCoreHttpBinding } from "./BindingHttp.ts";
4 import type { BrowserCustom } from "./BrowserCustom.ts";
5 import { SaveBrowserSessionProfile } from "./SaveBrowserSessionProfile.ts";
6
7 export const SaveBrowserSessionProfileHttp = Layer.effect(
8 SaveBrowserSessionProfile,
9 makeAgentCoreHttpBinding({
10 tag: "AWS.BedrockAgentCore.SaveBrowserSessionProfile",
11 operation: agentcore.saveBrowserSessionProfile,
12 actions: ["bedrock-agentcore:SaveBrowserSessionProfile"],
13 requestKey: "browserIdentifier",
14 identifier: (browser: BrowserCustom) => browser.browserId,
15 arns: (browser: BrowserCustom) => [browser.browserArn],
16 }),
17 );