dotmem 0.0.3 → 0.0.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.
Files changed (14) hide show
  1. package/README.md +2 -2
  2. package/agent.cjs +10 -1
  3. package/agent.js +10 -1
  4. package/cli.cjs +211 -22
  5. package/cli.js +208 -19
  6. package/global.cjs +5624 -4806
  7. package/global.js +5576 -4779
  8. package/index.cjs +6327 -5638
  9. package/index.js +6084 -5219
  10. package/llms.txt +1 -1
  11. package/mcp.cjs +36958 -36380
  12. package/mcp.js +36957 -36379
  13. package/package.json +7 -7
  14. package/types/exports.d.ts +24 -5
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "dotmem",
3
3
  "codeName": "dotmem",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "description": "The AI memory layer for agents and apps: acquired experience, discovery, context projection, continuity, and logic engine. Built on dotmem's state+store foundation.",
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.",
8
8
  "main": "./index.cjs",
9
9
  "module": "./index.js",
10
10
  "types": "./index.d.ts",
@@ -37,8 +37,8 @@
37
37
  }
38
38
  ],
39
39
  "bin": {
40
- "dotmem": "./bin/cli.js",
41
- "dotmem-mcp": "./bin/mcp.js"
40
+ "dotmem": "bin/cli.js",
41
+ "dotmem-mcp": "bin/mcp.js"
42
42
  },
43
43
  "workspaces": [
44
44
  "tests"
@@ -82,11 +82,11 @@
82
82
  "glob": "^14.0.2",
83
83
  "minimatch": "^11.0.1"
84
84
  },
85
+ "dependencies": {
86
+ "memorio": "5.5.3"
87
+ },
85
88
  "typings": "./index.d.ts",
86
89
  "scripts": {
87
90
  "prepack": "node -e \"['bin/cli.js','bin/cli.cjs','bin/mcp.js','bin/mcp.cjs'].forEach(f=>{try{require('fs').chmodSync(f,0o755)}catch{}})\""
88
- },
89
- "dependencies": {
90
- "dotmem": ">=0.0.1"
91
91
  }
92
92
  }
@@ -124,13 +124,33 @@ export interface MemorySeed {
124
124
  origin: string
125
125
  }
126
126
 
127
- // ── dotmem public runtime exports ────────────────────────────────────────
127
+ // --- Foundation types from Memorio (re-exported) ---
128
+ export type {
129
+ Operation,
130
+ Mutation,
131
+ Patch,
132
+ PatchOperation,
133
+ Transaction,
134
+ Commit,
135
+ MutateOptions
136
+ } from 'memorio'
137
+ // --- dotmem public runtime exports ---
128
138
  declare const memory: MemoryFacade
129
- declare const logic: any
130
139
  declare const continuity: any
131
140
  declare const security: any
132
141
 
133
- // ── User identity surface ────────────────────────────────────────────────
142
+ // --- Dotmem-specific encryption envelope ---
143
+
144
+ export interface EncryptedEnvelope {
145
+ id?: string
146
+ iv: string
147
+ data: string
148
+ tag?: string
149
+ algorithm?: string
150
+ keyId?: string
151
+ }
152
+
153
+ // --- User identity surface ---
134
154
  export interface UserIdentity {
135
155
  id: string
136
156
  name?: string
@@ -204,8 +224,7 @@ declare const JO_PROFILE: Readonly<DotMemProfile>
204
224
  declare function currentTimestamp(): string
205
225
  declare function activeTransactionId(): string | null
206
226
 
207
- // ── Foundation re-exports (runtime values) from memorio ──────────────────
208
- declare const state: any
227
+ // --- Foundation values from Memorio (ambient globals) ---declare const state: any
209
228
  declare const store: any
210
229
  declare const session: any
211
230
  declare const cache: LlmCacheAPI