mindgraph 0.2.1 → 0.2.2

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
@@ -30,6 +30,18 @@ interface SearchResult {
30
30
  node_type: string;
31
31
  score: number;
32
32
  }
33
+ interface SearchChunk {
34
+ chunk_uid: string;
35
+ content: string;
36
+ document_uid: string | null;
37
+ document_title: string | null;
38
+ chunk_index: number | null;
39
+ }
40
+ interface EnrichedSearchResponse {
41
+ results: SearchResult[];
42
+ edges: GraphEdge[];
43
+ chunks: SearchChunk[];
44
+ }
33
45
  interface PathStep {
34
46
  uid: string;
35
47
  label: string;
@@ -686,7 +698,10 @@ declare class MindGraph {
686
698
  node_type?: string;
687
699
  layer?: string;
688
700
  limit?: number;
689
- }): Promise<SearchResult[]>;
701
+ min_score?: number;
702
+ include_edges?: boolean;
703
+ include_chunks?: boolean;
704
+ }): Promise<SearchResult[] | EnrichedSearchResponse>;
690
705
  /** Hybrid BM25 + vector search with reciprocal rank fusion. */
691
706
  hybridSearch(query: string, opts?: {
692
707
  k?: number;
@@ -783,4 +798,4 @@ declare class MindGraph {
783
798
  clearGraph(): Promise<ClearResponse>;
784
799
  }
785
800
 
786
- export { type ArgumentRequest, type BatchRequest, type CaptureRequest, type ClearResponse, type CommitmentRequest, type DecayRequest, type DeliberationRequest, type DistillRequest, type EntityRequest, type EventProps, type EvolveRequest, type ExecutionRequest, type GovernanceRequest, type GraphEdge, type GraphNode, type IngestChunkRequest, type IngestChunkResponse, type IngestDocumentRequest, type IngestDocumentResponse, type IngestSessionRequest, type InquiryRequest, type Job, type MemoryConfigRequest, MindGraph, type MindGraphConfig, MindGraphError, type NationProps, type OrganizationProps, type PathStep, type PersonProps, type PlaceProps, type PlanRequest, type ProcedureRequest, type PurgeRequest, type RetrieveContextRequest, type RetrieveContextResponse, type RetrieveRequest, type RiskRequest, type SearchResult, type SessionRequest, type StructureRequest, type TraverseRequest };
801
+ export { type ArgumentRequest, type BatchRequest, type CaptureRequest, type ClearResponse, type CommitmentRequest, type DecayRequest, type DeliberationRequest, type DistillRequest, type EnrichedSearchResponse, type EntityRequest, type EventProps, type EvolveRequest, type ExecutionRequest, type GovernanceRequest, type GraphEdge, type GraphNode, type IngestChunkRequest, type IngestChunkResponse, type IngestDocumentRequest, type IngestDocumentResponse, type IngestSessionRequest, type InquiryRequest, type Job, type MemoryConfigRequest, MindGraph, type MindGraphConfig, MindGraphError, type NationProps, type OrganizationProps, type PathStep, type PersonProps, type PlaceProps, type PlanRequest, type ProcedureRequest, type PurgeRequest, type RetrieveContextRequest, type RetrieveContextResponse, type RetrieveRequest, type RiskRequest, type SearchChunk, type SearchResult, type SessionRequest, type StructureRequest, type TraverseRequest };
package/dist/index.d.ts CHANGED
@@ -30,6 +30,18 @@ interface SearchResult {
30
30
  node_type: string;
31
31
  score: number;
32
32
  }
33
+ interface SearchChunk {
34
+ chunk_uid: string;
35
+ content: string;
36
+ document_uid: string | null;
37
+ document_title: string | null;
38
+ chunk_index: number | null;
39
+ }
40
+ interface EnrichedSearchResponse {
41
+ results: SearchResult[];
42
+ edges: GraphEdge[];
43
+ chunks: SearchChunk[];
44
+ }
33
45
  interface PathStep {
34
46
  uid: string;
35
47
  label: string;
@@ -686,7 +698,10 @@ declare class MindGraph {
686
698
  node_type?: string;
687
699
  layer?: string;
688
700
  limit?: number;
689
- }): Promise<SearchResult[]>;
701
+ min_score?: number;
702
+ include_edges?: boolean;
703
+ include_chunks?: boolean;
704
+ }): Promise<SearchResult[] | EnrichedSearchResponse>;
690
705
  /** Hybrid BM25 + vector search with reciprocal rank fusion. */
691
706
  hybridSearch(query: string, opts?: {
692
707
  k?: number;
@@ -783,4 +798,4 @@ declare class MindGraph {
783
798
  clearGraph(): Promise<ClearResponse>;
784
799
  }
785
800
 
786
- export { type ArgumentRequest, type BatchRequest, type CaptureRequest, type ClearResponse, type CommitmentRequest, type DecayRequest, type DeliberationRequest, type DistillRequest, type EntityRequest, type EventProps, type EvolveRequest, type ExecutionRequest, type GovernanceRequest, type GraphEdge, type GraphNode, type IngestChunkRequest, type IngestChunkResponse, type IngestDocumentRequest, type IngestDocumentResponse, type IngestSessionRequest, type InquiryRequest, type Job, type MemoryConfigRequest, MindGraph, type MindGraphConfig, MindGraphError, type NationProps, type OrganizationProps, type PathStep, type PersonProps, type PlaceProps, type PlanRequest, type ProcedureRequest, type PurgeRequest, type RetrieveContextRequest, type RetrieveContextResponse, type RetrieveRequest, type RiskRequest, type SearchResult, type SessionRequest, type StructureRequest, type TraverseRequest };
801
+ export { type ArgumentRequest, type BatchRequest, type CaptureRequest, type ClearResponse, type CommitmentRequest, type DecayRequest, type DeliberationRequest, type DistillRequest, type EnrichedSearchResponse, type EntityRequest, type EventProps, type EvolveRequest, type ExecutionRequest, type GovernanceRequest, type GraphEdge, type GraphNode, type IngestChunkRequest, type IngestChunkResponse, type IngestDocumentRequest, type IngestDocumentResponse, type IngestSessionRequest, type InquiryRequest, type Job, type MemoryConfigRequest, MindGraph, type MindGraphConfig, MindGraphError, type NationProps, type OrganizationProps, type PathStep, type PersonProps, type PlaceProps, type PlanRequest, type ProcedureRequest, type PurgeRequest, type RetrieveContextRequest, type RetrieveContextResponse, type RetrieveRequest, type RiskRequest, type SearchChunk, type SearchResult, type SessionRequest, type StructureRequest, type TraverseRequest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindgraph",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript client for the MindGraph Cloud API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",