dotmd-cli 0.45.0 → 0.45.1
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/bin/dotmd.mjs +9 -0
- package/package.json +1 -1
- package/src/commands.mjs +1 -1
package/bin/dotmd.mjs
CHANGED
|
@@ -1189,6 +1189,15 @@ async function main() {
|
|
|
1189
1189
|
await runUse(restArgs, config, { dryRun });
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
1192
|
+
// `dotmd next` is a top-level alias for `dotmd use` with no arg — consume
|
|
1193
|
+
// the oldest pending prompt. Wired separately so agents who reach for the
|
|
1194
|
+
// literal verb "next" don't bounce off an Unknown-command. Any positional
|
|
1195
|
+
// arg is ignored (a named file goes through `use`).
|
|
1196
|
+
if (command === 'next') {
|
|
1197
|
+
const { runUse } = await import('../src/use.mjs');
|
|
1198
|
+
await runUse(restArgs.filter(a => a.startsWith('-')), config, { dryRun });
|
|
1199
|
+
return;
|
|
1200
|
+
}
|
|
1192
1201
|
|
|
1193
1202
|
// Commands that handle their own index building
|
|
1194
1203
|
if (command === 'diff') { const { runDiff } = await import('../src/diff.mjs'); runDiff(restArgs, config); return; }
|
package/package.json
CHANGED
package/src/commands.mjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// templates points at a real command.
|
|
5
5
|
export const KNOWN_COMMANDS = [
|
|
6
6
|
'list', 'json', 'check', 'coverage', 'stats', 'graph', 'deps', 'briefing', 'context', 'hud',
|
|
7
|
-
'focus', 'query', 'plans', 'prompts', 'stale', 'actionable', 'index', 'pickup', 'release', 'status', 'set', 'use', 'archive', 'bulk', 'bulk-tag', 'touch', 'doctor',
|
|
7
|
+
'focus', 'query', 'plans', 'prompts', 'stale', 'actionable', 'index', 'pickup', 'release', 'status', 'set', 'use', 'next', 'archive', 'bulk', 'bulk-tag', 'touch', 'doctor',
|
|
8
8
|
'unblocks', 'health', 'glossary', 'modules', 'module',
|
|
9
9
|
'fix-refs', 'lint', 'rename', 'migrate', 'notion', 'export', 'summary',
|
|
10
10
|
'watch', 'diff', 'new', 'init', 'completions', 'statuses', 'journal',
|