poe-code 3.0.50 → 3.0.51

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.
package/dist/index.js CHANGED
@@ -15732,6 +15732,14 @@ function formatElapsed(ms) {
15732
15732
  }
15733
15733
  async function withSpinner(options) {
15734
15734
  const { message, fn, stopMessage, subtext } = options;
15735
+ if (resolveOutputFormat() === "json") {
15736
+ const result = await fn();
15737
+ const sub = subtext ? subtext(result) : void 0;
15738
+ if (sub) {
15739
+ process.stdout.write(sub + "\n");
15740
+ }
15741
+ return result;
15742
+ }
15735
15743
  const noSpinner = process.env.POE_NO_SPINNER === "1";
15736
15744
  const isTTY = process.stdout.isTTY;
15737
15745
  if (noSpinner || !isTTY) {
@@ -36328,7 +36336,7 @@ function registerModelsCommand(program, container) {
36328
36336
  // package.json
36329
36337
  var package_default = {
36330
36338
  name: "poe-code",
36331
- version: "3.0.50",
36339
+ version: "3.0.51",
36332
36340
  description: "CLI tool to configure Poe API for developer workflows.",
36333
36341
  type: "module",
36334
36342
  workspaces: [