@allyhub/sdk 0.3.0 → 0.4.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.
Files changed (143) hide show
  1. package/dist/free.d.ts +2 -2
  2. package/dist/index.d.ts +2 -9
  3. package/dist/index.js +1 -1
  4. package/dist/module.d.ts +2 -3
  5. package/dist/module.js +1 -1
  6. package/dist/parts.d.ts +2 -2
  7. package/dist/piece.d.ts +7 -32
  8. package/dist/piece.js +1 -1
  9. package/dist/props.d.ts +53 -10
  10. package/dist/slides.d.ts +8 -0
  11. package/dist/slides.js +2 -0
  12. package/docs/README.md +1 -1
  13. package/docs/batches.md +2 -2
  14. package/docs/defaults.md +106 -3
  15. package/docs/docs.md +1 -1
  16. package/docs/project.md +5 -5
  17. package/docs/sheets.md +1 -1
  18. package/docs/slides.md +182 -80
  19. package/node_modules/@allyhub-next/audio/package.json +1 -1
  20. package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +22 -0
  21. package/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  22. package/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1494 -0
  23. package/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
  24. package/node_modules/@allyhub-next/formats/dist/index.d.ts +2 -0
  25. package/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  26. package/node_modules/@allyhub-next/formats/dist/items.d.ts +21 -0
  27. package/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  28. package/node_modules/@allyhub-next/formats/dist/note-shape.d.ts +39 -0
  29. package/node_modules/@allyhub-next/formats/dist/note-shape.js +2 -0
  30. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +418 -0
  31. package/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  32. package/node_modules/@allyhub-next/formats/package.json +1 -1
  33. package/node_modules/@allyhub-next/protocol/dist/app.d.ts +0 -64
  34. package/node_modules/@allyhub-next/protocol/dist/app.js +1 -1
  35. package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +0 -17
  36. package/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  37. package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +0 -4
  38. package/node_modules/@allyhub-next/protocol/dist/cli.js +1 -1
  39. package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +9 -26
  40. package/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  41. package/node_modules/@allyhub-next/protocol/dist/index.d.ts +1 -0
  42. package/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  43. package/node_modules/@allyhub-next/protocol/dist/notes.d.ts +163 -0
  44. package/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
  45. package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +1 -1
  46. package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +3 -0
  47. package/node_modules/@allyhub-next/protocol/dist/runtimes.js +1 -1
  48. package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +37 -0
  49. package/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  50. package/node_modules/@allyhub-next/protocol/package.json +1 -1
  51. package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +5 -1
  52. package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +1 -0
  53. package/node_modules/@allyhub-next/runtimes/dist/index.js +1 -1
  54. package/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +3 -0
  55. package/node_modules/@allyhub-next/runtimes/dist/node-program.js +2 -0
  56. package/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +65 -0
  57. package/node_modules/@allyhub-next/runtimes/dist/packages.js +4 -0
  58. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +2 -2
  59. package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
  60. package/node_modules/@allyhub-next/runtimes/dist/unpack.js +1 -1
  61. package/node_modules/@allyhub-next/runtimes/package.json +5 -1
  62. package/node_modules/@allyhub-next/runtimes/pins/docx/package-lock.json +67 -0
  63. package/node_modules/@allyhub-next/runtimes/pins/docx/package.json +9 -0
  64. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package-lock.json +2533 -0
  65. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +8 -0
  66. package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +753 -0
  67. package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package.json +14 -0
  68. package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +950 -0
  69. package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package.json +8 -0
  70. package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +227 -0
  71. package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +8 -0
  72. package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +105 -0
  73. package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +8 -0
  74. package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +128 -0
  75. package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +9 -0
  76. package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +5 -24
  77. package/node_modules/@allyhub-next/scenery/package.json +1 -1
  78. package/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
  79. package/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +129 -0
  80. package/node_modules/@allyhub-next/slides-core/dist/animation.js +2 -0
  81. package/node_modules/@allyhub-next/slides-core/dist/api.d.ts +649 -0
  82. package/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
  83. package/node_modules/@allyhub-next/slides-core/dist/capabilities.d.ts +18 -0
  84. package/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
  85. package/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +165 -0
  86. package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
  87. package/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +11 -0
  88. package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
  89. package/node_modules/@allyhub-next/slides-core/dist/chart.d.ts +184 -0
  90. package/node_modules/@allyhub-next/slides-core/dist/chart.js +2 -0
  91. package/node_modules/@allyhub-next/slides-core/dist/check.d.ts +7 -0
  92. package/node_modules/@allyhub-next/slides-core/dist/check.js +2 -0
  93. package/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +146 -0
  94. package/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
  95. package/node_modules/@allyhub-next/slides-core/dist/file.d.ts +109 -0
  96. package/node_modules/@allyhub-next/slides-core/dist/file.js +4 -0
  97. package/node_modules/@allyhub-next/slides-core/dist/index.d.ts +21 -0
  98. package/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
  99. package/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +34 -0
  100. package/node_modules/@allyhub-next/slides-core/dist/measure.js +2 -0
  101. package/node_modules/@allyhub-next/slides-core/dist/model.d.ts +278 -0
  102. package/node_modules/@allyhub-next/slides-core/dist/model.js +2 -0
  103. package/node_modules/@allyhub-next/slides-core/dist/office.d.ts +58 -0
  104. package/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
  105. package/node_modules/@allyhub-next/slides-core/dist/path.d.ts +6 -0
  106. package/node_modules/@allyhub-next/slides-core/dist/path.js +2 -0
  107. package/node_modules/@allyhub-next/slides-core/dist/placeholders.d.ts +7 -0
  108. package/node_modules/@allyhub-next/slides-core/dist/placeholders.js +2 -0
  109. package/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +181 -0
  110. package/node_modules/@allyhub-next/slides-core/dist/resolve.js +2 -0
  111. package/node_modules/@allyhub-next/slides-core/dist/script.d.ts +43 -0
  112. package/node_modules/@allyhub-next/slides-core/dist/script.js +3 -0
  113. package/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +63 -0
  114. package/node_modules/@allyhub-next/slides-core/dist/stage.js +2 -0
  115. package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +23 -0
  116. package/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
  117. package/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +72 -0
  118. package/node_modules/@allyhub-next/slides-core/dist/theme.js +2 -0
  119. package/node_modules/@allyhub-next/slides-core/dist/units.d.ts +35 -0
  120. package/node_modules/@allyhub-next/slides-core/dist/units.js +2 -0
  121. package/node_modules/@allyhub-next/slides-core/package.json +14 -0
  122. package/node_modules/@allyhub-next/video-core/dist/export.d.ts +6 -5
  123. package/node_modules/@allyhub-next/video-core/dist/export.js +1 -1
  124. package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +173 -4
  125. package/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  126. package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +6 -13
  127. package/node_modules/@allyhub-next/video-core/dist/formats.js +1 -1
  128. package/node_modules/@allyhub-next/video-core/dist/index.d.ts +0 -1
  129. package/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  130. package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +83 -0
  131. package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +8 -9
  132. package/node_modules/@allyhub-next/video-core/dist/piece.js +1 -1
  133. package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +5 -1
  134. package/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  135. package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +0 -2
  136. package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +4 -0
  137. package/node_modules/@allyhub-next/video-core/dist/script.d.ts +8 -0
  138. package/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  139. package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +34 -1
  140. package/node_modules/@allyhub-next/video-core/package.json +1 -1
  141. package/package.json +15 -8
  142. package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +0 -37
  143. package/node_modules/@allyhub-next/video-core/dist/slides.js +0 -2
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as o}from"zod";import{SCRIPT_NAME as u}from"./script.js";export const SLIDES_FILE="slides.yaml",slidesFileFor=r=>`${r}/${SLIDES_FILE}`;const a=o.string().regex(u,"A name is letters, digits, _ and -.");export const THEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],TEXT_ALIGNS=["l","ctr","r","just"],SHAPE_GEOMETRIES=["rect","roundRect","ellipse","triangle","rightArrow","line"],ANIMATION_EFFECTS=["appear","fade","wipe","fly-in","zoom","disappear","fade-out","wipe-out","fly-out","zoom-out","pulse","path"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right"],LINE_DASHES=["solid","sysDash","sysDot","dash","dashDot","lgDash","lgDashDot","lgDashDotDot"],LINE_ENDS=["none","triangle","arrow","stealth","diamond","oval"],FrameSchema=o.strictObject({x:o.number(),y:o.number(),w:o.number().nonnegative(),h:o.number().nonnegative()}),ColorFileSchema=o.union([o.enum(THEME_COLORS),o.string().regex(/^#[0-9A-Fa-f]{6}$/u,"a theme colour or #RRGGBB")]),TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),color:ColorFileSchema.optional(),font:o.string().min(1).optional(),align:o.enum(TEXT_ALIGNS).optional()});const h=o.strictObject({left:o.number().min(0).max(1).optional(),top:o.number().min(0).max(1).optional(),right:o.number().min(0).max(1).optional(),bottom:o.number().min(0).max(1).optional()}),p=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(p),o.record(o.string(),p)]));export const CHART_TYPES=["column-clustered","column-stacked","column-stacked-100","bar-clustered","bar-stacked","bar-stacked-100","line","line-markers","area","area-stacked","area-stacked-100","pie","doughnut"],CHART_LEGEND_POSITIONS=["bottom","top","left","right"];const d=o.strictObject({min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional(),gridline_color:ColorFileSchema.optional(),line_color:ColorFileSchema.optional()});export const ChartSchema=o.strictObject({type:o.enum(CHART_TYPES),data:o.string().min(1).optional(),categories:o.union([o.string().min(1),o.array(o.string())]),series:o.array(o.union([o.string().min(1),o.strictObject({name:o.string().min(1),values:o.array(o.number().nullable()).optional(),color:ColorFileSchema.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()})])).min(1),legend:o.enum(CHART_LEGEND_POSITIONS).optional(),labels:o.union([o.boolean(),o.strictObject({value:o.boolean().optional(),percentage:o.boolean().optional(),category:o.boolean().optional(),series:o.boolean().optional(),format:o.string().min(1).optional(),position:o.enum(["outEnd","inEnd","ctr","inBase","t","b","l","r","bestFit"]).optional(),size:o.number().positive().optional(),color:ColorFileSchema.optional()})]).optional(),gap_width:o.number().min(0).max(500).optional(),overlap:o.number().min(-100).max(100).optional(),vary_by_categories:o.boolean().optional(),hole_size:o.number().min(10).max(90).optional(),value_axis:d.optional(),category_axis:d.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:ColorFileSchema.optional()}),ShapeSchema=o.strictObject({frame:FrameSchema.optional(),z:o.int().optional(),fill:ColorFileSchema.optional(),line:o.union([ColorFileSchema,o.literal("none")]).optional(),line_width:o.number().positive().max(1584).optional(),line_dash:o.enum(LINE_DASHES).optional(),line_begin:o.enum(LINE_ENDS).optional(),line_end:o.enum(LINE_ENDS).optional(),text:TextStyleSchema.optional(),textbox:o.literal(!0).optional(),picture:o.string().min(1).optional(),crop:h.optional(),movie:o.string().min(1).optional(),poster:o.number().min(0).optional(),geometry:o.enum(SHAPE_GEOMETRIES).optional(),path:o.strictObject({w:o.number().positive(),h:o.number().positive(),d:o.string().min(1)}).optional(),table:o.strictObject({columns:o.array(o.number().positive()).min(1),rows:o.array(o.strictObject({height:o.number().positive(),fill:ColorFileSchema.optional(),text:TextStyleSchema.optional(),line:ColorFileSchema.optional()})).min(1)}).optional(),chart:ChartSchema.optional(),group:a.optional(),component:a.optional(),props:o.record(o.string(),p).optional()}),SHAPE_KINDS=["textbox","picture","movie","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),duration:o.number().positive().optional()}),AnimationSchema=o.strictObject({shape:o.string().min(1),paragraph:o.int().min(0).optional(),effect:o.enum(ANIMATION_EFFECTS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),start:o.enum(ANIMATION_STARTS).optional(),duration:o.number().min(0).optional(),delay:o.number().min(0).optional(),path:o.string().min(1).optional()}),SlideSchema=o.strictObject({id:a,layout:o.string().min(1).optional(),generate:a.optional(),hidden:o.union([o.literal(!0),o.array(o.string())]).optional(),shapes:o.record(o.string().min(1),ShapeSchema).optional(),animations:o.array(AnimationSchema).optional(),transition:TransitionSchema.optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((r,n)=>{const m=new Set;r.slides.forEach((t,i)=>{m.has(t.id)&&n.addIssue({code:"custom",path:["slides",i,"id"],message:`Two slides are "${t.id}".`}),m.add(t.id),(t.layout===void 0?0:1)+(t.generate===void 0?0:1)!==1&&n.addIssue({code:"custom",path:["slides",i],message:`Slide ${t.id} has a layout or a generator: one of them.`}),t.hidden!==void 0&&t.generate===void 0&&t.hidden!==!0&&n.addIssue({code:"custom",path:["slides",i,"hidden"],message:`Slide ${t.id} is hidden (true); a list of ids is a generated block's.`});for(const[e,b]of Object.entries(t.shapes??{})){const c=SHAPE_KINDS.filter(l=>b[l]!==void 0);c.length>1&&n.addIssue({code:"custom",path:["slides",i,"shapes",e],message:`Shape ${e} is one kind of shape, not ${c.join(" and ")}.`});const s=e.includes("/")?e.split("/"):[e];(!(s.length<=2&&s.every(l=>u.test(l)))||s.length===2&&t.generate===void 0)&&n.addIssue({code:"custom",path:["slides",i,"shapes",e],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
@@ -1,4 +1,5 @@
1
1
  export * from "./layout.js";
2
+ export * from "./note-shape.js";
2
3
  export * from "./items.js";
3
4
  export * from "./schemas.js";
4
5
  export * from "./data/file.js";
@@ -10,6 +11,7 @@ export * from "./data/comments.js";
10
11
  export * from "./data/messages.js";
11
12
  export * from "./data/script.js";
12
13
  export * from "./data/sheet.js";
14
+ export * from "./data/slides.js";
13
15
  export * from "./data/config.js";
14
16
  export * from "./data/faces.js";
15
17
  export * from "./data/reference.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./layout.js";export*from"./items.js";export*from"./schemas.js";export*from"./data/file.js";export*from"./data/words.js";export*from"./data/edits.js";export*from"./data/elements.js";export*from"./data/gen.js";export*from"./data/comments.js";export*from"./data/messages.js";export*from"./data/script.js";export*from"./data/sheet.js";export*from"./data/config.js";export*from"./data/faces.js";export*from"./data/reference.js";
2
+ export*from"./layout.js";export*from"./note-shape.js";export*from"./items.js";export*from"./schemas.js";export*from"./data/file.js";export*from"./data/words.js";export*from"./data/edits.js";export*from"./data/elements.js";export*from"./data/gen.js";export*from"./data/comments.js";export*from"./data/messages.js";export*from"./data/script.js";export*from"./data/sheet.js";export*from"./data/slides.js";export*from"./data/config.js";export*from"./data/faces.js";export*from"./data/reference.js";
@@ -41,6 +41,27 @@ export declare const ITEM_KINDS: {
41
41
  };
42
42
  };
