fix: resolve make dev and test-e2e errors (#2570)

This commit is contained in:
yangzheli 2026-04-26 17:27:32 +08:00 committed by GitHub
parent e4ff444a71
commit c5d57b4533
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 2 deletions

View File

@ -277,7 +277,7 @@ LangGraph Server 只需要 harness 包。`langgraph.json` 更新:
"lead_agent": "deerflow.agents:make_lead_agent"
},
"checkpointer": {
"path": "./packages/harness/deerflow/agents/checkpointer/async_provider.py:make_checkpointer"
"path": "./packages/harness/deerflow/runtime/checkpointer/async_provider.py:make_checkpointer"
}
}
```

View File

@ -12,6 +12,6 @@
"path": "./app/gateway/langgraph_auth.py:auth"
},
"checkpointer": {
"path": "./packages/harness/deerflow/agents/checkpointer/async_provider.py:make_checkpointer"
"path": "./packages/harness/deerflow/runtime/checkpointer/async_provider.py:make_checkpointer"
}
}

View File

@ -28,6 +28,7 @@ export default defineConfig({
timeout: 120_000,
env: {
SKIP_ENV_VALIDATION: "1",
DEER_FLOW_AUTH_DISABLED: "1",
},
},
});

View File

@ -10,6 +10,18 @@ const SSR_AUTH_TIMEOUT_MS = 5_000;
* Returns a tagged AuthResult callers use exhaustive switch, no try/catch.
*/
export async function getServerSideUser(): Promise<AuthResult> {
if (process.env.DEER_FLOW_AUTH_DISABLED === "1") {
return {
tag: "authenticated",
user: {
id: "e2e-user",
email: "e2e@test.local",
system_role: "admin",
needs_setup: false,
},
};
}
const cookieStore = await cookies();
const sessionCookie = cookieStore.get("access_token");