@adhdev/daemon-core 0.5.60 → 0.5.61

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
@@ -4955,6 +4955,8 @@ var DaemonCommandHandler = class {
4955
4955
  }
4956
4956
  async handleRefreshScripts(_args) {
4957
4957
  if (this._ctx.providerLoader) {
4958
+ await this._ctx.providerLoader.fetchLatest().catch(() => {
4959
+ });
4958
4960
  this._ctx.providerLoader.reload();
4959
4961
  return { success: true };
4960
4962
  }
@@ -6999,13 +7001,12 @@ var FALLBACK_APPROVAL = [
6999
7001
  /Always\s*allow/i,
7000
7002
  /\(y\/n\)/i,
7001
7003
  /\[Y\/n\]/i,
7002
- /Run\s*this\s*command/i,
7003
- /Allow\s*tool/i,
7004
- // Claude Code v2 approval
7004
+ /Run\s+\w+\s+command/i,
7005
+ // "Run bash command" etc — requires surrounding words to avoid false matches
7005
7006
  /Yes,?\s*don'?t\s*ask/i,
7006
7007
  // "Yes, don't ask again" (Claude Code)
7007
- /Deny/i
7008
- // Deny button presence = approval dialog
7008
+ /\bDeny\b/i
7009
+ // Word-boundary match avoids "allow & deny" in /permissions menu text
7009
7010
  ];
7010
7011
  function defaultCleanOutput(raw, _lastUserInput) {
7011
7012
  return stripAnsi(raw).trim();
@@ -7034,7 +7035,7 @@ var ProviderCliAdapter = class {
7034
7035
  this.timeouts = {
7035
7036
  ptyFlush: t.ptyFlush ?? 50,
7036
7037
  dialogAccept: t.dialogAccept ?? 300,
7037
- approvalCooldown: t.approvalCooldown ?? 500,
7038
+ approvalCooldown: t.approvalCooldown ?? 3e3,
7038
7039
  generatingIdle: t.generatingIdle ?? 6e3,
7039
7040
  idleFinish: t.idleFinish ?? 5e3,
7040
7041
  maxResponse: t.maxResponse ?? 3e5,