@ai-matrx/agents 0.59.214 → 0.59.216

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.
@@ -331,6 +331,14 @@ interface ModelRecords {
331
331
  loadModelClasses(modelId: string): Promise<void>;
332
332
  /** The durable label of a model outside the options list. Never throws. */
333
333
  loadIdentity(modelId: string): Promise<void>;
334
+ /**
335
+ * The catalog changed upstream (a `catalog_changed` notice: an admin renamed, offered or retired a model):
336
+ * re-read everything this instance already read — the options list, every full record, every identity,
337
+ * the class index and slices, every pinned class's controls — and swap each in when it answers. The old
338
+ * rows stay on screen until then (no blank pill, no flicker); a failed re-read keeps them and reports
339
+ * through the error sink. Reads nothing that was never read. Never throws.
340
+ */
341
+ refresh(): Promise<void>;
334
342
  /**
335
343
  * Answer `loadModel` + `loadModelClasses` for one model from rows a batched
336
344
  * route read already returned (`chat.route_seed`): its `ai.model_config` row
@@ -331,6 +331,14 @@ interface ModelRecords {
331
331
  loadModelClasses(modelId: string): Promise<void>;
332
332
  /** The durable label of a model outside the options list. Never throws. */
333
333
  loadIdentity(modelId: string): Promise<void>;
334
+ /**
335
+ * The catalog changed upstream (a `catalog_changed` notice: an admin renamed, offered or retired a model):
336
+ * re-read everything this instance already read — the options list, every full record, every identity,
337
+ * the class index and slices, every pinned class's controls — and swap each in when it answers. The old
338
+ * rows stay on screen until then (no blank pill, no flicker); a failed re-read keeps them and reports
339
+ * through the error sink. Reads nothing that was never read. Never throws.
340
+ */
341
+ refresh(): Promise<void>;
334
342
  /**
335
343
  * Answer `loadModel` + `loadModelClasses` for one model from rows a batched
336
344
  * route read already returned (`chat.route_seed`): its `ai.model_config` row