@allyhub/sdk 0.0.0-stage → 0.1.0-alpha.6

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 (57) hide show
  1. package/LICENSE +241 -0
  2. package/NOTICE +81 -0
  3. package/README.md +16 -2
  4. package/client.d.ts +86 -0
  5. package/dist/anim.d.ts +41 -0
  6. package/dist/anim.d.ts.map +1 -0
  7. package/dist/anim.js +75 -0
  8. package/dist/anim.js.map +1 -0
  9. package/dist/define.d.ts +75 -0
  10. package/dist/define.d.ts.map +1 -0
  11. package/dist/define.js +95 -0
  12. package/dist/define.js.map +1 -0
  13. package/dist/dom.d.ts +210 -0
  14. package/dist/dom.d.ts.map +1 -0
  15. package/dist/dom.js +457 -0
  16. package/dist/dom.js.map +1 -0
  17. package/dist/fit.d.ts +24 -0
  18. package/dist/fit.d.ts.map +1 -0
  19. package/dist/fit.js +60 -0
  20. package/dist/fit.js.map +1 -0
  21. package/dist/index.d.ts +14 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.js +11 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/media.d.ts +9 -0
  26. package/dist/media.d.ts.map +1 -0
  27. package/dist/media.js +27 -0
  28. package/dist/media.js.map +1 -0
  29. package/dist/messages.d.ts +39 -0
  30. package/dist/messages.d.ts.map +1 -0
  31. package/dist/messages.js +2 -0
  32. package/dist/messages.js.map +1 -0
  33. package/dist/noise.d.ts +15 -0
  34. package/dist/noise.d.ts.map +1 -0
  35. package/dist/noise.js +233 -0
  36. package/dist/noise.js.map +1 -0
  37. package/dist/parts.d.ts +140 -0
  38. package/dist/parts.d.ts.map +1 -0
  39. package/dist/parts.js +414 -0
  40. package/dist/parts.js.map +1 -0
  41. package/dist/paths.d.ts +85 -0
  42. package/dist/paths.d.ts.map +1 -0
  43. package/dist/paths.js +720 -0
  44. package/dist/paths.js.map +1 -0
  45. package/dist/piece.d.ts +64 -0
  46. package/dist/piece.d.ts.map +1 -0
  47. package/dist/piece.js +38 -0
  48. package/dist/piece.js.map +1 -0
  49. package/dist/props.d.ts +81 -0
  50. package/dist/props.d.ts.map +1 -0
  51. package/dist/props.js +35 -0
  52. package/dist/props.js.map +1 -0
  53. package/dist/text.d.ts +13 -0
  54. package/dist/text.d.ts.map +1 -0
  55. package/dist/text.js +38 -0
  56. package/dist/text.js.map +1 -0
  57. package/package.json +61 -3
