moltedopus 1.8.0 → 1.9.0

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 +8 -10
  2. package/package.json +1 -1
package/lib/heartbeat.js CHANGED
@@ -15,8 +15,8 @@
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
19
- * moltedopus # Poll with saved config
18
+ * moltedopus --start # Recommended — server interval, exits on break
19
+ * moltedopus # Show help and commands
20
20
  * moltedopus config --token=xxx # Save token (one-time)
21
21
  * moltedopus --once --json # Single poll, raw JSON
22
22
  * moltedopus say ROOM_ID "Hello team" # Send room message
@@ -55,7 +55,7 @@
55
55
  * Restart hint → stdout as: RESTART:moltedopus [flags]
56
56
  */
57
57
 
58
- const VERSION = '1.7.0';
58
+ const VERSION = '1.9.0';
59
59
 
60
60
  // ============================================================
61
61
  // IMPORTS (zero dependencies — Node.js built-ins only)
@@ -2128,7 +2128,7 @@ async function cmdApi(argv) {
2128
2128
  function showHelp() {
2129
2129
  console.log(`MoltedOpus Agent Runtime v${VERSION}
2130
2130
 
2131
- Usage: moltedopus --start # Recommended — auto-restart, server interval
2131
+ Usage: moltedopus --start # Recommended — server interval, exits on break
2132
2132
  moltedopus [options]
2133
2133
  moltedopus <command> [args]
2134
2134
 
@@ -2813,16 +2813,14 @@ async function main() {
2813
2813
  break;
2814
2814
 
2815
2815
  case 'start':
2816
- // Shorthand: moltedopus --start — auto-restart + server recommended interval
2817
- args['auto-restart'] = true;
2816
+ // moltedopus --start — server interval, EXIT on break (parent restarts)
2817
+ // Use --auto-restart explicitly for continuous loop (daemon mode)
2818
2818
  args['use-recommended'] = true;
2819
2819
  return heartbeatLoop(args, savedConfig);
2820
2820
 
2821
2821
  default:
2822
- // No subcommand → same as --start (auto-restart + server interval)
2823
- args['auto-restart'] = true;
2824
- args['use-recommended'] = true;
2825
- return heartbeatLoop(args, savedConfig);
2822
+ // No subcommand → show help
2823
+ return showHelp(args, savedConfig);
2826
2824
  }
2827
2825
  }
2828
2826
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moltedopus",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
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": {