@niscorp/nova 0.2.0 → 0.2.1

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 (40) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +56 -13
  3. package/SHELL_DOCS.md +13 -4
  4. package/dist/adapters/dom/index.cjs.map +1 -1
  5. package/dist/adapters/dom/index.js +2 -2
  6. package/dist/adapters/dom/server.js +2 -2
  7. package/dist/adapters/react/components/index.js +3 -3
  8. package/dist/adapters/react/index.cjs.map +1 -1
  9. package/dist/adapters/react/index.js +3 -3
  10. package/dist/adapters/tty/index.js +1 -1
  11. package/dist/adapters/vue/components/index.js +3 -3
  12. package/dist/adapters/vue/index.cjs.map +1 -1
  13. package/dist/adapters/vue/index.js +4 -4
  14. package/dist/{chunk-RYIIIXDX.js → chunk-DU2VIJAF.js} +57 -15
  15. package/dist/chunk-DU2VIJAF.js.map +1 -0
  16. package/dist/{chunk-VU6NNCEJ.js → chunk-F2H7WP6R.js} +4 -4
  17. package/dist/{chunk-VU6NNCEJ.js.map → chunk-F2H7WP6R.js.map} +1 -1
  18. package/dist/{chunk-QXQCPH33.js → chunk-G4LSLLGI.js} +4 -4
  19. package/dist/{chunk-QXQCPH33.js.map → chunk-G4LSLLGI.js.map} +1 -1
  20. package/dist/{chunk-MHW5VEIM.js → chunk-SVNK5NIK.js} +3 -3
  21. package/dist/{chunk-MHW5VEIM.js.map → chunk-SVNK5NIK.js.map} +1 -1
  22. package/dist/{chunk-UDCXGDLQ.js → chunk-VOD5JA4D.js} +3 -3
  23. package/dist/{chunk-UDCXGDLQ.js.map → chunk-VOD5JA4D.js.map} +1 -1
  24. package/dist/chunk-XQTI4Q4I.js +178 -0
  25. package/dist/chunk-XQTI4Q4I.js.map +1 -0
  26. package/dist/examples/index.cjs +1186 -0
  27. package/dist/examples/index.cjs.map +1 -0
  28. package/dist/examples/index.d.cts +63 -0
  29. package/dist/examples/index.d.ts +63 -0
  30. package/dist/examples/index.js +1158 -0
  31. package/dist/examples/index.js.map +1 -0
  32. package/dist/i18n/index.js +2 -176
  33. package/dist/i18n/index.js.map +1 -1
  34. package/dist/index.cjs +55 -12
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +5 -1
  37. package/dist/index.d.ts +5 -1
  38. package/dist/index.js +1 -1
  39. package/package.json +19 -8
  40. package/dist/chunk-RYIIIXDX.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -116,6 +116,10 @@ declare const shellSettled: (shell: Shell, options?: {
116
116
  waitMs?: number;
117
117
  stopped?: () => boolean;
118
118
  }) => Promise<boolean>;
119
+ declare const shellIdle: (shell: Shell, options?: {
120
+ waitMs?: number;
121
+ stopped?: () => boolean;
122
+ }) => Promise<boolean>;
119
123
 
120
124
  type HistoryFrame = {
121
125
  instance: string;
@@ -155,4 +159,4 @@ type ReconcileResult = {
155
159
  };
156
160
  declare const reconcileCanvas: (shell: Shell, canvasId: string, desired: readonly Desired[], options: ReconcileOptions) => ReconcileResult;
157
161
 
158
- 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, shellSettled, shellView };
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 };
package/dist/index.d.ts CHANGED
@@ -116,6 +116,10 @@ declare const shellSettled: (shell: Shell, options?: {
116
116
  waitMs?: number;
117
117
  stopped?: () => boolean;
118
118
  }) => Promise<boolean>;
119
+ declare const shellIdle: (shell: Shell, options?: {
120
+ waitMs?: number;
121
+ stopped?: () => boolean;
122
+ }) => Promise<boolean>;
119
123
 
120
124
  type HistoryFrame = {
121
125
  instance: string;
@@ -155,4 +159,4 @@ type ReconcileResult = {
155
159
  };
156
160
  declare const reconcileCanvas: (shell: Shell, canvasId: string, desired: readonly Desired[], options: ReconcileOptions) => ReconcileResult;
157
161
 
158
- 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, shellSettled, shellView };
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 };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { paletteEntryOf, paletteFromRegistry } from './chunk-L5223LLX.js';
2
- export { DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, MessageEnvelopeSchema, NovaEventSchema, canvasTreeOf, createIdFactory, createShell, hasVisibleContent, navigatedChannel, reconcileCanvas, scopeDispatch, shellSettled, shellView } from './chunk-RYIIIXDX.js';
2
+ export { DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, MessageEnvelopeSchema, NovaEventSchema, canvasTreeOf, createIdFactory, createShell, hasVisibleContent, navigatedChannel, reconcileCanvas, scopeDispatch, shellIdle, shellSettled, shellView } from './chunk-DU2VIJAF.js';
3
3
  export { ACTION_SLOT_NAME, CANVAS_SLOT_NAME, headOf, isHeadNode } from './chunk-RFBIGRCI.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-Y6XVPRYH.js';
5
5
  import './chunk-OGD5CCMZ.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niscorp/nova",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Declarative UI framework for AI agents — JSON layouts, shell orchestration, React",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -176,7 +176,18 @@
176
176
  "types": "./dist/migrations/index.d.cts",
177
177
  "default": "./dist/migrations/index.cjs"
178
178
  }
179
- }
179
+ },
180
+ "./examples": {
181
+ "import": {
182
+ "types": "./dist/examples/index.d.ts",
183
+ "default": "./dist/examples/index.js"
184
+ },
185
+ "require": {
186
+ "types": "./dist/examples/index.d.cts",
187
+ "default": "./dist/examples/index.cjs"
188
+ }
189
+ },
190
+ "./package.json": "./package.json"
180
191
  },
181
192
  "files": [
182
193
  "dist",
@@ -204,9 +215,9 @@
204
215
  "vitest": "^4.1.2",
205
216
  "vue": "^3.5.43",
206
217
  "zod": "^4.6.5",
207
- "@niscorp/cortex": "^0.1.1",
208
- "@niscorp/prism": "^0.2.0",
209
- "@niscorp/strata": "^0.1.1"
218
+ "@niscorp/cortex": "^0.1.3",
219
+ "@niscorp/prism": "^0.2.1",
220
+ "@niscorp/strata": "^0.1.3"
210
221
  },
211
222
  "peerDependencies": {
212
223
  "ink": "^7.1.1",
@@ -214,9 +225,9 @@
214
225
  "react": "^19.2.4",
215
226
  "zod": "^4.2.0",
216
227
  "vue": "^3.5.0",
217
- "@niscorp/cortex": "^0.1.1",
218
- "@niscorp/prism": "^0.2.0",
219
- "@niscorp/strata": "^0.1.1"
228
+ "@niscorp/prism": "^0.2.1",
229
+ "@niscorp/cortex": "^0.1.3",
230
+ "@niscorp/strata": "^0.1.3"
220
231
  },
221
232
  "peerDependenciesMeta": {
222
233
  "@niscorp/cortex": {