@cyanautomation/kaseki-agent 1.55.0 → 1.55.1
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/kaseki-agent.sh +6 -5
- package/package.json +1 -1
package/kaseki-agent.sh
CHANGED
|
@@ -3005,7 +3005,7 @@ EOF_ASKPASS
|
|
|
3005
3005
|
check_github_operations_health() {
|
|
3006
3006
|
# Preflight health check for github operations before pi agent runs
|
|
3007
3007
|
# Tests: GitHub App secrets, git config, Node.js token generation capability
|
|
3008
|
-
local health_log="
|
|
3008
|
+
local health_log="${KASEKI_HEALTH_LOG:-/results/github-health-check.log}"
|
|
3009
3009
|
: > "$health_log"
|
|
3010
3010
|
|
|
3011
3011
|
printf '[preflight] github operations health check started\n' | tee -a "$health_log"
|
|
@@ -3039,8 +3039,9 @@ check_github_operations_health() {
|
|
|
3039
3039
|
printf '[health-check] ✓ git is available\n' | tee -a "$health_log"
|
|
3040
3040
|
|
|
3041
3041
|
# Check 3: Test Node.js github-app-token helper file exists and is executable
|
|
3042
|
-
|
|
3043
|
-
|
|
3042
|
+
local github_app_token_helper="${KASEKI_GITHUB_APP_TOKEN_HELPER:-/usr/local/bin/github-app-token}"
|
|
3043
|
+
if ! [ -x "$github_app_token_helper" ]; then
|
|
3044
|
+
printf '[health-check] ERROR: github-app-token helper not found at %s\n' "$github_app_token_helper" | tee -a "$health_log" >&2
|
|
3044
3045
|
return 1
|
|
3045
3046
|
fi
|
|
3046
3047
|
printf '[health-check] ✓ github-app-token helper file exists and is executable\n' | tee -a "$health_log"
|
|
@@ -3076,7 +3077,7 @@ check_github_operations_health() {
|
|
|
3076
3077
|
return 1
|
|
3077
3078
|
}
|
|
3078
3079
|
|
|
3079
|
-
|
|
3080
|
+
"$github_app_token_helper" >"$helper_probe_stdout_tmp" 2>"$helper_probe_stderr_tmp"
|
|
3080
3081
|
helper_probe_exit_code=$?
|
|
3081
3082
|
helper_probe_stdout="$(cat "$helper_probe_stdout_tmp" 2>/dev/null || true)"
|
|
3082
3083
|
helper_probe_stderr="$(cat "$helper_probe_stderr_tmp" 2>/dev/null || true)"
|
|
@@ -3127,7 +3128,7 @@ check_github_operations_health() {
|
|
|
3127
3128
|
return 1
|
|
3128
3129
|
}
|
|
3129
3130
|
|
|
3130
|
-
|
|
3131
|
+
"$github_app_token_helper" "$app_id" "$github_app_private_key_file" "$owner" "$repo" >"$token_stdout_tmp" 2>"$token_stderr_tmp"
|
|
3131
3132
|
token_exit_code=$?
|
|
3132
3133
|
token_data="$(cat "$token_stdout_tmp" 2>/dev/null || true)"
|
|
3133
3134
|
token_stderr="$(cat "$token_stderr_tmp" 2>/dev/null || true)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanautomation/kaseki-agent",
|
|
3
|
-
"version": "1.55.
|
|
3
|
+
"version": "1.55.1",
|
|
4
4
|
"description": "Admin/helper/doctor toolbox and local API client for Kaseki diagnostics, setup, and API-backed coding-agent task workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|