modality-kit 0.12.9 → 0.12.11
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
|
@@ -5604,7 +5604,8 @@ class JSONRPCManager extends JSONRPCCall {
|
|
|
5604
5604
|
return JSONRPCUtils.createError(-32603 /* INTERNAL_ERROR */, STANDARD_ERROR_MESSAGES[-32603 /* INTERNAL_ERROR */], { originalError: error.message });
|
|
5605
5605
|
}
|
|
5606
5606
|
sendMessage(message, options) {
|
|
5607
|
-
console.warn("JSONRPCManager.sendMessage not implemented - message not sent:"
|
|
5607
|
+
console.warn("JSONRPCManager.sendMessage not implemented - message not sent:");
|
|
5608
|
+
console.dir({ message, options }, { depth: null, color: true });
|
|
5608
5609
|
}
|
|
5609
5610
|
sendNotification(method, params, options) {
|
|
5610
5611
|
const notification = JSONRPCUtils.createNotification(method, params);
|
|
@@ -5672,6 +5673,8 @@ class JSONRPCManager extends JSONRPCCall {
|
|
|
5672
5673
|
this.methods.clear();
|
|
5673
5674
|
}
|
|
5674
5675
|
}
|
|
5676
|
+
// src/util_tests/isTestEnvironment.ts
|
|
5677
|
+
var isTestEnvironment = globalThis.Bun?.main?.includes?.("test");
|
|
5675
5678
|
// src/websocket-client.ts
|
|
5676
5679
|
var logger3 = getLoggerInstance("WebSocket-Client");
|
|
5677
5680
|
|
|
@@ -5939,8 +5942,6 @@ class LruCache {
|
|
|
5939
5942
|
this.values.set(key, value);
|
|
5940
5943
|
}
|
|
5941
5944
|
}
|
|
5942
|
-
// src/util_tests/isTestEnvironment.ts
|
|
5943
|
-
var isTestEnvironment = globalThis.Bun?.main?.includes?.("test");
|
|
5944
5945
|
export {
|
|
5945
5946
|
withErrorHandling,
|
|
5946
5947
|
setupAITools,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,14 +10,17 @@ export { loadVersion } from "./util_version";
|
|
|
10
10
|
export { compressWithLanguageDetection as compressText } from "./util_text_compression";
|
|
11
11
|
export { JSONRPCCall, createDataPendingOperations } from "./util_pending";
|
|
12
12
|
export type { DataPendingOperation, PendingOperation } from "./util_pending";
|
|
13
|
+
/**
|
|
14
|
+
* JSON RPC related exports
|
|
15
|
+
*/
|
|
13
16
|
export { JSONRPCUtils } from "./JSONRPCUtils";
|
|
14
|
-
export { JSONRPCErrorCode } from "./schemas/jsonrpc";
|
|
15
|
-
export type { JSONRPCMessage, JSONRPCRequest, JSONRPCNotification, JSONRPCResponse, JSONRPCBatchRequest, JSONRPCBatchResponse, JSONRPCErrorResponse, JSONRPCValidationResult, JSONRPCError, JSONRPCParams, CommandExecuteParams, NotificationSendParams, } from "./schemas/jsonrpc";
|
|
16
17
|
export { JSONRPCManager } from "./jsonrpc-manager";
|
|
18
|
+
export { JSONRPCErrorCode } from "./schemas/jsonrpc";
|
|
17
19
|
export type { JSONRPCManagerEvents, JSONRPCManagerConfig, } from "./jsonrpc-manager";
|
|
18
|
-
export {
|
|
19
|
-
export { LruCache } from "./lruCache";
|
|
20
|
+
export type { JSONRPCMessage, JSONRPCRequest, JSONRPCNotification, JSONRPCResponse, JSONRPCBatchRequest, JSONRPCBatchResponse, JSONRPCErrorResponse, JSONRPCValidationResult, JSONRPCError, JSONRPCParams, CommandExecuteParams, NotificationSendParams, } from "./schemas/jsonrpc";
|
|
20
21
|
/**
|
|
21
22
|
* For test tool
|
|
22
23
|
*/
|
|
23
24
|
export { isTestEnvironment } from "./util_tests/isTestEnvironment";
|
|
25
|
+
export { WebSocketClient } from "./websocket-client";
|
|
26
|
+
export { LruCache } from "./lruCache";
|
|
@@ -84,7 +84,7 @@ export declare class JSONRPCManager<TContext> extends JSONRPCCall {
|
|
|
84
84
|
/**
|
|
85
85
|
* Send a JSON-RPC notification (no response expected)
|
|
86
86
|
*/
|
|
87
|
-
sendNotification(method: string, params: any, options: TContext): void;
|
|
87
|
+
protected sendNotification(method: string, params: any, options: TContext): void;
|
|
88
88
|
/**
|
|
89
89
|
* Register a JSON-RPC method
|
|
90
90
|
*/
|
|
@@ -98,7 +98,7 @@ export declare enum JSONRPCErrorCode {
|
|
|
98
98
|
* This ensures strict JSON-RPC 2.0 compliance and wire protocol compatibility.
|
|
99
99
|
* See: https://www.jsonrpc.org/specification#parameter_structures
|
|
100
100
|
*/
|
|
101
|
-
export type JSONRPCParams =
|
|
101
|
+
export type JSONRPCParams = Record<any, any> | any[] | null;
|
|
102
102
|
/**
|
|
103
103
|
* JSON-RPC 2.0 ID type - string, number, or null
|
|
104
104
|
*/
|
package/package.json
CHANGED