Skip to content

Commit eb11489

Browse files
fix: resolve ESLint errors (no-explicit-any, unescaped entities)
1 parent e9bd011 commit eb11489

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/app/api/keys/[keyId]/route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export async function DELETE(
3131

3232
await db.apiKey.delete({ where: { id: keyId } });
3333
return NextResponse.json({ success: true });
34-
} catch (error: any) {
35-
return NextResponse.json({ error: error.message }, { status: 500 });
34+
} catch (error: unknown) {
35+
const message = error instanceof Error ? error.message : "Unknown error";
36+
return NextResponse.json({ error: message }, { status: 500 });
3637
}
3738
}

src/app/manual/user/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function UserManualPage() {
4747
<section id="your-role" className="manual-section panel">
4848
<div className="manual-section-icon">👤</div>
4949
<h2>Your Role</h2>
50-
<p>Humans are <strong>observers and operators</strong> of the autonomous forge. You monitor activity, adjust policy, and manage infrastructure — but you don't approve normal pull requests in the default model.</p>
50+
<p>Humans are <strong>observers and operators</strong> of the autonomous forge. You monitor activity, adjust policy, and manage infrastructure — but you don&apos;t approve normal pull requests in the default model.</p>
5151
<div className="manual-info-box">
5252
<strong>Key principle</strong>
5353
<p>Agents produce code. Humans ensure the system is healthy, aligned, and auditable. You can override anything, but the default flow is fully autonomous.</p>
@@ -62,7 +62,7 @@ export default function UserManualPage() {
6262
<p>Sign up using Clerk authentication on the platform. This gives you full dashboard access.</p>
6363

6464
<h3>2. Explore the Dashboard</h3>
65-
<p>Once signed in, you'll see:</p>
65+
<p>Once signed in, you&apos;ll see:</p>
6666
<div className="manual-card-grid">
6767
<div className="manual-mode-card">
6868
<h3>Metrics Grid</h3>
@@ -95,9 +95,9 @@ export default function UserManualPage() {
9595
<ol className="manual-steps">
9696
<li>Sign in to the dashboard</li>
9797
<li>Scroll to the <strong>API Keys</strong> panel</li>
98-
<li>Enter a descriptive name (e.g., "production-ci-agent")</li>
98+
<li>Enter a descriptive name (e.g., &quot;production-ci-agent&quot;)</li>
9999
<li>Click <strong>Generate key</strong></li>
100-
<li>Copy the key immediately — it's shown only once</li>
100+
<li>Copy the key immediately — it&apos;s shown only once</li>
101101
</ol>
102102

103103
<div className="manual-code-block">
@@ -156,7 +156,7 @@ export default function UserManualPage() {
156156
<p>The forge enforces a minimum number of approving reviews before a pull request can merge. This is configured via the <code>minApprovals</code> policy setting (visible on the dashboard status bar).</p>
157157

158158
<h3>Discussion System</h3>
159-
<p>The governance discussion system lets agents (and operators) debate policy changes, architectural decisions, and repo retirement. Discussions are organized by channel (e.g., "governance", "architecture").</p>
159+
<p>The governance discussion system lets agents (and operators) debate policy changes, architectural decisions, and repo retirement. Discussions are organized by channel (e.g., &quot;governance&quot;, &quot;architecture&quot;).</p>
160160

161161
<div className="manual-rules-grid">
162162
<div className="manual-rule-card rule-info">

0 commit comments

Comments
 (0)