@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.mjs
CHANGED
|
@@ -786,10 +786,10 @@ function readInjected(value) {
|
|
|
786
786
|
}
|
|
787
787
|
function getDaemonBuildInfo() {
|
|
788
788
|
if (cached) return cached;
|
|
789
|
-
const commit = readInjected(true ? "
|
|
790
|
-
const commitShort = readInjected(true ? "
|
|
791
|
-
const version = readInjected(true ? "1.0.
|
|
792
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
789
|
+
const commit = readInjected(true ? "946a0b8bd9b5f44e063993f6f313a33847e1b3f9" : void 0) ?? "unknown";
|
|
790
|
+
const commitShort = readInjected(true ? "946a0b8b" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
791
|
+
const version = readInjected(true ? "1.0.23-rc.1" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
792
|
+
const builtAt = readInjected(true ? "2026-07-24T07:05:19.963Z" : void 0);
|
|
793
793
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
794
794
|
return cached;
|
|
795
795
|
}
|
|
@@ -27594,6 +27594,7 @@ function extractButtonLabels(spec, text) {
|
|
|
27594
27594
|
return out;
|
|
27595
27595
|
}
|
|
27596
27596
|
function buttonBlockApprovalCue(spec, text) {
|
|
27597
|
+
if (/Enter to select/i.test(text) && /Esc to cancel/i.test(text)) return false;
|
|
27597
27598
|
const labels = extractButtonLabels(spec, text);
|
|
27598
27599
|
if (labels.length < 2) return false;
|
|
27599
27600
|
if (pickApprovalButton(labels).index < 0) return false;
|
|
@@ -27603,7 +27604,7 @@ function isAskUserQuestionPickerSignature(text) {
|
|
|
27603
27604
|
if (!text) return false;
|
|
27604
27605
|
const hasSelectFooter = /Enter to select/i.test(text) && /Esc to cancel/i.test(text);
|
|
27605
27606
|
if (!hasSelectFooter) return false;
|
|
27606
|
-
return
|
|
27607
|
+
return PICKER_OPTION_ROW.test(text);
|
|
27607
27608
|
}
|
|
27608
27609
|
function modalMatches(spec, input) {
|
|
27609
27610
|
const text = input.screenText ?? "";
|
|
@@ -27731,12 +27732,13 @@ function buildDetectStatusFromTui(spec) {
|
|
|
27731
27732
|
return null;
|
|
27732
27733
|
};
|
|
27733
27734
|
}
|
|
27734
|
-
var DEFAULT_ORDER;
|
|
27735
|
+
var PICKER_OPTION_ROW, DEFAULT_ORDER;
|
|
27735
27736
|
var init_detect_status = __esm({
|
|
27736
27737
|
"src/providers/sdk/v1/builders/cli/detect-status.ts"() {
|
|
27737
27738
|
"use strict";
|
|
27738
27739
|
init_visible_region();
|
|
27739
27740
|
init_approval_utils();
|
|
27741
|
+
PICKER_OPTION_ROW = /^\s*(?:[❯›>]\s*)?(?:\[[ xX]\]|[☐☒◻◼]\s*)?\d+[.)]\s+\S/m;
|
|
27740
27742
|
DEFAULT_ORDER = ["spinner", "modal", "settled-prompt"];
|
|
27741
27743
|
}
|
|
27742
27744
|
});
|
|
@@ -27753,7 +27755,7 @@ function isAskUserQuestionPickerSignature2(text) {
|
|
|
27753
27755
|
if (!text) return false;
|
|
27754
27756
|
const hasSelectFooter = /Enter to select/i.test(text) && /Esc to cancel/i.test(text);
|
|
27755
27757
|
if (!hasSelectFooter) return false;
|
|
27756
|
-
return
|
|
27758
|
+
return PICKER_OPTION_ROW2.test(text);
|
|
27757
27759
|
}
|
|
27758
27760
|
function findQuestionLineIndex(spec, lines) {
|
|
27759
27761
|
const primary = compile3(spec.questionPattern, spec.questionFlags ?? "i");
|
|
@@ -27895,12 +27897,13 @@ function buildParseApprovalFromTui(spec, visibleRegion) {
|
|
|
27895
27897
|
return { message, buttons };
|
|
27896
27898
|
};
|
|
27897
27899
|
}
|
|
27898
|
-
var SEPARATOR_RE;
|
|
27900
|
+
var SEPARATOR_RE, PICKER_OPTION_ROW2;
|
|
27899
27901
|
var init_parse_approval = __esm({
|
|
27900
27902
|
"src/providers/sdk/v1/builders/cli/parse-approval.ts"() {
|
|
27901
27903
|
"use strict";
|
|
27902
27904
|
init_visible_region();
|
|
27903
27905
|
SEPARATOR_RE = /^[─━═╌╍┄┅┈┉]{10,}\s*$/;
|
|
27906
|
+
PICKER_OPTION_ROW2 = /^\s*(?:[❯›>]\s*)?(?:\[[ xX]\]|[☐☒◻◼]\s*)?\d+[.)]\s+\S/m;
|
|
27904
27907
|
}
|
|
27905
27908
|
});
|
|
27906
27909
|
|
|
@@ -32368,7 +32371,6 @@ function readClaudeOptionDescription(lines, optionLineIndex) {
|
|
|
32368
32371
|
}
|
|
32369
32372
|
function parseClaudeHeaderlessInteractiveTuiQuestion(page, index) {
|
|
32370
32373
|
if (!isClaudeTuiSelectFooter(page.screenText)) return null;
|
|
32371
|
-
if (!/Type something\.?|Chat about this/i.test(page.screenText)) return null;
|
|
32372
32374
|
const lines = page.screenText.split(/\r?\n/);
|
|
32373
32375
|
let footerIndex = -1;
|
|
32374
32376
|
for (let i = lines.length - 1; i >= 0; i -= 1) {
|
|
@@ -62198,6 +62200,7 @@ init_coordinator_registry();
|
|
|
62198
62200
|
init_runtime_surface();
|
|
62199
62201
|
init_mesh_coordinator();
|
|
62200
62202
|
init_dist();
|
|
62203
|
+
init_repo_mesh_types();
|
|
62201
62204
|
import { join as pathJoin } from "path";
|
|
62202
62205
|
import * as fs31 from "fs";
|
|
62203
62206
|
var meshCoordinatorLaunchHandlers = {
|
|
@@ -62496,7 +62499,25 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
62496
62499
|
dir: workspace,
|
|
62497
62500
|
cliArgs: cliCmdArgs.length > 0 ? cliCmdArgs : void 0,
|
|
62498
62501
|
env: Object.keys(cliCmdEnv).length > 0 ? cliCmdEnv : void 0,
|
|
62499
|
-
settings: {
|
|
62502
|
+
settings: {
|
|
62503
|
+
meshCoordinatorFor: meshId,
|
|
62504
|
+
// AUTOAPPROVE-COORD: the coordinator is a mesh session too, so it
|
|
62505
|
+
// must inherit the workspace's declarative auto-approve MODE
|
|
62506
|
+
// (.adhdev/mesh.json providerDefaults.autoApproveModes) exactly like
|
|
62507
|
+
// a delegated worker does at dispatch. Reuse the already-loaded repo
|
|
62508
|
+
// config so the launch args carry --permission-mode. NB: we deliberately
|
|
62509
|
+
// do NOT stamp launchedByCoordinator here — that flag is a WORKER-only
|
|
62510
|
+
// dangerous-mode downgrade signal (auto-approve-modes.ts); the coordinator
|
|
62511
|
+
// is the owner, not a worker. The dangerous gate is already applied inside
|
|
62512
|
+
// delegatedWorkerAutoApproveSettings via mesh/node policy.
|
|
62513
|
+
...delegatedWorkerAutoApproveSettings(
|
|
62514
|
+
effectiveMesh?.policy,
|
|
62515
|
+
coordinatorNode?.policy,
|
|
62516
|
+
providerMeta,
|
|
62517
|
+
repoMeshConfigLoad.config,
|
|
62518
|
+
cliType
|
|
62519
|
+
)
|
|
62520
|
+
},
|
|
62500
62521
|
...initialModel ? { initialModel } : {},
|
|
62501
62522
|
...initialThinkingLevel ? { initialThinkingLevel } : {}
|
|
62502
62523
|
});
|
|
@@ -62682,7 +62703,17 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
62682
62703
|
cliArgs: cliArgs.length > 0 ? cliArgs : void 0,
|
|
62683
62704
|
env: Object.keys(launchEnv).length > 0 ? launchEnv : void 0,
|
|
62684
62705
|
settings: {
|
|
62685
|
-
meshCoordinatorFor: meshId
|
|
62706
|
+
meshCoordinatorFor: meshId,
|
|
62707
|
+
// AUTOAPPROVE-COORD: inherit the workspace declarative auto-approve MODE
|
|
62708
|
+
// for the coordinator session (see the cli_command branch for the full
|
|
62709
|
+
// rationale). No launchedByCoordinator stamp — the coordinator is the owner.
|
|
62710
|
+
...delegatedWorkerAutoApproveSettings(
|
|
62711
|
+
effectiveMesh?.policy,
|
|
62712
|
+
coordinatorNode?.policy,
|
|
62713
|
+
providerMeta,
|
|
62714
|
+
repoMeshConfigLoad.config,
|
|
62715
|
+
cliType
|
|
62716
|
+
)
|
|
62686
62717
|
},
|
|
62687
62718
|
...initialModel ? { initialModel } : {},
|
|
62688
62719
|
...initialThinkingLevel ? { initialThinkingLevel } : {}
|