agentix-cli 0.173.0 → 0.175.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.
- package/dist/{App-2LXSOVIN.js → App-HRSFSBI5.js} +2 -2
- package/dist/{ChatApp-4TRWF5SI.js → ChatApp-KZZ6YWVU.js} +2 -2
- package/dist/{absorb-eval-TF3OMPHG.js → absorb-eval-X7QPMUEZ.js} +2 -2
- package/dist/{adapter-WSN6XAKV.js → adapter-EMCXJRO3.js} +2 -2
- package/dist/{agent-IQUF5TDP.js → agent-EYHO245T.js} +2 -2
- package/dist/{board-dashboard-6VWNYJZ7.js → board-dashboard-CTLHX6WG.js} +840 -420
- package/dist/board-dashboard-CTLHX6WG.js.map +1 -0
- package/dist/{chunk-E6BIV3EM.js → chunk-3LZQWFGM.js} +2 -2
- package/dist/{chunk-UG6S2QED.js → chunk-3VEEW7SP.js} +2 -2
- package/dist/{chunk-KAVZPYK4.js → chunk-46EB6D4T.js} +64 -64
- package/dist/chunk-46EB6D4T.js.map +1 -0
- package/dist/{chunk-SP2JS67T.js → chunk-56Y62EGM.js} +2 -2
- package/dist/{chunk-Z73KECFS.js → chunk-7ZCDBVD3.js} +264 -264
- package/dist/chunk-7ZCDBVD3.js.map +1 -0
- package/dist/{chunk-O2ZDYZXI.js → chunk-AZ7TDLKK.js} +32 -32
- package/dist/{chunk-O2ZDYZXI.js.map → chunk-AZ7TDLKK.js.map} +1 -1
- package/dist/{chunk-B6JE7TKU.js → chunk-BGYR4EPU.js} +2 -2
- package/dist/{chunk-QJPLPN3G.js → chunk-CGZGH52Z.js} +2 -2
- package/dist/{chunk-6W5262KN.js → chunk-IVT5UL6Z.js} +2 -2
- package/dist/{chunk-T3V4CUOO.js → chunk-KEEGZCNJ.js} +2 -2
- package/dist/{chunk-KN2IZ6C3.js → chunk-KNEQTWMO.js} +2 -2
- package/dist/{chunk-5EI44WB7.js → chunk-KNGGBS65.js} +2 -2
- package/dist/{chunk-WMQBY45T.js → chunk-LCFWZO4U.js} +2 -2
- package/dist/{chunk-ZRHDAJS5.js → chunk-LTMAJTP2.js} +2 -2
- package/dist/{chunk-HXINT6DB.js → chunk-NHFRIGYP.js} +2 -2
- package/dist/{chunk-KUMCHMGE.js → chunk-NZRZCDL5.js} +3 -3
- package/dist/{chunk-ZZR34W4V.js → chunk-NZZ3VMUX.js} +2 -2
- package/dist/{chunk-GIPEXI3C.js → chunk-OUKZ4NHL.js} +2 -2
- package/dist/{chunk-NWKTI6AZ.js → chunk-SDLVAU6H.js} +2 -2
- package/dist/{chunk-VNOTN6N5.js → chunk-U6XMXIA7.js} +2 -2
- package/dist/{chunk-IC5CL2DW.js → chunk-UOJNEQF4.js} +2 -2
- package/dist/{chunk-TB752ZN4.js → chunk-UQYHAZGX.js} +2 -2
- package/dist/{chunk-22SO5H73.js → chunk-USKCGOC7.js} +2 -2
- package/dist/{chunk-EJQHTD5U.js → chunk-V26F75GZ.js} +24 -23
- package/dist/chunk-V26F75GZ.js.map +1 -0
- package/dist/{chunk-RY2YN3WA.js → chunk-X3YH6GOI.js} +2 -2
- package/dist/{chunk-Z37662LA.js → chunk-YJ2BOGSB.js} +2 -2
- package/dist/{chunk-VAH526K6.js → chunk-YJGTPW2U.js} +2 -2
- package/dist/{chunk-WS2F726P.js → chunk-YUNNLQBF.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/{client-Y63KZEDJ.js → client-U3YRLY5M.js} +2 -2
- package/dist/{config-GPCTV4AD.js → config-RUSWVRCC.js} +2 -2
- package/dist/{config-mutate-S56W3EGU.js → config-mutate-I7E6KLGG.js} +2 -2
- package/dist/config-mutator-DZRJHWF6.js +2 -0
- package/dist/{contributions-LK72ZY6S.js → contributions-EVS22MET.js} +2 -2
- package/dist/{doctor-DL7MBZXQ.js → doctor-6NDWH2LP.js} +2 -2
- package/dist/{follow-up-tool-CTP5XACV.js → follow-up-tool-RZNVRUQA.js} +2 -2
- package/dist/{hub-WRXWDBUZ.js → hub-3JUD7I7H.js} +2 -2
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/{program-5CHM6EPW.js → program-UMCD7LFG.js} +233 -233
- package/dist/program-UMCD7LFG.js.map +1 -0
- package/dist/{promote-B2QIPGIF.js → promote-VNWRVOWL.js} +2 -2
- package/dist/{query-KMRMTYL6.js → query-CMVHHWE2.js} +2 -2
- package/dist/{query-settings-M3HVXUMQ.js → query-settings-NHKHJTIK.js} +2 -2
- package/dist/{registry-VQCSFMIJ.js → registry-PBGQYAEQ.js} +2 -2
- package/dist/{request-planner-HGGCC3VR.js → request-planner-A5VKSQWQ.js} +2 -2
- package/dist/{review-candidates-OR3GP2SU.js → review-candidates-FGBSO737.js} +2 -2
- package/dist/{routing-47DKYUQW.js → routing-FQILCGHI.js} +2 -2
- package/dist/schedule-tool-YB6XBEUJ.js +2 -0
- package/dist/{scheduler-KL4R5UPC.js → scheduler-LJCOVYSF.js} +2 -2
- package/dist/{seat-FFDCUGCG.js → seat-XXB3ERRK.js} +2 -2
- package/dist/{select-BDZ44G5B.js → select-PF4QRFWX.js} +2 -2
- package/dist/{set-enabled-CX7AOZAU.js → set-enabled-5X7MWSZH.js} +2 -2
- package/dist/{sprint-tool-25JPVUH2.js → sprint-tool-YZJRGNTI.js} +2 -2
- package/dist/{tool-CZCY6ZBQ.js → tool-BJ36R3BG.js} +2 -2
- package/dist/{tool-CMFZK2HQ.js → tool-JWVTXZKH.js} +2 -2
- package/dist/{tool-VMTEK3DF.js → tool-ZTI26AAK.js} +2 -2
- package/dist/{wiki-LMVIRMSR.js → wiki-TV5RG5OW.js} +2 -2
- package/dist/wiki-enrich-5HSWVE3O.js +2 -0
- package/package.json +1 -1
- package/dist/board-dashboard-6VWNYJZ7.js.map +0 -1
- package/dist/chunk-EJQHTD5U.js.map +0 -1
- package/dist/chunk-KAVZPYK4.js.map +0 -1
- package/dist/chunk-Z73KECFS.js.map +0 -1
- package/dist/config-mutator-G2MEPNGH.js +0 -2
- package/dist/program-5CHM6EPW.js.map +0 -1
- package/dist/schedule-tool-LENFAYB6.js +0 -2
- package/dist/wiki-enrich-JS6WC6ER.js +0 -2
- /package/dist/{App-2LXSOVIN.js.map → App-HRSFSBI5.js.map} +0 -0
- /package/dist/{ChatApp-4TRWF5SI.js.map → ChatApp-KZZ6YWVU.js.map} +0 -0
- /package/dist/{absorb-eval-TF3OMPHG.js.map → absorb-eval-X7QPMUEZ.js.map} +0 -0
- /package/dist/{adapter-WSN6XAKV.js.map → adapter-EMCXJRO3.js.map} +0 -0
- /package/dist/{agent-IQUF5TDP.js.map → agent-EYHO245T.js.map} +0 -0
- /package/dist/{chunk-E6BIV3EM.js.map → chunk-3LZQWFGM.js.map} +0 -0
- /package/dist/{chunk-UG6S2QED.js.map → chunk-3VEEW7SP.js.map} +0 -0
- /package/dist/{chunk-SP2JS67T.js.map → chunk-56Y62EGM.js.map} +0 -0
- /package/dist/{chunk-B6JE7TKU.js.map → chunk-BGYR4EPU.js.map} +0 -0
- /package/dist/{chunk-QJPLPN3G.js.map → chunk-CGZGH52Z.js.map} +0 -0
- /package/dist/{chunk-6W5262KN.js.map → chunk-IVT5UL6Z.js.map} +0 -0
- /package/dist/{chunk-T3V4CUOO.js.map → chunk-KEEGZCNJ.js.map} +0 -0
- /package/dist/{chunk-KN2IZ6C3.js.map → chunk-KNEQTWMO.js.map} +0 -0
- /package/dist/{chunk-5EI44WB7.js.map → chunk-KNGGBS65.js.map} +0 -0
- /package/dist/{chunk-WMQBY45T.js.map → chunk-LCFWZO4U.js.map} +0 -0
- /package/dist/{chunk-ZRHDAJS5.js.map → chunk-LTMAJTP2.js.map} +0 -0
- /package/dist/{chunk-HXINT6DB.js.map → chunk-NHFRIGYP.js.map} +0 -0
- /package/dist/{chunk-KUMCHMGE.js.map → chunk-NZRZCDL5.js.map} +0 -0
- /package/dist/{chunk-ZZR34W4V.js.map → chunk-NZZ3VMUX.js.map} +0 -0
- /package/dist/{chunk-GIPEXI3C.js.map → chunk-OUKZ4NHL.js.map} +0 -0
- /package/dist/{chunk-NWKTI6AZ.js.map → chunk-SDLVAU6H.js.map} +0 -0
- /package/dist/{chunk-VNOTN6N5.js.map → chunk-U6XMXIA7.js.map} +0 -0
- /package/dist/{chunk-IC5CL2DW.js.map → chunk-UOJNEQF4.js.map} +0 -0
- /package/dist/{chunk-TB752ZN4.js.map → chunk-UQYHAZGX.js.map} +0 -0
- /package/dist/{chunk-22SO5H73.js.map → chunk-USKCGOC7.js.map} +0 -0
- /package/dist/{chunk-RY2YN3WA.js.map → chunk-X3YH6GOI.js.map} +0 -0
- /package/dist/{chunk-Z37662LA.js.map → chunk-YJ2BOGSB.js.map} +0 -0
- /package/dist/{chunk-VAH526K6.js.map → chunk-YJGTPW2U.js.map} +0 -0
- /package/dist/{chunk-WS2F726P.js.map → chunk-YUNNLQBF.js.map} +0 -0
- /package/dist/{client-Y63KZEDJ.js.map → client-U3YRLY5M.js.map} +0 -0
- /package/dist/{config-GPCTV4AD.js.map → config-RUSWVRCC.js.map} +0 -0
- /package/dist/{config-mutate-S56W3EGU.js.map → config-mutate-I7E6KLGG.js.map} +0 -0
- /package/dist/{config-mutator-G2MEPNGH.js.map → config-mutator-DZRJHWF6.js.map} +0 -0
- /package/dist/{contributions-LK72ZY6S.js.map → contributions-EVS22MET.js.map} +0 -0
- /package/dist/{doctor-DL7MBZXQ.js.map → doctor-6NDWH2LP.js.map} +0 -0
- /package/dist/{follow-up-tool-CTP5XACV.js.map → follow-up-tool-RZNVRUQA.js.map} +0 -0
- /package/dist/{hub-WRXWDBUZ.js.map → hub-3JUD7I7H.js.map} +0 -0
- /package/dist/{promote-B2QIPGIF.js.map → promote-VNWRVOWL.js.map} +0 -0
- /package/dist/{query-KMRMTYL6.js.map → query-CMVHHWE2.js.map} +0 -0
- /package/dist/{query-settings-M3HVXUMQ.js.map → query-settings-NHKHJTIK.js.map} +0 -0
- /package/dist/{registry-VQCSFMIJ.js.map → registry-PBGQYAEQ.js.map} +0 -0
- /package/dist/{request-planner-HGGCC3VR.js.map → request-planner-A5VKSQWQ.js.map} +0 -0
- /package/dist/{review-candidates-OR3GP2SU.js.map → review-candidates-FGBSO737.js.map} +0 -0
- /package/dist/{routing-47DKYUQW.js.map → routing-FQILCGHI.js.map} +0 -0
- /package/dist/{schedule-tool-LENFAYB6.js.map → schedule-tool-YB6XBEUJ.js.map} +0 -0
- /package/dist/{scheduler-KL4R5UPC.js.map → scheduler-LJCOVYSF.js.map} +0 -0
- /package/dist/{seat-FFDCUGCG.js.map → seat-XXB3ERRK.js.map} +0 -0
- /package/dist/{select-BDZ44G5B.js.map → select-PF4QRFWX.js.map} +0 -0
- /package/dist/{set-enabled-CX7AOZAU.js.map → set-enabled-5X7MWSZH.js.map} +0 -0
- /package/dist/{sprint-tool-25JPVUH2.js.map → sprint-tool-YZJRGNTI.js.map} +0 -0
- /package/dist/{tool-CZCY6ZBQ.js.map → tool-BJ36R3BG.js.map} +0 -0
- /package/dist/{tool-CMFZK2HQ.js.map → tool-JWVTXZKH.js.map} +0 -0
- /package/dist/{tool-VMTEK3DF.js.map → tool-ZTI26AAK.js.map} +0 -0
- /package/dist/{wiki-LMVIRMSR.js.map → wiki-TV5RG5OW.js.map} +0 -0
- /package/dist/{wiki-enrich-JS6WC6ER.js.map → wiki-enrich-5HSWVE3O.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as w}from"./chunk-
|
|
1
|
+
import{c as w}from"./chunk-OUKZ4NHL.js";function T(t){let r=1779033703^t.length;for(let s=0;s<t.length;s++)r=Math.imul(r^t.charCodeAt(s),3432918353),r=r<<13|r>>>19;let o=r>>>0;return()=>{o=o+1831565813>>>0;let s=o;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296}}function _(t,r,o){let s=T(o),i=[...t].sort((e,u)=>e.path.localeCompare(u.path));for(let e=i.length-1;e>0;e--){let u=Math.floor(s()*(e+1));[i[e],i[u]]=[i[u],i[e]]}return i.slice(0,Math.max(0,r)).sort((e,u)=>e.path.localeCompare(u.path))}var R=new Set("about after again also because been before being between could does doing during each from have having here into just more most only other over same should some such than that their them then there these they this those through under until very were what when where which while will with would your yours user assistant agent message entry please thanks".split(" "));function k(t){let r=new Set;for(let o of t.toLowerCase().matchAll(/[\p{L}\p{N}][\p{L}\p{N}_-]{3,}/gu))R.has(o[0])||r.add(o[0]);return r}function E(t,r){let o=k(t);if(o.size===0)return 1;let s=k(r),i=0;for(let e of o)s.has(e)&&i++;return i/o.size}var W=.15;function $(t){let r=w(t);return{commits:r.commits,urls:r.urls,numbers:r.numbers}}function j(t,r,o){return t.includes(r)||o.some(s=>s.startsWith(r)||r.startsWith(s))}var y=t=>t.toLowerCase().replace(/\/+$/,"");function N(t,r,o){let s=t.sources.map(a=>r.get(a)).filter(a=>!!a),i=t.sources.filter(a=>!r.has(a)),e=s.filter(a=>k(a.content).size>=5&&E(a.content,t.content)<W).map(a=>a.id),u=[...s.map(a=>`${a.date??""}
|
|
2
2
|
${a.content}`),t.previous??""].join(`
|
|
3
3
|
`),l=u.toLowerCase(),d=$(u),p=new Set(d.urls.map(y)),g=new Set(d.numbers),n=$(t.content),c=[];for(let a of n.commits)j(l,a,d.commits)||c.push(`commit ${a}`);for(let a of n.urls)!p.has(y(a))&&!l.includes(y(a))&&c.push(`link ${a}`);for(let a of n.numbers)/^\d{1,2}$/.test(a)||!g.has(a)&&!l.includes(a)&&c.push(`number ${a}`);let h=[];for(let a of s){let m=$(a.content);if(m.commits.length===0&&m.urls.length===0)continue;let v=o(a.id),S=(v.length>0?v:[t.content]).join(`
|
|
4
4
|
`).toLowerCase(),x=$(S);for(let b of m.commits)j(S,b,x.commits)||h.push({entry:a.id,fact:`commit ${b}`});for(let b of m.urls)S.includes(y(b))||h.push({entry:a.id,fact:`link ${b}`})}return{path:t.path,title:t.title,type:t.type,sources:t.sources.length,missingSources:i,weakSources:e,ungrounded:c,lost:h}}function U(t,r){let o=r.toLowerCase(),s=w(r).commits,i=[];for(let e of t){let u=w(e.content),l=[...u.commits.filter(d=>!j(o,d,s)).map(d=>`commit ${d}`),...u.urls.filter(d=>!o.includes(y(d))).map(d=>`link ${d}`)];l.length>0&&i.push({entry:e.id,facts:l})}return i}var P=new Set("the and for with from into of on in at to by an a".split(" "));function L(t){return new Set((t||"").toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(r=>(r.length>1||/\d/.test(r))&&!P.has(r)&&!R.has(r)))}function M(t,r){if(t.size===0||r.size===0)return 0;let o=0;for(let s of t)r.has(s)&&o++;return o/(t.size+r.size-o)}function D(t,r,o={}){let s=o.titleMin??.75,i=o.sourcesMin??.5,e=t.map(l=>({...l,tt:L(l.title),ss:new Set(l.sources??[])})),u=[];for(let l=0;l<e.length;l++)for(let d=l+1;d<e.length;d++){let p=e[l],g=e[d];if(r&&!r.has(p.path)&&!r.has(g.path))continue;let n=(p.type??"")===(g.type??"")?M(p.tt,g.tt):0;if(n>=s){u.push({a:p.path,b:g.path,reason:"title",score:n});continue}if(p.ss.size>=2&&g.ss.size>=2){let c=M(p.ss,g.ss);c>=i&&u.push({a:p.path,b:g.path,reason:"sources",score:c})}}return u.sort((l,d)=>d.score-l.score||l.a.localeCompare(d.a))}var A=4e3;function J(t,r){let o=r.map(i=>{let e=i.content.length>A?`${i.content.slice(0,A)}
|
|
@@ -33,4 +33,4 @@ Reply with JSON only, no fencing:
|
|
|
33
33
|
{"claims": 0, "supported": 0, "unsupported": [], "contradicted": [], "off_subject": [], "missing": [], "verdict": "good"}`}function z(t){if(!t||typeof t!="object"||Array.isArray(t))return null;let r=t,o=l=>Array.isArray(l)?l.map(d=>String(d)):[],s=l=>typeof l=="number"&&Number.isFinite(l)&&l>=0?Math.round(l):NaN,i=s(r.claims);if(Number.isNaN(i))return null;let e=Math.min(i,Number.isNaN(s(r.supported))?i-o(r.unsupported).length:s(r.supported)),u=r.verdict==="good"||r.verdict==="minor"||r.verdict==="major"?r.verdict:null;return u?{claims:i,supported:Math.max(0,e),unsupported:o(r.unsupported),contradicted:o(r.contradicted),offSubject:o(r.off_subject??r.offSubject),missing:o(r.missing),verdict:u}:null}function I(t,r,o,s=[],i=5,e){let u={};for(let n of t)u[n.type??"untyped"]=(u[n.type??"untyped"]??0)+1;let l=new Set,d=new Set;for(let n of t)for(let c of n.lost)l.add(c.entry),d.add(`${c.entry}|${c.fact}`);let p=new Set(r.flatMap(n=>[n.a,n.b]).filter(n=>t.some(c=>c.path===n))),g={sample:{articles:t.length,seed:o.seed,since:o.since,byType:u},citations:{withSources:t.filter(n=>n.sources>0).length,missingSources:t.reduce((n,c)=>n+c.missingSources.length,0),weakSources:t.reduce((n,c)=>n+c.weakSources.length,0),articlesWithWeak:t.filter(n=>n.weakSources.length>0).length},grounding:{articlesWithUngrounded:t.filter(n=>n.ungrounded.length>0).length,ungroundedFacts:t.reduce((n,c)=>n+c.ungrounded.length,0)},lost:{entriesWithLostFacts:l.size,lostFacts:d.size},duplicates:{pairs:r.length,articlesInPair:p.size},...e?{uncited:{entries:e.entries,withLostFacts:e.lost.length}}:{},examples:{ungrounded:t.filter(n=>n.ungrounded.length>0).slice(0,i).map(n=>({path:n.path,facts:n.ungrounded.slice(0,6)})),lost:t.flatMap(n=>n.lost.map(c=>({path:n.path,...c}))).slice(0,i),weak:t.filter(n=>n.weakSources.length>0).slice(0,i).map(n=>({path:n.path,entries:n.weakSources})),duplicates:r.slice(0,i),uncited:(e?.lost??[]).slice(0,i).map(n=>({entry:n.entry,facts:n.facts.slice(0,4)})),judged:s.filter(n=>n.verdict.verdict!=="good").slice(0,i).map(n=>({path:n.path,verdict:n.verdict.verdict,unsupported:n.verdict.unsupported.slice(0,4),contradicted:n.verdict.contradicted.slice(0,4),offSubject:n.verdict.offSubject,missing:n.verdict.missing.slice(0,4)}))}};if(s.length>0){let n=s.map(a=>a.verdict),c=n.reduce((a,m)=>a+m.claims,0),h=n.reduce((a,m)=>a+m.supported,0);g.judge={judged:n.length,claims:c,supported:h,supportRate:c>0?h/c:1,unsupported:n.reduce((a,m)=>a+m.unsupported.length,0),contradicted:n.reduce((a,m)=>a+m.contradicted.length,0),articlesWithWrongMerge:n.filter(a=>a.offSubject.length>0).length,missingFacts:n.reduce((a,m)=>a+m.missing.length,0),verdicts:{good:n.filter(a=>a.verdict==="good").length,minor:n.filter(a=>a.verdict==="minor").length,major:n.filter(a=>a.verdict==="major").length}}}return g}var f=(t,r)=>r>0?`${Math.round(t/r*100)}%`:"\u2013";function O(t){let r=t.sample.articles,o=["# Wiki absorb scorecard","",`Sample: ${r} articles (seed \`${t.sample.seed}\`${t.sample.since?`, changed since ${t.sample.since}`:""}). Types: ${Object.entries(t.sample.byType).map(([e,u])=>`${e} ${u}`).join(", ")||"\u2013"}.`,"","| Check | Result | Lower is better? |","|---|---|---|",`| Articles citing at least one entry | ${t.citations.withSources}/${r} (${f(t.citations.withSources,r)}) | no |`,`| Cited ids with no entry | ${t.citations.missingSources} | yes |`,`| Articles with a weak citation (entry shares <${Math.round(W*100)}% of its words) | ${t.citations.articlesWithWeak}/${r} (${f(t.citations.articlesWithWeak,r)}) | yes |`,`| Articles with an ungrounded commit, link or number | ${t.grounding.articlesWithUngrounded}/${r} (${f(t.grounding.articlesWithUngrounded,r)}) | yes |`,`| Ungrounded facts | ${t.grounding.ungroundedFacts} | yes |`,`| Commits or links lost from cited entries | ${t.lost.lostFacts} across ${t.lost.entriesWithLostFacts} entries | yes |`,`| Sampled articles in a likely duplicate pair | ${t.duplicates.articlesInPair}/${r} (${f(t.duplicates.articlesInPair,r)}) | yes |`];if(t.uncited&&o.push(`| Entries read in the window but cited by no article | ${t.uncited.entries} | \u2013 |`,`| \u2026of which carry a commit or link no article has | ${t.uncited.withLostFacts} | yes |`),t.judge){let e=t.judge;o.push(`| Judge: claims supported by the cited entries | ${e.supported}/${e.claims} (${f(e.supported,e.claims)}) | no |`,`| Judge: unsupported / contradicted claims | ${e.unsupported} / ${e.contradicted} | yes |`,`| Judge: articles with an off-subject source (wrong merge) | ${e.articlesWithWrongMerge}/${e.judged} (${f(e.articlesWithWrongMerge,e.judged)}) | yes |`,`| Judge: facts missing from the article | ${e.missingFacts} | yes |`,`| Judge verdicts good / minor / major | ${e.verdicts.good} / ${e.verdicts.minor} / ${e.verdicts.major} | \u2013 |`)}let s=t.examples,i=(e,u)=>{u.length!==0&&o.push("",`## ${e}`,"",...u)};return i("Examples: ungrounded facts",s.ungrounded.map(e=>`- \`${e.path}\`: ${e.facts.join("; ")}`)),i("Examples: lost facts",s.lost.map(e=>`- \`${e.path}\` \u2190 entry \`${e.entry}\`: ${e.fact}`)),i("Examples: weak citations",s.weak.map(e=>`- \`${e.path}\`: ${e.entries.map(u=>`\`${u}\``).join(", ")}`)),i("Examples: uncited entries with facts no article has",s.uncited.map(e=>`- \`${e.entry}\`: ${e.facts.join("; ")}`)),i("Examples: likely duplicates",s.duplicates.map(e=>`- \`${e.a}\` \u2194 \`${e.b}\` (${e.reason}, ${e.score.toFixed(2)})`)),i("Examples: judge findings",s.judged.map(e=>{let u=[e.unsupported.length?`unsupported: ${e.unsupported.join(" | ")}`:"",e.contradicted.length?`contradicted: ${e.contradicted.join(" | ")}`:"",e.offSubject.length?`off-subject: ${e.offSubject.join(", ")}`:"",e.missing.length?`missing: ${e.missing.join(" | ")}`:""].filter(Boolean);return`- \`${e.path}\` (${e.verdict}): ${u.join("; ")}`})),o.push("","## Method","","- The sample is drawn with a seeded shuffle from the articles changed in the window, so the same seed and window give the same articles.","- Ungrounded: a commit hash, link or number (three digits or more, or a date) in the article that no cited entry and no earlier version of the article contains.","- Lost: a commit hash or link in a cited entry that no article citing that entry contains.","- Uncited: entries the absorb ledger marks as read in the window that no article cites; those carrying a commit or link that no article on the node has are counted as lost, since absorb will not offer them again.","- Weak citation: a cited entry sharing fewer than 15% of its distinctive words with the article.","- Duplicate: two articles of the same type whose titles share at least 75% of their words, or which share at least half their sources.","- Judge (optional): one model call per article reads the article and its cited entries and lists unsupported, contradicted, off-subject and missing items."),o.join(`
|
|
34
34
|
`)+`
|
|
35
35
|
`}function V(t){if(!t||typeof t!="object")return{};let r=t,o=r.usage??{},s=i=>typeof i=="number"&&Number.isFinite(i)?i:void 0;return{costUsd:s(r.total_cost_usd)??s(r.cost_usd),apiMs:s(r.duration_api_ms),inputTokens:s(o.input_tokens),outputTokens:s(o.output_tokens),cacheReadTokens:s(o.cache_read_input_tokens),cacheWriteTokens:s(o.cache_creation_input_tokens)}}function C(t,r){return t.length===0?0:t[Math.min(t.length-1,Math.floor(r*t.length))]}function Y(t){let r=new Map,o=i=>{let e=i||"(none)",u=r.get(e);return u||r.set(e,u={calls:[],runs:[]}),u};for(let i of t)i.kind==="call"?o(i.label).calls.push(i):i.kind==="run"&&o(i.label).runs.push(i);let s=[];for(let[i,{calls:e,runs:u}]of r){if(e.length===0)continue;let l=e.map(n=>n.wallMs).sort((n,c)=>n-c),d;if(u.length>0)d=u.reduce((n,c)=>n+(Date.parse(c.endedAt)-Date.parse(c.startedAt)),0);else{let n=e.map(h=>Date.parse(h.at)-h.wallMs),c=e.map(h=>Date.parse(h.at));d=Math.max(...c)-Math.min(...n)}let p=e.reduce((n,c)=>n+c.entries,0),g=e.reduce((n,c)=>n+(c.costUsd??0),0);s.push({label:i,calls:e.length,failed:e.filter(n=>n.failed).length,entries:p,articles:e.reduce((n,c)=>n+c.articles,0),refused:e.reduce((n,c)=>n+c.refused,0),heldCited:e.reduce((n,c)=>n+(c.heldCited??0),0),wallMs:d,callMsP50:C(l,.5),callMsP95:C(l,.95),prepMs:e.reduce((n,c)=>n+(c.prepMs??0),0),costUsd:g,costPerEntry:p>0?g/p:0,entriesPerMinute:d>0?p/d*6e4:0,promptChars:e.reduce((n,c)=>n+c.promptChars,0)})}return s.sort((i,e)=>i.label.localeCompare(e.label))}export{T as a,_ as b,k as c,E as d,W as e,N as f,U as g,D as h,A as i,J as j,z as k,I as l,O as m,V as n,Y as o};
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
36
|
+
//# sourceMappingURL=chunk-UOJNEQF4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{d as h}from"./chunk-
|
|
1
|
+
import{d as h}from"./chunk-OUKZ4NHL.js";var d=["main contact","primary contact","point of contact","billing contact","technical contact","decision maker"],f=/[\w.+-]+@[\w-]+(?:\.[\w-]+)+/g,w=/\b(role|title|position|job)\s*\**\s*[::]\s*\**\s*([^\n;|]+)/gi;function L(t,c,e=[]){let l=[c,...e].join(`
|
|
2
2
|
`),a=l.toLowerCase(),i=h(t,l);for(let s of p(t.match(f)??[]))a.includes(s.toLowerCase())||i.push(`email ${s}`);let m=t.toLowerCase();for(let s of d)m.includes(s)&&!a.includes(s)&&i.push(`marker "${s}"`);for(let s of t.matchAll(w)){let n=s[2].replace(/\*+/g,"").trim();n&&!a.includes(n.toLowerCase())&&i.push(`${s[1].toLowerCase()} "${n}"`)}return p(i)}function p(t){return[...new Set(t)]}var $=.9,g=/^\s*(?:wait\b|here(?:'s| is) the (?:updated|modified|patched|revised)|i (?:must|need to|will|should) (?:output|return|write)|(?:okay|ok|sure)[,.!]\s|let me\b|as requested\b)/im;function k(t,c){let e=[],l=t.split(`
|
|
3
3
|
`).filter(o=>o.trim()).length,a=c.split(`
|
|
4
4
|
`).filter(o=>o.trim()).length;l>=5&&a<Math.floor(l*$)&&e.push(`the article shrinks from ${l} to ${a} lines`);let i=c.match(g);i&&!t.match(g)&&e.push(`it contains the model's own commentary ("${i[0].trim().slice(0,40)}")`);let m=o=>{let r=new Map;for(let u of o.split(`
|
|
5
5
|
`))/^#{1,6} /.test(u)&&r.set(u.trim(),(r.get(u.trim())??0)+1);return r},s=m(t);for(let[o,r]of m(c))r>1&&r>(s.get(o)??0)&&e.push(`the heading "${o}" appears ${r} times`);let n=L(t,c);return n.length&&e.push(`it drops ${n.length} fact(s): ${n.slice(0,6).join(", ")}${n.length>6?", \u2026":""}`),e}export{L as a,k as b};
|
|
6
|
-
//# sourceMappingURL=chunk-
|
|
6
|
+
//# sourceMappingURL=chunk-UQYHAZGX.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as He,b as w,c as z,d as qe,e as pe,f as ue,g as N,h as ge,i as O,j as U,n as Fe,o as Ke,p as Ge,q as Je}from"./chunk-XVTD6I34.js";import{e as Be,i as je}from"./chunk-QAWKN2N4.js";import{b as ce}from"./chunk-MTX4UPNB.js";import{a as X,b as Le}from"./chunk-
|
|
1
|
+
import{a as He,b as w,c as z,d as qe,e as pe,f as ue,g as N,h as ge,i as O,j as U,n as Fe,o as Ke,p as Ge,q as Je}from"./chunk-XVTD6I34.js";import{e as Be,i as je}from"./chunk-QAWKN2N4.js";import{b as ce}from"./chunk-MTX4UPNB.js";import{a as X,b as Le}from"./chunk-56Y62EGM.js";import{c as Ue,d as le,e as P,f as de,g as q}from"./chunk-DMCMV4UJ.js";import{lb as Oe,na as Ne}from"./chunk-46EB6D4T.js";import{a as We}from"./chunk-N6VBEITO.js";import{a as Te}from"./chunk-IMLAPB7G.js";import{b as Y}from"./chunk-2VDO2HEK.js";import{c as De,e as _e}from"./chunk-LQE73AZR.js";import{b as Me}from"./chunk-MRIVENBY.js";import{n as se,p as ze}from"./chunk-LQS27HSV.js";import{ga as J}from"./chunk-BGYR4EPU.js";import{a as H,b as G}from"./chunk-YUNNLQBF.js";import{a as Re}from"./chunk-YJGTPW2U.js";import{c as Ie,d as Ee}from"./chunk-OWNQ2FD4.js";import{a as Pe}from"./chunk-ROLSSYXE.js";import{a as Ce}from"./chunk-QUFIUXMQ.js";import{La as Ae,Sa as Lt,Y as ae,Z as $e,ha as Ut,lb as oe,ob as j,pb as Se,yb as ie}from"./chunk-V26F75GZ.js";import{existsSync as F,readFileSync as Ve,writeFileSync as Qe,appendFileSync as Ht,mkdirSync as qt}from"fs";import{dirname as Ft,resolve as M}from"path";import{fileURLToPath as Kt}from"url";import{hostname as Gt}from"os";import{spawn as Jt}from"child_process";function Ye(e,t){let n=e.configExists?e.agentCount===0?"Add your first agent":"Add another agent":"Set up your team",r=`<header class="ax-topbar">
|
|
2
2
|
<div class="ax-topbar__left">
|
|
3
3
|
<div class="ax-brand">
|
|
4
4
|
<span class="ax-brand__mark">AX</span>
|
|
@@ -866,4 +866,4 @@ ${t}=${n}
|
|
|
866
866
|
WHERE person = ? AND state IN (${n.map(()=>"?").join(",")})
|
|
867
867
|
${r}`).all(t,...n,...a).map(i=>({id:i.id,state:i.state,channel:i.channel,agentId:i.agent_id,text:i.text,createdAt:i.created_at})):[]}function to(e,t){return Rt(e,t,ae,"ORDER BY created_at")}function no(e,t,n=50){return Rt(e,t,[...ae,...$e],"ORDER BY created_at DESC, rowid DESC LIMIT ?",Math.max(1,Math.min(n,500)))}Lt();var we="member:",Xn=90,Vn="members",Qn="tailscale-user-login",Zn=400,er=60*60*1e3;function tr(e){let t=e.scopes.find(n=>n.startsWith(we));return t?t.slice(we.length):null}function Dt(e,t){if(!e)return null;let n=t.verify(e),r=n?tr(n):null;return n&&r?{rec:n,personId:r}:null}function co(e,t){let n=e.people().find(s=>s.id===t);if(!n)return{ok:!1,error:`No person "${t}". Add them first: agentx people add ${t} --name "\u2026"`};let{token:r,record:a}=e.tokens.create({name:`${n.name} (machine not paired yet)`,scopes:[`${we}${n.id}`],expiresInDays:Xn}),{code:o,expiresAt:i}=e.codes.create({token:r,tokenId:a.id,name:n.id});return e.members.log({person:n.id,device:a.id,event:"invited"}),{ok:!0,code:o,expiresAt:i,tokenId:a.id,person:n}}var nr=Math.round(De/6e4);function rr(e){return e==="client"?"Your project":"My work"}function po(e){let t=rr(e.person.role),n=e.person.role==="client"?`I use AgentX to keep track of the work I do for you. It has a page for you, "${t}": what you asked us for, and where each request stands.`:`I use AgentX to give our AI agents their jobs. It has a page for you, "${t}": what you asked the agents for, and where each request stands.`;return[`Hi ${e.person.name},`,"",n,"","To open it:","1. Accept the Tailscale share I sent you. Tailscale is a small program that connects your computer to mine, privately.",`2. Open ${e.origin.replace(/\/+$/,"")}/member in Edge or Chrome, give your computer a name and type this code: ${_e(e.code)}`,` The code works once, for ${nr} minutes. If it has stopped working, tell me and I will send you a new one.`,"","I then approve your machine, and the page opens by itself."].join(`
|
|
868
868
|
`)}var ar="The private network says someone else is connecting from this machine. Ask the person who invited you for a new code.",or="Too many machines are waiting for the owner's answer. Try again later.",Tt="That code didn't work. Check it, or ask the person who invited you for a new one.",_t=(e,t)=>{let n=e.headers[t];return(Array.isArray(n)?n[0]:n||"").trim()};function zt(e){let t=e.socket?.remoteAddress||"";return t==="127.0.0.1"||t==="::1"||t==="::ffff:127.0.0.1"}function ir(e){if(!zt(e))return null;let t=_t(e,Qn).toLowerCase();return t?t.slice(0,80):null}function sr(e){let t=e.socket?.remoteAddress||"unknown";if(!zt(e))return t;let n=_t(e,"x-forwarded-for").split(",").pop().trim();return/^[0-9a-fA-F:.]{2,45}$/.test(n)?n:t}function lr(e){return typeof e=="string"?e.replace(/[^\p{L}\p{N} ._'()-]/gu," ").replace(/\s+/g," ").trim().slice(0,60):""}function dr(e){return e.identities.map(Ae).filter(t=>!!t&&t.channel==="tailscale").map(t=>t.value)}async function uo(e,t){let n=Date.now(),r=t.now??Date.now,a=t.log??(b=>console.log(b)),o=sr(e),i=t.limiter.retryAfter(o);if(i>0)return a(`[member] pair-code refused from ${o}: locked out for ${i}s more`),{status:429,body:{error:"too many attempts",retryAfter:i},retryAfter:i};let s=null,l="";try{let b=await Y(e,2048);s=b.code,l=lr(b.machine)}catch{}let d=t.codes.redeem(s),c=d?Dt(d.token,t.tokens):null;if(await pr(n,t.minMs??Zn),!d||!c)return t.limiter.fail(o),a(`[member] pair-code failed from ${o}`),{status:401,body:{error:Tt}};t.limiter.succeed(o);let{rec:f,personId:g}=c,m=t.people().find(b=>b.id===g);if(!m)return t.tokens.revoke(f.id),t.members.log({person:g,device:f.id,event:"refused",address:o,detail:"person no longer listed"}),a(`[member] pair-code for ${g} refused from ${o}: person no longer listed`),{status:403,body:{error:Tt}};let u=ir(e),h=dr(m);if(h.length&&(!u||!h.includes(u)))return t.tokens.revoke(f.id),t.members.log({person:g,device:f.id,event:"refused",address:o,detail:`network login ${u??"missing"}; expected ${h.join(" or ")}`}),a(`[member] ${g}: pairing from ${o} refused: the network says "${u??"nobody"}", expected ${h.join(" or ")}`),{status:403,body:{error:ar}};let C=l||"Unnamed machine",y=m.name.slice(0,40),x=ze(t.root,{title:`New machine for ${y}`,ask:`From ${o}, ${u?`network login ${u}`:"no network login reported"}. Machine name, as typed there: "${C}". Let it see ${y}'s own work?`,recommend:`Yes if ${y} told you they just paired this machine. No if you did not expect it.`,if_silent:"discard",raised_by:Vn},{now:r()});return x.ok?(t.members.add({tokenId:f.id,personId:g,name:C,state:"pending",cardId:x.card.id,address:o,...u?{network:u}:{},createdAt:new Date(r()).toISOString()}),t.members.log({person:g,device:f.id,event:"paired",address:o,detail:C}),a(`[member] ${g} paired "${C}" from ${o}; waiting for the owner (card ${x.card.id})`),{status:200,body:{person:g,name:C,state:"pending"},token:d.token}):(t.tokens.revoke(f.id),t.members.log({person:g,device:f.id,event:"refused",address:o,detail:x.error}),a(`[member] ${g}: pairing from ${o} refused: ${x.error}`),{status:503,body:{error:or}})}var re="this machine is not paired",cr="waiting for the owner to approve this machine";function Mt(e){return e?e.status==="decided"?e.verdict??null:e.status==="expired"?"no":null:null}function go(e,t){return t.state==="pending"&&t.cardId?Mt(se(e,t.cardId)):null}function mo(e,t,n){let r=t.now??Date.now,a=t.log??(c=>console.log(c)),o=Dt(e,t.tokens);if(!o)return{ok:!1,status:401,error:re};let{rec:i,personId:s}=o,l=t.members.byToken(i.id);if(!l||l.state==="removed"||l.personId!==s)return{ok:!1,status:401,error:re};if(t.people&&!t.people().some(c=>c.id===s))return Wt(t,i.id,"person no longer listed"),a(`[member] ${s}: "${l.name}" ended: person no longer listed`),{ok:!1,status:401,error:re};if(l.state==="pending"){let c=l.cardId?se(t.root,l.cardId):null,f=Mt(c);if(f==="yes")l=t.members.update(i.id,{state:"active",approvedAt:new Date(r()).toISOString()})??l,t.members.log({person:s,device:i.id,event:"approved",detail:c?.decided_by}),a(`[member] ${s}: "${l.name}" approved`);else if(f==="no"){let g=c?.status==="expired"?"the owner did not answer in time":"the owner said no";return t.tokens.revoke(i.id),t.members.update(i.id,{state:"removed",removedAt:new Date(r()).toISOString(),removedReason:g}),t.members.log({person:s,device:i.id,event:"refused",detail:g}),a(`[member] ${s}: "${l.name}" refused: ${g}`),{ok:!1,status:401,error:re}}else return{ok:!1,status:403,error:cr,waiting:!0}}let d=l.lastSeenAt?Date.parse(l.lastSeenAt):0;return n&&(r()-d>=er||l.lastAddress!==n)&&(l=t.members.update(i.id,{lastSeenAt:new Date(r()).toISOString(),lastAddress:n})??l,t.members.log({person:s,device:i.id,event:"signed-in",address:n})),{ok:!0,device:l,personId:s,rec:i}}function Wt(e,t,n="removed by the owner"){let r=e.members.byToken(t);if(!r)return null;e.tokens.revoke(t);let a=e.members.update(t,{state:"removed",removedAt:new Date((e.now??Date.now)()).toISOString(),removedReason:n});return e.members.log({person:r.personId,device:t,event:"removed",detail:n}),a}function fo(e,t){return e.members.devices(t).filter(n=>n.state!=="removed").map(n=>Wt(e,n.tokenId,"person removed by the owner")).filter(n=>!!n)}async function pr(e,t){let n=e+t-Date.now();n>0&&await new Promise(r=>setTimeout(r,n))}var Nt=["gitlab","github"];function ur(e,t,n){let r=String(t||"").trim().toLowerCase();if(!Nt.includes(r))throw new Error(`Request status works on ${Nt.join(" and ")}, not on "${t}".`);e.requestStatus=e.requestStatus&&typeof e.requestStatus=="object"?e.requestStatus:{};let a=Array.isArray(e.requestStatus.channels)?e.requestStatus.channels.map(o=>String(o).toLowerCase()):[];return e.requestStatus.channels=n?[...new Set([...a,r])]:a.filter(o=>o!==r),`request status on ${r} is ${n?"on":"off"}`}function bo(e){return Array.isArray(e?.requestStatus?.channels)?e.requestStatus.channels.map(t=>String(t).toLowerCase()):[]}function xo(e){let{summary:t}=X(n=>ur(n,e?.channel,!!e?.enabled));return{summary:t}}var ko="https://myaccount.google.com/apppasswords";function wo(e){let t=e.split("@")[1]?.toLowerCase()??"";if(t==="gmail.com"||t==="googlemail.com")return{imapHost:"imap.gmail.com",imapPort:993,smtpHost:"smtp.gmail.com",smtpPort:465}}function $o(e){let t=e.user&&e.user!==e.address?{user:e.user}:{};return{agent:e.agent,address:e.address,imap:{host:e.imapHost,port:e.imapPort,secure:e.imapPort===993,...t,password:`\${${e.passwordEnv}}`},smtp:{host:e.smtpHost,port:e.smtpPort,secure:e.smtpPort===465},allowFrom:e.allowFrom,send:e.send}}function Ao(e){return`EMAIL_${e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_PASSWORD`}function Co(e){return new Set(Object.entries(e).filter(([,t])=>t?.wiki?.absorb?.enabled===!1).map(([t])=>t))}function Io(e,t){return t.only?{agents:[t.only],skipped:[]}:{agents:e.filter(n=>!t.off.has(n)),skipped:e.filter(n=>t.off.has(n))}}function Eo(e,t){return`absorb is off for this agent (agents.${e}.wiki.absorb.enabled); skipped.${e===t?" It reads the wiki notes inbox, so the inbox was not read.":""} Use --agent ${e} to run it anyway.`}function Po(e,t){if(t){if(!e.wiki?.absorb)return;delete e.wiki.absorb.enabled,Object.keys(e.wiki.absorb).length===0&&delete e.wiki.absorb,Object.keys(e.wiki).length===0&&delete e.wiki;return}e.wiki??={},e.wiki.absorb??={},e.wiki.absorb.enabled=!1}var gr="https://ntfy.sh";function To(e){return{enabled:!!e?.enabled,server:e?.server||gr,topicSet:!!e?.topic,tokenSet:!!e?.token}}function Do(e,t){let n={...e??{}};if("enabled"in t&&(n.enabled=!!t.enabled),"server"in t){let r=String(t.server).trim().replace(/\/+$/,"");if(!/^https?:\/\/\S+$/.test(r))throw new Error("ntfy server must be an http(s) URL");n.server=r}if("topic"in t){let r=String(t.topic).trim();if(!r)throw new Error("ntfy topic cannot be empty");n.topic=r}if("token"in t){let r=String(t.token??"").trim();r?n.token=r:delete n.token}if(n.enabled&&!n.topic)throw new Error("set a topic before enabling ntfy");return n}export{Ze as a,Yt as b,Ar as c,Sr as d,Cr as e,ka as f,Hn as g,Sa as h,Pa as i,Pt as j,Xa as k,Va as l,_r as m,zr as n,cn as o,gn as p,me as q,Mr as r,Wr as s,mn as t,jr as u,Hr as v,qr as w,eo as x,to as y,no as z,Xn as A,co as B,nr as C,rr as D,po as E,sr as F,uo as G,go as H,mo as I,Wt as J,fo as K,Nt as L,ur as M,bo as N,xo as O,ko as P,wo as Q,$o as R,Ao as S,Co as T,Io as U,Eo as V,Po as W,To as X,Do as Y,_n as Z,ua as _,ba as $,xa as aa};
|
|
869
|
-
//# sourceMappingURL=chunk-
|
|
869
|
+
//# sourceMappingURL=chunk-USKCGOC7.js.map
|