@qpfai/pf-gate-cli 1.0.21 → 1.0.22

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,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-02-17T00:29:14.163Z",
3
+ "generatedAt": "2026-02-17T00:40:00.822Z",
4
4
  "pythonPackage": "persons-field",
5
5
  "pythonPackageVersion": "1.0.0",
6
6
  "wheel": "persons_field-1.0.0-py3-none-any.whl",
7
- "sha256": "03fdc1cc05a98dccc792ca55eed751388b7a5e17cea6097662780b0ae28bcbe0"
7
+ "sha256": "0f408166452091afe429d166111804792868a749d9cbed4f197c668c19dbb262"
8
8
  }
package/lib/main.mjs CHANGED
@@ -169,17 +169,18 @@ function spawnCapture(command, args, options = {}) {
169
169
  }
170
170
 
171
171
  async function runCommandWithSphereSpinner(command, args, message, options = {}) {
172
+ const { failureMessage, successMessage, ...spawnOptions } = options;
172
173
  const stop = startSphereSpinner(message);
173
- const result = await spawnCapture(command, args, options);
174
+ const result = await spawnCapture(command, args, spawnOptions);
174
175
  if (result.error || (result.status ?? 1) !== 0) {
175
- stop(`✗ ${message}`);
176
+ stop(failureMessage || `… ${message}`);
176
177
  const error =
177
178
  result.error ||
178
179
  new Error(`Command failed (${result.status}): ${command} ${args.join(" ")}`);
179
180
  error.commandOutput = `${String(result.stdout || "")}\n${String(result.stderr || "")}`;
180
181
  throw error;
181
182
  }
182
- stop(`✓ ${message}`);
183
+ stop(successMessage || `✓ ${message}`);
183
184
  return result;
184
185
  }
185
186
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qpfai/pf-gate-cli",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "PF Gate terminal launcher with first-run runtime bootstrap.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",