@vibe-lark/larkpal 0.1.32 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.mjs +2 -2
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -1727,8 +1727,8 @@ async function createLarkpalAgentAdapter() {
1727
1727
  else log$27.warn("未配置 LARKPAL_AGENT_MCP_SERVER_URL,Agent 无远程工具可用");
1728
1728
  try {
1729
1729
  const { loadSkillsFromDir, registerSkills } = await import("@vibe-lark/larkpal-agent");
1730
- const { createRequire } = await import("node:module");
1731
- const skillsDir = join(createRequire(import.meta.url).resolve("@vibe-lark/larkpal-agent").replace(/\/dist\/index\.js$/, ""), "src", "skills", "definitions");
1730
+ const { fileURLToPath } = await import("node:url");
1731
+ const skillsDir = join(fileURLToPath(import.meta.resolve("@vibe-lark/larkpal-agent")).replace(/\/dist\/index\.js$/, ""), "src", "skills", "definitions");
1732
1732
  const skills = await loadSkillsFromDir(skillsDir);
1733
1733
  if (skills.length > 0 && registry) {
1734
1734
  registerSkills(registry, skills, llm);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-lark/larkpal",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "LarkPal - Lark/Feishu bot service",
5
5
  "type": "module",
6
6
  "main": "./dist/main.mjs",