kagura-memory 0.18.0 → 0.18.1
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 +6 -1
- package/dist/cli.js +8 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist-mcp/mcp.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -902,6 +902,11 @@ added**, each on purpose or out of reach:
|
|
|
902
902
|
entry, so it never stops there. This port's API-key form never runs
|
|
903
903
|
`hermes mcp add`: it prints the entry to put in place of the existing
|
|
904
904
|
one, as Python does under `-y`.
|
|
905
|
+
- `sleep rollback` prints one line the Python CLI 0.44.0 does not:
|
|
906
|
+
`related_indexes_reverted` in the summary, after `points_requeued` (0
|
|
907
|
+
when the server sends no key). It is the counter memory-cloud v0.153.0
|
|
908
|
+
added for its opt-in Sleep related index, printed here as the Python CLI
|
|
909
|
+
prints it from 0.46.0; the rest of the output is 0.44.0's.
|
|
905
910
|
|
|
906
911
|
**`guardrails load` and `guardrails digest`** (memory-cloud v0.74.0+)
|
|
907
912
|
take the context as an optional argument, else `context_id` from
|
|
@@ -1865,7 +1870,7 @@ Ephemeral, TTL-bounded, and excluded from recall — deliberately not memories.
|
|
|
1865
1870
|
|--------|--------------|
|
|
1866
1871
|
| `getSleepHistory` | Recent runs, newest first. Since v0.138.0 the server lists Sleep runs only unless `source` says otherwise (`"analysis"` for the rows Memory Analysis writes for its LLM spend, `"all"` for both), and each row carries `source`; older servers have no filter. |
|
|
1867
1872
|
| `getSleepReport` | One run in detail, including the per-action audit log. `contextId` is not sent: the server finds the run by `reportId`. From v0.82.0 the log comes a page at a time (`actionsLimit`, default 50, at most 200; `maxChars` 10,000–100,000): while `actions_has_more` is true, pass `actions_next_cursor` as `actionsCursor`. An action too large for its page has `details_omitted` and `details_total_chars` instead of `details`; an analysis report carries a `note` (v0.140.0+). |
|
|
1868
|
-
| `rollbackSleepRun` | Reverse a completed or degraded run. The server commits per step, so a partial rollback is possible: it throws `KaguraPartialRollbackError` instead of returning, and the steps it did reverse stay reversed. There is no retry: the report is now `failed`, and the server will not roll back a `failed` report again. `err.summary` has the same counts a clean run returns, and the actions in `err.summary.errors` were not reversed and need handling some other way. `chunks_requeued` / `points_requeued` (v0.112.0+) count restored memories queued for the embedding sweep to rebuild — not errors. |
|
|
1873
|
+
| `rollbackSleepRun` | Reverse a completed or degraded run. The server commits per step, so a partial rollback is possible: it throws `KaguraPartialRollbackError` instead of returning, and the steps it did reverse stay reversed. There is no retry: the report is now `failed`, and the server will not roll back a `failed` report again. `err.summary` has the same counts a clean run returns, and the actions in `err.summary.errors` were not reversed and need handling some other way. `chunks_requeued` / `points_requeued` (v0.112.0+) count restored memories queued for the embedding sweep to rebuild — not errors. `related_indexes_reverted` (v0.153.0+) counts the undone entries of the server's opt-in Sleep related index; the server sends it only when at least one was undone, and `kagura-memory sleep rollback` prints 0 otherwise. |
|
|
1869
1874
|
|
|
1870
1875
|
`getSleepReport` and `rollbackSleepRun`, and `kagura-memory sleep
|
|
1871
1876
|
report|rollback`, send `report_id` only. Their `contextId` is ignored and
|
package/dist/cli.js
CHANGED
|
@@ -921,7 +921,7 @@ function isCanonicalUuid(value) {
|
|
|
921
921
|
}
|
|
922
922
|
|
|
923
923
|
// src/version.ts
|
|
924
|
-
var SDK_VERSION = "0.18.
|
|
924
|
+
var SDK_VERSION = "0.18.1";
|
|
925
925
|
|
|
926
926
|
// src/http.ts
|
|
927
927
|
function baseUrlFromMcp(mcpUrl) {
|
|
@@ -4692,7 +4692,9 @@ var ROLLBACK_SUMMARY = {
|
|
|
4692
4692
|
"promotions_kept",
|
|
4693
4693
|
"archives_restored",
|
|
4694
4694
|
"chunks_requeued",
|
|
4695
|
-
"points_requeued"
|
|
4695
|
+
"points_requeued",
|
|
4696
|
+
// memory-cloud v0.153.0+ (#144; Python 0.46.0 puts it here, before `errors`).
|
|
4697
|
+
"related_indexes_reverted"
|
|
4696
4698
|
].map((key2) => optional(key2, "int", 0)),
|
|
4697
4699
|
optional("errors", listOf("str"), [])
|
|
4698
4700
|
]
|
|
@@ -7948,6 +7950,10 @@ var KaguraClient = class _KaguraClient {
|
|
|
7948
7950
|
* `summary.errors` names each action that was not (a merge a later write
|
|
7949
7951
|
* changed is counted in `merges_unreversible` and listed there too). The
|
|
7950
7952
|
* reversed steps stay committed and the report is marked `failed`.
|
|
7953
|
+
* From memory-cloud v0.153.0 the summary also counts, as
|
|
7954
|
+
* `related_indexes_reverted`, the undone entries of the opt-in Sleep
|
|
7955
|
+
* related index; the server sends that key only when at least one was
|
|
7956
|
+
* undone.
|
|
7951
7957
|
*
|
|
7952
7958
|
* There is no retry: the server rolls back only a `completed` or
|
|
7953
7959
|
* `degraded` report, so calling this again on a `failed` one is refused
|