@adhdev/daemon-core 0.9.82-rc.352 → 0.9.82-rc.353

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.
@@ -360,6 +360,18 @@ export declare class DaemonCommandRouter {
360
360
  private applyInlineMeshNodeTombstones;
361
361
  private normalizeMeshSessionCleanupMode;
362
362
  private sessionMatchesMeshNode;
363
+ /**
364
+ * Best-effort recursive removal of a managed worktree directory.
365
+ *
366
+ * The git-registry de-registration is the safety-critical step of worktree
367
+ * teardown; a leftover directory must never gate dropping the node from the
368
+ * mesh. On Windows, `fs.rmSync` can throw EINVAL/EPERM/EBUSY on submodule
369
+ * gitlink (`.git`) files, long paths, junctions, or while a just-stopped
370
+ * delegate session is still releasing a handle/cwd on the directory. This
371
+ * helper absorbs those errors (never throws), with bounded retries + backoff
372
+ * to give handles time to release, and reports whether residue remains.
373
+ */
374
+ private bestEffortRemoveWorktreeDir;
363
375
  private cleanupLocalWorktreeNode;
364
376
  private getWorktreeForceCleanupConvergence;
365
377
  private isCompletedHostedSession;
package/dist/index.d.ts CHANGED
@@ -30,6 +30,7 @@ export { getSavedProviderSessions, upsertSavedProviderSession } from './config/s
30
30
  export type { SavedProviderSessionEntry } from './config/saved-sessions.js';
31
31
  export { listMeshes, getMesh, getMeshByRepo, createMesh, updateMesh, deleteMesh, addNode, removeNode, updateNode, normalizeRepoIdentity, } from './config/mesh-config.js';
32
32
  export type { CreateMeshOptions, UpdateMeshOptions, AddNodeOptions } from './config/mesh-config.js';
33
+ export { expandDaemonIdForms, daemonIdsEquivalent, machineCoreFromDaemonId } from '@adhdev/mesh-shared';
33
34
  export { buildCoordinatorSystemPrompt } from './mesh/coordinator-prompt.js';
34
35
  export { upsertMeshMission, getMeshMissions, getMeshMission, summarizeMissionTasks, summarizeMeshMission, getActiveMeshMissionSummaries, getMeshStatusMissionSummaries, getMeshStatusMissionsCompact, listMeshMissionSummaries, buildMissionPromptSection, GOAL_PREVIEW_MAX, COMPACT_STATUS_GOAL_PREVIEW_MAX, MESH_MISSION_STATUSES } from './mesh/mesh-missions.js';
35
36
  export type { MeshMissionRecord, MeshMissionStatus, MeshMissionSummary, MeshMissionSlimSummary, MeshMissionTaskAggregate, MeshStatusMissionsCompact, MeshStatusMissionsHistoryFold } from './mesh/mesh-missions.js';