@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.js CHANGED
@@ -2121,9 +2121,6 @@ async function readTriggerList(filePath, trigger, path7, limit) {
2121
2121
  if (alreadyAdded) {
2122
2122
  return false;
2123
2123
  }
2124
- if (!builder.hasCompleted) {
2125
- return false;
2126
- }
2127
2124
  const isAutomationTrigger = builder.path?.endsWith(path7);
2128
2125
  if (!isAutomationTrigger) {
2129
2126
  return false;
@@ -2147,7 +2144,7 @@ async function readTriggerList(filePath, trigger, path7, limit) {
2147
2144
  if (shouldIncludeInCompletedCalls(builder)) {
2148
2145
  completedCalls.push(builder);
2149
2146
  if (limit && completedCalls.length > limit) {
2150
- completedCalls.shift();
2147
+ completedCalls.pop();
2151
2148
  }
2152
2149
  }
2153
2150
  }, "updateBuilderMetadata");
@@ -2162,7 +2159,7 @@ async function readTriggerList(filePath, trigger, path7, limit) {
2162
2159
  if (shouldIncludeInCompletedCalls(builder)) {
2163
2160
  completedCalls.push(builder);
2164
2161
  if (limit && completedCalls.length > limit) {
2165
- completedCalls.shift();
2162
+ completedCalls.pop();
2166
2163
  }
2167
2164
  }
2168
2165
  }, "handleRequestCompleted");
@@ -2224,7 +2221,7 @@ async function readTriggerDetail(filePath, path7, instanceID) {
2224
2221
  const entry = parseLogLine2(line);
2225
2222
  if (!entry) continue;
2226
2223
  const isAutomationTrigger = entry.path?.endsWith(path7);
2227
- const hasInstanceID = entry.message?.includes(`instanceID=${instanceID}`);
2224
+ const hasInstanceID = entry.instance_id === instanceID && entry.trigger;
2228
2225
  if (!isAutomationTrigger || !hasInstanceID) continue;
2229
2226
  matches.push(entry);
2230
2227
  }