spacehub

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

claude-code / mods / diff / tests / fixtures / wrapped-lines / builtin-wraps.ts
124 lines · 3.1 KBRaw
1/**
2 * The built-in panel's empty-state lines as Ink wraps them (trim off,
3 * hard) at each width the layout case tries, keyed by line then width.
4 */
5export const BUILTIN_WRAPS: Readonly<
6 Record<string, Readonly<Record<number, readonly string[]>>>
7> = {
8 'No changes this session': {
9 8: ['No ', 'changes ', 'this ', 'session'],
10 23: ['No changes this session'],
11 24: ['No changes this session'],
12 48: ['No changes this session'],
13 70: ['No changes this session'],
14 },
15 "Couldn't read the git diff — it will retry on the next change": {
16 8: [
17 "Couldn't",
18 ' read ',
19 'the git ',
20 'diff — ',
21 'it will ',
22 'retry on',
23 ' the ',
24 'next ',
25 'change',
26 ],
27 23: [
28 "Couldn't read the git ",
29 'diff — it will retry on',
30 ' the next change',
31 ],
32 24: [
33 "Couldn't read the git ",
34 'diff — it will retry on ',
35 'the next change',
36 ],
37 48: ["Couldn't read the git diff — it will retry on ", 'the next change'],
38 70: ["Couldn't read the git diff — it will retry on the next change"],
39 },
40 'No base branch to compare against — showing changes vs HEAD': {
41 8: [
42 'No base ',
43 'branch ',
44 'to ',
45 'compare ',
46 'against ',
47 '— ',
48 'showing ',
49 'changes ',
50 'vs HEAD',
51 ],
52 23: ['No base branch to ', 'compare against — ', 'showing changes vs HEAD'],
53 24: ['No base branch to ', 'compare against — ', 'showing changes vs HEAD'],
54 48: ['No base branch to compare against — showing ', 'changes vs HEAD'],
55 70: ['No base branch to compare against — showing changes vs HEAD'],
56 },
57 'Tests and generated files are hidden · click "show" above to view them': {
58 8: [
59 'Tests ',
60 'and gene',
61 'rated ',
62 'files ',
63 'are ',
64 'hidden ·',
65 ' click ',
66 '"show" ',
67 'above to',
68 ' view ',
69 'them',
70 ],
71 23: [
72 'Tests and generated ',
73 'files are hidden · ',
74 'click "show" above to ',
75 'view them',
76 ],
77 24: [
78 'Tests and generated ',
79 'files are hidden · click',
80 ' "show" above to view ',
81 'them',
82 ],
83 48: [
84 'Tests and generated files are hidden · click ',
85 '"show" above to view them',
86 ],
87 70: [
88 'Tests and generated files are hidden · click "show" above to view them',
89 ],
90 },
91 'No changes vs a-release-branch-with-a-name-longer-than-a-row-of-the-pane': {
92 8: [
93 'No ',
94 'changes ',
95 'vs a-rel',
96 'ease-bra',
97 'nch-with',
98 '-a-name-',
99 'longer-t',
100 'han-a-ro',
101 'w-of-the',
102 '-pane',
103 ],
104 23: [
105 'No changes vs ',
106 'a-release-branch-with-a',
107 '-name-longer-than-a-row',
108 '-of-the-pane',
109 ],
110 24: [
111 'No changes vs a-release-',
112 'branch-with-a-name-longe',
113 'r-than-a-row-of-the-pane',
114 ],
115 48: [
116 'No changes vs a-release-branch-with-a-name-longe',
117 'r-than-a-row-of-the-pane',
118 ],
119 70: [
120 'No changes vs ',
121 'a-release-branch-with-a-name-longer-than-a-row-of-the-pane',
122 ],
123 },
124}