agentic-workflow-manager 9.0.1 → 9.0.2

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.
@@ -19,8 +19,15 @@ const registryRemote = process.env.AWM_PUBLISHED_REGISTRY_REMOTE ?? 'https://git
19
19
  // fail at the provenance assertion rather than silently describe.skip.
20
20
  const enabled = Boolean(cliVersion && registryTag);
21
21
  const acceptance = enabled ? describe : describe.skip;
22
+ // Windows resolves `npm` to `npm.cmd`; spawnSync can't execute a .cmd file
23
+ // directly without a shell — it fails to spawn (status: null) instead of
24
+ // running. git.exe and node.exe are real binaries and don't need this, so
25
+ // scope it narrowly: unconditional shell:true would also apply to the
26
+ // `node -e <script>` call below, and on POSIX Node's shell:true joins args
27
+ // with plain spaces (no escaping), which would corrupt that script argument.
22
28
  function command(cwd, executable, args, env = process.env) {
23
- return (0, child_process_1.spawnSync)(executable, args, { cwd, encoding: 'utf8', env });
29
+ const needsShell = process.platform === 'win32' && executable === 'npm';
30
+ return (0, child_process_1.spawnSync)(executable, args, { cwd, encoding: 'utf8', env, shell: needsShell });
24
31
  }
25
32
  /** Published evidence accepts only exact versions and immutable git tags. */
26
33
  function assertImmutableArtifacts(version, tag, commit, remote) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-workflow-manager",
3
- "version": "9.0.1",
3
+ "version": "9.0.2",
4
4
  "main": "dist/src/index.js",
5
5
  "bin": {
6
6
  "awm": "./dist/src/index.js"