refactor: move session skill loader into skills subsystem · openclaw/openclaw@4d46098
shakkernerd
·
2026-05-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,6 +8,8 @@ import type { ResourceDiagnostic } from "./diagnostics.js";
|
8 | 8 | |
9 | 9 | export type { ResourceCollision, ResourceDiagnostic } from "./diagnostics.js"; |
10 | 10 | |
| 11 | +import type { Skill } from "../../skills/session.js"; |
| 12 | +import { loadSkills } from "../../skills/session.js"; |
11 | 13 | import { canonicalizePath, isLocalPath } from "../utils/paths.js"; |
12 | 14 | import { createEventBus, type EventBus } from "./event-bus.js"; |
13 | 15 | import { |
@@ -25,8 +27,6 @@ import { DefaultPackageManager, type PathMetadata } from "./package-manager.js";
|
25 | 27 | import type { PromptTemplate } from "./prompt-templates.js"; |
26 | 28 | import { loadPromptTemplates } from "./prompt-templates.js"; |
27 | 29 | import { SettingsManager } from "./settings-manager.js"; |
28 | | -import type { Skill } from "./skills.js"; |
29 | | -import { loadSkills } from "./skills.js"; |
30 | 30 | import { createSourceInfo, type SourceInfo } from "./source-info.js"; |
31 | 31 | |
32 | 32 | export interface ResourceExtensionPaths { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。