@jokerized/decksmith 0.9.0 → 0.9.1

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 (35) hide show
  1. package/README.md +212 -0
  2. package/dist/cli.js +20183 -14325
  3. package/dist/deck-player-element.js +1 -1
  4. package/dist/deck-player.js +1 -1
  5. package/dist/index.js +10605 -4957
  6. package/dist/mcp.js +1558 -319
  7. package/dist/types/bespoke/art.d.ts +173 -0
  8. package/dist/types/bespoke/cache.d.ts +69 -0
  9. package/dist/types/bespoke/callouts.d.ts +76 -0
  10. package/dist/types/bespoke/contract.d.ts +57 -0
  11. package/dist/types/bespoke/inspect.d.ts +69 -0
  12. package/dist/types/bespoke/pipeline.d.ts +207 -0
  13. package/dist/types/bespoke/probe.d.ts +34 -0
  14. package/dist/types/bespoke/prompt.d.ts +182 -0
  15. package/dist/types/bespoke/references.d.ts +73 -0
  16. package/dist/types/bespoke/repair.d.ts +121 -0
  17. package/dist/types/bespoke/scene.d.ts +97 -0
  18. package/dist/types/bespoke/select.d.ts +52 -0
  19. package/dist/types/bespoke/sheet.d.ts +26 -0
  20. package/dist/types/bespoke/shots.d.ts +128 -0
  21. package/dist/types/bespoke/untangle.d.ts +5 -0
  22. package/dist/types/emit/archetypes/index.d.ts +0 -7
  23. package/dist/types/emit/composition.d.ts +37 -2
  24. package/dist/types/emit/kit.d.ts +17 -0
  25. package/dist/types/emit/themes/pick.d.ts +6 -3
  26. package/dist/types/index.d.ts +17 -0
  27. package/dist/types/plan/codex.d.ts +36 -0
  28. package/dist/types/prefs.d.ts +10 -1
  29. package/dist/types/render/capture.d.ts +6 -0
  30. package/dist/types/render/timing.d.ts +3 -0
  31. package/dist/types/types.d.ts +71 -0
  32. package/dist/types/verify/check.d.ts +1 -1
  33. package/dist/types/verify/index.d.ts +14 -0
  34. package/dist/types/verify/scenes.d.ts +325 -0
  35. package/package.json +2 -1
