@ethisyscore/extension-runtime 1.116.1 → 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.
@@ -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,