git-coco 0.3.2 → 0.3.4

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 (38) hide show
  1. package/dist/commands/commit/handler.d.ts +3 -0
  2. package/dist/commands/commit/index.d.ts +10 -0
  3. package/dist/commands/commit/options.d.ts +15 -0
  4. package/dist/commands/types.d.ts +14 -0
  5. package/dist/index.d.ts +1 -3
  6. package/dist/index.esm.mjs +588 -486
  7. package/dist/index.esm.mjs.map +1 -1
  8. package/dist/index.js +586 -485
  9. package/dist/lib/config/types.d.ts +1 -1
  10. package/dist/lib/langchain/executeChain.d.ts +6 -0
  11. package/dist/lib/langchain/prompts/commitDefault.d.ts +1 -1
  12. package/dist/lib/langchain/prompts/summarize.d.ts +1 -1
  13. package/dist/lib/langchain/utils.d.ts +4 -7
  14. package/dist/lib/parsers/default/index.d.ts +2 -2
  15. package/dist/lib/parsers/default/utils/createDiffTree.d.ts +1 -0
  16. package/dist/lib/parsers/noResult.d.ts +4 -2
  17. package/dist/lib/simple-git/getChanges.d.ts +7 -4
  18. package/dist/lib/simple-git/getChangesByCommit.d.ts +13 -0
  19. package/dist/lib/simple-git/getDiff.d.ts +1 -1
  20. package/dist/lib/simple-git/getDiffFromCommmit.d.ts +10 -0
  21. package/dist/lib/simple-git/getStatus.d.ts +2 -2
  22. package/dist/lib/simple-git/getSummaryText.d.ts +2 -2
  23. package/dist/lib/simple-git/helpers.d.ts +6 -0
  24. package/dist/lib/types.d.ts +21 -10
  25. package/dist/lib/ui/editPrompt.d.ts +2 -0
  26. package/dist/lib/ui/editResult.d.ts +2 -0
  27. package/dist/lib/ui/generateAndReviewLoop.d.ts +15 -0
  28. package/dist/lib/ui/getUserReviewDecision.d.ts +2 -0
  29. package/dist/lib/ui/handleResult.d.ts +5 -0
  30. package/dist/lib/ui/helpers.d.ts +3 -0
  31. package/dist/lib/ui/logResult.d.ts +1 -0
  32. package/dist/lib/ui/logSuccess.d.ts +1 -0
  33. package/dist/stats.html +1 -1
  34. package/package.json +5 -5
  35. package/dist/commands/commit.d.ts +0 -16
  36. package/dist/lib/langchain/chains/llm.d.ts +0 -6
  37. package/dist/lib/ui.d.ts +0 -2
  38. package/dist/types.d.ts +0 -10
