Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: remove unused imports and superfluous argument

Adam Eivyf19ad2ee6ad5
diff --git a/.claude/commands/rpr.md b/.claude/commands/rpr.md
new file mode 100644
index 0000000000..764b341564
--- /dev/null
+++ b/.claude/commands/rpr.md
@@ -0,0 +1,63 @@
+# Resolve PR Review Feedback
+
+Address the latest code review feedback on the current branch's pull request.
+
+## Steps
+
+1. **Get the current PR**: Use `gh pr view --json number,url,reviewDecision,reviews` to find the PR for this branch
+
+2. **Fetch review comments**: Use `gh api graphql` to get all unresolved review threads:
+ ```
+ gh api graphql -f query='
+ query($owner: String!, $repo: String!, $pr: Int!) {
+ repository(owner: $owner, name: $repo) {
+ pullRequest(number: $pr) {
+ reviewThreads(first: 100) {
+ nodes {
+ id
+ isResolved
+ comments(first: 10) {
+ nodes {
+ body
+ path
+ line
+ author { login }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ '
+ ```
+
+3. **Address each unresolved thread**:
+ - Read the file and understand the context
+ - Make the requested code changes if they are accurate
+ - Keep track of which thread IDs were addressed
+ - Check to see if there are further opportunities to DRY up the code
+ - Do your own code review and correct any other issues
+
+4. **Commit and push**: Stage changes, commit with message like `fix: address PR review feedback`, push to dev branch
+
+5. **Resolve conversations**: For each addressed thread, use the GraphQL mutation:
+ ```
+ gh api graphql -f query='
+ mutation($threadId: ID!) {
+ resolveReviewThread(input: {threadId: $threadId}) {
+ thread { isResolved }
+ }
+ }
+ ' -f threadId='<THREAD_ID>'
+ ```
+
+6. **Re-request review** if needed: `gh pr edit --add-reviewer <reviewer>`
+
+## Notes
+
+- Parse the repo owner/name from `gh repo view --json owner,name`
+- Only resolve threads where you've actually addressed the feedback
+- If feedback is unclear, leave a reply instead of resolving
+- Do not include co-author info in commits
+- This project uses `dev` as the working branch, PRs go from `dev` to `main`
diff --git a/client/src/pages/DevTools.jsx b/client/src/pages/DevTools.jsx
index 466b7e90e5..2355cf7f22 100644
--- a/client/src/pages/DevTools.jsx
+++ b/client/src/pages/DevTools.jsx
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef, Fragment } from 'react';
-import { GitBranch, Plus, Minus, FileText, Clock, RefreshCw, Activity, BarChart3, Image, X, XCircle, Cpu, MemoryStick, Terminal } from 'lucide-react';
+import { GitBranch, Plus, Minus, FileText, Clock, RefreshCw, Activity, Image, X, XCircle, Cpu, MemoryStick, Terminal } from 'lucide-react';
import * as api from '../services/api';
import socket from '../services/socket';
diff --git a/client/src/pages/PromptManager.jsx b/client/src/pages/PromptManager.jsx
index 20825559dc..a13699ffe1 100644
--- a/client/src/pages/PromptManager.jsx
+++ b/client/src/pages/PromptManager.jsx
@@ -1,6 +1,5 @@
import { useState, useEffect } from 'react';
import { FileText, Variable, RefreshCw, Save, Plus, Trash2, Eye } from 'lucide-react';
-import * as api from '../services/api';
export default function PromptManager() {
const [tab, setTab] = useState('stages');
diff --git a/server/services/promptService.js b/server/services/promptService.js
index ed12b3efcb..60452fc0a4 100644
--- a/server/services/promptService.js
+++ b/server/services/promptService.js
@@ -1,4 +1,4 @@
-import { readFile, writeFile, readdir, mkdir } from 'fs/promises';
+import { readFile, writeFile, mkdir } from 'fs/promises';
import { existsSync } from 'fs';
import { join, dirname } from 'path';
import { fileURLToPath } from 'url';
diff --git a/server/services/socket.js b/server/services/socket.js
index 9675d3c03b..b4e9f6e020 100644
--- a/server/services/socket.js
+++ b/server/services/socket.js
@@ -9,9 +9,9 @@ export function initSocket(io) {
console.log(`🔌 Client connected: ${socket.id}`);
// Handle streaming app detection
- socket.on('detect:start', async ({ path, providerId }) => {
+ socket.on('detect:start', async ({ path }) => {
console.log(`🔍 Starting detection: ${path}`);
- await streamDetection(socket, path, providerId);
+ await streamDetection(socket, path);
});
// Handle log streaming requests