@ethisyscore/extension-runtime 1.117.0 → 1.118.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/host/index.cjs +90 -1
- package/dist/host/index.cjs.map +1 -1
- package/dist/host/index.d.cts +10 -2
- package/dist/host/index.d.ts +10 -2
- package/dist/host/index.js +90 -1
- package/dist/host/index.js.map +1 -1
- package/dist/mock-host/cli.cjs +50 -1
- package/dist/mock-host/cli.cjs.map +1 -1
- package/dist/mock-host/cli.d.cts +1 -1
- package/dist/mock-host/cli.d.ts +1 -1
- package/dist/mock-host/cli.js +50 -1
- package/dist/mock-host/cli.js.map +1 -1
- package/dist/plugin/index.cjs +11 -1
- package/dist/plugin/index.cjs.map +1 -1
- package/dist/plugin/index.js +11 -1
- package/dist/plugin/index.js.map +1 -1
- package/dist/{transport-Cjpb_qPo.d.cts → transport-DDPhdaXn.d.cts} +28 -0
- package/dist/{transport-B9mwIXYs.d.ts → transport-pNTjXJ3R.d.ts} +28 -0
- package/package.json +1 -1
package/dist/plugin/index.cjs
CHANGED
|
@@ -661,6 +661,8 @@ function classifyHostError(err) {
|
|
|
661
661
|
// src/plugin/createPortMcpTransport.ts
|
|
662
662
|
var WIRE_INVOKE_TOOL_REQUEST = "ethisys:mcp:invokeTool";
|
|
663
663
|
var WIRE_INVOKE_TOOL_RESULT = "ethisys:mcp:invokeTool:result";
|
|
664
|
+
var WIRE_INVOKE_OPERATION_REQUEST = "ethisys:mcp:invokeOperation";
|
|
665
|
+
var WIRE_INVOKE_OPERATION_RESULT = "ethisys:mcp:invokeOperation:result";
|
|
664
666
|
var WIRE_GET_RESOURCE_REQUEST = "ethisys:mcp:getResource";
|
|
665
667
|
var WIRE_GET_RESOURCE_RESULT = "ethisys:mcp:getResource:result";
|
|
666
668
|
var WIRE_UPLOAD_DOCUMENT_REQUEST = "ethisys:mcp:uploadDocument";
|
|
@@ -671,7 +673,7 @@ function isMcpResultEnvelope(value) {
|
|
|
671
673
|
return false;
|
|
672
674
|
}
|
|
673
675
|
const v = value;
|
|
674
|
-
return (v.type === WIRE_INVOKE_TOOL_RESULT || v.type === WIRE_GET_RESOURCE_RESULT || v.type === WIRE_UPLOAD_DOCUMENT_RESULT) && typeof v.id === "string";
|
|
676
|
+
return (v.type === WIRE_INVOKE_TOOL_RESULT || v.type === WIRE_INVOKE_OPERATION_RESULT || v.type === WIRE_GET_RESOURCE_RESULT || v.type === WIRE_UPLOAD_DOCUMENT_RESULT) && typeof v.id === "string";
|
|
675
677
|
}
|
|
676
678
|
function createPortMcpTransport(port, options = {}) {
|
|
677
679
|
if (port === void 0 || port === null) {
|
|
@@ -735,6 +737,14 @@ function createPortMcpTransport(port, options = {}) {
|
|
|
735
737
|
const data = await send(WIRE_INVOKE_TOOL_REQUEST, { name, args }, signal);
|
|
736
738
|
return data;
|
|
737
739
|
},
|
|
740
|
+
async invokeOperation(moduleKey, operationKey, fallbackToolName, args, signal) {
|
|
741
|
+
const data = await send(
|
|
742
|
+
WIRE_INVOKE_OPERATION_REQUEST,
|
|
743
|
+
{ moduleKey, operationKey, fallbackToolName, args },
|
|
744
|
+
signal
|
|
745
|
+
);
|
|
746
|
+
return data;
|
|
747
|
+
},
|
|
738
748
|
async uploadDocument(meta, buffer, signal) {
|
|
739
749
|
const data = await send(
|
|
740
750
|
WIRE_UPLOAD_DOCUMENT_REQUEST,
|