@niscorp/nova 0.3.1 → 0.5.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 (98) hide show
  1. package/ACTION_DOCS.md +1 -1
  2. package/CHANGELOG.md +30 -0
  3. package/DESIGN.md +9 -6
  4. package/README.md +13 -11
  5. package/SHELL_DOCS.md +8 -10
  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 +6 -6
  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 +4 -4
  12. package/dist/adapters/dom/server.cjs +5 -5
  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 +4 -4
  16. package/dist/adapters/react/components/index.cjs +24 -24
  17. package/dist/adapters/react/components/index.js +5 -5
  18. package/dist/adapters/react/index.cjs +27 -27
  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 +5 -5
  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 +3 -3
  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 +3 -3
  28. package/dist/adapters/vue/components/index.cjs +24 -24
  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 +5 -5
  32. package/dist/adapters/vue/index.cjs +32 -32
  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 +6 -6
  36. package/dist/agent/index.cjs +2 -2
  37. package/dist/agent/index.js +1 -1
  38. package/dist/{chunk-ZZRQAH5Z.js → chunk-A3IIJF4E.js} +16 -12
  39. package/dist/chunk-A3IIJF4E.js.map +1 -0
  40. package/dist/{chunk-ZVQKCDUG.cjs → chunk-BML7HQPE.cjs} +8 -28
  41. package/dist/chunk-BML7HQPE.cjs.map +1 -0
  42. package/dist/{chunk-FKAPJMNR.cjs → chunk-CAKJCAHW.cjs} +22 -22
  43. package/dist/{chunk-FKAPJMNR.cjs.map → chunk-CAKJCAHW.cjs.map} +1 -1
  44. package/dist/{chunk-HDREPLRA.cjs → chunk-DMAVKM7M.cjs} +6 -6
  45. package/dist/{chunk-HDREPLRA.cjs.map → chunk-DMAVKM7M.cjs.map} +1 -1
  46. package/dist/{chunk-YV2G37TJ.js → chunk-E2PXYR3H.js} +3 -3
  47. package/dist/{chunk-YV2G37TJ.js.map → chunk-E2PXYR3H.js.map} +1 -1
  48. package/dist/{chunk-SABSY2BW.cjs → chunk-FVGJD6CI.cjs} +4 -4
  49. package/dist/{chunk-SABSY2BW.cjs.map → chunk-FVGJD6CI.cjs.map} +1 -1
  50. package/dist/{chunk-OSIFUROH.js → chunk-GFMNQT2X.js} +5 -5
  51. package/dist/{chunk-OSIFUROH.js.map → chunk-GFMNQT2X.js.map} +1 -1
  52. package/dist/{chunk-UXFQZX6O.js → chunk-GY3KNTNK.js} +6 -26
  53. package/dist/chunk-GY3KNTNK.js.map +1 -0
  54. package/dist/{chunk-PCUXNVWF.js → chunk-IIOO6Z4T.js} +5 -5
  55. package/dist/{chunk-PCUXNVWF.js.map → chunk-IIOO6Z4T.js.map} +1 -1
  56. package/dist/{chunk-3JE77TNL.js → chunk-L5HAGG4U.js} +41 -22
  57. package/dist/chunk-L5HAGG4U.js.map +1 -0
  58. package/dist/{chunk-BXUEWV7V.cjs → chunk-OM2HY2GE.cjs} +16 -12
  59. package/dist/chunk-OM2HY2GE.cjs.map +1 -0
  60. package/dist/{chunk-2H6Y25FO.js → chunk-OPF42ISN.js} +4 -4
  61. package/dist/{chunk-2H6Y25FO.js.map → chunk-OPF42ISN.js.map} +1 -1
  62. package/dist/{chunk-I35ZD3PU.cjs → chunk-TWXAKLMX.cjs} +21 -21
  63. package/dist/{chunk-I35ZD3PU.cjs.map → chunk-TWXAKLMX.cjs.map} +1 -1
  64. package/dist/{chunk-K54CT3QN.cjs → chunk-VDB7VHFS.cjs} +4 -4
  65. package/dist/{chunk-K54CT3QN.cjs.map → chunk-VDB7VHFS.cjs.map} +1 -1
  66. package/dist/{chunk-EK2GBZ7D.js → chunk-WKDPEBXU.js} +3 -3
  67. package/dist/{chunk-EK2GBZ7D.js.map → chunk-WKDPEBXU.js.map} +1 -1
  68. package/dist/{chunk-DLZNZHUW.cjs → chunk-WRVT7JTK.cjs} +72 -53
  69. package/dist/chunk-WRVT7JTK.cjs.map +1 -0
  70. package/dist/devtools/index.cjs +52 -32
  71. package/dist/devtools/index.cjs.map +1 -1
  72. package/dist/devtools/index.d.cts +2 -2
  73. package/dist/devtools/index.d.ts +2 -2
  74. package/dist/devtools/index.js +52 -32
  75. package/dist/devtools/index.js.map +1 -1
  76. package/dist/document/index.d.cts +3 -3
  77. package/dist/document/index.d.ts +3 -3
  78. package/dist/examples/index.d.cts +1 -1
  79. package/dist/examples/index.d.ts +1 -1
  80. package/dist/{head-BOjhYA36.d.cts → head-CBse5408.d.cts} +1 -1
  81. package/dist/{head-CBib11hD.d.ts → head-pDYg3tbK.d.ts} +1 -1
  82. package/dist/index.cjs +41 -41
  83. package/dist/index.d.cts +3 -3
  84. package/dist/index.d.ts +3 -3
  85. package/dist/index.js +3 -3
  86. package/dist/reflect/index.cjs +21 -21
  87. package/dist/reflect/index.d.cts +2 -2
  88. package/dist/reflect/index.d.ts +2 -2
  89. package/dist/reflect/index.js +3 -3
  90. package/dist/{types-OsJI-ceI.d.cts → types-6KTCKlXf.d.cts} +7 -3
  91. package/dist/{types-Dn9cBFCC.d.ts → types-DV-GDFJd.d.ts} +7 -3
  92. package/package.json +3 -3
  93. package/dist/chunk-3JE77TNL.js.map +0 -1
  94. package/dist/chunk-BXUEWV7V.cjs.map +0 -1
  95. package/dist/chunk-DLZNZHUW.cjs.map +0 -1
  96. package/dist/chunk-UXFQZX6O.js.map +0 -1
  97. package/dist/chunk-ZVQKCDUG.cjs.map +0 -1
  98. package/dist/chunk-ZZRQAH5Z.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDC5HONDE_cjs = require('./chunk-DC5HONDE.cjs');
4
- var chunkDLZNZHUW_cjs = require('./chunk-DLZNZHUW.cjs');
4
+ var chunkWRVT7JTK_cjs = require('./chunk-WRVT7JTK.cjs');
5
5
  var chunkQTJ4ZQRM_cjs = require('./chunk-QTJ4ZQRM.cjs');
6
- var chunkK54CT3QN_cjs = require('./chunk-K54CT3QN.cjs');
7
- require('./chunk-BXUEWV7V.cjs');
6
+ var chunkVDB7VHFS_cjs = require('./chunk-VDB7VHFS.cjs');
7
+ require('./chunk-OM2HY2GE.cjs');
8
8
  require('./chunk-RVU6YEHO.cjs');
9
9
  var chunkMEZCO7ND_cjs = require('./chunk-MEZCO7ND.cjs');
10
10
  var chunkCQZH3L3W_cjs = require('./chunk-CQZH3L3W.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 chunkDLZNZHUW_cjs.DEFAULT_HISTORY_DEPTH; }
28
+ get: function () { return chunkWRVT7JTK_cjs.DEFAULT_HISTORY_DEPTH; }
29
29
  });
30
30
  Object.defineProperty(exports, "DEFAULT_SETTLE_WAIT_MS", {
31
31
  enumerable: true,
32
- get: function () { return chunkDLZNZHUW_cjs.DEFAULT_SETTLE_WAIT_MS; }
32
+ get: function () { return chunkWRVT7JTK_cjs.DEFAULT_SETTLE_WAIT_MS; }
33
33
  });
34
34
  Object.defineProperty(exports, "MessageEnvelopeSchema", {
35
35
  enumerable: true,
36
- get: function () { return chunkDLZNZHUW_cjs.MessageEnvelopeSchema; }
36
+ get: function () { return chunkWRVT7JTK_cjs.MessageEnvelopeSchema; }
37
37
  });
