@integrity-labs/agt-cli 0.28.1027 → 0.28.1028

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-LDC3CQEA.js";
43
+ } from "../chunk-EMSM4BRU.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-34GFI2WX.js";
48
+ } from "../chunk-SGX577WT.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-BHKFVSIX.js";
82
+ } from "../chunk-3V43FBP4.js";
83
83
  import "../chunk-TQDIIS3X.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.1027" : "dev";
5477
+ var cliVersion = true ? "0.28.1028" : "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.1027" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1028" : "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) => {
@@ -294,7 +294,7 @@ var GUARDRAIL_ENFORCERS = [
294
294
  { id: "schedule.operating_hours", mechanism: "advisory", reason: "unimplemented", ticket: "ENG-9800" },
295
295
  { id: "spend.hourly_limit", mechanism: "advisory", reason: "unimplemented", ticket: "ENG-9800" },
296
296
  { id: "tool.allow_list", mechanism: "advisory", reason: "unimplemented", ticket: "ENG-9800" },
297
- { id: "tool.block_list", mechanism: "advisory", reason: "unimplemented", ticket: "ENG-9800" },
297
+ { id: "tool.block_list", mechanism: "advisory", reason: "unimplemented", ticket: "ENG-11005" },
298
298
  { id: "tool.financial_txn", mechanism: "advisory", reason: "unimplemented", ticket: "ENG-9800" },
299
299
  { id: "working-hours-only", mechanism: "advisory", reason: "unimplemented", ticket: "ENG-9800" }
300
300
  ];
@@ -1162,6 +1162,16 @@ function renderGuardrailBullet(g) {
1162
1162
  ));
1163
1163
  return lines.join("\n");
1164
1164
  }
1165
+ var ADVISORY_LEVEL_LINE = {
1166
+ enforce: "Level: enforce \u2014 decline, and say why.",
1167
+ warn: "Level: warn \u2014 proceed only if clearly justified; say so.",
1168
+ log: "Level: log \u2014 informational; proceed."
1169
+ };
1170
+ function renderAdvisoryGuardrailBullet(g) {
1171
+ const [header, ...rest] = renderGuardrailBullet(g).split("\n");
1172
+ const level = g.enforcement === "warn" || g.enforcement === "log" ? g.enforcement : "enforce";
1173
+ return [header, ` ${ADVISORY_LEVEL_LINE[level]}`, ...rest].join("\n");
1174
+ }
1165
1175
  function renderOverriddenGuardrailBullet(g) {
1166
1176
  const reason = g.overrideReason?.trim() ?? "";
1167
1177
  const lines = [`- **${g.displayName}** (${g.category}, from ${g.source})`];
@@ -1258,8 +1268,8 @@ function buildGuardrailsSection(guardrails) {
1258
1268
  blocks.push(logOnly.map(renderGuardrailBullet).join("\n"));
1259
1269
  }
1260
1270
  if (advisory.length > 0) {
1261
- blocks.push(``, `### Advisory (policy only \u2014 not enforced by the platform)`, ``, `Follow these as operator instructions. No platform control backs them, so`, `never say an action was blocked, held for approval, or audited on their`, `basis \u2014 say you are declining, and why.`, ``);
1262
- blocks.push(advisory.map(renderGuardrailBullet).join("\n"));
1271
+ blocks.push(``, `### Advisory (policy only \u2014 not enforced by the platform)`, ``, `Follow these as operator instructions, at the level each one states (it`, `replaces the refuse-by-default rule above). No platform control backs them, so`, `never say an action was blocked, held for approval, or audited on their`, `basis \u2014 if you decline, say so and why.`, ``);
1272
+ blocks.push(advisory.map(renderAdvisoryGuardrailBullet).join("\n"));
1263
1273
  }
1264
1274
  if (overridden.length > 0) {
1265
1275
  blocks.push(``, `### Approved exceptions (an operator override applies - follow the adjusted policy)`, ``);
@@ -15481,4 +15491,4 @@ export {
15481
15491
  peekCurrentSession,
15482
15492
  readDailySessionPin
15483
15493
  };
15484
- //# sourceMappingURL=chunk-BHKFVSIX.js.map
15494
+ //# sourceMappingURL=chunk-3V43FBP4.js.map