agentix-cli 0.148.0 → 0.149.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/{board-dashboard-KXSZIMWV.js → board-dashboard-VPDXHHWC.js} +4 -4
- package/dist/{board-dashboard-KXSZIMWV.js.map → board-dashboard-VPDXHHWC.js.map} +1 -1
- package/dist/chunk-A76PNG4E.js +4 -0
- package/dist/chunk-A76PNG4E.js.map +1 -0
- package/dist/{chunk-MMBFAVBR.js → chunk-JOHDOEZ4.js} +2 -2
- package/dist/chunk-MNG2AMKZ.js +3 -0
- package/dist/chunk-MNG2AMKZ.js.map +1 -0
- package/dist/{chunk-OIMJLAWD.js → chunk-P34VSROA.js} +2 -2
- package/dist/{chunk-INT5PIF3.js → chunk-QZ6VBDMX.js} +40 -40
- package/dist/chunk-QZ6VBDMX.js.map +1 -0
- package/dist/{chunk-CHBZHUIF.js → chunk-UZWF7PFH.js} +2 -2
- package/dist/{chunk-S5NGIJDI.js → chunk-WGPMUWX7.js} +2 -2
- package/dist/{chunk-CJVAIAD7.js → chunk-XNS5OQ3U.js} +164 -164
- package/dist/{chunk-CJVAIAD7.js.map → chunk-XNS5OQ3U.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/{doctor-5R6X7JH6.js → doctor-IN6MWP6I.js} +2 -2
- package/dist/{grants-O7SJ2J4B.js → grants-2S33F2LV.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{program-VS6QDZNX.js → program-OTENO5DS.js} +172 -172
- package/dist/program-OTENO5DS.js.map +1 -0
- package/dist/{tool-PLM6Z42O.js → tool-B23ACEHV.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-INT5PIF3.js.map +0 -1
- package/dist/chunk-TJZGAKIB.js +0 -4
- package/dist/chunk-TJZGAKIB.js.map +0 -1
- package/dist/chunk-VY7TBMJU.js +0 -3
- package/dist/chunk-VY7TBMJU.js.map +0 -1
- package/dist/program-VS6QDZNX.js.map +0 -1
- /package/dist/{chunk-MMBFAVBR.js.map → chunk-JOHDOEZ4.js.map} +0 -0
- /package/dist/{chunk-OIMJLAWD.js.map → chunk-P34VSROA.js.map} +0 -0
- /package/dist/{chunk-CHBZHUIF.js.map → chunk-UZWF7PFH.js.map} +0 -0
- /package/dist/{chunk-S5NGIJDI.js.map → chunk-WGPMUWX7.js.map} +0 -0
- /package/dist/{doctor-5R6X7JH6.js.map → doctor-IN6MWP6I.js.map} +0 -0
- /package/dist/{grants-O7SJ2J4B.js.map → grants-2S33F2LV.js.map} +0 -0
- /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{
|
|
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-
|
|
4
|
+
//# sourceMappingURL=tool-B23ACEHV.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentix-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.149.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": {
|