@dadado/agent-kit-cli 5.6.0 → 5.7.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.
@@ -0,0 +1,23 @@
1
+ /** Ambient types for dashboard/lib/live-refresh.mjs (consumed by CLI TypeScript). */
2
+
3
+ export const WATCH_DEBOUNCE_MS: 400;
4
+ export const PERIODIC_REFRESH_MS: 15000;
5
+ export const SSE_SILENCE_MS: 20000;
6
+ export const SNAPSHOT_REPO_SOURCE_RELS: readonly string[];
7
+
8
+ export function projectSlugFromRoot(root: string): string;
9
+ export function resolveAgentTranscriptsWatchPath(root: string, home?: string): string;
10
+ export function resolveWatchPaths(root: string, dashboardDir: string): string[];
11
+ export function watchCoversPath(watchAbs: string, targetAbs: string): boolean;
12
+ export function isCoveredByWatchPaths(watchAbsPaths: string[], targetAbs: string): boolean;
13
+ export function createTrailingDebounce(
14
+ fn: () => void,
15
+ ms: number,
16
+ timers?: {
17
+ setTimeout?: typeof setTimeout;
18
+ clearTimeout?: typeof clearTimeout;
19
+ now?: () => number;
20
+ maxWait?: number;
21
+ },
22
+ ): () => void;
23
+ export function isSseSilent(lastEventAt: number, now: number, silenceMs?: number): boolean;
@@ -24,10 +24,17 @@ export const MONITOR_FEED_CAP = 20;
24
24
  /** Cap agent_step rows emitted per active plan for the denser Crew feed. */
25
25
  export const MONITOR_AGENT_STEP_EMIT_CAP = 12;
26
26
 
27
- /** Cap subagent-run rows emitted per snapshot (fs scan bounds live in dashboard-data.mjs). */
28
- export const MONITOR_SUBAGENT_EMIT_CAP = 8;
29
- /** Cap plan_review pointer rows emitted per snapshot. */
30
- export const MONITOR_PLAN_REVIEW_EMIT_CAP = 4;
27
+ /**
28
+ * Cap subagent-run and plan_review pointer rows emitted per snapshot (fs scan
29
+ * bounds for the former live in dashboard-data.mjs). Halved from 8/4 (C-G3,
30
+ * plan-monitor-crew-monitor-compact-labels-realtime-activity-2026-08-05.md):
31
+ * at full caps the two kinds sat ahead of `plan_progress` in mergeActivity's
32
+ * priority concat and could claim 12 of MONITOR_FEED_CAP's 20 slots during a
33
+ * busy run-plan-all batch, squeezing out plan-progress rows. 4/2 leaves more
34
+ * headroom without reordering the merge itself.
35
+ */
36
+ export const MONITOR_SUBAGENT_EMIT_CAP = 4;
37
+ export const MONITOR_PLAN_REVIEW_EMIT_CAP = 2;
31
38
 
32
39
  /**
33
40
  * Monitor hero curated subset over the semantic activity stream.
@@ -2511,7 +2518,7 @@ export function formatPlanReviewActivity(
2511
2518
  label: truncateStr(visible, MAX_SEMANTIC_LABEL),
2512
2519
  labelFull: visible,
2513
2520
  sourcePath: report.path || null,
2514
- refs: { plan: report.reviewedPlanFile || null, report: report.file, triaged },
2521
+ refs: { plan: planRef, report: report.file, triaged },
2515
2522
  });
2516
2523
  }
2517
2524
  return events;