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

推荐订阅源

博客园 - Franky
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
Y
Y Combinator Blog
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Check Point Blog
M
MIT News - Artificial intelligence
Jina AI
Jina AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
博客园 - 司徒正美
I
InfoQ
Google DeepMind News
Google DeepMind News
GbyAI
GbyAI
U
Unit 42

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 hooks local exports · openclaw/openclaw@4f...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -3,8 +3,6 @@ import {

33

evaluateRuntimeEligibility,

44

hasBinary,

55

isConfigPathTruthyWithDefaults,

6-

resolveConfigPath,

7-

resolveRuntimePlatform,

86

} from "../shared/config-eval.js";

97

import { resolveHookConfig, resolveHookEnableState } from "./policy.js";

108

import type { HookEligibilityContext, HookEntry } from "./types.js";

@@ -15,7 +13,7 @@ const DEFAULT_CONFIG_VALUES: Record<string, boolean> = {

1513

"workspace.dir": true,

1614

};

1715
18-

export { hasBinary, resolveConfigPath, resolveRuntimePlatform };

16+

export { hasBinary };

1917
2018

export function isConfigPathTruthy(config: OpenClawConfig | undefined, pathStr: string): boolean {

2119

return isConfigPathTruthyWithDefaults(config, pathStr, DEFAULT_CONFIG_VALUES);

Original file line numberDiff line numberDiff line change

@@ -14,7 +14,7 @@ export const DEFAULT_GMAIL_SERVE_PORT = 8788;

1414

export const DEFAULT_GMAIL_SERVE_PATH = "/gmail-pubsub";

1515

export const DEFAULT_GMAIL_MAX_BYTES = 20_000;

1616

export const DEFAULT_GMAIL_RENEW_MINUTES = 12 * 60;

17-

export const DEFAULT_HOOKS_PATH = "/hooks";

17+

const DEFAULT_HOOKS_PATH = "/hooks";

1818

const GMAIL_WATCH_SENSITIVE_FLAGS = new Set(["--token", "--hook-url", "--hook-token"]);

1919
2020

export type GmailHookOverrides = {

Original file line numberDiff line numberDiff line change

@@ -13,7 +13,7 @@ import { isPathInsideWithRealpath } from "../security/scan-paths.js";

1313
1414

const log = createSubsystemLogger("hooks");

1515
16-

export type PluginHookDirEntry = {

16+

type PluginHookDirEntry = {

1717

dir: string;

1818

pluginId: string;

1919

};

Original file line numberDiff line numberDiff line change

@@ -4,20 +4,20 @@ import type { HookEntry, HookSource } from "./types.js";

44
55

export type HookEnableStateReason = "disabled in config" | "workspace hook (disabled by default)";

66
7-

export type HookEnableState = {

7+

type HookEnableState = {

88

enabled: boolean;

99

reason?: HookEnableStateReason;

1010

};

1111
12-

export type HookSourcePolicy = {

12+

type HookSourcePolicy = {

1313

precedence: number;

1414

trustedLocalCode: boolean;

1515

defaultEnableMode: "default-on" | "explicit-opt-in";

1616

canOverride: HookSource[];

1717

canBeOverriddenBy: HookSource[];

1818

};

1919
20-

export type HookResolutionCollision = {

20+

type HookResolutionCollision = {

2121

name: string;

2222

kept: HookEntry;

2323

ignored: HookEntry;

@@ -54,7 +54,7 @@ const HOOK_SOURCE_POLICIES: Record<HookSource, HookSourcePolicy> = {

5454

},

5555

};

5656
57-

export function getHookSourcePolicy(source: HookSource): HookSourcePolicy {

57+

function getHookSourcePolicy(source: HookSource): HookSourcePolicy {

5858

return HOOK_SOURCE_POLICIES[source];

5959

}

6060
Original file line numberDiff line numberDiff line change

@@ -223,7 +223,7 @@ export function loadHookEntriesFromDir(params: {

223223

});

224224

}

225225
226-

export function discoverWorkspaceHookEntries(

226+

function discoverWorkspaceHookEntries(

227227

workspaceDir: string,

228228

opts?: {

229229

config?: OpenClawConfig;