@ethisyscore/extension-runtime 1.123.0 → 1.125.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,4 +1,4 @@
1
- import { U as UploadDocumentMeta, d as BridgePushThemeEnvelope, c as BridgePushLocaleEnvelope, b as BridgePushDensityEnvelope, a as BridgePushA11yEnvelope, B as BridgeNavPushEnvelope } from './bridge-envelopes-DAuew-fU.cjs';
1
+ import { U as UploadDocumentMeta, d as BridgePushThemeEnvelope, c as BridgePushLocaleEnvelope, b as BridgePushDensityEnvelope, a as BridgePushA11yEnvelope, B as BridgeNavPushEnvelope } from './bridge-envelopes-M5a42rAy.js';
2
2
 
3
3
  /**
4
4
  * Version-skew detection for host-side MCP calls.
@@ -163,12 +163,27 @@ type McpHttpRequest = {
163
163
  *
164
164
  * Implementations POST to `mcp/modules/{moduleKey}/operations/{operationKey}/invoke` with
165
165
  * `{ argumentsJson, fallbackToolName }`, which answers the same shape the tool route does.
166
+ * When `fallbackArgs` is present they add `fallbackArgumentsJson` alongside; a host that
167
+ * omits it leaves the fallback rung with the canonical arguments, which is what every
168
+ * call did before the field existed.
166
169
  */
167
170
  kind: "invokeOperation";
168
171
  moduleKey: string;
169
172
  operationKey: string;
170
173
  fallbackToolName: string;
171
174
  args: unknown;
175
+ /**
176
+ * Arguments used ONLY if `fallbackToolName` answers, because an in-house fallback tool
177
+ * need not declare the canonical field names - `hr:get-employee-absences` wants
178
+ * `employeeIds` where the canonical operation says `personIds`. The browser twin of
179
+ * `ModuleFallback`'s second argument on the backend.
180
+ *
181
+ * Additive and optional: `undefined` means "send the canonical arguments to the fallback
182
+ * too". It carries no authority and cannot change which tool runs - the tool NAME is
183
+ * still `fallbackToolName`, which the host checks against the calling extension's
184
+ * installed manifest before the fallback rung runs.
185
+ */
186
+ fallbackArgs?: unknown;
172
187
  capabilityToken: string;
173
188
  signal?: AbortSignal;
174
189
  } | McpUploadRequest;
@@ -1,4 +1,4 @@
1
- import { U as UploadDocumentMeta, d as BridgePushThemeEnvelope, c as BridgePushLocaleEnvelope, b as BridgePushDensityEnvelope, a as BridgePushA11yEnvelope, B as BridgeNavPushEnvelope } from './bridge-envelopes-DAuew-fU.js';
1
+ import { U as UploadDocumentMeta, d as BridgePushThemeEnvelope, c as BridgePushLocaleEnvelope, b as BridgePushDensityEnvelope, a as BridgePushA11yEnvelope, B as BridgeNavPushEnvelope } from './bridge-envelopes-M5a42rAy.cjs';
2
2
 
3
3
  /**
4
4
  * Version-skew detection for host-side MCP calls.
@@ -163,12 +163,27 @@ type McpHttpRequest = {
163
163
  *
164
164
  * Implementations POST to `mcp/modules/{moduleKey}/operations/{operationKey}/invoke` with
165
165
  * `{ argumentsJson, fallbackToolName }`, which answers the same shape the tool route does.
166
+ * When `fallbackArgs` is present they add `fallbackArgumentsJson` alongside; a host that
167
+ * omits it leaves the fallback rung with the canonical arguments, which is what every
168
+ * call did before the field existed.
166
169
  */
167
170
  kind: "invokeOperation";
168
171
  moduleKey: string;
169
172
  operationKey: string;
170
173
  fallbackToolName: string;
171
174
  args: unknown;
175
+ /**
176
+ * Arguments used ONLY if `fallbackToolName` answers, because an in-house fallback tool
177
+ * need not declare the canonical field names - `hr:get-employee-absences` wants
178
+ * `employeeIds` where the canonical operation says `personIds`. The browser twin of
179
+ * `ModuleFallback`'s second argument on the backend.
180
+ *
181
+ * Additive and optional: `undefined` means "send the canonical arguments to the fallback
182
+ * too". It carries no authority and cannot change which tool runs - the tool NAME is
183
+ * still `fallbackToolName`, which the host checks against the calling extension's
184
+ * installed manifest before the fallback rung runs.
185
+ */
186
+ fallbackArgs?: unknown;
172
187
  capabilityToken: string;
173
188
  signal?: AbortSignal;
174
189
  } | McpUploadRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethisyscore/extension-runtime",
3
- "version": "1.123.0",
3
+ "version": "1.125.0",
4
4
  "description": "Host + plugin runtime for EthisysCore Contract A (host-rendered) and Contract B (worker remote-runtime) extensions.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -44,7 +44,7 @@
44
44
  "lint": "tsc --noEmit"
45
45
  },
46
46
  "dependencies": {
47
- "@ethisyscore/protocol": "0.60.0",
47
+ "@ethisyscore/protocol": "0.61.0",
48
48
  "@remote-dom/core": "^1.11.1",
49
49
  "@remote-dom/react": "^1.2.2",
50
50
  "react-reconciler": "^0.29.2",