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

推荐订阅源

WordPress大学
WordPress大学
T
Threat Research - Cisco Blogs
D
DataBreaches.Net
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
P
Proofpoint News Feed
小众软件
小众软件
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
Martin Fowler
Martin Fowler
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
李成银的技术随笔
MongoDB | Blog
MongoDB | Blog
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
Hacker News: Ask HN
Hacker News: Ask HN
C
CERT Recently Published Vulnerability Notes
H
Help Net Security
The GitHub Blog
The GitHub Blog
S
Security Archives - TechRepublic
AWS News Blog
AWS News Blog
Project Zero
Project Zero
Security Latest
Security Latest
P
Privacy International News Feed
T
Troy Hunt's Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
Intezer
酷 壳 – CoolShell
酷 壳 – CoolShell
The Hacker News
The Hacker News
I
InfoQ
P
Proofpoint News Feed
C
Cisco Blogs
aimingoo的专栏
aimingoo的专栏
T
ThreatConnect
Recorded Future
Recorded Future
P
Palo Alto Networks Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V
V2EX
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
G
GRAHAM CLULEY
F
Future of Privacy Forum
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
Engineering at Meta
Engineering at Meta

Recent Commits to openclaw:main

fix(e2e): prefer x64 MinGit on Windows · openclaw/openclaw@15d9134 feat: add meeting notes plugin docs: update changelog for memory artifacts (#85060) (thanks @brokema… · openclaw/openclaw@9e55383 fix(memory): preserve sidecar capability hooks · openclaw/openclaw@e6288ca fix(e2e): scrub Windows update config on PowerShell 5.1 · openclaw/openclaw@6657b49 docs: absorb documentation PR sweep · openclaw/openclaw@2c536a8 fix(agents): stabilize Linux fallback tests · openclaw/openclaw@6b04170 fix(codex): preserve native web search action metadata (#85378) · openclaw/openclaw@bcf756c test: refresh Codex prompt snapshots · openclaw/openclaw@492d656 docs: absorb hook and subagent guidance PRs fix(agents): audit tool policy blocks (#85673) · openclaw/openclaw@09dd051 ci: fix plugin npm bundled dependency install · openclaw/openclaw@d485464 feat(diagnostics): classify skill and tool usage (#80370) docs(skills): clarify control ui recording proof (#85568) · openclaw/openclaw@0b476b9 test(agents): repair main failure fixtures · openclaw/openclaw@c29967b feat(diagnostics): trace gateway secret preparation (#83019) · openclaw/openclaw@4f0c902 fix(diagnostics): harden observability exports and smokes (#85371) · openclaw/openclaw@7f05be0 fix(stepfun): drop stale auth choice metadata · openclaw/openclaw@0b2ab6c test(e2e): sample kitchen sink RSS on Windows · openclaw/openclaw@73c1e37 test(plugins): fail gauntlet on load diagnostics fix(build): preserve tsdown heap floor · openclaw/openclaw@9ff1a43 fix(tools): honor config apiKey in media tool preflight (#85570) · openclaw/openclaw@31c269f fix(e2e): support macOS script wrappers fix(ci): scope changed shrinkwrap checks · openclaw/openclaw@743fd4c chore(ui): refresh fa control ui locale chore(ui): refresh nl control ui locale · openclaw/openclaw@908464b chore(ui): refresh vi control ui locale · openclaw/openclaw@62b75f4 chore(ui): refresh th control ui locale · openclaw/openclaw@fc4ba31 chore(ui): refresh id control ui locale · openclaw/openclaw@5b1bdd1 chore(ui): refresh pl control ui locale · openclaw/openclaw@534d4b1 chore(ui): refresh uk control ui locale · openclaw/openclaw@055c3bd chore(ui): refresh ar control ui locale · openclaw/openclaw@89c5a68 chore(ui): refresh it control ui locale · openclaw/openclaw@44ca805 chore(ui): refresh tr control ui locale chore(ui): refresh fr control ui locale · openclaw/openclaw@2240b0e chore(ui): refresh ko control ui locale · openclaw/openclaw@5fa250b chore(ui): refresh ja-JP control ui locale · openclaw/openclaw@f4ea401 chore(ui): refresh es control ui locale · openclaw/openclaw@751dde0 chore(ui): refresh de control ui locale · openclaw/openclaw@72a9b5b chore(ui): refresh pt-BR control ui locale · openclaw/openclaw@501b6e0 chore(ui): refresh zh-CN control ui locale chore(ui): refresh zh-TW control ui locale · openclaw/openclaw@88dee79 Add Slack approval QA checkpoints (#85141) fix(agents): mirror internal ui message tool replies (#85564) perf(whatsapp): narrow runtime setter entry (#85589) · openclaw/openclaw@463929d fix: smooth chat focus mode layout · openclaw/openclaw@bb5abef Fix Telegram missing harness spool poison (#85605) · openclaw/openclaw@b745082 fix(session): surface previous-transcript archive failures on /new ro… · openclaw/openclaw@679a46d Policy: add agent workspace conformance checks (#85096) · openclaw/openclaw@a94f344 fix(installer): fail failed Windows git builds · openclaw/openclaw@2edd6e2 fix(codex): honor node exec policy for native surfaces (#85534) · openclaw/openclaw@e0405ec fix(qa-lab): stabilize codex runtime parity fixtures fix(github): preserve sufficient proof against negative relabel (#85567) · openclaw/openclaw@6b52dff docs: add changelog for context pressure preflight · openclaw/openclaw@5ca734f Fix context pressure preflight for tool-heavy sessions (#85541) · openclaw/openclaw@c08400e fix(doctor): classify codex asset notice as info (#85119) · openclaw/openclaw@959b935 fix(ui): keep chat picker search current (#85547) fix: preserve message-tool delivery evidence · openclaw/openclaw@f022b05 fix(codex): add API key paste auth (#85533) fix: satisfy openai video test typecheck · openclaw/openclaw@743caed fix: route openai video edits to edits endpoint · openclaw/openclaw@6c3fcb8 fix(qmd): normalize direct file collection paths (#65212) · openclaw/openclaw@227b4bf fix(testbox): preserve clean sparse checkouts · openclaw/openclaw@58e9628 fix(ui): run ui script through junction paths (#85525) · openclaw/openclaw@ad19dd8 docs: fix troubleshooting logs link (#85545) · openclaw/openclaw@60582b6 Revert chat session picker inline search (#85527) · openclaw/openclaw@d69bcfd fix: preserve guarded video operation cleanup · openclaw/openclaw@ed7d99a fix: honor openai video provider request network policy fix: retry guarded video downloads · openclaw/openclaw@efbf9f3 fix: thread openai video request policy · openclaw/openclaw@31b5145 docs(changelog): note heartbeat message-tool fix · openclaw/openclaw@c127334 fix: use fs-safe trash for agent delete (#84394) · openclaw/openclaw@951bbe6 Fix heartbeat message-tool delivery policy (#85357) · openclaw/openclaw@bd9c78f Scope config preflight note suppression (#84439) · openclaw/openclaw@91d85e7 fix(cron): document best-effort edit delivery mode (#84526) fix(dreaming): open report cards from memory palace (#85144) · openclaw/openclaw@2e15830 fix(openai-codex): preserve image input capability (#85393) · openclaw/openclaw@49ce171 fix(codex): stabilize heartbeat dynamic tool schema (#84681) · openclaw/openclaw@c52daa4 docs: absorb small documentation PRs · openclaw/openclaw@658be7f fix(scripts): preserve bws resolver parse errors (#85528) · openclaw/openclaw@13a4c57 fix(telegram): honor outbound media max bytes (#83478) · openclaw/openclaw@f2d4f93 fix(skills): restore executable bit on bundled whisper script + relea… · openclaw/openclaw@1dd3b52 fix(google): print Gemini OAuth URL before browser launch (#71469) · openclaw/openclaw@2d5bda9 docs: absorb contributor documentation fixes docs: tighten landable bug sweep gates · openclaw/openclaw@8f86383 fix: reuse provider auth lookup facts (#85499) · openclaw/openclaw@299ed80 fix: keep session picker focus separate · openclaw/openclaw@7e12370 feat: start onboarding for fresh CLI installs (#85519) · openclaw/openclaw@464ffc1 docs: refresh contributor docs · openclaw/openclaw@64d13c0 fix(update): prepack npm git update specs · openclaw/openclaw@84f6b5c fix: simplify chat session search · openclaw/openclaw@7e16a50 fix: use native mac settings sidebar · openclaw/openclaw@0556958 chore: ignore antigravity cli state · openclaw/openclaw@dd07fb4 fix(media): replace Gemini CLI fallback with sandboxed Antigravity (#… · openclaw/openclaw@0622fb6 docs: add bugbash landing changelog entries · openclaw/openclaw@faad2b0 fix(diffs): continue after card hydration errors (#84775) · openclaw/openclaw@9b5c281 fix(proxy): add missing clientSocket error handler in CONNECT tunnel … · openclaw/openclaw@e008bc9 fix(memory): report qmd workspace cwd probe failures (#63167) · openclaw/openclaw@7134a95 fix(agents): handle parallel tool call deltas in openai-completions s… test: align release validation package acceptance check (#85515) · openclaw/openclaw@423f525
fix(memory-lancedb): expose public memory artifacts · openclaw/openclaw@aac1abe
brokemac79 · 2026-05-23 · via Recent Commits to openclaw:main

@@ -9,7 +9,16 @@

99

*/

10101111

import { Buffer } from "node:buffer";

12-

import { describe, test, expect, vi } from "vitest";

12+

import fs from "node:fs/promises";

13+

import path from "node:path";

14+

import {

15+

clearMemoryPluginState,

16+

getMemoryCapabilityRegistration,

17+

listActiveMemoryPublicArtifacts,

18+

registerMemoryCapability,

19+

type MemoryPluginCapability,

20+

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

21+

import { afterEach, describe, test, expect, vi } from "vitest";

1322

import memoryPlugin, {

1423

detectCategory,

1524

formatRelevantMemoriesContext,

@@ -164,7 +173,11 @@ async function withMockedOpenAiMemoryPlugin<T>(params: {

164173

}

165174166175

describe("memory plugin e2e", () => {

167-

const { getDbPath } = installTmpDirHarness({ prefix: "openclaw-memory-test-" });

176+

const { getDbPath, getTmpDir } = installTmpDirHarness({ prefix: "openclaw-memory-test-" });

177+178+

afterEach(() => {

179+

clearMemoryPluginState();

180+

});

168181169182

function parseConfig(overrides: Record<string, unknown> = {}) {

170183

return memoryPlugin.configSchema?.parse?.({

@@ -340,6 +353,165 @@ describe("memory plugin e2e", () => {

340353

expectHookNotRegistered(on, "before_agent_start");

341354

});

342355356+

test("registers memory public artifact provider for memory-wiki bridge parity", async () => {

357+

const workspaceDir = path.join(getTmpDir(), "workspace-public-artifacts");

358+

await fs.mkdir(path.join(workspaceDir, "memory"), { recursive: true });

359+

await fs.writeFile(path.join(workspaceDir, "MEMORY.md"), "# Durable Memory\n", "utf8");

360+

await fs.writeFile(path.join(workspaceDir, "memory", "2026-05-18.md"), "# Daily\n", "utf8");

361+

const registerMemoryCapability = vi.fn();

362+

const mockApi = {

363+

id: "memory-lancedb",

364+

name: "Memory (LanceDB)",

365+

source: "test",

366+

config: {},

367+

pluginConfig: {

368+

embedding: {

369+

apiKey: OPENAI_API_KEY,

370+

model: "text-embedding-3-small",

371+

},

372+

dbPath: getDbPath(),

373+

autoCapture: false,

374+

autoRecall: false,

375+

},

376+

runtime: {},

377+

logger: {

378+

info: vi.fn(),

379+

warn: vi.fn(),

380+

error: vi.fn(),

381+

debug: vi.fn(),

382+

},

383+

registerMemoryCapability,

384+

registerTool: vi.fn(),

385+

registerCli: vi.fn(),

386+

registerService: vi.fn(),

387+

on: vi.fn(),

388+

resolvePath: (filePath: string) => filePath,

389+

};

390+391+

memoryPlugin.register(mockApi as any);

392+

const capability = firstObjectArg(

393+

registerMemoryCapability as unknown as MockCallSource,

394+

"memory capability",

395+

);

396+

const publicArtifacts = capability.publicArtifacts as

397+

| { listArtifacts?: (params: { cfg: unknown }) => Promise<unknown> }

398+

| undefined;

399+

expect(publicArtifacts?.listArtifacts).toBeTypeOf("function");

400+401+

await expect(

402+

publicArtifacts?.listArtifacts?.({

403+

cfg: {

404+

agents: {

405+

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

406+

},

407+

},

408+

}),

409+

).resolves.toEqual([

410+

{

411+

kind: "memory-root",

412+

workspaceDir,

413+

relativePath: "MEMORY.md",

414+

absolutePath: path.join(workspaceDir, "MEMORY.md"),

415+

agentIds: ["main"],

416+

contentType: "markdown",

417+

},

418+

{

419+

kind: "daily-note",

420+

workspaceDir,

421+

relativePath: "memory/2026-05-18.md",

422+

absolutePath: path.join(workspaceDir, "memory", "2026-05-18.md"),

423+

agentIds: ["main"],

424+

contentType: "markdown",

425+

},

426+

]);

427+

});

428+429+

test("preserves memory-core sidecar capability when registering public artifacts", async () => {

430+

const workspaceDir = path.join(getTmpDir(), "workspace-sidecar-public-artifacts");

431+

await fs.mkdir(path.join(workspaceDir, "memory"), { recursive: true });

432+

await fs.writeFile(path.join(workspaceDir, "MEMORY.md"), "# Durable Memory\n", "utf8");

433+

await fs.writeFile(path.join(workspaceDir, "memory", "2026-05-18.md"), "# Daily\n", "utf8");

434+

const runtime = {

435+

async getMemorySearchManager() {

436+

return { manager: null, error: "test" };

437+

},

438+

resolveMemoryBackendConfig() {

439+

return { backend: "builtin" as const };

440+

},

441+

};

442+

const flushPlanResolver = vi.fn(() => ({

443+

softThresholdTokens: 1,

444+

forceFlushTranscriptBytes: 2,

445+

reserveTokensFloor: 3,

446+

prompt: "flush",

447+

systemPrompt: "flush",

448+

relativePath: "memory/sidecar.md",

449+

}));

450+

registerMemoryCapability("memory-core", {

451+

flushPlanResolver,

452+

runtime,

453+

});

454+

const registerMemoryCapabilityForPlugin = vi.fn((capability: MemoryPluginCapability) => {

455+

registerMemoryCapability("memory-lancedb", capability);

456+

});

457+

const mockApi = {

458+

id: "memory-lancedb",

459+

name: "Memory (LanceDB)",

460+

source: "test",

461+

config: {},

462+

pluginConfig: {

463+

embedding: {

464+

apiKey: OPENAI_API_KEY,

465+

model: "text-embedding-3-small",

466+

},

467+

dbPath: getDbPath(),

468+

autoCapture: false,

469+

autoRecall: false,

470+

},

471+

runtime: {},

472+

logger: {

473+

info: vi.fn(),

474+

warn: vi.fn(),

475+

error: vi.fn(),

476+

debug: vi.fn(),

477+

},

478+

registerMemoryCapability: registerMemoryCapabilityForPlugin,

479+

registerTool: vi.fn(),

480+

registerCli: vi.fn(),

481+

registerService: vi.fn(),

482+

on: vi.fn(),

483+

resolvePath: (filePath: string) => filePath,

484+

};

485+486+

memoryPlugin.register(mockApi as any);

487+488+

expect(registerMemoryCapabilityForPlugin).toHaveBeenCalledOnce();

489+

expect(

490+

getMemoryCapabilityRegistration()?.capability.flushPlanResolver?.({})?.relativePath,

491+

).toBe("memory/sidecar.md");

492+

expect(getMemoryCapabilityRegistration()?.capability.runtime).toBe(runtime);

493+

await expect(

494+

listActiveMemoryPublicArtifacts({

495+

cfg: {

496+

agents: {

497+

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

498+

},

499+

},

500+

}),

501+

).resolves.toMatchObject([

502+

{

503+

kind: "memory-root",

504+

workspaceDir,

505+

relativePath: "MEMORY.md",

506+

},

507+

{

508+

kind: "daily-note",

509+

workspaceDir,

510+

relativePath: "memory/2026-05-18.md",

511+

},

512+

]);

513+

});

514+343515

test("uses provider adapter auth when embedding apiKey is omitted", async () => {

344516

const embedQuery = vi.fn(async () => [0.1, 0.2, 0.3]);

345517

const createProvider = vi.fn(async (options: Record<string, unknown>) => ({