git-coco 0.50.0 → 0.51.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 CHANGED
@@ -33,7 +33,7 @@ type LogInkThemeConfig = {
33
33
  };
34
34
 
35
35
  type LLMProvider = 'openai' | 'ollama' | 'anthropic';
36
- type DynamicModelTask = 'summarize' | 'commit' | 'changelog' | 'review' | 'recap' | 'repair' | 'largeDiff';
36
+ type DynamicModelTask = 'summarize' | 'commit' | 'commitSplit' | 'changelog' | 'review' | 'recap' | 'repair' | 'largeDiff';
37
37
  type DynamicModelPreference = 'cost' | 'balanced' | 'quality';
38
38
  type OpenAIModel = TiktokenModel | 'gpt-4o-mini' | 'gpt-4o' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano';
39
39
  type AnthropicModel = 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001' | 'claude-haiku-4-5' | 'claude-opus-4-7' | 'claude-sonnet-4-0' | 'claude-3-7-sonnet-latest' | 'claude-3-5-haiku-latest' | 'claude-3-5-sonnet-latest' | 'claude-3-5-sonnet-20241022' | 'claude-3-5-sonnet-20240620' | 'claude-3-opus-20240229' | 'claude-3-sonnet-20240229' | 'claude-3-haiku-20240307';
@@ -304,6 +304,20 @@ type BaseConfig = {
304
304
  * idle for >10s. Off by default so power users aren't distracted.
305
305
  */
306
306
  idleTips?: boolean;
307
+ /**
308
+ * Group adjacent commits in the history surface under shared section
309
+ * headers (`── Today ──`, `── Yesterday ──`, `── April 2026 ──`) and
310
+ * drop the per-row date column in favor of the headers. On by default
311
+ * because the bucketed view gives stronger temporal orientation at
312
+ * a glance and the freed cells go to the commit subject. Flip off if
313
+ * you prefer a date column on every row.
314
+ *
315
+ * Bucketing automatically suppresses itself while a search filter is
316
+ * active (results aren't chronological), regardless of this setting.
317
+ *
318
+ * @default true
319
+ */
320
+ dateBucketing?: boolean;
307
321
  };
308
322
  };
