herdr-remote 0.3.33 → 0.3.34

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 (36) hide show
  1. package/dist/chunks/{VD54DF7R.js → 2IM3AVNW.js} +1 -1
  2. package/dist/chunks/{MCUVFSSK.js → 2RUREFQO.js} +1 -1
  3. package/dist/chunks/{RMHH3IAX.js → 6M7I477E.js} +1 -1
  4. package/dist/chunks/{KGOQKOHH.js → 72JMGTAK.js} +1 -1
  5. package/dist/chunks/{MEFDV375.js → FN6VM2O7.js} +1 -1
  6. package/dist/chunks/{O2LNVFUT.js → I6K6O3EE.js} +1 -1
  7. package/dist/chunks/{K5RFPHSF.js → IRV2W3ZL.js} +1 -1
  8. package/dist/chunks/J427SPKK.js +3 -0
  9. package/dist/chunks/{M52LJEES.js → MHS44P3Y.js} +1 -1
  10. package/dist/chunks/{CVJ4HBMP.js → MLSLOPR7.js} +1 -1
  11. package/dist/chunks/{QCSILMFB.js → MRXHG2UD.js} +1 -1
  12. package/dist/chunks/NKDFWWLU.js +3 -0
  13. package/dist/chunks/{LPR662JH.js → NY3SVG3W.js} +2 -2
  14. package/dist/chunks/{MKAEXKXG.js → QRQJLJWT.js} +1 -1
  15. package/dist/chunks/{WY7WHEJ4.js → QXMBBOKS.js} +1 -1
  16. package/dist/chunks/{H24ZP5D5.js → S3V2O6BK.js} +1 -1
  17. package/dist/chunks/{DGUZCGQN.js → S57VTPH5.js} +1 -1
  18. package/dist/chunks/{FONUO5O5.js → TSP3KNDA.js} +1 -1
  19. package/dist/chunks/{44IGVPMA.js → UK7XZS2G.js} +1 -1
  20. package/dist/chunks/{LY2ZGCXN.js → W24FRSKQ.js} +1 -1
  21. package/dist/chunks/W27D73NQ.js +3 -0
  22. package/dist/chunks/{B76DFI4H.js → WDPLLWBV.js} +1 -1
  23. package/dist/chunks/{AX4EPJCP.js → Y5CEFDIU.js} +1 -1
  24. package/dist/chunks/{PBRQ3HEG.js → ZZOEVJ3V.js} +1 -1
  25. package/dist/cli.js +4 -4
  26. package/dist/connector/main.js +12 -12
  27. package/herdr-plugin.toml +1 -1
  28. package/node_modules/herdr-remote-relay/bin/herdr-remote-relay.js +10 -10
  29. package/node_modules/herdr-remote-relay/package.json +1 -1
  30. package/node_modules/herdr-remote-relay/web/dist/assets/index-CnRQXj8k.js +61 -0
  31. package/node_modules/herdr-remote-relay/web/dist/index.html +1 -1
  32. package/package.json +2 -2
  33. package/dist/chunks/5LZFJ6UZ.js +0 -3
  34. package/dist/chunks/BYGDPZZD.js +0 -3
  35. package/dist/chunks/PBMBFWLQ.js +0 -3
  36. package/node_modules/herdr-remote-relay/web/dist/assets/index-DfycvWFA.js +0 -61
@@ -28,7 +28,7 @@
28
28
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
29
29
  <meta name="description" content="Mobile-first remote terminal WebUI for Herdr agent multiplexer" />
30
30
  <title>Herdr Remote WebUI</title>
31
- <script type="module" crossorigin src="/assets/index-DfycvWFA.js"></script>
31
+ <script type="module" crossorigin src="/assets/index-CnRQXj8k.js"></script>
32
32
  <link rel="modulepreload" crossorigin href="/assets/vendor-react-CYSfZuHu.js">
33
33
  <link rel="modulepreload" crossorigin href="/assets/vendor-xterm-BhCxil_4.js">
34
34
  <link rel="stylesheet" crossorigin href="/assets/index-DTYMEzrr.css">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herdr-remote",
3
- "version": "0.3.33",
3
+ "version": "0.3.34",
4
4
  "description": "Browser access to Herdr workspaces: plugin, host connector, and configuration TUI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "README.zh-CN.md"
