busybits 2.4.1 → 2.6.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 (29) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +18 -0
  3. package/dist/build.json +2 -2
  4. package/dist/cli/busybits.js +45 -0
  5. package/dist/client/bundle/app-9Vl0ffKz.js +24 -0
  6. package/dist/client/bundle/{app-Cn3BvqjA.css → app-BvE-Y-Qm.css} +1 -1
  7. package/dist/client/bundle/{city-DKO2ZZPJ.js → city-D7fv4nex.js} +1 -1
  8. package/dist/client/bundle/{daystats-CqDMjh5a.js → daystats-CIfvcFQr.js} +1 -1
  9. package/dist/client/bundle/{dom-BnYE5zIh.js → dom-DTQ3fgr0.js} +1 -1
  10. package/dist/client/bundle/{en-BD-d_FWo.js → en-ChmFNZf9.js} +2 -2
  11. package/dist/client/bundle/{es-ZgMlZ_LY.js → es-Dxz3P98Y.js} +2 -2
  12. package/dist/client/bundle/{format-CnTSBxgP.js → format-Cq9YWBaH.js} +1 -1
  13. package/dist/client/bundle/{fr-DOSCFvER.js → fr-CINcBINu.js} +2 -2
  14. package/dist/client/bundle/{main-7JfOGPBD.js → main-CIX7XLHO.js} +2 -2
  15. package/dist/client/bundle/{ptypane-DBg26wgg.js → ptypane-BV4OJmMy.js} +1 -1
  16. package/dist/client/bundle/{room-name-Cb8-ffEK.js → room-name-DwJoEQRB.js} +1 -1
  17. package/dist/client/bundle/{simulator-DeHOlOye.js → simulator-mIkQohaY.js} +1 -1
  18. package/dist/client/bundle/world-model-BCuCi4WK.js +1 -0
  19. package/dist/client/bundle/world-stream-BJwcKXw_.js +1 -0
  20. package/dist/client/index.html +1 -1
  21. package/dist/server/index.js +113 -32
  22. package/mod/habblaud/.claude-plugin/plugin.json +1 -1
  23. package/mod/habblaud-mensagens/.claude-plugin/plugin.json +1 -1
  24. package/mod/habblaud-permissoes/.claude-plugin/plugin.json +1 -1
  25. package/mod/habblaud-pi/package.json +1 -1
  26. package/package.json +2 -1
  27. package/dist/client/bundle/app-B_jk_lPZ.js +0 -24
  28. package/dist/client/bundle/world-model-C3GVcyT7.js +0 -1
  29. package/dist/client/bundle/world-stream-DZkepWt9.js +0 -1
