@windsland52/maa-log-adapter 1.1.1 → 1.1.2

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/dist/index.js +7 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -8,7 +8,13 @@ export const createMlaRuntimeAdapter = () => {
8
8
  parser.setErrorImages(input.errorImages ?? new Map());
9
9
  parser.setVisionImages(input.visionImages ?? new Map());
10
10
  parser.setWaitFreezesImages(input.waitFreezesImages ?? new Map());
11
- await parser.parseFile(input.content, undefined, input.parseOptions);
11
+ // 来源元数据只影响事件/节点的 `source` 标注,不改变解析语义;
12
+ // 没给就退回 parseFile 的默认(sourceKey 为 input:0、无 path)。
13
+ await parser.parseFile(input.content, undefined, {
14
+ ...input.parseOptions,
15
+ sourcePath: input.sourcePath,
16
+ sourceKey: input.sourceKey,
17
+ });
12
18
  return {
13
19
  tasks: parser.getTasksSnapshot(),
14
20
  events: parser.getEventsSnapshot(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windsland52/maa-log-adapter",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "exports": {
@@ -10,9 +10,9 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "@windsland52/maa-log-kernel": "1.0.2",
14
- "@windsland52/maa-log-runtime": "1.1.0",
15
- "@windsland52/maa-log-parser": "2.0.0"
13
+ "@windsland52/maa-log-kernel": "1.1.0",
14
+ "@windsland52/maa-log-parser": "2.1.0",
15
+ "@windsland52/maa-log-runtime": "1.1.1"
16
16
  },
17
17
  "engines": {
18
18
  "node": ">=20.18.0"