mirror of
https://github.com/7836246/cursor2api.git
synced 2026-06-08 18:42:59 +08:00
v2.1.0: Prompt strategy overhaul - Cursor IDE scene-fusion, remove tool whitelist, multi-layer refusal defense, context sanitization
This commit is contained in:
9
debug_payload.js
Normal file
9
debug_payload.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const fs = require('fs');
|
||||
const txt = fs.readFileSync('last_payload.json', 'utf8');
|
||||
const payload = JSON.parse(txt);
|
||||
payload.forEach((m, i) => {
|
||||
const text = m.parts && m.parts[0] && m.parts[0].text ? m.parts[0].text : '';
|
||||
console.log(`--- Message ${i} [${m.role}] ---`);
|
||||
console.log(text.substring(0, 300));
|
||||
console.log('');
|
||||
});
|
||||
Reference in New Issue
Block a user