diff --git a/extensions/memory-core/src/short-term-promotion.ts b/extensions/memory-core/src/short-term-promotion.ts index 02c2472178b..24fb54d4d6f 100644 --- a/extensions/memory-core/src/short-term-promotion.ts +++ b/extensions/memory-core/src/short-term-promotion.ts @@ -63,11 +63,6 @@ export const SHORT_TERM_PHASE_SIGNAL_RELATIVE_PATH = path.join( ".dreams", "phase-signals.json", ); -export const SHORT_TERM_LOCK_RELATIVE_PATH = path.join( - "memory", - ".dreams", - "short-term-promotion.lock", -); const SHORT_TERM_LOCK_WAIT_TIMEOUT_MS = 10_000; const SHORT_TERM_LOCK_STALE_MS = 60_000; const SHORT_TERM_LOCK_RETRY_DELAY_MS = 40; diff --git a/src/plugins/command-specs.ts b/src/plugins/command-specs.ts index 3a3e0da7f65..b0f48c99ba6 100644 --- a/src/plugins/command-specs.ts +++ b/src/plugins/command-specs.ts @@ -79,23 +79,6 @@ export function getPluginCommandSpecs( return listProviderPluginCommandSpecs(providerName); } -export function getPluginCommandSpecsFromRegistrations( - commands: readonly PluginCommandRegistration[], - provider?: string, - options: PluginCommandSpecOptions = {}, -): Array<{ - name: string; - description: string; - descriptionLocalizations?: Record; - acceptsArgs: boolean; -}> { - const providerName = normalizeOptionalLowercaseString(provider); - if (!pluginNativeCommandsEnabled(providerName, options)) { - return []; - } - return listProviderPluginCommandSpecsFromRegistrations(commands, providerName); -} - export function getPluginCommandEntrySpecs( provider?: string, options: PluginCommandSpecOptions = {}, @@ -133,21 +116,6 @@ export function listProviderPluginCommandSpecs(provider?: string): Array<{ .map((cmd) => serializePluginCommandSpec(cmd, provider)); } -export function listProviderPluginCommandSpecsFromRegistrations( - commands: readonly PluginCommandRegistration[], - provider?: string, -): Array<{ - name: string; - description: string; - descriptionLocalizations?: Record; - acceptsArgs: boolean; -}> { - return commands - .map((entry) => entry.command) - .filter((cmd) => pluginCommandSupportsChannel(cmd, provider)) - .map((cmd) => serializePluginCommandSpec(cmd, provider)); -} - function serializePluginCommandSpec( cmd: OpenClawPluginCommandDefinition, provider?: string,