chore(repo): drop unused npm/yarn lockfiles and fix inline FQNs

- Remove mateclaw-ui/package-lock.json and yarn.lock. This is a pnpm
  monorepo where pnpm-lock.yaml is the only lockfile; the npm/yarn locks
  were stray duplicates. Add a .gitignore rule so they are not committed
  again by mistake.
- SourceEvidenceLedger: reference Pattern/Matcher by their imported
  simple names instead of inline fully-qualified names.
This commit is contained in:
matevip 2026-06-21 10:06:28 +08:00
parent cb87569264
commit 1373b78b0a
4 changed files with 7 additions and 9701 deletions

5
.gitignore vendored
View File

@ -111,3 +111,8 @@ scripts/.*-sync-state.json
# Sandbox / external client work that lives in this directory
# but should not ship in the repo.
outputs/
# This is a pnpm monorepo — pnpm-lock.yaml is the only lockfile we track.
# Ignore stray npm/yarn lockfiles so they are not committed by mistake.
package-lock.json
yarn.lock

View File

@ -231,7 +231,7 @@ public record SourceEvidenceLedger(
// exists, insert one before the first source line so the frontend
// preprocessWikiCitations() can locate the source table.
if (additions.isEmpty() && !result.contains("来源:")) {
java.util.regex.Matcher firstSource = java.util.regex.Pattern
Matcher firstSource = Pattern
.compile("(?m)^\\[")
.matcher(result);
if (firstSource.find()) {
@ -303,7 +303,7 @@ public record SourceEvidenceLedger(
private static String replaceSourceLine(String answer, int index, String canonicalLine) {
Pattern pattern = Pattern.compile("(?m)^\\s*\\[" + index + "\\]\\s+.+$");
return pattern.matcher(answer).replaceFirst(
java.util.regex.Matcher.quoteReplacement(canonicalLine));
Matcher.quoteReplacement(canonicalLine));
}
private boolean hasFileName(String fileName) {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff