modality-kit 0.7.4 → 0.7.6
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 +176 -168
- package/dist/types/index.d.ts +2 -1
- package/dist/types/schemas/jsonrpc.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4268,174 +4268,6 @@ var fileEntrySchema = exports_external.object({
|
|
|
4268
4268
|
type: exports_external.enum(["file", "directory"]).describe("Entry type"),
|
|
4269
4269
|
lastModified: exports_external.number().optional().nullable().describe("Last modified timestamp in milliseconds since epoch")
|
|
4270
4270
|
});
|
|
4271
|
-
// src/schemas/jsonrpc.ts
|
|
4272
|
-
var exports_jsonrpc = {};
|
|
4273
|
-
__export(exports_jsonrpc, {
|
|
4274
|
-
STANDARD_ERROR_MESSAGES: () => STANDARD_ERROR_MESSAGES,
|
|
4275
|
-
JSONRPC_VERSION: () => JSONRPC_VERSION,
|
|
4276
|
-
JSONRPCUtils: () => JSONRPCUtils,
|
|
4277
|
-
JSONRPCErrorCode: () => JSONRPCErrorCode
|
|
4278
|
-
});
|
|
4279
|
-
var JSONRPC_VERSION = "2.0";
|
|
4280
|
-
var JSONRPCErrorCode;
|
|
4281
|
-
((JSONRPCErrorCode2) => {
|
|
4282
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
|
|
4283
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["INVALID_REQUEST"] = -32600] = "INVALID_REQUEST";
|
|
4284
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["METHOD_NOT_FOUND"] = -32601] = "METHOD_NOT_FOUND";
|
|
4285
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["INVALID_PARAMS"] = -32602] = "INVALID_PARAMS";
|
|
4286
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["INTERNAL_ERROR"] = -32603] = "INTERNAL_ERROR";
|
|
4287
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["SERVER_ERROR_START"] = -32099] = "SERVER_ERROR_START";
|
|
4288
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["SERVER_ERROR_END"] = -32000] = "SERVER_ERROR_END";
|
|
4289
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["TIMEOUT_ERROR"] = -32001] = "TIMEOUT_ERROR";
|
|
4290
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["CONNECTION_ERROR"] = -32002] = "CONNECTION_ERROR";
|
|
4291
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["AUTHENTICATION_ERROR"] = -32003] = "AUTHENTICATION_ERROR";
|
|
4292
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["AUTHORIZATION_ERROR"] = -32004] = "AUTHORIZATION_ERROR";
|
|
4293
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["RATE_LIMIT_ERROR"] = -32005] = "RATE_LIMIT_ERROR";
|
|
4294
|
-
JSONRPCErrorCode2[JSONRPCErrorCode2["VALIDATION_ERROR"] = -32006] = "VALIDATION_ERROR";
|
|
4295
|
-
})(JSONRPCErrorCode ||= {});
|
|
4296
|
-
|
|
4297
|
-
class JSONRPCUtils {
|
|
4298
|
-
static validateMessage(message) {
|
|
4299
|
-
if (Array.isArray(message)) {
|
|
4300
|
-
if (message.length === 0) {
|
|
4301
|
-
return {
|
|
4302
|
-
valid: false,
|
|
4303
|
-
error: {
|
|
4304
|
-
code: -32600 /* INVALID_REQUEST */,
|
|
4305
|
-
message: "Invalid request: batch array cannot be empty"
|
|
4306
|
-
}
|
|
4307
|
-
};
|
|
4308
|
-
}
|
|
4309
|
-
for (const item of message) {
|
|
4310
|
-
const itemValidation = this.validateSingleMessage(item);
|
|
4311
|
-
if (!itemValidation.valid) {
|
|
4312
|
-
return itemValidation;
|
|
4313
|
-
}
|
|
4314
|
-
}
|
|
4315
|
-
return {
|
|
4316
|
-
valid: true,
|
|
4317
|
-
messageType: "batch"
|
|
4318
|
-
};
|
|
4319
|
-
}
|
|
4320
|
-
return this.validateSingleMessage(message);
|
|
4321
|
-
}
|
|
4322
|
-
static validateSingleMessage(message) {
|
|
4323
|
-
if (!message || typeof message !== "object") {
|
|
4324
|
-
return {
|
|
4325
|
-
valid: false,
|
|
4326
|
-
error: {
|
|
4327
|
-
code: -32600 /* INVALID_REQUEST */,
|
|
4328
|
-
message: "Invalid request: message must be an object"
|
|
4329
|
-
}
|
|
4330
|
-
};
|
|
4331
|
-
}
|
|
4332
|
-
if (message.jsonrpc !== JSONRPC_VERSION) {
|
|
4333
|
-
return {
|
|
4334
|
-
valid: false,
|
|
4335
|
-
error: {
|
|
4336
|
-
code: -32600 /* INVALID_REQUEST */,
|
|
4337
|
-
message: `Invalid request: expect ${JSONRPC_VERSION}, received ${message.jsonrpc}`
|
|
4338
|
-
}
|
|
4339
|
-
};
|
|
4340
|
-
}
|
|
4341
|
-
if (!message.method || typeof message.method !== "string") {
|
|
4342
|
-
if ("result" in message || "error" in message) {
|
|
4343
|
-
return {
|
|
4344
|
-
valid: true,
|
|
4345
|
-
messageType: "response"
|
|
4346
|
-
};
|
|
4347
|
-
}
|
|
4348
|
-
return {
|
|
4349
|
-
valid: false,
|
|
4350
|
-
error: {
|
|
4351
|
-
code: -32600 /* INVALID_REQUEST */,
|
|
4352
|
-
message: "Invalid request: method must be a string"
|
|
4353
|
-
}
|
|
4354
|
-
};
|
|
4355
|
-
}
|
|
4356
|
-
const hasId = "id" in message;
|
|
4357
|
-
const messageType = hasId ? "request" : "notification";
|
|
4358
|
-
return {
|
|
4359
|
-
valid: true,
|
|
4360
|
-
messageType
|
|
4361
|
-
};
|
|
4362
|
-
}
|
|
4363
|
-
static createRequest(method, params, id) {
|
|
4364
|
-
return {
|
|
4365
|
-
jsonrpc: JSONRPC_VERSION,
|
|
4366
|
-
method,
|
|
4367
|
-
params,
|
|
4368
|
-
id: id ?? this.generateId()
|
|
4369
|
-
};
|
|
4370
|
-
}
|
|
4371
|
-
static createNotification(method, params) {
|
|
4372
|
-
return {
|
|
4373
|
-
jsonrpc: JSONRPC_VERSION,
|
|
4374
|
-
method,
|
|
4375
|
-
params
|
|
4376
|
-
};
|
|
4377
|
-
}
|
|
4378
|
-
static createSuccessResponse(result, id) {
|
|
4379
|
-
return {
|
|
4380
|
-
jsonrpc: JSONRPC_VERSION,
|
|
4381
|
-
result,
|
|
4382
|
-
id
|
|
4383
|
-
};
|
|
4384
|
-
}
|
|
4385
|
-
static createErrorResponse(error, id) {
|
|
4386
|
-
return {
|
|
4387
|
-
jsonrpc: JSONRPC_VERSION,
|
|
4388
|
-
error,
|
|
4389
|
-
id
|
|
4390
|
-
};
|
|
4391
|
-
}
|
|
4392
|
-
static createError(code, message, data) {
|
|
4393
|
-
return { code, message, data };
|
|
4394
|
-
}
|
|
4395
|
-
static generateId() {
|
|
4396
|
-
return Math.random().toString(36).substring(2) + Date.now().toString(36);
|
|
4397
|
-
}
|
|
4398
|
-
static isRequest(message) {
|
|
4399
|
-
return message && message.jsonrpc === JSONRPC_VERSION && typeof message.method === "string" && "id" in message;
|
|
4400
|
-
}
|
|
4401
|
-
static isNotification(message) {
|
|
4402
|
-
return message && message.jsonrpc === JSONRPC_VERSION && typeof message.method === "string" && !("id" in message);
|
|
4403
|
-
}
|
|
4404
|
-
static isResponse(message) {
|
|
4405
|
-
return message && message.jsonrpc === JSONRPC_VERSION && (("result" in message) || ("error" in message)) && "id" in message;
|
|
4406
|
-
}
|
|
4407
|
-
static isSuccessResponse(response) {
|
|
4408
|
-
return "result" in response;
|
|
4409
|
-
}
|
|
4410
|
-
static isErrorResponse(response) {
|
|
4411
|
-
return "error" in response;
|
|
4412
|
-
}
|
|
4413
|
-
static serialize(message) {
|
|
4414
|
-
return JSON.stringify(message);
|
|
4415
|
-
}
|
|
4416
|
-
static deserialize(data) {
|
|
4417
|
-
try {
|
|
4418
|
-
return JSON.parse(data);
|
|
4419
|
-
} catch {
|
|
4420
|
-
return null;
|
|
4421
|
-
}
|
|
4422
|
-
}
|
|
4423
|
-
}
|
|
4424
|
-
var STANDARD_ERROR_MESSAGES = {
|
|
4425
|
-
[-32700 /* PARSE_ERROR */]: "Parse error",
|
|
4426
|
-
[-32600 /* INVALID_REQUEST */]: "Invalid Request",
|
|
4427
|
-
[-32601 /* METHOD_NOT_FOUND */]: "Method not found",
|
|
4428
|
-
[-32602 /* INVALID_PARAMS */]: "Invalid params",
|
|
4429
|
-
[-32603 /* INTERNAL_ERROR */]: "Internal error",
|
|
4430
|
-
[-32099 /* SERVER_ERROR_START */]: "Server error",
|
|
4431
|
-
[-32000 /* SERVER_ERROR_END */]: "Server error",
|
|
4432
|
-
[-32001 /* TIMEOUT_ERROR */]: "Request timeout",
|
|
4433
|
-
[-32002 /* CONNECTION_ERROR */]: "Connection error",
|
|
4434
|
-
[-32003 /* AUTHENTICATION_ERROR */]: "Authentication required",
|
|
4435
|
-
[-32004 /* AUTHORIZATION_ERROR */]: "Authorization failed",
|
|
4436
|
-
[-32005 /* RATE_LIMIT_ERROR */]: "Rate limit exceeded",
|
|
4437
|
-
[-32006 /* VALIDATION_ERROR */]: "Validation error"
|
|
4438
|
-
};
|
|
4439
4271
|
// src/schemas/schemas_empty.ts
|
|
4440
4272
|
var emptySchema = exports_external.object({}).describe("No parameters required");
|
|
4441
4273
|
// src/util_version.ts
|
|
@@ -5158,6 +4990,182 @@ async function compressWithLanguageDetection(text, maxTokens = DEFAULT_CONFIG.ma
|
|
|
5158
4990
|
compressionLevel: "moderate"
|
|
5159
4991
|
});
|
|
5160
4992
|
}
|
|
4993
|
+
// src/schemas/jsonrpc.ts
|
|
4994
|
+
var exports_jsonrpc = {};
|
|
4995
|
+
__export(exports_jsonrpc, {
|
|
4996
|
+
STANDARD_ERROR_MESSAGES: () => STANDARD_ERROR_MESSAGES,
|
|
4997
|
+
JSONRPC_VERSION: () => JSONRPC_VERSION,
|
|
4998
|
+
JSONRPCUtils: () => JSONRPCUtils,
|
|
4999
|
+
JSONRPCErrorCode: () => JSONRPCErrorCode
|
|
5000
|
+
});
|
|
5001
|
+
var JSONRPC_VERSION = "2.0";
|
|
5002
|
+
var JSONRPCErrorCode;
|
|
5003
|
+
((JSONRPCErrorCode2) => {
|
|
5004
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
|
|
5005
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["INVALID_REQUEST"] = -32600] = "INVALID_REQUEST";
|
|
5006
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["METHOD_NOT_FOUND"] = -32601] = "METHOD_NOT_FOUND";
|
|
5007
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["INVALID_PARAMS"] = -32602] = "INVALID_PARAMS";
|
|
5008
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["INTERNAL_ERROR"] = -32603] = "INTERNAL_ERROR";
|
|
5009
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["SERVER_ERROR_START"] = -32099] = "SERVER_ERROR_START";
|
|
5010
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["SERVER_ERROR_END"] = -32000] = "SERVER_ERROR_END";
|
|
5011
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["TIMEOUT_ERROR"] = -32001] = "TIMEOUT_ERROR";
|
|
5012
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["CONNECTION_ERROR"] = -32002] = "CONNECTION_ERROR";
|
|
5013
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["AUTHENTICATION_ERROR"] = -32003] = "AUTHENTICATION_ERROR";
|
|
5014
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["AUTHORIZATION_ERROR"] = -32004] = "AUTHORIZATION_ERROR";
|
|
5015
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["RATE_LIMIT_ERROR"] = -32005] = "RATE_LIMIT_ERROR";
|
|
5016
|
+
JSONRPCErrorCode2[JSONRPCErrorCode2["VALIDATION_ERROR"] = -32006] = "VALIDATION_ERROR";
|
|
5017
|
+
})(JSONRPCErrorCode ||= {});
|
|
5018
|
+
|
|
5019
|
+
class JSONRPCUtils {
|
|
5020
|
+
static validateMessage(message) {
|
|
5021
|
+
if (Array.isArray(message)) {
|
|
5022
|
+
if (message.length === 0) {
|
|
5023
|
+
return {
|
|
5024
|
+
valid: false,
|
|
5025
|
+
message,
|
|
5026
|
+
error: {
|
|
5027
|
+
code: -32600 /* INVALID_REQUEST */,
|
|
5028
|
+
message: "Invalid request: batch array cannot be empty"
|
|
5029
|
+
}
|
|
5030
|
+
};
|
|
5031
|
+
}
|
|
5032
|
+
for (const item of message) {
|
|
5033
|
+
const itemValidation = this.validateSingleMessage(item);
|
|
5034
|
+
if (!itemValidation.valid) {
|
|
5035
|
+
return itemValidation;
|
|
5036
|
+
}
|
|
5037
|
+
}
|
|
5038
|
+
return {
|
|
5039
|
+
valid: true,
|
|
5040
|
+
message,
|
|
5041
|
+
messageType: "batch"
|
|
5042
|
+
};
|
|
5043
|
+
}
|
|
5044
|
+
return this.validateSingleMessage(message);
|
|
5045
|
+
}
|
|
5046
|
+
static validateSingleMessage(message) {
|
|
5047
|
+
if (!message || typeof message !== "object") {
|
|
5048
|
+
return {
|
|
5049
|
+
valid: false,
|
|
5050
|
+
message,
|
|
5051
|
+
error: {
|
|
5052
|
+
code: -32600 /* INVALID_REQUEST */,
|
|
5053
|
+
message: "Invalid request: message must be an object"
|
|
5054
|
+
}
|
|
5055
|
+
};
|
|
5056
|
+
}
|
|
5057
|
+
if (message.jsonrpc !== JSONRPC_VERSION) {
|
|
5058
|
+
return {
|
|
5059
|
+
valid: false,
|
|
5060
|
+
message,
|
|
5061
|
+
error: {
|
|
5062
|
+
code: -32600 /* INVALID_REQUEST */,
|
|
5063
|
+
message: `Invalid request: expect ${JSONRPC_VERSION}, received ${message.jsonrpc}`
|
|
5064
|
+
}
|
|
5065
|
+
};
|
|
5066
|
+
}
|
|
5067
|
+
if (!message.method || typeof message.method !== "string") {
|
|
5068
|
+
if ("result" in message || "error" in message) {
|
|
5069
|
+
return {
|
|
5070
|
+
valid: true,
|
|
5071
|
+
message,
|
|
5072
|
+
messageType: "response"
|
|
5073
|
+
};
|
|
5074
|
+
}
|
|
5075
|
+
return {
|
|
5076
|
+
valid: false,
|
|
5077
|
+
message,
|
|
5078
|
+
error: {
|
|
5079
|
+
code: -32600 /* INVALID_REQUEST */,
|
|
5080
|
+
message: "Invalid request: method must be a string"
|
|
5081
|
+
}
|
|
5082
|
+
};
|
|
5083
|
+
}
|
|
5084
|
+
const hasId = "id" in message;
|
|
5085
|
+
const messageType = hasId ? "request" : "notification";
|
|
5086
|
+
return {
|
|
5087
|
+
valid: true,
|
|
5088
|
+
message,
|
|
5089
|
+
messageType
|
|
5090
|
+
};
|
|
5091
|
+
}
|
|
5092
|
+
static createRequest(method, params, id) {
|
|
5093
|
+
return {
|
|
5094
|
+
jsonrpc: JSONRPC_VERSION,
|
|
5095
|
+
method,
|
|
5096
|
+
params,
|
|
5097
|
+
id: id ?? this.generateId()
|
|
5098
|
+
};
|
|
5099
|
+
}
|
|
5100
|
+
static createNotification(method, params) {
|
|
5101
|
+
return {
|
|
5102
|
+
jsonrpc: JSONRPC_VERSION,
|
|
5103
|
+
method,
|
|
5104
|
+
params
|
|
5105
|
+
};
|
|
5106
|
+
}
|
|
5107
|
+
static createSuccessResponse(result, id) {
|
|
5108
|
+
return {
|
|
5109
|
+
jsonrpc: JSONRPC_VERSION,
|
|
5110
|
+
result,
|
|
5111
|
+
id
|
|
5112
|
+
};
|
|
5113
|
+
}
|
|
5114
|
+
static createErrorResponse(error, id) {
|
|
5115
|
+
return {
|
|
5116
|
+
jsonrpc: JSONRPC_VERSION,
|
|
5117
|
+
error,
|
|
5118
|
+
id
|
|
5119
|
+
};
|
|
5120
|
+
}
|
|
5121
|
+
static createError(code, message, data) {
|
|
5122
|
+
return { code, message, data };
|
|
5123
|
+
}
|
|
5124
|
+
static generateId() {
|
|
5125
|
+
return Math.random().toString(36).substring(2) + Date.now().toString(36);
|
|
5126
|
+
}
|
|
5127
|
+
static isRequest(message) {
|
|
5128
|
+
return message && message.jsonrpc === JSONRPC_VERSION && typeof message.method === "string" && "id" in message;
|
|
5129
|
+
}
|
|
5130
|
+
static isNotification(message) {
|
|
5131
|
+
return message && message.jsonrpc === JSONRPC_VERSION && typeof message.method === "string" && !("id" in message);
|
|
5132
|
+
}
|
|
5133
|
+
static isResponse(message) {
|
|
5134
|
+
return message && message.jsonrpc === JSONRPC_VERSION && (("result" in message) || ("error" in message)) && "id" in message;
|
|
5135
|
+
}
|
|
5136
|
+
static isSuccessResponse(response) {
|
|
5137
|
+
return "result" in response;
|
|
5138
|
+
}
|
|
5139
|
+
static isErrorResponse(response) {
|
|
5140
|
+
return "error" in response;
|
|
5141
|
+
}
|
|
5142
|
+
static serialize(message) {
|
|
5143
|
+
return JSON.stringify(message);
|
|
5144
|
+
}
|
|
5145
|
+
static deserialize(data) {
|
|
5146
|
+
try {
|
|
5147
|
+
return JSON.parse(data);
|
|
5148
|
+
} catch {
|
|
5149
|
+
return null;
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
}
|
|
5153
|
+
var STANDARD_ERROR_MESSAGES = {
|
|
5154
|
+
[-32700 /* PARSE_ERROR */]: "Parse error",
|
|
5155
|
+
[-32600 /* INVALID_REQUEST */]: "Invalid Request",
|
|
5156
|
+
[-32601 /* METHOD_NOT_FOUND */]: "Method not found",
|
|
5157
|
+
[-32602 /* INVALID_PARAMS */]: "Invalid params",
|
|
5158
|
+
[-32603 /* INTERNAL_ERROR */]: "Internal error",
|
|
5159
|
+
[-32099 /* SERVER_ERROR_START */]: "Server error",
|
|
5160
|
+
[-32000 /* SERVER_ERROR_END */]: "Server error",
|
|
5161
|
+
[-32001 /* TIMEOUT_ERROR */]: "Request timeout",
|
|
5162
|
+
[-32002 /* CONNECTION_ERROR */]: "Connection error",
|
|
5163
|
+
[-32003 /* AUTHENTICATION_ERROR */]: "Authentication required",
|
|
5164
|
+
[-32004 /* AUTHORIZATION_ERROR */]: "Authorization failed",
|
|
5165
|
+
[-32005 /* RATE_LIMIT_ERROR */]: "Rate limit exceeded",
|
|
5166
|
+
[-32006 /* VALIDATION_ERROR */]: "Validation error"
|
|
5167
|
+
};
|
|
5168
|
+
|
|
5161
5169
|
// src/util_pending.ts
|
|
5162
5170
|
var getUUID = () => crypto.randomUUID();
|
|
5163
5171
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,10 +4,11 @@ export { formatErrorResponse, formatSuccessResponse } from "./util_response";
|
|
|
4
4
|
export { getLoggerInstance, type ModalityLogger } from "./util_logger";
|
|
5
5
|
export { withErrorHandling, ErrorCode } from "./util_error";
|
|
6
6
|
export * as SymbolTypes from "./schemas/schemas_symbol";
|
|
7
|
-
export * as JSONRPCTypes from "./schemas/jsonrpc";
|
|
8
7
|
export type { EmptyType } from "./schemas/schemas_empty";
|
|
9
8
|
export { emptySchema } from "./schemas/schemas_empty";
|
|
10
9
|
export { loadVersion } from "./util_version";
|
|
11
10
|
export { compressWithLanguageDetection as compressText } from "./util_text_compression";
|
|
12
11
|
export { JSONRPCCall, createDataPendingOperations } from "./util_pending";
|
|
13
12
|
export type { DataPendingOperation, PendingOperation } from "./util_pending";
|
|
13
|
+
export * as JSONRPCTypes from "./schemas/jsonrpc";
|
|
14
|
+
export type { JSONRPCMessage, JSONRPCRequest, JSONRPCNotification, JSONRPCResponse, JSONRPCBatchRequest, JSONRPCBatchResponse, JSONRPCErrorResponse, } from "./schemas/jsonrpc";
|
|
@@ -136,11 +136,11 @@ export type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCRespo
|
|
|
136
136
|
export interface JSONRPCValidationResult {
|
|
137
137
|
/** Whether the message is valid */
|
|
138
138
|
valid: boolean;
|
|
139
|
+
message: JSONRPCMessage;
|
|
139
140
|
/** Error information if validation failed */
|
|
140
141
|
error?: JSONRPCError;
|
|
141
142
|
/** Parsed message type */
|
|
142
143
|
messageType?: "request" | "notification" | "response" | "batch";
|
|
143
|
-
message?: JSONRPCMessage;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* Utility functions for JSON-RPC message handling
|
package/package.json
CHANGED