@adhdev/mesh-shared 1.0.82-rc.35 → 1.0.82-rc.36

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.
@@ -41,6 +41,13 @@ export interface ModelSelection {
41
41
  /** Last value the provider itself reported (statusline, native history). */
42
42
  observed?: string;
43
43
  observedAt?: number;
44
+ /**
45
+ * The provider SILENTLY substituted another model for the requested one
46
+ * (antigravity: `model X is not recognized … Using "Y" instead`). `observed`
47
+ * then holds the model actually running. P2P/launch-record only — the
48
+ * server path never carries it (see the content boundary above).
49
+ */
50
+ fallback?: boolean;
44
51
  /** Every value change in order. The last entry is the value in force. */
45
52
  history: ModelSelectionHistoryEntry[];
46
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/mesh-shared",
3
- "version": "1.0.82-rc.35",
3
+ "version": "1.0.82-rc.36",
4
4
  "description": "ADHDev mesh-shared — pure mesh/git status normalizers shared by daemon-core and web-core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -101,6 +101,13 @@ export interface ModelSelection {
101
101
  /** Last value the provider itself reported (statusline, native history). */
102
102
  observed?: string
103
103
  observedAt?: number
104
+ /**
105
+ * The provider SILENTLY substituted another model for the requested one
106
+ * (antigravity: `model X is not recognized … Using "Y" instead`). `observed`
107
+ * then holds the model actually running. P2P/launch-record only — the
108
+ * server path never carries it (see the content boundary above).
109
+ */
110
+ fallback?: boolean
104
111
  /** Every value change in order. The last entry is the value in force. */
105
112
  history: ModelSelectionHistoryEntry[]
106
113
  }
@@ -206,6 +213,7 @@ function parseModelSelection(raw: unknown): ModelSelection | undefined {
206
213
  const current = readString(record.current)
207
214
  const observed = readString(record.observed)
208
215
  const observedAt = readFiniteNumber(record.observedAt)
216
+ const fallback = record.fallback === true
209
217
  return {
210
218
  source: isModelAxisSource(record.source) ? record.source : 'unspecified',
211
219
  ...(requested ? { requested } : {}),
@@ -214,6 +222,7 @@ function parseModelSelection(raw: unknown): ModelSelection | undefined {
214
222
  ...(current ? { current } : {}),
215
223
  ...(observed ? { observed } : {}),
216
224
  ...(observedAt !== undefined ? { observedAt } : {}),
225
+ ...(fallback ? { fallback } : {}),
217
226
  history: history.slice(-MODEL_SELECTION_HISTORY_LIMIT),
218
227
  }
219
228
  }