@vortex-ai/cli 0.1.4 → 0.1.41

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.
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
- > @vortex-ai/cli@0.1.3 build /home/divyanshu/OSS/Personal_Projects/vortex/packages/cli
4
- > tsup src/index.ts --format cjs,esm --external @xenova/transformers
3
+ > @vortex-ai/cli@0.1.4 build /home/divyanshu/OSS/Personal_Projects/vortex/packages/cli
4
+ > tsup src/index.ts --format cjs,esm --external @xenova/transformers && cp ../db/prisma/schema.prisma ./schema.prisma
5
5
 
6
6
  CLI Building entry: src/index.ts
7
7
  CLI Using tsconfig: tsconfig.json
@@ -10,11 +10,11 @@ CLI Target: es2022
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  CJS dist/index.js 9.65 MB
13
- CJS ⚡️ Build success in 921ms
13
+ CJS ⚡️ Build success in 926ms
14
14
  ESM dist/dist-DADLXJO5.mjs 117.00 B
15
+ ESM dist/chunk-74T65LPR.mjs 3.73 KB
16
+ ESM dist/chunk-QY5F34UD.mjs 4.88 KB
15
17
  ESM dist/dist-QRHQQQC6.mjs 117.00 B
16
18
  ESM dist/chunk-6DZX6EAA.mjs 1.70 KB
17
- ESM dist/chunk-QY5F34UD.mjs 4.88 KB
18
- ESM dist/chunk-74T65LPR.mjs 3.73 KB
19
19
  ESM dist/index.mjs 9.64 MB
20
- ESM ⚡️ Build success in 922ms
20
+ ESM ⚡️ Build success in 931ms
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@vortex-ai/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.41",
4
4
  "description": "Vortex CLI - The main entry point",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
7
7
  "vortex": "./dist/index.js"
8
8
  },
9
9
  "scripts": {
10
- "build": "tsup src/index.ts --format cjs,esm --external @xenova/transformers",
10
+ "build": "tsup src/index.ts --format cjs,esm --external @xenova/transformers && cp ../db/prisma/schema.prisma ./schema.prisma",
11
11
  "dev": "tsx src/index.ts",
12
12
  "watch": "tsup src/index.ts --format cjs,esm --watch",
13
13
  "lint": "eslint .",
14
- "check-types": "tsc --noEmit"
14
+ "check-types": "tsc --noEmit",
15
+ "postinstall": "node -e \"const fs=require('fs'); if(fs.existsSync('./schema.prisma')){require('child_process').execSync('npx prisma generate --schema=./schema.prisma', {stdio:'inherit'})}\""
15
16
  },
16
17
  "dependencies": {
17
18
  "@octokit/rest": "^22.0.1",
@@ -19,6 +20,7 @@
19
20
  "@google/genai": "^2.5.0",
20
21
  "groq-sdk": "^1.2.1",
21
22
  "@prisma/client": "^5.14.0",
23
+ "prisma": "^5.14.0",
22
24
  "ignore": "^7.0.5",
23
25
  "minisearch": "^7.2.0",
24
26
  "@xenova/transformers": "^2.17.2",
package/schema.prisma ADDED
@@ -0,0 +1,70 @@
1
+ datasource db {
2
+ provider = "sqlite"
3
+ url = "file:./vortex.db"
4
+ }
5
+
6
+ generator client {
7
+ provider = "prisma-client-js"
8
+ }
9
+
10
+ model Chunk {
11
+ id String @id
12
+ file String
13
+ language String
14
+ name String
15
+ symbolPath String
16
+ kind String
17
+ parent String?
18
+ isExported Boolean
19
+ isAsync Boolean
20
+ signature String?
21
+ dependencies String // Stringified JSON array
22
+ startLine Int
23
+ endLine Int
24
+ hash String
25
+ content String
26
+ embedding String? // Stringified JSON array of floats
27
+ createdAt DateTime @default(now())
28
+ updatedAt DateTime @updatedAt
29
+ }
30
+
31
+ /// Persistent memory entries for architectural decisions, known bugs,
32
+ /// and review summaries. Enables Vortex to recall past context.
33
+ model Memory {
34
+ id String @id @default(cuid())
35
+ type String // "review_summary" | "architectural_decision" | "known_bug"
36
+ content String // The actual memory text
37
+ source String // e.g., "PR #42", "issue #15", "manual"
38
+ tags String // JSON array of tags for search
39
+ embedding String? // Stringified JSON array for vector search over memories
40
+ createdAt DateTime @default(now())
41
+ updatedAt DateTime @updatedAt
42
+ }
43
+
44
+ /// Historical review records for tracking past PR reviews.
45
+ /// Enables "Have we seen this pattern before?" queries.
46
+ model ReviewHistory {
47
+ id String @id @default(cuid())
48
+ prNumber Int
49
+ owner String
50
+ repo String
51
+ verdict String // SAFE_TO_MERGE | REQUIRES_CHANGES | NEEDS_DISCUSSION
52
+ summary String // Short summary of the review
53
+ findings String // JSON - full structured findings
54
+ createdAt DateTime @default(now())
55
+ }
56
+
57
+ /// Cache for LLM responses to reduce latency and API cost
58
+ model LLMCache {
59
+ key String @id
60
+ model String
61
+ response String
62
+
63
+ promptHash String
64
+ contextHash String
65
+ commitHash String?
66
+
67
+ createdAt DateTime @default(now())
68
+ lastAccessedAt DateTime @default(now())
69
+ hitCount Int @default(0)
70
+ }