@vectoriox/iox-ui 5.111.0 → 5.112.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vectoriox-iox-ui-assist-core.mjs","sources":["../../../projects/iox-ui/src/assist-core/surfaces.ts","../../../projects/iox-ui/src/assist-core/budget.ts","../../../projects/iox-ui/src/assist-core/brief.ts","../../../projects/iox-ui/src/assist-core/content-fields.ts","../../../projects/iox-ui/src/assist-core/rich-text.ts","../../../projects/iox-ui/src/assist-core/field-values.ts","../../../projects/iox-ui/src/assist-core/summarize-item.ts","../../../projects/iox-ui/src/assist-core/fields-schema.ts","../../../projects/iox-ui/src/assist-core/route-schema.ts","../../../projects/iox-ui/src/assist-core/field-edits.ts","../../../projects/iox-ui/src/assist-core/assist-turn.ts","../../../projects/iox-ui/src/assist-core/assist-locale.ts","../../../projects/iox-ui/src/assist-core/public-api.ts","../../../projects/iox-ui/src/assist-core/vectoriox-iox-ui-assist-core.ts"],"sourcesContent":["import { AiStep } from '@vectoriox/iox-ui/generation-core';\n\n/**\n * The surfaces AI Assist runs on (ai-assist-plan §2, §4): each screen that offers a prompt registers ONE spec — what it\n * may change (families), how an accepted change is committed, which model steps a turn uses, the role actions the\n * server re-checks, whether it reads photos and the focus ladder its chip widens along.\n */\n\nexport enum AssistSurface {\n BuilderPage = 'builderPage',\n ContentItem = 'contentItem',\n ContentFromPhotos = 'contentFromPhotos',\n ContentList = 'contentList',\n SchemaType = 'schemaType',\n ShopProduct = 'shopProduct',\n Media = 'media',\n BuilderSite = 'builderSite',\n FormInbox = 'formInbox',\n}\n\n/** How an accepted turn reaches the studio (plan §3e). */\nexport enum CommitKind {\n /** One builder history step. */\n BuilderStep = 'builderStep',\n /** Written into the screen's form; Save stays the owner's. */\n FormFill = 'formFill',\n /** A server run that writes drafts, with its own Undo. */\n Run = 'run',\n /** Nothing is written: filters, a copied reply. */\n View = 'view',\n}\n\n/** The closed edit families a sentence may be answered in — one strict request each. */\nexport enum EditFamily {\n Words = 'words',\n Sections = 'sections',\n Style = 'style',\n Look = 'look',\n Fields = 'fields',\n Items = 'items',\n View = 'view',\n Schema = 'schema',\n Media = 'media',\n Plan = 'plan',\n}\n\n/** The model steps of a turn — generation-core's `AiStep` rows (Settings ▸ AI ▸ Models), never a second spelling. */\nexport const AssistStep = {\n AssistRoute: AiStep.AssistRoute,\n AssistEdit: AiStep.AssistEdit,\n AssistRead: AiStep.AssistRead,\n} as const;\nexport type AssistStep = typeof AssistStep[keyof typeof AssistStep];\n\n/** One rung of a surface's focus ladder — the chip's ✕ widens to the next rung. */\nexport enum AssistScope {\n Field = 'field',\n Item = 'item',\n Type = 'type',\n Types = 'types',\n Node = 'node',\n Section = 'section',\n Page = 'page',\n Site = 'site',\n Photo = 'photo',\n Photos = 'photos',\n Rows = 'rows',\n Slot = 'slot',\n Library = 'library',\n Submission = 'submission',\n}\n\n/** iox-cms role actions (`roles/enums.ts` `Permissions`) a surface needs — the server re-checks them, never only the client. */\nexport enum AssistPermission {\n SchemaAll = 'schema_all',\n ContentRead = 'content_read',\n ContentCreate = 'content_create',\n ContentUpdate = 'content_update',\n PageRead = 'page_read',\n PageCreate = 'page_create',\n PageUpdate = 'page_update',\n PageDelete = 'page_delete',\n StorageAll = 'storage_all',\n ProductsAll = 'products_all',\n}\n\nexport enum SurfaceStatus {\n Built = 'built',\n Planned = 'planned',\n}\n\nexport interface SurfaceSpec {\n readonly surface: AssistSurface;\n readonly families: ReadonlyArray<EditFamily>;\n readonly commit: CommitKind;\n /** A family committed differently from the surface (the list's items are a Run; its filters a View). */\n readonly familyCommits?: Readonly<Partial<Record<EditFamily, CommitKind>>>;\n /** Model steps a turn may use. Media (S7) uses the picture steps of generation-core, none of these. */\n readonly steps: ReadonlyArray<AssistStep>;\n /** Every one is required. `content_<action>` is specialised per content type when `perContentType`. */\n readonly permissions: ReadonlyArray<AssistPermission>;\n /** A family that needs more than the surface does. */\n readonly familyPermissions?: Readonly<Partial<Record<EditFamily, ReadonlyArray<AssistPermission>>>>;\n /** The content permissions name a type (`content_<type>_<action>`), as the iox-cms guard specialises them. */\n readonly perContentType: boolean;\n readonly readsPhotos: boolean;\n /** The focus ladder, narrowest first. */\n readonly scopes: ReadonlyArray<AssistScope>;\n readonly status: SurfaceStatus;\n}\n\nconst spec = (s: Omit<SurfaceSpec, 'perContentType' | 'readsPhotos'> & Partial<Pick<SurfaceSpec, 'perContentType' | 'readsPhotos'>>): SurfaceSpec => ({\n perContentType: false,\n readsPhotos: false,\n ...s,\n});\n\nexport const SURFACES: Readonly<Record<AssistSurface, SurfaceSpec>> = {\n [AssistSurface.BuilderPage]: spec({\n surface: AssistSurface.BuilderPage,\n families: [EditFamily.Words, EditFamily.Sections, EditFamily.Style, EditFamily.Look],\n commit: CommitKind.BuilderStep,\n steps: [AssistStep.AssistRoute, AssistStep.AssistEdit],\n permissions: [AssistPermission.PageUpdate],\n scopes: [AssistScope.Node, AssistScope.Section, AssistScope.Page],\n status: SurfaceStatus.Planned,\n }),\n [AssistSurface.ContentItem]: spec({\n surface: AssistSurface.ContentItem,\n families: [EditFamily.Fields],\n commit: CommitKind.FormFill,\n steps: [AssistStep.AssistRoute, AssistStep.AssistEdit],\n permissions: [AssistPermission.ContentUpdate],\n perContentType: true,\n scopes: [AssistScope.Field, AssistScope.Item, AssistScope.Type],\n status: SurfaceStatus.Built,\n }),\n [AssistSurface.ContentFromPhotos]: spec({\n surface: AssistSurface.ContentFromPhotos,\n families: [EditFamily.Fields, EditFamily.Media],\n commit: CommitKind.Run,\n steps: [AssistStep.AssistRoute, AssistStep.AssistRead, AssistStep.AssistEdit],\n permissions: [AssistPermission.ContentCreate, AssistPermission.StorageAll],\n perContentType: true,\n readsPhotos: true,\n scopes: [AssistScope.Photo, AssistScope.Photos, AssistScope.Type],\n status: SurfaceStatus.Planned,\n }),\n [AssistSurface.ContentList]: spec({\n surface: AssistSurface.ContentList,\n families: [EditFamily.View, EditFamily.Items],\n commit: CommitKind.View,\n familyCommits: { [EditFamily.Items]: CommitKind.Run },\n steps: [AssistStep.AssistRoute, AssistStep.AssistEdit],\n permissions: [AssistPermission.ContentRead],\n familyPermissions: { [EditFamily.Items]: [AssistPermission.ContentCreate, AssistPermission.ContentUpdate] },\n perContentType: true,\n scopes: [AssistScope.Rows, AssistScope.Type],\n status: SurfaceStatus.Planned,\n }),\n [AssistSurface.SchemaType]: spec({\n surface: AssistSurface.SchemaType,\n families: [EditFamily.Schema],\n commit: CommitKind.FormFill,\n steps: [AssistStep.AssistRoute, AssistStep.AssistEdit],\n permissions: [AssistPermission.SchemaAll],\n scopes: [AssistScope.Field, AssistScope.Type, AssistScope.Types],\n status: SurfaceStatus.Planned,\n }),\n [AssistSurface.ShopProduct]: spec({\n surface: AssistSurface.ShopProduct,\n families: [EditFamily.Fields],\n commit: CommitKind.FormFill,\n steps: [AssistStep.AssistRoute, AssistStep.AssistRead, AssistStep.AssistEdit],\n permissions: [AssistPermission.ProductsAll],\n readsPhotos: true,\n scopes: [AssistScope.Field, AssistScope.Item],\n status: SurfaceStatus.Planned,\n }),\n [AssistSurface.Media]: spec({\n surface: AssistSurface.Media,\n families: [EditFamily.Media],\n commit: CommitKind.Run,\n steps: [],\n permissions: [AssistPermission.StorageAll],\n readsPhotos: true,\n scopes: [AssistScope.Slot, AssistScope.Library],\n status: SurfaceStatus.Planned,\n }),\n [AssistSurface.BuilderSite]: spec({\n surface: AssistSurface.BuilderSite,\n families: [EditFamily.Plan, EditFamily.Sections],\n commit: CommitKind.Run,\n steps: [AssistStep.AssistRoute, AssistStep.AssistEdit],\n permissions: [AssistPermission.PageCreate, AssistPermission.PageUpdate, AssistPermission.PageDelete],\n familyPermissions: { [EditFamily.Plan]: [AssistPermission.SchemaAll] },\n scopes: [AssistScope.Page, AssistScope.Site],\n status: SurfaceStatus.Planned,\n }),\n [AssistSurface.FormInbox]: spec({\n surface: AssistSurface.FormInbox,\n families: [EditFamily.Words],\n commit: CommitKind.View,\n steps: [AssistStep.AssistRoute, AssistStep.AssistEdit],\n permissions: [AssistPermission.PageRead],\n scopes: [AssistScope.Submission],\n status: SurfaceStatus.Planned,\n }),\n};\n\nexport const surfaceSpec = (surface: AssistSurface): SurfaceSpec => SURFACES[surface];\n\nexport const builtSurfaces = (): AssistSurface[] =>\n Object.values(SURFACES).filter(s => s.status === SurfaceStatus.Built).map(s => s.surface);\n\nexport const commitOf = (surface: AssistSurface, family: EditFamily): CommitKind =>\n SURFACES[surface].familyCommits?.[family] ?? SURFACES[surface].commit;\n\nconst CONTENT_PERMISSION_PREFIX = 'content_';\nconst ALL_SUFFIX = '_all';\n\n/**\n * The permission strings the server checks for a turn on this surface (and these families): `content_<action>` becomes\n * `content_<type>_<action>` on a per-type surface — the same specialisation iox-cms's AuthorizationGuard applies to a\n * `:resource` route, so a user granted only `content_posts_update` may assist on posts and nowhere else.\n */\nexport function surfacePermissions(surface: AssistSurface, contentType?: string, families: ReadonlyArray<EditFamily> = []): string[] {\n const s = SURFACES[surface];\n const all = [...s.permissions, ...families.flatMap(f => s.familyPermissions?.[f] ?? [])];\n const named = all.map(p => {\n if (!s.perContentType || !contentType || !p.startsWith(CONTENT_PERMISSION_PREFIX) || p.endsWith(ALL_SUFFIX)) return p as string;\n return `${CONTENT_PERMISSION_PREFIX}${contentType}_${p.slice(CONTENT_PERMISSION_PREFIX.length)}`;\n });\n return [...new Set(named)];\n}\n","import { JsonSchema, STRICT_SCHEMA_BUDGET, strictSchemaComplexity } from '@vectoriox/iox-ui/generation-core';\n\n/** The house budget every Assist request is held to (plan F6, trap T7) — generation-core's, never a copy and never raised. */\nexport const MAX_ASSIST_PROPERTIES = STRICT_SCHEMA_BUDGET.properties;\n\n/** The route request is small and fast (plan §3a). */\nexport const MAX_ROUTE_PROPERTIES = 12;\n\n/** Around-layer text is a summary: at most this many characters per value (plan §3c). */\nexport const AROUND_TEXT_CHARS = 160;\n\n/** Sibling items sent as examples of voice (plan §3c: 3–5). */\nexport const AROUND_ITEMS_MAX = 5;\n\n/** The session memory sent with a turn: the last turns, one line each (plan §3c). */\nexport const MEMORY_TURNS = 6;\n\nexport class AssistBudgetError extends Error {}\n\n/** What a request's strict schemas break of the house budget — empty when it fits. */\nexport function assistBudgetIssues(schemas: ReadonlyArray<JsonSchema>, maxProperties: number = MAX_ASSIST_PROPERTIES): string[] {\n const c = strictSchemaComplexity(schemas);\n return [\n ...c.unsupported,\n ...(c.properties > maxProperties ? [`${c.properties} properties (budget ${maxProperties})`] : []),\n ...(c.optional > STRICT_SCHEMA_BUDGET.optional ? [`${c.optional} optional (budget ${STRICT_SCHEMA_BUDGET.optional})`] : []),\n ...(c.unions > STRICT_SCHEMA_BUDGET.unions ? [`${c.unions} unions (budget ${STRICT_SCHEMA_BUDGET.unions})`] : []),\n ];\n}\n\nexport function assertAssistBudget(name: string, schemas: ReadonlyArray<JsonSchema>, maxProperties?: number): void {\n const issues = assistBudgetIssues(schemas, maxProperties);\n if (issues.length) throw new AssistBudgetError(`${name}: ${issues.join('; ')}`);\n}\n","import { AssistScope, AssistSurface, EditFamily } from './surfaces';\n\n/**\n * The brief (plan §3c): what the model is told, built by CODE from what the screen holds, sized by distance from the\n * focus. It names things by HANDLE (`f.summary`, `s2`), never by id (rule 3); the handle map that goes with it is\n * kept by the caller and the server, never sent.\n */\nexport interface Brief<TFocus = unknown, TAround = unknown> {\n readonly surface: AssistSurface;\n /** The thing the sentence is about, in full. */\n readonly focus: TFocus;\n /** Its neighbourhood, summarised. */\n readonly around: TAround;\n /** The business reading (kind, voice, facts, languages) — the caller passes it; null when there is none. */\n readonly owner: string | null;\n readonly rules: BriefRules;\n /** The session's last turns, one line each, oldest first. */\n readonly memory: ReadonlyArray<string>;\n}\n\nexport interface BriefRules {\n /** The families a turn on this focus may answer in. */\n readonly families: ReadonlyArray<EditFamily>;\n /** The locale words are written in (a multiLang field gets this one key). */\n readonly locale: string;\n /** What is never written here, each with why — the model leaves it and says it \"needs you\". */\n readonly never: ReadonlyArray<NeverWrite>;\n /** The focus rung and the rungs it can widen to. */\n readonly scope: AssistScope;\n readonly widensTo: ReadonlyArray<AssistScope>;\n}\n\nexport interface NeverWrite {\n readonly handle: string;\n readonly label: string;\n readonly reason: string;\n}\n\n/** What a handle stands for. `path` is the key path inside the target; `id` a record the handle names (never sent). */\nexport interface HandleTarget {\n readonly key: string;\n readonly path: ReadonlyArray<string>;\n readonly id?: string;\n}\n\nexport type HandleMap = Readonly<Record<string, HandleTarget>>;\n\nexport enum AssistIssueCode {\n UnknownHandle = 'unknownHandle',\n NeverWrite = 'neverWrite',\n WrongType = 'wrongType',\n NotAnOption = 'notAnOption',\n Duplicate = 'duplicate',\n WrongLocale = 'wrongLocale',\n HtmlNotAllowed = 'htmlNotAllowed',\n UnknownFamily = 'unknownFamily',\n BadRequest = 'badRequest',\n UnknownSurface = 'unknownSurface',\n SurfaceNotBuilt = 'surfaceNotBuilt',\n EmptySentence = 'emptySentence',\n SentenceTooLong = 'sentenceTooLong',\n MissingHandles = 'missingHandles',\n MissingValues = 'missingValues',\n}\n\nexport interface AssistIssue {\n readonly code: AssistIssueCode;\n readonly handle?: string;\n readonly message: string;\n}\n\n/** A caller's mistake building a brief (a focus that is not on the screen) — never a model answer. */\nexport class AssistBriefError extends Error {\n constructor(readonly code: AssistIssueCode, message: string) {\n super(message);\n }\n}\n\nexport type HandleResolution = { ok: true; target: HandleTarget } | { ok: false; issue: AssistIssue };\n\n/** The one way a handle becomes a key: an unknown handle is refused, never guessed (trap T1). */\nexport function resolveHandle(handles: HandleMap, handle: string): HandleResolution {\n const target = Object.prototype.hasOwnProperty.call(handles, handle) ? handles[handle] : undefined;\n if (target) return { ok: true, target };\n return { ok: false, issue: { code: AssistIssueCode.UnknownHandle, handle, message: `\"${handle}\" is not a handle of this brief` } };\n}\n\n/** Every handle of the list that the brief does not know. */\nexport function unknownHandles(handles: HandleMap, list: ReadonlyArray<string>): AssistIssue[] {\n return list.flatMap(h => {\n const r = resolveHandle(handles, h);\n return 'issue' in r ? [r.issue] : [];\n });\n}\n\nexport const FIELD_HANDLE_PREFIX = 'f.';\nexport const SIBLING_HANDLE_PREFIX = 's';\nexport const fieldHandle = (key: string): string => `${FIELD_HANDLE_PREFIX}${key}`;\n","import { fieldHandle } from './brief';\n\n/**\n * A content type's fields as Assist sees them, read from the REAL stored schema (iox-cms `schemas` row:\n * `{ name, metaData, schemaObject: { properties } }`; each property `{ type, label, controller: { type, options } }` —\n * cms-client `schema-doc/property-def.model.ts`). A multiLang field is `type: 'object'` + `controller.type: 'multiLang'`\n * whose `properties` are its locales (`{ en: {…}, he: {…} }`), each with the inner control.\n *\n * Every field is either WRITABLE (one of the kinds below) or NEVER written, with a reason. Never written:\n * - by what it is: relations, media (ids / URLs), secrets, dates, e-mail, nested structures, a select with no options;\n * - by what it is about — a closed word list over the key and the label (English + Hebrew): money (price, cost, fee,\n * currency, discount, VAT…), stock (quantity, inventory…), product codes (SKU, barcode…), contact facts (phone, e-mail,\n * address, location, hours…), dates and web addresses (slug, URL, link). A field whose controller or type is `money`\n * / `price` / `currency` is money, ready for \"money as a field type\" (AI plan) the day it exists.\n * The model never sees the value of a never-written field, only whether it is filled; the owner fills it (\"needs you\").\n */\n\nexport interface ContentControllerDef {\n readonly type?: string;\n readonly options?: unknown;\n}\n\nexport interface ContentPropertyDef {\n readonly type: string;\n readonly label?: string;\n readonly controller?: ContentControllerDef;\n readonly properties?: Readonly<Record<string, ContentPropertyDef>>;\n readonly items?: ContentPropertyDef;\n readonly required?: boolean;\n readonly rel?: unknown;\n}\n\nexport interface ContentTypeSchema {\n readonly name: string;\n readonly metaData?: { readonly label?: string; readonly previewTextField?: string; readonly previewImageField?: string };\n readonly schemaObject: { readonly properties: Readonly<Record<string, ContentPropertyDef>> };\n}\n\nexport enum AssistFieldKind {\n Text = 'text',\n Textarea = 'textarea',\n /** Written as plain paragraphs, never HTML (trap T6). */\n RichText = 'richText',\n Number = 'number',\n Boolean = 'boolean',\n /** One of the field's options. */\n Choice = 'choice',\n /** Some of the field's options. */\n Choices = 'choices',\n /** A list of words. */\n Tags = 'tags',\n /** Not writable — `never` says why. */\n Other = 'other',\n}\n\nexport enum NeverWriteReason {\n Money = 'money',\n Stock = 'stock',\n ProductCode = 'productCode',\n Contact = 'contact',\n Date = 'date',\n WebAddress = 'webAddress',\n Relation = 'relation',\n Media = 'media',\n Secret = 'secret',\n Structure = 'structure',\n}\n\nexport interface AssistField {\n readonly key: string;\n readonly handle: string;\n readonly label: string;\n readonly kind: AssistFieldKind;\n readonly required: boolean;\n /** Choice / Choices: the option values the field accepts. */\n readonly options?: ReadonlyArray<string>;\n /** multiLang: the locales the field holds, in schema order. */\n readonly locales?: ReadonlyArray<string>;\n readonly never?: NeverWriteReason;\n}\n\n/** iox-cms `RESERVED_SCHEMA_PROPERTIES` + read-time bookkeeping + shop catalog bookkeeping — never a field. */\nconst NOT_FIELDS: ReadonlySet<string> = new Set([\n 'isPublished', 'organization', 'info', 'addedBy', 'created', 'lastUpdate', '_id', 'isSample', 'pricingUnit',\n]);\n\nenum Control {\n Text = 'text',\n Tag = 'tag',\n Textarea = 'textarea',\n RichText = 'richText',\n Number = 'number',\n Range = 'range',\n Switch = 'switch',\n Checkbox = 'checkbox',\n Select = 'select',\n MultiSelect = 'multiSelect',\n CheckboxGroup = 'checkboxGroup',\n Tags = 'tags',\n List = 'list',\n MultiLang = 'multiLang',\n Email = 'email',\n Password = 'password',\n Encrypt = 'encrypt',\n Date = 'date',\n Time = 'time',\n Image = 'image',\n Media = 'media',\n Gallery = 'gallery',\n RelationCombobox = 'relationCombobox',\n Money = 'money',\n Price = 'price',\n Currency = 'currency',\n}\n\nenum DataType {\n String = 'string',\n Array = 'array',\n Object = 'object',\n Rel = 'rel',\n Encrypt = 'encrypt',\n Date = 'date',\n Money = 'money',\n}\n\nconst KIND_OF_CONTROL: Readonly<Partial<Record<string, AssistFieldKind>>> = {\n [Control.Text]: AssistFieldKind.Text,\n [Control.Tag]: AssistFieldKind.Text,\n [Control.Textarea]: AssistFieldKind.Textarea,\n [Control.RichText]: AssistFieldKind.RichText,\n [Control.Number]: AssistFieldKind.Number,\n [Control.Range]: AssistFieldKind.Number,\n [Control.Switch]: AssistFieldKind.Boolean,\n [Control.Checkbox]: AssistFieldKind.Boolean,\n [Control.Select]: AssistFieldKind.Choice,\n [Control.MultiSelect]: AssistFieldKind.Choices,\n [Control.CheckboxGroup]: AssistFieldKind.Choices,\n [Control.Tags]: AssistFieldKind.Tags,\n [Control.List]: AssistFieldKind.Tags,\n};\n\nconst LIST_KINDS: ReadonlySet<AssistFieldKind> = new Set([AssistFieldKind.Choices, AssistFieldKind.Tags]);\nconst CHOICE_KINDS: ReadonlySet<AssistFieldKind> = new Set([AssistFieldKind.Choice, AssistFieldKind.Choices]);\n\nconst NEVER_OF_CONTROL: Readonly<Partial<Record<string, NeverWriteReason>>> = {\n [Control.Email]: NeverWriteReason.Contact,\n [Control.Password]: NeverWriteReason.Secret,\n [Control.Encrypt]: NeverWriteReason.Secret,\n [Control.Date]: NeverWriteReason.Date,\n [Control.Time]: NeverWriteReason.Date,\n [Control.Image]: NeverWriteReason.Media,\n [Control.Media]: NeverWriteReason.Media,\n [Control.Gallery]: NeverWriteReason.Media,\n [Control.RelationCombobox]: NeverWriteReason.Relation,\n [Control.Money]: NeverWriteReason.Money,\n [Control.Price]: NeverWriteReason.Money,\n [Control.Currency]: NeverWriteReason.Money,\n};\n\nconst NEVER_OF_TYPE: Readonly<Partial<Record<string, NeverWriteReason>>> = {\n [DataType.Rel]: NeverWriteReason.Relation,\n [DataType.Encrypt]: NeverWriteReason.Secret,\n [DataType.Date]: NeverWriteReason.Date,\n [DataType.Money]: NeverWriteReason.Money,\n};\n\n/** The closed word list: a key or label word that makes a field a fact the owner gives. */\nconst NEVER_WORDS: ReadonlyArray<readonly [NeverWriteReason, ReadonlyArray<string>, ReadonlyArray<string>]> = [\n [NeverWriteReason.Money,\n ['price', 'prices', 'pricing', 'cost', 'costs', 'amount', 'fee', 'fees', 'currency', 'discount', 'compareat', 'vat', 'tax', 'total', 'salary', 'budget', 'payment'],\n ['מחיר', 'עלות', 'תשלום', 'מע\"מ', 'הנחה']],\n [NeverWriteReason.Stock, ['stock', 'quantity', 'qty', 'inventory'], ['מלאי', 'כמות']],\n [NeverWriteReason.ProductCode, ['sku', 'barcode', 'ean', 'upc', 'gtin', 'isbn', 'mpn'], ['מק\"ט', 'ברקוד']],\n [NeverWriteReason.Contact,\n ['phone', 'tel', 'telephone', 'mobile', 'whatsapp', 'email', 'mail', 'fax', 'address', 'street', 'city', 'zip', 'postcode', 'location', 'hours'],\n ['טלפון', 'נייד', 'וואטסאפ', 'דוא\"ל', 'אימייל', 'מייל', 'כתובת', 'שעות', 'פקס', 'מיקום']],\n [NeverWriteReason.Date, ['date', 'dates', 'time', 'datetime', 'deadline'], ['תאריך']],\n [NeverWriteReason.WebAddress, ['slug', 'url', 'uri', 'href', 'link', 'website', 'route', 'permalink'], ['קישור', 'לינק']],\n];\n\n/** `startDate` → start, date · `ticket_link` → ticket, link · `Price (₪)` → price. */\nfunction words(text: string): string[] {\n return text.replace(/([a-z0-9])([A-Z])/g, '$1 $2').toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);\n}\n\nfunction neverByWords(key: string, label: string): NeverWriteReason | undefined {\n const english = new Set([...words(key), ...words(label)]);\n const raw = `${key} ${label}`;\n return NEVER_WORDS.find(([, en, he]) => en.some(w => english.has(w)) || he.some(w => raw.includes(w)))?.[0];\n}\n\nfunction optionValues(options: unknown): string[] | undefined {\n if (!Array.isArray(options)) return undefined;\n const values = options.map(o => (o && typeof o === 'object' ? (o as { value?: unknown }).value : o))\n .filter(v => v !== undefined && v !== null && v !== '')\n .map(String);\n return values.length ? [...new Set(values)] : undefined;\n}\n\ninterface Shape {\n kind: AssistFieldKind;\n options?: string[];\n never?: NeverWriteReason;\n}\n\nconst other = (never: NeverWriteReason): Shape => ({ kind: AssistFieldKind.Other, never });\n\n/** What one leaf property is, by its type and control alone. */\nfunction leafShape(def: ContentPropertyDef): Shape {\n const control = def.controller?.type ?? '';\n const never = NEVER_OF_TYPE[def.type] ?? NEVER_OF_CONTROL[control] ?? (def.items ? NEVER_OF_CONTROL[def.items.controller?.type ?? ''] : undefined);\n if (never) return other(never);\n const kind = KIND_OF_CONTROL[control];\n const isList = def.type === DataType.Array;\n if (!kind || isList !== LIST_KINDS.has(kind)) return other(NeverWriteReason.Structure);\n if (isList && def.items && def.items.type !== DataType.String) return other(NeverWriteReason.Structure);\n if (!CHOICE_KINDS.has(kind)) return { kind };\n const options = optionValues(def.controller?.options);\n return options ? { kind, options } : other(NeverWriteReason.Structure);\n}\n\nconst isMultiLang = (def: ContentPropertyDef) => def.controller?.type === Control.MultiLang && !!def.properties;\n\nfunction fieldOf(key: string, def: ContentPropertyDef): AssistField {\n const label = def.label || key;\n const base = { key, handle: fieldHandle(key), label, required: !!def.required };\n if (isMultiLang(def)) {\n const locales = Object.keys(def.properties ?? {});\n const inner = locales.length ? leafShape(def.properties![locales[0]]) : other(NeverWriteReason.Structure);\n const never = inner.never ?? neverByWords(key, label);\n return never ? { ...base, kind: AssistFieldKind.Other, locales, never } : { ...base, ...inner, locales };\n }\n if (def.type === DataType.Object) return { ...base, ...other(NeverWriteReason.Structure) };\n const shape = leafShape(def);\n const never = shape.never ?? neverByWords(key, label);\n return never ? { ...base, kind: AssistFieldKind.Other, never } : { ...base, ...shape };\n}\n\n/** A property the item form renders: not bookkeeping, and (a leaf) carrying a control. */\nconst isFormField = (key: string, def: ContentPropertyDef) =>\n !NOT_FIELDS.has(key) && !!def && (def.type === DataType.Object || !!def.controller);\n\n/** Every form field of the type, in schema order, writable or with the reason it is never written. */\nexport function assistFields(schema: ContentTypeSchema): AssistField[] {\n return Object.entries(schema.schemaObject?.properties ?? {})\n .filter(([key, def]) => isFormField(key, def))\n .map(([key, def]) => fieldOf(key, def));\n}\n\nexport const isWritable = (field: AssistField): boolean => !field.never;\n\n/** The type's title field: its `@title` role (`metaData.previewTextField`), else its first text field. */\nexport function titleField(schema: ContentTypeSchema, fields: ReadonlyArray<AssistField> = assistFields(schema)): AssistField | undefined {\n const role = schema.metaData?.previewTextField;\n return fields.find(f => f.key === role) ?? fields.find(f => f.kind === AssistFieldKind.Text);\n}\n","/**\n * Rich text crosses the model boundary as PLAIN PARAGRAPHS in both directions (trap T6): the brief reads the stored\n * value (the item editor's Quill writes HTML) as paragraphs, and an answer's paragraphs become HTML only here, every\n * character escaped — the model never writes markup that reaches a page.\n */\n\nconst BLOCK_END = /<\\/(p|div|h[1-6]|li|blockquote|pre)>|<br\\s*\\/?>/gi;\nconst TAG = /<[^>]*>/g;\nconst HTML_TAG = /<\\/?[a-z][a-z0-9-]*(\\s[^<>]*)?\\/?>/i;\n\nconst ENTITIES: Readonly<Record<string, string>> = { '&amp;': '&', '&lt;': '<', '&gt;': '>', '&quot;': '\"', '&#39;': \"'\", '&nbsp;': ' ' };\nconst ESCAPES: Readonly<Record<string, string>> = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' };\n\nconst decode = (text: string) => text.replace(/&(amp|lt|gt|quot|#39|nbsp);/g, e => ENTITIES[e] ?? e);\nconst escape = (text: string) => text.replace(/[&<>\"']/g, c => ESCAPES[c]);\n\n/** A stored rich-text value (HTML, or plain text) as its non-empty paragraphs. */\nexport function richTextParagraphs(value: unknown): string[] {\n if (typeof value !== 'string') return [];\n return decode(value.replace(BLOCK_END, '\\n').replace(TAG, ''))\n .split(/\\n+/)\n .map(p => p.replace(/\\s+/g, ' ').trim())\n .filter(Boolean);\n}\n\n/** Paragraphs as the editor's HTML: one `<p>` each, escaped. */\nexport function paragraphsToRichText(paragraphs: ReadonlyArray<string>): string {\n return paragraphs.map(p => `<p>${escape(p.trim())}</p>`).join('');\n}\n\n/** True when a text written by the model carries markup — refused, never stripped. */\nexport const containsHtml = (text: string): boolean => HTML_TAG.test(text);\n","import { AssistFieldKind } from './content-fields';\nimport { richTextParagraphs } from './rich-text';\n\n/** A field's value as the model reads it: text, paragraphs, a number, yes/no, options, words, or per locale. */\nexport type BriefValue = string | number | boolean | ReadonlyArray<string> | Readonly<Record<string, string | ReadonlyArray<string>>> | null;\n\nconst LIST_KINDS: ReadonlySet<AssistFieldKind> = new Set([AssistFieldKind.Choices, AssistFieldKind.Tags]);\n\nexport const isPlainRecord = (v: unknown): v is Record<string, unknown> => !!v && typeof v === 'object' && !Array.isArray(v);\nconst asStrings = (v: unknown): string[] => (Array.isArray(v) ? v.filter(x => x !== null && x !== undefined && x !== '').map(String) : []);\n\nfunction readNumber(raw: unknown): number | null {\n if (typeof raw === 'number') return Number.isFinite(raw) ? raw : null;\n if (typeof raw !== 'string' || raw.trim() === '') return null;\n const n = Number(raw);\n return Number.isFinite(n) ? n : null;\n}\n\n/** One stored value (a plain field, or one locale of a multiLang field) in its kind's readable form. */\nexport function readFieldValue(kind: AssistFieldKind, raw: unknown): BriefValue {\n if (raw === undefined || raw === null) return null;\n if (kind === AssistFieldKind.RichText) return richTextParagraphs(raw);\n if (LIST_KINDS.has(kind)) return asStrings(raw);\n if (kind === AssistFieldKind.Number) return readNumber(raw);\n if (kind === AssistFieldKind.Boolean) return !!raw;\n return typeof raw === 'string' ? raw : String(raw);\n}\n\nexport function isEmptyFieldValue(v: unknown): boolean {\n if (v === null || v === undefined) return true;\n if (typeof v === 'string') return v.trim() === '';\n if (Array.isArray(v)) return v.length === 0;\n if (isPlainRecord(v)) return Object.values(v).every(isEmptyFieldValue);\n return false;\n}\n\n/** A multiLang value's locales, each read in the field's kind. */\nexport function readLocaleValues(kind: AssistFieldKind, locales: ReadonlyArray<string>, raw: unknown): Record<string, BriefValue> {\n const values = isPlainRecord(raw) ? raw : {};\n return Object.fromEntries(locales.map(l => [l, readFieldValue(kind, values[l])]));\n}\n\n","import { AROUND_ITEMS_MAX, AROUND_TEXT_CHARS, MEMORY_TURNS } from './budget';\nimport { AssistBriefError, AssistIssueCode, Brief, FIELD_HANDLE_PREFIX, HandleMap, HandleTarget, NeverWrite, SIBLING_HANDLE_PREFIX } from './brief';\nimport { AssistField, AssistFieldKind, assistFields, ContentTypeSchema, isWritable, NeverWriteReason, titleField } from './content-fields';\nimport { BriefValue, isEmptyFieldValue, readFieldValue, readLocaleValues } from './field-values';\nimport { AssistScope, AssistSurface, SURFACES } from './surfaces';\n\n/**\n * The brief of surface S2 — one content item (plan §3c, §4 S2). Focus = the item (every field as a handle `f.<key>`,\n * its kind, label, full value, which locales a multiLang field has filled) or ONE field when the owner opened the\n * field's sparkle; around = the rest of the item (when the focus is a field) and up to five sibling items of the type,\n * each value clipped to 160 characters — examples of the studio's voice, never something to copy.\n */\n\nexport type ContentRecord = Readonly<Record<string, unknown>>;\n\nexport interface ItemBriefField {\n readonly handle: string;\n readonly label: string;\n readonly kind: AssistFieldKind;\n readonly required: boolean;\n /** In the write locale for a multiLang field. */\n readonly empty: boolean;\n /** Absent on a never-written field: the model only learns whether it is filled. */\n readonly value?: BriefValue;\n readonly options?: ReadonlyArray<string>;\n readonly locales?: { readonly filled: ReadonlyArray<string>; readonly empty: ReadonlyArray<string> };\n readonly never?: NeverWriteReason;\n}\n\nexport interface ItemFocus {\n readonly scope: AssistScope;\n readonly type: { readonly name: string; readonly label: string };\n /** The item's name as the list shows it ('' for a new item). */\n readonly title: string;\n /** The `@title` field's handle, when the type has one. */\n readonly titleHandle: string | null;\n readonly fields: ReadonlyArray<ItemBriefField>;\n}\n\nexport interface ItemSummary {\n readonly handle: string;\n readonly title: string;\n /** handle → value, ≤ 160 characters. */\n readonly fields: Readonly<Record<string, string>>;\n}\n\nexport interface ItemAround {\n /** The item's other fields, summarised — only when the focus is one field. */\n readonly item: Readonly<Record<string, string>> | null;\n readonly siblings: ReadonlyArray<ItemSummary>;\n}\n\nexport type ItemBrief = Brief<ItemFocus, ItemAround>;\n\nexport interface ItemBriefContext {\n /** The locale the turn writes in. */\n readonly locale: string;\n /** One field's key or handle: the per-field sparkle. */\n readonly focusField?: string;\n /** Other items of the type (the item itself is skipped); the first five are sent. */\n readonly siblings?: ReadonlyArray<ContentRecord>;\n readonly owner?: string | null;\n readonly memory?: ReadonlyArray<string>;\n}\n\nexport interface SummarizedItem {\n readonly brief: ItemBrief;\n readonly handles: HandleMap;\n}\n\nconst ID_KEY = '_id';\nconst ELLIPSIS = '…';\nconst LIST_JOIN = ', ';\nconst PARAGRAPH_JOIN = '\\n\\n';\n\nconst TEXT_KINDS: ReadonlySet<AssistFieldKind> = new Set([AssistFieldKind.Text, AssistFieldKind.Textarea, AssistFieldKind.RichText]);\n\nexport const clipText = (text: string, max: number = AROUND_TEXT_CHARS): string =>\n text.length <= max ? text : `${text.slice(0, max - ELLIPSIS.length).trimEnd()}${ELLIPSIS}`;\n\nfunction briefField(field: AssistField, raw: unknown, locale: string): ItemBriefField {\n const base = { handle: field.handle, label: field.label, kind: field.kind, required: field.required };\n if (field.never) return { ...base, empty: isEmptyFieldValue(raw), never: field.never };\n const options = field.options ? { options: field.options } : {};\n if (field.locales) {\n const values = readLocaleValues(field.kind, field.locales, raw);\n const filled = field.locales.filter(l => !isEmptyFieldValue(values[l]));\n return {\n ...base, ...options,\n empty: isEmptyFieldValue(values[locale]),\n value: values as Record<string, string | ReadonlyArray<string>>,\n locales: { filled, empty: field.locales.filter(l => !filled.includes(l)) },\n };\n }\n const value = readFieldValue(field.kind, raw);\n return { ...base, ...options, empty: isEmptyFieldValue(value), value };\n}\n\nconst localeOrFirst = (values: Record<string, BriefValue>, locale: string): BriefValue =>\n !isEmptyFieldValue(values[locale]) ? values[locale] : Object.values(values).find(v => !isEmptyFieldValue(v)) ?? null;\n\n/** A value as one clipped line: the write locale first (else the first filled one), paragraphs and lists joined. */\nfunction summaryText(field: AssistField, raw: unknown, locale: string): string {\n const value = field.locales ? localeOrFirst(readLocaleValues(field.kind, field.locales, raw), locale) : readFieldValue(field.kind, raw);\n if (value === null) return '';\n const text = Array.isArray(value) ? value.join(field.kind === AssistFieldKind.RichText ? PARAGRAPH_JOIN : LIST_JOIN) : String(value);\n return clipText(text.replace(/\\s+/g, ' ').trim());\n}\n\nfunction summaries(fields: ReadonlyArray<AssistField>, record: ContentRecord, locale: string): Record<string, string> {\n return Object.fromEntries(fields\n .map(f => [f.handle, summaryText(f, record[f.key], locale)] as const)\n .filter(([, text]) => text !== ''));\n}\n\nfunction findFocusField(fields: ReadonlyArray<AssistField>, focus: string): AssistField {\n const found = fields.find(f => f.key === focus || f.handle === focus || f.handle === `${FIELD_HANDLE_PREFIX}${focus}`);\n if (!found) throw new AssistBriefError(AssistIssueCode.UnknownHandle, `\"${focus}\" is not a field of this type`);\n return found;\n}\n\nconst neverList = (fields: ReadonlyArray<AssistField>): NeverWrite[] =>\n fields.filter(f => f.never).map(f => ({ handle: f.handle, label: f.label, reason: f.never as string }));\n\nfunction siblingsOf(record: ContentRecord, siblings: ReadonlyArray<ContentRecord>): ContentRecord[] {\n const own = record[ID_KEY];\n return siblings.filter(s => own === undefined || s[ID_KEY] !== own).slice(0, AROUND_ITEMS_MAX);\n}\n\n/** S2's brief and its handle map: `f.<key>` per field, `s<n>` per sibling (its id stays in the map, never sent). */\nexport function summarizeItem(schema: ContentTypeSchema, item: ContentRecord, ctx: ItemBriefContext): SummarizedItem {\n const fields = assistFields(schema);\n const focused = ctx.focusField ? findFocusField(fields, ctx.focusField) : null;\n const title = titleField(schema, fields);\n const voiceFields = fields.filter(f => isWritable(f) && TEXT_KINDS.has(f.kind));\n const siblings = siblingsOf(item, ctx.siblings ?? []);\n const siblingHandle = (i: number) => `${SIBLING_HANDLE_PREFIX}${i + 1}`;\n const surface = SURFACES[AssistSurface.ContentItem];\n const scope = focused ? AssistScope.Field : AssistScope.Item;\n\n const handles: Record<string, HandleTarget> = Object.fromEntries([\n ...fields.map(f => [f.handle, { key: f.key, path: [f.key] }] as const),\n ...siblings.map((s, i) => [siblingHandle(i), { key: siblingHandle(i), path: [], ...(s[ID_KEY] !== undefined ? { id: String(s[ID_KEY]) } : {}) }] as const),\n ]);\n\n const brief: ItemBrief = {\n surface: AssistSurface.ContentItem,\n focus: {\n scope,\n type: { name: schema.name, label: schema.metaData?.label || schema.name },\n title: title ? summaryText(title, item[title.key], ctx.locale) : '',\n titleHandle: title?.handle ?? null,\n fields: (focused ? [focused] : fields).map(f => briefField(f, item[f.key], ctx.locale)),\n },\n around: {\n item: focused ? summaries(fields.filter(f => f !== focused && isWritable(f)), item, ctx.locale) : null,\n siblings: siblings.map((s, i) => ({\n handle: siblingHandle(i),\n title: title ? summaryText(title, s[title.key], ctx.locale) : '',\n fields: summaries(voiceFields, s, ctx.locale),\n })),\n },\n owner: ctx.owner ?? null,\n rules: {\n families: surface.families,\n locale: ctx.locale,\n never: neverList(fields),\n scope,\n widensTo: surface.scopes.slice(surface.scopes.indexOf(scope) + 1),\n },\n memory: (ctx.memory ?? []).slice(-MEMORY_TURNS),\n };\n return { brief, handles };\n}\n\nexport enum ItemSuggestionKind {\n FillEmpty = 'fillEmpty',\n Translate = 'translate',\n Shorten = 'shorten',\n WriteSeo = 'writeSeo',\n}\n\n/** A quick action the box offers, built from the brief (never canned text — the client words it). */\nexport interface ItemSuggestion {\n readonly kind: ItemSuggestionKind;\n readonly handles: ReadonlyArray<string>;\n /** Translate: the locale to fill. */\n readonly locale?: string;\n}\n\n/** A text this long is worth a \"Shorten\". */\nexport const SHORTEN_FROM_CHARS = 280;\nconst SEO_WORDS: ReadonlyArray<string> = ['seo', 'meta'];\n\nconst textLength = (v: BriefValue | undefined): number =>\n typeof v === 'string' ? v.length : Array.isArray(v) ? v.join(' ').length : 0;\n\nfunction translations(writable: ReadonlyArray<ItemBriefField>): ItemSuggestion[] {\n const byLocale = new Map<string, string[]>();\n for (const f of writable) {\n if (!f.locales || !f.locales.filled.length) continue;\n for (const l of f.locales.empty) byLocale.set(l, [...(byLocale.get(l) ?? []), f.handle]);\n }\n return [...byLocale].map(([locale, handles]) => ({ kind: ItemSuggestionKind.Translate, locale, handles }));\n}\n\n/** S2's quick actions: Fill empty fields, Translate to <locale>, Shorten, Write SEO — each only when it applies. */\nexport function itemSuggestions(brief: ItemBrief): ItemSuggestion[] {\n const writable = brief.focus.fields.filter(f => !f.never);\n const empty = writable.filter(f => f.empty).map(f => f.handle);\n const long = writable.filter(f => TEXT_KINDS.has(f.kind) && !f.locales && textLength(f.value) >= SHORTEN_FROM_CHARS).map(f => f.handle);\n const seo = writable.filter(f => SEO_WORDS.some(w => f.handle.slice(FIELD_HANDLE_PREFIX.length).toLowerCase().startsWith(w))).map(f => f.handle);\n return [\n ...(empty.length ? [{ kind: ItemSuggestionKind.FillEmpty, handles: empty }] : []),\n ...translations(writable),\n ...(long.length ? [{ kind: ItemSuggestionKind.Shorten, handles: long }] : []),\n ...(seo.length ? [{ kind: ItemSuggestionKind.WriteSeo, handles: seo }] : []),\n ];\n}\n","import { jsonClosedObject, jsonListOf, jsonOneOf, JsonSchema, jsonText } from '@vectoriox/iox-ui/generation-core';\n\nimport { assertAssistBudget, MAX_ASSIST_PROPERTIES } from './budget';\nimport { AssistBriefError, AssistIssueCode } from './brief';\nimport { AssistField, AssistFieldKind, assistFields, ContentTypeSchema, isWritable } from './content-fields';\n\n/**\n * The strict output format of family `fields` for one content type (plan §3b): one property per WRITABLE field, keyed\n * by its handle, every key required, every object closed. \"Leave it as it is\" is the kind's NONE value — `''` for a\n * text, a number (written in digits), a yes/no or a choice, `[]` for paragraphs and lists — never `null`: the house\n * budget allows 8 unions a request, so nullable fields would cap a part at 8 fields; the house wire (plan-edits) uses\n * the same \"every key required, each with its none\". So Assist never EMPTIES a field — clearing one is the owner's.\n * Rich text is a list of plain paragraphs (trap T6); a multiLang field is written in ONE locale (trap T5). A type with\n * more writable fields than one request holds is split into parts, each ≤ 40 properties (trap T7 — never raised).\n */\n\nexport enum FieldsAnswerKey {\n Fields = 'fields',\n Note = 'note',\n}\n\n/** The answer object's own keys, beside the fields. */\nconst PART_OWN_PROPERTIES = Object.keys(FieldsAnswerKey).length;\n\n/** How many fields one request carries. */\nexport const FIELDS_PER_PART = MAX_ASSIST_PROPERTIES - PART_OWN_PROPERTIES;\n\nexport const NONE_TEXT = '';\nexport const BOOLEAN_TRUE = 'true';\nexport const BOOLEAN_FALSE = 'false';\n\nexport interface FieldsSchemaOptions {\n /** The locale a multiLang field is written in. */\n readonly locale: string;\n /** Only these fields (keys or handles) — the focus. Default: every writable field. */\n readonly fields?: ReadonlyArray<string>;\n}\n\nexport interface FieldsSchemas {\n /** One strict format per request. Empty when nothing is writable. */\n readonly parts: JsonSchema[];\n /** Per part, the handles it carries. */\n readonly handles: string[][];\n}\n\nconst LEAVE_TEXT = `'' leaves it as it is`;\nconst LEAVE_LIST = '[] leaves it as it is';\n\nfunction kindSchema(field: AssistField): { schema: JsonSchema; says: string } {\n const options = [...(field.options ?? [])];\n switch (field.kind) {\n case AssistFieldKind.RichText: return { schema: jsonListOf(jsonText()), says: `paragraphs of plain text, no markup; ${LEAVE_LIST}` };\n case AssistFieldKind.Number: return { schema: jsonText(), says: `a number in digits; ${LEAVE_TEXT}` };\n case AssistFieldKind.Boolean: return { schema: jsonOneOf([NONE_TEXT, BOOLEAN_TRUE, BOOLEAN_FALSE]), says: `yes or no; ${LEAVE_TEXT}` };\n case AssistFieldKind.Choice: return { schema: jsonOneOf([NONE_TEXT, ...options]), says: `one of its options; ${LEAVE_TEXT}` };\n case AssistFieldKind.Choices: return { schema: jsonListOf(jsonOneOf(options)), says: `some of its options; ${LEAVE_LIST}` };\n case AssistFieldKind.Tags: return { schema: jsonListOf(jsonText()), says: `a list of short words; ${LEAVE_LIST}` };\n case AssistFieldKind.Textarea: return { schema: jsonText(), says: `plain text, may run several sentences; ${LEAVE_TEXT}` };\n default: return { schema: jsonText(), says: `one line of plain text; ${LEAVE_TEXT}` };\n }\n}\n\nfunction fieldSchema(field: AssistField, locale: string): JsonSchema {\n const { schema, says } = kindSchema(field);\n const inLocale = field.locales ? ` Written in ${locale} only.` : '';\n return { ...schema, description: `${field.label}${field.required ? ' (required)' : ''} — ${says}.${inLocale}` };\n}\n\nfunction chosen(all: ReadonlyArray<AssistField>, wanted: ReadonlyArray<string> | undefined): AssistField[] {\n if (!wanted) return all.filter(isWritable);\n return wanted.map(w => {\n const f = all.find(x => x.key === w || x.handle === w);\n if (!f) throw new AssistBriefError(AssistIssueCode.UnknownHandle, `\"${w}\" is not a field of this type`);\n return f;\n }).filter(isWritable);\n}\n\n/** Splits n fields into the fewest parts that fit, as even as they come. */\nfunction split<T>(list: ReadonlyArray<T>, max: number): T[][] {\n if (!list.length) return [];\n const count = Math.ceil(list.length / max);\n const size = Math.ceil(list.length / count);\n return Array.from({ length: count }, (_, i) => list.slice(i * size, (i + 1) * size));\n}\n\nfunction partSchema(fields: ReadonlyArray<AssistField>, locale: string, part: number, of: number): JsonSchema {\n const properties = Object.fromEntries(fields.map(f => [f.handle, fieldSchema(f, locale)]));\n const which = of > 1 ? ` (part ${part + 1} of ${of})` : '';\n return jsonClosedObject({\n [FieldsAnswerKey.Fields]: jsonClosedObject(properties, fields.map(f => f.handle), `Per field${which}: its new value, or its leave value.`),\n [FieldsAnswerKey.Note]: { ...jsonText(), description: 'One short line for the owner on what changed, or what needs them.' },\n }, Object.values(FieldsAnswerKey));\n}\n\nexport function fieldsJsonSchema(schema: ContentTypeSchema, options: FieldsSchemaOptions): FieldsSchemas {\n const groups = split(chosen(assistFields(schema), options.fields), FIELDS_PER_PART);\n const parts = groups.map((g, i) => partSchema(g, options.locale, i, groups.length));\n parts.forEach((p, i) => assertAssistBudget(`fields ${schema.name} part ${i + 1}`, [p]));\n return { parts, handles: groups.map(g => g.map(f => f.handle)) };\n}\n\n/** One field's answer as the model wrote it. */\nexport interface FieldEdit {\n readonly handle: string;\n readonly value: unknown;\n}\n\nconst isLeave = (v: unknown) => v === null || v === undefined || v === NONE_TEXT || (Array.isArray(v) && v.length === 0);\n\n/** The parts' answers → the edits they make (every leave value dropped). */\nexport function decodeFieldsAnswers(answers: ReadonlyArray<unknown>): FieldEdit[] {\n return answers.flatMap(answer => {\n const fields = answer && typeof answer === 'object' ? (answer as Record<string, unknown>)[FieldsAnswerKey.Fields] : undefined;\n if (!fields || typeof fields !== 'object' || Array.isArray(fields)) return [];\n return Object.entries(fields as Record<string, unknown>).filter(([, v]) => !isLeave(v)).map(([handle, value]) => ({ handle, value }));\n });\n}\n","import { jsonAnyOf, jsonClosedObject, jsonListOf, jsonOneOf, JsonSchema, jsonText } from '@vectoriox/iox-ui/generation-core';\n\nimport { assertAssistBudget, MAX_ROUTE_PROPERTIES } from './budget';\nimport { AssistIssue, AssistIssueCode } from './brief';\nimport { AssistSurface, EditFamily, SURFACES } from './surfaces';\n\n/**\n * The route request (plan §3c rule 5): the first, small, fast question of every turn — which of THIS surface's\n * families the sentence needs, or `cannot` with one line for the owner. Its family enum is the surface's, so the model\n * cannot route a content-item sentence to the builder's Style.\n */\n\nexport enum RouteAnswerKey {\n Families = 'families',\n Cannot = 'cannot',\n Reply = 'reply',\n}\n\nexport function routeJsonSchema(surface: AssistSurface): JsonSchema {\n const schema = jsonClosedObject({\n [RouteAnswerKey.Families]: { ...jsonListOf(jsonOneOf(SURFACES[surface].families)), description: 'The kinds of change the sentence asks for, in the order to make them. [] when it cannot be done here.' },\n [RouteAnswerKey.Cannot]: { ...jsonAnyOf([jsonText(), { type: 'null' }]), description: 'Why it cannot be done here, in one line in the sentence\\'s language — or null.' },\n [RouteAnswerKey.Reply]: { ...jsonText(), description: 'One short line to the owner, in the sentence\\'s language.' },\n }, Object.values(RouteAnswerKey));\n assertAssistBudget(`route ${surface}`, [schema], MAX_ROUTE_PROPERTIES);\n return schema;\n}\n\nexport interface AssistRoute {\n readonly ok: boolean;\n readonly families: ReadonlyArray<EditFamily>;\n readonly cannot: string | null;\n readonly reply: string;\n readonly issues: ReadonlyArray<AssistIssue>;\n}\n\nconst text = (v: unknown): string => (typeof v === 'string' ? v.trim() : '');\n\n/** A route answer, checked against its surface: a family the surface does not have is refused, repeats dropped. */\nexport function readRoute(surface: AssistSurface, answer: unknown): AssistRoute {\n const a = (answer && typeof answer === 'object' ? answer : {}) as Record<string, unknown>;\n const allowed = new Set<string>(SURFACES[surface].families);\n const named = Array.isArray(a[RouteAnswerKey.Families]) ? (a[RouteAnswerKey.Families] as unknown[]).map(String) : [];\n const issues: AssistIssue[] = named.filter(f => !allowed.has(f))\n .map(f => ({ code: AssistIssueCode.UnknownFamily, message: `\"${f}\" is not a family of ${surface}` }));\n const families = [...new Set(named.filter(f => allowed.has(f)))] as EditFamily[];\n const cannot = text(a[RouteAnswerKey.Cannot]) || null;\n return { ok: !issues.length, families: cannot ? [] : families, cannot, reply: text(a[RouteAnswerKey.Reply]), issues };\n}\n","import { AssistIssue, AssistIssueCode, HandleMap, resolveHandle } from './brief';\nimport { AssistField, AssistFieldKind, assistFields, ContentTypeSchema } from './content-fields';\nimport { BOOLEAN_FALSE, BOOLEAN_TRUE, FieldEdit } from './fields-schema';\nimport { BriefValue, isPlainRecord, readFieldValue } from './field-values';\nimport { containsHtml, paragraphsToRichText } from './rich-text';\nimport { ContentRecord } from './summarize-item';\n\n/**\n * Family `fields`, applied (plan §3c rule 6): the SAME pure check runs on the server (on a copy, before the turn is\n * shown) and in the client (the trial in the form). All or none — one refused edit refuses the turn, which is re-asked\n * once with the issues, never repaired in code. Never mutates its input.\n * - a handle maps back through the brief's map; an unknown one is refused (T1);\n * - a never-written field, a wrong type, a choice outside the options, markup in a text: refused;\n * - a multiLang field gets ONE locale key, the others kept (T5);\n * - rich text is stored as escaped `<p>` paragraphs; the change carries the paragraphs (T6);\n * - a field the owner edited since the last turn is KEPT unless the sentence names it (rule 9);\n * - an edit that changes nothing is dropped.\n */\n\nexport interface FieldEditContext {\n readonly schema: ContentTypeSchema;\n readonly handles: HandleMap;\n /** The locale a multiLang field is written in. */\n readonly locale: string;\n /** Fields (keys or handles) the owner changed since the last AI turn. */\n readonly ownerEdited?: ReadonlyArray<string>;\n /** Fields (keys or handles) the sentence names. Default: read from `sentence` by `fieldsNamedIn`. */\n readonly named?: ReadonlyArray<string>;\n readonly sentence?: string;\n}\n\nexport interface FieldChange {\n readonly handle: string;\n readonly key: string;\n readonly label: string;\n readonly kind: AssistFieldKind;\n /** Readable: text, paragraphs, a number, yes/no, options, words. */\n readonly before: BriefValue;\n readonly after: BriefValue;\n readonly locale?: string;\n}\n\nexport interface FieldEditsOutcome {\n readonly ok: boolean;\n /** The record with every change applied (stored form) — a copy of the input when refused. */\n readonly result: ContentRecord;\n readonly changes: ReadonlyArray<FieldChange>;\n /** Proposed, but the owner edited the field since and the sentence did not name it. */\n readonly kept: ReadonlyArray<FieldChange>;\n readonly issues: ReadonlyArray<AssistIssue>;\n}\n\ntype Coerced = { ok: true; stored: unknown; readable: BriefValue } | { ok: false; code: AssistIssueCode; message: string };\n\nconst refuse = (code: AssistIssueCode, message: string): Coerced => ({ ok: false, code, message });\nconst wrongType = (what: string) => refuse(AssistIssueCode.WrongType, `expected ${what}`);\nconst fine = (stored: unknown, readable: BriefValue = stored as BriefValue): Coerced => ({ ok: true, stored, readable });\n\nfunction coerceText(value: unknown): Coerced {\n if (typeof value !== 'string' || !value.trim()) return wrongType('a non-empty text');\n if (containsHtml(value)) return refuse(AssistIssueCode.HtmlNotAllowed, 'markup is not written by Assist');\n return fine(value.trim());\n}\n\nfunction coerceWords(value: unknown): { words: string[] } | Coerced {\n if (!Array.isArray(value) || value.some(v => typeof v !== 'string')) return wrongType('a list of texts');\n const words = [...new Set((value as string[]).map(v => v.trim()).filter(Boolean))];\n if (!words.length) return wrongType('at least one text');\n if (words.some(containsHtml)) return refuse(AssistIssueCode.HtmlNotAllowed, 'markup is not written by Assist');\n return { words };\n}\n\nfunction coerceNumber(value: unknown): Coerced {\n const n = typeof value === 'number' ? value : typeof value === 'string' && value.trim() !== '' ? Number(value.trim()) : NaN;\n return Number.isFinite(n) ? fine(n) : wrongType('a number');\n}\n\nfunction coerceBoolean(value: unknown): Coerced {\n if (typeof value === 'boolean') return fine(value);\n if (value === BOOLEAN_TRUE || value === BOOLEAN_FALSE) return fine(value === BOOLEAN_TRUE);\n return wrongType('yes or no');\n}\n\nfunction coerceChoice(field: AssistField, value: unknown): Coerced {\n if (typeof value !== 'string') return wrongType('one of the options');\n return field.options?.includes(value) ? fine(value) : refuse(AssistIssueCode.NotAnOption, `\"${value}\" is not an option of ${field.label}`);\n}\n\nfunction coerceList(field: AssistField, value: unknown): Coerced {\n const read = coerceWords(value);\n if (!('words' in read)) return read;\n if (field.kind === AssistFieldKind.Choices) {\n const outside = read.words.filter(w => !field.options?.includes(w));\n if (outside.length) return refuse(AssistIssueCode.NotAnOption, `${outside.map(w => `\"${w}\"`).join(', ')} not an option of ${field.label}`);\n }\n return fine(read.words);\n}\n\nfunction coerceRichText(value: unknown): Coerced {\n const read = coerceWords(value);\n if (!('words' in read)) return read;\n return fine(paragraphsToRichText(read.words), read.words);\n}\n\nfunction coerce(field: AssistField, value: unknown): Coerced {\n switch (field.kind) {\n case AssistFieldKind.RichText: return coerceRichText(value);\n case AssistFieldKind.Number: return coerceNumber(value);\n case AssistFieldKind.Boolean: return coerceBoolean(value);\n case AssistFieldKind.Choice: return coerceChoice(field, value);\n case AssistFieldKind.Choices:\n case AssistFieldKind.Tags: return coerceList(field, value);\n default: return coerceText(value);\n }\n}\n\nconst NAME_MIN_CHARS = 3;\n\n/** The fields a sentence names by label, key or handle (case-insensitive) — rule 9's \"unless the sentence names it\". */\nexport function fieldsNamedIn(sentence: string, fields: ReadonlyArray<AssistField>): string[] {\n const s = sentence.toLowerCase();\n if (!s.trim()) return [];\n return fields.filter(f => [f.label, f.key, f.handle].some(n => n.length >= NAME_MIN_CHARS && s.includes(n.toLowerCase()))).map(f => f.key);\n}\n\nconst names = (list: ReadonlyArray<string> | undefined, fields: ReadonlyArray<AssistField>): Set<string> =>\n new Set((list ?? []).map(n => fields.find(f => f.key === n || f.handle === n)?.key ?? n));\n\ninterface Planned {\n field: AssistField;\n stored: unknown;\n change: FieldChange;\n}\n\nfunction plan(field: AssistField, handle: string, values: ContentRecord, coerced: { stored: unknown; readable: BriefValue }, locale: string): Planned | null {\n const raw = values[field.key];\n const own = field.locales ? (isPlainRecord(raw) ? raw : {}) : null;\n const before = readFieldValue(field.kind, own ? own[locale] : raw);\n if (JSON.stringify(before) === JSON.stringify(coerced.readable)) return null;\n const stored = own ? { ...own, [locale]: coerced.stored } : coerced.stored;\n const change: FieldChange = {\n handle, key: field.key, label: field.label, kind: field.kind, before, after: coerced.readable, ...(own ? { locale } : {}),\n };\n return { field, stored, change };\n}\n\nexport function applyFieldEdits(values: ContentRecord, edits: ReadonlyArray<FieldEdit>, ctx: FieldEditContext): FieldEditsOutcome {\n const fields = assistFields(ctx.schema);\n const issues: AssistIssue[] = [];\n const planned: Planned[] = [];\n const seen = new Set<string>();\n const issue = (code: AssistIssueCode, handle: string, message: string) => issues.push({ code, handle, message });\n\n for (const edit of edits) {\n const resolved = resolveHandle(ctx.handles, edit.handle);\n if ('issue' in resolved) { issues.push(resolved.issue); continue; }\n const field = fields.find(f => f.key === resolved.target.key);\n if (!field) { issue(AssistIssueCode.UnknownHandle, edit.handle, `\"${edit.handle}\" is not a field of ${ctx.schema.name}`); continue; }\n if (seen.has(field.key)) { issue(AssistIssueCode.Duplicate, edit.handle, `${field.label} is written twice`); continue; }\n seen.add(field.key);\n if (field.never) { issue(AssistIssueCode.NeverWrite, edit.handle, `${field.label} is never written by Assist (${field.never})`); continue; }\n if (field.locales && !field.locales.includes(ctx.locale)) { issue(AssistIssueCode.WrongLocale, edit.handle, `${field.label} has no ${ctx.locale}`); continue; }\n const coerced = coerce(field, edit.value);\n if ('code' in coerced) { issue(coerced.code, edit.handle, `${field.label}: ${coerced.message}`); continue; }\n const p = plan(field, edit.handle, values, coerced, ctx.locale);\n if (p) planned.push(p);\n }\n\n if (issues.length) return { ok: false, result: { ...values }, changes: [], kept: [], issues };\n\n const edited = names(ctx.ownerEdited, fields);\n const named = names(ctx.named ?? fieldsNamedIn(ctx.sentence ?? '', fields), fields);\n const isKept = (p: Planned) => edited.has(p.field.key) && !named.has(p.field.key);\n const applied = planned.filter(p => !isKept(p));\n const result: Record<string, unknown> = { ...values };\n for (const p of applied) result[p.field.key] = p.stored;\n return { ok: true, result, changes: applied.map(p => p.change), kept: planned.filter(isKept).map(p => p.change), issues: [] };\n}\n","import { AROUND_TEXT_CHARS, MEMORY_TURNS } from './budget';\nimport { AssistIssue, AssistIssueCode, Brief, HandleMap } from './brief';\nimport { FieldChange } from './field-edits';\nimport { FieldEdit } from './fields-schema';\nimport { ContentRecord, clipText } from './summarize-item';\nimport { AssistSurface, CommitKind, EditFamily, SURFACES, SurfaceStatus } from './surfaces';\n\n/**\n * The turn wire (plan §3d) — what cms-client posts and polls and iox-cms stores and answers, ONE definition both sides\n * import (generation-core `ai-run.ts` is the precedent for generations). A turn is a document on the jobs runner:\n * POST answers 202 `{ turnId }`, the client polls the turn every 750 ms until it is terminal.\n */\n\nexport enum AssistTurnStatus {\n Queued = 'queued',\n Routing = 'routing',\n Editing = 'editing',\n Done = 'done',\n Refused = 'refused',\n Failed = 'failed',\n}\n\nconst TERMINAL: ReadonlySet<AssistTurnStatus> = new Set([AssistTurnStatus.Done, AssistTurnStatus.Refused, AssistTurnStatus.Failed]);\n\nexport const isTerminalTurn = (status: AssistTurnStatus): boolean => TERMINAL.has(status);\n\n/** Auto = the step's model from Settings ▸ AI ▸ Models (A-D14). */\nexport const ASSIST_MODEL_AUTO = 'auto';\n\n/** `'auto'` or a model id. */\nexport type AssistModelChoice = typeof ASSIST_MODEL_AUTO | string;\n\nexport const ASSIST_POLL_MS = 750;\n\nexport const MAX_SENTENCE_CHARS = 2000;\n\nexport interface AssistTurnRequest {\n readonly surface: AssistSurface;\n /** `assistSessionKey(surface, target)`; the server adds the user. */\n readonly sessionKey: string;\n readonly sentence: string;\n readonly model: AssistModelChoice;\n readonly contentType?: string;\n readonly itemId?: string;\n readonly brief: Brief;\n readonly handles: HandleMap;\n /** A form-fill surface: the form's current values (it may be unsaved) — the edits are checked against them. */\n readonly values?: ContentRecord;\n /** Field keys the owner changed since the last AI turn — kept unless the sentence names them (rule 9). */\n readonly ownerEdited?: ReadonlyArray<string>;\n}\n\n/** POST's 202 answer. */\nexport interface AssistTurnAccepted {\n readonly turnId: string;\n}\n\n/** A turn's own refusals and failures, beside generation-core's `AiRefusalCode`s (credits, plan, key), which a turn returns as they are. */\nexport enum AssistRefusalCode {\n /** The turn machinery runs, no model is connected yet. */\n NotConnected = 'ai.assistNotConnected',\n /** The turn spent its own credit cap (trap T8) before a call it still needed. */\n TurnBudget = 'ai.assistTurnBudget',\n /** The routed families need a permission the person who asked does not hold. */\n Permission = 'ai.assistPermission',\n /** A process died during this turn's call more often than one resume allows. */\n Interrupted = 'ai.assistInterrupted',\n /** The provider call threw — the turn ends; the owner may ask again. */\n CallFailed = 'ai.assistCallFailed',\n /** The model's answer broke the check twice (the first time it was re-asked with the issues). */\n InvalidAnswer = 'ai.assistInvalidAnswer',\n /** The chosen model is not on the vetted list for this step, and the turn runs on IOX credits. */\n ModelNotOffered = 'ai.assistModelNotOffered',\n /** The chosen model cannot do the step (on the studio's own key any model may be typed; this one lacks a need). */\n ModelDeclined = 'ai.assistModelDeclined',\n}\n\nexport interface AssistTurnRefusal {\n /** An `AssistRefusalCode` or an `AiRefusalCode` — a string, so both fit. */\n readonly code: string;\n readonly message: string;\n}\n\nexport interface AssistTurn {\n readonly id: string;\n readonly surface: AssistSurface;\n readonly sessionKey: string;\n readonly status: AssistTurnStatus;\n readonly sentence: string;\n /** The model it ran on (Auto resolved) — the one the ledger row names (R-H11). */\n readonly model?: string;\n readonly families?: ReadonlyArray<EditFamily>;\n readonly reply?: string;\n readonly edits?: ReadonlyArray<FieldEdit>;\n readonly changes?: ReadonlyArray<FieldChange>;\n readonly kept?: ReadonlyArray<FieldChange>;\n readonly issues?: ReadonlyArray<AssistIssue>;\n readonly refusal?: AssistTurnRefusal;\n readonly credits?: number;\n /** ISO time. */\n readonly createdAt: string;\n}\n\nexport enum AssistRouteKey {\n Turns = 'turns',\n Turn = 'turn',\n Session = 'session',\n}\n\n/** The path templates, `:param` filled by `assistPath` — neither side hand-types a URL. */\nexport const ASSIST_ROUTES: Readonly<Record<AssistRouteKey, string>> = {\n [AssistRouteKey.Turns]: 'admin/api/org/:orgId/ai/assist/turns',\n [AssistRouteKey.Turn]: 'admin/api/org/:orgId/ai/assist/turns/:turnId',\n [AssistRouteKey.Session]: 'admin/api/org/:orgId/ai/assist/sessions/:sessionKey',\n};\n\nexport class AssistPathError extends Error {}\n\n/** A route with its params filled, each URL-encoded; a missing param throws. */\nexport function assistPath(route: AssistRouteKey, params: Readonly<Record<string, string>>): string {\n return ASSIST_ROUTES[route].replace(/:([A-Za-z]+)/g, (_, name: string) => {\n const value = params[name];\n if (!value) throw new AssistPathError(`${route}: no ${name}`);\n return encodeURIComponent(value);\n });\n}\n\n/** What a session is about, beside its surface (A-D9: per user × surface × target). */\nexport interface AssistTarget {\n readonly contentType?: string;\n readonly itemId?: string | null;\n readonly pageId?: string;\n readonly submissionId?: string;\n}\n\nconst SESSION_TARGET_KEYS: Readonly<Record<AssistSurface, ReadonlyArray<keyof AssistTarget>>> = {\n [AssistSurface.BuilderPage]: ['pageId'],\n [AssistSurface.ContentItem]: ['contentType', 'itemId'],\n [AssistSurface.ContentFromPhotos]: ['contentType'],\n [AssistSurface.ContentList]: ['contentType'],\n [AssistSurface.SchemaType]: ['contentType'],\n [AssistSurface.ShopProduct]: ['itemId'],\n [AssistSurface.Media]: [],\n [AssistSurface.BuilderSite]: [],\n [AssistSurface.FormInbox]: ['submissionId'],\n};\n\n/** A target not saved yet. */\nexport const NEW_TARGET = 'new';\nconst SESSION_SEPARATOR = ':';\n\n/** `contentItem:projects:<itemId|new>` — each part encoded, so a value never carries the separator. */\nexport function assistSessionKey(surface: AssistSurface, target: AssistTarget = {}): string {\n const parts = SESSION_TARGET_KEYS[surface].map(k => encodeURIComponent(target[k] || NEW_TARGET));\n return [surface, ...parts].join(SESSION_SEPARATOR);\n}\n\nexport interface AssistMemoryLine {\n readonly turnId: string;\n readonly createdAt: string;\n readonly line: string;\n}\n\nconst SENTENCE_IN_MEMORY_CHARS = 80;\n\nfunction outcome(turn: AssistTurn): string {\n const named = (list: ReadonlyArray<FieldChange> | undefined) =>\n (list ?? []).map(c => (c.locale ? `${c.label} (${c.locale})` : c.label)).join(', ');\n switch (turn.status) {\n case AssistTurnStatus.Refused: return `refused: ${turn.refusal?.message ?? ''}`.trim();\n case AssistTurnStatus.Failed: return 'failed';\n case AssistTurnStatus.Done: {\n const changed = named(turn.changes);\n const kept = named(turn.kept);\n const head = changed ? `changed ${changed}` : `no change${turn.reply ? `: ${turn.reply}` : ''}`;\n return kept ? `${head}; kept ${kept} (the owner edited it)` : head;\n }\n default: return turn.status;\n }\n}\n\n/** One line the next turn reads as memory — never a tree, a record or a value. */\nexport function memoryLine(turn: AssistTurn): AssistMemoryLine {\n const asked = clipText(turn.sentence.replace(/\\s+/g, ' ').trim(), SENTENCE_IN_MEMORY_CHARS);\n return { turnId: turn.id, createdAt: turn.createdAt, line: clipText(`\"${asked}\" → ${outcome(turn)}`, AROUND_TEXT_CHARS) };\n}\n\n/** `GET …/ai/assist/sessions/:sessionKey` — the memory the next turn is sent. */\nexport interface AssistSession {\n readonly sessionKey: string;\n readonly lines: ReadonlyArray<AssistMemoryLine>;\n}\n\n/** A session's answer from its stored turns (those of another session are ignored). */\nexport function assistSession(sessionKey: string, turns: ReadonlyArray<AssistTurn>): AssistSession {\n return { sessionKey, lines: sessionMemory(turns.filter(t => t.sessionKey === sessionKey)) };\n}\n\n/** A session's memory: its last `MEMORY_TURNS` finished turns, oldest first. */\nexport function sessionMemory(turns: ReadonlyArray<AssistTurn>): AssistMemoryLine[] {\n return turns\n .filter(t => isTerminalTurn(t.status))\n .slice()\n .sort((a, b) => a.createdAt.localeCompare(b.createdAt))\n .slice(-MEMORY_TURNS)\n .map(memoryLine);\n}\n\nconst isObject = (v: unknown): v is Record<string, unknown> => !!v && typeof v === 'object' && !Array.isArray(v);\nconst nonEmpty = (v: unknown): v is string => typeof v === 'string' && v.trim() !== '';\n\n/** Absent, or a list of non-empty field keys. */\nconst isOwnerEdited = (v: unknown): boolean => v === undefined || (Array.isArray(v) && v.every(nonEmpty));\n\n/** A key `assistSessionKey` made for this surface. */\nexport const isSessionOf = (key: unknown, surface: AssistSurface): boolean =>\n nonEmpty(key) && (key === surface || key.startsWith(`${surface}${SESSION_SEPARATOR}`));\n\n/** What the server refuses in a posted turn before anything runs. Empty = accepted. */\nexport function validateTurnRequest(req: unknown): AssistIssue[] {\n const issue = (code: AssistIssueCode, message: string): AssistIssue => ({ code, message });\n if (!isObject(req)) return [issue(AssistIssueCode.BadRequest, 'a turn is an object')];\n const surface = req['surface'] as AssistSurface;\n const spec = Object.prototype.hasOwnProperty.call(SURFACES, surface) ? SURFACES[surface] : undefined;\n if (!spec) return [issue(AssistIssueCode.UnknownSurface, `\"${String(surface)}\" is not a surface`)];\n const sentence = req['sentence'];\n const brief = req['brief'];\n return [\n ...(spec.status !== SurfaceStatus.Built ? [issue(AssistIssueCode.SurfaceNotBuilt, `${surface} is not built yet`)] : []),\n ...(!isSessionOf(req['sessionKey'], surface) ? [issue(AssistIssueCode.BadRequest, `the session key is not a ${surface} session`)] : []),\n ...(!nonEmpty(sentence) ? [issue(AssistIssueCode.EmptySentence, 'the sentence is empty')] : []),\n ...(nonEmpty(sentence) && sentence.length > MAX_SENTENCE_CHARS ? [issue(AssistIssueCode.SentenceTooLong, `the sentence is over ${MAX_SENTENCE_CHARS} characters`)] : []),\n ...(!nonEmpty(req['model']) ? [issue(AssistIssueCode.BadRequest, 'no model choice (auto or a model id)')] : []),\n ...(!isObject(brief) || brief['surface'] !== surface ? [issue(AssistIssueCode.BadRequest, `the brief is not a ${surface} brief`)] : []),\n ...(!isObject(req['handles']) || !Object.keys(req['handles']).length ? [issue(AssistIssueCode.MissingHandles, 'the brief\\'s handles are missing')] : []),\n ...(spec.commit === CommitKind.FormFill && !isObject(req['values']) ? [issue(AssistIssueCode.MissingValues, 'a form-fill turn carries the form\\'s values')] : []),\n ...(!isOwnerEdited(req['ownerEdited']) ? [issue(AssistIssueCode.BadRequest, 'ownerEdited is a list of field keys')] : []),\n ...(spec.perContentType && !nonEmpty(req['contentType']) ? [issue(AssistIssueCode.BadRequest, `${surface} names its content type`)] : []),\n ];\n}\n","import { AssistField } from './content-fields';\nimport { isEmptyFieldValue, isPlainRecord } from './field-values';\nimport { ContentRecord } from './summarize-item';\n\n/**\n * The ONE locale a content-item turn writes in (plan §3c rule 8, trap T5) — decided the same way by the server and the\n * client: a multiLang field gets this key and no other. The sentence decides when it names a language (\"translate the\n * summary to English\", \"תרגם לאנגלית\") — matched against the runtime's own language names (`Intl.DisplayNames`) in the\n * languages the admin speaks, never a hand-kept list; the last one named wins. Otherwise the item's own language: the\n * locale most of its multiLang fields are filled in (schema order breaks a tie); else the admin's; else the first.\n */\n\n/** The languages whose names a sentence may use — the admin's two UI languages. */\nexport const LOCALE_NAME_LANGUAGES: ReadonlyArray<string> = ['en', 'he'];\n\nconst DISPLAY_TYPE_LANGUAGE = 'language';\n\n/** Every locale the type's multiLang fields hold, in schema order. */\nexport function itemLocales(fields: ReadonlyArray<AssistField>): string[] {\n return [...new Set(fields.flatMap(f => f.locales ?? []))];\n}\n\nfunction displayName(locale: string, inLanguage: string): string | null {\n try {\n const name = new Intl.DisplayNames([inLanguage], { type: DISPLAY_TYPE_LANGUAGE }).of(locale);\n return name && name !== locale ? name : null;\n } catch {\n return null;\n }\n}\n\nfunction languageNames(locale: string, languages: ReadonlyArray<string>): string[] {\n return languages.flatMap(lang => {\n const name = displayName(locale, lang);\n return name ? [name.toLowerCase()] : [];\n });\n}\n\n/** The last position a locale's name appears at in the sentence, or -1. */\nfunction lastMention(sentence: string, locale: string, languages: ReadonlyArray<string>): number {\n const s = sentence.toLowerCase();\n return Math.max(-1, ...languageNames(locale, languages).map(n => s.lastIndexOf(n)));\n}\n\n/** The locale the sentence names; the last one named wins (\"the Hebrew summary to English\" → en). */\nexport function namedLocale(sentence: string, locales: ReadonlyArray<string>, languages: ReadonlyArray<string> = LOCALE_NAME_LANGUAGES): string | null {\n const named = locales\n .map(locale => ({ locale, at: lastMention(sentence, locale, languages) }))\n .filter(m => m.at >= 0)\n .sort((a, b) => b.at - a.at);\n return named[0]?.locale ?? null;\n}\n\n/** The locale most of the item's multiLang fields are filled in (schema order breaks a tie); else the UI's; else the first. */\nexport function primaryLocale(fields: ReadonlyArray<AssistField>, values: ContentRecord, uiLang: string): string {\n const locales = itemLocales(fields);\n if (!locales.length) return uiLang;\n const filled = (locale: string) => fields.filter(f => {\n const v = values[f.key];\n return f.locales?.includes(locale) && isPlainRecord(v) && !isEmptyFieldValue(v[locale]);\n }).length;\n const best = locales.reduce((a, b) => (filled(b) > filled(a) ? b : a));\n if (filled(best) > 0) return best;\n return locales.includes(uiLang) ? uiLang : locales[0];\n}\n\n/** The write locale of a content-item turn. */\nexport function turnLocale(sentence: string, fields: ReadonlyArray<AssistField>, values: ContentRecord, uiLang: string): string {\n return namedLocale(sentence, itemLocales(fields)) ?? primaryLocale(fields, values, uiLang);\n}\n\n/** The language's own name in the admin's language (`en` → \"English\" / \"אנגלית\"). */\nexport const languageName = (locale: string, uiLang: string): string => displayName(locale, uiLang) ?? locale;\n","/**\n * @vectoriox/iox-ui/assist-core — the shared, FRAMEWORK-FREE vocabulary of AI Assist (iox-ai-guidance\n * `architecture/ai/ai-assist-plan.md` §3b): the surfaces and their specs, the brief and its handle map, the route\n * request, and family `fields` for surface S2 (one content item) — its brief (`summarizeItem`), its strict output format\n * (`fieldsJsonSchema`) and the ONE check that applies an answer (`applyFieldEdits`), run by iox-cms on a copy and by\n * cms-client as the trial. Pure: no transport, no clock, no randomness.\n * ⚠️ Not re-exported from the main entry. Consumers wire the usual trio — ng-package raw-ts assets, jest\n * moduleNameMapper, tsconfig paths — or `nest start` dies with ERR_REQUIRE_ESM. It imports generation-core (the strict\n * schema builders and budget), so a consumer maps both.\n * TODO(after the 2026-11-19 demo): extract the fact gate `factIssues` out of generation-core's `planWordIssues` into\n * this entry (plan §3b, R-H2) — `planWordIssues` becomes its caller; deferred because it edits generation-core.\n */\nexport * from './surfaces';\nexport * from './budget';\nexport * from './brief';\nexport * from './content-fields';\nexport * from './rich-text';\nexport * from './field-values';\nexport * from './summarize-item';\nexport * from './fields-schema';\nexport * from './route-schema';\nexport * from './field-edits';\nexport * from './assist-turn';\nexport * from './assist-locale';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["LIST_KINDS"],"mappings":";;AAEA;;;;AAIG;IAES;AAAZ,CAAA,UAAY,aAAa,EAAA;AACrB,IAAA,aAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,aAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,aAAA,CAAA,mBAAA,CAAA,GAAA,mBAAuC;AACvC,IAAA,aAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,aAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,aAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,aAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,aAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AAC3B,CAAC,EAVW,aAAa,KAAb,aAAa,GAAA,EAAA,CAAA,CAAA;AAYzB;IACY;AAAZ,CAAA,UAAY,UAAU,EAAA;;AAElB,IAAA,UAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;;AAE3B,IAAA,UAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;;AAErB,IAAA,UAAA,CAAA,KAAA,CAAA,GAAA,KAAW;;AAEX,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACjB,CAAC,EATW,UAAU,KAAV,UAAU,GAAA,EAAA,CAAA,CAAA;AAWtB;IAC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AAC,IAAI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;AAC9F;AAEA;AACO,MAAM,YAAY,GAAG,CAAC,MAAc,EAAE,MAAc,KAAa,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI;;ACxEvG;;;;;;;;;;;AAWG;;ACXH;;AAEG;;;;"}
@@ -13693,12 +13693,15 @@ function ownedKeys(facts) {
13693
13693
  }
13694
13694
  return keys;
13695
13695
  }
