@popmelt.com/core 0.5.16 → 0.5.18

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/LICENSE CHANGED
@@ -1,7 +1,15 @@
1
- # Polyform Shield License 1.0.0
1
+ # PolyForm Shield License 1.0.0 + No Redistribution Addendum
2
2
 
3
3
  <https://polyformproject.org/licenses/shield/1.0.0>
4
4
 
5
+ ## Additional Restriction: No Redistribution for Commercial Gain
6
+
7
+ You may not sell, resell, sublicense, or distribute the software —
8
+ whether modified or unmodified — as part of a paid product or
9
+ service, or offer it as a hosted or managed service to third parties.
10
+ Internal use within your organization is permitted. For commercial
11
+ distribution or managed-service licensing, contact the licensor.
12
+
5
13
  ## Acceptance
6
14
 
7
15
  In order to get any license under these terms, you must agree to
@@ -105,9 +113,9 @@ software, under any kind of legal claim.***
105
113
 
106
114
  ## Definitions
107
115
 
108
- The **licensor** is the entity offering these terms, and the
109
- **software** is the software the licensor makes available under these
110
- terms.
116
+ The **licensor** is the individual or entity offering these terms,
117
+ and the **software** is the software the licensor makes available
118
+ under these terms.
111
119
 
112
120
  **You** refers to the individual or entity agreeing to these terms.
113
121
 
@@ -124,3 +132,11 @@ software under these terms.
124
132
 
125
133
  **Use** means anything you do with the software requiring one of
126
134
  your licenses.
135
+
136
+ ---
137
+
138
+ ## Commercial Licensing
139
+
140
+ For commercial distribution or managed-service licensing, contact
141
+ **[hello@popmelt.com](mailto:hello@popmelt.com)** or visit
142
+ **[https://popmelt.com](https://popmelt.com)**.
@@ -12,7 +12,7 @@ type Plugin = {
12
12
  attrs: Record<string, string>;
13
13
  children: string;
14
14
  injectTo: string;
15
- } | undefined;
15
+ }[] | undefined;
16
16
  };
17
17
  declare function popmelt(options?: PopmeltPluginOptions): Plugin;
18
18
 
@@ -1 +1 @@
1
- import{a as L,b as y}from"./chunk-3HWT3PC2.mjs";import{request as E}from"http";function O(e){var u;let p=(u=e==null?void 0:e.basePath)!=null?u:"/popmelt",w=(e==null?void 0:e.bridge)!==!1,n=null,l=null;return{name:"popmelt",async configureServer(c){var d,g,m,P,R,b;if(!w||process.env.POPMELT_BRIDGE_URL){if(process.env.POPMELT_BRIDGE_URL)try{n=new URL(process.env.POPMELT_BRIDGE_URL).port?parseInt(new URL(process.env.POPMELT_BRIDGE_URL).port,10):null}catch(r){}}else try{let{startPopmelt:r}=await import("./server-A5ZYTJTS.mjs"),t=c.config,a=((d=t==null?void 0:t.server)==null?void 0:d.host)===!0?"0.0.0.0":((g=t==null?void 0:t.server)==null?void 0:g.host)||"localhost",o=(P=(m=t==null?void 0:t.server)==null?void 0:m.port)!=null?P:5173,i=`http://${a==="0.0.0.0"?"localhost":a}:${o}`,s=await r({port:e==null?void 0:e.port,projectRoot:e==null?void 0:e.projectRoot,devOrigin:i,force:!0});n=s.port,l=s.close,console.log(`[popmelt] bridge ready at http://localhost:${n}`),(R=c.httpServer)==null||R.on("close",()=>{l&&(l().catch(()=>{}),l=null)})}catch(r){console.warn("[popmelt] bridge failed to start:",(b=r.message)!=null?b:r)}c.middlewares.use((r,t,a)=>{let o=r.url||"";if(!o.startsWith(p)||n===null)return a();let i=`http://localhost:${n}`,s="/canvas"+o.slice(p.length),_=new URL(s,i),f=E(_,{method:r.method,headers:y(L({},r.headers),{host:_.host})},h=>{t.writeHead(h.statusCode||502,h.headers),h.pipe(t)});f.on("error",()=>{t.writeHead(502,{"Content-Type":"text/plain"}),t.end(`Popmelt bridge not running on port ${n}`)}),r.pipe(f)})},transformIndexHtml(){if(n!==null)return{tag:"script",attrs:{type:"text/javascript"},children:`window.__POPMELT_BRIDGE_URL__="http://localhost:${n}";`,injectTo:"head-prepend"}}}}export{O as popmelt};
1
+ import{a as L,b as y}from"./chunk-3HWT3PC2.mjs";import{request as E}from"http";function O(e){var u;let p=(u=e==null?void 0:e.basePath)!=null?u:"/popmelt",w=(e==null?void 0:e.bridge)!==!1,n=null,l=null;return{name:"popmelt",async configureServer(c){var d,g,m,P,R,b;if(!w||process.env.POPMELT_BRIDGE_URL){if(process.env.POPMELT_BRIDGE_URL)try{n=new URL(process.env.POPMELT_BRIDGE_URL).port?parseInt(new URL(process.env.POPMELT_BRIDGE_URL).port,10):null}catch(r){}}else try{let{startPopmelt:r}=await import("./server-A5ZYTJTS.mjs"),t=c.config,a=((d=t==null?void 0:t.server)==null?void 0:d.host)===!0?"0.0.0.0":((g=t==null?void 0:t.server)==null?void 0:g.host)||"localhost",s=(P=(m=t==null?void 0:t.server)==null?void 0:m.port)!=null?P:5173,i=`http://${a==="0.0.0.0"?"localhost":a}:${s}`,o=await r({port:e==null?void 0:e.port,projectRoot:e==null?void 0:e.projectRoot,devOrigin:i,force:!0});n=o.port,l=o.close,console.log(`[popmelt] bridge ready at http://localhost:${n}`),(R=c.httpServer)==null||R.on("close",()=>{l&&(l().catch(()=>{}),l=null)})}catch(r){console.warn("[popmelt] bridge failed to start:",(b=r.message)!=null?b:r)}c.middlewares.use((r,t,a)=>{let s=r.url||"";if(!s.startsWith(p)||n===null)return a();let i=`http://localhost:${n}`,o="/canvas"+s.slice(p.length),_=new URL(o,i),f=E(_,{method:r.method,headers:y(L({},r.headers),{host:_.host})},h=>{t.writeHead(h.statusCode||502,h.headers),h.pipe(t)});f.on("error",()=>{t.writeHead(502,{"Content-Type":"text/plain"}),t.end(`Popmelt bridge not running on port ${n}`)}),r.pipe(f)})},transformIndexHtml(){if(n!==null)return[{tag:"script",attrs:{type:"text/javascript"},children:`window.__POPMELT_BRIDGE_URL__="http://localhost:${n}";`,injectTo:"head-prepend"}]}}}export{O as popmelt};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popmelt.com/core",
3
- "version": "0.5.16",
3
+ "version": "0.5.18",
4
4
  "description": "The design collaboration layer for AI coding agents",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "author": "Popmelt <hello@popmelt.com> (https://popmelt.com)",