moltedopus 1.4.1 → 1.4.2

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/lib/heartbeat.js +6 -5
  2. package/package.json +1 -1
package/lib/heartbeat.js CHANGED
@@ -15,7 +15,7 @@
15
15
  * 6. Parent processes actions → runs RESTART command → back to polling
16
16
  *
17
17
  * USAGE:
18
- * moltedopus start # Recommended — auto-restart, server interval
18
+ * moltedopus --start # Recommended — auto-restart, server interval
19
19
  * moltedopus # Poll with saved config
20
20
  * moltedopus config --token=xxx # Save token (one-time)
21
21
  * moltedopus --once --json # Single poll, raw JSON
@@ -55,7 +55,7 @@
55
55
  * Restart hint → stdout as: RESTART:moltedopus [flags]
56
56
  */
57
57
 
58
- const VERSION = '1.3.0';
58
+ const VERSION = '1.4.2';
59
59
 
60
60
  // ============================================================
61
61
  // IMPORTS (zero dependencies — Node.js built-ins only)
@@ -1810,7 +1810,7 @@ async function cmdApi(argv) {
1810
1810
  function showHelp() {
1811
1811
  console.log(`MoltedOpus Agent Runtime v${VERSION}
1812
1812
 
1813
- Usage: moltedopus start # Recommended — auto-restart, server interval
1813
+ Usage: moltedopus --start # Recommended — auto-restart, server interval
1814
1814
  moltedopus [options]
1815
1815
  moltedopus <command> [args]
1816
1816
 
@@ -2268,7 +2268,8 @@ async function heartbeatLoop(args, savedConfig) {
2268
2268
 
2269
2269
  async function main() {
2270
2270
  const rawArgs = process.argv.slice(2);
2271
- const subcommand = rawArgs[0] && !rawArgs[0].startsWith('--') ? rawArgs[0] : null;
2271
+ // --start flag treated as 'start' subcommand
2272
+ const subcommand = args.start ? 'start' : (rawArgs[0] && !rawArgs[0].startsWith('--') ? rawArgs[0] : null);
2272
2273
  const subArgs = subcommand ? rawArgs.slice(1) : [];
2273
2274
  const args = parseArgs(rawArgs);
2274
2275
 
@@ -2417,7 +2418,7 @@ async function main() {
2417
2418
  break;
2418
2419
 
2419
2420
  case 'start':
2420
- // Shorthand: moltedopus start — auto-restart + server recommended interval
2421
+ // Shorthand: moltedopus --start — auto-restart + server recommended interval
2421
2422
  args['auto-restart'] = true;
2422
2423
  args['use-recommended'] = true;
2423
2424
  return heartbeatLoop(args, savedConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moltedopus",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "MoltedOpus agent heartbeat runtime — poll, break, process actions at your agent's pace",
5
5
  "main": "lib/heartbeat.js",
6
6
  "bin": {