@yemi33/minions 0.1.2035 → 0.1.2036
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/dashboard/js/state.js +17 -0
- package/package.json +1 -1
package/dashboard/js/state.js
CHANGED
|
@@ -84,6 +84,23 @@ function switchPage(page, pushState) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
_invokePageHooks(PAGE_LAZY_LOADERS[page]);
|
|
87
|
+
|
|
88
|
+
// W-mphf8tkn0009f3ac — force an immediate /api/status fetch on every page
|
|
89
|
+
// switch (sidebar click + popstate back/forward). Without this, visiting a
|
|
90
|
+
// page just unhides a pre-rendered DOM that's whatever the last
|
|
91
|
+
// setInterval(refresh, 4000) tick produced — up to 4 s stale, much worse if
|
|
92
|
+
// the tab was background-throttled or a 10 MB payload is mid-parse.
|
|
93
|
+
// PAGE_LAZY_LOADERS only covers qa/plans/inbox (which have side-channel
|
|
94
|
+
// fetches); every other page (work, home, prs, engine, agents, pipelines,
|
|
95
|
+
// meetings, watches, schedule, tools) had no per-entry refresh trigger.
|
|
96
|
+
// _refreshInFlight (refresh.js) coalesces against an in-flight call so this
|
|
97
|
+
// is safe even when the 4 s interval just fired; ETag/304 keeps server cost
|
|
98
|
+
// ~free in steady state.
|
|
99
|
+
// typeof guard: state.js evaluates before refresh.js in the assembled
|
|
100
|
+
// bundle, so the very first switchPage(currentPage) call from refresh.js's
|
|
101
|
+
// own bootstrap runs AFTER refresh is defined — but a future load-order
|
|
102
|
+
// change or partial init must not break navigation.
|
|
103
|
+
try { if (typeof refresh === 'function') refresh(); } catch { /* refresh failure must not block page navigation */ }
|
|
87
104
|
}
|
|
88
105
|
|
|
89
106
|
// Browser back/forward navigation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2036",
|
|
4
4
|
"description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
|
|
5
5
|
"bin": {
|
|
6
6
|
"minions": "bin/minions.js"
|