dotmem 0.2.2 → 0.2.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/AGENTS.md +22 -22
- package/CHANGELOG.md +44 -30
- package/DOTMEM.md +3 -3
- package/MEMORY.md +37 -37
- package/OVERVIEW.md +378 -0
- package/PACKAGE.md +6 -6
- package/README.md +11 -11
- package/SECURITY.md +10 -10
- package/agent.cjs +29 -28
- package/agent.js +29 -28
- package/built-in-context.json +12 -12
- package/cli.cjs +130 -129
- package/cli.js +130 -129
- 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 +29 -28
- package/global.js +29 -28
- package/index.cjs +49 -49
- package/index.js +49 -49
- package/mcp.cjs +73 -73
- package/mcp.js +73 -73
- package/package.json +1 -1
- package/types/exports.d.ts +1 -0
- package/types/global-types.d.ts +1 -1
- package/types/memory.d.ts +6 -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.3",
|
|
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.",
|
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
|
@@ -1959,7 +1959,7 @@ interface PolicyLockSession {
|
|
|
1959
1959
|
* Call immediately before the atomic document write: if the lock was
|
|
1960
1960
|
* broken and re-created by another process, the mutation is refused
|
|
1961
1961
|
* instead of committed under a lock we no longer hold. This is the
|
|
1962
|
-
* complementary guarantee to the token-safe break
|
|
1962
|
+
* complementary guarantee to the token-safe break - together they ensure
|
|
1963
1963
|
* that no policy change is ever committed while the lock identity is not
|
|
1964
1964
|
* ours.
|
|
1965
1965
|
*/
|
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'
|
|
@@ -345,4 +350,4 @@ interface MemoryStats {
|
|
|
345
350
|
byScope: Record<MemoryScope, number>
|
|
346
351
|
byType: Partial<Record<MemoryType, number>>
|
|
347
352
|
expired: number
|
|
348
|
-
}
|
|
353
|
+
}
|
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" />
|