@zeniai/client-epic-state 5.2.11-betaRD4 → 5.2.11-betaRD5

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.
@@ -21,6 +21,7 @@ export interface JEScheduleAISummaryFieldPayload {
21
21
  }
22
22
  /** The whole-recommendation summary. Carries narrative only -- no predicted value, no confidence. */
23
23
  export interface JEScheduleSummaryPayload {
24
+ confidence?: number;
24
25
  cot?: string[];
25
26
  reasoning?: string;
26
27
  reasoning_long?: string;
@@ -244,6 +244,7 @@ function toJEScheduleAISummaries(payload) {
244
244
  }
245
245
  if (payload.schedule_summary != null) {
246
246
  result.scheduleSummary = {
247
+ confidence: payload.schedule_summary.confidence,
247
248
  reasoning: payload.schedule_summary.reasoning,
248
249
  reasoningLong: payload.schedule_summary.reasoning_long,
249
250
  cot: Array.isArray(payload.schedule_summary.cot)
@@ -22,10 +22,13 @@ export interface JEScheduleFieldRecommendation {
22
22
  /**
23
23
  * The agent's summary of the whole recommendation, as opposed to one field of it.
24
24
  *
25
- * No confidence: the producing side models this as narrative only, so anything showing a confidence
26
- * alongside it has to read the schedule's own `confidenceScore`.
25
+ * `confidence` is mapped but not yet produced: the schedule's own `confidence_score` column arrives
26
+ * null on every agent-written schedule, and agent-je's ScheduleSummary currently carries narrative
27
+ * only. Whichever of the two the backend starts populating, the UI picks it up without a change
28
+ * here -- and until one of them does, the popover shows no confidence rather than a made-up one.
27
29
  */
28
30
  export interface JEScheduleSummary {
31
+ confidence?: number;
29
32
  cot?: string[];
30
33
  reasoning?: string;
31
34
  reasoningLong?: string;
@@ -233,6 +233,7 @@ function toJEScheduleAISummaries(payload) {
233
233
  }
234
234
  if (payload.schedule_summary != null) {
235
235
  result.scheduleSummary = {
236
+ confidence: payload.schedule_summary.confidence,
236
237
  reasoning: payload.schedule_summary.reasoning,
237
238
  reasoningLong: payload.schedule_summary.reasoning_long,
238
239
  cot: Array.isArray(payload.schedule_summary.cot)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.2.11-betaRD4",
3
+ "version": "5.2.11-betaRD5",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",