novyx 2.7.0 → 2.9.0
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 +44 -1
- package/dist/index.d.ts +44 -1
- package/dist/index.js +18 -0
- package/dist/index.mjs +18 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -182,6 +182,41 @@ interface DriftAnalysisResult {
|
|
|
182
182
|
top_new_topics: string[];
|
|
183
183
|
top_lost_topics: string[];
|
|
184
184
|
}
|
|
185
|
+
interface CortexConfigResult {
|
|
186
|
+
tenant_id: string;
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
consolidation_enabled: boolean;
|
|
189
|
+
consolidation_threshold: number;
|
|
190
|
+
reinforcement_enabled: boolean;
|
|
191
|
+
decay_enabled: boolean;
|
|
192
|
+
decay_age_days: number;
|
|
193
|
+
insight_generation_enabled: boolean;
|
|
194
|
+
last_run_at: string | null;
|
|
195
|
+
run_stats: Record<string, any>;
|
|
196
|
+
}
|
|
197
|
+
interface CortexStatusResult {
|
|
198
|
+
enabled: boolean;
|
|
199
|
+
last_run_at: string | null;
|
|
200
|
+
run_stats: Record<string, any>;
|
|
201
|
+
config: CortexConfigResult;
|
|
202
|
+
}
|
|
203
|
+
interface CortexRunResult {
|
|
204
|
+
consolidated: number;
|
|
205
|
+
boosted: number;
|
|
206
|
+
decayed: number;
|
|
207
|
+
insights_generated: number;
|
|
208
|
+
}
|
|
209
|
+
interface CortexInsight {
|
|
210
|
+
uuid: string;
|
|
211
|
+
observation: string;
|
|
212
|
+
tags: string[];
|
|
213
|
+
importance: number;
|
|
214
|
+
created_at: string;
|
|
215
|
+
}
|
|
216
|
+
interface CortexInsightsResult {
|
|
217
|
+
insights: CortexInsight[];
|
|
218
|
+
total: number;
|
|
219
|
+
}
|
|
185
220
|
|
|
186
221
|
declare class NovyxSession {
|
|
187
222
|
private client;
|
|
@@ -361,6 +396,14 @@ declare class Novyx {
|
|
|
361
396
|
}): Promise<CounterfactualRecallResult>;
|
|
362
397
|
replayDiff(from: string, to: string): Promise<ReplayDiffResult>;
|
|
363
398
|
replayDrift(from: string, to: string): Promise<DriftAnalysisResult>;
|
|
399
|
+
cortexStatus(): Promise<CortexStatusResult>;
|
|
400
|
+
cortexConfig(): Promise<CortexConfigResult>;
|
|
401
|
+
cortexUpdateConfig(updates: Partial<Omit<CortexConfigResult, "tenant_id" | "last_run_at" | "run_stats">>): Promise<CortexConfigResult>;
|
|
402
|
+
cortexRun(): Promise<CortexRunResult>;
|
|
403
|
+
cortexInsights(opts?: {
|
|
404
|
+
limit?: number;
|
|
405
|
+
offset?: number;
|
|
406
|
+
}): Promise<CortexInsightsResult>;
|
|
364
407
|
}
|
|
365
408
|
|
|
366
409
|
declare class NovyxError extends Error {
|
|
@@ -391,4 +434,4 @@ declare class NovyxSecurityError extends NovyxError {
|
|
|
391
434
|
constructor(message?: string);
|
|
392
435
|
}
|
|
393
436
|
|
|
394
|
-
export { type ContextNowResult, type CounterfactualRecallResult, type DriftAnalysisResult, type Edge, type EdgesListResult, type EntityListResult, type EntityTraversalResult, type KGEntity, type KGTriple, type LinksResult, type ListResult, type Memory, type MemoryLifecycleEvent, type MemoryLifecycleResult, Novyx, NovyxAuthError, type NovyxConfig, NovyxError, NovyxForbiddenError, NovyxNotFoundError, NovyxRateLimitError, NovyxSecurityError, NovyxSession, type ReplayDiffEntry, type ReplayDiffResult, type ReplaySnapshotResult, type ReplayTimelineEntry, type ReplayTimelineResult, type SearchResult, type TripleListResult };
|
|
437
|
+
export { type ContextNowResult, type CortexConfigResult, type CortexInsight, type CortexInsightsResult, type CortexRunResult, type CortexStatusResult, type CounterfactualRecallResult, type DriftAnalysisResult, type Edge, type EdgesListResult, type EntityListResult, type EntityTraversalResult, type KGEntity, type KGTriple, type LinksResult, type ListResult, type Memory, type MemoryLifecycleEvent, type MemoryLifecycleResult, Novyx, NovyxAuthError, type NovyxConfig, NovyxError, NovyxForbiddenError, NovyxNotFoundError, NovyxRateLimitError, NovyxSecurityError, NovyxSession, type ReplayDiffEntry, type ReplayDiffResult, type ReplaySnapshotResult, type ReplayTimelineEntry, type ReplayTimelineResult, type SearchResult, type TripleListResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -182,6 +182,41 @@ interface DriftAnalysisResult {
|
|
|
182
182
|
top_new_topics: string[];
|
|
183
183
|
top_lost_topics: string[];
|
|
184
184
|
}
|
|
185
|
+
interface CortexConfigResult {
|
|
186
|
+
tenant_id: string;
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
consolidation_enabled: boolean;
|
|
189
|
+
consolidation_threshold: number;
|
|
190
|
+
reinforcement_enabled: boolean;
|
|
191
|
+
decay_enabled: boolean;
|
|
192
|
+
decay_age_days: number;
|
|
193
|
+
insight_generation_enabled: boolean;
|
|
194
|
+
last_run_at: string | null;
|
|
195
|
+
run_stats: Record<string, any>;
|
|
196
|
+
}
|
|
197
|
+
interface CortexStatusResult {
|
|
198
|
+
enabled: boolean;
|
|
199
|
+
last_run_at: string | null;
|
|
200
|
+
run_stats: Record<string, any>;
|
|
201
|
+
config: CortexConfigResult;
|
|
202
|
+
}
|
|
203
|
+
interface CortexRunResult {
|
|
204
|
+
consolidated: number;
|
|
205
|
+
boosted: number;
|
|
206
|
+
decayed: number;
|
|
207
|
+
insights_generated: number;
|
|
208
|
+
}
|
|
209
|
+
interface CortexInsight {
|
|
210
|
+
uuid: string;
|
|
211
|
+
observation: string;
|
|
212
|
+
tags: string[];
|
|
213
|
+
importance: number;
|
|
214
|
+
created_at: string;
|
|
215
|
+
}
|
|
216
|
+
interface CortexInsightsResult {
|
|
217
|
+
insights: CortexInsight[];
|
|
218
|
+
total: number;
|
|
219
|
+
}
|
|
185
220
|
|
|
186
221
|
declare class NovyxSession {
|
|
187
222
|
private client;
|
|
@@ -361,6 +396,14 @@ declare class Novyx {
|
|
|
361
396
|
}): Promise<CounterfactualRecallResult>;
|
|
362
397
|
replayDiff(from: string, to: string): Promise<ReplayDiffResult>;
|
|
363
398
|
replayDrift(from: string, to: string): Promise<DriftAnalysisResult>;
|
|
399
|
+
cortexStatus(): Promise<CortexStatusResult>;
|
|
400
|
+
cortexConfig(): Promise<CortexConfigResult>;
|
|
401
|
+
cortexUpdateConfig(updates: Partial<Omit<CortexConfigResult, "tenant_id" | "last_run_at" | "run_stats">>): Promise<CortexConfigResult>;
|
|
402
|
+
cortexRun(): Promise<CortexRunResult>;
|
|
403
|
+
cortexInsights(opts?: {
|
|
404
|
+
limit?: number;
|
|
405
|
+
offset?: number;
|
|
406
|
+
}): Promise<CortexInsightsResult>;
|
|
364
407
|
}
|
|
365
408
|
|
|
366
409
|
declare class NovyxError extends Error {
|
|
@@ -391,4 +434,4 @@ declare class NovyxSecurityError extends NovyxError {
|
|
|
391
434
|
constructor(message?: string);
|
|
392
435
|
}
|
|
393
436
|
|
|
394
|
-
export { type ContextNowResult, type CounterfactualRecallResult, type DriftAnalysisResult, type Edge, type EdgesListResult, type EntityListResult, type EntityTraversalResult, type KGEntity, type KGTriple, type LinksResult, type ListResult, type Memory, type MemoryLifecycleEvent, type MemoryLifecycleResult, Novyx, NovyxAuthError, type NovyxConfig, NovyxError, NovyxForbiddenError, NovyxNotFoundError, NovyxRateLimitError, NovyxSecurityError, NovyxSession, type ReplayDiffEntry, type ReplayDiffResult, type ReplaySnapshotResult, type ReplayTimelineEntry, type ReplayTimelineResult, type SearchResult, type TripleListResult };
|
|
437
|
+
export { type ContextNowResult, type CortexConfigResult, type CortexInsight, type CortexInsightsResult, type CortexRunResult, type CortexStatusResult, type CounterfactualRecallResult, type DriftAnalysisResult, type Edge, type EdgesListResult, type EntityListResult, type EntityTraversalResult, type KGEntity, type KGTriple, type LinksResult, type ListResult, type Memory, type MemoryLifecycleEvent, type MemoryLifecycleResult, Novyx, NovyxAuthError, type NovyxConfig, NovyxError, NovyxForbiddenError, NovyxNotFoundError, NovyxRateLimitError, NovyxSecurityError, NovyxSession, type ReplayDiffEntry, type ReplayDiffResult, type ReplaySnapshotResult, type ReplayTimelineEntry, type ReplayTimelineResult, type SearchResult, type TripleListResult };
|
package/dist/index.js
CHANGED
|
@@ -522,6 +522,24 @@ var Novyx = class {
|
|
|
522
522
|
async replayDrift(from, to) {
|
|
523
523
|
return this._request("GET", "/v1/replay/drift", { params: { from, to } });
|
|
524
524
|
}
|
|
525
|
+
// Cortex (Pro+)
|
|
526
|
+
async cortexStatus() {
|
|
527
|
+
return this._request("GET", "/v1/cortex/status");
|
|
528
|
+
}
|
|
529
|
+
async cortexConfig() {
|
|
530
|
+
return this._request("GET", "/v1/cortex/config");
|
|
531
|
+
}
|
|
532
|
+
async cortexUpdateConfig(updates) {
|
|
533
|
+
return this._request("PATCH", "/v1/cortex/config", { body: updates });
|
|
534
|
+
}
|
|
535
|
+
async cortexRun() {
|
|
536
|
+
return this._request("POST", "/v1/cortex/run");
|
|
537
|
+
}
|
|
538
|
+
async cortexInsights(opts) {
|
|
539
|
+
return this._request("GET", "/v1/cortex/insights", {
|
|
540
|
+
params: { limit: opts?.limit ?? 20, offset: opts?.offset ?? 0 }
|
|
541
|
+
});
|
|
542
|
+
}
|
|
525
543
|
};
|
|
526
544
|
// Annotate the CommonJS export names for ESM import in node:
|
|
527
545
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -489,6 +489,24 @@ var Novyx = class {
|
|
|
489
489
|
async replayDrift(from, to) {
|
|
490
490
|
return this._request("GET", "/v1/replay/drift", { params: { from, to } });
|
|
491
491
|
}
|
|
492
|
+
// Cortex (Pro+)
|
|
493
|
+
async cortexStatus() {
|
|
494
|
+
return this._request("GET", "/v1/cortex/status");
|
|
495
|
+
}
|
|
496
|
+
async cortexConfig() {
|
|
497
|
+
return this._request("GET", "/v1/cortex/config");
|
|
498
|
+
}
|
|
499
|
+
async cortexUpdateConfig(updates) {
|
|
500
|
+
return this._request("PATCH", "/v1/cortex/config", { body: updates });
|
|
501
|
+
}
|
|
502
|
+
async cortexRun() {
|
|
503
|
+
return this._request("POST", "/v1/cortex/run");
|
|
504
|
+
}
|
|
505
|
+
async cortexInsights(opts) {
|
|
506
|
+
return this._request("GET", "/v1/cortex/insights", {
|
|
507
|
+
params: { limit: opts?.limit ?? 20, offset: opts?.offset ?? 0 }
|
|
508
|
+
});
|
|
509
|
+
}
|
|
492
510
|
};
|
|
493
511
|
export {
|
|
494
512
|
Novyx,
|