@wordbricks/velen 0.2.13-darwin-arm64 → 0.2.14-darwin-arm64

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
@@ -12,18 +12,22 @@ Runtime config:
12
12
 
13
13
  - On Unix-like systems, the user config file is `${XDG_CONFIG_HOME:-~/.config}/velen/config.toml`.
14
14
  - On Windows, the user config file is `%APPDATA%\\velen\\config.toml`.
15
+ - Named profiles use `${XDG_CONFIG_HOME:-~/.config}/velen/profiles/<profile>/config.toml` on Unix-like systems and `%APPDATA%\\velen\\profiles\\<profile>\\config.toml` on Windows.
16
+ - Select a profile with `--profile <profile>` or `VELEN_PROFILE`; `--profile` takes precedence. The default profile keeps using the legacy flat paths above.
15
17
  - The current persisted keys are `active_org` and `request_timeout_sec`.
16
18
  - Runtime config is resolved in this order: built-in defaults -> user config file -> internal typed runtime overrides.
17
19
  - `velen org use <org>` persists `active_org`. Passing `--org <org>` for a command takes precedence over the stored `active_org` value for that invocation.
18
- - `velen auth logout` clears both the stored auth session and the stored `active_org`, so later org-scoped commands fail explicitly until a new org is selected.
20
+ - `velen auth logout` clears both the stored auth session and the stored `active_org` for the selected profile, so later org-scoped commands fail explicitly until a new org is selected.
19
21
 
20
22
  Credential storage:
21
23
 
22
24
  - On Unix-like systems, the CLI persists the full auth session blob to `${XDG_CONFIG_HOME:-~/.config}/velen/auth.json`.
23
25
  - On Windows, the CLI persists the full auth session blob to `%APPDATA%\\velen\\auth.json`.
26
+ - Named profiles use `${XDG_CONFIG_HOME:-~/.config}/velen/profiles/<profile>/auth.json` on Unix-like systems and `%APPDATA%\\velen\\profiles\\<profile>\\auth.json` on Windows.
24
27
  - `auth.json` stores the user identity, bearer token, session timing metadata, and the last refresh timestamp.
25
28
  - Authenticated commands now run an explicit auth-session lifecycle before building an authenticated API client:
26
29
  load `auth.json` on startup -> call the CLI session refresh contract -> persist the returned token and timing metadata.
30
+ - `VELEN_ACCESS_TOKEN` remains invocation-only and takes precedence over the selected profile's stored auth session without implicitly writing to it.
27
31
 
28
32
  Version cache:
29
33
 
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "url": "git+https://github.com/wordbricks/velen.git",
21
21
  "directory": "apps/cli"
22
22
  },
23
- "version": "0.2.13-darwin-arm64",
23
+ "version": "0.2.14-darwin-arm64",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  }