diff --git a/.oxlintrc.json b/.oxlintrc.json index b924f0238..d6c2c4133 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -329,11 +329,12 @@ "**/*.stories.ts", "src/test/**", "scripts/**", - "e2e/**" + "e2e/**", + "src/services/bioforest-sdk/bioforest-chain-bundle.*" ], "settings": { "react": { "version": "19" } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 7bae9c8c1..067f858b8 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build:all": "bun scripts/build.ts all", "build:release": "bun scripts/build.ts all --skip-test", "clean": "bun scripts/clean.ts", - "lint": "oxlint .", + "lint": "turbo run lint:run --", "lint:fix": "oxlint --fix .", "preview": "vite preview", "test": "turbo run test:run --", diff --git a/packages/dweb-compat/src/address.ts b/packages/dweb-compat/src/address.ts index 5219161ba..b31ba0c00 100644 --- a/packages/dweb-compat/src/address.ts +++ b/packages/dweb-compat/src/address.ts @@ -51,8 +51,7 @@ export async function getWalleterAddresss( magic: '', signMessage: '', })) - } catch (error) { - console.error('[dweb-compat] getWalleterAddresss error:', error) + } catch { return null } } diff --git a/packages/key-ui/src/step-indicator/StepIndicator.tsx b/packages/key-ui/src/step-indicator/StepIndicator.tsx index 2421f41ee..1d1a528f5 100644 --- a/packages/key-ui/src/step-indicator/StepIndicator.tsx +++ b/packages/key-ui/src/step-indicator/StepIndicator.tsx @@ -17,7 +17,7 @@ export function StepIndicator({ steps, currentStep, className }: StepIndicatorPr const isLast = index === steps.length - 1 return ( - +
- {Array.from({ length: total }).map((_, i) => ( + {Array.from({ length: total }, (_, i) => `step-${i + 1}`).map((stepKey, i) => (
查阅白皮书 pnpm agent stats 进度统计 -pnpm agent worktree create --branch [--base main] +pnpm agent worktree create --branch [--base origin/main] pnpm agent worktree list worktree 概览 pnpm agent worktree delete [--force] diff --git a/scripts/agent/handlers/worktree.ts b/scripts/agent/handlers/worktree.ts index c216884dc..aa9de3093 100644 --- a/scripts/agent/handlers/worktree.ts +++ b/scripts/agent/handlers/worktree.ts @@ -295,7 +295,7 @@ function formatPrStatus(info: PrInfo): string { export function createWorktree(options: { name?: string; branch?: string; base?: string }): void { const name = options.name?.trim() const branch = options.branch?.trim() - const base = options.base?.trim() || 'main' + const base = options.base?.trim() || 'origin/main' if (!name) { log.error('请提供 worktree 名称') diff --git a/src/stackflow/activities/sheets/PermissionRequestJob.tsx b/src/stackflow/activities/sheets/PermissionRequestJob.tsx index 771f474d0..92d498814 100644 --- a/src/stackflow/activities/sheets/PermissionRequestJob.tsx +++ b/src/stackflow/activities/sheets/PermissionRequestJob.tsx @@ -67,12 +67,12 @@ function PermissionRequestJobContent() { const getPermissionLabel = (permKey: string): string => { const labelKey = `${permKey}.label` as const; - return t(labelKey as any) as string; + return String(t(labelKey)); }; const getPermissionDescription = (permKey: string): string => { const descKey = `${permKey}.description` as const; - return t(descKey as any) as string; + return String(t(descKey)); }; return ( @@ -93,7 +93,9 @@ function PermissionRequestJobContent() { )}

{appName}

-

{t('requestsPermissions' as any)}

+

+ {String(t('requestsPermissions'))} +

{/* Permissions List */} @@ -120,7 +122,7 @@ function PermissionRequestJobContent() { {/* Trust indicator */}
- {t('permissionNote' as any)} + {String(t('permissionNote'))}