@postplus/cli 0.1.8 → 0.1.9

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
@@ -1,8 +1,9 @@
1
1
  # PostPlus CLI
2
2
 
3
- `PostPlus CLI` signs you in to PostPlus Cloud and reports local account and
4
- hosted capability readiness. PostPlus skills are added from the public
5
- `postplus-skills` repository.
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
 
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
- return createPass('hosted_capabilities', 'Hosted capabilities', `Ready (${capabilities.length} capability checks passed)`);
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postplus/cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
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.",