@@ -2,7 +2,7 @@ export interface Config {
2
2
  /**
3
3
  * The LLM model to use for generating results.
4
4
  *
5
- * @default 'openai/gpt-3.5-turbo'
5
+ * @default 'openai/gpt-4'
6
6
  *
7
7
  * @example 'openai/gpt-4'
8
8
  * @example 'openai/gpt-3.5-turbo'
@@ -0,0 +1,6 @@
1
+ import { LLMChainInput } from 'langchain/chains';
2
+ type ExecuteChainInput = {
3
+ variables: Record<string, unknown>;
4
+ } & LLMChainInput;
5
+ export declare const executeChain: ({ llm, prompt, variables }: ExecuteChainInput) => Promise<any>;
6
+ export {};
@@ -1,3 +1,3 @@
1
1
  import { PromptTemplate } from 'langchain/prompts';
2
2
  export declare const inputVariables: string[];
3
- export declare const COMMIT_PROMPT: PromptTemplate;
3
+ export declare const COMMIT_PROMPT: PromptTemplate<any, any>;
@@ -1,3 +1,3 @@
1
1
  import { PromptTemplate } from 'langchain/prompts';
2
2
  export declare const inputVariables: string[];
3
- export declare const SUMMARIZE_PROMPT: PromptTemplate;
3
+ export declare const SUMMARIZE_PROMPT: PromptTemplate<any, any>;
@@ -4,24 +4,21 @@ import { SummarizationChainParams } from 'langchain/chains';
4
4
  import { BaseLLMParams } from 'langchain/llms/base';
5
5
  import { AzureOpenAIInput, OpenAIInput, OpenAI } from 'langchain/llms/openai';
6
6
  import { RecursiveCharacterTextSplitter, RecursiveCharacterTextSplitterParams } from 'langchain/text_splitter';
7
- import { ConfigurationParameters } from 'openai';
8
- import { BaseCommandOptions } from '../../types';
7
+ import { BaseCommandOptions } from '../../commands/types';
9
8
  /**
10
9
  * Get LLM Model Based on Configuration
11
10
  * @param fields
12
11
  * @param configuration
13
12
  * @returns LLM Model
14
13
  */
15
- export declare function getModel(name: string, key: string, fields?: (Partial<OpenAIInput> & Partial<AzureOpenAIInput> & BaseLLMParams & {
16
- configuration?: ConfigurationParameters | undefined;
17
- }) | undefined, configuration?: ConfigurationParameters | undefined): OpenAI | HuggingFaceInference;
14
+ export declare function getModel(name: string, key: string, fields?: (Partial<OpenAIInput> & Partial<AzureOpenAIInput> & BaseLLMParams) | undefined): OpenAI | HuggingFaceInference;
18
15
  /**
19
16
  * Retrieve appropriate API key based on selected model
20
17
  * @param name
21
18
  * @param options
22
19
  * @returns
23
20
  */
24
- export declare function getModelAPIKey(name: string, options: BaseCommandOptions): string;
21
+ export declare function getApiKeyForModel(name: string, options: BaseCommandOptions): string;
25
22
  /**
26
23
  * Get Recursive Character Text Splitter
27
24
  * @param options
@@ -40,7 +37,7 @@ type CreatePromptInput = {
40
37
  variables: string[];
41
38
  fallback?: PromptTemplate;
42
39
  };
43
- export declare function getPrompt({ template, variables, fallback }: CreatePromptInput): PromptTemplate;
40
+ export declare function getPrompt({ template, variables, fallback }: CreatePromptInput): PromptTemplate<any, any>;
44
41
  /**
45
42
  * Verify template string contains all required input variables
46
43
  * @param text template string
@@ -1,2 +1,2 @@
1
- import { BaseParser } from '../../types';
2
- export declare const fileChangeParser: BaseParser;
1
+ import { FileChangeParserInput } from '../../types';
2
+ export declare function fileChangeParser({ changes, commit, options: { tokenizer, git, model, logger }, }: FileChangeParserInput): Promise<string>;
@@ -8,5 +8,6 @@ export declare class DiffTreeNode {
8
8
  addChild(part: string, node: DiffTreeNode): void;
9
9
  getChild(part: string): DiffTreeNode | undefined;
10
10
  getPath(): string;
11
+ print(indentation?: number): string;
11
12
  }
12
13
  export declare const createDiffTree: (changes: FileChange[]) => DiffTreeNode;
@@ -1,6 +1,8 @@
1
1
  import { Logger } from '../utils/logger';
2
2
  import { SimpleGit } from 'simple-git';
3
- export declare const noResult: ({ git, logger }: {
3
+ type NoResultInput = {
4
4
  git: SimpleGit;
5
5
  logger: Logger;
6
- }) => Promise<void>;
6
+ };
7
+ export declare function noResult({ git, logger }: NoResultInput): Promise<void>;
8
+ export {};
@@ -1,12 +1,15 @@
1
1
  import { SimpleGit } from 'simple-git';
2
2
  import { FileChange } from '../types';
3
- export type GetChangesArgs = {
4
- ignoredFiles?: string[];
5
- ignoredExtensions?: string[];
3
+ export type GetChangesInput = {
4
+ git: SimpleGit;
5
+ options?: {
6
+ ignoredFiles?: string[];
7
+ ignoredExtensions?: string[];
8
+ };
6
9
  };
7
10
  export type GetChangesResult = {
8
11
  staged: FileChange[];
9
12
  unstaged?: FileChange[];
10
13
  untracked?: FileChange[];
11
14
  };
12
- export declare function getChanges(git: SimpleGit, options?: GetChangesArgs): Promise<GetChangesResult>;
15
+ export declare function getChanges({ git, options }: GetChangesInput): Promise<GetChangesResult>;
@@ -0,0 +1,13 @@
1
+ import { SimpleGit } from 'simple-git';
2
+ import { FileChange } from '../types';
3
+ import { Logger } from '../utils/logger';
4
+ export type GetChangeByCommitInput = {
5
+ commit: string;
6
+ options: {
7
+ git: SimpleGit;
8
+ logger?: Logger;
9
+ ignoredFiles?: string[];
10
+ ignoredExtensions?: string[];
11
+ };
12
+ };
13
+ export declare function getChangesByCommit({ commit, options: { git, ignoredFiles, ignoredExtensions, }, }: GetChangeByCommitInput): Promise<FileChange[]>;
@@ -1,7 +1,7 @@
1
1
  import { SimpleGit } from 'simple-git';
2
2
  import { FileChange } from '../types';
3
3
  import { Logger } from '../utils/logger';
4
- export declare const getDiff: (nodeFile: FileChange, { git, logger, }: {
4
+ export declare const getDiff: (nodeFile: FileChange, commit: string, { git, logger, }: {
5
5
  git: SimpleGit;
6
6
  logger: Logger;
7
7
  }) => Promise<string>;
@@ -0,0 +1,10 @@
1
+ import { SimpleGit } from 'simple-git';
2
+ /**
3
+ * Fetches the diff for the given commit ID.
4
+ *
5
+ * @param commitId The commit ID for which the diff is to be retrieved.
6
+ * @returns A promise that resolves to the diff of the commit.
7
+ */
8
+ export declare function getDiffForCommit(commitId: string, { git, }: {
9
+ git: SimpleGit;
10
+ }): Promise<string>;
@@ -1,3 +1,3 @@
1
1
  import { FileChangeStatus } from '../types';
2
- import { FileStatusResult } from 'simple-git';
3
- export declare const getStatus: (file: FileStatusResult, location?: 'index' | 'working_dir') => FileChangeStatus;
2
+ import { DiffResultBinaryFile, DiffResultTextFile, FileStatusResult } from 'simple-git';
3
+ export declare const getStatus: (file: FileStatusResult | DiffResultTextFile | DiffResultBinaryFile, location?: 'index' | 'working_dir') => FileChangeStatus;
@@ -1,3 +1,3 @@
1
- import { FileStatusResult } from 'simple-git';
1
+ import { DiffResultBinaryFile, DiffResultTextFile, FileStatusResult } from 'simple-git';
2
2
  import { FileChange } from '../types';
3
- export declare const getSummaryText: (file: FileStatusResult, change: Partial<FileChange>) => string;
3
+ export declare const getSummaryText: (file: FileStatusResult | DiffResultTextFile | DiffResultBinaryFile, change: Partial<FileChange>) => string;
@@ -0,0 +1,6 @@
1
+ interface ParsedFilePaths {
2
+ filePath: string;
3
+ oldFilePath?: string;
4
+ }
5
+ export declare const parseFileString: (file: string) => ParsedFilePaths;
6
+ export {};
@@ -1,12 +1,12 @@
1
- import GPT3Tokenizer from 'gpt3-tokenizer';
2
1
  import { getModel } from './langchain/utils';
3
2
  import { SimpleGit } from 'simple-git';
4
3
  import { Logger } from './utils/logger';
4
+ import { getTokenizer } from './utils/getTokenizer';
5
5
  export type FileChangeStatus = 'modified' | 'renamed' | 'added' | 'deleted' | 'untracked' | 'unknown';
6
6
  export interface FileChange {
7
7
  summary: string;
8
- filepath: string;
9
- oldFilepath?: string;
8
+ filePath: string;
9
+ oldFilePath?: string;
10
10
  status: FileChangeStatus;
11
11
  }
12
12
  export interface FileDiff {
@@ -26,11 +26,22 @@ export interface DirectoryDiff {
26
26
  summary?: string;
27
27
  tokenCount: number;
28
28
  }
29
- export interface BaseParser {
30
- (changes: FileChange[], options: {
31
- tokenizer: GPT3Tokenizer;
32
- model: ReturnType<typeof getModel>;
33
- git: SimpleGit;
34
- logger: Logger;
35
- }): Promise<string>;
29
+ export interface BaseParserOptions {
30
+ tokenizer: ReturnType<typeof getTokenizer>;
31
+ model: ReturnType<typeof getModel>;
32
+ git: SimpleGit;
33
+ logger: Logger;
34
+ }
35
+ export interface BaseParserInput {
36
+ options: BaseParserOptions;
37
+ }
38
+ export interface FileChangeParserInput extends BaseParserInput {
39
+ changes: FileChange[];
40
+ commit: '--staged' | string;
41
+ }
42
+ export interface CommitLogParserInput extends BaseParserInput {
43
+ range: {
44
+ from: string;
45
+ to: string;
46
+ };
36
47
  }
@@ -0,0 +1,2 @@
1
+ import { GenerateReviewLoopOptions } from './generateAndReviewLoop';
2
+ export declare function editPrompt(options: GenerateReviewLoopOptions): Promise<string>;
@@ -0,0 +1,2 @@
1
+ import { GenerateReviewLoopOptions } from './generateAndReviewLoop';
2
+ export declare function editResult(result: string, options: GenerateReviewLoopOptions): Promise<string>;
@@ -0,0 +1,15 @@
1
+ import { Logger } from '../utils/logger';
2
+ export type GenerateReviewLoopOptions = {
3
+ interactive: boolean;
4
+ logger: Logger;
5
+ prompt?: string;
6
+ openInEditor?: boolean;
7
+ };
8
+ export type GenerateReviewLoopInput<T> = {
9
+ factory: () => Promise<T[]>;
10
+ parser: (changes: T[], commit: string, options: GenerateReviewLoopOptions) => Promise<string>;
11
+ noResult: (options: GenerateReviewLoopOptions) => Promise<void>;
12
+ agent: (context: string, options: GenerateReviewLoopOptions) => Promise<string>;
13
+ options: GenerateReviewLoopOptions;
14
+ };
15
+ export declare function generateAndReviewLoop<T>({ factory, parser, noResult, agent, options, }: GenerateReviewLoopInput<T>): Promise<string>;
@@ -0,0 +1,2 @@
1
+ export type ReviewDecision = 'approve' | 'edit' | 'modifyPrompt' | 'retryMessageOnly' | 'retryFull' | 'cancel';
2
+ export declare function getUserReviewDecision(): Promise<ReviewDecision>;
@@ -0,0 +1,5 @@
1
+ import { type SimpleGit } from 'simple-git';
2
+ export declare const handleResult: (result: string, { mode, git }: {
3
+ mode: 'interactive' | 'stdout';
4
+ git: SimpleGit;
5
+ }) => Promise<never>;
@@ -0,0 +1,3 @@
1
+ import { CommitOptions } from '../../commands/commit/options';
2
+ export declare const isInteractive: (argv: CommitOptions) => boolean;
3
+ export declare const SEPERATOR: string;
@@ -0,0 +1 @@
1
+ export declare function logResult(result: string): void;
@@ -0,0 +1 @@
1
+ export declare const logSuccess: () => void;
package/dist/stats.html CHANGED
@@ -5285,7 +5285,7 @@ var drawChart = (function (exports) {
5285
5285
  </script>
5286
5286
  <script>
5287
5287
  /*<!--*/
5288
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"name":"lib","children":[{"name":"utils","children":[{"uid":"d930-78","name":"removeUndefined.ts"},{"uid":"d930-96","name":"getPathFromFilePath.ts"},{"uid":"d930-114","name":"getTokenizer.ts"},{"uid":"d930-116","name":"logger.ts"}]},{"name":"config","children":[{"name":"services","children":[{"uid":"d930-80","name":"env.ts"},{"uid":"d930-82","name":"git.ts"},{"uid":"d930-84","name":"ignore.ts"},{"uid":"d930-86","name":"project.ts"},{"uid":"d930-88","name":"xdg.ts"}]},{"uid":"d930-94","name":"loadConfig.ts"}]},{"name":"langchain","children":[{"name":"prompts","children":[{"uid":"d930-90","name":"commitDefault.ts"},{"uid":"d930-92","name":"summarize.ts"}]},{"name":"chains","children":[{"uid":"d930-98","name":"summarize.ts"},{"uid":"d930-118","name":"llm.ts"}]},{"uid":"d930-106","name":"utils.ts"}]},{"name":"parsers","children":[{"name":"default","children":[{"name":"utils","children":[{"uid":"d930-100","name":"summarizeDiffs.ts"},{"uid":"d930-102","name":"createDiffTree.ts"},{"uid":"d930-104","name":"collectDiffs.ts"}]},{"uid":"d930-110","name":"index.ts"}]},{"uid":"d930-126","name":"noResult.ts"}]},{"name":"simple-git","children":[{"uid":"d930-108","name":"getDiff.ts"},{"uid":"d930-120","name":"getStatus.ts"},{"uid":"d930-122","name":"getSummaryText.ts"},{"uid":"d930-124","name":"getChanges.ts"},{"uid":"d930-128","name":"createCommit.ts"}]},{"uid":"d930-112","name":"ui.ts"}]},{"name":"commands/commit.ts","uid":"d930-130"},{"uid":"d930-132","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"d930-78":{"renderedLength":258,"gzipLength":0,"brotliLength":141,"metaUid":"d930-77"},"d930-80":{"renderedLength":990,"gzipLength":0,"brotliLength":352,"metaUid":"d930-79"},"d930-82":{"renderedLength":1356,"gzipLength":0,"brotliLength":377,"metaUid":"d930-81"},"d930-84":{"renderedLength":927,"gzipLength":0,"brotliLength":271,"metaUid":"d930-83"},"d930-86":{"renderedLength":367,"gzipLength":0,"brotliLength":172,"metaUid":"d930-85"},"d930-88":{"renderedLength":539,"gzipLength":0,"brotliLength":260,"metaUid":"d930-87"},"d930-90":{"renderedLength":752,"gzipLength":0,"brotliLength":329,"metaUid":"d930-89"},"d930-92":{"renderedLength":369,"gzipLength":0,"brotliLength":200,"metaUid":"d930-91"},"d930-94":{"renderedLength":1037,"gzipLength":0,"brotliLength":412,"metaUid":"d930-93"},"d930-96":{"renderedLength":256,"gzipLength":0,"brotliLength":151,"metaUid":"d930-95"},"d930-98":{"renderedLength":442,"gzipLength":0,"brotliLength":201,"metaUid":"d930-97"},"d930-100":{"renderedLength":3917,"gzipLength":0,"brotliLength":1170,"metaUid":"d930-99"},"d930-102":{"renderedLength":1262,"gzipLength":0,"brotliLength":380,"metaUid":"d930-101"},"d930-104":{"renderedLength":1186,"gzipLength":0,"brotliLength":414,"metaUid":"d930-103"},"d930-106":{"renderedLength":2472,"gzipLength":0,"brotliLength":712,"metaUid":"d930-105"},"d930-108":{"renderedLength":1586,"gzipLength":0,"brotliLength":527,"metaUid":"d930-107"},"d930-110":{"renderedLength":1127,"gzipLength":0,"brotliLength":460,"metaUid":"d930-109"},"d930-112":{"renderedLength":290,"gzipLength":0,"brotliLength":177,"metaUid":"d930-111"},"d930-114":{"renderedLength":573,"gzipLength":0,"brotliLength":239,"metaUid":"d930-113"},"d930-116":{"renderedLength":1634,"gzipLength":0,"brotliLength":400,"metaUid":"d930-115"},"d930-118":{"renderedLength":678,"gzipLength":0,"brotliLength":281,"metaUid":"d930-117"},"d930-120":{"renderedLength":602,"gzipLength":0,"brotliLength":177,"metaUid":"d930-119"},"d930-122":{"renderedLength":239,"gzipLength":0,"brotliLength":140,"metaUid":"d930-121"},"d930-124":{"renderedLength":2533,"gzipLength":0,"brotliLength":541,"metaUid":"d930-123"},"d930-126":{"renderedLength":1265,"gzipLength":0,"brotliLength":413,"metaUid":"d930-125"},"d930-128":{"renderedLength":87,"gzipLength":0,"brotliLength":71,"metaUid":"d930-127"},"d930-130":{"renderedLength":7121,"gzipLength":0,"brotliLength":1606,"metaUid":"d930-129"},"d930-132":{"renderedLength":275,"gzipLength":0,"brotliLength":168,"metaUid":"d930-131"}},"nodeMetas":{"d930-77":{"id":"/src/lib/utils/removeUndefined.ts","moduleParts":{"index.js":"d930-78"},"imported":[],"importedBy":[{"uid":"d930-79"}]},"d930-79":{"id":"/src/lib/config/services/env.ts","moduleParts":{"index.js":"d930-80"},"imported":[{"uid":"d930-77"}],"importedBy":[{"uid":"d930-93"}]},"d930-81":{"id":"/src/lib/config/services/git.ts","moduleParts":{"index.js":"d930-82"},"imported":[{"uid":"d930-148"},{"uid":"d930-149"},{"uid":"d930-146"},{"uid":"d930-150"}],"importedBy":[{"uid":"d930-93"}]},"d930-83":{"id":"/src/lib/config/services/ignore.ts","moduleParts":{"index.js":"d930-84"},"imported":[{"uid":"d930-148"}],"importedBy":[{"uid":"d930-93"}]},"d930-85":{"id":"/src/lib/config/services/project.ts","moduleParts":{"index.js":"d930-86"},"imported":[{"uid":"d930-148"}],"importedBy":[{"uid":"d930-93"}]},"d930-87":{"id":"/src/lib/config/services/xdg.ts","moduleParts":{"index.js":"d930-88"},"imported":[{"uid":"d930-148"},{"uid":"d930-146"},{"uid":"d930-149"}],"importedBy":[{"uid":"d930-93"}]},"d930-89":{"id":"/src/lib/langchain/prompts/commitDefault.ts","moduleParts":{"index.js":"d930-90"},"imported":[{"uid":"d930-141"}],"importedBy":[{"uid":"d930-129"},{"uid":"d930-93"}]},"d930-91":{"id":"/src/lib/langchain/prompts/summarize.ts","moduleParts":{"index.js":"d930-92"},"imported":[{"uid":"d930-141"}],"importedBy":[{"uid":"d930-93"},{"uid":"d930-109"}]},"d930-93":{"id":"/src/lib/config/loadConfig.ts","moduleParts":{"index.js":"d930-94"},"imported":[{"uid":"d930-79"},{"uid":"d930-81"},{"uid":"d930-83"},{"uid":"d930-85"},{"uid":"d930-87"},{"uid":"d930-89"},{"uid":"d930-91"}],"importedBy":[{"uid":"d930-131"},{"uid":"d930-129"},{"uid":"d930-123"}]},"d930-95":{"id":"/src/lib/utils/getPathFromFilePath.ts","moduleParts":{"index.js":"d930-96"},"imported":[],"importedBy":[{"uid":"d930-99"}]},"d930-97":{"id":"/src/lib/langchain/chains/summarize.ts","moduleParts":{"index.js":"d930-98"},"imported":[{"uid":"d930-153"}],"importedBy":[{"uid":"d930-99"}]},"d930-99":{"id":"/src/lib/parsers/default/utils/summarizeDiffs.ts","moduleParts":{"index.js":"d930-100"},"imported":[{"uid":"d930-151"},{"uid":"d930-95"},{"uid":"d930-97"}],"importedBy":[{"uid":"d930-109"}]},"d930-101":{"id":"/src/lib/parsers/default/utils/createDiffTree.ts","moduleParts":{"index.js":"d930-102"},"imported":[],"importedBy":[{"uid":"d930-109"}]},"d930-103":{"id":"/src/lib/parsers/default/utils/collectDiffs.ts","moduleParts":{"index.js":"d930-104"},"imported":[],"importedBy":[{"uid":"d930-109"}]},"d930-105":{"id":"/src/lib/langchain/utils.ts","moduleParts":{"index.js":"d930-106"},"imported":[{"uid":"d930-142"},{"uid":"d930-141"},{"uid":"d930-143"},{"uid":"d930-144"},{"uid":"d930-145"}],"importedBy":[{"uid":"d930-129"},{"uid":"d930-109"}]},"d930-107":{"id":"/src/lib/simple-git/getDiff.ts","moduleParts":{"index.js":"d930-108"},"imported":[{"uid":"d930-152"}],"importedBy":[{"uid":"d930-109"}]},"d930-109":{"id":"/src/lib/parsers/default/index.ts","moduleParts":{"index.js":"d930-110"},"imported":[{"uid":"d930-99"},{"uid":"d930-101"},{"uid":"d930-103"},{"uid":"d930-105"},{"uid":"d930-91"},{"uid":"d930-107"}],"importedBy":[{"uid":"d930-129"}]},"d930-111":{"id":"/src/lib/ui.ts","moduleParts":{"index.js":"d930-112"},"imported":[{"uid":"d930-136"}],"importedBy":[{"uid":"d930-129"}]},"d930-113":{"id":"/src/lib/utils/getTokenizer.ts","moduleParts":{"index.js":"d930-114"},"imported":[{"uid":"d930-137"}],"importedBy":[{"uid":"d930-129"}]},"d930-115":{"id":"/src/lib/utils/logger.ts","moduleParts":{"index.js":"d930-116"},"imported":[{"uid":"d930-136"},{"uid":"d930-138"},{"uid":"d930-139"},{"uid":"d930-140"}],"importedBy":[{"uid":"d930-129"}]},"d930-117":{"id":"/src/lib/langchain/chains/llm.ts","moduleParts":{"index.js":"d930-118"},"imported":[{"uid":"d930-143"}],"importedBy":[{"uid":"d930-129"}]},"d930-119":{"id":"/src/lib/simple-git/getStatus.ts","moduleParts":{"index.js":"d930-120"},"imported":[],"importedBy":[{"uid":"d930-123"},{"uid":"d930-121"}]},"d930-121":{"id":"/src/lib/simple-git/getSummaryText.ts","moduleParts":{"index.js":"d930-122"},"imported":[{"uid":"d930-119"}],"importedBy":[{"uid":"d930-123"}]},"d930-123":{"id":"/src/lib/simple-git/getChanges.ts","moduleParts":{"index.js":"d930-124"},"imported":[{"uid":"d930-146"},{"uid":"d930-147"},{"uid":"d930-119"},{"uid":"d930-121"},{"uid":"d930-93"}],"importedBy":[{"uid":"d930-129"},{"uid":"d930-125"}]},"d930-125":{"id":"/src/lib/parsers/noResult.ts","moduleParts":{"index.js":"d930-126"},"imported":[{"uid":"d930-123"}],"importedBy":[{"uid":"d930-129"}]},"d930-127":{"id":"/src/lib/simple-git/createCommit.ts","moduleParts":{"index.js":"d930-128"},"imported":[],"importedBy":[{"uid":"d930-129"}]},"d930-129":{"id":"/src/commands/commit.ts","moduleParts":{"index.js":"d930-130"},"imported":[{"uid":"d930-134"},{"uid":"d930-135"},{"uid":"d930-93"},{"uid":"d930-109"},{"uid":"d930-111"},{"uid":"d930-113"},{"uid":"d930-115"},{"uid":"d930-89"},{"uid":"d930-105"},{"uid":"d930-117"},{"uid":"d930-125"},{"uid":"d930-123"},{"uid":"d930-127"}],"importedBy":[{"uid":"d930-131"}]},"d930-131":{"id":"/src/index.ts","moduleParts":{"index.js":"d930-132"},"imported":[{"uid":"d930-133"},{"uid":"d930-129"},{"uid":"d930-93"}],"importedBy":[],"isEntry":true},"d930-133":{"id":"yargs","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-131"}],"isExternal":true},"d930-134":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-129"}],"isExternal":true},"d930-135":{"id":"simple-git","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-129"}],"isExternal":true},"d930-136":{"id":"chalk","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-111"},{"uid":"d930-115"}],"isExternal":true},"d930-137":{"id":"gpt3-tokenizer","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-113"}],"isExternal":true},"d930-138":{"id":"ora","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-115"}],"isExternal":true},"d930-139":{"id":"performance-now","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-115"}],"isExternal":true},"d930-140":{"id":"pretty-ms","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-115"}],"isExternal":true},"d930-141":{"id":"langchain/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-89"},{"uid":"d930-105"},{"uid":"d930-91"}],"isExternal":true},"d930-142":{"id":"langchain/llms/hf","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-105"}],"isExternal":true},"d930-143":{"id":"langchain/chains","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-105"},{"uid":"d930-117"}],"isExternal":true},"d930-144":{"id":"langchain/llms/openai","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-105"}],"isExternal":true},"d930-145":{"id":"langchain/text_splitter","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-105"}],"isExternal":true},"d930-146":{"id":"path","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-123"},{"uid":"d930-81"},{"uid":"d930-87"}],"isExternal":true},"d930-147":{"id":"minimatch","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-123"}],"isExternal":true},"d930-148":{"id":"fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-81"},{"uid":"d930-83"},{"uid":"d930-85"},{"uid":"d930-87"}],"isExternal":true},"d930-149":{"id":"os","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-81"},{"uid":"d930-87"}],"isExternal":true},"d930-150":{"id":"ini","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-81"}],"isExternal":true},"d930-151":{"id":"p-queue","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-99"}],"isExternal":true},"d930-152":{"id":"diff","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-107"}],"isExternal":true},"d930-153":{"id":"langchain/document","moduleParts":{},"imported":[],"importedBy":[{"uid":"d930-97"}],"isExternal":true}},"env":{"rollup":"3.26.2"},"options":{"gzip":false,"brotli":true,"sourcemap":false}};
5288
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"name":"lib","children":[{"name":"utils","children":[{"uid":"87a3-96","name":"getPathFromFilePath.ts"},{"uid":"87a3-114","name":"getTokenizer.ts"},{"uid":"87a3-116","name":"logger.ts"},{"uid":"87a3-124","name":"removeUndefined.ts"}]},{"name":"langchain","children":[{"name":"chains/summarize.ts","uid":"87a3-98"},{"uid":"87a3-106","name":"utils.ts"},{"name":"prompts","children":[{"uid":"87a3-108","name":"summarize.ts"},{"uid":"87a3-118","name":"commitDefault.ts"}]},{"uid":"87a3-154","name":"executeChain.ts"}]},{"name":"parsers","children":[{"name":"default","children":[{"name":"utils","children":[{"uid":"87a3-100","name":"summarizeDiffs.ts"},{"uid":"87a3-102","name":"createDiffTree.ts"},{"uid":"87a3-104","name":"collectDiffs.ts"}]},{"uid":"87a3-112","name":"index.ts"}]},{"uid":"87a3-140","name":"noResult.ts"}]},{"name":"simple-git","children":[{"uid":"87a3-110","name":"getDiff.ts"},{"uid":"87a3-120","name":"getStatus.ts"},{"uid":"87a3-122","name":"getSummaryText.ts"},{"uid":"87a3-138","name":"getChanges.ts"},{"uid":"87a3-156","name":"createCommit.ts"}]},{"name":"config","children":[{"name":"services","children":[{"uid":"87a3-126","name":"env.ts"},{"uid":"87a3-128","name":"git.ts"},{"uid":"87a3-130","name":"ignore.ts"},{"uid":"87a3-132","name":"project.ts"},{"uid":"87a3-134","name":"xdg.ts"}]},{"uid":"87a3-136","name":"loadConfig.ts"}]},{"name":"ui","children":[{"uid":"87a3-142","name":"helpers.ts"},{"uid":"87a3-144","name":"logResult.ts"},{"uid":"87a3-146","name":"editResult.ts"},{"uid":"87a3-148","name":"getUserReviewDecision.ts"},{"uid":"87a3-150","name":"editPrompt.ts"},{"uid":"87a3-152","name":"generateAndReviewLoop.ts"},{"uid":"87a3-158","name":"logSuccess.ts"},{"uid":"87a3-160","name":"handleResult.ts"}]}]},{"name":"commands/commit","children":[{"uid":"87a3-162","name":"handler.ts"},{"uid":"87a3-164","name":"options.ts"},{"uid":"87a3-166","name":"index.ts"}]},{"uid":"87a3-168","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"87a3-96":{"renderedLength":256,"gzipLength":0,"brotliLength":151,"metaUid":"87a3-95"},"87a3-98":{"renderedLength":442,"gzipLength":0,"brotliLength":201,"metaUid":"87a3-97"},"87a3-100":{"renderedLength":3917,"gzipLength":0,"brotliLength":1170,"metaUid":"87a3-99"},"87a3-102":{"renderedLength":1861,"gzipLength":0,"brotliLength":515,"metaUid":"87a3-101"},"87a3-104":{"renderedLength":1186,"gzipLength":0,"brotliLength":416,"metaUid":"87a3-103"},"87a3-106":{"renderedLength":2445,"gzipLength":0,"brotliLength":706,"metaUid":"87a3-105"},"87a3-108":{"renderedLength":403,"gzipLength":0,"brotliLength":232,"metaUid":"87a3-107"},"87a3-110":{"renderedLength":2197,"gzipLength":0,"brotliLength":643,"metaUid":"87a3-109"},"87a3-112":{"renderedLength":1153,"gzipLength":0,"brotliLength":469,"metaUid":"87a3-111"},"87a3-114":{"renderedLength":573,"gzipLength":0,"brotliLength":239,"metaUid":"87a3-113"},"87a3-116":{"renderedLength":1634,"gzipLength":0,"brotliLength":400,"metaUid":"87a3-115"},"87a3-118":{"renderedLength":979,"gzipLength":0,"brotliLength":368,"metaUid":"87a3-117"},"87a3-120":{"renderedLength":1090,"gzipLength":0,"brotliLength":308,"metaUid":"87a3-119"},"87a3-122":{"renderedLength":467,"gzipLength":0,"brotliLength":210,"metaUid":"87a3-121"},"87a3-124":{"renderedLength":258,"gzipLength":0,"brotliLength":141,"metaUid":"87a3-123"},"87a3-126":{"renderedLength":990,"gzipLength":0,"brotliLength":352,"metaUid":"87a3-125"},"87a3-128":{"renderedLength":1356,"gzipLength":0,"brotliLength":377,"metaUid":"87a3-127"},"87a3-130":{"renderedLength":927,"gzipLength":0,"brotliLength":271,"metaUid":"87a3-129"},"87a3-132":{"renderedLength":367,"gzipLength":0,"brotliLength":172,"metaUid":"87a3-131"},"87a3-134":{"renderedLength":539,"gzipLength":0,"brotliLength":260,"metaUid":"87a3-133"},"87a3-136":{"renderedLength":1029,"gzipLength":0,"brotliLength":406,"metaUid":"87a3-135"},"87a3-138":{"renderedLength":2586,"gzipLength":0,"brotliLength":552,"metaUid":"87a3-137"},"87a3-140":{"renderedLength":1265,"gzipLength":0,"brotliLength":413,"metaUid":"87a3-139"},"87a3-142":{"renderedLength":147,"gzipLength":0,"brotliLength":109,"metaUid":"87a3-141"},"87a3-144":{"renderedLength":141,"gzipLength":0,"brotliLength":121,"metaUid":"87a3-143"},"87a3-146":{"renderedLength":350,"gzipLength":0,"brotliLength":172,"metaUid":"87a3-145"},"87a3-148":{"renderedLength":1322,"gzipLength":0,"brotliLength":355,"metaUid":"87a3-147"},"87a3-150":{"renderedLength":321,"gzipLength":0,"brotliLength":167,"metaUid":"87a3-149"},"87a3-152":{"renderedLength":2247,"gzipLength":0,"brotliLength":565,"metaUid":"87a3-151"},"87a3-154":{"renderedLength":687,"gzipLength":0,"brotliLength":275,"metaUid":"87a3-153"},"87a3-156":{"renderedLength":87,"gzipLength":0,"brotliLength":71,"metaUid":"87a3-155"},"87a3-158":{"renderedLength":94,"gzipLength":0,"brotliLength":98,"metaUid":"87a3-157"},"87a3-160":{"renderedLength":371,"gzipLength":0,"brotliLength":167,"metaUid":"87a3-159"},"87a3-162":{"renderedLength":1743,"gzipLength":0,"brotliLength":608,"metaUid":"87a3-161"},"87a3-164":{"renderedLength":1341,"gzipLength":0,"brotliLength":372,"metaUid":"87a3-163"},"87a3-166":{"renderedLength":116,"gzipLength":0,"brotliLength":79,"metaUid":"87a3-165"},"87a3-168":{"renderedLength":238,"gzipLength":0,"brotliLength":159,"metaUid":"87a3-167"}},"nodeMetas":{"87a3-95":{"id":"/src/lib/utils/getPathFromFilePath.ts","moduleParts":{"index.js":"87a3-96"},"imported":[],"importedBy":[{"uid":"87a3-99"}]},"87a3-97":{"id":"/src/lib/langchain/chains/summarize.ts","moduleParts":{"index.js":"87a3-98"},"imported":[{"uid":"87a3-189"}],"importedBy":[{"uid":"87a3-99"}]},"87a3-99":{"id":"/src/lib/parsers/default/utils/summarizeDiffs.ts","moduleParts":{"index.js":"87a3-100"},"imported":[{"uid":"87a3-183"},{"uid":"87a3-95"},{"uid":"87a3-97"}],"importedBy":[{"uid":"87a3-111"}]},"87a3-101":{"id":"/src/lib/parsers/default/utils/createDiffTree.ts","moduleParts":{"index.js":"87a3-102"},"imported":[],"importedBy":[{"uid":"87a3-111"}]},"87a3-103":{"id":"/src/lib/parsers/default/utils/collectDiffs.ts","moduleParts":{"index.js":"87a3-104"},"imported":[],"importedBy":[{"uid":"87a3-111"}]},"87a3-105":{"id":"/src/lib/langchain/utils.ts","moduleParts":{"index.js":"87a3-106"},"imported":[{"uid":"87a3-177"},{"uid":"87a3-176"},{"uid":"87a3-178"},{"uid":"87a3-179"},{"uid":"87a3-180"}],"importedBy":[{"uid":"87a3-161"},{"uid":"87a3-111"},{"uid":"87a3-149"}]},"87a3-107":{"id":"/src/lib/langchain/prompts/summarize.ts","moduleParts":{"index.js":"87a3-108"},"imported":[{"uid":"87a3-176"}],"importedBy":[{"uid":"87a3-111"},{"uid":"87a3-135"}]},"87a3-109":{"id":"/src/lib/simple-git/getDiff.ts","moduleParts":{"index.js":"87a3-110"},"imported":[{"uid":"87a3-184"}],"importedBy":[{"uid":"87a3-111"}]},"87a3-111":{"id":"/src/lib/parsers/default/index.ts","moduleParts":{"index.js":"87a3-112"},"imported":[{"uid":"87a3-99"},{"uid":"87a3-101"},{"uid":"87a3-103"},{"uid":"87a3-105"},{"uid":"87a3-107"},{"uid":"87a3-109"}],"importedBy":[{"uid":"87a3-161"}]},"87a3-113":{"id":"/src/lib/utils/getTokenizer.ts","moduleParts":{"index.js":"87a3-114"},"imported":[{"uid":"87a3-171"}],"importedBy":[{"uid":"87a3-161"}]},"87a3-115":{"id":"/src/lib/utils/logger.ts","moduleParts":{"index.js":"87a3-116"},"imported":[{"uid":"87a3-172"},{"uid":"87a3-173"},{"uid":"87a3-174"},{"uid":"87a3-175"}],"importedBy":[{"uid":"87a3-161"}]},"87a3-117":{"id":"/src/lib/langchain/prompts/commitDefault.ts","moduleParts":{"index.js":"87a3-118"},"imported":[{"uid":"87a3-176"}],"importedBy":[{"uid":"87a3-161"},{"uid":"87a3-135"},{"uid":"87a3-149"}]},"87a3-119":{"id":"/src/lib/simple-git/getStatus.ts","moduleParts":{"index.js":"87a3-120"},"imported":[],"importedBy":[{"uid":"87a3-137"},{"uid":"87a3-121"}]},"87a3-121":{"id":"/src/lib/simple-git/getSummaryText.ts","moduleParts":{"index.js":"87a3-122"},"imported":[{"uid":"87a3-119"}],"importedBy":[{"uid":"87a3-137"}]},"87a3-123":{"id":"/src/lib/utils/removeUndefined.ts","moduleParts":{"index.js":"87a3-124"},"imported":[],"importedBy":[{"uid":"87a3-125"}]},"87a3-125":{"id":"/src/lib/config/services/env.ts","moduleParts":{"index.js":"87a3-126"},"imported":[{"uid":"87a3-123"}],"importedBy":[{"uid":"87a3-135"}]},"87a3-127":{"id":"/src/lib/config/services/git.ts","moduleParts":{"index.js":"87a3-128"},"imported":[{"uid":"87a3-185"},{"uid":"87a3-186"},{"uid":"87a3-181"},{"uid":"87a3-187"}],"importedBy":[{"uid":"87a3-135"}]},"87a3-129":{"id":"/src/lib/config/services/ignore.ts","moduleParts":{"index.js":"87a3-130"},"imported":[{"uid":"87a3-185"}],"importedBy":[{"uid":"87a3-135"}]},"87a3-131":{"id":"/src/lib/config/services/project.ts","moduleParts":{"index.js":"87a3-132"},"imported":[{"uid":"87a3-185"}],"importedBy":[{"uid":"87a3-135"}]},"87a3-133":{"id":"/src/lib/config/services/xdg.ts","moduleParts":{"index.js":"87a3-134"},"imported":[{"uid":"87a3-185"},{"uid":"87a3-181"},{"uid":"87a3-186"}],"importedBy":[{"uid":"87a3-135"}]},"87a3-135":{"id":"/src/lib/config/loadConfig.ts","moduleParts":{"index.js":"87a3-136"},"imported":[{"uid":"87a3-125"},{"uid":"87a3-127"},{"uid":"87a3-129"},{"uid":"87a3-131"},{"uid":"87a3-133"},{"uid":"87a3-107"},{"uid":"87a3-117"}],"importedBy":[{"uid":"87a3-161"},{"uid":"87a3-137"}]},"87a3-137":{"id":"/src/lib/simple-git/getChanges.ts","moduleParts":{"index.js":"87a3-138"},"imported":[{"uid":"87a3-181"},{"uid":"87a3-182"},{"uid":"87a3-119"},{"uid":"87a3-121"},{"uid":"87a3-135"}],"importedBy":[{"uid":"87a3-161"},{"uid":"87a3-139"}]},"87a3-139":{"id":"/src/lib/parsers/noResult.ts","moduleParts":{"index.js":"87a3-140"},"imported":[{"uid":"87a3-137"}],"importedBy":[{"uid":"87a3-161"}]},"87a3-141":{"id":"/src/lib/ui/helpers.ts","moduleParts":{"index.js":"87a3-142"},"imported":[{"uid":"87a3-172"}],"importedBy":[{"uid":"87a3-161"},{"uid":"87a3-143"}]},"87a3-143":{"id":"/src/lib/ui/logResult.ts","moduleParts":{"index.js":"87a3-144"},"imported":[{"uid":"87a3-172"},{"uid":"87a3-141"}],"importedBy":[{"uid":"87a3-151"}]},"87a3-145":{"id":"/src/lib/ui/editResult.ts","moduleParts":{"index.js":"87a3-146"},"imported":[{"uid":"87a3-188"}],"importedBy":[{"uid":"87a3-151"}]},"87a3-147":{"id":"/src/lib/ui/getUserReviewDecision.ts","moduleParts":{"index.js":"87a3-148"},"imported":[{"uid":"87a3-188"}],"importedBy":[{"uid":"87a3-151"}]},"87a3-149":{"id":"/src/lib/ui/editPrompt.ts","moduleParts":{"index.js":"87a3-150"},"imported":[{"uid":"87a3-188"},{"uid":"87a3-117"},{"uid":"87a3-105"}],"importedBy":[{"uid":"87a3-151"}]},"87a3-151":{"id":"/src/lib/ui/generateAndReviewLoop.ts","moduleParts":{"index.js":"87a3-152"},"imported":[{"uid":"87a3-143"},{"uid":"87a3-145"},{"uid":"87a3-147"},{"uid":"87a3-149"}],"importedBy":[{"uid":"87a3-161"}]},"87a3-153":{"id":"/src/lib/langchain/executeChain.ts","moduleParts":{"index.js":"87a3-154"},"imported":[{"uid":"87a3-178"}],"importedBy":[{"uid":"87a3-161"}]},"87a3-155":{"id":"/src/lib/simple-git/createCommit.ts","moduleParts":{"index.js":"87a3-156"},"imported":[],"importedBy":[{"uid":"87a3-159"}]},"87a3-157":{"id":"/src/lib/ui/logSuccess.ts","moduleParts":{"index.js":"87a3-158"},"imported":[{"uid":"87a3-172"}],"importedBy":[{"uid":"87a3-159"}]},"87a3-159":{"id":"/src/lib/ui/handleResult.ts","moduleParts":{"index.js":"87a3-160"},"imported":[{"uid":"87a3-155"},{"uid":"87a3-157"}],"importedBy":[{"uid":"87a3-161"}]},"87a3-161":{"id":"/src/commands/commit/handler.ts","moduleParts":{"index.js":"87a3-162"},"imported":[{"uid":"87a3-111"},{"uid":"87a3-113"},{"uid":"87a3-115"},{"uid":"87a3-117"},{"uid":"87a3-105"},{"uid":"87a3-139"},{"uid":"87a3-137"},{"uid":"87a3-170"},{"uid":"87a3-135"},{"uid":"87a3-141"},{"uid":"87a3-151"},{"uid":"87a3-153"},{"uid":"87a3-159"}],"importedBy":[{"uid":"87a3-165"}]},"87a3-163":{"id":"/src/commands/commit/options.ts","moduleParts":{"index.js":"87a3-164"},"imported":[],"importedBy":[{"uid":"87a3-165"}]},"87a3-165":{"id":"/src/commands/commit/index.ts","moduleParts":{"index.js":"87a3-166"},"imported":[{"uid":"87a3-161"},{"uid":"87a3-163"}],"importedBy":[{"uid":"87a3-167"}]},"87a3-167":{"id":"/src/index.ts","moduleParts":{"index.js":"87a3-168"},"imported":[{"uid":"87a3-169"},{"uid":"87a3-165"}],"importedBy":[],"isEntry":true},"87a3-169":{"id":"yargs","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-167"}],"isExternal":true},"87a3-170":{"id":"simple-git","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-161"}],"isExternal":true},"87a3-171":{"id":"gpt3-tokenizer","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-113"}],"isExternal":true},"87a3-172":{"id":"chalk","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-115"},{"uid":"87a3-141"},{"uid":"87a3-143"},{"uid":"87a3-157"}],"isExternal":true},"87a3-173":{"id":"ora","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-115"}],"isExternal":true},"87a3-174":{"id":"performance-now","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-115"}],"isExternal":true},"87a3-175":{"id":"pretty-ms","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-115"}],"isExternal":true},"87a3-176":{"id":"langchain/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-117"},{"uid":"87a3-105"},{"uid":"87a3-107"}],"isExternal":true},"87a3-177":{"id":"langchain/llms/hf","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-105"}],"isExternal":true},"87a3-178":{"id":"langchain/chains","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-105"},{"uid":"87a3-153"}],"isExternal":true},"87a3-179":{"id":"langchain/llms/openai","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-105"}],"isExternal":true},"87a3-180":{"id":"langchain/text_splitter","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-105"}],"isExternal":true},"87a3-181":{"id":"path","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-137"},{"uid":"87a3-127"},{"uid":"87a3-133"}],"isExternal":true},"87a3-182":{"id":"minimatch","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-137"}],"isExternal":true},"87a3-183":{"id":"p-queue","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-99"}],"isExternal":true},"87a3-184":{"id":"diff","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-109"}],"isExternal":true},"87a3-185":{"id":"fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-127"},{"uid":"87a3-129"},{"uid":"87a3-131"},{"uid":"87a3-133"}],"isExternal":true},"87a3-186":{"id":"os","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-127"},{"uid":"87a3-133"}],"isExternal":true},"87a3-187":{"id":"ini","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-127"}],"isExternal":true},"87a3-188":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-145"},{"uid":"87a3-147"},{"uid":"87a3-149"}],"isExternal":true},"87a3-189":{"id":"langchain/document","moduleParts":{},"imported":[],"importedBy":[{"uid":"87a3-97"}],"isExternal":true}},"env":{"rollup":"3.26.3"},"options":{"gzip":false,"brotli":true,"sourcemap":false}};
5289
5289
 
