build
This commit is contained in:
+2
-5
@@ -16425,7 +16425,7 @@ var package_default = {
|
|||||||
scripts: {
|
scripts: {
|
||||||
watch: "npm run -S build -- --sourcemap --watch",
|
watch: "npm run -S build -- --sourcemap --watch",
|
||||||
start: "node ./out/cli.cjs",
|
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",
|
dev: "ts-node ./src/cli.ts",
|
||||||
build: "rimraf out && node esbuild.config.js",
|
build: "rimraf out && node esbuild.config.js",
|
||||||
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
|
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
|
||||||
@@ -18796,9 +18796,7 @@ var getConfig = () => {
|
|||||||
);
|
);
|
||||||
config8[configKey] = validValue;
|
config8[configKey] = validValue;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
ce(
|
ce(`Unknown '${configKey}' config option.`);
|
||||||
`'${configKey}' name is invalid, it should be either 'OCO_${configKey.toUpperCase()}' or it doesn't exist.`
|
|
||||||
);
|
|
||||||
ce(
|
ce(
|
||||||
`Manually fix the '.env' file or global '~/.opencommit' config file.`
|
`Manually fix the '.env' file or global '~/.opencommit' config file.`
|
||||||
);
|
);
|
||||||
@@ -21981,7 +21979,6 @@ var OllamaAi = class {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const answer = response.data?.response;
|
const answer = response.data?.response;
|
||||||
console.log("answer", answer);
|
|
||||||
return answer;
|
return answer;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const message = err.response?.data?.error ?? err.message;
|
const message = err.response?.data?.error ?? err.message;
|
||||||
|
|||||||
@@ -24291,9 +24291,7 @@ var getConfig = () => {
|
|||||||
);
|
);
|
||||||
config7[configKey] = validValue;
|
config7[configKey] = validValue;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
ce(
|
ce(`Unknown '${configKey}' config option.`);
|
||||||
`'${configKey}' name is invalid, it should be either 'OCO_${configKey.toUpperCase()}' or it doesn't exist.`
|
|
||||||
);
|
|
||||||
ce(
|
ce(
|
||||||
`Manually fix the '.env' file or global '~/.opencommit' config file.`
|
`Manually fix the '.env' file or global '~/.opencommit' config file.`
|
||||||
);
|
);
|
||||||
@@ -27476,7 +27474,6 @@ var OllamaAi = class {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const answer = response.data?.response;
|
const answer = response.data?.response;
|
||||||
console.log("answer", answer);
|
|
||||||
return answer;
|
return answer;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const message = err.response?.data?.error ?? err.message;
|
const message = err.response?.data?.error ?? err.message;
|
||||||
|
|||||||
Reference in New Issue
Block a user