309
323
  type ConfigWithServiceObject = BaseConfig & Partial<BaseCommandOptions> & {
@@ -346,11 +360,11 @@ interface CacheOptions extends BaseCommandOptions {
346
360
  }
347
361
  type CacheArgv = Arguments<CacheOptions>;
348
362
 
349
- declare const _default$7: {
363
+ declare const _default$9: {
350
364
  command: string;
351
365
  desc: string;
352
366
  builder: (yargs: yargs.Argv) => yargs.Argv<{
353
- subcommand: "clear" | "info" | "parsers" | "prefetch" | "clear-parsers" | undefined;
367
+ subcommand: "clear" | "info" | "parsers" | "prefetch" | "clear-parsers" | "clear-github" | undefined;
354
368
  } & {
355
369
  languages: string[] | undefined;
356
370
  }>;
@@ -369,7 +383,7 @@ interface ChangelogOptions extends BaseCommandOptions {
369
383
  }
370
384
  type ChangelogArgv = Arguments<ChangelogOptions>;
371
385
 
372
- declare const _default$6: {
386
+ declare const _default$8: {
373
387
  command: string;
374
388
  desc: string;
375
389
  builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
@@ -392,7 +406,7 @@ interface CommitOptions extends BaseCommandOptions {
392
406
  }
393
407
  type CommitArgv = Arguments<CommitOptions>;
394
408
 
395
- declare const _default$5: {
409
+ declare const _default$7: {
396
410
  command: string;
397
411
  desc: string;
398
412
  builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
@@ -405,7 +419,7 @@ interface DoctorOptions extends BaseCommandOptions {
405
419
  }
406
420
  type DoctorArgv = Arguments<DoctorOptions>;
407
421
 
408
- declare const _default$4: {
422
+ declare const _default$6: {
409
423
  command: string;
410
424
  desc: string;
411
425
  builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
@@ -414,7 +428,7 @@ declare const _default$4: {
414
428
 
415
429
  type InstallationScope = 'global' | 'project';
416
430
 
417
- declare const _default$3: {
431
+ declare const _default$5: {
418
432
  command: string;
419
433
  desc: string;
420
434
  builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
@@ -444,6 +458,37 @@ declare const _default$3: {
444
458
  options: Record<string, yargs.Options>;
445
459
  };
446
460
 
461
+ interface IssuesOptions extends BaseCommandOptions {
462
+ state?: 'open' | 'closed' | 'all';
463
+ assignee?: string;
464
+ author?: string;
465
+ label?: string;
466
+ search?: string;
467
+ /** Convenience flag → `--assignee @me`. */
468
+ mine?: boolean;
469
+ limit?: number;
470
+ /** Print machine-readable JSON instead of the formatted table. */
471
+ json?: boolean;
472
+ /**
473
+ * Force a fresh `gh` call even if the cached entry is within
474
+ * the TTL. The fresh result still gets written back to cache.
475
+ */
476
+ refresh?: boolean;
477
+ /**
478
+ * Disable cache entirely — skip read AND write. Useful when
479
+ * piping into tooling that manages its own freshness.
480
+ */
481
+ noCache?: boolean;
482
+ }
483
+ type IssuesArgv = Arguments<IssuesOptions>;
484
+
485
+ declare const _default$4: {
486
+ command: string;
487
+ desc: string;
488
+ builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
489
+ handler: (argv: IssuesArgv) => Promise<void>;
490
+ };
491
+
447
492
  type LogFormat = 'table' | 'json';
448
493
  type LogView = 'compact' | 'graph' | 'full';
449
494
  interface LogOptions extends BaseCommandOptions {
@@ -462,7 +507,7 @@ interface LogOptions extends BaseCommandOptions {
462
507
  }
463
508
  type LogArgv = Arguments<LogOptions>;
464
509
 
465
- declare const _default$2: {
510
+ declare const _default$3: {
466
511
  command: string;
467
512
  desc: string;
468
513
  builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
@@ -470,6 +515,40 @@ declare const _default$2: {
470
515
  options: Record<string, yargs.Options>;
471
516
  };
472
517
 
518
+ interface PrsOptions extends BaseCommandOptions {
519
+ state?: 'open' | 'closed' | 'merged' | 'all';
520
+ assignee?: string;
521
+ author?: string;
522
+ label?: string;
523
+ search?: string;
524
+ base?: string;
525
+ head?: string;
526
+ draft?: boolean;
527
+ /** Convenience flag → `--assignee @me`. */
528
+ mine?: boolean;
529
+ limit?: number;
530
+ /** Print machine-readable JSON instead of the formatted table. */
531
+ json?: boolean;
532
+ /**
533
+ * Force a fresh `gh` call even if the cached entry is within
534
+ * the TTL. The fresh result still gets written back to cache.
535
+ */
536
+ refresh?: boolean;
537
+ /**
538
+ * Disable cache entirely — skip read AND write. Useful when
539
+ * piping into tooling that manages its own freshness.
540
+ */
541
+ noCache?: boolean;
542
+ }
543
+ type PrsArgv = Arguments<PrsOptions>;
544
+
545
+ declare const _default$2: {
546
+ command: string;
547
+ desc: string;
548
+ builder: (yargs: yargs.Argv) => yargs.Argv<yargs.Omit<{}, string> & yargs.InferredOptionTypes<Record<string, yargs.Options>>>;
549
+ handler: (argv: PrsArgv) => Promise<void>;
550
+ };
551
+
473
552
  interface RecapOptions extends BaseCommandOptions {
474
553
  yesterday?: boolean;
475
554
  'last-week'?: boolean;
@@ -686,5 +765,5 @@ declare namespace types_d {
686
765
  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 };
687
766
  }
688
767
 
689
- export { _default$7 as cache, _default$6 as changelog, _default$5 as commit, _default$4 as doctor, _default$3 as init, _default$2 as log, _default$1 as recap, types_d as types, _default as ui };
768
+ export { _default$9 as cache, _default$8 as changelog, _default$7 as commit, _default$6 as doctor, _default$5 as init, _default$4 as issues, _default$3 as log, _default$2 as prs, _default$1 as recap, types_d as types, _default as ui };
690
769
  export type { Config$1 as Config };