@adhdev/daemon-core 0.5.60 → 0.5.62
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/package.json
CHANGED
|
@@ -87,11 +87,8 @@
|
|
|
87
87
|
{ "source": "\\(y/n\\)", "flags": "i" },
|
|
88
88
|
{ "source": "\\[Y/n\\]", "flags": "i" },
|
|
89
89
|
{ "source": "Run\\s+\\w+\\s+command", "flags": "i" },
|
|
90
|
-
{ "source": "Allow\\s*tool", "flags": "i" },
|
|
91
90
|
{ "source": "Yes,?\\s*don'?t\\s*ask", "flags": "i" },
|
|
92
|
-
{ "source": "
|
|
93
|
-
{ "source": "Do you want to proceed", "flags": "i" },
|
|
94
|
-
{ "source": "Esc to cancel", "flags": "i" }
|
|
91
|
+
{ "source": "\\bDeny\\b", "flags": "i" }
|
|
95
92
|
],
|
|
96
93
|
"ready": [
|
|
97
94
|
{ "source": "for\\s*shortcuts", "flags": "i" },
|
|
@@ -212,10 +212,9 @@ const FALLBACK_APPROVAL: RegExp[] = [
|
|
|
212
212
|
/Always\s*allow/i,
|
|
213
213
|
/\(y\/n\)/i,
|
|
214
214
|
/\[Y\/n\]/i,
|
|
215
|
-
/Run\s
|
|
216
|
-
/Allow\s*tool/i, // Claude Code v2 approval
|
|
215
|
+
/Run\s+\w+\s+command/i, // "Run bash command" etc — requires surrounding words to avoid false matches
|
|
217
216
|
/Yes,?\s*don'?t\s*ask/i, // "Yes, don't ask again" (Claude Code)
|
|
218
|
-
/
|
|
217
|
+
/\bDeny\b/i, // Word-boundary match — avoids "allow & deny" in /permissions menu text
|
|
219
218
|
];
|
|
220
219
|
|
|
221
220
|
function defaultCleanOutput(raw: string, _lastUserInput?: string): string {
|
|
@@ -306,7 +305,7 @@ export class ProviderCliAdapter implements CliAdapter {
|
|
|
306
305
|
this.timeouts = {
|
|
307
306
|
ptyFlush: t.ptyFlush ?? 50,
|
|
308
307
|
dialogAccept: t.dialogAccept ?? 300,
|
|
309
|
-
approvalCooldown: t.approvalCooldown ??
|
|
308
|
+
approvalCooldown: t.approvalCooldown ?? 3000,
|
|
310
309
|
generatingIdle: t.generatingIdle ?? 6000,
|
|
311
310
|
idleFinish: t.idleFinish ?? 5000,
|
|
312
311
|
maxResponse: t.maxResponse ?? 300000,
|
package/src/commands/handler.ts
CHANGED
|
@@ -392,6 +392,7 @@ export class DaemonCommandHandler implements CommandHelpers {
|
|
|
392
392
|
|
|
393
393
|
private async handleRefreshScripts(_args: any): Promise<CommandResult> {
|
|
394
394
|
if (this._ctx.providerLoader) {
|
|
395
|
+
await this._ctx.providerLoader.fetchLatest().catch(() => {});
|
|
395
396
|
this._ctx.providerLoader.reload();
|
|
396
397
|
return { success: true };
|
|
397
398
|
}
|