claude-statusline 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/LICENSE +203 -0
  2. package/README.md +362 -0
  3. package/bin/claude-statusline +22 -0
  4. package/dist/core/cache.d.ts +67 -0
  5. package/dist/core/cache.js +223 -0
  6. package/dist/core/cache.js.map +1 -0
  7. package/dist/core/config.d.ts +190 -0
  8. package/dist/core/config.js +192 -0
  9. package/dist/core/config.js.map +1 -0
  10. package/dist/core/security.d.ts +27 -0
  11. package/dist/core/security.js +154 -0
  12. package/dist/core/security.js.map +1 -0
  13. package/dist/env/context.d.ts +92 -0
  14. package/dist/env/context.js +295 -0
  15. package/dist/env/context.js.map +1 -0
  16. package/dist/git/native.d.ts +35 -0
  17. package/dist/git/native.js +141 -0
  18. package/dist/git/native.js.map +1 -0
  19. package/dist/git/status.d.ts +65 -0
  20. package/dist/git/status.js +256 -0
  21. package/dist/git/status.js.map +1 -0
  22. package/dist/index.bundle.js +11 -0
  23. package/dist/index.d.ts +9 -0
  24. package/dist/index.js +396 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/metafile.prod.json +473 -0
  27. package/dist/ui/symbols.d.ts +31 -0
  28. package/dist/ui/symbols.js +308 -0
  29. package/dist/ui/symbols.js.map +1 -0
  30. package/dist/ui/width.d.ts +29 -0
  31. package/dist/ui/width.js +261 -0
  32. package/dist/ui/width.js.map +1 -0
  33. package/dist/utils/runtime.d.ts +31 -0
  34. package/dist/utils/runtime.js +82 -0
  35. package/dist/utils/runtime.js.map +1 -0
  36. package/docs/ARCHITECTURE.md +336 -0
  37. package/docs/FEATURE_COMPARISON.md +178 -0
  38. package/docs/MIGRATION.md +354 -0
  39. package/docs/README.md +101 -0
  40. package/docs/eval-01-terminal-widths.md +519 -0
  41. package/docs/guide-01-configuration.md +277 -0
  42. package/docs/guide-02-troubleshooting.md +416 -0
  43. package/docs/guide-03-performance.md +183 -0
  44. package/docs/prd-01-typescript-perf-optimization.md +480 -0
  45. package/docs/research-01-sandbox-detection.md +169 -0
  46. package/docs/research-02-competitive-analysis.md +226 -0
  47. package/docs/research-03-platform-analysis.md +142 -0
  48. package/package.json +89 -0
