incremnt 0.1.19 → 0.3.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/README.md +61 -9
- package/package.json +3 -1
- package/src/browse.js +1138 -0
- package/src/contract.js +3 -1
- package/src/format.js +132 -0
- package/src/lib.js +13 -1
- package/src/logo.js +49 -33
- package/src/mcp.js +37 -4
- package/src/openrouter.js +241 -68
- package/src/prompt-security.js +70 -0
- package/src/queries.js +396 -142
- package/src/sync-service.js +2163 -56
package/README.md
CHANGED
|
@@ -12,7 +12,11 @@ incremnt login
|
|
|
12
12
|
incremnt mcp install # registers with Claude Desktop, Claude Code, and Codex CLI
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
This
|
|
15
|
+
This installs two binaries:
|
|
16
|
+
- `incremnt` (CLI)
|
|
17
|
+
- `incremnt-mcp` (MCP server over stdio)
|
|
18
|
+
|
|
19
|
+
`incremnt mcp install` auto-registers the MCP server with Claude Desktop, Claude Code, and Codex CLI. Restart your assistant app after installing.
|
|
16
20
|
|
|
17
21
|
## CLI
|
|
18
22
|
|
|
@@ -24,21 +28,25 @@ After connecting with Apple in the iOS app (Settings > Cloud Sync), your workout
|
|
|
24
28
|
incremnt login
|
|
25
29
|
incremnt sessions list --limit 5
|
|
26
30
|
incremnt records
|
|
27
|
-
incremnt records --pretty
|
|
28
31
|
incremnt programs current
|
|
29
32
|
incremnt exercises history --name "Bench Press"
|
|
33
|
+
incremnt browse
|
|
30
34
|
```
|
|
31
35
|
|
|
32
36
|
### Local snapshot
|
|
33
37
|
|
|
34
|
-
If you prefer to work offline,
|
|
38
|
+
If you prefer to work offline, import a snapshot into the local session:
|
|
35
39
|
|
|
36
40
|
```bash
|
|
37
|
-
incremnt
|
|
38
|
-
incremnt
|
|
41
|
+
incremnt login --snapshot ~/Downloads/export.onemore.json
|
|
42
|
+
incremnt sessions list --limit 5
|
|
39
43
|
```
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
Or import a session file:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
incremnt login --session-file ~/Downloads/session.json
|
|
49
|
+
```
|
|
42
50
|
|
|
43
51
|
### Commands
|
|
44
52
|
|
|
@@ -46,12 +54,25 @@ If `--input` is omitted, the CLI checks `INCREMNT_SNAPSHOT`, then `ONEMORE_SNAPS
|
|
|
46
54
|
|---------|-------------|
|
|
47
55
|
| `sessions list` | Recent sessions with duration and exercise count |
|
|
48
56
|
| `sessions show --id <id>` | Details for a single session |
|
|
57
|
+
| `sessions compare --session-id <id>` | Compare planned vs actual |
|
|
58
|
+
| `sessions explain --session-id <id>` | Explain session context |
|
|
49
59
|
| `programs current` | Active program state |
|
|
50
60
|
| `programs list` | All programs |
|
|
61
|
+
| `programs show --id <id>` | Full program detail |
|
|
51
62
|
| `cycles list [--program-id <id>]` | Completed cycle summaries |
|
|
52
63
|
| `cycles show --id <id>` | Details for a completed cycle summary |
|
|
53
64
|
| `exercises history --name <name>` | Set-by-set history for an exercise |
|
|
54
65
|
| `records` | Personal records (best e1RM per exercise) |
|
|
66
|
+
| `goals list` / `goals show --id <id>` | Strength plan goals |
|
|
67
|
+
| `health summary` / `health ai` | Health metrics and AI summary |
|
|
68
|
+
| `training load` | ATL/CTL/TSB and workload context |
|
|
69
|
+
| `ask history` / `ask show --id <id>` | Coach conversation history |
|
|
70
|
+
| `programs propose --file <file>` | Submit a program proposal |
|
|
71
|
+
| `programs proposals` | List proposals |
|
|
72
|
+
| `programs proposal dismiss --id <id>` | Dismiss a proposal |
|
|
73
|
+
| `browse` | Interactive Ink browser for sessions, programs, records, goals, cycles, and health |
|
|
74
|
+
| `tui` | Alias for `browse` |
|
|
75
|
+
| `mcp install` | Register `incremnt-mcp` with Claude Desktop, Claude Code, and Codex CLI |
|
|
55
76
|
| `login` | Authenticate with the hosted sync service |
|
|
56
77
|
| `logout` | Clear stored session |
|
|
57
78
|
| `status` | Show current mode, auth state, and config paths |
|
|
@@ -61,10 +82,31 @@ If `--input` is omitted, the CLI checks `INCREMNT_SNAPSHOT`, then `ONEMORE_SNAPS
|
|
|
61
82
|
|
|
62
83
|
| Flag | Description |
|
|
63
84
|
|------|-------------|
|
|
64
|
-
| `--
|
|
65
|
-
| `--
|
|
66
|
-
| `--
|
|
85
|
+
| `--json` | Force JSON output for command responses |
|
|
86
|
+
| `--limit <n>` | Limit number of results (`sessions list`, `ask history`) |
|
|
87
|
+
| `--days <n>` | Day window (`health summary`) |
|
|
67
88
|
| `--program-id <id>` | Filter cycle summaries to a program |
|
|
89
|
+
| `--base-url <url>` | Override remote sync service URL for login/bootstrap |
|
|
90
|
+
| `--snapshot <file>` | Bootstrap login from a local snapshot |
|
|
91
|
+
| `--session-file <file>` | Import an existing session file |
|
|
92
|
+
| `--token <token>` / `--email <email>` | Non-interactive bootstrap login options |
|
|
93
|
+
|
|
94
|
+
### Browse mode key bindings
|
|
95
|
+
|
|
96
|
+
`incremnt browse` (or `incremnt tui`) launches an interactive TUI.
|
|
97
|
+
|
|
98
|
+
- `Tab` / `Shift+Tab`: cycle pane focus (`sections` → `items` → `detail`)
|
|
99
|
+
- `1` / `2` / `3`: jump focus directly to `sections` / `items` / `detail`
|
|
100
|
+
- `h/l` or `←/→`: move pane focus
|
|
101
|
+
- `j/k` or `↑/↓`: navigate rows in focused list pane
|
|
102
|
+
- `/`: enter search mode for current list pane
|
|
103
|
+
- `Esc`: exit search or move focus back
|
|
104
|
+
- `Ctrl-U`: clear search query (in search mode)
|
|
105
|
+
- `Ctrl-L`: clear query and exit search mode
|
|
106
|
+
- `Enter`: open/select in focused pane
|
|
107
|
+
- `PgUp/PgDn`, `g/G`, `Home/End`: list navigation shortcuts
|
|
108
|
+
- `r`: refresh detail for selected item
|
|
109
|
+
- `q` or `Ctrl-C`: quit
|
|
68
110
|
|
|
69
111
|
### Exercise matching
|
|
70
112
|
|
|
@@ -91,6 +133,16 @@ To register manually instead, add to your Claude Code project config (`.mcp.json
|
|
|
91
133
|
|
|
92
134
|
The MCP server uses the same auth session as the CLI — run `incremnt login` first.
|
|
93
135
|
|
|
136
|
+
### MCP tool surface
|
|
137
|
+
|
|
138
|
+
The MCP server exposes the same read/write contract as the CLI command surface, including sessions, programs, cycles, goals, health, training load, ask history/show, and program proposal workflows.
|
|
139
|
+
|
|
140
|
+
You can inspect the exact machine-readable contract at any time:
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
incremnt contract
|
|
144
|
+
```
|
|
145
|
+
|
|
94
146
|
## License
|
|
95
147
|
|
|
96
148
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "incremnt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Command-line tool for querying your incremnt strength training data",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
21
21
|
"chalk": "^5.6.2",
|
|
22
|
+
"ink": "^5.2.1",
|
|
23
|
+
"react": "^18.3.1",
|
|
22
24
|
"zod": "^3.24.0"
|
|
23
25
|
}
|
|
24
26
|
}
|