@dotobokuri/fleet-console 1.26.1 → 1.26.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.
@@ -33506,12 +33506,18 @@ function buildHostShellCommand(values, platform = process.platform) {
33506
33506
  if (platform === "win32") return values.map(windowsShellQuote).join(" ");
33507
33507
  return buildPosixShellCommand(values);
33508
33508
  }
33509
+ function buildPowerShellCommand(values) {
33510
+ return `& ${values.map(powerShellQuote).join(" ")}`;
33511
+ }
33509
33512
  function posixShellQuote(value) {
33510
33513
  return `'${value.replaceAll("'", "'\\''")}'`;
33511
33514
  }
33512
33515
  function windowsShellQuote(value) {
33513
33516
  return `"${value.replaceAll('"', '""')}"`;
33514
33517
  }
33518
+ function powerShellQuote(value) {
33519
+ return `'${value.replaceAll("'", "''")}'`;
33520
+ }
33515
33521
 
33516
33522
  // ../../packages/fleet-admiral/src/agent-cli/builders/codex.ts
33517
33523
  var CODEX_TOOL_TIMEOUT_SEC = 1800;
@@ -34598,7 +34604,8 @@ function codexHooksConfig(hookExecs) {
34598
34604
  function codexHookHandlersInline(execs) {
34599
34605
  const handlers = execs.map((exec) => {
34600
34606
  const command = buildHostShellCommand([exec.command, ...exec.args]);
34601
- return `{ type = "command", command = "${escapeTomlBasicString(command)}" }`;
34607
+ const commandWindows = buildPowerShellCommand([exec.command, ...exec.args]);
34608
+ return `{ type = "command", command = "${escapeTomlBasicString(command)}", command_windows = "${escapeTomlBasicString(commandWindows)}" }`;
34602
34609
  }).join(", ");
34603
34610
  return `[{ hooks = [${handlers}] }]`;
34604
34611
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotobokuri/fleet-console",
3
- "version": "1.26.1",
3
+ "version": "1.26.2",
4
4
  "description": "Fleet Console - standalone web surface for observing Fleet CLI workspaces, carrier jobs, live output streams, and terminals.",
5
5
  "repository": {
6
6
  "type": "git",