@adhdev/daemon-core 1.0.28-rc.3 → 1.0.28-rc.5
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/index.d.ts +1 -1
- package/dist/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/commands/med-family/mesh-crud.ts +2 -0
- package/src/commands/upgrade-helper.ts +15 -1
- package/src/index.ts +1 -1
- package/src/mesh/coordinator-prompt.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export { loadState, saveState, resetState } from './config/state-store.js';
|
|
|
86
86
|
export type { DaemonState } from './config/state-store.js';
|
|
87
87
|
export { detectIDEs } from './detection/ide-detector.js';
|
|
88
88
|
export type { IDEInfo } from './detection/ide-detector.js';
|
|
89
|
-
export { detectCLIs } from './detection/cli-detector.js';
|
|
89
|
+
export { detectCLIs, detectCLI } from './detection/cli-detector.js';
|
|
90
90
|
export { getHostMemorySnapshot } from './system/host-memory.js';
|
|
91
91
|
export type { HostMemorySnapshot } from './system/host-memory.js';
|
|
92
92
|
export { classifyHotChatSessionsForSubscriptionFlush, detectNewlySettledCompletedSessions, DEFAULT_ACTIVE_CHAT_POLL_STATUSES, DEFAULT_CHAT_TAIL_RECENT_MESSAGE_GRACE_MS, } from './status/chat-tail-hot-sessions.js';
|
package/dist/index.js
CHANGED
|
@@ -791,10 +791,10 @@ function readInjected(value) {
|
|
|
791
791
|
}
|
|
792
792
|
function getDaemonBuildInfo() {
|
|
793
793
|
if (cached) return cached;
|
|
794
|
-
const commit = readInjected(true ? "
|
|
795
|
-
const commitShort = readInjected(true ? "
|
|
796
|
-
const version = readInjected(true ? "1.0.28-rc.
|
|
797
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
794
|
+
const commit = readInjected(true ? "a1cba539ff9abee6cdeb8e3331318daa1bf075a0" : void 0) ?? "unknown";
|
|
795
|
+
const commitShort = readInjected(true ? "a1cba539" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
796
|
+
const version = readInjected(true ? "1.0.28-rc.5" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
797
|
+
const builtAt = readInjected(true ? "2026-07-25T06:48:48.092Z" : void 0);
|
|
798
798
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
799
799
|
return cached;
|
|
800
800
|
}
|
|
@@ -3498,6 +3498,8 @@ var init_dist = __esm({
|
|
|
3498
3498
|
"mesh_approve",
|
|
3499
3499
|
"mesh_answer_question",
|
|
3500
3500
|
"mesh_list_pending_approvals",
|
|
3501
|
+
"mesh_create",
|
|
3502
|
+
"mesh_add_node",
|
|
3501
3503
|
"mesh_clone_node",
|
|
3502
3504
|
"mesh_remove_node",
|
|
3503
3505
|
"mesh_refine_node",
|
|
@@ -10685,6 +10687,8 @@ var init_coordinator_prompt = __esm({
|
|
|
10685
10687
|
| \`mesh_approve\` | Approve/reject a pending agent action (a yes/no tool-consent modal) |
|
|
10686
10688
|
| \`mesh_answer_question\` | Answer a delegated session's multi-choice QUESTION (AskUserQuestion / status awaiting_choice). NOT an approval \u2014 it offers labelled options (possibly multi-select or freeform). Pass the promptId from the agent:waiting_choice event + one answer per question (select by option label or 1-based index). Use this, never mesh_approve, for a question |
|
|
10687
10689
|
| \`mesh_list_pending_approvals\` | List every session across the mesh awaiting an approval decision (the approval inbox) \u2014 read-only; enumerate all blocked sessions at once, then drive a mesh_approve for each |
|
|
10690
|
+
| \`mesh_create\` | Bootstrap a NEW mesh for a repo (name + repo_remote_url/repo_identity); optionally register the current workspace as the first node. The from-scratch entry point when no mesh exists yet |
|
|
10691
|
+
| \`mesh_add_node\` | Register a workspace as a node in an existing mesh (workspace + optional read_only/provider_priority). The second bootstrap step after mesh_create; use mesh_clone_node instead to create a fresh git worktree |
|
|
10688
10692
|
| \`mesh_clone_node\` | Create a worktree node for isolated parallel branch work |
|
|
10689
10693
|
| \`mesh_refine_node\` | Validate and merge a completed worktree node back into its base branch |
|
|
10690
10694
|
| \`mesh_refine_batch\` | Batch Refinery: converge multiple sibling worktree nodes onto the base branch in one conflict-aware sequential pipeline |
|
|
@@ -32472,6 +32476,7 @@ __export(index_exports, {
|
|
|
32472
32476
|
deriveMeshReviewInboxItems: () => deriveMeshReviewInboxItems,
|
|
32473
32477
|
describeTaskDependencyState: () => describeTaskDependencyState,
|
|
32474
32478
|
detectAllVersions: () => detectAllVersions,
|
|
32479
|
+
detectCLI: () => detectCLI,
|
|
32475
32480
|
detectCLIs: () => detectCLIs,
|
|
32476
32481
|
detectClaudeAskUserQuestionPromptFromJson: () => detectClaudeAskUserQuestionPromptFromJson,
|
|
32477
32482
|
detectIDEs: () => detectIDEs,
|
|
@@ -45212,7 +45217,11 @@ async function runDaemonUpgradeHelper(payload) {
|
|
|
45212
45217
|
appendUpgradeLog(`Waiting for parent pid ${payload.parentPid} to exit`);
|
|
45213
45218
|
await waitForPidExit(payload.parentPid, 15e3);
|
|
45214
45219
|
}
|
|
45215
|
-
|
|
45220
|
+
if (process.platform === "win32") {
|
|
45221
|
+
await stopSessionHostProcesses(sessionHostAppName);
|
|
45222
|
+
} else {
|
|
45223
|
+
appendUpgradeLog("POSIX \u2014 session-host left running (survives upgrade; sessions rebind on next boot)");
|
|
45224
|
+
}
|
|
45216
45225
|
removeDaemonPidFile();
|
|
45217
45226
|
const instanceDir = resolveInstanceDir();
|
|
45218
45227
|
const windowsInstallerLayout = resolveWindowsInstallerLayout({
|
|
@@ -61448,6 +61457,7 @@ var meshCrudHandlers = {
|
|
|
61448
61457
|
const machineId = typeof args?.machineId === "string" && args.machineId.trim() ? args.machineId.trim() : void 0;
|
|
61449
61458
|
const repoRoot = typeof args?.repoRoot === "string" && args.repoRoot.trim() ? args.repoRoot.trim() : void 0;
|
|
61450
61459
|
const capabilities = Array.isArray(args?.capabilities) ? args.capabilities.map((t) => typeof t === "string" ? t.trim() : "").filter(Boolean) : void 0;
|
|
61460
|
+
const isLocalWorktree = args?.isLocalWorktree === true;
|
|
61451
61461
|
const node = addNode2(meshId, {
|
|
61452
61462
|
workspace,
|
|
61453
61463
|
...repoRoot ? { repoRoot } : {},
|
|
@@ -61455,6 +61465,7 @@ var meshCrudHandlers = {
|
|
|
61455
61465
|
...machineId ? { machineId } : {},
|
|
61456
61466
|
...policy ? { policy } : {},
|
|
61457
61467
|
...role ? { role } : {},
|
|
61468
|
+
...isLocalWorktree ? { isLocalWorktree: true } : {},
|
|
61458
61469
|
...capabilities && capabilities.length ? { capabilities } : {}
|
|
61459
61470
|
});
|
|
61460
61471
|
if (!node) return { success: false, error: "Mesh not found" };
|
|
@@ -77692,6 +77703,7 @@ var V1_CONTRACT_VERSION = "1.0.0";
|
|
|
77692
77703
|
deriveMeshReviewInboxItems,
|
|
77693
77704
|
describeTaskDependencyState,
|
|
77694
77705
|
detectAllVersions,
|
|
77706
|
+
detectCLI,
|
|
77695
77707
|
detectCLIs,
|
|
77696
77708
|
detectClaudeAskUserQuestionPromptFromJson,
|
|
77697
77709
|
detectIDEs,
|