@wrongstack/plugins 0.317.0 → 0.317.2

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 (72) hide show
  1. package/dist/accessibility-auditor.js +12 -10
  2. package/dist/agent-handoff.js +30 -10
  3. package/dist/auto-doc.js +22 -9
  4. package/dist/auto-escalate.js +17 -7
  5. package/dist/auto-i18n-extractor.js +19 -9
  6. package/dist/branch-guard.js +12 -9
  7. package/dist/changelog-writer/index.d.ts +3 -3
  8. package/dist/changelog-writer.js +59 -14
  9. package/dist/checkpoint.js +18 -7
  10. package/dist/code-metrics.js +17 -9
  11. package/dist/commit-validator.js +18 -11
  12. package/dist/config-validator.js +5 -3
  13. package/dist/context-pins.js +17 -6
  14. package/dist/cost-tracker.js +24 -16
  15. package/dist/cron.js +17 -13
  16. package/dist/dead-code-detector.js +5 -4
  17. package/dist/dep-guard.js +5 -4
  18. package/dist/dependency-vulnerability-gate.js +64 -24
  19. package/dist/diff-summary.js +6 -2
  20. package/dist/doc-sync-guard.js +12 -2
  21. package/dist/duplicate-code-detector.js +87 -15
  22. package/dist/error-lens.js +6 -5
  23. package/dist/feature-flag-tracker.js +43 -9
  24. package/dist/file-watcher.js +26 -3
  25. package/dist/format-on-save.js +9 -5
  26. package/dist/git-autocommit.js +20 -12
  27. package/dist/gitignore-guard.js +7 -4
  28. package/dist/import-organizer.js +9 -5
  29. package/dist/index.js +1675 -745
  30. package/dist/injection-shield/index.d.ts +1 -0
  31. package/dist/injection-shield.js +30 -5
  32. package/dist/interface-contract-guard.js +4 -2
  33. package/dist/knowledge-graph.js +40 -14
  34. package/dist/license-audit-gate.js +61 -8
  35. package/dist/lint-gate.js +13 -5
  36. package/dist/llm-cache.js +20 -6
  37. package/dist/loop-breaker.js +16 -8
  38. package/dist/migration-planner.js +80 -11
  39. package/dist/model-router.js +16 -9
  40. package/dist/notify-hub.js +14 -5
  41. package/dist/path-guard.js +7 -3
  42. package/dist/performance-regression-gate.js +12 -6
  43. package/dist/plugin-stack-observer.js +25 -3
  44. package/dist/pr-drafter.js +16 -7
  45. package/dist/process-guard.js +2 -1
  46. package/dist/prompt-firewall.js +9 -7
  47. package/dist/refactor-suggester.js +37 -8
  48. package/dist/release-notes-generator/index.d.ts +9 -0
  49. package/dist/release-notes-generator.js +50 -12
  50. package/dist/schema-evolution-guard.js +33 -6
  51. package/dist/secret-scanner.js +10 -7
  52. package/dist/security-hotspot-scanner.js +13 -8
  53. package/dist/semantic-search-indexer/index.d.ts +11 -0
  54. package/dist/semantic-search-indexer.js +67 -19
  55. package/dist/semver-bump/index.d.ts +3 -3
  56. package/dist/semver-bump.js +30 -15
  57. package/dist/session-recap/index.d.ts +16 -0
  58. package/dist/session-recap.js +18 -9
  59. package/dist/shell-check.js +27 -6
  60. package/dist/smart-rename.js +18 -9
  61. package/dist/spec-linker.js +70 -19
  62. package/dist/template-engine.js +24 -14
  63. package/dist/test-coverage-gate.js +1 -1
  64. package/dist/test-flake-detector.js +28 -5
  65. package/dist/test-generator/index.d.ts +10 -0
  66. package/dist/test-generator.js +35 -13
  67. package/dist/todo-listener.js +2 -2
  68. package/dist/todo-tracker.js +19 -11
  69. package/dist/token-budget.js +14 -9
  70. package/dist/token-throttle.js +8 -3
  71. package/dist/type-gate.js +9 -5
  72. package/package.json +5 -5