13696
- /** The words to avoid and the facts never given, in every written text of the plan. */
13697
- function planWordIssues(plan, ctx) {
13696
+ /**
13697
+ * The words to avoid and the facts never given, in any texts a model wrote — the plan's (`planWordIssues`) and an AI
13698
+ * Assist turn's field values (assist-core, R-H2): ONE judge of what a model may write.
13699
+ */
13700
+ function factIssues(texts, ctx) {
13698
13701
  const issues = [];
13699
13702
  const avoid = [...new Set(ctx.avoidWords.map(w => w.trim()).filter(Boolean))].map(w => ({ word: w, pattern: wordPattern(w) }));
13700
13703
  const owned = ownedKeys(ctx.facts);
13701
- for (const { path, text } of writtenTexts(plan)) {
13704
+ for (const { path, text } of texts) {
13702
13705
  const words = normalise(text);
13703
13706
  for (const a of avoid)
13704
13707
  if (a.pattern.test(words))
@@ -13713,6 +13716,11 @@ function planWordIssues(plan, ctx) {
13713
13716
  }
13714
13717
  }
13715
13718
  }
13719
+ return issues;
13720
+ }
13721
+ /** The words to avoid and the facts never given, in every written text of the plan. */
13722
+ function planWordIssues(plan, ctx) {
13723
+ const issues = factIssues(writtenTexts(plan), ctx);
13716
13724
  for (const [key, value] of Object.entries(plan.business?.facts ?? {})) {
13717
13725
  const own = ctx.facts[key];
13718
13726
  if (!FACT_KEYS.includes(key))
@@ -20369,6 +20377,12 @@ var AiStep;
20369
20377
  AiStep["NameStructures"] = "scanNaming";
20370
20378
  /** M8 gate 2: each composed page's layout, one strict request a page, after the plan (M8-G2-D2). */
20371
20379
  AiStep["ComposePages"] = "composePages";
20380
+ /** AI Assist (A-D7): which edit families a sentence on a screen asks for — or that it cannot be done. Fast, small. */
20381
+ AiStep["AssistRoute"] = "assistRoute";
20382
+ /** AI Assist: the edits themselves, one strict request per routed family. */
20383
+ AiStep["AssistEdit"] = "assistEdit";
20384
+ /** AI Assist: photos read into content (≤ 6 a request, S3). */
20385
+ AiStep["AssistRead"] = "assistRead";
20372
20386
  })(AiStep || (AiStep = {}));
20373
20387
  const AI_STEPS = Object.values(AiStep);
20374
20388
  /** Each step's name on the wire (the control plane's `label`, the console) — the screens translate their own. */
@@ -20380,6 +20394,9 @@ const AI_STEP_LABELS = {
20380
20394
  [AiStep.CheckPictures]: 'Check pictures',
20381
20395
  [AiStep.NameStructures]: 'Name repeated structures',
20382
20396
  [AiStep.ComposePages]: 'Compose your pages',
20397
+ [AiStep.AssistRoute]: 'Understand your request',
20398
+ [AiStep.AssistEdit]: 'Make the change',
20399
+ [AiStep.AssistRead]: 'Read your photos',
20383
20400
  };
20384
20401
  /** What a model must be able to do for a step to run on it. */
20385
20402
  var AiCapability;
@@ -20396,6 +20413,9 @@ const AI_STEP_NEEDS = {
20396
20413
  [AiStep.CheckPictures]: [AiCapability.StructuredOutput, AiCapability.ImageInput],
20397
20414
  [AiStep.NameStructures]: [AiCapability.StructuredOutput],
20398
20415
  [AiStep.ComposePages]: [AiCapability.StructuredOutput],
20416
+ [AiStep.AssistRoute]: [AiCapability.StructuredOutput],
20417
+ [AiStep.AssistEdit]: [AiCapability.StructuredOutput],
20418
+ [AiStep.AssistRead]: [AiCapability.StructuredOutput, AiCapability.ImageInput],
20399
20419
  };
20400
20420
  /**
20401
20421
  * The steps a model answers in the plan's parts, one request per part (vectoriox/iox-cms#47 — the whole plan's format
@@ -20456,6 +20476,12 @@ const AI_STEP_TYPICAL_TOKENS = {
20456
20476
  // for the two pages and their repairs, where 14k / 18k (41.6) had been counted. Counted as plain input so the Start
20457
20477
  // gate holds the whole cost (iox-cms#43).
20458
20478
  [AiStep.ComposePages]: { input: 36_000, output: 22_000, cacheWrite: 0, cacheRead: 0 },
20479
+ // AI Assist (plan §3c): the route reads the brief's names and the sentence and answers ≤ 12 properties; an edit reads
20480
+ // the focus in full (a content item, a page summary) and writes ≤ 40 properties of values; a read takes ≤ 6 photos
20481
+ // downscaled (~1.6k tokens each) with the type's fields. Not yet measured live — counted high, as every first estimate.
20482
+ [AiStep.AssistRoute]: { input: 3_000, output: 300, cacheWrite: 0, cacheRead: 0 },
20483
+ [AiStep.AssistEdit]: { input: 8_000, output: 2_000, cacheWrite: 0, cacheRead: 0 },
20484
+ [AiStep.AssistRead]: { input: 12_000, output: 2_000, cacheWrite: 0, cacheRead: 0 },
20459
20485
  };
20460
20486
  /** 1 credit = 1 US cent of what the AI actually cost (decision D4). */
20461
20487
  const CREDITS_PER_USD = 100;
@@ -20544,7 +20570,22 @@ function aiRefusalNext(code, buy) {
20544
20570
  var AiFeature;
20545
20571
  (function (AiFeature) {
20546
20572
  AiFeature["SiteGeneration"] = "aiSiteGeneration";
20573
+ /** AI Assist on every screen (ai-assist-plan A-D6): its own switch, the plan's shared credits. */
20574
+ AiFeature["Assist"] = "aiAssist";
20547
20575
  })(AiFeature || (AiFeature = {}));
20576
+ /** The feature a step belongs to — the gate refuses a step whose feature the plan does not include. */
20577
+ const AI_STEP_FEATURE = {
20578
+ [AiStep.ReadMessage]: AiFeature.SiteGeneration,
20579
+ [AiStep.PlanSite]: AiFeature.SiteGeneration,
20580
+ [AiStep.ChangePlan]: AiFeature.SiteGeneration,
20581
+ [AiStep.MakePictures]: AiFeature.SiteGeneration,
20582
+ [AiStep.CheckPictures]: AiFeature.SiteGeneration,
20583
+ [AiStep.NameStructures]: AiFeature.SiteGeneration,
20584
+ [AiStep.ComposePages]: AiFeature.SiteGeneration,
20585
+ [AiStep.AssistRoute]: AiFeature.Assist,
20586
+ [AiStep.AssistEdit]: AiFeature.Assist,
20587
+ [AiStep.AssistRead]: AiFeature.Assist,
20588
+ };
20548
20589
  var AiLimit;
20549
20590
  (function (AiLimit) {
20550
20591
  AiLimit["CreditsPerMonth"] = "aiCreditsPerMonth";
@@ -25279,5 +25320,5 @@ function layoutRepairJsonSchema() {
25279
25320
  * Generated bundle index. Do not edit.
25280
25321
  */
25281
25322
 
25282
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderIngredient, HeaderMixError, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkLayout, checkList, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, headerMeaning, headerMix, headerMixOfNavKind, headerMixOfPlan, headerReferences, headerTokenOf, headerTokenWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
25323
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderIngredient, HeaderMixError, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkLayout, checkList, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, headerMeaning, headerMix, headerMixOfNavKind, headerMixOfPlan, headerReferences, headerTokenOf, headerTokenWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
25283
25324
  //# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map