@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.
- package/dist/commands/high-family/types.d.ts +4 -0
- package/dist/commands/router.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +551 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +543 -63
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-ledger.d.ts +39 -1
- package/dist/mesh/mesh-node-identity.d.ts +15 -0
- package/dist/mesh/mesh-reconcile-loop.d.ts +15 -1
- package/dist/providers/chat-message-normalization.d.ts +1 -0
- package/dist/providers/cli-provider-instance.d.ts +2 -0
- package/dist/providers/native-history/antigravity-cli-transcript.d.ts +28 -2
- package/package.json +2 -2
- package/src/commands/chat-commands-read.ts +41 -0
- package/src/commands/high-family/mesh-coordinator-launch.ts +4 -2
- package/src/commands/high-family/mesh-events.ts +11 -2
- package/src/commands/high-family/mesh-status.ts +102 -9
- package/src/commands/high-family/types.ts +5 -1
- package/src/commands/router.ts +19 -2
- package/src/index.ts +1 -1
- package/src/mesh/coordinator-prompt.ts +1 -0
- package/src/mesh/mesh-ledger.ts +185 -0
- package/src/mesh/mesh-node-identity.ts +106 -18
- package/src/mesh/mesh-reconcile-loop.ts +22 -1
- package/src/providers/chat-message-normalization.ts +1 -1
- package/src/providers/cli-provider-instance.ts +130 -17
- package/src/providers/native-history/antigravity-cli-transcript.ts +348 -25
- package/src/providers/native-history/dispatcher.ts +33 -14
|
@@ -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';
|