@integrity-labs/agt-cli 0.28.886 → 0.28.888

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/mcp/index.js CHANGED
@@ -30141,6 +30141,112 @@ var MIN_PROVISIONING_MAX_FOR_QUARANTINE_ORDERING = BIND_FAILURE_QUARANTINE_THRES
30141
30141
  var FORCED_UPDATE_RELAX_AFTER_MS = 7 * 6e4;
30142
30142
  var FORCED_UPDATE_HARD_DEADLINE_MS = 15 * 6e4;
30143
30143
 
30144
+ // ../core/dist/dashboards/widget-kinds.js
30145
+ var DASHBOARD_WIDGET_KINDS = ["kpi", "area", "line", "bar", "donut", "table"];
30146
+ var TABLE_CELL_STATES = ["good", "warning", "critical", "info", "neutral", "empty"];
30147
+ var TABLE_WIDGET_LIMITS = { columns: 60, rows: 500, label: 120, cellText: 64 };
30148
+ function categoriesSeriesSchema() {
30149
+ return {
30150
+ type: "object",
30151
+ required: ["categories", "series"],
30152
+ additionalProperties: false,
30153
+ properties: {
30154
+ categories: { type: "array", items: { type: "string" } },
30155
+ series: {
30156
+ type: "array",
30157
+ items: {
30158
+ type: "object",
30159
+ required: ["name", "data"],
30160
+ additionalProperties: false,
30161
+ properties: {
30162
+ name: { type: "string" },
30163
+ data: { type: "array", items: { type: "number" } }
30164
+ }
30165
+ }
30166
+ }
30167
+ }
30168
+ };
30169
+ }
30170
+ function tableSchema() {
30171
+ const L = TABLE_WIDGET_LIMITS;
30172
+ return {
30173
+ type: "object",
30174
+ required: ["columns", "rows"],
30175
+ additionalProperties: false,
30176
+ properties: {
30177
+ rowHeader: { type: "string", maxLength: L.label },
30178
+ columns: { type: "array", minItems: 1, maxItems: L.columns, items: { type: "string", maxLength: L.label } },
30179
+ rows: {
30180
+ type: "array",
30181
+ maxItems: L.rows,
30182
+ items: {
30183
+ type: "object",
30184
+ required: ["label", "cells"],
30185
+ additionalProperties: false,
30186
+ properties: {
30187
+ label: { type: "string", maxLength: L.label },
30188
+ sub: { type: "string", maxLength: L.label },
30189
+ cells: {
30190
+ type: "array",
30191
+ maxItems: L.columns,
30192
+ items: {
30193
+ type: "object",
30194
+ additionalProperties: false,
30195
+ properties: {
30196
+ value: { type: ["string", "number"], maxLength: L.cellText },
30197
+ sub: { type: "string", maxLength: L.cellText },
30198
+ state: { enum: [...TABLE_CELL_STATES] }
30199
+ }
30200
+ }
30201
+ }
30202
+ }
30203
+ }
30204
+ },
30205
+ legend: {
30206
+ type: "array",
30207
+ maxItems: TABLE_CELL_STATES.length,
30208
+ items: {
30209
+ type: "object",
30210
+ required: ["state", "label"],
30211
+ additionalProperties: false,
30212
+ properties: {
30213
+ state: { enum: [...TABLE_CELL_STATES] },
30214
+ label: { type: "string", maxLength: L.label }
30215
+ }
30216
+ }
30217
+ }
30218
+ }
30219
+ };
30220
+ }
30221
+ var DASHBOARD_WIDGET_SCHEMAS = {
30222
+ kpi: {
30223
+ type: "object",
30224
+ required: ["value"],
30225
+ additionalProperties: false,
30226
+ properties: {
30227
+ label: { type: "string" },
30228
+ value: { type: ["string", "number"] },
30229
+ delta: { type: "string" },
30230
+ deltaTone: { enum: ["positive", "negative", "neutral"] },
30231
+ values: { type: "array", items: { type: "number" } },
30232
+ color: { type: "string", pattern: "^#[0-9a-fA-F]{6}$" }
30233
+ }
30234
+ },
30235
+ area: categoriesSeriesSchema(),
30236
+ line: categoriesSeriesSchema(),
30237
+ bar: categoriesSeriesSchema(),
30238
+ donut: {
30239
+ type: "object",
30240
+ required: ["labels", "series"],
30241
+ additionalProperties: false,
30242
+ properties: {
30243
+ labels: { type: "array", items: { type: "string" } },
30244
+ series: { type: "array", items: { type: "number" } }
30245
+ }
30246
+ },
30247
+ table: tableSchema()
30248
+ };
30249
+
30144
30250
  // src/kanban-get-error.ts
