@kody-ade/kody-engine 0.4.142 → 0.4.143

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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +19 -2
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -1061,7 +1061,7 @@ var init_loadPriorArt = __esm({
1061
1061
  // package.json
1062
1062
  var package_default = {
1063
1063
  name: "@kody-ade/kody-engine",
1064
- version: "0.4.142",
1064
+ version: "0.4.143",
1065
1065
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
1066
1066
  license: "MIT",
1067
1067
  type: "module",
@@ -13733,8 +13733,25 @@ function unpackAllSecrets(env = process.env) {
13733
13733
  return count;
13734
13734
  }
13735
13735
  function resolveAuthToken(env = process.env) {
13736
- const token = env.KODY_TOKEN || env.GH_TOKEN || env.GITHUB_TOKEN || env.GH_PAT;
13736
+ const sources = [
13737
+ ["KODY_TOKEN", env.KODY_TOKEN],
13738
+ ["GH_TOKEN", env.GH_TOKEN],
13739
+ ["GITHUB_TOKEN", env.GITHUB_TOKEN],
13740
+ ["GH_PAT", env.GH_PAT]
13741
+ ];
13742
+ const picked = sources.find(([, v]) => !!v);
13743
+ const token = picked?.[1];
13737
13744
  if (token && !env.GH_TOKEN) env.GH_TOKEN = token;
13745
+ if (token) {
13746
+ const trimmed = token.trim();
13747
+ const lenDiff = token.length - trimmed.length;
13748
+ process.stdout.write(
13749
+ `\u2192 kody: GH_TOKEN sourced from env.${picked[0]} (length=${token.length}, prefix=${token.slice(0, 4)}, trailingWhitespace=${lenDiff > 0 ? "YES " + lenDiff + " chars" : "no"})
13750
+ `
13751
+ );
13752
+ } else {
13753
+ process.stdout.write("\u2192 kody: WARNING no auth token found (KODY_TOKEN/GH_TOKEN/GITHUB_TOKEN/GH_PAT all empty)\n");
13754
+ }
13738
13755
  return token;
13739
13756
  }
13740
13757
  function detectPackageManager2(cwd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.142",
3
+ "version": "0.4.143",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",