agentix-cli 0.206.1 → 0.207.1
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-IEUOKINQ.js → App-MUIJBF7T.js} +2 -2
- package/dist/{ChatApp-CCDBG6YZ.js → ChatApp-RZK7WH6X.js} +2 -2
- package/dist/{absorb-eval-IIF7CY3Q.js → absorb-eval-VDH4DJAU.js} +2 -2
- package/dist/{adapter-LTHULD3D.js → adapter-TG7D3YCC.js} +2 -2
- package/dist/{agent-TZ3GGNS5.js → agent-OVSBIXDF.js} +2 -2
- package/dist/{board-dashboard-JS6OJDH6.js → board-dashboard-P7F52WNX.js} +21 -6
- package/dist/board-dashboard-P7F52WNX.js.map +1 -0
- package/dist/{chunk-7GD5GTWC.js → chunk-2GEO3AWE.js} +2 -2
- package/dist/{chunk-7JHB3X5N.js → chunk-4GN2VGRB.js} +60 -60
- package/dist/chunk-4GN2VGRB.js.map +1 -0
- package/dist/{chunk-6ZVVAGTR.js → chunk-5Q62AXJG.js} +2 -2
- package/dist/{chunk-WI7J22NL.js → chunk-7GCB4HDJ.js} +2 -2
- package/dist/{chunk-M37WJANA.js → chunk-BY7QINNM.js} +65 -65
- package/dist/chunk-BY7QINNM.js.map +1 -0
- package/dist/{chunk-XTIPWYW5.js → chunk-C5VFABFI.js} +3 -3
- package/dist/chunk-C5VFABFI.js.map +1 -0
- package/dist/{chunk-E2MW5OCE.js → chunk-DPN3EYW3.js} +2 -2
- package/dist/{chunk-ZOK6VMEP.js → chunk-E2JKO262.js} +2 -2
- package/dist/{chunk-GCBFLU64.js → chunk-FNB2IBG7.js} +12 -6
- package/dist/chunk-FNB2IBG7.js.map +1 -0
- package/dist/{chunk-B35GIWMR.js → chunk-GVFLCK6T.js} +2 -2
- package/dist/{chunk-I4753XPP.js → chunk-HHFF7X4L.js} +2 -2
- package/dist/{chunk-WTCMJZW3.js → chunk-KN5LZ3JS.js} +2 -2
- package/dist/{chunk-6U34GZ7U.js → chunk-LWVALEWQ.js} +2 -2
- package/dist/{chunk-37EABHYL.js → chunk-M6TLZQTE.js} +2 -2
- package/dist/{chunk-RPL2P7EP.js → chunk-NXOBCFUJ.js} +2 -2
- package/dist/{chunk-A2K6C6W3.js → chunk-PAMMBHB2.js} +3 -3
- package/dist/{chunk-U3OJO7B7.js → chunk-RP2YGJDW.js} +36 -36
- package/dist/chunk-RP2YGJDW.js.map +1 -0
- package/dist/{chunk-KXMC7Z5X.js → chunk-T3CJNUE3.js} +2 -2
- package/dist/{chunk-TLRTJV2U.js → chunk-T435JKGN.js} +326 -326
- package/dist/chunk-T435JKGN.js.map +1 -0
- package/dist/{chunk-VALKXSXZ.js → chunk-TTAKAN5L.js} +2 -2
- package/dist/{chunk-R6XJWFMC.js → chunk-TWWHZNHZ.js} +2 -2
- package/dist/{chunk-FXA2WIIP.js → chunk-WD4HZAYI.js} +2 -2
- package/dist/{chunk-UN7D7HWU.js → chunk-WXYO7JFL.js} +2 -2
- package/dist/{chunk-RRLQTU3X.js → chunk-XPKDQDBH.js} +2 -2
- package/dist/{chunk-K435U2FC.js → chunk-XVGSUY5K.js} +2 -2
- package/dist/{chunk-Z6J3RTYJ.js → chunk-Y6WVNIIQ.js} +2 -2
- package/dist/{chunk-JDU4CXGC.js → chunk-YNYYFDFA.js} +2 -2
- package/dist/{chunk-I74PTSUQ.js → chunk-YQNZ26HG.js} +2 -2
- package/dist/{chunk-CARVBJB7.js → chunk-ZAPHYYGT.js} +2 -2
- package/dist/{chunk-CARVBJB7.js.map → chunk-ZAPHYYGT.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/{client-NPC2JAWL.js → client-6HIRHQAT.js} +2 -2
- package/dist/{config-TIMTRSFH.js → config-4OPTVIWN.js} +2 -2
- package/dist/{config-mutate-V3DRUCK4.js → config-mutate-TYYCXHAA.js} +2 -2
- package/dist/{config-mutator-HOYYIPNW.js → config-mutator-IXTJ5QV2.js} +2 -2
- package/dist/{contributions-TYVRQG7F.js → contributions-WMYA72NP.js} +2 -2
- package/dist/{doctor-TNQ4Q2OS.js → doctor-UBTQYJYX.js} +2 -2
- package/dist/{follow-up-tool-3P2YCRBL.js → follow-up-tool-THIJR5QT.js} +2 -2
- package/dist/{hub-GVTRKPAU.js → hub-J3FQFTAX.js} +2 -2
- package/dist/index.d.ts +124 -1
- package/dist/index.js +1 -1
- package/dist/{org-tool-EKO7GCPL.js → org-tool-ETC5O2DO.js} +2 -2
- package/dist/{program-Y55FFHIJ.js → program-TTGZWU2T.js} +23 -23
- package/dist/{promote-JYYV44FK.js → promote-2QTQQ6DI.js} +2 -2
- package/dist/{query-PUWWCFET.js → query-Q27VDF4B.js} +2 -2
- package/dist/{query-settings-IJPG3N6D.js → query-settings-VKXXSCJI.js} +2 -2
- package/dist/{registry-QJGTPSK2.js → registry-ZZ27JGL5.js} +2 -2
- package/dist/{request-planner-HHJXCWCG.js → request-planner-SGCMQ3OE.js} +2 -2
- package/dist/{review-candidates-XZUQELL5.js → review-candidates-WTDIPOIN.js} +2 -2
- package/dist/{routing-HWZHJ4LZ.js → routing-NXSITNLI.js} +2 -2
- package/dist/schedule-tool-3B4RW4KK.js +2 -0
- package/dist/{scheduler-WG3KXJIH.js → scheduler-CW4DD2BV.js} +2 -2
- package/dist/{seat-5BOBWKBX.js → seat-JTM6QWUS.js} +2 -2
- package/dist/{select-FIHHBFNR.js → select-AYTW7GZZ.js} +2 -2
- package/dist/{set-enabled-K7OM7PSO.js → set-enabled-GTRW3BOZ.js} +2 -2
- package/dist/{sprint-tool-O6TTSWJN.js → sprint-tool-QZVTFZSX.js} +2 -2
- package/dist/{tool-HTUSCV22.js → tool-4LPJM4F2.js} +2 -2
- package/dist/{tool-BYU6EZKM.js → tool-BPCMTY25.js} +2 -2
- package/dist/{tool-4KVS2JWC.js → tool-MJHQJ64S.js} +2 -2
- package/dist/{tool-HVCLZGYE.js → tool-VAUJA52K.js} +2 -2
- package/dist/{wiki-ZMEMGR7R.js → wiki-UTDZIJ6G.js} +2 -2
- package/dist/wiki-enrich-3ZAARKRE.js +2 -0
- package/package.json +1 -1
- package/dist/board-dashboard-JS6OJDH6.js.map +0 -1
- package/dist/chunk-7JHB3X5N.js.map +0 -1
- package/dist/chunk-GCBFLU64.js.map +0 -1
- package/dist/chunk-M37WJANA.js.map +0 -1
- package/dist/chunk-TLRTJV2U.js.map +0 -1
- package/dist/chunk-U3OJO7B7.js.map +0 -1
- package/dist/chunk-XTIPWYW5.js.map +0 -1
- package/dist/schedule-tool-7W5CRUN4.js +0 -2
- package/dist/wiki-enrich-QZHQV7VZ.js +0 -2
- /package/dist/{App-IEUOKINQ.js.map → App-MUIJBF7T.js.map} +0 -0
- /package/dist/{ChatApp-CCDBG6YZ.js.map → ChatApp-RZK7WH6X.js.map} +0 -0
- /package/dist/{absorb-eval-IIF7CY3Q.js.map → absorb-eval-VDH4DJAU.js.map} +0 -0
- /package/dist/{adapter-LTHULD3D.js.map → adapter-TG7D3YCC.js.map} +0 -0
- /package/dist/{agent-TZ3GGNS5.js.map → agent-OVSBIXDF.js.map} +0 -0
- /package/dist/{chunk-7GD5GTWC.js.map → chunk-2GEO3AWE.js.map} +0 -0
- /package/dist/{chunk-6ZVVAGTR.js.map → chunk-5Q62AXJG.js.map} +0 -0
- /package/dist/{chunk-WI7J22NL.js.map → chunk-7GCB4HDJ.js.map} +0 -0
- /package/dist/{chunk-E2MW5OCE.js.map → chunk-DPN3EYW3.js.map} +0 -0
- /package/dist/{chunk-ZOK6VMEP.js.map → chunk-E2JKO262.js.map} +0 -0
- /package/dist/{chunk-B35GIWMR.js.map → chunk-GVFLCK6T.js.map} +0 -0
- /package/dist/{chunk-I4753XPP.js.map → chunk-HHFF7X4L.js.map} +0 -0
- /package/dist/{chunk-WTCMJZW3.js.map → chunk-KN5LZ3JS.js.map} +0 -0
- /package/dist/{chunk-6U34GZ7U.js.map → chunk-LWVALEWQ.js.map} +0 -0
- /package/dist/{chunk-37EABHYL.js.map → chunk-M6TLZQTE.js.map} +0 -0
- /package/dist/{chunk-RPL2P7EP.js.map → chunk-NXOBCFUJ.js.map} +0 -0
- /package/dist/{chunk-A2K6C6W3.js.map → chunk-PAMMBHB2.js.map} +0 -0
- /package/dist/{chunk-KXMC7Z5X.js.map → chunk-T3CJNUE3.js.map} +0 -0
- /package/dist/{chunk-VALKXSXZ.js.map → chunk-TTAKAN5L.js.map} +0 -0
- /package/dist/{chunk-R6XJWFMC.js.map → chunk-TWWHZNHZ.js.map} +0 -0
- /package/dist/{chunk-FXA2WIIP.js.map → chunk-WD4HZAYI.js.map} +0 -0
- /package/dist/{chunk-UN7D7HWU.js.map → chunk-WXYO7JFL.js.map} +0 -0
- /package/dist/{chunk-RRLQTU3X.js.map → chunk-XPKDQDBH.js.map} +0 -0
- /package/dist/{chunk-K435U2FC.js.map → chunk-XVGSUY5K.js.map} +0 -0
- /package/dist/{chunk-Z6J3RTYJ.js.map → chunk-Y6WVNIIQ.js.map} +0 -0
- /package/dist/{chunk-JDU4CXGC.js.map → chunk-YNYYFDFA.js.map} +0 -0
- /package/dist/{chunk-I74PTSUQ.js.map → chunk-YQNZ26HG.js.map} +0 -0
- /package/dist/{client-NPC2JAWL.js.map → client-6HIRHQAT.js.map} +0 -0
- /package/dist/{config-TIMTRSFH.js.map → config-4OPTVIWN.js.map} +0 -0
- /package/dist/{config-mutate-V3DRUCK4.js.map → config-mutate-TYYCXHAA.js.map} +0 -0
- /package/dist/{config-mutator-HOYYIPNW.js.map → config-mutator-IXTJ5QV2.js.map} +0 -0
- /package/dist/{contributions-TYVRQG7F.js.map → contributions-WMYA72NP.js.map} +0 -0
- /package/dist/{doctor-TNQ4Q2OS.js.map → doctor-UBTQYJYX.js.map} +0 -0
- /package/dist/{follow-up-tool-3P2YCRBL.js.map → follow-up-tool-THIJR5QT.js.map} +0 -0
- /package/dist/{hub-GVTRKPAU.js.map → hub-J3FQFTAX.js.map} +0 -0
- /package/dist/{org-tool-EKO7GCPL.js.map → org-tool-ETC5O2DO.js.map} +0 -0
- /package/dist/{program-Y55FFHIJ.js.map → program-TTGZWU2T.js.map} +0 -0
- /package/dist/{promote-JYYV44FK.js.map → promote-2QTQQ6DI.js.map} +0 -0
- /package/dist/{query-PUWWCFET.js.map → query-Q27VDF4B.js.map} +0 -0
- /package/dist/{query-settings-IJPG3N6D.js.map → query-settings-VKXXSCJI.js.map} +0 -0
- /package/dist/{registry-QJGTPSK2.js.map → registry-ZZ27JGL5.js.map} +0 -0
- /package/dist/{request-planner-HHJXCWCG.js.map → request-planner-SGCMQ3OE.js.map} +0 -0
- /package/dist/{review-candidates-XZUQELL5.js.map → review-candidates-WTDIPOIN.js.map} +0 -0
- /package/dist/{routing-HWZHJ4LZ.js.map → routing-NXSITNLI.js.map} +0 -0
- /package/dist/{schedule-tool-7W5CRUN4.js.map → schedule-tool-3B4RW4KK.js.map} +0 -0
- /package/dist/{scheduler-WG3KXJIH.js.map → scheduler-CW4DD2BV.js.map} +0 -0
- /package/dist/{seat-5BOBWKBX.js.map → seat-JTM6QWUS.js.map} +0 -0
- /package/dist/{select-FIHHBFNR.js.map → select-AYTW7GZZ.js.map} +0 -0
- /package/dist/{set-enabled-K7OM7PSO.js.map → set-enabled-GTRW3BOZ.js.map} +0 -0
- /package/dist/{sprint-tool-O6TTSWJN.js.map → sprint-tool-QZVTFZSX.js.map} +0 -0
- /package/dist/{tool-HTUSCV22.js.map → tool-4LPJM4F2.js.map} +0 -0
- /package/dist/{tool-BYU6EZKM.js.map → tool-BPCMTY25.js.map} +0 -0
- /package/dist/{tool-4KVS2JWC.js.map → tool-MJHQJ64S.js.map} +0 -0
- /package/dist/{tool-HVCLZGYE.js.map → tool-VAUJA52K.js.map} +0 -0
- /package/dist/{wiki-ZMEMGR7R.js.map → wiki-UTDZIJ6G.js.map} +0 -0
- /package/dist/{wiki-enrich-QZHQV7VZ.js.map → wiki-enrich-3ZAARKRE.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-TTGZWU2T.js"),{installCliSignalExit:r}=await import("./signal-exit-C5EUGHKI.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-YQNZ26HG.js";import"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-6HIRHQAT.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ab as o,Bb as p,Cb as q,Db as r,Eb as s,Fb as t,Gb as u,Hb as v,Ib as w,Jb as x,Kb as y,Lb as z,Mb as A,Nb as B,Ob as C,Pb as D,Rb as E,mb as a,nb as b,ob as c,pb as d,qb as e,rb as f,sb as g,tb as h,ub as i,vb as j,wb as k,xb as l,yb as m,zb as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-
|
|
1
|
+
import{Ab as o,Bb as p,Cb as q,Db as r,Eb as s,Fb as t,Gb as u,Hb as v,Ib as w,Jb as x,Kb as y,Lb as z,Mb as A,Nb as B,Ob as C,Pb as D,Rb as E,mb as a,nb as b,ob as c,pb as d,qb as e,rb as f,sb as g,tb as h,ub as i,vb as j,wb as k,xb as l,yb as m,zb as n}from"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";E();export{a as INTEGRATION_KINDS,z as WIKI_CONTRIBUTE_JOB,A as WIKI_CONTRIBUTE_MERGE_JOB,C as WIKI_SUMMARIZE_JOB,r as approvalsConfigSchema,g as callsSchema,e as cameraBotSchema,x as crossFieldProblems,t as daemonConfigSchema,c as emailAccountSchema,b as eventSubscriptionSchema,u as expandEnvVars,f as isCronExpression,w as literalSecretProblems,v as loadDaemonConfig,d as mailSenderSchema,o as membersConfigSchema,j as mergePolicyConfigSchema,n as peopleConfigSchema,m as personSchema,q as qualityReportConfigSchema,p as requestStatusConfigSchema,l as requestsConfigSchema,h as reviewGateConfigSchema,i as trackersConfigSchema,y as validateWorkspaces,s as wallConfigSchema,k as watchersConfigSchema,B as withContributionJobs,D as withSummariesJob};
|
|
2
|
+
//# sourceMappingURL=config-4OPTVIWN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-mutate-
|
|
1
|
+
import{a,b}from"./chunk-2GEO3AWE.js";import"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";export{a as mutateAgentxConfig,b as writeAgentxConfig};
|
|
2
|
+
//# sourceMappingURL=config-mutate-TYYCXHAA.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-mutator-
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-TTAKAN5L.js";import"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-IXTJ5QV2.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-
|
|
1
|
+
import{a as ee}from"./chunk-YNYYFDFA.js";import"./chunk-Y6WVNIIQ.js";import{f as Q,k as V}from"./chunk-VJVXEVZ7.js";import{b as O}from"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-OWNQ2FD4.js";import{b as X}from"./chunk-KEXBEUSU.js";import"./chunk-PAMMBHB2.js";import"./chunk-JTFCU5LH.js";import"./chunk-WD4HZAYI.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-NXOBCFUJ.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QUFIUXMQ.js";import"./chunk-A7JSRDJL.js";import"./chunk-BERWTVG2.js";import{b as N,c as H}from"./chunk-AHWWJ7AF.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-WMYA72NP.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,k as j}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,k as j}from"./chunk-M6TLZQTE.js";import"./chunk-2LJZHKTY.js";import"./chunk-2YDG5CSS.js";import"./chunk-5Q62AXJG.js";import"./chunk-IMLAPB7G.js";import"./chunk-JSCVOB4G.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-Q3A5P373.js";import"./chunk-QPABR72X.js";import"./chunk-KP7KDLZ2.js";import"./chunk-QUFIUXMQ.js";import"./chunk-XL7UWG36.js";import"./chunk-MNG2AMKZ.js";import"./chunk-LY4G7PCW.js";import"./chunk-OSH2PEBH.js";import"./chunk-7I7IEX4S.js";import"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";export{j as daemonVoiceCheck,b as doctor,i as mcpHeaderEnvChecks,g as meshPeerTokenChecks,h as meshTokenChecksFromConfig,a as runDoctorChecks,e as runMirrorChecks,d as runNativeChecks,c as runNotificationChecks,f as runReminderChecks};
|
|
2
|
+
//# sourceMappingURL=doctor-UBTQYJYX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-T3CJNUE3.js";import"./chunk-RKPAVWXF.js";import"./chunk-DPN3EYW3.js";import{b as I}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-C5VFABFI.js";import"./chunk-TTAKAN5L.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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-THIJR5QT.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=hub-
|
|
1
|
+
import{a}from"./chunk-KN5LZ3JS.js";import"./chunk-7GCB4HDJ.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-WD4HZAYI.js";import"./chunk-WPNRDEHW.js";import"./chunk-NXOBCFUJ.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-AHWWJ7AF.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{a as WikiHub};
|
|
2
|
+
//# sourceMappingURL=hub-J3FQFTAX.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -7298,6 +7298,27 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
7298
7298
|
agents?: string[] | undefined;
|
|
7299
7299
|
channels?: string[] | undefined;
|
|
7300
7300
|
}>>>;
|
|
7301
|
+
/** While runs wait on memory or swap, close idle sessions a few at a
|
|
7302
|
+
* time, ahead of processPool.maxIdleSeconds. */
|
|
7303
|
+
closeIdle: z.ZodDefault<z.ZodObject<{
|
|
7304
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
7305
|
+
/** Most sessions closed per round. */
|
|
7306
|
+
maxPerRound: z.ZodDefault<z.ZodNumber>;
|
|
7307
|
+
/** Never close a session quiet for less than this. */
|
|
7308
|
+
minQuietSeconds: z.ZodDefault<z.ZodNumber>;
|
|
7309
|
+
/** Seconds between rounds, so the next reading shows the last one. */
|
|
7310
|
+
settleSeconds: z.ZodDefault<z.ZodNumber>;
|
|
7311
|
+
}, "strip", z.ZodTypeAny, {
|
|
7312
|
+
enabled: boolean;
|
|
7313
|
+
maxPerRound: number;
|
|
7314
|
+
minQuietSeconds: number;
|
|
7315
|
+
settleSeconds: number;
|
|
7316
|
+
}, {
|
|
7317
|
+
enabled?: boolean | undefined;
|
|
7318
|
+
maxPerRound?: number | undefined;
|
|
7319
|
+
minQuietSeconds?: number | undefined;
|
|
7320
|
+
settleSeconds?: number | undefined;
|
|
7321
|
+
}>>;
|
|
7301
7322
|
/** Queue order: owner > critical > normal > background, then age. */
|
|
7302
7323
|
priority: z.ZodDefault<z.ZodObject<{
|
|
7303
7324
|
ownerChannels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -7348,6 +7369,12 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
7348
7369
|
agents?: string[] | undefined;
|
|
7349
7370
|
channels?: string[] | undefined;
|
|
7350
7371
|
}>;
|
|
7372
|
+
closeIdle: {
|
|
7373
|
+
enabled: boolean;
|
|
7374
|
+
maxPerRound: number;
|
|
7375
|
+
minQuietSeconds: number;
|
|
7376
|
+
settleSeconds: number;
|
|
7377
|
+
};
|
|
7351
7378
|
}, {
|
|
7352
7379
|
enabled?: boolean | undefined;
|
|
7353
7380
|
priority?: {
|
|
@@ -7380,6 +7407,12 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
7380
7407
|
agents?: string[] | undefined;
|
|
7381
7408
|
channels?: string[] | undefined;
|
|
7382
7409
|
}> | undefined;
|
|
7410
|
+
closeIdle?: {
|
|
7411
|
+
enabled?: boolean | undefined;
|
|
7412
|
+
maxPerRound?: number | undefined;
|
|
7413
|
+
minQuietSeconds?: number | undefined;
|
|
7414
|
+
settleSeconds?: number | undefined;
|
|
7415
|
+
} | undefined;
|
|
7383
7416
|
}>>;
|
|
7384
7417
|
/** What the node reports about its own environment (src/node-env,
|
|
7385
7418
|
* #1531): GET /api/node, `agentx node` and the MCP tool `agentx_node`. */
|
|
@@ -8816,18 +8849,41 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
8816
8849
|
* one turn instead of one turn each (#1749). 0: only answers that
|
|
8817
8850
|
* are already in are joined. */
|
|
8818
8851
|
coalesceSeconds: z.ZodDefault<z.ZodNumber>;
|
|
8852
|
+
/** Hand-off budget for work no person started (#1756): agents that keep
|
|
8853
|
+
* handing work to each other are told to finish it themselves or write
|
|
8854
|
+
* to the owner once. Work a person started is never counted. 0: off. */
|
|
8855
|
+
agentChains: z.ZodDefault<z.ZodObject<{
|
|
8856
|
+
/** Hand-offs one agent may start in a rolling hour. */
|
|
8857
|
+
perAgentHour: z.ZodDefault<z.ZodNumber>;
|
|
8858
|
+
/** Hand-offs one chain (the same root) may make in a rolling day. */
|
|
8859
|
+
perChainDay: z.ZodDefault<z.ZodNumber>;
|
|
8860
|
+
}, "strip", z.ZodTypeAny, {
|
|
8861
|
+
perAgentHour: number;
|
|
8862
|
+
perChainDay: number;
|
|
8863
|
+
}, {
|
|
8864
|
+
perAgentHour?: number | undefined;
|
|
8865
|
+
perChainDay?: number | undefined;
|
|
8866
|
+
}>>;
|
|
8819
8867
|
}, "strip", z.ZodTypeAny, {
|
|
8820
8868
|
asyncWhenHuman: boolean;
|
|
8821
8869
|
timeoutMinutes: number;
|
|
8822
8870
|
requeueRelayOnRestart: boolean;
|
|
8823
8871
|
callbackSends: boolean;
|
|
8824
8872
|
coalesceSeconds: number;
|
|
8873
|
+
agentChains: {
|
|
8874
|
+
perAgentHour: number;
|
|
8875
|
+
perChainDay: number;
|
|
8876
|
+
};
|
|
8825
8877
|
}, {
|
|
8826
8878
|
asyncWhenHuman?: boolean | undefined;
|
|
8827
8879
|
timeoutMinutes?: number | undefined;
|
|
8828
8880
|
requeueRelayOnRestart?: boolean | undefined;
|
|
8829
8881
|
callbackSends?: boolean | undefined;
|
|
8830
8882
|
coalesceSeconds?: number | undefined;
|
|
8883
|
+
agentChains?: {
|
|
8884
|
+
perAgentHour?: number | undefined;
|
|
8885
|
+
perChainDay?: number | undefined;
|
|
8886
|
+
} | undefined;
|
|
8831
8887
|
}>>;
|
|
8832
8888
|
}, "strip", z.ZodTypeAny, {
|
|
8833
8889
|
enabled: boolean;
|
|
@@ -8837,6 +8893,10 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
8837
8893
|
requeueRelayOnRestart: boolean;
|
|
8838
8894
|
callbackSends: boolean;
|
|
8839
8895
|
coalesceSeconds: number;
|
|
8896
|
+
agentChains: {
|
|
8897
|
+
perAgentHour: number;
|
|
8898
|
+
perChainDay: number;
|
|
8899
|
+
};
|
|
8840
8900
|
};
|
|
8841
8901
|
peers: {
|
|
8842
8902
|
name: string;
|
|
@@ -8865,6 +8925,10 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
8865
8925
|
requeueRelayOnRestart?: boolean | undefined;
|
|
8866
8926
|
callbackSends?: boolean | undefined;
|
|
8867
8927
|
coalesceSeconds?: number | undefined;
|
|
8928
|
+
agentChains?: {
|
|
8929
|
+
perAgentHour?: number | undefined;
|
|
8930
|
+
perChainDay?: number | undefined;
|
|
8931
|
+
} | undefined;
|
|
8868
8932
|
} | undefined;
|
|
8869
8933
|
peers?: {
|
|
8870
8934
|
name: string;
|
|
@@ -11431,6 +11495,10 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11431
11495
|
requeueRelayOnRestart: boolean;
|
|
11432
11496
|
callbackSends: boolean;
|
|
11433
11497
|
coalesceSeconds: number;
|
|
11498
|
+
agentChains: {
|
|
11499
|
+
perAgentHour: number;
|
|
11500
|
+
perChainDay: number;
|
|
11501
|
+
};
|
|
11434
11502
|
};
|
|
11435
11503
|
peers: {
|
|
11436
11504
|
name: string;
|
|
@@ -12334,6 +12402,12 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12334
12402
|
agents?: string[] | undefined;
|
|
12335
12403
|
channels?: string[] | undefined;
|
|
12336
12404
|
}>;
|
|
12405
|
+
closeIdle: {
|
|
12406
|
+
enabled: boolean;
|
|
12407
|
+
maxPerRound: number;
|
|
12408
|
+
minQuietSeconds: number;
|
|
12409
|
+
settleSeconds: number;
|
|
12410
|
+
};
|
|
12337
12411
|
};
|
|
12338
12412
|
environment: {
|
|
12339
12413
|
tools: (string | {
|
|
@@ -12831,6 +12905,10 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12831
12905
|
requeueRelayOnRestart?: boolean | undefined;
|
|
12832
12906
|
callbackSends?: boolean | undefined;
|
|
12833
12907
|
coalesceSeconds?: number | undefined;
|
|
12908
|
+
agentChains?: {
|
|
12909
|
+
perAgentHour?: number | undefined;
|
|
12910
|
+
perChainDay?: number | undefined;
|
|
12911
|
+
} | undefined;
|
|
12834
12912
|
} | undefined;
|
|
12835
12913
|
peers?: {
|
|
12836
12914
|
name: string;
|
|
@@ -13816,6 +13894,12 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
13816
13894
|
agents?: string[] | undefined;
|
|
13817
13895
|
channels?: string[] | undefined;
|
|
13818
13896
|
}> | undefined;
|
|
13897
|
+
closeIdle?: {
|
|
13898
|
+
enabled?: boolean | undefined;
|
|
13899
|
+
maxPerRound?: number | undefined;
|
|
13900
|
+
minQuietSeconds?: number | undefined;
|
|
13901
|
+
settleSeconds?: number | undefined;
|
|
13902
|
+
} | undefined;
|
|
13819
13903
|
} | undefined;
|
|
13820
13904
|
environment?: {
|
|
13821
13905
|
tools?: (string | {
|
|
@@ -14779,6 +14863,8 @@ declare class AgentXDaemon {
|
|
|
14779
14863
|
private delegations;
|
|
14780
14864
|
/** Synchronous delegations in flight, to refuse cycles that could never finish. */
|
|
14781
14865
|
private syncWaits;
|
|
14866
|
+
/** Hand-offs of work no person started, per agent and per chain (#1756). */
|
|
14867
|
+
private chainBudget;
|
|
14782
14868
|
/** Recent /send/agent answers, so a retry gets the same task id (#847). */
|
|
14783
14869
|
private sendAgentDedupe;
|
|
14784
14870
|
/** Phone-app callback replies waiting for the dashboard to file them. */
|
|
@@ -15188,6 +15274,10 @@ declare class AgentXDaemon {
|
|
|
15188
15274
|
* track synchronous, as before; records who waits on the callee.
|
|
15189
15275
|
*/
|
|
15190
15276
|
private delegationGate;
|
|
15277
|
+
/** Hand-off budget for work no person started (#1756): why this hop is
|
|
15278
|
+
* refused, or null (it is then counted). A caller the daemon cannot
|
|
15279
|
+
* name is not counted. */
|
|
15280
|
+
private handOffRefusal;
|
|
15191
15281
|
private startCallback;
|
|
15192
15282
|
/**
|
|
15193
15283
|
* Record an inbound dispatch in the intent ledger so the activity graph
|
|
@@ -19195,6 +19285,24 @@ declare class RunStore {
|
|
|
19195
19285
|
private clearIndex;
|
|
19196
19286
|
}
|
|
19197
19287
|
|
|
19288
|
+
interface ProcessKey {
|
|
19289
|
+
agentId: string;
|
|
19290
|
+
channel: string;
|
|
19291
|
+
chatId: string;
|
|
19292
|
+
}
|
|
19293
|
+
/** What `closeIdle` may close. Busy processes and open work are always spared. */
|
|
19294
|
+
interface CloseIdleRequest {
|
|
19295
|
+
max: number;
|
|
19296
|
+
/** Spare a process quiet for less than this: its chat is probably still going. */
|
|
19297
|
+
minQuietMs: number;
|
|
19298
|
+
/** Why, for the log line and the process's dead reason. */
|
|
19299
|
+
reason: string;
|
|
19300
|
+
/** Spare these too, e.g. a chat with a run on its way to this process. */
|
|
19301
|
+
skip?: (key: ProcessKey) => boolean;
|
|
19302
|
+
/** Only say which ones it would close. */
|
|
19303
|
+
dryRun?: boolean;
|
|
19304
|
+
}
|
|
19305
|
+
|
|
19198
19306
|
interface ResourceSample {
|
|
19199
19307
|
at: number;
|
|
19200
19308
|
memTotalMB: number;
|
|
@@ -19272,6 +19380,16 @@ interface AdmissionSettings {
|
|
|
19272
19380
|
/** Seconds between resource re-reads while work is waiting. */
|
|
19273
19381
|
sampleSeconds: number;
|
|
19274
19382
|
classes: Record<string, AdmissionClass>;
|
|
19383
|
+
/** Close idle sessions while runs wait on memory or swap. */
|
|
19384
|
+
closeIdle: {
|
|
19385
|
+
enabled: boolean;
|
|
19386
|
+
/** Most sessions closed per round. */
|
|
19387
|
+
maxPerRound: number;
|
|
19388
|
+
/** Never close a session quiet for less than this. */
|
|
19389
|
+
minQuietSeconds: number;
|
|
19390
|
+
/** Wait this long after a round: swap keeps falling for a while. */
|
|
19391
|
+
settleSeconds: number;
|
|
19392
|
+
};
|
|
19275
19393
|
priority: {
|
|
19276
19394
|
ownerChannels: string[];
|
|
19277
19395
|
/** People ids (config.people) whose turns run at owner priority. */
|
|
@@ -19332,6 +19450,7 @@ declare class AdmissionQueue {
|
|
|
19332
19450
|
private readonly sampler;
|
|
19333
19451
|
private readonly log;
|
|
19334
19452
|
private readonly now;
|
|
19453
|
+
private readonly closeIdle;
|
|
19335
19454
|
private waiting;
|
|
19336
19455
|
private running;
|
|
19337
19456
|
private starts;
|
|
@@ -19341,8 +19460,10 @@ declare class AdmissionQueue {
|
|
|
19341
19460
|
private timer;
|
|
19342
19461
|
private closedAt;
|
|
19343
19462
|
private lastReasons;
|
|
19463
|
+
private lastCloseRoundAt;
|
|
19464
|
+
private saidNothingToClose;
|
|
19344
19465
|
private readonly bootAt;
|
|
19345
|
-
constructor(settings: () => AdmissionSettings, sampler: ResourceSampler, log?: (msg: string) => void, now?: () => number);
|
|
19466
|
+
constructor(settings: () => AdmissionSettings, sampler: ResourceSampler, log?: (msg: string) => void, now?: () => number, closeIdle?: (req: CloseIdleRequest) => ProcessKey[]);
|
|
19346
19467
|
get closed(): boolean;
|
|
19347
19468
|
/** Waits until the run may start. A run with keepOnClose is never
|
|
19348
19469
|
* answered once the daemon is stopping. */
|
|
@@ -19367,6 +19488,8 @@ declare class AdmissionQueue {
|
|
|
19367
19488
|
/** Starts every waiting run that may start now, in queue order. */
|
|
19368
19489
|
pump(): Promise<void>;
|
|
19369
19490
|
private pass;
|
|
19491
|
+
/** One round of closing idle sessions, when memory or swap holds a run. */
|
|
19492
|
+
private closeIdleRound;
|
|
19370
19493
|
private admitEntry;
|
|
19371
19494
|
/** Re-checks while work waits: resources change without any release. */
|
|
19372
19495
|
private arm;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Oa as Tt,Pa 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{Oa as Tt,Pa 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-T435JKGN.js";import"./chunk-4GN2VGRB.js";import"./chunk-GTJIKXDB.js";import"./chunk-WXYO7JFL.js";import"./chunk-ZVP6GB4G.js";import"./chunk-5Q62AXJG.js";import"./chunk-IMLAPB7G.js";import"./chunk-EKJG63EJ.js";import"./chunk-LWVALEWQ.js";import"./chunk-JSCVOB4G.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-2GEO3AWE.js";import"./chunk-MRIVENBY.js";import"./chunk-GJOKXP5D.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-UKUH662W.js";import"./chunk-3Q6MRG3P.js";import"./chunk-2VDO2HEK.js";import"./chunk-JWDJMFU6.js";import"./chunk-2P5NP4H6.js";import"./chunk-B4KQC3DG.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-Q3A5P373.js";import"./chunk-TWWHZNHZ.js";import"./chunk-QPABR72X.js";import"./chunk-A5GYG56I.js";import"./chunk-E2JKO262.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-6TTGRTDO.js";import"./chunk-RX5O5637.js";import"./chunk-DPN3EYW3.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{Ca as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-BY7QINNM.js";import"./chunk-RP2YGJDW.js";import"./chunk-MEFPXHQJ.js";import"./chunk-7AB3QUGH.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-HHFF7X4L.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-GV7S5BAX.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VJVXEVZ7.js";import{u as ut}from"./chunk-C5VFABFI.js";import"./chunk-TTAKAN5L.js";import"./chunk-3UOTLMXD.js";import"./chunk-VWTBHLMX.js";import"./chunk-BE64IJWM.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GSX4NK2N.js";import"./chunk-HPRLRD4P.js";import"./chunk-KN5LZ3JS.js";import{a as ht}from"./chunk-7GCB4HDJ.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-PAMMBHB2.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-WD4HZAYI.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-XPKDQDBH.js";import{j as it,k as rt,l as at}from"./chunk-NXOBCFUJ.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-QUFIUXMQ.js";import"./chunk-3AHYZLGE.js";import"./chunk-XL7UWG36.js";import"./chunk-MNG2AMKZ.js";import"./chunk-LY4G7PCW.js";import"./chunk-2HBEZV7L.js";import"./chunk-A7JSRDJL.js";import"./chunk-BERWTVG2.js";import"./chunk-AHWWJ7AF.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{Fb as tt,Hb as st,Kb as ot,Rb as nt}from"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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{b as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=org-tool-
|
|
1
|
+
import{b as d}from"./chunk-T3CJNUE3.js";import"./chunk-RKPAVWXF.js";import"./chunk-DPN3EYW3.js";import{b as c}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-C5VFABFI.js";import"./chunk-TTAKAN5L.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-ZAPHYYGT.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";var u=new Set(["cron","heartbeat","api","a2a","mesh","approvals","requests"]);function p(n){return typeof n=="string"?n.trim():""}async function y(n,o){let i=o.fetch??fetch,h=o.daemonUrl.replace(/\/$/,""),a=o.env??process.env,s=(p(n.action)||"show").toLowerCase();if(s==="show")try{let e=await i(`${h}/api/org`,{headers:c(a),signal:AbortSignal.timeout(1e4)}),r=await e.json().catch(()=>({}));return e.ok?String(r.text??""):`Error: ${r?.error||`HTTP ${e.status}`}`}catch(e){return`Error: couldn't reach the daemon (${e?.message??e}).`}if(s!=="propose")return`Error: unknown action "${s}". Use show or propose.`;let t=d(n,a);if(!t)return"Error: couldn't tell which agent you are. Pass callerAgentId.";let l=t.channel&&t.chatId&&!u.has(t.channel)?{channel:t.channel,chatId:t.chatId,...t.accountId?{accountId:t.accountId}:{}}:void 0;try{let e=await i(`${h}/api/org/proposals`,{method:"POST",headers:{"Content-Type":"application/json",...c(a)},body:JSON.stringify({changes:n.changes,newAgent:n.newAgent,why:n.why,raised_by:t.agentId,...l?{reply:l}:{}}),signal:AbortSignal.timeout(1e4)}),r=await e.json().catch(()=>({}));return e.ok?[`Card ${r.card.id} is in the owner's Approvals inbox: "${r.text}"`,"Nothing is changed yet. On the owner's yes the daemon applies it and you get a message with the result; do not edit the org chart yourself.","Tell the owner it is waiting for their yes."].join(" "):`Not proposed: ${r?.error||`HTTP ${e.status}`}`}catch(e){return`Error: couldn't reach the daemon (${e?.message??e}).`}}export{y as runOrgTool};
|
|
2
|
+
//# sourceMappingURL=org-tool-ETC5O2DO.js.map
|