stillmade-sdk 0.1.36 → 0.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/AGENTS.md +8 -8
  2. package/IMAGE_DESCRIPTION.md +2 -0
  3. package/MODULES.md +68 -10
  4. package/NATIVE_MCP.md +18 -7
  5. package/PASTE_TO_LLM.md +121 -50
  6. package/PORTABLE.md +7 -3
  7. package/README.md +19 -6
  8. package/REMIX.md +6 -0
  9. package/SDK.md +226 -103
  10. package/TRANSCRIPTION.md +4 -2
  11. package/UI_AESTHETIC.md +2 -0
  12. package/api-index.json +1 -1
  13. package/blocks/narration/package.js +1 -1
  14. package/blocks/narration/versions/1.0.1/package.js +221 -0
  15. package/blocks/native/sm.animated-scene/versions/2.3.9/package.js +769 -0
  16. package/blocks/native/sm.board-editor/versions/2.2.11/package.js +551 -0
  17. package/blocks/native/sm.describe-media/versions/2.1.0/package.js +140 -0
  18. package/blocks/native/sm.panel-strip/versions/2.4.2/package.js +1316 -0
  19. package/blocks/native/sm.photo-notes/versions/1.1.0/package.js +170 -0
  20. package/blocks/native/sm.pipeline/versions/2.2.6/package.js +1095 -0
  21. package/blocks/screen-recorder/package.js +1 -1
  22. package/blocks/screen-recorder/versions/1.0.1/package.js +223 -0
  23. package/package.json +1 -1
  24. package/packages/block-cli/cli.js +91 -35
  25. package/packages/block-cli/dev-host/assets/host.js +35 -32
  26. package/packages/block-cli/dev-host/assets/index.css +1 -1
  27. package/packages/block-cli/dev-server.js +4 -0
  28. package/packages/block-cli/ready-gate.js +19 -4
  29. package/packages/block-cli/templates.js +33 -21
  30. package/packages/block-platform/block-readiness.js +10 -1
  31. package/packages/block-platform/catalog.js +14 -3
  32. package/packages/block-platform/chat-packages.js +6 -0
  33. package/packages/block-platform/flow-inspection.js +3 -1
  34. package/packages/block-platform/project-target.js +57 -0
  35. package/packages/block-platform/project-type-composer.js +4 -3
  36. package/packages/block-platform/project-types.js +5 -2
  37. package/packages/block-sdk/admission.js +4 -1
  38. package/packages/block-sdk/block-tier.js +23 -0
  39. package/packages/block-sdk/builder-contract.js +12 -10
  40. package/packages/block-sdk/capabilities.js +23 -10
  41. package/packages/block-sdk/collaboration-admission.js +3 -0
  42. package/packages/block-sdk/contracts.js +13 -1
  43. package/packages/block-sdk/example-media-data.js +16 -0
  44. package/packages/block-sdk/example-media.js +42 -0
  45. package/packages/block-sdk/first-party-identities.js +8 -0
  46. package/packages/block-sdk/first-party-packages.js +11 -1
  47. package/packages/block-sdk/index.d.ts +6 -2
  48. package/packages/block-sdk/local-admission.js +6 -5
  49. package/packages/block-sdk/media-transform.js +59 -3
  50. package/packages/block-sdk/mock-host.js +23 -2
  51. package/packages/block-sdk/mocks.js +4 -1
  52. package/packages/block-sdk/module-hosted.js +12 -2
  53. package/packages/block-sdk/port-types.d.ts +6 -0
  54. package/packages/block-sdk/port-types.js +32 -10
  55. package/packages/block-sdk/shared-agent-controls.js +25 -2
  56. package/packages/block-sdk/shared-controls.js +17 -3
  57. package/packages/block-sdk/testing.js +46 -3
  58. package/packages/block-sdk/view-design.js +67 -0
  59. package/packages/block-sdk/view-renderer.js +50 -8
  60. package/packages/design-system/block-kit.css +6 -4
