kagura-memory 0.17.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 CHANGED
@@ -11,7 +11,7 @@ This SDK connects your TypeScript/JavaScript code to [Kagura Memory Cloud](https
11
11
  | **`KaguraClient`** | MCP (JSON-RPC) | Direct memory ops — remember, recall, explore, reference, forget |
12
12
  | **`ResourceClient`** | REST API | External data ingestion — push data from Slack, CI/CD, CRM into Kagura |
13
13
  | **`FilesClient`** | REST + presigned PUT | File uploads with sha256 integrity binding (R2) |
14
- | **`WorkspaceClient`** | REST API | Workspace member, invitation, and API key management |
14
+ | **`WorkspaceClient`** | REST API | Workspace member, invitation, and API key management; operation history (web session) |
15
15
  | **`SecretClient`** | REST API | [Zero-knowledge secrets](#zero-knowledge-secrets) — age-encrypted on your machine, opaque to the server |
16
16
  | **`AgentsClient`** | REST API | Agent bootstrap for API-key-only callers (no MCP session) |
17
17
  | **`MemoryClient`** | REST API | [Tool guardrails](#tool-guardrails-over-rest-memory-cloud-v0740) for API-key-only callers — the `AGENTS.md` export digest and the guardrail set |
@@ -35,7 +35,7 @@ runtime dependencies — the one optional peer dependency, for
35
35
  unless you ask for it.
36
36
 
37
37
  Targets memory-cloud **v0.75.0** (`MIN_SERVER_VERSION`) and is checked
38
- against memory-cloud up to **v0.144.0**; the Python SDK 0.44.0, its
38
+ against memory-cloud up to **v0.155.0**; the Python SDK 0.44.0, its
39
39
  parity target, is checked up to v0.142.0 (v0.143.0 changes nothing a
40
40
  client sees), and its own `MIN_SERVER_VERSION` stays at an advisory
41
41
  0.17.1. `checkServerVersion()` warns, and never throws, on an older
@@ -194,6 +194,7 @@ npx kagura-memory context search-config CTX_UUID --content-chunks --no-llm-selec
194
194
  npx kagura-memory bootstrap --since 7d --format index --max-chars 5000 # open a session (v0.93.0+; index/--max-chars < 10000 v0.115.0+)
195
195
  npx kagura-memory changes 2026-11-04T09:00:00Z --by-me # what you wrote since then (v0.93.0+; --by-me v0.114.0+)
196
196
  npx kagura-memory list --filters '{"type": "task", "details.status": "open"}' --order-by created_at # exact filters, a total, no ranking
197
+ npx kagura-memory list --filters '{"event_after": "2026-10-01", "event_before": "2026-11-01"}' --order-by event_start # by the event's own date (v0.152.0+)
197
198
  npx kagura-memory forget --ids "$ID1,$ID2" # one row per id: deleted / skipped / error (v0.117.0+)
198
199
  npx kagura-memory measure record <context-id> weight_kg 71.5 --unit kg
199
200
  npx kagura-memory setup codex --dry-run # show the command and the entry; change nothing
@@ -676,7 +677,18 @@ where to set `KAGURA_MCP_API_KEY`, and writes nothing, unless the
676
677
  user-scope entry is already identical. When `claude plugin list --json`
677
678
  shows the Kagura Memory plugin enabled, the notes list the plugin settings
678
679
  to enter, and say that the plugin has one guardrail context for every
679
- project and authenticates only with a user API key. `setup claude` writes
680
+ project and authenticates only with a user API key. The printed
681
+ `server_url` is the MCP URL without its query, except that `guardrails=off`
682
+ stays and, from memory-cloud v0.149.0 and the plugin of that release,
683
+ `context=<id>` stays when the MCP URL's first `context=` is the context
684
+ printed as the plugin's `context_id` (both in the plugin hook's dashed UUID
685
+ form, equal in any case; written lower-case): the plugin's SessionStart hook
686
+ then tells the model the default context, so it needs no `list_contexts`
687
+ call. When setup has no plugin context (no `-c`, no `context_id` in the
688
+ project's `.kagura.json` and no `KAGURA_CONTEXT_ID`), the context is not a
689
+ dashed UUID (a name, or a dashless, braced or `urn:uuid:` spelling, which the
690
+ hook does not accept), or the `context=` names another context, the
691
+ `context=` is dropped. A plugin before v0.149.0 ignores it. `setup claude` writes
680
692
  `.kagura.json` and the MCP entry only; it installs none of the Python
681
693
  CLI's hooks or `/kagura-recall` and `/kagura-remember` commands. Their
682
694
  flags (`--[no-]session-hook`, `--[no-]sync-hook`, `--[no-]commands`) and
@@ -890,6 +902,11 @@ added**, each on purpose or out of reach:
890
902
  entry, so it never stops there. This port's API-key form never runs
891
903
  `hermes mcp add`: it prints the entry to put in place of the existing
892
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.
893
910
 
894
911
  **`guardrails load` and `guardrails digest`** (memory-cloud v0.74.0+)
895
912
  take the context as an optional argument, else `context_id` from
@@ -1548,7 +1565,7 @@ when `undefined`.
1548
1565
  | Method | What it does |
1549
1566
  |--------|--------------|
1550
1567
  | `remember` | Store a memory. `details` accepts arbitrary JSON, including `location` (see below) and the reserved `tool_trigger`, which marks a tool guardrail and needs context editor or above on a user (not agent) credential; `supersedes` declares this the newer version of an existing memory, shadowing the old one from default recall without destroying it; `deliveryMode: "always"` pins it. `tags` takes at most 50 tags of at most 100 characters each, the caps memory-cloud v0.82.0+ enforces: more throws before any request, on every server. `toolTrigger` marks the guardrail without writing the key yourself. `observedAt` (v0.127.0+) says when the fact held — a `YYYY-MM-DD` date or an extended ISO 8601 datetime, or a `Date` (sent as its UTC instant), stored as `details.observed_at`; a basic form (`20240307`), a time without seconds, an impossible day or a disagreeing `details.observed_at` throws before any request. `dedupe` (v0.93.0+): `"check"` writes nothing when a near-duplicate exists and returns `{ status: "duplicate_candidate", candidate }` instead of throwing, `"off"` opts the memory out of supersede suggestions for good; `tagsNormalize: true` stores each tag under the context's established spelling; `verbose: true` keeps `persistence.detail`. The reply (`RememberResult`, returned unchecked as Python's dict, so every key is optional) carries `version` (v0.113.0+), `session_id` (v0.113.0+), when a summary over 500 characters was cut, `summary_truncated` / `summary_original_length` (v0.108.0+), and `plan_headroom` (v0.142.0+, read fail-open; see [Plan headroom](#plan-headroom-memory-cloud-v01420)). |
1551
- | `recall` | Hybrid semantic + keyword search. Takes `filters` (`type`, `scope`, `tags` with `tags_match` and `tags_normalize`, `importance` bounds, created/updated date bounds, `source_uri_prefix`, `source_type`, `trust_tier`, and the `near` / `within` geo filters), `searchMode`, `useRerank`, `includeExploreHints`, `includeSuperseded` (read back what `supersedes` shadowed, annotated with `superseded_by`), and `contextIds` for 2–20-context search. `useRerank` is tri-state (memory-cloud v0.69.0+): omit it to follow the context's search config (the first context's, with `contextIds`), `true` requests reranking where the context allows it, `false` skips it for the call. A tag filter that matches nothing can return `tag_suggestions`. When the semantic half is unavailable, the result is keyword-only and carries `degraded: true` and `degraded_reason` (v0.66.0+) — an empty one then means "search impaired", not "nothing stored". `observedAfter` (inclusive) / `observedBefore` (exclusive) keep the memories whose fact held in that range (`filters.observed_after` / `observed_before`, v0.127.0+; a date is the start of its UTC day, and a memory without `observed_at` never matches); one beside the same key in `filters` throws. Returns a typed `RecallResponse` (`confidence` first: read `confidence.level` before the hits); see [Recall result shape](#recall-result-shape). |
1568
+ | `recall` | Hybrid semantic + keyword search. Takes `filters` (`type`, `scope`, `tags` with `tags_match` and `tags_normalize`, `importance` bounds, created/updated date bounds, `source_uri_prefix`, `source_type`, `trust_tier`, and the `near` / `within` geo filters), `searchMode`, `useRerank`, `includeExploreHints`, `includeSuperseded` (read back what `supersedes` shadowed, annotated with `superseded_by`), and `contextIds` for 2–20-context search. `useRerank` is tri-state (memory-cloud v0.69.0+): omit it to follow the context's search config (the first context's, with `contextIds`), `true` requests reranking where the context allows it, `false` skips it for the call. A tag filter that matches nothing can return `tag_suggestions`. When the semantic half is unavailable, the result is keyword-only and carries `degraded: true` and `degraded_reason` (v0.66.0+) — an empty one then means "search impaired", not "nothing stored". `observedAfter` (inclusive) / `observedBefore` (exclusive) keep the memories whose fact held in that range (`filters.observed_after` / `observed_before`, v0.127.0+; a date is the start of its UTC day, and a memory without `observed_at` never matches); one beside the same key in `filters` throws. `eventAfter` (inclusive) / `eventBefore` (exclusive) do the same for the date of the event a memory describes (`filters.event_after` / `event_before`, v0.152.0+, where the server resolves `details.event_start` / `event_end` from `details.event_phrase`): a memory matches when its event range overlaps the window, a memory without an event date never matches, a datetime `eventAfter` counts as its UTC day and a datetime `eventBefore` past midnight as the day after it; a server before v0.152.0 does not know the keys and filters nothing. Returns a typed `RecallResponse` (`confidence` first: read `confidence.level` before the hits); see [Recall result shape](#recall-result-shape). |
1552
1569
  | `reference` | Full detail for one memory, under `result.memory` (`ReferenceResponse`), with its `version` (v0.113.0+) — the `expectedVersion` for `updateMemory` — and `observed_at` (v0.127.0+). Since v0.78.0 the reply is bounded (`maxChars`, 10,000–100,000, default 20,000): cut `content` comes with `content_truncated` / `content_next_offset`, and a `details` / `context` / links field that does not fit is left out with `<field>_omitted` / `<field>_total_chars`. Page the rest with `contentOffset`, `detailsOffset` (`details_json` slices) or `contextOffset` — one per call — and pick fields with `fields` (`content`, `details`, `context`, `links`). `version` (v0.113.0+) reads an earlier version (`historical: true`, `current_version`). A live `supersede_candidate` carries `acceptance` (v0.137.0+; see [Supersede suggestions](#supersede-suggestions)). Every one is checked locally (an integer in range, more than one offset refused first, a known field, an offset's own field listed) before any request. The reply comes back as sent once its `status` (a string) and `memory` (an object) are checked: otherwise `KaguraResponseError` (the CLI's `reference` prints the raw reply, as Python's does). |
1553
1570
  | `updateMemory` | Update in place by `memoryId`, or upsert by `externalId`. `details` **replaces** the stored object wholesale — round-trip keys you want to keep; dropping `tool_trigger` turns a guardrail off — and `detailsPatch` (v0.140.0+) merges into it instead: each key replaces the stored one, `null` deletes it, the rest are kept. `tags` replaces the list, with `remember`'s caps; `addTags` / `removeTags` (v0.140.0+) edit it (removals first, each new tag once; `addTags` takes the caps, `removeTags` none). `expectedVersion` (v0.113.0+) applies the edit only while the memory is at that version, else throws `KaguraVersionConflictError` with `currentVersion` and writes nothing. `dismissSupersedeCandidate: true` rejects the server's `supersede_candidate` suggestion; `acceptSupersedeCandidate: true` (v0.126.0+) accepts it — the candidate is shadowed by a `supersedes` edge, named in the reply's `superseded_memory_id`, and a different edge already linking the pair throws `KaguraError` `code` `"edge_exists"`; check the candidate's `acceptance` first ([Supersede suggestions](#supersede-suggestions)). `observedAt`, `toolTrigger` and `verbose` work as on `remember`. The reply (`UpdateMemoryResult`, returned unchecked as Python's dict, so every key is optional) carries `version`, and `plan_headroom` read fail-open as `remember`'s is (v0.142.0+). See [the local rules](#updatememorys-local-rules) below. |
1554
1571
  | `forget` | Soft-delete by `memoryId`, by `memoryIds` (1-50 ids in one call, memory-cloud v0.117.0+; returns a `ForgetBatchResult`, see [Session tools](#session-tools-memory-cloud-v0930)) or by `query`. The rows are kept, but not restorable through the API, until the deployment's cleanup window passes (`CLEANUP_DELETED_MEMORIES_RETENTION_DAYS`, default 30 days). For a caller who may write to the workspace, a target it may not delete, or one already gone, is skipped silently — including every guardrail for a caller below context editor or on an agent credential — so `deleted_count` can be 0. A workspace viewer may not delete at all and is refused with `KaguraPermissionError` (`requiredRole: "member"`). |
@@ -1692,7 +1709,7 @@ and returns it as sent.
1692
1709
  |--------|--------------|
1693
1710
  | `bootstrap` | Open a session on one context in one deterministic call (no recall): the `context` block, its tool `guardrails`, and the `pinned` / `upcoming` / `changes` lanes under `components`, each fail-soft (`degraded: true` when one failed). `since` (`"0d"`–`"999d"`, ISO 8601 or a `Date`; server default `"7d"`), `include`, `maxChars` (2,000–100,000) and `format`. Not `getAgentBootstrap`, which rehydrates a registered agent. |
1694
1711
  | `changesSince` | The change log of a context in `[since, until)`, oldest first: `created`, `updated`, `superseded` (with `superseded_by`) and `forgotten` events, keyset-paged (`cursor: next_cursor` while `has_more`). `kinds`, `limit` (1-100), `sessionId` (v0.113.0+), `byMe` (v0.114.0+), `maxChars`. |
1695
- | `listMatching` | Every live memory matching exact `filters` (recall's vocabulary plus `details.<key>`, JSON-type strict), a stable order (`orderBy` `updated_at` / `created_at` / `importance` / `observed_at` (v0.127.0+), `direction`) and a `total`; offset-paged. The MCP `list` tool — not `listMemories`, which is REST. |
1712
+ | `listMatching` | Every live memory matching exact `filters` (recall's vocabulary plus `details.<key>`, JSON-type strict), a stable order (`orderBy` `updated_at` / `created_at` / `importance` / `observed_at` (v0.127.0+) / `event_start` (v0.152.0+; memories without that date go last in both directions), `direction`) and a `total`; offset-paged. `filters` also take `event_after` (inclusive) / `event_before` (exclusive; v0.152.0+): a memory matches when its event range (`details.event_start` / `event_end`) overlaps the window, and one without an event date never does; a datetime `event_after` counts as its UTC day, a datetime `event_before` past midnight as the day after it. The MCP `list` tool — not `listMemories`, which is REST. |
1696
1713
  | `rememberBatch` | Store 1-50 memories in one call; `items` are `remember` arguments by their wire names (`summary`, `content`, `type` required). `atomic`, `dedupe`, `tagsNormalize`, `verbose`. |
1697
1714
  | `describeTools` | The tools this MCP URL's `tools/list` leaves out (`query` narrows them), or with `names` (≤ 20) their full definitions, and which URL query lists more. |
1698
1715
  | `guide` | Sections of the server's tool manual: `guide(["recall", "remember.dedupe"])` (≤ 20 topics; omit for the index). Unknown names come back in `unknown`. |
@@ -1853,7 +1870,7 @@ Ephemeral, TTL-bounded, and excluded from recall — deliberately not memories.
1853
1870
  |--------|--------------|
1854
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. |
1855
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+). |
1856
- | `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. |
1857
1874
 
1858
1875
  `getSleepReport` and `rollbackSleepRun`, and `kagura-memory sleep
1859
1876
  report|rollback`, send `report_id` only. Their `contextId` is ignored and
@@ -1918,11 +1935,73 @@ includes `is_own_private`. The existing positional role argument still works.
1918
1935
  For context roles, create a session client with
1919
1936
  `new WorkspaceClient({ baseUrl, session: true, fetch: sessionFetch })`.
1920
1937
  On Node the supplied fetch must carry the signed-in user's session and CSRF
1921
- credentials. Call `addContextMember(contextId, userId, "editor")` on that client. A context outside the member's list raises
1938
+ credentials. Call `addContextMember(contextId, userId, "editor")` on that client;
1939
+ on a client built with an API key or OAuth it throws an `Error` before any
1940
+ request (from 0.18.0; it used to send the request with no credential). A context outside the member's list raises
1922
1941
  `KaguraContextNotInAccessListError` with `details.reason` equal to
1923
1942
  `context_not_in_access_list`. A workspace owner or admin may explicitly retry
1924
1943
  with `extendAccessList: true`. The response reports `access_list_extended`.
1925
1944
 
1945
+ ### Workspace operation history (memory-cloud v0.154.0+)
1946
+
1947
+ `listOperationHistory(workspaceId, options)` reads the workspace's operation
1948
+ history, newest first. The route accepts a signed-in **web session only**:
1949
+ build the client with `session: true`. A client built with an API key, an OAuth
1950
+ profile or a resource token throws an `Error` before any request and never
1951
+ switches to another credential. On Node the supplied fetch must carry the
1952
+ session cookie; in a browser the request is sent with `credentials: "include"`,
1953
+ and the default `fetch` (or `window.fetch` passed as `fetch`) works as it is,
1954
+ with no `.bind(window)`.
1955
+
1956
+ ```ts
1957
+ const history = new WorkspaceClient({ baseUrl, session: true, fetch: sessionFetch });
1958
+ const filters = { operation: "member.access_changed", since: new Date(Date.now() - 7 * 86_400_000), limit: 50 };
1959
+ let page = await history.listOperationHistory(workspaceId, filters);
1960
+ while (true) {
1961
+ for (const event of page.items) {
1962
+ console.log(event.occurred_at, event.actor_name ?? event.actor_user_id, event.operation, event.changed_fields);
1963
+ }
1964
+ if (page.next_cursor === null) break;
1965
+ // The same filters with the cursor: it continues that result set.
1966
+ page = await history.listOperationHistory(workspaceId, { ...filters, cursor: page.next_cursor });
1967
+ }
1968
+ ```
1969
+
1970
+ The filters combine: `query` (up to 120 characters, over actor names and ids,
1971
+ target/context/agent/credential ids, operation names and changed-field names),
1972
+ `contextId`, `actor`, `agentId`, `operation`, `targetType`, `outcome`, `since` /
1973
+ `until` (a `Date`, or an ISO 8601 string with an explicit offset; a naive string
1974
+ is refused, as the server refuses it, and so is a Unix time, which the server
1975
+ would read as UTC), `limit` (1–100, server default 30) and
1976
+ `cursor`. Pass `next_cursor` back unchanged; it is opaque. Unset options are not
1977
+ sent.
1978
+
1979
+ - The caller must be a workspace **owner or admin**, and the workspace's plan
1980
+ must include `operation_history` (**Pro and Max**, or a custom plan that
1981
+ includes the feature). A missing or expired session is `KaguraAuthError`. The
1982
+ server answers a caller who is not an owner or admin, not a member, or asks
1983
+ for a workspace that does not exist with the same `403 AUTH-101`
1984
+ "Insufficient permissions" and no details: `KaguraPermissionError`, with
1985
+ `requiredRole` `null`. The plan gate is `KaguraFeatureNotAvailableError`. The
1986
+ route never answers 404 itself: a `KaguraNotFoundError` means a server before
1987
+ v0.154.0, which has no such route. A refusal is never an empty page.
1988
+ - The page comes back as its model reads it: values the server sends in a lax
1989
+ form are read into the declared types (`"12"` for `total` is `12`),
1990
+ `occurred_at` is in pydantic's JSON form, and unknown keys are kept.
1991
+ - An event records ids, the operation, its outcome, a count and the **names** of
1992
+ the changed fields: no contents and no before/after values. Reads and searches
1993
+ are not recorded, and the history is not a full audit ledger.
1994
+ - A private context's history is shown only to its creator, even to workspace
1995
+ owners and admins.
1996
+ - `credential_id` / `client_id` name the API key or OAuth client a programmatic
1997
+ call used. A shared credential identifies the credential and its account, not
1998
+ the person who used it.
1999
+ - Recording starts with server v0.154.0 (or when a workspace moves to an
2000
+ entitled plan); nothing is backfilled.
2001
+ - Events are kept for `retention_days`: 90 days, plus any retention add-on.
2002
+ - `total` is capped at 1,000; past that `total_capped` is `true`, and paging
2003
+ still reaches every match.
2004
+
1926
2005
  ### Permission model (memory-cloud v0.126.0+)
1927
2006
 
1928
2007
  The server decides who reaches which context, the same way on every MCP
@@ -2145,6 +2224,30 @@ Python SDK accepts it and confirms at another route. `list` and
2145
2224
  be a UUID; got '…'`), and sends a `{braced}`, `urn:uuid:` or dashless one
2146
2225
  in its canonical form.
2147
2226
 
2227
+ `list` takes two filters (memory-cloud v0.145.0+), each sent only when set:
2228
+ `scope` (`"all"`, the unchanged listing, or `"workspace"`, only the
2229
+ workspace-shared files, those bound to no context) and `bindingContextId`
2230
+ (only the files bound to that context, among the contexts the caller may
2231
+ access; the wire `context_id`, the field `upload`'s `bindingContextId`
2232
+ binds a file with, while `contextId` is the wire `workspace_id`). A `scope`
2233
+ other than the two, a `bindingContextId` that is not a UUID, and `scope:
2234
+ "workspace"` beside a `bindingContextId` (the server answers 422) throw
2235
+ before any request. `kagura-memory files list` takes `--scope [all|workspace]`
2236
+ and `--binding-context-id`, and the combination is a usage error. **A server
2237
+ before v0.145.0 ignores both parameters, as it ignores `cursor`, and returns
2238
+ the unfiltered listing. Every row carries its `context_id`, so `list` checks
2239
+ the reply: a row bound to a context under `scope: "workspace"`, or a row not
2240
+ bound to `bindingContextId` (compared as canonical UUIDs, in any case), proves
2241
+ the filter was ignored, and the call throws a `KaguraError` naming
2242
+ memory-cloud v0.145.0 instead of returning the unfiltered listing. `scope:
2243
+ "all"`, no filter and an empty listing are not checked. `null` for either
2244
+ option means not set.**
2245
+
2246
+ ```ts
2247
+ const shared = await files.list({ contextId: "workspace-uuid", scope: "workspace" });
2248
+ const bound = await files.list({ contextId: "workspace-uuid", bindingContextId: "context-uuid" });
2249
+ ```
2250
+
2148
2251
  Every id a client puts in a URL path (a `FilesClient` file id, a
2149
2252
  `ResourceClient` resource id, `KaguraClient`'s context id for memory
2150
2253
  stats, duplicates and the tags drill-down, a `WorkspaceClient` user id, a
@@ -2268,7 +2371,7 @@ CLI as `kagura-memory`: 23 of the 24 top-level commands of the Python CLI
2268
2371
  differ.
2269
2372
 
2270
2373
  The parity target is the Python SDK and CLI **0.44.0**, checked against
2271
- memory-cloud up to **v0.144.0**.
2374
+ memory-cloud up to **v0.155.0**.
2272
2375
 
2273
2376
  **SDK ↔ memory-cloud compatibility.**
2274
2377
  [`docs/compatibility.md`](docs/compatibility.md) records, for each release