@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 +9 -0
- package/dist/cli.js.map +2 -2
- package/dist/index.js +9 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14533,6 +14533,15 @@ async function sleep2(ms, shouldStop) {
|
|
|
14533
14533
|
}
|
|
14534
14534
|
async function runChatClaimLoop(opts) {
|
|
14535
14535
|
let target = await resolveChatBridgeTarget();
|
|
14536
|
+
if (!target) {
|
|
14537
|
+
console.error(
|
|
14538
|
+
JSON.stringify({
|
|
14539
|
+
event: "chat_claim_loop_waiting",
|
|
14540
|
+
reason: !loadApiKey() || !loadUserConfig().agentOsId?.trim() ? "machine_not_linked" : "bridge_not_discovered (rollout off, discovery route missing/404, or API unreachable)",
|
|
14541
|
+
rediscoverMs: BRIDGE_REDISCOVER_MS
|
|
14542
|
+
})
|
|
14543
|
+
);
|
|
14544
|
+
}
|
|
14536
14545
|
while (!target && !opts.shouldStop()) {
|
|
14537
14546
|
if (!loadApiKey() || !loadUserConfig().agentOsId?.trim()) return;
|
|
14538
14547
|
await sleep2(BRIDGE_REDISCOVER_MS, opts.shouldStop);
|