hammerkit 2.1.0-next.8 → 2.1.0-next.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.
|
@@ -469,10 +469,12 @@ function registerWorkCommands(remote, context) {
|
|
|
469
469
|
fail(`${(0, server_client_1.printable)(run.id)} did not move to ${(0, server_client_1.printable)(lastMove.commit)}: ${(0, server_client_1.printable)(lastMove.error)}; it stays at ${(0, server_client_1.printable)(run.source.type === 'ref' ? run.source.commit : '-')}`, 1);
|
|
470
470
|
}
|
|
471
471
|
if (run.state === 'asleep') {
|
|
472
|
-
|
|
473
|
-
|
|
472
|
+
// its addresses stay while it sleeps, and a request to one of them wakes it
|
|
473
|
+
environment.stdout.write(`${(0, server_client_1.printable)(run.id)} sleeps, at ${(0, server_client_1.printable)(run.source.type === 'ref' ? run.source.commit : '-')} when it wakes, until ${(0, server_client_1.printable)(run.expiresAt ?? '-')}${run.up?.endpoints.length ? ', a request to an endpoint wakes it' : ''}\n`);
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
environment.stdout.write(`${(0, server_client_1.printable)(run.id)} is up until ${(0, server_client_1.printable)(run.expiresAt ?? '-')}${run.up?.sleepTtl ? `, asleep after ${(0, units_1.formatDuration)(run.up.sleepTtl)} without a request` : ''}\n`);
|
|
474
477
|
}
|
|
475
|
-
environment.stdout.write(`${(0, server_client_1.printable)(run.id)} is up until ${(0, server_client_1.printable)(run.expiresAt ?? '-')}${run.up?.sleepTtl ? `, asleep after ${(0, units_1.formatDuration)(run.up.sleepTtl)} without a request` : ''}\n`);
|
|
476
478
|
for (const endpoint of run.up?.endpoints ?? []) {
|
|
477
479
|
environment.stdout.write(` ${(0, server_client_1.printable)(endpoint.service)}:${endpoint.port} ${(0, server_client_1.printable)(endpoint.url)}\n`);
|
|
478
480
|
}
|
package/package.json
CHANGED