@module-federation/observability-plugin 0.0.0-feat-operate-openruntime-20260729082849 → 0.0.0-feat-operate-openruntime-20260729120109

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @module-federation/observability-plugin
2
2
 
3
- ## 0.0.0-feat-operate-openruntime-20260729082849
3
+ ## 0.0.0-feat-operate-openruntime-20260729120109
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -11,7 +11,7 @@
11
11
  - bdb1531: Extend the existing Bridge render and destroy hooks with semantic context, add a route synchronization hook, and keep timing, sanitization, and correlation in the observability plugin.
12
12
  - 6317f28: Extend the semantic shared registration and resolution hooks with explicit load context, while keeping provider, candidate, and selection diagnostics in the observability plugin and ignoring legacy share-scope metadata.
13
13
  - 2b5f837: Extend the semantic manifest, remote entry, and preload hooks with resource context and results, while keeping cache, timing, timeout, failure, and recovery diagnostics in the observability plugin.
14
- - @module-federation/sdk@0.0.0-feat-operate-openruntime-20260729082849
14
+ - @module-federation/sdk@0.0.0-feat-operate-openruntime-20260729120109
15
15
 
16
16
  ## 2.5.5
17
17
 
package/dist/browser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_core = require('./core-D19HkX4x.js');
2
+ const require_core = require('./core-g-_ChGdB.js');
3
3
 
4
4
  //#region src/browser.ts
5
5
  function ObservabilityPlugin(options = {}) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_core = require('./core-D19HkX4x.js');
2
+ const require_core = require('./core-g-_ChGdB.js');
3
3
 
4
4
  //#region src/chrome-devtool.ts
5
5
  function ChromeObservabilityPlugin(options = {}) {
@@ -73,7 +73,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
73
73
  }
74
74
  }
75
75
  },
76
- getInputOptions: (inputName) => getReportInputOptions(inputName, reportReader),
77
76
  handler: (payload) => listReports(reportReader, payload)
78
77
  });
79
78
  runtime.registerAction({
@@ -103,7 +102,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
103
102
  description: "Report trace id."
104
103
  } }
105
104
  },
106
- getInputOptions: (inputName) => getReportInputOptions(inputName, reportReader),
107
105
  handler: (payload) => {
108
106
  const traceId = getPayloadString(payload, "traceId");
109
107
  const report = traceId ? reportReader.getReport(traceId) : void 0;
@@ -127,7 +125,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
127
125
  description: "Report trace id. When omitted, exports latest report."
128
126
  } }
129
127
  },
130
- getInputOptions: (inputName) => getReportInputOptions(inputName, reportReader),
131
128
  handler: (payload) => {
132
129
  const traceId = getPayloadString(payload, "traceId");
133
130
  const report = reportReader.exportReport(traceId);
@@ -173,7 +170,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
173
170
  }
174
171
  }
175
172
  },
176
- getInputOptions: (inputName) => getFederationModuleInfoInputOptions(inputName, reportReader.getRuntimeState()),
177
173
  handler: (payload) => getFederationModuleInfoActionResult(payload, reportReader.getRuntimeState())
178
174
  });
179
175
  runtime.registerAction({
@@ -212,7 +208,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
212
208
  }
213
209
  }
214
210
  },
215
- getInputOptions: (inputName) => getFederationInstanceInputOptions(inputName, reportReader.getRuntimeState()),
216
211
  handler: (payload) => getFederationInstanceConfigActionResult(payload, reportReader.getRuntimeState())
217
212
  });
218
213
  registeredActionRuntimes.add(runtime);
@@ -271,13 +266,6 @@ function createReportSummary(report) {
271
266
  errorMessage: report.errorMessage
272
267
  });
273
268
  }
274
- function getReportInputOptions(inputName, reportReader) {
275
- if (inputName !== "traceId") return [];
276
- return reportReader.getReports({ limit: 20 }).map((report) => ({
277
- value: report.traceId,
278
- description: report.remote?.name || report.shared?.name || report.requestAlias || report.requestId || report.summary.outcome
279
- }));
280
- }
281
269
  function getFederationGlobalSummary(runtimeState) {
282
270
  return {
283
271
  available: true,
@@ -319,14 +307,6 @@ function getFederationModuleInfoActionResult(payload, runtimeState) {
319
307
  moduleInfo: runtimeState.moduleInfo
320
308
  });
321
309
  }
