@hasna/mementos 0.14.65 → 0.14.68
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 +14 -5
- package/dist/cli/brains.d.ts.map +1 -1
- package/dist/cli/commands/agent.d.ts.map +1 -1
- package/dist/cli/commands/storage.d.ts.map +1 -1
- package/dist/cli/commands/system-auto-memory.d.ts.map +1 -1
- package/dist/cli/commands/system-completions.d.ts +10 -0
- package/dist/cli/commands/system-completions.d.ts.map +1 -1
- package/dist/cli/commands/system-hooks.d.ts.map +1 -1
- package/dist/cli/commands/system-misc.d.ts.map +1 -1
- package/dist/cli/commands/system-profile.d.ts.map +1 -1
- package/dist/cli/commands/system-session.d.ts.map +1 -1
- package/dist/cli/commands/system-synthesis.d.ts.map +1 -1
- package/dist/cli/index.js +1188 -2030
- package/dist/db/analytics.d.ts.map +1 -1
- package/dist/db/pg-migrate.d.ts +13 -0
- package/dist/db/pg-migrate.d.ts.map +1 -1
- package/dist/index.js +944 -1741
- package/dist/lib/storage-sync.d.ts +2 -1
- package/dist/lib/storage-sync.d.ts.map +1 -1
- package/dist/mcp/index.js +1043 -1736
- package/dist/mcp/tools/storage-tools.d.ts.map +1 -1
- package/dist/mcp/tools/system-tools-events.d.ts.map +1 -1
- package/dist/server/index.js +824 -1736
- package/dist/storage.d.ts +73 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +215 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -95,17 +95,26 @@ mementos-serve
|
|
|
95
95
|
|
|
96
96
|
## Storage Sync
|
|
97
97
|
|
|
98
|
-
Mementos owns its local and remote storage path.
|
|
99
|
-
SQLite
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
Mementos owns its local and remote storage path. The primary local runtime is
|
|
99
|
+
SQLite under `~/.hasna/mementos/` by default, with config under
|
|
100
|
+
`~/.hasna/mementos/storage/config.json`. Mementos does not sync raw local data
|
|
101
|
+
files.
|
|
102
|
+
|
|
103
|
+
Cloud storage is PostgreSQL/RDS-compatible. Enable it with
|
|
104
|
+
`HASNA_MEMENTOS_STORAGE_MODE=cloud` plus `HASNA_MEMENTOS_DATABASE_URL` or
|
|
105
|
+
`MEMENTOS_DATABASE_URL`, or set RDS host/user fields in the storage config.
|
|
106
|
+
Legacy `hybrid` and `remote` mode values are accepted only as deprecated aliases
|
|
107
|
+
for `cloud`. Cloud commands fail closed when PostgreSQL/RDS is requested but not
|
|
108
|
+
configured. Status and dry-run diagnostics redact credentials and do not contact AWS.
|
|
109
|
+
There is no S3 object-storage adapter in this runtime, and diagnostics do not
|
|
110
|
+
store sensitive values, mutate AWS resources, deploy, or migrate production data.
|
|
103
111
|
|
|
104
112
|
```bash
|
|
105
113
|
mementos storage status
|
|
106
114
|
mementos storage push
|
|
107
115
|
mementos storage pull
|
|
108
116
|
mementos storage sync
|
|
117
|
+
mementos storage migrate --dry-run
|
|
109
118
|
```
|
|
110
119
|
|
|
111
120
|
## Data Directory
|
package/dist/cli/brains.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brains.d.ts","sourceRoot":"","sources":["../../src/cli/brains.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsCpC,wBAAgB,iBAAiB,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"brains.d.ts","sourceRoot":"","sources":["../../src/cli/brains.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsCpC,wBAAgB,iBAAiB,IAAI,OAAO,CA8Q3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsN5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0QzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-auto-memory.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-auto-memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"system-auto-memory.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-auto-memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoJhE"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import type { Command } from "commander";
|
|
2
|
+
/**
|
|
3
|
+
* Collect the real top-level subcommand names registered on the program.
|
|
4
|
+
*
|
|
5
|
+
* Deriving these from commander (rather than a hand-maintained string) keeps the
|
|
6
|
+
* shell completion script in sync with the actual CLI as commands are added or
|
|
7
|
+
* removed. Enumeration happens at action time, so every command group registered
|
|
8
|
+
* on `program` — including ones registered after the completions command itself —
|
|
9
|
+
* is included.
|
|
10
|
+
*/
|
|
11
|
+
export declare function collectSubcommandNames(program: Command): string[];
|
|
2
12
|
export declare function registerCompletionsCommand(program: Command): void;
|
|
3
13
|
//# sourceMappingURL=system-completions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-completions.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-completions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"system-completions.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-completions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAUjE;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAgDjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-hooks.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"system-hooks.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAazC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAiM3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-misc.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"system-misc.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0H3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-profile.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"system-profile.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0G7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-session.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"system-session.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAwH7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-synthesis.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-synthesis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"system-synthesis.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/system-synthesis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0E/D"}
|