Files
openclaw/packages/acp-core/dist/session-lineage-meta.d.mts
Peter Steinberger 7dea283756 refactor: expand acp core package (#88618)
* refactor: expand acp core package

* chore: drop acp core package symlink

* fix: keep acp core dependency graph stable

* fix: add acp core tsconfig subpaths

* fix: sync acp core boundary path artifacts

* fix: use kysely for cron run-log queries

* fix: resolve acp core subpaths in loaders
2026-05-31 14:48:57 +01:00

32 lines
1.0 KiB
TypeScript

//#region src/session-lineage-meta.d.ts
declare const SUBAGENT_ROLES: readonly ["orchestrator", "leaf"];
declare const SUBAGENT_CONTROL_SCOPES: readonly ["children", "none"];
type SubagentRole = (typeof SUBAGENT_ROLES)[number];
type SubagentControlScope = (typeof SUBAGENT_CONTROL_SCOPES)[number];
type AcpSessionLineageMeta = {
sessionKey: string;
kind?: string;
channel?: string;
parentSessionId?: string;
spawnedBy?: string;
spawnDepth?: number;
subagentRole?: SubagentRole;
subagentControlScope?: SubagentControlScope;
spawnedWorkspaceDir?: string;
spawnedCwd?: string;
};
type AcpSessionLineageRow = {
key: string;
kind?: string;
channel?: string;
parentSessionKey?: string;
spawnedBy?: string;
spawnDepth?: number;
subagentRole?: string;
subagentControlScope?: string;
spawnedWorkspaceDir?: string;
spawnedCwd?: string;
};
declare function toAcpSessionLineageMeta(row: AcpSessionLineageRow): AcpSessionLineageMeta;
//#endregion
export { AcpSessionLineageMeta, AcpSessionLineageRow, toAcpSessionLineageMeta };