@postplus/cli 0.1.8 → 0.1.10
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 +6 -5
- package/build/doctor.js +5 -8
- package/build/skill-catalog.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# PostPlus CLI
|
|
2
2
|
|
|
3
|
-
`PostPlus CLI` signs you in to PostPlus Cloud and reports local account
|
|
4
|
-
hosted capability readiness.
|
|
5
|
-
|
|
3
|
+
`PostPlus CLI` signs you in to PostPlus Cloud and reports local account,
|
|
4
|
+
subscription, and hosted capability readiness. An inactive or missing
|
|
5
|
+
subscription is reported as account state, not a status failure. PostPlus
|
|
6
|
+
skills are added from the public `postplus-skills` repository.
|
|
6
7
|
|
|
7
8
|
## Install
|
|
8
9
|
|
|
@@ -11,7 +12,7 @@ Requires Node.js `>=20.10.0` and npm.
|
|
|
11
12
|
```bash
|
|
12
13
|
npm install -g @postplus/cli
|
|
13
14
|
postplus auth login
|
|
14
|
-
npx -y skills add PostPlusAI/postplus-skills --skill '*' --agent claude-code codex cursor --yes
|
|
15
|
+
npx -y skills add PostPlusAI/postplus-skills --full-depth --skill '*' --agent claude-code codex cursor --yes
|
|
15
16
|
```
|
|
16
17
|
|
|
17
18
|
## Commands
|
|
@@ -30,5 +31,5 @@ npx -y skills add PostPlusAI/postplus-skills --skill '*' --agent claude-code cod
|
|
|
30
31
|
installation commands. Use:
|
|
31
32
|
|
|
32
33
|
```bash
|
|
33
|
-
npx -y skills add PostPlusAI/postplus-skills --skill '*' --agent claude-code codex cursor --yes
|
|
34
|
+
npx -y skills add PostPlusAI/postplus-skills --full-depth --skill '*' --agent claude-code codex cursor --yes
|
|
34
35
|
```
|
package/build/doctor.js
CHANGED
|
@@ -99,16 +99,13 @@ async function checkHostedCapabilities(input) {
|
|
|
99
99
|
const failedLabels = capabilities
|
|
100
100
|
.map(readCapabilityFailureLabel)
|
|
101
101
|
.filter((value) => value !== null);
|
|
102
|
-
if (payload.subscriptionActive !== true) {
|
|
103
|
-
const status = typeof payload.subscriptionStatus === 'string'
|
|
104
|
-
? payload.subscriptionStatus
|
|
105
|
-
: 'unknown';
|
|
106
|
-
failedLabels.unshift(`subscription ${status}`);
|
|
107
|
-
}
|
|
108
102
|
if (payload.ok !== true || failedLabels.length > 0) {
|
|
109
103
|
return createFail('hosted_capabilities', 'Hosted capabilities', `Not ready: ${failedLabels.join(', ') || 'unknown capability failure'}`, 'Check PostPlus Cloud provider configuration and subscription state.');
|
|
110
104
|
}
|
|
111
|
-
|
|
105
|
+
const subscription = typeof payload.subscriptionStatus === 'string'
|
|
106
|
+
? payload.subscriptionStatus
|
|
107
|
+
: 'unknown';
|
|
108
|
+
return createPass('hosted_capabilities', 'Hosted capabilities', `Ready (${capabilities.length} capability checks passed; subscription ${subscription})`);
|
|
112
109
|
}
|
|
113
110
|
catch (error) {
|
|
114
111
|
return createFail('hosted_capabilities', 'Hosted capabilities', error instanceof Error
|
|
@@ -121,7 +118,7 @@ function readCapabilityFailureLabel(value) {
|
|
|
121
118
|
return 'invalid capability response';
|
|
122
119
|
}
|
|
123
120
|
const record = value;
|
|
124
|
-
if (record.ok === true) {
|
|
121
|
+
if (record.ok === true || record.required === false) {
|
|
125
122
|
return null;
|
|
126
123
|
}
|
|
127
124
|
return typeof record.label === 'string'
|
package/build/skill-catalog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const POSTPLUS_SKILLS_REPO = 'PostPlusAI/postplus-skills';
|
|
2
|
-
export const POSTPLUS_SKILLS_INSTALL_COMMAND = "npx -y skills add PostPlusAI/postplus-skills --skill '*' --agent claude-code codex cursor --yes";
|
|
3
|
-
export const POSTPLUS_SKILLS_LIST_COMMAND = 'npx -y skills add PostPlusAI/postplus-skills --list';
|
|
2
|
+
export const POSTPLUS_SKILLS_INSTALL_COMMAND = "npx -y skills add PostPlusAI/postplus-skills --full-depth --skill '*' --agent claude-code codex cursor --yes";
|
|
3
|
+
export const POSTPLUS_SKILLS_LIST_COMMAND = 'npx -y skills add PostPlusAI/postplus-skills --list --full-depth';
|
|
4
4
|
const POSTPLUS_SKILLS_INDEX_URL = 'https://raw.githubusercontent.com/PostPlusAI/postplus-skills/main/skills/INDEX.md';
|
|
5
5
|
export async function loadPublicSkillCatalog() {
|
|
6
6
|
const response = await fetch(POSTPLUS_SKILLS_INDEX_URL, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postplus/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
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.",
|