aidimag 1.0.13 → 1.0.15
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/LICENSE +2 -2
- package/dist/cli/commands/memory.js +9 -3
- package/dist/cli/commands/sync.js +1 -0
- package/package.json +5 -3
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Elastic License 2.0
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 Anup Khanal
|
|
4
4
|
|
|
5
5
|
## Acceptance
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ to applicable law.
|
|
|
33
33
|
|
|
34
34
|
If your organization has more than 10 employees or users (including all affiliates
|
|
35
35
|
and entities under common control), you must obtain a commercial license from the
|
|
36
|
-
licensor. Contact: https://github.com/
|
|
36
|
+
licensor. Contact: https://github.com/anup-khanal/aidimag/issues (commercial licensing inquiries)
|
|
37
37
|
|
|
38
38
|
For determining the user count, "users" includes anyone who:
|
|
39
39
|
- Runs commands using the software
|
|
@@ -24,10 +24,16 @@ export function registerMemoryCommands(program) {
|
|
|
24
24
|
// keep the DB out of git by default (team-sync mode comes later)
|
|
25
25
|
const gitignore = path.join(dir, ".gitignore");
|
|
26
26
|
if (!existsSync(gitignore)) {
|
|
27
|
-
writeFileSync(gitignore, "memory.db\nmemory.db-wal\nmemory.db-shm\nknowledge/\n");
|
|
27
|
+
writeFileSync(gitignore, "memory.db\nmemory.db-wal\nmemory.db-shm\nknowledge/\nconfig.json\n");
|
|
28
28
|
}
|
|
29
|
-
else
|
|
30
|
-
|
|
29
|
+
else {
|
|
30
|
+
const content = readFileSync(gitignore, "utf8");
|
|
31
|
+
if (!content.includes("knowledge/")) {
|
|
32
|
+
appendFileSync(gitignore, "knowledge/\n");
|
|
33
|
+
}
|
|
34
|
+
if (!content.includes("config.json")) {
|
|
35
|
+
appendFileSync(gitignore, "config.json\n");
|
|
36
|
+
}
|
|
31
37
|
}
|
|
32
38
|
// knowledge inbox: a drop folder for project docs (summaries/backups live in .aidimag/)
|
|
33
39
|
const knowledgeInbox = path.join(root, resolveKnowledgeConfig(root).folder);
|
|
@@ -176,6 +176,7 @@ export function registerSyncCommands(program) {
|
|
|
176
176
|
const start = await startDeviceLogin(server, requestedBrain);
|
|
177
177
|
const approveUrl = `${start.verification_uri}?code=${encodeURIComponent(start.user_code)}`;
|
|
178
178
|
console.log(`\nTo approve this device, open:\n\n ${approveUrl}\n\nand confirm the code: ${start.user_code}\n`);
|
|
179
|
+
console.log(`Debug: expires_in=${start.expires_in}s, interval=${start.interval}s, requested_brain=${requestedBrain ?? "none"}\n`);
|
|
179
180
|
if (opts.open)
|
|
180
181
|
await openBrowser(approveUrl);
|
|
181
182
|
console.log("Waiting for approval…");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aidimag",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Persistent, verified memory for AI coding agents. CLI: dim.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
64
|
-
"better-sqlite3": "^11.
|
|
64
|
+
"better-sqlite3": "^11.10.0",
|
|
65
65
|
"commander": "^12.0.0",
|
|
66
66
|
"mammoth": "^1.11.0",
|
|
67
67
|
"pdf-parse": "^1.1.1",
|
|
@@ -76,6 +76,8 @@
|
|
|
76
76
|
"vitepress": "2.0.0-alpha.17"
|
|
77
77
|
},
|
|
78
78
|
"overrides": {
|
|
79
|
-
"esbuild": "^0.28.1"
|
|
79
|
+
"esbuild": "^0.28.1",
|
|
80
|
+
"@hono/node-server": "^2.0.5",
|
|
81
|
+
"tar-stream": "^3.1.7"
|
|
80
82
|
}
|
|
81
83
|
}
|