@seekrit/cli 0.23.1 → 0.23.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1976,7 +1976,7 @@ function isServiceToken(value) {
1976
1976
  }
1977
1977
  //#endregion
1978
1978
  //#region package.json
1979
- var version = "0.23.1";
1979
+ var version = "0.23.2";
1980
1980
  //#endregion
1981
1981
  //#region ../../packages/api-client/src/index.ts
1982
1982
  var SeekritApiError = class extends Error {
@@ -4582,12 +4582,14 @@ program.command("run").description("run a command with decrypted secrets injecte
4582
4582
  for (const name of Object.keys(values)) if (process.env[name] !== void 0 && process.env[name] !== values[name]) provenance[name] = "env";
4583
4583
  printExplain(provenance);
4584
4584
  }
4585
+ const posix = process.platform !== "win32";
4585
4586
  const child = spawn(cmd, args, {
4586
4587
  stdio: "inherit",
4587
4588
  env: {
4588
4589
  ...values,
4589
4590
  ...process.env
4590
- }
4591
+ },
4592
+ detached: posix
4591
4593
  });
4592
4594
  const signals = [
4593
4595
  "SIGINT",
@@ -4596,7 +4598,12 @@ program.command("run").description("run a command with decrypted secrets injecte
4596
4598
  "SIGQUIT"
4597
4599
  ];
4598
4600
  const forward = (signal) => {
4599
- if (child.exitCode === null && child.signalCode === null) child.kill(signal);
4601
+ if (child.exitCode !== null || child.signalCode !== null) return;
4602
+ if (posix && child.pid) try {
4603
+ process.kill(-child.pid, signal);
4604
+ return;
4605
+ } catch {}
4606
+ child.kill(signal);
4600
4607
  };
4601
4608
  for (const signal of signals) process.on(signal, forward);
4602
4609
  child.on("exit", (code, signal) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekrit/cli",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "description": "End-to-end encrypted secrets manager CLI — inject decrypted secrets into any command.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -27,8 +27,8 @@
27
27
  "@types/node": "^26.1.0",
28
28
  "tsdown": "^0.22.3",
29
29
  "@seekrit/api-client": "0.0.1",
30
- "@seekrit/crypto": "0.0.1",
31
- "@seekrit/core": "0.0.1"
30
+ "@seekrit/core": "0.0.1",
31
+ "@seekrit/crypto": "0.0.1"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsdown",