@aiaiai-pt/martha-cli 0.61.2 → 0.63.0

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/index.js +757 -666
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,36 @@
2
2
 
3
3
  All notable changes to `@aiaiai-pt/martha-cli`. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). This project adheres to semver — `0.x` releases may include breaking changes between minor versions.
4
4
 
5
+ ## [0.63.0] — 2026-10-09
6
+
7
+ ### Added — spend ceilings narrowed by API Client (#1635)
8
+
9
+ A ceiling covers the tenant, narrowed to an AI Agent and/or an API Client. It
10
+ applies to a call when every dimension it names matches, so one AI Agent can be
11
+ capped within one API Client.
12
+
13
+ - `martha budget set --client <id>` (combine with `--agent <uuid>` for an agent within a client).
14
+ - `martha budget list` names each ceiling's scope: `tenant`, `agent <name>`,
15
+ `client <name>`, or `agent <name> via client <name>`.
16
+ - `martha spend --group-by client`: spend per API Client.
17
+
18
+ ## [0.62.0] — 2026-10-08
19
+
20
+ ### Added — `--org` picks the organization for multi-organization tokens (#1611)
21
+
22
+ A token that authorizes several Keycloak Organizations (an operator on uio
23
+ staging: 14) must name one in the `X-Martha-Tenant` header, or the API refuses
24
+ every call with "name one in the X-Martha-Tenant header". The CLI never sent
25
+ it. Now it does, chosen in this order:
26
+
27
+ - the global `--org <tenant>` flag, or `MARTHA_ORG`;
28
+ - a command's own `--tenant` (`budget`, `spend`, `authz`), when your token is
29
+ a member of that organization;
30
+ - the profile's `org:` key in `~/.martha/config.yaml`.
31
+
32
+ A `--tenant` your token is not a member of (a super-admin naming another
33
+ tenant) still sends no header, as before. `martha doctor` sends it too.
34
+
5
35
  ## [0.61.2] — 2026-10-07
6
36
 
7
37
  ### Fixed — `martha chat` no longer prints `{"v": 1}` before every answer (#1601)