@lexq/cli 0.1.16 → 0.1.18
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/dist/index.js +6 -2
- package/dist/mcp/register.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2202,8 +2202,12 @@ function registerRuleTools(server, callApi) {
|
|
|
2202
2202
|
- POINT: { refVar: string, targetVar: string, method: "PERCENTAGE"|"AMOUNT", rate?: number (when PERCENTAGE), value?: number (when AMOUNT), integrationId: uuid }
|
|
2203
2203
|
- COUPON_ISSUE: { couponId: string, integrationId: uuid }
|
|
2204
2204
|
- BLOCK: { reason: string }
|
|
2205
|
-
- NOTIFICATION: { channel: "SMS"|"EMAIL"|"PUSH"
|
|
2206
|
-
- WEBHOOK: { url: string, method: "POST" }
|
|
2205
|
+
- NOTIFICATION: { channel: "SMS"|"EMAIL"|"PUSH", targetVar: string, templateId: string, integrationId: uuid }
|
|
2206
|
+
- WEBHOOK: { url: string, method: "POST", payloadTemplate?: object } payloadTemplate is optional. Without it, all facts are sent as-is. With it, the object is sent as the HTTP body with {{variables}} replaced at execution time. Variables: {{fact.xxx}}, {{output.xxx}}, {{timestamp}}, {{ruleName}}, {{groupName}}, {{versionNo}}, {{xxx}} (shorthand).
|
|
2207
|
+
Platform examples:
|
|
2208
|
+
Slack: { "text": "Rule {{ruleName}} fired \u2014 {{fact.customer_tier}}" }
|
|
2209
|
+
Discord: { "content": "Rule {{ruleName}} fired \u2014 {{fact.customer_tier}}" }
|
|
2210
|
+
Generic: { "event": "rule_matched", "rule": "{{ruleName}}", "amount": "{{output.payment_amount}}" }
|
|
2207
2211
|
- SET_FACT: { key: string, value: string|number|boolean }
|
|
2208
2212
|
- ADD_TAG: { tag: string, targetVar: string }`,
|
|
2209
2213
|
inputSchema: {
|
package/dist/mcp/register.js
CHANGED
|
@@ -295,8 +295,12 @@ function registerRuleTools(server, callApi) {
|
|
|
295
295
|
- POINT: { refVar: string, targetVar: string, method: "PERCENTAGE"|"AMOUNT", rate?: number (when PERCENTAGE), value?: number (when AMOUNT), integrationId: uuid }
|
|
296
296
|
- COUPON_ISSUE: { couponId: string, integrationId: uuid }
|
|
297
297
|
- BLOCK: { reason: string }
|
|
298
|
-
- NOTIFICATION: { channel: "SMS"|"EMAIL"|"PUSH"
|
|
299
|
-
- WEBHOOK: { url: string, method: "POST" }
|
|
298
|
+
- NOTIFICATION: { channel: "SMS"|"EMAIL"|"PUSH", targetVar: string, templateId: string, integrationId: uuid }
|
|
299
|
+
- WEBHOOK: { url: string, method: "POST", payloadTemplate?: object } payloadTemplate is optional. Without it, all facts are sent as-is. With it, the object is sent as the HTTP body with {{variables}} replaced at execution time. Variables: {{fact.xxx}}, {{output.xxx}}, {{timestamp}}, {{ruleName}}, {{groupName}}, {{versionNo}}, {{xxx}} (shorthand).
|
|
300
|
+
Platform examples:
|
|
301
|
+
Slack: { "text": "Rule {{ruleName}} fired \u2014 {{fact.customer_tier}}" }
|
|
302
|
+
Discord: { "content": "Rule {{ruleName}} fired \u2014 {{fact.customer_tier}}" }
|
|
303
|
+
Generic: { "event": "rule_matched", "rule": "{{ruleName}}", "amount": "{{output.payment_amount}}" }
|
|
300
304
|
- SET_FACT: { key: string, value: string|number|boolean }
|
|
301
305
|
- ADD_TAG: { tag: string, targetVar: string }`,
|
|
302
306
|
inputSchema: {
|