@slatesvideo/shared 0.7.7 → 0.7.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.
Files changed (122) hide show
  1. package/README.md +3 -6
  2. package/dist/analytics/events.d.ts +1 -1
  3. package/dist/analytics/events.js +7 -0
  4. package/dist/auth.d.ts +2 -0
  5. package/dist/auth.js +5 -0
  6. package/dist/clients/cloud.d.ts +2 -0
  7. package/dist/clients/cloud.js +5 -1
  8. package/dist/clients/desktop.js +6 -1
  9. package/dist/index.d.ts +7 -3
  10. package/dist/index.js +7 -3
  11. package/dist/manual/content.d.ts +1 -1
  12. package/dist/manual/content.js +1 -1
  13. package/dist/operations/index.d.ts +724 -173
  14. package/dist/operations/index.js +875 -65
  15. package/dist/operations/surface.d.ts +2 -2
  16. package/dist/operations/surface.js +26 -6
  17. package/dist/prompts/agent-doctrine.d.ts +12 -2
  18. package/dist/prompts/agent-doctrine.js +56 -28
  19. package/dist/prompts/banned-tokens.js +23 -13
  20. package/dist/prompts/brain.d.ts +29 -0
  21. package/dist/prompts/brain.js +72 -0
  22. package/dist/prompts/craft-cards.d.ts +15 -4
  23. package/dist/prompts/craft-cards.js +71 -9
  24. package/dist/prompts/generation-policy.d.ts +1 -1
  25. package/dist/prompts/guide-discovery.d.ts +6 -6
  26. package/dist/prompts/guide-retrieval.d.ts +7 -1
  27. package/dist/prompts/guide-retrieval.js +33 -5
  28. package/dist/prompts/partials.generated.js +1 -13
  29. package/dist/prompts/shot-grammar.d.ts +1 -1
  30. package/dist/prompts/shot-grammar.js +1 -1
  31. package/dist/skills/brain-check.d.ts +44 -0
  32. package/dist/skills/brain-check.js +174 -0
  33. package/dist/skills/content.d.ts +3 -0
  34. package/dist/skills/content.js +81 -44
  35. package/dist/skills/hyperframes-content.js +4 -4
  36. package/dist/skills/my-brain.d.ts +52 -0
  37. package/dist/skills/my-brain.js +218 -0
  38. package/dist/skills/served.d.ts +56 -0
  39. package/dist/skills/served.js +232 -0
  40. package/package.json +2 -4
  41. package/skills/hyperframes/NOTICE +19 -3
  42. package/skills/hyperframes/SLATES-MAPPING.md +1 -1
  43. package/skills/hyperframes/embedded-captions/CATALOG.md +3 -0
  44. package/skills/hyperframes/embedded-captions/SKILL.md +6 -6
  45. package/skills/hyperframes/embedded-captions/assets/fonts/char-widths.json +227 -1
  46. package/skills/hyperframes/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +19 -2
  47. package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-italic.woff2 +0 -0
  48. package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-normal.woff2 +0 -0
  49. package/skills/hyperframes/embedded-captions/scripts/make-theme.cjs +438 -3
  50. package/skills/hyperframes/embedded-captions/scripts/make-theme.test.mjs +1 -0
  51. package/skills/hyperframes/embedded-captions/themes/README.md +26 -1
  52. package/skills/hyperframes/embedded-captions/themes/lesson.json +31 -0
  53. package/skills/slates-start-here.md +78 -0
  54. package/exports/slates-chatgpt-images/generated/SKILL.md +0 -113
  55. package/exports/slates-chatgpt-images/generated/slates-chatgpt-images.skill +0 -0
  56. package/exports/slates-prompt-builder/generated/SKILL.md +0 -71
  57. package/exports/slates-prompt-builder/generated/reference-character.md +0 -92
  58. package/exports/slates-prompt-builder/generated/reference-content-policy.md +0 -81
  59. package/exports/slates-prompt-builder/generated/reference-gpt-image-2-5.md +0 -191
  60. package/exports/slates-prompt-builder/generated/reference-kling.md +0 -295
  61. package/exports/slates-prompt-builder/generated/reference-nano-banana.md +0 -240
  62. package/exports/slates-prompt-builder/generated/reference-omni-flash.md +0 -97
  63. package/exports/slates-prompt-builder/generated/reference-seedance-2-5.md +0 -392
  64. package/exports/slates-prompt-builder/generated/reference-seedance.md +0 -441
  65. package/exports/slates-prompt-builder/generated/slates-prompt-builder-manifest.json +0 -133
  66. package/exports/slates-prompt-builder/generated/slates-prompt-builder.skill +0 -0
  67. package/skills/_partials/blender-action-curves.md +0 -24
  68. package/skills/_partials/cinematic-card.md +0 -8
  69. package/skills/_partials/decision-log.md +0 -1
  70. package/skills/_partials/image-defaults.md +0 -9
  71. package/skills/_partials/iteration-diagnosis.md +0 -5
  72. package/skills/_partials/living-performance.md +0 -22
  73. package/skills/_partials/model-routing.md +0 -35
  74. package/skills/_partials/references-read-literally.md +0 -11
  75. package/skills/_partials/seedance-25-timestamps.md +0 -34
  76. package/skills/_partials/sheet-tool-defaults.md +0 -6
  77. package/skills/_partials/still-gate.md +0 -3
  78. package/skills/_partials/thresholds.md +0 -19
  79. package/skills/slates-blocking-to-prompt.md +0 -279
  80. package/skills/slates-camera-language.md +0 -234
  81. package/skills/slates-captions.md +0 -81
  82. package/skills/slates-character-identity.md +0 -117
  83. package/skills/slates-chatgpt-images.md +0 -113
  84. package/skills/slates-cinematic-look.md +0 -237
  85. package/skills/slates-content-policy.md +0 -88
  86. package/skills/slates-cost-discipline.md +0 -150
  87. package/skills/slates-cuts.md +0 -46
  88. package/skills/slates-dialogue-blocking.md +0 -134
  89. package/skills/slates-direct-response-ad.md +0 -26
  90. package/skills/slates-edit-and-iterate.md +0 -76
  91. package/skills/slates-layer-brand-captions.md +0 -87
  92. package/skills/slates-layer-lower-third.md +0 -85
  93. package/skills/slates-layer-title.md +0 -82
  94. package/skills/slates-model-selection.md +0 -129
  95. package/skills/slates-motion.md +0 -57
  96. package/skills/slates-one-prompt-film.md +0 -38
  97. package/skills/slates-previs-blocking.md +0 -186
  98. package/skills/slates-project-organization.md +0 -42
  99. package/skills/slates-prompting-elevenlabs.md +0 -128
  100. package/skills/slates-prompting-flux-3.md +0 -157
  101. package/skills/slates-prompting-gpt-image-2-5.md +0 -196
  102. package/skills/slates-prompting-inworld-tts.md +0 -174
  103. package/skills/slates-prompting-kling-v3.md +0 -303
  104. package/skills/slates-prompting-lip-sync.md +0 -216
  105. package/skills/slates-prompting-ltx-2-5.md +0 -245
  106. package/skills/slates-prompting-minimax-h3.md +0 -383
  107. package/skills/slates-prompting-motion-transfer.md +0 -202
  108. package/skills/slates-prompting-nano-banana-2-1.md +0 -250
  109. package/skills/slates-prompting-omni-flash.md +0 -117
  110. package/skills/slates-prompting-seed-audio.md +0 -168
  111. package/skills/slates-prompting-seedance-2-5.md +0 -420
  112. package/skills/slates-prompting-seedance.md +0 -462
  113. package/skills/slates-prompting-seedream-5-lite.md +0 -122
  114. package/skills/slates-prompting-wan-3.md +0 -143
  115. package/skills/slates-restyle-from-blocking.md +0 -121
  116. package/skills/slates-script-craft.md +0 -45
  117. package/skills/slates-shot-variety.md +0 -24
  118. package/skills/slates-storyboard-from-script.md +0 -32
  119. package/skills/slates-style-prompting.md +0 -56
  120. package/skills/slates-transitions.md +0 -40
  121. package/skills/slates-ugc-influencer-ad.md +0 -32
  122. package/skills/slates-vision-feedback-loop.md +0 -118
