gooseworks 0.5.8 → 0.5.9-dev.56.eca9486d

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 (188) hide show
  1. package/dist/agents/claude-mcp.d.ts +7 -1
  2. package/dist/agents/claude-mcp.d.ts.map +1 -1
  3. package/dist/agents/claude-mcp.js +43 -10
  4. package/dist/agents/claude-mcp.js.map +1 -1
  5. package/dist/auth/credentials.d.ts +8 -0
  6. package/dist/auth/credentials.d.ts.map +1 -1
  7. package/dist/auth/credentials.js +35 -1
  8. package/dist/auth/credentials.js.map +1 -1
  9. package/dist/auth/device-flow.d.ts +4 -1
  10. package/dist/auth/device-flow.d.ts.map +1 -1
  11. package/dist/auth/device-flow.js +8 -3
  12. package/dist/auth/device-flow.js.map +1 -1
  13. package/dist/auth/oauth-server.d.ts +9 -1
  14. package/dist/auth/oauth-server.d.ts.map +1 -1
  15. package/dist/auth/oauth-server.js +19 -11
  16. package/dist/auth/oauth-server.js.map +1 -1
  17. package/dist/auth/revoke.d.ts +10 -0
  18. package/dist/auth/revoke.d.ts.map +1 -0
  19. package/dist/auth/revoke.js +31 -0
  20. package/dist/auth/revoke.js.map +1 -0
  21. package/dist/commands/login.d.ts +15 -1
  22. package/dist/commands/login.d.ts.map +1 -1
  23. package/dist/commands/login.js +34 -10
  24. package/dist/commands/login.js.map +1 -1
  25. package/dist/commands/logout.d.ts.map +1 -1
  26. package/dist/commands/logout.js +29 -11
  27. package/dist/commands/logout.js.map +1 -1
  28. package/dist/commands/video.d.ts +35 -0
  29. package/dist/commands/video.d.ts.map +1 -1
  30. package/dist/commands/video.js +475 -39
  31. package/dist/commands/video.js.map +1 -1
  32. package/dist/index.js +2 -0
  33. package/dist/index.js.map +1 -1
  34. package/dist/kit/core/canonical.d.ts +3 -1
  35. package/dist/kit/core/canonical.d.ts.map +1 -1
  36. package/dist/kit/core/canonical.js +1 -1
  37. package/dist/kit/core/canonical.js.map +1 -1
  38. package/dist/kit/core/check.d.ts +2 -0
  39. package/dist/kit/core/check.d.ts.map +1 -1
  40. package/dist/kit/core/check.js +12 -2
  41. package/dist/kit/core/check.js.map +1 -1
  42. package/dist/kit/core/detach.d.ts +11 -0
  43. package/dist/kit/core/detach.d.ts.map +1 -0
  44. package/dist/kit/core/detach.js +72 -0
  45. package/dist/kit/core/detach.js.map +1 -0
  46. package/dist/kit/core/diff.d.ts +5 -0
  47. package/dist/kit/core/diff.d.ts.map +1 -0
  48. package/dist/kit/core/diff.js +132 -0
  49. package/dist/kit/core/diff.js.map +1 -0
  50. package/dist/kit/core/errors.d.ts +7 -1
  51. package/dist/kit/core/errors.d.ts.map +1 -1
  52. package/dist/kit/core/errors.js +11 -1
  53. package/dist/kit/core/errors.js.map +1 -1
  54. package/dist/kit/core/eyes.d.ts +80 -0
  55. package/dist/kit/core/eyes.d.ts.map +1 -0
  56. package/dist/kit/core/eyes.js +366 -0
  57. package/dist/kit/core/eyes.js.map +1 -0
  58. package/dist/kit/core/files.js +2 -2
  59. package/dist/kit/core/files.js.map +1 -1
  60. package/dist/kit/core/lock.d.ts +4 -0
  61. package/dist/kit/core/lock.d.ts.map +1 -0
  62. package/dist/kit/core/lock.js +13 -0
  63. package/dist/kit/core/lock.js.map +1 -0
  64. package/dist/kit/core/log.d.ts +38 -2
  65. package/dist/kit/core/log.d.ts.map +1 -1
  66. package/dist/kit/core/log.js +38 -5
  67. package/dist/kit/core/log.js.map +1 -1
  68. package/dist/kit/core/outcome.d.ts +114 -0
  69. package/dist/kit/core/outcome.d.ts.map +1 -0
  70. package/dist/kit/core/outcome.js +246 -0
  71. package/dist/kit/core/outcome.js.map +1 -0
  72. package/dist/kit/core/patch.d.ts +64 -0
  73. package/dist/kit/core/patch.d.ts.map +1 -0
  74. package/dist/kit/core/patch.js +289 -0
  75. package/dist/kit/core/patch.js.map +1 -0
  76. package/dist/kit/core/paths.d.ts +17 -0
  77. package/dist/kit/core/paths.d.ts.map +1 -1
  78. package/dist/kit/core/paths.js +21 -0
  79. package/dist/kit/core/paths.js.map +1 -1
  80. package/dist/kit/core/pieces.d.ts +16 -4
  81. package/dist/kit/core/pieces.d.ts.map +1 -1
  82. package/dist/kit/core/pieces.js +84 -27
  83. package/dist/kit/core/pieces.js.map +1 -1
  84. package/dist/kit/core/progress-reporter.d.ts +21 -4
  85. package/dist/kit/core/progress-reporter.d.ts.map +1 -1
  86. package/dist/kit/core/progress-reporter.js +74 -12
  87. package/dist/kit/core/progress-reporter.js.map +1 -1
  88. package/dist/kit/core/progress.d.ts +41 -4
  89. package/dist/kit/core/progress.d.ts.map +1 -1
  90. package/dist/kit/core/progress.js +105 -18
  91. package/dist/kit/core/progress.js.map +1 -1
  92. package/dist/kit/core/refusal-log.d.ts +7 -0
  93. package/dist/kit/core/refusal-log.d.ts.map +1 -0
  94. package/dist/kit/core/refusal-log.js +54 -0
  95. package/dist/kit/core/refusal-log.js.map +1 -0
  96. package/dist/kit/core/run.d.ts +39 -5
  97. package/dist/kit/core/run.d.ts.map +1 -1
  98. package/dist/kit/core/run.js +514 -83
  99. package/dist/kit/core/run.js.map +1 -1
  100. package/dist/kit/core/save.d.ts +7 -3
  101. package/dist/kit/core/save.d.ts.map +1 -1
  102. package/dist/kit/core/save.js +57 -20
  103. package/dist/kit/core/save.js.map +1 -1
  104. package/dist/kit/core/style.d.ts +1 -0
  105. package/dist/kit/core/style.d.ts.map +1 -1
  106. package/dist/kit/core/style.js +1 -1
  107. package/dist/kit/core/style.js.map +1 -1
  108. package/dist/kit/line/client.d.ts +14 -2
  109. package/dist/kit/line/client.d.ts.map +1 -1
  110. package/dist/kit/line/client.js +40 -20
  111. package/dist/kit/line/client.js.map +1 -1
  112. package/dist/kit/line/types.d.ts +33 -1
  113. package/dist/kit/line/types.d.ts.map +1 -1
  114. package/dist/kit/maker/cues.d.ts +67 -0
  115. package/dist/kit/maker/cues.d.ts.map +1 -0
  116. package/dist/kit/maker/cues.js +204 -0
  117. package/dist/kit/maker/cues.js.map +1 -0
  118. package/dist/kit/maker/encode.d.ts +5 -0
  119. package/dist/kit/maker/encode.d.ts.map +1 -1
  120. package/dist/kit/maker/encode.js +7 -1
  121. package/dist/kit/maker/encode.js.map +1 -1
  122. package/dist/kit/maker/facts.d.ts +46 -0
  123. package/dist/kit/maker/facts.d.ts.map +1 -0
  124. package/dist/kit/maker/facts.js +159 -0
  125. package/dist/kit/maker/facts.js.map +1 -0
  126. package/dist/kit/maker/inputs.d.ts +48 -3
  127. package/dist/kit/maker/inputs.d.ts.map +1 -1
  128. package/dist/kit/maker/inputs.js +151 -22
  129. package/dist/kit/maker/inputs.js.map +1 -1
  130. package/dist/kit/maker/make.d.ts +20 -1
  131. package/dist/kit/maker/make.d.ts.map +1 -1
  132. package/dist/kit/maker/make.js +129 -21
  133. package/dist/kit/maker/make.js.map +1 -1
  134. package/dist/kit/maker/page.d.ts.map +1 -1
  135. package/dist/kit/maker/page.js +49 -1
  136. package/dist/kit/maker/page.js.map +1 -1
  137. package/dist/kit/maker/parts/html-frames/1.2.1/part.json +1083 -0
  138. package/dist/kit/maker/parts/html-frames/src/part.d.ts.map +1 -1
  139. package/dist/kit/maker/parts/html-frames/src/part.js +4 -1
  140. package/dist/kit/maker/parts/html-frames/src/part.js.map +1 -1
  141. package/dist/kit/maker/runtime.d.ts.map +1 -1
  142. package/dist/kit/maker/runtime.js +54 -7
  143. package/dist/kit/maker/runtime.js.map +1 -1
  144. package/dist/kit/maker/timing.d.ts +74 -0
  145. package/dist/kit/maker/timing.d.ts.map +1 -0
  146. package/dist/kit/maker/timing.js +152 -0
  147. package/dist/kit/maker/timing.js.map +1 -0
  148. package/dist/kit/maker/under.d.ts +126 -0
  149. package/dist/kit/maker/under.d.ts.map +1 -0
  150. package/dist/kit/maker/under.js +299 -0
  151. package/dist/kit/maker/under.js.map +1 -0
  152. package/dist/kit/parts/catalog.d.ts +3 -20
  153. package/dist/kit/parts/catalog.d.ts.map +1 -1
  154. package/dist/kit/parts/catalog.js +6 -41
  155. package/dist/kit/parts/catalog.js.map +1 -1
  156. package/dist/kit/parts/loader.d.ts +7 -2
  157. package/dist/kit/parts/loader.d.ts.map +1 -1
  158. package/dist/kit/parts/loader.js +88 -23
  159. package/dist/kit/parts/loader.js.map +1 -1
  160. package/dist/skills/master-skill.d.ts +4 -6
  161. package/dist/skills/master-skill.d.ts.map +1 -1
  162. package/dist/skills/master-skill.js +28 -28
  163. package/dist/skills/master-skill.js.map +1 -1
  164. package/dist/skills/routes.js +5 -5
  165. package/dist/skills/routes.js.map +1 -1
  166. package/dist/skills/server-entry-skills.d.ts +6 -6
  167. package/dist/skills/server-entry-skills.d.ts.map +1 -1
  168. package/dist/skills/server-entry-skills.js +89 -60
  169. package/dist/skills/server-entry-skills.js.map +1 -1
  170. package/dist/utils/browser-preflight.d.ts +3 -0
  171. package/dist/utils/browser-preflight.d.ts.map +1 -1
  172. package/dist/utils/browser-preflight.js +27 -6
  173. package/dist/utils/browser-preflight.js.map +1 -1
  174. package/dist/utils/exit.d.ts +6 -0
  175. package/dist/utils/exit.d.ts.map +1 -0
  176. package/dist/utils/exit.js +37 -0
  177. package/dist/utils/exit.js.map +1 -0
  178. package/package.json +14 -3
  179. package/skills/goose-ads/SKILL.md +8 -8
  180. package/skills/goose-product-photos/SKILL.md +8 -8
  181. package/skills/goose-video/SKILL.md +29 -595
  182. package/skills/goose-video-local/SKILL.md +3 -1572
  183. package/skills/gooseworks/SKILL.md +10 -12
  184. package/skills/make-custom-video/SKILL.md +25 -672
  185. package/skills/manifest.json +7 -7
  186. package/skills/routes.json +3 -3
  187. package/dist/kit/maker/parts/html-frames/1.1.0/part.json +0 -199
  188. package/dist/skills/production-video-skills.json +0 -5
