@way_marks/cli 4.4.7 → 4.6.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.
Files changed (2) hide show
  1. package/README.md +80 -78
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,18 +2,29 @@
2
2
 
3
3
  **Control what AI agents can do in your codebase.**
4
4
 
5
- Waymark sits between your team and any AI agent.
6
- Every file action is intercepted, logged, and checked
7
- against your policies before it executes.
8
- Dangerous commands are blocked. Sensitive paths
9
- require human approval. Everything is reversible.
5
+ Waymark sits between your AI agent and your codebase.
6
+ Every file write and shell command is intercepted,
7
+ checked against your policies, logged, and made reversible
8
+ before it executes. Dangerous commands are blocked.
9
+ Sensitive paths require human approval.
10
+
11
+ ---
12
+
13
+ ## Platform Support
14
+
15
+ | Platform | Status |
16
+ |----------|--------|
17
+ | **Claude Code** | ✅ Recommended |
18
+ | **Claude Desktop** | ✅ Recommended |
19
+ | **GitHub Copilot CLI** | ✅ Supported |
20
+ | **GitHub Copilot Chat** | ⏳ Future (waiting for GitHub MCP) |
10
21
 
11
22
  ---
12
23
 
13
24
  ## The Problem
14
25
 
15
- AI agents like Claude Code are powerful.
16
- They can also write to your .env, run rm -rf,
26
+ AI agents are powerful.
27
+ They can also write to your `.env`, run `rm -rf`,
17
28
  or modify your database schema without asking.
18
29
 
19
30
  You find out after it happens.
@@ -24,11 +35,11 @@ Waymark intercepts every action before it runs:
24
35
 
25
36
  | Agent tries to... | Waymark does... |
26
37
  |----------------------------|----------------------------------------|
27
- | Write to .env | Blocks it instantly. Logged. |
28
- | Run rm -rf | Blocks it instantly. Logged. |
29
- | Pipe curl to bash | Blocks it instantly. Logged. |
30
- | Modify src/db/schema.ts | Holds it. Asks for your approval. |
31
- | Write to src/ | Allows it. Logged with full rollback. |
38
+ | Write to `.env` | Blocks it instantly. Logged. |
39
+ | Run `rm -rf` | Blocks it instantly. Logged. |
40
+ | Pipe `curl` to `bash` | Blocks it instantly. Logged. |
41
+ | Modify `src/db/schema.ts` | Holds it. Asks for your approval. |
42
+ | Write to `src/` | Allows it. Logged with full rollback. |
32
43
  | Read any file | Logged with path and content snapshot. |
33
44
 
34
45
  ---
@@ -41,8 +52,8 @@ npx @way_marks/cli init
41
52
  npx @way_marks/cli start
42
53
  ```
43
54
 
44
- Restart Claude Code. Done.
45
- Waymark is now active in this project.
55
+ Choose your platform during `init` (Claude Code, Claude Desktop, or GitHub Copilot CLI).
56
+ Restart your agent. Done. Waymark is now active.
46
57
 
47
58
  ---
48
59
 
@@ -51,7 +62,7 @@ Waymark is now active in this project.
51
62
  ```
52
63
  Your Prompt
53
64
 
54
- Claude Code
65
+ Claude Code / GitHub Copilot CLI
55
66
 
56
67
  Waymark MCP Server ← intercepts here
57
68
 
@@ -61,20 +72,42 @@ allowed → executes + logged
61
72
  blocked → stopped + logged
62
73
  pending → held + approval required
63
74
 
