This commit is contained in:
Vendored
+1
@@ -19,6 +19,7 @@ const IDENTITY_FILES = new Set([
|
||||
'bootstrap.md',
|
||||
'heartbeat.md',
|
||||
'tools.md',
|
||||
'persona.md',
|
||||
]);
|
||||
|
||||
function isIdentityPath(filePath) {
|
||||
|
||||
+2
@@ -26,12 +26,14 @@ const VOICE_WORKSPACE_FILES = [
|
||||
'BOOTSTRAP.md',
|
||||
'TOOLS.md',
|
||||
'HEARTBEAT.md',
|
||||
'PERSONA.md',
|
||||
];
|
||||
|
||||
function includeWorkspaceFile(name, text) {
|
||||
const body = String(text || '').trim();
|
||||
if (!body) return false;
|
||||
if (name === 'BOOTSTRAP.md' && /^# completed/i.test(body)) return false;
|
||||
if (name === 'PERSONA.md' && !body.replace(/^# PERSONA\.md\s*/i, '').trim()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user