@nextclaw/nextclaw-engine-claude-agent-sdk 0.3.0 → 0.3.2

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/index.js +2 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createRequire } from "node:module";
2
2
  import {
3
3
  getApiBase,
4
+ buildRequestedSkillsUserPrompt,
4
5
  getProvider,
5
6
  SkillsLoader
6
7
  } from "@nextclaw/core";
@@ -214,14 +215,7 @@ class PluginClaudeAgentSdkEngine {
214
215
  }
215
216
  const timeout = this.createRequestTimeout(abortController);
216
217
  const queryOptions = this.buildQueryOptions(sessionKey, model, abortController);
217
- const requestedSkillsContent = this.skillsLoader.loadSkillsForContext(requestedSkills);
218
- const prompt = requestedSkillsContent.trim().length > 0 ? [
219
- "## Requested Skills",
220
- "Use the following selected skills for this turn:",
221
- requestedSkillsContent,
222
- "## User Message",
223
- params.content
224
- ].join("\n\n") : params.content;
218
+ const prompt = buildRequestedSkillsUserPrompt(this.skillsLoader, requestedSkills, params.content);
225
219
  const query = sdk.query({
226
220
  prompt,
227
221
  options: queryOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/nextclaw-engine-claude-agent-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "description": "NextClaw Claude Agent SDK engine plugin backed by Anthropic official SDK.",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@anthropic-ai/claude-agent-sdk": "^0.2.63",
26
- "@nextclaw/core": "^0.9.0",
26
+ "@nextclaw/core": "^0.9.12",
27
27
  "zod": "^4.0.0"
28
28
  },
29
29
  "devDependencies": {