Skip to content

Import upstream latest with local security and Hermes sync fixes#80

Open
Cheng455153666 wants to merge 1 commit into170-carry:mainfrom
Cheng455153666:security-hermes-sync
Open

Import upstream latest with local security and Hermes sync fixes#80
Cheng455153666 wants to merge 1 commit into170-carry:mainfrom
Cheng455153666:security-hermes-sync

Conversation

@Cheng455153666
Copy link
Copy Markdown

No description provided.

report += '| Key | 英文值(基准) | 复用语言 |\n';
report += '|-----|----------------|---------|\n';
for (const issue of englishReuseIssues) {
const safeValue = issue.value.replace(/\r?\n/g, ' ').replace(/\|/g, '\\|');
report += '| suffix | 文案值(en-US) | 平台 | 当前 key | 建议 common key |\n';
report += '|--------|----------------|------|----------|------------------|\n';
for (const issue of platformCommonIssues) {
const safeValue = issue.value.replace(/\r?\n/g, ' ').replace(/\|/g, '\\|');
report += '|--------|----------------|------|----------|------------------|\n';
for (const issue of platformCommonIssues) {
const safeValue = issue.value.replace(/\r?\n/g, ' ').replace(/\|/g, '\\|');
const safeKeys = issue.keys.join(', ').replace(/\r?\n/g, ' ').replace(/\|/g, '\\|');
const lastKey = keys[keys.length - 1];
if (!isSafeKey(lastKey)) return false;
if (!Object.prototype.hasOwnProperty.call(current, lastKey)) {
Object.defineProperty(current, lastKey, {
if (!isSafeKey(lastKey)) return false;
const existing = Object.prototype.hasOwnProperty.call(current, lastKey) ? current[lastKey] : undefined;
if (!Object.prototype.hasOwnProperty.call(current, lastKey) || existing === englishValue) {
Object.defineProperty(current, lastKey, {
fn builds_cli_device_login_url_without_redirect_uri() {
let url = build_cli_device_login_url(
DEFAULT_LOGIN_BASE_URL,
"test-nonce",
// lgtm[rs/weak-cryptographic-algorithm] 仅用于生成本地稳定账号 ID(非密码学用途,不参与认证/签名/加密)
let generated_id = format!(
"windsurf_{:x}",
md5::compute(format!("{}:{}", normalized_login, payload.github_id))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants