Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(cursor): support browser login for the agent SDK #12948

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 5 commits intot3code/codex-turn-mapping fromrefs/pull/12948/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 14 changed files with 112 additions and 1 deletion (loading 13).

x
0 of 14 viewed, 14 left
112 additions and 1 deletionapps/server/src/provider/Drivers/CursorDriver.test.tsModified
View file
@@ -1,9 +1,12 @@
// @effect-diagnostics nodeBuiltinImport:off
import * as NodeServices from "@effect/platform-node/NodeServices";
import { expect, it } from "@effect/vitest";
-import { ProviderInstanceId } from "@t3tools/contracts";
+import { ProviderInstanceId, ProviderSessionId, ThreadId } from "@t3tools/contracts";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
+import * as Option from "effect/Option";
+import * as Stream from "effect/Stream";
+import { vi } from "vite-plus/test";
import { HttpClient } from "effect/unstable/http";
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
​
@@ -14,6 +17,8 @@
import { CursorDriver } from "./CursorDriver.ts";
import { CursorAgentSdkRunner } from "../../orchestration-v2/Adapters/CursorAgentSdk.ts";
import { layer as idAllocatorLayer } from "../../orchestration-v2/IdAllocator.ts";
+import { ProviderAdapterV2RuntimePolicy } from "../../orchestration-v2/ProviderAdapter.ts";
+import { Cursor } from "../cursorSdk.ts";
​
const testLayer = ServerConfig.layerTest(process.cwd(), {
prefix: "t3-cursor-driver-copy-command-",
@@ -41,6 +46,112 @@
);
​
it.layer(testLayer)("CursorDriver", (it) => {
+ it.effect(
+ "persists browser credentials, uses them for chat, and closes the SDK session on logout",