wormclaude 1.0.203 → 1.0.204
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/commands.js +1 -0
- package/dist/theme.js +1 -1
- package/dist/tools.js +16 -1
- package/dist/tui.js +7 -1
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -65,6 +65,7 @@ export const COMMANDS = [
|
|
|
65
65
|
{ name: '/pentest', desc: 'OTONOM çoklu-yüzey pentest (web+network+OSINT+cloud → tek rapor): /pentest <domain>' },
|
|
66
66
|
{ name: '/audit', desc: 'kaynak kod güvenlik denetimi (SAST — sır/açık/CVE, yerel): /audit [klasör]' },
|
|
67
67
|
{ name: '/jwt', desc: 'JWT token güvenlik analizi (alg=none/zayıf-secret/expiry/claim, yerel): /jwt <token>' },
|
|
68
|
+
{ name: '/computer', desc: 'ekran kontrolünü aç/kapa (screenshot + tıkla/yaz, trust3+): See/Click/Type' },
|
|
68
69
|
{ name: '/spray', desc: 'login formuna parola-spray (yetkili test, trust 3+): /spray <login-url> [kullanıcı]' },
|
|
69
70
|
{ name: '/defaultcreds', desc: 'login\'e varsayılan kimlik denemesi (admin/admin vb, trust 3+): /defaultcreds <login-url>' },
|
|
70
71
|
{ name: '/exploit', desc: 'yetkili testte doğrulanmış PoC üret: /exploit <cve|açıklama>' },
|
package/dist/theme.js
CHANGED
package/dist/tools.js
CHANGED
|
@@ -660,11 +660,26 @@ const CORE_TOOLS = new Set([
|
|
|
660
660
|
// (test edildi). Eski degenere NESTED şemadandı ([{label,description}]). Handler string→{label}
|
|
661
661
|
// normalize ediyor; bare-JSON inline recovery temiz çağrıyı yakalıyor → numaralı menü.
|
|
662
662
|
]);
|
|
663
|
+
// Computer-use (ekran kontrolü) — varsayılan KAPALI; /computer ile açılır (her görevde modele
|
|
664
|
+
// gönderilip misfire/context şişmesi olmasın). Açıkken See/Click/Type/Key/Scroll araç-setine girer.
|
|
665
|
+
const COMPUTER_TOOLS = new Set(['See', 'Click', 'Type', 'Key', 'Scroll']);
|
|
666
|
+
let _computerEnabled = false;
|
|
667
|
+
export function isComputerUse() { return _computerEnabled; }
|
|
668
|
+
export function setComputerUse(on) { _computerEnabled = !!on; }
|
|
663
669
|
export function allToolSchemas() {
|
|
664
670
|
const sk = skillToolSchema();
|
|
665
671
|
const all = [...toolSchemas, ...computerToolSchemas, ...getMcpToolSchemas(), ...(sk ? [sk] : [])];
|
|
666
672
|
const excluded = new Set(getExcludedTools());
|
|
667
|
-
return all.filter((t) =>
|
|
673
|
+
return all.filter((t) => {
|
|
674
|
+
const n = t.function.name;
|
|
675
|
+
if (excluded.has(n))
|
|
676
|
+
return false;
|
|
677
|
+
if (CORE_TOOLS.has(n))
|
|
678
|
+
return true;
|
|
679
|
+
if (_computerEnabled && COMPUTER_TOOLS.has(n))
|
|
680
|
+
return true; // /computer açıkken ekran araçları
|
|
681
|
+
return false;
|
|
682
|
+
});
|
|
668
683
|
}
|
|
669
684
|
const TOOL_META = {
|
|
670
685
|
Read: { readOnly: true, concurrencySafe: true, validate: (a) => (a && a.file_path && String(a.file_path) !== 'undefined' ? null : 'file_path gerekli (geçerli bir dosya yolu ver)') },
|
package/dist/tui.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import readline from 'node:readline';
|
|
7
7
|
import stringWidth from 'string-width';
|
|
8
8
|
import { loadConfig, streamChat, fetchAccount } from './api.js';
|
|
9
|
-
import { allToolSchemas, executeToolCalls, executeTool, toolLabel, setToolConfig, getBashCwd } from './tools.js';
|
|
9
|
+
import { allToolSchemas, executeToolCalls, executeTool, toolLabel, setToolConfig, getBashCwd, setComputerUse, isComputerUse } from './tools.js';
|
|
10
10
|
import { setCheckpointStore } from './checkpoint.js';
|
|
11
11
|
import { extractImages, visionMessages, VISION_MODEL } from './vision.js';
|
|
12
12
|
import * as path from 'node:path';
|
|
@@ -932,6 +932,12 @@ export async function runTui() {
|
|
|
932
932
|
runTurn(`CodeAudit aracıyla şu yolu kaynak kod güvenliği için tara (SAST): ${a}. Bulguları severity-sıralı özetle + öncelikli düzeltmeler.`, v);
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
935
|
+
// /computer — ekran kontrolü (See/Click/Type) aç-kapa
|
|
936
|
+
if (tok === '/computer') {
|
|
937
|
+
setComputerUse(!isComputerUse());
|
|
938
|
+
printItem({ kind: 'note', text: isComputerUse() ? '🖥️ Ekran kontrolü AÇIK — artık ekran görüntüsü alıp tıklayıp yazabilirim (her eylem onayınla). Kapatmak: /computer' : 'Ekran kontrolü kapatıldı.' });
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
935
941
|
// /jwt — JWT token güvenlik analizi (yerel); modele JwtAudit çağırt
|
|
936
942
|
if (tok === '/jwt') {
|
|
937
943
|
const a = v.slice(tok.length).trim();
|