@alfe.ai/openclaw-google-chat 0.0.1 → 0.0.2

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.
@@ -0,0 +1,41 @@
1
+ //#region src/google-chat-channel.ts
2
+ function createGoogleChatChannelPlugin() {
3
+ return {
4
+ id: "google-chat",
5
+ meta: {
6
+ id: "google-chat",
7
+ label: "Google Chat",
8
+ description: "Google Workspace Chat — spaces, DMs, and threads",
9
+ systemImage: "google-chat"
10
+ },
11
+ capabilities: {
12
+ chatTypes: ["direct", "group"],
13
+ threads: true,
14
+ reactions: true,
15
+ edit: false,
16
+ unsend: false,
17
+ reply: true,
18
+ media: false,
19
+ nativeCommands: false
20
+ },
21
+ outbound: { deliveryMode: "gateway" },
22
+ config: {
23
+ isEnabled() {
24
+ return true;
25
+ },
26
+ isConfigured() {
27
+ return true;
28
+ },
29
+ listAccountIds() {
30
+ return ["default"];
31
+ }
32
+ }
33
+ };
34
+ }
35
+ //#endregion
36
+ Object.defineProperty(exports, "createGoogleChatChannelPlugin", {
37
+ enumerable: true,
38
+ get: function() {
39
+ return createGoogleChatChannelPlugin;
40
+ }
41
+ });
@@ -0,0 +1,40 @@
1
+ //#region src/google-chat-channel.d.ts
2
+ /**
3
+ * Google Chat channel registration for OpenClaw.
4
+ *
5
+ * Follows the same ChannelPlugin shape as alfe-channel.ts in openclaw-chat.
6
+ * This is metadata-only — no transport. The backend service handles all messaging.
7
+ */
8
+ interface ChannelMeta {
9
+ id: string;
10
+ label: string;
11
+ description: string;
12
+ systemImage?: string;
13
+ }
14
+ interface ChannelCapabilities {
15
+ chatTypes: string[];
16
+ threads: boolean;
17
+ reactions: boolean;
18
+ edit: boolean;
19
+ unsend: boolean;
20
+ reply: boolean;
21
+ media: boolean;
22
+ nativeCommands: boolean;
23
+ }
24
+ interface ChannelPlugin {
25
+ id: string;
26
+ meta: ChannelMeta;
27
+ capabilities: ChannelCapabilities;
28
+ outbound: {
29
+ deliveryMode: string;
30
+ };
31
+ config: {
32
+ isEnabled(): boolean;
33
+ isConfigured(): boolean;
34
+ listAccountIds(): string[];
35
+ };
36
+ }
37
+ declare function createGoogleChatChannelPlugin(): ChannelPlugin;
38
+ //#endregion
39
+ export { createGoogleChatChannelPlugin as t };
40
+ //# sourceMappingURL=google-chat-channel.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-chat-channel.d.cts","names":[],"sources":["../src/google-chat-channel.ts"],"mappings":";;;AAOqB;AAOQ;;;UAPnB,WAAA,CAqBM;EAAmB,EAAA,EAAA,MAAA;EASnB,KAAA,EAAA,MAAA;;;;UAvBN,mBAAA;;;;;;;;;;UAWA,aAAA;;QAEF;gBACQ;;;;;;;;;;iBASA,6BAAA,CAAA,GAAiC"}
package/dist/index.cjs ADDED
@@ -0,0 +1,3 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_google_chat_channel = require("./google-chat-channel.cjs");
3
+ exports.createGoogleChatChannelPlugin = require_google_chat_channel.createGoogleChatChannelPlugin;
@@ -0,0 +1,12 @@
1
+ import { t as createGoogleChatChannelPlugin } from "./google-chat-channel.cjs";
2
+
3
+ //#region src/types.d.ts
4
+ /** OpenClaw config shape for the Google Chat channel. */
5
+ interface GoogleChatChannelConfig {
6
+ workspaceDomain?: string;
7
+ email?: string;
8
+ }
9
+ //# sourceMappingURL=types.d.ts.map
10
+ //#endregion
11
+ export { type GoogleChatChannelConfig, createGoogleChatChannelPlugin };
12
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;;UACiB,uBAAA;;EAAA,KAAA,CAAA,EAAA,MAAA"}
@@ -0,0 +1,28 @@
1
+ const require_google_chat_channel = require("./google-chat-channel.cjs");
2
+ //#region src/plugin.ts
3
+ /**
4
+ * @alfe.ai/openclaw-google-chat — OpenClaw Google Chat channel plugin.
5
+ *
6
+ * Registers the 'google-chat' channel with OpenClaw. This is a lightweight
7
+ * metadata-only plugin — all message transport is handled by the backend
8
+ * Google service (Lambda) and Google relay (Fly.io).
9
+ */
10
+ const plugin = {
11
+ id: "@alfe.ai/openclaw-google-chat",
12
+ name: "Google Chat Plugin",
13
+ description: "Google Chat channel — spaces, DMs, and threads via Google Workspace",
14
+ version: "0.0.1",
15
+ activate(api) {
16
+ const log = api.logger;
17
+ log.info("Google Chat plugin registering...");
18
+ const googleChatChannel = require_google_chat_channel.createGoogleChatChannelPlugin();
19
+ api.registerChannel(googleChatChannel);
20
+ log.info(`Registered channel: ${googleChatChannel.id}`);
21
+ log.info("Google Chat plugin registered");
22
+ },
23
+ deactivate(api) {
24
+ api.logger.info("Google Chat plugin deactivated");
25
+ }
26
+ };
27
+ //#endregion
28
+ module.exports = plugin;
@@ -0,0 +1,25 @@
1
+ import { t as createGoogleChatChannelPlugin } from "./google-chat-channel.cjs";
2
+
3
+ //#region src/plugin.d.ts
4
+
5
+ interface PluginLogger {
6
+ info(msg: string, ...args: unknown[]): void;
7
+ warn(msg: string, ...args: unknown[]): void;
8
+ error(msg: string, ...args: unknown[]): void;
9
+ debug(msg: string, ...args: unknown[]): void;
10
+ }
11
+ interface PluginApi {
12
+ logger: PluginLogger;
13
+ registerChannel(channel: ReturnType<typeof createGoogleChatChannelPlugin>): void;
14
+ }
15
+ declare const plugin: {
16
+ id: string;
17
+ name: string;
18
+ description: string;
19
+ version: string;
20
+ activate(api: PluginApi): void;
21
+ deactivate(api: PluginApi): void;
22
+ };
23
+ //#endregion
24
+ export { plugin as default };
25
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;UAUU,YAAA,CASiB;EAAU,IAAA,CAAA,GAAA,EAAA,MAAA,EAAA,GAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA;EAG/B,IAAA,CAAA,GAAA,EAoBL,MAAA,EAAA,GAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA;EAAA,KAAA,CAAA,GAAA,EAAA,MAAA,EAAA,GAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA;OAde,CAAA,GAAA,EAAA,MAAA,EAAA,GAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA;;UAXN,SAAA,CAsBiB;UArBjB;2BACiB,kBAAkB;;cAGvC;;;;;gBAMU;kBAWE"}
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-google-chat",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "OpenClaw Google Chat channel plugin — registers Google Chat as a messaging channel",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "import": "./dist/index.js",
11
- "types": "./dist/index.d.ts"
10
+ "types": "./dist/index.d.ts",
11
+ "require": "./dist/index.cjs",
12
+ "import": "./dist/index.js"
12
13
  },
13
14
  "./plugin": {
14
- "import": "./dist/plugin.js",
15
- "types": "./dist/plugin.d.ts"
15
+ "types": "./dist/plugin.d.ts",
16
+ "require": "./dist/plugin.cjs",
17
+ "import": "./dist/plugin.js"
16
18
  }
17
19
  },
18
20
  "openclaw": {