@defai.digital/ax-cli 3.6.1 → 3.7.1
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 +129 -16
- package/config-defaults/settings.yaml +24 -0
- package/dist/agent/llm-agent.d.ts +48 -3
- package/dist/agent/llm-agent.js +145 -40
- package/dist/agent/llm-agent.js.map +1 -1
- package/dist/agent/subagent.d.ts +6 -0
- package/dist/agent/subagent.js +41 -24
- package/dist/agent/subagent.js.map +1 -1
- package/dist/constants.d.ts +13 -0
- package/dist/constants.js +28 -0
- package/dist/constants.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/mcp/client.js +2 -2
- package/dist/mcp/client.js.map +1 -1
- package/dist/schemas/settings-schemas.d.ts +17 -0
- package/dist/schemas/settings-schemas.js +15 -0
- package/dist/schemas/settings-schemas.js.map +1 -1
- package/dist/sdk/errors.d.ts +93 -0
- package/dist/sdk/errors.js +124 -0
- package/dist/sdk/errors.js.map +1 -0
- package/dist/sdk/index.d.ts +116 -46
- package/dist/sdk/index.js +178 -57
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/progress-reporter.d.ts +111 -0
- package/dist/sdk/progress-reporter.js +178 -0
- package/dist/sdk/progress-reporter.js.map +1 -0
- package/dist/sdk/testing.d.ts +184 -0
- package/dist/sdk/testing.js +291 -0
- package/dist/sdk/testing.js.map +1 -0
- package/dist/sdk/tool-registry.d.ts +163 -0
- package/dist/sdk/tool-registry.js +218 -0
- package/dist/sdk/tool-registry.js.map +1 -0
- package/dist/sdk/unified-logger.d.ts +163 -0
- package/dist/sdk/unified-logger.js +274 -0
- package/dist/sdk/unified-logger.js.map +1 -0
- package/dist/sdk/version.d.ts +59 -0
- package/dist/sdk/version.js +64 -0
- package/dist/sdk/version.js.map +1 -0
- package/dist/tools/bash.d.ts +4 -0
- package/dist/tools/bash.js +22 -2
- package/dist/tools/bash.js.map +1 -1
- package/dist/ui/components/chat-history.d.ts +2 -0
- package/dist/ui/components/chat-history.js +32 -81
- package/dist/ui/components/chat-history.js.map +1 -1
- package/dist/ui/components/chat-interface.js +3 -3
- package/dist/ui/components/chat-interface.js.map +1 -1
- package/dist/ui/components/status-bar.d.ts +2 -0
- package/dist/ui/components/status-bar.js +33 -9
- package/dist/ui/components/status-bar.js.map +1 -1
- package/dist/ui/components/tool-group-display.d.ts +15 -0
- package/dist/ui/components/tool-group-display.js +91 -0
- package/dist/ui/components/tool-group-display.js.map +1 -0
- package/dist/ui/hooks/use-enhanced-input.js +43 -6
- package/dist/ui/hooks/use-enhanced-input.js.map +1 -1
- package/dist/ui/hooks/use-input-handler.d.ts +2 -0
- package/dist/ui/hooks/use-input-handler.js +13 -7
- package/dist/ui/hooks/use-input-handler.js.map +1 -1
- package/dist/ui/utils/change-summarizer.d.ts +20 -0
- package/dist/ui/utils/change-summarizer.js +193 -0
- package/dist/ui/utils/change-summarizer.js.map +1 -0
- package/dist/ui/utils/tool-grouper.d.ts +62 -0
- package/dist/ui/utils/tool-grouper.js +224 -0
- package/dist/ui/utils/tool-grouper.js.map +1 -0
- package/dist/utils/config-loader.d.ts +4 -0
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/paste-utils.js +45 -19
- package/dist/utils/paste-utils.js.map +1 -1
- package/dist/utils/token-counter.d.ts +12 -0
- package/dist/utils/token-counter.js +32 -4
- package/dist/utils/token-counter.js.map +1 -1
- package/package.json +2 -2
- package/packages/schemas/package.json +1 -1
- package/.ax-cli/CUSTOM.md +0 -269
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-11e9e0ba-c39d-4fd2-aa77-bc818811c921.json +0 -69
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-2b260b98-b418-4c7c-9694-e2b94967e662.json +0 -24
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-2dd84869-e62d-46c8-9885-7e45f37f36e2.json +0 -69
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-484dc350-353f-4808-9ed1-ebb3cefdab37.json +0 -24
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-74a18b87-6172-4215-962b-44bb9f46a662.json +0 -69
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-7e03601e-e8ab-4cd7-9841-a74b66adf78f.json +0 -69
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-7f9c6562-771f-4fd0-adcf-9e7e9ac34ae8.json +0 -44
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-870a5fb9-6e82-4ff2-8ec8-af4c251cc514.json +0 -44
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-93946601-0e83-456c-ba47-def9713124dd.json +0 -24
- package/.ax-cli/checkpoints/2025-11-20/checkpoint-e1ebe666-4c3a-4367-ba5c-27fe512a9c70.json +0 -24
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-15743e7d-430c-4d76-b6fc-955d7a5c250c.json +0 -44
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-25cf7679-0b3f-4988-83d7-704548fbba91.json +0 -69
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-54aedbac-6db0-464e-8ebb-dbb3979e6dca.json +0 -24
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-7658aed8-fe5d-4222-903f-1a7c63717ea7.json +0 -24
- package/.ax-cli/checkpoints/2025-11-21/checkpoint-c9c13497-40dc-4294-a327-6a5fc854eaa1.json +0 -69
- package/.ax-cli/checkpoints/metadata.json +0 -62
- package/.ax-cli/index.json +0 -44
- package/.ax-cli/memory.json +0 -62
- package/.ax-cli/settings.json +0 -1
- package/ax.config.json +0 -333
- package/dist/agent/chat-history-manager.d.ts +0 -56
- package/dist/agent/chat-history-manager.js +0 -150
- package/dist/agent/chat-history-manager.js.map +0 -1
- package/dist/agent/tool-manager.d.ts +0 -39
- package/dist/agent/tool-manager.js +0 -76
- package/dist/agent/tool-manager.js.map +0 -1
- package/dist/hooks/use-chat-reducer.d.ts +0 -61
- package/dist/hooks/use-chat-reducer.js +0 -118
- package/dist/hooks/use-chat-reducer.js.map +0 -1
- package/dist/hooks/use-enhanced-input.d.ts +0 -40
- package/dist/hooks/use-enhanced-input.js +0 -249
- package/dist/hooks/use-enhanced-input.js.map +0 -1
- package/dist/hooks/use-input-handler.d.ts +0 -46
- package/dist/hooks/use-input-handler.js +0 -1430
- package/dist/hooks/use-input-handler.js.map +0 -1
- package/dist/hooks/use-input-history.d.ts +0 -9
- package/dist/hooks/use-input-history.js +0 -112
- package/dist/hooks/use-input-history.js.map +0 -1
- package/dist/index.js.bak +0 -664
- package/dist/tools/web-search/engines/brave.d.ts +0 -16
- package/dist/tools/web-search/engines/brave.js +0 -99
- package/dist/tools/web-search/engines/brave.js.map +0 -1
- package/dist/tools/web-search/engines/tavily.d.ts +0 -17
- package/dist/tools/web-search/engines/tavily.js +0 -73
- package/dist/tools/web-search/engines/tavily.js.map +0 -1
- package/dist/utils/paste-collapse.d.ts +0 -46
- package/dist/utils/paste-collapse.js +0 -77
- package/dist/utils/paste-collapse.js.map +0 -1
- package/packages/schemas/dist/index.d.ts +0 -14
- package/packages/schemas/dist/index.d.ts.map +0 -1
- package/packages/schemas/dist/index.js +0 -19
- package/packages/schemas/dist/index.js.map +0 -1
- package/packages/schemas/dist/public/core/brand-types.d.ts +0 -308
- package/packages/schemas/dist/public/core/brand-types.d.ts.map +0 -1
- package/packages/schemas/dist/public/core/brand-types.js +0 -243
- package/packages/schemas/dist/public/core/brand-types.js.map +0 -1
- package/packages/schemas/dist/public/core/enums.d.ts +0 -227
- package/packages/schemas/dist/public/core/enums.d.ts.map +0 -1
- package/packages/schemas/dist/public/core/enums.js +0 -222
- package/packages/schemas/dist/public/core/enums.js.map +0 -1
- package/packages/schemas/dist/public/core/id-types.d.ts +0 -286
- package/packages/schemas/dist/public/core/id-types.d.ts.map +0 -1
- package/packages/schemas/dist/public/core/id-types.js +0 -136
- package/packages/schemas/dist/public/core/id-types.js.map +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "93946601-0e83-456c-ba47-def9713124dd",
|
|
3
|
-
"timestamp": "2025-11-21T03:53:47.533Z",
|
|
4
|
-
"description": "Test checkpoint",
|
|
5
|
-
"files": [
|
|
6
|
-
{
|
|
7
|
-
"path": "/test/file-1763697227533.ts",
|
|
8
|
-
"content": "test content",
|
|
9
|
-
"hash": "6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72",
|
|
10
|
-
"size": 12
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"conversationState": [
|
|
14
|
-
{
|
|
15
|
-
"type": "user",
|
|
16
|
-
"content": "Test message",
|
|
17
|
-
"timestamp": "2025-11-21T03:53:47.533Z"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"metadata": {
|
|
21
|
-
"model": "glm-4.6",
|
|
22
|
-
"triggeredBy": "test"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "e1ebe666-4c3a-4367-ba5c-27fe512a9c70",
|
|
3
|
-
"timestamp": "2025-11-21T03:58:12.783Z",
|
|
4
|
-
"description": "Test checkpoint",
|
|
5
|
-
"files": [
|
|
6
|
-
{
|
|
7
|
-
"path": "/test/file-1763697492783.ts",
|
|
8
|
-
"content": "test content",
|
|
9
|
-
"hash": "6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72",
|
|
10
|
-
"size": 12
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"conversationState": [
|
|
14
|
-
{
|
|
15
|
-
"type": "user",
|
|
16
|
-
"content": "Test message",
|
|
17
|
-
"timestamp": "2025-11-21T03:58:12.783Z"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"metadata": {
|
|
21
|
-
"model": "glm-4.6",
|
|
22
|
-
"triggeredBy": "test"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "15743e7d-430c-4d76-b6fc-955d7a5c250c",
|
|
3
|
-
"timestamp": "2025-11-21T04:38:27.918Z",
|
|
4
|
-
"description": "Test checkpoint",
|
|
5
|
-
"files": [
|
|
6
|
-
{
|
|
7
|
-
"path": "/test/file-1763699907918.ts",
|
|
8
|
-
"content": "test content",
|
|
9
|
-
"hash": "6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72",
|
|
10
|
-
"size": 12
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"conversationState": [
|
|
14
|
-
{
|
|
15
|
-
"type": "user",
|
|
16
|
-
"content": "Message 0",
|
|
17
|
-
"timestamp": "2025-11-21T04:38:27.918Z"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"type": "user",
|
|
21
|
-
"content": "Message 1",
|
|
22
|
-
"timestamp": "2025-11-21T04:38:27.918Z"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "user",
|
|
26
|
-
"content": "Message 2",
|
|
27
|
-
"timestamp": "2025-11-21T04:38:27.918Z"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "user",
|
|
31
|
-
"content": "Message 3",
|
|
32
|
-
"timestamp": "2025-11-21T04:38:27.918Z"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"type": "user",
|
|
36
|
-
"content": "Message 4",
|
|
37
|
-
"timestamp": "2025-11-21T04:38:27.918Z"
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"metadata": {
|
|
41
|
-
"model": "glm-4.6",
|
|
42
|
-
"triggeredBy": "test"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "25cf7679-0b3f-4988-83d7-704548fbba91",
|
|
3
|
-
"timestamp": "2025-11-21T04:38:27.917Z",
|
|
4
|
-
"description": "Test checkpoint",
|
|
5
|
-
"files": [
|
|
6
|
-
{
|
|
7
|
-
"path": "/test/file-1763699907917.ts",
|
|
8
|
-
"content": "test content",
|
|
9
|
-
"hash": "6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72",
|
|
10
|
-
"size": 12
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"conversationState": [
|
|
14
|
-
{
|
|
15
|
-
"type": "user",
|
|
16
|
-
"content": "Message 10",
|
|
17
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"type": "user",
|
|
21
|
-
"content": "Message 11",
|
|
22
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "user",
|
|
26
|
-
"content": "Message 12",
|
|
27
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "user",
|
|
31
|
-
"content": "Message 13",
|
|
32
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"type": "user",
|
|
36
|
-
"content": "Message 14",
|
|
37
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"type": "user",
|
|
41
|
-
"content": "Message 15",
|
|
42
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "user",
|
|
46
|
-
"content": "Message 16",
|
|
47
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"type": "user",
|
|
51
|
-
"content": "Message 17",
|
|
52
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "user",
|
|
56
|
-
"content": "Message 18",
|
|
57
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "user",
|
|
61
|
-
"content": "Message 19",
|
|
62
|
-
"timestamp": "2025-11-21T04:38:27.917Z"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"metadata": {
|
|
66
|
-
"model": "glm-4.6",
|
|
67
|
-
"triggeredBy": "test"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "54aedbac-6db0-464e-8ebb-dbb3979e6dca",
|
|
3
|
-
"timestamp": "2025-11-21T04:38:27.914Z",
|
|
4
|
-
"description": "Test checkpoint",
|
|
5
|
-
"files": [
|
|
6
|
-
{
|
|
7
|
-
"path": "/test/file-1763699907914.ts",
|
|
8
|
-
"content": "test content",
|
|
9
|
-
"hash": "6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72",
|
|
10
|
-
"size": 12
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"conversationState": [
|
|
14
|
-
{
|
|
15
|
-
"type": "user",
|
|
16
|
-
"content": "Test message",
|
|
17
|
-
"timestamp": "2025-11-21T04:38:27.914Z"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"metadata": {
|
|
21
|
-
"model": "glm-4.6",
|
|
22
|
-
"triggeredBy": "test"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "7658aed8-fe5d-4222-903f-1a7c63717ea7",
|
|
3
|
-
"timestamp": "2025-11-21T04:38:27.913Z",
|
|
4
|
-
"description": "Test checkpoint",
|
|
5
|
-
"files": [
|
|
6
|
-
{
|
|
7
|
-
"path": "/test/file-1763699907913.ts",
|
|
8
|
-
"content": "test content",
|
|
9
|
-
"hash": "6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72",
|
|
10
|
-
"size": 12
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"conversationState": [
|
|
14
|
-
{
|
|
15
|
-
"type": "user",
|
|
16
|
-
"content": "Test message",
|
|
17
|
-
"timestamp": "2025-11-21T04:38:27.913Z"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"metadata": {
|
|
21
|
-
"model": "glm-4.6",
|
|
22
|
-
"triggeredBy": "test"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "c9c13497-40dc-4294-a327-6a5fc854eaa1",
|
|
3
|
-
"timestamp": "2025-11-21T04:38:27.915Z",
|
|
4
|
-
"description": "Test checkpoint",
|
|
5
|
-
"files": [
|
|
6
|
-
{
|
|
7
|
-
"path": "/test/file-1763699907915.ts",
|
|
8
|
-
"content": "test content",
|
|
9
|
-
"hash": "6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72",
|
|
10
|
-
"size": 12
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"conversationState": [
|
|
14
|
-
{
|
|
15
|
-
"type": "user",
|
|
16
|
-
"content": "Message 40",
|
|
17
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"type": "user",
|
|
21
|
-
"content": "Message 41",
|
|
22
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "user",
|
|
26
|
-
"content": "Message 42",
|
|
27
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "user",
|
|
31
|
-
"content": "Message 43",
|
|
32
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"type": "user",
|
|
36
|
-
"content": "Message 44",
|
|
37
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"type": "user",
|
|
41
|
-
"content": "Message 45",
|
|
42
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "user",
|
|
46
|
-
"content": "Message 46",
|
|
47
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"type": "user",
|
|
51
|
-
"content": "Message 47",
|
|
52
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "user",
|
|
56
|
-
"content": "Message 48",
|
|
57
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "user",
|
|
61
|
-
"content": "Message 49",
|
|
62
|
-
"timestamp": "2025-11-21T04:38:27.915Z"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"metadata": {
|
|
66
|
-
"model": "glm-4.6",
|
|
67
|
-
"triggeredBy": "test"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"checkpoints": [
|
|
3
|
-
{
|
|
4
|
-
"id": "870a5fb9-6e82-4ff2-8ec8-af4c251cc514",
|
|
5
|
-
"timestamp": "2025-11-21T03:53:47.540Z",
|
|
6
|
-
"description": "Test checkpoint",
|
|
7
|
-
"filesChanged": [
|
|
8
|
-
"/test/file-1763697227540.ts"
|
|
9
|
-
],
|
|
10
|
-
"size": 991,
|
|
11
|
-
"compressed": false
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"id": "2dd84869-e62d-46c8-9885-7e45f37f36e2",
|
|
15
|
-
"timestamp": "2025-11-21T03:53:47.537Z",
|
|
16
|
-
"description": "Test checkpoint",
|
|
17
|
-
"filesChanged": [
|
|
18
|
-
"/test/file-1763697227537.ts"
|
|
19
|
-
],
|
|
20
|
-
"size": 1556,
|
|
21
|
-
"compressed": false
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"id": "74a18b87-6172-4215-962b-44bb9f46a662",
|
|
25
|
-
"timestamp": "2025-11-21T03:53:47.535Z",
|
|
26
|
-
"description": "Test checkpoint",
|
|
27
|
-
"filesChanged": [
|
|
28
|
-
"/test/file-1763697227535.ts"
|
|
29
|
-
],
|
|
30
|
-
"size": 1556,
|
|
31
|
-
"compressed": false
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"id": "93946601-0e83-456c-ba47-def9713124dd",
|
|
35
|
-
"timestamp": "2025-11-21T03:53:47.533Z",
|
|
36
|
-
"description": "Test checkpoint",
|
|
37
|
-
"filesChanged": [
|
|
38
|
-
"/test/file-1763697227533.ts"
|
|
39
|
-
],
|
|
40
|
-
"size": 550,
|
|
41
|
-
"compressed": false
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"id": "484dc350-353f-4808-9ed1-ebb3cefdab37",
|
|
45
|
-
"timestamp": "2025-11-21T03:53:47.531Z",
|
|
46
|
-
"description": "Test checkpoint",
|
|
47
|
-
"filesChanged": [
|
|
48
|
-
"/test/file-1763697227531.ts"
|
|
49
|
-
],
|
|
50
|
-
"size": 550,
|
|
51
|
-
"compressed": false
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"stats": {
|
|
55
|
-
"totalCount": 5,
|
|
56
|
-
"totalSize": 5203,
|
|
57
|
-
"compressedCount": 0,
|
|
58
|
-
"oldestDate": "2025-11-21T03:53:47.531Z",
|
|
59
|
-
"newestDate": "2025-11-21T03:53:47.540Z"
|
|
60
|
-
},
|
|
61
|
-
"lastUpdated": "2025-11-21T03:53:47.541Z"
|
|
62
|
-
}
|
package/.ax-cli/index.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"projectName": "@defai.digital/ax-cli",
|
|
3
|
-
"version": "2.3.1",
|
|
4
|
-
"primaryLanguage": "TypeScript",
|
|
5
|
-
"techStack": [
|
|
6
|
-
"React",
|
|
7
|
-
"Vitest",
|
|
8
|
-
"Zod",
|
|
9
|
-
"Commander",
|
|
10
|
-
"Ink",
|
|
11
|
-
"ESM",
|
|
12
|
-
"TypeScript"
|
|
13
|
-
],
|
|
14
|
-
"projectType": "cli",
|
|
15
|
-
"entryPoint": "dist/index.js",
|
|
16
|
-
"directories": {
|
|
17
|
-
"source": "src",
|
|
18
|
-
"tests": "tests",
|
|
19
|
-
"config": "config",
|
|
20
|
-
"tools": "src/tools"
|
|
21
|
-
},
|
|
22
|
-
"keyFiles": [
|
|
23
|
-
"package.json",
|
|
24
|
-
"tsconfig.json",
|
|
25
|
-
"vitest.config.ts",
|
|
26
|
-
".eslintrc.js",
|
|
27
|
-
"README.md",
|
|
28
|
-
"CLAUDE.md"
|
|
29
|
-
],
|
|
30
|
-
"conventions": {
|
|
31
|
-
"moduleSystem": "esm",
|
|
32
|
-
"importExtension": ".js",
|
|
33
|
-
"testFramework": "vitest",
|
|
34
|
-
"validation": "zod"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build": "npm run build:schemas && tsc",
|
|
38
|
-
"test": "vitest run",
|
|
39
|
-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
40
|
-
"dev": "bun run src/index.ts"
|
|
41
|
-
},
|
|
42
|
-
"packageManager": "npm",
|
|
43
|
-
"lastAnalyzed": "2025-11-19T22:52:24.501Z"
|
|
44
|
-
}
|
package/.ax-cli/memory.json
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1,
|
|
3
|
-
"created_at": "2025-11-22T11:59:21.278Z",
|
|
4
|
-
"updated_at": "2025-11-22T13:09:05.236Z",
|
|
5
|
-
"project_root": "/Users/akiralam/code/ax-cli",
|
|
6
|
-
"content_hash": "sha256:213c195995de78eced482260119b8ac69826a6a26f7bffe20ab0e3874b4f0f9f",
|
|
7
|
-
"source": {
|
|
8
|
-
"directories": [
|
|
9
|
-
{
|
|
10
|
-
"path": "src",
|
|
11
|
-
"max_depth": 3
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"path": "packages",
|
|
15
|
-
"max_depth": 2
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"files": [
|
|
19
|
-
"README.md",
|
|
20
|
-
"readme.md",
|
|
21
|
-
"package.json",
|
|
22
|
-
"tsconfig.json",
|
|
23
|
-
".ax-cli/CUSTOM.md"
|
|
24
|
-
],
|
|
25
|
-
"ignore": [
|
|
26
|
-
"node_modules",
|
|
27
|
-
"dist",
|
|
28
|
-
"build",
|
|
29
|
-
".git",
|
|
30
|
-
".next",
|
|
31
|
-
".nuxt",
|
|
32
|
-
"coverage",
|
|
33
|
-
".cache",
|
|
34
|
-
".turbo",
|
|
35
|
-
".vercel",
|
|
36
|
-
"__pycache__",
|
|
37
|
-
".pytest_cache",
|
|
38
|
-
"target",
|
|
39
|
-
"vendor",
|
|
40
|
-
"*.log",
|
|
41
|
-
"*.lock",
|
|
42
|
-
".DS_Store"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"context": {
|
|
46
|
-
"formatted": "# Project Context\n\n\n## Architecture Patterns\n- **Project Type**: cli\n- **Primary Language**: TypeScript\n- **Tech Stack**: React, Vitest, Zod, Commander, Ink, ESM, TypeScript\n- **Package Manager**: npm\n- **Entry Point**: dist/index.js\n- **Module System**: ESM\n- **Test Framework**: vitest\n- **Validation**: zod\n- **Linter**: eslint\n- **Key Directories**: source: src, tests: tests\n\n\n## Directory Structure\n```\nsrc/\n├── agent/\n│ ├── specialized/\n│ │ ├── analysis-agent.ts\n│ │ ├── debug-agent.ts\n│ │ ├── documentation-agent.ts\n│ │ ├── index.ts\n│ │ ├── performance-agent.ts\n│ │ ├── refactoring-agent.ts\n│ │ └── testing-agent.ts\n│ ├── chat-history-manager.ts\n│ ├── context-manager.ts\n│ ├── dependency-resolver.ts\n│ ├── index.ts\n│ ├── llm-agent.ts\n│ ├── subagent-orchestrator.ts\n│ ├── subagent-types.ts\n│ ├── subagent.ts\n│ └── tool-manager.ts\n├── analyzers/\n│ ├── architecture/\n│ │ ├── anti-pattern-detectors/\n│ │ ├── pattern-detectors/\n│ │ ├── architecture-analyzer.ts\n│ │ ├── index.ts\n│ │ └── project-structure-scanner.ts\n│ ├── ast/\n│ │ ├── index.ts\n│ │ ├── node-helpers.ts\n│ │ ├── parser.ts\n│ │ ├── traverser.ts\n│ │ └── types.ts\n│ ├── best-practices/\n│ │ ├── rules/\n│ │ ├── base-rule.ts\n│ │ ├── best-practice-validator.ts\n│ │ ├── index.ts\n│ │ └── types.ts\n│ ├── cache/\n│ │ └── analysis-cache.ts\n│ ├── code-smells/\n│ │ ├── detectors/\n│ │ ├── base-smell-detector.ts\n│ │ ├── code-smell-analyzer.ts\n│ │ ├── index.ts\n│ │ └── types.ts\n│ ├── dependency/\n│ │ ├── circular-detector.ts\n│ │ ├── coupling-calculator.ts\n│ │ ├── dependency-analyzer.ts\n│ │ ├── dependency-graph.ts\n│ │ ├── index.ts\n│ │ └── types.ts\n│ ├── git/\n│ │ ├── churn-calculator.ts\n│ │ ├── git-analyzer.ts\n│ │ ├── hotspot-detector.ts\n│ │ ├── index.ts\n│ │ └── types.ts\n│ ├── metrics/\n│ │ ├── halstead-calculator.ts\n│ │ ├── index.ts\n│ │ ├── maintainability-calculator.ts\n│ │ ├── metrics-analyzer.ts\n│ │ └── types.ts\n│ ├── security/\n│ │ ├── detectors/\n│ │ ├── base-detector.ts\n│ │ ├── index.ts\n│ │ ├── security-analyzer.ts\n│ │ └── types.ts\n│ └── errors.ts\n├── checkpoint/\n│ ├── index.ts\n│ ├── manager.ts\n│ ├── storage.ts\n│ └── types.ts\n├── commands/\n│ ├── init/\n│ │ └── wizard.ts\n│ ├── cache.ts\n│ ├── doctor.ts\n│ ├── frontend.ts\n│ ├── init.ts\n│ ├── mcp.ts\n│ ├── memory.ts\n│ ├── models.ts\n│ ├── plan.ts\n│ ├── rewind.ts\n│ ├── setup.ts\n│ ├── templates.ts\n│ ├── update.ts\n│ └── usage.ts\n├── llm/\n│ ├── client.ts\n│ ├── tools.ts\n│ └── types.ts\n├── mcp/\n│ ├── client.ts\n│ ├── config.ts\n│ ├── health.ts\n│ ├── reconnection.ts\n│ ├── registry.ts\n│ ├── resources.ts\n│ ├── ssrf-protection.ts\n│ ├── templates.ts\n│ ├── transports.ts\n│ └── validation.ts\n├── memory/\n│ ├── context-generator.ts\n│ ├── context-injector.ts\n│ ├── context-store.ts\n│ ├── index.ts\n│ ├── schemas.ts\n│ ├── stats-collector.ts\n│ └── types.ts\n├── planner/\n│ ├── prompts/\n│ │ └── planning-prompt.ts\n│ ├── dependency-resolver.ts\n│ ├── index.ts\n│ ├── plan-generator.ts\n│ ├── plan-storage.ts\n│ ├── task-planner.ts\n│ ├── token-estimator.ts\n│ └── types.ts\n├── schemas/\n│ ├── api-schemas.ts\n│ ├── confirmation-schemas.ts\n│ ├── index-unified.ts\n│ ├── index.ts\n│ ├── README.md\n│ ├── settings-schemas.ts\n│ ├── tool-schemas.ts\n│ └── yaml-schemas.ts\n├── sdk/\n│ ├── index.ts\n│ ├── README.md\n│ └── types.ts\n├── tools/\n│ ├── analysis-tools/\n│ │ ├── architecture-tool.ts\n│ │ └── validation-tool.ts\n│ ├── web-search/\n│ │ ├── engines/\n│ │ ├── cache.ts\n│ │ ├── index.ts\n│ │ ├── router.ts\n│ │ ├── types.ts\n│ │ └── web-search-tool.ts\n│ ├── analysis-tools.ts\n│ ├── bash-output.ts\n│ ├── bash.ts\n│ ├── confirmation-tool.ts\n│ ├── index.ts\n│ ├── search.ts\n│ ├── text-editor.ts\n│ └── todo-tool.ts\n├── types/\n│ ├── analysis.ts\n│ ├── index.ts\n│ ├── project-analysis.ts\n│ └── template.ts\n├── ui/\n│ ├── components/\n│ │ ├── api-key-input.tsx\n│ │ ├── chat-history.tsx\n│ │ ├── chat-input.tsx\n│ │ ├── chat-interface.tsx\n│ │ ├── collapsible-tool-result.tsx\n│ │ ├── command-suggestions.tsx\n│ │ ├── confirmation-dialog.tsx\n│ │ ├── diff-renderer.tsx\n│ │ ├── index.ts\n│ │ ├── keyboard-hints.tsx\n│ │ ├── loading-spinner.tsx\n│ │ ├── mcp-status.tsx\n│ │ ├── model-selection.tsx\n│ │ ├── phase-progress.tsx\n│ │ ├── quick-actions.tsx\n│ │ ├── reasoning-display.tsx\n│ │ ├── status-bar.tsx\n│ │ ├── subagent-monitor.tsx\n│ │ ├── toast-notification.tsx\n│ │ ├── virtualized-chat-history.tsx\n│ │ └── welcome-panel.tsx\n│ ├── hooks/\n│ │ ├── use-chat-reducer.ts\n│ │ ├── use-enhanced-input.ts\n│ │ ├── use-input-handler.ts\n│ │ └── use-input-history.ts\n│ ├── shared/\n│ │ └── max-sized-box.tsx\n│ ├── utils/\n│ │ ├── code-colorizer.tsx\n│ │ ├── colors.ts\n│ │ └── markdown-renderer.tsx\n│ └── app.tsx\n├── utils/\n│ ├── analysis-logger.ts\n│ ├── audit-logger.ts\n│ ├── automatosx-detector.ts\n│ ├── background-task-manager.ts\n│ ├── cache.ts\n│ ├── command-security.ts\n│ ├── config-loader.ts\n│ ├── confirmation-service.ts\n│ ├── console-messenger.ts\n│ ├── custom-instructions.ts\n│ ├── encryption.ts\n│ ├── error-handler.ts\n│ ├── error-sanitizer.ts\n│ ├── error-translator.ts\n│ ├── errors.ts\n│ ├── file-cache.ts\n│ ├── history-manager.ts\n│ ├── incremental-analyzer.ts\n│ ├── index.ts\n│ ├── init-previewer.ts\n│ ├── init-validator.ts\n│ ├── input-sanitizer.ts\n│ ├── instruction-generator.ts\n│ ├── json-utils.ts\n│ ├── llm-optimized-instruction-generator.ts\n│ ├── message-optimizer.ts\n│ ├── onboarding-manager.ts\n│ ├── parallel-analyzer.ts\n│ ├── path-security.ts\n│ ├── path-utils.ts\n│ └── ... (17 more)\n├── constants.ts\n└── index.ts\npackages/\n└── schemas/\n ├── __tests__/\n ├── scripts/\n ├── src/\n ├── .eslintrc.js\n ├── package-lock.json\n ├── package.json\n ├── README.md\n ├── tsconfig.json\n └── vitest.config.ts\n```\n\n\n## Key Configuration\n\n### README.md\n\n```\n# AX CLI - Enterprise-Class GLM AI CLI\n\n[](https://npm-stat.com/charts.html?package=%40defai.digital%2Fax-cli)\n[](https://github.com/defai-digital/ax-cli/actions/workflows/test.yml)\n[](https://github.com/defai-digital/ax\n...\n```\n\n### readme.md\n\n```\n# AX CLI - Enterprise-Class GLM AI CLI\n\n[](https://npm-stat.com/charts.html?package=%40defai.digital%2Fax-cli)\n[](https://github.com/defai-digital/ax-cli/actions/workflows/test.yml)\n[](https://github.com/defai-digital/ax\n...\n```\n\n### package.json\n\n- **Name**: @defai.digital/ax-cli\n- **Version**: 3.5.4\n- **Description**: Enterprise-Class AI Command Line Interface - Primary support for GLM (General Language Model) with multi-provider AI orchestration powered by AutomatosX.\n- **Type**: module\n- **CLI**: Yes\n- **Dependencies**: @ax-cli/schemas, @clack/prompts, @modelcontextprotocol/sdk, axios, chalk, clipboardy, commander, dotenv, enquirer, fs-extra (+14 more)\n- **Dev Dependencies**: @types/fs-extra, @types/glob, @types/js-yaml, @types/marked-terminal, @types/node, @types/react, @typescript-eslint/eslint-plugin, @typescript-eslint/parser (+6 more)\n- **Scripts**: build, build:schemas, build:bun, dev, dev:node, start\n\n### tsconfig.json\n\n- **Target**: ES2022\n- **Module**: ESNext\n- **Module Resolution**: Bundler\n- **Strict**: true\n- **Output**: ./dist\n\n### .ax-cli/CUSTOM.md\n\n# @defai.digital/ax-cli - Quick Reference\n\n**Type:** cli | **Lang:** TypeScript | **Ver:** v2.3.1\n**Stack:** React, Vitest, Zod, Commander, Ink, ESM, TypeScript\n\n---\n\n## 🎯 Critical Rules\n\n1. **ESM Imports:** Always use `.js` extension: `import { x } from './y.js'`\n2. **Validation:** Use zod for all external inputs\n3. **Types:** Explicit return types required on all functions\n4. **Testing:** 80%+ coverage, test error paths\n5. **Modules:** Use `import/export` (not `require/module.exports`)\n6. **File Organization:** Follow standardized output paths (see below)\n\n---\n\n## 📁 Project File Organization\n\n### Standard Output Paths\n\nAll AI-generated and project artifacts must follow this structure:\n\n```\nautomatosx/\n├── PRD/ # Product Requirement Documents\n│ ├── features/ # Feature specifications\n│ ├── api/ # API documentation\n│ └── archive/ # Old/deprecated PRDs\n├── REPORT/ # Project reports and analysis\n│ ├── status/ # Status reports\n│ ├\n[...truncated]\n\n\n## README Summary\n\n# AX CLI - Enterprise-Class GLM AI CLI\n\n[](https://npm-stat.com/charts.html?package=%40defai.digital%2Fax-cli)\n[](https://github.com/defai-digital/ax-cli/actions/workflows/test.yml)\n[](https://github.com/defai-digital/ax-cli)\n[](https://www.typescriptlang.org/)\n[](https://nodejs.org/)\n[](https://opensource.org/licenses/MIT)\n[](https://www.apple.com/macos/)\n[](https://www.microsoft.com/windows/)\n[](https://ubuntu.com/)\n\n\n\n<p align=\"center\">\n <strong>GLM-Optimized CLI • Enterprise Architecture • 98%+ Test Coverage • TypeScript & Zod</strong>\n</p>\n\n---\n\n## 🚀 Quick Start\n\n```bash\n# Install globally\nnpm install -g @defai.digital/ax-cli\n\n# Configure your API key\nax-cli setup\n\n# Initialize your project\nax-cli init\n\n# Start interactive mode\nax-cli\n```\n\n## ✨ Features\n\n- **🤖 GLM-Focused AI CLI**: Optimized for Z.AI's GLM models (glm-4.6, glm-4-air, glm-4-airx)\n - **Note**: For xAI Grok models, use [grok-cli](https://github.com/superagent-ai/grok-cli)\n - **Note**: For Anthropic Claude models, use [claude-code](https://claude.ai/code)\n- **🧠 GLM 4.6 Optimized**: Primary support for General Language Model with advanced reasoning\n - **32K max tokens** (industry-standard, matches Claude Code CLI)\n - 200K context window, 128K max output capability\n - 30% more token efficient than GLM 4.5\n - Optimized for complex code generation and refactoring\n- **🎯 Multi-Phase Task Planner** (NEW in v3.0.0): Intelligent task decomposition for complex requests\n - Automatic complexity detection (57 keyword patterns)\n - LLM-based plan generation with phases and dependencies\n - Phase-by-phase execution with progress tracking\n - File modification tracking and context pruning between phases\n - Plan management commands: `/plans`, `/plan`, `/phases`, `/pause`, `/resume`, `/skip`, `/abandon`\n- **🔄 Session Continuity**: Directory-specific conversation history with `--continue` flag\n - Preserve context across sessions for multi-day development\n - Each project maintains its own independent history\n - Seamlessly resume conversations where you left off\n- **🔌 Enhanced MCP Integration**: Model Context Protocol with production-ready templates\n - **One-command setup**: `ax-cli mcp add figma --template`\n - **12+ pre-configured templates**: Figma, GitHub, Vercel, Puppeteer, Storybook, Sentry, and more\n - **Tool discovery**: `ax-cli mcp tools <server>` to preview capabilities\n - **Template browser**: `ax-cli mcp browse` for quick navigation\n - **Front-end focused**: Design-to-code workflows with Figma integration\n - **[Complete Guide](docs/mcp-frontend-guide.md)**: Front-end developer workflows\n- **✅ Production-Ready**: 98%+ test coverage, TypeScript strict mode, Zod validation\n- **🎯 Interactive & Headless**: Chat interface or one-shot commands\n- **📝 Smart Project Init**: Automatic project analysis and custom instructions\n- **🧠 Project Memory** (NEW): Intelligent context caching for z.ai GLM-4.6\n - Automatic project scanning and context generation\n - z.ai implicit caching support (50% token savings on repeated context)\n - Cache statistics tracking and efficiency monitoring\n- **🏥 Health Check** (NEW): Comprehensive diagnostics with `ax-cli doctor`\n - Verify configuration, API connectivity, and d\n\n[...truncated]",
|
|
47
|
-
"token_estimate": 3963,
|
|
48
|
-
"sections": {
|
|
49
|
-
"structure": 1906,
|
|
50
|
-
"readme": 1114,
|
|
51
|
-
"config": 838,
|
|
52
|
-
"patterns": 99
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"stats": {
|
|
56
|
-
"last_cached_tokens": 43,
|
|
57
|
-
"last_prompt_tokens": 13864,
|
|
58
|
-
"total_tokens_saved": 84815,
|
|
59
|
-
"usage_count": 9,
|
|
60
|
-
"last_used_at": "2025-11-22T13:09:05.236Z"
|
|
61
|
-
}
|
|
62
|
-
}
|
package/.ax-cli/settings.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|