refactor: type ModuleContext and index.ts functions with SDK types

This commit is contained in:
2026-05-03 21:28:15 -04:00
parent 26ba42f2b9
commit cf7ad047d3
2 changed files with 10 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
import type { ExtensionContext, ReadonlyFooterDataProvider } from "@mariozechner/pi-coding-agent";
import type { UsageLimit, UsageReport } from "./usage";
export type ModuleName = "directory" | "context" | "model" | "thinking" | "cost" | "usage";
@@ -40,8 +41,8 @@ export interface StatusbarState {
}
export interface ModuleContext {
ctx: any;
footerData: any;
ctx: ExtensionContext;
footerData: ReadonlyFooterDataProvider;
state: StatusbarState;
config: StatusbarConfig;
}