@niscorp/nova 0.5.0 → 0.5.2

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 (74) hide show
  1. package/ACTION_DOCS.md +2 -0
  2. package/CHANGELOG.md +14 -0
  3. package/DESIGN.md +14 -12
  4. package/README.md +8 -1
  5. package/SHELL_DOCS.md +26 -1
  6. package/dist/adapters/dom/components/index.d.cts +1 -1
  7. package/dist/adapters/dom/components/index.d.ts +1 -1
  8. package/dist/adapters/dom/index.cjs +4 -4
  9. package/dist/adapters/dom/index.d.cts +1 -1
  10. package/dist/adapters/dom/index.d.ts +1 -1
  11. package/dist/adapters/dom/index.js +2 -2
  12. package/dist/adapters/dom/server.cjs +3 -3
  13. package/dist/adapters/dom/server.d.cts +1 -1
  14. package/dist/adapters/dom/server.d.ts +1 -1
  15. package/dist/adapters/dom/server.js +2 -2
  16. package/dist/adapters/react/components/index.cjs +22 -22
  17. package/dist/adapters/react/components/index.js +3 -3
  18. package/dist/adapters/react/index.cjs +25 -25
  19. package/dist/adapters/react/index.d.cts +1 -1
  20. package/dist/adapters/react/index.d.ts +1 -1
  21. package/dist/adapters/react/index.js +3 -3
  22. package/dist/adapters/tty/components/index.d.cts +1 -1
  23. package/dist/adapters/tty/components/index.d.ts +1 -1
  24. package/dist/adapters/tty/index.cjs +1 -1
  25. package/dist/adapters/tty/index.d.cts +1 -1
  26. package/dist/adapters/tty/index.d.ts +1 -1
  27. package/dist/adapters/tty/index.js +1 -1
  28. package/dist/adapters/vue/components/index.cjs +22 -22
  29. package/dist/adapters/vue/components/index.d.cts +9 -9
  30. package/dist/adapters/vue/components/index.d.ts +9 -9
  31. package/dist/adapters/vue/components/index.js +3 -3
  32. package/dist/adapters/vue/index.cjs +30 -30
  33. package/dist/adapters/vue/index.d.cts +1 -1
  34. package/dist/adapters/vue/index.d.ts +1 -1
  35. package/dist/adapters/vue/index.js +4 -4
  36. package/dist/{chunk-FVGJD6CI.cjs → chunk-3XZODV7S.cjs} +4 -4
  37. package/dist/{chunk-FVGJD6CI.cjs.map → chunk-3XZODV7S.cjs.map} +1 -1
  38. package/dist/{chunk-GFMNQT2X.js → chunk-57PZEPIK.js} +4 -4
  39. package/dist/{chunk-GFMNQT2X.js.map → chunk-57PZEPIK.js.map} +1 -1
  40. package/dist/{chunk-DMAVKM7M.cjs → chunk-5T26T2EJ.cjs} +4 -4
  41. package/dist/{chunk-DMAVKM7M.cjs.map → chunk-5T26T2EJ.cjs.map} +1 -1
  42. package/dist/{chunk-WKDPEBXU.js → chunk-6VHOMWNF.js} +3 -3
  43. package/dist/{chunk-WKDPEBXU.js.map → chunk-6VHOMWNF.js.map} +1 -1
  44. package/dist/{chunk-CAKJCAHW.cjs → chunk-ITSVPZS5.cjs} +15 -15
  45. package/dist/{chunk-CAKJCAHW.cjs.map → chunk-ITSVPZS5.cjs.map} +1 -1
  46. package/dist/{chunk-IIOO6Z4T.js → chunk-LAVCNLL3.js} +4 -4
  47. package/dist/{chunk-IIOO6Z4T.js.map → chunk-LAVCNLL3.js.map} +1 -1
  48. package/dist/{chunk-WRVT7JTK.cjs → chunk-OWA5Z3WT.cjs} +45 -13
  49. package/dist/chunk-OWA5Z3WT.cjs.map +1 -0
  50. package/dist/{chunk-L5HAGG4U.js → chunk-OY7SCFTJ.js} +45 -13
  51. package/dist/chunk-OY7SCFTJ.js.map +1 -0
  52. package/dist/{chunk-OPF42ISN.js → chunk-T33VE5XQ.js} +3 -3
  53. package/dist/{chunk-OPF42ISN.js.map → chunk-T33VE5XQ.js.map} +1 -1
  54. package/dist/{chunk-TWXAKLMX.cjs → chunk-UIWTFU3M.cjs} +16 -16
  55. package/dist/{chunk-TWXAKLMX.cjs.map → chunk-UIWTFU3M.cjs.map} +1 -1
  56. package/dist/devtools/index.d.cts +1 -1
  57. package/dist/devtools/index.d.ts +1 -1
  58. package/dist/document/index.d.cts +3 -3
  59. package/dist/document/index.d.ts +3 -3
  60. package/dist/examples/index.d.cts +1 -1
  61. package/dist/examples/index.d.ts +1 -1
  62. package/dist/{head-pDYg3tbK.d.ts → head-CVjtToF8.d.ts} +1 -1
  63. package/dist/{head-CBse5408.d.cts → head-zznJvVEE.d.cts} +1 -1
  64. package/dist/index.cjs +15 -15
  65. package/dist/index.d.cts +4 -20
  66. package/dist/index.d.ts +4 -20
  67. package/dist/index.js +1 -1
  68. package/dist/reflect/index.d.cts +1 -1
  69. package/dist/reflect/index.d.ts +1 -1
  70. package/dist/{types-6KTCKlXf.d.cts → types-CWOom_fv.d.cts} +27 -1
  71. package/dist/{types-DV-GDFJd.d.ts → types-DOm2MKDk.d.ts} +27 -1
  72. package/package.json +7 -7
  73. package/dist/chunk-L5HAGG4U.js.map +0 -1
  74. package/dist/chunk-WRVT7JTK.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { A as ActionDefinition } from '../index-BjQX8XZl.js';
