Files
callstack__agent-device/packages/contracts/src/batch-step.ts
Michał Pierzchała 527a56a6e7 refactor(move): move the batch runner and batch policy into @agent-device/command-registry (#2388)
* refactor(command-registry): move the batch runner and batch policy into @agent-device/command-registry

* chore(gates): re-point the sdk-batch chunk groups and fallow baseline at the command-registry batch module
2026-09-08 07:48:33 +02:00

20 lines
715 B
TypeScript

import type { SessionRuntimeHints } from '@agent-device/kernel/contracts';
/**
* One step of a daemon batch, as submitted.
*
* Declared here rather than in `@agent-device/command-registry/batch` because the public API
* vocabulary (`contracts/client-replay.ts`) is stated in terms of it, and contracts sits below
* command-registry.
*
* The `runtime` field used to be written as `DaemonRequest['runtime']`, which pulled the whole daemon
* request type in to say `SessionRuntimeHints` — the same type, one zone lower.
*/
export type DaemonBatchStep = {
command: string;
positionals?: string[];
input?: Record<string, unknown>;
flags?: Record<string, unknown>;
runtime?: SessionRuntimeHints;
};