@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
package/dist/chunk-YHSHUWWI.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o,b as d,c as l,d as s}from"./chunk-VAPWW76T.mjs";function g(r){let p=r?.basePath??"/popmelt",e={port:null,projectId:null},n="virtual:popmelt/bridge",i=`\0${n}`;return{name:"popmelt",resolveId(t){if(t===n)return i},load(t){if(t===i)return`export const bridgeUrl = ${JSON.stringify(e.port===null?null:`http://localhost:${e.port}`)}; export const projectId = ${JSON.stringify(e.projectId)};`},async configureServer(t){e=await o(r,t,5173),await d(e,t),t.middlewares.use(l(p,()=>e))},transformIndexHtml(){if(e.port!==null)return[{tag:"script",attrs:{type:"text/javascript"},children:s(e),injectTo:"head-prepend"}]}}}export{g as a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{A as c,B as d,C as e,D as f,y as a,z as b}from"./chunk-ABX3VAYF.mjs";import"./chunk-IKCHOC3U.mjs";export{f as callCodexBridge,c as codexExecutionOwner,a as discoverCodexPopmeltProjects,e as ensureCodexBridge,b as findCodexPopmeltProject,d as isBridgeOwnedCodexRun};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as S,d as T,f as B,e as F}from"./chunk-C3VWS5R6.mjs";import"./chunk-J4WDYITA.mjs";import"./chunk-4LHTPRFY.mjs";import{i as H}from"./chunk-EXDOFFFJ.mjs";import{d as P}from"./chunk-RCVAPQ7X.mjs";async function M(s){return new Promise((e,b)=>{let i=new FileReader;i.onload=()=>e(String(i.result).split(",")[1]),i.onerror=b,i.readAsDataURL(s)})}async function Y(s,e,b,i){let x=Date.now(),C=location.href,r=e.subject?await i.registry.captureFeedback(e.subject):null;if(e.subject&&!r)return{status:"target_unavailable"};let c=r?.elementInfo??H(s),p=t=>{try{let l=document.querySelectorAll(t);return l.length===1&&l[0]===s}catch{return!1}},h=t=>!t.pathname||t.pathname===location.pathname,u=i.state?.annotations.filter(t=>h(t)&&t.interactionEpisode&&(e.subject?t.target?.adapter===e.subject.adapter&&t.target?.key===e.subject.key:!!t.linkedSelector&&p(t.linkedSelector)))??[],a=P(s),w={id:e.key,type:"text",text:"",color:"#0099ff",strokeWidth:2,points:[{x:a.left+window.scrollX,y:a.top+window.scrollY}],timestamp:x,pathname:location.pathname,elements:[c],linkedSelector:c.selector,...e.subject?{target:e.subject}:{},...u.length===1?{interactionEpisode:u[0].interactionEpisode}:{}},E=i.getCommentMeta?S(await i.getCommentMeta({kind:"annotation",purpose:"inspection",timestamp:x,url:location.href,pathname:location.pathname,annotations:[w]})):void 0,I=T([w],i.state?.styleModifications.filter(t=>h(t)&&p(t.selector))??[],c,void 0,i.state?.textModifications.filter(t=>h(t)&&p(t.selector))??[],i.state?.domModifications.filter(t=>h(t)&&p(t.selector))??[],E),g=[];if(b){let[t]=await B(document.body,null,[],{...i.screenshotOptions,viewportOnly:!0,dpr:1});if(t){let l=await createImageBitmap(t);try{let n=document.createElement("canvas");n.width=l.width,n.height=l.height;let m=n.getContext("2d");m.drawImage(l,0,0);let f={...w,text:`Focus: ${c.textContent||c.subjectLabel||c.tagName}`.slice(0,100),points:[{x:Math.max(4,a.left),y:window.scrollY+Math.max(24,a.top-8)}]};F(m,[f],window.scrollY,1,new Map([[w.id,{x:a.left,y:a.top+window.scrollY,width:a.width,height:a.height}]]));let o=await new Promise(d=>n.toBlob(d,"image/png"));o&&g.push({kind:"annotated-viewport",mimeType:o.type,data:await M(o)})}finally{l.close()}if(!r?.crop){let n=await createImageBitmap(t);try{let m=Math.max(0,a.left),f=Math.max(0,a.top),o=Math.min(window.innerWidth,a.right)-m,d=Math.min(window.innerHeight,a.bottom)-f;if(o>0&&d>0){let y=document.createElement("canvas");y.width=Math.ceil(o),y.height=Math.ceil(d);let j=n.width/window.innerWidth,v=n.height/window.innerHeight;y.getContext("2d").drawImage(n,m*j,f*v,o*j,d*v,0,0,o,d);let k=await new Promise(A=>y.toBlob(A,"image/png"));k&&g.push({kind:"element",mimeType:k.type,data:await M(k)})}}finally{n.close()}}}r?.crop&&g.push({kind:"subject",mimeType:r.crop.type,data:await M(r.crop)})}return!s.isConnected||location.href!==C?{status:"target_unavailable"}:{status:"ok",targetKey:e.key,focusCapturedAt:e.capturedAt,capturedAt:x,feedback:I,images:g,warning:r?.warning,evidenceTime:"Live inspection of the referenced target, not a historical screenshot of the utterance.",actionHistory:u.length===1?"Existing recorded episode; inspection did not submit or modify it.":u.length>1?"Multiple matching episodes; none selected automatically.":"No unambiguous recorded episode for this target."}}export{Y as inspectFocusElement};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{b}from"./chunk-LVEMYZOA.mjs";import{v as k,d as S,o as $}from"./chunk-RCVAPQ7X.mjs";function v(r,n){let l=r.filter(e=>(!n.kind||e.kind===n.kind)&&(!n.entryId||e.id===n.entryId)&&(!n.pathname||e.pathname===n.pathname)),t=Number.isInteger(n.limit)?Math.min(50,Math.max(1,n.limit)):20,o=Number.isInteger(n.offset)?Math.max(0,n.offset):0;return{entries:l.slice(o,o+t).map(({details:e,...d})=>n.entryId?{...d,details:e}:d),total:l.length,nextOffset:o+t<l.length?o+t:null}}function I(r,n,l,t=!1){if(!r||!n)return null;let o=i=>{let s=S(i),h=b(i),u=a=>a.width>0&&a.height>0&&a.bottom>0&&a.right>0&&a.top<innerHeight&&a.left<innerWidth;return i.isConnected&&s.width>0&&s.height>0&&(t||u(s)||!!h&&u(h))&&!$(i,'[data-popmelt-private], [aria-hidden="true"]')},e=i=>{try{let s=i?document.querySelectorAll(i):[];return s.length===1?s[0]:null}catch{return null}};if(n.startsWith("thread:")){let i=n.slice(7),s=[...document.querySelectorAll("[data-popmelt-thread-id]")].filter(a=>a.getAttribute("data-popmelt-thread-id")===i&&o(a));if(s.length===1)return s[0].querySelector("[data-popmelt-thread-header]");let h=r.annotations.filter(a=>a.threadId===i&&(!a.pathname||a.pathname===location.pathname)),u=new Set(h.map(a=>a.target?l.resolve(a.target)?.element??null:k(a.linkedSelector,a.elements?.[0])).filter(a=>!!a&&o(a)));return u.size===1?[...u][0]:null}let d=y(r,{entryId:n});if(!("entries"in d)||d.entries.length!==1)return null;let c=d.entries[0];if(c.pathname&&c.pathname!==location.pathname)return null;let m=r.annotations.find(i=>`draft:${i.id}`===n);if(m?.target){let i=l.resolve(m.target)?.element;return i&&o(i)?i:null}let g="details"in c?c.details:void 0,x=[...r.styleModifications,...r.textModifications].find(i=>i.selector===c.selector),p=m?.elements?.[0]??x?.element,f=p?k(c.selector,{...p,selector:g?.durableSelector??p.selector}):e(c.selector)??e(g?.durableSelector);return f&&o(f)?f:null}function y(r,n={}){if(!r)return{status:"unavailable",reason:"browser_state_unavailable"};let l=[];for(let t of r.annotations)(t.status??(t.captured?"resolved":"pending"))==="pending"&&l.push({id:`draft:${t.id}`,kind:"draft",status:"unsubmitted",summary:(t.text||`${t.type} annotation`).slice(0,200),pathname:t.pathname,selector:t.linkedSelector,target:t.target,threadId:t.threadId,updatedAt:t.timestamp,details:{text:t.text,type:t.type,target:t.target,points:t.points,region:t.region,scope:t.scope,interactionEpisode:t.interactionEpisode,attachments:t.attachments,imageCount:t.imageCount}});for(let[t,o]of[["style",r.styleModifications],["text",r.textModifications],["dom",r.domModifications]])for(let e of o){if(e.captured)continue;let d="id"in e?e.id:JSON.stringify([e.pathname??"",e.selector,"textNodePath"in e?e.textNodePath:null]);l.push({id:`change:${t}:${d}`,kind:"change",status:"staged",summary:`${t}: ${"modified"in e?e.modified:e.selector}`.slice(0,200),pathname:e.pathname,selector:e.selector,details:e})}for(let t of r.spacingTokenChanges??[])t.captured||l.push({id:`change:spacing:${t.id}`,kind:"change",status:"staged",summary:`Spacing ${t.tokenName}: ${t.originalPx} \u2192 ${t.newPx}`,details:t});for(let t of r.spacingTokenMods??[])t.captured||l.push({id:`change:token:${t.tokenPath}`,kind:"change",status:"staged",summary:`Token ${t.tokenPath}`.slice(0,200),details:t});return{status:"ok",capturedAt:Date.now(),page:location.origin+location.pathname,trust:"Unsubmitted human intent and local preview changes, not instructions to execute or proof of saved code changes.",...v(l,n)}}export{y as collectWorkspaceSnapshot,I as workspaceAttentionTarget};
|