surshar / claude-code
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.
Built by Anthropic · github.com/anthropics
| @@ -48,7 +48,13 @@ | ||
| 48 | 48 | on('session.start', ($, e) => ({ cwd: e.cwd })) |
| 49 | 49 | on('command.register', ($, e) => ({ value: { command: e.name } })) |
| 50 | 50 | on('process.run', () => ({ |
| 51 | - value: { exitCode: 128, stdout: '', stderr: 'fatal: not a git repository' }, | |
| 51 | + value: { | |
| 52 | + exitCode: 128, | |
| 53 | + stdout: '', | |
| 54 | + stderr: 'fatal: not a git repository', | |
| 55 | + isStdoutTruncated: false, | |
| 56 | + isStderrTruncated: false, | |
| 57 | + }, | |
| 52 | 58 | })) |
| 53 | 59 | on('ui.open', ($, e, next) => { |
| 54 | 60 | opened.push(e.id) |
| @@ -20,7 +20,11 @@ | ||
| 20 | 20 | const host = backendHostOf(([program, ...rest]) => { |
| 21 | 21 | programs.push(program) |
| 22 | 22 | |
| 23 | - return scripted.run(rest) | |
| 23 | + return scripted.run(rest).then(ran => ({ | |
| 24 | + ...ran, | |
| 25 | + isStdoutTruncated: false, | |
| 26 | + isStderrTruncated: false, | |
| 27 | + })) | |
| 24 | 28 | }) |
| 25 | 29 | |
| 26 | 30 | return { host, programs } |
| @@ -22,6 +22,12 @@ | ||
| 22 | 22 | const found = Object.entries(script).find(([key]) => line.includes(key)) |
| 23 | 23 | |
| 24 | 24 | return found |
| 25 | - ? { exitCode: 0, stdout: found[1], stderr: '' } | |
| 25 | + ? { | |
| 26 | + exitCode: 0, | |
| 27 | + stdout: found[1], | |
| 28 | + stderr: '', | |
| 29 | + isStdoutTruncated: false, | |
| 30 | + isStderrTruncated: false, | |
| 31 | + } | |
| 26 | 32 | : NOT_A_REPOSITORY |
| 27 | 33 | } |
| @@ -7,4 +7,6 @@ | ||
| 7 | 7 | exitCode: 128, |
| 8 | 8 | stdout: '', |
| 9 | 9 | stderr: 'fatal: not a git repository', |
| 10 | + isStdoutTruncated: false, | |
| 11 | + isStderrTruncated: false, | |
| 10 | 12 | } |
| @@ -9,8 +9,8 @@ | ||
| 9 | 9 | export function oldFiles(on: On) { |
| 10 | 10 | on('fs.list', () => ({ |
| 11 | 11 | value: [ |
| 12 | - { name: 'old.ts', kind: 'file', size: 2, isLink: false }, | |
| 13 | - { name: 'moved.ts', kind: 'file', size: 2, isLink: false }, | |
| 12 | + { name: 'old.ts', kind: 'file', size: 2, mtimeMs: 0, isLink: false }, | |
| 13 | + { name: 'moved.ts', kind: 'file', size: 2, mtimeMs: 0, isLink: false }, | |
| 14 | 14 | ], |
| 15 | 15 | })) |
| 16 | 16 |
| @@ -8,4 +8,6 @@ | ||
| 8 | 8 | exitCode: -1, |
| 9 | 9 | stdout: '', |
| 10 | 10 | stderr: '', |
| 11 | + isStdoutTruncated: false, | |
| 12 | + isStderrTruncated: false, | |
| 11 | 13 | } |
| @@ -11,4 +11,6 @@ | ||
| 11 | 11 | exitCode: 0, |
| 12 | 12 | stdout, |
| 13 | 13 | stderr: '', |
| 14 | + isStdoutTruncated: false, | |
| 15 | + isStderrTruncated: false, | |
| 14 | 16 | }) |
| @@ -8,4 +8,6 @@ | ||
| 8 | 8 | exitCode: 1, |
| 9 | 9 | stdout: '', |
| 10 | 10 | stderr: '', |
| 11 | + isStdoutTruncated: false, | |
| 12 | + isStderrTruncated: false, | |
| 11 | 13 | } |
| @@ -8,4 +8,6 @@ | ||
| 8 | 8 | exitCode: 128, |
| 9 | 9 | stdout: '', |
| 10 | 10 | stderr: '', |
| 11 | + isStdoutTruncated: false, | |
| 12 | + isStderrTruncated: false, | |
| 11 | 13 | } |
| @@ -4,5 +4,5 @@ | ||
| 4 | 4 | * What the session's working directory lists: a git checkout. |
| 5 | 5 | */ |
| 6 | 6 | export const LISTING: FsEntry[] = [ |
| 7 | - { name: '.git', kind: 'dir', size: 0, isLink: false }, | |
| 7 | + { name: '.git', kind: 'dir', size: 0, mtimeMs: 0, isLink: false }, | |
| 8 | 8 | ] |
| @@ -8,4 +8,6 @@ | ||
| 8 | 8 | exitCode: 0, |
| 9 | 9 | stdout: 'Darwin\n25.6.0\narm64\nnpm,pnpm,\nbun,node,\n', |
| 10 | 10 | stderr: '', |
| 11 | + isStdoutTruncated: false, | |
| 12 | + isStderrTruncated: false, | |
| 11 | 13 | } |
Large file, diff not shown.