@pyxmate/memory 0.18.0 → 0.18.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.
|
@@ -550,6 +550,19 @@ var MemoryClient = class {
|
|
|
550
550
|
);
|
|
551
551
|
return result.entries;
|
|
552
552
|
}
|
|
553
|
+
async log(filters = {}) {
|
|
554
|
+
const params = new URLSearchParams();
|
|
555
|
+
if (filters.since) params.set("since", filters.since);
|
|
556
|
+
if (filters.limit) params.set("limit", String(filters.limit));
|
|
557
|
+
if (filters.type) params.set("type", filters.type);
|
|
558
|
+
if (filters.agentId) params.set("agentId", filters.agentId);
|
|
559
|
+
if (filters.source) params.set("source", filters.source);
|
|
560
|
+
const qs = params.toString();
|
|
561
|
+
const result = await this.fetchApi(
|
|
562
|
+
`/api/memory/log${qs ? `?${qs}` : ""}`
|
|
563
|
+
);
|
|
564
|
+
return result.entries;
|
|
565
|
+
}
|
|
553
566
|
async queryByEventTime(startTime, endTime, filters = {}) {
|
|
554
567
|
const params = new URLSearchParams({ startTime, endTime });
|
|
555
568
|
if (filters.type) params.set("type", filters.type);
|
package/dist/dashboard.mjs
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,16 @@ interface TemporalQueryFilters {
|
|
|
34
34
|
source?: string;
|
|
35
35
|
limit?: number;
|
|
36
36
|
}
|
|
37
|
+
/** Filters for the chronological feed (`log`, Karpathy `log.md` primitive). */
|
|
38
|
+
interface MemoryLogFilters {
|
|
39
|
+
/** Inclusive lower bound on `created_at` (ISO 8601). Cursor for "what's new since X". */
|
|
40
|
+
since?: string;
|
|
41
|
+
/** Maximum entries to return. The HTTP layer clamps to [1, 100]. */
|
|
42
|
+
limit?: number;
|
|
43
|
+
type?: MemoryType$1;
|
|
44
|
+
agentId?: string;
|
|
45
|
+
source?: string;
|
|
46
|
+
}
|
|
37
47
|
/** Options for scoping operations to a specific tenant. */
|
|
38
48
|
interface TenantScopeOptions {
|
|
39
49
|
tenantId?: string;
|
|
@@ -92,6 +102,11 @@ interface ExtendedMemoryInterface extends MemoryInterface {
|
|
|
92
102
|
reindex(): Promise<void>;
|
|
93
103
|
/** Delete all entries matching a source, cleaning up all stores. */
|
|
94
104
|
deleteBySource(source: string): Promise<number>;
|
|
105
|
+
/**
|
|
106
|
+
* Chronological feed of memory entries (Karpathy `log.md` primitive).
|
|
107
|
+
* Cursor-based via `since` (created_at lower bound). No totalCount.
|
|
108
|
+
*/
|
|
109
|
+
log(filters?: MemoryLogFilters): Promise<MemoryEntry$1[]>;
|
|
95
110
|
}
|
|
96
111
|
|
|
97
112
|
/**
|
|
@@ -261,6 +276,7 @@ declare class MemoryClient implements ExtendedMemoryInterface {
|
|
|
261
276
|
clearGraph(): Promise<number>;
|
|
262
277
|
deleteBySource(source: string): Promise<number>;
|
|
263
278
|
queryAsOf(asOfDate: string, filters?: TemporalQueryFilters): Promise<MemoryEntry$1[]>;
|
|
279
|
+
log(filters?: MemoryLogFilters): Promise<MemoryEntry$1[]>;
|
|
264
280
|
queryByEventTime(startTime: string, endTime: string, filters?: TemporalQueryFilters): Promise<MemoryEntry$1[]>;
|
|
265
281
|
protected fetchApi<T>(path: string, options?: RequestInit): Promise<T>;
|
|
266
282
|
/**
|
|
@@ -874,4 +890,4 @@ interface PrincipalContext {
|
|
|
874
890
|
/** Sentinel tenant ID used in single-tenant deployments. */
|
|
875
891
|
declare const SINGLE_TENANT_ID = "_single";
|
|
876
892
|
|
|
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 };
|
|
893
|
+
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 MemoryLogFilters, 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-HV6A2WTS.mjs";
|
|
15
|
+
import "./chunk-SHT5FPV6.mjs";
|
|
16
16
|
|
|
17
17
|
// ../dashboard/src/hooks/use-consolidation-log.ts
|
|
18
18
|
import { useCallback as useCallback2, useMemo } from "react";
|