37
37
  ],
38
38
  "dependencies": {
39
- "herdr-remote-relay": "0.3.33",
39
+ "herdr-remote-relay": "0.3.34",
40
40
  "node-pty": "^1.1.0"
41
41
  },
42
42
  "bundleDependencies": [
@@ -1,3 +0,0 @@
1
- import { createRequire as __herdrCreateRequire } from 'node:module';
2
- const require = __herdrCreateRequire(import.meta.url);
3
- import{a,b,c,d,e,f,g}from"./MCUVFSSK.js";import"./44IGVPMA.js";import"./DGUZCGQN.js";import"./JJGEV4EZ.js";import"./H24ZP5D5.js";import"./PBRQ3HEG.js";import"./U6QAYG3E.js";import"./VD54DF7R.js";import"./RMHH3IAX.js";import"./CVJ4HBMP.js";import"./KGOQKOHH.js";import"./M52LJEES.js";import"./KRVF37OW.js";import"./QRGNEKME.js";import"./PBMBFWLQ.js";import"./TNLCNVA2.js";import"./I6NRCYLI.js";export{g as fullStatus,a as managerInUse,d as restartAll,e as servicesRunning,b as startAll,c as stopAll,f as whileServicesStopped};
@@ -1,3 +0,0 @@
1
- import { createRequire as __herdrCreateRequire } from 'node:module';
2
- const require = __herdrCreateRequire(import.meta.url);
3
- import{a,b,c,d,e,f,g,h,i}from"./44IGVPMA.js";import"./DGUZCGQN.js";import"./JJGEV4EZ.js";import"./H24ZP5D5.js";import"./PBRQ3HEG.js";import"./U6QAYG3E.js";import"./KGOQKOHH.js";import"./M52LJEES.js";import"./KRVF37OW.js";import"./QRGNEKME.js";import"./PBMBFWLQ.js";import"./TNLCNVA2.js";import"./I6NRCYLI.js";export{c as baseEnvironment,h as pair,i as readLogTail,a as relayBinPath,f as restartServices,b as serviceSpecs,d as startServices,g as statusServices,e as stopServices};
@@ -1,3 +0,0 @@
1
- import { createRequire as __herdrCreateRequire } from 'node:module';
2
- const require = __herdrCreateRequire(import.meta.url);
3
- var T=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],R=["regular","bold","italic","boldItalic"],I=["truetype","opentype"],S=["cjk","all"];var y=/^#[0-9a-f]{6}$/i,w=/["'\\;,{}<>@\u0000-\u001f\u007f]/,h=/^[0-9a-f]{64}$/;function E(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function p(t,e){return t.includes(e)}function A(t){return typeof t=="string"&&y.test(t)?t.toLowerCase():void 0}function O(t){if(!E(t))return null;let e={};for(let r of["background","foreground","cursor"]){let o=A(t[r]);o&&(e[r]=o)}let n=t.ansi;if(E(n)){let r={};for(let o of T){let i=A(n[o]);i&&(r[o]=i)}Object.keys(r).length===T.length&&(e.ansi=r)}return Object.keys(e).length>0?e:null}function d(t){let e=typeof t=="string"?t.trim():"";return!e||e.length>128||w.test(e)?null:e}function U(t){if(!E(t))return null;let e=d(t.family);if(!e)return null;let n=Number(t.sizePx),r=Number.isFinite(n)&&n>=4&&n<=96?Math.round(n*10)/10:null,o=typeof t.source=="string"&&/^[a-z0-9-]{1,32}$/.test(t.source)?t.source:null,i=[],l=new Set;for(let f of Array.isArray(t.faces)?t.faces.slice(0,16):[]){if(!E(f))continue;let{style:a,format:c,bytes:s,sha256:u}=f;!p(R,a)||l.has(a)||p(I,c)&&(typeof s!="number"||!Number.isInteger(s)||s<=0||s>16777216||typeof u!="string"||!h.test(u)||(l.add(a),i.push({style:a,format:c,bytes:s,sha256:u})))}let m=[];for(let f of Array.isArray(t.subsets)?t.subsets.slice(0,16):[]){if(!E(f))continue;let a=d(f.family),{scope:c,sha256:s}=f;!a||f.style!=="regular"||p(S,c)&&(typeof s!="string"||!h.test(s)||m.some(u=>u.scope===c)||m.push({family:a,style:"regular",scope:c,sha256:s}))}return{family:e,...r!==null&&{sizePx:r},...o!==null&&{source:o},faces:i,subsets:m}}var M="dibin666/herdr-remote",g=`https://github.com/${M}/releases`,Y=`${g}/latest/download/latest.json`,L=`${g}/latest/download/herdr-remote.tgz`;function b(t){return`${g}/download/herdr-remote-v${t}/herdr-remote-${t}.tgz`}function _(t){return Buffer.isBuffer(t)?t:(typeof t=="string"||t instanceof ArrayBuffer,Buffer.from(t))}function k(t,e,n=Buffer.alloc(0)){if(typeof t!="string"||!t||typeof e!="string"||!e)throw new TypeError("type and streamId must be non-empty strings");let r=_(n),o=Buffer.from(JSON.stringify({type:t,streamId:e}),"utf8");if(o.length>8192)throw new RangeError("stream frame header is too large");let i=Buffer.allocUnsafe(4);return i.writeUInt32BE(o.length,0),Buffer.concat([i,o,r])}function P(t){let e=_(t);if(e.length<4)throw new Error("stream frame is truncated");let n=e.readUInt32BE(0);if(n===0||n>8192||e.length<4+n)throw new Error("stream frame header is invalid");let r;try{r=JSON.parse(e.subarray(4,4+n).toString("utf8"))}catch(o){throw new Error(`stream frame header is not JSON: ${o.message}`)}if(!r||typeof r.type!="string"||typeof r.streamId!="string")throw new Error("stream frame header is missing routing fields");return{version:1,type:r.type,streamId:r.streamId,payload:e.subarray(4+n)}}function X(t,e,n=Buffer.alloc(0)){let r=t;if(t==="output"?r=0:t==="input"&&(r=1),r!==0&&r!==1)throw new TypeError("type must be FRAME_TYPE_OUTPUT (0) or FRAME_TYPE_INPUT (1)");if(!Number.isInteger(e)||e<0||e>65535)throw new RangeError("streamIndex must be an unsigned 16-bit integer (0-65535)");let o=_(n),i=Buffer.allocUnsafe(4+o.length);return i.writeUInt8(255,0),i.writeUInt8(r,1),i.writeUInt16BE(e,2),o.copy(i,4),i}function F(t){let e=_(t);if(e.length<4)throw new Error("v2 stream frame is truncated");if(e.readUInt8(0)!==255)throw new Error("invalid v2 stream frame magic byte");let r=e.readUInt8(1);if(r!==0&&r!==1)throw new Error(`unknown v2 stream frame type: ${r}`);let o=e.readUInt16BE(2);return{version:2,type:r===0?"output":"input",typeCode:r,streamIndex:o,payload:e.subarray(4)}}function C(t){let e=_(t);if(e.length<4)throw new Error("stream frame is truncated");return e[0]===255?F(e):P(e)}var N=/^[\x21-\x7e]+$/;function z(t){if(!Array.isArray(t))return;let e=new Set;for(let n of t){if(e.size>=8)break;if(typeof n!="string")continue;let r=n.replace(/\s+/g,"").toLowerCase();r.length<=32&&N.test(r)&&e.add(r)}return e.size>0?[...e]:void 0}var G="/ws/host";var D={hostHandoff:"host_handoff",idleHeartbeat:"idle_heartbeat",binaryFrameV2:"binary_frame_v2",adminTabs:"admin_tabs"};var x={"image/png":".png","image/jpeg":".jpg","image/webp":".webp","image/gif":".gif"},K=Object.keys(x);function J(t){return typeof t=="string"&&Object.hasOwn(x,t)}function W(t,e){switch(t){case"image/png":return e.length>=8&&e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71;case"image/jpeg":return e.length>=3&&e[0]===255&&e[1]===216&&e[2]===255;case"image/webp":return e.length>=12&&e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80;case"image/gif":return e.length>=6&&e[0]===71&&e[1]===73&&e[2]===70&&e[3]===56;default:return!1}}export{k as a,X as b,C as c,T as d,R as e,O as f,U as g,z as h,G as i,D as j,x as k,J as l,W as m,g as n,Y as o,L as p,b as q};