@project-ava-supernova/core 0.2.75 → 0.2.77

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.
@@ -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;AAO5D;;;;;;;;;;;;;GAaG;AACH,qBAAa,kBAAmB,YAAW,IAAI;IAC7C,QAAQ,CAAC,IAAI,sBAAsB;IACnC,QAAQ,CAAC,WAAW,0HACgG;IACpH,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAW;IAC5C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CA8C7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAsQjG"}
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;AAO5D;;;;;;;;;;;;;GAaG;AACH,qBAAa,kBAAmB,YAAW,IAAI;IAC7C,QAAQ,CAAC,IAAI,sBAAsB;IACnC,QAAQ,CAAC,WAAW,0HACgG;IACpH,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAW;IAC5C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CA8C7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CA2QjG"}
@@ -38,7 +38,7 @@ export class WriteVideoPostTool {
38
38
  },
39
39
  script: {
40
40
  type: 'string',
41
- 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 LENGTH IS DECIDED BY THE SUBJECT, and you write to fill it. A general video is 30 SECONDS — write 52-68 words. A recipe or exercise is 15 seconds — write 25-32. Both bounds are enforced, so a hook-length line for a general video is REFUSED rather than quietly becoming a short clip. Thirty seconds is a walkthrough, a piece to camera, an argument made properly not a hook stretched out. If the idea genuinely only wants one line, set duration yourself and mean it. 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 2.4 words a second. 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 a hook 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.',
41
+ 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 LENGTH IS DECIDED FIRST and you write to fill it. A video is 15 SECONDS — write 25-32 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 52-68 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 2.4 words a second. 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.',
42
42
  },
