mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
DotAI: addToHistory -> setHistory
This commit is contained in:
4 files changed
+113
-21
No files matched your search
@@ -38,6 +38,13 @@ export class ProjectsManager {
|
||||
|
||||
async createProject(name: string): Promise<Project> {
|
||||
const project = await this.cloneProject(name, GIT_TEMPLATE_URL);
|
||||
|
||||
try {
|
||||
await this.fs.mkdir(this.dir + `/${name}/.ai/history`, { recursive: true });
|
||||
} catch {
|
||||
// Directory might already exist
|
||||
}
|
||||
|
||||
return project;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user