Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(cua): let agents use your signed-in browser tabs on any host #16532

Draftjuliusmarmingewants to merge 1 commit intot3code/cua/5-pip fromrefs/pull/16532/headopened View on GitHub

Showing 44 changed files with 88 additions and 1 deletion (loading 41).

x
0 of 44 viewed, 44 left
3 additions and 0 deletionsapps/server/src/auth/RpcAuthorization.tsModified
View file
@@ -68,6 +68,9 @@
[WS_METHODS.serverGetConfig]: AuthOrchestrationReadScope,
[WS_METHODS.serverGetNpmRelease]: AuthOrchestrationReadScope,
[WS_METHODS.serverCheckComputerUse]: AuthOrchestrationReadScope,
+ // Operate: the check reads the host's browser profiles; the action installs a tool.
+ [WS_METHODS.serverCheckBrowserTabs]: AuthOrchestrationOperateScope,
+ [WS_METHODS.serverRunBrowserTabsAction]: AuthOrchestrationOperateScope,
[WS_METHODS.serverRefreshProviders]: AuthOrchestrationReadScope,
[WS_METHODS.serverUpdateProvider]: AuthProvidersManageScope,
[WS_METHODS.providerAuthStart]: AuthProvidersManageScope,
21 additions and 1 deletionapps/server/src/device/DeviceToolchain.tsModified
View file
@@ -49,7 +49,7 @@
​
-interface ToolSpec {
+export interface ToolSpec {
readonly name: string;
readonly version: string;
readonly entry: ReadonlyArray<string>;
@@ -208,6 +208,26 @@
export const ensureAgentDevice = (baseDir: string) =>
ensureTool(baseDir, AGENT_DEVICE_SPEC, (paths) => paths.agentDevice);
​
+/** Same pinned install and lock for an npm tool outside device support. */
+export const ensurePinnedTool = Effect.fn("DeviceToolchain.ensurePinnedTool")(function* (