zephyr-xpack-internal 0.0.0-canary-20250529190441 → 0.0.0-canary-20250603193009
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.
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBuildStats = getBuildStats;
|
|
4
4
|
const zephyr_agent_1 = require("zephyr-agent");
|
|
5
|
+
const xpack_extract_1 = require("../xpack-extract");
|
|
5
6
|
const extract_federation_config_1 = require("../xpack-extract/extract-federation-config");
|
|
6
7
|
const FederationDashboardPlugin_1 = require("./utils/federation-dashboard-plugin/FederationDashboardPlugin");
|
|
7
8
|
async function getBuildStats({ stats, stats_json, pluginOptions, EDGE_URL, DOMAIN, PLATFORM, TYPE, DELIMITER: delimiter = undefined, }) {
|
|
8
9
|
(0, zephyr_agent_1.ze_log)('get build stats started. create federation dashboard plugin');
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const {
|
|
12
|
-
const { isCI } = ze_engine.env;
|
|
10
|
+
const app = pluginOptions.zephyr_engine.applicationProperties;
|
|
11
|
+
const { git } = pluginOptions.zephyr_engine.gitProperties;
|
|
12
|
+
const { isCI } = pluginOptions.zephyr_engine.env;
|
|
13
13
|
const dashboardPlugin = new FederationDashboardPlugin_1.FederationDashboardPlugin({
|
|
14
14
|
app,
|
|
15
15
|
git,
|
|
@@ -26,15 +26,16 @@ async function getBuildStats({ stats, stats_json, pluginOptions, EDGE_URL, DOMAI
|
|
|
26
26
|
if (!convertedGraph) {
|
|
27
27
|
throw new zephyr_agent_1.ZephyrError(zephyr_agent_1.ZeErrors.ERR_CONVERT_GRAPH_TO_DASHBOARD);
|
|
28
28
|
}
|
|
29
|
-
const version = await
|
|
30
|
-
const application_uid =
|
|
31
|
-
const buildId = await
|
|
29
|
+
const version = await pluginOptions.zephyr_engine.snapshotId;
|
|
30
|
+
const application_uid = pluginOptions.zephyr_engine.application_uid;
|
|
31
|
+
const buildId = await pluginOptions.zephyr_engine.build_id;
|
|
32
32
|
// todo: add support for multiple federation configs
|
|
33
33
|
const mfConfig = Array.isArray(pluginOptions.mfConfig)
|
|
34
34
|
? pluginOptions.mfConfig[0]
|
|
35
35
|
: pluginOptions.mfConfig;
|
|
36
|
-
const { name, filename } = mfConfig
|
|
37
|
-
|
|
36
|
+
const { name, filename, remotes } = mfConfig
|
|
37
|
+
? ((0, extract_federation_config_1.extractFederatedConfig)(mfConfig) ?? {})
|
|
38
|
+
: {};
|
|
38
39
|
const data_overrides = {
|
|
39
40
|
id: application_uid,
|
|
40
41
|
name: name,
|
|
@@ -46,7 +47,7 @@ async function getBuildStats({ stats, stats_json, pluginOptions, EDGE_URL, DOMAI
|
|
|
46
47
|
version,
|
|
47
48
|
git,
|
|
48
49
|
remote: filename,
|
|
49
|
-
remotes: remotes
|
|
50
|
+
remotes: (0, xpack_extract_1.parseRemotesAsEntries)(remotes).map(([remote_name]) => remote_name),
|
|
50
51
|
context: { isCI },
|
|
51
52
|
};
|
|
52
53
|
// todo: extend data
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-build-stats.js","sourceRoot":"","sources":["../../src/federation-dashboard-legacy/get-build-stats.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"get-build-stats.js","sourceRoot":"","sources":["../../src/federation-dashboard-legacy/get-build-stats.ts"],"names":[],"mappings":";;AAkBA,sCA2EC;AA5FD,+CAA6D;AAE7D,oDAAyD;AACzD,0FAAoF;AAEpF,6GAA0G;AAYnG,KAAK,UAAU,aAAa,CAA2C,EAC5E,KAAK,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,SAAS,EAAE,SAAS,GAAG,SAAS,GAOjC;IACC,IAAA,qBAAM,EAAC,6DAA6D,CAAC,CAAC;IACtE,MAAM,GAAG,GAAG,aAAa,CAAC,aAAa,CAAC,qBAAqB,CAAC;IAC9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,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC;QACxC,OAAO;QACP,GAAG;QACH,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,IAAA,qCAAqB,EAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC;QAC3E,OAAO,EAAE,EAAE,IAAI,EAAE;KAClB,CAAC;IAEF,oBAAoB;IAEpB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE;QAC5D,OAAO,EAAE,IAAI,EAAE,+BAA+B;QAC9C,IAAI,EAAE,EAAE,EAAE,wDAAwD;KACnE,CAAqB,CAAC;IACvB,IAAA,qBAAM,EAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;IACrC,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-xpack-internal",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20250603193009",
|
|
4
4
|
"description": "Xpack internals for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@module-federation/automatic-vendor-federation": "^1.2.1",
|
|
20
20
|
"is-ci": "^4.1.0",
|
|
21
21
|
"tslib": "^2.8.1",
|
|
22
|
-
"zephyr-agent": "0.0.0-canary-
|
|
23
|
-
"zephyr-edge-contract": "0.0.0-canary-
|
|
22
|
+
"zephyr-agent": "0.0.0-canary-20250603193009",
|
|
23
|
+
"zephyr-edge-contract": "0.0.0-canary-20250603193009"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/is-ci": "3.0.4",
|