feat: shared Help base, Google OAuth live, new personas, cleanup
- cortex/static/HELP.md: shared Help & Reference base served to all users - help.html: loads shared base + appends persona-specific HELP.md if present - inara/HELP.md: cleared (content moved to shared base) - Google OAuth: registered scott.idem@oneskyit.com; flow now working end-to-end - .gitignore: exclude home/**/sessions/ (runtime logs) - New personas tracked: home/holly/persona/donut/, home/scott/persona/developer/ - Removed orphans: holly/, personas/, cortex-holly.service - CLAUDE.md: updated current state and recently completed list to 2026-03-27 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -155,11 +155,25 @@
|
||||
|
||||
async function loadHelp() {
|
||||
try {
|
||||
const res = await fetch(`/files/HELP.md?${params}`);
|
||||
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
||||
const data = await res.json();
|
||||
// Always load the shared base from static
|
||||
const baseRes = await fetch('/static/HELP.md');
|
||||
if (!baseRes.ok) throw new Error(`HTTP ${baseRes.status}`);
|
||||
let markdown = await baseRes.text();
|
||||
|
||||
// Try to load persona-specific additions and append them
|
||||
try {
|
||||
const personaRes = await fetch(`/files/HELP.md?${params}`);
|
||||
if (personaRes.ok) {
|
||||
const personaData = await personaRes.json();
|
||||
const extra = (personaData.content || '').trim();
|
||||
if (extra) {
|
||||
markdown += '\n\n---\n\n## ' + persona.charAt(0).toUpperCase() + persona.slice(1) + ' Notes\n\n' + extra;
|
||||
}
|
||||
}
|
||||
} catch (_) { /* persona-specific file is optional */ }
|
||||
|
||||
const body = document.getElementById('help-body');
|
||||
body.innerHTML = marked.parse(data.content);
|
||||
body.innerHTML = marked.parse(markdown);
|
||||
body.querySelectorAll('a').forEach(a => {
|
||||
a.target = '_blank'; a.rel = 'noopener noreferrer';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user