mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
527a56a6e7
* 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
20 lines
715 B
TypeScript
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;
|
|
};
|