Skip to content

Commit 6c2b912

Browse files
authored
chore: remove dead code and stale benchmarks (#44)
* chore: remove dead code and stale benchmarks * fix: restore npm install smoke fallback
1 parent f83d3ea commit 6c2b912

18 files changed

Lines changed: 35 additions & 451 deletions

autoresearch.checks.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

autoresearch.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

bun.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

knip.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@latest/schema.json",
3+
"project": [
4+
"src/**/*.{ts,tsx}",
5+
"scripts/**/*.ts",
6+
"test/**/*.{ts,tsx}",
7+
"bin/**/*.cjs"
8+
],
9+
"ignoreDependencies": ["bun"]
10+
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"bun": "^1.3.10",
7070
"commander": "^14.0.3",
7171
"diff": "^8.0.3",
72-
"parse-diff": "^0.11.1",
7372
"react": "^19.2.4",
7473
"zod": "^4.3.6"
7574
},

scripts/check-pack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ for (const path of requiredPaths) {
5252
}
5353

5454
const forbiddenPrefixes = [".github/", "src/", "test/", "scripts/", "tmp/"];
55-
const forbiddenPaths = ["AGENTS.md", "autoresearch.checks.sh", "autoresearch.sh", "bun.lock"];
55+
const forbiddenPaths = ["AGENTS.md", "bun.lock"];
5656

5757
for (const file of pack.files) {
5858
if (forbiddenPrefixes.some((prefix) => file.path.startsWith(prefix)) || forbiddenPaths.includes(file.path)) {

src/core/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,3 @@ export function resolveConfiguredCliInput(
181181
};
182182
}
183183

184-
export const CONFIG_DEFAULTS = DEFAULT_VIEW_PREFERENCES;
185-
export const CONFIG_SECTION_KEYS = CONFIG_SECTION_NAMES;

src/mcp/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DAEMON_STARTUP_TIMEOUT_MS = 3_000;
1515
const RECONNECT_DELAY_MS = 3_000;
1616
const HEARTBEAT_INTERVAL_MS = 10_000;
1717

18-
export interface HunkAppBridge {
18+
interface HunkAppBridge {
1919
applyComment: (message: Extract<SessionServerMessage, { command: "comment" }>) => Promise<AppliedCommentResult>;
2020
navigateToHunk: (message: Extract<SessionServerMessage, { command: "navigate_to_hunk" }>) => Promise<NavigatedSelectionResult>;
2121
}

src/mcp/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const DEFAULT_HUNK_MCP_HOST = "127.0.0.1";
2-
export const DEFAULT_HUNK_MCP_PORT = 47657;
1+
const DEFAULT_HUNK_MCP_HOST = "127.0.0.1";
2+
const DEFAULT_HUNK_MCP_PORT = 47657;
33
export const HUNK_MCP_PATH = "/mcp";
44
export const HUNK_SESSION_SOCKET_PATH = "/session";
55

src/mcp/daemonState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface PendingCommand {
2020
timeout: Timer;
2121
}
2222

23-
export interface DaemonSessionSocket {
23+
interface DaemonSessionSocket {
2424
send(data: string): unknown;
2525
}
2626

0 commit comments

Comments
 (0)