38
38
  Object.defineProperty(exports, "NovaEventSchema", {
39
39
  enumerable: true,
40
- get: function () { return chunkDLZNZHUW_cjs.NovaEventSchema; }
40
+ get: function () { return chunkWRVT7JTK_cjs.NovaEventSchema; }
41
41
  });
42
42
  Object.defineProperty(exports, "canvasTreeOf", {
43
43
  enumerable: true,
44
- get: function () { return chunkDLZNZHUW_cjs.canvasTreeOf; }
44
+ get: function () { return chunkWRVT7JTK_cjs.canvasTreeOf; }
45
45
  });
46
46
  Object.defineProperty(exports, "createIdFactory", {
47
47
  enumerable: true,
48
- get: function () { return chunkDLZNZHUW_cjs.createIdFactory; }
48
+ get: function () { return chunkWRVT7JTK_cjs.createIdFactory; }
49
49
  });
50
50
  Object.defineProperty(exports, "createShell", {
51
51
  enumerable: true,
52
- get: function () { return chunkDLZNZHUW_cjs.createShell; }
52
+ get: function () { return chunkWRVT7JTK_cjs.createShell; }
53
53
  });
54
54
  Object.defineProperty(exports, "hasVisibleContent", {
55
55
  enumerable: true,
56
- get: function () { return chunkDLZNZHUW_cjs.hasVisibleContent; }
56
+ get: function () { return chunkWRVT7JTK_cjs.hasVisibleContent; }
57
57
  });
58
58
  Object.defineProperty(exports, "navigatedChannel", {
59
59
  enumerable: true,
60
- get: function () { return chunkDLZNZHUW_cjs.navigatedChannel; }
60
+ get: function () { return chunkWRVT7JTK_cjs.navigatedChannel; }
61
61
  });
62
62
  Object.defineProperty(exports, "reconcileCanvas", {
63
63
  enumerable: true,
64
- get: function () { return chunkDLZNZHUW_cjs.reconcileCanvas; }
64
+ get: function () { return chunkWRVT7JTK_cjs.reconcileCanvas; }
65
65
  });
66
66
  Object.defineProperty(exports, "scopeDispatch", {
67
67
  enumerable: true,
68
- get: function () { return chunkDLZNZHUW_cjs.scopeDispatch; }
68
+ get: function () { return chunkWRVT7JTK_cjs.scopeDispatch; }
69
69
  });
70
70
  Object.defineProperty(exports, "shellIdle", {
71
71
  enumerable: true,
72
- get: function () { return chunkDLZNZHUW_cjs.shellIdle; }
72
+ get: function () { return chunkWRVT7JTK_cjs.shellIdle; }
73
73
  });
74
74
  Object.defineProperty(exports, "shellSettled", {
75
75
  enumerable: true,
76
- get: function () { return chunkDLZNZHUW_cjs.shellSettled; }
76
+ get: function () { return chunkWRVT7JTK_cjs.shellSettled; }
77
77
  });
78
78
  Object.defineProperty(exports, "shellView", {
79
79
  enumerable: true,
80
- get: function () { return chunkDLZNZHUW_cjs.shellView; }
80
+ get: function () { return chunkWRVT7JTK_cjs.shellView; }
81
81
  });
