@popmelt.com/core 0.32.1 → 0.33.0

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 (85) hide show
  1. package/README.md +24 -1
  2. package/claude-plugin/.claude-plugin/plugin.json +1 -1
  3. package/codex-plugin/.codex-plugin/plugin.json +1 -1
  4. package/dist/ExploreAttachment-CLFSAWKM.mjs +260 -0
  5. package/dist/ParticipantRuntime-HW3MOZI5.mjs +139 -0
  6. package/dist/PopmeltTasteConnectedPane-FKIJM3C7.mjs +215 -0
  7. package/dist/PreviewRuntime-LFPK56NW.mjs +2 -0
  8. package/dist/SuppliedContext-RWN6UR3K.mjs +2 -0
  9. package/dist/{ThreadErrorCard-WZ2UBVWE.mjs → ThreadErrorCard-7J62GD5W.mjs} +1 -1
  10. package/dist/ThreadPanel-RJIHV3P6.mjs +197 -0
  11. package/dist/bridge-entry.mjs +1 -2
  12. package/dist/browser-runtime-JJHSKIKD.mjs +2 -0
  13. package/dist/browser.mjs +1 -1
  14. package/dist/checkFixture-TJDFGPQI.mjs +2 -0
  15. package/dist/{chunk-C3VWS5R6.mjs → chunk-27ADDVGC.mjs} +1 -1
  16. package/dist/chunk-2IASPT6L.mjs +2 -0
  17. package/dist/chunk-2VCHBI7Y.mjs +11 -0
  18. package/dist/chunk-2ZJ4FBTG.mjs +2 -0
  19. package/dist/chunk-5K7SACPW.mjs +2 -0
  20. package/dist/chunk-6V2VCKPG.mjs +53 -0
  21. package/dist/{chunk-MTQ5IWIK.mjs → chunk-75PQGTKX.mjs} +1 -1
  22. package/dist/chunk-7IJGE5AK.mjs +31 -0
  23. package/dist/chunk-BVTLSUQT.mjs +2 -0
  24. package/dist/chunk-C5WXW6VL.mjs +1 -0
  25. package/dist/chunk-DMWB3IRD.mjs +1 -0
  26. package/dist/chunk-DNOKP3JS.mjs +2 -0
  27. package/dist/chunk-EAV2VV2V.mjs +2 -0
  28. package/dist/chunk-F5XSNRGT.mjs +2 -0
  29. package/dist/{chunk-QTGE5KAA.mjs → chunk-GASEZICN.mjs} +1 -1
  30. package/dist/chunk-GL4I4MI6.mjs +1 -3
  31. package/dist/chunk-H2UYAUX3.mjs +2 -0
  32. package/dist/chunk-HNCV37XO.mjs +2 -0
  33. package/dist/chunk-I63OQTCF.mjs +347 -0
  34. package/dist/chunk-IKCHOC3U.mjs +1 -2
  35. package/dist/chunk-J5SC3R5L.mjs +2 -0
  36. package/dist/{chunk-IPR652AZ.mjs → chunk-JMMP5JSP.mjs} +1 -1
  37. package/dist/chunk-NOHXTT24.mjs +1 -1
  38. package/dist/{chunk-V44RIEET.mjs → chunk-ODIGT4YJ.mjs} +2 -2
  39. package/dist/chunk-PHKDIU3X.mjs +30 -0
  40. package/dist/chunk-PQT5FYN5.mjs +2 -0
  41. package/dist/chunk-PSSHCTJ2.mjs +8 -0
  42. package/dist/chunk-QXVMGZFP.mjs +1 -1
  43. package/dist/chunk-V2I7PSJW.mjs +2 -0
  44. package/dist/chunk-W5NIRROD.mjs +7 -0
  45. package/dist/chunk-WHJEKDNP.mjs +2 -0
  46. package/dist/chunk-XKD2ABCO.mjs +7 -0
  47. package/dist/chunk-XMKYGH62.mjs +142 -0
  48. package/dist/{chunk-D32YV5O6.mjs → chunk-ZHJZPC7U.mjs} +1 -1
  49. package/dist/cli.mjs +1 -69
  50. package/dist/codex-note-context-YHKPQ4WP.mjs +2 -0
  51. package/dist/codex-project-7VYHYTWO.mjs +2 -0
  52. package/dist/codex-session-registry-SPRWY2WW.mjs +1 -1
  53. package/dist/focus-inspection-VBS5656D.mjs +2 -0
  54. package/dist/index.mjs +1 -1
  55. package/dist/memory-legacy.mjs +1 -1
  56. package/dist/memory-store.mjs +1 -1
  57. package/dist/peer-client-MTWZG2FB.mjs +2 -0
  58. package/dist/plugin-astro.mjs +1 -31
  59. package/dist/plugin-nuxt.mjs +1 -30
  60. package/dist/plugin-vite.mjs +1 -1
  61. package/dist/server.d.mts +2 -0
  62. package/dist/server.mjs +1 -14
  63. package/dist/{workspace-snapshot-O34KMJ2V.mjs → workspace-snapshot-RTTXNNUX.mjs} +1 -1
  64. package/package.json +24 -32
  65. package/dist/ParticipantRuntime-5KRRPLWL.mjs +0 -139
  66. package/dist/PopmeltTasteConnectedPane-7YIHIFPE.mjs +0 -221
  67. package/dist/PreviewRuntime-QDA4OF67.mjs +0 -2
  68. package/dist/SuppliedContext-NURVPZ4L.mjs +0 -2
  69. package/dist/browser-runtime-3EQH4ZUO.mjs +0 -2
  70. package/dist/chunk-4BQQAQ3P.mjs +0 -317
  71. package/dist/chunk-CGOQSIDR.mjs +0 -342
  72. package/dist/chunk-DIFC23QP.mjs +0 -1
  73. package/dist/chunk-EXDOFFFJ.mjs +0 -2
  74. package/dist/chunk-F6AMPRUB.mjs +0 -2
  75. package/dist/chunk-GDLI772N.mjs +0 -2
  76. package/dist/chunk-GNZ73T3H.mjs +0 -62
  77. package/dist/chunk-HGXCQKB6.mjs +0 -347
  78. package/dist/chunk-RCVAPQ7X.mjs +0 -2
  79. package/dist/chunk-ROIC72KJ.mjs +0 -1
  80. package/dist/chunk-U2MTWKH3.mjs +0 -2
  81. package/dist/chunk-XQV7EM46.mjs +0 -309
  82. package/dist/codex-note-context-OYDZYZXX.mjs +0 -2
  83. package/dist/codex-project-XLVIKWAE.mjs +0 -2
  84. package/dist/focus-inspection-G72JLJYG.mjs +0 -2
  85. package/dist/peer-client-5D6UOMB3.mjs +0 -2
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{A as p}from"./chunk-GNZ73T3H.mjs";import{j as m}from"./chunk-EXDOFFFJ.mjs";var o=!1,f=()=>o;function E(c){o=!0;let t=null,r=!1,a=e=>{let n=e.composedPath()[0];return n instanceof Element&&(n.id==="devtools-canvas"||!p(n)&&!n.closest("[data-taste-editor], [data-taste-navigation]"))},i=e=>{e.preventDefault(),e.stopImmediatePropagation()},l=e=>{t=null,!(e.button!==0||!a(e))&&(t={x:e.clientX,y:e.clientY},r=!1,i(e))},d=e=>{t&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>5&&(r=!0)},u=e=>{t&&i(e)},s=e=>{if(!a(e)||e.button!==0){t=null;return}i(e);let n=!!(t&&!r);if(t=null,!n)return;let w=m(e.clientX,e.clientY);w&&c(w)},v=()=>{t=null};return window.addEventListener("pointerdown",l,!0),window.addEventListener("pointermove",d,!0),window.addEventListener("pointerup",u,!0),window.addEventListener("pointercancel",v,!0),window.addEventListener("click",s,!0),()=>{o=!1,window.removeEventListener("pointerdown",l,!0),window.removeEventListener("pointermove",d,!0),window.removeEventListener("pointerup",u,!0),window.removeEventListener("pointercancel",v,!0),window.removeEventListener("click",s,!0)}}export{f as a,E as b};
2
+ import{q as p}from"./chunk-6V2VCKPG.mjs";import{g as m}from"./chunk-DNOKP3JS.mjs";var o=!1,f=()=>o;function E(c){o=!0;let t=null,r=!1,a=e=>{let n=e.composedPath()[0];return n instanceof Element&&(n.id==="devtools-canvas"||!p(n)&&!n.closest("[data-taste-editor], [data-taste-navigation]"))},i=e=>{e.preventDefault(),e.stopImmediatePropagation()},l=e=>{t=null,!(e.button!==0||!a(e))&&(t={x:e.clientX,y:e.clientY},r=!1,i(e))},d=e=>{t&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>5&&(r=!0)},u=e=>{t&&i(e)},s=e=>{if(!a(e)||e.button!==0){t=null;return}i(e);let n=!!(t&&!r);if(t=null,!n)return;let w=m(e.clientX,e.clientY);w&&c(w)},v=()=>{t=null};return window.addEventListener("pointerdown",l,!0),window.addEventListener("pointermove",d,!0),window.addEventListener("pointerup",u,!0),window.addEventListener("pointercancel",v,!0),window.addEventListener("click",s,!0),()=>{o=!1,window.removeEventListener("pointerdown",l,!0),window.removeEventListener("pointermove",d,!0),window.removeEventListener("pointerup",u,!0),window.removeEventListener("pointercancel",v,!0),window.removeEventListener("click",s,!0)}}export{f as a,E as b};
@@ -1 +1 @@
1
- import{randomUUID as u}from"crypto";var g=5e3,f=250;function c(n){return{"Content-Type":"application/json",...n.projectId?{"X-Popmelt-Project-Id":n.projectId}:{}}}async function S(n,r=fetch){let t=`${process.pid}-${u()}`,s=`http://127.0.0.1:${n.port}`,o=!1,e=!1,a=async()=>(await r(`${s}/leases`,{method:"POST",headers:c(n),body:JSON.stringify({leaseId:t,ownerPid:process.pid})})).ok;try{if(!await a())return null}catch(i){return console.warn("[popmelt] failed to register bridge lease:",i instanceof Error?i.message:String(i)),null}let d=async()=>{if(!(o||e)){e=!0;try{(await r(`${s}/leases/${encodeURIComponent(t)}`,{method:"PATCH",headers:c(n)})).status===404&&!o&&await a()}catch{}finally{e=!1}}},l=setInterval(()=>{d()},g);return l.unref?.(),{id:t,release:async()=>{if(!o){o=!0,clearInterval(l);try{await r(`${s}/leases/${encodeURIComponent(t)}`,{method:"DELETE",headers:c(n),keepalive:!0})}catch{}}}}}function h(n,r=process){let t=!1,s=new Map,o=()=>{if(!t){t=!0;for(let[e,a]of s)r.removeListener(e,a);s.clear()}};for(let e of["SIGINT","SIGTERM"]){let a=()=>{let d=r.listenerCount(e),l=n.release();if(d>0)return;let p=new Promise(i=>{setTimeout(i,f)});Promise.race([l,p]).finally(()=>{o(),r.kill(r.pid,e)})};s.set(e,a),r.prependOnceListener(e,a)}return o}export{S as a,h as b};
1
+ import{randomUUID as e}from"crypto";function t(e){return{"Content-Type":"application/json",...e.projectId?{"X-Popmelt-Project-Id":e.projectId}:{}}}async function r(r,n=fetch){let a=`${process.pid}-${e()}`,o=`http://127.0.0.1:${r.port}`,s=!1,i=!1,l=async()=>(await n(`${o}/leases`,{method:"POST",headers:t(r),body:JSON.stringify({leaseId:a,ownerPid:process.pid})})).ok;try{if(!await l())return null}catch(e){return console.warn("[popmelt] failed to register bridge lease:",e instanceof Error?e.message:String(e)),null}let c=setInterval(()=>{(async()=>{if(!s&&!i){i=!0;try{404===(await n(`${o}/leases/${encodeURIComponent(a)}`,{method:"PATCH",headers:t(r)})).status&&!s&&await l()}catch{}finally{i=!1}}})()},5e3);return c.unref?.(),{id:a,release:async()=>{if(!s){s=!0,clearInterval(c);try{await n(`${o}/leases/${encodeURIComponent(a)}`,{method:"DELETE",headers:t(r),keepalive:!0})}catch{}}}}}function n(e,t=process){let r=!1,n=new Map,a=()=>{if(!r){r=!0;for(let[e,r]of n)t.removeListener(e,r);n.clear()}};for(let r of["SIGINT","SIGTERM"]){let o=()=>{let n=t.listenerCount(r),o=e.release();if(n>0)return;let s=new Promise(e=>{setTimeout(e,250)});Promise.race([o,s]).finally(()=>{a(),t.kill(t.pid,r)})};n.set(r,o),t.prependOnceListener(r,o)}return a}export{r as a,n as b};