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

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
The Cloudflare Blog
IT之家
IT之家
雷峰网
雷峰网
小众软件
小众软件
博客园 - 叶小钗
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS 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
build: enable modern TypeScript module syntax · openclaw/...
steipete · 2026-05-25 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -2,7 +2,8 @@ import fs from "node:fs/promises";

22

import { stringEnum } from "openclaw/plugin-sdk/channel-actions";

33

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

44

import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";

5-

import { Static, Type } from "typebox";

5+

import { Type } from "typebox";

6+

import type { Static } from "typebox";

67

import type { AnyAgentTool, OpenClawPluginApi, OpenClawPluginToolContext } from "../api.js";

78

import { PlaywrightDiffScreenshotter, type DiffScreenshotter } from "./browser.js";

89

import { resolveDiffImageRenderOptions } from "./config.js";

Original file line numberDiff line numberDiff line change

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

11

import type { DiscordGatewayHandle } from "./monitor/gateway-handle.js";

2-

import {

2+

import { DiscordGatewayLifecycleError } from "./monitor/gateway-supervisor.js";

3+

import type {

34

DiscordGatewayEvent,

4-

DiscordGatewayLifecycleError,

55

DiscordGatewaySupervisor,

66

} from "./monitor/gateway-supervisor.js";

77
Original file line numberDiff line numberDiff line change

@@ -26,10 +26,7 @@ const { undiciFetchMock, agentSpy, envHttpProxyAgentSpy, proxyAgentSpy, createMo

2626

("httpsProxy" in options || "httpProxy" in options)

2727

) {

2828

const proxyOptions = options as { httpsProxy?: unknown; httpProxy?: unknown };

29-

if (

30-

proxyOptions.httpsProxy === "bad-proxy" ||

31-

proxyOptions.httpProxy === "bad-proxy"

32-

) {

29+

if (proxyOptions.httpsProxy === "bad-proxy" || proxyOptions.httpProxy === "bad-proxy") {

3330

throw new Error("bad env proxy");

3431

}

3532

}

Original file line numberDiff line numberDiff line change

@@ -1,12 +1,12 @@

11

import {

22

definePluginEntry,

3-

OpenClawConfig,

43

type OpenClawPluginApi,

54

type ProviderAuthContext,

65

type ProviderAuthMethodNonInteractiveContext,

76

type ProviderAuthResult,

87

type ProviderRuntimeModel,

98

} from "openclaw/plugin-sdk/plugin-entry";

9+

import type { OpenClawConfig } from "openclaw/plugin-sdk/plugin-entry";

1010

import { CUSTOM_LOCAL_AUTH_MARKER } from "openclaw/plugin-sdk/provider-auth";

1111

import { lmstudioMemoryEmbeddingProviderAdapter } from "./memory-embedding-adapter.js";

1212

import {

Original file line numberDiff line numberDiff line change

@@ -14,6 +14,8 @@ export type MatrixLegacyCryptoInspectionResult = {

1414

decryptionKeyBase64: string | null;

1515

};

1616
17+

const MATRIX_CRYPTO_STORE_SQLITE = 0;

18+
1719

function resolveLegacyMachineStorePath(params: {

1820

cryptoRootDir: string;

1921

deviceId: string;

@@ -56,15 +58,15 @@ export async function inspectLegacyMatrixCryptoStore(params: {

5658

log: params.log,

5759

});

5860
59-

const { DeviceId, OlmMachine, StoreType, UserId } = requireFn(

61+

const { DeviceId, OlmMachine, UserId } = requireFn(

6062

"@matrix-org/matrix-sdk-crypto-nodejs",

6163

) as typeof import("@matrix-org/matrix-sdk-crypto-nodejs");

6264

const machine = await OlmMachine.initialize(

6365

new UserId(params.userId),

6466

new DeviceId(params.deviceId),

6567

machineStorePath,

6668

"",

67-

StoreType.Sqlite,

69+

MATRIX_CRYPTO_STORE_SQLITE,

6870

);

6971
7072

try {

Original file line numberDiff line numberDiff line change

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

1-

import {

2-

ParseErrorCode,

3-

type ParseError,

4-

parseTree,

5-

printParseErrorCode,

6-

} from "jsonc-parser/lib/esm/main.js";

1+

import { type ParseError, parseTree, printParseErrorCode } from "jsonc-parser/lib/esm/main.js";

72

import type { Diagnostic } from "../ast.js";

83

import type { JsoncAst, JsoncEntry, JsoncValue } from "./ast.js";

94

@@ -24,6 +19,8 @@ export const MAX_PARSE_DEPTH = 256;

2419

* supported configuration.

2520

*/

2621

export const MAX_JSONC_INPUT_BYTES = 16 * 1024 * 1024;

22+

const JSONC_PARSE_INVALID_SYMBOL = 1;

23+

const JSONC_PARSE_END_OF_FILE_EXPECTED = 9;

2724
2825

export interface JsoncParseResult {

2926

readonly ast: JsoncAst;

@@ -104,9 +101,10 @@ function toDiagnostic(

104101

tree: JsoncParserNode | undefined,

105102

): Diagnostic {

106103

const treeEnd = tree ? tree.offset + tree.length : 0;

104+

const errorCode: number = error.error;

107105

const isTrailingInput =

108-

error.error === ParseErrorCode.EndOfFileExpected ||

109-

(tree !== undefined && error.error === ParseErrorCode.InvalidSymbol && error.offset >= treeEnd);

106+

errorCode === JSONC_PARSE_END_OF_FILE_EXPECTED ||

107+

(tree !== undefined && errorCode === JSONC_PARSE_INVALID_SYMBOL && error.offset >= treeEnd);

110108

return {

111109

line: lineMap.lineForOffset(error.offset),

112110

message: printParseErrorCode(error.error),

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,6 @@

11

import type { ChannelRuntimeSurface } from "openclaw/plugin-sdk/channel-contract";

2-

import { Mock, vi } from "vitest";

2+

import { vi } from "vitest";

3+

import type { Mock } from "vitest";

34

import { clearSlackInboundDeliveryStateForTest } from "./monitor/inbound-delivery-state.js";

45
56

type SlackHandler = (args: unknown) => Promise<void>;

Original file line numberDiff line numberDiff line change

@@ -69,10 +69,8 @@ import type {

6969

TelegramMessageContextOptions,

7070

TelegramPromptContextEntry,

7171

} from "./bot-message-context.types.js";

72-

import {

73-

parseTelegramNativeCommandCallbackData,

74-

RegisterTelegramHandlerParams,

75-

} from "./bot-native-commands.js";

72+

import { parseTelegramNativeCommandCallbackData } from "./bot-native-commands.js";

73+

import type { RegisterTelegramHandlerParams } from "./bot-native-commands.js";

7674

import {

7775

MEDIA_GROUP_TIMEOUT_MS,

7876

type MediaGroupEntry,

@@ -1315,8 +1313,11 @@ export const registerTelegramHandlers = ({

13151313

};

13161314
13171315

class TelegramRetryableCallbackError extends Error {

1318-

constructor(public override readonly cause: unknown) {

1316+

public override readonly cause: unknown;

1317+
1318+

constructor(cause: unknown) {

13191319

super(String(cause));

1320+

this.cause = cause;

13201321

this.name = "TelegramRetryableCallbackError";

13211322

}

13221323

}

Original file line numberDiff line numberDiff line change

@@ -64,7 +64,7 @@ import {

6464

syncTelegramMenuCommands as syncTelegramMenuCommandsRuntime,

6565

type TelegramMenuCommand,

6666

} from "./bot-native-command-menu.js";

67-

import { TelegramUpdateKeyContext } from "./bot-updates.js";

67+

import type { TelegramUpdateKeyContext } from "./bot-updates.js";

6868

import type { TelegramBotOptions } from "./bot.types.js";

6969

import {

7070

buildTelegramRoutingTarget,

Original file line numberDiff line numberDiff line change

@@ -6,7 +6,6 @@ import { WhatsAppRetryableInboundError } from "./inbound/dedupe.js";

66

import { WHATSAPP_GROUP_METADATA_CACHE_MAX_ENTRIES } from "./inbound/monitor.js";

77

import {

88

type InboxMonitorOptions,

9-

InboxOnMessage,

109

buildNotifyMessageUpsert,

1110

failNextWhatsAppPluginStateRegisterIfAbsent,

1211

getAuthDir,

@@ -17,6 +16,7 @@ import {

1716

startInboxMonitor,

1817

waitForMessageCalls,

1918

} from "./monitor-inbox.test-harness.js";

19+

import type { InboxOnMessage } from "./monitor-inbox.test-harness.js";

2020
2121

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

2222

sleepWithAbortMock: vi.fn(async (_ms: number, _signal?: AbortSignal) => undefined),