git-coco 0.4.1 → 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.esm.mjs +89 -26
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.js +89 -26
- package/dist/lib/config/types.d.ts +6 -0
- package/dist/lib/simple-git/getCommitLogCurrentBranch.d.ts +9 -0
- package/dist/lib/simple-git/getCurrentBranchName.d.ts +5 -0
- package/dist/lib/simple-git/getRepo.d.ts +2 -0
- package/dist/stats.html +1 -1
- package/package.json +1 -1
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
|
|
1043
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1179
|
-
|
|
1180
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1216
|
-
|
|
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
|
-
|
|
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: {
|
|
@@ -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[]>;
|
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":"52f8-106","name":"getPathFromFilePath.ts"},{"uid":"52f8-124","name":"getTokenizer.ts"},{"uid":"52f8-126","name":"logger.ts"},{"uid":"52f8-134","name":"removeUndefined.ts"}]},{"name":"langchain","children":[{"name":"chains/summarize.ts","uid":"52f8-108"},{"uid":"52f8-116","name":"utils.ts"},{"name":"prompts","children":[{"uid":"52f8-118","name":"summarize.ts"},{"uid":"52f8-128","name":"commitDefault.ts"},{"uid":"52f8-178","name":"changelog.ts"}]},{"uid":"52f8-164","name":"executeChain.ts"}]},{"name":"parsers","children":[{"name":"default","children":[{"name":"utils","children":[{"uid":"52f8-110","name":"summarizeDiffs.ts"},{"uid":"52f8-112","name":"createDiffTree.ts"},{"uid":"52f8-114","name":"collectDiffs.ts"}]},{"uid":"52f8-122","name":"index.ts"}]},{"uid":"52f8-150","name":"noResult.ts"}]},{"name":"simple-git","children":[{"uid":"52f8-120","name":"getDiff.ts"},{"uid":"52f8-130","name":"getStatus.ts"},{"uid":"52f8-132","name":"getSummaryText.ts"},{"uid":"52f8-148","name":"getChanges.ts"},{"uid":"52f8-166","name":"createCommit.ts"},{"uid":"52f8-180","name":"getCommitLogRange.ts"}]},{"name":"config","children":[{"name":"services","children":[{"uid":"52f8-136","name":"env.ts"},{"uid":"52f8-138","name":"git.ts"},{"uid":"52f8-140","name":"ignore.ts"},{"uid":"52f8-142","name":"project.ts"},{"uid":"52f8-144","name":"xdg.ts"}]},{"uid":"52f8-146","name":"loadConfig.ts"}]},{"name":"ui","children":[{"uid":"52f8-152","name":"helpers.ts"},{"uid":"52f8-154","name":"logResult.ts"},{"uid":"52f8-156","name":"editResult.ts"},{"uid":"52f8-158","name":"getUserReviewDecision.ts"},{"uid":"52f8-160","name":"editPrompt.ts"},{"uid":"52f8-162","name":"generateAndReviewLoop.ts"},{"uid":"52f8-168","name":"logSuccess.ts"},{"uid":"52f8-170","name":"handleResult.ts"}]}]},{"name":"commands","children":[{"name":"commit","children":[{"uid":"52f8-172","name":"handler.ts"},{"uid":"52f8-174","name":"options.ts"},{"uid":"52f8-176","name":"index.ts"}]},{"name":"changelog","children":[{"uid":"52f8-182","name":"handler.ts"},{"uid":"52f8-184","name":"options.ts"},{"uid":"52f8-186","name":"index.ts"}]}]},{"uid":"52f8-188","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"52f8-106":{"renderedLength":256,"gzipLength":0,"brotliLength":151,"metaUid":"52f8-105"},"52f8-108":{"renderedLength":442,"gzipLength":0,"brotliLength":201,"metaUid":"52f8-107"},"52f8-110":{"renderedLength":3917,"gzipLength":0,"brotliLength":1170,"metaUid":"52f8-109"},"52f8-112":{"renderedLength":1861,"gzipLength":0,"brotliLength":515,"metaUid":"52f8-111"},"52f8-114":{"renderedLength":1186,"gzipLength":0,"brotliLength":416,"metaUid":"52f8-113"},"52f8-116":{"renderedLength":2445,"gzipLength":0,"brotliLength":706,"metaUid":"52f8-115"},"52f8-118":{"renderedLength":403,"gzipLength":0,"brotliLength":232,"metaUid":"52f8-117"},"52f8-120":{"renderedLength":2185,"gzipLength":0,"brotliLength":628,"metaUid":"52f8-119"},"52f8-122":{"renderedLength":1153,"gzipLength":0,"brotliLength":469,"metaUid":"52f8-121"},"52f8-124":{"renderedLength":573,"gzipLength":0,"brotliLength":239,"metaUid":"52f8-123"},"52f8-126":{"renderedLength":1634,"gzipLength":0,"brotliLength":400,"metaUid":"52f8-125"},"52f8-128":{"renderedLength":1013,"gzipLength":0,"brotliLength":380,"metaUid":"52f8-127"},"52f8-130":{"renderedLength":1086,"gzipLength":0,"brotliLength":291,"metaUid":"52f8-129"},"52f8-132":{"renderedLength":463,"gzipLength":0,"brotliLength":217,"metaUid":"52f8-131"},"52f8-134":{"renderedLength":258,"gzipLength":0,"brotliLength":141,"metaUid":"52f8-133"},"52f8-136":{"renderedLength":990,"gzipLength":0,"brotliLength":352,"metaUid":"52f8-135"},"52f8-138":{"renderedLength":1356,"gzipLength":0,"brotliLength":377,"metaUid":"52f8-137"},"52f8-140":{"renderedLength":927,"gzipLength":0,"brotliLength":271,"metaUid":"52f8-139"},"52f8-142":{"renderedLength":367,"gzipLength":0,"brotliLength":172,"metaUid":"52f8-141"},"52f8-144":{"renderedLength":539,"gzipLength":0,"brotliLength":260,"metaUid":"52f8-143"},"52f8-146":{"renderedLength":993,"gzipLength":0,"brotliLength":392,"metaUid":"52f8-145"},"52f8-148":{"renderedLength":2586,"gzipLength":0,"brotliLength":552,"metaUid":"52f8-147"},"52f8-150":{"renderedLength":1265,"gzipLength":0,"brotliLength":413,"metaUid":"52f8-149"},"52f8-152":{"renderedLength":147,"gzipLength":0,"brotliLength":109,"metaUid":"52f8-151"},"52f8-154":{"renderedLength":141,"gzipLength":0,"brotliLength":121,"metaUid":"52f8-153"},"52f8-156":{"renderedLength":350,"gzipLength":0,"brotliLength":172,"metaUid":"52f8-155"},"52f8-158":{"renderedLength":1322,"gzipLength":0,"brotliLength":355,"metaUid":"52f8-157"},"52f8-160":{"renderedLength":321,"gzipLength":0,"brotliLength":167,"metaUid":"52f8-159"},"52f8-162":{"renderedLength":2247,"gzipLength":0,"brotliLength":571,"metaUid":"52f8-161"},"52f8-164":{"renderedLength":687,"gzipLength":0,"brotliLength":275,"metaUid":"52f8-163"},"52f8-166":{"renderedLength":87,"gzipLength":0,"brotliLength":71,"metaUid":"52f8-165"},"52f8-168":{"renderedLength":94,"gzipLength":0,"brotliLength":98,"metaUid":"52f8-167"},"52f8-170":{"renderedLength":371,"gzipLength":0,"brotliLength":167,"metaUid":"52f8-169"},"52f8-172":{"renderedLength":1870,"gzipLength":0,"brotliLength":639,"metaUid":"52f8-171"},"52f8-174":{"renderedLength":1347,"gzipLength":0,"brotliLength":379,"metaUid":"52f8-173"},"52f8-176":{"renderedLength":149,"gzipLength":0,"brotliLength":84,"metaUid":"52f8-175"},"52f8-178":{"renderedLength":358,"gzipLength":0,"brotliLength":201,"metaUid":"52f8-177"},"52f8-180":{"renderedLength":667,"gzipLength":0,"brotliLength":304,"metaUid":"52f8-179"},"52f8-182":{"renderedLength":1961,"gzipLength":0,"brotliLength":664,"metaUid":"52f8-181"},"52f8-184":{"renderedLength":1348,"gzipLength":0,"brotliLength":381,"metaUid":"52f8-183"},"52f8-186":{"renderedLength":139,"gzipLength":0,"brotliLength":87,"metaUid":"52f8-185"},"52f8-188":{"renderedLength":478,"gzipLength":0,"brotliLength":197,"metaUid":"52f8-187"}},"nodeMetas":{"52f8-105":{"id":"/src/lib/utils/getPathFromFilePath.ts","moduleParts":{"index.js":"52f8-106"},"imported":[],"importedBy":[{"uid":"52f8-109"}]},"52f8-107":{"id":"/src/lib/langchain/chains/summarize.ts","moduleParts":{"index.js":"52f8-108"},"imported":[{"uid":"52f8-209"}],"importedBy":[{"uid":"52f8-109"}]},"52f8-109":{"id":"/src/lib/parsers/default/utils/summarizeDiffs.ts","moduleParts":{"index.js":"52f8-110"},"imported":[{"uid":"52f8-203"},{"uid":"52f8-105"},{"uid":"52f8-107"}],"importedBy":[{"uid":"52f8-121"}]},"52f8-111":{"id":"/src/lib/parsers/default/utils/createDiffTree.ts","moduleParts":{"index.js":"52f8-112"},"imported":[],"importedBy":[{"uid":"52f8-121"}]},"52f8-113":{"id":"/src/lib/parsers/default/utils/collectDiffs.ts","moduleParts":{"index.js":"52f8-114"},"imported":[],"importedBy":[{"uid":"52f8-121"}]},"52f8-115":{"id":"/src/lib/langchain/utils.ts","moduleParts":{"index.js":"52f8-116"},"imported":[{"uid":"52f8-197"},{"uid":"52f8-196"},{"uid":"52f8-198"},{"uid":"52f8-199"},{"uid":"52f8-200"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"},{"uid":"52f8-121"},{"uid":"52f8-159"}]},"52f8-117":{"id":"/src/lib/langchain/prompts/summarize.ts","moduleParts":{"index.js":"52f8-118"},"imported":[{"uid":"52f8-196"}],"importedBy":[{"uid":"52f8-121"},{"uid":"52f8-145"}]},"52f8-119":{"id":"/src/lib/simple-git/getDiff.ts","moduleParts":{"index.js":"52f8-120"},"imported":[{"uid":"52f8-204"}],"importedBy":[{"uid":"52f8-121"}]},"52f8-121":{"id":"/src/lib/parsers/default/index.ts","moduleParts":{"index.js":"52f8-122"},"imported":[{"uid":"52f8-109"},{"uid":"52f8-111"},{"uid":"52f8-113"},{"uid":"52f8-115"},{"uid":"52f8-117"},{"uid":"52f8-119"}],"importedBy":[{"uid":"52f8-171"}]},"52f8-123":{"id":"/src/lib/utils/getTokenizer.ts","moduleParts":{"index.js":"52f8-124"},"imported":[{"uid":"52f8-191"}],"importedBy":[{"uid":"52f8-171"}]},"52f8-125":{"id":"/src/lib/utils/logger.ts","moduleParts":{"index.js":"52f8-126"},"imported":[{"uid":"52f8-192"},{"uid":"52f8-193"},{"uid":"52f8-194"},{"uid":"52f8-195"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"}]},"52f8-127":{"id":"/src/lib/langchain/prompts/commitDefault.ts","moduleParts":{"index.js":"52f8-128"},"imported":[{"uid":"52f8-196"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-159"}]},"52f8-129":{"id":"/src/lib/simple-git/getStatus.ts","moduleParts":{"index.js":"52f8-130"},"imported":[],"importedBy":[{"uid":"52f8-147"},{"uid":"52f8-131"}]},"52f8-131":{"id":"/src/lib/simple-git/getSummaryText.ts","moduleParts":{"index.js":"52f8-132"},"imported":[{"uid":"52f8-129"}],"importedBy":[{"uid":"52f8-147"}]},"52f8-133":{"id":"/src/lib/utils/removeUndefined.ts","moduleParts":{"index.js":"52f8-134"},"imported":[],"importedBy":[{"uid":"52f8-135"}]},"52f8-135":{"id":"/src/lib/config/services/env.ts","moduleParts":{"index.js":"52f8-136"},"imported":[{"uid":"52f8-133"}],"importedBy":[{"uid":"52f8-145"}]},"52f8-137":{"id":"/src/lib/config/services/git.ts","moduleParts":{"index.js":"52f8-138"},"imported":[{"uid":"52f8-205"},{"uid":"52f8-206"},{"uid":"52f8-201"},{"uid":"52f8-207"}],"importedBy":[{"uid":"52f8-145"}]},"52f8-139":{"id":"/src/lib/config/services/ignore.ts","moduleParts":{"index.js":"52f8-140"},"imported":[{"uid":"52f8-205"}],"importedBy":[{"uid":"52f8-145"}]},"52f8-141":{"id":"/src/lib/config/services/project.ts","moduleParts":{"index.js":"52f8-142"},"imported":[{"uid":"52f8-205"}],"importedBy":[{"uid":"52f8-145"}]},"52f8-143":{"id":"/src/lib/config/services/xdg.ts","moduleParts":{"index.js":"52f8-144"},"imported":[{"uid":"52f8-205"},{"uid":"52f8-201"},{"uid":"52f8-206"}],"importedBy":[{"uid":"52f8-145"}]},"52f8-145":{"id":"/src/lib/config/loadConfig.ts","moduleParts":{"index.js":"52f8-146"},"imported":[{"uid":"52f8-135"},{"uid":"52f8-137"},{"uid":"52f8-139"},{"uid":"52f8-141"},{"uid":"52f8-143"},{"uid":"52f8-117"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"},{"uid":"52f8-147"}]},"52f8-147":{"id":"/src/lib/simple-git/getChanges.ts","moduleParts":{"index.js":"52f8-148"},"imported":[{"uid":"52f8-201"},{"uid":"52f8-202"},{"uid":"52f8-129"},{"uid":"52f8-131"},{"uid":"52f8-145"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-149"}]},"52f8-149":{"id":"/src/lib/parsers/noResult.ts","moduleParts":{"index.js":"52f8-150"},"imported":[{"uid":"52f8-147"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"}]},"52f8-151":{"id":"/src/lib/ui/helpers.ts","moduleParts":{"index.js":"52f8-152"},"imported":[{"uid":"52f8-192"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"},{"uid":"52f8-153"}]},"52f8-153":{"id":"/src/lib/ui/logResult.ts","moduleParts":{"index.js":"52f8-154"},"imported":[{"uid":"52f8-192"},{"uid":"52f8-151"}],"importedBy":[{"uid":"52f8-161"}]},"52f8-155":{"id":"/src/lib/ui/editResult.ts","moduleParts":{"index.js":"52f8-156"},"imported":[{"uid":"52f8-208"}],"importedBy":[{"uid":"52f8-161"}]},"52f8-157":{"id":"/src/lib/ui/getUserReviewDecision.ts","moduleParts":{"index.js":"52f8-158"},"imported":[{"uid":"52f8-208"}],"importedBy":[{"uid":"52f8-161"}]},"52f8-159":{"id":"/src/lib/ui/editPrompt.ts","moduleParts":{"index.js":"52f8-160"},"imported":[{"uid":"52f8-208"},{"uid":"52f8-127"},{"uid":"52f8-115"}],"importedBy":[{"uid":"52f8-161"}]},"52f8-161":{"id":"/src/lib/ui/generateAndReviewLoop.ts","moduleParts":{"index.js":"52f8-162"},"imported":[{"uid":"52f8-153"},{"uid":"52f8-155"},{"uid":"52f8-157"},{"uid":"52f8-159"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"}]},"52f8-163":{"id":"/src/lib/langchain/executeChain.ts","moduleParts":{"index.js":"52f8-164"},"imported":[{"uid":"52f8-198"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"}]},"52f8-165":{"id":"/src/lib/simple-git/createCommit.ts","moduleParts":{"index.js":"52f8-166"},"imported":[],"importedBy":[{"uid":"52f8-169"}]},"52f8-167":{"id":"/src/lib/ui/logSuccess.ts","moduleParts":{"index.js":"52f8-168"},"imported":[{"uid":"52f8-192"}],"importedBy":[{"uid":"52f8-169"}]},"52f8-169":{"id":"/src/lib/ui/handleResult.ts","moduleParts":{"index.js":"52f8-170"},"imported":[{"uid":"52f8-165"},{"uid":"52f8-167"}],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"}]},"52f8-171":{"id":"/src/commands/commit/handler.ts","moduleParts":{"index.js":"52f8-172"},"imported":[{"uid":"52f8-121"},{"uid":"52f8-123"},{"uid":"52f8-125"},{"uid":"52f8-127"},{"uid":"52f8-115"},{"uid":"52f8-149"},{"uid":"52f8-147"},{"uid":"52f8-190"},{"uid":"52f8-145"},{"uid":"52f8-151"},{"uid":"52f8-161"},{"uid":"52f8-163"},{"uid":"52f8-169"}],"importedBy":[{"uid":"52f8-175"}]},"52f8-173":{"id":"/src/commands/commit/options.ts","moduleParts":{"index.js":"52f8-174"},"imported":[],"importedBy":[{"uid":"52f8-175"}]},"52f8-175":{"id":"/src/commands/commit/index.ts","moduleParts":{"index.js":"52f8-176"},"imported":[{"uid":"52f8-171"},{"uid":"52f8-173"}],"importedBy":[{"uid":"52f8-187"}]},"52f8-177":{"id":"/src/lib/langchain/prompts/changelog.ts","moduleParts":{"index.js":"52f8-178"},"imported":[{"uid":"52f8-196"}],"importedBy":[{"uid":"52f8-181"}]},"52f8-179":{"id":"/src/lib/simple-git/getCommitLogRange.ts","moduleParts":{"index.js":"52f8-180"},"imported":[],"importedBy":[{"uid":"52f8-181"}]},"52f8-181":{"id":"/src/commands/changelog/handler.ts","moduleParts":{"index.js":"52f8-182"},"imported":[{"uid":"52f8-125"},{"uid":"52f8-115"},{"uid":"52f8-190"},{"uid":"52f8-145"},{"uid":"52f8-151"},{"uid":"52f8-161"},{"uid":"52f8-163"},{"uid":"52f8-149"},{"uid":"52f8-169"},{"uid":"52f8-177"},{"uid":"52f8-179"}],"importedBy":[{"uid":"52f8-185"}]},"52f8-183":{"id":"/src/commands/changelog/options.ts","moduleParts":{"index.js":"52f8-184"},"imported":[],"importedBy":[{"uid":"52f8-185"}]},"52f8-185":{"id":"/src/commands/changelog/index.ts","moduleParts":{"index.js":"52f8-186"},"imported":[{"uid":"52f8-181"},{"uid":"52f8-183"}],"importedBy":[{"uid":"52f8-187"}]},"52f8-187":{"id":"/src/index.ts","moduleParts":{"index.js":"52f8-188"},"imported":[{"uid":"52f8-189"},{"uid":"52f8-175"},{"uid":"52f8-185"}],"importedBy":[],"isEntry":true},"52f8-189":{"id":"yargs","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-187"}],"isExternal":true},"52f8-190":{"id":"simple-git","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-171"},{"uid":"52f8-181"}],"isExternal":true},"52f8-191":{"id":"gpt3-tokenizer","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-123"}],"isExternal":true},"52f8-192":{"id":"chalk","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-125"},{"uid":"52f8-151"},{"uid":"52f8-153"},{"uid":"52f8-167"}],"isExternal":true},"52f8-193":{"id":"ora","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-125"}],"isExternal":true},"52f8-194":{"id":"performance-now","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-125"}],"isExternal":true},"52f8-195":{"id":"pretty-ms","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-125"}],"isExternal":true},"52f8-196":{"id":"langchain/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-127"},{"uid":"52f8-115"},{"uid":"52f8-177"},{"uid":"52f8-117"}],"isExternal":true},"52f8-197":{"id":"langchain/llms/hf","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-115"}],"isExternal":true},"52f8-198":{"id":"langchain/chains","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-115"},{"uid":"52f8-163"}],"isExternal":true},"52f8-199":{"id":"langchain/llms/openai","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-115"}],"isExternal":true},"52f8-200":{"id":"langchain/text_splitter","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-115"}],"isExternal":true},"52f8-201":{"id":"path","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-147"},{"uid":"52f8-137"},{"uid":"52f8-143"}],"isExternal":true},"52f8-202":{"id":"minimatch","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-147"}],"isExternal":true},"52f8-203":{"id":"p-queue","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-109"}],"isExternal":true},"52f8-204":{"id":"diff","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-119"}],"isExternal":true},"52f8-205":{"id":"fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-137"},{"uid":"52f8-139"},{"uid":"52f8-141"},{"uid":"52f8-143"}],"isExternal":true},"52f8-206":{"id":"os","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-137"},{"uid":"52f8-143"}],"isExternal":true},"52f8-207":{"id":"ini","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-137"}],"isExternal":true},"52f8-208":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-155"},{"uid":"52f8-157"},{"uid":"52f8-159"}],"isExternal":true},"52f8-209":{"id":"langchain/document","moduleParts":{},"imported":[],"importedBy":[{"uid":"52f8-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;
|