@mcpcloud/runtime 0.12.0 → 0.12.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.
@@ -1 +1,17 @@
1
+ /**
2
+ * The known names ranked by bounded edit distance to an unknown one — the
3
+ * tool-name sibling of `suggestPropertyName`.
4
+ *
5
+ * `nearest` is the top `count` names by distance, ties broken alphabetically,
6
+ * so the output is bounded no matter how large the catalog is and identical
7
+ * regardless of registration order. `suggestion` is the best match when it is
8
+ * close enough to say "did you mean"; the threshold is looser than the
9
+ * property suggester's because tool names are long and the ranked list is
10
+ * shown alongside — `listItems` should still surface `listServers` even
11
+ * though nearly half its letters differ.
12
+ */
13
+ export declare function rankClosestNames(unknownName: string, knownNames: readonly string[], count: number): {
14
+ suggestion: string | null;
15
+ nearest: string[];
16
+ };
1
17
  export declare function assertValidInput<T>(toolName: string, schema: Record<string, unknown>, input: unknown): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpcloud/runtime",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "MCPCloud generated-server runtime: transports, config, upstream auth/HTTP, validation, projection, and discovery for MCP servers built on MCPCloud.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",