@rockcarver/frodo-cli 4.2.1-2 → 4.3.1
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/CHANGELOG.md +22 -1
- package/dist/app.cjs +27 -18
- package/dist/app.cjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [4.3.0] - 2026-07-25
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Added `frodo config-manager pull iga-workflows` for exporting IGA workflow definitions from cloud IGA tenants.
|
|
15
|
+
- Added `frodo config-manager push restart` to restart the environment when pending ESV updates need to be applied.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Updated CLI color handling to use `tinyrainbow`.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- Fixed `frodo journey prune` failing in environments with v2 nodes after the frodo-lib journey prune fix.
|
|
24
|
+
- Updated workflow export handling for `frodo config-manager pull iga-workflows` to match the latest frodo-lib workflow export fixes.
|
|
25
|
+
- Fixed the linux-arm64 binary release build by updating the Node.js version used for packaging.
|
|
26
|
+
|
|
27
|
+
## [4.2.1-2] - 2026-07-25
|
|
28
|
+
|
|
10
29
|
## [4.2.1-1] - 2026-07-25
|
|
11
30
|
|
|
12
31
|
## [4.2.1-0] - 2026-07-24
|
|
@@ -2383,7 +2402,9 @@ Frodo CLI 2.x automatically refreshes session and access tokens before they expi
|
|
|
2383
2402
|
- Fixed problem with adding connection profiles
|
|
2384
2403
|
- Miscellaneous bug fixes
|
|
2385
2404
|
|
|
2386
|
-
[unreleased]: https://github.com/rockcarver/frodo-cli/compare/v4.
|
|
2405
|
+
[unreleased]: https://github.com/rockcarver/frodo-cli/compare/v4.3.0...HEAD
|
|
2406
|
+
[4.3.0]: https://github.com/rockcarver/frodo-cli/compare/v4.2.1-2...v4.3.0
|
|
2407
|
+
[4.2.1-2]: https://github.com/rockcarver/frodo-cli/compare/v4.2.1-1...v4.2.1-2
|
|
2387
2408
|
[4.2.1-1]: https://github.com/rockcarver/frodo-cli/compare/v4.2.1-0...v4.2.1-1
|
|
2388
2409
|
[4.2.1-0]: https://github.com/rockcarver/frodo-cli/compare/v4.2.0...v4.2.1-0
|
|
2389
2410
|
[4.2.0]: https://github.com/rockcarver/frodo-cli/compare/v4.1.0...v4.2.0
|
package/dist/app.cjs
CHANGED
|
@@ -278141,6 +278141,14 @@ _chunkDLBJL7R2cjs.init_cjs_shims.call(void 0, );
|
|
|
278141
278141
|
// src/ops/OAuth2ClientOps.ts
|
|
278142
278142
|
_chunkDLBJL7R2cjs.init_cjs_shims.call(void 0, );
|
|
278143
278143
|
|
|
278144
|
+
|
|
278145
|
+
// src/ops/utils/ArrayFormat.js
|
|
278146
|
+
_chunkDLBJL7R2cjs.init_cjs_shims.call(void 0, );
|
|
278147
|
+
function formatOptionalStringArray(values3, delimiter = "\n") {
|
|
278148
|
+
return Array.isArray(values3) ? values3.join(delimiter) : "";
|
|
278149
|
+
}
|
|
278150
|
+
|
|
278151
|
+
// src/ops/OAuth2ClientOps.ts
|
|
278144
278152
|
var {
|
|
278145
278153
|
getTypedFilename: getTypedFilename25,
|
|
278146
278154
|
titleCase: titleCase9,
|
|
@@ -278185,16 +278193,17 @@ async function listOAuth2Clients(long = false) {
|
|
|
278185
278193
|
"urn:ietf:params:oauth:grant-type:jwt-bearer": "JWT Bearer"
|
|
278186
278194
|
};
|
|
278187
278195
|
clients.forEach((client) => {
|
|
278196
|
+
const grantTypes = _optionalChain([client, 'access', _1354 => _1354.advancedOAuth2ClientConfig, 'access', _1355 => _1355.grantTypes, 'optionalAccess', _1356 => _1356.map, 'call', _1357 => _1357((type) => _nullishCoalesce(grantTypesMap[type], () => ( type)))]);
|
|
278188
278197
|
table.push([
|
|
278189
278198
|
client._id,
|
|
278190
278199
|
client.coreOAuth2ClientConfig.status === "Active" ? y2.greenBright("Active") : y2.cyanBright(client.coreOAuth2ClientConfig.status),
|
|
278191
278200
|
client.coreOAuth2ClientConfig.clientType,
|
|
278192
|
-
|
|
278193
|
-
|
|
278194
|
-
|
|
278201
|
+
formatOptionalStringArray(grantTypes),
|
|
278202
|
+
formatOptionalStringArray(
|
|
278203
|
+
client.coreOAuth2ClientConfig.scopes
|
|
278195
278204
|
),
|
|
278196
|
-
|
|
278197
|
-
|
|
278205
|
+
formatOptionalStringArray(
|
|
278206
|
+
client.coreOAuth2ClientConfig.redirectionUris
|
|
278198
278207
|
)
|
|
278199
278208
|
// wordwrap(client.description, 30),
|
|
278200
278209
|
]);
|
|
@@ -278781,7 +278790,7 @@ async function importServiceFromFile(serviceId, file2, options = {
|
|
|
278781
278790
|
);
|
|
278782
278791
|
const data2 = fs58.default.readFileSync(filePath, "utf8");
|
|
278783
278792
|
const importData = JSON.parse(data2);
|
|
278784
|
-
if (_optionalChain([importData, 'optionalAccess',
|
|
278793
|
+
if (_optionalChain([importData, 'optionalAccess', _1358 => _1358.service, 'access', _1359 => _1359[serviceId]])) {
|
|
278785
278794
|
await importService2(serviceId, importData, options);
|
|
278786
278795
|
stopProgressIndicator2(
|
|
278787
278796
|
indicatorId,
|
|
@@ -280063,7 +280072,7 @@ async function listRealms(long = false) {
|
|
|
280063
280072
|
} catch (error52) {
|
|
280064
280073
|
printMessage2(error52, "error");
|
|
280065
280074
|
printMessage2(`Error listing realms: ${error52.message}`, "error");
|
|
280066
|
-
printMessage2(_optionalChain([error52, 'access',
|
|
280075
|
+
printMessage2(_optionalChain([error52, 'access', _1360 => _1360.response, 'optionalAccess', _1361 => _1361.data]), "error");
|
|
280067
280076
|
}
|
|
280068
280077
|
}
|
|
280069
280078
|
async function exportRealmById(realmId, file2, includeMeta = true) {
|
|
@@ -284348,7 +284357,7 @@ function createFrodoCompleter(rootBindings, docsByMethod, onMethodHint) {
|
|
|
284348
284357
|
const tokenMatch = line.match(
|
|
284349
284358
|
/([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*\.?)$/
|
|
284350
284359
|
);
|
|
284351
|
-
const token2 = _nullishCoalesce(_optionalChain([tokenMatch, 'optionalAccess',
|
|
284360
|
+
const token2 = _nullishCoalesce(_optionalChain([tokenMatch, 'optionalAccess', _1362 => _1362[1]]), () => ( ""));
|
|
284352
284361
|
if (!token2) return [[], line];
|
|
284353
284362
|
const rootCandidates = Object.keys(rootBindings).filter(
|
|
284354
284363
|
(rootName2) => rootName2.startsWith(token2)
|
|
@@ -284404,7 +284413,7 @@ function buildDocsByMethod(frodoInstance) {
|
|
|
284404
284413
|
function registerOpenParenHint(replServer, rootBindings, docsByMethod, onHint) {
|
|
284405
284414
|
process.stdin.on("keypress", (_char, key) => {
|
|
284406
284415
|
const char = typeof _char === "string" ? _char : "";
|
|
284407
|
-
const sequence = _nullishCoalesce(_optionalChain([key, 'optionalAccess',
|
|
284416
|
+
const sequence = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _1363 => _1363.sequence]), () => ( ""));
|
|
284408
284417
|
if (sequence !== "(" && char !== "(") return;
|
|
284409
284418
|
const currentLine = _nullishCoalesce(replServer["line"], () => ( ""));
|
|
284410
284419
|
const match2 = currentLine.match(
|
|
@@ -284557,7 +284566,7 @@ function createHelpContext(frodoInstance) {
|
|
|
284557
284566
|
console.log(`${BOLD}Factory helpers:${RESET2}`);
|
|
284558
284567
|
for (const fn of sortedFns) {
|
|
284559
284568
|
const docs = idx.get(fn);
|
|
284560
|
-
const sigHint = _optionalChain([docs, 'optionalAccess',
|
|
284569
|
+
const sigHint = _optionalChain([docs, 'optionalAccess', _1364 => _1364.length]) ? ` ${DIM2}${docs[0].signature}${RESET2}` : "";
|
|
284561
284570
|
console.log(` frodo.${GREEN}${fn}${RESET2}${sigHint}`);
|
|
284562
284571
|
}
|
|
284563
284572
|
}
|
|
@@ -284612,7 +284621,7 @@ function createHelpContext(frodoInstance) {
|
|
|
284612
284621
|
const sortedSubMods = [...subMods].sort(alphaSort);
|
|
284613
284622
|
const methodCount = sortedMethods.length;
|
|
284614
284623
|
const subModuleCount = sortedSubMods.length;
|
|
284615
|
-
const moduleType = _optionalChain([findModulePath, 'call',
|
|
284624
|
+
const moduleType = _optionalChain([findModulePath, 'call', _1365 => _1365(frodoInstance, target), 'optionalAccess', _1366 => _1366.replace, 'call', _1367 => _1367(
|
|
284616
284625
|
/^frodo\./,
|
|
284617
284626
|
""
|
|
284618
284627
|
)]) || "Module";
|
|
@@ -284678,7 +284687,7 @@ function createHelpContext(frodoInstance) {
|
|
|
284678
284687
|
console.log("");
|
|
284679
284688
|
for (const methodName of sortedMethods) {
|
|
284680
284689
|
const docs = idx.get(methodName);
|
|
284681
|
-
const doc = _nullishCoalesce(_optionalChain([docs, 'optionalAccess',
|
|
284690
|
+
const doc = _nullishCoalesce(_optionalChain([docs, 'optionalAccess', _1368 => _1368.find, 'call', _1369 => _1369((d4) => d4.typeName === bestType)]), () => ( _optionalChain([docs, 'optionalAccess', _1370 => _1370[0]])));
|
|
284682
284691
|
if (doc) {
|
|
284683
284692
|
const sig = doc.signature.length > 100 ? doc.signature.slice(0, 97) + "..." : doc.signature;
|
|
284684
284693
|
console.log(` ${YELLOW}${sig}${RESET2}`);
|
|
@@ -284930,7 +284939,7 @@ async function startRepl(allowAwait = false, host) {
|
|
|
284930
284939
|
console.log(`${BOLD2}Shell dot-commands:${RESET3}`);
|
|
284931
284940
|
const commands = replServer.commands;
|
|
284932
284941
|
for (const name of Object.keys(commands).sort()) {
|
|
284933
|
-
const helpText = _nullishCoalesce(_optionalChain([commands, 'access',
|
|
284942
|
+
const helpText = _nullishCoalesce(_optionalChain([commands, 'access', _1371 => _1371[name], 'optionalAccess', _1372 => _1372.help]), () => ( ""));
|
|
284934
284943
|
console.log(` ${GREEN2}.${name}${RESET3} ${DIM3}${helpText}${RESET3}`);
|
|
284935
284944
|
}
|
|
284936
284945
|
this.displayPrompt();
|
|
@@ -284940,7 +284949,7 @@ async function startRepl(allowAwait = false, host) {
|
|
|
284940
284949
|
process.stdin.on("keypress", (_char, key) => {
|
|
284941
284950
|
const rl = replServer;
|
|
284942
284951
|
const currentHistIdx = _nullishCoalesce(rl["_historyIndex"], () => ( -1));
|
|
284943
|
-
if (_optionalChain([key, 'optionalAccess',
|
|
284952
|
+
if (_optionalChain([key, 'optionalAccess', _1373 => _1373.name]) === "down" && !historyNavigationActive && currentHistIdx === -1) {
|
|
284944
284953
|
const currentLine = _nullishCoalesce(replServer.line, () => ( ""));
|
|
284945
284954
|
if (currentLine.trim().length > 0) {
|
|
284946
284955
|
const replHistory = _nullishCoalesce(rl["history"], () => ( []));
|
|
@@ -284952,15 +284961,15 @@ async function startRepl(allowAwait = false, host) {
|
|
|
284952
284961
|
replServer.write(null, { ctrl: true, name: "u" });
|
|
284953
284962
|
}
|
|
284954
284963
|
}
|
|
284955
|
-
if (_optionalChain([key, 'optionalAccess',
|
|
284964
|
+
if (_optionalChain([key, 'optionalAccess', _1374 => _1374.name]) === "up" || _optionalChain([key, 'optionalAccess', _1375 => _1375.name]) === "down") {
|
|
284956
284965
|
historyNavigationActive = true;
|
|
284957
284966
|
return;
|
|
284958
284967
|
}
|
|
284959
|
-
if (_optionalChain([key, 'optionalAccess',
|
|
284968
|
+
if (_optionalChain([key, 'optionalAccess', _1376 => _1376.name]) === "return" || _optionalChain([key, 'optionalAccess', _1377 => _1377.name]) === "enter") {
|
|
284960
284969
|
historyNavigationActive = false;
|
|
284961
284970
|
return;
|
|
284962
284971
|
}
|
|
284963
|
-
if (_optionalChain([key, 'optionalAccess',
|
|
284972
|
+
if (_optionalChain([key, 'optionalAccess', _1378 => _1378.ctrl]) || _optionalChain([key, 'optionalAccess', _1379 => _1379.meta]) || typeof _optionalChain([key, 'optionalAccess', _1380 => _1380.name]) === "string") {
|
|
284964
284973
|
historyNavigationActive = false;
|
|
284965
284974
|
}
|
|
284966
284975
|
});
|
|
@@ -285384,7 +285393,7 @@ var compareVersions = (v12, v2) => {
|
|
|
285384
285393
|
// package.json
|
|
285385
285394
|
var package_default2 = {
|
|
285386
285395
|
name: "@rockcarver/frodo-cli",
|
|
285387
|
-
version: "4.
|
|
285396
|
+
version: "4.3.1",
|
|
285388
285397
|
type: "module",
|
|
285389
285398
|
description: "A command line interface to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
|
|
285390
285399
|
keywords: [
|