agentix-cli 0.69.4 → 0.70.1
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-Z66ABY7H.js → App-LFQTOADB.js} +2 -2
- package/dist/{ChatApp-Z2LZ7IM3.js → ChatApp-RNMG2HWX.js} +2 -2
- package/dist/{agent-IDAWXA3K.js → agent-7IW6472I.js} +2 -2
- package/dist/{board-dashboard-MAP6A2N7.js → board-dashboard-MYWXVYU3.js} +4 -4
- package/dist/{chunk-K63IOY6A.js → chunk-2DWDXT7G.js} +9 -9
- package/dist/chunk-2DWDXT7G.js.map +1 -0
- package/dist/{chunk-P2RYUODK.js → chunk-3ZRFES25.js} +2 -2
- package/dist/{chunk-OHRTBD7U.js → chunk-4HCQEGXO.js} +167 -167
- package/dist/chunk-4HCQEGXO.js.map +1 -0
- package/dist/chunk-4J4YVJFH.js +105 -0
- package/dist/chunk-4J4YVJFH.js.map +1 -0
- package/dist/{chunk-FSYA4GNU.js → chunk-5FD7HE2J.js} +2 -2
- package/dist/{chunk-FUR3T3IN.js → chunk-7334DGUO.js} +2 -2
- package/dist/{chunk-YBF2QVZ7.js → chunk-7PWXCN22.js} +2 -2
- package/dist/{chunk-64P4QHSZ.js → chunk-CECHWYJ2.js} +1 -1
- package/dist/{chunk-64P4QHSZ.js.map → chunk-CECHWYJ2.js.map} +1 -1
- package/dist/{chunk-OVX6NRMD.js → chunk-D3RJMC37.js} +2 -2
- package/dist/chunk-DXAWW7ZQ.js +49 -0
- package/dist/chunk-DXAWW7ZQ.js.map +1 -0
- package/dist/{chunk-CKBAVCGU.js → chunk-E6CYC4HQ.js} +2 -2
- package/dist/{chunk-YL223TEU.js → chunk-FEQ4W4XA.js} +2 -2
- package/dist/{chunk-M6GPRMCQ.js → chunk-KTGPH77J.js} +2 -2
- package/dist/{chunk-KLHG5ZQH.js → chunk-KTNOY4LW.js} +2 -2
- package/dist/{chunk-2UYV24UD.js → chunk-LKA5UUGT.js} +2 -2
- package/dist/{chunk-DQQ3BCJW.js → chunk-MOUSATFW.js} +2 -2
- package/dist/{chunk-5ONI54E6.js → chunk-MTPCD4NV.js} +227 -226
- package/dist/chunk-MTPCD4NV.js.map +1 -0
- package/dist/{chunk-J7HA7ZTU.js → chunk-N4EIYNN4.js} +2 -2
- package/dist/{chunk-BBIWAJRX.js → chunk-O2QVQVOV.js} +2 -2
- package/dist/{chunk-IU6L4V3A.js → chunk-RKZGENSE.js} +2 -2
- package/dist/chunk-RN7G3D53.js +6 -0
- package/dist/chunk-RN7G3D53.js.map +1 -0
- package/dist/chunk-WPNRDEHW.js +2 -0
- package/dist/chunk-WPNRDEHW.js.map +1 -0
- package/dist/{chunk-DTX4I5LQ.js → chunk-XXBW7CFN.js} +2 -2
- package/dist/{chunk-DTX4I5LQ.js.map → chunk-XXBW7CFN.js.map} +1 -1
- package/dist/{chunk-OPUPVGYP.js → chunk-YFROK44Z.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/client-IQIBHXVS.js +2 -0
- package/dist/{config-FZ4D4EAV.js → config-7AK5TI2D.js} +2 -2
- package/dist/config-mutator-EI5JNMY4.js +2 -0
- package/dist/doctor-CTWQODQG.js +2 -0
- package/dist/index.d.ts +63 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{migrate-v2-KOMPDC6U.js → migrate-v2-W7RRFM24.js} +2 -2
- package/dist/program-ZKGWGTPV.js +2 -0
- package/dist/{promote-VZAUTV6E.js → promote-USGFU5NN.js} +2 -2
- package/dist/query-NLSKOIWJ.js +2 -0
- package/dist/registry-T7SCVP55.js +2 -0
- package/dist/{request-planner-NMOAOZIM.js → request-planner-VOWMXWRI.js} +2 -2
- package/dist/{review-candidates-FLY6HZEN.js → review-candidates-F6RLNHS2.js} +2 -2
- package/dist/{routing-SMIZ77CT.js → routing-2LAWEIUG.js} +2 -2
- package/dist/schedule-tool-GOQFT2XQ.js +2 -0
- package/dist/scheduler-GJVRJQ7K.js +2 -0
- package/dist/{seat-F3S2HG5G.js → seat-4LLK2XBM.js} +2 -2
- package/dist/{select-5GC7CTPQ.js → select-NJHTHKEQ.js} +2 -2
- package/dist/{set-enabled-53ZPZ5GR.js → set-enabled-HPR6VJCG.js} +2 -2
- package/dist/{tool-FRTZS4TT.js → tool-XQMGKZP5.js} +2 -2
- package/dist/types-NZOBHQGS.js +2 -0
- package/dist/wiki-RQ5P4WWJ.js +2 -0
- package/package.json +1 -1
- package/dist/chunk-4DRNEOOW.js +0 -2
- package/dist/chunk-4DRNEOOW.js.map +0 -1
- package/dist/chunk-535MLOSB.js +0 -109
- package/dist/chunk-535MLOSB.js.map +0 -1
- package/dist/chunk-5ONI54E6.js.map +0 -1
- package/dist/chunk-K63IOY6A.js.map +0 -1
- package/dist/chunk-OHRTBD7U.js.map +0 -1
- package/dist/chunk-TFVUOC2C.js +0 -2
- package/dist/chunk-TFVUOC2C.js.map +0 -1
- package/dist/chunk-V2TLFYKH.js +0 -45
- package/dist/chunk-V2TLFYKH.js.map +0 -1
- package/dist/client-GDTX6LFH.js +0 -2
- package/dist/config-mutator-ETG5V4C5.js +0 -2
- package/dist/doctor-JBIRBRLB.js +0 -2
- package/dist/program-T275Y2V6.js +0 -2
- package/dist/query-7QQZPMXM.js +0 -2
- package/dist/registry-WQ65MQEY.js +0 -2
- package/dist/schedule-tool-NJFROYKY.js +0 -2
- package/dist/scheduler-5N4FC2FQ.js +0 -2
- package/dist/types-S6NHM5C3.js +0 -2
- package/dist/wiki-J4MMCONT.js +0 -2
- /package/dist/{App-Z66ABY7H.js.map → App-LFQTOADB.js.map} +0 -0
- /package/dist/{ChatApp-Z2LZ7IM3.js.map → ChatApp-RNMG2HWX.js.map} +0 -0
- /package/dist/{agent-IDAWXA3K.js.map → agent-7IW6472I.js.map} +0 -0
- /package/dist/{board-dashboard-MAP6A2N7.js.map → board-dashboard-MYWXVYU3.js.map} +0 -0
- /package/dist/{chunk-P2RYUODK.js.map → chunk-3ZRFES25.js.map} +0 -0
- /package/dist/{chunk-FSYA4GNU.js.map → chunk-5FD7HE2J.js.map} +0 -0
- /package/dist/{chunk-FUR3T3IN.js.map → chunk-7334DGUO.js.map} +0 -0
- /package/dist/{chunk-YBF2QVZ7.js.map → chunk-7PWXCN22.js.map} +0 -0
- /package/dist/{chunk-OVX6NRMD.js.map → chunk-D3RJMC37.js.map} +0 -0
- /package/dist/{chunk-CKBAVCGU.js.map → chunk-E6CYC4HQ.js.map} +0 -0
- /package/dist/{chunk-YL223TEU.js.map → chunk-FEQ4W4XA.js.map} +0 -0
- /package/dist/{chunk-M6GPRMCQ.js.map → chunk-KTGPH77J.js.map} +0 -0
- /package/dist/{chunk-KLHG5ZQH.js.map → chunk-KTNOY4LW.js.map} +0 -0
- /package/dist/{chunk-2UYV24UD.js.map → chunk-LKA5UUGT.js.map} +0 -0
- /package/dist/{chunk-DQQ3BCJW.js.map → chunk-MOUSATFW.js.map} +0 -0
- /package/dist/{chunk-J7HA7ZTU.js.map → chunk-N4EIYNN4.js.map} +0 -0
- /package/dist/{chunk-BBIWAJRX.js.map → chunk-O2QVQVOV.js.map} +0 -0
- /package/dist/{chunk-IU6L4V3A.js.map → chunk-RKZGENSE.js.map} +0 -0
- /package/dist/{chunk-OPUPVGYP.js.map → chunk-YFROK44Z.js.map} +0 -0
- /package/dist/{client-GDTX6LFH.js.map → client-IQIBHXVS.js.map} +0 -0
- /package/dist/{config-FZ4D4EAV.js.map → config-7AK5TI2D.js.map} +0 -0
- /package/dist/{config-mutator-ETG5V4C5.js.map → config-mutator-EI5JNMY4.js.map} +0 -0
- /package/dist/{doctor-JBIRBRLB.js.map → doctor-CTWQODQG.js.map} +0 -0
- /package/dist/{migrate-v2-KOMPDC6U.js.map → migrate-v2-W7RRFM24.js.map} +0 -0
- /package/dist/{program-T275Y2V6.js.map → program-ZKGWGTPV.js.map} +0 -0
- /package/dist/{promote-VZAUTV6E.js.map → promote-USGFU5NN.js.map} +0 -0
- /package/dist/{query-7QQZPMXM.js.map → query-NLSKOIWJ.js.map} +0 -0
- /package/dist/{registry-WQ65MQEY.js.map → registry-T7SCVP55.js.map} +0 -0
- /package/dist/{request-planner-NMOAOZIM.js.map → request-planner-VOWMXWRI.js.map} +0 -0
- /package/dist/{review-candidates-FLY6HZEN.js.map → review-candidates-F6RLNHS2.js.map} +0 -0
- /package/dist/{routing-SMIZ77CT.js.map → routing-2LAWEIUG.js.map} +0 -0
- /package/dist/{schedule-tool-NJFROYKY.js.map → schedule-tool-GOQFT2XQ.js.map} +0 -0
- /package/dist/{scheduler-5N4FC2FQ.js.map → scheduler-GJVRJQ7K.js.map} +0 -0
- /package/dist/{seat-F3S2HG5G.js.map → seat-4LLK2XBM.js.map} +0 -0
- /package/dist/{select-5GC7CTPQ.js.map → select-NJHTHKEQ.js.map} +0 -0
- /package/dist/{set-enabled-53ZPZ5GR.js.map → set-enabled-HPR6VJCG.js.map} +0 -0
- /package/dist/{tool-FRTZS4TT.js.map → tool-XQMGKZP5.js.map} +0 -0
- /package/dist/{types-S6NHM5C3.js.map → types-NZOBHQGS.js.map} +0 -0
- /package/dist/{wiki-J4MMCONT.js.map → wiki-RQ5P4WWJ.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as S,c as O}from"./chunk-
|
|
1
|
+
import{b as S,c as O}from"./chunk-FEQ4W4XA.js";import{a as I,b as X}from"./chunk-FCPTN6NF.js";import{a as F,b as oe}from"./chunk-7I7IEX4S.js";import{d as M}from"./chunk-QIJLFPWE.js";import{execFile as Le}from"child_process";import{writeFileSync as ee,mkdirSync as w,existsSync as b,readFileSync as $e}from"fs";import{resolve as _}from"path";var ce=["off","shadow","authoritative"],ae={telegram:"INTENT_LEDGER_MODE_TELEGRAM",slack:"INTENT_LEDGER_MODE_SLACK",whatsapp:"INTENT_LEDGER_MODE_WHATSAPP",discord:"INTENT_LEDGER_MODE_DISCORD",gitlab:"INTENT_LEDGER_MODE_GITLAB",github:"INTENT_LEDGER_MODE_GITHUB",workflow:"INTENT_LEDGER_MODE_WORKFLOW",cron:"INTENT_LEDGER_MODE_CRON",mesh:"INTENT_LEDGER_MODE_MESH"},de="INTENT_LEDGER_MODE";function B(n,e=process.env){let t=P(e[ae[n]]);if(t)return t;let i=P(e[de]);return i||"off"}function P(n){if(typeof n!="string")return null;let e=n.trim().toLowerCase();return ce.includes(e)?e:null}X();import ue from"better-sqlite3";import{existsSync as Pe,mkdirSync as le}from"fs";import{dirname as ge,resolve as me}from"path";var T=class{db;path;constructor(e={}){this.path=me(process.cwd(),e.path??".agentx/intent/ledger.sqlite"),le(ge(this.path),{recursive:!0}),this.db=new ue(this.path),this.db.pragma("journal_mode = WAL"),this.db.pragma("synchronous = NORMAL"),this.db.pragma("foreign_keys = ON"),fe(this.db)}close(){this.db.close()}schemaVersion(){return this.db.prepare("SELECT MAX(v) AS v FROM schema_version").get().v??0}recordEvent(e){if(e.sourceEventId!==null){let i=this.findEventBySourceId(e.source,e.sourceEventId);if(i)return i}let t={id:e.id??I(e.ts),ts:e.ts,source:e.source,sourceEventId:e.sourceEventId,project:e.project,subject:e.subject,intent:e.intent,rawJson:e.rawJson};return this.db.prepare(`INSERT INTO intent_events (id, ts, source, source_event_id, project, subject, intent, raw_json)
|
|
2
2
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?)`).run(t.id,t.ts,t.source,t.sourceEventId,t.project,t.subject,t.intent,t.rawJson),t}findEventBySourceId(e,t){let i=this.db.prepare(`SELECT id, ts, source, source_event_id, project, subject, intent, raw_json
|
|
3
3
|
FROM intent_events WHERE source = ? AND source_event_id = ?`).get(e,t);return i?U(i):null}getEventById(e){let t=this.db.prepare(`SELECT id, ts, source, source_event_id, project, subject, intent, raw_json
|
|
4
4
|
FROM intent_events WHERE id = ?`).get(e);return t?U(t):null}recordDecision(e){this.db.prepare(`INSERT INTO intent_decisions (event_id, decided_at, decided_by, agent_id, outcome, reason)
|
|
@@ -123,4 +123,4 @@ ${r.prompt}`,r.maxOutputTokens),agentId:r.agent,autonomy:r.autonomy,timeoutMinut
|
|
|
123
123
|
`);return t.length<=e?t.join(`
|
|
124
124
|
`):t.slice(-e).join(`
|
|
125
125
|
`)}function Ce(n,e,t){return new Promise((i,r)=>{Le("/bin/sh",["-c",n],{timeout:e,maxBuffer:8*1024*1024,...t?{env:t}:{}},(s,c,o)=>{if(s&&s.killed){r(new Error(`command timed out after ${Math.round(e/1e3)}s`));return}i({stdout:String(c??""),stderr:String(o??""),code:s?typeof s.code=="number"?s.code:1:0})})})}export{T as a,G as b,it as c,De as d,rt as e,st as f,$ as g,Q as h,B as i,je as j,V as k,K as l,at as m,Ae as n,ne as o,ie as p,re as q,we as r,C as s};
|
|
126
|
-
//# sourceMappingURL=chunk-
|
|
126
|
+
//# sourceMappingURL=chunk-YFROK44Z.js.map
|
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-4HCQEGXO.js";import"./chunk-D3RJMC37.js";import"./chunk-KTNOY4LW.js";import"./chunk-KTGPH77J.js";import"./chunk-Z3IP66SL.js";import"./chunk-C4CDVE2E.js";import"./chunk-RKPAVWXF.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-SZDACK6O.js";import"./chunk-MTPCD4NV.js";import"./chunk-E6CYC4HQ.js";import"./chunk-BYJ3A55Y.js";import"./chunk-NMFXY3QU.js";import"./chunk-7PWXCN22.js";import"./chunk-LQRBGQIR.js";import"./chunk-ZVP6GB4G.js";import"./chunk-MOUSATFW.js";import"./chunk-2D3RYIDU.js";import"./chunk-EKJG63EJ.js";import"./chunk-2DWDXT7G.js";import"./chunk-RKZGENSE.js";import"./chunk-N6EWZGIX.js";import"./chunk-WP6KLXTP.js";import"./chunk-DP7RTNDM.js";import"./chunk-N4EIYNN4.js";import"./chunk-SFQUP3BP.js";import"./chunk-5FD7HE2J.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-YFROK44Z.js";import"./chunk-FEQ4W4XA.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-3ZRFES25.js";import"./chunk-DWADWDMU.js";import"./chunk-23A5K5UW.js";import"./chunk-QD6IICK7.js";import"./chunk-VWTBHLMX.js";import"./chunk-LKA5UUGT.js";import"./chunk-4J4YVJFH.js";import"./chunk-CECHWYJ2.js";import"./chunk-DXAWW7ZQ.js";import"./chunk-RN7G3D53.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import"./chunk-O2QVQVOV.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-XXBW7CFN.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{r as a,s as b,t as c,u as d,v as e,w as f,x as g,z as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=config-
|
|
1
|
+
import{r as a,s as b,t as c,u as d,v as e,w as f,x as g,z as h}from"./chunk-XXBW7CFN.js";import"./chunk-QIJLFPWE.js";h();export{a as INTEGRATION_KINDS,c as approvalsConfigSchema,d as daemonConfigSchema,b as eventSubscriptionSchema,e as expandEnvVars,f as loadDaemonConfig,g as validateWorkspaces};
|
|
2
|
+
//# sourceMappingURL=config-7AK5TI2D.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as a,c as b,d as c,e as d,f as e}from"./chunk-KTNOY4LW.js";import"./chunk-BYJ3A55Y.js";import"./chunk-XXBW7CFN.js";import"./chunk-QIJLFPWE.js";export{e as daemonVoiceCheck,b as doctor,a as runDoctorChecks,c as runNotificationChecks,d as runReminderChecks};
|
|
2
|
+
//# sourceMappingURL=doctor-CTWQODQG.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -4247,6 +4247,17 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
4247
4247
|
pollSeconds?: number | undefined;
|
|
4248
4248
|
lookbackHours?: number | undefined;
|
|
4249
4249
|
}>>;
|
|
4250
|
+
/** `agentx demo`, read from the agentx.json in the folder it runs from. */
|
|
4251
|
+
demo: z.ZodDefault<z.ZodObject<{
|
|
4252
|
+
/** Seconds each startup step (node /health, dashboard /live, mesh
|
|
4253
|
+
* discovery) may take. Unset: AGENTX_DEMO_STARTUP_TIMEOUT, else 60 s
|
|
4254
|
+
* scaled up by the load average (src/commands/demo-startup.ts). */
|
|
4255
|
+
startupTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
4256
|
+
}, "strip", z.ZodTypeAny, {
|
|
4257
|
+
startupTimeoutSeconds?: number | undefined;
|
|
4258
|
+
}, {
|
|
4259
|
+
startupTimeoutSeconds?: number | undefined;
|
|
4260
|
+
}>>;
|
|
4250
4261
|
/** The in-process event bus (src/events). `ringSize` bounds how many
|
|
4251
4262
|
* recent events GET /events/recent can return. */
|
|
4252
4263
|
events: z.ZodDefault<z.ZodObject<{
|
|
@@ -5887,6 +5898,9 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5887
5898
|
sweepIntervalSeconds?: number | undefined;
|
|
5888
5899
|
}>>;
|
|
5889
5900
|
}, "strip", z.ZodTypeAny, {
|
|
5901
|
+
demo: {
|
|
5902
|
+
startupTimeoutSeconds?: number | undefined;
|
|
5903
|
+
};
|
|
5890
5904
|
agents: Record<string, {
|
|
5891
5905
|
name: string;
|
|
5892
5906
|
workspace: string;
|
|
@@ -6548,6 +6562,9 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6548
6562
|
bind?: string | undefined;
|
|
6549
6563
|
defaultAgent?: string | undefined;
|
|
6550
6564
|
};
|
|
6565
|
+
demo?: {
|
|
6566
|
+
startupTimeoutSeconds?: number | undefined;
|
|
6567
|
+
} | undefined;
|
|
6551
6568
|
agents?: Record<string, {
|
|
6552
6569
|
name: string;
|
|
6553
6570
|
workspace: string;
|
|
@@ -7355,6 +7372,12 @@ declare class A2AMesh {
|
|
|
7355
7372
|
* channelMeta — i.e., the globex/umbrella confusion incident on
|
|
7356
7373
|
* 2026-04-29 issue #709. Shape matches AgentTask.context. */
|
|
7357
7374
|
context?: Record<string, unknown>;
|
|
7375
|
+
/** The message being forwarded, so the receiver can post its answer
|
|
7376
|
+
* back through this node after a restart cut the forward off (#311). */
|
|
7377
|
+
replyVia?: {
|
|
7378
|
+
messageId?: string;
|
|
7379
|
+
accountId?: string;
|
|
7380
|
+
};
|
|
7358
7381
|
}): Promise<string>;
|
|
7359
7382
|
/**
|
|
7360
7383
|
* Streaming variant of `sendTask`. POSTs to the peer's `/task` with
|
|
@@ -7433,6 +7456,8 @@ declare class A2AMesh {
|
|
|
7433
7456
|
healthy: boolean;
|
|
7434
7457
|
skills: AgentSkill[];
|
|
7435
7458
|
channels: string[];
|
|
7459
|
+
/** The node's own name, from its agent card. */
|
|
7460
|
+
node?: string;
|
|
7436
7461
|
lastCheck?: Date;
|
|
7437
7462
|
}>;
|
|
7438
7463
|
}
|
|
@@ -8216,7 +8241,21 @@ interface DirectOrigin {
|
|
|
8216
8241
|
model?: string;
|
|
8217
8242
|
autonomy?: string;
|
|
8218
8243
|
}
|
|
8219
|
-
|
|
8244
|
+
interface MeshOrigin {
|
|
8245
|
+
kind: "mesh";
|
|
8246
|
+
/** Node that received the message and forwarded it; absent from older
|
|
8247
|
+
* senders, in which case any healthy peer hosting the channel is used. */
|
|
8248
|
+
node?: string;
|
|
8249
|
+
channel: string;
|
|
8250
|
+
chatId: string;
|
|
8251
|
+
/** Posts as this agent on the forwarding node, like a live reply. */
|
|
8252
|
+
agentId?: string;
|
|
8253
|
+
/** The incoming message id, so the answer threads like a live reply. */
|
|
8254
|
+
replyTo?: string;
|
|
8255
|
+
accountId?: string;
|
|
8256
|
+
context?: Record<string, unknown>;
|
|
8257
|
+
}
|
|
8258
|
+
type RunOrigin = RouterOrigin | MeshOrigin | DirectOrigin;
|
|
8220
8259
|
|
|
8221
8260
|
interface FriendlyError {
|
|
8222
8261
|
/** One-line, operator-facing message suitable for a dashboard card or chat reply. */
|
|
@@ -9160,6 +9199,8 @@ interface WikiIndex {
|
|
|
9160
9199
|
backlinks: number;
|
|
9161
9200
|
sources?: string[];
|
|
9162
9201
|
lastUpdated?: string;
|
|
9202
|
+
/** Intent-graph path the article's sources were classified under. */
|
|
9203
|
+
graphPath?: string[];
|
|
9163
9204
|
}>;
|
|
9164
9205
|
lastRebuilt: string;
|
|
9165
9206
|
}
|
|
@@ -9705,7 +9746,8 @@ declare const graphNodeSchema: z.ZodObject<{
|
|
|
9705
9746
|
createdBy?: string | undefined;
|
|
9706
9747
|
}>;
|
|
9707
9748
|
type GraphNode = z.infer<typeof graphNodeSchema>;
|
|
9708
|
-
|
|
9749
|
+
/** "seat": the intent-path decision seat picked an existing path. */
|
|
9750
|
+
declare const classificationSourceSchema: z.ZodEnum<["llm", "user", "cache", "seat"]>;
|
|
9709
9751
|
type ClassificationSource = z.infer<typeof classificationSourceSchema>;
|
|
9710
9752
|
declare const classificationStatusSchema: z.ZodEnum<["pending", "approved", "rejected"]>;
|
|
9711
9753
|
type ClassificationStatus = z.infer<typeof classificationStatusSchema>;
|
|
@@ -9715,6 +9757,9 @@ declare const classificationSchema: z.ZodObject<{
|
|
|
9715
9757
|
agentId: z.ZodOptional<z.ZodString>;
|
|
9716
9758
|
channel: z.ZodOptional<z.ZodString>;
|
|
9717
9759
|
sender: z.ZodOptional<z.ZodString>;
|
|
9760
|
+
/** The conversation the message belongs to. Lets a tool running inside
|
|
9761
|
+
* that conversation find the path its request was filed under. */
|
|
9762
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
9718
9763
|
/** Node ids from root to leaf, one per level. Shorter-than-full paths are
|
|
9719
9764
|
* allowed if the classifier was only confident down to a certain depth. */
|
|
9720
9765
|
path: z.ZodArray<z.ZodString, "many">;
|
|
@@ -9732,7 +9777,7 @@ declare const classificationSchema: z.ZodObject<{
|
|
|
9732
9777
|
output?: string | undefined;
|
|
9733
9778
|
input?: string | undefined;
|
|
9734
9779
|
}>>;
|
|
9735
|
-
source: z.ZodEnum<["llm", "user", "cache"]>;
|
|
9780
|
+
source: z.ZodEnum<["llm", "user", "cache", "seat"]>;
|
|
9736
9781
|
status: z.ZodEnum<["pending", "approved", "rejected"]>;
|
|
9737
9782
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
9738
9783
|
/** Redacted first ~200 chars of the message, for the approval UI. */
|
|
@@ -9740,7 +9785,7 @@ declare const classificationSchema: z.ZodObject<{
|
|
|
9740
9785
|
}, "strip", z.ZodTypeAny, {
|
|
9741
9786
|
path: string[];
|
|
9742
9787
|
status: "pending" | "approved" | "rejected";
|
|
9743
|
-
source: "user" | "llm" | "cache";
|
|
9788
|
+
source: "user" | "seat" | "llm" | "cache";
|
|
9744
9789
|
ts: string;
|
|
9745
9790
|
msgHash: string;
|
|
9746
9791
|
proposedAxes: Record<string, Record<string, string>>;
|
|
@@ -9750,17 +9795,19 @@ declare const classificationSchema: z.ZodObject<{
|
|
|
9750
9795
|
};
|
|
9751
9796
|
channel?: string | undefined;
|
|
9752
9797
|
preview?: string | undefined;
|
|
9798
|
+
chatId?: string | undefined;
|
|
9753
9799
|
agentId?: string | undefined;
|
|
9754
9800
|
confidence?: number | undefined;
|
|
9755
9801
|
sender?: string | undefined;
|
|
9756
9802
|
}, {
|
|
9757
9803
|
path: string[];
|
|
9758
9804
|
status: "pending" | "approved" | "rejected";
|
|
9759
|
-
source: "user" | "llm" | "cache";
|
|
9805
|
+
source: "user" | "seat" | "llm" | "cache";
|
|
9760
9806
|
ts: string;
|
|
9761
9807
|
msgHash: string;
|
|
9762
9808
|
channel?: string | undefined;
|
|
9763
9809
|
preview?: string | undefined;
|
|
9810
|
+
chatId?: string | undefined;
|
|
9764
9811
|
agentId?: string | undefined;
|
|
9765
9812
|
confidence?: number | undefined;
|
|
9766
9813
|
sender?: string | undefined;
|
|
@@ -10233,6 +10280,9 @@ interface RunningTask {
|
|
|
10233
10280
|
/** The step the run is in right now (classify, compact, agent, …). A run
|
|
10234
10281
|
* that hangs shows here where it stopped. */
|
|
10235
10282
|
step?: string;
|
|
10283
|
+
/** Intent-graph path this request was classified under, once known.
|
|
10284
|
+
* Classification runs alongside the turn, so it is absent until then. */
|
|
10285
|
+
intentPath?: string[];
|
|
10236
10286
|
}
|
|
10237
10287
|
type TaskOutputSubscriber = (chunk: string) => void;
|
|
10238
10288
|
/** Persisted record of a finished task, written to .agentx/task-history. */
|
|
@@ -10550,6 +10600,14 @@ declare class AgentRegistry {
|
|
|
10550
10600
|
} | null;
|
|
10551
10601
|
/** True while `agentId` has a turn running on this chat. */
|
|
10552
10602
|
isChatBusy(agentId: string, channel: string, chatId: string): boolean;
|
|
10603
|
+
/**
|
|
10604
|
+
* The intent path of the turn running right now for this conversation,
|
|
10605
|
+
* or undefined while it is not classified yet (or nothing is running).
|
|
10606
|
+
* Tools launched by that turn ask for it through GET /agents/:id/intent-path;
|
|
10607
|
+
* reading the classification log instead would hand them the previous
|
|
10608
|
+
* request's path, since this turn's classification may still be in flight.
|
|
10609
|
+
*/
|
|
10610
|
+
runningIntentPath(agentId: string, channel: string, chatId: string): string[] | undefined;
|
|
10553
10611
|
/**
|
|
10554
10612
|
* Operator stop. Aborts the in-flight run for `taskId` (kills the
|
|
10555
10613
|
* underlying claude subprocess via the AbortSignal threaded through
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as L}from"./chunk-C245D4BZ.js";import{a as St,b as kt,c as vt,d as xt,da as Tt,e as $t,ea as Mt,f as Ct,g as Pt,h as bt}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-C245D4BZ.js";import{a as St,b as kt,c as vt,d as xt,da as Tt,e as $t,ea as Mt,f as Ct,g as Pt,h as bt}from"./chunk-MTPCD4NV.js";import"./chunk-E6CYC4HQ.js";import"./chunk-BYJ3A55Y.js";import"./chunk-NMFXY3QU.js";import"./chunk-7PWXCN22.js";import"./chunk-LQRBGQIR.js";import"./chunk-ZVP6GB4G.js";import"./chunk-MOUSATFW.js";import"./chunk-2D3RYIDU.js";import"./chunk-EKJG63EJ.js";import{S as yt,l as lt,m as ct,n as dt,o as mt,p as pt}from"./chunk-2DWDXT7G.js";import"./chunk-RKZGENSE.js";import"./chunk-N6EWZGIX.js";import"./chunk-WP6KLXTP.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-N4EIYNN4.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-5FD7HE2J.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import{s as ut}from"./chunk-YFROK44Z.js";import"./chunk-FEQ4W4XA.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-3ZRFES25.js";import"./chunk-DWADWDMU.js";import"./chunk-23A5K5UW.js";import"./chunk-QD6IICK7.js";import"./chunk-VWTBHLMX.js";import"./chunk-LKA5UUGT.js";import{a as ht}from"./chunk-4J4YVJFH.js";import"./chunk-CECHWYJ2.js";import"./chunk-DXAWW7ZQ.js";import{f as gt,g as ft}from"./chunk-RN7G3D53.js";import"./chunk-WPNRDEHW.js";import"./chunk-2GIDVZ4H.js";import{j as it,k as rt,l as at}from"./chunk-O2QVQVOV.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{u as tt,w as st,x as ot,z as nt}from"./chunk-XXBW7CFN.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).
|