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

推荐订阅源

F
Fortinet All Blogs
有赞技术团队
有赞技术团队
量子位
N
Netflix TechBlog - Medium
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
Martin Fowler
Martin Fowler
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
V2EX
IT之家
IT之家
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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
fix(ci): align sqlite refactor checks · openclaw/openclaw...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main

@@ -8348,7 +8348,7 @@ describe("check-database-first-legacy-stores", () => {

83488348

import fs from "node:fs";

83498349

fs.writeFileSync("sessions.json", "{}\\n");

83508350

`,

8351-

"extensions/matrix/src/matrix/client/storage.ts",

8351+

"extensions/memory-wiki/src/compile.ts",

83528352

);

8353835383548354

expect(violations).toEqual([{ kind: "legacy store filesystem write", line: 3 }]);

@@ -8358,74 +8358,53 @@ describe("check-database-first-legacy-stores", () => {

83588358

const content = `import fs from "node:fs";${"\n".repeat(667)}fs.writeFileSync("sessions.json", "{}\\n");`;

83598359

const violations = collectDatabaseFirstLegacyStoreViolations(

83608360

content,

8361-

"extensions/matrix/src/matrix/client/storage.ts",

8361+

"extensions/memory-wiki/src/compile.ts",

83628362

);

8363836383648364

expect(violations).toEqual([{ kind: "legacy store filesystem write", line: 668 }]);

83658365

});

8366836683678367

it("allows current legacy-debt writes after harmless line movement", () => {

8368-

const content = `

8369-

import path from "node:path";

8370-

import { writeJson } from "../infra/json-files.js";

8371-

const STORAGE_META_FILENAME = "storage-meta.json";

8372-

function writeStoredRootMetadata(filePath: string, metadata: unknown) {

8373-

return writeJson(filePath, metadata);

8374-

}

8375-

${"\n".repeat(8)}

8376-

writeStoredRootMetadata(path.join(params.rootDir, STORAGE_META_FILENAME), {

8377-

homeserver: metadata.homeserver,

8378-

userId: metadata.userId,

8379-

accountId: metadata.accountId ?? DEFAULT_ACCOUNT_KEY,

8380-

accessTokenHash: metadata.accessTokenHash,

8381-

deviceId: metadata.deviceId ?? null,

8382-

currentTokenStateClaimed: true,

8383-

createdAt: metadata.createdAt ?? new Date().toISOString(),

8384-

});

8385-

`;

8368+

const content = [

8369+

`import { fsRoot } from "@openclaw/fs-safe/root";`,

8370+

`const relativePath = ".openclaw-wiki/cache/claims.jsonl";`,

8371+

`const root = await fsRoot(rootDir);`,

8372+

...Array.from({ length: 8 }, () => ""),

8373+

`await root.write(relativePath, content);`,

8374+

].join("\n");

83868375

const violations = collectDatabaseFirstLegacyStoreViolations(

83878376

content,

8388-

"extensions/matrix/src/matrix/client/storage.ts",

8377+

"extensions/memory-wiki/src/compile.ts",

83898378

);

8390837983918380

expect(violations).toEqual([]);

83928381

});

8393838283948383

it("flags duplicate copies of current legacy-debt writes", () => {

8395-

const allowedWrite = `

8396-

writeStoredRootMetadata(path.join(params.rootDir, STORAGE_META_FILENAME), {

8397-

homeserver: metadata.homeserver,

8398-

userId: metadata.userId,

8399-

accountId: metadata.accountId ?? DEFAULT_ACCOUNT_KEY,

8400-

accessTokenHash: metadata.accessTokenHash,

8401-

deviceId: metadata.deviceId ?? null,

8402-

currentTokenStateClaimed: true,

8403-

createdAt: metadata.createdAt ?? new Date().toISOString(),

8404-

});

8405-

`;

8384+

const relativePath = "extensions/memory-wiki/src/compile.ts";

8385+

const allowedWrite = `fs.writeFileSync("sessions.json", "{}\\n")`;

8386+

const currentLegacyWriteAllowances = new Map([

8387+

[`${relativePath}:legacy store filesystem write:${allowedWrite}`, 1],

8388+

]);

84068389

const violations = collectDatabaseFirstLegacyStoreViolations(

8407-

`

8408-

import path from "node:path";

8409-

import { writeJson } from "../infra/json-files.js";

8410-

const STORAGE_META_FILENAME = "storage-meta.json";

8411-

function writeStoredRootMetadata(filePath: string, metadata: unknown) {

8412-

return writeJson(filePath, metadata);

8413-

}

8414-

${allowedWrite}

8415-

${allowedWrite}

8416-

`,

8417-

"extensions/matrix/src/matrix/client/storage.ts",

8390+

[

8391+

`import fs from "node:fs";`,

8392+

`${allowedWrite};`,

8393+

`${allowedWrite};`,

8394+

].join("\n"),

8395+

relativePath,

8396+

{ currentLegacyWriteAllowances },

84188397

);

841983988420-

expect(violations).toEqual([{ kind: "legacy store filesystem write", line: 20 }]);

8399+

expect(violations).toEqual([{ kind: "legacy store filesystem write", line: 3 }]);

84218400

});

8422840184238402

it("flags stale current legacy-debt allowlist entries during full scans", () => {

84248403

const violations = collectDatabaseFirstLegacyStoreViolations(

84258404

`

8426-

export const STORAGE_META_FILENAME = "storage-meta.json";

8405+

export const CLAIMS_DIGEST_PATH = ".openclaw-wiki/cache/claims.jsonl";

84278406

`,

8428-

"extensions/matrix/src/matrix/client/storage.ts",

8407+

"extensions/memory-wiki/src/compile.ts",

84298408

{ enforceCurrentLegacyAllowlist: true },

84308409

);

84318410