openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
32 lines (31 loc) • 1.04 kB
JavaScript
import { t as createLazyImportLoader } from "./lazy-promise-DiCvjz9w.mjs";
//#region src/skills/runtime/cron-snapshot.ts
const skillsSnapshotRuntimeLoader = createLazyImportLoader(() => import("./cron-snapshot.runtime.js"));
async function resolveCronSkillsSnapshot(e) {
if (e.isFastTestEnv) return e.existingSnapshot ?? {
prompt: "",
skills: []
};
const t = await skillsSnapshotRuntimeLoader.load();
const n = t.resolveEffectiveAgentSkillFilter(e.config, e.agentId);
const r = await t.resolveNodeExecEligibilityAsync({
cfg: e.config,
agentId: e.agentId
});
return (await t.resolveReusableWorkspaceSkillSnapshot({
workspaceDir: e.workspaceDir,
config: e.config,
agentId: e.agentId,
existingSnapshot: e.existingSnapshot,
librarySelections: e.librarySelections,
skillFilter: n,
resolveEligibility: () => ({
nodeSkills: r,
remote: t.getRemoteSkillEligibility({ advertiseExecNode: r.canExec })
}),
watch: false,
hydrateExisting: false
})).snapshot;
}
//#endregion
export { resolveCronSkillsSnapshot as t };