apex-dev 3.0.1 → 3.0.2

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/AGENTS.md CHANGED
@@ -1,32 +1,28 @@
1
- # AGENTS.md — Project-Wide AI Agent Guidelines
2
-
3
- ## Sub-Agent Prompt Rules
4
-
5
- When the main AI delegates work to any sub-agent (FilePickerMax, CodeReviewer, or any future sub-agent):
6
-
7
- 1. **Always specify the exact type of files or scope needed.** Never send generic or vague prompts like "give me an overview of the codebase" or "review everything."
8
- 2. **Be concrete and targeted.** Good examples:
9
- - "Show me the main entry point and routing files"
10
- - "Files that handle user authentication"
11
- - "All React components related to the dashboard"
12
- - "Review the changes to the session management logic in config.js"
13
- 3. **Bad examples (never do this):**
14
- - "Give me an overview of the codebase"
15
- - "Show me all the files"
16
- - "Review the code"
17
- - "Find relevant files"
18
-
19
- ## FilePickerMax
20
-
21
- - The `prompt` argument must describe the specific type of files to find.
22
- - If the caller cannot determine what specific files are needed, it should break the task down first before calling FilePickerMax.
23
-
24
- ## CodeReviewer
25
-
26
- - The `prompt` argument must describe what was changed and why.
27
- - Always scope the review to the specific files and changes made never ask for a blanket review.
28
-
29
- ## General
30
-
31
- - Sub-agents should reject or return empty results for vague/generic prompts rather than guessing.
32
- - The main AI is responsible for formulating precise, scoped prompts before delegating to any sub-agent.
1
+ # AGENTS.md — Apex Dev
2
+
3
+ ## Build & Run
4
+ - Runtime: **Bun** (not Node). Start: `bun index.jsx`. Install deps: `bun install`.
5
+ - No test suite configured yet (`npm test` is a no-op stub).
6
+
7
+ ## Architecture
8
+ - **Terminal TUI app** built with React 19 + `@opentui/core`/`@opentui/react` for rendering.
9
+ - Entry: `index.jsx` `src/app.jsx` (main App component).
10
+ - `src/agent.js` Agentic loop: streams OpenAI-compatible completions from NVIDIA API, handles tool calls iteratively (max 50 iterations).
11
+ - `src/config.js` — All model names, API client (`nvidiaClient`), session state, system prompts, and shared utils. Uses CommonJS (`require`/`module.exports`).
12
+ - `src/tools.js` / `src/toolExecutors.js` Tool definitions and execution (Read, Write, Edit, Bash, Grep, Glob, etc.).
13
+ - `src/store.js` Minimal pub/sub state store (messages, streaming state) with `getSnapshot`/`subscribe`/`setState`.
14
+ - `src/components/` React JSX components (ChatArea, InputBar, Header, StatusBar, etc.).
15
+ - `src/hooks/` Custom hooks (`useStore`, `useLayout`).
16
+ - `src/commands.js` Slash command handler. `src/prompt.js` — System prompt builder. `src/thinking.js` — `<think>` block parser.
17
+
18
+ ## Versioning
19
+ - For every change, update the CLI version in `package.json` accordingly.
20
+
21
+ ## Code Style
22
+ - Mixed module systems: `index.jsx` and `src/app.jsx` use **ESM** (`import`/`export`); all other `src/*.js` files use **CommonJS** (`require`/`module.exports`). Follow whichever the file already uses.
23
+ - Components are `.jsx` files with PascalCase names; logic modules are `.js` with camelCase names.
24
+ - No TypeScript — all files are plain JS/JSX (`strict: false` in tsconfig).
25
+ - Use `'use strict';` at top of CommonJS files. No semicolon-free style — semicolons required.
26
+ - Favor `const`; use `let` only when reassignment is needed. Arrow functions for callbacks.
27
+ - Error handling: try/catch around API calls with retry logic (exponential backoff). Tool errors return strings starting with `"Error"`.
28
+ - Env var: `NVIDIA_API_KEY` (required), `EXA_API_KEY` (optional, for web search).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apex-dev",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Apex AI - a friendly agentic coding assistant for the terminal",
5
5
  "main": "index.jsx",
6
6
  "bin": {
@@ -13,9 +13,6 @@
13
13
  "keywords": [],
14
14
  "author": "",
15
15
  "license": "ISC",
16
- "peerDependencies": {
17
- "react": ">=19.0.0"
18
- },
19
16
  "dependencies": {
20
17
  "@opentui/core": "^0.1.83",
21
18
  "@opentui/react": "^0.1.83",