@wrongstack/core 0.309.0 → 0.309.1

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.
@@ -56,6 +56,13 @@ export declare class Director implements DirectorFleetHost, ICoordinator {
56
56
  private readonly subagentIdleTimeoutMs;
57
57
  private readonly retireSubagentOnTaskComplete;
58
58
  private readonly subagentIdleTimers;
59
+ /**
60
+ * Effective idle window per subagent (spawn-time `idleTimeoutMs` override
61
+ * or the Director-wide default; undefined = no window). Internal-task
62
+ * completion re-arms with THIS value, not the Director-wide default, so
63
+ * a subagent-configured window survives its first internal probe.
64
+ */
65
+ private readonly subagentIdleDelayMs;
59
66
  readonly sharedScratchpadPath: string | null;
60
67
  readonly maxSpawns: number;
61
68
  readonly maxSpawnDepth: number;
@@ -76,12 +76,15 @@ export interface ExploreCompanionOptions {
76
76
  /** Project mailbox the companion polls for explicit asks and acks them. */
77
77
  mailbox: Mailbox;
78
78
  /**
79
- * Leader session id used to filter out subagent events. The companion
80
- * subscribes to global events (tool.executed, error, session.agents_updated)
81
- * which fire for BOTH the leader and subagents. When set, any event whose
82
- * `sessionId` differs from this value is skipped. Events without a
83
- * `sessionId` field always pass through (backward compatibility). Pass a
84
- * lazy getter when the session id may change at runtime.
79
+ * Leader session id used to filter events down to this leader only. The
80
+ * companion subscribes to global events (tool.executed, error,
81
+ * session.agents_updated) which fire for BOTH the leader and subagents.
82
+ * Strict, fail-closed: an event passes only when its `sessionId` equals
83
+ * this value unstamped events are dropped (production emitters always
84
+ * stamp; an unstamped event is assumed to be a subagent's), and a
85
+ * transiently unresolved getter drops everything rather than probing on
86
+ * unattributed activity. Pass a lazy getter when the session id may
87
+ * change at runtime.
85
88
  */
86
89
  leaderSessionId: string | (() => string | undefined);
87
90
  /**