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.
@@ -0,0 +1,256 @@
1
+ {
2
+ "v": 70,
3
+ "id": "T-019c9c5c-fd78-736f-9d29-a66d23839d40",
4
+ "created": 1772149865855,
5
+ "messages": [
6
+ {
7
+ "role": "user",
8
+ "messageId": 0,
9
+ "content": [
10
+ {
11
+ "type": "text",
12
+ "text": "in AGENTS.md, include that for every change, the CLI version in package.json will be updated accordingly."
13
+ }
14
+ ],
15
+ "userState": {
16
+ "currentlyVisibleFiles": []
17
+ },
18
+ "agentMode": "smart",
19
+ "meta": {
20
+ "sentAt": 1772149908269
21
+ }
22
+ },
23
+ {
24
+ "role": "assistant",
25
+ "messageId": 1,
26
+ "content": [
27
+ {
28
+ "type": "tool_use",
29
+ "complete": true,
30
+ "id": "toolu_vrtx_01U8632TXCUmhmTRAsERymJN",
31
+ "name": "Read",
32
+ "input": {
33
+ "path": "/home/runner/workspace/AGENTS.md"
34
+ }
35
+ }
36
+ ],
37
+ "state": {
38
+ "type": "complete",
39
+ "stopReason": "tool_use"
40
+ },
41
+ "usage": {
42
+ "model": "claude-opus-4-6",
43
+ "maxInputTokens": 168000,
44
+ "inputTokens": 3,
45
+ "outputTokens": 62,
46
+ "cacheCreationInputTokens": 1869,
47
+ "cacheReadInputTokens": 13127,
48
+ "totalInputTokens": 14999,
49
+ "timestamp": "2026-02-26T23:51:51.105Z"
50
+ }
51
+ },
52
+ {
53
+ "role": "user",
54
+ "messageId": 2,
55
+ "content": [
56
+ {
57
+ "type": "tool_result",
58
+ "toolUseID": "toolu_vrtx_01U8632TXCUmhmTRAsERymJN",
59
+ "run": {
60
+ "status": "done",
61
+ "progress": {},
62
+ "result": {
63
+ "absolutePath": "/home/runner/workspace/AGENTS.md",
64
+ "content": "1: # AGENTS.md — Apex Dev\n2: \n3: ## Build & Run\n4: - Runtime: **Bun** (not Node). Start: `bun index.jsx`. Install deps: `bun install`.\n5: - No test suite configured yet (`npm test` is a no-op stub).\n6: \n7: ## Architecture\n8: - **Terminal TUI app** built with React 19 + `@opentui/core`/`@opentui/react` for rendering.\n9: - Entry: `index.jsx` → `src/app.jsx` (main App component).\n10: - `src/agent.js` — Agentic loop: streams OpenAI-compatible completions from NVIDIA API, handles tool calls iteratively (max 50 iterations).\n11: - `src/config.js` — All model names, API client (`nvidiaClient`), session state, system prompts, and shared utils. Uses CommonJS (`require`/`module.exports`).\n12: - `src/tools.js` / `src/toolExecutors.js` — Tool definitions and execution (Read, Write, Edit, Bash, Grep, Glob, etc.).\n13: - `src/store.js` — Minimal pub/sub state store (messages, streaming state) with `getSnapshot`/`subscribe`/`setState`.\n14: - `src/components/` — React JSX components (ChatArea, InputBar, Header, StatusBar, etc.).\n15: - `src/hooks/` — Custom hooks (`useStore`, `useLayout`).\n16: - `src/commands.js` — Slash command handler. `src/prompt.js` — System prompt builder. `src/thinking.js` — `<think>` block parser.\n17: \n18: ## Code Style\n19: - 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.\n20: - Components are `.jsx` files with PascalCase names; logic modules are `.js` with camelCase names.\n21: - No TypeScript — all files are plain JS/JSX (`strict: false` in tsconfig).\n22: - Use `'use strict';` at top of CommonJS files. No semicolon-free style — semicolons required.\n23: - Favor `const`; use `let` only when reassignment is needed. Arrow functions for callbacks.\n24: - Error handling: try/catch around API calls with retry logic (exponential backoff). Tool errors return strings starting with `\"Error\"`.\n25: - Env var: `NVIDIA_API_KEY` (required), `EXA_API_KEY` (optional, for web search)."
65
+ },
66
+ "trackFiles": [
67
+ "file:///home/runner/workspace/AGENTS.md"
68
+ ]
69
+ }
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "role": "assistant",
75
+ "messageId": 3,
76
+ "content": [
77
+ {
78
+ "type": "tool_use",
79
+ "complete": true,
80
+ "id": "toolu_vrtx_0196yyRW7GdMTDL44MLZN2cM",
81
+ "name": "edit_file",
82
+ "input": {
83
+ "path": "/home/runner/workspace/AGENTS.md",
84
+ "old_str": "## Code Style",
85
+ "new_str": "## Versioning\n- For every change, update the CLI version in `package.json` accordingly.\n\n## Code Style"
86
+ }
87
+ }
88
+ ],
89
+ "state": {
90
+ "type": "complete",
91
+ "stopReason": "tool_use"
92
+ },
93
+ "usage": {
94
+ "model": "claude-opus-4-6",
95
+ "maxInputTokens": 168000,
96
+ "inputTokens": 1,
97
+ "outputTokens": 128,
98
+ "cacheCreationInputTokens": 2637,
99
+ "cacheReadInputTokens": 13127,
100
+ "totalInputTokens": 15765,
101
+ "timestamp": "2026-02-26T23:51:55.724Z"
102
+ }
103
+ },
104
+ {
105
+ "role": "user",
106
+ "messageId": 4,
107
+ "content": [
108
+ {
109
+ "type": "tool_result",
110
+ "toolUseID": "toolu_vrtx_0196yyRW7GdMTDL44MLZN2cM",
111
+ "run": {
112
+ "status": "done",
113
+ "progress": {},
114
+ "result": {
115
+ "diff": "```diff\nIndex: /home/runner/workspace/AGENTS.md\n===================================================================\n--- /home/runner/workspace/AGENTS.md\toriginal\n+++ /home/runner/workspace/AGENTS.md\tmodified\n@@ -14,8 +14,11 @@\n - `src/components/` — React JSX components (ChatArea, InputBar, Header, StatusBar, etc.).\n - `src/hooks/` — Custom hooks (`useStore`, `useLayout`).\n - `src/commands.js` — Slash command handler. `src/prompt.js` — System prompt builder. `src/thinking.js` — `<think>` block parser.\n \n+## Versioning\n+- For every change, update the CLI version in `package.json` accordingly.\n+\n ## Code Style\n - 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.\n - Components are `.jsx` files with PascalCase names; logic modules are `.js` with camelCase names.\n - No TypeScript — all files are plain JS/JSX (`strict: false` in tsconfig).\n```",
116
+ "lineRange": [
117
+ 18,
118
+ 21
119
+ ]
120
+ },
121
+ "trackFiles": [
122
+ "file:///home/runner/workspace/AGENTS.md"
123
+ ]
124
+ }
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "role": "assistant",
130
+ "messageId": 5,
131
+ "content": [
132
+ {
133
+ "type": "text",
134
+ "text": "Added a **Versioning** section to `AGENTS.md` with the instruction to update the CLI version in `package.json` for every change."
135
+ }
136
+ ],
137
+ "state": {
138
+ "type": "complete",
139
+ "stopReason": "end_turn"
140
+ },
141
+ "usage": {
142
+ "model": "claude-opus-4-6",
143
+ "maxInputTokens": 168000,
144
+ "inputTokens": 1,
145
+ "outputTokens": 36,
146
+ "cacheCreationInputTokens": 3128,
147
+ "cacheReadInputTokens": 13127,
148
+ "totalInputTokens": 16256,
149
+ "timestamp": "2026-02-26T23:51:58.481Z"
150
+ },
151
+ "turnElapsedMs": 10210
152
+ }
153
+ ],
154
+ "agentMode": "smart",
155
+ "nextMessageId": 6,
156
+ "meta": {
157
+ "traces": [
158
+ {
159
+ "name": "agent",
160
+ "id": "yZMI2",
161
+ "startTime": "2026-02-26T23:51:48.271Z",
162
+ "context": {
163
+ "messageId": 0
164
+ },
165
+ "endTime": "2026-02-26T23:51:58.482Z"
166
+ },
167
+ {
168
+ "name": "inference",
169
+ "id": "Cices",
170
+ "parent": "yZMI2",
171
+ "startTime": "2026-02-26T23:51:48.273Z",
172
+ "context": {
173
+ "messageId": 0
174
+ },
175
+ "endTime": "2026-02-26T23:51:51.107Z"
176
+ },
177
+ {
178
+ "name": "tools",
179
+ "id": "kvypq",
180
+ "parent": "yZMI2",
181
+ "startTime": "2026-02-26T23:51:51.106Z",
182
+ "context": {
183
+ "messageId": 1
184
+ },
185
+ "endTime": "2026-02-26T23:51:51.126Z"
186
+ },
187
+ {
188
+ "name": "inference",
189
+ "id": "Qj3Bd",
190
+ "parent": "yZMI2",
191
+ "startTime": "2026-02-26T23:51:51.128Z",
192
+ "context": {
193
+ "messageId": 0
194
+ },
195
+ "endTime": "2026-02-26T23:51:55.725Z"
196
+ },
197
+ {
198
+ "name": "tools",
199
+ "id": "O402D",
200
+ "parent": "yZMI2",
201
+ "startTime": "2026-02-26T23:51:55.724Z",
202
+ "context": {
203
+ "messageId": 3
204
+ },
205
+ "endTime": "2026-02-26T23:51:55.739Z"
206
+ },
207
+ {
208
+ "name": "inference",
209
+ "id": "7Py4V",
210
+ "parent": "yZMI2",
211
+ "startTime": "2026-02-26T23:51:55.740Z",
212
+ "context": {
213
+ "messageId": 0
214
+ },
215
+ "endTime": "2026-02-26T23:51:58.482Z"
216
+ }
217
+ ]
218
+ },
219
+ "env": {
220
+ "initial": {
221
+ "trees": [
222
+ {
223
+ "displayName": "workspace",
224
+ "uri": "file:///home/runner/workspace"
225
+ }
226
+ ],
227
+ "platform": {
228
+ "os": "linux",
229
+ "osVersion": "Ubuntu 24.04.2 LTS",
230
+ "cpuArchitecture": "x64",
231
+ "webBrowser": false,
232
+ "client": "CLI",
233
+ "clientVersion": "0.0.1772067340-g53cd9b",
234
+ "clientType": "cli",
235
+ "installationID": "990855e2-5987-4061-ad34-8c29deacfa95",
236
+ "deviceFingerprint": "v1:fp_5e0b4aaea6d8b2adcf3c155505cf5c39765fb8ea3e8157ac186424d91df98615"
237
+ },
238
+ "tags": [
239
+ "model:claude-opus-4-6"
240
+ ]
241
+ }
242
+ },
243
+ "title": "Document CLI version update in AGENTS.md",
244
+ "~debug": {
245
+ "lastInferenceUsage": {
246
+ "model": "claude-opus-4-6",
247
+ "maxInputTokens": 168000,
248
+ "inputTokens": 3,
249
+ "outputTokens": 128,
250
+ "cacheCreationInputTokens": 3128,
251
+ "cacheReadInputTokens": 13127,
252
+ "totalInputTokens": 16256,
253
+ "timestamp": "2026-02-26T23:51:58.481Z"
254
+ }
255
+ }
256
+ }