@integrity-labs/agt-cli 0.28.1059 → 0.28.1061

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,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-EWJ6A7AO.js";
43
+ } from "../chunk-YNEXVKL5.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-E3XTUL7S.js";
48
+ } from "../chunk-PDQI3LRM.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-VQITKTZU.js";
82
+ } from "../chunk-ZRI5CERC.js";
83
83
  import "../chunk-OCMJ5E6J.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
  import "../chunk-EL5MWGGH.js";
@@ -5474,7 +5474,7 @@ import { execFileSync, execSync } from "child_process";
5474
5474
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5475
5475
  import chalk18 from "chalk";
5476
5476
  import ora16 from "ora";
5477
- var cliVersion = true ? "0.28.1059" : "dev";
5477
+ var cliVersion = true ? "0.28.1061" : "dev";
5478
5478
  async function fetchLatestVersion() {
5479
5479
  const host2 = getHost();
5480
5480
  if (!host2) return null;
@@ -6734,7 +6734,7 @@ function handleError(err) {
6734
6734
  }
6735
6735
 
6736
6736
  // src/bin/agt.ts
6737
- var cliVersion2 = true ? "0.28.1059" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1061" : "dev";
6738
6738
  var program = new Command();
6739
6739
  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");
6740
6740
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -24,7 +24,7 @@ import {
24
24
  rotateDailySession,
25
25
  sessionFileExists,
26
26
  todayLocalIso
27
- } from "./chunk-VQITKTZU.js";
27
+ } from "./chunk-ZRI5CERC.js";
28
28
  import {
29
29
  classifyUnanswerablePane,
30
30
  findUsageLimitResetHint,
@@ -6011,4 +6011,4 @@ export {
6011
6011
  stopAllSessionsAndWait,
6012
6012
  getProjectDir
6013
6013
  };
6014
- //# sourceMappingURL=chunk-E3XTUL7S.js.map
6014
+ //# sourceMappingURL=chunk-PDQI3LRM.js.map
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-E3XTUL7S.js";
19
+ } from "./chunk-PDQI3LRM.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -79,7 +79,7 @@ import {
79
79
  sessionTranscriptDir,
80
80
  worseConnectivityOutcome,
81
81
  wrapScheduledTaskPrompt
