@vectoriox/iox-ui 5.124.0 → 5.126.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/assist-core/index.d.ts +289 -5
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +408 -11
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +3375 -173
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +482 -0
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +2964 -158
- package/harness-core/index.d.ts +270 -0
- package/package.json +1 -1
- package/src/assist-core/assist-turn.ts +95 -2
- package/src/assist-core/brief.ts +4 -0
- package/src/assist-core/fields-schema.ts +21 -5
- package/src/assist-core/photo-drafts.ts +482 -0
- package/src/assist-core/public-api.ts +4 -1
- package/src/assist-core/surfaces.ts +28 -4
- package/src/generation-core/ai-run.ts +3 -0
- package/src/generation-core/check-list.ts +28 -9
- package/src/generation-core/compose-site.ts +8 -4
- package/src/generation-core/footer-mix.ts +67 -8
- package/src/generation-core/generation-tier.ts +103 -0
- package/src/generation-core/layout-language.ts +18 -0
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-plan.model.ts +17 -0
- package/src/generation-core/site-spec.generated.ts +3016 -24
- package/src/generation-core/validate-site-plan.ts +25 -7
- package/src/harness-core/harness-spec.generated.ts +482 -0
package/harness-core/index.d.ts
CHANGED
|
@@ -166,6 +166,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
166
166
|
readonly moves: readonly [];
|
|
167
167
|
readonly say: readonly [];
|
|
168
168
|
};
|
|
169
|
+
readonly art: {
|
|
170
|
+
readonly preloader: readonly [];
|
|
171
|
+
readonly cover: readonly [];
|
|
172
|
+
readonly seam: readonly [];
|
|
173
|
+
readonly texture: readonly [];
|
|
174
|
+
readonly signatures: readonly [];
|
|
175
|
+
readonly secondScene: false;
|
|
176
|
+
readonly say: readonly [];
|
|
177
|
+
};
|
|
169
178
|
readonly world: "documentary";
|
|
170
179
|
readonly imagery: "Your own photos only, large and uncropped; never stock.";
|
|
171
180
|
readonly pages: readonly ["home", "work (collection)", "project (detail)", "about", "contact"];
|
|
@@ -236,6 +245,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
236
245
|
readonly moves: readonly [];
|
|
237
246
|
readonly say: readonly [];
|
|
238
247
|
};
|
|
248
|
+
readonly art: {
|
|
249
|
+
readonly preloader: readonly [];
|
|
250
|
+
readonly cover: readonly [];
|
|
251
|
+
readonly seam: readonly [];
|
|
252
|
+
readonly texture: readonly [];
|
|
253
|
+
readonly signatures: readonly [];
|
|
254
|
+
readonly secondScene: false;
|
|
255
|
+
readonly say: readonly [];
|
|
256
|
+
};
|
|
239
257
|
readonly world: "architectural";
|
|
240
258
|
readonly imagery: "Wide, bright room shots; details of materials.";
|
|
241
259
|
readonly pages: readonly ["home", "projects (collection)", "project (detail)", "services", "about", "contact"];
|
|
@@ -307,6 +325,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
307
325
|
readonly moves: readonly [];
|
|
308
326
|
readonly say: readonly [];
|
|
309
327
|
};
|
|
328
|
+
readonly art: {
|
|
329
|
+
readonly preloader: readonly [];
|
|
330
|
+
readonly cover: readonly [];
|
|
331
|
+
readonly seam: readonly [];
|
|
332
|
+
readonly texture: readonly [];
|
|
333
|
+
readonly signatures: readonly [];
|
|
334
|
+
readonly secondScene: false;
|
|
335
|
+
readonly say: readonly [];
|
|
336
|
+
};
|
|
310
337
|
readonly world: "architectural";
|
|
311
338
|
readonly imagery: "Large project photos and drawings.";
|
|
312
339
|
readonly pages: readonly ["home", "projects (collection)", "project (detail)", "about", "contact"];
|
|
@@ -379,6 +406,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
379
406
|
readonly moves: readonly [];
|
|
380
407
|
readonly say: readonly [];
|
|
381
408
|
};
|
|
409
|
+
readonly art: {
|
|
410
|
+
readonly preloader: readonly [];
|
|
411
|
+
readonly cover: readonly [];
|
|
412
|
+
readonly seam: readonly [];
|
|
413
|
+
readonly texture: readonly [];
|
|
414
|
+
readonly signatures: readonly [];
|
|
415
|
+
readonly secondScene: false;
|
|
416
|
+
readonly say: readonly [];
|
|
417
|
+
};
|
|
382
418
|
readonly world: "hard-light";
|
|
383
419
|
readonly imagery: "Case-study images of your own work.";
|
|
384
420
|
readonly pages: readonly ["home", "work (collection)", "case study (detail)", "services", "about", "contact"];
|
|
@@ -441,6 +477,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
441
477
|
readonly moves: readonly [];
|
|
442
478
|
readonly say: readonly [];
|
|
443
479
|
};
|
|
480
|
+
readonly art: {
|
|
481
|
+
readonly preloader: readonly [];
|
|
482
|
+
readonly cover: readonly [];
|
|
483
|
+
readonly seam: readonly [];
|
|
484
|
+
readonly texture: readonly [];
|
|
485
|
+
readonly signatures: readonly [];
|
|
486
|
+
readonly secondScene: false;
|
|
487
|
+
readonly say: readonly [];
|
|
488
|
+
};
|
|
444
489
|
readonly world: "drawing";
|
|
445
490
|
readonly imagery: "Your pieces, photographed flat and true to colour.";
|
|
446
491
|
readonly pages: readonly ["home", "works (collection)", "work (detail)", "about", "contact"];
|
|
@@ -505,6 +550,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
505
550
|
readonly moves: readonly [];
|
|
506
551
|
readonly say: readonly [];
|
|
507
552
|
};
|
|
553
|
+
readonly art: {
|
|
554
|
+
readonly preloader: readonly [];
|
|
555
|
+
readonly cover: readonly [];
|
|
556
|
+
readonly seam: readonly [];
|
|
557
|
+
readonly texture: readonly [];
|
|
558
|
+
readonly signatures: readonly [];
|
|
559
|
+
readonly secondScene: false;
|
|
560
|
+
readonly say: readonly [];
|
|
561
|
+
};
|
|
508
562
|
readonly world: "macro";
|
|
509
563
|
readonly imagery: "Your pieces and hands at work; natural light.";
|
|
510
564
|
readonly pages: readonly ["home", "pieces (collection)", "piece (detail)", "workshops", "about", "contact"];
|
|
@@ -568,6 +622,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
568
622
|
readonly moves: readonly [];
|
|
569
623
|
readonly say: readonly [];
|
|
570
624
|
};
|
|
625
|
+
readonly art: {
|
|
626
|
+
readonly preloader: readonly [];
|
|
627
|
+
readonly cover: readonly [];
|
|
628
|
+
readonly seam: readonly [];
|
|
629
|
+
readonly texture: readonly [];
|
|
630
|
+
readonly signatures: readonly [];
|
|
631
|
+
readonly secondScene: false;
|
|
632
|
+
readonly say: readonly [];
|
|
633
|
+
};
|
|
571
634
|
readonly world: "macro";
|
|
572
635
|
readonly imagery: "Close-ups on a plain ground.";
|
|
573
636
|
readonly pages: readonly ["home", "collection", "piece (detail)", "about", "contact"];
|
|
@@ -632,6 +695,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
632
695
|
readonly moves: readonly [];
|
|
633
696
|
readonly say: readonly [];
|
|
634
697
|
};
|
|
698
|
+
readonly art: {
|
|
699
|
+
readonly preloader: readonly [];
|
|
700
|
+
readonly cover: readonly [];
|
|
701
|
+
readonly seam: readonly [];
|
|
702
|
+
readonly texture: readonly [];
|
|
703
|
+
readonly signatures: readonly [];
|
|
704
|
+
readonly secondScene: false;
|
|
705
|
+
readonly say: readonly [];
|
|
706
|
+
};
|
|
635
707
|
readonly world: "low-key";
|
|
636
708
|
readonly imagery: "Healed work, clean photos.";
|
|
637
709
|
readonly pages: readonly ["home", "work (collection)", "artists", "faq", "contact"];
|
|
@@ -695,6 +767,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
695
767
|
readonly moves: readonly [];
|
|
696
768
|
readonly say: readonly [];
|
|
697
769
|
};
|
|
770
|
+
readonly art: {
|
|
771
|
+
readonly preloader: readonly ["counter", "letters"];
|
|
772
|
+
readonly cover: readonly ["veil", "flood"];
|
|
773
|
+
readonly seam: readonly ["drip", "torn"];
|
|
774
|
+
readonly texture: readonly [];
|
|
775
|
+
readonly signatures: readonly ["deal-in", "orbit"];
|
|
776
|
+
readonly secondScene: true;
|
|
777
|
+
readonly say: readonly ["A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."];
|
|
778
|
+
};
|
|
698
779
|
readonly world: "high-key";
|
|
699
780
|
readonly imagery: "Rooms, textures, hands; no faces needed.";
|
|
700
781
|
readonly pages: readonly ["home", "treatments (services)", "prices", "about", "contact"];
|
|
@@ -768,6 +849,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
768
849
|
readonly moves: readonly [];
|
|
769
850
|
readonly say: readonly [];
|
|
770
851
|
};
|
|
852
|
+
readonly art: {
|
|
853
|
+
readonly preloader: readonly ["counter"];
|
|
854
|
+
readonly cover: readonly ["veil"];
|
|
855
|
+
readonly seam: readonly [];
|
|
856
|
+
readonly texture: readonly [];
|
|
857
|
+
readonly signatures: readonly [];
|
|
858
|
+
readonly secondScene: true;
|
|
859
|
+
readonly say: readonly ["A second Scene on the home page, a counted intro and a picture veil are for the expressive types."];
|
|
860
|
+
};
|
|
771
861
|
readonly world: "high-key";
|
|
772
862
|
readonly imagery: "Your own before-and-after photos.";
|
|
773
863
|
readonly pages: readonly ["home", "services", "prices", "gallery", "contact"];
|
|
@@ -835,6 +925,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
835
925
|
readonly moves: readonly [];
|
|
836
926
|
readonly say: readonly [];
|
|
837
927
|
};
|
|
928
|
+
readonly art: {
|
|
929
|
+
readonly preloader: readonly ["counter"];
|
|
930
|
+
readonly cover: readonly ["veil"];
|
|
931
|
+
readonly seam: readonly [];
|
|
932
|
+
readonly texture: readonly [];
|
|
933
|
+
readonly signatures: readonly [];
|
|
934
|
+
readonly secondScene: true;
|
|
935
|
+
readonly say: readonly ["A second Scene on the home page, a counted intro and a picture veil are for the expressive types."];
|
|
936
|
+
};
|
|
838
937
|
readonly world: "high-key";
|
|
839
938
|
readonly imagery: "The room, real classes, daylight.";
|
|
840
939
|
readonly pages: readonly ["home", "classes", "schedule", "teachers", "prices", "contact"];
|
|
@@ -903,6 +1002,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
903
1002
|
readonly moves: readonly [];
|
|
904
1003
|
readonly say: readonly [];
|
|
905
1004
|
};
|
|
1005
|
+
readonly art: {
|
|
1006
|
+
readonly preloader: readonly ["counter"];
|
|
1007
|
+
readonly cover: readonly ["veil"];
|
|
1008
|
+
readonly seam: readonly [];
|
|
1009
|
+
readonly texture: readonly [];
|
|
1010
|
+
readonly signatures: readonly [];
|
|
1011
|
+
readonly secondScene: true;
|
|
1012
|
+
readonly say: readonly ["A second Scene on the home page, a counted intro and a picture veil are for the expressive types."];
|
|
1013
|
+
};
|
|
906
1014
|
readonly world: "hard-light";
|
|
907
1015
|
readonly imagery: "Real people training; movement.";
|
|
908
1016
|
readonly pages: readonly ["home", "classes", "prices", "coaches", "contact"];
|
|
@@ -967,6 +1075,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
967
1075
|
readonly moves: readonly ["auto", "page"];
|
|
968
1076
|
readonly say: readonly ["People who come for care or advice read at their own pace: nothing turns by itself, nothing to flick through."];
|
|
969
1077
|
};
|
|
1078
|
+
readonly art: {
|
|
1079
|
+
readonly preloader: readonly ["mark", "counter", "letters"];
|
|
1080
|
+
readonly cover: readonly ["flood", "wipe", "circle", "veil", "interstitial"];
|
|
1081
|
+
readonly seam: readonly ["drip", "torn"];
|
|
1082
|
+
readonly texture: readonly ["pattern", "material"];
|
|
1083
|
+
readonly signatures: readonly ["sections-stack", "ground-travel", "deal-in", "scroll-clock", "orbit", "circle-grow"];
|
|
1084
|
+
readonly secondScene: true;
|
|
1085
|
+
readonly say: readonly ["People who come for care or advice need calm and trust: no intro to wait through, no flood between pages, no torn edges, no spectacle."];
|
|
1086
|
+
};
|
|
970
1087
|
readonly world: "documentary";
|
|
971
1088
|
readonly imagery: "A calm room, daylight; your portrait.";
|
|
972
1089
|
readonly pages: readonly ["home", "how I work", "about", "faq", "contact"];
|
|
@@ -1035,6 +1152,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1035
1152
|
readonly moves: readonly ["auto", "page"];
|
|
1036
1153
|
readonly say: readonly ["People who come for care or advice read at their own pace: nothing turns by itself, nothing to flick through."];
|
|
1037
1154
|
};
|
|
1155
|
+
readonly art: {
|
|
1156
|
+
readonly preloader: readonly ["mark", "counter", "letters"];
|
|
1157
|
+
readonly cover: readonly ["flood", "wipe", "circle", "veil", "interstitial"];
|
|
1158
|
+
readonly seam: readonly ["drip", "torn"];
|
|
1159
|
+
readonly texture: readonly ["pattern", "material"];
|
|
1160
|
+
readonly signatures: readonly ["sections-stack", "ground-travel", "deal-in", "scroll-clock", "orbit", "circle-grow"];
|
|
1161
|
+
readonly secondScene: true;
|
|
1162
|
+
readonly say: readonly ["People who come for care or advice need calm and trust: no intro to wait through, no flood between pages, no torn edges, no spectacle."];
|
|
1163
|
+
};
|
|
1038
1164
|
readonly world: "high-key";
|
|
1039
1165
|
readonly imagery: "Your team and rooms; no stock doctors.";
|
|
1040
1166
|
readonly pages: readonly ["home", "treatments (services)", "team", "faq", "contact"];
|
|
@@ -1104,6 +1230,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1104
1230
|
readonly moves: readonly ["auto", "page"];
|
|
1105
1231
|
readonly say: readonly ["People who come for care or advice read at their own pace: nothing turns by itself, nothing to flick through."];
|
|
1106
1232
|
};
|
|
1233
|
+
readonly art: {
|
|
1234
|
+
readonly preloader: readonly ["mark", "counter", "letters"];
|
|
1235
|
+
readonly cover: readonly ["flood", "wipe", "circle", "veil", "interstitial"];
|
|
1236
|
+
readonly seam: readonly ["drip", "torn"];
|
|
1237
|
+
readonly texture: readonly ["pattern", "material"];
|
|
1238
|
+
readonly signatures: readonly ["sections-stack", "ground-travel", "deal-in", "scroll-clock", "orbit", "circle-grow"];
|
|
1239
|
+
readonly secondScene: true;
|
|
1240
|
+
readonly say: readonly ["People who come for care or advice need calm and trust: no intro to wait through, no flood between pages, no torn edges, no spectacle."];
|
|
1241
|
+
};
|
|
1107
1242
|
readonly world: "high-key";
|
|
1108
1243
|
readonly imagery: "Your clinic and team.";
|
|
1109
1244
|
readonly pages: readonly ["home", "treatments", "team", "faq", "contact"];
|
|
@@ -1171,6 +1306,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1171
1306
|
readonly moves: readonly [];
|
|
1172
1307
|
readonly say: readonly [];
|
|
1173
1308
|
};
|
|
1309
|
+
readonly art: {
|
|
1310
|
+
readonly preloader: readonly ["counter", "letters"];
|
|
1311
|
+
readonly cover: readonly ["veil", "flood"];
|
|
1312
|
+
readonly seam: readonly ["drip", "torn"];
|
|
1313
|
+
readonly texture: readonly [];
|
|
1314
|
+
readonly signatures: readonly ["deal-in", "orbit"];
|
|
1315
|
+
readonly secondScene: true;
|
|
1316
|
+
readonly say: readonly ["A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."];
|
|
1317
|
+
};
|
|
1174
1318
|
readonly world: "documentary";
|
|
1175
1319
|
readonly imagery: "Real animals you treat (with permission).";
|
|
1176
1320
|
readonly pages: readonly ["home", "services", "team", "faq", "contact"];
|
|
@@ -1234,6 +1378,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1234
1378
|
readonly moves: readonly [];
|
|
1235
1379
|
readonly say: readonly [];
|
|
1236
1380
|
};
|
|
1381
|
+
readonly art: {
|
|
1382
|
+
readonly preloader: readonly [];
|
|
1383
|
+
readonly cover: readonly [];
|
|
1384
|
+
readonly seam: readonly [];
|
|
1385
|
+
readonly texture: readonly [];
|
|
1386
|
+
readonly signatures: readonly [];
|
|
1387
|
+
readonly secondScene: false;
|
|
1388
|
+
readonly say: readonly [];
|
|
1389
|
+
};
|
|
1237
1390
|
readonly world: "low-key";
|
|
1238
1391
|
readonly imagery: "Your own food and room photos.";
|
|
1239
1392
|
readonly pages: readonly ["home", "menu", "about", "contact"];
|
|
@@ -1304,6 +1457,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1304
1457
|
readonly moves: readonly [];
|
|
1305
1458
|
readonly say: readonly [];
|
|
1306
1459
|
};
|
|
1460
|
+
readonly art: {
|
|
1461
|
+
readonly preloader: readonly ["counter"];
|
|
1462
|
+
readonly cover: readonly ["veil"];
|
|
1463
|
+
readonly seam: readonly [];
|
|
1464
|
+
readonly texture: readonly [];
|
|
1465
|
+
readonly signatures: readonly [];
|
|
1466
|
+
readonly secondScene: true;
|
|
1467
|
+
readonly say: readonly ["A second Scene on the home page, a counted intro and a picture veil are for the expressive types."];
|
|
1468
|
+
};
|
|
1307
1469
|
readonly world: "documentary";
|
|
1308
1470
|
readonly imagery: "Your bakes and drinks, close up.";
|
|
1309
1471
|
readonly pages: readonly ["home", "menu", "about", "contact"];
|
|
@@ -1371,6 +1533,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1371
1533
|
readonly moves: readonly [];
|
|
1372
1534
|
readonly say: readonly [];
|
|
1373
1535
|
};
|
|
1536
|
+
readonly art: {
|
|
1537
|
+
readonly preloader: readonly [];
|
|
1538
|
+
readonly cover: readonly [];
|
|
1539
|
+
readonly seam: readonly [];
|
|
1540
|
+
readonly texture: readonly [];
|
|
1541
|
+
readonly signatures: readonly [];
|
|
1542
|
+
readonly secondScene: false;
|
|
1543
|
+
readonly say: readonly [];
|
|
1544
|
+
};
|
|
1374
1545
|
readonly world: "nocturne";
|
|
1375
1546
|
readonly imagery: "The cellar, the bar, the bottle.";
|
|
1376
1547
|
readonly pages: readonly ["home", "menu or wines", "our story", "visit", "contact"];
|
|
@@ -1438,6 +1609,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1438
1609
|
readonly moves: readonly [];
|
|
1439
1610
|
readonly say: readonly [];
|
|
1440
1611
|
};
|
|
1612
|
+
readonly art: {
|
|
1613
|
+
readonly preloader: readonly [];
|
|
1614
|
+
readonly cover: readonly [];
|
|
1615
|
+
readonly seam: readonly [];
|
|
1616
|
+
readonly texture: readonly [];
|
|
1617
|
+
readonly signatures: readonly [];
|
|
1618
|
+
readonly secondScene: false;
|
|
1619
|
+
readonly say: readonly [];
|
|
1620
|
+
};
|
|
1441
1621
|
readonly world: "high-key";
|
|
1442
1622
|
readonly imagery: "Product photos on plain grounds; real people wearing them.";
|
|
1443
1623
|
readonly pages: readonly ["home", "collection", "product (detail)", "about", "contact"];
|
|
@@ -1500,6 +1680,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1500
1680
|
readonly moves: readonly [];
|
|
1501
1681
|
readonly say: readonly [];
|
|
1502
1682
|
};
|
|
1683
|
+
readonly art: {
|
|
1684
|
+
readonly preloader: readonly ["counter"];
|
|
1685
|
+
readonly cover: readonly ["veil"];
|
|
1686
|
+
readonly seam: readonly [];
|
|
1687
|
+
readonly texture: readonly [];
|
|
1688
|
+
readonly signatures: readonly [];
|
|
1689
|
+
readonly secondScene: true;
|
|
1690
|
+
readonly say: readonly ["A second Scene on the home page, a counted intro and a picture veil are for the expressive types."];
|
|
1691
|
+
};
|
|
1503
1692
|
readonly world: "macro";
|
|
1504
1693
|
readonly imagery: "Your own arrangements in daylight.";
|
|
1505
1694
|
readonly pages: readonly ["home", "flowers (collection)", "weddings and events", "about", "contact"];
|
|
@@ -1563,6 +1752,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1563
1752
|
readonly moves: readonly [];
|
|
1564
1753
|
readonly say: readonly [];
|
|
1565
1754
|
};
|
|
1755
|
+
readonly art: {
|
|
1756
|
+
readonly preloader: readonly [];
|
|
1757
|
+
readonly cover: readonly [];
|
|
1758
|
+
readonly seam: readonly [];
|
|
1759
|
+
readonly texture: readonly [];
|
|
1760
|
+
readonly signatures: readonly [];
|
|
1761
|
+
readonly secondScene: false;
|
|
1762
|
+
readonly say: readonly [];
|
|
1763
|
+
};
|
|
1566
1764
|
readonly world: "documentary";
|
|
1567
1765
|
readonly imagery: "Pieces in real rooms and on plain grounds.";
|
|
1568
1766
|
readonly pages: readonly ["home", "collection", "product (detail)", "about", "contact"];
|
|
@@ -1626,6 +1824,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1626
1824
|
readonly moves: readonly [];
|
|
1627
1825
|
readonly say: readonly ["A deck reads as a game; advice and causes are read, not flicked."];
|
|
1628
1826
|
};
|
|
1827
|
+
readonly art: {
|
|
1828
|
+
readonly preloader: readonly ["counter", "letters"];
|
|
1829
|
+
readonly cover: readonly ["veil", "flood"];
|
|
1830
|
+
readonly seam: readonly ["drip", "torn"];
|
|
1831
|
+
readonly texture: readonly [];
|
|
1832
|
+
readonly signatures: readonly ["deal-in", "orbit"];
|
|
1833
|
+
readonly secondScene: true;
|
|
1834
|
+
readonly say: readonly ["A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."];
|
|
1835
|
+
};
|
|
1629
1836
|
readonly world: "architectural";
|
|
1630
1837
|
readonly imagery: "Your portrait; diagrams over stock.";
|
|
1631
1838
|
readonly pages: readonly ["home", "services", "case studies", "about", "contact"];
|
|
@@ -1691,6 +1898,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1691
1898
|
readonly moves: readonly [];
|
|
1692
1899
|
readonly say: readonly ["A deck reads as a game; advice and causes are read, not flicked."];
|
|
1693
1900
|
};
|
|
1901
|
+
readonly art: {
|
|
1902
|
+
readonly preloader: readonly ["counter", "letters"];
|
|
1903
|
+
readonly cover: readonly ["veil", "flood"];
|
|
1904
|
+
readonly seam: readonly ["drip", "torn"];
|
|
1905
|
+
readonly texture: readonly [];
|
|
1906
|
+
readonly signatures: readonly ["deal-in", "orbit"];
|
|
1907
|
+
readonly secondScene: true;
|
|
1908
|
+
readonly say: readonly ["A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."];
|
|
1909
|
+
};
|
|
1694
1910
|
readonly world: "documentary";
|
|
1695
1911
|
readonly imagery: "Your portrait, working with people.";
|
|
1696
1912
|
readonly pages: readonly ["home", "how it works", "programmes", "about", "contact"];
|
|
@@ -1750,6 +1966,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1750
1966
|
readonly moves: readonly ["auto", "page"];
|
|
1751
1967
|
readonly say: readonly ["People who come for care or advice read at their own pace: nothing turns by itself, nothing to flick through."];
|
|
1752
1968
|
};
|
|
1969
|
+
readonly art: {
|
|
1970
|
+
readonly preloader: readonly ["mark", "counter", "letters"];
|
|
1971
|
+
readonly cover: readonly ["flood", "wipe", "circle", "veil", "interstitial"];
|
|
1972
|
+
readonly seam: readonly ["drip", "torn"];
|
|
1973
|
+
readonly texture: readonly ["pattern", "material"];
|
|
1974
|
+
readonly signatures: readonly ["sections-stack", "ground-travel", "deal-in", "scroll-clock", "orbit", "circle-grow"];
|
|
1975
|
+
readonly secondScene: true;
|
|
1976
|
+
readonly say: readonly ["People who come for care or advice need calm and trust: no intro to wait through, no flood between pages, no torn edges, no spectacle."];
|
|
1977
|
+
};
|
|
1753
1978
|
readonly world: "architectural";
|
|
1754
1979
|
readonly imagery: "Your team; your office.";
|
|
1755
1980
|
readonly pages: readonly ["home", "practice areas (services)", "team", "about", "contact"];
|
|
@@ -1820,6 +2045,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1820
2045
|
readonly moves: readonly [];
|
|
1821
2046
|
readonly say: readonly [];
|
|
1822
2047
|
};
|
|
2048
|
+
readonly art: {
|
|
2049
|
+
readonly preloader: readonly ["counter"];
|
|
2050
|
+
readonly cover: readonly ["veil"];
|
|
2051
|
+
readonly seam: readonly [];
|
|
2052
|
+
readonly texture: readonly [];
|
|
2053
|
+
readonly signatures: readonly [];
|
|
2054
|
+
readonly secondScene: true;
|
|
2055
|
+
readonly say: readonly ["A second Scene on the home page, a counted intro and a picture veil are for the expressive types."];
|
|
2056
|
+
};
|
|
1823
2057
|
readonly world: "architectural";
|
|
1824
2058
|
readonly imagery: "Your own property photos; never stock.";
|
|
1825
2059
|
readonly pages: readonly ["home", "properties (collection)", "property (detail)", "about", "contact"];
|
|
@@ -1886,6 +2120,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1886
2120
|
readonly moves: readonly [];
|
|
1887
2121
|
readonly say: readonly ["A deck reads as a game; advice and causes are read, not flicked."];
|
|
1888
2122
|
};
|
|
2123
|
+
readonly art: {
|
|
2124
|
+
readonly preloader: readonly ["counter", "letters"];
|
|
2125
|
+
readonly cover: readonly ["veil", "flood"];
|
|
2126
|
+
readonly seam: readonly ["drip", "torn"];
|
|
2127
|
+
readonly texture: readonly [];
|
|
2128
|
+
readonly signatures: readonly ["deal-in", "orbit"];
|
|
2129
|
+
readonly secondScene: true;
|
|
2130
|
+
readonly say: readonly ["A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."];
|
|
2131
|
+
};
|
|
1889
2132
|
readonly world: "documentary";
|
|
1890
2133
|
readonly imagery: "Real people you help (with permission).";
|
|
1891
2134
|
readonly pages: readonly ["home", "what we do", "stories", "get involved", "contact"];
|
|
@@ -1945,6 +2188,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
1945
2188
|
readonly moves: readonly [];
|
|
1946
2189
|
readonly say: readonly [];
|
|
1947
2190
|
};
|
|
2191
|
+
readonly art: {
|
|
2192
|
+
readonly preloader: readonly [];
|
|
2193
|
+
readonly cover: readonly [];
|
|
2194
|
+
readonly seam: readonly [];
|
|
2195
|
+
readonly texture: readonly [];
|
|
2196
|
+
readonly signatures: readonly [];
|
|
2197
|
+
readonly secondScene: false;
|
|
2198
|
+
readonly say: readonly [];
|
|
2199
|
+
};
|
|
1948
2200
|
readonly world: "nocturne";
|
|
1949
2201
|
readonly imagery: "Real events at your venue.";
|
|
1950
2202
|
readonly pages: readonly ["home", "spaces", "gallery", "faq", "contact"];
|
|
@@ -2011,6 +2263,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2011
2263
|
readonly moves: readonly [];
|
|
2012
2264
|
readonly say: readonly [];
|
|
2013
2265
|
};
|
|
2266
|
+
readonly art: {
|
|
2267
|
+
readonly preloader: readonly [];
|
|
2268
|
+
readonly cover: readonly [];
|
|
2269
|
+
readonly seam: readonly [];
|
|
2270
|
+
readonly texture: readonly [];
|
|
2271
|
+
readonly signatures: readonly [];
|
|
2272
|
+
readonly secondScene: false;
|
|
2273
|
+
readonly say: readonly [];
|
|
2274
|
+
};
|
|
2014
2275
|
readonly world: "documentary";
|
|
2015
2276
|
readonly imagery: "Rooms, views, breakfast; your own photos.";
|
|
2016
2277
|
readonly pages: readonly ["home", "rooms (collection)", "room (detail)", "about", "contact"];
|
|
@@ -2077,6 +2338,15 @@ declare const SPEC_BUSINESS_TYPES: readonly [{
|
|
|
2077
2338
|
readonly moves: readonly [];
|
|
2078
2339
|
readonly say: readonly [];
|
|
2079
2340
|
};
|
|
2341
|
+
readonly art: {
|
|
2342
|
+
readonly preloader: readonly ["counter"];
|
|
2343
|
+
readonly cover: readonly ["veil"];
|
|
2344
|
+
readonly seam: readonly [];
|
|
2345
|
+
readonly texture: readonly [];
|
|
2346
|
+
readonly signatures: readonly [];
|
|
2347
|
+
readonly secondScene: true;
|
|
2348
|
+
readonly say: readonly ["A second Scene on the home page, a counted intro and a picture veil are for the expressive types."];
|
|
2349
|
+
};
|
|
2080
2350
|
readonly world: "documentary";
|
|
2081
2351
|
readonly imagery: "Real classes (with permission).";
|
|
2082
2352
|
readonly pages: readonly ["home", "classes", "prices", "about", "contact"];
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AROUND_TEXT_CHARS, MEMORY_TURNS } from './budget';
|
|
2
2
|
import { AssistIssue, AssistIssueCode, Brief, HandleMap } from './brief';
|
|
3
|
-
import type { SerializedNode } from '@vectoriox/iox-ui/generation-core';
|
|
3
|
+
import type { KeptReason, SerializedNode } from '@vectoriox/iox-ui/generation-core';
|
|
4
4
|
|
|
5
5
|
import { FieldChange } from './field-edits';
|
|
6
|
+
import { AssistPhoto, MAX_ASSIST_PHOTOS, PhotoDraft, PhotoGrouping } from './photo-drafts';
|
|
6
7
|
import { FieldEdit } from './fields-schema';
|
|
7
8
|
import { SectionChange, SectionEdit } from './page-sections';
|
|
8
9
|
import { PageChangeOp, SchemeEdit, SizeEdit, StyleChange, StyleEdit } from './page-style';
|
|
@@ -64,6 +65,10 @@ export interface AssistTurnRequest {
|
|
|
64
65
|
readonly scope?: AssistScope;
|
|
65
66
|
/** A builder surface: the page as the owner names it. */
|
|
66
67
|
readonly page?: { readonly name: string; readonly route: string };
|
|
68
|
+
/** S3: the photos the owner uploaded through `AssistRouteKey.Photos` (1–20), in the order given. */
|
|
69
|
+
readonly photos?: ReadonlyArray<AssistPhoto>;
|
|
70
|
+
/** S3: one item per photo, or one item for all. */
|
|
71
|
+
readonly grouping?: PhotoGrouping;
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
/** What a turn proposes, per family: a field's value (`fields`), a part's words (`words`), an element's style or a section's scheme (`style`). */
|
|
@@ -124,12 +129,79 @@ export interface AssistTurn {
|
|
|
124
129
|
readonly credits?: number;
|
|
125
130
|
/** ISO time. */
|
|
126
131
|
readonly createdAt: string;
|
|
132
|
+
/** S3: the type the drafts are of. */
|
|
133
|
+
readonly contentType?: string;
|
|
134
|
+
/** S3: the photos' groups read so far, of how many — "Reading photo 4 of 6". */
|
|
135
|
+
readonly progress?: AssistTurnProgress;
|
|
136
|
+
/** S3: one draft per group, as read — nothing written until the owner runs them. */
|
|
137
|
+
readonly drafts?: ReadonlyArray<PhotoDraft>;
|
|
138
|
+
/** A Run surface: what "Create N drafts" wrote, and its Undo. */
|
|
139
|
+
readonly run?: AssistRunView;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface AssistTurnProgress {
|
|
143
|
+
readonly done: number;
|
|
144
|
+
readonly of: number;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** A Run's life (plan §3e `Run`): written by the runner (resumable), undone by it. */
|
|
148
|
+
export enum AssistRunStatus {
|
|
149
|
+
Writing = 'writing',
|
|
150
|
+
Written = 'written',
|
|
151
|
+
Undoing = 'undoing',
|
|
152
|
+
Undone = 'undone',
|
|
153
|
+
Failed = 'failed',
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const RUN_BUSY: ReadonlySet<AssistRunStatus> = new Set([AssistRunStatus.Writing, AssistRunStatus.Undoing]);
|
|
157
|
+
export const isRunBusy = (status: AssistRunStatus | undefined): boolean => !!status && RUN_BUSY.has(status);
|
|
158
|
+
|
|
159
|
+
/** `POST …/turns/:turnId/run` — which drafts to create (group handles) and the owner's values for every draft ("City for all"). */
|
|
160
|
+
export interface AssistRunRequest {
|
|
161
|
+
readonly picks: ReadonlyArray<string>;
|
|
162
|
+
readonly fill?: Readonly<Record<string, string>>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** A draft Undo kept, and why — said to the owner (`edited` or `published`: generation-core's `KeptReason`, one vocabulary with a site build's Undo). */
|
|
166
|
+
export interface KeptDraft {
|
|
167
|
+
readonly id: string;
|
|
168
|
+
readonly label: string;
|
|
169
|
+
readonly reason: KeptReason;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface AssistRunView {
|
|
173
|
+
readonly status: AssistRunStatus;
|
|
174
|
+
/** Items written (ids, in pick order). */
|
|
175
|
+
readonly items: ReadonlyArray<string>;
|
|
176
|
+
/** Undo: how many drafts it removed, the ones it kept, how many uploads went with them. */
|
|
177
|
+
readonly removed?: number;
|
|
178
|
+
readonly kept?: ReadonlyArray<KeptDraft>;
|
|
179
|
+
readonly photosRemoved?: number;
|
|
180
|
+
readonly error?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** What the server refuses in a run request against the turn's drafts: none, unknown or repeated picks. */
|
|
184
|
+
export function validateRunRequest(req: unknown, drafts: ReadonlyArray<PhotoDraft>): AssistIssue[] {
|
|
185
|
+
const issue = (code: AssistIssueCode, message: string, handle?: string): AssistIssue => ({ code, message, ...(handle ? { handle } : {}) });
|
|
186
|
+
if (!isObject(req)) return [issue(AssistIssueCode.BadRequest, 'a run is an object')];
|
|
187
|
+
const picks = req['picks'];
|
|
188
|
+
if (!Array.isArray(picks) || !picks.length || !picks.every(nonEmpty)) return [issue(AssistIssueCode.BadRequest, 'picks name at least one draft')];
|
|
189
|
+
const known = new Set(drafts.map(d => d.group));
|
|
190
|
+
return [
|
|
191
|
+
...picks.filter(p => !known.has(p)).map(p => issue(AssistIssueCode.UnknownHandle, `"${p}" is not a draft of this turn`, p)),
|
|
192
|
+
...(new Set(picks).size !== picks.length ? [issue(AssistIssueCode.Duplicate, 'a draft is picked twice')] : []),
|
|
193
|
+
...(req['fill'] !== undefined && !isObject(req['fill']) ? [issue(AssistIssueCode.BadRequest, 'fill is an object of field → text')] : []),
|
|
194
|
+
];
|
|
127
195
|
}
|
|
128
196
|
|
|
129
197
|
export enum AssistRouteKey {
|
|
130
198
|
Turns = 'turns',
|
|
131
199
|
Turn = 'turn',
|
|
132
200
|
Session = 'session',
|
|
201
|
+
/** S3: one photo up, through the normal upload path, marked as this flow's (Undo may remove it). */
|
|
202
|
+
Photos = 'photos',
|
|
203
|
+
Run = 'run',
|
|
204
|
+
Undo = 'undo',
|
|
133
205
|
}
|
|
134
206
|
|
|
135
207
|
/** The path templates, `:param` filled by `assistPath` — neither side hand-types a URL. */
|
|
@@ -137,6 +209,9 @@ export const ASSIST_ROUTES: Readonly<Record<AssistRouteKey, string>> = {
|
|
|
137
209
|
[AssistRouteKey.Turns]: 'admin/api/org/:orgId/ai/assist/turns',
|
|
138
210
|
[AssistRouteKey.Turn]: 'admin/api/org/:orgId/ai/assist/turns/:turnId',
|
|
139
211
|
[AssistRouteKey.Session]: 'admin/api/org/:orgId/ai/assist/sessions/:sessionKey',
|
|
212
|
+
[AssistRouteKey.Photos]: 'admin/api/org/:orgId/ai/assist/photos',
|
|
213
|
+
[AssistRouteKey.Run]: 'admin/api/org/:orgId/ai/assist/turns/:turnId/run',
|
|
214
|
+
[AssistRouteKey.Undo]: 'admin/api/org/:orgId/ai/assist/turns/:turnId/undo',
|
|
140
215
|
};
|
|
141
216
|
|
|
142
217
|
export class AssistPathError extends Error {}
|
|
@@ -195,6 +270,7 @@ function outcome(turn: AssistTurn): string {
|
|
|
195
270
|
case AssistTurnStatus.Refused: return `refused: ${turn.refusal?.message ?? ''}`.trim();
|
|
196
271
|
case AssistTurnStatus.Failed: return 'failed';
|
|
197
272
|
case AssistTurnStatus.Done: {
|
|
273
|
+
if (turn.drafts?.length) return `drafted ${turn.drafts.length} item(s)${turn.contentType ? ` of ${turn.contentType}` : ''} from photos`;
|
|
198
274
|
const changed = named(turn.changes);
|
|
199
275
|
const kept = named(turn.kept);
|
|
200
276
|
const head = changed ? `changed ${changed}` : `no change${turn.reply ? `: ${turn.reply}` : ''}`;
|
|
@@ -241,6 +317,20 @@ const isOwnerEdited = (v: unknown): boolean => v === undefined || (Array.isArray
|
|
|
241
317
|
export const isSessionOf = (key: unknown, surface: AssistSurface): boolean =>
|
|
242
318
|
nonEmpty(key) && (key === surface || key.startsWith(`${surface}${SESSION_SEPARATOR}`));
|
|
243
319
|
|
|
320
|
+
const GROUPINGS: ReadonlySet<string> = new Set(Object.values(PhotoGrouping));
|
|
321
|
+
|
|
322
|
+
/** S3's photos: 1–20, each a storage key, none twice; a grouping. */
|
|
323
|
+
function photoIssues(photos: unknown, grouping: unknown): AssistIssue[] {
|
|
324
|
+
const issue = (message: string): AssistIssue => ({ code: AssistIssueCode.BadPhotos, message });
|
|
325
|
+
const out: AssistIssue[] = [];
|
|
326
|
+
if (!Array.isArray(photos) || !photos.length) out.push(issue('a photos turn names its photos'));
|
|
327
|
+
else if (photos.length > MAX_ASSIST_PHOTOS) out.push(issue(`at most ${MAX_ASSIST_PHOTOS} photos a turn`));
|
|
328
|
+
else if (!photos.every(p => isObject(p) && nonEmpty(p['key']))) out.push(issue('each photo is its storage key'));
|
|
329
|
+
else if (new Set(photos.map(p => (p as Record<string, unknown>)['key'])).size !== photos.length) out.push(issue('a photo is named twice'));
|
|
330
|
+
if (!GROUPINGS.has(String(grouping))) out.push({ code: AssistIssueCode.BadRequest, message: `the grouping is one of ${[...GROUPINGS].join(', ')}` });
|
|
331
|
+
return out;
|
|
332
|
+
}
|
|
333
|
+
|
|
244
334
|
/** What the server refuses in a posted turn before anything runs. Empty = accepted. */
|
|
245
335
|
export function validateTurnRequest(req: unknown): AssistIssue[] {
|
|
246
336
|
const issue = (code: AssistIssueCode, message: string): AssistIssue => ({ code, message });
|
|
@@ -250,10 +340,13 @@ export function validateTurnRequest(req: unknown): AssistIssue[] {
|
|
|
250
340
|
if (!spec) return [issue(AssistIssueCode.UnknownSurface, `"${String(surface)}" is not a surface`)];
|
|
251
341
|
const sentence = req['sentence'];
|
|
252
342
|
const brief = req['brief'];
|
|
343
|
+
// A surface its screen routes takes the owner's notes, which may be empty — but are still a text.
|
|
344
|
+
const sentenceMissing = spec.routed ? !nonEmpty(sentence) : typeof sentence !== 'string';
|
|
253
345
|
return [
|
|
254
346
|
...(spec.status !== SurfaceStatus.Built ? [issue(AssistIssueCode.SurfaceNotBuilt, `${surface} is not built yet`)] : []),
|
|
255
347
|
...(!isSessionOf(req['sessionKey'], surface) ? [issue(AssistIssueCode.BadRequest, `the session key is not a ${surface} session`)] : []),
|
|
256
|
-
...(
|
|
348
|
+
...(sentenceMissing ? [issue(AssistIssueCode.EmptySentence, 'the sentence is empty')] : []),
|
|
349
|
+
...(spec.readsPhotos && spec.commit === CommitKind.Run ? photoIssues(req['photos'], req['grouping']) : []),
|
|
257
350
|
...(nonEmpty(sentence) && sentence.length > MAX_SENTENCE_CHARS ? [issue(AssistIssueCode.SentenceTooLong, `the sentence is over ${MAX_SENTENCE_CHARS} characters`)] : []),
|
|
258
351
|
...(!nonEmpty(req['model']) ? [issue(AssistIssueCode.BadRequest, 'no model choice (auto or a model id)')] : []),
|
|
259
352
|
...(!isObject(brief) || brief['surface'] !== surface ? [issue(AssistIssueCode.BadRequest, `the brief is not a ${surface} brief`)] : []),
|
package/src/assist-core/brief.ts
CHANGED
|
@@ -67,6 +67,10 @@ export enum AssistIssueCode {
|
|
|
67
67
|
AvoidWord = 'avoidWord',
|
|
68
68
|
/** A look whose colours fail the contrast audit in a mode the site is worn in (family `look`, R4). */
|
|
69
69
|
Contrast = 'contrast',
|
|
70
|
+
/** S3: a value said to come from the owner's notes when the owner gave none. */
|
|
71
|
+
NotFromOwner = 'notFromOwner',
|
|
72
|
+
/** S3: the photos a turn names are not this flow's uploads, or too many / none. */
|
|
73
|
+
BadPhotos = 'badPhotos',
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
export interface AssistIssue {
|