repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | /** |
| #2 | * Lineage Tracking |
| #3 | * |
| #4 | * Track parent-child relationships between automatons. |
| #5 | * The parent records children in SQLite. |
| #6 | * Children record their parent in config. |
| #7 | * ERC-8004 registration includes parentAgent field. |
| #8 | */ |
| #9 | import type { AutomatonDatabase, ChildAutomaton, AutomatonConfig, ClawdRuntimeClient } from "../types.js"; |
| #10 | /** |
| #11 | * Get the full lineage tree (parent -> children). |
| #12 | */ |
| #13 | export declare function getLineage(db: AutomatonDatabase): { |
| #14 | children: ChildAutomaton[]; |
| #15 | alive: number; |
| #16 | dead: number; |
| #17 | total: number; |
| #18 | }; |
| #19 | /** |
| #20 | * Check if this automaton has a parent (is itself a child). |
| #21 | */ |
| #22 | export declare function hasParent(config: AutomatonConfig): boolean; |
| #23 | /** |
| #24 | * Get a summary of the lineage for the system prompt. |
| #25 | */ |
| #26 | export declare function getLineageSummary(db: AutomatonDatabase, config: AutomatonConfig): string; |
| #27 | /** |
| #28 | * Prune dead children from tracking (optional cleanup). |
| #29 | */ |
| #30 | export declare function pruneDeadChildren(db: AutomatonDatabase, keepLast?: number): number; |
| #31 | /** |
| #32 | * Refresh status of all children. |
| #33 | */ |
| #34 | export declare function refreshChildrenStatus(runtime: ClawdRuntimeClient, db: AutomatonDatabase): Promise<void>; |
| #35 | //# sourceMappingURL=lineage.d.ts.map |