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

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
I
InfoQ
D
Docker
F
Fortinet All Blogs
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
月光博客
月光博客
B
Blog
Engineering at Meta
Engineering at Meta
T
Tailwind CSS Blog
罗磊的独立博客
博客园_首页
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
IT之家
IT之家
V
V2EX

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

@@ -19,7 +19,7 @@ export type DiscordAllowList = {

1919

names: Set<string>;

2020

};

2121
22-

export type DiscordAllowListMatch = AllowlistMatch<"wildcard" | "id" | "name" | "tag">;

22+

type DiscordAllowListMatch = AllowlistMatch<"wildcard" | "id" | "name" | "tag">;

2323
2424

const DISCORD_OWNER_ALLOWLIST_PREFIXES = ["discord:", "user:", "pk:"];

2525

@@ -149,7 +149,7 @@ export function resolveDiscordAllowListMatch(params: {

149149

return { allowed: false };

150150

}

151151
152-

export function resolveDiscordUserAllowed(params: {

152+

function resolveDiscordUserAllowed(params: {

153153

allowList?: string[];

154154

userId: string;

155155

userName?: string;

@@ -500,7 +500,7 @@ export function resolveDiscordShouldRequireMention(params: {

500500

return params.channelConfig?.requireMention ?? params.guildInfo?.requireMention ?? true;

501501

}

502502
503-

export function isDiscordAutoThreadOwnedByBot(params: {

503+

function isDiscordAutoThreadOwnedByBot(params: {

504504

isThread: boolean;

505505

channelConfig?: DiscordChannelConfigResolved | null;

506506

botId?: string | null;

Original file line numberDiff line numberDiff line change

@@ -21,7 +21,7 @@ const DEFAULT_MIN_UPDATE_INTERVAL_MS = 15_000;

2121

const MIN_INTERVAL_MS = 5_000;

2222

const MIN_UPDATE_INTERVAL_MS = 1_000;

2323
24-

export type DiscordAutoPresenceState = "healthy" | "degraded" | "exhausted";

24+

type DiscordAutoPresenceState = "healthy" | "degraded" | "exhausted";

2525
2626

type ResolvedDiscordAutoPresenceConfig = {

2727

enabled: boolean;

@@ -32,7 +32,7 @@ type ResolvedDiscordAutoPresenceConfig = {

3232

exhaustedText?: string;

3333

};

3434
35-

export type DiscordAutoPresenceDecision = {

35+

type DiscordAutoPresenceDecision = {

3636

state: DiscordAutoPresenceState;

3737

unavailableReason?: AuthProfileFailureReason | null;

3838

presence: UpdatePresenceData;

@@ -256,7 +256,7 @@ function stablePresenceSignature(payload: UpdatePresenceData): string {

256256

});

257257

}

258258
259-

export type DiscordAutoPresenceController = {

259+

type DiscordAutoPresenceController = {

260260

start: () => void;

261261

stop: () => void;

262262

refresh: () => void;

Original file line numberDiff line numberDiff line change

@@ -28,7 +28,7 @@ function resolveDiscordChannelNumberPropertySafe(

2828

return typeof value === "number" ? value : undefined;

2929

}

3030
31-

export type DiscordChannelInfoSafe = {

31+

type DiscordChannelInfoSafe = {

3232

name?: string;

3333

topic?: string;

3434

type?: number;

Original file line numberDiff line numberDiff line change

@@ -51,7 +51,7 @@ export function parseExecApprovalData(

5151

};

5252

}

5353
54-

export type ExecApprovalButtonContext = {

54+

type ExecApprovalButtonContext = {

5555

getApprovers: () => string[];

5656

resolveApproval: (

5757

approvalId: string,

Original file line numberDiff line numberDiff line change

@@ -10,7 +10,7 @@ export type DiscordGatewayHandle = Pick<GatewayPlugin, "disconnect"> & {

1010
1111

type GatewaySocketListener = (...args: unknown[]) => void;

1212
13-

export type DiscordGatewaySocket = {

13+

type DiscordGatewaySocket = {

1414

on: (event: "close" | "error", listener: GatewaySocketListener) => unknown;

1515

listeners: (event: "close" | "error") => GatewaySocketListener[];

1616

removeListener: (event: "close" | "error", listener: GatewaySocketListener) => unknown;

Original file line numberDiff line numberDiff line change

@@ -16,7 +16,7 @@ const MAX_DISCORD_GATEWAY_INFO_TIMEOUT_MS = 120_000;

1616

const DISCORD_GATEWAY_INFO_TIMEOUT_ENV = "OPENCLAW_DISCORD_GATEWAY_INFO_TIMEOUT_MS";

1717

const DISCORD_GATEWAY_METADATA_FALLBACK_LOG_INTERVAL_MS = 60_000;

1818
19-

export type DiscordGatewayMetadataResponse = Pick<Response, "ok" | "status" | "text">;

19+

type DiscordGatewayMetadataResponse = Pick<Response, "ok" | "status" | "text">;

2020

export type DiscordGatewayFetchInit = Record<string, unknown> & {

2121

headers?: Record<string, string>;

2222

};

Original file line numberDiff line numberDiff line change

@@ -3,11 +3,7 @@ import { danger } from "openclaw/plugin-sdk/runtime-env";

33

import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";

44

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

55
6-

export type DiscordGatewayEventType =

7-

| "disallowed-intents"

8-

| "fatal"

9-

| "other"

10-

| "reconnect-exhausted";

6+

type DiscordGatewayEventType = "disallowed-intents" | "fatal" | "other" | "reconnect-exhausted";

117
128

export type DiscordGatewayEvent = {

139

type: DiscordGatewayEventType;

Original file line numberDiff line numberDiff line change

@@ -9,7 +9,7 @@ import {

99

type DiscordGuildEntryResolved,

1010

} from "./allow-list.js";

1111
12-

export type DiscordSupplementalContextSender = {

12+

type DiscordSupplementalContextSender = {

1313

id?: string;

1414

name?: string;

1515

tag?: string;

Original file line numberDiff line numberDiff line change

@@ -14,15 +14,9 @@ type DiscordInboundJobRuntimeField =

1414

| "threadBindings"

1515

| "discordRestFetch";

1616
17-

export type DiscordInboundJobRuntime = Pick<

18-

DiscordMessagePreflightContext,

19-

DiscordInboundJobRuntimeField

20-

>;

17+

type DiscordInboundJobRuntime = Pick<DiscordMessagePreflightContext, DiscordInboundJobRuntimeField>;

2118
22-

export type DiscordInboundJobPayload = Omit<

23-

DiscordMessagePreflightContext,

24-

DiscordInboundJobRuntimeField

25-

>;

19+

type DiscordInboundJobPayload = Omit<DiscordMessagePreflightContext, DiscordInboundJobRuntimeField>;

2620
2721

export type DiscordInboundJob = {

2822

queueKey: string;

Original file line numberDiff line numberDiff line change

@@ -25,7 +25,7 @@ export function isBoundThreadBotSystemMessage(params: {

2525

return DISCORD_BOUND_THREAD_SYSTEM_PREFIXES.some((prefix) => text.startsWith(prefix));

2626

}

2727
28-

export type BoundThreadLookupRecordLike = {

28+

type BoundThreadLookupRecordLike = {

2929

webhookId?: string | null;

3030

metadata?: {

3131

webhookId?: string | null;