Merge remote-tracking branch 'origin/master' into worktree/archive-agent-notes-20260726

# Conflicts:
#	.agents/notes/archived/process/2026-07-23-browser-demo-gif-recording.i18n.yaml
This commit is contained in:
Tianyi Cui
2026-07-27 00:53:07 +08:00
79 changed files with 2152 additions and 182 deletions

View File

@@ -8,6 +8,7 @@ import {
validateArchiveManifestExtension,
type ArchiveManifest,
} from './archived-agent-notes.ts'
import { isArchivedAgentNotePath } from './repo-files.ts'
function fixture(): Map<string, Buffer> {
const base = '2026-07-26-example'
@@ -22,6 +23,12 @@ function fixture(): Map<string, Buffer> {
}
describe('archived Agent Notes', () => {
it('recognizes archived paths with POSIX and Windows separators', () => {
expect(isArchivedAgentNotePath('.agents/notes/archived/process/example.md')).toBe(true)
expect(isArchivedAgentNotePath('.agents\\notes\\archived\\process\\example.md')).toBe(true)
expect(isArchivedAgentNotePath('.agents/notes/implemented/process/example.md')).toBe(false)
})
it('accepts one complete implemented triplet with matching archive metadata', () => {
expect(validateArchiveArtifacts(fixture())).toEqual([])
})