@child-agent/core
v0.1.0
Published
Provider-independent child safety and runtime foundation for child-agent apps.
Readme
Core
Core contracts and deterministic baseline behavior for the child-safe agent runtime.
v1 Public API (import from '@child-agent/core')
The root barrel is the stable public surface. It exports:
policy— classification types, interfaces, and deterministic classifierprofiles— age/language profile contractssession— session and interaction identity contractssafety— sanitized input and signal contractsevents— minimized parent-event derivationvoice— interface-only voice boundariesresponse— response mode selection contractsconversation— language, thread, continuation, and constraint contractsorchestration— canonical decision-flow compositionoutput— output planning contracts
Subpath Modules (SUBPATH_API)
Import via explicit subpaths. Not available from the root barrel. Shape may change without notice:
import { ... } from '@child-agent/core/render';
import { ... } from '@child-agent/core/text';
import { ... } from '@child-agent/core/audio';
import { ... } from '@child-agent/core/presentation';
import { ... } from '@child-agent/core/catalog';
import { ... } from '@child-agent/core/conversation';
import { ... } from '@child-agent/core/text-realization';
import { ... } from '@child-agent/core/audio-realization';
import { ... } from '@child-agent/core/bundle';Design Rules
- keep policy outside of the model
- prefer interfaces over fake integrations
- make refusal and adult escalation first-class outcomes
- keep memory minimal, explicit, and internal until the public API is defined
- do not import internal helpers (normalize, keywords, signals, mapping rules) from outside
packages/core
See contracts.md for full classification details.
