@popmelt.com/core 0.32.2 → 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.
- package/README.md +23 -0
- package/claude-plugin/.claude-plugin/plugin.json +1 -1
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/dist/ExploreAttachment-CLFSAWKM.mjs +260 -0
- package/dist/ParticipantRuntime-HW3MOZI5.mjs +139 -0
- package/dist/PopmeltTasteConnectedPane-FKIJM3C7.mjs +215 -0
- package/dist/PreviewRuntime-LFPK56NW.mjs +2 -0
- package/dist/SuppliedContext-RWN6UR3K.mjs +2 -0
- package/dist/{ThreadErrorCard-OMXKVZY4.mjs → ThreadErrorCard-7J62GD5W.mjs} +1 -1
- package/dist/ThreadPanel-RJIHV3P6.mjs +197 -0
- package/dist/bridge-entry.mjs +1 -1
- package/dist/browser-runtime-JJHSKIKD.mjs +2 -0
- package/dist/browser.mjs +1 -1
- package/dist/checkFixture-TJDFGPQI.mjs +2 -0
- package/dist/{chunk-C3VWS5R6.mjs → chunk-27ADDVGC.mjs} +1 -1
- package/dist/chunk-2IASPT6L.mjs +2 -0
- package/dist/chunk-2VCHBI7Y.mjs +11 -0
- package/dist/chunk-2ZJ4FBTG.mjs +2 -0
- package/dist/chunk-5K7SACPW.mjs +2 -0
- package/dist/chunk-6V2VCKPG.mjs +53 -0
- package/dist/{chunk-MTQ5IWIK.mjs → chunk-75PQGTKX.mjs} +1 -1
- package/dist/chunk-7IJGE5AK.mjs +31 -0
- package/dist/chunk-BVTLSUQT.mjs +2 -0
- package/dist/chunk-C5WXW6VL.mjs +1 -0
- package/dist/chunk-DMWB3IRD.mjs +1 -0
- package/dist/chunk-DNOKP3JS.mjs +2 -0
- package/dist/chunk-EAV2VV2V.mjs +2 -0
- package/dist/chunk-F5XSNRGT.mjs +2 -0
- package/dist/{chunk-QTGE5KAA.mjs → chunk-GASEZICN.mjs} +1 -1
- package/dist/chunk-GL4I4MI6.mjs +1 -3
- package/dist/chunk-H2UYAUX3.mjs +2 -0
- package/dist/chunk-HNCV37XO.mjs +2 -0
- package/dist/chunk-I63OQTCF.mjs +347 -0
- package/dist/chunk-IKCHOC3U.mjs +1 -2
- package/dist/chunk-J5SC3R5L.mjs +2 -0
- package/dist/{chunk-K63SG2J5.mjs → chunk-JMMP5JSP.mjs} +1 -1
- package/dist/chunk-NOHXTT24.mjs +1 -1
- package/dist/{chunk-2RRYBN2J.mjs → chunk-ODIGT4YJ.mjs} +2 -2
- package/dist/chunk-PHKDIU3X.mjs +30 -0
- package/dist/chunk-PQT5FYN5.mjs +2 -0
- package/dist/chunk-PSSHCTJ2.mjs +8 -0
- package/dist/chunk-QXVMGZFP.mjs +1 -1
- package/dist/chunk-V2I7PSJW.mjs +2 -0
- package/dist/chunk-W5NIRROD.mjs +7 -0
- package/dist/chunk-WHJEKDNP.mjs +2 -0
- package/dist/chunk-XKD2ABCO.mjs +7 -0
- package/dist/chunk-XMKYGH62.mjs +142 -0
- package/dist/{chunk-MZNY6VXR.mjs → chunk-ZHJZPC7U.mjs} +1 -1
- package/dist/cli.mjs +1 -69
- package/dist/codex-note-context-YHKPQ4WP.mjs +2 -0
- package/dist/codex-project-7VYHYTWO.mjs +2 -0
- package/dist/codex-session-registry-SPRWY2WW.mjs +1 -1
- package/dist/focus-inspection-VBS5656D.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/memory-legacy.mjs +1 -1
- package/dist/memory-store.mjs +1 -1
- package/dist/peer-client-MTWZG2FB.mjs +2 -0
- package/dist/plugin-astro.mjs +1 -31
- package/dist/plugin-nuxt.mjs +1 -30
- package/dist/plugin-vite.mjs +1 -1
- package/dist/server.d.mts +2 -0
- package/dist/server.mjs +1 -14
- package/dist/{workspace-snapshot-O34KMJ2V.mjs → workspace-snapshot-RTTXNNUX.mjs} +1 -1
- package/package.json +4 -2
- package/dist/ParticipantRuntime-M762IJI2.mjs +0 -139
- package/dist/PopmeltTasteConnectedPane-ZW47K7VZ.mjs +0 -221
- package/dist/PreviewRuntime-QDA4OF67.mjs +0 -2
- package/dist/SuppliedContext-NURVPZ4L.mjs +0 -2
- package/dist/browser-runtime-VHGXBZA5.mjs +0 -2
- package/dist/chunk-3GHVZGWO.mjs +0 -347
- package/dist/chunk-45JUZT7H.mjs +0 -2
- package/dist/chunk-5HNQZ6TH.mjs +0 -2
- package/dist/chunk-ABX3VAYF.mjs +0 -317
- package/dist/chunk-B2MFT2SV.mjs +0 -62
- package/dist/chunk-EXDOFFFJ.mjs +0 -2
- package/dist/chunk-F6AMPRUB.mjs +0 -2
- package/dist/chunk-KAKYUYLC.mjs +0 -310
- package/dist/chunk-RCVAPQ7X.mjs +0 -2
- package/dist/chunk-VAPWW76T.mjs +0 -1
- package/dist/chunk-WL62X74S.mjs +0 -342
- package/dist/chunk-YHSHUWWI.mjs +0 -1
- package/dist/codex-note-context-NGOK23TK.mjs +0 -2
- package/dist/codex-project-EMYHOQCC.mjs +0 -2
- package/dist/focus-inspection-G72JLJYG.mjs +0 -2
- package/dist/peer-client-6FUDDS46.mjs +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
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};
|
package/dist/chunk-NOHXTT24.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{randomUUID as
|
|
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};
|