agentix-cli 0.213.3 → 0.215.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 (77) hide show
  1. package/dist/{agent-KUCECPSZ.js → agent-KOKQSRAH.js} +2 -2
  2. package/dist/{board-dashboard-RWX4F43G.js → board-dashboard-NVQUQSWI.js} +3 -3
  3. package/dist/{board-dashboard-RWX4F43G.js.map → board-dashboard-NVQUQSWI.js.map} +1 -1
  4. package/dist/chunk-4BYJN2A3.js +4 -0
  5. package/dist/chunk-4BYJN2A3.js.map +1 -0
  6. package/dist/{chunk-SPXXLPAS.js → chunk-4DCQIHWU.js} +2 -2
  7. package/dist/{chunk-SMZQLUJH.js → chunk-4ZD2C76P.js} +2 -2
  8. package/dist/{chunk-YR6GDF4W.js → chunk-7AFXLWWW.js} +87 -147
  9. package/dist/chunk-7AFXLWWW.js.map +1 -0
  10. package/dist/chunk-7YOLZGB5.js +2 -0
  11. package/dist/chunk-7YOLZGB5.js.map +1 -0
  12. package/dist/chunk-CSC45PA7.js +62 -0
  13. package/dist/chunk-CSC45PA7.js.map +1 -0
  14. package/dist/chunk-GGAEFVXL.js +42 -0
  15. package/dist/chunk-GGAEFVXL.js.map +1 -0
  16. package/dist/chunk-HVMUYEQP.js +4 -0
  17. package/dist/chunk-HVMUYEQP.js.map +1 -0
  18. package/dist/{chunk-SBFMNAJG.js → chunk-JLH73NRM.js} +88 -88
  19. package/dist/chunk-JLH73NRM.js.map +1 -0
  20. package/dist/{chunk-3GWIV2YO.js → chunk-OQNJIIR2.js} +2 -2
  21. package/dist/{chunk-3GWIV2YO.js.map → chunk-OQNJIIR2.js.map} +1 -1
  22. package/dist/{chunk-3327JD6L.js → chunk-Q7Y5VQGX.js} +2 -2
  23. package/dist/{chunk-UNVZUWOY.js → chunk-QMICGPM6.js} +3 -3
  24. package/dist/{chunk-UNVZUWOY.js.map → chunk-QMICGPM6.js.map} +1 -1
  25. package/dist/{chunk-D7B35QCZ.js → chunk-QOGZD6Z3.js} +323 -323
  26. package/dist/chunk-QOGZD6Z3.js.map +1 -0
  27. package/dist/chunk-Z5CMA4JN.js +6 -0
  28. package/dist/chunk-Z5CMA4JN.js.map +1 -0
  29. package/dist/cli.js +1 -1
  30. package/dist/decision-approvals-SWZ4RWFI.js +2 -0
  31. package/dist/{doctor-TK7LVXJ6.js → doctor-GP2KVKWE.js} +2 -2
  32. package/dist/hub-V2AGLA7T.js +2 -0
  33. package/dist/index.d.ts +93 -0
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/{program-GXEVAQRW.js → program-WSGVQTFM.js} +255 -255
  37. package/dist/program-WSGVQTFM.js.map +1 -0
  38. package/dist/{query-runs-AENEZOM6.js → query-runs-2F6KHFBZ.js} +2 -2
  39. package/dist/{registry-D727ZQUP.js → registry-KRU6AWVW.js} +2 -2
  40. package/dist/timers-LAT4ZVXJ.js +2 -0
  41. package/dist/{tool-2VRNH43W.js → tool-ZCSGJ2ZF.js} +9 -9
  42. package/dist/tool-ZCSGJ2ZF.js.map +1 -0
  43. package/dist/wiki-IDLRJ6WL.js +2 -0
  44. package/dist/wiki-enrich-XWLDJAZI.js +2 -0
  45. package/package.json +1 -1
  46. package/dist/chunk-AFRHKA7B.js +0 -2
  47. package/dist/chunk-AFRHKA7B.js.map +0 -1
  48. package/dist/chunk-D7B35QCZ.js.map +0 -1
  49. package/dist/chunk-FR4DTMCA.js +0 -42
  50. package/dist/chunk-FR4DTMCA.js.map +0 -1
  51. package/dist/chunk-HPRLRD4P.js +0 -6
  52. package/dist/chunk-HPRLRD4P.js.map +0 -1
  53. package/dist/chunk-LIY5CHUV.js +0 -4
  54. package/dist/chunk-LIY5CHUV.js.map +0 -1
  55. package/dist/chunk-RMXG5GNW.js +0 -4
  56. package/dist/chunk-RMXG5GNW.js.map +0 -1
  57. package/dist/chunk-SBFMNAJG.js.map +0 -1
  58. package/dist/chunk-YR6GDF4W.js.map +0 -1
  59. package/dist/decision-approvals-NJS2ARAF.js +0 -2
  60. package/dist/hub-PPQGFC35.js +0 -2
  61. package/dist/program-GXEVAQRW.js.map +0 -1
  62. package/dist/timers-KK7GF77Y.js +0 -2
  63. package/dist/tool-2VRNH43W.js.map +0 -1
  64. package/dist/wiki-FP4JMCYP.js +0 -2
  65. package/dist/wiki-enrich-3SPIVYSG.js +0 -2
  66. /package/dist/{agent-KUCECPSZ.js.map → agent-KOKQSRAH.js.map} +0 -0
  67. /package/dist/{chunk-SPXXLPAS.js.map → chunk-4DCQIHWU.js.map} +0 -0
  68. /package/dist/{chunk-SMZQLUJH.js.map → chunk-4ZD2C76P.js.map} +0 -0
  69. /package/dist/{chunk-3327JD6L.js.map → chunk-Q7Y5VQGX.js.map} +0 -0
  70. /package/dist/{decision-approvals-NJS2ARAF.js.map → decision-approvals-SWZ4RWFI.js.map} +0 -0
  71. /package/dist/{doctor-TK7LVXJ6.js.map → doctor-GP2KVKWE.js.map} +0 -0
  72. /package/dist/{hub-PPQGFC35.js.map → hub-V2AGLA7T.js.map} +0 -0
  73. /package/dist/{query-runs-AENEZOM6.js.map → query-runs-2F6KHFBZ.js.map} +0 -0
  74. /package/dist/{registry-D727ZQUP.js.map → registry-KRU6AWVW.js.map} +0 -0
  75. /package/dist/{timers-KK7GF77Y.js.map → timers-LAT4ZVXJ.js.map} +0 -0
  76. /package/dist/{wiki-FP4JMCYP.js.map → wiki-IDLRJ6WL.js.map} +0 -0
  77. /package/dist/{wiki-enrich-3SPIVYSG.js.map → wiki-enrich-XWLDJAZI.js.map} +0 -0
