@hasna/mementos 0.14.43 → 0.14.44
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/README.md +10 -5
- package/dist/cli/index.js +3 -3
- package/dist/index.js +2 -2
- package/dist/mcp/index.js +2 -2
- package/dist/server/index.js +2 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -76,14 +76,19 @@ Endpoints: `GET /health`, `POST /mcp` (Streamable HTTP).
|
|
|
76
76
|
mementos-serve
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
##
|
|
79
|
+
## Storage Sync
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
Mementos owns its local and remote storage path. Local data stays in the
|
|
82
|
+
SQLite database under `~/.hasna/mementos/` by default. Remote sync uses the
|
|
83
|
+
native `mementos storage` commands and the `HASNA_MEMENTOS_DATABASE_URL` or
|
|
84
|
+
`MEMENTOS_DATABASE_URL` environment variable when PostgreSQL storage is
|
|
85
|
+
configured.
|
|
82
86
|
|
|
83
87
|
```bash
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
mementos storage status
|
|
89
|
+
mementos storage push
|
|
90
|
+
mementos storage pull
|
|
91
|
+
mementos storage sync
|
|
87
92
|
```
|
|
88
93
|
|
|
89
94
|
## Data Directory
|
package/dist/cli/index.js
CHANGED
|
@@ -1011,7 +1011,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1011
1011
|
this._exitCallback = (err) => {
|
|
1012
1012
|
if (err.code !== "commander.executeSubCommandAsync") {
|
|
1013
1013
|
throw err;
|
|
1014
|
-
}
|
|
1014
|
+
}
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
1017
|
return this;
|
|
@@ -29181,7 +29181,7 @@ class JSONSchemaGenerator {
|
|
|
29181
29181
|
if (val === undefined) {
|
|
29182
29182
|
if (this.unrepresentable === "throw") {
|
|
29183
29183
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
29184
|
-
}
|
|
29184
|
+
}
|
|
29185
29185
|
} else if (typeof val === "bigint") {
|
|
29186
29186
|
if (this.unrepresentable === "throw") {
|
|
29187
29187
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -49432,7 +49432,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
49432
49432
|
const value = listMember.slice(i + 1, part.length);
|
|
49433
49433
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
49434
49434
|
agg.set(key, value);
|
|
49435
|
-
}
|
|
49435
|
+
}
|
|
49436
49436
|
}
|
|
49437
49437
|
return agg;
|
|
49438
49438
|
}, new Map);
|
package/dist/index.js
CHANGED
|
@@ -20193,7 +20193,7 @@ class JSONSchemaGenerator {
|
|
|
20193
20193
|
if (val === undefined) {
|
|
20194
20194
|
if (this.unrepresentable === "throw") {
|
|
20195
20195
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
20196
|
-
}
|
|
20196
|
+
}
|
|
20197
20197
|
} else if (typeof val === "bigint") {
|
|
20198
20198
|
if (this.unrepresentable === "throw") {
|
|
20199
20199
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -40444,7 +40444,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
40444
40444
|
const value = listMember.slice(i + 1, part.length);
|
|
40445
40445
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
40446
40446
|
agg.set(key, value);
|
|
40447
|
-
}
|
|
40447
|
+
}
|
|
40448
40448
|
}
|
|
40449
40449
|
return agg;
|
|
40450
40450
|
}, new Map);
|
package/dist/mcp/index.js
CHANGED
|
@@ -26276,7 +26276,7 @@ class JSONSchemaGenerator {
|
|
|
26276
26276
|
if (val === undefined) {
|
|
26277
26277
|
if (this.unrepresentable === "throw") {
|
|
26278
26278
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
26279
|
-
}
|
|
26279
|
+
}
|
|
26280
26280
|
} else if (typeof val === "bigint") {
|
|
26281
26281
|
if (this.unrepresentable === "throw") {
|
|
26282
26282
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -46527,7 +46527,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
46527
46527
|
const value = listMember.slice(i + 1, part.length);
|
|
46528
46528
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
46529
46529
|
agg.set(key, value);
|
|
46530
|
-
}
|
|
46530
|
+
}
|
|
46531
46531
|
}
|
|
46532
46532
|
return agg;
|
|
46533
46533
|
}, new Map);
|
package/dist/server/index.js
CHANGED
|
@@ -22976,7 +22976,7 @@ class JSONSchemaGenerator {
|
|
|
22976
22976
|
if (val === undefined) {
|
|
22977
22977
|
if (this.unrepresentable === "throw") {
|
|
22978
22978
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
22979
|
-
}
|
|
22979
|
+
}
|
|
22980
22980
|
} else if (typeof val === "bigint") {
|
|
22981
22981
|
if (this.unrepresentable === "throw") {
|
|
22982
22982
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -43227,7 +43227,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
43227
43227
|
const value = listMember.slice(i + 1, part.length);
|
|
43228
43228
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
43229
43229
|
agg.set(key, value);
|
|
43230
|
-
}
|
|
43230
|
+
}
|
|
43231
43231
|
}
|
|
43232
43232
|
return agg;
|
|
43233
43233
|
}, new Map);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/mementos",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.44",
|
|
4
4
|
"description": "Universal memory system for AI agents - CLI + MCP server + library API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"clean": "rm -rf dist",
|
|
35
35
|
"build": "bun run clean && bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk && bun build src/server/index.ts --outdir dist/server --target bun && bun build src/index.ts src/storage.ts --outdir dist --target bun && bun build src/sdk/index.ts --outdir dist/sdk --target bun && tsc --emitDeclarationOnly --outDir dist",
|
|
36
36
|
"prepare": "bun run build",
|
|
37
|
+
"prepublishOnly": "bun run typecheck && bun run test",
|
|
37
38
|
"typecheck": "tsc --noEmit",
|
|
38
39
|
"test": "bun test --isolate --timeout=10000",
|
|
39
40
|
"dev:cli": "bun run src/cli/index.tsx",
|