wormclaude 1.0.210 → 1.0.211
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/api.js +5 -0
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -118,6 +118,11 @@ function _lastTargetFromMessages(messages) {
|
|
|
118
118
|
const hostRe = /\b((?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,24})\b/i;
|
|
119
119
|
const badExt = /\.(?:js|ts|tsx|jsx|json|html?|css|png|jpe?g|gif|svg|md|txt|py|sh|yml|yaml|lock|map|ico|woff2?|mjs|cjs)$/i;
|
|
120
120
|
for (let i = messages.length - 1; i >= 0; i--) {
|
|
121
|
+
// SADECE KULLANICI mesajları: model build sonrası nutkunda "https://site.com" UYDURUYORDU →
|
|
122
|
+
// CLI onu scanTarget sanıp SecurityScan'e çeviriyordu (build'i taramaya çeviren spurious döngü +
|
|
123
|
+
// donma). Tarama hedefini SADECE kullanıcı verir; modelin hayali URL'i hedef olamaz.
|
|
124
|
+
if (messages[i]?.role !== 'user')
|
|
125
|
+
continue;
|
|
121
126
|
const c = messages[i]?.content;
|
|
122
127
|
const s = typeof c === 'string' ? c : Array.isArray(c) ? c.map((x) => x?.text || '').join(' ') : '';
|
|
123
128
|
if (!s)
|
package/dist/theme.js
CHANGED