@popmelt.com/core 0.32.2 → 0.33.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.
- 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-VKCCEIM7.mjs +1 -0
- package/dist/ParticipantRuntime-YS5SIZUQ.mjs +1 -0
- package/dist/PopmeltTasteConnectedPane-FKIJM3C7.mjs +1 -0
- package/dist/PreviewRuntime-LFPK56NW.mjs +1 -0
- package/dist/QueuedReplies-ZYUDSTS2.mjs +1 -46
- package/dist/SuppliedContext-RWN6UR3K.mjs +1 -0
- package/dist/ThreadErrorCard-7J62GD5W.mjs +1 -0
- package/dist/ThreadPanel-KVNM67WO.mjs +1 -0
- package/dist/adapter-react-three-fiber.mjs +1 -2
- package/dist/bridge-entry.mjs +1 -1
- package/dist/bridge-recovery-3IQN3U6D.mjs +1 -2
- package/dist/bridgeSSEStream-NEYI73TC.mjs +1 -4
- package/dist/bridgeWebSocketStream-H3DCP4T3.mjs +1 -2
- package/dist/browser-runtime-AP35S5MK.mjs +1 -0
- package/dist/browser.mjs +1 -2
- package/dist/canvas-chat-note-NHYL3T6J.mjs +1 -2
- package/dist/checkFixture-MWBOYIM2.mjs +1 -0
- package/dist/chunk-27ADDVGC.mjs +1 -0
- package/dist/chunk-2IASPT6L.mjs +1 -0
- package/dist/chunk-2P2NUZW7.mjs +1 -2
- package/dist/chunk-2VCHBI7Y.mjs +1 -0
- package/dist/chunk-2ZJ4FBTG.mjs +1 -0
- package/dist/chunk-4LHTPRFY.mjs +1 -2
- package/dist/chunk-5K7SACPW.mjs +1 -0
- package/dist/chunk-6V2VCKPG.mjs +1 -0
- package/dist/chunk-6VXFTT5U.mjs +1 -2
- package/dist/chunk-75PQGTKX.mjs +1 -0
- package/dist/chunk-BVTLSUQT.mjs +1 -0
- package/dist/chunk-CPOYMGYY.mjs +1 -2
- package/dist/chunk-DNOKP3JS.mjs +1 -0
- package/dist/chunk-EAV2VV2V.mjs +1 -0
- package/dist/chunk-EX63NVDN.mjs +1 -2
- package/dist/chunk-F5XSNRGT.mjs +1 -0
- package/dist/chunk-GASEZICN.mjs +1 -0
- package/dist/chunk-GL4I4MI6.mjs +1 -3
- package/dist/chunk-H7XMDLGU.mjs +30 -0
- package/dist/chunk-HVD5ZG6W.mjs +1 -0
- package/dist/chunk-IKCHOC3U.mjs +1 -2
- package/dist/chunk-J3UIBBU2.mjs +1 -2
- package/dist/chunk-J4WDYITA.mjs +1 -2
- package/dist/chunk-JMMP5JSP.mjs +1 -0
- package/dist/chunk-LVEMYZOA.mjs +1 -2
- package/dist/chunk-N2QUNHV6.mjs +1 -0
- package/dist/chunk-N2ZEZCHO.mjs +1 -2
- package/dist/chunk-N6JTX4PD.mjs +2 -0
- package/dist/chunk-NOHXTT24.mjs +1 -1
- package/dist/chunk-O4HZP3RP.mjs +1 -2
- package/dist/chunk-ODIGT4YJ.mjs +1 -0
- package/dist/chunk-PQT5FYN5.mjs +1 -0
- package/dist/chunk-PSSHCTJ2.mjs +1 -0
- package/dist/chunk-QOJCTLQW.mjs +1 -0
- package/dist/chunk-QXVMGZFP.mjs +1 -1
- package/dist/chunk-RESPUCV7.mjs +1 -0
- package/dist/chunk-SHAIHRV2.mjs +1 -0
- package/dist/chunk-V2I7PSJW.mjs +1 -0
- package/dist/chunk-VPPVURBR.mjs +2 -0
- package/dist/chunk-W5NIRROD.mjs +1 -0
- package/dist/chunk-WHJEKDNP.mjs +1 -0
- package/dist/chunk-XKD2ABCO.mjs +1 -0
- package/dist/chunk-XTOCFTVW.mjs +1 -2
- package/dist/chunk-YLKEDOII.mjs +31 -0
- package/dist/chunk-ZHJZPC7U.mjs +1 -0
- package/dist/cli.mjs +1 -69
- package/dist/codex-note-context-4JYQ437H.mjs +2 -0
- package/dist/codex-project-FA4EK6VR.mjs +2 -0
- package/dist/codex-session-registry-SPRWY2WW.mjs +1 -1
- package/dist/focus-inspection-VBS5656D.mjs +1 -0
- package/dist/index.mjs +1 -2
- package/dist/media.mjs +1 -2
- package/dist/memory-legacy.mjs +1 -1
- package/dist/memory-store.mjs +1 -1
- package/dist/peer-client-KJCPXT76.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/taste-proposal-session-XU4N7RUV.mjs +1 -2
- package/dist/workspace-snapshot-RTTXNNUX.mjs +1 -0
- 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/ThreadErrorCard-OMXKVZY4.mjs +0 -2
- package/dist/browser-runtime-VHGXBZA5.mjs +0 -2
- package/dist/chunk-2RRYBN2J.mjs +0 -17
- 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-C3VWS5R6.mjs +0 -3
- package/dist/chunk-EXDOFFFJ.mjs +0 -2
- package/dist/chunk-F6AMPRUB.mjs +0 -2
- package/dist/chunk-K63SG2J5.mjs +0 -2
- package/dist/chunk-KAKYUYLC.mjs +0 -310
- package/dist/chunk-MTQ5IWIK.mjs +0 -2
- package/dist/chunk-MZNY6VXR.mjs +0 -2
- package/dist/chunk-QTGE5KAA.mjs +0 -2
- 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
- package/dist/workspace-snapshot-O34KMJ2V.mjs +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t,b as r,c as e,d as a}from"./chunk-QOJCTLQW.mjs";function o(o){let n=o?.basePath??"/popmelt",l={port:null,projectId:null},p="virtual:popmelt/bridge",i=`\0${p}`;return{name:"popmelt",resolveId(t){if(t===p)return i},load(t){if(t===i)return`export const bridgeUrl = ${JSON.stringify(null===l.port?null:`http://localhost:${l.port}`)}; export const projectId = ${JSON.stringify(l.projectId)};`},async configureServer(a){l=await t(o,a,5173),await r(l,a),a.middlewares.use(e(n,()=>l))},transformIndexHtml(){if(null!==l.port)return[{tag:"script",attrs:{type:"text/javascript"},children:a(l),injectTo:"head-prepend"}]}}}export{o as a};
|
package/dist/chunk-IKCHOC3U.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createHash as
|
|
3
|
-
`,{encoding:"utf8",mode:384})}async function h(t){await f(t)}async function N(t){await f(t)}async function y(t){try{let e=JSON.parse(await u(p(t),"utf8")),n=g(e);return n?.sessionId===t?n:null}catch{return null}}async function k(t){let e=await y(t);return e?.status==="active"?e:null}async function M(t){let e=await y(t);return e?.status==="orientation_required"?e:null}async function _(){let t=c(),n=(await S(t,{withFileTypes:!0}).catch(o=>{if(o.code==="ENOENT")return[];throw o})).filter(o=>o.isFile()&&/^[a-f0-9]{64}\.json$/.test(o.name));if(n.length>2048)throw new Error("Session registry exceeds discovery limit");return(await Promise.all(n.map(async o=>{let i=a(t,o.name);try{if((await m(i)).size>65536)return null;let r=g(JSON.parse(await u(i,"utf8")));return r?.status==="active"&&p(r.sessionId)===i?r:null}catch{return null}}))).filter(o=>o!==null)}export{b as a,h as b,N as c,y as d,k as e,M as f,_ as g};
|
|
2
|
+
import{createHash as t}from"crypto";import{mkdir as e,readFile as r,readdir as o,stat as s,writeFile as n}from"fs/promises";import{tmpdir as i}from"os";import{join as a}from"path";function d(t,e,r){let o=new Map(t.candidates.map(t=>[t.storeId,t])),s=o.get(e);if(!s)return null;let n=[...new Set(r)].filter(t=>t!==e);return n.some(t=>!o.has(t))?null:{primary:s,mountedStores:n.map(t=>{let e=o.get(t);return{storeId:e.storeId,projectRoot:e.root,projectId:e.projectId}})}}function u(){return process.env.POPMELT_CODEX_SESSION_DIR||a(i(),"popmelt-core","codex-sessions")}function c(e){let r=t("sha256").update(e).digest("hex");return a(u(),`${r}.json`)}function p(t){if(!t||"object"!=typeof t||Array.isArray(t))return!1;let e=t;return"string"==typeof e.storeId&&!!e.storeId&&"string"==typeof e.projectRoot&&!!e.projectRoot&&"string"==typeof e.projectId&&!!e.projectId}function l(t){if(!t||"object"!=typeof t||Array.isArray(t))return!1;let e=t;return"string"==typeof e.root&&!!e.root&&"string"==typeof e.storeId&&!!e.storeId&&"string"==typeof e.projectId&&!!e.projectId&&"string"==typeof e.reason&&Array.isArray(e.reasons)&&e.reasons.every(t=>"string"==typeof t)&&"boolean"==typeof e.initialized}function f(t){if(!t||"object"!=typeof t||Array.isArray(t))return null;let e=t;return"orientation_required"===e.status?2===e.version&&"string"==typeof e.sessionId&&e.sessionId&&"string"==typeof e.cwd&&e.cwd&&Array.isArray(e.candidates)&&e.candidates.every(l)&&"string"==typeof e.updatedAt&&!Number.isNaN(Date.parse(e.updatedAt))?e:null:function(t){if("string"!=typeof t.sessionId||!t.sessionId||"string"!=typeof t.projectRoot||!t.projectRoot||"string"!=typeof t.projectId||!t.projectId||!Number.isInteger(t.bridgePort)||"string"!=typeof t.updatedAt||Number.isNaN(Date.parse(t.updatedAt)))return null;let e=Array.isArray(t.mountedStores)?t.mountedStores.filter(p):[],r="automatic"===t.orientation||"explicit"===t.orientation||"workspace_default"===t.orientation?t.orientation:"legacy";return{version:2,status:"active",sessionId:t.sessionId,storeId:"string"==typeof t.storeId&&t.storeId?t.storeId:`store-${t.projectId}`,projectRoot:t.projectRoot,projectId:t.projectId,bridgePort:t.bridgePort,mountedStores:e,orientation:r,updatedAt:t.updatedAt}}(e)}async function y(t){let r=u();await e(r,{recursive:!0,mode:448}),await n(c(t.sessionId),`${JSON.stringify(t,null,2)}\n`,{encoding:"utf8",mode:384})}async function I(t){await y(t)}async function m(t){await y(t)}async function g(t){try{let e=f(JSON.parse(await r(c(t),"utf8")));return e?.sessionId===t?e:null}catch{return null}}async function j(t){let e=await g(t);return"active"===e?.status?e:null}async function w(t){let e=await g(t);return"orientation_required"===e?.status?e:null}async function A(){let t=u(),e=(await o(t,{withFileTypes:!0}).catch(t=>{if("ENOENT"===t.code)return[];throw t})).filter(t=>t.isFile()&&/^[a-f0-9]{64}\.json$/.test(t.name));if(e.length>2048)throw new Error("Session registry exceeds discovery limit");return(await Promise.all(e.map(async e=>{let o=a(t,e.name);try{if((await s(o)).size>65536)return null;let t=f(JSON.parse(await r(o,"utf8")));return"active"===t?.status&&c(t.sessionId)===o?t:null}catch{return null}}))).filter(t=>null!==t)}export{d as a,I as b,m as c,g as d,j as e,w as f,A as g};
|
package/dist/chunk-J3UIBBU2.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{createContext as r,useContext as o}from"react";var t=r(null);function n(){let e=o(t);if(!e)throw new Error("usePopmelt must be used within PopmeltProvider");return e}export{t as a,n as b};
|
|
1
|
+
"use client";import{createContext as r,useContext as e}from"react";var t=r(null);function o(){let r=e(t);if(!r)throw new Error("usePopmelt must be used within PopmeltProvider");return r}export{t as a,o as b};
|
package/dist/chunk-J4WDYITA.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as y}from"./chunk-4LHTPRFY.mjs";var f=6,s=256;function u(t,o){if(!Number.isFinite(o.x)||!Number.isFinite(o.y))return[...t];let r=t[t.length-1];return r&&Math.hypot(o.x-r.x,o.y-r.y)<2?[...t]:[...t.length>=s?t.filter((n,l)=>l%2===0):t,{x:o.x,y:o.y}]}function e(t){return{left:Math.min(...t.map(o=>o.x)),top:Math.min(...t.map(o=>o.y)),right:Math.max(...t.map(o=>o.x)),bottom:Math.max(...t.map(o=>o.y))}}function x(t,o){let r=!1;for(let n=0,l=o.length-1;n<o.length;l=n++){let a=o[n],i=o[l];a.y>t.y!=i.y>t.y&&t.x<(i.x-a.x)*(t.y-a.y)/(i.y-a.y)+a.x&&(r=!r)}return r}function m(t,o,r,n=Date.now()){if(t.length<3)return null;let l=e(t);return l.right-l.left<8||l.bottom-l.top<8||h(t).length===0?null:{kind:"lasso",coordinateSpace:"document",points:t.map(a=>({x:a.x+o.x,y:a.y+o.y})),viewport:r,scroll:{...o},capturedAt:n}}function h(t){if(t.length<3)return[];let o=e(t),r=[];for(let n=0;n<8;n++)for(let l=0;l<8;l++){let a={x:o.left+(l+.5)*(o.right-o.left)/8,y:o.top+(n+.5)*(o.bottom-o.top)/8};x(a,t)&&r.push(a)}return r}function p(t,o,r,n=!0){o.length<3||(t.save(),t.beginPath(),o.forEach((l,a)=>a===0?t.moveTo(l.x,l.y):t.lineTo(l.x,l.y)),t.closePath(),t.fillStyle=r,t.globalAlpha*=.07,t.fill("evenodd"),t.restore(),n&&(t.save(),t.strokeStyle=r,t.lineWidth=1,t.setLineDash([...y]),t.stroke(),t.restore()))}export{f as a,u as b,e as c,m as d,h as e,p as f};
|
|
1
|
+
"use client";import{a as t}from"./chunk-4LHTPRFY.mjs";var e=6;function n(t,e){if(!Number.isFinite(e.x)||!Number.isFinite(e.y))return[...t];let n=t[t.length-1];return n&&Math.hypot(e.x-n.x,e.y-n.y)<2?[...t]:[...t.length>=256?t.filter((t,e)=>e%2==0):t,{x:e.x,y:e.y}]}function o(t){return{left:Math.min(...t.map(t=>t.x)),top:Math.min(...t.map(t=>t.y)),right:Math.max(...t.map(t=>t.x)),bottom:Math.max(...t.map(t=>t.y))}}function l(t,e){let n=!1;for(let o=0,l=e.length-1;o<e.length;l=o++){let r=e[o],a=e[l];r.y>t.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(n=!n)}return n}function r(t,e,n,l=Date.now()){if(t.length<3)return null;let r=o(t);return r.right-r.left<8||r.bottom-r.top<8||0===a(t).length?null:{kind:"lasso",coordinateSpace:"document",points:t.map(t=>({x:t.x+e.x,y:t.y+e.y})),viewport:n,scroll:{...e},capturedAt:l}}function a(t){if(t.length<3)return[];let e=o(t),n=[];for(let o=0;o<8;o++)for(let r=0;r<8;r++){let a={x:e.left+(r+.5)*(e.right-e.left)/8,y:e.top+(o+.5)*(e.bottom-e.top)/8};l(a,t)&&n.push(a)}return n}function i(e,n,o,l=!0){n.length<3||(e.save(),e.beginPath(),n.forEach((t,n)=>0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)),e.closePath(),e.fillStyle=o,e.globalAlpha*=.07,e.fill("evenodd"),e.restore(),l&&(e.save(),e.strokeStyle=o,e.lineWidth=1,e.setLineDash([...t]),e.stroke(),e.restore()))}export{e as a,n as b,o as c,r as d,a as e,i as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{q as e}from"./chunk-6V2VCKPG.mjs";import{g as n}from"./chunk-DNOKP3JS.mjs";var t=!1,i=()=>t;function o(i){t=!0;let o=null,r=!1,d=n=>{let t=n.composedPath()[0];return t instanceof Element&&("devtools-canvas"===t.id||!e(t)&&!t.closest("[data-taste-editor], [data-taste-navigation]"))},a=e=>{e.preventDefault(),e.stopImmediatePropagation()},l=e=>{o=null,0===e.button&&d(e)&&(o={x:e.clientX,y:e.clientY},r=!1,a(e))},s=e=>{o&&Math.hypot(e.clientX-o.x,e.clientY-o.y)>5&&(r=!0)},v=e=>{o&&a(e)},w=e=>{if(!d(e)||0!==e.button)return void(o=null);a(e);let t=!(!o||r);if(o=null,!t)return;let l=n(e.clientX,e.clientY);l&&i(l)},c=()=>{o=null};return window.addEventListener("pointerdown",l,!0),window.addEventListener("pointermove",s,!0),window.addEventListener("pointerup",v,!0),window.addEventListener("pointercancel",c,!0),window.addEventListener("click",w,!0),()=>{t=!1,window.removeEventListener("pointerdown",l,!0),window.removeEventListener("pointermove",s,!0),window.removeEventListener("pointerup",v,!0),window.removeEventListener("pointercancel",c,!0),window.removeEventListener("click",w,!0)}}export{i as a,o as b};
|
package/dist/chunk-LVEMYZOA.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var n=new WeakMap,a=new WeakMap;function i(t,e){e&&(n.set(t,e),a.set(e,t))}function l(t){let e=n.get(t);return e?.isConnected&&a.get(e)===t?e.getBoundingClientRect():null}export{i as a,l as b};
|
|
1
|
+
"use client";var e=new WeakMap,n=new WeakMap;function t(t,a){a&&(e.set(t,a),n.set(a,t))}function a(t){let a=e.get(t);return a?.isConnected&&n.get(a)===t?a.getBoundingClientRect():null}export{t as a,a as b};
|