@uwa4d/openapi-mcp 0.2.0 → 0.2.1-beta.0

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/presets.js CHANGED
@@ -25,6 +25,7 @@ export const PRESET_DEFAULT = [
25
25
  'gotonline_overview_indicator_dashboard_keys',
26
26
  'gotonline_overview_memory_manage_data_report',
27
27
  'gotonline_overview_method_group_statistic',
28
+ 'gotonline_overview_method_customidmap_statistic',
28
29
  'gotonline_overview_stack_id_map',
29
30
  'gotonline_overview_stack_stutter_full_presign',
30
31
  'gotonline_overview_stack_stutter_full_tree_presign',
@@ -152,18 +152,26 @@ export const VERSION_GUIDE = {
152
152
  '- Unity:dataKey/recordId;UE:另传 threadName(如 GameThread)。Header v1.0.2。',
153
153
  '- 复合工具 top_functions(Overview)会读 stackTestMode 并校验 metric;Mono 报告不走此规则。',
154
154
  ].join('\n'),
155
+ gotonline_overview_method_customidmap_statistic: [
156
+ '【选用规则——务必先看】',
157
+ '- **仅 Unity Overview**。查 SDK 打点的自定义代码段(custom_id_map),不是门户「自定义函数组」。',
158
+ '- 未打点或无 custom_id_map 时 data=[],不要说报告没有函数。',
159
+ '- 返回 methodId / methodName / totalTimeTotal / totalTimeMean;子线程才有 threadId。',
160
+ '- 逐帧曲线:把 methodId 当作 stackMethodId 传给 gotonline_overview_method_curve_presign。',
161
+ '- 不要和 gotonline_overview_method_group_statistic / method_idmap_statistic 混用。',
162
+ ].join('\n'),
155
163
  gotonline_overview_method_curve: [
156
164
  '【选用规则——务必先看】',
157
165
  '- v1.0.1 直出曲线 JSON(按 stackMethodName 或 stackMethodId)。',
158
166
  '- **MCP 与 Open API 推荐改用 gotonline_overview_method_curve_presign(v1.0.2)**:OSS 预签名,id 或 name 至少其一。',
159
- '- stackMethodId 来自 gotonline_overview_method_idmap_statistic 或自定义函数组统计。',
167
+ '- stackMethodId 来自 gotonline_overview_method_idmap_statistic、自定义函数组统计,或自定义代码段统计(methodId)。',
160
168
  ].join('\n'),
161
169
  gotonline_overview_method_curve_presign: [
162
170
  '【选用规则——务必先看】',
163
171
  '- v1.0.2 OSS 预签名下载函数逐帧曲线 JSON(Unity · UE)。',
164
172
  '- stackMethodId 与 stackMethodName **至少传一个**(同时传时优先 id);UE 另需 threadName,Unity 不传。',
165
173
  '- 不要用 v1.0.1 gotonline_overview_method_curve 除非必须服务端直出。',
166
- '- id 优先从 gotonline_overview_method_idmap_statistic 获取。',
174
+ '- id 优先从 gotonline_overview_method_idmap_statistic 获取;自定义代码段用 gotonline_overview_method_customidmap_statistic 的 methodId。',
167
175
  ].join('\n'),
168
176
  gotonline_overview_indicator_dashboard_keys: [
169
177
  '【选用规则——务必先看】',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uwa4d/openapi-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-beta.0",
4
4
  "description": "UWA 开放平台 MCP Server,将 UWA Open API 暴露为 MCP 工具供 AI 助手调用",
5
5
  "type": "module",
6
6
  "bin": {