stillmade-sdk 0.1.41 → 0.1.43

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 (285) hide show
  1. package/.stillmade/sdk-baseline.json +19 -21
  2. package/AGENTS.md +17 -12
  3. package/FRAME_VIEWS.md +113 -0
  4. package/INTERFACE_DESIGN.md +67 -22
  5. package/MOBILE_UI.md +4 -2
  6. package/MODULES.md +152 -6
  7. package/PASTE_TO_LLM.md +42 -32
  8. package/README.md +3 -2
  9. package/SDK.md +1028 -563
  10. package/UI_AESTHETIC.md +30 -3
  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 +8 -1
  108. package/examples/clean-text.stillmade.json +4 -0
  109. package/examples/custom-interface.stillmade.json +4 -0
  110. package/examples/describe-image.stillmade.json +4 -0
  111. package/examples/foley-cue.stillmade.json +4 -0
  112. package/examples/generate-image.stillmade.json +4 -0
  113. package/examples/generate-video.stillmade.json +10 -2
  114. package/examples/module-word-stats/stillmade.block.json +4 -0
  115. package/examples/narrate-script.stillmade.json +4 -0
  116. package/examples/numbered-takes.stillmade.json +4 -0
  117. package/examples/research-topic.stillmade.json +9 -1
  118. package/examples/score-a-scene.stillmade.json +4 -0
  119. package/examples/script-draft.stillmade.json +4 -0
  120. package/examples/summarize-page.stillmade.json +4 -0
  121. package/examples/text-workflow.stillmade.json +7 -32
  122. package/examples/thicken-lines.stillmade.json +4 -0
  123. package/examples/timeline-polish.stillmade.json +15 -3
  124. package/examples/transcribe-audio.stillmade.json +15 -3
  125. package/examples/word-count.stillmade.json +4 -0
  126. package/package.json +1 -1
  127. package/packages/block-cli/cli.js +13 -6
  128. package/packages/block-cli/dev-host/assets/host.js +81 -38
  129. package/packages/block-cli/dev-host/assets/index.css +1 -1
  130. package/packages/block-cli/format.js +1 -1
  131. package/packages/block-cli/ready-gate.js +4 -0
  132. package/packages/block-cli/templates.js +37 -19
  133. package/packages/block-cli/type-packages.js +119 -0
  134. package/packages/block-platform/block-readiness.js +8 -1
  135. package/packages/block-platform/canvas.js +2 -1
  136. package/packages/block-platform/catalog.js +27 -48
  137. package/packages/block-platform/native-host-inventory.js +0 -226
  138. package/packages/block-platform/plain-descriptions.js +1 -25
  139. package/packages/block-platform/project-type-starters.js +13 -53
  140. package/packages/block-platform/script-handoff.js +2 -4
  141. package/packages/block-platform/type-workspace.js +2 -0
  142. package/packages/block-sdk/appearance.js +3 -1
  143. package/packages/block-sdk/audio-generation-example.js +2 -2
  144. package/packages/block-sdk/block-tier.js +1 -1
  145. package/packages/block-sdk/builder-contract.js +13 -11
  146. package/packages/block-sdk/capabilities.js +1 -1
  147. package/packages/block-sdk/capability-example.js +1 -1
  148. package/packages/block-sdk/contracts.js +6 -2
  149. package/packages/block-sdk/examples.js +3 -3
  150. package/packages/block-sdk/first-party-identities.js +1 -84
  151. package/packages/block-sdk/first-party-packages.js +3 -85
  152. package/packages/block-sdk/generation-catalog.js +15 -3
  153. package/packages/block-sdk/image-description-example.js +1 -1
  154. package/packages/block-sdk/image-generation-example.js +1 -1
  155. package/packages/block-sdk/index.d.ts +2 -1
  156. package/packages/block-sdk/media-analysis-example.js +2 -2
  157. package/packages/block-sdk/mock-host.js +7 -1
  158. package/packages/block-sdk/module-example.js +1 -1
  159. package/packages/block-sdk/module-host-calls.js +35 -10
  160. package/packages/block-sdk/module-hosted.js +15 -2
  161. package/packages/block-sdk/module-media-access.js +71 -0
  162. package/packages/block-sdk/module-node.js +1 -1
  163. package/packages/block-sdk/portable-media-actions.js +1 -1
  164. package/packages/block-sdk/runtime.js +1 -1
  165. package/packages/block-sdk/speech-example.js +1 -1
  166. package/packages/block-sdk/state-example.js +1 -1
  167. package/packages/block-sdk/timeline-proposal-example.js +1 -1
  168. package/packages/block-sdk/transcription-example.js +1 -1
  169. package/packages/block-sdk/trigger-examples.js +2 -2
  170. package/packages/block-sdk/video-generation-example.js +1 -1
  171. package/packages/block-sdk/view-bridge.js +4 -1
  172. package/packages/block-sdk/view-design.js +44 -15
  173. package/packages/block-sdk/web-example.js +2 -2
  174. package/packages/design-system/block-kit.css +53 -12
  175. package/packages/design-system/block-kit.html +3 -2
  176. package/blocks/mcp-motion-planner/versions/1.1.0/package.js +0 -97
  177. package/blocks/motion-designer/versions/1.0.1/package.js +0 -173318
  178. package/blocks/motion-designer/versions/1.0.2/package.js +0 -173318
  179. package/blocks/motion-frame-review/versions/1.1.1/package.js +0 -465
  180. package/blocks/motion-frame-review/versions/1.1.2/package.snapshot.js +0 -572
  181. package/blocks/narration/package.js +0 -1
  182. package/blocks/narration/versions/1.0.0/package.js +0 -221
  183. package/blocks/narration/versions/1.0.1/package.js +0 -221
  184. package/blocks/native/sm.animated-scene/versions/2.0.0/package.js +0 -475
  185. package/blocks/native/sm.animated-scene/versions/2.1.0/package.js +0 -498
  186. package/blocks/native/sm.animated-scene/versions/2.2.0/package.js +0 -524
  187. package/blocks/native/sm.animated-scene/versions/2.3.0/package.js +0 -618
  188. package/blocks/native/sm.animated-scene/versions/2.3.1/package.js +0 -618
  189. package/blocks/native/sm.animated-scene/versions/2.3.2/package.js +0 -723
  190. package/blocks/native/sm.animated-scene/versions/2.3.3/package.js +0 -723
  191. package/blocks/native/sm.animated-scene/versions/2.3.4/package.js +0 -676
  192. package/blocks/native/sm.animated-scene/versions/2.3.5/package.js +0 -693
  193. package/blocks/native/sm.animated-scene/versions/2.3.6/package.js +0 -700
  194. package/blocks/native/sm.animated-scene/versions/2.3.7/package.js +0 -747
  195. package/blocks/native/sm.animated-scene/versions/2.3.8/package.js +0 -769
  196. package/blocks/native/sm.animated-scene/versions/2.3.9/package.js +0 -769
  197. package/blocks/native/sm.animated-scene-assistant/versions/1.0.0/package.js +0 -183
  198. package/blocks/native/sm.blueprint/versions/2.0.0/package.js +0 -358
  199. package/blocks/native/sm.blueprint/versions/2.1.0/package.js +0 -358
  200. package/blocks/native/sm.blueprint/versions/2.1.1/package.js +0 -358
  201. package/blocks/native/sm.blueprint/versions/2.1.2/package.js +0 -358
  202. package/blocks/native/sm.blueprint/versions/2.1.3/package.js +0 -381
  203. package/blocks/native/sm.blueprint/versions/2.1.4/package.js +0 -381
  204. package/blocks/native/sm.blueprint/versions/2.1.5/package.js +0 -339
  205. package/blocks/native/sm.blueprint/versions/2.1.6/package.js +0 -356
  206. package/blocks/native/sm.blueprint/versions/2.1.7/package.js +0 -363
  207. package/blocks/native/sm.blueprint/versions/2.1.8/package.js +0 -410
  208. package/blocks/native/sm.blueprint/versions/2.1.9/package.js +0 -422
  209. package/blocks/native/sm.blueprint-assistant/versions/1.0.0/package.js +0 -172
  210. package/blocks/native/sm.chat/versions/2.0.0/package.js +0 -144
  211. package/blocks/native/sm.chat/versions/2.0.1/package.js +0 -97
  212. package/blocks/native/sm.chat/versions/2.0.2/package.js +0 -100
  213. package/blocks/native/sm.chat/versions/2.0.3/package.js +0 -100
  214. package/blocks/native/sm.continue-if/versions/1.0.0/package.js +0 -168
  215. package/blocks/native/sm.describe-media/versions/2.0.0/package.js +0 -153
  216. package/blocks/native/sm.describe-media/versions/2.0.1/package.js +0 -156
  217. package/blocks/native/sm.describe-media/versions/2.1.0/package.js +0 -140
  218. package/blocks/native/sm.image-editor/versions/2.0.0/package.js +0 -183
  219. package/blocks/native/sm.image-editor/versions/2.0.1/package.js +0 -190
  220. package/blocks/native/sm.new-items/versions/1.0.0/package.js +0 -191
  221. package/blocks/native/sm.pick-photos/versions/1.0.0/package.js +0 -334
  222. package/blocks/native/sm.quality-audit/versions/1.0.0/package.js +0 -192
  223. package/blocks/native/sm.quality-audit/versions/1.0.1/package.js +0 -192
  224. package/blocks/native/sm.quality-audit/versions/1.0.2/package.js +0 -195
  225. package/blocks/native/sm.research/versions/2.0.0/package.js +0 -175
  226. package/blocks/native/sm.research/versions/2.0.1/package.js +0 -184
  227. package/blocks/native/sm.research/versions/2.0.2/package.js +0 -187
  228. package/blocks/native/sm.script/versions/2.0.0/package.js +0 -144
  229. package/blocks/native/sm.script/versions/2.1.0/package.js +0 -144
  230. package/blocks/native/sm.script/versions/2.1.1/package.js +0 -144
  231. package/blocks/native/sm.script/versions/2.1.2/package.js +0 -105
  232. package/blocks/native/sm.script/versions/2.1.3/package.js +0 -152
  233. package/blocks/native/sm.script/versions/2.1.4/package.js +0 -156
  234. package/blocks/native/sm.script/versions/2.1.5/package.js +0 -156
  235. package/blocks/native/sm.shot-plan/versions/2.0.0/package.js +0 -301
  236. package/blocks/native/sm.shot-plan/versions/2.1.0/package.js +0 -528
  237. package/blocks/native/sm.shot-plan/versions/2.1.1/package.js +0 -528
  238. package/blocks/native/sm.shot-plan/versions/2.1.2/package.js +0 -528
  239. package/blocks/native/sm.shot-plan/versions/2.1.3/package.js +0 -536
  240. package/blocks/native/sm.shot-plan/versions/2.2.0/package.js +0 -800
  241. package/blocks/native/sm.shot-plan/versions/2.2.1/package.js +0 -920
  242. package/blocks/native/sm.shot-plan-assistant/versions/1.0.0/package.js +0 -173
  243. package/blocks/native/sm.stock-search/versions/2.0.0/package.js +0 -174
  244. package/blocks/native/sm.thumbnail/versions/2.0.0/package.js +0 -137
  245. package/blocks/native/sm.thumbnail/versions/2.0.1/package.js +0 -140
  246. package/blocks/native/sm.transcribe/versions/2.0.0/package.js +0 -163
  247. package/blocks/native/sm.transcribe/versions/2.0.1/package.js +0 -168
  248. package/blocks/native/sm.whiteboard-assistant/versions/1.0.0/package.js +0 -175
  249. package/blocks/native/sm.youtube/versions/2.0.0/package.js +0 -217
  250. package/blocks/occasion-story/package.js +0 -1
  251. package/blocks/occasion-story/versions/1.0.0/package.js +0 -1658
  252. package/blocks/occasion-story/versions/1.0.1/package.js +0 -1699
  253. package/blocks/occasion-story/versions/1.0.2/package.js +0 -1682
  254. package/blocks/photo-reel-composer/versions/1.0.0/package.js +0 -3043
  255. package/blocks/photo-reel-composer/versions/1.0.1/package.js +0 -3026
  256. package/blocks/photo-reel-composer/versions/1.0.2/package.js +0 -4149
  257. package/blocks/product-ad-variants/versions/1.0.0/package.js +0 -2911
  258. package/blocks/product-launch-director/versions/1.0.0/package.js +0 -103
  259. package/blocks/release-visuals/package.js +0 -1
  260. package/blocks/release-visuals/versions/1.0.0/package.js +0 -1492
  261. package/blocks/release-visuals/versions/1.0.1/package.js +0 -1517
  262. package/blocks/release-visuals/versions/1.0.2/package.js +0 -1500
  263. package/blocks/screen-recorder/package.js +0 -1
  264. package/blocks/screen-recorder/versions/1.0.0/package.js +0 -223
  265. package/blocks/screen-recorder/versions/1.0.1/package.js +0 -223
  266. package/blocks/short-form-finish/package.js +0 -1
  267. package/blocks/short-form-finish/versions/1.0.0/package.js +0 -1043
  268. package/blocks/short-form-finish/versions/1.0.1/package.js +0 -1043
  269. package/blocks/short-form-finish/versions/1.0.2/package.js +0 -1043
  270. package/blocks/short-form-finish/versions/1.0.3/package.js +0 -1026
  271. package/examples/saas-product-launch-reviewed-source.stillmade.json +0 -383
  272. package/examples/saas-product-launch.stillmade.json +0 -304
  273. package/packages/block-platform/dealer-inventory-video-project-type.js +0 -38
  274. package/packages/block-platform/first-revenue-project-types.js +0 -46
  275. package/packages/block-platform/fixture-starters.js +0 -13
  276. package/packages/block-platform/launch-project-source.js +0 -10
  277. package/packages/block-platform/launch-project.js +0 -30
  278. package/packages/block-platform/motion-project-types.js +0 -55
  279. package/packages/block-platform/motion-starters.js +0 -14
  280. package/packages/block-platform/product-ad-variants-project-type.js +0 -30
  281. package/packages/block-platform/product-launch-updated.js +0 -90
  282. package/packages/block-platform/revenue-review-project-types.js +0 -36
  283. package/packages/block-platform/revenue-review-starters.js +0 -13
  284. package/packages/block-platform/script-writer.js +0 -29
  285. package/packages/block-platform/website-source-block.js +0 -14