43
43
  export type ItemKind = keyof typeof ITEM_KINDS;
44
+ /**
45
+ * A choice about how a file is made: one of `values`, the first the
46
+ * default, or without them on or off. `only` lists the file types it means
47
+ * something for.
48
+ */
49
+ export interface ExportOption {
50
+ name: string;
51
+ only: readonly string[];
52
+ values?: readonly string[];
53
+ }
54
+ /**
55
+ * What an item of a kind is exported as in its editor: the file types to
56
+ * choose one of, the first the default, those that may come with it, and how
57
+ * they are made. A kind that is not here has no Export. `allyhub render`
58
+ * makes these and more.
59
+ */
60
+ export declare const EXPORT_OFFER: Partial<Record<ItemKind, {
61
+ types: readonly string[];
62
+ extras: readonly string[];
63
+ options?: readonly ExportOption[];
64
+ }>>;
44
65
  export declare const KINDS: ItemKind[];
45
66
  /** The kind a file name is the entry file of, if any. */
46
67
  export declare function entryKind(name: string): ItemKind | undefined;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{baseOf as p,dirOf as l,unscanned as u,within as f}from"./layout.js";export const CODE_EXTENSIONS=["ts","tsx","mts","js","jsx","mjs"];const d=e=>CODE_EXTENSIONS.map(n=>`${e}.${n}`);export const EDITORS=["video","slides","doc","sheet","scenery","website"],ITEM_KINDS={video:{entries:d("video"),editor:"video",name:"video"},slides:{entries:d("slides"),editor:"slides",name:"slides"},doc:{entries:["doc.mdx"],editor:"doc",name:"doc"},sheet:{entries:["sheet.csv"],editor:"sheet",name:"sheet"},scenery:{entries:d("scenery"),editor:"scenery",name:"3D scenery"},model:{entries:d("model"),editor:"scenery",name:"3D model"},website:{entries:["astro.config.mjs","astro.config.ts","astro.config.mts","astro.config.js"],editor:"website",name:"website"}},KINDS=Object.keys(ITEM_KINDS);const h=new Map(KINDS.flatMap(e=>ITEM_KINDS[e].entries.map(n=>[n,e])));export function entryKind(e){return h.get(p(e))}export function scanItems(e){const n=[...e].filter(t=>!u(t)).sort(),o=[],i=new Map;for(const t of n){if(entryKind(t)===void 0)continue;const s=l(t);if(s===""){o.push({code:"at-root",entry:t});continue}i.set(s,[...i.get(s)??[],t])}const c=[];for(const[t,s]of i){const[r]=s;if(s.length>1||r===void 0){o.push({code:"two-entries",dir:t,entries:s});continue}const m=entryKind(r);m&&c.push({kind:m,dir:t,entry:r})}c.sort((t,s)=>t.dir.localeCompare(s.dir));const a=[];for(const t of c){const s=a.find(r=>f(t.dir,r.dir));s?o.push({code:"nested",dir:t.dir,inside:s.dir}):a.push(t)}return{items:a,problems:o}}export function itemFor(e,n){let o;for(const i of n)f(e,i.dir)&&(!o||i.dir.length>o.dir.length)&&(o=i);return o}export function itemManifest(){return{version:1,kinds:KINDS.map(e=>({kind:e,name:ITEM_KINDS[e].name,editor:ITEM_KINDS[e].editor,patterns:ITEM_KINDS[e].entries.map(n=>`**/${n}`)})),ignore:["**/.*/**","**/node_modules/**"]}}
