dotmem 0.3.1 → 0.3.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dotmem",
3
3
  "codeName": "dotmem",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "description": "Persistent project knowledge for AI coding assistants and agents.",
@@ -74,7 +74,11 @@
74
74
  "dependencies": {
75
75
  "@modelcontextprotocol/server": "2.4.0",
76
76
  "@noble/post-quantum": "0.7.1",
77
- "memorio": "5.5.6",
77
+ "@types/better-sqlite3": "9.6.0",
78
+ "better-sqlite3": "13.2.0",
79
+ "memorio": "5.5.9",
80
+ "reflect-metadata": "0.2.2",
81
+ "typeorm": "1.1.3",
78
82
  "zod": "4.6.7"
79
83
  },
80
84
  "typings": "./index.d.ts",
@@ -62,7 +62,7 @@ interface JournalEntry {
62
62
  operation: string
63
63
  hlc?: string
64
64
  createdAt: number
65
- payload?: unknown
65
+ payload?: any
66
66
  }
67
67
  interface MemoryProfile {
68
68
  get(id: string): DotMemProfile
@@ -97,7 +97,7 @@ interface NoteEntry {
97
97
  patches?: PatchOperation[]
98
98
  hlc?: string
99
99
  key?: string
100
- value?: unknown
100
+ value?: any
101
101
  status?: string
102
102
  createdAt?: number
103
103
  lastConfirmedAt?: number
@@ -158,25 +158,25 @@ export declare const DOTMEM_USER_ANCHOR_DIR_NAME: string
158
158
  export declare const DOTMEM_STORAGE_LOCATOR_FILE_NAME: string
159
159
  export declare const DOTMEM_STORAGE_LOCATOR_VERSION: number
160
160
  export declare function resolveDotMemStorageRoot(): string
161
- export declare function describeDotMemStorage(): unknown
162
- export declare function readDotMemStorageLocator(): unknown
163
- export declare function relocateDotMemStorage(target: string): unknown
164
- export declare function restoreDefaultDotMemStorage(): unknown
161
+ export declare function describeDotMemStorage(): any
162
+ export declare function readDotMemStorageLocator(): any
163
+ export declare function relocateDotMemStorage(target: string): any
164
+ export declare function restoreDefaultDotMemStorage(): any
165
165
  // ── Project identity surface ─────────────────────────────────────────────
166
166
  export declare function resolveProjectIdentity(id?: string): Promise<string>
167
167
  // ── Mem package inspection ──────────────────────────────────────────────
168
- export declare function inspectMem(mem: unknown, opts?: Record<string, unknown>): unknown
169
- export declare function signMemPackage(mem: unknown, key: unknown): unknown
168
+ export declare function inspectMem(mem: any, opts?: Record<string, any>): any
169
+ export declare function signMemPackage(mem: any, key: any): any
170
170
  interface MemInspection {
171
171
  status: 'valid' | 'invalid' | 'checksum_mismatch' | 'unsupported' | 'corrupt'
172
- representation: 'json-v1' | 'json-v2' | 'package-v1' | 'unknown'
172
+ representation: 'json-v1' | 'json-v2' | 'package-v1' | 'any'
173
173
  message: string
174
174
  packageVersion?: number
175
175
  memoryVersion?: number
176
176
  contentId?: string
177
177
  parts: Array<{ path: string; bytes: number; protected: boolean }>
178
- knowledge?: unknown
179
- unknownSemantics?: { mapEntries: number; vocabularyEntries: number; extensionParts: string[] }
178
+ knowledge?: any
179
+ anySemantics?: { mapEntries: number; vocabularyEntries: number; extensionParts: string[] }
180
180
  integrity?: { status: 'valid'; algorithm: 'sha256'; contentId: string }
181
181
  authenticity?: {
182
182
  status: 'unsigned' | 'valid' | 'invalid' | 'unsupported'
@@ -229,7 +229,7 @@ export declare function listSchemas(): string[]
229
229
  export declare const typed: <T extends Record<string, any>>() => T
230
230
  export declare const computed: any
231
231
  export declare const broadcast: any
232
- export declare const message: (...args: unknown[]) => void
232
+ export declare const message: (...args: any[]) => void
233
233
  export declare const logger: any
234
234
  export declare const snapshot: () => Record<string, any>
235
235
  export declare function diff(snap: Record<string, any>): Array<{ path: string; oldValue: any; newValue: any }>
@@ -242,29 +242,29 @@ export declare function trace(): any[]
242
242
  export declare function enableHistory(enabled?: boolean): void
243
243
  export declare function clearHistory(): void
244
244
  export declare function clearRedo(): void
245
- export declare function createMutation(path: string, operation: any, before: any, after: any, opts?: { context?: string; source?: string; transactionId?: string }): unknown
246
- export declare function recordMutation(mutation: unknown): void
247
- export declare function toPatch(mutation: unknown): unknown | null
248
- export declare function mutate(path: string, value: any, opts?: { source?: string; transactionId?: string }): unknown
249
- export declare function beginTransaction(source?: string, message?: string, metadata?: Record<string, any>): unknown
250
- export declare function commitTransaction(): unknown
251
- export declare function abortTransaction(): unknown
252
- export declare function currentTransaction(): unknown
253
- export declare function listTransactions(): unknown[]
254
- export declare const transaction: (source?: string, message?: string, metadata?: Record<string, any>) => unknown
245
+ export declare function createMutation(path: string, operation: any, before: any, after: any, opts?: { context?: string; source?: string; transactionId?: string }): any
246
+ export declare function recordMutation(mutation: any): void
247
+ export declare function toPatch(mutation: any): any | null
248
+ export declare function mutate(path: string, value: any, opts?: { source?: string; transactionId?: string }): any
249
+ export declare function beginTransaction(source?: string, message?: string, metadata?: Record<string, any>): any
250
+ export declare function commitTransaction(): any
251
+ export declare function abortTransaction(): any
252
+ export declare function currentTransaction(): any
253
+ export declare function listTransactions(): any[]
254
+ export declare const transaction: (source?: string, message?: string, metadata?: Record<string, any>) => any
255
255
  export declare function generateMutationId(): string
256
256
  export declare function generateTransactionId(): string
257
257
  export declare function generateCommitId(): string
258
- export declare function mutationToPatch(mutation: unknown): unknown | null
259
- export declare function diffToPatch(path: string, before: any, after: any): unknown | null
260
- export declare function canMerge(p1: unknown, p2: unknown): boolean
261
- export declare function mergePatches(p1: unknown, p2: unknown): unknown
262
- export declare function dispatch(event: string, payload?: unknown): Promise<void>
258
+ export declare function mutationToPatch(mutation: any): any | null
259
+ export declare function diffToPatch(path: string, before: any, after: any): any | null
260
+ export declare function canMerge(p1: any, p2: any): boolean
261
+ export declare function mergePatches(p1: any, p2: any): any
262
+ export declare function dispatch(event: string, payload?: any): Promise<void>
263
263
  export declare function isDotMemCodename(value: string): boolean
264
264
  export declare function codenameKeyFor(value: string): string | undefined
265
265
  export declare function renderCodenames(): string
266
266
  export declare const CODENAMES: Record<string, string>
267
- export declare const CODENAME_DETAILS: Record<string, unknown>
267
+ export declare const CODENAME_DETAILS: Record<string, any>
268
268
  export declare function propertyName(container: any, object: any): string | null
269
269
  export declare const internal: any
270
270
  export declare function setContext(id: string): void
@@ -277,16 +277,16 @@ export declare const devtools: any
277
277
  export declare function help(): void
278
278
  export declare const temporal: any
279
279
  export declare const events: Record<string, any>
280
- export declare function short(input: Record<string, unknown>): unknown
280
+ export declare function short(input: Record<string, any>): any
281
281
  export declare const dotmem: any
282
282
  export declare function isBrowser(): boolean
283
283
  export declare function isNode(): boolean
284
284
  export declare function isDeno(): boolean
285
285
  export declare function isBun(): boolean
286
286
  export declare function isEdge(): boolean
287
- export declare function getCapabilities(): unknown
288
- export declare function createContext(name?: string, opts?: { encryptionKey?: any }): unknown
289
- export declare function listContexts(): unknown[]
287
+ export declare function getCapabilities(): any
288
+ export declare function createContext(name?: string, opts?: { encryptionKey?: any }): any
289
+ export declare function listContexts(): any[]
290
290
  export declare function deleteContext(id: string): void
291
291
  export declare function isolate(name?: string, opts?: { encryptionKey?: any }): void
292
292
  export default dotmem
@@ -54,7 +54,7 @@ type Codename = (typeof CODENAMES)[CodenameKey]
54
54
 
55
55
  type CodenameStatus = 'active' | 'assigned' | 'reserved'
56
56
 
57
- interface ShortResultBase<T = unknown> {
57
+ interface ShortResultBase<T = any> {
58
58
  success: boolean
59
59
  status: ShortResultStatus
60
60
  value?: T
@@ -98,7 +98,7 @@ interface NotePayload {
98
98
 
99
99
  interface RememberPayload {
100
100
  key: string
101
- value: unknown
101
+ value: any
102
102
  scope?: 'local' | 'session' | 'durable'
103
103
  tags?: string | string[]
104
104
  confidence?: number
@@ -117,7 +117,7 @@ interface ForgetPayload {
117
117
  }
118
118
 
119
119
  interface AcquirePayload {
120
- knowledge: unknown
120
+ knowledge: any
121
121
  applicability?: Record<string, string | number | boolean | null>
122
122
  evidence?: Array<{ id: string; source?: string; observedAt?: string; supports?: string }>
123
123
  epistemicType?: 'observed' | 'inferred' | 'human-stated' | 'verified'
@@ -130,8 +130,8 @@ interface AcquirePayload {
130
130
  kind?: 'experience' | 'agent' | 'logic' | 'note'
131
131
  sourceProject?: string
132
132
  acquiredAt?: string
133
- expiresAt?: number
134
- until?: string
133
+ expiresAt?: number
134
+ until?: string
135
135
  bootstrapPriority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5' | 'unclassified'
136
136
  }
137
137
 
@@ -153,7 +153,7 @@ interface RulesPayload {
153
153
 
154
154
  interface PolicyPayload {
155
155
  event: string
156
- claims?: unknown[]
156
+ claims?: any[]
157
157
  policies?: Array<{
158
158
  event: string
159
159
  tier?: string
@@ -208,9 +208,9 @@ interface MergePayload {
208
208
  interface ConfigurePayload {
209
209
  sync?: {
210
210
  provider?: string
211
- [key: string]: unknown
211
+ [key: string]: any
212
212
  }
213
- [key: string]: unknown
213
+ [key: string]: any
214
214
  }
215
215
 
216
216
  interface CapturePayload {
@@ -226,7 +226,7 @@ type ShortIntent = 'note' | 'remember' | 'recall' | 'forget' | 'update' | 'patch
226
226
 
227
227
  type ShortResultStatus = 'completed' | 'failed' | 'blocked' | 'pending' | 'skipped'
228
228
 
229
- type IntentHandler = (runtime: any, payload: unknown) => Promise<ShortResultBase>
229
+ type IntentHandler = (runtime: any, payload: any) => Promise<ShortResultBase>
230
230
 
231
231
  interface BuildProfileDocument {
232
232
  readonly name: string
@@ -290,6 +290,7 @@ interface LearnOptions {
290
290
  scope: 'user' | 'project'
291
291
  situation?: string
292
292
  id?: string
293
+ terms?: string
293
294
  }
294
295
 
295
296
  interface CompactionEngineOptions {
@@ -316,7 +317,7 @@ interface DotMemContinuityInput {
316
317
  tokenBudget?: number
317
318
  scope?: 'user' | 'project' | 'task'
318
319
  subject?: string
319
- statePatch?: Record<string, unknown>
320
+ statePatch?: Record<string, any>
320
321
  objective?: string
321
322
  activeTopic?: string
322
323
  currentProblem?: string
@@ -328,7 +329,7 @@ interface DotMemContinuityInput {
328
329
 
329
330
  type ContinuityToolResult = {
330
331
  content: Array<{ type: 'text'; text: string }>
331
- structuredContent?: unknown
332
+ structuredContent?: any
332
333
  isError?: boolean
333
334
  }
334
335
 
@@ -356,7 +357,7 @@ interface LifecycleEventRecord {
356
357
  type: string
357
358
  phase: LifecyclePhase
358
359
  timestamp: string
359
- data: Record<string, unknown>
360
+ data: Record<string, any>
360
361
  }
361
362
 
362
363
  interface ResumePackageInput {
@@ -392,7 +393,7 @@ interface SubtleCryptoLike {
392
393
 
393
394
  type SubKeyUsages = readonly ['encrypt', 'decrypt'] | readonly ['deriveKey'] | readonly ['deriveBits']
394
395
 
395
- type AlikeAlgorithm = Record<string, unknown>
396
+ type AlikeAlgorithm = Record<string, any>
396
397
 
397
398
  interface ProjectState {
398
399
  initialized: boolean
@@ -466,7 +467,7 @@ interface ContextRunOptions {
466
467
  * influence behavior but never identity, invariants, or authority, and they
467
468
  * are never persisted.
468
469
  */
469
- overlays?: readonly unknown[]
470
+ overlays?: readonly any[]
470
471
  /**
471
472
  * A verified carrier handshake session record.
472
473
  *
@@ -607,7 +608,7 @@ type ConvergenceStatus = 'continue' | 'stop'
607
608
 
608
609
  type LearningEvent = 'corrected-error' | 'disproved-assumption' | 'compensated-success' | 'repeated-non-convergence'
609
610
 
610
- type ExplicitProfileRequest = { readonly kind: 'canonical'; readonly id: string } | { readonly kind: 'unknown'; readonly id: string } | null
611
+ type ExplicitProfileRequest = { readonly kind: 'canonical'; readonly id: string } | { readonly kind: 'any'; readonly id: string } | null
611
612
 
612
613
  interface DotMemProfileDocument {
613
614
  readonly name: string
@@ -728,7 +729,7 @@ interface RoleActivationDecision {
728
729
  readonly reason: string
729
730
  }
730
731
 
731
- type SpeakerBindingState = 'trusted-hi' | 'unknown' | 'untrusted'
732
+ type SpeakerBindingState = 'trusted-hi' | 'any' | 'untrusted'
732
733
 
733
734
  type AuthorityStatus = 'BOUND' | 'UNBOUND'
734
735
 
@@ -1000,7 +1001,7 @@ interface CanonicalReconstructionInput {
1000
1001
  /** The HI's own explicit identity, when the runtime supplies it. */
1001
1002
  userIdentity?: string
1002
1003
  /** Scoped, temporary overlays for this run. Never canonical. */
1003
- permittedOverlays?: readonly unknown[]
1004
+ permittedOverlays?: readonly any[]
1004
1005
  /** Injectable clock for deterministic reconstruction. */
1005
1006
  now?: () => Date
1006
1007
  }
@@ -1013,7 +1014,7 @@ interface CanonicalEvidenceViolation {
1013
1014
  /** What failed, in canonical vocabulary. */
1014
1015
  problem: string
1015
1016
  /** The received representation at the failing path. */
1016
- received: unknown
1017
+ received: any
1017
1018
  /** How to fix it. */
1018
1019
  fix: string
1019
1020
  }
@@ -1248,7 +1249,7 @@ type FeedbackKind = 'helped' | 'misled' | 'ignored'
1248
1249
 
1249
1250
  interface ProjectableClaim {
1250
1251
  id: string
1251
- knowledge: unknown
1252
+ knowledge: any
1252
1253
  epistemicType?: string
1253
1254
  scope?: 'user' | 'project'
1254
1255
  }
@@ -1375,13 +1376,13 @@ interface HardRule {
1375
1376
  status: HardRuleStatus
1376
1377
  scope: string
1377
1378
  statement: string
1378
- applicability?: Record<string, unknown>
1379
+ applicability?: Record<string, any>
1379
1380
  authority: PolicyAuthority
1380
1381
  grantedAt: string
1381
1382
  createdAt: string
1382
1383
  updatedAt?: string
1383
1384
  fingerprint: string
1384
- provenance?: Record<string, unknown>
1385
+ provenance?: Record<string, any>
1385
1386
  auditRef?: string
1386
1387
  }
1387
1388
 
@@ -1414,7 +1415,7 @@ type HardRuleStatus = 'proposed' | 'under_review' | 'approved' | 'active' | 'sus
1414
1415
  interface CacheEntry {
1415
1416
  id: string
1416
1417
  key: string
1417
- value: unknown
1418
+ value: any
1418
1419
  identity: string
1419
1420
  identityVersion: number
1420
1421
  source: 'cache' | 'index' | 'summary' | 'checkpoint'
@@ -1587,7 +1588,7 @@ interface InspectReportOptions {
1587
1588
 
1588
1589
  interface InspectReport {
1589
1590
  markdown: string
1590
- json: unknown
1591
+ json: any
1591
1592
  }
1592
1593
 
1593
1594
  interface LanguageDetection {
@@ -1722,14 +1723,14 @@ interface DecodedMemArtifact extends DecodedMemFile {
1722
1723
 
1723
1724
  interface MemInspection {
1724
1725
  status: MemInspectionStatus
1725
- representation: DecodedMemArtifact['representation'] | 'unknown'
1726
+ representation: DecodedMemArtifact['representation'] | 'any'
1726
1727
  message: string
1727
1728
  packageVersion?: number
1728
1729
  memoryVersion?: number
1729
1730
  contentId?: string
1730
1731
  parts: Array<{ path: string; bytes: number; protected: boolean }>
1731
1732
  knowledge?: KnowledgeState
1732
- unknownSemantics?: { mapEntries: number; vocabularyEntries: number; extensionParts: string[] }
1733
+ anySemantics?: { mapEntries: number; vocabularyEntries: number; extensionParts: string[] }
1733
1734
  integrity?: { status: 'valid'; algorithm: 'sha256'; contentId: string }
1734
1735
  authenticity?: {
1735
1736
  status: 'unsigned' | 'valid' | 'invalid' | 'unsupported'
@@ -1987,7 +1988,7 @@ interface PolicyDecision {
1987
1988
  conditionSatisfied?: boolean
1988
1989
  grantedAt: string
1989
1990
  /** The governed memory claim, when present in the evaluated store. */
1990
- claim?: unknown
1991
+ claim?: any
1991
1992
  /**
1992
1993
  * Effective-state provenance. Present only when a privileged
1993
1994
  * override targets this record; ordinary resolution is unchanged.
@@ -2281,6 +2282,7 @@ interface RuleCheckResult {
2281
2282
  passed: boolean
2282
2283
  violations: RuleCheckViolation[]
2283
2284
  checked: number
2285
+ total?: number
2284
2286
  }
2285
2287
 
2286
2288
  interface IronRule {
@@ -2407,7 +2409,7 @@ type DotMemStorageDivergence = 'none' | 'SHADOWED' | 'SPLIT_BRAIN' | 'MIGRATION_
2407
2409
  interface RuntimeProcessLike {
2408
2410
  env?: Record<string, string | undefined>
2409
2411
  platform?: string
2410
- getBuiltinModule?: (id: string) => unknown
2412
+ getBuiltinModule?: (id: string) => any
2411
2413
  }
2412
2414
 
2413
2415
  type SyncFsLike = typeof import('node:fs')
@@ -2484,7 +2486,7 @@ interface ClaimSelfCheck {
2484
2486
  pattern?: string
2485
2487
  path?: string
2486
2488
  pointer?: string
2487
- expect?: unknown
2489
+ expect?: any
2488
2490
  on: 'staged' | 'committed' | 'working-tree'
2489
2491
  description?: string
2490
2492
  }
@@ -2528,8 +2530,8 @@ interface AcquiredClaim {
2528
2530
  * `public` = plaintext in shared stores/Git; `private` = encrypted at rest.
2529
2531
  * Absence defaults to `public`.
2530
2532
  */
2531
- visibility?: 'public' | 'private'
2532
- encryptedPayload?: string
2533
+ visibility?: 'public' | 'private'
2534
+ encryptedPayload?: string
2533
2535
  /**
2534
2536
  * A self-checking rule that can verify whether the claim still holds.
2535
2537
  * The check runs read-only on the output and reports violations.
@@ -2564,23 +2566,23 @@ interface AcquireOptions {
2564
2566
  retracts?: string | string[]
2565
2567
  reason?: string
2566
2568
  scope?: 'user' | 'project'
2567
- kind?: MemoryKind
2568
- lifetime?: 'durable' | 'operational'
2569
- memoryClass?: 'episodic' | 'semantic' | 'procedure'
2570
- probe?: any
2571
- derivedFrom?: string[]
2572
- derived_from?: string[]
2573
- subject?: string
2574
- predicate?: string
2575
- autoSupersede?: boolean
2576
- source?: string
2577
- lifetime?: 'durable' | 'operational'
2578
- subject?: string
2579
- predicate?: string
2580
- taint?: 'user_direct' | 'local_code' | 'external_untrusted'
2581
- risk?: 'user_direct' | 'local_code' | 'external_untrusted'
2582
- visibility?: 'public' | 'private'
2583
- sourceProject?: string
2569
+ kind?: MemoryKind
2570
+ lifetime?: 'durable' | 'operational'
2571
+ memoryClass?: 'episodic' | 'semantic' | 'procedure'
2572
+ probe?: any
2573
+ derivedFrom?: string[]
2574
+ derived_from?: string[]
2575
+ subject?: string
2576
+ predicate?: string
2577
+ autoSupersede?: boolean
2578
+ source?: string
2579
+ lifetime?: 'durable' | 'operational'
2580
+ subject?: string
2581
+ predicate?: string
2582
+ taint?: 'user_direct' | 'local_code' | 'external_untrusted'
2583
+ risk?: 'user_direct' | 'local_code' | 'external_untrusted'
2584
+ visibility?: 'public' | 'private'
2585
+ sourceProject?: string
2584
2586
  risk?: 'user_direct' | 'local_code' | 'external_untrusted'
2585
2587
  visibility?: 'public' | 'private'
2586
2588
  sourceProject?: string
@@ -2821,7 +2823,7 @@ type SituationApplicability = Record<string, JsonPrimitive>
2821
2823
 
2822
2824
  type SituationFacts = SituationApplicability
2823
2825
 
2824
- type CurrentnessState = 'historical' | 'superseded' | 'expired' | 'verified' | 'unverified' | 'contested' | 'unknown-currentness'
2826
+ type CurrentnessState = 'historical' | 'superseded' | 'expired' | 'verified' | 'unverified' | 'contested' | 'any-currentness'
2825
2827
 
2826
2828
  type OmissionReason = 'retracted' | 'superseded' | 'expired' | 'stale' | 'scope' | 'applicability-mismatch' | 'no-term-match' | 'limit' | 'budget'
2827
2829
 
@@ -2847,7 +2849,7 @@ interface UserIdentity {
2847
2849
 
2848
2850
  interface UserIdentityStore {
2849
2851
  recall<T>(key: string): Promise<T | null>
2850
- remember(key: string, value: unknown, opts?: Record<string, unknown>): Promise<void>
2852
+ remember(key: string, value: any, opts?: Record<string, any>): Promise<void>
2851
2853
  forget(key: string): Promise<void>
2852
2854
  }
2853
2855
 
@@ -3185,7 +3187,7 @@ interface OrchestrationStateSnapshot {
3185
3187
  interface MemoryEntryLike {
3186
3188
  id: string
3187
3189
  key: string
3188
- value: unknown
3190
+ value: any
3189
3191
  type: MemoryType
3190
3192
  confidence: number
3191
3193
  scope: string
@@ -3199,8 +3201,8 @@ interface MemoryEntryLike {
3199
3201
  }
3200
3202
 
3201
3203
  interface MemoryFacadeLike {
3202
- remember(key: string, value: unknown, opts?: { type?: MemoryType; scope?: string; confidence?: number; tags?: string[]; source?: string }): Promise<void>
3203
- recall<T = unknown>(key: string): Promise<{ id: string; key: string; value: T; type: MemoryType; confidence: number; scope: string; ttl?: number | null; tags: string[]; source?: string; status: 'active' | 'obsolete' | 'superseded'; createdAt: number; lastConfirmedAt: number; updatedAt?: number } | null>
3204
+ remember(key: string, value: any, opts?: { type?: MemoryType; scope?: string; confidence?: number; tags?: string[]; source?: string }): Promise<void>
3205
+ recall<T = any>(key: string): Promise<{ id: string; key: string; value: T; type: MemoryType; confidence: number; scope: string; ttl?: number | null; tags: string[]; source?: string; status: 'active' | 'obsolete' | 'superseded'; createdAt: number; lastConfirmedAt: number; updatedAt?: number } | null>
3204
3206
  forget(key: string): Promise<void>
3205
3207
  _loadAll(): Promise<MemoryEntryLike[]>
3206
3208
  }
@@ -3273,7 +3275,7 @@ interface DispatchTask {
3273
3275
  inputRefs: string[]
3274
3276
  acceptanceCriteria: string[]
3275
3277
  requiredCapabilities: string[]
3276
- contextBrief?: unknown
3278
+ contextBrief?: any
3277
3279
  deadlineAt?: string
3278
3280
  timeoutMs?: number
3279
3281
  idempotencyKey: string
@@ -3310,7 +3312,7 @@ interface AgentResult {
3310
3312
  providerId: string
3311
3313
  runId: string
3312
3314
  status: 'success' | 'failure' | 'partial'
3313
- payload?: unknown
3315
+ payload?: any
3314
3316
  payloadRef?: string
3315
3317
  evidence: OrchestrationEvidenceReference[]
3316
3318
  warnings: string[]
@@ -3341,10 +3343,10 @@ interface ProviderHealth {
3341
3343
  interface NormalizedAdapterError {
3342
3344
  errorId: string
3343
3345
  providerId: string
3344
- category: 'discovery' | 'invocation' | 'authorization' | 'timeout' | 'cancellation' | 'network' | 'unknown'
3346
+ category: 'discovery' | 'invocation' | 'authorization' | 'timeout' | 'cancellation' | 'network' | 'any'
3345
3347
  message: string
3346
3348
  retryable: boolean
3347
- originalError?: unknown
3349
+ originalError?: any
3348
3350
  }
3349
3351
 
3350
3352
  interface ProviderEvidenceReference {
@@ -3370,7 +3372,7 @@ interface ProviderAdapter {
3370
3372
  subscribeToProgress?(jobHandle: AgentJobHandle, callback: (progress: AgentProgress) => void): Promise<() => void>
3371
3373
  getResult(jobHandle: AgentJobHandle): Promise<AgentResult>
3372
3374
  cancel(jobHandle: AgentJobHandle): Promise<boolean>
3373
- normalizeError(error: unknown): NormalizedAdapterError
3375
+ normalizeError(error: any): NormalizedAdapterError
3374
3376
  getArtifact?(jobHandle: AgentJobHandle, artifactId: string): Promise<ArtifactReference>
3375
3377
  getAuthContext?(): Promise<{ scopes: string[]; expiresAt?: string }>
3376
3378
  }
@@ -3385,7 +3387,7 @@ type AgentInvocationMode = 'sync' | 'async' | 'streaming'
3385
3387
 
3386
3388
  type TaskLifecycleCapability = 'status-polling' | 'status-subscription' | 'cancellation' | 'progress-streaming' | 'artifacts' | 'retry'
3387
3389
 
3388
- type AuthorizationStatus = 'authorized' | 'unauthorized' | 'unknown' | 'discovered' | 'available' | 'unavailable' | 'invocable' | 'not-invocable' | 'authorized' | 'unauthorized'
3390
+ type AuthorizationStatus = 'authorized' | 'unauthorized' | 'any' | 'discovered' | 'available' | 'unavailable' | 'invocable' | 'not-invocable' | 'authorized' | 'unauthorized'
3389
3391
 
3390
3392
  interface RecoveryResult {
3391
3393
  requiresSelection: boolean
@@ -3416,11 +3418,11 @@ interface RecoveryResult {
3416
3418
  }
3417
3419
 
3418
3420
  interface DotMemSanitizer {
3419
- sanitize: (value: unknown) => unknown
3420
- redact: (value: unknown) => unknown
3421
+ sanitize: (value: any) => any
3422
+ redact: (value: any) => any
3421
3423
  }
3422
3424
 
3423
- type ClaimRef = { id: string; knowledge: unknown; epistemicType?: string }
3425
+ type ClaimRef = { id: string; knowledge: any; epistemicType?: string }
3424
3426
 
3425
3427
  interface LoadedStore {
3426
3428
  sourceId: string
@@ -3458,9 +3460,9 @@ type PackageReport = {
3458
3460
  }
3459
3461
 
3460
3462
  type DotMemContextToolResult = {
3461
- [key: string]: unknown
3463
+ [key: string]: any
3462
3464
  content: Array<{ type: 'text'; text: string }>
3463
- structuredContent?: unknown
3465
+ structuredContent?: any
3464
3466
  isError?: boolean
3465
3467
  }
3466
3468
 
@@ -3485,7 +3487,7 @@ interface A2AAgentCard {
3485
3487
  inputModes?: string[]
3486
3488
  outputModes?: string[]
3487
3489
  }>
3488
- security?: Array<{ scheme?: string; credentials?: Record<string, unknown> }>
3490
+ security?: Array<{ scheme?: string; credentials?: Record<string, any> }>
3489
3491
  authenticatedExtensions?: string[]
3490
3492
  defaultInputModes?: string[]
3491
3493
  defaultOutputModes?: string[]
@@ -3495,35 +3497,35 @@ interface A2ATask {
3495
3497
  id: string
3496
3498
  contextId?: string
3497
3499
  sessionId?: string
3498
- status: { state: string; message?: unknown; timestamp?: string }
3500
+ status: { state: string; message?: any; timestamp?: string }
3499
3501
  artifacts?: Array<{
3500
3502
  artifactId: string
3501
3503
  name?: string
3502
3504
  description?: string
3503
3505
  parts?: Array<{ kind?: string; file?: { name?: string; mimeType?: string; bytes?: string } }>
3504
3506
  }>
3505
- history?: unknown[]
3506
- metadata?: Record<string, unknown>
3507
+ history?: any[]
3508
+ metadata?: Record<string, any>
3507
3509
  }
3508
3510
 
3509
3511
  interface A2AError {
3510
3512
  code?: number
3511
3513
  message: string
3512
- data?: unknown
3514
+ data?: any
3513
3515
  }
3514
3516
 
3515
3517
  interface A2AJsonRpcResponse {
3516
3518
  jsonrpc: '2.0'
3517
3519
  id: string
3518
- result?: unknown
3520
+ result?: any
3519
3521
  error?: A2AError
3520
3522
  }
3521
3523
 
3522
-
3523
- interface LoopCloseInput {
3524
- by: string
3525
- note?: string
3526
- closedAt?: string
3527
- resolution?: string
3528
- status?: "resolved" | "withdrawn"
3529
- }
3524
+
3525
+ interface LoopCloseInput {
3526
+ by: string
3527
+ note?: string
3528
+ closedAt?: string
3529
+ resolution?: string
3530
+ status?: "resolved" | "withdrawn"
3531
+ }
@@ -11,7 +11,7 @@ interface LlmCacheOptions<T = any> {
11
11
  key: {
12
12
  prompt: string
13
13
  model: string
14
- params?: Record<string, unknown>
14
+ params?: Record<string, any>
15
15
  context?: string
16
16
  }
17
17
  compute: () => Promise<T>