Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LifeOS/install/LIFEOS/PULSE/modules/tab-freshness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function resolveSpec(spec: SourceSpec): ResolvedSource[] {
const out: ResolvedSource[] = []
let entries: string[] = []
try {
entries = readdirSync(spec.path).filter((e) => e.endsWith(".md") || e.endsWith(".json") || e.endsWith(".yaml"))
entries = readdirSync(spec.path).filter((e) => e.endsWith(".md") || e.endsWith(".json") || e.endsWith(".yaml") || e.endsWith(".yml"))
} catch {
// unreadable dir — record as missing
return [{ name: spec.name, path: spec.path, exists: false, mtime: null }]
Expand Down
2 changes: 1 addition & 1 deletion LifeOS/install/LIFEOS/TOOLS/DocCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function findDocs(): string[] {
const secDir = join(LIFEOS_DIR, 'USER', 'SECURITY');
try {
for (const f of readdirSync(secDir)) {
if (f.endsWith('.md') || f.endsWith('.yaml')) docs.push(join(secDir, f));
if (f.endsWith('.md') || f.endsWith('.yaml') || f.endsWith('.yml')) docs.push(join(secDir, f));
}
} catch { /* */ }

Expand Down
7 changes: 5 additions & 2 deletions LifeOS/install/skills/Evals/Tools/EvalRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ export function buildLiveSystemPrompt(): string {

function resolveSuite(name: string): string | null {
for (const dir of [USER_SUITES, SKILL_SUITES]) {
for (const p of [join(dir, `${name}.yaml`), join(dir, 'Regression', `${name}.yaml`), join(dir, 'Capability', `${name}.yaml`)]) {
if (existsSync(p)) return p;
// .yaml first, so an existing .yaml keeps winning if both somehow exist.
for (const ext of ['yaml', 'yml']) {
for (const p of [join(dir, `${name}.${ext}`), join(dir, 'Regression', `${name}.${ext}`), join(dir, 'Capability', `${name}.${ext}`)]) {
if (existsSync(p)) return p;
}
}
}
return null;
Expand Down
2 changes: 1 addition & 1 deletion LifeOS/install/skills/Evals/Tools/SuiteManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function listSuites(type?: EvalType): EvalSuite[] {
if (!existsSync(dirPath)) continue;

for (const file of readdirSync(dirPath)) {
if (file.endsWith('.yaml')) {
if (file.endsWith('.yaml') || file.endsWith('.yml')) {
const suite = parseYaml(readFileSync(join(dirPath, file), 'utf-8')) as EvalSuite;
suites.push(suite);
}
Expand Down