82
- } from "./chunk-VQITKTZU.js";
82
+ } from "./chunk-ZRI5CERC.js";
83
83
  import {
84
84
  classifyUnanswerablePane,
85
85
  isConsumerTermsDialogVisible,
@@ -7122,7 +7122,7 @@ function exchangeFailureKind(err) {
7122
7122
  }
7123
7123
 
7124
7124
  // src/lib/api-client.ts
7125
- var agtCliVersion = true ? "0.28.1059" : "dev";
7125
+ var agtCliVersion = true ? "0.28.1061" : "dev";
7126
7126
  var lastConfigHash = null;
7127
7127
  function setConfigHash(hash) {
7128
7128
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12089,4 +12089,4 @@ export {
12089
12089
  managerInstallSystemUnitCommand,
12090
12090
  managerUninstallSystemUnitCommand
12091
12091
  };
12092
- //# sourceMappingURL=chunk-EWJ6A7AO.js.map
12092
+ //# sourceMappingURL=chunk-YNEXVKL5.js.map
@@ -680,6 +680,7 @@ later tick:
680
680
  \u2014 missing access, credential failure, tool error.
681
681
  - **No longer needed** (there's no "cancelled" status): \`kanban_done\` with a \`result\`
682
682
  saying why. Do this generously \u2014 it tells the user you consciously stood it down.
683
+ Not for a denied, expired or cancelled approval: that is \`status="failed"\`.
683
684
  - **\`kanban_update\` with notes** if blocked but maybe unblockable later; leave it
684
685
  \`in_progress\` and pick up other work.
685
686
 
@@ -1494,42 +1495,43 @@ and channel rules live in \`CHARTER.md\`.
1494
1495
 
1495
1496
  ${guardrailsSection}${agentRulesSection}## Approval acknowledgements
1496
1497
 
1497
- This applies to **any** deferred-approval tool \u2014 anything returning \`pending\` that
1498
+ This applies to **any** deferred-approval tool: anything returning \`pending\` that
1498
1499
  resolves later via a notification (AWS access grants, channel posts needing a human
1499
1500
  OK, deploy gates, budget overrides, any future broker of the same shape).
1500
1501
 
1501
- **Acknowledge before acting \u2014 on both sides of the round-trip.**
1502
-
1503
- 1. **On the initial \`pending\` response.** Post a brief, jargon-free one-liner in the
1504
- user's channel naming the task and what's being waited on ("Requesting access to
1505
- the prod-data account to pull that report \u2014 pinged an admin, will resume the
1506
- moment it lands"). Save the returned id, return control, **do not poll** \u2014 the
1507
- broker pushes the resolution to you.
1502
+ 1. **On \`pending\`.** If the tool result says the card was posted in the conversation
1503
+ you are replying in (e.g. a Direct Chat card with buttons), the card is the
1504
+ acknowledgement: post nothing, and in Direct Chat end with \`direct_chat_consume\`.
1505
+ Otherwise post a brief, jargon-free one-liner naming the task and what's being
1506
+ waited on ("Requesting access to the prod-data account to pull that report,
1507
+ pinged an admin, will resume the moment it lands"). Save the returned id, return
1508
+ control, **do not poll**.
1508
1509
 
1509
1510
  2. **When the resolution notification arrives** (in direct-chat, with an
1510
1511
  \`Original conversation:\` line naming the thread the request started in):
1511
1512
  before you call any follow-up tool, post one short line **in that original
1512
1513
  conversation**:
1513
- - On approve: name the task and signal you're acting \u2014 "Approval came through \u2014
1514
- kicking off <the task> now."
1515
- - On deny: name the task, paraphrase the reason, ask how to proceed \u2014 "Couldn't
1516
- get approval for <the task>: <paraphrased reason> \u2014
1517
- let me know how you'd like to proceed."
1514
+ - On approve: "Approval came through, kicking off <the task> now."
1515
+ - On deny, expiry or cancel: one factual line, then stop. Use its \`Decided by:\`
1516
+ line: "Not sent, you denied it." if the decider is the person you are talking
1517
+ to, else "Not sent, <name> denied it." or "Not sent, it expired." Add a reason
1518
+ only if one was typed. **Never guess why**, and never send the user to "the
1519
+ approver" when they decided it.
1520
+
1521
+ No \`Original conversation:\` line \u2192 fall back to direct-chat.
1518
1522
 
1519
- Only then call the follow-up (approve) or stop (deny). No \`Original
1520
- conversation:\` line \u2192 fall back to direct-chat.
1523
+ 3. **Kanban card for a denied, expired or cancelled action:** \`kanban_move\`
1524
+ \`status="failed"\` with a note, **never \`kanban_done\`** (done means it worked).
1521
1525
 
1522
1526
  **Across all approval flows:**
1523
1527
 
1524
- - No broker vocabulary in user messages \u2014 "grant_id", "secret_ref",
1525
- "approval_request_id", "STS", any underlying tool name stay out; talk about the
1526
- task and resource, not the plumbing. Never paste a request/grant UUID into
1527
- user-facing prose (it's operator metadata users can't act on).
1528
- - If the broker reports a notification-delivery failure (\`notification_status:
1529
- failed\` \u2014 meaning no human was paged), surface that as its own problem, don't
1530
- silently assume approval will arrive.
1531
- - Going silent between request and resolution, or between resolution and work,
1532
- defeats the human-in-the-loop signal \u2014 lead with the outcome before acting.
1528
+ - No broker vocabulary in user messages: "grant_id", "secret_ref",
1529
+ "approval_request_id", "STS", any underlying tool name stay out. Never paste a
1530
+ request/grant UUID into user-facing prose (it's operator metadata users can't act on).
1531
+ - \`notification_status: failed\` means no human was paged: surface that as its own
1532
+ problem, don't assume approval will arrive.
1533
+ - Going silent when the card is somewhere the user cannot see defeats the
1534
+ human-in-the-loop signal: lead with the outcome before acting.
1533
1535
 
1534
1536
  ## Integration trust calibration
1535
1537
 
@@ -16006,4 +16008,4 @@ export {
16006
16008
  peekCurrentSession,
16007
16009
  readDailySessionPin
16008
16010
  };
16009
- //# sourceMappingURL=chunk-VQITKTZU.js.map
16011
+ //# sourceMappingURL=chunk-ZRI5CERC.js.map