@uicast/core 0.0.6 → 0.0.7

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 (33) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/constants.d.ts +1 -0
  3. package/dist/constants.js +2 -0
  4. package/dist/create-component-definition.d.ts +1 -1
  5. package/dist/create-component-definition.js +2 -2
  6. package/dist/{build-elements-by-key.d.ts → entry/build-elements-by-key.d.ts} +1 -1
  7. package/dist/{entry-error.d.ts → entry/entry-error.d.ts} +1 -1
  8. package/dist/{entry-error.js → entry/entry-error.js} +2 -0
  9. package/dist/{entry-shape.d.ts → entry/entry-shape.d.ts} +1 -1
  10. package/dist/expr/evaluate.d.ts +1 -1
  11. package/dist/expr/evaluate.js +1 -1
  12. package/dist/expr/tool-kind.d.ts +6 -0
  13. package/dist/expr/tool-kind.js +22 -0
  14. package/dist/index.d.ts +3 -3
  15. package/dist/index.js +3 -3
  16. package/dist/internal.d.ts +3 -2
  17. package/dist/internal.js +3 -2
  18. package/dist/prompt/get-error-recovery-prompt.d.ts +1 -1
  19. package/dist/prompt/get-error-recovery-prompt.js +1 -1
  20. package/dist/prompt/get-functions-partial-prompt.js +9 -3
  21. package/dist/prompt/json-schema-to-ts.js +27 -2
  22. package/dist/prompt/md/INSTRUCTIONS.json +1 -1
  23. package/dist/scope/create-proxy-scope.js +1 -1
  24. package/dist/scope/parse-set-address.d.ts +1 -1
  25. package/dist/scope/parse-set-address.js +1 -1
  26. package/dist/tool/schemas.d.ts +1 -1
  27. package/dist/tool/schemas.js +1 -1
  28. package/dist/types.d.ts +2 -0
  29. package/package.json +4 -4
  30. /package/dist/{build-elements-by-key.js → entry/build-elements-by-key.js} +0 -0
  31. /package/dist/{entry-shape.js → entry/entry-shape.js} +0 -0
  32. /package/dist/{stream-json-lines.d.ts → entry/stream-json-lines.d.ts} +0 -0
  33. /package/dist/{stream-json-lines.js → entry/stream-json-lines.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@ All notable changes to this package will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.0.7] - 2026-12-02
