@niscorp/nova 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/ACTION_DOCS.md +552 -0
  2. package/ADAPTER.md +170 -0
  3. package/DESIGN.md +719 -0
  4. package/I18N_DOCS.md +224 -0
  5. package/LAYOUT_DOCS.md +505 -0
  6. package/LICENSE +202 -0
  7. package/REACT_DOCS.md +562 -0
  8. package/README.md +379 -0
  9. package/SHELL_DOCS.md +615 -0
  10. package/TERMINAL_DOCS.md +124 -0
  11. package/dist/adapters/dom/components/index.cjs +473 -0
  12. package/dist/adapters/dom/components/index.cjs.map +1 -0
  13. package/dist/adapters/dom/components/index.d.cts +48 -0
  14. package/dist/adapters/dom/components/index.d.ts +48 -0
  15. package/dist/adapters/dom/components/index.js +420 -0
  16. package/dist/adapters/dom/components/index.js.map +1 -0
  17. package/dist/adapters/dom/index.cjs +171 -0
  18. package/dist/adapters/dom/index.cjs.map +1 -0
  19. package/dist/adapters/dom/index.d.cts +29 -0
  20. package/dist/adapters/dom/index.d.ts +29 -0
  21. package/dist/adapters/dom/index.js +15 -0
  22. package/dist/adapters/dom/index.js.map +1 -0
  23. package/dist/adapters/dom/server.cjs +129 -0
  24. package/dist/adapters/dom/server.cjs.map +1 -0
  25. package/dist/adapters/dom/server.d.cts +15 -0
  26. package/dist/adapters/dom/server.d.ts +15 -0
  27. package/dist/adapters/dom/server.js +37 -0
  28. package/dist/adapters/dom/server.js.map +1 -0
  29. package/dist/adapters/ink/index.d.ts +75 -0
  30. package/dist/adapters/ink/index.js +472 -0
  31. package/dist/adapters/ink/index.js.map +1 -0
  32. package/dist/adapters/react/components/index.cjs +552 -0
  33. package/dist/adapters/react/components/index.cjs.map +1 -0
  34. package/dist/adapters/react/components/index.d.cts +30 -0
  35. package/dist/adapters/react/components/index.d.ts +30 -0
  36. package/dist/adapters/react/components/index.js +12 -0
  37. package/dist/adapters/react/components/index.js.map +1 -0
  38. package/dist/adapters/react/index.cjs +1526 -0
  39. package/dist/adapters/react/index.cjs.map +1 -0
  40. package/dist/adapters/react/index.d.cts +149 -0
  41. package/dist/adapters/react/index.d.ts +149 -0
  42. package/dist/adapters/react/index.js +12 -0
  43. package/dist/adapters/react/index.js.map +1 -0
  44. package/dist/adapters/tty/components/index.cjs +255 -0
  45. package/dist/adapters/tty/components/index.cjs.map +1 -0
  46. package/dist/adapters/tty/components/index.d.cts +40 -0
  47. package/dist/adapters/tty/components/index.d.ts +40 -0
  48. package/dist/adapters/tty/components/index.js +187 -0
  49. package/dist/adapters/tty/components/index.js.map +1 -0
  50. package/dist/adapters/tty/index.cjs +76 -0
  51. package/dist/adapters/tty/index.cjs.map +1 -0
  52. package/dist/adapters/tty/index.d.cts +47 -0
  53. package/dist/adapters/tty/index.d.ts +47 -0
  54. package/dist/adapters/tty/index.js +76 -0
  55. package/dist/adapters/tty/index.js.map +1 -0
  56. package/dist/adapters/vue/components/index.cjs +619 -0
  57. package/dist/adapters/vue/components/index.cjs.map +1 -0
  58. package/dist/adapters/vue/components/index.d.cts +224 -0
  59. package/dist/adapters/vue/components/index.d.ts +224 -0
  60. package/dist/adapters/vue/components/index.js +12 -0
  61. package/dist/adapters/vue/components/index.js.map +1 -0
  62. package/dist/adapters/vue/index.cjs +747 -0
  63. package/dist/adapters/vue/index.cjs.map +1 -0
  64. package/dist/adapters/vue/index.d.cts +98 -0
  65. package/dist/adapters/vue/index.d.ts +98 -0
  66. package/dist/adapters/vue/index.js +127 -0
  67. package/dist/adapters/vue/index.js.map +1 -0
  68. package/dist/agent/index.cjs +178 -0
  69. package/dist/agent/index.cjs.map +1 -0
  70. package/dist/agent/index.d.cts +28 -0
  71. package/dist/agent/index.d.ts +28 -0
  72. package/dist/agent/index.js +30 -0
  73. package/dist/agent/index.js.map +1 -0
  74. package/dist/chunk-2MNLEL45.js +47 -0
  75. package/dist/chunk-2MNLEL45.js.map +1 -0
  76. package/dist/chunk-3HGE3VWK.js +753 -0
  77. package/dist/chunk-3HGE3VWK.js.map +1 -0
  78. package/dist/chunk-4ZID7UX5.js +549 -0
  79. package/dist/chunk-4ZID7UX5.js.map +1 -0
  80. package/dist/chunk-7B3RDENH.js +1982 -0
  81. package/dist/chunk-7B3RDENH.js.map +1 -0
  82. package/dist/chunk-7S5BNPUS.js +54 -0
  83. package/dist/chunk-7S5BNPUS.js.map +1 -0
  84. package/dist/chunk-7TS3YVQR.js +114 -0
  85. package/dist/chunk-7TS3YVQR.js.map +1 -0
  86. package/dist/chunk-EG2RUXJN.js +266 -0
  87. package/dist/chunk-EG2RUXJN.js.map +1 -0
  88. package/dist/chunk-GVBBL36G.js +429 -0
  89. package/dist/chunk-GVBBL36G.js.map +1 -0
  90. package/dist/chunk-I5D2R5UA.js +753 -0
  91. package/dist/chunk-I5D2R5UA.js.map +1 -0
  92. package/dist/chunk-IGLCWXQ3.js +304 -0
  93. package/dist/chunk-IGLCWXQ3.js.map +1 -0
  94. package/dist/chunk-JI7ZRESP.js +64 -0
  95. package/dist/chunk-JI7ZRESP.js.map +1 -0
  96. package/dist/chunk-L5223LLX.js +31 -0
  97. package/dist/chunk-L5223LLX.js.map +1 -0
  98. package/dist/chunk-LA3BSEMX.js +1905 -0
  99. package/dist/chunk-LA3BSEMX.js.map +1 -0
  100. package/dist/chunk-OAMC6R6E.js +121 -0
  101. package/dist/chunk-OAMC6R6E.js.map +1 -0
  102. package/dist/chunk-OGD5CCMZ.js +62 -0
  103. package/dist/chunk-OGD5CCMZ.js.map +1 -0
  104. package/dist/chunk-PF4OJTYU.js +199 -0
  105. package/dist/chunk-PF4OJTYU.js.map +1 -0
  106. package/dist/chunk-PZ5AY32C.js +9 -0
  107. package/dist/chunk-PZ5AY32C.js.map +1 -0
  108. package/dist/chunk-RBU5PHN4.js +8 -0
  109. package/dist/chunk-RBU5PHN4.js.map +1 -0
  110. package/dist/chunk-RQB4PRPV.js +285 -0
  111. package/dist/chunk-RQB4PRPV.js.map +1 -0
  112. package/dist/chunk-V32EVEVM.js +464 -0
  113. package/dist/chunk-V32EVEVM.js.map +1 -0
  114. package/dist/chunk-ZITHBBF3.js +85 -0
  115. package/dist/chunk-ZITHBBF3.js.map +1 -0
  116. package/dist/devtools/index.cjs +1088 -0
  117. package/dist/devtools/index.cjs.map +1 -0
  118. package/dist/devtools/index.d.cts +33 -0
  119. package/dist/devtools/index.d.ts +33 -0
  120. package/dist/devtools/index.js +399 -0
  121. package/dist/devtools/index.js.map +1 -0
  122. package/dist/effects-CndX9K7D.d.cts +123 -0
  123. package/dist/effects-CndX9K7D.d.ts +123 -0
  124. package/dist/endpoints-CD-6Jl-H.d.ts +36 -0
  125. package/dist/endpoints-Dem-EdRx.d.cts +36 -0
  126. package/dist/i18n/index.cjs +299 -0
  127. package/dist/i18n/index.cjs.map +1 -0
  128. package/dist/i18n/index.d.cts +28 -0
  129. package/dist/i18n/index.d.ts +28 -0
  130. package/dist/i18n/index.js +180 -0
  131. package/dist/i18n/index.js.map +1 -0
  132. package/dist/index-CNfzSBe2.d.ts +93 -0
  133. package/dist/index-caZoXSwr.d.cts +93 -0
  134. package/dist/index.cjs +3723 -0
  135. package/dist/index.cjs.map +1 -0
  136. package/dist/index.d.cts +144 -0
  137. package/dist/index.d.ts +144 -0
  138. package/dist/index.js +15 -0
  139. package/dist/index.js.map +1 -0
  140. package/dist/migrations/index.cjs +635 -0
  141. package/dist/migrations/index.cjs.map +1 -0
  142. package/dist/migrations/index.d.cts +97 -0
  143. package/dist/migrations/index.d.ts +97 -0
  144. package/dist/migrations/index.js +50 -0
  145. package/dist/migrations/index.js.map +1 -0
  146. package/dist/palette-CP0wd3bE.d.ts +15 -0
  147. package/dist/palette-lm0bU9i5.d.cts +15 -0
  148. package/dist/primitive-props-BH_EJWIe.d.cts +100 -0
  149. package/dist/primitive-props-BH_EJWIe.d.ts +100 -0
  150. package/dist/primitive-props-CGoJvmcH.d.cts +100 -0
  151. package/dist/primitive-props-CGoJvmcH.d.ts +100 -0
  152. package/dist/reflect/index.cjs +998 -0
  153. package/dist/reflect/index.cjs.map +1 -0
  154. package/dist/reflect/index.d.cts +125 -0
  155. package/dist/reflect/index.d.ts +125 -0
  156. package/dist/reflect/index.js +13 -0
  157. package/dist/reflect/index.js.map +1 -0
  158. package/dist/schemas-DPdeFlCT.d.cts +38 -0
  159. package/dist/schemas-DPdeFlCT.d.ts +38 -0
  160. package/dist/schemas-pMyyuXV7.d.cts +47 -0
  161. package/dist/schemas-pMyyuXV7.d.ts +47 -0
  162. package/dist/types-Boh9ckdG.d.ts +194 -0
  163. package/dist/types-Brc7v_pS.d.ts +198 -0
  164. package/dist/types-ByNSwtUV.d.cts +20 -0
  165. package/dist/types-DdltMfw7.d.ts +20 -0
  166. package/dist/types-De0KpxfI.d.cts +198 -0
  167. package/dist/types-DhHL0twe.d.ts +20 -0
  168. package/dist/types-Dv6JLmgo.d.cts +194 -0
  169. package/dist/types-Q80YtOQt.d.cts +20 -0
  170. package/package.json +237 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/shared/bindings/schemas.ts","../../src/layout/schemas.ts","../../src/shared/common.ts","../../src/shared/bindings/paths.ts","../../src/action/mutations/ops/set.ts","../../src/action/mutations/ops/toggle.ts","../../src/action/mutations/ops/increment.ts","../../src/action/mutations/ops/decrement.ts","../../src/shared/errors.ts","../../src/action/mutations/ops/push.ts","../../src/action/mutations/ops/pop.ts","../../src/action/mutations/ops/remove-at.ts","../../src/action/mutations/ops/move.ts","../../src/action/mutations/ops/clear.ts","../../src/action/mutations/ops/reset.ts","../../src/action/mutations/ops/index.ts","../../src/action/schemas/endpoints.ts","../../src/action/schemas/effects.ts","../../src/action/schemas/lifecycle.ts","../../src/action/schemas/triggers.ts","../../src/action/schemas/index.ts","../../src/migrations/index.ts"],"names":["z","next"],"mappings":";;;;;AAEiCA,MAC9B,MAAA,CAAO;AAAA,EACN,GAAA,EAAKA,KAAA,CAAE,OAAA,EAAQ,CAAE,SAAS,qEAAgE,CAAA;AAAA,EAC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,WAAA;AAAA,EACJ,SAAA,EAAW;AAAA,IACT,MAAA,EAAQ,EAAE,MAAA,EAAQ,YAAA,EAAa;AAAA,IAC/B,QAAA,EAAU,EAAE,MAAA,EAAQ,YAAA,EAAa;AAAA,IACjC,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ;AAAA,QACN,QAAA,EAAU,kBAAA;AAAA,QACV,YAAA,EAAc,kBAAA;AAAA,QACd,IAAA,EAAM,kBAAA;AAAA,QACN,IAAA,EAAM,kBAAA;AAAA,QACN,EAAA,EAAI;AAAA;AACN;AACF,GACF;AAAA,EACA,UAAA,EAAY;AAAA,IACV;AAAA;AAAA;AAAA,MAGE,WAAA,EAAa,gGAAA;AAAA,MACb,OAAO;AAAC,KACV;AAAA,IACA;AAAA;AAAA,MAEE,WAAA,EAAa,gFAAA;AAAA,MACb,OAAO;AAAC;AACV;AAEJ;AAMO,IAAM,YAAA,GAAe;AAAA,EAC1B,kBAAA,EAAoB,sBAAA;AAAA,EACpB,oBAAA,EAAsB,oBAAA;AAAA,EACtB,kBAAA,EAAoB;AACtB","file":"index.cjs","sourcesContent":["import { z } from 'zod';\n\nexport const IfDirectiveSchema = z\n .object({\n $if: z.unknown().describe('Condition — resolved recursively, then checked for truthiness.'),\n $then: z.unknown().describe('Value when condition is truthy — resolved recursively.'),\n $else: z\n .unknown()\n .optional()\n .describe('Value when condition is falsy — resolved recursively.'),\n })\n .strict()\n .describe('Conditional value directive. Resolved at bind time.');\n\nexport type IfDirective = z.infer<typeof IfDirectiveSchema>;\n\nexport const ResolvableSchema = z\n .unknown()\n .describe(\n 'Any value. Strings support {{}} templates and bare $-paths. The data ROOT is '\n + '\"$.\" — a data key is ALWAYS \"$.key\" (\"{{$.rows.length}} found\", \"$.loading\"); '\n + '\"$key\" without the dot is INVALID. Loop variables (a `for` directive\\'s `as`) '\n + 'are \"$<name>.field\" (\"{{$row.title}}\"). Objects may be directives like '\n + '{$if,$then,$else}. Arrays and nested objects are walked recursively. '\n + 'Everything else is literal.',\n );\n","import { z } from 'zod';\nimport { ResolvableSchema } from '../shared/bindings/schemas';\n\n// ═══════════════════════════════════════════════════════════\n// Layout node schemas\n// ═══════════════════════════════════════════════════════════\n\nexport const LayoutPrimitiveSchema = z\n .union([z.string(), z.number(), z.boolean(), z.null()])\n .describe('A primitive layout value rendered as text.');\n\nexport type LayoutPrimitive = z.infer<typeof LayoutPrimitiveSchema>;\n\nexport type ComponentNode = {\n component: string;\n props?: Record<string, unknown>;\n children?: LayoutNode | LayoutNode[];\n ref?: string;\n model?: string;\n events?: Record<string, unknown>;\n};\n\nexport const ComponentNodeSchema: z.ZodType<ComponentNode> = z.lazy(() =>\n z\n .object({\n component: z.string().describe('The registry name of the component to render.'),\n props: z\n .record(z.string(), z.unknown())\n .optional()\n .describe('Component props; values may be bindings to be resolved at render time.'),\n children: z\n .union([LayoutNodeSchema, z.array(LayoutNodeSchema)])\n .optional()\n .describe('Child layout content (a single node or an array of nodes).'),\n ref: z.string().optional().describe('A stable identifier used to target this component from event handlers.'),\n model: z.string().optional().describe('A two-way binding path, e.g. \"$.name\".'),\n events: z\n .record(z.string(), z.unknown())\n .optional()\n .describe('Map of event name to event configuration handled by the action runtime.'),\n })\n .strict()\n .describe('A node that instantiates a component from the registry.'),\n);\n\nexport type ConditionalNode = {\n if: unknown;\n then: LayoutNode;\n else?: LayoutNode;\n};\n\nexport const ConditionalNodeSchema: z.ZodType<ConditionalNode> = z.lazy(() =>\n z\n .object({\n if: ResolvableSchema.describe('Resolvable value evaluated for truthiness.'),\n then: LayoutNodeSchema.describe('Layout to render when condition is truthy.'),\n else: LayoutNodeSchema.optional().describe('Layout to render when condition is falsy.'),\n })\n .strict()\n .describe('A node that conditionally renders one of two branches.'),\n);\n\nexport type LoopNode = {\n for: unknown;\n as: string;\n key?: string;\n do: LayoutNode;\n};\n\nexport const LoopNodeSchema: z.ZodType<LoopNode> = z.lazy(() =>\n z\n .object({\n for: ResolvableSchema.describe('Resolvable value that resolves to an iterable array.'),\n as: z.string().describe('Name to bind each iterated item under in the inner scope.'),\n key: z.string().optional().describe('Optional key path on each item used for stable identity.'),\n do: LayoutNodeSchema.describe('Layout rendered once per iterated item.'),\n })\n .strict()\n .describe('A node that iterates an array binding and renders a layout for each item.'),\n);\n\nexport const LayoutRefNodeSchema = z\n .object({\n ref: z.string().describe('Identifier of a layout stored in the layout store to inline at this position.'),\n })\n .strict()\n .describe('A reference to a stored layout, inlined during render.');\n\nexport type LayoutRefNode = z.infer<typeof LayoutRefNodeSchema>;\n\nexport const SlotNodeSchema = z\n .object({\n slot: z\n .string()\n .describe(\n 'Name of a slot placeholder. When an ActionFragment is composed with an action ' +\n '(a push/replace `with`), the fragment\\'s `{ slot: \"body\" }` node is replaced by ' +\n 'the composing action\\'s own layout. An unfilled slot renders nothing.',\n ),\n })\n .strict()\n .describe(\n 'A placeholder that a fragment-merge fills with a composing action\\'s layout. ' +\n 'Only meaningful inside an ActionFragment\\'s layout.',\n );\n\nexport type SlotNode = z.infer<typeof SlotNodeSchema>;\n\nexport type LayoutNode =\n | ComponentNode\n | ConditionalNode\n | LoopNode\n | LayoutRefNode\n | SlotNode\n | LayoutNode[]\n | LayoutPrimitive;\n\nexport const LayoutNodeSchema: z.ZodType<LayoutNode> = z.lazy(() =>\n z\n .union([\n ComponentNodeSchema,\n ConditionalNodeSchema,\n LoopNodeSchema,\n LayoutRefNodeSchema,\n SlotNodeSchema,\n z.array(LayoutNodeSchema),\n LayoutPrimitiveSchema,\n ])\n .describe('Any layout node: component, conditional, loop, layout ref, slot, array of nodes, or a primitive text value.'),\n);\n","// ═══════════════════════════════════════════════════════════\n// Shared primitives — common types + generic guards used to\n// narrow `unknown` across the package.\n// ═══════════════════════════════════════════════════════════\n\nexport type Unsubscribe = () => void;\n\nexport const isObject = (value: unknown): value is Record<string, unknown> =>\n typeof value === 'object' && value !== null && !Array.isArray(value);\n\nexport const isString = (value: unknown): value is string => typeof value === 'string';\n\nexport const isNumber = (value: unknown): value is number => typeof value === 'number';\n\nexport const isBoolean = (value: unknown): value is boolean => typeof value === 'boolean';\n\nexport const isArray = (value: unknown): value is unknown[] => Array.isArray(value);\n\nexport const isNonNull = <T>(value: T | null | undefined): value is T =>\n value !== null && value !== undefined;\n\nexport const hasKey = <K extends string>(\n obj: unknown,\n key: K,\n): obj is Record<K, unknown> => isObject(obj) && key in obj;\n","import { isArray, isObject } from '../common';\n\n// ═══════════════════════════════════════════════════════════\n// Path helpers — get/set/delete on nested data structures.\n// Dot paths: \"a.b.0.c\". Numeric segments are array indices\n// when the parent is an array.\n// ═══════════════════════════════════════════════════════════\n\nconst splitPath = (path: string): string[] => {\n if (path.length === 0) return [];\n return path.split('.');\n};\n\nconst isIndex = (segment: string): boolean => /^\\d+$/.test(segment);\n\ntype Container = Record<string, unknown> | unknown[];\n\nconst cloneContainer = (value: unknown, nextSegment: string | undefined): Container => {\n if (isArray(value)) return value.slice();\n if (isObject(value)) return { ...value };\n if (nextSegment !== undefined && isIndex(nextSegment)) return [];\n return {};\n};\n\nconst writeSegment = (container: Container, segment: string, value: unknown): void => {\n if (isArray(container)) {\n if (isIndex(segment)) {\n const index = Number.parseInt(segment, 10);\n container[index] = value;\n }\n return;\n }\n container[segment] = value;\n};\n\nconst readSegment = (container: Container, segment: string): unknown => {\n if (isArray(container)) {\n if (!isIndex(segment)) return undefined;\n const index = Number.parseInt(segment, 10);\n return container[index];\n }\n return container[segment];\n};\n\nexport const getPath = (data: unknown, path: string): unknown => {\n const segments = splitPath(path);\n let current: unknown = data;\n for (const segment of segments) {\n if (current === undefined || current === null) return undefined;\n if (isArray(current)) {\n if (isIndex(segment)) {\n const index = Number.parseInt(segment, 10);\n current = current[index];\n continue;\n }\n if (segment === 'length') {\n current = current.length;\n continue;\n }\n return undefined;\n }\n if (isObject(current)) {\n if (segment in current) {\n current = current[segment];\n continue;\n }\n return undefined;\n }\n return undefined;\n }\n return current;\n};\n\nexport const setPath = (data: unknown, path: string, value: unknown): unknown => {\n const segments = splitPath(path);\n if (segments.length === 0) return value;\n\n const root = cloneContainer(data, segments[0]);\n let parent: Container = root;\n\n for (let i = 0; i < segments.length - 1; i += 1) {\n const segment = segments[i];\n const nextSegment = segments[i + 1];\n if (segment === undefined) continue;\n const existing = readSegment(parent, segment);\n const cloned = cloneContainer(existing, nextSegment);\n writeSegment(parent, segment, cloned);\n parent = cloned;\n }\n\n const last = segments[segments.length - 1];\n if (last !== undefined) writeSegment(parent, last, value);\n return root;\n};\n\nexport const deletePath = (data: unknown, path: string): unknown => {\n const segments = splitPath(path);\n if (segments.length === 0) return undefined;\n\n const root = cloneContainer(data, segments[0]);\n let parent: Container = root;\n\n for (let i = 0; i < segments.length - 1; i += 1) {\n const segment = segments[i];\n const nextSegment = segments[i + 1];\n if (segment === undefined) continue;\n const existing = readSegment(parent, segment);\n if (existing === undefined || existing === null) return root;\n const cloned = cloneContainer(existing, nextSegment);\n writeSegment(parent, segment, cloned);\n parent = cloned;\n }\n\n const last = segments[segments.length - 1];\n if (last === undefined) return root;\n if (isArray(parent)) {\n if (isIndex(last)) {\n const index = Number.parseInt(last, 10);\n parent.splice(index, 1);\n }\n } else {\n delete parent[last];\n }\n return root;\n};\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { hasKey, isObject } from '@shared/common';\nimport type { MutationOp } from '../types';\n\nexport const SetByValueSchema = z\n .object({\n set: z.string().describe('Data path to write to, e.g. \"user.name\" or \"items.0.title\".'),\n value: z.unknown().describe('Literal value to write at the path.'),\n })\n .strict()\n .describe('Set a field at a path to a literal value.');\n\nexport type SetByValueMutation = z.infer<typeof SetByValueSchema>;\n\nexport const SetByFromSchema = z\n .object({\n set: z.string().describe('Data path to write to.'),\n from: z.string().describe('Data path (or template path) to read the value from.'),\n })\n .strict()\n .describe('Set a field at a path by copying from another path.');\n\nexport type SetByFromMutation = z.infer<typeof SetByFromSchema>;\n\nexport const setValueOp: MutationOp<SetByValueMutation> = {\n key: 'set',\n schema: SetByValueSchema,\n match: (mutation) => hasKey(mutation, 'set') && hasKey(mutation, 'value'),\n apply: (data, mutation) => {\n const next = setPath(data, mutation.set, mutation.value);\n return isObject(next) ? next : data;\n },\n};\n\nexport const setFromOp: MutationOp<SetByFromMutation> = {\n key: 'set',\n schema: SetByFromSchema,\n match: (mutation) => hasKey(mutation, 'set') && hasKey(mutation, 'from'),\n apply: (data, mutation) => {\n const value = getPath(data, mutation.from);\n const next = setPath(data, mutation.set, value);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { isObject } from '@shared/common';\nimport type { MutationOp } from '../types';\n\nexport const ToggleSchema = z\n .object({\n toggle: z.string().describe('Boolean data path to flip.'),\n })\n .strict()\n .describe('Flip a boolean at the given path.');\n\nexport type ToggleMutation = z.infer<typeof ToggleSchema>;\n\nexport const toggleOp: MutationOp<ToggleMutation> = {\n key: 'toggle',\n schema: ToggleSchema,\n apply: (data, mutation) => {\n const current = getPath(data, mutation.toggle);\n const flipped = !(current === true);\n const next = setPath(data, mutation.toggle, flipped);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { isObject } from '@shared/common';\nimport type { MutationOp } from '../types';\n\nexport const IncrementSchema = z\n .object({\n increment: z.string().describe('Numeric data path to increment.'),\n by: z.number().optional().describe('Amount to increment by; defaults to 1.'),\n })\n .strict()\n .describe('Increment a numeric field.');\n\nexport type IncrementMutation = z.infer<typeof IncrementSchema>;\n\nexport const incrementOp: MutationOp<IncrementMutation> = {\n key: 'increment',\n schema: IncrementSchema,\n apply: (data, mutation) => {\n const current = getPath(data, mutation.increment);\n const base = typeof current === 'number' ? current : 0;\n const by = mutation.by ?? 1;\n const next = setPath(data, mutation.increment, base + by);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { isObject } from '@shared/common';\nimport type { MutationOp } from '../types';\n\nexport const DecrementSchema = z\n .object({\n decrement: z.string().describe('Numeric data path to decrement.'),\n by: z.number().optional().describe('Amount to decrement by; defaults to 1.'),\n })\n .strict()\n .describe('Decrement a numeric field.');\n\nexport type DecrementMutation = z.infer<typeof DecrementSchema>;\n\nexport const decrementOp: MutationOp<DecrementMutation> = {\n key: 'decrement',\n schema: DecrementSchema,\n apply: (data, mutation) => {\n const current = getPath(data, mutation.decrement);\n const base = typeof current === 'number' ? current : 0;\n const by = mutation.by ?? 1;\n const next = setPath(data, mutation.decrement, base - by);\n return isObject(next) ? next : data;\n },\n};\n","import type { z } from 'zod';\n\n// ═══════════════════════════════════════════════════════════\n// Error codes\n// ═══════════════════════════════════════════════════════════\n\nexport const ErrorCodes = {\n render: 'RENDER_ERROR',\n componentNotFound: 'COMPONENT_NOT_FOUND',\n layoutRefNotFound: 'LAYOUT_REF_NOT_FOUND',\n definitionValidation: 'DEFINITION_VALIDATION_ERROR',\n unknownAction: 'UNKNOWN_ACTION',\n unknownFragment: 'UNKNOWN_FRAGMENT',\n unknownFunction: 'UNKNOWN_FUNCTION',\n shellDisposed: 'SHELL_DISPOSED',\n lifecycle: 'LIFECYCLE_ERROR',\n mutation: 'MUTATION_ERROR',\n runaway: 'RUNAWAY_CHAIN',\n} as const;\n\nexport type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];\n\nexport type NovaErrorContext = Record<string, unknown>;\n\n// ═══════════════════════════════════════════════════════════\n// Base error — classes are permitted here because these are\n// the only thrown error types; identity + instanceof are needed.\n//\n// Subclasses are added when there is a real throw site. Do not\n// add dead exports.\n// ═══════════════════════════════════════════════════════════\n\nexport class NovaError extends Error {\n readonly code: ErrorCode;\n readonly context: NovaErrorContext | undefined;\n\n constructor(\n code: ErrorCode,\n message: string,\n context?: NovaErrorContext,\n options?: { cause?: unknown },\n ) {\n super(message, options);\n this.name = 'NovaError';\n this.code = code;\n this.context = context;\n }\n}\n\nexport class RenderError extends NovaError {\n constructor(message: string, context?: NovaErrorContext, options?: { cause?: unknown }) {\n super(ErrorCodes.render, message, context, options);\n this.name = 'RenderError';\n }\n}\n\nexport type ComponentNotFoundContext = NovaErrorContext & { name: string };\n\nexport class ComponentNotFoundError extends NovaError {\n constructor(\n message: string,\n context: ComponentNotFoundContext,\n options?: { cause?: unknown },\n ) {\n super(ErrorCodes.componentNotFound, message, context, options);\n this.name = 'ComponentNotFoundError';\n }\n}\n\nexport type LayoutRefNotFoundContext = NovaErrorContext & { ref: string };\n\nexport class LayoutRefNotFoundError extends NovaError {\n constructor(\n message: string,\n context: LayoutRefNotFoundContext,\n options?: { cause?: unknown },\n ) {\n super(ErrorCodes.layoutRefNotFound, message, context, options);\n this.name = 'LayoutRefNotFoundError';\n }\n}\n\nexport type DefinitionValidationFailure = {\n id: string;\n issues: z.core.$ZodIssue[];\n};\n\nexport type DefinitionValidationContext = NovaErrorContext & {\n failures: DefinitionValidationFailure[];\n};\n\nexport class DefinitionValidationError extends NovaError {\n constructor(\n message: string,\n context: DefinitionValidationContext,\n options?: { cause?: unknown },\n ) {\n super(ErrorCodes.definitionValidation, message, context, options);\n this.name = 'DefinitionValidationError';\n }\n}\n\nexport type UnknownActionContext = NovaErrorContext & { actionId: string };\n\nexport class UnknownActionError extends NovaError {\n constructor(\n message: string,\n context: UnknownActionContext,\n options?: { cause?: unknown },\n ) {\n super(ErrorCodes.unknownAction, message, context, options);\n this.name = 'UnknownActionError';\n }\n}\n\nexport type UnknownFragmentContext = NovaErrorContext & { fragmentId: string };\n\nexport class UnknownFragmentError extends NovaError {\n constructor(\n message: string,\n context: UnknownFragmentContext,\n options?: { cause?: unknown },\n ) {\n super(ErrorCodes.unknownFragment, message, context, options);\n this.name = 'UnknownFragmentError';\n }\n}\n\nexport class ShellDisposedError extends NovaError {\n constructor(message: string, context?: NovaErrorContext, options?: { cause?: unknown }) {\n super(ErrorCodes.shellDisposed, message, context, options);\n this.name = 'ShellDisposedError';\n }\n}\n\nexport type UnknownFunctionContext = NovaErrorContext & { name: string };\n\nexport class UnknownFunctionError extends NovaError {\n constructor(name: string, options?: { cause?: unknown }) {\n super(\n ErrorCodes.unknownFunction,\n `Unknown function: \"${name}\". Is it registered in shell config's \\`functions\\` map?`,\n { name },\n options,\n );\n this.name = 'UnknownFunctionError';\n }\n}\n\nexport type LifecycleHook = 'mount' | 'unmount' | 'suspend' | 'resume';\n\nexport type LifecycleErrorContext = NovaErrorContext & {\n hook?: LifecycleHook;\n instanceId?: string;\n};\n\nexport class LifecycleError extends NovaError {\n constructor(\n message: string,\n context?: LifecycleErrorContext,\n options?: { cause?: unknown },\n ) {\n super(ErrorCodes.lifecycle, message, context, options);\n this.name = 'LifecycleError';\n }\n}\n\nexport type MutationErrorContext = NovaErrorContext & {\n op: string;\n path: string;\n reason: 'missing' | 'wrong-type';\n};\n\nexport class MutationError extends NovaError {\n constructor(\n message: string,\n context: MutationErrorContext,\n options?: { cause?: unknown },\n ) {\n super(ErrorCodes.mutation, message, context, options);\n this.name = 'MutationError';\n }\n}\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { isArray, isObject } from '@shared/common';\nimport { MutationError } from '@shared/errors';\nimport type { MutationOp } from '../types';\n\nexport const PushSchema = z\n .object({\n push: z.string().describe('Array data path to append to.'),\n value: z.unknown().optional().describe('Value to append.'),\n })\n .strict()\n .describe('Append a value to an array field.');\n\nexport type PushMutation = z.infer<typeof PushSchema>;\n\nexport const pushOp: MutationOp<PushMutation> = {\n key: 'push',\n schema: PushSchema,\n // Guard against the PushEffect navigation effect whose `push` is an object.\n match: (mutation) => typeof mutation.push === 'string',\n apply: (data, mutation, ctx) => {\n const current = getPath(data, mutation.push);\n // push tolerates missing paths by creating a new array (lax mode only).\n if (current !== undefined && !isArray(current)) {\n if (ctx.strict) {\n throw new MutationError(\n `push: path \"${mutation.push}\" is not an array`,\n { op: 'push', path: mutation.push, reason: 'wrong-type' },\n );\n }\n return data;\n }\n if (current === undefined && ctx.strict) {\n throw new MutationError(\n `push: path \"${mutation.push}\" does not exist`,\n { op: 'push', path: mutation.push, reason: 'missing' },\n );\n }\n const arr = isArray(current) ? current.slice() : [];\n arr.push(mutation.value);\n const next = setPath(data, mutation.push, arr);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { isArray, isObject } from '@shared/common';\nimport { MutationError } from '@shared/errors';\nimport type { MutationOp } from '../types';\n\nexport const PopSchema = z\n .object({\n pop: z.string().describe('Array data path to remove the last element from.'),\n })\n .strict()\n .describe('Remove the last element from an array field.');\n\nexport type PopMutation = z.infer<typeof PopSchema>;\n\nexport const popOp: MutationOp<PopMutation> = {\n key: 'pop',\n schema: PopSchema,\n // Guard against the PopEffect whose `pop` is the literal `true`.\n match: (mutation) => typeof mutation.pop === 'string',\n apply: (data, mutation, ctx) => {\n const current = getPath(data, mutation.pop);\n if (!isArray(current)) {\n if (ctx.strict) {\n throw new MutationError(\n `pop: path \"${mutation.pop}\" ${current === undefined ? 'does not exist' : 'is not an array'}`,\n { op: 'pop', path: mutation.pop, reason: current === undefined ? 'missing' : 'wrong-type' },\n );\n }\n return data;\n }\n const arr = current.slice();\n arr.pop();\n const next = setPath(data, mutation.pop, arr);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { isArray, isObject } from '@shared/common';\nimport { MutationError } from '@shared/errors';\nimport type { MutationOp } from '../types';\n\nexport const RemoveAtSchema = z\n .object({\n removeAt: z.string().describe('Array data path to remove an element from.'),\n index: z\n .union([z.number().int(), z.string()])\n .describe('Index to remove. A string is a template (e.g. \"{{@event.payload}}\") resolved before applying.'),\n })\n .strict()\n .describe('Remove an element at a specific index of an array field.');\n\nexport type RemoveAtMutation = z.infer<typeof RemoveAtSchema>;\n\nexport const removeAtOp: MutationOp<RemoveAtMutation> = {\n key: 'removeAt',\n schema: RemoveAtSchema,\n apply: (data, mutation, ctx) => {\n const current = getPath(data, mutation.removeAt);\n if (!isArray(current)) {\n if (ctx.strict) {\n throw new MutationError(\n `removeAt: path \"${mutation.removeAt}\" ${current === undefined ? 'does not exist' : 'is not an array'}`,\n {\n op: 'removeAt',\n path: mutation.removeAt,\n reason: current === undefined ? 'missing' : 'wrong-type',\n },\n );\n }\n return data;\n }\n // Index may be a literal number or a resolved template; coerce and guard.\n const index = Number(mutation.index);\n if (!Number.isInteger(index)) return data;\n const arr = current.slice();\n arr.splice(index, 1);\n const next = setPath(data, mutation.removeAt, arr);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { isArray, isObject } from '@shared/common';\nimport { MutationError } from '@shared/errors';\nimport type { MutationOp } from '../types';\n\nexport const MoveSchema = z\n .object({\n move: z.string().describe('Array data path to reorder within.'),\n from: z\n .union([z.number().int(), z.string()])\n .describe('Index to move. A string is a template (e.g. \"{{@event.payload}}\") resolved before applying.'),\n to: z\n .union([z.number().int(), z.string()])\n .describe('Destination index. A string is a template resolved before applying.'),\n })\n .strict()\n .describe('Move an array element from one index to another.');\n\nexport type MoveMutation = z.infer<typeof MoveSchema>;\n\nexport const moveOp: MutationOp<MoveMutation> = {\n key: 'move',\n schema: MoveSchema,\n apply: (data, mutation, ctx) => {\n const current = getPath(data, mutation.move);\n if (!isArray(current)) {\n if (ctx.strict) {\n throw new MutationError(\n `move: path \"${mutation.move}\" ${current === undefined ? 'does not exist' : 'is not an array'}`,\n {\n op: 'move',\n path: mutation.move,\n reason: current === undefined ? 'missing' : 'wrong-type',\n },\n );\n }\n return data;\n }\n // from/to may be literal numbers or resolved templates; coerce and guard.\n const from = Number(mutation.from);\n const to = Number(mutation.to);\n if (!Number.isInteger(from) || !Number.isInteger(to)) return data;\n if (from < 0 || from >= current.length) return data;\n const arr = current.slice();\n const [item] = arr.splice(from, 1);\n arr.splice(Math.max(0, Math.min(to, arr.length)), 0, item);\n const next = setPath(data, mutation.move, arr);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { deletePath, getPath, setPath } from '@shared/bindings/paths';\nimport { isArray, isObject } from '@shared/common';\nimport { MutationError } from '@shared/errors';\nimport type { MutationOp } from '../types';\n\nexport const ClearSchema = z\n .object({\n clear: z.string().describe('Array or object data path to clear.'),\n })\n .strict()\n .describe('Clear an array or object field.');\n\nexport type ClearMutation = z.infer<typeof ClearSchema>;\n\nexport const clearOp: MutationOp<ClearMutation> = {\n key: 'clear',\n schema: ClearSchema,\n apply: (data, mutation, ctx) => {\n const current = getPath(data, mutation.clear);\n if (isArray(current)) {\n const next = setPath(data, mutation.clear, []);\n return isObject(next) ? next : data;\n }\n if (isObject(current)) {\n const next = setPath(data, mutation.clear, {});\n return isObject(next) ? next : data;\n }\n if (ctx.strict) {\n throw new MutationError(\n `clear: path \"${mutation.clear}\" ${current === undefined ? 'does not exist' : 'is not an array or object'}`,\n {\n op: 'clear',\n path: mutation.clear,\n reason: current === undefined ? 'missing' : 'wrong-type',\n },\n );\n }\n const next = deletePath(data, mutation.clear);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { getPath, setPath } from '@shared/bindings/paths';\nimport { isObject } from '@shared/common';\nimport type { MutationOp } from '../types';\n\nexport const ResetSchema = z\n .object({\n reset: z.string().describe('Data path to reset to its initial (definition.data) value.'),\n })\n .strict()\n .describe('Reset a field to its initial value from the action definition.');\n\nexport type ResetMutation = z.infer<typeof ResetSchema>;\n\nexport const resetOp: MutationOp<ResetMutation> = {\n key: 'reset',\n schema: ResetSchema,\n apply: (data, mutation, ctx) => {\n const initialValue = getPath(ctx.initial, mutation.reset);\n const next = setPath(data, mutation.reset, initialValue);\n return isObject(next) ? next : data;\n },\n};\n","import { z } from 'zod';\nimport { setValueOp, setFromOp } from './set';\nimport { toggleOp } from './toggle';\nimport { incrementOp } from './increment';\nimport { decrementOp } from './decrement';\nimport { pushOp } from './push';\nimport { popOp } from './pop';\nimport { removeAtOp } from './remove-at';\nimport { moveOp } from './move';\nimport { clearOp } from './clear';\nimport { resetOp } from './reset';\nimport type { MutationOp } from '../types';\n\n// The single source of truth for mutation operations. The validation schema,\n// the `Mutation` type, and the runtime dispatch table (see registry.ts) are\n// all derived from this one list — adding an op is a one-line change here.\nexport const OPS = [\n setValueOp,\n setFromOp,\n toggleOp,\n incrementOp,\n decrementOp,\n pushOp,\n popOp,\n removeAtOp,\n moveOp,\n clearOp,\n resetOp,\n] as const;\n\n// Precise mutation type, distributed from each op's own mutation shape.\ntype MutationOf<O> = O extends MutationOp<infer T> ? T : never;\nexport type Mutation = MutationOf<(typeof OPS)[number]>;\n\n// Runtime validator, derived from the ops: a mutation is any one of their\n// schemas. The cast widens each op's schema to `z.ZodType<Mutation>` (sound —\n// every op's mutation is a Mutation) so the union's output type is `Mutation`.\nexport const MutationSchema = z\n .union(\n OPS.map((op) => op.schema) as [z.ZodType<Mutation>, z.ZodType<Mutation>, ...z.ZodType<Mutation>[]],\n )\n .describe('A single immutable mutation applied to the action data.');\n","import { z } from 'zod';\n\nconst HttpEndpointSchema = z\n .object({\n url: z.string().describe('Template URL, e.g. \"/api/users/{{$.userId}}\".'),\n method: z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).describe('HTTP method.'),\n headers: z.record(z.string(), z.string()).optional().describe('Static request headers.'),\n request: z\n .unknown()\n .optional()\n .describe(\n 'Transform config run by the injected evaluator over the ACTION DATA to build the ' +\n 'request body — EVALUATED ON EVERY CALL, so body values can follow screen state. ' +\n 'Static parts are literal JSON; a dynamic part is an evaluator op over the data root, ' +\n 'e.g. { \"q\": { \"$ref\": \"$.search\" } } makes body field q carry the current $.search each call. ' +\n 'Requires an injected transform.',\n ),\n response: z\n .unknown()\n .optional()\n .describe(\n 'Transform config run by the injected evaluator over the reply as received ' +\n '(`$` is the reply — object, array, or scalar) to produce the value stored at `target`. ' +\n 'Requires an injected transform.',\n ),\n target: z.string().optional().describe('Data path to store the result at on success.'),\n errorTarget: z.string().optional().describe('Data path to store the error at on failure.'),\n timeoutMs: z\n .number()\n .int()\n .positive()\n .optional()\n .describe('How long to wait for the reply, in ms, before the call fails to onError. Defaults to the shell default (30000). Set it on an endpoint that is slow by nature — a model call that may take minutes.'),\n })\n .strict()\n .describe('A named HTTP call. `request`/`response` shape the body/reply via the injected transform.');\n\nconst FunctionEndpointSchema = z\n .object({\n fn: z\n .string()\n .describe(\n 'Key of a function registered in `ShellConfig.functions`. The host must ' +\n 'register the name before the action runs.',\n ),\n target: z.string().optional().describe('Data path to store the return value at on success.'),\n errorTarget: z.string().optional().describe('Data path to store the error at on failure.'),\n timeoutMs: z\n .number()\n .int()\n .positive()\n .optional()\n .describe('How long to wait for the reply, in ms, before the call fails to onError. Defaults to the shell default (30000). Set it on an endpoint that is slow by nature — a model call that may take minutes.'),\n })\n .strict()\n .describe('A named local function call. Handler is provided via `ShellConfig.functions`.');\n\nexport const EndpointConfigSchema = z\n .union([HttpEndpointSchema, FunctionEndpointSchema])\n .describe('An endpoint — either an HTTP call or a local function.');\n\nexport type EndpointConfig = z.infer<typeof EndpointConfigSchema>;\nexport type HttpEndpointConfig = z.infer<typeof HttpEndpointSchema>;\nexport type FunctionEndpointConfig = z.infer<typeof FunctionEndpointSchema>;\n","import { z } from 'zod';\nimport { MutationSchema } from '../mutations';\nimport type { Mutation } from '../mutations';\n\n// ═══════════════════════════════════════════════════════════\n// Effects + Steps (recursive union of Mutation | Effect)\n// ═══════════════════════════════════════════════════════════\n\nexport type Step = Mutation | Effect;\n\nexport type CallEffect = {\n call: string;\n onSuccess?: Step[];\n onError?: Step[];\n};\n\nexport type EmitEffect = {\n emit: { channel: string; payload?: unknown };\n};\n\nexport type PushEffect = {\n push: { action: string; canvas?: string; input?: Record<string, unknown>; with?: string[] };\n};\n\nexport type PopEffect = { pop: true };\n\nexport type ReplaceEffect = {\n replace: { action: string; canvas?: string; input?: Record<string, unknown>; with?: string[] };\n};\n\n// Pop a canvas down to a given instance (everything above it is popped). The\n// stack-nav breadcrumb fires this with the target crumb's instance id.\nexport type PopToEffect = { popTo: { canvas?: string; instance: string } };\n\n// Reset a canvas to a single root action (clear the whole stack, then push). The\n// screen-level nav (sidebar) fires this so drilling into a record doesn't leave\n// a stale stack beneath the new screen.\nexport type ResetToEffect = {\n resetTo: { action: string; canvas?: string; input?: Record<string, unknown>; with?: string[] };\n};\n\n// Remove ONE instance anywhere in a canvas's stack (not just the top). On a\n// list-mode canvas — where every card is live and visible at once — this is how\n// a card's own close button dismisses itself. `pop` removes the top; this\n// removes a named one.\nexport type RemoveInstanceEffect = { removeInstance: { canvas?: string; instance: string } };\n\n// Sugar for `removeInstance` aimed at the firing instance itself: a card's X\n// says \"close me\" without knowing its own id. The runtime desugars it to\n// `removeInstance` with the instance's real id before it escapes.\nexport type RemoveSelfEffect = { removeSelf: true };\n\n// Make a canvas EQUAL a list read from the action's data — the declarative\n// verb (shell/reconcile.ts) as a step. Every other navigation step moves ONE\n// action; a surface whose actions come from rows (a set of tools, a set of\n// cards) has as many as the rows say, and a fixed list of steps cannot.\n// Missing actions are pushed, ones no longer listed are removed, ones already\n// there stay mounted. A row naming an action this shell does not have (not\n// granted) is skipped, as an ungranted `initial` candidate is.\nexport type ReconcileEffect = {\n reconcile: { to: string; action: string; input?: string; canvas?: string; own?: 'pushed' | 'canvas'; with?: string[] };\n};\nexport type ReloadEffect = { reload: true };\n\nexport type Effect =\n | CallEffect\n | EmitEffect\n | PushEffect\n | PopEffect\n | ReplaceEffect\n | PopToEffect\n | ResetToEffect\n | RemoveInstanceEffect\n | RemoveSelfEffect\n | ReconcileEffect\n | ReloadEffect;\n\nexport const StepSchema: z.ZodType<Step> = z.lazy(() =>\n z.union([MutationSchema, EffectSchema]).describe('A step is either a mutation or an effect.'),\n);\n\nconst CallEffectSchema: z.ZodType<CallEffect> = z.lazy(() =>\n z\n .object({\n call: z.string().describe('Name of the endpoint to invoke.'),\n onSuccess: z.array(StepSchema).optional().describe('Steps to run after a successful response.'),\n onError: z\n .array(StepSchema)\n .optional()\n .describe('Steps to run after an error response (with @error scope available).'),\n })\n .strict()\n .describe('Invoke a named endpoint with optional success/error step branches.'),\n);\n\nconst EmitEffectSchema = z\n .object({\n emit: z\n .object({\n channel: z.string().describe('Channel name to publish on.'),\n payload: z\n .unknown()\n .optional()\n .describe('Payload to publish; templates are resolved against the current data.'),\n })\n .strict()\n .describe('Channel + payload to publish.'),\n })\n .strict()\n .describe('Publish a payload to a message channel.');\n\nconst PushEffectSchema = z\n .object({\n push: z\n .object({\n action: z\n .string()\n .describe('Definition id of the action to push onto a canvas — MUST be an id that actually exists (an unknown id fails at click time, invisible to a mount check).'),\n canvas: z.string().optional().describe('Canvas id to push onto; defaults to the current canvas.'),\n input: z\n .record(z.string(), z.unknown())\n .optional()\n .describe('Initial input merged into the new action data. Keys must belong to the target action\\'s declared input contract — invented keys are silently useless.'),\n with: z\n .array(z.string())\n .optional()\n .describe('Fragment ids to compose the action with before it is instantiated. Each wraps the action (the action fills its `{ slot }`) and contributes its triggers/data; the action wins on conflict. See ActionFragment.'),\n })\n .strict()\n .describe('Push parameters.'),\n })\n .strict()\n .describe('Push a new action onto a canvas (escapes via onNavigate callback).');\n\nconst PopEffectSchema = z\n .object({\n pop: z.literal(true).describe('Sentinel literal — must be true.'),\n })\n .strict()\n .describe('Pop the current action (escapes via onNavigate callback).');\n\nconst ReplaceEffectSchema = z\n .object({\n replace: z\n .object({\n action: z.string().describe('Definition id of the replacement action.'),\n canvas: z\n .string()\n .optional()\n .describe('Canvas id to replace on; defaults to the current canvas.'),\n input: z\n .record(z.string(), z.unknown())\n .optional()\n .describe('Initial input merged into the new action data.'),\n with: z\n .array(z.string())\n .optional()\n .describe('Fragment ids to compose the action with before it is instantiated. Each wraps the action (the action fills its `{ slot }`) and contributes its triggers/data; the action wins on conflict. See ActionFragment.'),\n })\n .strict()\n .describe('Replace parameters.'),\n })\n .strict()\n .describe('Replace the current action (escapes via onNavigate callback).');\n\nconst PopToEffectSchema = z\n .object({\n popTo: z\n .object({\n canvas: z.string().optional().describe('Canvas id to pop on; defaults to the current canvas.'),\n instance: z.string().describe('Pop the canvas until this instance id is on top (no-op if absent).'),\n })\n .strict()\n .describe('Pop-to-instance parameters.'),\n })\n .strict()\n .describe('Pop a canvas down to a given instance (escapes via onNavigate callback).');\n\nconst ResetToEffectSchema = z\n .object({\n resetTo: z\n .object({\n action: z.string().describe('Definition id of the new root action.'),\n canvas: z.string().optional().describe('Canvas id to reset; defaults to the current canvas.'),\n input: z.record(z.string(), z.unknown()).optional().describe('Initial input merged into the new root action.'),\n with: z.array(z.string()).optional().describe('Fragment ids to compose the action with. See ActionFragment.'),\n })\n .strict()\n .describe('Reset parameters.'),\n })\n .strict()\n .describe('Clear a canvas and push a single new root action (escapes via onNavigate callback).');\n\nconst RemoveInstanceEffectSchema = z\n .object({\n removeInstance: z\n .object({\n canvas: z.string().optional().describe('Canvas id to remove from; defaults to the current canvas.'),\n instance: z.string().describe('Instance id to unmount and drop from the stack (no-op if absent).'),\n })\n .strict()\n .describe('Remove-instance parameters.'),\n })\n .strict()\n .describe('Remove one instance anywhere in a canvas stack (escapes via onNavigate callback).');\n\nconst RemoveSelfEffectSchema = z\n .object({\n removeSelf: z.literal(true).describe('Sentinel literal — must be true. Removes the firing instance (desugars to removeInstance).'),\n })\n .strict()\n .describe('Close the firing instance — the list-card X (escapes via onNavigate callback).');\n\nconst ReconcileEffectSchema = z\n .object({\n reconcile: z\n .object({\n to: z.string().describe('Binding to the desired list, e.g. \"$.tools\" — an array of rows; anything else is an empty list.'),\n action: z.string().describe('The row field naming the action to place, e.g. \"tool_id\". Rows without it are skipped.'),\n input: z.string().optional().describe('The row field holding that action\\'s input (an object), if any.'),\n canvas: z.string().optional().describe('Canvas id to reconcile; defaults to the current canvas.'),\n own: z\n .enum(['pushed', 'canvas'])\n .optional()\n .describe('What this step may remove: \"pushed\" (default) only what this action placed there; \"canvas\" everything on it — for an action that owns the canvas outright.'),\n with: z.array(z.string()).optional().describe('Fragment ids to compose each placed action with. See ActionFragment.'),\n })\n .strict()\n .describe('Reconcile parameters.'),\n })\n .strict()\n .describe('Make a canvas hold exactly the actions a list names: push the missing, remove the unlisted, keep the rest mounted (escapes via onNavigate callback).');\n\n// Re-run the firing instance's `mount` hook — the action re-reads whatever it\n// reads, in place, keeping its identity and its data.\n//\n// The gap this fills: a stacked canvas suspends what it covers and `resume`\n// already re-runs mount, so a revealed action is never stale. A LIST canvas\n// suspends nothing — every card stays active — so a card that loaded at seed\n// time and is opened an hour later would show the hour-old answer. `reload` is\n// what \"opening it\" means there.\nconst ReloadEffectSchema = z\n .object({\n reload: z.literal(true).describe('Sentinel literal — must be true. Re-runs this instance\\'s mount hook.'),\n })\n .strict()\n .describe('Re-read the firing instance in place — the list-card open.');\n\nexport const EffectSchema: z.ZodType<Effect> = z.lazy(() =>\n z\n .union([CallEffectSchema, EmitEffectSchema, PushEffectSchema, PopEffectSchema, ReplaceEffectSchema, PopToEffectSchema, ResetToEffectSchema, RemoveInstanceEffectSchema, RemoveSelfEffectSchema, ReconcileEffectSchema, ReloadEffectSchema])\n .describe('An effect that touches the outside world.'),\n);\n","import { z } from 'zod';\nimport { StepSchema } from './effects';\n\nexport const LifecycleConfigSchema = z\n .object({\n mount: z.array(StepSchema).optional().describe('Steps to run when the action mounts.'),\n unmount: z.array(StepSchema).optional().describe('Steps to run when the action unmounts.'),\n suspend: z.array(StepSchema).optional().describe('Steps to run when the action is suspended.'),\n resume: z.array(StepSchema).optional().describe('Steps to run when the action resumes.'),\n })\n .strict()\n .describe('Lifecycle hooks for the action runtime state machine.');\n\nexport type LifecycleConfig = z.infer<typeof LifecycleConfigSchema>;\n","import { z } from 'zod';\nimport { StepSchema } from './effects';\n\nexport const TriggerConfigSchema = z\n .object({\n event: z\n .string()\n .optional()\n .describe('UI event type to listen for: \"ui:click\" (activations, incl. table rows), \"ui:model\" (an input\\'s value changed), \"ui:key\".'),\n message: z.string().optional().describe('Message bus channel name to listen on (fired by an `emit` step, possibly from another action).'),\n ref: z\n .string()\n .optional()\n .describe('Component ref to filter events by — MUST match a `ref` carried by a node in this action\\'s layout; a trigger on a ref no layout node carries never fires.'),\n key: z.string().optional().describe('Key to filter \"ui:key\" events by, e.g. \"ArrowDown\".'),\n do: z\n .array(StepSchema)\n .describe('Ordered steps to execute when the trigger fires. Steps may reference the firing event as \"@event\" — \"@event.payload\" is the fired value (a table row click: the row\\'s clickKey/rowKey field; an input\\'s ui:model: the typed text).'),\n })\n .strict()\n .refine((trigger) => trigger.event !== undefined || trigger.message !== undefined, {\n message: 'A trigger must specify either \"event\" or \"message\".',\n })\n .describe('Binds an event or message source to an ordered sequence of steps.');\n\nexport type TriggerConfig = z.infer<typeof TriggerConfigSchema>;\n","import { z } from 'zod';\nimport { LayoutNodeSchema } from '@layout/schemas';\nimport { MutationSchema } from '../mutations';\nimport { EndpointConfigSchema } from './endpoints';\nimport { LifecycleConfigSchema } from './lifecycle';\nimport { TriggerConfigSchema } from './triggers';\n\n// ═══════════════════════════════════════════════════════════\n// Action Definition — composes all sibling schemas.\n// ═══════════════════════════════════════════════════════════\n\nexport const ActionDefinitionSchema = z\n .object({\n id: z.string().describe('Stable definition id.'),\n name: z.string().optional().describe('Human-readable name.'),\n description: z.string().optional().describe('Free-form description.'),\n title: z\n .string()\n .optional()\n .describe(\n \"A resolvable label for this instance, evaluated against its own data (e.g. '{{$.view.record.name}}'). Exposed as `instance.title` on a canvas's actionLayout scope so stack-nav chrome can label crumbs/tabs; falls back to `name` then the action id.\",\n ),\n layout: z\n .union([z.string(), LayoutNodeSchema])\n .optional()\n .describe('Either a layout id stored in the layout store, or an inline LayoutNode.'),\n data: z.record(z.string(), z.unknown()).optional().describe('Static default data merged with input on mount.'),\n input: z\n .record(z.string(), z.unknown())\n .optional()\n .describe(\n 'JSON Schema of the data keys an opener may seed when loading this action — its public, openable-input contract (author in Zod, convert with z.toJSONSchema). Fields must be a subset of `data`. Descriptive only: the runtime does not validate loads against it.',\n ),\n triggers: z.array(TriggerConfigSchema).optional().describe('Event/message triggers.'),\n endpoints: z\n .record(z.string(), EndpointConfigSchema)\n .optional()\n .describe('Named endpoints — HTTP calls or local functions.'),\n lifecycle: LifecycleConfigSchema.optional().describe('Lifecycle hooks.'),\n })\n .strict()\n .describe('Definition of an action: layout + data + behavior.');\n\nexport type ActionDefinition = z.infer<typeof ActionDefinitionSchema>;\n\n// ═══════════════════════════════════════════════════════════\n// Action Fragment — a reusable PARTIAL action (every field optional) that is\n// MERGED into a concrete action at a push/replace `with`, producing the\n// effective ActionDefinition that gets instantiated. This is composition, not\n// inheritance: `Action + ActionFragment ⇒ Action`. A fragment is abstract — it\n// only exists merged, lives in its own registry, and cannot be pushed as an\n// action on its own. Its `layout` is the chrome that WRAPS the action; a\n// `{ slot: 'body' }` node in it is filled with the composing action's layout.\n// On merge: the action's layout fills the slot; data/endpoints deep-merge with\n// the action winning; triggers and per-hook lifecycle steps concatenate\n// (fragment first). See `composeAction`.\n// ═══════════════════════════════════════════════════════════\n\nexport const ActionFragmentSchema = z\n .object({\n kind: z.literal('fragment').describe('Discriminator — marks this as an abstract, merge-only fragment.'),\n id: z.string().describe('Stable fragment id, referenced from a push/replace `with: [...]`.'),\n name: z.string().optional().describe('Human-readable name.'),\n description: z.string().optional().describe('Free-form description.'),\n layout: z\n .union([z.string(), LayoutNodeSchema])\n .optional()\n .describe('The wrapping (chrome) layout, or a layout id. Put a `{ slot: \"body\" }` node where the composing action\\'s own layout is dropped in.'),\n data: z.record(z.string(), z.unknown()).optional().describe('Partial default data; deep-merged under the action (the action wins on conflict).'),\n triggers: z.array(TriggerConfigSchema).optional().describe('Pre-wired triggers (e.g. a modal\\'s close/cancel). Concatenated before the action\\'s triggers.'),\n endpoints: z\n .record(z.string(), EndpointConfigSchema)\n .optional()\n .describe('Named endpoints, merged under the action (the action wins on a name clash).'),\n lifecycle: LifecycleConfigSchema.optional().describe('Lifecycle hooks; per-hook steps run before the action\\'s.'),\n })\n .strict()\n .describe('A reusable partial action — layout + wired behavior — merged into a concrete action at a push `with`. Abstract: only exists merged, never instantiated alone.');\n\nexport type ActionFragment = z.infer<typeof ActionFragmentSchema>;\n\n// Re-export mutations schema (for backwards-compatible imports within action/)\nexport { MutationSchema };\nexport type { Mutation } from '../mutations';\n\n// Re-export sibling schemas + inferred types\nexport { EffectSchema, StepSchema } from './effects';\nexport type { Effect, Step, CallEffect, EmitEffect, PushEffect, PopEffect, ReplaceEffect, PopToEffect, ResetToEffect, RemoveInstanceEffect, RemoveSelfEffect, ReconcileEffect, ReloadEffect } from './effects';\nexport { TriggerConfigSchema } from './triggers';\nexport type { TriggerConfig } from './triggers';\nexport { EndpointConfigSchema } from './endpoints';\nexport type { EndpointConfig, HttpEndpointConfig, FunctionEndpointConfig } from './endpoints';\nexport { LifecycleConfigSchema } from './lifecycle';\nexport type { LifecycleConfig } from './lifecycle';\n","import type { Sequence } from '@niscorp/strata';\nimport { ActionDefinitionSchema, ActionFragmentSchema } from '../action/schemas';\nimport { LayoutNodeSchema } from '../layout/schemas';\n\n// ═══════════════════════════════════════════════════════════════\n// nova's grammar, as a strata sequence — @niscorp/nova/migrations.\n//\n// The documents nova defines (actions, fragments, layouts) and where each holds\n// other documents. A stored or submitted nova document carries a stamp naming\n// how far along this sequence its writer was; strata runs what it has not seen.\n//\n// THE EMBEDDINGS are the grammar's shape, not a migration's business: every\n// place a layout nests a layout (a lone child, an array of them, a branch, a\n// loop body), and every place an action holds another grammar's document (its\n// endpoints' request and response are Prism configs). With them, a migration\n// rewrites ONE flat node and strata finds every node at every depth.\n//\n// Version 0 is the grammar as it stood when strata arrived. HISTORY: migrations\n// are appended, never edited — a change to ActionDefinitionSchema or the layout\n// schemas that older documents would fail is a migration here.\n// ═══════════════════════════════════════════════════════════════\n\nconst actionEmbeds = {\n layout: 'nisc.nova/layout',\n 'endpoints.*.request': 'nisc.prism/config',\n 'endpoints.*.response': 'nisc.prism/config',\n} as const;\n\nexport const NOVA_SEQUENCE: Sequence = {\n id: 'nisc.nova',\n documents: {\n action: { embeds: actionEmbeds },\n fragment: { embeds: actionEmbeds },\n layout: {\n embeds: {\n children: 'nisc.nova/layout',\n 'children[]': 'nisc.nova/layout',\n then: 'nisc.nova/layout',\n else: 'nisc.nova/layout',\n do: 'nisc.nova/layout',\n },\n },\n },\n migrations: [\n {\n // A MARKER: an addition, so no stored action needs rewriting — but a\n // reader at 0 must refuse an action that uses it.\n description: 'The `reconcile` step: make a canvas hold exactly the actions a list in the action\\'s data names',\n steps: [],\n },\n {\n // A MARKER: an addition. An endpoint may say how long its reply may take.\n description: 'The endpoint `timeoutMs`: how long to wait for the reply before the call fails',\n steps: [],\n },\n ],\n};\n\n// ── the schemas behind the kinds ────────────────────────────────\n//\n// What each nova kind means today — read by the grammar check, which snapshots\n// them and fails when one changes without a migration in NOVA_SEQUENCE.\nexport const NOVA_SCHEMAS = {\n 'nisc.nova/action': ActionDefinitionSchema,\n 'nisc.nova/fragment': ActionFragmentSchema,\n 'nisc.nova/layout': LayoutNodeSchema,\n} as const;\n"]}
