claude-self-reflect 2.3.0 ā 2.3.2
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.
package/installer/cli.js
CHANGED
|
@@ -95,8 +95,19 @@ async function doctor() {
|
|
|
95
95
|
console.log('\nš” Run "claude-self-reflect setup" to fix any issues');
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
const ASCII_ART = `
|
|
99
|
+
____ _____ _____ _ _____ ____ _____
|
|
100
|
+
| _ \\| ____| ___| | | ____/ ___|_ _|
|
|
101
|
+
| |_) | _| | |_ | | | _|| | | |
|
|
102
|
+
| _ <| |___| _| | |___| |__| |___ | |
|
|
103
|
+
|_| \\_\\_____|_| |_____|_____\\____| |_|
|
|
104
|
+
|
|
105
|
+
Memory that learns and forgets
|
|
106
|
+
`;
|
|
107
|
+
|
|
98
108
|
function help() {
|
|
99
|
-
console.log(
|
|
109
|
+
console.log(ASCII_ART);
|
|
110
|
+
console.log('\nClaude Self-Reflect - Perfect memory for Claude\n');
|
|
100
111
|
console.log('Usage: claude-self-reflect <command> [options]\n');
|
|
101
112
|
console.log('Commands:');
|
|
102
113
|
|
package/package.json
CHANGED
|
@@ -16,8 +16,9 @@ def main():
|
|
|
16
16
|
# Import just the current conversation
|
|
17
17
|
importer = VoyageConversationImporter()
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
# Example: Update these to your project path and file
|
|
20
|
+
project_path = os.path.expanduser("~/.claude/projects/your-project-name")
|
|
21
|
+
target_file = "your-conversation-id.jsonl"
|
|
21
22
|
|
|
22
23
|
print(f"Importing current conversation: {target_file}")
|
|
23
24
|
|
|
@@ -13,7 +13,7 @@ import requests
|
|
|
13
13
|
|
|
14
14
|
# Configuration
|
|
15
15
|
QDRANT_URL = "http://localhost:6333"
|
|
16
|
-
VOYAGE_API_KEY = os.getenv("VOYAGE_KEY"
|
|
16
|
+
VOYAGE_API_KEY = os.getenv("VOYAGE_KEY")
|
|
17
17
|
VOYAGE_API_URL = "https://api.voyageai.com/v1/embeddings"
|
|
18
18
|
|
|
19
19
|
@backoff.on_exception(backoff.expo, Exception, max_tries=3)
|
|
@@ -43,7 +43,8 @@ def import_conversation(file_path):
|
|
|
43
43
|
client = QdrantClient(url=QDRANT_URL)
|
|
44
44
|
|
|
45
45
|
# Determine collection name
|
|
46
|
-
|
|
46
|
+
# Example: Update to your project path
|
|
47
|
+
project_path = os.path.expanduser("~/your-project-path")
|
|
47
48
|
project_hash = hashlib.md5(project_path.encode()).hexdigest()[:8]
|
|
48
49
|
collection_name = f"conv_{project_hash}_voyage"
|
|
49
50
|
|
|
@@ -138,7 +139,8 @@ def import_conversation(file_path):
|
|
|
138
139
|
print(f"\nCollection {collection_name} now has {info.points_count} points")
|
|
139
140
|
|
|
140
141
|
def main():
|
|
141
|
-
|
|
142
|
+
# Example: Update to your conversation file path
|
|
143
|
+
file_path = os.path.expanduser("~/.claude/projects/your-project/your-conversation-id.jsonl")
|
|
142
144
|
|
|
143
145
|
if not os.path.exists(file_path):
|
|
144
146
|
print(f"File not found: {file_path}")
|