5290
5290
  const run = () => {
5291
5291
  const width = window.innerWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-coco",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "zero-effort git commits with coco.",
5
5
  "author": "gfargo <ghfargo@gmail.com>",
6
6
  "license": "MIT",
@@ -52,7 +52,7 @@
52
52
  "@typescript-eslint/eslint-plugin": "^5.61.0",
53
53
  "@typescript-eslint/parser": "^5.61.0",
54
54
  "eslint": "^8.42.0",
55
- "eslint-formatter-pretty": "^5.0.0",
55
+ "eslint-formatter-pretty": "^6.0.0",
56
56
  "jest": "^29.5.0",
57
57
  "jest-mock": "^29.5.0",
58
58
  "release-it": "^16.1.0",
@@ -63,7 +63,7 @@
63
63
  "rollup-plugin-executable": "^1.6.3",
64
64
  "rollup-plugin-peer-deps-external": "^2.2.4",
65
65
  "rollup-plugin-preserve-shebangs": "^0.2.0",
66
- "rollup-plugin-typescript2": "^0.35.0",
66
+ "rollup-plugin-typescript2": "^0.36.0",
67
67
  "rollup-plugin-visualizer": "^5.9.2",
68
68
  "ts-jest": "^29.1.0",
69
69
  "ts-node": "^10.9.1",
@@ -72,12 +72,12 @@
72
72
  "typescript": "^5.1.6"
73
73
  },
