@integrity-labs/agt-cli 0.28.399 → 0.28.400
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-MZ7EU4V7.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4829
4829
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4830
4830
|
import chalk18 from "chalk";
|
|
4831
4831
|
import ora16 from "ora";
|
|
4832
|
-
var cliVersion = true ? "0.28.
|
|
4832
|
+
var cliVersion = true ? "0.28.400" : "dev";
|
|
4833
4833
|
async function fetchLatestVersion() {
|
|
4834
4834
|
const host2 = getHost();
|
|
4835
4835
|
if (!host2) return null;
|
|
@@ -6001,7 +6001,7 @@ function handleError(err) {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
|
|
6003
6003
|
// src/bin/agt.ts
|
|
6004
|
-
var cliVersion2 = true ? "0.28.
|
|
6004
|
+
var cliVersion2 = true ? "0.28.400" : "dev";
|
|
6005
6005
|
var program = new Command();
|
|
6006
6006
|
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");
|
|
6007
6007
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6213,7 +6213,7 @@ function requireHost() {
|
|
|
6213
6213
|
}
|
|
6214
6214
|
|
|
6215
6215
|
// src/lib/api-client.ts
|
|
6216
|
-
var agtCliVersion = true ? "0.28.
|
|
6216
|
+
var agtCliVersion = true ? "0.28.400" : "dev";
|
|
6217
6217
|
var lastConfigHash = null;
|
|
6218
6218
|
function setConfigHash(hash) {
|
|
6219
6219
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8679,4 +8679,4 @@ export {
|
|
|
8679
8679
|
managerInstallSystemUnitCommand,
|
|
8680
8680
|
managerUninstallSystemUnitCommand
|
|
8681
8681
|
};
|
|
8682
|
-
//# sourceMappingURL=chunk-
|
|
8682
|
+
//# sourceMappingURL=chunk-MZ7EU4V7.js.map
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
resolveEffectivePinRaw,
|
|
45
45
|
safeWriteJsonAtomic,
|
|
46
46
|
setConfigHash
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-MZ7EU4V7.js";
|
|
48
48
|
import {
|
|
49
49
|
getProjectDir as getProjectDir2,
|
|
50
50
|
getReadyTasks,
|
|
@@ -9249,7 +9249,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9249
9249
|
var lastVersionCheckAt = 0;
|
|
9250
9250
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9251
9251
|
var lastResponsivenessProbeAt = 0;
|
|
9252
|
-
var agtCliVersion = true ? "0.28.
|
|
9252
|
+
var agtCliVersion = true ? "0.28.400" : "dev";
|
|
9253
9253
|
function resolveBrewPath(execFileSync2) {
|
|
9254
9254
|
try {
|
|
9255
9255
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/dist/mcp/index.js
CHANGED
|
@@ -22511,6 +22511,72 @@ server.tool(
|
|
|
22511
22511
|
};
|
|
22512
22512
|
}
|
|
22513
22513
|
);
|
|
22514
|
+
server.tool(
|
|
22515
|
+
"update_timezone",
|
|
22516
|
+
`Set your OWN timezone, as an IANA name (e.g. "Australia/Sydney", "America/New_York", "Europe/London"). This controls the local clock used for your restart / maintenance-window scheduling and day-boundary reporting, so "off-peak" is calculated in your operator's zone rather than UTC. Pass an empty string (or "auto") to CLEAR your override and inherit your team default (falling back to UTC). Changes save immediately and take full effect within a few minutes, on your next configuration refresh. Your code_name and identity are unaffected.`,
|
|
22517
|
+
{
|
|
22518
|
+
timezone: external_exports.string().max(100).describe(
|
|
22519
|
+
'Your IANA timezone name (e.g. "Australia/Sydney"). Pass an empty string or "auto" to clear the override and inherit the team default (then UTC).'
|
|
22520
|
+
)
|
|
22521
|
+
},
|
|
22522
|
+
async (params) => {
|
|
22523
|
+
if (!AGT_AGENT_CODE_NAME) {
|
|
22524
|
+
return {
|
|
22525
|
+
content: [{ type: "text", text: "Error: AGT_AGENT_CODE_NAME not configured." }],
|
|
22526
|
+
isError: true
|
|
22527
|
+
};
|
|
22528
|
+
}
|
|
22529
|
+
const payload = { agent_code_name: AGT_AGENT_CODE_NAME, timezone: params.timezone };
|
|
22530
|
+
let resp;
|
|
22531
|
+
try {
|
|
22532
|
+
resp = await apiPost("/host/update-timezone", payload);
|
|
22533
|
+
} catch (err) {
|
|
22534
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
22535
|
+
if (/returned\s+[45]\d\d/.test(msg)) {
|
|
22536
|
+
let detail = msg;
|
|
22537
|
+
const jsonStart = msg.indexOf("{");
|
|
22538
|
+
if (jsonStart !== -1) {
|
|
22539
|
+
try {
|
|
22540
|
+
const parsedErr = JSON.parse(msg.slice(jsonStart));
|
|
22541
|
+
if (parsedErr.error) detail = parsedErr.error;
|
|
22542
|
+
} catch {
|
|
22543
|
+
}
|
|
22544
|
+
}
|
|
22545
|
+
return {
|
|
22546
|
+
content: [{ type: "text", text: `Timezone update rejected: ${detail}` }],
|
|
22547
|
+
isError: true
|
|
22548
|
+
};
|
|
22549
|
+
}
|
|
22550
|
+
return {
|
|
22551
|
+
content: [
|
|
22552
|
+
{
|
|
22553
|
+
type: "text",
|
|
22554
|
+
text: `Could not reach the timezone-update service (${msg}). Tell your operator.`
|
|
22555
|
+
}
|
|
22556
|
+
],
|
|
22557
|
+
isError: true
|
|
22558
|
+
};
|
|
22559
|
+
}
|
|
22560
|
+
if (!resp.ok) {
|
|
22561
|
+
return {
|
|
22562
|
+
content: [
|
|
22563
|
+
{ type: "text", text: `Timezone update rejected: ${resp.error ?? "unknown error"}` }
|
|
22564
|
+
],
|
|
22565
|
+
isError: true
|
|
22566
|
+
};
|
|
22567
|
+
}
|
|
22568
|
+
const effective = resp.effective_timezone ?? "UTC";
|
|
22569
|
+
const summary = resp.timezone ? `Your timezone is now ${resp.timezone}.` : `Your timezone override was cleared; you now inherit ${effective}.`;
|
|
22570
|
+
return {
|
|
22571
|
+
content: [
|
|
22572
|
+
{
|
|
22573
|
+
type: "text",
|
|
22574
|
+
text: `${summary} Effective timezone: ${effective}. The change will take effect within a few minutes, on your next configuration refresh.`
|
|
22575
|
+
}
|
|
22576
|
+
]
|
|
22577
|
+
};
|
|
22578
|
+
}
|
|
22579
|
+
);
|
|
22514
22580
|
server.tool(
|
|
22515
22581
|
"request_channel_access",
|
|
22516
22582
|
"Request approval to post in a specific Slack channel - i.e. to have it added to your organization's channel allowlist. This sends a HITL approval to your Manager; once they approve, the platform adds the channel to the allowlist (org-wide) and you can post there. FIRST resolve the channel id (C...) and confirm the bot can see the channel with slack.check_channel: if it returns not_in_channel, that is a SEPARATE problem - ask your operator to /invite your bot to the channel (membership is not the same as the allowlist). Then call this with the channel_id, a clear reason, and a stable idempotency_key. The request is pending until your Manager decides; poll it with check_approval using the returned request_id. Do not call this for a channel you can already post in.",
|
|
@@ -23696,6 +23762,9 @@ var LOCAL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
|
23696
23762
|
// ENG-6686: self-service identity edit (always registered). Listed here to
|
|
23697
23763
|
// keep the lockstep guard green; no API tool shares this name.
|
|
23698
23764
|
"update_identity",
|
|
23765
|
+
// ENG-8053: self-service timezone edit (always registered). Listed here to
|
|
23766
|
+
// keep the lockstep guard green; no API tool shares this name.
|
|
23767
|
+
"update_timezone",
|
|
23699
23768
|
// ENG-6689: request Slack channel posting access (HITL approval to Manager).
|
|
23700
23769
|
// Always registered; listed here to keep the lockstep guard green.
|
|
23701
23770
|
"request_channel_access",
|
package/package.json
CHANGED
|
File without changes
|