@wrongstack/plugins 0.318.0 → 0.319.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.
- package/dist/accessibility-auditor.js +21 -4
- package/dist/api-compatibility-gate.js +3 -1
- package/dist/auto-i18n-extractor.js +9 -3
- package/dist/changelog-writer.js +1 -4
- package/dist/code-metrics.js +3 -1
- package/dist/config-validator.js +6 -2
- package/dist/context-pins.js +4 -1
- package/dist/cost-tracker.js +3 -1
- package/dist/cron.js +8 -2
- package/dist/dep-guard.js +3 -1
- package/dist/dependency-vulnerability-gate.js +3 -1
- package/dist/diff-summary.js +9 -3
- package/dist/doc-sync-guard.js +6 -2
- package/dist/feature-flag-tracker.js +3 -1
- package/dist/format-on-save.js +3 -1
- package/dist/import-organizer.js +3 -1
- package/dist/index.js +342 -121
- package/dist/interface-contract-guard.js +3 -1
- package/dist/knowledge-graph.js +9 -4
- package/dist/license-audit-gate.js +15 -3
- package/dist/path-guard.js +8 -2
- package/dist/pr-drafter.js +3 -1
- package/dist/process-guard.js +3 -1
- package/dist/prompt-firewall.js +14 -4
- package/dist/refactor-suggester.js +3 -1
- package/dist/security-hotspot-scanner.js +21 -3
- package/dist/semantic-search-indexer/index.d.ts +26 -0
- package/dist/semantic-search-indexer.js +100 -12
- package/dist/semver-bump.js +17 -12
- package/dist/shell-check.js +7 -10
- package/dist/smart-rename.js +8 -6
- package/dist/spec-linker.js +3 -1
- package/dist/template-engine.js +18 -12
- package/dist/test-flake-detector.js +1 -4
- package/dist/test-generator.js +3 -1
- package/dist/test-runner-gate.js +27 -15
- package/dist/type-gate.js +3 -1
- package/package.json +5 -5
package/dist/test-runner-gate.js
CHANGED
|
@@ -153,13 +153,18 @@ async function detectRunner(requested) {
|
|
|
153
153
|
try {
|
|
154
154
|
await new Promise((resolve, reject) => {
|
|
155
155
|
const ex = resolveExec("npx", [`${match.name}`, "--version"]);
|
|
156
|
-
execFile(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
execFile(
|
|
157
|
+
ex.cmd,
|
|
158
|
+
ex.args,
|
|
159
|
+
{
|
|
160
|
+
encoding: "utf-8",
|
|
161
|
+
timeout: 5e3,
|
|
162
|
+
cwd: process.cwd(),
|
|
163
|
+
windowsHide: true,
|
|
164
|
+
...ex.windowsVerbatimArguments ? { windowsVerbatimArguments: true } : {}
|
|
165
|
+
},
|
|
166
|
+
(err) => err ? reject(err) : resolve()
|
|
167
|
+
);
|
|
163
168
|
});
|
|
164
169
|
return match;
|
|
165
170
|
} catch {
|
|
@@ -170,13 +175,18 @@ async function detectRunner(requested) {
|
|
|
170
175
|
try {
|
|
171
176
|
await new Promise((resolve, reject) => {
|
|
172
177
|
const ex = resolveExec("npx", [`${candidate.name}`, "--version"]);
|
|
173
|
-
execFile(
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
execFile(
|
|
179
|
+
ex.cmd,
|
|
180
|
+
ex.args,
|
|
181
|
+
{
|
|
182
|
+
encoding: "utf-8",
|
|
183
|
+
timeout: 5e3,
|
|
184
|
+
cwd: process.cwd(),
|
|
185
|
+
windowsHide: true,
|
|
186
|
+
...ex.windowsVerbatimArguments ? { windowsVerbatimArguments: true } : {}
|
|
187
|
+
},
|
|
188
|
+
(err) => err ? reject(err) : resolve()
|
|
189
|
+
);
|
|
180
190
|
});
|
|
181
191
|
return candidate;
|
|
182
192
|
} catch {
|
|
@@ -444,7 +454,9 @@ var plugin = {
|
|
|
444
454
|
Fix the failing tests or revert the change if it broke something.`
|
|
445
455
|
};
|
|
446
456
|
};
|
|
447
|
-
state.hookUnregister = api.registerHook("PostToolUse", "write|edit", hook, {
|
|
457
|
+
state.hookUnregister = api.registerHook("PostToolUse", "write|edit", hook, {
|
|
458
|
+
background: true
|
|
459
|
+
});
|
|
448
460
|
api.tools.register({
|
|
449
461
|
name: "test_gate_status",
|
|
450
462
|
description: "Reports test-runner-gate state: command, patterns, and per-session pass/fail/error/no-test counters.",
|
package/dist/type-gate.js
CHANGED
|
@@ -242,7 +242,9 @@ Fix the type error(s) or adjust the change.`;
|
|
|
242
242
|
}
|
|
243
243
|
return { additionalContext: message };
|
|
244
244
|
};
|
|
245
|
-
state.hookUnregister = api.registerHook("PostToolUse", "write|edit", hook, {
|
|
245
|
+
state.hookUnregister = api.registerHook("PostToolUse", "write|edit", hook, {
|
|
246
|
+
background: true
|
|
247
|
+
});
|
|
246
248
|
api.tools.register({
|
|
247
249
|
name: "type_gate_status",
|
|
248
250
|
description: "Reports type-gate state: command, tsconfig, severity, and per-session pass/fail/error counters.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/plugins",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.319.1",
|
|
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.319.1",
|
|
307
|
+
"@wrongstack/primitives": "0.319.1",
|
|
308
|
+
"@wrongstack/plugin-sdk": "0.319.1",
|
|
309
|
+
"@wrongstack/tools": "0.319.1"
|
|
310
310
|
},
|
|
311
311
|
"scripts": {
|
|
312
312
|
"build": "node ../../scripts/build-package.mjs",
|