git-coco 0.3.0 → 0.3.2

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/stats.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta charset="UTF-8" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
8
- <title>Commit-Copilot Rollup Visualizer</title>
8
+ <title>git-coco rollup visualizer</title>
9
9
  <style>
10
10
  :root {
11
11
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
@@ -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":"ea0f-79","name":"removeUndefined.ts"},{"uid":"ea0f-99","name":"logger.ts"},{"uid":"ea0f-101","name":"getPathFromFilePath.ts"},{"uid":"ea0f-119","name":"getTokenizer.ts"}]},{"name":"config","children":[{"name":"services","children":[{"uid":"ea0f-81","name":"env.ts"},{"uid":"ea0f-83","name":"git.ts"},{"uid":"ea0f-85","name":"ignore.ts"},{"uid":"ea0f-87","name":"project.ts"},{"uid":"ea0f-89","name":"xdg.ts"},{"uid":"ea0f-91","name":"yargs.ts"}]},{"uid":"ea0f-97","name":"index.ts"}]},{"name":"langchain","children":[{"name":"prompts","children":[{"uid":"ea0f-93","name":"commitDefault.ts"},{"uid":"ea0f-95","name":"summarize.ts"}]},{"name":"chains","children":[{"uid":"ea0f-103","name":"summarize.ts"},{"uid":"ea0f-121","name":"llm.ts"}]},{"uid":"ea0f-111","name":"utils.ts"}]},{"name":"parsers","children":[{"name":"default","children":[{"name":"utils","children":[{"uid":"ea0f-105","name":"summarizeDiffs.ts"},{"uid":"ea0f-107","name":"createDiffTree.ts"},{"uid":"ea0f-109","name":"collectDiffs.ts"}]},{"uid":"ea0f-115","name":"index.ts"}]},{"uid":"ea0f-129","name":"noResult.ts"}]},{"name":"simple-git","children":[{"uid":"ea0f-113","name":"getDiff.ts"},{"uid":"ea0f-123","name":"getStatus.ts"},{"uid":"ea0f-125","name":"getSummaryText.ts"},{"uid":"ea0f-127","name":"getChanges.ts"},{"uid":"ea0f-131","name":"createCommit.ts"}]},{"uid":"ea0f-117","name":"ui.ts"}]},{"uid":"ea0f-133","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"ea0f-79":{"renderedLength":258,"gzipLength":0,"brotliLength":141,"metaUid":"ea0f-78"},"ea0f-81":{"renderedLength":990,"gzipLength":0,"brotliLength":352,"metaUid":"ea0f-80"},"ea0f-83":{"renderedLength":1356,"gzipLength":0,"brotliLength":377,"metaUid":"ea0f-82"},"ea0f-85":{"renderedLength":927,"gzipLength":0,"brotliLength":271,"metaUid":"ea0f-84"},"ea0f-87":{"renderedLength":367,"gzipLength":0,"brotliLength":172,"metaUid":"ea0f-86"},"ea0f-89":{"renderedLength":539,"gzipLength":0,"brotliLength":260,"metaUid":"ea0f-88"},"ea0f-91":{"renderedLength":1736,"gzipLength":0,"brotliLength":534,"metaUid":"ea0f-90"},"ea0f-93":{"renderedLength":752,"gzipLength":0,"brotliLength":329,"metaUid":"ea0f-92"},"ea0f-95":{"renderedLength":369,"gzipLength":0,"brotliLength":200,"metaUid":"ea0f-94"},"ea0f-97":{"renderedLength":1080,"gzipLength":0,"brotliLength":412,"metaUid":"ea0f-96"},"ea0f-99":{"renderedLength":1634,"gzipLength":0,"brotliLength":400,"metaUid":"ea0f-98"},"ea0f-101":{"renderedLength":256,"gzipLength":0,"brotliLength":151,"metaUid":"ea0f-100"},"ea0f-103":{"renderedLength":442,"gzipLength":0,"brotliLength":201,"metaUid":"ea0f-102"},"ea0f-105":{"renderedLength":3948,"gzipLength":0,"brotliLength":1183,"metaUid":"ea0f-104"},"ea0f-107":{"renderedLength":1262,"gzipLength":0,"brotliLength":380,"metaUid":"ea0f-106"},"ea0f-109":{"renderedLength":1199,"gzipLength":0,"brotliLength":428,"metaUid":"ea0f-108"},"ea0f-111":{"renderedLength":1717,"gzipLength":0,"brotliLength":585,"metaUid":"ea0f-110"},"ea0f-113":{"renderedLength":1586,"gzipLength":0,"brotliLength":527,"metaUid":"ea0f-112"},"ea0f-115":{"renderedLength":1143,"gzipLength":0,"brotliLength":468,"metaUid":"ea0f-114"},"ea0f-117":{"renderedLength":290,"gzipLength":0,"brotliLength":177,"metaUid":"ea0f-116"},"ea0f-119":{"renderedLength":573,"gzipLength":0,"brotliLength":239,"metaUid":"ea0f-118"},"ea0f-121":{"renderedLength":678,"gzipLength":0,"brotliLength":281,"metaUid":"ea0f-120"},"ea0f-123":{"renderedLength":602,"gzipLength":0,"brotliLength":177,"metaUid":"ea0f-122"},"ea0f-125":{"renderedLength":239,"gzipLength":0,"brotliLength":140,"metaUid":"ea0f-124"},"ea0f-127":{"renderedLength":2504,"gzipLength":0,"brotliLength":529,"metaUid":"ea0f-126"},"ea0f-129":{"renderedLength":1088,"gzipLength":0,"brotliLength":343,"metaUid":"ea0f-128"},"ea0f-131":{"renderedLength":87,"gzipLength":0,"brotliLength":71,"metaUid":"ea0f-130"},"ea0f-133":{"renderedLength":5706,"gzipLength":0,"brotliLength":1318,"metaUid":"ea0f-132"}},"nodeMetas":{"ea0f-78":{"id":"/src/lib/utils/removeUndefined.ts","moduleParts":{"index.js":"ea0f-79"},"imported":[],"importedBy":[{"uid":"ea0f-80"}]},"ea0f-80":{"id":"/src/lib/config/services/env.ts","moduleParts":{"index.js":"ea0f-81"},"imported":[{"uid":"ea0f-78"}],"importedBy":[{"uid":"ea0f-96"}]},"ea0f-82":{"id":"/src/lib/config/services/git.ts","moduleParts":{"index.js":"ea0f-83"},"imported":[{"uid":"ea0f-150"},{"uid":"ea0f-151"},{"uid":"ea0f-148"},{"uid":"ea0f-152"}],"importedBy":[{"uid":"ea0f-96"}]},"ea0f-84":{"id":"/src/lib/config/services/ignore.ts","moduleParts":{"index.js":"ea0f-85"},"imported":[{"uid":"ea0f-150"}],"importedBy":[{"uid":"ea0f-96"}]},"ea0f-86":{"id":"/src/lib/config/services/project.ts","moduleParts":{"index.js":"ea0f-87"},"imported":[{"uid":"ea0f-150"}],"importedBy":[{"uid":"ea0f-96"}]},"ea0f-88":{"id":"/src/lib/config/services/xdg.ts","moduleParts":{"index.js":"ea0f-89"},"imported":[{"uid":"ea0f-150"},{"uid":"ea0f-148"},{"uid":"ea0f-151"}],"importedBy":[{"uid":"ea0f-96"}]},"ea0f-90":{"id":"/src/lib/config/services/yargs.ts","moduleParts":{"index.js":"ea0f-91"},"imported":[{"uid":"ea0f-137"},{"uid":"ea0f-138"}],"importedBy":[{"uid":"ea0f-132"},{"uid":"ea0f-96"}]},"ea0f-92":{"id":"/src/lib/langchain/prompts/commitDefault.ts","moduleParts":{"index.js":"ea0f-93"},"imported":[{"uid":"ea0f-143"}],"importedBy":[{"uid":"ea0f-132"},{"uid":"ea0f-96"}]},"ea0f-94":{"id":"/src/lib/langchain/prompts/summarize.ts","moduleParts":{"index.js":"ea0f-95"},"imported":[{"uid":"ea0f-143"}],"importedBy":[{"uid":"ea0f-96"},{"uid":"ea0f-114"}]},"ea0f-96":{"id":"/src/lib/config/index.ts","moduleParts":{"index.js":"ea0f-97"},"imported":[{"uid":"ea0f-80"},{"uid":"ea0f-82"},{"uid":"ea0f-84"},{"uid":"ea0f-86"},{"uid":"ea0f-88"},{"uid":"ea0f-90"},{"uid":"ea0f-92"},{"uid":"ea0f-94"}],"importedBy":[{"uid":"ea0f-132"},{"uid":"ea0f-114"},{"uid":"ea0f-110"},{"uid":"ea0f-126"},{"uid":"ea0f-104"},{"uid":"ea0f-108"}]},"ea0f-98":{"id":"/src/lib/utils/logger.ts","moduleParts":{"index.js":"ea0f-99"},"imported":[{"uid":"ea0f-136"},{"uid":"ea0f-140"},{"uid":"ea0f-141"},{"uid":"ea0f-142"}],"importedBy":[{"uid":"ea0f-132"},{"uid":"ea0f-114"},{"uid":"ea0f-104"},{"uid":"ea0f-108"}]},"ea0f-100":{"id":"/src/lib/utils/getPathFromFilePath.ts","moduleParts":{"index.js":"ea0f-101"},"imported":[],"importedBy":[{"uid":"ea0f-104"}]},"ea0f-102":{"id":"/src/lib/langchain/chains/summarize.ts","moduleParts":{"index.js":"ea0f-103"},"imported":[{"uid":"ea0f-155"}],"importedBy":[{"uid":"ea0f-104"}]},"ea0f-104":{"id":"/src/lib/parsers/default/utils/summarizeDiffs.ts","moduleParts":{"index.js":"ea0f-105"},"imported":[{"uid":"ea0f-153"},{"uid":"ea0f-98"},{"uid":"ea0f-96"},{"uid":"ea0f-100"},{"uid":"ea0f-102"}],"importedBy":[{"uid":"ea0f-114"}]},"ea0f-106":{"id":"/src/lib/parsers/default/utils/createDiffTree.ts","moduleParts":{"index.js":"ea0f-107"},"imported":[],"importedBy":[{"uid":"ea0f-114"}]},"ea0f-108":{"id":"/src/lib/parsers/default/utils/collectDiffs.ts","moduleParts":{"index.js":"ea0f-109"},"imported":[{"uid":"ea0f-96"},{"uid":"ea0f-98"}],"importedBy":[{"uid":"ea0f-114"}]},"ea0f-110":{"id":"/src/lib/langchain/utils.ts","moduleParts":{"index.js":"ea0f-111"},"imported":[{"uid":"ea0f-144"},{"uid":"ea0f-143"},{"uid":"ea0f-145"},{"uid":"ea0f-146"},{"uid":"ea0f-147"},{"uid":"ea0f-96"}],"importedBy":[{"uid":"ea0f-132"},{"uid":"ea0f-114"}]},"ea0f-112":{"id":"/src/lib/simple-git/getDiff.ts","moduleParts":{"index.js":"ea0f-113"},"imported":[{"uid":"ea0f-154"}],"importedBy":[{"uid":"ea0f-114"}]},"ea0f-114":{"id":"/src/lib/parsers/default/index.ts","moduleParts":{"index.js":"ea0f-115"},"imported":[{"uid":"ea0f-96"},{"uid":"ea0f-104"},{"uid":"ea0f-98"},{"uid":"ea0f-106"},{"uid":"ea0f-108"},{"uid":"ea0f-110"},{"uid":"ea0f-94"},{"uid":"ea0f-112"}],"importedBy":[{"uid":"ea0f-132"}]},"ea0f-116":{"id":"/src/lib/ui.ts","moduleParts":{"index.js":"ea0f-117"},"imported":[{"uid":"ea0f-136"}],"importedBy":[{"uid":"ea0f-132"}]},"ea0f-118":{"id":"/src/lib/utils/getTokenizer.ts","moduleParts":{"index.js":"ea0f-119"},"imported":[{"uid":"ea0f-139"}],"importedBy":[{"uid":"ea0f-132"}]},"ea0f-120":{"id":"/src/lib/langchain/chains/llm.ts","moduleParts":{"index.js":"ea0f-121"},"imported":[{"uid":"ea0f-145"}],"importedBy":[{"uid":"ea0f-132"}]},"ea0f-122":{"id":"/src/lib/simple-git/getStatus.ts","moduleParts":{"index.js":"ea0f-123"},"imported":[],"importedBy":[{"uid":"ea0f-126"},{"uid":"ea0f-124"}]},"ea0f-124":{"id":"/src/lib/simple-git/getSummaryText.ts","moduleParts":{"index.js":"ea0f-125"},"imported":[{"uid":"ea0f-122"}],"importedBy":[{"uid":"ea0f-126"}]},"ea0f-126":{"id":"/src/lib/simple-git/getChanges.ts","moduleParts":{"index.js":"ea0f-127"},"imported":[{"uid":"ea0f-148"},{"uid":"ea0f-149"},{"uid":"ea0f-96"},{"uid":"ea0f-122"},{"uid":"ea0f-124"}],"importedBy":[{"uid":"ea0f-132"},{"uid":"ea0f-128"}]},"ea0f-128":{"id":"/src/lib/parsers/noResult.ts","moduleParts":{"index.js":"ea0f-129"},"imported":[{"uid":"ea0f-126"}],"importedBy":[{"uid":"ea0f-132"}]},"ea0f-130":{"id":"/src/lib/simple-git/createCommit.ts","moduleParts":{"index.js":"ea0f-131"},"imported":[],"importedBy":[{"uid":"ea0f-132"}]},"ea0f-132":{"id":"/src/index.ts","moduleParts":{"index.js":"ea0f-133"},"imported":[{"uid":"ea0f-134"},{"uid":"ea0f-96"},{"uid":"ea0f-114"},{"uid":"ea0f-116"},{"uid":"ea0f-90"},{"uid":"ea0f-118"},{"uid":"ea0f-98"},{"uid":"ea0f-92"},{"uid":"ea0f-110"},{"uid":"ea0f-120"},{"uid":"ea0f-128"},{"uid":"ea0f-126"},{"uid":"ea0f-130"},{"uid":"ea0f-135"}],"importedBy":[],"isEntry":true},"ea0f-134":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-132"}],"isExternal":true},"ea0f-135":{"id":"simple-git","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-132"}],"isExternal":true},"ea0f-136":{"id":"chalk","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-116"},{"uid":"ea0f-98"}],"isExternal":true},"ea0f-137":{"id":"yargs","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-90"}],"isExternal":true},"ea0f-138":{"id":"yargs/helpers","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-90"}],"isExternal":true},"ea0f-139":{"id":"gpt3-tokenizer","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-118"}],"isExternal":true},"ea0f-140":{"id":"ora","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-98"}],"isExternal":true},"ea0f-141":{"id":"performance-now","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-98"}],"isExternal":true},"ea0f-142":{"id":"pretty-ms","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-98"}],"isExternal":true},"ea0f-143":{"id":"langchain/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-92"},{"uid":"ea0f-110"},{"uid":"ea0f-94"}],"isExternal":true},"ea0f-144":{"id":"langchain/llms/hf","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-110"}],"isExternal":true},"ea0f-145":{"id":"langchain/chains","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-110"},{"uid":"ea0f-120"}],"isExternal":true},"ea0f-146":{"id":"langchain/llms/openai","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-110"}],"isExternal":true},"ea0f-147":{"id":"langchain/text_splitter","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-110"}],"isExternal":true},"ea0f-148":{"id":"path","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-126"},{"uid":"ea0f-82"},{"uid":"ea0f-88"}],"isExternal":true},"ea0f-149":{"id":"minimatch","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-126"}],"isExternal":true},"ea0f-150":{"id":"fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-82"},{"uid":"ea0f-84"},{"uid":"ea0f-86"},{"uid":"ea0f-88"}],"isExternal":true},"ea0f-151":{"id":"os","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-82"},{"uid":"ea0f-88"}],"isExternal":true},"ea0f-152":{"id":"ini","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-82"}],"isExternal":true},"ea0f-153":{"id":"p-queue","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-104"}],"isExternal":true},"ea0f-154":{"id":"diff","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-112"}],"isExternal":true},"ea0f-155":{"id":"langchain/document","moduleParts":{},"imported":[],"importedBy":[{"uid":"ea0f-102"}],"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":"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}};
5289
5289
 
