dotmem 0.3.2 → 0.3.4

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/types/memory.d.ts CHANGED
@@ -33,28 +33,28 @@ interface AcquiredClaim {
33
33
  evidence: EvidenceReference[]
34
34
  epistemicType?: EpistemicType
35
35
  provenance?: ClaimProvenance
36
- acquiredAt?: string
37
- until?: string
36
+ acquiredAt?: string
37
+ until?: string
38
38
  /** Epoch ms when this entry expires and should become inactive. Absence means no expiry. */
39
- expiresAt?: number
39
+ expiresAt?: number
40
40
  /** Bootstrap ordering metadata (P1-P5), not authority. Absence means unclassified. */
41
41
  bootstrapPriority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5' | 'unclassified'
42
42
  revision?: RevisionRelationship
43
43
  scope?: 'user' | 'project'
44
- kind?: MemoryKind
45
- lifetime?: 'durable' | 'operational'
46
- memoryClass?: 'episodic' | 'semantic' | 'procedure'
47
- probe?: any
48
- derivedFrom?: string[]
49
- derived_from?: string[]
50
- subject?: string
51
- predicate?: string
52
- taint?: 'user_direct' | 'local_code' | 'external_untrusted'
53
- risk?: 'user_direct' | 'local_code' | 'external_untrusted'
54
- status?: 'active' | 'quarantined' | 'archived' | 'superseded'
55
- screeningFlags?: string[]
56
- visibility?: 'public' | 'private'
57
- encryptedPayload?: string
44
+ kind?: MemoryKind
45
+ lifetime?: 'durable' | 'operational'
46
+ memoryClass?: 'episodic' | 'semantic' | 'procedure'
47
+ probe?: any
48
+ derivedFrom?: string[]
49
+ derived_from?: string[]
50
+ subject?: string
51
+ predicate?: string
52
+ taint?: 'user_direct' | 'local_code' | 'external_untrusted'
53
+ risk?: 'user_direct' | 'local_code' | 'external_untrusted'
54
+ status?: 'active' | 'quarantined' | 'archived' | 'superseded'
55
+ screeningFlags?: string[]
56
+ visibility?: 'public' | 'private'
57
+ encryptedPayload?: string
58
58
  risk?: 'user_direct' | 'local_code' | 'external_untrusted'
59
59
  status?: 'active' | 'quarantined' | 'archived' | 'superseded'
60
60
  screeningFlags?: string[]
@@ -73,7 +73,7 @@ type ApplicabilityDimensionState = 'MATCH' | 'MISMATCH' | 'UNSPECIFIED'
73
73
  *
74
74
  * - MATCH: every declared dimension the situation also knows matched
75
75
  * - MISMATCH: at least one declared dimension conflicts (hard exclusion)
76
- * - PARTIAL: some dimensions matched, others are unknown in the situation
76
+ * - PARTIAL: some dimensions matched, others are any in the situation
77
77
  * - UNSPECIFIED: the claim declares nothing the situation can resolve
78
78
  */
79
79
  type ApplicabilityState = 'MATCH' | 'MISMATCH' | 'UNSPECIFIED' | 'PARTIAL'
@@ -162,7 +162,7 @@ interface ProjectedExperience {
162
162
  /** Derived currentness of the underlying claim, when discovery computed it. */
163
163
  currentness?: CurrentnessState
164
164
  }
165
- type CurrentnessState = 'historical' | 'superseded' | 'expired' | 'verified' | 'unverified' | 'contested' | 'unknown-currentness'
165
+ type CurrentnessState = 'historical' | 'superseded' | 'expired' | 'verified' | 'unverified' | 'contested' | 'any-currentness'
166
166
  interface ContextProjection {
167
167
  format: 'dotmem-context-v1'
168
168
  status: 'candidate-context-not-current-truth'
@@ -183,7 +183,7 @@ interface ContextProjection {
183
183
  interface PatchOperation {
184
184
  op: 'set' | 'delete'
185
185
  path: string
186
- value?: unknown
186
+ value?: any
187
187
  }
188
188
  /**
189
189
  * Logical operations recorded in the local sync journal.
@@ -302,21 +302,21 @@ interface AcquireOptions {
302
302
  retracts?: string | string[]
303
303
  reason?: string
304
304
  scope?: 'user' | 'project'
305
- kind?: MemoryKind
306
- lifetime?: 'durable' | 'operational'
307
- probe?: any
308
- derivedFrom?: string[]
309
- derived_from?: string[]
310
- subject?: string
311
- predicate?: string
312
- autoSupersede?: boolean
313
- source?: string
314
- taint?: 'user_direct' | 'local_code' | 'external_untrusted'
315
- risk?: 'user_direct' | 'local_code' | 'external_untrusted'
305
+ kind?: MemoryKind
306
+ lifetime?: 'durable' | 'operational'
307
+ probe?: any
308
+ derivedFrom?: string[]
309
+ derived_from?: string[]
310
+ subject?: string
311
+ predicate?: string
312
+ autoSupersede?: boolean
313
+ source?: string
314
+ taint?: 'user_direct' | 'local_code' | 'external_untrusted'
315
+ risk?: 'user_direct' | 'local_code' | 'external_untrusted'
316
316
  visibility?: 'public' | 'private'
317
317
  encryptedPayload?: string
318
318
  sourceProject?: string
319
- /** Bootstrap ordering metadata (P1-P5), not authority. Absence means unclassified. */
319
+ /** Bootstrap ordering metadata (P1-P5), not authority. Absence means unclassified. */
320
320
  bootstrapPriority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5' | 'unclassified'
321
321
  }
322
322
  interface RecallOptions {
package/types/policy.d.ts CHANGED
@@ -153,7 +153,7 @@ interface PolicyDecision {
153
153
  authority: PolicyAuthority
154
154
  grantedAt: string
155
155
  /** The governed memory claim, when present in the evaluated store. */
156
- claim?: unknown
156
+ claim?: any
157
157
  /** Effective-state provenance: present only under a targeting override. */
158
158
  override?: {
159
159
  policyOverrideId: string
@@ -242,7 +242,7 @@ interface MemoryPolicyAPI {
242
242
  */
243
243
  clear(authority: PolicyAuthority): Promise<void>
244
244
  /** Decision-time pull: only the policies applicable to the event, as effective state. */
245
- evaluate(event: string, payload?: unknown): Promise<PolicyEvaluation>
245
+ evaluate(event: string, payload?: any): Promise<PolicyEvaluation>
246
246
  /** Privileged out-of-band override surface. */
247
247
  override: MemoryPolicyOverrideAPI
248
248
  /** The durable audit trail, read-only. */