@vibe-assurance/cli 1.7.2 → 1.7.4
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/.claude/settings.local.json +10 -0
- package/README.md +64 -36
- package/nul +1 -2
- package/package.json +1 -1
- package/src/commands/login.js +4 -2
- package/src/mcp/tools.js +1 -1
package/README.md
CHANGED
|
@@ -24,26 +24,38 @@ npm install -g @vibe-assurance/cli
|
|
|
24
24
|
|
|
25
25
|
3. **Restart your AI agent** and start using governance tools!
|
|
26
26
|
|
|
27
|
-
##
|
|
28
|
-
|
|
29
|
-
### Available Commands
|
|
27
|
+
## CLI Commands
|
|
30
28
|
|
|
31
29
|
| Command | Description |
|
|
32
30
|
|---------|-------------|
|
|
33
31
|
| `vibe login` | Authenticate with Vibe Assurance |
|
|
34
32
|
| `vibe logout` | Clear stored credentials |
|
|
33
|
+
| `vibe whoami` | Show current authenticated user |
|
|
35
34
|
| `vibe mcp-server` | Start the MCP server (used by AI coding agents) |
|
|
36
35
|
| `vibe setup-claude` | Configure MCP client to use Vibe Assurance |
|
|
36
|
+
| `vibe --version` | Show CLI version |
|
|
37
|
+
|
|
38
|
+
### Project Commands
|
|
39
|
+
|
|
40
|
+
| Command | Description |
|
|
41
|
+
|---------|-------------|
|
|
37
42
|
| `vibe projects` | List your accessible projects |
|
|
38
43
|
| `vibe project current` | Show current project |
|
|
39
44
|
| `vibe project select` | Switch to a different project |
|
|
40
|
-
| `vibe --version` | Show CLI version |
|
|
41
45
|
|
|
42
|
-
###
|
|
46
|
+
### Environment Commands
|
|
47
|
+
|
|
48
|
+
| Command | Description |
|
|
49
|
+
|---------|-------------|
|
|
50
|
+
| `vibe env` | Show current environment |
|
|
51
|
+
| `vibe env list` | List available environments |
|
|
52
|
+
| `vibe env prod` | Switch to production |
|
|
53
|
+
|
|
54
|
+
## MCP Tools
|
|
43
55
|
|
|
44
56
|
Once configured, your AI coding agent has access to these tools:
|
|
45
57
|
|
|
46
|
-
|
|
58
|
+
### Roles (AI Analyst Prompts)
|
|
47
59
|
|
|
48
60
|
| Tool | Description |
|
|
49
61
|
|------|-------------|
|
|
@@ -52,7 +64,7 @@ Once configured, your AI coding agent has access to these tools:
|
|
|
52
64
|
| `vibe_update_role` | Update a role's system prompt |
|
|
53
65
|
| `vibe_create_role` | Create a new custom role |
|
|
54
66
|
|
|
55
|
-
|
|
67
|
+
### Context & Templates
|
|
56
68
|
|
|
57
69
|
| Tool | Description |
|
|
58
70
|
|------|-------------|
|
|
@@ -60,7 +72,7 @@ Once configured, your AI coding agent has access to these tools:
|
|
|
60
72
|
| `vibe_get_template` | Get a document template |
|
|
61
73
|
| `vibe_list_templates` | List available templates |
|
|
62
74
|
|
|
63
|
-
|
|
75
|
+
### Artifacts (Governance Documents)
|
|
64
76
|
|
|
65
77
|
| Tool | Description |
|
|
66
78
|
|------|-------------|
|
|
@@ -73,8 +85,6 @@ Once configured, your AI coding agent has access to these tools:
|
|
|
73
85
|
|
|
74
86
|
#### Artifact Types
|
|
75
87
|
|
|
76
|
-
The following artifact types are supported:
|
|
77
|
-
|
|
78
88
|
| Type | Description | Example ID |
|
|
79
89
|
|------|-------------|------------|
|
|
80
90
|
| `CR` | Change Requests | CR-2026-051 |
|
|
@@ -83,10 +93,48 @@ The following artifact types are supported:
|
|
|
83
93
|
| `REPORT` | Security/Audit Reports | RPT-2026-001 |
|
|
84
94
|
| `POLICY` | Governance Policies | POL-001 |
|
|
85
95
|
| `PLAN` | Strategic & Technical Plans | PLAN-2026-002 |
|
|
86
|
-
| `ARCHITECTURE` | Architecture Decision Records | ADR-001 |
|
|
87
96
|
| `CONFIG` | Configuration Documentation | CFG-001 |
|
|
97
|
+
| `SOP` | Standard Operating Procedures | SOP-001 |
|
|
88
98
|
|
|
89
|
-
###
|
|
99
|
+
### Risk Register
|
|
100
|
+
|
|
101
|
+
| Tool | Description |
|
|
102
|
+
|------|-------------|
|
|
103
|
+
| `vibe_get_risk_register` | Get project's risk register |
|
|
104
|
+
| `vibe_add_risk` | Add a new risk with auto-calculated severity |
|
|
105
|
+
| `vibe_get_risk` | Get specific risk by ID |
|
|
106
|
+
| `vibe_update_risk` | Update risk status, treatment, or reassess |
|
|
107
|
+
|
|
108
|
+
### Vulnerability Register
|
|
109
|
+
|
|
110
|
+
| Tool | Description |
|
|
111
|
+
|------|-------------|
|
|
112
|
+
| `vibe_get_vulnerability_register` | Get project's vulnerability register |
|
|
113
|
+
| `vibe_add_vulnerability` | Add vulnerability with OWASP validation |
|
|
114
|
+
| `vibe_get_vulnerability` | Get specific vulnerability by ID |
|
|
115
|
+
| `vibe_update_vulnerability` | Update vulnerability status or link to CR |
|
|
116
|
+
|
|
117
|
+
### Strategic Plans
|
|
118
|
+
|
|
119
|
+
| Tool | Description |
|
|
120
|
+
|------|-------------|
|
|
121
|
+
| `vibe_get_strategic_plans` | List strategic plans (PLAN artifacts) |
|
|
122
|
+
| `vibe_update_plan_status` | Update plan status (Draft/Active/Completed/Closed) |
|
|
123
|
+
|
|
124
|
+
### Policies & SOPs
|
|
125
|
+
|
|
126
|
+
| Tool | Description |
|
|
127
|
+
|------|-------------|
|
|
128
|
+
| `vibe_list_policies` | List project's policies |
|
|
129
|
+
| `vibe_store_policy` | Create a new policy |
|
|
130
|
+
| `vibe_get_policy` | Get specific policy by ID |
|
|
131
|
+
| `vibe_update_policy` | Update policy content or metadata |
|
|
132
|
+
| `vibe_list_sops` | List project's SOPs |
|
|
133
|
+
| `vibe_store_sop` | Create a new SOP |
|
|
134
|
+
| `vibe_get_sop` | Get specific SOP by ID |
|
|
135
|
+
| `vibe_update_sop` | Update SOP content or metadata |
|
|
136
|
+
|
|
137
|
+
## Example Session
|
|
90
138
|
|
|
91
139
|
```
|
|
92
140
|
User: Create a change request for adding user authentication
|
|
@@ -103,22 +151,16 @@ Based on your governance context, your next CR ID is CR-2026-001.
|
|
|
103
151
|
[Calls vibe_store_artifact(...)]
|
|
104
152
|
|
|
105
153
|
Your CR-2026-001 has been stored! View it at:
|
|
106
|
-
https://vibeassurance.app/governance
|
|
154
|
+
https://vibeassurance.app/governance-changes
|
|
107
155
|
```
|
|
108
156
|
|
|
109
157
|
## Configuration
|
|
110
158
|
|
|
111
159
|
### Environment Variables
|
|
112
160
|
|
|
113
|
-
| Variable |
|
|
114
|
-
|
|
115
|
-
| `VIBE_API_URL` |
|
|
116
|
-
|
|
117
|
-
For development, you can point to a local instance:
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
VIBE_API_URL=http://localhost:3000 vibe login
|
|
121
|
-
```
|
|
161
|
+
| Variable | Description |
|
|
162
|
+
|----------|-------------|
|
|
163
|
+
| `VIBE_API_URL` | Override API URL (for development) |
|
|
122
164
|
|
|
123
165
|
### Credential Storage
|
|
124
166
|
|
|
@@ -193,19 +235,6 @@ Then remove the MCP configuration from your AI agent's config file.
|
|
|
193
235
|
- All API communication uses HTTPS
|
|
194
236
|
- Tokens auto-refresh when expired
|
|
195
237
|
|
|
196
|
-
## Changelog
|
|
197
|
-
|
|
198
|
-
### v1.3.0 (2026-01-06)
|
|
199
|
-
- Added `PLAN`, `ARCHITECTURE`, `CONFIG` artifact types
|
|
200
|
-
- Enables Technical Strategist to store plans as PLAN artifacts
|
|
201
|
-
- Supports architecture decision records (ADRs)
|
|
202
|
-
- Supports configuration documentation
|
|
203
|
-
|
|
204
|
-
### v1.2.0
|
|
205
|
-
- Added `vibe_append_file` for safe file additions to artifacts
|
|
206
|
-
- Added project management commands (`vibe projects`, `vibe project select`)
|
|
207
|
-
- Improved token refresh handling
|
|
208
|
-
|
|
209
238
|
## License
|
|
210
239
|
|
|
211
240
|
MIT
|
|
@@ -214,4 +243,3 @@ MIT
|
|
|
214
243
|
|
|
215
244
|
- [Vibe Assurance](https://vibeassurance.app) - AI Governance Platform
|
|
216
245
|
- [MCP Protocol](https://modelcontextprotocol.io) - Model Context Protocol specification
|
|
217
|
-
- [Documentation](https://agent-platform-prod.azurewebsites.net/docs-cli.html) - CLI setup guide
|
package/nul
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
dir: cannot access '/b': No such file or directory
|
|
1
|
+
/usr/bin/bash: line 1: del: command not found
|
package/package.json
CHANGED
package/src/commands/login.js
CHANGED
|
@@ -5,7 +5,7 @@ const chalk = require('chalk');
|
|
|
5
5
|
const ora = require('ora');
|
|
6
6
|
const inquirer = require('inquirer');
|
|
7
7
|
const axios = require('axios');
|
|
8
|
-
const { storeCredentials, hasValidCredentials, setProjectId, setUserInfo, getEnvironment } = require('../config/credentials');
|
|
8
|
+
const { storeCredentials, getCredentials, hasValidCredentials, setProjectId, setUserInfo, getEnvironment } = require('../config/credentials');
|
|
9
9
|
const { getApiBaseUrl } = require('../api/client');
|
|
10
10
|
const { getEnvironmentConfig } = require('../config/environments');
|
|
11
11
|
|
|
@@ -87,8 +87,10 @@ async function login() {
|
|
|
87
87
|
? new Date(Date.now() + parseInt(expiresIn) * 1000)
|
|
88
88
|
: new Date(Date.now() + 3600 * 1000); // Default 1 hour
|
|
89
89
|
|
|
90
|
-
//
|
|
90
|
+
// CR-2026-061: Preserve environment when storing new credentials
|
|
91
|
+
const existingCreds = await getCredentials();
|
|
91
92
|
await storeCredentials({
|
|
93
|
+
environment: existingCreds?.environment, // Preserve environment
|
|
92
94
|
accessToken,
|
|
93
95
|
refreshToken,
|
|
94
96
|
expiresAt: expiresAt.toISOString()
|
package/src/mcp/tools.js
CHANGED