a2a-memory 0.12.26 → 0.12.27
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/README.md +1 -1
- package/dist/a2a/client.js +1 -1
- package/dist/a2a/discovery.js +1 -1
- package/dist/a2a/index.js +1 -1
- package/dist/a2a/types.js +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/contextrank.d.ts +9 -0
- package/dist/cli/commands/contextrank.js +1 -0
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.d.ts +10 -0
- package/dist/cli/commands/export.js +1 -0
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/contextrank/edge-builder.d.ts +86 -0
- package/dist/contextrank/edge-builder.js +1 -0
- package/dist/contextrank/rank-builder.d.ts +87 -0
- package/dist/contextrank/rank-builder.js +1 -0
- package/dist/contextrank/signal-builder.d.ts +52 -0
- package/dist/contextrank/signal-builder.js +1 -0
- package/dist/db/database.d.ts +113 -0
- package/dist/db/database.js +1 -1
- package/dist/db/usage-spool.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.d.ts +8 -4
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/providers/adapters.js +1 -1
- package/dist/providers/detector.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/db/database.d.ts
CHANGED
|
@@ -211,6 +211,119 @@ export declare class MemoryDatabase {
|
|
|
211
211
|
}>;
|
|
212
212
|
saveEmbedding(memoryId: string, embedding: number[]): void;
|
|
213
213
|
getEmbedding(memoryId: string): number[] | null;
|
|
214
|
+
/** 56b: embedding 보유 메모리 전체를 dequantize하여 batch 로드 (sim k-NN 입력). */
|
|
215
|
+
getAllEmbeddingRows(): Array<{
|
|
216
|
+
id: string;
|
|
217
|
+
embedding: number[];
|
|
218
|
+
}>;
|
|
219
|
+
/** type별 엣지 전체 교체 (clear + batch insert, 단일 트랜잭션). shadow 재계산용. */
|
|
220
|
+
replaceEdges(type: string, edges: Array<{
|
|
221
|
+
src: string;
|
|
222
|
+
dst: string;
|
|
223
|
+
weight: number;
|
|
224
|
+
}>): number;
|
|
225
|
+
/** type별 엣지 카운트 (shadow 관찰). */
|
|
226
|
+
countEdgesByType(): Array<{
|
|
227
|
+
type: string;
|
|
228
|
+
count: number;
|
|
229
|
+
}>;
|
|
230
|
+
/** 56e: type별 엣지 read — per-memory 신호 계산 입력 (sim uniqueness/generic/dup, ref/cooc local). */
|
|
231
|
+
getEdges(type: string): Array<{
|
|
232
|
+
src: string;
|
|
233
|
+
dst: string;
|
|
234
|
+
weight: number;
|
|
235
|
+
}>;
|
|
236
|
+
/** 56e: per-memory 신호 계산 입력 (activation/dump). content는 LENGTH만 — 본문 미로딩. */
|
|
237
|
+
getSignalInputRows(): Array<{
|
|
238
|
+
id: string;
|
|
239
|
+
access_count: number;
|
|
240
|
+
created_at: string;
|
|
241
|
+
last_accessed_at: string | null;
|
|
242
|
+
content_length: number;
|
|
243
|
+
quality_score: number | null;
|
|
244
|
+
}>;
|
|
245
|
+
/** 56e: per-memory 신호 컬럼 batch 기록 (shadow, 단일 트랜잭션 — 액션 0). */
|
|
246
|
+
updateSignals(updates: Array<{
|
|
247
|
+
id: string;
|
|
248
|
+
activation: number;
|
|
249
|
+
uniqueness: number;
|
|
250
|
+
generic_penalty: number;
|
|
251
|
+
dup_score: number;
|
|
252
|
+
dump_score: number;
|
|
253
|
+
reliability: number;
|
|
254
|
+
cluster_id: string | null;
|
|
255
|
+
}>, computedAt: string): number;
|
|
256
|
+
/** 56e/g: 계산된 per-memory 신호 read (shadow 검증 + 56g 분포 관찰. computed된 것만). */
|
|
257
|
+
getComputedSignals(): Array<{
|
|
258
|
+
id: string;
|
|
259
|
+
activation: number | null;
|
|
260
|
+
uniqueness: number | null;
|
|
261
|
+
generic_penalty: number | null;
|
|
262
|
+
dup_score: number | null;
|
|
263
|
+
dump_score: number | null;
|
|
264
|
+
reliability: number | null;
|
|
265
|
+
cluster_id: string | null;
|
|
266
|
+
}>;
|
|
267
|
+
/** 56f: rank 계산 입력 — 56e 신호 + teleport prior(quality/tier) + retention/prune 입력. content 미로딩. */
|
|
268
|
+
getRankInputRows(): Array<{
|
|
269
|
+
id: string;
|
|
270
|
+
tier: string;
|
|
271
|
+
category: string;
|
|
272
|
+
quality_score: number | null;
|
|
273
|
+
access_count: number;
|
|
274
|
+
created_at: string;
|
|
275
|
+
last_accessed_at: string | null;
|
|
276
|
+
activation: number | null;
|
|
277
|
+
uniqueness: number | null;
|
|
278
|
+
generic_penalty: number | null;
|
|
279
|
+
dup_score: number | null;
|
|
280
|
+
dump_score: number | null;
|
|
281
|
+
reliability: number | null;
|
|
282
|
+
cluster_id: string | null;
|
|
283
|
+
}>;
|
|
284
|
+
/** 56f: rank/retention/prune/decision batch 기록 (shadow, 단일 트랜잭션 — 액션 0). */
|
|
285
|
+
updateRanks(updates: Array<{
|
|
286
|
+
id: string;
|
|
287
|
+
struct_rank: number;
|
|
288
|
+
memoryrank: number;
|
|
289
|
+
retention_score: number;
|
|
290
|
+
prune_score: number;
|
|
291
|
+
decision: string;
|
|
292
|
+
}>, computedAt: string): number;
|
|
293
|
+
/** 56f/g: 계산된 rank/decision read (shadow 검증 + 56g 분포/상관 관찰). */
|
|
294
|
+
getComputedRanks(): Array<{
|
|
295
|
+
id: string;
|
|
296
|
+
struct_rank: number | null;
|
|
297
|
+
memoryrank: number | null;
|
|
298
|
+
retention_score: number | null;
|
|
299
|
+
prune_score: number | null;
|
|
300
|
+
decision: string | null;
|
|
301
|
+
}>;
|
|
302
|
+
/** 56c: injection_hits.matched_memory_ids (JSON 배열) 중 2+ 매칭 세션 집합. */
|
|
303
|
+
getInjectionMatchedSets(): string[][];
|
|
304
|
+
/** 56c: memory_usage_events session_id별 공동 사용 메모리 집합 (2+). */
|
|
305
|
+
getUsageSessionSets(): string[][];
|
|
306
|
+
/** 56c: (memory_id, tag) 전체 페어 — tag-cooc + hub IDF/PPMI 필터 입력. */
|
|
307
|
+
getTagMemoryPairs(): Array<{
|
|
308
|
+
memory_id: string;
|
|
309
|
+
tag: string;
|
|
310
|
+
}>;
|
|
311
|
+
/** 56d: memories.session_id 공유 2+ 메모리 집합 (temp 엣지 — 동일 세션 공동 생성, 대칭). */
|
|
312
|
+
getSessionSharedSets(): string[][];
|
|
313
|
+
/**
|
|
314
|
+
* 56d: content 내 `[[...]]` 보유 메모리 (id, content) — ref 엣지 파싱 입력.
|
|
315
|
+
* bash test 문법(`[[ -n ... ]]` 등) 제외 + slug→id resolve는 edge-builder에서 수행.
|
|
316
|
+
* (memories에 name/slug 컬럼 부재 — ADR 섹션 15 Q3 미확정. resolve율 shadow 관찰.)
|
|
317
|
+
*/
|
|
318
|
+
getRefLinkSources(): Array<{
|
|
319
|
+
id: string;
|
|
320
|
+
content: string;
|
|
321
|
+
}>;
|
|
322
|
+
/**
|
|
323
|
+
* 56d: slug substring을 content에 포함하는 memory id 목록 (ref resolve, self 제외).
|
|
324
|
+
* LIKE 와일드카드(`%`/`_`) 이스케이프 — slug의 underscore를 literal로 매칭.
|
|
325
|
+
*/
|
|
326
|
+
findMemoryIdsContaining(needle: string, excludeId: string): string[];
|
|
214
327
|
getMemoriesOlderThan(days: number): Memory[];
|
|
215
328
|
getMemoriesWithoutEmbedding(limit?: number): Memory[];
|
|
216
329
|
deleteMemories(ids: string[]): number;
|