stillmade-sdk 0.1.40 → 0.1.42

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 (63) hide show
  1. package/.stillmade/sdk-baseline.json +19 -19
  2. package/AGENTS.md +6 -2
  3. package/FRAME_VIEWS.md +41 -0
  4. package/INTERFACE_DESIGN.md +100 -8
  5. package/MOBILE_UI.md +3 -1
  6. package/PASTE_TO_LLM.md +18 -13
  7. package/SDK.md +200 -37
  8. package/UI_AESTHETIC.md +93 -4
  9. package/examples/check-clip.stillmade.json +4 -0
  10. package/examples/clean-text.stillmade.json +4 -0
  11. package/examples/custom-interface.stillmade.json +4 -0
  12. package/examples/describe-image.stillmade.json +4 -0
  13. package/examples/foley-cue.stillmade.json +4 -0
  14. package/examples/generate-image.stillmade.json +4 -0
  15. package/examples/generate-video.stillmade.json +4 -0
  16. package/examples/module-word-stats/stillmade.block.json +4 -0
  17. package/examples/narrate-script.stillmade.json +4 -0
  18. package/examples/numbered-takes.stillmade.json +4 -0
  19. package/examples/research-topic.stillmade.json +4 -0
  20. package/examples/score-a-scene.stillmade.json +4 -0
  21. package/examples/script-draft.stillmade.json +4 -0
  22. package/examples/summarize-page.stillmade.json +4 -0
  23. package/examples/text-workflow.stillmade.json +4 -0
  24. package/examples/thicken-lines.stillmade.json +4 -0
  25. package/examples/timeline-polish.stillmade.json +4 -0
  26. package/examples/transcribe-audio.stillmade.json +4 -0
  27. package/examples/word-count.stillmade.json +4 -0
  28. package/package.json +1 -1
  29. package/packages/block-cli/dev-host/assets/host.js +208 -37
  30. package/packages/block-cli/dev-host/assets/index.css +1 -1
  31. package/packages/block-cli/ready-gate.js +4 -0
  32. package/packages/block-cli/templates.js +7 -7
  33. package/packages/block-platform/block-readiness.js +24 -2
  34. package/packages/block-platform/canvas.js +17 -0
  35. package/packages/block-platform/catalog.js +21 -6
  36. package/packages/block-platform/host-release-manifests.js +95 -0
  37. package/packages/block-platform/native-host-inventory.js +29 -4
  38. package/packages/block-platform/node-defaults.js +1 -0
  39. package/packages/block-platform/project-context.js +1 -1
  40. package/packages/block-platform/script-handoff.js +1 -1
  41. package/packages/block-platform/step-groups.js +3 -1
  42. package/packages/block-sdk/audio-generation-example.js +2 -2
  43. package/packages/block-sdk/builder-contract.js +15 -4
  44. package/packages/block-sdk/capability-example.js +1 -1
  45. package/packages/block-sdk/contracts.js +3 -1
  46. package/packages/block-sdk/examples.js +3 -3
  47. package/packages/block-sdk/image-description-example.js +1 -1
  48. package/packages/block-sdk/image-generation-example.js +1 -1
  49. package/packages/block-sdk/index.d.ts +2 -2
  50. package/packages/block-sdk/media-analysis-example.js +1 -1
  51. package/packages/block-sdk/module-example.js +1 -1
  52. package/packages/block-sdk/speech-example.js +1 -1
  53. package/packages/block-sdk/state-example.js +1 -1
  54. package/packages/block-sdk/timeline-proposal-example.js +1 -1
  55. package/packages/block-sdk/transcription-example.js +1 -1
  56. package/packages/block-sdk/trigger-examples.js +2 -2
  57. package/packages/block-sdk/video-generation-example.js +1 -1
  58. package/packages/block-sdk/view-design.js +119 -18
  59. package/packages/block-sdk/web-example.js +2 -2
  60. package/packages/block-sdk/workspace-navigation.js +6 -2
  61. package/packages/design-system/block-kit.css +33 -6
  62. package/packages/design-system/block-kit.html +14 -4
  63. package/packages/design-system/theme.css +6 -5
