@postplus/cli 0.1.32 → 0.1.33

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.
@@ -2,6 +2,7 @@ import { writeCurrentCliVersionToLocalConfig } from './client-compatibility.js';
2
2
  import { runCommand, runInteractiveCommand } from './command-runner.js';
3
3
  import { clearManagedSkillBaseline, readManagedSkillBaseline, writeManagedSkillBaseline, } from './local-state.js';
4
4
  import { POSTPLUS_SKILLS_AGENT_TARGETS, formatPostPlusSkillsInstallCommand, resolvePostPlusSkillsSource, loadPublicSkillCatalog, } from './skill-catalog.js';
5
+ import { clearUpdateCheckCache } from './update-check.js';
5
6
  const NPX_SKILLS = ['-y', 'skills'];
6
7
  const DEFAULT_SKILL_MUTATION_OPTIONS = {
7
8
  scope: 'global',
@@ -31,6 +32,7 @@ export async function runPostPlusSkillUpdate(dependencies = {
31
32
  skillNames,
32
33
  });
33
34
  await writeCurrentCliVersionToLocalConfig();
35
+ await clearUpdateCheckCache();
34
36
  return 0;
35
37
  }
36
38
  export async function runPostPlusSkillUninstall(dependencies = {
@@ -46,6 +48,7 @@ export async function runPostPlusSkillUninstall(dependencies = {
46
48
  const exitCode = await dependencies.runInteractiveCommand('npx', buildPostPlusSkillUninstallArgs(allKnownSkillNames, options.scope));
47
49
  if (exitCode === 0) {
48
50
  await clearManagedSkillBaseline();
51
+ await clearUpdateCheckCache();
49
52
  }
50
53
  return exitCode;
51
54
  }
@@ -72,6 +75,7 @@ export async function runPostPlusSkillVerify(dependencies = {
72
75
  skillNames: inspection.requiredSkillNames,
73
76
  });
74
77
  await writeCurrentCliVersionToLocalConfig();
78
+ await clearUpdateCheckCache();
75
79
  return {
76
80
  ...inspection.report,
77
81
  baselineUpdated: true,
@@ -1,4 +1,4 @@
1
- import { mkdir, readFile, writeFile } from 'node:fs/promises';
1
+ import { mkdir, readFile, rm, writeFile } from 'node:fs/promises';
2
2
  import { dirname, join } from 'node:path';
3
3
  import { readCurrentCliVersion } from './client-compatibility.js';
4
4
  import { runInteractiveCommand as runDefaultInteractiveCommand, } from './command-runner.js';
@@ -88,6 +88,11 @@ export async function refreshUpdateCheckCache() {
88
88
  force: true,
89
89
  });
90
90
  }
91
+ export async function clearUpdateCheckCache() {
92
+ await rm(getUpdateCheckCachePath(), {
93
+ force: true,
94
+ });
95
+ }
91
96
  export async function runCliSelfUpdateIfOutdated(dependencies = {}) {
92
97
  const fetchFn = dependencies.fetchFn ?? fetch;
93
98
  const runInteractiveCommand = dependencies.runInteractiveCommand ?? runDefaultInteractiveCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postplus/cli",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
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.",