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.
- package/.stillmade/sdk-baseline.json +19 -21
- package/AGENTS.md +17 -12
- package/FRAME_VIEWS.md +113 -0
- package/INTERFACE_DESIGN.md +67 -22
- package/MOBILE_UI.md +4 -2
- package/MODULES.md +152 -6
- package/PASTE_TO_LLM.md +42 -32
- package/README.md +3 -2
- package/SDK.md +1028 -563
- package/UI_AESTHETIC.md +30 -3
- package/blocks/generate/package.js +1 -0
- package/blocks/generate/versions/1.0.0/package.js +463 -0
- package/docs/build/audio-to-editor.md +36 -0
- package/docs/build/block-builder-contract.md +150 -0
- package/docs/build/comfyui.md +227 -0
- package/docs/build/concepts.md +40 -0
- package/docs/build/context.md +159 -0
- package/docs/build/cookbook.md +57 -0
- package/docs/build/custom-interface.md +617 -0
- package/docs/build/data-types.md +83 -0
- package/docs/build/frame-views.md +259 -0
- package/docs/build/generate-media.md +59 -0
- package/docs/build/github-applications.md +314 -0
- package/docs/build/hosted-images.md +214 -0
- package/docs/build/hosted-music.md +39 -0
- package/docs/build/hosted-speech.md +157 -0
- package/docs/build/hosted-text.md +246 -0
- package/docs/build/image-description.md +49 -0
- package/docs/build/interface-design.md +343 -0
- package/docs/build/javascript.md +63 -0
- package/docs/build/local-preview.md +61 -0
- package/docs/build/media-analysis.md +27 -0
- package/docs/build/media.md +400 -0
- package/docs/build/mobile-ui.md +106 -0
- package/docs/build/modules.md +487 -0
- package/docs/build/original-blocks.md +70 -0
- package/docs/build/outside-apis.md +128 -0
- package/docs/build/production-context-templates.md +12 -0
- package/docs/build/project-storage.md +94 -0
- package/docs/build/quickstart.md +48 -0
- package/docs/build/recipes.md +103 -0
- package/docs/build/script-handoff.md +45 -0
- package/docs/build/script-writer.md +34 -0
- package/docs/build/state.md +223 -0
- package/docs/build/testing.md +112 -0
- package/docs/build/timeline-edits.md +116 -0
- package/docs/build/timeline-proposals.md +76 -0
- package/docs/build/transcription.md +59 -0
- package/docs/build/triggers.md +59 -0
- package/docs/build/tutorial.md +52 -0
- package/docs/build/typescript.md +34 -0
- package/docs/build/video-generation.md +61 -0
- package/docs/build/web-reading.md +37 -0
- package/docs/build/with-your-ai.md +27 -0
- package/docs/changelog.md +9 -0
- package/docs/creators.md +21 -0
- package/docs/distribute/discovery.md +43 -0
- package/docs/distribute/imports.md +58 -0
- package/docs/distribute/publishing.md +29 -0
- package/docs/distribute/sdk-versions.md +36 -0
- package/docs/distribute/selling.md +14 -0
- package/docs/distribute/teams.md +60 -0
- package/docs/distribute/versioning.md +28 -0
- package/docs/examples.md +23 -0
- package/docs/gallery.md +26 -0
- package/docs/index.md +50 -0
- package/docs/native-mcp.md +307 -0
- package/docs/project-types/automation.md +43 -0
- package/docs/project-types/batches.md +50 -0
- package/docs/project-types/build.md +42 -0
- package/docs/project-types/completion.md +15 -0
- package/docs/project-types/conditions.md +21 -0
- package/docs/project-types/hosted-review.md +115 -0
- package/docs/project-types/onboarding.md +75 -0
- package/docs/project-types/running.md +309 -0
- package/docs/project-types/testing.md +72 -0
- package/docs/reference/application-artifacts.md +87 -0
- package/docs/reference/authoring-guide.md +134 -0
- package/docs/reference/browser-applications.md +267 -0
- package/docs/reference/capabilities.md +45 -0
- package/docs/reference/cli.md +71 -0
- package/docs/reference/connection-api.md +59 -0
- package/docs/reference/cooperative-jobs.md +13 -0
- package/docs/reference/desktop-capabilities.md +172 -0
- package/docs/reference/desktop-execution.md +77 -0
- package/docs/reference/errors.md +233 -0
- package/docs/reference/execution.md +800 -0
- package/docs/reference/first-party-blocks.md +40 -0
- package/docs/reference/generation-models.md +59 -0
- package/docs/reference/limits.md +306 -0
- package/docs/reference/manifest-kinds-controls.md +36 -0
- package/docs/reference/manifest.md +181 -0
- package/docs/reference/operations.md +36 -0
- package/docs/reference/package-jobs.md +35 -0
- package/docs/reference/parity.md +55 -0
- package/docs/reference/permissions.md +86 -0
- package/docs/reference/ports.md +26 -0
- package/docs/reference/types.md +268 -0
- package/docs/reference/universal-resolver.md +303 -0
- package/docs/reference/view-bridge.md +60 -0
- package/docs/reference/view-rules.md +15 -0
- package/docs/reference/workspace-sync.md +25 -0
- package/docs/sdk.md +34 -0
- package/docs/tools/block-remix.md +211 -0
- package/docs/tools/llm.md +2213 -0
- package/docs/tools/repository-adaptation.md +613 -0
- package/examples/check-clip.stillmade.json +8 -1
- package/examples/clean-text.stillmade.json +4 -0
- package/examples/custom-interface.stillmade.json +4 -0
- package/examples/describe-image.stillmade.json +4 -0
- package/examples/foley-cue.stillmade.json +4 -0
- package/examples/generate-image.stillmade.json +4 -0
- package/examples/generate-video.stillmade.json +10 -2
- package/examples/module-word-stats/stillmade.block.json +4 -0
- package/examples/narrate-script.stillmade.json +4 -0
- package/examples/numbered-takes.stillmade.json +4 -0
- package/examples/research-topic.stillmade.json +9 -1
- package/examples/score-a-scene.stillmade.json +4 -0
- package/examples/script-draft.stillmade.json +4 -0
- package/examples/summarize-page.stillmade.json +4 -0
- package/examples/text-workflow.stillmade.json +7 -32
- package/examples/thicken-lines.stillmade.json +4 -0
- package/examples/timeline-polish.stillmade.json +15 -3
- package/examples/transcribe-audio.stillmade.json +15 -3
- package/examples/word-count.stillmade.json +4 -0
- package/package.json +1 -1
- package/packages/block-cli/cli.js +13 -6
- package/packages/block-cli/dev-host/assets/host.js +81 -38
- package/packages/block-cli/dev-host/assets/index.css +1 -1
- package/packages/block-cli/format.js +1 -1
- package/packages/block-cli/ready-gate.js +4 -0
- package/packages/block-cli/templates.js +37 -19
- package/packages/block-cli/type-packages.js +119 -0
- package/packages/block-platform/block-readiness.js +8 -1
- package/packages/block-platform/canvas.js +2 -1
- package/packages/block-platform/catalog.js +27 -48
- package/packages/block-platform/native-host-inventory.js +0 -226
- package/packages/block-platform/plain-descriptions.js +1 -25
- package/packages/block-platform/project-type-starters.js +13 -53
- package/packages/block-platform/script-handoff.js +2 -4
- package/packages/block-platform/type-workspace.js +2 -0
- package/packages/block-sdk/appearance.js +3 -1
- package/packages/block-sdk/audio-generation-example.js +2 -2
- package/packages/block-sdk/block-tier.js +1 -1
- package/packages/block-sdk/builder-contract.js +13 -11
- package/packages/block-sdk/capabilities.js +1 -1
- package/packages/block-sdk/capability-example.js +1 -1
- package/packages/block-sdk/contracts.js +6 -2
- package/packages/block-sdk/examples.js +3 -3
- package/packages/block-sdk/first-party-identities.js +1 -84
- package/packages/block-sdk/first-party-packages.js +3 -85
- package/packages/block-sdk/generation-catalog.js +15 -3
- package/packages/block-sdk/image-description-example.js +1 -1
- package/packages/block-sdk/image-generation-example.js +1 -1
- package/packages/block-sdk/index.d.ts +2 -1
- package/packages/block-sdk/media-analysis-example.js +2 -2
- package/packages/block-sdk/mock-host.js +7 -1
- package/packages/block-sdk/module-example.js +1 -1
- package/packages/block-sdk/module-host-calls.js +35 -10
- package/packages/block-sdk/module-hosted.js +15 -2
- package/packages/block-sdk/module-media-access.js +71 -0
- package/packages/block-sdk/module-node.js +1 -1
- package/packages/block-sdk/portable-media-actions.js +1 -1
- package/packages/block-sdk/runtime.js +1 -1
- package/packages/block-sdk/speech-example.js +1 -1
- package/packages/block-sdk/state-example.js +1 -1
- package/packages/block-sdk/timeline-proposal-example.js +1 -1
- package/packages/block-sdk/transcription-example.js +1 -1
- package/packages/block-sdk/trigger-examples.js +2 -2
- package/packages/block-sdk/video-generation-example.js +1 -1
- package/packages/block-sdk/view-bridge.js +4 -1
- package/packages/block-sdk/view-design.js +44 -15
- package/packages/block-sdk/web-example.js +2 -2
- package/packages/design-system/block-kit.css +53 -12
- package/packages/design-system/block-kit.html +3 -2
- package/blocks/mcp-motion-planner/versions/1.1.0/package.js +0 -97
- package/blocks/motion-designer/versions/1.0.1/package.js +0 -173318
- package/blocks/motion-designer/versions/1.0.2/package.js +0 -173318
- package/blocks/motion-frame-review/versions/1.1.1/package.js +0 -465
- package/blocks/motion-frame-review/versions/1.1.2/package.snapshot.js +0 -572
- package/blocks/narration/package.js +0 -1
- package/blocks/narration/versions/1.0.0/package.js +0 -221
- package/blocks/narration/versions/1.0.1/package.js +0 -221
- package/blocks/native/sm.animated-scene/versions/2.0.0/package.js +0 -475
- package/blocks/native/sm.animated-scene/versions/2.1.0/package.js +0 -498
- package/blocks/native/sm.animated-scene/versions/2.2.0/package.js +0 -524
- package/blocks/native/sm.animated-scene/versions/2.3.0/package.js +0 -618
- package/blocks/native/sm.animated-scene/versions/2.3.1/package.js +0 -618
- package/blocks/native/sm.animated-scene/versions/2.3.2/package.js +0 -723
- package/blocks/native/sm.animated-scene/versions/2.3.3/package.js +0 -723
- package/blocks/native/sm.animated-scene/versions/2.3.4/package.js +0 -676
- package/blocks/native/sm.animated-scene/versions/2.3.5/package.js +0 -693
- package/blocks/native/sm.animated-scene/versions/2.3.6/package.js +0 -700
- package/blocks/native/sm.animated-scene/versions/2.3.7/package.js +0 -747
- package/blocks/native/sm.animated-scene/versions/2.3.8/package.js +0 -769
- package/blocks/native/sm.animated-scene/versions/2.3.9/package.js +0 -769
- package/blocks/native/sm.animated-scene-assistant/versions/1.0.0/package.js +0 -183
- package/blocks/native/sm.blueprint/versions/2.0.0/package.js +0 -358
- package/blocks/native/sm.blueprint/versions/2.1.0/package.js +0 -358
- package/blocks/native/sm.blueprint/versions/2.1.1/package.js +0 -358
- package/blocks/native/sm.blueprint/versions/2.1.2/package.js +0 -358
- package/blocks/native/sm.blueprint/versions/2.1.3/package.js +0 -381
- package/blocks/native/sm.blueprint/versions/2.1.4/package.js +0 -381
- package/blocks/native/sm.blueprint/versions/2.1.5/package.js +0 -339
- package/blocks/native/sm.blueprint/versions/2.1.6/package.js +0 -356
- package/blocks/native/sm.blueprint/versions/2.1.7/package.js +0 -363
- package/blocks/native/sm.blueprint/versions/2.1.8/package.js +0 -410
- package/blocks/native/sm.blueprint/versions/2.1.9/package.js +0 -422
- package/blocks/native/sm.blueprint-assistant/versions/1.0.0/package.js +0 -172
- package/blocks/native/sm.chat/versions/2.0.0/package.js +0 -144
- package/blocks/native/sm.chat/versions/2.0.1/package.js +0 -97
- package/blocks/native/sm.chat/versions/2.0.2/package.js +0 -100
- package/blocks/native/sm.chat/versions/2.0.3/package.js +0 -100
- package/blocks/native/sm.continue-if/versions/1.0.0/package.js +0 -168
- package/blocks/native/sm.describe-media/versions/2.0.0/package.js +0 -153
- package/blocks/native/sm.describe-media/versions/2.0.1/package.js +0 -156
- package/blocks/native/sm.describe-media/versions/2.1.0/package.js +0 -140
- package/blocks/native/sm.image-editor/versions/2.0.0/package.js +0 -183
- package/blocks/native/sm.image-editor/versions/2.0.1/package.js +0 -190
- package/blocks/native/sm.new-items/versions/1.0.0/package.js +0 -191
- package/blocks/native/sm.pick-photos/versions/1.0.0/package.js +0 -334
- package/blocks/native/sm.quality-audit/versions/1.0.0/package.js +0 -192
- package/blocks/native/sm.quality-audit/versions/1.0.1/package.js +0 -192
- package/blocks/native/sm.quality-audit/versions/1.0.2/package.js +0 -195
- package/blocks/native/sm.research/versions/2.0.0/package.js +0 -175
- package/blocks/native/sm.research/versions/2.0.1/package.js +0 -184
- package/blocks/native/sm.research/versions/2.0.2/package.js +0 -187
- package/blocks/native/sm.script/versions/2.0.0/package.js +0 -144
- package/blocks/native/sm.script/versions/2.1.0/package.js +0 -144
- package/blocks/native/sm.script/versions/2.1.1/package.js +0 -144
- package/blocks/native/sm.script/versions/2.1.2/package.js +0 -105
- package/blocks/native/sm.script/versions/2.1.3/package.js +0 -152
- package/blocks/native/sm.script/versions/2.1.4/package.js +0 -156
- package/blocks/native/sm.script/versions/2.1.5/package.js +0 -156
- package/blocks/native/sm.shot-plan/versions/2.0.0/package.js +0 -301
- package/blocks/native/sm.shot-plan/versions/2.1.0/package.js +0 -528
- package/blocks/native/sm.shot-plan/versions/2.1.1/package.js +0 -528
- package/blocks/native/sm.shot-plan/versions/2.1.2/package.js +0 -528
- package/blocks/native/sm.shot-plan/versions/2.1.3/package.js +0 -536
- package/blocks/native/sm.shot-plan/versions/2.2.0/package.js +0 -800
- package/blocks/native/sm.shot-plan/versions/2.2.1/package.js +0 -920
- package/blocks/native/sm.shot-plan-assistant/versions/1.0.0/package.js +0 -173
- package/blocks/native/sm.stock-search/versions/2.0.0/package.js +0 -174
- package/blocks/native/sm.thumbnail/versions/2.0.0/package.js +0 -137
- package/blocks/native/sm.thumbnail/versions/2.0.1/package.js +0 -140
- package/blocks/native/sm.transcribe/versions/2.0.0/package.js +0 -163
- package/blocks/native/sm.transcribe/versions/2.0.1/package.js +0 -168
- package/blocks/native/sm.whiteboard-assistant/versions/1.0.0/package.js +0 -175
- package/blocks/native/sm.youtube/versions/2.0.0/package.js +0 -217
- package/blocks/occasion-story/package.js +0 -1
- package/blocks/occasion-story/versions/1.0.0/package.js +0 -1658
- package/blocks/occasion-story/versions/1.0.1/package.js +0 -1699
- package/blocks/occasion-story/versions/1.0.2/package.js +0 -1682
- package/blocks/photo-reel-composer/versions/1.0.0/package.js +0 -3043
- package/blocks/photo-reel-composer/versions/1.0.1/package.js +0 -3026
- package/blocks/photo-reel-composer/versions/1.0.2/package.js +0 -4149
- package/blocks/product-ad-variants/versions/1.0.0/package.js +0 -2911
- package/blocks/product-launch-director/versions/1.0.0/package.js +0 -103
- package/blocks/release-visuals/package.js +0 -1
- package/blocks/release-visuals/versions/1.0.0/package.js +0 -1492
- package/blocks/release-visuals/versions/1.0.1/package.js +0 -1517
- package/blocks/release-visuals/versions/1.0.2/package.js +0 -1500
- package/blocks/screen-recorder/package.js +0 -1
- package/blocks/screen-recorder/versions/1.0.0/package.js +0 -223
- package/blocks/screen-recorder/versions/1.0.1/package.js +0 -223
- package/blocks/short-form-finish/package.js +0 -1
- package/blocks/short-form-finish/versions/1.0.0/package.js +0 -1043
- package/blocks/short-form-finish/versions/1.0.1/package.js +0 -1043
- package/blocks/short-form-finish/versions/1.0.2/package.js +0 -1043
- package/blocks/short-form-finish/versions/1.0.3/package.js +0 -1026
- package/examples/saas-product-launch-reviewed-source.stillmade.json +0 -383
- package/examples/saas-product-launch.stillmade.json +0 -304
- package/packages/block-platform/dealer-inventory-video-project-type.js +0 -38
- package/packages/block-platform/first-revenue-project-types.js +0 -46
- package/packages/block-platform/fixture-starters.js +0 -13
- package/packages/block-platform/launch-project-source.js +0 -10
- package/packages/block-platform/launch-project.js +0 -30
- package/packages/block-platform/motion-project-types.js +0 -55
- package/packages/block-platform/motion-starters.js +0 -14
- package/packages/block-platform/product-ad-variants-project-type.js +0 -30
- package/packages/block-platform/product-launch-updated.js +0 -90
- package/packages/block-platform/revenue-review-project-types.js +0 -36
- package/packages/block-platform/revenue-review-starters.js +0 -13
- package/packages/block-platform/script-writer.js +0 -29
- package/packages/block-platform/website-source-block.js +0 -14
|
@@ -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",
|
|
@@ -17,13 +21,17 @@
|
|
|
17
21
|
"prompt": {
|
|
18
22
|
"type": "text",
|
|
19
23
|
"primary": true,
|
|
20
|
-
"required": true
|
|
24
|
+
"required": true,
|
|
25
|
+
"semantic": "video_prompt",
|
|
26
|
+
"description": "What the clip shows: subject, action, setting and camera, in a sentence or two."
|
|
21
27
|
}
|
|
22
28
|
},
|
|
23
29
|
"outputs": {
|
|
24
30
|
"video": {
|
|
25
31
|
"type": "video",
|
|
26
|
-
"primary": true
|
|
32
|
+
"primary": true,
|
|
33
|
+
"semantic": "generated_video",
|
|
34
|
+
"description": "The generated clip."
|
|
27
35
|
}
|
|
28
36
|
},
|
|
29
37
|
"permissions": {
|
|
@@ -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.",
|
|
@@ -27,7 +31,11 @@
|
|
|
27
31
|
"type": "json",
|
|
28
32
|
"primary": true,
|
|
29
33
|
"semantic": "research_findings",
|
|
30
|
-
"description": "Summary and the sources it came from."
|
|
34
|
+
"description": "Summary and the sources it came from.",
|
|
35
|
+
"schema": {
|
|
36
|
+
"summary": "text",
|
|
37
|
+
"sources": "json[]"
|
|
38
|
+
}
|
|
31
39
|
}
|
|
32
40
|
},
|
|
33
41
|
"permissions": {
|
|
@@ -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.",
|
|
@@ -3,13 +3,7 @@
|
|
|
3
3
|
"id": "example.text-workflow",
|
|
4
4
|
"version": "1.0.0",
|
|
5
5
|
"name": "Text workflow",
|
|
6
|
-
"description": "Clean text
|
|
7
|
-
"summary": {
|
|
8
|
-
"origin": "llm",
|
|
9
|
-
"generation": "build-time",
|
|
10
|
-
"generator": "Codex",
|
|
11
|
-
"status": "ready"
|
|
12
|
-
},
|
|
6
|
+
"description": "Clean the text, then assemble and export the video in the Editor.",
|
|
13
7
|
"packages": [
|
|
14
8
|
{
|
|
15
9
|
"manifest": {
|
|
@@ -20,6 +14,10 @@
|
|
|
20
14
|
},
|
|
21
15
|
"sdkVersion": "0.1.0",
|
|
22
16
|
"id": "example.clean-text",
|
|
17
|
+
"action": {
|
|
18
|
+
"label": "Clean text",
|
|
19
|
+
"running": "Cleaning text…"
|
|
20
|
+
},
|
|
23
21
|
"version": "1.0.0",
|
|
24
22
|
"name": "Clean text",
|
|
25
23
|
"description": "Trims extra space from text and returns a clean copy for the next step.",
|
|
@@ -92,35 +90,12 @@
|
|
|
92
90
|
"version": "1.0.0",
|
|
93
91
|
"label": "Prepare text"
|
|
94
92
|
},
|
|
95
|
-
{
|
|
96
|
-
"id": "second",
|
|
97
|
-
"blockId": "example.clean-text",
|
|
98
|
-
"version": "1.0.0",
|
|
99
|
-
"label": "Review clean text"
|
|
100
|
-
},
|
|
101
93
|
{
|
|
102
94
|
"id": "edit",
|
|
103
95
|
"blockId": "sm.editor",
|
|
104
96
|
"version": "1.0.0",
|
|
105
|
-
"label": "Edit
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"id": "export",
|
|
109
|
-
"blockId": "sm.export-video",
|
|
110
|
-
"version": "1.0.0",
|
|
111
|
-
"label": "Export video"
|
|
97
|
+
"label": "Edit and export"
|
|
112
98
|
}
|
|
113
99
|
],
|
|
114
|
-
"connections": [
|
|
115
|
-
{
|
|
116
|
-
"from": {
|
|
117
|
-
"stage": "first",
|
|
118
|
-
"port": "text"
|
|
119
|
-
},
|
|
120
|
-
"to": {
|
|
121
|
-
"stage": "second",
|
|
122
|
-
"port": "text"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
]
|
|
100
|
+
"connections": []
|
|
126
101
|
}
|
|
@@ -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.",
|
|
@@ -17,17 +21,25 @@
|
|
|
17
21
|
"timeline": {
|
|
18
22
|
"type": "timeline",
|
|
19
23
|
"context": "timeline",
|
|
20
|
-
"primary": true
|
|
24
|
+
"primary": true,
|
|
25
|
+
"required": true,
|
|
26
|
+
"semantic": "edit_timeline",
|
|
27
|
+
"description": "The cut to improve."
|
|
21
28
|
},
|
|
22
29
|
"direction": {
|
|
23
30
|
"type": "text",
|
|
24
|
-
"default": "Polish this cut conservatively."
|
|
31
|
+
"default": "Polish this cut conservatively.",
|
|
32
|
+
"required": false,
|
|
33
|
+
"semantic": "edit_direction",
|
|
34
|
+
"description": "How to change the cut, in a sentence."
|
|
25
35
|
}
|
|
26
36
|
},
|
|
27
37
|
"outputs": {
|
|
28
38
|
"edit": {
|
|
29
39
|
"type": "timeline-edit",
|
|
30
|
-
"primary": true
|
|
40
|
+
"primary": true,
|
|
41
|
+
"semantic": "timeline_edit",
|
|
42
|
+
"description": "The proposed changes to review before they apply."
|
|
31
43
|
}
|
|
32
44
|
},
|
|
33
45
|
"permissions": {
|
|
@@ -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.",
|
|
@@ -16,17 +20,25 @@
|
|
|
16
20
|
"inputs": {
|
|
17
21
|
"audio": {
|
|
18
22
|
"type": "audio",
|
|
19
|
-
"primary": true
|
|
23
|
+
"primary": true,
|
|
24
|
+
"required": true,
|
|
25
|
+
"semantic": "source_audio",
|
|
26
|
+
"description": "The recording to turn into text."
|
|
20
27
|
},
|
|
21
28
|
"language": {
|
|
22
29
|
"type": "text",
|
|
23
|
-
"default": "auto"
|
|
30
|
+
"default": "auto",
|
|
31
|
+
"required": false,
|
|
32
|
+
"semantic": "language_code",
|
|
33
|
+
"description": "auto, or a two-letter language code such as en."
|
|
24
34
|
}
|
|
25
35
|
},
|
|
26
36
|
"outputs": {
|
|
27
37
|
"transcript": {
|
|
28
38
|
"type": "transcript",
|
|
29
|
-
"primary": true
|
|
39
|
+
"primary": true,
|
|
40
|
+
"semantic": "timed_transcript",
|
|
41
|
+
"description": "The spoken words with their timings."
|
|
30
42
|
}
|
|
31
43
|
},
|
|
32
44
|
"permissions": {
|
|
@@ -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
|
@@ -45,7 +45,8 @@ import {previewProjectType} from '../block-platform/type-preview.js';
|
|
|
45
45
|
import {assessBlockReadiness} from '../block-platform/block-readiness.js';
|
|
46
46
|
import {defineBrowserApplicationSource} from '../block-sdk/browser-application-execution.js';
|
|
47
47
|
import { BUILTIN_BLOCKS } from '../block-platform/catalog.js';
|
|
48
|
-
import {
|
|
48
|
+
import { typeWorkspaceSupport } from '../block-platform/type-workspace.js';
|
|
49
|
+
import {embedTypePackages,checkTypeModuleSources,typeModuleRunner,TYPE_SCAFFOLD} from './type-packages.js';
|
|
49
50
|
import {PLATFORM_CHECK_POLICY,PLATFORM_CHECK_TARGETS,PLATFORM_CHECK_THEMES} from '../block-sdk/platform-checks.js';
|
|
50
51
|
import {MODULE_LIMITS} from '../block-sdk/module-runtime.js';
|
|
51
52
|
import {createModuleBundle,readModuleBundle,hasDigestFiles,MODULE_BUNDLE_SUFFIX} from '../block-sdk/module-bundle.js';
|
|
@@ -202,7 +203,7 @@ export async function main(rawArgs) {
|
|
|
202
203
|
if(args[0]==='templates'||args[0]==='create'&&args.includes('--list'))return {templates:Object.entries(TEMPLATES).map(([name,template])=>({name,runtime:template.runtime,description:template.description}))};
|
|
203
204
|
const [command, target = '.', extra] = args, path = resolve(target);
|
|
204
205
|
if (command === 'create-type') {
|
|
205
|
-
await writeFile(path, JSON.stringify(
|
|
206
|
+
await writeFile(path, JSON.stringify(TYPE_SCAFFOLD, null, 2), { flag: 'wx' });
|
|
206
207
|
return { created: path, kind: 'type' };
|
|
207
208
|
}
|
|
208
209
|
if (command === 'create') {
|
|
@@ -223,7 +224,7 @@ export async function main(rawArgs) {
|
|
|
223
224
|
for(const name of names){await mkdir(dirname(join(path,name)),{recursive:true});await writeFile(join(path,name),files[name],{flag:'wx'});}
|
|
224
225
|
// Coding agents read command output: restate the readiness rule where they will see it, with the folder as it
|
|
225
226
|
// was typed (October 27, 2026: `gate .` in the folder holding an extracted SDK judged the SDK's examples too).
|
|
226
|
-
return { created: path, sdkVersion: '0.1.0', template:template.name, runtime:template.runtime, files:names, next: `Build the Block and write its feature map (\`manifest.features\`: one entry per thing it can do), then run \`stillmade-block gate ${/\s/.test(target)?`"${target}"`:target}\`. Do not call the Block ready until the gate passes; report the status it prints.` };
|
|
227
|
+
return { created: path, sdkVersion: '0.1.0', template:template.name, runtime:template.runtime, files:names, next: `Build the Block, replace its placeholder \`description\` and the copyright holder in \`provenance.notice\` (the person it is made for), and write its feature map (\`manifest.features\`: one entry per thing it can do), then run \`stillmade-block gate ${/\s/.test(target)?`"${target}"`:target}\`. Do not call the Block ready until the gate passes; report the status it prints.` };
|
|
227
228
|
}
|
|
228
229
|
if (command === 'gate') {
|
|
229
230
|
// Every new or edited Block in a folder must pass readiness before anyone calls it ready.
|
|
@@ -245,6 +246,8 @@ export async function main(rawArgs) {
|
|
|
245
246
|
}
|
|
246
247
|
if (!['validate', 'test', 'preview', 'pack', 'inspect', 'remix', 'ready', 'permissions'].includes(command)) throw Object.assign(new Error(`Unknown command ${command}. Run stillmade-block --help for the commands.`),{code:'USAGE'});
|
|
247
248
|
let pkg = await readPackage(path);
|
|
249
|
+
// A Type's packages may name a packed Block or a Block folder, or embed a packed module bundle (type-packages.js).
|
|
250
|
+
if(pkg?.stages)pkg=await embedTypePackages(pkg,{folder:dirname(path),resolvePath:resolve,read:async file=>{const block=await readPackage(file);return {pkg:block,files:moduleFiles.get(block)};}});
|
|
248
251
|
if(args.includes('--original')){
|
|
249
252
|
if(command!=='pack'||!extra||extra.startsWith('--'))throw new Error('Use pack <source> <output.stillmade-block> --original only for your own original implementation.');
|
|
250
253
|
pkg=withOriginalSource(pkg);
|
|
@@ -286,6 +289,7 @@ export async function main(rawArgs) {
|
|
|
286
289
|
// StillMade cannot store text with a NUL character; say where it is before the author imports the package.
|
|
287
290
|
if(['validate','test','pack','ready'].includes(command))assertStorableText(pkg);
|
|
288
291
|
if (pkg.stages) {
|
|
292
|
+
await checkTypeModuleSources(pkg);
|
|
289
293
|
const valid = validateProjectType(pkg, BUILTIN_BLOCKS);
|
|
290
294
|
if (!valid.valid) throw new Error(valid.errors.map(e => e.message).join('. '));
|
|
291
295
|
if(command !== 'preview')for(const block of pkg.packages || [])appearanceAdvice(block.view);
|
|
@@ -294,7 +298,10 @@ export async function main(rawArgs) {
|
|
|
294
298
|
if (command === 'validate') return { valid: true, id: pkg.id,...(args.includes('--mobile')?{mobileProfile:mobileProfile()}:{}),...(hosted ? {tests:0,...review} : {}) };
|
|
295
299
|
if (command === 'inspect') return { id: pkg.id, version: pkg.version, stages: pkg.stages, workspace: typeWorkspaceSupport(pkg) };
|
|
296
300
|
if(command==='permissions')return {id:pkg.id,blocks:(pkg.packages||[]).map(block=>({id:block.manifest.id,summary:summarizePermissions(block.manifest)}))};
|
|
297
|
-
|
|
301
|
+
// Module Steps run in the SDK's local module runner, as `test` and `preview` run a module Block (type-packages.js).
|
|
302
|
+
const runner=typeModuleRunner({mock:mockRequested,readLocalFile:localFileReader(dirname(path))});
|
|
303
|
+
const standIns=()=>{const calls=runner.calls();return calls.length?{standIns:calls,liveVerified:false}:{};};
|
|
304
|
+
if (command === 'preview') {const preview=await previewProjectType(pkg,{inputs:extra ? JSON.parse(await readFile(resolve(extra),'utf8')) : {},run:runner.run});return {...preview,...standIns()};}
|
|
298
305
|
// Export source without executing local or hosted code. This is not an
|
|
299
306
|
// admission report; every embedded package still needs host review later.
|
|
300
307
|
if(command==='pack' && hosted){
|
|
@@ -306,12 +313,12 @@ export async function main(rawArgs) {
|
|
|
306
313
|
await writeFile(output,JSON.stringify(pkg,null,2),{flag:packFlag(extra)});
|
|
307
314
|
return {file:output,digest:await digest(pkg),tests:0,...review,message:'Project Type source packaged without execution. In StillMade, review every embedded hosted Block in StillMade (including ComfyUI backend fixtures and samples), then confirm the import after local admission checks. The connected workflow has not run.'};
|
|
308
315
|
}
|
|
309
|
-
const report = await testProjectType(pkg);
|
|
316
|
+
const report = {...await testProjectType(pkg,runner.test,{run:runner.run}),...standIns()};
|
|
310
317
|
if (!report.passed) throw Object.assign(new Error('Project Type validation or execution checks need attention'), { report:{...report,...(hosted ? {reviewRequired:true,liveVerified:false} : {})} });
|
|
311
318
|
if (command === 'test') return report;
|
|
312
319
|
const output = jsonOutput(extra,`${pkg.id}-${pkg.version}.stillmade.json`);
|
|
313
320
|
await writeFile(output, JSON.stringify(pkg, null, 2), { flag: packFlag(extra) });
|
|
314
|
-
return { file: output, digest: report.digest, tests: (pkg.packages || []).reduce((count,dependency)=>count+dependency.tests.length,0), workflowComplete:report.workflowComplete, workflowStatus:report.workflowStatus };
|
|
321
|
+
return { file: output, digest: report.digest, tests: (pkg.packages || []).reduce((count,dependency)=>count+dependency.tests.length,0), workflowComplete:report.workflowComplete, workflowStatus:report.workflowStatus,...standIns() };
|
|
315
322
|
}
|
|
316
323
|
// permissions: what the Block can do in plain words, and what its source uses that
|
|
317
324
|
// the manifest does not declare (or declares and never uses). --fix corrects the
|