@aiderdesk/aiderdesk 0.73.0 → 0.75.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.
- package/out/{open-telemetry-baOvr6sK.js → open-telemetry-B7yROZIC.js} +3 -0
- package/out/renderer/assets/{AgentSettings-B8NFKgLb.js → AgentSettings-DX34HLFv.js} +4561 -3203
- package/out/renderer/assets/{InfoIcon-DhMP8XnB.js → InfoIcon-DzyZQ7Ye.js} +1 -1
- package/out/renderer/assets/{Onboarding-CmlEw4fh.js → Onboarding-FwXfKZ8B.js} +4 -4
- package/out/renderer/assets/{ProviderHeader-DMNcKpGs.js → ProviderHeader-Cii9aAmV.js} +418 -197
- package/out/renderer/assets/{SettingsPage-CmOR4wA1.js → SettingsPage-XanGltUZ.js} +13 -7
- package/out/renderer/assets/{UsageDashboard-BGAWd1b2.js → UsageDashboard-eHbvZTZC.js} +3795 -2366
- package/out/renderer/assets/{arc-Jg3VSYdu.js → arc-CVfdiTl1.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-3BPJPVTR-BhT1Ad0h.js → architectureDiagram-3BPJPVTR-DsLLo_Ek.js} +3 -3
- package/out/renderer/assets/{blockDiagram-GPEHLZMM-BZuMX6U_.js → blockDiagram-GPEHLZMM-eWy47S0_.js} +4 -4
- package/out/renderer/assets/{c4Diagram-AAUBKEIU-QL7T5rpZ.js → c4Diagram-AAUBKEIU-BH9b_e6y.js} +2 -2
- package/out/renderer/assets/{channel-K2W31OE5.js → channel-D1z_mPGJ.js} +1 -1
- package/out/renderer/assets/{chunk-2J33WTMH-LumY2cbE.js → chunk-2J33WTMH-DK0Yw_7f.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-GLhRzKG1.js → chunk-4BX2VUAB-DIGR8Y5b.js} +1 -1
- package/out/renderer/assets/{chunk-55IACEB6-B3B3AcnH.js → chunk-55IACEB6-DoCkLI5e.js} +1 -1
- package/out/renderer/assets/{chunk-727SXJPM-DMyZUEKf.js → chunk-727SXJPM-C2gQLzLi.js} +5 -5
- package/out/renderer/assets/{chunk-AQP2D5EJ-CQsD5TCd.js → chunk-AQP2D5EJ-D83_SlRR.js} +3 -3
- package/out/renderer/assets/{chunk-FMBD7UC4-x4SmU5Oe.js → chunk-FMBD7UC4-CyiPoUsC.js} +1 -1
- package/out/renderer/assets/{chunk-ND2GUHAM-pT6s9nFT.js → chunk-ND2GUHAM-DfGsUYDD.js} +1 -1
- package/out/renderer/assets/{chunk-QZHKN3VN-Cv8umQxL.js → chunk-QZHKN3VN-BhnTFlht.js} +1 -1
- package/out/renderer/assets/{classDiagram-4FO5ZUOK-DmOcXaER.js → classDiagram-4FO5ZUOK-Dy7E8tVe.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-Q7XG4LA2-DmOcXaER.js → classDiagram-v2-Q7XG4LA2-Dy7E8tVe.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-Bi6ESdxa.js → cose-bilkent-S5V4N54A-Dsl61WN3.js} +1 -1
- package/out/renderer/assets/{dagre-BM42HDAG-BK2slT53.js → dagre-BM42HDAG-D-u18G94.js} +3 -3
- package/out/renderer/assets/{diagram-2AECGRRQ-DkgLH6e2.js → diagram-2AECGRRQ-BumP49Qp.js} +3 -3
- package/out/renderer/assets/{diagram-5GNKFQAL-BwAieVd0.js → diagram-5GNKFQAL-VpUN87Sw.js} +4 -4
- package/out/renderer/assets/{diagram-KO2AKTUF-D6Km_LB9.js → diagram-KO2AKTUF-CXCWwzRa.js} +3 -3
- package/out/renderer/assets/{diagram-LMA3HP47-BhWSHEeO.js → diagram-LMA3HP47-vlOcStwn.js} +3 -3
- package/out/renderer/assets/{diagram-OG6HWLK6-zoN4RvNr.js → diagram-OG6HWLK6-DS1BscxN.js} +4 -4
- package/out/renderer/assets/{erDiagram-TEJ5UH35-DooZS_mc.js → erDiagram-TEJ5UH35-DPi6-CLL.js} +4 -4
- package/out/renderer/assets/{flowDiagram-I6XJVG4X-CmZPvaDJ.js → flowDiagram-I6XJVG4X-BYlX12Cd.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-6RSMTGT7-Bx6OJzRM.js → ganttDiagram-6RSMTGT7-BJQl-A9d.js} +3 -3
- package/out/renderer/assets/{gitGraphDiagram-PVQCEYII-BPUT8Ht7.js → gitGraphDiagram-PVQCEYII-CUFXx3IZ.js} +4 -4
- package/out/renderer/assets/{graph-CwC0h_b8.js → graph-CbFubTTc.js} +1 -1
- package/out/renderer/assets/{index-DOOlJc12.js → index-9GNr8q1O.js} +1 -1
- package/out/renderer/assets/{index-BSFaA4XQ.js → index-B6R_BNfE.js} +1 -1
- package/out/renderer/assets/{index-PGLvyST0.js → index-B9iW9QmT.js} +1 -1
- package/out/renderer/assets/{index-DqiktxfT.js → index-BkdacTnN.js} +1 -1
- package/out/renderer/assets/{index-ChKmR4QP.js → index-C7885gEz.js} +1 -1
- package/out/renderer/assets/{index-CXq4cCbe.js → index-Cg7tn967.js} +576 -251
- package/out/renderer/assets/{index-B3o44aT2.css → index-DCILJy4w.css} +50 -16
- package/out/renderer/assets/{index-CI0IUNzz.js → index-DNlMJMPg.js} +4194 -3241
- package/out/renderer/assets/{index-BrZFlbuf.js → index-DYKLRIHT.js} +1 -1
- package/out/renderer/assets/{index-Ds5GQdTm.js → index-DeoI6jti.js} +1 -1
- package/out/renderer/assets/{index-xI0MsLE8.js → index-fD843lMX.js} +1 -1
- package/out/renderer/assets/{infoDiagram-5YYISTIA-C77gIx1a.js → infoDiagram-5YYISTIA-IWJLFUYz.js} +2 -2
- package/out/renderer/assets/{ishikawaDiagram-YF4QCWOH-DZ8xk7_N.js → ishikawaDiagram-YF4QCWOH-BuNfm7cB.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-JHISSGLW-BLPdv_c5.js → journeyDiagram-JHISSGLW-CfceKUHO.js} +4 -4
- package/out/renderer/assets/{jsx-dev-runtime-1M6DZ35g.js → jsx-dev-runtime-DT3FTts0.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UN3LZRKU-CMHVN7c3.js → kanban-definition-UN3LZRKU-Bb6YnEgS.js} +2 -2
- package/out/renderer/assets/{layout-BJqshyQm.js → layout-BkrDn6V9.js} +2 -2
- package/out/renderer/assets/{linear-CbEhS1qE.js → linear-jxO_dc8P.js} +1 -1
- package/out/renderer/assets/{mindmap-definition-RKZ34NQL-C8Cz7pQU.js → mindmap-definition-RKZ34NQL-BPRx7p9A.js} +3 -3
- package/out/renderer/assets/{pieDiagram-4H26LBE5-Bx5tSw6i.js → pieDiagram-4H26LBE5-CPR4AuPM.js} +4 -4
- package/out/renderer/assets/{quadrantDiagram-W4KKPZXB-CX6DcDEk.js → quadrantDiagram-W4KKPZXB-BKzlAr7m.js} +2 -2
- package/out/renderer/assets/{requirementDiagram-4Y6WPE33-qBp8nKy9.js → requirementDiagram-4Y6WPE33-CUan3EZI.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-5OEKKPKP-B5zYIsBo.js → sankeyDiagram-5OEKKPKP-y8X8qnX2.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-3UESZ5HK-C57DtTdH.js → sequenceDiagram-3UESZ5HK-B4xv8iDW.js} +3 -3
- package/out/renderer/assets/{stateDiagram-AJRCARHV-CGRyr6CG.js → stateDiagram-AJRCARHV-DTPE2Z4L.js} +6 -6
- package/out/renderer/assets/{stateDiagram-v2-BHNVJYJU-3hvBe5lv.js → stateDiagram-v2-BHNVJYJU-BmZ9o6q3.js} +4 -4
- package/out/renderer/assets/{time-B3bXse3U.js → time-D391Z6zp.js} +1 -1
- package/out/renderer/assets/{timeline-definition-PNZ67QCA-Dpq0iPd0.js → timeline-definition-PNZ67QCA-DVLUB2HD.js} +2 -2
- package/out/renderer/assets/{vennDiagram-CIIHVFJN-_jSNuVb5.js → vennDiagram-CIIHVFJN-BGGBlVN1.js} +1 -1
- package/out/renderer/assets/{wardley-L42UT6IY-DixmVaQZ.js → wardley-L42UT6IY-ZVVSjQUD.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-YWT4CUSO-DMK4zc32.js → wardleyDiagram-YWT4CUSO-CRAH-LRw.js} +3 -3
- package/out/renderer/assets/{xychartDiagram-2RQKCTM6-DKPuWmAF.js → xychartDiagram-2RQKCTM6-DQqvm7M3.js} +2 -2
- package/out/renderer/index.html +2 -2
- package/out/resources/linux/probe +0 -0
- package/out/resources/linux-x64/probe +0 -0
- package/out/resources/skills/agent-creator/SKILL.md +223 -0
- package/out/resources/skills/agent-creator/assets/examples/sample-profile.json +47 -0
- package/out/resources/skills/agent-creator/assets/templates/config.json.template +47 -0
- package/out/resources/skills/agent-creator/references/agent-profile-schema.md +294 -0
- package/out/resources/skills/agent-creator/references/profile-examples.md +490 -0
- package/out/resources/skills/agent-creator/references/subagent-guide.md +317 -0
- package/out/resources/skills/agent-creator/references/tool-approval-guide.md +484 -0
- package/out/resources/skills/extension-creator/SKILL.md +71 -7
- package/out/resources/skills/extension-creator/references/event-types.md +543 -40
- package/out/resources/skills/extension-creator/references/examples-gallery.md +23 -14
- package/out/resources/skills/extension-creator/references/extension-interface.md +1111 -171
- package/out/resources/skills/extension-creator/references/ui-components.md +34 -6
- package/out/runner.js +11164 -10392
- package/package.json +21 -19
- package/patches/@requesty+ai-sdk+3.5.0.patch +84 -0
- package/patches/ai+7.0.28.patch +33 -0
- package/patches/ai+5.0.195.patch +0 -33
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
# Tool Approval Configuration Guide
|
|
2
|
+
|
|
3
|
+
Complete guide to configuring tool approvals for agent profiles in AiderDesk.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Tool approvals control when and how an agent can use specific tools. Each tool can be set to one of three states:
|
|
8
|
+
|
|
9
|
+
1. **Always** (`"always"`) - Auto-approve tool usage without prompting
|
|
10
|
+
2. **Ask** (`"ask"`) - Prompt user for approval each time the tool is used (**DEFAULT**)
|
|
11
|
+
3. **Never** (`"never"`) - Disable the tool completely
|
|
12
|
+
|
|
13
|
+
**Important**: The default value is "ask". Only explicitly set tools to "always" or "never" based on the agent's needs. Do not include tools that should remain at "ask" in `toolApprovals`.
|
|
14
|
+
|
|
15
|
+
## Tool Approval States
|
|
16
|
+
|
|
17
|
+
### Always (`"always"`)
|
|
18
|
+
- Tool executes immediately without user confirmation
|
|
19
|
+
- Best for safe, read-only operations
|
|
20
|
+
- Reduces friction for trusted actions
|
|
21
|
+
|
|
22
|
+
**Use cases:** Reading files, searching code, finding files, retrieving memories
|
|
23
|
+
|
|
24
|
+
### Ask (`"ask"`)
|
|
25
|
+
- Prompts user before each tool execution
|
|
26
|
+
- Provides transparency and control
|
|
27
|
+
- Ideal for potentially destructive operations
|
|
28
|
+
|
|
29
|
+
**Use cases:** Editing files, running commands, creating/deleting tasks, Aider operations
|
|
30
|
+
|
|
31
|
+
### Never (`"never"`)
|
|
32
|
+
- Tool is completely disabled for the profile
|
|
33
|
+
- Cannot be used even with manual approval
|
|
34
|
+
- Useful for restricting dangerous capabilities
|
|
35
|
+
|
|
36
|
+
**Use cases:** Shell commands for read-only profiles, file editing in review-only agents
|
|
37
|
+
|
|
38
|
+
## Tool Groups and Their Tools
|
|
39
|
+
|
|
40
|
+
### Power Tools (`power---*`) — enabled by `usePowerTools`
|
|
41
|
+
|
|
42
|
+
Direct file system and system operations.
|
|
43
|
+
|
|
44
|
+
| Tool | Recommended Default | When to Use "Always" | When to Use "Ask" | When to Use "Never" |
|
|
45
|
+
|------|-------------------|---------------------|-------------------|---------------------|
|
|
46
|
+
| `power---file_read` | **always** | Most profiles | Default | Air-gapped systems |
|
|
47
|
+
| `power---file_write` | ask | Trusted contexts | Default | Review-only agents |
|
|
48
|
+
| `power---file_edit` | ask | Trusted contexts | Default | Review-only agents |
|
|
49
|
+
| `power---glob` | **always** | Most profiles | Default | None |
|
|
50
|
+
| `power---grep` | **always** | Most profiles | Default | None |
|
|
51
|
+
| `power---semantic_search` | **always** | Most profiles | Default | None |
|
|
52
|
+
| `power---bash` | ask | Trusted scripts | Default | Read-only profiles |
|
|
53
|
+
| `power---fetch` | ask | Trusted domains | Default | Air-gapped systems |
|
|
54
|
+
|
|
55
|
+
**Recommended Patterns:**
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
// Full access profile
|
|
59
|
+
{
|
|
60
|
+
"toolApprovals": {
|
|
61
|
+
"power---file_read": "always",
|
|
62
|
+
"power---glob": "always",
|
|
63
|
+
"power---grep": "always",
|
|
64
|
+
"power---semantic_search": "always"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Read-only profile
|
|
69
|
+
{
|
|
70
|
+
"toolApprovals": {
|
|
71
|
+
"power---file_read": "always",
|
|
72
|
+
"power---file_write": "never",
|
|
73
|
+
"power---file_edit": "never",
|
|
74
|
+
"power---glob": "always",
|
|
75
|
+
"power---grep": "always",
|
|
76
|
+
"power---semantic_search": "always",
|
|
77
|
+
"power---bash": "never"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Aider Tools (`aider---*`) — enabled by `useAiderTools`
|
|
83
|
+
|
|
84
|
+
AI-powered code generation via Aider.
|
|
85
|
+
|
|
86
|
+
| Tool | Recommended Default | When to Use "Always" | When to Use "Ask" | When to Use "Never" |
|
|
87
|
+
|------|-------------------|---------------------|-------------------|---------------------|
|
|
88
|
+
| `aider---get_context_files` | **always** | Always helpful | Default | N/A |
|
|
89
|
+
| `aider---add_context_files` | **always** | Auto-building context | Default | N/A |
|
|
90
|
+
| `aider---drop_context_files` | ask | Bulk operations | Default | N/A |
|
|
91
|
+
| `aider---run` | ask | Trusted contexts | Default | Non-Aider profiles |
|
|
92
|
+
|
|
93
|
+
**Recommended Patterns:**
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
// Full Aider profile
|
|
97
|
+
{
|
|
98
|
+
"toolApprovals": {
|
|
99
|
+
"aider---get_context_files": "always",
|
|
100
|
+
"aider---add_context_files": "always"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Aider with auto-approve (advanced users)
|
|
105
|
+
{
|
|
106
|
+
"toolApprovals": {
|
|
107
|
+
"aider---get_context_files": "always",
|
|
108
|
+
"aider---add_context_files": "always",
|
|
109
|
+
"aider---drop_context_files": "always",
|
|
110
|
+
"aider---run": "always"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Subagents Tools (`subagents---*`) — enabled by `useSubagents`
|
|
116
|
+
|
|
117
|
+
Task delegation to specialized subagents.
|
|
118
|
+
|
|
119
|
+
| Tool | Recommended Default | When to Use "Always" | When to Use "Ask" | When to Use "Never" |
|
|
120
|
+
|------|-------------------|---------------------|-------------------|---------------------|
|
|
121
|
+
| `subagents---run_task` | **always** | Trusted subagents | Default | Subagent-free profiles |
|
|
122
|
+
|
|
123
|
+
**Recommended Patterns:**
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
// With subagent delegation
|
|
127
|
+
{
|
|
128
|
+
"toolApprovals": {
|
|
129
|
+
"subagents---run_task": "always"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Manual subagent control
|
|
134
|
+
{
|
|
135
|
+
"toolApprovals": {
|
|
136
|
+
"subagents---run_task": "ask"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Memory Tools (`memory---*`) — enabled by `useMemoryTools`
|
|
142
|
+
|
|
143
|
+
Persistent information storage and retrieval.
|
|
144
|
+
|
|
145
|
+
| Tool | Recommended Default | When to Use "Always" | When to Use "Ask" | When to Use "Never" |
|
|
146
|
+
|------|-------------------|---------------------|-------------------|---------------------|
|
|
147
|
+
| `memory---store_memory` | **always** | Learning preferences | Default | Stateless profiles |
|
|
148
|
+
| `memory---retrieve_memory` | **always** | Always helpful | Default | Stateless profiles |
|
|
149
|
+
| `memory---delete_memory` | **never** | Trusted contexts only | Default | Most profiles |
|
|
150
|
+
| `memory---list_memories` | **never** | Admin/debug contexts | Default | Most profiles |
|
|
151
|
+
| `memory---update_memory` | **never** | Trusted contexts only | Default | Most profiles |
|
|
152
|
+
|
|
153
|
+
**Note:** The default profile has `delete_memory`, `list_memories`, and `update_memory` set to `"never"` for safety. Override to `"always"` only for trusted/admin profiles.
|
|
154
|
+
|
|
155
|
+
**Recommended Patterns:**
|
|
156
|
+
|
|
157
|
+
```json
|
|
158
|
+
// Full memory support (standard)
|
|
159
|
+
{
|
|
160
|
+
"toolApprovals": {
|
|
161
|
+
"memory---store_memory": "always",
|
|
162
|
+
"memory---retrieve_memory": "always"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Full memory control (admin/trusted)
|
|
167
|
+
{
|
|
168
|
+
"toolApprovals": {
|
|
169
|
+
"memory---store_memory": "always",
|
|
170
|
+
"memory---retrieve_memory": "always",
|
|
171
|
+
"memory---delete_memory": "always",
|
|
172
|
+
"memory---list_memories": "always",
|
|
173
|
+
"memory---update_memory": "always"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Stateless profile (no memory)
|
|
178
|
+
{
|
|
179
|
+
"useMemoryTools": false
|
|
180
|
+
}
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Skills Tools (`skills---*`) — enabled by `useSkillsTools`
|
|
184
|
+
|
|
185
|
+
Access to project-specific and built-in skills.
|
|
186
|
+
|
|
187
|
+
| Tool | Recommended Default | When to Use "Always" | When to Use "Ask" | When to Use "Never" |
|
|
188
|
+
|------|-------------------|---------------------|-------------------|---------------------|
|
|
189
|
+
| `skills---activate_skill` | **always** | Auto-skills | Default | No custom skills |
|
|
190
|
+
|
|
191
|
+
**Recommended Patterns:**
|
|
192
|
+
|
|
193
|
+
```json
|
|
194
|
+
// With skills
|
|
195
|
+
{
|
|
196
|
+
"toolApprovals": {
|
|
197
|
+
"skills---activate_skill": "always"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Task Tools (`tasks---*`) — enabled by `useTaskTools`
|
|
203
|
+
|
|
204
|
+
Task management and tracking within the project.
|
|
205
|
+
|
|
206
|
+
| Tool | Recommended Default | When to Use "Always" | When to Use "Ask" | When to Use "Never" |
|
|
207
|
+
|------|-------------------|---------------------|-------------------|---------------------|
|
|
208
|
+
| `tasks---list_tasks` | **always** | Always helpful | Default | N/A |
|
|
209
|
+
| `tasks---get_task` | **always** | Always helpful | Default | N/A |
|
|
210
|
+
| `tasks---get_task_message` | **always** | Always helpful | Default | N/A |
|
|
211
|
+
| `tasks---create_task` | ask | Trusted contexts | Default | N/A |
|
|
212
|
+
| `tasks---delete_task` | ask | Trusted contexts | Default | N/A |
|
|
213
|
+
| `tasks---search_task` | **always** | Always helpful | Default | N/A |
|
|
214
|
+
| `tasks---run_prompt` | ask | Trusted contexts | Default | N/A |
|
|
215
|
+
| `tasks---search_parent_task` | **always** | Always helpful | Default | N/A |
|
|
216
|
+
|
|
217
|
+
**Recommended Patterns:**
|
|
218
|
+
|
|
219
|
+
```json
|
|
220
|
+
// Standard task tools
|
|
221
|
+
{
|
|
222
|
+
"toolApprovals": {
|
|
223
|
+
"tasks---list_tasks": "always",
|
|
224
|
+
"tasks---get_task": "always",
|
|
225
|
+
"tasks---get_task_message": "always",
|
|
226
|
+
"tasks---search_task": "always",
|
|
227
|
+
"tasks---search_parent_task": "always"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// Full task management (trusted)
|
|
232
|
+
{
|
|
233
|
+
"toolApprovals": {
|
|
234
|
+
"tasks---list_tasks": "always",
|
|
235
|
+
"tasks---get_task": "always",
|
|
236
|
+
"tasks---get_task_message": "always",
|
|
237
|
+
"tasks---create_task": "always",
|
|
238
|
+
"tasks---delete_task": "always",
|
|
239
|
+
"tasks---search_task": "always",
|
|
240
|
+
"tasks---run_prompt": "always",
|
|
241
|
+
"tasks---search_parent_task": "always"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Todo Tools (`todo---*`) — enabled by `useTodoTools`
|
|
247
|
+
|
|
248
|
+
Todo list management for tracking multi-step work.
|
|
249
|
+
|
|
250
|
+
| Tool | Recommended Default | When to Use "Always" | When to Use "Ask" | When to Use "Never" |
|
|
251
|
+
|------|-------------------|---------------------|-------------------|---------------------|
|
|
252
|
+
| `todo---set_items` | **always** | Always helpful | Default | N/A |
|
|
253
|
+
| `todo---get_items` | **always** | Always helpful | Default | N/A |
|
|
254
|
+
| `todo---update_item_completion` | **always** | Always helpful | Default | N/A |
|
|
255
|
+
| `todo---clear_items` | **always** | Always helpful | Default | N/A |
|
|
256
|
+
|
|
257
|
+
**Recommended Patterns:**
|
|
258
|
+
|
|
259
|
+
```json
|
|
260
|
+
// Standard todo tools
|
|
261
|
+
{
|
|
262
|
+
"toolApprovals": {
|
|
263
|
+
"todo---set_items": "always",
|
|
264
|
+
"todo---get_items": "always",
|
|
265
|
+
"todo---update_item_completion": "always",
|
|
266
|
+
"todo---clear_items": "always"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Extension Tools — enabled by `useExtensionTools`
|
|
272
|
+
|
|
273
|
+
Tools dynamically provided by installed AiderDesk extensions.
|
|
274
|
+
|
|
275
|
+
- Tool keys use `{extensionToolGroupName}---{toolName}` format
|
|
276
|
+
- Group names are defined by each extension individually
|
|
277
|
+
- Tool keys cannot be enumerated statically — they depend on installed extensions
|
|
278
|
+
- Use `disabledExtensionTools: ["extensionId"]` to disable all tools from a specific extension
|
|
279
|
+
- Set `useExtensionTools: false` to disable all extension tools entirely
|
|
280
|
+
|
|
281
|
+
**Configuration:**
|
|
282
|
+
|
|
283
|
+
```json
|
|
284
|
+
// Extension tools enabled (default), disable specific extension
|
|
285
|
+
{
|
|
286
|
+
"useExtensionTools": true,
|
|
287
|
+
"disabledExtensionTools": ["untrusted-extension"]
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// All extension tools disabled
|
|
291
|
+
{
|
|
292
|
+
"useExtensionTools": false,
|
|
293
|
+
"disabledExtensionTools": []
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**Note:** Extension tool approval keys can be added to `toolApprovals` if you know the extension's tool group name and tool names. Check the extension's documentation for the exact tool keys.
|
|
298
|
+
|
|
299
|
+
## Tool Settings
|
|
300
|
+
|
|
301
|
+
Some tools support additional configuration beyond approval states.
|
|
302
|
+
|
|
303
|
+
### Bash Tool Settings
|
|
304
|
+
|
|
305
|
+
Control which shell commands can be executed via `toolSettings`.
|
|
306
|
+
|
|
307
|
+
```json
|
|
308
|
+
{
|
|
309
|
+
"toolSettings": {
|
|
310
|
+
"power---bash": {
|
|
311
|
+
"allowedPattern": "^(git|npm|ls|cat|echo)\\s",
|
|
312
|
+
"deniedPattern": "(rm -rf|dd|mkfs|format)"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
**Components:**
|
|
319
|
+
- `allowedPattern` - Regex pattern for allowed commands (empty string = all allowed)
|
|
320
|
+
- `deniedPattern` - Regex pattern for denied commands (overrides allowed pattern)
|
|
321
|
+
|
|
322
|
+
**Examples:**
|
|
323
|
+
|
|
324
|
+
```json
|
|
325
|
+
// Allow only git commands
|
|
326
|
+
{
|
|
327
|
+
"power---bash": {
|
|
328
|
+
"allowedPattern": "^git\\s",
|
|
329
|
+
"deniedPattern": ""
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// Block dangerous commands
|
|
334
|
+
{
|
|
335
|
+
"power---bash": {
|
|
336
|
+
"allowedPattern": "",
|
|
337
|
+
"deniedPattern": "(rm -rf|--force|dd|mkfs|format)"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
## Best Practices
|
|
343
|
+
|
|
344
|
+
### 1. Start Conservative
|
|
345
|
+
Begin with "ask" for most tools, then relax as trust builds. Only set "always" for safe read-only operations.
|
|
346
|
+
|
|
347
|
+
### 2. Profile-Specific Defaults
|
|
348
|
+
Different profiles need different defaults:
|
|
349
|
+
|
|
350
|
+
- **Code Reviewer**: Read-only, always for search tools, never for edits
|
|
351
|
+
- **Developer**: Ask for edits, always for read operations
|
|
352
|
+
- **Auditor**: Never for destructive tools, always for analysis
|
|
353
|
+
- **Orchestrator**: Always for subagent delegation, ask for direct operations
|
|
354
|
+
|
|
355
|
+
### 3. Group-Level Control
|
|
356
|
+
Use tool group toggles (`usePowerTools`, `useAiderTools`, etc.) before configuring individual tools. If a group is disabled, its tools are not available regardless of `toolApprovals`.
|
|
357
|
+
|
|
358
|
+
### 4. Context Awareness
|
|
359
|
+
Consider:
|
|
360
|
+
- Environment (development vs production)
|
|
361
|
+
- User expertise level
|
|
362
|
+
- Project criticality
|
|
363
|
+
- Security requirements
|
|
364
|
+
|
|
365
|
+
### 5. Review Regularly
|
|
366
|
+
Periodically audit tool approvals:
|
|
367
|
+
- Remove unused "never" tools
|
|
368
|
+
- Relax "ask" to "always" for trusted operations
|
|
369
|
+
- Add restrictions for security concerns
|
|
370
|
+
|
|
371
|
+
## Common Configurations
|
|
372
|
+
|
|
373
|
+
### Safe Development Profile
|
|
374
|
+
```json
|
|
375
|
+
{
|
|
376
|
+
"usePowerTools": true,
|
|
377
|
+
"useTodoTools": true,
|
|
378
|
+
"useMemoryTools": true,
|
|
379
|
+
"useSkillsTools": true,
|
|
380
|
+
"useExtensionTools": true,
|
|
381
|
+
"toolApprovals": {
|
|
382
|
+
"power---file_read": "always",
|
|
383
|
+
"power---glob": "always",
|
|
384
|
+
"power---grep": "always",
|
|
385
|
+
"power---semantic_search": "always",
|
|
386
|
+
"memory---store_memory": "always",
|
|
387
|
+
"memory---retrieve_memory": "always",
|
|
388
|
+
"todo---set_items": "always",
|
|
389
|
+
"todo---get_items": "always",
|
|
390
|
+
"todo---update_item_completion": "always",
|
|
391
|
+
"todo---clear_items": "always",
|
|
392
|
+
"skills---activate_skill": "always"
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
### Read-Only Auditor Profile
|
|
398
|
+
```json
|
|
399
|
+
{
|
|
400
|
+
"usePowerTools": true,
|
|
401
|
+
"useMemoryTools": true,
|
|
402
|
+
"useExtensionTools": false,
|
|
403
|
+
"toolApprovals": {
|
|
404
|
+
"power---file_read": "always",
|
|
405
|
+
"power---file_write": "never",
|
|
406
|
+
"power---file_edit": "never",
|
|
407
|
+
"power---glob": "always",
|
|
408
|
+
"power---grep": "always",
|
|
409
|
+
"power---semantic_search": "always",
|
|
410
|
+
"power---bash": "never",
|
|
411
|
+
"memory---store_memory": "always",
|
|
412
|
+
"memory---retrieve_memory": "always"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
### Full Access Orchestrator Profile
|
|
418
|
+
```json
|
|
419
|
+
{
|
|
420
|
+
"usePowerTools": true,
|
|
421
|
+
"useTodoTools": true,
|
|
422
|
+
"useSubagents": true,
|
|
423
|
+
"useTaskTools": true,
|
|
424
|
+
"useMemoryTools": true,
|
|
425
|
+
"useSkillsTools": true,
|
|
426
|
+
"useExtensionTools": true,
|
|
427
|
+
"toolApprovals": {
|
|
428
|
+
"power---file_read": "always",
|
|
429
|
+
"power---file_write": "always",
|
|
430
|
+
"power---file_edit": "always",
|
|
431
|
+
"power---glob": "always",
|
|
432
|
+
"power---grep": "always",
|
|
433
|
+
"power---semantic_search": "always",
|
|
434
|
+
"subagents---run_task": "always",
|
|
435
|
+
"tasks---list_tasks": "always",
|
|
436
|
+
"tasks---get_task": "always",
|
|
437
|
+
"tasks---get_task_message": "always",
|
|
438
|
+
"tasks---search_task": "always",
|
|
439
|
+
"tasks---search_parent_task": "always",
|
|
440
|
+
"memory---store_memory": "always",
|
|
441
|
+
"memory---retrieve_memory": "always",
|
|
442
|
+
"skills---activate_skill": "always",
|
|
443
|
+
"todo---set_items": "always",
|
|
444
|
+
"todo---get_items": "always",
|
|
445
|
+
"todo---update_item_completion": "always",
|
|
446
|
+
"todo---clear_items": "always"
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
## Troubleshooting
|
|
452
|
+
|
|
453
|
+
### Tool Not Available
|
|
454
|
+
**Issue:** Agent tries to use a tool that doesn't work.
|
|
455
|
+
|
|
456
|
+
**Solution:**
|
|
457
|
+
1. Verify the tool group is enabled (e.g., `usePowerTools: true`)
|
|
458
|
+
2. Check `toolApprovals` — the tool might be set to "never"
|
|
459
|
+
3. For extension tools, verify `useExtensionTools: true` and extension is not in `disabledExtensionTools`
|
|
460
|
+
4. Verify the tool key format: `{group}---{tool}` (three dashes)
|
|
461
|
+
|
|
462
|
+
### Excessive Prompts
|
|
463
|
+
**Issue:** Too many approval prompts during workflow.
|
|
464
|
+
|
|
465
|
+
**Solution:**
|
|
466
|
+
1. Identify frequently-used tools
|
|
467
|
+
2. Change "ask" to "always" for trusted operations
|
|
468
|
+
3. Consider creating specialized profiles for different tasks
|
|
469
|
+
|
|
470
|
+
### Tool Executes Unexpectedly
|
|
471
|
+
**Issue:** Tool runs without confirmation.
|
|
472
|
+
|
|
473
|
+
**Solution:**
|
|
474
|
+
1. Review `toolApprovals` for "always" settings
|
|
475
|
+
2. Change to "ask" for better control
|
|
476
|
+
3. Implement `toolSettings` restrictions if needed
|
|
477
|
+
|
|
478
|
+
### Bash Command Blocked
|
|
479
|
+
**Issue:** Shell command is denied.
|
|
480
|
+
|
|
481
|
+
**Solution:**
|
|
482
|
+
1. Check `allowedPattern` regex in `toolSettings`
|
|
483
|
+
2. Review `deniedPattern` restrictions
|
|
484
|
+
3. Adjust patterns to permit necessary commands
|
|
@@ -220,12 +220,22 @@ Before using this skill, verify:
|
|
|
220
220
|
- Extension type (single-file or folder) is determined
|
|
221
221
|
- Extension interface and types are understood
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
**IMPORTANT:** The reference files below are comprehensive but may lag behind the latest code. For the **authoritative** and **complete** API, always refer to these source files:
|
|
224
224
|
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
|
|
225
|
+
- **Types source:** [packages/common/src/extensions.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/extensions.ts) — Extension interface, all contexts (ExtensionContext, TaskContext, ProjectContext), event payloads, UI component definitions
|
|
226
|
+
- **Context message types:** [packages/common/src/types/context.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/types/context.ts) — ContextMessage, ContextFile, message part types
|
|
227
|
+
- **Task/common types:** [packages/common/src/types/common.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/types/common.ts) — TaskData, Model, AgentProfile, CreateTaskParams, etc.
|
|
228
|
+
|
|
229
|
+
When you need a method or type that's not in the reference docs, **fetch the raw source first** before guessing.
|
|
230
|
+
|
|
231
|
+
**Built-in extension examples** are available at:
|
|
232
|
+
- [Online extensions gallery](https://github.com/hotovo/aider-desk/blob/main/docs-site/docs/extensions/extensions-gallery.md) — documented overview
|
|
233
|
+
- Source code for each built-in extension is in the AiderDesk repo at `packages/extensions/extensions/[extension-name]/` — browse these for real-world patterns
|
|
234
|
+
|
|
235
|
+
### Reference docs
|
|
236
|
+
- [references/install-targets.md](references/install-targets.md) for target options
|
|
237
|
+
- [references/event-types.md](references/event-types.md) for event types
|
|
238
|
+
- [references/command-definition.md](references/command-definition.md) for command structure
|
|
229
239
|
|
|
230
240
|
## Postconditions
|
|
231
241
|
|
|
@@ -257,6 +267,60 @@ After completing this skill, verify:
|
|
|
257
267
|
- Then: Implement event handler methods (onAgentStarted, onToolCalled, etc.)
|
|
258
268
|
- Return: Partial event object to modify behavior
|
|
259
269
|
|
|
270
|
+
**Situation:** Extension needs to create subtasks and coordinate between them
|
|
271
|
+
|
|
272
|
+
**Pattern:**
|
|
273
|
+
- Create: `const newTask = await projectContext.createTask({ parentId: currentTaskId, name: 'Subtask' })`
|
|
274
|
+
- Access another task: `const subtaskContext = projectContext.getTask(newTask.id)`
|
|
275
|
+
- Execute commands in subtask: `await subtaskContext?.runCustomCommand('scope:start')`
|
|
276
|
+
- Read subtask conversation: `const messages = await subtaskContext?.getContextMessages()`
|
|
277
|
+
- List all tasks: `const allTasks = await projectContext.getTasks()`
|
|
278
|
+
- Fork at specific message: `await projectContext.forkTask(taskId, messageId)`
|
|
279
|
+
- Duplicate a task: `await projectContext.duplicateTask(taskId)`
|
|
280
|
+
- Delete a task: `await projectContext.deleteTask(taskId)`
|
|
281
|
+
|
|
282
|
+
**Situation:** Extension needs to make direct LLM calls without the full agent loop
|
|
283
|
+
|
|
284
|
+
**Pattern:**
|
|
285
|
+
- Get model ID: `const profile = await taskContext.getTaskAgentProfile(); const modelId = profile ? \`\${profile.provider}/\${profile.model}\` : 'openai/gpt-4o'`
|
|
286
|
+
- Generate text: `const result = await taskContext.generateText(modelId, 'You are a helpful assistant', 'Summarize this code')`
|
|
287
|
+
- Generate structured data: `const result = await taskContext.generateObject(modelId, systemPrompt, prompt, z.object({ category: z.string() }))`
|
|
288
|
+
|
|
289
|
+
**Situation:** Extension needs to read conversation history
|
|
290
|
+
|
|
291
|
+
**Pattern:**
|
|
292
|
+
- Get messages: `const messages = await taskContext.getContextMessages()`
|
|
293
|
+
- Extract text: ContextMessage content can be a string or an array of parts. For simple text extraction:
|
|
294
|
+
```typescript
|
|
295
|
+
function extractText(content: ContextMessage['content']): string {
|
|
296
|
+
if (typeof content === 'string') return content;
|
|
297
|
+
if (Array.isArray(content)) {
|
|
298
|
+
return content
|
|
299
|
+
.filter((part): part is TextPart => part.type === 'text')
|
|
300
|
+
.map(part => part.text)
|
|
301
|
+
.join('\n');
|
|
302
|
+
}
|
|
303
|
+
return '';
|
|
304
|
+
}
|
|
305
|
+
```
|
|
306
|
+
- Reference: [context.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/types/context.ts) for full ContextMessage type
|
|
307
|
+
|
|
308
|
+
**Situation:** Extension needs to run shell commands
|
|
309
|
+
|
|
310
|
+
**Pattern:** Node.js built-in modules (`fs`, `path`, `child_process`, `os`, etc.) are available in extensions.
|
|
311
|
+
- Synchronous: `import { execSync } from 'node:child_process'; const output = execSync('git status', { encoding: 'utf-8' });`
|
|
312
|
+
- Asynchronous: `import { exec } from 'node:child_process'; import { promisify } from 'node:util'; const execAsync = promisify(exec);`
|
|
313
|
+
- File operations: `import { readFileSync, writeFileSync } from 'node:fs'; import { join } from 'node:path';`
|
|
314
|
+
|
|
315
|
+
**Situation:** Extension needs to manage todos
|
|
316
|
+
|
|
317
|
+
**Pattern:**
|
|
318
|
+
- Get todos: `const todos = await taskContext.getTodos()`
|
|
319
|
+
- Add todo: `const todos = await taskContext.addTodo('Implement feature X')`
|
|
320
|
+
- Update todo: `const todos = await taskContext.updateTodo('Implement feature X', { completed: true })`
|
|
321
|
+
- Delete todo: `const todos = await taskContext.deleteTodo('Implement feature X')`
|
|
322
|
+
- Replace all: `await taskContext.setTodos([{ name: 'Task 1', completed: false }])`
|
|
323
|
+
|
|
260
324
|
**Situation:** Extension needs to register commands
|
|
261
325
|
|
|
262
326
|
**Pattern:**
|
|
@@ -369,9 +433,9 @@ After completing this skill, verify:
|
|
|
369
433
|
### Technical Reference (all targets)
|
|
370
434
|
|
|
371
435
|
- [packages/common/src/extensions.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/extensions.ts) - Extension types and interfaces
|
|
372
|
-
- [extension-interface.md](references/extension-interface.md) - Full Extension interface, ExtensionContext, TaskContext,
|
|
436
|
+
- [extension-interface.md](references/extension-interface.md) - Full Extension interface, ExtensionContext, TaskContext, ProjectContext, MemoryContext, and all supporting types
|
|
373
437
|
- [extension-types.md](references/extension-types.md) - Single-file vs folder extensions, examples, extensions.json format
|
|
374
|
-
- [event-types.md](references/event-types.md) - All event types and
|
|
438
|
+
- [event-types.md](references/event-types.md) - All event types, payloads, and extension method mappings
|
|
375
439
|
- [command-definition.md](references/command-definition.md) - Command structure
|
|
376
440
|
- [ui-components.md](references/ui-components.md) - UI component system, placements, and available components
|
|
377
441
|
- [external-libraries.md](references/external-libraries.md) - Loading third-party npm libraries in UI components (getUIComponentsLibraries)
|