aiupdate 0.1.2 → 0.1.3

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
@@ -2,6 +2,8 @@
2
2
 
3
3
  Update all your AI agent CLIs and skills concurrently.
4
4
 
5
+ https://github.com/user-attachments/assets/f4bdd8cb-9c70-4858-a6d1-8ca07d0eadb2
6
+
5
7
  ## Usage
6
8
 
7
9
  ```bash
@@ -29,6 +31,7 @@ Each tool runs concurrently. After updating, aiupdate shows the version change (
29
31
  | [OpenCode](https://opencode.ai) | `opencode upgrade` |
30
32
  | [Cursor Agent](https://cursor.com) | `cursor-agent update` |
31
33
  | [GitHub Copilot CLI](https://githubnext.com/projects/copilot-cli) | `copilot update` |
34
+ | [pi](https://pi.dev/) | `pi update pi` |
32
35
  | [skills](https://github.com/anthropics/skills) | `npx skills update -g -p -y` |
33
36
 
34
37
  Tools not installed on your machine are silently skipped.
package/dist/cli.js CHANGED
@@ -10,7 +10,8 @@ var AI_TOOLS = [
10
10
  { name: "codex", command: "codex", args: ["update"], versioned: true },
11
11
  { name: "opencode", command: "opencode", args: ["upgrade"], versioned: true },
12
12
  { name: "cursor-agent", command: "cursor-agent", args: ["update"], versioned: true },
13
- { name: "copilot", command: "copilot", args: ["update"], versioned: true }
13
+ { name: "copilot", command: "copilot", args: ["update"], versioned: true },
14
+ { name: "pi", command: "pi", args: ["update", "pi"], versioned: true }
14
15
  ];
15
16
  var SKILLS_TASK = {
16
17
  name: "skills",
@@ -27,8 +28,9 @@ async function defaultChecker(command) {
27
28
  }
28
29
  async function getVersion(command) {
29
30
  try {
30
- const { stdout } = await execa(command, ["--version"]);
31
- const match = stdout.match(/\d+\.\d+\.\d+/);
31
+ const { stdout, stderr } = await execa(command, ["--version"]);
32
+ const match = `${stdout}
33
+ ${stderr}`.match(/\d+\.\d+\.\d+/);
32
34
  return match ? match[0] : null;
33
35
  } catch {
34
36
  return null;
@@ -87,6 +89,7 @@ export {
87
89
  AI_TOOLS,
88
90
  SKILLS_TASK,
89
91
  formatTitle,
92
+ getVersion,
90
93
  run,
91
94
  selectTools
92
95
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiupdate",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Update all your AI agent CLIs and skills concurrently",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "vitest": "^4.1.7"
27
27
  },
28
28
  "engines": {
29
- "node": ">=18"
29
+ "node": ">=22"
30
30
  },
31
31
  "keywords": [
32
32
  "ai",