agentix-cli 0.2.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/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import{A as _e,B as De,C as Ge,D as He,E as Le,F as Ue,G as we,H as Be,I as Fe,J as Ne,K as Ve,a as se,b as ae,c as pe,d as le,e as me,f as ge,g as fe,h as xe,i as ce,j as ue,k as de,l as Ce,m as ye,n as Se,o as ke,p as he,q as Ae,r as Te,s as Pe,t as ve,u as Re,v as Ee,w as Me,x as be,y as Oe,z as Ie}from"./chunk-THMHQELC.js";import{a as oe}from"./chunk-6PVFYFUE.js";import{A as Z,B as ee,C as te,D as re,E as ne,F as ie,a,b as p,c as l,d as v,e as R,f as E,g as _,h as D,i as G,j as H,k as L,l as U,m as w,n as B,o as F,p as N,q as V,r as j,s as $,t as J,u as K,v as W,w as X,x as Y,y as z,z as Q}from"./chunk-NZ6W33BD.js";import{a as M,b,c as O,d as I}from"./chunk-FRFR27IN.js";import{a as T,b as P,c as q}from"./chunk-SFQUP3BP.js";import{a as m,b as g,c as f,d as x,e as c,f as u,g as d,h as C,i as y,j as S,k,l as h,m as A}from"./chunk-FUYKPFUV.js";var s={"claude-code":{streaming:!0,tools:!0,vision:!0,thinking:!0,maxContext:1e6},claude:{streaming:!0,tools:!0,vision:!0,thinking:!0,maxContext:1e6},openai:{streaming:!0,tools:!0,vision:!0,thinking:!1,maxContext:128e3},ollama:{streaming:!0,tools:!1,vision:!1,thinking:!1,maxContext:32e3}};function je(e,n){let t=s[e];if(!t)return[`Unknown provider "${e}" \u2014 capabilities unknown`];if(!n?.length)return[];let i=[],o=[];for(let r of n)r in t&&!t[r]&&o.push(r);return o.length&&i.push(`Provider "${e}" lacks: ${o.join(", ")}. Some features will be degraded.`),i}export{Re as A2AClient,Ee as A2AMesh,ve as A2AServer,S as ALL_TOOL_NAMES,He as AgentRegistry,Fe as AgentXDaemon,fe as AgentXRuntime,H as BLOCKING_EVENTS,h as ClaudeCodeProvider,k as ClaudeProvider,ee as ContextBuilder,Be as CronScheduler,me as EnhanceEngine,ce as GitManager,G as HOOK_EVENTS,oe as HealEngine,V as HookRegistry,q as Memory,z as MemoryHierarchy,Le as MessageRouter,_ as OUTPUT_CONFIGS,p as OUTPUT_TYPES,J as PERMISSION_MODES,s as PROVIDER_CAPABILITIES,X as PermissionManager,ge as Pipeline,Pe as ReplEngine,Ue as TelegramAdapter,te as ToolExecutor,L as UsageTracker,we as WhatsAppAdapter,a as agentConfigSchema,je as checkCapabilities,re as createAgentContext,A as createProvider,ue as createSession,Me as daemonConfigSchema,F as debug,v as detectSchemas,T as detectTechStack,u as ensureCredentials,Ie as executeClaudeCode,De as executeOrchestrator,_e as executeSdk,Ge as executeTask,N as exportSession,R as formatSchemas,P as formatTechStack,y as formatToolsForSystemPrompt,E as gatherContext7Docs,ne as generate,le as generateSkill,ae as generateSkillMd,ie as generateStream,d as getAnthropicTools,he as getCommand,C as getLegacyTools,Ve as getPackageInfo,$ as globalHooks,Y as globalPermissions,U as globalTracker,Ne as handleError,se as installSkillPackage,Ae as isCommand,B as isDebug,pe as listInstalledSkills,Se as listSessions,g as loadAuthConfig,be as loadDaemonConfig,j as loadHooks,ye as loadLatestSession,M as loadLocalSkills,Z as loadProjectInstructions,Ce as loadSession,m as logger,I as matchSkillsToTask,l as outputTypeDescriptions,Te as parseCommand,O as parseSkillContent,b as parseSkillFile,W as permissionConfigSchema,K as permissionModeSchema,ke as registerCommand,Q as resolveAtImports,D as resolveOutputType,x as resolveToken,c as runModelSetup,f as saveAuthConfig,de as saveSession,w as setDebug,xe as startMcpServer,Oe as validateWorkspaces};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/agent/providers/capabilities.ts"],"sourcesContent":["// --- Provider capability matrix ---\n// Used to warn users when an agent's config requires features\n// the selected provider doesn't support.\n\nexport interface ProviderCapabilities {\n streaming: boolean\n tools: boolean\n vision: boolean\n thinking: boolean\n maxContext: number\n}\n\nexport const PROVIDER_CAPABILITIES: Record<string, ProviderCapabilities> = {\n \"claude-code\": {\n streaming: true,\n tools: true,\n vision: true,\n thinking: true,\n maxContext: 1_000_000,\n },\n claude: {\n streaming: true,\n tools: true,\n vision: true,\n thinking: true,\n maxContext: 1_000_000,\n },\n openai: {\n streaming: true,\n tools: true,\n vision: true,\n thinking: false,\n maxContext: 128_000,\n },\n ollama: {\n streaming: true,\n tools: false,\n vision: false,\n thinking: false,\n maxContext: 32_000,\n },\n}\n\n/**\n * Check provider capabilities and return warnings for missing features.\n */\nexport function checkCapabilities(\n providerName: string,\n requiredFeatures?: string[],\n): string[] {\n const caps = PROVIDER_CAPABILITIES[providerName]\n if (!caps) {\n return [`Unknown provider \"${providerName}\" — capabilities unknown`]\n }\n\n if (!requiredFeatures?.length) return []\n\n const warnings: string[] = []\n const missing: string[] = []\n\n for (const feature of requiredFeatures) {\n if (feature in caps && !(caps as any)[feature]) {\n missing.push(feature)\n }\n }\n\n if (missing.length) {\n warnings.push(\n `Provider \"${providerName}\" lacks: ${missing.join(\", \")}. Some features will be degraded.`,\n )\n }\n\n return warnings\n}\n"],"mappings":"w1BAYO,IAAMA,EAA8D,CACzE,cAAe,CACb,UAAW,GACX,MAAO,GACP,OAAQ,GACR,SAAU,GACV,WAAY,GACd,EACA,OAAQ,CACN,UAAW,GACX,MAAO,GACP,OAAQ,GACR,SAAU,GACV,WAAY,GACd,EACA,OAAQ,CACN,UAAW,GACX,MAAO,GACP,OAAQ,GACR,SAAU,GACV,WAAY,KACd,EACA,OAAQ,CACN,UAAW,GACX,MAAO,GACP,OAAQ,GACR,SAAU,GACV,WAAY,IACd,CACF,EAKO,SAASC,GACdC,EACAC,EACU,CACV,IAAMC,EAAOJ,EAAsBE,CAAY,EAC/C,GAAI,CAACE,EACH,MAAO,CAAC,qBAAqBF,gCAAsC,EAGrE,GAAI,CAACC,GAAkB,OAAQ,MAAO,CAAC,EAEvC,IAAME,EAAqB,CAAC,EACtBC,EAAoB,CAAC,EAE3B,QAAWC,KAAWJ,EAChBI,KAAWH,GAAQ,CAAEA,EAAaG,CAAO,GAC3CD,EAAQ,KAAKC,CAAO,EAIxB,OAAID,EAAQ,QACVD,EAAS,KACP,aAAaH,aAAwBI,EAAQ,KAAK,IAAI,oCACxD,EAGKD,CACT","names":["PROVIDER_CAPABILITIES","checkCapabilities","providerName","requiredFeatures","caps","warnings","missing","feature"]}
@@ -0,0 +1,2 @@
1
+ import{a,b,c,d}from"./chunk-FRFR27IN.js";export{a as loadLocalSkills,d as matchSkillsToTask,c as parseSkillContent,b as parseSkillFile};
2
+ //# sourceMappingURL=loader-PHU6STSZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ import{k as a,l as b,m as c}from"./chunk-FUYKPFUV.js";export{b as ClaudeCodeProvider,a as ClaudeProvider,c as createProvider};
2
+ //# sourceMappingURL=providers-MPYTYJVB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "agentix-cli",
3
+ "version": "0.2.0",
4
+ "description": "Self-hosted multi-agent orchestrator — routes Telegram, WhatsApp, crons, and A2A mesh tasks to Claude Code, OpenAI, or any LLM provider",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "anis_marrouchi",
8
+ "url": "https://twitter.com/anis_marrouchi"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/anis-marrouchi/agentx.git"
13
+ },
14
+ "type": "module",
15
+ "main": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ }
22
+ },
23
+ "bin": {
24
+ "agentx": "./dist/cli.js"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "agentx.example.json"
29
+ ],
30
+ "keywords": [
31
+ "ai",
32
+ "agent",
33
+ "multi-agent",
34
+ "orchestrator",
35
+ "claude-code",
36
+ "claude",
37
+ "telegram",
38
+ "whatsapp",
39
+ "cron",
40
+ "a2a",
41
+ "mesh",
42
+ "swarm",
43
+ "mcp",
44
+ "self-hosted",
45
+ "bring-your-own-key"
46
+ ],
47
+ "scripts": {
48
+ "build": "tsup",
49
+ "dev": "tsup --watch",
50
+ "typecheck": "tsc --noEmit",
51
+ "test": "vitest run",
52
+ "clean": "rimraf dist",
53
+ "format:write": "prettier --write \"src/**/*.{ts,tsx,mdx}\" --cache",
54
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,mdx}\" --cache",
55
+ "prepublishOnly": "npm run build"
56
+ },
57
+ "dependencies": {
58
+ "chalk": "5.2.0",
59
+ "commander": "^10.0.0",
60
+ "cosmiconfig": "^8.1.3",
61
+ "execa": "^7.0.0",
62
+ "fast-glob": "^3.3.2",
63
+ "fs-extra": "^11.2.0",
64
+ "node-fetch": "^3.3.0",
65
+ "ora": "^6.1.2",
66
+ "prompts": "^2.4.2",
67
+ "zod": "^3.20.2"
68
+ },
69
+ "devDependencies": {
70
+ "@types/fs-extra": "^11.0.1",
71
+ "@types/prompts": "^2.4.2",
72
+ "prettier": "^3.0.0",
73
+ "rimraf": "^4.1.3",
74
+ "tsup": "^6.6.3",
75
+ "type-fest": "^3.8.0",
76
+ "typescript": "^4.9.3",
77
+ "vite-tsconfig-paths": "^4.3.1",
78
+ "vitest": "^1.2.2"
79
+ },
80
+ "engines": {
81
+ "node": ">=18"
82
+ }
83
+ }