agentix-cli 0.79.1 → 0.79.2
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-NZQQXETO.js → App-PFMTQ7J5.js} +2 -2
- package/dist/{ChatApp-CSVN3PRK.js → ChatApp-ZBSU2F6J.js} +2 -2
- package/dist/{agent-RTZDVG5B.js → agent-AMU6E27Z.js} +2 -2
- package/dist/{board-dashboard-SI5GP3XR.js → board-dashboard-PCRI2TGB.js} +4 -4
- package/dist/{chunk-2YIWQ57T.js → chunk-2ACZWM7F.js} +2 -2
- package/dist/{chunk-3OIFSKSR.js → chunk-2ZQ42Q4L.js} +2 -2
- package/dist/{chunk-B5VRY4NI.js → chunk-6SJTBTDG.js} +2 -2
- package/dist/{chunk-QAKL2D7O.js → chunk-7QRCAHPX.js} +2 -2
- package/dist/{chunk-2WRWBPDL.js → chunk-CNSPC4BZ.js} +2 -2
- package/dist/{chunk-Y4EWOE4N.js → chunk-DVTLDW66.js} +13 -13
- package/dist/{chunk-QIMIARFO.js → chunk-EAYHYAF3.js} +2 -2
- package/dist/{chunk-TQT4XDNN.js → chunk-EUVMKZUC.js} +2 -2
- package/dist/{chunk-EOBFJGTV.js → chunk-H7SL56KH.js} +3 -3
- package/dist/{chunk-QJM2D22B.js → chunk-HJ5FE33W.js} +222 -218
- package/dist/chunk-HJ5FE33W.js.map +1 -0
- package/dist/{chunk-N2A3KIVY.js → chunk-HTKSZZXK.js} +2 -2
- package/dist/{chunk-THZOPGSP.js → chunk-LNQOJC57.js} +2 -2
- package/dist/{chunk-2XSVV3M3.js → chunk-LPDQ2KK4.js} +2 -2
- package/dist/{chunk-P5KHF46N.js → chunk-M4XUZA3O.js} +2 -2
- package/dist/{chunk-3AFZBXNX.js → chunk-MGCTX2BB.js} +2 -2
- package/dist/{chunk-IXWPA6WM.js → chunk-R7WZUUYO.js} +2 -2
- package/dist/{chunk-PF5ZXMEG.js → chunk-RD5EKHGZ.js} +2 -2
- package/dist/{chunk-VIUCCUJ4.js → chunk-WNI2P7S6.js} +2 -2
- package/dist/{chunk-IWQURDYO.js → chunk-WVYOXM45.js} +2 -2
- package/dist/{chunk-SYXAEWFN.js → chunk-X6WZ54UJ.js} +5 -5
- package/dist/{chunk-ZBRZ5T2G.js → chunk-XFCSJUGY.js} +2 -2
- package/dist/{chunk-KH4PKJGD.js → chunk-YKPISR5J.js} +1 -1
- package/dist/{chunk-KH4PKJGD.js.map → chunk-YKPISR5J.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/client-XAE7NLE2.js +2 -0
- package/dist/{config-OQVGSZWB.js → config-5HAWFIEL.js} +2 -2
- package/dist/config-mutator-Y7KAC4AC.js +2 -0
- package/dist/{doctor-NHEB7IMW.js → doctor-DST4SVW4.js} +2 -2
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/program-ONVBE267.js +2 -0
- package/dist/{promote-O6Y2RG4K.js → promote-CQCRZCYB.js} +2 -2
- package/dist/{query-J3XX5U3P.js → query-WSLKGCQN.js} +2 -2
- package/dist/{registry-DBLLSQ75.js → registry-6HKQKIBD.js} +2 -2
- package/dist/{request-planner-NP2XHSMV.js → request-planner-TNDIQMHS.js} +2 -2
- package/dist/{review-candidates-J3OBF4GM.js → review-candidates-SXVIYCVE.js} +2 -2
- package/dist/{routing-VTQBG767.js → routing-GQWG65DQ.js} +2 -2
- package/dist/schedule-tool-WXRMJMW6.js +2 -0
- package/dist/scheduler-YW6JFH3Z.js +2 -0
- package/dist/{seat-NBQOUDGU.js → seat-K2JSQIZ4.js} +2 -2
- package/dist/{select-T5FEWTZA.js → select-WKMMUWLU.js} +2 -2
- package/dist/{set-enabled-2GHZXDEA.js → set-enabled-RIE3PLNJ.js} +2 -2
- package/dist/{tool-6WLJTCE5.js → tool-TAMRBONN.js} +2 -2
- package/dist/wiki-WBRXHY7J.js +2 -0
- package/package.json +1 -1
- package/dist/chunk-QJM2D22B.js.map +0 -1
- package/dist/client-TZPRACLX.js +0 -2
- package/dist/config-mutator-BA7YVYJY.js +0 -2
- package/dist/program-TSFYLHMZ.js +0 -2
- package/dist/schedule-tool-RQBVG3ZJ.js +0 -2
- package/dist/scheduler-BHXA74R6.js +0 -2
- package/dist/wiki-ZB6KMJKX.js +0 -2
- /package/dist/{App-NZQQXETO.js.map → App-PFMTQ7J5.js.map} +0 -0
- /package/dist/{ChatApp-CSVN3PRK.js.map → ChatApp-ZBSU2F6J.js.map} +0 -0
- /package/dist/{agent-RTZDVG5B.js.map → agent-AMU6E27Z.js.map} +0 -0
- /package/dist/{board-dashboard-SI5GP3XR.js.map → board-dashboard-PCRI2TGB.js.map} +0 -0
- /package/dist/{chunk-2YIWQ57T.js.map → chunk-2ACZWM7F.js.map} +0 -0
- /package/dist/{chunk-3OIFSKSR.js.map → chunk-2ZQ42Q4L.js.map} +0 -0
- /package/dist/{chunk-B5VRY4NI.js.map → chunk-6SJTBTDG.js.map} +0 -0
- /package/dist/{chunk-QAKL2D7O.js.map → chunk-7QRCAHPX.js.map} +0 -0
- /package/dist/{chunk-2WRWBPDL.js.map → chunk-CNSPC4BZ.js.map} +0 -0
- /package/dist/{chunk-Y4EWOE4N.js.map → chunk-DVTLDW66.js.map} +0 -0
- /package/dist/{chunk-QIMIARFO.js.map → chunk-EAYHYAF3.js.map} +0 -0
- /package/dist/{chunk-TQT4XDNN.js.map → chunk-EUVMKZUC.js.map} +0 -0
- /package/dist/{chunk-EOBFJGTV.js.map → chunk-H7SL56KH.js.map} +0 -0
- /package/dist/{chunk-N2A3KIVY.js.map → chunk-HTKSZZXK.js.map} +0 -0
- /package/dist/{chunk-THZOPGSP.js.map → chunk-LNQOJC57.js.map} +0 -0
- /package/dist/{chunk-2XSVV3M3.js.map → chunk-LPDQ2KK4.js.map} +0 -0
- /package/dist/{chunk-P5KHF46N.js.map → chunk-M4XUZA3O.js.map} +0 -0
- /package/dist/{chunk-3AFZBXNX.js.map → chunk-MGCTX2BB.js.map} +0 -0
- /package/dist/{chunk-IXWPA6WM.js.map → chunk-R7WZUUYO.js.map} +0 -0
- /package/dist/{chunk-PF5ZXMEG.js.map → chunk-RD5EKHGZ.js.map} +0 -0
- /package/dist/{chunk-VIUCCUJ4.js.map → chunk-WNI2P7S6.js.map} +0 -0
- /package/dist/{chunk-IWQURDYO.js.map → chunk-WVYOXM45.js.map} +0 -0
- /package/dist/{chunk-SYXAEWFN.js.map → chunk-X6WZ54UJ.js.map} +0 -0
- /package/dist/{chunk-ZBRZ5T2G.js.map → chunk-XFCSJUGY.js.map} +0 -0
- /package/dist/{client-TZPRACLX.js.map → client-XAE7NLE2.js.map} +0 -0
- /package/dist/{config-OQVGSZWB.js.map → config-5HAWFIEL.js.map} +0 -0
- /package/dist/{config-mutator-BA7YVYJY.js.map → config-mutator-Y7KAC4AC.js.map} +0 -0
- /package/dist/{doctor-NHEB7IMW.js.map → doctor-DST4SVW4.js.map} +0 -0
- /package/dist/{program-TSFYLHMZ.js.map → program-ONVBE267.js.map} +0 -0
- /package/dist/{promote-O6Y2RG4K.js.map → promote-CQCRZCYB.js.map} +0 -0
- /package/dist/{query-J3XX5U3P.js.map → query-WSLKGCQN.js.map} +0 -0
- /package/dist/{registry-DBLLSQ75.js.map → registry-6HKQKIBD.js.map} +0 -0
- /package/dist/{request-planner-NP2XHSMV.js.map → request-planner-TNDIQMHS.js.map} +0 -0
- /package/dist/{review-candidates-J3OBF4GM.js.map → review-candidates-SXVIYCVE.js.map} +0 -0
- /package/dist/{routing-VTQBG767.js.map → routing-GQWG65DQ.js.map} +0 -0
- /package/dist/{schedule-tool-RQBVG3ZJ.js.map → schedule-tool-WXRMJMW6.js.map} +0 -0
- /package/dist/{scheduler-BHXA74R6.js.map → scheduler-YW6JFH3Z.js.map} +0 -0
- /package/dist/{seat-NBQOUDGU.js.map → seat-K2JSQIZ4.js.map} +0 -0
- /package/dist/{select-T5FEWTZA.js.map → select-WKMMUWLU.js.map} +0 -0
- /package/dist/{set-enabled-2GHZXDEA.js.map → set-enabled-RIE3PLNJ.js.map} +0 -0
- /package/dist/{tool-6WLJTCE5.js.map → tool-TAMRBONN.js.map} +0 -0
- /package/dist/{wiki-ZB6KMJKX.js.map → wiki-WBRXHY7J.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as n}from"./chunk-
|
|
2
|
+
import{a as n}from"./chunk-DVTLDW66.js";import"./chunk-EUVMKZUC.js";import"./chunk-CNSPC4BZ.js";import"./chunk-LPDQ2KK4.js";import"./chunk-Z3IP66SL.js";import"./chunk-O5U5NVLR.js";import"./chunk-RKPAVWXF.js";import"./chunk-HJ5FE33W.js";import"./chunk-H7SL56KH.js";import"./chunk-R7WZUUYO.js";import"./chunk-S2GAEH2F.js";import"./chunk-7XB2CVC3.js";import"./chunk-CL53UVOF.js";import"./chunk-ZVP6GB4G.js";import"./chunk-2ZQ42Q4L.js";import"./chunk-AQASR6KR.js";import"./chunk-2D3RYIDU.js";import"./chunk-EKJG63EJ.js";import"./chunk-X6WZ54UJ.js";import"./chunk-2ACZWM7F.js";import"./chunk-WP6KLXTP.js";import"./chunk-N6EWZGIX.js";import"./chunk-DP7RTNDM.js";import"./chunk-XFCSJUGY.js";import"./chunk-SFQUP3BP.js";import"./chunk-Y4CYQV7G.js";import"./chunk-WVYOXM45.js";import"./chunk-2AXFYDWF.js";import"./chunk-SZDACK6O.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-6SJTBTDG.js";import"./chunk-HTKSZZXK.js";import"./chunk-VWTBHLMX.js";import"./chunk-M4XUZA3O.js";import"./chunk-RD5EKHGZ.js";import"./chunk-KA2UIZXG.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-EAYHYAF3.js";import"./chunk-MYVHVJWZ.js";import"./chunk-DWADWDMU.js";import"./chunk-23A5K5UW.js";import"./chunk-QD6IICK7.js";import"./chunk-CECHWYJ2.js";import"./chunk-MGCTX2BB.js";import"./chunk-WNI2P7S6.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-QOYAX2FT.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-JHCI6XCJ.js";import"./chunk-DSYKYZMT.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";var r=["SIGINT","SIGTERM"];function o(t=process){for(let i of r)t.on(i,()=>{t.listenerCount(i)<=1&&t.exit(0)})}o();async function s(){let t=await n();if(process.argv.slice(2).length===0){t.outputHelp();return}t.parse()}s();
|
|
3
3
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as d,B as e,C as f,D as g,E as h,F as i,H as j,x as a,y as b,z as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-
|
|
1
|
+
import{A as d,B as e,C as f,D as g,E as h,F as i,H as j,x as a,y as b,z as c}from"./chunk-YKPISR5J.js";import"./chunk-QIJLFPWE.js";j();export{a as INTEGRATION_KINDS,e as approvalsConfigSchema,d as callsSchema,c as cameraBotSchema,f as daemonConfigSchema,b as eventSubscriptionSchema,g as expandEnvVars,h as loadDaemonConfig,i as validateWorkspaces};
|
|
2
|
+
//# sourceMappingURL=config-5HAWFIEL.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}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}from"./chunk-CNSPC4BZ.js";import"./chunk-S2GAEH2F.js";import"./chunk-YKPISR5J.js";import"./chunk-QIJLFPWE.js";export{f as daemonVoiceCheck,b as doctor,e as nodeVersionSupported,a as runDoctorChecks,c as runNotificationChecks,d as runReminderChecks};
|
|
2
|
+
//# sourceMappingURL=doctor-DST4SVW4.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -4481,7 +4481,8 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
4481
4481
|
dueWithinHours: z.ZodDefault<z.ZodNumber>;
|
|
4482
4482
|
/** Most agents one pass asks to write a card, whatever they answer. */
|
|
4483
4483
|
maxAsksPerPass: z.ZodDefault<z.ZodNumber>;
|
|
4484
|
-
/** How long an agent may take to write one card
|
|
4484
|
+
/** How long an agent may take to write one card, counted from the start
|
|
4485
|
+
* of its turn. The turn is stopped at the limit. */
|
|
4485
4486
|
composeTimeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
4486
4487
|
}, "strip", z.ZodTypeAny, {
|
|
4487
4488
|
enabled: boolean;
|
|
@@ -8085,6 +8086,11 @@ interface PassResult {
|
|
|
8085
8086
|
carded: string[];
|
|
8086
8087
|
skipped: number;
|
|
8087
8088
|
failed: number;
|
|
8089
|
+
/** The reminders that failed, each with the reason. */
|
|
8090
|
+
failures: {
|
|
8091
|
+
title: string;
|
|
8092
|
+
why: string;
|
|
8093
|
+
}[];
|
|
8088
8094
|
}
|
|
8089
8095
|
|
|
8090
8096
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as L}from"./chunk-C245D4BZ.js";import{d as St,e as kt,f as vt,g as xt,ga as Tt,h as $t,ha as Mt,i as Ct,j as Pt,k as bt}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-C245D4BZ.js";import{d as St,e as kt,f as vt,g as xt,ga as Tt,h as $t,ha as Mt,i as Ct,j as Pt,k as bt}from"./chunk-HJ5FE33W.js";import"./chunk-H7SL56KH.js";import"./chunk-R7WZUUYO.js";import"./chunk-S2GAEH2F.js";import"./chunk-7XB2CVC3.js";import"./chunk-CL53UVOF.js";import"./chunk-ZVP6GB4G.js";import"./chunk-2ZQ42Q4L.js";import"./chunk-AQASR6KR.js";import"./chunk-2D3RYIDU.js";import"./chunk-EKJG63EJ.js";import{T as yt,k as lt,l as ct,m as dt,n as mt,o as pt}from"./chunk-X6WZ54UJ.js";import"./chunk-2ACZWM7F.js";import"./chunk-WP6KLXTP.js";import"./chunk-N6EWZGIX.js";import"./chunk-DP7RTNDM.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-XFCSJUGY.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-Y4CYQV7G.js";import"./chunk-WVYOXM45.js";import"./chunk-2AXFYDWF.js";import"./chunk-SZDACK6O.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import{s as ut}from"./chunk-6SJTBTDG.js";import"./chunk-HTKSZZXK.js";import"./chunk-VWTBHLMX.js";import"./chunk-M4XUZA3O.js";import{a as ht}from"./chunk-RD5EKHGZ.js";import"./chunk-KA2UIZXG.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-EAYHYAF3.js";import"./chunk-MYVHVJWZ.js";import"./chunk-DWADWDMU.js";import"./chunk-23A5K5UW.js";import"./chunk-QD6IICK7.js";import"./chunk-CECHWYJ2.js";import"./chunk-MGCTX2BB.js";import{f as gt,g as ft}from"./chunk-WNI2P7S6.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import{j as it,k as rt,l as at}from"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-QOYAX2FT.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-5MUJZODV.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{C as tt,E as st,F as ot,H as nt}from"./chunk-YKPISR5J.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).
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-DVTLDW66.js";import"./chunk-EUVMKZUC.js";import"./chunk-CNSPC4BZ.js";import"./chunk-LPDQ2KK4.js";import"./chunk-Z3IP66SL.js";import"./chunk-O5U5NVLR.js";import"./chunk-RKPAVWXF.js";import"./chunk-HJ5FE33W.js";import"./chunk-H7SL56KH.js";import"./chunk-R7WZUUYO.js";import"./chunk-S2GAEH2F.js";import"./chunk-7XB2CVC3.js";import"./chunk-CL53UVOF.js";import"./chunk-ZVP6GB4G.js";import"./chunk-2ZQ42Q4L.js";import"./chunk-AQASR6KR.js";import"./chunk-2D3RYIDU.js";import"./chunk-EKJG63EJ.js";import"./chunk-X6WZ54UJ.js";import"./chunk-2ACZWM7F.js";import"./chunk-WP6KLXTP.js";import"./chunk-N6EWZGIX.js";import"./chunk-DP7RTNDM.js";import"./chunk-XFCSJUGY.js";import"./chunk-SFQUP3BP.js";import"./chunk-Y4CYQV7G.js";import"./chunk-WVYOXM45.js";import"./chunk-2AXFYDWF.js";import"./chunk-SZDACK6O.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-6SJTBTDG.js";import"./chunk-HTKSZZXK.js";import"./chunk-VWTBHLMX.js";import"./chunk-M4XUZA3O.js";import"./chunk-RD5EKHGZ.js";import"./chunk-KA2UIZXG.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-EAYHYAF3.js";import"./chunk-MYVHVJWZ.js";import"./chunk-DWADWDMU.js";import"./chunk-23A5K5UW.js";import"./chunk-QD6IICK7.js";import"./chunk-CECHWYJ2.js";import"./chunk-MGCTX2BB.js";import"./chunk-WNI2P7S6.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-QOYAX2FT.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-JHCI6XCJ.js";import"./chunk-DSYKYZMT.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{a as buildProgram};
|
|
2
|
+
//# sourceMappingURL=program-ONVBE267.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,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t as s,u as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=promote-
|
|
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,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t as s,u as t}from"./chunk-2ZQ42Q4L.js";import"./chunk-AQASR6KR.js";import"./chunk-DP7RTNDM.js";import"./chunk-2AXFYDWF.js";import"./chunk-RD5EKHGZ.js";import"./chunk-CECHWYJ2.js";import"./chunk-WNI2P7S6.js";import"./chunk-WPNRDEHW.js";import"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-QOYAX2FT.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{b as DEFAULT_PROMOTE_TYPES,a as PROMOTER_OWNER,c as PROMOTION_LEDGER_FILE,j as appendPromotionLedger,s as approveProposal,n as callPromotionLlm,p as estimateTokens,r as evidenceFor,m as getUnpromotedMemories,k as groupCandidates,h as listAllAgentMemories,d as memoryKey,e as memoryStamp,g as mergeSources,f as parseMemoryStamp,l as parsePromotionResponse,i as readPromotionLedger,t as rejectProposal,o as runPromotion,q as sourceKind};
|
|
2
|
+
//# sourceMappingURL=promote-CQCRZCYB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=query-
|
|
1
|
+
import{a,b,c}from"./chunk-MGCTX2BB.js";import"./chunk-WNI2P7S6.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-QOYAX2FT.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{b as DEFAULT_GRAPH_WEIGHT,a as agenticQuery,c as rankCatalogPool};
|
|
2
|
+
//# sourceMappingURL=query-WSLKGCQN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{J as a,K as b,L as c,M as d,N as e,O as f,P as g,Q as h,R as i,S as j,T as k,U as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=registry-
|
|
1
|
+
import{J as a,K as b,L as c,M as d,N as e,O as f,P as g,Q as h,R as i,S as j,T as k,U as l}from"./chunk-X6WZ54UJ.js";import"./chunk-2ACZWM7F.js";import"./chunk-WP6KLXTP.js";import"./chunk-N6EWZGIX.js";import"./chunk-DP7RTNDM.js";import"./chunk-SZDACK6O.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-6SJTBTDG.js";import"./chunk-HTKSZZXK.js";import"./chunk-VWTBHLMX.js";import"./chunk-M4XUZA3O.js";import"./chunk-RD5EKHGZ.js";import"./chunk-KA2UIZXG.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-EAYHYAF3.js";import"./chunk-MYVHVJWZ.js";import"./chunk-DWADWDMU.js";import"./chunk-23A5K5UW.js";import"./chunk-QD6IICK7.js";import"./chunk-CECHWYJ2.js";import"./chunk-MGCTX2BB.js";import"./chunk-WNI2P7S6.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-QOYAX2FT.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-DSYKYZMT.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{k as AgentRegistry,f as TRACE_STEP_SUMMARY_BYTES,c as buildEntryMeta,d as buildEventDigest,e as buildWikiContext,g as clipForTrace,j as emitTraceStepsFromStreamEvent,i as firstMissingRequiredTool,b as getGlobalRegistry,l as richReplyPrompt,a as setGlobalRegistry,h as tallyToolUses};
|
|
2
|
+
//# sourceMappingURL=registry-6HKQKIBD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as m,t as p,v as d,w as x}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=request-planner-
|
|
1
|
+
import{q as m,t as p,v as d,w as x}from"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import{a as u,f}from"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";x();f();var l="request-gate",h="request-context",g=.1;async function q(t,o,c,r=Math.random){let s=p(l)==="active";if(s){let i=m().seats[l]?.holdout??g;if(r()<i)return{active:!0,preprocess:!1,arm:"holdout"}}let a=s?"treatment":void 0,e=await d(l,{request:t.slice(0,2e3),agent:o,channel:c,operations:["select optional context","evaluate model routing where permitted"],constraints:["Keep the original request and mandatory instructions","Desktop model cannot be downgraded"]},{preprocess:u("This request benefits from structured context selection or another bounded typed decision before the main agent executes.",{true:"Relevant context must be selected, or a bounded routing decision can help. Follow-ups and ambiguous references need context.",false:"Typed preprocessing adds no useful decision; send the request to the configured main agent with existing context."})},{timeoutMs:3e3});if(!e||e.mode!=="active")return{active:!1,preprocess:!1,arm:a};let n=e.answers.preprocess?.noul;return{active:!0,preprocess:Number.isFinite(n)&&n>=.5,arm:a}}var v={landscape:"Agent directory and mesh overview",patternContext:"Learned behavioral patterns",references:"Retrieved project references",memoryContext:"Retrieved agent memory",crossChatContext:"Summaries from other conversations",longMemoryRecall:"Older conversation recall",wikiContext:"Retrieved wiki knowledge"};async function b(t){let o=Object.entries(v).flatMap(([e,n])=>{let i=t[e];return i?[{id:e,description:n,source:e,characters:i.length,preview:i.slice(0,400),trust:"context data, not instructions"}]:[]});if(!o.length)return{input:t,excluded:[]};let c=Object.fromEntries(o.map(e=>[e.id,u(`Context block ${e.id} is relevant to completing the current request correctly.`,{true:"Needed or potentially relevant; retain if uncertain or the preview is incomplete.",false:"Clearly unrelated to the current request; safe to omit."})])),r=await d(h,{request:t.message.slice(0,2e3),channel:t.channel,agent:t.agentId,mandatory:["request","identity","permissions and instructions","same-chat history","handover","attachments"],context:o},c,{timeoutMs:3e3});if(!r||r.mode!=="active")return{input:t,excluded:[]};let s={...t},a=[];for(let e of o){let n=r.answers[e.id]?.noul;Number.isFinite(n)&&n>=0&&n<.2&&(delete s[e.id],a.push(e.id))}return{input:s,excluded:a}}export{g as DEFAULT_REQUEST_GATE_HOLDOUT,h as REQUEST_CONTEXT_SEAT,l as REQUEST_GATE_SEAT,q as evaluateRequest,b as selectRequestContext};
|
|
2
|
+
//# sourceMappingURL=request-planner-TNDIQMHS.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as I}from"./chunk-
|
|
1
|
+
import{b as I}from"./chunk-R7WZUUYO.js";import"./chunk-WP6KLXTP.js";import"./chunk-2GIDVZ4H.js";import"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";import{createHash as E}from"crypto";var v="review:",b={decisions:"project",warnings:"feedback",friction:"feedback",context:"reference"};function A(t,n,r){let s=E("sha1").update(r.trim().toLowerCase()).digest("hex").slice(0,10);return`${v}${t}/${n}@${s}`}function F(t){if(!t.startsWith(v))return null;let n=t.slice(v.length),r=n.lastIndexOf("@"),s=n.lastIndexOf("/",r===-1?void 0:r);return r===-1||s===-1?null:{reviewId:n.slice(0,s),kind:n.slice(s+1,r),digest:n.slice(r+1)}}var C=t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,48)||"finding",L=5;function T(t,n){return`${t}|${I(n)}`}function K(t,n={}){let r=n.kinds??Object.keys(b),s=n.minLength??24,h=[],d=new Map,u=new Map,f=new Map,x=new Map;for(let e of t){let i;try{i=JSON.parse(e.result)}catch{continue}let o=e.updated_at?new Date(e.updated_at).toISOString():new Date().toISOString();for(let c of r){let l=b[c];if(!l)continue;let R=i[c];if(Array.isArray(R))for(let $ of R){let a=String($?.text??"").trim();if(a.length<s)continue;let g=A(e.id,c,a),_=g.slice(g.lastIndexOf("@")),w=`${c}${_}`,y=T(c,a),S=f.get(y)??new Set;if(S.add(e.session_id??e.id),f.set(y,S),d.has(w))continue;let O=String($?.evidence??"").trim(),k={occurrences:1,agentId:e.agent,key:`${e.agent}/${l}_${C(a)}`,stamp:g,memory:{name:C(a),type:l,description:a.slice(0,200),body:"",createdAt:o,updatedAt:o}};x.set(g,{text:a,evidence:O,agent:e.agent,source:e.source}),d.set(w,k),u.set(w,y),h.push(k)}}}for(let[e,i]of d){let o=f.get(u.get(e)??"");i.occurrences=o?.size??1,i.sessions=[...o??[]].slice(0,L);let c=x.get(i.stamp);i.memory.body=D(c,i.occurrences)}let m=new Map;for(let[e,i]of d){let o=u.get(e)??e,c=m.get(o)??[];c.push(i),m.set(o,c)}let M=[...m.values()].sort((e,i)=>i[0].occurrences-e[0].occurrences),p=[];for(let e=0;p.length<h.length;e++){let i=!1;for(let o of M)e<o.length&&(p.push(o[e]),i=!0);if(!i)break}return p}function D(t,n){let r=`${t.agent}${t.source?` via ${t.source}`:""}`,s=[];return n>1?(s.push(`Observed in ${n} separate sessions. Most recently stated as:`),s.push(`> ${t.text}`),s.push(`Recurring across ${n} sessions is what makes this worth recording \u2014 any single occurrence is session state, the repetition is the finding.`)):s.push(t.text),t.evidence&&s.push(`**Evidence:** ${t.evidence}`),s.push(`_From ${n>1?"session reviews":"a session review"} of ${r}._`),s.join(`
|
|
2
2
|
|
|
3
3
|
`)}export{L as MAX_EVIDENCE_SESSIONS,b as PROMOTABLE_KINDS,v as REVIEW_STAMP_PREFIX,F as parseReviewStamp,A as reviewStamp,K as reviewsToCandidates};
|
|
4
|
-
//# sourceMappingURL=review-candidates-
|
|
4
|
+
//# sourceMappingURL=review-candidates-SXVIYCVE.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=routing-
|
|
1
|
+
import{a,b}from"./chunk-EAYHYAF3.js";import"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{a as cheapModelForEngine,b as routeTaskModel};
|
|
2
|
+
//# sourceMappingURL=routing-GQWG65DQ.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b}from"./chunk-LNQOJC57.js";import"./chunk-RKPAVWXF.js";import"./chunk-WVYOXM45.js";import"./chunk-6SJTBTDG.js";import"./chunk-HTKSZZXK.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-QIJLFPWE.js";export{b as resolveScheduleCaller,a as runScheduleTool};
|
|
2
|
+
//# sourceMappingURL=schedule-tool-WXRMJMW6.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as a,o as b,p as c,q as d,r as e,s as f}from"./chunk-6SJTBTDG.js";import"./chunk-HTKSZZXK.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-QIJLFPWE.js";export{a as AGENT_RUN_TIMEOUT_FLOOR,f as CronScheduler,b as agentRunTimeout,e as cronRunId,d as getNextCronDate,c as runLinkIds};
|
|
2
|
+
//# sourceMappingURL=scheduler-YW6JFH3Z.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as a,p as b,q as c,r as d,s as e,t as f,u as g,v as h,w as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=seat-
|
|
1
|
+
import{o as a,p as b,q as c,r as d,s as e,t as f,u as g,v as h,w as i}from"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";i();export{h as askSeat,a as configureDecisions,c as decisionsRuntime,f as getSeatMode,d as parseSeatMode,g as recordSeatOutcome,b as resetDecisionsRuntime,e as seatEnvVar};
|
|
2
|
+
//# sourceMappingURL=seat-K2JSQIZ4.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as S,w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=select-
|
|
1
|
+
import{v as S,w}from"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import{a as g,b as h,f as R}from"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import{e as f}from"./chunk-JHCI6XCJ.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";w();R();var p="skill-select";function y(l){return{task:d(l.task,1200),...l.agent?{agent:l.agent}:{},skills:l.candidates.map(t=>({name:t.name,purpose:d(t.description,300),...t.category?{category:t.category}:{},...t.tags?.length?{tags:t.tags.slice(0,8)}:{}}))}}function b(l){let t={};for(let i of l)t[i.name]=d(i.description,300);return{anyRelevant:g("At least one of these skills is about the task at hand.",{true:"The task is the kind of work one of these skills exists for, and following it would change how the work is done \u2014 it names the same system, the same procedure or the same kind of artefact.",false:"None of them is about this task. They may share vocabulary with it, mention the same tools, or belong to the same project without bearing on what is being asked. Sharing words with a task is not being about it."}),best:h(t,"Which skill is this task most about?")}}function v(l){let t=l.anyRelevant,i=l.best,o=Object.entries(i.probabilities??{}).map(([e,s])=>({name:e,p:Number(s)||0})).sort((e,s)=>s.p-e.p);return{anyRelevant:t.noul,name:i.choice,confidence:i.confidence,ranked:o}}function d(l,t){return l.length>t?`${l.slice(0,t)}\u2026`:l}var x=.1,A=12;async function E(l,t,i={}){let o=i.minRelevant??.6,e=f(l,t).filter(n=>n.relevance>=x).slice(0,A),s=e.map(n=>({name:n.skill.frontmatter.name,lexical:n.relevance}));if(e.length===0)return{skill:null,anyRelevant:0,confidence:0,shortlist:s,judged:!1,reason:"no skill mentions anything in this task"};if(e.length===1)return{skill:e[0].skill,anyRelevant:e[0].relevance,confidence:e[0].relevance,shortlist:s,judged:!1,reason:`only ${e[0].skill.frontmatter.name} matched (${e[0].matchReason})`};let r=e.map(n=>({name:n.skill.frontmatter.name,description:n.skill.frontmatter.description,category:n.skill.frontmatter.category??null,tags:n.skill.frontmatter.tags})),m=await S(p,y({task:t,agent:i.agent??null,candidates:r}),b(r),{incumbent:{best:r[0].name},features:{agent:i.agent??"unknown",candidates:r.length}});if(!m)return{skill:e[0].skill,anyRelevant:e[0].relevance,confidence:e[0].relevance,shortlist:s,judged:!1,reason:`seat off \u2014 lexical top match (${e[0].matchReason})`};let a=v(m.answers),c=s.map(n=>({...n,p:a.ranked.find(k=>k.name===n.name)?.p??0})).sort((n,k)=>(k.p??0)-(n.p??0));if(a.anyRelevant<o)return{skill:null,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`nothing on the shortlist is about this task (${a.anyRelevant.toFixed(2)} below ${o})`};let u=e.find(n=>n.skill.frontmatter.name===a.name);return u?{skill:u.skill,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`${a.name} (confidence ${a.confidence.toFixed(2)})`}:{skill:null,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`seat chose "${a.name}", which was not on the shortlist`}}export{E as pickSkillForTask};
|
|
2
|
+
//# sourceMappingURL=select-WKMMUWLU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=set-enabled-
|
|
1
|
+
import{b as a}from"./chunk-HTKSZZXK.js";import"./chunk-YKPISR5J.js";import"./chunk-QIJLFPWE.js";async function i(o,r,s={}){let e=null,n=await a(l=>{let t=l.crons?.[o];if(t?r&&t.approval?.action==="create"?e={ok:!1,status:409,error:`schedule "${o}" is waiting for approval: agentx schedule approve ${o}`}:t.enabled===r&&(e={ok:!0,id:o,enabled:r,changed:!1}):e={ok:!1,status:404,error:`no schedule "${o}"`},e)throw new Error("no write");t.enabled=r,e={ok:!0,id:o,enabled:r,changed:!0}},{configPath:s.configPath,reload:!1});return e&&(!e.ok||!e.changed)?e:n.success?e??{ok:!1,status:500,error:"mutation did not run"}:{ok:!1,status:500,error:n.error||"could not write agentx.json"}}export{i as setCronEnabled};
|
|
2
|
+
//# sourceMappingURL=set-enabled-RIE3PLNJ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as u}from"./chunk-
|
|
1
|
+
import{b as u}from"./chunk-LNQOJC57.js";import"./chunk-RKPAVWXF.js";import{f as h}from"./chunk-Y4CYQV7G.js";import"./chunk-WVYOXM45.js";import"./chunk-6SJTBTDG.js";import"./chunk-HTKSZZXK.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-QIJLFPWE.js";var $=new Set(["cron","heartbeat","api","a2a","mesh","approvals"]);function f(e){return typeof e=="string"?e.trim():""}async function v(e,i){let c=i.fetch??fetch,d=i.daemonUrl.replace(/\/$/,""),s=(f(e.action)||"create").toLowerCase(),r=u(e,i.env??process.env);if(s==="status"){let o=f(e.id);if(!o)return"Error: `id` is required for status (the card id you got when you raised it).";try{let n=await c(`${d}/approvals/${encodeURIComponent(o)}`,{signal:AbortSignal.timeout(1e4)}),a=await n.json().catch(()=>({}));if(!n.ok)return`Error: ${a?.error||`HTTP ${n.status}`}`;let t=a.card;if(r&&t.raised_by!==r.agentId)return`Error: card "${o}" was raised by another agent.`;if(t.status==="pending")return`Card ${t.id} is still waiting for the operator. It expires ${t.expires}; then "${t.if_silent}" applies.`;if(t.status==="decided"){let p=t.verdict==="yes"?h(t).join(`
|
|
2
2
|
`):"";return`Card ${t.id}: the operator said ${String(t.verdict).toUpperCase()}.${t.note?` Note: ${t.note}`:""}${p?`
|
|
3
3
|
${p}`:""}`}return`Card ${t.id} expired unanswered; the default applied: ${t.outcome??t.if_silent}.`}catch(n){return`Error: couldn't reach the daemon (${n?.message??n}).`}}if(s!=="create")return`Error: unknown action "${s}". Use create or status.`;if(!r)return"Error: couldn't tell which agent you are. Pass callerAgentId.";let l=r.channel&&r.chatId&&!$.has(r.channel)?{channel:r.channel,chatId:r.chatId,...r.accountId?{accountId:r.accountId}:{}}:void 0,y={title:e.title,ask:e.ask,recommend:e.recommend,if_silent:e.if_silent,expires:e.expires,source:e.source,choices:e.choices,draft:e.draft,say:e.say,context:e.context,raised_by:r.agentId,...l?{reply:l}:{}};try{let o=await c(`${d}/approvals`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(y),signal:AbortSignal.timeout(1e4)}),n=await o.json().catch(()=>({}));if(!o.ok)return`Error: ${n?.error||`HTTP ${o.status}`}`;let a=n.card;return[`Decision card ${a.id} is in the operator's Approvals inbox.`,`If nobody answers by ${a.expires}, "${a.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."].join(" ")}catch(o){return`Error: couldn't reach the daemon (${o?.message??o}).`}}export{v as runApprovalTool};
|
|
4
|
-
//# sourceMappingURL=tool-
|
|
4
|
+
//# sourceMappingURL=tool-TAMRBONN.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./chunk-VWTBHLMX.js";import{a as b}from"./chunk-M4XUZA3O.js";import{a}from"./chunk-RD5EKHGZ.js";import"./chunk-CECHWYJ2.js";import{a as c}from"./chunk-MGCTX2BB.js";import"./chunk-WNI2P7S6.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import"./chunk-7QRCAHPX.js";import"./chunk-FX3D7YON.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-QOYAX2FT.js";import"./chunk-5MUJZODV.js";import"./chunk-7I7IEX4S.js";import"./chunk-YKPISR5J.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{b as WikiHub,a as WikiStore,c as agenticQuery};
|
|
2
|
+
//# sourceMappingURL=wiki-WBRXHY7J.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentix-cli",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.2",
|
|
4
4
|
"description": "AI operations layer for small and medium businesses. Routes Telegram, WhatsApp, GitLab, GitHub, crons, webhooks, and mesh tasks to AI agents. Web wizard for operators, CLI for engineers. Self-hosted.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|