@ephemushroom/opencode-claude-mem 0.6.2 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ export interface CaptureStatus {
2
+ /** `problem`: nothing is capturing this checkout's sessions. */
3
+ readonly state: 'ok' | 'problem';
4
+ /** Empty when there is nothing to tell the user. */
5
+ readonly message: string;
6
+ }
7
+ /** Holds the official claude-mem files this package downloads, and the status files. */
8
+ export declare function cacheDirectory(env?: Record<string, string | undefined>, home?: string): string;
9
+ /** Names the status files of one checkout, however its path was spelled. */
10
+ export declare function statusKey(directory: string): string;
11
+ /**
12
+ * The newest status a running server part wrote for this checkout, preferring one from
13
+ * this process. Null when none is running: a status left by a package that was since
14
+ * removed from `opencode.json`, or by a process that exited, must not stay on screen.
15
+ */
16
+ export declare function readCaptureStatus(directory: string, dir?: string): CaptureStatus | null;
17
+ export interface CaptureStatusWriter {
18
+ readonly write: (status: CaptureStatus) => void;
19
+ /** Called when the server part is unloaded for the checkout while the host keeps running. */
20
+ readonly clear: () => void;
21
+ }
22
+ /**
23
+ * The status file of one `setup` call. Each has its own, so two servers on one checkout,
24
+ * or a reload that sets up before the old instance is disposed, never remove each other's.
25
+ */
26
+ export declare function captureStatusWriter(directory: string, dir?: string): CaptureStatusWriter;