caveat-cli 0.1.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.
File without changes
@@ -0,0 +1,40 @@
1
+ PRAGMA user_version = 1;
2
+
3
+ CREATE TABLE entries (
4
+ rowid INTEGER PRIMARY KEY AUTOINCREMENT,
5
+ id TEXT NOT NULL,
6
+ source TEXT NOT NULL,
7
+ path TEXT NOT NULL,
8
+ title TEXT NOT NULL,
9
+ body TEXT NOT NULL,
10
+ frontmatter_json TEXT NOT NULL,
11
+ tags TEXT,
12
+ confidence TEXT,
13
+ visibility TEXT,
14
+ file_mtime TEXT NOT NULL,
15
+ indexed_at TEXT NOT NULL,
16
+ UNIQUE (source, id)
17
+ );
18
+
19
+ CREATE VIRTUAL TABLE entries_fts USING fts5(
20
+ id UNINDEXED, title, body, tags,
21
+ content='entries', content_rowid='rowid',
22
+ tokenize='trigram'
23
+ );
24
+
25
+ CREATE TRIGGER entries_ai AFTER INSERT ON entries BEGIN
26
+ INSERT INTO entries_fts(rowid, id, title, body, tags)
27
+ VALUES (new.rowid, new.id, new.title, new.body, new.tags);
28
+ END;
29
+
30
+ CREATE TRIGGER entries_ad AFTER DELETE ON entries BEGIN
31
+ INSERT INTO entries_fts(entries_fts, rowid, id, title, body, tags)
32
+ VALUES('delete', old.rowid, old.id, old.title, old.body, old.tags);
33
+ END;
34
+
35
+ CREATE TRIGGER entries_au AFTER UPDATE ON entries BEGIN
36
+ INSERT INTO entries_fts(entries_fts, rowid, id, title, body, tags)
37
+ VALUES('delete', old.rowid, old.id, old.title, old.body, old.tags);
38
+ INSERT INTO entries_fts(rowid, id, title, body, tags)
39
+ VALUES (new.rowid, new.id, new.title, new.body, new.tags);
40
+ END;
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "caveat-cli",
3
+ "version": "0.1.0",
4
+ "description": "External spec gotcha knowledge base CLI (markdown + SQLite FTS5 + MCP + Claude Code hooks)",
5
+ "keywords": [
6
+ "caveat",
7
+ "knowledge-base",
8
+ "gotcha",
9
+ "claude-code",
10
+ "mcp",
11
+ "cli"
12
+ ],
13
+ "license": "MIT",
14
+ "author": "kitepon-rgb",
15
+ "homepage": "https://github.com/kitepon-rgb/Caveat",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/kitepon-rgb/Caveat.git"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/kitepon-rgb/Caveat/issues"
22
+ },
23
+ "type": "module",
24
+ "engines": {
25
+ "node": ">=22.5"
26
+ },
27
+ "bin": {
28
+ "caveat": "./dist/caveat.js"
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "README.md",
33
+ "LICENSE"
34
+ ],
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "dependencies": {
39
+ "commander": "^13.0.0"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^22.0.0",
43
+ "tsup": "^8.3.0",
44
+ "tsx": "^4.19.0",
45
+ "typescript": "^5.7.0",
46
+ "vite": "^7",
47
+ "vitest": "^4.1.4",
48
+ "@caveat/web": "0.0.0",
49
+ "@caveat/core": "0.0.0",
50
+ "@caveat/mcp": "0.0.0"
51
+ },
52
+ "scripts": {
53
+ "build": "tsup",
54
+ "test": "vitest run",
55
+ "typecheck": "tsc --noEmit",
56
+ "dev": "tsx src/index.ts"
57
+ }
58
+ }