@@ -1 +1 @@
1
- var o="decksmith-deck";function d(n){return typeof n=="object"&&n!==null&&n.channel===o&&typeof n.type=="string"}var p=5e3,a=class extends HTMLElement{static observedAttributes=["deck"];#t=null;#n=null;#e=0;#r=[];#s=0;#o=!1;get stops(){return this.#r}get at(){return this.#s}get connected(){return this.#o}connectedCallback(){this.#t||this.#a()}disconnectedCallback(){this.#l()}attributeChangedCallback(t,i,e){t==="deck"&&i!==e&&this.isConnected&&(this.#l(),this.#a())}next(){this.#i({channel:o,type:"next"})}prev(){this.#i({channel:o,type:"prev"})}go(t){this.#i({channel:o,type:"go",at:t})}play(t=!0){this.#i({channel:o,type:"play",on:t})}#i(t){this.#t?.contentWindow?.postMessage(t,"*")}#a(){let t=this.getAttribute("deck");if(!t)return;let i;try{i=new URL("deck.html",new URL(t,location.href)).href}catch{this.dispatchEvent(new CustomEvent("ds-error",{detail:{reason:"bad-deck-url",message:`"${t}" is not a URL a deck can be loaded from.`}}));return}let e=document.createElement("iframe");e.src=i,e.setAttribute("allow","fullscreen; autoplay"),e.setAttribute("allowfullscreen",""),e.title=this.getAttribute("label")??"Deck",e.style.cssText="display:block;width:100%;height:100%;border:0",this.#t=e;let l=r=>{if(r.source!==e.contentWindow||!d(r.data))return;let s=r.data;s.type==="ready"?(this.#e&&clearTimeout(this.#e),this.#e=0,this.#o=!0,this.#r=s.stops,this.#s=s.at,this.dispatchEvent(new CustomEvent("ds-ready",{detail:{stops:s.stops,at:s.at}}))):s.type==="stop"&&(this.#s=s.at,this.dispatchEvent(new CustomEvent("ds-stop",{detail:s})))};this.#n=l,addEventListener("message",l),e.addEventListener("load",()=>{e.contentWindow?.postMessage({channel:o,type:"hello"},"*"),this.#e=setTimeout(()=>{this.#o||this.dispatchEvent(new CustomEvent("ds-error",{detail:{reason:"no-bridge",message:"The deck did not answer. It was probably built before this element existed \u2014 it still plays, and its own keyboard still works."}}))},p)}),this.style.display||(this.style.display="block"),this.appendChild(e)}#l(){this.#n&&removeEventListener("message",this.#n),this.#e&&clearTimeout(this.#e),this.#n=null,this.#e=0,this.#t?.remove(),this.#t=null,this.#o=!1,this.#r=[],this.#s=0}};function c(n="decksmith-player"){typeof customElements>"u"||customElements.get(n)||customElements.define(n,a)}c();
1
+ var o="decksmith-deck";function d(n){return typeof n=="object"&&n!==null&&n.channel===o&&typeof n.type=="string"}var p=5e3,a=class extends HTMLElement{static observedAttributes=["deck"];#t=null;#n=null;#e=0;#r=[];#s=0;#o=!1;get stops(){return this.#r}get at(){return this.#s}get connected(){return this.#o}connectedCallback(){this.#t||this.#a()}disconnectedCallback(){this.#l()}attributeChangedCallback(t,i,e){t==="deck"&&i!==e&&this.isConnected&&(this.#l(),this.#a())}next(){this.#i({channel:o,type:"next"})}prev(){this.#i({channel:o,type:"prev"})}go(t){this.#i({channel:o,type:"go",at:t})}play(t=!0){this.#i({channel:o,type:"play",on:t})}#i(t){this.#t?.contentWindow?.postMessage(t,"*")}#a(){let t=this.getAttribute("deck");if(!t)return;let i;try{i=new URL("deck.html",new URL(t,location.href)).href}catch{this.dispatchEvent(new CustomEvent("ds-error",{detail:{reason:"bad-deck-url",message:`"${t}" is not a URL a deck can be loaded from.`}}));return}let e=document.createElement("iframe");e.src=i,e.setAttribute("allow","fullscreen; autoplay"),e.setAttribute("allowfullscreen",""),e.setAttribute("sandbox","allow-scripts allow-same-origin allow-downloads"),e.title=this.getAttribute("label")??"Deck",e.style.cssText="display:block;width:100%;height:100%;border:0",this.#t=e;let l=r=>{if(r.source!==e.contentWindow||!d(r.data))return;let s=r.data;s.type==="ready"?(this.#e&&clearTimeout(this.#e),this.#e=0,this.#o=!0,this.#r=s.stops,this.#s=s.at,this.dispatchEvent(new CustomEvent("ds-ready",{detail:{stops:s.stops,at:s.at}}))):s.type==="stop"&&(this.#s=s.at,this.dispatchEvent(new CustomEvent("ds-stop",{detail:s})))};this.#n=l,addEventListener("message",l),e.addEventListener("load",()=>{e.contentWindow?.postMessage({channel:o,type:"hello"},"*"),this.#e=setTimeout(()=>{this.#o||this.dispatchEvent(new CustomEvent("ds-error",{detail:{reason:"no-bridge",message:"The deck did not answer. It was probably built before this element existed \u2014 it still plays, and its own keyboard still works."}}))},p)}),this.style.display||(this.style.display="block"),this.appendChild(e)}#l(){this.#n&&removeEventListener("message",this.#n),this.#e&&clearTimeout(this.#e),this.#n=null,this.#e=0,this.#t?.remove(),this.#t=null,this.#o=!1,this.#r=[],this.#s=0}};function c(n="decksmith-player"){typeof customElements>"u"||customElements.get(n)||customElements.define(n,a)}c();
@@ -1 +1 @@
1
- var o="decksmith-deck";function d(n){return typeof n=="object"&&n!==null&&n.channel===o&&typeof n.type=="string"}var c=5e3,a=class extends HTMLElement{static observedAttributes=["deck"];#t=null;#n=null;#e=0;#r=[];#s=0;#o=!1;get stops(){return this.#r}get at(){return this.#s}get connected(){return this.#o}connectedCallback(){this.#t||this.#a()}disconnectedCallback(){this.#l()}attributeChangedCallback(t,i,e){t==="deck"&&i!==e&&this.isConnected&&(this.#l(),this.#a())}next(){this.#i({channel:o,type:"next"})}prev(){this.#i({channel:o,type:"prev"})}go(t){this.#i({channel:o,type:"go",at:t})}play(t=!0){this.#i({channel:o,type:"play",on:t})}#i(t){this.#t?.contentWindow?.postMessage(t,"*")}#a(){let t=this.getAttribute("deck");if(!t)return;let i;try{i=new URL("deck.html",new URL(t,location.href)).href}catch{this.dispatchEvent(new CustomEvent("ds-error",{detail:{reason:"bad-deck-url",message:`"${t}" is not a URL a deck can be loaded from.`}}));return}let e=document.createElement("iframe");e.src=i,e.setAttribute("allow","fullscreen; autoplay"),e.setAttribute("allowfullscreen",""),e.title=this.getAttribute("label")??"Deck",e.style.cssText="display:block;width:100%;height:100%;border:0",this.#t=e;let l=r=>{if(r.source!==e.contentWindow||!d(r.data))return;let s=r.data;s.type==="ready"?(this.#e&&clearTimeout(this.#e),this.#e=0,this.#o=!0,this.#r=s.stops,this.#s=s.at,this.dispatchEvent(new CustomEvent("ds-ready",{detail:{stops:s.stops,at:s.at}}))):s.type==="stop"&&(this.#s=s.at,this.dispatchEvent(new CustomEvent("ds-stop",{detail:s})))};this.#n=l,addEventListener("message",l),e.addEventListener("load",()=>{e.contentWindow?.postMessage({channel:o,type:"hello"},"*"),this.#e=setTimeout(()=>{this.#o||this.dispatchEvent(new CustomEvent("ds-error",{detail:{reason:"no-bridge",message:"The deck did not answer. It was probably built before this element existed \u2014 it still plays, and its own keyboard still works."}}))},c)}),this.style.display||(this.style.display="block"),this.appendChild(e)}#l(){this.#n&&removeEventListener("message",this.#n),this.#e&&clearTimeout(this.#e),this.#n=null,this.#e=0,this.#t?.remove(),this.#t=null,this.#o=!1,this.#r=[],this.#s=0}};function u(n="decksmith-player"){typeof customElements>"u"||customElements.get(n)||customElements.define(n,a)}export{a as DecksmithPlayer,u as define};
1
+ var o="decksmith-deck";function d(n){return typeof n=="object"&&n!==null&&n.channel===o&&typeof n.type=="string"}var c=5e3,r=class extends HTMLElement{static observedAttributes=["deck"];#t=null;#n=null;#e=0;#a=[];#s=0;#o=!1;get stops(){return this.#a}get at(){return this.#s}get connected(){return this.#o}connectedCallback(){this.#t||this.#r()}disconnectedCallback(){this.#l()}attributeChangedCallback(t,i,e){t==="deck"&&i!==e&&this.isConnected&&(this.#l(),this.#r())}next(){this.#i({channel:o,type:"next"})}prev(){this.#i({channel:o,type:"prev"})}go(t){this.#i({channel:o,type:"go",at:t})}play(t=!0){this.#i({channel:o,type:"play",on:t})}#i(t){this.#t?.contentWindow?.postMessage(t,"*")}#r(){let t=this.getAttribute("deck");if(!t)return;let i;try{i=new URL("deck.html",new URL(t,location.href)).href}catch{this.dispatchEvent(new CustomEvent("ds-error",{detail:{reason:"bad-deck-url",message:`"${t}" is not a URL a deck can be loaded from.`}}));return}let e=document.createElement("iframe");e.src=i,e.setAttribute("allow","fullscreen; autoplay"),e.setAttribute("allowfullscreen",""),e.setAttribute("sandbox","allow-scripts allow-same-origin allow-downloads"),e.title=this.getAttribute("label")??"Deck",e.style.cssText="display:block;width:100%;height:100%;border:0",this.#t=e;let l=a=>{if(a.source!==e.contentWindow||!d(a.data))return;let s=a.data;s.type==="ready"?(this.#e&&clearTimeout(this.#e),this.#e=0,this.#o=!0,this.#a=s.stops,this.#s=s.at,this.dispatchEvent(new CustomEvent("ds-ready",{detail:{stops:s.stops,at:s.at}}))):s.type==="stop"&&(this.#s=s.at,this.dispatchEvent(new CustomEvent("ds-stop",{detail:s})))};this.#n=l,addEventListener("message",l),e.addEventListener("load",()=>{e.contentWindow?.postMessage({channel:o,type:"hello"},"*"),this.#e=setTimeout(()=>{this.#o||this.dispatchEvent(new CustomEvent("ds-error",{detail:{reason:"no-bridge",message:"The deck did not answer. It was probably built before this element existed \u2014 it still plays, and its own keyboard still works."}}))},c)}),this.style.display||(this.style.display="block"),this.appendChild(e)}#l(){this.#n&&removeEventListener("message",this.#n),this.#e&&clearTimeout(this.#e),this.#n=null,this.#e=0,this.#t?.remove(),this.#t=null,this.#o=!1,this.#a=[],this.#s=0}};function u(n="decksmith-player"){typeof customElements>"u"||customElements.get(n)||customElements.define(n,r)}export{r as DecksmithPlayer,u as define};