@@ -1,118 +0,0 @@
1
- ---
2
- name: slates-vision-feedback-loop
3
- description: "Inspect generated media against the brief, diagnose defects and choose a targeted correction. Use during production or iteration; covers reference review, image defects and model-specific failure receipts."
4
- ---
5
-
6
- # Vision feedback loop — Slates utility skill
7
-
8
- Slates returns generated images inline as base64. You see the actual pixels. Use that — don't trust prompt-following blindly.
9
-
10
- ## Asset codes are your shared vocabulary with the user
11
-
12
- Every asset in Slates has a short stable code (e.g. `IMG-A12`, `VID-V3`, `AUD-S1`) and a label derived from its prompt (e.g. `Beach Sunset`). These are visible in the gallery as a corner badge on each thumbnail. **Always refer to assets by their code in chat** so the user can match what you're saying to a specific card in their gallery.
13
-
14
- - ✅ "I'm using **IMG-A12 — Beach Sunset** as the first frame. The second-frame candidate **IMG-A15** has the right composition but warmer light — want me to use that one instead?"
15
- - ❌ "I'm using the beach sunset image..." (user has four beach sunset variants — which one?)
16
- - ❌ "I'm using asset `7a3f9e4b-...`" (UUIDs aren't readable; user can't match to a badge)
17
-
18
- The code is the FORMAL reference. The label is human texture. Use both: `IMG-A12 — Beach Sunset`.
19
-
20
- ## Vision tools at your disposal
21
-
22
- - `slates_get_asset_image` — pull one image into context. Returns its code+label.
23
- - `slates_get_assets_batch` — pull up to 8 images in one call. Use when picking from a candidate set; cheaper than N individual fetches.
24
- - `slates_get_asset_video_frames` — extract N keyframes (default 3) from a video and inline them as JPEGs. These sampled stills support appearance, framing and identity checks. They do not verify continuous motion, lip sync or sound. Use actual playback or an audio-capable host for those claims when available; otherwise report them unreviewed and retain the saved asset.
25
-
26
- ## Pre-flight is automatic on the gen tools
27
-
28
- `slates_generate_video` and `slates_generate_image` show you their reference assets **inline** on the confirm response. You don't need to fetch them yourself, but you DO need to look at what comes back, revise the prompt if the references suggest a different motion/framing, and only then re-call with `confirm=true`.
29
-
30
- ## 🔴 The still-gate — never animate a bad frame
31
-
32
- <!-- @inject:still-gate -->
33
- **Inspect a start frame before animating it.** Repair a visible defect that would make the intended crop or performance unusable before spending on motion. A clean frame can be animated whenever the brief calls for movement; this check does not require an image stage for text-to-video.
34
-
35
- This is a cost rule as well as craft: a premium video call can cost many times an image correction. Broken geometry can turn to mush, oily textures can crawl and malformed objects can fall apart in motion. Fix a known source defect at the source instead of buying a more expensive copy. Judge intentional stylisation against the brief, not a universal photoreal standard. Additional image or video requests still follow the existing generation authorization.
36
- <!-- @end:still-gate -->
37
-
38
- ## The pattern
39
-
40
- 1. **Generate.** Call `slates_generate_image` with a prompt. The result is in your context as an image content block.
41
- 2. **Evaluate on TWO axes — they are different questions:**
42
- - **Brief-conformance** — what did the user actually want? Check the four edges first: a subject cut off by the frame (a lighthouse missing its lantern, a head cropped at the brow) is a defect unless the brief asked for that crop. Then: are the elements right? Composition? Lighting? Subject identity?
43
- - **Defects** — run the slop rubric below. *A frame can match the brief perfectly and still be slop that mushes the moment it moves.* Checking only the first axis is how a bad frame reaches an expensive video call.
44
- 3. **One of three outcomes:**
45
- - **Right** → save it (bind to a frame, character slot, etc.) and move on.
46
- - **Close, but adjustable** → refine with a specific delta, regenerate **once**.
47
- - **Wrong direction** → diagnose the failed requirement. Refine within the supplied brief and existing authorization; ask only when the creative intent is unresolved or the next request needs fresh consent.
48
-
49
- ## The defect rubric — five slop tells
50
-
51
- | Tell | What it looks like | Why it matters downstream |
52
- |---|---|---|
53
- | **Light with no transitions** | Flat-black pits instead of a shadow ramp; light that stops rather than falls off | Transfers onto every character or object added into that plate later |
54
- | **Broken-but-plausible objects** | Crates, railings, hardware, mechanisms you can *almost* read but that don't resolve | Turn to mush in motion, and the model multiplies them |
55
- | **Local logic breaks** | An effect present in only part of the frame — rain scratching one corner, wet ground under one figure | The video model's physical logic breaks along with it |
56
- | **Oily textures** | Soapy, licked-smooth surfaces that have lost their material identity | Reflections crawl in motion; the plate can't hold continuity |
57
- | **Too perfect** | A soft light on the face that nothing in the scene could cast, the subject sharper and cleaner than everything around them, every region exposed to be readable, colour pushed warm and saturated | It reads as a subject pasted onto a location, and every shot built from the plate inherits the studio look. Fix it in words: `slates-cinematic-look` |
58
-
59
- ### Per-model accents — check the one you actually used
60
-
61
- - **Nano Banana Pro** (`nano-banana-pro`, retired 2026-10-23; its takes keep the label) — ruler-straight symmetry, everything parallel and square, flat even light, pretty but staged/stock, textures reading as 3D render rather than photograph. **It hyperbolizes every edit**: ask for graffiti on one wall and the whole location gets tagged.
62
- - **GPT Image** (`gpt-image-2-5-flare`, `gpt-image-2-5-sunburst`) — microcontrast to the ceiling, hard halos on every edge, no depth or bokeh, white balance pulled warm until the frame yellows, plastic licked-smooth materials. Worst tell: **one sickly texture pattern laid over the entire frame**. ⚠️ Catalogued on `gpt-image-2`, which 2.5 replaced on 2026-09-09 — an accent is a per-model observation, so treat this as a prior to check rather than a finding, and correct it here the first time a 2.5 frame disagrees.
63
-
64
- > ⚠️ These are accents for **`nano-banana-pro`** and the **GPT Image** line specifically. `nano-banana-2-1` is a **different model** (Gemini Nano Banana 2.1 against Pro's Gemini 3 Pro Image) and we have **no evidence** about its accent; nor about `flux-3`'s. Do not inherit one — say nothing rather than warn about a failure mode you can't substantiate. That caution applies to the GPT Image entry above too: it was measured on `gpt-image-2`, not on either 2.5 seat.
65
-
66
- ## Where the fault lives — triage before you change anything
67
-
68
- We say "one specific delta per regeneration" but that only helps once you know *which* variable to move. Diagnose first:
69
-
70
- | Visible pattern | Diagnosis | Fix |
71
- |---|---|---|
72
- | The defect exists in the source asset, or stays tied to the same feature when the direction changes | **Source asset** | Fix the sheet / plate, not the prompt |
73
- | Source is clean, and the defect changes when only the suspect motion clause changes | **Motion direction** | Fix the prompt |
74
- | Controls conflict, or the failure follows neither variable | **Inconclusive** | Narrow the test — change less, not more |
75
-
76
- **Review routes; it is not pass/fail.** Geography melts → fix the location. Identity drifts → fix the character sheet. Assets are sound but the action is wrong → fix the video direction. Wrong idea entirely → reopen the brief with the user.
77
-
78
- **Correct the earliest broken handoff.** Polishing a downstream symptom hides the source and guarantees it resurfaces in the next shot built from the same asset.
79
-
80
- ## Baseline hygiene — isolate the variable you're testing
81
-
82
- When the **character** is the question, keep the location out of it: test on a plate that already holds its own geometry, depth, materials, and light. **A broken plate gives every character failure a second plausible cause**, and you will spend re-rolls deciding which one you're looking at. The same applies in reverse — test a plate empty before you populate it.
83
-
84
- ## Refinement rules
85
-
86
- - **One specific delta per regeneration.** Don't change five things at once — you won't know what helped.
87
- - **A fresh generation needs a complete coherent prompt.** Change one decision and retain the unchanged requirements so old and new clauses do not conflict. An edit request uses its model's change-only grammar instead; do not turn a surgical edit into a full scene re-description.
88
- - On **Seedance**, retain the selected model's structure: shot numbers for 2.0, whole-second timing where used for 2.5. See the matching model guide.
89
- - **Exception — Omni Flash Edit.** Long prompts documentedly destroy its fidelity. There the rule inverts: one short instruction plus *"Keep everything else the same."*
90
- - **Anchor with references.** If the result drifted from the user's intent, attach the *previous best* generation as a reference image alongside the original brief.
91
- - **Use `slates_get_asset_image`** to pull a previously-generated image back into context if you need to compare against a fresh generation.
92
- - **Use `slates_edit_image`** for surgical tweaks instead of full regeneration when ~90% of the image is right — `sourceAssetId` = the asset, `prompt` = the change only. Edits preserve composition and identity; full regen rolls the dice. Recipe: `slates-edit-and-iterate`.
93
-
94
- ## Cost discipline
95
-
96
- - Track total credits spent across the loop. Surface to the user every 3 iterations.
97
- - Use the repeated-failure checkpoint below; do not keep submitting an unchanged failed request.
98
- - **Follow the existing consent for every attempt.** An approved enumerated batch covers its listed calls. A retry or changed input outside that batch needs a new quote and the applicable confirmation; a timeout requires a status check before another submission.
99
-
100
- <!-- @inject:iteration-diagnosis -->
101
- ## Diagnose repeated failures
102
-
103
- After three failed attempts at the same requirement, pause unchanged re-rolls and diagnose the source reference, prompt structure, model fit and tool result. Three is a review checkpoint, not a universal limit or proof that the seed cannot matter. Preserve the attempts and name what each test changed.
104
-
105
- Continue autonomously when the brief is clear, a specific correction is supported and the next request is already authorized. Hand control back when taste or intent cannot be inferred, the next request needs fresh consent, or the available tool cannot meet the requirement. A failed roll never authorizes an additional charge. Follow the existing batch and per-request cost policy.
106
- <!-- @end:iteration-diagnosis -->
107
-
108
- ## When to break the loop
109
-
110
- - The user said "good enough" or "ship it." Stop iterating.
111
- - Repeated attempts show no progress. Diagnose the source, prompt or model before spending again; apply the scoped retry rule above.
112
- - The user changes brief mid-loop. Treat it as a new brief, not a continuation.
113
-
114
- ## Voice when narrating to the user
115
-
116
- Tight, observational, no editorializing.
117
- - ✅ "Frame 2 has the wrong lighting direction — back-lit instead of side. Regenerating with side light."
118
- - ❌ "I notice that the lighting in frame 2 isn't quite what we were going for. I'll go ahead and try again with a different approach."