@@ -0,0 +1,473 @@
1
+ {
2
+ "inputs": {
3
+ "src/core/config.ts": {
4
+ "bytes": 6754,
5
+ "imports": [
6
+ {
7
+ "path": "zod",
8
+ "kind": "import-statement",
9
+ "external": true
10
+ },
11
+ {
12
+ "path": "fs",
13
+ "kind": "import-statement",
14
+ "external": true
15
+ },
16
+ {
17
+ "path": "os",
18
+ "kind": "import-statement",
19
+ "external": true
20
+ },
21
+ {
22
+ "path": "path",
23
+ "kind": "import-statement",
24
+ "external": true
25
+ },
26
+ {
27
+ "path": "yaml",
28
+ "kind": "import-statement",
29
+ "external": true
30
+ }
31
+ ],
32
+ "format": "esm"
33
+ },
34
+ "src/core/security.ts": {
35
+ "bytes": 4599,
36
+ "imports": [
37
+ {
38
+ "path": "./config.js",
39
+ "kind": "import-statement",
40
+ "external": true
41
+ },
42
+ {
43
+ "path": "fs/promises",
44
+ "kind": "dynamic-import",
45
+ "external": true
46
+ },
47
+ {
48
+ "path": "fs",
49
+ "kind": "dynamic-import",
50
+ "external": true
51
+ }
52
+ ],
53
+ "format": "esm"
54
+ },
55
+ "src/core/cache.ts": {
56
+ "bytes": 7063,
57
+ "imports": [
58
+ {
59
+ "path": "fs/promises",
60
+ "kind": "import-statement",
61
+ "external": true
62
+ },
63
+ {
64
+ "path": "fs",
65
+ "kind": "import-statement",
66
+ "external": true
67
+ },
68
+ {
69
+ "path": "path",
70
+ "kind": "import-statement",
71
+ "external": true
72
+ },
73
+ {
74
+ "path": "./config.js",
75
+ "kind": "import-statement",
76
+ "external": true
77
+ },
78
+ {
79
+ "path": "fs/promises",
80
+ "kind": "dynamic-import",
81
+ "external": true
82
+ },
83
+ {
84
+ "path": "fs/promises",
85
+ "kind": "dynamic-import",
86
+ "external": true
87
+ },
88
+ {
89
+ "path": "fs/promises",
90
+ "kind": "dynamic-import",
91
+ "external": true
92
+ },
93
+ {
94
+ "path": "child_process",
95
+ "kind": "dynamic-import",
96
+ "external": true
97
+ },
98
+ {
99
+ "path": "util",
100
+ "kind": "dynamic-import",
101
+ "external": true
102
+ }
103
+ ],
104
+ "format": "esm"
105
+ },
106
+ "src/git/native.ts": {
107
+ "bytes": 3861,
108
+ "imports": [
109
+ {
110
+ "path": "child_process",
111
+ "kind": "import-statement",
112
+ "external": true
113
+ }
114
+ ],
115
+ "format": "esm"
116
+ },
117
+ "src/git/status.ts": {
118
+ "bytes": 8767,
119
+ "imports": [
120
+ {
121
+ "path": "../core/config.js",
122
+ "kind": "import-statement",
123
+ "external": true
124
+ },
125
+ {
126
+ "path": "src/core/cache.ts",
127
+ "kind": "import-statement",
128
+ "original": "../core/cache.js"
129
+ },
130
+ {
131
+ "path": "src/git/native.ts",
132
+ "kind": "import-statement",
133
+ "original": "./native.js"
134
+ }
135
+ ],
136
+ "format": "esm"
137
+ },
138
+ "src/ui/symbols.ts": {
139
+ "bytes": 10486,
140
+ "imports": [
141
+ {
142
+ "path": "../core/config.js",
143
+ "kind": "import-statement",
144
+ "external": true
145
+ },
146
+ {
147
+ "path": "child_process",
148
+ "kind": "dynamic-import",
149
+ "external": true
150
+ },
151
+ {
152
+ "path": "util",
153
+ "kind": "dynamic-import",
154
+ "external": true
155
+ },
156
+ {
157
+ "path": "fs/promises",
158
+ "kind": "dynamic-import",
159
+ "external": true
160
+ },
161
+ {
162
+ "path": "os",
163
+ "kind": "dynamic-import",
164
+ "external": true
165
+ },
166
+ {
167
+ "path": "child_process",
168
+ "kind": "dynamic-import",
169
+ "external": true
170
+ },
171
+ {
172
+ "path": "util",
173
+ "kind": "dynamic-import",
174
+ "external": true
175
+ }
176
+ ],
177
+ "format": "esm"
178
+ },
179
+ "src/ui/width.ts": {
180
+ "bytes": 8824,
181
+ "imports": [
182
+ {
183
+ "path": "../core/config.js",
184
+ "kind": "import-statement",
185
+ "external": true
186
+ },
187
+ {
188
+ "path": "child_process",
189
+ "kind": "dynamic-import",
190
+ "external": true
191
+ },
192
+ {
193
+ "path": "util",
194
+ "kind": "dynamic-import",
195
+ "external": true
196
+ },
197
+ {
198
+ "path": "child_process",
199
+ "kind": "dynamic-import",
200
+ "external": true
201
+ },
202
+ {
203
+ "path": "util",
204
+ "kind": "dynamic-import",
205
+ "external": true
206
+ }
207
+ ],
208
+ "format": "esm"
209
+ },
210
+ "src/env/context.ts": {
211
+ "bytes": 9791,
212
+ "imports": [
213
+ {
214
+ "path": "../core/config.js",
215
+ "kind": "import-statement",
216
+ "external": true
217
+ },
218
+ {
219
+ "path": "src/core/cache.ts",
220
+ "kind": "import-statement",
221
+ "original": "../core/cache.js"
222
+ },
223
+ {
224
+ "path": "../ui/symbols.js",
225
+ "kind": "import-statement",
226
+ "external": true
227
+ },
228
+ {
229
+ "path": "child_process",
230
+ "kind": "dynamic-import",
231
+ "external": true
232
+ },
233
+ {
234
+ "path": "util",
235
+ "kind": "dynamic-import",
236
+ "external": true
237
+ }
238
+ ],
239
+ "format": "esm"
240
+ },
241
+ "src/index.ts": {
242
+ "bytes": 15562,
243
+ "imports": [
244
+ {
245
+ "path": "fs",
246
+ "kind": "import-statement",
247
+ "external": true
248
+ },
249
+ {
250
+ "path": "src/core/config.ts",
251
+ "kind": "import-statement",
252
+ "original": "./core/config.js"
253
+ },
254
+ {
255
+ "path": "src/core/security.ts",
256
+ "kind": "import-statement",
257
+ "original": "./core/security.js"
258
+ },
259
+ {
260
+ "path": "src/core/cache.ts",
261
+ "kind": "import-statement",
262
+ "original": "./core/cache.js"
263
+ },
264
+ {
265
+ "path": "src/git/status.ts",
266
+ "kind": "import-statement",
267
+ "original": "./git/status.js"
268
+ },
269
+ {
270
+ "path": "src/ui/symbols.ts",
271
+ "kind": "import-statement",
272
+ "original": "./ui/symbols.js"
273
+ },
274
+ {
275
+ "path": "src/ui/width.ts",
276
+ "kind": "import-statement",
277
+ "original": "./ui/width.js"
278
+ },
279
+ {
280
+ "path": "src/env/context.ts",
281
+ "kind": "import-statement",
282
+ "original": "./env/context.js"
283
+ }
284
+ ],
285
+ "format": "esm"
286
+ }
287
+ },
288
+ "outputs": {
289
+ "dist/index.bundle.js": {
290
+ "imports": [
291
+ {
292
+ "path": "fs",
293
+ "kind": "import-statement",
294
+ "external": true
295
+ },
296
+ {
297
+ "path": "zod",
298
+ "kind": "import-statement",
299
+ "external": true
300
+ },
301
+ {
302
+ "path": "fs",
303
+ "kind": "import-statement",
304
+ "external": true
305
+ },
306
+ {
307
+ "path": "os",
308
+ "kind": "import-statement",
309
+ "external": true
310
+ },
311
+ {
312
+ "path": "path",
313
+ "kind": "import-statement",
314
+ "external": true
315
+ },
316
+ {
317
+ "path": "yaml",
318
+ "kind": "import-statement",
319
+ "external": true
320
+ },
321
+ {
322
+ "path": "fs/promises",
323
+ "kind": "dynamic-import",
324
+ "external": true
325
+ },
326
+ {
327
+ "path": "fs",
328
+ "kind": "dynamic-import",
329
+ "external": true
330
+ },
331
+ {
332
+ "path": "fs/promises",
333
+ "kind": "import-statement",
334
+ "external": true
335
+ },
336
+ {
337
+ "path": "fs",
338
+ "kind": "import-statement",
339
+ "external": true
340
+ },
341
+ {
342
+ "path": "path",
343
+ "kind": "import-statement",
344
+ "external": true
345
+ },
346
+ {
347
+ "path": "fs/promises",
348
+ "kind": "dynamic-import",
349
+ "external": true
350
+ },
351
+ {
352
+ "path": "fs/promises",
353
+ "kind": "dynamic-import",
354
+ "external": true
355
+ },
356
+ {
357
+ "path": "fs/promises",
358
+ "kind": "dynamic-import",
359
+ "external": true
360
+ },
361
+ {
362
+ "path": "child_process",
363
+ "kind": "dynamic-import",
364
+ "external": true
365
+ },
366
+ {
367
+ "path": "util",
368
+ "kind": "dynamic-import",
369
+ "external": true
370
+ },
371
+ {
372
+ "path": "child_process",
373
+ "kind": "import-statement",
374
+ "external": true
375
+ },
376
+ {
377
+ "path": "child_process",
378
+ "kind": "dynamic-import",
379
+ "external": true
380
+ },
381
+ {
382
+ "path": "util",
383
+ "kind": "dynamic-import",
384
+ "external": true
385
+ },
386
+ {
387
+ "path": "fs/promises",
388
+ "kind": "dynamic-import",
389
+ "external": true
390
+ },
391
+ {
392
+ "path": "os",
393
+ "kind": "dynamic-import",
394
+ "external": true
395
+ },
396
+ {
397
+ "path": "child_process",
398
+ "kind": "dynamic-import",
399
+ "external": true
400
+ },
401
+ {
402
+ "path": "util",
403
+ "kind": "dynamic-import",
404
+ "external": true
405
+ },
406
+ {
407
+ "path": "child_process",
408
+ "kind": "dynamic-import",
409
+ "external": true
410
+ },
411
+ {
412
+ "path": "util",
413
+ "kind": "dynamic-import",
414
+ "external": true
415
+ },
416
+ {
417
+ "path": "child_process",
418
+ "kind": "dynamic-import",
419
+ "external": true
420
+ },
421
+ {
422
+ "path": "util",
423
+ "kind": "dynamic-import",
424
+ "external": true
425
+ },
426
+ {
427
+ "path": "child_process",
428
+ "kind": "dynamic-import",
429
+ "external": true
430
+ },
431
+ {
432
+ "path": "util",
433
+ "kind": "dynamic-import",
434
+ "external": true
435
+ }
436
+ ],
437
+ "exports": [
438
+ "main"
439
+ ],
440
+ "entryPoint": "src/index.ts",
441
+ "inputs": {
442
+ "src/index.ts": {
443
+ "bytesInOutput": 3413
444
+ },
445
+ "src/core/config.ts": {
446
+ "bytesInOutput": 2737
447
+ },
448
+ "src/core/security.ts": {
449
+ "bytesInOutput": 1027
450
+ },
451
+ "src/core/cache.ts": {
452
+ "bytesInOutput": 2236
453
+ },
454
+ "src/git/native.ts": {
455
+ "bytesInOutput": 1420
456
+ },
457
+ "src/git/status.ts": {
458
+ "bytesInOutput": 2076
459
+ },
460
+ "src/ui/symbols.ts": {
461
+ "bytesInOutput": 3618
462
+ },
463
+ "src/ui/width.ts": {
464
+ "bytesInOutput": 1755
465
+ },
466
+ "src/env/context.ts": {
467
+ "bytesInOutput": 3027
468
+ }
469
+ },
470
+ "bytes": 21349
471
+ }
472
+ }
473
+ }
@@ -0,0 +1,31 @@
1
+ import { Config } from '../core/config.js';
2
+ /**
3
+ * Symbol configuration interface
4
+ */
5
+ export interface SymbolSet {
6
+ git: string;
7
+ model: string;
8
+ contextWindow: string;
9
+ staged: string;
10
+ conflict: string;
11
+ stashed: string;
12
+ ahead: string;
13
+ behind: string;
14
+ diverged: string;
15
+ renamed: string;
16
+ deleted: string;
17
+ }
18
+ /**
19
+ * Detect Nerd Font support and return appropriate symbols (with caching)
20
+ */
21
+ export declare function detectSymbols(config: Config): Promise<SymbolSet>;
22
+ /**
23
+ * Get environment symbols with version information
24
+ */
25
+ export declare function getEnvironmentSymbols(symbolSet: SymbolSet): {
26
+ [key: string]: string;
27
+ };
28
+ /**
29
+ * Test if symbols can be displayed properly
30
+ */
31
+ export declare function testSymbolDisplay(_symbols: SymbolSet): Promise<boolean>;