dotmd-cli 0.48.2 → 0.48.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotmd-cli",
3
- "version": "0.48.2",
3
+ "version": "0.48.3",
4
4
  "description": "CLI for managing markdown documents with YAML frontmatter — index, query, validate, graph, export, Notion sync, AI summaries.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,6 +40,7 @@
40
40
  "scripts": {
41
41
  "test": "node --test test/*.test.mjs",
42
42
  "preversion": "npm test",
43
+ "version": "node bin/dotmd.mjs hud >/dev/null 2>&1; git add .claude/commands docs/docs.md 2>/dev/null; true",
43
44
  "postversion": "git push origin main --tags && gh release create v$npm_package_version --generate-notes --title v$npm_package_version && sleep 5 && gh run watch $(gh run list --workflow=publish.yml --limit 1 --json databaseId --jq '.[0].databaseId') --exit-status && sleep 10 && npm cache clean --force && npm install -g dotmd-cli@$npm_package_version"
44
45
  },
45
46
  "engines": {
@@ -229,22 +229,12 @@ export function refreshStaleSlashCommands(config) {
229
229
  return results.filter(r => r.action === 'updated');
230
230
  }
231
231
 
232
- export function checkClaudeCommands(cwd, opts = {}) {
233
- const { version = pkg.version } = opts;
234
- const commandsDir = path.join(cwd, '.claude', 'commands');
235
- if (!existsSync(commandsDir)) return [];
236
-
237
- const warnings = [];
238
- for (const name of ['plans.md', 'docs.md', 'baton.md']) {
239
- const filePath = path.join(commandsDir, name);
240
- const installedVersion = getInstalledVersion(filePath);
241
- if (installedVersion && installedVersion !== version) {
242
- warnings.push({
243
- path: `.claude/commands/${name}`,
244
- level: 'warning',
245
- message: `Claude command outdated (v${installedVersion} → v${version}). Run \`dotmd doctor\` to update.`,
246
- });
247
- }
248
- }
249
- return warnings;
232
+ // Intentionally returns []. Slash-command stamp drift is auto-healed every
233
+ // time `dotmd hud` runs (SessionStart hook), and `dotmd doctor` regens them
234
+ // on demand. Surfacing a warning at `dotmd check` time was pure noise — it
235
+ // fired on every release until the next session, despite the user having no
236
+ // action to take (the heal is automatic). Kept the function for API stability
237
+ // in case downstream callers import it.
238
+ export function checkClaudeCommands(_cwd, _opts = {}) {
239
+ return [];
250
240
  }