2
+ import{baseOf as f,dirOf as l,unscanned as u,within as m}from"./layout.js";export const CODE_EXTENSIONS=["ts","tsx","mts","js","jsx","mjs"];const d=e=>CODE_EXTENSIONS.map(o=>`${e}.${o}`);export const EDITORS=["video","slides","doc","sheet","scenery","website"],ITEM_KINDS={video:{entries:d("video"),editor:"video",name:"video"},slides:{entries:d("slides"),editor:"slides",name:"slides"},doc:{entries:["doc.mdx"],editor:"doc",name:"doc"},sheet:{entries:["sheet.csv"],editor:"sheet",name:"sheet"},scenery:{entries:d("scenery"),editor:"scenery",name:"3D scenery"},model:{entries:d("model"),editor:"scenery",name:"3D model"},website:{entries:["astro.config.mjs","astro.config.ts","astro.config.mts","astro.config.js"],editor:"website",name:"website"}},EXPORT_OFFER={video:{types:["mp4","mov","gif"],extras:["srt","cover"]},slides:{types:["pptx","pdf","png"],extras:["cover"],options:[{name:"pptx",only:["pptx"],values:["native","editable","picture"]},{name:"steps",only:["pdf","png"]}]},doc:{types:["pdf","docx","png","md"],extras:[]},sheet:{types:["xlsx","csv","md","json"],extras:[]},model:{types:["glb"],extras:[]}},KINDS=Object.keys(ITEM_KINDS);const x=new Map(KINDS.flatMap(e=>ITEM_KINDS[e].entries.map(o=>[o,e])));export function entryKind(e){return x.get(f(e))}export function scanItems(e){const o=[...e].filter(t=>!u(t)).sort(),n=[],i=new Map;for(const t of o){if(entryKind(t)===void 0)continue;const s=l(t);if(s===""){n.push({code:"at-root",entry:t});continue}i.set(s,[...i.get(s)??[],t])}const c=[];for(const[t,s]of i){const[r]=s;if(s.length>1||r===void 0){n.push({code:"two-entries",dir:t,entries:s});continue}const a=entryKind(r);a&&c.push({kind:a,dir:t,entry:r})}c.sort((t,s)=>t.dir.localeCompare(s.dir));const p=[];for(const t of c){const s=p.find(r=>m(t.dir,r.dir));s?n.push({code:"nested",dir:t.dir,inside:s.dir}):p.push(t)}return{items:p,problems:n}}export function itemFor(e,o){let n;for(const i of o)m(e,i.dir)&&(!n||i.dir.length>n.dir.length)&&(n=i);return n}export function itemManifest(){return{version:1,kinds:KINDS.map(e=>({kind:e,name:ITEM_KINDS[e].name,editor:ITEM_KINDS[e].editor,patterns:ITEM_KINDS[e].entries.map(o=>`**/${o}`)})),ignore:["**/.*/**","**/node_modules/**"]}}
@@ -0,0 +1,39 @@
1
+ export interface NotePoint {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export interface NoteBox {
6
+ x: number;
7
+ y: number;
8
+ width: number;
9
+ height: number;
10
+ }
11
+ export type NoteShape =
12
+ /** An area, and what is in it. */
13
+ {
14
+ kind: "box";
15
+ rect: NoteBox;
16
+ }
17
+ /** A round, and what is in it. */
18
+ | {
19
+ kind: "round";
20
+ rect: NoteBox;
21
+ }
22
+ /** What its tip points at, wherever it comes from. */
23
+ | {
24
+ kind: "arrow";
25
+ from: NotePoint;
26
+ to: NotePoint;
27
+ }
28
+ /** What it passes over; a line that comes back to where it began goes round what is in it. */
29
+ | {
30
+ kind: "line";
31
+ points: NotePoint[];
32
+ };
33
+ /** Whether a shape is on a thing, by what the shape means. */
34
+ export declare function touches(shape: NoteShape, box: NoteBox): boolean;
35
+ /** Where a surface that answers at points looks for what a shape is on, the likeliest first. */
36
+ export declare function pointsOf(shape: NoteShape): NotePoint[];
37
+ /** A shape moved into another frame, as a stage's own. */
38
+ export declare function mapShape(shape: NoteShape, map: (p: NotePoint) => NotePoint): NoteShape;
39
+ //# sourceMappingURL=note-shape.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ const T=6,P=.85,I=.25,O=40,S=12,x=(t,n,r)=>Math.min(r,Math.max(n,t));function f(t){const n=t.map(e=>e.x),r=t.map(e=>e.y),c=Math.min(...n),o=Math.min(...r);return{x:c,y:o,width:Math.max(...n)-c,height:Math.max(...r)-o}}function l(t){const[n]=t,r=t.at(-1);if(!n||!r)return!1;const{width:c,height:o}=f(t),e=Math.hypot(c,o);return e>0&&Math.hypot(r.x-n.x,r.y-n.y)<=e*.25}const m=(t,n)=>t.x<n.x+Math.max(n.width,1)&&t.x+Math.max(t.width,1)>n.x&&t.y<n.y+Math.max(n.height,1)&&t.y+Math.max(t.height,1)>n.y;function M(t,n){const r=t.width/2||1,c=t.height/2||1,o=t.x+r,e=t.y+c,i=(x(o,n.x,n.x+n.width)-o)/r,s=(x(e,n.y,n.y+n.height)-e)/c;return Math.hypot(i,s)<=.85}function w(t,n,r){const c=n.x-t.x,o=n.y-t.y;let e=0,i=1;for(const[s,h]of[[-c,t.x-r.x],[c,r.x+r.width-t.x],[-o,t.y-r.y],[o,r.y+r.height-t.y]]){if(s===0){if(h<0)return!1}else s<0?e=Math.max(e,h/s):i=Math.min(i,h/s);if(e>i)return!1}return!0}export function touches(t,n){switch(t.kind){case"box":return m(t.rect,n);case"round":return M(t.rect,n);case"arrow":return m({x:t.to.x-6,y:t.to.y-6,width:12,height:12},n);case"line":return l(t.points)?M(f(t.points),n):t.points.some((r,c)=>w(t.points[c-1]??r,r,n))}}function d(t,n){return n.flatMap(r=>n.map(c=>({x:t.x+t.width*c,y:t.y+t.height*r})))}function g(t){const n=t.map((o,e)=>{const i=t[e-1]??o;return Math.hypot(o.x-i.x,o.y-i.y)}),r=n.reduce((o,e)=>o+e,0),c=x(Math.ceil(r/40)+1,2,12);return Array.from({length:c},(o,e)=>{let i=r*e/(c-1);for(const[s,h]of t.entries()){const u=n[s]??0,y=t[s-1];if(y&&i<=u){const a=u===0?0:i/u;return{x:y.x+(h.x-y.x)*a,y:y.y+(h.y-y.y)*a}}i-=u}return t.at(-1)??{x:0,y:0}})}export function pointsOf(t){switch(t.kind){case"box":return d(t.rect,[.5,.2,.8]);case"round":return d(t.rect,[.5,.3,.7]);case"arrow":return[t.to];case"line":return l(t.points)?d(f(t.points),[.5,.3,.7]):g(t.points)}}export function mapShape(t,n){switch(t.kind){case"box":case"round":{const r=n(t.rect),c=n({x:t.rect.x+t.rect.width,y:t.rect.y+t.rect.height});return{kind:t.kind,rect:{...r,width:c.x-r.x,height:c.y-r.y}}}case"arrow":return{kind:"arrow",from:n(t.from),to:n(t.to)};case"line":return{kind:"line",points:t.points.map(n)}}}
@@ -121,6 +121,15 @@ export declare const DATA_FILES: {
121
121
  }, z.core.$strict>]>>;
