@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 CHANGED
@@ -95,17 +95,26 @@ mementos-serve
95
95
 
96
96
  ## Storage Sync
97
97
 
98
- Mementos owns its local and remote storage path. Local data stays in the
99
- SQLite database under `~/.hasna/mementos/` by default. Remote sync uses the
100
- native `mementos storage` commands and the `HASNA_MEMENTOS_DATABASE_URL` or
101
- `MEMENTOS_DATABASE_URL` environment variable when PostgreSQL storage is
102
- configured.
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
@@ -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,CA4Q3C"}
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,CAkN5D"}
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;AA6NzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK9D"}
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;AAGzC,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA+IhE"}
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,CAyEjE"}
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;AAWzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAuL3D"}
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,CAkG3D"}
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;AAIzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAqG7D"}
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;AAGzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmH7D"}
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,CAqE/D"}
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"}