@kody-ade/kody-engine 0.4.142 → 0.4.144
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/bin/kody.js +30 -2
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
6
|
+
}) : x)(function(x) {
|
|
7
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
8
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
9
|
+
});
|
|
4
10
|
var __esm = (fn, res) => function __init() {
|
|
5
11
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
12
|
};
|
|
@@ -1061,7 +1067,7 @@ var init_loadPriorArt = __esm({
|
|
|
1061
1067
|
// package.json
|
|
1062
1068
|
var package_default = {
|
|
1063
1069
|
name: "@kody-ade/kody-engine",
|
|
1064
|
-
version: "0.4.
|
|
1070
|
+
version: "0.4.144",
|
|
1065
1071
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
1066
1072
|
license: "MIT",
|
|
1067
1073
|
type: "module",
|
|
@@ -13733,8 +13739,30 @@ function unpackAllSecrets(env = process.env) {
|
|
|
13733
13739
|
return count;
|
|
13734
13740
|
}
|
|
13735
13741
|
function resolveAuthToken(env = process.env) {
|
|
13736
|
-
const
|
|
13742
|
+
const sources = [
|
|
13743
|
+
["KODY_TOKEN", env.KODY_TOKEN],
|
|
13744
|
+
["GH_TOKEN", env.GH_TOKEN],
|
|
13745
|
+
["GITHUB_TOKEN", env.GITHUB_TOKEN],
|
|
13746
|
+
["GH_PAT", env.GH_PAT]
|
|
13747
|
+
];
|
|
13748
|
+
const picked = sources.find(([, v]) => !!v);
|
|
13749
|
+
const token = picked?.[1];
|
|
13737
13750
|
if (token && !env.GH_TOKEN) env.GH_TOKEN = token;
|
|
13751
|
+
if (token) {
|
|
13752
|
+
const trimmed = token.trim();
|
|
13753
|
+
const lenDiff = token.length - trimmed.length;
|
|
13754
|
+
const crypto2 = __require("crypto");
|
|
13755
|
+
const sha = crypto2.createHash("sha256").update(token).digest("hex");
|
|
13756
|
+
const shaTrimmed = crypto2.createHash("sha256").update(trimmed).digest("hex");
|
|
13757
|
+
process.stdout.write(
|
|
13758
|
+
`\u2192 kody: GH_TOKEN sourced from env.${picked[0]} (length=${token.length}, prefix=${token.slice(0, 4)}, trailingWhitespace=${lenDiff > 0 ? "YES " + lenDiff + " chars" : "no"})
|
|
13759
|
+
`
|
|
13760
|
+
);
|
|
13761
|
+
process.stdout.write(`\u2192 kody: token sha256=${sha.slice(0, 16)}\u2026${sha.slice(-8)} (trimmed sha=${shaTrimmed.slice(0, 16)}\u2026${shaTrimmed.slice(-8)})
|
|
13762
|
+
`);
|
|
13763
|
+
} else {
|
|
13764
|
+
process.stdout.write("\u2192 kody: WARNING no auth token found (KODY_TOKEN/GH_TOKEN/GITHUB_TOKEN/GH_PAT all empty)\n");
|
|
13765
|
+
}
|
|
13738
13766
|
return token;
|
|
13739
13767
|
}
|
|
13740
13768
|
function detectPackageManager2(cwd) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.144",
|
|
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",
|