@popmelt.com/core 0.28.3 → 0.29.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 +8 -0
- package/claude-plugin/.claude-plugin/plugin.json +1 -1
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/dist/ParticipantRuntime-ITMSYN4F.mjs +139 -0
- package/dist/{PopmeltTasteConnectedPane-JO4QR6ZT.mjs → PopmeltTasteConnectedPane-A7QLXPE4.mjs} +1 -1
- package/dist/ThreadErrorCard-MHFJXR4W.mjs +2 -0
- package/dist/bridge-entry.mjs +1 -1
- package/dist/bridge-recovery-3IQN3U6D.mjs +2 -0
- package/dist/bridgeSSEStream-NEYI73TC.mjs +4 -0
- package/dist/bridgeWebSocketStream-H3DCP4T3.mjs +2 -0
- package/dist/browser-runtime-4IAKTM6S.mjs +2 -0
- package/dist/browser.mjs +1 -1
- package/dist/chunk-2P2NUZW7.mjs +2 -0
- package/dist/{chunk-QUNV5PNI.mjs → chunk-5VILWL5E.mjs} +1 -1
- package/dist/chunk-6VXFTT5U.mjs +2 -0
- package/dist/chunk-BZFM6VPZ.mjs +303 -0
- package/dist/{chunk-HVC52TRT.mjs → chunk-GIJABDSK.mjs} +1 -1
- package/dist/chunk-J4YWKBXJ.mjs +1 -0
- package/dist/chunk-MBBS4FJH.mjs +62 -0
- package/dist/chunk-MFNS5MBM.mjs +2 -0
- package/dist/chunk-QRVEMJ4U.mjs +367 -0
- package/dist/chunk-VLFWNZFS.mjs +17 -0
- package/dist/{chunk-COTSHFE4.mjs → chunk-XZ6MNKUQ.mjs} +38 -38
- package/dist/cli.mjs +125 -111
- package/dist/{dev-server-rQIWJcSX.d.mts → dev-server-DtX2_HCa.d.mts} +2 -0
- package/dist/index.mjs +1 -1
- package/dist/memory-store.d.mts +1 -1
- package/dist/plugin-astro.d.mts +1 -1
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-nuxt.d.mts +1 -1
- package/dist/plugin-nuxt.mjs +1 -1
- package/dist/plugin-vite.d.mts +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.mjs +5 -5
- package/dist/{types-Bur49CLH.d.mts → types-BethD1Ix.d.mts} +2 -0
- package/package.json +15 -7
- package/dist/ParticipantRuntime-R2Q5LRIU.mjs +0 -139
- package/dist/browser-runtime-4CQV2VBX.mjs +0 -2
- package/dist/chunk-4HMA3W7T.mjs +0 -369
- package/dist/chunk-A2UXK7AS.mjs +0 -77
- package/dist/chunk-JOCMNLL7.mjs +0 -289
- package/dist/chunk-OF6AFYLB.mjs +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var n={capacity:{label:"At capacity",message:"The model provider is temporarily unavailable. Try again shortly."},rate_limited:{label:"Rate limited",message:"The model provider is receiving too many requests. Try again shortly."},timeout:{label:"Timed out",message:"The model took too long to respond. Try again."},connection:{label:"Connection lost",message:"The model provider disconnected before the run completed. Try again."},authentication:{label:"Sign-in required",message:"The model provider needs to be authenticated before this run can continue."},send_rejected:{label:"Not sent",message:"This reply did not reach the thread. Try again when the connection is ready."},failed:{label:"Failed",message:"The model could not complete this run. Try again, or inspect the job diagnostics if the problem continues."}};function a(t){let e=typeof t=="string"?t:(()=>{try{return JSON.stringify(t)}catch{return String(t??"")}})();return/\b(?:http\s*)?503\b|server at capacity|\bat capacity\b|resource[_\s-]?exhausted|temporarily unavailable/i.test(e)?"capacity":/\b(?:http\s*)?429\b|rate[_\s-]?limit|too many requests/i.test(e)?"rate_limited":/timed?\s*out|timeout/i.test(e)?"timeout":/auth(?:entication|orization)? required|oauth|not authenticated|sign[ -]?in required|unauthorized|\b401\b/i.test(e)?"authentication":/transport channel closed|connection (?:closed|lost|reset)|socket hang up|network error|disconnected/i.test(e)?"connection":"failed"}function o(t,e){let i=e??a(t);return{kind:i,...n[i]}}export{o as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{A as p}from"./chunk-
|
|
2
|
+
import{A as p}from"./chunk-MBBS4FJH.mjs";import{j as m}from"./chunk-XOGBFVWI.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var i=new Map;function h(a,t,r){let e=new URL(a);if(e.protocol!=="http:"||!["localhost","127.0.0.1","[::1]"].includes(e.hostname)||e.pathname!=="/"||e.search||e.hash||e.username||e.password)throw new Error("Bridge scope requires a local origin");if(i.has(e.origin))throw new Error("This bridge already has an active participant in this page");let n={headers:{...t},pathPrefix:r};return i.set(e.origin,n),()=>{i.get(e.origin)===n&&i.delete(e.origin)}}function c(a){return!!o(a)}function o(a){try{let t=new URL(a),r=i.get(t.origin);return r?.pathPrefix?(typeof r.pathPrefix=="string"?[r.pathPrefix]:r.pathPrefix).some(e=>e.endsWith("/")?t.pathname.startsWith(e):t.pathname===e)?r:void 0:r}catch{return}}function p(a,t){let r=o(a);if(!r)return t;let e=new Headers(t.headers);for(let[n,s]of Object.entries(r.headers))e.set(n,s);return{...t,headers:e,redirect:"error",credentials:"omit"}}export{h as a,c as b,p as c};
|