dotmem 0.3.2 → 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.2",
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
@@ -317,7 +317,7 @@ interface DotMemContinuityInput {
317
317
  tokenBudget?: number
318
318
  scope?: 'user' | 'project' | 'task'
319
319
  subject?: string
320
- statePatch?: Record<string, unknown>
320
+ statePatch?: Record<string, any>
321
321
  objective?: string
322
322
  activeTopic?: string
323
323
  currentProblem?: string
@@ -329,7 +329,7 @@ interface DotMemContinuityInput {
329
329
 
330
330
  type ContinuityToolResult = {
331
331
  content: Array<{ type: 'text'; text: string }>
332
- structuredContent?: unknown
332
+ structuredContent?: any
333
333
  isError?: boolean
334
334
  }
335
335
 
@@ -357,7 +357,7 @@ interface LifecycleEventRecord {
357
357
  type: string
358
358
  phase: LifecyclePhase
359
359
  timestamp: string
360
- data: Record<string, unknown>
360
+ data: Record<string, any>
361
361
  }
362
362
 
363
363
  interface ResumePackageInput {
@@ -393,7 +393,7 @@ interface SubtleCryptoLike {
393
393
 
394
394
  type SubKeyUsages = readonly ['encrypt', 'decrypt'] | readonly ['deriveKey'] | readonly ['deriveBits']
395
395
 
396
- type AlikeAlgorithm = Record<string, unknown>
396
+ type AlikeAlgorithm = Record<string, any>
397
397
 
398
398
  interface ProjectState {
399
399
  initialized: boolean
@@ -467,7 +467,7 @@ interface ContextRunOptions {
467
467
  * influence behavior but never identity, invariants, or authority, and they
468
468
  * are never persisted.
469
469
  */
470
- overlays?: readonly unknown[]
470
+ overlays?: readonly any[]
471
471
  /**
472
472
  * A verified carrier handshake session record.
473
473
  *
@@ -608,7 +608,7 @@ type ConvergenceStatus = 'continue' | 'stop'
608
608
 
609
609
  type LearningEvent = 'corrected-error' | 'disproved-assumption' | 'compensated-success' | 'repeated-non-convergence'
610
610
 
611
- 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
612
612
 
613
613
  interface DotMemProfileDocument {
614
614
  readonly name: string
@@ -729,7 +729,7 @@ interface RoleActivationDecision {
729
729
  readonly reason: string
730
730
  }
731
731
 
732
- type SpeakerBindingState = 'trusted-hi' | 'unknown' | 'untrusted'
732
+ type SpeakerBindingState = 'trusted-hi' | 'any' | 'untrusted'
733
733
 
734
734
  type AuthorityStatus = 'BOUND' | 'UNBOUND'
735
735
 
@@ -1001,7 +1001,7 @@ interface CanonicalReconstructionInput {
1001
1001
  /** The HI's own explicit identity, when the runtime supplies it. */
1002
1002
  userIdentity?: string
1003
1003
  /** Scoped, temporary overlays for this run. Never canonical. */
1004
- permittedOverlays?: readonly unknown[]
1004
+ permittedOverlays?: readonly any[]
1005
1005
  /** Injectable clock for deterministic reconstruction. */
1006
1006
  now?: () => Date
1007
1007
  }
@@ -1014,7 +1014,7 @@ interface CanonicalEvidenceViolation {
1014
1014
  /** What failed, in canonical vocabulary. */
1015
1015
  problem: string
1016
1016
  /** The received representation at the failing path. */
1017
- received: unknown
1017
+ received: any
1018
1018
  /** How to fix it. */
1019
1019
  fix: string
1020
1020
  }
@@ -1249,7 +1249,7 @@ type FeedbackKind = 'helped' | 'misled' | 'ignored'
1249
1249
 
1250
1250
  interface ProjectableClaim {
1251
1251
  id: string
1252
- knowledge: unknown
1252
+ knowledge: any
1253
1253
  epistemicType?: string
1254
1254
  scope?: 'user' | 'project'
1255
1255
  }
@@ -1376,13 +1376,13 @@ interface HardRule {
1376
1376
  status: HardRuleStatus
1377
1377
  scope: string
1378
1378
  statement: string
1379
- applicability?: Record<string, unknown>
1379
+ applicability?: Record<string, any>
1380
1380
  authority: PolicyAuthority
1381
1381
  grantedAt: string
1382
1382
  createdAt: string
1383
1383
  updatedAt?: string
1384
1384
  fingerprint: string
1385
- provenance?: Record<string, unknown>
1385
+ provenance?: Record<string, any>
1386
1386
  auditRef?: string
1387
1387
  }
1388
1388
 
@@ -1415,7 +1415,7 @@ type HardRuleStatus = 'proposed' | 'under_review' | 'approved' | 'active' | 'sus
1415
1415
  interface CacheEntry {
1416
1416
  id: string
1417
1417
  key: string
1418
- value: unknown
1418
+ value: any
1419
1419
  identity: string
1420
1420
  identityVersion: number
1421
1421
  source: 'cache' | 'index' | 'summary' | 'checkpoint'
@@ -1588,7 +1588,7 @@ interface InspectReportOptions {
1588
1588
 
1589
1589
  interface InspectReport {
1590
1590
  markdown: string
1591
- json: unknown
1591
+ json: any
1592
1592
  }
1593
1593
 
1594
1594
  interface LanguageDetection {
@@ -1723,14 +1723,14 @@ interface DecodedMemArtifact extends DecodedMemFile {
1723
1723
 
1724
1724
  interface MemInspection {
1725
1725
  status: MemInspectionStatus
1726
- representation: DecodedMemArtifact['representation'] | 'unknown'
1726
+ representation: DecodedMemArtifact['representation'] | 'any'
1727
1727
  message: string
1728
1728
  packageVersion?: number
1729
1729
  memoryVersion?: number
1730
1730
  contentId?: string
1731
1731
  parts: Array<{ path: string; bytes: number; protected: boolean }>
1732
1732
  knowledge?: KnowledgeState
1733
- unknownSemantics?: { mapEntries: number; vocabularyEntries: number; extensionParts: string[] }
1733
+ anySemantics?: { mapEntries: number; vocabularyEntries: number; extensionParts: string[] }
1734
1734
  integrity?: { status: 'valid'; algorithm: 'sha256'; contentId: string }
1735
1735
  authenticity?: {
1736
1736
  status: 'unsigned' | 'valid' | 'invalid' | 'unsupported'
@@ -1988,7 +1988,7 @@ interface PolicyDecision {
1988
1988
  conditionSatisfied?: boolean
1989
1989
  grantedAt: string
1990
1990
  /** The governed memory claim, when present in the evaluated store. */
1991
- claim?: unknown
1991
+ claim?: any
1992
1992
  /**
1993
1993
  * Effective-state provenance. Present only when a privileged
1994
1994
  * override targets this record; ordinary resolution is unchanged.
@@ -2409,7 +2409,7 @@ type DotMemStorageDivergence = 'none' | 'SHADOWED' | 'SPLIT_BRAIN' | 'MIGRATION_
2409
2409
  interface RuntimeProcessLike {
2410
2410
  env?: Record<string, string | undefined>
2411
2411
  platform?: string
2412
- getBuiltinModule?: (id: string) => unknown
2412
+ getBuiltinModule?: (id: string) => any
2413
2413
  }
2414
2414
 
2415
2415
  type SyncFsLike = typeof import('node:fs')
@@ -2486,7 +2486,7 @@ interface ClaimSelfCheck {
2486
2486
  pattern?: string
2487
2487
  path?: string
2488
2488
  pointer?: string
2489
- expect?: unknown
2489
+ expect?: any
2490
2490
  on: 'staged' | 'committed' | 'working-tree'
2491
2491
  description?: string
2492
2492
  }
@@ -2530,8 +2530,8 @@ interface AcquiredClaim {
2530
2530
  * `public` = plaintext in shared stores/Git; `private` = encrypted at rest.
2531
2531
  * Absence defaults to `public`.
2532
2532
  */
2533
- visibility?: 'public' | 'private'
2534
- encryptedPayload?: string
2533
+ visibility?: 'public' | 'private'
2534
+ encryptedPayload?: string
2535
2535
  /**
2536
2536
  * A self-checking rule that can verify whether the claim still holds.
2537
2537
  * The check runs read-only on the output and reports violations.
@@ -2566,23 +2566,23 @@ interface AcquireOptions {
2566
2566
  retracts?: string | string[]
2567
2567
  reason?: string
2568
2568
  scope?: 'user' | 'project'
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
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
2586
2586
  risk?: 'user_direct' | 'local_code' | 'external_untrusted'
2587
2587
  visibility?: 'public' | 'private'
2588
2588
  sourceProject?: string
@@ -2823,7 +2823,7 @@ type SituationApplicability = Record<string, JsonPrimitive>
2823
2823
 
2824
2824
  type SituationFacts = SituationApplicability
2825
2825
 
2826
- type CurrentnessState = 'historical' | 'superseded' | 'expired' | 'verified' | 'unverified' | 'contested' | 'unknown-currentness'
2826
+ type CurrentnessState = 'historical' | 'superseded' | 'expired' | 'verified' | 'unverified' | 'contested' | 'any-currentness'
2827
2827
 
2828
2828
  type OmissionReason = 'retracted' | 'superseded' | 'expired' | 'stale' | 'scope' | 'applicability-mismatch' | 'no-term-match' | 'limit' | 'budget'
2829
2829
 
@@ -2849,7 +2849,7 @@ interface UserIdentity {
2849
2849
 
2850
2850
  interface UserIdentityStore {
2851
2851
  recall<T>(key: string): Promise<T | null>
2852
- remember(key: string, value: unknown, opts?: Record<string, unknown>): Promise<void>
2852
+ remember(key: string, value: any, opts?: Record<string, any>): Promise<void>
2853
2853
  forget(key: string): Promise<void>
2854
2854
  }
2855
2855
 
@@ -3187,7 +3187,7 @@ interface OrchestrationStateSnapshot {
3187
3187
  interface MemoryEntryLike {
3188
3188
  id: string
3189
3189
  key: string
3190
- value: unknown
3190
+ value: any
3191
3191
  type: MemoryType
3192
3192
  confidence: number
3193
3193
  scope: string
@@ -3201,8 +3201,8 @@ interface MemoryEntryLike {
3201
3201
  }
3202
3202
 
3203
3203
  interface MemoryFacadeLike {
3204
- remember(key: string, value: unknown, opts?: { type?: MemoryType; scope?: string; confidence?: number; tags?: string[]; source?: string }): Promise<void>
3205
- 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>
3206
3206
  forget(key: string): Promise<void>
3207
3207
  _loadAll(): Promise<MemoryEntryLike[]>
3208
3208
  }
@@ -3275,7 +3275,7 @@ interface DispatchTask {
3275
3275
  inputRefs: string[]
3276
3276
  acceptanceCriteria: string[]
3277
3277
  requiredCapabilities: string[]
3278
- contextBrief?: unknown
3278
+ contextBrief?: any
3279
3279
  deadlineAt?: string
3280
3280
  timeoutMs?: number
3281
3281
  idempotencyKey: string
@@ -3312,7 +3312,7 @@ interface AgentResult {
3312
3312
  providerId: string
3313
3313
  runId: string
3314
3314
  status: 'success' | 'failure' | 'partial'
3315
- payload?: unknown
3315
+ payload?: any
3316
3316
  payloadRef?: string
3317
3317
  evidence: OrchestrationEvidenceReference[]
3318
3318
  warnings: string[]
@@ -3343,10 +3343,10 @@ interface ProviderHealth {
3343
3343
  interface NormalizedAdapterError {
3344
3344
  errorId: string
3345
3345
  providerId: string
3346
- category: 'discovery' | 'invocation' | 'authorization' | 'timeout' | 'cancellation' | 'network' | 'unknown'
3346
+ category: 'discovery' | 'invocation' | 'authorization' | 'timeout' | 'cancellation' | 'network' | 'any'
3347
3347
  message: string
3348
3348
  retryable: boolean
3349
- originalError?: unknown
3349
+ originalError?: any
3350
3350
  }
3351
3351
 
3352
3352
  interface ProviderEvidenceReference {
@@ -3372,7 +3372,7 @@ interface ProviderAdapter {
3372
3372
  subscribeToProgress?(jobHandle: AgentJobHandle, callback: (progress: AgentProgress) => void): Promise<() => void>
3373
3373
  getResult(jobHandle: AgentJobHandle): Promise<AgentResult>
3374
3374
  cancel(jobHandle: AgentJobHandle): Promise<boolean>
3375
- normalizeError(error: unknown): NormalizedAdapterError
3375
+ normalizeError(error: any): NormalizedAdapterError
3376
3376
  getArtifact?(jobHandle: AgentJobHandle, artifactId: string): Promise<ArtifactReference>
3377
3377
  getAuthContext?(): Promise<{ scopes: string[]; expiresAt?: string }>
3378
3378
  }
@@ -3387,7 +3387,7 @@ type AgentInvocationMode = 'sync' | 'async' | 'streaming'
3387
3387
 
3388
3388
  type TaskLifecycleCapability = 'status-polling' | 'status-subscription' | 'cancellation' | 'progress-streaming' | 'artifacts' | 'retry'
3389
3389
 
3390
- 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'
3391
3391
 
3392
3392
  interface RecoveryResult {
3393
3393
  requiresSelection: boolean
@@ -3418,11 +3418,11 @@ interface RecoveryResult {
3418
3418
  }
3419
3419
 
3420
3420
  interface DotMemSanitizer {
3421
- sanitize: (value: unknown) => unknown
3422
- redact: (value: unknown) => unknown
3421
+ sanitize: (value: any) => any
3422
+ redact: (value: any) => any
3423
3423
  }
3424
3424
 
3425
- type ClaimRef = { id: string; knowledge: unknown; epistemicType?: string }
3425
+ type ClaimRef = { id: string; knowledge: any; epistemicType?: string }
3426
3426
 
3427
3427
  interface LoadedStore {
3428
3428
  sourceId: string
@@ -3460,9 +3460,9 @@ type PackageReport = {
3460
3460
  }
3461
3461
 
3462
3462
  type DotMemContextToolResult = {
3463
- [key: string]: unknown
3463
+ [key: string]: any
3464
3464
  content: Array<{ type: 'text'; text: string }>
3465
- structuredContent?: unknown
3465
+ structuredContent?: any
3466
3466
  isError?: boolean
3467
3467
  }
3468
3468
 
@@ -3487,7 +3487,7 @@ interface A2AAgentCard {
3487
3487
  inputModes?: string[]
3488
3488
  outputModes?: string[]
3489
3489
  }>
3490
- security?: Array<{ scheme?: string; credentials?: Record<string, unknown> }>
3490
+ security?: Array<{ scheme?: string; credentials?: Record<string, any> }>
3491
3491
  authenticatedExtensions?: string[]
3492
3492
  defaultInputModes?: string[]
3493
3493
  defaultOutputModes?: string[]
@@ -3497,35 +3497,35 @@ interface A2ATask {
3497
3497
  id: string
3498
3498
  contextId?: string
3499
3499
  sessionId?: string
3500
- status: { state: string; message?: unknown; timestamp?: string }
3500
+ status: { state: string; message?: any; timestamp?: string }
3501
3501
  artifacts?: Array<{
3502
3502
  artifactId: string
3503
3503
  name?: string
3504
3504
  description?: string
3505
3505
  parts?: Array<{ kind?: string; file?: { name?: string; mimeType?: string; bytes?: string } }>
3506
3506
  }>
3507
- history?: unknown[]
3508
- metadata?: Record<string, unknown>
3507
+ history?: any[]
3508
+ metadata?: Record<string, any>
3509
3509
  }
3510
3510
 
3511
3511
  interface A2AError {
3512
3512
  code?: number
3513
3513
  message: string
3514
- data?: unknown
3514
+ data?: any
3515
3515
  }
3516
3516
 
3517
3517
  interface A2AJsonRpcResponse {
3518
3518
  jsonrpc: '2.0'
3519
3519
  id: string
3520
- result?: unknown
3520
+ result?: any
3521
3521
  error?: A2AError
3522
3522
  }
3523
3523
 
3524
-
3525
- interface LoopCloseInput {
3526
- by: string
3527
- note?: string
3528
- closedAt?: string
3529
- resolution?: string
3530
- status?: "resolved" | "withdrawn"
3531
- }
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>