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

推荐订阅源

Y
Y Combinator Blog
腾讯CDC
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
博客园_首页
D
DataBreaches.Net
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
月光博客
月光博客
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Vercel News
Vercel News
WordPress大学
WordPress大学
J
Java Code Geeks
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42

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 helper exports · open...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -4,7 +4,6 @@ import "./test-runtime-mocks.js";

44
55

// Avoid exporting vitest mock types (TS2742 under pnpm + d.ts emit).

66

type EmbedBatchMock = Mock<(texts: string[]) => Promise<number[][]>>;

7-

type EmbedQueryMock = Mock<() => Promise<number[]>>;

87
98

const hoisted = vi.hoisted(() => ({

109

embedBatch: vi.fn(async (texts: string[]) => texts.map(() => [0, 1, 0])),

@@ -15,10 +14,6 @@ export function getEmbedBatchMock(): EmbedBatchMock {

1514

return hoisted.embedBatch;

1615

}

1716
18-

export function getEmbedQueryMock(): EmbedQueryMock {

19-

return hoisted.embedQuery;

20-

}

21-
2217

export function resetEmbeddingMocks(): void {

2318

hoisted.embedBatch.mockReset();

2419

hoisted.embedQuery.mockReset();

Original file line numberDiff line numberDiff line change

@@ -1,10 +1,7 @@

11

// Memory Core plugin module implements manager sync control behavior.

22

import type { DatabaseSync } from "node:sqlite";

33

import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";

4-

import {

5-

createSubsystemLogger,

6-

type OpenClawConfig,

7-

} from "openclaw/plugin-sdk/memory-core-host-engine-foundation";

4+

import { createSubsystemLogger } from "openclaw/plugin-sdk/memory-core-host-engine-foundation";

85

import type { MemorySyncProgressUpdate } from "openclaw/plugin-sdk/memory-core-host-engine-storage";

96
107

const log = createSubsystemLogger("memory");

@@ -166,25 +163,3 @@ export function enqueueMemoryTargetedSessionSync(

166163

}

167164

return state.getQueuedSessionSync() ?? Promise.resolve();

168165

}

169-
170-

export function createMemorySyncControlConfigForTests(

171-

workspaceDir: string,

172-

indexPath: string,

173-

): OpenClawConfig {

174-

return {

175-

agents: {

176-

defaults: {

177-

workspace: workspaceDir,

178-

memorySearch: {

179-

provider: "openai",

180-

model: "mock-embed",

181-

store: { path: indexPath, vector: { enabled: false } },

182-

cache: { enabled: false },

183-

query: { minScore: 0, hybrid: { enabled: false } },

184-

sync: { watch: false, onSessionStart: false, onSearch: false },

185-

},

186-

},

187-

list: [{ id: "main", default: true }],

188-

},

189-

} as OpenClawConfig;

190-

}

Original file line numberDiff line numberDiff line change

@@ -1,9 +1,7 @@

11

// Msteams plugin module implements bot framework service url behavior.

22

import {

3-

buildHostnameAllowlistPolicyFromSuffixAllowlist,

43

isHttpsUrlAllowedByHostnameSuffixAllowlist,

54

normalizeHostnameSuffixAllowlist,

6-

type SsrFPolicy,

75

} from "openclaw/plugin-sdk/ssrf-policy";

86
97

const DEFAULT_BOT_FRAMEWORK_SERVICE_URL_HOST_ALLOWLIST = [

@@ -22,16 +20,6 @@ export const BOT_FRAMEWORK_SERVICE_URL_HOST_ALLOWLIST = normalizeHostnameSuffixA

2220

DEFAULT_BOT_FRAMEWORK_SERVICE_URL_HOST_ALLOWLIST,

2321

);

2422
25-

const serviceUrlSsrfPolicy = buildHostnameAllowlistPolicyFromSuffixAllowlist(

26-

BOT_FRAMEWORK_SERVICE_URL_HOST_ALLOWLIST,

27-

);

28-
29-

if (!serviceUrlSsrfPolicy) {

30-

throw new Error("Microsoft Teams Bot Framework serviceUrl allowlist is empty");

31-

}

32-
33-

export const BOT_FRAMEWORK_SERVICE_URL_SSRF_POLICY: SsrFPolicy = serviceUrlSsrfPolicy;

34-
3523

export function describeBotFrameworkServiceUrlHost(serviceUrl: string): string {

3624

try {

3725

const parsed = new URL(serviceUrl.trim());

Original file line numberDiff line numberDiff line change

@@ -132,18 +132,6 @@ function getOpenClawMediaDir(): string {

132132

return path.join(resolveOpenClawHome(), ".openclaw", "media");

133133

}

134134
135-

// ---- Basic platform information ----

136-
137-

type PlatformType = "darwin" | "linux" | "win32" | "other";

138-
139-

export function getPlatform(): PlatformType {

140-

const p = process.platform;

141-

if (p === "darwin" || p === "linux" || p === "win32") {

142-

return p;

143-

}

144-

return "other";

145-

}

146-
147135

export function isWindows(): boolean {

148136

return process.platform === "win32";

149137

}