@limetry/cli 1.2.42 → 1.2.48

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 +45 -0
  2. package/package.json +4 -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.042",
3
+ "version": "1.2.48",
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,15 @@
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",
25
27
  "build": "tsc -p tsconfig.json",
26
28
  "dev": "node dist/index.js",
27
29
  "test": "vitest run --passWithNoTests",
28
30
  "typecheck": "tsgo -p tsconfig.json --noEmit"
29
31
  },
30
32
  "dependencies": {
31
- "@limetry/sdk": "workspace:*",
33
+ "@limetry/sdk": "^1.2.48",
32
34
  "chalk": "^6.0.0",
33
35
  "commander": "^15.0.0",
34
36
  "inquirer": "^14.0.2",