@integrity-labs/agt-cli 0.27.27 → 0.27.29
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
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
success,
|
|
28
28
|
table,
|
|
29
29
|
warn
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-HX74HMG4.js";
|
|
31
31
|
import {
|
|
32
32
|
CHANNEL_REGISTRY,
|
|
33
33
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4643,7 +4643,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4643
4643
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4644
4644
|
import chalk18 from "chalk";
|
|
4645
4645
|
import ora16 from "ora";
|
|
4646
|
-
var cliVersion = true ? "0.27.
|
|
4646
|
+
var cliVersion = true ? "0.27.29" : "dev";
|
|
4647
4647
|
async function fetchLatestVersion() {
|
|
4648
4648
|
const host2 = getHost();
|
|
4649
4649
|
if (!host2) return null;
|
|
@@ -5175,7 +5175,7 @@ function handleError(err) {
|
|
|
5175
5175
|
}
|
|
5176
5176
|
|
|
5177
5177
|
// src/bin/agt.ts
|
|
5178
|
-
var cliVersion2 = true ? "0.27.
|
|
5178
|
+
var cliVersion2 = true ? "0.27.29" : "dev";
|
|
5179
5179
|
var program = new Command();
|
|
5180
5180
|
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");
|
|
5181
5181
|
program.hook("preAction", (thisCommand) => {
|
|
@@ -2922,6 +2922,16 @@ function formatEmailDomainConfigLines(config) {
|
|
|
2922
2922
|
lines.push(` *Advisory: honor this restriction \u2014 it is guidance in your instructions, not a hard block at send time.*`);
|
|
2923
2923
|
return lines;
|
|
2924
2924
|
}
|
|
2925
|
+
var CALENDAR_CONFIDENTIALITY_DEF = "calendar.confidentiality";
|
|
2926
|
+
function formatCalendarConfidentialityLines(config) {
|
|
2927
|
+
const stage = typeof config.stage === "string" ? config.stage : "shadow";
|
|
2928
|
+
const lines = [` - stage: ${stage}`];
|
|
2929
|
+
lines.push(` *Cross-turn re-query: when answering a different person about your principal's calendar, ALWAYS re-query the calendar tool \u2014 never reuse meeting details remembered from an earlier turn that involved a different recipient. The tool's response is filtered per-recipient at the API layer; relying on memory bypasses the filter.*`);
|
|
2930
|
+
if (stage !== "enforce") {
|
|
2931
|
+
lines.push(` *Currently observe-only \u2014 the API records redaction decisions to guardrail_audit_log but returns calendar responses unchanged. Treat the policy as authoritative anyway; the runtime flip is operator-side.*`);
|
|
2932
|
+
}
|
|
2933
|
+
return lines;
|
|
2934
|
+
}
|
|
2925
2935
|
function renderGuardrailBullet(g) {
|
|
2926
2936
|
const lines = [];
|
|
2927
2937
|
const header = `- **${g.displayName}** (${g.category}, from ${g.source})`;
|
|
@@ -2929,16 +2939,26 @@ function renderGuardrailBullet(g) {
|
|
|
2929
2939
|
if (g.description?.trim()) {
|
|
2930
2940
|
lines.push(` ${g.description.trim()}`);
|
|
2931
2941
|
}
|
|
2932
|
-
lines.push(...g.definitionId === EMAIL_DOMAIN_RESTRICT_DEF ? formatEmailDomainConfigLines(g.config) : formatConfigLines(g.config));
|
|
2942
|
+
lines.push(...g.definitionId === EMAIL_DOMAIN_RESTRICT_DEF ? formatEmailDomainConfigLines(g.config) : g.definitionId === CALENDAR_CONFIDENTIALITY_DEF ? formatCalendarConfidentialityLines(g.config) : formatConfigLines(g.config));
|
|
2933
2943
|
if (g.overrideApplied && g.overrideReason?.trim()) {
|
|
2934
2944
|
lines.push(` *Override applied: ${g.overrideReason.trim()}*`);
|
|
2935
2945
|
}
|
|
2936
2946
|
return lines.join("\n");
|
|
2937
2947
|
}
|
|
2948
|
+
function effectiveCalendarEnforcement(g) {
|
|
2949
|
+
if (g.definitionId !== CALENDAR_CONFIDENTIALITY_DEF)
|
|
2950
|
+
return g.enforcement;
|
|
2951
|
+
const stage = typeof g.config?.["stage"] === "string" ? g.config["stage"] : "shadow";
|
|
2952
|
+
if (stage === "enforce")
|
|
2953
|
+
return "enforce";
|
|
2954
|
+
if (stage === "warn" && g.enforcement !== "enforce")
|
|
2955
|
+
return "warn";
|
|
2956
|
+
return g.enforcement;
|
|
2957
|
+
}
|
|
2938
2958
|
function buildGuardrailsSection(guardrails) {
|
|
2939
2959
|
if (!guardrails || guardrails.length === 0)
|
|
2940
2960
|
return "";
|
|
2941
|
-
const active = guardrails.filter((g) => g.enforcement !== "disabled");
|
|
2961
|
+
const active = guardrails.map((g) => ({ ...g, enforcement: effectiveCalendarEnforcement(g) })).filter((g) => g.enforcement !== "disabled");
|
|
2942
2962
|
if (active.length === 0)
|
|
2943
2963
|
return "";
|
|
2944
2964
|
const enforce = active.filter((g) => g.enforcement === "enforce");
|
|
@@ -6945,4 +6965,4 @@ export {
|
|
|
6945
6965
|
managerInstallSystemUnitCommand,
|
|
6946
6966
|
managerUninstallSystemUnitCommand
|
|
6947
6967
|
};
|
|
6948
|
-
//# sourceMappingURL=chunk-
|
|
6968
|
+
//# sourceMappingURL=chunk-HX74HMG4.js.map
|