+8
-2
@@ -84,3 +84,7 @@ /** | ||
| } | ||
| this.db.exec(SCHEMA_SQL); | ||
| // Column migrations must run BEFORE SCHEMA_SQL: the schema creates indexes | ||
| // on migrated columns (e.g. idx_memories_cloud_synced), which fails with | ||
| // "no such column" if an old DB hasn't been ALTERed yet. On fresh DBs these | ||
| // ALTERs fail harmlessly ("no such table") and SCHEMA_SQL creates the | ||
| // current shape directly. | ||
| for (const m of MIGRATIONS) { | ||
@@ -91,6 +95,8 @@ try { | ||
| catch (err) { | ||
| // usually "duplicate column" = already applied; AIDIMAG_DEBUG=1 shows which | ||
| // usually "duplicate column" (already applied) or "no such table" | ||
| // (fresh DB); AIDIMAG_DEBUG=1 shows which | ||
| debugLog("schema migration (likely already applied)", err); | ||
| } | ||
| } | ||
| this.db.exec(SCHEMA_SQL); | ||
| // v6: evidence CHECK gains TICKET_REF — needs a one-time table rebuild | ||
@@ -97,0 +103,0 @@ if (prevVersion > 0 && prevVersion < 6) { |
+3
-3
| { | ||
| "name": "aidimag", | ||
| "version": "1.0.18", | ||
| "version": "1.0.19", | ||
| "description": "Persistent, verified memory for AI coding agents. CLI: dim.", | ||
@@ -20,4 +20,4 @@ "type": "module", | ||
| "bin": { | ||
| "dim": "./dist/cli/index.js", | ||
| "aidimag": "./dist/cli/index.js" | ||
| "dim": "dist/cli/index.js", | ||
| "aidimag": "dist/cli/index.js" | ||
| }, | ||
@@ -24,0 +24,0 @@ "main": "./dist/index.js", |
+4
-2
| <div align="center"> | ||
| <img src="assets/logo.svg" alt="AI Dimag Logo" width="120" height="120"> | ||
| <img src="https://raw.githubusercontent.com/AiDimag/aidimag/main/assets/logo.svg" alt="AI Dimag Logo" width="120" height="120"> | ||
@@ -10,2 +10,4 @@ # AI Dimag — Verified Memory for AI Coding Agents | ||
| [](https://www.npmjs.com/package/aidimag) | ||
| [](https://marketplace.visualstudio.com/items?itemName=aidimag.aidimag-vscode) | ||
| [](https://plugins.jetbrains.com/plugin/33030-ai-dimag) | ||
| [](./LICENSE) | ||
@@ -39,3 +41,3 @@ [](https://aidimag.com) | ||
| <div align="center"> | ||
| <img src="assets/hero-illustration.svg" alt="AI Dimag Flow" width="600"> | ||
| <img src="https://raw.githubusercontent.com/AiDimag/aidimag/main/assets/hero-illustration.svg" alt="AI Dimag Flow" width="600"> | ||
| </div> | ||
@@ -42,0 +44,0 @@ |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 3 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 3 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
628060
0.14%11797
0.05%191
1.06%