agentix-cli 0.172.0 → 0.174.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/README.md +2 -2
- package/dist/{App-56QIEQGH.js → App-DYS5IYTQ.js} +2 -2
- package/dist/{ChatApp-JNWIXMDN.js → ChatApp-ZZHEP2P7.js} +2 -2
- package/dist/{absorb-eval-BYYFZJCC.js → absorb-eval-YMRCIJCC.js} +2 -2
- package/dist/{adapter-YQ37MDPV.js → adapter-YTOLYEJ4.js} +2 -2
- package/dist/{agent-4637FJMD.js → agent-5FQHQ7NG.js} +2 -2
- package/dist/{board-dashboard-DJKRLABN.js → board-dashboard-ORELMK25.js} +469 -347
- package/dist/board-dashboard-ORELMK25.js.map +1 -0
- package/dist/{chunk-WVPFWUR2.js → chunk-2OGM6LGX.js} +2 -2
- package/dist/{chunk-WO4XKOMM.js → chunk-3KHPKKRT.js} +2 -2
- package/dist/{chunk-TAUXWIYB.js → chunk-5OPKQY36.js} +2 -2
- package/dist/{chunk-ES236GV6.js → chunk-6OXJGHWA.js} +2 -2
- package/dist/{chunk-5KVTIFRY.js → chunk-6VJLN66C.js} +2 -2
- package/dist/{chunk-XCYGF4RB.js → chunk-A4L7WH3R.js} +2 -2
- package/dist/{chunk-SP7VFTXO.js → chunk-A6SVCE62.js} +2 -2
- package/dist/chunk-AJ5HMDRW.js +11 -0
- package/dist/chunk-AJ5HMDRW.js.map +1 -0
- package/dist/{chunk-KE3KLMMK.js → chunk-C3RSVAKB.js} +2 -2
- package/dist/{chunk-MY7C6E4Y.js → chunk-DAILRO2V.js} +2 -2
- package/dist/{chunk-PD5BZYBO.js → chunk-DGWLDVU2.js} +2 -2
- package/dist/{chunk-IPHFWU2F.js → chunk-DMLES42J.js} +2 -2
- package/dist/{chunk-35I76HQS.js → chunk-EMIEBF5B.js} +2 -2
- package/dist/{chunk-VD2P4GWU.js → chunk-FRR6DRLY.js} +2 -2
- package/dist/{chunk-NR5IZJYS.js → chunk-H6I42JBS.js} +2 -2
- package/dist/{chunk-NGGEGY5K.js → chunk-ICXHX2QO.js} +16 -16
- package/dist/chunk-ICXHX2QO.js.map +1 -0
- package/dist/{chunk-35R7Y7BT.js → chunk-KZKTVGL7.js} +2 -2
- package/dist/{chunk-FOTAGQEL.js → chunk-LGAZ66CL.js} +2 -2
- package/dist/{chunk-AQGQLVCD.js → chunk-LWMKOWIX.js} +2 -2
- package/dist/{chunk-LB55Q3K4.js → chunk-MABUBCEL.js} +2 -2
- package/dist/{chunk-7FGJOVML.js → chunk-PBEO46ER.js} +2 -2
- package/dist/{chunk-TB3ZEMTC.js → chunk-SMKVNZVI.js} +2 -2
- package/dist/{chunk-I7EO2WXC.js → chunk-T3T4CT3A.js} +2 -2
- package/dist/{chunk-HZXLZIB4.js → chunk-VCGTZS3T.js} +2 -2
- package/dist/chunk-VQRY4IDI.js +4 -0
- package/dist/chunk-VQRY4IDI.js.map +1 -0
- package/dist/{chunk-GALI5ANI.js → chunk-W26TO6HY.js} +3 -3
- package/dist/{chunk-2BJ7NIGG.js → chunk-X3I2VJ5H.js} +2 -2
- package/dist/{chunk-YLQZFV6Y.js → chunk-XJA4ABH4.js} +2 -2
- package/dist/{chunk-7NA5VSQE.js → chunk-XPMDJJI4.js} +277 -273
- package/dist/chunk-XPMDJJI4.js.map +1 -0
- package/dist/{chunk-XUT4RBU6.js → chunk-Y7MYDM4V.js} +2 -2
- package/dist/{chunk-MH55YCUS.js → chunk-YBAGESBG.js} +97 -97
- package/dist/chunk-YBAGESBG.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/client-HZKF3XY6.js +2 -0
- package/dist/{config-IBOY7BGF.js → config-WBW2WCS2.js} +2 -2
- package/dist/config-mutate-YJI2JEMP.js +2 -0
- package/dist/config-mutator-GOYUMGWG.js +2 -0
- package/dist/{contributions-NQ3OQ4O4.js → contributions-HJPRWHSN.js} +2 -2
- package/dist/{doctor-AMX2GRRN.js → doctor-NM45LR6S.js} +2 -2
- package/dist/{follow-up-tool-3XSPNZKM.js → follow-up-tool-S7GBNJE6.js} +2 -2
- package/dist/{grants-4O2VF2YX.js → grants-Z332LOTO.js} +2 -2
- package/dist/hub-QN4HRLGZ.js +2 -0
- package/dist/index.d.ts +115 -55
- package/dist/index.js +1 -1
- package/dist/{note-tool-EZWSB3J3.js → note-tool-ANQWBBZE.js} +2 -2
- package/dist/{program-XKQTHEQ3.js → program-MDS4XDAY.js} +98 -98
- package/dist/program-MDS4XDAY.js.map +1 -0
- package/dist/{promote-4F2H3WEB.js → promote-6BZBQZ2E.js} +2 -2
- package/dist/{query-25FU55U6.js → query-AFQMYQTS.js} +2 -2
- package/dist/{query-settings-5BLTPQQQ.js → query-settings-U32L6542.js} +2 -2
- package/dist/{registry-GROEORK6.js → registry-TRZF4LKY.js} +2 -2
- package/dist/{request-planner-7JLFVL6Y.js → request-planner-PAZEWNOG.js} +2 -2
- package/dist/{review-candidates-MHIKLDT7.js → review-candidates-C5BXFQLG.js} +2 -2
- package/dist/routing-2JCE3J3Q.js +2 -0
- package/dist/schedule-tool-GQ7DMQEV.js +2 -0
- package/dist/scheduler-OLAKDG7M.js +2 -0
- package/dist/{seat-WUEQNCSG.js → seat-G6YNXTEY.js} +2 -2
- package/dist/{select-ASFYQYDU.js → select-3QH2DHIN.js} +2 -2
- package/dist/{set-enabled-6NIDVEZF.js → set-enabled-N4FB3DTD.js} +2 -2
- package/dist/{sprint-tool-APMWCQF3.js → sprint-tool-ZESTW34W.js} +2 -2
- package/dist/{tool-2CKQKDU5.js → tool-CSZO7F77.js} +2 -2
- package/dist/{tool-MKUGBNSW.js → tool-G2DHKUGN.js} +2 -2
- package/dist/{tool-JPSOIPZZ.js → tool-RIUS7A5P.js} +2 -2
- package/dist/wiki-4CT7SXMO.js +2 -0
- package/dist/wiki-enrich-IN7UANOJ.js +2 -0
- package/package.json +1 -1
- package/dist/board-dashboard-DJKRLABN.js.map +0 -1
- package/dist/chunk-7NA5VSQE.js.map +0 -1
- package/dist/chunk-GZIHLADX.js +0 -4
- package/dist/chunk-GZIHLADX.js.map +0 -1
- package/dist/chunk-MH55YCUS.js.map +0 -1
- package/dist/chunk-NGGEGY5K.js.map +0 -1
- package/dist/chunk-PYHR4HXO.js +0 -11
- package/dist/chunk-PYHR4HXO.js.map +0 -1
- package/dist/client-LP4PURY2.js +0 -2
- package/dist/config-mutate-PETOQADF.js +0 -2
- package/dist/config-mutator-2NLZ37LL.js +0 -2
- package/dist/hub-DRCMPJMQ.js +0 -2
- package/dist/program-XKQTHEQ3.js.map +0 -1
- package/dist/routing-ZSGWR6ID.js +0 -2
- package/dist/schedule-tool-2VI5IWZD.js +0 -2
- package/dist/scheduler-J6BGTTMH.js +0 -2
- package/dist/wiki-JR6U5PSV.js +0 -2
- package/dist/wiki-enrich-KFVPA2JG.js +0 -2
- /package/dist/{App-56QIEQGH.js.map → App-DYS5IYTQ.js.map} +0 -0
- /package/dist/{ChatApp-JNWIXMDN.js.map → ChatApp-ZZHEP2P7.js.map} +0 -0
- /package/dist/{absorb-eval-BYYFZJCC.js.map → absorb-eval-YMRCIJCC.js.map} +0 -0
- /package/dist/{adapter-YQ37MDPV.js.map → adapter-YTOLYEJ4.js.map} +0 -0
- /package/dist/{agent-4637FJMD.js.map → agent-5FQHQ7NG.js.map} +0 -0
- /package/dist/{chunk-WVPFWUR2.js.map → chunk-2OGM6LGX.js.map} +0 -0
- /package/dist/{chunk-WO4XKOMM.js.map → chunk-3KHPKKRT.js.map} +0 -0
- /package/dist/{chunk-TAUXWIYB.js.map → chunk-5OPKQY36.js.map} +0 -0
- /package/dist/{chunk-ES236GV6.js.map → chunk-6OXJGHWA.js.map} +0 -0
- /package/dist/{chunk-5KVTIFRY.js.map → chunk-6VJLN66C.js.map} +0 -0
- /package/dist/{chunk-XCYGF4RB.js.map → chunk-A4L7WH3R.js.map} +0 -0
- /package/dist/{chunk-SP7VFTXO.js.map → chunk-A6SVCE62.js.map} +0 -0
- /package/dist/{chunk-KE3KLMMK.js.map → chunk-C3RSVAKB.js.map} +0 -0
- /package/dist/{chunk-MY7C6E4Y.js.map → chunk-DAILRO2V.js.map} +0 -0
- /package/dist/{chunk-PD5BZYBO.js.map → chunk-DGWLDVU2.js.map} +0 -0
- /package/dist/{chunk-IPHFWU2F.js.map → chunk-DMLES42J.js.map} +0 -0
- /package/dist/{chunk-35I76HQS.js.map → chunk-EMIEBF5B.js.map} +0 -0
- /package/dist/{chunk-VD2P4GWU.js.map → chunk-FRR6DRLY.js.map} +0 -0
- /package/dist/{chunk-NR5IZJYS.js.map → chunk-H6I42JBS.js.map} +0 -0
- /package/dist/{chunk-35R7Y7BT.js.map → chunk-KZKTVGL7.js.map} +0 -0
- /package/dist/{chunk-FOTAGQEL.js.map → chunk-LGAZ66CL.js.map} +0 -0
- /package/dist/{chunk-AQGQLVCD.js.map → chunk-LWMKOWIX.js.map} +0 -0
- /package/dist/{chunk-LB55Q3K4.js.map → chunk-MABUBCEL.js.map} +0 -0
- /package/dist/{chunk-7FGJOVML.js.map → chunk-PBEO46ER.js.map} +0 -0
- /package/dist/{chunk-TB3ZEMTC.js.map → chunk-SMKVNZVI.js.map} +0 -0
- /package/dist/{chunk-I7EO2WXC.js.map → chunk-T3T4CT3A.js.map} +0 -0
- /package/dist/{chunk-HZXLZIB4.js.map → chunk-VCGTZS3T.js.map} +0 -0
- /package/dist/{chunk-GALI5ANI.js.map → chunk-W26TO6HY.js.map} +0 -0
- /package/dist/{chunk-2BJ7NIGG.js.map → chunk-X3I2VJ5H.js.map} +0 -0
- /package/dist/{chunk-YLQZFV6Y.js.map → chunk-XJA4ABH4.js.map} +0 -0
- /package/dist/{chunk-XUT4RBU6.js.map → chunk-Y7MYDM4V.js.map} +0 -0
- /package/dist/{client-LP4PURY2.js.map → client-HZKF3XY6.js.map} +0 -0
- /package/dist/{config-IBOY7BGF.js.map → config-WBW2WCS2.js.map} +0 -0
- /package/dist/{config-mutate-PETOQADF.js.map → config-mutate-YJI2JEMP.js.map} +0 -0
- /package/dist/{config-mutator-2NLZ37LL.js.map → config-mutator-GOYUMGWG.js.map} +0 -0
- /package/dist/{contributions-NQ3OQ4O4.js.map → contributions-HJPRWHSN.js.map} +0 -0
- /package/dist/{doctor-AMX2GRRN.js.map → doctor-NM45LR6S.js.map} +0 -0
- /package/dist/{follow-up-tool-3XSPNZKM.js.map → follow-up-tool-S7GBNJE6.js.map} +0 -0
- /package/dist/{grants-4O2VF2YX.js.map → grants-Z332LOTO.js.map} +0 -0
- /package/dist/{hub-DRCMPJMQ.js.map → hub-QN4HRLGZ.js.map} +0 -0
- /package/dist/{note-tool-EZWSB3J3.js.map → note-tool-ANQWBBZE.js.map} +0 -0
- /package/dist/{promote-4F2H3WEB.js.map → promote-6BZBQZ2E.js.map} +0 -0
- /package/dist/{query-25FU55U6.js.map → query-AFQMYQTS.js.map} +0 -0
- /package/dist/{query-settings-5BLTPQQQ.js.map → query-settings-U32L6542.js.map} +0 -0
- /package/dist/{registry-GROEORK6.js.map → registry-TRZF4LKY.js.map} +0 -0
- /package/dist/{request-planner-7JLFVL6Y.js.map → request-planner-PAZEWNOG.js.map} +0 -0
- /package/dist/{review-candidates-MHIKLDT7.js.map → review-candidates-C5BXFQLG.js.map} +0 -0
- /package/dist/{routing-ZSGWR6ID.js.map → routing-2JCE3J3Q.js.map} +0 -0
- /package/dist/{schedule-tool-2VI5IWZD.js.map → schedule-tool-GQ7DMQEV.js.map} +0 -0
- /package/dist/{scheduler-J6BGTTMH.js.map → scheduler-OLAKDG7M.js.map} +0 -0
- /package/dist/{seat-WUEQNCSG.js.map → seat-G6YNXTEY.js.map} +0 -0
- /package/dist/{select-ASFYQYDU.js.map → select-3QH2DHIN.js.map} +0 -0
- /package/dist/{set-enabled-6NIDVEZF.js.map → set-enabled-N4FB3DTD.js.map} +0 -0
- /package/dist/{sprint-tool-APMWCQF3.js.map → sprint-tool-ZESTW34W.js.map} +0 -0
- /package/dist/{tool-2CKQKDU5.js.map → tool-CSZO7F77.js.map} +0 -0
- /package/dist/{tool-MKUGBNSW.js.map → tool-G2DHKUGN.js.map} +0 -0
- /package/dist/{tool-JPSOIPZZ.js.map → tool-RIUS7A5P.js.map} +0 -0
- /package/dist/{wiki-JR6U5PSV.js.map → wiki-4CT7SXMO.js.map} +0 -0
- /package/dist/{wiki-enrich-KFVPA2JG.js.map → wiki-enrich-IN7UANOJ.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-MDS4XDAY.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
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g}from"./chunk-LGAZ66CL.js";import"./chunk-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.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-HZKF3XY6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$a as
|
|
2
|
-
//# sourceMappingURL=config-
|
|
1
|
+
import{$a as f,Wa as a,Xa as b,Ya as c,Za as d,_a as e,ab as g,bb as h,cb as i,db as j,eb as k,fb as l,gb as m,hb as n,ib as o,jb as p,kb as q,lb as r,mb as s,nb as t,ob as u,pb as v,qb as w,rb as x,sb as y,tb as z,ub as A,vb as B,xb as C}from"./chunk-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-QIJLFPWE.js";C();export{a as INTEGRATION_KINDS,x as WIKI_CONTRIBUTE_JOB,y as WIKI_CONTRIBUTE_MERGE_JOB,A as WIKI_SUMMARIZE_JOB,q as approvalsConfigSchema,f as callsSchema,d as cameraBotSchema,v as crossFieldProblems,s as daemonConfigSchema,c as emailAccountSchema,b as eventSubscriptionSchema,t as expandEnvVars,e as isCronExpression,u as loadDaemonConfig,n as membersConfigSchema,i as mergePolicyConfigSchema,m as peopleConfigSchema,l as personSchema,p as qualityReportConfigSchema,o as requestStatusConfigSchema,k as requestsConfigSchema,g as reviewGateConfigSchema,h as trackersConfigSchema,w as validateWorkspaces,r as wallConfigSchema,j as watchersConfigSchema,z as withContributionJobs,B as withSummariesJob};
|
|
2
|
+
//# sourceMappingURL=config-WBW2WCS2.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b}from"./chunk-DMLES42J.js";import"./chunk-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-QIJLFPWE.js";export{a as mutateAgentxConfig,b as writeAgentxConfig};
|
|
2
|
+
//# sourceMappingURL=config-mutate-YJI2JEMP.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-SMKVNZVI.js";import"./chunk-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.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-GOYUMGWG.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-
|
|
1
|
+
import{a as ee}from"./chunk-X3I2VJ5H.js";import"./chunk-EMIEBF5B.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-W26TO6HY.js";import"./chunk-JTFCU5LH.js";import"./chunk-2OGM6LGX.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-6OXJGHWA.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-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.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-HJPRWHSN.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-Y7MYDM4V.js";import"./chunk-5OPKQY36.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-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.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-NM45LR6S.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-H6I42JBS.js";import"./chunk-RKPAVWXF.js";import"./chunk-KZKTVGL7.js";import{b as I}from"./chunk-AJ5HMDRW.js";import"./chunk-KP7KDLZ2.js";import"./chunk-MABUBCEL.js";import"./chunk-SMKVNZVI.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.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-S7GBNJE6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=grants-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-FRR6DRLY.js";import"./chunk-LQS27HSV.js";import"./chunk-MNG2AMKZ.js";import"./chunk-VQRY4IDI.js";import"./chunk-QIJLFPWE.js";export{c as DEFAULT_GRANT_DAYS,a as GUEST_SCOPE_PREFIX,b as JOIN_CARD_BY,h as JOIN_FAILED,d as MAX_GRANT_DAYS,j as NO_GRANT,l as PAUSED,k as WAITING_HOST,s as endGrant,o as grantBrief,u as grantForGuest,e as grantIdOf,n as guestAccess,p as guestTask,g as inviteGuest,i as joinGuest,f as newGrantId,q as pauseGrant,r as resumeGrant,m as settleGrant,t as updateGrant};
|
|
2
|
+
//# sourceMappingURL=grants-Z332LOTO.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-3KHPKKRT.js";import"./chunk-A4L7WH3R.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-2OGM6LGX.js";import"./chunk-WPNRDEHW.js";import"./chunk-6OXJGHWA.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QOYAX2FT.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{a as WikiHub};
|
|
2
|
+
//# sourceMappingURL=hub-QN4HRLGZ.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -6226,8 +6226,8 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6226
6226
|
}, {
|
|
6227
6227
|
enabled?: boolean | undefined;
|
|
6228
6228
|
style?: "card" | "dialog" | undefined;
|
|
6229
|
-
sound?: string | undefined;
|
|
6230
6229
|
voice?: string | undefined;
|
|
6230
|
+
sound?: string | undefined;
|
|
6231
6231
|
timeoutSeconds?: number | undefined;
|
|
6232
6232
|
volume?: number | undefined;
|
|
6233
6233
|
theme?: "system" | "light" | "dark" | undefined;
|
|
@@ -6332,8 +6332,8 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6332
6332
|
popup?: {
|
|
6333
6333
|
enabled?: boolean | undefined;
|
|
6334
6334
|
style?: "card" | "dialog" | undefined;
|
|
6335
|
-
sound?: string | undefined;
|
|
6336
6335
|
voice?: string | undefined;
|
|
6336
|
+
sound?: string | undefined;
|
|
6337
6337
|
timeoutSeconds?: number | undefined;
|
|
6338
6338
|
volume?: number | undefined;
|
|
6339
6339
|
theme?: "system" | "light" | "dark" | undefined;
|
|
@@ -6479,6 +6479,28 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6479
6479
|
/** Where the gate reviews: GitHub pull requests, GitLab merge requests
|
|
6480
6480
|
* (#1292), or both. GitLab needs the GitLab channel and its token. */
|
|
6481
6481
|
forges: z.ZodDefault<z.ZodArray<z.ZodEnum<["github", "gitlab"]>, "many">>;
|
|
6482
|
+
/** The project's own tests, run before the review (#1285), keyed by
|
|
6483
|
+
* "owner/repo". The PR head is checked out in a throwaway worktree of
|
|
6484
|
+
* `checkout`, `command` runs there, and pass/fail lands on the PR as
|
|
6485
|
+
* the status `agentx/tests` and is handed to the reviewer. Only PRs
|
|
6486
|
+
* opened by an account AgentX posts with are run: a signature in the
|
|
6487
|
+
* description is not enough, since anyone can write one. */
|
|
6488
|
+
tests: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6489
|
+
/** A local clone of the repository whose `origin` is the PR's repo. */
|
|
6490
|
+
checkout: z.ZodString;
|
|
6491
|
+
/** Shell command run in the worktree, e.g. "npm ci && npm test". */
|
|
6492
|
+
command: z.ZodString;
|
|
6493
|
+
/** A longer run is stopped and counts as a failure. */
|
|
6494
|
+
timeoutMinutes: z.ZodDefault<z.ZodNumber>;
|
|
6495
|
+
}, "strip", z.ZodTypeAny, {
|
|
6496
|
+
command: string;
|
|
6497
|
+
timeoutMinutes: number;
|
|
6498
|
+
checkout: string;
|
|
6499
|
+
}, {
|
|
6500
|
+
command: string;
|
|
6501
|
+
checkout: string;
|
|
6502
|
+
timeoutMinutes?: number | undefined;
|
|
6503
|
+
}>>>;
|
|
6482
6504
|
}, "strip", z.ZodTypeAny, {
|
|
6483
6505
|
enabled: boolean;
|
|
6484
6506
|
mode: "required" | "advisory";
|
|
@@ -6493,6 +6515,11 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6493
6515
|
ciWaitMinutes: number;
|
|
6494
6516
|
maxDiffKb: number;
|
|
6495
6517
|
forges: ("gitlab" | "github")[];
|
|
6518
|
+
tests: Record<string, {
|
|
6519
|
+
command: string;
|
|
6520
|
+
timeoutMinutes: number;
|
|
6521
|
+
checkout: string;
|
|
6522
|
+
}>;
|
|
6496
6523
|
}, {
|
|
6497
6524
|
enabled?: boolean | undefined;
|
|
6498
6525
|
mode?: "required" | "advisory" | undefined;
|
|
@@ -6507,6 +6534,11 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6507
6534
|
ciWaitMinutes?: number | undefined;
|
|
6508
6535
|
maxDiffKb?: number | undefined;
|
|
6509
6536
|
forges?: ("gitlab" | "github")[] | undefined;
|
|
6537
|
+
tests?: Record<string, {
|
|
6538
|
+
command: string;
|
|
6539
|
+
checkout: string;
|
|
6540
|
+
timeoutMinutes?: number | undefined;
|
|
6541
|
+
}> | undefined;
|
|
6510
6542
|
}>>;
|
|
6511
6543
|
/** Merge policy (#1047): core paths need a person's approval; the
|
|
6512
6544
|
* commit status `agentx/merge-policy` says which a PR is. */
|
|
@@ -6581,6 +6613,11 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6581
6613
|
ciWaitMinutes: number;
|
|
6582
6614
|
maxDiffKb: number;
|
|
6583
6615
|
forges: ("gitlab" | "github")[];
|
|
6616
|
+
tests: Record<string, {
|
|
6617
|
+
command: string;
|
|
6618
|
+
timeoutMinutes: number;
|
|
6619
|
+
checkout: string;
|
|
6620
|
+
}>;
|
|
6584
6621
|
};
|
|
6585
6622
|
mergePolicy: {
|
|
6586
6623
|
enabled: boolean;
|
|
@@ -6625,6 +6662,11 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6625
6662
|
ciWaitMinutes?: number | undefined;
|
|
6626
6663
|
maxDiffKb?: number | undefined;
|
|
6627
6664
|
forges?: ("gitlab" | "github")[] | undefined;
|
|
6665
|
+
tests?: Record<string, {
|
|
6666
|
+
command: string;
|
|
6667
|
+
checkout: string;
|
|
6668
|
+
timeoutMinutes?: number | undefined;
|
|
6669
|
+
}> | undefined;
|
|
6628
6670
|
} | undefined;
|
|
6629
6671
|
mergePolicy?: {
|
|
6630
6672
|
enabled?: boolean | undefined;
|
|
@@ -6769,18 +6811,24 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6769
6811
|
allowPeers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6770
6812
|
/** Loop brake: most signals one root id may carry in a day. */
|
|
6771
6813
|
maxPerRoot: z.ZodDefault<z.ZodNumber>;
|
|
6814
|
+
/** Save the uncommitted work of a stopped task's background builders
|
|
6815
|
+
* as a local agentx/wip/<taskId> branch in each git folder they
|
|
6816
|
+
* changed. Off: nothing is written, the folders are listed as not saved. */
|
|
6817
|
+
saveBuilderWork: z.ZodDefault<z.ZodBoolean>;
|
|
6772
6818
|
}, "strip", z.ZodTypeAny, {
|
|
6773
6819
|
enabled: boolean;
|
|
6774
6820
|
windDownSeconds: number;
|
|
6775
6821
|
allowAgents: string[];
|
|
6776
6822
|
allowPeers: string[];
|
|
6777
6823
|
maxPerRoot: number;
|
|
6824
|
+
saveBuilderWork: boolean;
|
|
6778
6825
|
}, {
|
|
6779
6826
|
enabled?: boolean | undefined;
|
|
6780
6827
|
windDownSeconds?: number | undefined;
|
|
6781
6828
|
allowAgents?: string[] | undefined;
|
|
6782
6829
|
allowPeers?: string[] | undefined;
|
|
6783
6830
|
maxPerRoot?: number | undefined;
|
|
6831
|
+
saveBuilderWork?: boolean | undefined;
|
|
6784
6832
|
}>>;
|
|
6785
6833
|
/** Open requests (src/requests, #356): what a person asked an agent for
|
|
6786
6834
|
* is recorded and followed until it is done, declined or dropped. Off
|
|
@@ -10525,32 +10573,6 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
10525
10573
|
titleSignature?: string | undefined;
|
|
10526
10574
|
} | undefined;
|
|
10527
10575
|
};
|
|
10528
|
-
app: {
|
|
10529
|
-
android: {
|
|
10530
|
-
packageName: string;
|
|
10531
|
-
certFingerprints: string[];
|
|
10532
|
-
};
|
|
10533
|
-
places: {
|
|
10534
|
-
enabled: boolean;
|
|
10535
|
-
file: string;
|
|
10536
|
-
defaultRadiusMeters: number;
|
|
10537
|
-
minRadiusMeters: number;
|
|
10538
|
-
maxRadiusMeters: number;
|
|
10539
|
-
maxPlaces: number;
|
|
10540
|
-
maxRulesPerPlace: number;
|
|
10541
|
-
cooldownMinutes: number;
|
|
10542
|
-
maxEventAgeMinutes: number;
|
|
10543
|
-
syncMinutes: number;
|
|
10544
|
-
};
|
|
10545
|
-
pins: {
|
|
10546
|
-
max: number;
|
|
10547
|
-
file: string;
|
|
10548
|
-
pages: {
|
|
10549
|
-
label: string;
|
|
10550
|
-
url: string;
|
|
10551
|
-
}[];
|
|
10552
|
-
};
|
|
10553
|
-
};
|
|
10554
10576
|
voice: {
|
|
10555
10577
|
provider: "system" | "elevenlabs";
|
|
10556
10578
|
fallback: "system" | "none";
|
|
@@ -10592,6 +10614,32 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
10592
10614
|
system?: string | Record<string, string> | undefined;
|
|
10593
10615
|
listener?: string | undefined;
|
|
10594
10616
|
};
|
|
10617
|
+
app: {
|
|
10618
|
+
android: {
|
|
10619
|
+
packageName: string;
|
|
10620
|
+
certFingerprints: string[];
|
|
10621
|
+
};
|
|
10622
|
+
places: {
|
|
10623
|
+
enabled: boolean;
|
|
10624
|
+
file: string;
|
|
10625
|
+
defaultRadiusMeters: number;
|
|
10626
|
+
minRadiusMeters: number;
|
|
10627
|
+
maxRadiusMeters: number;
|
|
10628
|
+
maxPlaces: number;
|
|
10629
|
+
maxRulesPerPlace: number;
|
|
10630
|
+
cooldownMinutes: number;
|
|
10631
|
+
maxEventAgeMinutes: number;
|
|
10632
|
+
syncMinutes: number;
|
|
10633
|
+
};
|
|
10634
|
+
pins: {
|
|
10635
|
+
max: number;
|
|
10636
|
+
file: string;
|
|
10637
|
+
pages: {
|
|
10638
|
+
label: string;
|
|
10639
|
+
url: string;
|
|
10640
|
+
}[];
|
|
10641
|
+
};
|
|
10642
|
+
};
|
|
10595
10643
|
dashboard: {
|
|
10596
10644
|
enabled: boolean;
|
|
10597
10645
|
port: number;
|
|
@@ -11062,6 +11110,11 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11062
11110
|
ciWaitMinutes: number;
|
|
11063
11111
|
maxDiffKb: number;
|
|
11064
11112
|
forges: ("gitlab" | "github")[];
|
|
11113
|
+
tests: Record<string, {
|
|
11114
|
+
command: string;
|
|
11115
|
+
timeoutMinutes: number;
|
|
11116
|
+
checkout: string;
|
|
11117
|
+
}>;
|
|
11065
11118
|
};
|
|
11066
11119
|
mergePolicy: {
|
|
11067
11120
|
enabled: boolean;
|
|
@@ -11233,6 +11286,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11233
11286
|
allowAgents: string[];
|
|
11234
11287
|
allowPeers: string[];
|
|
11235
11288
|
maxPerRoot: number;
|
|
11289
|
+
saveBuilderWork: boolean;
|
|
11236
11290
|
};
|
|
11237
11291
|
people: {
|
|
11238
11292
|
agents: string[];
|
|
@@ -11807,32 +11861,6 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11807
11861
|
titleSignature?: string | undefined;
|
|
11808
11862
|
} | undefined;
|
|
11809
11863
|
} | undefined;
|
|
11810
|
-
app?: {
|
|
11811
|
-
android?: {
|
|
11812
|
-
packageName?: string | undefined;
|
|
11813
|
-
certFingerprints?: string[] | undefined;
|
|
11814
|
-
} | undefined;
|
|
11815
|
-
places?: {
|
|
11816
|
-
enabled?: boolean | undefined;
|
|
11817
|
-
file?: string | undefined;
|
|
11818
|
-
defaultRadiusMeters?: number | undefined;
|
|
11819
|
-
minRadiusMeters?: number | undefined;
|
|
11820
|
-
maxRadiusMeters?: number | undefined;
|
|
11821
|
-
maxPlaces?: number | undefined;
|
|
11822
|
-
maxRulesPerPlace?: number | undefined;
|
|
11823
|
-
cooldownMinutes?: number | undefined;
|
|
11824
|
-
maxEventAgeMinutes?: number | undefined;
|
|
11825
|
-
syncMinutes?: number | undefined;
|
|
11826
|
-
} | undefined;
|
|
11827
|
-
pins?: {
|
|
11828
|
-
max?: number | undefined;
|
|
11829
|
-
file?: string | undefined;
|
|
11830
|
-
pages?: {
|
|
11831
|
-
label: string;
|
|
11832
|
-
url: string;
|
|
11833
|
-
}[] | undefined;
|
|
11834
|
-
} | undefined;
|
|
11835
|
-
} | undefined;
|
|
11836
11864
|
voice?: {
|
|
11837
11865
|
system?: string | Record<string, string> | undefined;
|
|
11838
11866
|
provider?: "system" | "elevenlabs" | undefined;
|
|
@@ -11874,6 +11902,32 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11874
11902
|
maxSeconds?: number | undefined;
|
|
11875
11903
|
} | undefined;
|
|
11876
11904
|
} | undefined;
|
|
11905
|
+
app?: {
|
|
11906
|
+
android?: {
|
|
11907
|
+
packageName?: string | undefined;
|
|
11908
|
+
certFingerprints?: string[] | undefined;
|
|
11909
|
+
} | undefined;
|
|
11910
|
+
places?: {
|
|
11911
|
+
enabled?: boolean | undefined;
|
|
11912
|
+
file?: string | undefined;
|
|
11913
|
+
defaultRadiusMeters?: number | undefined;
|
|
11914
|
+
minRadiusMeters?: number | undefined;
|
|
11915
|
+
maxRadiusMeters?: number | undefined;
|
|
11916
|
+
maxPlaces?: number | undefined;
|
|
11917
|
+
maxRulesPerPlace?: number | undefined;
|
|
11918
|
+
cooldownMinutes?: number | undefined;
|
|
11919
|
+
maxEventAgeMinutes?: number | undefined;
|
|
11920
|
+
syncMinutes?: number | undefined;
|
|
11921
|
+
} | undefined;
|
|
11922
|
+
pins?: {
|
|
11923
|
+
max?: number | undefined;
|
|
11924
|
+
file?: string | undefined;
|
|
11925
|
+
pages?: {
|
|
11926
|
+
label: string;
|
|
11927
|
+
url: string;
|
|
11928
|
+
}[] | undefined;
|
|
11929
|
+
} | undefined;
|
|
11930
|
+
} | undefined;
|
|
11877
11931
|
dashboard?: {
|
|
11878
11932
|
enabled?: boolean | undefined;
|
|
11879
11933
|
token?: string | undefined;
|
|
@@ -12107,8 +12161,8 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12107
12161
|
popup?: {
|
|
12108
12162
|
enabled?: boolean | undefined;
|
|
12109
12163
|
style?: "card" | "dialog" | undefined;
|
|
12110
|
-
sound?: string | undefined;
|
|
12111
12164
|
voice?: string | undefined;
|
|
12165
|
+
sound?: string | undefined;
|
|
12112
12166
|
timeoutSeconds?: number | undefined;
|
|
12113
12167
|
volume?: number | undefined;
|
|
12114
12168
|
theme?: "system" | "light" | "dark" | undefined;
|
|
@@ -12405,6 +12459,11 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12405
12459
|
ciWaitMinutes?: number | undefined;
|
|
12406
12460
|
maxDiffKb?: number | undefined;
|
|
12407
12461
|
forges?: ("gitlab" | "github")[] | undefined;
|
|
12462
|
+
tests?: Record<string, {
|
|
12463
|
+
command: string;
|
|
12464
|
+
checkout: string;
|
|
12465
|
+
timeoutMinutes?: number | undefined;
|
|
12466
|
+
}> | undefined;
|
|
12408
12467
|
} | undefined;
|
|
12409
12468
|
mergePolicy?: {
|
|
12410
12469
|
enabled?: boolean | undefined;
|
|
@@ -12576,6 +12635,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12576
12635
|
allowAgents?: string[] | undefined;
|
|
12577
12636
|
allowPeers?: string[] | undefined;
|
|
12578
12637
|
maxPerRoot?: number | undefined;
|
|
12638
|
+
saveBuilderWork?: boolean | undefined;
|
|
12579
12639
|
} | undefined;
|
|
12580
12640
|
people?: {
|
|
12581
12641
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ia as Tt,Ja 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{Ia as Tt,Ja 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-XPMDJJI4.js";import"./chunk-PBEO46ER.js";import"./chunk-GTJIKXDB.js";import"./chunk-XJA4ABH4.js";import"./chunk-ZVP6GB4G.js";import"./chunk-5OPKQY36.js";import"./chunk-EKJG63EJ.js";import"./chunk-LWMKOWIX.js";import"./chunk-N6VBEITO.js";import"./chunk-IMLAPB7G.js";import"./chunk-6V5JBHUN.js";import"./chunk-2VDO2HEK.js";import"./chunk-5HLD66CW.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-FRR6DRLY.js";import"./chunk-LQS27HSV.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-A5GYG56I.js";import"./chunk-VCGTZS3T.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-JWDJMFU6.js";import"./chunk-IS2IWRP7.js";import"./chunk-MNG2AMKZ.js";import"./chunk-RX5O5637.js";import"./chunk-X7UQY7CH.js";import"./chunk-QPABR72X.js";import"./chunk-KZKTVGL7.js";import"./chunk-AJ5HMDRW.js";import"./chunk-KP7KDLZ2.js";import{m as lt,n as ct,o as dt,p as mt,q as pt,va as yt}from"./chunk-YBAGESBG.js";import"./chunk-DGWLDVU2.js";import"./chunk-MEFPXHQJ.js";import{a as L}from"./chunk-BAXGL6TY.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-T3T4CT3A.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{t as ut}from"./chunk-MABUBCEL.js";import"./chunk-SMKVNZVI.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-3KHPKKRT.js";import{a as ht}from"./chunk-A4L7WH3R.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-W26TO6HY.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-2OGM6LGX.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-6VJLN66C.js";import{j as it,k as rt,l as at}from"./chunk-6OXJGHWA.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-LE3BXIUF.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-DCIYOPJF.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{mb as tt,ob as st,qb as ot,xb as nt}from"./chunk-ICXHX2QO.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.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).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-X7UQY7CH.js";import{b as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=note-tool-
|
|
1
|
+
import{a as r}from"./chunk-X7UQY7CH.js";import{b as c}from"./chunk-AJ5HMDRW.js";import"./chunk-KP7KDLZ2.js";import"./chunk-QIJLFPWE.js";async function y(t,o){let a=o.env??process.env,n=typeof t.title=="string"?t.title.trim():"",i=typeof t.body=="string"?t.body.trim():"";if(!n||!i)return"Error: title and body are required.";if(n.length>r.title)return`Error: title is at most ${r.title} characters.`;if(i.length>r.body)return`Error: body is at most ${r.body} characters.`;let d=a.AGENTX_AGENT_ID||(typeof t.callerAgentId=="string"?t.callerAgentId:"");try{let e=await(o.fetch??fetch)(`${o.daemonUrl.replace(/\/+$/,"")}/native/notes`,{method:"POST",headers:{"Content-Type":"application/json",...c(a)},body:JSON.stringify({title:n,body:i,agentId:d}),signal:AbortSignal.timeout(45e3)}),s=await e.json().catch(()=>({}));return e.status===201?`Added to the owner's notes, folder "${s.folder??"AgentX"}". Don't also send the idea in chat.`:`Error: ${s?.error||`HTTP ${e.status}`}`}catch(e){return`Error: couldn't reach the daemon (${e?.message??e}).`}}export{y as runNoteTool};
|
|
2
|
+
//# sourceMappingURL=note-tool-ANQWBBZE.js.map
|