package/LICENSE ADDED
@@ -0,0 +1,241 @@
1
+ AllyHub Software License
2
+
3
+ Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
4
+
5
+ This software (the AllyHub command-line tool, its SDK, runtime and the
6
+ packages they depend on) is proprietary. It is not open source.
7
+
8
+ 1. Permitted use. You may install and run the software, unmodified, to make,
9
+ check, preview and render videos and decks, including for commercial
10
+ purposes. What you make with it is yours.
11
+
12
+ 2. Restrictions. Except as this license permits or applicable law requires,
13
+ you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
14
+ publish or otherwise distribute the software, create derivative works of
15
+ it, or reverse engineer, decompile or disassemble it.
16
+
17
+ 3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
18
+ video) are separate services governed by AllyHub's terms of service.
19
+
20
+ 4. Trademarks. This license grants no right to use the name "AllyHub" or its
21
+ logos.
22
+
23
+ 5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
24
+ KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
26
+ ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
28
+
29
+ 6. Third-party code. Parts of the software are adapted from HyperFrames,
30
+ licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
31
+ remain under that license, reproduced below, and nothing in this license
32
+ limits your rights under it.
33
+
34
+ 7. Starter components. The starter components in the "components" folder,
35
+ which "allyhub add" copies into your workspace, are licensed under the MIT
36
+ License (see components/LICENSE): once copied, you may change, use and
37
+ share them freely.
38
+
39
+ --------------------------------------------------------------------------------
40
+
41
+ Apache License
42
+ Version 2.0, January 2004
43
+ http://www.apache.org/licenses/
44
+
45
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46
+
47
+ 1. Definitions.
48
+
49
+ "License" shall mean the terms and conditions for use, reproduction,
50
+ and distribution as defined by Sections 1 through 9 of this document.
51
+
52
+ "Licensor" shall mean the copyright owner or entity authorized by
53
+ the copyright owner that is granting the License.
54
+
55
+ "Legal Entity" shall mean the union of the acting entity and all
56
+ other entities that control, are controlled by, or are under common
57
+ control with that entity. For the purposes of this definition,
58
+ "control" means (i) the power, direct or indirect, to cause the
59
+ direction or management of such entity, whether by contract or
60
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
61
+ outstanding shares, or (iii) beneficial ownership of such entity.
62
+
63
+ "You" (or "Your") shall mean an individual or Legal Entity
64
+ exercising permissions granted by this License.
65
+
66
+ "Source" form shall mean the preferred form for making modifications,
67
+ including but not limited to software source code, documentation
68
+ source, and configuration files.
69
+
70
+ "Object" form shall mean any form resulting from mechanical
71
+ transformation or translation of a Source form, including but
72
+ not limited to compiled object code, generated documentation,
73
+ and conversions to other media types.
74
+
75
+ "Work" shall mean the work of authorship, whether in Source or
76
+ Object form, made available under the License, as indicated by a
77
+ copyright notice that is included in or attached to the work
78
+ (an example is provided in the Appendix below).
79
+
80
+ "Derivative Works" shall mean any work, whether in Source or Object
81
+ form, that is based on (or derived from) the Work and for which the
82
+ editorial revisions, annotations, elaborations, or other modifications
83
+ represent, as a whole, an original work of authorship. For the purposes
84
+ of this License, Derivative Works shall not include works that remain
85
+ separable from, or merely link (or bind by name) to the interfaces of,
86
+ the Work and Derivative Works thereof.
87
+
88
+ "Contribution" shall mean any work of authorship, including
89
+ the original version of the Work and any modifications or additions
90
+ to that Work or Derivative Works thereof, that is intentionally
91
+ submitted to Licensor for inclusion in the Work by the copyright owner
92
+ or by an individual or Legal Entity authorized to submit on behalf of
93
+ the copyright owner. For the purposes of this definition, "submitted"
94
+ means any form of electronic, verbal, or written communication sent
95
+ to the Licensor or its representatives, including but not limited to
96
+ communication on electronic mailing lists, source code control systems,
97
+ and issue tracking systems that are managed by, or on behalf of, the
98
+ Licensor for the purpose of discussing and improving the Work, but
99
+ excluding communication that is conspicuously marked or otherwise
100
+ designated in writing by the copyright owner as "Not a Contribution."
101
+
102
+ "Contributor" shall mean Licensor and any individual or Legal Entity
103
+ on behalf of whom a Contribution has been received by Licensor and
104
+ subsequently incorporated within the Work.
105
+
106
+ 2. Grant of Copyright License. Subject to the terms and conditions of
107
+ this License, each Contributor hereby grants to You a perpetual,
108
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109
+ copyright license to reproduce, prepare Derivative Works of,
110
+ publicly display, publicly perform, sublicense, and distribute the
111
+ Work and such Derivative Works in Source or Object form.
112
+
113
+ 3. Grant of Patent License. Subject to the terms and conditions of
114
+ this License, each Contributor hereby grants to You a perpetual,
115
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116
+ (except as stated in this section) patent license to make, have made,
117
+ use, offer to sell, sell, import, and otherwise transfer the Work,
118
+ where such license applies only to those patent claims licensable
119
+ by such Contributor that are necessarily infringed by their
120
+ Contribution(s) alone or by combination of their Contribution(s)
121
+ with the Work to which such Contribution(s) was submitted. If You
122
+ institute patent litigation against any entity (including a
123
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
124
+ or a Contribution incorporated within the Work constitutes direct
125
+ or contributory patent infringement, then any patent licenses
126
+ granted to You under this License for that Work shall terminate
127
+ as of the date such litigation is filed.
128
+
129
+ 4. Redistribution. You may reproduce and distribute copies of the
130
+ Work or Derivative Works thereof in any medium, with or without
131
+ modifications, and in Source or Object form, provided that You
132
+ meet the following conditions:
133
+
134
+ (a) You must give any other recipients of the Work or
135
+ Derivative Works a copy of this License; and
136
+
137
+ (b) You must cause any modified files to carry prominent notices
138
+ stating that You changed the files; and
139
+
140
+ (c) You must retain, in the Source form of any Derivative Works
141
+ that You distribute, all copyright, patent, trademark, and
142
+ attribution notices from the Source form of the Work,
143
+ excluding those notices that do not pertain to any part of
144
+ the Derivative Works; and
145
+
146
+ (d) If the Work includes a "NOTICE" text file as part of its
147
+ distribution, then any Derivative Works that You distribute must
148
+ include a readable copy of the attribution notices contained
149
+ within such NOTICE file, excluding those notices that do not
150
+ pertain to any part of the Derivative Works, in at least one
151
+ of the following places: within a NOTICE text file distributed
152
+ as part of the Derivative Works; within the Source form or
153
+ documentation, if provided along with the Derivative Works; or,
154
+ within a display generated by the Derivative Works, if and
155
+ wherever such third-party notices normally appear. The contents
156
+ of the NOTICE file are for informational purposes only and
157
+ do not modify the License. You may add Your own attribution
158
+ notices within Derivative Works that You distribute, alongside
159
+ or as an addendum to the NOTICE text from the Work, provided
160
+ that such additional attribution notices cannot be construed
161
+ as modifying the License.
162
+
163
+ You may add Your own copyright statement to Your modifications and
164
+ may provide additional or different license terms and conditions
165
+ for use, reproduction, or distribution of Your modifications, or
166
+ for any such Derivative Works as a whole, provided Your use,
167
+ reproduction, and distribution of the Work otherwise complies with
168
+ the conditions stated in this License.
169
+
170
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
171
+ any Contribution intentionally submitted for inclusion in the Work
172
+ by You to the Licensor shall be under the terms and conditions of
173
+ this License, without any additional terms or conditions.
174
+ Notwithstanding the above, nothing herein shall supersede or modify
175
+ the terms of any separate license agreement you may have executed
176
+ with Licensor regarding such Contributions.
177
+
178
+ 6. Trademarks. This License does not grant permission to use the trade
179
+ names, trademarks, service marks, or product names of the Licensor,
180
+ except as required for reasonable and customary use in describing the
181
+ origin of the Work and reproducing the content of the NOTICE file.
182
+
183
+ 7. Disclaimer of Warranty. Unless required by applicable law or
184
+ agreed to in writing, Licensor provides the Work (and each
185
+ Contributor provides its Contributions) on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
187
+ implied, including, without limitation, any warranties or conditions
188
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
189
+ PARTICULAR PURPOSE. You are solely responsible for determining the
190
+ appropriateness of using or redistributing the Work and assume any
191
+ risks associated with Your exercise of permissions under this License.
192
+
193
+ 8. Limitation of Liability. In no event and under no legal theory,
194
+ whether in tort (including negligence), contract, or otherwise,
195
+ unless required by applicable law (such as deliberate and grossly
196
+ negligent acts) or agreed to in writing, shall any Contributor be
197
+ liable to You for damages, including any direct, indirect, special,
198
+ incidental, or consequential damages of any character arising as a
199
+ result of this License or out of the use or inability to use the
200
+ Work (including but not limited to damages for loss of goodwill,
201
+ work stoppage, computer failure or malfunction, or any and all
202
+ other commercial damages or losses), even if such Contributor
203
+ has been advised of the possibility of such damages.
204
+
205
+ 9. Accepting Warranty or Additional Liability. While redistributing
206
+ the Work or Derivative Works thereof, You may choose to offer,
207
+ and charge a fee for, acceptance of support, warranty, indemnity,
208
+ or other liability obligations and/or rights consistent with this
209
+ License. However, in accepting such obligations, You may act only
210
+ on Your own behalf and on Your sole responsibility, not on behalf
211
+ of any other Contributor, and only if You agree to indemnify,
212
+ defend, and hold each Contributor harmless for any liability
213
+ incurred by, or claims asserted against, such Contributor by reason
214
+ of your accepting any such warranty or additional liability.
215
+
216
+ END OF TERMS AND CONDITIONS
217
+
218
+ APPENDIX: How to apply the Apache License to your work.
219
+
220
+ To apply the Apache License to your work, attach the following
221
+ boilerplate notice, with the fields enclosed by brackets "[]"
222
+ replaced with your own identifying information. (Don't include
223
+ the brackets!) The text should be enclosed in the appropriate
224
+ comment syntax for the file format. We also recommend that a
225
+ file or class name and description of purpose be included on the
226
+ same "printed page" as the copyright notice for easier
227
+ identification within third-party archives.
228
+
229
+ Copyright [yyyy] [name of copyright owner]
230
+
231
+ Licensed under the Apache License, Version 2.0 (the "License");
232
+ you may not use this file except in compliance with the License.
233
+ You may obtain a copy of the License at
234
+
235
+ http://www.apache.org/licenses/LICENSE-2.0
236
+
237
+ Unless required by applicable law or agreed to in writing, software
238
+ distributed under the License is distributed on an "AS IS" BASIS,
239
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240
+ See the License for the specific language governing permissions and
241
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,81 @@
1
+ AllyHub
2
+ Copyright (c) 2026 AllyHub, Inc. All rights reserved.
3
+
4
+ This product is proprietary; see LICENSE.
5
+
6
+ Parts of the rendering code (frame capture with BeginFrame, worker sizing,
7
+ frame extraction and the ffmpeg arguments) and of the speech recognition
8
+ (the pinned Parakeet model and sherpa-onnx runtime installed on first use,
9
+ decoding in windows cut at silences and merging tokens into words) are
10
+ adapted from HyperFrames (https://github.com/heygen-com/hyperframes),
11
+ Copyright 2026 HeyGen, Inc., licensed under the Apache License, Version 2.0.
12
+ Each adapted file says so in its header.
13
+
14
+ The talking-head tools adapt logic from FilmCraft
15
+ (https://github.com/storytold/filmcraft), dual-licensed under the MIT
16
+ License or the Apache License, Version 2.0, and used here under the MIT
17
+ License: reading a take by word index and tightening word bounds to the
18
+ sound's level (crates/engine/src/transcript.rs, crates/speech/src/vad.rs),
19
+ placing cuts in the silence beside the words, and measuring the offset
20
+ between two recordings from their sound by generalised cross-correlation
21
+ (GCC-PHAT, coarse then refined; crates/audio-dsp/src/sync.rs). Each adapted
22
+ file says so in its header.
23
+
24
+ Copyright (c) 2026 ArtCraft Team and the FilmCraft contributors
25
+
26
+ Permission is hereby granted, free of charge, to any person obtaining a
27
+ copy of this software and associated documentation files (the
28
+ "Software"), to deal in the Software without restriction, including
29
+ without limitation the rights to use, copy, modify, merge, publish,
30
+ distribute, sublicense, and/or sell copies of the Software, and to permit
31
+ persons to whom the Software is furnished to do so, subject to the
32
+ following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included
35
+ in all copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
38
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
40
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
41
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
42
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
43
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
44
+
45
+ The SDK's motion and layout helpers are after three of Remotion's packages
46
+ (https://github.com/remotion-dev/remotion), each published under the MIT
47
+ License, written again in AllyHub's own code: fitting a text to n lines by
48
+ a binary search on its font size (@remotion/layout-utils,
49
+ fit-text-on-n-lines.ts and fill-text-box.ts; packages/sdk/src/fit.ts and
50
+ fitLines in dom.ts), seeded simplex noise with a seed and coordinates
51
+ (@remotion/noise; packages/sdk/src/noise.ts) and measuring, drawing on and
52
+ interpolating SVG paths (@remotion/paths: getLength, getPointAtLength,
53
+ getTangentAtLength, evolvePath, interpolatePath; packages/sdk/src/paths.ts).
54
+ Each file says so in its header. @remotion/noise wraps simplex-noise
55
+ (https://github.com/jwagner/simplex-noise.js, Copyright (c) 2022 Jonas
56
+ Wagner, MIT License); the noise here, like it, follows Stefan Gustavson's
57
+ public-domain simplex noise reference ("Simplex noise demystified", 2005).
58
+
59
+ Copyright (c) 2023 JonnyBurger
60
+
61
+ Permission is hereby granted, free of charge, to any person obtaining a
62
+ copy of this software and associated documentation files (the
63
+ "Software"), to deal in the Software without restriction, including
64
+ without limitation the rights to use, copy, modify, merge, publish,
65
+ distribute, sublicense, and/or sell copies of the Software, and to permit
66
+ persons to whom the Software is furnished to do so, subject to the
67
+ following conditions:
68
+
69
+ The above copyright notice and this permission notice shall be included
70
+ in all copies or substantial portions of the Software.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
73
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
74
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
75
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
76
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
77
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
78
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
79
+
80
+ The Apache License, Version 2.0 is reproduced at the end of LICENSE; those
81
+ parts remain under it.
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
1
+ # @allyhub/sdk
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The SDK that AllyHub videos and decks are written with: `definePiece`, the `video` and `paged` outputs, parts with their speech, footage and sounds, `defineComponent`, and the layout and motion helpers.
4
+
5
+ This package is part of [AllyHub](https://allyhub.com): product demo videos from a few sentences, made by your coding agent. You do not install it yourself. The `allyhub` command brings it, and a project folder needs no `package.json`.
6
+
7
+ To use AllyHub, add the skill to your agent:
8
+
9
+ ```bash
10
+ npx skills add allyhub-ai/skills
11
+ ```
12
+
13
+ The API reference is the AllyHub skill's `references/`, a file per topic; the skill's `SKILL.md` says which to read for a job.
14
+
15
+ ## License
16
+
17
+ Proprietary: you may install and use it as set out in `LICENSE`. Code adapted from other projects is listed in `NOTICE`. "AllyHub" is a trademark of AllyHub, Inc.
package/client.d.ts ADDED
@@ -0,0 +1,86 @@
1
+ // Types of the imports AllyHub's build understands. Add "@allyhub/sdk/client" to `types` in tsconfig.json.
2
+
3
+ type AllyHubMedia = import("@allyhub/engine/stage").MediaInfo;
4
+ type AllyHubRow = Record<string, string | number>;
5
+
6
+ declare module "*.png" {
7
+ const media: AllyHubMedia;
8
+ export default media;
9
+ }
10
+ declare module "*.jpg" {
11
+ const media: AllyHubMedia;
12
+ export default media;
13
+ }
14
+ declare module "*.jpeg" {
15
+ const media: AllyHubMedia;
16
+ export default media;
17
+ }
18
+ declare module "*.webp" {
19
+ const media: AllyHubMedia;
20
+ export default media;
21
+ }
22
+ declare module "*.gif" {
23
+ const media: AllyHubMedia;
24
+ export default media;
25
+ }
26
+ declare module "*.svg" {
27
+ const media: AllyHubMedia;
28
+ export default media;
29
+ }
30
+ declare module "*.avif" {
31
+ const media: AllyHubMedia;
32
+ export default media;
33
+ }
34
+ declare module "*.mp3" {
35
+ const media: AllyHubMedia;
36
+ export default media;
37
+ }
38
+ declare module "*.wav" {
39
+ const media: AllyHubMedia;
40
+ export default media;
41
+ }
42
+ declare module "*.m4a" {
43
+ const media: AllyHubMedia;
44
+ export default media;
45
+ }
46
+ declare module "*.ogg" {
47
+ const media: AllyHubMedia;
48
+ export default media;
49
+ }
50
+ declare module "*.aac" {
51
+ const media: AllyHubMedia;
52
+ export default media;
53
+ }
54
+ declare module "*.flac" {
55
+ const media: AllyHubMedia;
56
+ export default media;
57
+ }
58
+ declare module "*.mp4" {
59
+ const media: AllyHubMedia;
60
+ export default media;
61
+ }
62
+ declare module "*.webm" {
63
+ const media: AllyHubMedia;
64
+ export default media;
65
+ }
66
+ declare module "*.mov" {
67
+ const media: AllyHubMedia;
68
+ export default media;
69
+ }
70
+ declare module "*.woff2" {
71
+ const media: AllyHubMedia;
72
+ export default media;
73
+ }
74
+ declare module "*.csv" {
75
+ /** One object per row, keyed by the header; numeric columns are numbers. */
76
+ const rows: AllyHubRow[];
77
+ export default rows;
78
+ }
79
+ declare module "*.yaml" {
80
+ const data: unknown;
81
+ export default data;
82
+ }
83
+ declare module "*.yml" {
84
+ const data: unknown;
85
+ export default data;
86
+ }
package/dist/anim.d.ts ADDED
@@ -0,0 +1,41 @@
1
+ export type Ease = (x: number) => number;
2
+ export declare const clamp: (x: number, lo?: number, hi?: number) => number;
3
+ export declare const lerp: (a: number, b: number, x: number) => number;
4
+ /** Progress of t through [start, start + dur], clamped to 0–1. */
5
+ export declare const progress: (t: number, start: number, dur: number) => number;
6
+ export declare const ease: {
7
+ linear: Ease;
8
+ in: Ease;
9
+ out: Ease;
10
+ inOut: Ease;
11
+ outExpo: Ease;
12
+ outBack: Ease;
13
+ /** A damped spring that settles at 1. */
14
+ spring(damping?: number, frequency?: number): Ease;
15
+ };
16
+ export interface TweenOptions {
17
+ from?: number;
18
+ to?: number;
19
+ start?: number;
20
+ dur?: number;
21
+ ease?: Ease;
22
+ }
23
+ /** The value at time t of a tween from `from` to `to`. */
24
+ export declare function tween(t: number, opts?: TweenOptions): number;
25
+ /** The delay of the i-th element of a staggered group. */
26
+ export declare const stagger: (i: number, gap: number) => number;
27
+ /** A deterministic random number generator: the same seed, the same numbers. */
28
+ export declare function rand(seed: string | number): () => number;
29
+ export interface FitTextOptions {
30
+ /** Smallest font size in px. */
31
+ min: number;
32
+ /** Largest font size in px. */
33
+ max: number;
34
+ }
35
+ /**
36
+ * Sets the largest font size in [min, max] at which the element's text fits
37
+ * its own box (no overflow). The element needs a definite width (and height,
38
+ * to limit lines). Returns the size chosen.
39
+ */
40
+ export declare function fitText(el: HTMLElement, opts: FitTextOptions): number;
41
+ //# sourceMappingURL=anim.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anim.d.ts","sourceRoot":"","sources":["../src/anim.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AAEzC,eAAO,MAAM,KAAK,GAAI,GAAG,MAAM,EAAE,WAAM,EAAE,WAAM,KAAG,MACnB,CAAC;AAEhC,eAAO,MAAM,IAAI,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,MACtC,CAAC;AAElB,kEAAkE;AAClE,eAAO,MAAM,QAAQ,GAAI,GAAG,MAAM,EAAE,OAAO,MAAM,EAAE,KAAK,MAAM,KAAG,MACL,CAAC;AAE7D,eAAO,MAAM,IAAI;YACO,IAAI;QACA,IAAI;SACU,IAAI;WAEoB,IAAI;aACP,IAAI;aAK3D,IAAI;IACV,yCAAyC;kDACH,IAAI;CAO3C,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,0DAA0D;AAC1D,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,YAAiB,GAAG,MAAM,CAGhE;AAED,0DAA0D;AAC1D,eAAO,MAAM,OAAO,GAAI,GAAG,MAAM,EAAE,KAAK,MAAM,KAAG,MAAiB,CAAC;AAYnE,gFAAgF;AAChF,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,MAAM,CAQxD;AAED,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,CAgBrE"}
package/dist/anim.js ADDED
@@ -0,0 +1,75 @@
1
+ // Animation helpers. All are pure functions of time (the skill's references/core.md, "Animation helpers").
2
+ export const clamp = (x, lo = 0, hi = 1) => Math.min(hi, Math.max(lo, x));
3
+ export const lerp = (a, b, x) => a + (b - a) * x;
4
+ /** Progress of t through [start, start + dur], clamped to 0–1. */
5
+ export const progress = (t, start, dur) => dur <= 0 ? (t >= start ? 1 : 0) : clamp((t - start) / dur);
6
+ export const ease = {
7
+ linear: ((x) => x),
8
+ in: ((x) => x * x * x),
9
+ out: ((x) => 1 - Math.pow(1 - x, 3)),
10
+ inOut: ((x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2),
11
+ outExpo: ((x) => (x >= 1 ? 1 : 1 - Math.pow(2, -10 * x))),
12
+ outBack: ((x) => {
13
+ const c1 = 1.7;
14
+ const c3 = c1 + 1;
15
+ return 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2);
16
+ }),
17
+ /** A damped spring that settles at 1. */
18
+ spring(damping = 7, frequency = 3.2) {
19
+ return (x) => x >= 1
20
+ ? 1
21
+ : 1 -
22
+ Math.exp(-damping * x) * Math.cos(frequency * Math.PI * 2 * x * 0.5);
23
+ },
24
+ };
25
+ /** The value at time t of a tween from `from` to `to`. */
26
+ export function tween(t, opts = {}) {
27
+ const { from = 0, to = 1, start = 0, dur = 0.5, ease: e = ease.out } = opts;
28
+ return lerp(from, to, e(progress(t, start, dur)));
29
+ }
30
+ /** The delay of the i-th element of a staggered group. */
31
+ export const stagger = (i, gap) => i * gap;
32
+ function hashSeed(seed) {
33
+ const s = String(seed);
34
+ let h = 2166136261;
35
+ for (let i = 0; i < s.length; i++) {
36
+ h ^= s.charCodeAt(i);
37
+ h = Math.imul(h, 16777619);
38
+ }
39
+ return h >>> 0;
40
+ }
41
+ /** A deterministic random number generator: the same seed, the same numbers. */
42
+ export function rand(seed) {
43
+ let a = hashSeed(seed);
44
+ return () => {
45
+ a = (a + 0x6d2b79f5) | 0;
46
+ let t = Math.imul(a ^ (a >>> 15), 1 | a);
47
+ t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
48
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
49
+ };
50
+ }
51
+ /**
52
+ * Sets the largest font size in [min, max] at which the element's text fits
53
+ * its own box (no overflow). The element needs a definite width (and height,
54
+ * to limit lines). Returns the size chosen.
55
+ */
56
+ export function fitText(el, opts) {
57
+ const fits = () => el.scrollWidth <= el.clientWidth + 1 &&
58
+ el.scrollHeight <= el.clientHeight + 1;
59
+ let lo = opts.min;
60
+ let hi = opts.max;
61
+ el.style.fontSize = `${hi}px`;
62
+ if (fits())
63
+ return hi;
64
+ while (hi - lo > 0.5) {
65
+ const mid = (lo + hi) / 2;
66
+ el.style.fontSize = `${mid}px`;
67
+ if (fits())
68
+ lo = mid;
69
+ else
70
+ hi = mid;
71
+ }
72
+ el.style.fontSize = `${lo}px`;
73
+ return lo;
74
+ }
75
+ //# sourceMappingURL=anim.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anim.js","sourceRoot":"","sources":["../src/anim.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAI3G,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,EAAU,EAAE,CACzD,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAEhC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAU,EAAE,CAC9D,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAElB,kEAAkE;AAClE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAE,KAAa,EAAE,GAAW,EAAU,EAAE,CACxE,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;AAE7D,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAS;IAC1B,EAAE,EAAE,CAAC,CAAC,CAAC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AAI,CAAC;IAC9B,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { type GraphicLayer, type LayerTiming, type StageContext, type TimeShape } from "@allyhub/engine/stage";
2
+ import type { PropSchema, Timed } from "./props.js";
3
+ export type { StageContext } from "@allyhub/engine/stage";
4
+ /** What every graphic layer takes besides a component's own props. */
5
+ export interface LayerOptions extends LayerTiming {
6
+ /**
7
+ * "front" (default): at its place in the part's layers, over those
8
+ * listed before it. "behind-person": right over the part's own footage
9
+ * and under its speaker, cut out with the take's person matte.
10
+ */
11
+ z?: "front" | "behind-person";
12
+ }
13
+ /** Text for people: one string, or by language. */
14
+ export type Label = string | Record<string, string>;
15
+ /** A component's description, as plain data (it goes into the project's metadata). */
16
+ export interface ComponentInfo {
17
+ name: string;
18
+ label: Label;
19
+ summary?: Label;
20
+ /** Semantic types of the props: editors and checks use them. */
21
+ props: Record<string, PropSchema>;
22
+ /** Named example props; the platform renders previews from them. */
23
+ examples: Record<string, Record<string, unknown>>;
24
+ /** Deprecated components are hidden, not deleted. */
25
+ hidden: boolean;
26
+ }
27
+ export interface ComponentDefinition<P extends object> {
28
+ name: string;
29
+ /** A name for people; default: `name`. */
30
+ label?: Label;
31
+ /** One line on what it is for. */
32
+ summary?: Label;
33
+ /**
34
+ * The props' semantic types: text(), time(), asset()… (pure data). A
35
+ * prop declared time() may be given as a word reference; the component
36
+ * receives seconds from the part's start.
37
+ */
38
+ props?: {
39
+ [K in keyof P]?: PropSchema;
40
+ };
41
+ /** Named example props, e.g. { default: { … } }. */
42
+ examples?: Record<string, Partial<Timed<P>>>;
43
+ hidden?: boolean;
44
+ /** Default values of props. */
45
+ defaults?: Partial<Timed<P>>;
46
+ /**
47
+ * Lays the layer out once: builds its elements, measures text. `ctx.dur`
48
+ * is the part's length, `ctx.layer` the layer's window in it.
49
+ */
50
+ mount(el: HTMLElement, props: P, ctx: StageContext): void;
51
+ /** Sets everything that moves from `t` alone: seconds from the part's start. */
52
+ render(el: HTMLElement, t: number, props: P, ctx: StageContext): void;
53
+ }
54
+ /** A component: a function that makes a graphic layer from its props and the layer options. */
55
+ export type Component<P extends object> = ((opts: LayerOptions & Timed<P>) => GraphicLayer<P>) & {
56
+ componentName: string;
57
+ info: ComponentInfo;
58
+ };
59
+ /**
60
+ * Layer options share one object with a component's props, so these names
61
+ * are reserved: a component cannot have props called this.
62
+ */
63
+ export declare const LAYER_OPTIONS: readonly string[];
64
+ /** Where props hold times, from their schema; undefined when none do. */
65
+ export declare function timeShape(props: Readonly<Record<string, PropSchema | undefined>>): TimeShape | undefined;
66
+ /** Makes a component: a function that returns a graphic layer. */
67
+ export declare function defineComponent<P extends object>(def: ComponentDefinition<P>): Component<P>;
68
+ export interface CustomOptions extends LayerOptions {
69
+ mount?(el: HTMLElement, ctx: StageContext): void;
70
+ /** Sets everything that moves from `t` alone: seconds from the part's start. */
71
+ render(el: HTMLElement, t: number, ctx: StageContext): void;
72
+ }
73
+ /** A graphic layer written directly in the output, for what no component does. */
74
+ export declare function custom(opts: CustomOptions): GraphicLayer;
75
+ //# sourceMappingURL=define.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEpD,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,sEAAsE;AACtE,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C;;;;OAIG;IACH,CAAC,CAAC,EAAE,OAAO,GAAG,eAAe,CAAC;CAC/B;AAED,mDAAmD;AACnD,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,sF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