@wordbricks/velen 0.2.39-darwin-arm64 → 0.2.40-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
@@ -18,14 +18,39 @@ Runtime config:
18
18
  - The current persisted keys are `active_org` and `request_timeout_sec`; the
19
19
  built-in request timeout defaults to 180 seconds.
20
20
  - Runtime config is resolved in this order: built-in defaults -> user config file -> internal typed runtime overrides.
21
- - `velen org use <org>` persists `active_org`. Passing `--org <org>` for a command takes precedence over the stored `active_org` value for that invocation.
21
+ - Org selection is resolved in this order: `--org <slug>` -> `VELEN_ORG` -> the
22
+ nearest workspace `.velen.config.json` -> the selected profile's stored
23
+ `active_org`. Org-scoped commands fail explicitly when none of those sources
24
+ selects an org.
25
+ - Workspace discovery starts in the current directory, walks upward, uses the
26
+ nearest `.velen.config.json`, and stops after checking the Git root. A nested
27
+ workspace config can therefore override the repository-root config.
28
+ - Workspace config is versioned JSON:
29
+
30
+ ```json
31
+ {
32
+ "version": 1,
33
+ "org": "acme"
34
+ }
35
+ ```
36
+
37
+ - `velen org use <org>` persists the user default in `config.toml`.
38
+ `velen org use <org> --workspace` writes `.velen.config.json` at the current
39
+ Git workspace root. `velen org current` reports the selected source and the
40
+ workspace config path when applicable.
41
+ - A malformed workspace config is reported with its path instead of being
42
+ ignored. Explicit `--org` and `VELEN_ORG` candidates short-circuit workspace
43
+ loading, and commands that do not use org context (for example `auth login`)
44
+ do not inspect workspace config.
22
45
  - The CLI generates an invocation-scoped request ID when `--request-id` is not
23
46
  provided, attaches it to outbound HTTP requests, and can report it on
24
47
  transport errors even when no response body is received.
25
48
  - Prefer the built-in request timeout for normal commands. Use `--timeout <sec>`
26
49
  only when an invocation intentionally needs a shorter or longer request
27
50
  window.
28
- - `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.
51
+ - `velen auth logout` clears both the stored auth session and the user-default
52
+ `active_org` for the selected profile. Workspace config is repository state
53
+ and is not removed by logout.
29
54
 
30
55
  Credential storage:
31
56
 
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.39-darwin-arm64",
23
+ "version": "0.2.40-darwin-arm64",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  }