mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
* 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
32 lines
1.0 KiB
TypeScript
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 }; |