122
122
  screen: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./data/script.js").ScriptText, unknown, z.core.$ZodTypeInternals<import("./data/script.js").ScriptText, unknown>>>>;
123
123
  }, z.core.$strict>>>;
124
+ slides: z.ZodDefault<z.ZodArray<z.ZodObject<{
125
+ id: z.ZodString;
126
+ text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./data/script.js").ScriptText, unknown, z.core.$ZodTypeInternals<import("./data/script.js").ScriptText, unknown>>>>;
127
+ notes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
128
+ declarations: z.ZodDefault<z.ZodArray<z.ZodString>>;
129
+ selectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
130
+ match: z.ZodRecord<z.ZodString, z.ZodString>;
131
+ }, z.core.$strict>]>>;
132
+ }, z.core.$strict>>>;
124
133
  }, z.core.$strict>;
125
134
  readonly files: readonly ["**/script.*.yaml"];
126
135
  readonly about: "An item's words in one language.";
@@ -245,6 +254,415 @@ export declare const DATA_FILES: {
245
254
  readonly files: readonly ["**/sheet.yaml"];
246
255
  readonly about: "What a sheet's columns are.";
247
256
  };
257
+ readonly slides: {
258
+ readonly schema: z.ZodObject<{
259
+ slides: z.ZodDefault<z.ZodArray<z.ZodObject<{
260
+ id: z.ZodString;
261
+ layout: z.ZodOptional<z.ZodString>;
262
+ generate: z.ZodOptional<z.ZodString>;
263
+ hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
264
+ shapes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
265
+ frame: z.ZodOptional<z.ZodObject<{
266
+ x: z.ZodNumber;
267
+ y: z.ZodNumber;
268
+ w: z.ZodNumber;
269
+ h: z.ZodNumber;
270
+ }, z.core.$strict>>;
271
+ z: z.ZodOptional<z.ZodInt>;
272
+ fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
273
+ dk1: "dk1";
274
+ lt1: "lt1";
275
+ dk2: "dk2";
276
+ lt2: "lt2";
277
+ accent1: "accent1";
278
+ accent2: "accent2";
279
+ accent3: "accent3";
280
+ accent4: "accent4";
281
+ accent5: "accent5";
282
+ accent6: "accent6";
283
+ hlink: "hlink";
284
+ folHlink: "folHlink";
285
+ }>, z.ZodString]>>;
286
+ line: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
287
+ dk1: "dk1";
288
+ lt1: "lt1";
289
+ dk2: "dk2";
290
+ lt2: "lt2";
291
+ accent1: "accent1";
292
+ accent2: "accent2";
293
+ accent3: "accent3";
294
+ accent4: "accent4";
295
+ accent5: "accent5";
296
+ accent6: "accent6";
297
+ hlink: "hlink";
298
+ folHlink: "folHlink";
299
+ }>, z.ZodString]>, z.ZodLiteral<"none">]>>;
300
+ line_width: z.ZodOptional<z.ZodNumber>;
301
+ line_dash: z.ZodOptional<z.ZodEnum<{
302
+ solid: "solid";
303
+ sysDash: "sysDash";
304
+ sysDot: "sysDot";
305
+ dash: "dash";
306
+ dashDot: "dashDot";
307
+ lgDash: "lgDash";
308
+ lgDashDot: "lgDashDot";
309
+ lgDashDotDot: "lgDashDotDot";
310
+ }>>;
311
+ line_begin: z.ZodOptional<z.ZodEnum<{
312
+ arrow: "arrow";
313
+ triangle: "triangle";
314
+ none: "none";
315
+ stealth: "stealth";
316
+ diamond: "diamond";
317
+ oval: "oval";
318
+ }>>;
319
+ line_end: z.ZodOptional<z.ZodEnum<{
320
+ arrow: "arrow";
321
+ triangle: "triangle";
322
+ none: "none";
323
+ stealth: "stealth";
324
+ diamond: "diamond";
325
+ oval: "oval";
326
+ }>>;
327
+ text: z.ZodOptional<z.ZodObject<{
328
+ size: z.ZodOptional<z.ZodNumber>;
329
+ bold: z.ZodOptional<z.ZodBoolean>;
330
+ italic: z.ZodOptional<z.ZodBoolean>;
331
+ color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
332
+ dk1: "dk1";
333
+ lt1: "lt1";
334
+ dk2: "dk2";
335
+ lt2: "lt2";
336
+ accent1: "accent1";
337
+ accent2: "accent2";
338
+ accent3: "accent3";
339
+ accent4: "accent4";
340
+ accent5: "accent5";
341
+ accent6: "accent6";
342
+ hlink: "hlink";
343
+ folHlink: "folHlink";
344
+ }>, z.ZodString]>>;
345
+ font: z.ZodOptional<z.ZodString>;
346
+ align: z.ZodOptional<z.ZodEnum<{
347
+ r: "r";
348
+ l: "l";
349
+ ctr: "ctr";
350
+ just: "just";
351
+ }>>;
352
+ }, z.core.$strict>>;
353
+ textbox: z.ZodOptional<z.ZodLiteral<true>>;
354
+ picture: z.ZodOptional<z.ZodString>;
355
+ crop: z.ZodOptional<z.ZodObject<{
356
+ left: z.ZodOptional<z.ZodNumber>;
357
+ top: z.ZodOptional<z.ZodNumber>;
358
+ right: z.ZodOptional<z.ZodNumber>;
359
+ bottom: z.ZodOptional<z.ZodNumber>;
360
+ }, z.core.$strict>>;
361
+ movie: z.ZodOptional<z.ZodString>;
362
+ poster: z.ZodOptional<z.ZodNumber>;
363
+ geometry: z.ZodOptional<z.ZodEnum<{
364
+ line: "line";
365
+ rect: "rect";
366
+ roundRect: "roundRect";
367
+ ellipse: "ellipse";
368
+ triangle: "triangle";
369
+ rightArrow: "rightArrow";
370
+ }>>;
371
+ path: z.ZodOptional<z.ZodObject<{
372
+ w: z.ZodNumber;
373
+ h: z.ZodNumber;
374
+ d: z.ZodString;
375
+ }, z.core.$strict>>;
376
+ table: z.ZodOptional<z.ZodObject<{
377
+ columns: z.ZodArray<z.ZodNumber>;
378
+ rows: z.ZodArray<z.ZodObject<{
379
+ height: z.ZodNumber;
380
+ fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
381
+ dk1: "dk1";
382
+ lt1: "lt1";
383
+ dk2: "dk2";
384
+ lt2: "lt2";
385
+ accent1: "accent1";
386
+ accent2: "accent2";
387
+ accent3: "accent3";
388
+ accent4: "accent4";
389
+ accent5: "accent5";
390
+ accent6: "accent6";
391
+ hlink: "hlink";
392
+ folHlink: "folHlink";
393
+ }>, z.ZodString]>>;
394
+ text: z.ZodOptional<z.ZodObject<{
395
+ size: z.ZodOptional<z.ZodNumber>;
396
+ bold: z.ZodOptional<z.ZodBoolean>;
397
+ italic: z.ZodOptional<z.ZodBoolean>;
398
+ color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
399
+ dk1: "dk1";
400
+ lt1: "lt1";
401
+ dk2: "dk2";
402
+ lt2: "lt2";
403
+ accent1: "accent1";
404
+ accent2: "accent2";
405
+ accent3: "accent3";
406
+ accent4: "accent4";
407
+ accent5: "accent5";
408
+ accent6: "accent6";
409
+ hlink: "hlink";
410
+ folHlink: "folHlink";
411
+ }>, z.ZodString]>>;
412
+ font: z.ZodOptional<z.ZodString>;
413
+ align: z.ZodOptional<z.ZodEnum<{
414
+ r: "r";
415
+ l: "l";
416
+ ctr: "ctr";
417
+ just: "just";
418
+ }>>;
419
+ }, z.core.$strict>>;
420
+ line: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
421
+ dk1: "dk1";
422
+ lt1: "lt1";
423
+ dk2: "dk2";
424
+ lt2: "lt2";
425
+ accent1: "accent1";
426
+ accent2: "accent2";
427
+ accent3: "accent3";
428
+ accent4: "accent4";
429
+ accent5: "accent5";
430
+ accent6: "accent6";
431
+ hlink: "hlink";
432
+ folHlink: "folHlink";
433
+ }>, z.ZodString]>>;
434
+ }, z.core.$strict>>;
435
+ }, z.core.$strict>>;
436
+ chart: z.ZodOptional<z.ZodObject<{
437
+ type: z.ZodEnum<{
438
+ line: "line";
439
+ "column-clustered": "column-clustered";
440
+ "column-stacked": "column-stacked";
441
+ "column-stacked-100": "column-stacked-100";
442
+ "bar-clustered": "bar-clustered";
443
+ "bar-stacked": "bar-stacked";
444
+ "bar-stacked-100": "bar-stacked-100";
445
+ "line-markers": "line-markers";
446
+ area: "area";
447
+ "area-stacked": "area-stacked";
448
+ "area-stacked-100": "area-stacked-100";
449
+ pie: "pie";
450
+ doughnut: "doughnut";
451
+ }>;
452
+ data: z.ZodOptional<z.ZodString>;
453
+ categories: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
454
+ series: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
455
+ name: z.ZodString;
456
+ values: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
457
+ color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
458
+ dk1: "dk1";
459
+ lt1: "lt1";
460
+ dk2: "dk2";
461
+ lt2: "lt2";
462
+ accent1: "accent1";
463
+ accent2: "accent2";
464
+ accent3: "accent3";
465
+ accent4: "accent4";
466
+ accent5: "accent5";
467
+ accent6: "accent6";
468
+ hlink: "hlink";
469
+ folHlink: "folHlink";
470
+ }>, z.ZodString]>>;
471
+ format: z.ZodOptional<z.ZodString>;
472
+ smooth: z.ZodOptional<z.ZodBoolean>;
473
+ line_width: z.ZodOptional<z.ZodNumber>;
474
+ marker_size: z.ZodOptional<z.ZodNumber>;
475
+ }, z.core.$strict>]>>;
476
+ legend: z.ZodOptional<z.ZodEnum<{
477
+ left: "left";
478
+ top: "top";
479
+ right: "right";
480
+ bottom: "bottom";
481
+ }>>;
482
+ labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
483
+ value: z.ZodOptional<z.ZodBoolean>;
484
+ percentage: z.ZodOptional<z.ZodBoolean>;
485
+ category: z.ZodOptional<z.ZodBoolean>;
486
+ series: z.ZodOptional<z.ZodBoolean>;
487
+ format: z.ZodOptional<z.ZodString>;
488
+ position: z.ZodOptional<z.ZodEnum<{
489
+ t: "t";
490
+ r: "r";
491
+ l: "l";
492
+ ctr: "ctr";
493
+ outEnd: "outEnd";
494
+ inEnd: "inEnd";
495
+ inBase: "inBase";
496
+ b: "b";
497
+ bestFit: "bestFit";
498
+ }>>;
499
+ size: z.ZodOptional<z.ZodNumber>;
500
+ color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
501
+ dk1: "dk1";
502
+ lt1: "lt1";
503
+ dk2: "dk2";
504
+ lt2: "lt2";
505
+ accent1: "accent1";
506
+ accent2: "accent2";
507
+ accent3: "accent3";
508
+ accent4: "accent4";
509
+ accent5: "accent5";
510
+ accent6: "accent6";
511
+ hlink: "hlink";
512
+ folHlink: "folHlink";
513
+ }>, z.ZodString]>>;
514
+ }, z.core.$strict>]>>;
515
+ gap_width: z.ZodOptional<z.ZodNumber>;
516
+ overlap: z.ZodOptional<z.ZodNumber>;
517
+ vary_by_categories: z.ZodOptional<z.ZodBoolean>;
518
+ hole_size: z.ZodOptional<z.ZodNumber>;
519
+ value_axis: z.ZodOptional<z.ZodObject<{
520
+ min: z.ZodOptional<z.ZodNumber>;
521
+ max: z.ZodOptional<z.ZodNumber>;
522
+ major: z.ZodOptional<z.ZodNumber>;
523
+ gridlines: z.ZodOptional<z.ZodBoolean>;
524
+ visible: z.ZodOptional<z.ZodBoolean>;
525
+ format: z.ZodOptional<z.ZodString>;
526
+ reverse: z.ZodOptional<z.ZodBoolean>;
527
+ gridline_color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
528
+ dk1: "dk1";
529
+ lt1: "lt1";
530
+ dk2: "dk2";
531
+ lt2: "lt2";
532
+ accent1: "accent1";
533
+ accent2: "accent2";
534
+ accent3: "accent3";
535
+ accent4: "accent4";
536
+ accent5: "accent5";
537
+ accent6: "accent6";
538
+ hlink: "hlink";
539
+ folHlink: "folHlink";
540
+ }>, z.ZodString]>>;
541
+ line_color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
542
+ dk1: "dk1";
543
+ lt1: "lt1";
544
+ dk2: "dk2";
545
+ lt2: "lt2";
546
+ accent1: "accent1";
547
+ accent2: "accent2";
548
+ accent3: "accent3";
549
+ accent4: "accent4";
550
+ accent5: "accent5";
551
+ accent6: "accent6";
552
+ hlink: "hlink";
553
+ folHlink: "folHlink";
554
+ }>, z.ZodString]>>;
555
+ }, z.core.$strict>>;
556
+ category_axis: z.ZodOptional<z.ZodObject<{
557
+ min: z.ZodOptional<z.ZodNumber>;
558
+ max: z.ZodOptional<z.ZodNumber>;
559
+ major: z.ZodOptional<z.ZodNumber>;
560
+ gridlines: z.ZodOptional<z.ZodBoolean>;
561
+ visible: z.ZodOptional<z.ZodBoolean>;
562
+ format: z.ZodOptional<z.ZodString>;
563
+ reverse: z.ZodOptional<z.ZodBoolean>;
564
+ gridline_color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
565
+ dk1: "dk1";
566
+ lt1: "lt1";
567
+ dk2: "dk2";
568
+ lt2: "lt2";
569
+ accent1: "accent1";
570
+ accent2: "accent2";
571
+ accent3: "accent3";
572
+ accent4: "accent4";
573
+ accent5: "accent5";
574
+ accent6: "accent6";
575
+ hlink: "hlink";
576
+ folHlink: "folHlink";
577
+ }>, z.ZodString]>>;
578
+ line_color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
579
+ dk1: "dk1";
580
+ lt1: "lt1";
581
+ dk2: "dk2";
582
+ lt2: "lt2";
583
+ accent1: "accent1";
584
+ accent2: "accent2";
585
+ accent3: "accent3";
586
+ accent4: "accent4";
587
+ accent5: "accent5";
588
+ accent6: "accent6";
589
+ hlink: "hlink";
590
+ folHlink: "folHlink";
591
+ }>, z.ZodString]>>;
592
+ }, z.core.$strict>>;
593
+ size: z.ZodOptional<z.ZodNumber>;
594
+ title_size: z.ZodOptional<z.ZodNumber>;
595
+ color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
596
+ dk1: "dk1";
597
+ lt1: "lt1";
598
+ dk2: "dk2";
599
+ lt2: "lt2";
600
+ accent1: "accent1";
601
+ accent2: "accent2";
602
+ accent3: "accent3";
603
+ accent4: "accent4";
604
+ accent5: "accent5";
605
+ accent6: "accent6";
606
+ hlink: "hlink";
607
+ folHlink: "folHlink";
608
+ }>, z.ZodString]>>;
609
+ }, z.core.$strict>>;
610
+ group: z.ZodOptional<z.ZodString>;
611
+ component: z.ZodOptional<z.ZodString>;
612
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./data/slides.js").PropValue, unknown, z.core.$ZodTypeInternals<import("./data/slides.js").PropValue, unknown>>>>;
613
+ }, z.core.$strict>>>;
614
+ animations: z.ZodOptional<z.ZodArray<z.ZodObject<{
615
+ shape: z.ZodString;
616
+ paragraph: z.ZodOptional<z.ZodInt>;
617
+ effect: z.ZodEnum<{
618
+ path: "path";
619
+ appear: "appear";
620
+ fade: "fade";
621
+ wipe: "wipe";
622
+ "fly-in": "fly-in";
623
+ zoom: "zoom";
624
+ disappear: "disappear";
625
+ "fade-out": "fade-out";
626
+ "wipe-out": "wipe-out";
627
+ "fly-out": "fly-out";
628
+ "zoom-out": "zoom-out";
629
+ pulse: "pulse";
630
+ }>;
631
+ direction: z.ZodOptional<z.ZodEnum<{
632
+ "from-bottom": "from-bottom";
633
+ "from-top": "from-top";
634
+ "from-left": "from-left";
635
+ "from-right": "from-right";
636
+ }>>;
637
+ start: z.ZodOptional<z.ZodEnum<{
638
+ "on-click": "on-click";
639
+ "with-previous": "with-previous";
640
+ "after-previous": "after-previous";
641
+ }>>;
642
+ duration: z.ZodOptional<z.ZodNumber>;
643
+ delay: z.ZodOptional<z.ZodNumber>;
644
+ path: z.ZodOptional<z.ZodString>;
645
+ }, z.core.$strict>>>;
646
+ transition: z.ZodOptional<z.ZodObject<{
647
+ type: z.ZodEnum<{
648
+ push: "push";
649
+ fade: "fade";
650
+ wipe: "wipe";
651
+ morph: "morph";
652
+ }>;
653
+ direction: z.ZodOptional<z.ZodEnum<{
654
+ "from-bottom": "from-bottom";
655
+ "from-top": "from-top";
656
+ "from-left": "from-left";
657
+ "from-right": "from-right";
658
+ }>>;
659
+ duration: z.ZodOptional<z.ZodNumber>;
660
+ }, z.core.$strict>>;
661
+ }, z.core.$strict>>>;
662
+ }, z.core.$strict>;
663
+ readonly files: readonly ["**/slides.yaml"];
664
+ readonly about: "A deck's pages: their order, layouts, values and what was placed on them.";
665
+ };
248
666
  readonly interpretation: {
249
667
  readonly schema: z.ZodObject<{
250
668
  $schema: z.ZodOptional<z.ZodString>;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as o}from"zod";import{CommentsFileSchema as i}from"./data/comments.js";import{ConfigSchema as m}from"./data/config.js";import{EditsFileSchema as r}from"./data/edits.js";import{ElementsFileSchema as n}from"./data/elements.js";import{GenFileSchema as c}from"./data/gen.js";import{MessagesFileSchema as h}from"./data/messages.js";import{InterpretationSchema as l}from"./data/reference.js";import{ScriptFileSchema as f}from"./data/script.js";import{SheetSpecSchema as p}from"./data/sheet.js";import{WordsFileSchema as u}from"./data/words.js";export const DATA_FILES={words:{schema:u,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:r,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:n,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:c,files:["**/*.gen.json"],about:"How a media file was made, and where it came from."},comments:{schema:i,files:["**/comments.json"],about:"What was said about an item, in threads."},script:{schema:f,files:["**/script.*.yaml"],about:"An item's words in one language."},messages:{schema:h,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:p,files:["**/sheet.yaml"],about:"What a sheet's columns are."},interpretation:{schema:l,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},config:{schema:m,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:t,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...o.toJSONSchema(t,{io:"input",unrepresentable:"any"})}}export function readDataFile(e,t){const s=DATA_FILES[e].schema.safeParse(t);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(a=>({path:a.path.map(String).join("."),message:a.message}))}}
