@aglyn/plugins-ai 1.0.0-beta.266 → 1.0.0-beta.269

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/package.json +18 -18
  2. package/src/lib/components/ai-job-site.d.ts +8 -1
  3. package/src/lib/components/ai-job-site.js +7 -0
  4. package/src/lib/components/ai-job-site.js.map +1 -1
  5. package/src/lib/components/ai-site-build-page.component.js +37 -0
  6. package/src/lib/components/ai-site-build-page.component.js.map +1 -1
  7. package/src/lib/components/ai-site-start-card.component.js +25 -6
  8. package/src/lib/components/ai-site-start-card.component.js.map +1 -1
  9. package/src/lib/components/ai-site-start-steps.component.d.ts +8 -2
  10. package/src/lib/components/ai-site-start-steps.component.js +55 -26
  11. package/src/lib/components/ai-site-start-steps.component.js.map +1 -1
  12. package/src/lib/components/ai-site-start-tracking.d.ts +11 -3
  13. package/src/lib/components/ai-site-start-tracking.js +28 -9
  14. package/src/lib/components/ai-site-start-tracking.js.map +1 -1
  15. package/src/lib/components/assist-jobs-drawer.component.js +24 -2
  16. package/src/lib/components/assist-jobs-drawer.component.js.map +1 -1
  17. package/src/lib/jobs/ai-empty-site-sweep.d.ts +154 -0
  18. package/src/lib/jobs/ai-empty-site-sweep.js +346 -0
  19. package/src/lib/jobs/ai-empty-site-sweep.js.map +1 -0
  20. package/src/lib/jobs/ai-job-page-language.d.ts +7 -1
  21. package/src/lib/jobs/ai-job-page-language.js +16 -3
  22. package/src/lib/jobs/ai-job-page-language.js.map +1 -1
  23. package/src/lib/jobs/ai-job-site-look.d.ts +2 -1
  24. package/src/lib/jobs/ai-job-site-look.js +6 -2
  25. package/src/lib/jobs/ai-job-site-look.js.map +1 -1
  26. package/src/lib/jobs/ai-job-site-step.js +11 -6
  27. package/src/lib/jobs/ai-job-site-step.js.map +1 -1
  28. package/src/lib/jobs/ai-jobs-beat.d.ts +11 -3
  29. package/src/lib/jobs/ai-jobs-beat.js +23 -6
  30. package/src/lib/jobs/ai-jobs-beat.js.map +1 -1
  31. package/src/lib/jobs/ai-jobs.js +46 -7
  32. package/src/lib/jobs/ai-jobs.js.map +1 -1
  33. package/src/lib/jobs/ai-layout-stock-photos.d.ts +43 -0
  34. package/src/lib/jobs/ai-layout-stock-photos.js +735 -22
  35. package/src/lib/jobs/ai-layout-stock-photos.js.map +1 -1
  36. package/src/lib/jobs/fixtures/ai-stock-photo-agl3923-recordings.d.ts +35 -0
  37. package/src/lib/jobs/fixtures/ai-stock-photo-agl3923-recordings.js +379 -0
  38. package/src/lib/jobs/fixtures/ai-stock-photo-agl3923-recordings.js.map +1 -0
  39. package/src/lib/jobs/fixtures/ai-stock-photo-brightvale-recordings.d.ts +35 -0
  40. package/src/lib/jobs/fixtures/ai-stock-photo-brightvale-recordings.js +294 -0
  41. package/src/lib/jobs/fixtures/ai-stock-photo-brightvale-recordings.js.map +1 -0
  42. package/src/lib/jobs/fixtures/ai-stock-photo-mexicano-recordings.d.ts +31 -0
  43. package/src/lib/jobs/fixtures/ai-stock-photo-mexicano-recordings.js +325 -0
  44. package/src/lib/jobs/fixtures/ai-stock-photo-mexicano-recordings.js.map +1 -0
  45. package/src/lib/layout-language/ai-layout-design.js +5 -0
  46. package/src/lib/layout-language/ai-layout-design.js.map +1 -1
  47. package/src/lib/layout-language/ai-layout-motion.d.ts +60 -7
  48. package/src/lib/layout-language/ai-layout-motion.js +231 -4
  49. package/src/lib/layout-language/ai-layout-motion.js.map +1 -1
  50. package/src/lib/layout-language/ai-layout-pictures.d.ts +8 -0
  51. package/src/lib/layout-language/ai-layout-pictures.js +68 -4
  52. package/src/lib/layout-language/ai-layout-pictures.js.map +1 -1
  53. package/src/lib/model/ai-jobs.types.d.ts +20 -0
  54. package/src/lib/model/ai-jobs.types.js.map +1 -1
  55. package/src/lib/model/ai-site-look.d.ts +10 -1
  56. package/src/lib/model/ai-site-look.js +14 -3
  57. package/src/lib/model/ai-site-look.js.map +1 -1
  58. package/src/lib/model/ai-site-start-handoff.d.ts +49 -0
  59. package/src/lib/model/ai-site-start-handoff.js +88 -0
  60. package/src/lib/model/ai-site-start-handoff.js.map +1 -0
