stillmade-sdk 0.1.39 → 0.1.41

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 (37) hide show
  1. package/AGENTS.md +10 -2
  2. package/FRAME_VIEWS.md +41 -0
  3. package/INTERFACE_DESIGN.md +95 -8
  4. package/MOBILE_UI.md +3 -1
  5. package/PASTE_TO_LLM.md +14 -5
  6. package/SDK.md +172 -22
  7. package/UI_AESTHETIC.md +86 -4
  8. package/package.json +1 -1
  9. package/packages/block-cli/dev-host/assets/host.js +203 -37
  10. package/packages/block-cli/dev-host/assets/index.css +1 -1
  11. package/packages/block-platform/block-readiness.js +22 -2
  12. package/packages/block-platform/canvas.js +17 -0
  13. package/packages/block-platform/catalog.js +21 -6
  14. package/packages/block-platform/dealer-inventory-video-project-type.js +10 -5
  15. package/packages/block-platform/fixture-starters.js +13 -0
  16. package/packages/block-platform/host-release-manifests.js +95 -0
  17. package/packages/block-platform/import-eligibility.js +10 -1
  18. package/packages/block-platform/native-host-inventory.js +29 -4
  19. package/packages/block-platform/node-defaults.js +1 -0
  20. package/packages/block-platform/project-context.js +1 -1
  21. package/packages/block-platform/project-type-starters.js +13 -16
  22. package/packages/block-platform/revenue-review-project-types.js +14 -11
  23. package/packages/block-platform/revenue-review-starters.js +13 -0
  24. package/packages/block-platform/script-handoff.js +1 -1
  25. package/packages/block-platform/step-groups.js +3 -1
  26. package/packages/block-platform/type-preview.js +16 -3
  27. package/packages/block-platform/type-testing.js +3 -2
  28. package/packages/block-sdk/builder-contract.js +19 -4
  29. package/packages/block-sdk/contracts.js +3 -1
  30. package/packages/block-sdk/index.d.ts +3 -3
  31. package/packages/block-sdk/media-import-formats.js +2 -0
  32. package/packages/block-sdk/platform-checks.js +1 -1
  33. package/packages/block-sdk/view-design.js +92 -17
  34. package/packages/block-sdk/workspace-navigation.js +6 -2
  35. package/packages/design-system/block-kit.css +28 -6
  36. package/packages/design-system/block-kit.html +14 -4
  37. package/packages/design-system/theme.css +6 -5
package/AGENTS.md CHANGED
@@ -6,7 +6,7 @@ This folder is the StillMade Block SDK. Read this file before writing code; it i
6
6
 
7
7
  Do not tell the user a Block is ready, done or working until `node packages/block-cli/cli.js gate .` (`gate <block-folder>` for a Block outside this SDK folder) passes after your last edit, and report the exact status it prints. In this folder Claude Code (`.claude/settings.json`) and Cursor (`.cursor/hooks.json`) run the gate when you finish a turn and send any failures back to you, but only in a session started in this folder: if you downloaded the SDK during the current session, run the gate yourself. Other agents must also run it themselves. A module Block runs code, so the gate a hook starts does not run it and says so: run `gate` or `ready` on it yourself. If you cannot fix a failure, say plainly that the Block is not ready and list the failing checks.
8
8
 
9
- Contract `stillmade.block-builder@1.11.0`. Humans, coding agents, imported source, GitHub repositories and generated code all adapt to the Block platform; anything that becomes a StillMade Block obeys this contract.
9
+ Contract `stillmade.block-builder@1.16.0`. Humans, coding agents, imported source, GitHub repositories and generated code all adapt to the Block platform; anything that becomes a StillMade Block obeys this contract.
10
10
 
11
11
  ## Source of truth
12
12
 
@@ -64,9 +64,17 @@ Never make a Block look functional through hard-coded local paths, developer-mac
64
64
 
65
65
  Give the Block a short, plain name of 40 characters or fewer that says what it does ("Captioned Clip", not "Captioned Business Clip Generator With Review"). The name appears in step bars, Project Type cards and pickers, so put the detail in the description instead. New releases with a longer name do not pass readiness.
66
66
 
