@kakarot-ci/core 0.5.0 → 0.6.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/cli/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
3
2
 
4
3
  // src/cli/index.ts
5
4
  import { readFileSync as readFileSync2 } from "fs";
@@ -388,6 +387,12 @@ async function loadConfig() {
388
387
  if (!config.githubToken && process.env.GITHUB_TOKEN) {
389
388
  config.githubToken = process.env.GITHUB_TOKEN;
390
389
  }
390
+ if (process.env.PROVIDER) {
391
+ config.provider = process.env.PROVIDER;
392
+ }
393
+ if (process.env.MODEL) {
394
+ config.model = process.env.MODEL;
395
+ }
391
396
  return KakarotConfigSchema.parse(config);
392
397
  } catch (err) {
393
398
  if (err instanceof Error && err.message.includes("apiKey")) {