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

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,11 +152,21 @@ 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
+ '- **threadId 决定后续怎么查(必须遵守)**:',
160
+ ' · **没有 threadId = 主线程**(不是缺字段)。可调函数曲线 gotonline_overview_method_curve_presign(methodId→stackMethodId,Unity 不传 threadName);堆栈/结点曲线不传 threadId。',
161
+ ' · **有 threadId = 子线程。子线程没有函数**,禁止调 method_curve / method_curve_presign。只能查结点曲线 gotonline_overview_stack_sample_frame_presign,并把该 threadId 原样传入。',
162
+ '- 不要和 gotonline_overview_method_group_statistic / method_idmap_statistic 混用。',
163
+ ].join('\n'),
155
164
  gotonline_overview_method_curve: [
156
165
  '【选用规则——务必先看】',
157
166
  '- v1.0.1 直出曲线 JSON(按 stackMethodName 或 stackMethodId)。',
158
167
  '- **MCP 与 Open API 推荐改用 gotonline_overview_method_curve_presign(v1.0.2)**:OSS 预签名,id 或 name 至少其一。',
159
- '- stackMethodId 来自 gotonline_overview_method_idmap_statistic 或自定义函数组统计。',
168
+ '- stackMethodId 来自 gotonline_overview_method_idmap_statistic、自定义函数组统计,或**主线程**自定义代码段(customidmap 条目无 threadId 时的 methodId)。',
169
+ '- 自定义代码段若带了 threadId(子线程):没有函数曲线,改用 gotonline_overview_stack_sample_frame_presign。',
160
170
  ].join('\n'),
161
171
  gotonline_overview_method_curve_presign: [
162
172
  '【选用规则——务必先看】',
@@ -164,6 +174,7 @@ export const VERSION_GUIDE = {
164
174
  '- stackMethodId 与 stackMethodName **至少传一个**(同时传时优先 id);UE 另需 threadName,Unity 不传。',
165
175
  '- 不要用 v1.0.1 gotonline_overview_method_curve 除非必须服务端直出。',
166
176
  '- id 优先从 gotonline_overview_method_idmap_statistic 获取。',
177
+ '- 自定义代码段:仅当 customidmap 条目**没有** threadId(主线程)时把 methodId 当 stackMethodId;**有 threadId 的子线程没有函数**,改用 gotonline_overview_stack_sample_frame_presign。',
167
178
  ].join('\n'),
168
179
  gotonline_overview_indicator_dashboard_keys: [
169
180
  '【选用规则——务必先看】',
@@ -217,6 +228,7 @@ export const VERSION_GUIDE = {
217
228
  '【选用规则——务必先看】',
218
229
  '- 堆栈树某个结点的逐帧曲线;结点 id 来自树文件。',
219
230
  '- Unity 子线程须传 threadId + sampleId;不传 threadId 为主线程(可不传 sampleId 取全帧聚合)。',
231
+ '- 自定义代码段若带了 threadId:子线程**没有函数曲线**,用本工具看结点逐帧,threadId 用 customidmap 返回值。',
220
232
  STACK_ANALYSIS_GUIDE,
221
233
  ].join('\n'),
222
234
  };
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.1",
4
4
  "description": "UWA 开放平台 MCP Server,将 UWA Open API 暴露为 MCP 工具供 AI 助手调用",
5
5
  "type": "module",
6
6
  "bin": {