mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-15 03:55:09 +08:00
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:
parent
cb87569264
commit
1373b78b0a
5
.gitignore
vendored
5
.gitignore
vendored
@ -111,3 +111,8 @@ scripts/.*-sync-state.json
|
|||||||
# Sandbox / external client work that lives in this directory
|
# Sandbox / external client work that lives in this directory
|
||||||
# but should not ship in the repo.
|
# but should not ship in the repo.
|
||||||
outputs/
|
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
|
||||||
|
|||||||
@ -231,7 +231,7 @@ public record SourceEvidenceLedger(
|
|||||||
// exists, insert one before the first source line so the frontend
|
// exists, insert one before the first source line so the frontend
|
||||||
// preprocessWikiCitations() can locate the source table.
|
// preprocessWikiCitations() can locate the source table.
|
||||||
if (additions.isEmpty() && !result.contains("来源:")) {
|
if (additions.isEmpty() && !result.contains("来源:")) {
|
||||||
java.util.regex.Matcher firstSource = java.util.regex.Pattern
|
Matcher firstSource = Pattern
|
||||||
.compile("(?m)^\\[")
|
.compile("(?m)^\\[")
|
||||||
.matcher(result);
|
.matcher(result);
|
||||||
if (firstSource.find()) {
|
if (firstSource.find()) {
|
||||||
@ -303,7 +303,7 @@ public record SourceEvidenceLedger(
|
|||||||
private static String replaceSourceLine(String answer, int index, String canonicalLine) {
|
private static String replaceSourceLine(String answer, int index, String canonicalLine) {
|
||||||
Pattern pattern = Pattern.compile("(?m)^\\s*\\[" + index + "\\]\\s+.+$");
|
Pattern pattern = Pattern.compile("(?m)^\\s*\\[" + index + "\\]\\s+.+$");
|
||||||
return pattern.matcher(answer).replaceFirst(
|
return pattern.matcher(answer).replaceFirst(
|
||||||
java.util.regex.Matcher.quoteReplacement(canonicalLine));
|
Matcher.quoteReplacement(canonicalLine));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasFileName(String fileName) {
|
private boolean hasFileName(String fileName) {
|
||||||
|
|||||||
6634
mateclaw-ui/package-lock.json
generated
6634
mateclaw-ui/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user