Add Nostr repos list

This commit is contained in:
Alex Gleason committed 2025-07-30 15:01:59 -05:00
1 parent 2ff99b7116
commit 56863d5672
7 files changed
+444 -9

No files matched your search

+19
View File
@@ -262,6 +262,25 @@ export class ProjectsManager {
}
}
async getNostrRepoAddress(projectId: string): Promise<string | null> {
try {
const projectPath = `${this.dir}/${projectId}`;
const config = await git.getConfig({
fs: this.fs,
dir: projectPath,
path: 'nostr.repo',
});
return config || null;
} catch {
return null;
}
}
async isNostrEnabled(projectId: string): Promise<boolean> {
const naddr = await this.getNostrRepoAddress(projectId);
return naddr !== null;
}
private async updateProjectLastModified(projectId: string): Promise<void> {
try {
const projectFile = `${this.dir}/${projectId}/.git/project.json`;