stillmade-sdk 0.1.36 → 0.1.38

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 (60) hide show
  1. package/AGENTS.md +8 -8
  2. package/IMAGE_DESCRIPTION.md +2 -0
  3. package/MODULES.md +68 -10
  4. package/NATIVE_MCP.md +18 -7
  5. package/PASTE_TO_LLM.md +121 -50
  6. package/PORTABLE.md +7 -3
  7. package/README.md +19 -6
  8. package/REMIX.md +6 -0
  9. package/SDK.md +226 -103
  10. package/TRANSCRIPTION.md +4 -2
  11. package/UI_AESTHETIC.md +2 -0
  12. package/api-index.json +1 -1
  13. package/blocks/narration/package.js +1 -1
  14. package/blocks/narration/versions/1.0.1/package.js +221 -0
  15. package/blocks/native/sm.animated-scene/versions/2.3.9/package.js +769 -0
  16. package/blocks/native/sm.board-editor/versions/2.2.11/package.js +551 -0
  17. package/blocks/native/sm.describe-media/versions/2.1.0/package.js +140 -0
  18. package/blocks/native/sm.panel-strip/versions/2.4.2/package.js +1316 -0
  19. package/blocks/native/sm.photo-notes/versions/1.1.0/package.js +170 -0
  20. package/blocks/native/sm.pipeline/versions/2.2.6/package.js +1095 -0
  21. package/blocks/screen-recorder/package.js +1 -1
  22. package/blocks/screen-recorder/versions/1.0.1/package.js +223 -0
  23. package/package.json +1 -1
  24. package/packages/block-cli/cli.js +91 -35
  25. package/packages/block-cli/dev-host/assets/host.js +35 -32
  26. package/packages/block-cli/dev-host/assets/index.css +1 -1
  27. package/packages/block-cli/dev-server.js +4 -0
  28. package/packages/block-cli/ready-gate.js +19 -4
  29. package/packages/block-cli/templates.js +33 -21
  30. package/packages/block-platform/block-readiness.js +10 -1
  31. package/packages/block-platform/catalog.js +14 -3
  32. package/packages/block-platform/chat-packages.js +6 -0
  33. package/packages/block-platform/flow-inspection.js +3 -1
  34. package/packages/block-platform/project-target.js +57 -0
  35. package/packages/block-platform/project-type-composer.js +4 -3
  36. package/packages/block-platform/project-types.js +5 -2
  37. package/packages/block-sdk/admission.js +4 -1
  38. package/packages/block-sdk/block-tier.js +23 -0
  39. package/packages/block-sdk/builder-contract.js +12 -10
  40. package/packages/block-sdk/capabilities.js +23 -10
  41. package/packages/block-sdk/collaboration-admission.js +3 -0
  42. package/packages/block-sdk/contracts.js +13 -1
  43. package/packages/block-sdk/example-media-data.js +16 -0
  44. package/packages/block-sdk/example-media.js +42 -0
  45. package/packages/block-sdk/first-party-identities.js +8 -0
  46. package/packages/block-sdk/first-party-packages.js +11 -1
  47. package/packages/block-sdk/index.d.ts +6 -2
  48. package/packages/block-sdk/local-admission.js +6 -5
  49. package/packages/block-sdk/media-transform.js +59 -3
  50. package/packages/block-sdk/mock-host.js +23 -2
  51. package/packages/block-sdk/mocks.js +4 -1
  52. package/packages/block-sdk/module-hosted.js +12 -2
  53. package/packages/block-sdk/port-types.d.ts +6 -0
  54. package/packages/block-sdk/port-types.js +32 -10
  55. package/packages/block-sdk/shared-agent-controls.js +25 -2
  56. package/packages/block-sdk/shared-controls.js +17 -3
  57. package/packages/block-sdk/testing.js +46 -3
  58. package/packages/block-sdk/view-design.js +67 -0
  59. package/packages/block-sdk/view-renderer.js +50 -8
  60. package/packages/design-system/block-kit.css +6 -4
package/README.md CHANGED
@@ -8,7 +8,10 @@ Build, test and package Blocks for [StillMade](https://stillmade.shop).
8
8
  npm install --save-dev stillmade-sdk
9
9
  ```
10
10
 
11
- Needs Node.js 22 or later. Everything it runs ships inside the package. From a downloaded SDK folder, run `node packages/block-cli/cli.js` wherever this page says `npx stillmade-block`.
11
+ Needs Node.js 22 or later. Everything it runs ships inside the package. The same SDK is also a download,
12
+ `/block-sdk/stillmade-sdk-0.1.0.zip` on the StillMade site. `stillmade-block` is its command line in every
13
+ StillMade guide: `npx stillmade-block` after the install above, or `node <sdk>/packages/block-cli/cli.js` where
14
+ `<sdk>` is the folder you extracted the download into.
12
15
 
13
16
  ## Build a Block
14
17
 
@@ -16,13 +19,23 @@ Needs Node.js 22 or later. Everything it runs ships inside the package. From a d
16
19
  npx stillmade-block create my-block javascript # create --list shows every template
17
20
  npx stillmade-block validate my-block
18
21
  npx stillmade-block test my-block # add --mock for hosted operations: no credits
19
- npx stillmade-block gate . # the readiness check StillMade runs
20
- npx stillmade-block pack my-block my-block.stillmade-block --original # the file to import in StillMade
22
+ npx stillmade-block dev my-block # the Block's interface in your browser, reloaded on save
23
+ npx stillmade-block gate my-block # the readiness check StillMade runs
24
+ npx stillmade-block pack my-block # the file to import in StillMade
21
25
  ```
22
26
 
23
- A Block is not ready until `gate` passes. `pack --original` declares the code as your own work and
24
- writes the `.stillmade-block` file StillMade imports and remixes; without a file name and `--original`,
25
- `pack` writes a legacy JSON package instead. In StillMade, choose Create, then Import (or Import folder).
27
+ A Block is not ready until `gate` passes. Run it on the Block's own folder: `gate .` in a folder that also
28
+ holds the extracted SDK checks the SDK's examples too. `pack` runs the tests again and writes one file,
29
+ named by the Block's runtime:
30
+
31
+ | Runtime | `pack my-block` writes |
32
+ | --- | --- |
33
+ | `module`, or a frame view with files in `src/view-files/` | `<id>-<version>.stillmade-module.json` |
34
+ | `recipe`, `javascript`, `capability`, `comfyui` | `<id>-<version>.stillmade.json` |
35
+
36
+ In StillMade, choose Create, then Import, and pick that file (or pick the Block folder with Import folder).
37
+ A new Block needs no `.stillmade-block` archive: `pack --original` writes one only for recipe, JavaScript,
38
+ capability and ComfyUI source (PORTABLE.md) and refuses a module Block.
26
39
  From JavaScript, `import {defineBlock} from 'stillmade-sdk'` is the same API as `packages/block-sdk/index.js`.
27
40
 
28
41
  ## For coding agents
package/REMIX.md CHANGED
@@ -87,6 +87,12 @@ attribution; removing it requires a separate rights review, not a source edit.
87
87
 
88
88
  ## Outside StillMade
89
89
 
90
+ Outside StillMade you remix only your own Blocks: one you imported or built, including a
91
+ newer version you edited in StillMade and downloaded from your versions (**Download
92
+ source + SDK**) to take back to your coding agent. Another person's Block is remixed only
93
+ in StillMade, as above: StillMade offers no download of it, and an import whose original
94
+ is another person's Block is refused with "Their Blocks can be remixed only in StillMade".
95
+
90
96
  Use the CLI shipped in the downloadable SDK:
91
97
 
92
98
  ```sh