加入手动完美像素入口;像素艺术勾选时自动补提示词约束 (#124)
Project CI / Repository checks (push) Successful in 1m0s
Project CI / Backend tests (push) Successful in 3m52s
Project CI / Native shell tests (push) Successful in 13m8s
Project CI / Frontend tests (push) Successful in 2m43s

Co-authored-by: 段舒康 <kdletters@qq.com>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/124
Reviewed-by: 段舒康 <kdletters@qq.com>
Co-authored-by: Linghong <ink29535@proton.me>
Co-committed-by: Linghong <ink29535@proton.me>
This commit was merged in pull request #124.
This commit is contained in:
2026-08-05 21:28:40 +08:00
committed by 段舒康
parent 62e0fe94ef
commit 8f19964e3f
72 changed files with 14838 additions and 660 deletions
+9 -2
View File
@@ -152,8 +152,15 @@ function parseArchiveObjectMembers(artifact) {
longNameTable = artifact.subarray(contentStart, contentEnd);
} else if (/^\/\d+$/u.test(rawName) && longNameTable) {
const nameOffset = Number.parseInt(rawName.slice(1), 10);
const nameEnd = longNameTable.indexOf(0x0a, nameOffset);
const resolvedEnd = nameEnd >= 0 ? nameEnd : longNameTable.length;
// GNU archives use newline-terminated names; MSVC COFF archives use NUL.
const candidateNameEnds = [
longNameTable.indexOf(0x00, nameOffset),
longNameTable.indexOf(0x0a, nameOffset),
].filter((nameEnd) => nameEnd >= 0);
const resolvedEnd =
candidateNameEnds.length > 0
? Math.min(...candidateNameEnds)
: longNameTable.length;
memberName = longNameTable
.subarray(nameOffset, resolvedEnd)
.toString('utf8')