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

推荐订阅源

博客园 - 叶小钗
D
Docker
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Recent Announcements
Recent Announcements
GbyAI
GbyAI
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
L
LangChain Blog
A
About on SuperTechFans
M
MIT News - Artificial intelligence
B
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
refactor: trim discord helper exports · openclaw/openclaw...
steipete · 2026-05-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -160,7 +160,7 @@ function resolveDiscordAccountTokenOwner(params: {

160160

return owner?.accountId;

161161

}

162162
163-

export function resolveDiscordDuplicateTokenOwner(params: {

163+

function resolveDiscordDuplicateTokenOwner(params: {

164164

cfg: OpenClawConfig;

165165

account: ResolvedDiscordAccount;

166166

}): string | undefined {

Original file line numberDiff line numberDiff line change

@@ -121,7 +121,7 @@ function getDiscordApiRetryAfterMs(

121121

return Math.min(Math.max(0, err.retryAfter * 1000), retryConfig.maxDelayMs);

122122

}

123123
124-

export type DiscordFetchOptions = {

124+

type DiscordFetchOptions = {

125125

retry?: RetryConfig;

126126

label?: string;

127127

};

Original file line numberDiff line numberDiff line change

@@ -160,7 +160,7 @@ function createDiscordApproverDmTargetResolver(configOverride?: DiscordExecAppro

160160

});

161161

}

162162
163-

export function createDiscordApprovalCapability(configOverride?: DiscordExecApprovalConfig | null) {

163+

function createDiscordApprovalCapability(configOverride?: DiscordExecApprovalConfig | null) {

164164

return createApproverRestrictedNativeApprovalCapability({

165165

channel: "discord",

166166

channelLabel: "Discord",

Original file line numberDiff line numberDiff line change

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

66

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

77

import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";

88
9-

export type DiscordChannelPermissionsAuditEntry = {

9+

type DiscordChannelPermissionsAuditEntry = {

1010

channelId: string;

1111

ok: boolean;

1212

missing?: string[];

@@ -35,7 +35,7 @@ function shouldAuditChannelConfig(config: DiscordGuildChannelConfig | undefined)

3535

return true;

3636

}

3737
38-

export function listConfiguredGuildChannelKeys(

38+

function listConfiguredGuildChannelKeys(

3939

guilds: Record<string, DiscordGuildEntry> | undefined,

4040

): string[] {

4141

if (!guilds) {

Original file line numberDiff line numberDiff line change

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

11

import { chunkMarkdownTextWithMode, type ChunkMode } from "openclaw/plugin-sdk/reply-chunking";

22
3-

export type ChunkDiscordTextOpts = {

3+

type ChunkDiscordTextOpts = {

44

/** Max characters per Discord message. Default: 2000. */

55

maxChars?: number;

66

/**

Original file line numberDiff line numberDiff line change

@@ -12,7 +12,7 @@ const DISCORD_STREAM_MAX_CHARS = 2000;

1212

const DEFAULT_THROTTLE_MS = 1200;

1313

const DISCORD_PREVIEW_ALLOWED_MENTIONS = { parse: [] };

1414
15-

export type DiscordDraftStream = {

15+

type DiscordDraftStream = {

1616

update: (text: string) => void;

1717

flush: () => Promise<void>;

1818

messageId: () => string | undefined;

Original file line numberDiff line numberDiff line change

@@ -51,7 +51,7 @@ export type DiscordInteractiveHandlerRegistration = PluginInteractiveRegistratio

5151

"discord"

5252

>;

5353
54-

export type DiscordInteractiveDispatchContext = Omit<

54+

type DiscordInteractiveDispatchContext = Omit<

5555

DiscordInteractiveHandlerContext,

5656

| "interaction"

5757

| "respond"

Original file line numberDiff line numberDiff line change

@@ -11,7 +11,7 @@ type DiscordSendRuntime = typeof import("./send.js");

1111
1212

export type DiscordSendFn = DiscordSendRuntime["sendMessageDiscord"];

1313

export type DiscordVoiceSendFn = DiscordSendRuntime["sendVoiceMessageDiscord"];

14-

export type DiscordFormattingOptions = {

14+

type DiscordFormattingOptions = {

1515

textLimit?: number;

1616

maxLinesPerMessage?: number;

1717

tableMode?: NonNullable<Parameters<DiscordSendFn>[2]>["tableMode"];

Original file line numberDiff line numberDiff line change

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

1-

export type DiscordPreviewStreamMode = "off" | "partial" | "block";

1+

type DiscordPreviewStreamMode = "off" | "partial" | "block";

22
33

function parsePreviewStreamingMode(value: unknown): DiscordPreviewStreamMode | undefined {

44

return value === "off" || value === "partial" || value === "block" ? value : undefined;

Original file line numberDiff line numberDiff line change

@@ -6,7 +6,7 @@ import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";

66

import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";

77

import type { ResolvedDiscordAccount } from "./accounts.js";

88
9-

export function resolveDiscordProxyUrl(

9+

function resolveDiscordProxyUrl(

1010

account: Pick<ResolvedDiscordAccount, "config">,

1111

cfg: OpenClawConfig,

1212

): string | undefined {

@@ -22,7 +22,7 @@ export function resolveDiscordProxyUrl(

2222

return trimmed || undefined;

2323

}

2424
25-

export function resolveDiscordProxyFetchByUrl(

25+

function resolveDiscordProxyFetchByUrl(

2626

proxyUrl: string | undefined,

2727

runtime?: Pick<RuntimeEnv, "error">,

2828

): typeof fetch | undefined {