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

推荐订阅源

月光博客
月光博客
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
MyScale Blog
MyScale Blog
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
N
Netflix TechBlog - Medium
MongoDB | Blog
MongoDB | Blog
I
InfoQ
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Help Net Security

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 unused extension helpers · openclaw/opencl...
steipete · 2026-05-01 · via Recent Commits to openclaw:main

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

11

import { formatInboundFromLabel as formatInboundFromLabelShared } from "openclaw/plugin-sdk/channel-inbound";

2-

import { createDedupeCache, type OpenClawConfig } from "openclaw/plugin-sdk/core";

2+

import { createDedupeCache } from "openclaw/plugin-sdk/core";

33

import { resolveThreadSessionKeys as resolveThreadSessionKeysShared } from "openclaw/plugin-sdk/routing";

4-

import {

5-

normalizeLowercaseStringOrEmpty,

6-

normalizeOptionalString,

7-

} from "openclaw/plugin-sdk/text-runtime";

84

import { rawDataToString } from "openclaw/plugin-sdk/webhook-ingress";

95106

export { createDedupeCache, rawDataToString };

@@ -17,51 +13,8 @@ export type ResponsePrefixContext = {

1713

identityName?: string;

1814

};

191520-

export function extractShortModelName(fullModel: string): string {

21-

const slash = fullModel.lastIndexOf("/");

22-

const modelPart = slash >= 0 ? fullModel.slice(slash + 1) : fullModel;

23-

return modelPart.replace(/-\d{8}$/, "").replace(/-latest$/, "");

24-

}

25-2616

export const formatInboundFromLabel = formatInboundFromLabelShared;

271728-

function normalizeAgentId(value: string | undefined | null): string {

29-

const trimmed = (value ?? "").trim();

30-

if (!trimmed) {

31-

return "main";

32-

}

33-

if (/^[a-z0-9][a-z0-9_-]{0,63}$/i.test(trimmed)) {

34-

return trimmed;

35-

}

36-

return (

37-

normalizeLowercaseStringOrEmpty(trimmed)

38-

.replace(/[^a-z0-9_-]+/g, "-")

39-

.replace(/^-+/, "")

40-

.replace(/-+$/, "")

41-

.slice(0, 64) || "main"

42-

);

43-

}

44-45-

type AgentEntry = NonNullable<NonNullable<OpenClawConfig["agents"]>["list"]>[number];

46-47-

function isAgentEntry(entry: unknown): entry is AgentEntry {

48-

return Boolean(entry && typeof entry === "object");

49-

}

50-51-

function listAgents(cfg: OpenClawConfig): AgentEntry[] {

52-

return Array.isArray(cfg.agents?.list) ? cfg.agents.list.filter(isAgentEntry) : [];

53-

}

54-55-

function resolveAgentEntry(cfg: OpenClawConfig, agentId: string): AgentEntry | undefined {

56-

const id = normalizeAgentId(agentId);

57-

return listAgents(cfg).find((entry) => normalizeAgentId(entry.id) === id);

58-

}

59-60-

export function resolveIdentityName(cfg: OpenClawConfig, agentId: string): string | undefined {

61-

const entry = resolveAgentEntry(cfg, agentId);

62-

return normalizeOptionalString(entry?.identity?.name);

63-

}

64-6518

export function resolveThreadSessionKeys(params: {

6619

baseSessionKey: string;

6720

threadId?: string | null;