Interface: AiuiToolsRegistry
Defined in: aiui-global.ts:26
Methods
call()
call(
ns,name,args?):Promise<unknown>
Defined in: aiui-global.ts:33
Invoke one tool by namespace + name. Rejects on unknown.
Parameters
ns
string
name
string
args?
unknown
Returns
Promise<unknown>
ledger()
ledger():
object[]
Defined in: aiui-global.ts:50
The debugging enumeration — one row per (namespace, tool), with the namespace's activity riding each row. console.table-friendly; the same truth list() carries, flattened for eyes.
Returns
object[]
list()
list():
object[]
Defined in: aiui-global.ts:31
Every namespace's current tools — internal clients and bridges alike. active is the namespace's activity bit (see setActive).
Returns
object[]
onChange()
onChange(
handler): () =>void
Defined in: aiui-global.ts:53
Fires after every register AND every activity flip. Returns the unsubscribe.
Parameters
handler
() => void
Returns
() => void
register()
register(
ns,tools):void
Defined in: aiui-global.ts:28
Declare a namespace's FULL current tool set (replace-by-namespace).
Parameters
ns
string
tools
Returns
void
setActive()
setActive(
ns,active):void
Defined in: aiui-global.ts:44
Flip a namespace's ACTIVITY bit (the page-tools design notes, git history). Default true — a standalone app never calls this. A multi-page shell flips it with the SitePage activate/deactivate lifecycle (toolsNs); an app with its own client-side routing calls it directly (or through its kit's setActive). Consumers choose policy: the coding agent sees every namespace with the flag; the oracle/linter projections filter to active. The bit survives re-registration (HMR re-register must not re-activate a parked page) and may be set BEFORE the namespace registers.
Parameters
ns
string
active
boolean
Returns
void