apex-dev 2.0.0 → 3.0.0

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 (77) hide show
  1. package/.local/share/amp/history.jsonl +33 -0
  2. package/.local/share/amp/session.json +3 -3
  3. package/.local/share/amp/threads/T-019c9761-858c-719b-911f-bc2e4c8cbdde.json +188 -0
  4. package/.local/share/amp/threads/T-019c9761-f5f3-7606-a900-ebe7f10d6e37.json +121 -0
  5. package/.local/share/amp/threads/T-019c9763-b1ae-729d-90aa-f59938ce912e.json +799 -0
  6. package/.local/share/amp/threads/T-019c9769-4a8a-77b8-beab-f48973276f9a.json +1541 -0
  7. package/.local/share/amp/threads/T-019c9772-edac-7075-b26e-0ada1f8697d2.json +7 -0
  8. package/.local/share/amp/threads/T-019c97e8-a9ab-71a1-a8f9-109c540c98bf.json +111 -0
  9. package/.local/share/amp/threads/T-019c97e9-2277-753c-8c5d-df745fa6cfff.json +7 -0
  10. package/.local/share/amp/threads/T-019c97e9-f28e-758d-9663-e37047a8ed95.json +111 -0
  11. package/.local/share/amp/threads/T-019c97ea-17c7-77b8-92b2-f641c069bcc9.json +71 -0
  12. package/.local/share/amp/threads/T-019c97ea-44c6-75b8-88bc-d88113194f6a.json +1611 -0
  13. package/.local/share/amp/threads/T-019c97ec-abae-7251-a5f6-693adf496a1c.json +7 -0
  14. package/.local/share/amp/threads/T-019c97f5-8e61-73ad-8c5d-2637abedcde6.json +1341 -0
  15. package/.local/share/amp/threads/T-019c989d-4f4e-7249-bde0-21d19455ccae.json +163 -0
  16. package/.local/share/amp/threads/T-019c989d-9024-73c4-bee8-e2ae45028a39.json +124 -0
  17. package/.local/share/amp/threads/T-019c989e-1394-74ad-8234-ac573fcdb4c7.json +1260 -0
  18. package/.local/share/amp/threads/T-019c989f-e3dd-772e-85ac-525d0fc88fda.json +403 -0
  19. package/.local/share/amp/threads/T-019c98a1-7b0c-778a-b311-2e1cff85d710.json +3422 -0
  20. package/.local/share/amp/threads/T-019c98c5-4b7f-7284-99e9-88aa8c18ba66.json +1830 -0
  21. package/.local/share/amp/threads/T-019c98d0-f27f-76ec-be10-6df96f22be99.json +4061 -0
  22. package/.local/share/amp/threads/T-019c98f9-d031-704d-a0c2-f2f395f68f2b.json +509 -0
  23. package/.local/share/amp/threads/T-019c9919-f9ee-766c-90be-af7a07f6a4c6.json +2075 -0
  24. package/.local/share/amp/threads/T-019c991c-b98b-7158-9083-cc52408beb13.json +7 -0
  25. package/.local/share/amp/threads/T-019c991d-66d6-72aa-a9a1-105f7df0ea06.json +7 -0
  26. package/.local/share/amp/threads/T-019c9c2e-71a4-77ff-bd7f-b053da7f9000.json +1637 -0
  27. package/.local/share/amp/threads/T-019c9c45-27ca-728b-ba77-835115dfa9b2.json +3893 -0
  28. package/.local/share/amp/threads/T-019c9c48-45dc-736a-9752-e4119fe698f9.json +7 -0
  29. package/.local/share/amp/threads/T-019c9c4d-266b-72d0-b56e-74a5777e6583.json +7 -0
  30. package/.local/share/amp/threads/T-019c9c52-ab89-758f-9178-bda99c39d10b.json +7 -0
  31. package/.local/share/opencode/opencode.db +0 -0
  32. package/.local/share/opencode/opencode.db-shm +0 -0
  33. package/.local/share/opencode/opencode.db-wal +0 -0
  34. package/.local/share/opencode/storage/agent-usage-reminder/ses_36870ea98ffe8S5ZOCE4F11yFh.json +6 -0
  35. package/.local/share/opencode/storage/agent-usage-reminder/ses_3687a3e9affewUnHBzvpiPR6df.json +6 -0
  36. package/.local/share/opencode/storage/agent-usage-reminder/ses_36886e68dffeKVgUWf6lzXdEEt.json +6 -0
  37. package/.local/share/opencode/storage/session_diff/ses_36870ea98ffe8S5ZOCE4F11yFh.json +1 -0
  38. package/.local/share/opencode/storage/session_diff/ses_3687a3e9affewUnHBzvpiPR6df.json +1 -0
  39. package/.local/share/opencode/storage/session_diff/ses_36886e68dffeKVgUWf6lzXdEEt.json +1 -0
  40. package/.local/state/replit/log-query.db +0 -0
  41. package/.local/state/replit/log-query.db-shm +0 -0
  42. package/.local/state/replit/log-query.db-wal +0 -0
  43. package/.upm/store.json +1 -1
  44. package/AGENTS.md +32 -0
  45. package/bun.lock +137 -103
  46. package/index.jsx +24 -0
  47. package/package.json +9 -9
  48. package/src/agent.js +252 -169
  49. package/src/app.jsx +96 -0
  50. package/src/commands.js +66 -38
  51. package/src/components/AssistantMessage.jsx +83 -0
  52. package/src/components/ChatArea.jsx +84 -0
  53. package/src/components/DiffView.jsx +26 -0
  54. package/src/components/Divider.jsx +8 -0
  55. package/src/components/Header.jsx +44 -0
  56. package/src/components/HelpModal.jsx +81 -0
  57. package/src/components/InputBar.jsx +32 -0
  58. package/src/components/Spinner.jsx +23 -0
  59. package/src/components/StatusBar.jsx +44 -0
  60. package/src/components/SystemMessage.jsx +31 -0
  61. package/src/components/ThinkBlock.jsx +29 -0
  62. package/src/components/ToolCallItem.jsx +43 -0
  63. package/src/components/UserMessage.jsx +11 -0
  64. package/src/components/Welcome.jsx +14 -0
  65. package/src/config.js +118 -2
  66. package/src/hooks/useLayout.js +15 -0
  67. package/src/hooks/useStore.js +6 -0
  68. package/src/prompt.js +67 -48
  69. package/src/store.js +99 -0
  70. package/src/theme.js +19 -0
  71. package/src/thinking.js +0 -24
  72. package/src/toolExecutors.js +580 -23
  73. package/src/tools.js +146 -4
  74. package/src/utils.js +32 -0
  75. package/tsconfig.json +10 -0
  76. package/index.js +0 -92
  77. package/src/ui.js +0 -269