@@ -31,8 +31,8 @@ function run(argv) {
31
31
  `)}function Ee(e){let t=e.run??y;return{async post({title:n,message:r}){let o=e.helper();return o&&await t(o,["notify","--title",n,"--message",r])||await t(N,b(wt(n,r)))?"posted":"failed"},status:()=>J(e.helper(),e.capture??m)}}var ht=["Add-Type -TypeDefinition @'","using System; using System.Runtime.InteropServices;","public static class AgentXIdle {"," [StructLayout(LayoutKind.Sequential)] struct LASTINPUTINFO { public uint cbSize; public uint dwTime; }",' [DllImport("user32.dll")] static extern bool GetLastInputInfo(ref LASTINPUTINFO p);'," public static long Ms() { var i = new LASTINPUTINFO(); i.cbSize = (uint)Marshal.SizeOf(i);"," if (!GetLastInputInfo(ref i)) return -1; return (long)(uint)(Environment.TickCount - (int)i.dwTime); }","}","'@","[AgentXIdle]::Ms()"].join(`
32
32
  `);function St(e){let t=Number(e.trim());return Number.isFinite(t)&&t>=0&&e.trim()!==""?Math.floor(t/1e3):null}function $e(e={}){let t=e.capture??m;return{async seconds(){let n=await t(N,b(ht));return n?St(n):null}}}import{win32 as xt}from"path";function Te(e,t){if(!/^[\w -]+$/.test(e))return null;let n=xt.join(t.media,`${e}.wav`);return t.exists(n)?n:null}function Oe(e){let t=e.run??y;return{async play(n,r){let o=Te(n,e);!o||!(r>0)||await t(N,b(`(New-Object Media.SoundPlayer ${A(o)}).PlaySync()`))},has:n=>Te(n,e)!==null,async names(){try{return e.list(e.media).filter(n=>/\.wav$/i.test(n)).map(n=>n.slice(0,-4)).sort()}catch{return[]}}}}function Ce(e={},t={}){let n=()=>t.helper===void 0?k():t.helper,r=t.media??bt.join(process.env.WINDIR||process.env.SystemRoot||"C:\\Windows","Media"),o=t.exists??Nt,i=t.list??(s=>At(s));return{os:"windows",banner:Ee({run:t.run,capture:t.capture,helper:n}),sound:Oe({run:t.run,media:r,exists:o,list:i}),idle:$e({capture:t.capture}),async describe(){let s=["Tasks, notes and Focus: AgentX has no Windows adapter for these yet."];return n()||s.push("Banners come from Windows PowerShell until the AgentX Windows helper is installed."),{os:"windows",tasks:!1,notes:!1,banner:!0,sound:!0,focus:!1,problems:s}}}}var vt={darwin:Ie,win32:Ce};function z(e={},t={}){if(e.native?.adapter==="none")return _('Turned off: native.adapter is "none".');let n=t.platform??process.platform,r=(t.factories??vt)[n];return r?r(e,t.io??{}):_(`AgentX has no native adapter for ${n} yet.`)}import{existsSync as kt}from"fs";import{homedir as Rt}from"os";import{isAbsolute as Pt}from"path";var Le={banner:!0,sound:!0,soundName:"Glass",volume:.4,quietWaitSeconds:15};function fr(e){return{...Le,...e??{}}}function gr(e,t={}){let n=z({native:t.native},{platform:t.platform,io:{run:t.run,capture:t.capture,helper:t.helper}});return async(r,o)=>{let i=[];if(e.banner&&n.banner&&i.push(n.banner.post({title:r,message:o})),e.sound&&n.sound){let s=n.sound;i.push(It(n.speech,(e.quietWaitSeconds??Le.quietWaitSeconds)*1e3,t.pollMs??500).then(l=>l?s.play(e.soundName,e.volume):void 0))}await Promise.all(i)}}async function It(e,t,n){if(!e||t<=0)return!0;let r=Date.now()+t;for(;;){if(!await e.othersSpeaking())return!0;if(Date.now()>=r)return!1;await new Promise(o=>setTimeout(o,n))}}function yr(e,t,n=process.platform){let r={...e??{}},o=z({},{platform:n});if("banner"in t&&(r.banner=!!t.banner),"sound"in t&&(r.sound=!!t.sound),"soundName"in t){let i=String(t.soundName).trim();if(!(o.sound?o.sound.has(i):/^[\w -]+$/.test(i)))throw new Error(`no system sound named "${i}" on this machine`);r.soundName=i}if("icon"in t){let i=String(t.icon??"").trim().replace(/^~(?=\/)/,Rt());if(!i)delete r.icon;else{if(!Pt(i)||!/\.(png|jpe?g|icns)$/i.test(i))throw new Error("icon must be the full path to a .png, .jpg or .icns file");if(o.banner&&!kt(i))throw new Error(`no icon file at ${i}`);r.icon=i}}if("volume"in t){let i=Number(t.volume);if(!Number.isFinite(i)||i<0||i>1)throw new Error("volume must be between 0 and 1");r.volume=i}return r}import{existsSync as Lt,mkdirSync as Mt,readFileSync as _t,renameSync as Dt,writeFileSync as Wt}from"fs";import{dirname as He,resolve as qt}from"path";oe();Je();oe();var Nr=["owner","agent","person"],Et=36e5,$t=e=>ie.includes(e.state);function Me(e){return t=>!e||e.get(t)?.state!=="active"?null:e.steps(t).find(n=>n.state==="active")?.agentId??null}function V(e,t){return e.state==="waiting_owner"?{group:"owner",who:I}:e.promise&&e.owedTo&&e.owedTo!==I&&!t.isAgent(e.owedTo)?{group:"person",who:e.owedTo}:e.state==="needs_attention"?{group:"owner",who:I}:{group:"agent",who:t.activeStepAgent?.(e.id)??e.agentId}}function Q(e,t,n){return $t(e)?e.state==="needs_attention"?e.attentionReason??"needs attention":e.dueAt!==null?n>e.dueAt?`past its due time (${Tt(e.dueAt)})`:null:n-e.updatedAt>t*Et?`no activity for ${t} h or more`:null:null}function Ar(e,t,n,r){let o={owner:[],agent:[],person:[]};for(let i of e){let s=Q(i,t,n);if(!s)continue;let{group:l,who:a}=V(i,r);o[l].push({request:i,group:l,who:a,why:s})}return o}function br(e,t){return e==="owner"?"you":e==="agent"?`agent ${t}`:`${t} (outside person)`}var Tt=e=>new Date(e).toISOString().slice(0,16).replace("T"," ")+" UTC";function vr(e){if(e==null||e==="")return;let t=typeof e=="number"?e:typeof e=="string"?Date.parse(e.trim()):NaN;return!Number.isFinite(t)||t<=0?"due must be an ISO date (2030-01-31T17:00:00Z) or epoch milliseconds":t}function kr(e){return t=>ne(t,e())}var Ot=10;async function Rr(e,t,n){let r=e.dueForCheck(n.now-n.everyMinutes*6e4,Ot),o=0;return await Promise.all(r.map(async i=>{e.markChecked(i.id,i.verifyState,i.verifyDetail??"",n.now);let s=await t(i.closeWhen,i).catch(l=>({verdict:"unverifiable",detail:String(l?.message??l)}));if(s.verdict==="met"){e.closeVerified(i.id,s.detail,n.now)&&(o++,n.log(`[requests] ${i.id} closed by its check: ${s.detail}`));return}e.markChecked(i.id,s.verdict==="unverifiable"?"unverified":i.verifyState==="failed"?"failed":null,s.detail,n.now)})),{checked:r.length,closed:o}}var We=200,_e=4e3,De="Nothing, just so you know.";function Y(e,t=We){let n=e.headline?e.headline.length>t?`${e.headline.slice(0,t-1)}\u2026`:e.headline:w(e.text,t),r=e.state==="needs_attention"?`Hand it back to ${e.agentId}, or drop it.`:e.state==="waiting_owner"?e.need??(e.question?`Answer: ${w(e.question,150)}`:"Your answer."):e.state==="candidate"||e.state==="in_progress"||e.state==="waiting_other"?e.need??De:De;return{headline:n,need:r,said:qe(e.text)}}function qe(e){return e.replace(/```[\s\S]*?```/g," ").replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(#{1,6}|>|[-*+]|\d+[.)])\s+/gm,"").replace(/[*_~`]+/g,"").replace(/\s+/g," ").trim()}function w(e,t=We){let n=qe(e);if(n.length<=t)return n;let r=n.slice(0,t),o=Math.max(r.lastIndexOf(". "),r.lastIndexOf("? "),r.lastIndexOf("! "));return o>t/2?r.slice(0,o+1):`${r.slice(0,t-1).trimEnd()}\u2026`}function Ct(e){return e.promise||e.dueAt!==null||e.closeWhen?{owedTo:e.owedTo,promise:e.promise,dueAt:e.dueAt,check:e.closeWhen?re(e.closeWhen):null,verifyState:e.verifyState,verifyDetail:e.verifyDetail}:null}function Or(e,t,n,r){let o=n?.get(e.id),i=r?Q(e,r.staleAfterHours,r.now):null,s=t.lastAnswer(e.id),l=s&&s.text.length>_e?`${s.text.slice(0,_e)}
33
33
 
34
- \u2026`:s?.text,a=Y(e);return{...e,summary:a.headline,needed:a.need,textHtml:E(e.text),why:e.state==="waiting_owner"?e.question:e.state==="needs_attention"?e.attentionReason:null,ownerNoteHtml:e.ownerNote?E(e.ownerNote):null,lastAnswer:s?{agentId:s.agentId,at:s.at,html:E(l)}:null,loop:Ct(e),awaitingQa:se(e),stall:r&&i?{...V(e,{isAgent:r.isAgent,activeStepAgent:Me(n)}),why:i}:null,plan:o?{state:o.state,steps:n.steps(e.id).map(c=>({idx:c.idx,name:c.name,kind:c.kind,agentId:c.agentId,state:c.state,approval:c.needsApproval?c.approval:null,evidence:c.evidence,note:c.note,nudges:c.nudges}))}:null}}var Z=3,Ht=30*24*36e5;function Be(e){return qt(e,".agentx","native-mirror.json")}function ee(e){try{let t=JSON.parse(_t(Be(e),"utf-8"));return{...t,items:t?.items&&typeof t.items=="object"?t.items:{}}}catch{return{items:{}}}}function Fe(e,t){let n=Be(e);Lt(He(n))||Mt(He(n),{recursive:!0});let r=`${n}.${process.pid}.tmp`;Wt(r,JSON.stringify(t,null,2)+`
34
+ \u2026`:s?.text,a=Y(e);return{...e,summary:a.headline,needed:a.need,textHtml:E(e.text),why:e.state==="waiting_owner"?e.question:e.state==="needs_attention"?e.attentionReason:null,ownerNoteHtml:e.ownerNote?E(e.ownerNote):null,lastAnswer:s?{agentId:s.agentId,at:s.at,html:E(l)}:null,loop:Ct(e),awaitingQa:se(e),stall:r&&i?{...V(e,{isAgent:r.isAgent,activeStepAgent:Me(n)}),why:i}:null,plan:o?{state:o.state,steps:n.steps(e.id).map(c=>({idx:c.idx,name:c.name,kind:c.kind,agentId:c.agentId,state:c.state,approval:c.needsApproval?c.approval:null,evidence:c.evidence,note:c.note,nudges:c.nudges,waitUntil:c.state==="active"?c.waitUntil:null}))}:null}}var Z=3,Ht=30*24*36e5;function Be(e){return qt(e,".agentx","native-mirror.json")}function ee(e){try{let t=JSON.parse(_t(Be(e),"utf-8"));return{...t,items:t?.items&&typeof t.items=="object"?t.items:{}}}catch{return{items:{}}}}function Fe(e,t){let n=Be(e);Lt(He(n))||Mt(He(n),{recursive:!0});let r=`${n}.${process.pid}.tmp`;Wt(r,JSON.stringify(t,null,2)+`
35
35
  `),Dt(r,n)}var Ft=5*6e4;function Wr(e,t,n=Date.now()){let r=ee(e),o=r.checkedAt?Date.parse(r.checkedAt):NaN;return!r.cards||!(n-o<=Ft)?!1:r.items[`card:${t}`]?.state!=="failed"}var te=24*36e5;function Ue(e,t,n){let r=e+t.dueAfterMinutes*6e4;return new Date(n!==void 0&&Number.isFinite(n)?Math.max(e,Math.min(r,n)):r)}function jt(e,t,n,r){let o=Date.parse(e.expires),i=[w(e.ask,x.ask)];return e.choices?.length&&i.push(...e.choices.map((s,l)=>`${l+1}. ${s}`)),e.recommend&&i.push(`Recommended: ${w(e.recommend,x.recommend)}`),i.push(`Answer: ${n}`,`agentx: card=${e.id}`),{key:`card:${e.id}`,title:w(e.title,x.title),notes:i.join(`
36
36
  `),due:Ue(r,t,o),priority:Number.isFinite(o)&&o-r<=te?"high":"none"}}function Bt(e,t,n,r){let o=[w(e.question||e.text,x.ask),`Asked of ${e.agentId}.`,`Answer: ${n}`,`agentx: request=${e.id}`],i=e.dueAt??void 0;return{key:`request:${e.id}`,title:Y(e,x.title).headline,notes:o.join(`
37
37
  `),due:Ue(r,t,i),priority:i!==void 0&&i-r<=te?"high":"none"}}async function qr(e){let{root:t,settings:n,tasks:r,log:o}=e,i=e.now??Date.now(),s=new Date(i).toISOString(),l={created:0,completed:0,dismissed:0,failed:0},a=ee(t);delete a.lastError;let c=u=>{a.lastError={at:s,message:u}},g=new Map;try{if(n.include.includes("card"))for(let u of e.cards())u.status==="pending"&&Date.parse(u.expires)>i&&g.set(`card:${u.id}`,jt(u,n,e.answerUrl,i));if(n.include.includes("request"))for(let u of e.requests())u.state==="waiting_owner"&&g.set(`request:${u.id}`,Bt(u,n,e.answerUrl,i))}catch(u){return o(`[mirror] could not read what is waiting: ${u?.message??u}`),c(String(u?.message??u)),Fe(t,a),l}let D=!0,h=new Map,Xe=async u=>{if(!h.has(u))try{h.set(u,new Set((await r.listOpen(u)).map(p=>p.id)))}catch(p){o(`[mirror] could not read list "${u}": ${p?.message??p}`),c(String(p?.message??p)),h.set(u,null),D=!1}return h.get(u)};for(let[u,p]of Object.entries(a.items)){if(p.state!=="open"||!p.id)continue;let d=await Xe(p.list);if(d)if(g.has(u))d.has(p.id)||(a.items[u]={...p,state:"dismissed",at:s},l.dismissed++,o(`[mirror] ${u}: its task was ticked off or deleted; it stays on the Desk and is not mirrored again`));else{if(d.has(p.id))try{await r.complete(p.id)}catch(S){o(`[mirror] ${u}: could not complete its task: ${S?.message??S}`),c(String(S?.message??S));continue}a.items[u]={...p,state:"completed",at:s},l.completed++}}let R=null,W="",q=0,v=[];for(let[u,p]of g){let d=a.items[u];if(d&&(d.state==="open"||d.state==="dismissed")||d?.state==="failed"&&d.failures>=Z)continue;if(R===null)try{await r.ensureList(n.list),R=!0}catch(f){o(`[mirror] could not make list "${n.list}": ${f?.message??f}`),W=String(f?.message??f),c(W),R=!1}let S=d?.state==="failed"?d.failures:0;try{if(R===!1)throw new Error(W);let{id:f}=await r.add({list:n.list,title:p.title,notes:p.notes,due:p.due,priority:p.priority});a.items[u]={id:f,list:n.list,state:"open",at:s,createdAt:s,failures:0},l.created++}catch(f){let P=String(f?.message??f);u.startsWith("card:")&&q++;let H=S+1;a.items[u]={list:n.list,state:"failed",at:s,failures:H,lastError:P},c(P),l.failed++,o(`[mirror] ${u}: could not add to Reminders (${H}/${Z}): ${P}`),H===Z&&v.push({title:p.title,message:P})}}q&&o(`[mirror] ${q} card(s) could not be added to Reminders; the Mac popup shows them instead`);let Ge=a.failureToldAt?Date.parse(a.failureToldAt):NaN;if(v.length&&!(i-Ge<te)){let u=v[0],p=v.length>1?` (and ${v.length-1} more)`:"";try{await e.notify("Could not add to Reminders",`${u.title}${p}: ${w(u.message,200)}. Still on the Desk.`),a.failureToldAt=s}catch(d){o(`[mirror] could not tell the owner: ${d?.message??d}`)}}D&&(a.checkedAt=s,a.cards=n.include.includes("card"));for(let[u,p]of Object.entries(a.items))p.state!=="open"&&!g.has(u)&&i-Date.parse(p.at)>Ht&&delete a.items[u];return Fe(t,a),l}var je=5*6e4;function Hr(e,t,n,r,o=Date.now()){let i=ee(e),s=a=>{let c=a?Date.parse(a):NaN;return c>=n&&c<r},l={from:new Date(n).toISOString(),to:new Date(r).toISOString(),raised:0,created:{cards:0,requests:0},missed:[],closedFast:0,tooNew:0};for(let[a,c]of Object.entries(i.items))!c.id||!s(c.createdAt)||(a.startsWith("card:")?l.created.cards++:l.created.requests++);for(let a of t){if(!s(a.created_at))continue;l.raised++;let c=i.items[`card:${a.id}`];if(c?.id)continue;let g=Date.parse(a.created_at);if((a.status==="pending"?NaN:Date.parse(a.decided_at??""))-g<=je){l.closedFast++;continue}if(a.status==="pending"&&o-g<=je){l.tooNew++;continue}let h=c?.state==="failed"?`could not be added (${c.failures}x): ${c.lastError??"unknown error"}`:"no pass reached it";l.missed.push({id:a.id,title:a.title,reason:h})}return l}function Fr(e){let t=[e.closedFast?`closed within 5 min: ${e.closedFast}`:"",e.tooNew?`raised in the last 5 min: ${e.tooNew}`:""].filter(Boolean);return`cards raised ${e.raised} / Reminders created ${e.created.cards+e.created.requests} (${e.created.cards} cards, ${e.created.requests} requests) / missed ${e.missed.length}${t.length?` \xB7 ${t.join(" \xB7 ")}`:""}`}export{Nr as a,Me as b,V as c,Q as d,Ar as e,br as f,Tt as g,vr as h,kr as i,Rr as j,Y as k,w as l,Ct as m,Or as n,$ as o,ce as p,Ve as q,Xt as r,Yt as s,Zt as t,en as u,tn as v,nn as w,rn as x,on as y,sn as z,me as A,an as B,un as C,ln as D,cn as E,st as F,k as G,Se as H,z as I,Le as J,fr as K,gr as L,yr as M,ee as N,Wr as O,qr as P,Hr as Q,Fr as R};
38
- //# sourceMappingURL=chunk-3GWIV2YO.js.map
38
+ //# sourceMappingURL=chunk-OQNJIIR2.js.map