@integrity-labs/agt-cli 0.28.887 → 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/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-P2EMIE25.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5467
5467
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5468
5468
|
import chalk18 from "chalk";
|
|
5469
5469
|
import ora16 from "ora";
|
|
5470
|
-
var cliVersion = true ? "0.28.
|
|
5470
|
+
var cliVersion = true ? "0.28.888" : "dev";
|
|
5471
5471
|
async function fetchLatestVersion() {
|
|
5472
5472
|
const host2 = getHost();
|
|
5473
5473
|
if (!host2) return null;
|
|
@@ -6658,7 +6658,7 @@ function handleError(err) {
|
|
|
6658
6658
|
}
|
|
6659
6659
|
|
|
6660
6660
|
// src/bin/agt.ts
|
|
6661
|
-
var cliVersion2 = true ? "0.28.
|
|
6661
|
+
var cliVersion2 = true ? "0.28.888" : "dev";
|
|
6662
6662
|
var program = new Command();
|
|
6663
6663
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6664
6664
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6841,7 +6841,7 @@ function exchangeFailureKind(err) {
|
|
|
6841
6841
|
}
|
|
6842
6842
|
|
|
6843
6843
|
// src/lib/api-client.ts
|
|
6844
|
-
var agtCliVersion = true ? "0.28.
|
|
6844
|
+
var agtCliVersion = true ? "0.28.888" : "dev";
|
|
6845
6845
|
var lastConfigHash = null;
|
|
6846
6846
|
function setConfigHash(hash) {
|
|
6847
6847
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11451,4 +11451,4 @@ export {
|
|
|
11451
11451
|
managerInstallSystemUnitCommand,
|
|
11452
11452
|
managerUninstallSystemUnitCommand
|
|
11453
11453
|
};
|
|
11454
|
-
//# sourceMappingURL=chunk-
|
|
11454
|
+
//# sourceMappingURL=chunk-P2EMIE25.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-P2EMIE25.js";
|
|
67
67
|
import {
|
|
68
68
|
getProjectDir as getProjectDir2,
|
|
69
69
|
getReadyTasks,
|
|
@@ -13691,7 +13691,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13691
13691
|
var lastVersionCheckAt = 0;
|
|
13692
13692
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13693
13693
|
var lastResponsivenessProbeAt = 0;
|
|
13694
|
-
var agtCliVersion = true ? "0.28.
|
|
13694
|
+
var agtCliVersion = true ? "0.28.888" : "dev";
|
|
13695
13695
|
function resolveBrewPath(execFileSync2) {
|
|
13696
13696
|
try {
|
|
13697
13697
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
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(
|
|
48707
|
-
|
|
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(
|
package/package.json
CHANGED
|
File without changes
|