322
- function getFederationModuleInfoInputOptions(inputName, runtimeState) {
323
- if (inputName !== "key" && inputName !== "name" && inputName !== "instanceRef") return [];
324
- if (inputName === "instanceRef") return runtimeState.instances.map((instance) => ({
325
- value: instance.instanceRef,
326
- description: instance.optionsName || instance.name || instance.instanceRef
327
- }));
328
- return runtimeState.moduleInfo.map((entry) => ({ value: entry.key }));
329
- }
330
310
  function getFederationInstanceConfigActionResult(payload, runtimeState) {
331
311
  const instanceRef = getPayloadString(payload, "instanceRef");
332
312
  const name = getPayloadString(payload, "name");
@@ -348,13 +328,6 @@ function getFederationInstanceConfigActionResult(payload, runtimeState) {
348
328
  instance
349
329
  };
350
330
  }
351
- function getFederationInstanceInputOptions(inputName, runtimeState) {
352
- if (inputName !== "name" && inputName !== "index" && inputName !== "instanceRef") return [];
353
- return runtimeState.instances.map((instance, index) => ({
354
- value: inputName === "instanceRef" ? instance.instanceRef : inputName === "index" ? index : instance.optionsName || instance.name || instance.instanceRef,
355
- description: `${instance.optionsName || instance.name || "unnamed"} (${instance.instanceRef})`
356
- }));
357
- }
358
331
  function createInstanceCandidate(instance) {
359
332
  return compactObject$1({
360
333
  instanceRef: instance.instanceRef,
@@ -1,4 +1,4 @@
1
- import { t as createObservability } from "./core-DffQtfV3.js";
1
+ import { t as createObservability } from "./core-DsPVxJ5T.js";
2
2
 
3
3
  //#region src/browser.ts
4
4
  function ObservabilityPlugin(options = {}) {
@@ -1,4 +1,4 @@
1
- import { t as createObservability } from "./core-DffQtfV3.js";
1
+ import { t as createObservability } from "./core-DsPVxJ5T.js";
2
2
 
3
3
  //#region src/chrome-devtool.ts
4
4
  function ChromeObservabilityPlugin(options = {}) {
@@ -72,7 +72,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
72
72
  }
73
73
  }
74
74
  },
75
- getInputOptions: (inputName) => getReportInputOptions(inputName, reportReader),
76
75
  handler: (payload) => listReports(reportReader, payload)
77
76
  });
78
77
  runtime.registerAction({
@@ -102,7 +101,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
102
101
  description: "Report trace id."
103
102
  } }
104
103
  },
105
- getInputOptions: (inputName) => getReportInputOptions(inputName, reportReader),
106
104
  handler: (payload) => {
107
105
  const traceId = getPayloadString(payload, "traceId");
108
106
  const report = traceId ? reportReader.getReport(traceId) : void 0;
@@ -126,7 +124,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
126
124
  description: "Report trace id. When omitted, exports latest report."
127
125
  } }
128
126
  },
129
- getInputOptions: (inputName) => getReportInputOptions(inputName, reportReader),
130
127
  handler: (payload) => {
131
128
  const traceId = getPayloadString(payload, "traceId");
132
129
  const report = reportReader.exportReport(traceId);
@@ -172,7 +169,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
172
169
  }
173
170
  }
174
171
  },
175
- getInputOptions: (inputName) => getFederationModuleInfoInputOptions(inputName, reportReader.getRuntimeState()),
176
172
  handler: (payload) => getFederationModuleInfoActionResult(payload, reportReader.getRuntimeState())
177
173
  });
178
174
  runtime.registerAction({
@@ -211,7 +207,6 @@ function registerDivebellActions(runtime, source, reportReader, registeredAction
211
207
  }
212
208
  }
213
209
  },
214
- getInputOptions: (inputName) => getFederationInstanceInputOptions(inputName, reportReader.getRuntimeState()),
215
210
  handler: (payload) => getFederationInstanceConfigActionResult(payload, reportReader.getRuntimeState())
216
211
  });
217
212
  registeredActionRuntimes.add(runtime);
@@ -270,13 +265,6 @@ function createReportSummary(report) {
270
265
  errorMessage: report.errorMessage
271
266
  });
