buzz-agent-skill 0.1.0 → 0.1.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/README.md CHANGED
@@ -31,6 +31,12 @@ npx buzz-agent-skill check
31
31
  The check reports skill versions, CLI availability, and whether Buzz
32
32
  authentication variables are set. It never prints secret values.
33
33
 
34
+ For machine-readable output:
35
+
36
+ ```bash
37
+ npx buzz-agent-skill check --json
38
+ ```
39
+
34
40
  ## CLI installation
35
41
 
36
42
  Buzz Desktop includes the native CLI. On macOS, the installer maintains:
@@ -44,4 +50,3 @@ For source builds:
44
50
  ```bash
45
51
  cargo build --release -p buzz-cli
46
52
  ```
47
-
@@ -159,8 +159,45 @@ function status() {
159
159
  };
160
160
  }
161
161
 
162
+ function formatStatus(result) {
163
+ const lines = [
164
+ `Buzz Agent Skill v${result.package_version}`,
165
+ "",
166
+ `${result.cli.ok ? "✓" : "✗"} Buzz CLI${
167
+ result.cli.path ? ` ${result.cli.path}` : ""
168
+ }`,
169
+ ];
170
+
171
+ if (!result.cli.ok && result.cli.message) {
172
+ lines.push(` ${result.cli.message}`);
173
+ }
174
+
175
+ lines.push("", "Agent skills");
176
+ for (const skill of result.skills) {
177
+ const ok = skill.installed && skill.managed;
178
+ const details = [
179
+ skill.installed ? "installed" : "not installed",
180
+ skill.managed ? "managed" : "not managed",
181
+ skill.version ? `v${skill.version}` : null,
182
+ ]
183
+ .filter(Boolean)
184
+ .join(" · ");
185
+ lines.push(
186
+ `${ok ? "✓" : "✗"} ${skill.agent.padEnd(7)} ${details}`,
187
+ ` ${skill.path}`,
188
+ );
189
+ }
190
+
191
+ const healthy =
192
+ result.cli.ok &&
193
+ result.skills.every((skill) => skill.installed && skill.managed);
194
+ lines.push("", healthy ? "Everything looks good." : "Some items need attention.");
195
+ return lines.join("\n");
196
+ }
197
+
162
198
  const [command = "check", ...args] = process.argv.slice(2);
163
199
  const force = args.includes("--force");
200
+ const json = args.includes("--json");
164
201
 
165
202
  try {
166
203
  if (command === "install" || command === "update") {
@@ -170,7 +207,7 @@ try {
170
207
  if (!result.cli.ok) process.exitCode = 1;
171
208
  } else if (command === "check") {
172
209
  const result = status();
173
- console.log(JSON.stringify(result, null, 2));
210
+ console.log(json ? JSON.stringify(result, null, 2) : formatStatus(result));
174
211
  if (
175
212
  !result.cli.ok ||
176
213
  result.skills.some((skill) => !skill.installed || !skill.managed)
@@ -179,7 +216,7 @@ try {
179
216
  }
180
217
  } else {
181
218
  console.error(
182
- "Usage: buzz-skill <install|update|check> [--force]",
219
+ "Usage: buzz-skill <install|update|check> [--force] [--json]",
183
220
  );
184
221
  process.exitCode = 1;
185
222
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buzz-agent-skill",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Install and update the Buzz CLI skill for Codex and Claude Code",
5
5
  "type": "module",
6
6
  "bin": {