stillmade-sdk 0.1.42 → 0.1.44

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 (262) hide show
  1. package/.stillmade/sdk-baseline.json +6 -8
  2. package/AGENTS.md +15 -10
  3. package/FRAME_VIEWS.md +113 -0
  4. package/INTERFACE_DESIGN.md +62 -22
  5. package/MOBILE_UI.md +4 -2
  6. package/MODULES.md +152 -6
  7. package/PASTE_TO_LLM.md +35 -25
  8. package/README.md +3 -2
  9. package/SDK.md +994 -550
  10. package/UI_AESTHETIC.md +22 -2
  11. package/blocks/generate/package.js +1 -0
  12. package/blocks/generate/versions/1.0.0/package.js +463 -0
  13. package/docs/build/audio-to-editor.md +36 -0
  14. package/docs/build/block-builder-contract.md +150 -0
  15. package/docs/build/comfyui.md +227 -0
  16. package/docs/build/concepts.md +40 -0
  17. package/docs/build/context.md +159 -0
  18. package/docs/build/cookbook.md +57 -0
  19. package/docs/build/custom-interface.md +617 -0
  20. package/docs/build/data-types.md +83 -0
  21. package/docs/build/frame-views.md +259 -0
  22. package/docs/build/generate-media.md +59 -0
  23. package/docs/build/github-applications.md +314 -0
  24. package/docs/build/hosted-images.md +214 -0
  25. package/docs/build/hosted-music.md +39 -0
  26. package/docs/build/hosted-speech.md +157 -0
  27. package/docs/build/hosted-text.md +246 -0
  28. package/docs/build/image-description.md +49 -0
  29. package/docs/build/interface-design.md +343 -0
  30. package/docs/build/javascript.md +63 -0
  31. package/docs/build/local-preview.md +61 -0
  32. package/docs/build/media-analysis.md +27 -0
  33. package/docs/build/media.md +400 -0
  34. package/docs/build/mobile-ui.md +106 -0
  35. package/docs/build/modules.md +487 -0
  36. package/docs/build/original-blocks.md +70 -0
  37. package/docs/build/outside-apis.md +128 -0
  38. package/docs/build/production-context-templates.md +12 -0
  39. package/docs/build/project-storage.md +94 -0
  40. package/docs/build/quickstart.md +48 -0
  41. package/docs/build/recipes.md +103 -0
  42. package/docs/build/script-handoff.md +45 -0
  43. package/docs/build/script-writer.md +34 -0
  44. package/docs/build/state.md +223 -0
  45. package/docs/build/testing.md +112 -0
  46. package/docs/build/timeline-edits.md +116 -0
  47. package/docs/build/timeline-proposals.md +76 -0
  48. package/docs/build/transcription.md +59 -0
  49. package/docs/build/triggers.md +59 -0
  50. package/docs/build/tutorial.md +52 -0
  51. package/docs/build/typescript.md +34 -0
  52. package/docs/build/video-generation.md +61 -0
  53. package/docs/build/web-reading.md +37 -0
  54. package/docs/build/with-your-ai.md +27 -0
  55. package/docs/changelog.md +9 -0
  56. package/docs/creators.md +21 -0
  57. package/docs/distribute/discovery.md +43 -0
  58. package/docs/distribute/imports.md +58 -0
  59. package/docs/distribute/publishing.md +29 -0
  60. package/docs/distribute/sdk-versions.md +36 -0
  61. package/docs/distribute/selling.md +14 -0
  62. package/docs/distribute/teams.md +60 -0
  63. package/docs/distribute/versioning.md +28 -0
  64. package/docs/examples.md +23 -0
  65. package/docs/gallery.md +26 -0
  66. package/docs/index.md +50 -0
  67. package/docs/native-mcp.md +307 -0
  68. package/docs/project-types/automation.md +43 -0
  69. package/docs/project-types/batches.md +50 -0
  70. package/docs/project-types/build.md +42 -0
  71. package/docs/project-types/completion.md +15 -0
  72. package/docs/project-types/conditions.md +21 -0
  73. package/docs/project-types/hosted-review.md +115 -0
  74. package/docs/project-types/onboarding.md +75 -0
  75. package/docs/project-types/running.md +309 -0
  76. package/docs/project-types/testing.md +72 -0
  77. package/docs/reference/application-artifacts.md +87 -0
  78. package/docs/reference/authoring-guide.md +134 -0
  79. package/docs/reference/browser-applications.md +267 -0
  80. package/docs/reference/capabilities.md +45 -0
  81. package/docs/reference/cli.md +71 -0
  82. package/docs/reference/connection-api.md +59 -0
  83. package/docs/reference/cooperative-jobs.md +13 -0
  84. package/docs/reference/desktop-capabilities.md +172 -0
  85. package/docs/reference/desktop-execution.md +77 -0
  86. package/docs/reference/errors.md +233 -0
  87. package/docs/reference/execution.md +800 -0
  88. package/docs/reference/first-party-blocks.md +40 -0
  89. package/docs/reference/generation-models.md +59 -0
  90. package/docs/reference/limits.md +306 -0
  91. package/docs/reference/manifest-kinds-controls.md +36 -0
  92. package/docs/reference/manifest.md +181 -0
  93. package/docs/reference/operations.md +36 -0
  94. package/docs/reference/package-jobs.md +35 -0
  95. package/docs/reference/parity.md +55 -0
  96. package/docs/reference/permissions.md +86 -0
  97. package/docs/reference/ports.md +26 -0
  98. package/docs/reference/types.md +268 -0
  99. package/docs/reference/universal-resolver.md +303 -0
  100. package/docs/reference/view-bridge.md +60 -0
  101. package/docs/reference/view-rules.md +15 -0
  102. package/docs/reference/workspace-sync.md +25 -0
  103. package/docs/sdk.md +34 -0
  104. package/docs/tools/block-remix.md +211 -0
  105. package/docs/tools/llm.md +2213 -0
  106. package/docs/tools/repository-adaptation.md +613 -0
  107. package/examples/check-clip.stillmade.json +4 -1
  108. package/examples/generate-video.stillmade.json +6 -2
  109. package/examples/research-topic.stillmade.json +5 -1
  110. package/examples/text-workflow.stillmade.json +3 -32
  111. package/examples/timeline-polish.stillmade.json +11 -3
  112. package/examples/transcribe-audio.stillmade.json +11 -3
  113. package/package.json +1 -1
  114. package/packages/block-cli/cli.js +13 -6
  115. package/packages/block-cli/dev-host/assets/host.js +76 -38
  116. package/packages/block-cli/dev-host/assets/index.css +1 -1
  117. package/packages/block-cli/format.js +1 -1
  118. package/packages/block-cli/templates.js +31 -13
  119. package/packages/block-cli/type-packages.js +119 -0
  120. package/packages/block-platform/block-readiness.js +5 -0
  121. package/packages/block-platform/canvas.js +2 -1
  122. package/packages/block-platform/catalog.js +27 -48
  123. package/packages/block-platform/native-host-inventory.js +0 -226
  124. package/packages/block-platform/plain-descriptions.js +1 -25
  125. package/packages/block-platform/project-type-starters.js +13 -53
  126. package/packages/block-platform/script-handoff.js +2 -4
  127. package/packages/block-platform/type-workspace.js +2 -0
  128. package/packages/block-sdk/appearance.js +3 -1
  129. package/packages/block-sdk/block-tier.js +1 -1
  130. package/packages/block-sdk/builder-contract.js +10 -8
  131. package/packages/block-sdk/capabilities.js +1 -1
  132. package/packages/block-sdk/contracts.js +6 -2
  133. package/packages/block-sdk/first-party-identities.js +1 -84
  134. package/packages/block-sdk/first-party-packages.js +3 -85
  135. package/packages/block-sdk/generation-catalog.js +15 -3
  136. package/packages/block-sdk/index.d.ts +2 -1
  137. package/packages/block-sdk/media-analysis-example.js +1 -1
  138. package/packages/block-sdk/mock-host.js +7 -1
  139. package/packages/block-sdk/module-host-calls.js +35 -10
  140. package/packages/block-sdk/module-hosted.js +15 -2
  141. package/packages/block-sdk/module-media-access.js +71 -0
  142. package/packages/block-sdk/module-node.js +1 -1
  143. package/packages/block-sdk/portable-media-actions.js +1 -1
  144. package/packages/block-sdk/runtime.js +1 -1
  145. package/packages/block-sdk/timeline-proposal-example.js +1 -1
  146. package/packages/block-sdk/transcription-example.js +1 -1
  147. package/packages/block-sdk/video-generation-example.js +1 -1
  148. package/packages/block-sdk/view-bridge.js +4 -1
  149. package/packages/block-sdk/view-design.js +17 -14
  150. package/packages/block-sdk/web-example.js +1 -1
  151. package/packages/design-system/block-kit.css +48 -12
  152. package/packages/design-system/block-kit.html +3 -2
  153. package/blocks/mcp-motion-planner/versions/1.1.0/package.js +0 -97
  154. package/blocks/motion-designer/versions/1.0.1/package.js +0 -173318
  155. package/blocks/motion-designer/versions/1.0.2/package.js +0 -173318
  156. package/blocks/motion-frame-review/versions/1.1.1/package.js +0 -465
  157. package/blocks/motion-frame-review/versions/1.1.2/package.snapshot.js +0 -572
  158. package/blocks/narration/package.js +0 -1
  159. package/blocks/narration/versions/1.0.0/package.js +0 -221
  160. package/blocks/narration/versions/1.0.1/package.js +0 -221
  161. package/blocks/native/sm.animated-scene/versions/2.0.0/package.js +0 -475
  162. package/blocks/native/sm.animated-scene/versions/2.1.0/package.js +0 -498
  163. package/blocks/native/sm.animated-scene/versions/2.2.0/package.js +0 -524
  164. package/blocks/native/sm.animated-scene/versions/2.3.0/package.js +0 -618
  165. package/blocks/native/sm.animated-scene/versions/2.3.1/package.js +0 -618
  166. package/blocks/native/sm.animated-scene/versions/2.3.2/package.js +0 -723
  167. package/blocks/native/sm.animated-scene/versions/2.3.3/package.js +0 -723
  168. package/blocks/native/sm.animated-scene/versions/2.3.4/package.js +0 -676
  169. package/blocks/native/sm.animated-scene/versions/2.3.5/package.js +0 -693
  170. package/blocks/native/sm.animated-scene/versions/2.3.6/package.js +0 -700
  171. package/blocks/native/sm.animated-scene/versions/2.3.7/package.js +0 -747
  172. package/blocks/native/sm.animated-scene/versions/2.3.8/package.js +0 -769
  173. package/blocks/native/sm.animated-scene/versions/2.3.9/package.js +0 -769
  174. package/blocks/native/sm.animated-scene-assistant/versions/1.0.0/package.js +0 -183
  175. package/blocks/native/sm.blueprint/versions/2.0.0/package.js +0 -358
  176. package/blocks/native/sm.blueprint/versions/2.1.0/package.js +0 -358
  177. package/blocks/native/sm.blueprint/versions/2.1.1/package.js +0 -358
  178. package/blocks/native/sm.blueprint/versions/2.1.2/package.js +0 -358
  179. package/blocks/native/sm.blueprint/versions/2.1.3/package.js +0 -381
  180. package/blocks/native/sm.blueprint/versions/2.1.4/package.js +0 -381
  181. package/blocks/native/sm.blueprint/versions/2.1.5/package.js +0 -339
  182. package/blocks/native/sm.blueprint/versions/2.1.6/package.js +0 -356
  183. package/blocks/native/sm.blueprint/versions/2.1.7/package.js +0 -363
  184. package/blocks/native/sm.blueprint/versions/2.1.8/package.js +0 -410
  185. package/blocks/native/sm.blueprint/versions/2.1.9/package.js +0 -422
  186. package/blocks/native/sm.blueprint-assistant/versions/1.0.0/package.js +0 -172
  187. package/blocks/native/sm.chat/versions/2.0.0/package.js +0 -144
  188. package/blocks/native/sm.chat/versions/2.0.1/package.js +0 -97
  189. package/blocks/native/sm.chat/versions/2.0.2/package.js +0 -100
  190. package/blocks/native/sm.chat/versions/2.0.3/package.js +0 -100
  191. package/blocks/native/sm.continue-if/versions/1.0.0/package.js +0 -168
  192. package/blocks/native/sm.describe-media/versions/2.0.0/package.js +0 -153
  193. package/blocks/native/sm.describe-media/versions/2.0.1/package.js +0 -156
  194. package/blocks/native/sm.describe-media/versions/2.1.0/package.js +0 -140
  195. package/blocks/native/sm.image-editor/versions/2.0.0/package.js +0 -183
  196. package/blocks/native/sm.image-editor/versions/2.0.1/package.js +0 -190
  197. package/blocks/native/sm.new-items/versions/1.0.0/package.js +0 -191
  198. package/blocks/native/sm.pick-photos/versions/1.0.0/package.js +0 -334
  199. package/blocks/native/sm.quality-audit/versions/1.0.0/package.js +0 -192
  200. package/blocks/native/sm.quality-audit/versions/1.0.1/package.js +0 -192
  201. package/blocks/native/sm.quality-audit/versions/1.0.2/package.js +0 -195
  202. package/blocks/native/sm.research/versions/2.0.0/package.js +0 -175
  203. package/blocks/native/sm.research/versions/2.0.1/package.js +0 -184
  204. package/blocks/native/sm.research/versions/2.0.2/package.js +0 -187
  205. package/blocks/native/sm.script/versions/2.0.0/package.js +0 -144
  206. package/blocks/native/sm.script/versions/2.1.0/package.js +0 -144
  207. package/blocks/native/sm.script/versions/2.1.1/package.js +0 -144
  208. package/blocks/native/sm.script/versions/2.1.2/package.js +0 -105
  209. package/blocks/native/sm.script/versions/2.1.3/package.js +0 -152
  210. package/blocks/native/sm.script/versions/2.1.4/package.js +0 -156
  211. package/blocks/native/sm.script/versions/2.1.5/package.js +0 -156
  212. package/blocks/native/sm.shot-plan/versions/2.0.0/package.js +0 -301
  213. package/blocks/native/sm.shot-plan/versions/2.1.0/package.js +0 -528
  214. package/blocks/native/sm.shot-plan/versions/2.1.1/package.js +0 -528
  215. package/blocks/native/sm.shot-plan/versions/2.1.2/package.js +0 -528
  216. package/blocks/native/sm.shot-plan/versions/2.1.3/package.js +0 -536
  217. package/blocks/native/sm.shot-plan/versions/2.2.0/package.js +0 -800
  218. package/blocks/native/sm.shot-plan/versions/2.2.1/package.js +0 -920
  219. package/blocks/native/sm.shot-plan-assistant/versions/1.0.0/package.js +0 -173
  220. package/blocks/native/sm.stock-search/versions/2.0.0/package.js +0 -174
  221. package/blocks/native/sm.thumbnail/versions/2.0.0/package.js +0 -137
  222. package/blocks/native/sm.thumbnail/versions/2.0.1/package.js +0 -140
  223. package/blocks/native/sm.transcribe/versions/2.0.0/package.js +0 -163
  224. package/blocks/native/sm.transcribe/versions/2.0.1/package.js +0 -168
  225. package/blocks/native/sm.whiteboard-assistant/versions/1.0.0/package.js +0 -175
  226. package/blocks/native/sm.youtube/versions/2.0.0/package.js +0 -217
  227. package/blocks/occasion-story/package.js +0 -1
  228. package/blocks/occasion-story/versions/1.0.0/package.js +0 -1658
  229. package/blocks/occasion-story/versions/1.0.1/package.js +0 -1699
  230. package/blocks/occasion-story/versions/1.0.2/package.js +0 -1682
  231. package/blocks/photo-reel-composer/versions/1.0.0/package.js +0 -3043
  232. package/blocks/photo-reel-composer/versions/1.0.1/package.js +0 -3026
  233. package/blocks/photo-reel-composer/versions/1.0.2/package.js +0 -4149
  234. package/blocks/product-ad-variants/versions/1.0.0/package.js +0 -2911
  235. package/blocks/product-launch-director/versions/1.0.0/package.js +0 -103
  236. package/blocks/release-visuals/package.js +0 -1
  237. package/blocks/release-visuals/versions/1.0.0/package.js +0 -1492
  238. package/blocks/release-visuals/versions/1.0.1/package.js +0 -1517
  239. package/blocks/release-visuals/versions/1.0.2/package.js +0 -1500
  240. package/blocks/screen-recorder/package.js +0 -1
  241. package/blocks/screen-recorder/versions/1.0.0/package.js +0 -223
  242. package/blocks/screen-recorder/versions/1.0.1/package.js +0 -223
  243. package/blocks/short-form-finish/package.js +0 -1
  244. package/blocks/short-form-finish/versions/1.0.0/package.js +0 -1043
  245. package/blocks/short-form-finish/versions/1.0.1/package.js +0 -1043
  246. package/blocks/short-form-finish/versions/1.0.2/package.js +0 -1043
  247. package/blocks/short-form-finish/versions/1.0.3/package.js +0 -1026
  248. package/examples/saas-product-launch-reviewed-source.stillmade.json +0 -383
  249. package/examples/saas-product-launch.stillmade.json +0 -304
  250. package/packages/block-platform/dealer-inventory-video-project-type.js +0 -38
  251. package/packages/block-platform/first-revenue-project-types.js +0 -46
  252. package/packages/block-platform/fixture-starters.js +0 -13
  253. package/packages/block-platform/launch-project-source.js +0 -10
  254. package/packages/block-platform/launch-project.js +0 -30
  255. package/packages/block-platform/motion-project-types.js +0 -55
  256. package/packages/block-platform/motion-starters.js +0 -14
  257. package/packages/block-platform/product-ad-variants-project-type.js +0 -30
  258. package/packages/block-platform/product-launch-updated.js +0 -90
  259. package/packages/block-platform/revenue-review-project-types.js +0 -36
  260. package/packages/block-platform/revenue-review-starters.js +0 -13
  261. package/packages/block-platform/script-writer.js +0 -29
  262. package/packages/block-platform/website-source-block.js +0 -14
