agentix-cli 0.221.1 → 0.223.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-QRZJGHNK.js → App-MXD6LPYH.js} +2 -2
- package/dist/{ChatApp-DYC2WNAP.js → ChatApp-2A5N7F2C.js} +2 -2
- package/dist/{absorb-eval-4FENRVXM.js → absorb-eval-Y5DWS7NT.js} +2 -2
- package/dist/{adapter-5WMQSSQM.js → adapter-UKYP3BKW.js} +2 -2
- package/dist/{agent-DXKDG4DQ.js → agent-QPUBOI54.js} +2 -2
- package/dist/{board-dashboard-QV7OD4SO.js → board-dashboard-6GMUIJOL.js} +4 -4
- package/dist/{chunk-ABMDDRZL.js → chunk-2CMIDGL5.js} +2 -2
- package/dist/{chunk-AAPHOKWS.js → chunk-2UZXZN6R.js} +2 -2
- package/dist/{chunk-D5LIMOI6.js → chunk-4SUB5MAF.js} +2 -2
- package/dist/{chunk-CIW37UJT.js → chunk-6KM7GMXS.js} +2 -2
- package/dist/{chunk-AZCGU5XU.js → chunk-7NUR2QP3.js} +2 -2
- package/dist/{chunk-VYNM7HYU.js → chunk-AXHPKLVK.js} +2 -2
- package/dist/{chunk-O4EQAPBB.js → chunk-BOC475ZY.js} +2 -2
- package/dist/{chunk-5BT4VPJC.js → chunk-C3Z42ED7.js} +2 -2
- package/dist/{chunk-JMRFYGET.js → chunk-DJRMS2WM.js} +2 -2
- package/dist/{chunk-VOVDWFFP.js → chunk-EAA4RTPL.js} +2 -2
- package/dist/{chunk-VOVDWFFP.js.map → chunk-EAA4RTPL.js.map} +1 -1
- package/dist/{chunk-WQTPSXVB.js → chunk-EYF63IDK.js} +2 -2
- package/dist/{chunk-Y6KR7NXL.js → chunk-FN72BUPU.js} +2 -2
- package/dist/{chunk-5QXRGX2F.js → chunk-GU6YRU4D.js} +2 -2
- package/dist/{chunk-U476QMLK.js → chunk-H27ALSPN.js} +2 -2
- package/dist/{chunk-RMB6G7X2.js → chunk-H6MCLUQ6.js} +2 -2
- package/dist/{chunk-575LJSX2.js → chunk-JVIGFWD5.js} +107 -107
- package/dist/chunk-JVIGFWD5.js.map +1 -0
- package/dist/{chunk-GO4J44UD.js → chunk-KFF4OCVD.js} +2 -2
- package/dist/{chunk-XV7IHWQE.js → chunk-KJC57G4Z.js} +2 -2
- package/dist/{chunk-NCMPJPXG.js → chunk-KK4S6EFA.js} +2 -2
- package/dist/{chunk-AEFO6ES5.js → chunk-KOLS57LW.js} +2 -2
- package/dist/{chunk-NW7B53KD.js → chunk-KPVCP2TN.js} +2 -2
- package/dist/{chunk-XPYZBWI7.js → chunk-MBFOYKRC.js} +2 -2
- package/dist/{chunk-JD5TCX4X.js → chunk-MXKFIBSW.js} +2 -2
- package/dist/{chunk-LO5A3VKY.js → chunk-NNLN5XLV.js} +2 -2
- package/dist/{chunk-FRYEUVYD.js → chunk-OMBRW453.js} +2 -2
- package/dist/{chunk-TN3XNBQN.js → chunk-QZC6KR23.js} +2 -2
- package/dist/{chunk-SQP6A5AG.js → chunk-RVQSRSOM.js} +2 -2
- package/dist/{chunk-6EJJKOMW.js → chunk-TDGKZS5M.js} +3 -3
- package/dist/{chunk-XC3466Z4.js → chunk-XKXDOOCL.js} +2 -2
- package/dist/{chunk-AAQOXNLE.js → chunk-XYQDQKJJ.js} +241 -241
- package/dist/chunk-XYQDQKJJ.js.map +1 -0
- package/dist/{chunk-4UJDRI7W.js → chunk-ZN56KYVA.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/{client-W7VFEYQ3.js → client-5LLQG4ER.js} +2 -2
- package/dist/{config-ZVRI3GFZ.js → config-KNKLPWMH.js} +2 -2
- package/dist/{config-mutate-OM4MI56W.js → config-mutate-4JRMXCGB.js} +2 -2
- package/dist/{config-mutator-RK3UQORI.js → config-mutator-4AV4CAXX.js} +2 -2
- package/dist/{contributions-3WW5AJ5A.js → contributions-I45FR7MJ.js} +2 -2
- package/dist/{doctor-AW53DQDU.js → doctor-VA7PTEIO.js} +2 -2
- package/dist/{follow-up-tool-N5U7U5WN.js → follow-up-tool-TFWAMQUJ.js} +2 -2
- package/dist/{hub-J43NXLW3.js → hub-XQBWXL7B.js} +2 -2
- package/dist/index.d.ts +59 -0
- package/dist/index.js +1 -1
- package/dist/{org-tool-VNDHR7WM.js → org-tool-QFMEZDCP.js} +2 -2
- package/dist/{program-Q4DXWAQU.js → program-3VVBGLLL.js} +24 -24
- package/dist/{promote-AO6KC3SU.js → promote-EB462QWA.js} +2 -2
- package/dist/{query-W6OYKQ2U.js → query-CCK2XRY4.js} +2 -2
- package/dist/{query-settings-2D6NCHCV.js → query-settings-GN6BHJYE.js} +2 -2
- package/dist/{registry-Q3H6QR6Q.js → registry-4ANOXGFF.js} +2 -2
- package/dist/{request-planner-SDO5MNFV.js → request-planner-GOK6HKMW.js} +2 -2
- package/dist/{review-candidates-EAOLCDIK.js → review-candidates-G2NVWUWQ.js} +2 -2
- package/dist/{routing-VDVZ4IYF.js → routing-PJLKDA5B.js} +2 -2
- package/dist/{schedule-tool-65H6URQU.js → schedule-tool-FLHDCXKO.js} +2 -2
- package/dist/{scheduler-B52UIMKB.js → scheduler-U3BGAWJE.js} +2 -2
- package/dist/{seat-5DLUHBTK.js → seat-UGNKN7E2.js} +2 -2
- package/dist/{select-Z3JDFC2C.js → select-TN7VIRKN.js} +2 -2
- package/dist/{set-enabled-FMI2GXCF.js → set-enabled-L5MWK3CN.js} +2 -2
- package/dist/{sprint-tool-5NJYOFIZ.js → sprint-tool-7RC34WQG.js} +2 -2
- package/dist/{tool-YT3WBUHS.js → tool-6GPX3DWD.js} +2 -2
- package/dist/{tool-ZSNE7YWS.js → tool-BVNY5YJD.js} +2 -2
- package/dist/{tool-RW32VEIV.js → tool-XWBUVV3R.js} +2 -2
- package/dist/{tool-2DOU5XCQ.js → tool-Y2BEVNYH.js} +2 -2
- package/dist/tool-YNBOPYM7.js +2 -0
- package/dist/{wiki-7PQ5YVA7.js → wiki-6B26AVZH.js} +2 -2
- package/dist/wiki-enrich-LSCK7B3Z.js +2 -0
- package/package.json +1 -1
- package/dist/chunk-575LJSX2.js.map +0 -1
- package/dist/chunk-AAQOXNLE.js.map +0 -1
- package/dist/tool-AR4BLSYC.js +0 -2
- package/dist/wiki-enrich-IQZ5Y7A5.js +0 -2
- /package/dist/{App-QRZJGHNK.js.map → App-MXD6LPYH.js.map} +0 -0
- /package/dist/{ChatApp-DYC2WNAP.js.map → ChatApp-2A5N7F2C.js.map} +0 -0
- /package/dist/{absorb-eval-4FENRVXM.js.map → absorb-eval-Y5DWS7NT.js.map} +0 -0
- /package/dist/{adapter-5WMQSSQM.js.map → adapter-UKYP3BKW.js.map} +0 -0
- /package/dist/{agent-DXKDG4DQ.js.map → agent-QPUBOI54.js.map} +0 -0
- /package/dist/{board-dashboard-QV7OD4SO.js.map → board-dashboard-6GMUIJOL.js.map} +0 -0
- /package/dist/{chunk-ABMDDRZL.js.map → chunk-2CMIDGL5.js.map} +0 -0
- /package/dist/{chunk-AAPHOKWS.js.map → chunk-2UZXZN6R.js.map} +0 -0
- /package/dist/{chunk-D5LIMOI6.js.map → chunk-4SUB5MAF.js.map} +0 -0
- /package/dist/{chunk-CIW37UJT.js.map → chunk-6KM7GMXS.js.map} +0 -0
- /package/dist/{chunk-AZCGU5XU.js.map → chunk-7NUR2QP3.js.map} +0 -0
- /package/dist/{chunk-VYNM7HYU.js.map → chunk-AXHPKLVK.js.map} +0 -0
- /package/dist/{chunk-O4EQAPBB.js.map → chunk-BOC475ZY.js.map} +0 -0
- /package/dist/{chunk-5BT4VPJC.js.map → chunk-C3Z42ED7.js.map} +0 -0
- /package/dist/{chunk-JMRFYGET.js.map → chunk-DJRMS2WM.js.map} +0 -0
- /package/dist/{chunk-WQTPSXVB.js.map → chunk-EYF63IDK.js.map} +0 -0
- /package/dist/{chunk-Y6KR7NXL.js.map → chunk-FN72BUPU.js.map} +0 -0
- /package/dist/{chunk-5QXRGX2F.js.map → chunk-GU6YRU4D.js.map} +0 -0
- /package/dist/{chunk-U476QMLK.js.map → chunk-H27ALSPN.js.map} +0 -0
- /package/dist/{chunk-RMB6G7X2.js.map → chunk-H6MCLUQ6.js.map} +0 -0
- /package/dist/{chunk-GO4J44UD.js.map → chunk-KFF4OCVD.js.map} +0 -0
- /package/dist/{chunk-XV7IHWQE.js.map → chunk-KJC57G4Z.js.map} +0 -0
- /package/dist/{chunk-NCMPJPXG.js.map → chunk-KK4S6EFA.js.map} +0 -0
- /package/dist/{chunk-AEFO6ES5.js.map → chunk-KOLS57LW.js.map} +0 -0
- /package/dist/{chunk-NW7B53KD.js.map → chunk-KPVCP2TN.js.map} +0 -0
- /package/dist/{chunk-XPYZBWI7.js.map → chunk-MBFOYKRC.js.map} +0 -0
- /package/dist/{chunk-JD5TCX4X.js.map → chunk-MXKFIBSW.js.map} +0 -0
- /package/dist/{chunk-LO5A3VKY.js.map → chunk-NNLN5XLV.js.map} +0 -0
- /package/dist/{chunk-FRYEUVYD.js.map → chunk-OMBRW453.js.map} +0 -0
- /package/dist/{chunk-TN3XNBQN.js.map → chunk-QZC6KR23.js.map} +0 -0
- /package/dist/{chunk-SQP6A5AG.js.map → chunk-RVQSRSOM.js.map} +0 -0
- /package/dist/{chunk-6EJJKOMW.js.map → chunk-TDGKZS5M.js.map} +0 -0
- /package/dist/{chunk-XC3466Z4.js.map → chunk-XKXDOOCL.js.map} +0 -0
- /package/dist/{chunk-4UJDRI7W.js.map → chunk-ZN56KYVA.js.map} +0 -0
- /package/dist/{client-W7VFEYQ3.js.map → client-5LLQG4ER.js.map} +0 -0
- /package/dist/{config-ZVRI3GFZ.js.map → config-KNKLPWMH.js.map} +0 -0
- /package/dist/{config-mutate-OM4MI56W.js.map → config-mutate-4JRMXCGB.js.map} +0 -0
- /package/dist/{config-mutator-RK3UQORI.js.map → config-mutator-4AV4CAXX.js.map} +0 -0
- /package/dist/{contributions-3WW5AJ5A.js.map → contributions-I45FR7MJ.js.map} +0 -0
- /package/dist/{doctor-AW53DQDU.js.map → doctor-VA7PTEIO.js.map} +0 -0
- /package/dist/{follow-up-tool-N5U7U5WN.js.map → follow-up-tool-TFWAMQUJ.js.map} +0 -0
- /package/dist/{hub-J43NXLW3.js.map → hub-XQBWXL7B.js.map} +0 -0
- /package/dist/{org-tool-VNDHR7WM.js.map → org-tool-QFMEZDCP.js.map} +0 -0
- /package/dist/{program-Q4DXWAQU.js.map → program-3VVBGLLL.js.map} +0 -0
- /package/dist/{promote-AO6KC3SU.js.map → promote-EB462QWA.js.map} +0 -0
- /package/dist/{query-W6OYKQ2U.js.map → query-CCK2XRY4.js.map} +0 -0
- /package/dist/{query-settings-2D6NCHCV.js.map → query-settings-GN6BHJYE.js.map} +0 -0
- /package/dist/{registry-Q3H6QR6Q.js.map → registry-4ANOXGFF.js.map} +0 -0
- /package/dist/{request-planner-SDO5MNFV.js.map → request-planner-GOK6HKMW.js.map} +0 -0
- /package/dist/{review-candidates-EAOLCDIK.js.map → review-candidates-G2NVWUWQ.js.map} +0 -0
- /package/dist/{routing-VDVZ4IYF.js.map → routing-PJLKDA5B.js.map} +0 -0
- /package/dist/{schedule-tool-65H6URQU.js.map → schedule-tool-FLHDCXKO.js.map} +0 -0
- /package/dist/{scheduler-B52UIMKB.js.map → scheduler-U3BGAWJE.js.map} +0 -0
- /package/dist/{seat-5DLUHBTK.js.map → seat-UGNKN7E2.js.map} +0 -0
- /package/dist/{select-Z3JDFC2C.js.map → select-TN7VIRKN.js.map} +0 -0
- /package/dist/{set-enabled-FMI2GXCF.js.map → set-enabled-L5MWK3CN.js.map} +0 -0
- /package/dist/{sprint-tool-5NJYOFIZ.js.map → sprint-tool-7RC34WQG.js.map} +0 -0
- /package/dist/{tool-YT3WBUHS.js.map → tool-6GPX3DWD.js.map} +0 -0
- /package/dist/{tool-ZSNE7YWS.js.map → tool-BVNY5YJD.js.map} +0 -0
- /package/dist/{tool-RW32VEIV.js.map → tool-XWBUVV3R.js.map} +0 -0
- /package/dist/{tool-2DOU5XCQ.js.map → tool-Y2BEVNYH.js.map} +0 -0
- /package/dist/{tool-AR4BLSYC.js.map → tool-YNBOPYM7.js.map} +0 -0
- /package/dist/{wiki-7PQ5YVA7.js.map → wiki-6B26AVZH.js.map} +0 -0
- /package/dist/{wiki-enrich-IQZ5Y7A5.js.map → wiki-enrich-LSCK7B3Z.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Cc as m,sc as l}from"./chunk-
|
|
1
|
+
import{Cc as m,sc as l}from"./chunk-EAA4RTPL.js";m();import{existsSync as g,readFileSync as u,writeFileSync as a,copyFileSync as y}from"fs";import{resolve as p}from"path";function P(e,n={}){let t=n.configPath||p(process.cwd(),"agentx.json");if(!g(t))throw new Error(`agentx.json not found at ${t}`);let i=JSON.parse(u(t,"utf-8")),o=e(i),s=typeof o=="string"?{summary:o}:o,c=JSON.stringify(i,null,2)+`
|
|
2
2
|
`,f=t+".tmp";a(f,c,"utf-8");try{JSON.parse(u(f,"utf-8"))}catch(d){throw new Error(`config did not round-trip cleanly: ${d.message}`)}let r;return n.skipBackup||(r=`${t}.bak.${Date.now()}`,y(t,r)),a(t,c,"utf-8"),n.skipReload||h().catch(()=>{}),{summary:s.summary,payload:s.payload,backupPath:r}}function S(e,n={}){let t=n.configPath||p(process.cwd(),"agentx.json");if(g(t)&&!n.overwrite)throw new Error(`agentx.json already exists at ${t}. Pass overwrite=true to replace it.`);return a(t,JSON.stringify(e,null,2)+`
|
|
3
3
|
`,"utf-8"),{file:t}}async function h(){try{let n=l().dashboard.daemonUrl?.replace(/\/+$/,"")||"http://127.0.0.1:18800";await fetch(`${n}/reload`,{method:"POST"}).catch(()=>null)}catch{}}export{P as a,S as b};
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
4
|
+
//# sourceMappingURL=chunk-ZN56KYVA.js.map
|
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-3VVBGLLL.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-H27ALSPN.js";import"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.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-5LLQG4ER.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$b as e,Ac as F,Cc as G,Xb as a,Yb as b,Zb as c,_b as d,ac as f,bc as g,cc as h,dc as i,ec as j,fc as k,gc as l,hc as m,ic as n,jc as o,kc as p,lc as q,mc as r,nc as s,oc as t,pc as u,qc as v,rc as w,sc as x,tc as y,uc as z,vc as A,wc as B,xc as C,yc as D,zc as E}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-
|
|
1
|
+
import{$b as e,Ac as F,Cc as G,Xb as a,Yb as b,Zb as c,_b as d,ac as f,bc as g,cc as h,dc as i,ec as j,fc as k,gc as l,hc as m,ic as n,jc as o,kc as p,lc as q,mc as r,nc as s,oc as t,pc as u,qc as v,rc as w,sc as x,tc as y,uc as z,vc as A,wc as B,xc as C,yc as D,zc as E}from"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";G();export{a as INTEGRATION_KINDS,B as WIKI_CONTRIBUTE_JOB,C as WIKI_CONTRIBUTE_MERGE_JOB,E as WIKI_SUMMARIZE_JOB,s as approvalsConfigSchema,g as callsSchema,e as cameraBotSchema,z as crossFieldProblems,v as daemonConfigSchema,c as emailAccountSchema,b as eventSubscriptionSchema,w as expandEnvVars,r as improveConfigSchema,f as isCronExpression,y as literalSecretProblems,x as loadDaemonConfig,d as mailSenderSchema,o as membersConfigSchema,j as mergePolicyConfigSchema,t as numbersConfigSchema,n as peopleConfigSchema,m as personSchema,q as qualityReportConfigSchema,p as requestStatusConfigSchema,l as requestsConfigSchema,h as reviewGateConfigSchema,i as trackersConfigSchema,A as validateWorkspaces,u as wallConfigSchema,k as watchersConfigSchema,D as withContributionJobs,F as withSummariesJob};
|
|
2
|
+
//# sourceMappingURL=config-KNKLPWMH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-mutate-
|
|
1
|
+
import{a,b}from"./chunk-ZN56KYVA.js";import"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";export{a as mutateAgentxConfig,b as writeAgentxConfig};
|
|
2
|
+
//# sourceMappingURL=config-mutate-4JRMXCGB.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-C3Z42ED7.js";import"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.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-4AV4CAXX.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-
|
|
1
|
+
import{a as ee}from"./chunk-EYF63IDK.js";import"./chunk-7NUR2QP3.js";import{f as Q,k as V}from"./chunk-IH65GDJR.js";import"./chunk-TDGKZS5M.js";import"./chunk-JTFCU5LH.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import{b as O}from"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-GU6YRU4D.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import{b as N,c as H}from"./chunk-AHWWJ7AF.js";import{b as X}from"./chunk-KEXBEUSU.js";import"./chunk-FN72BUPU.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-QUFIUXMQ.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.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-I45FR7MJ.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-BOC475ZY.js";import"./chunk-WMZ4TGMR.js";import"./chunk-2YDG5CSS.js";import"./chunk-AXHPKLVK.js";import"./chunk-IMLAPB7G.js";import"./chunk-QPABR72X.js";import"./chunk-KP7KDLZ2.js";import"./chunk-3323WFVK.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-LY4G7PCW.js";import"./chunk-7IW25T4K.js";import"./chunk-Q3A5P373.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-QUFIUXMQ.js";import"./chunk-OSH2PEBH.js";import"./chunk-7I7IEX4S.js";import"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.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-VA7PTEIO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{d as h}from"./chunk-
|
|
1
|
+
import{d as h}from"./chunk-6KM7GMXS.js";import"./chunk-KOLS57LW.js";import{b as I}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-KPVCP2TN.js";import"./chunk-C3Z42ED7.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.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-TFWAMQUJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=hub-
|
|
1
|
+
import{a,b}from"./chunk-DJRMS2WM.js";import"./chunk-2CMIDGL5.js";import"./chunk-GU6YRU4D.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-FN72BUPU.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{b as WikiHub,a as existingWikiDir};
|
|
2
|
+
//# sourceMappingURL=hub-XQBWXL7B.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -4209,6 +4209,11 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
4209
4209
|
sessionDir: z.ZodDefault<z.ZodString>;
|
|
4210
4210
|
defaultAgent: z.ZodOptional<z.ZodString>;
|
|
4211
4211
|
allowFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4212
|
+
/** Self-chat messages whose text starts with one of these (after leading
|
|
4213
|
+
* spaces and direction marks) are dropped before any run, with one log
|
|
4214
|
+
* line naming the message id. For pages that send to the owner's own
|
|
4215
|
+
* number, e.g. sign-in codes (noqta/noqta#777). Empty: no change. */
|
|
4216
|
+
selfChatSkipPrefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4212
4217
|
routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4213
4218
|
contact: z.ZodOptional<z.ZodString>;
|
|
4214
4219
|
group: z.ZodOptional<z.ZodString>;
|
|
@@ -4321,6 +4326,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
4321
4326
|
}[];
|
|
4322
4327
|
allowFrom?: string[] | undefined;
|
|
4323
4328
|
defaultAgent?: string | undefined;
|
|
4329
|
+
selfChatSkipPrefixes?: string[] | undefined;
|
|
4324
4330
|
}, {
|
|
4325
4331
|
enabled?: boolean | undefined;
|
|
4326
4332
|
ingest?: {
|
|
@@ -4343,6 +4349,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
4343
4349
|
sessionDir?: string | undefined;
|
|
4344
4350
|
allowFrom?: string[] | undefined;
|
|
4345
4351
|
defaultAgent?: string | undefined;
|
|
4352
|
+
selfChatSkipPrefixes?: string[] | undefined;
|
|
4346
4353
|
routes?: {
|
|
4347
4354
|
agent: string;
|
|
4348
4355
|
group?: string | undefined;
|
|
@@ -5192,6 +5199,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5192
5199
|
}[];
|
|
5193
5200
|
allowFrom?: string[] | undefined;
|
|
5194
5201
|
defaultAgent?: string | undefined;
|
|
5202
|
+
selfChatSkipPrefixes?: string[] | undefined;
|
|
5195
5203
|
};
|
|
5196
5204
|
webrtc: {
|
|
5197
5205
|
enabled: boolean;
|
|
@@ -5367,6 +5375,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5367
5375
|
sessionDir?: string | undefined;
|
|
5368
5376
|
allowFrom?: string[] | undefined;
|
|
5369
5377
|
defaultAgent?: string | undefined;
|
|
5378
|
+
selfChatSkipPrefixes?: string[] | undefined;
|
|
5370
5379
|
routes?: {
|
|
5371
5380
|
agent: string;
|
|
5372
5381
|
group?: string | undefined;
|
|
@@ -10804,18 +10813,39 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
10804
10813
|
"claude-code"?: string | undefined;
|
|
10805
10814
|
"codex-cli"?: string | undefined;
|
|
10806
10815
|
}>>;
|
|
10816
|
+
/** The most capable model per CLI engine. A job the task-edge seat is
|
|
10817
|
+
* sure needs it runs on this model; the next job is back on the
|
|
10818
|
+
* agent's own. Unset for an engine: no job moves up. */
|
|
10819
|
+
edgeModels: z.ZodOptional<z.ZodObject<{
|
|
10820
|
+
"claude-code": z.ZodOptional<z.ZodString>;
|
|
10821
|
+
"codex-cli": z.ZodOptional<z.ZodString>;
|
|
10822
|
+
}, "strip", z.ZodTypeAny, {
|
|
10823
|
+
"claude-code"?: string | undefined;
|
|
10824
|
+
"codex-cli"?: string | undefined;
|
|
10825
|
+
}, {
|
|
10826
|
+
"claude-code"?: string | undefined;
|
|
10827
|
+
"codex-cli"?: string | undefined;
|
|
10828
|
+
}>>;
|
|
10807
10829
|
}, "strip", z.ZodTypeAny, {
|
|
10808
10830
|
cheapModel?: string | undefined;
|
|
10809
10831
|
cheapModels?: {
|
|
10810
10832
|
"claude-code"?: string | undefined;
|
|
10811
10833
|
"codex-cli"?: string | undefined;
|
|
10812
10834
|
} | undefined;
|
|
10835
|
+
edgeModels?: {
|
|
10836
|
+
"claude-code"?: string | undefined;
|
|
10837
|
+
"codex-cli"?: string | undefined;
|
|
10838
|
+
} | undefined;
|
|
10813
10839
|
}, {
|
|
10814
10840
|
cheapModel?: string | undefined;
|
|
10815
10841
|
cheapModels?: {
|
|
10816
10842
|
"claude-code"?: string | undefined;
|
|
10817
10843
|
"codex-cli"?: string | undefined;
|
|
10818
10844
|
} | undefined;
|
|
10845
|
+
edgeModels?: {
|
|
10846
|
+
"claude-code"?: string | undefined;
|
|
10847
|
+
"codex-cli"?: string | undefined;
|
|
10848
|
+
} | undefined;
|
|
10819
10849
|
}>>;
|
|
10820
10850
|
}, "strip", z.ZodTypeAny, {
|
|
10821
10851
|
enabled: boolean;
|
|
@@ -10874,6 +10904,10 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
10874
10904
|
"claude-code"?: string | undefined;
|
|
10875
10905
|
"codex-cli"?: string | undefined;
|
|
10876
10906
|
} | undefined;
|
|
10907
|
+
edgeModels?: {
|
|
10908
|
+
"claude-code"?: string | undefined;
|
|
10909
|
+
"codex-cli"?: string | undefined;
|
|
10910
|
+
} | undefined;
|
|
10877
10911
|
};
|
|
10878
10912
|
}, {
|
|
10879
10913
|
enabled?: boolean | undefined;
|
|
@@ -10932,6 +10966,10 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
10932
10966
|
"claude-code"?: string | undefined;
|
|
10933
10967
|
"codex-cli"?: string | undefined;
|
|
10934
10968
|
} | undefined;
|
|
10969
|
+
edgeModels?: {
|
|
10970
|
+
"claude-code"?: string | undefined;
|
|
10971
|
+
"codex-cli"?: string | undefined;
|
|
10972
|
+
} | undefined;
|
|
10935
10973
|
} | undefined;
|
|
10936
10974
|
}>>;
|
|
10937
10975
|
/** Workflow engine — declarative state machines that bind channel events
|
|
@@ -12274,6 +12312,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12274
12312
|
}[];
|
|
12275
12313
|
allowFrom?: string[] | undefined;
|
|
12276
12314
|
defaultAgent?: string | undefined;
|
|
12315
|
+
selfChatSkipPrefixes?: string[] | undefined;
|
|
12277
12316
|
};
|
|
12278
12317
|
webrtc: {
|
|
12279
12318
|
enabled: boolean;
|
|
@@ -12819,6 +12858,10 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12819
12858
|
"claude-code"?: string | undefined;
|
|
12820
12859
|
"codex-cli"?: string | undefined;
|
|
12821
12860
|
} | undefined;
|
|
12861
|
+
edgeModels?: {
|
|
12862
|
+
"claude-code"?: string | undefined;
|
|
12863
|
+
"codex-cli"?: string | undefined;
|
|
12864
|
+
} | undefined;
|
|
12822
12865
|
};
|
|
12823
12866
|
};
|
|
12824
12867
|
workflows: {
|
|
@@ -13799,6 +13842,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
13799
13842
|
sessionDir?: string | undefined;
|
|
13800
13843
|
allowFrom?: string[] | undefined;
|
|
13801
13844
|
defaultAgent?: string | undefined;
|
|
13845
|
+
selfChatSkipPrefixes?: string[] | undefined;
|
|
13802
13846
|
routes?: {
|
|
13803
13847
|
agent: string;
|
|
13804
13848
|
group?: string | undefined;
|
|
@@ -14349,6 +14393,10 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
14349
14393
|
"claude-code"?: string | undefined;
|
|
14350
14394
|
"codex-cli"?: string | undefined;
|
|
14351
14395
|
} | undefined;
|
|
14396
|
+
edgeModels?: {
|
|
14397
|
+
"claude-code"?: string | undefined;
|
|
14398
|
+
"codex-cli"?: string | undefined;
|
|
14399
|
+
} | undefined;
|
|
14352
14400
|
} | undefined;
|
|
14353
14401
|
} | undefined;
|
|
14354
14402
|
workflows?: {
|
|
@@ -16292,6 +16340,12 @@ interface AgentTask {
|
|
|
16292
16340
|
workflowRunId?: string;
|
|
16293
16341
|
/** Per-invocation model override (e.g. cron model). Falls back to agent.model. */
|
|
16294
16342
|
model?: string;
|
|
16343
|
+
/** Model for the sub-agents this run starts, when the run was moved to
|
|
16344
|
+
* the edge model (agents/edge-routing.ts). Claude Code only. */
|
|
16345
|
+
subagentModel?: string;
|
|
16346
|
+
/** One line for this turn only, placed just before the message (the
|
|
16347
|
+
* sub-agent hint from agents/edge-routing.ts). */
|
|
16348
|
+
turnNote?: string;
|
|
16295
16349
|
/** What the person typed, when `message` wraps it in a prompt of the
|
|
16296
16350
|
* caller's own. The requests record keeps this text (#401). */
|
|
16297
16351
|
requestText?: string;
|
|
@@ -22667,6 +22721,8 @@ declare class WhatsAppAdapter implements ChannelAdapter {
|
|
|
22667
22721
|
private sessionDir;
|
|
22668
22722
|
private defaultAgent?;
|
|
22669
22723
|
private allowFrom?;
|
|
22724
|
+
/** Self-chat texts starting with one of these are dropped (noqta/noqta#777). */
|
|
22725
|
+
private selfChatSkipPrefixes?;
|
|
22670
22726
|
private routes;
|
|
22671
22727
|
private handler?;
|
|
22672
22728
|
private sock;
|
|
@@ -22700,6 +22756,9 @@ declare class WhatsAppAdapter implements ChannelAdapter {
|
|
|
22700
22756
|
sessionDir: string;
|
|
22701
22757
|
defaultAgent?: string;
|
|
22702
22758
|
allowFrom?: string[];
|
|
22759
|
+
/** Self-chat messages whose text starts with one of these are dropped
|
|
22760
|
+
* before any run, and from the history read for a session or the wiki. */
|
|
22761
|
+
selfChatSkipPrefixes?: string[];
|
|
22703
22762
|
routes?: WhatsAppRoute[];
|
|
22704
22763
|
onQR?: (qr: string | null) => void;
|
|
22705
22764
|
onStatus?: (status: "connecting" | "open" | "close", detail?: string) => void;
|
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-XYQDQKJJ.js";import"./chunk-H6MCLUQ6.js";import"./chunk-GTJIKXDB.js";import"./chunk-KK4S6EFA.js";import"./chunk-AXHPKLVK.js";import"./chunk-IMLAPB7G.js";import"./chunk-ZVP6GB4G.js";import"./chunk-MRIVENBY.js";import"./chunk-KQ3LPQ2Z.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-KFF4OCVD.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-ZN56KYVA.js";import"./chunk-A5GYG56I.js";import"./chunk-XKXDOOCL.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-RX5O5637.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-4SUB5MAF.js";import"./chunk-RVQSRSOM.js";import"./chunk-QPABR72X.js";import"./chunk-KOLS57LW.js";import"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{Na as yt,r as lt,s as ct,t as dt,u as mt,v as pt}from"./chunk-JVIGFWD5.js";import"./chunk-OMBRW453.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-NNLN5XLV.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-6TTGRTDO.js";import"./chunk-EFXZACH4.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-7YOLZGB5.js";import"./chunk-IH65GDJR.js";import{u as ut}from"./chunk-KPVCP2TN.js";import"./chunk-C3Z42ED7.js";import"./chunk-3UOTLMXD.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-KWWBDLE6.js";import"./chunk-HVMUYEQP.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-FG2FPOML.js";import"./chunk-VWTBHLMX.js";import"./chunk-TDGKZS5M.js";import"./chunk-JTFCU5LH.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-BE64IJWM.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-MYVHVJWZ.js";import"./chunk-74MHOALB.js";import"./chunk-3323WFVK.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-LY4G7PCW.js";import"./chunk-DPG6VHPX.js";import"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-Z5CMA4JN.js";import"./chunk-DJRMS2WM.js";import{a as ht}from"./chunk-2CMIDGL5.js";import{f as gt,g as ft}from"./chunk-GU6YRU4D.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-MXKFIBSW.js";import{j as it,k as rt,l as at}from"./chunk-FN72BUPU.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-7IW25T4K.js";import"./chunk-Q3A5P373.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-QUFIUXMQ.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{Cc as nt,qc as tt,sc as st,vc as ot}from"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.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{d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=org-tool-
|
|
1
|
+
import{d}from"./chunk-6KM7GMXS.js";import"./chunk-KOLS57LW.js";import{b as c}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-KPVCP2TN.js";import"./chunk-C3Z42ED7.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-EAA4RTPL.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.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-QFMEZDCP.js.map
|