@@ -0,0 +1,170 @@
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.photo-notes",
7
+ "version": "1.1.0",
8
+ "name": "Photo notes",
9
+ "description": "Rate up to four owned photos for sharpness, light, people and faces through StillMade's media analysis, paid with StillMade credits, one numbered note per photo.",
10
+ "kind": "task",
11
+ "runtime": "capability",
12
+ "entry": "src/capability.json",
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/capability.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/capability.json"
23
+ ],
24
+ "evidence": [
25
+ "upstream/0/LICENSE",
26
+ "upstream/0/src/capability.json"
27
+ ],
28
+ "changes": "Original implementation declared by the packager; no reused repository or dependency code."
29
+ }
30
+ ]
31
+ },
32
+ "inputs": {
33
+ "photos": {
34
+ "type": "image[]",
35
+ "primary": true,
36
+ "description": "One to four persistent photos from the user's StillMade library.",
37
+ "semantic": "photo_set",
38
+ "required": true
39
+ }
40
+ },
41
+ "outputs": {
42
+ "notes": {
43
+ "type": "text",
44
+ "primary": true,
45
+ "description": "One note per photo, in order and numbered when there are several. Each starts with a line of sharpness, light, people, clear faces, smiles, closed eyes, tags and a short description.",
46
+ "semantic": "photo_notes"
47
+ }
48
+ },
49
+ "permissions": {
50
+ "project": [],
51
+ "capabilities": [
52
+ "media.analyze"
53
+ ],
54
+ "network": [],
55
+ "filesystem": [],
56
+ "secrets": []
57
+ },
58
+ "ui": [
59
+ {
60
+ "port": "photos",
61
+ "control": "asset"
62
+ }
63
+ ],
64
+ "platforms": {
65
+ "phone": {
66
+ "supported": true
67
+ },
68
+ "browser": {
69
+ "supported": true
70
+ },
71
+ "desktop": {
72
+ "supported": true
73
+ }
74
+ }
75
+ },
76
+ "capability": {
77
+ "schemaVersion": 1,
78
+ "operation": "media.analyze",
79
+ "media": {
80
+ "$input": "photos"
81
+ },
82
+ "question": "Rate this photo so a person can choose the best photos for a video. Begin your answer with exactly one line in this format:\nsharp 8 | light 7 | people 2 | faces clear yes | smiling yes | eyes closed no | tags: beach, family, sunset | Two people laughing on a beach at sunset.\nsharp is focus and blur from 0 (unusable) to 10 (crisp). light is exposure and color from 0 (too dark or blown out) to 10 (well lit). people is how many people are clearly visible. faces clear is yes when at least one face is visible and in focus. smiling is yes when a visible person smiles or laughs. eyes closed is yes when the main person blinks. tags are up to six plain lowercase words for the subject, setting, occasion and mood. End the line with one short plain sentence describing only what is visible. Never identify a real person by name, never guess age, ethnicity, health or other sensitive traits, and never invent anything outside the frame.",
83
+ "detail": "check",
84
+ "output": "notes"
85
+ },
86
+ "tests": [
87
+ {
88
+ "name": "One saved photo",
89
+ "input": {
90
+ "photos": [
91
+ {
92
+ "kind": "image",
93
+ "assetId": "photo-notes-sample-1",
94
+ "versionId": "v1",
95
+ "url": "/api/media/owner/photo-notes-sample-1.jpg"
96
+ }
97
+ ]
98
+ },
99
+ "expectations": {
100
+ "notes": {
101
+ "kind": "text",
102
+ "minLength": 20,
103
+ "maxLength": 32768,
104
+ "includes": [
105
+ "sharp",
106
+ "light"
107
+ ]
108
+ }
109
+ }
110
+ },
111
+ {
112
+ "name": "Two saved photos",
113
+ "input": {
114
+ "photos": [
115
+ {
116
+ "kind": "image",
117
+ "assetId": "photo-notes-sample-1",
118
+ "versionId": "v1",
119
+ "url": "/api/media/owner/photo-notes-sample-1.jpg"
120
+ },
121
+ {
122
+ "kind": "image",
123
+ "assetId": "photo-notes-sample-2",
124
+ "versionId": "v1",
125
+ "url": "/api/media/owner/photo-notes-sample-2.png"
126
+ }
127
+ ]
128
+ },
129
+ "expectations": {
130
+ "notes": {
131
+ "kind": "text",
132
+ "minLength": 40,
133
+ "maxLength": 32768,
134
+ "includes": [
135
+ "1. ",
136
+ "2. ",
137
+ "sharp"
138
+ ]
139
+ }
140
+ }
141
+ }
142
+ ],
143
+ "portable": {
144
+ "format": "stillmade-block/1",
145
+ "dependencies": [],
146
+ "sources": [
147
+ {
148
+ "kind": "original",
149
+ "license": "MIT",
150
+ "paths": [
151
+ "LICENSE",
152
+ "src/capability.json"
153
+ ],
154
+ "evidence": [
155
+ "upstream/0/LICENSE",
156
+ "upstream/0/src/capability.json"
157
+ ],
158
+ "changes": "Original implementation declared by the packager; no reused repository or dependency code."
159
+ }
160
+ ],
161
+ "files": {
162
+ "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",
163
+ "upstream/0/src/capability.json": "{\n \"schemaVersion\": 1,\n \"operation\": \"media.analyze\",\n \"media\": {\n \"$input\": \"photos\"\n },\n \"question\": \"Rate this photo so a person can choose the best photos for a video. Begin your answer with exactly one line in this format:\\nsharp 8 | light 7 | people 2 | faces clear yes | smiling yes | eyes closed no | tags: beach, family, sunset | Two people laughing on a beach at sunset.\\nsharp is focus and blur from 0 (unusable) to 10 (crisp). light is exposure and color from 0 (too dark or blown out) to 10 (well lit). people is how many people are clearly visible. faces clear is yes when at least one face is visible and in focus. smiling is yes when a visible person smiles or laughs. eyes closed is yes when the main person blinks. tags are up to six plain lowercase words for the subject, setting, occasion and mood. End the line with one short plain sentence describing only what is visible. Never identify a real person by name, never guess age, ethnicity, health or other sensitive traits, and never invent anything outside the frame.\",\n \"detail\": \"check\",\n \"output\": \"notes\"\n}"
164
+ },
165
+ "lineage": {
166
+ "parents": [],
167
+ "changes": "Packaged original Block source for StillMade."
168
+ }
169
+ }
170
+ };