replicas-engine 0.1.57 → 0.1.58
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/src/index.js +7 -1
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -695,7 +695,9 @@ var GitService = class {
|
|
|
695
695
|
}
|
|
696
696
|
return prInfo;
|
|
697
697
|
}
|
|
698
|
-
} catch {
|
|
698
|
+
} catch (error) {
|
|
699
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
700
|
+
console.warn(`[GitService] gh pr view failed for ${repoName}: ${message}`);
|
|
699
701
|
return null;
|
|
700
702
|
}
|
|
701
703
|
return null;
|
|
@@ -3016,6 +3018,10 @@ var ChatService = class {
|
|
|
3016
3018
|
await eventService.publish(event);
|
|
3017
3019
|
}
|
|
3018
3020
|
async publishAgentTurnCompleteWebhook() {
|
|
3021
|
+
try {
|
|
3022
|
+
await githubTokenManager.refreshOnce();
|
|
3023
|
+
} catch {
|
|
3024
|
+
}
|
|
3019
3025
|
const linearSessionId = ENGINE_ENV.LINEAR_SESSION_ID;
|
|
3020
3026
|
const repoStatuses = await gitService.refreshRepos();
|
|
3021
3027
|
const payload = linearSessionId ? { linearSessionId, repoStatuses } : { repoStatuses };
|