agents-relay 1.0.8 → 1.0.9
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/relayd.js +4 -3
- package/package.json +1 -1
package/dist/relayd.js
CHANGED
|
@@ -113,7 +113,7 @@ export async function runDaemon(argv) {
|
|
|
113
113
|
await persistCache();
|
|
114
114
|
return refreshed;
|
|
115
115
|
};
|
|
116
|
-
const initial =
|
|
116
|
+
const initial = cachedOverviews;
|
|
117
117
|
const fallback = initial[0]?.job;
|
|
118
118
|
const dashboardStore = fallback ? new GitHubStore(client, fallback.repository, fallback.prNumber, trusted) : new InMemoryStore();
|
|
119
119
|
const secretFile = value(argv, '--github-webhook-secret-file');
|
|
@@ -170,8 +170,9 @@ export async function runDaemon(argv) {
|
|
|
170
170
|
process.once('SIGINT', stop);
|
|
171
171
|
process.once('SIGTERM', stop);
|
|
172
172
|
console.log('Dashboard listening; repository worker pool active');
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
void refreshAll()
|
|
174
|
+
.then(items => pool.reconcileKnown(items))
|
|
175
|
+
.catch(error => process.stderr.write(`warning: startup reconciliation unavailable: ${error instanceof Error ? error.message : String(error)}\n`));
|
|
175
176
|
}
|
|
176
177
|
if (isEntrypoint(import.meta.url))
|
|
177
178
|
runDaemon(process.argv.slice(2)).catch(error => { console.error(error instanceof Error ? error.message : String(error)); process.exitCode = 1; });
|