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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
美团技术团队
D
Docker
WordPress大学
WordPress大学
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
Y
Y Combinator Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans

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(memory): bridge host sdk duplicates · openclaw/o...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -1,105 +1,2 @@

1-

const warningFilterKey = Symbol.for("openclaw.warning-filter");

2-3-

export type ProcessWarning = {

4-

code?: string;

5-

name?: string;

6-

message?: string;

7-

};

8-9-

type ProcessWarningInstallState = {

10-

installed: boolean;

11-

};

12-13-

function resolveWarningFilterState(): ProcessWarningInstallState {

14-

const globalStore = globalThis as Record<PropertyKey, unknown>;

15-

if (Object.prototype.hasOwnProperty.call(globalStore, warningFilterKey)) {

16-

return globalStore[warningFilterKey] as ProcessWarningInstallState;

17-

}

18-

const state = { installed: false };

19-

globalStore[warningFilterKey] = state;

20-

return state;

21-

}

22-23-

export function shouldIgnoreWarning(warning: ProcessWarning): boolean {

24-

if (warning.code === "DEP0040" && warning.message?.includes("punycode")) {

25-

return true;

26-

}

27-

if (warning.code === "DEP0060" && warning.message?.includes("util._extend")) {

28-

return true;

29-

}

30-

if (

31-

warning.name === "ExperimentalWarning" &&

32-

warning.message?.includes("SQLite is an experimental feature")

33-

) {

34-

return true;

35-

}

36-

return false;

37-

}

38-39-

function normalizeWarningArgs(args: unknown[]): ProcessWarning {

40-

const warningArg = args[0];

41-

const secondArg = args[1];

42-

const thirdArg = args[2];

43-

let name: string | undefined;

44-

let code: string | undefined;

45-

let message: string | undefined;

46-47-

if (warningArg instanceof Error) {

48-

name = warningArg.name;

49-

message = warningArg.message;

50-

code = (warningArg as Error & { code?: string }).code;

51-

} else if (typeof warningArg === "string") {

52-

message = warningArg;

53-

}

54-55-

if (secondArg && typeof secondArg === "object" && !Array.isArray(secondArg)) {

56-

const options = secondArg as { type?: unknown; code?: unknown };

57-

if (typeof options.type === "string") {

58-

name = options.type;

59-

}

60-

if (typeof options.code === "string") {

61-

code = options.code;

62-

}

63-

} else {

64-

if (typeof secondArg === "string") {

65-

name = secondArg;

66-

}

67-

if (typeof thirdArg === "string") {

68-

code = thirdArg;

69-

}

70-

}

71-72-

return { name, code, message };

73-

}

74-75-

export function installProcessWarningFilter(): void {

76-

const state = resolveWarningFilterState();

77-

if (state.installed) {

78-

return;

79-

}

80-81-

const originalEmitWarning = process.emitWarning.bind(process);

82-

const wrappedEmitWarning: typeof process.emitWarning = ((...args: unknown[]) => {

83-

if (shouldIgnoreWarning(normalizeWarningArgs(args))) {

84-

return;

85-

}

86-

if (

87-

args[0] instanceof Error &&

88-

args[1] &&

89-

typeof args[1] === "object" &&

90-

!Array.isArray(args[1])

91-

) {

92-

const warning = args[0];

93-

const emitted = Object.assign(new Error(warning.message), {

94-

name: warning.name,

95-

code: (warning as Error & { code?: string }).code,

96-

});

97-

process.emit("warning", emitted);

98-

return;

99-

}

100-

Reflect.apply(originalEmitWarning, process, args);

101-

}) as typeof process.emitWarning;

102-103-

process.emitWarning = wrappedEmitWarning;

104-

state.installed = true;

105-

}

1+

export { installProcessWarningFilter, shouldIgnoreWarning } from "./openclaw-runtime-io.js";

2+

export type { ProcessWarning } from "./openclaw-runtime-io.js";