Track session usage totals (#26644)

This commit is contained in:
Dax 2026-05-12 01:18:57 -04:00 committed by GitHub
commit 36d40fee4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 1882 additions and 26 deletions

View file

@ -292,6 +292,7 @@ export function createTuiPluginApi(opts: Opts = {}): HostPluginApi {
},
session: {
count: opts.state?.session?.count ?? (() => 0),
get: opts.state?.session?.get ?? (() => undefined),
diff: opts.state?.session?.diff ?? (() => []),
todo: opts.state?.session?.todo ?? (() => []),
messages: opts.state?.session?.messages ?? (() => []),