@wattsonclub/wattson-cli 0.0.0-stage → 0.1.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.
- package/CHANGELOG.md +8 -0
- package/README.md +40 -2
- package/dist/THIRD-PARTY-NOTICES.txt +23 -0
- package/dist/bin.js +8302 -0
- package/package.json +32 -4
- package/skill/SKILL.md +60 -0
- package/skill/references/commands.md +375 -0
- package/skill/references/workout-building-blocks.md +507 -0
- package/skill/references/workout-text-format.md +460 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
- Standalone bundled `wattson` executable for Node.js 22+.
|
|
6
|
+
- Browser OAuth and remote device authorization with automatic token refresh.
|
|
7
|
+
- Production API defaults, structured JSON output, legacy command compatibility.
|
|
8
|
+
- Bundled self-contained agent skill and third-party notices.
|
package/README.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Wattson CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Training-planner commands for people and agents. Requires Node.js 22 or newer.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install -g @wattsonclub/wattson-cli
|
|
7
|
+
wattson auth login
|
|
8
|
+
wattson --json athlete profile
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Remote login (SSH, servers, containers)
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
wattson auth login --remote
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Open the verification URL on your phone or laptop, check the displayed code,
|
|
18
|
+
sign in, and explicitly approve access. No callback port or SSH forwarding is
|
|
19
|
+
needed. The command waits up to 300 seconds; use `--timeout <seconds>` to change
|
|
20
|
+
that. Never share a verification code or approval URL publicly.
|
|
21
|
+
|
|
22
|
+
`wattson auth status` checks saved login state; `wattson auth logout` removes local
|
|
23
|
+
credentials. Tokens refresh automatically. Signed-out status exits with code 1.
|
|
24
|
+
|
|
25
|
+
## Agents
|
|
26
|
+
|
|
27
|
+
Use `--json` for machine-readable output. Remote login instructions go to stderr;
|
|
28
|
+
final JSON goes to stdout without tokens. The bundled `skill/SKILL.md` and
|
|
29
|
+
`skill/references/` explain workflows and command coverage. The public skill is
|
|
30
|
+
hosted at https://wattson.club/skills/wattson/SKILL.md after deployment.
|
|
31
|
+
|
|
32
|
+
Use `wattson --help` for commands. The production API is the default. Override it
|
|
33
|
+
with `--base-url`, `WATTSON_API_BASE_URL`, or legacy `PLANNER_API_BASE_URL` (in that
|
|
34
|
+
order). `WATTSON_AUTH_FILE` selects a credential file; existing trainer-planner
|
|
35
|
+
credentials remain compatible. The `trainer-planner` command alias is retained.
|
|
36
|
+
|
|
37
|
+
## Distribution
|
|
38
|
+
|
|
39
|
+
Project code is UNLICENSED (all rights reserved); public distribution does not
|
|
40
|
+
grant an open-source license. Bundled dependency licenses are included in
|
|
41
|
+
`dist/THIRD-PARTY-NOTICES.txt`.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Zod (MIT)
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2025 Colin McDonnell
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|