@scottwalker/claude-connector 0.4.6 → 0.4.8

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/dist/index.d.ts CHANGED
@@ -79,10 +79,10 @@ export declare function createSdkMcpServer(options: {
79
79
  *
80
80
  * @example
81
81
  * ```ts
82
- * import { tool } from '@scottwalker/claude-connector'
82
+ * import { sdkTool } from '@scottwalker/claude-connector'
83
83
  * import { z } from 'zod/v4'
84
84
  *
85
- * const myTool = tool('greet', 'Say hello', { name: z.string() },
85
+ * const myTool = await sdkTool('greet', 'Say hello', { name: z.string() },
86
86
  * async ({ name }) => ({ content: [{ type: 'text', text: `Hello ${name}!` }] })
87
87
  * )
88
88
  * ```
package/dist/index.js CHANGED
@@ -100,10 +100,10 @@ export async function createSdkMcpServer(options) {
100
100
  *
101
101
  * @example
102
102
  * ```ts
103
- * import { tool } from '@scottwalker/claude-connector'
103
+ * import { sdkTool } from '@scottwalker/claude-connector'
104
104
  * import { z } from 'zod/v4'
105
105
  *
106
- * const myTool = tool('greet', 'Say hello', { name: z.string() },
106
+ * const myTool = await sdkTool('greet', 'Say hello', { name: z.string() },
107
107
  * async ({ name }) => ({ content: [{ type: 'text', text: `Hello ${name}!` }] })
108
108
  * )
109
109
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scottwalker/claude-connector",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Programmatic Node.js interface for Claude Code CLI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",