audit-tools 0.29.1 → 0.29.3
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.
|
@@ -38,7 +38,7 @@ function runBuild(command, args) {
|
|
|
38
38
|
const child = spawn(resolved.command, resolved.args, {
|
|
39
39
|
cwd: repoRoot,
|
|
40
40
|
// Auto-rebuild output is diagnostic — route both child streams to the
|
|
41
|
-
// parent's stderr (fd 2) so npm's `>
|
|
41
|
+
// parent's stderr (fd 2) so npm's `> audit-tools@… build` banner can
|
|
42
42
|
// never pollute the wrapper's stdout JSON channel when a caller captures it.
|
|
43
43
|
stdio: ['ignore', 2, 2],
|
|
44
44
|
env: process.env,
|
|
@@ -155,7 +155,7 @@ export const INSTALL_HOST_DEFINITIONS = {
|
|
|
155
155
|
],
|
|
156
156
|
steps: [
|
|
157
157
|
'Open this repository in Codex.',
|
|
158
|
-
'Use the global `/audit-code` skill installed by `npm install -g
|
|
158
|
+
'Use the global `/audit-code` skill installed by `npm install -g audit-tools`.',
|
|
159
159
|
'If the global skill is unavailable, follow the AGENTS fallback instructions that point at the repo-local prompt asset.',
|
|
160
160
|
],
|
|
161
161
|
profile: {
|
|
@@ -187,7 +187,7 @@ export const INSTALL_HOST_DEFINITIONS = {
|
|
|
187
187
|
],
|
|
188
188
|
steps: [
|
|
189
189
|
'Open this repository in OpenCode.',
|
|
190
|
-
'Use the global `/audit-code` command installed by `npm install -g
|
|
190
|
+
'Use the global `/audit-code` command installed by `npm install -g audit-tools`.',
|
|
191
191
|
'Let OpenCode load the generated `opencode.json` for project permissions; the global command drives `audit-code next-step` directly.',
|
|
192
192
|
],
|
|
193
193
|
profile: {
|
|
@@ -58,7 +58,6 @@ function buildAuditBashPermissions() {
|
|
|
58
58
|
for (const sub of AUDIT_CODE_WRAPPER_EXTRA_SUBCOMMANDS) {
|
|
59
59
|
perm[`*audit-code.mjs* ${sub}`] = 'allow';
|
|
60
60
|
}
|
|
61
|
-
perm['*node* *auditor-lambda*dist*index.js* worker-run*'] = 'allow';
|
|
62
61
|
perm['git status*'] = 'allow';
|
|
63
62
|
perm['git diff*'] = 'allow';
|
|
64
63
|
perm['grep *'] = 'allow';
|
|
@@ -158,7 +157,6 @@ export function assertOpenCodeAuditPermissionConfig(permissionConfig, label) {
|
|
|
158
157
|
'*audit-code.mjs* submit-packet*',
|
|
159
158
|
'*audit-code.mjs* merge-and-ingest*',
|
|
160
159
|
'*audit-code.mjs* worker-run*',
|
|
161
|
-
'*node* *auditor-lambda*dist*index.js* worker-run*',
|
|
162
160
|
]) {
|
|
163
161
|
if (bash[pattern] !== 'allow') {
|
|
164
162
|
throw new Error(`OpenCode ${label}.bash must allow ${pattern}. Run "audit-code install --host opencode".`);
|
|
@@ -213,7 +211,7 @@ function mergePermissionBlock(existingPermission, generatedPermission) {
|
|
|
213
211
|
export function buildMergedOpenCodeProjectConfig(existing, root) {
|
|
214
212
|
if (!sharedOpenCodePermissions) {
|
|
215
213
|
throw new Error(
|
|
216
|
-
'audit-tools/shared is not available. Run "npm run build
|
|
214
|
+
'audit-tools/shared is not available. Run "npm run build" before deploying OpenCode config.',
|
|
217
215
|
);
|
|
218
216
|
}
|
|
219
217
|
const generated = renderOpenCodeProjectConfig(root);
|
package/opencode.json
CHANGED
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"*audit-code.mjs* validate*": "allow",
|
|
53
53
|
"*audit-code.mjs": "allow",
|
|
54
54
|
"*audit-code.mjs* worker-run*": "allow",
|
|
55
|
-
"*node* *auditor-lambda*dist*index.js* worker-run*": "allow",
|
|
56
55
|
"git status*": "allow",
|
|
57
56
|
"git diff*": "allow",
|
|
58
57
|
"grep *": "allow",
|
|
@@ -106,7 +105,6 @@
|
|
|
106
105
|
"*audit-code.mjs* validate*": "allow",
|
|
107
106
|
"*audit-code.mjs": "allow",
|
|
108
107
|
"*audit-code.mjs* worker-run*": "allow",
|
|
109
|
-
"*node* *auditor-lambda*dist*index.js* worker-run*": "allow",
|
|
110
108
|
"git status*": "allow",
|
|
111
109
|
"git diff*": "allow",
|
|
112
110
|
"grep *": "allow",
|