@9000ai/cli 0.5.0 → 0.5.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/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ ## What's new in v0.5.1
2
+
3
+ - `9000ai init --path <dir>` — one command to setup workspace
4
+ - `9000ai search keyword --wait` — auto-poll, returns results directly
5
+ - `9000ai transcribe submit --wait` — same for transcription
6
+ - `9000ai monitor fetch --sec-user <id>` — fetch user homepage videos instantly
7
+ - Streamlined skills (removed legacy Python scripts)
8
+ - Hub SKILL.md: cleaner structure with call principles
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * postinstall: copy bundled skills to ~/.9000ai/skills/
3
+ * postinstall: copy bundled skills to ~/.9000ai/skills/ and show changelog
4
4
  */
5
5
  export {};
@@ -1,22 +1,40 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * postinstall: copy bundled skills to ~/.9000ai/skills/
3
+ * postinstall: copy bundled skills to ~/.9000ai/skills/ and show changelog
4
4
  */
5
- import { existsSync, mkdirSync, cpSync } from "fs";
5
+ import { existsSync, mkdirSync, cpSync, readFileSync } from "fs";
6
6
  import { dirname, join } from "path";
7
7
  import { homedir } from "os";
8
8
  import { fileURLToPath } from "url";
9
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
10
  const src = join(__dirname, "..", "skills");
11
11
  const dest = join(homedir(), ".9000ai", "skills");
12
+ // Read version
13
+ let version = "unknown";
14
+ try {
15
+ const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
16
+ version = pkg.version;
17
+ }
18
+ catch { }
12
19
  if (!existsSync(src)) {
13
20
  process.exit(0);
14
21
  }
15
22
  mkdirSync(dest, { recursive: true });
16
23
  cpSync(src, dest, { recursive: true, force: true });
17
- console.log(`\n9000AI CLI installed successfully!\n`);
18
- console.log(`Skills installed: ${dest}\n`);
24
+ // Read changelog
25
+ let changelog = "";
26
+ try {
27
+ changelog = readFileSync(join(__dirname, "..", "CHANGELOG.md"), "utf-8");
28
+ }
29
+ catch { }
30
+ console.log(`\n@9000ai/cli v${version} installed\n`);
31
+ console.log(`Skills updated: ${dest}\n`);
32
+ if (changelog) {
33
+ console.log(changelog);
34
+ console.log("");
35
+ }
19
36
  console.log(`Get started:`);
20
37
  console.log(` 1. 9000ai config set --base-url <server-url> --api-key <key>`);
21
38
  console.log(` 2. 9000ai init --path <your-project-dir>`);
22
- console.log(` 3. cd <your-project-dir> → open Claude Code → start working\n`);
39
+ console.log(` 3. cd <your-project-dir> → start working`);
40
+ console.log(`\nUpdate: npm update -g @9000ai/cli\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@9000ai/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "9000AI Toolbox CLI — unified command-line interface for 9000AI platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,7 +14,8 @@
14
14
  },
15
15
  "files": [
16
16
  "dist",
17
- "skills"
17
+ "skills",
18
+ "CHANGELOG.md"
18
19
  ],
19
20
  "dependencies": {
20
21
  "commander": "^12.1.0"