Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,12 @@
"**/*.stories.ts",
"src/test/**",
"scripts/**",
"e2e/**"
"e2e/**",
"src/services/bioforest-sdk/bioforest-chain-bundle.*"
],
"settings": {
"react": {
"version": "19"
}
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 --",
Expand Down
3 changes: 1 addition & 2 deletions packages/dweb-compat/src/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ export async function getWalleterAddresss(
magic: '',
signMessage: '',
}))
} catch (error) {
console.error('[dweb-compat] getWalleterAddresss error:', error)
} catch {
return null
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/key-ui/src/step-indicator/StepIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function StepIndicator({ steps, currentStep, className }: StepIndicatorPr
const isLast = index === steps.length - 1

return (
<React.Fragment key={index}>
<React.Fragment key={step}>
<div className="flex flex-col items-center gap-2">
<div
className={cn(
Expand Down Expand Up @@ -69,9 +69,9 @@ export interface ProgressStepsProps {
export function ProgressSteps({ total, current, className }: ProgressStepsProps) {
return (
<div className={cn('flex gap-1.5', className)}>
{Array.from({ length: total }).map((_, i) => (
{Array.from({ length: total }, (_, i) => `step-${i + 1}`).map((stepKey, i) => (
<div
key={i}
key={stepKey}
className={cn(
'h-1 flex-1 rounded-full transition-colors',
i < current ? 'bg-primary' : 'bg-muted',
Expand Down
2 changes: 1 addition & 1 deletion scripts/agent-flow/mcps/git-workflow.mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export async function markPrReady(args: { prNumber: string }) {
}

export async function createWorktree(args: { name: string; baseBranch?: string }) {
const { name, baseBranch = "main" } = args;
const { name, baseBranch = "origin/main" } = args;
const branchName = `feat/${name}`;
const worktreePath = `${WORKTREE_BASE}/${name}`;

Expand Down
2 changes: 1 addition & 1 deletion scripts/agent-flow/workflows/task.workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const startWorkflow = defineWorkflow({
try {
const { path, branch } = await createWorktree({
name: worktreeName,
baseBranch: "main",
baseBranch: "origin/main",
});
console.log(` ✅ Worktree Created: ${path}`);
console.log(` ✅ Branch Created: ${branch}`);
Expand Down
2 changes: 1 addition & 1 deletion scripts/agent/handlers/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pnpm agent epic create "x" 创建 Epic (--roadmap v1)
pnpm agent epic list 查看所有 Epic
pnpm agent chapter <x> 查阅白皮书
pnpm agent stats 进度统计
pnpm agent worktree create <name> --branch <branch> [--base main]
pnpm agent worktree create <name> --branch <branch> [--base origin/main]
pnpm agent worktree list worktree 概览
pnpm agent worktree delete <name> [--force]

Expand Down
2 changes: 1 addition & 1 deletion scripts/agent/handlers/worktree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 名称')
Expand Down
10 changes: 6 additions & 4 deletions src/stackflow/activities/sheets/PermissionRequestJob.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -93,7 +93,9 @@ function PermissionRequestJobContent() {
)}
</div>
<h2 className="text-center text-lg font-semibold">{appName}</h2>
<p className="text-muted-foreground mt-1 text-center text-sm">{t('requestsPermissions' as any)}</p>
<p className="text-muted-foreground mt-1 text-center text-sm">
{String(t('requestsPermissions'))}
</p>
</div>

{/* Permissions List */}
Expand All @@ -120,7 +122,7 @@ function PermissionRequestJobContent() {
{/* Trust indicator */}
<div className="text-muted-foreground mt-4 flex items-center gap-2 text-sm">
<IconShieldCheck className="size-4" />
<span>{t('permissionNote' as any)}</span>
<span>{String(t('permissionNote'))}</span>
</div>
</div>

Expand Down