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
| Mmods/README.md |
| Mmods/diff/tests/boot-probe.test.ts |
| Mmods/diff/tests/command.test.ts |
| Mmods/diff/tests/pane.test.ts |
| Mmods/sec-default/tests/sec-default.test.ts |
| Mmods/telemetry/tests/telemetry.test.ts |
| @@ -52,7 +52,7 @@ | ||
| 52 | 52 | origin: { kind: 'composer' }, |
| 53 | 53 | }) |
| 54 | 54 | |
| 55 | - expect(text).toContain('isn’t in a git repository') | |
| 55 | + expect(text).toMatch(/isn.t in a git repository/) | |
| 56 | 56 | expect(opened).toEqual([]) |
| 57 | 57 | }) |
| 58 | 58 | ``` |
| @@ -46,13 +46,13 @@ | ||
| 46 | 46 | const ran = $.command.run(DIFF) |
| 47 | 47 | await clock.advance(0) |
| 48 | 48 | |
| 49 | - expect(probes, 'the boot’s probe, which /diff joined').toHaveLength(1) | |
| 49 | + expect(probes, 'the boot probe, which /diff joined').toHaveLength(1) | |
| 50 | 50 | |
| 51 | 51 | await clock.advance(GIT_TIMEOUT_MS) |
| 52 | 52 | await booting |
| 53 | 53 | |
| 54 | 54 | expect(await ran).toEqual({ |
| 55 | - text: expect.stringContaining('isn’t in a git repository'), | |
| 55 | + text: expect.stringMatching(/isn.t in a git repository/), | |
| 56 | 56 | }) |
| 57 | 57 | expect(probes, 'then one more of its own').toHaveLength(2) |
| 58 | 58 | }) |
| @@ -37,11 +37,11 @@ | ||
| 37 | 37 | await $.session.start(SESSION) |
| 38 | 38 | const { text } = await $.command.run(DIFF) |
| 39 | 39 | |
| 40 | - expect(text).toContain('isn’t in a git repository') | |
| 40 | + expect(text).toMatch(/isn.t in a git repository/) | |
| 41 | 41 | expect(opened).toEqual([]) |
| 42 | 42 | }) |
| 43 | 43 | |
| 44 | -test('a git that never answers is not “no repository”', async ($, on) => { | |
| 44 | +test('a git that never answers is not "no repository"', async ($, on) => { | |
| 45 | 45 | on('session.start', ($, e) => ({ cwd: e.cwd })) |
| 46 | 46 | on('command.register', ($, e) => ({ value: { command: e.name } })) |
| 47 | 47 | on('process.run', () => ({ |
| @@ -51,7 +51,7 @@ | ||
| 51 | 51 | await $.session.start(SESSION) |
| 52 | 52 | const { text } = await $.command.run(DIFF) |
| 53 | 53 | |
| 54 | - expect(text).toContain('git didn’t answer') | |
| 54 | + expect(text).toMatch(/git didn.t answer/) | |
| 55 | 55 | }) |
| 56 | 56 | |
| 57 | 57 | test('with the built-in holding /diff, the plugin stands down', async ($, on) => { |
| @@ -121,7 +121,7 @@ | ||
| 121 | 121 | return { runs, opened, closed } |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | -test('/diff opens the pane over the session’s changes', async ($, on) => { | |
| 124 | +test('/diff opens the pane over the changes in the session', async ($, on) => { | |
| 125 | 125 | const world = inRepository(on) |
| 126 | 126 | |
| 127 | 127 | await $.session.start(SESSION) |
| @@ -158,7 +158,7 @@ | ||
| 158 | 158 | } |
| 159 | 159 | }) |
| 160 | 160 | |
| 161 | -test('Claude’s first edit opens the pane on a wide terminal', async ($, on) => { | |
| 161 | +test('the first edit Claude makes opens the pane on a wide terminal', async ($, on) => { | |
| 162 | 162 | const world = inRepository(on) |
| 163 | 163 | on('tool.call', () => ({ result: 'edited' })) |
| 164 | 164 |
| @@ -142,7 +142,7 @@ | ||
| 142 | 142 | ) |
| 143 | 143 | |
| 144 | 144 | test( |
| 145 | - 'with no allowlist, the person’s plugin adds its tool', | |
| 145 | + 'with no allowlist, a plugin the person installed adds its tool', | |
| 146 | 146 | { plugins: [registering('mine')] }, |
| 147 | 147 | async ($, on) => { |
| 148 | 148 | on('settings.read', () => ({ value: NO_ALLOWLIST })) |
| @@ -168,7 +168,7 @@ | ||
| 168 | 168 | ) |
| 169 | 169 | |
| 170 | 170 | test( |
| 171 | - 'the organization’s tools are listed as its tiers listed them', | |
| 171 | + 'the organization tools are listed as its tiers listed them', | |
| 172 | 172 | { plugins: [relabeling, listing] }, |
| 173 | 173 | async ($, on) => { |
| 174 | 174 | on('settings.read', () => ({ value: ALLOWLIST })) |
| @@ -184,7 +184,7 @@ | ||
| 184 | 184 | ) |
| 185 | 185 | |
| 186 | 186 | test( |
| 187 | - 'a prompt section continues past the person’s plugins, not the organization’s', | |
| 187 | + 'a prompt section skips the plugins the person installed, never the organization ones', | |
| 188 | 188 | { plugins: [dropping, signing] }, |
| 189 | 189 | async ($, on) => { |
| 190 | 190 | on('prompt.section', ($, e) => ({ text: e.text })) |
| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | test( |
| 77 | - 'a plugin’s $.telemetry.log posts one first-party row', | |
| 77 | + 'a $.telemetry.log call from a plugin posts one first-party row', | |
| 78 | 78 | { plugins: [recording] }, |
| 79 | 79 | async ($, on) => { |
| 80 | 80 | memoryEnv(on, { USER_TYPE: 'ant' }) |