@alfe.ai/openclaw-google-chat 0.0.16 → 0.0.18

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/plugin2.cjs CHANGED
@@ -569,7 +569,6 @@ const plugin = {
569
569
  version: pkg.version,
570
570
  activate(api) {
571
571
  const log = api.logger;
572
- if (globalThis.__alfeGoogleChatActivated) return;
573
572
  const startService = async () => {
574
573
  if (globalThis.__alfeGoogleChatActivated) {
575
574
  log.debug("Google Chat plugin already activated — skipping duplicate");
@@ -587,14 +586,16 @@ const plugin = {
587
586
  apiUrl: cfg.apiUrl
588
587
  });
589
588
  } catch (err) {
589
+ globalThis.__alfeGoogleChatActivated = false;
590
590
  log.error(`Failed to resolve config: ${err instanceof Error ? err.message : String(err)}`);
591
591
  return;
592
592
  }
593
593
  let creds;
594
594
  try {
595
595
  creds = await client.getGoogleChatCredentials();
596
- } catch {
597
- log.info("Google Chat not connected — polling disabled");
596
+ } catch (err) {
597
+ globalThis.__alfeGoogleChatActivated = false;
598
+ log.info(`Google Chat not connected — polling disabled (${err instanceof Error ? err.message : String(err)})`);
598
599
  return;
599
600
  }
600
601
  const init = {
@@ -625,6 +626,7 @@ const plugin = {
625
626
  id: "google-chat-poller",
626
627
  start: () => {
627
628
  startService().catch((err) => {
629
+ globalThis.__alfeGoogleChatActivated = false;
628
630
  log.error(`Google Chat service start failed: ${err instanceof Error ? err.message : String(err)}`);
629
631
  });
630
632
  },
package/dist/plugin2.js CHANGED
@@ -569,7 +569,6 @@ const plugin = {
569
569
  version: pkg.version,
570
570
  activate(api) {
571
571
  const log = api.logger;
572
- if (globalThis.__alfeGoogleChatActivated) return;
573
572
  const startService = async () => {
574
573
  if (globalThis.__alfeGoogleChatActivated) {
575
574
  log.debug("Google Chat plugin already activated — skipping duplicate");
@@ -587,14 +586,16 @@ const plugin = {
587
586
  apiUrl: cfg.apiUrl
588
587
  });
589
588
  } catch (err) {
589
+ globalThis.__alfeGoogleChatActivated = false;
590
590
  log.error(`Failed to resolve config: ${err instanceof Error ? err.message : String(err)}`);
591
591
  return;
592
592
  }
593
593
  let creds;
594
594
  try {
595
595
  creds = await client.getGoogleChatCredentials();
596
- } catch {
597
- log.info("Google Chat not connected — polling disabled");
596
+ } catch (err) {
597
+ globalThis.__alfeGoogleChatActivated = false;
598
+ log.info(`Google Chat not connected — polling disabled (${err instanceof Error ? err.message : String(err)})`);
598
599
  return;
599
600
  }
600
601
  const init = {
@@ -625,6 +626,7 @@ const plugin = {
625
626
  id: "google-chat-poller",
626
627
  start: () => {
627
628
  startService().catch((err) => {
629
+ globalThis.__alfeGoogleChatActivated = false;
628
630
  log.error(`Google Chat service start failed: ${err instanceof Error ? err.message : String(err)}`);
629
631
  });
630
632
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-google-chat",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "OpenClaw Google Chat plugin — DM polling and auto-reply via connected Google account",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",
@@ -27,8 +27,8 @@
27
27
  "openclaw.plugin.json"
28
28
  ],
29
29
  "dependencies": {
30
- "@alfe.ai/agent-api-client": "^0.3.0",
31
- "@alfe.ai/config": "^0.1.0"
30
+ "@alfe.ai/agent-api-client": "^0.4.0",
31
+ "@alfe.ai/config": "^0.2.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "openclaw": ">=2026.3.0"
@@ -39,6 +39,17 @@
39
39
  }
40
40
  },
41
41
  "license": "UNLICENSED",
42
+ "homepage": "https://alfe.ai",
43
+ "author": "Alfe (https://alfe.ai)",
44
+ "keywords": [
45
+ "alfe",
46
+ "ai-agents",
47
+ "agent",
48
+ "llm",
49
+ "openclaw",
50
+ "plugin",
51
+ "sdk"
52
+ ],
42
53
  "scripts": {
43
54
  "build": "tsdown",
44
55
  "dev": "tsdown --watch",