securewithtrace 0.4.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +26 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3564,6 +3564,25 @@ function createAuthCommand() {
3564
3564
  return auth;
3565
3565
  }
3566
3566
 
3567
+ // src/banner.ts
3568
+ var ESC = "\x1B";
3569
+ var RESET = `${ESC}[0m`;
3570
+ var CYAN_BOLD = `${ESC}[1;36m`;
3571
+ var DIM = `${ESC}[2m`;
3572
+ var BANNER = `
3573
+ \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
3574
+ \u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D
3575
+ \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2557
3576
+ \u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u255D
3577
+ \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
3578
+ \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D
3579
+ `;
3580
+ function showBanner() {
3581
+ console.log(`${CYAN_BOLD}${BANNER}${RESET}`);
3582
+ console.log(`${DIM} The terminal's black box for your digital life${RESET}
3583
+ `);
3584
+ }
3585
+
3567
3586
  // src/repo/commands.ts
3568
3587
  import { chmodSync, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
3569
3588
  import { tmpdir } from "os";
@@ -23847,11 +23866,11 @@ async function resolveOrganizationIdSafe(client) {
23847
23866
 
23848
23867
  // src/repo/commands.ts
23849
23868
  function stripAnsi(str) {
23850
- const ESC = String.fromCharCode(27);
23869
+ const ESC2 = String.fromCharCode(27);
23851
23870
  const CSI = String.fromCharCode(155);
23852
23871
  const BEL = String.fromCharCode(7);
23853
- const csi = `[${ESC}${CSI}][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]`;
23854
- const osc = `${ESC}\\].*?(?:${BEL}|${ESC}\\\\)`;
23872
+ const csi = `[${ESC2}${CSI}][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]`;
23873
+ const osc = `${ESC2}\\].*?(?:${BEL}|${ESC2}\\\\)`;
23855
23874
  const pattern = new RegExp(`${osc}|${csi}`, "g");
23856
23875
  return str.replace(pattern, "");
23857
23876
  }
@@ -24225,6 +24244,10 @@ function createVulnerabilitiesCommand() {
24225
24244
  // src/index.ts
24226
24245
  var program2 = new Command();
24227
24246
  program2.name("tracecli").description("Trace CLI").version("0.0.1");
24247
+ program2.action(() => {
24248
+ showBanner();
24249
+ program2.outputHelp();
24250
+ });
24228
24251
  program2.command("echo").description("Echo a message back to the terminal").argument("<message...>", "message to echo").action((messageParts) => {
24229
24252
  console.log(messageParts.join(" "));
24230
24253
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "securewithtrace",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "Trace CLI",
5
5
  "type": "module",
6
6
  "bin": {