kushi-agents 4.2.2 → 4.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kushi-agents",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "Install Kushi — multi-source project evidence agent with snapshot+stream capture across Email, Teams, OneNote, SharePoint, Meetings, CRM, ADO. WorkIQ-only for M365 sources (Graph / m365_* FORBIDDEN as fallbacks; user-paste is first-class). Host-agnostic.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -78,15 +78,23 @@ function findOnPath(name) {
78
78
  }
79
79
 
80
80
  function runVersion(binPath) {
81
- // Windows requires shell:true to spawn .cmd / .bat / shim files. The DEP0190
82
- // warning is harmless here because we control both binPath (resolved via
83
- // `where` / explicit --workiq-path) and args (literal ['--version']).
81
+ // Windows requires shell:true to spawn .cmd / .bat shim files (Node can't
82
+ // exec them directly). To avoid the DEP0190 deprecation warning that fires
83
+ // when args + shell are combined, we put the whole command into the
84
+ // `command` string and pass NO args array. binPath is controlled (resolved
85
+ // via `where` or explicit --workiq-path), and the literal `--version`
86
+ // suffix is hard-coded — no injection surface.
84
87
  const isWin = process.platform === 'win32';
85
- const res = spawnSync(binPath, ['--version'], {
86
- encoding: 'utf-8',
87
- timeout: 10_000,
88
- shell: isWin,
89
- });
88
+ const res = isWin
89
+ ? spawnSync(`"${binPath}" --version`, {
90
+ encoding: 'utf-8',
91
+ timeout: 10_000,
92
+ shell: true,
93
+ })
94
+ : spawnSync(binPath, ['--version'], {
95
+ encoding: 'utf-8',
96
+ timeout: 10_000,
97
+ });
90
98
  if (res.status !== 0) {
91
99
  return {
92
100
  ok: false,