Skip to content

Commit 491ba40

Browse files
committed
refactor(login): type the minimal harness dependency
1 parent cfa93c8 commit 491ba40

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

packages/node-sdk/src/login/types.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import type {
2-
ProviderModelInfo,
32
OpenAICodexModelInfo,
43
OpenPlatformDefinition,
4+
ProviderModelInfo,
55
} from '@pymodel/pythinker-code-oauth';
66

7-
import type { Catalog, CatalogModel } from '#/catalog';
8-
import type { PythinkerHarness } from '#/pythinker-harness';
7+
import type { Catalog, CatalogModel, CatalogProviderStore } from '#/catalog';
98

10-
export type LoginPlatformModelInfo =
11-
| ProviderModelInfo
12-
| OpenAICodexModelInfo;
9+
export type LoginPlatformModelInfo = ProviderModelInfo | OpenAICodexModelInfo;
1310

1411
export type LoginPlatformDefinition =
1512
| OpenPlatformDefinition
@@ -30,8 +27,13 @@ export interface PlatformSelection {
3027
readonly catalog: Catalog;
3128
}
3229

30+
/** Minimal harness surface required by login flows and their tests. */
31+
export interface LoginHarness extends CatalogProviderStore {
32+
readonly homeDir: string;
33+
}
34+
3335
export interface LoginUi {
34-
readonly harness: PythinkerHarness;
36+
readonly harness: LoginHarness;
3537
cancelInFlight: (() => void) | undefined;
3638
openBrowser(url: string): void;
3739
showStatus(message: string): void;

0 commit comments

Comments
 (0)