@pensar/apex 0.0.110 → 0.0.111

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/build/auth.js CHANGED
@@ -8,7 +8,7 @@ import fs from "fs/promises";
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "@pensar/apex",
11
- version: "0.0.110",
11
+ version: "0.0.111",
12
12
  description: "AI-powered penetration testing CLI tool with terminal UI",
13
13
  module: "src/tui/index.tsx",
14
14
  main: "build/index.js",
package/build/index.js CHANGED
@@ -31971,7 +31971,7 @@ var package_default2;
31971
31971
  var init_package = __esm(() => {
31972
31972
  package_default2 = {
31973
31973
  name: "@pensar/apex",
31974
- version: "0.0.110",
31974
+ version: "0.0.111",
31975
31975
  description: "AI-powered penetration testing CLI tool with terminal UI",
31976
31976
  module: "src/tui/index.tsx",
31977
31977
  main: "build/index.js",
@@ -273794,7 +273794,9 @@ function Footer({
273794
273794
  const { colors: colors2 } = useTheme();
273795
273795
  const { model, isExecuting, sessionCwd } = useAgent();
273796
273796
  const effectiveCwd = sessionCwd || cwd;
273797
- const displayCwd = "~" + effectiveCwd.split(os6.homedir()).pop() || "";
273797
+ const relativeCwd = effectiveCwd.split(os6.homedir()).pop() || "";
273798
+ const segments = relativeCwd.split("/").filter(Boolean);
273799
+ const displayCwd = segments.length <= 2 ? "~/" + segments.join("/") : "…/" + segments.slice(-2).join("/");
273798
273800
  const session = useSession();
273799
273801
  const route = useRoute();
273800
273802
  const { isInputEmpty } = useInput();
@@ -273807,11 +273809,15 @@ function Footer({
273807
273809
  justifyContent: "space-between",
273808
273810
  width: "100%",
273809
273811
  maxWidth: "100%",
273812
+ height: 1,
273810
273813
  flexShrink: 0,
273814
+ overflow: "hidden",
273811
273815
  children: [
273812
273816
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
273813
273817
  flexDirection: "row",
273814
273818
  gap: 1,
273819
+ flexShrink: 1,
273820
+ overflow: "hidden",
273815
273821
  children: [
273816
273822
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
273817
273823
  fg: colors2.textMuted,
@@ -273844,6 +273850,7 @@ function Footer({
273844
273850
  showExitWarning ? /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
273845
273851
  flexDirection: "row",
273846
273852
  gap: 1,
273853
+ flexShrink: 0,
273847
273854
  children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
273848
273855
  fg: colors2.warning,
273849
273856
  children: "⚠ Press Ctrl+C again to exit"
@@ -273851,6 +273858,7 @@ function Footer({
273851
273858
  }, undefined, false, undefined, this) : /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
273852
273859
  flexDirection: "row",
273853
273860
  gap: 2,
273861
+ flexShrink: 0,
273854
273862
  children: hotkeys.map((hotkey, index) => /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
273855
273863
  flexDirection: "row",
273856
273864
  gap: 1,
@@ -286765,7 +286773,23 @@ function MessageList({
286765
286773
  }, undefined, false, undefined, this),
286766
286774
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286767
286775
  fg: colors2.textMuted,
286768
- children: " - Switch between Plan or Default mode"
286776
+ children: [
286777
+ " ",
286778
+ "- Switch between Plan or Default mode"
286779
+ ]
286780
+ }, undefined, true, undefined, this)
286781
+ ]
286782
+ }, undefined, true, undefined, this),
286783
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
286784
+ flexDirection: "row",
286785
+ children: [
286786
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286787
+ fg: colors2.primary,
286788
+ children: "Option+Shift+Tab"
286789
+ }, undefined, false, undefined, this),
286790
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286791
+ fg: colors2.textMuted,
286792
+ children: " - Toggle approval on/off"
286769
286793
  }, undefined, false, undefined, this)
286770
286794
  ]
286771
286795
  }, undefined, true, undefined, this)
@@ -286872,8 +286896,6 @@ function NormalInputAreaInner({
286872
286896
  status,
286873
286897
  mode = "operator",
286874
286898
  operatorMode,
286875
- verboseMode = false,
286876
- expandedLogs = false,
286877
286899
  enableAutocomplete = false,
286878
286900
  autocompleteOptions = [],
286879
286901
  enableCommands = false,
@@ -286952,30 +286974,25 @@ function NormalInputAreaInner({
286952
286974
  gap: 2,
286953
286975
  marginTop: 1,
286954
286976
  backgroundColor: "transparent",
286977
+ alignItems: "center",
286978
+ overflow: "hidden",
286955
286979
  children: [
286956
- operatorMode === "plan" && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286957
- fg: colors2.warning,
286958
- children: "PLAN"
286959
- }, undefined, false, undefined, this),
286960
- operatorMode === "auto" && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286961
- fg: colors2.primary,
286962
- children: "AUTO"
286963
- }, undefined, false, undefined, this),
286964
- operatorMode === "manual" && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286965
- fg: colors2.textMuted,
286966
- children: "MANUAL"
286980
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286981
+ fg: "#000000",
286982
+ bg: operatorMode === "plan" ? colors2.warning : colors2.success,
286983
+ children: ` ${operatorMode === "plan" ? "PLAN" : "DEFAULT"} `
286967
286984
  }, undefined, false, undefined, this),
