From a296892aaf6779837c3d353398fa8fdb946b8637 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Tue, 27 Feb 2024 22:04:39 +0800 Subject: [PATCH] build --- out/cli.cjs | 7 ++----- out/github-action.cjs | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/out/cli.cjs b/out/cli.cjs index bc7c85c..9e2d587 100755 --- a/out/cli.cjs +++ b/out/cli.cjs @@ -16425,7 +16425,7 @@ var package_default = { scripts: { watch: "npm run -S build -- --sourcemap --watch", start: "node ./out/cli.cjs", - "ollama:start": "AI_PROVIDER='ollama' node./out/cli.cjs", + "ollama:start": "OCO_AI_PROVIDER='ollama' node ./out/cli.cjs", dev: "ts-node ./src/cli.ts", build: "rimraf out && node esbuild.config.js", "build:push": "npm run build && git add . && git commit -m 'build' && git push", @@ -18796,9 +18796,7 @@ var getConfig = () => { ); config8[configKey] = validValue; } catch (error) { - ce( - `'${configKey}' name is invalid, it should be either 'OCO_${configKey.toUpperCase()}' or it doesn't exist.` - ); + ce(`Unknown '${configKey}' config option.`); ce( `Manually fix the '.env' file or global '~/.opencommit' config file.` ); @@ -21981,7 +21979,6 @@ var OllamaAi = class { } }); const answer = response.data?.response; - console.log("answer", answer); return answer; } catch (err) { const message = err.response?.data?.error ?? err.message; diff --git a/out/github-action.cjs b/out/github-action.cjs index 5672873..5e660d2 100644 --- a/out/github-action.cjs +++ b/out/github-action.cjs @@ -24291,9 +24291,7 @@ var getConfig = () => { ); config7[configKey] = validValue; } catch (error) { - ce( - `'${configKey}' name is invalid, it should be either 'OCO_${configKey.toUpperCase()}' or it doesn't exist.` - ); + ce(`Unknown '${configKey}' config option.`); ce( `Manually fix the '.env' file or global '~/.opencommit' config file.` ); @@ -27476,7 +27474,6 @@ var OllamaAi = class { } }); const answer = response.data?.response; - console.log("answer", answer); return answer; } catch (err) { const message = err.response?.data?.error ?? err.message;