@wrongstack/plugins 0.155.0 → 0.250.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.
@@ -20,7 +20,12 @@ var plugin = {
20
20
  watchOnStartup: [],
21
21
  autoUnwatchOnExit: true,
22
22
  autoIndex: false,
23
- indexProjectRoot: ""
23
+ indexProjectRoot: "",
24
+ depWatcher: {
25
+ enabled: false,
26
+ targetAgent: "tech-stack",
27
+ debounceMs: 3e3
28
+ }
24
29
  },
25
30
  configSchema: {
26
31
  type: "object",
@@ -37,6 +42,16 @@ var plugin = {
37
42
  type: "string",
38
43
  default: "",
39
44
  description: "Project root directory for the indexer. Defaults to cwd when empty."
45
+ },
46
+ depWatcher: {
47
+ type: "object",
48
+ default: { enabled: false },
49
+ description: "Bridge dependency file changes (package.json, go.mod, etc.) to the inter-agent mailbox for tech-stack audits. Requires the mailbox tool to be registered.",
50
+ properties: {
51
+ enabled: { type: "boolean", default: false },
52
+ targetAgent: { type: "string", default: "tech-stack" },
53
+ debounceMs: { type: "number", default: 3e3 }
54
+ }
40
55
  }
41
56
  }
42
57
  },
