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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
Recent Announcements
Recent Announcements
L
LangChain Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
D
Docker
WordPress大学
WordPress大学
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
有赞技术团队
有赞技术团队
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog
博客园 - Franky

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(agents): trim utility helper exports · openclaw/...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -5,30 +5,11 @@

55

*/

66

import {

77

type ChildProcess,

8-

type ChildProcessByStdio,

9-

spawn as nodeSpawn,

108

type SpawnOptions,

11-

type SpawnOptionsWithStdioTuple,

12-

type StdioNull,

13-

type StdioPipe,

149

} from "node:child_process";

15-

import type { Readable } from "node:stream";

16-

import crossSpawn from "cross-spawn";

1710
1811

const EXIT_STDIO_GRACE_MS = 100;

1912
20-

export function spawnProcess(

21-

command: string,

22-

args: string[],

23-

options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,

24-

): ChildProcessByStdio<null, Readable, Readable>;

25-

export function spawnProcess(command: string, args: string[], options: SpawnOptions): ChildProcess;

26-

export function spawnProcess(command: string, args: string[], options: SpawnOptions): ChildProcess {

27-

return process.platform === "win32"

28-

? crossSpawn(command, args, options)

29-

: nodeSpawn(command, args, options);

30-

}

31-
3213

/**

3314

* Wait for a child process to terminate without hanging on inherited stdio handles.

3415

*

Original file line numberDiff line numberDiff line change

@@ -5,7 +5,7 @@

55

* entity subset emitted by trusted HTML producers without parsing full HTML.

66

*/

77

/** Decoded entity text plus the source length consumed from the input. */

8-

export interface DecodedHtmlEntity {

8+

interface DecodedHtmlEntity {

99

text: string;

1010

length: number;

1111

}

@@ -18,7 +18,7 @@ function decodeCodePoint(codePoint: number): string | undefined {

1818

}

1919
2020

/** Decodes a named or numeric HTML entity without the surrounding `&`/`;`. */

21-

export function decodeHtmlEntity(entity: string): string | undefined {

21+

function decodeHtmlEntity(entity: string): string | undefined {

2222

switch (entity) {

2323

case "amp":

2424

return "&";

Original file line numberDiff line numberDiff line change

@@ -10,14 +10,14 @@ import {

1010

type ImageProbe,

1111

} from "../../media/image-ops.js";

1212
13-

export interface ImageResizeOptions {

13+

interface ImageResizeOptions {

1414

maxWidth?: number; // Default: 2000

1515

maxHeight?: number; // Default: 2000

1616

maxBytes?: number; // Default: 4.5MB of base64 payload (below Anthropic's 5MB limit)

1717

jpegQuality?: number; // Default: 80

1818

}

1919
20-

export interface ResizedImage {

20+

interface ResizedImage {

2121

data: string; // base64

2222

mimeType: string;

2323

originalWidth: number;

Original file line numberDiff line numberDiff line change

@@ -10,7 +10,7 @@ const IMAGE_TYPE_SNIFF_BYTES = 4100;

1010

const PNG_SIGNATURE = [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a];

1111
1212

/** Detects supported image MIME types from leading file bytes. */

13-

export function detectSupportedImageMimeType(buffer: Uint8Array): string | null {

13+

function detectSupportedImageMimeType(buffer: Uint8Array): string | null {

1414

if (startsWith(buffer, [0xff, 0xd8, 0xff])) {

1515

return buffer[3] === 0xf7 ? null : "image/jpeg";

1616

}

Original file line numberDiff line numberDiff line change

@@ -45,7 +45,7 @@ function resolveAgainstCwd(filePath: string, cwd: string): string {

4545

return isAbsolute(filePath) ? resolvePath(filePath) : resolvePath(cwd, filePath);

4646

}

4747
48-

export function getCwdRelativePath(filePath: string, cwd: string): string | undefined {

48+

function getCwdRelativePath(filePath: string, cwd: string): string | undefined {

4949

const resolvedCwd = resolvePath(cwd);

5050

const resolvedPath = resolveAgainstCwd(filePath, resolvedCwd);

5151

const relativePath = relative(resolvedCwd, resolvedPath);