5290
5290
  const run = () => {
5291
5291
  const width = window.innerWidth;
package/dist/types.d.ts CHANGED
@@ -1,2 +1,10 @@
1
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
+ }
2
10
  export { Config };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git-coco",
3
- "version": "0.3.0",
4
- "description": "zero-effort git commits with commit copilot, or coco for short.",
3
+ "version": "0.3.2",
4
+ "description": "zero-effort git commits with coco.",
5
5
  "author": "gfargo <ghfargo@gmail.com>",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -55,7 +55,7 @@
55
55
  "eslint-formatter-pretty": "^5.0.0",
56
56
  "jest": "^29.5.0",
57
57
  "jest-mock": "^29.5.0",
58
- "release-it": "^15.11.0",
58
+ "release-it": "^16.1.0",
59
59
  "rimraf": "^5.0.1",
60
60
  "rollup": "^3.26.1",
61
61
  "rollup-plugin-banner2": "^1.2.2",
@@ -77,7 +77,7 @@
77
77
  "diff": "^5.1.0",
78
78
  "gpt3-tokenizer": "^1.1.5",
79
79
  "ini": "^4.1.1",
80
- "langchain": "^0.0.105",
80
+ "langchain": "^0.0.106",
81
81
  "minimatch": "^9.0.3",
82
82
  "openai": "3.3.0",
83
83
  "ora": "5.4.1",
@@ -1,25 +0,0 @@
1
- import yargs from 'yargs';
2
- import { Config } from '../types';
3
- /**
4
- * Command line options via yargs
5
- */
6
- export declare const options: Record<string, yargs.Options>;
7
- /**
8
- * Load command line flags via yargs
9
- *
10
- * @returns {Partial<Config>} Updated config
11
- */
12
- export declare const loadArgv: () => {
13
- [x: string]: unknown;
14
- _: (string | number)[];
15
- $0: string;
16
- };
17
- /**
18
- * Load command line flags
19
- *
20
- * Note: Arugments are parsed using yargs.
21
- *
22
- * @param {Config} config
23
- * @returns {Config} Updated config
24
- **/
25
- export declare function loadCmdLineFlags(config: Config): Config;