@toothfairyai/tfdesign 0.4.7 → 0.4.8

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.js +9 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1096,7 +1096,7 @@ async function runDesignRun(rawArgs) {
1096
1096
  },
1097
1097
  isCanceled: () => canceled
1098
1098
  });
1099
- if (outcome.status === "succeeded") {
1099
+ if (outcome.status === "done") {
1100
1100
  result = await buildResult(base, project, conversationId, {
1101
1101
  rounds: outcome.rounds,
1102
1102
  finalText: outcome.finalText,
@@ -1112,6 +1112,14 @@ async function runDesignRun(rawArgs) {
1112
1112
  if (outcome.status === "canceled") process.exit(130);
1113
1113
  if (outcome.status === "failed") process.exit(4);
1114
1114
  if (outcome.status === "unanswered") process.exit(5);
1115
+ if (!result) {
1116
+ emit({
1117
+ type: "error",
1118
+ code: "NO_RESULT",
1119
+ message: "run finished without a result payload"
1120
+ });
1121
+ process.exit(4);
1122
+ }
1115
1123
  emit({ type: "result", ...result });
1116
1124
  if (!json) printResultSummary(result);
1117
1125
  if (flags.open === true && result.previewUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toothfairyai/tfdesign",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "TF Design — the local design workspace CLI: headless design runs (decks, posters, sites) through the tfdesign daemon, delegable from tfcode.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",