@integrity-labs/agt-cli 0.28.175 → 0.28.176

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
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-JOSQUNJP.js";
40
+ } from "../chunk-YNCNFORO.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEFAULT_FRAMEWORK,
@@ -4749,7 +4749,7 @@ import { execFileSync, execSync } from "child_process";
4749
4749
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4750
4750
  import chalk18 from "chalk";
4751
4751
  import ora16 from "ora";
4752
- var cliVersion = true ? "0.28.175" : "dev";
4752
+ var cliVersion = true ? "0.28.176" : "dev";
4753
4753
  async function fetchLatestVersion() {
4754
4754
  const host2 = getHost();
4755
4755
  if (!host2) return null;
@@ -5763,7 +5763,7 @@ function handleError(err) {
5763
5763
  }
5764
5764
 
5765
5765
  // src/bin/agt.ts
5766
- var cliVersion2 = true ? "0.28.175" : "dev";
5766
+ var cliVersion2 = true ? "0.28.176" : "dev";
5767
5767
  var program = new Command();
5768
5768
  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");
5769
5769
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -5964,7 +5964,7 @@ function requireHost() {
5964
5964
  }
5965
5965
 
5966
5966
  // src/lib/api-client.ts
5967
- var agtCliVersion = true ? "0.28.175" : "dev";
5967
+ var agtCliVersion = true ? "0.28.176" : "dev";
5968
5968
  var lastConfigHash = null;
5969
5969
  function setConfigHash(hash) {
5970
5970
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -7269,4 +7269,4 @@ export {
7269
7269
  managerInstallSystemUnitCommand,
7270
7270
  managerUninstallSystemUnitCommand
7271
7271
  };
7272
- //# sourceMappingURL=chunk-JOSQUNJP.js.map
7272
+ //# sourceMappingURL=chunk-YNCNFORO.js.map
@@ -28,7 +28,7 @@ import {
28
28
  requireHost,
29
29
  safeWriteJsonAtomic,
30
30
  setConfigHash
31
- } from "../chunk-JOSQUNJP.js";
31
+ } from "../chunk-YNCNFORO.js";
32
32
  import {
33
33
  getProjectDir as getProjectDir2,
34
34
  getReadyTasks,
@@ -6596,7 +6596,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6596
6596
  var lastVersionCheckAt = 0;
6597
6597
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6598
6598
  var lastResponsivenessProbeAt = 0;
6599
- var agtCliVersion = true ? "0.28.175" : "dev";
6599
+ var agtCliVersion = true ? "0.28.176" : "dev";
6600
6600
  function resolveBrewPath(execFileSync4) {
6601
6601
  try {
6602
6602
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -21409,6 +21409,10 @@ var requestActionSchema = external_exports.object({
21409
21409
  target_agent_id: external_exports.string().min(1).max(64).describe("UUID of the customer agent to act on."),
21410
21410
  reason: external_exports.string().min(1).max(2e3).describe("Why this action is needed \u2014 shown verbatim to the human approver. Be specific.")
21411
21411
  });
21412
+ var restartAgentSchema = external_exports.object({
21413
+ target_agent_id: external_exports.string().min(1).max(64).describe("UUID of the customer agent to restart."),
21414
+ reason: external_exports.string().min(1).max(2e3).describe("Why the restart is needed \u2014 shown verbatim to the human approver. Be specific.")
21415
+ });
21412
21416
  var requestConfigUpdateSchema = external_exports.object({
21413
21417
  target_agent_id: external_exports.string().min(1).max(64).describe("UUID of the customer agent whose config to change."),
21414
21418
  field: external_exports.enum(["primary_model", "secondary_model", "tertiary_model"]).describe("The agent-config field to change. Only the model tiers are settable."),
@@ -21800,6 +21804,22 @@ server.tool(
21800
21804
  }
21801
21805
  }
21802
21806
  );
21807
+ server.tool(
21808
+ "debug_restart_agent",
21809
+ `Request a HITL-gated RESTART of a customer agent \u2014 bounce its session so the manager respawns it on the next poll (reversible; the inbound backlog replays). Use this to recover a wedged agent or to make it pick up a newly-bound integration/config change. A HUMAN must approve in Slack before anything happens, and only if writes are armed for this stage; in shadow mode the approval runs but nothing executes. Org-agnostic: keyed on the agent's host assignment, so it works cross-org without an active-org dependency. This is the same path as request_action({ action: "restart" }), exposed as a dedicated tool for discoverability. Returns { request_id, status, write_mode, notification_status }. Surface a brief, jargon-free note to the user (e.g. "I've asked an admin to approve restarting that agent"). Pass { target_agent_id, reason }.`,
21810
+ restartAgentSchema.shape,
21811
+ async (args) => {
21812
+ try {
21813
+ const result = await client.requestAction("restart", {
21814
+ target_agent_id: args.target_agent_id,
21815
+ reason: args.reason
21816
+ });
21817
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
21818
+ } catch (err) {
21819
+ return { content: [{ type: "text", text: formatError2(err) }], isError: true };
21820
+ }
21821
+ }
21822
+ );
21803
21823
  server.tool(
21804
21824
  "request_config_update",
21805
21825
  "Request a HITL-gated change to a customer agent's model config (primary/secondary/tertiary_model). A HUMAN must approve in Slack before anything happens, and only if writes are armed for this stage (shadow mode runs the approval but executes nothing). The change is reversible and applies at the agent's NEXT session launch after /host/refresh \u2014 it does not restart the agent. The new value is validated against the agent before approval is requested: Claude Code (subscription) agents take a family alias (fable/opus/opus[fast]/sonnet/haiku); routed agents take a full stored model id (e.g. openrouter/anthropic/claude-opus-4-6). Use this to fix a misconfigured model (e.g. an agent wedged on a model its auth can't access). Returns { request_id, status, write_mode, notification_status }. Pass { target_agent_id, field, new_value, reason }.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.175",
3
+ "version": "0.28.176",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {