@phnx-labs/agents-cli 1.23.48 → 1.23.49

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.23.49
4
+
5
+ - **You hear the seat count before the names.** The daemon now notifies you once when the seat count differs from your active accounts at low confidence ("claude: about 5 of 8 accounts cover your usage"), saying when it will name which ones. Before, it stayed silent until every account had 3 weeks of readings. Source: `cli/src/lib/accounting/advise.ts`.
6
+
3
7
  ## 1.23.48
4
8
 
5
9
  - **`agents accounts usage --json` reports the rules it applied.** A new `thresholds` object carries the target share, the coverage needed before a seat count (`minCoverage`, `minMeasured`), the weeks each account needs before accounts are named (`weeksNeeded`) and the limit percent, so the AGI Menu Accounts tab can show why it recommends what it does. Source: `cli/src/lib/accounting/advise.ts`.
@@ -217,7 +217,25 @@ export function renderAccountsAdvice(result) {
217
217
  return lines;
218
218
  }
219
219
  export function accountsAdviceNotification(result, lastNotified, now = new Date()) {
220
- const { harness, advice, coverage, peakDemand } = result;
220
+ const { harness, advice, coverage, peakDemand, thresholds } = result;
221
+ const week = new Date(weekStartUtc(now.getTime())).toISOString().slice(0, 10);
222
+ const demand = peakDemand === null ? '' : ` Peak weekly demand was ${peakDemand.toFixed(2)} account-weeks.`;
223
+ if (advice.confidence === 'low') {
224
+ if (advice.keep === coverage.total)
225
+ return null;
226
+ const fingerprint = [harness, 'low', advice.keep, coverage.total].join('|');
227
+ if (fingerprint === lastNotified)
228
+ return null;
229
+ const title = advice.keep < coverage.total
230
+ ? `${harness}: about ${advice.keep} of ${coverage.total} accounts cover your usage`
231
+ : `${harness}: you may need ${advice.keep} accounts, ${coverage.total} are active`;
232
+ return {
233
+ fingerprint,
234
+ title,
235
+ body: `Which accounts to ${advice.keep < coverage.total ? 'pause' : 'resume'} is named once each has readings in ${thresholds.weeksNeeded} of the last ${result.weeks.length} weeks.${demand} Details: agents accounts usage ${harness}`,
236
+ dedupKey: `accounts-advice:${harness}:${week}:low:${advice.keep}`,
237
+ };
238
+ }
221
239
  if (advice.confidence !== 'high')
222
240
  return null;
223
241
  if (advice.pause.length === 0 && advice.resume.length === 0 && advice.add === 0)
@@ -225,8 +243,6 @@ export function accountsAdviceNotification(result, lastNotified, now = new Date(
225
243
  const fingerprint = [harness, advice.keep, [...advice.pause].sort().join(','), [...advice.resume].sort().join(','), advice.add].join('|');
226
244
  if (fingerprint === lastNotified)
227
245
  return null;
228
- const week = new Date(weekStartUtc(now.getTime())).toISOString().slice(0, 10);
229
- const demand = peakDemand === null ? '' : ` Peak weekly demand was ${peakDemand.toFixed(2)} account-weeks.`;
230
246
  let title;
231
247
  let action;
232
248
  if (advice.pause.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phnx-labs/agents-cli",
3
- "version": "1.23.48",
3
+ "version": "1.23.49",
4
4
  "description": "One CLI for all your AI coding agents - versions, config, cloud dispatch, sessions, and teams (now with first-class Grok Build CLI support)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",