stillmade-sdk 0.1.8 → 0.1.9
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 +1 -1
- package/AGENTS.md +8 -2
- package/DESKTOP_CAPABILITIES.md +1 -1
- package/INTERFACE_DESIGN.md +167 -83
- package/MODULES.md +1 -1
- package/NATIVE_MCP.md +1 -1
- package/PASTE_TO_LLM.md +151 -12
- package/README.md +5 -2
- package/SDK.md +510 -115
- package/UI_AESTHETIC.md +64 -0
- package/blocks/native/sm.export-video/versions/2.1.0/package.js +580 -0
- package/blocks/native/sm.panel-strip/versions/2.4.0/package.js +1176 -0
- package/blocks/native/sm.panel-strip/versions/2.4.1/package.js +1316 -0
- package/blocks/native/sm.shot-plan/versions/2.2.0/package.js +800 -0
- package/blocks/native/sm.shot-plan/versions/2.2.1/package.js +920 -0
- package/examples/README.md +10 -0
- package/examples/custom-interface.stillmade.json +3 -3
- package/package.json +7 -1
- package/packages/block-cli/dev-host/assets/host.js +214 -28
- package/packages/block-cli/dev-host/assets/index.css +1 -1
- package/packages/block-cli/format.js +1 -1
- package/packages/block-cli/templates.js +53 -22
- package/packages/block-platform/block-readiness.js +5 -0
- package/packages/block-platform/brief-ports.js +29 -0
- package/packages/block-platform/catalog.js +32 -9
- package/packages/block-platform/current-semantic-source.js +7 -3
- package/packages/block-platform/flow-inspection.js +14 -4
- package/packages/block-platform/plain-descriptions.js +1 -1
- package/packages/block-platform/project-context.js +7 -0
- package/packages/block-platform/project-input-samples.js +3 -1
- package/packages/block-platform/project-inputs.js +11 -2
- package/packages/block-platform/project-start-input.js +46 -0
- package/packages/block-platform/step-groups.js +2 -0
- package/packages/block-platform/steps.js +55 -4
- package/packages/block-platform/type-preview.js +19 -3
- package/packages/block-platform/workspace-input-readset.js +6 -1
- package/packages/block-sdk/builder-contract.js +11 -5
- package/packages/block-sdk/collaboration-admission.js +4 -2
- package/packages/block-sdk/connection-adapters.js +35 -2
- package/packages/block-sdk/contracts.js +5 -2
- package/packages/block-sdk/examples.js +3 -3
- package/packages/block-sdk/first-party-identities.js +190 -0
- package/packages/block-sdk/first-party-packages.js +6 -1
- package/packages/block-sdk/index.d.ts +2 -0
- package/packages/block-sdk/index.js +1 -1
- package/packages/block-sdk/javascript.js +5 -1
- package/packages/block-sdk/platform-checks.js +13 -2
- package/packages/block-sdk/shared-agent-controls.js +5 -4
- package/packages/block-sdk/shared-controls.js +13 -9
- package/packages/block-sdk/view-design.js +104 -27
- package/packages/block-sdk/view.js +4 -2
- package/packages/design-system/block-kit.css +183 -0
- package/packages/design-system/block-kit.html +187 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Examples
|
|
2
|
+
|
|
3
|
+
Copy the interface of `clean-text.stillmade.json` or a `stillmade-block new` template. They use the Block kit
|
|
4
|
+
(`packages/design-system/block-kit.html`): no page heading or intro text, pictures before words, one
|
|
5
|
+
`sm-primary` button named for its action, and no prices (StillMade's run button shows them).
|
|
6
|
+
|
|
7
|
+
Files named `docs-only-*` are unchanged first submissions from documentation-only tests
|
|
8
|
+
(`acceptance/README.md`). Several were written before the Block kit and break its rules, for example
|
|
9
|
+
`docs-only-gentle-trailer.stillmade.json` with its heading, intro line and unstyled button. Read them for
|
|
10
|
+
their logic, not their interface.
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"view": {
|
|
74
|
-
"html": "<main class=\"
|
|
75
|
-
"css": "
|
|
76
|
-
"javascript": "const source=document.getElementById(\"source\"), button=document.getElementById(\"run\"), result=document.getElementById(\"result\"); StillMade.onInput(input=>{source.value=input.text||\"\";document.querySelector(\"main\").dataset.stillmadeState=source.value?\"populated\":\"empty\"}); button.addEventListener(\"click\",async()=>{button.disabled=true;result.dataset.stillmadeState=\"loading\";result.textContent=\"Cleaning…\";try{const output=await StillMade.run({text:source.value});result.dataset.stillmadeState=\"success\";result.textContent=output.text||\"
|
|
74
|
+
"html": "<main class=\"sm-block\" data-layout=\"split\"><output class=\"sm-stage\" id=\"result\" aria-live=\"polite\" data-stillmade-state=\"empty\">Your result shows here</output><div class=\"sm-field\"><label for=\"source\">Text</label><textarea id=\"source\" data-stillmade-input=\"text\" data-stillmade-share=\"text\"></textarea></div><div class=\"sm-actions\"><button class=\"sm-primary\" id=\"run\" data-stillmade-action=\"run\">Clean text</button></div></main>",
|
|
75
|
+
"css": "#result{place-items:start;min-height:160px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--fg)}#result[data-stillmade-state=\"empty\"]{place-items:center;color:var(--fg-muted)}",
|
|
76
|
+
"javascript": "const source=document.getElementById(\"source\"), button=document.getElementById(\"run\"), result=document.getElementById(\"result\"); StillMade.onInput(input=>{source.value=input.text||\"\";document.querySelector(\"main\").dataset.stillmadeState=source.value?\"populated\":\"empty\"}); button.addEventListener(\"click\",async()=>{button.disabled=true;result.dataset.stillmadeState=\"loading\";result.textContent=\"Cleaning…\";try{const output=await StillMade.run({text:source.value});result.dataset.stillmadeState=\"success\";result.textContent=output.text||\"Empty result\"}catch(error){result.dataset.stillmadeState=\"error\";result.textContent=error.message}finally{button.disabled=false}});"
|
|
77
77
|
}
|
|
78
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stillmade-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "StillMade Block SDK, CLI and examples",
|
|
5
5
|
"license": "PolyForm-Shield-1.0.0",
|
|
6
6
|
"type": "module",
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
"sdk",
|
|
12
12
|
"cli"
|
|
13
13
|
],
|
|
14
|
+
"main": "packages/block-sdk/index.js",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./packages/block-sdk/index.js",
|
|
17
|
+
"./package.json": "./package.json",
|
|
18
|
+
"./*": "./*"
|
|
19
|
+
},
|
|
14
20
|
"bin": {
|
|
15
21
|
"stillmade-block": "packages/block-cli/cli.js"
|
|
16
22
|
},
|