package/dist/type-gate.js CHANGED
@@ -50,12 +50,15 @@ function readConfig(raw) {
50
50
  const r = raw;
51
51
  const runOnChange = Array.isArray(r["runOnChange"]) ? r["runOnChange"].filter((x) => typeof x === "string") : DEFAULTS.runOnChange;
52
52
  runOnChangeSet = new Set(runOnChange);
53
+ const rawPath = r["tsConfigPath"] ?? r["tsconfig_path"] ?? r["tsconfigPath"] ?? r["tsconfig"];
54
+ const rawSeverity = typeof (r["failSeverity"] ?? r["fail_severity"] ?? r["severity"] ?? r["mode"]) === "string" ? String(r["failSeverity"] ?? r["fail_severity"] ?? r["severity"] ?? r["mode"]).trim().toLowerCase() : void 0;
55
+ const failSeverity = rawSeverity === "block" ? "block" : DEFAULTS.failSeverity;
53
56
  return {
54
57
  enabled: r["enabled"] === true,
55
58
  command: typeof r["command"] === "string" ? r["command"] : DEFAULTS.command,
56
- tsConfigPath: typeof r["tsConfigPath"] === "string" ? r["tsConfigPath"] : DEFAULTS.tsConfigPath,
59
+ tsConfigPath: typeof rawPath === "string" ? rawPath : DEFAULTS.tsConfigPath,
57
60
  timeoutMs: typeof r["timeoutMs"] === "number" && r["timeoutMs"] > 0 ? r["timeoutMs"] : DEFAULTS.timeoutMs,
58
- failSeverity: r["failSeverity"] === "block" ? "block" : DEFAULTS.failSeverity,
61
+ failSeverity,
59
62
  maxErrors: typeof r["maxErrors"] === "number" && r["maxErrors"] >= 1 && r["maxErrors"] <= 50 ? r["maxErrors"] : DEFAULTS.maxErrors,
60
63
  runOnChange
61
64
  };
@@ -118,12 +121,12 @@ ${stderr}`.trim();
118
121
  const errors = [];
119
122
  const lines = combined.split(/\r?\n/);
120
123
  for (const line of lines) {
121
- if (/\berror\b/i.test(line) && /:\s*error\s+TS\d+:/.test(line)) {
124
+ if (/\berror\b/i.test(line) && /(?::\s*|\s+-\s+)error\s+TS\d+:/i.test(line)) {
122
125
  errors.push(line.trim());
123
126
  if (errors.length >= cfg.maxErrors) break;
124
127
  }
125
128
  }
126
- const passed = errors.length === 0 && !/\bfound\b.*\berror\b/i.test(combined);
129
+ const passed = errors.length === 0 && !/\bfound\b.*\berrors?\b/i.test(combined);
127
130
  return { passed, errorCount: errors.length, errors, durationMs };
128
131
  }
129
132
  var plugin = {
@@ -198,7 +201,8 @@ var plugin = {
198
201
  if (!cfg.enabled) return;
199
202
  if (input.toolResult?.isError) return;
200
203
  const inp = input.toolInput ?? {};
201
- const sourcePath = inp["path"];
204
+ const rawPath = inp["path"] ?? inp["filePath"] ?? inp["file_path"] ?? inp["TargetFile"] ?? inp["targetFile"] ?? inp["file"];
205
+ const sourcePath = typeof rawPath === "string" && rawPath.trim() ? rawPath.trim() : void 0;
202
206
  if (!sourcePath || typeof sourcePath !== "string") return;
203
207
  if (!(0, runtime_exports.withinProject)(sourcePath)) return;
204
208
  const ext = sourcePath.includes(".") ? sourcePath.slice(sourcePath.lastIndexOf(".")).toLowerCase() : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/plugins",
3
- "version": "0.317.0",
3
+ "version": "0.317.2",
4
4
  "description": "Official WrongStack collection of focused plugins for code quality, security, observability, planning, and agent coordination",
5
5
  "license": "MIT",
6
6
  "author": "ECOSTACK TECHNOLOGY OÜ",
@@ -303,10 +303,10 @@
303
303
  "vitest": "^4.1.11"
304
304
  },
305
305
  "dependencies": {
306
- "@wrongstack/core": "0.317.0",
307
- "@wrongstack/primitives": "0.317.0",
308
- "@wrongstack/plugin-sdk": "0.317.0",
309
- "@wrongstack/tools": "0.317.0"
306
+ "@wrongstack/core": "0.317.2",
307
+ "@wrongstack/primitives": "0.317.2",
308
+ "@wrongstack/plugin-sdk": "0.317.2",
309
+ "@wrongstack/tools": "0.317.2"
310
310
  },
311
311
  "scripts": {
312
312
  "build": "node ../../scripts/build-package.mjs",