mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
docs(coding-agent): clarify custom footer usage APIs (#8482)
Fixes #8392
This commit is contained in:
parent
27b7a626de
commit
81152d88bb
2 changed files with 3 additions and 3 deletions
|
|
@ -177,8 +177,8 @@ export interface ExtensionUIContext {
|
|||
/** Set a custom footer component, or undefined to restore the built-in footer.
|
||||
*
|
||||
* The factory receives a FooterDataProvider for data not otherwise accessible:
|
||||
* git branch and extension statuses from setStatus(). Token stats, model info,
|
||||
* etc. are available via ctx.sessionManager and ctx.model.
|
||||
* git branch and extension statuses from setStatus(). Context usage is on
|
||||
* ctx.getContextUsage(), token stats on ctx.sessionManager.getEntries(), model info on ctx.model.
|
||||
*/
|
||||
setFooter(
|
||||
factory:
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ function shouldPollGitHead(repoDir: string): boolean {
|
|||
|
||||
/**
|
||||
* Provides git branch and extension statuses - data not otherwise accessible to extensions.
|
||||
* Token stats, model info available via ctx.sessionManager and ctx.model.
|
||||
* Context usage on ctx.getContextUsage(), token stats on ctx.sessionManager.getEntries(), model info on ctx.model.
|
||||
*/
|
||||
export class FooterDataProvider {
|
||||
private cwd: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue