git-coco 0.4.0 → 0.5.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.js CHANGED
@@ -20,8 +20,8 @@ var minimatch = require('minimatch');
20
20
  var fs = require('fs');
21
21
  var os = require('os');
22
22
  var ini = require('ini');
23
- var simpleGit = require('simple-git');
24
23
  var prompts$1 = require('@inquirer/prompts');
24
+ var simpleGit = require('simple-git');
25
25
 
26
26
  function _interopNamespaceDefault(e) {
27
27
  var n = Object.create(null);
@@ -629,6 +629,7 @@ function loadEnvConfig(config) {
629
629
  ignoredExtensions: process.env.COCO_IGNORED_EXTENSIONS
630
630
  ? process.env.COCO_IGNORED_EXTENSIONS.split(',')
631
631
  : undefined,
632
+ defaultBranch: process.env.COCO_DEFAULT_BRANCH || undefined,
632
633
  };
633
634
  config = { ...config, ...removeUndefined(envConfig) };
634
635
  return config;
@@ -657,6 +658,7 @@ function loadGitConfig(config) {
657
658
  summarizePrompt: gitConfigParsed.coco?.summarizePrompt || config.summarizePrompt,
658
659
  ignoredFiles: gitConfigParsed.coco?.ignoredFiles || config.ignoredFiles,
659
660
  ignoredExtensions: gitConfigParsed.coco?.ignoredExtensions || config.ignoredExtensions,
661
+ defaultBranch: gitConfigParsed.coco?.defaultBranch || config.defaultBranch,
660
662
  };
661
663
  }
662
664
  return config;
@@ -702,6 +704,8 @@ function loadIgnore(config) {
702
704
  * @returns {Config} Updated config
703
705
  **/
704
706
  function loadProjectConfig(config) {
707
+ // TODO: Add validation based of JSON schema?
708
+ // @see https://github.com/acornejo/jjv
705
709
  if (fs__namespace.existsSync('.coco.config.json')) {
706
710
  const projectConfig = JSON.parse(fs__namespace.readFileSync('.coco.config.json', 'utf-8'));
707
711
  config = { ...config, ...projectConfig };
@@ -739,6 +743,7 @@ const DEFAULT_CONFIG = {
739
743
  mode: 'stdout',
740
744
  ignoredFiles: ['package-lock.json'],
741
745
  ignoredExtensions: ['.map', '.lock'],
746
+ defaultBranch: 'main',
742
747
  };
743
748
  /**
744
749
  * Load application config
@@ -1039,9 +1044,21 @@ const handleResult = async (result, { mode, git }) => {
1039
1044
  process.exit(0);
1040
1045
  };
1041
1046
 
1042
- const tokenizer = getTokenizer();
1043
- const git$1 = simpleGit.simpleGit();
1047
+ const getRepo = () => {
1048
+ let git;
1049
+ try {
1050
+ git = simpleGit.simpleGit();
1051
+ }
1052
+ catch (e) {
1053
+ console.log('Error initializing git repo', e);
1054
+ process.exit(1);
1055
+ }
1056
+ return git;
1057
+ };
1058
+
1044
1059
  async function handler$1(argv) {
1060
+ const tokenizer = getTokenizer();
1061
+ const git = getRepo();
1045
1062
  const options = loadConfig(argv);
1046
1063
  const logger = new Logger(options);
1047
1064
  const key = getApiKeyForModel(options.model, options);
@@ -1055,14 +1072,14 @@ async function handler$1(argv) {
1055
1072
  });
1056
1073
  const INTERACTIVE = isInteractive(options);
1057
1074
  async function factory() {
1058
- const changes = await getChanges({ git: git$1 });
1075
+ const changes = await getChanges({ git });
1059
1076
  return changes.staged;
1060
1077
  }
1061
1078
  async function parser(changes) {
1062
1079
  return await fileChangeParser({
1063
1080
  changes,
1064
1081
  commit: '--staged',
1065
- options: { tokenizer, git: git$1, model, logger },
1082
+ options: { tokenizer, git, model, logger },
1066
1083
  });
1067
1084
  }
1068
1085
  const commitMsg = await generateAndReviewLoop({
@@ -1081,7 +1098,7 @@ async function handler$1(argv) {
1081
1098
  });
1082
1099
  },
1083
1100
  noResult: async () => {
1084
- await noResult({ git: git$1, logger });
1101
+ await noResult({ git, logger });
1085
1102
  process.exit(0);
1086
1103
  },
1087
1104
  options: {
@@ -1094,7 +1111,7 @@ async function handler$1(argv) {
1094
1111
  const MODE = (INTERACTIVE && 'interactive') || (options.commit && 'interactive') || options?.mode || 'stdout';
1095
1112
  handleResult(commitMsg, {
1096
1113
  mode: MODE,
1097
- git: git$1,
1114
+ git,
1098
1115
  });
1099
1116
  }
1100
1117
 
@@ -1175,15 +1192,9 @@ const CHANGELOG_PROMPT = new prompts.PromptTemplate({
1175
1192
 
1176
1193
  async function getCommitLogRange(from, to, { noMerges, git }) {
1177
1194
  try {
1178
- const output = await git.raw([
1179
- 'log',
1180
- `${from}..${to}`,
1181
- '--pretty=format:%s',
1182
- // Include '--no-merges' here if you want to exclude merge commits.
1183
- noMerges ? '--no-merges' : null,
1184
- ].filter(Boolean)); // filter(Boolean) removes any null values from the array
1185
- const messages = output.split('\n').filter(Boolean);
1186
- return messages;
1195
+ const logOptions = { from: `${from}^1`, to, '--no-merges': noMerges };
1196
+ const commitLog = await git.log(logOptions);
1197
+ return commitLog.all.map(({ message, date, body, author_name }) => `[${date}] ${message}\n${body}\n - ${author_name}`);
1187
1198
  }
1188
1199
  catch (error) {
1189
1200
  // If there's an error, handle it appropriately
@@ -1192,10 +1203,56 @@ async function getCommitLogRange(from, to, { noMerges, git }) {
1192
1203
  }
1193
1204
  }
1194
1205
 
1195
- const git = simpleGit.simpleGit();
1206
+ async function getCurrentBranchName({ git }) {
1207
+ return await git.revparse(['--abbrev-ref', 'HEAD']);
1208
+ }
1209
+
1210
+ async function getCommitLogCurrentBranch({ git, logger, comparisonBranch = 'main', comparisonRemote = 'origin', }) {
1211
+ try {
1212
+ // Get the current branch name
1213
+ const branch = await getCurrentBranchName({ git });
1214
+ // Check if the current branch has any commits
1215
+ const hasCommits = (await git.raw(['rev-list', '--count', branch])) !== '0';
1216
+ if (!hasCommits) {
1217
+ logger?.log('No commits on the current branch.');
1218
+ return [];
1219
+ }
1220
+ // Get the list of commits that are unique to the current branch
1221
+ let uniqueCommits;
1222
+ if (comparisonBranch === branch) {
1223
+ // If the comparison branch is the same as the current branch, we compare against the remote.
1224
+ uniqueCommits = (await git.raw(['rev-list', `${comparisonRemote}/${comparisonBranch}..${branch}`]))
1225
+ .split('\n')
1226
+ .filter(Boolean)
1227
+ .reverse();
1228
+ }
1229
+ else {
1230
+ // Your existing code for different branches
1231
+ uniqueCommits = (await git.raw(['rev-list', `${comparisonBranch}..${branch}`]))
1232
+ .split('\n')
1233
+ .filter(Boolean)
1234
+ .reverse();
1235
+ }
1236
+ logger?.verbose(`Found ${uniqueCommits.length} unique commits on "${branch}"`, { color: 'blue' });
1237
+ const firstCommit = uniqueCommits[0];
1238
+ const lastCommit = uniqueCommits[uniqueCommits.length - 1];
1239
+ if (!firstCommit || !lastCommit) {
1240
+ logger?.log('Unable to determine first and last commit on the current branch', { color: 'yellow' });
1241
+ return [];
1242
+ }
1243
+ // Retrieve commit log with messages
1244
+ return await getCommitLogRange(firstCommit, lastCommit, { git, noMerges: true });
1245
+ }
1246
+ catch (error) {
1247
+ logger?.log('Encountered an error getting commit log from current branch', { color: 'red' });
1248
+ }
1249
+ return [];
1250
+ }
1251
+
1196
1252
  async function handler(argv) {
1197
1253
  const options = loadConfig(argv);
1198
1254
  const logger = new Logger(options);
1255
+ const git = getRepo();
1199
1256
  const key = getApiKeyForModel(options.model, options);
1200
1257
  if (!key) {
1201
1258
  logger.log(`No API Key found. 🗝️🚪`, { color: 'red' });
@@ -1206,14 +1263,17 @@ async function handler(argv) {
1206
1263
  maxConcurrency: 10,
1207
1264
  });
1208
1265
  const INTERACTIVE = isInteractive(options);
1209
- const [from, to] = options.range?.split(':');
1210
- if (!from || !to) {
1211
- logger.log(`Invalid range provided. Expected format is <from>:<to>`, { color: 'red' });
1212
- process.exit(1);
1213
- }
1214
1266
  async function factory() {
1215
- const messages = await getCommitLogRange(from, to, { git, noMerges: true });
1216
- return messages;
1267
+ if (options.range) {
1268
+ const [from, to] = options.range?.split(':');
1269
+ if (!from || !to) {
1270
+ logger.log(`Invalid range provided. Expected format is <from>:<to>`, { color: 'red' });
1271
+ process.exit(1);
1272
+ }
1273
+ return await getCommitLogRange(from, to, { git, noMerges: true });
1274
+ }
1275
+ logger.verbose(`No range provided. Defaulting to current branch`, { color: 'yellow' });
1276
+ return await getCommitLogCurrentBranch({ git, logger });
1217
1277
  }
1218
1278
  async function parser(messages) {
1219
1279
  const result = messages.join('\n');
@@ -1236,7 +1296,11 @@ async function handler(argv) {
1236
1296
  });
1237
1297
  },
1238
1298
  noResult: async () => {
1239
- await noResult({ git, logger });
1299
+ if (options.range) {
1300
+ logger.log(`No commits found in the provided range.`, { color: 'red' });
1301
+ process.exit(0);
1302
+ }
1303
+ logger.log(`No commits found in the current branch.`, { color: 'red' });
1240
1304
  process.exit(0);
1241
1305
  },
1242
1306
  options: {
@@ -1261,7 +1325,6 @@ const options = {
1261
1325
  type: 'string',
1262
1326
  alias: 'r',
1263
1327
  description: 'Commit range e.g `HEAD~2:HEAD`',
1264
- demandOption: true,
1265
1328
  },
1266
1329
  model: { type: 'string', description: 'LLM/Model-Name' },
1267
1330
  openAIApiKey: {
@@ -74,4 +74,10 @@ export interface Config {
74
74
  * @default ['.map', '.lock']
75
75
  */
76
76
  ignoredExtensions?: string[];
77
+ /**
78
+ * Default git branch for the repository.
79
+ *
80
+ * @default 'main'
81
+ */
82
+ defaultBranch?: string;
77
83
  }
@@ -0,0 +1,9 @@
1
+ import { SimpleGit } from 'simple-git';
2
+ import { Logger } from '../utils/logger';
3
+ export type GetCommitLogCurrentBranch = {
4
+ git: SimpleGit;
5
+ logger?: Logger;
6
+ comparisonBranch?: string;
7
+ comparisonRemote?: string;
8
+ };
9
+ export declare function getCommitLogCurrentBranch({ git, logger, comparisonBranch, comparisonRemote, }: GetCommitLogCurrentBranch): Promise<string[]>;
@@ -0,0 +1,5 @@
1
+ import { SimpleGit } from 'simple-git';
2
+ export type GetCurrentBranchName = {
3
+ git: SimpleGit;
4
+ };
5
+ export declare function getCurrentBranchName({ git }: GetCurrentBranchName): Promise<string>;
@@ -0,0 +1,2 @@
1
+ import { SimpleGit } from 'simple-git';
2
+ export declare const getRepo: () => SimpleGit;
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":"91d1-106","name":"getPathFromFilePath.ts"},{"uid":"91d1-124","name":"getTokenizer.ts"},{"uid":"91d1-126","name":"logger.ts"},{"uid":"91d1-134","name":"removeUndefined.ts"}]},{"name":"langchain","children":[{"name":"chains/summarize.ts","uid":"91d1-108"},{"uid":"91d1-116","name":"utils.ts"},{"name":"prompts","children":[{"uid":"91d1-118","name":"summarize.ts"},{"uid":"91d1-128","name":"commitDefault.ts"},{"uid":"91d1-178","name":"changelog.ts"}]},{"uid":"91d1-164","name":"executeChain.ts"}]},{"name":"parsers","children":[{"name":"default","children":[{"name":"utils","children":[{"uid":"91d1-110","name":"summarizeDiffs.ts"},{"uid":"91d1-112","name":"createDiffTree.ts"},{"uid":"91d1-114","name":"collectDiffs.ts"}]},{"uid":"91d1-122","name":"index.ts"}]},{"uid":"91d1-150","name":"noResult.ts"}]},{"name":"simple-git","children":[{"uid":"91d1-120","name":"getDiff.ts"},{"uid":"91d1-130","name":"getStatus.ts"},{"uid":"91d1-132","name":"getSummaryText.ts"},{"uid":"91d1-148","name":"getChanges.ts"},{"uid":"91d1-166","name":"createCommit.ts"},{"uid":"91d1-180","name":"getCommitLogRange.ts"}]},{"name":"config","children":[{"name":"services","children":[{"uid":"91d1-136","name":"env.ts"},{"uid":"91d1-138","name":"git.ts"},{"uid":"91d1-140","name":"ignore.ts"},{"uid":"91d1-142","name":"project.ts"},{"uid":"91d1-144","name":"xdg.ts"}]},{"uid":"91d1-146","name":"loadConfig.ts"}]},{"name":"ui","children":[{"uid":"91d1-152","name":"helpers.ts"},{"uid":"91d1-154","name":"logResult.ts"},{"uid":"91d1-156","name":"editResult.ts"},{"uid":"91d1-158","name":"getUserReviewDecision.ts"},{"uid":"91d1-160","name":"editPrompt.ts"},{"uid":"91d1-162","name":"generateAndReviewLoop.ts"},{"uid":"91d1-168","name":"logSuccess.ts"},{"uid":"91d1-170","name":"handleResult.ts"}]}]},{"name":"commands","children":[{"name":"commit","children":[{"uid":"91d1-172","name":"handler.ts"},{"uid":"91d1-174","name":"options.ts"},{"uid":"91d1-176","name":"index.ts"}]},{"name":"changelog","children":[{"uid":"91d1-182","name":"handler.ts"},{"uid":"91d1-184","name":"options.ts"},{"uid":"91d1-186","name":"index.ts"}]}]},{"uid":"91d1-188","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"91d1-106":{"renderedLength":256,"gzipLength":0,"brotliLength":151,"metaUid":"91d1-105"},"91d1-108":{"renderedLength":442,"gzipLength":0,"brotliLength":201,"metaUid":"91d1-107"},"91d1-110":{"renderedLength":3917,"gzipLength":0,"brotliLength":1170,"metaUid":"91d1-109"},"91d1-112":{"renderedLength":1861,"gzipLength":0,"brotliLength":515,"metaUid":"91d1-111"},"91d1-114":{"renderedLength":1186,"gzipLength":0,"brotliLength":416,"metaUid":"91d1-113"},"91d1-116":{"renderedLength":2445,"gzipLength":0,"brotliLength":706,"metaUid":"91d1-115"},"91d1-118":{"renderedLength":403,"gzipLength":0,"brotliLength":232,"metaUid":"91d1-117"},"91d1-120":{"renderedLength":2185,"gzipLength":0,"brotliLength":628,"metaUid":"91d1-119"},"91d1-122":{"renderedLength":1153,"gzipLength":0,"brotliLength":469,"metaUid":"91d1-121"},"91d1-124":{"renderedLength":573,"gzipLength":0,"brotliLength":239,"metaUid":"91d1-123"},"91d1-126":{"renderedLength":1634,"gzipLength":0,"brotliLength":400,"metaUid":"91d1-125"},"91d1-128":{"renderedLength":1013,"gzipLength":0,"brotliLength":380,"metaUid":"91d1-127"},"91d1-130":{"renderedLength":1086,"gzipLength":0,"brotliLength":291,"metaUid":"91d1-129"},"91d1-132":{"renderedLength":463,"gzipLength":0,"brotliLength":217,"metaUid":"91d1-131"},"91d1-134":{"renderedLength":258,"gzipLength":0,"brotliLength":141,"metaUid":"91d1-133"},"91d1-136":{"renderedLength":990,"gzipLength":0,"brotliLength":352,"metaUid":"91d1-135"},"91d1-138":{"renderedLength":1356,"gzipLength":0,"brotliLength":377,"metaUid":"91d1-137"},"91d1-140":{"renderedLength":927,"gzipLength":0,"brotliLength":271,"metaUid":"91d1-139"},"91d1-142":{"renderedLength":367,"gzipLength":0,"brotliLength":172,"metaUid":"91d1-141"},"91d1-144":{"renderedLength":539,"gzipLength":0,"brotliLength":260,"metaUid":"91d1-143"},"91d1-146":{"renderedLength":993,"gzipLength":0,"brotliLength":392,"metaUid":"91d1-145"},"91d1-148":{"renderedLength":2586,"gzipLength":0,"brotliLength":552,"metaUid":"91d1-147"},"91d1-150":{"renderedLength":1265,"gzipLength":0,"brotliLength":413,"metaUid":"91d1-149"},"91d1-152":{"renderedLength":147,"gzipLength":0,"brotliLength":109,"metaUid":"91d1-151"},"91d1-154":{"renderedLength":141,"gzipLength":0,"brotliLength":121,"metaUid":"91d1-153"},"91d1-156":{"renderedLength":350,"gzipLength":0,"brotliLength":172,"metaUid":"91d1-155"},"91d1-158":{"renderedLength":1322,"gzipLength":0,"brotliLength":355,"metaUid":"91d1-157"},"91d1-160":{"renderedLength":321,"gzipLength":0,"brotliLength":167,"metaUid":"91d1-159"},"91d1-162":{"renderedLength":2247,"gzipLength":0,"brotliLength":571,"metaUid":"91d1-161"},"91d1-164":{"renderedLength":687,"gzipLength":0,"brotliLength":275,"metaUid":"91d1-163"},"91d1-166":{"renderedLength":87,"gzipLength":0,"brotliLength":71,"metaUid":"91d1-165"},"91d1-168":{"renderedLength":94,"gzipLength":0,"brotliLength":98,"metaUid":"91d1-167"},"91d1-170":{"renderedLength":371,"gzipLength":0,"brotliLength":167,"metaUid":"91d1-169"},"91d1-172":{"renderedLength":1870,"gzipLength":0,"brotliLength":639,"metaUid":"91d1-171"},"91d1-174":{"renderedLength":1347,"gzipLength":0,"brotliLength":379,"metaUid":"91d1-173"},"91d1-176":{"renderedLength":149,"gzipLength":0,"brotliLength":84,"metaUid":"91d1-175"},"91d1-178":{"renderedLength":358,"gzipLength":0,"brotliLength":201,"metaUid":"91d1-177"},"91d1-180":{"renderedLength":667,"gzipLength":0,"brotliLength":304,"metaUid":"91d1-179"},"91d1-182":{"renderedLength":1961,"gzipLength":0,"brotliLength":664,"metaUid":"91d1-181"},"91d1-184":{"renderedLength":1348,"gzipLength":0,"brotliLength":381,"metaUid":"91d1-183"},"91d1-186":{"renderedLength":139,"gzipLength":0,"brotliLength":87,"metaUid":"91d1-185"},"91d1-188":{"renderedLength":478,"gzipLength":0,"brotliLength":197,"metaUid":"91d1-187"}},"nodeMetas":{"91d1-105":{"id":"/src/lib/utils/getPathFromFilePath.ts","moduleParts":{"index.js":"91d1-106"},"imported":[],"importedBy":[{"uid":"91d1-109"}]},"91d1-107":{"id":"/src/lib/langchain/chains/summarize.ts","moduleParts":{"index.js":"91d1-108"},"imported":[{"uid":"91d1-209"}],"importedBy":[{"uid":"91d1-109"}]},"91d1-109":{"id":"/src/lib/parsers/default/utils/summarizeDiffs.ts","moduleParts":{"index.js":"91d1-110"},"imported":[{"uid":"91d1-203"},{"uid":"91d1-105"},{"uid":"91d1-107"}],"importedBy":[{"uid":"91d1-121"}]},"91d1-111":{"id":"/src/lib/parsers/default/utils/createDiffTree.ts","moduleParts":{"index.js":"91d1-112"},"imported":[],"importedBy":[{"uid":"91d1-121"}]},"91d1-113":{"id":"/src/lib/parsers/default/utils/collectDiffs.ts","moduleParts":{"index.js":"91d1-114"},"imported":[],"importedBy":[{"uid":"91d1-121"}]},"91d1-115":{"id":"/src/lib/langchain/utils.ts","moduleParts":{"index.js":"91d1-116"},"imported":[{"uid":"91d1-197"},{"uid":"91d1-196"},{"uid":"91d1-198"},{"uid":"91d1-199"},{"uid":"91d1-200"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"},{"uid":"91d1-121"},{"uid":"91d1-159"}]},"91d1-117":{"id":"/src/lib/langchain/prompts/summarize.ts","moduleParts":{"index.js":"91d1-118"},"imported":[{"uid":"91d1-196"}],"importedBy":[{"uid":"91d1-121"},{"uid":"91d1-145"}]},"91d1-119":{"id":"/src/lib/simple-git/getDiff.ts","moduleParts":{"index.js":"91d1-120"},"imported":[{"uid":"91d1-204"}],"importedBy":[{"uid":"91d1-121"}]},"91d1-121":{"id":"/src/lib/parsers/default/index.ts","moduleParts":{"index.js":"91d1-122"},"imported":[{"uid":"91d1-109"},{"uid":"91d1-111"},{"uid":"91d1-113"},{"uid":"91d1-115"},{"uid":"91d1-117"},{"uid":"91d1-119"}],"importedBy":[{"uid":"91d1-171"}]},"91d1-123":{"id":"/src/lib/utils/getTokenizer.ts","moduleParts":{"index.js":"91d1-124"},"imported":[{"uid":"91d1-191"}],"importedBy":[{"uid":"91d1-171"}]},"91d1-125":{"id":"/src/lib/utils/logger.ts","moduleParts":{"index.js":"91d1-126"},"imported":[{"uid":"91d1-192"},{"uid":"91d1-193"},{"uid":"91d1-194"},{"uid":"91d1-195"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"}]},"91d1-127":{"id":"/src/lib/langchain/prompts/commitDefault.ts","moduleParts":{"index.js":"91d1-128"},"imported":[{"uid":"91d1-196"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-159"}]},"91d1-129":{"id":"/src/lib/simple-git/getStatus.ts","moduleParts":{"index.js":"91d1-130"},"imported":[],"importedBy":[{"uid":"91d1-147"},{"uid":"91d1-131"}]},"91d1-131":{"id":"/src/lib/simple-git/getSummaryText.ts","moduleParts":{"index.js":"91d1-132"},"imported":[{"uid":"91d1-129"}],"importedBy":[{"uid":"91d1-147"}]},"91d1-133":{"id":"/src/lib/utils/removeUndefined.ts","moduleParts":{"index.js":"91d1-134"},"imported":[],"importedBy":[{"uid":"91d1-135"}]},"91d1-135":{"id":"/src/lib/config/services/env.ts","moduleParts":{"index.js":"91d1-136"},"imported":[{"uid":"91d1-133"}],"importedBy":[{"uid":"91d1-145"}]},"91d1-137":{"id":"/src/lib/config/services/git.ts","moduleParts":{"index.js":"91d1-138"},"imported":[{"uid":"91d1-205"},{"uid":"91d1-206"},{"uid":"91d1-201"},{"uid":"91d1-207"}],"importedBy":[{"uid":"91d1-145"}]},"91d1-139":{"id":"/src/lib/config/services/ignore.ts","moduleParts":{"index.js":"91d1-140"},"imported":[{"uid":"91d1-205"}],"importedBy":[{"uid":"91d1-145"}]},"91d1-141":{"id":"/src/lib/config/services/project.ts","moduleParts":{"index.js":"91d1-142"},"imported":[{"uid":"91d1-205"}],"importedBy":[{"uid":"91d1-145"}]},"91d1-143":{"id":"/src/lib/config/services/xdg.ts","moduleParts":{"index.js":"91d1-144"},"imported":[{"uid":"91d1-205"},{"uid":"91d1-201"},{"uid":"91d1-206"}],"importedBy":[{"uid":"91d1-145"}]},"91d1-145":{"id":"/src/lib/config/loadConfig.ts","moduleParts":{"index.js":"91d1-146"},"imported":[{"uid":"91d1-135"},{"uid":"91d1-137"},{"uid":"91d1-139"},{"uid":"91d1-141"},{"uid":"91d1-143"},{"uid":"91d1-117"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"},{"uid":"91d1-147"}]},"91d1-147":{"id":"/src/lib/simple-git/getChanges.ts","moduleParts":{"index.js":"91d1-148"},"imported":[{"uid":"91d1-201"},{"uid":"91d1-202"},{"uid":"91d1-129"},{"uid":"91d1-131"},{"uid":"91d1-145"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-149"}]},"91d1-149":{"id":"/src/lib/parsers/noResult.ts","moduleParts":{"index.js":"91d1-150"},"imported":[{"uid":"91d1-147"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"}]},"91d1-151":{"id":"/src/lib/ui/helpers.ts","moduleParts":{"index.js":"91d1-152"},"imported":[{"uid":"91d1-192"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"},{"uid":"91d1-153"}]},"91d1-153":{"id":"/src/lib/ui/logResult.ts","moduleParts":{"index.js":"91d1-154"},"imported":[{"uid":"91d1-192"},{"uid":"91d1-151"}],"importedBy":[{"uid":"91d1-161"}]},"91d1-155":{"id":"/src/lib/ui/editResult.ts","moduleParts":{"index.js":"91d1-156"},"imported":[{"uid":"91d1-208"}],"importedBy":[{"uid":"91d1-161"}]},"91d1-157":{"id":"/src/lib/ui/getUserReviewDecision.ts","moduleParts":{"index.js":"91d1-158"},"imported":[{"uid":"91d1-208"}],"importedBy":[{"uid":"91d1-161"}]},"91d1-159":{"id":"/src/lib/ui/editPrompt.ts","moduleParts":{"index.js":"91d1-160"},"imported":[{"uid":"91d1-208"},{"uid":"91d1-127"},{"uid":"91d1-115"}],"importedBy":[{"uid":"91d1-161"}]},"91d1-161":{"id":"/src/lib/ui/generateAndReviewLoop.ts","moduleParts":{"index.js":"91d1-162"},"imported":[{"uid":"91d1-153"},{"uid":"91d1-155"},{"uid":"91d1-157"},{"uid":"91d1-159"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"}]},"91d1-163":{"id":"/src/lib/langchain/executeChain.ts","moduleParts":{"index.js":"91d1-164"},"imported":[{"uid":"91d1-198"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"}]},"91d1-165":{"id":"/src/lib/simple-git/createCommit.ts","moduleParts":{"index.js":"91d1-166"},"imported":[],"importedBy":[{"uid":"91d1-169"}]},"91d1-167":{"id":"/src/lib/ui/logSuccess.ts","moduleParts":{"index.js":"91d1-168"},"imported":[{"uid":"91d1-192"}],"importedBy":[{"uid":"91d1-169"}]},"91d1-169":{"id":"/src/lib/ui/handleResult.ts","moduleParts":{"index.js":"91d1-170"},"imported":[{"uid":"91d1-165"},{"uid":"91d1-167"}],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"}]},"91d1-171":{"id":"/src/commands/commit/handler.ts","moduleParts":{"index.js":"91d1-172"},"imported":[{"uid":"91d1-121"},{"uid":"91d1-123"},{"uid":"91d1-125"},{"uid":"91d1-127"},{"uid":"91d1-115"},{"uid":"91d1-149"},{"uid":"91d1-147"},{"uid":"91d1-190"},{"uid":"91d1-145"},{"uid":"91d1-151"},{"uid":"91d1-161"},{"uid":"91d1-163"},{"uid":"91d1-169"}],"importedBy":[{"uid":"91d1-175"}]},"91d1-173":{"id":"/src/commands/commit/options.ts","moduleParts":{"index.js":"91d1-174"},"imported":[],"importedBy":[{"uid":"91d1-175"}]},"91d1-175":{"id":"/src/commands/commit/index.ts","moduleParts":{"index.js":"91d1-176"},"imported":[{"uid":"91d1-171"},{"uid":"91d1-173"}],"importedBy":[{"uid":"91d1-187"}]},"91d1-177":{"id":"/src/lib/langchain/prompts/changelog.ts","moduleParts":{"index.js":"91d1-178"},"imported":[{"uid":"91d1-196"}],"importedBy":[{"uid":"91d1-181"}]},"91d1-179":{"id":"/src/lib/simple-git/getCommitLogRange.ts","moduleParts":{"index.js":"91d1-180"},"imported":[],"importedBy":[{"uid":"91d1-181"}]},"91d1-181":{"id":"/src/commands/changelog/handler.ts","moduleParts":{"index.js":"91d1-182"},"imported":[{"uid":"91d1-125"},{"uid":"91d1-115"},{"uid":"91d1-190"},{"uid":"91d1-145"},{"uid":"91d1-151"},{"uid":"91d1-161"},{"uid":"91d1-163"},{"uid":"91d1-149"},{"uid":"91d1-169"},{"uid":"91d1-177"},{"uid":"91d1-179"}],"importedBy":[{"uid":"91d1-185"}]},"91d1-183":{"id":"/src/commands/changelog/options.ts","moduleParts":{"index.js":"91d1-184"},"imported":[],"importedBy":[{"uid":"91d1-185"}]},"91d1-185":{"id":"/src/commands/changelog/index.ts","moduleParts":{"index.js":"91d1-186"},"imported":[{"uid":"91d1-181"},{"uid":"91d1-183"}],"importedBy":[{"uid":"91d1-187"}]},"91d1-187":{"id":"/src/index.ts","moduleParts":{"index.js":"91d1-188"},"imported":[{"uid":"91d1-189"},{"uid":"91d1-175"},{"uid":"91d1-185"}],"importedBy":[],"isEntry":true},"91d1-189":{"id":"yargs","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-187"}],"isExternal":true},"91d1-190":{"id":"simple-git","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-171"},{"uid":"91d1-181"}],"isExternal":true},"91d1-191":{"id":"gpt3-tokenizer","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-123"}],"isExternal":true},"91d1-192":{"id":"chalk","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-125"},{"uid":"91d1-151"},{"uid":"91d1-153"},{"uid":"91d1-167"}],"isExternal":true},"91d1-193":{"id":"ora","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-125"}],"isExternal":true},"91d1-194":{"id":"performance-now","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-125"}],"isExternal":true},"91d1-195":{"id":"pretty-ms","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-125"}],"isExternal":true},"91d1-196":{"id":"langchain/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-127"},{"uid":"91d1-115"},{"uid":"91d1-177"},{"uid":"91d1-117"}],"isExternal":true},"91d1-197":{"id":"langchain/llms/hf","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-115"}],"isExternal":true},"91d1-198":{"id":"langchain/chains","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-115"},{"uid":"91d1-163"}],"isExternal":true},"91d1-199":{"id":"langchain/llms/openai","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-115"}],"isExternal":true},"91d1-200":{"id":"langchain/text_splitter","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-115"}],"isExternal":true},"91d1-201":{"id":"path","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-147"},{"uid":"91d1-137"},{"uid":"91d1-143"}],"isExternal":true},"91d1-202":{"id":"minimatch","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-147"}],"isExternal":true},"91d1-203":{"id":"p-queue","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-109"}],"isExternal":true},"91d1-204":{"id":"diff","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-119"}],"isExternal":true},"91d1-205":{"id":"fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-137"},{"uid":"91d1-139"},{"uid":"91d1-141"},{"uid":"91d1-143"}],"isExternal":true},"91d1-206":{"id":"os","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-137"},{"uid":"91d1-143"}],"isExternal":true},"91d1-207":{"id":"ini","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-137"}],"isExternal":true},"91d1-208":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-155"},{"uid":"91d1-157"},{"uid":"91d1-159"}],"isExternal":true},"91d1-209":{"id":"langchain/document","moduleParts":{},"imported":[],"importedBy":[{"uid":"91d1-107"}],"isExternal":true}},"env":{"rollup":"3.26.3"},"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":"6f6c-112","name":"getPathFromFilePath.ts"},{"uid":"6f6c-130","name":"getTokenizer.ts"},{"uid":"6f6c-132","name":"logger.ts"},{"uid":"6f6c-140","name":"removeUndefined.ts"}]},{"name":"langchain","children":[{"name":"chains/summarize.ts","uid":"6f6c-114"},{"uid":"6f6c-122","name":"utils.ts"},{"name":"prompts","children":[{"uid":"6f6c-124","name":"summarize.ts"},{"uid":"6f6c-134","name":"commitDefault.ts"},{"uid":"6f6c-186","name":"changelog.ts"}]},{"uid":"6f6c-170","name":"executeChain.ts"}]},{"name":"parsers","children":[{"name":"default","children":[{"name":"utils","children":[{"uid":"6f6c-116","name":"summarizeDiffs.ts"},{"uid":"6f6c-118","name":"createDiffTree.ts"},{"uid":"6f6c-120","name":"collectDiffs.ts"}]},{"uid":"6f6c-128","name":"index.ts"}]},{"uid":"6f6c-156","name":"noResult.ts"}]},{"name":"simple-git","children":[{"uid":"6f6c-126","name":"getDiff.ts"},{"uid":"6f6c-136","name":"getStatus.ts"},{"uid":"6f6c-138","name":"getSummaryText.ts"},{"uid":"6f6c-154","name":"getChanges.ts"},{"uid":"6f6c-172","name":"createCommit.ts"},{"uid":"6f6c-178","name":"getRepo.ts"},{"uid":"6f6c-188","name":"getCommitLogRange.ts"},{"uid":"6f6c-190","name":"getCurrentBranchName.ts"},{"uid":"6f6c-192","name":"getCommitLogCurrentBranch.ts"}]},{"name":"config","children":[{"name":"services","children":[{"uid":"6f6c-142","name":"env.ts"},{"uid":"6f6c-144","name":"git.ts"},{"uid":"6f6c-146","name":"ignore.ts"},{"uid":"6f6c-148","name":"project.ts"},{"uid":"6f6c-150","name":"xdg.ts"}]},{"uid":"6f6c-152","name":"loadConfig.ts"}]},{"name":"ui","children":[{"uid":"6f6c-158","name":"helpers.ts"},{"uid":"6f6c-160","name":"logResult.ts"},{"uid":"6f6c-162","name":"editResult.ts"},{"uid":"6f6c-164","name":"getUserReviewDecision.ts"},{"uid":"6f6c-166","name":"editPrompt.ts"},{"uid":"6f6c-168","name":"generateAndReviewLoop.ts"},{"uid":"6f6c-174","name":"logSuccess.ts"},{"uid":"6f6c-176","name":"handleResult.ts"}]}]},{"name":"commands","children":[{"name":"commit","children":[{"uid":"6f6c-180","name":"handler.ts"},{"uid":"6f6c-182","name":"options.ts"},{"uid":"6f6c-184","name":"index.ts"}]},{"name":"changelog","children":[{"uid":"6f6c-194","name":"handler.ts"},{"uid":"6f6c-196","name":"options.ts"},{"uid":"6f6c-198","name":"index.ts"}]}]},{"uid":"6f6c-200","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"6f6c-112":{"renderedLength":256,"gzipLength":0,"brotliLength":151,"metaUid":"6f6c-111"},"6f6c-114":{"renderedLength":442,"gzipLength":0,"brotliLength":201,"metaUid":"6f6c-113"},"6f6c-116":{"renderedLength":3917,"gzipLength":0,"brotliLength":1170,"metaUid":"6f6c-115"},"6f6c-118":{"renderedLength":1861,"gzipLength":0,"brotliLength":515,"metaUid":"6f6c-117"},"6f6c-120":{"renderedLength":1186,"gzipLength":0,"brotliLength":416,"metaUid":"6f6c-119"},"6f6c-122":{"renderedLength":2445,"gzipLength":0,"brotliLength":706,"metaUid":"6f6c-121"},"6f6c-124":{"renderedLength":403,"gzipLength":0,"brotliLength":232,"metaUid":"6f6c-123"},"6f6c-126":{"renderedLength":2185,"gzipLength":0,"brotliLength":628,"metaUid":"6f6c-125"},"6f6c-128":{"renderedLength":1153,"gzipLength":0,"brotliLength":469,"metaUid":"6f6c-127"},"6f6c-130":{"renderedLength":573,"gzipLength":0,"brotliLength":239,"metaUid":"6f6c-129"},"6f6c-132":{"renderedLength":1634,"gzipLength":0,"brotliLength":400,"metaUid":"6f6c-131"},"6f6c-134":{"renderedLength":1013,"gzipLength":0,"brotliLength":380,"metaUid":"6f6c-133"},"6f6c-136":{"renderedLength":1086,"gzipLength":0,"brotliLength":291,"metaUid":"6f6c-135"},"6f6c-138":{"renderedLength":463,"gzipLength":0,"brotliLength":217,"metaUid":"6f6c-137"},"6f6c-140":{"renderedLength":258,"gzipLength":0,"brotliLength":141,"metaUid":"6f6c-139"},"6f6c-142":{"renderedLength":1059,"gzipLength":0,"brotliLength":371,"metaUid":"6f6c-141"},"6f6c-144":{"renderedLength":1444,"gzipLength":0,"brotliLength":390,"metaUid":"6f6c-143"},"6f6c-146":{"renderedLength":927,"gzipLength":0,"brotliLength":271,"metaUid":"6f6c-145"},"6f6c-148":{"renderedLength":461,"gzipLength":0,"brotliLength":225,"metaUid":"6f6c-147"},"6f6c-150":{"renderedLength":539,"gzipLength":0,"brotliLength":260,"metaUid":"6f6c-149"},"6f6c-152":{"renderedLength":1020,"gzipLength":0,"brotliLength":403,"metaUid":"6f6c-151"},"6f6c-154":{"renderedLength":2586,"gzipLength":0,"brotliLength":552,"metaUid":"6f6c-153"},"6f6c-156":{"renderedLength":1265,"gzipLength":0,"brotliLength":413,"metaUid":"6f6c-155"},"6f6c-158":{"renderedLength":147,"gzipLength":0,"brotliLength":109,"metaUid":"6f6c-157"},"6f6c-160":{"renderedLength":141,"gzipLength":0,"brotliLength":121,"metaUid":"6f6c-159"},"6f6c-162":{"renderedLength":350,"gzipLength":0,"brotliLength":172,"metaUid":"6f6c-161"},"6f6c-164":{"renderedLength":1322,"gzipLength":0,"brotliLength":355,"metaUid":"6f6c-163"},"6f6c-166":{"renderedLength":321,"gzipLength":0,"brotliLength":167,"metaUid":"6f6c-165"},"6f6c-168":{"renderedLength":2247,"gzipLength":0,"brotliLength":571,"metaUid":"6f6c-167"},"6f6c-170":{"renderedLength":687,"gzipLength":0,"brotliLength":275,"metaUid":"6f6c-169"},"6f6c-172":{"renderedLength":87,"gzipLength":0,"brotliLength":71,"metaUid":"6f6c-171"},"6f6c-174":{"renderedLength":94,"gzipLength":0,"brotliLength":98,"metaUid":"6f6c-173"},"6f6c-176":{"renderedLength":371,"gzipLength":0,"brotliLength":167,"metaUid":"6f6c-175"},"6f6c-178":{"renderedLength":210,"gzipLength":0,"brotliLength":130,"metaUid":"6f6c-177"},"6f6c-180":{"renderedLength":1836,"gzipLength":0,"brotliLength":637,"metaUid":"6f6c-179"},"6f6c-182":{"renderedLength":1347,"gzipLength":0,"brotliLength":379,"metaUid":"6f6c-181"},"6f6c-184":{"renderedLength":149,"gzipLength":0,"brotliLength":84,"metaUid":"6f6c-183"},"6f6c-186":{"renderedLength":358,"gzipLength":0,"brotliLength":201,"metaUid":"6f6c-185"},"6f6c-188":{"renderedLength":508,"gzipLength":0,"brotliLength":272,"metaUid":"6f6c-187"},"6f6c-190":{"renderedLength":105,"gzipLength":0,"brotliLength":96,"metaUid":"6f6c-189"},"6f6c-192":{"renderedLength":1908,"gzipLength":0,"brotliLength":565,"metaUid":"6f6c-191"},"6f6c-194":{"renderedLength":2371,"gzipLength":0,"brotliLength":732,"metaUid":"6f6c-193"},"6f6c-196":{"renderedLength":1320,"gzipLength":0,"brotliLength":372,"metaUid":"6f6c-195"},"6f6c-198":{"renderedLength":139,"gzipLength":0,"brotliLength":87,"metaUid":"6f6c-197"},"6f6c-200":{"renderedLength":478,"gzipLength":0,"brotliLength":197,"metaUid":"6f6c-199"}},"nodeMetas":{"6f6c-111":{"id":"/src/lib/utils/getPathFromFilePath.ts","moduleParts":{"index.js":"6f6c-112"},"imported":[],"importedBy":[{"uid":"6f6c-115"}]},"6f6c-113":{"id":"/src/lib/langchain/chains/summarize.ts","moduleParts":{"index.js":"6f6c-114"},"imported":[{"uid":"6f6c-221"}],"importedBy":[{"uid":"6f6c-115"}]},"6f6c-115":{"id":"/src/lib/parsers/default/utils/summarizeDiffs.ts","moduleParts":{"index.js":"6f6c-116"},"imported":[{"uid":"6f6c-215"},{"uid":"6f6c-111"},{"uid":"6f6c-113"}],"importedBy":[{"uid":"6f6c-127"}]},"6f6c-117":{"id":"/src/lib/parsers/default/utils/createDiffTree.ts","moduleParts":{"index.js":"6f6c-118"},"imported":[],"importedBy":[{"uid":"6f6c-127"}]},"6f6c-119":{"id":"/src/lib/parsers/default/utils/collectDiffs.ts","moduleParts":{"index.js":"6f6c-120"},"imported":[],"importedBy":[{"uid":"6f6c-127"}]},"6f6c-121":{"id":"/src/lib/langchain/utils.ts","moduleParts":{"index.js":"6f6c-122"},"imported":[{"uid":"6f6c-208"},{"uid":"6f6c-207"},{"uid":"6f6c-209"},{"uid":"6f6c-210"},{"uid":"6f6c-211"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-193"},{"uid":"6f6c-127"},{"uid":"6f6c-165"}]},"6f6c-123":{"id":"/src/lib/langchain/prompts/summarize.ts","moduleParts":{"index.js":"6f6c-124"},"imported":[{"uid":"6f6c-207"}],"importedBy":[{"uid":"6f6c-127"},{"uid":"6f6c-151"}]},"6f6c-125":{"id":"/src/lib/simple-git/getDiff.ts","moduleParts":{"index.js":"6f6c-126"},"imported":[{"uid":"6f6c-216"}],"importedBy":[{"uid":"6f6c-127"}]},"6f6c-127":{"id":"/src/lib/parsers/default/index.ts","moduleParts":{"index.js":"6f6c-128"},"imported":[{"uid":"6f6c-115"},{"uid":"6f6c-117"},{"uid":"6f6c-119"},{"uid":"6f6c-121"},{"uid":"6f6c-123"},{"uid":"6f6c-125"}],"importedBy":[{"uid":"6f6c-179"}]},"6f6c-129":{"id":"/src/lib/utils/getTokenizer.ts","moduleParts":{"index.js":"6f6c-130"},"imported":[{"uid":"6f6c-202"}],"importedBy":[{"uid":"6f6c-179"}]},"6f6c-131":{"id":"/src/lib/utils/logger.ts","moduleParts":{"index.js":"6f6c-132"},"imported":[{"uid":"6f6c-203"},{"uid":"6f6c-204"},{"uid":"6f6c-205"},{"uid":"6f6c-206"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-193"}]},"6f6c-133":{"id":"/src/lib/langchain/prompts/commitDefault.ts","moduleParts":{"index.js":"6f6c-134"},"imported":[{"uid":"6f6c-207"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-165"}]},"6f6c-135":{"id":"/src/lib/simple-git/getStatus.ts","moduleParts":{"index.js":"6f6c-136"},"imported":[],"importedBy":[{"uid":"6f6c-153"},{"uid":"6f6c-137"}]},"6f6c-137":{"id":"/src/lib/simple-git/getSummaryText.ts","moduleParts":{"index.js":"6f6c-138"},"imported":[{"uid":"6f6c-135"}],"importedBy":[{"uid":"6f6c-153"}]},"6f6c-139":{"id":"/src/lib/utils/removeUndefined.ts","moduleParts":{"index.js":"6f6c-140"},"imported":[],"importedBy":[{"uid":"6f6c-141"}]},"6f6c-141":{"id":"/src/lib/config/services/env.ts","moduleParts":{"index.js":"6f6c-142"},"imported":[{"uid":"6f6c-139"}],"importedBy":[{"uid":"6f6c-151"}]},"6f6c-143":{"id":"/src/lib/config/services/git.ts","moduleParts":{"index.js":"6f6c-144"},"imported":[{"uid":"6f6c-217"},{"uid":"6f6c-218"},{"uid":"6f6c-212"},{"uid":"6f6c-219"}],"importedBy":[{"uid":"6f6c-151"}]},"6f6c-145":{"id":"/src/lib/config/services/ignore.ts","moduleParts":{"index.js":"6f6c-146"},"imported":[{"uid":"6f6c-217"}],"importedBy":[{"uid":"6f6c-151"}]},"6f6c-147":{"id":"/src/lib/config/services/project.ts","moduleParts":{"index.js":"6f6c-148"},"imported":[{"uid":"6f6c-217"}],"importedBy":[{"uid":"6f6c-151"}]},"6f6c-149":{"id":"/src/lib/config/services/xdg.ts","moduleParts":{"index.js":"6f6c-150"},"imported":[{"uid":"6f6c-217"},{"uid":"6f6c-212"},{"uid":"6f6c-218"}],"importedBy":[{"uid":"6f6c-151"}]},"6f6c-151":{"id":"/src/lib/config/loadConfig.ts","moduleParts":{"index.js":"6f6c-152"},"imported":[{"uid":"6f6c-141"},{"uid":"6f6c-143"},{"uid":"6f6c-145"},{"uid":"6f6c-147"},{"uid":"6f6c-149"},{"uid":"6f6c-123"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-193"},{"uid":"6f6c-153"}]},"6f6c-153":{"id":"/src/lib/simple-git/getChanges.ts","moduleParts":{"index.js":"6f6c-154"},"imported":[{"uid":"6f6c-212"},{"uid":"6f6c-213"},{"uid":"6f6c-135"},{"uid":"6f6c-137"},{"uid":"6f6c-151"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-155"}]},"6f6c-155":{"id":"/src/lib/parsers/noResult.ts","moduleParts":{"index.js":"6f6c-156"},"imported":[{"uid":"6f6c-153"}],"importedBy":[{"uid":"6f6c-179"}]},"6f6c-157":{"id":"/src/lib/ui/helpers.ts","moduleParts":{"index.js":"6f6c-158"},"imported":[{"uid":"6f6c-203"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-193"},{"uid":"6f6c-159"}]},"6f6c-159":{"id":"/src/lib/ui/logResult.ts","moduleParts":{"index.js":"6f6c-160"},"imported":[{"uid":"6f6c-203"},{"uid":"6f6c-157"}],"importedBy":[{"uid":"6f6c-167"}]},"6f6c-161":{"id":"/src/lib/ui/editResult.ts","moduleParts":{"index.js":"6f6c-162"},"imported":[{"uid":"6f6c-220"}],"importedBy":[{"uid":"6f6c-167"}]},"6f6c-163":{"id":"/src/lib/ui/getUserReviewDecision.ts","moduleParts":{"index.js":"6f6c-164"},"imported":[{"uid":"6f6c-220"}],"importedBy":[{"uid":"6f6c-167"}]},"6f6c-165":{"id":"/src/lib/ui/editPrompt.ts","moduleParts":{"index.js":"6f6c-166"},"imported":[{"uid":"6f6c-220"},{"uid":"6f6c-133"},{"uid":"6f6c-121"}],"importedBy":[{"uid":"6f6c-167"}]},"6f6c-167":{"id":"/src/lib/ui/generateAndReviewLoop.ts","moduleParts":{"index.js":"6f6c-168"},"imported":[{"uid":"6f6c-159"},{"uid":"6f6c-161"},{"uid":"6f6c-163"},{"uid":"6f6c-165"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-193"}]},"6f6c-169":{"id":"/src/lib/langchain/executeChain.ts","moduleParts":{"index.js":"6f6c-170"},"imported":[{"uid":"6f6c-209"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-193"}]},"6f6c-171":{"id":"/src/lib/simple-git/createCommit.ts","moduleParts":{"index.js":"6f6c-172"},"imported":[],"importedBy":[{"uid":"6f6c-175"}]},"6f6c-173":{"id":"/src/lib/ui/logSuccess.ts","moduleParts":{"index.js":"6f6c-174"},"imported":[{"uid":"6f6c-203"}],"importedBy":[{"uid":"6f6c-175"}]},"6f6c-175":{"id":"/src/lib/ui/handleResult.ts","moduleParts":{"index.js":"6f6c-176"},"imported":[{"uid":"6f6c-171"},{"uid":"6f6c-173"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-193"}]},"6f6c-177":{"id":"/src/lib/simple-git/getRepo.ts","moduleParts":{"index.js":"6f6c-178"},"imported":[{"uid":"6f6c-214"}],"importedBy":[{"uid":"6f6c-179"},{"uid":"6f6c-193"}]},"6f6c-179":{"id":"/src/commands/commit/handler.ts","moduleParts":{"index.js":"6f6c-180"},"imported":[{"uid":"6f6c-127"},{"uid":"6f6c-129"},{"uid":"6f6c-131"},{"uid":"6f6c-133"},{"uid":"6f6c-121"},{"uid":"6f6c-155"},{"uid":"6f6c-153"},{"uid":"6f6c-151"},{"uid":"6f6c-157"},{"uid":"6f6c-167"},{"uid":"6f6c-169"},{"uid":"6f6c-175"},{"uid":"6f6c-177"}],"importedBy":[{"uid":"6f6c-183"}]},"6f6c-181":{"id":"/src/commands/commit/options.ts","moduleParts":{"index.js":"6f6c-182"},"imported":[],"importedBy":[{"uid":"6f6c-183"}]},"6f6c-183":{"id":"/src/commands/commit/index.ts","moduleParts":{"index.js":"6f6c-184"},"imported":[{"uid":"6f6c-179"},{"uid":"6f6c-181"}],"importedBy":[{"uid":"6f6c-199"}]},"6f6c-185":{"id":"/src/lib/langchain/prompts/changelog.ts","moduleParts":{"index.js":"6f6c-186"},"imported":[{"uid":"6f6c-207"}],"importedBy":[{"uid":"6f6c-193"}]},"6f6c-187":{"id":"/src/lib/simple-git/getCommitLogRange.ts","moduleParts":{"index.js":"6f6c-188"},"imported":[],"importedBy":[{"uid":"6f6c-193"},{"uid":"6f6c-191"}]},"6f6c-189":{"id":"/src/lib/simple-git/getCurrentBranchName.ts","moduleParts":{"index.js":"6f6c-190"},"imported":[],"importedBy":[{"uid":"6f6c-191"}]},"6f6c-191":{"id":"/src/lib/simple-git/getCommitLogCurrentBranch.ts","moduleParts":{"index.js":"6f6c-192"},"imported":[{"uid":"6f6c-187"},{"uid":"6f6c-189"}],"importedBy":[{"uid":"6f6c-193"}]},"6f6c-193":{"id":"/src/commands/changelog/handler.ts","moduleParts":{"index.js":"6f6c-194"},"imported":[{"uid":"6f6c-131"},{"uid":"6f6c-121"},{"uid":"6f6c-151"},{"uid":"6f6c-157"},{"uid":"6f6c-167"},{"uid":"6f6c-169"},{"uid":"6f6c-175"},{"uid":"6f6c-185"},{"uid":"6f6c-187"},{"uid":"6f6c-191"},{"uid":"6f6c-177"}],"importedBy":[{"uid":"6f6c-197"}]},"6f6c-195":{"id":"/src/commands/changelog/options.ts","moduleParts":{"index.js":"6f6c-196"},"imported":[],"importedBy":[{"uid":"6f6c-197"}]},"6f6c-197":{"id":"/src/commands/changelog/index.ts","moduleParts":{"index.js":"6f6c-198"},"imported":[{"uid":"6f6c-193"},{"uid":"6f6c-195"}],"importedBy":[{"uid":"6f6c-199"}]},"6f6c-199":{"id":"/src/index.ts","moduleParts":{"index.js":"6f6c-200"},"imported":[{"uid":"6f6c-201"},{"uid":"6f6c-183"},{"uid":"6f6c-197"}],"importedBy":[],"isEntry":true},"6f6c-201":{"id":"yargs","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-199"}],"isExternal":true},"6f6c-202":{"id":"gpt3-tokenizer","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-129"}],"isExternal":true},"6f6c-203":{"id":"chalk","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-131"},{"uid":"6f6c-157"},{"uid":"6f6c-159"},{"uid":"6f6c-173"}],"isExternal":true},"6f6c-204":{"id":"ora","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-131"}],"isExternal":true},"6f6c-205":{"id":"performance-now","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-131"}],"isExternal":true},"6f6c-206":{"id":"pretty-ms","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-131"}],"isExternal":true},"6f6c-207":{"id":"langchain/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-133"},{"uid":"6f6c-121"},{"uid":"6f6c-185"},{"uid":"6f6c-123"}],"isExternal":true},"6f6c-208":{"id":"langchain/llms/hf","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-121"}],"isExternal":true},"6f6c-209":{"id":"langchain/chains","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-121"},{"uid":"6f6c-169"}],"isExternal":true},"6f6c-210":{"id":"langchain/llms/openai","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-121"}],"isExternal":true},"6f6c-211":{"id":"langchain/text_splitter","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-121"}],"isExternal":true},"6f6c-212":{"id":"path","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-153"},{"uid":"6f6c-143"},{"uid":"6f6c-149"}],"isExternal":true},"6f6c-213":{"id":"minimatch","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-153"}],"isExternal":true},"6f6c-214":{"id":"simple-git","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-177"}],"isExternal":true},"6f6c-215":{"id":"p-queue","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-115"}],"isExternal":true},"6f6c-216":{"id":"diff","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-125"}],"isExternal":true},"6f6c-217":{"id":"fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-143"},{"uid":"6f6c-145"},{"uid":"6f6c-147"},{"uid":"6f6c-149"}],"isExternal":true},"6f6c-218":{"id":"os","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-143"},{"uid":"6f6c-149"}],"isExternal":true},"6f6c-219":{"id":"ini","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-143"}],"isExternal":true},"6f6c-220":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-161"},{"uid":"6f6c-163"},{"uid":"6f6c-165"}],"isExternal":true},"6f6c-221":{"id":"langchain/document","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f6c-113"}],"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.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "zero-effort git commits with coco.",
5
5
  "author": "gfargo <ghfargo@gmail.com>",
6
6
  "license": "MIT",
@@ -79,7 +79,7 @@
79
79
  "ini": "^4.1.1",
80
80
  "langchain": "^0.0.170",
81
81
  "minimatch": "^9.0.3",
82
- "openai": "3.3.0",
82
+ "openai": "4.17.4",
83
83
  "ora": "5.4.1",
84
84
  "p-queue": "5.0.0",
85
85
  "performance-now": "2.1.0",