@@ -1,183 +0,0 @@
1
- // Generated by scripts/build-owned-blocks.mjs. Edit the owned source files.
2
- export default {
3
- "manifest": {
4
- "schemaVersion": 1,
5
- "sdkVersion": "0.1.0",
6
- "id": "sm.animated-scene-assistant",
7
- "version": "1.0.0",
8
- "name": "Plan Animated Scene",
9
- "description": "Propose complete animated scene composition and motion while preserving the shot and narration spine.",
10
- "kind": "task",
11
- "runtime": "capability",
12
- "entry": "src/capability.json",
13
- "license": "MIT",
14
- "provenance": {
15
- "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/capability.json\n\nMIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
16
- "portableSources": [
17
- {
18
- "kind": "original",
19
- "license": "MIT",
20
- "paths": [
21
- "LICENSE",
22
- "src/capability.json"
23
- ],
24
- "evidence": [
25
- "upstream/0/LICENSE",
26
- "upstream/0/src/capability.json"
27
- ],
28
- "changes": "Original implementation declared by the packager; no reused repository or dependency code."
29
- }
30
- ]
31
- },
32
- "inputs": {
33
- "animation": {
34
- "type": "scene-document",
35
- "context": "animation",
36
- "required": false,
37
- "default": {
38
- "schemaVersion": 1,
39
- "scenes": []
40
- },
41
- "description": "The complete current Plan Animated Scene document."
42
- },
43
- "request": {
44
- "type": "text",
45
- "primary": true,
46
- "description": "The change to propose for this workspace."
47
- }
48
- },
49
- "outputs": {
50
- "edit": {
51
- "type": "workspace-edit",
52
- "primary": true,
53
- "description": "An exact complete before/after proposal reviewed before Apply."
54
- }
55
- },
56
- "permissions": {
57
- "project": [
58
- "context.animation.read",
59
- "workspace.animation.propose"
60
- ],
61
- "capabilities": [
62
- "workspace.propose"
63
- ],
64
- "network": [],
65
- "filesystem": [],
66
- "secrets": []
67
- },
68
- "ui": [
69
- {
70
- "control": "text",
71
- "port": "request"
72
- }
73
- ],
74
- "platforms": {
75
- "phone": {
76
- "supported": true
77
- },
78
- "browser": {
79
- "supported": true
80
- },
81
- "desktop": {
82
- "supported": true
83
- }
84
- }
85
- },
86
- "capability": {
87
- "schemaVersion": 1,
88
- "operation": "workspace.propose",
89
- "field": "animation",
90
- "context": {
91
- "animation": {
92
- "$input": "animation"
93
- },
94
- "request": {
95
- "$input": "request"
96
- }
97
- },
98
- "instruction": "Create or revise animated scene composition requested by the user. Preserve every shotId, start, end, and voiceoverText exactly. Keep asset/version identities and unknown fields. Limit changes to scene layers, camera, motion, transitions, and scene-owned settings. Every after document must remain schema version 1.",
99
- "maxTokens": 4096,
100
- "output": "edit"
101
- },
102
- "tests": [
103
- {
104
- "name": "Focused proposal",
105
- "input": {
106
- "animation": {
107
- "schemaVersion": 1,
108
- "scenes": [
109
- {
110
- "shotId": "shot-1",
111
- "start": 0,
112
- "end": 3,
113
- "voiceoverText": "Opening",
114
- "scene": {
115
- "layers": []
116
- }
117
- }
118
- ]
119
- },
120
- "request": "Make the opening clearer."
121
- },
122
- "expectations": {
123
- "edit": {
124
- "kind": "workspace-edit",
125
- "field": "animation"
126
- }
127
- }
128
- },
129
- {
130
- "name": "No destructive rewrite",
131
- "input": {
132
- "animation": {
133
- "schemaVersion": 1,
134
- "scenes": [
135
- {
136
- "shotId": "shot-1",
137
- "start": 0,
138
- "end": 3,
139
- "voiceoverText": "Opening",
140
- "scene": {
141
- "layers": []
142
- }
143
- }
144
- ]
145
- },
146
- "request": "Keep existing identities and improve pacing."
147
- },
148
- "expectations": {
149
- "edit": {
150
- "kind": "workspace-edit",
151
- "field": "animation"
152
- }
153
- }
154
- }
155
- ],
156
- "portable": {
157
- "format": "stillmade-block/1",
158
- "dependencies": [],
159
- "sources": [
160
- {
161
- "kind": "original",
162
- "license": "MIT",
163
- "paths": [
164
- "LICENSE",
165
- "src/capability.json"
166
- ],
167
- "evidence": [
168
- "upstream/0/LICENSE",
169
- "upstream/0/src/capability.json"
170
- ],
171
- "changes": "Original implementation declared by the packager; no reused repository or dependency code."
172
- }
173
- ],
174
- "files": {
175
- "upstream/0/LICENSE": "MIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
176
- "upstream/0/src/capability.json": "{\n \"schemaVersion\": 1,\n \"operation\": \"workspace.propose\",\n \"field\": \"animation\",\n \"context\": {\n \"animation\": {\n \"$input\": \"animation\"\n },\n \"request\": {\n \"$input\": \"request\"\n }\n },\n \"instruction\": \"Create or revise animated scene composition requested by the user. Preserve every shotId, start, end, and voiceoverText exactly. Keep asset/version identities and unknown fields. Limit changes to scene layers, camera, motion, transitions, and scene-owned settings. Every after document must remain schema version 1.\",\n \"maxTokens\": 4096,\n \"output\": \"edit\"\n}"
177
- },
178
- "lineage": {
179
- "parents": [],
180
- "changes": "Packaged original Block source for StillMade."
181
- }
182
- }
183
- };
@@ -1,358 +0,0 @@
1
- // Generated by scripts/build-owned-blocks.mjs. Edit the owned source files.
2
- export default {
3
- "manifest": {
4
- "schemaVersion": 1,
5
- "sdkVersion": "0.1.0",
6
- "id": "sm.blueprint",
7
- "version": "2.0.0",
8
- "name": "Blueprint",
9
- "description": "Review and edit the complete production blueprint—overview, story arc, visual direction, voiceover, characters, locations, scenes, shots, and retained project fields—in one portable workspace.",
10
- "kind": "workspace",
11
- "runtime": "javascript",
12
- "entry": "src/run.js",
13
- "license": "MIT",
14
- "provenance": {
15
- "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, src/view.json\n\nMIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
16
- "portableSources": [
17
- {
18
- "kind": "original",
19
- "license": "MIT",
20
- "paths": [
21
- "LICENSE",
22
- "src/run.js",
23
- "src/view.json"
24
- ],
25
- "evidence": [
26
- "upstream/0/LICENSE",
27
- "upstream/0/src/run.js",
28
- "upstream/0/src/view.json"
29
- ],
30
- "changes": "Original implementation declared by the packager; no reused repository or dependency code."
31
- }
32
- ]
33
- },
34
- "inputs": {
35
- "blueprint": {
36
- "type": "bible",
37
- "context": "blueprint",
38
- "primary": true,
39
- "required": false,
40
- "default": {
41
- "schemaVersion": 1
42
- },
43
- "description": "The complete current project blueprint. Unknown and future fields are retained unchanged."
44
- },
45
- "updatedBlueprint": {
46
- "type": "bible",
47
- "required": false,
48
- "default": {
49
- "schemaVersion": 1
50
- },
51
- "description": "The complete edited blueprint prepared by this Block's workspace."
52
- },
53
- "commit": {
54
- "type": "boolean",
55
- "default": false,
56
- "description": "Prepare the edited document for StillMade review and Apply."
57
- }
58
- },
59
- "outputs": {
60
- "blueprint": {
61
- "type": "bible",
62
- "primary": true,
63
- "role": "production_blueprint",
64
- "description": "The complete edited blueprint for the next Step."
65
- },
66
- "edit": {
67
- "type": "workspace-edit",
68
- "description": "An exact before/after Blueprint change reviewed before it updates the project."
69
- }
70
- },
71
- "permissions": {
72
- "project": [
73
- "context.blueprint.read",
74
- "workspace.blueprint.propose"
75
- ],
76
- "network": [],
77
- "filesystem": [],
78
- "secrets": []
79
- },
80
- "ui": [],
81
- "platforms": {
82
- "phone": {
83
- "supported": true
84
- },
85
- "browser": {
86
- "supported": true
87
- },
88
- "desktop": {
89
- "supported": true
90
- }
91
- }
92
- },
93
- "code": "const copy = value => JSON.parse(JSON.stringify(value));\nconst source = copy(input.blueprint || {schemaVersion: 1});\nconst candidate = input.commit ? copy(input.updatedBlueprint) : copy(source);\nif (!candidate || Array.isArray(candidate) || candidate.schemaVersion !== 1) {\n throw new Error('Keep the complete version 1 Blueprint document.');\n}\nconst title = typeof candidate.title === 'string' && candidate.title.trim()\n ? `Update Blueprint: ${candidate.title.trim().slice(0, 160)}`\n : 'Update production Blueprint';\nreturn {\n blueprint: candidate,\n edit: {schemaVersion: 1, title, field: 'blueprint', before: source, after: candidate}\n};\n",
94
- "view": {
95
- "html": "<main class=\"blueprint-workspace\">\n <header>\n <div><small>Production workspace</small><h1>Blueprint</h1></div>\n <div class=\"actions\"><button id=\"reset\" type=\"button\" class=\"secondary\">Reset changes</button><button id=\"save\" type=\"button\">Review changes</button></div>\n </header>\n <output id=\"status\" role=\"status\" aria-live=\"polite\">Loading the project Blueprint…</output>\n\n <section>\n <h2>Project overview</h2>\n <div class=\"grid two\">\n <label>Title<input id=\"title\" type=\"text\"></label>\n <label>Video type<input id=\"videoType\" type=\"text\"></label>\n <label>Target length<input id=\"targetLength\" type=\"text\"></label>\n <label>Tone<input id=\"tone\" type=\"text\"></label>\n <label>Aspect ratio<input id=\"aspectRatio\" type=\"text\"></label>\n </div>\n <label>Description<textarea id=\"description\"></textarea></label>\n <label>Extra information<textarea id=\"extraInfo\"></textarea></label>\n </section>\n\n <section>\n <h2>Emotional arc</h2>\n <div class=\"grid two\">\n <label>Beginning<textarea id=\"arcBeginning\"></textarea></label>\n <label>Escalation<textarea id=\"arcEscalation\"></textarea></label>\n <label>Climax<textarea id=\"arcClimax\"></textarea></label>\n <label>Resolution<textarea id=\"arcResolution\"></textarea></label>\n </div>\n </section>\n\n <section>\n <h2>Visual style guide</h2>\n <div class=\"grid two\">\n <label>Color palette<textarea id=\"styleColor\"></textarea></label>\n <label>Lighting tone<textarea id=\"styleLighting\"></textarea></label>\n <label>Camera language<textarea id=\"styleCamera\"></textarea></label>\n <label>Overall aesthetic<textarea id=\"styleAesthetic\"></textarea></label>\n </div>\n </section>\n\n <section><div class=\"section-title\"><h2>Voiceover</h2></div><div id=\"voiceover\" class=\"cards\"></div></section>\n <section><div class=\"section-title\"><h2>Characters</h2><button id=\"addCharacter\" type=\"button\" class=\"secondary\">Add character</button></div><div id=\"characters\" class=\"cards\"></div></section>\n <section><div class=\"section-title\"><h2>Locations</h2><button id=\"addLocation\" type=\"button\" class=\"secondary\">Add location</button></div><div id=\"locations\" class=\"cards\"></div></section>\n <section><div class=\"section-title\"><h2>Scenes and shots</h2><button id=\"addScene\" type=\"button\" class=\"secondary\">Add scene</button></div><div id=\"scenes\" class=\"cards\"></div></section>\n\n <details id=\"advanced\"><summary>Complete Blueprint data</summary><p>All fields are retained. Edit this JSON for fields a custom Blueprint adds beyond the standard workspace.</p><textarea id=\"raw\" class=\"raw\" spellcheck=\"false\"></textarea><button id=\"applyRaw\" type=\"button\" class=\"secondary\">Apply JSON to workspace</button></details>\n</main>\n",
96
- "css": ".blueprint-workspace{max-width:1100px;margin:0 auto;padding:8px;color:var(--fg)}\nheader,.section-title,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}header{justify-content:space-between;margin-bottom:14px}header h1{margin:2px 0}header small,output,p{color:var(--fg-muted)}\nsection,details{margin:14px 0;padding:16px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg-elev-1)}\nh2{margin:0 0 12px;font-size:22px}.section-title{justify-content:space-between}.section-title h2{margin:0}\n.grid{display:grid;gap:12px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}label{display:grid;gap:6px;margin:10px 0;font-size:13px;font-weight:600}textarea{min-height:88px;resize:vertical}input,textarea{width:100%;background:var(--bg)}\n.cards{display:grid;gap:12px}.card{padding:14px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.card h3{margin:0;font-size:16px}.secondary{background:transparent;color:var(--fg)}.danger{background:transparent;color:var(--signal)}\n.raw{min-height:320px;font-family:var(--font-mono);font-size:12px}summary{font-weight:700}output{display:block;min-height:24px;margin:8px 2px}\n@media(max-width:680px){.blueprint-workspace{padding:0}.grid.two{grid-template-columns:1fr}section,details{padding:12px}.actions{width:100%}.actions button{flex:1}}\n",
97
- "javascript": "const fields = {\n title: document.getElementById('title'), description: document.getElementById('description'), videoType: document.getElementById('videoType'),\n targetLength: document.getElementById('targetLength'), tone: document.getElementById('tone'), aspectRatio: document.getElementById('aspectRatio'), extraInfo: document.getElementById('extraInfo')\n};\nconst arc = {beginning:document.getElementById('arcBeginning'),escalation:document.getElementById('arcEscalation'),climax:document.getElementById('arcClimax'),resolution:document.getElementById('arcResolution')};\nconst visual = {colorPalette:document.getElementById('styleColor'),lightingTone:document.getElementById('styleLighting'),cameraLanguage:document.getElementById('styleCamera'),overallAesthetic:document.getElementById('styleAesthetic')};\nconst status = document.getElementById('status'), raw = document.getElementById('raw'), save = document.getElementById('save');\nlet source = {schemaVersion:1}, draft = {schemaVersion:1}, busy = false, revision = 0;\nconst clone = value => JSON.parse(JSON.stringify(value));\nconst text = value => Array.isArray(value) ? value.join(', ') : value === undefined || value === null ? '' : String(value);\nconst control = (label,action,value,multiline=true) => ({tag:'label',text:undefined,children:[{tag:'span',text:label},multiline?{tag:'textarea',action,value:text(value),disabled:busy,label}:{tag:'input',type:'text',action,value:text(value),disabled:busy,label}]});\nconst remove = (action,label) => ({tag:'button',action,text:label,className:'danger',disabled:busy});\nconst card = (title,children,action) => ({tag:'article',className:'card',children:[{tag:'div',className:'card-head',children:[{tag:'h3',text:title},remove(action,'Remove')]},...children]});\nconst ensure = () => {\n if(!draft.emotionalArc || Array.isArray(draft.emotionalArc)) draft.emotionalArc={};\n if(!draft.visualStyleGuide || Array.isArray(draft.visualStyleGuide)) draft.visualStyleGuide=clone(draft.visualStyle && !Array.isArray(draft.visualStyle) ? draft.visualStyle : {});\n if(!Array.isArray(draft.voiceover)) draft.voiceover=[];\n if(!Array.isArray(draft.characters)) draft.characters=[];\n if(!Array.isArray(draft.locations)) draft.locations=[];\n if(!Array.isArray(draft.scenes)) draft.scenes=[];\n};\nconst draw = () => {\n ensure();\n fields.title.value=text(draft.title);fields.description.value=text(draft.description);fields.videoType.value=text(draft.videoType);fields.targetLength.value=text(draft.targetLength);fields.tone.value=text(draft.tone);fields.aspectRatio.value=text(draft.aspectRatio);fields.extraInfo.value=text(draft.extraInfo);\n arc.beginning.value=text(draft.emotionalArc.beginning);arc.escalation.value=text(draft.emotionalArc.escalation);arc.climax.value=text(draft.emotionalArc.climax);arc.resolution.value=text(draft.emotionalArc.resolution);\n visual.colorPalette.value=text(draft.visualStyleGuide.colorPalette);visual.lightingTone.value=text(draft.visualStyleGuide.lightingTone);visual.cameraLanguage.value=text(draft.visualStyleGuide.cameraLanguage);visual.overallAesthetic.value=text(draft.visualStyleGuide.overallAesthetic || draft.visualStyleGuide.aesthetic);\n StillMade.render('voiceover',draft.voiceover.map((line,index)=>card(text(line.sceneId)||'Voiceover '+String(index+1),[control('Narration','voiceover:'+String(index),line.text)],'remove-voiceover:'+String(index))));\n StillMade.render('characters',draft.characters.map((item,index)=>card(text(item.name)||'Character '+String(index+1),[control('Name','character-name:'+String(index),item.name,false),control('Role','character-role:'+String(index),item.role,false),control('Physical description','character-physical:'+String(index),item.physicalDescription),control('Personality','character-personality:'+String(index),item.personality),control('Notes','character-notes:'+String(index),item.notes)],'remove-character:'+String(index))));\n StillMade.render('locations',draft.locations.map((item,index)=>card(text(item.name)||'Location '+String(index+1),[control('Name','location-name:'+String(index),item.name,false),control('Time of day','location-time:'+String(index),item.timeOfDay,false),control('Visual description','location-visual:'+String(index),item.visualDescription),control('Atmosphere','location-atmosphere:'+String(index),item.atmosphere || item.emotionalAtmosphere)],'remove-location:'+String(index))));\n StillMade.render('scenes',draft.scenes.map((item,index)=>card(text(item.title)||'Scene '+text(item.sceneNumber || index+1),[control('Scene number','scene-number:'+String(index),item.sceneNumber,false),control('Title','scene-title:'+String(index),item.title,false),control('Time of day','scene-time:'+String(index),item.timeOfDay,false),control('Emotional tone','scene-tone:'+String(index),item.emotionalTone,false),control('What happens','scene-action:'+String(index),item.whatHappens || item.action),control('Key visual moment','scene-visual:'+String(index),item.keyVisualMoment),control('Characters','scene-characters:'+String(index),item.charactersPresent),{tag:'p',text:Array.isArray(item.shotList)?String(item.shotList.length)+' shots retained. Use Complete Blueprint data to edit location and every shot field.':'No shots yet.'}], 'remove-scene:'+String(index))));\n raw.value=JSON.stringify(draft,null,2);save.disabled=busy;document.getElementById('reset').disabled=busy;\n};\nconst changed = () => {revision+=1;status.textContent='Changes are local until you choose Review changes.';raw.value=JSON.stringify(draft,null,2)};\nfields.title.addEventListener('input',()=>{draft.title=fields.title.value;changed()});fields.description.addEventListener('input',()=>{draft.description=fields.description.value;changed()});fields.videoType.addEventListener('input',()=>{draft.videoType=fields.videoType.value;changed()});fields.targetLength.addEventListener('input',()=>{draft.targetLength=fields.targetLength.value;changed()});fields.tone.addEventListener('input',()=>{draft.tone=fields.tone.value;changed()});fields.aspectRatio.addEventListener('input',()=>{draft.aspectRatio=fields.aspectRatio.value;changed()});fields.extraInfo.addEventListener('input',()=>{draft.extraInfo=fields.extraInfo.value;changed()});\narc.beginning.addEventListener('input',()=>{ensure();draft.emotionalArc.beginning=arc.beginning.value;changed()});arc.escalation.addEventListener('input',()=>{ensure();draft.emotionalArc.escalation=arc.escalation.value;changed()});arc.climax.addEventListener('input',()=>{ensure();draft.emotionalArc.climax=arc.climax.value;changed()});arc.resolution.addEventListener('input',()=>{ensure();draft.emotionalArc.resolution=arc.resolution.value;changed()});\nvisual.colorPalette.addEventListener('input',()=>{ensure();draft.visualStyleGuide.colorPalette=visual.colorPalette.value;changed()});visual.lightingTone.addEventListener('input',()=>{ensure();draft.visualStyleGuide.lightingTone=visual.lightingTone.value;changed()});visual.cameraLanguage.addEventListener('input',()=>{ensure();draft.visualStyleGuide.cameraLanguage=visual.cameraLanguage.value;changed()});visual.overallAesthetic.addEventListener('input',()=>{ensure();draft.visualStyleGuide.overallAesthetic=visual.overallAesthetic.value;changed()});\nStillMade.onAction(event=>{\n if(busy)return;const parts=event.action.split(':'),index=Number(parts[1]),kind=parts[0];ensure();\n const character=draft.characters.find((item,position)=>position===index),place=draft.locations.find((item,position)=>position===index),scene=draft.scenes.find((item,position)=>position===index),voice=draft.voiceover.find((item,position)=>position===index);\n if(kind==='voiceover'&&voice)voice.text=event.value;\n if(kind==='character-name'&&character)character.name=event.value;if(kind==='character-role'&&character)character.role=event.value;if(kind==='character-physical'&&character)character.physicalDescription=event.value;if(kind==='character-personality'&&character)character.personality=event.value;if(kind==='character-notes'&&character)character.notes=event.value;\n if(kind==='location-name'&&place)place.name=event.value;if(kind==='location-time'&&place)place.timeOfDay=event.value;if(kind==='location-visual'&&place)place.visualDescription=event.value;if(kind==='location-atmosphere'&&place)place.atmosphere=event.value;\n if(kind==='scene-number'&&scene)scene.sceneNumber=event.value;if(kind==='scene-title'&&scene)scene.title=event.value;if(kind==='scene-time'&&scene)scene.timeOfDay=event.value;if(kind==='scene-tone'&&scene)scene.emotionalTone=event.value;if(kind==='scene-action'&&scene)scene.whatHappens=event.value;if(kind==='scene-visual'&&scene)scene.keyVisualMoment=event.value;if(kind==='scene-characters'&&scene)scene.charactersPresent=event.value.split(',').map(value=>value.trim()).filter(Boolean);\n if(kind==='remove-voiceover')draft.voiceover=draft.voiceover.filter((item,position)=>position!==index);if(kind==='remove-character')draft.characters=draft.characters.filter((item,position)=>position!==index);if(kind==='remove-location')draft.locations=draft.locations.filter((item,position)=>position!==index);if(kind==='remove-scene')draft.scenes=draft.scenes.filter((item,position)=>position!==index);\n changed();if(kind.startsWith('remove-'))draw();\n});\ndocument.getElementById('addCharacter').addEventListener('click',()=>{if(!busy){ensure();draft.characters=[...draft.characters,{name:'New character',role:'',physicalDescription:'',personality:'',notes:''}];changed();draw()}});\ndocument.getElementById('addLocation').addEventListener('click',()=>{if(!busy){ensure();draft.locations=[...draft.locations,{name:'New location',timeOfDay:'',visualDescription:'',atmosphere:''}];changed();draw()}});\ndocument.getElementById('addScene').addEventListener('click',()=>{if(!busy){ensure();draft.scenes=[...draft.scenes,{sceneNumber:draft.scenes.length+1,title:'New scene',timeOfDay:'',emotionalTone:'',whatHappens:'',keyVisualMoment:'',charactersPresent:[],shotList:[]}];changed();draw()}});\ndocument.getElementById('applyRaw').addEventListener('click',()=>{if(busy)return;try{const value=JSON.parse(raw.value);if(!value||Array.isArray(value)||value.schemaVersion!==1)throw Error('Blueprint JSON must be a version 1 object.');draft=clone(value);changed();draw();status.textContent='Complete Blueprint data applied to this workspace.'}catch(error){status.textContent=error.message}});\ndocument.getElementById('reset').addEventListener('click',()=>{if(!busy){draft=clone(source);revision+=1;draw();status.textContent='Changes reset to the current project Blueprint.'}});\nsave.addEventListener('click',async()=>{if(busy)return;const started=revision;busy=true;draw();status.textContent='Checking the complete Blueprint…';try{const result=await StillMade.run({blueprint:source,updatedBlueprint:draft,commit:true});if(started===revision)status.textContent='Blueprint is ready below. Review the before and after, then choose Apply.';draft=clone(result.blueprint)}catch(error){status.textContent=error.message||'The Blueprint could not be prepared.'}finally{busy=false;draw()}});\nStillMade.onInput(values=>{source=clone(values.blueprint||{schemaVersion:1});draft=clone(source);revision+=1;draw();status.textContent='Edit any section. Every unshown project field is retained.'});\n"
98
- },
99
- "tests": [
100
- {
101
- "name": "Retain the complete existing Blueprint without edits",
102
- "input": {
103
- "blueprint": {
104
- "schemaVersion": 1,
105
- "title": "Keep me",
106
- "characters": [
107
- {
108
- "id": "hero",
109
- "name": "Ari",
110
- "portrait": {
111
- "assetId": "portrait-1",
112
- "versionId": "v3"
113
- }
114
- }
115
- ],
116
- "customWorkflow": {
117
- "keep": true
118
- }
119
- },
120
- "updatedBlueprint": {
121
- "schemaVersion": 1
122
- },
123
- "commit": false
124
- },
125
- "expected": {
126
- "blueprint": {
127
- "schemaVersion": 1,
128
- "title": "Keep me",
129
- "characters": [
130
- {
131
- "id": "hero",
132
- "name": "Ari",
133
- "portrait": {
134
- "assetId": "portrait-1",
135
- "versionId": "v3"
136
- }
137
- }
138
- ],
139
- "customWorkflow": {
140
- "keep": true
141
- }
142
- },
143
- "edit": {
144
- "schemaVersion": 1,
145
- "title": "Update Blueprint: Keep me",
146
- "field": "blueprint",
147
- "before": {
148
- "schemaVersion": 1,
149
- "title": "Keep me",
150
- "characters": [
151
- {
152
- "id": "hero",
153
- "name": "Ari",
154
- "portrait": {
155
- "assetId": "portrait-1",
156
- "versionId": "v3"
157
- }
158
- }
159
- ],
160
- "customWorkflow": {
161
- "keep": true
162
- }
163
- },
164
- "after": {
165
- "schemaVersion": 1,
166
- "title": "Keep me",
167
- "characters": [
168
- {
169
- "id": "hero",
170
- "name": "Ari",
171
- "portrait": {
172
- "assetId": "portrait-1",
173
- "versionId": "v3"
174
- }
175
- }
176
- ],
177
- "customWorkflow": {
178
- "keep": true
179
- }
180
- }
181
- }
182
- }
183
- },
184
- {
185
- "name": "Prepare one complete exact Blueprint update",
186
- "input": {
187
- "blueprint": {
188
- "schemaVersion": 1,
189
- "title": "Original",
190
- "characters": [
191
- {
192
- "id": "hero",
193
- "name": "Ari",
194
- "portrait": {
195
- "assetId": "portrait-1",
196
- "versionId": "v3"
197
- }
198
- }
199
- ],
200
- "scenes": [
201
- {
202
- "id": "scene-1",
203
- "title": "Opening",
204
- "shotList": [
205
- {
206
- "id": "shot-1",
207
- "prompt": "Keep this"
208
- }
209
- ]
210
- }
211
- ]
212
- },
213
- "updatedBlueprint": {
214
- "schemaVersion": 1,
215
- "title": "Revised",
216
- "characters": [
217
- {
218
- "id": "hero",
219
- "name": "Ari",
220
- "portrait": {
221
- "assetId": "portrait-1",
222
- "versionId": "v3"
223
- }
224
- }
225
- ],
226
- "scenes": [
227
- {
228
- "id": "scene-1",
229
- "title": "New opening",
230
- "shotList": [
231
- {
232
- "id": "shot-1",
233
- "prompt": "Keep this"
234
- }
235
- ]
236
- }
237
- ]
238
- },
239
- "commit": true
240
- },
241
- "expected": {
242
- "blueprint": {
243
- "schemaVersion": 1,
244
- "title": "Revised",
245
- "characters": [
246
- {
247
- "id": "hero",
248
- "name": "Ari",
249
- "portrait": {
250
- "assetId": "portrait-1",
251
- "versionId": "v3"
252
- }
253
- }
254
- ],
255
- "scenes": [
256
- {
257
- "id": "scene-1",
258
- "title": "New opening",
259
- "shotList": [
260
- {
261
- "id": "shot-1",
262
- "prompt": "Keep this"
263
- }
264
- ]
265
- }
266
- ]
267
- },
268
- "edit": {
269
- "schemaVersion": 1,
270
- "title": "Update Blueprint: Revised",
271
- "field": "blueprint",
272
- "before": {
273
- "schemaVersion": 1,
274
- "title": "Original",
275
- "characters": [
276
- {
277
- "id": "hero",
278
- "name": "Ari",
279
- "portrait": {
280
- "assetId": "portrait-1",
281
- "versionId": "v3"
282
- }
283
- }
284
- ],
285
- "scenes": [
286
- {
287
- "id": "scene-1",
288
- "title": "Opening",
289
- "shotList": [
290
- {
291
- "id": "shot-1",
292
- "prompt": "Keep this"
293
- }
294
- ]
295
- }
296
- ]
297
- },
298
- "after": {
299
- "schemaVersion": 1,
300
- "title": "Revised",
301
- "characters": [
302
- {
303
- "id": "hero",
304
- "name": "Ari",
305
- "portrait": {
306
- "assetId": "portrait-1",
307
- "versionId": "v3"
308
- }
309
- }
310
- ],
311
- "scenes": [
312
- {
313
- "id": "scene-1",
314
- "title": "New opening",
315
- "shotList": [
316
- {
317
- "id": "shot-1",
318
- "prompt": "Keep this"
319
- }
320
- ]
321
- }
322
- ]
323
- }
324
- }
325
- }
326
- }
327
- ],
328
- "portable": {
329
- "format": "stillmade-block/1",
330
- "dependencies": [],
331
- "sources": [
332
- {
333
- "kind": "original",
334
- "license": "MIT",
335
- "paths": [
336
- "LICENSE",
337
- "src/run.js",
338
- "src/view.json"
339
- ],
340
- "evidence": [
341
- "upstream/0/LICENSE",
342
- "upstream/0/src/run.js",
343
- "upstream/0/src/view.json"
344
- ],
345
- "changes": "Original implementation declared by the packager; no reused repository or dependency code."
346
- }
347
- ],
348
- "files": {
349
- "upstream/0/LICENSE": "MIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
350
- "upstream/0/src/run.js": "const copy = value => JSON.parse(JSON.stringify(value));\nconst source = copy(input.blueprint || {schemaVersion: 1});\nconst candidate = input.commit ? copy(input.updatedBlueprint) : copy(source);\nif (!candidate || Array.isArray(candidate) || candidate.schemaVersion !== 1) {\n throw new Error('Keep the complete version 1 Blueprint document.');\n}\nconst title = typeof candidate.title === 'string' && candidate.title.trim()\n ? `Update Blueprint: ${candidate.title.trim().slice(0, 160)}`\n : 'Update production Blueprint';\nreturn {\n blueprint: candidate,\n edit: {schemaVersion: 1, title, field: 'blueprint', before: source, after: candidate}\n};\n",
351
- "upstream/0/src/view.json": "{\n \"html\": \"<main class=\\\"blueprint-workspace\\\">\\n <header>\\n <div><small>Production workspace</small><h1>Blueprint</h1></div>\\n <div class=\\\"actions\\\"><button id=\\\"reset\\\" type=\\\"button\\\" class=\\\"secondary\\\">Reset changes</button><button id=\\\"save\\\" type=\\\"button\\\">Review changes</button></div>\\n </header>\\n <output id=\\\"status\\\" role=\\\"status\\\" aria-live=\\\"polite\\\">Loading the project Blueprint…</output>\\n\\n <section>\\n <h2>Project overview</h2>\\n <div class=\\\"grid two\\\">\\n <label>Title<input id=\\\"title\\\" type=\\\"text\\\"></label>\\n <label>Video type<input id=\\\"videoType\\\" type=\\\"text\\\"></label>\\n <label>Target length<input id=\\\"targetLength\\\" type=\\\"text\\\"></label>\\n <label>Tone<input id=\\\"tone\\\" type=\\\"text\\\"></label>\\n <label>Aspect ratio<input id=\\\"aspectRatio\\\" type=\\\"text\\\"></label>\\n </div>\\n <label>Description<textarea id=\\\"description\\\"></textarea></label>\\n <label>Extra information<textarea id=\\\"extraInfo\\\"></textarea></label>\\n </section>\\n\\n <section>\\n <h2>Emotional arc</h2>\\n <div class=\\\"grid two\\\">\\n <label>Beginning<textarea id=\\\"arcBeginning\\\"></textarea></label>\\n <label>Escalation<textarea id=\\\"arcEscalation\\\"></textarea></label>\\n <label>Climax<textarea id=\\\"arcClimax\\\"></textarea></label>\\n <label>Resolution<textarea id=\\\"arcResolution\\\"></textarea></label>\\n </div>\\n </section>\\n\\n <section>\\n <h2>Visual style guide</h2>\\n <div class=\\\"grid two\\\">\\n <label>Color palette<textarea id=\\\"styleColor\\\"></textarea></label>\\n <label>Lighting tone<textarea id=\\\"styleLighting\\\"></textarea></label>\\n <label>Camera language<textarea id=\\\"styleCamera\\\"></textarea></label>\\n <label>Overall aesthetic<textarea id=\\\"styleAesthetic\\\"></textarea></label>\\n </div>\\n </section>\\n\\n <section><div class=\\\"section-title\\\"><h2>Voiceover</h2></div><div id=\\\"voiceover\\\" class=\\\"cards\\\"></div></section>\\n <section><div class=\\\"section-title\\\"><h2>Characters</h2><button id=\\\"addCharacter\\\" type=\\\"button\\\" class=\\\"secondary\\\">Add character</button></div><div id=\\\"characters\\\" class=\\\"cards\\\"></div></section>\\n <section><div class=\\\"section-title\\\"><h2>Locations</h2><button id=\\\"addLocation\\\" type=\\\"button\\\" class=\\\"secondary\\\">Add location</button></div><div id=\\\"locations\\\" class=\\\"cards\\\"></div></section>\\n <section><div class=\\\"section-title\\\"><h2>Scenes and shots</h2><button id=\\\"addScene\\\" type=\\\"button\\\" class=\\\"secondary\\\">Add scene</button></div><div id=\\\"scenes\\\" class=\\\"cards\\\"></div></section>\\n\\n <details id=\\\"advanced\\\"><summary>Complete Blueprint data</summary><p>All fields are retained. Edit this JSON for fields a custom Blueprint adds beyond the standard workspace.</p><textarea id=\\\"raw\\\" class=\\\"raw\\\" spellcheck=\\\"false\\\"></textarea><button id=\\\"applyRaw\\\" type=\\\"button\\\" class=\\\"secondary\\\">Apply JSON to workspace</button></details>\\n</main>\\n\",\n \"css\": \".blueprint-workspace{max-width:1100px;margin:0 auto;padding:8px;color:var(--fg)}\\nheader,.section-title,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}header{justify-content:space-between;margin-bottom:14px}header h1{margin:2px 0}header small,output,p{color:var(--fg-muted)}\\nsection,details{margin:14px 0;padding:16px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg-elev-1)}\\nh2{margin:0 0 12px;font-size:22px}.section-title{justify-content:space-between}.section-title h2{margin:0}\\n.grid{display:grid;gap:12px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}label{display:grid;gap:6px;margin:10px 0;font-size:13px;font-weight:600}textarea{min-height:88px;resize:vertical}input,textarea{width:100%;background:var(--bg)}\\n.cards{display:grid;gap:12px}.card{padding:14px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.card h3{margin:0;font-size:16px}.secondary{background:transparent;color:var(--fg)}.danger{background:transparent;color:var(--signal)}\\n.raw{min-height:320px;font-family:var(--font-mono);font-size:12px}summary{font-weight:700}output{display:block;min-height:24px;margin:8px 2px}\\n@media(max-width:680px){.blueprint-workspace{padding:0}.grid.two{grid-template-columns:1fr}section,details{padding:12px}.actions{width:100%}.actions button{flex:1}}\\n\",\n \"javascript\": \"const fields = {\\n title: document.getElementById('title'), description: document.getElementById('description'), videoType: document.getElementById('videoType'),\\n targetLength: document.getElementById('targetLength'), tone: document.getElementById('tone'), aspectRatio: document.getElementById('aspectRatio'), extraInfo: document.getElementById('extraInfo')\\n};\\nconst arc = {beginning:document.getElementById('arcBeginning'),escalation:document.getElementById('arcEscalation'),climax:document.getElementById('arcClimax'),resolution:document.getElementById('arcResolution')};\\nconst visual = {colorPalette:document.getElementById('styleColor'),lightingTone:document.getElementById('styleLighting'),cameraLanguage:document.getElementById('styleCamera'),overallAesthetic:document.getElementById('styleAesthetic')};\\nconst status = document.getElementById('status'), raw = document.getElementById('raw'), save = document.getElementById('save');\\nlet source = {schemaVersion:1}, draft = {schemaVersion:1}, busy = false, revision = 0;\\nconst clone = value => JSON.parse(JSON.stringify(value));\\nconst text = value => Array.isArray(value) ? value.join(', ') : value === undefined || value === null ? '' : String(value);\\nconst control = (label,action,value,multiline=true) => ({tag:'label',text:undefined,children:[{tag:'span',text:label},multiline?{tag:'textarea',action,value:text(value),disabled:busy,label}:{tag:'input',type:'text',action,value:text(value),disabled:busy,label}]});\\nconst remove = (action,label) => ({tag:'button',action,text:label,className:'danger',disabled:busy});\\nconst card = (title,children,action) => ({tag:'article',className:'card',children:[{tag:'div',className:'card-head',children:[{tag:'h3',text:title},remove(action,'Remove')]},...children]});\\nconst ensure = () => {\\n if(!draft.emotionalArc || Array.isArray(draft.emotionalArc)) draft.emotionalArc={};\\n if(!draft.visualStyleGuide || Array.isArray(draft.visualStyleGuide)) draft.visualStyleGuide=clone(draft.visualStyle && !Array.isArray(draft.visualStyle) ? draft.visualStyle : {});\\n if(!Array.isArray(draft.voiceover)) draft.voiceover=[];\\n if(!Array.isArray(draft.characters)) draft.characters=[];\\n if(!Array.isArray(draft.locations)) draft.locations=[];\\n if(!Array.isArray(draft.scenes)) draft.scenes=[];\\n};\\nconst draw = () => {\\n ensure();\\n fields.title.value=text(draft.title);fields.description.value=text(draft.description);fields.videoType.value=text(draft.videoType);fields.targetLength.value=text(draft.targetLength);fields.tone.value=text(draft.tone);fields.aspectRatio.value=text(draft.aspectRatio);fields.extraInfo.value=text(draft.extraInfo);\\n arc.beginning.value=text(draft.emotionalArc.beginning);arc.escalation.value=text(draft.emotionalArc.escalation);arc.climax.value=text(draft.emotionalArc.climax);arc.resolution.value=text(draft.emotionalArc.resolution);\\n visual.colorPalette.value=text(draft.visualStyleGuide.colorPalette);visual.lightingTone.value=text(draft.visualStyleGuide.lightingTone);visual.cameraLanguage.value=text(draft.visualStyleGuide.cameraLanguage);visual.overallAesthetic.value=text(draft.visualStyleGuide.overallAesthetic || draft.visualStyleGuide.aesthetic);\\n StillMade.render('voiceover',draft.voiceover.map((line,index)=>card(text(line.sceneId)||'Voiceover '+String(index+1),[control('Narration','voiceover:'+String(index),line.text)],'remove-voiceover:'+String(index))));\\n StillMade.render('characters',draft.characters.map((item,index)=>card(text(item.name)||'Character '+String(index+1),[control('Name','character-name:'+String(index),item.name,false),control('Role','character-role:'+String(index),item.role,false),control('Physical description','character-physical:'+String(index),item.physicalDescription),control('Personality','character-personality:'+String(index),item.personality),control('Notes','character-notes:'+String(index),item.notes)],'remove-character:'+String(index))));\\n StillMade.render('locations',draft.locations.map((item,index)=>card(text(item.name)||'Location '+String(index+1),[control('Name','location-name:'+String(index),item.name,false),control('Time of day','location-time:'+String(index),item.timeOfDay,false),control('Visual description','location-visual:'+String(index),item.visualDescription),control('Atmosphere','location-atmosphere:'+String(index),item.atmosphere || item.emotionalAtmosphere)],'remove-location:'+String(index))));\\n StillMade.render('scenes',draft.scenes.map((item,index)=>card(text(item.title)||'Scene '+text(item.sceneNumber || index+1),[control('Scene number','scene-number:'+String(index),item.sceneNumber,false),control('Title','scene-title:'+String(index),item.title,false),control('Time of day','scene-time:'+String(index),item.timeOfDay,false),control('Emotional tone','scene-tone:'+String(index),item.emotionalTone,false),control('What happens','scene-action:'+String(index),item.whatHappens || item.action),control('Key visual moment','scene-visual:'+String(index),item.keyVisualMoment),control('Characters','scene-characters:'+String(index),item.charactersPresent),{tag:'p',text:Array.isArray(item.shotList)?String(item.shotList.length)+' shots retained. Use Complete Blueprint data to edit location and every shot field.':'No shots yet.'}], 'remove-scene:'+String(index))));\\n raw.value=JSON.stringify(draft,null,2);save.disabled=busy;document.getElementById('reset').disabled=busy;\\n};\\nconst changed = () => {revision+=1;status.textContent='Changes are local until you choose Review changes.';raw.value=JSON.stringify(draft,null,2)};\\nfields.title.addEventListener('input',()=>{draft.title=fields.title.value;changed()});fields.description.addEventListener('input',()=>{draft.description=fields.description.value;changed()});fields.videoType.addEventListener('input',()=>{draft.videoType=fields.videoType.value;changed()});fields.targetLength.addEventListener('input',()=>{draft.targetLength=fields.targetLength.value;changed()});fields.tone.addEventListener('input',()=>{draft.tone=fields.tone.value;changed()});fields.aspectRatio.addEventListener('input',()=>{draft.aspectRatio=fields.aspectRatio.value;changed()});fields.extraInfo.addEventListener('input',()=>{draft.extraInfo=fields.extraInfo.value;changed()});\\narc.beginning.addEventListener('input',()=>{ensure();draft.emotionalArc.beginning=arc.beginning.value;changed()});arc.escalation.addEventListener('input',()=>{ensure();draft.emotionalArc.escalation=arc.escalation.value;changed()});arc.climax.addEventListener('input',()=>{ensure();draft.emotionalArc.climax=arc.climax.value;changed()});arc.resolution.addEventListener('input',()=>{ensure();draft.emotionalArc.resolution=arc.resolution.value;changed()});\\nvisual.colorPalette.addEventListener('input',()=>{ensure();draft.visualStyleGuide.colorPalette=visual.colorPalette.value;changed()});visual.lightingTone.addEventListener('input',()=>{ensure();draft.visualStyleGuide.lightingTone=visual.lightingTone.value;changed()});visual.cameraLanguage.addEventListener('input',()=>{ensure();draft.visualStyleGuide.cameraLanguage=visual.cameraLanguage.value;changed()});visual.overallAesthetic.addEventListener('input',()=>{ensure();draft.visualStyleGuide.overallAesthetic=visual.overallAesthetic.value;changed()});\\nStillMade.onAction(event=>{\\n if(busy)return;const parts=event.action.split(':'),index=Number(parts[1]),kind=parts[0];ensure();\\n const character=draft.characters.find((item,position)=>position===index),place=draft.locations.find((item,position)=>position===index),scene=draft.scenes.find((item,position)=>position===index),voice=draft.voiceover.find((item,position)=>position===index);\\n if(kind==='voiceover'&&voice)voice.text=event.value;\\n if(kind==='character-name'&&character)character.name=event.value;if(kind==='character-role'&&character)character.role=event.value;if(kind==='character-physical'&&character)character.physicalDescription=event.value;if(kind==='character-personality'&&character)character.personality=event.value;if(kind==='character-notes'&&character)character.notes=event.value;\\n if(kind==='location-name'&&place)place.name=event.value;if(kind==='location-time'&&place)place.timeOfDay=event.value;if(kind==='location-visual'&&place)place.visualDescription=event.value;if(kind==='location-atmosphere'&&place)place.atmosphere=event.value;\\n if(kind==='scene-number'&&scene)scene.sceneNumber=event.value;if(kind==='scene-title'&&scene)scene.title=event.value;if(kind==='scene-time'&&scene)scene.timeOfDay=event.value;if(kind==='scene-tone'&&scene)scene.emotionalTone=event.value;if(kind==='scene-action'&&scene)scene.whatHappens=event.value;if(kind==='scene-visual'&&scene)scene.keyVisualMoment=event.value;if(kind==='scene-characters'&&scene)scene.charactersPresent=event.value.split(',').map(value=>value.trim()).filter(Boolean);\\n if(kind==='remove-voiceover')draft.voiceover=draft.voiceover.filter((item,position)=>position!==index);if(kind==='remove-character')draft.characters=draft.characters.filter((item,position)=>position!==index);if(kind==='remove-location')draft.locations=draft.locations.filter((item,position)=>position!==index);if(kind==='remove-scene')draft.scenes=draft.scenes.filter((item,position)=>position!==index);\\n changed();if(kind.startsWith('remove-'))draw();\\n});\\ndocument.getElementById('addCharacter').addEventListener('click',()=>{if(!busy){ensure();draft.characters=[...draft.characters,{name:'New character',role:'',physicalDescription:'',personality:'',notes:''}];changed();draw()}});\\ndocument.getElementById('addLocation').addEventListener('click',()=>{if(!busy){ensure();draft.locations=[...draft.locations,{name:'New location',timeOfDay:'',visualDescription:'',atmosphere:''}];changed();draw()}});\\ndocument.getElementById('addScene').addEventListener('click',()=>{if(!busy){ensure();draft.scenes=[...draft.scenes,{sceneNumber:draft.scenes.length+1,title:'New scene',timeOfDay:'',emotionalTone:'',whatHappens:'',keyVisualMoment:'',charactersPresent:[],shotList:[]}];changed();draw()}});\\ndocument.getElementById('applyRaw').addEventListener('click',()=>{if(busy)return;try{const value=JSON.parse(raw.value);if(!value||Array.isArray(value)||value.schemaVersion!==1)throw Error('Blueprint JSON must be a version 1 object.');draft=clone(value);changed();draw();status.textContent='Complete Blueprint data applied to this workspace.'}catch(error){status.textContent=error.message}});\\ndocument.getElementById('reset').addEventListener('click',()=>{if(!busy){draft=clone(source);revision+=1;draw();status.textContent='Changes reset to the current project Blueprint.'}});\\nsave.addEventListener('click',async()=>{if(busy)return;const started=revision;busy=true;draw();status.textContent='Checking the complete Blueprint…';try{const result=await StillMade.run({blueprint:source,updatedBlueprint:draft,commit:true});if(started===revision)status.textContent='Blueprint is ready below. Review the before and after, then choose Apply.';draft=clone(result.blueprint)}catch(error){status.textContent=error.message||'The Blueprint could not be prepared.'}finally{busy=false;draw()}});\\nStillMade.onInput(values=>{source=clone(values.blueprint||{schemaVersion:1});draft=clone(source);revision+=1;draw();status.textContent='Edit any section. Every unshown project field is retained.'});\\n\"\n}"
352
- },
353
- "lineage": {
354
- "parents": [],
355
- "changes": "Packaged original Block source for StillMade."
356
- }
357
- }
358
- };