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

推荐订阅源

Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
V
V2EX
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
A
About on SuperTechFans
博客园_首页
L
LangChain Blog
量子位
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium

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
chore(deadcode): remove stale agent helper reexports · op...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -11,14 +11,14 @@ import type { OpenClawConfig } from "../config/config.js";

1111

import { createWarnLogCapture } from "../logging/test-helpers/warn-log-capture.js";

1212

import {

1313

filterToolsByPolicy,

14-

isToolAllowedByPolicyName,

1514

resolveEffectiveToolPolicy,

1615

resolveGroupToolPolicy,

1716

resolveInheritedToolPolicyForSession,

1817

resolveSubagentToolPolicyForSession,

1918

resolveTrustedGroupId,

2019

} from "./agent-tools.policy.js";

2120

import { createStubTool } from "./test-helpers/agent-tool-stubs.js";

21+

import { isToolAllowedByPolicyName } from "./tool-policy-match.js";

2222
2323

vi.mock("../channels/plugins/session-conversation.js", () => ({

2424

resolveSessionConversation: ({ rawId }: { rawId: string }) => ({

Original file line numberDiff line numberDiff line change

@@ -570,5 +570,3 @@ export function resolveGroupToolPolicy(params: {

570570

});

571571

return pickSandboxToolPolicy(configTools);

572572

}

573-
574-

export { isToolAllowedByPolicies, isToolAllowedByPolicyName } from "./tool-policy-match.js";

Original file line numberDiff line numberDiff line change

@@ -7,15 +7,13 @@ import { runAgentLoop, type AgentEvent, type StreamFn } from "openclaw/plugin-sd

77

import { createAssistantMessageEventStream, validateToolArguments } from "openclaw/plugin-sdk/llm";

88

import { Type, type TSchema } from "typebox";

99

import { describe, expect, it, vi } from "vitest";

10+

import { normalizeToolParameterSchema } from "./agent-tools-parameter-schema.js";

1011

import {

1112

isToolWrappedWithBeforeToolCallHook,

1213

testing as beforeToolCallTesting,

1314

wrapToolWithBeforeToolCallHook,

1415

} from "./agent-tools.before-tool-call.js";

15-

import {

16-

normalizeToolParameterSchema,

17-

normalizeToolParameters,

18-

} from "./agent-tools.schema.js";

16+

import { normalizeToolParameters } from "./agent-tools.schema.js";

1917

import type { AnyAgentTool } from "./agent-tools.types.js";

2018
2119

const TEST_USAGE = {

Original file line numberDiff line numberDiff line change

@@ -13,8 +13,6 @@ import type { AnyAgentTool } from "./agent-tools.types.js";

1313

import { copyChannelAgentToolMeta } from "./channel-tools.js";

1414

import { copyToolTerminalPresentation } from "./tool-terminal-presentation.js";

1515
16-

export { normalizeToolParameterSchema };

17-
1816

function isObjectSchemaWithNoRequiredParams(schema: unknown): boolean {

1917

if (!schema || typeof schema !== "object" || Array.isArray(schema)) {

2018

return false;

Original file line numberDiff line numberDiff line change

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

3939

import { applyDeferredFollowupToolDescriptions } from "./agent-tools.deferred-followup.js";

4040

import { filterToolsByMessageProvider } from "./agent-tools.message-provider-policy.js";

4141

import {

42-

isToolAllowedByPolicies,

4342

resolveEffectiveToolPolicy,

4443

resolveGroupToolPolicy,

4544

resolveInheritedToolPolicyForSession,

@@ -93,6 +92,7 @@ import {

9392

import { createToolFsPolicy, resolveToolFsConfig } from "./tool-fs-policy.js";

9493

import { resolveToolLoopDetectionConfig } from "./tool-loop-detection-config.js";

9594

import { buildDeclaredToolAllowlistContext } from "./tool-policy-declared-context.js";

95+

import { isToolAllowedByPolicies } from "./tool-policy-match.js";

9696

import {

9797

applyToolPolicyPipeline,

9898

buildDefaultToolPolicyPipelineSteps,

Original file line numberDiff line numberDiff line change

@@ -2,7 +2,7 @@

22

// validation compatibility for cron jobs.

33

import { Value } from "typebox/value";

44

import { describe, expect, it } from "vitest";

5-

import { normalizeToolParameterSchema } from "../agent-tools.schema.js";

5+

import { normalizeToolParameterSchema } from "../agent-tools-parameter-schema.js";

66

import { createCronToolSchema } from "./cron-tool.js";

77
88

/** Walk a TypeBox schema by dot-separated property path and return sorted keys. */

Original file line numberDiff line numberDiff line change

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

11

import type { OpenClawConfig } from "../config/types.openclaw.js";

22

import {

3-

isToolAllowedByPolicies,

43

resolveEffectiveToolPolicy,

54

resolveGroupToolPolicy,

65

resolveInheritedToolPolicyForSession,

@@ -12,6 +11,7 @@ import {

1211

isSubagentEnvelopeSession,

1312

resolveSubagentCapabilityStore,

1413

} from "./subagent-capabilities.js";

14+

import { isToolAllowedByPolicies } from "./tool-policy-match.js";

1515

import { mergeAlsoAllowPolicy, resolveToolProfilePolicy } from "./tool-policy.js";

1616
1717

export type WebSearchToolPolicyParams = {

Original file line numberDiff line numberDiff line change

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

1717

resolveSessionAgentId,

1818

} from "../../agents/agent-scope.js";

1919

import {

20-

isToolAllowedByPolicies,

2120

resolveEffectiveToolPolicy,

2221

resolveGroupToolPolicy,

2322

resolveInheritedToolPolicyForSession,

@@ -35,6 +34,7 @@ import {

3534

isSubagentEnvelopeSession,

3635

resolveSubagentCapabilityStore,

3736

} from "../../agents/subagent-capabilities.js";

37+

import { isToolAllowedByPolicies } from "../../agents/tool-policy-match.js";

3838

import { mergeAlsoAllowPolicy, resolveToolProfilePolicy } from "../../agents/tool-policy.js";

3939

import {

4040

resolveConversationBindingRecord,