fraim 2.0.361-next.0 → 2.0.361-next.1

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.
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.quoteWindowsArgument = quoteWindowsArgument;
3
4
  exports.spawnViaCmdExe = spawnViaCmdExe;
4
5
  exports.buildCmdExeArgs = buildCmdExeArgs;
5
6
  const child_process_1 = require("child_process");
6
7
  function escapeCmd(value) { return value.replace(/([()\][%!^"`<>&|;, *?])/g, '^$1'); }
8
+ /** Quote one argument for the Windows native CRT command-line decoder. */
9
+ function quoteWindowsArgument(value) {
10
+ return `"${value.replace(/(\\*)"/g, '$1$1\\"').replace(/(\\+)$/g, '$1$1')}"`;
11
+ }
7
12
  /** Preserve native argv across both parsing passes of a CMD %* forwarding shim. */
8
13
  function forwardingCmdArgument(value, passes = 2) {
9
14
  if (/^[a-zA-Z0-9_./:=+\-]+$/.test(value))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fraim",
3
- "version": "2.0.361-next.0",
3
+ "version": "2.0.361-next.1",
4
4
  "description": "FRAIM core CLI and MCP package.",
5
5
  "main": "index.js",
6
6
  "bin": {