agentix-cli 0.204.0 → 0.206.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/{App-FQRHQT5J.js → App-JDW5V4HT.js} +2 -2
- package/dist/{ChatApp-WBCGSGJM.js → ChatApp-SNM2PORO.js} +2 -2
- package/dist/{absorb-eval-3IU37HZQ.js → absorb-eval-WDAV4AI2.js} +2 -2
- package/dist/{adapter-URFSOOFE.js → adapter-C47BTKT6.js} +2 -2
- package/dist/{agent-P7XUCP3A.js → agent-EVMKJXJO.js} +2 -2
- package/dist/{board-dashboard-AVUFPO5X.js → board-dashboard-EUWXJNDW.js} +403 -416
- package/dist/board-dashboard-EUWXJNDW.js.map +1 -0
- package/dist/{chunk-WKR2OSCH.js → chunk-245IOYDJ.js} +2 -2
- package/dist/{chunk-FOWRNDMJ.js → chunk-2LJZHKTY.js} +2 -2
- package/dist/{chunk-P65XGEB7.js → chunk-2P3SHT5I.js} +2 -2
- package/dist/{chunk-JUSQMQ7L.js → chunk-2VSK6FAR.js} +2 -2
- package/dist/chunk-2YDG5CSS.js +2 -0
- package/dist/chunk-2YDG5CSS.js.map +1 -0
- package/dist/{chunk-EANSYWBQ.js → chunk-3B5HSNOF.js} +334 -326
- package/dist/chunk-3B5HSNOF.js.map +1 -0
- package/dist/{chunk-T7WY5BSJ.js → chunk-5STGF4MI.js} +40 -40
- package/dist/chunk-5STGF4MI.js.map +1 -0
- package/dist/chunk-BED4R5CS.js +12 -0
- package/dist/chunk-BED4R5CS.js.map +1 -0
- package/dist/{chunk-JKT5EFXT.js → chunk-CXFVIDJV.js} +2 -2
- package/dist/{chunk-ZPCSPEGO.js → chunk-CZVCT5ZV.js} +2 -2
- package/dist/{chunk-Y2D6FQBL.js → chunk-DOO4MUTS.js} +2 -2
- package/dist/{chunk-RIBANO2H.js → chunk-DUCYRNCT.js} +3 -3
- package/dist/chunk-DUCYRNCT.js.map +1 -0
- package/dist/{chunk-HX4R7RPR.js → chunk-DV42WUMD.js} +2 -2
- package/dist/{chunk-CAYY2IEV.js → chunk-EFGAPAYZ.js} +2 -2
- package/dist/chunk-EJFPXG6I.js +969 -0
- package/dist/chunk-EJFPXG6I.js.map +1 -0
- package/dist/{chunk-MAQFWGFT.js → chunk-ERVJLPS4.js} +2 -2
- package/dist/{chunk-IAR5F3T5.js → chunk-IDGEDPRJ.js} +2 -2
- package/dist/chunk-IFNXMUEG.js +115 -0
- package/dist/chunk-IFNXMUEG.js.map +1 -0
- package/dist/{chunk-SLX3OHEW.js → chunk-IU63JGY3.js} +2 -2
- package/dist/{chunk-7QW4RECS.js → chunk-JSCVOB4G.js} +2 -2
- package/dist/{chunk-RUNCUVAH.js → chunk-JT5PIBCM.js} +2 -2
- package/dist/{chunk-EQPMQSJE.js → chunk-KRHVM26D.js} +2 -2
- package/dist/{chunk-5VD2J4JN.js → chunk-MF46BC7J.js} +2 -2
- package/dist/{chunk-VGYW3Q7F.js → chunk-OLKYIKAZ.js} +2 -2
- package/dist/{chunk-RB7M2NPU.js → chunk-PQUK6XEW.js} +2 -2
- package/dist/{chunk-PSOE356C.js → chunk-PQX2VJUA.js} +2 -2
- package/dist/{chunk-TV5BDCQA.js → chunk-PTZNM2JU.js} +2 -2
- package/dist/{chunk-M4VYHPDS.js → chunk-PW3WG6JT.js} +2 -2
- package/dist/{chunk-EMWSFITR.js → chunk-QASIUKZJ.js} +2 -2
- package/dist/{chunk-N6NZBAWR.js → chunk-RXX4MYFL.js} +2 -2
- package/dist/{chunk-C2VZHIIX.js → chunk-S5A7QZVQ.js} +2 -2
- package/dist/{chunk-CJI26AJC.js → chunk-SKCOIP5R.js} +3 -3
- package/dist/{chunk-BIYEGA7Q.js → chunk-TH2W2545.js} +2 -2
- package/dist/{chunk-V3FSKTDF.js → chunk-UGRMFQAG.js} +2 -2
- package/dist/{chunk-Y4YOYOCG.js → chunk-USFOOYPM.js} +2 -2
- package/dist/{chunk-WIGH5WMP.js → chunk-V5LRR5I5.js} +9 -9
- package/dist/{chunk-QOEO27LF.js → chunk-WJMYBRM5.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/{client-EOQLSAUW.js → client-WN7YI7DE.js} +2 -2
- package/dist/{config-SZZQFIJF.js → config-QUXKGIZX.js} +2 -2
- package/dist/{config-mutate-66VDWR46.js → config-mutate-HJH24ITC.js} +2 -2
- package/dist/{config-mutator-OILDQCAJ.js → config-mutator-OLLQR3ZD.js} +2 -2
- package/dist/{connect-AJKMRKXC.js → connect-OOPPXAOD.js} +2 -2
- package/dist/{contributions-LRQCDZCQ.js → contributions-LL7B4BP3.js} +2 -2
- package/dist/daemon-api-QCBFGT7S.js +2 -0
- package/dist/daemon-api-QCBFGT7S.js.map +1 -0
- package/dist/{doctor-EDZO7BUJ.js → doctor-X75KLAFA.js} +2 -2
- package/dist/{enrich-NIUEEGPA.js → enrich-MZMIQ3SV.js} +2 -2
- package/dist/{event-levels-D6QSANGF.js → event-levels-PCFARGKL.js} +2 -2
- package/dist/{follow-up-tool-QOO2TIQS.js → follow-up-tool-I2HTKMP4.js} +2 -2
- package/dist/{grants-3UVDASRI.js → grants-2MNWGCSH.js} +2 -2
- package/dist/{hub-6TKU6CHO.js → hub-7ASBN76I.js} +2 -2
- package/dist/index.d.ts +52 -40
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/org-tool-JCGGJJU6.js +2 -0
- package/dist/org-tool-JCGGJJU6.js.map +1 -0
- package/dist/{program-OFN6YQRH.js → program-NCFW4EEP.js} +238 -238
- package/dist/program-NCFW4EEP.js.map +1 -0
- package/dist/{promote-D3KYLUBD.js → promote-NSPUPPHB.js} +2 -2
- package/dist/providers-D6IUAHQJ.js +2 -0
- package/dist/{query-D2TQ2PUO.js → query-VW63IHDI.js} +2 -2
- package/dist/{query-settings-ILDX3HDF.js → query-settings-RS7DJI4H.js} +2 -2
- package/dist/{registry-N3BY3HSI.js → registry-6KREAROB.js} +2 -2
- package/dist/{request-planner-CVCG5XQR.js → request-planner-HZWQIRZO.js} +2 -2
- package/dist/resolve-LOYZUE2D.js +2 -0
- package/dist/{review-candidates-CKUN4PSY.js → review-candidates-2TXOUASP.js} +2 -2
- package/dist/{routing-OCIRGUKK.js → routing-ZV4VSZDV.js} +2 -2
- package/dist/{rules-A5ES57QT.js → rules-FBOLGE2S.js} +2 -2
- package/dist/schedule-tool-D357NLXS.js +2 -0
- package/dist/{scheduler-D2Z7RSEE.js → scheduler-SAID6RKQ.js} +2 -2
- package/dist/{seat-Z3E2FLDA.js → seat-XHBWBSTS.js} +2 -2
- package/dist/{select-J4ES7Q67.js → select-QUCTTAH3.js} +2 -2
- package/dist/{set-enabled-S22TICYC.js → set-enabled-CGMXLFC6.js} +2 -2
- package/dist/{sprint-tool-NDF47EKV.js → sprint-tool-SWRYSX3Q.js} +2 -2
- package/dist/status-PVYFTNX2.js +2 -0
- package/dist/{tool-6NZIUXI7.js → tool-6G63ZQW4.js} +2 -2
- package/dist/{tool-RCCMOMEY.js → tool-DA25L4ND.js} +2 -2
- package/dist/{tool-52JRXZVA.js → tool-ELGOVIM5.js} +2 -2
- package/dist/{tool-Z2OVFGWW.js → tool-MMH2JNP7.js} +2 -2
- package/dist/{wiki-HQKFZZSX.js → wiki-4ZL4QXA7.js} +2 -2
- package/dist/wiki-enrich-N5MUKDVW.js +2 -0
- package/dist/workspace-setup-QXFJRNSK.js +2 -0
- package/package.json +1 -1
- package/dist/board-dashboard-AVUFPO5X.js.map +0 -1
- package/dist/chunk-B6VASQHD.js +0 -2
- package/dist/chunk-B6VASQHD.js.map +0 -1
- package/dist/chunk-EANSYWBQ.js.map +0 -1
- package/dist/chunk-FCDMB2JA.js +0 -936
- package/dist/chunk-FCDMB2JA.js.map +0 -1
- package/dist/chunk-GDHSJH3T.js +0 -111
- package/dist/chunk-GDHSJH3T.js.map +0 -1
- package/dist/chunk-RIBANO2H.js.map +0 -1
- package/dist/chunk-T7WY5BSJ.js.map +0 -1
- package/dist/chunk-XPZSEDE3.js +0 -12
- package/dist/chunk-XPZSEDE3.js.map +0 -1
- package/dist/daemon-api-OVCXY4QC.js +0 -2
- package/dist/daemon-api-OVCXY4QC.js.map +0 -1
- package/dist/program-OFN6YQRH.js.map +0 -1
- package/dist/providers-AHLCB6R5.js +0 -2
- package/dist/resolve-JKXYBZ6R.js +0 -2
- package/dist/schedule-tool-YFMRYTEO.js +0 -2
- package/dist/status-PKHYFGZK.js +0 -2
- package/dist/wiki-enrich-7SZ5W2LF.js +0 -2
- package/dist/workspace-setup-W5UO2WZI.js +0 -2
- /package/dist/{App-FQRHQT5J.js.map → App-JDW5V4HT.js.map} +0 -0
- /package/dist/{ChatApp-WBCGSGJM.js.map → ChatApp-SNM2PORO.js.map} +0 -0
- /package/dist/{absorb-eval-3IU37HZQ.js.map → absorb-eval-WDAV4AI2.js.map} +0 -0
- /package/dist/{adapter-URFSOOFE.js.map → adapter-C47BTKT6.js.map} +0 -0
- /package/dist/{agent-P7XUCP3A.js.map → agent-EVMKJXJO.js.map} +0 -0
- /package/dist/{chunk-WKR2OSCH.js.map → chunk-245IOYDJ.js.map} +0 -0
- /package/dist/{chunk-FOWRNDMJ.js.map → chunk-2LJZHKTY.js.map} +0 -0
- /package/dist/{chunk-P65XGEB7.js.map → chunk-2P3SHT5I.js.map} +0 -0
- /package/dist/{chunk-JUSQMQ7L.js.map → chunk-2VSK6FAR.js.map} +0 -0
- /package/dist/{chunk-JKT5EFXT.js.map → chunk-CXFVIDJV.js.map} +0 -0
- /package/dist/{chunk-ZPCSPEGO.js.map → chunk-CZVCT5ZV.js.map} +0 -0
- /package/dist/{chunk-Y2D6FQBL.js.map → chunk-DOO4MUTS.js.map} +0 -0
- /package/dist/{chunk-HX4R7RPR.js.map → chunk-DV42WUMD.js.map} +0 -0
- /package/dist/{chunk-CAYY2IEV.js.map → chunk-EFGAPAYZ.js.map} +0 -0
- /package/dist/{chunk-MAQFWGFT.js.map → chunk-ERVJLPS4.js.map} +0 -0
- /package/dist/{chunk-IAR5F3T5.js.map → chunk-IDGEDPRJ.js.map} +0 -0
- /package/dist/{chunk-SLX3OHEW.js.map → chunk-IU63JGY3.js.map} +0 -0
- /package/dist/{chunk-7QW4RECS.js.map → chunk-JSCVOB4G.js.map} +0 -0
- /package/dist/{chunk-RUNCUVAH.js.map → chunk-JT5PIBCM.js.map} +0 -0
- /package/dist/{chunk-EQPMQSJE.js.map → chunk-KRHVM26D.js.map} +0 -0
- /package/dist/{chunk-5VD2J4JN.js.map → chunk-MF46BC7J.js.map} +0 -0
- /package/dist/{chunk-VGYW3Q7F.js.map → chunk-OLKYIKAZ.js.map} +0 -0
- /package/dist/{chunk-RB7M2NPU.js.map → chunk-PQUK6XEW.js.map} +0 -0
- /package/dist/{chunk-PSOE356C.js.map → chunk-PQX2VJUA.js.map} +0 -0
- /package/dist/{chunk-TV5BDCQA.js.map → chunk-PTZNM2JU.js.map} +0 -0
- /package/dist/{chunk-M4VYHPDS.js.map → chunk-PW3WG6JT.js.map} +0 -0
- /package/dist/{chunk-EMWSFITR.js.map → chunk-QASIUKZJ.js.map} +0 -0
- /package/dist/{chunk-N6NZBAWR.js.map → chunk-RXX4MYFL.js.map} +0 -0
- /package/dist/{chunk-C2VZHIIX.js.map → chunk-S5A7QZVQ.js.map} +0 -0
- /package/dist/{chunk-CJI26AJC.js.map → chunk-SKCOIP5R.js.map} +0 -0
- /package/dist/{chunk-BIYEGA7Q.js.map → chunk-TH2W2545.js.map} +0 -0
- /package/dist/{chunk-V3FSKTDF.js.map → chunk-UGRMFQAG.js.map} +0 -0
- /package/dist/{chunk-Y4YOYOCG.js.map → chunk-USFOOYPM.js.map} +0 -0
- /package/dist/{chunk-WIGH5WMP.js.map → chunk-V5LRR5I5.js.map} +0 -0
- /package/dist/{chunk-QOEO27LF.js.map → chunk-WJMYBRM5.js.map} +0 -0
- /package/dist/{client-EOQLSAUW.js.map → client-WN7YI7DE.js.map} +0 -0
- /package/dist/{config-SZZQFIJF.js.map → config-QUXKGIZX.js.map} +0 -0
- /package/dist/{config-mutate-66VDWR46.js.map → config-mutate-HJH24ITC.js.map} +0 -0
- /package/dist/{config-mutator-OILDQCAJ.js.map → config-mutator-OLLQR3ZD.js.map} +0 -0
- /package/dist/{connect-AJKMRKXC.js.map → connect-OOPPXAOD.js.map} +0 -0
- /package/dist/{contributions-LRQCDZCQ.js.map → contributions-LL7B4BP3.js.map} +0 -0
- /package/dist/{doctor-EDZO7BUJ.js.map → doctor-X75KLAFA.js.map} +0 -0
- /package/dist/{enrich-NIUEEGPA.js.map → enrich-MZMIQ3SV.js.map} +0 -0
- /package/dist/{event-levels-D6QSANGF.js.map → event-levels-PCFARGKL.js.map} +0 -0
- /package/dist/{follow-up-tool-QOO2TIQS.js.map → follow-up-tool-I2HTKMP4.js.map} +0 -0
- /package/dist/{grants-3UVDASRI.js.map → grants-2MNWGCSH.js.map} +0 -0
- /package/dist/{hub-6TKU6CHO.js.map → hub-7ASBN76I.js.map} +0 -0
- /package/dist/{promote-D3KYLUBD.js.map → promote-NSPUPPHB.js.map} +0 -0
- /package/dist/{providers-AHLCB6R5.js.map → providers-D6IUAHQJ.js.map} +0 -0
- /package/dist/{query-D2TQ2PUO.js.map → query-VW63IHDI.js.map} +0 -0
- /package/dist/{query-settings-ILDX3HDF.js.map → query-settings-RS7DJI4H.js.map} +0 -0
- /package/dist/{registry-N3BY3HSI.js.map → registry-6KREAROB.js.map} +0 -0
- /package/dist/{request-planner-CVCG5XQR.js.map → request-planner-HZWQIRZO.js.map} +0 -0
- /package/dist/{resolve-JKXYBZ6R.js.map → resolve-LOYZUE2D.js.map} +0 -0
- /package/dist/{review-candidates-CKUN4PSY.js.map → review-candidates-2TXOUASP.js.map} +0 -0
- /package/dist/{routing-OCIRGUKK.js.map → routing-ZV4VSZDV.js.map} +0 -0
- /package/dist/{rules-A5ES57QT.js.map → rules-FBOLGE2S.js.map} +0 -0
- /package/dist/{schedule-tool-YFMRYTEO.js.map → schedule-tool-D357NLXS.js.map} +0 -0
- /package/dist/{scheduler-D2Z7RSEE.js.map → scheduler-SAID6RKQ.js.map} +0 -0
- /package/dist/{seat-Z3E2FLDA.js.map → seat-XHBWBSTS.js.map} +0 -0
- /package/dist/{select-J4ES7Q67.js.map → select-QUCTTAH3.js.map} +0 -0
- /package/dist/{set-enabled-S22TICYC.js.map → set-enabled-CGMXLFC6.js.map} +0 -0
- /package/dist/{sprint-tool-NDF47EKV.js.map → sprint-tool-SWRYSX3Q.js.map} +0 -0
- /package/dist/{status-PKHYFGZK.js.map → status-PVYFTNX2.js.map} +0 -0
- /package/dist/{tool-6NZIUXI7.js.map → tool-6G63ZQW4.js.map} +0 -0
- /package/dist/{tool-RCCMOMEY.js.map → tool-DA25L4ND.js.map} +0 -0
- /package/dist/{tool-52JRXZVA.js.map → tool-ELGOVIM5.js.map} +0 -0
- /package/dist/{tool-Z2OVFGWW.js.map → tool-MMH2JNP7.js.map} +0 -0
- /package/dist/{wiki-HQKFZZSX.js.map → wiki-4ZL4QXA7.js.map} +0 -0
- /package/dist/{wiki-enrich-7SZ5W2LF.js.map → wiki-enrich-N5MUKDVW.js.map} +0 -0
- /package/dist/{workspace-setup-W5UO2WZI.js.map → workspace-setup-QXFJRNSK.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=enrich-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunk-S5A7QZVQ.js";import"./chunk-EFGAPAYZ.js";import"./chunk-QAWKN2N4.js";import"./chunk-DODL5POT.js";import"./chunk-IMLAPB7G.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-QIJLFPWE.js";export{a as ENRICH_BY,b as ENRICH_TYPES,h as buildEnrichPrompt,j as checkEnrichment,n as createEntityPage,e as enrichContext,g as fingerprint,c as lensProperties,o as loadEnrichState,f as mentionsOf,l as mergedMeta,i as parseEnrichReply,d as readableAlongside,q as runEnrich,p as saveEnrichState,m as targetPage,k as withOverview};
|
|
2
|
+
//# sourceMappingURL=enrich-MZMIQ3SV.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as A,k as R}from"./chunk-
|
|
1
|
+
import{a as A,k as R}from"./chunk-EFGAPAYZ.js";import{f as g}from"./chunk-QAWKN2N4.js";import"./chunk-DODL5POT.js";import"./chunk-IMLAPB7G.js";import{c as I}from"./chunk-OWNQ2FD4.js";import{a as E}from"./chunk-ROLSSYXE.js";import"./chunk-QIJLFPWE.js";var b="wiki-events",x="importance_set",S=new Set(["event","due_date","topic"]),L=10,j=320;function _(t,e,c){let o=new Set(c.map(r=>r.toLowerCase()));for(let r of t??[])if(!(!E.includes(r.level)||!r.title&&!r.tags?.length)){if(r.title){let i;try{i=new RegExp(r.title,"i")}catch{continue}if(!i.test(e))continue}if(r.unless){let i;try{i=new RegExp(r.unless,"i")}catch{continue}if(i.test(e))continue}if(!(r.tags?.length&&!r.tags.some(i=>o.has(i.toLowerCase()))))return r.level}}function O(t,e){let c=` ${g(e)} `,o=[];for(let r of t.entities.values()){if(S.has(r.type))continue;let i=g(r.title);i.length>=4&&c.includes(` ${i} `)&&o.push(r)}return o}function C(t,e){let c=A(t,e,null).filter(r=>!S.has(r.type)),o=O(t,e.title);return[...new Map([...o,...c].map(r=>[r.id,r])).values()].slice(0,L)}function W(t,e){return e.pages.find(c=>!t.syncedFrom(c.agentId))}function $(t){return(t.statements??[]).some(e=>e.by===b&&e.property===x)}function G(t){return t.pages.some(e=>e.article.meta.importance&&!$(e.article.meta))}function U(t,e,c){let o=new Set;for(let s of c.about){let l=e.names.get(g(s))??(e.entities.has(s)?s:void 0);l&&o.add(l)}let r=[],i=[],a=[...e.entities.values()].filter(s=>s.type==="event").sort((s,l)=>(l.date||"").localeCompare(s.date||""));for(let s of a){if(s.pages.some(n=>n.article.meta.importance)&&(!c.force||G(s)))continue;let f=C(e,s);if(c.about.length&&!f.some(n=>o.has(n.id)))continue;let d=W(t,s);if(!d){i.push(s);continue}r.push({event:s,page:d,candidates:f})}return{items:r,noPage:i}}var M=(t,e)=>t.length>e?`${t.slice(0,e)}\u2026`:t;function V(t,e){let c=["You are sorting the event pages of a company wiki by importance, and saying what each event is about.","","Levels:","- minor: routine upkeep or a small incident with no lasting effect (a disk filled and was cleaned, a job was restarted, a reminder was sent).","- normal: something a person would want in the history of the thing it is about (a delivery, a payment, an outage that was noticed, a meeting with an outcome).","- major: a turning point (a client won or lost, a contract signed, a legal or financial deadline missed, data lost, a decision that changes how things are done).","When unsure between two levels, pick the lower one.","","## Events"];return t.forEach((o,r)=>{let i=M(R(o.page.article.content).replace(/\s+/g," ").trim(),j);c.push(`### ${r+1}. ${o.event.title} (${o.event.date||"no date"})`,i||"(no text)"),c.push(o.candidates.length?`May be about: ${o.candidates.map(a=>`"${a.title}" (${a.type})`).join(", ")}`:"May be about: nothing listed","")}),c.push("## Task","Return one JSON object and nothing else:",'{"events": [{"n": 1, "importance": "minor", "about": ["Exact Title"], "why": "one short reason"}]}',"","Rules:",`- One item per event, with its number. importance is one of ${E.join(", ")}.`,`- about: only titles from that event's own "May be about" list, copied exactly, and only the ones the event really concerns: the machine that failed, the client it was for, the person it happened to. Often one, at most three. Leave it empty when none fits.`,"- why: under 15 words, in English.",...e.importance.major_set_by==="owner"?["- major is only a suggestion here: the owner confirms it."]:[]),c.join(`
|
|
2
2
|
`)}function N(t){let e=t.match(/```(?:json)?\s*\n([\s\S]*?)\n```/),c=e?e[1]:t.slice(t.indexOf("{"),t.lastIndexOf("}")+1);try{let o=JSON.parse(c);return o&&typeof o=="object"&&!Array.isArray(o)?o:null}catch{return null}}function P(t,e){return t==="major"&&e.importance.major_set_by==="owner"?{importance:"normal",proposed:"major"}:{importance:t}}function T(t,e,c){let o=new Map,r=N(t);for(let i of Array.isArray(r?.events)?r.events:[]){let a=i??{},s=Number(a.n)-1,l=e[s];if(!Number.isInteger(s)||!l||o.has(s))continue;let f=String(a.importance??"").trim().toLowerCase();if(!E.includes(f))continue;let d=[],n=new Map(l.candidates.map(u=>[g(u.title),u.title])),p=[];for(let u of Array.isArray(a.about)?a.about:[]){let m=n.get(g(String(u??"")));m&&!p.includes(m)?p.push(m):!m&&String(u??"").trim()&&d.push(`about ${String(u).trim().slice(0,80)}: not in the list shown`)}p.length>3&&d.push(`about: kept the first 3 of ${p.length}`);let h=typeof a.why=="string"?M(a.why.trim(),160):void 0;o.set(s,{verdict:{...P(f,c),about:p.slice(0,3),why:h||void 0,by:"model"},dropped:d})}return o}function B(t,e,c){let o=(t.statements??[]).filter(a=>a.by!==b),r=new Set(o.filter(a=>a.property==="involves").map(a=>g(a.value))),i=e.about.filter(a=>!r.has(g(a))).map(a=>({property:"involves",value:a,checked_at:c,by:b}));return i.push({property:x,value:e.proposed??e.importance,checked_at:c,by:b,...e.why?{note:e.why}:{}}),{...t,importance:e.importance,importanceProposed:e.proposed,statements:[...o,...i]}}async function K(t,e,c,o){let r=e.ontology,{items:i,noPage:a}=U(t,e,o),s=i.slice(0,o.max),l={outcomes:[],costUsd:0,calls:0,capped:!1,left:i.length-s.length};for(let n of o.about.length?a:[])l.outcomes.push({event:n.id,title:n.title,date:n.date,status:"no-page",about:[],dropped:["its pages are copied from another node"]});let f=(n,p,h)=>{let u=`${n.page.agentId}/${n.page.article.path}`,m={event:n.event.id,title:n.event.title,date:n.event.date,page:u,status:"dry-run",importance:p.importance,proposed:p.proposed,about:p.about,by:p.by,why:p.why,dropped:h};if(o.dryRun){l.outcomes.push(m);return}let v=t.getAgentWiki(n.page.agentId),k=n.page.article.path,w;try{w=v.withArticleLock(k,()=>{let y=v.readArticle(k);return y?y.meta.importance&&!$(y.meta)?"a level was set on the page during the run":v.writeArticle(k,B(y.meta,p,o.today),y.content,y.meta.owner||n.page.agentId)?void 0:"write refused":"the page was moved or removed during the run"})}catch(y){if(!(y instanceof I))throw y;w="the page was busy; run again"}l.outcomes.push(w?{...m,status:"failed",dropped:[...h,w]}:{...m,status:"written"})},d=[];for(let n of s){let p=_(r.importance.rules,n.event.title,n.page.article.meta.tags??[]);if(!p){d.push(n);continue}let h=new Set(O(e,n.event.title).map(m=>m.id)),u=n.candidates.filter(m=>h.has(m.id)).slice(0,3).map(m=>m.title);f(n,{...P(p,r),about:u,why:"matched an importance rule",by:"rule"},[])}if(o.rulesOnly)return l.left+=d.length,l;for(let n=0;n<d.length;n+=o.batch){let p=d.slice(n,n+o.batch);if(l.costUsd>=o.maxCostUsd){l.capped=!0,l.left+=d.length-n;break}l.calls++;let h;try{let u=await c(V(p,r));l.costUsd+=u.costUsd,h=T(u.text,p,r)}catch(u){for(let m of p)l.outcomes.push({event:m.event.id,title:m.event.title,date:m.event.date,page:`${m.page.agentId}/${m.page.article.path}`,status:"failed",about:[],dropped:[u.message.slice(0,200)]});continue}p.forEach((u,m)=>{let v=h.get(m);v?f(u,v.verdict,v.dropped):l.outcomes.push({event:u.event.id,title:u.event.title,date:u.event.date,page:`${u.page.agentId}/${u.page.article.path}`,status:"no-answer",about:[],dropped:["the reply had no usable item for this event"]})})}if(!o.dryRun)for(let n of new Set(l.outcomes.filter(p=>p.status==="written").map(p=>p.page.split("/")[0])))t.getAgentWiki(n).rebuildIndex();return l}function z(t,e,c,o){let r=e.names.get(g(c))??(e.entities.has(c)?c:void 0),i=r?e.entities.get(r):void 0;if(!i)return{ok:!1,reason:`no page is titled "${c}"`};if(i.type!=="event")return{ok:!1,title:i.title,reason:`"${i.title}" is a ${i.type}, not an event`};let a=W(t,i);if(!a)return{ok:!1,title:i.title,reason:"its pages are copied from another node; set the level there"};let s=t.getAgentWiki(a.agentId),l,f="write refused";try{l=s.withArticleLock(a.article.path,()=>{let d=s.readArticle(a.article.path)??a.article,n=(d.meta.statements??[]).filter(h=>!(h.by===b&&h.property===x)),p={...d.meta,importance:o,importanceProposed:void 0,statements:n.length?n:void 0};return s.writeArticle(a.article.path,p,d.content,d.meta.owner||a.agentId)})}catch(d){if(!(d instanceof I))throw d;l=!1,f="the page was busy; run again"}return l&&s.rebuildIndex(),{ok:l,title:i.title,page:`${a.agentId}/${a.article.path}`,reason:l?void 0:f}}function X(t,e,c){let o=[],r=new Map(e.outcomes.filter(i=>i.importance).map(i=>[i.event,i]));for(let i of c){let a=t.names.get(g(i))??(t.entities.has(i)?i:void 0),s=a?t.entities.get(a):void 0;if(!s)continue;let l=new Set(A(t,s,new Set(["event"])).map(n=>n.id)),f={minor:0,normal:0,major:0},d=new Set;for(let n of t.entities.values()){if(n.type!=="event")continue;let p=r.get(n.id);!(l.has(n.id)||p?.about.some(u=>g(u)===g(s.title)))||d.has(n.id)||(d.add(n.id),f[p?.importance??n.importance]++)}o.push({title:s.title,type:s.type,before:l.size,after:f})}return o}export{b as EVENTS_BY,V as buildEventsPrompt,T as checkEventsReply,C as eventCandidates,B as eventMeta,U as pickEvents,_ as ruleLevel,K as runEvents,z as setEventLevel,X as summariseAbout};
|
|
3
|
-
//# sourceMappingURL=event-levels-
|
|
3
|
+
//# sourceMappingURL=event-levels-PCFARGKL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-DOO4MUTS.js";import"./chunk-RKPAVWXF.js";import"./chunk-KRHVM26D.js";import{b as I}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-IDGEDPRJ.js";import"./chunk-2P3SHT5I.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-DUCYRNCT.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";var p=t=>typeof t=="string"?t.trim():"";function $(t){return[`Run ${t.runId} "${t.title}" [${t.status}] on step ${t.step}: waiting on ${t.waitingOn}.`,t.tags?.length?`Tags: ${t.tags.join(", ")}`:"",...(t.steps??[]).slice(-8).map(s=>`- ${String(s.at).slice(0,16).replace("T"," ")} ${s.step} ${s.status}${s.note?`: ${s.note}`:""}`)].filter(Boolean).join(`
|
|
2
2
|
`)}async function T(t,c){let s=c.fetch??fetch,m=c.daemonUrl.replace(/\/$/,""),r=(p(t.action)||"list").toLowerCase(),f=c.env??process.env,w=async i=>{let l=await s(`${m}${i}`,{signal:AbortSignal.timeout(1e4)}),n=await l.json().catch(()=>({}));return{ok:l.ok,status:l.status,data:n}};try{if(r==="list"){let e=await w("/follow-up");if(!e.ok)return`Error: ${e.data?.error||`HTTP ${e.status}`}`;let o=e.data.groups??[];return o.length?o.map(d=>[`${d.tag}:`,...d.rows.map(a=>`- ${a.runId} "${a.title}" on ${a.step}: waiting on ${a.waitingOn} (since ${String(a.since).slice(0,16).replace("T"," ")} UTC)`)].join(`
|
|
3
3
|
`)).join(`
|
|
4
4
|
`):"No follow-up workflows are running."}if(r==="match"){let e=p(t.request)||p(t.title);if(!e)return"Error: match needs `request`: the owner's request in their words.";let o=h(t,f),d=await w(`/follow-up/match?q=${encodeURIComponent(e)}${o?`&agentId=${encodeURIComponent(o.agentId)}`:""}`);if(!d.ok)return`Error: ${d.data?.error||`HTTP ${d.status}`}`;let a=d.data.matches??[];return a.length?["Saved workflows, best fit first (confidence 0-1):",...a.map(u=>`- ${u.workflowId} "${u.title}" (${u.confidence}${u.autoStart?", starts without asking":""}): ${u.steps.map(k=>k.id).join(" \u2192 ")}`),'Start one with {action:"start", workflowId:"<id>", title:"\u2026", tags:["client:<name>"]}. Run its steps through the workflow, not by hand.'].join(`
|
|
5
5
|
`):"No saved workflow fits. If the request has several steps, build one: start with title and steps."}if(r==="status"){let e=p(t.runId);if(!e)return"Error: status needs runId.";let o=await w(`/follow-up/${encodeURIComponent(e)}`);return o.ok?$(o.data.run):`Error: ${o.data?.error||`HTTP ${o.status}`}`}let i=h(t,f);if(!i)return"Error: couldn't tell which agent you are. Pass callerAgentId.";let l=await s(`${m}/follow-up`,{method:"POST",headers:{"Content-Type":"application/json",...I(f)},body:JSON.stringify({action:r,agentId:i.agentId,workflowId:t.workflowId,title:t.title,description:t.description,tags:t.tags,inputs:t.inputs,steps:t.steps,edges:t.edges,approval:t.approval,autoStart:t.autoStart,requestId:t.requestId,runId:t.runId,step:t.step,evidence:t.evidence,note:t.note,reason:t.reason,fromRun:t.fromRun,status:t.status}),signal:AbortSignal.timeout(2e4)}),n=await l.json().catch(()=>({}));if(!l.ok)return`Error: ${n?.error||`HTTP ${l.status}`}`;if(r==="start"){let e=n.run;return[`Started run ${e.runId} "${e.title}"${n.built?" (built from the steps you gave; propose it with fromRun to keep it)":""}.`,n.awaitingApproval?"It waits for the owner's approval before the first step.":`It is on step ${e.step}: ${e.waitingOn}.`,"AgentX follows it from here: it starts each step, reminds whoever is slow, and tells the owner when it ends. Do not run its steps by hand.",...n.warning?[`Note: ${n.warning}`]:[]].join(" ")}return r==="plan"?[`Plan recorded on run ${n.run?.runId??t.runId}:`,...(n.plan??[]).map(e=>`- ${e.id} ${e.title}`),'Report each step with {action:"step", runId, step:"<id>", status:"started"|"done"|"failed"}.'].join(`
|
|
6
6
|
`):r==="step"?`Step recorded. ${n.run?$(n.run):""}`.trim():r==="done"?`Step recorded as done. ${n.run?$(n.run):""}`.trim():r==="blocked"?"The step is marked blocked and the owner is told. Nothing more happens on it until it is sorted.":`Saved ${n.workflowId} switched off, and asked the owner (card ${n.cardId}) whether to keep it as a reusable workflow.`}catch(i){return`Error: couldn't reach the daemon (${i?.message??i}).`}}export{T as runWorkflowTool};
|
|
7
|
-
//# sourceMappingURL=follow-up-tool-
|
|
7
|
+
//# sourceMappingURL=follow-up-tool-I2HTKMP4.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=grants-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-TH2W2545.js";import"./chunk-BED4R5CS.js";import"./chunk-MNG2AMKZ.js";import"./chunk-7I7IEX4S.js";import"./chunk-VQRY4IDI.js";import"./chunk-QIJLFPWE.js";export{c as DEFAULT_GRANT_DAYS,a as GUEST_SCOPE_PREFIX,b as JOIN_CARD_BY,h as JOIN_FAILED,d as MAX_GRANT_DAYS,j as NO_GRANT,l as PAUSED,k as WAITING_HOST,s as endGrant,o as grantBrief,u as grantForGuest,e as grantIdOf,n as guestAccess,p as guestTask,g as inviteGuest,i as joinGuest,f as newGrantId,q as pauseGrant,r as resumeGrant,m as settleGrant,t as updateGrant};
|
|
2
|
+
//# sourceMappingURL=grants-2MNWGCSH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=hub-
|
|
1
|
+
import{a}from"./chunk-PTZNM2JU.js";import"./chunk-CZVCT5ZV.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-WJMYBRM5.js";import"./chunk-WPNRDEHW.js";import"./chunk-245IOYDJ.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-AHWWJ7AF.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-DUCYRNCT.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";export{a as WikiHub};
|
|
2
|
+
//# sourceMappingURL=hub-7ASBN76I.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -4573,6 +4573,9 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
4573
4573
|
* one run, carrying the latest state. The window restarts with each
|
|
4574
4574
|
* event. 0 starts a run per event. */
|
|
4575
4575
|
debounceSeconds: z.ZodDefault<z.ZodNumber>;
|
|
4576
|
+
/** Adding this label to an issue or pull request starts a run, whoever
|
|
4577
|
+
* adds it (#1719). A comment starts one only with an @-mention. */
|
|
4578
|
+
triggerLabel: z.ZodDefault<z.ZodString>;
|
|
4576
4579
|
}, "strip", z.ZodTypeAny, {
|
|
4577
4580
|
enabled: boolean;
|
|
4578
4581
|
cloudSessions: boolean;
|
|
@@ -4592,6 +4595,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
4592
4595
|
pullRequestActions: string[];
|
|
4593
4596
|
ignoreOwnChanges: boolean;
|
|
4594
4597
|
debounceSeconds: number;
|
|
4598
|
+
triggerLabel: string;
|
|
4595
4599
|
token?: string | undefined;
|
|
4596
4600
|
webhookSecret?: string | undefined;
|
|
4597
4601
|
tokenFile?: string | undefined;
|
|
@@ -4623,6 +4627,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
4623
4627
|
pullRequestActions?: string[] | undefined;
|
|
4624
4628
|
ignoreOwnChanges?: boolean | undefined;
|
|
4625
4629
|
debounceSeconds?: number | undefined;
|
|
4630
|
+
triggerLabel?: string | undefined;
|
|
4626
4631
|
}>>;
|
|
4627
4632
|
/** ntfy push notifications — outbound only. The operator-facing tap on
|
|
4628
4633
|
* the shoulder: cron failures, task errors, and anything an agent decides
|
|
@@ -5086,6 +5091,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5086
5091
|
pullRequestActions: string[];
|
|
5087
5092
|
ignoreOwnChanges: boolean;
|
|
5088
5093
|
debounceSeconds: number;
|
|
5094
|
+
triggerLabel: string;
|
|
5089
5095
|
token?: string | undefined;
|
|
5090
5096
|
webhookSecret?: string | undefined;
|
|
5091
5097
|
tokenFile?: string | undefined;
|
|
@@ -5270,6 +5276,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5270
5276
|
pullRequestActions?: string[] | undefined;
|
|
5271
5277
|
ignoreOwnChanges?: boolean | undefined;
|
|
5272
5278
|
debounceSeconds?: number | undefined;
|
|
5279
|
+
triggerLabel?: string | undefined;
|
|
5273
5280
|
} | undefined;
|
|
5274
5281
|
webrtc?: {
|
|
5275
5282
|
enabled?: boolean | undefined;
|
|
@@ -6597,6 +6604,16 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6597
6604
|
composeTimeoutSeconds?: number | undefined;
|
|
6598
6605
|
}>>;
|
|
6599
6606
|
}, "strip", z.ZodTypeAny, {
|
|
6607
|
+
popup: {
|
|
6608
|
+
enabled: boolean;
|
|
6609
|
+
style: "card" | "dialog";
|
|
6610
|
+
sound: string;
|
|
6611
|
+
timeoutSeconds: number;
|
|
6612
|
+
volume: number;
|
|
6613
|
+
theme: "system" | "light" | "dark";
|
|
6614
|
+
speak: boolean;
|
|
6615
|
+
voice?: string | undefined;
|
|
6616
|
+
};
|
|
6600
6617
|
digest: {
|
|
6601
6618
|
enabled: boolean;
|
|
6602
6619
|
time: string;
|
|
@@ -6611,16 +6628,6 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6611
6628
|
maxExpiryDays: number;
|
|
6612
6629
|
laterHours: number;
|
|
6613
6630
|
notifyAgent: boolean;
|
|
6614
|
-
popup: {
|
|
6615
|
-
enabled: boolean;
|
|
6616
|
-
style: "card" | "dialog";
|
|
6617
|
-
sound: string;
|
|
6618
|
-
timeoutSeconds: number;
|
|
6619
|
-
volume: number;
|
|
6620
|
-
theme: "system" | "light" | "dark";
|
|
6621
|
-
speak: boolean;
|
|
6622
|
-
voice?: string | undefined;
|
|
6623
|
-
};
|
|
6624
6631
|
checkin: {
|
|
6625
6632
|
enabled: boolean;
|
|
6626
6633
|
times: string[];
|
|
@@ -6634,6 +6641,16 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6634
6641
|
};
|
|
6635
6642
|
forwardTo?: string | undefined;
|
|
6636
6643
|
}, {
|
|
6644
|
+
popup?: {
|
|
6645
|
+
enabled?: boolean | undefined;
|
|
6646
|
+
style?: "card" | "dialog" | undefined;
|
|
6647
|
+
voice?: string | undefined;
|
|
6648
|
+
sound?: string | undefined;
|
|
6649
|
+
timeoutSeconds?: number | undefined;
|
|
6650
|
+
volume?: number | undefined;
|
|
6651
|
+
theme?: "system" | "light" | "dark" | undefined;
|
|
6652
|
+
speak?: boolean | undefined;
|
|
6653
|
+
} | undefined;
|
|
6637
6654
|
digest?: {
|
|
6638
6655
|
enabled?: boolean | undefined;
|
|
6639
6656
|
timezone?: string | undefined;
|
|
@@ -6649,16 +6666,6 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6649
6666
|
laterHours?: number | undefined;
|
|
6650
6667
|
notifyAgent?: boolean | undefined;
|
|
6651
6668
|
forwardTo?: string | undefined;
|
|
6652
|
-
popup?: {
|
|
6653
|
-
enabled?: boolean | undefined;
|
|
6654
|
-
style?: "card" | "dialog" | undefined;
|
|
6655
|
-
voice?: string | undefined;
|
|
6656
|
-
sound?: string | undefined;
|
|
6657
|
-
timeoutSeconds?: number | undefined;
|
|
6658
|
-
volume?: number | undefined;
|
|
6659
|
-
theme?: "system" | "light" | "dark" | undefined;
|
|
6660
|
-
speak?: boolean | undefined;
|
|
6661
|
-
} | undefined;
|
|
6662
6669
|
checkin?: {
|
|
6663
6670
|
enabled?: boolean | undefined;
|
|
6664
6671
|
agent?: string | undefined;
|
|
@@ -11730,6 +11737,16 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11730
11737
|
};
|
|
11731
11738
|
};
|
|
11732
11739
|
approvals: {
|
|
11740
|
+
popup: {
|
|
11741
|
+
enabled: boolean;
|
|
11742
|
+
style: "card" | "dialog";
|
|
11743
|
+
sound: string;
|
|
11744
|
+
timeoutSeconds: number;
|
|
11745
|
+
volume: number;
|
|
11746
|
+
theme: "system" | "light" | "dark";
|
|
11747
|
+
speak: boolean;
|
|
11748
|
+
voice?: string | undefined;
|
|
11749
|
+
};
|
|
11733
11750
|
digest: {
|
|
11734
11751
|
enabled: boolean;
|
|
11735
11752
|
time: string;
|
|
@@ -11744,16 +11761,6 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11744
11761
|
maxExpiryDays: number;
|
|
11745
11762
|
laterHours: number;
|
|
11746
11763
|
notifyAgent: boolean;
|
|
11747
|
-
popup: {
|
|
11748
|
-
enabled: boolean;
|
|
11749
|
-
style: "card" | "dialog";
|
|
11750
|
-
sound: string;
|
|
11751
|
-
timeoutSeconds: number;
|
|
11752
|
-
volume: number;
|
|
11753
|
-
theme: "system" | "light" | "dark";
|
|
11754
|
-
speak: boolean;
|
|
11755
|
-
voice?: string | undefined;
|
|
11756
|
-
};
|
|
11757
11764
|
checkin: {
|
|
11758
11765
|
enabled: boolean;
|
|
11759
11766
|
times: string[];
|
|
@@ -11884,6 +11891,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11884
11891
|
pullRequestActions: string[];
|
|
11885
11892
|
ignoreOwnChanges: boolean;
|
|
11886
11893
|
debounceSeconds: number;
|
|
11894
|
+
triggerLabel: string;
|
|
11887
11895
|
token?: string | undefined;
|
|
11888
11896
|
webhookSecret?: string | undefined;
|
|
11889
11897
|
tokenFile?: string | undefined;
|
|
@@ -13208,6 +13216,16 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
13208
13216
|
} | undefined;
|
|
13209
13217
|
} | undefined;
|
|
13210
13218
|
approvals?: {
|
|
13219
|
+
popup?: {
|
|
13220
|
+
enabled?: boolean | undefined;
|
|
13221
|
+
style?: "card" | "dialog" | undefined;
|
|
13222
|
+
voice?: string | undefined;
|
|
13223
|
+
sound?: string | undefined;
|
|
13224
|
+
timeoutSeconds?: number | undefined;
|
|
13225
|
+
volume?: number | undefined;
|
|
13226
|
+
theme?: "system" | "light" | "dark" | undefined;
|
|
13227
|
+
speak?: boolean | undefined;
|
|
13228
|
+
} | undefined;
|
|
13211
13229
|
digest?: {
|
|
13212
13230
|
enabled?: boolean | undefined;
|
|
13213
13231
|
timezone?: string | undefined;
|
|
@@ -13223,16 +13241,6 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
13223
13241
|
laterHours?: number | undefined;
|
|
13224
13242
|
notifyAgent?: boolean | undefined;
|
|
13225
13243
|
forwardTo?: string | undefined;
|
|
13226
|
-
popup?: {
|
|
13227
|
-
enabled?: boolean | undefined;
|
|
13228
|
-
style?: "card" | "dialog" | undefined;
|
|
13229
|
-
voice?: string | undefined;
|
|
13230
|
-
sound?: string | undefined;
|
|
13231
|
-
timeoutSeconds?: number | undefined;
|
|
13232
|
-
volume?: number | undefined;
|
|
13233
|
-
theme?: "system" | "light" | "dark" | undefined;
|
|
13234
|
-
speak?: boolean | undefined;
|
|
13235
|
-
} | undefined;
|
|
13236
13244
|
checkin?: {
|
|
13237
13245
|
enabled?: boolean | undefined;
|
|
13238
13246
|
agent?: string | undefined;
|
|
@@ -13368,6 +13376,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
13368
13376
|
pullRequestActions?: string[] | undefined;
|
|
13369
13377
|
ignoreOwnChanges?: boolean | undefined;
|
|
13370
13378
|
debounceSeconds?: number | undefined;
|
|
13379
|
+
triggerLabel?: string | undefined;
|
|
13371
13380
|
} | undefined;
|
|
13372
13381
|
webrtc?: {
|
|
13373
13382
|
enabled?: boolean | undefined;
|
|
@@ -15186,6 +15195,9 @@ declare class AgentXDaemon {
|
|
|
15186
15195
|
/** The channel and chat of the running turn of `agentId` that `proof`
|
|
15187
15196
|
* names, as the registry files the run. Null when it names none. */
|
|
15188
15197
|
private provenTurn;
|
|
15198
|
+
/** The agent of the running turn this request proves, and whether the
|
|
15199
|
+
* owner started that turn (org-proposals.ts isOwnerContext, #1678). */
|
|
15200
|
+
private orgCaller;
|
|
15189
15201
|
/** The agent whose running turn `proof` names: the owner of its task,
|
|
15190
15202
|
* or `claimed` when its channel and chat match a running turn of that
|
|
15191
15203
|
* agent. Null when the call proves none. */
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Oa as Tt,Pa as Mt,a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,h as bt}from"./chunk-3B5HSNOF.js";import"./chunk-EJFPXG6I.js";import"./chunk-GTJIKXDB.js";import"./chunk-RXX4MYFL.js";import"./chunk-ZVP6GB4G.js";import"./chunk-MF46BC7J.js";import"./chunk-IMLAPB7G.js";import"./chunk-EKJG63EJ.js";import"./chunk-PQUK6XEW.js";import"./chunk-JSCVOB4G.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-IU63JGY3.js";import"./chunk-MRIVENBY.js";import"./chunk-TH2W2545.js";import"./chunk-BED4R5CS.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-UKUH662W.js";import"./chunk-3Q6MRG3P.js";import"./chunk-2VDO2HEK.js";import"./chunk-JWDJMFU6.js";import"./chunk-2P5NP4H6.js";import"./chunk-B4KQC3DG.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-Q3A5P373.js";import"./chunk-CXFVIDJV.js";import"./chunk-QPABR72X.js";import"./chunk-A5GYG56I.js";import"./chunk-PW3WG6JT.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-6TTGRTDO.js";import"./chunk-MNG2AMKZ.js";import"./chunk-RX5O5637.js";import"./chunk-KRHVM26D.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{Ca as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-5STGF4MI.js";import"./chunk-JT5PIBCM.js";import"./chunk-MEFPXHQJ.js";import"./chunk-7AB3QUGH.js";import{a as L}from"./chunk-BAXGL6TY.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-PQX2VJUA.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-GV7S5BAX.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VJVXEVZ7.js";import{u as ut}from"./chunk-IDGEDPRJ.js";import"./chunk-2P3SHT5I.js";import"./chunk-3UOTLMXD.js";import"./chunk-VWTBHLMX.js";import"./chunk-BE64IJWM.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GSX4NK2N.js";import"./chunk-HPRLRD4P.js";import"./chunk-PTZNM2JU.js";import{a as ht}from"./chunk-CZVCT5ZV.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-SKCOIP5R.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-WJMYBRM5.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-UGRMFQAG.js";import{j as it,k as rt,l as at}from"./chunk-245IOYDJ.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-QUFIUXMQ.js";import"./chunk-IFNXMUEG.js";import"./chunk-36X7D4JA.js";import"./chunk-2HBEZV7L.js";import"./chunk-A7JSRDJL.js";import"./chunk-BERWTVG2.js";import"./chunk-AHWWJ7AF.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-DCIYOPJF.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{Fb as tt,Hb as st,Kb as ot,Rb as nt}from"./chunk-DUCYRNCT.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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).
|