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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dotmem",
3
3
  "codeName": "dotmem",
4
- "version": "0.2.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.",
@@ -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
@@ -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 — together they ensure
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
@@ -1,12 +0,0 @@
1
- ///
2
- // DOTMEM GLOBAL ENTRYPOINT TYPES
3
- //
4
-
5
-
6
- declare global {
7
- // eslint-disable-next-line no-var
8
- var mem: typeof memory
9
- }
10
-
11
- export { memory } from './index'
12
- export { default } from './index'
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" />