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.
@@ -2135,9 +2135,17 @@ agentflow watch started`);
2135
2135
  records.push(...recs);
2136
2136
  }
2137
2137
  const alerts = detectTransitions(state, records, config, now);
2138
- for (const alert of alerts) {
2139
- for (const channel of config.notifyChannels) {
2140
- await sendAlert(alert, channel);
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
- for (const alert of alerts) {
2370
- for (const channel of config.notifyChannels) {
2371
- await sendAlert(alert, channel);
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
@@ -6,7 +6,7 @@ import {
6
6
  startWatch,
7
7
  toAsciiTree,
8
8
  toTimeline
9
- } from "./chunk-LPTCBS77.js";
9
+ } from "./chunk-YTMQBL3T.js";
10
10
  import "./chunk-DY7YHFIB.js";
11
11
 
12
12
  // src/cli.ts
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
- for (const alert of alerts) {
2396
- for (const channel of config.notifyChannels) {
2397
- await sendAlert(alert, channel);
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
@@ -20,7 +20,7 @@ import {
20
20
  stitchTrace,
21
21
  toAsciiTree,
22
22
  toTimeline
23
- } from "./chunk-LPTCBS77.js";
23
+ } from "./chunk-YTMQBL3T.js";
24
24
  import {
25
25
  graphToJson,
26
26
  loadGraph
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentflow-core",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Monitor any AI agent system. Auto-detects failures, sends alerts. Zero config, zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",