pmpt-cli 1.14.4 → 1.14.5

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.
Files changed (2) hide show
  1. package/dist/mcp.js +8 -1
  2. package/package.json +1 -1
package/dist/mcp.js CHANGED
@@ -12,7 +12,7 @@ import { resolve, join } from 'path';
12
12
  import { existsSync, readFileSync, writeFileSync } from 'fs';
13
13
  import glob from 'fast-glob';
14
14
  import { createRequire } from 'module';
15
- import { isInitialized, loadConfig, getDocsDir, getHistoryDir } from './lib/config.js';
15
+ import { isInitialized, loadConfig, saveConfig, getDocsDir, getHistoryDir } from './lib/config.js';
16
16
  import { createFullSnapshot, getAllSnapshots, getTrackedFiles, resolveFullSnapshot } from './lib/history.js';
17
17
  import { computeQuality } from './lib/quality.js';
18
18
  import { getPlanProgress, savePlanProgress, savePlanDocuments, PLAN_QUESTIONS } from './lib/plan.js';
@@ -656,6 +656,13 @@ server.tool('pmpt_publish', 'Publish the project to pmptwiki.com. Non-interactiv
656
656
  productUrl,
657
657
  productUrlType,
658
658
  });
659
+ // Save publish state to config so `pmpt update` works
660
+ if (config) {
661
+ config.lastPublished = new Date().toISOString();
662
+ config.lastPublishedSlug = slug;
663
+ config.lastPublishedVersionCount = snapshots.length;
664
+ saveConfig(pp, config);
665
+ }
659
666
  return {
660
667
  content: [{
661
668
  type: 'text',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmpt-cli",
3
- "version": "1.14.4",
3
+ "version": "1.14.5",
4
4
  "description": "Record and share your AI-driven product development journey",
5
5
  "type": "module",
6
6
  "bin": {