272
267
  }
273
- function getReportInputOptions(inputName, reportReader) {
274
- if (inputName !== "traceId") return [];
275
- return reportReader.getReports({ limit: 20 }).map((report) => ({
276
- value: report.traceId,
277
- description: report.remote?.name || report.shared?.name || report.requestAlias || report.requestId || report.summary.outcome
278
- }));
279
- }
280
268
  function getFederationGlobalSummary(runtimeState) {
281
269
  return {
282
270
  available: true,
@@ -318,14 +306,6 @@ function getFederationModuleInfoActionResult(payload, runtimeState) {
318
306
  moduleInfo: runtimeState.moduleInfo
319
307
  });
320
308
  }
321
- function getFederationModuleInfoInputOptions(inputName, runtimeState) {
322
- if (inputName !== "key" && inputName !== "name" && inputName !== "instanceRef") return [];
323
- if (inputName === "instanceRef") return runtimeState.instances.map((instance) => ({
324
- value: instance.instanceRef,
325
- description: instance.optionsName || instance.name || instance.instanceRef
326
- }));
327
- return runtimeState.moduleInfo.map((entry) => ({ value: entry.key }));
328
- }
329
309
  function getFederationInstanceConfigActionResult(payload, runtimeState) {
330
310
  const instanceRef = getPayloadString(payload, "instanceRef");
331
311
  const name = getPayloadString(payload, "name");
@@ -347,13 +327,6 @@ function getFederationInstanceConfigActionResult(payload, runtimeState) {
347
327
  instance
348
328
  };
349
329
  }
350
- function getFederationInstanceInputOptions(inputName, runtimeState) {
351
- if (inputName !== "name" && inputName !== "index" && inputName !== "instanceRef") return [];
352
- return runtimeState.instances.map((instance, index) => ({
353
- value: inputName === "instanceRef" ? instance.instanceRef : inputName === "index" ? index : instance.optionsName || instance.name || instance.instanceRef,
354
- description: `${instance.optionsName || instance.name || "unnamed"} (${instance.instanceRef})`
355
- }));
356
- }
357
330
  function createInstanceCandidate(instance) {
358
331
  return compactObject$1({
359
332
  instanceRef: instance.instanceRef,
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createObservability } from "./core-DffQtfV3.js";
1
+ import { t as createObservability } from "./core-DsPVxJ5T.js";
2
2
  import { ObservabilityPlugin } from "./browser.js";
3
3
  import { ChromeObservabilityPlugin } from "./chrome-devtool.js";
4
4
 
package/dist/esm/node.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createObservability } from "./core-DffQtfV3.js";
1
+ import { t as createObservability } from "./core-DsPVxJ5T.js";
2
2
 
3
3
  //#region src/node.ts
4
4
  const DEFAULT_NODE_DIRECTORY = ".mf/observability";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_core = require('./core-D19HkX4x.js');
2
+ const require_core = require('./core-g-_ChGdB.js');
3
3
  const require_browser = require('./browser.js');
4
4
  const require_chrome_devtool = require('./chrome-devtool.js');
5
5
 
package/dist/node.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_core = require('./core-D19HkX4x.js');
2
+ const require_core = require('./core-g-_ChGdB.js');
3
3
 
4
4
  //#region src/node.ts
5
5
  const DEFAULT_NODE_DIRECTORY = ".mf/observability";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/observability-plugin",
3
- "version": "0.0.0-feat-operate-openruntime-20260729082849",
3
+ "version": "0.0.0-feat-operate-openruntime-20260729120109",
4
4
  "author": "module-federation",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -66,12 +66,12 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/semver": "^7.5.8",
69
- "@module-federation/runtime": "0.0.0-feat-operate-openruntime-20260729082849"
69
+ "@module-federation/runtime": "0.0.0-feat-operate-openruntime-20260729120109"
70
70
  },
71
71
  "dependencies": {
72
- "@divebell/core": "0.0.2",
72
+ "@divebell/core": "0.0.3",
73
73
  "semver": "^7.7.4",
74
- "@module-federation/sdk": "0.0.0-feat-operate-openruntime-20260729082849"
74
+ "@module-federation/sdk": "0.0.0-feat-operate-openruntime-20260729120109"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "tsdown --config tsdown.config.ts && cp *.md dist",