@xynogen/pix-ssh 0.4.0 → 0.4.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/package.json +1 -1
  2. package/src/index.ts +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-ssh",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Pi tool — ssh_run: run remote commands over SSH with password/key auth and remote sudo",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -30,6 +30,7 @@ import { Text } from "@earendil-works/pi-tui";
30
30
  import { FG_DIM, RST, resolveBaseBackground } from "@xynogen/pix-pretty/ansi";
31
31
  import { MAX_PREVIEW_LINES } from "@xynogen/pix-pretty/config";
32
32
  import { type OverlayResult, showOverlay } from "@xynogen/pix-pretty/gate-overlay";
33
+ import { icon } from "@xynogen/pix-pretty/icon-catalog";
33
34
  import { renderBashOutput } from "@xynogen/pix-pretty/renderers";
34
35
  import type { RenderContextLike, ThemeLike, ToolResultLike } from "@xynogen/pix-pretty/types";
35
36
  import {
@@ -598,10 +599,11 @@ export default function (pi: ExtensionAPI): void {
598
599
  if (promptFor.length === 0) {
599
600
  return showOverlay(ctx.ui, {
600
601
  mode: "confirm",
602
+ icon: action === "file" ? icon("warn") : icon("lock"),
601
603
  title:
602
604
  action === "file"
603
- ? `⚠ SSH ${direction === "download" ? "DOWNLOAD" : "UPLOAD"}`
604
- : "🔐 SSH COMMAND REQUEST",
605
+ ? `SSH ${direction === "download" ? "Download" : "Upload"}`
606
+ : "SSH Command Request",
605
607
  body,
606
608
  accent: sudo ? "error" : action === "file" ? "warning" : "accent",
607
609
  timeoutMs: PROMPT_TIMEOUT_MS,
@@ -626,10 +628,11 @@ export default function (pi: ExtensionAPI): void {
626
628
  const label = stage === "login" ? "SSH login password" : "Remote sudo password";
627
629
  last = await showOverlay(ctx.ui, {
628
630
  mode: "sudo",
631
+ icon: action === "file" ? icon("warn") : icon("lock"),
629
632
  title:
630
633
  action === "file"
631
- ? `⚠ SSH ${direction === "download" ? "DOWNLOAD" : "UPLOAD"}`
632
- : "🔐 SSH COMMAND REQUEST",
634
+ ? `SSH ${direction === "download" ? "Download" : "Upload"}`
635
+ : "SSH Command Request",
633
636
  body: [...body, `Enter: ${label}`],
634
637
  accent: sudo ? "error" : action === "file" ? "warning" : "accent",
635
638
  timeoutMs: PROMPT_TIMEOUT_MS,