@loomic/devtools
v0.1.5
Published
Developer tooling for the Loomic agentic app runtime
Downloads
500
Readme
@loomic/devtools
Developer tooling for the Loomic agentic runtime. Not needed in production — add this to your devDependencies.
What it does
MockProvider— a deterministic AI provider for unit and integration tests; returns configurableAgentPlanresponses without hitting any APIReplayRunner— replays a recorded sequence of signals and plans against the runtime for regression testingRuntimeLogger— structured, human-readable console logger that subscribes to runtime events; useful during development to trace the full run-loop cycle
Install
npm install --save-dev @loomic/devtoolsUsage
// In tests
import { MockProvider } from '@loomic/devtools';
import { createAgenticRuntime } from '@loomic/runtime';
const runtime = createAgenticRuntime({
provider: new MockProvider({
plan: { uiOperations: [], toolCalls: [], memoryCandidates: [] },
}),
});
// In development (attach to your runtime instance)
import { RuntimeLogger } from '@loomic/devtools';
const logger = new RuntimeLogger(runtime, { level: 'debug' });
logger.attach();