@jokerized/decksmith 0.9.3 → 0.9.4

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 (59) hide show
  1. package/README.md +449 -90
  2. package/dist/animate/LICENSE +21 -0
  3. package/dist/animate/NOTICE +32 -0
  4. package/dist/animate/core.js +530 -0
  5. package/dist/animate/cut-paper.js +206 -0
  6. package/dist/animate/morph.js +131 -0
  7. package/dist/cli.js +13368 -8864
  8. package/dist/ds-animate.js +1 -0
  9. package/dist/index.js +13182 -8678
  10. package/dist/mcp.js +9805 -7587
  11. package/dist/types/bespoke/art.d.ts +172 -6
  12. package/dist/types/bespoke/cache.d.ts +10 -0
  13. package/dist/types/bespoke/cards.d.ts +66 -0
  14. package/dist/types/bespoke/contract.d.ts +0 -8
  15. package/dist/types/bespoke/databuild.d.ts +50 -0
  16. package/dist/types/bespoke/depth.d.ts +127 -0
  17. package/dist/types/bespoke/grammar.d.ts +73 -0
  18. package/dist/types/bespoke/inspect.d.ts +40 -1
  19. package/dist/types/bespoke/pipeline.d.ts +195 -11
  20. package/dist/types/bespoke/probe.d.ts +2 -2
  21. package/dist/types/bespoke/prompt.d.ts +110 -34
  22. package/dist/types/bespoke/references.d.ts +13 -14
  23. package/dist/types/bespoke/repair.d.ts +23 -29
  24. package/dist/types/bespoke/scene.d.ts +55 -10
  25. package/dist/types/bespoke/select.d.ts +28 -21
  26. package/dist/types/bespoke/sheet.d.ts +66 -1
  27. package/dist/types/bespoke/shots.d.ts +225 -22
  28. package/dist/types/build/files.d.ts +7 -0
  29. package/dist/types/build/piece.d.ts +8 -0
  30. package/dist/types/emit/animate-runtime.d.ts +149 -0
  31. package/dist/types/emit/archetypes/claim-figure.d.ts +84 -1
  32. package/dist/types/emit/archetypes/equation-walk.d.ts +2 -2
  33. package/dist/types/emit/archetypes/hero-number.d.ts +21 -0
  34. package/dist/types/emit/archetypes/index.d.ts +2 -2
  35. package/dist/types/emit/archetypes/kinetic.d.ts +2 -0
  36. package/dist/types/emit/archetypes/pipeline.d.ts +14 -2
  37. package/dist/types/emit/archetypes/stage.d.ts +57 -0
  38. package/dist/types/emit/backdrop.d.ts +114 -0
  39. package/dist/types/emit/kit.d.ts +8 -0
  40. package/dist/types/emit/look.d.ts +14 -0
  41. package/dist/types/emit/motion.d.ts +78 -46
  42. package/dist/types/emit/type.d.ts +48 -5
  43. package/dist/types/images/providers.d.ts +6 -0
  44. package/dist/types/plan/codex.d.ts +4 -2
  45. package/dist/types/plan/direct.d.ts +1 -1
  46. package/dist/types/plan/duration.d.ts +1 -1
  47. package/dist/types/plan/prompt.d.ts +1 -1
  48. package/dist/types/plan/refs.d.ts +2 -2
  49. package/dist/types/plan/variety.d.ts +74 -0
  50. package/dist/types/prefs.d.ts +20 -1
  51. package/dist/types/render/captions.d.ts +4 -5
  52. package/dist/types/render/capture.d.ts +7 -0
  53. package/dist/types/types.d.ts +680 -4
  54. package/dist/types/verify/drift.d.ts +5 -0
  55. package/dist/types/verify/fidelity.d.ts +15 -1
  56. package/dist/types/verify/index.d.ts +17 -0
  57. package/dist/types/verify/scenes.d.ts +185 -5
  58. package/package.json +1 -1
  59. package/dist/types/bespoke/callouts.d.ts +0 -76
@@ -0,0 +1 @@
1
+ "use strict";(()=>{var g="data-ds-piece",a={},u=new WeakMap,m=[];function p(e,n){return Math.min(e,(n.n-1)/n.fps)}function c(e,n){let t=globalThis,o=[t.CanvasRenderingContext2D,t.OffscreenCanvasRenderingContext2D].flatMap(r=>r?[r.prototype]:[]),s=o.map(r=>[r.fillText,r.strokeText]),i=r=>()=>{throw new Error(`dsAnimate: piece "${e}" called ${r} \u2014 a piece draws no text (invariant 5)`)};for(let r of o)r.fillText=i("fillText"),r.strokeText=i("strokeText");try{return n()}finally{o.forEach((r,f)=>{[r.fillText,r.strokeText]=s[f]})}}function d(e,n,t){if(!e)throw new Error(`DSAnimate.mount: no canvas for piece "${n}"`);let o=Object.hasOwn(a,n)?a[n]:void 0;if(!o)throw new Error(`DSAnimate.mount: no piece registered as "${n}" \u2014 its <script src> did not run`);if(!e.getContext("2d",{willReadFrequently:!0}))throw new Error(`DSAnimate.mount: piece "${n}" got no 2D context`);let s=c(n,()=>o({...t,width:e.width,height:e.height})),i={id:n,piece:s,drawn:Number.NaN};u.set(e,i),m.push({canvas:e,host:i})}function h(){let e=[];for(let{canvas:n,host:t}of m){let o=document.createElement("canvas");o.width=n.width,o.height=n.height;let s;for(let i=0;i<t.piece.n;i++)try{c(t.id,()=>t.piece.rf(i/t.piece.fps,o))}catch(r){s??={id:t.id,frames:[],message:r instanceof Error?r.message:String(r)},s.frames.push(i)}s&&e.push(s)}return e}var w={name:"dsAnimate",init(e,n){let t=u.get(e);if(!t)throw new Error(`dsAnimate: nothing mounted on #${e.id}; DSAnimate.mount must run in measure`);this.host=t,this.canvas=e,this.end=Number(n)},render(e,n){let{host:t}=n,o=p(e*n.end,t.piece),s=Math.round(o*t.piece.fps);if(s!==t.drawn){t.drawn=Number.NaN;try{c(t.id,()=>t.piece.rf(o,n.canvas))}catch(i){throw reportError(i),i}t.drawn=s}}};if(typeof window<"u"){let e=window;e.DSAnimate={pieces:a,mount:d,sweep:h},e.DSAnimatePlugin=w}})();