Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 1x | /**
* @tao.js/core — the TAO signal network.
*
* Applications are built as handlers attached to trigram-named Application
* Contexts (Term / Action / Orient). Setting an {@link AppCtx} on a
* {@link Kernel} (or the shared default `TAO`) runs matching handlers in
* three phases — `INTERCEPT`, `ASYNC`, `INLINE` — and handlers chain by
* returning another AppCtx. {@link Network} is the lower-level wiring
* surface (`enter()` + `decorate()`) for adapters; see ENVELOPE-SPEC.md.
*
* @module @tao.js/core
*/
/**
* Shared shapes re-exported for typed consumers (the JSDoc typedefs are the
* source of truth at their defining modules).
*
* @typedef {import('./AppCtxRoot').Trigram} Trigram
* @typedef {import('./AppCtxHandlers').Handler} Handler
* @typedef {import('./Network').Envelope} Envelope
* @typedef {import('./Network').Forward} Forward
* @typedef {import('./Network').DecorationSpec} DecorationSpec
*/
import AppCtx from './AppCtx';
import Network from './Network';
import Kernel from './Kernel';
export { INTERCEPT, ASYNC, INLINE, ERROR } from './constants';
/** The shared default Kernel instance. */
const TAO = new Kernel();
export default TAO;
export { AppCtx, Network, Kernel };
|