74
74
  "dependencies": {
75
- "@inquirer/prompts": "^2.3.0",
75
+ "@inquirer/prompts": "^3.2.0",
76
76
  "chalk": "4.1.2",
77
77
  "diff": "^5.1.0",
78
78
  "gpt3-tokenizer": "^1.1.5",
79
79
  "ini": "^4.1.1",
80
- "langchain": "^0.0.106",
80
+ "langchain": "^0.0.170",
81
81
  "minimatch": "^9.0.3",
82
82
  "openai": "3.3.0",
83
83
  "ora": "5.4.1",
@@ -1,16 +0,0 @@
1
- import { Argv, CommandBuilder } from 'yargs';
2
- import { BaseCommandOptions } from '../types';
3
- export interface CommitOptions extends BaseCommandOptions {
4
- interactive: boolean;
5
- tokenLimit: number;
6
- prompt: string;
7
- commit: boolean;
8
- summarizePrompt: string;
9
- openInEditor: boolean;
10
- ignoredFiles: string[];
11
- ignoredExtensions: string[];
12
- }
13
- export declare const command: string[];
14
- export declare const description = "Generate a commit message based on the diff summary";
15
- export declare const builder: CommandBuilder<CommitOptions>;
16
- export declare function handler(argv: Argv<CommitOptions>["argv"]): Promise<void>;
@@ -1,6 +0,0 @@
1
- import { LLMChainInput } from 'langchain/chains';
2
- type LLMInput = {
3
- variables: Record<string, unknown>;
4
- } & LLMChainInput;
5
- export declare const llm: ({ llm, prompt, variables }: LLMInput) => Promise<any>;
6
- export {};
package/dist/lib/ui.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const logCommit: (commit: string) => void;
2
- export declare const logSuccess: () => void;
package/dist/types.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { Config } from './lib/config/types';
2
- export interface BaseCommandOptions {
3
- [x: string]: unknown;
4
- help: boolean;
5
- verbose: boolean;
6
- model: string;
7
- openAIApiKey: string;
8
- huggingFaceHubApiKey: string;
9
- }
10
- export { Config };