@rbbtsn0w/adg 0.9.0-dev.pr109.acb1932 → 0.9.0-dev.pr110.9b0a3ec
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/src/cli/handlers.js
CHANGED
|
@@ -263,10 +263,13 @@ async function handleUnlink(rest, cmd) {
|
|
|
263
263
|
const targets = resolveVerbTargets(values, "unlink");
|
|
264
264
|
const sc = await resolveActionScope(values, "unlink");
|
|
265
265
|
const names = positionals.length > 0 ? positionals : undefined;
|
|
266
|
+
let anyUnlinked = false;
|
|
266
267
|
for (const target of targets) {
|
|
267
268
|
const res = unlinkPlugins({ pluginsDir: sc.pluginsDir, target, global: sc.global, names });
|
|
268
|
-
for (const name of res.unlinked)
|
|
269
|
+
for (const name of res.unlinked) {
|
|
269
270
|
console.log(`${ui.ok("unlinked")} ${ui.name(name)} ${ui.meta(`[${res.target}]`)}`);
|
|
271
|
+
anyUnlinked = true;
|
|
272
|
+
}
|
|
270
273
|
if (res.cliSkipped) {
|
|
271
274
|
printCliUnavailableNote(target, `nothing was unlinked from ${target}.`);
|
|
272
275
|
}
|
|
@@ -274,6 +277,10 @@ async function handleUnlink(rest, cmd) {
|
|
|
274
277
|
console.log(ui.meta(`nothing to unlink from ${target}`));
|
|
275
278
|
}
|
|
276
279
|
}
|
|
280
|
+
if (anyUnlinked) {
|
|
281
|
+
const flag = sc.global ? " -g" : "";
|
|
282
|
+
console.log(ui.meta(`tip: run \`adg plugins status${flag}\` to inspect runtime projection drift`));
|
|
283
|
+
}
|
|
277
284
|
}
|
|
278
285
|
async function handleSync(rest, cmd) {
|
|
279
286
|
const { values, positionals } = parseVerb("sync", cmd.flags, rest);
|
package/dist/src/cli/index.js
CHANGED
|
@@ -62,7 +62,7 @@ export const PLUGIN_COMMANDS = {
|
|
|
62
62
|
list: {
|
|
63
63
|
summary: "list installed plugins",
|
|
64
64
|
synopsis: "adg plugins list",
|
|
65
|
-
blurb: "Each plugin shows
|
|
65
|
+
blurb: "Each plugin shows what it contains and compatible agent runtimes (Supports).\nAdd --verbose to expand every component (skills, agents, commands, …) to its member names.\nFor active projection status in each agent, use `adg plugins status`.",
|
|
66
66
|
flags: ["verbose", "json", ...SCOPE],
|
|
67
67
|
},
|
|
68
68
|
status: {
|
|
@@ -150,7 +150,7 @@ export const PLUGIN_COMMANDS = {
|
|
|
150
150
|
summary: "unlink plugins from a runtime (store kept)",
|
|
151
151
|
synopsis: "adg plugins unlink --target claude|codex|antigravity [name...]",
|
|
152
152
|
positional: "[name...] installed plugin names to unlink (default: all)",
|
|
153
|
-
blurb: "Disable the plugins in one agent without removing them from the store —\nthe per-agent inverse of `link`. To delete from the store and every agent
|
|
153
|
+
blurb: "Disable the plugins in one agent without removing them from the store —\nthe per-agent inverse of `link`. Run `adg plugins status` to inspect runtime\nprojections. To delete from the store and every agent at once, use `adg plugins remove`.",
|
|
154
154
|
flags: ["target", ...SCOPE],
|
|
155
155
|
examples: [
|
|
156
156
|
"adg plugins unlink --target antigravity asc # drop asc from agy only",
|
|
@@ -20,7 +20,6 @@ const S_BAR_END = g("└", "—");
|
|
|
20
20
|
const S_STEP_ACTIVE = g("◆", "*");
|
|
21
21
|
const S_STEP_SUBMIT = g("◇", "o");
|
|
22
22
|
const S_STEP_CANCEL = g("■", "x");
|
|
23
|
-
const S_STEP_ERROR = g("▲", "!");
|
|
24
23
|
const S_CHECK_ACTIVE = g("◻", "[•]");
|
|
25
24
|
const S_CHECK_SELECTED = g("◼", "[+]");
|
|
26
25
|
const S_CHECK_INACTIVE = g("◻", "[ ]");
|
|
@@ -60,20 +59,17 @@ export function multiselectSkills(opts) {
|
|
|
60
59
|
return pc.green(S_STEP_SUBMIT);
|
|
61
60
|
if (state === "cancel")
|
|
62
61
|
return pc.red(S_STEP_CANCEL);
|
|
63
|
-
if (state === "error")
|
|
64
|
-
return pc.yellow(S_STEP_ERROR);
|
|
65
62
|
return pc.cyan(S_STEP_ACTIVE);
|
|
66
63
|
};
|
|
67
64
|
const footer = () => pc.dim(`space ${pc.gray("toggle")} · a ${pc.gray("all")} · d ${pc.gray(showDesc ? "hide" : "show")} descriptions`);
|
|
68
|
-
const required = opts.required ?? true;
|
|
69
65
|
const prompt = new MultiSelectPrompt({
|
|
70
66
|
input: opts.input,
|
|
71
67
|
output: opts.output,
|
|
72
68
|
options: opts.options,
|
|
73
69
|
initialValues: opts.initialValues,
|
|
74
|
-
required,
|
|
70
|
+
required: true,
|
|
75
71
|
validate(value) {
|
|
76
|
-
if (required && Array.isArray(value) && value.length === 0) {
|
|
72
|
+
if (this.required && Array.isArray(value) && value.length === 0) {
|
|
77
73
|
return "Please select at least one option.";
|
|
78
74
|
}
|
|
79
75
|
return undefined;
|
|
@@ -94,10 +90,7 @@ export function multiselectSkills(opts) {
|
|
|
94
90
|
showDesc,
|
|
95
91
|
loadDescription: opts.loadDescription,
|
|
96
92
|
}).join(`\n${pc.cyan(S_BAR)} `);
|
|
97
|
-
|
|
98
|
-
? `${pc.yellow(S_BAR_END)} ${pc.yellow(this.error)}\n`
|
|
99
|
-
: `${pc.cyan(S_BAR_END)}\n`;
|
|
100
|
-
return `${head}${pc.cyan(S_BAR)} ${rows}\n${pc.cyan(S_BAR)} ${footer()}\n${errorBar}`;
|
|
93
|
+
return `${head}${pc.cyan(S_BAR)} ${rows}\n${pc.cyan(S_BAR)} ${footer()}\n${pc.cyan(S_BAR_END)}\n`;
|
|
101
94
|
},
|
|
102
95
|
});
|
|
103
96
|
// `a` (toggle-all) is bound by MultiSelectPrompt itself; `d` is free for us.
|
|
@@ -45,7 +45,7 @@ export function renderPluginList(plugins, pluginsDir, opts = {}) {
|
|
|
45
45
|
if (plugins.length === 0)
|
|
46
46
|
return [ui.meta(`no plugins recorded in ${pluginsDir}`)];
|
|
47
47
|
// Pre-compute each plugin's display row so the name/path columns can be
|
|
48
|
-
// aligned across rows (à la `adg skills list`). The `
|
|
48
|
+
// aligned across rows (à la `adg skills list`). The `Supports:` column is
|
|
49
49
|
// derived from the exposed component types — which agents can adapt it.
|
|
50
50
|
const rows = plugins.map((p) => {
|
|
51
51
|
const exposed = Object.entries(p.contents ?? {}).filter(([, names]) => names.length > 0);
|
|
@@ -61,7 +61,7 @@ export function renderPluginList(plugins, pluginsDir, opts = {}) {
|
|
|
61
61
|
});
|
|
62
62
|
const nameW = Math.max(...rows.map((r) => r.label.length));
|
|
63
63
|
const pathW = Math.min(PATH_MAX, Math.max(...rows.map((r) => r.path.length)));
|
|
64
|
-
// Color mirrors `adg skills list`: cyan name, dim path / dim "
|
|
64
|
+
// Color mirrors `adg skills list`: cyan name, dim path / dim "Supports:" label
|
|
65
65
|
// with the agent names left bright, and the provenance/counts line fully
|
|
66
66
|
// dimmed as secondary metadata. Widths are measured on the uncolored strings
|
|
67
67
|
// (above), so wrapping the padded text keeps columns aligned.
|
|
@@ -74,7 +74,7 @@ export function renderPluginList(plugins, pluginsDir, opts = {}) {
|
|
|
74
74
|
const partial = r.p.selection ? " (partial)" : "";
|
|
75
75
|
const name = ui.name(r.label.padEnd(nameW));
|
|
76
76
|
const path = ui.meta(ellipsizeStart(r.path, pathW).padEnd(pathW));
|
|
77
|
-
out.push(`${name} ${path} ${ui.meta("
|
|
77
|
+
out.push(`${name} ${path} ${ui.meta("Supports:")} ${r.agents}`);
|
|
78
78
|
const provenance = `[${r.p.origin.type}] ${(r.p.installedHash ?? "").slice(0, 19)}${partial}`;
|
|
79
79
|
out.push(ui.meta(` ${[provenance, ...r.counts].join(" ")}`));
|
|
80
80
|
if (opts.verbose)
|
package/docs/cli-json.md
CHANGED
|
@@ -67,7 +67,9 @@ Field notes:
|
|
|
67
67
|
|
|
68
68
|
- `pluginsDir` and each `path` are absolute filesystem paths.
|
|
69
69
|
- `source` is ADG's lock-file provenance object.
|
|
70
|
-
- `agents` contains stable agent ids, not display names.
|
|
70
|
+
- `agents` contains stable agent ids, not display names. Indicates which agents
|
|
71
|
+
can adapt this plugin's component types (for active per-agent runtime projection
|
|
72
|
+
status, see `adg plugins status --json`).
|
|
71
73
|
- `contents` always includes every component category, using empty arrays when a
|
|
72
74
|
plugin has none of that category.
|
|
73
75
|
- `counts` mirrors `contents` lengths.
|
package/package.json
CHANGED