agentix-cli 0.213.2 → 0.213.3
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/{agent-2GK32HCI.js → agent-KUCECPSZ.js} +2 -2
- package/dist/{board-dashboard-6JUASBDZ.js → board-dashboard-RWX4F43G.js} +3 -3
- package/dist/{chunk-2CO3NK6Z.js → chunk-3327JD6L.js} +2 -2
- package/dist/{chunk-7T5Y4H2J.js → chunk-3GWIV2YO.js} +2 -2
- package/dist/chunk-4NZ4T3TQ.js +3 -0
- package/dist/{chunk-MNG2AMKZ.js.map → chunk-4NZ4T3TQ.js.map} +1 -1
- package/dist/{chunk-GJOKXP5D.js → chunk-6UTOBSEA.js} +2 -2
- package/dist/{chunk-UPWNWSK3.js → chunk-D7B35QCZ.js} +4 -4
- package/dist/{chunk-NERO7F3J.js → chunk-M4H2RYP4.js} +2 -2
- package/dist/chunk-OQQTV3OF.js +12 -0
- package/dist/chunk-OQQTV3OF.js.map +1 -0
- package/dist/{chunk-EUJT7JT3.js → chunk-SBFMNAJG.js} +3 -3
- package/dist/{chunk-ZMGDHLZD.js → chunk-SMZQLUJH.js} +2 -2
- package/dist/{chunk-3JH3HUHX.js → chunk-UNVZUWOY.js} +2 -2
- package/dist/{chunk-WAVO3U3I.js → chunk-YR6GDF4W.js} +3 -3
- package/dist/chunk-YR6GDF4W.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/{doctor-ABJSFSMM.js → doctor-TK7LVXJ6.js} +2 -2
- package/dist/{grants-TWDH3Z4K.js → grants-U2734ZHZ.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{program-VCNJHSWN.js → program-GXEVAQRW.js} +284 -282
- package/dist/program-GXEVAQRW.js.map +1 -0
- package/dist/{registry-QTFATS6J.js → registry-D727ZQUP.js} +2 -2
- package/dist/{tool-Z2YLBCN7.js → tool-L3CQUOAZ.js} +2 -2
- package/dist/{workspace-setup-PIPGUMLG.js → workspace-setup-VGXHYCD5.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-MNG2AMKZ.js +0 -3
- package/dist/chunk-WAVO3U3I.js.map +0 -1
- package/dist/chunk-XL7UWG36.js +0 -12
- package/dist/chunk-XL7UWG36.js.map +0 -1
- package/dist/program-VCNJHSWN.js.map +0 -1
- /package/dist/{agent-2GK32HCI.js.map → agent-KUCECPSZ.js.map} +0 -0
- /package/dist/{board-dashboard-6JUASBDZ.js.map → board-dashboard-RWX4F43G.js.map} +0 -0
- /package/dist/{chunk-2CO3NK6Z.js.map → chunk-3327JD6L.js.map} +0 -0
- /package/dist/{chunk-7T5Y4H2J.js.map → chunk-3GWIV2YO.js.map} +0 -0
- /package/dist/{chunk-GJOKXP5D.js.map → chunk-6UTOBSEA.js.map} +0 -0
- /package/dist/{chunk-UPWNWSK3.js.map → chunk-D7B35QCZ.js.map} +0 -0
- /package/dist/{chunk-NERO7F3J.js.map → chunk-M4H2RYP4.js.map} +0 -0
- /package/dist/{chunk-EUJT7JT3.js.map → chunk-SBFMNAJG.js.map} +0 -0
- /package/dist/{chunk-ZMGDHLZD.js.map → chunk-SMZQLUJH.js.map} +0 -0
- /package/dist/{chunk-3JH3HUHX.js.map → chunk-UNVZUWOY.js.map} +0 -0
- /package/dist/{doctor-ABJSFSMM.js.map → doctor-TK7LVXJ6.js.map} +0 -0
- /package/dist/{grants-TWDH3Z4K.js.map → grants-U2734ZHZ.js.map} +0 -0
- /package/dist/{registry-QTFATS6J.js.map → registry-D727ZQUP.js.map} +0 -0
- /package/dist/{tool-Z2YLBCN7.js.map → tool-L3CQUOAZ.js.map} +0 -0
- /package/dist/{workspace-setup-PIPGUMLG.js.map → workspace-setup-VGXHYCD5.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Aa as e,Ba as f,Ca as g,Da as h,Ea as i,Fa as j,Ga as k,Ha as l,Ia as m,Ja as n,Ka as o,La as p,wa as a,xa as b,ya as c,za as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=registry-
|
|
1
|
+
import{Aa as e,Ba as f,Ca as g,Da as h,Ea as i,Fa as j,Ga as k,Ha as l,Ia as m,Ja as n,Ka as o,La as p,wa as a,xa as b,ya as c,za as d}from"./chunk-SBFMNAJG.js";import"./chunk-FR4DTMCA.js";import"./chunk-MEFPXHQJ.js";import"./chunk-7AB3QUGH.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-IH65GDJR.js";import"./chunk-CAH6TNC6.js";import"./chunk-N476XZD3.js";import"./chunk-3UOTLMXD.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-KWWBDLE6.js";import"./chunk-LIY5CHUV.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-SZDACK6O.js";import"./chunk-VWTBHLMX.js";import"./chunk-XHON5WB5.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-M4H2RYP4.js";import"./chunk-OQQTV3OF.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-LY4G7PCW.js";import"./chunk-DPG6VHPX.js";import"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-HPRLRD4P.js";import"./chunk-RMXG5GNW.js";import"./chunk-ZRBTLW2B.js";import"./chunk-Z7632XS3.js";import"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-JKMFKNGS.js";import"./chunk-MIUITI47.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"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-DSYKYZMT.js";import"./chunk-KAM4ZWRE.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-YSCT6DPR.js";import"./chunk-VQRY4IDI.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{o as AgentRegistry,f as DEFAULT_SLOT_WAIT_MS,a as EDIT_TOOL_INSTRUCTION,j as TRACE_STEP_SUMMARY_BYTES,g as buildEntryMeta,h as buildEventDigest,i as buildWikiContext,k as clipForTrace,b as codingInstructions,n as emitTraceStepsFromStreamEvent,m as firstMissingRequiredTool,d as getGlobalRegistry,e as lastActivityLine,p as richReplyPrompt,c as setGlobalRegistry,l as tallyToolUses};
|
|
2
|
+
//# sourceMappingURL=registry-D727ZQUP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as y}from"./chunk-UUOCCLIL.js";import"./chunk-RKPAVWXF.js";import{b as u}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-H4DWZIU7.js";import"./chunk-CAH6TNC6.js";import"./chunk-N476XZD3.js";import"./chunk-3UOTLMXD.js";import{
|
|
1
|
+
import{b as y}from"./chunk-UUOCCLIL.js";import"./chunk-RKPAVWXF.js";import{b as u}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-H4DWZIU7.js";import"./chunk-CAH6TNC6.js";import"./chunk-N476XZD3.js";import"./chunk-3UOTLMXD.js";import{h as f}from"./chunk-4NZ4T3TQ.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-KAM4ZWRE.js";import"./chunk-KEUW6YLL.js";import"./chunk-N47Y5ADQ.js";import"./chunk-YSCT6DPR.js";import"./chunk-VQRY4IDI.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=y(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"?f(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-L3CQUOAZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as a,r as b,s as c,t as d,u as e,v as f,w as g,x as h,y as i,z as j}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=workspace-setup-
|
|
1
|
+
import{q as a,r as b,s as c,t as d,u as e,v as f,w as g,x as h,y as i,z as j}from"./chunk-M4H2RYP4.js";import"./chunk-OQQTV3OF.js";import"./chunk-4NZ4T3TQ.js";import"./chunk-LY4G7PCW.js";import"./chunk-7I7IEX4S.js";import"./chunk-QIJLFPWE.js";export{c as MCP_GUARD_CURL_S,d as MCP_GUARD_HOOK_TIMEOUT_S,b as generateClaudeMd,e as mcpGuardHookCommand,f as midTurnHookCommand,h as patchGuardrails,i as patchObservationPack,a as readManagedHash,j as setupAllWorkspaces,g as setupWorkspace};
|
|
2
|
+
//# sourceMappingURL=workspace-setup-VGXHYCD5.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentix-cli",
|
|
3
|
-
"version": "0.213.
|
|
3
|
+
"version": "0.213.3",
|
|
4
4
|
"description": "AI staff for a small company: they find sales, answer clients, write your posts and watch the money, on a machine you own. You approve what matters. 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": {
|
package/dist/chunk-MNG2AMKZ.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var i={count:3,label:120,draft:2e3,say:160,context:600,text:4e3},g="{choice}";function a(e){return typeof e=="string"?e.replace(/\s+/g," ").trim():""}function l(e){return typeof e=="string"?e.replace(/\r\n?/g,`
|
|
2
|
-
`).trim():""}function k(e){let r={};if(e.choices!==void 0&&e.choices!==null){if(!Array.isArray(e.choices))return{ok:!1,error:"choices must be a list of short labels"};let t=e.choices.map(a).filter(Boolean);if(t.length!==e.choices.length)return{ok:!1,error:"every choice must be a non-empty label"};if(t.length>i.count)return{ok:!1,error:`at most ${i.count} choices`};if(t.some(c=>c.length>i.label))return{ok:!1,error:`a choice is longer than ${i.label} characters`};if(new Set(t).size!==t.length)return{ok:!1,error:"choices must be different from each other"};t.length&&(r.choices=t)}let n=l(e.draft);if(n){if(n.length>i.draft)return{ok:!1,error:`draft is longer than ${i.draft} characters`};r.draft=n}let o=a(e.say);if(o){if(o.length>i.say)return{ok:!1,error:`say is longer than ${i.say} characters`};r.say=o}let s=l(e.context);if(s){if(s.length>i.context)return{ok:!1,error:`context is longer than ${i.context} characters`};r.context=s}return{ok:!0,value:r}}function d(e,r){return e?r?e.split(g).join(r):e:""}function x(e){let r=(e.recommend??"").trim(),n=r.toLowerCase(),o=e.choices??[],s=-1;if(o.forEach((c,h)=>{!n.startsWith(c.toLowerCase())||!/^\s*($|[:,.;–—-](\s|$))/.test(r.slice(c.length))||(s<0||c.length>o[s].length)&&(s=h)}),s<0)return{index:s,why:r};let t=r.slice(o[s].length).replace(/^[\s:,.;–—-]+/,"");return{index:s,why:t.slice(0,1).toUpperCase()+t.slice(1)}}function p(e,r,n){if(r==="no")return{ok:!0};let o,s=!1,t=e.choices??[];if(n.choice!==void 0&&n.choice!==""){if(!t.length)return{ok:!1,error:"this card has no choices"};let h=typeof n.choice=="number"?n.choice:Number(n.choice);if(Number.isInteger(h)&&h>=1&&h<=t.length)o=t[h-1];else if(t.includes(a(n.choice)))o=a(n.choice);else return{ok:!1,error:`choice must be 1-${t.length} or one of the labels`}}else if(t.length){let h=x({recommend:e.recommend,choices:t});if(h.index<0)return{ok:!1,error:`this card offers choices and suggests none: pick one of ${t.map((f,u)=>`${u+1}. ${f}`).join(", ")} (\`agentx approvals approve <key> --choice <n>\`)`};o=t[h.index],s=!0}let c=l(n.text);return!c&&e.draft&&(c=d(e.draft,o)),c.length>i.text?{ok:!1,error:`text is longer than ${i.text} characters`}:{ok:!0,...o?{choice:o}:{},...c?{text:c}:{},...s?{suggested:!0}:{}}}function y(e){let r=[];return e.choice&&r.push(`Chosen: ${e.choice}${e.choice_suggested?" (a plain yes, taken as the suggested option)":""}`),e.text&&r.push("Approved text (send exactly this, the operator may have edited it):",e.text),r}export{i as a,g as b,k as c,d,x as e,p as f,y as g};
|
|
3
|
-
//# sourceMappingURL=chunk-MNG2AMKZ.js.map
|