@linely-io/cranky-core
v2.0.0
Published
Cranky core: composable playbook execution
Readme
@linely-io/cranky-core
Platform-neutral playbook engine, models, expressions, validation, fetch, and connection/session contracts.
Requires Node.js 24+ for backend use and ES modules.
npm install @linely-io/cranky-coreimport { createEngine } from '@linely-io/cranky-core';
const engine = createEngine();
try {
const run = await engine.run({ actions: [{ id: 'return', run: '$ 6 * 7' }] });
if (run.error) throw run.error;
console.log(run.toResultValue());
} finally {
await engine.close();
}The default connection is local. DOM actions/parsing, SSH, and screenshots require their feature packages. Engine also accepts an injected connection provider; factories take createEngine(env?, options?, dependencies?).
See package composition and connections.
