@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.
Files changed (85) hide show
  1. package/README.md +23 -0
  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-OMXKVZY4.mjs → ThreadErrorCard-7J62GD5W.mjs} +1 -1
  10. package/dist/ThreadPanel-RJIHV3P6.mjs +197 -0
  11. package/dist/bridge-entry.mjs +1 -1
  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-K63SG2J5.mjs → chunk-JMMP5JSP.mjs} +1 -1
  37. package/dist/chunk-NOHXTT24.mjs +1 -1
  38. package/dist/{chunk-2RRYBN2J.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-MZNY6VXR.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 +4 -2
  65. package/dist/ParticipantRuntime-M762IJI2.mjs +0 -139
  66. package/dist/PopmeltTasteConnectedPane-ZW47K7VZ.mjs +0 -221
  67. package/dist/PreviewRuntime-QDA4OF67.mjs +0 -2
  68. package/dist/SuppliedContext-NURVPZ4L.mjs +0 -2
  69. package/dist/browser-runtime-VHGXBZA5.mjs +0 -2
  70. package/dist/chunk-3GHVZGWO.mjs +0 -347
  71. package/dist/chunk-45JUZT7H.mjs +0 -2
  72. package/dist/chunk-5HNQZ6TH.mjs +0 -2
  73. package/dist/chunk-ABX3VAYF.mjs +0 -317
  74. package/dist/chunk-B2MFT2SV.mjs +0 -62
  75. package/dist/chunk-EXDOFFFJ.mjs +0 -2
  76. package/dist/chunk-F6AMPRUB.mjs +0 -2
  77. package/dist/chunk-KAKYUYLC.mjs +0 -310
  78. package/dist/chunk-RCVAPQ7X.mjs +0 -2
  79. package/dist/chunk-VAPWW76T.mjs +0 -1
  80. package/dist/chunk-WL62X74S.mjs +0 -342
  81. package/dist/chunk-YHSHUWWI.mjs +0 -1
  82. package/dist/codex-note-context-NGOK23TK.mjs +0 -2
  83. package/dist/codex-project-EMYHOQCC.mjs +0 -2
  84. package/dist/focus-inspection-G72JLJYG.mjs +0 -2
  85. package/dist/peer-client-6FUDDS46.mjs +0 -2
@@ -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}from"./chunk-5HNQZ6TH.mjs";import"./chunk-45JUZT7H.mjs";import"./chunk-ABX3VAYF.mjs";import"./chunk-IKCHOC3U.mjs";export{a as canvasReceiptsForTurn};
@@ -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
- #!/usr/bin/env node
2
- import{a,b,c,d,e,f}from"./chunk-45JUZT7H.mjs";import"./chunk-ABX3VAYF.mjs";import"./chunk-IKCHOC3U.mjs";export{a as agentCredentialFile,e as callPeer,d as canvasChatRequest,c as enrolledCanvasEndpoint,f as runPeerCommand,b as sendThreadNote};