8
+
9
+ ### Added
10
+
11
+ - Tool hints: `meta: { readOnlyHint, destructiveHint }` on a host function. The prompt marks each function as a read, a write or destructive; a `seed` step that calls a write fails with the new reason `seed-write` ([#47](https://github.com/finom/uicast/pull/47)).
12
+ - `title` on a component definition: a name for people, never printed in the prompt ([#47](https://github.com/finom/uicast/pull/47)).
13
+
14
+ ### Changed
15
+
16
+ - Requires `@uicast/expr` ^0.0.7.
17
+
18
+ ### Fixed
19
+
20
+ - The prompt prints an array of a union as `(A | B)[]` ([#47](https://github.com/finom/uicast/pull/47)).
21
+
7
22
  ## [0.0.6] - 2026-10-28
8
23
 
9
24
  ### Added
@@ -1,4 +1,5 @@
1
1
  export declare const CALLBACK_DEBOUNCE_MS = 300;
2
+ export declare const DESTRUCTIVE_CONFIRM = "This changes or deletes data. Continue?";
2
3
  export declare const CONTEXT_NAMES: ReadonlySet<string>;
3
4
  export declare const EXPR_TOOL_MAX_READ = 8000;
4
5
  export declare const UPDATE_BUDGET_MS = 1000;
package/dist/constants.js CHANGED
@@ -1,5 +1,7 @@
1
1
  // The prompt tells the model this number too.
2
2
  export const CALLBACK_DEBOUNCE_MS = 300;
3
+ // What a step asks before it calls a function marked destructive, when it has no `confirm` of its own.
4
+ export const DESTRUCTIVE_CONFIRM = "This changes or deletes data. Continue?";
3
5
  // A host function may not take one of these: it would shadow the context.
4
6
  export const CONTEXT_NAMES = new Set(["scopes", "evt", "currentValue"]);
5
7
  // The longest `read` value the expr tool hands back, in JSON characters; the prompt tells the model.
@@ -19,7 +19,7 @@ declare const NO_PROPS: CombinedSpec<EmptyProps, EmptyProps>;
19
19
  * callbacks: { onClick: z.null() }, // printed as onClick()
20
20
  * });
21
21
  */
22
- export declare const createComponentDefinition: <TProps extends CombinedSpec = typeof NO_PROPS, TCallbacks extends Record<string, CombinedSpec> = Record<string, never>>({ name, description, props, callbacks, hidden, }: Omit<ComponentDefinition<TProps, TCallbacks>, "props"> & {
22
+ export declare const createComponentDefinition: <TProps extends CombinedSpec = typeof NO_PROPS, TCallbacks extends Record<string, CombinedSpec> = Record<string, never>>({ name, title, description, props, callbacks, hidden, }: Omit<ComponentDefinition<TProps, TCallbacks>, "props"> & {
23
23
  /** The props schema. Omit it for a component that takes none. */
24
24
  props?: TProps;
25
25
  }) => ComponentDefinition<TProps, TCallbacks>;
@@ -61,7 +61,7 @@ const propertyNames = (spec) => {
61
61
  * callbacks: { onClick: z.null() }, // printed as onClick()
62
62
  * });
63
63
  */
64
- export const createComponentDefinition = ({ name, description, props = NO_PROPS, callbacks, hidden, }) => {
64
+ export const createComponentDefinition = ({ name, title, description, props = NO_PROPS, callbacks, hidden, }) => {
65
65
  if (propertyNames(props).includes(RESERVED_PROP)) {
66
66
  throw new Error(`Component "${name}": "children" is a reserved name and cannot be a prop. Name the prop for what it holds (e.g. "text"); nested elements come from the entry's \`children\` array.`);
67
67
  }
@@ -70,5 +70,5 @@ export const createComponentDefinition = ({ name, description, props = NO_PROPS,
70
70
  throw new Error(`Component "${name}": callback "${event}" declares a "children" field, which is a reserved name. Rename it.`);
71
71
  }
72
72
  }
73
- return { name, description, props, callbacks, hidden };
73
+ return { name, title, description, props, callbacks, hidden };
74
74
  };
@@ -1,4 +1,4 @@
1
- import type { ComponentEntry } from "./types.js";
1
+ import type { ComponentEntry } from "../types.js";
2
2
  /**
3
3
  * Folds entries into a `key → entry` map, as they render: a re-emitted key replaces its subtree, and an old key it
4
4
  * leaves out is dropped unless another entry names it.
@@ -5,7 +5,7 @@ import type { ExpressionErrorReason } from "@uicast/expr";
5
5
  * @example
6
6
  * if (error.reason === "unknown-component") return <p>No implementation for {error.elementKey}</p>;
7
7
  */
8
- export type EntryErrorReason = ExpressionErrorReason | "invalid-entry" | "unknown-component" | "invalid-list" | "invalid-props" | "host-init" | "implementation" | "unknown";
8
+ export type EntryErrorReason = ExpressionErrorReason | "invalid-entry" | "unknown-component" | "invalid-list" | "invalid-props" | "seed-write" | "host-init" | "implementation" | "unknown";
9
9
  /**
10
10
  * Whose code must fix a failure: `"document"` the model's (re-emit the entry), `"environment"` the host's, `"unknown"`
11
11
  * either.
@@ -7,6 +7,7 @@ export const FAULT_BY_REASON = {
7
7
  "unknown-component": "document",
8
8
  "invalid-list": "document",
9
9
  "invalid-props": "document",
10
+ "seed-write": "document",
10
11
  "invalid-arguments": "document",
11
12
  "host-function": "environment",
12
13
  "host-init": "environment",
@@ -24,6 +25,7 @@ export const REASON_DESCRIPTIONS = {
24
25
  "unknown-component": "no component with this name",
25
26
  "invalid-list": "`each` not array, or `as` names existing scope",
26
27
  "invalid-props": "evaluated props don't match component's props schema",
28
+ "seed-write": "`seed` calls function that writes data: seed only reads, call it from callback",
27
29
  "invalid-arguments": "host function rejected call's arguments",
28
30
  "host-function": "host function failed",
29
31
  "host-init": "host init callback failed",
@@ -1,5 +1,5 @@
1
1
  import { EntryError } from "./entry-error.js";
2
- import type { ComponentEntry } from "./types.js";
2
+ import type { ComponentEntry } from "../types.js";
3
3
  type RawEntry = {
4
4
  [K in keyof ComponentEntry]?: unknown;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import type { ValueSource } from "../types.js";
2
- import { EntryError } from "../entry-error.js";
2
+ import { EntryError } from "../entry/entry-error.js";
3
3
  import type { ExpressionEvaluator } from "@uicast/expr";
4
4
  export declare const wrapEvalError: (err: unknown) => EntryError;
5
5
  export declare const evaluate: (expr: ValueSource, context: Record<string, unknown>, evaluator: ExpressionEvaluator) => unknown;
@@ -1,4 +1,4 @@
1
- import { EntryError } from "../entry-error.js";
1
+ import { EntryError } from "../entry/entry-error.js";
2
2
  import { CONTEXT_NAMES, UPDATE_BUDGET_MS } from "../constants.js";
3
3
  import { holdsPrimitive, unwrapRows } from "../scope/create-proxy-scope.js";
4
4
  // Identifier validity is the evaluator's own check; this screens only uicast's names.
@@ -0,0 +1,6 @@
1
+ import type { ExpressionEvaluator } from "@uicast/expr";
2
+ type Tool = ExpressionEvaluator["functions"][number];
3
+ export type ToolKind = "read" | "write" | "destructive";
4
+ export declare const toolKind: ({ meta }: Pick<Tool, "meta">) => ToolKind | null;
5
+ export declare const calledTools: (expr: string | undefined, evaluator: ExpressionEvaluator) => Tool[];
6
+ export {};
@@ -0,0 +1,22 @@
1
+ // Null when the hints say nothing. Read-only wins over a contradicting hint.
2
+ export const toolKind = ({ meta }) => {
3
+ if (meta?.readOnlyHint === true)
4
+ return "read";
5
+ if (meta?.destructiveHint === true)
6
+ return "destructive";
7
+ if (meta?.readOnlyHint === false || meta?.destructiveHint === false)
8
+ return "write";
9
+ return null;
10
+ };
11
+ // The host functions an expression calls. One that doesn't parse names none: it fails classified when it runs.
12
+ export const calledTools = (expr, evaluator) => {
13
+ if (!expr)
14
+ return [];
15
+ try {
16
+ const names = evaluator.validate(expr).toolCalls;
17
+ return evaluator.functions.filter(({ name }) => names.includes(name));
18
+ }
19
+ catch {
20
+ return [];
21
+ }
22
+ };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export type { ExpressionEvaluator } from "@uicast/expr";
2
- export { buildElementsByKey } from "./build-elements-by-key.js";
2
+ export { buildElementsByKey } from "./entry/build-elements-by-key.js";
3
3
  export { createComponentDefinition } from "./create-component-definition.js";
4
- export { EntryError, type EntryErrorReason, type EntryFault } from "./entry-error.js";
4
+ export { EntryError, type EntryErrorReason, type EntryFault } from "./entry/entry-error.js";
5
5
  export { createProxyScope, type ReactiveProxy } from "./scope/create-proxy-scope.js";
6
- export { streamJsonLines } from "./stream-json-lines.js";
6
+ export { streamJsonLines } from "./entry/stream-json-lines.js";
7
7
  export { type CallbackValueSourceAssignment, type CombinedSpec, type ComponentDefinition, type ComponentEntry, type ComponentListEntry, isComponentEntry, type ValueSource, type ValueSourceAssignment, } from "./types.js";
8
8
  export type { UrlPolicy } from "./url-policy.js";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { buildElementsByKey } from "./build-elements-by-key.js";
1
+ export { buildElementsByKey } from "./entry/build-elements-by-key.js";
2
2
  export { createComponentDefinition } from "./create-component-definition.js";
3
- export { EntryError } from "./entry-error.js";
3
+ export { EntryError } from "./entry/entry-error.js";
4
4
  export { createProxyScope } from "./scope/create-proxy-scope.js";
5
- export { streamJsonLines } from "./stream-json-lines.js";
5
+ export { streamJsonLines } from "./entry/stream-json-lines.js";
6
6
  export { isComponentEntry, } from "./types.js";
@@ -1,5 +1,5 @@
1
- export { CALLBACK_DEBOUNCE_MS, EXPR_TOOL_MAX_READ } from "./constants.js";
2
- export { entryShapeError } from "./entry-shape.js";
1
+ export { CALLBACK_DEBOUNCE_MS, DESTRUCTIVE_CONFIRM, EXPR_TOOL_MAX_READ } from "./constants.js";
2
+ export { entryShapeError } from "./entry/entry-shape.js";
3
3
  export { exprToolSchemas } from "./tool/schemas.js";
4
4
  export { evaluate } from "./expr/evaluate.js";
5
5
  export { type DepsPart, extractDeps } from "./expr/extract-deps.js";
@@ -9,5 +9,6 @@ export { noteSection } from "./prompt/format.js";
9
9
  export { countEmits, createRowScope, createRowState, getForwardTargets, type RowScope, type RowState, } from "./scope/create-proxy-scope.js";
10
10
  export { parseScope } from "./scope/parse-scope.js";
11
11
  export { entrySetAddressError, parseSetAddress } from "./scope/parse-set-address.js";
12
+ export { calledTools, type ToolKind, toolKind } from "./expr/tool-kind.js";
12
13
  export { isComponentListEntry } from "./types.js";
13
14
  export { findUrlViolations, schemaHasUrlFormat } from "./url-policy.js";
package/dist/internal.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // No semver guarantee.
2
- export { CALLBACK_DEBOUNCE_MS, EXPR_TOOL_MAX_READ } from "./constants.js";
3
- export { entryShapeError } from "./entry-shape.js";
2
+ export { CALLBACK_DEBOUNCE_MS, DESTRUCTIVE_CONFIRM, EXPR_TOOL_MAX_READ } from "./constants.js";
3
+ export { entryShapeError } from "./entry/entry-shape.js";
4
4
  export { exprToolSchemas } from "./tool/schemas.js";
5
5
  export { evaluate } from "./expr/evaluate.js";
6
6
  export { extractDeps } from "./expr/extract-deps.js";
@@ -10,5 +10,6 @@ export { noteSection } from "./prompt/format.js";
10
10
  export { countEmits, createRowScope, createRowState, getForwardTargets, } from "./scope/create-proxy-scope.js";
11
11
  export { parseScope } from "./scope/parse-scope.js";
12
12
  export { entrySetAddressError, parseSetAddress } from "./scope/parse-set-address.js";
13
+ export { calledTools, toolKind } from "./expr/tool-kind.js";
13
14
  export { isComponentListEntry } from "./types.js";
14
15
  export { findUrlViolations, schemaHasUrlFormat } from "./url-policy.js";
@@ -1,4 +1,4 @@
1
- import { type EntryErrorReason } from "../entry-error.js";
1
+ import { type EntryErrorReason } from "../entry/entry-error.js";
2
2
  /**
3
3
  * One failed element, for `getErrorRecoveryPrompt`.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { FAULT_BY_REASON, REASON_DESCRIPTIONS } from "../entry-error.js";
1
+ import { FAULT_BY_REASON, REASON_DESCRIPTIONS } from "../entry/entry-error.js";
2
2
  /**
3
3
  * A user message naming the elements that failed, so the model sends fixed ones under the same keys. One turn's
4
4
  * content, not part of the system prompt.
@@ -3,6 +3,7 @@ import { CONTEXT_NAMES } from "../constants.js";
3
3
  import { specToJSONSchema } from "../json-schema.js";
4
4
  import { joinSections, noteSection, unwrapParens } from "./format.js";
5
5
  import { jsonSchemaToTs } from "./json-schema-to-ts.js";
6
+ import { toolKind } from "../expr/tool-kind.js";
6
7
  import { collectSharedTypes } from "./shared-types.js";
7
8
  // The message tail, or null when the name is usable. A superset of what evaluation refuses, so an advertised name is always callable.
8
9
  const functionNameFault = (name) => {
@@ -23,6 +24,9 @@ const schemaToTs = (schema, fallback, shared) => {
23
24
  const jsonSchema = specToJSONSchema(schema);
24
25
  return jsonSchemaToTs(jsonSchema, { multiline: " ", namedRefs: shared.add(jsonSchema) });
25
26
  };
27
+ // A function's mark, from its `meta` hints; INSTRUCTIONS.md says what each allows.
28
+ const MARKS = { read: "🟢", write: "🟡", destructive: "🔴" };
29
+ const LEGEND = "🟢 reads data · 🟡 adds data · 🔴 changes or deletes data · no mark: unknown, judge by name and description";
26
30
  // The block under a heading of this level: `#` for the prompt, deeper inside a tool's description.
27
31
  export function functionsBlock(functions, title, hashes = "#") {
28
32
  const seen = new Set();
@@ -36,15 +40,17 @@ export function functionsBlock(functions, title, hashes = "#") {
36
40
  }
37
41
  const shared = collectSharedTypes();
38
42
  // Rendered first, so `shared` holds every hoisted definition.
39
- const details = functions.map(({ name, title, description, inputSchema, outputSchema }) => {
43
+ const details = functions.map((tool) => {
44
+ const { name, title, description, inputSchema, outputSchema } = tool;
45
+ const kind = toolKind(tool);
40
46
  // `name(A & B)`, not `name((A & B))`.
41
47
  const params = unwrapParens(schemaToTs(inputSchema, "", shared));
42
48
  const output = schemaToTs(outputSchema, "unknown", shared);
43
49
  const label = title && title !== description ? `${title} — ` : "";
44
- return `- ${name}(${params}) => ${output}: ${label}${description}`;
50
+ return `- ${kind ? `${MARKS[kind]} ` : ""}${name}(${params}) => ${output}: ${label}${description}`;
45
51
  });
46
52
  const sharedLines = shared.lines();
47
- return joinSections(`${hashes} ${title}\n\n${functions.map((tool) => tool.name).join(", ")}`, `${hashes}# Function Details\n\n${details.join("\n")}`, sharedLines.length > 0 && `${hashes}# Shared Types\n\n${sharedLines.join("\n")}`).trim();
53
+ return joinSections(`${hashes} ${title}\n\n${functions.map((tool) => tool.name).join(", ")}`, `${hashes}# Function Details\n\n${functions.some(toolKind) ? `${LEGEND}\n\n` : ""}${details.join("\n")}`, sharedLines.length > 0 && `${hashes}# Shared Types\n\n${sharedLines.join("\n")}`).trim();
48
54
  }
49
55
  /**
50
56
  * The `# Available Functions` block: a call signature per host function, from its schemas. A tool with no
@@ -130,6 +130,31 @@ const renderObject = (schema, ctx, ml) => {
130
130
  }
131
131
  return extraType ? `(${result} & { [key: string]: ${extraType} })` : result;
132
132
  };
133
+ // Whether `ts` is a union at its top level: `a | b`, not `{ k: a | b }` or `"a | b"`.
134
+ const isUnion = (ts) => {
135
+ let depth = 0;
136
+ for (let i = 0; i < ts.length; i++) {
137
+ const c = ts[i];
138
+ if (c === '"') {
139
+ for (i++; i < ts.length && ts[i] !== '"'; i++)
140
+ if (ts[i] === "\\")
141
+ i++;
142
+ }
143
+ else if (c === "/" && ts[i + 1] === "*") {
144
+ const end = ts.indexOf("*/", i + 2);
145
+ i = end < 0 ? ts.length : end + 1;
146
+ }
147
+ else if (c === "=" && ts[i + 1] === ">")
148
+ i++;
149
+ else if ("([{<".includes(c))
150
+ depth++;
151
+ else if (")]}>".includes(c))
152
+ depth--;
153
+ else if (c === "|" && depth === 0)
154
+ return true;
155
+ }
156
+ return false;
157
+ };
133
158
  const renderArray = (schema, ctx, ml) => {
134
159
  // Single-line even in multiline mode: a tuple reads as one row.
135
160
  if (schema.prefixItems) {
@@ -141,6 +166,6 @@ const renderArray = (schema, ctx, ml) => {
141
166
  if (schema.items === undefined)
142
167
  return "unknown[]";
143
168
  const itemTs = toTs(schema.items, ctx, ml);
144
- // `string /* x */[]` reads as if the comment interrupts the type; parenthesized it does not.
145
- return itemTs.endsWith("*/") ? `(${itemTs})[]` : `${itemTs}[]`;
169
+ // `a | b[]` is an array of b only; `string /* x */[]` reads as if the comment interrupts the type.
170
+ return itemTs.endsWith("*/") || isUnion(itemTs) ? `(${itemTs})[]` : `${itemTs}[]`;
146
171
  };
@@ -1 +1 @@
1
- "# Output Format\n\nBuild UI as JSONL: one **entry** per line, each complete JSON object. Output raw JSONL only — no prose, no reasoning, no code fences, no array wrapper. Plan silently.\n\nEntry fields:\n\n- `key` — unique id, kebab-case: `\"save-btn\"`.\n- `component` — name from **Available Components**.\n- `props` — `{ \"literal\": { ... } }` or `{ \"expr\": \"...\" }`.\n- `children` — child keys, in render order.\n- `seed` — steps run once, at mount.\n- `callbacks` — steps run on events: `{ \"onClick\": [...] }`.\n- `hidden`, `busy` — bare expressions.\n- `each`, `as`, `keyBy` — make entry a list.\n\nEmit parent before its children: root first, then depth-first.\n\n`## Shared Types` in component or function listing names types reused in that listing: prop documented as `Person` means `Person` there. Type may refer to itself: `Node: { children?: Node[] }`.\n\n# Rules\n\n## 1. Structure\n\n- Entries flat, never nested. Parent lists child keys in `children`.\n- Exactly one root: entry no `children` lists. Every other entry listed exactly once. Every listed key emitted.\n\n## 2. Props and expressions\n\n- `literal`: JSON used verbatim, never evaluated. Use when props never change.\n- `expr`: expression returning props object: `\"props\": { \"expr\": \"({ value: scopes.root.count })\" }`.\n- Expression only computes. Only step's `set` writes state. Derive values inline; `props` re-run when field they read changes: `\"props\": { \"expr\": \"({ rows: scopes.root.tasks.toSorted((a, b) => a.due - b.due) })\" }`.\n- Same state, same result. `props`, `hidden`, `busy`, `each` re-run only when field they read changes, maybe more than once. No clock, no `Math.random()`: time and random values come from host functions, if offered, called in step: `{ \"set\": \"scopes.root.savedAt\", \"expr\": \"now()\" }` when `now` exists.\n- `children` never a prop. Text goes in component's text prop, often `text`.\n- String or number prop takes string or number, never object or array: `({ text: scopes.member.name })`, not `({ text: scopes.member })`. Object and array props (`rows`, `options`) take what their type says.\n\n## 3. State and seed\n\n- `seed` steps: `{ \"set\": \"scopes.<scope>.<field>\", \"literal\": <value> }` or `{ \"set\": \"scopes.<scope>.<field>\", \"expr\": \"...\" }`. Every seed step has `set`.\n- `set` names one field: `scopes.<scope>.<field>`. Nothing deeper, no index. To change part of object or array, write whole field: `{ \"set\": \"scopes.root.filters\", \"expr\": \"({ ...currentValue, status: 'open' })\" }`.\n- Seed runs once, at first mount, writes only unset fields (first writer wins): initializes, never resets. Change state from callbacks.\n- Seed calling host function shows element's skeleton until resolved. Never write `await`: runtime awaits.\n- Step reading field earlier step writes waits for it; independent steps run in parallel. Child seeds run after parent's.\n- Seed only reads data. Create, update, delete only from callbacks.\n- No derived values in seed: runs once, value goes stale. Derive inline in `props`, `hidden`, `each`.\n - ❌ `\"seed\": [{ \"set\": \"scopes.root.visible\", \"expr\": \"scopes.root.rows.filter(r => r.name.includes(scopes.root.q))\" }]` with `\"each\": \"scopes.root.visible\"` — typing in search does nothing.\n - ✅ `\"each\": \"scopes.root.rows.filter(r => r.name.includes(scopes.root.q))\"`\n- Unset field reads `undefined`; read below it throws. Seed state before reading, or guard with `?.` / `??`.\n- Root entry seeds all root state.\n\n## 4. Scopes\n\n- `scopes.root`: page state.\n- List with `\"as\": \"row\"` gives each item two scopes:\n - `scopes.row` — object item itself: `scopes.row.name` reads its `name`. String or number item: only `scopes.$row.value`; reading `scopes.row` fails.\n - `scopes.$row` — row: `index` (0-based), `id` (`keyBy` value, else index), `value` (item, when array holds strings or numbers). These three read-only. Host call takes data field, `scopes.row.id`.\n- `as` names new scope: never `root`, host scope, or enclosing list's `as`; no leading `$`.\n- Row's own UI state (expanded, editing, draft) goes in `scopes.$row`: starts unset, stays out of data, write re-renders only that row. Toggle: `{ \"set\": \"scopes.$row.open\", \"expr\": \"!currentValue\" }`. Only row and its children see it.\n- State read outside row (select all, selected count) lives at root, keyed by row id. Read: `scopes.root.selected[scopes.$row.id] ?? false`. Toggle: `{ \"set\": \"scopes.root.selected\", \"expr\": \"({ ...currentValue, [scopes.$row.id]: !currentValue[scopes.$row.id] })\" }`. Select all, with `\"keyBy\": \"id\"`: `{ \"set\": \"scopes.root.selected\", \"expr\": \"scopes.root.rows.reduce((m, r) => ({ ...m, [r.id]: true }), {})\" }`. Seed `selected: {}` on root. Nested list: key by both ids, `scopes.$order.id + '/' + scopes.$line.id`.\n- No other scopes unless note names them. Other `scopes.x` reads `undefined`; writing it fails.\n\n## 5. Reactivity\n\n- Automatic. `props`, `hidden`, `busy`, `each` subscribe to every `scopes.X.Y` they read; write re-renders readers. Reading whole scope (`Object.keys(scopes.root)`) subscribes to all its fields. `seed`, `callbacks` never subscribe.\n- Write wakes readers below it: writing `scopes.root.user` wakes reader of `scopes.root.user.name`.\n- Write to item field puts edited copy of item into array `each` reads, and in nested list into arrays above. `{ \"set\": \"scopes.row.qty\", \"expr\": \"evt.value\" }` updates `scopes.root.rows`, so totals and filters reading it update. Live total inline in props: `scopes.root.rows.reduce((s, r) => s + r.qty * r.price, 0)`.\n- So `each` reads data itself, or `filter`, `toSorted`, `slice` of it. When `each` builds new objects (`rows.map(r => ({ ...r, total: r.qty * r.price }))`), row writes fail: compute per-row values in `props`.\n\n## 6. Lists\n\n- `each`: bare expression giving array, `\"scopes.root.rows\"` or derived `\"scopes.root.rows.filter(r => r.active)\"`; `null` or `undefined` gives no rows. `as`: required, names item scopes (§4). `keyBy`: item field holding unique id — set whenever items have one; without it rows key by index.\n- List entry's component renders once per item: `\"component\": \"TableRow\"` gives one row per item. Its `props` and `children` see item scopes.\n- Cap list whose size you don't control: `\"each\": \"scopes.root.rows.slice(0, 🔴MAX_LIST_ITEMS🔴)\"`, no-op on smaller data. Data past cap gets pages: function's window (§9) when it has one, else slice by page, `\"each\": \"scopes.root.rows.slice((scopes.root.page - 1) * 50, scopes.root.page * 50)\"`, callbacks writing `scopes.root.page`. Hide pager on one page: `\"hidden\": \"scopes.root.rows.length <= 50\"`. Search or filters only for data that can pass cap.\n- List's own `seed` runs once for whole list, outside rows: no `scopes.$<as>` there.\n\n## 7. Callbacks\n\n- `\"callbacks\": { \"onClick\": [steps] }`. Only handlers component lists; others never fire.\n- Step: `{ \"set\": \"scopes.<scope>.<field>\", \"expr\": \"...\" }`, or `\"literal\"` instead of `\"expr\"`. Step without `set` runs for its effect.\n- `evt`: handler's payload; fields listed under component.\n- `currentValue`: value at step's `set` field, `undefined` when unset. Toggle `!currentValue`, increment `currentValue + 1`, append `[...currentValue, item]`.\n- Order: step reading field earlier step writes waits for it; host function call waits for every earlier step; row field write counts as write to list's array. Other steps may run together. Save-then-refetch just works.\n- `\"confirm\": \"Delete this order?\"` on step opens dialog first; cancel skips that step and every later one. Put on first step of every callback that deletes or cannot be undone. Never build confirm dialog entries.\n- `\"debounce\": true` on step: it and later steps run after 300 ms without another call, with latest `evt`; earlier steps run at once. Search: `\"onChange\": [{ \"set\": \"scopes.root.q\", \"expr\": \"evt.value\" }, { \"set\": \"scopes.root.rows\", \"expr\": \"Api_search({ q: scopes.root.q })\", \"debounce\": true }]`. Never call host function on every keystroke.\n- Patterns:\n - Remove item: `{ \"set\": \"scopes.root.rows\", \"expr\": \"currentValue.filter(r => r.id !== scopes.row.id)\" }`\n - Edit row field: `{ \"set\": \"scopes.row.qty\", \"expr\": \"evt.value\" }`\n - Edit row from outside its list, replacing array: `{ \"set\": \"scopes.root.rows\", \"expr\": \"currentValue.map(r => r.id === scopes.root.selectedId ? { ...r, qty: 0 } : r)\" }`\n\n## 8. Hidden and busy\n\n- `hidden`: bare expression, not `{ \"expr\": ... }`. Truthy hides element. Hidden element keeps state, and its expressions still run: guard them, `scopes.root.user?.name`.\n- `busy`: bare expression. Truthy shows component busy, content kept. For refreshes; first load shows skeleton by itself. Set flag, call, clear flag: `{ \"busy\": \"scopes.root.busy\" }` and `\"onClick\": [{ \"set\": \"scopes.root.busy\", \"literal\": true }, { \"set\": \"scopes.root.rows\", \"expr\": \"Api_list()\" }, { \"set\": \"scopes.root.busy\", \"literal\": false }]`. Seed `busy: false` on root.\n\n## 9. Host functions\n\n- Listed under **Available Functions**. Call in `seed` and `callbacks` steps only, never in `props`, `hidden`, `busy`, `each`.\n- One argument matching documented input; none when no input: `Api_list()`, `Api_delete({ id: scopes.row.id })`, never `Api_delete(scopes.row.id)`.\n- Call is step's result: whole expression, `?:` branch, or right side of `&&`, `||`, `??` (`scopes.root.q ? Api_search({ q: scopes.root.q }) : []`). Runtime awaits it, writes result to `set`. Read result in later step or in `props`. Rejected: `Api_list().length`, `[A(), B()]`, `ids.map(id => Api_get({ id }))`. Many ids: call one function taking all.\n- Function offers window, sort or filters (limit, offset, page, cursor, sort, filter fields): use them. Fetch slice you render; refetch when page or filter changes. Never filter or sort fetched slice in expression unless it holds every matching row (`total <= limit`). Read returned totals instead of summing rows.\n- Mutate in callback, then refetch.\n- Function returning `unknown`: shape undeclared, not empty. Call for effect only (step without `set`), then refetch through function with documented return. Never read fields off it; never call in seed.\n - ✅ `[{ \"expr\": \"Api_archive({ id: scopes.row.id })\" }, { \"set\": \"scopes.root.rows\", \"expr\": \"Api_list()\" }]`\n\n## 10. Replacing entries\n\n- Re-emit `key` to replace its entry, later in same output or later turn. New `children` define subtree: listed old children stay as they are (don't re-emit), new keys follow as usual. Old key listed under another parent moves there, subtree and all; listed nowhere: dropped. To fix only entry, keep `children` same.\n- State survives. Seed that succeeded never re-runs; failed one runs again once fixed. New state: new key's seed, or callback.\n- Broken entry (bad expression, unknown function, bad syntax) shows error in its place; rest of UI works. Re-emit it fixed, once, only when sure. No trial and error.\n\n# Expression Context\n\nExpressions use language under **JavaScript Expressions**, plus these names:\n\n- `scopes` — state (§4). `scopes.root` always exists; list rows add `scopes.<as>` and `scopes.$<as>`.\n- `evt` — handler's payload, callbacks only.\n- `currentValue` — value at step's `set` field, only in steps with `set`.\n- Host functions under **Available Functions** — steps only, called bare: `getUsers()`, never `await getUsers()`.\n"
1
+ "# Output Format\n\nBuild UI as JSONL: one **entry** per line, each complete JSON object. Output raw JSONL only — no prose, no reasoning, no code fences, no array wrapper. Plan silently.\n\nEntry fields:\n\n- `key` — unique id, kebab-case: `\"save-btn\"`.\n- `component` — name from **Available Components**.\n- `props` — `{ \"literal\": { ... } }` or `{ \"expr\": \"...\" }`.\n- `children` — child keys, in render order.\n- `seed` — steps run once, at mount.\n- `callbacks` — steps run on events: `{ \"onClick\": [...] }`.\n- `hidden`, `busy` — bare expressions.\n- `each`, `as`, `keyBy` — make entry a list.\n\nEmit parent before its children: root first, then depth-first.\n\n`## Shared Types` in component or function listing names types reused in that listing: prop documented as `Person` means `Person` there. Type may refer to itself: `Node: { children?: Node[] }`.\n\n# Rules\n\n## 1. Structure\n\n- Entries flat, never nested. Parent lists child keys in `children`.\n- Exactly one root: entry no `children` lists. Every other entry listed exactly once. Every listed key emitted.\n\n## 2. Props and expressions\n\n- `literal`: JSON used verbatim, never evaluated. Use when props never change.\n- `expr`: expression returning props object: `\"props\": { \"expr\": \"({ value: scopes.root.count })\" }`.\n- Expression only computes. Only step's `set` writes state. Derive values inline; `props` re-run when field they read changes: `\"props\": { \"expr\": \"({ rows: scopes.root.tasks.toSorted((a, b) => a.due - b.due) })\" }`.\n- Same state, same result. `props`, `hidden`, `busy`, `each` re-run only when field they read changes, maybe more than once. No clock, no `Math.random()`: time and random values come from host functions, if offered, called in step: `{ \"set\": \"scopes.root.savedAt\", \"expr\": \"now()\" }` when `now` exists.\n- `children` never a prop. Text goes in component's text prop, often `text`.\n- String or number prop takes string or number, never object or array: `({ text: scopes.member.name })`, not `({ text: scopes.member })`. Object and array props (`rows`, `options`) take what their type says.\n\n## 3. State and seed\n\n- `seed` steps: `{ \"set\": \"scopes.<scope>.<field>\", \"literal\": <value> }` or `{ \"set\": \"scopes.<scope>.<field>\", \"expr\": \"...\" }`. Every seed step has `set`.\n- `set` names one field: `scopes.<scope>.<field>`. Nothing deeper, no index. To change part of object or array, write whole field: `{ \"set\": \"scopes.root.filters\", \"expr\": \"({ ...currentValue, status: 'open' })\" }`.\n- Seed runs once, at first mount, writes only unset fields (first writer wins): initializes, never resets. Change state from callbacks.\n- Seed calling host function shows element's skeleton until resolved. Never write `await`: runtime awaits.\n- Step reading field earlier step writes waits for it; independent steps run in parallel. Child seeds run after parent's.\n- Seed only reads data. Create, update, delete only from callbacks.\n- No derived values in seed: runs once, value goes stale. Derive inline in `props`, `hidden`, `each`.\n - ❌ `\"seed\": [{ \"set\": \"scopes.root.visible\", \"expr\": \"scopes.root.rows.filter(r => r.name.includes(scopes.root.q))\" }]` with `\"each\": \"scopes.root.visible\"` — typing in search does nothing.\n - ✅ `\"each\": \"scopes.root.rows.filter(r => r.name.includes(scopes.root.q))\"`\n- Unset field reads `undefined`; read below it throws. Seed state before reading, or guard with `?.` / `??`.\n- Root entry seeds all root state.\n\n## 4. Scopes\n\n- `scopes.root`: page state.\n- List with `\"as\": \"row\"` gives each item two scopes:\n - `scopes.row` — object item itself: `scopes.row.name` reads its `name`. String or number item: only `scopes.$row.value`; reading `scopes.row` fails.\n - `scopes.$row` — row: `index` (0-based), `id` (`keyBy` value, else index), `value` (item, when array holds strings or numbers). These three read-only. Host call takes data field, `scopes.row.id`.\n- `as` names new scope: never `root`, host scope, or enclosing list's `as`; no leading `$`.\n- Row's own UI state (expanded, editing, draft) goes in `scopes.$row`: starts unset, stays out of data, write re-renders only that row. Toggle: `{ \"set\": \"scopes.$row.open\", \"expr\": \"!currentValue\" }`. Only row and its children see it.\n- State read outside row (select all, selected count) lives at root, keyed by row id. Read: `scopes.root.selected[scopes.$row.id] ?? false`. Toggle: `{ \"set\": \"scopes.root.selected\", \"expr\": \"({ ...currentValue, [scopes.$row.id]: !currentValue[scopes.$row.id] })\" }`. Select all, with `\"keyBy\": \"id\"`: `{ \"set\": \"scopes.root.selected\", \"expr\": \"scopes.root.rows.reduce((m, r) => ({ ...m, [r.id]: true }), {})\" }`. Seed `selected: {}` on root. Nested list: key by both ids, `scopes.$order.id + '/' + scopes.$line.id`.\n- No other scopes unless note names them. Other `scopes.x` reads `undefined`; writing it fails.\n\n## 5. Reactivity\n\n- Automatic. `props`, `hidden`, `busy`, `each` subscribe to every `scopes.X.Y` they read; write re-renders readers. Reading whole scope (`Object.keys(scopes.root)`) subscribes to all its fields. `seed`, `callbacks` never subscribe.\n- Write wakes readers below it: writing `scopes.root.user` wakes reader of `scopes.root.user.name`.\n- Write to item field puts edited copy of item into array `each` reads, and in nested list into arrays above. `{ \"set\": \"scopes.row.qty\", \"expr\": \"evt.value\" }` updates `scopes.root.rows`, so totals and filters reading it update. Live total inline in props: `scopes.root.rows.reduce((s, r) => s + r.qty * r.price, 0)`.\n- So `each` reads data itself, or `filter`, `toSorted`, `slice` of it. When `each` builds new objects (`rows.map(r => ({ ...r, total: r.qty * r.price }))`), row writes fail: compute per-row values in `props`.\n\n## 6. Lists\n\n- `each`: bare expression giving array, `\"scopes.root.rows\"` or derived `\"scopes.root.rows.filter(r => r.active)\"`; `null` or `undefined` gives no rows. `as`: required, names item scopes (§4). `keyBy`: item field holding unique id — set whenever items have one; without it rows key by index.\n- List entry's component renders once per item: `\"component\": \"TableRow\"` gives one row per item. Its `props` and `children` see item scopes.\n- Cap list whose size you don't control: `\"each\": \"scopes.root.rows.slice(0, 🔴MAX_LIST_ITEMS🔴)\"`, no-op on smaller data. Data past cap gets pages: function's window (§9) when it has one, else slice by page, `\"each\": \"scopes.root.rows.slice((scopes.root.page - 1) * 50, scopes.root.page * 50)\"`, callbacks writing `scopes.root.page`. Hide pager on one page: `\"hidden\": \"scopes.root.rows.length <= 50\"`. Search or filters only for data that can pass cap.\n- List's own `seed` runs once for whole list, outside rows: no `scopes.$<as>` there.\n\n## 7. Callbacks\n\n- `\"callbacks\": { \"onClick\": [steps] }`. Only handlers component lists; others never fire.\n- Step: `{ \"set\": \"scopes.<scope>.<field>\", \"expr\": \"...\" }`, or `\"literal\"` instead of `\"expr\"`. Step without `set` runs for its effect.\n- `evt`: handler's payload; fields listed under component.\n- `currentValue`: value at step's `set` field, `undefined` when unset. Toggle `!currentValue`, increment `currentValue + 1`, append `[...currentValue, item]`.\n- Order: step reading field earlier step writes waits for it; host function call waits for every earlier step; row field write counts as write to list's array. Other steps may run together. Save-then-refetch just works.\n- `\"confirm\": \"Delete this order?\"` on step opens dialog first; cancel skips that step and every later one. Put on first step of every callback that deletes or cannot be undone, and on every step calling 🔴 function: say what changes. 🔴 step without `confirm` shows generic dialog. Never build confirm dialog entries.\n- `\"debounce\": true` on step: it and later steps run after 300 ms without another call, with latest `evt`; earlier steps run at once. Search: `\"onChange\": [{ \"set\": \"scopes.root.q\", \"expr\": \"evt.value\" }, { \"set\": \"scopes.root.rows\", \"expr\": \"Api_search({ q: scopes.root.q })\", \"debounce\": true }]`. Never call host function on every keystroke.\n- Patterns:\n - Remove item: `{ \"set\": \"scopes.root.rows\", \"expr\": \"currentValue.filter(r => r.id !== scopes.row.id)\" }`\n - Edit row field: `{ \"set\": \"scopes.row.qty\", \"expr\": \"evt.value\" }`\n - Edit row from outside its list, replacing array: `{ \"set\": \"scopes.root.rows\", \"expr\": \"currentValue.map(r => r.id === scopes.root.selectedId ? { ...r, qty: 0 } : r)\" }`\n\n## 8. Hidden and busy\n\n- `hidden`: bare expression, not `{ \"expr\": ... }`. Truthy hides element. Hidden element keeps state, and its expressions still run: guard them, `scopes.root.user?.name`.\n- `busy`: bare expression. Truthy shows component busy, content kept. For refreshes; first load shows skeleton by itself. Set flag, call, clear flag: `{ \"busy\": \"scopes.root.busy\" }` and `\"onClick\": [{ \"set\": \"scopes.root.busy\", \"literal\": true }, { \"set\": \"scopes.root.rows\", \"expr\": \"Api_list()\" }, { \"set\": \"scopes.root.busy\", \"literal\": false }]`. Seed `busy: false` on root.\n\n## 9. Host functions\n\n- Listed under **Available Functions**. Call in `seed` and `callbacks` steps only, never in `props`, `hidden`, `busy`, `each`.\n- One argument matching documented input; none when no input: `Api_list()`, `Api_delete({ id: scopes.row.id })`, never `Api_delete(scopes.row.id)`.\n- Call is step's result: whole expression, `?:` branch, or right side of `&&`, `||`, `??` (`scopes.root.q ? Api_search({ q: scopes.root.q }) : []`). Runtime awaits it, writes result to `set`. Read result in later step or in `props`. Rejected: `Api_list().length`, `[A(), B()]`, `ids.map(id => Api_get({ id }))`. Many ids: call one function taking all.\n- Function offers window, sort or filters (limit, offset, page, cursor, sort, filter fields): use them. Fetch slice you render; refetch when page or filter changes. Never filter or sort fetched slice in expression unless it holds every matching row (`total <= limit`). Read returned totals instead of summing rows.\n- Marks in **Function Details**: 🟢 reads data, 🟡 adds data, 🔴 changes or deletes data. 🟡 and 🔴: callbacks only, in `seed` they fail. No mark: unknown, judge by name and description.\n- Mutate in callback, then refetch.\n- Function returning `unknown`: shape undeclared, not empty. Call for effect only (step without `set`), then refetch through function with documented return. Never read fields off it; never call in seed.\n - ✅ `[{ \"expr\": \"Api_archive({ id: scopes.row.id })\" }, { \"set\": \"scopes.root.rows\", \"expr\": \"Api_list()\" }]`\n\n## 10. Replacing entries\n\n- Re-emit `key` to replace its entry, later in same output or later turn. New `children` define subtree: listed old children stay as they are (don't re-emit), new keys follow as usual. Old key listed under another parent moves there, subtree and all; listed nowhere: dropped. To fix only entry, keep `children` same.\n- State survives. Seed that succeeded never re-runs; failed one runs again once fixed. New state: new key's seed, or callback.\n- Broken entry (bad expression, unknown function, bad syntax) shows error in its place; rest of UI works. Re-emit it fixed, once, only when sure. No trial and error.\n\n# Expression Context\n\nExpressions use language under **JavaScript Expressions**, plus these names:\n\n- `scopes` — state (§4). `scopes.root` always exists; list rows add `scopes.<as>` and `scopes.$<as>`.\n- `evt` — handler's payload, callbacks only.\n- `currentValue` — value at step's `set` field, only in steps with `set`.\n- Host functions under **Available Functions** — steps only, called bare: `getUsers()`, never `await getUsers()`.\n"
@@ -1,4 +1,4 @@
1
- import { EntryError } from "../entry-error.js";
1
+ import { EntryError } from "../entry/entry-error.js";
2
2
  import { PROTOTYPE_KEYS, ROW_FIELDS } from "./parse-set-address.js";
3
3
  function createEmitter() {
4
4
  const events = new Map();
@@ -1,4 +1,4 @@
1
- import { EntryError } from "../entry-error.js";
1
+ import { EntryError } from "../entry/entry-error.js";
2
2
  import type { ComponentEntry } from "../types.js";
3
3
  export declare const PROTOTYPE_KEYS: Set<string>;
4
4
  export declare const ROW_FIELDS: Set<string>;
@@ -1,4 +1,4 @@
1
- import { EntryError } from "../entry-error.js";
1
+ import { EntryError } from "../entry/entry-error.js";
2
2
  const ADDRESS = /^scopes\.([A-Za-z_$][\w$]*)\.([A-Za-z_$][\w$]*)$/;
3
3
  export const PROTOTYPE_KEYS = new Set([
4
4
  "__proto__",
@@ -1,5 +1,5 @@
1
1
  import type { StandardJSONSchemaV1, StandardSchemaV1 } from "@standard-schema/spec";
2
- import { type EntryErrorReason } from "../entry-error.js";
2
+ import { type EntryErrorReason } from "../entry/entry-error.js";
3
3
  type Step = {
4
4
  set?: string;
5
5
  confirm?: string;
@@ -1,4 +1,4 @@
1
- import { REASON_DESCRIPTIONS } from "../entry-error.js";
1
+ import { REASON_DESCRIPTIONS } from "../entry/entry-error.js";
2
2
  // The schemas use nothing these drafts disagree on.
3
3
  const TARGETS = new Set(["draft-2020-12", "draft-07", "openapi-3.0"]);
4
4
  const schema = (json, check) => {
package/dist/types.d.ts CHANGED
@@ -112,6 +112,8 @@ export type CombinedSpec<Input = unknown, Output = Input> = StandardSchemaV1<Inp
112
112
  export type ComponentDefinition<TProps extends CombinedSpec = CombinedSpec, TCallbacks extends Record<string, CombinedSpec> = Record<string, CombinedSpec>> = {
113
113
  /** What an entry's `component` names, e.g. `"Badge"`. Must be unique: the prompt builder and `<RendererProvider>` throw on a repeat. */
114
114
  name: string;
115
+ /** A name for people, e.g. `"Data table"`. Never printed in the prompt. */
116
+ title?: string;
115
117
  /** When to use the component, printed word for word in the prompt. */
116
118
  description: string;
117
119
  /** The props schema: the prompt prints it, and the renderer parses props through it before `render`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uicast/core",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "The framework-agnostic engine of uicast, the expression-driven generative UI framework: entry format, guarded expressions (allow-list, not a sandbox), reactive scopes, and prompt builders.",
5
5
  "license": "MIT",
6
6
  "author": "Andrey Gubanov (https://github.com/finom)",
@@ -51,9 +51,9 @@
51
51
  "typecheck": "tsc --noEmit"
52
52
  },
53
53
  "devDependencies": {
54
- "@vitest/coverage-v8": "^5.0.5",
54
+ "@vitest/coverage-v8": "^5.1.2",
55
55
  "standard-tool": "^0.1.1",
56
- "vitest": "^5.0.5",
56
+ "vitest": "^5.1.2",
57
57
  "zod": "~4.6.7"
58
58
  },
59
59
  "publishConfig": {
@@ -63,6 +63,6 @@
63
63
  "@standard-schema/spec": "^1.1.0"
64
64
  },
65
65
  "peerDependencies": {
66
- "@uicast/expr": "^0.0.6"
66
+ "@uicast/expr": "^0.0.7"
67
67
  }
68
68
  }
File without changes