agentix-cli 0.25.0 → 0.26.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.
Files changed (57) hide show
  1. package/README.md +2 -0
  2. package/dist/{App-6Y7B3YQH.js → App-BPNHIGUX.js} +2 -2
  3. package/dist/{ChatApp-KIEUJ2DS.js → ChatApp-6XSSZB4U.js} +2 -2
  4. package/dist/{agent-QGZIAZMY.js → agent-5QMITZT6.js} +2 -2
  5. package/dist/{board-dashboard-CQ5F4GPD.js → board-dashboard-M3372FLO.js} +1191 -225
  6. package/dist/board-dashboard-M3372FLO.js.map +1 -0
  7. package/dist/{chunk-JXWAGMI2.js → chunk-BTHHSY7D.js} +7 -7
  8. package/dist/chunk-BTHHSY7D.js.map +1 -0
  9. package/dist/{chunk-TRJTTBE2.js → chunk-BVGJSPW4.js} +2 -2
  10. package/dist/{chunk-53GCFZPR.js → chunk-D46VZ7K7.js} +2 -2
  11. package/dist/{chunk-HA3XI7Z2.js → chunk-E5CXCI33.js} +27 -27
  12. package/dist/chunk-E5CXCI33.js.map +1 -0
  13. package/dist/{chunk-FDMWOPEL.js → chunk-K2CAPYES.js} +2 -2
  14. package/dist/{chunk-TMKLHTCG.js → chunk-METYYZKQ.js} +264 -120
  15. package/dist/chunk-METYYZKQ.js.map +1 -0
  16. package/dist/{chunk-Q6YO7LYE.js → chunk-MTAPOCGA.js} +2 -2
  17. package/dist/{chunk-G57RZCXM.js → chunk-O6YPEOQF.js} +2 -2
  18. package/dist/{chunk-KUCCW2VG.js → chunk-UHE5FCPB.js} +8 -8
  19. package/dist/{chunk-LNXCJWOU.js → chunk-V3U4OF7L.js} +2 -2
  20. package/dist/{chunk-NGSIRE4X.js → chunk-VT5XYFDD.js} +2 -2
  21. package/dist/cli.js +1 -1
  22. package/dist/client-HGKAC6VP.js +2 -0
  23. package/dist/{config-7FSZFRTQ.js → config-A4RWEJHV.js} +2 -2
  24. package/dist/config-mutator-MNSFUN7D.js +2 -0
  25. package/dist/doctor-3Q36ZFE6.js +2 -0
  26. package/dist/index.d.ts +58 -1
  27. package/dist/index.js +1 -1
  28. package/dist/{program-WVAVJFND.js → program-SAUNRCCD.js} +2 -2
  29. package/dist/{registry-T36ZIAWV.js → registry-HK3WQ7BS.js} +2 -2
  30. package/dist/scheduler-6T2SU5ST.js +2 -0
  31. package/package.json +1 -1
  32. package/dist/board-dashboard-CQ5F4GPD.js.map +0 -1
  33. package/dist/chunk-HA3XI7Z2.js.map +0 -1
  34. package/dist/chunk-JXWAGMI2.js.map +0 -1
  35. package/dist/chunk-TMKLHTCG.js.map +0 -1
  36. package/dist/client-GGVVLOOF.js +0 -2
  37. package/dist/config-mutator-POCOYYJ4.js +0 -2
  38. package/dist/doctor-DHLBEKA4.js +0 -2
  39. package/dist/scheduler-GH7TIKYS.js +0 -2
  40. /package/dist/{App-6Y7B3YQH.js.map → App-BPNHIGUX.js.map} +0 -0
  41. /package/dist/{ChatApp-KIEUJ2DS.js.map → ChatApp-6XSSZB4U.js.map} +0 -0
  42. /package/dist/{agent-QGZIAZMY.js.map → agent-5QMITZT6.js.map} +0 -0
  43. /package/dist/{chunk-TRJTTBE2.js.map → chunk-BVGJSPW4.js.map} +0 -0
  44. /package/dist/{chunk-53GCFZPR.js.map → chunk-D46VZ7K7.js.map} +0 -0
  45. /package/dist/{chunk-FDMWOPEL.js.map → chunk-K2CAPYES.js.map} +0 -0
  46. /package/dist/{chunk-Q6YO7LYE.js.map → chunk-MTAPOCGA.js.map} +0 -0
  47. /package/dist/{chunk-G57RZCXM.js.map → chunk-O6YPEOQF.js.map} +0 -0
  48. /package/dist/{chunk-KUCCW2VG.js.map → chunk-UHE5FCPB.js.map} +0 -0
  49. /package/dist/{chunk-LNXCJWOU.js.map → chunk-V3U4OF7L.js.map} +0 -0
  50. /package/dist/{chunk-NGSIRE4X.js.map → chunk-VT5XYFDD.js.map} +0 -0
  51. /package/dist/{client-GGVVLOOF.js.map → client-HGKAC6VP.js.map} +0 -0
  52. /package/dist/{config-7FSZFRTQ.js.map → config-A4RWEJHV.js.map} +0 -0
  53. /package/dist/{config-mutator-POCOYYJ4.js.map → config-mutator-MNSFUN7D.js.map} +0 -0
  54. /package/dist/{doctor-DHLBEKA4.js.map → doctor-3Q36ZFE6.js.map} +0 -0
  55. /package/dist/{program-WVAVJFND.js.map → program-SAUNRCCD.js.map} +0 -0
  56. /package/dist/{registry-T36ZIAWV.js.map → registry-HK3WQ7BS.js.map} +0 -0
  57. /package/dist/{scheduler-GH7TIKYS.js.map → scheduler-6T2SU5ST.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import{d as m,e as $}from"./chunk-JXWAGMI2.js";import{readFileSync as S,writeFileSync as x,existsSync as b}from"fs";import{resolve as f}from"path";function P(r){if(r)return f(r);let e=[f(process.cwd(),"agentx.json"),f(process.cwd(),".agentx/config.json")];for(let n of e)if(b(n))return n;return e[0]}function w(r){return JSON.parse(JSON.stringify(r))}async function v(r){try{let e=await fetch(`${r.replace(/\/$/,"")}/reload`,{method:"POST",signal:AbortSignal.timeout(3e3)});return e.ok?{ok:!0}:{ok:!1,reason:`HTTP ${e.status}`}}catch(e){return{ok:!1,reason:e?.cause?.code||e?.message||"unreachable"}}}async function T(r,e={}){let{validate:n=!0,dryRun:t=!1,reload:s=!0,configPath:u,daemonUrl:c}=e,o=P(u);if(!b(o))return{success:!1,path:o,error:`Config not found at ${o}. Run \`agentx init\` first.`};let d;try{d=S(o,"utf-8")}catch(a){return{success:!1,path:o,error:`Cannot read ${o}: ${a.message}`}}let g;try{g=JSON.parse(d)}catch(a){return{success:!1,path:o,error:`Invalid JSON in ${o}: ${a.message}`}}let i=w(g);try{await r(i)}catch(a){return{success:!1,path:o,error:`Mutator threw: ${a.message}`}}if(n){let a=$(i),l=m.safeParse(a);if(!l.success){let k=l.error.issues.map(y=>` ${y.path.join(".")||"<root>"}: ${y.message}`).join(`
1
+ import{d as m,e as $}from"./chunk-BTHHSY7D.js";import{readFileSync as S,writeFileSync as x,existsSync as b}from"fs";import{resolve as f}from"path";function P(r){if(r)return f(r);let e=[f(process.cwd(),"agentx.json"),f(process.cwd(),".agentx/config.json")];for(let n of e)if(b(n))return n;return e[0]}function w(r){return JSON.parse(JSON.stringify(r))}async function v(r){try{let e=await fetch(`${r.replace(/\/$/,"")}/reload`,{method:"POST",signal:AbortSignal.timeout(3e3)});return e.ok?{ok:!0}:{ok:!1,reason:`HTTP ${e.status}`}}catch(e){return{ok:!1,reason:e?.cause?.code||e?.message||"unreachable"}}}async function T(r,e={}){let{validate:n=!0,dryRun:t=!1,reload:s=!0,configPath:u,daemonUrl:c}=e,o=P(u);if(!b(o))return{success:!1,path:o,error:`Config not found at ${o}. Run \`agentx init\` first.`};let d;try{d=S(o,"utf-8")}catch(a){return{success:!1,path:o,error:`Cannot read ${o}: ${a.message}`}}let g;try{g=JSON.parse(d)}catch(a){return{success:!1,path:o,error:`Invalid JSON in ${o}: ${a.message}`}}let i=w(g);try{await r(i)}catch(a){return{success:!1,path:o,error:`Mutator threw: ${a.message}`}}if(n){let a=$(i),l=m.safeParse(a);if(!l.success){let k=l.error.issues.map(y=>` ${y.path.join(".")||"<root>"}: ${y.message}`).join(`
2
2
  `);return{success:!1,path:o,error:`Validation failed:
3
3
  ${k}`,after:i}}}if(t)return{success:!0,path:o,after:i,dryRun:!0};try{x(o,JSON.stringify(i,null,2)+`
4
4
  `)}catch(a){return{success:!1,path:o,error:`Write failed: ${a.message}`,after:i}}let p=!1,h;if(s){let a=c||O(i),l=await v(a);l.ok?p=!0:h=l.reason}return{success:!0,path:o,after:i,reloaded:p,reloadSkipped:h}}function O(r){let e=r?.node?.bind;if(!e)return"http://127.0.0.1:18800";let[n,t]=e.split(":");return`http://${n==="0.0.0.0"||n==="::"?"127.0.0.1":n}:${t}`}function J(r,e,n){let t=e.split("."),s=r;for(let u=0;u<t.length-1;u++){let c=t[u];(s[c]===void 0||s[c]===null)&&(s[c]={}),s=s[c]}s[t[t.length-1]]=n}function N(r,e){let n=e.split("."),t=r;for(let s of n){if(t==null)return;t=t[s]}return t}function j(r,e){let n=e.split("."),t=r;for(let s=0;s<n.length-1;s++){if(t==null)return;t=t[n[s]]}t!=null&&delete t[n[n.length-1]]}export{T as a,J as b,N as c,j as d};
5
- //# sourceMappingURL=chunk-FDMWOPEL.js.map
5
+ //# sourceMappingURL=chunk-K2CAPYES.js.map