30145
30251
  function kanbanGetErrorMessage(status, id, fallbackMessage) {
30146
30252
  if (status === 400) return "A card id is required.";
@@ -48703,8 +48809,15 @@ server.tool(
48703
48809
  );
48704
48810
  var WidgetDefSchema = external_exports.object({
48705
48811
  id: external_exports.string().describe("Stable id within the dashboard, e.g. 'kpi.revenue' or 'chart.cashflow'."),
48706
- kind: external_exports.enum(["kpi", "area", "line", "bar", "donut"]).describe(
48707
- "Widget kind. The kind picks both the renderer AND the data shape your refresh must produce:\n kpi \u2192 { value, [delta], [deltaTone: positive|negative|neutral], [values: number[]], [color: '#rrggbb'], [label] }\n area \u2192 { categories: string[], series: [{ name, data: number[] }] }\n line \u2192 { categories: string[], series: [{ name, data: number[] }] }\n bar \u2192 { categories: string[], series: [{ name, data: number[] }] }\n donut \u2192 { labels: string[], series: number[] }"
48812
+ kind: external_exports.enum(DASHBOARD_WIDGET_KINDS).describe(
48813
+ `Widget kind. The kind picks both the renderer AND the data shape your refresh must produce:
48814
+ kpi \u2192 { value, [delta], [deltaTone: positive|negative|neutral], [values: number[]], [color: '#rrggbb'], [label] }
48815
+ area \u2192 { categories: string[], series: [{ name, data: number[] }] }
48816
+ line \u2192 { categories: string[], series: [{ name, data: number[] }] }
48817
+ bar \u2192 { categories: string[], series: [{ name, data: number[] }] }
48818
+ donut \u2192 { labels: string[], series: number[] }
48819
+ table \u2192 { [rowHeader], columns: string[], rows: [{ label, [sub], cells: [{ [value], [sub], [state] }] }], [legend: [{ state, label }]] }
48820
+ Exactly one cell per column in every row. state (${TABLE_CELL_STATES.join("|")}) colours the cell. For a grid coloured by category (e.g. work type), map each category to a state and name it in legend.`
48708
48821
  ),
48709
48822
  title: external_exports.string().optional().describe("Title shown above the widget."),
48710
48823
  prompt: external_exports.string().describe("What future-you reads on every refresh. Tight, specific \u2014 e.g. 'Total Xero revenue last 30 days. value as $N,NNN AUD (whole dollars \u2014 no cents on dashboards), delta vs prior 30d, values = daily revenue.'"),
@@ -48775,7 +48888,7 @@ server.tool(
48775
48888
  slug: external_exports.string().describe('Kebab-case identifier, unique per agent (e.g. "eng-overview").'),
48776
48889
  title: external_exports.string().describe("Title shown at the top of the dashboard and in the list view."),
48777
48890
  description: external_exports.string().optional().describe("One-line description for the list view."),
48778
- widgets: external_exports.array(WidgetDefSchema).describe("Widget definitions. Each widget needs id, kind, prompt. Mix kinds \u2014 KPI tiles for headlines, area/line for trends, bar for comparisons, donut for proportions. Schema is derived server-side from kind \u2014 you do not author it.")
48891
+ widgets: external_exports.array(WidgetDefSchema).describe("Widget definitions. Each widget needs id, kind, prompt. Mix kinds \u2014 KPI tiles for headlines, area/line for trends, bar for comparisons, donut for proportions, table for rosters and status grids. Schema is derived server-side from kind \u2014 you do not author it.")
48779
48892
  },
48780
48893
  async (params) => {
48781
48894
  const data = await apiPost(
@@ -56,7 +56,7 @@ import {
56
56
  writeDirectChatSessionState,
57
57
  writeEgressAllowlist,
58
58
  writePersistentClaudeWrapper
59
- } from "./chunk-FP5M5OVX.js";
59
+ } from "./chunk-OMRYKBFE.js";
60
60
  import "./chunk-7LIBFSX6.js";
61
61
  import "./chunk-XWVM4KPK.js";
62
62
  export {
@@ -118,4 +118,4 @@ export {
118
118
  writeEgressAllowlist,
119
119
  writePersistentClaudeWrapper
120
120
  };
121
- //# sourceMappingURL=persistent-session-SG4HA35I.js.map
121
+ //# sourceMappingURL=persistent-session-RFQKA2H5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-FP5M5OVX.js";
3
+ } from "./chunk-OMRYKBFE.js";
4
4
  import "./chunk-7LIBFSX6.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
@@ -764,4 +764,4 @@ export {
764
764
  readAndResetSlackReplyBindingClassifications,
765
765
  readAndResetSlackReplyTargetClassifications
766
766
  };
767
- //# sourceMappingURL=responsiveness-probe-3OEZ6D3O.js.map
767
+ //# sourceMappingURL=responsiveness-probe-65AHLKWV.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.886",
3
+ "version": "0.28.888",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {