@rockcarver/frodo-cli 5.0.0-6 → 5.0.0-7

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 CHANGED
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## [v5.0.0-6] - 2026-10-14
11
+
12
+ ### Added
13
+ - Introduced a grouped options editor with collapsible sections, allowing users to view command options in a structured manner. The editor mirrors the `-h`/`-hh` help split, with collapsible headers for shared help groups like Authentication and Connection. Pressing `[space]` expands or collapses these sections. (#804)
14
+ - Added an entity picker feature across various delete commands, enabling users to select entities interactively. This includes entity pickers for ESV secrets, OAuth clients, and more. (#784)
15
+ - Implemented interactive gap-fill prompts for missing command input, prompting users for mandatory options and connection arguments during interactive sessions. Non-interactive environments remain unchanged. (#772)
16
+ - Introduced a connection page that consolidates host, username, and password prompts into a single form, improving the user experience during connection setup. (#787)
17
+ - Added a `--prompt` / `--no-prompt` trigger pair to explicitly control interactive flows, ensuring users can opt into or out of interactive mode as needed. (#789)
18
+ - Implemented a live command-preview footer in interactive prompts, displaying the command being influenced by user selections. The final command is printed once more upon conclusion for easy script integration. (#788)
19
+
20
+ ### Changed
21
+ - Modified the help system to make command-vs-stub differences visible and restored sub-command navigation for action-bearing stubs. (#798)
22
+ - Re-homed interactive flows to align with ambient-framework layering, allowing commands to automatically adopt interactivity without additional prompting code. (#796)
23
+ - Enhanced the interactive select feature with type-to-search functionality, enabling users to filter select lists by typing. This applies universally across all select lists. (#773)
24
+
25
+ ### Removed
26
+ - Removed the display of unused realm sentinels in command previews, aligning with user expectations for cleaner outputs. (#790)
27
+
28
+ ### Fixed
29
+ - Resolved an issue where the double-ESC "exit all the way out" gesture did not work as expected. The gesture now correctly exits the interactive session from any depth. (#803)
30
+ - Fixed the action-stub help to correctly list `--prompt/--no-prompt` options, ensuring users are aware of these flags in help outputs. (#800)
31
+ - Corrected the display of the realm sentinel in command previews, ensuring it does not appear untranslated. (#790)
32
+
10
33
  ## [v5.0.0-5] - 2026-10-09
11
34
 
12
35
  ### Security
@@ -2992,6 +3015,7 @@ Frodo CLI 2.x automatically refreshes session and access tokens before they expi
2992
3015
  - Fixed problem with adding connection profiles
2993
3016
  - Miscellaneous bug fixes
2994
3017
 
3018
+ [v5.0.0-6]: https://github.com/rockcarver/frodo-cli/compare/v5.0.0-5...v5.0.0-6
2995
3019
  [v5.0.0-5]: https://github.com/rockcarver/frodo-cli/compare/v5.0.0-4...v5.0.0-5
2996
3020
  [v5.0.0-4]: https://github.com/rockcarver/frodo-cli/compare/v5.0.0-3...v5.0.0-4
2997
3021
  [v5.0.0-3]: https://github.com/rockcarver/frodo-cli/compare/v5.0.0-2...v5.0.0-3
@@ -0,0 +1,124 @@
1
+ //#region src/utils/interactive/AuthoringPrintState.ts
2
+ var AuthoringPrintState_exports = /* @__PURE__ */ require("./rolldown-runtime-Ctb5zv51.cjs").__exportAll({
3
+ armAuthoringPrint: () => armAuthoringPrint,
4
+ authSucceededForFlush: () => authSucceededForFlush,
5
+ flushAuthoringPrint: () => flushAuthoringPrint,
6
+ noteAuthSucceeded: () => noteAuthSucceeded,
7
+ revokeAuthoringPrint: () => revokeAuthoringPrint,
8
+ setAuthoringPrintFlush: () => setAuthoringPrintFlush
9
+ });
10
+ /**
11
+ * The deferred authoring print's state, split from
12
+ * ResolveInteractiveInputs.ts into a zero-import module (the
13
+ * ActiveActionCommandState pattern) so the flush sites (AuthenticateOps'
14
+ * getTokens wrapper, EntityPickers, FrodoCommand's postAction hook) can
15
+ * cooperate without importing the resolver's heavy graph (frodo-lib,
16
+ * commander trees).
17
+ *
18
+ * With erase-on-conclude prompts (clearPromptOnDone on every prompt), the
19
+ * only trace of an interactive session is what frodo prints around the
20
+ * action's output. The eventual-command print is that trace, and it is a
21
+ * HEADER for the results (user: it must appear BEFORE them, not after), so
22
+ * the primary flush site is the getTokens wrapper -- right after the
23
+ * post-auth realm pick concludes, directly above the action's output --
24
+ * with resolveEntityPicks covering the pick-after-auth commands and the
25
+ * postAction hook as the fallback for flows with neither auth nor picks.
26
+ * The resolution pass arms (unconditionally -- registration is free; the
27
+ * print gate is evaluated inside the flush closure at flush time); flows
28
+ * that never reach a flush site (cancelled pickers, unsatisfied one-of
29
+ * throws, failed auth) leave nothing behind.
30
+ */
31
+ /**
32
+ * Whether the eventual-command print is armed and not yet flushed.
33
+ */
34
+ let authoringPrintPending = false;
35
+ /**
36
+ * Whether auth has succeeded for this invocation. resolveEntityPicks
37
+ * consults it before flushing: entity picks that run BEFORE auth
38
+ * (the `(pick) && (await getTokens())` pattern) must not print -- if
39
+ * auth then fails, the printed command never ran. Set by the getTokens
40
+ * wrapper on its success path.
41
+ */
42
+ let authSucceeded = false;
43
+ /**
44
+ * Arms the deferred print. Called by the resolution pass instead of
45
+ * printing eagerly. Idempotent (re-arming just refreshes intent); the
46
+ * flush prints exactly once.
47
+ */
48
+ function armAuthoringPrint() {
49
+ authoringPrintPending = true;
50
+ }
51
+ /**
52
+ * Records that auth succeeded this invocation (getTokens success path).
53
+ */
54
+ function noteAuthSucceeded() {
55
+ authSucceeded = true;
56
+ }
57
+ /**
58
+ * Whether auth has succeeded (see the field doc for why it gates the
59
+ * entity-pickers' flush).
60
+ */
61
+ function authSucceededForFlush() {
62
+ return authSucceeded;
63
+ }
64
+ /**
65
+ * The print closure, injected by the resolution pass at arm time so this
66
+ * module stays zero-import. The closure re-reads the command object (a
67
+ * closure over it) AND evaluates the print gate (promptsRendered /
68
+ * explicitlyInteractive) at flush time -- both must be late: the
69
+ * post-auth realm picker renders after the pass ends, so both a
70
+ * gate-at-arm-time and a snapshot-of-the-command would go stale.
71
+ */
72
+ let flushImpl;
73
+ function setAuthoringPrintFlush(impl) {
74
+ flushImpl = impl;
75
+ }
76
+ /**
77
+ * Prints the eventual command once, if armed. Callers: the getTokens
78
+ * wrapper (above the action's results), resolveEntityPicks (after its
79
+ * picks conclude, when auth already succeeded), and FrodoCommand's
80
+ * postAction hook (fallback). No-op when never armed (help/version
81
+ * paths, stubs without the resolution pass).
82
+ */
83
+ function flushAuthoringPrint() {
84
+ if (!authoringPrintPending) return;
85
+ authoringPrintPending = false;
86
+ flushImpl?.();
87
+ }
88
+ /**
89
+ * Disarms the print without printing (the flush's silent sibling). Used
90
+ * by the getTokens wrapper's failure path: auth failed, the command
91
+ * never ran, and a print after the failure output would re-introduce
92
+ * the "footer after the results" shape the header placement exists to
93
+ * avoid.
94
+ */
95
+ function revokeAuthoringPrint() {
96
+ authoringPrintPending = false;
97
+ }
98
+ //#endregion
99
+ Object.defineProperty(exports, "AuthoringPrintState_exports", {
100
+ enumerable: true,
101
+ get: function() {
102
+ return AuthoringPrintState_exports;
103
+ }
104
+ });
105
+ Object.defineProperty(exports, "armAuthoringPrint", {
106
+ enumerable: true,
107
+ get: function() {
108
+ return armAuthoringPrint;
109
+ }
110
+ });
111
+ Object.defineProperty(exports, "flushAuthoringPrint", {
112
+ enumerable: true,
113
+ get: function() {
114
+ return flushAuthoringPrint;
115
+ }
116
+ });
117
+ Object.defineProperty(exports, "setAuthoringPrintFlush", {
118
+ enumerable: true,
119
+ get: function() {
120
+ return setAuthoringPrintFlush;
121
+ }
122
+ });
123
+
124
+ //# sourceMappingURL=AuthoringPrintState-vyWOD1Wt.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthoringPrintState-vyWOD1Wt.cjs","names":[],"sources":["../src/utils/interactive/AuthoringPrintState.ts"],"sourcesContent":["/**\n * The deferred authoring print's state, split from\n * ResolveInteractiveInputs.ts into a zero-import module (the\n * ActiveActionCommandState pattern) so the flush sites (AuthenticateOps'\n * getTokens wrapper, EntityPickers, FrodoCommand's postAction hook) can\n * cooperate without importing the resolver's heavy graph (frodo-lib,\n * commander trees).\n *\n * With erase-on-conclude prompts (clearPromptOnDone on every prompt), the\n * only trace of an interactive session is what frodo prints around the\n * action's output. The eventual-command print is that trace, and it is a\n * HEADER for the results (user: it must appear BEFORE them, not after), so\n * the primary flush site is the getTokens wrapper -- right after the\n * post-auth realm pick concludes, directly above the action's output --\n * with resolveEntityPicks covering the pick-after-auth commands and the\n * postAction hook as the fallback for flows with neither auth nor picks.\n * The resolution pass arms (unconditionally -- registration is free; the\n * print gate is evaluated inside the flush closure at flush time); flows\n * that never reach a flush site (cancelled pickers, unsatisfied one-of\n * throws, failed auth) leave nothing behind.\n */\n\n/**\n * Whether the eventual-command print is armed and not yet flushed.\n */\nlet authoringPrintPending = false;\n\n/**\n * Whether auth has succeeded for this invocation. resolveEntityPicks\n * consults it before flushing: entity picks that run BEFORE auth\n * (the `(pick) && (await getTokens())` pattern) must not print -- if\n * auth then fails, the printed command never ran. Set by the getTokens\n * wrapper on its success path.\n */\nlet authSucceeded = false;\n\n/**\n * Arms the deferred print. Called by the resolution pass instead of\n * printing eagerly. Idempotent (re-arming just refreshes intent); the\n * flush prints exactly once.\n */\nexport function armAuthoringPrint(): void {\n authoringPrintPending = true;\n}\n\n/**\n * Whether the deferred print is armed and not yet printed.\n */\nexport function authoringPrintPendingState(): boolean {\n return authoringPrintPending;\n}\n\n/**\n * Records that auth succeeded this invocation (getTokens success path).\n */\nexport function noteAuthSucceeded(): void {\n authSucceeded = true;\n}\n\n/**\n * Whether auth has succeeded (see the field doc for why it gates the\n * entity-pickers' flush).\n */\nexport function authSucceededForFlush(): boolean {\n return authSucceeded;\n}\n\n/**\n * The print closure, injected by the resolution pass at arm time so this\n * module stays zero-import. The closure re-reads the command object (a\n * closure over it) AND evaluates the print gate (promptsRendered /\n * explicitlyInteractive) at flush time -- both must be late: the\n * post-auth realm picker renders after the pass ends, so both a\n * gate-at-arm-time and a snapshot-of-the-command would go stale.\n */\nlet flushImpl: (() => void) | undefined;\n\nexport function setAuthoringPrintFlush(impl: () => void): void {\n flushImpl = impl;\n}\n\n/**\n * Prints the eventual command once, if armed. Callers: the getTokens\n * wrapper (above the action's results), resolveEntityPicks (after its\n * picks conclude, when auth already succeeded), and FrodoCommand's\n * postAction hook (fallback). No-op when never armed (help/version\n * paths, stubs without the resolution pass).\n */\nexport function flushAuthoringPrint(): void {\n if (!authoringPrintPending) return;\n authoringPrintPending = false;\n flushImpl?.();\n}\n\n/**\n * Disarms the print without printing (the flush's silent sibling). Used\n * by the getTokens wrapper's failure path: auth failed, the command\n * never ran, and a print after the failure output would re-introduce\n * the \"footer after the results\" shape the header placement exists to\n * avoid.\n */\nexport function revokeAuthoringPrint(): void {\n authoringPrintPending = false;\n}\n\n/** Test hygiene. */\nexport function resetAuthoringPrintForTests(): void {\n authoringPrintPending = false;\n authSucceeded = false;\n flushImpl = undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAI,wBAAwB;;;;;;;;AAS5B,IAAI,gBAAgB;;;;;;AAOpB,SAAgB,oBAA0B;CACxC,wBAAwB;AAC1B;;;;AAYA,SAAgB,oBAA0B;CACxC,gBAAgB;AAClB;;;;;AAMA,SAAgB,wBAAiC;CAC/C,OAAO;AACT;;;;;;;;;AAUA,IAAI;AAEJ,SAAgB,uBAAuB,MAAwB;CAC7D,YAAY;AACd;;;;;;;;AASA,SAAgB,sBAA4B;CAC1C,IAAI,CAAC,uBAAuB;CAC5B,wBAAwB;CACxB,YAAY;AACd;;;;;;;;AASA,SAAgB,uBAA6B;CAC3C,wBAAwB;AAC1B"}