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

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.
@@ -102,6 +102,21 @@ export declare class DaemonCommandHandler implements CommandHelpers {
102
102
  private logCommandStart;
103
103
  private logCommandEnd;
104
104
  setAgentStreamManager(manager: DaemonAgentStreamManager): void;
105
+ /**
106
+ * When a command in the manual-attendance set arrives for a session this
107
+ * daemon hosts, stamp the live instance so auto-approve holds while the user
108
+ * drives the session by hand. Provider-common: the signal is the command
109
+ * (foreground select_session / open_panel, controlbar invoke_provider_script
110
+ * / set_mode / change_model / set_thought_level, manual resolve_action,
111
+ * pty_input), never any CLI-specific modal text — so it works identically for
112
+ * every CLI/ACP provider. send_chat is deliberately excluded because a
113
+ * coordinator delegating a task to a worker also uses send_chat; counting it
114
+ * would wrongly suppress the worker's delegated auto-approve. For a remote
115
+ * mesh worker session the controlbar commands are forwarded to the owning
116
+ * worker daemon, which runs this same hook there, so attendance is recorded
117
+ * on the daemon that actually hosts the instance.
118
+ */
119
+ private noteManualAttendanceIfApplicable;
105
120
  handle(cmd: string, args: any): Promise<CommandResult>;
106
121
  private dispatch;
107
122
  /**
@@ -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';