aiupdate 0.1.3 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/dist/cli.js +15 -6
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -32,6 +32,7 @@ Each tool runs concurrently. After updating, aiupdate shows the version change (
32
32
  | [Cursor Agent](https://cursor.com) | `cursor-agent update` |
33
33
  | [GitHub Copilot CLI](https://githubnext.com/projects/copilot-cli) | `copilot update` |
34
34
  | [pi](https://pi.dev/) | `pi update pi` |
35
+ | [Antigravity](https://github.com/google-antigravity/antigravity-cli) | `agy update` |
35
36
  | [skills](https://github.com/anthropics/skills) | `npx skills update -g -p -y` |
36
37
 
37
38
  Tools not installed on your machine are silently skipped.
package/dist/cli.js CHANGED
@@ -11,7 +11,8 @@ var AI_TOOLS = [
11
11
  { name: "opencode", command: "opencode", args: ["upgrade"], versioned: true },
12
12
  { name: "cursor-agent", command: "cursor-agent", args: ["update"], versioned: true },
13
13
  { name: "copilot", command: "copilot", args: ["update"], versioned: true },
14
- { name: "pi", command: "pi", args: ["update", "pi"], versioned: true }
14
+ { name: "pi", command: "pi", args: ["update", "pi"], versioned: true },
15
+ { name: "agy", command: "agy", args: ["update"], versioned: true }
15
16
  ];
16
17
  var SKILLS_TASK = {
17
18
  name: "skills",
@@ -49,14 +50,14 @@ function selectTools(targetArgs) {
49
50
  }
50
51
  async function run(targetArgs, executor = async (cmd, args) => {
51
52
  await execa(cmd, args);
52
- }, checker = defaultChecker, versioner = getVersion) {
53
+ }, checker = defaultChecker, versioner = getVersion, logger = (message) => console.error(message)) {
53
54
  const { selectedAITools, includeSkills } = selectTools(targetArgs);
54
55
  const toolsToCheck = includeSkills ? [...selectedAITools, SKILLS_TASK] : selectedAITools;
55
56
  const checks = await Promise.all(
56
57
  toolsToCheck.map(async (t) => ({ tool: t, installed: await checker(t.command) }))
57
58
  );
58
59
  const allTools = checks.filter((c) => c.installed).map((c) => c.tool);
59
- let hasFailures = false;
60
+ const failures = [];
60
61
  const runner = new Listr(
61
62
  allTools.map((tool) => ({
62
63
  title: tool.name,
@@ -65,9 +66,10 @@ async function run(targetArgs, executor = async (cmd, args) => {
65
66
  try {
66
67
  await executor(tool.command, tool.args);
67
68
  } catch (err) {
68
- hasFailures = true;
69
69
  const e = err;
70
- throw new Error(e.stderr || e.shortMessage || String(e));
70
+ const message = e.stderr || e.shortMessage || String(e);
71
+ failures.push({ name: tool.name, message });
72
+ throw new Error(message);
71
73
  }
72
74
  if (before) {
73
75
  const after = await versioner(tool.command);
@@ -79,7 +81,14 @@ async function run(targetArgs, executor = async (cmd, args) => {
79
81
  );
80
82
  await runner.run().catch(() => {
81
83
  });
82
- return !hasFailures;
84
+ if (failures.length > 0) {
85
+ logger("");
86
+ logger(`Errors (${failures.length}):`);
87
+ for (const failure of failures) {
88
+ logger(` - ${failure.name}: ${failure.message}`);
89
+ }
90
+ }
91
+ return failures.length === 0;
83
92
  }
84
93
  if (process.argv[1] && realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url))) {
85
94
  const success = await run(process.argv.slice(2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiupdate",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Update all your AI agent CLIs and skills concurrently",
5
5
  "type": "module",
6
6
  "bin": {