@@ -1 +1 @@
1
- import{a as e,s as t}from"./main-7JfOGPBD.js";var n=1e3,r=60*n,i=60*r,a=24*i,o=e(),s=new Intl.NumberFormat(o,{maximumFractionDigits:1}),c=new Intl.NumberFormat(o,{maximumFractionDigits:0}),l=new Intl.NumberFormat(o,{style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:2}),u=new Intl.DateTimeFormat(o,{hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`}),d=new Intl.DateTimeFormat(o,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`}),f=new Intl.DateTimeFormat(o,{weekday:`short`}),p=new Intl.DateTimeFormat(o,{day:`2-digit`,month:`short`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`});function m(e,o){let s=o-e;return!Number.isFinite(s)||s<5*n?t(`agora`):s<r?t(`há {0} s`,[Math.floor(s/n)]):s<i?t(`há {0} min`,[Math.floor(s/r)]):s<a?t(`há {0} h`,[Math.floor(s/i)]):t(`há {0} d`,[Math.floor(s/a)])}function h(e){let t=Math.max(0,e);if(t<r)return`${Math.floor(t/n)} s`;if(t<i)return`${Math.floor(t/r)} min`;if(t<a){let e=Math.floor(t/i),n=Math.floor(t%i/r);return n?`${e} h ${n} min`:`${e} h`}let o=Math.floor(t/a),s=Math.floor(t%a/i);return s?`${o} d ${s} h`:`${o} d`}function g(e){let t=Number.isFinite(e)?Math.max(0,e):0;if(t>=a)return h(t);let r=Math.floor(t/n),i=Math.floor(r/3600),o=Math.floor(r%3600/60),s=String(r%60).padStart(2,`0`);return i>0?`${i}:${String(o).padStart(2,`0`)}:${s}`:`${o}:${s}`}function _(e,n){let i=e-n;return i<=0?t(`agora`):i<r?t(`em menos de 1 min`):`em ${h(i)}`}function v(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function y(e,t){return Math.round((v(e)-v(t))/a)}function b(e,n){if(!Number.isFinite(e)||e<=n)return``;let r=u.format(e),i=y(e,n);return i<=0?t(`às {0}`,[r]):i===1?t(`amanhã às {0}`,[r]):`${f.format(e)}, ${r}`}function x(e){let t=Math.max(0,e);if(t<r)return`${Math.floor(t/n)}s`;if(t<i)return`${Math.floor(t/r)}min`;if(t<a){let e=Math.floor(t/i),n=Math.floor(t%i/r);return n?`${e}h${String(n).padStart(2,`0`)}`:`${e}h`}let o=Math.floor(t/a),s=Math.floor(t%a/i);return s?`${o}d${s}h`:`${o}d`}var S=5*i,C=7*a;function w(e,n,r,i){if(!e)return null;let o=e.resetsAt!==void 0&&Number.isFinite(e.resetsAt)?e.resetsAt:void 0;if(o===void 0?r-n>=i:o<=r)return{pct:null,renewed:!0,reset:t(`renovada`),resetShort:t(`renovada`),summary:t(`renovada depois da última leitura (uso atual desconhecido)`)};let s=j(e.utilization);if(o===void 0)return{pct:s,renewed:!1,reset:``,resetShort:``,summary:t(`{0}% usado`,[s])};let c=o-r,l;if(c<a)l=_(o,r);else{let e=u.format(o);l=y(o,r)===1?t(`amanhã, {0}`,[e]):`${f.format(o)}, ${e}`}let d=b(o,r);return{pct:s,renewed:!1,reset:l,resetShort:x(c),summary:t(`{0}% usado · reinicia {1} ({2})`,[s,d,_(o,r)])}}function T(e,t,n=o){let r=new Intl.DateTimeFormat(n,{hour:`numeric`,minute:`2-digit`}).format(e),i=-y(e,t);return i<=0?r:i<=6?`${new Intl.DateTimeFormat(n,{weekday:`long`}).format(e)} ${r}`:`${new Intl.DateTimeFormat(n,{day:`numeric`,month:`short`}).format(e).replace(/\./g,``)} ${r}`}function E(e,t=!0){return(t?d:u).format(e)}function D(e){return p.format(e)}function O(e){let t=Math.max(0,e);return t<1e3?c.format(t):t<1e6?`${s.format(t/1e3)} k`:`${s.format(t/1e6)} M`}function k(e){return c.format(e)}function A(e){return l.format(e).replace(/ /g,` `)}function j(e){return e===void 0||!Number.isFinite(e)?0:Math.round(Math.min(100,Math.max(0,e)))}function M(e){return e>=80?`crit`:e>=50?`warn`:`ok`}function N(e,t,n){return`${k(e)} ${e===1?t:n}`}function P(e){return e.normalize(`NFD`).replace(/[̀-ͯ]/g,``).toLowerCase().trim()}function F(e){if(!e)return`—`;let t=/^gpt-(\d+(?:\.\d+)?[a-z]?)((?:-[a-z][a-z0-9]*)*)$/i.exec(e);if(t){let e=t[2].split(`-`).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase());return[`GPT-${t[1]}`,...e].join(` `)}let n=/claude-(?:(\d{1,2}(?:-\d{1,2})?)-)?([a-z]+)(?:-(\d{1,2})(?!\d)(?:-(\d{1,2})(?!\d))?)?/i.exec(e);if(!n)return e;let r=n[2].charAt(0).toUpperCase()+n[2].slice(1).toLowerCase(),i=n[1]?n[1].replace(`-`,`.`):n[3]?n[4]?`${n[3]}.${n[4]}`:n[3]:``;return i?`${r} ${i}`:r}var I={default:t(`Padrão (pergunta)`),acceptEdits:t(`Aceita edições`),plan:t(`Modo plano`),bypassPermissions:t(`Sem confirmações`),dontAsk:t(`Não pergunta`),auto:t(`Automático`)};function L(e){return e?I[e]??e:`—`}function R(e){return e.replace(/^\/(?:Users|home)\/[^/]+(?=\/|$)/,`~`).replace(/^[A-Za-z]:\\Users\\[^\\]+(?=\\|$)/,`~`)}export{R as _,D as a,k as c,A as d,P as f,m as g,F as h,E as i,O as l,N as m,C as n,h as o,L as p,y as r,g as s,S as t,T as u,M as v,w as y};
1
+ import{a as e,s as t}from"./main-CIX7XLHO.js";var n=1e3,r=60*n,i=60*r,a=24*i,o=e(),s=new Intl.NumberFormat(o,{maximumFractionDigits:1}),c=new Intl.NumberFormat(o,{maximumFractionDigits:0}),l=new Intl.NumberFormat(o,{style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:2}),u=new Intl.DateTimeFormat(o,{hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`}),d=new Intl.DateTimeFormat(o,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`}),f=new Intl.DateTimeFormat(o,{weekday:`short`}),p=new Intl.DateTimeFormat(o,{day:`2-digit`,month:`short`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`});function m(e,o){let s=o-e;return!Number.isFinite(s)||s<5*n?t(`agora`):s<r?t(`há {0} s`,[Math.floor(s/n)]):s<i?t(`há {0} min`,[Math.floor(s/r)]):s<a?t(`há {0} h`,[Math.floor(s/i)]):t(`há {0} d`,[Math.floor(s/a)])}function h(e){let t=Math.max(0,e);if(t<r)return`${Math.floor(t/n)} s`;if(t<i)return`${Math.floor(t/r)} min`;if(t<a){let e=Math.floor(t/i),n=Math.floor(t%i/r);return n?`${e} h ${n} min`:`${e} h`}let o=Math.floor(t/a),s=Math.floor(t%a/i);return s?`${o} d ${s} h`:`${o} d`}function g(e){let t=Number.isFinite(e)?Math.max(0,e):0;if(t>=a)return h(t);let r=Math.floor(t/n),i=Math.floor(r/3600),o=Math.floor(r%3600/60),s=String(r%60).padStart(2,`0`);return i>0?`${i}:${String(o).padStart(2,`0`)}:${s}`:`${o}:${s}`}function _(e,n){let i=e-n;return i<=0?t(`agora`):i<r?t(`em menos de 1 min`):`em ${h(i)}`}function v(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function y(e,t){return Math.round((v(e)-v(t))/a)}function b(e,n){if(!Number.isFinite(e)||e<=n)return``;let r=u.format(e),i=y(e,n);return i<=0?t(`às {0}`,[r]):i===1?t(`amanhã às {0}`,[r]):`${f.format(e)}, ${r}`}function x(e){let t=Math.max(0,e);if(t<r)return`${Math.floor(t/n)}s`;if(t<i)return`${Math.floor(t/r)}min`;if(t<a){let e=Math.floor(t/i),n=Math.floor(t%i/r);return n?`${e}h${String(n).padStart(2,`0`)}`:`${e}h`}let o=Math.floor(t/a),s=Math.floor(t%a/i);return s?`${o}d${s}h`:`${o}d`}var S=5*i,C=7*a;function w(e,n,r,i){if(!e)return null;let o=e.resetsAt!==void 0&&Number.isFinite(e.resetsAt)?e.resetsAt:void 0;if(o===void 0?r-n>=i:o<=r)return{pct:null,renewed:!0,reset:t(`renovada`),resetShort:t(`renovada`),summary:t(`renovada depois da última leitura (uso atual desconhecido)`)};let s=j(e.utilization);if(o===void 0)return{pct:s,renewed:!1,reset:``,resetShort:``,summary:t(`{0}% usado`,[s])};let c=o-r,l;if(c<a)l=_(o,r);else{let e=u.format(o);l=y(o,r)===1?t(`amanhã, {0}`,[e]):`${f.format(o)}, ${e}`}let d=b(o,r);return{pct:s,renewed:!1,reset:l,resetShort:x(c),summary:t(`{0}% usado · reinicia {1} ({2})`,[s,d,_(o,r)])}}function T(e,t,n=o){let r=new Intl.DateTimeFormat(n,{hour:`numeric`,minute:`2-digit`}).format(e),i=-y(e,t);return i<=0?r:i<=6?`${new Intl.DateTimeFormat(n,{weekday:`long`}).format(e)} ${r}`:`${new Intl.DateTimeFormat(n,{day:`numeric`,month:`short`}).format(e).replace(/\./g,``)} ${r}`}function E(e,t=!0){return(t?d:u).format(e)}function D(e){return p.format(e)}function O(e){let t=Math.max(0,e);return t<1e3?c.format(t):t<1e6?`${s.format(t/1e3)} k`:`${s.format(t/1e6)} M`}function k(e){return c.format(e)}function A(e){return l.format(e).replace(/ /g,` `)}function j(e){return e===void 0||!Number.isFinite(e)?0:Math.round(Math.min(100,Math.max(0,e)))}function M(e){return e>=80?`crit`:e>=50?`warn`:`ok`}function N(e,t,n){return`${k(e)} ${e===1?t:n}`}function P(e){return e.normalize(`NFD`).replace(/[̀-ͯ]/g,``).toLowerCase().trim()}function F(e){if(!e)return`—`;let t=/^gpt-(\d+(?:\.\d+)?[a-z]?)((?:-[a-z][a-z0-9]*)*)$/i.exec(e);if(t){let e=t[2].split(`-`).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase());return[`GPT-${t[1]}`,...e].join(` `)}let n=/claude-(?:(\d{1,2}(?:-\d{1,2})?)-)?([a-z]+)(?:-(\d{1,2})(?!\d)(?:-(\d{1,2})(?!\d))?)?/i.exec(e);if(!n)return e;let r=n[2].charAt(0).toUpperCase()+n[2].slice(1).toLowerCase(),i=n[1]?n[1].replace(`-`,`.`):n[3]?n[4]?`${n[3]}.${n[4]}`:n[3]:``;return i?`${r} ${i}`:r}var I={default:t(`Padrão (pergunta)`),acceptEdits:t(`Aceita edições`),plan:t(`Modo plano`),bypassPermissions:t(`Sem confirmações`),dontAsk:t(`Não pergunta`),auto:t(`Automático`)};function L(e){return e?I[e]??e:`—`}function R(e){return e.replace(/^\/(?:Users|home)\/[^/]+(?=\/|$)/,`~`).replace(/^[A-Za-z]:\\Users\\[^\\]+(?=\\|$)/,`~`)}export{R as _,D as a,k as c,A as d,P as f,m as g,F as h,E as i,O as l,N as m,C as n,h as o,L as p,y as r,g as s,S as t,T as u,M as v,w as y};