@@ -42,10 +42,11 @@ exports.loadPart = loadPart;
42
42
  // `<raw base>/parts/<id>/<version>/` holds part.json, part.mjs and assets. The
43
43
  // video's PartsLock, handed over by our server at the yes, is the trust
44
44
  // anchor: every file's sha256 must match it on every load, and the part's
45
- // models and kit range must match both the lock and the published index.
46
- // A version that is withdrawn, missing from the index or out of this kit's
47
- // range is refused. Nothing is imported until every check has passed, so a
48
- // refused part never runs and nothing is spent.
45
+ // models and kit range must match the lock. A version that is withdrawn or out
46
+ // of this kit's range is refused. Nothing is imported until every check has
47
+ // passed, so a refused part never runs and nothing is spent. A file the
48
+ // published folder doesn't serve yet is a miss to try again later, not a
49
+ // refusal: the lock's hashes already say what the part is.
49
50
  //
50
51
  // Each verified copy is a folder of its own, keyed by the part and the exact
51
52
  // file hashes the lock gives it: <home>/kit/parts/<id>/<version>/<key>/. It is
@@ -58,6 +59,11 @@ exports.loadPart = loadPart;
58
59
  // with different locks never share a folder, and a part only ever sees the
59
60
  // files its lock vouches for. No link is followed below the kit home.
60
61
  //
62
+ // An edited step (`video make <id> --patched <step>`) runs a copy of its locked part in which only
63
+ // the edited files differ: the published part is checked as above, the edited copy must hold the
64
+ // lock's files with exactly the hashes the edit names, and those verified bytes are what is
65
+ // imported. part.json never changes, so the models and kit range stay the lock's.
66
+ //
61
67
  // GOOSE_KIT_PARTS_DIR (a local goose-skills checkout) loads parts from disk
62
68
  // without the lock's hashes, for building parts during the sprint. It works
63
69
  // only against staging or a local server and marks the part `source: "dev"`.
@@ -74,7 +80,7 @@ const semver_1 = require("./semver");
74
80
  exports.MAX_ENTRY_BYTES = 2 * 1024 * 1024;
75
81
  exports.MAX_FOLDER_BYTES = 20 * 1024 * 1024;
76
82
  const DEFAULT_TIMEOUT_MS = 60_000;