64
- Dashboard: http://localhost:3001
75
+ Dashboard: http://localhost:<port>
65
76
  ```
66
77
 
67
78
  ---
68
79
 
69
80
  ## Dashboard
70
81
 
71
- Open **http://localhost:3001** after running
72
- `npx @way_marks/cli start`.
82
+ Open the dashboard after running `npx @way_marks/cli start`:
83
+
84
+ ```bash
85
+ npx @way_marks/cli status # prints the dashboard URL
86
+ ```
73
87
 
74
88
  - See every agent action in real time
75
89
  - Approve or reject pending actions
76
90
  - Roll back any write with one click
77
91
  - Filter by allowed / blocked / pending
92
+ - **Hub view** — manage every Waymark project on this machine from one screen
93
+
94
+ ---
95
+
96
+ ## Agent Monitor
97
+
98
+ See every AI agent running on your machine — live:
99
+
100
+ ```bash
101
+ $ waymark agents
102
+ Agent PID Status Ctx% Tokens Task Age
103
+ copilot 39897 thinking 52% 146,032 Refactor auth module 1m
104
+ claude 64586 waiting 37% 75,060 (idle) 12m
105
+
106
+ $ waymark agents --json # full token/tool/turn breakdown
107
+ $ waymark agents --agent copilot # filter to one agent
108
+ ```
109
+
110
+ Also available on the dashboard at `http://localhost:<port>/agents`.
78
111
 
79
112
  ---
80
113
 
@@ -110,44 +143,34 @@ Edit `waymark.config.json` in your project root:
110
143
  }
111
144
  ```
112
145
 
113
- ### Policy Rules
146
+ **allowedPaths** Agent can read and write these (glob patterns).
114
147
 
115
- **allowedPaths** — Agent can read and write these.
116
- Supports glob patterns.
148
+ **blockedPaths** — Agent can never touch these. Takes priority over `allowedPaths`.
117
149
 
118
- **blockedPaths** — Agent can never touch these.
119
- Takes priority over allowedPaths.
150
+ **blockedCommands** — Bash commands containing these strings are blocked.
151
+ Prefix with `regex:` for pattern matching.
120
152
 
121
- **blockedCommands** — Bash commands containing
122
- these strings are blocked. Prefix with `regex:`
123
- for pattern matching.
124
-
125
- **requireApproval** — Actions on these paths are
126
- held until a human approves from the dashboard.
153
+ **requireApproval** — Actions on these paths are held until a human approves
154
+ from the dashboard or Slack.
127
155
 
128
156
  ---
129
157
 
130
158
  ## CLI Commands
131
159
 
132
160
  ```bash
133
- npx @way_marks/cli init # Set up Waymark in current project
134
- npx @way_marks/cli start # Start dashboard + MCP server (background)
135
- npx @way_marks/cli stop # Stop the running servers
136
- npx @way_marks/cli status # Check if server is running
137
- npx @way_marks/cli logs # View recent actions in terminal
161
+ npx @way_marks/cli init # Set up Waymark in current project
162
+ npx @way_marks/cli start # Start dashboard + MCP server (background)
163
+ npx @way_marks/cli stop # Stop the running servers
164
+ npx @way_marks/cli status # Check if server is running + version info
165
+ npx @way_marks/cli logs # View recent actions in terminal
138
166
  npx @way_marks/cli logs --pending # Show only pending actions
139
167
  npx @way_marks/cli logs --blocked # Show only blocked actions
140
- ```
141
-
142
- ### Version Management
143
-
144
- ```bash
145
- npx @way_marks/cli --version # Check installed version
146
- npx @way_marks/cli status # Shows version + update banner if available
168
+ npx @way_marks/cli agents # Live view of all running AI agents
147
169
  npx @way_marks/cli update # Install latest version from npm
170
+ npx @way_marks/cli cache-clear # Clear cached version check (troubleshooting)
148
171
  ```
149
172
 
150
- The CLI automatically checks for updates on startup (non-blocking, 3-second timeout). Results are cached for 24 hours. See the [main README](../../README.md#checking-for-updates) for detailed troubleshooting and update instructions.
173
+ The CLI automatically checks for updates on startup (non-blocking, 24-hour cache).
151
174
 
152
175
  ---
153
176
 
@@ -159,52 +182,32 @@ Get notified when an agent action needs approval:
159
182
  # Add to .env in your project
160
183
  WAYMARK_SLACK_WEBHOOK_URL=https://hooks.slack.com/...
161
184
  WAYMARK_SLACK_CHANNEL=#engineering
162
- WAYMARK_BASE_URL=http://localhost:3001
185
+ WAYMARK_BASE_URL=http://localhost:<port>
163
186
  ```
