@floless/app 0.157.0 → 0.158.0

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/cli-actions.mjs CHANGED
@@ -307,6 +307,13 @@ async function waitForAnswer(first, firstUrl, { deps, call, fail, succeed, json,
307
307
  function finish(p, { fail, succeed, actionMeta }) {
308
308
  const meta = { ...actionMeta, proposalId: p.id, outcome: p.state === 'done' ? 'ok' : p.state };
309
309
  const title = p.title ?? p.actionId;
310
+ // #2427: FloLess's window did its part and left the last click to the person: theirs to finish, so say that.
311
+ if (p.state === 'done' && p.result?.code === 'step-handed-over') {
312
+ const lines = [`Waiting for you in FloLess: ${p.summary ?? title}.`];
313
+ if (p.result.message) lines.push(p.result.message);
314
+ // Additive: outcome stays 'ok' and the exit 0, so existing readers keep working; these say it waits on the person.
315
+ return succeed({ proposal: p, waitingForPerson: true }, lines, { ...meta, handedOver: true });
316
+ }
310
317
  if (p.state === 'done') {
311
318
  const lines = [`Done: ${p.summary ?? title}.`];
312
319
  if (p.doneNote) lines.push(p.doneNote);