@the-vibe-company/armada 0.2.17 → 0.2.18
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/README.md +1 -0
- package/dist/armada.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -179,6 +179,7 @@ Try it locally with synthetic data and no key:
|
|
|
179
179
|
```sh
|
|
180
180
|
cd packages/dashboard
|
|
181
181
|
bun run demo:seed # a local PGlite database (Postgres in the process) with the mockup's Acme world (three projects, ten sessions)
|
|
182
|
+
# bun run demo:seed busy # the same with twenty more sessions reporting every 2 minutes all day (then ARMADA_DASHBOARD_DEMO=busy)
|
|
182
183
|
ARMADA_DASHBOARD_PASSWORD=off ARMADA_DASHBOARD_DEMO=fleet ARMADA_DATABASE_URL=pglite:.demo/armada bun run dev # http://localhost:4822
|
|
183
184
|
```
|
|
184
185
|
|
package/dist/armada.js
CHANGED
|
@@ -5139,6 +5139,8 @@ function outcome(c, merged, pr, lines, workers, archive) {
|
|
|
5139
5139
|
}
|
|
5140
5140
|
// ../core/src/timeline.ts
|
|
5141
5141
|
var SAME_REPORT_MS = 2 * 60000;
|
|
5142
|
+
var MIN3 = 60000;
|
|
5143
|
+
var HOUR = 60 * MIN3;
|
|
5142
5144
|
// ../core/src/projects.ts
|
|
5143
5145
|
var message = (err) => err instanceof Error ? err.message : String(err);
|
|
5144
5146
|
async function readProjectConfig(p, opts) {
|
|
@@ -5902,7 +5904,7 @@ async function loadStatus(config, opts) {
|
|
|
5902
5904
|
});
|
|
5903
5905
|
}
|
|
5904
5906
|
// package.json
|
|
5905
|
-
var version = "0.2.
|
|
5907
|
+
var version = "0.2.18";
|
|
5906
5908
|
|
|
5907
5909
|
// src/api.ts
|
|
5908
5910
|
var runs = new WeakMap;
|
|
@@ -7830,10 +7832,10 @@ async function merge2(io, config, credentials, a, configPath) {
|
|
|
7830
7832
|
}
|
|
7831
7833
|
|
|
7832
7834
|
// src/render.ts
|
|
7833
|
-
var
|
|
7835
|
+
var MIN4 = 60000;
|
|
7834
7836
|
function relative2(iso, now) {
|
|
7835
7837
|
const diff = now - Date.parse(iso);
|
|
7836
|
-
const m = Math.round(Math.abs(diff) /
|
|
7838
|
+
const m = Math.round(Math.abs(diff) / MIN4);
|
|
7837
7839
|
const suffix = diff >= 0 ? "ago" : "from now";
|
|
7838
7840
|
if (m < 1)
|
|
7839
7841
|
return "just now";
|