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 CHANGED
@@ -16,6 +16,7 @@ bun install -g agendex-cli
16
16
  ```bash
17
17
  agendex login
18
18
  agendex login --url https://agendex.yourdomain.com
19
+ agendex configure
19
20
  agendex start
20
21
  agendex stop
21
22
  agendex sync
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agendex-cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Agendex CLI for login, sync, and daemon workflows",
5
5
  "homepage": "https://github.com/Tyru5/Agendex#readme",
6
6
  "repository": {