agentix-cli 0.148.0 → 0.150.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 (36) hide show
  1. package/apps/mac-helper/Sources/AgentXHelper/AXTree.swift +14 -2
  2. package/dist/{board-dashboard-KXSZIMWV.js → board-dashboard-VPDXHHWC.js} +4 -4
  3. package/dist/{board-dashboard-KXSZIMWV.js.map → board-dashboard-VPDXHHWC.js.map} +1 -1
  4. package/dist/chunk-A76PNG4E.js +4 -0
  5. package/dist/chunk-A76PNG4E.js.map +1 -0
  6. package/dist/{chunk-MMBFAVBR.js → chunk-JOHDOEZ4.js} +2 -2
  7. package/dist/chunk-MNG2AMKZ.js +3 -0
  8. package/dist/chunk-MNG2AMKZ.js.map +1 -0
  9. package/dist/{chunk-OIMJLAWD.js → chunk-P34VSROA.js} +2 -2
  10. package/dist/{chunk-INT5PIF3.js → chunk-QZ6VBDMX.js} +40 -40
  11. package/dist/chunk-QZ6VBDMX.js.map +1 -0
  12. package/dist/{chunk-CHBZHUIF.js → chunk-UZWF7PFH.js} +2 -2
  13. package/dist/{chunk-S5NGIJDI.js → chunk-WGPMUWX7.js} +2 -2
  14. package/dist/{chunk-CJVAIAD7.js → chunk-Y5GI35AZ.js} +285 -285
  15. package/dist/{chunk-CJVAIAD7.js.map → chunk-Y5GI35AZ.js.map} +1 -1
  16. package/dist/cli.js +1 -1
  17. package/dist/{doctor-5R6X7JH6.js → doctor-IN6MWP6I.js} +2 -2
  18. package/dist/{grants-O7SJ2J4B.js → grants-2S33F2LV.js} +2 -2
  19. package/dist/index.js +1 -1
  20. package/dist/{program-VS6QDZNX.js → program-ZNTQK36Z.js} +203 -203
  21. package/dist/program-ZNTQK36Z.js.map +1 -0
  22. package/dist/{tool-PLM6Z42O.js → tool-B23ACEHV.js} +2 -2
  23. package/package.json +1 -1
  24. package/dist/chunk-INT5PIF3.js.map +0 -1
  25. package/dist/chunk-TJZGAKIB.js +0 -4
  26. package/dist/chunk-TJZGAKIB.js.map +0 -1
  27. package/dist/chunk-VY7TBMJU.js +0 -3
  28. package/dist/chunk-VY7TBMJU.js.map +0 -1
  29. package/dist/program-VS6QDZNX.js.map +0 -1
  30. /package/dist/{chunk-MMBFAVBR.js.map → chunk-JOHDOEZ4.js.map} +0 -0
  31. /package/dist/{chunk-OIMJLAWD.js.map → chunk-P34VSROA.js.map} +0 -0
  32. /package/dist/{chunk-CHBZHUIF.js.map → chunk-UZWF7PFH.js.map} +0 -0
  33. /package/dist/{chunk-S5NGIJDI.js.map → chunk-WGPMUWX7.js.map} +0 -0
  34. /package/dist/{doctor-5R6X7JH6.js.map → doctor-IN6MWP6I.js.map} +0 -0
  35. /package/dist/{grants-O7SJ2J4B.js.map → grants-2S33F2LV.js.map} +0 -0
  36. /package/dist/{tool-PLM6Z42O.js.map → tool-B23ACEHV.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{b as f}from"./chunk-GRI5HOPC.js";import"./chunk-RKPAVWXF.js";import{f as y}from"./chunk-VY7TBMJU.js";import"./chunk-5QXRPYOY.js";import{b as u}from"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import"./chunk-6YNRLI6I.js";import"./chunk-E7LPZAXP.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-PXKIPU27.js";import"./chunk-BRK6M6LA.js";import"./chunk-UIBUZ2N3.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";var w=new Set(["cron","heartbeat","api","a2a","mesh","approvals","requests"]);function c(t){return typeof t=="string"?t.trim():""}async function b(t,s){let d=s.fetch??fetch,l=s.daemonUrl.replace(/\/$/,""),i=(c(t.action)||"create").toLowerCase(),o=f(t,s.env??process.env);if(i==="status"){let n=c(t.id);if(!n)return"Error: `id` is required for status (the card id you got when you raised it).";try{let a=await d(`${l}/approvals/${encodeURIComponent(n)}`,{signal:AbortSignal.timeout(1e4)}),r=await a.json().catch(()=>({}));if(!a.ok)return`Error: ${r?.error||`HTTP ${a.status}`}`;let e=r.card;if(o&&e.raised_by!==o.agentId)return`Error: card "${n}" was raised by another agent.`;if(e.status==="pending")return`Card ${e.id} is still waiting for the operator. It expires ${e.expires}; then "${e.if_silent}" applies.`;if(e.status==="decided"){let h=e.verdict==="yes"?y(e).join(`
1
+ import{b as f}from"./chunk-GRI5HOPC.js";import"./chunk-RKPAVWXF.js";import{g as y}from"./chunk-MNG2AMKZ.js";import"./chunk-5QXRPYOY.js";import{b as u}from"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import"./chunk-6YNRLI6I.js";import"./chunk-E7LPZAXP.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-PXKIPU27.js";import"./chunk-BRK6M6LA.js";import"./chunk-UIBUZ2N3.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";var w=new Set(["cron","heartbeat","api","a2a","mesh","approvals","requests"]);function c(t){return typeof t=="string"?t.trim():""}async function b(t,s){let d=s.fetch??fetch,l=s.daemonUrl.replace(/\/$/,""),i=(c(t.action)||"create").toLowerCase(),o=f(t,s.env??process.env);if(i==="status"){let n=c(t.id);if(!n)return"Error: `id` is required for status (the card id you got when you raised it).";try{let a=await d(`${l}/approvals/${encodeURIComponent(n)}`,{signal:AbortSignal.timeout(1e4)}),r=await a.json().catch(()=>({}));if(!a.ok)return`Error: ${r?.error||`HTTP ${a.status}`}`;let e=r.card;if(o&&e.raised_by!==o.agentId)return`Error: card "${n}" was raised by another agent.`;if(e.status==="pending")return`Card ${e.id} is still waiting for the operator. It expires ${e.expires}; then "${e.if_silent}" applies.`;if(e.status==="decided"){let h=e.verdict==="yes"?y(e).join(`
2
2
  `):"";return`Card ${e.id}: the operator said ${String(e.verdict).toUpperCase()}.${e.note?` Note: ${e.note}`:""}${h?`
3
3
  ${h}`:""}`}return e.status==="resolved"?`Card ${e.id} was closed by ${e.raised_by}: ${e.resolution??"answered outside the card"}.`:`Card ${e.id} expired unanswered; the default applied: ${e.outcome??e.if_silent}.`}catch(a){return`Error: couldn't reach the daemon (${a?.message??a}).`}}if(i==="resolve"){let n=c(t.id),a=c(t.reason);if(!n)return"Error: `id` is required for resolve (the card id you got when you raised it).";if(!a)return'Error: `reason` is required for resolve: where the owner answered and what you did, e.g. "approved in chat, done".';if(!o)return"Error: couldn't tell which agent you are. Pass callerAgentId.";try{let r=await d(`${l}/approvals/${encodeURIComponent(n)}/resolve`,{method:"POST",headers:{"Content-Type":"application/json",...u(s.env??process.env)},body:JSON.stringify({raised_by:o.agentId,reason:a}),signal:AbortSignal.timeout(1e4)}),e=await r.json().catch(()=>({}));return r.ok?`Card ${e.card.id} is closed. It left the operator's inbox, so nobody will be asked about it again.`:`Error: ${e?.error||`HTTP ${r.status}`}`}catch(r){return`Error: couldn't reach the daemon (${r?.message??r}).`}}if(i!=="create")return`Error: unknown action "${i}". Use create, status or resolve.`;if(!o)return"Error: couldn't tell which agent you are. Pass callerAgentId.";let p=o.channel&&o.chatId&&!w.has(o.channel)?{channel:o.channel,chatId:o.chatId,...o.accountId?{accountId:o.accountId}:{}}:void 0,$={title:t.title,ask:t.ask,recommend:t.recommend,if_silent:t.if_silent,expires:t.expires,source:t.source,choices:t.choices,draft:t.draft,say:t.say,context:t.context,followup:t.followup,raised_by:o.agentId,...p?{reply:p}:{}};try{let n=await d(`${l}/approvals`,{method:"POST",headers:{"Content-Type":"application/json",...u(s.env??process.env)},body:JSON.stringify($),signal:AbortSignal.timeout(1e4)}),a=await n.json().catch(()=>({}));if(!n.ok)return`Error: ${a?.error||`HTTP ${n.status}`}`;let r=a.card;return[`Decision card ${r.id} is in the operator's Approvals inbox.`,`If nobody answers by ${r.expires}, "${r.if_silent}" applies.`,"You will get a message with the result. Tell the requester it is waiting for approval; don't ask the operator again in chat.",`If the operator answers the same thing in chat and you act on it, close the card with {action:"resolve", id:"${r.id}", reason:"approved in chat, done"} so it is not asked again.`].join(" ")}catch(n){return`Error: couldn't reach the daemon (${n?.message??n}).`}}export{b as runApprovalTool};
4
- //# sourceMappingURL=tool-PLM6Z42O.js.map
4
+ //# sourceMappingURL=tool-B23ACEHV.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentix-cli",
3
- "version": "0.148.0",
3
+ "version": "0.150.0",
4
4
  "description": "The self-hosted agent harness for small teams. Runs a team of AI agents across Telegram, WhatsApp, GitLab, GitHub, crons, webhooks and mesh tasks, on Claude Code, Codex, OpenCode or any LLM API. Web wizard for operators, CLI for engineers.",
5
5
  "license": "MIT",
6
6
  "author": {