@wrongstack/plugins 0.148.0 → 0.236.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
  },
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { execFileSync, execSync } from 'child_process';
2
2
  import { watch, existsSync, readdirSync, readFileSync } from 'fs';
3
3
  import * as path from 'path';
4
4
  import { isAbsolute, join } from 'path';
5
- import { expectDefined } from '@wrongstack/core';
5
+ import { expectDefined, deepMerge as deepMerge$1 } from '@wrongstack/core';
6
6
  import { lookup } from 'dns/promises';
7
7
  import { isIPv4, isIPv6 } from 'net';
8
8
 
@@ -1123,7 +1123,12 @@ var plugin5 = {
1123
1123
  watchOnStartup: [],
1124
1124
  autoUnwatchOnExit: true,
1125
1125
  autoIndex: false,
1126
- indexProjectRoot: ""
1126
+ indexProjectRoot: "",
1127
+ depWatcher: {
1128
+ enabled: false,
1129
+ targetAgent: "tech-stack",
1130
+ debounceMs: 3e3
1131
+ }
1127
1132
  },
1128
1133
  configSchema: {
1129
1134
  type: "object",
@@ -1140,6 +1145,16 @@ var plugin5 = {
1140
1145
  type: "string",
1141
1146
  default: "",
1142
1147
  description: "Project root directory for the indexer. Defaults to cwd when empty."
1148
+ },
1149
+ depWatcher: {
1150
+ type: "object",
1151
+ default: { enabled: false },
1152
+ 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.",
1153
+ properties: {
1154
+ enabled: { type: "boolean", default: false },
1155
+ targetAgent: { type: "string", default: "tech-stack" },
1156
+ debounceMs: { type: "number", default: 3e3 }
1157
+ }
1143
1158
  }
1144
1159
  }
1145
1160
  },
@@ -1773,32 +1788,7 @@ function validateJsonSchema(data, schema) {
1773
1788
  return { valid: errors.length === 0, errors };
1774
1789
  }
1775
1790
  function deepMerge(base, patch, conflictResolution = "prefer-patch") {
1776
- if (typeof base !== "object" || base === null || typeof patch !== "object" || patch === null) {
1777
- return conflictResolution === "prefer-patch" ? patch : base;
1778
- }
1779
- if (Array.isArray(base) && Array.isArray(patch)) {
1780
- return conflictResolution === "prefer-patch" ? patch : base;
1781
- }
1782
- const result = {};
1783
- const baseObj = base;
1784
- const patchObj = patch;
1785
- const allKeys = /* @__PURE__ */ new Set([...Object.keys(baseObj), ...Object.keys(patchObj)]);
1786
- for (const key of allKeys) {
1787
- const baseVal = baseObj[key];
1788
- const patchVal = patchObj[key];
1789
- if (key in baseObj && key in patchObj) {
1790
- if (typeof baseVal === "object" && baseVal !== null && typeof patchVal === "object" && patchVal !== null && !Array.isArray(baseVal) && !Array.isArray(patchVal)) {
1791
- result[key] = deepMerge(baseVal, patchVal, conflictResolution);
1792
- } else {
1793
- result[key] = conflictResolution === "prefer-patch" ? patchVal : baseVal;
1794
- }
1795
- } else if (key in baseObj) {
1796
- result[key] = baseVal;
1797
- } else {
1798
- result[key] = patchVal;
1799
- }
1800
- }
1801
- return result;
1791
+ return deepMerge$1(base, patch, { conflictResolution });
1802
1792
  }
1803
1793
  var plugin7 = {
1804
1794
  name: "json-path",
package/dist/json-path.js CHANGED
@@ -1,4 +1,4 @@
1
- import { expectDefined } from '@wrongstack/core';
1
+ import { expectDefined, deepMerge as deepMerge$1 } from '@wrongstack/core';
2
2
 
3
3
  // src/json-path/index.ts
4
4
  var API_VERSION = "^0.1.10";
@@ -142,32 +142,7 @@ function validateJsonSchema(data, schema) {
142
142
  return { valid: errors.length === 0, errors };
143
143
  }
144
144
  function deepMerge(base, patch, conflictResolution = "prefer-patch") {
145
- if (typeof base !== "object" || base === null || typeof patch !== "object" || patch === null) {
146
- return conflictResolution === "prefer-patch" ? patch : base;
147
- }
148
- if (Array.isArray(base) && Array.isArray(patch)) {
149
- return conflictResolution === "prefer-patch" ? patch : base;
150
- }
151
- const result = {};
152
- const baseObj = base;
153
- const patchObj = patch;
154
- const allKeys = /* @__PURE__ */ new Set([...Object.keys(baseObj), ...Object.keys(patchObj)]);
155
- for (const key of allKeys) {
156
- const baseVal = baseObj[key];
157
- const patchVal = patchObj[key];
158
- if (key in baseObj && key in patchObj) {
159
- if (typeof baseVal === "object" && baseVal !== null && typeof patchVal === "object" && patchVal !== null && !Array.isArray(baseVal) && !Array.isArray(patchVal)) {
160
- result[key] = deepMerge(baseVal, patchVal, conflictResolution);
161
- } else {
162
- result[key] = conflictResolution === "prefer-patch" ? patchVal : baseVal;
163
- }
164
- } else if (key in baseObj) {
165
- result[key] = baseVal;
166
- } else {
167
- result[key] = patchVal;
168
- }
169
- }
170
- return result;
145
+ return deepMerge$1(base, patch, { conflictResolution });
171
146
  }
172
147
  var plugin = {
173
148
  name: "json-path",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/plugins",
3
- "version": "0.148.0",
3
+ "version": "0.236.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.148.0"
66
+ "@wrongstack/core": "0.236.0"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "tsup",