2
- import { a as Shell, i as FunctionDefinition } from '../types-DV-GDFJd.js';
2
+ import { a as Shell, j as FunctionDefinition } from '../types-DOm2MKDk.js';
3
3
  import '../effects-DkBBrxVj.js';
4
4
  import 'zod';
5
5
  import '../schemas-DPdeFlCT.js';
@@ -1,9 +1,9 @@
1
- import { f as HeadElement } from '../head-CBse5408.cjs';
2
- export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from '../head-CBse5408.cjs';
1
+ import { f as HeadElement } from '../head-zznJvVEE.cjs';
2
+ export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from '../head-zznJvVEE.cjs';
3
3
  import '../types-CR56luN7.cjs';
4
4
  import 'zod';
5
5
  import '../schemas-DPdeFlCT.cjs';
6
- import '../types-6KTCKlXf.cjs';
6
+ import '../types-CWOom_fv.cjs';
7
7
  import '../index-BoPH5aSd.cjs';
8
8
  import '../effects-DkBBrxVj.cjs';
9
9
  import '../schemas-pMyyuXV7.cjs';
@@ -1,9 +1,9 @@
1
- import { f as HeadElement } from '../head-pDYg3tbK.js';
2
- export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from '../head-pDYg3tbK.js';
1
+ import { f as HeadElement } from '../head-CVjtToF8.js';
2
+ export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from '../head-CVjtToF8.js';
3
3
  import '../types-CJC8mnzl.js';
4
4
  import 'zod';
5
5
  import '../schemas-DPdeFlCT.js';
6
- import '../types-DV-GDFJd.js';
6
+ import '../types-DOm2MKDk.js';
7
7
  import '../index-BjQX8XZl.js';
8
8
  import '../effects-DkBBrxVj.js';
9
9
  import '../schemas-pMyyuXV7.js';
@@ -1,7 +1,7 @@
1
1
  import { A as ActionDefinition, a as ActionFragment } from '../index-BoPH5aSd.cjs';
2
2
  import { P as Phrasebook, H as PhraseKeys } from '../types-CR56luN7.cjs';
3
3
  import { L as LayoutNode } from '../schemas-DPdeFlCT.cjs';
4
- import { C as CanvasConfig } from '../types-6KTCKlXf.cjs';
4
+ import { C as CanvasConfig } from '../types-CWOom_fv.cjs';
5
5
  import '../effects-DkBBrxVj.cjs';
6
6
  import 'zod';
7
7
  import '../schemas-pMyyuXV7.cjs';
@@ -1,7 +1,7 @@
1
1
  import { A as ActionDefinition, a as ActionFragment } from '../index-BjQX8XZl.js';
2
2
  import { P as Phrasebook, H as PhraseKeys } from '../types-CJC8mnzl.js';
3
3
  import { L as LayoutNode } from '../schemas-DPdeFlCT.js';
4
- import { C as CanvasConfig } from '../types-DV-GDFJd.js';
4
+ import { C as CanvasConfig } from '../types-DOm2MKDk.js';
5
5
  import '../effects-DkBBrxVj.js';
6
6
  import 'zod';
7
7
  import '../schemas-pMyyuXV7.js';
@@ -1,5 +1,5 @@
1
1
  import { b as RenderNode } from './types-CJC8mnzl.js';
2
- import { R as RenderApi } from './types-DV-GDFJd.js';
2
+ import { R as RenderApi } from './types-DOm2MKDk.js';
3
3
 
4
4
  declare const HEAD_NAME = "nova:head";
5
5
  declare const HEAD_TITLE_NAME = "nova:title";
@@ -1,5 +1,5 @@
1
1
  import { b as RenderNode } from './types-CR56luN7.cjs';
2
- import { R as RenderApi } from './types-6KTCKlXf.cjs';
2
+ import { R as RenderApi } from './types-CWOom_fv.cjs';
3
3
 
4
4
  declare const HEAD_NAME = "nova:head";
5
5
  declare const HEAD_TITLE_NAME = "nova:title";
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDC5HONDE_cjs = require('./chunk-DC5HONDE.cjs');
4
- var chunkWRVT7JTK_cjs = require('./chunk-WRVT7JTK.cjs');
4
+ var chunkOWA5Z3WT_cjs = require('./chunk-OWA5Z3WT.cjs');
5
5
  var chunkQTJ4ZQRM_cjs = require('./chunk-QTJ4ZQRM.cjs');
6
6
  var chunkVDB7VHFS_cjs = require('./chunk-VDB7VHFS.cjs');
7
7
  require('./chunk-OM2HY2GE.cjs');
@@ -25,59 +25,59 @@ Object.defineProperty(exports, "paletteFromRegistry", {
25
25
  });
26
26
  Object.defineProperty(exports, "DEFAULT_HISTORY_DEPTH", {
27
27
  enumerable: true,
28
- get: function () { return chunkWRVT7JTK_cjs.DEFAULT_HISTORY_DEPTH; }
28
+ get: function () { return chunkOWA5Z3WT_cjs.DEFAULT_HISTORY_DEPTH; }
29
29
  });
