@alfe.ai/openclaw-google-chat 0.0.1 → 0.0.3
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/google-chat-channel.cjs +81 -0
- package/dist/google-chat-channel.d.cts +79 -0
- package/dist/google-chat-channel.d.cts.map +1 -0
- package/dist/google-chat-channel.d.ts +43 -4
- package/dist/google-chat-channel.d.ts.map +1 -1
- package/dist/google-chat-channel.js +44 -4
- package/dist/google-chat-channel.js.map +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/plugin.cjs +28 -0
- package/dist/plugin.d.cts +25 -0
- package/dist/plugin.d.cts.map +1 -0
- package/package.json +7 -5
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
//#region src/google-chat-channel.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
|
+
* All config methods return sensible defaults because Google Chat is entirely
|
|
9
|
+
* backend-managed — there is no local openclaw.yaml config for this channel.
|
|
10
|
+
*/
|
|
11
|
+
const DEFAULT_ACCOUNT_ID = "default";
|
|
12
|
+
function createGoogleChatChannelPlugin() {
|
|
13
|
+
return {
|
|
14
|
+
id: "google-chat",
|
|
15
|
+
meta: {
|
|
16
|
+
id: "google-chat",
|
|
17
|
+
label: "Google Chat",
|
|
18
|
+
description: "Google Workspace Chat — spaces, DMs, and threads",
|
|
19
|
+
systemImage: "google-chat"
|
|
20
|
+
},
|
|
21
|
+
capabilities: {
|
|
22
|
+
chatTypes: ["direct", "group"],
|
|
23
|
+
threads: true,
|
|
24
|
+
reactions: true,
|
|
25
|
+
edit: false,
|
|
26
|
+
unsend: false,
|
|
27
|
+
reply: true,
|
|
28
|
+
media: false,
|
|
29
|
+
nativeCommands: false
|
|
30
|
+
},
|
|
31
|
+
outbound: { deliveryMode: "gateway" },
|
|
32
|
+
config: {
|
|
33
|
+
listAccountIds() {
|
|
34
|
+
return [DEFAULT_ACCOUNT_ID];
|
|
35
|
+
},
|
|
36
|
+
resolveAccount(_cfg, accountId) {
|
|
37
|
+
return {
|
|
38
|
+
accountId: accountId ?? DEFAULT_ACCOUNT_ID,
|
|
39
|
+
enabled: true,
|
|
40
|
+
allowFrom: []
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
defaultAccountId() {
|
|
44
|
+
return DEFAULT_ACCOUNT_ID;
|
|
45
|
+
},
|
|
46
|
+
isEnabled(account) {
|
|
47
|
+
return account.enabled;
|
|
48
|
+
},
|
|
49
|
+
isConfigured() {
|
|
50
|
+
return true;
|
|
51
|
+
},
|
|
52
|
+
describeAccount(account) {
|
|
53
|
+
return {
|
|
54
|
+
accountId: account.accountId,
|
|
55
|
+
enabled: account.enabled,
|
|
56
|
+
configured: true,
|
|
57
|
+
dmPolicy: account.dmPolicy
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
resolveAllowFrom() {
|
|
61
|
+
return [];
|
|
62
|
+
},
|
|
63
|
+
resolveDefaultTo() {}
|
|
64
|
+
},
|
|
65
|
+
setup: {
|
|
66
|
+
resolveAccountId(params) {
|
|
67
|
+
return params.accountId ?? DEFAULT_ACCOUNT_ID;
|
|
68
|
+
},
|
|
69
|
+
applyAccountConfig(params) {
|
|
70
|
+
return params.cfg;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
Object.defineProperty(exports, "createGoogleChatChannelPlugin", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function() {
|
|
79
|
+
return createGoogleChatChannelPlugin;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
* All config methods return sensible defaults because Google Chat is entirely
|
|
9
|
+
* backend-managed — there is no local openclaw.yaml config for this channel.
|
|
10
|
+
*/
|
|
11
|
+
interface ResolvedAccount {
|
|
12
|
+
accountId: string;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
allowFrom: string[];
|
|
15
|
+
defaultTo?: string;
|
|
16
|
+
dmPolicy?: string;
|
|
17
|
+
}
|
|
18
|
+
interface ChannelMeta {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
description: string;
|
|
22
|
+
systemImage?: string;
|
|
23
|
+
}
|
|
24
|
+
interface ChannelCapabilities {
|
|
25
|
+
chatTypes: string[];
|
|
26
|
+
threads: boolean;
|
|
27
|
+
reactions: boolean;
|
|
28
|
+
edit: boolean;
|
|
29
|
+
unsend: boolean;
|
|
30
|
+
reply: boolean;
|
|
31
|
+
media: boolean;
|
|
32
|
+
nativeCommands: boolean;
|
|
33
|
+
}
|
|
34
|
+
interface ChannelConfig {
|
|
35
|
+
listAccountIds(cfg: Record<string, unknown>): string[];
|
|
36
|
+
resolveAccount(cfg: Record<string, unknown>, accountId?: string | null): ResolvedAccount;
|
|
37
|
+
defaultAccountId(): string;
|
|
38
|
+
isEnabled(account: ResolvedAccount): boolean;
|
|
39
|
+
isConfigured(): boolean;
|
|
40
|
+
describeAccount(account: ResolvedAccount): {
|
|
41
|
+
accountId: string;
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
configured: boolean;
|
|
44
|
+
dmPolicy?: string;
|
|
45
|
+
};
|
|
46
|
+
resolveAllowFrom(params: {
|
|
47
|
+
cfg: Record<string, unknown>;
|
|
48
|
+
accountId?: string | null;
|
|
49
|
+
}): string[];
|
|
50
|
+
resolveDefaultTo(params: {
|
|
51
|
+
cfg: Record<string, unknown>;
|
|
52
|
+
accountId?: string | null;
|
|
53
|
+
}): string | undefined;
|
|
54
|
+
}
|
|
55
|
+
interface ChannelPlugin {
|
|
56
|
+
id: string;
|
|
57
|
+
meta: ChannelMeta;
|
|
58
|
+
capabilities: ChannelCapabilities;
|
|
59
|
+
outbound: {
|
|
60
|
+
deliveryMode: string;
|
|
61
|
+
};
|
|
62
|
+
config: ChannelConfig;
|
|
63
|
+
setup: {
|
|
64
|
+
resolveAccountId(params: {
|
|
65
|
+
cfg: Record<string, unknown>;
|
|
66
|
+
accountId?: string;
|
|
67
|
+
input?: Record<string, unknown>;
|
|
68
|
+
}): string;
|
|
69
|
+
applyAccountConfig(params: {
|
|
70
|
+
cfg: Record<string, unknown>;
|
|
71
|
+
accountId: string;
|
|
72
|
+
input: Record<string, unknown>;
|
|
73
|
+
}): Record<string, unknown>;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
declare function createGoogleChatChannelPlugin(): ChannelPlugin;
|
|
77
|
+
//#endregion
|
|
78
|
+
export { createGoogleChatChannelPlugin as t };
|
|
79
|
+
//# 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":";;;AAYyB;AAQJ;AAOQ;;;;;UAfnB,eAAA,CA8BW;WAEM,EAAA,MAAA;SACO,EAAA,OAAA;WACA,EAAA,MAAA,EAAA;EAAM,SAAA,CAAA,EAAA,MAAA;EAG9B,QAAA,CAAA,EAAA,MAAa;;UA7Bb,WAAA,CA+BF;MACQ,MAAA;OAEN,EAAA,MAAA;aAE0B,EAAA,MAAA;aAAqD,CAAA,EAAA,MAAA;;UA7B/E,mBAAA,CA8B+E;WAA4B,EAAA,MAAA,EAAA;EAAM,OAAA,EAAA,OAAA;EAI3G,SAAA,EAAA,OAAA;;;;;;;UAvBN,aAAA;sBACY;sBACA,qDAAqD;;qBAEtD;;2BAEM;;;;;;;SACO;;;;SACA;;;;UAGxB,aAAA;;QAEF;gBACQ;;;;UAEN;;;WAE0B;;cAAqD;;;WACnD;;aAAmD;QAA4B;;;iBAIrG,6BAAA,CAAA,GAAiC"}
|
|
@@ -4,7 +4,17 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Follows the same ChannelPlugin shape as alfe-channel.ts in openclaw-chat.
|
|
6
6
|
* This is metadata-only — no transport. The backend service handles all messaging.
|
|
7
|
+
*
|
|
8
|
+
* All config methods return sensible defaults because Google Chat is entirely
|
|
9
|
+
* backend-managed — there is no local openclaw.yaml config for this channel.
|
|
7
10
|
*/
|
|
11
|
+
interface ResolvedAccount {
|
|
12
|
+
accountId: string;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
allowFrom: string[];
|
|
15
|
+
defaultTo?: string;
|
|
16
|
+
dmPolicy?: string;
|
|
17
|
+
}
|
|
8
18
|
interface ChannelMeta {
|
|
9
19
|
id: string;
|
|
10
20
|
label: string;
|
|
@@ -21,6 +31,27 @@ interface ChannelCapabilities {
|
|
|
21
31
|
media: boolean;
|
|
22
32
|
nativeCommands: boolean;
|
|
23
33
|
}
|
|
34
|
+
interface ChannelConfig {
|
|
35
|
+
listAccountIds(cfg: Record<string, unknown>): string[];
|
|
36
|
+
resolveAccount(cfg: Record<string, unknown>, accountId?: string | null): ResolvedAccount;
|
|
37
|
+
defaultAccountId(): string;
|
|
38
|
+
isEnabled(account: ResolvedAccount): boolean;
|
|
39
|
+
isConfigured(): boolean;
|
|
40
|
+
describeAccount(account: ResolvedAccount): {
|
|
41
|
+
accountId: string;
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
configured: boolean;
|
|
44
|
+
dmPolicy?: string;
|
|
45
|
+
};
|
|
46
|
+
resolveAllowFrom(params: {
|
|
47
|
+
cfg: Record<string, unknown>;
|
|
48
|
+
accountId?: string | null;
|
|
49
|
+
}): string[];
|
|
50
|
+
resolveDefaultTo(params: {
|
|
51
|
+
cfg: Record<string, unknown>;
|
|
52
|
+
accountId?: string | null;
|
|
53
|
+
}): string | undefined;
|
|
54
|
+
}
|
|
24
55
|
interface ChannelPlugin {
|
|
25
56
|
id: string;
|
|
26
57
|
meta: ChannelMeta;
|
|
@@ -28,10 +59,18 @@ interface ChannelPlugin {
|
|
|
28
59
|
outbound: {
|
|
29
60
|
deliveryMode: string;
|
|
30
61
|
};
|
|
31
|
-
config:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
62
|
+
config: ChannelConfig;
|
|
63
|
+
setup: {
|
|
64
|
+
resolveAccountId(params: {
|
|
65
|
+
cfg: Record<string, unknown>;
|
|
66
|
+
accountId?: string;
|
|
67
|
+
input?: Record<string, unknown>;
|
|
68
|
+
}): string;
|
|
69
|
+
applyAccountConfig(params: {
|
|
70
|
+
cfg: Record<string, unknown>;
|
|
71
|
+
accountId: string;
|
|
72
|
+
input: Record<string, unknown>;
|
|
73
|
+
}): Record<string, unknown>;
|
|
35
74
|
};
|
|
36
75
|
}
|
|
37
76
|
declare function createGoogleChatChannelPlugin(): ChannelPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-chat-channel.d.ts","names":[],"sources":["../src/google-chat-channel.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"google-chat-channel.d.ts","names":[],"sources":["../src/google-chat-channel.ts"],"mappings":";;;AAYyB;AAQJ;AAOQ;;;;;UAfnB,eAAA,CA8BW;WAEM,EAAA,MAAA;SACO,EAAA,OAAA;WACA,EAAA,MAAA,EAAA;EAAM,SAAA,CAAA,EAAA,MAAA;EAG9B,QAAA,CAAA,EAAA,MAAa;;UA7Bb,WAAA,CA+BF;MACQ,MAAA;OAEN,EAAA,MAAA;aAE0B,EAAA,MAAA;aAAqD,CAAA,EAAA,MAAA;;UA7B/E,mBAAA,CA8B+E;WAA4B,EAAA,MAAA,EAAA;EAAM,OAAA,EAAA,OAAA;EAI3G,SAAA,EAAA,OAAA;;;;;;;UAvBN,aAAA;sBACY;sBACA,qDAAqD;;qBAEtD;;2BAEM;;;;;;;SACO;;;;SACA;;;;UAGxB,aAAA;;QAEF;gBACQ;;;;UAEN;;;WAE0B;;cAAqD;;;WACnD;;aAAmD;QAA4B;;;iBAIrG,6BAAA,CAAA,GAAiC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
//#region src/google-chat-channel.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
|
+
* All config methods return sensible defaults because Google Chat is entirely
|
|
9
|
+
* backend-managed — there is no local openclaw.yaml config for this channel.
|
|
10
|
+
*/
|
|
11
|
+
const DEFAULT_ACCOUNT_ID = "default";
|
|
2
12
|
function createGoogleChatChannelPlugin() {
|
|
3
13
|
return {
|
|
4
14
|
id: "google-chat",
|
|
@@ -20,14 +30,44 @@ function createGoogleChatChannelPlugin() {
|
|
|
20
30
|
},
|
|
21
31
|
outbound: { deliveryMode: "gateway" },
|
|
22
32
|
config: {
|
|
23
|
-
|
|
24
|
-
return
|
|
33
|
+
listAccountIds() {
|
|
34
|
+
return [DEFAULT_ACCOUNT_ID];
|
|
35
|
+
},
|
|
36
|
+
resolveAccount(_cfg, accountId) {
|
|
37
|
+
return {
|
|
38
|
+
accountId: accountId ?? DEFAULT_ACCOUNT_ID,
|
|
39
|
+
enabled: true,
|
|
40
|
+
allowFrom: []
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
defaultAccountId() {
|
|
44
|
+
return DEFAULT_ACCOUNT_ID;
|
|
45
|
+
},
|
|
46
|
+
isEnabled(account) {
|
|
47
|
+
return account.enabled;
|
|
25
48
|
},
|
|
26
49
|
isConfigured() {
|
|
27
50
|
return true;
|
|
28
51
|
},
|
|
29
|
-
|
|
30
|
-
return
|
|
52
|
+
describeAccount(account) {
|
|
53
|
+
return {
|
|
54
|
+
accountId: account.accountId,
|
|
55
|
+
enabled: account.enabled,
|
|
56
|
+
configured: true,
|
|
57
|
+
dmPolicy: account.dmPolicy
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
resolveAllowFrom() {
|
|
61
|
+
return [];
|
|
62
|
+
},
|
|
63
|
+
resolveDefaultTo() {}
|
|
64
|
+
},
|
|
65
|
+
setup: {
|
|
66
|
+
resolveAccountId(params) {
|
|
67
|
+
return params.accountId ?? DEFAULT_ACCOUNT_ID;
|
|
68
|
+
},
|
|
69
|
+
applyAccountConfig(params) {
|
|
70
|
+
return params.cfg;
|
|
31
71
|
}
|
|
32
72
|
}
|
|
33
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-chat-channel.js","names":[],"sources":["../src/google-chat-channel.ts"],"sourcesContent":["/**\n * Google Chat channel registration for OpenClaw.\n *\n * Follows the same ChannelPlugin shape as alfe-channel.ts in openclaw-chat.\n * This is metadata-only — no transport. The backend service handles all messaging.\n */\n\ninterface ChannelMeta {\n id: string;\n label: string;\n description: string;\n systemImage?: string;\n}\n\ninterface ChannelCapabilities {\n chatTypes: string[];\n threads: boolean;\n reactions: boolean;\n edit: boolean;\n unsend: boolean;\n reply: boolean;\n media: boolean;\n nativeCommands: boolean;\n}\n\ninterface ChannelPlugin {\n id: string;\n meta: ChannelMeta;\n capabilities: ChannelCapabilities;\n outbound: { deliveryMode: string };\n config: {\n
|
|
1
|
+
{"version":3,"file":"google-chat-channel.js","names":[],"sources":["../src/google-chat-channel.ts"],"sourcesContent":["/**\n * Google Chat channel registration for OpenClaw.\n *\n * Follows the same ChannelPlugin shape as alfe-channel.ts in openclaw-chat.\n * This is metadata-only — no transport. The backend service handles all messaging.\n *\n * All config methods return sensible defaults because Google Chat is entirely\n * backend-managed — there is no local openclaw.yaml config for this channel.\n */\n\nconst DEFAULT_ACCOUNT_ID = \"default\";\n\ninterface ResolvedAccount {\n accountId: string;\n enabled: boolean;\n allowFrom: string[];\n defaultTo?: string;\n dmPolicy?: string;\n}\n\ninterface ChannelMeta {\n id: string;\n label: string;\n description: string;\n systemImage?: string;\n}\n\ninterface ChannelCapabilities {\n chatTypes: string[];\n threads: boolean;\n reactions: boolean;\n edit: boolean;\n unsend: boolean;\n reply: boolean;\n media: boolean;\n nativeCommands: boolean;\n}\n\ninterface ChannelConfig {\n listAccountIds(cfg: Record<string, unknown>): string[];\n resolveAccount(cfg: Record<string, unknown>, accountId?: string | null): ResolvedAccount;\n defaultAccountId(): string;\n isEnabled(account: ResolvedAccount): boolean;\n isConfigured(): boolean;\n describeAccount(account: ResolvedAccount): { accountId: string; enabled: boolean; configured: boolean; dmPolicy?: string };\n resolveAllowFrom(params: { cfg: Record<string, unknown>; accountId?: string | null }): string[];\n resolveDefaultTo(params: { cfg: Record<string, unknown>; accountId?: string | null }): string | undefined;\n}\n\ninterface ChannelPlugin {\n id: string;\n meta: ChannelMeta;\n capabilities: ChannelCapabilities;\n outbound: { deliveryMode: string };\n config: ChannelConfig;\n setup: {\n resolveAccountId(params: { cfg: Record<string, unknown>; accountId?: string; input?: Record<string, unknown> }): string;\n applyAccountConfig(params: { cfg: Record<string, unknown>; accountId: string; input: Record<string, unknown> }): Record<string, unknown>;\n };\n}\n\nexport function createGoogleChatChannelPlugin(): ChannelPlugin {\n return {\n id: \"google-chat\",\n meta: {\n id: \"google-chat\",\n label: \"Google Chat\",\n description: \"Google Workspace Chat — spaces, DMs, and threads\",\n systemImage: \"google-chat\",\n },\n capabilities: {\n chatTypes: [\"direct\", \"group\"],\n threads: true,\n reactions: true,\n edit: false,\n unsend: false,\n reply: true,\n media: false,\n nativeCommands: false,\n },\n outbound: {\n deliveryMode: \"gateway\",\n },\n config: {\n listAccountIds() {\n return [DEFAULT_ACCOUNT_ID];\n },\n resolveAccount(_cfg: Record<string, unknown>, accountId?: string | null): ResolvedAccount {\n return {\n accountId: accountId ?? DEFAULT_ACCOUNT_ID,\n enabled: true,\n allowFrom: [],\n };\n },\n defaultAccountId() {\n return DEFAULT_ACCOUNT_ID;\n },\n isEnabled(account: ResolvedAccount) {\n return account.enabled;\n },\n isConfigured() {\n return true;\n },\n describeAccount(account: ResolvedAccount) {\n return {\n accountId: account.accountId,\n enabled: account.enabled,\n configured: true,\n dmPolicy: account.dmPolicy,\n };\n },\n resolveAllowFrom() {\n return [];\n },\n resolveDefaultTo() {\n return undefined;\n },\n },\n setup: {\n resolveAccountId(params) {\n return params.accountId ?? DEFAULT_ACCOUNT_ID;\n },\n applyAccountConfig(params) {\n return params.cfg;\n },\n },\n };\n}\n"],"mappings":";;;;;;;;;;AAUA,MAAM,qBAAqB;AAmD3B,SAAgB,gCAA+C;AAC7D,QAAO;EACL,IAAI;EACJ,MAAM;GACJ,IAAI;GACJ,OAAO;GACP,aAAa;GACb,aAAa;GACd;EACD,cAAc;GACZ,WAAW,CAAC,UAAU,QAAQ;GAC9B,SAAS;GACT,WAAW;GACX,MAAM;GACN,QAAQ;GACR,OAAO;GACP,OAAO;GACP,gBAAgB;GACjB;EACD,UAAU,EACR,cAAc,WACf;EACD,QAAQ;GACN,iBAAiB;AACf,WAAO,CAAC,mBAAmB;;GAE7B,eAAe,MAA+B,WAA4C;AACxF,WAAO;KACL,WAAW,aAAa;KACxB,SAAS;KACT,WAAW,EAAE;KACd;;GAEH,mBAAmB;AACjB,WAAO;;GAET,UAAU,SAA0B;AAClC,WAAO,QAAQ;;GAEjB,eAAe;AACb,WAAO;;GAET,gBAAgB,SAA0B;AACxC,WAAO;KACL,WAAW,QAAQ;KACnB,SAAS,QAAQ;KACjB,YAAY;KACZ,UAAU,QAAQ;KACnB;;GAEH,mBAAmB;AACjB,WAAO,EAAE;;GAEX,mBAAmB;GAGpB;EACD,OAAO;GACL,iBAAiB,QAAQ;AACvB,WAAO,OAAO,aAAa;;GAE7B,mBAAmB,QAAQ;AACzB,WAAO,OAAO;;GAEjB;EACF"}
|
package/dist/index.cjs
ADDED
package/dist/index.d.cts
ADDED
|
@@ -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"}
|
package/dist/plugin.cjs
ADDED
|
@@ -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.
|
|
3
|
+
"version": "0.0.3",
|
|
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
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"import": "./dist/index.js"
|
|
12
13
|
},
|
|
13
14
|
"./plugin": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
15
|
+
"types": "./dist/plugin.d.ts",
|
|
16
|
+
"require": "./dist/plugin.cjs",
|
|
17
|
+
"import": "./dist/plugin.js"
|
|
16
18
|
}
|
|
17
19
|
},
|
|
18
20
|
"openclaw": {
|