@@ -158,6 +158,15 @@ export declare const AI_LAYOUT_STOCK_SEARCHES_PER_PAGE = 18;
158
158
  export declare const AI_LAYOUT_STOCK_PICK_WINDOW = 40;
159
159
  /** The largest photo copied: inside one direct upload. */
160
160
  export declare const AI_LAYOUT_STOCK_MAX_BYTES: number;
161
+ /**
162
+ * The media library's refusals that are about ONE photo's own bytes, as the
163
+ * console's `ingestMedia` returns them (AGL-3923): 415 for a type or contents
164
+ * it does not accept, 413 for a photo too large to store, 451 for a file
165
+ * held in quarantine. The slot then tries its next hit, and the page goes on
166
+ * storing. Every other refusal (403 from the storage band, the site's scope
167
+ * or a lockdown; 500) holds for the whole page.
168
+ */
169
+ export declare const AI_STOCK_PHOTO_OWN_REFUSALS: ReadonlySet<number>;
161
170
  /**
162
171
  * The unit job input naming the screen drafts the job's other pages were
163
172
  * written to, whose photos a page does not place again (AGL-3660).
@@ -709,6 +718,40 @@ export declare function aiStockIsAbbreviation(businessType: string): boolean;
709
718
  export declare function aiStockNamedKind(text: string): string;
710
719
  /** What a kind of site's pictures are searched and judged by ({@link KIND_SUBJECTS}); `null` for a kind not listed. */
711
720
  export declare function aiStockKindTerms(kind: string): AiStockSiteTerms | null;
721
+ /** A kind of site's common photos as a world to search and judge by ({@link KIND_GENERIC}); `null` for a kind with no set. */
722
+ export declare function aiStockKindGenericTerms(kind: string): AiStockSiteTerms | null;
723
+ /**
724
+ * Whether a site's world is only its own words (AGL-3923): no craft this
725
+ * module lists and no kind of site named it, so its broad searches are its
726
+ * business and its craft read back ("freelencing"), which a library may not
727
+ * know at all.
728
+ */
729
+ export declare function aiStockWorldIsUnlisted(terms: Pick<AiStockSiteTerms, 'business' | 'craft' | 'broad'>): boolean;
730
+ /**
731
+ * What a picture is searched by once nothing narrower found it a photo
732
+ * (AGL-3923), widest last.
733
+ *
734
+ * - A site whose world is its own words alone ({@link aiStockWorldIsUnlisted})
735
+ * widens to the kind of site the person picked, the kind its starter is the
736
+ * shape of, and last the kind's own common photos ({@link KIND_GENERIC}),
737
+ * else its starter's.
738
+ * - Any other site widens only to its kind's own common photos, and only
739
+ * where its world agrees with that kind ({@link worldOfKind}): a portfolio
740
+ * read from its kind takes art supplies before no photo at all, and a
741
+ * barbecue caterer whose kind says nothing of food never takes an office
742
+ * (AGL-3831). A kind with no set keeps a slot nothing fits without a photo.
743
+ *
744
+ * A rung that would search what an earlier one did is left out.
745
+ *
746
+ * The beta.265 Kasvora Marketing Solutions start (job BK3r4I8bF1) typed its
747
+ * business as "Freelencing site offer services": its world was the one word
748
+ * "freelencing", which no library tags, so its cover hero searched it, found
749
+ * nothing, and shipped a flat dark band with no photo.
750
+ */
751
+ export declare function aiStockWiderTerms(terms: Pick<AiStockSiteTerms, 'business' | 'craft' | 'broad' | 'domain'>, kind: string): Array<{
752
+ rung: 'kind' | 'starter' | 'generic';
753
+ terms: AiStockSiteTerms;
754
+ }>;
712
755
  /**
713
756
  * The first word of a text that names a craft {@link CRAFT_KIN} lists, as
714
757
  * its table writes it: "gym" of "Synchronicity Gym", "law" of "Hartwell