286968
286985
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286969
286986
  fg: colors2.textMuted,
286970
286987
  children: "/ commands"
286971
286988
  }, undefined, false, undefined, this),
286972
286989
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286973
- fg: verboseMode ? colors2.primary : colors2.textMuted,
286974
- children: verboseMode ? "verbose:on" : "verbose"
286990
+ fg: colors2.textMuted,
286991
+ children: "⇧Tab mode"
286975
286992
  }, undefined, false, undefined, this),
286976
286993
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286977
- fg: expandedLogs ? colors2.primary : colors2.textMuted,
286978
- children: expandedLogs ? "logs:full" : "logs"
286994
+ fg: colors2.textMuted,
286995
+ children: "⌥⇧Tab approval"
286979
286996
  }, undefined, false, undefined, this),
286980
286997
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
286981
286998
  fg: colors2.textMuted,
@@ -288425,7 +288442,7 @@ function OperatorDashboard({
288425
288442
  children: agentMode === "plan" ? "PLAN" : "DEFAULT"
288426
288443
  }, undefined, false, undefined, this),
288427
288444
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
288428
- fg: operatorState.requireApproval ? colors2.warning : colors2.primary,
288445
+ fg: operatorState.requireApproval ? colors2.success : colors2.warning,
288429
288446
  children: operatorState.requireApproval ? "APPROVAL ON" : "APPROVAL OFF"
288430
288447
  }, undefined, false, undefined, this),
288431
288448
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
@@ -288467,9 +288484,7 @@ function OperatorDashboard({
288467
288484
  focused: status === "running" ? selectedQueueIndex < 0 : resolveInputFocused(status, stack.length, externalDialogOpen),
288468
288485
  status: status === "waiting" ? "running" : status,
288469
288486
  mode: "operator",
288470
- operatorMode: agentMode === "plan" ? "plan" : operatorState.mode,
288471
- verboseMode,
288472
- expandedLogs,
288487
+ operatorMode: agentMode,
288473
288488
  pendingApproval: currentPending,
288474
288489
  onApprove: handleApprove,
288475
288490
  onAutoApprove: handleAutoApprove,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pensar/apex",
3
- "version": "0.0.110",
3
+ "version": "0.0.111",
4
4
  "description": "AI-powered penetration testing CLI tool with terminal UI",
5
5
  "module": "src/tui/index.tsx",
6
6
  "main": "build/index.js",