aidimag 1.0.13 → 1.0.14
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.
|
@@ -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…");
|