@lark-apaas/devtool-kits 1.2.5-alpha.3 → 1.2.5-alpha.5

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.cjs CHANGED
@@ -2162,9 +2162,6 @@ async function readTriggerList(filePath, trigger, path7, limit) {
2162
2162
  if (alreadyAdded) {
2163
2163
  return false;
2164
2164
  }
2165
- if (!builder.hasCompleted) {
2166
- return false;
2167
- }
2168
2165
  const isAutomationTrigger = builder.path?.endsWith(path7);
2169
2166
  if (!isAutomationTrigger) {
2170
2167
  return false;
@@ -2188,7 +2185,7 @@ async function readTriggerList(filePath, trigger, path7, limit) {
2188
2185
  if (shouldIncludeInCompletedCalls(builder)) {
2189
2186
  completedCalls.push(builder);
2190
2187
  if (limit && completedCalls.length > limit) {
2191
- completedCalls.shift();
2188
+ completedCalls.pop();
2192
2189
  }
2193
2190
  }
2194
2191
  }, "updateBuilderMetadata");
@@ -2203,7 +2200,7 @@ async function readTriggerList(filePath, trigger, path7, limit) {
2203
2200
  if (shouldIncludeInCompletedCalls(builder)) {
2204
2201
  completedCalls.push(builder);
2205
2202
  if (limit && completedCalls.length > limit) {
2206
- completedCalls.shift();
2203
+ completedCalls.pop();
2207
2204
  }
2208
2205
  }
2209
2206
  }, "handleRequestCompleted");
@@ -2265,7 +2262,7 @@ async function readTriggerDetail(filePath, path7, instanceID) {
2265
2262
  const entry = parseLogLine2(line);
2266
2263
  if (!entry) continue;
2267
2264
  const isAutomationTrigger = entry.path?.endsWith(path7);
2268
- const hasInstanceID = entry.message?.includes(`instanceID=${instanceID}`);
2265
+ const hasInstanceID = entry.instance_id === instanceID && entry.trigger;
2269
2266
  if (!isAutomationTrigger || !hasInstanceID) continue;
2270
2267
  matches.push(entry);
2271
2268
  }