@wrongstack/plugins 0.316.2 → 0.317.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/context-pins.js +5 -4
- package/dist/index.js +10 -7
- package/dist/knowledge-graph.js +3 -2
- package/dist/shell-check.js +2 -1
- package/package.json +5 -5
package/dist/context-pins.js
CHANGED
|
@@ -160,16 +160,17 @@ var plugin = {
|
|
|
160
160
|
inputSchema: {
|
|
161
161
|
type: "object",
|
|
162
162
|
properties: {
|
|
163
|
-
id: { type: "string", description: "Pin id (pin-N) or label to remove." }
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
id: { type: "string", description: "Pin id (pin-N) or label to remove." },
|
|
164
|
+
label: { type: "string", description: "Alternative label to remove." }
|
|
165
|
+
}
|
|
166
166
|
},
|
|
167
167
|
permission: "auto",
|
|
168
168
|
category: "Memory",
|
|
169
169
|
mutating: true,
|
|
170
170
|
async execute(input) {
|
|
171
171
|
if (!cfg.enabled) return { ok: false, error: "context-pins is disabled" };
|
|
172
|
-
const key = String(input.id ?? "").trim();
|
|
172
|
+
const key = String(input.id ?? input.label ?? "").trim();
|
|
173
|
+
if (!key) return { ok: false, error: "id or label is required" };
|
|
173
174
|
const before = state.pins.length;
|
|
174
175
|
state.pins = state.pins.filter((p) => p.id !== key && p.label !== key);
|
|
175
176
|
const removed = before - state.pins.length;
|
package/dist/index.js
CHANGED
|
@@ -4306,16 +4306,17 @@ var plugin13 = {
|
|
|
4306
4306
|
inputSchema: {
|
|
4307
4307
|
type: "object",
|
|
4308
4308
|
properties: {
|
|
4309
|
-
id: { type: "string", description: "Pin id (pin-N) or label to remove." }
|
|
4310
|
-
|
|
4311
|
-
|
|
4309
|
+
id: { type: "string", description: "Pin id (pin-N) or label to remove." },
|
|
4310
|
+
label: { type: "string", description: "Alternative label to remove." }
|
|
4311
|
+
}
|
|
4312
4312
|
},
|
|
4313
4313
|
permission: "auto",
|
|
4314
4314
|
category: "Memory",
|
|
4315
4315
|
mutating: true,
|
|
4316
4316
|
async execute(input) {
|
|
4317
4317
|
if (!cfg.enabled) return { ok: false, error: "context-pins is disabled" };
|
|
4318
|
-
const key = String(input.id ?? "").trim();
|
|
4318
|
+
const key = String(input.id ?? input.label ?? "").trim();
|
|
4319
|
+
if (!key) return { ok: false, error: "id or label is required" };
|
|
4319
4320
|
const before = state13.pins.length;
|
|
4320
4321
|
state13.pins = state13.pins.filter((p) => p.id !== key && p.label !== key);
|
|
4321
4322
|
const removed = before - state13.pins.length;
|
|
@@ -10628,11 +10629,12 @@ var plugin31 = {
|
|
|
10628
10629
|
if (input.confidence && f.confidence !== input.confidence) return false;
|
|
10629
10630
|
return true;
|
|
10630
10631
|
});
|
|
10632
|
+
const returnedFacts = matches.slice(-limit);
|
|
10631
10633
|
return {
|
|
10632
10634
|
ok: true,
|
|
10633
10635
|
totalFacts: state28.facts.length,
|
|
10634
|
-
returned:
|
|
10635
|
-
facts:
|
|
10636
|
+
returned: returnedFacts.length,
|
|
10637
|
+
facts: returnedFacts
|
|
10636
10638
|
};
|
|
10637
10639
|
}
|
|
10638
10640
|
});
|
|
@@ -19830,6 +19832,7 @@ import { readdir as readdir5 } from "node:fs/promises";
|
|
|
19830
19832
|
import { isAbsolute as isAbsolute22, join as join6, relative as relative22, resolve as resolve24 } from "node:path";
|
|
19831
19833
|
var API_VERSION34 = "^0.1.10";
|
|
19832
19834
|
function withinProject22(p) {
|
|
19835
|
+
if (typeof p !== "string" || p.length === 0 || p.length > MAX_PATH_LEN) return false;
|
|
19833
19836
|
if (p.startsWith("-")) return false;
|
|
19834
19837
|
const root = process.cwd();
|
|
19835
19838
|
const resolved = isAbsolute22(p) ? resolve24(p) : resolve24(root, p);
|
|
@@ -19932,7 +19935,7 @@ async function findShellFiles(dir, pattern) {
|
|
|
19932
19935
|
const full = join6(dir, entry.name);
|
|
19933
19936
|
if (entry.isDirectory() && entry.name !== "node_modules" && entry.name !== ".git") {
|
|
19934
19937
|
results.push(...await findShellFiles(full, pattern));
|
|
19935
|
-
} else if (entry.isFile() && (entry.name.endsWith(".sh") || entry.name === "Dockerfile")) {
|
|
19938
|
+
} else if (entry.isFile() && (entry.name.endsWith(".sh") || entry.name.endsWith(".bash") || entry.name.endsWith(".zsh") || entry.name === "Dockerfile" || entry.name === ".bashrc" || entry.name === ".zshrc")) {
|
|
19936
19939
|
if (!pattern || entry.name.includes(pattern)) {
|
|
19937
19940
|
results.push(full);
|
|
19938
19941
|
}
|
package/dist/knowledge-graph.js
CHANGED
|
@@ -223,11 +223,12 @@ var plugin = {
|
|
|
223
223
|
if (input.confidence && f.confidence !== input.confidence) return false;
|
|
224
224
|
return true;
|
|
225
225
|
});
|
|
226
|
+
const returnedFacts = matches.slice(-limit);
|
|
226
227
|
return {
|
|
227
228
|
ok: true,
|
|
228
229
|
totalFacts: state.facts.length,
|
|
229
|
-
returned:
|
|
230
|
-
facts:
|
|
230
|
+
returned: returnedFacts.length,
|
|
231
|
+
facts: returnedFacts
|
|
231
232
|
};
|
|
232
233
|
}
|
|
233
234
|
});
|
package/dist/shell-check.js
CHANGED
|
@@ -4,6 +4,7 @@ import { readdir } from "node:fs/promises";
|
|
|
4
4
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
5
5
|
var API_VERSION = "^0.1.10";
|
|
6
6
|
function withinProject(p) {
|
|
7
|
+
if (typeof p !== "string" || p.length === 0 || p.length > MAX_PATH_LEN) return false;
|
|
7
8
|
if (p.startsWith("-")) return false;
|
|
8
9
|
const root = process.cwd();
|
|
9
10
|
const resolved = isAbsolute(p) ? resolve(p) : resolve(root, p);
|
|
@@ -106,7 +107,7 @@ async function findShellFiles(dir, pattern) {
|
|
|
106
107
|
const full = join(dir, entry.name);
|
|
107
108
|
if (entry.isDirectory() && entry.name !== "node_modules" && entry.name !== ".git") {
|
|
108
109
|
results.push(...await findShellFiles(full, pattern));
|
|
109
|
-
} else if (entry.isFile() && (entry.name.endsWith(".sh") || entry.name === "Dockerfile")) {
|
|
110
|
+
} else if (entry.isFile() && (entry.name.endsWith(".sh") || entry.name.endsWith(".bash") || entry.name.endsWith(".zsh") || entry.name === "Dockerfile" || entry.name === ".bashrc" || entry.name === ".zshrc")) {
|
|
110
111
|
if (!pattern || entry.name.includes(pattern)) {
|
|
111
112
|
results.push(full);
|
|
112
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/plugins",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.317.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.317.0",
|
|
307
|
+
"@wrongstack/primitives": "0.317.0",
|
|
308
|
+
"@wrongstack/plugin-sdk": "0.317.0",
|
|
309
|
+
"@wrongstack/tools": "0.317.0"
|
|
310
310
|
},
|
|
311
311
|
"scripts": {
|
|
312
312
|
"build": "node ../../scripts/build-package.mjs",
|