@kynver-app/runtime 0.1.122 → 0.1.123

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.js CHANGED
@@ -13581,6 +13581,15 @@ async function sleep2(ms, shouldStop) {
13581
13581
  }
13582
13582
  async function runChatClaimLoop(opts) {
13583
13583
  let target = await resolveChatBridgeTarget();
13584
+ if (!target) {
13585
+ console.error(
13586
+ JSON.stringify({
13587
+ event: "chat_claim_loop_waiting",
13588
+ reason: !loadApiKey() || !loadUserConfig().agentOsId?.trim() ? "machine_not_linked" : "bridge_not_discovered (rollout off, discovery route missing/404, or API unreachable)",
13589
+ rediscoverMs: BRIDGE_REDISCOVER_MS
13590
+ })
13591
+ );
13592
+ }
13584
13593
  while (!target && !opts.shouldStop()) {
13585
13594
  if (!loadApiKey() || !loadUserConfig().agentOsId?.trim()) return;
13586
13595
  await sleep2(BRIDGE_REDISCOVER_MS, opts.shouldStop);