@aiaiai-pt/martha-cli 0.61.2 → 0.62.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 +17 -0
  2. package/dist/index.js +743 -662
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
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.62.0] — 2026-10-08
6
+
7
+ ### Added — `--org` picks the organization for multi-organization tokens (#1611)
8
+
9
+ A token that authorizes several Keycloak Organizations (an operator on uio
10
+ staging: 14) must name one in the `X-Martha-Tenant` header, or the API refuses
11
+ every call with "name one in the X-Martha-Tenant header". The CLI never sent
12
+ it. Now it does, chosen in this order:
13
+
14
+ - the global `--org <tenant>` flag, or `MARTHA_ORG`;
15
+ - a command's own `--tenant` (`budget`, `spend`, `authz`), when your token is
16
+ a member of that organization;
17
+ - the profile's `org:` key in `~/.martha/config.yaml`.
18
+
19
+ A `--tenant` your token is not a member of (a super-admin naming another
20
+ tenant) still sends no header, as before. `martha doctor` sends it too.
21
+
5
22
  ## [0.61.2] — 2026-10-07
6
23
 
7
24
  ### Fixed — `martha chat` no longer prints `{"v": 1}` before every answer (#1601)