agentix-cli 0.166.0 → 0.167.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-UOZT7MWS.js → App-ZV3MJ73U.js} +2 -2
- package/dist/{ChatApp-N7REHHH3.js → ChatApp-GPGF3SVJ.js} +2 -2
- package/dist/{absorb-eval-MT3ZDYBM.js → absorb-eval-IJLOYYIL.js} +2 -2
- package/dist/{agent-SUAQ7EBM.js → agent-4BNF462Q.js} +2 -2
- package/dist/{board-dashboard-4C77NLY5.js → board-dashboard-ZF2FN2K5.js} +4 -4
- package/dist/{chunk-QGKNDGH5.js → chunk-236CUFAC.js} +2 -2
- package/dist/{chunk-B7QHC7N4.js → chunk-2HB6AH4T.js} +2 -2
- package/dist/{chunk-QLJ3OMPL.js → chunk-3H2P5XRF.js} +2 -2
- package/dist/{chunk-BQXKTQCX.js → chunk-4S7JQ7B3.js} +2 -2
- package/dist/{chunk-A2D3PNDA.js → chunk-56I4CDWP.js} +3 -3
- package/dist/chunk-56I4CDWP.js.map +1 -0
- package/dist/{chunk-G3T73GGF.js → chunk-5GJMPB6Q.js} +2 -2
- package/dist/{chunk-7FH2FEFA.js → chunk-7PWM4GYY.js} +2 -2
- package/dist/{chunk-B6GVATMI.js → chunk-CZLUBWNU.js} +3 -3
- package/dist/chunk-CZLUBWNU.js.map +1 -0
- package/dist/{chunk-IJZNM5PS.js → chunk-DPPYNUQW.js} +2 -2
- package/dist/{chunk-33KKV3YU.js → chunk-ECFANHQ5.js} +2 -2
- package/dist/{chunk-YKHK47G5.js → chunk-FIL6QI6N.js} +2 -2
- package/dist/{chunk-64POGFQZ.js → chunk-FSTWXYWA.js} +2 -2
- package/dist/{chunk-AFLZHY5Y.js → chunk-GGQZLFYH.js} +2 -2
- package/dist/{chunk-YQ25AGX6.js → chunk-GVU6YS3Y.js} +2 -2
- package/dist/{chunk-SXKC2LH7.js → chunk-IJT6KKST.js} +2 -2
- package/dist/{chunk-XQ2EFLQW.js → chunk-KDDV3VFJ.js} +2 -2
- package/dist/{chunk-LQTTLXZY.js → chunk-MQFHPGLC.js} +3 -3
- package/dist/{chunk-L7RPH3T7.js → chunk-N5JY7SSX.js} +2 -2
- package/dist/{chunk-XML72AUF.js → chunk-OPCGTZU4.js} +2 -2
- package/dist/{chunk-XJYGMCAV.js → chunk-PHLILSAY.js} +198 -198
- package/dist/chunk-PHLILSAY.js.map +1 -0
- package/dist/{chunk-LM3K7U6H.js → chunk-RDT4NCBI.js} +2 -2
- package/dist/{chunk-7UIK4S6T.js → chunk-RGUQY65H.js} +2 -2
- package/dist/{chunk-APPTSTL5.js → chunk-S3KWNMPJ.js} +2 -2
- package/dist/{chunk-7O43PB6O.js → chunk-SAFOO6XY.js} +2 -2
- package/dist/{chunk-NHWYEIET.js → chunk-SMPADAHT.js} +2 -2
- package/dist/{chunk-JMZNI257.js → chunk-UGPCMA7S.js} +2 -2
- package/dist/{chunk-AE3U4GR6.js → chunk-ZA7DX4A2.js} +6 -6
- package/dist/chunk-ZA7DX4A2.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/{client-6ZHYSQU6.js → client-SQOWAVPJ.js} +2 -2
- package/dist/{config-WCEFYQL4.js → config-7JJZJFLZ.js} +2 -2
- package/dist/{config-mutate-LW366SKL.js → config-mutate-JERIV7AP.js} +2 -2
- package/dist/config-mutator-4IUU4ANZ.js +2 -0
- package/dist/{contributions-MUCJKT73.js → contributions-XSHL4IU5.js} +2 -2
- package/dist/{doctor-2N2MX5YP.js → doctor-TBZE4NNW.js} +2 -2
- package/dist/{follow-up-tool-W64LMQQN.js → follow-up-tool-QC4NXZJT.js} +2 -2
- package/dist/{hub-4ODFNGHL.js → hub-VRESIG2H.js} +2 -2
- package/dist/index.d.ts +23 -1
- package/dist/index.js +1 -1
- package/dist/{program-6YMRDLHO.js → program-KFZOGLFE.js} +203 -203
- package/dist/{program-6YMRDLHO.js.map → program-KFZOGLFE.js.map} +1 -1
- package/dist/{promote-OUSVJZ64.js → promote-BFFD52TZ.js} +2 -2
- package/dist/{query-QVK5EN3P.js → query-MIODGHPL.js} +2 -2
- package/dist/{query-settings-2TNLXEL5.js → query-settings-X4BTVQHH.js} +2 -2
- package/dist/{registry-BYIWNEFL.js → registry-TRWLGN2A.js} +2 -2
- package/dist/{request-planner-7HEHLPA3.js → request-planner-2QGXWCOJ.js} +2 -2
- package/dist/{review-candidates-NJNMSOCX.js → review-candidates-NJVISKTY.js} +2 -2
- package/dist/{routing-HCSXNUOY.js → routing-4AS2E5XG.js} +2 -2
- package/dist/schedule-tool-GGL5SGM6.js +2 -0
- package/dist/{scheduler-74MXJLQS.js → scheduler-S7PRYZNI.js} +2 -2
- package/dist/{seat-CAYDECW2.js → seat-MOPQDOX3.js} +2 -2
- package/dist/{select-QUVE6RN2.js → select-RVIZALFB.js} +2 -2
- package/dist/{set-enabled-BWJN4IVG.js → set-enabled-AWWWMEYU.js} +2 -2
- package/dist/{tool-FZ4UXMON.js → tool-7U4T5ZF7.js} +2 -2
- package/dist/{tool-UC7OZWIB.js → tool-HJQJWJAH.js} +2 -2
- package/dist/{wiki-KNSPJT2O.js → wiki-BLCQBJG3.js} +2 -2
- package/dist/wiki-enrich-U5KPQ6P7.js +2 -0
- package/package.json +1 -1
- package/dist/chunk-A2D3PNDA.js.map +0 -1
- package/dist/chunk-AE3U4GR6.js.map +0 -1
- package/dist/chunk-B6GVATMI.js.map +0 -1
- package/dist/chunk-XJYGMCAV.js.map +0 -1
- package/dist/config-mutator-NRHZ2XH3.js +0 -2
- package/dist/schedule-tool-LJYBLCLV.js +0 -2
- package/dist/wiki-enrich-RVRTAQQF.js +0 -2
- /package/dist/{App-UOZT7MWS.js.map → App-ZV3MJ73U.js.map} +0 -0
- /package/dist/{ChatApp-N7REHHH3.js.map → ChatApp-GPGF3SVJ.js.map} +0 -0
- /package/dist/{absorb-eval-MT3ZDYBM.js.map → absorb-eval-IJLOYYIL.js.map} +0 -0
- /package/dist/{agent-SUAQ7EBM.js.map → agent-4BNF462Q.js.map} +0 -0
- /package/dist/{board-dashboard-4C77NLY5.js.map → board-dashboard-ZF2FN2K5.js.map} +0 -0
- /package/dist/{chunk-QGKNDGH5.js.map → chunk-236CUFAC.js.map} +0 -0
- /package/dist/{chunk-B7QHC7N4.js.map → chunk-2HB6AH4T.js.map} +0 -0
- /package/dist/{chunk-QLJ3OMPL.js.map → chunk-3H2P5XRF.js.map} +0 -0
- /package/dist/{chunk-BQXKTQCX.js.map → chunk-4S7JQ7B3.js.map} +0 -0
- /package/dist/{chunk-G3T73GGF.js.map → chunk-5GJMPB6Q.js.map} +0 -0
- /package/dist/{chunk-7FH2FEFA.js.map → chunk-7PWM4GYY.js.map} +0 -0
- /package/dist/{chunk-IJZNM5PS.js.map → chunk-DPPYNUQW.js.map} +0 -0
- /package/dist/{chunk-33KKV3YU.js.map → chunk-ECFANHQ5.js.map} +0 -0
- /package/dist/{chunk-YKHK47G5.js.map → chunk-FIL6QI6N.js.map} +0 -0
- /package/dist/{chunk-64POGFQZ.js.map → chunk-FSTWXYWA.js.map} +0 -0
- /package/dist/{chunk-AFLZHY5Y.js.map → chunk-GGQZLFYH.js.map} +0 -0
- /package/dist/{chunk-YQ25AGX6.js.map → chunk-GVU6YS3Y.js.map} +0 -0
- /package/dist/{chunk-SXKC2LH7.js.map → chunk-IJT6KKST.js.map} +0 -0
- /package/dist/{chunk-XQ2EFLQW.js.map → chunk-KDDV3VFJ.js.map} +0 -0
- /package/dist/{chunk-LQTTLXZY.js.map → chunk-MQFHPGLC.js.map} +0 -0
- /package/dist/{chunk-L7RPH3T7.js.map → chunk-N5JY7SSX.js.map} +0 -0
- /package/dist/{chunk-XML72AUF.js.map → chunk-OPCGTZU4.js.map} +0 -0
- /package/dist/{chunk-LM3K7U6H.js.map → chunk-RDT4NCBI.js.map} +0 -0
- /package/dist/{chunk-7UIK4S6T.js.map → chunk-RGUQY65H.js.map} +0 -0
- /package/dist/{chunk-APPTSTL5.js.map → chunk-S3KWNMPJ.js.map} +0 -0
- /package/dist/{chunk-7O43PB6O.js.map → chunk-SAFOO6XY.js.map} +0 -0
- /package/dist/{chunk-NHWYEIET.js.map → chunk-SMPADAHT.js.map} +0 -0
- /package/dist/{chunk-JMZNI257.js.map → chunk-UGPCMA7S.js.map} +0 -0
- /package/dist/{client-6ZHYSQU6.js.map → client-SQOWAVPJ.js.map} +0 -0
- /package/dist/{config-WCEFYQL4.js.map → config-7JJZJFLZ.js.map} +0 -0
- /package/dist/{config-mutate-LW366SKL.js.map → config-mutate-JERIV7AP.js.map} +0 -0
- /package/dist/{config-mutator-NRHZ2XH3.js.map → config-mutator-4IUU4ANZ.js.map} +0 -0
- /package/dist/{contributions-MUCJKT73.js.map → contributions-XSHL4IU5.js.map} +0 -0
- /package/dist/{doctor-2N2MX5YP.js.map → doctor-TBZE4NNW.js.map} +0 -0
- /package/dist/{follow-up-tool-W64LMQQN.js.map → follow-up-tool-QC4NXZJT.js.map} +0 -0
- /package/dist/{hub-4ODFNGHL.js.map → hub-VRESIG2H.js.map} +0 -0
- /package/dist/{promote-OUSVJZ64.js.map → promote-BFFD52TZ.js.map} +0 -0
- /package/dist/{query-QVK5EN3P.js.map → query-MIODGHPL.js.map} +0 -0
- /package/dist/{query-settings-2TNLXEL5.js.map → query-settings-X4BTVQHH.js.map} +0 -0
- /package/dist/{registry-BYIWNEFL.js.map → registry-TRWLGN2A.js.map} +0 -0
- /package/dist/{request-planner-7HEHLPA3.js.map → request-planner-2QGXWCOJ.js.map} +0 -0
- /package/dist/{review-candidates-NJNMSOCX.js.map → review-candidates-NJVISKTY.js.map} +0 -0
- /package/dist/{routing-HCSXNUOY.js.map → routing-4AS2E5XG.js.map} +0 -0
- /package/dist/{schedule-tool-LJYBLCLV.js.map → schedule-tool-GGL5SGM6.js.map} +0 -0
- /package/dist/{scheduler-74MXJLQS.js.map → scheduler-S7PRYZNI.js.map} +0 -0
- /package/dist/{seat-CAYDECW2.js.map → seat-MOPQDOX3.js.map} +0 -0
- /package/dist/{select-QUVE6RN2.js.map → select-RVIZALFB.js.map} +0 -0
- /package/dist/{set-enabled-BWJN4IVG.js.map → set-enabled-AWWWMEYU.js.map} +0 -0
- /package/dist/{tool-FZ4UXMON.js.map → tool-7U4T5ZF7.js.map} +0 -0
- /package/dist/{tool-UC7OZWIB.js.map → tool-HJQJWJAH.js.map} +0 -0
- /package/dist/{wiki-KNSPJT2O.js.map → wiki-BLCQBJG3.js.map} +0 -0
- /package/dist/{wiki-enrich-RVRTAQQF.js.map → wiki-enrich-U5KPQ6P7.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{b as o}from"./chunk-OSH2PEBH.js";import"./chunk-QIJLFPWE.js";var e=o(process.versions.node);e&&(console.error(e),process.exit(1));var{buildProgram:s}=await import("./program-
|
|
2
|
+
import{b as o}from"./chunk-OSH2PEBH.js";import"./chunk-QIJLFPWE.js";var e=o(process.versions.node);e&&(console.error(e),process.exit(1));var{buildProgram:s}=await import("./program-KFZOGLFE.js"),{installCliSignalExit:r}=await import("./signal-exit-WL7G3EEZ.js"),{applyConnectAttemptTimeout:i,configPathFromArgv:a,readConnectAttemptTimeout:n}=await import("./net-family-X2P3OVDP.js");r();i(n(process.cwd(),a(process.argv.slice(2))));var t=await s();process.argv.slice(2).length===0?t.outputHelp():t.parse();
|
|
3
3
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=client-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"./chunk-N5JY7SSX.js";import"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{b as fetchAgents,d as fetchCrons,c as fetchProcesses,e as killProcess,a as resolveConn,f as sendTask,g as streamTask};
|
|
2
|
+
//# sourceMappingURL=client-SQOWAVPJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$a as h,Ua as a,Va as b,Wa as c,Xa as d,Ya as e,Za as f,_a as g,ab as i,bb as j,cb as k,db as l,eb as m,fb as n,gb as o,hb as p,ib as q,jb as r,kb as s,lb as t,mb as u,nb as v,ob as w,pb as x,qb as y,rb as z,tb as A}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-
|
|
1
|
+
import{$a as h,Ua as a,Va as b,Wa as c,Xa as d,Ya as e,Za as f,_a as g,ab as i,bb as j,cb as k,db as l,eb as m,fb as n,gb as o,hb as p,ib as q,jb as r,kb as s,lb as t,mb as u,nb as v,ob as w,pb as x,qb as y,rb as z,tb as A}from"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";A();export{a as INTEGRATION_KINDS,v as WIKI_CONTRIBUTE_JOB,w as WIKI_CONTRIBUTE_MERGE_JOB,y as WIKI_SUMMARIZE_JOB,o as approvalsConfigSchema,e as callsSchema,c as cameraBotSchema,t as crossFieldProblems,q as daemonConfigSchema,b as eventSubscriptionSchema,r as expandEnvVars,d as isCronExpression,s as loadDaemonConfig,l as membersConfigSchema,g as mergePolicyConfigSchema,k as peopleConfigSchema,j as personSchema,n as qualityReportConfigSchema,m as requestStatusConfigSchema,i as requestsConfigSchema,f as reviewGateConfigSchema,u as validateWorkspaces,p as wallConfigSchema,h as watchersConfigSchema,x as withContributionJobs,z as withSummariesJob};
|
|
2
|
+
//# sourceMappingURL=config-7JJZJFLZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-mutate-
|
|
1
|
+
import{a,b}from"./chunk-2HB6AH4T.js";import"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{a as mutateAgentxConfig,b as writeAgentxConfig};
|
|
2
|
+
//# sourceMappingURL=config-mutate-JERIV7AP.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-5GJMPB6Q.js";import"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{b as applyConfigMutation,a as findConfigPath,d as getAtPath,c as setAtPath,e as unsetAtPath};
|
|
2
|
+
//# sourceMappingURL=config-mutator-4IUU4ANZ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-
|
|
1
|
+
import{a as ee}from"./chunk-3H2P5XRF.js";import"./chunk-ECFANHQ5.js";import{f as Q,k as V}from"./chunk-VJVXEVZ7.js";import{b as O}from"./chunk-PE5V2LI7.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-OWNQ2FD4.js";import{b as X}from"./chunk-KEXBEUSU.js";import"./chunk-MQFHPGLC.js";import"./chunk-JTFCU5LH.js";import"./chunk-DPPYNUQW.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-236CUFAC.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QUFIUXMQ.js";import"./chunk-BERWTVG2.js";import{b as N,c as H}from"./chunk-QOYAX2FT.js";import"./chunk-6QLRRSKU.js";import"./chunk-7I7IEX4S.js";import"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";import{createHash as le}from"crypto";import{existsSync as z,mkdirSync as ne,readdirSync as re,readFileSync as ge,renameSync as se,writeFileSync as pe}from"fs";import{resolve as w}from"path";var _={maxPatches:30,maxCostUsd:.5,maxItems:60},he=12,fe=2e3,me=1500,M=8,U=300,be=12,B="## Checked facts";function S(n){return w(n,"_contributions")}function E(n,r){if(!z(n))return r;try{return JSON.parse(ge(n,"utf-8"))}catch(t){throw new Error(`${n} is not valid JSON: ${t.message}`)}}function L(n,r){ne(w(n,".."),{recursive:!0});let t=`${n}.${process.pid}.tmp`;pe(t,`${JSON.stringify(r,null,2)}
|
|
2
2
|
`),se(t,n)}function ie(n){return{agents:E(w(S(n),"state.json"),{agents:{}}).agents??{}}}function ye(n){let r=w(S(n),"pending");return z(r)?re(r).filter(t=>t.endsWith(".json")).sort().map(t=>E(w(r,t),null)).filter(t=>!!t):[]}function G(n){return w(S(n),"held.json")}function K(n,r={}){let t=E(G(n),[]);return r.all?t:t.filter(a=>a.status==="held")}function _e(n){let r=w(S(n),"reports");if(!z(r))return null;let t=re(r).filter(a=>a.endsWith(".json")).sort().pop();return t?E(w(r,t),null):null}function ke(n,r,t,a={}){let o=ie(r).agents[t],c=a.now??Date.now(),e=a.since??o?.lastRunAt??new Date(c-864e5).toISOString(),d=e.slice(0,10),u=new Set(o?.processed??[]),s=[];for(let g of n.getAgentEntries(t))g.date<d||u.has(g.id)||s.push({id:g.id,at:g.date,kind:"chat",title:[g.source,g.sourceContext].filter(Boolean).join(" \xB7 "),text:g.content});if(a.db){let g=Date.parse(e);for(let l of V(a.db,{agentId:t,since:Number.isFinite(g)?g:void 0,limit:500})){if(l.status==="in-flight"||u.has(l.taskId))continue;let k=(Q(a.db,l.taskId)?.steps??[]).filter(b=>b.name==="tool_use"||b.action).slice(0,be).map(b=>`- ${b.action??b.name}${b.inputSummary?` ${x(b.inputSummary,160)}`:""}${b.outputSummary?` \u2192 ${x(b.outputSummary,240)}`:""}${b.error?` \u2717 ${x(b.error,120)}`:""}`),y=[`Request: ${x(l.originalMessage??l.messagePreview??"",600)}`,k.length?`Tool calls:
|
|
3
3
|
${k.join(`
|
|
4
4
|
`)}`:"",l.finalResponse?`Reply: ${x(l.finalResponse,800)}`:""].filter(Boolean).join(`
|
|
@@ -54,4 +54,4 @@ _Sources: ${t.sources.join("; ")}._`,a);return n.writeArticle(r,{title:t.title,.
|
|
|
54
54
|
`).replace(/\n{3,}/g,`
|
|
55
55
|
|
|
56
56
|
`).trim(),superseded:d}}function Ce(n){let r=n.previous?` (previously: ${n.previous})`:"";return`- **${n.attribute}:** ${n.value} \u2014 ${n.source}; checked ${n.checkedAt.slice(0,10)} by ${n.by}${r}`}function Re(n){let r=n.match(/^- \*\*.+?:\*\* (.*?) — .*?; checked (\S+) by \S+(?: \(previously: (.*)\))?$/);return r?{value:r[1],checkedAt:r[2],...r[3]?{previous:r[3]}:{}}:void 0}function J(n,r){return`contribution:${n}@${r.slice(0,10)}`}var Te={person:"people",project:"projects",place:"places",concept:"concepts",event:"events",decision:"decisions",pattern:"patterns"};function de(n,r,t){let a=r.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"").slice(0,60)||"page",o=t?Te[t]:"contributions",c=`${o}/${a}.md`;for(let e=2;n.readArticle(c);e++)c=`${o}/${a}-${e}.md`;return c}export{_ as DEFAULT_CONTRIBUTION_LIMITS,B as FACTS_HEADING,ue as applyFactLines,De as approveHeld,xe as buildContributionPrompt,S as contributionsDir,_e as latestReport,K as listHeld,ye as listPendingBatches,Be as mergeContributions,W as pageKey,Ae as parseContributionPatches,ke as pendingWork,Se as possibleDuplicate,Fe as rejectHeld,ce as replaceOnce,Me as runContribution};
|
|
57
|
-
//# sourceMappingURL=contributions-
|
|
57
|
+
//# sourceMappingURL=contributions-XSHL4IU5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=doctor-
|
|
1
|
+
import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i}from"./chunk-UGPCMA7S.js";import"./chunk-4S7JQ7B3.js";import"./chunk-IMLAPB7G.js";import"./chunk-LQS27HSV.js";import"./chunk-MNG2AMKZ.js";import"./chunk-QPABR72X.js";import"./chunk-KP7KDLZ2.js";import"./chunk-OSH2PEBH.js";import"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{i as daemonVoiceCheck,b as doctor,g as meshPeerTokenChecks,h as meshTokenChecksFromConfig,a as runDoctorChecks,e as runMirrorChecks,d as runNativeChecks,c as runNotificationChecks,f as runReminderChecks};
|
|
2
|
+
//# sourceMappingURL=doctor-TBZE4NNW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-GVU6YS3Y.js";import"./chunk-RKPAVWXF.js";import"./chunk-S3KWNMPJ.js";import{b as I}from"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import"./chunk-RGUQY65H.js";import"./chunk-5GJMPB6Q.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";var p=t=>typeof t=="string"?t.trim():"";function $(t){return[`Run ${t.runId} "${t.title}" [${t.status}] on step ${t.step}: waiting on ${t.waitingOn}.`,t.tags?.length?`Tags: ${t.tags.join(", ")}`:"",...(t.steps??[]).slice(-8).map(s=>`- ${String(s.at).slice(0,16).replace("T"," ")} ${s.step} ${s.status}${s.note?`: ${s.note}`:""}`)].filter(Boolean).join(`
|
|
2
2
|
`)}async function T(t,c){let s=c.fetch??fetch,m=c.daemonUrl.replace(/\/$/,""),r=(p(t.action)||"list").toLowerCase(),f=c.env??process.env,w=async i=>{let l=await s(`${m}${i}`,{signal:AbortSignal.timeout(1e4)}),n=await l.json().catch(()=>({}));return{ok:l.ok,status:l.status,data:n}};try{if(r==="list"){let e=await w("/follow-up");if(!e.ok)return`Error: ${e.data?.error||`HTTP ${e.status}`}`;let o=e.data.groups??[];return o.length?o.map(d=>[`${d.tag}:`,...d.rows.map(a=>`- ${a.runId} "${a.title}" on ${a.step}: waiting on ${a.waitingOn} (since ${String(a.since).slice(0,16).replace("T"," ")} UTC)`)].join(`
|
|
3
3
|
`)).join(`
|
|
4
4
|
`):"No follow-up workflows are running."}if(r==="match"){let e=p(t.request)||p(t.title);if(!e)return"Error: match needs `request`: the owner's request in their words.";let o=h(t,f),d=await w(`/follow-up/match?q=${encodeURIComponent(e)}${o?`&agentId=${encodeURIComponent(o.agentId)}`:""}`);if(!d.ok)return`Error: ${d.data?.error||`HTTP ${d.status}`}`;let a=d.data.matches??[];return a.length?["Saved workflows, best fit first (confidence 0-1):",...a.map(u=>`- ${u.workflowId} "${u.title}" (${u.confidence}${u.autoStart?", starts without asking":""}): ${u.steps.map(k=>k.id).join(" \u2192 ")}`),'Start one with {action:"start", workflowId:"<id>", title:"\u2026", tags:["client:<name>"]}. Run its steps through the workflow, not by hand.'].join(`
|
|
5
5
|
`):"No saved workflow fits. If the request has several steps, build one: start with title and steps."}if(r==="status"){let e=p(t.runId);if(!e)return"Error: status needs runId.";let o=await w(`/follow-up/${encodeURIComponent(e)}`);return o.ok?$(o.data.run):`Error: ${o.data?.error||`HTTP ${o.status}`}`}let i=h(t,f);if(!i)return"Error: couldn't tell which agent you are. Pass callerAgentId.";let l=await s(`${m}/follow-up`,{method:"POST",headers:{"Content-Type":"application/json",...I(f)},body:JSON.stringify({action:r,agentId:i.agentId,workflowId:t.workflowId,title:t.title,description:t.description,tags:t.tags,inputs:t.inputs,steps:t.steps,edges:t.edges,approval:t.approval,autoStart:t.autoStart,requestId:t.requestId,runId:t.runId,step:t.step,evidence:t.evidence,note:t.note,reason:t.reason,fromRun:t.fromRun,status:t.status}),signal:AbortSignal.timeout(2e4)}),n=await l.json().catch(()=>({}));if(!l.ok)return`Error: ${n?.error||`HTTP ${l.status}`}`;if(r==="start"){let e=n.run;return[`Started run ${e.runId} "${e.title}"${n.built?" (built from the steps you gave; propose it with fromRun to keep it)":""}.`,n.awaitingApproval?"It waits for the owner's approval before the first step.":`It is on step ${e.step}: ${e.waitingOn}.`,"AgentX follows it from here: it starts each step, reminds whoever is slow, and tells the owner when it ends. Do not run its steps by hand.",...n.warning?[`Note: ${n.warning}`]:[]].join(" ")}return r==="plan"?[`Plan recorded on run ${n.run?.runId??t.runId}:`,...(n.plan??[]).map(e=>`- ${e.id} ${e.title}`),'Report each step with {action:"step", runId, step:"<id>", status:"started"|"done"|"failed"}.'].join(`
|
|
6
6
|
`):r==="step"?`Step recorded. ${n.run?$(n.run):""}`.trim():r==="done"?`Step recorded as done. ${n.run?$(n.run):""}`.trim():r==="blocked"?"The step is marked blocked and the owner is told. Nothing more happens on it until it is sorted.":`Saved ${n.workflowId} switched off, and asked the owner (card ${n.cardId}) whether to keep it as a reusable workflow.`}catch(i){return`Error: couldn't reach the daemon (${i?.message??i}).`}}export{T as runWorkflowTool};
|
|
7
|
-
//# sourceMappingURL=follow-up-tool-
|
|
7
|
+
//# sourceMappingURL=follow-up-tool-QC4NXZJT.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=hub-
|
|
1
|
+
import{a}from"./chunk-SAFOO6XY.js";import"./chunk-OPCGTZU4.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-DPPYNUQW.js";import"./chunk-WPNRDEHW.js";import"./chunk-236CUFAC.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QOYAX2FT.js";import"./chunk-6QLRRSKU.js";import"./chunk-7I7IEX4S.js";import"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{a as WikiHub};
|
|
2
|
+
//# sourceMappingURL=hub-VRESIG2H.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1788,17 +1788,22 @@ declare const agentConfigSchema: z.ZodObject<{
|
|
|
1788
1788
|
/** wake only: no wake when the agent was already woken this many times
|
|
1789
1789
|
* in the past hour. */
|
|
1790
1790
|
maxPerHour: z.ZodDefault<z.ZodNumber>;
|
|
1791
|
+
/** wake only: what to do next when this event arrives. Added to the
|
|
1792
|
+
* woken turn's message after the event itself (#1284). */
|
|
1793
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1791
1794
|
}, "strip", z.ZodTypeAny, {
|
|
1792
1795
|
kinds: string[];
|
|
1793
1796
|
delivery: "pull" | "digest" | "wake";
|
|
1794
1797
|
maxPerHour: number;
|
|
1795
1798
|
match?: string | undefined;
|
|
1796
1799
|
agents?: string[] | undefined;
|
|
1800
|
+
prompt?: string | undefined;
|
|
1797
1801
|
nodes?: string[] | undefined;
|
|
1798
1802
|
}, {
|
|
1799
1803
|
kinds: string[];
|
|
1800
1804
|
match?: string | undefined;
|
|
1801
1805
|
agents?: string[] | undefined;
|
|
1806
|
+
prompt?: string | undefined;
|
|
1802
1807
|
nodes?: string[] | undefined;
|
|
1803
1808
|
delivery?: "pull" | "digest" | "wake" | undefined;
|
|
1804
1809
|
maxPerHour?: number | undefined;
|
|
@@ -2008,6 +2013,7 @@ declare const agentConfigSchema: z.ZodObject<{
|
|
|
2008
2013
|
maxPerHour: number;
|
|
2009
2014
|
match?: string | undefined;
|
|
2010
2015
|
agents?: string[] | undefined;
|
|
2016
|
+
prompt?: string | undefined;
|
|
2011
2017
|
nodes?: string[] | undefined;
|
|
2012
2018
|
}[];
|
|
2013
2019
|
integrations: {
|
|
@@ -2166,6 +2172,7 @@ declare const agentConfigSchema: z.ZodObject<{
|
|
|
2166
2172
|
kinds: string[];
|
|
2167
2173
|
match?: string | undefined;
|
|
2168
2174
|
agents?: string[] | undefined;
|
|
2175
|
+
prompt?: string | undefined;
|
|
2169
2176
|
nodes?: string[] | undefined;
|
|
2170
2177
|
delivery?: "pull" | "digest" | "wake" | undefined;
|
|
2171
2178
|
maxPerHour?: number | undefined;
|
|
@@ -2826,17 +2833,22 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
2826
2833
|
/** wake only: no wake when the agent was already woken this many times
|
|
2827
2834
|
* in the past hour. */
|
|
2828
2835
|
maxPerHour: z.ZodDefault<z.ZodNumber>;
|
|
2836
|
+
/** wake only: what to do next when this event arrives. Added to the
|
|
2837
|
+
* woken turn's message after the event itself (#1284). */
|
|
2838
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2829
2839
|
}, "strip", z.ZodTypeAny, {
|
|
2830
2840
|
kinds: string[];
|
|
2831
2841
|
delivery: "pull" | "digest" | "wake";
|
|
2832
2842
|
maxPerHour: number;
|
|
2833
2843
|
match?: string | undefined;
|
|
2834
2844
|
agents?: string[] | undefined;
|
|
2845
|
+
prompt?: string | undefined;
|
|
2835
2846
|
nodes?: string[] | undefined;
|
|
2836
2847
|
}, {
|
|
2837
2848
|
kinds: string[];
|
|
2838
2849
|
match?: string | undefined;
|
|
2839
2850
|
agents?: string[] | undefined;
|
|
2851
|
+
prompt?: string | undefined;
|
|
2840
2852
|
nodes?: string[] | undefined;
|
|
2841
2853
|
delivery?: "pull" | "digest" | "wake" | undefined;
|
|
2842
2854
|
maxPerHour?: number | undefined;
|
|
@@ -3046,6 +3058,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
3046
3058
|
maxPerHour: number;
|
|
3047
3059
|
match?: string | undefined;
|
|
3048
3060
|
agents?: string[] | undefined;
|
|
3061
|
+
prompt?: string | undefined;
|
|
3049
3062
|
nodes?: string[] | undefined;
|
|
3050
3063
|
}[];
|
|
3051
3064
|
integrations: {
|
|
@@ -3204,6 +3217,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
3204
3217
|
kinds: string[];
|
|
3205
3218
|
match?: string | undefined;
|
|
3206
3219
|
agents?: string[] | undefined;
|
|
3220
|
+
prompt?: string | undefined;
|
|
3207
3221
|
nodes?: string[] | undefined;
|
|
3208
3222
|
delivery?: "pull" | "digest" | "wake" | undefined;
|
|
3209
3223
|
maxPerHour?: number | undefined;
|
|
@@ -9619,6 +9633,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
9619
9633
|
maxPerHour: number;
|
|
9620
9634
|
match?: string | undefined;
|
|
9621
9635
|
agents?: string[] | undefined;
|
|
9636
|
+
prompt?: string | undefined;
|
|
9622
9637
|
nodes?: string[] | undefined;
|
|
9623
9638
|
}[];
|
|
9624
9639
|
integrations: {
|
|
@@ -10865,6 +10880,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
10865
10880
|
kinds: string[];
|
|
10866
10881
|
match?: string | undefined;
|
|
10867
10882
|
agents?: string[] | undefined;
|
|
10883
|
+
prompt?: string | undefined;
|
|
10868
10884
|
nodes?: string[] | undefined;
|
|
10869
10885
|
delivery?: "pull" | "digest" | "wake" | undefined;
|
|
10870
10886
|
maxPerHour?: number | undefined;
|
|
@@ -13402,7 +13418,10 @@ interface FriendlyError {
|
|
|
13402
13418
|
/** Machine-readable error category for routing / retries. */
|
|
13403
13419
|
kind: "out_of_credits" | "overage_disabled" | "usage_cap"
|
|
13404
13420
|
/** An agent or the fleet reached its AgentX monthly budget (#1162). */
|
|
13405
|
-
| "budget_cap"
|
|
13421
|
+
| "budget_cap"
|
|
13422
|
+
/** A cold dispatch held by the plan window, overage gate or local
|
|
13423
|
+
* dispatch cap; it goes through once the window frees up (#1284). */
|
|
13424
|
+
| "dispatch_hold" | "auth" | "permission" | "rate_limit" | "overloaded" | "context_too_large" | "invalid_request" | "upstream_api" | "timeout" | "cancelled" | "interrupted"
|
|
13406
13425
|
/** Ended by a stop signal; its resume plan is saved (#857). */
|
|
13407
13426
|
| "stopped" | "unknown";
|
|
13408
13427
|
/** Whether this error is transient — a retry has a reasonable chance of succeeding. */
|
|
@@ -17377,6 +17396,9 @@ declare class AgentRegistry {
|
|
|
17377
17396
|
* `a2a`, `cron`, `workflow`, …) where no adapter is registered.
|
|
17378
17397
|
*/
|
|
17379
17398
|
private postQueuedResponseToChannel;
|
|
17399
|
+
/** The root a running task works under, when it has one (#1284: an
|
|
17400
|
+
* event the turn emits carries it, so the loop guard holds). */
|
|
17401
|
+
runningTaskRoot(taskId: string): string | undefined;
|
|
17380
17402
|
/** The agent running `taskId` right now, or null once it has finished.
|
|
17381
17403
|
* Lets an HTTP caller that names its task prove which agent it is. */
|
|
17382
17404
|
runningTaskOwner(taskId: string): {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Fa as Tt,Ga as Mt,a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,h as bt}from"./chunk-
|
|
1
|
+
import{Fa as Tt,Ga as Mt,a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,h as bt}from"./chunk-PHLILSAY.js";import"./chunk-56I4CDWP.js";import"./chunk-GTJIKXDB.js";import"./chunk-FIL6QI6N.js";import"./chunk-4S7JQ7B3.js";import"./chunk-VUEQ4SL5.js";import"./chunk-IMLAPB7G.js";import"./chunk-ZVP6GB4G.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-BNOGNRAM.js";import"./chunk-LQS27HSV.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-IJT6KKST.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-6V5JBHUN.js";import"./chunk-2VDO2HEK.js";import"./chunk-JWDJMFU6.js";import"./chunk-5HLD66CW.js";import"./chunk-IS2IWRP7.js";import"./chunk-MNG2AMKZ.js";import"./chunk-X7UQY7CH.js";import"./chunk-QPABR72X.js";import"./chunk-S3KWNMPJ.js";import"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import"./chunk-A5GYG56I.js";import{m as lt,n as ct,o as dt,p as mt,q as pt,ra as yt}from"./chunk-ZA7DX4A2.js";import"./chunk-KDDV3VFJ.js";import"./chunk-MEFPXHQJ.js";import{a as L}from"./chunk-TCC56PYX.js";import{A as D,B as z,C as V,a as ye,b as we,c as Se,d as Ae,e as Ie,f as Oe,g as Ne,h as He,i as je,j as Ue,k as _e,l as I,m as q,n as Be,o as qe,p as Ye,q as O,r as ze,s as Ve,t as Xe,u as x,v as Y,w as Qe,x as Ze,y as et,z as wt}from"./chunk-SMPADAHT.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-6TTGRTDO.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VJVXEVZ7.js";import{s as ut}from"./chunk-RGUQY65H.js";import"./chunk-5GJMPB6Q.js";import"./chunk-3UOTLMXD.js";import"./chunk-BE64IJWM.js";import"./chunk-PE5V2LI7.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-VWTBHLMX.js";import"./chunk-SAFOO6XY.js";import{a as ht}from"./chunk-OPCGTZU4.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-MQFHPGLC.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-DPPYNUQW.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-7PWM4GYY.js";import{j as it,k as rt,l as at}from"./chunk-236CUFAC.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-QUFIUXMQ.js";import"./chunk-AV7T3SYT.js";import"./chunk-TM2TPQKH.js";import"./chunk-BERWTVG2.js";import"./chunk-QOYAX2FT.js";import{a as ke,b as ve,c as xe,d as $e,e as Ce,f as Pe,g as be,h as Te,i as Me,j as Re,l as Ee,m as Ge,o as T,p as W}from"./chunk-6QLRRSKU.js";import{a as m,b as G}from"./chunk-7I7IEX4S.js";import{b as Fe,c as Le,d as A,e as De}from"./chunk-JHCI6XCJ.js";import{a as Ke,b as Je,e as We}from"./chunk-DSYKYZMT.js";import{ib as tt,kb as st,mb as ot,tb as nt}from"./chunk-CZLUBWNU.js";import"./chunk-BRK6M6LA.js";import"./chunk-UEEB3UTU.js";import"./chunk-2QNT5JDS.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";W();G();import{execa as Rt}from"execa";import{existsSync as se,promises as X}from"fs";import S from"path";import ie from"node-fetch";async function Et(o,e){let t=o.split("/");if(t.length<2)throw new Error(`Invalid skill package ID: ${o}. Expected format: owner/repo`);let s=t[0],i=t[1],n=t[2];try{let a=n?`${s}/${i}/${n}`:`${s}/${i}`;await Rt("npx",["-y","skills","add",a],{cwd:e,stdio:"pipe"}),m.success(`Installed skill package: ${o}`);let r=S.resolve(e,".skills",`${s}_${i}`);if(se(r))return await ne(r,o);let d=S.resolve(e,".skills");return se(d)?await ne(d,o):[]}catch{return m.info(`Fetching skills directly from GitHub: ${s}/${i}`),await Gt(s,i,n,e)}}async function Gt(o,e,t,s){let i=[];try{let n=`https://api.github.com/repos/${o}/${e}/git/trees/main?recursive=1`,a=await ie(n);if(!a.ok)throw new Error(`GitHub API error: ${a.status}`);let d=(await a.json()).tree.filter(p=>p.type==="blob"&&p.path.endsWith("SKILL.md"));if(t){let p=d.find(f=>f.path.includes(`/${t}/`)||f.path===`${t}/SKILL.md`);if(p){let f=await oe(o,e,p.path,s);f&&i.push(f)}}else for(let p of d){let f=await oe(o,e,p.path,s);f&&i.push(f)}}catch(n){m.error(`Failed to fetch skills from GitHub: ${n.message}`)}return i}async function oe(o,e,t,s){try{let i=`https://raw.githubusercontent.com/${o}/${e}/main/${t}`,n=await ie(i);if(!n.ok)return null;let a=await n.text(),r=A(a);if(r){r.source="remote",r.packageId=`${o}/${e}`;let d=S.dirname(t),p=S.resolve(s,".skills",`${o}_${e}`,d);await X.mkdir(p,{recursive:!0}),await X.writeFile(S.resolve(p,"SKILL.md"),a),r.path=S.resolve(p,"SKILL.md")}return r}catch{return null}}async function ne(o,e){let t=[],{default:s}=await import("fast-glob"),i=await s.glob("**/SKILL.md",{cwd:o,deep:5});for(let n of i)try{let a=S.resolve(o,n),r=await X.readFile(a,"utf8"),d=A(r);d&&(d.source="remote",d.path=a,d.packageId=e,t.push(d))}catch{}return t}async function At(o,e,t,s,i){let n=["---",`name: ${o}`,`description: ${e}`];if(s?.length){n.push("tags:");for(let a of s)n.push(` - ${a}`)}if(i?.length){n.push("globs:");for(let a of i)n.push(` - ${a}`)}return n.push("---"),`${n.join(`
|
|
2
2
|
`)}
|
|
3
3
|
|
|
4
4
|
${t}`}async function It(o){let{loadLocalSkills:e}=await import("./loader-YFVSSYSL.js");return e(o)}async function Ot(o,e,t,s,i){let a=[{role:"system",content:`You are a skill author for the Agent Skills ecosystem (skills.sh).
|