@pensar/apex 0.0.56 → 0.0.57-canary.80dd6424

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 CHANGED
@@ -56,7 +56,7 @@ curl -fsSL https://pensarai.com/install.sh | bash
56
56
  #### Homebrew
57
57
 
58
58
  ```bash
59
- brew tap pensarai/tap
59
+ brew tap pensarai/apex
60
60
  brew install apex
61
61
  ```
62
62
 
package/build/index.js CHANGED
@@ -70114,13 +70114,13 @@ async function get() {
70114
70114
  return {
70115
70115
  ...parsedConfig,
70116
70116
  version,
70117
- openAiAPIKey: process.env.OPENAI_API_KEY,
70118
- anthropicAPIKey: process.env.ANTHROPIC_API_KEY,
70119
- openRouterAPIKey: process.env.OPENROUTER_API_KEY,
70120
- bedrockAPIKey: process.env.BEDROCK_API_KEY,
70121
- daytonaAPIKey: process.env.DAYTONA_API_KEY,
70122
- daytonaOrgId: process.env.DAYTONA_ORG_ID,
70123
- runloopAPIKey: process.env.RUNLOOP_API_KEY
70117
+ openAiAPIKey: process.env.OPENAI_API_KEY ?? parsedConfig.openAiAPIKey,
70118
+ anthropicAPIKey: process.env.ANTHROPIC_API_KEY ?? parsedConfig.anthropicAPIKey,
70119
+ openRouterAPIKey: process.env.OPENROUTER_API_KEY ?? parsedConfig.openRouterAPIKey,
70120
+ bedrockAPIKey: process.env.BEDROCK_API_KEY ?? parsedConfig.bedrockAPIKey,
70121
+ daytonaAPIKey: process.env.DAYTONA_API_KEY ?? parsedConfig.daytonaAPIKey,
70122
+ daytonaOrgId: process.env.DAYTONA_ORG_ID ?? parsedConfig.daytonaOrgId,
70123
+ runloopAPIKey: process.env.RUNLOOP_API_KEY ?? parsedConfig.runloopAPIKey
70124
70124
  };
70125
70125
  }
70126
70126
  async function update(config) {
@@ -150752,10 +150752,17 @@ function HomeView({ onNavigate, onStartSession }) {
150752
150752
  const { executeCommand, autocompleteOptions } = useCommand();
150753
150753
  const { setInputValue } = useInput();
150754
150754
  const { promptRef } = useFocus();
150755
+ const [hintMessage, setHintMessage] = import_react56.useState(null);
150755
150756
  const handleSubmit = import_react56.useCallback((value) => {
150756
- onStartSession(value);
150757
+ setHintMessage("Type /help to get started");
150757
150758
  setInputValue("");
150758
- }, [onStartSession, setInputValue]);
150759
+ }, [setInputValue]);
150760
+ import_react56.useEffect(() => {
150761
+ if (!hintMessage)
150762
+ return;
150763
+ const timer = setTimeout(() => setHintMessage(null), 3000);
150764
+ return () => clearTimeout(timer);
150765
+ }, [hintMessage]);
150759
150766
  const handleCommandExecute = import_react56.useCallback(async (command) => {
150760
150767
  await executeCommand(command);
150761
150768
  }, [executeCommand]);
@@ -150825,6 +150832,13 @@ function HomeView({ onNavigate, onStartSession }) {
150825
150832
  onCommandExecute: handleCommandExecute,
150826
150833
  showPromptIndicator: true
150827
150834
  }, undefined, false, undefined, this),
150835
+ hintMessage && /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
150836
+ marginTop: 1,
150837
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
150838
+ fg: creamText7,
150839
+ children: hintMessage
150840
+ }, undefined, false, undefined, this)
150841
+ }, undefined, false, undefined, this),
150828
150842
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
150829
150843
  marginTop: 1,
150830
150844
  children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pensar/apex",
3
- "version": "0.0.56",
3
+ "version": "0.0.57-canary.80dd6424",
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",