๐คฏ LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
๐ chore: translate non-English comments to English in scripts (#16000)
LobeHub Bot5862a3ead8b2
diff --git a/.github/scripts/pr-comment.js b/.github/scripts/pr-comment.jsindex a56e36b6a77..8b7480e90c3 100644--- a/.github/scripts/pr-comment.js+++ b/.github/scripts/pr-comment.js@@ -6,7 +6,7 @@ const prComment = async ({ github, context, releaseUrl, artifactsUrl, version, tconst COMMENT_IDENTIFIER = '<!-- DESKTOP-BUILD-COMMENT -->';/**- * ็ๆ่ฏ่ฎบๅ ๅฎน+ * Generate comment body content*/const generateCommentBody = async () => {try {diff --git a/scripts/create-test-tasks.js b/scripts/create-test-tasks.jsindex 13c265f5b73..89a51700afc 100644--- a/scripts/create-test-tasks.js+++ b/scripts/create-test-tasks.js@@ -15,7 +15,7 @@ const api = (path, json) =>async function main() {// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ- // 1. ๅฎๆดไปปๅกๆ ๏ผ3ๅฑๅตๅฅ + ๆททๅ็ถๆ๏ผ+ // 1. Full task tree (3-level nesting + mixed states)// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโconst root = await api('task.create', {name: 'Launch v2.0 Release',@@ -30,7 +30,7 @@ async function main() {content: 'Kickoff meeting completed, all teams aligned',});- // ๅญไปปๅก1๏ผFrontend๏ผๆ่ชๅทฑ็3ไธชๅญไปปๅก๏ผ+ // Subtask 1: Frontend (with its own 3 subtasks)const frontend = await api('task.create', {name: 'Frontend overhaul',instruction: 'Redesign all major pages with new component library.',@@ -60,7 +60,7 @@ async function main() {assigneeAgentId: agentId,});- // ๅญไปปๅก2๏ผBackend๏ผๆ2ไธชๅญไปปๅก๏ผ1ไธชๅทฒๅฎๆ๏ผ+ // Subtask 2: Backend (with 2 subtasks, 1 completed)const backend = await api('task.create', {name: 'Backend API v2',instruction: 'Implement v2 API endpoints with breaking changes.',@@ -84,7 +84,7 @@ async function main() {assigneeAgentId: agentId,});- // ๅญไปปๅก3๏ผๅถๅญ่็น+ // Subtask 3: Leaf nodeawait api('task.create', {name: 'Write release notes',instruction: 'Draft user-facing release notes covering all v2 changes.',@@ -93,7 +93,7 @@ async function main() {assigneeAgentId: agentId,});- // ๅญไปปๅก4๏ผๅทฒๅฎๆ+ // Subtask 4: Completedconst designReview = await api('task.create', {name: 'Design review',instruction: 'Review all new designs with the team.',@@ -104,7 +104,7 @@ async function main() {await api('task.updateStatus', { id: designReview.id, status: 'completed' });// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ- // 2. ็ดงๆฅไปปๅก๏ผๆ ๅญไปปๅก๏ผ+ // 2. Urgent task (no subtasks)// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโawait api('task.create', {name: 'Fix production login bug',@@ -115,7 +115,7 @@ async function main() {});// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ- // 3. ๅทฒๅฎๆ็็ฌ็ซไปปๅก๏ผๅธฆ่ฏ่ฎบ๏ผ+ // 3. Completed standalone task (with comments)// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโconst cicd = await api('task.create', {name: 'Setup CI/CD pipeline',@@ -127,7 +127,7 @@ async function main() {await api('task.addComment', { id: cicd.id, content: 'Pipeline is live, all checks green' });// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ- // 4. ๆ ไผๅ ็บง backlog ไปปๅก+ // 4. No-priority backlog task// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโawait api('task.create', {name: 'Evaluate new database options',@@ -138,7 +138,7 @@ async function main() {});// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ- // 5. Markdown ้ฟๆ่ฟฐไปปๅก+ // 5. Markdown long-description task// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโawait api('task.create', {name: 'Update API documentation',@@ -164,7 +164,7 @@ async function main() {});// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ- // 6. ๅทฒๅๆถ็ไปปๅก+ // 6. Cancelled task// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโconst canceled = await api('task.create', {name: 'Migrate to Redis cluster',@@ -175,7 +175,7 @@ async function main() {await api('task.updateStatus', { id: canceled.id, status: 'canceled' });// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ- // 7. ็ฎๅ็ถๅญๅ ณ็ณป๏ผ2ไธชๅญไปปๅก๏ผ+ // 7. Simple parent-child relationship (2 subtasks)// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโconst okr = await api('task.create', {name: 'Q2 OKR planning',diff --git a/scripts/generate-oidc-jwk.mjs b/scripts/generate-oidc-jwk.mjsindex e8890cf274a..2950e529832 100755--- a/scripts/generate-oidc-jwk.mjs+++ b/scripts/generate-oidc-jwk.mjs@@ -1,17 +1,17 @@#!/usr/bin/env node/**- * OIDC JWKS ๅฏ้ฅ็ๆ่ๆฌ- * ็จไบ็ๆ OIDC Provider ไฝฟ็จ็ RSA ๅฏ้ฅๅฏนๅนถ่ฝฌๆขไธบ JWKS ๆ ผๅผ+ * OIDC JWKS key generation script+ * Generates an RSA key pair for use by the OIDC Provider and converts it to JWKS format*- * ไฝฟ็จๆนๆณ:+ * Usage:* node scripts/generate-oidc-jwk.mjs*- * ๅฐ่พๅบ็ๅ่ก JSON ๅญ็ฌฆไธฒ่ฎพ็ฝฎไธบ็ฏๅขๅ้ OIDC_JWKS_KEY+ * Set the output single-line JSON string as the environment variable OIDC_JWKS_KEY*/import { exportJWK, generateKeyPair } from 'jose';import crypto from 'node:crypto';-// ็ๆๅฏ้ฅ ID+// Generate key IDfunction generateKeyId() {return crypto.randomBytes(8).toString('hex');}@@ -20,29 +20,29 @@ async function generateJwks() {try {console.error('ๆญฃๅจ็ๆ RSA ๅฏ้ฅๅฏน...');- // ็ๆ RS256 ๅฏ้ฅๅฏน+ // Generate RS256 key pairconst { privateKey } = await generateKeyPair('RS256', {extractable: true,});- // ๅฏผๅบไธบ JWK ๆ ผๅผ+ // Export as JWK formatconst jwk = await exportJWK(privateKey);- // ๆทปๅ ๅฟ ่ฆ็ๅญๆฎต- jwk.use = 'sig'; // ็จ้: ็ญพๅ- jwk.kid = generateKeyId(); // ๅฏ้ฅ ID- jwk.alg = 'RS256'; // ็ฎๆณ+ // Add required fields+ jwk.use = 'sig'; // Purpose: signature+ jwk.kid = generateKeyId(); // Key ID+ jwk.alg = 'RS256'; // Algorithm- // ๅๅปบ JWKS (JSON Web Key Set)+ // Create JWKS (JSON Web Key Set)const jwks = { keys: [jwk] };- // ่ฝฌๆขไธบJSONๅญ็ฌฆไธฒ+ // Convert to JSON stringconst jwksString = JSON.stringify(jwks);- // ่พๅบ JWKS JSON ๅ่กๅญ็ฌฆไธฒ+ // Output JWKS JSON as a single-line stringconsole.log(jwksString);- // ๆงๅถๅฐๆ็คบ+ // Console outputconsole.error('\nโ JWKS ๅทฒ็ๆ');console.error('่ฏทๅฐไธ้ข่พๅบ็ JSON ๅญ็ฌฆไธฒ็ดๆฅ่ฎพ็ฝฎไธบ็ฏๅขๅ้ OIDC_JWKS_KEY');console.error('ไพๅฆๅจ .env ๆไปถไธญๆทปๅ :');@@ -57,6 +57,6 @@ async function generateJwks() {}}-// ๆง่กไธปๅฝๆฐ+// Execute main function// eslint-disable-next-line unicorn/prefer-top-level-awaitgenerateJwks();diff --git a/scripts/vercelIgnoredBuildStep.js b/scripts/vercelIgnoredBuildStep.jsindex dd6859c2ebc..480904825b8 100644--- a/scripts/vercelIgnoredBuildStep.js+++ b/scripts/vercelIgnoredBuildStep.js@@ -1,10 +1,10 @@const { execSync } = require('node:child_process');-// ่ทๅๅฝๅๅๆฏๅ+// Get current branch nameconst branchName = process.env.VERCEL_GIT_COMMIT_REF || '';function shouldProceedBuild() {- // ๅฆๆๆฏ lighthouse ๅๆฏๆไปฅ testgru ๅผๅคด็ๅๆฏ๏ผๅๆถๆๅปบ+ // If the branch is 'lighthouse' or starts with a skip prefix, cancel the buildif (branchName === 'lighthouse' ||['gru', 'automatic', 'reproduction'].some((item) =>@@ -15,7 +15,7 @@ function shouldProceedBuild() {}try {- // ๆฃๆฅๆไปถๅๆด๏ผๆ้ค็นๅฎๆไปถๅ็ฎๅฝ+ // Check file changes, excluding specific files and directoriesconst diffCommand ='git diff HEAD^ HEAD --quiet -- \":!./*.md" \