67
+ ## Name inputs in the job's words
68
+
69
+ Name each input for what the person brings, in the job's words: `sermonVideo` for a sermon clip Block, `listingPhotos` for a listing, `lessonSlides` for a lesson podcast. StillMade titles the input from that name ("Sermon video") and words its drop area from it ("Drop your sermon video here", the formats, "Choose a video"), in StillMade and the SDK preview, so never draw your own upload box for an input. Keep a bare type name (`video`, `file`) only when any file of that kind does the job. The `description` says what makes a good one.
70
+
71
+ ## Speak the job
72
+
73
+ These are StillMade's defaults: unless the person or the creator asked for something else, every screen speaks the job in its own words and adds nothing else. `manifest.action` names the Step's button, {label:"Plan the tour", running:"Planning the tour…"}, and StillMade adds the price ("Plan the tour · 1 credit"). When the Block makes a picture, video or sound with AI the label starts with Generate and says what ("Generate tour", "Generate voiceover"); one that cuts or renders the person's own media says Make ("Make 6 clips"); never "Make it", "Run", "Submit", "Process" or a bare "Generate". The main button stands out: one solid `sm-primary` in the kit's ink, never restyled to the background; everything else is `sm-quiet` or an `sm-icon`, and close is an X icon. Report progress in the job's units with `stillmade.progress(fraction, label)` ("Moving through the kitchen, 4 of 9 rooms"), never "Processing". Head the result in the job's words ("9 rooms", "Your tour · 44 s"), never "Output". Say a problem in one line with its fix beside it ("No bathroom photo. Guests look for one." and Add photo). Stay quiet: no welcome text, tips under fields, tours or banners, and at most one line of guidance on a screen, only where the next move is not obvious; anything more goes in the input's `description`, which StillMade shows behind an (i). Say nothing about how the Block works (where it runs, saving, syncing, recovery, accounts, credits) or where a file is kept: StillMade tells the person what they need as one short notification, or nothing; never a sentence on the page, and never the same line under each item. Every drop area offers "Use a reference", which fills the Step from the person's saved photos, videos and notes: media inputs fill by kind, so take `video` or `asset` where a clip works as well as a photo, and text inputs fill by plain names and labels (`productName`, `website`, `brandColors`, `fonts`, `voice`, and `details` or `notes` for the reference's note); never build your own reference picker. Days and times are picked, never typed: use the `date` type, which StillMade shows as a calendar, with a list of times when the input is about a time (`postAt`, `startsAt`); a custom view uses `<input type="date">` or `type="datetime-local"`. Posting is a connector Step of its own, and StillMade words its button from the app and action ("Post to Instagram"). Before handing the Block back, clear every Wording note that `gate` and readiness list, unless the person asked for those words.
74
+
67
75
  ## Interface
68
76
 
69
- If the capability needs UI, use the Block UI SDK: generated `manifest.ui` controls first; a sandboxed custom view (`view.html`/`view.css`/`view.js`) only when the core interaction needs one. Build custom views from the Block kit the host injects (`block-kit.css`): the result in `sm-stage`, picks as pictures in `sm-choices`, one `sm-primary` naming the action (Write, Generate; never "Run") and no price (StillMade's run button adds it), extras in a closed `sm-more`; a look the person names wins. Fit one laptop screen without scrolling: label beside control, status in a few words, files as tiles, rare tools as icons, (i) on unclear controls. These compact rules are for a job or an ingredient. Size the view to the Block's tier (block-tier.js): an app, a workspace a person works in for a while (video editor, 3D configurator, CAD or drawing tool), looks and works like that kind of app instead of a compact page: its canvas or stage fills the view, with the panels, toolbars, inspector or timeline such an app has, direct manipulation (select, drag, zoom), keyboard shortcuts and undo; it keeps the host appearance and Block kit controls, its panels may scroll, and on a phone its tools fold into sheets while the canvas stays usable. Never shrink an app into a form of fields and one button. Drop words nobody needs; put helpful ones in a closed `sm-hint`. Mark each button `data-stillmade-action="what it does"` and label each field: Chat presses and fills them. Expose the capability, not the implementation: sensible defaults, previews, progress, clear errors, visible outputs. Show no raw JSON, internal IDs, filesystem details, provider terms or developer settings unless the Block is a developer tool. When a person chooses among options they need to hear or see (voices, music, fonts, looks, templates, images), let them preview each option before choosing: a sample or thumbnail from the Block's own files or the host's free samples, never a paid generation. Skip previews only when there is nothing to preview. Choices StillMade owns (voices, models in the run review) already show samples. Follow the host appearance (Light, Dark and White) and one elastic layout: stacked on a 320px phone with no sideways scroll (result first, action pinned), and from 860px the controls left (≤380px), the result filling the right. Short settings sit side by side, each label beside its control (`sm-field`, `sm-settings`; three or four short options as one `data-segmented` row); many items are one line each (`sm-list`) that open in place; input files are small tiles (`sm-gallery data-size="small"`); on a phone chip rows scroll sideways and long lists show three. Compacting moves controls, never deletes them.
77
+ If the capability needs UI, use the Block UI SDK: generated `manifest.ui` controls first; a sandboxed custom view (`view.html`/`view.css`/`view.js`) only when the core interaction needs one. Build custom views from the Block kit the host injects (`block-kit.css`): the result in `sm-stage`, picks as pictures in `sm-choices`, the picked one in the kit's ink fill (never restyled to an outline, a tint or the page's background) so it reads at a glance, one solid `sm-primary` naming the action in the job's words ("Plan the tour", "Generate voiceover"; never "Run" or "Make it") and no price (StillMade's run button adds it), extras in a closed `sm-more`; a look the person names wins. Fit one laptop screen without scrolling: label beside control, status in a few words, files as tiles, rare tools as icons, (i) on unclear controls. These compact rules are for a job or an ingredient. Size the view to the Block's tier (block-tier.js): an app, a workspace a person works in for a while (video editor, 3D configurator, CAD or drawing tool), looks and works like that kind of app instead of a compact page: its canvas or stage fills the view, with the panels, toolbars, inspector or timeline such an app has, direct manipulation (select, drag, zoom), keyboard shortcuts and undo; it keeps the host appearance and Block kit controls, its panels may scroll, and on a phone its tools fold into sheets while the canvas stays usable. Never shrink an app into a form of fields and one button. StillMade centers a standard view narrower than its Step and zooms a view to fill its space; an app that lays itself out (full-size canvas or WebGL, its own scroll, pan or zoom, its own Ctrl/Cmd +/- keys) puts `data-stillmade-layout="own"` on its outermost element, and StillMade then never centers, zooms or takes those keys. StillMade draws one player for every `<video controls>` (play, timeline, time, sound and full screen, shown while the pointer is on the video, with keys and touch) and a full-screen button on result pictures in `sm-stage` or `sm-gallery` and on any element marked `data-stillmade-expand` (the same value makes one set of pictures, `off` removes it); `data-stillmade-player="native"` keeps the browser's controls, and a `<video>` without `controls` is the Block's own and is never touched. A picture or clip that cannot show here (kept on another device, or it did not open) keeps its place as a quiet `sm-media-off` tile in its own shape with the `image-off` glyph and the reason in its label, never words in its place. Drop words nobody needs; put helpful ones in a closed `sm-hint`. Mark each button `data-stillmade-action="what it does"` and label each field: Chat presses and fills them. Expose the capability, not the implementation: sensible defaults, previews, progress, clear errors, visible outputs. Show no raw JSON, internal IDs, filesystem details, provider terms or developer settings unless the Block is a developer tool. When a person chooses among options they need to hear or see (voices, music, fonts, looks, templates, images), let them preview each option before choosing: a sample or thumbnail from the Block's own files or the host's free samples, never a paid generation. Skip previews only when there is nothing to preview. Choices StillMade owns (voices, models in the run review) already show samples. Follow the host appearance (Light, Dark and White) and one elastic layout: stacked on a 320px phone with no sideways scroll (result first, action pinned), and from 860px the controls left (≤380px), the result filling the right. Short settings sit side by side, each label beside its control (`sm-field`, `sm-settings`; three or four short options as one `data-segmented` row); many items are one line each (`sm-list`) that open in place; input files are small tiles (`sm-gallery data-size="small"`); on a phone chip rows scroll sideways and long lists show three. Compacting moves controls, never deletes them.
70
78
 
71
79
  ## Shared editing
72
80
 
package/FRAME_VIEWS.md CHANGED
@@ -60,6 +60,47 @@ rest. Colors written with them follow Light, Dark and White automatically.
60
60
  Frame views are not required to use them; the appearance check reports
61
61
  hard-coded colors as advice instead of refusing the view.
62
62
 