164
187
 
165
- Create a Slack webhook at:
166
- api.slack.com/apps → Incoming Webhooks
167
-
168
- ---
169
-
170
- ## Works With
171
-
172
- - **Claude Code** — native MCP integration,
173
- zero configuration after init
174
- - **Any MCP-compatible agent** — register
175
- the Waymark MCP server in your agent config
176
- - More integrations coming
188
+ Create a Slack webhook at: api.slack.com/apps → Incoming Webhooks
177
189
 
178
190
  ---
179
191
 
180
192
  ## Requirements
181
193
 
182
194
  - Node.js 18 or higher
183
- - Claude Code (for MCP integration)
184
195
  - macOS, Linux, or Windows
185
196
 
186
197
  ---
187
198
 
188
- ## What Works
199
+ ## What's Included
189
200
 
190
- ✅ **Team approval routing** — Assign approvals to specific teammates with escalation
191
- ✅ **Session-level rollback** — Undo an entire agent run at once
192
- ✅ **Email notifications** — SMTP-based notifications for pending approvals
193
- ✅ **Multi-platform** — macOS, Linux, and Windows all supported
194
- ✅ **Slack integration** — Real-time notifications to Slack
195
201
  ✅ **Policy enforcement** — Block paths, commands, require approvals
196
- ✅ **Action logging** — Full audit trail with rollback capability
197
-
198
- ---
199
-
200
- ## Roadmap
201
-
202
- - [ ] CLI agent wrapping
203
- (waymark run <any-agent-command>)
204
- - [ ] Proxy mode
205
- (drop-in for any OpenAI-compatible agent)
206
- - [ ] REST API integration tests
207
- (comprehensive endpoint coverage)
202
+ ✅ **Action logging** — Full audit trail with before/after snapshots
203
+ ✅ **Rollback** — Undo any write with one click
204
+ ✅ **Agent monitor** — Live view of every AI agent on your machine
205
+ ✅ **Slack integration** — Approve or reject actions from Slack
206
+ **Team approval routing** — Assign approvals to specific teammates
207
+ ✅ **Session-level rollback** — Undo an entire agent run at once
208
+ **Hub view** Manage all your Waymark projects from one dashboard
209
+ **GitHub Copilot CLI** — First-class support alongside Claude
210
+ ✅ **Multi-platform** macOS, Linux, and Windows
208
211
 
209
212
  ---
210
213
 
@@ -212,7 +215,7 @@ api.slack.com/apps → Incoming Webhooks
212
215
 
213
216
  Waymark is MIT licensed and open to contributions.
214
217
 
215
- 1. Fork the repo
218
+ 1. Fork the repo: [github.com/shaifulshabuj/waymark](https://github.com/shaifulshabuj/waymark)
216
219
  2. Create a feature branch
217
220
  3. Open a pull request
218
221
 
@@ -226,6 +229,5 @@ MIT — see [LICENSE](LICENSE)
226
229
 
227
230
  ---
228
231
 
229
- Built for developers who want to use AI agents
230
- seriously — without giving them unsupervised
231
- access to production systems.
232
+ Built for developers who want to use AI agents seriously —
233
+ without giving them unsupervised access to production systems.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@way_marks/cli",
3
- "version": "4.4.7",
3
+ "version": "4.6.0",
4
4
  "description": "Control what AI agents can do in your codebase",
5
5
  "author": "Waymark <hello@waymarks.dev>",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  ]
44
44
  },
45
45
  "dependencies": {
46
- "@way_marks/server": "4.4.7"
46
+ "@way_marks/server": "4.6.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^30.0.0",