30
30
  Object.defineProperty(exports, "DEFAULT_SETTLE_WAIT_MS", {
31
31
  enumerable: true,
32
- get: function () { return chunkWRVT7JTK_cjs.DEFAULT_SETTLE_WAIT_MS; }
32
+ get: function () { return chunkOWA5Z3WT_cjs.DEFAULT_SETTLE_WAIT_MS; }
33
33
  });
34
34
  Object.defineProperty(exports, "MessageEnvelopeSchema", {
35
35
  enumerable: true,
36
- get: function () { return chunkWRVT7JTK_cjs.MessageEnvelopeSchema; }
36
+ get: function () { return chunkOWA5Z3WT_cjs.MessageEnvelopeSchema; }
37
37
  });
38
38
  Object.defineProperty(exports, "NovaEventSchema", {
39
39
  enumerable: true,
40
- get: function () { return chunkWRVT7JTK_cjs.NovaEventSchema; }
40
+ get: function () { return chunkOWA5Z3WT_cjs.NovaEventSchema; }
41
41
  });
42
42
  Object.defineProperty(exports, "canvasTreeOf", {
43
43
  enumerable: true,
44
- get: function () { return chunkWRVT7JTK_cjs.canvasTreeOf; }
44
+ get: function () { return chunkOWA5Z3WT_cjs.canvasTreeOf; }
45
45
  });
46
46
  Object.defineProperty(exports, "createIdFactory", {
47
47
  enumerable: true,
48
- get: function () { return chunkWRVT7JTK_cjs.createIdFactory; }
48
+ get: function () { return chunkOWA5Z3WT_cjs.createIdFactory; }
49
49
  });
50
50
  Object.defineProperty(exports, "createShell", {
51
51
  enumerable: true,
52
- get: function () { return chunkWRVT7JTK_cjs.createShell; }
52
+ get: function () { return chunkOWA5Z3WT_cjs.createShell; }
53
53
  });
54
54
  Object.defineProperty(exports, "hasVisibleContent", {
55
55
  enumerable: true,
56
- get: function () { return chunkWRVT7JTK_cjs.hasVisibleContent; }
56
+ get: function () { return chunkOWA5Z3WT_cjs.hasVisibleContent; }
57
57
  });
58
58
  Object.defineProperty(exports, "navigatedChannel", {
59
59
  enumerable: true,
60
- get: function () { return chunkWRVT7JTK_cjs.navigatedChannel; }
60
+ get: function () { return chunkOWA5Z3WT_cjs.navigatedChannel; }
61
61
  });
62
62
  Object.defineProperty(exports, "reconcileCanvas", {
63
63
  enumerable: true,
64
- get: function () { return chunkWRVT7JTK_cjs.reconcileCanvas; }
64
+ get: function () { return chunkOWA5Z3WT_cjs.reconcileCanvas; }
65
65
  });
66
66
  Object.defineProperty(exports, "scopeDispatch", {
67
67
  enumerable: true,
68
- get: function () { return chunkWRVT7JTK_cjs.scopeDispatch; }
68
+ get: function () { return chunkOWA5Z3WT_cjs.scopeDispatch; }
69
69
  });
70
70
  Object.defineProperty(exports, "shellIdle", {
71
71
  enumerable: true,
72
- get: function () { return chunkWRVT7JTK_cjs.shellIdle; }
72
+ get: function () { return chunkOWA5Z3WT_cjs.shellIdle; }
73
73
  });
74
74
  Object.defineProperty(exports, "shellSettled", {
75
75
  enumerable: true,
76
- get: function () { return chunkWRVT7JTK_cjs.shellSettled; }
76
+ get: function () { return chunkOWA5Z3WT_cjs.shellSettled; }
77
77
  });
78
78
  Object.defineProperty(exports, "shellView", {
79
79
  enumerable: true,
80
- get: function () { return chunkWRVT7JTK_cjs.shellView; }
80
+ get: function () { return chunkOWA5Z3WT_cjs.shellView; }
81
81
  });