63
+ ## Layout
64
+
65
+ StillMade zooms a view to fill the space its Step gives it (up to 150%), and
66
+ Ctrl/Cmd +, - and 0 size the view while it has focus. It never centers a frame
67
+ view; a standard view narrower than its Step is centered by its margins.
68
+
69
+ An app that lays itself out (a full-size canvas or WebGL, its own scroll, pan
70
+ or zoom, its own Ctrl/Cmd +/- keys, as in a CAD or drawing tool) puts
71
+ `data-stillmade-layout="own"` on its outermost element:
72
+
73
+ ```html
74
+ <div id="root" data-stillmade-layout="own"></div>
75
+ ```
76
+
77
+ StillMade then never centers or zooms it and leaves Ctrl/Cmd +, - and 0 to the
78
+ app. Without the attribute StillMade also stays out of the way when the view
79
+ looks like an app: no page padding, a clipped page, a root as tall as the frame,
80
+ fixed over half of it or scrolling over half of it, a canvas, SVG or
81
+ `touch-action: none` surface over 40% of it, or a canvas or SVG of 300x200 or
82
+ more with `touch-action: none` (as Three.js's controls set it). Mark the root
83
+ anyway, in `view.html` rather than from code: StillMade reads it before the view
84
+ starts, so the app never shows StillMade's size control or loses a key to it,
85
+ even while it is still loading.
86
+
87
+ A `<video controls>` plays in StillMade's player, the same one as everywhere in
88
+ StillMade: play, timeline, time, sound and full screen along the bottom, shown
89
+ while the pointer is on the video, with keys on the focused video (Space or K,
90
+ the arrows, M, F) and touch. Full screen goes through StillMade, right after a
91
+ click or key in the view; the frame itself has no `allow="fullscreen"`. A
92
+ `<video>` without `controls` is the Block's own and StillMade never touches it,
93
+ so a Block that drives playback (its own timeline, an editor or CAD viewer)
94
+ leaves `controls` out, and `data-stillmade-player="native"` keeps the browser's
95
+ controls. Result pictures from `StillMade.previewImage` in `sm-stage` or
96
+ `sm-gallery`, and any element marked `data-stillmade-expand`, get a full-screen
97
+ button in the bottom-right corner while the pointer is on them; pictures with
98
+ the same value (`data-stillmade-expand="shots"`) open as one set, and
99
+ `data-stillmade-expand="off"` removes the button. The keyboard reaches them
100
+ too: such a picture without a `tabindex` of its own joins the tab order,
101
+ keyboard focus on it shows the button, Enter or Space opens the viewer, and
102
+ closing the viewer gives the focus back to the picture.
103
+
63
104
  ## Assets
64
105
 
65
106
  Images, fonts, JSON, audio and video the view needs ship as files named by
@@ -41,7 +41,7 @@ piece in Light, Dark and White.
41
41
  </div>
42
42
 
43
43
  <div class="sm-actions">
44
- <button type="button" class="sm-primary" id="run" data-stillmade-action="run">Make it</button>
44
+ <button type="button" class="sm-primary" id="run" data-stillmade-action="make the clip">Make the clip</button>
45
45
  <p class="sm-status" id="status" role="status"></p>
46
46
  </div>
47
47
 
@@ -57,7 +57,7 @@ piece in Light, Dark and White.
57
57
  | `sm-block` | The one workspace. `data-layout="split"` puts the stage beside the controls on wide screens. |
58
58
  | `sm-stage` | The thing being made: preview, media or result. `data-ratio="16:9"`, `"9:16"` or `"1:1"`. |
59
59
  | `sm-empty` | An empty stage: a glyph, at most five words, one action. |
60
- | `sm-choices` | Picks shown as pictures (`img`, `.sm-swatch`, `.sm-glyph`) and one or two words. `data-compact` for short text chips, `data-segmented` for one connected row of three or four short options. Chips and segments scroll sideways on a phone. Give the `fieldset` an `id` and `data-stillmade-share` so teammates see the same pick. |
60
+ | `sm-choices` | Picks shown as pictures (`img`, `.sm-swatch`, `.sm-glyph`) and one or two words. `data-compact` for short text chips, `data-segmented` for one connected row of three or four short options. The pick is filled with the kit's ink, so it reads at a glance; a `disabled` fieldset keeps its pick and fades the rest. Chips and segments scroll sideways on a phone. Give the `fieldset` an `id` and `data-stillmade-share` so teammates see the same pick. |
61
61
  | `sm-field`, `sm-fields` | One short setting on one row, its label beside the control; a responsive group of them. On a phone the control wraps under its label only when both do not fit. A textarea, picture choices, file tiles or a list keep the label above. |
62
62
  | `sm-settings` | Short settings side by side, each label beside its control; a narrow cell wraps the control under its label. |
63
63
  | `sm-list` | Many items, one line each: a thumbnail, one line of text, a short fact. An item that opens in place is an `li` holding a `details`. `data-peek` shows three on a phone, with a last `li.sm-list-more` button that sets `data-open`. |
@@ -67,7 +67,8 @@ piece in Light, Dark and White.
67
67
  | `sm-more` | A closed `<details>` for secondary settings. |
68
68
  | `sm-hint` | A closed `<details>` info toggle for an explanation that might help. |
69
69
  | `sm-gallery` | A grid of results or media. `data-size="small"` for input files: more tiles per row as the screen widens. |
70
- | `sm-glyph` | A small icon in `currentColor`: `play`, `pause`, `plus`, `close`, `check`, `chevron`, `upload`, `image`, `video`, `audio`, `text`, `spark`, `info`, `warning`, `spinner`. Works in standard views, which cannot use SVG. |
70
+ | `sm-media-off` | A picture or clip that cannot show here (on another device, or it did not open): a quiet tile in its own shape (`--sm-photo-ratio`, the tile's shape in a gallery) holding the `image-off` glyph, the reason in `aria-label` and `title`, no words inside. |
71
+ | `sm-glyph` | A small icon in `currentColor`: `play`, `pause`, `plus`, `close`, `check`, `chevron`, `upload`, `image`, `image-off`, `video`, `audio`, `text`, `spark`, `info`, `warning`, `spinner`. Works in standard views, which cannot use SVG. |
71
72
 
72
73
  **Function first.** When the person building a Block does not ask for a look,
73
74
  use the kit as is: they want it to work and be easy to use. When they name a
@@ -83,8 +84,9 @@ designs keep `appearance: "original"`.
83
84
  | might help some people (what a setting does, a format limit) | Put them in a closed `sm-hint`, or secondary settings in a closed `sm-more`. |
84
85
  | report an error, a spending approval, a stale input or a destructive step | Keep them visible, in few words. Say what to do next. |
85
86
 
86
- Buttons say the action in one to three words ("Make it", "Export"). Status says
87
- the state in one to four words ("Making", "Ready", "Needs approval").
87
+ Buttons say the action in the job's words, one to four of them ("Plan the tour",
88
+ "Make 6 clips", "Export"), never "Make it". Status says the state in one to four
89
+ words ("Making the clip", "Ready", "Needs approval").
88
90
 
89
91
  The button that makes something names what it makes ("Write", "Generate image",
90
92
  "Make video"), never "Run", "Run step", "Submit" or "Review cost", and says the
@@ -98,7 +100,56 @@ the same single priced button. Pressing a priced button runs at that price; a
98
100
  confirmation appears only when the server's price is higher than the one shown.
99
101
  Do not write credit numbers in the Block.
100
102
 
101
- ## 3. Rules
103
+ ## 3. Speak the job
104
+
105
+ These are StillMade's defaults for every Block, and they apply wherever the
106
+ person or the creator has not asked for something else. What they ask for wins.
107
+
108
+ - **The job's words everywhere.** Bringing ("Your listing photos"), starting
109
+ ("Plan the tour"), working ("Moving through the kitchen, 4 of 9 rooms"),
110
+ done ("Your tour · 44 s") and problems ("No bathroom photo. Guests look for
111
+ one." with Add photo beside it). Never "Make it", "Run", "Submit",
112
+ "Process", "Processing", "Output" or "Result".
113
+ - **Name the Step's button in `manifest.action`**:
114
+ `{"label":"Plan the tour","running":"Planning the tour…"}`. StillMade adds the
115
+ price ("Plan the tour · 1 credit"). A picture, video or sound made with AI
116
+ starts with Generate and says what ("Generate tour", "Generate voiceover");
117
+ cutting or rendering the person's own media says Make ("Make 6 clips").
118
+ Bare "Generate" or "Make" is not enough.
119
+ - **The main button stands out.** One solid `sm-primary` per screen, in the
120
+ kit's ink, never restyled to the page's background or a ghost outline; every
121
+ other button is `sm-quiet` or an `sm-icon`. Close is an X icon, not the word.
122
+ - **Quiet.** At most one line of guidance on a screen, only where the next
123
+ move is not obvious. No welcome text, tips under fields, tours or banners.
124
+ Anything more goes in the input's `description`, which StillMade shows
125
+ behind an (i).
126
+ - **Say nothing about how the Block works.** No notes on where it runs (this
127
+ device, StillMade Desktop, the cloud), saving, syncing, recovery, accounts,
128
+ credits or where a file is kept: StillMade says what a person needs, as one
129
+ short notification, or nothing. Never a sentence on the page, and never the
130
+ same line under each item.
131
+ - **References fill your inputs.** Every drop area in StillMade offers "Use a
132
+ reference": the person's saved photos, videos and notes fill the Step's
133
+ fields with no typing. Media inputs fill by kind, so take `video` or `asset`
134
+ wherever a clip works as well as a photo. Text inputs fill by their name and
135
+ label: name them plainly (`productName`, `website`, `brandColors`, `fonts`,
136
+ `voice`), and give the one that takes a reference's note a name such as
137
+ `details`, `notes` or `listingDetails`; when a note has to be split across
138
+ several fields StillMade does it free. Never build your own reference
139
+ picker or library upload.
140
+ - **Days and times are picked, never typed.** Use the `date` type. StillMade
141
+ shows a calendar, and a list of times as well when the input is about a time
142
+ (a name such as `postAt` or `startsAt`, a label with Time, When or Starts, or
143
+ a value with a time). In a custom view use `<input type="date">` or
144
+ `type="datetime-local"`, never a text box for a date.
145
+ - **Posting is its own Step.** Sending a result to Instagram, TikTok, email or
146
+ any app is a connector Step after the Block, and StillMade words its button
147
+ ("Post to Instagram"). A Block never posts from inside itself.
148
+ - **Chat can do all of it.** Every button carries `data-stillmade-action`
149
+ naming what it does and every field a label, so the project's Chat can press
150
+ and fill them.
151
+
152
+ ## 4. Rules
102
153
 
103
154
  These are requirements for every author, person or model. Not all are checked
104
155
  automatically. An explicit request from the person can authorize a named
@@ -150,7 +201,16 @@ exception, never unrelated technical UI.
150
201
  within reach. Extra width goes to the result, never to wider text
151
202
  fields. Before there is a result, the stage previews what will be made
152
203
  from the inputs given so far, not an empty box. `data-layout="stack"`
153
- keeps one column.
204
+ keeps one column. StillMade zooms a view to fill its space and centers a
205
+ standard view narrower than its Step (by its margins only, so a margin
206
+ the view sets wins). An app that lays itself out (full-size canvas or
207
+ WebGL, its own scroll, pan or zoom, its own Ctrl/Cmd +/- keys) puts
208
+ `data-stillmade-layout="own"` on its outermost element, and StillMade
209
+ then never centers, zooms or takes those keys. StillMade plays every
210
+ `<video controls>` in its own player with full screen, and puts a
211
+ full-screen button on result pictures in `sm-stage` or `sm-gallery` and
212
+ on anything marked `data-stillmade-expand`; a `<video>` without
213
+ `controls` is the Block's own and is never touched.
154
214
  17. Settings sit side by side, next to what they change. Short settings are
155
215
  an `sm-settings` grid, and three or four short options (Low / Med /
156
216
  High, 16:9 / 9:16 / 1:1) are one `data-segmented` row, not big tiles.
@@ -165,8 +225,24 @@ exception, never unrelated technical UI.
165
225
  20. Nothing is lost when a Block gets smaller. Every control stays on the
166
226
  screen, behind an (i), in `sm-more`, or inside the item it belongs to.
167
227
  Compacting moves controls; it never deletes them.
228
+ 21. A picked option reads at a glance. The kit fills an `sm-choices` pick with
229
+ its ink (`--fg` behind `--bg` words, the same inversion as every
230
+ segmented control in StillMade); never restyle it to an outline, a tint or
231
+ the page's background. A locked row (`disabled`, or a person who can only
232
+ view) keeps its pick filled, fades the other options and does not react to
233
+ the pointer.
234
+ 22. Media that cannot show here (kept on another device, or it did not open)
235
+ keeps its place as a quiet `sm-media-off` tile in its own shape with the
236
+ `image-off` glyph, the reason in its `aria-label` and `title`. Never words
237
+ in its place:
238
+
239
+ ```html
240
+ <span class="sm-media-off" role="img" aria-label="On another device" title="On another device" style="--sm-photo-ratio:3/2">
241
+ <span class="sm-glyph" data-glyph="image-off" aria-hidden="true"></span>
242
+ </span>
243
+ ```
168
244
 
169
- ## 4. What StillMade checks
245
+ ## 5. What StillMade checks
170
246
 
171
247
  - Admission rejects a primary textarea of 12 or more rows when no task
172
248
  presentation (stage, media, list or `StillMade.render`) is detected
@@ -190,6 +266,17 @@ exception, never unrelated technical UI.
190
266
  (`blockKitProblems`; the failing rules are `BLOCK_KIT_READINESS_RULES`). StillMade's own Block builder also sends back a custom
191
267
  view that is not built from `sm-block`, unless the person asked for their
192
268
  own look (`appearance: "original"`).
269
+ - Admission warns, and readiness lists a "Wording" limitation, when a button
270
+ says "Make it", "Generate", "Create", "Process" or "Do it"; when progress
271
+ says "Processing", "Loading" or "Working"; when a visible line explains where
272
+ the Block runs or how it saves; when a date is typed into a text box; when
273
+ the CSS turns `sm-primary` into a background-coloured button; when the CSS
274
+ takes the ink fill off a pick (`.sm-choices label:has(input:checked)` with a
275
+ transparent or page-coloured background, or the ink as its text colour); and
276
+ when the page or a string in its code says where a file is kept ("Only on
277
+ this device", "Not on this device"). Clear
278
+ every one before you hand the Block back, unless the person asked for those
279
+ words. They never refuse a release.
193
280
  - The host supplies the Project Type step bar and omits its own title and frame
194
281
  around custom views, and does not add a "Technical result" disclosure.
195
282
  - HTML, JavaScript, permission and appearance validation are separate checks.
package/MOBILE_UI.md CHANGED
@@ -37,7 +37,9 @@ still owns specialized workspace layout. A 320 CSS-pixel phone viewport leaves
37
37
  less than 320 pixels inside the host's preview gutters. Size from the embedded
38
38
  view's actual container, avoid a 320-pixel minimum width, wrap long labels, and
39
39
  isolate intentional canvas/timeline panning from
40
- the surrounding toolbar. Provide visible buttons or menus for actions otherwise
40
+ the surrounding toolbar. A `<video controls>` gets StillMade's player, whose
41
+ 44-pixel controls a tap shows for 3 seconds (a first tap never starts playback),
42
+ and a result picture's full-screen button shows for 3 seconds after a tap on it. Provide visible buttons or menus for actions otherwise
41
43
  available by hover, drag, right-click, or keyboard shortcut. Label fields and
42
44
  announce loading, errors, and completed output with `role="status"`,
43
45
  `role="alert"`, or `aria-live` as appropriate. For deterministic custom-view
package/PASTE_TO_LLM.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  <!-- builder-contract:start (generated by npm run build:sdk; do not edit) -->
4
4
 
5
- ## Block builder contract (stillmade.block-builder@1.11.0)
5
+ ## Block builder contract (stillmade.block-builder@1.16.0)
6
6
 
7
- Contract `stillmade.block-builder@1.11.0`. Humans, coding agents, imported source, GitHub repositories and generated code all adapt to the Block platform; anything that becomes a StillMade Block obeys this contract.
7
+ Contract `stillmade.block-builder@1.16.0`. Humans, coding agents, imported source, GitHub repositories and generated code all adapt to the Block platform; anything that becomes a StillMade Block obeys this contract.
8
8
 
9
9
  ### Source of truth
10
10
 
@@ -62,9 +62,17 @@ Never make a Block look functional through hard-coded local paths, developer-mac
62
62
 
63
63
  Give the Block a short, plain name of 40 characters or fewer that says what it does ("Captioned Clip", not "Captioned Business Clip Generator With Review"). The name appears in step bars, Project Type cards and pickers, so put the detail in the description instead. New releases with a longer name do not pass readiness.
64
64
 
65
+ ### Name inputs in the job's words
66
+
67
+ Name each input for what the person brings, in the job's words: `sermonVideo` for a sermon clip Block, `listingPhotos` for a listing, `lessonSlides` for a lesson podcast. StillMade titles the input from that name ("Sermon video") and words its drop area from it ("Drop your sermon video here", the formats, "Choose a video"), in StillMade and the SDK preview, so never draw your own upload box for an input. Keep a bare type name (`video`, `file`) only when any file of that kind does the job. The `description` says what makes a good one.
68
+
69
+ ### Speak the job
70
+
71
+ These are StillMade's defaults: unless the person or the creator asked for something else, every screen speaks the job in its own words and adds nothing else. `manifest.action` names the Step's button, {label:"Plan the tour", running:"Planning the tour…"}, and StillMade adds the price ("Plan the tour · 1 credit"). When the Block makes a picture, video or sound with AI the label starts with Generate and says what ("Generate tour", "Generate voiceover"); one that cuts or renders the person's own media says Make ("Make 6 clips"); never "Make it", "Run", "Submit", "Process" or a bare "Generate". The main button stands out: one solid `sm-primary` in the kit's ink, never restyled to the background; everything else is `sm-quiet` or an `sm-icon`, and close is an X icon. Report progress in the job's units with `stillmade.progress(fraction, label)` ("Moving through the kitchen, 4 of 9 rooms"), never "Processing". Head the result in the job's words ("9 rooms", "Your tour · 44 s"), never "Output". Say a problem in one line with its fix beside it ("No bathroom photo. Guests look for one." and Add photo). Stay quiet: no welcome text, tips under fields, tours or banners, and at most one line of guidance on a screen, only where the next move is not obvious; anything more goes in the input's `description`, which StillMade shows behind an (i). Say nothing about how the Block works (where it runs, saving, syncing, recovery, accounts, credits) or where a file is kept: StillMade tells the person what they need as one short notification, or nothing; never a sentence on the page, and never the same line under each item. Every drop area offers "Use a reference", which fills the Step from the person's saved photos, videos and notes: media inputs fill by kind, so take `video` or `asset` where a clip works as well as a photo, and text inputs fill by plain names and labels (`productName`, `website`, `brandColors`, `fonts`, `voice`, and `details` or `notes` for the reference's note); never build your own reference picker. Days and times are picked, never typed: use the `date` type, which StillMade shows as a calendar, with a list of times when the input is about a time (`postAt`, `startsAt`); a custom view uses `<input type="date">` or `type="datetime-local"`. Posting is a connector Step of its own, and StillMade words its button from the app and action ("Post to Instagram"). Before handing the Block back, clear every Wording note that `gate` and readiness list, unless the person asked for those words.
72
+
65
73
  ### Interface
66
74
 
67
- If the capability needs UI, use the Block UI SDK: generated `manifest.ui` controls first; a sandboxed custom view (`view.html`/`view.css`/`view.js`) only when the core interaction needs one. Build custom views from the Block kit the host injects (`block-kit.css`): the result in `sm-stage`, picks as pictures in `sm-choices`, one `sm-primary` naming the action (Write, Generate; never "Run") and no price (StillMade's run button adds it), extras in a closed `sm-more`; a look the person names wins. Fit one laptop screen without scrolling: label beside control, status in a few words, files as tiles, rare tools as icons, (i) on unclear controls. These compact rules are for a job or an ingredient. Size the view to the Block's tier (block-tier.js): an app, a workspace a person works in for a while (video editor, 3D configurator, CAD or drawing tool), looks and works like that kind of app instead of a compact page: its canvas or stage fills the view, with the panels, toolbars, inspector or timeline such an app has, direct manipulation (select, drag, zoom), keyboard shortcuts and undo; it keeps the host appearance and Block kit controls, its panels may scroll, and on a phone its tools fold into sheets while the canvas stays usable. Never shrink an app into a form of fields and one button. Drop words nobody needs; put helpful ones in a closed `sm-hint`. Mark each button `data-stillmade-action="what it does"` and label each field: Chat presses and fills them. Expose the capability, not the implementation: sensible defaults, previews, progress, clear errors, visible outputs. Show no raw JSON, internal IDs, filesystem details, provider terms or developer settings unless the Block is a developer tool. When a person chooses among options they need to hear or see (voices, music, fonts, looks, templates, images), let them preview each option before choosing: a sample or thumbnail from the Block's own files or the host's free samples, never a paid generation. Skip previews only when there is nothing to preview. Choices StillMade owns (voices, models in the run review) already show samples. Follow the host appearance (Light, Dark and White) and one elastic layout: stacked on a 320px phone with no sideways scroll (result first, action pinned), and from 860px the controls left (≤380px), the result filling the right. Short settings sit side by side, each label beside its control (`sm-field`, `sm-settings`; three or four short options as one `data-segmented` row); many items are one line each (`sm-list`) that open in place; input files are small tiles (`sm-gallery data-size="small"`); on a phone chip rows scroll sideways and long lists show three. Compacting moves controls, never deletes them.
75
+ If the capability needs UI, use the Block UI SDK: generated `manifest.ui` controls first; a sandboxed custom view (`view.html`/`view.css`/`view.js`) only when the core interaction needs one. Build custom views from the Block kit the host injects (`block-kit.css`): the result in `sm-stage`, picks as pictures in `sm-choices`, the picked one in the kit's ink fill (never restyled to an outline, a tint or the page's background) so it reads at a glance, one solid `sm-primary` naming the action in the job's words ("Plan the tour", "Generate voiceover"; never "Run" or "Make it") and no price (StillMade's run button adds it), extras in a closed `sm-more`; a look the person names wins. Fit one laptop screen without scrolling: label beside control, status in a few words, files as tiles, rare tools as icons, (i) on unclear controls. These compact rules are for a job or an ingredient. Size the view to the Block's tier (block-tier.js): an app, a workspace a person works in for a while (video editor, 3D configurator, CAD or drawing tool), looks and works like that kind of app instead of a compact page: its canvas or stage fills the view, with the panels, toolbars, inspector or timeline such an app has, direct manipulation (select, drag, zoom), keyboard shortcuts and undo; it keeps the host appearance and Block kit controls, its panels may scroll, and on a phone its tools fold into sheets while the canvas stays usable. Never shrink an app into a form of fields and one button. StillMade centers a standard view narrower than its Step and zooms a view to fill its space; an app that lays itself out (full-size canvas or WebGL, its own scroll, pan or zoom, its own Ctrl/Cmd +/- keys) puts `data-stillmade-layout="own"` on its outermost element, and StillMade then never centers, zooms or takes those keys. StillMade draws one player for every `<video controls>` (play, timeline, time, sound and full screen, shown while the pointer is on the video, with keys and touch) and a full-screen button on result pictures in `sm-stage` or `sm-gallery` and on any element marked `data-stillmade-expand` (the same value makes one set of pictures, `off` removes it); `data-stillmade-player="native"` keeps the browser's controls, and a `<video>` without `controls` is the Block's own and is never touched. A picture or clip that cannot show here (kept on another device, or it did not open) keeps its place as a quiet `sm-media-off` tile in its own shape with the `image-off` glyph and the reason in its label, never words in its place. Drop words nobody needs; put helpful ones in a closed `sm-hint`. Mark each button `data-stillmade-action="what it does"` and label each field: Chat presses and fills them. Expose the capability, not the implementation: sensible defaults, previews, progress, clear errors, visible outputs. Show no raw JSON, internal IDs, filesystem details, provider terms or developer settings unless the Block is a developer tool. When a person chooses among options they need to hear or see (voices, music, fonts, looks, templates, images), let them preview each option before choosing: a sample or thumbnail from the Block's own files or the host's free samples, never a paid generation. Skip previews only when there is nothing to preview. Choices StillMade owns (voices, models in the run review) already show samples. Follow the host appearance (Light, Dark and White) and one elastic layout: stacked on a 320px phone with no sideways scroll (result first, action pinned), and from 860px the controls left (≤380px), the result filling the right. Short settings sit side by side, each label beside its control (`sm-field`, `sm-settings`; three or four short options as one `data-segmented` row); many items are one line each (`sm-list`) that open in place; input files are small tiles (`sm-gallery data-size="small"`); on a phone chip rows scroll sideways and long lists show three. Compacting moves controls, never deletes them.
68
76
 
69
77
  ### Shared editing
70
78
 
@@ -234,7 +242,7 @@ Optional custom view interfaces are supported, but generated manifest.ui control
234
242
 
235
243
  *When:* StillMade's builder adds this section when the person asks for an interface, preview or controls, or refines a Block that has one.
236
244
 
237
- A custom interface is the optional package-level view:{html,css?,themedCss?,javascript?}; when refining, preserve and refine base.view. Design it by StillMade's interface principles, in order: Function first: unless the person asks for a design direction, build from the Block kit (`sm-block`, `sm-stage`, `sm-choices`, `sm-actions`, `sm-more`) and ship little or no CSS of your own. A direction the person names wins over the kit. Show the thing being made: the preview, media or result gets the largest area (`sm-stage`). A picture or clip the Block makes fills it in its own shape, as large as fits; several fill it as a grid, each big enough to watch. Small tiles are for the files a person gives the Block, never for what it makes. Never a JSON dump, source editor, manifest or diagnostic panel unless the task is about source. One obvious next action (`sm-primary`); peers are quiet buttons or named icons. Seven or fewer choices in view. The action button names what it does ("Write", "Generate image", "Make video"), never "Run", "Run step", "Submit" or "Review cost". Show no credit numbers: StillMade puts the price beside the verb on its own run button ("Write · 1 credit"), with a chip for the model, quality or count when they can change. Pressing it runs at that price; a confirmation appears only when the server price is higher. Pictures over words: choices people see or hear are thumbnails, swatches, samples or glyphs (`sm-choices`), not word lists. Icons carry an accessible name and tooltip; never emoji. Words only when needed. Drop what nobody needs to finish the task (intros, "how it works", restating the Block name). Words that might help start collapsed (`sm-hint`, `sm-more`). Errors, spending approvals, stale inputs and destructive steps stay visible, in few words. Strong defaults; secondary settings go in `sm-more`, closed. Compact: the whole Block fits one laptop screen without scrolling. A short setting is one row, its label beside the control; no card around a single control. Status is a dot or a few words ("No narration yet"), never a paragraph; the reason sits behind an `sm-hint`. Files are tiles: a saved file is a thumbnail or chip and adding one is a + tile. Never the bare browser file picker, and no size limits in view until a file is too big. Rare tools (update, schedule, history, reload) are named icon buttons beside the action, never sections under the work. An (i) beside anything a newcomer could misread: a setting, status or number whose effect is not obvious from its label gets a closed `sm-hint` with one or two sentences. Give every input that needs one a `description`; StillMade shows it as that (i). Obvious controls get none. One workspace: no cards inside cards, no second title, step counter or Back/Next bar; the host owns navigation. Status sits beside the action it describes (`sm-status`), in a few words. Keep the page in normal scroll flow; no sticky media or control strips unless the editing task needs them. Use the width: from 860px wide the kit puts the controls on the left at a reading width (300–380px) and the result (`sm-stage`) fills the right, in its real shape; under that everything stacks with the result first and the action within reach. Extra width goes to the result, never to wider text fields. Before there is a result, the stage previews what will be made from the inputs. `data-layout="stack"` opts out. Size with the kit, never fixed sizes: no fixed pixel widths or heights for the workspace or stage, no 100vh, no position:fixed panels. StillMade zooms a Block's screen to fill the space it has (up to 150%, never down to a phone layout on a computer), so a Block laid out with the kit's spacing fills its Step without empty space. Settings sit side by side (`sm-settings`), next to what they change. Three or four short options are one segmented row (`data-segmented`), not a row of big tiles. Lists fill the width at a small size: input files are small tiles (`sm-gallery data-size="small"`), many items are one line each (`sm-list`): a thumbnail, one line of text, a short fact. Tapping an item opens all of its fields in place. Extra width means more items per row, never bigger cards. On a phone chip and segment rows scroll sideways instead of wrapping; long lists show their first three with "N more" (`data-peek`) and long text five lines until tapped (`sm-clamp`). Nothing is lost when a Block gets smaller: every control stays on the screen, behind an (i), in `sm-more`, or inside the item it belongs to. Compacting moves controls; it never deletes them. Text scene descriptions are planning notes, never a storyboard or an approved frame. Its DOM controller is separate from manifest runtime code. The view may also declare appearance:"original" or "host". For an imported design, preserve its colors with appearance:"original" and view.css; no themed replacement is required. Preserve base.view.appearance when refining unless the user requests a change. Omitted/host appearance retains the existing Light, Dark and White requirement: supply semantic colors in view.css or a complete replacement view.themedCss. An original-style view may optionally supply valid themedCss for a StillMade appearance preview. Use StillMade variables (--bg,--fg,--fg-muted,--border-tok,--r-3) only when opting into host styling; do not redefine host tokens in the themed variant. Appearance never relaxes sandbox constraints: no CSS escapes/filters/blending, imports/url(), or element.style mutations in JS. Use classes for UI state; media pixels retain their colors. Both CSS fields have the same 32 KiB limit; all existing shared-state, security and permission checks still apply. Declare elements in html, bind with document.getElementById/querySelector and addEventListener; use literal property access, array methods, textContent, input.value, button.disabled and canvas. Initial values: StillMade.onInput(values=>{...}); await StillMade.run(inputBindings) returns validated output bindings from the isolated package runtime; catch errors and show results. No computation in the DOM controller; put it in code/recipe. Disable the action button while pending.
245
+ A custom interface is the optional package-level view:{html,css?,themedCss?,javascript?}; when refining, preserve and refine base.view. Design it by StillMade's interface principles, in order: Function first: unless the person asks for a design direction, build from the Block kit (`sm-block`, `sm-stage`, `sm-choices`, `sm-actions`, `sm-more`) and ship little or no CSS of your own. A direction the person names wins over the kit. Show the thing being made: the preview, media or result gets the largest area (`sm-stage`). A picture or clip the Block makes fills it in its own shape, as large as fits; several fill it as a grid, each big enough to watch. Small tiles are for the files a person gives the Block, never for what it makes. A clip is a `<video controls>`, which StillMade plays in its own player with full screen, and a picture in `sm-stage` or `sm-gallery` (or marked `data-stillmade-expand`) gets StillMade's full-screen button; leave out `controls` only when the Block drives playback itself. Never a JSON dump, source editor, manifest or diagnostic panel unless the task is about source. One obvious next action: one solid `sm-primary` in the kit's ink, never restyled to the background or a ghost outline; peers are `sm-quiet` buttons or named icons, and close is an X icon. Seven or fewer choices in view. Speak the job unless the person or creator asks otherwise. The action button names what it does in the job's words (`manifest.action`: "Plan the tour"; AI pictures, video and sound start with Generate and say what, the person's own media cut or rendered says Make: "Generate voiceover", "Make 6 clips"), never "Make it", "Run", "Run step", "Submit", "Process" or a bare "Generate"; progress counts the job's units ("4 of 9 rooms"), never "Processing"; results and problems use its words in one line. Show no credit numbers: StillMade puts the price beside the verb on its own run button ("Write · 1 credit"), with a chip for the model, quality or count when they can change. Pressing it runs at that price; a confirmation appears only when the server price is higher than the one shown. Pictures over words: choices people see or hear are thumbnails, swatches, samples or glyphs (`sm-choices`), not word lists. Icons carry an accessible name and tooltip; never emoji. A picked option reads at a glance: keep the kit's ink fill on an `sm-choices` pick, never restyled to an outline, a tint or the page's background. Media that cannot show here (on another device, or it did not open) keeps its place as a quiet `sm-media-off` tile in its own shape, never words in its place. Words only when needed. Drop what nobody needs to finish the task (intros, "how it works", restating the Block name). Words that might help start collapsed (`sm-hint`, `sm-more`). Errors, spending approvals, stale inputs and destructive steps stay visible, in few words. Strong defaults; secondary settings go in `sm-more`, closed. Compact: the whole Block fits one laptop screen without scrolling. A short setting is one row, its label beside the control; no card around a single control. Status is a dot or a few words ("No narration yet"), never a paragraph; the reason sits behind an `sm-hint`. Files are tiles: a saved file is a thumbnail or chip and adding one is a + tile. Never the bare browser file picker, and no size limits in view until a file is too big. Rare tools (update, schedule, history, reload) are named icon buttons beside the action, never sections under the work. An (i) beside anything a newcomer could misread: a setting, status or number whose effect is not obvious from its label gets a closed `sm-hint` with one or two sentences. Give every input that needs one a `description`; StillMade shows it as that (i). Obvious controls get none. One workspace: no cards inside cards, no second title, step counter or Back/Next bar; the host owns navigation. Status sits beside the action it describes (`sm-status`), in a few words. Keep the page in normal scroll flow; no sticky media or control strips unless the editing task needs them. Use the width: from 860px wide the kit puts the controls on the left at a reading width (300–380px) and the result (`sm-stage`) fills the right, in its real shape; under that everything stacks with the result first and the action within reach. Extra width goes to the result, never to wider text fields. Before there is a result, the stage previews what will be made from the inputs. `data-layout="stack"` opts out. Size with the kit, never fixed sizes: no fixed pixel widths or heights for the workspace or stage, no 100vh, no position:fixed panels. StillMade zooms a Block's screen to fill the space it has (up to 150%, never down to a phone layout on a computer), so a Block laid out with the kit's spacing fills its Step without empty space, and it centers a standard view narrower than its Step. An app that lays itself out (full-size canvas or WebGL, its own scroll, pan or zoom, its own Ctrl/Cmd +/- keys) puts `data-stillmade-layout="own"` on its outermost element, and StillMade then never centers, zooms or takes those keys. Settings sit side by side (`sm-settings`), next to what they change. Three or four short options are one segmented row (`data-segmented`), not a row of big tiles. Lists fill the width at a small size: input files are small tiles (`sm-gallery data-size="small"`), many items are one line each (`sm-list`): a thumbnail, one line of text, a short fact. Tapping an item opens all of its fields in place. Extra width means more items per row, never bigger cards. On a phone chip and segment rows scroll sideways instead of wrapping; long lists show their first three with "N more" (`data-peek`) and long text five lines until tapped (`sm-clamp`). Nothing is lost when a Block gets smaller: every control stays on the screen, behind an (i), in `sm-more`, or inside the item it belongs to. Compacting moves controls; it never deletes them. Text scene descriptions are planning notes, never a storyboard or an approved frame. Say nothing about how the Block works: no notes on where it runs (this device, StillMade Desktop, the cloud), saving, syncing, recovery, accounts, credits or where a file is kept. StillMade tells the person what they need as one short notification, or nothing; never a sentence on the page, and never the same line under each item. References fill your inputs: every drop area in StillMade offers "Use a reference", and the person's saved photos, videos and notes fill the Step with no typing. Media inputs fill by kind, so take `video` or `asset` wherever a clip works as well as a photo; text inputs fill by plain names and labels (`productName`, `website`, `brandColors`, `fonts`, `voice`, and `details` or `notes` for the reference's note). Never build your own reference picker or library upload. Days and times are picked, never typed: a `date` input is a calendar, with a list of times when it is about a time (`postAt`, `startsAt`, a label with Time, When or Starts). In a custom view use `<input type="date">` or `type="datetime-local"`, never a text box for a date. Posting is its own Step: sending a result to Instagram, TikTok, email or any app is a connector Step after the Block, worded by StillMade ("Post to Instagram"). A Block never posts from inside itself. Its DOM controller is separate from manifest runtime code. The view may also declare appearance:"original" or "host". For an imported design, preserve its colors with appearance:"original" and view.css; no themed replacement is required. Preserve base.view.appearance when refining unless the user requests a change. Omitted/host appearance retains the existing Light, Dark and White requirement: supply semantic colors in view.css or a complete replacement view.themedCss. An original-style view may optionally supply valid themedCss for a StillMade appearance preview. Use StillMade variables (--bg,--fg,--fg-muted,--border-tok,--r-3) only when opting into host styling; do not redefine host tokens in the themed variant. Appearance never relaxes sandbox constraints: no CSS escapes/filters/blending, imports/url(), or element.style mutations in JS. Use classes for UI state; media pixels retain their colors. Both CSS fields have the same 32 KiB limit; all existing shared-state, security and permission checks still apply. Declare elements in html, bind with document.getElementById/querySelector and addEventListener; use literal property access, array methods, textContent, input.value, button.disabled and canvas. Initial values: StillMade.onInput(values=>{...}); await StillMade.run(inputBindings) returns validated output bindings from the isolated package runtime; catch errors and show results. No computation in the DOM controller; put it in code/recipe. Disable the action button while pending.
238
246
  Standard custom view code (no `view.config.json` frame runtime) is checked before it runs. These rules come straight from the validator; frame views run in their own sandbox and may build the page with ordinary DOM calls such as `createElement`:
239
247
 
240
248
  - **HTML elements:** only `div`, `section`, `article`, `header`, `footer`, `main`, `aside`, `nav`, `h1`, `h2`, `h3`, `h4`, `p`, `span`, `strong`, `em`, `i`, `small`, `br`, `hr`, `label`, `input`, `textarea`, `button`, `select`, `option`, `optgroup`, `fieldset`, `legend`, `output`, `progress`, `meter`, `ul`, `ol`, `li`, `dl`, `dt`, `dd`, `figure`, `figcaption`, `img`, `video`, `audio`, `source`, `canvas`, `table`, `thead`, `tbody`, `tfoot`, `tr`, `th`, `td`, `pre`, `code`, `details`, `summary`. No scripts, iframes, SVG, forms, comments or inline event attributes; media URLs must be `data:` or `blob:`.
@@ -926,7 +934,8 @@ exact permission, such as `context.versions.read`.
926
934
  `ui` is an array of `{ "control": "...", "port": "inputName" }` objects.
927
935
  Control must be one of `text`, `number`, `slider`, `checkbox`, `asset`, `select`,
928
936
  `multiselect`, `file`, `date`, `color`, `url`, `richtext`, `list` or `grid`, bound to an
929
- existing input. Labels come from port names/descriptions. For a numeric slider,
937
+ existing input. A field's label is its `ui` entry's `label` when given, in the job's
938
+ words ("When to post"), else its port name; its (i) is the port's `description`. For a numeric slider,
930
939
  give its input `type`, `min`, `max`, and `default`. Use `asset` for an image input.
931
940
  For a custom visual interface, add the optional `view` object below. Do not supply React components, external dependencies, or a hosted UI URL.
932
941