@phnx-labs/agents-cli 1.20.4 → 1.20.5
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/CHANGELOG.md +19 -0
- package/README.md +48 -17
- package/dist/commands/cli.js +1 -1
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/commands.js +2 -0
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/exec.js +52 -16
- package/dist/commands/hooks.js +6 -6
- package/dist/commands/inspect.d.ts +26 -0
- package/dist/commands/inspect.js +590 -0
- package/dist/commands/mcp.js +17 -16
- package/dist/commands/models.js +1 -1
- package/dist/commands/packages.js +6 -4
- package/dist/commands/permissions.js +13 -12
- package/dist/commands/plugins.d.ts +13 -0
- package/dist/commands/plugins.js +100 -11
- package/dist/commands/prune.js +3 -2
- package/dist/commands/pull.d.ts +12 -5
- package/dist/commands/pull.js +26 -422
- package/dist/commands/push.d.ts +14 -0
- package/dist/commands/push.js +30 -0
- package/dist/commands/repo.d.ts +1 -1
- package/dist/commands/repo.js +155 -112
- package/dist/commands/resource-view.d.ts +2 -0
- package/dist/commands/resource-view.js +12 -3
- package/dist/commands/routines.js +32 -7
- package/dist/commands/rules.js +1 -1
- package/dist/commands/sessions.js +1 -0
- package/dist/commands/setup.d.ts +3 -3
- package/dist/commands/setup.js +15 -15
- package/dist/commands/skills.js +6 -5
- package/dist/commands/subagents.js +5 -4
- package/dist/commands/sync.d.ts +18 -5
- package/dist/commands/sync.js +251 -65
- package/dist/commands/teams.js +1 -0
- package/dist/commands/tmux.d.ts +25 -0
- package/dist/commands/tmux.js +415 -0
- package/dist/commands/trash.d.ts +2 -2
- package/dist/commands/trash.js +1 -1
- package/dist/commands/versions.js +2 -2
- package/dist/commands/view.js +9 -4
- package/dist/commands/workflows.js +4 -3
- package/dist/commands/worktree.d.ts +4 -5
- package/dist/commands/worktree.js +4 -4
- package/dist/index.js +68 -20
- package/dist/lib/agents.d.ts +19 -10
- package/dist/lib/agents.js +79 -25
- package/dist/lib/auto-pull-worker.d.ts +1 -1
- package/dist/lib/auto-pull-worker.js +2 -2
- package/dist/lib/auto-pull.d.ts +1 -1
- package/dist/lib/auto-pull.js +1 -1
- package/dist/lib/beta.d.ts +1 -1
- package/dist/lib/beta.js +1 -1
- package/dist/lib/capabilities.js +2 -0
- package/dist/lib/commands.d.ts +28 -1
- package/dist/lib/commands.js +125 -20
- package/dist/lib/doctor-diff.js +2 -2
- package/dist/lib/exec.d.ts +14 -0
- package/dist/lib/exec.js +39 -5
- package/dist/lib/fuzzy.d.ts +12 -2
- package/dist/lib/fuzzy.js +29 -4
- package/dist/lib/git.js +8 -1
- package/dist/lib/hooks.d.ts +2 -2
- package/dist/lib/hooks.js +97 -10
- package/dist/lib/mcp.js +32 -2
- package/dist/lib/migrate.d.ts +51 -0
- package/dist/lib/migrate.js +227 -1
- package/dist/lib/models.js +62 -15
- package/dist/lib/permissions.d.ts +36 -2
- package/dist/lib/permissions.js +217 -7
- package/dist/lib/plugin-marketplace.d.ts +98 -40
- package/dist/lib/plugin-marketplace.js +196 -93
- package/dist/lib/plugins.d.ts +21 -4
- package/dist/lib/plugins.js +130 -49
- package/dist/lib/profiles-presets.js +12 -12
- package/dist/lib/project-launch.d.ts +65 -0
- package/dist/lib/project-launch.js +367 -0
- package/dist/lib/pty-client.js +1 -1
- package/dist/lib/pty-server.d.ts +1 -1
- package/dist/lib/pty-server.js +1 -1
- package/dist/lib/refresh.d.ts +26 -0
- package/dist/lib/refresh.js +315 -0
- package/dist/lib/resource-patterns.d.ts +1 -1
- package/dist/lib/resource-patterns.js +1 -1
- package/dist/lib/resources/commands.js +2 -2
- package/dist/lib/resources/hooks.d.ts +1 -1
- package/dist/lib/resources/hooks.js +1 -1
- package/dist/lib/resources/mcp.d.ts +1 -1
- package/dist/lib/resources/mcp.js +5 -6
- package/dist/lib/resources/permissions.js +5 -2
- package/dist/lib/resources/rules.js +3 -2
- package/dist/lib/resources/skills.js +3 -2
- package/dist/lib/resources/types.d.ts +1 -1
- package/dist/lib/resources.js +2 -2
- package/dist/lib/rotate.d.ts +1 -1
- package/dist/lib/rotate.js +1 -1
- package/dist/lib/routines.d.ts +16 -4
- package/dist/lib/routines.js +67 -17
- package/dist/lib/rules/compile.js +22 -10
- package/dist/lib/rules/rules.js +3 -3
- package/dist/lib/runner.js +16 -3
- package/dist/lib/scheduler.js +15 -1
- package/dist/lib/secrets/Agents CLI.app/Contents/CodeResources +0 -0
- package/dist/lib/secrets/Agents CLI.app/Contents/MacOS/Agents CLI +0 -0
- package/dist/lib/secrets/Agents CLI.app/Contents/_CodeSignature/CodeResources +9 -1
- package/dist/lib/secrets/Agents CLI.app/Contents/embedded.provisionprofile +0 -0
- package/dist/lib/secrets/linux.d.ts +44 -9
- package/dist/lib/secrets/linux.js +302 -48
- package/dist/lib/session/db.js +15 -2
- package/dist/lib/session/discover.js +118 -3
- package/dist/lib/session/parse.js +3 -0
- package/dist/lib/session/types.d.ts +1 -1
- package/dist/lib/session/types.js +1 -1
- package/dist/lib/shims.d.ts +10 -9
- package/dist/lib/shims.js +101 -50
- package/dist/lib/skills.d.ts +1 -1
- package/dist/lib/skills.js +10 -9
- package/dist/lib/staleness/detectors/commands.d.ts +3 -0
- package/dist/lib/staleness/detectors/commands.js +46 -0
- package/dist/lib/staleness/detectors/hooks.d.ts +3 -0
- package/dist/lib/staleness/detectors/hooks.js +44 -0
- package/dist/lib/staleness/detectors/mcp.d.ts +3 -0
- package/dist/lib/staleness/detectors/mcp.js +31 -0
- package/dist/lib/staleness/detectors/permissions.d.ts +3 -0
- package/dist/lib/staleness/detectors/permissions.js +201 -0
- package/dist/lib/staleness/detectors/plugins.d.ts +8 -0
- package/dist/lib/staleness/detectors/plugins.js +23 -0
- package/dist/lib/staleness/detectors/rules.d.ts +3 -0
- package/dist/lib/staleness/detectors/rules.js +34 -0
- package/dist/lib/staleness/detectors/skills.d.ts +3 -0
- package/dist/lib/staleness/detectors/skills.js +71 -0
- package/dist/lib/staleness/detectors/subagents.d.ts +3 -0
- package/dist/lib/staleness/detectors/subagents.js +50 -0
- package/dist/lib/staleness/detectors/types.d.ts +22 -0
- package/dist/lib/staleness/detectors/types.js +1 -0
- package/dist/lib/staleness/detectors/workflows.d.ts +3 -0
- package/dist/lib/staleness/detectors/workflows.js +28 -0
- package/dist/lib/staleness/registry.d.ts +26 -0
- package/dist/lib/staleness/registry.js +123 -0
- package/dist/lib/staleness/writers/commands.d.ts +3 -0
- package/dist/lib/staleness/writers/commands.js +111 -0
- package/dist/lib/staleness/writers/hooks.d.ts +3 -0
- package/dist/lib/staleness/writers/hooks.js +47 -0
- package/dist/lib/staleness/writers/kinds.d.ts +10 -0
- package/dist/lib/staleness/writers/kinds.js +15 -0
- package/dist/lib/staleness/writers/lazy-map.d.ts +13 -0
- package/dist/lib/staleness/writers/lazy-map.js +19 -0
- package/dist/lib/staleness/writers/mcp.d.ts +10 -0
- package/dist/lib/staleness/writers/mcp.js +19 -0
- package/dist/lib/staleness/writers/permissions.d.ts +13 -0
- package/dist/lib/staleness/writers/permissions.js +26 -0
- package/dist/lib/staleness/writers/plugins.d.ts +7 -0
- package/dist/lib/staleness/writers/plugins.js +31 -0
- package/dist/lib/staleness/writers/rules.d.ts +7 -0
- package/dist/lib/staleness/writers/rules.js +55 -0
- package/dist/lib/staleness/writers/skills.d.ts +3 -0
- package/dist/lib/staleness/writers/skills.js +81 -0
- package/dist/lib/staleness/writers/sources.d.ts +16 -0
- package/dist/lib/staleness/writers/sources.js +72 -0
- package/dist/lib/staleness/writers/subagents.d.ts +3 -0
- package/dist/lib/staleness/writers/subagents.js +53 -0
- package/dist/lib/staleness/writers/types.d.ts +36 -0
- package/dist/lib/staleness/writers/types.js +1 -0
- package/dist/lib/staleness/writers/workflows.d.ts +7 -0
- package/dist/lib/staleness/writers/workflows.js +31 -0
- package/dist/lib/state.d.ts +34 -11
- package/dist/lib/state.js +58 -13
- package/dist/lib/subagents.d.ts +0 -2
- package/dist/lib/subagents.js +6 -6
- package/dist/lib/teams/agents.js +1 -1
- package/dist/lib/teams/parsers.d.ts +1 -1
- package/dist/lib/tmux/binary.d.ts +67 -0
- package/dist/lib/tmux/binary.js +141 -0
- package/dist/lib/tmux/index.d.ts +8 -0
- package/dist/lib/tmux/index.js +8 -0
- package/dist/lib/tmux/paths.d.ts +17 -0
- package/dist/lib/tmux/paths.js +30 -0
- package/dist/lib/tmux/session.d.ts +122 -0
- package/dist/lib/tmux/session.js +305 -0
- package/dist/lib/types.d.ts +58 -7
- package/dist/lib/types.js +1 -1
- package/dist/lib/usage.js +1 -1
- package/dist/lib/versions.d.ts +4 -4
- package/dist/lib/versions.js +135 -493
- package/dist/lib/workflows.d.ts +2 -4
- package/dist/lib/workflows.js +3 -4
- package/package.json +2 -2
- package/scripts/postinstall.js +16 -63
- package/dist/commands/status.d.ts +0 -9
- package/dist/commands/status.js +0 -25
package/dist/lib/workflows.d.ts
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* are composed at runtime by `agents run <workflow>`.
|
|
7
7
|
*/
|
|
8
8
|
import type { AgentId } from './types.js';
|
|
9
|
-
/** Agents that support running workflows via `agents run`. */
|
|
10
|
-
export declare const WORKFLOW_CAPABLE_AGENTS: AgentId[];
|
|
11
9
|
/** Parsed WORKFLOW.md frontmatter. */
|
|
12
10
|
export interface WorkflowFrontmatter {
|
|
13
11
|
name: string;
|
|
@@ -32,7 +30,7 @@ export interface DiscoveredWorkflow {
|
|
|
32
30
|
frontmatter: WorkflowFrontmatter;
|
|
33
31
|
subagentCount: number;
|
|
34
32
|
}
|
|
35
|
-
/** A workflow in central storage (~/.agents/workflows/ or ~/.agents
|
|
33
|
+
/** A workflow in central storage (~/.agents/workflows/ or ~/.agents/.system/workflows/). */
|
|
36
34
|
export interface InstalledWorkflow {
|
|
37
35
|
name: string;
|
|
38
36
|
path: string;
|
|
@@ -58,7 +56,7 @@ export declare function resolveWorkflowRef(ref: string, cwd?: string): string |
|
|
|
58
56
|
export declare function discoverWorkflowsFromRepo(repoPath: string): DiscoveredWorkflow[];
|
|
59
57
|
/**
|
|
60
58
|
* List all workflows in central storage.
|
|
61
|
-
* User layer (~/.agents/workflows/) wins over system (~/.agents
|
|
59
|
+
* User layer (~/.agents/workflows/) wins over system (~/.agents/.system/workflows/).
|
|
62
60
|
*/
|
|
63
61
|
export declare function listInstalledWorkflows(): Map<string, InstalledWorkflow>;
|
|
64
62
|
/** Copy a workflow directory into user central storage (~/.agents/workflows/<name>/). */
|
package/dist/lib/workflows.js
CHANGED
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
import * as fs from 'fs';
|
|
9
9
|
import * as path from 'path';
|
|
10
10
|
import * as yaml from 'yaml';
|
|
11
|
+
import { capableAgents } from './capabilities.js';
|
|
11
12
|
import { getProjectAgentsDir, getSystemWorkflowsDir, getUserWorkflowsDir, getTrashWorkflowsDir, getEnabledExtraRepos, } from './state.js';
|
|
12
13
|
import { listInstalledVersions, getVersionHomePath } from './versions.js';
|
|
13
|
-
/** Agents that support running workflows via `agents run`. */
|
|
14
|
-
export const WORKFLOW_CAPABLE_AGENTS = ['claude'];
|
|
15
14
|
/** Parse WORKFLOW.md frontmatter from a workflow directory. Returns null if invalid. */
|
|
16
15
|
export function parseWorkflowFrontmatter(workflowDir) {
|
|
17
16
|
const workflowMdPath = path.join(workflowDir, 'WORKFLOW.md');
|
|
@@ -144,7 +143,7 @@ export function discoverWorkflowsFromRepo(repoPath) {
|
|
|
144
143
|
}
|
|
145
144
|
/**
|
|
146
145
|
* List all workflows in central storage.
|
|
147
|
-
* User layer (~/.agents/workflows/) wins over system (~/.agents
|
|
146
|
+
* User layer (~/.agents/workflows/) wins over system (~/.agents/.system/workflows/).
|
|
148
147
|
*/
|
|
149
148
|
export function listInstalledWorkflows() {
|
|
150
149
|
const result = new Map();
|
|
@@ -261,7 +260,7 @@ export function removeWorkflowFromVersion(agent, version, name) {
|
|
|
261
260
|
/** Iterate all installed (agent, version) pairs that support workflows. */
|
|
262
261
|
export function iterWorkflowsCapableVersions(filter) {
|
|
263
262
|
const result = [];
|
|
264
|
-
for (const agentId of
|
|
263
|
+
for (const agentId of capableAgents('workflows')) {
|
|
265
264
|
if (filter?.agent && filter.agent !== agentId)
|
|
266
265
|
continue;
|
|
267
266
|
const versions = listInstalledVersions(agentId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/agents-cli",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.5",
|
|
4
4
|
"description": "One CLI for all your AI coding agents - versions, config, cloud dispatch, sessions, and teams (now with first-class Grok Build CLI support)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"LICENSE"
|
|
32
32
|
],
|
|
33
33
|
"publishConfig": {
|
|
34
|
-
"provenance":
|
|
34
|
+
"provenance": true
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
package/scripts/postinstall.js
CHANGED
|
@@ -11,9 +11,11 @@ import { spawnSync } from 'child_process';
|
|
|
11
11
|
import { fileURLToPath } from 'url';
|
|
12
12
|
|
|
13
13
|
const HOME = os.homedir();
|
|
14
|
-
const SHIMS_DIR = path.join(HOME, '.agents', '.cache', 'shims');
|
|
15
|
-
const SYSTEM_DIR = path.join(HOME, '.agents-system');
|
|
16
14
|
const USER_DIR = path.join(HOME, '.agents');
|
|
15
|
+
const SHIMS_DIR = path.join(USER_DIR, '.cache', 'shims');
|
|
16
|
+
// System repo lives inside the user repo (folded in v1.21). Legacy installs at
|
|
17
|
+
// ~/.agents-system/ are migrated by src/lib/migrate.ts on first CLI invocation.
|
|
18
|
+
const SYSTEM_DIR = path.join(USER_DIR, '.system');
|
|
17
19
|
const AGENTS_BIN = fileURLToPath(new URL('../dist/index.js', import.meta.url));
|
|
18
20
|
const INSTALL_HELPER_SCRIPT = fileURLToPath(new URL('./install-helper.js', import.meta.url));
|
|
19
21
|
|
|
@@ -43,73 +45,24 @@ To complete setup, run: npx agents setup
|
|
|
43
45
|
process.exit(0);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
|
-
// Create directories
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
// Create directories. The full migration (legacy ~/.agents-system/ fold,
|
|
49
|
+
// runtime-state bucket moves, etc.) runs from src/lib/migrate.ts on the first
|
|
50
|
+
// CLI invocation — we don't duplicate it here.
|
|
51
|
+
//
|
|
52
|
+
// SYSTEM_DIR is intentionally NOT pre-created: if a legacy ~/.agents-system/
|
|
53
|
+
// exists, the migrator's fast-path rename needs SYSTEM_DIR to be absent so it
|
|
54
|
+
// can move the legacy tree in one shot (including .git). Pre-creating an empty
|
|
55
|
+
// skeleton forces the slower merge path AND can leave the new dir without
|
|
56
|
+
// `.git`, which makes ensureInitialized() exit "not set up" before the
|
|
57
|
+
// migrator runs. The migrator + first `agents setup` create SYSTEM_DIR as
|
|
58
|
+
// needed.
|
|
49
59
|
fs.mkdirSync(USER_DIR, { recursive: true, mode: 0o700 });
|
|
60
|
+
fs.mkdirSync(SHIMS_DIR, { recursive: true });
|
|
50
61
|
|
|
51
62
|
// Copy the signed macOS Keychain helper to a stable user path so its trusted-app
|
|
52
63
|
// ACLs survive future npm publishes (which re-sign the bundle).
|
|
53
64
|
installKeychainHelper();
|
|
54
65
|
|
|
55
|
-
// One-shot idempotent migrations
|
|
56
|
-
function runMigrations() {
|
|
57
|
-
// 1. Move agents.yaml from system to user repo
|
|
58
|
-
const src = path.join(SYSTEM_DIR, 'agents.yaml');
|
|
59
|
-
const dest = path.join(USER_DIR, 'agents.yaml');
|
|
60
|
-
if (fs.existsSync(src) && !fs.existsSync(dest)) {
|
|
61
|
-
try { fs.renameSync(src, dest); } catch { /* best-effort */ }
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// 2. Delete dead prompts.json
|
|
65
|
-
const promptsJson = path.join(SYSTEM_DIR, 'prompts.json');
|
|
66
|
-
if (fs.existsSync(promptsJson)) {
|
|
67
|
-
try { fs.unlinkSync(promptsJson); } catch { /* best-effort */ }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// 3. Move legacy config.json to ~/.agents/teams/config.json
|
|
71
|
-
const configSrc = path.join(SYSTEM_DIR, 'config.json');
|
|
72
|
-
const configDest = path.join(USER_DIR, 'teams', 'config.json');
|
|
73
|
-
if (fs.existsSync(configSrc) && !fs.existsSync(configDest)) {
|
|
74
|
-
try {
|
|
75
|
-
fs.mkdirSync(path.dirname(configDest), { recursive: true });
|
|
76
|
-
fs.copyFileSync(configSrc, configDest);
|
|
77
|
-
fs.unlinkSync(configSrc);
|
|
78
|
-
} catch { /* best-effort */ }
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// 4. Move installed agent versions from ~/.agents/versions/ -> ~/.agents-system/versions/
|
|
82
|
-
// Pre-split layout put binaries under the user repo. Post-split, listInstalledVersions
|
|
83
|
-
// only scans the system root, so legacy installs become invisible without this move.
|
|
84
|
-
const userVersions = path.join(USER_DIR, 'versions');
|
|
85
|
-
const sysVersions = path.join(SYSTEM_DIR, 'versions');
|
|
86
|
-
if (fs.existsSync(userVersions)) {
|
|
87
|
-
try {
|
|
88
|
-
let moved = 0;
|
|
89
|
-
let skipped = 0;
|
|
90
|
-
for (const agent of fs.readdirSync(userVersions, { withFileTypes: true })) {
|
|
91
|
-
if (!agent.isDirectory()) continue;
|
|
92
|
-
const srcAgentDir = path.join(userVersions, agent.name);
|
|
93
|
-
const dstAgentDir = path.join(sysVersions, agent.name);
|
|
94
|
-
try { fs.mkdirSync(dstAgentDir, { recursive: true }); } catch {}
|
|
95
|
-
for (const ver of fs.readdirSync(srcAgentDir, { withFileTypes: true })) {
|
|
96
|
-
if (!ver.isDirectory()) continue;
|
|
97
|
-
const src = path.join(srcAgentDir, ver.name);
|
|
98
|
-
const dst = path.join(dstAgentDir, ver.name);
|
|
99
|
-
if (fs.existsSync(dst)) { skipped++; continue; }
|
|
100
|
-
try { fs.renameSync(src, dst); moved++; } catch {}
|
|
101
|
-
}
|
|
102
|
-
try { if (fs.readdirSync(srcAgentDir).length === 0) fs.rmdirSync(srcAgentDir); } catch {}
|
|
103
|
-
}
|
|
104
|
-
try { if (fs.readdirSync(userVersions).length === 0) fs.rmdirSync(userVersions); } catch {}
|
|
105
|
-
if (moved > 0) console.log(` Migrated ${moved} agent version dir(s) to ~/.agents-system/versions/`);
|
|
106
|
-
if (skipped > 0) console.log(` Kept ${skipped} legacy version dir(s) at ~/.agents/versions/ (already present in system root)`);
|
|
107
|
-
} catch { /* best-effort */ }
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
runMigrations();
|
|
112
|
-
|
|
113
66
|
const shellName = path.basename(process.env.SHELL || '/bin/bash');
|
|
114
67
|
|
|
115
68
|
function getShellRc() {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deprecated status command.
|
|
3
|
-
*
|
|
4
|
-
* Registers the `agents status` command as a backward-compatible alias
|
|
5
|
-
* for `agents view`. Prints a deprecation notice and delegates to viewAction.
|
|
6
|
-
*/
|
|
7
|
-
import type { Command } from 'commander';
|
|
8
|
-
/** Register the deprecated `agents status` command (alias for `agents view`). */
|
|
9
|
-
export declare function registerStatusCommand(program: Command): void;
|
package/dist/commands/status.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deprecated status command.
|
|
3
|
-
*
|
|
4
|
-
* Registers the `agents status` command as a backward-compatible alias
|
|
5
|
-
* for `agents view`. Prints a deprecation notice and delegates to viewAction.
|
|
6
|
-
*/
|
|
7
|
-
import chalk from 'chalk';
|
|
8
|
-
import { viewAction } from './view.js';
|
|
9
|
-
/** Register the deprecated `agents status` command (alias for `agents view`). */
|
|
10
|
-
export function registerStatusCommand(program) {
|
|
11
|
-
// Deprecated: use `agents view` instead
|
|
12
|
-
program
|
|
13
|
-
.command('status [agent]')
|
|
14
|
-
.description('Show installed agents and resources')
|
|
15
|
-
.action(async (agentFilter) => {
|
|
16
|
-
console.log(chalk.red('Deprecated: "agents status" is now "agents view"\n'));
|
|
17
|
-
// If agent specified without version, default to @default for backwards compatibility
|
|
18
|
-
if (agentFilter && !agentFilter.includes('@')) {
|
|
19
|
-
await viewAction(`${agentFilter}@default`);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
await viewAction(agentFilter);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|