82
82
  Object.defineProperty(exports, "ACTION_SLOT_NAME", {
83
83
  enumerable: true,
@@ -97,99 +97,99 @@ Object.defineProperty(exports, "isHeadNode", {
97
97
  });
98
98
  Object.defineProperty(exports, "HEAD_META", {
99
99
  enumerable: true,
100
- get: function () { return chunkK54CT3QN_cjs.HEAD_META; }
100
+ get: function () { return chunkVDB7VHFS_cjs.HEAD_META; }
101
101
  });
102
102
  Object.defineProperty(exports, "HeadLinkPropsSchema", {
103
103
  enumerable: true,
104
- get: function () { return chunkK54CT3QN_cjs.HeadLinkPropsSchema; }
104
+ get: function () { return chunkVDB7VHFS_cjs.HeadLinkPropsSchema; }
105
105
  });
106
106
  Object.defineProperty(exports, "HeadMetaPropsSchema", {
107
107
  enumerable: true,
108
- get: function () { return chunkK54CT3QN_cjs.HeadMetaPropsSchema; }
108
+ get: function () { return chunkVDB7VHFS_cjs.HeadMetaPropsSchema; }
109
109
  });
110
110
  Object.defineProperty(exports, "HeadPropsSchema", {
111
111
  enumerable: true,
112
- get: function () { return chunkK54CT3QN_cjs.HeadPropsSchema; }
112
+ get: function () { return chunkVDB7VHFS_cjs.HeadPropsSchema; }
113
113
  });
114
114
  Object.defineProperty(exports, "HeadScriptPropsSchema", {
115
115
  enumerable: true,
116
- get: function () { return chunkK54CT3QN_cjs.HeadScriptPropsSchema; }
116
+ get: function () { return chunkVDB7VHFS_cjs.HeadScriptPropsSchema; }
117
117
  });
118
118
  Object.defineProperty(exports, "HeadTitlePropsSchema", {
119
119
  enumerable: true,
120
- get: function () { return chunkK54CT3QN_cjs.HeadTitlePropsSchema; }
120
+ get: function () { return chunkVDB7VHFS_cjs.HeadTitlePropsSchema; }
121
121
  });
122
122
  Object.defineProperty(exports, "NOVA_MODEL_PROP", {
123
123
  enumerable: true,
124
- get: function () { return chunkK54CT3QN_cjs.NOVA_MODEL_PROP; }
124
+ get: function () { return chunkVDB7VHFS_cjs.NOVA_MODEL_PROP; }
125
125
  });
126
126
  Object.defineProperty(exports, "NOVA_REF_PROP", {
127
127
  enumerable: true,
128
- get: function () { return chunkK54CT3QN_cjs.NOVA_REF_PROP; }
128
+ get: function () { return chunkVDB7VHFS_cjs.NOVA_REF_PROP; }
129
129
  });
130
130
  Object.defineProperty(exports, "auditAction", {
131
131
  enumerable: true,
132
- get: function () { return chunkK54CT3QN_cjs.auditAction; }
132
+ get: function () { return chunkVDB7VHFS_cjs.auditAction; }
133
133
  });
134
134
  Object.defineProperty(exports, "collectChannels", {
135
135
  enumerable: true,
136
- get: function () { return chunkK54CT3QN_cjs.collectChannels; }
136
+ get: function () { return chunkVDB7VHFS_cjs.collectChannels; }
137
137
  });
138
138
  Object.defineProperty(exports, "composeAction", {
139
139
  enumerable: true,
140
- get: function () { return chunkK54CT3QN_cjs.composeAction; }
140
+ get: function () { return chunkVDB7VHFS_cjs.composeAction; }
141
141
  });
142
142
  Object.defineProperty(exports, "createLayoutStore", {
143
143
  enumerable: true,
144
- get: function () { return chunkK54CT3QN_cjs.createLayoutStore; }
144
+ get: function () { return chunkVDB7VHFS_cjs.createLayoutStore; }
145
145
  });
146
146
  Object.defineProperty(exports, "fillSlots", {
147
147
  enumerable: true,
148
- get: function () { return chunkK54CT3QN_cjs.fillSlots; }
148
+ get: function () { return chunkVDB7VHFS_cjs.fillSlots; }
149
149
  });
150
150
  Object.defineProperty(exports, "isComponentNode", {
151
151
  enumerable: true,
152
- get: function () { return chunkK54CT3QN_cjs.isComponentNode; }
152
+ get: function () { return chunkVDB7VHFS_cjs.isComponentNode; }
153
153
  });
154
154
  Object.defineProperty(exports, "isConditionalNode", {
155
155
  enumerable: true,
156
- get: function () { return chunkK54CT3QN_cjs.isConditionalNode; }
156
+ get: function () { return chunkVDB7VHFS_cjs.isConditionalNode; }
157
157
  });
158
158
  Object.defineProperty(exports, "isLayoutNode", {
159
159
  enumerable: true,
160
- get: function () { return chunkK54CT3QN_cjs.isLayoutNode; }
160
+ get: function () { return chunkVDB7VHFS_cjs.isLayoutNode; }
161
161
  });
162
162
  Object.defineProperty(exports, "isLayoutPrimitive", {
163
163
  enumerable: true,
164
- get: function () { return chunkK54CT3QN_cjs.isLayoutPrimitive; }
164
+ get: function () { return chunkVDB7VHFS_cjs.isLayoutPrimitive; }
165
165
  });
166
166
  Object.defineProperty(exports, "isLayoutRefNode", {
167
167
  enumerable: true,
168
- get: function () { return chunkK54CT3QN_cjs.isLayoutRefNode; }
168
+ get: function () { return chunkVDB7VHFS_cjs.isLayoutRefNode; }
169
169
  });
170
170
  Object.defineProperty(exports, "isLoopNode", {
171
171
  enumerable: true,
172
- get: function () { return chunkK54CT3QN_cjs.isLoopNode; }
172
+ get: function () { return chunkVDB7VHFS_cjs.isLoopNode; }
173
173
  });
174
174
  Object.defineProperty(exports, "isSlotNode", {
175
175
  enumerable: true,
176
- get: function () { return chunkK54CT3QN_cjs.isSlotNode; }
176
+ get: function () { return chunkVDB7VHFS_cjs.isSlotNode; }
177
177
  });
178
178
  Object.defineProperty(exports, "render", {
179
179
  enumerable: true,
180
- get: function () { return chunkK54CT3QN_cjs.render; }
180
+ get: function () { return chunkVDB7VHFS_cjs.render; }
181
181
  });
182
182
  Object.defineProperty(exports, "renderLayout", {
183
183
  enumerable: true,
184
- get: function () { return chunkK54CT3QN_cjs.renderLayout; }
184
+ get: function () { return chunkVDB7VHFS_cjs.renderLayout; }
185
185
  });
186
186
  Object.defineProperty(exports, "renderLayoutFromStore", {
187
187
  enumerable: true,
188
- get: function () { return chunkK54CT3QN_cjs.renderLayoutFromStore; }
188
+ get: function () { return chunkVDB7VHFS_cjs.renderLayoutFromStore; }
189
189
  });
190
190
  Object.defineProperty(exports, "renderNodeKey", {
191
191
  enumerable: true,
192
- get: function () { return chunkK54CT3QN_cjs.renderNodeKey; }
192
+ get: function () { return chunkVDB7VHFS_cjs.renderNodeKey; }
193
193
  });
194
194
  Object.defineProperty(exports, "HEAD_LINK_NAME", {
195
195
  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-OsJI-ceI.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 FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler, j as NavigationEffect, P as PublicActionRuntime, k as PushOptions, l as ShellCanvasChangeHandler, m as ShellDataChangeEvent, n as ShellDataChangeHandler, o as ShellStateChangeHandler, p as ShellTelemetry, q as StateSnapshot, r as StatusChangeHandler, T as TransformFn, s as createIdFactory } from './types-OsJI-ceI.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';
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-BOjhYA36.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';
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';
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-Dn9cBFCC.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 FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler, j as NavigationEffect, P as PublicActionRuntime, k as PushOptions, l as ShellCanvasChangeHandler, m as ShellDataChangeEvent, n as ShellDataChangeHandler, o as ShellStateChangeHandler, p as ShellTelemetry, q as StateSnapshot, r as StatusChangeHandler, T as TransformFn, s as createIdFactory } from './types-Dn9cBFCC.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';
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-CBib11hD.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';
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';
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
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-3JE77TNL.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';
3
3
  export { ACTION_SLOT_NAME, CANVAS_SLOT_NAME, headOf, isHeadNode } from './chunk-C63CBYD5.js';
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-YV2G37TJ.js';
5
- import './chunk-ZZRQAH5Z.js';
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
+ import './chunk-A3IIJF4E.js';
6
6
  import './chunk-M2ZZUSH3.js';
7
7
  export { HEAD_LINK_NAME, HEAD_META_NAME, HEAD_NAME, HEAD_NAMES, HEAD_SCRIPT_NAME, HEAD_TITLE_NAME, headKeyOf } from './chunk-Y3UKAJJX.js';
8
8
  export { ActionDefinitionSchema, ActionFragmentSchema, ComponentNotFoundError, DefinitionValidationError, EffectSchema, EndpointConfigSchema, ErrorCodes, LayoutRefNotFoundError, LifecycleConfigSchema, LifecycleError, MutationError, MutationSchema, NovaError, RenderError, ShellDisposedError, StepSchema, TriggerConfigSchema, UnknownActionError, UnknownFragmentError, UnknownFunctionError, getPath } from './chunk-G4OQ4PEO.js';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkZVQKCDUG_cjs = require('../chunk-ZVQKCDUG.cjs');
4
- var chunkK54CT3QN_cjs = require('../chunk-K54CT3QN.cjs');
5
- require('../chunk-BXUEWV7V.cjs');
3
+ var chunkBML7HQPE_cjs = require('../chunk-BML7HQPE.cjs');
4
+ var chunkVDB7VHFS_cjs = require('../chunk-VDB7VHFS.cjs');
5
+ require('../chunk-OM2HY2GE.cjs');
6
6
  require('../chunk-RVU6YEHO.cjs');
7
7
  require('../chunk-MEZCO7ND.cjs');
8
8
  require('../chunk-CQZH3L3W.cjs');
@@ -15,75 +15,75 @@ require('../chunk-Q7SFCCGT.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "actionGraph", {
17
17
  enumerable: true,
18
- get: function () { return chunkZVQKCDUG_cjs.actionGraph; }
18
+ get: function () { return chunkBML7HQPE_cjs.actionGraph; }
19
19
  });
20
20
  Object.defineProperty(exports, "auditCatalog", {
21
21
  enumerable: true,
22
- get: function () { return chunkZVQKCDUG_cjs.auditCatalog; }
22
+ get: function () { return chunkBML7HQPE_cjs.auditCatalog; }
23
23
  });
24
24
  Object.defineProperty(exports, "chainCycles", {
25
25
  enumerable: true,
26
- get: function () { return chunkZVQKCDUG_cjs.chainCycles; }
26
+ get: function () { return chunkBML7HQPE_cjs.chainCycles; }
27
27
  });
28
28
  Object.defineProperty(exports, "classifyAudit", {
29
29
  enumerable: true,
30
- get: function () { return chunkZVQKCDUG_cjs.classifyAudit; }
30
+ get: function () { return chunkBML7HQPE_cjs.classifyAudit; }
31
31
  });
32
32
  Object.defineProperty(exports, "componentsOf", {
33
33
  enumerable: true,
34
- get: function () { return chunkZVQKCDUG_cjs.componentsOf; }
34
+ get: function () { return chunkBML7HQPE_cjs.componentsOf; }
35
35
  });
36
36
  Object.defineProperty(exports, "describeInstance", {
37
37
  enumerable: true,
38
- get: function () { return chunkZVQKCDUG_cjs.describeInstance; }
38
+ get: function () { return chunkBML7HQPE_cjs.describeInstance; }
39
39
  });
40
40
  Object.defineProperty(exports, "describeShell", {
41
41
  enumerable: true,
42
- get: function () { return chunkZVQKCDUG_cjs.describeShell; }
42
+ get: function () { return chunkBML7HQPE_cjs.describeShell; }
43
43
  });
44
44
  Object.defineProperty(exports, "isRecord", {
45
45
  enumerable: true,
46
- get: function () { return chunkZVQKCDUG_cjs.isRecord; }
46
+ get: function () { return chunkBML7HQPE_cjs.isRecord; }
47
47
  });
48
48
  Object.defineProperty(exports, "livenessOf", {
49
49
  enumerable: true,
50
- get: function () { return chunkZVQKCDUG_cjs.livenessOf; }
50
+ get: function () { return chunkBML7HQPE_cjs.livenessOf; }
51
51
  });
52
52
  Object.defineProperty(exports, "loopVarsOf", {
53
53
  enumerable: true,
54
- get: function () { return chunkZVQKCDUG_cjs.loopVarsOf; }
54
+ get: function () { return chunkBML7HQPE_cjs.loopVarsOf; }
55
55
  });
56
56
  Object.defineProperty(exports, "refsOf", {
57
57
  enumerable: true,
58
- get: function () { return chunkZVQKCDUG_cjs.refsOf; }
58
+ get: function () { return chunkBML7HQPE_cjs.refsOf; }
59
59
  });
60
60
  Object.defineProperty(exports, "snapshotShell", {
61
61
  enumerable: true,
62
- get: function () { return chunkZVQKCDUG_cjs.snapshotShell; }
62
+ get: function () { return chunkBML7HQPE_cjs.snapshotShell; }
63
63
  });
64
64
  Object.defineProperty(exports, "walkNodes", {
65
65
  enumerable: true,
66
- get: function () { return chunkZVQKCDUG_cjs.walkNodes; }
66
+ get: function () { return chunkBML7HQPE_cjs.walkNodes; }
67
67
  });
68
68
  Object.defineProperty(exports, "declaredKeys", {
69
69
  enumerable: true,
70
- get: function () { return chunkK54CT3QN_cjs.declaredKeys; }
70
+ get: function () { return chunkVDB7VHFS_cjs.declaredKeys; }
71
71
  });
72
72
  Object.defineProperty(exports, "gesturedKeys", {
73
73
  enumerable: true,
74
- get: function () { return chunkK54CT3QN_cjs.gesturedKeys; }
74
+ get: function () { return chunkVDB7VHFS_cjs.gesturedKeys; }
75
75
  });
76
76
  Object.defineProperty(exports, "lifecycleKeys", {
77
77
  enumerable: true,
78
- get: function () { return chunkK54CT3QN_cjs.lifecycleKeys; }
78
+ get: function () { return chunkVDB7VHFS_cjs.lifecycleKeys; }
79
79
  });
80
80
  Object.defineProperty(exports, "loadedKeys", {
81
81
  enumerable: true,
82
- get: function () { return chunkK54CT3QN_cjs.loadedKeys; }
82
+ get: function () { return chunkVDB7VHFS_cjs.loadedKeys; }
83
83
  });
84
84
  Object.defineProperty(exports, "mountInputKeys", {
85
85
  enumerable: true,
86
- get: function () { return chunkK54CT3QN_cjs.mountInputKeys; }
86
+ get: function () { return chunkVDB7VHFS_cjs.mountInputKeys; }
87
87
  });
88
88
  //# sourceMappingURL=index.cjs.map
89
89
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { a as Shell } from '../types-OsJI-ceI.cjs';
1
+ import { a as Shell } from '../types-6KTCKlXf.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';
@@ -20,7 +20,7 @@ type IssueClass = {
20
20
  tag: string;
21
21
  reason: string;
22
22
  };
23
- declare const classifyAudit: (issue: string, definition: ActionDefinition) => IssueClass;
23
+ declare const classifyAudit: (issue: string) => IssueClass;
24
24
  type ClassifiedIssue = {
25
25
  issue: string;
26
26
  } & IssueClass;
@@ -1,4 +1,4 @@
1
- import { a as Shell } from '../types-Dn9cBFCC.js';
1
+ import { a as Shell } from '../types-DV-GDFJd.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';
@@ -20,7 +20,7 @@ type IssueClass = {
20
20
  tag: string;
21
21
  reason: string;
22
22
  };
23
- declare const classifyAudit: (issue: string, definition: ActionDefinition) => IssueClass;
23
+ declare const classifyAudit: (issue: string) => IssueClass;
24
24
  type ClassifiedIssue = {
25
25
  issue: string;
26
26
  } & IssueClass;
@@ -1,6 +1,6 @@
1
- export { actionGraph, auditCatalog, chainCycles, classifyAudit, componentsOf, describeInstance, describeShell, isRecord, livenessOf, loopVarsOf, refsOf, snapshotShell, walkNodes } from '../chunk-UXFQZX6O.js';
2
- export { declaredKeys, gesturedKeys, lifecycleKeys, loadedKeys, mountInputKeys } from '../chunk-YV2G37TJ.js';
3
- import '../chunk-ZZRQAH5Z.js';
1
+ export { actionGraph, auditCatalog, chainCycles, classifyAudit, componentsOf, describeInstance, describeShell, isRecord, livenessOf, loopVarsOf, refsOf, snapshotShell, walkNodes } from '../chunk-GY3KNTNK.js';
2
+ export { declaredKeys, gesturedKeys, lifecycleKeys, loadedKeys, mountInputKeys } from '../chunk-E2PXYR3H.js';
3
+ import '../chunk-A3IIJF4E.js';
4
4
  import '../chunk-M2ZZUSH3.js';
5
5
  import '../chunk-Y3UKAJJX.js';
6
6
  import '../chunk-G4OQ4PEO.js';
@@ -41,6 +41,11 @@ type StatusChangeHandler = (status: ActionStatus) => void;
41
41
  type TransformFn = (config: unknown, source: unknown) => unknown;
42
42
  type FetchFn = (url: string, init?: FetchInit) => Promise<FetchResponse>;
43
43
  type FunctionHandler = (data: Record<string, unknown>, signal: AbortSignal) => Promise<unknown>;
44
+ type FunctionDefinition = {
45
+ id: string;
46
+ description: string;
47
+ execute: FunctionHandler;
48
+ };
44
49
  type FetchInit = {
45
50
  method?: string;
46
51
  headers?: Record<string, string>;
@@ -167,9 +172,8 @@ type Shell = {
167
172
  replace: (canvasId: string, actionId: string, input?: Record<string, unknown>, fragments?: string[]) => string;
168
173
  clear: (canvasId: string) => void;
169
174
  back: () => boolean;
170
- registerAction: (definition: ActionDefinition) => void;
175
+ registerAction: (definition: ActionDefinition | ActionFragment) => void;
171
176
  removeAction: (actionId: string) => void;
172
- registerFragment: (fragment: ActionFragment) => void;
173
177
  addCanvas: (config: CanvasConfig) => void;
174
178
  removeCanvas: (canvasId: string) => void;
175
179
  setCanvasLayout: (layout: LayoutNode | string) => void;
@@ -191,4 +195,4 @@ type Shell = {
191
195
  dispose: () => void;
192
196
  };
193
197
 
194
- 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 FunctionHandler as i, type NavigationEffect as j, type PushOptions as k, type CanvasChangeHandler as l, type DataChangeEvent as m, type DataChangeHandler as n, type StateChangeHandler as o, type ShellTelemetry as p, type StateSnapshot as q, type StatusChangeHandler as r, createIdFactory as s };
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 };
@@ -41,6 +41,11 @@ type StatusChangeHandler = (status: ActionStatus) => void;
41
41
  type TransformFn = (config: unknown, source: unknown) => unknown;
42
42
  type FetchFn = (url: string, init?: FetchInit) => Promise<FetchResponse>;
43
43
  type FunctionHandler = (data: Record<string, unknown>, signal: AbortSignal) => Promise<unknown>;
44
+ type FunctionDefinition = {
45
+ id: string;
46
+ description: string;
47
+ execute: FunctionHandler;
48
+ };
44
49
  type FetchInit = {
45
50
  method?: string;
46
51
  headers?: Record<string, string>;
@@ -167,9 +172,8 @@ type Shell = {
167
172
  replace: (canvasId: string, actionId: string, input?: Record<string, unknown>, fragments?: string[]) => string;
168
173
  clear: (canvasId: string) => void;
169
174
  back: () => boolean;
170
- registerAction: (definition: ActionDefinition) => void;
175
+ registerAction: (definition: ActionDefinition | ActionFragment) => void;
171
176
  removeAction: (actionId: string) => void;
172
- registerFragment: (fragment: ActionFragment) => void;
173
177
  addCanvas: (config: CanvasConfig) => void;
174
178
  removeCanvas: (canvasId: string) => void;
175
179
  setCanvasLayout: (layout: LayoutNode | string) => void;
@@ -191,4 +195,4 @@ type Shell = {
191
195
  dispose: () => void;
192
196
  };
193
197
 
194
- 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 FunctionHandler as i, type NavigationEffect as j, type PushOptions as k, type CanvasChangeHandler as l, type DataChangeEvent as m, type DataChangeHandler as n, type StateChangeHandler as o, type ShellTelemetry as p, type StateSnapshot as q, type StatusChangeHandler as r, createIdFactory as s };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niscorp/nova",
3
- "version": "0.3.1",
3
+ "version": "0.5.0",
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",
218
219
  "@niscorp/prism": "^0.3.1",
219
- "@niscorp/strata": "^0.1.7",
220
- "@niscorp/cortex": "^0.1.4"
220
+ "@niscorp/strata": "^0.1.7"
221
221
  },
222
222
  "peerDependencies": {
223
223
  "ink": "^7.1.1",