fix(lint): clear biome errors breaking CI on main

CI was red at the lint step: an unused providerID parameter in
createQoderOAuth, an unused getCachedCredentials import in stream.ts,
plus unsorted imports and stale formatting in stream.ts and pat.ts.

Co-authored-by: Simon Shi <simonsmh@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-08-31 15:57:20 +00:00
co-authored by Simon Shi
parent ab378b44e2
commit 70fba627e6
3 changed files with 9 additions and 6 deletions
+4 -2
View File
@@ -30,7 +30,7 @@ function modelsForProvider(mode: string, providerID: string): Model<Api>[] {
})) as unknown as Model<Api>[];
}
function createQoderOAuth(providerID: string, mode: string): OAuthConfigWithUsage {
function createQoderOAuth(_providerID: string, mode: string): OAuthConfigWithUsage {
return {
name: isQoderCNMode(mode) ? "Qoder CN (PAT)" : "Qoder (Browser OAuth / PAT)",
login: isQoderCNMode(mode) ? loginQoderCN : loginQoder,
@@ -52,7 +52,9 @@ function registerQoderProvider(pi: ExtensionAPI, providerID: string, mode: strin
api: "qoder-api" as Api,
models: modelsForProvider(mode, providerID) as unknown as ProviderConfig["models"],
oauth: oauth as ProviderConfig["oauth"],
streamSimple: streamQoder,
// pi-coding-agent resolves its own nested @earendil-works/pi-ai copy, so the
// structurally identical Model/Context types are nominally distinct here.
streamSimple: streamQoder as unknown as ProviderConfig["streamSimple"],
});
}