@geravant/sinain 1.22.1 → 1.22.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geravant/sinain",
3
- "version": "1.22.1",
3
+ "version": "1.22.3",
4
4
  "description": "Ambient intelligence that sees what you see, hears what you hear, and acts on your behalf",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1286,11 +1286,15 @@ function renderKnowledgeUiV2(): string {
1286
1286
  const peerHost = process.env.SINAIN_PEERJS_HOST || ""; // empty = peerjs.com cloud default
1287
1287
  const inlineMax = parseInt(process.env.SINAIN_SHARE_INLINE_MAX_BYTES || "6000");
1288
1288
  const ttlHours = parseInt(process.env.SINAIN_SHARE_TTL_HOURS || "24");
1289
- // Public URL of the share-redirector (docs/share.html in the repo). Browsers
1290
- // preserve URL fragments through redirects without sending them to the
1291
- // server, so the bundle bytes never touch this CDN.
1289
+ // Public URL of the share-redirector. Self-hosted on the existing
1290
+ // sinain.duckdns.org Caddy + Let's Encrypt setup that already fronts the
1291
+ // OpenClaw gateway. We control the host, headers, and reliability no
1292
+ // CDN policy quirks (jsDelivr serves gh-path HTML as text/plain;
1293
+ // raw.githack.com returns 403 with body). Browsers preserve URL fragments
1294
+ // through redirects without sending them to the server, so bundle bytes
1295
+ // in #bundle=… never touch our host either.
1292
1296
  const shareBaseUrl = process.env.SINAIN_SHARE_BASE_URL
1293
- || "https://cdn.jsdelivr.net/gh/anthillnet/sinain-hud@main/docs/share.html";
1297
+ || "https://sinain.duckdns.org/share.html";
1294
1298
  return KNOWLEDGE_UI_V2_HTML
1295
1299
  .replace(/__SHARE_PEERJS_HOST__/g, JSON.stringify(peerHost))
1296
1300
  .replace(/__SHARE_INLINE_MAX_BYTES__/g, String(inlineMax))