@blogic-cz/agent-tools 0.7.0 → 0.7.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/package.json
CHANGED
|
@@ -392,8 +392,7 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
|
|
|
392
392
|
`\u{1F6AB} Access blocked: "${filePath}" is a sensitive file.\n\n` +
|
|
393
393
|
`This file may contain credentials or secrets.\n` +
|
|
394
394
|
`If you need this file's content, ask the user to provide relevant parts.\n\n` +
|
|
395
|
-
`Think this should be allowed? See https://github.com/blogic-cz/agent-tools — fork, extend the guard, and submit a PR
|
|
396
|
-
`→ Skill "agent-tools"`,
|
|
395
|
+
`Think this should be allowed? See https://github.com/blogic-cz/agent-tools — fork, extend the guard, and submit a PR.`,
|
|
397
396
|
);
|
|
398
397
|
}
|
|
399
398
|
}
|
|
@@ -409,8 +408,7 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
|
|
|
409
408
|
`\u{1F6AB} Secret detected: Potential ${detected.name} found in content.\n\n` +
|
|
410
409
|
`Matched: ${detected.match}\n\n` +
|
|
411
410
|
`Never commit secrets to code. Use environment variables or secret managers.\n\n` +
|
|
412
|
-
`Think this is a false positive? See https://github.com/blogic-cz/agent-tools — fork, fix the pattern, and submit a PR
|
|
413
|
-
`→ Skill "agent-tools"`,
|
|
411
|
+
`Think this is a false positive? See https://github.com/blogic-cz/agent-tools — fork, fix the pattern, and submit a PR.`,
|
|
414
412
|
);
|
|
415
413
|
}
|
|
416
414
|
}
|
|
@@ -425,8 +423,7 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
|
|
|
425
423
|
`\u{1F6AB} Command blocked: This command might expose secrets.\n\n` +
|
|
426
424
|
`Command: ${command}\n\n` +
|
|
427
425
|
`If you need environment info, ask the user directly.\n\n` +
|
|
428
|
-
`Think this is wrong? See https://github.com/blogic-cz/agent-tools — fork, adjust the patterns, and submit a PR
|
|
429
|
-
`→ Skill "agent-tools"`,
|
|
426
|
+
`Think this is wrong? See https://github.com/blogic-cz/agent-tools — fork, adjust the patterns, and submit a PR.`,
|
|
430
427
|
);
|
|
431
428
|
}
|
|
432
429
|
|
|
@@ -436,20 +433,20 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
|
|
|
436
433
|
`\u{26A0}\u{FE0F} Sleep-polling detected.\n\n` +
|
|
437
434
|
`Instead of polling with sleep, use the built-in watch command:\n\n` +
|
|
438
435
|
`Use instead: ${sleepSuggestion}\n\n` +
|
|
439
|
-
`Watch commands block until completion — no polling needed
|
|
440
|
-
`→ Skill "agent-tools"`,
|
|
436
|
+
`Watch commands block until completion — no polling needed.`,
|
|
441
437
|
);
|
|
442
438
|
}
|
|
443
439
|
|
|
444
440
|
const blockedTool = getBlockedCliTool(command);
|
|
445
441
|
if (blockedTool) {
|
|
442
|
+
const skillName = blockedTool.wrapper.replace("agent-tools-", "") + "-tool";
|
|
446
443
|
throw new Error(
|
|
447
444
|
`\u{1F6AB} Direct ${blockedTool.name} usage blocked.\n\n` +
|
|
448
445
|
`AI agents must use wrapper tools for security and audit.\n\n` +
|
|
449
|
-
`Use instead: bun ${
|
|
450
|
-
`Example: bun ${
|
|
446
|
+
`Use instead: bun ${skillName}\n\n` +
|
|
447
|
+
`Example: bun ${skillName} --help\n\n` +
|
|
451
448
|
`Think this tool should be allowed? See https://github.com/blogic-cz/agent-tools — fork, extend the whitelist, and submit a PR.\n` +
|
|
452
|
-
`→ Skill "
|
|
449
|
+
`→ Skill "${skillName}"`,
|
|
453
450
|
);
|
|
454
451
|
}
|
|
455
452
|
}
|