@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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/chat/store.ts +4 -0
- package/src/chat/types.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ateam-ai-mobile/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Headless ADAS SDK core \u2014 auth bridge, API client, chat/job streaming, MCP calls, theme tokens. No UI, no Expo dependencies.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/src/chat/store.ts
CHANGED
|
@@ -128,6 +128,10 @@ function snapshotToProgress(snap: any, rootJobId: string): Partial<JobProgress>
|
|
|
128
128
|
const liveProgress = extractLiveProgress(snap);
|
|
129
129
|
if (liveProgress) progress.liveProgress = liveProgress;
|
|
130
130
|
|
|
131
|
+
// Human-language status (additive; absent when disabled/uncached).
|
|
132
|
+
if (typeof snap?.humanStatus === 'string' && snap.humanStatus) progress.humanStatus = snap.humanStatus;
|
|
133
|
+
if (snap?.humanLabels && typeof snap.humanLabels === 'object') progress.humanLabels = snap.humanLabels;
|
|
134
|
+
|
|
131
135
|
if (pq) {
|
|
132
136
|
progress.pendingQuestion = {
|
|
133
137
|
inputId: pq.correlation_id || pq.correlationId || pq.inputId || '',
|
package/src/chat/types.ts
CHANGED
|
@@ -26,6 +26,12 @@ export interface JobProgress {
|
|
|
26
26
|
resultActions?: UIAction[];
|
|
27
27
|
/** Live progress from adas_emit_progress() — latest event from a running fat tool */
|
|
28
28
|
liveProgress?: { message: string; step?: number; total?: number };
|
|
29
|
+
/** One warm, present-tense, localized line describing the current action
|
|
30
|
+
* (backend statusI18n). Absent when disabled / not yet cached → fall back
|
|
31
|
+
* to raw tokens. */
|
|
32
|
+
humanStatus?: string;
|
|
33
|
+
/** Lookup { rawToken → friendly phrase } for tokens in this snapshot. */
|
|
34
|
+
humanLabels?: Record<string, string>;
|
|
29
35
|
pendingQuestion?: {
|
|
30
36
|
inputId: string;
|
|
31
37
|
question: string;
|