@@ -0,0 +1,7 @@
1
+ {
2
+ "v": 1,
3
+ "id": "T-019c9772-edac-7075-b26e-0ada1f8697d2",
4
+ "created": 1772067417526,
5
+ "messages": [],
6
+ "agentMode": "smart"
7
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "v": 20,
3
+ "id": "T-019c97e8-a9ab-71a1-a8f9-109c540c98bf",
4
+ "created": 1772075133363,
5
+ "messages": [
6
+ {
7
+ "role": "user",
8
+ "messageId": 0,
9
+ "content": [
10
+ {
11
+ "type": "text",
12
+ "text": "hi"
13
+ }
14
+ ],
15
+ "userState": {
16
+ "currentlyVisibleFiles": []
17
+ },
18
+ "agentMode": "smart",
19
+ "meta": {
20
+ "sentAt": 1772075134879
21
+ }
22
+ },
23
+ {
24
+ "role": "assistant",
25
+ "messageId": 1,
26
+ "content": [
27
+ {
28
+ "type": "text",
29
+ "text": "\n\nHi! How can I help you today? 😊"
30
+ }
31
+ ],
32
+ "state": {
33
+ "type": "complete",
34
+ "stopReason": "end_turn"
35
+ },
36
+ "usage": {
37
+ "model": "claude-opus-4-6",
38
+ "maxInputTokens": 168000,
39
+ "inputTokens": 3,
40
+ "outputTokens": 16,
41
+ "cacheCreationInputTokens": 1192,
42
+ "cacheReadInputTokens": 13086,
43
+ "totalInputTokens": 14281,
44
+ "timestamp": "2026-02-26T03:05:36.909Z"
45
+ },
46
+ "turnElapsedMs": 2030
47
+ }
48
+ ],
49
+ "agentMode": "smart",
50
+ "nextMessageId": 2,
51
+ "meta": {
52
+ "traces": [
53
+ {
54
+ "name": "agent",
55
+ "id": "GThSA",
56
+ "startTime": "2026-02-26T03:05:34.880Z",
57
+ "context": {
58
+ "messageId": 0
59
+ },
60
+ "endTime": "2026-02-26T03:05:36.910Z"
61
+ },
62
+ {
63
+ "name": "inference",
64
+ "id": "CYJwW",
65
+ "parent": "GThSA",
66
+ "startTime": "2026-02-26T03:05:34.882Z",
67
+ "context": {
68
+ "messageId": 0
69
+ },
70
+ "endTime": "2026-02-26T03:05:36.911Z"
71
+ }
72
+ ]
73
+ },
74
+ "env": {
75
+ "initial": {
76
+ "trees": [
77
+ {
78
+ "displayName": "workspace",
79
+ "uri": "file:///home/runner/workspace"
80
+ }
81
+ ],
82
+ "platform": {
83
+ "os": "linux",
84
+ "osVersion": "Ubuntu 24.04.2 LTS",
85
+ "cpuArchitecture": "x64",
86
+ "webBrowser": false,
87
+ "client": "CLI",
88
+ "clientVersion": "0.0.1772003388-gaa1ef1",
89
+ "clientType": "cli",
90
+ "installationID": "990855e2-5987-4061-ad34-8c29deacfa95",
91
+ "deviceFingerprint": "v1:fp_5e0b4aaea6d8b2adcf3c155505cf5c39765fb8ea3e8157ac186424d91df98615"
92
+ },
93
+ "tags": [
94
+ "model:claude-opus-4-6"
95
+ ]
96
+ }
97
+ },
98
+ "title": "Greeting",
99
+ "~debug": {
100
+ "lastInferenceUsage": {
101
+ "model": "claude-opus-4-6",
102
+ "maxInputTokens": 168000,
103
+ "inputTokens": 3,
104
+ "outputTokens": 16,
105
+ "cacheCreationInputTokens": 1192,
106
+ "cacheReadInputTokens": 13086,
107
+ "totalInputTokens": 14281,
108
+ "timestamp": "2026-02-26T03:05:36.909Z"
109
+ }
110
+ }
111
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "v": 1,
3
+ "id": "T-019c97e9-2277-753c-8c5d-df745fa6cfff",
4
+ "created": 1772075164290,
5
+ "messages": [],
6
+ "agentMode": "smart"
7
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "v": 21,
3
+ "id": "T-019c97e9-f28e-758d-9663-e37047a8ed95",
4
+ "created": 1772075217557,
5
+ "messages": [
6
+ {
7
+ "role": "user",
8
+ "messageId": 0,
9
+ "content": [
10
+ {
11
+ "type": "text",
12
+ "text": "hi"
13
+ }
14
+ ],
15
+ "userState": {
16
+ "currentlyVisibleFiles": []
17
+ },
18
+ "agentMode": "smart",
19
+ "meta": {
20
+ "sentAt": 1772075219899
21
+ }
22
+ },
23
+ {
24
+ "role": "assistant",
25
+ "messageId": 1,
26
+ "content": [
27
+ {
28
+ "type": "text",
29
+ "text": "\n\nHi! How can I help you today? 😊"
30
+ }
31
+ ],
32
+ "state": {
33
+ "type": "complete",
34
+ "stopReason": "end_turn"
35
+ },
36
+ "usage": {
37
+ "model": "claude-opus-4-6",
38
+ "maxInputTokens": 168000,
39
+ "inputTokens": 3,
40
+ "outputTokens": 16,
41
+ "cacheCreationInputTokens": 1190,
42
+ "cacheReadInputTokens": 13127,
43
+ "totalInputTokens": 14320,
44
+ "timestamp": "2026-02-26T03:07:01.981Z"
45
+ },
46
+ "turnElapsedMs": 2080
47
+ }
48
+ ],
49
+ "agentMode": "smart",
50
+ "nextMessageId": 2,
51
+ "meta": {
52
+ "traces": [
53
+ {
54
+ "name": "agent",
55
+ "id": "wldfs",
56
+ "startTime": "2026-02-26T03:06:59.902Z",
57
+ "context": {
58
+ "messageId": 0
59
+ },
60
+ "endTime": "2026-02-26T03:07:01.982Z"
61
+ },
62
+ {
63
+ "name": "inference",
64
+ "id": "NlpXn",
65
+ "parent": "wldfs",
66
+ "startTime": "2026-02-26T03:06:59.904Z",
67
+ "context": {
68
+ "messageId": 0
69
+ },
70
+ "endTime": "2026-02-26T03:07:01.983Z"
71
+ }
72
+ ]
73
+ },
74
+ "env": {
75
+ "initial": {
76
+ "trees": [
77
+ {
78
+ "displayName": "workspace",
79
+ "uri": "file:///home/runner/workspace"
80
+ }
81
+ ],
82
+ "platform": {
83
+ "os": "linux",
84
+ "osVersion": "Ubuntu 24.04.2 LTS",
85
+ "cpuArchitecture": "x64",
86
+ "webBrowser": false,
87
+ "client": "CLI",
88
+ "clientVersion": "0.0.1772067340-g53cd9b",
89
+ "clientType": "cli",
90
+ "installationID": "990855e2-5987-4061-ad34-8c29deacfa95",
91
+ "deviceFingerprint": "v1:fp_5e0b4aaea6d8b2adcf3c155505cf5c39765fb8ea3e8157ac186424d91df98615"
92
+ },
93
+ "tags": [
94
+ "model:claude-opus-4-6"
95
+ ]
96
+ }
97
+ },
98
+ "title": "Greeting",
99
+ "~debug": {
100
+ "lastInferenceUsage": {
101
+ "model": "claude-opus-4-6",
102
+ "maxInputTokens": 168000,
103
+ "inputTokens": 3,
104
+ "outputTokens": 16,
105
+ "cacheCreationInputTokens": 1190,
106
+ "cacheReadInputTokens": 13127,
107
+ "totalInputTokens": 14320,
108
+ "timestamp": "2026-02-26T03:07:01.981Z"
109
+ }
110
+ }
111
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "v": 8,
3
+ "id": "T-019c97ea-17c7-77b8-92b2-f641c069bcc9",
4
+ "created": 1772075227091,
5
+ "messages": [
6
+ {
7
+ "role": "user",
8
+ "messageId": 0,
9
+ "content": [
10
+ {
11
+ "type": "text",
12
+ "text": "hi"
13
+ }
14
+ ],
15
+ "userState": {
16
+ "currentlyVisibleFiles": []
17
+ },
18
+ "agentMode": "deep",
19
+ "meta": {
20
+ "sentAt": 1772075229364
21
+ }
22
+ }
23
+ ],
24
+ "agentMode": "deep",
25
+ "nextMessageId": 1,
26
+ "meta": {
27
+ "traces": [
28
+ {
29
+ "name": "agent",
30
+ "id": "EoFH5",
31
+ "startTime": "2026-02-26T03:07:09.365Z",
32
+ "context": {
33
+ "messageId": 0
34
+ },
35
+ "endTime": "2026-02-26T03:07:10.070Z"
36
+ },
37
+ {
38
+ "name": "inference",
39
+ "id": "slRzU",
40
+ "parent": "EoFH5",
41
+ "startTime": "2026-02-26T03:07:09.366Z",
42
+ "context": {
43
+ "messageId": 0
44
+ },
45
+ "endTime": "2026-02-26T03:07:10.070Z"
46
+ }
47
+ ]
48
+ },
49
+ "env": {
50
+ "initial": {
51
+ "trees": [
52
+ {
53
+ "displayName": "workspace",
54
+ "uri": "file:///home/runner/workspace"
55
+ }
56
+ ],
57
+ "platform": {
58
+ "os": "linux",
59
+ "osVersion": "Ubuntu 24.04.2 LTS",
60
+ "cpuArchitecture": "x64",
61
+ "webBrowser": false,
62
+ "client": "CLI",
63
+ "clientVersion": "0.0.1772067340-g53cd9b",
64
+ "clientType": "cli",
65
+ "installationID": "990855e2-5987-4061-ad34-8c29deacfa95",
66
+ "deviceFingerprint": "v1:fp_5e0b4aaea6d8b2adcf3c155505cf5c39765fb8ea3e8157ac186424d91df98615"
67
+ }
68
+ }
69
+ },
70
+ "title": "Greeting"
71
+ }