agentplan-cli 0.1.0 → 0.1.1

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 +51 -0
  2. package/package.json +10 -1
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # agentplan-cli
2
+
3
+ The official command-line client for [AgentPlan](https://agentplan.app). Publish
4
+ agent-generated HTML files behind stable, private-by-default links.
5
+
6
+ ## Quick start
7
+
8
+ Run the CLI without installing it:
9
+
10
+ ```bash
11
+ npx agentplan-cli login
12
+ npx agentplan-cli upload ./plan.html
13
+ ```
14
+
15
+ Create an API token in the AgentPlan dashboard, then paste it into `login` when
16
+ prompted.
17
+
18
+ To install the `agentplan` command globally:
19
+
20
+ ```bash
21
+ npm install --global agentplan-cli
22
+ agentplan login
23
+ ```
24
+
25
+ ## Commands
26
+
27
+ ```text
28
+ agentplan login
29
+ agentplan logout
30
+ agentplan upload <file.html>
31
+ --public | --private
32
+ --password <password>
33
+ --password-stdin
34
+ --title <title>
35
+ --draft <id>
36
+ --json
37
+ agentplan list [--json]
38
+ agentplan open <id>
39
+ ```
40
+
41
+ Authentication is resolved in this order:
42
+
43
+ 1. `AGENTPLAN_TOKEN`
44
+ 2. A token saved by `agentplan login`
45
+ 3. An interactive token prompt
46
+
47
+ Set `AGENTPLAN_API_URL` to use a custom AgentPlan deployment. Custom endpoints
48
+ must use HTTPS, except for localhost development.
49
+
50
+ The CLI requires Node.js 20 or newer. Source code and issue tracking are
51
+ available in the [AgentPlan repository](https://github.com/niklas-schmidt-dev/agentplan).
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "agentplan-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI for agentplan.app — publish agent-generated HTML behind stable links.",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/niklas-schmidt-dev/agentplan.git",
9
+ "directory": "packages/cli"
10
+ },
11
+ "homepage": "https://agentplan.app",
12
+ "bugs": {
13
+ "url": "https://github.com/niklas-schmidt-dev/agentplan/issues"
14
+ },
6
15
  "type": "module",
7
16
  "bin": {
8
17
  "agentplan": "dist/index.js"