@mcinteerj/openclaw-gmail 1.2.4 → 1.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcinteerj/openclaw-gmail",
3
- "version": "1.2.4",
3
+ "version": "1.2.7",
4
4
  "description": "Gmail channel plugin for OpenClaw - uses gog CLI for secure Gmail access",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/src/accounts.ts CHANGED
@@ -17,7 +17,7 @@ export function resolveGmailAccount(
17
17
  accountId?: string,
18
18
  ): ResolvedGmailAccount {
19
19
  const resolvedId = accountId || DEFAULT_ACCOUNT_ID;
20
- const account = cfg.channels?.gmail?.accounts?.[resolvedId];
20
+ const account = cfg.channels?.['openclaw-gmail']?.accounts?.[resolvedId];
21
21
 
22
22
  if (!account) {
23
23
  // Graceful fallback for UI logic that queries 'default' on unconfigured channels
@@ -46,7 +46,7 @@ export function resolveGmailAccount(
46
46
  }
47
47
 
48
48
  export function listGmailAccountIds(cfg: ChannelConfig<GmailConfig>): string[] {
49
- return Object.keys(cfg.channels?.gmail?.accounts || {});
49
+ return Object.keys(cfg.channels?.['openclaw-gmail']?.accounts || {});
50
50
  }
51
51
 
52
52
  export function resolveDefaultGmailAccountId(cfg: ChannelConfig<GmailConfig>): string {
package/src/channel.ts CHANGED
@@ -211,7 +211,7 @@ export const gmailPlugin: ChannelPlugin<ResolvedGmailAccount> = {
211
211
  setAccountEnabled: ({ cfg, accountId, enabled }) =>
212
212
  setAccountEnabledInConfigSection({
213
213
  cfg,
214
- sectionKey: "gmail",
214
+ sectionKey: "openclaw-gmail",
215
215
  accountId,
216
216
  enabled,
217
217
  allowTopLevel: true,
@@ -219,7 +219,7 @@ export const gmailPlugin: ChannelPlugin<ResolvedGmailAccount> = {
219
219
  deleteAccount: ({ cfg, accountId }) =>
220
220
  deleteAccountFromConfigSection({
221
221
  cfg,
222
- sectionKey: "gmail",
222
+ sectionKey: "openclaw-gmail",
223
223
  accountId,
224
224
  }),
225
225
  },
@@ -277,6 +277,10 @@ export const gmailPlugin: ChannelPlugin<ResolvedGmailAccount> = {
277
277
  messageToolHints: ({ cfg, accountId }: { cfg: OpenClawConfig; accountId: string }) => {
278
278
  const account = resolveGmailAccount(cfg, accountId);
279
279
  return [
280
+ "### Channel Behavior",
281
+ "- Email is an async channel—avoid narration or progress updates (each message becomes a separate email).",
282
+ "- Work silently; send ONE reply when complete. For long-running tasks, notify before starting or after completing.",
283
+ "",
280
284
  "### Gmail Messaging",
281
285
  "- To reply to this email, just write your response normally as text in your turn. This will Reply All to everyone on the thread.",
282
286
  "- Your Markdown response is automatically converted to a rich HTML email using the `marked` library.",