modality-ai 0.4.0 → 0.5.0
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.js
CHANGED
|
@@ -127019,7 +127019,7 @@ function jsonSchemaToZod(schema2) {
|
|
|
127019
127019
|
return exports_external.any();
|
|
127020
127020
|
}
|
|
127021
127021
|
}
|
|
127022
|
-
var
|
|
127022
|
+
var createStdioClient = (options) => {
|
|
127023
127023
|
const {
|
|
127024
127024
|
command = "bunx",
|
|
127025
127025
|
args: optionArgs = [],
|
|
@@ -127068,7 +127068,7 @@ var setupStdioToHttpTools = async (client, mcpServer) => {
|
|
|
127068
127068
|
export {
|
|
127069
127069
|
setupStdioToHttpTools,
|
|
127070
127070
|
mergeToolCallsAndResults,
|
|
127071
|
-
|
|
127071
|
+
createStdioClient,
|
|
127072
127072
|
createAIChat,
|
|
127073
127073
|
OllamaProvider,
|
|
127074
127074
|
ModalityClient
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createAIChat, mergeToolCallsAndResults, OllamaProvider, } from "./util_ai_model";
|
|
2
2
|
export { ModalityClient } from "./ModalityClient";
|
|
3
|
-
export { setupStdioToHttpTools,
|
|
3
|
+
export { setupStdioToHttpTools, createStdioClient, } from "./setupStdioToHttpTools";
|
|
4
4
|
export type { ModalityClientInstance } from "./ModalityClient";
|
|
5
|
-
export type {
|
|
5
|
+
export type { StdioClientOptions } from "./setupStdioToHttpTools";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ModalityFastMCP, type AITools } from "modality-mcp-kit";
|
|
2
2
|
import { type ModalityClientInstance } from "./ModalityClient";
|
|
3
|
-
export interface
|
|
3
|
+
export interface StdioClientOptions {
|
|
4
4
|
command?: string;
|
|
5
5
|
args?: string[];
|
|
6
6
|
env?: Record<string, string>;
|
|
@@ -8,7 +8,7 @@ export interface StdioToHttpOptions {
|
|
|
8
8
|
timeout?: number;
|
|
9
9
|
quiet?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const createStdioClient: (options?: StdioClientOptions) => ModalityClientInstance;
|
|
12
12
|
/**
|
|
13
13
|
* Setup Chrome DevTools MCP tools
|
|
14
14
|
* Dynamically loads all tools from chrome-devtools-mcp@latest and exposes them as AITools
|
package/package.json
CHANGED