@fontdata/ai-harness 2.5.1 → 2.6.0
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/.claude-plugin/plugin.json +1 -1
- package/README.md +2 -1
- package/dist/install/settings.js +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,7 +109,8 @@ O `init` e o `update` gravam em `.claude/settings.json` as permissões que os fl
|
|
|
109
109
|
aprovação, inclusive no modo auto do Claude Code:
|
|
110
110
|
|
|
111
111
|
- `permissions.allow`: o rastro, a checagem de conflitos, o `doctor` e a `memoria` do harness; `git add`,
|
|
112
|
-
`git commit` e `git push` (o `/git-commit-push`); a abertura de sub-agents (`Agent`);
|
|
112
|
+
`git commit` e `git push` (o `/git-commit-push`); a abertura de sub-agents (`Agent`); as ferramentas `Read`,
|
|
113
|
+
`Grep`, `Glob` e `Skill`; e consultas só de leitura
|
|
113
114
|
(`git status`, `diff`, `log`, `show`, `blame`, `gh pr view`, `gh pr diff`, `npm outdated`...);
|
|
114
115
|
- `permissions.deny`: o push forçado (`--force`, `-f`, `--force-with-lease` e refspec com `+`), que vence o `allow`.
|
|
115
116
|
|
package/dist/install/settings.js
CHANGED
|
@@ -9,6 +9,8 @@ export const CONFLICTS_PERMISSION = 'Bash(npx @fontdata/ai-harness conflitos:*)'
|
|
|
9
9
|
export const GIT_PERMISSIONS = ['Bash(git add:*)', 'Bash(git commit:*)', 'Bash(git push:*)'];
|
|
10
10
|
/** O /executar-plan e as skills de fluxo delegam a sub-agents a cada task e gate. */
|
|
11
11
|
export const AGENT_PERMISSION = 'Agent';
|
|
12
|
+
/** Leitura e busca de arquivos e a invocação das skills, que todos os fluxos usam o tempo todo. */
|
|
13
|
+
export const TOOL_PERMISSIONS = ['Read', 'Grep', 'Glob', 'Skill'];
|
|
12
14
|
/**
|
|
13
15
|
* Comandos só de leitura que as skills, os comandos e os agents rodam. Ficam de fora os que regravam a instalação
|
|
14
16
|
* (`init`, `update`, `migrar`), os de teste e build, que variam por projeto, e o `npm audit`, cujo prefixo
|
|
@@ -32,7 +34,14 @@ export const READ_PERMISSIONS = [
|
|
|
32
34
|
'Bash(npm outdated:*)',
|
|
33
35
|
];
|
|
34
36
|
/** Regras de `permissions.allow` que o init e o update gravam para as skills e os agents do harness. */
|
|
35
|
-
export const HARNESS_PERMISSIONS = [
|
|
37
|
+
export const HARNESS_PERMISSIONS = [
|
|
38
|
+
EVENT_PERMISSION,
|
|
39
|
+
CONFLICTS_PERMISSION,
|
|
40
|
+
...GIT_PERMISSIONS,
|
|
41
|
+
AGENT_PERMISSION,
|
|
42
|
+
...TOOL_PERMISSIONS,
|
|
43
|
+
...READ_PERMISSIONS,
|
|
44
|
+
];
|
|
36
45
|
/** O push liberado não vale para reescrever o histórico remoto: `deny` vence o `allow`. */
|
|
37
46
|
export const HARNESS_DENY = [
|
|
38
47
|
'Bash(git push --force:*)',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fontdata/ai-harness",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Harness de engenharia com IA da Fontdata para Claude Code: roda os slash commands direto na pasta do projeto via npx, sem instalar nada — ou instala-os em .claude/commands.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|