claude-prmem 1.0.0

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,15 @@
1
+ {
2
+ "name": "prmem-runtime",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "dependencies": {
6
+ "@anthropic-ai/sdk": "^0.39.0",
7
+ "@huggingface/transformers": "^3.4.1",
8
+ "better-sqlite3": "^11.8.1",
9
+ "node-addon-api": "^8.3.0",
10
+ "openai": "^4.82.0"
11
+ },
12
+ "overrides": {
13
+ "sharp": "0.33.5"
14
+ }
15
+ }
@@ -0,0 +1,30 @@
1
+ CREATE TABLE IF NOT EXISTS pull_requests(
2
+ id INTEGER PRIMARY KEY,
3
+ pr_number INTEGER UNIQUE NOT NULL,
4
+ pr_link TEXT NOT NULL,
5
+ ticket_url TEXT,
6
+ title TEXT NOT NULL,
7
+ summary TEXT,
8
+ embedding TEXT,
9
+ merged_at TEXT NOT NULL,
10
+ created_at TEXT DEFAULT (datetime('now'))
11
+ );
12
+
13
+ CREATE TABLE IF NOT EXISTS pr_commits(
14
+ pr_id INTEGER REFERENCES pull_requests(id) ON DELETE CASCADE,
15
+ commit_hash TEXT NOT NULL,
16
+ commit_message TEXT,
17
+ PRIMARY KEY (pr_id, commit_hash)
18
+ );
19
+
20
+ CREATE TABLE IF NOT EXISTS pr_files(
21
+ pr_id INTEGER REFERENCES pull_requests(id) ON DELETE CASCADE,
22
+ file_path TEXT NOT NULL,
23
+ change_type TEXT,
24
+ PRIMARY KEY (pr_id, file_path)
25
+ );
26
+
27
+ CREATE INDEX IF NOT EXISTS idx_pr_ticket ON pull_requests(ticket_url);
28
+ CREATE INDEX IF NOT EXISTS idx_pr_merged_at ON pull_requests(merged_at);
29
+
30
+ PRAGMA foreign_keys = ON;