@staff0rd/assist 0.395.0 → 0.396.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
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.395.0",
9
+ version: "0.396.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -8467,11 +8467,13 @@ async function listUsagePeaks(db, paging) {
8467
8467
  resetsAt: phaseCycleContext.resetsAt,
8468
8468
  avgContextPct: sql11`cast(avg(${phaseCycleContext.peakContextPct}) as double precision)`.as(
8469
8469
  "avg_context_pct"
8470
- )
8470
+ ),
8471
+ phaseCount: count().as("phase_count")
8471
8472
  }).from(phaseCycleContext).groupBy(phaseCycleContext.window, phaseCycleContext.resetsAt).as("avg_context");
8472
8473
  const query = db.select({
8473
8474
  ...getTableColumns(usagePeaks),
8474
- avgContextPct: avgContext.avgContextPct
8475
+ avgContextPct: avgContext.avgContextPct,
8476
+ phaseCount: avgContext.phaseCount
8475
8477
  }).from(usagePeaks).leftJoin(
8476
8478
  avgContext,
8477
8479
  and7(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.395.0",
3
+ "version": "0.396.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {