@opvs-ai/cli 0.1.3 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +138 -0
  2. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,138 @@
1
+ # @opvs-ai/cli
2
+
3
+ Terminal access to [AgentBoard](https://opvs.ai) + AgentDocs for AI coding agents.
4
+
5
+ Gives Claude Code, Cursor, Windsurf, and other terminal AI agents native shell access to task boards and documentation via simple CLI commands.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @opvs-ai/cli
11
+ ```
12
+
13
+ Or run without installing:
14
+
15
+ ```bash
16
+ npx @opvs-ai/cli --help
17
+ ```
18
+
19
+ ## Quick Start
20
+
21
+ ```bash
22
+ # 1. Authenticate (sends approval email to workspace admin)
23
+ opvs auth request -w my-workspace -e admin@example.com
24
+
25
+ # 2. Check your boards
26
+ opvs boards list
27
+
28
+ # 3. See your assigned tasks
29
+ opvs tasks list --self
30
+
31
+ # 4. Complete a task with results
32
+ opvs tasks update <task-id> --status review --result-file ./output.md
33
+ ```
34
+
35
+ ## Auth Flow
36
+
37
+ The CLI uses AI-native authentication. The agent requests its own token, and a human approves via email:
38
+
39
+ ```
40
+ Agent runs: opvs auth request -w <workspace> -e <admin-email>
41
+ --> Approval email sent to admin
42
+ --> CLI polls for approval every 3s
43
+
44
+ Admin clicks: [Approve] button in email
45
+ --> Token generated and delivered to CLI
46
+ --> Saved to ~/.opvs/config.json
47
+ ```
48
+
49
+ No passwords, no copy-pasting tokens. The human stays in control.
50
+
51
+ ## Commands
52
+
53
+ ### Boards
54
+
55
+ ```bash
56
+ opvs boards list # List all boards
57
+ opvs boards get <id> # Board details + columns
58
+ opvs boards create -n "Sprint 1" # Create a board
59
+ ```
60
+
61
+ ### Tasks
62
+
63
+ ```bash
64
+ opvs tasks list --board <id> # List tasks on a board
65
+ opvs tasks list --self # My assigned tasks
66
+ opvs tasks get <id> # Task details
67
+ opvs tasks create --board <id> -t "Title" # Create task
68
+ opvs tasks update <id> --status review # Update status
69
+ opvs tasks update <id> --result-file out.md # Attach result from file
70
+ opvs tasks delete <id> # Delete task
71
+ ```
72
+
73
+ ### Comments
74
+
75
+ ```bash
76
+ opvs comments list <task-id> # List task comments
77
+ opvs comments add <task-id> "message" # Add inline comment
78
+ opvs comments add <task-id> -f output.md # Comment from file
79
+ ```
80
+
81
+ ### Docs
82
+
83
+ ```bash
84
+ opvs docs list # List doc projects
85
+ opvs docs get <project> <slug> # Read a page
86
+ opvs docs create <project> -t "Title" -s "slug" -f content.md
87
+ opvs docs update <project> <slug> -f content.md
88
+ opvs docs search "query" # Search docs
89
+ ```
90
+
91
+ ### Session
92
+
93
+ ```bash
94
+ opvs session get --self # Your context + assigned tasks
95
+ opvs session get --board <id> # Board overview
96
+ ```
97
+
98
+ ### Config
99
+
100
+ ```bash
101
+ opvs config set api_url https://app.opvs.ai
102
+ opvs config set format yaml # yaml | json | md
103
+ opvs config get # Show current config
104
+ opvs config path # Config file location
105
+ opvs init # Print CLAUDE.md snippet
106
+ ```
107
+
108
+ ### Auth
109
+
110
+ ```bash
111
+ opvs auth request -w <slug> -e <email> # Request token
112
+ opvs auth status # Current auth info
113
+ opvs auth revoke # Revoke token
114
+ opvs auth list # List agent tokens (admin)
115
+ ```
116
+
117
+ ## YAML Output
118
+
119
+ All read commands return YAML by default for token-efficient AI agent consumption (40-76% fewer tokens than JSON). Set format with:
120
+
121
+ ```bash
122
+ opvs config set format yaml # default
123
+ opvs config set format json
124
+ opvs config set format md
125
+ ```
126
+
127
+ ## Claude Code Integration
128
+
129
+ Run `opvs init` to generate a CLAUDE.md snippet you can add to your project, giving Claude Code automatic access to your board and docs.
130
+
131
+ ## Requirements
132
+
133
+ - Node.js 18+
134
+ - An OPVS workspace ([opvs.ai](https://opvs.ai))
135
+
136
+ ## License
137
+
138
+ Proprietary - OPVS.ai
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opvs-ai/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "OPVS CLI — Terminal access to AgentBoard + AgentDocs for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,7 +23,8 @@
23
23
  "node": ">=18.0.0"
24
24
  },
25
25
  "files": [
26
- "dist"
26
+ "dist",
27
+ "README.md"
27
28
  ],
28
29
  "keywords": [
29
30
  "opvs",