deepcode-ai 1.0.3 → 1.0.4
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/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1360,20 +1360,20 @@ function resolveTurnStrategy(input, mode, policy) {
|
|
|
1360
1360
|
kind: "utility"
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
|
-
if (policy
|
|
1363
|
+
if (isConversationalTurn(input, policy)) {
|
|
1364
1364
|
return {
|
|
1365
1365
|
allowTools: true,
|
|
1366
1366
|
shouldPlan: false,
|
|
1367
|
-
systemPrompt:
|
|
1368
|
-
kind: "
|
|
1367
|
+
systemPrompt: BUILD_SYSTEM_PROMPT_CONVERSATIONAL,
|
|
1368
|
+
kind: "chat"
|
|
1369
1369
|
};
|
|
1370
1370
|
}
|
|
1371
|
-
if (
|
|
1371
|
+
if (policy.mode === "always-tools") {
|
|
1372
1372
|
return {
|
|
1373
1373
|
allowTools: true,
|
|
1374
1374
|
shouldPlan: false,
|
|
1375
|
-
systemPrompt:
|
|
1376
|
-
kind: "
|
|
1375
|
+
systemPrompt: BUILD_SYSTEM_PROMPT_ALWAYS_TOOLS,
|
|
1376
|
+
kind: "task"
|
|
1377
1377
|
};
|
|
1378
1378
|
}
|
|
1379
1379
|
if (isSimpleDirectCommand(input)) {
|