@lexq/cli 0.1.25 → 0.1.26

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 +12 -35
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -53,48 +53,24 @@ lexq auth login
53
53
  # 2. Verify
54
54
  lexq auth whoami
55
55
 
56
- # 3. Create a policy group
57
- lexq groups create --json '{"name":"my-policy","priority":0}'
58
-
59
- # 4. Create a draft version
60
- lexq versions create --group-id <GROUP_ID> --json '{"commitMessage":"v1"}'
61
-
62
- # 5. Add a rule
63
- lexq rules create --group-id <GROUP_ID> --version-id <VERSION_ID> --json '{
64
- "name": "VIP Discount",
65
- "priority": 0,
66
- "condition": {
67
- "type": "SINGLE",
68
- "field": "customer_tier",
69
- "operator": "EQUALS",
70
- "value": "VIP",
71
- "valueType": "STRING"
72
- },
73
- "actions": [{
74
- "type": "MUTATE_FACT",
75
- "parameters": {
76
- "method": "PERCENTAGE",
77
- "rate": 10,
78
- "refVar": "payment_amount",
79
- "operator": "SUB",
80
- "rounding": { "mode": "HALF_UP", "scale": 0 }
81
- }
82
- }]
83
- }'
56
+ # 3. Start from a domain template — provisions facts, sample rules, and a policy group
57
+ lexq domain-templates list
58
+ lexq domain-templates apply --template ECOMMERCE
59
+ # Returns: policyGroupId, policyVersionId, factsCreated, rulesCreated
84
60
 
85
- # 6. Test against your data before shipping
61
+ # 4. Test a rule against your data before shipping
86
62
  lexq analytics dry-run --version-id <VERSION_ID> --debug --mock \
87
- --json '{"facts":{"customer_tier":"VIP","payment_amount":100000}}'
63
+ --json '{"facts":{"loyalty_tier":"PLATINUM","purchase_subtotal_usd":150}}'
88
64
 
89
- # 7. Deploy
65
+ # 5. Deploy
90
66
  lexq deploy publish --group-id <GROUP_ID> --version-id <VERSION_ID> --memo "v1"
91
67
  lexq deploy live --group-id <GROUP_ID> --version-id <VERSION_ID> --memo "Initial deploy"
92
68
  ```
93
69
 
94
- ## For AI Agents — 63 MCP Tools
70
+ ## For AI Agents — the Complete Partner API
95
71
 
96
- LexQ is designed to be AI-native. The entire policy engine API — all 63 tools
97
- — is exposed via Model Context Protocol. Claude, Cursor, and other MCP-compatible
72
+ LexQ is designed to be AI-native. The entire policy engine Partner API is
73
+ exposed via Model Context Protocol. Claude, Cursor, and other MCP-compatible
98
74
  agents can create, simulate, and deploy rules autonomously, with human approval
99
75
  before production.
100
76
 
@@ -103,7 +79,7 @@ before production.
103
79
  1. **Settings → Connectors → Add Custom Integration**
104
80
  2. Enter: `https://mcp.lexq.io`
105
81
  3. Sign in with your LexQ account and select an API key
106
- 4. Done — 63 tools available in every conversation
82
+ 4. Done — the full toolset available in every conversation
107
83
 
108
84
  ### Remote (Streamable HTTP)
109
85
 
@@ -210,6 +186,7 @@ lexq groups ab-test start | stop | adjust
210
186
  lexq versions list | get | create | update | delete | clone
211
187
  lexq rules list | get | create | update | delete | reorder | toggle
212
188
  lexq facts list | create | update | delete | action-metadata
189
+ lexq domain-templates list | preview | apply
213
190
  lexq deploy publish | live | rollback | undeploy | history | detail | overview | deployable | diff
214
191
  lexq analytics dry-run | dry-run-compare | requirements
215
192
  lexq analytics simulation start | status | list | cancel | export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexq/cli",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "LexQ CLI — manage policies, simulate rules, and deploy from the terminal. Built for humans and AI agents.",
5
5
  "type": "module",
6
6
  "bin": {