@postplus/cli 0.1.15 → 0.1.17

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
@@ -33,9 +33,12 @@ Requires Node.js and npm.
33
33
  ```bash
34
34
  npm install -g @postplus/cli
35
35
  postplus auth login
36
- npx -y skills add PostPlusAI/postplus-skills --full-depth --skill '*' --agent claude-code codex cursor github-copilot windsurf trae trae-cn --yes
36
+ npx -y skills add PostPlusAI/postplus-skills --global --full-depth --skill '*' --agent claude-code codex cursor github-copilot windsurf trae trae-cn --yes
37
37
  ```
38
38
 
39
+ Start a new agent session or restart the local agent app after installation so
40
+ the global skills are loaded.
41
+
39
42
  Useful checks:
40
43
 
41
44
  ```bash
@@ -1,5 +1,15 @@
1
1
  export const POSTPLUS_SKILLS_REPO = 'PostPlusAI/postplus-skills';
2
- export const POSTPLUS_SKILLS_INSTALL_COMMAND = "npx -y skills add PostPlusAI/postplus-skills --full-depth --skill '*' --agent claude-code codex cursor --yes";
2
+ export const POSTPLUS_SKILLS_AGENT_TARGETS = [
3
+ 'claude-code',
4
+ 'codex',
5
+ 'cursor',
6
+ 'github-copilot',
7
+ 'windsurf',
8
+ 'trae',
9
+ 'trae-cn',
10
+ ];
11
+ const POSTPLUS_SKILLS_AGENT_ARGS = POSTPLUS_SKILLS_AGENT_TARGETS.join(' ');
12
+ export const POSTPLUS_SKILLS_INSTALL_COMMAND = `npx -y skills add PostPlusAI/postplus-skills --global --full-depth --skill '*' --agent ${POSTPLUS_SKILLS_AGENT_ARGS} --yes`;
3
13
  export const POSTPLUS_SKILLS_LIST_COMMAND = 'npx -y skills add PostPlusAI/postplus-skills --list --full-depth';
4
14
  const POSTPLUS_SKILLS_INDEX_URL = 'https://raw.githubusercontent.com/PostPlusAI/postplus-skills/main/skills/INDEX.md';
5
15
  export async function loadPublicSkillCatalog() {
@@ -1,6 +1,5 @@
1
- import { POSTPLUS_SKILLS_INSTALL_COMMAND, POSTPLUS_SKILLS_REPO, loadPublicSkillCatalog, } from './skill-catalog.js';
1
+ import { POSTPLUS_SKILLS_AGENT_TARGETS, POSTPLUS_SKILLS_INSTALL_COMMAND, POSTPLUS_SKILLS_REPO, loadPublicSkillCatalog, } from './skill-catalog.js';
2
2
  import { runCommand, runInteractiveCommand } from './command-runner.js';
3
- const SKILLS_AGENTS = ['claude-code', 'codex', 'cursor'];
4
3
  const NPX_SKILLS = ['-y', 'skills'];
5
4
  export async function runPostPlusSkillUpdate() {
6
5
  const catalog = await loadPublicSkillCatalog();
@@ -85,15 +84,16 @@ export function formatSkillInstallStatusReport(report) {
85
84
  return lines.join('\n');
86
85
  }
87
86
  export function buildPostPlusSkillUpdateArgs(skillNames) {
88
- return [...NPX_SKILLS, 'update', ...skillNames, '--yes'];
87
+ return [...NPX_SKILLS, 'update', ...skillNames, '--global', '--yes'];
89
88
  }
90
89
  export function buildPostPlusSkillUninstallArgs(skillNames) {
91
90
  return [
92
91
  ...NPX_SKILLS,
93
92
  'remove',
94
93
  ...skillNames,
94
+ '--global',
95
95
  '--agent',
96
- ...SKILLS_AGENTS,
96
+ ...POSTPLUS_SKILLS_AGENT_TARGETS,
97
97
  '--yes',
98
98
  ];
99
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postplus/cli",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "packageManager": "pnpm@10.30.3+sha512.c961d1e0a2d8e354ecaa5166b822516668b7f44cb5bd95122d590dd81922f606f5473b6d23ec4a5be05e7fcd18e8488d47d978bbe981872f1145d06e9a740017",
5
5
  "type": "module",
6
6
  "description": "PostPlus CLI for PostPlus Cloud auth, status, and diagnostics.",
@@ -32,7 +32,7 @@
32
32
  "node": ">=20.10.0"
33
33
  },
34
34
  "bin": {
35
- "postplus": "./build/index.js"
35
+ "postplus": "build/index.js"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "node ./scripts/clean-build.mjs && tsc",