ftown-bridge 0.19.32 → 0.19.33

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,4 +1,4 @@
1
- /** Preserve command text without ConPTY/Windows argv quoting it a second time. */
1
+ /** Select the platform shell without bypassing policy or encoding command text. */
2
2
  export declare function directShellCommand(command: string, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): {
3
3
  file: string;
4
4
  args: string[];
@@ -1,12 +1,12 @@
1
1
  import { win32 } from 'node:path';
2
- /** Preserve command text without ConPTY/Windows argv quoting it a second time. */
2
+ /** Select the platform shell without bypassing policy or encoding command text. */
3
3
  export function directShellCommand(command, platform = process.platform, env = process.env) {
4
4
  if (platform === 'win32') {
5
5
  const root = env.SystemRoot || env.SYSTEMROOT || 'C:\\Windows';
6
6
  return {
7
7
  file: win32.join(root, 'System32', 'WindowsPowerShell', 'v1.0', 'powershell.exe'),
8
- args: ['-NoLogo', '-NoProfile', '-ExecutionPolicy', 'Bypass', '-EncodedCommand',
9
- Buffer.from(`$ErrorActionPreference = 'Stop'\n${command}\nexit $LASTEXITCODE`, 'utf16le').toString('base64')],
8
+ args: ['-NoLogo', '-NoProfile', '-Command',
9
+ `$ErrorActionPreference = 'Stop'\n${command}\nexit $LASTEXITCODE`],
10
10
  };
11
11
  }
12
12
  return { file: '/bin/zsh', args: ['-l', '-c', command] };
@@ -1 +1 @@
1
- {"version":3,"file":"direct-shell.js","sourceRoot":"","sources":["../src/direct-shell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,kFAAkF;AAClF,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,WAA4B,OAAO,CAAC,QAAQ,EAC5C,MAAyB,OAAO,CAAC,GAAG;IAEpC,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,IAAI,GAAG,CAAC,UAAU,IAA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1
  {
2
2
  "name": "ftown-bridge",
3
- "version": "0.19.32",
3
+ "version": "0.19.33",
4
4
  "description": "CLI bridge for ftown — generic PTY-over-Centrifugo relay",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",