@adhdev/daemon-core 0.9.77-rc.44 → 0.9.77-rc.45

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.
@@ -91,6 +91,7 @@ export declare class DaemonCommandRouter {
91
91
  private normalizeMeshSessionCleanupMode;
92
92
  private sessionMatchesMeshNode;
93
93
  private cleanupLocalWorktreeNode;
94
+ private getWorktreeForceCleanupConvergence;
94
95
  private isCompletedHostedSession;
95
96
  private cleanupMeshSessions;
96
97
  private traceSessionHostAction;
@@ -34,10 +34,19 @@ export interface WorktreeEntry {
34
34
  export interface WorktreeRemoveOptions {
35
35
  /** Refuse to remove a worktree with uncommitted or untracked changes. */
36
36
  requireClean?: boolean;
37
+ /**
38
+ * If normal removal fails with Git's submodule-worktree guard, retry with
39
+ * `git worktree remove --force`. Callers must perform their own
40
+ * higher-level managed-path/convergence checks before enabling this.
41
+ */
42
+ allowSubmoduleForceFallback?: boolean;
37
43
  }
38
44
  export interface WorktreeRemoveResult {
39
45
  success: true;
40
46
  removedPath: string;
47
+ fallback?: 'git_worktree_remove_force_submodule';
48
+ forced?: boolean;
49
+ reason?: 'working_trees_containing_submodules';
41
50
  }
42
51
  /**
43
52
  * Resolve the target directory for a new worktree.
package/dist/index.d.ts CHANGED
@@ -36,6 +36,8 @@ export type { MeshLedgerEntry, MeshLedgerKind, MeshLedgerSummary, ReadLedgerOpti
36
36
  export { enqueueTask, getQueue, claimNextTask, updateTaskStatus, updateSessionTaskStatus, cancelTask, requeueTask, getMeshQueueStats } from './mesh/mesh-work-queue.js';
37
37
  export type { MeshWorkQueueEntry, MeshTaskStatus, MeshWorkQueueStats } from './mesh/mesh-work-queue.js';
38
38
  export { triggerMeshQueue } from './mesh/mesh-events.js';
39
+ export { P2pRelayFailureError, buildP2pRelayFailurePayload, classifyP2pRelayFailure, isP2pRelayTransportFailure, } from './mesh/p2p-relay-failure.js';
40
+ export type { P2pRelayFailureClassification, P2pRelayFailureCode, P2pRelayFailureContext, P2pRelayFailurePayload, } from './mesh/p2p-relay-failure.js';
39
41
  export { loadState, saveState, resetState } from './config/state-store.js';
40
42
  export type { DaemonState } from './config/state-store.js';
41
43
  export { detectIDEs } from './detection/ide-detector.js';