@wave-ai-os/wave-cli 0.1.62 → 0.1.65
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 +13 -12
- package/dist/index.cjs +320 -354
- package/dist/index.js +320 -354
- package/package.json +1 -1
- package/scripts/benchmark-cli.mjs +2 -1
- package/scripts/cli-token-scope.mjs +10 -0
- package/scripts/verify-dev-api.mjs +9 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @wave/cli
|
|
1
|
+
# @wave-ai-os/wave-cli
|
|
2
2
|
|
|
3
3
|
Machine-first CLI used by a Node LangGraph agent to execute semantic Wave operations against the Rails API.
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ See also:
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm install @wave/cli
|
|
22
|
+
npm install @wave-ai-os/wave-cli
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Or run locally from source:
|
|
@@ -39,7 +39,7 @@ Secure stdin auth/context examples:
|
|
|
39
39
|
```bash
|
|
40
40
|
printf '%s' "token-value" | wave --token-stdin --base-url https://api.example.com --organization-id 42 tasks list --page 1 --per 10
|
|
41
41
|
|
|
42
|
-
printf '%s' '{"token":"token-value","baseUrl":"https://api.example.com","
|
|
42
|
+
printf '%s' '{"token":"token-value","baseUrl":"https://api.example.com","agentName":"atlas"}' \
|
|
43
43
|
| wave --auth-json-stdin tasks list --page 1 --per 10
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -66,11 +66,13 @@ Notes:
|
|
|
66
66
|
|
|
67
67
|
## Runtime Contract
|
|
68
68
|
|
|
69
|
-
Required (from flags, stdin, or
|
|
69
|
+
Required (from flags, stdin, env, config, or stored credentials):
|
|
70
70
|
|
|
71
71
|
- `WAVE_API_TOKEN`
|
|
72
72
|
- `WAVE_API_BASE_URL`
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
Organization-scoped data commands use the organization certified by the
|
|
75
|
+
authenticated CLI token. `--organization-id` is the only local override.
|
|
74
76
|
|
|
75
77
|
Optional env:
|
|
76
78
|
|
|
@@ -86,7 +88,7 @@ Optional env:
|
|
|
86
88
|
|
|
87
89
|
Deterministic precedence:
|
|
88
90
|
|
|
89
|
-
- explicit flags (`--token
|
|
91
|
+
- explicit flags (`--token`, `--base-url`, `--organization-id`, and tracing/runtime flags)
|
|
90
92
|
- stdin context (`--token-stdin` or `--auth-json-stdin`)
|
|
91
93
|
- env vars (`WAVE_*`)
|
|
92
94
|
- config file (`--config`, `WAVE_CONFIG_PATH`, or `~/.wave/config.json` when present)
|
|
@@ -98,7 +100,6 @@ Config files are JSON objects using the same keys accepted by `--auth-json-stdin
|
|
|
98
100
|
{
|
|
99
101
|
"token": "token-value",
|
|
100
102
|
"baseUrl": "https://api.example.com",
|
|
101
|
-
"organizationId": "42",
|
|
102
103
|
"agentName": "atlas"
|
|
103
104
|
}
|
|
104
105
|
```
|
|
@@ -146,7 +147,6 @@ wave time-tracking report --start-date 2026-01-01 --end-date 2026-01-31
|
|
|
146
147
|
wave planner events --starts-at 2026-01-01T00:00:00Z --ends-at 2026-01-07T00:00:00Z
|
|
147
148
|
wave planner public-booking-link --slug intro-call --starts-at 2026-01-01T00:00:00Z --ends-at 2026-01-07T00:00:00Z --timezone America/Phoenix
|
|
148
149
|
wave api ls
|
|
149
|
-
wave graphql fields
|
|
150
150
|
wave osmd schema
|
|
151
151
|
wave osmd examples
|
|
152
152
|
wave markdown-tree schema
|
|
@@ -170,7 +170,7 @@ Examples:
|
|
|
170
170
|
|
|
171
171
|
```bash
|
|
172
172
|
wave tasks list --project-id 123
|
|
173
|
-
wave tasks create --project-id 123 --
|
|
173
|
+
wave tasks create --project-id 123 --summary "Fix auth bug"
|
|
174
174
|
wave tasks update --id 99 --status in_progress
|
|
175
175
|
wave tasks destroy --id 99
|
|
176
176
|
wave projects list
|
|
@@ -231,7 +231,6 @@ wave osmd examples
|
|
|
231
231
|
wave osmd schema
|
|
232
232
|
wave capabilities list
|
|
233
233
|
wave api ls
|
|
234
|
-
wave graphql fields
|
|
235
234
|
wave doctor
|
|
236
235
|
wave find "Ted"
|
|
237
236
|
wave open "Ted Martinez"
|
|
@@ -249,8 +248,10 @@ wave subtasks create --data-json '{"subtask":{"task_id":"123","member_id":"67","
|
|
|
249
248
|
wave subissues destroy --id 999
|
|
250
249
|
```
|
|
251
250
|
|
|
252
|
-
All commands
|
|
253
|
-
|
|
251
|
+
All organization-scoped commands use the authenticated CLI token organization
|
|
252
|
+
by default. Use `--organization-id` only when intentionally targeting a
|
|
253
|
+
specific organization; an explicit mismatched value is sent to the backend and
|
|
254
|
+
its authorization response remains visible.
|
|
254
255
|
|
|
255
256
|
## Parent-Child Create Rules
|
|
256
257
|
|