conare 0.6.7 → 0.6.8
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/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -716,11 +716,11 @@ async function getBillingStatus(apiKey) {
|
|
|
716
716
|
return null;
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
async function recordSyncCheckIn(apiKey, source = "cli", memoryDelta = 0) {
|
|
719
|
+
async function recordSyncCheckIn(apiKey, source = "cli", memoryDelta = 0, choices) {
|
|
720
720
|
try {
|
|
721
721
|
const data = await apiRequest("/api/sync/check-in", apiKey, {
|
|
722
722
|
method: "POST",
|
|
723
|
-
body: JSON.stringify({ source, memoryDelta })
|
|
723
|
+
body: JSON.stringify({ source, memoryDelta, ...choices })
|
|
724
724
|
});
|
|
725
725
|
return typeof data.lastSyncAt === "number" ? data.lastSyncAt : null;
|
|
726
726
|
} catch {
|
|
@@ -5426,6 +5426,12 @@ Nothing new to index.`);
|
|
|
5426
5426
|
syncSpinner.stop(`Could not set up background sync: ${e2.message}`);
|
|
5427
5427
|
}
|
|
5428
5428
|
}
|
|
5429
|
+
if (interactiveMode) {
|
|
5430
|
+
await recordSyncCheckIn(apiKey, "cli", 0, {
|
|
5431
|
+
saveAmount: getSaveAmount(),
|
|
5432
|
+
syncInterval: shouldSync ? opts.syncInterval : undefined
|
|
5433
|
+
});
|
|
5434
|
+
}
|
|
5429
5435
|
}
|
|
5430
5436
|
const targetLabels = new Map(MCP_TARGETS.map((t) => [t.id, t.label]));
|
|
5431
5437
|
const configuredTools = selectedTargets.filter((t) => t !== "conare-skill").map((t) => targetLabels.get(t) ?? t);
|