@ethisyscore/extension-runtime 1.122.0 → 1.124.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.
@@ -1,6 +1,6 @@
1
1
  import { SduiNode } from '@ethisyscore/protocol';
2
- import { h as WorkerCtor, M as McpHttpClient, k as WorkerRemoteDomTransport } from '../transport-DDPhdaXn.cjs';
3
- import '../bridge-envelopes-DAuew-fU.cjs';
2
+ import { h as WorkerCtor, M as McpHttpClient, k as WorkerRemoteDomTransport } from '../transport-UaoDRdm3.cjs';
3
+ import '../bridge-envelopes-M5a42rAy.cjs';
4
4
 
5
5
  /**
6
6
  * `npx mock-host <dir>` — standalone declarative-mock-host dev server.
@@ -1,6 +1,6 @@
1
1
  import { SduiNode } from '@ethisyscore/protocol';
2
- import { h as WorkerCtor, M as McpHttpClient, k as WorkerRemoteDomTransport } from '../transport-pNTjXJ3R.js';
3
- import '../bridge-envelopes-DAuew-fU.js';
2
+ import { h as WorkerCtor, M as McpHttpClient, k as WorkerRemoteDomTransport } from '../transport-CFzJQiFG.js';
3
+ import '../bridge-envelopes-M5a42rAy.js';
4
4
 
5
5
  /**
6
6
  * `npx mock-host <dir>` — standalone declarative-mock-host dev server.
@@ -529,6 +529,7 @@ var WorkerRemoteDomTransport = class {
529
529
  operationKey: message.operationKey,
530
530
  fallbackToolName: message.fallbackToolName,
531
531
  args: message.args,
532
+ fallbackArgs: message.fallbackArgs,
532
533
  capabilityToken: token,
533
534
  signal: this.requestSignal(message.id)
534
535
  });
@@ -984,7 +985,13 @@ var defaultMockMcpClient = {
984
985
  module: req.moduleKey,
985
986
  operation: req.operationKey,
986
987
  tool: req.fallbackToolName,
987
- args: req.args
988
+ // Echoes what the FALLBACK tool would actually receive, which is the whole
989
+ // point of a mock host that answers as the fallback: a surface that supplies
990
+ // fallback-specific arguments because its in-house tool does not speak
991
+ // canonical must be able to see them here rather than discover the mismatch
992
+ // in production, where the fallback rung answers every call.
993
+ args: req.fallbackArgs ?? req.args,
994
+ fallbackArgs: req.fallbackArgs
988
995
  } : { resource: req.uri };
989
996
  return { ok: true, data: { mockHost: true, ...echo } };
990
997
  }