@wrongstack/plugins 0.317.0 → 0.318.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/dist/accessibility-auditor.js +12 -10
- package/dist/agent-handoff.js +30 -10
- package/dist/auto-doc.js +22 -9
- package/dist/auto-escalate.js +17 -7
- package/dist/auto-i18n-extractor.js +19 -9
- package/dist/branch-guard.js +12 -9
- package/dist/changelog-writer/index.d.ts +3 -3
- package/dist/changelog-writer.js +59 -14
- package/dist/checkpoint.js +18 -7
- package/dist/code-metrics.js +17 -9
- package/dist/commit-validator.js +18 -11
- package/dist/config-validator.js +5 -3
- package/dist/context-pins.js +17 -6
- package/dist/cost-tracker.js +24 -16
- package/dist/cron.js +17 -13
- package/dist/dead-code-detector.js +5 -4
- package/dist/dep-guard.js +5 -4
- package/dist/dependency-vulnerability-gate.js +64 -24
- package/dist/diff-summary.js +6 -2
- package/dist/doc-sync-guard.js +12 -2
- package/dist/duplicate-code-detector.js +87 -15
- package/dist/error-lens.js +6 -5
- package/dist/feature-flag-tracker.js +43 -9
- package/dist/file-watcher.js +26 -3
- package/dist/format-on-save.js +9 -5
- package/dist/git-autocommit.js +20 -12
- package/dist/gitignore-guard.js +7 -4
- package/dist/import-organizer.js +9 -5
- package/dist/index.js +1675 -745
- package/dist/injection-shield/index.d.ts +1 -0
- package/dist/injection-shield.js +30 -5
- package/dist/interface-contract-guard.js +4 -2
- package/dist/knowledge-graph.js +40 -14
- package/dist/license-audit-gate.js +61 -8
- package/dist/lint-gate.js +13 -5
- package/dist/llm-cache.js +20 -6
- package/dist/loop-breaker.js +16 -8
- package/dist/migration-planner.js +80 -11
- package/dist/model-router.js +16 -9
- package/dist/notify-hub.js +14 -5
- package/dist/path-guard.js +7 -3
- package/dist/performance-regression-gate.js +12 -6
- package/dist/plugin-stack-observer.js +25 -3
- package/dist/pr-drafter.js +16 -7
- package/dist/process-guard.js +2 -1
- package/dist/prompt-firewall.js +9 -7
- package/dist/refactor-suggester.js +37 -8
- package/dist/release-notes-generator/index.d.ts +9 -0
- package/dist/release-notes-generator.js +50 -12
- package/dist/schema-evolution-guard.js +33 -6
- package/dist/secret-scanner.js +10 -7
- package/dist/security-hotspot-scanner.js +13 -8
- package/dist/semantic-search-indexer/index.d.ts +11 -0
- package/dist/semantic-search-indexer.js +67 -19
- package/dist/semver-bump/index.d.ts +3 -3
- package/dist/semver-bump.js +30 -15
- package/dist/session-recap/index.d.ts +16 -0
- package/dist/session-recap.js +18 -9
- package/dist/shell-check.js +27 -6
- package/dist/smart-rename.js +18 -9
- package/dist/spec-linker.js +70 -19
- package/dist/template-engine.js +24 -14
- package/dist/test-coverage-gate.js +1 -1
- package/dist/test-flake-detector.js +28 -5
- package/dist/test-generator/index.d.ts +10 -0
- package/dist/test-generator.js +35 -13
- package/dist/todo-listener.js +2 -2
- package/dist/todo-tracker.js +19 -11
- package/dist/token-budget.js +14 -9
- package/dist/token-throttle.js +8 -3
- package/dist/type-gate.js +9 -5
- 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
|
|
59
|
+
tsConfigPath: typeof rawPath === "string" ? rawPath : DEFAULTS.tsConfigPath,
|
|
57
60
|
timeoutMs: typeof r["timeoutMs"] === "number" && r["timeoutMs"] > 0 ? r["timeoutMs"] : DEFAULTS.timeoutMs,
|
|
58
|
-
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) &&
|
|
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.*\
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.318.0",
|
|
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.
|
|
307
|
-
"@wrongstack/primitives": "0.
|
|
308
|
-
"@wrongstack/plugin-sdk": "0.
|
|
309
|
-
"@wrongstack/tools": "0.
|
|
306
|
+
"@wrongstack/core": "0.318.0",
|
|
307
|
+
"@wrongstack/primitives": "0.318.0",
|
|
308
|
+
"@wrongstack/plugin-sdk": "0.318.0",
|
|
309
|
+
"@wrongstack/tools": "0.318.0"
|
|
310
310
|
},
|
|
311
311
|
"scripts": {
|
|
312
312
|
"build": "node ../../scripts/build-package.mjs",
|