mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-27 11:20:42 +01:00
fix(cli): harden managed lifecycle coordination
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
b45f2c0b9e
commit
3e9214cd6d
8 files changed
+143
-22
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { resolvePaperclipHomeDir } from "../home-paths.js";
|
||||
import { resolvePaperclipInstanceRoot } from "../home-paths.js";
|
||||
|
||||
export const HOT_RESTART_INTENT_FILENAME = "hot-restart-intent.json";
|
||||
export const HOT_RESTART_REPORT_FILENAME = "hot-restart-report.json";
|
||||
@@ -56,7 +56,7 @@ export type HotRestartReport = {
|
||||
};
|
||||
|
||||
function resolveHotRestartPath(filename: string, homeDir?: string) {
|
||||
return path.join(resolvePaperclipHomeDir(homeDir), filename);
|
||||
return path.join(resolvePaperclipInstanceRoot({ homeDir }), filename);
|
||||
}
|
||||
|
||||
export function resolveHotRestartIntentPath(homeDir?: string) {
|
||||
|
||||
Reference in new issue
Block a user