package/UI_AESTHETIC.md CHANGED
@@ -209,6 +209,12 @@ before/after examples from an Image Panels project (Voiceover 1,210 px to about
209
209
 
210
210
  - Label and control on one row. No label stacked above a short control, no card
211
211
  around a single control, no help line under every field.
212
+ - Sections stand apart (November 3, 2026, owner: "make sure it's more
213
+ separated"). What goes in (the files), the settings and the result are separate
214
+ parts: the settings sit together on one card, the same surface as the files
215
+ card, with a hairline between rows. StillMade's Step page does this for every
216
+ Block; a Block's own screen gets it from the kit's `sm-fields` / `sm-settings`
217
+ group. Never a card inside a card.
212
218
  - Status is a dot or a few words ("No narration yet"), never a paragraph; the
213
219
  reason sits behind an info toggle.
214
220
  - Files are tiles: a saved file is a thumbnail or chip, adding one is a + tile.
@@ -239,6 +245,18 @@ before/after examples from an Image Panels project (Voiceover 1,210 px to about
239
245
  "6 more", long text shows five lines. Kit: `sm-settings`,
240
246
  `sm-choices[data-segmented]`, `sm-gallery[data-size="small"]`, `sm-list`,
241
247
  `sm-clamp`.
248
+ - A picked option reads at a glance (November 2, 2026; owner, of a Step's Kind
249
+ and Voice rows: "there is like no separation and I can't tell what's going
250
+ on"). In every choice row, chip row, picture tile and segmented control the
251
+ pick is the foreground/background inversion (`--fg` fill, `--bg` words), as
252
+ Credits & plans, the Block Builder's toolbar and the Home filters already do;
253
+ never an outline alone, a tint, or `--bg-elev-2` over `--bg-elev-1`. Hover
254
+ never paints the picked option. A locked row (view only, or while a run works)
255
+ keeps its pick filled, fades the other options and drops the hover and the
256
+ pointer cursor. When a label sits beside the options, wrapped options stay in
257
+ their own column, never under the label. Kit: `sm-choices` (Block views and
258
+ the app), the Step page (`stepWorkspaceKit.css`) and the run popover
259
+ (`sm-run-tiles`).
242
260
  - Nothing is lost when a screen gets smaller: every control stays, behind an
243
261
  (i), in a one-tap menu, or inside the item it belongs to. The dealership
244
262
  Steps with every control accounted for: `docs/ui-review/wide-steps.html`.
@@ -255,11 +273,16 @@ accessible name and a tooltip; retain visible text when the meaning would be unc
255
273
  ## Run buttons say what they do and what they cost
256
274
 
257
275
  - The button that starts a Step, Block or job never says "Run step", "Run",
258
- "Run in project" or "Review cost". It names what happens: Write, Generate,
259
- Make video, Make voiceover, Transcribe, Research, Send. While it works it says
260
- so ("Writing…") with Stop beside it; afterwards it offers the same action again.
276
+ "Run in project" or "Review cost". It names what happens: Write, Transcribe,
277
+ Research, Post to Instagram. Whatever AI makes as a picture, video or sound says
278
+ Generate, then what: "Generate image", "Generate video", "Generate voiceover"
279
+ (November 2, 2026). Media made on the device from the person's own files says
280
+ Make ("Make video", "Make 6 clips"). A Block's own `manifest.action`
281
+ ({label:"Plan the tour", running:"Planning the tour…"}) wins over these.
282
+ While it works it says so ("Writing…") with Stop beside it; afterwards it offers
283
+ the same action again.
261
284
  - When the run costs credits, the price is part of the button:
262
- "Write · 1 credit", "Generate · 28 credits". Paid with the person's own key it
285
+ "Write · 1 credit", "Generate image · 28 credits". Paid with the person's own key it
263
286
  reads "Write · your key". When the price is not known before a quote, the button
264
287
  shows only the action and the quote opens the review.
265
288
  - When the model, quality or count can change, one chip with a caret sits right
@@ -273,6 +296,72 @@ accessible name and a tooltip; retain visible text when the meaning would be unc
273
296
  - Steps use `StepRunControls` and `client/src/blocks/runAction.js` for the verb
274
297
  and price; reuse them instead of writing new run buttons.
275
298
 
299
+ ## Speak the job (November 2, 2026)
300
+
301
+ These are defaults for anything nobody specified; when the creator or the person
302
+ asks for something else, that wins. Mockups: `docs/ui-review/job-words-journeys.html`
303
+ (three Project Types end to end) and `docs/ui-review/history-modal.html`.
304
+
305
+ - Every screen says, in the job's own words, what to bring, what the button makes,
306
+ what is happening, what came back and what is off, and adds nothing else.
307
+ "Drop your listing photos here", "Plan the tour · 1 credit", "Moving through the
308
+ kitchen, 4 of 9 rooms", "Your tour · 44 s", "No bathroom photo. Guests look for
309
+ one." beside Add photo. Never "Choose file", "Run", "Processing", "Output" or an
310
+ error code. Step names are the job's too ("Plan the tour", not "Block 2").
311
+ - Quiet by default: no welcome text, tips under fields, tours or banners. At most
312
+ one line of guidance on a screen, only where the next move is not obvious; more
313
+ goes behind an (i). A problem is one line with its fix beside it.
314
+ - Inputs are named for what the person brings (`sermonVideo`); StillMade words the
315
+ drop area from the name. The readiness report notes a button that would read
316
+ "Make it" or "Run" and inputs named only by type; it never refuses a Block for it.
317
+ - Buttons you act on stand out from the page. The main one is solid ink, whether
318
+ it costs credits or not; every other action button is white (`--bg-elev-1`) with a
319
+ strong edge (`--border-strong`). None is the page's own colour. Gold stays for
320
+ small accents.
321
+ - Posting is a connector Step of its own, and its button says what it sends and
322
+ where ("Post to Instagram", "Schedule post"), never "Send".
323
+ - Saved references fill Steps: "Use a reference" sits in the drop area beside
324
+ "Choose". It opens every saved reference, photos, videos and notes, named or not,
325
+ and picking one fills every field it fits. Types and names match with no model;
326
+ only a paragraph that has to be split across fields goes to a quick, cheap model,
327
+ free to the person.
328
+ - Days and times are picked from a calendar and a list of times, never typed.
329
+ - History is one icon in the Project map's header, shown on every saved project whether or not anything is recorded
330
+ yet (November 3, 2026). A Step has no row of tool icons of its own.
331
+ - Chat can do everything these screens do: pick a reference, fill fields, pick a
332
+ time, post, and bring back an earlier version.
333
+
334
+ ## Media playback and full screen (November 2, 2026)
335
+
336
+ Owner, November 2, 2026: "implement A absolutely universally, like in app, platform, sdk, just everywhere", with the
337
+ full-screen button in the bottom-right corner. Every user-facing video and result picture in the app, on public pages
338
+ and in Block views (old releases included) uses one player and one viewer, option A "Cream blocks"
339
+ (`packages/design-system/media-player.js` and `media-player.css`; `MediaPlayer`, `MediaViewer` and `MediaExpandButton`
340
+ in React; `client/public/stillmade-media.js` on server pages; `client/src/blocks/sandboxMedia.js` in Block views).
341
+
342
+ - Controls, left to right along the bottom: play, timeline, time, sound, full screen. Full screen is last, in the
343
+ bottom-right corner. Each button is a 44 px solid cream rounded square (`--r-3`) with an ink icon from the app set;
344
+ never a circle. The time is the display face, italic 200. The chrome sits on the picture, so it is the same in Light,
345
+ Dark and White; the letterbox is ink.
346
+ - Hover only. Owner: "make sure I have to hover over the video for it to appear". The controls and their shade show
347
+ only while the pointer is over the video, paused or playing, before the first play too; they fade 2 s after the last
348
+ move while a video plays. Keyboard focus shows them. On touch a tap shows them for 3 s and never starts playback.
349
+ - Photos get one full-screen button, the video's square in the same corner: 44 px on pictures at least 240 px wide and
350
+ 160 px tall, 32 px on smaller ones. Owner: "if I hover over it, it appears; hover out of it, it disappears". Only on
351
+ results, listing and gallery pictures; never on icons, avatars, picker thumbnails, editor canvases or drag sources. A
352
+ picture that already opens its own viewer (versions, Edit image) hands the button's click to it.
353
+ - The viewer is a modal dialog on ink: the picture contained, Close top right, Previous and Next at the middle of the
354
+ sides, the count in the display face ("2 of 4") and the name below. Esc closes only the viewer.
355
+ - A file that cannot open here (kept on another device, or it did not open) is a quiet tile in its own shape with an
356
+ image-off icon and no words, the reason in its label and tooltip (owner, November 2, 2026, of four tiles each saying
357
+ "Only on the device it was added from": "if it's a notification make it a notification"). What the person needs to
358
+ know is one toast for the group, or nothing ("notices, not prose"); never a sentence on the page and never the same
359
+ line under each item. App: `MediaOffTile`; Block views: the kit's `sm-media-off` tile with the `image-off` glyph.
360
+ - Bare previews stay bare: thumbnails, covers, hover-play tiles, editor transports and canvas previews.
361
+ - A Block view's `<video>` without `controls` is the Block's own and is never touched;
362
+ `data-stillmade-player="native"` keeps the browser's controls. Full screen in a Block view is the host's: the frame
363
+ fills the screen only right after a click or key in the view.
364
+
276
365
  ## Dialog placement and dismissal
277
366
 
278
367
  - Center search and other transient dialogs in the viewport, independent of the
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.check-clip",
6
+ "action": {
7
+ "label": "Check clip",
8
+ "running": "Checking clip…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Check a clip",
8
12
  "description": "Answer a production question about a saved video clip, with timestamps.",
@@ -7,6 +7,10 @@
7
7
  },
8
8
  "sdkVersion": "0.1.0",
9
9
  "id": "example.clean-text",
10
+ "action": {
11
+ "label": "Clean text",
12
+ "running": "Cleaning text…"
13
+ },
10
14
  "version": "1.0.0",
11
15
  "name": "Clean text",
12
16
  "description": "Trims extra space from text and returns a clean copy for the next step.",
@@ -7,6 +7,10 @@
7
7
  },
8
8
  "sdkVersion": "0.1.0",
9
9
  "id": "example.clean-text-interface",
10
+ "action": {
11
+ "label": "Clean text",
12
+ "running": "Cleaning text…"
13
+ },
10
14
  "version": "1.1.0",
11
15
  "name": "Clean text studio",
12
16
  "description": "Edit text, run the cleanup, and compare the result in a responsive self-contained workspace.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.describe-image",
6
+ "action": {
7
+ "label": "Describe image",
8
+ "running": "Describing image…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Describe an image",
8
12
  "description": "Turn one owned image into concise production-ready visual notes.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.foley-cue",
6
+ "action": {
7
+ "label": "Generate sound",
8
+ "running": "Generating sound…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Foley cue",
8
12
  "description": "Generate a short sound effect from a written description.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.generate-image",
6
+ "action": {
7
+ "label": "Generate image",
8
+ "running": "Generating image…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Generate an image",
8
12
  "description": "Generate a square PNG from a short visual prompt using an approved host request.",
@@ -2,6 +2,10 @@
2
2
  "manifest": {
3
3
  "schemaVersion": 1,
4
4
  "id": "example.generate-video",
5
+ "action": {
6
+ "label": "Generate video",
7
+ "running": "Generating video…"
8
+ },
5
9
  "name": "Generate video",
6
10
  "version": "1.0.0",
7
11
  "sdkVersion": "0.1.0",
@@ -2,6 +2,10 @@
2
2
  "schemaVersion": 1,
3
3
  "sdkVersion": "0.1.0",
4
4
  "id": "example.word-stats",
5
+ "action": {
6
+ "label": "Count words",
7
+ "running": "Counting words…"
8
+ },
5
9
  "version": "1.0.0",
6
10
  "name": "Word stats",
7
11
  "description": "Counts words and finds the longest one, as a modern JavaScript module.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.narrate-script",
6
+ "action": {
7
+ "label": "Generate voiceover",
8
+ "running": "Generating voiceover…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Narrate a script",
8
12
  "description": "Turn a short script into a reviewed speech recording using a host-selected voice.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.numbered-takes",
6
+ "action": {
7
+ "label": "Number takes",
8
+ "running": "Numbering takes…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Numbered takes",
8
12
  "description": "Label successive creative takes with an independent counter for each production placement.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.research-topic",
6
+ "action": {
7
+ "label": "Research topic",
8
+ "running": "Researching topic…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Research a topic",
8
12
  "description": "Search the web for a topic and return a cited summary.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.score-a-scene",
6
+ "action": {
7
+ "label": "Generate music",
8
+ "running": "Generating music…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Score a scene",
8
12
  "description": "Generate a short music bed for a scene from a written mood brief.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.script-draft",
6
+ "action": {
7
+ "label": "Write script",
8
+ "running": "Writing script…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Draft a short script",
8
12
  "description": "Turn a production brief into a short narration draft using an approved text-generation call.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.summarize-page",
6
+ "action": {
7
+ "label": "Summarize page",
8
+ "running": "Summarizing page…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Summarize a page",
8
12
  "description": "Read a public web page and summarize it in a few production-ready bullet points.",
@@ -20,6 +20,10 @@
20
20
  },
21
21
  "sdkVersion": "0.1.0",
22
22
  "id": "example.clean-text",
23
+ "action": {
24
+ "label": "Clean text",
25
+ "running": "Cleaning text…"
26
+ },
23
27
  "version": "1.0.0",
24
28
  "name": "Clean text",
25
29
  "description": "Trims extra space from text and returns a clean copy for the next step.",
@@ -7,6 +7,10 @@
7
7
  },
8
8
  "sdkVersion": "0.1.0",
9
9
  "id": "example.thicken-lines",
10
+ "action": {
11
+ "label": "Thicken lines",
12
+ "running": "Thickening lines…"
13
+ },
10
14
  "version": "1.0.1",
11
15
  "name": "Thicken line art",
12
16
  "description": "Expands dark outlines in an image while preserving surrounding colors, creating a new image for the next production step.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.timeline-polish",
6
+ "action": {
7
+ "label": "Suggest edit",
8
+ "running": "Suggesting edit…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Timeline polish",
8
12
  "description": "Turn a timeline and editing direction into a bounded proposal that remains reviewable before Apply.",
@@ -3,6 +3,10 @@
3
3
  "schemaVersion": 1,
4
4
  "sdkVersion": "0.1.0",
5
5
  "id": "example.transcribe-audio",
6
+ "action": {
7
+ "label": "Transcribe audio",
8
+ "running": "Transcribing…"
9
+ },
6
10
  "version": "1.0.0",
7
11
  "name": "Transcribe audio",
8
12
  "description": "Turn one persistent audio file into reviewed text with word timings.",
@@ -7,6 +7,10 @@
7
7
  },
8
8
  "sdkVersion": "0.1.0",
9
9
  "id": "example.word-count",
10
+ "action": {
11
+ "label": "Count words",
12
+ "running": "Counting words…"
13
+ },
10
14
  "version": "1.0.0",
11
15
  "name": "Word count",
12
16
  "description": "Counts words and returns trimmed text using isolated JavaScript.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stillmade-sdk",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "description": "StillMade Block SDK, CLI and examples",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "type": "module",