@vectorize-io/hindsight-client 0.4.19 → 0.4.20

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.
@@ -1331,6 +1331,24 @@ export type MentalModelTrigger = {
1331
1331
  * If true, refresh this mental model after observations consolidation (real-time mode)
1332
1332
  */
1333
1333
  refresh_after_consolidation?: boolean;
1334
+ /**
1335
+ * Fact Types
1336
+ *
1337
+ * Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
1338
+ */
1339
+ fact_types?: Array<"world" | "experience" | "observation"> | null;
1340
+ /**
1341
+ * Exclude Mental Models
1342
+ *
1343
+ * If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
1344
+ */
1345
+ exclude_mental_models?: boolean;
1346
+ /**
1347
+ * Exclude Mental Model Ids
1348
+ *
1349
+ * Exclude specific mental models by ID from the reflect loop.
1350
+ */
1351
+ exclude_mental_model_ids?: Array<string> | null;
1334
1352
  };
1335
1353
 
1336
1354
  /**
@@ -1825,6 +1843,24 @@ export type ReflectRequest = {
1825
1843
  tag_groups?: Array<
1826
1844
  TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot
1827
1845
  > | null;
1846
+ /**
1847
+ * Fact Types
1848
+ *
1849
+ * Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
1850
+ */
1851
+ fact_types?: Array<"world" | "experience" | "observation"> | null;
1852
+ /**
1853
+ * Exclude Mental Models
1854
+ *
1855
+ * If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
1856
+ */
1857
+ exclude_mental_models?: boolean;
1858
+ /**
1859
+ * Exclude Mental Model Ids
1860
+ *
1861
+ * Exclude specific mental models by ID from the reflect loop.
1862
+ */
1863
+ exclude_mental_model_ids?: Array<string> | null;
1828
1864
  };
1829
1865
 
1830
1866
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectorize-io/hindsight-client",
3
- "version": "0.4.19",
3
+ "version": "0.4.20",
4
4
  "description": "TypeScript client for Hindsight - Semantic memory system with personality-driven thinking",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
package/src/index.ts CHANGED
@@ -628,6 +628,7 @@ export class HindsightClient {
628
628
  name: string,
629
629
  sourceQuery: string,
630
630
  options?: {
631
+ id?: string;
631
632
  tags?: string[];
632
633
  maxTokens?: number;
633
634
  trigger?: { refreshAfterConsolidation?: boolean };
@@ -637,6 +638,7 @@ export class HindsightClient {
637
638
  client: this.client,
638
639
  path: { bank_id: bankId },
639
640
  body: {
641
+ id: options?.id,
640
642
  name,
641
643
  source_query: sourceQuery,
642
644
  tags: options?.tags,
@@ -726,6 +728,18 @@ export class HindsightClient {
726
728
  throw new Error(`deleteMentalModel failed: ${JSON.stringify(response.error)}`);
727
729
  }
728
730
  }
731
+
732
+ /**
733
+ * Get the change history of a mental model.
734
+ */
735
+ async getMentalModelHistory(bankId: string, mentalModelId: string): Promise<any> {
736
+ const response = await sdk.getMentalModelHistory({
737
+ client: this.client,
738
+ path: { bank_id: bankId, mental_model_id: mentalModelId },
739
+ });
740
+
741
+ return this.validateResponse(response, 'getMentalModelHistory');
742
+ }
729
743
  }
730
744
 
731
745
  // Re-export types for convenience