@pyxmate/memory 0.17.6 → 0.18.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.
|
@@ -513,6 +513,10 @@ var MemoryClient = class {
|
|
|
513
513
|
throw error;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
+
async lint(options) {
|
|
517
|
+
const qs = options?.limit ? `?limit=${encodeURIComponent(String(options.limit))}` : "";
|
|
518
|
+
return this.fetchApi(`/api/memory/lint${qs}`, { method: "GET" });
|
|
519
|
+
}
|
|
516
520
|
async runDecay() {
|
|
517
521
|
const result = await this.fetchApi("/api/memory/decay", {
|
|
518
522
|
method: "POST"
|
package/dist/dashboard.mjs
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StoreInput as StoreInput$1, MemoryEntry as MemoryEntry$1, MemorySearchParams as MemorySearchParams$1, MemorySearchResult as MemorySearchResult$1, MemoryType as MemoryType$1, PrincipalContext as PrincipalContext$1, MemoryStats as MemoryStats$1, ExtractedImageMeta as ExtractedImageMeta$1, IngestEntity as IngestEntity$1, IngestRelationship as IngestRelationship$1, IngestEvent as IngestEvent$1, GraphNode as GraphNode$1, GraphTraversalResult as GraphTraversalResult$1 } from '@pyx-memory/shared';
|
|
1
|
+
import { StoreInput as StoreInput$1, MemoryEntry as MemoryEntry$1, MemorySearchParams as MemorySearchParams$1, MemorySearchResult as MemorySearchResult$1, MemoryType as MemoryType$1, PrincipalContext as PrincipalContext$1, MemoryStats as MemoryStats$1, WikiLintReport as WikiLintReport$1, ExtractedImageMeta as ExtractedImageMeta$1, IngestEntity as IngestEntity$1, IngestRelationship as IngestRelationship$1, IngestEvent as IngestEvent$1, GraphNode as GraphNode$1, GraphTraversalResult as GraphTraversalResult$1 } from '@pyx-memory/shared';
|
|
2
2
|
|
|
3
3
|
/** Parameters for paginated entry listing. */
|
|
4
4
|
interface MemoryListParams {
|
|
@@ -78,6 +78,14 @@ interface ExtendedMemoryInterface extends MemoryInterface {
|
|
|
78
78
|
forget(id: string, reason?: string): Promise<boolean>;
|
|
79
79
|
/** Summarize a session's memories into a long-term entry. */
|
|
80
80
|
summarizeSession(sessionId: string): Promise<MemoryEntry$1 | null>;
|
|
81
|
+
/**
|
|
82
|
+
* Read-only memory-wide lint report (v0.18.0 Karpathy-wiki Item B):
|
|
83
|
+
* orphans, decay candidates, stale entries, dedup candidates. Pure
|
|
84
|
+
* projection — no writes.
|
|
85
|
+
*/
|
|
86
|
+
lint(options?: {
|
|
87
|
+
limit?: number;
|
|
88
|
+
}): Promise<WikiLintReport$1>;
|
|
81
89
|
/** Run decay on all entries, archiving those below threshold. */
|
|
82
90
|
runDecay(): Promise<number>;
|
|
83
91
|
/** Reindex the FTS5 full-text search index. */
|
|
@@ -245,6 +253,9 @@ declare class MemoryClient implements ExtendedMemoryInterface {
|
|
|
245
253
|
consolidate(): Promise<ConsolidationRunResult>;
|
|
246
254
|
forget(id: string, reason?: string): Promise<boolean>;
|
|
247
255
|
summarizeSession(sessionId: string): Promise<MemoryEntry$1 | null>;
|
|
256
|
+
lint(options?: {
|
|
257
|
+
limit?: number;
|
|
258
|
+
}): Promise<WikiLintReport$1>;
|
|
248
259
|
runDecay(): Promise<number>;
|
|
249
260
|
reindex(): Promise<void>;
|
|
250
261
|
clearGraph(): Promise<number>;
|
|
@@ -579,6 +590,24 @@ interface GraphTraversalResult {
|
|
|
579
590
|
relationshipIds: string[];
|
|
580
591
|
}>;
|
|
581
592
|
}
|
|
593
|
+
/**
|
|
594
|
+
* Memory.lint() report shape — Karpathy-wiki Item B (v0.18.0).
|
|
595
|
+
* Read-only projection composed from signals every owning module
|
|
596
|
+
* already exposes. Lives in shared so the HTTP client can hold the
|
|
597
|
+
* same type as core without re-declaring it.
|
|
598
|
+
*/
|
|
599
|
+
interface WikiLintReport {
|
|
600
|
+
orphans: GraphNode[];
|
|
601
|
+
decayCandidates: MemoryEntry[];
|
|
602
|
+
staleSyntheses: Array<{
|
|
603
|
+
entry: MemoryEntry;
|
|
604
|
+
reason: string;
|
|
605
|
+
}>;
|
|
606
|
+
dedupCandidates: Array<{
|
|
607
|
+
hash: string;
|
|
608
|
+
entryIds: string[];
|
|
609
|
+
}>;
|
|
610
|
+
}
|
|
582
611
|
|
|
583
612
|
/** Metadata for a single image extracted from a PDF. */
|
|
584
613
|
interface ExtractedImageMeta {
|
|
@@ -845,4 +874,4 @@ interface PrincipalContext {
|
|
|
845
874
|
/** Sentinel tenant ID used in single-tenant deployments. */
|
|
846
875
|
declare const SINGLE_TENANT_ID = "_single";
|
|
847
876
|
|
|
848
|
-
export { type AgentId, type ApiResponse, type ConsolidationRunResult, DEFAULTS, EmbeddingProviderName, type EnrichmentCallbacks, type ExtendedMemoryInterface, type GraphFailureMode, type GraphNode, type GraphRelationship, type GraphTraversalResult, type IngestEntity, type IngestErrorEvent, type IngestEvent, type IngestFileOptions, type IngestHeartbeatEvent, type IngestProgressEvent, type IngestRelationship, type IngestResultEvent, type IngestStage, type IngestionResult, MemoryClient, type MemoryClientOptions, type MemoryEntry, type MemoryIngestRequest, type MemoryInterface, type MemoryListParams, type MemoryListResult, type MemorySearchParams, type MemorySearchResult, MemoryServerError, type MemoryStats, MemoryType, type MoveEntriesFilter, MoveFailureReason, type MoveResult, type MoveTarget, NamespaceIsolation, type PrincipalContext, RAGStrategy, SINGLE_TENANT_ID, SensitivityLevel, type StoreInput, StoreTarget, type TemporalQueryFilters, type TenantScopeOptions, type Timestamp, VectorProvider };
|
|
877
|
+
export { type AgentId, type ApiResponse, type ConsolidationRunResult, DEFAULTS, EmbeddingProviderName, type EnrichmentCallbacks, type ExtendedMemoryInterface, type GraphFailureMode, type GraphNode, type GraphRelationship, type GraphTraversalResult, type IngestEntity, type IngestErrorEvent, type IngestEvent, type IngestFileOptions, type IngestHeartbeatEvent, type IngestProgressEvent, type IngestRelationship, type IngestResultEvent, type IngestStage, type IngestionResult, MemoryClient, type MemoryClientOptions, type MemoryEntry, type MemoryIngestRequest, type MemoryInterface, type MemoryListParams, type MemoryListResult, type MemorySearchParams, type MemorySearchResult, MemoryServerError, type MemoryStats, MemoryType, type MoveEntriesFilter, MoveFailureReason, type MoveResult, type MoveTarget, NamespaceIsolation, type PrincipalContext, RAGStrategy, SINGLE_TENANT_ID, SensitivityLevel, type StoreInput, StoreTarget, type TemporalQueryFilters, type TenantScopeOptions, type Timestamp, VectorProvider, type WikiLintReport };
|
package/dist/index.mjs
CHANGED
package/dist/react.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
toGraphologyFormat,
|
|
12
12
|
transformGraphData,
|
|
13
13
|
unreachableHealth
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-B7HQUO7I.mjs";
|
|
15
|
+
import "./chunk-EBBULSES.mjs";
|
|
16
16
|
|
|
17
17
|
// ../dashboard/src/hooks/use-consolidation-log.ts
|
|
18
18
|
import { useCallback as useCallback2, useMemo } from "react";
|