2
+ import{z as o}from"zod";import{CommentsFileSchema as i}from"./data/comments.js";import{ConfigSchema as m}from"./data/config.js";import{EditsFileSchema as r}from"./data/edits.js";import{ElementsFileSchema as n}from"./data/elements.js";import{GenFileSchema as c}from"./data/gen.js";import{MessagesFileSchema as h}from"./data/messages.js";import{InterpretationSchema as l}from"./data/reference.js";import{ScriptFileSchema as f}from"./data/script.js";import{SheetSpecSchema as p}from"./data/sheet.js";import{SlidesFileSchema as d}from"./data/slides.js";import{WordsFileSchema as u}from"./data/words.js";export const DATA_FILES={words:{schema:u,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:r,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:n,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:c,files:["**/*.gen.json"],about:"How a media file was made, and where it came from."},comments:{schema:i,files:["**/comments.json"],about:"What was said about an item, in threads."},script:{schema:f,files:["**/script.*.yaml"],about:"An item's words in one language."},messages:{schema:h,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:p,files:["**/sheet.yaml"],about:"What a sheet's columns are."},slides:{schema:d,files:["**/slides.yaml"],about:"A deck's pages: their order, layouts, values and what was placed on them."},interpretation:{schema:l,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},config:{schema:m,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:a,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...o.toJSONSchema(a,{io:"input",unrepresentable:"any"})}}export function readDataFile(e,a){const s=DATA_FILES[e].schema.safeParse(a);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(t=>({path:t.path.map(String).join("."),message:t.message}))}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub-next/formats",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {