cli-jaw 2.17.42 → 2.17.43
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/agent/spawn.js +16 -3
- package/dist/src/agent/spawn.js.map +1 -1
- package/dist/src/orchestrator/collect.js +18 -2
- package/dist/src/orchestrator/collect.js.map +1 -1
- package/dist/src/orchestrator/pipeline.js +5 -0
- package/dist/src/orchestrator/pipeline.js.map +1 -1
- package/dist/src/slack/bot.js +18 -4
- package/dist/src/slack/bot.js.map +1 -1
- package/package.json +1 -1
- package/public/dist/.vite/manifest.json +1 -1
- package/public/dist/assets/{manager-XkR-DRaQ.js → manager-v6GYfoPB.js} +1 -1
- package/public/dist/manager/index.html +1 -1
- package/public/manager/src/components/InstanceGroups.tsx +6 -7
- package/public/manager/src/components/instance-row-status.ts +2 -5
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<link rel="icon" type="image/png" href="/dist/assets/icon-192-CwXPIYF5.png">
|
|
7
7
|
<title>Jaw Manager</title>
|
|
8
8
|
<script src="/manager/theme-boot.js"></script>
|
|
9
|
-
<script type="module" crossorigin src="/dist/assets/manager-
|
|
9
|
+
<script type="module" crossorigin src="/dist/assets/manager-v6GYfoPB.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/dist/assets/vendor-render-DSSkXCir.css">
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/dist/assets/settings-embedding-LIMq5ebM.css">
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/dist/assets/manager-Nk7-RYPs.css">
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
DashboardLifecycleAction,
|
|
7
7
|
DashboardProfile,
|
|
8
8
|
} from '../types';
|
|
9
|
-
import {
|
|
9
|
+
import { comparePinnedThenPort } from './instance-row-status';
|
|
10
10
|
import { useSidebarGroupCollapse } from '../hooks/useSidebarGroupCollapse';
|
|
11
11
|
import {
|
|
12
12
|
SETTLED_TAIL_INITIAL_COUNT,
|
|
@@ -82,12 +82,11 @@ function groupInstances(instances: DashboardInstance[], selectedPort: number | n
|
|
|
82
82
|
const running = remaining.filter(instance => instance.status === 'online');
|
|
83
83
|
const attention = remaining.filter(instance => instance.status === 'error');
|
|
84
84
|
const settled = remaining.filter(instance => isSettledStatus(instance.status));
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
for (const group of userGroups.values()) group.sort((a, b) => comparePinnedThenLabel(a, b, labelOf));
|
|
85
|
+
favorites.sort(comparePinnedThenPort);
|
|
86
|
+
running.sort(comparePinnedThenPort);
|
|
87
|
+
attention.sort(comparePinnedThenPort);
|
|
88
|
+
settled.sort(comparePinnedThenPort);
|
|
89
|
+
for (const group of userGroups.values()) group.sort(comparePinnedThenPort);
|
|
91
90
|
|
|
92
91
|
const groups: DashboardInstanceGroup[] = [
|
|
93
92
|
{ id: 'active', label: 'Selected', instances: selected },
|
|
@@ -36,13 +36,10 @@ export function composeInstanceRowTitle(instance: Pick<DashboardInstance, 'port'
|
|
|
36
36
|
].join(' · ');
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export function
|
|
39
|
+
export function comparePinnedThenPort<T extends Pick<DashboardInstance, 'favorite' | 'port'>>(
|
|
40
40
|
a: T,
|
|
41
41
|
b: T,
|
|
42
|
-
labelOf: (instance: T) => string,
|
|
43
42
|
): number {
|
|
44
43
|
const fav = Number(Boolean(b.favorite)) - Number(Boolean(a.favorite));
|
|
45
|
-
|
|
46
|
-
const byLabel = labelOf(a).localeCompare(labelOf(b), undefined, { sensitivity: 'base' });
|
|
47
|
-
return byLabel !== 0 ? byLabel : a.port - b.port;
|
|
44
|
+
return fav !== 0 ? fav : a.port - b.port;
|
|
48
45
|
}
|