@sonnechasser/ntrp 0.1.2 → 0.1.4
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/README.md +33 -8
- package/dist/index.js +1113 -372
- package/dist/index.js.map +1 -1
- package/dist/investigation/verbosity-cli.js +7 -1
- package/dist/investigation/verbosity-cli.js.map +1 -1
- package/dist/mcp/server.js +152 -7
- package/dist/mcp/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -6045,7 +6045,7 @@ function secretPromptLine(question) {
|
|
|
6045
6045
|
return ` ${paint("accent", "\u25B8")} ${bold(question)} ${chalk3.dim("(hidden \u2014 paste once, Enter)")} `;
|
|
6046
6046
|
}
|
|
6047
6047
|
function stripTerminalArtifacts(input) {
|
|
6048
|
-
return input.replace(/\x1b\[[0-9;]*[a-zA-Z~]/g, "").replace(/\x1b\][^\x07]*(\x07|\x1b\\)/g, "");
|
|
6048
|
+
return input.replace(/\x1b\[[0-9;]*[a-zA-Z~]/g, "").replace(/\x1b\][^\x07]*(\x07|\x1b\\)/g, "").replace(/\x1b\[200~/g, "").replace(/\x1b\[201~/g, "");
|
|
6049
6049
|
}
|
|
6050
6050
|
function renderQuestion(question, defaultValue) {
|
|
6051
6051
|
const base = ` ${marker()}${bold(question)}`;
|
|
@@ -6232,12 +6232,18 @@ function createPromptSession(existing, ctx) {
|
|
|
6232
6232
|
console.log(" " + chalk3.dim("Try again \u2014 paste the key once, then Enter."));
|
|
6233
6233
|
}
|
|
6234
6234
|
}
|
|
6235
|
+
async function askPressEnter(message) {
|
|
6236
|
+
await rl.question(
|
|
6237
|
+
` ${paint("accent", "\u25B8")} ${bold(message)} ${chalk3.dim("(Enter)")} `
|
|
6238
|
+
);
|
|
6239
|
+
}
|
|
6235
6240
|
return {
|
|
6236
6241
|
ask,
|
|
6237
6242
|
askRequired,
|
|
6238
6243
|
confirm,
|
|
6239
6244
|
choose,
|
|
6240
6245
|
askMulti,
|
|
6246
|
+
askPressEnter,
|
|
6241
6247
|
askSecret,
|
|
6242
6248
|
close: () => {
|
|
6243
6249
|
if (ctx && existing) {
|