@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.
- package/dist/free.d.ts +2 -2
- package/dist/index.d.ts +2 -9
- package/dist/index.js +1 -1
- package/dist/module.d.ts +2 -3
- package/dist/module.js +1 -1
- package/dist/parts.d.ts +2 -2
- package/dist/piece.d.ts +7 -32
- package/dist/piece.js +1 -1
- package/dist/props.d.ts +53 -10
- package/dist/slides.d.ts +8 -0
- package/dist/slides.js +2 -0
- package/docs/README.md +1 -1
- package/docs/batches.md +2 -2
- package/docs/defaults.md +106 -3
- package/docs/docs.md +1 -1
- package/docs/project.md +5 -5
- package/docs/sheets.md +1 -1
- package/docs/slides.md +182 -80
- package/node_modules/@allyhub-next/audio/package.json +1 -1
- package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +22 -0
- package/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1494 -0
- package/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/index.d.ts +2 -0
- package/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/items.d.ts +21 -0
- package/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/note-shape.d.ts +39 -0
- package/node_modules/@allyhub-next/formats/dist/note-shape.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +418 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/node_modules/@allyhub-next/formats/package.json +1 -1
- package/node_modules/@allyhub-next/protocol/dist/app.d.ts +0 -64
- package/node_modules/@allyhub-next/protocol/dist/app.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +0 -17
- package/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +0 -4
- package/node_modules/@allyhub-next/protocol/dist/cli.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +9 -26
- package/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/index.d.ts +1 -0
- package/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/notes.d.ts +163 -0
- package/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +1 -1
- package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +3 -0
- package/node_modules/@allyhub-next/protocol/dist/runtimes.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +37 -0
- package/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/node_modules/@allyhub-next/protocol/package.json +1 -1
- package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +5 -1
- package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +1 -0
- package/node_modules/@allyhub-next/runtimes/dist/index.js +1 -1
- package/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +3 -0
- package/node_modules/@allyhub-next/runtimes/dist/node-program.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +65 -0
- package/node_modules/@allyhub-next/runtimes/dist/packages.js +4 -0
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +2 -2
- package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
- package/node_modules/@allyhub-next/runtimes/dist/unpack.js +1 -1
- package/node_modules/@allyhub-next/runtimes/package.json +5 -1
- package/node_modules/@allyhub-next/runtimes/pins/docx/package-lock.json +67 -0
- package/node_modules/@allyhub-next/runtimes/pins/docx/package.json +9 -0
- package/node_modules/@allyhub-next/runtimes/pins/exceljs/package-lock.json +2533 -0
- package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +753 -0
- package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package.json +14 -0
- package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +950 -0
- package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +227 -0
- package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +105 -0
- package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +128 -0
- package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +9 -0
- package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +5 -24
- package/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
- package/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +129 -0
- package/node_modules/@allyhub-next/slides-core/dist/animation.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/api.d.ts +649 -0
- package/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
- package/node_modules/@allyhub-next/slides-core/dist/capabilities.d.ts +18 -0
- package/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +165 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +11 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart.d.ts +184 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/check.d.ts +7 -0
- package/node_modules/@allyhub-next/slides-core/dist/check.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +146 -0
- package/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/file.d.ts +109 -0
- package/node_modules/@allyhub-next/slides-core/dist/file.js +4 -0
- package/node_modules/@allyhub-next/slides-core/dist/index.d.ts +21 -0
- package/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +34 -0
- package/node_modules/@allyhub-next/slides-core/dist/measure.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/model.d.ts +278 -0
- package/node_modules/@allyhub-next/slides-core/dist/model.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/office.d.ts +58 -0
- package/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/path.d.ts +6 -0
- package/node_modules/@allyhub-next/slides-core/dist/path.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/placeholders.d.ts +7 -0
- package/node_modules/@allyhub-next/slides-core/dist/placeholders.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +181 -0
- package/node_modules/@allyhub-next/slides-core/dist/resolve.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/script.d.ts +43 -0
- package/node_modules/@allyhub-next/slides-core/dist/script.js +3 -0
- package/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +63 -0
- package/node_modules/@allyhub-next/slides-core/dist/stage.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +23 -0
- package/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +72 -0
- package/node_modules/@allyhub-next/slides-core/dist/theme.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/units.d.ts +35 -0
- package/node_modules/@allyhub-next/slides-core/dist/units.js +2 -0
- package/node_modules/@allyhub-next/slides-core/package.json +14 -0
- package/node_modules/@allyhub-next/video-core/dist/export.d.ts +6 -5
- package/node_modules/@allyhub-next/video-core/dist/export.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +173 -4
- package/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +6 -13
- package/node_modules/@allyhub-next/video-core/dist/formats.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/index.d.ts +0 -1
- package/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +83 -0
- package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +8 -9
- package/node_modules/@allyhub-next/video-core/dist/piece.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +5 -1
- package/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +0 -2
- package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +4 -0
- package/node_modules/@allyhub-next/video-core/dist/script.d.ts +8 -0
- package/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +34 -1
- package/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/package.json +15 -8
- package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +0 -37
- package/node_modules/@allyhub-next/video-core/dist/slides.js +0 -2
|
@@ -15,12 +15,20 @@ export interface ScriptPart {
|
|
|
15
15
|
/** What it shows, by name. */
|
|
16
16
|
screen?: Record<string, ScriptText>;
|
|
17
17
|
}
|
|
18
|
+
/** A deck's slide in its script: its shapes' words by name, and its notes. */
|
|
19
|
+
export interface ScriptSlide {
|
|
20
|
+
id: string;
|
|
21
|
+
text?: Record<string, ScriptText>;
|
|
22
|
+
notes?: string | VariantsMessage;
|
|
23
|
+
}
|
|
18
24
|
export interface ScriptFile {
|
|
19
25
|
title?: string;
|
|
20
26
|
/** The item's words that belong to no part, by name. */
|
|
21
27
|
text?: Record<string, ScriptText>;
|
|
22
28
|
/** In the order they are told; the piece's code decides the video's. */
|
|
23
29
|
parts: ScriptPart[];
|
|
30
|
+
/** A deck's slides; its slides.yaml decides their order. */
|
|
31
|
+
slides?: ScriptSlide[];
|
|
24
32
|
}
|
|
25
33
|
/** Where a value sits in the script's document: ["parts", 0, "screen", "line1"]. */
|
|
26
34
|
export type ScriptPath = (string | number)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{hasAnchors as
|
|
2
|
+
import{hasAnchors as k,hasSpans as A,readAnchors as $,spokenLine as j}from"./anchors.js";import{isSpoken as x}from"./messages.js";export const SCRIPT_FILE=/^script\.([a-z]{2,3}(?:-[a-z0-9]{2,8})?)\.ya?ml$/;const g=/^[A-Za-z0-9_-]+$/,b=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),O=e=>e.length===0?"(root)":e.map((r,s)=>typeof r=="number"?`[${String(r)}]`:`${s?".":""}${r}`).join("");function S(e){const r=c=>Array.isArray(c)&&c.every(o=>typeof o=="string"),s=e.match;if(!b(s)||!Object.values(s).every(c=>typeof c=="string"))return"match must map each case to its text";const u=e.declarations??[],h=e.selectors??[];if(!r(u)||!r(h))return"declarations and selectors must be lists of strings";const m=Object.keys(e).filter(c=>!["declarations","selectors","match"].includes(c));return m.length>0?`unknown key ${m.join(", ")}`:{declarations:u,selectors:h,match:s}}function E(e){if(typeof e=="string")return e;if(x(e))return Object.keys(e).length===2?e:"has more than display and speak";if(b(e)&&"match"in e)return S(e)}export function parseScript(e){const r=[],s=(t,n)=>{r.push(`${O(t)}: ${n}`)},u=(t,n)=>{const i=E(t);if(i===void 0||typeof i=="string"&&i!==t){s(n,typeof i=="string"?i:typeof t=="number"||typeof t=="boolean"?`${String(t)} is not text: put it in quotes`:"must be text, { display, speak }, or a plural or selection");return}return i},h=(t,n)=>{if(!b(t)){s(n,"must be names with their text");return}const i={};for(const[a,d]of Object.entries(t)){const y=m(d,[...n,a]);g.test(a)?y!==void 0&&(i[a]=y):s([...n,a],"a name has only letters, digits, _ and -")}return i},m=(t,n)=>{if(Array.isArray(t)){const i=t.map((a,d)=>m(a,[...n,d]));return i.every(a=>a!==void 0)?i:void 0}return b(t)&&!x(t)&&!("match"in t)?h(t,n):u(t,n)};if(e==null)return{script:{parts:[]}};if(!b(e))return{problems:["(root): must be title, text and parts"]};const c={parts:[]};for(const t of Object.keys(e))["title","text","parts","slides"].includes(t)||s([t],"unknown key: a script has title, text, parts and slides");if(e.title!==void 0&&(typeof e.title=="string"?c.title=e.title:s(["title"],"must be text")),e.text!==void 0){const t=h(e.text,["text"]);t&&(c.text=t)}const o=e.parts??[];if(!Array.isArray(o))s(["parts"],"must be a list of parts");else{const t=new Set;o.forEach((n,i)=>{const a=["parts",i];if(!b(n)){s(a,"must be a part: id, say, screen");return}for(const l of Object.keys(n))["id","say","screen"].includes(l)||s([...a,l],"unknown key: a part has id, say and screen");const d=n.id;if(typeof d!="string"||!g.test(d)){s([...a,"id"],"a part needs an id of letters, digits, _ and -");return}if(t.has(d)){s([...a,"id"],`two parts have the id ${d}`);return}t.add(d);const y={id:d};if(n.say!==void 0){const l=u(n.say,[...a,"say"]);if(x(l))s([...a,"say"],"is one line: write a piece that is shown one way and said another inside it, as <shown|said>");else if(l!==void 0){y.say=l;for(const p of w(l))s([...a,"say"],p)}}if(n.screen!==void 0){const l=h(n.screen,[...a,"screen"]);l&&(y.screen=l)}c.parts.push(y)})}const f=e.slides??[];if(!Array.isArray(f))s(["slides"],"must be a list of slides");else{const t=new Set,n=[];f.forEach((i,a)=>{const d=["slides",a];if(!b(i)){s(d,"must be a slide: id, text, notes");return}for(const p of Object.keys(i))["id","text","notes"].includes(p)||s([...d,p],"unknown key: a slide has id, text and notes");const y=i.id;if(typeof y!="string"||!g.test(y)){s([...d,"id"],"a slide needs an id of letters, digits, _ and -");return}if(t.has(y)){s([...d,"id"],`two slides have the id ${y}`);return}t.add(y);const l={id:y};if(i.text!==void 0){const p=h(i.text,[...d,"text"]);p&&(l.text=p)}if(i.notes!==void 0){const p=u(i.notes,[...d,"notes"]);typeof p=="string"||p!==void 0&&!x(p)?l.notes=p:p!==void 0&&s([...d,"notes"],"is text")}n.push(l)}),n.length>0&&(c.slides=n)}return r.length>0?{problems:r}:{script:c}}function w(e){return typeof e=="string"?$(e).problems:x(e)?[]:Object.values(e.match).some(r=>k(r)||A(r))?["a plural or a selection cannot have anchors or <shown|said>"]:[]}export function saidOf(e){if(typeof e!="string")return{value:e,anchors:[]};const r=$(e);if(r.spans.length===0)return{value:r.text,anchors:r.anchors};const s=j(r);return{value:{display:r.text,speak:s.text},anchors:r.anchors.map(u=>({name:u.name,at:s.at(u.at,!1),...u.end===void 0?{}:{end:s.at(u.end,!0)}}))}}const _=e=>typeof e=="string"||!Array.isArray(e)&&(x(e)||"match"in e);export function scriptKeys(e,r){const s=[],u=new Set,h=[],m=(o,f,t,n=[])=>{u.has(o)?h.push(o):(u.add(o),s.push({key:o,value:f,path:t,...n.length>0?{anchors:n}:{}}))},c=(o,f,t)=>{if(_(f))m(o,f,t);else if(Array.isArray(f))f.forEach((n,i)=>{c(`${o}.${String(i)}`,n,[...t,i])});else for(const[n,i]of Object.entries(f))c(`${o}.${n}`,i,[...t,n])};r.title!==void 0&&m(`${e}.title`,r.title,["title"]);for(const[o,f]of Object.entries(r.text??{}))c(`${e}.${o}`,f,["text",o]);return r.parts.forEach((o,f)=>{const t=`${e}.${o.id}`;if(o.say!==void 0){const n=saidOf(o.say);m(`${t}.say`,n.value,["parts",f,"say"],n.anchors)}for(const[n,i]of Object.entries(o.screen??{}))c(`${t}.${n}`,i,["parts",f,"screen",n])}),(r.slides??[]).forEach((o,f)=>{const t=`${e}.${o.id}`;for(const[n,i]of Object.entries(o.text??{}))c(`${t}.${n}`,i,["slides",f,"text",n]);o.notes!==void 0&&m(`${t}.notes`,o.notes,["slides",f,"notes"])}),{keys:s,twice:h}}export function scriptMessages(e,r){return Object.fromEntries(scriptKeys(e,r).keys.map(s=>[s.key,s.value]))}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SlidesFile } from "@allyhub-next/formats";
|
|
1
2
|
import { type TextAnchor } from "./anchors.js";
|
|
2
3
|
import type { PlatformProfile } from "./formats.js";
|
|
3
4
|
import type { Look } from "./look.js";
|
|
@@ -14,6 +15,8 @@ export interface LoadOptions {
|
|
|
14
15
|
/** The combo: one value per dimension, e.g. { lang: "zh-cn" }. */
|
|
15
16
|
combo: Combo;
|
|
16
17
|
purpose: "play" | "render" | "check";
|
|
18
|
+
/** A deck drawn for its editor: an empty placeholder is drawn, to type into. */
|
|
19
|
+
editing?: boolean;
|
|
17
20
|
/**
|
|
18
21
|
* The most different console messages kept from piece code (see
|
|
19
22
|
* console.ts); default CONSOLE_LIMIT.
|
|
@@ -28,6 +31,8 @@ export interface DataFile {
|
|
|
28
31
|
}
|
|
29
32
|
/** What the host hands load(): one piece, as the build made it. */
|
|
30
33
|
export interface BuildSource {
|
|
34
|
+
/** What it is: a video (the default) or a deck, which the stage loads with the deck's runtime. */
|
|
35
|
+
kind?: "video" | "slides";
|
|
31
36
|
/** The piece's id: seeds and problems use it. */
|
|
32
37
|
piece: string;
|
|
33
38
|
/**
|
|
@@ -71,6 +76,8 @@ export interface BuildSource {
|
|
|
71
76
|
looks?: Record<string, Look>;
|
|
72
77
|
/** The project's part defaults (allyhub.config.ts `defaults.part`). */
|
|
73
78
|
partDefaults?: PartDefaults;
|
|
79
|
+
/** A deck's pages: its slides.yaml as the build read it (none when it has none, or it does not match the format). */
|
|
80
|
+
slides?: SlidesFile;
|
|
74
81
|
/**
|
|
75
82
|
* Every piece of the build by id, for a piece that shows another inside
|
|
76
83
|
* it (a scenery's screen): its file, dimensions, format and matrix.
|
|
@@ -225,6 +232,10 @@ export interface Part {
|
|
|
225
232
|
planes: PartPlane[];
|
|
226
233
|
/** The part's still moment, absolute. */
|
|
227
234
|
still: number;
|
|
235
|
+
/** A deck's page: each of its steps' still moments, absolute, step 0 first (the last is `still`). */
|
|
236
|
+
steps?: number[];
|
|
237
|
+
/** A deck's page left out when the deck is presented or exported (slides.yaml's `hidden`). */
|
|
238
|
+
hidden?: boolean;
|
|
228
239
|
/** A name for people: part({ title }), else its largest text at its still that not every part shows. */
|
|
229
240
|
title?: string;
|
|
230
241
|
/** Voiced parts: where the speech plays. */
|
|
@@ -531,6 +542,8 @@ export interface Timeline {
|
|
|
531
542
|
* loudness).
|
|
532
543
|
*/
|
|
533
544
|
profile?: PlatformProfile;
|
|
545
|
+
/** A deck's paper (CSS `@page size`): its slide size, as PowerPoint prints it. */
|
|
546
|
+
paper?: string;
|
|
534
547
|
duration: number;
|
|
535
548
|
/**
|
|
536
549
|
* What the footage plane draws under everything: the look's background
|
|
@@ -571,7 +584,7 @@ export interface PartText {
|
|
|
571
584
|
speak?: string;
|
|
572
585
|
/** The message key the spoken text came from (say(s(key)), saying(s(key))). */
|
|
573
586
|
speechKey?: string;
|
|
574
|
-
/** A
|
|
587
|
+
/** A deck's speaker notes for this slide (the script's `notes`). */
|
|
575
588
|
notes?: string;
|
|
576
589
|
}
|
|
577
590
|
export interface MessageRead {
|
|
@@ -613,4 +626,24 @@ export declare function momentOf(tl: {
|
|
|
613
626
|
readonly anchors?: readonly PartAnchor[] | undefined;
|
|
614
627
|
}[];
|
|
615
628
|
}, ref: string): number;
|
|
629
|
+
/**
|
|
630
|
+
* What a moment shows that an editor lets a person point at
|
|
631
|
+
* (LoadedOutput.objects): what was placed on a deck's page (by its
|
|
632
|
+
* element's id) and every text block, with the message keys its words are
|
|
633
|
+
* (none: words written in code), each box in the frame's pixels.
|
|
634
|
+
*/
|
|
635
|
+
export interface PageObjects {
|
|
636
|
+
t: number;
|
|
637
|
+
elements: {
|
|
638
|
+
id: string;
|
|
639
|
+
box: [number, number, number, number];
|
|
640
|
+
}[];
|
|
641
|
+
texts: {
|
|
642
|
+
text: string;
|
|
643
|
+
box: [number, number, number, number];
|
|
644
|
+
/** Its font size as drawn, in the frame's pixels. */
|
|
645
|
+
size: number;
|
|
646
|
+
keys: string[];
|
|
647
|
+
}[];
|
|
648
|
+
}
|
|
616
649
|
//# sourceMappingURL=timeline.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "What an agent writes videos and decks with: video() and slides(), parts with their speech, footage and sounds, defineComponent() and custom() layers, the layout, motion and input helpers, and the scenery() layer's options. Nothing a host needs.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://allyhub.com",
|
|
@@ -28,7 +28,11 @@
|
|
|
28
28
|
"./client": {
|
|
29
29
|
"types": "./client.d.ts"
|
|
30
30
|
},
|
|
31
|
-
"./package.json": "./package.json"
|
|
31
|
+
"./package.json": "./package.json",
|
|
32
|
+
"./slides": {
|
|
33
|
+
"types": "./dist/slides.d.ts",
|
|
34
|
+
"default": "./dist/slides.js"
|
|
35
|
+
}
|
|
32
36
|
},
|
|
33
37
|
"sideEffects": false,
|
|
34
38
|
"files": [
|
|
@@ -42,17 +46,19 @@
|
|
|
42
46
|
"node": ">=22.19"
|
|
43
47
|
},
|
|
44
48
|
"dependencies": {
|
|
45
|
-
"@allyhub-next/audio": "0.
|
|
46
|
-
"@allyhub-next/formats": "0.
|
|
47
|
-
"@allyhub-next/protocol": "0.
|
|
48
|
-
"@allyhub-next/runtimes": "0.
|
|
49
|
-
"@allyhub-next/scenery": "0.
|
|
50
|
-
"@allyhub-next/
|
|
49
|
+
"@allyhub-next/audio": "0.4.0",
|
|
50
|
+
"@allyhub-next/formats": "0.4.0",
|
|
51
|
+
"@allyhub-next/protocol": "0.4.0",
|
|
52
|
+
"@allyhub-next/runtimes": "0.4.0",
|
|
53
|
+
"@allyhub-next/scenery": "0.4.0",
|
|
54
|
+
"@allyhub-next/slides-core": "0.4.0",
|
|
55
|
+
"@allyhub-next/video-core": "0.4.0",
|
|
51
56
|
"dequal": "2.0.3",
|
|
52
57
|
"env-paths": "4.0.0",
|
|
53
58
|
"jsonc-parser": "^3.3.1",
|
|
54
59
|
"proper-lockfile": "4.1.2",
|
|
55
60
|
"tar": "^7.5.2",
|
|
61
|
+
"yaml": "^2.9.1",
|
|
56
62
|
"yauzl": "^3.2.0",
|
|
57
63
|
"zod": "^4.6.5"
|
|
58
64
|
},
|
|
@@ -70,6 +76,7 @@
|
|
|
70
76
|
"@allyhub-next/protocol",
|
|
71
77
|
"@allyhub-next/runtimes",
|
|
72
78
|
"@allyhub-next/scenery",
|
|
79
|
+
"@allyhub-next/slides-core",
|
|
73
80
|
"@allyhub-next/video-core"
|
|
74
81
|
]
|
|
75
82
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { PIECE_BRAND, type OutputDefinition, type PartSpec, type PieceCommon, type PieceContext } from "./piece.js";
|
|
3
|
-
/** A deck's (paged piece's) options. */
|
|
4
|
-
export interface PagedOptions {
|
|
5
|
-
/** Speaker notes: each page's `<prefix>.<page>.notes` (slides). */
|
|
6
|
-
notes?: boolean;
|
|
7
|
-
/** The look's name; default "clean". */
|
|
8
|
-
look?: string;
|
|
9
|
-
/** Prefix of the speaker notes' keys; default: the piece's id with `/` as `.`. */
|
|
10
|
-
prefix?: string;
|
|
11
|
-
/** How long loading it may take, seconds; default LOAD_LIMIT, 10 (AK-P002). */
|
|
12
|
-
loadLimit?: number;
|
|
13
|
-
/** How long one page may take to draw, seconds; default SEEK_LIMIT, 30 (AK-P003). */
|
|
14
|
-
seekLimit?: number;
|
|
15
|
-
}
|
|
16
|
-
export type PagedBuild = (ctx: PieceContext) => PartSpec[] | Promise<PartSpec[]>;
|
|
17
|
-
/** Slides (any pages): the default export of an item's slides.ts, made by slides(). */
|
|
18
|
-
export interface PagedPiece extends PieceCommon, PagedOptions {
|
|
19
|
-
[PIECE_BRAND]: true;
|
|
20
|
-
kind: "paged";
|
|
21
|
-
/** Its pages, in order. A method, as VideoPiece's parts is. */
|
|
22
|
-
pages(ctx: PieceContext): PartSpec[] | Promise<PartSpec[]>;
|
|
23
|
-
}
|
|
24
|
-
export interface PagedOutput extends OutputDefinition<"paged"> {
|
|
25
|
-
build: PagedBuild;
|
|
26
|
-
options: PagedOptions;
|
|
27
|
-
}
|
|
28
|
-
/** A deck's options as metadata (its format is the piece's). */
|
|
29
|
-
export declare const PagedOptionsMeta: z.ZodObject<{
|
|
30
|
-
notes: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
look: z.ZodOptional<z.ZodString>;
|
|
32
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
33
|
-
loadLimit: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
seekLimit: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
}, z.core.$strict>;
|
|
36
|
-
export type PagedOptionsMeta = z.infer<typeof PagedOptionsMeta>;
|
|
37
|
-
//# sourceMappingURL=slides.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as o}from"zod";import{MESSAGE_KEY as i}from"./messages.js";import"./piece.js";export const PagedOptionsMeta=o.strictObject({notes:o.boolean().optional(),look:o.string().min(1).optional(),prefix:o.string().regex(i).optional(),loadLimit:o.number().positive().optional(),seekLimit:o.number().positive().optional()});
|