@umbra-privacy/qos-ceremony 0.1.1 → 0.1.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-cli/cli.js +11 -1
  2. package/package.json +2 -2
package/dist-cli/cli.js CHANGED
@@ -32966,9 +32966,19 @@ function resolveQosBin(explicit) {
32966
32966
  if (explicit) return explicit;
32967
32967
  if (process.env.QOS_CLIENT_BIN) return process.env.QOS_CLIENT_BIN;
32968
32968
  const embedded = (0, import_node_path2.join)(__dirname, "bin", `qos_client-${process.platform}-${process.arch}`);
32969
- if ((0, import_node_fs2.existsSync)(embedded)) return embedded;
32969
+ if ((0, import_node_fs2.existsSync)(embedded)) {
32970
+ ensureExecutable(embedded);
32971
+ return embedded;
32972
+ }
32970
32973
  return void 0;
32971
32974
  }
32975
+ function ensureExecutable(path) {
32976
+ try {
32977
+ const mode = (0, import_node_fs2.statSync)(path).mode;
32978
+ if ((mode & 73) !== 73) (0, import_node_fs2.chmodSync)(path, mode | 493);
32979
+ } catch {
32980
+ }
32981
+ }
32972
32982
 
32973
32983
  // src/commands/keygen.ts
32974
32984
  async function keygen(o3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbra-privacy/qos-ceremony",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "QOS TEE operator ceremony CLI — keygen/share/approve/provision + shift-traffic over the coordinator API. All crypto runs in qos_client (embedded for common platforms); your private key never leaves the device. Ships NO coordinator code.",
5
5
  "keywords": [
6
6
  "qos",
@@ -44,6 +44,6 @@
44
44
  "typecheck": "tsc -p tsconfig.json --noEmit",
45
45
  "test": "vitest run",
46
46
  "bundle:cli": "esbuild src/cli.ts --bundle --platform=node --target=node20 --format=cjs --outfile=dist-cli/cli.js && chmod +x dist-cli/cli.js",
47
- "embed:qos": "mkdir -p dist-cli/bin && ( [ -f ../../../qos/target/release/qos_client ] && cp -L ../../../qos/target/release/qos_client dist-cli/bin/qos_client-darwin-arm64 || true ) && ( [ -f ../ceremony/dist-lambda/qos_client ] && cp -L ../ceremony/dist-lambda/qos_client dist-cli/bin/qos_client-linux-x64 || true ) && ls -la dist-cli/bin"
47
+ "embed:qos": "mkdir -p dist-cli/bin && ( [ -f ../../../qos/target/release/qos_client ] && cp -L ../../../qos/target/release/qos_client dist-cli/bin/qos_client-darwin-arm64 || true ) && ( [ -f ../ceremony/dist-lambda/qos_client ] && cp -L ../ceremony/dist-lambda/qos_client dist-cli/bin/qos_client-linux-x64 || true ) && ( chmod +x dist-cli/bin/* 2>/dev/null || true ) && ls -la dist-cli/bin"
48
48
  }
49
49
  }