@sabaiway/agent-workflow-kit 14.3.0 → 14.4.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.
@@ -167,7 +167,8 @@ const checkRow = (context, brief, row) => {
167
167
  const allowed = isSweep(row.path) ? expandSweepPaths(context.top, [row.path])[row.path] : [row.path];
168
168
  if (implementations.some((path) => !allowed.includes(path))) reject(NAMES.row, row.id);
169
169
  const tests = files.filter(({ tag }) => tag === TEST);
170
- if (tests.some(({ path }) => TEST_RE.test(row.path) ? path !== row.path : !implementations.some((impl) => {
170
+ const bases = implementations.length > START ? implementations : allowed;
171
+ if (tests.some(({ path }) => TEST_RE.test(row.path) ? path !== row.path : !bases.some((impl) => {
171
172
  const stem = impl.replace(EXTENSION_RE, EMPTY);
172
173
  return path === `${stem}${TEST_SUFFIX}` || path.startsWith(`${stem}${TEST_DIRECTORY}`);
173
174
  }))) reject(NAMES.row, row.id);