@@ -0,0 +1,97 @@
1
+ import { S as Step } from '../effects-CndX9K7D.cjs';
2
+ import { L as LayoutNode } from '../schemas-DPdeFlCT.cjs';
3
+ import * as zod from 'zod';
4
+ import * as zod_v4_core from 'zod/v4/core';
5
+ import { Sequence } from '@niscorp/strata';
6
+
7
+ declare const NOVA_SEQUENCE: Sequence;
8
+ declare const NOVA_SCHEMAS: {
9
+ readonly 'nisc.nova/action': zod.ZodObject<{
10
+ id: zod.ZodString;
11
+ name: zod.ZodOptional<zod.ZodString>;
12
+ description: zod.ZodOptional<zod.ZodString>;
13
+ title: zod.ZodOptional<zod.ZodString>;
14
+ layout: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodType<LayoutNode, unknown, zod_v4_core.$ZodTypeInternals<LayoutNode, unknown>>]>>;
15
+ data: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
16
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
17
+ triggers: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
18
+ event: zod.ZodOptional<zod.ZodString>;
19
+ message: zod.ZodOptional<zod.ZodString>;
20
+ ref: zod.ZodOptional<zod.ZodString>;
21
+ key: zod.ZodOptional<zod.ZodString>;
22
+ do: zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>;
23
+ }, zod_v4_core.$strict>>>;
24
+ endpoints: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
25
+ url: zod.ZodString;
26
+ method: zod.ZodEnum<{
27
+ GET: "GET";
28
+ POST: "POST";
29
+ PUT: "PUT";
30
+ PATCH: "PATCH";
31
+ DELETE: "DELETE";
32
+ }>;
33
+ headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
34
+ request: zod.ZodOptional<zod.ZodUnknown>;
35
+ response: zod.ZodOptional<zod.ZodUnknown>;
36
+ target: zod.ZodOptional<zod.ZodString>;
37
+ errorTarget: zod.ZodOptional<zod.ZodString>;
38
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
39
+ }, zod_v4_core.$strict>, zod.ZodObject<{
40
+ fn: zod.ZodString;
41
+ target: zod.ZodOptional<zod.ZodString>;
42
+ errorTarget: zod.ZodOptional<zod.ZodString>;
43
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
44
+ }, zod_v4_core.$strict>]>>>;
45
+ lifecycle: zod.ZodOptional<zod.ZodObject<{
46
+ mount: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
47
+ unmount: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
48
+ suspend: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
49
+ resume: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
50
+ }, zod_v4_core.$strict>>;
51
+ }, zod_v4_core.$strict>;
52
+ readonly 'nisc.nova/fragment': zod.ZodObject<{
53
+ kind: zod.ZodLiteral<"fragment">;
54
+ id: zod.ZodString;
55
+ name: zod.ZodOptional<zod.ZodString>;
56
+ description: zod.ZodOptional<zod.ZodString>;
57
+ layout: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodType<LayoutNode, unknown, zod_v4_core.$ZodTypeInternals<LayoutNode, unknown>>]>>;
58
+ data: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
59
+ triggers: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
60
+ event: zod.ZodOptional<zod.ZodString>;
61
+ message: zod.ZodOptional<zod.ZodString>;
62
+ ref: zod.ZodOptional<zod.ZodString>;
63
+ key: zod.ZodOptional<zod.ZodString>;
64
+ do: zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>;
65
+ }, zod_v4_core.$strict>>>;
66
+ endpoints: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
67
+ url: zod.ZodString;
68
+ method: zod.ZodEnum<{
69
+ GET: "GET";
70
+ POST: "POST";
71
+ PUT: "PUT";
72
+ PATCH: "PATCH";
73
+ DELETE: "DELETE";
74
+ }>;
75
+ headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
76
+ request: zod.ZodOptional<zod.ZodUnknown>;
77
+ response: zod.ZodOptional<zod.ZodUnknown>;
78
+ target: zod.ZodOptional<zod.ZodString>;
79
+ errorTarget: zod.ZodOptional<zod.ZodString>;
80
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
81
+ }, zod_v4_core.$strict>, zod.ZodObject<{
82
+ fn: zod.ZodString;
83
+ target: zod.ZodOptional<zod.ZodString>;
84
+ errorTarget: zod.ZodOptional<zod.ZodString>;
85
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
86
+ }, zod_v4_core.$strict>]>>>;
87
+ lifecycle: zod.ZodOptional<zod.ZodObject<{
88
+ mount: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
89
+ unmount: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
90
+ suspend: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
91
+ resume: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
92
+ }, zod_v4_core.$strict>>;
93
+ }, zod_v4_core.$strict>;
94
+ readonly 'nisc.nova/layout': zod.ZodType<LayoutNode, unknown, zod_v4_core.$ZodTypeInternals<LayoutNode, unknown>>;
95
+ };
96
+
97
+ export { NOVA_SCHEMAS, NOVA_SEQUENCE };
@@ -0,0 +1,97 @@
1
+ import { S as Step } from '../effects-CndX9K7D.js';
2
+ import { L as LayoutNode } from '../schemas-DPdeFlCT.js';
3
+ import * as zod from 'zod';
4
+ import * as zod_v4_core from 'zod/v4/core';
5
+ import { Sequence } from '@niscorp/strata';
6
+
7
+ declare const NOVA_SEQUENCE: Sequence;
8
+ declare const NOVA_SCHEMAS: {
9
+ readonly 'nisc.nova/action': zod.ZodObject<{
10
+ id: zod.ZodString;
11
+ name: zod.ZodOptional<zod.ZodString>;
12
+ description: zod.ZodOptional<zod.ZodString>;
13
+ title: zod.ZodOptional<zod.ZodString>;
14
+ layout: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodType<LayoutNode, unknown, zod_v4_core.$ZodTypeInternals<LayoutNode, unknown>>]>>;
15
+ data: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
16
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
17
+ triggers: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
18
+ event: zod.ZodOptional<zod.ZodString>;
19
+ message: zod.ZodOptional<zod.ZodString>;
20
+ ref: zod.ZodOptional<zod.ZodString>;
21
+ key: zod.ZodOptional<zod.ZodString>;
22
+ do: zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>;
23
+ }, zod_v4_core.$strict>>>;
24
+ endpoints: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
25
+ url: zod.ZodString;
26
+ method: zod.ZodEnum<{
27
+ GET: "GET";
28
+ POST: "POST";
29
+ PUT: "PUT";
30
+ PATCH: "PATCH";
31
+ DELETE: "DELETE";
32
+ }>;
33
+ headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
34
+ request: zod.ZodOptional<zod.ZodUnknown>;
35
+ response: zod.ZodOptional<zod.ZodUnknown>;
36
+ target: zod.ZodOptional<zod.ZodString>;
37
+ errorTarget: zod.ZodOptional<zod.ZodString>;
38
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
39
+ }, zod_v4_core.$strict>, zod.ZodObject<{
40
+ fn: zod.ZodString;
41
+ target: zod.ZodOptional<zod.ZodString>;
42
+ errorTarget: zod.ZodOptional<zod.ZodString>;
43
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
44
+ }, zod_v4_core.$strict>]>>>;
45
+ lifecycle: zod.ZodOptional<zod.ZodObject<{
46
+ mount: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
47
+ unmount: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
48
+ suspend: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
49
+ resume: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
50
+ }, zod_v4_core.$strict>>;
51
+ }, zod_v4_core.$strict>;
52
+ readonly 'nisc.nova/fragment': zod.ZodObject<{
53
+ kind: zod.ZodLiteral<"fragment">;
54
+ id: zod.ZodString;
55
+ name: zod.ZodOptional<zod.ZodString>;
56
+ description: zod.ZodOptional<zod.ZodString>;
57
+ layout: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodType<LayoutNode, unknown, zod_v4_core.$ZodTypeInternals<LayoutNode, unknown>>]>>;
58
+ data: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
59
+ triggers: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
60
+ event: zod.ZodOptional<zod.ZodString>;
61
+ message: zod.ZodOptional<zod.ZodString>;
62
+ ref: zod.ZodOptional<zod.ZodString>;
63
+ key: zod.ZodOptional<zod.ZodString>;
64
+ do: zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>;
65
+ }, zod_v4_core.$strict>>>;
66
+ endpoints: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
67
+ url: zod.ZodString;
68
+ method: zod.ZodEnum<{
69
+ GET: "GET";
70
+ POST: "POST";
71
+ PUT: "PUT";
72
+ PATCH: "PATCH";
73
+ DELETE: "DELETE";
74
+ }>;
75
+ headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
76
+ request: zod.ZodOptional<zod.ZodUnknown>;
77
+ response: zod.ZodOptional<zod.ZodUnknown>;
78
+ target: zod.ZodOptional<zod.ZodString>;
79
+ errorTarget: zod.ZodOptional<zod.ZodString>;
80
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
81
+ }, zod_v4_core.$strict>, zod.ZodObject<{
82
+ fn: zod.ZodString;
83
+ target: zod.ZodOptional<zod.ZodString>;
84
+ errorTarget: zod.ZodOptional<zod.ZodString>;
85
+ timeoutMs: zod.ZodOptional<zod.ZodNumber>;
86
+ }, zod_v4_core.$strict>]>>>;
87
+ lifecycle: zod.ZodOptional<zod.ZodObject<{
88
+ mount: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
89
+ unmount: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
90
+ suspend: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
91
+ resume: zod.ZodOptional<zod.ZodArray<zod.ZodType<Step, unknown, zod_v4_core.$ZodTypeInternals<Step, unknown>>>>;
92
+ }, zod_v4_core.$strict>>;
93
+ }, zod_v4_core.$strict>;
94
+ readonly 'nisc.nova/layout': zod.ZodType<LayoutNode, unknown, zod_v4_core.$ZodTypeInternals<LayoutNode, unknown>>;
95
+ };
96
+
97
+ export { NOVA_SCHEMAS, NOVA_SEQUENCE };
@@ -0,0 +1,50 @@
1
+ import { ActionFragmentSchema, ActionDefinitionSchema } from '../chunk-GVBBL36G.js';
2
+ import '../chunk-PF4OJTYU.js';
3
+ import { LayoutNodeSchema } from '../chunk-JI7ZRESP.js';
4
+ import '../chunk-RBU5PHN4.js';
5
+ import '../chunk-PZ5AY32C.js';
6
+
7
+ // src/migrations/index.ts
8
+ var actionEmbeds = {
9
+ layout: "nisc.nova/layout",
10
+ "endpoints.*.request": "nisc.prism/config",
11
+ "endpoints.*.response": "nisc.prism/config"
12
+ };
13
+ var NOVA_SEQUENCE = {
14
+ id: "nisc.nova",
15
+ documents: {
16
+ action: { embeds: actionEmbeds },
17
+ fragment: { embeds: actionEmbeds },
18
+ layout: {
19
+ embeds: {
20
+ children: "nisc.nova/layout",
21
+ "children[]": "nisc.nova/layout",
22
+ then: "nisc.nova/layout",
23
+ else: "nisc.nova/layout",
24
+ do: "nisc.nova/layout"
25
+ }
26
+ }
27
+ },
28
+ migrations: [
29
+ {
30
+ // A MARKER: an addition, so no stored action needs rewriting — but a
31
+ // reader at 0 must refuse an action that uses it.
32
+ description: "The `reconcile` step: make a canvas hold exactly the actions a list in the action's data names",
33
+ steps: []
34
+ },
35
+ {
36
+ // A MARKER: an addition. An endpoint may say how long its reply may take.
37
+ description: "The endpoint `timeoutMs`: how long to wait for the reply before the call fails",
38
+ steps: []
39
+ }
40
+ ]
41
+ };
42
+ var NOVA_SCHEMAS = {
43
+ "nisc.nova/action": ActionDefinitionSchema,
44
+ "nisc.nova/fragment": ActionFragmentSchema,
45
+ "nisc.nova/layout": LayoutNodeSchema
46
+ };
47
+
48
+ export { NOVA_SCHEMAS, NOVA_SEQUENCE };
49
+ //# sourceMappingURL=index.js.map
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;;;;;AAsBA,IAAM,YAAA,GAAe;AAAA,EACnB,MAAA,EAAQ,kBAAA;AAAA,EACR,qBAAA,EAAuB,mBAAA;AAAA,EACvB,sBAAA,EAAwB;AAC1B,CAAA;AAEO,IAAM,aAAA,GAA0B;AAAA,EACrC,EAAA,EAAI,WAAA;AAAA,EACJ,SAAA,EAAW;AAAA,IACT,MAAA,EAAQ,EAAE,MAAA,EAAQ,YAAA,EAAa;AAAA,IAC/B,QAAA,EAAU,EAAE,MAAA,EAAQ,YAAA,EAAa;AAAA,IACjC,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ;AAAA,QACN,QAAA,EAAU,kBAAA;AAAA,QACV,YAAA,EAAc,kBAAA;AAAA,QACd,IAAA,EAAM,kBAAA;AAAA,QACN,IAAA,EAAM,kBAAA;AAAA,QACN,EAAA,EAAI;AAAA;AACN;AACF,GACF;AAAA,EACA,UAAA,EAAY;AAAA,IACV;AAAA;AAAA;AAAA,MAGE,WAAA,EAAa,gGAAA;AAAA,MACb,OAAO;AAAC,KACV;AAAA,IACA;AAAA;AAAA,MAEE,WAAA,EAAa,gFAAA;AAAA,MACb,OAAO;AAAC;AACV;AAEJ;AAMO,IAAM,YAAA,GAAe;AAAA,EAC1B,kBAAA,EAAoB,sBAAA;AAAA,EACpB,oBAAA,EAAsB,oBAAA;AAAA,EACtB,kBAAA,EAAoB;AACtB","file":"index.js","sourcesContent":["import type { Sequence } from '@niscorp/strata';\nimport { ActionDefinitionSchema, ActionFragmentSchema } from '../action/schemas';\nimport { LayoutNodeSchema } from '../layout/schemas';\n\n// ═══════════════════════════════════════════════════════════════\n// nova's grammar, as a strata sequence — @niscorp/nova/migrations.\n//\n// The documents nova defines (actions, fragments, layouts) and where each holds\n// other documents. A stored or submitted nova document carries a stamp naming\n// how far along this sequence its writer was; strata runs what it has not seen.\n//\n// THE EMBEDDINGS are the grammar's shape, not a migration's business: every\n// place a layout nests a layout (a lone child, an array of them, a branch, a\n// loop body), and every place an action holds another grammar's document (its\n// endpoints' request and response are Prism configs). With them, a migration\n// rewrites ONE flat node and strata finds every node at every depth.\n//\n// Version 0 is the grammar as it stood when strata arrived. HISTORY: migrations\n// are appended, never edited — a change to ActionDefinitionSchema or the layout\n// schemas that older documents would fail is a migration here.\n// ═══════════════════════════════════════════════════════════════\n\nconst actionEmbeds = {\n layout: 'nisc.nova/layout',\n 'endpoints.*.request': 'nisc.prism/config',\n 'endpoints.*.response': 'nisc.prism/config',\n} as const;\n\nexport const NOVA_SEQUENCE: Sequence = {\n id: 'nisc.nova',\n documents: {\n action: { embeds: actionEmbeds },\n fragment: { embeds: actionEmbeds },\n layout: {\n embeds: {\n children: 'nisc.nova/layout',\n 'children[]': 'nisc.nova/layout',\n then: 'nisc.nova/layout',\n else: 'nisc.nova/layout',\n do: 'nisc.nova/layout',\n },\n },\n },\n migrations: [\n {\n // A MARKER: an addition, so no stored action needs rewriting — but a\n // reader at 0 must refuse an action that uses it.\n description: 'The `reconcile` step: make a canvas hold exactly the actions a list in the action\\'s data names',\n steps: [],\n },\n {\n // A MARKER: an addition. An endpoint may say how long its reply may take.\n description: 'The endpoint `timeoutMs`: how long to wait for the reply before the call fails',\n steps: [],\n },\n ],\n};\n\n// ── the schemas behind the kinds ────────────────────────────────\n//\n// What each nova kind means today — read by the grammar check, which snapshots\n// them and fails when one changes without a migration in NOVA_SEQUENCE.\nexport const NOVA_SCHEMAS = {\n 'nisc.nova/action': ActionDefinitionSchema,\n 'nisc.nova/fragment': ActionFragmentSchema,\n 'nisc.nova/layout': LayoutNodeSchema,\n} as const;\n"]}
@@ -0,0 +1,15 @@
1
+ import { d as ComponentMeta, C as ComponentRegistry } from './types-Brc7v_pS.js';
2
+
3
+ type LayoutPaletteEntry = {
4
+ name: string;
5
+ description: string;
6
+ propsSchema?: object;
7
+ };
8
+ type PaletteFromRegistryOptions = {
9
+ include?: readonly string[];
10
+ omitProps?: readonly string[];
11
+ };
12
+ declare const paletteEntryOf: (name: string, meta: ComponentMeta, omitProps?: readonly string[]) => LayoutPaletteEntry;
13
+ declare const paletteFromRegistry: (registry: ComponentRegistry, options?: PaletteFromRegistryOptions) => LayoutPaletteEntry[];
14
+
15
+ export { type LayoutPaletteEntry as L, type PaletteFromRegistryOptions as P, paletteFromRegistry as a, paletteEntryOf as p };
@@ -0,0 +1,15 @@
1
+ import { d as ComponentMeta, C as ComponentRegistry } from './types-De0KpxfI.cjs';
2
+
3
+ type LayoutPaletteEntry = {
4
+ name: string;
5
+ description: string;
6
+ propsSchema?: object;
7
+ };
8
+ type PaletteFromRegistryOptions = {
9
+ include?: readonly string[];
10
+ omitProps?: readonly string[];
11
+ };
12
+ declare const paletteEntryOf: (name: string, meta: ComponentMeta, omitProps?: readonly string[]) => LayoutPaletteEntry;
13
+ declare const paletteFromRegistry: (registry: ComponentRegistry, options?: PaletteFromRegistryOptions) => LayoutPaletteEntry[];
14
+
15
+ export { type LayoutPaletteEntry as L, type PaletteFromRegistryOptions as P, paletteFromRegistry as a, paletteEntryOf as p };
@@ -0,0 +1,100 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const StackPropsSchema: z.ZodObject<{
4
+ direction: z.ZodOptional<z.ZodEnum<{
5
+ row: "row";
6
+ column: "column";
7
+ }>>;
8
+ gap: z.ZodOptional<z.ZodNumber>;
9
+ align: z.ZodOptional<z.ZodEnum<{
10
+ center: "center";
11
+ start: "start";
12
+ end: "end";
13
+ stretch: "stretch";
14
+ }>>;
15
+ justify: z.ZodOptional<z.ZodEnum<{
16
+ center: "center";
17
+ start: "start";
18
+ end: "end";
19
+ between: "between";
20
+ around: "around";
21
+ }>>;
22
+ padding: z.ZodOptional<z.ZodNumber>;
23
+ wrap: z.ZodOptional<z.ZodBoolean>;
24
+ }, z.core.$strict>;
25
+ type StackProps = z.infer<typeof StackPropsSchema>;
26
+ declare const TextPropsSchema: z.ZodObject<{
27
+ as: z.ZodOptional<z.ZodEnum<{
28
+ span: "span";
29
+ h1: "h1";
30
+ h2: "h2";
31
+ h3: "h3";
32
+ h4: "h4";
33
+ p: "p";
34
+ }>>;
35
+ size: z.ZodOptional<z.ZodEnum<{
36
+ sm: "sm";
37
+ md: "md";
38
+ lg: "lg";
39
+ xl: "xl";
40
+ "2xl": "2xl";
41
+ }>>;
42
+ weight: z.ZodOptional<z.ZodEnum<{
43
+ bold: "bold";
44
+ normal: "normal";
45
+ medium: "medium";
46
+ }>>;
47
+ color: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strict>;
49
+ type TextProps = z.infer<typeof TextPropsSchema>;
50
+ declare const InputPropsSchema: z.ZodObject<{
51
+ type: z.ZodOptional<z.ZodEnum<{
52
+ number: "number";
53
+ text: "text";
54
+ email: "email";
55
+ password: "password";
56
+ }>>;
57
+ placeholder: z.ZodOptional<z.ZodString>;
58
+ disabled: z.ZodOptional<z.ZodBoolean>;
59
+ value: z.ZodOptional<z.ZodString>;
60
+ debounce: z.ZodOptional<z.ZodNumber>;
61
+ }, z.core.$strict>;
62
+ type InputProps = z.infer<typeof InputPropsSchema>;
63
+ declare const ButtonPropsSchema: z.ZodObject<{
64
+ label: z.ZodOptional<z.ZodString>;
65
+ variant: z.ZodOptional<z.ZodEnum<{
66
+ primary: "primary";
67
+ secondary: "secondary";
68
+ ghost: "ghost";
69
+ }>>;
70
+ disabled: z.ZodOptional<z.ZodBoolean>;
71
+ }, z.core.$strict>;
72
+ type ButtonProps = z.infer<typeof ButtonPropsSchema>;
73
+ declare const BoxPropsSchema: z.ZodObject<{
74
+ padding: z.ZodOptional<z.ZodNumber>;
75
+ background: z.ZodOptional<z.ZodString>;
76
+ border: z.ZodOptional<z.ZodBoolean>;
77
+ radius: z.ZodOptional<z.ZodNumber>;
78
+ }, z.core.$strict>;
79
+ type BoxProps = z.infer<typeof BoxPropsSchema>;
80
+ declare const PanelPropsSchema: z.ZodObject<{
81
+ title: z.ZodOptional<z.ZodString>;
82
+ backRef: z.ZodOptional<z.ZodString>;
83
+ closeRef: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strict>;
85
+ type PanelProps = z.infer<typeof PanelPropsSchema>;
86
+ declare const JsonTreePropsSchema: z.ZodObject<{
87
+ value: z.ZodOptional<z.ZodUnknown>;
88
+ label: z.ZodOptional<z.ZodString>;
89
+ }, z.core.$strict>;
90
+ type JsonTreeProps = z.infer<typeof JsonTreePropsSchema>;
91
+ declare const CanvasSlotPropsSchema: z.ZodObject<{
92
+ canvasId: z.ZodOptional<z.ZodString>;
93
+ }, z.core.$strict>;
94
+ type CanvasSlotProps = z.infer<typeof CanvasSlotPropsSchema>;
95
+ declare const ActionSlotPropsSchema: z.ZodObject<{
96
+ instanceId: z.ZodOptional<z.ZodString>;
97
+ }, z.core.$strict>;
98
+ type ActionSlotProps = z.infer<typeof ActionSlotPropsSchema>;
99
+
100
+ export { type ActionSlotProps as A, type ButtonProps as B, type CanvasSlotProps as C, type InputProps as I, type JsonTreeProps as J, type PanelProps as P, type StackProps as S, type TextProps as T, type BoxProps as a, ActionSlotPropsSchema as b, BoxPropsSchema as c, ButtonPropsSchema as d, CanvasSlotPropsSchema as e, InputPropsSchema as f, JsonTreePropsSchema as g, PanelPropsSchema as h, StackPropsSchema as i, TextPropsSchema as j };