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

推荐订阅源

V
Visual Studio Blog
量子位
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Google DeepMind News
Google DeepMind News
小众软件
小众软件
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell

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: trim matrix helper exports · openclaw/openclaw@...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -6,7 +6,7 @@ import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";

66

import { resolveLegacyMatrixFlatStoreTarget } from "./migration-config.js";

77

import { resolveMatrixLegacyFlatStoragePaths } from "./storage-paths.js";

88
9-

export type MatrixLegacyStateMigrationResult = {

9+

type MatrixLegacyStateMigrationResult = {

1010

migrated: boolean;

1111

changes: string[];

1212

warnings: string[];

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

export type MatrixRoomKeyBackupStatusLike = {

1+

type MatrixRoomKeyBackupStatusLike = {

22

serverVersion: string | null;

33

activeVersion: string | null;

44

trusted: boolean | null;

@@ -8,7 +8,7 @@ export type MatrixRoomKeyBackupStatusLike = {

88

keyLoadError: string | null;

99

};

1010
11-

export type MatrixRoomKeyBackupIssueCode =

11+

type MatrixRoomKeyBackupIssueCode =

1212

| "missing-server-backup"

1313

| "key-load-failed"

1414

| "key-not-loaded"

@@ -18,7 +18,7 @@ export type MatrixRoomKeyBackupIssueCode =

1818

| "indeterminate"

1919

| "ok";

2020
21-

export type MatrixRoomKeyBackupIssue = {

21+

type MatrixRoomKeyBackupIssue = {

2222

code: MatrixRoomKeyBackupIssueCode;

2323

summary: string;

2424

message: string | null;

Original file line numberDiff line numberDiff line change

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

3232

resolveGlobalMatrixEnvConfig,

3333

resolveMatrixEnvAuthReadiness,

3434

resolveScopedMatrixEnvConfig,

35-

type MatrixEnvConfig,

3635

} from "./env-auth.js";

3736

import { repairCurrentTokenStorageMetaDeviceId } from "./storage.js";

3837

import type { MatrixAuth, MatrixResolvedConfig } from "./types.js";

@@ -449,10 +448,8 @@ function buildMatrixNetworkFields(params: {

449448

export { getMatrixScopedEnvVarNames } from "../../env-vars.js";

450449

export {

451450

hasReadyMatrixEnvAuth,

452-

resolveGlobalMatrixEnvConfig,

453451

resolveMatrixEnvAuthReadiness,

454452

resolveScopedMatrixEnvConfig,

455-

type MatrixEnvConfig,

456453

} from "./env-auth.js";

457454

export {

458455

resolveValidatedMatrixHomeserverUrl,

Original file line numberDiff line numberDiff line change

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

11

import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";

22

import { getMatrixScopedEnvVarNames } from "../../env-vars.js";

33
4-

export type MatrixEnvConfig = {

4+

type MatrixEnvConfig = {

55

homeserver: string;

66

userId: string;

77

accessToken?: string;

Original file line numberDiff line numberDiff line change

@@ -15,7 +15,7 @@ import {

1515

import type { MatrixAuth } from "./types.js";

1616

import type { MatrixStoragePaths } from "./types.js";

1717
18-

export const DEFAULT_ACCOUNT_KEY = "default";

18+

const DEFAULT_ACCOUNT_KEY = "default";

1919

const STORAGE_META_FILENAME = "storage-meta.json";

2020

const THREAD_BINDINGS_FILENAME = "thread-bindings.json";

2121

const LEGACY_CRYPTO_MIGRATION_FILENAME = "legacy-crypto-migration.json";

Original file line numberDiff line numberDiff line change

@@ -3,10 +3,7 @@ import { resolveMatrixDefaultOrOnlyAccountId } from "../account-selection.js";

33

import type { CoreConfig } from "../types.js";

44

import { resolveMatrixConfigFieldPath } from "./config-paths.js";

55
6-

export function resolveMatrixEncryptionConfigPath(

7-

cfg: CoreConfig,

8-

accountId?: string | null,

9-

): string {

6+

function resolveMatrixEncryptionConfigPath(cfg: CoreConfig, accountId?: string | null): string {

107

const effectiveAccountId =

118

normalizeOptionalAccountId(accountId) ?? resolveMatrixDefaultOrOnlyAccountId(cfg);

129

return resolveMatrixConfigFieldPath(cfg, effectiveAccountId, "encryption");

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

export const MATRIX_MEDIA_SIZE_LIMIT_ERROR_MESSAGE = "Matrix media exceeds configured size limit";

1+

const MATRIX_MEDIA_SIZE_LIMIT_ERROR_MESSAGE = "Matrix media exceeds configured size limit";

22
33

export class MatrixMediaSizeLimitError extends Error {

44

readonly code = "MATRIX_MEDIA_SIZE_LIMIT" as const;

Original file line numberDiff line numberDiff line change

@@ -35,7 +35,7 @@ function formatMatrixAttachmentMarker(params: {

3535

return params.unavailable ? `[matrix ${label} unavailable]` : `[matrix ${label}]`;

3636

}

3737
38-

export function isLikelyBareFilename(text: string): boolean {

38+

function isLikelyBareFilename(text: string): boolean {

3939

const trimmed = text.trim();

4040

if (!trimmed || trimmed.includes("\n") || /\s/.test(trimmed)) {

4141

return false;

@@ -97,7 +97,7 @@ export function resolveMatrixMessageBody(params: {

9797

return attachment.caption;

9898

}

9999
100-

export function formatMatrixAttachmentText(params: {

100+

function formatMatrixAttachmentText(params: {

101101

attachment?: MatrixMessageAttachmentSummary;

102102

tooLarge?: boolean;

103103

unavailable?: boolean;

Original file line numberDiff line numberDiff line change

@@ -12,7 +12,7 @@ type MatrixMonitorAllowListMatch = {

1212

matchSource?: "wildcard" | "id" | "prefixed-id" | "prefixed-user";

1313

};

1414
15-

export type MatrixMonitorAccessState = {

15+

type MatrixMonitorAccessState = {

1616

effectiveAllowFrom: string[];

1717

effectiveGroupAllowFrom: string[];

1818

effectiveRoomUsers: string[];

Original file line numberDiff line numberDiff line change

@@ -67,9 +67,7 @@ export function normalizeMatrixAllowList(list?: Array<string | number>) {

6767

return normalizeAllowList(list).map((entry) => normalizeMatrixAllowListEntry(entry));

6868

}

6969
70-

export type MatrixAllowListMatch = AllowlistMatch<

71-

"wildcard" | "id" | "prefixed-id" | "prefixed-user"

72-

>;

70+

type MatrixAllowListMatch = AllowlistMatch<"wildcard" | "id" | "prefixed-id" | "prefixed-user">;

7371
7472

type MatrixAllowListMatchSource = NonNullable<MatrixAllowListMatch["matchSource"]>;

7573