git-coco 0.54.1 → 0.56.0
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.
- package/dist/index.d.ts +62 -12
- package/dist/index.esm.mjs +5780 -849
- package/dist/index.js +5779 -847
- package/package.json +9 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { Color } from 'chalk';
|
|
|
10
10
|
import { TiktokenModel as TiktokenModel$1 } from 'tiktoken';
|
|
11
11
|
|
|
12
12
|
type LogInkBorderStyle = 'round' | 'single' | 'classic';
|
|
13
|
-
type LogInkThemePreset = 'default' | 'monochrome' | 'catppuccin' | 'gruvbox';
|
|
13
|
+
type LogInkThemePreset = 'default' | 'monochrome' | 'catppuccin' | 'gruvbox' | 'dracula' | 'nord' | 'solarized-dark' | 'tokyo-night' | 'one-dark' | 'rose-pine' | 'kanagawa' | 'everforest' | 'monokai' | 'synthwave' | 'ayu-dark' | 'palenight' | 'github-dark' | 'horizon' | 'nightfox' | 'carbonfox' | 'tokyonight-storm' | 'catppuccin-latte' | 'solarized-light' | 'github-light' | 'iceberg' | 'material-ocean' | 'moonlight' | 'poimandres' | 'vitesse-dark' | 'vesper' | 'flexoki' | 'mellow';
|
|
14
14
|
type LogInkThemeColors = {
|
|
15
15
|
accent?: string;
|
|
16
16
|
border?: string;
|
|
@@ -350,6 +350,36 @@ type BaseConfig = {
|
|
|
350
350
|
*/
|
|
351
351
|
dateBucketing?: boolean;
|
|
352
352
|
};
|
|
353
|
+
/**
|
|
354
|
+
* Multi-repo workspace surface settings (`coco workspace`).
|
|
355
|
+
*/
|
|
356
|
+
workspace?: {
|
|
357
|
+
/**
|
|
358
|
+
* Directories to scan for git repositories. Each entry may use a
|
|
359
|
+
* `~` prefix; resolved against the user's home directory. Defaults
|
|
360
|
+
* to `['~/code']` when omitted.
|
|
361
|
+
*
|
|
362
|
+
* @default ['~/code']
|
|
363
|
+
*/
|
|
364
|
+
roots?: string[];
|
|
365
|
+
/**
|
|
366
|
+
* Repositories outside the configured roots that should still
|
|
367
|
+
* appear in the workspace view. Useful for one-off projects kept
|
|
368
|
+
* somewhere other than the main `code` tree. Entries may use a
|
|
369
|
+
* `~` prefix.
|
|
370
|
+
*
|
|
371
|
+
* @default []
|
|
372
|
+
*/
|
|
373
|
+
knownRepos?: string[];
|
|
374
|
+
/**
|
|
375
|
+
* Maximum depth to recurse into each configured root when looking
|
|
376
|
+
* for `.git/` directories. Stops descending as soon as a directory
|
|
377
|
+
* is identified as a repo.
|
|
378
|
+
*
|
|
379
|
+
* @default 3
|
|
380
|
+
*/
|
|
381
|
+
maxDepth?: number;
|
|
382
|
+
};
|
|
353
383
|
};
|
|
354
384
|
type ConfigWithServiceObject = BaseConfig & Partial<BaseCommandOptions> & {
|
|
355
385
|
service: LLMService;
|
|
@@ -391,7 +421,7 @@ interface CacheOptions extends BaseCommandOptions {
|
|
|
391
421
|
}
|
|
392
422
|
type CacheArgv = Arguments<CacheOptions>;
|
|
393
423
|
|
|
394
|
-
declare const _default$
|
|
424
|
+
declare const _default$a: {
|
|
395
425
|
command: string;
|
|
396
426
|
desc: string;
|
|
397
427
|
builder: (yargs: yargs.Argv) => yargs.Argv<{
|
|
@@ -414,7 +444,7 @@ interface ChangelogOptions extends BaseCommandOptions {
|
|
|
414
444
|
}
|
|
415
445
|
type ChangelogArgv = Arguments<ChangelogOptions>;
|
|
416
446
|
|
|
417
|
-
declare const _default$
|
|
447
|
+
declare const _default$9: {
|
|
418
448
|
command: string;
|
|
419
449
|
desc: string;
|
|
420
450
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -444,7 +474,7 @@ interface CommitOptions extends BaseCommandOptions {
|
|
|
444
474
|
}
|
|
445
475
|
type CommitArgv = Arguments<CommitOptions>;
|
|
446
476
|
|
|
447
|
-
declare const _default$
|
|
477
|
+
declare const _default$8: {
|
|
448
478
|
command: string;
|
|
449
479
|
desc: string;
|
|
450
480
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -457,7 +487,7 @@ interface DoctorOptions extends BaseCommandOptions {
|
|
|
457
487
|
}
|
|
458
488
|
type DoctorArgv = Arguments<DoctorOptions>;
|
|
459
489
|
|
|
460
|
-
declare const _default$
|
|
490
|
+
declare const _default$7: {
|
|
461
491
|
command: string;
|
|
462
492
|
desc: string;
|
|
463
493
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -466,7 +496,7 @@ declare const _default$6: {
|
|
|
466
496
|
|
|
467
497
|
type InstallationScope = 'global' | 'project';
|
|
468
498
|
|
|
469
|
-
declare const _default$
|
|
499
|
+
declare const _default$6: {
|
|
470
500
|
command: string;
|
|
471
501
|
desc: string;
|
|
472
502
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -520,7 +550,7 @@ interface IssuesOptions extends BaseCommandOptions {
|
|
|
520
550
|
}
|
|
521
551
|
type IssuesArgv = Arguments<IssuesOptions>;
|
|
522
552
|
|
|
523
|
-
declare const _default$
|
|
553
|
+
declare const _default$5: {
|
|
524
554
|
command: string;
|
|
525
555
|
desc: string;
|
|
526
556
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -545,7 +575,7 @@ interface LogOptions extends BaseCommandOptions {
|
|
|
545
575
|
}
|
|
546
576
|
type LogArgv = Arguments<LogOptions>;
|
|
547
577
|
|
|
548
|
-
declare const _default$
|
|
578
|
+
declare const _default$4: {
|
|
549
579
|
command: string;
|
|
550
580
|
desc: string;
|
|
551
581
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -580,7 +610,7 @@ interface PrsOptions extends BaseCommandOptions {
|
|
|
580
610
|
}
|
|
581
611
|
type PrsArgv = Arguments<PrsOptions>;
|
|
582
612
|
|
|
583
|
-
declare const _default$
|
|
613
|
+
declare const _default$3: {
|
|
584
614
|
command: string;
|
|
585
615
|
desc: string;
|
|
586
616
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -597,7 +627,7 @@ interface RecapOptions extends BaseCommandOptions {
|
|
|
597
627
|
}
|
|
598
628
|
type RecapArgv = Arguments<RecapOptions>;
|
|
599
629
|
|
|
600
|
-
declare const _default$
|
|
630
|
+
declare const _default$2: {
|
|
601
631
|
command: string;
|
|
602
632
|
desc: string;
|
|
603
633
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -616,7 +646,7 @@ interface UiOptions extends BaseCommandOptions {
|
|
|
616
646
|
}
|
|
617
647
|
type UiArgv = Arguments<UiOptions>;
|
|
618
648
|
|
|
619
|
-
declare const _default: {
|
|
649
|
+
declare const _default$1: {
|
|
620
650
|
command: string;
|
|
621
651
|
desc: string;
|
|
622
652
|
builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
|
|
@@ -624,6 +654,26 @@ declare const _default: {
|
|
|
624
654
|
options: Record<string, yargs.Options>;
|
|
625
655
|
};
|
|
626
656
|
|
|
657
|
+
interface WorkspaceOptions extends BaseCommandOptions {
|
|
658
|
+
/**
|
|
659
|
+
* Override `workspace.roots` from config. Repeatable.
|
|
660
|
+
*/
|
|
661
|
+
root?: string | string[];
|
|
662
|
+
/** Recursion depth into each root. */
|
|
663
|
+
maxDepth?: number;
|
|
664
|
+
/** TUI theme preset. */
|
|
665
|
+
theme?: LogInkThemePreset;
|
|
666
|
+
}
|
|
667
|
+
type WorkspaceArgv = Arguments<WorkspaceOptions>;
|
|
668
|
+
|
|
669
|
+
declare const _default: {
|
|
670
|
+
command: string[];
|
|
671
|
+
desc: string;
|
|
672
|
+
builder: (yargs: yargs.Argv) => yargs.Argv;
|
|
673
|
+
handler: (argv: WorkspaceArgv) => Promise<void>;
|
|
674
|
+
options: Record<string, yargs.Options>;
|
|
675
|
+
};
|
|
676
|
+
|
|
627
677
|
/**
|
|
628
678
|
* Creates and configures an LLM instance based on the provider and configuration.
|
|
629
679
|
*
|
|
@@ -812,5 +862,5 @@ declare namespace types_d {
|
|
|
812
862
|
export type { types_d_BaseParserInput as BaseParserInput, types_d_BaseParserOptions as BaseParserOptions, types_d_CommandHandler as CommandHandler, types_d_CommitLogParserInput as CommitLogParserInput, types_d_ConfirmMessage as ConfirmMessage, types_d_ConfirmMessageCallback as ConfirmMessageCallback, types_d_DiffNode as DiffNode, types_d_DirectoryDiff as DirectoryDiff, types_d_FileChange as FileChange, types_d_FileChangeParserInput as FileChangeParserInput, types_d_FileChangeStatus as FileChangeStatus, types_d_FileDiff as FileDiff, types_d_GetChangesResult as GetChangesResult };
|
|
813
863
|
}
|
|
814
864
|
|
|
815
|
-
export { _default$
|
|
865
|
+
export { _default$a as cache, _default$9 as changelog, _default$8 as commit, _default$7 as doctor, _default$6 as init, _default$5 as issues, _default$4 as log, _default$3 as prs, _default$2 as recap, types_d as types, _default$1 as ui, _default as workspace };
|
|
816
866
|
export type { Config$1 as Config };
|