dotmem 0.2.2 → 0.2.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/AGENTS.md +22 -22
- package/CHANGELOG.md +44 -30
- package/DOTMEM.md +3 -3
- package/MEMORY.md +37 -37
- package/OVERVIEW.md +376 -0
- package/PACKAGE.md +6 -6
- package/README.md +457 -456
- package/SECURITY.md +10 -10
- package/agent.cjs +119 -28
- package/agent.js +119 -28
- package/built-in-context.json +12 -12
- package/cli.cjs +222 -131
- package/cli.js +223 -132
- package/context/profiles/joy/ai.md +3 -3
- package/context/profiles/joy/decision.md +1 -1
- package/context/templates/AI.md +1 -1
- package/context/templates/DOTMEM.md +3 -3
- package/global.cjs +119 -28
- package/global.js +119 -28
- package/index.cjs +143 -53
- package/index.js +143 -53
- package/mcp.cjs +172 -79
- package/mcp.js +172 -79
- package/package.json +4 -4
- package/types/exports.d.ts +1 -0
- package/types/global-types.d.ts +2 -1
- package/types/memory.d.ts +8 -1
- package/global.d.ts +0 -12
- package/index.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dotmem",
|
|
3
3
|
"codeName": "dotmem",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4",
|
|
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,13 +75,13 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@modelcontextprotocol/server": "2.4.0",
|
|
78
|
-
"memorio": "5.5.
|
|
79
|
-
"reactflow": "11.11.4",
|
|
78
|
+
"memorio": "5.5.5",
|
|
80
79
|
"zod": "4.6.7"
|
|
81
80
|
},
|
|
82
81
|
"overrides": {
|
|
83
82
|
"glob": "^14.0.2",
|
|
84
|
-
"minimatch": "^11.0.1"
|
|
83
|
+
"minimatch": "^11.0.1",
|
|
84
|
+
"picomatch": "^4.0.7"
|
|
85
85
|
},
|
|
86
86
|
"typings": "./index.d.ts",
|
|
87
87
|
"scripts": {
|
package/types/exports.d.ts
CHANGED
|
@@ -277,6 +277,7 @@ 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
281
|
export declare const dotmem: any
|
|
281
282
|
export declare function isBrowser(): boolean
|
|
282
283
|
export declare function isNode(): boolean
|
package/types/global-types.d.ts
CHANGED
|
@@ -232,6 +232,7 @@ type ShortIntent =
|
|
|
232
232
|
| 'inspect'
|
|
233
233
|
| 'dump'
|
|
234
234
|
| 'audit'
|
|
235
|
+
| 'projectAudit'
|
|
235
236
|
| 'health'
|
|
236
237
|
| 'doctor'
|
|
237
238
|
| 'repair'
|
|
@@ -1959,7 +1960,7 @@ interface PolicyLockSession {
|
|
|
1959
1960
|
* Call immediately before the atomic document write: if the lock was
|
|
1960
1961
|
* broken and re-created by another process, the mutation is refused
|
|
1961
1962
|
* instead of committed under a lock we no longer hold. This is the
|
|
1962
|
-
* complementary guarantee to the token-safe break
|
|
1963
|
+
* complementary guarantee to the token-safe break - together they ensure
|
|
1963
1964
|
* that no policy change is ever committed while the lock identity is not
|
|
1964
1965
|
* ours.
|
|
1965
1966
|
*/
|
package/types/memory.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// eslint-disable-next-line no-var
|
|
3
|
+
var mem: typeof memory
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
type MemoryScope = 'hot' | 'session' | 'local' | 'durable'
|
|
2
7
|
type MemoryType =
|
|
3
8
|
| 'fact'
|
|
@@ -272,6 +277,8 @@ interface MemoryEntry<T = any> {
|
|
|
272
277
|
* Replaces wall-clock-only ordering which is vulnerable to clock drift.
|
|
273
278
|
*/
|
|
274
279
|
hlc?: string
|
|
280
|
+
/** Tenant ID for storage-level isolation. Null/undefined = unowned (legacy). */
|
|
281
|
+
tenantId?: string | null
|
|
275
282
|
/**
|
|
276
283
|
* Field-level path for path-level journaling (e.g. "user.role").
|
|
277
284
|
* When set, the journal entry represents a patch to a sub-path
|
|
@@ -345,4 +352,4 @@ interface MemoryStats {
|
|
|
345
352
|
byScope: Record<MemoryScope, number>
|
|
346
353
|
byType: Partial<Record<MemoryType, number>>
|
|
347
354
|
expired: number
|
|
348
|
-
}
|
|
355
|
+
}
|
package/global.d.ts
DELETED
package/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
// DOTMEM TYPE ENTRY POINT
|
|
3
|
-
///
|
|
4
|
-
|
|
5
|
-
/// <reference path="./types/exports.d.ts" />
|
|
6
|
-
/// <reference path="./types/memory.d.ts" />
|
|
7
|
-
/// <reference path="./types/agent.d.ts" />
|
|
8
|
-
/// <reference path="./types/logic.d.ts" />
|
|
9
|
-
/// <reference path="./types/policy.d.ts" />
|
|
10
|
-
/// <reference path="./types/profile.d.ts" />
|
|
11
|
-
/// <reference path="./types/inspect.d.ts" />
|
|
12
|
-
/// <reference path="./types/assets.d.ts" />
|
|
13
|
-
|
|
14
|
-
export * from './types/exports'
|
|
15
|
-
export { default } from './types/exports'
|
|
16
|
-
|
|
17
|
-
/// <reference path="./types/global-types.d.ts" />
|