opencode-api-security-testing 5.4.0 → 5.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-api-security-testing",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "API Security Testing Plugin for OpenCode - Automated vulnerability scanning and penetration testing",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -467,7 +467,7 @@ To activate these agents, simply mention their name in your response (e.g., "@ap
467
467
  }
468
468
  }
469
469
 
470
- async function execShell(ctx: unknown, cmd: string): Promise<string> {
470
+ async function execShell(_ctx: unknown, cmd: string): Promise<string> {
471
471
  try {
472
472
  const { stdout, stderr } = await execAsync(cmd, {
473
473
  maxBuffer: 1024 * 1024 * 10, // 10MB buffer
@@ -513,7 +513,7 @@ const ApiSecurityTestingPlugin: Plugin = async (ctx) => {
513
513
  taskManager.init(ctx.directory, ctx.client);
514
514
  taskManager.cleanupOldTasks(); // 清理过期任务
515
515
 
516
- console.log(`[api-security-testing] Plugin loaded v5.4.0 - collection_mode: ${config.collection_mode}`);
516
+ console.log(`[api-security-testing] Plugin loaded v5.4.1 - collection_mode: ${config.collection_mode}`);
517
517
  console.log(`[api-security-testing] Task persistence enabled at ${join(ctx.directory, TASKS_DIR)}`);
518
518
 
519
519
  return {