@mearl/client
Advanced tools
+12
-4
@@ -12,3 +12,3 @@ export const COMMANDS = [ | ||
| type: '"mtop" | "requests"', | ||
| description: '强制指定来源,不填时使用 panel 当前模式', | ||
| description: '数据来源,不填时默认 mtop', | ||
| }, | ||
@@ -35,5 +35,10 @@ { name: 'filter', type: 'string', description: '按 URL 或 API 名称过滤,支持正则' }, | ||
| name: 'get_events', | ||
| description: '获取 RUM/aplus 埋点事件', | ||
| description: '获取 RUM/aplus/ARMS 埋点事件', | ||
| params: [ | ||
| { name: 'source', type: '"rum" | "aplus" | "all"', description: '数据来源,默认 all' }, | ||
| { name: 'tabId', type: 'number', description: '目标标签页 ID,从 tab_list 获取' }, | ||
| { | ||
| name: 'source', | ||
| type: '"rum" | "aplus" | "arms" | "all"', | ||
| description: '数据来源,默认 all', | ||
| }, | ||
| { name: 'event_type', type: 'string', description: '按事件类型过滤,支持正则,如 CLK/PV' }, | ||
@@ -44,3 +49,6 @@ { name: 'filter', type: 'string', description: '按 name 或 url 过滤,支持正则' }, | ||
| ], | ||
| examples: [`get_events --payload '{"source":"aplus","event_type":"CLK","limit":10}'`], | ||
| examples: [ | ||
| `get_events --payload '{"source":"aplus","event_type":"CLK","limit":10}'`, | ||
| `get_events --payload '{"tabId":12345,"source":"all","limit":20}'`, | ||
| ], | ||
| }, | ||
@@ -47,0 +55,0 @@ { |
+2
-1
@@ -41,3 +41,4 @@ /** | ||
| export interface GetEventsParams { | ||
| source?: 'rum' | 'aplus' | 'all'; | ||
| tabId?: number; | ||
| source?: 'rum' | 'aplus' | 'arms' | 'all'; | ||
| event_type?: string; | ||
@@ -44,0 +45,0 @@ filter?: string; |
+1
-1
| { | ||
| "name": "@mearl/client", | ||
| "version": "2.0.0", | ||
| "version": "2.0.1", | ||
| "description": "Client SDK & CLI for Mearl — communicate with Chrome Extension via Unix Socket", | ||
@@ -5,0 +5,0 @@ "type": "module", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
101872
0.29%2289
0.39%