moltengine-cli 0.1.2 → 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 (3) hide show
  1. package/README.md +43 -5
  2. package/package.json +2 -2
  3. package/src/moltengine.js +1468 -45
package/README.md CHANGED
@@ -42,15 +42,26 @@ source ~/.bashrc
42
42
  ## Usage
43
43
 
44
44
  ```bash
45
- # Show tenant information
45
+ # Check status, usage, and pending approvals
46
+ moltctl status
47
+
48
+ # Show tenant and plan information
46
49
  moltctl whoami
47
50
 
48
- # Check status
49
- moltctl status
51
+ # View detailed usage vs plan limits
52
+ moltctl usage
53
+
54
+ # List and manage pending approvals (Team+ plans)
55
+ moltctl approvals list
56
+ moltctl approvals approve 1
57
+ moltctl approvals deny 2
50
58
 
51
59
  # List deployments
52
60
  moltctl deployments
53
61
 
62
+ # Upgrade your plan
63
+ moltctl upgrade team
64
+
54
65
  # Show help
55
66
  moltctl help
56
67
  ```
@@ -59,17 +70,44 @@ moltctl help
59
70
 
60
71
  | Command | Description |
61
72
  |---------|-------------|
62
- | `moltctl whoami` | Show current tenant information |
63
- | `moltctl status` | Show tenant status and deployment info |
73
+ | `moltctl status` | Show status, usage stats, and pending approvals |
74
+ | `moltctl whoami` | Show current tenant and plan information |
75
+ | `moltctl usage` | Show detailed usage vs plan limits |
76
+ | `moltctl approvals` | List and manage pending approvals (Team+) |
64
77
  | `moltctl deployments` | List recent deployments |
78
+ | `moltctl upgrade [plan]` | Upgrade to a higher plan |
79
+ | `moltctl audit` | Search and export audit logs (Team+) |
80
+ | `moltctl policies` | Manage security policies (Team+) |
65
81
  | `moltctl help` | Show help message |
66
82
 
83
+ ## Approvals (Team+ Plans)
84
+
85
+ On Team plan and above, risky actions are held for approval instead of being blocked:
86
+
87
+ ```bash
88
+ # List pending approvals
89
+ moltctl approvals list
90
+
91
+ # Approve an action
92
+ moltctl approvals approve 1
93
+
94
+ # Deny an action
95
+ moltctl approvals deny 1
96
+ ```
97
+
98
+ On Starter plan, risky actions are blocked automatically (Safe Mode). Upgrade to enable approvals:
99
+
100
+ ```bash
101
+ moltctl upgrade team
102
+ ```
103
+
67
104
  ## Environment Variables
68
105
 
69
106
  | Variable | Required | Description |
70
107
  |----------|----------|-------------|
71
108
  | `MOLTENGINE_API` | Yes | API URL (e.g., `https://api.moltengine.com`) |
72
109
  | `MOLT_TENANT_KEY` | Yes | Your tenant API key |
110
+ | `MOLTENGINE_WEB` | No | Web URL for upgrade links (default: `https://moltengine.com`) |
73
111
 
74
112
  ## Getting Your API Key
75
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moltengine-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for Moltengine - The WP Engine for AI Agents",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "homepage": "https://moltengine.com",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/moltengine/moltengine.git",
11
+ "url": "git+https://github.com/moltengine/moltengine.git",
12
12
  "directory": "cli"
13
13
  },
14
14
  "bugs": {