Simple intent router for a rule-based agent
===============================================
const { createRouter } = require("./intent-router");
const router = createRouter([
  { name: "cancel_order", match: (t) => /cancel.*order/i.test(t), handle: () => "..." },
]);
router.route("please cancel my order");

Matches text against intents in order; first match wins. Falls back to a default handler when
nothing matches. See demo.js for 4 real routed cases.
