Quill Notes
Quill Notes turns the tutorial domain into a fuller app using web-native custom elements, a Kitsune runtime, and first-party modules. It is the proving demo for an opinionated runtime integration contract and a TypeScript/Lit component pattern that agents can use, compose, and generate.
Proves
Section titled “Proves”- Create, edit, persist, reload, search, and delete revisioned notes.
- Query and discover the shared notes domain without reading the screen.
- Programmatic edits update the visible cards while preserving unsaved editor input.
- Stale edits report conflicts; failed storage writes preserve the draft and emit no success fact.
- Boundary context on note events.
- Audit and analytics observers without UI imports.
- Native form validation through
form.validate. - Dialog confirmation, toast notifications, command palette actions, and in-app devtools.
The DOM-free notes module owns document operations and persistence through a supplied store. Presentation observers update search and notifications after committed domain events. Older notes keep their IDs and begin at revision 1. This is a local snapshot persistence demo. The editor still uses explicit bootstrap wiring; reusable component attachment and bindings are now implemented in core/app and tested separately, with this editor’s migration still pending.
Planned component participation
Section titled “Planned component participation”First define the runtime’s state/context ownership, local restoration, remote reconciliation, and boundary lifecycle, using scoped development skills. Quill supplies note/conflict regression scenarios alongside generic acceptance fixtures; it does not determine the framework’s runtime requirements. Component attachment and bindings follow those foundations.
Those later increments should let a component join the running editor through a descriptor and note binding. The runtime connection supplies declared capabilities: queries obtain state, commands request edits and return outcomes, and events refresh relevant views. The component renders accessible interaction and local input state; domain operations enforce authority and consistency.
The acceptance goal is to insert an existing component, then a newly generated TypeScript/Lit component, without adding application-specific subscriptions or handlers. Each should query, act, react, and clean up on removal through the same protocol. Sharing state between two surfaces supports the lifecycle checks, while predictable component participation is the central proof. Context Engine/LMIR integration follows the browser demonstration; React adapter changes are optional compatibility work.
pnpm demo:quillpnpm nx run demo-quill:testPackage
Section titled “Package”demos/quill