@integrity-labs/agt-cli 0.28.260 → 0.28.261

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
@@ -38,7 +38,7 @@ import {
38
38
  success,
39
39
  table,
40
40
  warn
41
- } from "../chunk-PZJRZPJF.js";
41
+ } from "../chunk-6R7TDVCE.js";
42
42
  import {
43
43
  CHANNEL_REGISTRY,
44
44
  DEFAULT_FRAMEWORK,
@@ -67,7 +67,7 @@ import {
67
67
  renderTemplate,
68
68
  resolveChannels,
69
69
  serializeManifestForSlackCli
70
- } from "../chunk-22BZ2WQM.js";
70
+ } from "../chunk-RPM3FGSV.js";
71
71
  import "../chunk-XWVM4KPK.js";
72
72
 
73
73
  // src/bin/agt.ts
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
4826
4826
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4827
4827
  import chalk18 from "chalk";
4828
4828
  import ora16 from "ora";
4829
- var cliVersion = true ? "0.28.260" : "dev";
4829
+ var cliVersion = true ? "0.28.261" : "dev";
4830
4830
  async function fetchLatestVersion() {
4831
4831
  const host2 = getHost();
4832
4832
  if (!host2) return null;
@@ -5840,7 +5840,7 @@ function handleError(err) {
5840
5840
  }
5841
5841
 
5842
5842
  // src/bin/agt.ts
5843
- var cliVersion2 = true ? "0.28.260" : "dev";
5843
+ var cliVersion2 = true ? "0.28.261" : "dev";
5844
5844
  var program = new Command();
5845
5845
  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");
5846
5846
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -18,7 +18,7 @@ import {
18
18
  resolveConnectivityProbe,
19
19
  worseConnectivityOutcome,
20
20
  wrapScheduledTaskPrompt
21
- } from "./chunk-22BZ2WQM.js";
21
+ } from "./chunk-RPM3FGSV.js";
22
22
  import {
23
23
  parsePsRows
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -1861,7 +1861,8 @@ var SENSITIVE_INTEGRATION_FIELDS = [
1861
1861
  "api_key",
1862
1862
  "webhook_secret",
1863
1863
  "signing_secret",
1864
- "client_secret"
1864
+ "client_secret",
1865
+ "private_key"
1865
1866
  ];
1866
1867
  function decryptIntegrationCredentials(credentials) {
1867
1868
  const out = { ...credentials };
@@ -2745,6 +2746,49 @@ function provisionStopHook(codeName) {
2745
2746
  ' if [ -z "$marker_path" ]; then marker_path="$f"; fi',
2746
2747
  " done",
2747
2748
  ' if [ -z "$marker_path" ]; then log_ghost "slack skip=no_pending_marker channel=$(safe_id "$channel") thread=$(safe_id "$thread_ts")"; return; fi',
2749
+ " # CS-1444: precedence guard against cross-thread mis-delivery. The last",
2750
+ " # <channel> tag can point at a DISCRETIONARY (auto-followed, un-mentioned)",
2751
+ " # inbound the agent never owed a reply to (ENG-6319). If the trailing text",
2752
+ " # was produced while working a DIFFERENT, ENGAGED conversation, posting it",
2753
+ " # into this discretionary thread leaks one conversation into another - the",
2754
+ " # koda cross-thread failure the recency guard above misses when the agent",
2755
+ " # replied to NOTHING this turn and only narrated. (CS-1444: an agent filed a",
2756
+ ' # ticket in a DM and ended with "Filed... Standing by"; an unrelated thread B',
2757
+ " # had an auto_followed pending inbound as the LAST tag, so the DM summary",
2758
+ " # posted into thread B.) When THIS target marker is discretionary AND an",
2759
+ " # engaged (non-discretionary, non-undeliverable) marker for another inbound",
2760
+ " # is also pending, do NOT synthesize a post: leave this marker so the",
2761
+ " # bounded durable-replay scanner re-delivers the ORIGINAL inbound (convert",
2762
+ " # mis-deliver -> re-deliver).",
2763
+ " # Worst case is a re-delivery, never silent loss (the marker is preserved).",
2764
+ " # The sole-discretionary case (a genuine composed-but-unsent reply to an",
2765
+ " # auto-followed thread, no competing engaged conversation) is unaffected and",
2766
+ " # still recovers, so ENG-6319 is preserved. Slack-only: telegram/teams have",
2767
+ " # no discretionary-marker class (no auto-follow variant).",
2768
+ " local target_disc engaged_other=0 om_disc om_undel",
2769
+ ` target_disc=$(jq -r '.discretionary // false' "$marker_path" 2>/dev/null || echo false)`,
2770
+ ' if [ "$target_disc" = "true" ]; then',
2771
+ " shopt -s nullglob",
2772
+ ' for om in "$SL_MARKER_DIR"/*.json; do',
2773
+ ' if [ "$om" != "$marker_path" ]; then',
2774
+ ` om_disc=$(jq -r '.discretionary // false' "$om" 2>/dev/null || echo false)`,
2775
+ ` om_undel=$(jq -r '.undeliverable // false' "$om" 2>/dev/null || echo false)`,
2776
+ " # An engaged competitor is a marker the agent actually OWES a reply to:",
2777
+ " # neither discretionary (auto-followed, skippable) nor undeliverable",
2778
+ " # (ENG-5846: x-acked, could not reply at arrival) - the same owed/engaged",
2779
+ " # predicate the block-turn-end paths use. Only such a marker outranks a",
2780
+ " # discretionary target and suppresses recovery.",
2781
+ ' if [ "$om_disc" != "true" ] && [ "$om_undel" != "true" ]; then',
2782
+ " engaged_other=1",
2783
+ " break",
2784
+ " fi",
2785
+ " fi",
2786
+ " done",
2787
+ ' if [ "$engaged_other" = "1" ]; then',
2788
+ ' log_ghost "slack skip=discretionary_target_engaged_elsewhere channel=$(safe_id "$channel") thread=$(safe_id "$thread_ts") marker=$(basename "$marker_path") text_len=${#TEXT}"',
2789
+ " return",
2790
+ " fi",
2791
+ " fi",
2748
2792
  " local TS",
2749
2793
  " TS=$(date -u +%Y%m%dT%H%M%S%N)",
2750
2794
  ' atomic_write_payload "${AGENT_DIR}/slack-recovery-outbox" "${TS}.json" \\',
@@ -5832,7 +5876,7 @@ function requireHost() {
5832
5876
  }
5833
5877
 
5834
5878
  // src/lib/api-client.ts
5835
- var agtCliVersion = true ? "0.28.260" : "dev";
5879
+ var agtCliVersion = true ? "0.28.261" : "dev";
5836
5880
  var lastConfigHash = null;
5837
5881
  function setConfigHash(hash) {
5838
5882
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8102,4 +8146,4 @@ export {
8102
8146
  managerInstallSystemUnitCommand,
8103
8147
  managerUninstallSystemUnitCommand
8104
8148
  };
8105
- //# sourceMappingURL=chunk-PZJRZPJF.js.map
8149
+ //# sourceMappingURL=chunk-6R7TDVCE.js.map