@shareai-lab/kode 1.0.75 → 1.0.76

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shareai-lab/kode",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "bin": {
5
5
  "kode": "cli.js",
6
6
  "kwa": "cli.js",
@@ -113,4 +113,4 @@
113
113
  "terminal",
114
114
  "command-line"
115
115
  ]
116
- }
116
+ }
@@ -1395,9 +1395,9 @@ async function queryAnthropicNative(
1395
1395
  tools.map(async tool =>
1396
1396
  ({
1397
1397
  name: tool.name,
1398
- description: typeof tool.description === 'function'
1399
- ? await tool.description()
1400
- : tool.description,
1398
+ description: await tool.prompt({
1399
+ safeMode: options?.safeMode,
1400
+ }),
1401
1401
  input_schema: zodToJsonSchema(tool.inputSchema),
1402
1402
  }) as unknown as Anthropic.Beta.Messages.BetaTool,
1403
1403
  )