probe-research 0.18.0 → 0.19.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.
- package/bin/probe-research.js +9 -1
- package/package.json +1 -1
package/bin/probe-research.js
CHANGED
|
@@ -126,8 +126,12 @@ const FIX_MIN = "0.385.0";
|
|
|
126
126
|
* 0.418.0, not 0.417.0: 0.417.0 was cut from a commit before the agent install merged (#4350).
|
|
127
127
|
* 0.421.0 since PR4: the live example's `probe example` (which `needsAgentCli` routes here) came
|
|
128
128
|
* after 0.420.0 was cut, and one floor keeps every call of the install prompt on one release.
|
|
129
|
+
* 0.423.0 since PR4b: example.md's keep step runs `probe example keep`, which 0.422.0 (cut before it
|
|
130
|
+
* merged) lacks.
|
|
131
|
+
* 0.424.0 since PR12 (#4381): runs-only.md's `install --profile runs` and already-set-up.md's
|
|
132
|
+
* `install --profile` and `status --repaste-choice`; 0.423.0 was cut from the commit before it merged.
|
|
129
133
|
*/
|
|
130
|
-
const AGENT_MIN_CLI = "0.
|
|
134
|
+
const AGENT_MIN_CLI = "0.424.0";
|
|
131
135
|
/** `install` flags only AGENT_MIN_CLI knows (D36). */
|
|
132
136
|
const AGENT_INSTALL_FLAGS = Object.freeze(["--recommended", "--who-records", "--session-default", "--profile",
|
|
133
137
|
"--attempt"]);
|
|
@@ -627,9 +631,13 @@ const DOWNLOAD_POLL_MS = 1000;
|
|
|
627
631
|
/** The uninstall barrier (`probe.shared.updates.uninstall_barrier.path`). */
|
|
628
632
|
const BARRIER_FILE = [".local", "state", "probe", "uninstall", "barrier.json"];
|
|
629
633
|
|
|
634
|
+
/** `status` flags only AGENT_MIN_CLI knows: the re-paste menu's answer (D84). */
|
|
635
|
+
const AGENT_STATUS_FLAGS = Object.freeze(["--repaste-choice"]);
|
|
636
|
+
|
|
630
637
|
/** `probe` arguments only AGENT_MIN_CLI runs (D36). */
|
|
631
638
|
function needsAgentCli(forwarded) {
|
|
632
639
|
if (forwarded[0] === "example") return true;
|
|
640
|
+
if (forwarded[0] === "status") return forwarded.some((word) => AGENT_STATUS_FLAGS.includes(word.split("=")[0]));
|
|
633
641
|
if (forwarded[0] !== LauncherVerb.WIZARD) return false;
|
|
634
642
|
return forwarded.includes("--pending")
|
|
635
643
|
|| forwarded.some((word) => AGENT_INSTALL_FLAGS.includes(word.split("=")[0]));
|