@vectoriox/iox-ui 5.202.1 → 5.204.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.
- package/actions-core/index.d.ts +8 -1
- package/design-core/index.d.ts +62 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +8 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +121 -11
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +5443 -293
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +381 -32
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +2368 -5
- package/index.d.ts +117 -12
- package/package.json +1 -1
- package/src/actions-core/element-actions.ts +9 -0
- package/src/design-core/contrast-audit.ts +93 -11
- package/src/design-core/flavor-spec.generated.ts +19 -0
- package/src/design-core/image-alt.ts +27 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/audit-site.ts +17 -3
- package/src/generation-core/baseline-roles.ts +10 -6
- package/src/generation-core/check-free.ts +12 -2
- package/src/generation-core/check-layout.ts +3 -2
- package/src/generation-core/compose-free.ts +3 -1
- package/src/generation-core/compose-layout.ts +1 -1
- package/src/generation-core/compose-site.ts +29 -11
- package/src/generation-core/critic-calibration.ts +175 -0
- package/src/generation-core/critic-prompt.ts +153 -0
- package/src/generation-core/critic-rubric.generated.ts +24 -0
- package/src/generation-core/critic-sheet.ts +203 -0
- package/src/generation-core/critic.ts +175 -0
- package/src/generation-core/design-doc-index.ts +58 -0
- package/src/generation-core/design-motion.ts +247 -0
- package/src/generation-core/design-ops-check.ts +370 -0
- package/src/generation-core/design-ops-of.ts +200 -0
- package/src/generation-core/design-ops.model.ts +239 -0
- package/src/generation-core/design-ops.schema.ts +122 -0
- package/src/generation-core/design-ops.ts +361 -0
- package/src/generation-core/design-recipes.ts +58 -0
- package/src/generation-core/designer-brief.ts +81 -0
- package/src/generation-core/designer-direction.ts +248 -0
- package/src/generation-core/designer-estimate.ts +171 -0
- package/src/generation-core/designer-lessons.generated.ts +653 -0
- package/src/generation-core/designer-lessons.ts +153 -0
- package/src/generation-core/designer-stop.ts +94 -0
- package/src/generation-core/footer-free.ts +23 -2
- package/src/generation-core/footer-mix.ts +60 -14
- package/src/generation-core/layout-language.ts +2 -0
- package/src/generation-core/node-baselines.generated.ts +953 -10
- package/src/generation-core/public-api.ts +21 -0
- package/src/generation-core/site-spec.generated.ts +82 -10
- package/src/generation-core/social-links.ts +370 -0
- package/src/generation-core/structure-fingerprint.ts +565 -0
- package/src/generation-core/templates.ts +39 -3
- package/styles/iox-design.css +26 -1
- package/styles/iox-forms.css +22 -0
|
@@ -5321,6 +5321,18 @@ declare const SPEC_SITE_TEMPLATES: {
|
|
|
5321
5321
|
readonly header: "nav.inline-cta";
|
|
5322
5322
|
readonly footer: "footer.three-column";
|
|
5323
5323
|
};
|
|
5324
|
+
readonly copyHe: {
|
|
5325
|
+
readonly Home: "בית";
|
|
5326
|
+
readonly Work: "עבודות";
|
|
5327
|
+
readonly Portfolio: "תיק עבודות";
|
|
5328
|
+
readonly Project: "פרויקט";
|
|
5329
|
+
readonly About: "אודות";
|
|
5330
|
+
readonly "About the studio": "על הסטודיו";
|
|
5331
|
+
readonly Contact: "יצירת קשר";
|
|
5332
|
+
readonly Projects: "פרויקטים";
|
|
5333
|
+
readonly "Sample project {n}": "פרויקט לדוגמה {n}";
|
|
5334
|
+
readonly "Replace this with a sentence about the project.": "החליפו את זה במשפט על הפרויקט.";
|
|
5335
|
+
};
|
|
5324
5336
|
};
|
|
5325
5337
|
readonly practice: {
|
|
5326
5338
|
readonly id: "practice";
|
|
@@ -5508,6 +5520,23 @@ declare const SPEC_SITE_TEMPLATES: {
|
|
|
5508
5520
|
readonly header: "nav.inline-cta";
|
|
5509
5521
|
readonly footer: "footer.three-column";
|
|
5510
5522
|
};
|
|
5523
|
+
readonly copyHe: {
|
|
5524
|
+
readonly Home: "בית";
|
|
5525
|
+
readonly "See the services": "לשירותים שלנו";
|
|
5526
|
+
readonly "Book a visit": "קביעת תור";
|
|
5527
|
+
readonly "What we offer": "מה אנחנו מציעים";
|
|
5528
|
+
readonly "All services": "כל השירותים";
|
|
5529
|
+
readonly "Find a time that suits you.": "מצאו זמן שנוח לכם.";
|
|
5530
|
+
readonly Services: "שירותים";
|
|
5531
|
+
readonly Prices: "מחירון";
|
|
5532
|
+
readonly About: "אודות";
|
|
5533
|
+
readonly "About us": "עלינו";
|
|
5534
|
+
readonly "How we started": "איך התחלנו";
|
|
5535
|
+
readonly Contact: "יצירת קשר";
|
|
5536
|
+
readonly "Sample service {n}": "שירות לדוגמה {n}";
|
|
5537
|
+
readonly "Replace this with a sentence about the service.": "החליפו את זה במשפט על השירות.";
|
|
5538
|
+
readonly Price: "מחיר";
|
|
5539
|
+
};
|
|
5511
5540
|
};
|
|
5512
5541
|
readonly place: {
|
|
5513
5542
|
readonly id: "place";
|
|
@@ -5692,6 +5721,28 @@ declare const SPEC_SITE_TEMPLATES: {
|
|
|
5692
5721
|
readonly header: "nav.inline-cta";
|
|
5693
5722
|
readonly footer: "footer.mega";
|
|
5694
5723
|
};
|
|
5724
|
+
readonly copyHe: {
|
|
5725
|
+
readonly Home: "בית";
|
|
5726
|
+
readonly "See the menu": "לתפריט";
|
|
5727
|
+
readonly "Visit us": "בואו לבקר";
|
|
5728
|
+
readonly "Come for": "בשביל מה באים";
|
|
5729
|
+
readonly "From the menu": "מהתפריט";
|
|
5730
|
+
readonly "The full menu": "התפריט המלא";
|
|
5731
|
+
readonly "Come by": "קפצו לבקר";
|
|
5732
|
+
readonly "We would love to see you.": "נשמח לראות אתכם.";
|
|
5733
|
+
readonly "How to find us": "איך מגיעים אלינו";
|
|
5734
|
+
readonly Menu: "תפריט";
|
|
5735
|
+
readonly "Our menu": "התפריט שלנו";
|
|
5736
|
+
readonly Visit: "ביקור";
|
|
5737
|
+
readonly "Where and when": "איפה ומתי";
|
|
5738
|
+
readonly About: "אודות";
|
|
5739
|
+
readonly "About us": "עלינו";
|
|
5740
|
+
readonly "How we started": "איך התחלנו";
|
|
5741
|
+
readonly Contact: "יצירת קשר";
|
|
5742
|
+
readonly "Sample item {n}": "פריט לדוגמה {n}";
|
|
5743
|
+
readonly "Replace this with a line about the dish or the drink.": "החליפו את זה בשורה על המנה או על המשקה.";
|
|
5744
|
+
readonly Price: "מחיר";
|
|
5745
|
+
};
|
|
5695
5746
|
};
|
|
5696
5747
|
};
|
|
5697
5748
|
declare const SPEC_SITE_LIBRARY: readonly [{
|
|
@@ -7289,42 +7340,57 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
7289
7340
|
readonly id: "instagram";
|
|
7290
7341
|
readonly name: "Instagram";
|
|
7291
7342
|
readonly hosts: readonly ["instagram.com"];
|
|
7343
|
+
readonly icon: "ph-instagram-logo";
|
|
7292
7344
|
}, {
|
|
7293
7345
|
readonly id: "facebook";
|
|
7294
7346
|
readonly name: "Facebook";
|
|
7295
7347
|
readonly hosts: readonly ["facebook.com", "fb.com"];
|
|
7348
|
+
readonly icon: "ph-facebook-logo";
|
|
7296
7349
|
}, {
|
|
7297
7350
|
readonly id: "tiktok";
|
|
7298
7351
|
readonly name: "TikTok";
|
|
7299
7352
|
readonly hosts: readonly ["tiktok.com"];
|
|
7353
|
+
readonly icon: "ph-tiktok-logo";
|
|
7300
7354
|
}, {
|
|
7301
7355
|
readonly id: "youtube";
|
|
7302
7356
|
readonly name: "YouTube";
|
|
7303
7357
|
readonly hosts: readonly ["youtube.com", "youtu.be"];
|
|
7358
|
+
readonly icon: "ph-youtube-logo";
|
|
7304
7359
|
}, {
|
|
7305
7360
|
readonly id: "linkedin";
|
|
7306
7361
|
readonly name: "LinkedIn";
|
|
7307
7362
|
readonly hosts: readonly ["linkedin.com"];
|
|
7363
|
+
readonly icon: "ph-linkedin-logo";
|
|
7308
7364
|
}, {
|
|
7309
7365
|
readonly id: "pinterest";
|
|
7310
7366
|
readonly name: "Pinterest";
|
|
7311
7367
|
readonly hosts: readonly ["pinterest.com"];
|
|
7368
|
+
readonly icon: "ph-pinterest-logo";
|
|
7312
7369
|
}, {
|
|
7313
7370
|
readonly id: "x";
|
|
7314
7371
|
readonly name: "X";
|
|
7315
7372
|
readonly hosts: readonly ["x.com", "twitter.com"];
|
|
7373
|
+
readonly icon: "ph-x-logo";
|
|
7316
7374
|
}, {
|
|
7317
7375
|
readonly id: "threads";
|
|
7318
7376
|
readonly name: "Threads";
|
|
7319
7377
|
readonly hosts: readonly ["threads.net", "threads.com"];
|
|
7378
|
+
readonly icon: "ph-threads-logo";
|
|
7320
7379
|
}, {
|
|
7321
7380
|
readonly id: "behance";
|
|
7322
7381
|
readonly name: "Behance";
|
|
7323
7382
|
readonly hosts: readonly ["behance.net"];
|
|
7383
|
+
readonly icon: "ph-behance-logo";
|
|
7324
7384
|
}, {
|
|
7325
7385
|
readonly id: "whatsapp";
|
|
7326
7386
|
readonly name: "WhatsApp";
|
|
7327
7387
|
readonly hosts: readonly ["wa.me", "whatsapp.com"];
|
|
7388
|
+
readonly icon: "ph-whatsapp-logo";
|
|
7389
|
+
}, {
|
|
7390
|
+
readonly id: "google";
|
|
7391
|
+
readonly name: "Google";
|
|
7392
|
+
readonly hosts: readonly ["g.page", "g.co", "maps.app.goo.gl", "business.google.com"];
|
|
7393
|
+
readonly icon: "ph-google-logo";
|
|
7328
7394
|
}];
|
|
7329
7395
|
readonly callWords: readonly [{
|
|
7330
7396
|
readonly text: "Book a table";
|
|
@@ -11009,7 +11075,7 @@ declare const NEUTRAL_STYLE_PROPS: Readonly<Record<string, unknown>>;
|
|
|
11009
11075
|
* one of:
|
|
11010
11076
|
*
|
|
11011
11077
|
* - **Layout** — a size or spacing that exists only so an EMPTY node dropped from the palette is visible
|
|
11012
|
-
* and grabbable (a Container's 200px
|
|
11078
|
+
* and grabbable (a Divider's margin; a Container's 200px and a Text's 10px padding until AD0 / AD0b). A composed node is never empty and its
|
|
11013
11079
|
* pattern owns its box, so the composer RELEASES these to the neutral value unless the pattern
|
|
11014
11080
|
* declares one: the nav bar was 200px tall and every lead line indented 10px (W1's screenshot).
|
|
11015
11081
|
* - **Behaviour** — what makes the type work: a button's inline-flex centring, a form's column, the 44px
|
|
@@ -12035,6 +12101,8 @@ interface LayoutSite {
|
|
|
12035
12101
|
sections: LayoutSection[];
|
|
12036
12102
|
/** Award §0c CW2: the page's own column word (`LayoutPage.column`); absent = the design's (`ComposeLayoutOptions.design`). */
|
|
12037
12103
|
column?: string;
|
|
12104
|
+
/** Social links (FV-D10): the owner's stated WhatsApp as a contact form's channel address (`statedWhatsAppHref`). */
|
|
12105
|
+
whatsApp?: string;
|
|
12038
12106
|
}
|
|
12039
12107
|
/** A size as CSS — the prototype's `.s-*` rules. `screen` is computed per word (`screenFontSize`). */
|
|
12040
12108
|
declare const LAYOUT_FONT_SIZE: Readonly<Record<Exclude<LayoutSize, LayoutSize.Screen>, string>>;
|
|
@@ -12978,6 +13046,13 @@ interface SiteTemplate {
|
|
|
12978
13046
|
readonly dataSources: ReadonlyArray<DataSourcePlan>;
|
|
12979
13047
|
readonly pages: ReadonlyArray<PagePlan>;
|
|
12980
13048
|
readonly globals: Readonly<Record<`${GlobalSlot}`, string>>;
|
|
13049
|
+
/**
|
|
13050
|
+
* cms-client#149: the template's own words on a Hebrew site — English word → Hebrew, for every page name, section slot
|
|
13051
|
+
* word, content-type label and sample-item word the template writes (the contract's TEMPLATE_COPY_HE, else COPY_HE;
|
|
13052
|
+
* its gate refuses a word with no Hebrew). A table BESIDE the pages, never keys inside them: the import and showcase
|
|
13053
|
+
* plans copy a template's pages and types into a Site Plan, whose validator refuses an undocumented key.
|
|
13054
|
+
*/
|
|
13055
|
+
readonly copyHe?: Readonly<Record<string, string>>;
|
|
12981
13056
|
}
|
|
12982
13057
|
declare const SITE_TEMPLATES: Readonly<Record<string, SiteTemplate>>;
|
|
12983
13058
|
declare enum SiteTemplateId {
|
|
@@ -12989,6 +13064,9 @@ interface TemplatePlanInput {
|
|
|
12989
13064
|
design: DesignChoices;
|
|
12990
13065
|
/** Keys of the template's OPTIONAL pages to leave out (the wizard's Pages step). */
|
|
12991
13066
|
omitPages?: ReadonlyArray<string>;
|
|
13067
|
+
/** cms-client#149: the site's language — the plan's `locale` (every page's), and on `he` the template's own words in
|
|
13068
|
+
* Hebrew (`SiteTemplate.copyHe`). Absent = English, as a plan with no locale. */
|
|
13069
|
+
locale?: `${SiteLocale}`;
|
|
12992
13070
|
}
|
|
12993
13071
|
declare class SiteTemplateError extends Error {
|
|
12994
13072
|
}
|
|
@@ -13923,6 +14001,9 @@ declare enum FooterRepairCode {
|
|
|
13923
14001
|
* `socialMax`, or on no known network: those left out. */
|
|
13924
14002
|
SocialWithoutLinks = "social-without-links",
|
|
13925
14003
|
SocialLeftOut = "social-left-out",
|
|
14004
|
+
/** Social links (Doron 2026-11-29, FV-D10 completion): the owner stated their links, so the footer holds them — also when
|
|
14005
|
+
* its mix did not ask for the block (a one-line or name-and-action footer keeps them too). */
|
|
14006
|
+
SocialStated = "social-stated",
|
|
13926
14007
|
/** FV1b: a visit band before the footer says where and when — the visit block is not said twice. */
|
|
13927
14008
|
VisitBeforeTwice = "visit-before-twice",
|
|
13928
14009
|
/** AW12-D6 (H1): a sign-up only where the site has a reason to write (a journal, events, a shop, a kind of business
|
|
@@ -13990,10 +14071,13 @@ declare function footerCallWord(type?: string, locale?: string): string;
|
|
|
13990
14071
|
* contract's `FOOTER.callWords` row), in the site's language; null when the row has none (the part keeps its own). */
|
|
13991
14072
|
declare function footerCallLine(type?: string, locale?: string): string | null;
|
|
13992
14073
|
/** FV1b (FV-D10): a network the footer can name a social link by — the contract's `FOOTER.socialNetworks`. */
|
|
14074
|
+
/** A network the footer names (`FOOTER.socialNetworks`): its id, its brand name, the hosts an address is recognised by and
|
|
14075
|
+
* its Phosphor glyph (`ph-instagram-logo` — a follow row whose link the owner made an icon wears it; iox-ui#201). */
|
|
13993
14076
|
interface FooterSocialNetwork {
|
|
13994
14077
|
readonly id: string;
|
|
13995
14078
|
readonly name: string;
|
|
13996
14079
|
readonly hosts: ReadonlyArray<string>;
|
|
14080
|
+
readonly icon?: string;
|
|
13997
14081
|
}
|
|
13998
14082
|
declare const FOOTER_SOCIAL_NETWORKS: readonly FooterSocialNetwork[];
|
|
13999
14083
|
/** One social link the footer shows: the network's name and the owner's address (https). */
|
|
@@ -14012,6 +14096,17 @@ declare function footerSocialLinks(addresses?: ReadonlyArray<string> | null): {
|
|
|
14012
14096
|
links: FooterSocialLink[];
|
|
14013
14097
|
leftOut: string[];
|
|
14014
14098
|
};
|
|
14099
|
+
/** One address as a social link the footer can name — its network by its host, a profile path, written https — or null
|
|
14100
|
+
* (no http(s) address, on no network of the table, or a bare host). Pure. */
|
|
14101
|
+
declare function socialLinkOf(raw: string): FooterSocialLink | null;
|
|
14102
|
+
/** `footerSocialLinks` without the footer's `socialMax`: every recognised link, once per network (the first stated wins), in
|
|
14103
|
+
* the table's order — what the owner's own list (the wizard, Site settings) holds. Pure. */
|
|
14104
|
+
declare function recognisedSocialLinks(addresses?: ReadonlyArray<string> | null): {
|
|
14105
|
+
links: FooterSocialLink[];
|
|
14106
|
+
leftOut: string[];
|
|
14107
|
+
};
|
|
14108
|
+
/** True when the owner stated at least one social link the footer can name — the footer then always holds them. */
|
|
14109
|
+
declare const holdsStatedSocial: (ctx: Pick<FooterContext, "social">) => boolean;
|
|
14015
14110
|
/** True when the business name stands across a phone at the smallest screen size. */
|
|
14016
14111
|
declare const footerNameFits: (ctx: FooterContext) => boolean;
|
|
14017
14112
|
/**
|
|
@@ -14032,6 +14127,11 @@ declare function checkFooter(given: FooterMix, ctx: FooterContext): {
|
|
|
14032
14127
|
mix: FooterMix;
|
|
14033
14128
|
repairs: FooterRepair[];
|
|
14034
14129
|
};
|
|
14130
|
+
/**
|
|
14131
|
+
* The owner's stated social links as THE part (`footer.social`: its "Follow" label and one link per network, the contract's
|
|
14132
|
+
* template) — the footer's block, and the "follow" row a contact section carries (compose-site), one recipe. Pure.
|
|
14133
|
+
*/
|
|
14134
|
+
declare function socialLinksPart(social?: ReadonlyArray<string> | null): PatternNode;
|
|
14035
14135
|
/** What a ground draws as the footer's scheme (an inset card is the inverse band, shaped — `stampFooterMix`). */
|
|
14036
14136
|
declare const FOOTER_GROUND_SCHEME: Readonly<Record<string, string | null>>;
|
|
14037
14137
|
/** A footer mix as a pattern: what the composer stamps as the site's footer (global, after the page). Check it first. */
|
|
@@ -14275,8 +14375,14 @@ declare const FREE_TOKEN_PROPS: Readonly<Record<string, string>>;
|
|
|
14275
14375
|
declare const FREE_STYLE_PROPS: ReadonlyArray<string>;
|
|
14276
14376
|
/** A hover changes position, scale, turn, opacity or a colour token — never layout (Emil: transform / opacity only). */
|
|
14277
14377
|
declare const FREE_HOVER_PROPS: ReadonlyArray<string>;
|
|
14378
|
+
/** How `freeStyleIssues` reads a style map. */
|
|
14379
|
+
interface FreeStyleRules {
|
|
14380
|
+
/** The AI designer (ai-designer-plan §2b): it writes the builder's own controls, so ANY property may be named — the
|
|
14381
|
+
* type's slots refuse the rest (`assertStyleSlots`) — and every other rule holds. */
|
|
14382
|
+
anyProperty?: boolean;
|
|
14383
|
+
}
|
|
14278
14384
|
/** One style map against the rules: a known property, one clean value, the look's token where the look owns it. */
|
|
14279
|
-
declare function freeStyleIssues(style: FreeStyle | undefined, path: string, ctx: Pick<FreeJudgeContext, 'tokens'
|
|
14385
|
+
declare function freeStyleIssues(style: FreeStyle | undefined, path: string, ctx: Pick<FreeJudgeContext, 'tokens'>, rules?: FreeStyleRules): FreeIssue[];
|
|
14280
14386
|
/**
|
|
14281
14387
|
* The style a node's TYPE has no builder control for (FS3 stamp, `free-slots.ts`): kept past the first save it could not
|
|
14282
14388
|
* be, so it is refused here, at the property the answer wrote — every layer, hover included.
|
|
@@ -16053,6 +16159,8 @@ declare function layoutLookChanges(page: LayoutPage, ctx: CheckLayoutContext, fr
|
|
|
16053
16159
|
declare const LAYOUT_ENTRANCE_MAX_MS = 1200;
|
|
16054
16160
|
/** The scale an action starts from, where it is not 1 (iox-ui `buildInteractionKeyframes`; held equal by the spec). */
|
|
16055
16161
|
declare const ACTION_START_SCALE: Readonly<Record<string, number>>;
|
|
16162
|
+
/** The triggers an entrance plays under by itself (the designer's motion check reads the same set). */
|
|
16163
|
+
declare const LAYOUT_ENTRANCE_TRIGGERS: ReadonlySet<string>;
|
|
16056
16164
|
/** Emil's rules a composed page's nodes can be held to without running them: eases, `transition: all`, scale, entrance length. */
|
|
16057
16165
|
declare function auditLayoutMotion(nodes: ReadonlyArray<SerializedNode>): LayoutIssue[];
|
|
16058
16166
|
/**
|
|
@@ -16999,7 +17107,7 @@ declare function layoutListsContext(page: Pick<PagePlan, 'sections'>, plan: Site
|
|
|
16999
17107
|
* refuses it. */
|
|
17000
17108
|
declare function layoutGallerySources(plan: SitePlan): string[];
|
|
17001
17109
|
/** A NEW Form stamped from a forms-core preset, exactly as a pattern's preset form is (premium M8: a layout's form layer). */
|
|
17002
|
-
declare function composePresetForm(id: string, presetId: string, owner: string, locale?: string): SerializedNode;
|
|
17110
|
+
declare function composePresetForm(id: string, presetId: string, owner: string, locale?: string, whatsApp?: string): SerializedNode;
|
|
17003
17111
|
/** The content type a list (a data source's alias) lists, in a plan. */
|
|
17004
17112
|
declare function listedContentType(alias: string, plan: Pick<SitePlan, 'dataSources' | 'contentTypes'>): ContentTypePlan | undefined;
|
|
17005
17113
|
/** A type's fields as composite-core's pickers read them. */
|
|
@@ -21181,6 +21289,8 @@ interface ComposeFreeOptions {
|
|
|
21181
21289
|
/** The site's language: a right-to-left one puts the start side on the right. */
|
|
21182
21290
|
locale?: string;
|
|
21183
21291
|
rtl?: boolean;
|
|
21292
|
+
/** Social links (FV-D10): the owner's stated WhatsApp as a contact form's channel address (`statedWhatsAppHref`). */
|
|
21293
|
+
whatsApp?: string;
|
|
21184
21294
|
/** The look's pace and easing (`layoutMotionOf`): how long an entrance takes. Default normal, ease-out. */
|
|
21185
21295
|
motion?: LayoutSite['motion'];
|
|
21186
21296
|
/** A material id as the address and the words of its picture (`ComposeContext.photoSrc` / `photoAlt`). */
|
|
@@ -22562,6 +22672,141 @@ declare function withTypeSignUp(mix: FooterMix, given: {
|
|
|
22562
22672
|
readonly writes?: boolean;
|
|
22563
22673
|
}): FooterMix;
|
|
22564
22674
|
|
|
22675
|
+
/**
|
|
22676
|
+
* THE OWNER'S SOCIAL LINKS (footer-v2-plan.md FV-D10, completed 2026-11-29 — Doron: "the website generator completely
|
|
22677
|
+
* ignores social networks … they shall be in the contact area or footer"). The owner types them in the wizard (one input per
|
|
22678
|
+
* network of the contract's `FOOTER.socialNetworks`) or in Site settings ▸ Socials; a typed address is STATED by definition
|
|
22679
|
+
* (harness `statedFacts.social`) — never searched for, completed or guessed. This module is the ONE rule the wizard, Site
|
|
22680
|
+
* settings and iox-cms share:
|
|
22681
|
+
*
|
|
22682
|
+
* - `ownerSocialLink` — what the owner typed under one network, as its https link, or why it is not one;
|
|
22683
|
+
* - `socialLinksByNetwork` / `socialLinksList` — several lists (the reading's, the owner's, Site settings') merged, once per
|
|
22684
|
+
* network, the first list winning;
|
|
22685
|
+
* - `SITE_SOCIAL_FIELDS`, `siteSocialLinks`, `siteSocialPatch` — the Site settings record's fields, read and written;
|
|
22686
|
+
* - `statedWhatsAppHref` — a stated WhatsApp link as the contact form's WhatsApp channel (forms-core `channelHref`);
|
|
22687
|
+
* - `withFollowRow` — a contact section with the footer's social part ("Follow" and the links) beside its contact facts;
|
|
22688
|
+
* - `followSiteSocials` — every follow row a saved layout holds, drawn from Site settings ▸ Socials AT RENDER (iox-ui#201):
|
|
22689
|
+
* the engine and the builder both apply it, so a link changed in Site settings reaches every site, old builds included.
|
|
22690
|
+
*
|
|
22691
|
+
* Pure and framework-free (iox-cms imports it).
|
|
22692
|
+
*/
|
|
22693
|
+
/** Why a typed address is not the owner's link on that network — the wizard says it under the input. */
|
|
22694
|
+
declare enum SocialLinkRefusal {
|
|
22695
|
+
/** Not a web address (and, under WhatsApp, not a phone number either). */
|
|
22696
|
+
NotAnAddress = "not-an-address",
|
|
22697
|
+
/** A scheme other than https (javascript:, ftp:, mailto: …) — http is written https. */
|
|
22698
|
+
NotHttps = "not-https",
|
|
22699
|
+
/** A web address on no network the footer can name. */
|
|
22700
|
+
UnknownNetwork = "unknown-network",
|
|
22701
|
+
/** An address of ANOTHER network than the input it was typed in ("facebook.com/x" under Instagram). */
|
|
22702
|
+
OtherNetwork = "other-network",
|
|
22703
|
+
/** The network's bare address ("instagram.com") — the owner's own page has a path. */
|
|
22704
|
+
NoProfile = "no-profile"
|
|
22705
|
+
}
|
|
22706
|
+
/** What the owner typed under one network: its link, or why not. Empty input: null (nothing stated). */
|
|
22707
|
+
type OwnerSocialLink = {
|
|
22708
|
+
readonly ok: true;
|
|
22709
|
+
readonly link: FooterSocialLink;
|
|
22710
|
+
} | {
|
|
22711
|
+
readonly ok: false;
|
|
22712
|
+
readonly refusal: SocialLinkRefusal;
|
|
22713
|
+
readonly network?: string;
|
|
22714
|
+
};
|
|
22715
|
+
/**
|
|
22716
|
+
* What the owner typed under one network as its https link — or the reason it is none (said under the input). Under
|
|
22717
|
+
* WhatsApp a phone number is the address too (`wa.me/<digits>`, forms-core `channelHref`: the digits as typed, with the
|
|
22718
|
+
* country code). Pure.
|
|
22719
|
+
*/
|
|
22720
|
+
declare function ownerSocialLink(network: string, typed: unknown): OwnerSocialLink | null;
|
|
22721
|
+
/**
|
|
22722
|
+
* Several lists of addresses (each a stated line or a list) as ONE link per network — the FIRST list naming a network wins
|
|
22723
|
+
* (pass the owner's own first), in the table's order. Unrecognised addresses are dropped (the footer could not name them
|
|
22724
|
+
* either). Pure.
|
|
22725
|
+
*/
|
|
22726
|
+
declare function socialLinksByNetwork(...lists: ReadonlyArray<ReadonlyArray<string> | null | undefined>): Partial<Record<string, string>>;
|
|
22727
|
+
/** `socialLinksByNetwork` as the stated list (`business.social`, `statedFacts.social`): one https address per network, in
|
|
22728
|
+
* the table's order. Pure. */
|
|
22729
|
+
declare function socialLinksList(...lists: ReadonlyArray<ReadonlyArray<string> | null | undefined>): string[];
|
|
22730
|
+
/**
|
|
22731
|
+
* The Site settings record's field for each network (iox-cms `site` schema; Site settings ▸ Socials). The four older
|
|
22732
|
+
* fields keep their names (`linkedIn`, `twitter`); every other network's field is its id. Site settings is the ONE place the
|
|
22733
|
+
* links live after a build writes them back (`siteSocialPatch`).
|
|
22734
|
+
*/
|
|
22735
|
+
declare const SITE_SOCIAL_FIELDS: Readonly<Record<string, string>>;
|
|
22736
|
+
/** The links a Site settings record holds (a WhatsApp field may hold a phone number), once per network. Pure. */
|
|
22737
|
+
declare function siteSocialLinks(site: Readonly<Record<string, unknown>> | null | undefined): string[];
|
|
22738
|
+
/** The Site settings fields that change when the links are written back — only networks the links name and whose field
|
|
22739
|
+
* holds something else (a field is never cleared). Empty: nothing to write. Pure. */
|
|
22740
|
+
declare function siteSocialPatch(links: ReadonlyArray<string> | null | undefined, site: Readonly<Record<string, unknown>> | null | undefined): Record<string, string>;
|
|
22741
|
+
/** A stated WhatsApp link (`wa.me/<number>`) as the contact form's WhatsApp channel address (forms-core `channelHref`), or
|
|
22742
|
+
* '' — a whatsapp.com page that is no number is no chat. Pure. */
|
|
22743
|
+
declare function statedWhatsAppHref(social: ReadonlyArray<string> | null | undefined): string;
|
|
22744
|
+
/** The family whose sections carry the "follow" row (the contract's contact patterns). */
|
|
22745
|
+
declare const FOLLOW_ROW_FAMILY = "contact";
|
|
22746
|
+
/**
|
|
22747
|
+
* A contact section with the owner's stated social links (Doron 2026-11-29: "in the contact area"): THE footer part
|
|
22748
|
+
* (`socialLinksPart` — its "Follow" label and one link per network, the same recipe, no copy) placed in the box that holds
|
|
22749
|
+
* the section's contact facts (the details column of `contact.split`, the grid of `contact.simple`), after them; a section
|
|
22750
|
+
* with no fact line takes it at the end of its first box. None stated, or nothing the footer can name: the section as it
|
|
22751
|
+
* was. Pure — a new node, the input never touched.
|
|
22752
|
+
*/
|
|
22753
|
+
declare function withFollowRow(node: PatternNode, social: ReadonlyArray<string> | null | undefined): PatternNode;
|
|
22754
|
+
/**
|
|
22755
|
+
* ─── The follow row reads Site settings (iox-ui#201, lead decision 2026-11-30) ───────────────────────────────────────────
|
|
22756
|
+
*
|
|
22757
|
+
* A follow row is THE footer part a build stamps (`socialLinksPart`): a box with role `footer.social` whose links carry role
|
|
22758
|
+
* `footer.social-link` — in the footer and in a contact section (`withFollowRow`). Its links are not the owner's words to
|
|
22759
|
+
* keep: they are Site settings ▸ Socials, read when the page is drawn. Saving Socials never rewrites a footer; the renderers
|
|
22760
|
+
* draw the current links instead, so a change reaches every site (old builds included) and a stale address never stays.
|
|
22761
|
+
*
|
|
22762
|
+
* - The FIRST `footer.social-link` is the template: every network Site settings holds becomes one copy of it — its look,
|
|
22763
|
+
* states and words-box kept, its words the network's name, its address the owner's (external, a new tab), in the contract's order
|
|
22764
|
+
* (`FOOTER.socialNetworks`, Google included), at most `socialMax`. A template the owner made an icon link (an Icon inside)
|
|
22765
|
+
* wears each network's own glyph from the contract; one with an accessible name gets the network's name.
|
|
22766
|
+
* - The owner's own edits keep working: a label, a restyled link, a link of their own added to the row (no role) stay; a row
|
|
22767
|
+
* whose stamped links were all removed is theirs and is never touched.
|
|
22768
|
+
* - Site settings empty: on the LIVE site the stamped links go, and a row left with no link of the owner's goes with them
|
|
22769
|
+
* (label and all — never a "Follow" with nothing to follow). In the BUILDER the row stays as saved, so the owner sees where
|
|
22770
|
+
* the links will show and the template survives the next save.
|
|
22771
|
+
* - Site settings unread (`null` — the read failed or the studio has no record yet): the layout as saved.
|
|
22772
|
+
*
|
|
22773
|
+
* Pure: a new tree where something changed, the same node objects where nothing did; ids of the copies are derived from the
|
|
22774
|
+
* template's (`<template>-<network>`), so a builder save and the next render agree.
|
|
22775
|
+
*/
|
|
22776
|
+
/** A layout node as every renderer holds it (the builder's ComponentNode, the engine's layout node, a SerializedNode) —
|
|
22777
|
+
* only what the follow row reads. */
|
|
22778
|
+
interface FollowRowNode {
|
|
22779
|
+
id: string;
|
|
22780
|
+
type: string;
|
|
22781
|
+
role?: string;
|
|
22782
|
+
props?: Record<string, unknown>;
|
|
22783
|
+
children?: FollowRowNode[];
|
|
22784
|
+
}
|
|
22785
|
+
/** Where the layout is drawn: the visitor's page, or the builder's canvas (the row stays as saved when Socials is empty). */
|
|
22786
|
+
declare enum FollowRowView {
|
|
22787
|
+
Live = "live",
|
|
22788
|
+
Edit = "edit"
|
|
22789
|
+
}
|
|
22790
|
+
/** The roles of the follow row (the contract part `social`). */
|
|
22791
|
+
declare const FOLLOW_ROW_ROLE: string;
|
|
22792
|
+
declare const FOLLOW_LINK_ROLE: string;
|
|
22793
|
+
/** A follow link opens the network in a new tab. */
|
|
22794
|
+
declare const FOLLOW_TARGET = "_blank";
|
|
22795
|
+
/** True when the tree holds a follow row (a stamped follow link) — a renderer reads Site settings only then. */
|
|
22796
|
+
declare function holdsFollowRow(nodes: ReadonlyArray<FollowRowNode> | null | undefined): boolean;
|
|
22797
|
+
/** Every follow row of `roots` drawn from Site settings' links (`siteSocialLinks` of the record) — see above. Pure. */
|
|
22798
|
+
declare function followSiteSocials<T extends FollowRowNode>(roots: ReadonlyArray<T>, site: ReadonlyArray<string> | null | undefined, view: FollowRowView): T[];
|
|
22799
|
+
/**
|
|
22800
|
+
* What a BUILDER save writes for the follow rows the canvas drew (`followSiteSocials(…, FollowRowView.Edit)` on load):
|
|
22801
|
+
* Site settings' links are shown, never written into the page — a row the canvas still holds exactly as drawn is saved as
|
|
22802
|
+
* it was STORED (so a composed section's stamp still reads "as the build left it", and the next render draws it again);
|
|
22803
|
+
* a row the owner changed on the canvas is theirs and is saved as they left it.
|
|
22804
|
+
*
|
|
22805
|
+
* `saved` — the tree as loaded; `drawn` — the drawn tree as the host serializes it (the same serializer as the save, taken
|
|
22806
|
+
* right after load); `serialized` — what the save is about to write. Pure: a new tree where a row was put back.
|
|
22807
|
+
*/
|
|
22808
|
+
declare function keepSavedFollowRows<T extends FollowRowNode>(serialized: ReadonlyArray<T>, drawn: ReadonlyArray<FollowRowNode>, saved: ReadonlyArray<FollowRowNode>): T[];
|
|
22809
|
+
|
|
22565
22810
|
/**
|
|
22566
22811
|
* THE LAYOUT REPAIR (premium components M8 gate 2, §4.1; the prototype's `applyEdits`, `code/cl2.mjs`): a refused page
|
|
22567
22812
|
* comes back as a few path edits instead of the whole page — the paths `checkLayout` names (`sections[2].layers[1].col`).
|
|
@@ -22815,5 +23060,2123 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
|
|
|
22815
23060
|
* its phone menu, the footer's copyright line. */
|
|
22816
23061
|
declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
|
|
22817
23062
|
|
|
22818
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PICTURE_MAKERS, 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_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiPictureMaker, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyPace, BodyRepairCode, BodySeam, BodySectionWord, BodyTexture, BorrowKind, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, COLOUR_TOKEN, COMPOSITION, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ColourAccent, ColourAction, ColourBands, ColourDark, ColourGround, ColourIngredient, ColourMixError, ColourPictures, ColourRepairCode, ColourRhythm, ColourSource, ColourWash, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, DRAWER_BEAT_MS, DRAWER_KINDS, DRAWER_LETTER_MS, DRAWER_LINE_MS, DRAWER_SPINE, DRAWER_STEPS, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_FRAMED_STYLES, FOOTER_GROUND_SCHEME, FOOTER_INSET_STYLES, FOOTER_LEGAL_ROLE, FOOTER_ROW_HOLDS, FOOTER_SOCIAL_NETWORKS, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_FOOTER_CENTRED, FREE_FOOTER_NO_PART, FREE_FOOTER_PAGE_ROW, FREE_FORM_PRESET, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_OPENING_BOXES, FREE_OPEN_LIGHTBOX, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_SLOT_SEPARATOR, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterBefore, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterNameStyle, FooterPhone, FooterRepairCode, FooterRole, FreeFooterPart, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeSlotKind, FreeTrigger, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_BAR_PX, HEADER_REST_FRAMES, HEADER_TOKEN, HEADER_VEIL, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPORT_NAV_MAX, IMPRINT_COUNTRIES, ISRAEL, ITEM_PAGE_ONLY_ROLES, ImportPattern, JOINED_HEADER_PADDING, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAID_CONTACT_FAMILY, LAID_FIRST_FAMILY, LAID_PLAIN_FAMILY, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGACY_BODY_INGREDIENTS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MENU_SHELF_RULES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_DISSOLVE, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, 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_TOKENS_UNKNOWN_MAKER, 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, POPUP_GLOBAL_ID, POPUP_LINK_WORD, POPUP_WIRE_INGREDIENTS, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PatternScrolls, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PicturesRefused, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PopupMixError, PopupRefusal, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRIM_WORDS_PAD, SCRUBBED_ENTRANCE, SCRUB_UNTIL, 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_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, 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, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_FIT_ANY, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MAX_SEARCHES, STOCK_MIN_KEPT, STOCK_NEVER_PHRASES, STOCK_NEVER_WORDS, STOCK_OPENING_TYPE_WORDS, STOCK_PLACE_TYPE_WORDS, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STOCK_TRADE_NEVER_WORDS, STOCK_TRADE_PLACE_WORDS, STOCK_TRADE_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TEMPLATE_TYPE_WORDS, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, YIELD_MIN_COLUMNS, YIELD_MIN_ROW_SHARE, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, archetypeRank, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, baseOrder, beforeOf, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWithColourBands, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkColour, checkFooter, checkFree, checkFreeFooter, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, checkPopup, chooseOpeningWay, chooseScrim, chooseTypeLedOpening, colourAccentMax, colourCheckOf, colourDesignWords, colourGroundsMax, colourMeaning, colourMix, colourMixFromWords, colourMixOfPlan, colourMixWords, colourReferences, colourRhythmIssues, colourTokenOf, colourWireWords, colourWordDrawn, colourWordOffered, colourWordTier, colourWordWaits, colourWords, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListAccordion, composeListFrame, composeListLightbox, composeListTabs, composeNavHeader, composeOpening, composePopup, composePresetForm, composeQuoteCarousel, composeReferenceFooter, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composesPage, composingShare, compositionBorrows, compositionSwaps, contactFactsOf, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, designForPlan, dissolveInteraction, distinctFallbackSections, distinctFooter, distinctHeader, drawerRamp, drawerRestX, drawerStepCount, drawerSteps, drawerWidth, drawersTiming, drawnBodyMix, drawnColourMix, drawnFooterMix, drawnHeaderMix, drawnMenuShows, drawnOpeningMix, dressMenuPictures, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeFooter, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, fieldsOf, figuresNotIn, fillContactFacts, filledItemNumbers, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerCallLine, footerCallWord, footerClosingRefusal, footerFaceOf, footerMeaning, footerMix, footerMixFromFree, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPart, footerPartNode, footerPattern, footerPatternIdOf, footerReferences, footerSignsUp, footerSocialLinks, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWordOffered, footerWordTier, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeFooterBrief, freeFooterContextOf, freeFooterFaceOf, freeFooterGrounds, freeFooterOrMix, freeFooterPartMeaning, freeFooterSlotOffers, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeNodeStyleIssues, freeOpeningOffer, freePhoneNeeds, freeSchemeOf, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeSlotLine, freeSlotOf, freeSlotOffers, freeSlotWord, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerGroundWhenUnreadable, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerReadableOfSite, headerReadsAtRest, headerRecipe, headerReferences, headerRestInks, headerRestTokenOf, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerVeilAt, headerWireWords, headerWordDrawn, headerWords, importRedirects, importSlug, importedPicturesOf, isActiveBuild, isAdditionKey, isDrawers, isFilledItem, isFreeBox, isHandPageKey, isImportPlan, isLayoutRule, isLegalKind, isNonEmptyString, isPeopleContentType, isPerItemPage, isPictureWorld, isPlainObject, isPopupNode, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, itemFillApplies, joinPageHeader, joinSameGround, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutCounterDepth, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutSectionKindsOffered, layoutShapeHasPurpose, layoutSignatureOffered, layoutSignaturesOffered, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, listedContentType, lookHasGlass, luminanceOf, measureFree, measureLayout, measuredCategories, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuCardPicture, menuCollectionsOfPlan, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, nameStyleOf, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, neighbourFaults, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingDisplaySize, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingPictureSrc, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, opensFullUnderFloat, opensOnPicture, orderPlaces, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paceIssues, paddingKeepingClear, pageBuildSource, pageKindOf, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternPartSlots, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneOf, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureSlotPage, pictureTargets, pictureTokensFor, pictureTryFits, picturedOpeningWays, picturelessTypes, picturesRefusedOf, pinnedPagesOf, pixelsUnder, placeFilm, placeholderContentTypes, plainCarryText, planDesignChoices, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFooterContext, planFromTemplate, planHasShopSource, planHeader, planImport, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planStockSearch, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, planWrites, plateYields, popupKeptNotices, popupMeaning, popupMixFromWords, popupMixOfPlan, popupTokenOf, popupWireWords, presetColourMix, previousRoute, pricesIn, proHeader, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteItemOf, quoteListOf, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, referenceFooterLayout, refitBuiltPage, refitPage, refreshSectionStamps, refusesStock, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionPictureFamily, sectionPictured, sectionSkeleton, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteMeasures, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, skeletonOf, slotBudget, splitCssValue, splitFreeFooter, splitSide, stampFooterMix, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFitFor, stockFits, stockGroupOf, stockItemSlots, stockKept, stockMayFill, stockPhotoFits, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSearchFocus, stockSearchQuery, stockSearchTerm, stockSlotFamily, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapOf, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedPlateColour, typeLedPlates, typeLedRound, typeLedSection, typeLedYield, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withConsentBanner, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withTypeOpening, withTypeSignUp, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
22819
|
-
|
|
23063
|
+
/**
|
|
23064
|
+
* EMIL'S RULES, READ OFF A PAGE (ai-designer-plan §2f "Emil", R-H20): the static half of the motion review, over a saved
|
|
23065
|
+
* page's own nodes — whoever wrote them (the designer's ops, a hand build, a composed page). What it holds:
|
|
23066
|
+
* 1. PROPERTY — motion moves transform, opacity and clip-path (a filter only where the catalog's `blurIn` does): a
|
|
23067
|
+
* transition never names a layout property (width, height, a side, margin, padding) nor `all`; a pointer state
|
|
23068
|
+
* (hover, press) moves, scales, turns, fades or changes a colour token only (`FREE_HOVER_PROPS`). The catalog's own
|
|
23069
|
+
* actions are held to the same by the spec (every motion action's frames, `buildInteractionKeyframes`).
|
|
23070
|
+
* 2. ONE ENTRANCE — an element enters once (one entrance action under the self-playing triggers, whatever row it is in),
|
|
23071
|
+
* and a CONTAINER that enters holds nothing that enters too: either the column rises or its words stagger in.
|
|
23072
|
+
* 3. EXIT — an element's exit is faster than its entrance (about `LEAVE_SHARE` of it).
|
|
23073
|
+
* 4. TIME — easings are tokens (a cubic-bezier, linear, a var()) and never ease-in; a CSS duration is the look's token
|
|
23074
|
+
* (so reduced motion can collapse it); what a pointer drives on a control plays under `UI_MOTION_MAX_MS`, a
|
|
23075
|
+
* picture's hover zoom in at most `PICTURE_HOVER_MAX_MS`; an entrance in at most `LAYOUT_ENTRANCE_MAX_MS` — but a
|
|
23076
|
+
* count and a picture's ambient settle (AD-D23, `entranceCapExempt`); nothing grows from a tiny scale.
|
|
23077
|
+
* 5. REDUCED MOTION, gentler not zero — the platform covers every catalog entrance with its floor's fade (`show` is the
|
|
23078
|
+
* instant reveal a click opens, so it is refused as a self-playing entrance) and every scroll play with its own
|
|
23079
|
+
* reduced play (scene-core `scroll-range`); a literal CSS duration is the one thing reduced motion cannot reach (4).
|
|
23080
|
+
* 6. HOVER GATED — by the platform: every hover state is emitted inside `(hover: hover) and (pointer: fine)` and a hover
|
|
23081
|
+
* trigger answers a mouse or a pen only (iox-ui `gateHoverRule`, `isHoverPointer`; held by the spec). A design has no
|
|
23082
|
+
* other way to hover, so nothing here can break it.
|
|
23083
|
+
* It reuses the composer's audit (`auditLayoutMotion`: ease-in, easing tokens, `transition: all`, scale floor, entrance
|
|
23084
|
+
* length), the free tier's style rules (`freeStyleIssues`) and the catalog (actions-core) — never a second copy. Paths are
|
|
23085
|
+
* node ids (`layout:<id>.interactions[0].actions[1].easing`). Pure.
|
|
23086
|
+
*/
|
|
23087
|
+
/** What a pointer drives on the element itself plays this fast at most (Emil: UI under 300 ms; `emil-audit.cjs`). */
|
|
23088
|
+
declare const UI_MOTION_MAX_MS = 300;
|
|
23089
|
+
/** The triggers that play by themselves: the composer's entrance triggers and a page arriving. */
|
|
23090
|
+
declare const MOTION_ENTRANCE_TRIGGERS: ReadonlySet<string>;
|
|
23091
|
+
/** The triggers a pointer drives. */
|
|
23092
|
+
declare const MOTION_POINTER_TRIGGERS: ReadonlySet<string>;
|
|
23093
|
+
/** The controls a visitor operates: what a pointer drives on them is UI (the prototype audit's `UI` selector, as types). */
|
|
23094
|
+
declare const MOTION_UI_TYPES: ReadonlySet<string>;
|
|
23095
|
+
/** The parts that ARE a picture (AD-D23). */
|
|
23096
|
+
declare const MOTION_PICTURE_TYPES: ReadonlySet<string>;
|
|
23097
|
+
/** AD-D23 (the lessons' "hover zoom under 0.9 s"): a picture's hover transform plays in this much at most. */
|
|
23098
|
+
declare const PICTURE_HOVER_MAX_MS = 900;
|
|
23099
|
+
/** AD-D23: a picture's ambient settle (`zoomOut`) may play this long — the one entrance over the cap besides a count. */
|
|
23100
|
+
declare const PICTURE_SETTLE_MAX_MS = 7000;
|
|
23101
|
+
/** AD-D23: the entrance cap's two named exemptions — a count (its duration is how long the digits count, nothing moves)
|
|
23102
|
+
* and a picture's settle (`zoomOut` on a picture: 1.15 → 1, never under 0.9). */
|
|
23103
|
+
declare const COUNT_ACTION = "countUp";
|
|
23104
|
+
declare const SETTLE_ACTION = "zoomOut";
|
|
23105
|
+
declare enum MotionRule {
|
|
23106
|
+
Property = "property",
|
|
23107
|
+
OneEntrance = "one-entrance",
|
|
23108
|
+
Container = "container",
|
|
23109
|
+
Exit = "exit",
|
|
23110
|
+
Easing = "easing",
|
|
23111
|
+
Duration = "duration",
|
|
23112
|
+
Scale = "scale",
|
|
23113
|
+
Catalog = "catalog",
|
|
23114
|
+
Reduced = "reduced"
|
|
23115
|
+
}
|
|
23116
|
+
type MotionIssue = DesignIssue & {
|
|
23117
|
+
rule: MotionRule;
|
|
23118
|
+
};
|
|
23119
|
+
/** A CSS time in ms: a literal (`240ms`, `.3s`) or a token the look holds (`var(--iox-dur-base)`); null when unknown. */
|
|
23120
|
+
declare function cssMs(value: unknown, tokens?: ReadonlyArray<DesignTokenLike>): number | null;
|
|
23121
|
+
/**
|
|
23122
|
+
* Emil's rules over a page (its layout and the site's global parts), each refusal with its path. `tokens` (the look's
|
|
23123
|
+
* rows) lets a CSS time be read through its token and asks that it BE one; without them only literal times are read.
|
|
23124
|
+
*/
|
|
23125
|
+
declare function designMotionIssues(doc: Pick<DesignDoc, 'layout' | 'globals'>, options?: {
|
|
23126
|
+
tokens?: ReadonlyArray<DesignTokenLike>;
|
|
23127
|
+
}): MotionIssue[];
|
|
23128
|
+
/** One key per issue — what is new after an op is what that op did. */
|
|
23129
|
+
declare const motionIssueKey: (i: MotionIssue) => string;
|
|
23130
|
+
/** The rules' order, for a report: how many of each. */
|
|
23131
|
+
declare function motionIssueCounts(issues: ReadonlyArray<MotionIssue>): Partial<Record<MotionRule, number>>;
|
|
23132
|
+
|
|
23133
|
+
/**
|
|
23134
|
+
* THE AI DESIGNER'S TOOL LANGUAGE (ai-designer-plan §2b, AD1, AD-D2 (a)): the designer never writes CSS, HTML or a
|
|
23135
|
+
* whole tree. It calls tools, and each tool is something a person does in the builder: drop a part from the palette,
|
|
23136
|
+
* set a Style-panel value, add an Interactions-panel row, draw a Scene track, type words, choose a picture, edit the
|
|
23137
|
+
* look's tokens, or drag, delete or wrap a node. ONE pure `applyDesignOps` applies them (design-ops.ts); the builder's
|
|
23138
|
+
* right-click and the Ask panel are meant to call the same function (R-H1). What it writes is an ordinary saved page —
|
|
23139
|
+
* the nodes the builder saves and the engine renders, unchanged.
|
|
23140
|
+
*/
|
|
23141
|
+
/** The eight tool families. A tool call's NAME is its family; its input is the family's strict schema
|
|
23142
|
+
* (design-ops.schema.ts). */
|
|
23143
|
+
declare enum DesignTool {
|
|
23144
|
+
/** Palette: drop a part, drop a recipe, or set a part's inputs (Inputs panel / Layers panel name). */
|
|
23145
|
+
Place = "place",
|
|
23146
|
+
/** Style panel: values on the base, at a width, or in a state. */
|
|
23147
|
+
Style = "style",
|
|
23148
|
+
/** Interactions panel: a trigger and what it does. */
|
|
23149
|
+
Act = "act",
|
|
23150
|
+
/** The Scene timeline: a layer's tracks, laptop or phone. */
|
|
23151
|
+
Scene = "scene",
|
|
23152
|
+
/** Typing on the canvas: a part's words. */
|
|
23153
|
+
Words = "words",
|
|
23154
|
+
/** Files box / stock: a picture or a film. */
|
|
23155
|
+
Picture = "picture",
|
|
23156
|
+
/** Design ▸ Apply choices, fonts and token edits. */
|
|
23157
|
+
Look = "look",
|
|
23158
|
+
/** Drag, delete, Wrap in. */
|
|
23159
|
+
Move = "move"
|
|
23160
|
+
}
|
|
23161
|
+
declare enum PlaceOp {
|
|
23162
|
+
/** A new part of `type` (the palette's drop: `createSerializedNode`, its empty-drop sizes released). */
|
|
23163
|
+
Place = "place",
|
|
23164
|
+
/** A palette recipe (`DESIGN_RECIPES`): its parts are ordinary nodes, their ids `<node>-<part key>`. */
|
|
23165
|
+
Recipe = "recipe",
|
|
23166
|
+
/** An existing part's inputs or its layer facts (`@label`, `@role`, `@itemKey`, `@trigger.<state>`). */
|
|
23167
|
+
Set = "set"
|
|
23168
|
+
}
|
|
23169
|
+
declare enum MoveOp {
|
|
23170
|
+
Move = "move",
|
|
23171
|
+
Remove = "remove",
|
|
23172
|
+
/** Wrap `node` in a NEW part of `type` whose id is `parent` (Wrap in ▸). */
|
|
23173
|
+
Wrap = "wrap"
|
|
23174
|
+
}
|
|
23175
|
+
declare enum LookEditKind {
|
|
23176
|
+
/** A token's value (Design ▸ Tokens). */
|
|
23177
|
+
Token = "token",
|
|
23178
|
+
/** A Design ▸ Apply choice (flavor, seed, shape, density, motion …). */
|
|
23179
|
+
Choice = "choice",
|
|
23180
|
+
/** A font role (Design ▸ Type): `font-display`, `font-body`, `font-label`. */
|
|
23181
|
+
Font = "font"
|
|
23182
|
+
}
|
|
23183
|
+
/** The Style panel's layers: the base, a narrower width (sparse `responsive[bp].styleProps`), or a state
|
|
23184
|
+
* (`stateStyles[state]`). The widths are the style compiler's override breakpoints (pinned by a spec). */
|
|
23185
|
+
declare const DESIGN_WIDTHS: ReadonlyArray<string>;
|
|
23186
|
+
declare const DESIGN_BASE_LAYER = "base";
|
|
23187
|
+
/** The targeted state a composite part wears when ANOTHER node is on (CC2 `trigger-on`). */
|
|
23188
|
+
declare const DESIGN_TRIGGER_ON_STATE = "trigger-on";
|
|
23189
|
+
declare const DESIGN_STATES: ReadonlyArray<string>;
|
|
23190
|
+
declare const DESIGN_LAYERS: ReadonlyArray<string>;
|
|
23191
|
+
/** The parent that means "the page itself" (a top-level section, or a global part). */
|
|
23192
|
+
declare const DESIGN_PAGE_PARENT = "";
|
|
23193
|
+
/** An index that means "after the last child". */
|
|
23194
|
+
declare const DESIGN_END_INDEX = -1;
|
|
23195
|
+
/** A value an Interactions-panel row writes as "no range" / "no from". */
|
|
23196
|
+
declare const DESIGN_NONE = "";
|
|
23197
|
+
/** The layer facts a `place` / `set` op writes through its values (they are not inputs). */
|
|
23198
|
+
declare enum DesignMeta {
|
|
23199
|
+
/** The element style id; `''` = the type's own default (the palette's), `none` = none at all. */
|
|
23200
|
+
Style = "@style",
|
|
23201
|
+
Label = "@label",
|
|
23202
|
+
Role = "@role",
|
|
23203
|
+
ItemKey = "@itemKey",
|
|
23204
|
+
/** `@global` = `header` | `footer` | … : the part is a global element at that position. */
|
|
23205
|
+
Global = "@global"
|
|
23206
|
+
}
|
|
23207
|
+
/** `@trigger.<state>` = the node id whose ON drives this node's `<state>` (stateTriggers). */
|
|
23208
|
+
declare const DESIGN_TRIGGER_META = "@trigger.";
|
|
23209
|
+
declare const DESIGN_NO_STYLE = "none";
|
|
23210
|
+
/** One named value. Inputs that hold a list or an object travel as their JSON text. */
|
|
23211
|
+
interface DesignValue {
|
|
23212
|
+
name: string;
|
|
23213
|
+
value: string | number | boolean;
|
|
23214
|
+
}
|
|
23215
|
+
/** One style trait; `''` in a width or state layer removes it from that layer. */
|
|
23216
|
+
interface DesignTrait {
|
|
23217
|
+
name: string;
|
|
23218
|
+
value: string;
|
|
23219
|
+
}
|
|
23220
|
+
/** One Scene key as a row: consecutive rows of one `prop` (and `from`) are one track. */
|
|
23221
|
+
interface DesignSceneRow {
|
|
23222
|
+
prop: string;
|
|
23223
|
+
/** A Clip track's direction, else `''`. */
|
|
23224
|
+
from: string;
|
|
23225
|
+
at: number;
|
|
23226
|
+
value: string | number;
|
|
23227
|
+
}
|
|
23228
|
+
interface PlaceDesignOp {
|
|
23229
|
+
tool: DesignTool.Place | `${DesignTool.Place}`;
|
|
23230
|
+
op: PlaceOp | `${PlaceOp}`;
|
|
23231
|
+
node: string;
|
|
23232
|
+
/** The part's type (place), the recipe's name (recipe), `''` (set). */
|
|
23233
|
+
type: string;
|
|
23234
|
+
parent: string;
|
|
23235
|
+
index: number;
|
|
23236
|
+
values: DesignValue[];
|
|
23237
|
+
}
|
|
23238
|
+
interface StyleDesignOp {
|
|
23239
|
+
tool: DesignTool.Style | `${DesignTool.Style}`;
|
|
23240
|
+
node: string;
|
|
23241
|
+
layer: string;
|
|
23242
|
+
traits: DesignTrait[];
|
|
23243
|
+
}
|
|
23244
|
+
interface ActDesignOp {
|
|
23245
|
+
tool: DesignTool.Act | `${DesignTool.Act}`;
|
|
23246
|
+
node: string;
|
|
23247
|
+
/** The row's id; a second op with the same id adds an action to that row. */
|
|
23248
|
+
id: string;
|
|
23249
|
+
/** `''` removes the row. */
|
|
23250
|
+
trigger: string;
|
|
23251
|
+
/** A scroll-driven row's range, else `''`. */
|
|
23252
|
+
range: string;
|
|
23253
|
+
/** The action (actions-core catalog). */
|
|
23254
|
+
type: string;
|
|
23255
|
+
/** `target`, `duration`, `delay`, `easing`, `once`, and `params.<name>`. */
|
|
23256
|
+
values: DesignValue[];
|
|
23257
|
+
}
|
|
23258
|
+
interface SceneDesignOp {
|
|
23259
|
+
tool: DesignTool.Scene | `${DesignTool.Scene}`;
|
|
23260
|
+
node: string;
|
|
23261
|
+
/** The phone's own tracks (`scenePhoneTracks`). */
|
|
23262
|
+
phone: boolean;
|
|
23263
|
+
/** Every track of the layer (replaces them); none = the layer stands still (`[]`). */
|
|
23264
|
+
tracks: DesignSceneRow[];
|
|
23265
|
+
}
|
|
23266
|
+
interface WordsDesignOp {
|
|
23267
|
+
tool: DesignTool.Words | `${DesignTool.Words}`;
|
|
23268
|
+
node: string;
|
|
23269
|
+
text: string;
|
|
23270
|
+
}
|
|
23271
|
+
interface PictureDesignOp {
|
|
23272
|
+
tool: DesignTool.Picture | `${DesignTool.Picture}`;
|
|
23273
|
+
node: string;
|
|
23274
|
+
src: string;
|
|
23275
|
+
}
|
|
23276
|
+
interface LookDesignOp {
|
|
23277
|
+
tool: DesignTool.Look | `${DesignTool.Look}`;
|
|
23278
|
+
kind: LookEditKind | `${LookEditKind}`;
|
|
23279
|
+
name: string;
|
|
23280
|
+
value: string | number | boolean;
|
|
23281
|
+
}
|
|
23282
|
+
interface MoveDesignOp {
|
|
23283
|
+
tool: DesignTool.Move | `${DesignTool.Move}`;
|
|
23284
|
+
op: MoveOp | `${MoveOp}`;
|
|
23285
|
+
node: string;
|
|
23286
|
+
parent: string;
|
|
23287
|
+
index: number;
|
|
23288
|
+
/** The wrapper's type (wrap), else `''`. */
|
|
23289
|
+
type: string;
|
|
23290
|
+
}
|
|
23291
|
+
type DesignOp = PlaceDesignOp | StyleDesignOp | ActDesignOp | SceneDesignOp | WordsDesignOp | PictureDesignOp | LookDesignOp | MoveDesignOp;
|
|
23292
|
+
/** The choice that holds the font roles (`look` op `font`). */
|
|
23293
|
+
declare const DESIGN_FONTS_CHOICE = "fonts";
|
|
23294
|
+
/** The look a design writes: Design ▸ Apply's choices (fonts inside) and the token edits. */
|
|
23295
|
+
interface DesignLook {
|
|
23296
|
+
choices: Record<string, unknown>;
|
|
23297
|
+
tokenEdits: Record<string, unknown>;
|
|
23298
|
+
}
|
|
23299
|
+
/** What the ops work on: one page's layout, the site's global parts, the look. */
|
|
23300
|
+
interface DesignDoc {
|
|
23301
|
+
layout: SerializedNode[];
|
|
23302
|
+
globals: SerializedNode[];
|
|
23303
|
+
look: DesignLook;
|
|
23304
|
+
}
|
|
23305
|
+
declare enum DesignIssueCode {
|
|
23306
|
+
/** The op's shape: a missing node, a parent that holds no children, an id taken, an unknown tool or layer. */
|
|
23307
|
+
Shape = "shape",
|
|
23308
|
+
/** A trait the type has no slot for, or an input it does not have (the builder would drop it). */
|
|
23309
|
+
Slot = "slot",
|
|
23310
|
+
/** A style value against the free tier's closed rules: start / end, one plain value, no window units. */
|
|
23311
|
+
Style = "style",
|
|
23312
|
+
/** A value the look owns written as something other than its token. */
|
|
23313
|
+
Token = "token",
|
|
23314
|
+
/** Words that hold a fact the owner never gave, or a word this site must not use (`factIssues`). */
|
|
23315
|
+
Fact = "fact",
|
|
23316
|
+
/** Motion against Emil's rules (hover = transform / opacity / colour; one entrance per element; the catalog). */
|
|
23317
|
+
Motion = "motion",
|
|
23318
|
+
/** A page invariant: one h1, a slide only in a slider, a picture with words. */
|
|
23319
|
+
Layout = "layout",
|
|
23320
|
+
/** A recipe that does not exist or will not stamp with these options. */
|
|
23321
|
+
Recipe = "recipe"
|
|
23322
|
+
}
|
|
23323
|
+
type DesignIssue = PathIssue<DesignIssueCode>;
|
|
23324
|
+
/** One refused op: its place in the stream, the op, and why (each reason with its path). */
|
|
23325
|
+
interface DesignOpRefusal {
|
|
23326
|
+
index: number;
|
|
23327
|
+
op: DesignOp;
|
|
23328
|
+
issues: DesignIssue[];
|
|
23329
|
+
}
|
|
23330
|
+
/** Which turn this is (ai-designer-plan §2e): the first answer's refusals go back once, with their paths; a refusal in
|
|
23331
|
+
* the repair turn drops the op and is logged. */
|
|
23332
|
+
declare enum DesignTurn {
|
|
23333
|
+
First = "first",
|
|
23334
|
+
Repair = "repair"
|
|
23335
|
+
}
|
|
23336
|
+
interface DesignOpsResult {
|
|
23337
|
+
doc: DesignDoc;
|
|
23338
|
+
/** How many ops were applied. */
|
|
23339
|
+
applied: number;
|
|
23340
|
+
/** First turn: the ops to send back once, with their paths. */
|
|
23341
|
+
refused: DesignOpRefusal[];
|
|
23342
|
+
/** Repair turn: the ops dropped on their second refusal — the round's log. */
|
|
23343
|
+
dropped: DesignOpRefusal[];
|
|
23344
|
+
/** With a check context: Emil's rules on the page as the turn left it (`designMotionIssues`) — what no single op
|
|
23345
|
+
* caused (a part moved into a container that enters) and what the page held before the turn. */
|
|
23346
|
+
motion?: MotionIssue[];
|
|
23347
|
+
}
|
|
23348
|
+
|
|
23349
|
+
interface DesignToolSchema {
|
|
23350
|
+
name: DesignTool;
|
|
23351
|
+
description: string;
|
|
23352
|
+
input_schema: JsonSchema;
|
|
23353
|
+
}
|
|
23354
|
+
/** The eight tool schemas, in the order the tools are offered. */
|
|
23355
|
+
declare const DESIGN_TOOL_SCHEMAS: ReadonlyArray<DesignToolSchema>;
|
|
23356
|
+
/** A family's schema by its tool name. */
|
|
23357
|
+
declare const designToolSchema: (tool: DesignTool | string) => DesignToolSchema | undefined;
|
|
23358
|
+
|
|
23359
|
+
/**
|
|
23360
|
+
* The palette recipes the designer may drop (`place` op `recipe`, ai-designer-plan §2b): the builder's own composite-core
|
|
23361
|
+
* and scene-core recipe builders, by the name the tool uses — never a recipe of the designer's own. Each takes the op's
|
|
23362
|
+
* values as its options object; an option that holds a list or an object arrives as its JSON text and is read back here.
|
|
23363
|
+
* Its parts are ordinary nodes, made by the factory the caller hands in (`createSerializedNode`, ids `<prefix>-<key>`).
|
|
23364
|
+
*/
|
|
23365
|
+
declare enum DesignRecipe {
|
|
23366
|
+
Accordion = "accordion",
|
|
23367
|
+
Card = "card",
|
|
23368
|
+
Carousel = "carousel",
|
|
23369
|
+
Counter = "counter",
|
|
23370
|
+
Disclosure = "disclosure",
|
|
23371
|
+
Lightbox = "lightbox",
|
|
23372
|
+
Marquee = "marquee",
|
|
23373
|
+
ReadingBar = "reading-bar",
|
|
23374
|
+
Scene = "scene",
|
|
23375
|
+
Segmented = "segmented",
|
|
23376
|
+
Slideshow = "slideshow",
|
|
23377
|
+
Tabs = "tabs"
|
|
23378
|
+
}
|
|
23379
|
+
type RecipeBuild = (create: CompositeNodeFactory, options: Record<string, unknown>) => CompositeNode;
|
|
23380
|
+
declare const DESIGN_RECIPES: Readonly<Record<DesignRecipe, RecipeBuild>>;
|
|
23381
|
+
declare const isDesignRecipe: (name: string) => name is DesignRecipe;
|
|
23382
|
+
/** A recipe option's value as the builder wants it: a JSON list or object text read back, anything else as given. */
|
|
23383
|
+
declare function recipeOptionValue(value: unknown): unknown;
|
|
23384
|
+
|
|
23385
|
+
/**
|
|
23386
|
+
* Where each node of a design document sits (AD1): the node, the list that holds it (the page's layout, the site's
|
|
23387
|
+
* globals, or a parent's children) and that parent. `applyDesignOps` keeps it as it works; the static check reads it.
|
|
23388
|
+
*/
|
|
23389
|
+
interface DesignNodePlace {
|
|
23390
|
+
node: SerializedNode;
|
|
23391
|
+
list: SerializedNode[];
|
|
23392
|
+
parent: SerializedNode | null;
|
|
23393
|
+
}
|
|
23394
|
+
declare class DesignDocIndex {
|
|
23395
|
+
readonly doc: DesignDoc;
|
|
23396
|
+
private readonly places;
|
|
23397
|
+
constructor(doc: DesignDoc);
|
|
23398
|
+
/** Index every node again (after a move, a removal or a wrap). */
|
|
23399
|
+
rebuild(): void;
|
|
23400
|
+
/** Index a node and its subtree, just inserted into `list` under `parent`. */
|
|
23401
|
+
add(node: SerializedNode, list: SerializedNode[], parent: SerializedNode | null): void;
|
|
23402
|
+
find(id: string): DesignNodePlace | undefined;
|
|
23403
|
+
has(id: string): boolean;
|
|
23404
|
+
/** Every node, in no promised order. */
|
|
23405
|
+
nodes(): SerializedNode[];
|
|
23406
|
+
/** Whether `id` is `ancestor` or sits inside it. */
|
|
23407
|
+
within(id: string, ancestor: string): boolean;
|
|
23408
|
+
private addList;
|
|
23409
|
+
}
|
|
23410
|
+
|
|
23411
|
+
/**
|
|
23412
|
+
* THE DESIGNER'S STATIC CHECK (ai-designer-plan §2e, §2f, R-H3): every reason one op may not be applied, with the path of
|
|
23413
|
+
* what it wrote, in words the model can act on in its one repair. Two kinds:
|
|
23414
|
+
* - ALWAYS (the op's shape and the type's slots): a node that is not there, a parent that holds no children, a taken id,
|
|
23415
|
+
* an input or a style trait the type has no control for — the builder could not hold it (`assertStyleSlots`' rule).
|
|
23416
|
+
* - With a `DesignCheckContext` (the free tier's closed rules, reused — never forked): colours, fonts, radii, shadows and
|
|
23417
|
+
* durations as the look's tokens, start / end sides, no window units (`freeStyleIssues`); a hover moves transform,
|
|
23418
|
+
* opacity and colour only; actions from the catalog under a trigger that offers them, one entrance per element; Scene
|
|
23419
|
+
* tracks the timeline keeps; words that hold only the owner's facts (`factIssues`); one h1, a slide only in a slider.
|
|
23420
|
+
* Pure.
|
|
23421
|
+
*/
|
|
23422
|
+
interface DesignCheckContext {
|
|
23423
|
+
/** The studio's token rows with their types (what a `var(--iox-…)` may name). */
|
|
23424
|
+
tokens: ReadonlyArray<DesignTokenLike>;
|
|
23425
|
+
/** The owner's facts and the words this site must not use. */
|
|
23426
|
+
words: PlanWordContext;
|
|
23427
|
+
}
|
|
23428
|
+
/** The input that holds a part's words (the `words` tool writes it). */
|
|
23429
|
+
declare const DESIGN_WORD_PROPS: Readonly<Record<string, string>>;
|
|
23430
|
+
/** The input that holds a part's picture (the `picture` tool writes it). */
|
|
23431
|
+
declare const DESIGN_PICTURE_PROPS: Readonly<Record<string, string>>;
|
|
23432
|
+
/** Inputs a visitor reads — their words are checked for facts whichever tool writes them. */
|
|
23433
|
+
declare const DESIGN_SAID_PROPS: ReadonlyArray<string>;
|
|
23434
|
+
/** An Interactions-panel row's timing values; anything else is `params.<name>`. */
|
|
23435
|
+
declare const DESIGN_ACT_VALUES: ReadonlyArray<string>;
|
|
23436
|
+
declare const DESIGN_PARAM_PREFIX = "params.";
|
|
23437
|
+
/** The states a pointer drives: they move transform and opacity, and change colour tokens — never layout (Emil). */
|
|
23438
|
+
declare const DESIGN_POINTER_STATES: ReadonlyArray<string>;
|
|
23439
|
+
/** The triggers that fire on their own: an element has at most one motion under them (one entrance per element). */
|
|
23440
|
+
declare const DESIGN_ENTRANCE_TRIGGERS: ReadonlyArray<string>;
|
|
23441
|
+
/**
|
|
23442
|
+
* One trait as the builder's controls hold it: a control the type has is written as given — since Batch C3 / C4 that
|
|
23443
|
+
* includes a start / end inset (`insetInlineStart`, kept: it mirrors with the page) and one margin / padding side; an
|
|
23444
|
+
* axis or a shorthand the builder has no control for is folded into the controls by the page's direction
|
|
23445
|
+
* (`freeStyleToSlots`, the free tier's one table). `''` stays `''` (a width or a state forgets the value).
|
|
23446
|
+
*/
|
|
23447
|
+
declare function designTraitSlots(node: SerializedNode, layer: string, trait: DesignTrait, rtl: boolean): Array<[string, string]>;
|
|
23448
|
+
/** A Scene op's rows as the layer's tracks: consecutive rows of one prop and one `from` are one track. */
|
|
23449
|
+
declare function designSceneTracks(rows: ReadonlyArray<DesignSceneRow>): Array<Record<string, unknown>>;
|
|
23450
|
+
/**
|
|
23451
|
+
* Why op `i` of a stream may not be applied to the document as it stands, each reason with its path (`ops[i].traits[2].left`).
|
|
23452
|
+
* Without `ctx` only the shape and the slots are read (what the builder itself could not hold).
|
|
23453
|
+
*/
|
|
23454
|
+
declare function designOpIssues(op: DesignOp, i: number, index: DesignDocIndex, options?: {
|
|
23455
|
+
rtl?: boolean;
|
|
23456
|
+
check?: DesignCheckContext;
|
|
23457
|
+
}): DesignIssue[];
|
|
23458
|
+
/**
|
|
23459
|
+
* The page's invariants once a turn is applied (they hold for the page, not for one op): one h1, every picture described,
|
|
23460
|
+
* a slide only directly in a slider. Paths are node ids (`layout:<id>`).
|
|
23461
|
+
*/
|
|
23462
|
+
declare function designDocIssues(doc: DesignDoc): DesignIssue[];
|
|
23463
|
+
|
|
23464
|
+
/**
|
|
23465
|
+
* ONE `applyDesignOps` (ai-designer-plan §2b, AD1, R-H1): the designer's tool calls applied to a page, as the builder
|
|
23466
|
+
* would apply the same hands — the palette's `createSerializedNode`, the Style panel's slots, the Interactions panel's
|
|
23467
|
+
* rows, the Scene timeline, typing, the Files box, Design ▸ Tokens, drag / delete / Wrap in. Pure: the input document is
|
|
23468
|
+
* never touched; the same document and ops give the same result, byte for byte, whoever calls (the designer loop, the
|
|
23469
|
+
* builder's right-click, the Ask panel).
|
|
23470
|
+
*
|
|
23471
|
+
* Every op is checked first (`designOpIssues`). A refused op is not applied: on the FIRST turn it is returned once, with
|
|
23472
|
+
* its paths, for the model to repair; on the REPAIR turn it is dropped and logged (§2e). What it writes is an ordinary
|
|
23473
|
+
* saved page, its keys in ONE order (`canonicalDesignNode`).
|
|
23474
|
+
*/
|
|
23475
|
+
interface DesignOpsOptions {
|
|
23476
|
+
/** Which turn of the round this is (the first answer, or its one repair). */
|
|
23477
|
+
turn?: DesignTurn;
|
|
23478
|
+
/** The page runs right to left: a start side is the right. */
|
|
23479
|
+
rtl?: boolean;
|
|
23480
|
+
/** The content rules (tokens, facts, motion, page invariants). Without it only the shape and the slots are read. */
|
|
23481
|
+
check?: DesignCheckContext;
|
|
23482
|
+
}
|
|
23483
|
+
/** A saved node's keys in the order the builder's serializer writes them (iox-cms-client `serializeBuilderToPageLayout`,
|
|
23484
|
+
* page-layout.mapper.ts) — so a page the designer wrote saves unchanged through the builder; anything else after, as found. */
|
|
23485
|
+
declare const DESIGN_NODE_KEY_ORDER: ReadonlyArray<string>;
|
|
23486
|
+
declare const DESIGN_ROW_KEY_ORDER: ReadonlyArray<string>;
|
|
23487
|
+
declare const DESIGN_ACTION_KEY_ORDER: ReadonlyArray<string>;
|
|
23488
|
+
declare const DESIGN_TRACK_KEY_ORDER: ReadonlyArray<string>;
|
|
23489
|
+
/**
|
|
23490
|
+
* A node with its own keys, its rows', its actions' and its tracks' keys in ONE order (and its children likewise). The
|
|
23491
|
+
* values inside `props`, `styleProps`, a state or a width keep their own order (CSS can read it). Pure.
|
|
23492
|
+
*/
|
|
23493
|
+
declare function canonicalDesignNode(node: SerializedNode): SerializedNode;
|
|
23494
|
+
/**
|
|
23495
|
+
* The part a `place` op drops: the palette's new node (`createSerializedNode`, its empty-drop sizes released — the design
|
|
23496
|
+
* owns the box), its inputs, its element style (`@style`: absent or `''` = the type's default for these inputs, `none` =
|
|
23497
|
+
* none), and its layer facts.
|
|
23498
|
+
*/
|
|
23499
|
+
declare function placedDesignNode(id: string, type: string, values: ReadonlyArray<DesignValue>): SerializedNode;
|
|
23500
|
+
/**
|
|
23501
|
+
* Apply a stream of designer ops to a page (`doc`: its layout, the site's globals, the look). Returns a NEW document, how
|
|
23502
|
+
* many ops it applied, and the refused ones — to send back once (first turn) or the dropped ones (repair turn). Pure.
|
|
23503
|
+
*/
|
|
23504
|
+
declare function applyDesignOps(doc: DesignDoc, ops: ReadonlyArray<DesignOp>, options?: DesignOpsOptions): DesignOpsResult;
|
|
23505
|
+
|
|
23506
|
+
/**
|
|
23507
|
+
* A SAVED PAGE AS THE DESIGNER'S OPS (AD1, the replay — ai-designer-plan §2b, R-H2): each node as the one `place` that
|
|
23508
|
+
* drops it, then what a person would do to it — type its words, choose its picture, its Style-panel values (base, widths,
|
|
23509
|
+
* states), its Interactions rows, its Scene tracks — then its children. Only what differs from the palette's new node is
|
|
23510
|
+
* written, so this is also the compact form a revise round speaks (§2e). Whatever a saved node holds that no tool can
|
|
23511
|
+
* write is reported in `gaps` (never silently widened). Pure.
|
|
23512
|
+
*/
|
|
23513
|
+
interface DesignOpsOfOptions {
|
|
23514
|
+
/** The page runs right to left (a `left` is its end side). */
|
|
23515
|
+
rtl?: boolean;
|
|
23516
|
+
}
|
|
23517
|
+
interface DesignOpsOf {
|
|
23518
|
+
ops: DesignOp[];
|
|
23519
|
+
/** What the ops cannot say, each with the node's id — empty when the page replays byte for byte. */
|
|
23520
|
+
gaps: string[];
|
|
23521
|
+
}
|
|
23522
|
+
/**
|
|
23523
|
+
* A physical side, written as the start / end side it is on this page. The designer speaks start / end only (the check
|
|
23524
|
+
* refuses a physical side), and since Batch C3 the builder HOLDS a start / end inset as its own control (Position ▸ Start /
|
|
23525
|
+
* End, `insetInlineStart` / `insetInlineEnd` — it mirrors with the page), so a stored `left: 0px` comes back as
|
|
23526
|
+
* `insetInlineStart: 0px` on an English page: the same box, held the way it mirrors.
|
|
23527
|
+
*/
|
|
23528
|
+
declare function designSideName(name: string, rtl: boolean): string;
|
|
23529
|
+
/** A page's layout (or the site's globals) as ops, parents first. */
|
|
23530
|
+
declare function designOpsOfLayout(nodes: ReadonlyArray<SerializedNode>, options?: DesignOpsOfOptions & {
|
|
23531
|
+
globals?: boolean;
|
|
23532
|
+
}): DesignOpsOf;
|
|
23533
|
+
/** The look as ops: Design ▸ Apply's choices (fonts in their place), then the token edits. */
|
|
23534
|
+
declare function designOpsOfLook(look: DesignLook): DesignOpsOf;
|
|
23535
|
+
|
|
23536
|
+
/** Where the rubric came from, and a hash of its section (a changed rubric is a new hash). */
|
|
23537
|
+
declare const CRITIC_RUBRIC_SOURCE: {
|
|
23538
|
+
readonly file: "team/reference-score.md";
|
|
23539
|
+
readonly section: "§2";
|
|
23540
|
+
readonly hash: "2556a8f755a1";
|
|
23541
|
+
};
|
|
23542
|
+
/** The eight dimensions in the rubric's order: the key the critic answers under, the name, what is compared. */
|
|
23543
|
+
declare const CRITIC_RUBRIC_DIMENSIONS: ReadonlyArray<{
|
|
23544
|
+
readonly n: number;
|
|
23545
|
+
readonly key: string;
|
|
23546
|
+
readonly name: string;
|
|
23547
|
+
readonly compares: string;
|
|
23548
|
+
}>;
|
|
23549
|
+
/** The headline rule, in the rubric's words. */
|
|
23550
|
+
declare const CRITIC_RUBRIC_HEADLINE = "Headline = the mean of 1\u20137, capped by 8. Every score has one sentence of evidence: \"hotelaurelia does X; ours does Y\", with the two crops side by side.";
|
|
23551
|
+
/** The polish row's numbers: what each bug costs, and the cap a bug a visitor would call broken puts on the page. */
|
|
23552
|
+
declare const CRITIC_RUBRIC_POLISH: {
|
|
23553
|
+
readonly bugPenalty: 1;
|
|
23554
|
+
readonly brokenCap: 5;
|
|
23555
|
+
};
|
|
23556
|
+
|
|
23557
|
+
/**
|
|
23558
|
+
* THE AI DESIGNER'S CRITIC — its answer (ai-designer-plan §2d, AD3, AD-D18). Each round the critic reads the sheet (the
|
|
23559
|
+
* reference beside ours, view by view, and zoomed crops) and answers ONE strict object: a score 0–10 and one line of
|
|
23560
|
+
* evidence for each of the reference score's eight dimensions (`team/reference-score.md` §2, ported — never retyped —
|
|
23561
|
+
* into `critic-rubric.generated.ts`), the polish bugs it saw (a bug a visitor would call broken caps the page), and the
|
|
23562
|
+
* 1–3 changes that move the lowest score most, written as a brief for the revise step. The arithmetic — the design mean,
|
|
23563
|
+
* the cap, the headline — is this file's, never the model's. Pure.
|
|
23564
|
+
*/
|
|
23565
|
+
/** The eight dimensions, by the key the critic answers under — the rubric's order (a spec holds it to the port). */
|
|
23566
|
+
declare enum CriticDimension {
|
|
23567
|
+
Colour = "colour",
|
|
23568
|
+
Type = "type",
|
|
23569
|
+
Composition = "composition",
|
|
23570
|
+
Imagery = "imagery",
|
|
23571
|
+
Header = "header",
|
|
23572
|
+
Footer = "footer",
|
|
23573
|
+
Motion = "motion",
|
|
23574
|
+
Polish = "polish"
|
|
23575
|
+
}
|
|
23576
|
+
declare const CRITIC_DIMENSIONS: ReadonlyArray<CriticDimension>;
|
|
23577
|
+
/** Dimensions 1–7: the headline is their mean. */
|
|
23578
|
+
declare const CRITIC_DESIGN_DIMENSIONS: ReadonlyArray<CriticDimension>;
|
|
23579
|
+
/** A score is 0–10 in half points, as the tester scores. */
|
|
23580
|
+
declare const CRITIC_SCORE: {
|
|
23581
|
+
readonly min: 0;
|
|
23582
|
+
readonly max: 10;
|
|
23583
|
+
readonly step: 0.5;
|
|
23584
|
+
};
|
|
23585
|
+
/** How many changes a critique gives the revise step. */
|
|
23586
|
+
declare const CRITIC_CHANGES: {
|
|
23587
|
+
readonly min: 1;
|
|
23588
|
+
readonly max: 3;
|
|
23589
|
+
};
|
|
23590
|
+
/** The answer's format name (the request's output). */
|
|
23591
|
+
declare const CRITIC_OUTPUT_NAME = "critique";
|
|
23592
|
+
interface CriticScore {
|
|
23593
|
+
score: number;
|
|
23594
|
+
/** One line, read off the sheet as a position, a size or a colour: "<reference> does X; ours does Y". */
|
|
23595
|
+
evidence: string;
|
|
23596
|
+
}
|
|
23597
|
+
interface CriticBug {
|
|
23598
|
+
what: string;
|
|
23599
|
+
/** A visitor would call it broken (a 404, text over text, a dead button): the page is capped. */
|
|
23600
|
+
broken: boolean;
|
|
23601
|
+
}
|
|
23602
|
+
interface CriticChange {
|
|
23603
|
+
dimension: CriticDimension;
|
|
23604
|
+
/** What the revise step should do, in our own terms — never "make it look like the reference". */
|
|
23605
|
+
brief: string;
|
|
23606
|
+
}
|
|
23607
|
+
interface CriticAnswer {
|
|
23608
|
+
scores: Record<CriticDimension, CriticScore>;
|
|
23609
|
+
bugs: CriticBug[];
|
|
23610
|
+
changes: CriticChange[];
|
|
23611
|
+
}
|
|
23612
|
+
/** The critic's strict output format: every property required, every object closed (`strictSchemaComplexity`). */
|
|
23613
|
+
declare function criticAnswerSchema(): JsonSchema;
|
|
23614
|
+
declare enum CriticIssueCode {
|
|
23615
|
+
/** Not the answer's shape. */
|
|
23616
|
+
Shape = "shape",
|
|
23617
|
+
/** A score outside 0–10 or not in half points. */
|
|
23618
|
+
Range = "range",
|
|
23619
|
+
/** Evidence that is not one line read off the sheet (no position, size or colour in it). */
|
|
23620
|
+
Evidence = "evidence",
|
|
23621
|
+
/** Not 1–3 changes, or none aimed at the lowest score. */
|
|
23622
|
+
Changes = "changes",
|
|
23623
|
+
/** A polish score above what its bugs leave. */
|
|
23624
|
+
Polish = "polish",
|
|
23625
|
+
/** A brief that asks for resemblance (AD-D18): the reference's name, "copy", "look like". */
|
|
23626
|
+
Likeness = "likeness"
|
|
23627
|
+
}
|
|
23628
|
+
type CriticIssue = PathIssue<CriticIssueCode>;
|
|
23629
|
+
interface CriticContext {
|
|
23630
|
+
/** The reference the page is scored against (its name, as the cards are named: `graya-institute`). */
|
|
23631
|
+
reference: string;
|
|
23632
|
+
}
|
|
23633
|
+
/** Why an answer is not a usable critique, each reason with its path. The one gate between the model and the loop. */
|
|
23634
|
+
declare function criticAnswerIssues(answer: unknown, ctx: CriticContext): CriticIssue[];
|
|
23635
|
+
/** The dimensions holding the lowest score (ties together). */
|
|
23636
|
+
declare function lowestDimensions(answer: CriticAnswer): CriticDimension[];
|
|
23637
|
+
interface CriticVerdict {
|
|
23638
|
+
/** The mean of dimensions 1–7. */
|
|
23639
|
+
designMean: number;
|
|
23640
|
+
polish: number;
|
|
23641
|
+
/** How many bugs a visitor would call broken. */
|
|
23642
|
+
broken: number;
|
|
23643
|
+
/** The rubric's headline: the design mean, capped when a bug is broken. */
|
|
23644
|
+
headline: number;
|
|
23645
|
+
capped: boolean;
|
|
23646
|
+
}
|
|
23647
|
+
/** What a critique comes to, by the rubric's rule (`CRITIC_RUBRIC_HEADLINE`): the mean of 1–7, capped by a broken bug. */
|
|
23648
|
+
declare function criticVerdict(answer: CriticAnswer): CriticVerdict;
|
|
23649
|
+
|
|
23650
|
+
/**
|
|
23651
|
+
* THE CRITIC'S SHEET (ai-designer-plan §2c–§2d, AD3): what the critic looks at — the reference beside ours, view by view,
|
|
23652
|
+
* laptop then phone, then 4–6 zoomed crops (a defect under ~20px is invisible at sheet scale, law HARNESS §1.5). The
|
|
23653
|
+
* captures come from a `CaptureSource`: today the folders the tester and the designer loop wrote
|
|
23654
|
+
* (`<dir>/<laptop|phone>/0N-<view>.png` + `metrics.json`); from AD2 the `iox-render` service, behind the same interface.
|
|
23655
|
+
* This file only PLANS the sheet (which pairs, which crops, what they cost in image tokens); the pixels are the caller's.
|
|
23656
|
+
* Pure.
|
|
23657
|
+
*/
|
|
23658
|
+
declare enum CaptureWidth {
|
|
23659
|
+
Laptop = "laptop",
|
|
23660
|
+
Phone = "phone"
|
|
23661
|
+
}
|
|
23662
|
+
/** The widths' viewports (§2c). */
|
|
23663
|
+
declare const CAPTURE_VIEWPORTS: Readonly<Record<CaptureWidth, {
|
|
23664
|
+
w: number;
|
|
23665
|
+
h: number;
|
|
23666
|
+
}>>;
|
|
23667
|
+
/**
|
|
23668
|
+
* The views, in the order the sheet shows them: the tester's capture set (`first` … `full`) and the views `iox-render`
|
|
23669
|
+
* adds in AD2 (two screens down, the Scenes at 25 / 50 / 90 %, reduced motion). A view a source does not have is skipped.
|
|
23670
|
+
*/
|
|
23671
|
+
declare enum CaptureView {
|
|
23672
|
+
First = "first",
|
|
23673
|
+
HeaderOpen = "header-open",
|
|
23674
|
+
HeaderScrolled = "header-scrolled",
|
|
23675
|
+
Down1 = "down-1",
|
|
23676
|
+
Down2 = "down-2.2",
|
|
23677
|
+
List = "list",
|
|
23678
|
+
Scene25 = "scene-25",
|
|
23679
|
+
Scene50 = "scene-50",
|
|
23680
|
+
Scene90 = "scene-90",
|
|
23681
|
+
Reduced = "reduced-motion",
|
|
23682
|
+
Footer = "footer",
|
|
23683
|
+
Full = "full"
|
|
23684
|
+
}
|
|
23685
|
+
declare const CAPTURE_VIEW_ORDER: ReadonlyArray<CaptureView>;
|
|
23686
|
+
/** One captured picture: where it is (a path, a storage key — the caller reads it) and its size in pixels. */
|
|
23687
|
+
interface CaptureShot {
|
|
23688
|
+
width: CaptureWidth;
|
|
23689
|
+
view: CaptureView;
|
|
23690
|
+
ref: string;
|
|
23691
|
+
w: number;
|
|
23692
|
+
h: number;
|
|
23693
|
+
}
|
|
23694
|
+
/** A box on a shot, in its pixels. */
|
|
23695
|
+
interface CaptureBox {
|
|
23696
|
+
x: number;
|
|
23697
|
+
y: number;
|
|
23698
|
+
w: number;
|
|
23699
|
+
h: number;
|
|
23700
|
+
}
|
|
23701
|
+
/** The measures a capture knows (a subset of the tester's `metrics.json`; AD2's measures add to it). */
|
|
23702
|
+
interface CaptureMetrics {
|
|
23703
|
+
/** The header's box at load. */
|
|
23704
|
+
header?: CaptureBox;
|
|
23705
|
+
/** Boxes a measure flagged (an overlap, a lone word, a clipped line) — each one is cropped first. */
|
|
23706
|
+
flagged?: Array<{
|
|
23707
|
+
box: CaptureBox;
|
|
23708
|
+
view: CaptureView;
|
|
23709
|
+
why: string;
|
|
23710
|
+
}>;
|
|
23711
|
+
}
|
|
23712
|
+
interface CaptureSet {
|
|
23713
|
+
/** The page (`law-home`) or the reference (`graya-institute`). */
|
|
23714
|
+
name: string;
|
|
23715
|
+
shots: CaptureShot[];
|
|
23716
|
+
metrics?: Partial<Record<CaptureWidth, CaptureMetrics>>;
|
|
23717
|
+
}
|
|
23718
|
+
/** What a page or a reference is, to its capture source. */
|
|
23719
|
+
interface CaptureTarget {
|
|
23720
|
+
name: string;
|
|
23721
|
+
/** The address the source renders (iox-render), or the folder it reads (today). */
|
|
23722
|
+
at: string;
|
|
23723
|
+
}
|
|
23724
|
+
/** The one interface the sheet is built from. Today a folder reader; from AD2, `iox-render`. */
|
|
23725
|
+
interface CaptureSource {
|
|
23726
|
+
capture(target: CaptureTarget): Promise<CaptureSet>;
|
|
23727
|
+
}
|
|
23728
|
+
/**
|
|
23729
|
+
* Image tokens a vision model reads for a picture of w × h (ai-cost-plan, ai-designer-plan §6b): ⌈w/28⌉ × ⌈h/28⌉,
|
|
23730
|
+
* capped — a bigger picture is scaled down to the cap.
|
|
23731
|
+
*/
|
|
23732
|
+
declare const VISION_TOKEN_TILE = 28;
|
|
23733
|
+
declare const VISION_TOKEN_CAP = 4784;
|
|
23734
|
+
declare function visionImageTokens(w: number, h: number): number;
|
|
23735
|
+
/** A view of the sheet: the reference's shot and ours, at one width. */
|
|
23736
|
+
interface SheetPair {
|
|
23737
|
+
width: CaptureWidth;
|
|
23738
|
+
view: CaptureView;
|
|
23739
|
+
reference: CaptureShot;
|
|
23740
|
+
ours: CaptureShot;
|
|
23741
|
+
}
|
|
23742
|
+
/** A zoomed crop: the box on a shot, how much it is enlarged, and why it was chosen. `reference` crops the same place on
|
|
23743
|
+
* the reference's shot, for a side by side (a flagged defect of ours has none). */
|
|
23744
|
+
interface SheetCrop {
|
|
23745
|
+
width: CaptureWidth;
|
|
23746
|
+
view: CaptureView;
|
|
23747
|
+
why: string;
|
|
23748
|
+
ours: {
|
|
23749
|
+
ref: string;
|
|
23750
|
+
box: CaptureBox;
|
|
23751
|
+
};
|
|
23752
|
+
reference?: {
|
|
23753
|
+
ref: string;
|
|
23754
|
+
box: CaptureBox;
|
|
23755
|
+
};
|
|
23756
|
+
zoom: number;
|
|
23757
|
+
}
|
|
23758
|
+
interface CritiqueSheet {
|
|
23759
|
+
pairs: SheetPair[];
|
|
23760
|
+
crops: SheetCrop[];
|
|
23761
|
+
/** The views one side has and the other has not (`phone/footer: no reference shot`). */
|
|
23762
|
+
missing: string[];
|
|
23763
|
+
/** The image tokens the sheet costs a vision model (pairs, then each crop at its zoom). */
|
|
23764
|
+
imageTokens: number;
|
|
23765
|
+
/** Of those, the reference's views — the share read from the cache from round 2 (`CriticSheetLayout.Cached`). */
|
|
23766
|
+
referenceImageTokens: number;
|
|
23767
|
+
}
|
|
23768
|
+
/** Crops the sheet always looks at when the measures flagged fewer, as fractions of the shot (`box` in 0–1). */
|
|
23769
|
+
interface CropRecipe {
|
|
23770
|
+
width: CaptureWidth;
|
|
23771
|
+
view: CaptureView;
|
|
23772
|
+
box: CaptureBox;
|
|
23773
|
+
why: string;
|
|
23774
|
+
}
|
|
23775
|
+
declare const CRITIC_CROP_RECIPES: ReadonlyArray<CropRecipe>;
|
|
23776
|
+
declare const CRITIC_CROPS: {
|
|
23777
|
+
readonly min: 4;
|
|
23778
|
+
readonly max: 6;
|
|
23779
|
+
};
|
|
23780
|
+
/** Flagged boxes take at most this many crops (one per distinct finding — a clipped button repeated down the page is one),
|
|
23781
|
+
* so the recipes always keep the fewest (`CRITIC_CROPS.min`): a page with nine findings still shows its header and footer. */
|
|
23782
|
+
declare const CRITIC_FLAGGED_CROPS: number;
|
|
23783
|
+
/** A crop is enlarged until its long side fills a laptop view, at most this much. */
|
|
23784
|
+
declare const CRITIC_CROP_MAX_ZOOM = 2;
|
|
23785
|
+
/**
|
|
23786
|
+
* The sheet for one page against one reference: every view both sides have, laptop first, in `CAPTURE_VIEW_ORDER`; then
|
|
23787
|
+
* the crops — ours' flagged boxes first (distinct findings, at most `CRITIC_FLAGGED_CROPS`), then the recipes on both
|
|
23788
|
+
* sides, up to the most (the recipes alone give the fewest). The header recipe uses the measured header box when ours has one.
|
|
23789
|
+
*/
|
|
23790
|
+
declare function planCritiqueSheet(ours: CaptureSet, reference: CaptureSet): CritiqueSheet;
|
|
23791
|
+
|
|
23792
|
+
/**
|
|
23793
|
+
* THE CRITIC'S PROMPT (ai-designer-plan §2d, AD3, AD-D18, R-H22): the instructions (stable — cached across rounds) and one
|
|
23794
|
+
* round's turn. The rubric is the tester's own (`critic-rubric.generated.ts`, ported from `team/reference-score.md` §2),
|
|
23795
|
+
* so the critic and the tester score by the same words; the level rule is said in so many words: as good as the
|
|
23796
|
+
* reference, never like it. The turn carries the art direction, the reference's card, the sheet (the reference's views,
|
|
23797
|
+
* then ours under the same labels, then crops), the measures, the gate's findings and the last critique. The host turns the picture items into its transport's image
|
|
23798
|
+
* blocks (iox-cms: `AiContent`). Pure.
|
|
23799
|
+
*/
|
|
23800
|
+
/** A block of the instructions; the last stable one carries the cache mark (iox-cms `AiPromptPart`). */
|
|
23801
|
+
interface CriticPromptPart {
|
|
23802
|
+
text: string;
|
|
23803
|
+
cache?: boolean;
|
|
23804
|
+
}
|
|
23805
|
+
/** One item of the round's turn: words, a shot, or a zoomed crop of a shot (the host cuts and enlarges it). `cache` marks
|
|
23806
|
+
* the end of the turn's stable prefix (iox-cms: the block's cache mark). */
|
|
23807
|
+
declare enum CriticContentKind {
|
|
23808
|
+
Text = "text",
|
|
23809
|
+
Image = "image",
|
|
23810
|
+
Crop = "crop"
|
|
23811
|
+
}
|
|
23812
|
+
type CriticContent = {
|
|
23813
|
+
kind: CriticContentKind.Text;
|
|
23814
|
+
text: string;
|
|
23815
|
+
cache?: boolean;
|
|
23816
|
+
} | {
|
|
23817
|
+
kind: CriticContentKind.Image;
|
|
23818
|
+
ref: string;
|
|
23819
|
+
w: number;
|
|
23820
|
+
h: number;
|
|
23821
|
+
cache?: boolean;
|
|
23822
|
+
} | {
|
|
23823
|
+
kind: CriticContentKind.Crop;
|
|
23824
|
+
ref: string;
|
|
23825
|
+
box: CaptureBox;
|
|
23826
|
+
zoom: number;
|
|
23827
|
+
cache?: boolean;
|
|
23828
|
+
};
|
|
23829
|
+
/**
|
|
23830
|
+
* How the sheet's pairs are laid out in the turn.
|
|
23831
|
+
* - `Cached` (the default): the reference's shots first, every view labelled, ending in the cache mark; then ours under
|
|
23832
|
+
* the same labels. The reference does not change between rounds, so from round 2 it is read from the cache (§6b
|
|
23833
|
+
* prices it at the cache-hit rate) — a prefix only caches if nothing that changes comes before it.
|
|
23834
|
+
* - `Paired`: each view reference then ours, side by side in the turn; nothing after the instructions caches.
|
|
23835
|
+
* AD3 calibrates the layout AD4 will run, so the default is the cached one.
|
|
23836
|
+
*/
|
|
23837
|
+
declare enum CriticSheetLayout {
|
|
23838
|
+
Cached = "cached",
|
|
23839
|
+
Paired = "paired"
|
|
23840
|
+
}
|
|
23841
|
+
/** AD-D18, in the words the critic reads. */
|
|
23842
|
+
declare const CRITIC_LEVEL_RULE: string;
|
|
23843
|
+
/** The rubric as the critic reads it: each dimension with what it compares, then the headline and the polish rule. */
|
|
23844
|
+
declare function criticRubricText(): string;
|
|
23845
|
+
/** The instructions, stable across rounds and pages (the cache mark is on the last part). */
|
|
23846
|
+
declare function criticSystem(): CriticPromptPart[];
|
|
23847
|
+
interface CriticRoundInput {
|
|
23848
|
+
/** The page (`law-home`) and its language. */
|
|
23849
|
+
page: string;
|
|
23850
|
+
locale: string;
|
|
23851
|
+
/** The reference's name (`graya-institute`) and its card (team/reference-cards/<name>.md). */
|
|
23852
|
+
reference: string;
|
|
23853
|
+
referenceCard: string;
|
|
23854
|
+
/** The art direction the round works to (AD4); absent in calibration. */
|
|
23855
|
+
artDirection?: string;
|
|
23856
|
+
/** The measures, one line each (AD2's; the tester's metrics today). */
|
|
23857
|
+
measures?: ReadonlyArray<string>;
|
|
23858
|
+
/** The gate's findings, one line each. */
|
|
23859
|
+
gateFindings?: ReadonlyArray<string>;
|
|
23860
|
+
/** The last round's critique, when there was one. */
|
|
23861
|
+
lastCritique?: CriticAnswer;
|
|
23862
|
+
}
|
|
23863
|
+
/** One round's turn: the stable part (art direction, card, the reference's shots — cached), then the page, ours, the
|
|
23864
|
+
* crops, the measures, the gate's findings, the last critique. */
|
|
23865
|
+
declare function criticRoundContent(input: CriticRoundInput, sheet: CritiqueSheet, layout?: CriticSheetLayout): CriticContent[];
|
|
23866
|
+
|
|
23867
|
+
/**
|
|
23868
|
+
* THE CRITIC'S CALIBRATION (ai-designer-plan §7 AD3, R-H8, R-H22, AD-D3): the critic scores the 12 calibration pages
|
|
23869
|
+
* (6 proof pages + 6 J10 generated pages) and is compared with the tester's scores of the same pages. R-H8: every page's
|
|
23870
|
+
* design mean within 0.5 of the tester's, or AD4 does not start. AD-D3: if the cheaper critic lands within 0.3 of the
|
|
23871
|
+
* dearer one, a round's critic switches to it. R-H22: a near-copy of a reference's structure scores no higher than a
|
|
23872
|
+
* distinct page of equal craft. Cost per round from each answer's token counts (or the provider's own figure). Reads
|
|
23873
|
+
* RECORDED answers only — the run that records them is the host's (iox-cms); this file never calls a model. Pure.
|
|
23874
|
+
*/
|
|
23875
|
+
/** R-H8: the largest difference from the tester a page may show. */
|
|
23876
|
+
declare const CALIBRATION_MAX_ERROR = 0.5;
|
|
23877
|
+
/** AD-D3: how close the cheaper critic must stay to the dearer one for a round to switch to it. */
|
|
23878
|
+
declare const CRITIC_SWITCH_WITHIN = 0.3;
|
|
23879
|
+
declare enum CalibrationKind {
|
|
23880
|
+
/** A page of the designer-loop proof (law, hotel). */
|
|
23881
|
+
Proof = "proof",
|
|
23882
|
+
/** A page the generator built (J10). */
|
|
23883
|
+
Generated = "generated"
|
|
23884
|
+
}
|
|
23885
|
+
/** One calibration page and the tester's scores of it (team/runs/…). */
|
|
23886
|
+
interface CalibrationPage {
|
|
23887
|
+
id: string;
|
|
23888
|
+
kind: CalibrationKind;
|
|
23889
|
+
/** The reference it was scored against. */
|
|
23890
|
+
reference: string;
|
|
23891
|
+
tester: Record<CriticDimension, number>;
|
|
23892
|
+
/** The tester's headline as written (a cap included). */
|
|
23893
|
+
testerHeadline: number;
|
|
23894
|
+
}
|
|
23895
|
+
/** One critic answer as recorded: the page, the model asked, the parsed answer, what each attempt read and wrote. */
|
|
23896
|
+
interface RecordedCritique {
|
|
23897
|
+
pageId: string;
|
|
23898
|
+
model: string;
|
|
23899
|
+
answer: unknown;
|
|
23900
|
+
attempts: ReadonlyArray<{
|
|
23901
|
+
model: string;
|
|
23902
|
+
tokens: AiTokenCounts;
|
|
23903
|
+
}>;
|
|
23904
|
+
/** The provider's own figure (OpenRouter `usage.cost`), when it gave one. */
|
|
23905
|
+
reportedCostUsd?: number;
|
|
23906
|
+
}
|
|
23907
|
+
interface CalibrationRow {
|
|
23908
|
+
pageId: string;
|
|
23909
|
+
kind: CalibrationKind;
|
|
23910
|
+
issues: CriticIssue[];
|
|
23911
|
+
/** The critic's and the tester's design means (dimensions 1–7), and their difference (critic − tester). */
|
|
23912
|
+
criticMean: number | null;
|
|
23913
|
+
testerMean: number;
|
|
23914
|
+
error: number | null;
|
|
23915
|
+
/** Per dimension, critic − tester (polish included). */
|
|
23916
|
+
dimensionErrors: Partial<Record<CriticDimension, number>>;
|
|
23917
|
+
criticHeadline: number | null;
|
|
23918
|
+
testerHeadline: number;
|
|
23919
|
+
/** What the answer cost; null when neither the provider nor the price table could say. */
|
|
23920
|
+
costUsd: number | null;
|
|
23921
|
+
}
|
|
23922
|
+
interface ModelCalibration {
|
|
23923
|
+
model: string;
|
|
23924
|
+
rows: CalibrationRow[];
|
|
23925
|
+
/** Pages whose answer the gate refused (they count as misses). */
|
|
23926
|
+
invalid: number;
|
|
23927
|
+
/** Over the valid answers: the mean of |error| and the largest |error|. */
|
|
23928
|
+
meanError: number | null;
|
|
23929
|
+
maxError: number | null;
|
|
23930
|
+
/** R-H8: every calibration page answered, valid, and within `CALIBRATION_MAX_ERROR`. */
|
|
23931
|
+
passes: boolean;
|
|
23932
|
+
/** Per dimension, the mean critic − tester (a critic that is always kind on Motion shows here). */
|
|
23933
|
+
dimensionBias: Partial<Record<CriticDimension, number>>;
|
|
23934
|
+
costPerRoundUsd: number | null;
|
|
23935
|
+
totalCostUsd: number | null;
|
|
23936
|
+
}
|
|
23937
|
+
/** R-H22: a page that follows a reference's structure against a distinct page of equal craft. */
|
|
23938
|
+
interface LikenessProbe {
|
|
23939
|
+
copy: string;
|
|
23940
|
+
distinct: string;
|
|
23941
|
+
}
|
|
23942
|
+
interface CalibrationReport {
|
|
23943
|
+
models: ModelCalibration[];
|
|
23944
|
+
/** AD-D3: the cheaper critic against the dearer, page by page (absent unless both were asked). */
|
|
23945
|
+
agreement?: {
|
|
23946
|
+
dearer: string;
|
|
23947
|
+
cheaper: string;
|
|
23948
|
+
meanDifference: number | null;
|
|
23949
|
+
within: boolean;
|
|
23950
|
+
};
|
|
23951
|
+
/** R-H22, per model: the copy scored no higher than the distinct page. */
|
|
23952
|
+
likeness: Array<{
|
|
23953
|
+
model: string;
|
|
23954
|
+
copy: string;
|
|
23955
|
+
distinct: string;
|
|
23956
|
+
copyHeadline: number | null;
|
|
23957
|
+
distinctHeadline: number | null;
|
|
23958
|
+
passes: boolean;
|
|
23959
|
+
}>;
|
|
23960
|
+
}
|
|
23961
|
+
interface CalibrationOptions {
|
|
23962
|
+
/** The price of a model, per million tokens — null when unknown. */
|
|
23963
|
+
priceOf: (model: string) => AiTokenPrice | null;
|
|
23964
|
+
/** The dearer and the cheaper critic, for AD-D3 (`anthropic/claude-opus-5.5`, `anthropic/claude-sonnet-5.5`). */
|
|
23965
|
+
compare?: {
|
|
23966
|
+
dearer: string;
|
|
23967
|
+
cheaper: string;
|
|
23968
|
+
};
|
|
23969
|
+
likenessProbes?: ReadonlyArray<LikenessProbe>;
|
|
23970
|
+
}
|
|
23971
|
+
/** What one recorded answer cost: the provider's figure, else each attempt at its price; null when a price is missing. */
|
|
23972
|
+
declare function critiqueCostUsd(recorded: Pick<RecordedCritique, 'attempts' | 'reportedCostUsd'>, priceOf: CalibrationOptions['priceOf']): number | null;
|
|
23973
|
+
/** The calibration of every model that answered, the AD-D3 agreement and the R-H22 probes. */
|
|
23974
|
+
declare function calibrationReport(pages: ReadonlyArray<CalibrationPage>, answers: ReadonlyArray<RecordedCritique>, options: CalibrationOptions): CalibrationReport;
|
|
23975
|
+
|
|
23976
|
+
/**
|
|
23977
|
+
* THE STRUCTURAL FINGERPRINT (ai-designer-plan §2a′ point 3, AD-D19, R-H23–R-H25): what a page's STRUCTURE is — the
|
|
23978
|
+
* order of its sections, each read as a shape (its columns, its media, its repeated items, its held or moving part),
|
|
23979
|
+
* how it opens, how much of it is pictures, and its signature parts. No words, no colours, no styling: two pages with
|
|
23980
|
+
* one structure in two looks are the same structure.
|
|
23981
|
+
*
|
|
23982
|
+
* ONE reading for the three things a page can be, so they compare with each other:
|
|
23983
|
+
* - a plan page (premium-sites D9): its sections' D9 tokens (`sectionTokenOf`, `signatureOf`) — `structureOfLayoutPage`
|
|
23984
|
+
* — or a fingerprint the studio's memory already stores (`structureOfFingerprint`). D9 itself is unchanged.
|
|
23985
|
+
* - a free tree of ordinary ComponentNodes (the AI designer's page, a proof site, a composed page) —
|
|
23986
|
+
* `structureOfTree`, a section → shape classifier over the nodes' types, composite roles and layout styles.
|
|
23987
|
+
* - a reference, from its reading's "Body structure" (`architecture/ai/references/*.md`) — `structureOfReading`.
|
|
23988
|
+
* - a RENDERED page — a reference's own DOM, or one of ours — from iox-render's `structure.json` (`structureOfDom`):
|
|
23989
|
+
* the reader that lets the not-a-copy check judge a design against what the reference really is.
|
|
23990
|
+
*
|
|
23991
|
+
* Then `structureDistance` (0 = one structure, 1 = nothing shared), `designFreedomIssues` (a copy of the reference, a
|
|
23992
|
+
* repeat of the kind's recent builds) and `conceptsDistinct` (the three concepts, pairwise). The thresholds are named
|
|
23993
|
+
* and calibrated in structure-fingerprint.spec on the proof sites, their references and the J10 builds. Pure.
|
|
23994
|
+
*/
|
|
23995
|
+
/** What a section is, structurally. */
|
|
23996
|
+
declare enum SectionShape {
|
|
23997
|
+
/** Words alone, one column: a statement, a quote, a heading and a line. */
|
|
23998
|
+
Statement = "statement",
|
|
23999
|
+
/** A mixed section with no clearer shape (and every D9 `composition`). */
|
|
24000
|
+
Composition = "composition",
|
|
24001
|
+
/** A breath between sections. */
|
|
24002
|
+
Inhale = "inhale",
|
|
24003
|
+
/** A picture or a film that IS the section (at most a line of words). */
|
|
24004
|
+
Media = "media",
|
|
24005
|
+
/** Words over a picture that fills the section. */
|
|
24006
|
+
PhotoGround = "photo-ground",
|
|
24007
|
+
/** Two columns, one of them a picture. */
|
|
24008
|
+
Split = "split",
|
|
24009
|
+
/** Two or more columns of words (no repeated item). */
|
|
24010
|
+
Columns = "columns",
|
|
24011
|
+
/** Three or more repeated items side by side (cards, a product row, a gallery). */
|
|
24012
|
+
Grid = "grid",
|
|
24013
|
+
/** Repeated items one under another (rows, an accordion, tabs, a timeline, a table). */
|
|
24014
|
+
List = "list",
|
|
24015
|
+
/** A row that runs by itself. */
|
|
24016
|
+
Marquee = "marquee",
|
|
24017
|
+
/** A form. */
|
|
24018
|
+
Form = "form",
|
|
24019
|
+
/** A section held still while the page scrolls (a Scene, a sticky stage). */
|
|
24020
|
+
Held = "held",
|
|
24021
|
+
/** A held section carried sideways. */
|
|
24022
|
+
Sideways = "sideways"
|
|
24023
|
+
}
|
|
24024
|
+
/** A page's structure. `signatures`: the parts that make it (held, sideways, marquee, accordion, tabs, slider, cards,
|
|
24025
|
+
* a scene's moves), sorted, each once. `media`: the share of its sections that carry a picture. */
|
|
24026
|
+
interface StructureFingerprint {
|
|
24027
|
+
opening: SectionShape;
|
|
24028
|
+
shapes: SectionShape[];
|
|
24029
|
+
media: number;
|
|
24030
|
+
signatures: string[];
|
|
24031
|
+
/** Set when the structure was read from a RENDERED page (`structureOfDom`): the DOM sees only some signature parts
|
|
24032
|
+
* (`DOM_SIGNATURES`), so a distance with such a side compares those only. Absent for every other reader. */
|
|
24033
|
+
reader?: StructureReader;
|
|
24034
|
+
}
|
|
24035
|
+
/** Who read a structure, when it matters to a comparison. */
|
|
24036
|
+
declare enum StructureReader {
|
|
24037
|
+
Dom = "dom"
|
|
24038
|
+
}
|
|
24039
|
+
/** The signature parts, as they are named in `signatures`. */
|
|
24040
|
+
declare enum StructureSignature {
|
|
24041
|
+
Held = "held",
|
|
24042
|
+
Sideways = "sideways",
|
|
24043
|
+
Marquee = "marquee",
|
|
24044
|
+
Accordion = "accordion",
|
|
24045
|
+
Tabs = "tabs",
|
|
24046
|
+
Slider = "slider",
|
|
24047
|
+
Cards = "cards",
|
|
24048
|
+
Form = "form"
|
|
24049
|
+
}
|
|
24050
|
+
/** A fingerprint the memory stores (D9 `fingerprintOf`), as a structure. The opening is the first section's shape; the
|
|
24051
|
+
* media share counts the shapes that hold a picture (a D9 sequence does not say more). */
|
|
24052
|
+
declare function structureOfFingerprint(fp: Pick<LayoutFingerprint, 'sequence' | 'signature'>): StructureFingerprint;
|
|
24053
|
+
/** A model-laid plan page, through D9's own tokens. */
|
|
24054
|
+
declare function structureOfLayoutPage(page: LayoutPage): StructureFingerprint;
|
|
24055
|
+
/** One section of a tree: its shape and its signature parts. First match wins, the most telling first. */
|
|
24056
|
+
declare function sectionShapeOf(section: SerializedNode): {
|
|
24057
|
+
shape: SectionShape;
|
|
24058
|
+
signatures: string[];
|
|
24059
|
+
};
|
|
24060
|
+
/** A page of ordinary nodes (its top-level sections, globals aside), as a structure. */
|
|
24061
|
+
declare function structureOfTree(layout: ReadonlyArray<SerializedNode>): StructureFingerprint;
|
|
24062
|
+
/** A reading's words for a section → its shape. First match wins; the most telling first (`overview (photo + text)` is
|
|
24063
|
+
* a split before it is a photo). */
|
|
24064
|
+
declare const READING_SHAPES: ReadonlyArray<[RegExp, SectionShape]>;
|
|
24065
|
+
/** A reference's sections, in its reading's words, as a structure. */
|
|
24066
|
+
declare function structureOfReading(sections: ReadonlyArray<string>): StructureFingerprint;
|
|
24067
|
+
/** The version of iox-render's `structure.json` this reads (`iox-render/src/measures/structure.mjs`, `v`). */
|
|
24068
|
+
declare const DOM_STRUCTURE_VERSION = 1;
|
|
24069
|
+
/** A box in page pixels, at the capture's width. */
|
|
24070
|
+
interface DomBox {
|
|
24071
|
+
x: number;
|
|
24072
|
+
y: number;
|
|
24073
|
+
w: number;
|
|
24074
|
+
h: number;
|
|
24075
|
+
}
|
|
24076
|
+
/** One top-level section of a rendered page, as iox-render's `SECTION_STRUCTURE` reads it (`v: 1`). */
|
|
24077
|
+
interface DomStructureSection {
|
|
24078
|
+
index: number;
|
|
24079
|
+
tag: string;
|
|
24080
|
+
role: 'header' | 'footer' | 'section';
|
|
24081
|
+
box: DomBox;
|
|
24082
|
+
/** The most blocks laid side by side in one row. */
|
|
24083
|
+
columns: number;
|
|
24084
|
+
/** The longest run of like siblings (cards, rows, items) and how they run. */
|
|
24085
|
+
repeated: number;
|
|
24086
|
+
repeatedAxis: 'row' | 'column' | null;
|
|
24087
|
+
/** The share of the section's area under pictures (0…1). */
|
|
24088
|
+
mediaShare: number;
|
|
24089
|
+
/** How many pictures. */
|
|
24090
|
+
media: number;
|
|
24091
|
+
pictureBehindWords: boolean;
|
|
24092
|
+
/** A sticky stage (or a long section whose picture is sticky or fixed). */
|
|
24093
|
+
held: boolean;
|
|
24094
|
+
form: boolean;
|
|
24095
|
+
words: number;
|
|
24096
|
+
headings: number;
|
|
24097
|
+
}
|
|
24098
|
+
/** iox-render's `structure.json` (one width). */
|
|
24099
|
+
interface DomPageStructure {
|
|
24100
|
+
v: number;
|
|
24101
|
+
width: number;
|
|
24102
|
+
height: number;
|
|
24103
|
+
root: string;
|
|
24104
|
+
sections: DomStructureSection[];
|
|
24105
|
+
}
|
|
24106
|
+
/** The signature parts a rendered page shows: a held stage and a form. A marquee, an accordion, tabs, a slider, cards
|
|
24107
|
+
* or a Scene's moves are roles and tracks of nodes — a DOM measure never says them. */
|
|
24108
|
+
declare const DOM_SIGNATURES: ReadonlySet<string>;
|
|
24109
|
+
/** A `<header>` this short is the site's bar — a global in a tree, so not a section; a taller one holds the opening. */
|
|
24110
|
+
declare const DOM_HEADER_BAR_MAX_PX = 240;
|
|
24111
|
+
/** An empty band (no words, no picture, no heading) this short is a breath between sections. */
|
|
24112
|
+
declare const DOM_INHALE_MAX_PX = 360;
|
|
24113
|
+
/**
|
|
24114
|
+
* One section of a rendered page → its shape. The same shapes as `sectionShapeOf`, read from measures instead of nodes.
|
|
24115
|
+
* First match wins, the most telling first; it differs from the tree's order where the DOM is coarser:
|
|
24116
|
+
* - a picture behind words comes before a form and repeated items (a booking bar or a row of season pills over the
|
|
24117
|
+
* opening film is an opening over a picture; cards over one picture are a grid only ≥ 3 across, each headed);
|
|
24118
|
+
* - like siblings one under another are a list only with ≥ 40 words (three paragraphs of a text column are alike too);
|
|
24119
|
+
* - a "form" that is a player's controls (pictures ≥ half, at most a line of words) is the picture.
|
|
24120
|
+
* The DOM cannot tell a marquee, an accordion, tabs or a sideways walk from a row or a held stage: it never says them.
|
|
24121
|
+
*/
|
|
24122
|
+
declare function domSectionShapeOf(s: DomStructureSection): SectionShape;
|
|
24123
|
+
/**
|
|
24124
|
+
* A RENDERED page — a reference's own DOM, or one of ours — as a structure (AD-D19): iox-render's `structure.json`
|
|
24125
|
+
* (`v: 1`, one width; the laptop's compares with `structureOfTree`, which reads base styles). The media share is the
|
|
24126
|
+
* share of sections that hold a picture, as the tree's; the signatures are the two the DOM can see (held, form).
|
|
24127
|
+
* Throws on another version — a newer measure must be read on purpose, never guessed.
|
|
24128
|
+
*/
|
|
24129
|
+
declare function structureOfDom(page: DomPageStructure): StructureFingerprint;
|
|
24130
|
+
/** A reference read into fewer sections than this is too coarse to judge a copy by (a one-screen site, a canvas). */
|
|
24131
|
+
declare const MIN_REFERENCE_SECTIONS = 3;
|
|
24132
|
+
/**
|
|
24133
|
+
* A reference's structure for the not-a-copy check: its rendered DOM when iox-render captured one with at least
|
|
24134
|
+
* {@link MIN_REFERENCE_SECTIONS} sections — the DOM speaks the tree's language (the same page read both ways sits
|
|
24135
|
+
* 0.08–0.18 apart, under the copy line) — else its reading's "Body structure", else null (nothing to judge by).
|
|
24136
|
+
*/
|
|
24137
|
+
declare function structureOfReference(sources: {
|
|
24138
|
+
dom?: DomPageStructure | null;
|
|
24139
|
+
reading?: ReadonlyArray<string> | null;
|
|
24140
|
+
}): StructureFingerprint | null;
|
|
24141
|
+
/** How the parts of the distance weigh (they add to 1): the order of shapes leads. */
|
|
24142
|
+
declare const STRUCTURE_WEIGHTS: {
|
|
24143
|
+
readonly order: 0.55;
|
|
24144
|
+
readonly opening: 0.15;
|
|
24145
|
+
readonly length: 0.1;
|
|
24146
|
+
readonly media: 0.1;
|
|
24147
|
+
readonly signatures: 0.1;
|
|
24148
|
+
};
|
|
24149
|
+
/** How far apart two structures are: 0 = one structure, 1 = nothing shared. Symmetric. */
|
|
24150
|
+
declare function structureDistance(a: StructureFingerprint, b: StructureFingerprint): number;
|
|
24151
|
+
/**
|
|
24152
|
+
* AD-D19, calibrated (structure-fingerprint.spec, 2026-11-30):
|
|
24153
|
+
* - COPY: the four proof exports' designed pages sit 0.587–0.844 from their references' readings, so none is a copy;
|
|
24154
|
+
* a page laid in the reference's own order is 0, and with one section changed still under the line.
|
|
24155
|
+
* - REPEAT: J10 Homes of one kind sit 0.212 (law, Pro against Free) and 0.253 (store, Pro against the 11-23 build) —
|
|
24156
|
+
* repeats; law Home and law Services, two pages made with care on their own arrangements, sit 0.38 — distinct.
|
|
24157
|
+
* Reading against tree is the weak seam: a reading's words are coarser than a tree's nodes, so a tree that follows its
|
|
24158
|
+
* reference block for block still measures far (law Home against GRAYA, 0.663). The reference's own DOM
|
|
24159
|
+
* (`structureOfDom`) closes it on our side: the proof's law and hotel Homes, read as trees and as rendered pages, sit
|
|
24160
|
+
* 0.175 and 0.079 apart — under the copy line (spec "a rendered page") — while the proof's pages sit ≥ 0.317 from
|
|
24161
|
+
* every one of the 32 captured references (measured 2026-11-30, ai-designer-plan "structureOfDom + bucket store as
|
|
24162
|
+
* built"). GRAYA's DOM is itself coarse (its body is one 5,800 px block), so law Home still reads 0.659 from it.
|
|
24163
|
+
*/
|
|
24164
|
+
declare const FREEDOM_COPY_DISTANCE = 0.25;
|
|
24165
|
+
declare const FREEDOM_REPEAT_DISTANCE = 0.3;
|
|
24166
|
+
/** R-H24: the three concepts must sit at least this far apart, pairwise — farther than a repeat. */
|
|
24167
|
+
declare const CONCEPT_MIN_DISTANCE = 0.3;
|
|
24168
|
+
declare enum FreedomIssueCode {
|
|
24169
|
+
/** Too close to the reference's structure. */
|
|
24170
|
+
Copy = "copy",
|
|
24171
|
+
/** Too close to a recent build of the same kind. */
|
|
24172
|
+
Repeat = "repeat"
|
|
24173
|
+
}
|
|
24174
|
+
interface FreedomIssue {
|
|
24175
|
+
code: FreedomIssueCode;
|
|
24176
|
+
/** The reference or the build it is too close to. */
|
|
24177
|
+
of: string;
|
|
24178
|
+
distance: number;
|
|
24179
|
+
message: string;
|
|
24180
|
+
}
|
|
24181
|
+
interface NamedStructure {
|
|
24182
|
+
name: string;
|
|
24183
|
+
structure: StructureFingerprint;
|
|
24184
|
+
}
|
|
24185
|
+
/** R-H23: a page too close to its reference (a copy) or to its kind's recent builds (a repeat). Either caps the page like
|
|
24186
|
+
* a polish bug, and the next round's brief demands a structural change — the message says which (the caller's). */
|
|
24187
|
+
declare function designFreedomIssues(page: StructureFingerprint, context: {
|
|
24188
|
+
reference?: NamedStructure;
|
|
24189
|
+
recent?: ReadonlyArray<NamedStructure>;
|
|
24190
|
+
}): FreedomIssue[];
|
|
24191
|
+
/** R-H24: whether the concepts differ pairwise, and the closest pair. */
|
|
24192
|
+
declare function conceptsDistinct(concepts: ReadonlyArray<StructureFingerprint>): {
|
|
24193
|
+
distinct: boolean;
|
|
24194
|
+
closest: {
|
|
24195
|
+
a: number;
|
|
24196
|
+
b: number;
|
|
24197
|
+
distance: number;
|
|
24198
|
+
} | null;
|
|
24199
|
+
};
|
|
24200
|
+
|
|
24201
|
+
/** Where the lessons came from, and a hash of the list (a changed list is a new hash). */
|
|
24202
|
+
declare const DESIGNER_LESSONS_SOURCE: {
|
|
24203
|
+
readonly file: "architecture/ai/designer-lessons.json";
|
|
24204
|
+
readonly version: 1;
|
|
24205
|
+
readonly hash: "dc5ed400176b";
|
|
24206
|
+
};
|
|
24207
|
+
declare const DESIGNER_LESSONS_SEED: readonly [{
|
|
24208
|
+
readonly id: "release-drop-sizes";
|
|
24209
|
+
readonly rule: "Before any styling, release every palette drop size: Containers, Sections, Texts and LinkedContainers size to their content (no 200px min-height, no 10px padding, no 100% width on inline text, no default font), and set textAlign on every text in a centred block.";
|
|
24210
|
+
readonly kinds: readonly ["all"];
|
|
24211
|
+
readonly dimension: "polish";
|
|
24212
|
+
readonly evidence: {
|
|
24213
|
+
readonly build: "proof-law";
|
|
24214
|
+
readonly round: "1–2";
|
|
24215
|
+
readonly scoreBefore: 2;
|
|
24216
|
+
readonly scoreAfter: 5;
|
|
24217
|
+
readonly ref: "law HARNESS §4b-1; hotel §4 lesson 1";
|
|
24218
|
+
};
|
|
24219
|
+
readonly source: "critic";
|
|
24220
|
+
readonly weight: 1;
|
|
24221
|
+
readonly status: "approved";
|
|
24222
|
+
readonly retiresWith: "AD0 B-D1";
|
|
24223
|
+
}, {
|
|
24224
|
+
readonly id: "header-content-sized";
|
|
24225
|
+
readonly rule: "The header bar is content-sized: min-height auto, width auto, its margin the page's inset — a 100%-wide bar with margins scrolls the page sideways.";
|
|
24226
|
+
readonly kinds: readonly ["all"];
|
|
24227
|
+
readonly dimension: "header";
|
|
24228
|
+
readonly evidence: {
|
|
24229
|
+
readonly build: "proof-law";
|
|
24230
|
+
readonly round: "3";
|
|
24231
|
+
readonly scoreBefore: 4;
|
|
24232
|
+
readonly scoreAfter: 7;
|
|
24233
|
+
readonly ref: "law HARNESS §4b-2";
|
|
24234
|
+
};
|
|
24235
|
+
readonly source: "critic";
|
|
24236
|
+
readonly weight: 1;
|
|
24237
|
+
readonly status: "approved";
|
|
24238
|
+
}, {
|
|
24239
|
+
readonly id: "header-ink-follows-opening";
|
|
24240
|
+
readonly rule: "A header over a dark opening takes its ink from the ground (the nav's colour var(--iox-text) under an inverse opening); a dark header over a film reads as a mistake on the first screen.";
|
|
24241
|
+
readonly kinds: readonly ["all"];
|
|
24242
|
+
readonly dimension: "header";
|
|
24243
|
+
readonly evidence: {
|
|
24244
|
+
readonly build: "proof-hotel";
|
|
24245
|
+
readonly round: "3";
|
|
24246
|
+
readonly scoreBefore: 5.9;
|
|
24247
|
+
readonly scoreAfter: 6.4;
|
|
24248
|
+
readonly ref: "hotel HARNESS §4 lesson 4";
|
|
24249
|
+
};
|
|
24250
|
+
readonly source: "critic";
|
|
24251
|
+
readonly weight: 1;
|
|
24252
|
+
readonly status: "approved";
|
|
24253
|
+
}, {
|
|
24254
|
+
readonly id: "control-on-every-ground";
|
|
24255
|
+
readonly rule: "Every control works on every ground it can sit on: the menu button on the photo and on the bar, the drawer's copy of the call to action on the drawer's paper, text case set on the button's token, not only its label.";
|
|
24256
|
+
readonly kinds: readonly ["all"];
|
|
24257
|
+
readonly dimension: "header";
|
|
24258
|
+
readonly evidence: {
|
|
24259
|
+
readonly build: "proof-law";
|
|
24260
|
+
readonly round: "4–6";
|
|
24261
|
+
readonly scoreBefore: 6;
|
|
24262
|
+
readonly scoreAfter: 7;
|
|
24263
|
+
readonly ref: "law HARNESS §4b-8";
|
|
24264
|
+
};
|
|
24265
|
+
readonly source: "critic";
|
|
24266
|
+
readonly weight: 1;
|
|
24267
|
+
readonly status: "approved";
|
|
24268
|
+
}, {
|
|
24269
|
+
readonly id: "nav-lands-on-a-page";
|
|
24270
|
+
readonly rule: "Every nav word lands on a real page of its own and each route has one link: there are no anchors, so a section the nav names becomes a page or leaves the nav.";
|
|
24271
|
+
readonly kinds: readonly ["all"];
|
|
24272
|
+
readonly dimension: "header";
|
|
24273
|
+
readonly evidence: {
|
|
24274
|
+
readonly build: "proof-hotel";
|
|
24275
|
+
readonly round: "F1";
|
|
24276
|
+
readonly scoreBefore: 7.4;
|
|
24277
|
+
readonly scoreAfter: 7.5;
|
|
24278
|
+
readonly ref: "law HARNESS §4b-12; hotel §4 lesson 19";
|
|
24279
|
+
};
|
|
24280
|
+
readonly source: "tester";
|
|
24281
|
+
readonly weight: 2;
|
|
24282
|
+
readonly status: "approved";
|
|
24283
|
+
readonly retiresWith: "builder anchors (MISSING 28)";
|
|
24284
|
+
}, {
|
|
24285
|
+
readonly id: "legal-pages-first";
|
|
24286
|
+
readonly rule: "The legal pages exist before round 1, in the site's own design and every language — a privacy page as soon as a form asks for a person's details, an accessibility statement for an Israeli business, terms where there is a form or a shop — each marked as the template the owner replaces, and the footer's legal words are links to them.";
|
|
24287
|
+
readonly kinds: readonly ["all"];
|
|
24288
|
+
readonly dimension: "polish";
|
|
24289
|
+
readonly evidence: {
|
|
24290
|
+
readonly build: "proof-law";
|
|
24291
|
+
readonly round: "L1";
|
|
24292
|
+
readonly scoreBefore: 5;
|
|
24293
|
+
readonly scoreAfter: 7.9;
|
|
24294
|
+
readonly ref: "law HARNESS §4c-1; hotel §4 lessons 17–18";
|
|
24295
|
+
};
|
|
24296
|
+
readonly source: "tester";
|
|
24297
|
+
readonly weight: 2;
|
|
24298
|
+
readonly status: "approved";
|
|
24299
|
+
}, {
|
|
24300
|
+
readonly id: "alt-on-every-picture";
|
|
24301
|
+
readonly rule: "Every picture carries alt text that says what it shows, in each language; a picture stamped only for an effect has none, so do not stamp it.";
|
|
24302
|
+
readonly kinds: readonly ["all"];
|
|
24303
|
+
readonly dimension: "polish";
|
|
24304
|
+
readonly evidence: {
|
|
24305
|
+
readonly build: "proof-law";
|
|
24306
|
+
readonly round: "12";
|
|
24307
|
+
readonly scoreBefore: 7.6;
|
|
24308
|
+
readonly scoreAfter: 8.2;
|
|
24309
|
+
readonly ref: "law HARNESS §4c-2";
|
|
24310
|
+
};
|
|
24311
|
+
readonly source: "tester";
|
|
24312
|
+
readonly weight: 2;
|
|
24313
|
+
readonly status: "approved";
|
|
24314
|
+
}, {
|
|
24315
|
+
readonly id: "tokens-never-hex";
|
|
24316
|
+
readonly rule: "Paint with the look's tokens, never a hex: a colour the look lacks is a token edit, not a literal on a node.";
|
|
24317
|
+
readonly kinds: readonly ["all"];
|
|
24318
|
+
readonly dimension: "colour";
|
|
24319
|
+
readonly evidence: {
|
|
24320
|
+
readonly build: "proof-law";
|
|
24321
|
+
readonly round: "12";
|
|
24322
|
+
readonly scoreBefore: 7.6;
|
|
24323
|
+
readonly scoreAfter: 8.2;
|
|
24324
|
+
readonly ref: "law HARNESS §4c-3";
|
|
24325
|
+
};
|
|
24326
|
+
readonly source: "tester";
|
|
24327
|
+
readonly weight: 2;
|
|
24328
|
+
readonly status: "approved";
|
|
24329
|
+
}, {
|
|
24330
|
+
readonly id: "gate-every-round";
|
|
24331
|
+
readonly rule: "Run the publish gate (auditSite) before round 1 and after every round: 0 blocking and 0 asking in every language.";
|
|
24332
|
+
readonly kinds: readonly ["all"];
|
|
24333
|
+
readonly dimension: "polish";
|
|
24334
|
+
readonly evidence: {
|
|
24335
|
+
readonly build: "proof-law";
|
|
24336
|
+
readonly round: "12";
|
|
24337
|
+
readonly scoreBefore: 5;
|
|
24338
|
+
readonly scoreAfter: 8.2;
|
|
24339
|
+
readonly ref: "law HARNESS §4c-4";
|
|
24340
|
+
};
|
|
24341
|
+
readonly source: "tester";
|
|
24342
|
+
readonly weight: 2;
|
|
24343
|
+
readonly status: "approved";
|
|
24344
|
+
}, {
|
|
24345
|
+
readonly id: "tokens-finish-parts";
|
|
24346
|
+
readonly rule: "The look's tokens finish the platform's parts: fields (ground, radius, a 3:1 border, padding) and buttons (case, tracking, size) — otherwise a form looks like the browser's.";
|
|
24347
|
+
readonly kinds: readonly ["all"];
|
|
24348
|
+
readonly dimension: "polish";
|
|
24349
|
+
readonly evidence: {
|
|
24350
|
+
readonly build: "proof-law";
|
|
24351
|
+
readonly round: "C2";
|
|
24352
|
+
readonly scoreBefore: 6.5;
|
|
24353
|
+
readonly scoreAfter: 7.5;
|
|
24354
|
+
readonly ref: "law HARNESS §4b-9";
|
|
24355
|
+
};
|
|
24356
|
+
readonly source: "critic";
|
|
24357
|
+
readonly weight: 1;
|
|
24358
|
+
readonly status: "approved";
|
|
24359
|
+
}, {
|
|
24360
|
+
readonly id: "colour-has-a-job";
|
|
24361
|
+
readonly rule: "Colour has a job: one accent on small marks, colour photographs only where they mean something (people, the place), everything else in one family.";
|
|
24362
|
+
readonly kinds: readonly ["all"];
|
|
24363
|
+
readonly dimension: "colour";
|
|
24364
|
+
readonly evidence: {
|
|
24365
|
+
readonly build: "proof-law";
|
|
24366
|
+
readonly round: "4";
|
|
24367
|
+
readonly scoreBefore: 7;
|
|
24368
|
+
readonly scoreAfter: 8;
|
|
24369
|
+
readonly ref: "law HARNESS §4b-4";
|
|
24370
|
+
};
|
|
24371
|
+
readonly source: "critic";
|
|
24372
|
+
readonly weight: 1;
|
|
24373
|
+
readonly status: "approved";
|
|
24374
|
+
}, {
|
|
24375
|
+
readonly id: "picture-reads-at-size";
|
|
24376
|
+
readonly rule: "A picture must read at its rendered size: below about 100px show a face in a circle or one strong shape, never a document or a room; judge every picture at its real size, not on the sheet.";
|
|
24377
|
+
readonly kinds: readonly ["all"];
|
|
24378
|
+
readonly dimension: "imagery";
|
|
24379
|
+
readonly evidence: {
|
|
24380
|
+
readonly build: "proof-law";
|
|
24381
|
+
readonly round: "4";
|
|
24382
|
+
readonly scoreBefore: 6;
|
|
24383
|
+
readonly scoreAfter: 7;
|
|
24384
|
+
readonly ref: "law HARNESS §4b-3";
|
|
24385
|
+
};
|
|
24386
|
+
readonly source: "critic";
|
|
24387
|
+
readonly weight: 1;
|
|
24388
|
+
readonly status: "approved";
|
|
24389
|
+
}, {
|
|
24390
|
+
readonly id: "landscape-for-wide-frames";
|
|
24391
|
+
readonly rule: "A wide frame takes a landscape picture that fills it; a portrait in a 16:6 frame is half sky.";
|
|
24392
|
+
readonly kinds: readonly ["all"];
|
|
24393
|
+
readonly dimension: "imagery";
|
|
24394
|
+
readonly evidence: {
|
|
24395
|
+
readonly build: "proof-law";
|
|
24396
|
+
readonly round: "S3";
|
|
24397
|
+
readonly scoreBefore: 6.5;
|
|
24398
|
+
readonly scoreAfter: 8;
|
|
24399
|
+
readonly ref: "law HARNESS §4b-11";
|
|
24400
|
+
};
|
|
24401
|
+
readonly source: "critic";
|
|
24402
|
+
readonly weight: 1;
|
|
24403
|
+
readonly status: "approved";
|
|
24404
|
+
}, {
|
|
24405
|
+
readonly id: "phone-first-screen-picture";
|
|
24406
|
+
readonly rule: "On a page whose character is a place, the phone's first screen shows its picture (order it first from tablet down) with the title still on that screen; a phone opening with no picture reads as a document.";
|
|
24407
|
+
readonly kinds: readonly ["all"];
|
|
24408
|
+
readonly dimension: "imagery";
|
|
24409
|
+
readonly evidence: {
|
|
24410
|
+
readonly build: "proof-hotel";
|
|
24411
|
+
readonly round: "R2";
|
|
24412
|
+
readonly scoreBefore: 6.9;
|
|
24413
|
+
readonly scoreAfter: 7.2;
|
|
24414
|
+
readonly ref: "law HARNESS §4c-10; hotel §4 R2 + lesson 8";
|
|
24415
|
+
};
|
|
24416
|
+
readonly source: "tester";
|
|
24417
|
+
readonly weight: 2;
|
|
24418
|
+
readonly status: "approved";
|
|
24419
|
+
}, {
|
|
24420
|
+
readonly id: "depth-on-the-frame";
|
|
24421
|
+
readonly rule: "Depth goes on a frame that has room — never on a picture inside a clipped frame, never on a frame directly under words (it rides over them).";
|
|
24422
|
+
readonly kinds: readonly ["all"];
|
|
24423
|
+
readonly dimension: "imagery";
|
|
24424
|
+
readonly evidence: {
|
|
24425
|
+
readonly build: "proof-hotel";
|
|
24426
|
+
readonly round: "C2";
|
|
24427
|
+
readonly scoreBefore: 7;
|
|
24428
|
+
readonly scoreAfter: 7.2;
|
|
24429
|
+
readonly ref: "hotel HARNESS §4 lessons 3 + 9";
|
|
24430
|
+
};
|
|
24431
|
+
readonly source: "critic";
|
|
24432
|
+
readonly weight: 1;
|
|
24433
|
+
readonly status: "approved";
|
|
24434
|
+
}, {
|
|
24435
|
+
readonly id: "line-breaks-in-the-words";
|
|
24436
|
+
readonly rule: "Write the line breaks into the words: a non-breaking space between the last two words of every title and closing line, and on any pair that must stay whole; measure a centred sentence and set its max-width so the lines balance.";
|
|
24437
|
+
readonly kinds: readonly ["all"];
|
|
24438
|
+
readonly dimension: "type";
|
|
24439
|
+
readonly evidence: {
|
|
24440
|
+
readonly build: "proof-law";
|
|
24441
|
+
readonly round: "5, 10, S3";
|
|
24442
|
+
readonly scoreBefore: 7.5;
|
|
24443
|
+
readonly scoreAfter: 8.5;
|
|
24444
|
+
readonly ref: "law HARNESS §4b-5 + §4c-8";
|
|
24445
|
+
};
|
|
24446
|
+
readonly source: "tester";
|
|
24447
|
+
readonly weight: 2;
|
|
24448
|
+
readonly status: "approved";
|
|
24449
|
+
}, {
|
|
24450
|
+
readonly id: "two-line-display-titles";
|
|
24451
|
+
readonly rule: "Type makes a page read as this brand: titles in the display face at the reference's size, often in two lines with a lighter or italic second line; the palette's defaults read as a template.";
|
|
24452
|
+
readonly kinds: readonly ["all"];
|
|
24453
|
+
readonly dimension: "type";
|
|
24454
|
+
readonly evidence: {
|
|
24455
|
+
readonly build: "proof-hotel";
|
|
24456
|
+
readonly round: "2";
|
|
24457
|
+
readonly scoreBefore: 5;
|
|
24458
|
+
readonly scoreAfter: 5.9;
|
|
24459
|
+
readonly ref: "hotel HARNESS §4 round 2";
|
|
24460
|
+
};
|
|
24461
|
+
readonly source: "critic";
|
|
24462
|
+
readonly weight: 1;
|
|
24463
|
+
readonly status: "approved";
|
|
24464
|
+
}, {
|
|
24465
|
+
readonly id: "units-not-in-caps";
|
|
24466
|
+
readonly rule: "A unit is never set in caps (22 m², not 22 M²); numbers with their units go in the display face.";
|
|
24467
|
+
readonly kinds: readonly ["all"];
|
|
24468
|
+
readonly dimension: "type";
|
|
24469
|
+
readonly evidence: {
|
|
24470
|
+
readonly build: "proof-hotel";
|
|
24471
|
+
readonly round: "R3";
|
|
24472
|
+
readonly scoreBefore: 7.2;
|
|
24473
|
+
readonly scoreAfter: 7.6;
|
|
24474
|
+
readonly ref: "hotel HARNESS §4 lesson 13";
|
|
24475
|
+
};
|
|
24476
|
+
readonly source: "critic";
|
|
24477
|
+
readonly weight: 1;
|
|
24478
|
+
readonly status: "approved";
|
|
24479
|
+
}, {
|
|
24480
|
+
readonly id: "named-parts-first";
|
|
24481
|
+
readonly rule: "Build the parts the owner named as real parts first (a switch is Tabs, a booking is a Form, a footer field is a Form); a part that looks interactive and does nothing costs more than a missing one.";
|
|
24482
|
+
readonly kinds: readonly ["all"];
|
|
24483
|
+
readonly dimension: "composition";
|
|
24484
|
+
readonly evidence: {
|
|
24485
|
+
readonly build: "proof-hotel";
|
|
24486
|
+
readonly round: "4";
|
|
24487
|
+
readonly scoreBefore: 6.4;
|
|
24488
|
+
readonly scoreAfter: 6.9;
|
|
24489
|
+
readonly ref: "hotel HARNESS §4 lesson 5";
|
|
24490
|
+
};
|
|
24491
|
+
readonly source: "critic";
|
|
24492
|
+
readonly weight: 1;
|
|
24493
|
+
readonly status: "approved";
|
|
24494
|
+
}, {
|
|
24495
|
+
readonly id: "end-on-the-ask";
|
|
24496
|
+
readonly rule: "A page that sells ends on its ask — the form or the booking in the site's own form language — not on two buttons.";
|
|
24497
|
+
readonly kinds: readonly ["all"];
|
|
24498
|
+
readonly dimension: "composition";
|
|
24499
|
+
readonly evidence: {
|
|
24500
|
+
readonly build: "proof-hotel";
|
|
24501
|
+
readonly round: "5";
|
|
24502
|
+
readonly scoreBefore: 6.9;
|
|
24503
|
+
readonly scoreAfter: 7.1;
|
|
24504
|
+
readonly ref: "hotel HARNESS §4 round 5";
|
|
24505
|
+
};
|
|
24506
|
+
readonly source: "critic";
|
|
24507
|
+
readonly weight: 1;
|
|
24508
|
+
readonly status: "approved";
|
|
24509
|
+
}, {
|
|
24510
|
+
readonly id: "opening-in-one-screen";
|
|
24511
|
+
readonly rule: "Fit the opening in one screen at 1440×900, header and tallest column included: an index or a list of facts in the opening goes into a row under it.";
|
|
24512
|
+
readonly kinds: readonly ["all"];
|
|
24513
|
+
readonly dimension: "composition";
|
|
24514
|
+
readonly evidence: {
|
|
24515
|
+
readonly build: "proof-hotel";
|
|
24516
|
+
readonly round: "R3";
|
|
24517
|
+
readonly scoreBefore: 7.2;
|
|
24518
|
+
readonly scoreAfter: 7.6;
|
|
24519
|
+
readonly ref: "hotel HARNESS §4 lesson 8";
|
|
24520
|
+
};
|
|
24521
|
+
readonly source: "critic";
|
|
24522
|
+
readonly weight: 1;
|
|
24523
|
+
readonly status: "approved";
|
|
24524
|
+
}, {
|
|
24525
|
+
readonly id: "screen-budget-own-arrangements";
|
|
24526
|
+
readonly rule: "An inner page stays within 8 laptop screens, and each repeated item (a practice, a room) gets its own arrangement — four items on one skeleton read as one block four times.";
|
|
24527
|
+
readonly kinds: readonly ["all"];
|
|
24528
|
+
readonly dimension: "composition";
|
|
24529
|
+
readonly evidence: {
|
|
24530
|
+
readonly build: "proof-law";
|
|
24531
|
+
readonly round: "S4–S5";
|
|
24532
|
+
readonly scoreBefore: 7;
|
|
24533
|
+
readonly scoreAfter: 8.5;
|
|
24534
|
+
readonly ref: "law HARNESS §4c-5";
|
|
24535
|
+
};
|
|
24536
|
+
readonly source: "tester";
|
|
24537
|
+
readonly weight: 2;
|
|
24538
|
+
readonly status: "approved";
|
|
24539
|
+
}, {
|
|
24540
|
+
readonly id: "one-scroll-moment";
|
|
24541
|
+
readonly rule: "Give every page one signature scroll moment (a Scene, or a line lit word by word as the scroll carries it) and prove it moves at three scroll positions; it moves Motion more than any number of entrances.";
|
|
24542
|
+
readonly kinds: readonly ["all"];
|
|
24543
|
+
readonly dimension: "motion";
|
|
24544
|
+
readonly evidence: {
|
|
24545
|
+
readonly build: "proof-law";
|
|
24546
|
+
readonly round: "C4–C5";
|
|
24547
|
+
readonly scoreBefore: 7;
|
|
24548
|
+
readonly scoreAfter: 8.5;
|
|
24549
|
+
readonly ref: "law HARNESS §4c-9; hotel §4 round 7 + lesson 7";
|
|
24550
|
+
};
|
|
24551
|
+
readonly source: "tester";
|
|
24552
|
+
readonly weight: 2;
|
|
24553
|
+
readonly status: "approved";
|
|
24554
|
+
}, {
|
|
24555
|
+
readonly id: "scene-length-and-beats";
|
|
24556
|
+
readonly rule: "A Scene has a beat for its whole length (add a second beat or shorten it if a move ends at half the travel), starts on its final ground, opens its window from about 55%, and on the phone is only as long as what moves there (≤ 2 screens; stacked halves give up their flex share).";
|
|
24557
|
+
readonly kinds: readonly ["all"];
|
|
24558
|
+
readonly dimension: "motion";
|
|
24559
|
+
readonly evidence: {
|
|
24560
|
+
readonly build: "proof-hotel";
|
|
24561
|
+
readonly round: "F3";
|
|
24562
|
+
readonly scoreBefore: 7.5;
|
|
24563
|
+
readonly scoreAfter: 8.1;
|
|
24564
|
+
readonly ref: "law HARNESS §4b-6 + §4c-6; hotel §4 lesson 20";
|
|
24565
|
+
};
|
|
24566
|
+
readonly source: "tester";
|
|
24567
|
+
readonly weight: 2;
|
|
24568
|
+
readonly status: "approved";
|
|
24569
|
+
}, {
|
|
24570
|
+
readonly id: "sticky-stage-below-header";
|
|
24571
|
+
readonly rule: "Everything inside a sticky stage starts below the header bar (at least 128px on a laptop, 104px on a phone).";
|
|
24572
|
+
readonly kinds: readonly ["all"];
|
|
24573
|
+
readonly dimension: "polish";
|
|
24574
|
+
readonly evidence: {
|
|
24575
|
+
readonly build: "proof-law";
|
|
24576
|
+
readonly round: "S2";
|
|
24577
|
+
readonly scoreBefore: 7.6;
|
|
24578
|
+
readonly scoreAfter: 7.8;
|
|
24579
|
+
readonly ref: "law HARNESS §4b-7";
|
|
24580
|
+
};
|
|
24581
|
+
readonly source: "critic";
|
|
24582
|
+
readonly weight: 1;
|
|
24583
|
+
readonly status: "approved";
|
|
24584
|
+
}, {
|
|
24585
|
+
readonly id: "one-entrance-per-container";
|
|
24586
|
+
readonly rule: "One entrance per container and never two entrance actions on one element: either the column rises or its words stagger in, with shrinking delays (0, 70, 120, 150 ms).";
|
|
24587
|
+
readonly kinds: readonly ["all"];
|
|
24588
|
+
readonly dimension: "motion";
|
|
24589
|
+
readonly evidence: {
|
|
24590
|
+
readonly build: "proof-hotel";
|
|
24591
|
+
readonly round: "E1";
|
|
24592
|
+
readonly scoreBefore: 7.75;
|
|
24593
|
+
readonly scoreAfter: 7.75;
|
|
24594
|
+
readonly ref: "hotel HARNESS §4 lesson 2 (iox-ui#199)";
|
|
24595
|
+
};
|
|
24596
|
+
readonly source: "critic";
|
|
24597
|
+
readonly weight: 1;
|
|
24598
|
+
readonly status: "approved";
|
|
24599
|
+
}, {
|
|
24600
|
+
readonly id: "emil-motion";
|
|
24601
|
+
readonly rule: "Motion by Emil's rules: hover and transitions on transform and opacity only, never transition all, no animated colour on a switch, entrances under 0.9 s, hover zoom under 0.9 s, press 0.97 on the press-scale token.";
|
|
24602
|
+
readonly kinds: readonly ["all"];
|
|
24603
|
+
readonly dimension: "motion";
|
|
24604
|
+
readonly evidence: {
|
|
24605
|
+
readonly build: "proof-law";
|
|
24606
|
+
readonly round: "11–12";
|
|
24607
|
+
readonly scoreBefore: 8.1;
|
|
24608
|
+
readonly scoreAfter: 8.1;
|
|
24609
|
+
readonly ref: "law HARNESS §4b-13; hotel §4 lesson 16";
|
|
24610
|
+
};
|
|
24611
|
+
readonly source: "critic";
|
|
24612
|
+
readonly weight: 1;
|
|
24613
|
+
readonly status: "approved";
|
|
24614
|
+
}, {
|
|
24615
|
+
readonly id: "film-inset-under-header";
|
|
24616
|
+
readonly rule: "A film behind an over-header is inset to the frame line (a blurred still of it around) and nothing sits on its top-end corner, where its pause button lives.";
|
|
24617
|
+
readonly kinds: readonly ["all"];
|
|
24618
|
+
readonly dimension: "polish";
|
|
24619
|
+
readonly evidence: {
|
|
24620
|
+
readonly build: "proof-hotel";
|
|
24621
|
+
readonly round: "E1";
|
|
24622
|
+
readonly scoreBefore: 7.75;
|
|
24623
|
+
readonly scoreAfter: 7.75;
|
|
24624
|
+
readonly ref: "hotel HARNESS §4 lesson 15 (iox-ui#198)";
|
|
24625
|
+
};
|
|
24626
|
+
readonly source: "critic";
|
|
24627
|
+
readonly weight: 1;
|
|
24628
|
+
readonly status: "approved";
|
|
24629
|
+
}, {
|
|
24630
|
+
readonly id: "overlap-box-not-stretched";
|
|
24631
|
+
readonly rule: "A box holding an absolutely placed overlap must not stretch to its grid row (align it to the centre, height auto), or the overlap hangs off the stretched box instead of the picture's corner.";
|
|
24632
|
+
readonly kinds: readonly ["all"];
|
|
24633
|
+
readonly dimension: "polish";
|
|
24634
|
+
readonly evidence: {
|
|
24635
|
+
readonly build: "proof-hotel";
|
|
24636
|
+
readonly round: "R3";
|
|
24637
|
+
readonly scoreBefore: 7.2;
|
|
24638
|
+
readonly scoreAfter: 7.6;
|
|
24639
|
+
readonly ref: "hotel HARNESS §4 lesson 10";
|
|
24640
|
+
};
|
|
24641
|
+
readonly source: "critic";
|
|
24642
|
+
readonly weight: 1;
|
|
24643
|
+
readonly status: "approved";
|
|
24644
|
+
}, {
|
|
24645
|
+
readonly id: "footer-name-by-its-ink";
|
|
24646
|
+
readonly rule: "The footer's name has its own phone size, measured by its ink, not its box (about 24vw fills 94% of a 390px phone's content width).";
|
|
24647
|
+
readonly kinds: readonly ["all"];
|
|
24648
|
+
readonly dimension: "footer";
|
|
24649
|
+
readonly evidence: {
|
|
24650
|
+
readonly build: "proof-law";
|
|
24651
|
+
readonly round: "13";
|
|
24652
|
+
readonly scoreBefore: 7.6;
|
|
24653
|
+
readonly scoreAfter: 8.2;
|
|
24654
|
+
readonly ref: "law HARNESS §4c-7";
|
|
24655
|
+
};
|
|
24656
|
+
readonly source: "tester";
|
|
24657
|
+
readonly weight: 2;
|
|
24658
|
+
readonly status: "approved";
|
|
24659
|
+
}, {
|
|
24660
|
+
readonly id: "real-social-addresses";
|
|
24661
|
+
readonly rule: "A social link is the business's real address (a test address on a test studio), never the network's home page.";
|
|
24662
|
+
readonly kinds: readonly ["all"];
|
|
24663
|
+
readonly dimension: "footer";
|
|
24664
|
+
readonly evidence: {
|
|
24665
|
+
readonly build: "proof-hotel";
|
|
24666
|
+
readonly round: "F2";
|
|
24667
|
+
readonly scoreBefore: 7.5;
|
|
24668
|
+
readonly scoreAfter: 7.6;
|
|
24669
|
+
readonly ref: "hotel HARNESS §4 lesson 19";
|
|
24670
|
+
};
|
|
24671
|
+
readonly source: "tester";
|
|
24672
|
+
readonly weight: 2;
|
|
24673
|
+
readonly status: "approved";
|
|
24674
|
+
}, {
|
|
24675
|
+
readonly id: "hebrew-type";
|
|
24676
|
+
readonly rule: "In Hebrew: a Hebrew display face as a token choice, no italic, tracking at most 0.06em, nothing under 13px, and sizes about 15% smaller where a line must stay single.";
|
|
24677
|
+
readonly kinds: readonly ["all"];
|
|
24678
|
+
readonly locales: readonly ["he"];
|
|
24679
|
+
readonly dimension: "type";
|
|
24680
|
+
readonly evidence: {
|
|
24681
|
+
readonly build: "proof-law";
|
|
24682
|
+
readonly round: "7-he";
|
|
24683
|
+
readonly scoreBefore: 6.5;
|
|
24684
|
+
readonly scoreAfter: 8;
|
|
24685
|
+
readonly ref: "law HARNESS §4b-10; hotel §4 lesson 6";
|
|
24686
|
+
};
|
|
24687
|
+
readonly source: "critic";
|
|
24688
|
+
readonly weight: 1;
|
|
24689
|
+
readonly status: "approved";
|
|
24690
|
+
}, {
|
|
24691
|
+
readonly id: "hebrew-number-runs";
|
|
24692
|
+
readonly rule: "In Hebrew, isolate every number run (hours, phone, counters) so it reads left to right inside the line.";
|
|
24693
|
+
readonly kinds: readonly ["all"];
|
|
24694
|
+
readonly locales: readonly ["he"];
|
|
24695
|
+
readonly dimension: "type";
|
|
24696
|
+
readonly evidence: {
|
|
24697
|
+
readonly build: "proof-hotel";
|
|
24698
|
+
readonly round: "10-he";
|
|
24699
|
+
readonly scoreBefore: 7;
|
|
24700
|
+
readonly scoreAfter: 7.6;
|
|
24701
|
+
readonly ref: "hotel HARNESS §4 round 10-he + lesson 6";
|
|
24702
|
+
};
|
|
24703
|
+
readonly source: "critic";
|
|
24704
|
+
readonly weight: 1;
|
|
24705
|
+
readonly status: "approved";
|
|
24706
|
+
}, {
|
|
24707
|
+
readonly id: "hebrew-both-edges";
|
|
24708
|
+
readonly rule: "Positioned boxes set both edges and align to the start; Scene x tracks and flex order mirror by themselves — never flip them by hand.";
|
|
24709
|
+
readonly kinds: readonly ["all"];
|
|
24710
|
+
readonly locales: readonly ["he"];
|
|
24711
|
+
readonly dimension: "polish";
|
|
24712
|
+
readonly evidence: {
|
|
24713
|
+
readonly build: "proof-hotel";
|
|
24714
|
+
readonly round: "C3-he";
|
|
24715
|
+
readonly scoreBefore: 7;
|
|
24716
|
+
readonly scoreAfter: 7.2;
|
|
24717
|
+
readonly ref: "law HARNESS §4b-10; hotel §4 lesson 11";
|
|
24718
|
+
};
|
|
24719
|
+
readonly source: "critic";
|
|
24720
|
+
readonly weight: 1;
|
|
24721
|
+
readonly status: "approved";
|
|
24722
|
+
}, {
|
|
24723
|
+
readonly id: "translate-whole-titles";
|
|
24724
|
+
readonly rule: "Translate per language, not per node: two-line titles whole, the non-breaking space on the pair that must stay whole in that language, Latin strings (email, web address) in the body face.";
|
|
24725
|
+
readonly kinds: readonly ["all"];
|
|
24726
|
+
readonly locales: readonly ["he"];
|
|
24727
|
+
readonly dimension: "type";
|
|
24728
|
+
readonly evidence: {
|
|
24729
|
+
readonly build: "proof-hotel";
|
|
24730
|
+
readonly round: "R3-he";
|
|
24731
|
+
readonly scoreBefore: 7.2;
|
|
24732
|
+
readonly scoreAfter: 7.4;
|
|
24733
|
+
readonly ref: "hotel HARNESS §4 lesson 12";
|
|
24734
|
+
};
|
|
24735
|
+
readonly source: "critic";
|
|
24736
|
+
readonly weight: 1;
|
|
24737
|
+
readonly status: "approved";
|
|
24738
|
+
}];
|
|
24739
|
+
|
|
24740
|
+
/**
|
|
24741
|
+
* THE AI DESIGNER'S DIRECTION (ai-designer-plan §2a, §2a′, AD-D17, AD-D19, AD-D20, R-H24): two strict answers, both before
|
|
24742
|
+
* anything renders.
|
|
24743
|
+
* - THE CONCEPTS (`designerConceptsSchema`): three directions for the site, each a name, one sentence, a signature move and
|
|
24744
|
+
* a PLANNED structure (the Home's sections as `SectionShape`s) — so `conceptsDistinct` and `designFreedomIssues` judge
|
|
24745
|
+
* them before a sketch is paid for — and the designer's own pick with its reason ("You decide", board Q3).
|
|
24746
|
+
* - THE ART DIRECTION (`designerDirectionSchema`): the ten lines of hotel HARNESS §2 for the chosen concept — the one sentence,
|
|
24747
|
+
* the signature, the grounds in order, the four type roles, the opening, the header, the named parts, the motion
|
|
24748
|
+
* vocabulary, the picture families with their mood words, and what NOT to copy. Stored with the build, shown to the
|
|
24749
|
+
* owner as "the direction". (Named `DesignerDirection`, not "art direction": `art-direction.ts` is the PICTURE world —
|
|
24750
|
+
* the preamble every generated picture opens with — and stays so; line 9's mood words feed the stock search beside it.)
|
|
24751
|
+
* Each schema is one strict request inside `STRICT_SCHEMA_BUDGET`; the checks are this file's, never the model's. Pure.
|
|
24752
|
+
*/
|
|
24753
|
+
/** Three concepts (§2a′ point 4). */
|
|
24754
|
+
declare const DESIGNER_CONCEPTS = 3;
|
|
24755
|
+
/** A planned Home: this many sections, at least and at most (the references' Homes run 5–16). */
|
|
24756
|
+
declare const CONCEPT_SECTIONS: {
|
|
24757
|
+
readonly min: 4;
|
|
24758
|
+
readonly max: 12;
|
|
24759
|
+
};
|
|
24760
|
+
/** The art direction's named parts (§2a line 7) and picture families (line 9). */
|
|
24761
|
+
declare const DIRECTION_NAMED_PARTS: {
|
|
24762
|
+
readonly min: 2;
|
|
24763
|
+
readonly max: 3;
|
|
24764
|
+
};
|
|
24765
|
+
declare const DIRECTION_PICTURE_FAMILIES: {
|
|
24766
|
+
readonly min: 2;
|
|
24767
|
+
readonly max: 6;
|
|
24768
|
+
};
|
|
24769
|
+
declare const DESIGNER_CONCEPTS_OUTPUT_NAME = "concepts";
|
|
24770
|
+
declare const DESIGNER_DIRECTION_OUTPUT_NAME = "design_direction";
|
|
24771
|
+
interface DesignerConcept {
|
|
24772
|
+
name: string;
|
|
24773
|
+
/** One sentence: what the site feels like. */
|
|
24774
|
+
sentence: string;
|
|
24775
|
+
/** The one move people remember. */
|
|
24776
|
+
signature: string;
|
|
24777
|
+
/** The Home's sections, in order, as shapes. */
|
|
24778
|
+
structure: SectionShape[];
|
|
24779
|
+
}
|
|
24780
|
+
interface DesignerConcepts {
|
|
24781
|
+
concepts: DesignerConcept[];
|
|
24782
|
+
/** "You decide": the designer's own pick (an index into `concepts`) and why, in one line. */
|
|
24783
|
+
pick: {
|
|
24784
|
+
concept: number;
|
|
24785
|
+
reason: string;
|
|
24786
|
+
};
|
|
24787
|
+
}
|
|
24788
|
+
declare function designerConceptsSchema(): JsonSchema;
|
|
24789
|
+
/** A planned structure (a concept's shapes) as a fingerprint, read as a reading's words are (the media share is the
|
|
24790
|
+
* share of picture shapes) — comparable with built pages, stored builds and references (structure-fingerprint). */
|
|
24791
|
+
declare function plannedStructure(shapes: ReadonlyArray<SectionShape>): StructureFingerprint;
|
|
24792
|
+
declare enum DirectionIssueCode {
|
|
24793
|
+
Shape = "shape",
|
|
24794
|
+
/** Not three concepts, a section count out of range, an unknown shape. */
|
|
24795
|
+
Count = "count",
|
|
24796
|
+
/** Two concepts with one name or one signature move. */
|
|
24797
|
+
Same = "same",
|
|
24798
|
+
/** R-H24: two concepts on one structure (`conceptsDistinct`). */
|
|
24799
|
+
NotDistinct = "not-distinct",
|
|
24800
|
+
/** AD-D19: a concept that copies the reference or repeats the kind's recent builds (`designFreedomIssues`). */
|
|
24801
|
+
Freedom = "freedom",
|
|
24802
|
+
/** The pick is not one of the concepts, or has no reason. */
|
|
24803
|
+
Pick = "pick"
|
|
24804
|
+
}
|
|
24805
|
+
type DirectionIssue = PathIssue<DirectionIssueCode> & {
|
|
24806
|
+
freedom?: FreedomIssue;
|
|
24807
|
+
};
|
|
24808
|
+
/**
|
|
24809
|
+
* The concepts, judged before a sketch is paid for: three, each a name, a sentence, a signature and a planned Home of
|
|
24810
|
+
* 4–12 known shapes; no two with one name or one signature; pairwise distinct in structure (R-H24); none a copy of the
|
|
24811
|
+
* reference nor a repeat of the kind's recent builds (AD-D19); the pick one of them, with a reason.
|
|
24812
|
+
*/
|
|
24813
|
+
declare function conceptsIssues(answer: unknown, context?: {
|
|
24814
|
+
reference?: NamedStructure;
|
|
24815
|
+
recent?: ReadonlyArray<NamedStructure>;
|
|
24816
|
+
}): DirectionIssue[];
|
|
24817
|
+
/** The four type roles (§2a line 4). */
|
|
24818
|
+
declare enum DirectionTypeRole {
|
|
24819
|
+
Display = "display",
|
|
24820
|
+
Headings = "headings",
|
|
24821
|
+
Body = "body",
|
|
24822
|
+
Labels = "labels"
|
|
24823
|
+
}
|
|
24824
|
+
interface DesignerDirection {
|
|
24825
|
+
/** 1. Why the owner picked the references — the feeling, in one sentence. */
|
|
24826
|
+
sentence: string;
|
|
24827
|
+
/** 2. The one move people remember. */
|
|
24828
|
+
signature: string;
|
|
24829
|
+
/** 3. The grounds of the Home's sections, in order (`cream`, `dark`, `photo`…). */
|
|
24830
|
+
grounds: string[];
|
|
24831
|
+
/** 4. The four type roles: the face, the size, where it is used. */
|
|
24832
|
+
type: Record<DirectionTypeRole, string>;
|
|
24833
|
+
/** 5. What fills the first screen, where the words sit, what moves on load. */
|
|
24834
|
+
opening: string;
|
|
24835
|
+
/** 6. The header at rest, scrolled, and on the phone. */
|
|
24836
|
+
header: {
|
|
24837
|
+
rest: string;
|
|
24838
|
+
scrolled: string;
|
|
24839
|
+
phone: string;
|
|
24840
|
+
};
|
|
24841
|
+
/** 7. The 2–3 parts the owner named, built first. */
|
|
24842
|
+
parts: string[];
|
|
24843
|
+
/** 8. The ONE curve, the entrance, the scroll moment, the hover. */
|
|
24844
|
+
motion: {
|
|
24845
|
+
curve: string;
|
|
24846
|
+
entrance: string;
|
|
24847
|
+
scroll: string;
|
|
24848
|
+
hover: string;
|
|
24849
|
+
};
|
|
24850
|
+
/** 9. Picture families and their mood words (they drive the stock search). */
|
|
24851
|
+
pictures: Array<{
|
|
24852
|
+
family: string;
|
|
24853
|
+
mood: string;
|
|
24854
|
+
}>;
|
|
24855
|
+
/** 10. What NOT to copy from the references: their facts, their places — this business's own instead. */
|
|
24856
|
+
notToCopy: string;
|
|
24857
|
+
}
|
|
24858
|
+
declare function designerDirectionSchema(): JsonSchema;
|
|
24859
|
+
declare enum DesignerDirectionIssueCode {
|
|
24860
|
+
Shape = "shape",
|
|
24861
|
+
Empty = "empty",
|
|
24862
|
+
Count = "count",
|
|
24863
|
+
/** A motion line that animates something other than transform / opacity (Emil, §2f). */
|
|
24864
|
+
Motion = "motion"
|
|
24865
|
+
}
|
|
24866
|
+
type DesignerDirectionIssue = PathIssue<DesignerDirectionIssueCode>;
|
|
24867
|
+
/** The ten lines, judged: every line filled, the counts held, the motion on transform and opacity only. */
|
|
24868
|
+
declare function designerDirectionIssues(answer: unknown): DesignerDirectionIssue[];
|
|
24869
|
+
|
|
24870
|
+
/**
|
|
24871
|
+
* THE STOP RULE (ai-designer-plan §2g, AD-D6, R-H10), as code. A page stops at the first of:
|
|
24872
|
+
* 1. DONE — the calibrated mean ≥ 8, no dimension under 7.5, nothing capping it (a broken bug, a copy, a repeat), the
|
|
24873
|
+
* gate 0 blocking / 0 asking;
|
|
24874
|
+
* 2. FLAT — two rounds in a row that moved the score less than +0.2;
|
|
24875
|
+
* 3. BUDGET — the page's round cap (Home 6, an inner page 4, a language pass 1, a legal page 1), or the build's credits
|
|
24876
|
+
* (`designerSpendGate`) said stop.
|
|
24877
|
+
* The round that is written is the BEST one, not necessarily the last: the highest score, the later on a tie (it holds
|
|
24878
|
+
* more of the fixes for the same score). Pure.
|
|
24879
|
+
*/
|
|
24880
|
+
declare const DESIGNER_DONE: {
|
|
24881
|
+
readonly mean: 8;
|
|
24882
|
+
readonly floor: 7.5;
|
|
24883
|
+
};
|
|
24884
|
+
/** FLAT: a round moved the score less than this… */
|
|
24885
|
+
declare const DESIGNER_FLAT_STEP = 0.2;
|
|
24886
|
+
/** …this many rounds in a row. */
|
|
24887
|
+
declare const DESIGNER_FLAT_ROUNDS = 2;
|
|
24888
|
+
/** What a page is, to the stop rule (§2g's caps). */
|
|
24889
|
+
declare enum DesignerPageRole {
|
|
24890
|
+
Home = "home",
|
|
24891
|
+
Inner = "inner",
|
|
24892
|
+
/** A second language's pass over a page already stopped (§2h). */
|
|
24893
|
+
Language = "language",
|
|
24894
|
+
Legal = "legal"
|
|
24895
|
+
}
|
|
24896
|
+
declare const DESIGNER_ROUND_CAPS: Readonly<Record<DesignerPageRole, number>>;
|
|
24897
|
+
declare enum DesignerStop {
|
|
24898
|
+
Done = "done",
|
|
24899
|
+
Flat = "flat",
|
|
24900
|
+
Budget = "budget"
|
|
24901
|
+
}
|
|
24902
|
+
/** One round, as the stop rule reads it: the critic's (calibrated) answer, the gate's counts, the fingerprint's findings. */
|
|
24903
|
+
interface DesignerRound {
|
|
24904
|
+
critique: CriticAnswer;
|
|
24905
|
+
gate: {
|
|
24906
|
+
blocking: number;
|
|
24907
|
+
asking: number;
|
|
24908
|
+
};
|
|
24909
|
+
/** A copy or a repeat (designFreedomIssues) — it caps the page like a broken bug (AD-D19). */
|
|
24910
|
+
freedom?: ReadonlyArray<FreedomIssue>;
|
|
24911
|
+
}
|
|
24912
|
+
/** A round's score: the critic's headline, capped at the broken cap when the page copies or repeats (AD-D19). */
|
|
24913
|
+
interface DesignerRoundScore {
|
|
24914
|
+
headline: number;
|
|
24915
|
+
designMean: number;
|
|
24916
|
+
lowest: number;
|
|
24917
|
+
capped: boolean;
|
|
24918
|
+
done: boolean;
|
|
24919
|
+
}
|
|
24920
|
+
declare function designerRoundScore(round: DesignerRound): DesignerRoundScore;
|
|
24921
|
+
interface DesignerStopDecision {
|
|
24922
|
+
/** Null while the page goes on. */
|
|
24923
|
+
stop: DesignerStop | null;
|
|
24924
|
+
/** The round to write (the best so far); null before any round. */
|
|
24925
|
+
best: number | null;
|
|
24926
|
+
scores: DesignerRoundScore[];
|
|
24927
|
+
}
|
|
24928
|
+
/**
|
|
24929
|
+
* After each round: stop or go on, and which round is the best. `outOfCredits` is the build's spend gate saying stop
|
|
24930
|
+
* (`designerSpendGate`) — a Budget stop like the page's cap.
|
|
24931
|
+
*/
|
|
24932
|
+
declare function designerStopDecision(rounds: ReadonlyArray<DesignerRound>, role: DesignerPageRole, outOfCredits?: boolean): DesignerStopDecision;
|
|
24933
|
+
|
|
24934
|
+
/**
|
|
24935
|
+
* WHAT A DESIGNED SITE COSTS, SAID BEFORE BUILD (ai-designer-plan §6b–§6c, AD-D12, R-H11, R-H26; board ai-designer
|
|
24936
|
+
* AD-F3, Q4, Q7, Q8) — pure, on the credit estimate's own parts (`QuoteRoute`, `costUsd` → `creditsOfUsd`,
|
|
24937
|
+
* `outwardCredits`), never a second pricing.
|
|
24938
|
+
*
|
|
24939
|
+
* - A ROUND is one critique (the critic's model) and one revise (the designer's), at §6b's tokens.
|
|
24940
|
+
* - The pages: each role's expected rounds — the kind's recent average when it has one (R-H11, falling as lessons work),
|
|
24941
|
+
* else today's proof rates (§6c: Home 6, an inner page 3, a legal page 1) — never above the role's cap (§2g); a second
|
|
24942
|
+
* language is one round per page (§2h).
|
|
24943
|
+
* - The three concepts are three rounds (§2a′), inside the total and shown as spent once they are (R-H26); "Try three
|
|
24944
|
+
* more" is priced the same, at most twice (Q4).
|
|
24945
|
+
* - THE CAP (Q7): twice the BUILD, the concepts outside it — they are already spent and capped by their own price.
|
|
24946
|
+
* - THE BALANCE (Q8): a build whose next round the balance cannot pay stops there, keeps its best pages, and offers
|
|
24947
|
+
* "Continue · ≈ N credits" after a pack — never refused at Build for a cap above the balance.
|
|
24948
|
+
*/
|
|
24949
|
+
/** §6b: one critique (≈ 20 pictures, the reference's cached) and one revise (the page as compact ops), per round. */
|
|
24950
|
+
declare const DESIGNER_ROUND_TOKENS: Readonly<{
|
|
24951
|
+
critique: AiTokenCounts;
|
|
24952
|
+
revise: AiTokenCounts;
|
|
24953
|
+
}>;
|
|
24954
|
+
/** §6c: the rounds a page takes at today's proof rates, with the batch A/B fixes and the seeded lessons. */
|
|
24955
|
+
declare const DESIGNER_ROUNDS_EXPECTED: Readonly<Record<DesignerPageRole, number>>;
|
|
24956
|
+
/** §2a′: the three concepts are sketched in about three rounds. */
|
|
24957
|
+
declare const DESIGNER_CONCEPT_ROUNDS = 3;
|
|
24958
|
+
/** Board Q4: "Try three more" at most this many times (9 directions). */
|
|
24959
|
+
declare const DESIGNER_MORE_CONCEPTS = 2;
|
|
24960
|
+
/** AD-D12, Q7: a build never spends more than this many times its estimate. */
|
|
24961
|
+
declare const DESIGNER_CAP_OVER_ESTIMATE = 2;
|
|
24962
|
+
/** Who critiques and who revises — each a route as the start quote prices one. */
|
|
24963
|
+
interface DesignerRoutes {
|
|
24964
|
+
critique: QuoteRoute | null;
|
|
24965
|
+
revise: QuoteRoute | null;
|
|
24966
|
+
}
|
|
24967
|
+
interface DesignerQuoteInput {
|
|
24968
|
+
pages: {
|
|
24969
|
+
home: number;
|
|
24970
|
+
inner: number;
|
|
24971
|
+
legal: number;
|
|
24972
|
+
};
|
|
24973
|
+
/** Second languages, each one pass over every page (§2h). */
|
|
24974
|
+
languages: number;
|
|
24975
|
+
/** The kind's recent average rounds per role (AD5's metric) — absent = today's rates. */
|
|
24976
|
+
recent?: Partial<Record<DesignerPageRole, number>>;
|
|
24977
|
+
/** The concepts were already sketched (their credits are spent). */
|
|
24978
|
+
conceptsSpent?: boolean;
|
|
24979
|
+
}
|
|
24980
|
+
declare enum DesignerQuoteRow {
|
|
24981
|
+
Concepts = "concepts",
|
|
24982
|
+
Home = "home",
|
|
24983
|
+
Inner = "inner",
|
|
24984
|
+
Legal = "legal",
|
|
24985
|
+
Language = "language"
|
|
24986
|
+
}
|
|
24987
|
+
interface DesignerQuotePart {
|
|
24988
|
+
row: DesignerQuoteRow;
|
|
24989
|
+
pages: number;
|
|
24990
|
+
/** Rounds per page. */
|
|
24991
|
+
rounds: number;
|
|
24992
|
+
/** Exact credits (to a millionth). */
|
|
24993
|
+
credits: number;
|
|
24994
|
+
spent?: boolean;
|
|
24995
|
+
}
|
|
24996
|
+
interface DesignerQuote {
|
|
24997
|
+
/** Whole credits, rounded up: the build (pages + languages), the concepts, and both. */
|
|
24998
|
+
build: number;
|
|
24999
|
+
concepts: number;
|
|
25000
|
+
total: number;
|
|
25001
|
+
/** Q7: never more than this for the build. */
|
|
25002
|
+
cap: number;
|
|
25003
|
+
/** One round's credits (critique + revise), exact. */
|
|
25004
|
+
round: number;
|
|
25005
|
+
keyMode: `${AiKeyMode}`;
|
|
25006
|
+
estimated: boolean;
|
|
25007
|
+
parts: DesignerQuotePart[];
|
|
25008
|
+
}
|
|
25009
|
+
/** One round's credits on these routes. */
|
|
25010
|
+
declare function designerRoundCredits(routes: DesignerRoutes): number;
|
|
25011
|
+
/** The rounds a role is counted at: the kind's recent average, else today's rate — within 1 and the role's cap. */
|
|
25012
|
+
declare function expectedRounds(role: DesignerPageRole, recent?: Partial<Record<DesignerPageRole, number>>): number;
|
|
25013
|
+
/** The estimate before Build (AD-F3): its rows, the build, the concepts, the cap. */
|
|
25014
|
+
declare function designerQuote(input: DesignerQuoteInput, routes: DesignerRoutes): DesignerQuote;
|
|
25015
|
+
/** Board Q4: whether "Try three more" is offered after `tried` times, and its price. */
|
|
25016
|
+
declare function moreConceptsOffer(tried: number, routes: DesignerRoutes): {
|
|
25017
|
+
offered: boolean;
|
|
25018
|
+
credits: number;
|
|
25019
|
+
};
|
|
25020
|
+
declare enum DesignerSpendStop {
|
|
25021
|
+
/** The build reached twice its estimate (`ai.capReached`). */
|
|
25022
|
+
Cap = "cap",
|
|
25023
|
+
/** The studio's credits cannot pay the next round (Q8). */
|
|
25024
|
+
Balance = "balance"
|
|
25025
|
+
}
|
|
25026
|
+
interface DesignerSpendInput {
|
|
25027
|
+
/** The quote's cap and build (whole credits). */
|
|
25028
|
+
cap: number;
|
|
25029
|
+
build: number;
|
|
25030
|
+
/** What the build has spent so far (exact credits). */
|
|
25031
|
+
spent: number;
|
|
25032
|
+
/** The next round's credits. */
|
|
25033
|
+
next: number;
|
|
25034
|
+
/** The studio's credits left (`AiMeter.remaining`); null/absent = unlimited (an own key). */
|
|
25035
|
+
balance?: number | null;
|
|
25036
|
+
keyMode?: `${AiKeyMode}`;
|
|
25037
|
+
}
|
|
25038
|
+
/**
|
|
25039
|
+
* Before each round: go on, or stop the build — at the cap (Q7), or at the balance (Q8: keep the best pages, offer to
|
|
25040
|
+
* continue for what the estimate has left). An own key is never stopped by the balance.
|
|
25041
|
+
*/
|
|
25042
|
+
declare function designerSpendGate(input: DesignerSpendInput): {
|
|
25043
|
+
go: true;
|
|
25044
|
+
} | {
|
|
25045
|
+
go: false;
|
|
25046
|
+
stop: DesignerSpendStop;
|
|
25047
|
+
continueCredits?: number;
|
|
25048
|
+
};
|
|
25049
|
+
|
|
25050
|
+
/**
|
|
25051
|
+
* THE AI DESIGNER'S LESSONS (ai-designer-plan §3a, AD-D7, R-H11): rules a designer applies while WRITING round 1, each
|
|
25052
|
+
* one a critique that moved a score. Seeded from the designer-loop proof (law HARNESS §4b + §4c, hotel HARNESS §4),
|
|
25053
|
+
* kept as data in iox-ai-guidance `architecture/ai/designer-lessons.json` and ported by `gen:designer-lessons` until the
|
|
25054
|
+
* control-plane store (AD5) holds them.
|
|
25055
|
+
* - APPLIED by `lessonsForPrompt`: the approved lessons for the site's kind (and language), ordered by
|
|
25056
|
+
* `weight × score moved`, cut at a token budget — the lowest-ranked drop out first.
|
|
25057
|
+
* - WEIGHT follows the source: the critic's own 1, the tester's 2, Doron's 3.
|
|
25058
|
+
* - RETIRED when the gap behind it ships (`retiresWith` names it) or when Doron marks it wrong — `status: 'retired'`.
|
|
25059
|
+
* Pure.
|
|
25060
|
+
*/
|
|
25061
|
+
declare enum LessonSource {
|
|
25062
|
+
Critic = "critic",
|
|
25063
|
+
Tester = "tester",
|
|
25064
|
+
Doron = "doron"
|
|
25065
|
+
}
|
|
25066
|
+
declare const LESSON_WEIGHT: Readonly<Record<LessonSource, number>>;
|
|
25067
|
+
declare enum LessonStatus {
|
|
25068
|
+
/** Proposed by the critic, waiting for the weekly approval (AD-D7). */
|
|
25069
|
+
Proposed = "proposed",
|
|
25070
|
+
Approved = "approved",
|
|
25071
|
+
Retired = "retired"
|
|
25072
|
+
}
|
|
25073
|
+
/** The kinds a lesson is for: every kind, or the named business kinds. */
|
|
25074
|
+
declare const LESSON_ALL_KINDS = "all";
|
|
25075
|
+
/** §3a: a lesson is written when a round moved a dimension by at least this much. */
|
|
25076
|
+
declare const LESSON_MIN_MOVE = 0.5;
|
|
25077
|
+
interface DesignerLesson {
|
|
25078
|
+
readonly id: string;
|
|
25079
|
+
/** One sentence a designer applies while writing round 1. */
|
|
25080
|
+
readonly rule: string;
|
|
25081
|
+
readonly kinds: ReadonlyArray<string>;
|
|
25082
|
+
/** Only for these site languages (absent = every language). */
|
|
25083
|
+
readonly locales?: ReadonlyArray<string>;
|
|
25084
|
+
readonly dimension: `${CriticDimension}`;
|
|
25085
|
+
/** The round it came from: the score before and after (the dimension's, else the page's mean). */
|
|
25086
|
+
readonly evidence: {
|
|
25087
|
+
readonly build: string;
|
|
25088
|
+
readonly round: string;
|
|
25089
|
+
readonly scoreBefore: number;
|
|
25090
|
+
readonly scoreAfter: number;
|
|
25091
|
+
readonly ref?: string;
|
|
25092
|
+
};
|
|
25093
|
+
readonly source: `${LessonSource}`;
|
|
25094
|
+
readonly weight: number;
|
|
25095
|
+
readonly status: `${LessonStatus}`;
|
|
25096
|
+
/** The builder gap whose fix retires it (§3a). */
|
|
25097
|
+
readonly retiresWith?: string;
|
|
25098
|
+
}
|
|
25099
|
+
/** The seed, checked against this type at compile time. */
|
|
25100
|
+
declare const DESIGNER_LESSONS: ReadonlyArray<DesignerLesson>;
|
|
25101
|
+
declare enum LessonIssueCode {
|
|
25102
|
+
Shape = "shape",
|
|
25103
|
+
Duplicate = "duplicate",
|
|
25104
|
+
Dimension = "dimension",
|
|
25105
|
+
Weight = "weight",
|
|
25106
|
+
Evidence = "evidence"
|
|
25107
|
+
}
|
|
25108
|
+
type LessonIssue = PathIssue<LessonIssueCode>;
|
|
25109
|
+
/** A lesson list, judged: each a rule, kinds, a known dimension, evidence with both scores, the source's weight; ids unique. */
|
|
25110
|
+
declare function designerLessonsIssues(lessons: unknown): LessonIssue[];
|
|
25111
|
+
/** What a lesson is worth in the prompt: its weight times the score it moved (floored, so a held score still ranks). */
|
|
25112
|
+
declare function lessonRank(lesson: DesignerLesson): number;
|
|
25113
|
+
/** A lesson as the prompt reads it: one line. */
|
|
25114
|
+
declare function lessonLine(lesson: DesignerLesson): string;
|
|
25115
|
+
/** Roughly how many tokens a text costs (a budget, not a bill). */
|
|
25116
|
+
declare function roughTokens(text: string): number;
|
|
25117
|
+
interface LessonsForPrompt {
|
|
25118
|
+
/** The lines, best first, one per lesson. */
|
|
25119
|
+
text: string;
|
|
25120
|
+
used: string[];
|
|
25121
|
+
/** Approved lessons for this kind and language that did not fit the budget, best first. */
|
|
25122
|
+
dropped: string[];
|
|
25123
|
+
tokens: number;
|
|
25124
|
+
}
|
|
25125
|
+
/**
|
|
25126
|
+
* The lessons the designer's (cached) system prompt carries for a site of `kind` in `locale`: approved, for every kind
|
|
25127
|
+
* or this one, for every language or this one; best first by `weight × score moved`; cut at `budget` tokens — the
|
|
25128
|
+
* lowest-ranked drop first (a prefix of the ranking, so a short lesson never jumps a better long one).
|
|
25129
|
+
*/
|
|
25130
|
+
declare function lessonsForPrompt(kind: string, budget: number, options?: {
|
|
25131
|
+
locale?: string;
|
|
25132
|
+
lessons?: ReadonlyArray<DesignerLesson>;
|
|
25133
|
+
}): LessonsForPrompt;
|
|
25134
|
+
|
|
25135
|
+
/**
|
|
25136
|
+
* A ROUND'S BRIEF (ai-designer-plan §2d–§2f, AD-D19, R-H23): what the revise step is told to do next, composed from
|
|
25137
|
+
* - the gate's counts (§2f "the gate first": nothing else is worth a round while a page blocks or asks);
|
|
25138
|
+
* - the critic's broken bugs (they cap the page at 5 — fixed before any score is chased);
|
|
25139
|
+
* - `designFreedomIssues` — a COPY of the reference or a REPEAT of the kind's recent builds caps the page like a broken
|
|
25140
|
+
* bug, and a styling change does not lift it: the brief DEMANDS a structural change (the order and the shapes of the
|
|
25141
|
+
* sections);
|
|
25142
|
+
* - the critic's 1–3 changes, each with its dimension's score now, and the lowest dimension;
|
|
25143
|
+
* - the rules applied every round (§2f), always, in the same words.
|
|
25144
|
+
* Pure: it writes words, it does not judge them.
|
|
25145
|
+
*/
|
|
25146
|
+
declare enum RoundRuleId {
|
|
25147
|
+
Gate = "gate",
|
|
25148
|
+
Emil = "emil",
|
|
25149
|
+
ScreenBudget = "screen-budget",
|
|
25150
|
+
ScrollMoment = "scroll-moment",
|
|
25151
|
+
Phone = "phone",
|
|
25152
|
+
LineBreaks = "line-breaks"
|
|
25153
|
+
}
|
|
25154
|
+
/** §2f, in the plan's words — each one cost a round in the proof. */
|
|
25155
|
+
declare const DESIGNER_ROUND_RULES: ReadonlyArray<{
|
|
25156
|
+
readonly id: RoundRuleId;
|
|
25157
|
+
readonly rule: string;
|
|
25158
|
+
}>;
|
|
25159
|
+
interface RoundBriefInput {
|
|
25160
|
+
critique: CriticAnswer;
|
|
25161
|
+
/** This round's copy / repeat findings (`designFreedomIssues` on the built page). */
|
|
25162
|
+
freedom?: ReadonlyArray<FreedomIssue>;
|
|
25163
|
+
gate?: {
|
|
25164
|
+
blocking: number;
|
|
25165
|
+
asking: number;
|
|
25166
|
+
};
|
|
25167
|
+
}
|
|
25168
|
+
interface RoundBrief {
|
|
25169
|
+
/** A copy or a repeat: the next round must change the structure, not the styling. */
|
|
25170
|
+
structural: boolean;
|
|
25171
|
+
/** The dimension the critic scored lowest (the first in rubric order on a tie). */
|
|
25172
|
+
lowest: CriticDimension;
|
|
25173
|
+
/** The brief, first thing first; `text` is the lines joined. */
|
|
25174
|
+
lines: string[];
|
|
25175
|
+
text: string;
|
|
25176
|
+
}
|
|
25177
|
+
/** The next round's brief: the gate, the broken bugs, a structural demand when the page copies or repeats, the critic's
|
|
25178
|
+
* changes, the lowest dimension, then the every-round rules. */
|
|
25179
|
+
declare function roundBrief(input: RoundBriefInput): RoundBrief;
|
|
25180
|
+
|
|
25181
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PICTURE_MAKERS, 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_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiPictureMaker, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyPace, BodyRepairCode, BodySeam, BodySectionWord, BodyTexture, BorrowKind, BuildNoticeCode, BuildStep, CALIBRATION_MAX_ERROR, CAPTURE_VIEWPORTS, CAPTURE_VIEW_ORDER, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, COLOUR_TOKEN, COMPOSITION, CONCEPT_MIN_DISTANCE, CONCEPT_SECTIONS, CONTENT_ROLE_MEANINGS, COPY_OUT, COUNT_ACTION, CREDITS_PER_USD, CRITIC_CHANGES, CRITIC_CROPS, CRITIC_CROP_MAX_ZOOM, CRITIC_CROP_RECIPES, CRITIC_DESIGN_DIMENSIONS, CRITIC_DIMENSIONS, CRITIC_FLAGGED_CROPS, CRITIC_LEVEL_RULE, CRITIC_OUTPUT_NAME, CRITIC_RUBRIC_DIMENSIONS, CRITIC_RUBRIC_HEADLINE, CRITIC_RUBRIC_POLISH, CRITIC_RUBRIC_SOURCE, CRITIC_SCORE, CRITIC_SWITCH_WITHIN, CalibrationKind, CaptureView, CaptureWidth, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ColourAccent, ColourAction, ColourBands, ColourDark, ColourGround, ColourIngredient, ColourMixError, ColourPictures, ColourRepairCode, ColourRhythm, ColourSource, ColourWash, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, CriticContentKind, CriticDimension, CriticIssueCode, CriticSheetLayout, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, DESIGNER_CAP_OVER_ESTIMATE, DESIGNER_CONCEPTS, DESIGNER_CONCEPTS_OUTPUT_NAME, DESIGNER_CONCEPT_ROUNDS, DESIGNER_DIRECTION_OUTPUT_NAME, DESIGNER_DONE, DESIGNER_FLAT_ROUNDS, DESIGNER_FLAT_STEP, DESIGNER_LESSONS, DESIGNER_LESSONS_SEED, DESIGNER_LESSONS_SOURCE, DESIGNER_MORE_CONCEPTS, DESIGNER_ROUNDS_EXPECTED, DESIGNER_ROUND_CAPS, DESIGNER_ROUND_RULES, DESIGNER_ROUND_TOKENS, DESIGN_ACTION_KEY_ORDER, DESIGN_ACT_VALUES, DESIGN_BASE_LAYER, DESIGN_END_INDEX, DESIGN_ENTRANCE_TRIGGERS, DESIGN_FONTS_CHOICE, DESIGN_LAYERS, DESIGN_NODE_KEY_ORDER, DESIGN_NONE, DESIGN_NO_STYLE, DESIGN_PAGE_PARENT, DESIGN_PARAM_PREFIX, DESIGN_PICTURE_PROPS, DESIGN_POINTER_STATES, DESIGN_RECIPES, DESIGN_ROW_KEY_ORDER, DESIGN_SAID_PROPS, DESIGN_STATES, DESIGN_TOOL_SCHEMAS, DESIGN_TRACK_KEY_ORDER, DESIGN_TRIGGER_META, DESIGN_TRIGGER_ON_STATE, DESIGN_WIDTHS, DESIGN_WORD_PROPS, DIRECTION_NAMED_PARTS, DIRECTION_PICTURE_FAMILIES, DOM_HEADER_BAR_MAX_PX, DOM_INHALE_MAX_PX, DOM_SIGNATURES, DOM_STRUCTURE_VERSION, DRAWER_BEAT_MS, DRAWER_KINDS, DRAWER_LETTER_MS, DRAWER_LINE_MS, DRAWER_SPINE, DRAWER_STEPS, DesignDocIndex, DesignIssueCode, DesignMeta, DesignRecipe, DesignTool, DesignTurn, DesignerDirectionIssueCode, DesignerPageRole, DesignerQuoteRow, DesignerSpendStop, DesignerStop, DirectionIssueCode, DirectionTypeRole, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOLLOW_LINK_ROLE, FOLLOW_ROW_FAMILY, FOLLOW_ROW_ROLE, FOLLOW_TARGET, FOOTER_FRAMED_STYLES, FOOTER_GROUND_SCHEME, FOOTER_INSET_STYLES, FOOTER_LEGAL_ROLE, FOOTER_ROW_HOLDS, FOOTER_SOCIAL_NETWORKS, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREEDOM_COPY_DISTANCE, FREEDOM_REPEAT_DISTANCE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_FOOTER_CENTRED, FREE_FOOTER_NO_PART, FREE_FOOTER_PAGE_ROW, FREE_FORM_PRESET, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_OPENING_BOXES, FREE_OPEN_LIGHTBOX, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_SLOT_SEPARATOR, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FollowRowView, FooterArrange, FooterBefore, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterNameStyle, FooterPhone, FooterRepairCode, FooterRole, FreeFooterPart, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeSlotKind, FreeTrigger, FreedomIssueCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_BAR_PX, HEADER_REST_FRAMES, HEADER_TOKEN, HEADER_VEIL, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPORT_NAV_MAX, IMPRINT_COUNTRIES, ISRAEL, ITEM_PAGE_ONLY_ROLES, ImportPattern, JOINED_HEADER_PADDING, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAID_CONTACT_FAMILY, LAID_FIRST_FAMILY, LAID_PLAIN_FAMILY, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_ENTRANCE_TRIGGERS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGACY_BODY_INGREDIENTS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LESSON_ALL_KINDS, LESSON_MIN_MOVE, LESSON_WEIGHT, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, LessonIssueCode, LessonSource, LessonStatus, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, LookEditKind, MAX_SITE_PICTURES, MENU_SHELF_RULES, MIN_REFERENCE_SECTIONS, MOTION_ENTRANCE_TRIGGERS, MOTION_PICTURE_TYPES, MOTION_POINTER_TRIGGERS, MOTION_TRIGGERS, MOTION_UI_TYPES, MOVING_OPENING_MEDIA, MenuSide, MotionRule, MoveOp, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_DISSOLVE, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_HOVER_MAX_MS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_SETTLE_MAX_MS, PICTURE_TEXT_CONTRAST, PICTURE_TOKENS_UNKNOWN_MAKER, 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, POPUP_GLOBAL_ID, POPUP_LINK_WORD, POPUP_WIRE_INGREDIENTS, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PatternScrolls, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PicturesRefused, PlaceOp, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PopupMixError, PopupRefusal, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, READING_SHAPES, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, RoundRuleId, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRIM_WORDS_PAD, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SETTLE_ACTION, 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_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_SOCIAL_FIELDS, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, 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, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_FIT_ANY, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MAX_SEARCHES, STOCK_MIN_KEPT, STOCK_NEVER_PHRASES, STOCK_NEVER_WORDS, STOCK_OPENING_TYPE_WORDS, STOCK_PLACE_TYPE_WORDS, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STOCK_TRADE_NEVER_WORDS, STOCK_TRADE_PLACE_WORDS, STOCK_TRADE_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STRUCTURE_WEIGHTS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionShape, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, SocialLinkRefusal, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, StructureReader, StructureSignature, TEMPLATE_TYPE_WORDS, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, UI_MOTION_MAX_MS, VISION_TOKEN_CAP, VISION_TOKEN_TILE, WORDS_AREA_DEFAULT_SHARE, WordsEdge, YIELD_MIN_COLUMNS, YIELD_MIN_ROW_SHARE, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyDesignOps, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, archetypeRank, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, baseOrder, beforeOf, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWithColourBands, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calibrationReport, calmParts, calmUnder, canonicalDesignNode, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkColour, checkFooter, checkFree, checkFreeFooter, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, checkPopup, chooseOpeningWay, chooseScrim, chooseTypeLedOpening, colourAccentMax, colourCheckOf, colourDesignWords, colourGroundsMax, colourMeaning, colourMix, colourMixFromWords, colourMixOfPlan, colourMixWords, colourReferences, colourRhythmIssues, colourTokenOf, colourWireWords, colourWordDrawn, colourWordOffered, colourWordTier, colourWordWaits, colourWords, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListAccordion, composeListFrame, composeListLightbox, composeListTabs, composeNavHeader, composeOpening, composePopup, composePresetForm, composeQuoteCarousel, composeReferenceFooter, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composesPage, composingShare, compositionBorrows, compositionSwaps, conceptsDistinct, conceptsIssues, contactFactsOf, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, criticAnswerIssues, criticAnswerSchema, criticRoundContent, criticRubricText, criticSystem, criticVerdict, critiqueCostUsd, cssMs, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, designDocIssues, designForPlan, designFreedomIssues, designMotionIssues, designOpIssues, designOpsOfLayout, designOpsOfLook, designSceneTracks, designSideName, designToolSchema, designTraitSlots, designerConceptsSchema, designerDirectionIssues, designerDirectionSchema, designerLessonsIssues, designerQuote, designerRoundCredits, designerRoundScore, designerSpendGate, designerStopDecision, dissolveInteraction, distinctFallbackSections, distinctFooter, distinctHeader, domSectionShapeOf, drawerRamp, drawerRestX, drawerStepCount, drawerSteps, drawerWidth, drawersTiming, drawnBodyMix, drawnColourMix, drawnFooterMix, drawnHeaderMix, drawnMenuShows, drawnOpeningMix, dressMenuPictures, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeFooter, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, expectedRounds, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, fieldsOf, figuresNotIn, fillContactFacts, filledItemNumbers, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followSiteSocials, followedAfter, followedIssues, footerCallLine, footerCallWord, footerClosingRefusal, footerFaceOf, footerMeaning, footerMix, footerMixFromFree, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPart, footerPartNode, footerPattern, footerPatternIdOf, footerReferences, footerSignsUp, footerSocialLinks, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWordOffered, footerWordTier, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeFooterBrief, freeFooterContextOf, freeFooterFaceOf, freeFooterGrounds, freeFooterOrMix, freeFooterPartMeaning, freeFooterSlotOffers, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeNodeStyleIssues, freeOpeningOffer, freePhoneNeeds, freeSchemeOf, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeSlotLine, freeSlotOf, freeSlotOffers, freeSlotWord, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerGroundWhenUnreadable, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerReadableOfSite, headerReadsAtRest, headerRecipe, headerReferences, headerRestInks, headerRestTokenOf, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerVeilAt, headerWireWords, headerWordDrawn, headerWords, holdsFollowRow, holdsStatedSocial, importRedirects, importSlug, importedPicturesOf, isActiveBuild, isAdditionKey, isDesignRecipe, isDrawers, isFilledItem, isFreeBox, isHandPageKey, isImportPlan, isLayoutRule, isLegalKind, isNonEmptyString, isPeopleContentType, isPerItemPage, isPictureWorld, isPlainObject, isPopupNode, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, itemFillApplies, joinPageHeader, joinSameGround, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, keepSavedFollowRows, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutCounterDepth, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutSectionKindsOffered, layoutShapeHasPurpose, layoutSignatureOffered, layoutSignaturesOffered, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, lessonLine, lessonRank, lessonsForPrompt, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, listedContentType, lookHasGlass, lowestDimensions, luminanceOf, measureFree, measureLayout, measuredCategories, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuCardPicture, menuCollectionsOfPlan, menuLookOf, menuWords, modelCanDo, moreConceptsOffer, motionIssueCounts, motionIssueKey, moveBarItem, moveEntrance, nameStyleOf, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, neighbourFaults, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingDisplaySize, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingPictureSrc, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, opensFullUnderFloat, opensOnPicture, orderPlaces, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, ownerSocialLink, paceIssues, paddingKeepingClear, pageBuildSource, pageKindOf, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternPartSlots, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneOf, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureSlotPage, pictureTargets, pictureTokensFor, pictureTryFits, picturedOpeningWays, picturelessTypes, picturesRefusedOf, pinnedPagesOf, pixelsUnder, placeFilm, placedDesignNode, placeholderContentTypes, plainCarryText, planCritiqueSheet, planDesignChoices, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFooterContext, planFromTemplate, planHasShopSource, planHeader, planImport, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planStockSearch, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, planWrites, plannedStructure, plateYields, popupKeptNotices, popupMeaning, popupMixFromWords, popupMixOfPlan, popupTokenOf, popupWireWords, presetColourMix, previousRoute, pricesIn, proHeader, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteItemOf, quoteListOf, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recipeOptionValue, recognisedSocialLinks, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, referenceFooterLayout, refitBuiltPage, refitPage, refreshSectionStamps, refusesStock, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, roleField, roughTokens, roundBrief, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionPictureFamily, sectionPictured, sectionShapeOf, sectionSkeleton, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteMeasures, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteSocialLinks, siteSocialPatch, siteTreeOf, siteTreeOfPlan, skeletonOf, slotBudget, socialLinkOf, socialLinksByNetwork, socialLinksList, socialLinksPart, splitCssValue, splitFreeFooter, splitSide, stampFooterMix, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, statedWhatsAppHref, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFitFor, stockFits, stockGroupOf, stockItemSlots, stockKept, stockMayFill, stockPhotoFits, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSearchFocus, stockSearchQuery, stockSearchTerm, stockSlotFamily, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, structureDistance, structureOfDom, structureOfFingerprint, structureOfLayoutPage, structureOfReading, structureOfReference, structureOfTree, swapOf, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedPlateColour, typeLedPlates, typeLedRound, typeLedSection, typeLedYield, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, visionImageTokens, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withConsentBanner, withDerivedSources, withDistinctFooter, withDistinctHeader, withFollowRow, withHeaderWord, withListWord, withOpeningWord, withShownList, withTypeOpening, withTypeSignUp, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
25182
|
+
export type { ActDesignOp, AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiPictureMakerRow, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BodyContext, BodyGap, BodyMix, BodyRepair, BodySeamShape, BorrowedSection, BuildComposeDecisions, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalibrationOptions, CalibrationPage, CalibrationReport, CalibrationRow, CalmReading, CaptureBox, CaptureMetrics, CaptureSet, CaptureShot, CaptureSource, CaptureTarget, CarryBlock, CarryBound, CarryCheckContext, CarryForm, CarryKept, CarryPhoto, CarryReference, CarryWord, CheckLayoutContext, CmsDataSourcePlan, ColourGap, ColourMix, ColourRepair, ColourRhythmContext, ComposeContext, ComposeFreeOptions, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, CompositionBorrow, CompositionSwap, CompositionTable, ConsentStampInput, ContactBusiness, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, CriticAnswer, CriticBug, CriticChange, CriticContent, CriticContext, CriticIssue, CriticPromptPart, CriticRoundInput, CriticScore, CriticVerdict, CritiqueSheet, CropRecipe, DataSourcePlan, DesignCheckContext, DesignDoc, DesignIssue, DesignLook, DesignNodePlace, DesignOp, DesignOpRefusal, DesignOpsOf, DesignOpsOfOptions, DesignOpsOptions, DesignOpsResult, DesignSceneRow, DesignToolSchema, DesignTrait, DesignValue, DesignerConcept, DesignerConcepts, DesignerDirection, DesignerDirectionIssue, DesignerLesson, DesignerQuote, DesignerQuoteInput, DesignerQuotePart, DesignerRound, DesignerRoundScore, DesignerRoutes, DesignerSpendInput, DesignerStopDecision, DirectionIssue, DistinctFallback, DomBox, DomPageStructure, DomStructureSection, DrawersTiming, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, ExpandedFreeWire, FactKey, FilmPlacement, FilmTarget, FindingParams, FindingSentence, FingerprintedPage, FollowRowNode, FooterContext, FooterInput, FooterMix, FooterNever, FooterPartAsk, FooterReferenceLayout, FooterRepair, FooterSocialLink, FooterSocialNetwork, FooterWait, FrameRegion, FreeFallback, FreeFallbackPrompt, FreeFooterContext, FreeFooterStamp, FreeIssue, FreeJudgeContext, FreeMove, FreeNode, FreeOpeningOffer, FreeOpeningSite, FreePage, FreeRead, FreeSlotOffer, FreeSlotOptions, FreeStamped, FreeStyle, FreeStyleRules, FreeWalked, FreeWire, FreeWireFault, FreeWireNode, FreeWireOptions, FreedomIssue, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderFacts, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderNever, HeaderOpening, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderRestInk, HeaderRestNode, HeaderRestPage, HeaderSite, ImportLeave, ImportPlan, ImportPlanInput, ImportReading, ImportRedirect, ImportedHome, ImportedItem, ImportedList, ImportedPage, JsonSchema, KeptPageRefusal, LayerMetrics, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutIssueWords, LayoutLayer, LayoutListBare, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutMixOfferOptions, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutRoomColumn, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, LayoutWordRef, LayoutWordsValue, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, LessonIssue, LessonsForPrompt, LikenessProbe, ListCheckOptions, ListFrame, ListFrameInput, ListHangStep, ListIngredient, ListOverhang, ListPanelContext, ListPanelRow, ListPanelWord, ListPartEdit, ListPartsKept, ListPick, ListSaid, ListSayParams, ListShapeReading, ListWait, ListWordNever, ListWordShape, LookBefore, LookDesignOp, MeasuredLayer, MeasuredLayout, MenuCollection, MenuWords, ModelCalibration, MotionIssue, MoveDesignOp, NamedStructure, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OpeningApplied, OpeningContext, OpeningDisplaySize, OpeningGalleryEntry, OpeningGap, OpeningInput, OpeningMix, OpeningNotPlaced, OpeningReading, OpeningRecipe, OpeningRepair, OpeningSite, OwnPhoto, OwnPhotoPlacement, OwnerSocialLink, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageCarry, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PictureDesignOp, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureSupply, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, Place, PlaceDesignOp, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanPopupLines, PlanStatedFact, PlanWireContext, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PlannedFooter, PlannedPopup, PopupCheck, PopupMixWords, PreflightRefusal, PromptReading, PublishRefusal, QuoteRoute, RecipeListBinds, RecordedCritique, RedesignAdditions, RedesignAdditionsStaged, RedesignBack, RedesignBackPreview, RedesignLook, RedesignPageOutcome, RedesignPagePreflight, RedesignPageRefusal, RedesignRequest, RedesignRun, RedesignSnapshot, RedesignSnapshotPage, RedesignStaged, RedesignSwitch, RedesignSwitchPreview, RefitResult, RelativeDataSourcePlan, RoundBrief, RoundBriefInput, SceneDesignOp, ScrimChoice, ScrubContext, ScrubbableStamp, SectionEntrances, SectionFallback, SectionFallbackOptions, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionPictureFamily, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, SheetCrop, SheetPair, ShelfPlan, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteFindingGroup, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StagedAddition, StagedPage, StampedAction, StampedInteraction, StartQuote, StartQuotePart, StartQuoteRoutes, StartQuoteTokens, StockCredit, StockFit, StockFitPlace, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSearch, StockSearchType, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, StructureFingerprint, StyleDesignOp, TemplatePlanInput, TieredRow, TypeLed, TypeLedChange, TypeLedOpening, TypeLedRoundContext, TypeLedTarget, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WordsDesignOp, WritingPlan, WrittenText };
|