Commit abfff79
authored
refactor: Refactor A2A task display and configuration handling (#338)
Improves how A2A tasks are shown in the UI by removing redundant Task
field from results and adding proper formatting. Adds config directory
support for artifact downloads and includes a new browser agent
configuration. Also fixes autocomplete shortcut detection and updates
all documentation to reflect the new subcommand-based shortcut
structure.
## Changes:
### Code Changes
1. **Added new `browser-agent` configuration** in `.infer/agents.yaml`
2. **Refactored config directory handling** with `configDir` field and
getter/setter methods
3. **Changed default download artifacts directory** from
`/tmp/downloads` to config-relative path
4. **Removed `Task` field** from `A2ASubmitTaskResult` in multiple
places
5. **Added new `formatA2ATaskData` method** for cleaner task display
6. **Updated UI preview formatting** for A2A tasks and tool calls
7. **Fixed autocomplete shortcut detection logic**
### Shortcut Structure Changes
8. **Migrated shortcuts to subcommand structure**:
- Git shortcuts: `/git-status` → `/git status`, `/git-commit` → `/git
commit`, etc.
- SCM shortcuts: `/scm-issues` → `/scm issues`, `/scm-pr-create` → `/scm
pr-create`, etc.
- A2A shortcuts: `/agents-add` → `/agents add`, `/agents-remove` →
`/agents remove`, etc.
- MCP shortcuts: `/mcp-add` → `/mcp add`, `/mcp-enable` → `/mcp enable`,
etc.
### Documentation Updates
9. **Updated README.md**:
- Added subcommand explanation with examples
- Updated all shortcut references to new format
- Added example YAML for shortcuts with subcommands
10. **Updated CLAUDE.md**:
- Updated shortcuts list to reflect subcommand structure
11. **Updated docs/shortcuts-guide.md**:
- Updated all shortcut names throughout the guide
- Updated YAML configuration examples
- Updated all example commands and usage instructions
12. **Updated docs/a2a-connections.md**:
- Updated `/agents` shortcut commands
- Rewrote artifact download section to document WebFetch-based approach
- Removed references to removed `A2A_DownloadArtifacts` tool
13. **Updated docs/tools-reference.md**:
- Removed `download_artifacts` from A2A configuration
- Added note about WebFetch handling artifact downloads
## Benefits
- Cleaner UI display for A2A tasks
- Better configuration management with config directory support
- More consistent artifact download paths
- Improved autocomplete behavior
- Organized shortcut structure with subcommands for better UX
- Consistent documentation across all files
- Clearer artifact download workflow using WebFetch
---------
Signed-off-by: Eden Reich <[email protected]>1 parent b459f79 commit abfff79
File tree
54 files changed
+1491
-2262
lines changed- .infer
- shortcuts
- cmd
- config
- docs
- examples
- a2a
- model-switching/.infer/shortcuts
- internal
- app
- container
- domain
- handlers
- services
- tools
- shortcuts
- ui
- autocomplete
- components
- tests/mocks/ui
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
54 files changed
+1491
-2262
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | | - | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
176 | 186 | | |
177 | 187 | | |
178 | 188 | | |
| |||
565 | 575 | | |
566 | 576 | | |
567 | 577 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | 578 | | |
574 | 579 | | |
575 | 580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
17 | 44 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
64 | 52 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
70 | 58 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
75 | 63 | | |
76 | | - | |
| 64 | + | |
77 | 65 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
81 | 69 | | |
82 | | - | |
83 | | - | |
| 70 | + | |
| 71 | + | |
0 commit comments