wormclaude 1.0.103 → 1.0.104
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/inlinetools.js +2 -1
- package/dist/theme.js +1 -1
- package/dist/tools.js +9 -1
- package/package.json +1 -1
package/dist/inlinetools.js
CHANGED
|
@@ -73,7 +73,8 @@ function extractTopLevelJsonObjects(text) {
|
|
|
73
73
|
* (<tool_call>, ```json) veya mesajın TAMAMI tek JSON çağrısıysa onu alır. */
|
|
74
74
|
export function recoverInlineToolCalls(text) {
|
|
75
75
|
const t = (text || '').trim();
|
|
76
|
-
|
|
76
|
+
// JSON-temelli çağrı yoksa VE prose-AskUserQuestion da yoksa erken çık.
|
|
77
|
+
if (!t || (!t.includes('"name"') && !t.includes('"tool"') && !t.includes('"function"') && !/AskUserQuestion/i.test(t)))
|
|
77
78
|
return [];
|
|
78
79
|
const out = [];
|
|
79
80
|
const seen = new Set();
|
package/dist/theme.js
CHANGED
package/dist/tools.js
CHANGED
|
@@ -587,11 +587,19 @@ const computerToolSchemas = [
|
|
|
587
587
|
{ type: 'function', function: { name: 'Key', description: 'Ozel tus / kombinasyon gonderir. Orn: "Enter", "Tab", "Ctrl+C", "Alt+F4".', parameters: { type: 'object', properties: { keys: { type: 'string' } }, required: ['keys'] } } },
|
|
588
588
|
{ type: 'function', function: { name: 'Scroll', description: 'Fare tekerlegiyle kaydirir.', parameters: { type: 'object', properties: { direction: { type: 'string', enum: ['up', 'down'] }, amount: { type: 'number', description: 'Varsayilan 3' } }, required: ['direction'] } } },
|
|
589
589
|
];
|
|
590
|
+
// Yerel 32B model çok sayıda + orchestration aracıyla (Skill/Agent/PlanMode/TodoWrite)
|
|
591
|
+
// karşılaşınca araç çağrısı yerine "plan"ı DÜZ-METİN döküyor (saçma çıktı + donma).
|
|
592
|
+
// Bu yüzden modele YALNIZ sade, build+güvenlik çekirdeğini veriyoruz → araçları gerçekten
|
|
593
|
+
// çağırıp işi yapar, planı ekrana basmaz. (Gerekirse buraya yeni araç eklenir.)
|
|
594
|
+
const CORE_TOOLS = new Set([
|
|
595
|
+
'Bash', 'PowerShell', 'Read', 'Write', 'Edit', 'Glob', 'Grep',
|
|
596
|
+
'WebFetch', 'WebSearch', 'AskUserQuestion', 'Sleep',
|
|
597
|
+
]);
|
|
590
598
|
export function allToolSchemas() {
|
|
591
599
|
const sk = skillToolSchema();
|
|
592
600
|
const all = [...toolSchemas, ...computerToolSchemas, ...getMcpToolSchemas(), ...(sk ? [sk] : [])];
|
|
593
601
|
const excluded = new Set(getExcludedTools());
|
|
594
|
-
return
|
|
602
|
+
return all.filter((t) => CORE_TOOLS.has(t.function.name) && !excluded.has(t.function.name));
|
|
595
603
|
}
|
|
596
604
|
const TOOL_META = {
|
|
597
605
|
Read: { readOnly: true, concurrencySafe: true },
|