@ateam-ai-mobile/core 0.1.2 → 0.1.3

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.d.mts CHANGED
@@ -233,6 +233,12 @@ interface JobProgress {
233
233
  step?: number;
234
234
  total?: number;
235
235
  };
236
+ /** One warm, present-tense, localized line describing the current action
237
+ * (backend statusI18n). Absent when disabled / not yet cached → fall back
238
+ * to raw tokens. */
239
+ humanStatus?: string;
240
+ /** Lookup { rawToken → friendly phrase } for tokens in this snapshot. */
241
+ humanLabels?: Record<string, string>;
236
242
  pendingQuestion?: {
237
243
  inputId: string;
238
244
  question: string;
package/dist/index.d.ts CHANGED
@@ -233,6 +233,12 @@ interface JobProgress {
233
233
  step?: number;
234
234
  total?: number;
235
235
  };
236
+ /** One warm, present-tense, localized line describing the current action
237
+ * (backend statusI18n). Absent when disabled / not yet cached → fall back
238
+ * to raw tokens. */
239
+ humanStatus?: string;
240
+ /** Lookup { rawToken → friendly phrase } for tokens in this snapshot. */
241
+ humanLabels?: Record<string, string>;
236
242
  pendingQuestion?: {
237
243
  inputId: string;
238
244
  question: string;
package/dist/index.js CHANGED
@@ -363,6 +363,8 @@ function snapshotToProgress(snap, rootJobId) {
363
363
  };
364
364
  const liveProgress = extractLiveProgress(snap);
365
365
  if (liveProgress) progress.liveProgress = liveProgress;
366
+ if (typeof snap?.humanStatus === "string" && snap.humanStatus) progress.humanStatus = snap.humanStatus;
367
+ if (snap?.humanLabels && typeof snap.humanLabels === "object") progress.humanLabels = snap.humanLabels;
366
368
  if (pq) {
367
369
  progress.pendingQuestion = {
368
370
  inputId: pq.correlation_id || pq.correlationId || pq.inputId || "",