@hasna/mementos 0.17.2 → 0.17.3

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,33 @@
1
+ export declare function claudeHookCommand(): string;
2
+ export declare function planClaudeHook(home: string, command?: string): {
3
+ settingsPath: string;
4
+ resolvedSettingsPath: string;
5
+ legacyPath: string;
6
+ directory: {
7
+ path: string;
8
+ exists: boolean;
9
+ alias: boolean;
10
+ sha256: string;
11
+ };
12
+ directory_sha256: string;
13
+ before: Buffer<ArrayBufferLike> | null;
14
+ next: string;
15
+ changed: boolean;
16
+ settings_sha256: string;
17
+ legacy_hook_sha256: string | null;
18
+ command: string;
19
+ };
20
+ export declare function installClaudeHook(home: string, expected: {
21
+ settingsSha256: string;
22
+ legacyHookSha256?: string;
23
+ directorySha256?: string;
24
+ }, command?: string): {
25
+ changed: boolean;
26
+ settings_sha256: string;
27
+ backup?: undefined;
28
+ } | {
29
+ changed: boolean;
30
+ settings_sha256: string;
31
+ backup: string | null;
32
+ };
33
+ //# sourceMappingURL=claude-hook-install.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-hook-install.d.ts","sourceRoot":"","sources":["../../src/lib/claude-hook-install.ts"],"names":[],"mappings":"AAYA,wBAAgB,iBAAiB,IAAI,MAAM,CAI1C;AAuBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,SAAsB;;;;;;;;;;;;;;;;;EAmCzE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,OAAO,SAAsB;;;;;;;;EA+BvK"}
@@ -0,0 +1,9 @@
1
+ import { MementosClient } from "../sdk/index.js";
2
+ /** Read only the native conversation's user/assistant text, never tool payloads. */
3
+ export declare function claudeTranscript(context: Record<string, unknown>): string;
4
+ export declare function runClaudeStopHook(options?: {
5
+ stdin?: AsyncIterable<Uint8Array>;
6
+ stderr?: (text: string) => void;
7
+ client?: MementosClient;
8
+ }): Promise<number>;
9
+ //# sourceMappingURL=claude-stop-hook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-stop-hook.d.ts","sourceRoot":"","sources":["../../src/lib/claude-stop-hook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAiB,MAAM,iBAAiB,CAAC;AAoBhE,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAuCzE;AAED,wBAAsB,iBAAiB,CAAC,OAAO,GAAE;IAC/C,KAAK,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,MAAM,CAAC,EAAE,cAAc,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,CAAC,CAsCvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mementos",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Universal memory system for AI agents - CLI + MCP server + library API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",