stillmade-sdk 0.1.42 → 0.1.44
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 +6 -8
- package/AGENTS.md +15 -10
- package/FRAME_VIEWS.md +113 -0
- package/INTERFACE_DESIGN.md +62 -22
- package/MOBILE_UI.md +4 -2
- package/MODULES.md +152 -6
- package/PASTE_TO_LLM.md +35 -25
- package/README.md +3 -2
- package/SDK.md +994 -550
- package/UI_AESTHETIC.md +22 -2
- 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 +4 -1
- package/examples/generate-video.stillmade.json +6 -2
- package/examples/research-topic.stillmade.json +5 -1
- package/examples/text-workflow.stillmade.json +3 -32
- package/examples/timeline-polish.stillmade.json +11 -3
- package/examples/transcribe-audio.stillmade.json +11 -3
- package/package.json +1 -1
- package/packages/block-cli/cli.js +13 -6
- package/packages/block-cli/dev-host/assets/host.js +76 -38
- 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 +31 -13
- package/packages/block-cli/type-packages.js +119 -0
- package/packages/block-platform/block-readiness.js +5 -0
- 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/block-tier.js +1 -1
- package/packages/block-sdk/builder-contract.js +10 -8
- package/packages/block-sdk/capabilities.js +1 -1
- package/packages/block-sdk/contracts.js +6 -2
- 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/index.d.ts +2 -1
- package/packages/block-sdk/media-analysis-example.js +1 -1
- package/packages/block-sdk/mock-host.js +7 -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/timeline-proposal-example.js +1 -1
- package/packages/block-sdk/transcription-example.js +1 -1
- 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 +17 -14
- package/packages/block-sdk/web-example.js +1 -1
- package/packages/design-system/block-kit.css +48 -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
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
// Generated by scripts/build-owned-blocks.mjs. Edit the owned source files.
|
|
2
|
-
export default {
|
|
3
|
-
"manifest": {
|
|
4
|
-
"schemaVersion": 1,
|
|
5
|
-
"sdkVersion": "0.1.0",
|
|
6
|
-
"id": "sm.quality-audit",
|
|
7
|
-
"version": "1.0.0",
|
|
8
|
-
"name": "Quality review plan",
|
|
9
|
-
"description": "Prepare a bounded visual quality review for exact saved asset versions before final export.",
|
|
10
|
-
"kind": "task",
|
|
11
|
-
"runtime": "javascript",
|
|
12
|
-
"entry": "src/run.js",
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"provenance": {
|
|
15
|
-
"notice": "Original source (authorship declared by the packager)\nLicense: MIT\nChanges: Original implementation declared by the packager; no reused repository or dependency code.\nFiles: LICENSE, src/run.js, src/view.json\n\nMIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
|
16
|
-
"portableSources": [
|
|
17
|
-
{
|
|
18
|
-
"kind": "original",
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"paths": [
|
|
21
|
-
"LICENSE",
|
|
22
|
-
"src/run.js",
|
|
23
|
-
"src/view.json"
|
|
24
|
-
],
|
|
25
|
-
"evidence": [
|
|
26
|
-
"upstream/0/LICENSE",
|
|
27
|
-
"upstream/0/src/run.js",
|
|
28
|
-
"upstream/0/src/view.json"
|
|
29
|
-
],
|
|
30
|
-
"changes": "Original implementation declared by the packager; no reused repository or dependency code."
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"inputs": {
|
|
35
|
-
"assets": {
|
|
36
|
-
"type": "asset[]",
|
|
37
|
-
"context": "assets",
|
|
38
|
-
"primary": true,
|
|
39
|
-
"description": "One to sixteen saved image asset versions."
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"outputs": {
|
|
43
|
-
"plan": {
|
|
44
|
-
"type": "metadata",
|
|
45
|
-
"primary": true,
|
|
46
|
-
"description": "Exact image.describe calls for review and receipt settlement."
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"permissions": {
|
|
50
|
-
"project": [
|
|
51
|
-
"context.assets.read",
|
|
52
|
-
"asset.read"
|
|
53
|
-
],
|
|
54
|
-
"network": [],
|
|
55
|
-
"filesystem": [],
|
|
56
|
-
"secrets": []
|
|
57
|
-
},
|
|
58
|
-
"ui": [],
|
|
59
|
-
"platforms": {
|
|
60
|
-
"phone": {
|
|
61
|
-
"supported": true
|
|
62
|
-
},
|
|
63
|
-
"browser": {
|
|
64
|
-
"supported": true
|
|
65
|
-
},
|
|
66
|
-
"desktop": {
|
|
67
|
-
"supported": true
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"code": "const assets=input.assets.filter(asset=>asset&&asset.kind==='image'&&typeof asset.assetId==='string'&&typeof asset.versionId==='string').slice(0,16);\nif(!assets.length)throw new Error('Select at least one saved image asset.');\nconst seen=[];\nfor(const asset of assets){const key=asset.assetId+':'+asset.versionId;if(seen.includes(key))throw new Error('Choose distinct image versions.');seen.push(key);}\nreturn {plan:{schemaVersion:1,operation:'multi-asset-quality',title:'Quality review for '+String(assets.length)+' image'+(assets.length===1?'':'s'),calls:assets.map((asset,index)=>({index,operation:'image.describe',asset:{kind:'image',assetId:asset.assetId,versionId:asset.versionId,url:asset.url},instruction:'Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset.'}))}};\n",
|
|
72
|
-
"view": {
|
|
73
|
-
"html": "<main><header><small>Preflight</small><h1>Quality review</h1><p>Check every selected image version before export.</p></header><section><h2 id=\"count\">No images selected</h2><p id=\"detail\">Add saved images to this Block to prepare the review.</p><button id=\"run\" type=\"button\">Prepare quality review</button><output id=\"status\" role=\"status\"></output></section></main>\n",
|
|
74
|
-
"css": "main{max-width:680px;margin:0 auto;padding:18px;color:var(--fg)}header,section{padding:18px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg-elev-1)}header{margin-bottom:14px}h1,h2{margin:4px 0 8px}p,small,output{color:var(--fg-muted)}button{margin-top:12px}output{display:block;min-height:24px;margin-top:12px}\n",
|
|
75
|
-
"javascript": "const count=document.getElementById('count'),detail=document.getElementById('detail'),button=document.getElementById('run'),status=document.getElementById('status');let assets=[];StillMade.onInput(values=>{assets=values.assets||[];count.textContent=String(assets.length)+' image version'+(assets.length===1?'':'s');detail.textContent=assets.length?'The review stays pinned to these exact saved versions.':'Add saved images to this Block to prepare the review.';button.disabled=!assets.length});button.addEventListener('click',async()=>{button.disabled=true;status.textContent='Preparing the review…';try{const result=await StillMade.run({assets});status.textContent=String(result.plan.calls.length)+' image checks are ready to run and retain.'}catch(error){status.textContent=error.message||'The review could not be prepared.'}finally{button.disabled=!assets.length}});\n"
|
|
76
|
-
},
|
|
77
|
-
"tests": [
|
|
78
|
-
{
|
|
79
|
-
"name": "one exact version",
|
|
80
|
-
"input": {
|
|
81
|
-
"assets": [
|
|
82
|
-
{
|
|
83
|
-
"kind": "image",
|
|
84
|
-
"assetId": "asset-a",
|
|
85
|
-
"versionId": "v1",
|
|
86
|
-
"url": "/api/media/a"
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
"expected": {
|
|
91
|
-
"plan": {
|
|
92
|
-
"schemaVersion": 1,
|
|
93
|
-
"operation": "multi-asset-quality",
|
|
94
|
-
"title": "Quality review for 1 image",
|
|
95
|
-
"calls": [
|
|
96
|
-
{
|
|
97
|
-
"index": 0,
|
|
98
|
-
"operation": "image.describe",
|
|
99
|
-
"asset": {
|
|
100
|
-
"kind": "image",
|
|
101
|
-
"assetId": "asset-a",
|
|
102
|
-
"versionId": "v1",
|
|
103
|
-
"url": "/api/media/a"
|
|
104
|
-
},
|
|
105
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "two exact versions",
|
|
113
|
-
"input": {
|
|
114
|
-
"assets": [
|
|
115
|
-
{
|
|
116
|
-
"kind": "image",
|
|
117
|
-
"assetId": "asset-a",
|
|
118
|
-
"versionId": "v1",
|
|
119
|
-
"url": "/api/media/a"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"kind": "image",
|
|
123
|
-
"assetId": "asset-b",
|
|
124
|
-
"versionId": "v2",
|
|
125
|
-
"url": "/api/media/b"
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
"expected": {
|
|
130
|
-
"plan": {
|
|
131
|
-
"schemaVersion": 1,
|
|
132
|
-
"operation": "multi-asset-quality",
|
|
133
|
-
"title": "Quality review for 2 images",
|
|
134
|
-
"calls": [
|
|
135
|
-
{
|
|
136
|
-
"index": 0,
|
|
137
|
-
"operation": "image.describe",
|
|
138
|
-
"asset": {
|
|
139
|
-
"kind": "image",
|
|
140
|
-
"assetId": "asset-a",
|
|
141
|
-
"versionId": "v1",
|
|
142
|
-
"url": "/api/media/a"
|
|
143
|
-
},
|
|
144
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"index": 1,
|
|
148
|
-
"operation": "image.describe",
|
|
149
|
-
"asset": {
|
|
150
|
-
"kind": "image",
|
|
151
|
-
"assetId": "asset-b",
|
|
152
|
-
"versionId": "v2",
|
|
153
|
-
"url": "/api/media/b"
|
|
154
|
-
},
|
|
155
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"portable": {
|
|
163
|
-
"format": "stillmade-block/1",
|
|
164
|
-
"dependencies": [],
|
|
165
|
-
"sources": [
|
|
166
|
-
{
|
|
167
|
-
"kind": "original",
|
|
168
|
-
"license": "MIT",
|
|
169
|
-
"paths": [
|
|
170
|
-
"LICENSE",
|
|
171
|
-
"src/run.js",
|
|
172
|
-
"src/view.json"
|
|
173
|
-
],
|
|
174
|
-
"evidence": [
|
|
175
|
-
"upstream/0/LICENSE",
|
|
176
|
-
"upstream/0/src/run.js",
|
|
177
|
-
"upstream/0/src/view.json"
|
|
178
|
-
],
|
|
179
|
-
"changes": "Original implementation declared by the packager; no reused repository or dependency code."
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
"files": {
|
|
183
|
-
"upstream/0/LICENSE": "MIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
|
184
|
-
"upstream/0/src/run.js": "const assets=input.assets.filter(asset=>asset&&asset.kind==='image'&&typeof asset.assetId==='string'&&typeof asset.versionId==='string').slice(0,16);\nif(!assets.length)throw new Error('Select at least one saved image asset.');\nconst seen=[];\nfor(const asset of assets){const key=asset.assetId+':'+asset.versionId;if(seen.includes(key))throw new Error('Choose distinct image versions.');seen.push(key);}\nreturn {plan:{schemaVersion:1,operation:'multi-asset-quality',title:'Quality review for '+String(assets.length)+' image'+(assets.length===1?'':'s'),calls:assets.map((asset,index)=>({index,operation:'image.describe',asset:{kind:'image',assetId:asset.assetId,versionId:asset.versionId,url:asset.url},instruction:'Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset.'}))}};\n",
|
|
185
|
-
"upstream/0/src/view.json": "{\n \"html\": \"<main><header><small>Preflight</small><h1>Quality review</h1><p>Check every selected image version before export.</p></header><section><h2 id=\\\"count\\\">No images selected</h2><p id=\\\"detail\\\">Add saved images to this Block to prepare the review.</p><button id=\\\"run\\\" type=\\\"button\\\">Prepare quality review</button><output id=\\\"status\\\" role=\\\"status\\\"></output></section></main>\\n\",\n \"css\": \"main{max-width:680px;margin:0 auto;padding:18px;color:var(--fg)}header,section{padding:18px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg-elev-1)}header{margin-bottom:14px}h1,h2{margin:4px 0 8px}p,small,output{color:var(--fg-muted)}button{margin-top:12px}output{display:block;min-height:24px;margin-top:12px}\\n\",\n \"javascript\": \"const count=document.getElementById('count'),detail=document.getElementById('detail'),button=document.getElementById('run'),status=document.getElementById('status');let assets=[];StillMade.onInput(values=>{assets=values.assets||[];count.textContent=String(assets.length)+' image version'+(assets.length===1?'':'s');detail.textContent=assets.length?'The review stays pinned to these exact saved versions.':'Add saved images to this Block to prepare the review.';button.disabled=!assets.length});button.addEventListener('click',async()=>{button.disabled=true;status.textContent='Preparing the review…';try{const result=await StillMade.run({assets});status.textContent=String(result.plan.calls.length)+' image checks are ready to run and retain.'}catch(error){status.textContent=error.message||'The review could not be prepared.'}finally{button.disabled=!assets.length}});\\n\"\n}"
|
|
186
|
-
},
|
|
187
|
-
"lineage": {
|
|
188
|
-
"parents": [],
|
|
189
|
-
"changes": "Packaged original Block source for StillMade."
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
};
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
// Generated by scripts/build-owned-blocks.mjs. Edit the owned source files.
|
|
2
|
-
export default {
|
|
3
|
-
"manifest": {
|
|
4
|
-
"schemaVersion": 1,
|
|
5
|
-
"sdkVersion": "0.1.0",
|
|
6
|
-
"id": "sm.quality-audit",
|
|
7
|
-
"version": "1.0.1",
|
|
8
|
-
"name": "Quality review plan",
|
|
9
|
-
"description": "Prepare a bounded visual quality review for exact saved asset versions before final export.",
|
|
10
|
-
"kind": "task",
|
|
11
|
-
"runtime": "javascript",
|
|
12
|
-
"entry": "src/run.js",
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"provenance": {
|
|
15
|
-
"notice": "Original source (authorship declared by the packager)\nLicense: MIT\nChanges: Original implementation declared by the packager; no reused repository or dependency code.\nFiles: LICENSE, src/run.js, src/view.json\n\nMIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
|
16
|
-
"portableSources": [
|
|
17
|
-
{
|
|
18
|
-
"kind": "original",
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"paths": [
|
|
21
|
-
"LICENSE",
|
|
22
|
-
"src/run.js",
|
|
23
|
-
"src/view.json"
|
|
24
|
-
],
|
|
25
|
-
"evidence": [
|
|
26
|
-
"upstream/0/LICENSE",
|
|
27
|
-
"upstream/0/src/run.js",
|
|
28
|
-
"upstream/0/src/view.json"
|
|
29
|
-
],
|
|
30
|
-
"changes": "Original implementation declared by the packager; no reused repository or dependency code."
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"inputs": {
|
|
35
|
-
"assets": {
|
|
36
|
-
"type": "asset[]",
|
|
37
|
-
"context": "assets",
|
|
38
|
-
"primary": true,
|
|
39
|
-
"description": "One to sixteen saved image asset versions."
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"outputs": {
|
|
43
|
-
"plan": {
|
|
44
|
-
"type": "metadata",
|
|
45
|
-
"primary": true,
|
|
46
|
-
"description": "Exact image.describe calls for review and receipt settlement."
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"permissions": {
|
|
50
|
-
"project": [
|
|
51
|
-
"context.assets.read",
|
|
52
|
-
"asset.read"
|
|
53
|
-
],
|
|
54
|
-
"network": [],
|
|
55
|
-
"filesystem": [],
|
|
56
|
-
"secrets": []
|
|
57
|
-
},
|
|
58
|
-
"ui": [],
|
|
59
|
-
"platforms": {
|
|
60
|
-
"phone": {
|
|
61
|
-
"supported": true
|
|
62
|
-
},
|
|
63
|
-
"browser": {
|
|
64
|
-
"supported": true
|
|
65
|
-
},
|
|
66
|
-
"desktop": {
|
|
67
|
-
"supported": true
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"code": "const assets=input.assets.filter(asset=>asset&&asset.kind==='image'&&typeof asset.assetId==='string'&&typeof asset.versionId==='string').slice(0,16);\nif(!assets.length)throw new Error('Select at least one saved image asset.');\nconst seen=[];\nfor(const asset of assets){const key=asset.assetId+':'+asset.versionId;if(seen.includes(key))throw new Error('Choose distinct image versions.');seen.push(key);}\nreturn {plan:{schemaVersion:1,operation:'multi-asset-quality',title:'Quality review for '+String(assets.length)+' image'+(assets.length===1?'':'s'),calls:assets.map((asset,index)=>({index,operation:'image.describe',asset:{kind:'image',assetId:asset.assetId,versionId:asset.versionId,url:asset.url},instruction:'Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset.'}))}};\n",
|
|
72
|
-
"view": {
|
|
73
|
-
"html": "<main><header><small>Preflight</small><h1>Quality review</h1><p>Check every selected image version before export.</p></header><section><h2 id=\"count\">No images selected</h2><p id=\"detail\">Add saved images to this Block to prepare the review.</p><button id=\"run\" type=\"button\">Prepare quality review</button><output id=\"status\" role=\"status\"></output></section></main>\n",
|
|
74
|
-
"css": "main{max-width:680px;margin:0 auto;padding:18px;color:var(--fg)}header,section{padding:18px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg-elev-1)}header{margin-bottom:14px}h1,h2{margin:4px 0 8px}p,small,output{color:var(--fg-muted)}button{margin-top:12px}output{display:block;min-height:24px;margin-top:12px}\n",
|
|
75
|
-
"javascript": "const count=document.getElementById('count'),detail=document.getElementById('detail'),button=document.getElementById('run'),status=document.getElementById('status');\nlet assets=[],canEdit=false,busy=false;\nconst updateButton=()=>{button.disabled=!assets.length||!canEdit||busy;};\nconst showResult=result=>{if(result?.plan?.calls)status.textContent=String(result.plan.calls.length)+' image checks are ready to run and retain.';else if(!busy)status.textContent='';};\nStillMade.onInput(values=>{\n assets=values.assets||[];\n count.textContent=String(assets.length)+' image version'+(assets.length===1?'':'s');\n detail.textContent=assets.length?'The review stays pinned to these exact saved versions.':'Add saved images to this Block to prepare the review.';\n updateButton();\n});\nStillMade.onShared(shared=>{canEdit=shared.canEdit;showResult(shared.outputs);updateButton();});\nbutton.addEventListener('click',async()=>{\n if(busy||!canEdit||!assets.length)return;\n busy=true;updateButton();status.textContent='Preparing the review…';\n try{showResult(await StillMade.run({assets}));}\n catch(error){status.textContent=error.message||'The review could not be prepared.';}\n finally{busy=false;updateButton();}\n});\n"
|
|
76
|
-
},
|
|
77
|
-
"tests": [
|
|
78
|
-
{
|
|
79
|
-
"name": "one exact version",
|
|
80
|
-
"input": {
|
|
81
|
-
"assets": [
|
|
82
|
-
{
|
|
83
|
-
"kind": "image",
|
|
84
|
-
"assetId": "asset-a",
|
|
85
|
-
"versionId": "v1",
|
|
86
|
-
"url": "/api/media/a"
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
"expected": {
|
|
91
|
-
"plan": {
|
|
92
|
-
"schemaVersion": 1,
|
|
93
|
-
"operation": "multi-asset-quality",
|
|
94
|
-
"title": "Quality review for 1 image",
|
|
95
|
-
"calls": [
|
|
96
|
-
{
|
|
97
|
-
"index": 0,
|
|
98
|
-
"operation": "image.describe",
|
|
99
|
-
"asset": {
|
|
100
|
-
"kind": "image",
|
|
101
|
-
"assetId": "asset-a",
|
|
102
|
-
"versionId": "v1",
|
|
103
|
-
"url": "/api/media/a"
|
|
104
|
-
},
|
|
105
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "two exact versions",
|
|
113
|
-
"input": {
|
|
114
|
-
"assets": [
|
|
115
|
-
{
|
|
116
|
-
"kind": "image",
|
|
117
|
-
"assetId": "asset-a",
|
|
118
|
-
"versionId": "v1",
|
|
119
|
-
"url": "/api/media/a"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"kind": "image",
|
|
123
|
-
"assetId": "asset-b",
|
|
124
|
-
"versionId": "v2",
|
|
125
|
-
"url": "/api/media/b"
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
"expected": {
|
|
130
|
-
"plan": {
|
|
131
|
-
"schemaVersion": 1,
|
|
132
|
-
"operation": "multi-asset-quality",
|
|
133
|
-
"title": "Quality review for 2 images",
|
|
134
|
-
"calls": [
|
|
135
|
-
{
|
|
136
|
-
"index": 0,
|
|
137
|
-
"operation": "image.describe",
|
|
138
|
-
"asset": {
|
|
139
|
-
"kind": "image",
|
|
140
|
-
"assetId": "asset-a",
|
|
141
|
-
"versionId": "v1",
|
|
142
|
-
"url": "/api/media/a"
|
|
143
|
-
},
|
|
144
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"index": 1,
|
|
148
|
-
"operation": "image.describe",
|
|
149
|
-
"asset": {
|
|
150
|
-
"kind": "image",
|
|
151
|
-
"assetId": "asset-b",
|
|
152
|
-
"versionId": "v2",
|
|
153
|
-
"url": "/api/media/b"
|
|
154
|
-
},
|
|
155
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"portable": {
|
|
163
|
-
"format": "stillmade-block/1",
|
|
164
|
-
"dependencies": [],
|
|
165
|
-
"sources": [
|
|
166
|
-
{
|
|
167
|
-
"kind": "original",
|
|
168
|
-
"license": "MIT",
|
|
169
|
-
"paths": [
|
|
170
|
-
"LICENSE",
|
|
171
|
-
"src/run.js",
|
|
172
|
-
"src/view.json"
|
|
173
|
-
],
|
|
174
|
-
"evidence": [
|
|
175
|
-
"upstream/0/LICENSE",
|
|
176
|
-
"upstream/0/src/run.js",
|
|
177
|
-
"upstream/0/src/view.json"
|
|
178
|
-
],
|
|
179
|
-
"changes": "Original implementation declared by the packager; no reused repository or dependency code."
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
"files": {
|
|
183
|
-
"upstream/0/LICENSE": "MIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
|
184
|
-
"upstream/0/src/run.js": "const assets=input.assets.filter(asset=>asset&&asset.kind==='image'&&typeof asset.assetId==='string'&&typeof asset.versionId==='string').slice(0,16);\nif(!assets.length)throw new Error('Select at least one saved image asset.');\nconst seen=[];\nfor(const asset of assets){const key=asset.assetId+':'+asset.versionId;if(seen.includes(key))throw new Error('Choose distinct image versions.');seen.push(key);}\nreturn {plan:{schemaVersion:1,operation:'multi-asset-quality',title:'Quality review for '+String(assets.length)+' image'+(assets.length===1?'':'s'),calls:assets.map((asset,index)=>({index,operation:'image.describe',asset:{kind:'image',assetId:asset.assetId,versionId:asset.versionId,url:asset.url},instruction:'Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset.'}))}};\n",
|
|
185
|
-
"upstream/0/src/view.json": "{\n \"html\": \"<main><header><small>Preflight</small><h1>Quality review</h1><p>Check every selected image version before export.</p></header><section><h2 id=\\\"count\\\">No images selected</h2><p id=\\\"detail\\\">Add saved images to this Block to prepare the review.</p><button id=\\\"run\\\" type=\\\"button\\\">Prepare quality review</button><output id=\\\"status\\\" role=\\\"status\\\"></output></section></main>\\n\",\n \"css\": \"main{max-width:680px;margin:0 auto;padding:18px;color:var(--fg)}header,section{padding:18px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg-elev-1)}header{margin-bottom:14px}h1,h2{margin:4px 0 8px}p,small,output{color:var(--fg-muted)}button{margin-top:12px}output{display:block;min-height:24px;margin-top:12px}\\n\",\n \"javascript\": \"const count=document.getElementById('count'),detail=document.getElementById('detail'),button=document.getElementById('run'),status=document.getElementById('status');\\nlet assets=[],canEdit=false,busy=false;\\nconst updateButton=()=>{button.disabled=!assets.length||!canEdit||busy;};\\nconst showResult=result=>{if(result?.plan?.calls)status.textContent=String(result.plan.calls.length)+' image checks are ready to run and retain.';else if(!busy)status.textContent='';};\\nStillMade.onInput(values=>{\\n assets=values.assets||[];\\n count.textContent=String(assets.length)+' image version'+(assets.length===1?'':'s');\\n detail.textContent=assets.length?'The review stays pinned to these exact saved versions.':'Add saved images to this Block to prepare the review.';\\n updateButton();\\n});\\nStillMade.onShared(shared=>{canEdit=shared.canEdit;showResult(shared.outputs);updateButton();});\\nbutton.addEventListener('click',async()=>{\\n if(busy||!canEdit||!assets.length)return;\\n busy=true;updateButton();status.textContent='Preparing the review…';\\n try{showResult(await StillMade.run({assets}));}\\n catch(error){status.textContent=error.message||'The review could not be prepared.';}\\n finally{busy=false;updateButton();}\\n});\\n\"\n}"
|
|
186
|
-
},
|
|
187
|
-
"lineage": {
|
|
188
|
-
"parents": [],
|
|
189
|
-
"changes": "Packaged original Block source for StillMade."
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
};
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
// Generated by scripts/build-owned-blocks.mjs. Edit the owned source files.
|
|
2
|
-
export default {
|
|
3
|
-
"manifest": {
|
|
4
|
-
"schemaVersion": 1,
|
|
5
|
-
"sdkVersion": "0.1.0",
|
|
6
|
-
"id": "sm.quality-audit",
|
|
7
|
-
"version": "1.0.2",
|
|
8
|
-
"name": "Quality review plan",
|
|
9
|
-
"description": "Prepare a bounded visual quality review for exact saved asset versions before final export.",
|
|
10
|
-
"kind": "task",
|
|
11
|
-
"runtime": "javascript",
|
|
12
|
-
"entry": "src/run.js",
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"provenance": {
|
|
15
|
-
"notice": "Original source (authorship declared by the packager)\nLicense: MIT\nChanges: Original implementation declared by the packager; no reused repository or dependency code.\nFiles: LICENSE, src/run.js, src/view.json\n\nMIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
|
16
|
-
"portableSources": [
|
|
17
|
-
{
|
|
18
|
-
"kind": "original",
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"paths": [
|
|
21
|
-
"LICENSE",
|
|
22
|
-
"src/run.js",
|
|
23
|
-
"src/view.json"
|
|
24
|
-
],
|
|
25
|
-
"evidence": [
|
|
26
|
-
"upstream/0/LICENSE",
|
|
27
|
-
"upstream/0/src/run.js",
|
|
28
|
-
"upstream/0/src/view.json"
|
|
29
|
-
],
|
|
30
|
-
"changes": "Original implementation declared by the packager; no reused repository or dependency code."
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"inputs": {
|
|
35
|
-
"assets": {
|
|
36
|
-
"type": "asset[]",
|
|
37
|
-
"context": "assets",
|
|
38
|
-
"primary": true,
|
|
39
|
-
"description": "One to sixteen saved image asset versions.",
|
|
40
|
-
"semantic": "saved_asset_versions",
|
|
41
|
-
"required": true
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"outputs": {
|
|
45
|
-
"plan": {
|
|
46
|
-
"type": "metadata",
|
|
47
|
-
"primary": true,
|
|
48
|
-
"description": "Exact image.describe calls for review and receipt settlement.",
|
|
49
|
-
"semantic": "visual_quality_review_plan"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"permissions": {
|
|
53
|
-
"project": [
|
|
54
|
-
"context.assets.read",
|
|
55
|
-
"asset.read"
|
|
56
|
-
],
|
|
57
|
-
"network": [],
|
|
58
|
-
"filesystem": [],
|
|
59
|
-
"secrets": []
|
|
60
|
-
},
|
|
61
|
-
"ui": [],
|
|
62
|
-
"platforms": {
|
|
63
|
-
"phone": {
|
|
64
|
-
"supported": true
|
|
65
|
-
},
|
|
66
|
-
"browser": {
|
|
67
|
-
"supported": true
|
|
68
|
-
},
|
|
69
|
-
"desktop": {
|
|
70
|
-
"supported": true
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"code": "const assets=input.assets.filter(asset=>asset&&asset.kind==='image'&&typeof asset.assetId==='string'&&typeof asset.versionId==='string').slice(0,16);\nif(!assets.length)throw new Error('Select at least one saved image asset.');\nconst seen=[];\nfor(const asset of assets){const key=asset.assetId+':'+asset.versionId;if(seen.includes(key))throw new Error('Choose distinct image versions.');seen.push(key);}\nreturn {plan:{schemaVersion:1,operation:'multi-asset-quality',title:'Quality review for '+String(assets.length)+' image'+(assets.length===1?'':'s'),calls:assets.map((asset,index)=>({index,operation:'image.describe',asset:{kind:'image',assetId:asset.assetId,versionId:asset.versionId,url:asset.url},instruction:'Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset.'}))}};\n",
|
|
75
|
-
"view": {
|
|
76
|
-
"html": "<main><header><small>Preflight</small><h1>Quality review</h1><p>Check every selected image version before export.</p></header><section><h2 id=\"count\">No images selected</h2><p id=\"detail\">Add saved images to this Block to prepare the review.</p><button id=\"run\" type=\"button\">Prepare quality review</button><output id=\"status\" role=\"status\"></output></section></main>\n",
|
|
77
|
-
"css": "main{max-width:680px;margin:0 auto;padding:18px;color:var(--fg)}header,section{padding:18px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg-elev-1)}header{margin-bottom:14px}h1,h2{margin:4px 0 8px}p,small,output{color:var(--fg-muted)}button{margin-top:12px}output{display:block;min-height:24px;margin-top:12px}\n",
|
|
78
|
-
"javascript": "const count=document.getElementById('count'),detail=document.getElementById('detail'),button=document.getElementById('run'),status=document.getElementById('status');\nlet assets=[],canEdit=false,busy=false;\nconst updateButton=()=>{button.disabled=!assets.length||!canEdit||busy;};\nconst showResult=result=>{if(result?.plan?.calls)status.textContent=String(result.plan.calls.length)+' image checks are ready to run and retain.';else if(!busy)status.textContent='';};\nStillMade.onInput(values=>{\n assets=values.assets||[];\n count.textContent=String(assets.length)+' image version'+(assets.length===1?'':'s');\n detail.textContent=assets.length?'The review stays pinned to these exact saved versions.':'Add saved images to this Block to prepare the review.';\n updateButton();\n});\nStillMade.onShared(shared=>{canEdit=shared.canEdit;showResult(shared.outputs);updateButton();});\nbutton.addEventListener('click',async()=>{\n if(busy||!canEdit||!assets.length)return;\n busy=true;updateButton();status.textContent='Preparing the review…';\n try{showResult(await StillMade.run({assets}));}\n catch(error){status.textContent=error.message||'The review could not be prepared.';}\n finally{busy=false;updateButton();}\n});\n"
|
|
79
|
-
},
|
|
80
|
-
"tests": [
|
|
81
|
-
{
|
|
82
|
-
"name": "one exact version",
|
|
83
|
-
"input": {
|
|
84
|
-
"assets": [
|
|
85
|
-
{
|
|
86
|
-
"kind": "image",
|
|
87
|
-
"assetId": "asset-a",
|
|
88
|
-
"versionId": "v1",
|
|
89
|
-
"url": "/api/media/a"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
"expected": {
|
|
94
|
-
"plan": {
|
|
95
|
-
"schemaVersion": 1,
|
|
96
|
-
"operation": "multi-asset-quality",
|
|
97
|
-
"title": "Quality review for 1 image",
|
|
98
|
-
"calls": [
|
|
99
|
-
{
|
|
100
|
-
"index": 0,
|
|
101
|
-
"operation": "image.describe",
|
|
102
|
-
"asset": {
|
|
103
|
-
"kind": "image",
|
|
104
|
-
"assetId": "asset-a",
|
|
105
|
-
"versionId": "v1",
|
|
106
|
-
"url": "/api/media/a"
|
|
107
|
-
},
|
|
108
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "two exact versions",
|
|
116
|
-
"input": {
|
|
117
|
-
"assets": [
|
|
118
|
-
{
|
|
119
|
-
"kind": "image",
|
|
120
|
-
"assetId": "asset-a",
|
|
121
|
-
"versionId": "v1",
|
|
122
|
-
"url": "/api/media/a"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"kind": "image",
|
|
126
|
-
"assetId": "asset-b",
|
|
127
|
-
"versionId": "v2",
|
|
128
|
-
"url": "/api/media/b"
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
"expected": {
|
|
133
|
-
"plan": {
|
|
134
|
-
"schemaVersion": 1,
|
|
135
|
-
"operation": "multi-asset-quality",
|
|
136
|
-
"title": "Quality review for 2 images",
|
|
137
|
-
"calls": [
|
|
138
|
-
{
|
|
139
|
-
"index": 0,
|
|
140
|
-
"operation": "image.describe",
|
|
141
|
-
"asset": {
|
|
142
|
-
"kind": "image",
|
|
143
|
-
"assetId": "asset-a",
|
|
144
|
-
"versionId": "v1",
|
|
145
|
-
"url": "/api/media/a"
|
|
146
|
-
},
|
|
147
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"index": 1,
|
|
151
|
-
"operation": "image.describe",
|
|
152
|
-
"asset": {
|
|
153
|
-
"kind": "image",
|
|
154
|
-
"assetId": "asset-b",
|
|
155
|
-
"versionId": "v2",
|
|
156
|
-
"url": "/api/media/b"
|
|
157
|
-
},
|
|
158
|
-
"instruction": "Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset."
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
"portable": {
|
|
166
|
-
"format": "stillmade-block/1",
|
|
167
|
-
"dependencies": [],
|
|
168
|
-
"sources": [
|
|
169
|
-
{
|
|
170
|
-
"kind": "original",
|
|
171
|
-
"license": "MIT",
|
|
172
|
-
"paths": [
|
|
173
|
-
"LICENSE",
|
|
174
|
-
"src/run.js",
|
|
175
|
-
"src/view.json"
|
|
176
|
-
],
|
|
177
|
-
"evidence": [
|
|
178
|
-
"upstream/0/LICENSE",
|
|
179
|
-
"upstream/0/src/run.js",
|
|
180
|
-
"upstream/0/src/view.json"
|
|
181
|
-
],
|
|
182
|
-
"changes": "Original implementation declared by the packager; no reused repository or dependency code."
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"files": {
|
|
186
|
-
"upstream/0/LICENSE": "MIT License\n\nCopyright (c) 2026 StillMade contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
|
187
|
-
"upstream/0/src/run.js": "const assets=input.assets.filter(asset=>asset&&asset.kind==='image'&&typeof asset.assetId==='string'&&typeof asset.versionId==='string').slice(0,16);\nif(!assets.length)throw new Error('Select at least one saved image asset.');\nconst seen=[];\nfor(const asset of assets){const key=asset.assetId+':'+asset.versionId;if(seen.includes(key))throw new Error('Choose distinct image versions.');seen.push(key);}\nreturn {plan:{schemaVersion:1,operation:'multi-asset-quality',title:'Quality review for '+String(assets.length)+' image'+(assets.length===1?'':'s'),calls:assets.map((asset,index)=>({index,operation:'image.describe',asset:{kind:'image',assetId:asset.assetId,versionId:asset.versionId,url:asset.url},instruction:'Assess visible defects, legibility, continuity, composition, and production readiness. Return evidence, not a replacement asset.'}))}};\n",
|
|
188
|
-
"upstream/0/src/view.json": "{\n \"html\": \"<main><header><small>Preflight</small><h1>Quality review</h1><p>Check every selected image version before export.</p></header><section><h2 id=\\\"count\\\">No images selected</h2><p id=\\\"detail\\\">Add saved images to this Block to prepare the review.</p><button id=\\\"run\\\" type=\\\"button\\\">Prepare quality review</button><output id=\\\"status\\\" role=\\\"status\\\"></output></section></main>\\n\",\n \"css\": \"main{max-width:680px;margin:0 auto;padding:18px;color:var(--fg)}header,section{padding:18px;border:1px solid var(--border-tok);border-radius:var(--r-3);background:var(--bg-elev-1)}header{margin-bottom:14px}h1,h2{margin:4px 0 8px}p,small,output{color:var(--fg-muted)}button{margin-top:12px}output{display:block;min-height:24px;margin-top:12px}\\n\",\n \"javascript\": \"const count=document.getElementById('count'),detail=document.getElementById('detail'),button=document.getElementById('run'),status=document.getElementById('status');\\nlet assets=[],canEdit=false,busy=false;\\nconst updateButton=()=>{button.disabled=!assets.length||!canEdit||busy;};\\nconst showResult=result=>{if(result?.plan?.calls)status.textContent=String(result.plan.calls.length)+' image checks are ready to run and retain.';else if(!busy)status.textContent='';};\\nStillMade.onInput(values=>{\\n assets=values.assets||[];\\n count.textContent=String(assets.length)+' image version'+(assets.length===1?'':'s');\\n detail.textContent=assets.length?'The review stays pinned to these exact saved versions.':'Add saved images to this Block to prepare the review.';\\n updateButton();\\n});\\nStillMade.onShared(shared=>{canEdit=shared.canEdit;showResult(shared.outputs);updateButton();});\\nbutton.addEventListener('click',async()=>{\\n if(busy||!canEdit||!assets.length)return;\\n busy=true;updateButton();status.textContent='Preparing the review…';\\n try{showResult(await StillMade.run({assets}));}\\n catch(error){status.textContent=error.message||'The review could not be prepared.';}\\n finally{busy=false;updateButton();}\\n});\\n\"\n}"
|
|
189
|
-
},
|
|
190
|
-
"lineage": {
|
|
191
|
-
"parents": [],
|
|
192
|
-
"changes": "Packaged original Block source for StillMade."
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
};
|