@soleri/core 1.0.0 → 2.0.1

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.
@@ -0,0 +1,62 @@
1
+ // ─── Cognee Integration Types ──────────────────────────────────────
2
+
3
+ export interface CogneeConfig {
4
+ /** Base URL of the Cognee API (default: http://localhost:8000) */
5
+ baseUrl: string;
6
+ /** Dataset name for this agent's vault entries */
7
+ dataset: string;
8
+ /** Bearer token for Cognee API authentication (auto-acquired if not set) */
9
+ apiToken?: string;
10
+ /** Service account email for auto-login (default: soleri-agent@cognee.dev) */
11
+ serviceEmail?: string;
12
+ /** Service account password for auto-login */
13
+ servicePassword?: string;
14
+ /** Default request timeout in milliseconds (default: 30000) */
15
+ timeoutMs: number;
16
+ /** Search timeout in milliseconds — Ollama cold start can take 90s (default: 120000) */
17
+ searchTimeoutMs: number;
18
+ /** Health check timeout in milliseconds (default: 5000) */
19
+ healthTimeoutMs: number;
20
+ /** Health check cache TTL in milliseconds (default: 60000) */
21
+ healthCacheTtlMs: number;
22
+ /** Cognify debounce window in milliseconds (default: 30000) */
23
+ cognifyDebounceMs: number;
24
+ }
25
+
26
+ export interface CogneeSearchResult {
27
+ /** Vault entry ID (cross-reference key) */
28
+ id: string;
29
+ /** Relevance score (0–1). Position-based when Cognee omits scores. */
30
+ score: number;
31
+ /** Text content from Cognee */
32
+ text: string;
33
+ /** Cognee search type that produced this result */
34
+ searchType: CogneeSearchType;
35
+ }
36
+
37
+ export type CogneeSearchType =
38
+ | 'SUMMARIES'
39
+ | 'CHUNKS'
40
+ | 'RAG_COMPLETION'
41
+ | 'TRIPLET_COMPLETION'
42
+ | 'GRAPH_COMPLETION'
43
+ | 'GRAPH_SUMMARY_COMPLETION'
44
+ | 'NATURAL_LANGUAGE'
45
+ | 'GRAPH_COMPLETION_COT'
46
+ | 'FEELING_LUCKY'
47
+ | 'CHUNKS_LEXICAL';
48
+
49
+ export interface CogneeStatus {
50
+ available: boolean;
51
+ url: string;
52
+ latencyMs: number;
53
+ error?: string;
54
+ }
55
+
56
+ export interface CogneeAddResult {
57
+ added: number;
58
+ }
59
+
60
+ export interface CogneeCognifyResult {
61
+ status: string;
62
+ }
package/src/index.ts CHANGED
@@ -18,6 +18,17 @@ export type {
18
18
  QueryContext,
19
19
  } from './brain/brain.js';
20
20
 
21
+ // ─── Cognee ─────────────────────────────────────────────────────────
22
+ export { CogneeClient } from './cognee/client.js';
23
+ export type {
24
+ CogneeConfig,
25
+ CogneeSearchResult,
26
+ CogneeSearchType,
27
+ CogneeStatus,
28
+ CogneeAddResult,
29
+ CogneeCognifyResult,
30
+ } from './cognee/types.js';
31
+
21
32
  // ─── Planning ────────────────────────────────────────────────────────
22
33
  export { Planner } from './planning/planner.js';
23
34
  export type { PlanStatus, TaskStatus, PlanTask, Plan, PlanStore } from './planning/planner.js';