@adhdev/daemon-core 1.0.21-rc.8 → 1.0.23-rc.1
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.js +42 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -11
- package/dist/index.mjs.map +1 -1
- package/dist/providers/sdk/v1/builders/cli/detect-status.d.ts +19 -7
- package/package.json +3 -3
- package/src/commands/high-family/mesh-coordinator-launch.ts +31 -2
- package/src/providers/sdk/v1/builders/cli/detect-status.ts +28 -8
- package/src/providers/sdk/v1/builders/cli/parse-approval.ts +15 -5
- package/src/providers/types/interactive-prompt.ts +8 -1
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.
|
|
797
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
794
|
+
const commit = readInjected(true ? "946a0b8bd9b5f44e063993f6f313a33847e1b3f9" : void 0) ?? "unknown";
|
|
795
|
+
const commitShort = readInjected(true ? "946a0b8b" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
796
|
+
const version = readInjected(true ? "1.0.23-rc.1" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
797
|
+
const builtAt = readInjected(true ? "2026-07-24T07:05:19.963Z" : void 0);
|
|
798
798
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
799
799
|
return cached;
|
|
800
800
|
}
|
|
@@ -27587,6 +27587,7 @@ function extractButtonLabels(spec, text) {
|
|
|
27587
27587
|
return out;
|
|
27588
27588
|
}
|
|
27589
27589
|
function buttonBlockApprovalCue(spec, text) {
|
|
27590
|
+
if (/Enter to select/i.test(text) && /Esc to cancel/i.test(text)) return false;
|
|
27590
27591
|
const labels = extractButtonLabels(spec, text);
|
|
27591
27592
|
if (labels.length < 2) return false;
|
|
27592
27593
|
if (pickApprovalButton(labels).index < 0) return false;
|
|
@@ -27596,7 +27597,7 @@ function isAskUserQuestionPickerSignature(text) {
|
|
|
27596
27597
|
if (!text) return false;
|
|
27597
27598
|
const hasSelectFooter = /Enter to select/i.test(text) && /Esc to cancel/i.test(text);
|
|
27598
27599
|
if (!hasSelectFooter) return false;
|
|
27599
|
-
return
|
|
27600
|
+
return PICKER_OPTION_ROW.test(text);
|
|
27600
27601
|
}
|
|
27601
27602
|
function modalMatches(spec, input) {
|
|
27602
27603
|
const text = input.screenText ?? "";
|
|
@@ -27724,12 +27725,13 @@ function buildDetectStatusFromTui(spec) {
|
|
|
27724
27725
|
return null;
|
|
27725
27726
|
};
|
|
27726
27727
|
}
|
|
27727
|
-
var DEFAULT_ORDER;
|
|
27728
|
+
var PICKER_OPTION_ROW, DEFAULT_ORDER;
|
|
27728
27729
|
var init_detect_status = __esm({
|
|
27729
27730
|
"src/providers/sdk/v1/builders/cli/detect-status.ts"() {
|
|
27730
27731
|
"use strict";
|
|
27731
27732
|
init_visible_region();
|
|
27732
27733
|
init_approval_utils();
|
|
27734
|
+
PICKER_OPTION_ROW = /^\s*(?:[❯›>]\s*)?(?:\[[ xX]\]|[☐☒◻◼]\s*)?\d+[.)]\s+\S/m;
|
|
27733
27735
|
DEFAULT_ORDER = ["spinner", "modal", "settled-prompt"];
|
|
27734
27736
|
}
|
|
27735
27737
|
});
|
|
@@ -27746,7 +27748,7 @@ function isAskUserQuestionPickerSignature2(text) {
|
|
|
27746
27748
|
if (!text) return false;
|
|
27747
27749
|
const hasSelectFooter = /Enter to select/i.test(text) && /Esc to cancel/i.test(text);
|
|
27748
27750
|
if (!hasSelectFooter) return false;
|
|
27749
|
-
return
|
|
27751
|
+
return PICKER_OPTION_ROW2.test(text);
|
|
27750
27752
|
}
|
|
27751
27753
|
function findQuestionLineIndex(spec, lines) {
|
|
27752
27754
|
const primary = compile3(spec.questionPattern, spec.questionFlags ?? "i");
|
|
@@ -27888,12 +27890,13 @@ function buildParseApprovalFromTui(spec, visibleRegion) {
|
|
|
27888
27890
|
return { message, buttons };
|
|
27889
27891
|
};
|
|
27890
27892
|
}
|
|
27891
|
-
var SEPARATOR_RE;
|
|
27893
|
+
var SEPARATOR_RE, PICKER_OPTION_ROW2;
|
|
27892
27894
|
var init_parse_approval = __esm({
|
|
27893
27895
|
"src/providers/sdk/v1/builders/cli/parse-approval.ts"() {
|
|
27894
27896
|
"use strict";
|
|
27895
27897
|
init_visible_region();
|
|
27896
27898
|
SEPARATOR_RE = /^[─━═╌╍┄┅┈┉]{10,}\s*$/;
|
|
27899
|
+
PICKER_OPTION_ROW2 = /^\s*(?:[❯›>]\s*)?(?:\[[ xX]\]|[☐☒◻◼]\s*)?\d+[.)]\s+\S/m;
|
|
27897
27900
|
}
|
|
27898
27901
|
});
|
|
27899
27902
|
|
|
@@ -32806,7 +32809,6 @@ function readClaudeOptionDescription(lines, optionLineIndex) {
|
|
|
32806
32809
|
}
|
|
32807
32810
|
function parseClaudeHeaderlessInteractiveTuiQuestion(page, index) {
|
|
32808
32811
|
if (!isClaudeTuiSelectFooter(page.screenText)) return null;
|
|
32809
|
-
if (!/Type something\.?|Chat about this/i.test(page.screenText)) return null;
|
|
32810
32812
|
const lines = page.screenText.split(/\r?\n/);
|
|
32811
32813
|
let footerIndex = -1;
|
|
32812
32814
|
for (let i = lines.length - 1; i >= 0; i -= 1) {
|
|
@@ -62633,6 +62635,7 @@ init_coordinator_registry();
|
|
|
62633
62635
|
init_runtime_surface();
|
|
62634
62636
|
init_mesh_coordinator();
|
|
62635
62637
|
init_dist();
|
|
62638
|
+
init_repo_mesh_types();
|
|
62636
62639
|
var meshCoordinatorLaunchHandlers = {
|
|
62637
62640
|
launch_mesh_coordinator: async (ctx, args) => {
|
|
62638
62641
|
const meshId = typeof args?.meshId === "string" ? args.meshId.trim() : "";
|
|
@@ -62929,7 +62932,25 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
62929
62932
|
dir: workspace,
|
|
62930
62933
|
cliArgs: cliCmdArgs.length > 0 ? cliCmdArgs : void 0,
|
|
62931
62934
|
env: Object.keys(cliCmdEnv).length > 0 ? cliCmdEnv : void 0,
|
|
62932
|
-
settings: {
|
|
62935
|
+
settings: {
|
|
62936
|
+
meshCoordinatorFor: meshId,
|
|
62937
|
+
// AUTOAPPROVE-COORD: the coordinator is a mesh session too, so it
|
|
62938
|
+
// must inherit the workspace's declarative auto-approve MODE
|
|
62939
|
+
// (.adhdev/mesh.json providerDefaults.autoApproveModes) exactly like
|
|
62940
|
+
// a delegated worker does at dispatch. Reuse the already-loaded repo
|
|
62941
|
+
// config so the launch args carry --permission-mode. NB: we deliberately
|
|
62942
|
+
// do NOT stamp launchedByCoordinator here — that flag is a WORKER-only
|
|
62943
|
+
// dangerous-mode downgrade signal (auto-approve-modes.ts); the coordinator
|
|
62944
|
+
// is the owner, not a worker. The dangerous gate is already applied inside
|
|
62945
|
+
// delegatedWorkerAutoApproveSettings via mesh/node policy.
|
|
62946
|
+
...delegatedWorkerAutoApproveSettings(
|
|
62947
|
+
effectiveMesh?.policy,
|
|
62948
|
+
coordinatorNode?.policy,
|
|
62949
|
+
providerMeta,
|
|
62950
|
+
repoMeshConfigLoad.config,
|
|
62951
|
+
cliType
|
|
62952
|
+
)
|
|
62953
|
+
},
|
|
62933
62954
|
...initialModel ? { initialModel } : {},
|
|
62934
62955
|
...initialThinkingLevel ? { initialThinkingLevel } : {}
|
|
62935
62956
|
});
|
|
@@ -63115,7 +63136,17 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
63115
63136
|
cliArgs: cliArgs.length > 0 ? cliArgs : void 0,
|
|
63116
63137
|
env: Object.keys(launchEnv).length > 0 ? launchEnv : void 0,
|
|
63117
63138
|
settings: {
|
|
63118
|
-
meshCoordinatorFor: meshId
|
|
63139
|
+
meshCoordinatorFor: meshId,
|
|
63140
|
+
// AUTOAPPROVE-COORD: inherit the workspace declarative auto-approve MODE
|
|
63141
|
+
// for the coordinator session (see the cli_command branch for the full
|
|
63142
|
+
// rationale). No launchedByCoordinator stamp — the coordinator is the owner.
|
|
63143
|
+
...delegatedWorkerAutoApproveSettings(
|
|
63144
|
+
effectiveMesh?.policy,
|
|
63145
|
+
coordinatorNode?.policy,
|
|
63146
|
+
providerMeta,
|
|
63147
|
+
repoMeshConfigLoad.config,
|
|
63148
|
+
cliType
|
|
63149
|
+
)
|
|
63119
63150
|
},
|
|
63120
63151
|
...initialModel ? { initialModel } : {},
|
|
63121
63152
|
...initialThinkingLevel ? { initialThinkingLevel } : {}
|