Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
TypeScript
mods: a blank line between const runs and let runs
poteat3668b47c37f0
diff --git a/mods/diff/hooks/ask/fitted-ask-text-of.ts b/mods/diff/hooks/ask/fitted-ask-text-of.tsindex cab7aa69..b06a53a9 100644--- a/mods/diff/hooks/ask/fitted-ask-text-of.ts+++ b/mods/diff/hooks/ask/fitted-ask-text-of.ts@@ -17,6 +17,7 @@ export function fittedAskTextOf(}const kept: string[] = []+let used = ASK_CUT_NOTE.lengthfor (const line of text.split('\n')) {diff --git a/mods/diff/hooks/git/parse/parse-numstat.ts b/mods/diff/hooks/git/parse/parse-numstat.tsindex 3354bdeb..62244f58 100644--- a/mods/diff/hooks/git/parse/parse-numstat.ts+++ b/mods/diff/hooks/git/parse/parse-numstat.ts@@ -20,6 +20,7 @@ export function parseNumstat(const files: Types.FileStat[] = []const stats = { filesCount: 0, linesAdded: 0, linesRemoved: 0 }const records = stdout.split('\0')+let at = 0while (at < records.length) {diff --git a/mods/diff/hooks/git/probes/kind-walk-of/kind-walk-of.ts b/mods/diff/hooks/git/probes/kind-walk-of/kind-walk-of.tsindex aeb01436..fc2caf82 100644--- a/mods/diff/hooks/git/probes/kind-walk-of/kind-walk-of.ts+++ b/mods/diff/hooks/git/probes/kind-walk-of/kind-walk-of.ts@@ -41,6 +41,7 @@ export function kindWalkOf(async function kindOf(path: string): Promise<Types.WalkKind> {const names = path === '' ? [] : path.split('/')+let directory = ''for (const [depth, name] of names.entries()) {diff --git a/mods/diff/hooks/register.ts b/mods/diff/hooks/register.tsindex fc0c03ff..86fbe141 100644--- a/mods/diff/hooks/register.ts+++ b/mods/diff/hooks/register.ts@@ -43,8 +43,11 @@ export function register(on: On) {let isRefreshQueued = falselet generation = 0let bodyKey: string | null = null+const polled = { toplevel: '', headKey: '' }+let model: PaneState.PaneModel = PaneState.INITIAL_MODEL+const timers = new Map<'refresh' | 'redraw' | 'poll', Timer>()const loggedBaseKinds = new Set<'ok' | 'sad'>()diff --git a/mods/diff/hooks/views/detail/code-blocks-of/code-blocks-of.ts b/mods/diff/hooks/views/detail/code-blocks-of/code-blocks-of.tsindex e8a38e0c..dd679669 100644--- a/mods/diff/hooks/views/detail/code-blocks-of/code-blocks-of.ts+++ b/mods/diff/hooks/views/detail/code-blocks-of/code-blocks-of.ts@@ -23,6 +23,7 @@ import { drawnLineOf } from './drawn-line-of'*/export function codeBlocksOf(hunks: readonly Git.Hunk[]): Types.CodeBody {const blocks: Types.CodeBlock[] = []+let chars = 0let nodes = 0let isTruncated = falsediff --git a/mods/diff/hooks/views/detail/sub-hunks-of/sub-hunks-of.ts b/mods/diff/hooks/views/detail/sub-hunks-of/sub-hunks-of.tsindex 2c6c7593..00b5b019 100644--- a/mods/diff/hooks/views/detail/sub-hunks-of/sub-hunks-of.ts+++ b/mods/diff/hooks/views/detail/sub-hunks-of/sub-hunks-of.ts@@ -19,6 +19,7 @@ export function subHunksOf(maxChars: number,): Pick<Git.FileHunks, 'hunks' | 'isTruncated'> {const hunks: Git.Hunk[] = []+let rest = hunklet isTruncated = falsediff --git a/mods/diff/hooks/views/layout/truncate-start/truncate-start.ts b/mods/diff/hooks/views/layout/truncate-start/truncate-start.tsindex 3cf30e0e..3981f0a0 100644--- a/mods/diff/hooks/views/layout/truncate-start/truncate-start.ts+++ b/mods/diff/hooks/views/layout/truncate-start/truncate-start.ts@@ -18,6 +18,7 @@ export function truncateStart(text: string, cells: number) {}const characters = [...text]+let kept = ''for (let at = characters.length - 1; at >= 0; at--) {diff --git a/mods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.ts b/mods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.tsindex 0e921424..04452cfb 100644--- a/mods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.ts+++ b/mods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.ts@@ -18,6 +18,7 @@ export function wrappedLines(text: string, columns: number): string[] {for (const [index, word] of words.entries()) {const wordWidth = cellWidth(word)+let rowWidth = cellWidth(rows[rows.length - 1] ?? '')if (index !== 0) {@@ -39,6 +40,7 @@ export function wrappedLines(text: string, columns: number): string[] {}const characters = [...word]+let visible = cellWidth(rows[rows.length - 1] ?? '')for (const [at, character] of characters.entries()) {