@webmcp-auto-ui/sdk 2.5.35 → 2.5.36

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": "@webmcp-auto-ui/sdk",
3
- "version": "2.5.35",
3
+ "version": "2.5.36",
4
4
  "description": "Skills CRUD, HyperSkill format, Svelte 5 stores",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -91,7 +91,7 @@ export type { McpDemoServer } from './mcp-demo-servers.js';
91
91
  // import { canvas } from '@webmcp-auto-ui/sdk/canvas'
92
92
 
93
93
  // Recipe runner — markdown-fence parser + JS/TS/SQL/etc executor over MCP
94
- export { parseBody, runCode, estimateTokens, safeStringify } from './recipes/index.js';
94
+ export { parseBody, runCode, estimateTokens, safeStringify, findCodeParamName, buildToolArgs } from './recipes/index.js';
95
95
  export type { ParsedSegment, RunResult, RunLog, RunTab, RecipeData } from './recipes/index.js';
96
96
 
97
97
  // Short URL — domain-dependent compact token
@@ -1,3 +1,3 @@
1
1
  export { parseBody } from './parse.js';
2
- export { runCode, estimateTokens, safeStringify } from './runner.js';
2
+ export { runCode, estimateTokens, safeStringify, findCodeParamName, buildToolArgs } from './runner.js';
3
3
  export type { ParsedSegment, RunResult, RunLog, RunTab, RecipeData } from './types.js';
@@ -70,7 +70,7 @@ interface McpToolDef {
70
70
  * Inspects a tool's inputSchema to find the string parameter that likely
71
71
  * holds the code/script/query. Returns the param name or null.
72
72
  */
73
- function findCodeParamName(schema: unknown): string | null {
73
+ export function findCodeParamName(schema: unknown): string | null {
74
74
  const s = schema as
75
75
  | { properties?: Record<string, { type?: string }>; required?: string[] }
76
76
  | null
@@ -132,7 +132,7 @@ function inferParamValue(
132
132
  * or leaving it unset if nothing can be inferred (MCP will error explicitly
133
133
  * so the user knows what to add).
134
134
  */
135
- function buildToolArgs(
135
+ export function buildToolArgs(
136
136
  schema: unknown,
137
137
  codeParam: string,
138
138
  code: string,