@kendoo.agentdesk/agentdesk 0.11.1 → 0.11.3
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/cli/prompt.mjs +13 -0
- package/package.json +1 -1
package/cli/prompt.mjs
CHANGED
|
@@ -76,6 +76,11 @@ export function buildPrompt({ taskId, taskLink, description, createTask, tracker
|
|
|
76
76
|
prompt = prompt.replace(/\{\{JIRA_BASE_URL\}\}/g, config.jira.baseUrl);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
// Explicit tracker lock — prevent the agent from switching to another tracker
|
|
80
|
+
if (tracker) {
|
|
81
|
+
prompt += `\n\n## TRACKER LOCK\n\nThis project is configured to use **${tracker.toUpperCase()}** as its tracker. Do NOT attempt to use any other tracker (Linear, GitHub, Jira, etc.) even if the API returns errors. If the ${tracker} API fails, troubleshoot the ${tracker} credentials and permissions — do not switch to a different tracker.\n`;
|
|
82
|
+
}
|
|
83
|
+
|
|
79
84
|
// Append custom instructions from config
|
|
80
85
|
if (config.instructions) {
|
|
81
86
|
prompt += `\n\n## ADDITIONAL INSTRUCTIONS\n\n${config.instructions}\n`;
|
|
@@ -138,6 +143,14 @@ export function buildSoloPrompt({ agentName, taskId, description, tracker, confi
|
|
|
138
143
|
|
|
139
144
|
// Extract and include tracker integration from team prompt
|
|
140
145
|
if (tracker) {
|
|
146
|
+
// Explicit tracker lock
|
|
147
|
+
lines.push(
|
|
148
|
+
`## Tracker: ${tracker.toUpperCase()}`,
|
|
149
|
+
``,
|
|
150
|
+
`This project uses **${tracker}** as its tracker. Do NOT attempt to use any other tracker even if the API returns errors. If ${tracker} fails, troubleshoot credentials and permissions — do not switch to a different tracker.`,
|
|
151
|
+
``,
|
|
152
|
+
);
|
|
153
|
+
|
|
141
154
|
let teamPrompt = readFileSync(PROMPT_PATH, "utf-8");
|
|
142
155
|
|
|
143
156
|
// Extract the matching tracker block
|