@integrity-labs/agt-cli 0.28.34 → 0.28.36

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.
@@ -21159,6 +21159,20 @@ var AdminDebugClient = class _AdminDebugClient {
21159
21159
  run_id: this.runId
21160
21160
  });
21161
21161
  }
21162
+ /** Request a HITL-gated agent-config update (ENG-6425). */
21163
+ requestConfigUpdate(args) {
21164
+ if (!this.agentId) {
21165
+ throw makeError(400, "AdminDebugClient.requestConfigUpdate requires agentId (set AGT_AGENT_ID)");
21166
+ }
21167
+ return this.post("/admin/debug/actions/update-config", {
21168
+ target_agent_id: args.target_agent_id,
21169
+ field: args.field,
21170
+ new_value: args.new_value,
21171
+ reason: args.reason,
21172
+ agent_id: this.agentId,
21173
+ run_id: this.runId
21174
+ });
21175
+ }
21162
21176
  /** Poll a remedial action's HITL decision. */
21163
21177
  getActionStatus(requestId) {
21164
21178
  return this.get(`/admin/debug/actions/${encodeURIComponent(requestId)}`);
@@ -21199,8 +21213,16 @@ var requestActionSchema = external_exports.object({
21199
21213
  target_agent_id: external_exports.string().min(1).max(64).describe("UUID of the customer agent to act on."),
21200
21214
  reason: external_exports.string().min(1).max(2e3).describe("Why this action is needed \u2014 shown verbatim to the human approver. Be specific.")
21201
21215
  });
21216
+ var requestConfigUpdateSchema = external_exports.object({
21217
+ target_agent_id: external_exports.string().min(1).max(64).describe("UUID of the customer agent whose config to change."),
21218
+ field: external_exports.enum(["primary_model", "secondary_model", "tertiary_model"]).describe("The agent-config field to change. Only the model tiers are settable."),
21219
+ new_value: external_exports.string().min(1).max(128).describe(
21220
+ "The new model value. For Claude Code (subscription) agents use a family alias (fable/opus/opus[fast]/sonnet/haiku); for routed agents (OpenClaw/NemoClaw) use a full stored model id (e.g. openrouter/anthropic/claude-opus-4-6). The value is validated against the target agent \u2014 an invalid value is rejected before any approval is requested."
21221
+ ),
21222
+ reason: external_exports.string().min(1).max(2e3).describe("Why this change is needed \u2014 shown verbatim to the human approver. Be specific.")
21223
+ });
21202
21224
  var checkActionStatusSchema = external_exports.object({
21203
- request_id: external_exports.string().min(1).max(64).describe("The action request_id returned by request_action.")
21225
+ request_id: external_exports.string().min(1).max(64).describe("The action request_id returned by request_action or request_config_update.")
21204
21226
  });
21205
21227
  var queryAuditLogSchema = external_exports.object({
21206
21228
  agent_id: external_exports.string().min(1).max(64).describe("UUID of the agent whose audit events to read (required \u2014 the read is scoped to this agent's org)."),
@@ -21375,6 +21397,24 @@ server.tool(
21375
21397
  }
21376
21398
  }
21377
21399
  );
21400
+ server.tool(
21401
+ "request_config_update",
21402
+ "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 }.",
21403
+ requestConfigUpdateSchema.shape,
21404
+ async (args) => {
21405
+ try {
21406
+ const result = await client.requestConfigUpdate({
21407
+ target_agent_id: args.target_agent_id,
21408
+ field: args.field,
21409
+ new_value: args.new_value,
21410
+ reason: args.reason
21411
+ });
21412
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
21413
+ } catch (err) {
21414
+ return { content: [{ type: "text", text: formatError2(err) }], isError: true };
21415
+ }
21416
+ }
21417
+ );
21378
21418
  server.tool(
21379
21419
  "check_action_status",
21380
21420
  "Poll the decision on a remedial action you requested (the approval result is also pushed to you via direct-chat). Returns { status, result_payload, denial_reason, resolved_at }. Pass { request_id }.",
@@ -25,8 +25,8 @@ import {
25
25
  takeZombieDetection,
26
26
  writeDirectChatSessionState,
27
27
  writePersistentClaudeWrapper
28
- } from "./chunk-HTRILMXV.js";
29
- import "./chunk-R5CP4WAO.js";
28
+ } from "./chunk-2V5QUET6.js";
29
+ import "./chunk-RYB5QSVS.js";
30
30
  import "./chunk-XWVM4KPK.js";
31
31
  export {
32
32
  SEND_KEYS_ENTER_DELAY_MS,
@@ -56,4 +56,4 @@ export {
56
56
  writeDirectChatSessionState,
57
57
  writePersistentClaudeWrapper
58
58
  };
59
- //# sourceMappingURL=persistent-session-RNALQ7JD.js.map
59
+ //# sourceMappingURL=persistent-session-27Q5QJF6.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-HTRILMXV.js";
4
- import "./chunk-R5CP4WAO.js";
3
+ } from "./chunk-2V5QUET6.js";
4
+ import "./chunk-RYB5QSVS.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -250,4 +250,4 @@ export {
250
250
  parkPendingInbound,
251
251
  readAndResetChannelDeflections
252
252
  };
253
- //# sourceMappingURL=responsiveness-probe-DRP2PPVE.js.map
253
+ //# sourceMappingURL=responsiveness-probe-G6LP7KSH.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.34",
3
+ "version": "0.28.36",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {