agentix-cli 0.96.1 → 0.98.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/apps/mac-voice/Sources/AgentXVoice/Character.swift +4 -1
- package/apps/mac-voice/Sources/AgentXVoice/CharacterSim.swift +50 -4
- package/apps/mac-voice/Sources/AgentXVoice/PlayActs.swift +164 -0
- package/apps/mac-voice/Sources/AgentXVoice/PlayMath.swift +94 -46
- package/apps/mac-voice/Sources/AgentXVoice/PlayMotion.swift +110 -0
- package/apps/mac-voice/Sources/AgentXVoice/PlayStage.swift +56 -3
- package/apps/mac-voice/Sources/AgentXVoice/SettingsLook.swift +6 -0
- package/apps/mac-voice/Sources/AgentXVoice/SettingsWindow.swift +4 -1
- package/apps/mac-voice/Sources/AgentXVoice/VoiceSettings.swift +18 -1
- package/apps/mac-voice/Sources/AgentXVoice/main.swift +24 -10
- package/dist/{App-UHSIO3UE.js → App-XLQDP26J.js} +2 -2
- package/dist/{ChatApp-LLTFBLJY.js → ChatApp-DRDUXZ66.js} +2 -2
- package/dist/{agent-6RJ633MQ.js → agent-QHM3J2XS.js} +2 -2
- package/dist/{board-dashboard-A3ZEI4F6.js → board-dashboard-AIT26JTK.js} +4 -4
- package/dist/{chunk-ZZSNM2RI.js → chunk-4BCAH7XI.js} +2 -2
- package/dist/{chunk-ALWMYA2B.js → chunk-B32A6OOY.js} +2 -2
- package/dist/{chunk-VO2GNAKB.js → chunk-BERHVF3T.js} +2 -2
- package/dist/{chunk-6DCY2JCB.js → chunk-BHKWXFJD.js} +5 -5
- package/dist/{chunk-4XHKJZLJ.js → chunk-BTLW2RML.js} +2 -2
- package/dist/{chunk-DU6536CC.js → chunk-DRUEPGLP.js} +2 -2
- package/dist/{chunk-KIGFWUKP.js → chunk-DXJRMPGH.js} +2 -2
- package/dist/{chunk-IPDEWVVT.js → chunk-GJ5EJVMZ.js} +2 -2
- package/dist/{chunk-EBVB727L.js → chunk-IQJ7UZVV.js} +2 -2
- package/dist/{chunk-ZVW645NU.js → chunk-J4JVKVEK.js} +2 -2
- package/dist/{chunk-TE44E733.js → chunk-J64VIHL5.js} +2 -2
- package/dist/{chunk-XEKZKH3W.js → chunk-JREA25GJ.js} +4 -4
- package/dist/chunk-JREA25GJ.js.map +1 -0
- package/dist/{chunk-KEKO4S45.js → chunk-JZJ7AZJD.js} +2 -2
- package/dist/{chunk-MKF6HSBA.js → chunk-LXJGLNVG.js} +2 -2
- package/dist/{chunk-QZIEYDIY.js → chunk-OFVMUBIP.js} +2 -2
- package/dist/{chunk-GHXSBJZS.js → chunk-QUU5RJ7D.js} +2 -2
- package/dist/{chunk-ZYJDAT3E.js → chunk-S2GPUSBU.js} +2 -2
- package/dist/{chunk-J2MHITWR.js → chunk-SJMOZY7Y.js} +2 -2
- package/dist/{chunk-MNS4SBRR.js → chunk-WWCVQHV3.js} +149 -149
- package/dist/chunk-WWCVQHV3.js.map +1 -0
- package/dist/{chunk-44UGVUN7.js → chunk-YYCFI4VP.js} +2 -2
- package/dist/{chunk-6NECC6YS.js → chunk-Z4FY64BS.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/{client-ARS6ZFT2.js → client-BLUCLNIS.js} +2 -2
- package/dist/{config-XO5Z3BO5.js → config-ZUMI4IY4.js} +2 -2
- package/dist/config-mutator-S3CD2IWQ.js +2 -0
- package/dist/{doctor-VUK3JE6Z.js → doctor-XGQW5SMD.js} +2 -2
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/{program-HUQB4IIO.js → program-FK7REU2M.js} +117 -117
- package/dist/program-FK7REU2M.js.map +1 -0
- package/dist/{promote-UGQXA4KV.js → promote-K5LP5Q6Z.js} +2 -2
- package/dist/{query-DL7RHPMA.js → query-LHXSINM2.js} +2 -2
- package/dist/{registry-YIPKBRBH.js → registry-OQUO6NCW.js} +2 -2
- package/dist/{request-planner-L2FAVNKP.js → request-planner-TW5OCKTF.js} +2 -2
- package/dist/{review-candidates-RPUP4XBU.js → review-candidates-EFELFOSY.js} +2 -2
- package/dist/{routing-G66SVTRO.js → routing-TSRZLD7B.js} +2 -2
- package/dist/schedule-tool-JUHRVU5D.js +2 -0
- package/dist/scheduler-EHJPTULN.js +2 -0
- package/dist/{seat-ZPH7DA5L.js → seat-NIPWHLKC.js} +2 -2
- package/dist/{select-2WTV2BI2.js → select-UAKDLN76.js} +2 -2
- package/dist/{set-enabled-KI2FINQD.js → set-enabled-74DLXMSM.js} +2 -2
- package/dist/{tool-ZFQ46KU3.js → tool-CEBL57UW.js} +2 -2
- package/dist/{tool-2P4LRWN4.js → tool-TEGHFORD.js} +2 -2
- package/dist/wiki-WOK4SCB7.js +2 -0
- package/package.json +1 -1
- package/dist/chunk-MNS4SBRR.js.map +0 -1
- package/dist/chunk-XEKZKH3W.js.map +0 -1
- package/dist/config-mutator-MJX4EIYV.js +0 -2
- package/dist/program-HUQB4IIO.js.map +0 -1
- package/dist/schedule-tool-FOWPIWKP.js +0 -2
- package/dist/scheduler-GFVUPAD6.js +0 -2
- package/dist/wiki-XATGT3DI.js +0 -2
- /package/dist/{App-UHSIO3UE.js.map → App-XLQDP26J.js.map} +0 -0
- /package/dist/{ChatApp-LLTFBLJY.js.map → ChatApp-DRDUXZ66.js.map} +0 -0
- /package/dist/{agent-6RJ633MQ.js.map → agent-QHM3J2XS.js.map} +0 -0
- /package/dist/{board-dashboard-A3ZEI4F6.js.map → board-dashboard-AIT26JTK.js.map} +0 -0
- /package/dist/{chunk-ZZSNM2RI.js.map → chunk-4BCAH7XI.js.map} +0 -0
- /package/dist/{chunk-ALWMYA2B.js.map → chunk-B32A6OOY.js.map} +0 -0
- /package/dist/{chunk-VO2GNAKB.js.map → chunk-BERHVF3T.js.map} +0 -0
- /package/dist/{chunk-6DCY2JCB.js.map → chunk-BHKWXFJD.js.map} +0 -0
- /package/dist/{chunk-4XHKJZLJ.js.map → chunk-BTLW2RML.js.map} +0 -0
- /package/dist/{chunk-DU6536CC.js.map → chunk-DRUEPGLP.js.map} +0 -0
- /package/dist/{chunk-KIGFWUKP.js.map → chunk-DXJRMPGH.js.map} +0 -0
- /package/dist/{chunk-IPDEWVVT.js.map → chunk-GJ5EJVMZ.js.map} +0 -0
- /package/dist/{chunk-EBVB727L.js.map → chunk-IQJ7UZVV.js.map} +0 -0
- /package/dist/{chunk-ZVW645NU.js.map → chunk-J4JVKVEK.js.map} +0 -0
- /package/dist/{chunk-TE44E733.js.map → chunk-J64VIHL5.js.map} +0 -0
- /package/dist/{chunk-KEKO4S45.js.map → chunk-JZJ7AZJD.js.map} +0 -0
- /package/dist/{chunk-MKF6HSBA.js.map → chunk-LXJGLNVG.js.map} +0 -0
- /package/dist/{chunk-QZIEYDIY.js.map → chunk-OFVMUBIP.js.map} +0 -0
- /package/dist/{chunk-GHXSBJZS.js.map → chunk-QUU5RJ7D.js.map} +0 -0
- /package/dist/{chunk-ZYJDAT3E.js.map → chunk-S2GPUSBU.js.map} +0 -0
- /package/dist/{chunk-J2MHITWR.js.map → chunk-SJMOZY7Y.js.map} +0 -0
- /package/dist/{chunk-44UGVUN7.js.map → chunk-YYCFI4VP.js.map} +0 -0
- /package/dist/{chunk-6NECC6YS.js.map → chunk-Z4FY64BS.js.map} +0 -0
- /package/dist/{client-ARS6ZFT2.js.map → client-BLUCLNIS.js.map} +0 -0
- /package/dist/{config-XO5Z3BO5.js.map → config-ZUMI4IY4.js.map} +0 -0
- /package/dist/{config-mutator-MJX4EIYV.js.map → config-mutator-S3CD2IWQ.js.map} +0 -0
- /package/dist/{doctor-VUK3JE6Z.js.map → doctor-XGQW5SMD.js.map} +0 -0
- /package/dist/{promote-UGQXA4KV.js.map → promote-K5LP5Q6Z.js.map} +0 -0
- /package/dist/{query-DL7RHPMA.js.map → query-LHXSINM2.js.map} +0 -0
- /package/dist/{registry-YIPKBRBH.js.map → registry-OQUO6NCW.js.map} +0 -0
- /package/dist/{request-planner-L2FAVNKP.js.map → request-planner-TW5OCKTF.js.map} +0 -0
- /package/dist/{review-candidates-RPUP4XBU.js.map → review-candidates-EFELFOSY.js.map} +0 -0
- /package/dist/{routing-G66SVTRO.js.map → routing-TSRZLD7B.js.map} +0 -0
- /package/dist/{schedule-tool-FOWPIWKP.js.map → schedule-tool-JUHRVU5D.js.map} +0 -0
- /package/dist/{scheduler-GFVUPAD6.js.map → scheduler-EHJPTULN.js.map} +0 -0
- /package/dist/{seat-ZPH7DA5L.js.map → seat-NIPWHLKC.js.map} +0 -0
- /package/dist/{select-2WTV2BI2.js.map → select-UAKDLN76.js.map} +0 -0
- /package/dist/{set-enabled-KI2FINQD.js.map → set-enabled-74DLXMSM.js.map} +0 -0
- /package/dist/{tool-ZFQ46KU3.js.map → tool-CEBL57UW.js.map} +0 -0
- /package/dist/{tool-2P4LRWN4.js.map → tool-TEGHFORD.js.map} +0 -0
- /package/dist/{wiki-XATGT3DI.js.map → wiki-WOK4SCB7.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as _,r as W}from"./chunk-2AXFYDWF.js";import{b as Y,c as I,d as O}from"./chunk-AQASR6KR.js";import{b as F}from"./chunk-DP7RTNDM.js";import{a as E}from"./chunk-
|
|
1
|
+
import{q as _,r as W}from"./chunk-2AXFYDWF.js";import{b as Y,c as I,d as O}from"./chunk-AQASR6KR.js";import{b as F}from"./chunk-DP7RTNDM.js";import{a as E}from"./chunk-S2GPUSBU.js";import{b as L}from"./chunk-CECHWYJ2.js";import{createHash as ee}from"crypto";import{existsSync as H,readdirSync as te,readFileSync as re,writeFileSync as ne}from"fs";import{resolve as P}from"path";function be(n,r,s,t,o,i,c=""){return Z(r,s,t,o,i,c)}function Z(n,r,s,t,o,i=""){let c=r?`
|
|
2
2
|
## Worldview
|
|
3
3
|
|
|
4
4
|
${r}
|
|
@@ -240,4 +240,4 @@ ${g}`}var x="memory-promoter",oe=["project","reference","feedback"],K="_memory-p
|
|
|
240
240
|
Re-emit the FULL corrected JSON object \u2014 same structure, fixed issues, valid JSON only.`:n,y=await t(`${a}/task`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agent:r.viaAgent,message:h,freshSession:s===null,context:{channel:"api",chatId:r.chatId??"memory-promote"}}),signal:i.signal});if(!y.ok){let f=await y.text().catch(()=>"");throw new Error(`agent /task ${y.status}: ${f.slice(0,500)}`)}let w=await y.json();if(w.error)throw new Error(`agent reported error: ${w.error}`);let b=String(w.content??"").trim();if(!b)throw new Error("agent returned empty content");return b}if(!r.model)throw new Error("callPromotionLlm: viaAgent or model is required");let p=process.env.ANTHROPIC_API_KEY;if(!p)throw new Error("ANTHROPIC_API_KEY not set; use --via <agentId> instead");let u=[{role:"user",content:n}];s&&(u.push({role:"assistant",content:"(previous attempt; will retry with corrections)"}),u.push({role:"user",content:`Your previous response failed validation: ${s}
|
|
241
241
|
Re-emit the FULL corrected JSON object.`}));let g=await t(me,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":p,"anthropic-version":ge},body:JSON.stringify({model:r.model,max_tokens:8e3,messages:u}),signal:i.signal});if(!g.ok){let a=await g.text().catch(()=>"");throw new Error(`anthropic API ${g.status}: ${a.slice(0,500)}`)}let l=await g.json(),e=(Array.isArray(l.content)?l.content:[]).filter(a=>a?.type==="text").map(a=>a.text).join(`
|
|
242
242
|
`).trim();if(!e)throw new Error("anthropic API returned no text content");return e}finally{clearTimeout(c)}}async function Se(n={}){let r=n.wikiDir??P(process.cwd(),".agentx","wiki"),s=n.memoryRoot??P(process.cwd(),".agentx"),t=n.log??(()=>{}),o=n.now??Date.now(),i={candidates:[],clusters:[],proposed:[],skipped:[],gaps:[],warnings:[],errors:[],dryRun:!n.commit},c=new E(r,(...m)=>t(m.map(String).join(" "))),p=c.rebuildIndex(),u=z(r),g=[...ce(s),...n.extraCandidates??[]];if(i.candidates=de(g,p,u,{types:n.types,sinceMs:n.sinceMs,agentFilter:n.agentFilter,now:o,max:n.max}),i.candidates.length===0)return t("no unpromoted memories in window"),i;if(i.clusters=le(i.candidates),i.dryRun)return i;let l=p.articles.map(m=>({title:m.title,path:m.path,type:m.type})),d=c.getWorldview()??"",e=n.budgetTokens??ue,a=i.clusters,h=D(x,a,l,d);for(;R(h)>e&&a.length>1;)a=a.slice(0,-1),h=D(x,a,l,d);if(R(h)>e)return i.errors.push(`judge prompt (~${R(h)} tokens) exceeds the ${e}-token budget even with one cluster`),i;a.length<i.clusters.length&&i.warnings.push(`token budget: judged ${a.length} of ${i.clusters.length} clusters; the rest wait for the next run`);let y=a.flatMap(m=>m.candidates),w=new Set(y.map(m=>m.stamp)),b=n.chatId??`memory-promote-${new Date(o).toISOString().slice(0,10)}`,f=B(await G(h,{...n,chatId:b}),w);if("error"in f&&(t(`parse failed (${f.error}) \u2014 retrying with feedback`),f=B(await G(h,{...n,chatId:b},f.error),w)),"error"in f)return i.errors.push(`LLM response unusable after retry: ${f.error}`),i;i.warnings.push(...f.warnings),i.gaps=f.gaps;let v=new Date(o).toISOString(),k=[],T=new Map(y.map(m=>[m.stamp,m]));for(let m of f.articles){let A=c.readArticle(m.path);if(A&&!c.canWrite(A.meta,x)){i.errors.push(`write denied for "${m.path}" (owned by ${A.meta.owner??"?"})`);continue}let M=fe(m.promotedFrom,T),S={id:Y(o,m.path),createdAt:v,status:"pending",article:m,evidence:M,...A?{replaces:{lastUpdated:A.meta.lastUpdated,contentHash:V(A.content)}}:{}};I(r,S),i.proposed.push({id:S.id,path:m.path,title:m.title,type:m.type,stamps:m.promotedFrom,agents:M.agents,occurrences:M.occurrences});for(let X of m.promotedFrom)k.push({stamp:X,decision:"proposed",article:m.path,proposal:S.id,at:v})}for(let m of f.skipped)k.push({stamp:m.stamp,decision:"skipped",reason:m.reason,at:v}),i.skipped.push(m);return k.length&&C(r,k),i}var ue=6e4;function R(n){return Math.ceil(n.length/4)}function V(n){return ee("sha256").update(n).digest("hex").slice(0,16)}var he=600;function ye(n){return n.startsWith("review:")?"review":n.startsWith(j)?"failure":"memory"}function fe(n,r){let s=[];for(let t of n){let o=r.get(t);o&&s.push({stamp:t,kind:ye(t),agentId:o.agentId,type:o.memory.type,name:o.memory.name,description:o.memory.description,...o.occurrences?{occurrences:o.occurrences}:{},...o.sessions?.length?{sessions:o.sessions}:{},...o.tasks?.length?{tasks:o.tasks}:{},...o.failure?{failure:o.failure}:{},...o.memory.author?{author:o.memory.author}:{},...o.memory.taskId?{taskId:o.memory.taskId}:{},updatedAt:o.memory.updatedAt,excerpt:o.memory.body.slice(0,he)})}return{agents:[...new Set(s.map(t=>t.agentId))].sort(),occurrences:Math.max(1,...s.map(t=>t.occurrences??1)),sources:s}}function Ee(n,r,s={}){let t=O(n,r);if(!t)return{ok:!1,error:`no proposal "${r}"`};if(t.status!=="pending")return{ok:!1,error:`proposal "${r}" is already ${t.status}`};let o=s.log??(()=>{}),i=new E(n,(...a)=>o(a.map(String).join(" "))),{article:c}=t,p=i.readArticle(c.path);if(!s.force){if(p&&!t.replaces)return{ok:!1,error:`"${c.path}" was created after this proposal; review it, then approve with --force`};if(p&&t.replaces&&V(p.content)!==t.replaces.contentHash)return{ok:!1,error:`"${c.path}" changed since this proposal; review it, then approve with --force`}}let u=s.now??Date.now(),g=new Date(u).toISOString().slice(0,10);if(!i.writeArticle(c.path,{title:c.title,type:L(c.type)?c.type:void 0,related:c.related,tags:c.tags,owner:x,access:"public",created:p?.meta.created??g,lastUpdated:g,sources:ae(p?.meta.sources,c.promotedFrom)},c.content,x))return{ok:!1,error:`write denied for "${c.path}" (owned by ${p?.meta.owner??"?"})`};let d=new Date(u).toISOString();C(n,c.promotedFrom.map(a=>({stamp:a,decision:"promoted",article:c.path,proposal:r,at:d}))),i.rebuildIndex();let e={...t,status:"approved",decidedBy:s.by??"operator",decidedAt:d};return I(n,e),{ok:!0,proposal:e}}function Oe(n,r,s={}){let t=O(n,r);if(!t)return{ok:!1,error:`no proposal "${r}"`};if(t.status!=="pending")return{ok:!1,error:`proposal "${r}" is already ${t.status}`};let o=new Date(s.now??Date.now()).toISOString();C(n,t.article.promotedFrom.map(c=>({stamp:c,decision:"rejected",article:t.article.path,proposal:r,reason:s.reason,at:o})));let i={...t,status:"rejected",decidedBy:s.by??"operator",decidedAt:o,...s.reason?{reason:s.reason}:{}};return I(n,i),{ok:!0,proposal:i}}export{be as a,x as b,oe as c,K as d,q as e,ie as f,$ as g,ae as h,ce as i,z as j,C as k,le as l,B as m,de as n,G as o,Se as p,R as q,ye as r,fe as s,Ee as t,Oe as u};
|
|
243
|
-
//# sourceMappingURL=chunk-
|
|
243
|
+
//# sourceMappingURL=chunk-YYCFI4VP.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as l,w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{v as l,w}from"./chunk-DXJRMPGH.js";import{a as i,f as p}from"./chunk-72SZI2UW.js";w();p();var d="task-tier";function u(e){return{task:m(e.message,2e3),agent:e.agent,channel:e.channel??null,continuesExistingSession:e.isFollowUp??!1,...e.toolsAvailable?{toolsAvailable:e.toolsAvailable}:{}}}var c={needsFlagship:i("This task needs the strongest available model to be done correctly.",{true:"Doing it well takes real reasoning: writing or reviewing code, diagnosing a failure, planning work across several steps, weighing a judgement, handling money, touching production or anything irreversible, following a long or ambiguous instruction, or work where being subtly wrong would not be noticed. Anything where a weaker model would produce something that LOOKS right belongs here.",false:"It is mechanical and its result is obvious on sight: acknowledging or confirming a message, restating or formatting something already written, a greeting, a status echo, reading one file and reporting what it says, a lookup with one right answer, a scheduled heartbeat with nothing to decide."})};function g(e){return e.needsFlagship.noul}function m(e,n){return e.length>n?`${e.slice(0,n)}\u2026`:e}var h=.2,T=60*60*1e3;function F(e,n){if(e==="claude-code"){let t=n?.cheapModels?.[e]??n?.cheapModel;return t&&/^(claude-|haiku$|sonnet$|opus$)/.test(t)?t:void 0}if(e==="codex-cli"){let t=n?.cheapModels?.[e];return t&&/^(gpt-|o\d)/.test(t)?t:void 0}}async function _(e){let n=(s,r=null)=>({downgraded:!1,needsFlagship:r,reason:s});if(e.channel==="voice"||e.channel==="desktop"||e.channel==="opencode")return n(`${e.channel} requests retain the configured model`);if(!e.cheapModel)return n("no cheaper model configured");if(e.isFollowUp){let s=e.sessionIdleMs??0,r=e.cacheTtlMs??T;if(s<r)return n(`follow-up on a warm cache (idle ${Math.round(s/1e3)}s) \u2014 swapping would cost more than it saves`)}let t;try{t=await l(d,u(e),c,{incumbent:{needsFlagship:1},features:{agent:e.agent,channel:e.channel??"unknown"},timeoutMs:1500})}catch{return n("routing seat threw \u2014 keeping the flagship")}if(!t)return n("routing seat unavailable \u2014 keeping the flagship");let o=g(t.answers);if(t.mode!=="active")return n(`shadow \u2014 would ${o<(e.threshold??h)?"downgrade":"keep"} (${o.toFixed(2)})`,o);let a=e.threshold??h;return o>=a?n(`needs the flagship (${o.toFixed(2)})`,o):{model:e.cheapModel,downgraded:!0,needsFlagship:o,reason:`mechanical task (${o.toFixed(2)} below ${a}) \u2192 ${e.cheapModel}`}}export{F as a,_ as b};
|
|
2
|
+
//# sourceMappingURL=chunk-Z4FY64BS.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{b as o}from"./chunk-JXF54PT7.js";import"./chunk-QIJLFPWE.js";var s=o(process.versions.node);s&&(console.error(s),process.exit(1));var{buildProgram:r}=await import("./program-
|
|
2
|
+
import{b as o}from"./chunk-JXF54PT7.js";import"./chunk-QIJLFPWE.js";var s=o(process.versions.node);s&&(console.error(s),process.exit(1));var{buildProgram:r}=await import("./program-FK7REU2M.js"),{installCliSignalExit:i}=await import("./signal-exit-WL7G3EEZ.js");i();var e=await r();process.argv.slice(2).length===0?e.outputHelp():e.parse();
|
|
3
3
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=client-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"./chunk-GJ5EJVMZ.js";import"./chunk-JREA25GJ.js";import"./chunk-RJ7DASOU.js";import"./chunk-BRK6M6LA.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{b as fetchAgents,d as fetchCrons,c as fetchProcesses,e as killProcess,a as resolveConn,f as sendTask,g as streamTask};
|
|
2
|
+
//# sourceMappingURL=client-BLUCLNIS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as h,U as a,V as b,W as c,X as d,Y as e,Z as f,_ as g,aa as i,ba as j,ca as k,da as l,ea as m,fa as n,ha as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-
|
|
1
|
+
import{$ as h,U as a,V as b,W as c,X as d,Y as e,Z as f,_ as g,aa as i,ba as j,ca as k,da as l,ea as m,fa as n,ha as o}from"./chunk-JREA25GJ.js";import"./chunk-RJ7DASOU.js";import"./chunk-BRK6M6LA.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";o();export{a as INTEGRATION_KINDS,j as approvalsConfigSchema,d as callsSchema,c as cameraBotSchema,k as daemonConfigSchema,b as eventSubscriptionSchema,l as expandEnvVars,m as loadDaemonConfig,h as membersConfigSchema,g as peopleConfigSchema,f as personSchema,i as requestStatusConfigSchema,e as requestsConfigSchema,n as validateWorkspaces};
|
|
2
|
+
//# sourceMappingURL=config-ZUMI4IY4.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-DRUEPGLP.js";import"./chunk-JREA25GJ.js";import"./chunk-RJ7DASOU.js";import"./chunk-BRK6M6LA.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{b as applyConfigMutation,a as findConfigPath,d as getAtPath,c as setAtPath,e as unsetAtPath};
|
|
2
|
+
//# sourceMappingURL=config-mutator-S3CD2IWQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a,c as b,d as c,e as d,f as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=doctor-
|
|
1
|
+
import{b as a,c as b,d as c,e as d,f as e}from"./chunk-SJMOZY7Y.js";import"./chunk-S2GAEH2F.js";import"./chunk-JXF54PT7.js";import"./chunk-JREA25GJ.js";import"./chunk-RJ7DASOU.js";import"./chunk-BRK6M6LA.js";import"./chunk-2QNT5JDS.js";import"./chunk-QIJLFPWE.js";export{e as daemonVoiceCheck,b as doctor,a as runDoctorChecks,c as runNotificationChecks,d as runReminderChecks};
|
|
2
|
+
//# sourceMappingURL=doctor-XGQW5SMD.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -5166,6 +5166,9 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5166
5166
|
/** AgentX Voice starts with its pill reduced to the orb alone: a
|
|
5167
5167
|
* small circle the person can drag. Off: the full pill. */
|
|
5168
5168
|
startReduced: z.ZodDefault<z.ZodBoolean>;
|
|
5169
|
+
/** The character takes a slow stroll beside where it rests when it
|
|
5170
|
+
* has nothing to do. Off: it moves only out of the pointer's way. */
|
|
5171
|
+
stroll: z.ZodDefault<z.ZodBoolean>;
|
|
5169
5172
|
/** The answer text AgentX Voice shows inside its pill. */
|
|
5170
5173
|
card: z.ZodDefault<z.ZodObject<{
|
|
5171
5174
|
/** Seconds the answer stays open once it has been spoken; 0 keeps
|
|
@@ -5201,6 +5204,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5201
5204
|
};
|
|
5202
5205
|
look: "orb" | "character";
|
|
5203
5206
|
startReduced: boolean;
|
|
5207
|
+
stroll: boolean;
|
|
5204
5208
|
system?: string | Record<string, string> | undefined;
|
|
5205
5209
|
listener?: string | undefined;
|
|
5206
5210
|
}, {
|
|
@@ -5226,6 +5230,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5226
5230
|
} | undefined;
|
|
5227
5231
|
look?: "orb" | "character" | undefined;
|
|
5228
5232
|
startReduced?: boolean | undefined;
|
|
5233
|
+
stroll?: boolean | undefined;
|
|
5229
5234
|
}>>;
|
|
5230
5235
|
business: z.ZodOptional<z.ZodObject<{
|
|
5231
5236
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -6650,6 +6655,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6650
6655
|
};
|
|
6651
6656
|
look: "orb" | "character";
|
|
6652
6657
|
startReduced: boolean;
|
|
6658
|
+
stroll: boolean;
|
|
6653
6659
|
system?: string | Record<string, string> | undefined;
|
|
6654
6660
|
listener?: string | undefined;
|
|
6655
6661
|
};
|
|
@@ -7419,6 +7425,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
7419
7425
|
} | undefined;
|
|
7420
7426
|
look?: "orb" | "character" | undefined;
|
|
7421
7427
|
startReduced?: boolean | undefined;
|
|
7428
|
+
stroll?: boolean | undefined;
|
|
7422
7429
|
} | undefined;
|
|
7423
7430
|
dashboard?: {
|
|
7424
7431
|
enabled?: boolean | undefined;
|
|
@@ -8739,7 +8746,6 @@ declare class AgentXDaemon {
|
|
|
8739
8746
|
private sseClients;
|
|
8740
8747
|
private configPath?;
|
|
8741
8748
|
private configWatcher?;
|
|
8742
|
-
private reloadTimer?;
|
|
8743
8749
|
constructor(configPath?: string);
|
|
8744
8750
|
start(): Promise<void>;
|
|
8745
8751
|
stop(): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as St,b as kt,c as vt,d as xt,e as $t,ea as Tt,f as Ct,fa as Mt,g as Pt,h as bt}from"./chunk-
|
|
1
|
+
import{a as St,b as kt,c as vt,d as xt,e as $t,ea as Tt,f as Ct,fa as Mt,g as Pt,h as bt}from"./chunk-WWCVQHV3.js";import"./chunk-B32A6OOY.js";import"./chunk-GTJIKXDB.js";import"./chunk-JZJ7AZJD.js";import"./chunk-DG5I6PPM.js";import"./chunk-ZVP6GB4G.js";import"./chunk-S2GAEH2F.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-YYCFI4VP.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-ACFQBLPX.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-3Z5P2CWS.js";import"./chunk-E5OV6RTG.js";import"./chunk-PPUN7YHA.js";import{Z as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-BHKWXFJD.js";import"./chunk-BERHVF3T.js";import"./chunk-GLQLCBJS.js";import"./chunk-DP7RTNDM.js";import{a as L}from"./chunk-C245D4BZ.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-OFVMUBIP.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-Y4CYQV7G.js";import"./chunk-LLNPKE7H.js";import"./chunk-SHEUCITK.js";import"./chunk-LXJGLNVG.js";import"./chunk-SZDACK6O.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import{s as ut}from"./chunk-J4JVKVEK.js";import"./chunk-DRUEPGLP.js";import"./chunk-VWTBHLMX.js";import"./chunk-J64VIHL5.js";import{a as ht}from"./chunk-S2GPUSBU.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-Z4FY64BS.js";import"./chunk-MYVHVJWZ.js";import"./chunk-DWADWDMU.js";import"./chunk-23A5K5UW.js";import"./chunk-QD6IICK7.js";import"./chunk-CECHWYJ2.js";import"./chunk-BTLW2RML.js";import{f as gt,g as ft}from"./chunk-4BCAH7XI.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import{j as it,k as rt,l as at}from"./chunk-DXJRMPGH.js";import"./chunk-72SZI2UW.js";import"./chunk-FX3D7YON.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{ca as tt,ea as st,fa as ot,ha as nt}from"./chunk-JREA25GJ.js";import"./chunk-RJ7DASOU.js";import"./chunk-BRK6M6LA.js";import"./chunk-2QNT5JDS.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).
|