@project-ava-supernova/core 0.2.144 → 0.2.146
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/dist/social/index.d.ts +22 -17
- package/dist/social/index.d.ts.map +1 -1
- package/dist/social/index.js +1 -1
- package/dist/social/index.js.map +1 -1
- package/dist/tools/write-video-post.d.ts +22 -12
- package/dist/tools/write-video-post.d.ts.map +1 -1
- package/dist/tools/write-video-post.js +64 -70
- package/dist/tools/write-video-post.js.map +1 -1
- package/package.json +1 -1
package/dist/social/index.d.ts
CHANGED
|
@@ -70,18 +70,22 @@ export interface VideoPostVariant {
|
|
|
70
70
|
}
|
|
71
71
|
export interface VideoPostInput {
|
|
72
72
|
/**
|
|
73
|
-
* One entry per platform, each with its own caption and tags. The
|
|
74
|
-
*
|
|
75
|
-
*
|
|
73
|
+
* One entry per platform, each with its own caption and tags. The clip, the
|
|
74
|
+
* script and the duration below are SHARED by all of them — same video,
|
|
75
|
+
* different words. All four destinations are 9:16, so one piece of footage
|
|
76
|
+
* genuinely serves every one of them.
|
|
76
77
|
*/
|
|
77
78
|
variants: VideoPostVariant[];
|
|
78
79
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
80
|
+
* THE SHOT — one continuous clip, described as a single moving image.
|
|
81
|
+
*
|
|
82
|
+
* Was `shots: string[]`, a storyboard of stills at one per five seconds,
|
|
83
|
+
* until 15 Oct 2026. TikTok flagged a post built that way as low-quality
|
|
84
|
+
* STATIC IMAGES and made it ineligible for recommendation, which is to say
|
|
85
|
+
* invisible. A strip of stills cannot earn a view there, so the strip
|
|
86
|
+
* became a clip.
|
|
83
87
|
*/
|
|
84
|
-
|
|
88
|
+
shot: string;
|
|
85
89
|
/** What she SAYS over it. Empty for a silent piece carried by on-screen text. */
|
|
86
90
|
script?: string;
|
|
87
91
|
/** Clip length in seconds. */
|
|
@@ -100,15 +104,16 @@ export interface VideoPostInput {
|
|
|
100
104
|
}
|
|
101
105
|
/** What the surface reports back — the finished parts, not a job to poll. */
|
|
102
106
|
export interface VideoPostWritten {
|
|
103
|
-
/** The
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
*
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
/** The finished clip. Permanent URL, already in the Library. Null when the
|
|
108
|
+
* render failed — there is no still to fall back on now, so a null here
|
|
109
|
+
* means the post has no picture at all. */
|
|
110
|
+
clipUrl: string | null;
|
|
111
|
+
/** Why the clip did not render, in her words. Reported rather than hidden:
|
|
112
|
+
* she is about to tell the operator it is ready, and a post with no
|
|
113
|
+
* picture is the one thing they cannot work around without knowing. */
|
|
114
|
+
clipError?: string;
|
|
115
|
+
/** Measured length of the clip in seconds, when the store knows it. */
|
|
116
|
+
clipSeconds?: number | null;
|
|
112
117
|
/** The voiceover, when there was a script. Permanent URL. */
|
|
113
118
|
voiceUrl?: string | null;
|
|
114
119
|
/** Measured off the WAV header. The one fact about a read nobody can check
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/social/index.ts"],"names":[],"mappings":"AAYA,YAAY,EAAE,WAAW,IAAI,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7F,oEAAoE;AACpE,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;;;;;OAQG;I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-106,7 +106,7 @@ export const PLATFORM_TAG_POLICY = {
|
|
|
106
106
|
thread: 'X thread: 0-2 hashtags, on the final post only — same spam-filter reasoning as a single tweet, and this said 3-4 before. The link goes in the LAST post of the thread rather than the first, so the opening post, which is the one ranked and the one most people see, carries no outbound link.',
|
|
107
107
|
tiktok: 'TikTok: 1-2 hashtags — one niche, one broad. Tags are heavily down-weighted now and a stack of five reads as low-effort to the classifier, so more tags is actively worse. Watch time in the opening seconds decides reach; caption KEYWORDS do more for discovery than tags, so write the caption to be searched. Genre/theme over dev tags. No URL. Avoid #fyp #foryou #foryoupage.',
|
|
108
108
|
youtube: 'YouTube Shorts: 3-5 hashtags, and no more — returns fall away sharply after the fifth. There IS a cliff where exceeding the limit makes YouTube ignore EVERY hashtag rather than trimming the extras, but the published figure has been stated as both 15 and 60 at different times, so stay far under it rather than trusting a number. Hashtags go in the DESCRIPTION, never the title — the title is the discovery surface and tags eat it. Do not bother with #Shorts at all: YouTube identifies a Short from its shape and length, so it buys nothing and costs the front of whatever it is put in. On Shorts the description is COLLAPSED by default on mobile, so the TITLE carries the discovery weight — put the search term in the title rather than burying it below. And keep tags in proportion: on YouTube they categorise and feed search, they do not drive distribution. The title, the first second and completion rate decide reach, so the effort belongs in the hook. No URL surfaced in the Shorts feed.',
|
|
109
|
-
linkedin: 'LinkedIn: NO external link in the post. The reason is reach — most 2026 analyses put the penalty for an outbound link at roughly half, and the link-in-first-comment workaround is reportedly penalised now too. The URL lives in the profile, so the post does not need to carry it; the operator decided on 15 Oct 2026 that posts should reach the most people they can and let the profile do the linking. Hashtags do nothing here either — a long study found no reach impact and the hashtag pages were retired — so use none, or at most two for a human reader, and never treat them as a lever. DWELL TIME is what ranks: how long someone stays on the post. So the two lines before the \'see more\' fold have to earn the expansion on their own, and the body has to be worth the stay — a complete thought with the working shown, not a teaser. Professional register, no hype.',
|
|
109
|
+
linkedin: 'LinkedIn: NO external link in the post. The reason is reach — most 2026 analyses put the penalty for an outbound link at roughly half, and the link-in-first-comment workaround is reportedly penalised now too. The URL lives in the profile, so the post does not need to carry it; the operator decided on 15 Oct 2026 that posts should reach the most people they can and let the profile do the linking. Hashtags do nothing here either — a long study found no reach impact and the hashtag pages were retired — so use none, or at most two for a human reader, and never treat them as a lever. DWELL TIME is what ranks: how long someone stays on the post. So the two lines before the \'see more\' fold have to earn the expansion on their own, and the body has to be worth the stay — a complete thought with the working shown, not a teaser. Professional register, no hype. FORMAT IS A LEVER HERE, and text is the weakest one. A DOCUMENT post (a carousel: a PDF people swipe) out-reaches plain text on every measure anyone has published — by how much is vendor-reported and ranges wildly, so treat the direction as real and the multiplier as noise. It wins for the same reason the fold does: swiping takes time, and time on the post is what ranks. So when the idea has STEPS, a before-and-after, or a list worth pausing on, offer it as a carousel instead of a wall of text and say why; when it is a single thought, a text post is still right. LinkedIn caps a document at 100MB and 300 pages but publishes no page size, so 1080x1350 portrait is a convention rather than a rule — every page the same size, and keep anything that matters away from the edges, because the title pill, the arrow and the full-screen button sit on top of the first page. Few slides that each earn their swipe; too many slides is the usual way one fails. The cover carries the plain searchable claim, not a teaser, and the last slide makes the ask.',
|
|
110
110
|
bluesky: 'Bluesky: 1-2 hashtags, and here they actually DO something, unlike everywhere else. There is no platform-wide recommendation engine for a tag to feed — instead, custom FEEDS built by other people read the public stream and pull in posts matching their rules. A tag is a routing key into those feeds, so a precise, topic-specific one (the language, the protocol, the niche) lands somewhere a broad one never will. Landing in two or three active niche feeds is the whole discovery game on this platform. Write the post to stand ALONE: people meet it in a feed with none of your earlier posts around it, so it has to make sense cold. Technical, open-source, federated crowd with low tolerance for tag stacks. 300 char cap.',
|
|
111
111
|
facebook: 'Facebook Page: 0-2 hashtags max, tag stacks read as spam. Mixed crowd — some builders, but mostly people who just want the thing to work, so plain language over jargon and lead with what it does for them. Long-form is fine here; a story lands better than a headline. Link at the end is fine. On a REEL here the tags barely register at all — watch time decides it, and Facebook is the most sound-off audience of the lot, so the piece has to make sense read rather than heard. Write the caption to carry the point on its own, and the on-screen words to carry it without the voice. Meta also weighs ORIGINALITY, and treats reposted material with captions or borders slapped on as unoriginal — which is not a risk for a piece built from your own stills and your own read, but it is why recycled clips go nowhere.',
|
|
112
112
|
instagram: 'Instagram: 3-5 hashtags, and 5 is a HARD CAP — Instagram began limiting posts and Reels to five in December 2025 and rejects anything beyond it, so a list of ten is not ambition, it is a broken post. Niche over generic. They categorise and feed search; Mosseri has said outright they do not increase reach, so they are not the lever. The CAPTION is: Instagram indexes the words in it, and on a Reel it indexes the spoken words and the on-screen text too. Put the term someone would actually search in the first sentence or two, in plain language — and because the voiceover and the stills are indexed as well, say it out loud in the opening line rather than only writing it. Tags in the caption, not the comments.',
|
package/dist/social/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/social/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,0EAA0E;AAC1E,+EAA+E;AAC/E,0EAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/social/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,0EAA0E;AAC1E,+EAA+E;AAC/E,0EAA0E;AA4M1E;+EAC+E;AAC/E,MAAM,CAAC,MAAM,oBAAoB,GAAqC;IACpE,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAqC;IACpE,yCAAyC;IACzC,QAAQ,EAAE,WAAW;IACrB,gBAAgB,EAAE,WAAW;IAC7B,iBAAiB,EAAE,WAAW;IAC9B,eAAe,EAAE,WAAW;IAC5B,eA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;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAEtC;2EAC2E;AAC3E,MAAM,CAAC,MAAM,mBAAmB,GAAqC;IACnE,KAAK,EAAE,mtBAAmtB;IAC1tB,MAAM,EAAE,kSAAkS;IAC1S,MAAM,EAAE,uXAAuX;IAC/X,OAAO,EAAE,g+BAAg+B;IACz+B,QAAQ,EAAE,23DAA23D;IACr4D,OAAO,EAAE,itBAAitB;IAC1tB,QAAQ,EAAE,0yBAA0yB;IACpzB,SAAS,EAAE,2sBAA2sB;IACttB,OAAO,EAAE,+SAA+S;IACxT,MAAM,EAAE,ssCAAssC;IAC9sC,IAAI,EAAE,qmBAAqmB;CAC5mB,CAAC"}
|
|
@@ -12,7 +12,7 @@ import type { FunctionSchema } from '../providers/types.js';
|
|
|
12
12
|
* and the spoken length drift apart, and a voice still talking after the last
|
|
13
13
|
* still is the most obviously broken thing a short can do.
|
|
14
14
|
*/
|
|
15
|
-
export declare const SLOWEST_WORDS_PER_SECOND = 1.
|
|
15
|
+
export declare const SLOWEST_WORDS_PER_SECOND = 1.5;
|
|
16
16
|
/**
|
|
17
17
|
* Seconds the spoken sign-off adds to a VOICED clip, on top of the script's own
|
|
18
18
|
* word budget.
|
|
@@ -39,23 +39,33 @@ export declare function maxWordsFor(seconds: number): number;
|
|
|
39
39
|
* Emit a finished SHORT-FORM VIDEO POST as the PARTS a person assembles — the
|
|
40
40
|
* storyboard, the voiceover, and the caption.
|
|
41
41
|
*
|
|
42
|
-
* WE
|
|
43
|
-
*
|
|
44
|
-
* five seconds, and the operator cuts them together in Canva — where a human
|
|
45
|
-
* can see what they are making, which is the whole point of the change.
|
|
42
|
+
* WE GENERATE VIDEO AGAIN, as of 2026-10-15. This reverses the 5 September
|
|
43
|
+
* decision recorded here, and the reason is worth keeping.
|
|
46
44
|
*
|
|
47
|
-
* That
|
|
48
|
-
*
|
|
49
|
-
*
|
|
45
|
+
* That decision was right at the time: generated video was not good enough,
|
|
46
|
+
* so posts became a voiceover plus one still per five seconds, cut together
|
|
47
|
+
* in Canva. What changed is not our taste but TikTok's. It flagged a post
|
|
48
|
+
* built that way as "Unoriginal, low-quality ... ineligible for
|
|
49
|
+
* recommendation", citing STATIC IMAGES by name, and ineligible means it
|
|
50
|
+
* never enters the feed at all — which is exactly the zero views every post
|
|
51
|
+
* on that account had been getting. A strip of stills cannot earn a view
|
|
52
|
+
* there however well it is written.
|
|
53
|
+
*
|
|
54
|
+
* So the storyboard becomes ONE CLIP that actually moves, plus the voiceover
|
|
55
|
+
* to lay over it. The operator still assembles in Canva and still overlays
|
|
56
|
+
* the text by hand, which is the part that was never the problem.
|
|
50
57
|
*
|
|
51
58
|
* The split mirrors write_post: this tool does the surface-free work (validate
|
|
52
|
-
* the parts, enforce the caption cap and the
|
|
59
|
+
* the parts, enforce the caption cap and the script band deterministically) and
|
|
53
60
|
* the injected `videoPostStore` does everything that needs a provider key —
|
|
54
61
|
* rendering her voice and the stills.
|
|
55
62
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
63
|
+
* Still nothing pending. The clip takes MINUTES rather than seconds, but the
|
|
64
|
+
* store waits for it inside the turn and the hub survives that: the SSE
|
|
65
|
+
* heartbeat and --disable-quic went in on 0.48.37 for 10-15 minute Classroom
|
|
66
|
+
* repairs, and Render allows ~100 minutes a request. So the card is still
|
|
67
|
+
* complete when it lands and there is still no job to poll. She has not SEEN
|
|
68
|
+
* the clip, and must not describe how it looks.
|
|
59
69
|
*/
|
|
60
70
|
export declare class WriteVideoPostTool implements Tool {
|
|
61
71
|
readonly name = "write_video_post";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-video-post.d.ts","sourceRoot":"","sources":["../../src/tools/write-video-post.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAqC5D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,MAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"write-video-post.d.ts","sourceRoot":"","sources":["../../src/tools/write-video-post.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAqC5D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,MAAO,CAAC;AAyB7C;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,QAAsD,CAAC;AAExF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,MAAM,CAAC;AAE/B,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,kBAAmB,YAAW,IAAI;IAC7C,QAAQ,CAAC,IAAI,sBAAsB;IACnC,QAAQ,CAAC,WAAW,mIACyG;IAC7H,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAW;IAC5C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CA6E7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAicjG"}
|
|
@@ -42,7 +42,29 @@ const TAGLINE_WORDS = TAGLINE.trim().split(/\s+/).length;
|
|
|
42
42
|
* and the spoken length drift apart, and a voice still talking after the last
|
|
43
43
|
* still is the most obviously broken thing a short can do.
|
|
44
44
|
*/
|
|
45
|
-
export const SLOWEST_WORDS_PER_SECOND = 1.
|
|
45
|
+
export const SLOWEST_WORDS_PER_SECOND = 1.50;
|
|
46
|
+
/*
|
|
47
|
+
* RE-MEASURED 15 Oct 2026, and it came DOWN from 1.90.
|
|
48
|
+
*
|
|
49
|
+
* Same method as the block in run(): Bellona at speech_rate 0.95, read off
|
|
50
|
+
* the audio actually returned, three takes a length. The slow takes this
|
|
51
|
+
* found were slower than anything in the original table:
|
|
52
|
+
*
|
|
53
|
+
* 18w -> 5.18s 6.94s 6.02s (3.48 2.59 2.99 w/s)
|
|
54
|
+
* 17w -> 8.96s 8.54s 9.64s (1.90 1.99 1.76 w/s)
|
|
55
|
+
* 13w -> 8.29s 6.94s 8.54s (1.57 1.87 1.52 w/s)
|
|
56
|
+
* 40w -> 12.50s 13.01s 11.83s (3.20 3.08 3.38 w/s)
|
|
57
|
+
*
|
|
58
|
+
* Range 1.52 to 3.48. The old floor of 1.90 was the slowest take anyone had
|
|
59
|
+
* SEEN, not the slowest there is - which is the trap with a voice whose own
|
|
60
|
+
* notes record a 47% spread on identical input. Sample more, find slower.
|
|
61
|
+
*
|
|
62
|
+
* It matters because the floor is what the word ceiling multiplies by: set it
|
|
63
|
+
* too high and a slow read runs past the end of the picture, which is the one
|
|
64
|
+
* failure the band exists to prevent. 1.50 is the measured floor, and the cost
|
|
65
|
+
* of being wrong in this direction is some silence at the end - survivable,
|
|
66
|
+
* unlike a voice still talking over a dead frame.
|
|
67
|
+
*/
|
|
46
68
|
/**
|
|
47
69
|
* Seconds the spoken sign-off adds to a VOICED clip, on top of the script's own
|
|
48
70
|
* word budget.
|
|
@@ -67,35 +89,37 @@ export const AIR_SECONDS = 1.5;
|
|
|
67
89
|
export function maxWordsFor(seconds) {
|
|
68
90
|
return Math.floor(Math.max(1, seconds - AIR_SECONDS) * SLOWEST_WORDS_PER_SECOND);
|
|
69
91
|
}
|
|
70
|
-
/**
|
|
71
|
-
* How long one still holds on screen.
|
|
72
|
-
*
|
|
73
|
-
* Operator's number, and the reason the storyboard has a fixed cadence at all:
|
|
74
|
-
* a person cutting this in Canva wants a rhythm they can lay down without
|
|
75
|
-
* thinking, not a per-shot timing decision on every frame.
|
|
76
|
-
*/
|
|
77
|
-
const SECONDS_PER_SHOT = 5;
|
|
78
92
|
/**
|
|
79
93
|
* Emit a finished SHORT-FORM VIDEO POST as the PARTS a person assembles — the
|
|
80
94
|
* storyboard, the voiceover, and the caption.
|
|
81
95
|
*
|
|
82
|
-
* WE
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
96
|
+
* WE GENERATE VIDEO AGAIN, as of 2026-10-15. This reverses the 5 September
|
|
97
|
+
* decision recorded here, and the reason is worth keeping.
|
|
98
|
+
*
|
|
99
|
+
* That decision was right at the time: generated video was not good enough,
|
|
100
|
+
* so posts became a voiceover plus one still per five seconds, cut together
|
|
101
|
+
* in Canva. What changed is not our taste but TikTok's. It flagged a post
|
|
102
|
+
* built that way as "Unoriginal, low-quality ... ineligible for
|
|
103
|
+
* recommendation", citing STATIC IMAGES by name, and ineligible means it
|
|
104
|
+
* never enters the feed at all — which is exactly the zero views every post
|
|
105
|
+
* on that account had been getting. A strip of stills cannot earn a view
|
|
106
|
+
* there however well it is written.
|
|
86
107
|
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
108
|
+
* So the storyboard becomes ONE CLIP that actually moves, plus the voiceover
|
|
109
|
+
* to lay over it. The operator still assembles in Canva and still overlays
|
|
110
|
+
* the text by hand, which is the part that was never the problem.
|
|
90
111
|
*
|
|
91
112
|
* The split mirrors write_post: this tool does the surface-free work (validate
|
|
92
|
-
* the parts, enforce the caption cap and the
|
|
113
|
+
* the parts, enforce the caption cap and the script band deterministically) and
|
|
93
114
|
* the injected `videoPostStore` does everything that needs a provider key —
|
|
94
115
|
* rendering her voice and the stills.
|
|
95
116
|
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
117
|
+
* Still nothing pending. The clip takes MINUTES rather than seconds, but the
|
|
118
|
+
* store waits for it inside the turn and the hub survives that: the SSE
|
|
119
|
+
* heartbeat and --disable-quic went in on 0.48.37 for 10-15 minute Classroom
|
|
120
|
+
* repairs, and Render allows ~100 minutes a request. So the card is still
|
|
121
|
+
* complete when it lands and there is still no job to poll. She has not SEEN
|
|
122
|
+
* the clip, and must not describe how it looks.
|
|
99
123
|
*/
|
|
100
124
|
export class WriteVideoPostTool {
|
|
101
125
|
name = 'write_video_post';
|
|
@@ -147,14 +171,13 @@ export class WriteVideoPostTool {
|
|
|
147
171
|
required: ['platform', 'caption'],
|
|
148
172
|
},
|
|
149
173
|
},
|
|
150
|
-
|
|
151
|
-
type: '
|
|
152
|
-
|
|
153
|
-
description: 'The STORYBOARD — one still per five seconds of the finished piece, in order. THE FIRST FRAME carries the subject in words, because these platforms read on-screen text and most people watch with the sound off — Facebook especially. Describe that first still so the claim can sit on it legibly. A 15-second post takes exactly 3, a 30-second one takes 6; the count must match duration ÷ 5 and is refused with the arithmetic if it does not. Each entry describes ONE FRAME: subject, setting, framing, light, mood. Not camera movement — these are photographs, and asking for a slow push in describes something a still cannot do. They run END TO END, so they must carry the script forward rather than restate it: the hand reaching, the pan at heat, the plate finished. Three angles on the same moment is not a storyboard, it is one shot photographed three times, and it makes a video that does not move. Be concrete — a model cannot render "the feeling of trust", but it can render a hand stopping halfway to a pan.',
|
|
174
|
+
shot: {
|
|
175
|
+
type: 'string',
|
|
176
|
+
description: 'THE SHOT — one continuous video clip, described as a single moving image. This is GENERATED AS VIDEO now, not a still, so say what MOVES: the subject, the setting, the framing, the light, the mood, and then the movement itself — what changes across the clip, and the one camera move if there is one. NAME THINGS THAT HAPPEN, NEVER THINGS THAT DO NOT. This model reads an instruction to hold still as an instruction to render nothing: "nothing moves, nothing changes" came back as a black clip, while the same shot described positively (steam, shifting light, a slow push in) held perfectly. If you want a near-static shot, say which small things still move in it. The subject must be legible in the FIRST SECOND, because most people watch these with the sound off and decide in that second. Be concrete — a model cannot render "the feeling of trust", but it can render a hand stopping halfway to a pan. One idea, one shot: this is a single continuous take, so do not describe a sequence of moments or ask for a cut. The clip arrives with its own generated soundtrack, which the operator mutes before laying your voiceover over it — so write the PICTURE and never the sound.',
|
|
154
177
|
},
|
|
155
178
|
script: {
|
|
156
179
|
type: 'string',
|
|
157
|
-
description: 'What YOU SAY over the clip, spoken in your own voice. Written to be heard, not read — short sentences, no hashtags, no emoji, no "link in bio". THE OPENING LINE IS A DISCOVERY SURFACE, not just a hook: TikTok and Instagram both index the spoken words and the on-screen text of a short, so the plain term a person would SEARCH for belongs in the first sentence, said out loud. "A coding agent that runs offline" is findable; "wifi off, still coding" is only clever to someone already watching. Say the thing, then be clever. THE LENGTH IS DECIDED FIRST and you write to fill it. A video is 15 SECONDS — write
|
|
180
|
+
description: 'What YOU SAY over the clip, spoken in your own voice. Written to be heard, not read — short sentences, no hashtags, no emoji, no "link in bio". THE OPENING LINE IS A DISCOVERY SURFACE, not just a hook: TikTok and Instagram both index the spoken words and the on-screen text of a short, so the plain term a person would SEARCH for belongs in the first sentence, said out loud. "A coding agent that runs offline" is findable; "wifi off, still coding" is only clever to someone already watching. Say the thing, then be clever. THE LENGTH IS DECIDED FIRST and you write to fill it. A video is 15 SECONDS — write 16-20 words. Both bounds are enforced, so a one-line hook is REFUSED rather than quietly becoming a shorter clip, and an essay is refused rather than overrunning the picture. Fifteen seconds is one clear thought said properly: a claim and its turn, not a list. If an idea genuinely needs longer, set `duration` yourself and write to THAT length — the band moves with it (30s is 33-42 words). Reach for it because the idea earns the room, not out of habit. There is air at each end so your voice does not start on the first frame or stop on the last. Timed against the real voice at about 1.5 words a second, which is the SLOWEST measured take rather than the average — the budget multiplies by it, so an average would let a slow read run past the end of the picture. The ceiling keeps the voice inside the picture: a voice still talking after the clip stops is the most obviously broken thing a short can do. The floor keeps the picture from running on alone, and under 3 seconds Wan refuses the audio outright so nothing renders. A voiced clip is never 5 seconds — ask for 10 or more. Thirty seconds is a different KIND of writing, not a longer version of the same one: it is a walkthrough or a demonstration, and padding fifteen seconds of idea to fill it is worse than keeping it short. Omit the script entirely for a silent clip — the model scores its own audio, and a picture carried by that soundtrack is a real choice rather than a fallback.',
|
|
158
181
|
},
|
|
159
182
|
caption: {
|
|
160
183
|
type: 'string',
|
|
@@ -176,7 +199,7 @@ export class WriteVideoPostTool {
|
|
|
176
199
|
description: 'For a FOOD video: the name of a dish we already have a photograph of. CHECK FIRST with find_recipe — naming a dish we do not have is REFUSED, not generated, because a plausible stranger plate filed among our own photographs is one careless caption away from being posted as ours. Naming a real one puts OUR hero photograph in as the OPENING SHOT, so the first frame is genuinely the food and cannot misrepresent it. Use this for anything about a recipe. Your first entry in `shots` is then a description of that photograph rather than a request — it is not generated, so write the rest of the storyboard to follow on from it.',
|
|
177
200
|
},
|
|
178
201
|
},
|
|
179
|
-
required: ['posts', '
|
|
202
|
+
required: ['posts', 'shot'],
|
|
180
203
|
},
|
|
181
204
|
};
|
|
182
205
|
async execute(args, context) {
|
|
@@ -228,15 +251,14 @@ export class WriteVideoPostTool {
|
|
|
228
251
|
}
|
|
229
252
|
// Named for the messages below; the picture size is the same for all four.
|
|
230
253
|
const platform = parsed[0].platform;
|
|
231
|
-
const
|
|
232
|
-
? args.shots.map(x => String(x ?? '').trim()).filter(Boolean)
|
|
233
|
-
: [];
|
|
254
|
+
const shot = (args.shot || '').trim();
|
|
234
255
|
const script = (args.script || '').trim();
|
|
235
|
-
if (
|
|
256
|
+
if (!shot) {
|
|
236
257
|
return {
|
|
237
258
|
success: false,
|
|
238
|
-
output: 'write_video_post requires `
|
|
239
|
-
+ '
|
|
259
|
+
output: 'write_video_post requires `shot` — the clip, described as one continuous moving image. '
|
|
260
|
+
+ 'Say what MOVES in it, never what stays still: this model renders an instruction to hold '
|
|
261
|
+
+ 'still as nothing at all.',
|
|
240
262
|
};
|
|
241
263
|
}
|
|
242
264
|
const captionless = parsed.filter((v) => !v.caption).map((v) => v.platform);
|
|
@@ -469,34 +491,6 @@ export class WriteVideoPostTool {
|
|
|
469
491
|
: (wantsVoice
|
|
470
492
|
? Math.max(MIN_VOICED_SECONDS, Math.min(maxDuration, Math.round(requested)))
|
|
471
493
|
: Math.max(2, Math.min(maxDuration, Math.round(requested))));
|
|
472
|
-
/**
|
|
473
|
-
* ONE STILL PER FIVE SECONDS, and the count is checked rather than trusted.
|
|
474
|
-
*
|
|
475
|
-
* Derived from `duration` instead of asked for separately, because two
|
|
476
|
-
* numbers that must agree are two numbers that can disagree — and the one
|
|
477
|
-
* that would have lost is the picture, silently, leaving a 30-second piece
|
|
478
|
-
* with three frames and ten seconds of nothing to cut to.
|
|
479
|
-
*
|
|
480
|
-
* Checked HERE, after the duration is settled, because a duration she did
|
|
481
|
-
* not set was decided by this code: measuring against the raw request would
|
|
482
|
-
* refuse a perfectly good three-shot storyboard for a default she never saw.
|
|
483
|
-
*
|
|
484
|
-
* Ceiling, not exact division, so a length that is not a multiple of five
|
|
485
|
-
* still works — the last still simply holds a beat longer. Refused with the
|
|
486
|
-
* arithmetic shown, the same way the caption cap and the script band are,
|
|
487
|
-
* so she fixes it and re-calls in the same turn instead of guessing.
|
|
488
|
-
*/
|
|
489
|
-
const expectedShots = Math.max(1, Math.ceil(plannedDuration / SECONDS_PER_SHOT));
|
|
490
|
-
if (shots.length !== expectedShots) {
|
|
491
|
-
return {
|
|
492
|
-
success: false,
|
|
493
|
-
output: `A ${plannedDuration}s post needs ${expectedShots} shot${expectedShots === 1 ? '' : 's'} ` +
|
|
494
|
-
`(${plannedDuration} \u00f7 ${SECONDS_PER_SHOT}, rounded up) and you wrote ${shots.length}. ` +
|
|
495
|
-
(shots.length < expectedShots
|
|
496
|
-
? `Add ${expectedShots - shots.length} that carry the script FORWARD — the next moment, not another angle on this one.`
|
|
497
|
-
: `Cut ${shots.length - expectedShots}, or set duration to ${shots.length * SECONDS_PER_SHOT} if the piece genuinely needs the room.`),
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
494
|
if (script) {
|
|
501
495
|
const words = scriptWords;
|
|
502
496
|
const budget = wordBudget(plannedDuration);
|
|
@@ -552,7 +546,7 @@ export class WriteVideoPostTool {
|
|
|
552
546
|
hashtags: v.hashtags,
|
|
553
547
|
tagNote: v.tagNote,
|
|
554
548
|
})),
|
|
555
|
-
|
|
549
|
+
shot,
|
|
556
550
|
script: voicedScript || undefined,
|
|
557
551
|
// Covers the WHOLE read — the script the model wrote plus the sign-off
|
|
558
552
|
// appended above. If this diverges from the audio the voice overruns the
|
|
@@ -575,34 +569,34 @@ export class WriteVideoPostTool {
|
|
|
575
569
|
const voiceLine = post.script
|
|
576
570
|
? written.voiced
|
|
577
571
|
? ` The voiceover is in your voice${typeof written.voiceSeconds === 'number' ? `, ${written.voiceSeconds.toFixed(1)}s long` : ''}.`
|
|
578
|
-
: ` The VOICEOVER FAILED${written.voiceError ? ` (${written.voiceError})` : ''} — there is NO
|
|
572
|
+
: ` The VOICEOVER FAILED${written.voiceError ? ` (${written.voiceError})` : ''} — there is NO narration, so this is the clip and a caption only. Say so plainly.`
|
|
579
573
|
: '';
|
|
580
574
|
// A hole in the storyboard is reported, never hidden: she is about to
|
|
581
575
|
// tell the operator it is ready, and a missing frame is the one thing
|
|
582
576
|
// they cannot work around in Canva without knowing.
|
|
583
|
-
const shotLine = written.
|
|
584
|
-
? ` ${written.
|
|
577
|
+
const shotLine = written.clipError
|
|
578
|
+
? ` The CLIP FAILED to render (${written.clipError}) — there is no picture, only the voiceover and the caption. Say so plainly rather than describing a video that does not exist.`
|
|
585
579
|
: '';
|
|
586
580
|
return {
|
|
587
581
|
success: true,
|
|
588
|
-
output: `
|
|
589
|
-
`
|
|
590
|
-
|
|
582
|
+
output: `Video post ready for ${platform} — a ${plannedDuration}s clip, the caption, and the voiceover, ` +
|
|
583
|
+
`all saved to the Library. The clip carries its own generated soundtrack: it gets MUTED in Canva and ` +
|
|
584
|
+
`your voiceover goes over the top, with the text overlaid by hand. ` +
|
|
591
585
|
// The operator cuts this by hand, so the extra seconds have to be
|
|
592
586
|
// stated or the last still gets cut on the beat and the sign-off is
|
|
593
587
|
// clipped mid-sentence.
|
|
594
588
|
(outroSeconds > 0
|
|
595
589
|
? `The voiceover ends with the sign-off, which runs about ${outroSeconds}s past the ${plannedDuration}s of ` +
|
|
596
|
-
`
|
|
590
|
+
`picture — so the finished piece is roughly ${clipDuration}s and the last frame has to hold through it. `
|
|
597
591
|
: '') +
|
|
598
|
-
`You have not seen the
|
|
592
|
+
`You have not seen the clip: say what you made and why that shot, never how it looks.` +
|
|
599
593
|
`${recipeLine}${voiceLine}${shotLine}`,
|
|
600
594
|
};
|
|
601
595
|
}
|
|
602
596
|
catch (err) {
|
|
603
597
|
return {
|
|
604
598
|
success: false,
|
|
605
|
-
output: `Could not make the
|
|
599
|
+
output: `Could not make the video post: ${err instanceof Error ? err.message : String(err)}`,
|
|
606
600
|
};
|
|
607
601
|
}
|
|
608
602
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-video-post.js","sourceRoot":"","sources":["../../src/tools/write-video-post.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAA4C,MAAM,oBAAoB,CAAC;AAEpG;gEACgE;AAChE,MAAM,OAAO,GAAG,kBAAkB,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,OAAO,GAAG,oFAAoF,CAAC;AAErG;8DAC8D;AAC9D,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,GAAG,wBAAwB,CAAC,CAAC;AAExF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC;AAE/B,8EAA8E;AAC9E,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,OAAO,IAAI,CAAC,KA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