@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.
package/dist/index.d.mts CHANGED
@@ -1272,6 +1272,24 @@ type MentalModelTrigger = {
1272
1272
  * If true, refresh this mental model after observations consolidation (real-time mode)
1273
1273
  */
1274
1274
  refresh_after_consolidation?: boolean;
1275
+ /**
1276
+ * Fact Types
1277
+ *
1278
+ * Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
1279
+ */
1280
+ fact_types?: Array<"world" | "experience" | "observation"> | null;
1281
+ /**
1282
+ * Exclude Mental Models
1283
+ *
1284
+ * If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
1285
+ */
1286
+ exclude_mental_models?: boolean;
1287
+ /**
1288
+ * Exclude Mental Model Ids
1289
+ *
1290
+ * Exclude specific mental models by ID from the reflect loop.
1291
+ */
1292
+ exclude_mental_model_ids?: Array<string> | null;
1275
1293
  };
1276
1294
  /**
1277
1295
  * OperationResponse
@@ -1748,6 +1766,24 @@ type ReflectRequest = {
1748
1766
  * Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
1749
1767
  */
1750
1768
  tag_groups?: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot> | null;
1769
+ /**
1770
+ * Fact Types
1771
+ *
1772
+ * Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
1773
+ */
1774
+ fact_types?: Array<"world" | "experience" | "observation"> | null;
1775
+ /**
1776
+ * Exclude Mental Models
1777
+ *
1778
+ * If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
1779
+ */
1780
+ exclude_mental_models?: boolean;
1781
+ /**
1782
+ * Exclude Mental Model Ids
1783
+ *
1784
+ * Exclude specific mental models by ID from the reflect loop.
1785
+ */
1786
+ exclude_mental_model_ids?: Array<string> | null;
1751
1787
  };
1752
1788
  /**
1753
1789
  * ReflectResponse
@@ -5343,6 +5379,7 @@ declare class HindsightClient {
5343
5379
  * Create a mental model (runs reflect in background).
5344
5380
  */
5345
5381
  createMentalModel(bankId: string, name: string, sourceQuery: string, options?: {
5382
+ id?: string;
5346
5383
  tags?: string[];
5347
5384
  maxTokens?: number;
5348
5385
  trigger?: {
@@ -5379,6 +5416,10 @@ declare class HindsightClient {
5379
5416
  * Delete a mental model.
5380
5417
  */
5381
5418
  deleteMentalModel(bankId: string, mentalModelId: string): Promise<void>;
5419
+ /**
5420
+ * Get the change history of a mental model.
5421
+ */
5422
+ getMentalModelHistory(bankId: string, mentalModelId: string): Promise<any>;
5382
5423
  }
5383
5424
 
5384
5425
  export { type BankConfigResponse, type BankProfileResponse, type Budget, type Client, type CreateBankRequest, type EntityInput, type FileRetainResponse, HindsightClient, type HindsightClientOptions, HindsightError, type ListMemoryUnitsResponse, type MemoryItemInput, type RecallRequest, type RecallResponse, type RecallResult, type ReflectRequest, type ReflectResponse, type RetainRequest, type RetainResponse, createClient, createConfig, sdk_gen as sdk };
package/dist/index.d.ts CHANGED
@@ -1272,6 +1272,24 @@ type MentalModelTrigger = {
1272
1272
  * If true, refresh this mental model after observations consolidation (real-time mode)
1273
1273
  */
1274
1274
  refresh_after_consolidation?: boolean;
1275
+ /**
1276
+ * Fact Types
1277
+ *
1278
+ * Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
1279
+ */
1280
+ fact_types?: Array<"world" | "experience" | "observation"> | null;
1281
+ /**
1282
+ * Exclude Mental Models
1283
+ *
1284
+ * If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
1285
+ */
1286
+ exclude_mental_models?: boolean;
1287
+ /**
1288
+ * Exclude Mental Model Ids
1289
+ *
1290
+ * Exclude specific mental models by ID from the reflect loop.
1291
+ */
1292
+ exclude_mental_model_ids?: Array<string> | null;
1275
1293
  };
1276
1294
  /**
1277
1295
  * OperationResponse
@@ -1748,6 +1766,24 @@ type ReflectRequest = {
1748
1766
  * Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
1749
1767
  */
1750
1768
  tag_groups?: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot> | null;
1769
+ /**
1770
+ * Fact Types
1771
+ *
1772
+ * Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
1773
+ */
1774
+ fact_types?: Array<"world" | "experience" | "observation"> | null;
1775
+ /**
1776
+ * Exclude Mental Models
1777
+ *
1778
+ * If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
1779
+ */
1780
+ exclude_mental_models?: boolean;
1781
+ /**
1782
+ * Exclude Mental Model Ids
1783
+ *
1784
+ * Exclude specific mental models by ID from the reflect loop.
1785
+ */
1786
+ exclude_mental_model_ids?: Array<string> | null;
1751
1787
  };
1752
1788
  /**
1753
1789
  * ReflectResponse
@@ -5343,6 +5379,7 @@ declare class HindsightClient {
5343
5379
  * Create a mental model (runs reflect in background).
5344
5380
  */
5345
5381
  createMentalModel(bankId: string, name: string, sourceQuery: string, options?: {
5382
+ id?: string;
5346
5383
  tags?: string[];
5347
5384
  maxTokens?: number;
5348
5385
  trigger?: {
@@ -5379,6 +5416,10 @@ declare class HindsightClient {
5379
5416
  * Delete a mental model.
5380
5417
  */
5381
5418
  deleteMentalModel(bankId: string, mentalModelId: string): Promise<void>;
5419
+ /**
5420
+ * Get the change history of a mental model.
5421
+ */
5422
+ getMentalModelHistory(bankId: string, mentalModelId: string): Promise<any>;
5382
5423
  }
5383
5424
 
5384
5425
  export { type BankConfigResponse, type BankProfileResponse, type Budget, type Client, type CreateBankRequest, type EntityInput, type FileRetainResponse, HindsightClient, type HindsightClientOptions, HindsightError, type ListMemoryUnitsResponse, type MemoryItemInput, type RecallRequest, type RecallResponse, type RecallResult, type ReflectRequest, type ReflectResponse, type RetainRequest, type RetainResponse, createClient, createConfig, sdk_gen as sdk };
package/dist/index.js CHANGED
@@ -1516,6 +1516,7 @@ var HindsightClient = class {
1516
1516
  client: this.client,
1517
1517
  path: { bank_id: bankId },
1518
1518
  body: {
1519
+ id: options?.id,
1519
1520
  name,
1520
1521
  source_query: sourceQuery,
1521
1522
  tags: options?.tags,
@@ -1585,6 +1586,16 @@ var HindsightClient = class {
1585
1586
  throw new Error(`deleteMentalModel failed: ${JSON.stringify(response.error)}`);
1586
1587
  }
1587
1588
  }
1589
+ /**
1590
+ * Get the change history of a mental model.
1591
+ */
1592
+ async getMentalModelHistory(bankId, mentalModelId) {
1593
+ const response = await getMentalModelHistory({
1594
+ client: this.client,
1595
+ path: { bank_id: bankId, mental_model_id: mentalModelId }
1596
+ });
1597
+ return this.validateResponse(response, "getMentalModelHistory");
1598
+ }
1588
1599
  };
1589
1600
  // Annotate the CommonJS export names for ESM import in node:
1590
1601
  0 && (module.exports = {