77
- /** A part that must not run. The message is plain and names the part; nothing was spent. */
83
+ /** A part that must not run. The message is plain and names the part. */
78
84
  class PartLoadError extends Error {
79
85
  code;
80
86
  constructor(code, message) {
@@ -205,15 +211,15 @@ function createPartLoader(options) {
205
211
  const fetchImpl = options.fetch ?? ((url, init) => fetch(url, init));
206
212
  const importModule = options.importModule ?? nativeImport;
207
213
  const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
208
- // The lists are read once per run of the kit, from the origin the first load used.
209
- const catalogs = new Map();
210
- function catalogFor(rawBase, signal) {
211
- let pending = catalogs.get(rawBase);
214
+ // The withdrawn list is read once per run of the kit, from the origin the first load used.
215
+ const lists = new Map();
216
+ function withdrawnFor(rawBase, signal) {
217
+ let pending = lists.get(rawBase);
212
218
  if (!pending) {
213
- pending = (0, catalog_1.fetchCatalog)(fetchImpl, rawBase, { timeoutMs, signal });
219
+ pending = (0, catalog_1.fetchWithdrawn)(fetchImpl, rawBase, { timeoutMs, signal });
214
220
  // A failed read is not kept: the next load tries again.
215
- pending.catch(() => catalogs.delete(rawBase));
216
- catalogs.set(rawBase, pending);
221
+ pending.catch(() => lists.delete(rawBase));
222
+ lists.set(rawBase, pending);
217
223
  }
218
224
  return pending;
219
225
  }
@@ -228,23 +234,16 @@ function createPartLoader(options) {
228
234
  catch (error) {
229
235
  throw new PartLoadError('unreachable', error.message);
230
236
  }
231
- let catalog;
237
+ let withdrawn;
232
238
  try {
233
- catalog = await catalogFor(source.rawBase, request.signal);
239
+ withdrawn = await withdrawnFor(source.rawBase, request.signal);
234
240
  }
235
241
  catch (error) {
236
- throw new PartLoadError('unreachable', error instanceof catalog_1.CatalogError ? error.message : 'Could not read the published parts list.');
242
+ throw new PartLoadError('unreachable', error instanceof catalog_1.CatalogError ? error.message : 'Could not read the list of withdrawn parts.');
237
243
  }
238
- if (catalog.withdrawn.has((0, catalog_1.partKey)(ref.id, ref.version))) {
244
+ if (withdrawn.has((0, catalog_1.partKey)(ref.id, ref.version))) {
239
245
  throw new PartLoadError('withdrawn', `${named(ref)} was withdrawn, so this video can’t use it. The video needs a new plan.`);
240
246
  }
241
- const published = catalog.index.get((0, catalog_1.partKey)(ref.id, ref.version));
242
- if (!published) {
243
- throw new PartLoadError('not_published', `${named(ref)} is not in the published parts list.`);
244
- }
245
- if (!(0, catalog_1.sameFiles)(published.files, locked.files) || !(0, catalog_1.sameModels)(published.models, locked.models) || published.kit !== locked.kit) {
246
- throw new PartLoadError('index_mismatch', `${named(ref)} in this video’s parts list does not match the published part.`);
247
- }
248
247
  await fs_1.promises.mkdir(request.home, { recursive: true, mode: 0o700 });
249
248
  const home = await fs_1.promises.realpath(request.home);
250
249
  const key = copyKey(ref, locked.files);
@@ -323,12 +322,76 @@ function createPartLoader(options) {
323
322
  }
324
323
  }
325
324
  const manifest = checkManifest(ref, verified.get('part.json'), locked);
325
+ if (request.patched)
326
+ return loadPatched(request, request.patched, locked, home);
326
327
  const entry = path.join(dir, 'part.mjs');
327
328
  // The folder is keyed by the lock's hashes and the address by the entry's,
328
329
  // so Node's module cache can only hand back these exact bytes.
329
330
  const mod = await importModule(`${(0, url_1.pathToFileURL)(entry).href}?sha256=${locked.files['part.mjs']}`);
330
331
  return { manifest, dir, run: exportedRun(ref, mod), source: 'published' };
331
332
  }
333
+ /** The edited copy, after the published part passed: its verified bytes, copied where nothing else writes. */
334
+ async function loadPatched(request, patched, locked, home) {
335
+ const { ref } = request;
336
+ const lockedFiles = Object.keys(locked.files);
337
+ const edited = (what) => new PartLoadError('hash_mismatch', `The edited copy of ${ref.id} ${ref.version} ${what}.`);
338
+ if (Object.keys(patched.files).length !== lockedFiles.length || lockedFiles.some((file) => !patched.files[file]))
339
+ throw edited('does not hold the same files as the part');
340
+ if (patched.files['part.json'] !== locked.files['part.json'])
341
+ throw edited('changed part.json');
342
+ const read = await readCopy(path.resolve(patched.dir), patched.files);
343
+ if (!read)
344
+ throw edited('changed after the edit was read, or holds other files; make the video again with it');
345
+ const manifest = checkManifest(ref, read.get('part.json'), locked);
346
+ const key = copyKey(ref, patched.files);
347
+ let target;
348
+ try {
349
+ target = path.join(await (0, fs_safe_1.realFolder)(home, ['kit', 'patched', ref.id, ref.version]), key);
350
+ }
351
+ catch (error) {
352
+ if (error instanceof fs_safe_1.NotAFolder)
353
+ throw new PartLoadError('bad_cache', `${error.at} is not a plain folder, so the kit will not store parts through it. Move it away and run the same command again.`);
354
+ throw error;
355
+ }
356
+ // Another video with the same edit may be storing or checking this copy: one at a time per copy.
357
+ const parent = path.dirname(target);
358
+ let stored;
359
+ try {
360
+ stored = await (0, fs_safe_1.withFolderLock)(parent, `.${key}`, { timeoutMs, signal: request.signal }, async () => {
361
+ if (await readCopy(target, patched.files))
362
+ return true;
363
+ const staging = await fs_1.promises.mkdtemp(path.join(parent, '.staging-'));
364
+ try {
365
+ for (const [file, bytes] of read) {
366
+ const out = path.join(staging, ...file.split('/'));
367
+ await fs_1.promises.mkdir(path.dirname(out), { recursive: true, mode: 0o700 });
368
+ await fs_1.promises.writeFile(out, bytes, { mode: 0o600, flag: 'wx' });
369
+ }
370
+ // A damaged copy is moved aside whole, then deleted without following links.
371
+ if (await fs_1.promises.lstat(target).catch(() => null)) {
372
+ const aside = path.join(parent, `.aside-${key}-${(0, crypto_1.randomBytes)(6).toString('hex')}`);
373
+ await fs_1.promises.rename(target, aside);
374
+ await (0, fs_safe_1.removeTree)(aside);
375
+ }
376
+ await fs_1.promises.rename(staging, target);
377
+ }
378
+ finally {
379
+ await (0, fs_safe_1.removeTree)(staging);
380
+ }
381
+ return !!(await readCopy(target, patched.files));
382
+ });
383
+ }
384
+ catch (error) {
385
+ if (error instanceof fs_safe_1.LockTimeout)
386
+ throw new PartLoadError('bad_cache', `Another run is storing the edited ${ref.id} ${ref.version}. Run the same command again in a moment.`);
387
+ throw error;
388
+ }
389
+ if (!stored)
390
+ throw edited('changed on this computer while it was stored; run the same command again');
391
+ const entry = path.join(target, 'part.mjs');
392
+ const mod = await importModule(`${(0, url_1.pathToFileURL)(entry).href}?sha256=${patched.files['part.mjs']}`);
393
+ return { manifest, dir: target, run: exportedRun(ref, mod), source: 'published' };
394
+ }
332
395
  async function loadDev(request) {
333
396
  const { ref } = request;
334
397
  if ((0, env_1.apiEnvironment)((0, env_1.kitApiBase)(request.env)) === 'production') {
@@ -377,6 +440,8 @@ function createPartLoader(options) {
377
440
  checkRef(request.ref);
378
441
  if (request.signal.aborted)
379
442
  throw new PartLoadError('unreachable', 'The video was stopped before its parts loaded.');
443
+ if (request.dev && request.patched)
444
+ throw new PartLoadError('dev_refused', 'An edited step runs from the published parts, not a local parts folder.');
380
445
  return request.dev ? loadDev(request) : loadPublished(request);
381
446
  },
382
447
  };
@@ -1 +1 @@
1
- {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../src/kit/parts/loader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6NA,4CA6KC;AAGD,4BAcC;AA3ZD,yEAAyE;AACzE,EAAE;AACF,8DAA8D;AAC9D,+EAA+E;AAC/E,wEAAwE;AACxE,0EAA0E;AAC1E,yEAAyE;AACzE,2EAA2E;AAC3E,2EAA2E;AAC3E,gDAAgD;AAChD,EAAE;AACF,6EAA6E;AAC7E,+EAA+E;AAC/E,6EAA6E;AAC7E,qEAAqE;AACrE,0EAA0E;AAC1E,uEAAuE;AACvE,wEAAwE;AACxE,2EAA2E;AAC3E,2EAA2E;AAC3E,sEAAsE;AACtE,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,6EAA6E;AAC7E,mCAAiD;AACjD,2BAAoC;AACpC,2CAA6B;AAC7B,6BAAoC;AAEpC,gCAAiE;AACjE,sDAA2D;AAC3D,uCAamB;AACnB,uCAA4F;AAC5F,qCAA6D;AAE7D,2CAA2C;AAC9B,QAAA,eAAe,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAClC,QAAA,gBAAgB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACjD,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAgBlC,4FAA4F;AAC5F,MAAa,aAAc,SAAQ,KAAK;IAE3B;IADX,YACW,IAAkB,EAC3B,OAAe;QAEf,KAAK,CAAC,OAAO,CAAC,CAAC;QAHN,SAAI,GAAJ,IAAI,CAAc;QAI3B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AARD,sCAQC;AAoCD,iFAAiF;AACjF,MAAM,YAAY,GAAG,IAAI,QAAQ,CAAC,KAAK,EAAE,oBA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CAAC;AACJ,CAAC;AAED,0EAA0E;AAC1E,SAAgB,QAAQ,CACtB,EAAU,EACV,OAAe,EACf,IAAsB,EACtB,OAA2G;IAE3G,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;QACpC,GAAG,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE;QACpB,IAAI;QACJ,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,KAAK;QACzB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG;QAC/B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC,MAAM;KACvD,CAAC,CAAC;AACL,CAAC"}
@@ -3,14 +3,12 @@ export interface EntrySkill {
3
3
  name: string;
4
4
  content: string;
5
5
  }
6
- /** The kit command, as the server's next_step gives it. */
7
- export declare const KIT_MAKE_COMMAND = "gooseworks video make <id>";
8
6
  /**
9
7
  * THE registry of entry skills (GOOSE-3190) — one list, four consumers:
10
8
  * - `gooseworks install` / `update` / login-refresh write exactly these dirs,
11
9
  * - `npm run generate:skills` regenerates exactly these `skills/<name>/SKILL.md`,
12
10
  * - `skills/names.ts` derives which dirs the CLI is allowed to delete,
13
- * - the backend raw-fetches these paths for chat apps.
11
+ * - the backend fetches these paths from the published package for chat apps.
14
12
  */
15
13
  export declare function getEntrySkills(): EntrySkill[];
16
14
  /** Just the directory names, for callers that don't need the bodies. */
@@ -21,10 +19,10 @@ export declare function getMasterSkillContent(): string;
21
19
  export declare function getGooseAdsSkillContent(): string;
22
20
  /** Product photos of the brand's real, physical products. */
23
21
  export declare function getGooseProductPhotosSkillContent(): string;
24
- /** Video entry matched to the production backend. */
22
+ /** Our server's goose-video entry skill, as built. */
25
23
  export declare function getGooseVideoSkillContent(): string;
26
- /** Custom-video entry matched to the production backend. */
24
+ /** Our server's make-custom-video entry skill, as built. */
27
25
  export declare function getMakeCustomVideoSkillContent(): string;
28
- /** Local-render entry matched to the production backend. */
26
+ /** One line: the kit makes the video when the server says so. */
29
27
  export declare function getGooseVideoLocalSkillContent(): string;
30
28
  //# sourceMappingURL=master-skill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"master-skill.d.ts","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":"AAwBA,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAE7D;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,UAAU,EAAE,CAS7C;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C;AAED,sGAAsG;AACtG,wBAAgB,qBAAqB,IAAI,MAAM,CA+E9C;AAED,4CAA4C;AAC5C,wBAAgB,uBAAuB,IAAI,MAAM,CAiChD;AAED,6DAA6D;AAC7D,wBAAgB,iCAAiC,IAAI,MAAM,CA8B1D;AAED,qDAAqD;AACrD,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAED,4DAA4D;AAC5D,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD;AAED,4DAA4D;AAC5D,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD"}
1
+ {"version":3,"file":"master-skill.d.ts","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,UAAU,EAAE,CAS7C;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C;AAED,sGAAsG;AACtG,wBAAgB,qBAAqB,IAAI,MAAM,CA6E9C;AAED,4CAA4C;AAC5C,wBAAgB,uBAAuB,IAAI,MAAM,CAiChD;AAED,6DAA6D;AAC7D,wBAAgB,iCAAiC,IAAI,MAAM,CA8B1D;AAED,sDAAsD;AACtD,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAED,4DAA4D;AAC5D,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD;AAED,iEAAiE;AACjE,wBAAgB,8BAA8B,IAAI,MAAM,CASvD"}
@@ -1,9 +1,5 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.KIT_MAKE_COMMAND = void 0;
7
3
  exports.getEntrySkills = getEntrySkills;
8
4
  exports.getEntrySkillNames = getEntrySkillNames;
9
5
  exports.getMasterSkillContent = getMasterSkillContent;
@@ -14,35 +10,34 @@ exports.getMakeCustomVideoSkillContent = getMakeCustomVideoSkillContent;
14
10
  exports.getGooseVideoLocalSkillContent = getGooseVideoLocalSkillContent;
15
11
  /**
16
12
  * The entry skills the CLI installs into ~/.agents/skills/ and commits under
17
- * skills/ (the backend serves the committed copies to chat apps):
13
+ * skills/ (the backend serves the published package's copies to chat apps):
18
14
  *
19
15
  * - `gooseworks` the router: hands specialist work to its skill and
20
16
  * does data work with the gooseworks commands.
21
17
  * - `goose-ads` image ads: make, edit and study them.
22
18
  * - `goose-product-photos` product photos.
23
19
  * - `goose-video`, `make-custom-video`
24
- * instructions compatible with the production main app.
25
- * - `goose-video-local` the production local-render workflow.
20
+ * our server's video entry skills, copied as built
21
+ * (server-entry-skills.ts). Every answer's next_step
22
+ * carries the step for the video's stage.
23
+ * - `goose-video-local` one line: a next_step that gives the kit's command
24
+ * says who starts it. No skill spells out the
25
+ * command or its version: each answer hands over
26
+ * its own.
26
27
  *
27
- * The production video copies are restored in production-video-skills.json.
28
- * Update them with the matching backend release, then regenerate skills/.
29
- *
30
- * Non-video entries use the newer rulebook and action contract. Production
31
- * video entries retain the tool names, approvals and execution instructions
32
- * supported by the main backend (tests/skills/production-video-skills.test.ts).
28
+ * Each skill names only the actions in the action contract, states no price,
29
+ * asks for no install and stays within the rulebook's size limit; the rules
30
+ * block of every skill comes from the rulebook (tests/skills/skill-lint.test.ts).
33
31
  * Recipe skills live in goose-skills and are fetched when needed.
34
32
  */
35
33
  const routes_1 = require("./routes");
36
34
  const server_entry_skills_1 = require("./server-entry-skills");
37
- const production_video_skills_json_1 = __importDefault(require("./production-video-skills.json"));
38
- /** The kit command, as the server's next_step gives it. */
39
- exports.KIT_MAKE_COMMAND = 'gooseworks video make <id>';
40
35
  /**
41
36
  * THE registry of entry skills (GOOSE-3190) — one list, four consumers:
42
37
  * - `gooseworks install` / `update` / login-refresh write exactly these dirs,
43
38
  * - `npm run generate:skills` regenerates exactly these `skills/<name>/SKILL.md`,
44
39
  * - `skills/names.ts` derives which dirs the CLI is allowed to delete,
45
- * - the backend raw-fetches these paths for chat apps.
40
+ * - the backend fetches these paths from the published package for chat apps.
46
41
  */
47
42
  function getEntrySkills() {
48
43
  return [
@@ -69,7 +64,7 @@ description: >
69
64
  scrape public web and social data; find and enrich leads. The one GooseWorks entry point
70
65
  for brand growth, B2B, sales, research and GTM work.
71
66
  category: general
72
- version: 2.0.0
67
+ version: 2.0.1
73
68
  author: GooseWorks
74
69
  tags: [gooseworks, data, scraping, search, research, gtm, leads, prospecting, ads, video]
75
70
  ---
@@ -96,8 +91,6 @@ social data. Hand specialist work to its skill; do data work here.
96
91
  ${(0, routes_1.renderDomainRouteTable)()}
97
92
  | Anything else: scraping, research, lead lists, enrichment, any data lookup | (stay here) | Follow "Data work" below. |
98
93
 
99
- When the server's next_step says to make a video on this computer, run \`${exports.KIT_MAKE_COMMAND}\`.
100
-
101
94
  ## Brand growth skills
102
95
 
103
96
  | Job | Skill |
@@ -146,7 +139,7 @@ name: goose-ads
146
139
  slug: goose-ads
147
140
  description: Make, edit and study image ads with GooseWorks in this chat, from the brand's own products and approved sources. Start with brand_read and follow the next_step in every answer.
148
141
  category: ads
149
- version: 3.0.0
142
+ version: 3.0.1
150
143
  author: GooseWorks
151
144
  ---
152
145
 
@@ -181,7 +174,7 @@ name: goose-product-photos
181
174
  slug: goose-product-photos
182
175
  description: Make product photos (studio, lifestyle or on a model) of a brand's real products with GooseWorks in this chat. Start with brand_read and follow the next_step in every answer.
183
176
  category: ads
184
- version: 1.0.0
177
+ version: 1.0.1
185
178
  author: GooseWorks
186
179
  ---
187
180
 
@@ -206,16 +199,23 @@ Then follow the next_step in every answer.
206
199
  ${server_entry_skills_1.SERVER_ENTRY_SKILL_RULES.photos}
207
200
  `;
208
201
  }
209
- /** Video entry matched to the production backend. */
202
+ /** Our server's goose-video entry skill, as built. */
210
203
  function getGooseVideoSkillContent() {
211
- return production_video_skills_json_1.default['goose-video'];
204
+ return server_entry_skills_1.SERVER_VIDEO_ENTRY_SKILLS['goose-video'];
212
205
  }
213
- /** Custom-video entry matched to the production backend. */
206
+ /** Our server's make-custom-video entry skill, as built. */
214
207
  function getMakeCustomVideoSkillContent() {
215
- return production_video_skills_json_1.default['make-custom-video'];
208
+ return server_entry_skills_1.SERVER_VIDEO_ENTRY_SKILLS['make-custom-video'];
216
209
  }
217
- /** Local-render entry matched to the production backend. */
210
+ /** One line: the kit makes the video when the server says so. */
218
211
  function getGooseVideoLocalSkillContent() {
219
- return production_video_skills_json_1.default['goose-video-local'];
212
+ return `---
213
+ name: goose-video-local
214
+ description: Make an approved GooseWorks video when an answer's next_step gives its command.
215
+ version: 1.0.3
216
+ ---
217
+
218
+ When an answer's next_step gives a command to make a video, its last line says who starts it and how: follow that line exactly, with the command exactly as given.
219
+ `;
220
220
  }
221
221
  //# sourceMappingURL=master-skill.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"master-skill.js","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":";;;;;;AAwCA,wCASC;AAGD,gDAEC;AAGD,sDA+EC;AAGD,0DAiCC;AAGD,8EA8BC;AA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C,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC;AAED,sGAAsG;AACtG,SAAgB,qBAAqB;IACnC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCP,IAAA,+BAAsB,GAAE;;;;;;;EAOxB,IAAA,+BAAsB,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCxB,8CAAwB,CAAC,GAAG;CAC7B,CAAC;AACF,CAAC;AAED,4CAA4C;AAC5C,SAAgB,uBAAuB;IACrC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BP,8CAAwB,CAAC,GAAG;CAC7B,CAAC;AACF,CAAC;AAED,6DAA6D;AAC7D,SAAgB,iCAAiC;IAC/C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BP,8CAAwB,CAAC,MAAM;CAChC,CAAC;AACF,CAAC;AAED,sDAAsD;AACtD,SAAgB,yBAAyB;IACvC,OAAO,+CAAyB,CAAC,aAAa,CAAC,CAAC;AAClD,CAAC;AAED,4DAA4D;AAC5D,SAAgB,8BAA8B;IAC5C,OAAO,+CAAyB,CAAC,mBAAmB,CAAC,CAAC;AACxD,CAAC;AAED,iEAAiE;AACjE,SAAgB,8BAA8B;IAC5C,OAAO;;;;;;;CAOR,CAAC;AACF,CAAC"}
@@ -33,7 +33,7 @@ exports.DOMAIN_ROUTES = [
33
33
  {
34
34
  skill: 'goose-ads',
35
35
  when: 'Make, edit or study image ads: from a template, a source ad or the brand\'s products; why a campaign underperforms; competitor ads, angles and hooks',
36
- how: 'Use goose-ads: open it with catalog_fetch in a chat app, or use the installed copy in a terminal.',
36
+ how: 'Open it with catalog_fetch in a chat app, or the installed copy in a terminal.',
37
37
  delivery: 'entry',
38
38
  },
39
39
  {
@@ -45,13 +45,13 @@ exports.DOMAIN_ROUTES = [
45
45
  {
46
46
  skill: 'goose-video',
47
47
  when: 'Any **video**: a video ad from a style, an original video from a brief or a reference video, or a video already started',
48
- how: 'Use goose-video: ask which product first, read the brand, then video_formats; follow the next_step in every answer.',
48
+ how: 'Explicit custom skips the picker; otherwise watch the reference, read the brand and compare style constraints.',
49
49
  delivery: 'entry',
50
50
  },
51
51
  {
52
52
  skill: 'goose-product-photos',
53
53
  when: 'Make **product photos**: studio, lifestyle, marketplace, social or on a model',
54
- how: 'Use goose-product-photos: open it with catalog_fetch in a chat app, or use the installed copy in a terminal.',
54
+ how: 'Open it with catalog_fetch in a chat app, or the installed copy in a terminal.',
55
55
  delivery: 'entry',
56
56
  },
57
57
  {
@@ -66,8 +66,8 @@ exports.DOMAIN_ROUTES = [
66
66
  * by name, so the CLI keeps installing them.
67
67
  */
68
68
  exports.UNROUTED_ENTRY_SKILLS = {
69
- 'make-custom-video': 'Starts like goose-video; the server tells an original video from a styled one.',
70
- 'goose-video-local': 'One line: run the kit when a next_step says so.',
69
+ 'make-custom-video': 'Keeps an explicit custom choice without a picker, studies its reference and checks custom support; fetching this entry alone does not enable production.',
70
+ 'goose-video-local': 'One line: a next_step that gives the kit command says who starts it.',
71
71
  };
72
72
  /**
73
73
  * Brand Growth routes — the outcome skills in the `brand-growth` collection.
@@ -1 +1 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/skills/routes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AAkGH,kDAKC;AAGD,4DAIC;AAGD,4CAeC;AAGD,wDAIC;AAGD,wDAIC;AApHD;;;GAGG;AACU,QAAA,aAAa,GAAkB;IAC1C;QACE,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,sJAAsJ;QAC5J,GAAG,EAAE,mGAAmG;QACxG,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,8FAA8F;QACpG,GAAG,EAAE,kFAAkF;QACvF,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,yHAAy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,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,SAAgB,sBAAsB;IACpC,OAAO,qBAAa,CAAC,GAAG,CACtB,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,GAAG,IAAI,CACvD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,oDAAoD;AACpD,SAAgB,sBAAsB;IACpC,OAAO,2BAAmB,CAAC,GAAG,CAC5B,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CACtE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -1,14 +1,14 @@
1
1
  /** The rulebook version this text was built from. */
2
- export declare const SERVER_RULEBOOK_VERSION = "1.0.2";
2
+ export declare const SERVER_RULEBOOK_VERSION = "1.3.2";
3
3
  export declare const SERVER_VIDEO_ENTRY_SKILLS: {
4
- readonly 'goose-video': "---\nname: goose-video\ndescription: \"Make a video ad with GooseWorks in this chat: the product first, then the brand read, then video_formats; follow the next_step in every answer.\"\nversion: 4.1.0\n---\n\n# GooseWorks video\n\nUse GooseWorks to make the customer's video, here in this chat. For a video already started (named, or sent by a card), call video_read and follow its next_step.\n\nFor a new video, in this order. Suggest nothing before step 5 and write no plan before they pick a style.\n\n1. The request. If they haven't said what the video is about, ask in one short question.\n2. The brand. Ask which brand only when brand_read lists several; with one, use it.\n3. The product. Unless they named one or want none, ask which product, offering the brand's products by name from brand_read (sections: products). Use the only one if there is one; with none, go on without.\n4. Research. Read the brand kit, learnings and the chosen products with brand_read (sections kit and learnings, plus the products' ids): photos, specs, creative notes. Then knowledge_search for them. Keep a few plain lines of what to say and avoid.\n5. The styles. Call video_formats with the request and the products' ids: [] for none or a style without products. The customer picks; never recommend one. A style they named that the answer lists as available is their pick. Otherwise, with the style card on screen, say one short line and wait; without one, list the fitting styles, each with its name, one line and price as written, and ask which one.\n6. The plan. Call video_create with the picked style and the products; its next_step says how to write the scenes with video_change and what follows.\n\n## Rules\n\n- Talk to marketers: what they get and what they decide, never how it is made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens in this chat: never ask the customer to install anything or use a CLI, slash command or other app; the only commands are gooseworks video check and gooseworks video make <id>, when a next_step gives them.\n- Money is a credit number, exactly as an answer gives it: never dollars, never your own math.\n- Follow the next_step in every answer; it says what to do now.\n- With a card on screen (display_hint \"widget\"), add at most one short line; never re-list it or its links.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; you never approve.\n- A yes counts only for the price the customer was shown: their press on the plan card, or their yes in chat sent with that price.\n- Where the app shows no card, print the plan and its price and ask for the customer's yes here; never send them to a website to approve.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.\n";
5
- readonly 'make-custom-video': "---\nname: make-custom-video\ndescription: \"Make an original video from a brief or a reference video with GooseWorks in this chat: the product first, then the brand read, then video_formats; follow the next_step in every answer.\"\nversion: 3.1.0\n---\n\n# GooseWorks video\n\nUse GooseWorks to make the customer's video, here in this chat. For a video already started (named, or sent by a card), call video_read and follow its next_step.\n\nFor a new video, in this order. Suggest nothing before step 5 and write no plan before they pick a style.\n\n1. The request. If they haven't said what the video is about, ask in one short question.\n2. The brand. Ask which brand only when brand_read lists several; with one, use it.\n3. The product. Unless they named one or want none, ask which product, offering the brand's products by name from brand_read (sections: products). Use the only one if there is one; with none, go on without.\n4. Research. Read the brand kit, learnings and the chosen products with brand_read (sections kit and learnings, plus the products' ids): photos, specs, creative notes. Then knowledge_search for them. Keep a few plain lines of what to say and avoid.\n5. The styles. Call video_formats with the request and the products' ids: [] for none or a style without products. The customer picks; never recommend one. A style they named that the answer lists as available is their pick. Otherwise, with the style card on screen, say one short line and wait; without one, list the fitting styles, each with its name, one line and price as written, and ask which one.\n6. The plan. Call video_create with the picked style and the products; its next_step says how to write the scenes with video_change and what follows.\n\n## Rules\n\n- Talk to marketers: what they get and what they decide, never how it is made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens in this chat: never ask the customer to install anything or use a CLI, slash command or other app; the only commands are gooseworks video check and gooseworks video make <id>, when a next_step gives them.\n- Money is a credit number, exactly as an answer gives it: never dollars, never your own math.\n- Follow the next_step in every answer; it says what to do now.\n- With a card on screen (display_hint \"widget\"), add at most one short line; never re-list it or its links.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; you never approve.\n- A yes counts only for the price the customer was shown: their press on the plan card, or their yes in chat sent with that price.\n- Where the app shows no card, print the plan and its price and ask for the customer's yes here; never send them to a website to approve.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.\n";
4
+ readonly 'goose-video': "---\nname: goose-video\ndescription: \"Make a video ad in this chat. Study a supplied video reference before comparing styles; follow the next_step in every answer.\"\nversion: 4.4.4\n---\n\n# GooseWorks video\n\nFrom an installed entry, first catalog_fetch type skill goose-video on this same connection and follow that body. An entry already fetched in this run needs no repeat fetch.\n\nFor a video already started, call video_read and follow its next_step.\n\nExplicit custom: skip steps 5–6. Keep their mechanics and assets; research the brand/product and study the reference for its custom plan. Check current custom support before any write.\n\nFor other new videos start with get_started (wants video, request). A card is not a style choice or proof of viewing. Follow the reference rule before style selection or a plan.\n\n1. The request. If they haven't said what the video is about, ask in one short question.\n2. The brand. Ask which brand only when brand_read lists several; with one, use it.\n3. The product. Named or none wanted: find its id with brand_read (sections: products), or use []. Otherwise the product card asks: say one line and wait. Without cards, ask which product by name; use the only one, or go on with none. Never ask again after a pick.\n4. Research. Read the brand kit, learnings and the chosen products with brand_read (sections kit and learnings, plus the products' ids), then knowledge_search for them. Note what to say and avoid.\n5. The styles. Call video_formats with the request and the products' ids ([] for none). The customer picks; never recommend one. A style they named that the answer lists as available is their pick. Otherwise, with the style card on screen, say one short line and wait; without one, print the style table from the answer as it is and ask nothing else.\n6. The plan. Call video_create with the picked style and the products; its next_step says what follows.\n\n## A supplied video reference comes first\n\nWatch the actual video before choosing a style or writing a custom plan. Play through it, or inspect timestamped frames spanning it plus its audio/transcript. A URL, title, caption or thumbnail is not a viewing. Record the hook, scene order, pacing, narration/dialogue, framing, product interactions, text and ending, with timestamps and gaps. If access or sampling cannot answer an essential detail, ask for an accessible video or their choice to continue from the brief; never claim it was watched.\nWhen they have not chosen custom, call video_formats after brand research. For plausible matches, catalog_fetch type template returns the style's plan_note, scenes, duration, cast, sound and assets. Compare these against the observed reference and their essential choices. A similar title or high brand ranking does not prove a match. Explain fit or mismatch before they choose. Keep an explicit style choice; do not quietly change constraints or over-adapt it. Reassess a later reference before creating or rewriting a plan.\nIf no available style fits, or they explicitly want custom, catalog_fetch type skill make-custom-video on this connection before a project write. Require its complete production-harness dependency and current custom schemas. Follow its separate authenticated script and ingredient approvals, cumulative budgets and verified execution capability. If anything is unavailable, say so and keep the brief; do not substitute a template, import the reference as a finished video, use retired actions or switch environments. Fetching a skill alone proves no execution capability.\n\n## Rules\n\n- Talk to marketers: what they get and decide, never how it's made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens here: never ask the customer to install anything or use a CLI, slash command or other app, except a video's make command when a next_step gives it (its last line says who starts it; original videos follow their own). Never give any other command, sign-in step or setting, and never ask them a technical question.\n- Money is a credit number exactly as an answer gives it: never dollars or your own math.\n- Follow the next_step in every answer.\n- Card on screen (display_hint \"widget\"): one short line at most, then the wait in its next_step or end your turn; never re-list it or open a question box.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; never decide it for them, and pass on a yes only once they gave it to that total.\n- A yes is to the credit total the customer was shown: their press on the plan card, or their yes in chat sent with that total.\n- Where the app shows no card, print the plan and its price and ask for the customer's yes here; never send them to a website to approve.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.\n";
5
+ readonly 'make-custom-video': "---\nname: make-custom-video\ndescription: \"Make a custom video from its brief and studied reference, with authenticated script and ingredient reviews.\"\nversion: 3.5.1\nrequires_skills: [video-production-harness]\nharness_binding: gooseworks/video-actions/v1\n---\n\n# Human version\n\nThe owner approves the script, then actual storyboard/ingredients and budget. Both authenticated reviews must pass before production.\n\n---\n\n# Agent version\n\nInstalled entry: catalog_fetch type skill make-custom-video here once. Check live custom schemas before writes. Keep this environment; no retired actions, template fallback or reference-as-final import.\n\n## Load the production harness\n\nRequire complete video-production-harness content/scripts/files/version/contentHash. An inline read lists it by slug only: get it with catalog_fetch delivery archive (making needs that shell anyway), or catalog_fetch its slug. Read its orchestrator, phases and editorial/specialist guides. Save safe paths separately with hashes/dependencies. Incomplete/mixed packages block work. Resume recorded packages, inputs and jobs.\n\n## Keep the brief and study the reference\n\nExplicit custom skips video_formats and the picker. Keep requested mechanics/assets; animated text and product photos must not become a creator montage. Implicit references use goose-video to watch and compare template constraints; custom follows no match or their choice.\nRead brand_read (kit, products, rules), then knowledge_search. Use supported claims, real photos/logo. Watch playback, or timed frames spanning the video plus audio/transcript. Record hook, scene order, pace, framing, dialogue, text, product interactions and ending with times/gaps. URLs/thumbnails are not viewing. Missing access needs an accessible source or explicit brief-only choice.\n\n## Create or resume\n\nNew: video_create with brand_id, style custom, request and a required agent-generated UUID idempotency_key; retain products, name, reference_url and campaign. Reuse that key on retries. Resume with video_read the same project: retain plan_revision, custom_review, brand_context, production_manifest and execution; never create a replacement.\nReference resolve accepts direct files; social links cause no automatic paid lookup. If GooseWorks can't download it, upload the file you watched into this project (media_upload scope video_project, media_confirm), wait for media_analyze read to show its duration, then video_change custom reference attach with asset_id and its current_revision as analysis_revision; each refusal names the condition to fix. Skip needs explicit brief-only user_quote. Pending/failed reference blocks approval; a URL is not viewing.\nA resolved reference also needs draft.reference_observation: the project's reference source_url, real duration_s, evidence_mode playback or frames_and_audio, observed_through_s covering 95%, and summary: what happens with times and gaps, as text or a list of {t, what}. Its data binds the script token. Resolve/attach is not watching.\n\n## Save script and ingredients\n\nFollow the harness phases. Discover specialists for the actual scenes; check inputs, outputs, dependencies and managed execution. Reuse suitable product photos and deterministic text animation. Never substitute a template driver. Bind operations to this project and approved scene/script revisions.\nvideo_change needs expected_revision (plan_revision), custom draft and optional script. Bind brand_context_digest to the returned bundle; never author server context. Keep packages outside the review payload. Quote paid operations through the live managed estimate path with real inputs/project. Save preview_estimate/render_estimate for the work still to buy; the server adds committed_credits. Never edit a field the owner approved: the save sets their approval aside until the approved text is back. Missing price/unsupported inputs blocks production; no guessed rates/direct keys.\n\n## Two authenticated owner reviews\n\nShow the complete saved script and exact cumulative budget on the authenticated review card. Only the owner's actual signed button press approves. Chat yes, OAuth, user_quote, widget origin or a copied token is not proof; never manufacture a click or self-approve. Text-only/large reviews use returned authenticated Studio phase buttons and approval_surface URL.\nReread video_read after owner actions. Script approval permits quoted previews only. Save the actual storyboard, playable ingredients and render budget; ingredient approval permits clips. Require current script_approved/ingredients_approved, matching tokens/revision and budget. Changed reviews need renewed approval. A prior yes does not authorize changed work.\n\n## Execute, check and deliver\n\nRequire execution.local from a verified customer shell. No cloud, style-only kit, API host, worker or coworker sandbox. Otherwise report the gap.\nvideo_make needs expected_revision and custom render state. Resume the same render with approved tokens; report running/failed/complete honestly and honor Stop. Save actual prompts, settings, every scene and clip checks through video_change custom production. Watch the full output against the approved script, product and brand; save its full quality report. Completion needs a confirmed upload and rebuild recipe here; pin only the checked complete render. Read back manifest/final before delivery. Repairs need affected assets only and renewed approvals/budget.\n\nRebuild recipe: every input the build reads, uploaded here or a linked Library original, plus recipe/source.json; prove a clean-folder rebuild, then save it as custom production source. The next step gives the format.\n\nUse plain words and returned credits. No invented claims, approvals, assets or passing checks.\n";
6
6
  };
7
7
  export type ServerVideoEntrySlug = keyof typeof SERVER_VIDEO_ENTRY_SKILLS;
8
8
  /** renderEntrySkillRules(product) for the products the CLI's own entry skills cover. */
9
9
  export declare const SERVER_ENTRY_SKILL_RULES: {
10
- readonly all: "- Talk to marketers: what they get and what they decide, never how it is made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens in this chat: never ask the customer to install anything or use a CLI, slash command or other app; the only commands are gooseworks video check and gooseworks video make <id>, when a next_step gives them.\n- Money is a credit number, exactly as an answer gives it: never dollars, never your own math.\n- Follow the next_step in every answer; it says what to do now.\n- With a card on screen (display_hint \"widget\"), add at most one short line; never re-list it or its links.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; you never approve.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.";
11
- readonly ads: "- Talk to marketers: what they get and what they decide, never how it is made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens in this chat: never ask the customer to install anything or use a CLI, slash command or other app; the only commands are gooseworks video check and gooseworks video make <id>, when a next_step gives them.\n- Money is a credit number, exactly as an answer gives it: never dollars, never your own math.\n- Follow the next_step in every answer; it says what to do now.\n- With a card on screen (display_hint \"widget\"), add at most one short line; never re-list it or its links.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; you never approve.\n- Before choosing an angle, claim, product or source, or asking a brand fact: brand_read, then knowledge_search for the task.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.";
12
- readonly photos: "- Talk to marketers: what they get and what they decide, never how it is made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens in this chat: never ask the customer to install anything or use a CLI, slash command or other app; the only commands are gooseworks video check and gooseworks video make <id>, when a next_step gives them.\n- Money is a credit number, exactly as an answer gives it: never dollars, never your own math.\n- Follow the next_step in every answer; it says what to do now.\n- With a card on screen (display_hint \"widget\"), add at most one short line; never re-list it or its links.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; you never approve.\n- Before choosing an angle, claim, product or source, or asking a brand fact: brand_read, then knowledge_search for the task.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.";
10
+ readonly all: "- Talk to marketers: what they get and decide, never how it's made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens here: never ask the customer to install anything or use a CLI, slash command or other app, except a video's make command when a next_step gives it (its last line says who starts it; original videos follow their own). Never give any other command, sign-in step or setting, and never ask them a technical question.\n- Money is a credit number exactly as an answer gives it: never dollars or your own math.\n- Follow the next_step in every answer.\n- Card on screen (display_hint \"widget\"): one short line at most, then the wait in its next_step or end your turn; never re-list it or open a question box.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; never decide it for them, and pass on a yes only once they gave it to that total.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.";
11
+ readonly ads: "- Talk to marketers: what they get and decide, never how it's made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens here: never ask the customer to install anything or use a CLI, slash command or other app, except a video's make command when a next_step gives it (its last line says who starts it; original videos follow their own). Never give any other command, sign-in step or setting, and never ask them a technical question.\n- Money is a credit number exactly as an answer gives it: never dollars or your own math.\n- Follow the next_step in every answer.\n- Card on screen (display_hint \"widget\"): one short line at most, then the wait in its next_step or end your turn; never re-list it or open a question box.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; never decide it for them, and pass on a yes only once they gave it to that total.\n- Before choosing an angle, claim, product or source, or asking a brand fact, brand_read then knowledge_search for the task.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.";
12
+ readonly photos: "- Talk to marketers: what they get and decide, never how it's made.\n- Never mention tools, ids, JSON, commands, software, vendors, models, timings, retries or your checks.\n- Everything happens here: never ask the customer to install anything or use a CLI, slash command or other app, except a video's make command when a next_step gives it (its last line says who starts it; original videos follow their own). Never give any other command, sign-in step or setting, and never ask them a technical question.\n- Money is a credit number exactly as an answer gives it: never dollars or your own math.\n- Follow the next_step in every answer.\n- Card on screen (display_hint \"widget\"): one short line at most, then the wait in its next_step or end your turn; never re-list it or open a question box.\n- Paid work needs the customer's yes to the credit total first, on the card or in chat at the price shown; never decide it for them, and pass on a yes only once they gave it to that total.\n- Before choosing an angle, claim, product or source, or asking a brand fact, brand_read then knowledge_search for the task.\n- Never invent an offer, a claim or proof.\n- GooseWorks holds every provider key and bills the work: never ask for a key, token, password or ad account id, and never call a vendor yourself.";
13
13
  };
14
14
  //# sourceMappingURL=server-entry-skills.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-entry-skills.d.ts","sourceRoot":"","sources":["../../src/skills/server-entry-skills.ts"],"names":[],"mappings":"AAcA,qDAAqD;AACrD,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAE/C,eAAO,MAAM,yBAAyB;;;CAmE5B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAE1E,wFAAwF;AACxF,eAAO,MAAM,wBAAwB;;;;CA8B3B,CAAC"}
1
+ {"version":3,"file":"server-entry-skills.d.ts","sourceRoot":"","sources":["../../src/skills/server-entry-skills.ts"],"names":[],"mappings":"AAcA,qDAAqD;AACrD,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAE/C,eAAO,MAAM,yBAAyB;;;CAgG5B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAE1E,wFAAwF;AACxF,eAAO,MAAM,wBAAwB;;;;CA8B3B,CAAC"}