File tree Expand file tree Collapse file tree
packages/node-sdk/src/login Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 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
1411export 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+
3335export interface LoginUi {
34- readonly harness : PythinkerHarness ;
36+ readonly harness : LoginHarness ;
3537 cancelInFlight : ( ( ) => void ) | undefined ;
3638 openBrowser ( url : string ) : void ;
3739 showStatus ( message : string ) : void ;
You can’t perform that action at this time.
0 commit comments