@@ -1,1517 +0,0 @@
1
- // Generated from independently owned versioned source.
2
- export default {
3
- "manifest": {
4
- "schemaVersion": 1,
5
- "sdkVersion": "0.1.0",
6
- "id": "stillmade.release-visuals",
7
- "version": "1.0.1",
8
- "name": "Release Visuals",
9
- "description": "Build an editable social release teaser or timed lyric excerpt from original cover art and a supplied recording.",
10
- "kind": "task",
11
- "runtime": "javascript",
12
- "entry": "src/run.js",
13
- "license": "MIT",
14
- "inputs": {
15
- "assets": {
16
- "type": "asset[]",
17
- "default": [],
18
- "description": "One cover image and one audio recording.",
19
- "primary": true,
20
- "required": true,
21
- "semantic": "legacy.asset-list.assets",
22
- "sources": [
23
- "upstream",
24
- "user"
25
- ]
26
- },
27
- "purpose": {
28
- "type": "text",
29
- "default": "release-teaser",
30
- "description": "Release teaser or lyric excerpt.",
31
- "semantic": "stillmade.release_visuals.purpose",
32
- "sources": [
33
- "user",
34
- "default"
35
- ],
36
- "required": false
37
- },
38
- "title": {
39
- "type": "text",
40
- "default": "",
41
- "description": "Exact release title, up to 56 characters.",
42
- "required": true,
43
- "semantic": "stillmade.release_visuals.title",
44
- "sources": [
45
- "user",
46
- "default"
47
- ]
48
- },
49
- "artist": {
50
- "type": "text",
51
- "default": "",
52
- "description": "Exact artist name, up to 56 characters.",
53
- "required": true,
54
- "semantic": "stillmade.release_visuals.artist",
55
- "sources": [
56
- "user",
57
- "default"
58
- ]
59
- },
60
- "cta": {
61
- "type": "text",
62
- "default": "",
63
- "description": "Approved release message or destination. Teasers only; lyrics occupy this space.",
64
- "semantic": "stillmade.release_visuals.cta",
65
- "sources": [
66
- "user",
67
- "default"
68
- ],
69
- "required": false
70
- },
71
- "duration": {
72
- "type": "number",
73
- "default": 20,
74
- "description": "Excerpt duration, 8–60 seconds.",
75
- "min": 8,
76
- "max": 60,
77
- "semantic": "stillmade.release_visuals.duration",
78
- "sources": [
79
- "user",
80
- "default"
81
- ],
82
- "required": false
83
- },
84
- "songVolume": {
85
- "type": "number",
86
- "default": 100,
87
- "description": "Song volume, 1–100. Lower for additional headroom; this is not loudness normalization.",
88
- "min": 1,
89
- "max": 100,
90
- "semantic": "stillmade.release_visuals.songvolume",
91
- "sources": [
92
- "user",
93
- "default"
94
- ],
95
- "required": false
96
- },
97
- "offset": {
98
- "type": "number",
99
- "default": 0,
100
- "description": "Start time within the original song, in seconds.",
101
- "min": 0,
102
- "max": 7200,
103
- "semantic": "stillmade.release_visuals.offset",
104
- "sources": [
105
- "user",
106
- "default"
107
- ],
108
- "required": false
109
- },
110
- "lyrics": {
111
- "type": "text",
112
- "default": "",
113
- "description": "Reviewed lyric lines relative to this excerpt: 0-3.5 | exact words. One line per phrase; no automatic alignment.",
114
- "semantic": "stillmade.release_visuals.lyrics",
115
- "sources": [
116
- "user",
117
- "default"
118
- ],
119
- "required": false
120
- },
121
- "aspect": {
122
- "type": "text",
123
- "default": "9:16",
124
- "description": "Output frame shape.",
125
- "semantic": "stillmade.release_visuals.aspect",
126
- "sources": [
127
- "user",
128
- "default"
129
- ],
130
- "required": false
131
- },
132
- "disclosure": {
133
- "type": "text",
134
- "default": "",
135
- "description": "Optional source or demonstration disclosure.",
136
- "semantic": "stillmade.release_visuals.disclosure",
137
- "sources": [
138
- "user",
139
- "default"
140
- ],
141
- "required": false
142
- },
143
- "rightsConfirmed": {
144
- "type": "boolean",
145
- "default": false,
146
- "description": "I have rights to the cover art, recording, lyrics and supplied statements.",
147
- "required": true,
148
- "sources": [
149
- "user"
150
- ],
151
- "semantic": "stillmade.release_visuals.rightsconfirmed"
152
- }
153
- },
154
- "outputs": {
155
- "timeline": {
156
- "type": "timeline",
157
- "primary": true,
158
- "semantic": "legacy.timeline.updatededitor",
159
- "description": "Complete editable timeline using original source media."
160
- },
161
- "review": {
162
- "type": "json",
163
- "semantic": "stillmade.release_visuals.review",
164
- "description": "Production scope and remaining human review.",
165
- "schema": {
166
- "schemaVersion": "integer",
167
- "state": "string",
168
- "humanApproved": "boolean",
169
- "purpose": "string",
170
- "durationSec": "number",
171
- "sourceOffset": "number",
172
- "lyricCount": "integer",
173
- "providerCalls": "integer",
174
- "warnings": "string[]"
175
- }
176
- }
177
- },
178
- "permissions": {
179
- "project": [
180
- "asset.read"
181
- ],
182
- "network": [],
183
- "filesystem": [],
184
- "secrets": []
185
- },
186
- "ui": [
187
- {
188
- "port": "songVolume",
189
- "control": "slider",
190
- "min": 1,
191
- "max": 100,
192
- "step": 1
193
- },
194
- {
195
- "port": "purpose",
196
- "control": "select",
197
- "options": [
198
- "release-teaser",
199
- "lyric-excerpt"
200
- ]
201
- },
202
- {
203
- "port": "duration",
204
- "control": "slider",
205
- "min": 8,
206
- "max": 60,
207
- "step": 1
208
- },
209
- {
210
- "port": "aspect",
211
- "control": "select",
212
- "options": [
213
- "9:16",
214
- "16:9",
215
- "1:1"
216
- ]
217
- }
218
- ],
219
- "platforms": {
220
- "phone": {
221
- "supported": true
222
- },
223
- "browser": {
224
- "supported": true
225
- },
226
- "desktop": {
227
- "supported": true
228
- }
229
- },
230
- "provenance": {
231
- "notice": "Original source (authorship declared by the packager)\nLicense: MIT\nChanges: Original implementation declared by the packager; no reused repository or dependency code.\nFiles: LICENSE, src/run.js\n\nMIT License\n\nCopyright (c) <year> <copyright holders>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and \nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including \nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the \nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial \nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT \nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO \nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER \nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE \nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n",
232
- "portableSources": [
233
- {
234
- "kind": "original",
235
- "license": "MIT",
236
- "paths": [
237
- "LICENSE",
238
- "src/run.js"
239
- ],
240
- "evidence": [
241
- "upstream/0/LICENSE",
242
- "upstream/0/src/run.js"
243
- ],
244
- "changes": "Original implementation declared by the packager; no reused repository or dependency code."
245
- }
246
- ]
247
- },
248
- "semantics": [
249
- {
250
- "name": "stillmade.release_visuals.purpose",
251
- "description": "Release teaser or lyric excerpt.",
252
- "parents": []
253
- },
254
- {
255
- "name": "stillmade.release_visuals.title",
256
- "description": "Exact release title, up to 56 characters.",
257
- "parents": []
258
- },
259
- {
260
- "name": "stillmade.release_visuals.artist",
261
- "description": "Exact artist name, up to 56 characters.",
262
- "parents": []
263
- },
264
- {
265
- "name": "stillmade.release_visuals.cta",
266
- "description": "Approved release message or destination. Teasers only; lyrics occupy this space.",
267
- "parents": []
268
- },
269
- {
270
- "name": "stillmade.release_visuals.duration",
271
- "description": "Excerpt duration, 8–60 seconds.",
272
- "parents": []
273
- },
274
- {
275
- "name": "stillmade.release_visuals.songvolume",
276
- "description": "Song volume, 1–100. Lower for additional headroom; this is not loudness normalization.",
277
- "parents": []
278
- },
279
- {
280
- "name": "stillmade.release_visuals.offset",
281
- "description": "Start time within the original song, in seconds.",
282
- "parents": []
283
- },
284
- {
285
- "name": "stillmade.release_visuals.lyrics",
286
- "description": "Reviewed lyric lines relative to this excerpt: 0-3.5 | exact words. One line per phrase; no automatic alignment.",
287
- "parents": []
288
- },
289
- {
290
- "name": "stillmade.release_visuals.aspect",
291
- "description": "Output frame shape.",
292
- "parents": []
293
- },
294
- {
295
- "name": "stillmade.release_visuals.disclosure",
296
- "description": "Optional source or demonstration disclosure.",
297
- "parents": []
298
- },
299
- {
300
- "name": "stillmade.release_visuals.rightsconfirmed",
301
- "description": "I have rights to the cover art, recording, lyrics and supplied statements.",
302
- "parents": []
303
- },
304
- {
305
- "name": "stillmade.release_visuals.review",
306
- "description": "Production scope and remaining human review.",
307
- "parents": []
308
- }
309
- ]
310
- },
311
- "code": "// Original release-art and lyric-excerpt composition. No inference or I/O.\nconst copy=x=>JSON.parse(JSON.stringify(x)),check=(ok,message)=>{if(!ok)throw Error(message);};\nconst short=(v,label,n=80)=>{check(typeof v==='string'&&v.length<=n&&!/[\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f]/.test(v),label+' must be short plain text.');return v.trim();};\ncheck(input.rightsConfirmed===true,'Confirm rights to the cover art, recording and any lyrics.');\nconst songVolume=input.songVolume??100;check(Number.isFinite(songVolume)&&songVolume>=1&&songVolume<=100,'Song volume must be 1–100.');\nconst assets=input.assets;check(Array.isArray(assets)&&assets.length===2,'Choose exactly one cover image and one audio recording.');\nconst cover=assets.find(a=>a.kind==='image'),song=assets.find(a=>a.kind==='audio');check(cover&&song,'Supply one original cover image and one audio recording.');\nfor(const a of assets)check(typeof a.assetId==='string'&&a.assetId&&typeof a.versionId==='string'&&a.versionId&&typeof a.url==='string'&&/^(https:\\/\\/|http:\\/\\/(localhost|127\\.0\\.0\\.1)(:\\d+)?\\/|\\/api\\/media\\/|sm-media:|blob:)/.test(a.url)&&!/^https?:\\/\\/[^/?#]*@/.test(a.url),'Use exact saved media references.');\ncheck(Number.isFinite(cover.width)&&cover.width>0&&Number.isFinite(cover.height)&&cover.height>0,'Upload cover art again to record its dimensions.');\ncheck(Number.isFinite(song.duration)&&song.duration>0,'Upload the recording again to measure its duration.');\nconst duration=input.duration??20,offset=input.offset??0;\ncheck(Number.isFinite(duration)&&duration>=8&&duration<=60&&Number.isFinite(offset)&&offset>=0&&offset+duration<=song.duration+.02,'Choose an available 8–60 second song excerpt.');\nconst title=short(input.title||'','Release title',56),artist=short(input.artist||'','Artist',56),cta=short(input.cta||'','Release message',64),disclosure=short(input.disclosure||'','Disclosure',100);check(title&&artist,'Supply the release title and artist.');\nconst aspect=input.aspect||'9:16';check(['9:16','1:1','16:9'].includes(aspect),'Choose an output frame shape.');\nconst purpose=input.purpose||'release-teaser';check(['release-teaser','lyric-excerpt'].includes(purpose),'Choose a release teaser or lyric excerpt.');\nconst raw=input.lyrics||'';check(typeof raw==='string'&&raw.length<=8000,'Use up to 8,000 characters of timed lyrics.');\n// Human-approved lyric timing is relative to this excerpt, not the full song.\nconst lyrics=raw.trim()?raw.trim().split('\\n').map(line=>{const m=line.match(/^(\\d+(?:\\.\\d+)?)\\s*-\\s*(\\d+(?:\\.\\d+)?)\\s*\\|\\s*(.+)$/);check(m,'Use lyric lines like 0-3.5 | exact words');const from=+m[1],to=+m[2],value=short(m[3],'Lyric line',100);check(to>from&&from>=0&&to<=duration,'A lyric line is outside the excerpt.');return{from,to,text:value};}):[];\ncheck(lyrics.length<=40,'Use at most 40 lyric lines.');for(let i=1;i<lyrics.length;i++)check(lyrics[i].from>=lyrics[i-1].to,'Lyric lines must be ordered without overlap.');check(purpose!=='lyric-excerpt'||lyrics.length,'Supply reviewed timed lyrics for a lyric excerpt.');\nconst portrait=aspect==='9:16',square=aspect==='1:1',W=369*Number(aspect.split(':')[0])/Number(aspect.split(':')[1]);\nconst fit=Math.min(W/cover.width,369/cover.height),scale=Math.min(W*.84/(cover.width*fit),369*(portrait?.46:.6)/(cover.height*fit));\nconst clips=[{id:'original-cover',kind:'image',trackId:'art',asset:copy(cover),assetId:cover.assetId,versionId:cover.versionId,url:cover.url,title:cover.name||'Original artwork',start:0,duration,trimStart:0,volume:0,speed:1,transform:{fit:'contain',scale,x:0,y:portrait?-22:-10,rotation:0,opacity:1},motion:{type:'zoom',intensity:100,zoomAmount:1.035,zoomDirection:'in',zoomAnchor:'center',easing:'ease-in-out',loop:false,['window']:[0,100]},transition:{type:'Cut',duration:0}}];\nconst overlays=[],stickers=[];\nconst add=(id,value,start,end,y,size,color='#F7F0DB')=>{if(value)overlays.push({id,type:'text',trackId:'copy',text:value,start,end,font:'Hanken Grotesk',size,color,background:'none',width:.84,x:50,y,position:'center',animation:'fade',animIn:.25,animOut:.2});};\nadd('artist',artist,0,duration,portrait?13:9,portrait?10:14);\nadd('release-title',title,0,duration,portrait?70:79,portrait?21:25);\nadd('release-message',lyrics.length?'':cta,0,duration,portrait?86:92,portrait?10:13);\nfor(const [i,line]of lyrics.entries())add('lyric-'+i,line.text,line.from,line.to,portrait?82:91,portrait?12:15);\n// The progress row indicates excerpt time only; it makes no beat-detection claim.\nfor(let i=0;i<16;i++)stickers.push({id:'progress-'+i,trackId:'detail',shape:'underline',color:'#F7F0DB',x:20+i*4,y:portrait?92:97,scale:.04,stretchX:.55,stretchY:.4,opacity:.75,rotation:0,start:duration*i/16,end:duration});\nadd('disclosure',disclosure,0,duration,97,portrait?5:7);\nconst audioItems=[{id:'original-song',trackId:'song',asset:copy(song),assetId:song.assetId,versionId:song.versionId,url:song.url,title:song.name||'Original song',start:0,duration,sourceOffset:offset,trimStart:offset,volume:songVolume,rate:1,fadeIn:.15,fadeOut:.7}];\nconst timeline={schemaVersion:1,activeTimelineId:'release-visuals',name:title,aspect,aspectRatio:aspect,previewH:369,backgroundColor:'#0A0A0A',tracks:[{id:'art',type:'video',label:'Original artwork'},{id:'song',type:'audio',label:'Original recording'},{id:'copy',type:'text',label:'Release copy and lyrics'},{id:'detail',type:'overlay',label:'Excerpt progress'}],trackOrder:['art','song','detail','copy'],clips,audioItems,textOverlays:overlays,captions:[],stickers,effects:[],audio:copy(audioItems),overlays:copy(overlays),targetDuration:duration,exportSettings:{aspect,fps:30,resolution:'1080p',quality:'high'}};\nreturn {timeline,review:{schemaVersion:1,state:'needs-human-review',humanApproved:false,purpose,durationSec:duration,sourceOffset:offset,lyricCount:lyrics.length,providerCalls:0,warnings:['Listen to the export and review the artwork, names, date, exact lyric text and timing.','This is a social release visual, not a generated music video or a certified Spotify/Apple Music asset.','No beat detection, automatic lyric alignment, generated vocals or music licensing is included.']}};\n",
312
- "tests": [
313
- {
314
- "name": "Release Visuals original-media example 1",
315
- "input": {
316
- "assets": [
317
- {
318
- "kind": "image",
319
- "assetId": "photo-1",
320
- "versionId": "v1",
321
- "url": "https://media.example/photo-1.jpg",
322
- "width": 1600,
323
- "height": 1200
324
- },
325
- {
326
- "kind": "audio",
327
- "assetId": "original-song",
328
- "versionId": "v1",
329
- "url": "https://media.example/song.wav",
330
- "duration": 180
331
- }
332
- ],
333
- "title": "A new chapter",
334
- "artist": "Example artist",
335
- "cta": "Listen to the release",
336
- "lyrics": "0-5 | This is an original demo line\n5-10 | Not a copied song",
337
- "duration": 20,
338
- "rightsConfirmed": true
339
- },
340
- "expected": {
341
- "timeline": {
342
- "schemaVersion": 1,
343
- "activeTimelineId": "release-visuals",
344
- "name": "A new chapter",
345
- "aspect": "9:16",
346
- "aspectRatio": "9:16",
347
- "previewH": 369,
348
- "backgroundColor": "#0A0A0A",
349
- "tracks": [
350
- {
351
- "id": "art",
352
- "type": "video",
353
- "label": "Original artwork"
354
- },
355
- {
356
- "id": "song",
357
- "type": "audio",
358
- "label": "Original recording"
359
- },
360
- {
361
- "id": "copy",
362
- "type": "text",
363
- "label": "Release copy and lyrics"
364
- },
365
- {
366
- "id": "detail",
367
- "type": "overlay",
368
- "label": "Excerpt progress"
369
- }
370
- ],
371
- "trackOrder": [
372
- "art",
373
- "song",
374
- "detail",
375
- "copy"
376
- ],
377
- "clips": [
378
- {
379
- "id": "original-cover",
380
- "kind": "image",
381
- "trackId": "art",
382
- "asset": {
383
- "kind": "image",
384
- "assetId": "photo-1",
385
- "versionId": "v1",
386
- "url": "https://media.example/photo-1.jpg",
387
- "width": 1600,
388
- "height": 1200
389
- },
390
- "assetId": "photo-1",
391
- "versionId": "v1",
392
- "url": "https://media.example/photo-1.jpg",
393
- "title": "Original artwork",
394
- "start": 0,
395
- "duration": 20,
396
- "trimStart": 0,
397
- "volume": 0,
398
- "speed": 1,
399
- "transform": {
400
- "fit": "contain",
401
- "scale": 0.84,
402
- "x": 0,
403
- "y": -22,
404
- "rotation": 0,
405
- "opacity": 1
406
- },
407
- "motion": {
408
- "type": "zoom",
409
- "intensity": 100,
410
- "zoomAmount": 1.035,
411
- "zoomDirection": "in",
412
- "zoomAnchor": "center",
413
- "easing": "ease-in-out",
414
- "loop": false,
415
- "window": [
416
- 0,
417
- 100
418
- ]
419
- },
420
- "transition": {
421
- "type": "Cut",
422
- "duration": 0
423
- }
424
- }
425
- ],
426
- "audioItems": [
427
- {
428
- "id": "original-song",
429
- "trackId": "song",
430
- "asset": {
431
- "kind": "audio",
432
- "assetId": "original-song",
433
- "versionId": "v1",
434
- "url": "https://media.example/song.wav",
435
- "duration": 180
436
- },
437
- "assetId": "original-song",
438
- "versionId": "v1",
439
- "url": "https://media.example/song.wav",
440
- "title": "Original song",
441
- "start": 0,
442
- "duration": 20,
443
- "sourceOffset": 0,
444
- "trimStart": 0,
445
- "volume": 100,
446
- "rate": 1,
447
- "fadeIn": 0.15,
448
- "fadeOut": 0.7
449
- }
450
- ],
451
- "textOverlays": [
452
- {
453
- "id": "artist",
454
- "type": "text",
455
- "trackId": "copy",
456
- "text": "Example artist",
457
- "start": 0,
458
- "end": 20,
459
- "font": "Hanken Grotesk",
460
- "size": 10,
461
- "color": "#F7F0DB",
462
- "background": "none",
463
- "width": 0.84,
464
- "x": 50,
465
- "y": 13,
466
- "position": "center",
467
- "animation": "fade",
468
- "animIn": 0.25,
469
- "animOut": 0.2
470
- },
471
- {
472
- "id": "release-title",
473
- "type": "text",
474
- "trackId": "copy",
475
- "text": "A new chapter",
476
- "start": 0,
477
- "end": 20,
478
- "font": "Hanken Grotesk",
479
- "size": 21,
480
- "color": "#F7F0DB",
481
- "background": "none",
482
- "width": 0.84,
483
- "x": 50,
484
- "y": 70,
485
- "position": "center",
486
- "animation": "fade",
487
- "animIn": 0.25,
488
- "animOut": 0.2
489
- },
490
- {
491
- "id": "lyric-0",
492
- "type": "text",
493
- "trackId": "copy",
494
- "text": "This is an original demo line",
495
- "start": 0,
496
- "end": 5,
497
- "font": "Hanken Grotesk",
498
- "size": 12,
499
- "color": "#F7F0DB",
500
- "background": "none",
501
- "width": 0.84,
502
- "x": 50,
503
- "y": 82,
504
- "position": "center",
505
- "animation": "fade",
506
- "animIn": 0.25,
507
- "animOut": 0.2
508
- },
509
- {
510
- "id": "lyric-1",
511
- "type": "text",
512
- "trackId": "copy",
513
- "text": "Not a copied song",
514
- "start": 5,
515
- "end": 10,
516
- "font": "Hanken Grotesk",
517
- "size": 12,
518
- "color": "#F7F0DB",
519
- "background": "none",
520
- "width": 0.84,
521
- "x": 50,
522
- "y": 82,
523
- "position": "center",
524
- "animation": "fade",
525
- "animIn": 0.25,
526
- "animOut": 0.2
527
- }
528
- ],
529
- "captions": [],
530
- "stickers": [
531
- {
532
- "id": "progress-0",
533
- "trackId": "detail",
534
- "shape": "underline",
535
- "color": "#F7F0DB",
536
- "x": 20,
537
- "y": 92,
538
- "scale": 0.04,
539
- "stretchX": 0.55,
540
- "stretchY": 0.4,
541
- "opacity": 0.75,
542
- "rotation": 0,
543
- "start": 0,
544
- "end": 20
545
- },
546
- {
547
- "id": "progress-1",
548
- "trackId": "detail",
549
- "shape": "underline",
550
- "color": "#F7F0DB",
551
- "x": 24,
552
- "y": 92,
553
- "scale": 0.04,
554
- "stretchX": 0.55,
555
- "stretchY": 0.4,
556
- "opacity": 0.75,
557
- "rotation": 0,
558
- "start": 1.25,
559
- "end": 20
560
- },
561
- {
562
- "id": "progress-2",
563
- "trackId": "detail",
564
- "shape": "underline",
565
- "color": "#F7F0DB",
566
- "x": 28,
567
- "y": 92,
568
- "scale": 0.04,
569
- "stretchX": 0.55,
570
- "stretchY": 0.4,
571
- "opacity": 0.75,
572
- "rotation": 0,
573
- "start": 2.5,
574
- "end": 20
575
- },
576
- {
577
- "id": "progress-3",
578
- "trackId": "detail",
579
- "shape": "underline",
580
- "color": "#F7F0DB",
581
- "x": 32,
582
- "y": 92,
583
- "scale": 0.04,
584
- "stretchX": 0.55,
585
- "stretchY": 0.4,
586
- "opacity": 0.75,
587
- "rotation": 0,
588
- "start": 3.75,
589
- "end": 20
590
- },
591
- {
592
- "id": "progress-4",
593
- "trackId": "detail",
594
- "shape": "underline",
595
- "color": "#F7F0DB",
596
- "x": 36,
597
- "y": 92,
598
- "scale": 0.04,
599
- "stretchX": 0.55,
600
- "stretchY": 0.4,
601
- "opacity": 0.75,
602
- "rotation": 0,
603
- "start": 5,
604
- "end": 20
605
- },
606
- {
607
- "id": "progress-5",
608
- "trackId": "detail",
609
- "shape": "underline",
610
- "color": "#F7F0DB",
611
- "x": 40,
612
- "y": 92,
613
- "scale": 0.04,
614
- "stretchX": 0.55,
615
- "stretchY": 0.4,
616
- "opacity": 0.75,
617
- "rotation": 0,
618
- "start": 6.25,
619
- "end": 20
620
- },
621
- {
622
- "id": "progress-6",
623
- "trackId": "detail",
624
- "shape": "underline",
625
- "color": "#F7F0DB",
626
- "x": 44,
627
- "y": 92,
628
- "scale": 0.04,
629
- "stretchX": 0.55,
630
- "stretchY": 0.4,
631
- "opacity": 0.75,
632
- "rotation": 0,
633
- "start": 7.5,
634
- "end": 20
635
- },
636
- {
637
- "id": "progress-7",
638
- "trackId": "detail",
639
- "shape": "underline",
640
- "color": "#F7F0DB",
641
- "x": 48,
642
- "y": 92,
643
- "scale": 0.04,
644
- "stretchX": 0.55,
645
- "stretchY": 0.4,
646
- "opacity": 0.75,
647
- "rotation": 0,
648
- "start": 8.75,
649
- "end": 20
650
- },
651
- {
652
- "id": "progress-8",
653
- "trackId": "detail",
654
- "shape": "underline",
655
- "color": "#F7F0DB",
656
- "x": 52,
657
- "y": 92,
658
- "scale": 0.04,
659
- "stretchX": 0.55,
660
- "stretchY": 0.4,
661
- "opacity": 0.75,
662
- "rotation": 0,
663
- "start": 10,
664
- "end": 20
665
- },
666
- {
667
- "id": "progress-9",
668
- "trackId": "detail",
669
- "shape": "underline",
670
- "color": "#F7F0DB",
671
- "x": 56,
672
- "y": 92,
673
- "scale": 0.04,
674
- "stretchX": 0.55,
675
- "stretchY": 0.4,
676
- "opacity": 0.75,
677
- "rotation": 0,
678
- "start": 11.25,
679
- "end": 20
680
- },
681
- {
682
- "id": "progress-10",
683
- "trackId": "detail",
684
- "shape": "underline",
685
- "color": "#F7F0DB",
686
- "x": 60,
687
- "y": 92,
688
- "scale": 0.04,
689
- "stretchX": 0.55,
690
- "stretchY": 0.4,
691
- "opacity": 0.75,
692
- "rotation": 0,
693
- "start": 12.5,
694
- "end": 20
695
- },
696
- {
697
- "id": "progress-11",
698
- "trackId": "detail",
699
- "shape": "underline",
700
- "color": "#F7F0DB",
701
- "x": 64,
702
- "y": 92,
703
- "scale": 0.04,
704
- "stretchX": 0.55,
705
- "stretchY": 0.4,
706
- "opacity": 0.75,
707
- "rotation": 0,
708
- "start": 13.75,
709
- "end": 20
710
- },
711
- {
712
- "id": "progress-12",
713
- "trackId": "detail",
714
- "shape": "underline",
715
- "color": "#F7F0DB",
716
- "x": 68,
717
- "y": 92,
718
- "scale": 0.04,
719
- "stretchX": 0.55,
720
- "stretchY": 0.4,
721
- "opacity": 0.75,
722
- "rotation": 0,
723
- "start": 15,
724
- "end": 20
725
- },
726
- {
727
- "id": "progress-13",
728
- "trackId": "detail",
729
- "shape": "underline",
730
- "color": "#F7F0DB",
731
- "x": 72,
732
- "y": 92,
733
- "scale": 0.04,
734
- "stretchX": 0.55,
735
- "stretchY": 0.4,
736
- "opacity": 0.75,
737
- "rotation": 0,
738
- "start": 16.25,
739
- "end": 20
740
- },
741
- {
742
- "id": "progress-14",
743
- "trackId": "detail",
744
- "shape": "underline",
745
- "color": "#F7F0DB",
746
- "x": 76,
747
- "y": 92,
748
- "scale": 0.04,
749
- "stretchX": 0.55,
750
- "stretchY": 0.4,
751
- "opacity": 0.75,
752
- "rotation": 0,
753
- "start": 17.5,
754
- "end": 20
755
- },
756
- {
757
- "id": "progress-15",
758
- "trackId": "detail",
759
- "shape": "underline",
760
- "color": "#F7F0DB",
761
- "x": 80,
762
- "y": 92,
763
- "scale": 0.04,
764
- "stretchX": 0.55,
765
- "stretchY": 0.4,
766
- "opacity": 0.75,
767
- "rotation": 0,
768
- "start": 18.75,
769
- "end": 20
770
- }
771
- ],
772
- "effects": [],
773
- "audio": [
774
- {
775
- "id": "original-song",
776
- "trackId": "song",
777
- "asset": {
778
- "kind": "audio",
779
- "assetId": "original-song",
780
- "versionId": "v1",
781
- "url": "https://media.example/song.wav",
782
- "duration": 180
783
- },
784
- "assetId": "original-song",
785
- "versionId": "v1",
786
- "url": "https://media.example/song.wav",
787
- "title": "Original song",
788
- "start": 0,
789
- "duration": 20,
790
- "sourceOffset": 0,
791
- "trimStart": 0,
792
- "volume": 100,
793
- "rate": 1,
794
- "fadeIn": 0.15,
795
- "fadeOut": 0.7
796
- }
797
- ],
798
- "overlays": [
799
- {
800
- "id": "artist",
801
- "type": "text",
802
- "trackId": "copy",
803
- "text": "Example artist",
804
- "start": 0,
805
- "end": 20,
806
- "font": "Hanken Grotesk",
807
- "size": 10,
808
- "color": "#F7F0DB",
809
- "background": "none",
810
- "width": 0.84,
811
- "x": 50,
812
- "y": 13,
813
- "position": "center",
814
- "animation": "fade",
815
- "animIn": 0.25,
816
- "animOut": 0.2
817
- },
818
- {
819
- "id": "release-title",
820
- "type": "text",
821
- "trackId": "copy",
822
- "text": "A new chapter",
823
- "start": 0,
824
- "end": 20,
825
- "font": "Hanken Grotesk",
826
- "size": 21,
827
- "color": "#F7F0DB",
828
- "background": "none",
829
- "width": 0.84,
830
- "x": 50,
831
- "y": 70,
832
- "position": "center",
833
- "animation": "fade",
834
- "animIn": 0.25,
835
- "animOut": 0.2
836
- },
837
- {
838
- "id": "lyric-0",
839
- "type": "text",
840
- "trackId": "copy",
841
- "text": "This is an original demo line",
842
- "start": 0,
843
- "end": 5,
844
- "font": "Hanken Grotesk",
845
- "size": 12,
846
- "color": "#F7F0DB",
847
- "background": "none",
848
- "width": 0.84,
849
- "x": 50,
850
- "y": 82,
851
- "position": "center",
852
- "animation": "fade",
853
- "animIn": 0.25,
854
- "animOut": 0.2
855
- },
856
- {
857
- "id": "lyric-1",
858
- "type": "text",
859
- "trackId": "copy",
860
- "text": "Not a copied song",
861
- "start": 5,
862
- "end": 10,
863
- "font": "Hanken Grotesk",
864
- "size": 12,
865
- "color": "#F7F0DB",
866
- "background": "none",
867
- "width": 0.84,
868
- "x": 50,
869
- "y": 82,
870
- "position": "center",
871
- "animation": "fade",
872
- "animIn": 0.25,
873
- "animOut": 0.2
874
- }
875
- ],
876
- "targetDuration": 20,
877
- "exportSettings": {
878
- "aspect": "9:16",
879
- "fps": 30,
880
- "resolution": "1080p",
881
- "quality": "high"
882
- }
883
- },
884
- "review": {
885
- "schemaVersion": 1,
886
- "state": "needs-human-review",
887
- "humanApproved": false,
888
- "purpose": "release-teaser",
889
- "durationSec": 20,
890
- "sourceOffset": 0,
891
- "lyricCount": 2,
892
- "providerCalls": 0,
893
- "warnings": [
894
- "Listen to the export and review the artwork, names, date, exact lyric text and timing.",
895
- "This is a social release visual, not a generated music video or a certified Spotify/Apple Music asset.",
896
- "No beat detection, automatic lyric alignment, generated vocals or music licensing is included."
897
- ]
898
- }
899
- }
900
- },
901
- {
902
- "name": "Release Visuals original-media example 2",
903
- "input": {
904
- "assets": [
905
- {
906
- "kind": "image",
907
- "assetId": "photo-1",
908
- "versionId": "v1",
909
- "url": "https://media.example/photo-1.jpg",
910
- "width": 1600,
911
- "height": 1200
912
- },
913
- {
914
- "kind": "audio",
915
- "assetId": "original-song",
916
- "versionId": "v1",
917
- "url": "https://media.example/song.wav",
918
- "duration": 180
919
- }
920
- ],
921
- "title": "A new chapter",
922
- "artist": "Example artist",
923
- "purpose": "lyric-excerpt",
924
- "lyrics": "0-5 | This is an original demo line\n5-10 | Not a copied song",
925
- "duration": 20,
926
- "rightsConfirmed": true
927
- },
928
- "expected": {
929
- "timeline": {
930
- "schemaVersion": 1,
931
- "activeTimelineId": "release-visuals",
932
- "name": "A new chapter",
933
- "aspect": "9:16",
934
- "aspectRatio": "9:16",
935
- "previewH": 369,
936
- "backgroundColor": "#0A0A0A",
937
- "tracks": [
938
- {
939
- "id": "art",
940
- "type": "video",
941
- "label": "Original artwork"
942
- },
943
- {
944
- "id": "song",
945
- "type": "audio",
946
- "label": "Original recording"
947
- },
948
- {
949
- "id": "copy",
950
- "type": "text",
951
- "label": "Release copy and lyrics"
952
- },
953
- {
954
- "id": "detail",
955
- "type": "overlay",
956
- "label": "Excerpt progress"
957
- }
958
- ],
959
- "trackOrder": [
960
- "art",
961
- "song",
962
- "detail",
963
- "copy"
964
- ],
965
- "clips": [
966
- {
967
- "id": "original-cover",
968
- "kind": "image",
969
- "trackId": "art",
970
- "asset": {
971
- "kind": "image",
972
- "assetId": "photo-1",
973
- "versionId": "v1",
974
- "url": "https://media.example/photo-1.jpg",
975
- "width": 1600,
976
- "height": 1200
977
- },
978
- "assetId": "photo-1",
979
- "versionId": "v1",
980
- "url": "https://media.example/photo-1.jpg",
981
- "title": "Original artwork",
982
- "start": 0,
983
- "duration": 20,
984
- "trimStart": 0,
985
- "volume": 0,
986
- "speed": 1,
987
- "transform": {
988
- "fit": "contain",
989
- "scale": 0.84,
990
- "x": 0,
991
- "y": -22,
992
- "rotation": 0,
993
- "opacity": 1
994
- },
995
- "motion": {
996
- "type": "zoom",
997
- "intensity": 100,
998
- "zoomAmount": 1.035,
999
- "zoomDirection": "in",
1000
- "zoomAnchor": "center",
1001
- "easing": "ease-in-out",
1002
- "loop": false,
1003
- "window": [
1004
- 0,
1005
- 100
1006
- ]
1007
- },
1008
- "transition": {
1009
- "type": "Cut",
1010
- "duration": 0
1011
- }
1012
- }
1013
- ],
1014
- "audioItems": [
1015
- {
1016
- "id": "original-song",
1017
- "trackId": "song",
1018
- "asset": {
1019
- "kind": "audio",
1020
- "assetId": "original-song",
1021
- "versionId": "v1",
1022
- "url": "https://media.example/song.wav",
1023
- "duration": 180
1024
- },
1025
- "assetId": "original-song",
1026
- "versionId": "v1",
1027
- "url": "https://media.example/song.wav",
1028
- "title": "Original song",
1029
- "start": 0,
1030
- "duration": 20,
1031
- "sourceOffset": 0,
1032
- "trimStart": 0,
1033
- "volume": 100,
1034
- "rate": 1,
1035
- "fadeIn": 0.15,
1036
- "fadeOut": 0.7
1037
- }
1038
- ],
1039
- "textOverlays": [
1040
- {
1041
- "id": "artist",
1042
- "type": "text",
1043
- "trackId": "copy",
1044
- "text": "Example artist",
1045
- "start": 0,
1046
- "end": 20,
1047
- "font": "Hanken Grotesk",
1048
- "size": 10,
1049
- "color": "#F7F0DB",
1050
- "background": "none",
1051
- "width": 0.84,
1052
- "x": 50,
1053
- "y": 13,
1054
- "position": "center",
1055
- "animation": "fade",
1056
- "animIn": 0.25,
1057
- "animOut": 0.2
1058
- },
1059
- {
1060
- "id": "release-title",
1061
- "type": "text",
1062
- "trackId": "copy",
1063
- "text": "A new chapter",
1064
- "start": 0,
1065
- "end": 20,
1066
- "font": "Hanken Grotesk",
1067
- "size": 21,
1068
- "color": "#F7F0DB",
1069
- "background": "none",
1070
- "width": 0.84,
1071
- "x": 50,
1072
- "y": 70,
1073
- "position": "center",
1074
- "animation": "fade",
1075
- "animIn": 0.25,
1076
- "animOut": 0.2
1077
- },
1078
- {
1079
- "id": "lyric-0",
1080
- "type": "text",
1081
- "trackId": "copy",
1082
- "text": "This is an original demo line",
1083
- "start": 0,
1084
- "end": 5,
1085
- "font": "Hanken Grotesk",
1086
- "size": 12,
1087
- "color": "#F7F0DB",
1088
- "background": "none",
1089
- "width": 0.84,
1090
- "x": 50,
1091
- "y": 82,
1092
- "position": "center",
1093
- "animation": "fade",
1094
- "animIn": 0.25,
1095
- "animOut": 0.2
1096
- },
1097
- {
1098
- "id": "lyric-1",
1099
- "type": "text",
1100
- "trackId": "copy",
1101
- "text": "Not a copied song",
1102
- "start": 5,
1103
- "end": 10,
1104
- "font": "Hanken Grotesk",
1105
- "size": 12,
1106
- "color": "#F7F0DB",
1107
- "background": "none",
1108
- "width": 0.84,
1109
- "x": 50,
1110
- "y": 82,
1111
- "position": "center",
1112
- "animation": "fade",
1113
- "animIn": 0.25,
1114
- "animOut": 0.2
1115
- }
1116
- ],
1117
- "captions": [],
1118
- "stickers": [
1119
- {
1120
- "id": "progress-0",
1121
- "trackId": "detail",
1122
- "shape": "underline",
1123
- "color": "#F7F0DB",
1124
- "x": 20,
1125
- "y": 92,
1126
- "scale": 0.04,
1127
- "stretchX": 0.55,
1128
- "stretchY": 0.4,
1129
- "opacity": 0.75,
1130
- "rotation": 0,
1131
- "start": 0,
1132
- "end": 20
1133
- },
1134
- {
1135
- "id": "progress-1",
1136
- "trackId": "detail",
1137
- "shape": "underline",
1138
- "color": "#F7F0DB",
1139
- "x": 24,
1140
- "y": 92,
1141
- "scale": 0.04,
1142
- "stretchX": 0.55,
1143
- "stretchY": 0.4,
1144
- "opacity": 0.75,
1145
- "rotation": 0,
1146
- "start": 1.25,
1147
- "end": 20
1148
- },
1149
- {
1150
- "id": "progress-2",
1151
- "trackId": "detail",
1152
- "shape": "underline",
1153
- "color": "#F7F0DB",
1154
- "x": 28,
1155
- "y": 92,
1156
- "scale": 0.04,
1157
- "stretchX": 0.55,
1158
- "stretchY": 0.4,
1159
- "opacity": 0.75,
1160
- "rotation": 0,
1161
- "start": 2.5,
1162
- "end": 20
1163
- },
1164
- {
1165
- "id": "progress-3",
1166
- "trackId": "detail",
1167
- "shape": "underline",
1168
- "color": "#F7F0DB",
1169
- "x": 32,
1170
- "y": 92,
1171
- "scale": 0.04,
1172
- "stretchX": 0.55,
1173
- "stretchY": 0.4,
1174
- "opacity": 0.75,
1175
- "rotation": 0,
1176
- "start": 3.75,
1177
- "end": 20
1178
- },
1179
- {
1180
- "id": "progress-4",
1181
- "trackId": "detail",
1182
- "shape": "underline",
1183
- "color": "#F7F0DB",
1184
- "x": 36,
1185
- "y": 92,
1186
- "scale": 0.04,
1187
- "stretchX": 0.55,
1188
- "stretchY": 0.4,
1189
- "opacity": 0.75,
1190
- "rotation": 0,
1191
- "start": 5,
1192
- "end": 20
1193
- },
1194
- {
1195
- "id": "progress-5",
1196
- "trackId": "detail",
1197
- "shape": "underline",
1198
- "color": "#F7F0DB",
1199
- "x": 40,
1200
- "y": 92,
1201
- "scale": 0.04,
1202
- "stretchX": 0.55,
1203
- "stretchY": 0.4,
1204
- "opacity": 0.75,
1205
- "rotation": 0,
1206
- "start": 6.25,
1207
- "end": 20
1208
- },
1209
- {
1210
- "id": "progress-6",
1211
- "trackId": "detail",
1212
- "shape": "underline",
1213
- "color": "#F7F0DB",
1214
- "x": 44,
1215
- "y": 92,
1216
- "scale": 0.04,
1217
- "stretchX": 0.55,
1218
- "stretchY": 0.4,
1219
- "opacity": 0.75,
1220
- "rotation": 0,
1221
- "start": 7.5,
1222
- "end": 20
1223
- },
1224
- {
1225
- "id": "progress-7",
1226
- "trackId": "detail",
1227
- "shape": "underline",
1228
- "color": "#F7F0DB",
1229
- "x": 48,
1230
- "y": 92,
1231
- "scale": 0.04,
1232
- "stretchX": 0.55,
1233
- "stretchY": 0.4,
1234
- "opacity": 0.75,
1235
- "rotation": 0,
1236
- "start": 8.75,
1237
- "end": 20
1238
- },
1239
- {
1240
- "id": "progress-8",
1241
- "trackId": "detail",
1242
- "shape": "underline",
1243
- "color": "#F7F0DB",
1244
- "x": 52,
1245
- "y": 92,
1246
- "scale": 0.04,
1247
- "stretchX": 0.55,
1248
- "stretchY": 0.4,
1249
- "opacity": 0.75,
1250
- "rotation": 0,
1251
- "start": 10,
1252
- "end": 20
1253
- },
1254
- {
1255
- "id": "progress-9",
1256
- "trackId": "detail",
1257
- "shape": "underline",
1258
- "color": "#F7F0DB",
1259
- "x": 56,
1260
- "y": 92,
1261
- "scale": 0.04,
1262
- "stretchX": 0.55,
1263
- "stretchY": 0.4,
1264
- "opacity": 0.75,
1265
- "rotation": 0,
1266
- "start": 11.25,
1267
- "end": 20
1268
- },
1269
- {
1270
- "id": "progress-10",
1271
- "trackId": "detail",
1272
- "shape": "underline",
1273
- "color": "#F7F0DB",
1274
- "x": 60,
1275
- "y": 92,
1276
- "scale": 0.04,
1277
- "stretchX": 0.55,
1278
- "stretchY": 0.4,
1279
- "opacity": 0.75,
1280
- "rotation": 0,
1281
- "start": 12.5,
1282
- "end": 20
1283
- },
1284
- {
1285
- "id": "progress-11",
1286
- "trackId": "detail",
1287
- "shape": "underline",
1288
- "color": "#F7F0DB",
1289
- "x": 64,
1290
- "y": 92,
1291
- "scale": 0.04,
1292
- "stretchX": 0.55,
1293
- "stretchY": 0.4,
1294
- "opacity": 0.75,
1295
- "rotation": 0,
1296
- "start": 13.75,
1297
- "end": 20
1298
- },
1299
- {
1300
- "id": "progress-12",
1301
- "trackId": "detail",
1302
- "shape": "underline",
1303
- "color": "#F7F0DB",
1304
- "x": 68,
1305
- "y": 92,
1306
- "scale": 0.04,
1307
- "stretchX": 0.55,
1308
- "stretchY": 0.4,
1309
- "opacity": 0.75,
1310
- "rotation": 0,
1311
- "start": 15,
1312
- "end": 20
1313
- },
1314
- {
1315
- "id": "progress-13",
1316
- "trackId": "detail",
1317
- "shape": "underline",
1318
- "color": "#F7F0DB",
1319
- "x": 72,
1320
- "y": 92,
1321
- "scale": 0.04,
1322
- "stretchX": 0.55,
1323
- "stretchY": 0.4,
1324
- "opacity": 0.75,
1325
- "rotation": 0,
1326
- "start": 16.25,
1327
- "end": 20
1328
- },
1329
- {
1330
- "id": "progress-14",
1331
- "trackId": "detail",
1332
- "shape": "underline",
1333
- "color": "#F7F0DB",
1334
- "x": 76,
1335
- "y": 92,
1336
- "scale": 0.04,
1337
- "stretchX": 0.55,
1338
- "stretchY": 0.4,
1339
- "opacity": 0.75,
1340
- "rotation": 0,
1341
- "start": 17.5,
1342
- "end": 20
1343
- },
1344
- {
1345
- "id": "progress-15",
1346
- "trackId": "detail",
1347
- "shape": "underline",
1348
- "color": "#F7F0DB",
1349
- "x": 80,
1350
- "y": 92,
1351
- "scale": 0.04,
1352
- "stretchX": 0.55,
1353
- "stretchY": 0.4,
1354
- "opacity": 0.75,
1355
- "rotation": 0,
1356
- "start": 18.75,
1357
- "end": 20
1358
- }
1359
- ],
1360
- "effects": [],
1361
- "audio": [
1362
- {
1363
- "id": "original-song",
1364
- "trackId": "song",
1365
- "asset": {
1366
- "kind": "audio",
1367
- "assetId": "original-song",
1368
- "versionId": "v1",
1369
- "url": "https://media.example/song.wav",
1370
- "duration": 180
1371
- },
1372
- "assetId": "original-song",
1373
- "versionId": "v1",
1374
- "url": "https://media.example/song.wav",
1375
- "title": "Original song",
1376
- "start": 0,
1377
- "duration": 20,
1378
- "sourceOffset": 0,
1379
- "trimStart": 0,
1380
- "volume": 100,
1381
- "rate": 1,
1382
- "fadeIn": 0.15,
1383
- "fadeOut": 0.7
1384
- }
1385
- ],
1386
- "overlays": [
1387
- {
1388
- "id": "artist",
1389
- "type": "text",
1390
- "trackId": "copy",
1391
- "text": "Example artist",
1392
- "start": 0,
1393
- "end": 20,
1394
- "font": "Hanken Grotesk",
1395
- "size": 10,
1396
- "color": "#F7F0DB",
1397
- "background": "none",
1398
- "width": 0.84,
1399
- "x": 50,
1400
- "y": 13,
1401
- "position": "center",
1402
- "animation": "fade",
1403
- "animIn": 0.25,
1404
- "animOut": 0.2
1405
- },
1406
- {
1407
- "id": "release-title",
1408
- "type": "text",
1409
- "trackId": "copy",
1410
- "text": "A new chapter",
1411
- "start": 0,
1412
- "end": 20,
1413
- "font": "Hanken Grotesk",
1414
- "size": 21,
1415
- "color": "#F7F0DB",
1416
- "background": "none",
1417
- "width": 0.84,
1418
- "x": 50,
1419
- "y": 70,
1420
- "position": "center",
1421
- "animation": "fade",
1422
- "animIn": 0.25,
1423
- "animOut": 0.2
1424
- },
1425
- {
1426
- "id": "lyric-0",
1427
- "type": "text",
1428
- "trackId": "copy",
1429
- "text": "This is an original demo line",
1430
- "start": 0,
1431
- "end": 5,
1432
- "font": "Hanken Grotesk",
1433
- "size": 12,
1434
- "color": "#F7F0DB",
1435
- "background": "none",
1436
- "width": 0.84,
1437
- "x": 50,
1438
- "y": 82,
1439
- "position": "center",
1440
- "animation": "fade",
1441
- "animIn": 0.25,
1442
- "animOut": 0.2
1443
- },
1444
- {
1445
- "id": "lyric-1",
1446
- "type": "text",
1447
- "trackId": "copy",
1448
- "text": "Not a copied song",
1449
- "start": 5,
1450
- "end": 10,
1451
- "font": "Hanken Grotesk",
1452
- "size": 12,
1453
- "color": "#F7F0DB",
1454
- "background": "none",
1455
- "width": 0.84,
1456
- "x": 50,
1457
- "y": 82,
1458
- "position": "center",
1459
- "animation": "fade",
1460
- "animIn": 0.25,
1461
- "animOut": 0.2
1462
- }
1463
- ],
1464
- "targetDuration": 20,
1465
- "exportSettings": {
1466
- "aspect": "9:16",
1467
- "fps": 30,
1468
- "resolution": "1080p",
1469
- "quality": "high"
1470
- }
1471
- },
1472
- "review": {
1473
- "schemaVersion": 1,
1474
- "state": "needs-human-review",
1475
- "humanApproved": false,
1476
- "purpose": "lyric-excerpt",
1477
- "durationSec": 20,
1478
- "sourceOffset": 0,
1479
- "lyricCount": 2,
1480
- "providerCalls": 0,
1481
- "warnings": [
1482
- "Listen to the export and review the artwork, names, date, exact lyric text and timing.",
1483
- "This is a social release visual, not a generated music video or a certified Spotify/Apple Music asset.",
1484
- "No beat detection, automatic lyric alignment, generated vocals or music licensing is included."
1485
- ]
1486
- }
1487
- }
1488
- }
1489
- ],
1490
- "portable": {
1491
- "format": "stillmade-block/1",
1492
- "dependencies": [],
1493
- "sources": [
1494
- {
1495
- "kind": "original",
1496
- "license": "MIT",
1497
- "paths": [
1498
- "LICENSE",
1499
- "src/run.js"
1500
- ],
1501
- "evidence": [
1502
- "upstream/0/LICENSE",
1503
- "upstream/0/src/run.js"
1504
- ],
1505
- "changes": "Original implementation declared by the packager; no reused repository or dependency code."
1506
- }
1507
- ],
1508
- "files": {
1509
- "upstream/0/LICENSE": "MIT License\n\nCopyright (c) <year> <copyright holders>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and \nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including \nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the \nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial \nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT \nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO \nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER \nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE \nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n",
1510
- "upstream/0/src/run.js": "// Original release-art and lyric-excerpt composition. No inference or I/O.\nconst copy=x=>JSON.parse(JSON.stringify(x)),check=(ok,message)=>{if(!ok)throw Error(message);};\nconst short=(v,label,n=80)=>{check(typeof v==='string'&&v.length<=n&&!/[\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f]/.test(v),label+' must be short plain text.');return v.trim();};\ncheck(input.rightsConfirmed===true,'Confirm rights to the cover art, recording and any lyrics.');\nconst songVolume=input.songVolume??100;check(Number.isFinite(songVolume)&&songVolume>=1&&songVolume<=100,'Song volume must be 1–100.');\nconst assets=input.assets;check(Array.isArray(assets)&&assets.length===2,'Choose exactly one cover image and one audio recording.');\nconst cover=assets.find(a=>a.kind==='image'),song=assets.find(a=>a.kind==='audio');check(cover&&song,'Supply one original cover image and one audio recording.');\nfor(const a of assets)check(typeof a.assetId==='string'&&a.assetId&&typeof a.versionId==='string'&&a.versionId&&typeof a.url==='string'&&/^(https:\\/\\/|http:\\/\\/(localhost|127\\.0\\.0\\.1)(:\\d+)?\\/|\\/api\\/media\\/|sm-media:|blob:)/.test(a.url)&&!/^https?:\\/\\/[^/?#]*@/.test(a.url),'Use exact saved media references.');\ncheck(Number.isFinite(cover.width)&&cover.width>0&&Number.isFinite(cover.height)&&cover.height>0,'Upload cover art again to record its dimensions.');\ncheck(Number.isFinite(song.duration)&&song.duration>0,'Upload the recording again to measure its duration.');\nconst duration=input.duration??20,offset=input.offset??0;\ncheck(Number.isFinite(duration)&&duration>=8&&duration<=60&&Number.isFinite(offset)&&offset>=0&&offset+duration<=song.duration+.02,'Choose an available 8–60 second song excerpt.');\nconst title=short(input.title||'','Release title',56),artist=short(input.artist||'','Artist',56),cta=short(input.cta||'','Release message',64),disclosure=short(input.disclosure||'','Disclosure',100);check(title&&artist,'Supply the release title and artist.');\nconst aspect=input.aspect||'9:16';check(['9:16','1:1','16:9'].includes(aspect),'Choose an output frame shape.');\nconst purpose=input.purpose||'release-teaser';check(['release-teaser','lyric-excerpt'].includes(purpose),'Choose a release teaser or lyric excerpt.');\nconst raw=input.lyrics||'';check(typeof raw==='string'&&raw.length<=8000,'Use up to 8,000 characters of timed lyrics.');\n// Human-approved lyric timing is relative to this excerpt, not the full song.\nconst lyrics=raw.trim()?raw.trim().split('\\n').map(line=>{const m=line.match(/^(\\d+(?:\\.\\d+)?)\\s*-\\s*(\\d+(?:\\.\\d+)?)\\s*\\|\\s*(.+)$/);check(m,'Use lyric lines like 0-3.5 | exact words');const from=+m[1],to=+m[2],value=short(m[3],'Lyric line',100);check(to>from&&from>=0&&to<=duration,'A lyric line is outside the excerpt.');return{from,to,text:value};}):[];\ncheck(lyrics.length<=40,'Use at most 40 lyric lines.');for(let i=1;i<lyrics.length;i++)check(lyrics[i].from>=lyrics[i-1].to,'Lyric lines must be ordered without overlap.');check(purpose!=='lyric-excerpt'||lyrics.length,'Supply reviewed timed lyrics for a lyric excerpt.');\nconst portrait=aspect==='9:16',square=aspect==='1:1',W=369*Number(aspect.split(':')[0])/Number(aspect.split(':')[1]);\nconst fit=Math.min(W/cover.width,369/cover.height),scale=Math.min(W*.84/(cover.width*fit),369*(portrait?.46:.6)/(cover.height*fit));\nconst clips=[{id:'original-cover',kind:'image',trackId:'art',asset:copy(cover),assetId:cover.assetId,versionId:cover.versionId,url:cover.url,title:cover.name||'Original artwork',start:0,duration,trimStart:0,volume:0,speed:1,transform:{fit:'contain',scale,x:0,y:portrait?-22:-10,rotation:0,opacity:1},motion:{type:'zoom',intensity:100,zoomAmount:1.035,zoomDirection:'in',zoomAnchor:'center',easing:'ease-in-out',loop:false,['window']:[0,100]},transition:{type:'Cut',duration:0}}];\nconst overlays=[],stickers=[];\nconst add=(id,value,start,end,y,size,color='#F7F0DB')=>{if(value)overlays.push({id,type:'text',trackId:'copy',text:value,start,end,font:'Hanken Grotesk',size,color,background:'none',width:.84,x:50,y,position:'center',animation:'fade',animIn:.25,animOut:.2});};\nadd('artist',artist,0,duration,portrait?13:9,portrait?10:14);\nadd('release-title',title,0,duration,portrait?70:79,portrait?21:25);\nadd('release-message',lyrics.length?'':cta,0,duration,portrait?86:92,portrait?10:13);\nfor(const [i,line]of lyrics.entries())add('lyric-'+i,line.text,line.from,line.to,portrait?82:91,portrait?12:15);\n// The progress row indicates excerpt time only; it makes no beat-detection claim.\nfor(let i=0;i<16;i++)stickers.push({id:'progress-'+i,trackId:'detail',shape:'underline',color:'#F7F0DB',x:20+i*4,y:portrait?92:97,scale:.04,stretchX:.55,stretchY:.4,opacity:.75,rotation:0,start:duration*i/16,end:duration});\nadd('disclosure',disclosure,0,duration,97,portrait?5:7);\nconst audioItems=[{id:'original-song',trackId:'song',asset:copy(song),assetId:song.assetId,versionId:song.versionId,url:song.url,title:song.name||'Original song',start:0,duration,sourceOffset:offset,trimStart:offset,volume:songVolume,rate:1,fadeIn:.15,fadeOut:.7}];\nconst timeline={schemaVersion:1,activeTimelineId:'release-visuals',name:title,aspect,aspectRatio:aspect,previewH:369,backgroundColor:'#0A0A0A',tracks:[{id:'art',type:'video',label:'Original artwork'},{id:'song',type:'audio',label:'Original recording'},{id:'copy',type:'text',label:'Release copy and lyrics'},{id:'detail',type:'overlay',label:'Excerpt progress'}],trackOrder:['art','song','detail','copy'],clips,audioItems,textOverlays:overlays,captions:[],stickers,effects:[],audio:copy(audioItems),overlays:copy(overlays),targetDuration:duration,exportSettings:{aspect,fps:30,resolution:'1080p',quality:'high'}};\nreturn {timeline,review:{schemaVersion:1,state:'needs-human-review',humanApproved:false,purpose,durationSec:duration,sourceOffset:offset,lyricCount:lyrics.length,providerCalls:0,warnings:['Listen to the export and review the artwork, names, date, exact lyric text and timing.','This is a social release visual, not a generated music video or a certified Spotify/Apple Music asset.','No beat detection, automatic lyric alignment, generated vocals or music licensing is included.']}};\n"
1511
- },
1512
- "lineage": {
1513
- "parents": [],
1514
- "changes": "Packaged original Block source for StillMade."
1515
- }
1516
- }
1517
- };