gm-copilot-cli 2.0.125 → 2.0.128
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/copilot-profile.md +1 -1
- package/hooks/pre-tool-use-hook.js +2 -2
- package/manifest.yml +1 -1
- package/package.json +1 -1
- package/tools.json +1 -1
package/copilot-profile.md
CHANGED
|
@@ -29,7 +29,7 @@ const run = () => {
|
|
|
29
29
|
const base = path.basename(file_path).toLowerCase();
|
|
30
30
|
if ((ext === '.md' || ext === '.txt' || base.startsWith('features_list')) &&
|
|
31
31
|
!base.startsWith('claude') && !base.startsWith('readme') && !inSkillsDir) {
|
|
32
|
-
return { block: true, reason: 'Cannot create documentation files. Only CLAUDE.md and readme.md are maintained.' };
|
|
32
|
+
return { block: true, reason: 'Cannot create documentation files. Only CLAUDE.md and readme.md are maintained. For task-specific notes, use .prd. For permanent reference material, add to CLAUDE.md.' };
|
|
33
33
|
}
|
|
34
34
|
if (/\.(test|spec)\.(js|ts|jsx|tsx|mjs|cjs)$/.test(base) ||
|
|
35
35
|
/^(jest|vitest|mocha|ava|jasmine|tap)\.(config|setup)/.test(base) ||
|
|
@@ -65,7 +65,7 @@ const run = () => {
|
|
|
65
65
|
|
|
66
66
|
if (tool_name === 'Bash') {
|
|
67
67
|
const command = (tool_input?.command || '').trim();
|
|
68
|
-
if (!/^bun x gm-exec(@[^\s]*)?(\s|$)/.test(command) && !/^git /.test(command) && !/^bun x codebasesearch(\s|$)/.test(command)) {
|
|
68
|
+
if (!/^bun x gm-exec(@[^\s]*)?(\s|$)/.test(command) && !/^git /.test(command) && !/^bun x codebasesearch(\s|$)/.test(command) && !/(\bclaude\b)/.test(command)) {
|
|
69
69
|
let helpText = '';
|
|
70
70
|
try { helpText = '\n\n' + execSync('bun x gm-exec --help', { timeout: 10000 }).toString().trim(); } catch (e) {}
|
|
71
71
|
return { block: true, reason: `Bash is restricted to: bun x gm-exec (and git)\n\nUsage: bun x gm-exec${helpText}\n\nDocs: https://www.npmjs.com/package/gm-exec\n\nAll other Bash commands are blocked.` };
|
package/manifest.yml
CHANGED
package/package.json
CHANGED