@adhdev/daemon-core 0.9.82-rc.351 → 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.
- package/dist/commands/router.d.ts +12 -0
- package/dist/commands/upgrade-helper.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +815 -500
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +812 -500
- package/dist/index.mjs.map +1 -1
- package/dist/logging/logger.d.ts +1 -1
- package/dist/mesh/mesh-ledger.d.ts +1 -1
- package/dist/mesh/mesh-runtime-store.d.ts +9 -0
- package/dist/mesh/mesh-work-queue.d.ts +28 -0
- package/dist/providers/approval-utils.d.ts +7 -0
- package/dist/providers/cli-provider-instance.d.ts +15 -0
- package/dist/providers/sdk/v1/builders/cli/detect-status.d.ts +1 -0
- package/package.json +2 -2
- package/src/commands/cli-manager.ts +13 -4
- package/src/commands/router.ts +133 -33
- package/src/commands/upgrade-helper.ts +57 -14
- package/src/index.ts +5 -0
- package/src/logging/command-log.ts +7 -5
- package/src/logging/logger.ts +12 -6
- package/src/mesh/mesh-events-coordinator.ts +165 -84
- package/src/mesh/mesh-events-pending.ts +14 -15
- package/src/mesh/mesh-ledger.ts +1 -0
- package/src/mesh/mesh-reconcile-loop.ts +67 -7
- package/src/mesh/mesh-runtime-store.ts +17 -0
- package/src/mesh/mesh-work-queue.ts +89 -0
- package/src/providers/approval-utils.d.ts +1 -0
- package/src/providers/approval-utils.ts +10 -0
- package/src/providers/cli-provider-instance.ts +73 -19
- package/src/providers/sdk/v1/builders/cli/detect-status.ts +51 -0
|
@@ -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;
|
|
@@ -39,7 +39,7 @@ export declare function buildPinnedGlobalInstallCommand(options: {
|
|
|
39
39
|
}): PinnedGlobalInstallCommand;
|
|
40
40
|
export declare function getNpmExecOptions(platform?: NodeJS.Platform): NpmExecOptions;
|
|
41
41
|
export declare function execNpmCommandSync(args: string[], options?: ExecFileSyncOptions, surface?: Pick<CurrentGlobalInstallSurface, 'npmExecutable' | 'npmArgsPrefix' | 'execOptions'>): Buffer | string;
|
|
42
|
-
export declare function stopSessionHostProcesses(appName: string): void
|
|
42
|
+
export declare function stopSessionHostProcesses(appName: string): Promise<void>;
|
|
43
43
|
/**
|
|
44
44
|
* Best-effort removal of a leftover npm staging entry.
|
|
45
45
|
*
|
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';
|