惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
A
About on SuperTechFans
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
博客园 - Franky
D
Docker
Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
人人都是产品经理
人人都是产品经理
Last Week in AI
Last Week in AI
U
Unit 42
F
Fortinet All Blogs
H
Help Net Security
Blog — PlanetScale
Blog — PlanetScale
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
P
Proofpoint News Feed
月光博客
月光博客
G
Google Developers Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor(extensions): remove unused utility helpers · ope...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main

File tree

    • mattermost/src/mattermost

Original file line numberDiff line numberDiff line change

@@ -2,19 +2,8 @@ import crypto from "node:crypto";

22

import path from "node:path";

33
44

export const GOOGLE_GEMINI_CLI_PROVIDER_ID = "google-gemini-cli";

5-

export const GEMINI_CLI_OAUTH_CREDS_RELATIVE_PATH = ".gemini/oauth_creds.json";

65
76

export function resolveGeminiCliProfileHome(agentDir: string, profileId: string): string {

87

const profileHash = crypto.createHash("sha256").update(profileId).digest("hex").slice(0, 24);

98

return path.join(agentDir, `${GOOGLE_GEMINI_CLI_PROVIDER_ID}-home`, "profiles", profileHash);

109

}

11-
12-

export function resolveGeminiCliProfileCredentialsPath(

13-

agentDir: string,

14-

profileId: string,

15-

): string {

16-

return path.join(

17-

resolveGeminiCliProfileHome(agentDir, profileId),

18-

GEMINI_CLI_OAUTH_CREDS_RELATIVE_PATH,

19-

);

20-

}

Original file line numberDiff line numberDiff line change

@@ -63,10 +63,6 @@ export function normalizeIrcAllowEntry(raw: string): string {

6363

return value.trim();

6464

}

6565
66-

export function normalizeIrcAllowlist(entries?: Array<string | number>): string[] {

67-

return (entries ?? []).map((entry) => normalizeIrcAllowEntry(String(entry))).filter(Boolean);

68-

}

69-
7066

export function buildIrcAllowlistCandidates(

7167

message: IrcInboundMessage,

7268

params?: { allowNameMatching?: boolean },

Original file line numberDiff line numberDiff line change

@@ -31,7 +31,6 @@ import {

3131

buildButtonProps,

3232

resolveInteractionCallbackUrl,

3333

setInteractionSecret,

34-

type MattermostInteractiveButtonInput,

3534

} from "./interactions.js";

3635

import { loadOutboundMediaFromUrl, type OpenClawConfig } from "./runtime-api.js";

3736

import { isMattermostId, resolveMattermostOpaqueTarget } from "./target-resolution.js";

@@ -63,10 +62,6 @@ export type MattermostSendResult = {

6362

receipt: MessageReceipt;

6463

};

6564
66-

export type MattermostReplyButtons = Array<

67-

MattermostInteractiveButtonInput | MattermostInteractiveButtonInput[]

68-

>;

69-
7065

type MattermostTarget =

7166

| { kind: "channel"; id: string }

7267

| { kind: "channel-name"; name: string }

@@ -435,13 +430,6 @@ async function resolveMattermostSendContext(

435430

};

436431

}

437432
438-

export async function resolveMattermostSendChannelId(

439-

to: string,

440-

opts: MattermostSendOpts,

441-

): Promise<string> {

442-

return (await resolveMattermostSendContext(to, opts)).channelId;

443-

}

444-
445433

export async function sendMessageMattermost(

446434

to: string,

447435

text: string,

Original file line numberDiff line numberDiff line change

@@ -145,31 +145,6 @@ export function findPendingApproval(

145145

return pendingApprovals[pendingApprovals.length - 1];

146146

}

147147
148-

/**

149-

* Check if there's already a pending approval for the same ship/channel/group combo.

150-

* Used to avoid sending duplicate notifications.

151-

*/

152-

export function hasDuplicatePending(

153-

pendingApprovals: PendingApproval[],

154-

type: ApprovalType,

155-

requestingShip: string,

156-

channelNest?: string,

157-

groupFlag?: string,

158-

): boolean {

159-

return pendingApprovals.some((approval) => {

160-

if (approval.type !== type || approval.requestingShip !== requestingShip) {

161-

return false;

162-

}

163-

if (type === "channel" && approval.channelNest !== channelNest) {

164-

return false;

165-

}

166-

if (type === "group" && approval.groupFlag !== groupFlag) {

167-

return false;

168-

}

169-

return true;

170-

});

171-

}

172-
173148

/**

174149

* Remove a pending approval from the list by ID.

175150

*/