@adhdev/daemon-standalone 1.0.22 → 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 CHANGED
@@ -33262,10 +33262,10 @@ var require_dist3 = __commonJS({
33262
33262
  }
33263
33263
  function getDaemonBuildInfo() {
33264
33264
  if (cached2) return cached2;
33265
- const commit = readInjected(true ? "0137c2be381f72d9d722a304354091ec8e20a074" : void 0) ?? "unknown";
33266
- const commitShort = readInjected(true ? "0137c2b" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
33267
- const version2 = readInjected(true ? "1.0.22" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
33268
- const builtAt = readInjected(true ? "2026-07-24T04:54:14.055Z" : void 0);
33265
+ const commit = readInjected(true ? "946a0b8bd9b5f44e063993f6f313a33847e1b3f9" : void 0) ?? "unknown";
33266
+ const commitShort = readInjected(true ? "946a0b8b" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
33267
+ const version2 = readInjected(true ? "1.0.23-rc.1" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
33268
+ const builtAt = readInjected(true ? "2026-07-24T07:06:06.997Z" : void 0);
33269
33269
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
33270
33270
  return cached2;
33271
33271
  }
@@ -60249,6 +60249,7 @@ ${cleanBody}`;
60249
60249
  return out;
60250
60250
  }
60251
60251
  function buttonBlockApprovalCue(spec, text) {
60252
+ if (/Enter to select/i.test(text) && /Esc to cancel/i.test(text)) return false;
60252
60253
  const labels = extractButtonLabels(spec, text);
60253
60254
  if (labels.length < 2) return false;
60254
60255
  if (pickApprovalButton(labels).index < 0) return false;
@@ -60258,7 +60259,7 @@ ${cleanBody}`;
60258
60259
  if (!text) return false;
60259
60260
  const hasSelectFooter = /Enter to select/i.test(text) && /Esc to cancel/i.test(text);
60260
60261
  if (!hasSelectFooter) return false;
60261
- return /Type something\.?|Chat about this/i.test(text);
60262
+ return PICKER_OPTION_ROW.test(text);
60262
60263
  }
60263
60264
  function modalMatches(spec, input) {
60264
60265
  const text = input.screenText ?? "";
@@ -60386,12 +60387,14 @@ ${cleanBody}`;
60386
60387
  return null;
60387
60388
  };
60388
60389
  }
60390
+ var PICKER_OPTION_ROW;
60389
60391
  var DEFAULT_ORDER;
60390
60392
  var init_detect_status = __esm2({
60391
60393
  "src/providers/sdk/v1/builders/cli/detect-status.ts"() {
60392
60394
  "use strict";
60393
60395
  init_visible_region();
60394
60396
  init_approval_utils();
60397
+ PICKER_OPTION_ROW = /^\s*(?:[❯›>]\s*)?(?:\[[ xX]\]|[☐☒◻◼]\s*)?\d+[.)]\s+\S/m;
60395
60398
  DEFAULT_ORDER = ["spinner", "modal", "settled-prompt"];
60396
60399
  }
60397
60400
  });
@@ -60406,7 +60409,7 @@ ${cleanBody}`;
60406
60409
  if (!text) return false;
60407
60410
  const hasSelectFooter = /Enter to select/i.test(text) && /Esc to cancel/i.test(text);
60408
60411
  if (!hasSelectFooter) return false;
60409
- return /Type something\.?|Chat about this/i.test(text);
60412
+ return PICKER_OPTION_ROW2.test(text);
60410
60413
  }
60411
60414
  function findQuestionLineIndex(spec, lines) {
60412
60415
  const primary = compile3(spec.questionPattern, spec.questionFlags ?? "i");
@@ -60549,11 +60552,13 @@ ${cleanBody}`;
60549
60552
  };
60550
60553
  }
60551
60554
  var SEPARATOR_RE;
60555
+ var PICKER_OPTION_ROW2;
60552
60556
  var init_parse_approval = __esm2({
60553
60557
  "src/providers/sdk/v1/builders/cli/parse-approval.ts"() {
60554
60558
  "use strict";
60555
60559
  init_visible_region();
60556
60560
  SEPARATOR_RE = /^[─━═╌╍┄┅┈┉]{10,}\s*$/;
60561
+ PICKER_OPTION_ROW2 = /^\s*(?:[❯›>]\s*)?(?:\[[ xX]\]|[☐☒◻◼]\s*)?\d+[.)]\s+\S/m;
60557
60562
  }
60558
60563
  });
60559
60564
  function stripAnsi2(text) {
@@ -65482,7 +65487,6 @@ ${lastSnapshot}`;
65482
65487
  }
65483
65488
  function parseClaudeHeaderlessInteractiveTuiQuestion(page, index) {
65484
65489
  if (!isClaudeTuiSelectFooter(page.screenText)) return null;
65485
- if (!/Type something\.?|Chat about this/i.test(page.screenText)) return null;
65486
65490
  const lines = page.screenText.split(/\r?\n/);
65487
65491
  let footerIndex = -1;
65488
65492
  for (let i = lines.length - 1; i >= 0; i -= 1) {
@@ -95035,6 +95039,7 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
95035
95039
  init_runtime_surface();
95036
95040
  init_mesh_coordinator();
95037
95041
  init_dist();
95042
+ init_repo_mesh_types();
95038
95043
  var meshCoordinatorLaunchHandlers = {
95039
95044
  launch_mesh_coordinator: async (ctx, args) => {
95040
95045
  const meshId = typeof args?.meshId === "string" ? args.meshId.trim() : "";
@@ -95331,7 +95336,25 @@ ${ptyResult.output.slice(-2e3)}`);
95331
95336
  dir: workspace,
95332
95337
  cliArgs: cliCmdArgs.length > 0 ? cliCmdArgs : void 0,
95333
95338
  env: Object.keys(cliCmdEnv).length > 0 ? cliCmdEnv : void 0,
95334
- settings: { meshCoordinatorFor: meshId },
95339
+ settings: {
95340
+ meshCoordinatorFor: meshId,
95341
+ // AUTOAPPROVE-COORD: the coordinator is a mesh session too, so it
95342
+ // must inherit the workspace's declarative auto-approve MODE
95343
+ // (.adhdev/mesh.json providerDefaults.autoApproveModes) exactly like
95344
+ // a delegated worker does at dispatch. Reuse the already-loaded repo
95345
+ // config so the launch args carry --permission-mode. NB: we deliberately
95346
+ // do NOT stamp launchedByCoordinator here — that flag is a WORKER-only
95347
+ // dangerous-mode downgrade signal (auto-approve-modes.ts); the coordinator
95348
+ // is the owner, not a worker. The dangerous gate is already applied inside
95349
+ // delegatedWorkerAutoApproveSettings via mesh/node policy.
95350
+ ...delegatedWorkerAutoApproveSettings(
95351
+ effectiveMesh?.policy,
95352
+ coordinatorNode?.policy,
95353
+ providerMeta,
95354
+ repoMeshConfigLoad.config,
95355
+ cliType
95356
+ )
95357
+ },
95335
95358
  ...initialModel ? { initialModel } : {},
95336
95359
  ...initialThinkingLevel ? { initialThinkingLevel } : {}
95337
95360
  });
@@ -95517,7 +95540,17 @@ ${ptyResult.output.slice(-2e3)}`);
95517
95540
  cliArgs: cliArgs.length > 0 ? cliArgs : void 0,
95518
95541
  env: Object.keys(launchEnv).length > 0 ? launchEnv : void 0,
95519
95542
  settings: {
95520
- meshCoordinatorFor: meshId
95543
+ meshCoordinatorFor: meshId,
95544
+ // AUTOAPPROVE-COORD: inherit the workspace declarative auto-approve MODE
95545
+ // for the coordinator session (see the cli_command branch for the full
95546
+ // rationale). No launchedByCoordinator stamp — the coordinator is the owner.
95547
+ ...delegatedWorkerAutoApproveSettings(
95548
+ effectiveMesh?.policy,
95549
+ coordinatorNode?.policy,
95550
+ providerMeta,
95551
+ repoMeshConfigLoad.config,
95552
+ cliType
95553
+ )
95521
95554
  },
95522
95555
  ...initialModel ? { initialModel } : {},
95523
95556
  ...initialThinkingLevel ? { initialThinkingLevel } : {}