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

推荐订阅源

J
Java Code Geeks
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
M
MIT News - Artificial intelligence
G
Google Developers Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
MyScale Blog
MyScale Blog
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
爱范儿
爱范儿
罗磊的独立博客
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
Vercel News
Vercel News
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
C
Check Point Blog
美团技术团队
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

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: call cron service directly for plugin scheduled...
steipete · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -2,6 +2,7 @@ import { primeConfiguredBindingRegistry } from "../channels/plugins/binding-regi

22

import { applyPluginAutoEnable } from "../config/plugin-auto-enable.js";

33

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

44

import type { PluginLookUpTable } from "../plugins/plugin-lookup-table.js";

5+

import type { PluginRegistryParams } from "../plugins/registry-types.js";

56

import type { PluginRegistry } from "../plugins/registry.js";

67

import { pinActivePluginChannelRegistry } from "../plugins/runtime.js";

78

import {

@@ -35,6 +36,7 @@ type GatewayPluginBootstrapParams = {

3536

log: GatewayPluginBootstrapLog;

3637

coreGatewayHandlers?: Record<string, GatewayRequestHandler>;

3738

coreGatewayMethodNames?: readonly string[];

39+

hostServices?: PluginRegistryParams["hostServices"];

3840

baseMethods: string[];

3941

pluginIds?: string[];

4042

pluginLookUpTable?: PluginLookUpTable;

@@ -102,6 +104,9 @@ export function prepareGatewayPluginLoad(params: GatewayPluginBootstrapParams) {

102104

...(params.coreGatewayMethodNames !== undefined && {

103105

coreGatewayMethodNames: params.coreGatewayMethodNames,

104106

}),

107+

...(params.hostServices !== undefined && {

108+

hostServices: params.hostServices,

109+

}),

105110

baseMethods: params.baseMethods,

106111

pluginIds: params.pluginIds,

107112

pluginLookUpTable: params.pluginLookUpTable,

Original file line numberDiff line numberDiff line change

@@ -8,6 +8,7 @@ import { clearActivatedPluginRuntimeState, loadOpenClawPlugins } from "../plugin

88

import { loadPluginLookUpTable, type PluginLookUpTable } from "../plugins/plugin-lookup-table.js";

99

import { getPluginModuleLoaderStats } from "../plugins/plugin-module-loader-cache.js";

1010

import { createEmptyPluginRegistry } from "../plugins/registry-empty.js";

11+

import type { PluginRegistryParams } from "../plugins/registry-types.js";

1112

import { setActivePluginRegistry } from "../plugins/runtime.js";

1213

import { getPluginRuntimeGatewayRequestScope } from "../plugins/runtime/gateway-request-scope.js";

1314

import { createPluginRuntimeLoaderLogger } from "../plugins/runtime/load-context.js";

@@ -527,6 +528,7 @@ export function loadGatewayPlugins(params: {

527528

};

528529

coreGatewayHandlers?: Record<string, GatewayRequestHandler>;

529530

coreGatewayMethodNames?: readonly string[];

531+

hostServices?: PluginRegistryParams["hostServices"];

530532

baseMethods: string[];

531533

pluginIds?: string[];

532534

pluginLookUpTable?: PluginLookUpTable;

@@ -616,6 +618,9 @@ export function loadGatewayPlugins(params: {

616618

...(params.coreGatewayMethodNames !== undefined && {

617619

coreGatewayMethodNames: params.coreGatewayMethodNames,

618620

}),

621+

...(params.hostServices !== undefined && {

622+

hostServices: params.hostServices,

623+

}),

619624

runtimeOptions: {

620625

allowGatewaySubagentBinding: true,

621626

},

Original file line numberDiff line numberDiff line change

@@ -4,6 +4,7 @@ import { applyPluginAutoEnable } from "../config/plugin-auto-enable.js";

44

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

55

import { loadPluginLookUpTable } from "../plugins/plugin-lookup-table.js";

66

import type { PluginMetadataSnapshot } from "../plugins/plugin-metadata-snapshot.js";

7+

import type { PluginRegistryParams } from "../plugins/registry-types.js";

78

import { createEmptyPluginRegistry } from "../plugins/registry.js";

89

import { getActivePluginRegistry, setActivePluginRegistry } from "../plugins/runtime.js";

910

import { mergeActivationSectionsIntoRuntimeConfig } from "./plugin-activation-runtime-config.js";

@@ -151,6 +152,7 @@ export async function loadGatewayStartupPluginRuntime(params: {

151152

workspaceDir: string;

152153

log: GatewayPluginBootstrapLog;

153154

baseMethods: string[];

155+

hostServices?: PluginRegistryParams["hostServices"];

154156

startupPluginIds: string[];

155157

pluginLookUpTable?: ReturnType<typeof loadPluginLookUpTable>;

156158

preferSetupRuntimeForChannelPlugins?: boolean;

@@ -165,6 +167,9 @@ export async function loadGatewayStartupPluginRuntime(params: {

165167

log: params.log,

166168

coreGatewayMethodNames: params.baseMethods,

167169

baseMethods: params.baseMethods,

170+

...(params.hostServices !== undefined && {

171+

hostServices: params.hostServices,

172+

}),

168173

pluginIds: params.startupPluginIds,

169174

pluginLookUpTable: params.pluginLookUpTable,

170175

preferSetupRuntimeForChannelPlugins: params.preferSetupRuntimeForChannelPlugins,

Original file line numberDiff line numberDiff line change

@@ -882,6 +882,11 @@ export async function startGatewayServer(

882882

gatewayMethods: listActiveGatewayMethods(baseGatewayMethods),

883883

});

884884

deps.cron = runtimeState.cronState.cron;

885+

const pluginHostServices = {

886+

get cron() {

887+

return runtimeState.cronState.cron;

888+

},

889+

};

885890
886891

let closePreludeStarted = false;

887892

let postReadyMaintenanceTimer: ReturnType<typeof setTimeout> | null = null;

@@ -1177,6 +1182,7 @@ export async function startGatewayServer(

11771182

workspaceDir: defaultWorkspaceDir,

11781183

log,

11791184

coreGatewayMethodNames: baseMethods,

1185+

hostServices: pluginHostServices,

11801186

baseMethods,

11811187

pluginLookUpTable: nextPluginLookUpTable,

11821188

});

@@ -1307,6 +1313,7 @@ export async function startGatewayServer(

13071313

workspaceDir: defaultWorkspaceDir,

13081314

log,

13091315

coreGatewayMethodNames: baseMethods,

1316+

hostServices: pluginHostServices,

13101317

baseMethods,

13111318

pluginIds: startupPluginIds,

13121319

pluginLookUpTable,

@@ -1415,6 +1422,7 @@ export async function startGatewayServer(

14151422

workspaceDir: defaultWorkspaceDir,

14161423

log,

14171424

baseMethods,

1425+

hostServices: pluginHostServices,

14181426

startupPluginIds,

14191427

pluginLookUpTable,

14201428

startupTrace,

Original file line numberDiff line numberDiff line change

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

1+

import type { PluginRegistryParams } from "../../plugins/registry-types.js";

12

import type { OpenClawPluginApi } from "../plugin-entry.js";

23

import {

34

createPluginRecord,

@@ -13,7 +14,10 @@ import { uniqueSortedStrings } from "./string-utils.js";

1314
1415

export { registerProviders, requireProvider, uniqueSortedStrings };

1516
16-

export function createPluginRegistryFixture(config = {} as OpenClawConfig) {

17+

export function createPluginRegistryFixture(

18+

config = {} as OpenClawConfig,

19+

params: { hostServices?: PluginRegistryParams["hostServices"] } = {},

20+

) {

1721

return {

1822

config,

1923

registry: createPluginRegistry({

@@ -24,6 +28,7 @@ export function createPluginRegistryFixture(config = {} as OpenClawConfig) {

2428

debug() {},

2529

},

2630

runtime: {} as PluginRuntime,

31+

...(params.hostServices ? { hostServices: params.hostServices } : {}),

2732

}),

2833

};

2934

}