@@ -84,26 +99,15 @@ var plugin = {
84
99
  if (autoIndex && isIndexableFile(fullPath)) {
85
100
  debounceEvent(`index:${fullPath}`, async () => {
86
101
  try {
87
- const { runIndexer } = await import('@wrongstack/tools/codebase-index/index.js');
102
+ const { enqueueReindex } = await import('@wrongstack/tools/codebase-index/index.js');
88
103
  const root = indexProjectRoot || dirPath;
89
- const fakeAppend = async () => {
90
- };
91
- const fakeClose = async () => {
92
- };
93
- const fakeRecordFileChange = () => {
94
- };
95
- const ctx = {
104
+ enqueueReindex({
96
105
  projectRoot: root,
97
- cwd: root,
98
- messages: [],
99
- todos: [],
100
- readFiles: /* @__PURE__ */ new Set(),
101
- fileMtimes: /* @__PURE__ */ new Map(),
102
- session: { id: "fw", append: fakeAppend, close: fakeClose, recordFileChange: fakeRecordFileChange }
103
- };
104
- await runIndexer(ctx, { projectRoot: root, files: [fullPath] });
106
+ files: [fullPath],
107
+ onError: (err) => api.log.warn(`file-watcher: auto-index failed for ${fullPath}: ${err}`)
108
+ });
105
109
  api.metrics.counter("index_file", 1);
106
- api.log.debug(`file-watcher: auto-index triggered for ${fullPath}`);
110
+ api.log.debug(`file-watcher: auto-index scheduled for ${fullPath}`);
107
111
  } catch (err) {
108
112
  api.log.warn(`file-watcher: auto-index failed for ${fullPath}: ${err}`);
109
113
  }
@@ -10,7 +10,8 @@ function runGit(args, cwd) {
10
10
  cwd,
11
11
  stdio: ["pipe", "pipe", "pipe"],
12
12
  timeout: 3e4,
13
- maxBuffer: 10 * 1024 * 1024
13
+ maxBuffer: 10 * 1024 * 1024,
14
+ windowsHide: true
14
15
  }).trim();
15
16
  } catch (err) {
16
17
  const e = err;
package/dist/index.js CHANGED
@@ -251,7 +251,8 @@ function runGit(args, cwd) {
251
251
  cwd,
252
252
  stdio: ["pipe", "pipe", "pipe"],
253
253
  timeout: 3e4,
254
- maxBuffer: 10 * 1024 * 1024
254
+ maxBuffer: 10 * 1024 * 1024,
255
+ windowsHide: true
255
256
  }).trim();
256
257
  } catch (err) {
257
258
  const e = err;
@@ -669,7 +670,7 @@ var API_VERSION2 = "^0.1.10";
669
670
  function runShellCheck(files, severity, cwd) {
670
671
  if (!existsSync("shellcheck")) {
671
672
  try {
672
- execSync("shellcheck --version", { encoding: "utf-8", stdio: "ignore" });
673
+ execSync("shellcheck --version", { encoding: "utf-8", stdio: "ignore", windowsHide: true });
673
674
  } catch {
674
675
  throw new Error("shellcheck is not installed. Install via: apt install shellcheck / brew install shellcheck");
675
676
  }
@@ -693,7 +694,8 @@ function runShellCheck(files, severity, cwd) {
693
694
  encoding: "utf-8",
694
695
  cwd,
695
696
  stdio: ["pipe", "pipe", "pipe"],
696
- timeout: 6e4
697
+ timeout: 6e4,
698
+ windowsHide: true
697
699
  });
698
700
  } catch (err) {
699
701
  const e = err;
@@ -1123,7 +1125,12 @@ var plugin5 = {
1123
1125
  watchOnStartup: [],
1124
1126
  autoUnwatchOnExit: true,
1125
1127
  autoIndex: false,
1126
- indexProjectRoot: ""
1128
+ indexProjectRoot: "",
1129
+ depWatcher: {
1130
+ enabled: false,
1131
+ targetAgent: "tech-stack",
1132
+ debounceMs: 3e3
1133
+ }
1127
1134
  },
1128
1135
  configSchema: {
1129
1136
  type: "object",
@@ -1140,6 +1147,16 @@ var plugin5 = {
1140
1147
  type: "string",
1141
1148
  default: "",
1142
1149
  description: "Project root directory for the indexer. Defaults to cwd when empty."
1150
+ },
1151
+ depWatcher: {
1152
+ type: "object",
1153
+ default: { enabled: false },
1154
+ description: "Bridge dependency file changes (package.json, go.mod, etc.) to the inter-agent mailbox for tech-stack audits. Requires the mailbox tool to be registered.",
1155
+ properties: {
1156
+ enabled: { type: "boolean", default: false },
1157
+ targetAgent: { type: "string", default: "tech-stack" },
1158
+ debounceMs: { type: "number", default: 3e3 }
1159
+ }
1143
1160
  }
1144
1161
  }
1145
1162
  },
@@ -1187,26 +1204,15 @@ var plugin5 = {
1187
1204
  if (autoIndex && isIndexableFile(fullPath)) {
1188
1205
  debounceEvent(`index:${fullPath}`, async () => {
1189
1206
  try {
1190
- const { runIndexer } = await import('@wrongstack/tools/codebase-index/index.js');
1207
+ const { enqueueReindex } = await import('@wrongstack/tools/codebase-index/index.js');
1191
1208
  const root = indexProjectRoot || dirPath;
1192
- const fakeAppend = async () => {
1193
- };
1194
- const fakeClose = async () => {
1195
- };
1196
- const fakeRecordFileChange = () => {
1197
- };
1198
- const ctx = {
1209
+ enqueueReindex({
1199
1210
  projectRoot: root,
1200
- cwd: root,
1201
- messages: [],
1202
- todos: [],
1203
- readFiles: /* @__PURE__ */ new Set(),
1204
- fileMtimes: /* @__PURE__ */ new Map(),
1205
- session: { id: "fw", append: fakeAppend, close: fakeClose, recordFileChange: fakeRecordFileChange }
1206
- };
1207
- await runIndexer(ctx, { projectRoot: root, files: [fullPath] });
1211
+ files: [fullPath],
1212
+ onError: (err) => api.log.warn(`file-watcher: auto-index failed for ${fullPath}: ${err}`)
1213
+ });
1208
1214
  api.metrics.counter("index_file", 1);
1209
- api.log.debug(`file-watcher: auto-index triggered for ${fullPath}`);
1215
+ api.log.debug(`file-watcher: auto-index scheduled for ${fullPath}`);
1210
1216
  } catch (err) {
1211
1217
  api.log.warn(`file-watcher: auto-index failed for ${fullPath}: ${err}`);
1212
1218
  }
@@ -2415,7 +2421,8 @@ function runGit2(args, cwd) {
2415
2421
  encoding: "utf-8",
2416
2422
  cwd,
2417
2423
  stdio: ["pipe", "pipe", "pipe"],
2418
- timeout: 3e4
2424
+ timeout: 3e4,
2425
+ windowsHide: true
2419
2426
  }).trim();
2420
2427
  } catch (err) {
2421
2428
  const e = err;
@@ -10,7 +10,8 @@ function runGit(args, cwd) {
10
10
  encoding: "utf-8",
11
11
  cwd,
12
12
  stdio: ["pipe", "pipe", "pipe"],
13
- timeout: 3e4
13
+ timeout: 3e4,
14
+ windowsHide: true
14
15
  }).trim();
15
16
  } catch (err) {
16
17
  const e = err;
@@ -7,7 +7,7 @@ var API_VERSION = "^0.1.10";
7
7
  function runShellCheck(files, severity, cwd) {
8
8
  if (!existsSync("shellcheck")) {
9
9
  try {
10
- execSync("shellcheck --version", { encoding: "utf-8", stdio: "ignore" });
10
+ execSync("shellcheck --version", { encoding: "utf-8", stdio: "ignore", windowsHide: true });
11
11
  } catch {
12
12
  throw new Error("shellcheck is not installed. Install via: apt install shellcheck / brew install shellcheck");
13
13
  }
@@ -31,7 +31,8 @@ function runShellCheck(files, severity, cwd) {
31
31
  encoding: "utf-8",
32
32
  cwd,
33
33
  stdio: ["pipe", "pipe", "pipe"],
34
- timeout: 6e4
34
+ timeout: 6e4,
35
+ windowsHide: true
35
36
  });
36
37
  } catch (err) {
37
38
  const e = err;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/plugins",
3
- "version": "0.155.0",
3
+ "version": "0.250.0",
4
4
  "description": "Official WrongStack plugin collection — auto-doc, git-autocommit, shell-check, cost-tracker, file-watcher, web-search, json-path, cron, template-engine, semver-bump",
5
5
  "license": "MIT",
6
6
  "author": "ECOSTACK TECHNOLOGY OÜ",
@@ -57,13 +57,13 @@
57
57
  "dist"
58
58
  ],
59
59
  "devDependencies": {
60
- "@types/node": "^22.19.19",
60
+ "@types/node": "^25.9.2",
61
61
  "tsup": "^8.5.1",
62
- "typescript": "^6.0.0",
62
+ "typescript": "^6.0.3",
63
63
  "vitest": "^4.1.8"
64
64
  },
65
65
  "dependencies": {
66
- "@wrongstack/core": "0.155.0"
66
+ "@wrongstack/core": "0.250.0"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "tsup",