auditor-lambda 0.3.36 → 0.3.37
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.
|
@@ -704,21 +704,6 @@ function renderOpenCodePermissionConfig() {
|
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
const OPENCODE_MCP_COMMAND_TEMPLATE = [
|
|
708
|
-
'# audit-code',
|
|
709
|
-
'',
|
|
710
|
-
'Use `audit-code next-step` as the primary interface to the audit workflow.',
|
|
711
|
-
'',
|
|
712
|
-
'1. Run `audit-code next-step` directly when shell access is available.',
|
|
713
|
-
'2. If MCP is your only available interface, call `auditor_start_audit` or `auditor_continue_audit`; both return the same one-step contract.',
|
|
714
|
-
'3. Read `prompt_content` in the response and follow it.',
|
|
715
|
-
'4. When a step completes (not blocked), run `audit-code next-step` again or call `auditor_continue_audit` as the compatibility adapter.',
|
|
716
|
-
'5. Stop when the step instructions say to stop.',
|
|
717
|
-
'',
|
|
718
|
-
'Use the `task` tool or equivalent for subagent dispatch when the step tells you to fan out review work.',
|
|
719
|
-
'',
|
|
720
|
-
'If neither shell access nor `auditor_start_audit` is available, stop and report that no next-step interface is connected.',
|
|
721
|
-
].join('\n');
|
|
722
707
|
|
|
723
708
|
function renderOpenCodeProjectConfig(_root) {
|
|
724
709
|
const auditPermission = renderOpenCodePermissionConfig();
|
package/package.json
CHANGED
package/scripts/postinstall.mjs
CHANGED
|
@@ -277,20 +277,8 @@ function renderOpenCodePermissionConfig() {
|
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
'',
|
|
283
|
-
'Use the auditor MCP tools as the primary interface to the audit workflow.',
|
|
284
|
-
'',
|
|
285
|
-
'1. Call `auditor_start_audit` to initialize and receive the first step.',
|
|
286
|
-
'2. Read `prompt_content` in the response and follow it.',
|
|
287
|
-
'3. When a step completes (not blocked), call `auditor_continue_audit` to advance.',
|
|
288
|
-
'4. Stop when the step instructions say to stop.',
|
|
289
|
-
'',
|
|
290
|
-
'Do not run shell commands. Use only `auditor_*` MCP tools and the `task` tool for subagent dispatch.',
|
|
291
|
-
'',
|
|
292
|
-
'If `auditor_start_audit` is not listed in your available tools, stop immediately and tell the user the auditor MCP server is not connected. Do not read local files as a fallback.',
|
|
293
|
-
].join('\n');
|
|
280
|
+
const opencodeCommandTemplateFile = join(pkgRoot, 'skills', 'audit-code', 'opencode-command-template.txt');
|
|
281
|
+
const OPENCODE_MCP_COMMAND_TEMPLATE = readFileSync(opencodeCommandTemplateFile, 'utf8').replace(/\r\n/g, '\n').trim();
|
|
294
282
|
|
|
295
283
|
function mergeOpenCodeGlobalConfig(existing) {
|
|
296
284
|
const parsed = existing ? JSON.parse(existing) : {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# audit-code
|
|
2
|
+
|
|
3
|
+
Use `audit-code next-step` as the primary interface to the audit workflow.
|
|
4
|
+
|
|
5
|
+
1. Run `audit-code next-step` directly when shell access is available.
|
|
6
|
+
2. If MCP is your only available interface, call `auditor_start_audit` or `auditor_continue_audit`; both return the same one-step contract.
|
|
7
|
+
3. Read `prompt_content` in the response and follow it.
|
|
8
|
+
4. When a step completes (not blocked), run `audit-code next-step` again or call `auditor_continue_audit` as the compatibility adapter.
|
|
9
|
+
5. Stop when the step instructions say to stop.
|
|
10
|
+
|
|
11
|
+
Use the `task` tool or equivalent for subagent dispatch when the step tells you to fan out review work.
|
|
12
|
+
|
|
13
|
+
If neither shell access nor `auditor_start_audit` is available, stop and report that no next-step interface is connected.
|