@higherdev/cli 0.33.0 → 0.34.0

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/index.js CHANGED
@@ -69,6 +69,10 @@ async function cmdStatus() {
69
69
  if (data.host?.draining) {
70
70
  console.log(`${c.yellow(formatDrainStatus(data.host.draining.live, data.host.draining.until))}\n`);
71
71
  }
72
+ const signedOut = data.host?.signed_out ?? [];
73
+ if (signedOut.length) {
74
+ console.log(`${c.bold("Host")} ${signedOut.map((row) => c.yellow(row.reason)).join("\n ")}\n`);
75
+ }
72
76
  const waiting = [...new Set(data.tickets.map((ticket) => ticket.stuck_reason
73
77
  ?.match(/^Waiting on (\w+) until (\d{1,2}:\d{2})\.$/)).filter(Boolean)
74
78
  .map((match) => `${match?.[1]} waiting until ${match?.[2]}`))];
@@ -118,11 +118,13 @@ export function AgentsColumn({ board, width, rows, }) {
118
118
  ]
119
119
  : []),
120
120
  ...shown.map((row) => {
121
- const tone = row.run ? "blue" : row.state === "offline" || row.state === "limited" || row.state === "draining"
121
+ const tone = row.run ? "blue" : row.state === "offline" || row.state === "limited"
122
+ || row.state === "draining" || row.state === "signed_out"
122
123
  ? "warning" : "muted";
123
124
  return (_jsxs(Box, { flexWrap: "nowrap", children: [_jsxs(Text, { color: inkColor(tone), children: [DOT, " "] }), _jsxs(Text, { color: UI.text, wrap: "truncate", children: [row.name, row.state === "draining" ? null : (_jsx(Text, { color: UI.dim, children: row.run
124
125
  ? ` · ${row.ticket?.key ?? row.run.kind} ${elapsed(row.run.started_at ?? row.run.created_at)}`
125
- : ` · ${row.limitedUntil ? `limited until ${row.limitedUntil}` : row.detail ?? row.state}` }))] })] }, row.key));
126
+ : ` · ${row.state === "signed_out" ? "signed out"
127
+ : row.limitedUntil ? `limited until ${row.limitedUntil}` : row.detail ?? row.state}` }))] })] }, row.key));
126
128
  }),
127
129
  _jsx(More, { count: displayRows.length - shown.length }, "more"),
128
130
  ] }));
@@ -28,10 +28,12 @@ export function AgentsPanel({ board, width = 80, rows = 12, }) {
28
28
  ]
29
29
  : []),
30
30
  ...shown.map((row) => {
31
- const tone = row.run ? "blue" : row.state === "offline" || row.state === "limited" || row.state === "draining"
31
+ const tone = row.run ? "blue" : row.state === "offline" || row.state === "limited"
32
+ || row.state === "draining" || row.state === "signed_out"
32
33
  ? "warning" : "muted";
33
34
  const state = row.state === "draining" ? ""
34
- : row.limitedUntil ? `limited until ${row.limitedUntil}` : row.state;
35
+ : row.state === "signed_out" ? "signed out"
36
+ : row.limitedUntil ? `limited until ${row.limitedUntil}` : row.state;
35
37
  return (_jsxs(Text, { wrap: "truncate", children: [_jsxs(Text, { color: inkColor(tone), children: [DOT, " "] }), _jsx(Text, { color: UI.text, children: pad(truncate(row.name, 13), 14) }), _jsx(Text, { color: UI.dim, children: pad(row.agent?.role ?? row.run?.kind ?? "", 13) }), _jsx(Text, { color: UI.dim, children: pad(truncate(row.agent?.model ?? "", 23), 24) }), _jsx(Text, { color: UI.text, children: pad(state, row.limitedUntil ? 22 : 9) }), _jsxs(Text, { color: UI.dim, children: [row.ticket ? `${row.ticket.key} ` : "", row.run ? elapsed(row.run.started_at ?? row.run.created_at) : ""] })] }, row.key));
36
38
  }),
37
39
  _jsx(More, { count: displayRows.length - shown.length }, "more"),
@@ -1,6 +1,7 @@
1
1
  import { formatDrainStatus } from "../host.js";
2
2
  import { orchestratorIdleReason } from "../roadmap.js";
3
3
  const LIMITED_UNTIL = /^(?:Waiting on )?(\w+) (?:limited )?until (\d{1,2}:\d{2})\.?$/;
4
+ const SIGNED_OUT = /^(?:Claude Code|Codex|Grok|Gemini) on host \S+ is signed out/;
4
5
  export function limitedUntilByProvider(tickets) {
5
6
  const limited = new Map();
6
7
  for (const ticket of tickets) {
@@ -10,6 +11,15 @@ export function limitedUntilByProvider(tickets) {
10
11
  }
11
12
  return limited;
12
13
  }
14
+ export function signedOutProviders(board) {
15
+ const providers = new Set((board.hostSignedOut ?? []).map((row) => row.provider));
16
+ for (const ticket of board.tickets) {
17
+ if (ticket.stuck_reason && SIGNED_OUT.test(ticket.stuck_reason) && ticket.provider) {
18
+ providers.add(ticket.provider);
19
+ }
20
+ }
21
+ return providers;
22
+ }
13
23
  const roleForKind = {
14
24
  architect: "architect",
15
25
  build: "builder",
@@ -67,24 +77,30 @@ export function agentDisplayRows(board, now = Date.now()) {
67
77
  };
68
78
  });
69
79
  const limited = limitedUntilByProvider(board.tickets);
80
+ const signedOut = signedOutProviders(board);
70
81
  const idle = board.agents
71
82
  .filter((agent) => agent.enabled && !activeAgents.has(agent.id))
72
83
  .sort((left, right) => left.display_name.localeCompare(right.display_name))
73
84
  .map((agent) => {
74
85
  const until = limited.get(agent.provider);
86
+ const out = signedOut.has(agent.provider);
75
87
  return {
76
88
  key: `idle:${agent.id}`,
77
89
  name: agent.display_name,
78
90
  agent,
79
91
  run: null,
80
92
  ticket: null,
81
- state: until
82
- ? "limited"
83
- : board.availability.some((row) => row.provider === agent.provider && !row.available)
84
- ? "offline"
85
- : "idle",
93
+ state: out
94
+ ? "signed_out"
95
+ : until
96
+ ? "limited"
97
+ : board.availability.some((row) => row.provider === agent.provider && !row.available)
98
+ ? "offline"
99
+ : "idle",
86
100
  limitedUntil: until ?? null,
87
- detail: agent.role === "orchestrator" ? orchestratorIdleReason(board.epics) : null,
101
+ detail: out
102
+ ? "signed out"
103
+ : agent.role === "orchestrator" ? orchestratorIdleReason(board.epics) : null,
88
104
  };
89
105
  });
90
106
  return [...drain, ...live, ...idle];
package/dist/tui/data.js CHANGED
@@ -84,6 +84,7 @@ export async function loadSnapshot(config = loadConfig(), options = {}) {
84
84
  availability,
85
85
  runs: status.recent_runs ?? status.live_runs,
86
86
  hostDrain: status.host?.draining ?? null,
87
+ hostSignedOut: status.host?.signed_out ?? [],
87
88
  },
88
89
  feed: feedData.entries,
89
90
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@higherdev/cli",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",