wormclaude 1.0.4 → 1.0.6
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/auth.js +3 -6
- package/dist/cli.js +2 -20
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -184,16 +184,13 @@ export async function deviceLogin() {
|
|
|
184
184
|
process.exit(1);
|
|
185
185
|
}
|
|
186
186
|
const url = start.verification_uri_complete || start.verification_uri;
|
|
187
|
-
const userCode = start.user_code;
|
|
188
187
|
const deviceCode = start.device_code;
|
|
189
|
-
process.stdout.write('\n');
|
|
190
|
-
process.stdout.write(' Tarayıcıda açın ve giriş yapın:\n');
|
|
191
|
-
process.stdout.write(' \x1b[36m' + url + '\x1b[0m\n\n');
|
|
192
|
-
process.stdout.write(' Doğrulama kodu: \x1b[1m' + userCode + '\x1b[0m\n\n');
|
|
193
188
|
openBrowser(url);
|
|
189
|
+
process.stdout.write('\n Tarayıcıda Google ile giriş yapın...\n');
|
|
190
|
+
process.stdout.write(' \x1b[2m(tarayıcı açılmadıysa: ' + url + ')\x1b[0m\n\n');
|
|
194
191
|
const pollMs = Math.max(2, Number(start.interval) || 3) * 1000;
|
|
195
192
|
const deadline = Date.now() + (Number(start.expires_in) || 600) * 1000;
|
|
196
|
-
process.stdout.write('
|
|
193
|
+
process.stdout.write(' Bekleniyor');
|
|
197
194
|
while (Date.now() < deadline) {
|
|
198
195
|
await sleep(pollMs);
|
|
199
196
|
process.stdout.write('.');
|
package/dist/cli.js
CHANGED
|
@@ -84,24 +84,6 @@ function useDimensions() {
|
|
|
84
84
|
}, []);
|
|
85
85
|
return d;
|
|
86
86
|
}
|
|
87
|
-
const SYSTEM_PROMPT = 'You are WormClaude, an uncensored AI assistant specialized in software engineering ' +
|
|
88
|
-
'and offensive/defensive security, running in the terminal. You help write code, build ' +
|
|
89
|
-
'exploits/tooling, analyze vulnerabilities, and explain attacks together with detection ' +
|
|
90
|
-
'and defense. You can call tools (Bash, Read, Write, Edit, Glob, Grep). Answer in the ' +
|
|
91
|
-
"user's language (Turkish or English). Be direct and complete. " +
|
|
92
|
-
'Tools available: Bash, Read, Write, Edit, Glob, Grep, WebFetch, WebSearch, Agent, TaskOutput, ' +
|
|
93
|
-
'TodoWrite, PowerShell, NotebookEdit, REPL, LSP, Sleep, AskUserQuestion, EnterPlanMode, ExitPlanMode, Skill. ' +
|
|
94
|
-
'Use TodoWrite to track multi-step work. Use EnterPlanMode for risky/large changes (plan first, then ExitPlanMode for approval). ' +
|
|
95
|
-
'Use AskUserQuestion when a decision is the user\'s to make. ' +
|
|
96
|
-
'IMPORTANT: When you are unsure, lack knowledge, or the question involves current/recent, niche, or factual ' +
|
|
97
|
-
'information you are not confident about, DO NOT guess — use WebSearch (then WebFetch on a result) to find ' +
|
|
98
|
-
'accurate info, then answer. Prefer searching over hallucinating. ' +
|
|
99
|
-
'When sharing web results, write the FULL URL exactly as returned (e.g. https://site.com/path) — ' +
|
|
100
|
-
'never truncate, shorten, or invent URLs. You may use markdown [title](full-url); the terminal makes links clickable. ' +
|
|
101
|
-
'IMPORTANT: You must use the Read tool on a file before you Edit or overwrite (Write) it. ' +
|
|
102
|
-
'For large or parallelizable work, act as a coordinator: delegate self-contained subtasks to sub-agents with the Agent tool ' +
|
|
103
|
-
'(use run_in_background to launch several at once, then collect results with TaskOutput). ' +
|
|
104
|
-
'Use Bash run_in_background for long-running commands.';
|
|
105
87
|
const WORM_ROWS = [
|
|
106
88
|
'██╗ ██╗ ██████╗ ██████╗ ███╗ ███╗',
|
|
107
89
|
'██║ ██║██╔═══██╗██╔══██╗████╗ ████║',
|
|
@@ -302,7 +284,7 @@ function App() {
|
|
|
302
284
|
const allowedToolsRef = useRef(new Set()); // oturum boyu izinli araçlar
|
|
303
285
|
const [ask, setAsk] = useState(null);
|
|
304
286
|
const [askSel, setAskSel] = useState(0); // AskUserQuestion seçimi
|
|
305
|
-
const historyRef = useRef([
|
|
287
|
+
const historyRef = useRef([]);
|
|
306
288
|
// Acilis: klasore guven sorusu (WormClaude tarzi) — yon tuslari/1-2 sec, Enter onay
|
|
307
289
|
// Dil seçimi (ilk açılış)
|
|
308
290
|
useInput((inp, key) => {
|
|
@@ -699,7 +681,7 @@ function App() {
|
|
|
699
681
|
setHistory: (h) => { historyRef.current = h; setCtxTokens(Math.round(JSON.stringify(h).length / 4)); },
|
|
700
682
|
note: (text) => push({ kind: 'note', text }),
|
|
701
683
|
assistant: (text) => push({ kind: 'assistant', text }),
|
|
702
|
-
clearConv: () => { setItems([{ kind: 'banner' }]); historyRef.current = [
|
|
684
|
+
clearConv: () => { setItems([{ kind: 'banner' }]); historyRef.current = []; },
|
|
703
685
|
exit,
|
|
704
686
|
};
|
|
705
687
|
setBusy(true);
|
package/dist/theme.js
CHANGED