@limetry/cli 1.2.42 → 1.2.49
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/README.md +45 -0
- package/package.json +5 -2
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# `@limetry/cli`
|
|
2
|
+
|
|
3
|
+
Command-line tool for Limetry agent action governance: setup, policy apply, evaluate, approval, audit, and token management.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @limetry/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires Node.js 20 or newer. The `limetry` command is the package bin.
|
|
12
|
+
|
|
13
|
+
## Setup
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
limetry setup
|
|
17
|
+
limetry doctor
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`setup` writes local config for a self-hosted server or a hosted API token. `doctor` checks that config, server health, and auth.
|
|
21
|
+
|
|
22
|
+
## Policy, evaluate, approve
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
limetry policy apply --file policy.json
|
|
26
|
+
limetry eval --file intent.json
|
|
27
|
+
limetry approvals list
|
|
28
|
+
limetry approvals approve <approvalId> --reviewer you
|
|
29
|
+
limetry audit tail -n 20
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`eval` prints `allow`, `deny`, or `approval_required` for an ActionIntent JSON file (or stdin). `policy apply` upserts an action policy from that JSON file, or from `--allow`, `--deny`, `--block-resource`, and `--max-cost`.
|
|
33
|
+
|
|
34
|
+
## Tokens
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
limetry login
|
|
38
|
+
limetry token create --name ci --scopes read:rules
|
|
39
|
+
limetry token list
|
|
40
|
+
limetry token revoke <tokenId>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetry/cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.49",
|
|
4
4
|
"description": "CLI for Limetry agent action governance — setup, policy apply, eval, and audit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,13 +22,16 @@
|
|
|
22
22
|
"directory": "packages/cli"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
+
"prepack": "node ../../scripts/rewrite-workspace-protocol.mjs prepare",
|
|
26
|
+
"postpack": "node ../../scripts/rewrite-workspace-protocol.mjs restore-after-pack",
|
|
27
|
+
"postpublish": "node ../../scripts/rewrite-workspace-protocol.mjs restore",
|
|
25
28
|
"build": "tsc -p tsconfig.json",
|
|
26
29
|
"dev": "node dist/index.js",
|
|
27
30
|
"test": "vitest run --passWithNoTests",
|
|
28
31
|
"typecheck": "tsgo -p tsconfig.json --noEmit"
|
|
29
32
|
},
|
|
30
33
|
"dependencies": {
|
|
31
|
-
"@limetry/sdk": "
|
|
34
|
+
"@limetry/sdk": "^1.2.49",
|
|
32
35
|
"chalk": "^6.0.0",
|
|
33
36
|
"commander": "^15.0.0",
|
|
34
37
|
"inquirer": "^14.0.2",
|