From 046419faf400927fc8a3343e536ef5a48ab6cbfc Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Sun, 26 Jul 2026 23:29:46 +0800 Subject: [PATCH] fix(notes): keep archive helpers internal --- scripts/agent-note-tree.ts | 4 ++-- scripts/archived-agent-notes.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/agent-note-tree.ts b/scripts/agent-note-tree.ts index 29c51300a3..5cde40dacd 100644 --- a/scripts/agent-note-tree.ts +++ b/scripts/agent-note-tree.ts @@ -9,7 +9,7 @@ import { resolve, sep } from 'node:path' export const agentNoteRoot = resolve(import.meta.dirname, '../.agents/notes') /** The closed set of active Agent Note lifecycles (top-level folders under .agents/notes/). */ -export const AGENT_NOTE_LIFECYCLES = ['proposed', 'implemented', 'rejected'] as const +const AGENT_NOTE_LIFECYCLES = ['proposed', 'implemented', 'rejected'] as const /** * The closed set of Agent Note classes (nested folder under each lifecycle). Adding a @@ -19,7 +19,7 @@ export const AGENT_NOTE_LIFECYCLES = ['proposed', 'implemented', 'rejected'] as export const AGENT_NOTE_CLASSES = ['feature', 'bug-fix', 'simplification', 'architecture', 'process', 'testing'] as const /** Historical implemented notes live outside the active lifecycle tree. */ -export const AGENT_NOTE_ARCHIVE = 'archived' +const AGENT_NOTE_ARCHIVE = 'archived' /** Non-Agent Note Markdown allowed to sit directly at a lifecycle root. */ const ROOT_ALLOWLIST = new Set(['AGENTS.md', 'CLAUDE.md']) diff --git a/scripts/archived-agent-notes.ts b/scripts/archived-agent-notes.ts index 88a6607775..54ba70ddf0 100644 --- a/scripts/archived-agent-notes.ts +++ b/scripts/archived-agent-notes.ts @@ -11,7 +11,7 @@ export interface ArchiveManifest { } /** Hash one archived artifact independently of the repository's Git object format. */ -export function archiveContentHash(content: Buffer): string { +function archiveContentHash(content: Buffer): string { return `sha256:${createHash('sha256').update(content).digest('hex')}` }