@adhdev/daemon-core 0.9.82-rc.442 → 0.9.82-rc.444

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.
@@ -34,6 +34,7 @@ export interface HighFamilyContext {
34
34
  /** Bound `DaemonCommandRouter.getCachedAggregateMeshStatus`. */
35
35
  getCachedAggregateMeshStatus: (meshId: string, mesh?: any, options?: {
36
36
  requireDirectPeerTruth?: boolean;
37
+ allowStalePending?: boolean;
37
38
  }) => any | null;
38
39
  /** Bound `DaemonCommandRouter.rememberAggregateMeshStatus`. */
39
40
  rememberAggregateMeshStatus: (meshId: string, snapshot: any, refreshReason: string) => any;
@@ -49,6 +50,9 @@ export interface HighFamilyContext {
49
50
  snapshot: any;
50
51
  queueRevision: string;
51
52
  }>;
53
+ /** Meshes with a background SWR freshen already in flight — coalesces the
54
+ * async refresh a stale-serve interactive open kicks off. */
55
+ swrRefreshInFlight: Set<string>;
52
56
  /** Router's running-refine-job table (surfaced as activeRefineJobs in mesh_status). */
53
57
  runningRefineJobs: Map<string, MeshRefineJobHandle>;
54
58
  /** Router's inline-mesh cache (launch_mesh_coordinator caches cloud inline mesh). */
@@ -116,6 +116,10 @@ export declare class DaemonCommandRouter {
116
116
  * Spans separate mesh_status/get_mesh calls so the dashboard auto-retry
117
117
  * loop cannot storm a slow peer with back-to-back refreshUpstream probes. */
118
118
  private meshGitProbeCache;
119
+ /** Meshes with a background SWR freshen (async mesh_status refresh) already in
120
+ * flight — so a burst of interactive detail-opens serves the cached snapshot
121
+ * and coalesces onto ONE background refresh instead of storming the peers. */
122
+ private swrRefreshInFlight;
119
123
  /** In-memory async Refinery jobs keyed by meshId:nodeId to reject/return duplicate in-flight requests. */
120
124
  private runningRefineJobs;
121
125
  /** Terminal async Refinery jobs preserve a clear answer after the worktree node has been removed. */
package/dist/index.d.ts CHANGED
@@ -49,7 +49,7 @@ export { MESH_WORKTREE_BOOTSTRAP_CONFIG_LOCATIONS, MESH_WORKTREE_BOOTSTRAP_CONFI
49
49
  export type { MeshRefineValidationCategory, MeshRefineValidationCommandPlan, MeshRefineValidationPlan, RepoMeshRefineConfig, RepoMeshRefineValidationCommandConfig, } from './mesh/refine-config.js';
50
50
  export { loadRepoSettings } from './config/repo-settings.js';
51
51
  export type { RepoSettings, LoadRepoSettingsOptions } from './config/repo-settings.js';
52
- export { appendLedgerEntry, appendRemoteLedgerEntries, buildTaskCompletionEvidence, normalizeMeshWorkerResult, readLedgerEntries, readLedgerSlice, readLedgerSliceFromStore, getLedgerSummary, getLedgerDir, getSessionRecoveryContext, MAX_LEDGER_SLICE_LIMIT } from './mesh/mesh-ledger.js';
52
+ export { appendLedgerEntry, appendRemoteLedgerEntries, buildTaskCompletionEvidence, normalizeMeshWorkerResult, readLedgerEntries, readLedgerSlice, readLedgerSliceFromStore, getLedgerSummary, getLedgerDir, getSessionRecoveryContext, MAX_LEDGER_SLICE_LIMIT, tombstoneOperatingNote, readOperatingNotes, pruneOperatingNotes, isOperatingNoteTombstoned, OPERATING_NOTE_KIND, OPERATING_NOTE_TOMBSTONE_KIND, OPERATING_NOTE_DEDUPE_WINDOW, OPERATING_NOTE_KEEP_LATEST } from './mesh/mesh-ledger.js';
53
53
  export type { AppendRemoteLedgerResult, MeshLedgerEntry, MeshLedgerKind, MeshLedgerSlice, MeshLedgerSummary, ReadLedgerOptions, ReadLedgerSliceOptions, SessionRecoveryContext, MeshTaskCompletionEvidence, MeshWorkerResultArtifact, MeshProcessArtifact, MeshValidationResultArtifact } from './mesh/mesh-ledger.js';
54
54
  export { fastForwardMeshNode } from './mesh/mesh-fast-forward.js';
55
55
  export type { MeshFastForwardNodeArgs, MeshFastForwardPlannedStep, MeshFastForwardResult } from './mesh/mesh-fast-forward.js';