infinicode 2.8.54 → 2.8.57

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/dist/cli.js CHANGED
@@ -305,6 +305,7 @@ program
305
305
  .option('--token <token>', 'shared bearer token peers must present')
306
306
  .option('--seed <url...>', 'peer base URL(s) to connect to on start')
307
307
  .option('--auto-update', 'accept auto-updates announced by a hub/relay')
308
+ .option('--update-poll-ms <ms>', 'hub/relay npm-release polling interval (default 60000)')
308
309
  .option('--supervised', 'this node runs under a supervisor (systemd/pm2/Task Scheduler) — let /update restart it to activate a new version')
309
310
  .option('--tailscale', 'auto-discover + connect peers over Tailscale')
310
311
  .option('--lan', 'auto-discover + connect peers on the same LAN via UDP broadcast (no seed/Tailscale needed)')
@@ -8,6 +8,7 @@ export interface ServeOptions {
8
8
  token?: string;
9
9
  seed?: string[];
10
10
  autoUpdate?: boolean;
11
+ updatePollMs?: string;
11
12
  hub?: boolean;
12
13
  tailscale?: boolean;
13
14
  tag?: string;
@@ -156,6 +156,7 @@ export async function serve(config, opts) {
156
156
  token,
157
157
  heartbeatMs: (fed.heartbeatSec ?? 30) * 1000,
158
158
  autoUpdate: opts.autoUpdate ?? fed.autoUpdate,
159
+ updatePollMs: opts.updatePollMs ? Number(opts.updatePollMs) : fed.updatePollMs,
159
160
  applyConfig,
160
161
  autoPullConfig: role === 'satellite',
161
162
  dashboard: opts.dashboard,
@@ -43,6 +43,8 @@ export interface FederationConfig {
43
43
  heartbeatSec?: number;
44
44
  /** Accept + apply auto-updates announced by a hub/relay. */
45
45
  autoUpdate?: boolean;
46
+ /** Hub/relay npm-release polling interval in milliseconds (default 60000). */
47
+ updatePollMs?: number;
46
48
  /** Node runs under a process supervisor — allow `/update` to exit-for-restart. */
47
49
  supervised?: boolean;
48
50
  /** Zero-config LAN discovery: broadcast + auto-connect peers on this subnet. */