agentflow-core 0.5.1 → 0.5.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.
- package/dist/{chunk-LPTCBS77.js → chunk-YTMQBL3T.js} +11 -3
- package/dist/cli.cjs +11 -3
- package/dist/cli.js +1 -1
- package/dist/index.cjs +11 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -2135,9 +2135,17 @@ agentflow watch started`);
|
|
|
2135
2135
|
records.push(...recs);
|
|
2136
2136
|
}
|
|
2137
2137
|
const alerts = detectTransitions(state, records, config, now);
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2138
|
+
const isBootstrap = pollCount === 1 && Object.keys(state.agents).length === 0;
|
|
2139
|
+
if (isBootstrap) {
|
|
2140
|
+
const suppressed = alerts.length;
|
|
2141
|
+
if (suppressed > 0) {
|
|
2142
|
+
console.log(`[bootstrap] Suppressed ${suppressed} initial alerts (baseline scan)`);
|
|
2143
|
+
}
|
|
2144
|
+
} else {
|
|
2145
|
+
for (const alert of alerts) {
|
|
2146
|
+
for (const channel of config.notifyChannels) {
|
|
2147
|
+
await sendAlert(alert, channel);
|
|
2148
|
+
}
|
|
2141
2149
|
}
|
|
2142
2150
|
}
|
|
2143
2151
|
state = updateWatchState(state, records, alerts, now);
|
package/dist/cli.cjs
CHANGED
|
@@ -2366,9 +2366,17 @@ agentflow watch started`);
|
|
|
2366
2366
|
records.push(...recs);
|
|
2367
2367
|
}
|
|
2368
2368
|
const alerts = detectTransitions(state, records, config, now);
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2369
|
+
const isBootstrap = pollCount === 1 && Object.keys(state.agents).length === 0;
|
|
2370
|
+
if (isBootstrap) {
|
|
2371
|
+
const suppressed = alerts.length;
|
|
2372
|
+
if (suppressed > 0) {
|
|
2373
|
+
console.log(`[bootstrap] Suppressed ${suppressed} initial alerts (baseline scan)`);
|
|
2374
|
+
}
|
|
2375
|
+
} else {
|
|
2376
|
+
for (const alert of alerts) {
|
|
2377
|
+
for (const channel of config.notifyChannels) {
|
|
2378
|
+
await sendAlert(alert, channel);
|
|
2379
|
+
}
|
|
2372
2380
|
}
|
|
2373
2381
|
}
|
|
2374
2382
|
state = updateWatchState(state, records, alerts, now);
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2392,9 +2392,17 @@ agentflow watch started`);
|
|
|
2392
2392
|
records.push(...recs);
|
|
2393
2393
|
}
|
|
2394
2394
|
const alerts = detectTransitions(state, records, config, now);
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2395
|
+
const isBootstrap = pollCount === 1 && Object.keys(state.agents).length === 0;
|
|
2396
|
+
if (isBootstrap) {
|
|
2397
|
+
const suppressed = alerts.length;
|
|
2398
|
+
if (suppressed > 0) {
|
|
2399
|
+
console.log(`[bootstrap] Suppressed ${suppressed} initial alerts (baseline scan)`);
|
|
2400
|
+
}
|
|
2401
|
+
} else {
|
|
2402
|
+
for (const alert of alerts) {
|
|
2403
|
+
for (const channel of config.notifyChannels) {
|
|
2404
|
+
await sendAlert(alert, channel);
|
|
2405
|
+
}
|
|
2398
2406
|
}
|
|
2399
2407
|
}
|
|
2400
2408
|
state = updateWatchState(state, records, alerts, now);
|
package/dist/index.js
CHANGED
package/package.json
CHANGED