From 3e39dcf4ef194f993ea63b50d1e45a75dfb4ffb6 Mon Sep 17 00:00:00 2001 From: Zachary Date: Mon, 2 Mar 2026 15:56:26 -0500 Subject: [PATCH] Fix KID default suffix and guard exit code alignment - Change default KID suffix from -key-v1 to -key-1 to match Go SDK and Console - Change guard script exit code from 2 to 1 to match Python and Go SDKs Co-Authored-By: Claude Opus 4.6 --- src/client.ts | 2 +- src/plugins/hook-template.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index 205c875..519fea1 100644 --- a/src/client.ts +++ b/src/client.ts @@ -60,7 +60,7 @@ export class ElydoraClient { this.baseUrl = (config.baseUrl ?? DEFAULT_BASE_URL).replace(/\/+$/, ''); this.ttlMs = config.ttlMs ?? DEFAULT_TTL_MS; this.maxRetries = config.maxRetries ?? DEFAULT_MAX_RETRIES; - this.kid = config.kid ?? this.agentId + '-key-v1'; + this.kid = config.kid ?? this.agentId + '-key-1'; this.prevChainHash = ZERO_CHAIN_HASH; } diff --git a/src/plugins/hook-template.ts b/src/plugins/hook-template.ts index 3d1de7d..4f42892 100644 --- a/src/plugins/hook-template.ts +++ b/src/plugins/hook-template.ts @@ -344,7 +344,7 @@ async function main() { if (age < CACHE_TTL_MS) { if (cache.status === 'frozen') { process.stderr.write('Agent "' + AGENT_NAME + '" is frozen by Elydora. Tool execution blocked.\\n'); - process.exitCode = 2; + process.exitCode = 1; } return; // Cache is fresh — use cached result } @@ -388,7 +388,7 @@ async function main() { if (agentStatus === 'frozen') { process.stderr.write('Agent "' + AGENT_NAME + '" is frozen by Elydora. Tool execution blocked.\\n'); - process.exitCode = 2; + process.exitCode = 1; } } } catch {