82
82
  Object.defineProperty(exports, "ACTION_SLOT_NAME", {
83
83
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { R as RenderContext, a as RenderOnError, b as RenderNode, D as DataStoreView, L as LayoutStore, C as ComponentRegistry, c as ComponentMeta } from './types-CR56luN7.cjs';
2
2
  export { d as ComponentEntry, e as ComponentNotFoundContext, f as ComponentNotFoundError, g as DefinitionValidationContext, h as DefinitionValidationError, i as DefinitionValidationFailure, E as ErrorCode, j as ErrorCodes, k as EventMeta, l as LayoutRefNotFoundContext, m as LayoutRefNotFoundError, n as LifecycleError, o as LifecycleErrorContext, p as LifecycleHook, M as ModelBindingDescriptor, q as MutationError, N as NovaError, r as NovaErrorContext, s as RegistrationInput, t as RenderComponentNode, u as RenderError, v as RenderErrorNode, w as RenderFragmentNode, x as RenderTextNode, S as ShellDisposedError, U as UnknownActionContext, y as UnknownActionError, z as UnknownFragmentContext, A as UnknownFragmentError, B as UnknownFunctionContext, F as UnknownFunctionError, G as Unsubscribe } from './types-CR56luN7.cjs';
3
- import { S as ShellConfig, a as Shell, R as RenderApi } from './types-6KTCKlXf.cjs';
4
- export { A as ActionInstance, b as ActionStatus, C as CanvasConfig, c as CanvasInitialSeed, d as CanvasState, e as ChannelHandler, D as DataChangeHandler, E as EventBus, f as EventHandler, F as FetchFn, g as FetchInit, h as FetchResponse, i as FunctionDefinition, j as FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler, k as NavigationEffect, P as PublicActionRuntime, l as PushOptions, m as ShellCanvasChangeHandler, n as ShellDataChangeEvent, o as ShellDataChangeHandler, p as ShellStateChangeHandler, q as ShellTelemetry, r as StateSnapshot, s as StatusChangeHandler, T as TransformFn, t as createIdFactory } from './types-6KTCKlXf.cjs';
3
+ import { S as ShellConfig, a as Shell, R as RenderApi } from './types-CWOom_fv.cjs';
4
+ export { A as ActionInstance, b as ActionStatus, C as CanvasConfig, c as CanvasInitialSeed, d as CanvasState, e as ChannelHandler, D as DataChangeHandler, f as Desired, E as EventBus, g as EventHandler, F as FetchFn, h as FetchInit, i as FetchResponse, j as FunctionDefinition, k as FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler, l as NavigationEffect, P as PublicActionRuntime, m as PushOptions, n as ReconcileOptions, o as ReconcileResult, p as Reconciler, q as ReconcilerOptions, r as ShellCanvasChangeHandler, s as ShellDataChangeEvent, t as ShellDataChangeHandler, u as ShellStateChangeHandler, v as ShellTelemetry, w as StateSnapshot, x as StatusChangeHandler, T as TransformFn, y as createIdFactory, z as reconcileCanvas } from './types-CWOom_fv.cjs';
5
5
  import { N as NovaEvent } from './schemas-pMyyuXV7.cjs';
6
6
  export { a as NovaEventSchema } from './schemas-pMyyuXV7.cjs';
7
7
  import { z } from 'zod';
8
8
  import { C as ComponentNode, a as ConditionalNode, L as LayoutNode, b as LayoutPrimitive, c as LayoutRefNode, d as LoopNode, S as SlotNode } from './schemas-DPdeFlCT.cjs';
9
9
  export { e as ComponentNodeSchema, f as ConditionalNodeSchema, g as LayoutNodeSchema, h as LayoutPrimitiveSchema, i as LayoutRefNodeSchema, j as LoopNodeSchema, k as SlotNodeSchema } from './schemas-DPdeFlCT.cjs';
10
- export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, f as HeadElement, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from './head-CBse5408.cjs';
10
+ export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, f as HeadElement, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from './head-zznJvVEE.cjs';
11
11
  export { L as LayoutPaletteEntry, P as PaletteFromRegistryOptions, p as paletteEntryOf, a as paletteFromRegistry } from './palette-CCxWSi3C.cjs';
12
12
  import { A as ActionDefinition, a as ActionFragment } from './index-BoPH5aSd.cjs';
13
13
  export { b as ActionDefinitionSchema, c as ActionFragmentSchema } from './index-BoPH5aSd.cjs';
@@ -143,20 +143,4 @@ type NavigatedMessage = {
143
143
  declare const CANVAS_SLOT_NAME = "CanvasSlot";
144
144
  declare const ACTION_SLOT_NAME = "ActionSlot";
145
145
 
146
- type Desired = {
147
- actionId: string;
148
- input?: Record<string, unknown>;
149
- with?: string[];
150
- };
151
- type ReconcileOptions = {
152
- origin: string;
153
- definitionOf?: (actionId: string) => ActionDefinition | undefined;
154
- own?: 'pushed' | 'canvas';
155
- };
156
- type ReconcileResult = {
157
- changed: boolean;
158
- notes: string[];
159
- };
160
- declare const reconcileCanvas: (shell: Shell, canvasId: string, desired: readonly Desired[], options: ReconcileOptions) => ReconcileResult;
161
-
162
- export { ACTION_SLOT_NAME, ActionDefinition, ActionFragment, type AuditCatalogEntry, type AuditOptions, type AuditResult, CANVAS_SLOT_NAME, type ChannelUsage, ComponentMeta, ComponentNode, ComponentRegistry, ConditionalNode, DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, type Desired, HEAD_META, type HeadLinkProps, HeadLinkPropsSchema, type HeadMetaProps, HeadMetaPropsSchema, HeadPropsSchema, type HeadScriptProps, HeadScriptPropsSchema, HeadTitlePropsSchema, type HistoryEntry, type HistoryFrame, LayoutNode, LayoutPrimitive, LayoutRefNode, LayoutStore, type LifecycleConfig, LifecycleConfigSchema, LoopNode, type MessageEnvelope, MessageEnvelopeSchema, NOVA_MODEL_PROP, NOVA_REF_PROP, type NavigatedMessage, NovaEvent, type ReconcileOptions, type ReconcileResult, RenderApi, RenderNode, RenderOnError, type RenderOptions, Shell, ShellConfig, type ShellView, SlotNode, Step, auditAction, canvasTreeOf, collectChannels, composeAction, createComponentRegistry, createLayoutStore, createShell, fillSlots, getPath, hasVisibleContent, isComponentNode, isConditionalNode, isLayoutNode, isLayoutPrimitive, isLayoutRefNode, isLoopNode, isSlotNode, navigatedChannel, reconcileCanvas, render, renderLayout, renderLayoutFromStore, renderNodeKey, scopeDispatch, shellIdle, shellSettled, shellView };
146
+ export { ACTION_SLOT_NAME, ActionDefinition, ActionFragment, type AuditCatalogEntry, type AuditOptions, type AuditResult, CANVAS_SLOT_NAME, type ChannelUsage, ComponentMeta, ComponentNode, ComponentRegistry, ConditionalNode, DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, HEAD_META, type HeadLinkProps, HeadLinkPropsSchema, type HeadMetaProps, HeadMetaPropsSchema, HeadPropsSchema, type HeadScriptProps, HeadScriptPropsSchema, HeadTitlePropsSchema, type HistoryEntry, type HistoryFrame, LayoutNode, LayoutPrimitive, LayoutRefNode, LayoutStore, type LifecycleConfig, LifecycleConfigSchema, LoopNode, type MessageEnvelope, MessageEnvelopeSchema, NOVA_MODEL_PROP, NOVA_REF_PROP, type NavigatedMessage, NovaEvent, RenderApi, RenderNode, RenderOnError, type RenderOptions, Shell, ShellConfig, type ShellView, SlotNode, Step, auditAction, canvasTreeOf, collectChannels, composeAction, createComponentRegistry, createLayoutStore, createShell, fillSlots, getPath, hasVisibleContent, isComponentNode, isConditionalNode, isLayoutNode, isLayoutPrimitive, isLayoutRefNode, isLoopNode, isSlotNode, navigatedChannel, render, renderLayout, renderLayoutFromStore, renderNodeKey, scopeDispatch, shellIdle, shellSettled, shellView };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { R as RenderContext, a as RenderOnError, b as RenderNode, D as DataStoreView, L as LayoutStore, C as ComponentRegistry, c as ComponentMeta } from './types-CJC8mnzl.js';
2
2
  export { d as ComponentEntry, e as ComponentNotFoundContext, f as ComponentNotFoundError, g as DefinitionValidationContext, h as DefinitionValidationError, i as DefinitionValidationFailure, E as ErrorCode, j as ErrorCodes, k as EventMeta, l as LayoutRefNotFoundContext, m as LayoutRefNotFoundError, n as LifecycleError, o as LifecycleErrorContext, p as LifecycleHook, M as ModelBindingDescriptor, q as MutationError, N as NovaError, r as NovaErrorContext, s as RegistrationInput, t as RenderComponentNode, u as RenderError, v as RenderErrorNode, w as RenderFragmentNode, x as RenderTextNode, S as ShellDisposedError, U as UnknownActionContext, y as UnknownActionError, z as UnknownFragmentContext, A as UnknownFragmentError, B as UnknownFunctionContext, F as UnknownFunctionError, G as Unsubscribe } from './types-CJC8mnzl.js';
3
- import { S as ShellConfig, a as Shell, R as RenderApi } from './types-DV-GDFJd.js';
4
- export { A as ActionInstance, b as ActionStatus, C as CanvasConfig, c as CanvasInitialSeed, d as CanvasState, e as ChannelHandler, D as DataChangeHandler, E as EventBus, f as EventHandler, F as FetchFn, g as FetchInit, h as FetchResponse, i as FunctionDefinition, j as FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler, k as NavigationEffect, P as PublicActionRuntime, l as PushOptions, m as ShellCanvasChangeHandler, n as ShellDataChangeEvent, o as ShellDataChangeHandler, p as ShellStateChangeHandler, q as ShellTelemetry, r as StateSnapshot, s as StatusChangeHandler, T as TransformFn, t as createIdFactory } from './types-DV-GDFJd.js';
3
+ import { S as ShellConfig, a as Shell, R as RenderApi } from './types-DOm2MKDk.js';
4
+ export { A as ActionInstance, b as ActionStatus, C as CanvasConfig, c as CanvasInitialSeed, d as CanvasState, e as ChannelHandler, D as DataChangeHandler, f as Desired, E as EventBus, g as EventHandler, F as FetchFn, h as FetchInit, i as FetchResponse, j as FunctionDefinition, k as FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler, l as NavigationEffect, P as PublicActionRuntime, m as PushOptions, n as ReconcileOptions, o as ReconcileResult, p as Reconciler, q as ReconcilerOptions, r as ShellCanvasChangeHandler, s as ShellDataChangeEvent, t as ShellDataChangeHandler, u as ShellStateChangeHandler, v as ShellTelemetry, w as StateSnapshot, x as StatusChangeHandler, T as TransformFn, y as createIdFactory, z as reconcileCanvas } from './types-DOm2MKDk.js';
5
5
  import { N as NovaEvent } from './schemas-pMyyuXV7.js';
6
6
  export { a as NovaEventSchema } from './schemas-pMyyuXV7.js';
7
7
  import { z } from 'zod';
8
8
  import { C as ComponentNode, a as ConditionalNode, L as LayoutNode, b as LayoutPrimitive, c as LayoutRefNode, d as LoopNode, S as SlotNode } from './schemas-DPdeFlCT.js';
9
9
  export { e as ComponentNodeSchema, f as ConditionalNodeSchema, g as LayoutNodeSchema, h as LayoutPrimitiveSchema, i as LayoutRefNodeSchema, j as LoopNodeSchema, k as SlotNodeSchema } from './schemas-DPdeFlCT.js';
10
- export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, f as HeadElement, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from './head-pDYg3tbK.js';
10
+ export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, f as HeadElement, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from './head-CVjtToF8.js';
11
11
  export { L as LayoutPaletteEntry, P as PaletteFromRegistryOptions, p as paletteEntryOf, a as paletteFromRegistry } from './palette-BZujb2rm.js';
12
12
  import { A as ActionDefinition, a as ActionFragment } from './index-BjQX8XZl.js';
13
13
  export { b as ActionDefinitionSchema, c as ActionFragmentSchema } from './index-BjQX8XZl.js';
@@ -143,20 +143,4 @@ type NavigatedMessage = {
143
143
  declare const CANVAS_SLOT_NAME = "CanvasSlot";
144
144
  declare const ACTION_SLOT_NAME = "ActionSlot";
145
145
 
146
- type Desired = {
147
- actionId: string;
148
- input?: Record<string, unknown>;
149
- with?: string[];
150
- };
151
- type ReconcileOptions = {
152
- origin: string;
153
- definitionOf?: (actionId: string) => ActionDefinition | undefined;
154
- own?: 'pushed' | 'canvas';
155
- };
156
- type ReconcileResult = {
157
- changed: boolean;
158
- notes: string[];
159
- };
160
- declare const reconcileCanvas: (shell: Shell, canvasId: string, desired: readonly Desired[], options: ReconcileOptions) => ReconcileResult;
161
-
162
- export { ACTION_SLOT_NAME, ActionDefinition, ActionFragment, type AuditCatalogEntry, type AuditOptions, type AuditResult, CANVAS_SLOT_NAME, type ChannelUsage, ComponentMeta, ComponentNode, ComponentRegistry, ConditionalNode, DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, type Desired, HEAD_META, type HeadLinkProps, HeadLinkPropsSchema, type HeadMetaProps, HeadMetaPropsSchema, HeadPropsSchema, type HeadScriptProps, HeadScriptPropsSchema, HeadTitlePropsSchema, type HistoryEntry, type HistoryFrame, LayoutNode, LayoutPrimitive, LayoutRefNode, LayoutStore, type LifecycleConfig, LifecycleConfigSchema, LoopNode, type MessageEnvelope, MessageEnvelopeSchema, NOVA_MODEL_PROP, NOVA_REF_PROP, type NavigatedMessage, NovaEvent, type ReconcileOptions, type ReconcileResult, RenderApi, RenderNode, RenderOnError, type RenderOptions, Shell, ShellConfig, type ShellView, SlotNode, Step, auditAction, canvasTreeOf, collectChannels, composeAction, createComponentRegistry, createLayoutStore, createShell, fillSlots, getPath, hasVisibleContent, isComponentNode, isConditionalNode, isLayoutNode, isLayoutPrimitive, isLayoutRefNode, isLoopNode, isSlotNode, navigatedChannel, reconcileCanvas, render, renderLayout, renderLayoutFromStore, renderNodeKey, scopeDispatch, shellIdle, shellSettled, shellView };
146
+ export { ACTION_SLOT_NAME, ActionDefinition, ActionFragment, type AuditCatalogEntry, type AuditOptions, type AuditResult, CANVAS_SLOT_NAME, type ChannelUsage, ComponentMeta, ComponentNode, ComponentRegistry, ConditionalNode, DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, HEAD_META, type HeadLinkProps, HeadLinkPropsSchema, type HeadMetaProps, HeadMetaPropsSchema, HeadPropsSchema, type HeadScriptProps, HeadScriptPropsSchema, HeadTitlePropsSchema, type HistoryEntry, type HistoryFrame, LayoutNode, LayoutPrimitive, LayoutRefNode, LayoutStore, type LifecycleConfig, LifecycleConfigSchema, LoopNode, type MessageEnvelope, MessageEnvelopeSchema, NOVA_MODEL_PROP, NOVA_REF_PROP, type NavigatedMessage, NovaEvent, RenderApi, RenderNode, RenderOnError, type RenderOptions, Shell, ShellConfig, type ShellView, SlotNode, Step, auditAction, canvasTreeOf, collectChannels, composeAction, createComponentRegistry, createLayoutStore, createShell, fillSlots, getPath, hasVisibleContent, isComponentNode, isConditionalNode, isLayoutNode, isLayoutPrimitive, isLayoutRefNode, isLoopNode, isSlotNode, navigatedChannel, render, renderLayout, renderLayoutFromStore, renderNodeKey, scopeDispatch, shellIdle, shellSettled, shellView };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { paletteEntryOf, paletteFromRegistry } from './chunk-OBFFZ23H.js';
2
- export { DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, MessageEnvelopeSchema, NovaEventSchema, canvasTreeOf, createIdFactory, createShell, hasVisibleContent, navigatedChannel, reconcileCanvas, scopeDispatch, shellIdle, shellSettled, shellView } from './chunk-L5HAGG4U.js';
2
+ export { DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, MessageEnvelopeSchema, NovaEventSchema, canvasTreeOf, createIdFactory, createShell, hasVisibleContent, navigatedChannel, reconcileCanvas, scopeDispatch, shellIdle, shellSettled, shellView } from './chunk-OY7SCFTJ.js';
3
3
  export { ACTION_SLOT_NAME, CANVAS_SLOT_NAME, headOf, isHeadNode } from './chunk-C63CBYD5.js';
4
4
  export { HEAD_META, HeadLinkPropsSchema, HeadMetaPropsSchema, HeadPropsSchema, HeadScriptPropsSchema, HeadTitlePropsSchema, NOVA_MODEL_PROP, NOVA_REF_PROP, auditAction, collectChannels, composeAction, createLayoutStore, fillSlots, isComponentNode, isConditionalNode, isLayoutNode, isLayoutPrimitive, isLayoutRefNode, isLoopNode, isSlotNode, render, renderLayout, renderLayoutFromStore, renderNodeKey } from './chunk-E2PXYR3H.js';
5
5
  import './chunk-A3IIJF4E.js';
@@ -1,4 +1,4 @@
1
- import { a as Shell } from '../types-6KTCKlXf.cjs';
1
+ import { a as Shell } from '../types-CWOom_fv.cjs';
2
2
  import { L as LayoutNode } from '../schemas-DPdeFlCT.cjs';
3
3
  import { E as EndpointConfig, T as TriggerConfig } from '../endpoints-fqx9Vmf6.cjs';
4
4
  import { A as ActionDefinition } from '../index-BoPH5aSd.cjs';
@@ -1,4 +1,4 @@
1
- import { a as Shell } from '../types-DV-GDFJd.js';
1
+ import { a as Shell } from '../types-DOm2MKDk.js';
2
2
  import { L as LayoutNode } from '../schemas-DPdeFlCT.js';
3
3
  import { E as EndpointConfig, T as TriggerConfig } from '../endpoints-DD6VsLv9.js';
4
4
  import { A as ActionDefinition } from '../index-BjQX8XZl.js';
@@ -68,6 +68,7 @@ type ReconcileNavigation = {
68
68
  desired: {
69
69
  actionId: string;
70
70
  input?: Record<string, unknown>;
71
+ row?: Record<string, unknown>;
71
72
  }[];
72
73
  };
73
74
  };
@@ -94,6 +95,28 @@ type PublicActionRuntime = {
94
95
  onStatusChange: (handler: StatusChangeHandler) => Unsubscribe;
95
96
  };
96
97
 
98
+ type Desired = {
99
+ actionId: string;
100
+ input?: Record<string, unknown>;
101
+ with?: string[];
102
+ row?: Record<string, unknown>;
103
+ };
104
+ type ReconcileOptions = {
105
+ origin: string;
106
+ definitionOf?: (actionId: string) => ActionDefinition | undefined;
107
+ own?: 'pushed' | 'canvas';
108
+ };
109
+ type ReconcileResult = {
110
+ changed: boolean;
111
+ notes: string[];
112
+ };
113
+ type ReconcilerOptions = ReconcileOptions & {
114
+ moveInstance: (canvasId: string, instanceId: string, index: number) => void;
115
+ keyOf: (instanceId: string) => string | undefined;
116
+ };
117
+ type Reconciler = (shell: Shell, canvasId: string, desired: readonly Desired[], options: ReconcilerOptions) => ReconcileResult;
118
+ declare const reconcileCanvas: (shell: Shell, canvasId: string, desired: readonly Desired[], options: ReconcileOptions) => ReconcileResult;
119
+
97
120
  type CanvasInitialSeed = string | {
98
121
  action: string;
99
122
  input?: Record<string, unknown>;
@@ -104,10 +127,12 @@ type CanvasConfig = {
104
127
  mode?: 'stack' | 'list';
105
128
  actionLayout?: LayoutNode | string;
106
129
  initial?: CanvasInitialSeed | CanvasInitialSeed[];
130
+ reconcile?: string;
107
131
  };
108
132
  type PushOptions = {
109
133
  origin?: string;
110
134
  history?: boolean;
135
+ key?: string;
111
136
  };
112
137
  type CanvasState = {
113
138
  id: string;
@@ -147,6 +172,7 @@ type ShellConfig = {
147
172
  transform?: TransformFn;
148
173
  fetch?: FetchFn;
149
174
  functions?: Record<string, FunctionHandler>;
175
+ reconcilers?: Record<string, Reconciler>;
150
176
  endpointTimeoutMs?: number;
151
177
  telemetry?: ShellTelemetry;
152
178
  strict?: boolean;
@@ -195,4 +221,4 @@ type Shell = {
195
221
  dispose: () => void;
196
222
  };
197
223
 
198
- export { type ActionInstance as A, type CanvasConfig as C, type DataChangeHandler$1 as D, type EventBus as E, type FetchFn as F, type IdFactory as I, type MessageBus as M, type NavigateHandler as N, type PublicActionRuntime as P, type RenderApi as R, type ShellConfig as S, type TransformFn as T, type Shell as a, type ActionStatus as b, type CanvasInitialSeed as c, type CanvasState as d, type ChannelHandler as e, type EventHandler as f, type FetchInit as g, type FetchResponse as h, type FunctionDefinition as i, type FunctionHandler as j, type NavigationEffect as k, type PushOptions as l, type CanvasChangeHandler as m, type DataChangeEvent as n, type DataChangeHandler as o, type StateChangeHandler as p, type ShellTelemetry as q, type StateSnapshot as r, type StatusChangeHandler as s, createIdFactory as t };
224
+ export { type ActionInstance as A, type CanvasConfig as C, type DataChangeHandler$1 as D, type EventBus as E, type FetchFn as F, type IdFactory as I, type MessageBus as M, type NavigateHandler as N, type PublicActionRuntime as P, type RenderApi as R, type ShellConfig as S, type TransformFn as T, type Shell as a, type ActionStatus as b, type CanvasInitialSeed as c, type CanvasState as d, type ChannelHandler as e, type Desired as f, type EventHandler as g, type FetchInit as h, type FetchResponse as i, type FunctionDefinition as j, type FunctionHandler as k, type NavigationEffect as l, type PushOptions as m, type ReconcileOptions as n, type ReconcileResult as o, type Reconciler as p, type ReconcilerOptions as q, type CanvasChangeHandler as r, type DataChangeEvent as s, type DataChangeHandler as t, type StateChangeHandler as u, type ShellTelemetry as v, type StateSnapshot as w, type StatusChangeHandler as x, createIdFactory as y, reconcileCanvas as z };
@@ -68,6 +68,7 @@ type ReconcileNavigation = {
68
68
  desired: {
69
69
  actionId: string;
70
70
  input?: Record<string, unknown>;
71
+ row?: Record<string, unknown>;
71
72
  }[];
72
73
  };
73
74
  };
@@ -94,6 +95,28 @@ type PublicActionRuntime = {
94
95
  onStatusChange: (handler: StatusChangeHandler) => Unsubscribe;
95
96
  };
96
97
 
98
+ type Desired = {
99
+ actionId: string;
100
+ input?: Record<string, unknown>;
101
+ with?: string[];
102
+ row?: Record<string, unknown>;
103
+ };
104
+ type ReconcileOptions = {
105
+ origin: string;
106
+ definitionOf?: (actionId: string) => ActionDefinition | undefined;
107
+ own?: 'pushed' | 'canvas';
108
+ };
109
+ type ReconcileResult = {
110
+ changed: boolean;
111
+ notes: string[];
112
+ };
113
+ type ReconcilerOptions = ReconcileOptions & {
114
+ moveInstance: (canvasId: string, instanceId: string, index: number) => void;
115
+ keyOf: (instanceId: string) => string | undefined;
116
+ };
117
+ type Reconciler = (shell: Shell, canvasId: string, desired: readonly Desired[], options: ReconcilerOptions) => ReconcileResult;
118
+ declare const reconcileCanvas: (shell: Shell, canvasId: string, desired: readonly Desired[], options: ReconcileOptions) => ReconcileResult;
119
+
97
120
  type CanvasInitialSeed = string | {
98
121
  action: string;
99
122
  input?: Record<string, unknown>;
@@ -104,10 +127,12 @@ type CanvasConfig = {
104
127
  mode?: 'stack' | 'list';
105
128
  actionLayout?: LayoutNode | string;
106
129
  initial?: CanvasInitialSeed | CanvasInitialSeed[];
130
+ reconcile?: string;
107
131
  };
108
132
  type PushOptions = {
109
133
  origin?: string;
110
134
  history?: boolean;
135
+ key?: string;
111
136
  };
112
137
  type CanvasState = {
113
138
  id: string;
@@ -147,6 +172,7 @@ type ShellConfig = {
147
172
  transform?: TransformFn;
148
173
  fetch?: FetchFn;
149
174
  functions?: Record<string, FunctionHandler>;
175
+ reconcilers?: Record<string, Reconciler>;
150
176
  endpointTimeoutMs?: number;
151
177
  telemetry?: ShellTelemetry;
152
178
  strict?: boolean;
@@ -195,4 +221,4 @@ type Shell = {
195
221
  dispose: () => void;
196
222
  };
197
223
 
198
- export { type ActionInstance as A, type CanvasConfig as C, type DataChangeHandler$1 as D, type EventBus as E, type FetchFn as F, type IdFactory as I, type MessageBus as M, type NavigateHandler as N, type PublicActionRuntime as P, type RenderApi as R, type ShellConfig as S, type TransformFn as T, type Shell as a, type ActionStatus as b, type CanvasInitialSeed as c, type CanvasState as d, type ChannelHandler as e, type EventHandler as f, type FetchInit as g, type FetchResponse as h, type FunctionDefinition as i, type FunctionHandler as j, type NavigationEffect as k, type PushOptions as l, type CanvasChangeHandler as m, type DataChangeEvent as n, type DataChangeHandler as o, type StateChangeHandler as p, type ShellTelemetry as q, type StateSnapshot as r, type StatusChangeHandler as s, createIdFactory as t };
224
+ export { type ActionInstance as A, type CanvasConfig as C, type DataChangeHandler$1 as D, type EventBus as E, type FetchFn as F, type IdFactory as I, type MessageBus as M, type NavigateHandler as N, type PublicActionRuntime as P, type RenderApi as R, type ShellConfig as S, type TransformFn as T, type Shell as a, type ActionStatus as b, type CanvasInitialSeed as c, type CanvasState as d, type ChannelHandler as e, type Desired as f, type EventHandler as g, type FetchInit as h, type FetchResponse as i, type FunctionDefinition as j, type FunctionHandler as k, type NavigationEffect as l, type PushOptions as m, type ReconcileOptions as n, type ReconcileResult as o, type Reconciler as p, type ReconcilerOptions as q, type CanvasChangeHandler as r, type DataChangeEvent as s, type DataChangeHandler as t, type StateChangeHandler as u, type ShellTelemetry as v, type StateSnapshot as w, type StatusChangeHandler as x, createIdFactory as y, reconcileCanvas as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niscorp/nova",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Declarative UI framework for AI agents — JSON layouts, shell orchestration, React",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -215,9 +215,9 @@
215
215
  "vitest": "^4.1.2",
216
216
  "vue": "^3.5.43",
217
217
  "zod": "^4.6.5",
218
- "@niscorp/cortex": "^0.1.4",
219
- "@niscorp/prism": "^0.3.1",
220
- "@niscorp/strata": "^0.1.7"
218
+ "@niscorp/cortex": "^0.1.6",
219
+ "@niscorp/prism": "^0.3.3",
220
+ "@niscorp/strata": "^0.1.9"
221
221
  },
222
222
  "peerDependencies": {
223
223
  "ink": "^7.1.1",
@@ -225,9 +225,9 @@
225
225
  "react": "^19.2.4",
226
226
  "zod": "^4.2.0",
227
227
  "vue": "^3.5.0",
228
- "@niscorp/cortex": "^0.1.4",
229
- "@niscorp/prism": "^0.3.1",
230
- "@niscorp/strata": "^0.1.7"
228
+ "@niscorp/cortex": "^0.1.6",
229
+ "@niscorp/prism": "^0.3.3",
230
+ "@niscorp/strata": "^0.1.9"
231
231
  },
232
232
  "peerDependenciesMeta": {
233
233
  "@niscorp/cortex": {