agendex-cli 0.2.0 → 0.3.0
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/README.md +1 -0
- package/dist/cli.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -2835,6 +2835,7 @@ async function runWorker() {
|
|
|
2835
2835
|
const adapters = resolveAdapters(config.enabledAdapters);
|
|
2836
2836
|
setActiveAdapters(adapters);
|
|
2837
2837
|
console.log(`[agendex] daemon starting with ${config.enabledAdapters.length} adapters`);
|
|
2838
|
+
sendHeartbeat();
|
|
2838
2839
|
const syncQueue = [];
|
|
2839
2840
|
let syncing = false;
|
|
2840
2841
|
async function tryRefreshToken() {
|
|
@@ -2896,7 +2897,6 @@ async function runWorker() {
|
|
|
2896
2897
|
syncQueue.push(planToPayload(plan));
|
|
2897
2898
|
}
|
|
2898
2899
|
await processSyncQueue();
|
|
2899
|
-
sendHeartbeat();
|
|
2900
2900
|
setInterval(() => void sendHeartbeat(), CLI_DAEMON_HEARTBEAT_INTERVAL_MS);
|
|
2901
2901
|
startWatching((changedPlans) => {
|
|
2902
2902
|
for (const plan of changedPlans) {
|
|
@@ -3050,6 +3050,11 @@ async function main() {
|
|
|
3050
3050
|
logout();
|
|
3051
3051
|
return 0;
|
|
3052
3052
|
}
|
|
3053
|
+
case "configure": {
|
|
3054
|
+
const config = await loadOrInitConfig({ configureAdapters: true });
|
|
3055
|
+
writeStdout(`[agendex] adapters updated: ${config.enabledAdapters.join(", ")}`);
|
|
3056
|
+
return 0;
|
|
3057
|
+
}
|
|
3053
3058
|
case "sync": {
|
|
3054
3059
|
await syncAll();
|
|
3055
3060
|
return 0;
|
|
@@ -3079,6 +3084,7 @@ Usage:
|
|
|
3079
3084
|
agendex login Authenticate via browser OAuth (agendex.dev)
|
|
3080
3085
|
agendex login --url <url> Login to a self-hosted instance
|
|
3081
3086
|
agendex logout Clear stored cloud token
|
|
3087
|
+
agendex configure Select which agents/adapters to index
|
|
3082
3088
|
agendex sync One-shot scan + sync to cloud
|
|
3083
3089
|
agendex status Show current config state + daemon status
|
|
3084
3090
|
agendex help Show this help message
|