@wordbricks/velen 0.2.39 → 0.2.40
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 +27 -2
- package/package.json +2 -2
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
|
-
-
|
|
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
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordbricks/velen",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.40",
|
|
4
4
|
"description": "Velen CLI",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"velen-darwin-arm64": "npm:@wordbricks/velen@0.2.
|
|
26
|
+
"velen-darwin-arm64": "npm:@wordbricks/velen@0.2.40-darwin-arm64"
|
|
27
27
|
}
|
|
28
28
|
}
|