43
43
  caption: {
44
44
  type: 'string',
@@ -46,7 +46,7 @@ export class WriteVideoPostTool {
46
46
  },
47
47
  duration: {
48
48
  type: 'number',
49
- description: 'Clip length in seconds, 2-30. LEAVE IT OUT and the subject decides: 30s for a general video, 15s for a recipe or exercise. Set it ONLY to deliberately go against that a demonstration with few words and a lot to show, or a hook that genuinely wants to be short. Keep it to what the material actually needs a padded clip loses the viewer, and that gets easier to do with more room. 10 is the default shape for a hook. 15 suits a full coaching line. 30 is for something that genuinely needs showing: a walkthrough, a before-and-after, a process. Naming a `recipe` caps this at 15, because a food video animates our own photograph and that model stops there.',
49
+ description: 'Clip length in seconds, 2-30. LEAVE IT OUT and you get 15s, whatever the subject that is the format, and it holds one clear thought. Set it ONLY when the material genuinely needs otherwise, and the script band moves with whatever you set. 10 is a hook. 15 is the default: a full coaching line, a dish, a single point made properly. 30 is for something that truly needs showing a walkthrough, a before-and-after, a process and costs about twice the wait, so it should earn it. A padded clip loses the viewer, and padding gets easier the more room you have.',
50
50
  },
51
51
  title: { type: 'string', description: 'Optional short title for the library.' },
52
52
  hashtags: {
@@ -187,18 +187,20 @@ export class WriteVideoPostTool {
187
187
  const FILL_RATIO = 0.77;
188
188
  const wantsVoice = !!script;
189
189
  /**
190
- * How long the clip may run.
190
+ * How long the clip may run: 30 seconds, whatever the subject is.
191
191
  *
192
- * A food video names a dish we photographed, so it animates OUR image
193
- * image-to-video, which tops out at 15s on wan2.7-i2v. Everything else is
194
- * text-to-video on wan3.0-video, which reaches 30s. Those ceilings are the
195
- * models' own, quoted from their validators, and the platform route clamps
196
- * to them independently; matching them here means the SCRIPT is written for
197
- * the length that will actually render. Get this wrong and a script sized
198
- * for 30 seconds gets a 15-second clip, and the voice runs past the end —
199
- * the exact failure everything below exists to prevent.
192
+ * Food used to stop at 15. Not a judgement about food a recipe animates
193
+ * OUR photograph of the dish, that went to wan2.7-i2v, and wan2.7-i2v stops
194
+ * at 15. One model does everything now and it reaches 30, so the cap has
195
+ * nothing left to enforce.
196
+ *
197
+ * This is the model's own ceiling, quoted from its validator, and the
198
+ * platform route clamps to it independently; matching it here means the
199
+ * SCRIPT is written for the length that will actually render. Get it wrong
200
+ * and a script sized for 30 seconds gets a 15-second clip, and the voice
201
+ * runs past the end — the exact failure everything below exists to prevent.
200
202
  */
201
- const maxDuration = args.recipe ? 15 : 30;
203
+ const maxDuration = 30;
202
204
  /** How many words a clip of this length can carry, with air at both ends. */
203
205
  const wordBudget = (seconds) => Math.floor(Math.max(1, seconds - LEAD_IN_SECONDS - TRAILING_AIR_SECONDS) * SLOWEST_WORDS_PER_SECOND);
204
206
  /**
@@ -210,26 +212,29 @@ export class WriteVideoPostTool {
210
212
  const MIN_VOICED_SECONDS = 10;
211
213
  const scriptWords = script ? script.split(/\s+/).filter(Boolean).length : 0;
212
214
  /**
213
- * Length is a FORMAT decision, and the format follows the SUBJECT.
215
+ * Length is a FORMAT decision, and the format is 15 seconds.
216
+ *
217
+ * Thirty was the default for exactly one evening, set the moment wan3.0
218
+ * made it possible for every subject. Possible turned out not to be the
219
+ * same as right, and none of the reasons for fifteen are about the model:
214
220
  *
215
- * a recipe or an exercise -> 15s. It animates a photograph we verified,
216
- * and fifteen is what a coaching line or a
217
- * plate of food needs. More is padding.
218
- * everything else -> 30s. Long enough to be a demonstration
219
- * rather than a hook, which is the whole
220
- * reason for having it.
221
+ * - half the frames, so it comes back sooner. A 30s render measured
222
+ * anywhere from 8 to 25 minutes; an evening of posts should not be a
223
+ * queue.
224
+ * - half the compute, all of which we pay for.
225
+ * - completion rate is what ranks a Reel or a Short, and a tight fifteen
226
+ * watched through beats a thirty abandoned halfway.
227
+ * - fifteen seconds cannot be padded. Thirty invites it.
221
228
  *
222
- * This was briefly derived from the script instead write the line, get a
223
- * clip sized to hold it. It reads well and it is wrong: she writes at
224
- * hook length by habit, so every general clip came out at ten seconds and
225
- * the thirty-second format simply never happened. Deciding the form first
226
- * and writing INTO it is the way round that actually produces the thing.
229
+ * Thirty is still reachable, and the word band moves with it, so nothing is
230
+ * ever squeezed a shorter clip gets a shorter script, not a compressed
231
+ * one. It just has to be ASKED for now.
227
232
  *
228
- * She can still override. A demonstration may have few words and a lot to
229
- * show, and a genuine one-line hook is sometimes right. But she has to mean
230
- * it, rather than arriving at ten seconds by writing briefly.
233
+ * What has not changed: the length is decided BEFORE the writing. Deriving
234
+ * it from the script was tried and it collapsed to hook-length everything,
235
+ * because that is how she writes when nothing sets the shape.
231
236
  */
232
- const DEFAULT_SECONDS = args.recipe ? 15 : 30;
237
+ const DEFAULT_SECONDS = 15;
233
238
  const requested = typeof args.duration === 'number' ? args.duration : undefined;
234
239
  const plannedDuration = requested === undefined
235
240
  ? DEFAULT_SECONDS
@@ -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;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,kBAAkB;IACpB,IAAI,GAAG,kBAAkB,CAAC;IAC1B,WAAW,GAClB,iHAAiH,CAAC;IAC3G,SAAS,GAAkB,OAAO,CAAC;IACnC,oBAAoB,GAAG,KAAK,CAAC;IAE7B,MAAM,GAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,WAAW,EACT,4bAA4b;QAC9b,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,IAAI,EAA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AAM,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACxC,0EAA0E;YAC1E,0EAA0E;YAC1E,oCAAoC;YACpC,sEAAsE;YACtE,uEAAuE;YACvE,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM;gBAC5B,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe;oBACtB,CAAC,CAAC,mCAAmC,OAAO,CAAC,eAAe,gCAAgC;oBAC5F,CAAC,CAAC,6BAA6B,IAAI,CAAC,MAAM,mEAAmE,CAAC;gBAClH,CAAC,CAAC,EAAE,CAAC;YACP,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM;gBAC3B,CAAC,CAAC,OAAO,CAAC,MAAM;oBACd,CAAC,CAAC,8BAA8B;oBAChC,CAAC,CAAC,wBAAwB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,EAAE,0EAA0E;gBAC1J,CAAC,CAAC,EAAE,CAAC;YACP,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,MAAM,EACJ,yBAAyB,QAAQ,iEAAiE;oBAClG,QAAQ,OAAO,CAAC,MAAM,WAAW,OAAO,CAAC,IAAI,wDAAwD;oBACrG,8DAA8D;oBAC9D,kFAAkF,UAAU,GAAG,SAAS,EAAE;aAC7G,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,8BAA8B,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;aACzF,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-ava-supernova/core",
3
- "version": "0.2.75",
3
+ "version": "0.2.77",
4
4
  "description": "Core engine for Ava Supernova — agent, providers, tools, config",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",