git-coco 0.3.0 → 0.3.1

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":"6d95-78","name":"removeUndefined.ts"},{"uid":"6d95-96","name":"getPathFromFilePath.ts"},{"uid":"6d95-114","name":"getTokenizer.ts"},{"uid":"6d95-116","name":"logger.ts"}]},{"name":"config","children":[{"name":"services","children":[{"uid":"6d95-80","name":"env.ts"},{"uid":"6d95-82","name":"git.ts"},{"uid":"6d95-84","name":"ignore.ts"},{"uid":"6d95-86","name":"project.ts"},{"uid":"6d95-88","name":"xdg.ts"}]},{"uid":"6d95-94","name":"loadConfig.ts"}]},{"name":"langchain","children":[{"name":"prompts","children":[{"uid":"6d95-90","name":"commitDefault.ts"},{"uid":"6d95-92","name":"summarize.ts"}]},{"name":"chains","children":[{"uid":"6d95-98","name":"summarize.ts"},{"uid":"6d95-118","name":"llm.ts"}]},{"uid":"6d95-106","name":"utils.ts"}]},{"name":"parsers","children":[{"name":"default","children":[{"name":"utils","children":[{"uid":"6d95-100","name":"summarizeDiffs.ts"},{"uid":"6d95-102","name":"createDiffTree.ts"},{"uid":"6d95-104","name":"collectDiffs.ts"}]},{"uid":"6d95-110","name":"index.ts"}]},{"uid":"6d95-126","name":"noResult.ts"}]},{"name":"simple-git","children":[{"uid":"6d95-108","name":"getDiff.ts"},{"uid":"6d95-120","name":"getStatus.ts"},{"uid":"6d95-122","name":"getSummaryText.ts"},{"uid":"6d95-124","name":"getChanges.ts"},{"uid":"6d95-128","name":"createCommit.ts"}]},{"uid":"6d95-112","name":"ui.ts"}]},{"name":"commands/commit.ts","uid":"6d95-130"},{"uid":"6d95-132","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"6d95-78":{"renderedLength":258,"gzipLength":0,"brotliLength":141,"metaUid":"6d95-77"},"6d95-80":{"renderedLength":990,"gzipLength":0,"brotliLength":352,"metaUid":"6d95-79"},"6d95-82":{"renderedLength":1356,"gzipLength":0,"brotliLength":377,"metaUid":"6d95-81"},"6d95-84":{"renderedLength":927,"gzipLength":0,"brotliLength":271,"metaUid":"6d95-83"},"6d95-86":{"renderedLength":367,"gzipLength":0,"brotliLength":172,"metaUid":"6d95-85"},"6d95-88":{"renderedLength":539,"gzipLength":0,"brotliLength":260,"metaUid":"6d95-87"},"6d95-90":{"renderedLength":752,"gzipLength":0,"brotliLength":329,"metaUid":"6d95-89"},"6d95-92":{"renderedLength":369,"gzipLength":0,"brotliLength":200,"metaUid":"6d95-91"},"6d95-94":{"renderedLength":1037,"gzipLength":0,"brotliLength":412,"metaUid":"6d95-93"},"6d95-96":{"renderedLength":256,"gzipLength":0,"brotliLength":151,"metaUid":"6d95-95"},"6d95-98":{"renderedLength":442,"gzipLength":0,"brotliLength":201,"metaUid":"6d95-97"},"6d95-100":{"renderedLength":3917,"gzipLength":0,"brotliLength":1170,"metaUid":"6d95-99"},"6d95-102":{"renderedLength":1262,"gzipLength":0,"brotliLength":380,"metaUid":"6d95-101"},"6d95-104":{"renderedLength":1186,"gzipLength":0,"brotliLength":414,"metaUid":"6d95-103"},"6d95-106":{"renderedLength":2472,"gzipLength":0,"brotliLength":712,"metaUid":"6d95-105"},"6d95-108":{"renderedLength":1586,"gzipLength":0,"brotliLength":527,"metaUid":"6d95-107"},"6d95-110":{"renderedLength":1127,"gzipLength":0,"brotliLength":460,"metaUid":"6d95-109"},"6d95-112":{"renderedLength":290,"gzipLength":0,"brotliLength":177,"metaUid":"6d95-111"},"6d95-114":{"renderedLength":573,"gzipLength":0,"brotliLength":239,"metaUid":"6d95-113"},"6d95-116":{"renderedLength":1634,"gzipLength":0,"brotliLength":400,"metaUid":"6d95-115"},"6d95-118":{"renderedLength":678,"gzipLength":0,"brotliLength":281,"metaUid":"6d95-117"},"6d95-120":{"renderedLength":602,"gzipLength":0,"brotliLength":177,"metaUid":"6d95-119"},"6d95-122":{"renderedLength":239,"gzipLength":0,"brotliLength":140,"metaUid":"6d95-121"},"6d95-124":{"renderedLength":2533,"gzipLength":0,"brotliLength":541,"metaUid":"6d95-123"},"6d95-126":{"renderedLength":1265,"gzipLength":0,"brotliLength":413,"metaUid":"6d95-125"},"6d95-128":{"renderedLength":87,"gzipLength":0,"brotliLength":71,"metaUid":"6d95-127"},"6d95-130":{"renderedLength":7121,"gzipLength":0,"brotliLength":1606,"metaUid":"6d95-129"},"6d95-132":{"renderedLength":275,"gzipLength":0,"brotliLength":168,"metaUid":"6d95-131"}},"nodeMetas":{"6d95-77":{"id":"/src/lib/utils/removeUndefined.ts","moduleParts":{"index.js":"6d95-78"},"imported":[],"importedBy":[{"uid":"6d95-79"}]},"6d95-79":{"id":"/src/lib/config/services/env.ts","moduleParts":{"index.js":"6d95-80"},"imported":[{"uid":"6d95-77"}],"importedBy":[{"uid":"6d95-93"}]},"6d95-81":{"id":"/src/lib/config/services/git.ts","moduleParts":{"index.js":"6d95-82"},"imported":[{"uid":"6d95-148"},{"uid":"6d95-149"},{"uid":"6d95-146"},{"uid":"6d95-150"}],"importedBy":[{"uid":"6d95-93"}]},"6d95-83":{"id":"/src/lib/config/services/ignore.ts","moduleParts":{"index.js":"6d95-84"},"imported":[{"uid":"6d95-148"}],"importedBy":[{"uid":"6d95-93"}]},"6d95-85":{"id":"/src/lib/config/services/project.ts","moduleParts":{"index.js":"6d95-86"},"imported":[{"uid":"6d95-148"}],"importedBy":[{"uid":"6d95-93"}]},"6d95-87":{"id":"/src/lib/config/services/xdg.ts","moduleParts":{"index.js":"6d95-88"},"imported":[{"uid":"6d95-148"},{"uid":"6d95-146"},{"uid":"6d95-149"}],"importedBy":[{"uid":"6d95-93"}]},"6d95-89":{"id":"/src/lib/langchain/prompts/commitDefault.ts","moduleParts":{"index.js":"6d95-90"},"imported":[{"uid":"6d95-141"}],"importedBy":[{"uid":"6d95-129"},{"uid":"6d95-93"}]},"6d95-91":{"id":"/src/lib/langchain/prompts/summarize.ts","moduleParts":{"index.js":"6d95-92"},"imported":[{"uid":"6d95-141"}],"importedBy":[{"uid":"6d95-93"},{"uid":"6d95-109"}]},"6d95-93":{"id":"/src/lib/config/loadConfig.ts","moduleParts":{"index.js":"6d95-94"},"imported":[{"uid":"6d95-79"},{"uid":"6d95-81"},{"uid":"6d95-83"},{"uid":"6d95-85"},{"uid":"6d95-87"},{"uid":"6d95-89"},{"uid":"6d95-91"}],"importedBy":[{"uid":"6d95-129"},{"uid":"6d95-123"}]},"6d95-95":{"id":"/src/lib/utils/getPathFromFilePath.ts","moduleParts":{"index.js":"6d95-96"},"imported":[],"importedBy":[{"uid":"6d95-99"}]},"6d95-97":{"id":"/src/lib/langchain/chains/summarize.ts","moduleParts":{"index.js":"6d95-98"},"imported":[{"uid":"6d95-153"}],"importedBy":[{"uid":"6d95-99"}]},"6d95-99":{"id":"/src/lib/parsers/default/utils/summarizeDiffs.ts","moduleParts":{"index.js":"6d95-100"},"imported":[{"uid":"6d95-151"},{"uid":"6d95-95"},{"uid":"6d95-97"}],"importedBy":[{"uid":"6d95-109"}]},"6d95-101":{"id":"/src/lib/parsers/default/utils/createDiffTree.ts","moduleParts":{"index.js":"6d95-102"},"imported":[],"importedBy":[{"uid":"6d95-109"}]},"6d95-103":{"id":"/src/lib/parsers/default/utils/collectDiffs.ts","moduleParts":{"index.js":"6d95-104"},"imported":[],"importedBy":[{"uid":"6d95-109"}]},"6d95-105":{"id":"/src/lib/langchain/utils.ts","moduleParts":{"index.js":"6d95-106"},"imported":[{"uid":"6d95-142"},{"uid":"6d95-141"},{"uid":"6d95-143"},{"uid":"6d95-144"},{"uid":"6d95-145"}],"importedBy":[{"uid":"6d95-129"},{"uid":"6d95-109"}]},"6d95-107":{"id":"/src/lib/simple-git/getDiff.ts","moduleParts":{"index.js":"6d95-108"},"imported":[{"uid":"6d95-152"}],"importedBy":[{"uid":"6d95-109"}]},"6d95-109":{"id":"/src/lib/parsers/default/index.ts","moduleParts":{"index.js":"6d95-110"},"imported":[{"uid":"6d95-99"},{"uid":"6d95-101"},{"uid":"6d95-103"},{"uid":"6d95-105"},{"uid":"6d95-91"},{"uid":"6d95-107"}],"importedBy":[{"uid":"6d95-129"}]},"6d95-111":{"id":"/src/lib/ui.ts","moduleParts":{"index.js":"6d95-112"},"imported":[{"uid":"6d95-136"}],"importedBy":[{"uid":"6d95-129"}]},"6d95-113":{"id":"/src/lib/utils/getTokenizer.ts","moduleParts":{"index.js":"6d95-114"},"imported":[{"uid":"6d95-137"}],"importedBy":[{"uid":"6d95-129"}]},"6d95-115":{"id":"/src/lib/utils/logger.ts","moduleParts":{"index.js":"6d95-116"},"imported":[{"uid":"6d95-136"},{"uid":"6d95-138"},{"uid":"6d95-139"},{"uid":"6d95-140"}],"importedBy":[{"uid":"6d95-129"}]},"6d95-117":{"id":"/src/lib/langchain/chains/llm.ts","moduleParts":{"index.js":"6d95-118"},"imported":[{"uid":"6d95-143"}],"importedBy":[{"uid":"6d95-129"}]},"6d95-119":{"id":"/src/lib/simple-git/getStatus.ts","moduleParts":{"index.js":"6d95-120"},"imported":[],"importedBy":[{"uid":"6d95-123"},{"uid":"6d95-121"}]},"6d95-121":{"id":"/src/lib/simple-git/getSummaryText.ts","moduleParts":{"index.js":"6d95-122"},"imported":[{"uid":"6d95-119"}],"importedBy":[{"uid":"6d95-123"}]},"6d95-123":{"id":"/src/lib/simple-git/getChanges.ts","moduleParts":{"index.js":"6d95-124"},"imported":[{"uid":"6d95-146"},{"uid":"6d95-147"},{"uid":"6d95-119"},{"uid":"6d95-121"},{"uid":"6d95-93"}],"importedBy":[{"uid":"6d95-129"},{"uid":"6d95-125"}]},"6d95-125":{"id":"/src/lib/parsers/noResult.ts","moduleParts":{"index.js":"6d95-126"},"imported":[{"uid":"6d95-123"}],"importedBy":[{"uid":"6d95-129"}]},"6d95-127":{"id":"/src/lib/simple-git/createCommit.ts","moduleParts":{"index.js":"6d95-128"},"imported":[],"importedBy":[{"uid":"6d95-129"}]},"6d95-129":{"id":"/src/commands/commit.ts","moduleParts":{"index.js":"6d95-130"},"imported":[{"uid":"6d95-134"},{"uid":"6d95-135"},{"uid":"6d95-93"},{"uid":"6d95-109"},{"uid":"6d95-111"},{"uid":"6d95-113"},{"uid":"6d95-115"},{"uid":"6d95-89"},{"uid":"6d95-105"},{"uid":"6d95-117"},{"uid":"6d95-125"},{"uid":"6d95-123"},{"uid":"6d95-127"}],"importedBy":[{"uid":"6d95-131"}]},"6d95-131":{"id":"/src/index.ts","moduleParts":{"index.js":"6d95-132"},"imported":[{"uid":"6d95-133"},{"uid":"6d95-129"}],"importedBy":[],"isEntry":true},"6d95-133":{"id":"yargs","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-131"}],"isExternal":true},"6d95-134":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-129"}],"isExternal":true},"6d95-135":{"id":"simple-git","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-129"}],"isExternal":true},"6d95-136":{"id":"chalk","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-111"},{"uid":"6d95-115"}],"isExternal":true},"6d95-137":{"id":"gpt3-tokenizer","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-113"}],"isExternal":true},"6d95-138":{"id":"ora","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-115"}],"isExternal":true},"6d95-139":{"id":"performance-now","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-115"}],"isExternal":true},"6d95-140":{"id":"pretty-ms","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-115"}],"isExternal":true},"6d95-141":{"id":"langchain/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-89"},{"uid":"6d95-105"},{"uid":"6d95-91"}],"isExternal":true},"6d95-142":{"id":"langchain/llms/hf","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-105"}],"isExternal":true},"6d95-143":{"id":"langchain/chains","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-105"},{"uid":"6d95-117"}],"isExternal":true},"6d95-144":{"id":"langchain/llms/openai","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-105"}],"isExternal":true},"6d95-145":{"id":"langchain/text_splitter","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-105"}],"isExternal":true},"6d95-146":{"id":"path","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-123"},{"uid":"6d95-81"},{"uid":"6d95-87"}],"isExternal":true},"6d95-147":{"id":"minimatch","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-123"}],"isExternal":true},"6d95-148":{"id":"fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-81"},{"uid":"6d95-83"},{"uid":"6d95-85"},{"uid":"6d95-87"}],"isExternal":true},"6d95-149":{"id":"os","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-81"},{"uid":"6d95-87"}],"isExternal":true},"6d95-150":{"id":"ini","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-81"}],"isExternal":true},"6d95-151":{"id":"p-queue","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-99"}],"isExternal":true},"6d95-152":{"id":"diff","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-107"}],"isExternal":true},"6d95-153":{"id":"langchain/document","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d95-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.1",
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;