Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-ergonex FR-008
What an external module answers to --ergonex-manifest (commons 0001-ergonex FR-008): JSON naming the version of this contract, the module's name and summary and its commands, which a typed decoder checks. Its JSON Schema is made from the same declaration of fields as the decoder, so that a module written in any language can be checked against the schema and ergonex against the decoder, and the two cannot differ. A module that does not answer, or whose answer does not decode, runs as an opaque command.
Source: commons/ergonex/src/modules/external.ts
2 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
function decodeExternalManifest(text: string): Result<ExternalManifest, string>
The module's manifest from the text it printed, or why it is not one: not JSON, not the shape, a name that is not a module name, or a contract this ergonex does not speak.
Imported by 8 tests of the run (8 passed, 0 failed): the library's results
function externalManifestSchema(): JsonObject
The JSON Schema (2020-12) of the answer, from the same fields the decoder checks.
Imported by 8 tests of the run (8 passed, 0 failed): the library's results