dotmem 0.1.7 → 0.1.8

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.1.7",
4
+ "version": "0.1.8",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "description": "The AI memory layer for agents and apps: acquired experience, discovery, context projection, continuity, and logic engine. Built on Memorio's state+store foundation.",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@modelcontextprotocol/server": "2.4.0",
78
- "memorio": "5.5.3",
78
+ "memorio": "5.5.4",
79
79
  "zod": "4.6.7"
80
80
  },
81
81
  "overrides": {
@@ -224,8 +224,6 @@ export declare function activeTransactionId(): string | null
224
224
  export declare const store: any
225
225
  export declare const session: any
226
226
  export declare const cache: LlmCacheAPI
227
- export declare const idb: any
228
- export declare const sqlite: any
229
227
  export declare const observer: any
230
228
  export declare const schema: any
231
229
  export declare function registerSchema(path: string, schema: any): void
package/types/memory.d.ts CHANGED
@@ -8,7 +8,7 @@ export type MemoryType =
8
8
  | 'context'
9
9
 
10
10
  export type MemoryStatus = 'active' | 'obsolete' | 'superseded'
11
- export type MemoryKind = 'experience' | 'agent' | 'relationship' | 'logic' | 'note'
11
+ export type MemoryKind = 'experience' | 'agent' | 'relationship' | 'logic' | 'note' | 'rule'
12
12
 
13
13
  export type JsonPrimitive = string | number | boolean | null
14
14
  export type JsonValue = JsonPrimitive | JsonValue[] | { [key: string]: JsonValue }
@@ -111,6 +111,40 @@ export interface DiscoveryExplanation {
111
111
  export interface DiscoveryCandidate {
112
112
  claim: AcquiredClaim
113
113
  explanation: DiscoveryExplanation
114
+ /** Derived currentness, so the projection renders what discovery resolved. */
115
+ currentness?: CurrentnessState
116
+ }
117
+
118
+ export type OmissionReason =
119
+ | 'retracted'
120
+ | 'superseded'
121
+ | 'expired'
122
+ | 'scope'
123
+ | 'applicability-mismatch'
124
+ | 'no-term-match'
125
+ | 'limit'
126
+ | 'budget'
127
+
128
+ export type OmissionGate =
129
+ | 'revision-resolution'
130
+ | 'scope'
131
+ | 'freshness'
132
+ | 'applicability'
133
+ | 'ranking'
134
+ | 'projection'
135
+
136
+ export interface OmissionRecord {
137
+ id: string
138
+ reason: OmissionReason
139
+ gate: OmissionGate
140
+ detail?: string
141
+ }
142
+
143
+ export interface OmissionManifest {
144
+ considered: number
145
+ included: number
146
+ items: OmissionRecord[]
147
+ byReason: Array<{ reason: OmissionReason; count: number }>
114
148
  }
115
149
 
116
150
  export interface DiscoveryResult {
@@ -120,12 +154,16 @@ export interface DiscoveryResult {
120
154
  /** Structured applicability derived from the situation, for inspection. */
121
155
  situationApplicability?: SituationApplicability
122
156
  candidates: DiscoveryCandidate[]
157
+ /** Claims considered and not returned, with the decisive gate and reason. */
158
+ omissions?: OmissionRecord[]
123
159
  }
124
160
 
125
161
  export interface ProjectionOptions {
126
162
  maxCandidates?: number
127
163
  /** Maximum UTF-16 characters in the text representation. Not an LLM token budget. */
128
164
  maxCharacters?: number
165
+ /** Presentation mode: compact gist+ids, standard full record, or full alias. */
166
+ format?: 'compact' | 'standard' | 'full'
129
167
  }
130
168
 
131
169
  export type ProjectedExperienceStatus = 'prior-acquired-experience-candidate'
@@ -141,8 +179,19 @@ export interface ProjectedExperience {
141
179
  acquiredAt?: string
142
180
  revision?: RevisionRelationship
143
181
  sourceId?: string
182
+ /** Derived currentness of the underlying claim, when discovery computed it. */
183
+ currentness?: CurrentnessState
144
184
  }
145
185
 
186
+ export type CurrentnessState =
187
+ | 'historical'
188
+ | 'superseded'
189
+ | 'expired'
190
+ | 'verified'
191
+ | 'unverified'
192
+ | 'contested'
193
+ | 'unknown-currentness'
194
+
146
195
  export interface ContextProjection {
147
196
  format: 'dotmem-context-v1'
148
197
  status: 'candidate-context-not-current-truth'
@@ -151,6 +200,8 @@ export interface ContextProjection {
151
200
  totalCandidates: number
152
201
  omittedCandidates: number
153
202
  experiences: ProjectedExperience[]
203
+ /** Present when the projection tracked omissions; absent on legacy paths. */
204
+ manifest?: OmissionManifest
154
205
  text: string
155
206
  }
156
207