@integrity-labs/agt-cli 0.28.755 → 0.28.757

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
@@ -41,12 +41,12 @@ import {
41
41
  success,
42
42
  table,
43
43
  warn
44
- } from "../chunk-3PIEDU3Z.js";
44
+ } from "../chunk-43TIELP4.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
48
48
  readDirectChatSessionState
49
- } from "../chunk-VA6UHKFG.js";
49
+ } from "../chunk-JB2LZVNB.js";
50
50
  import {
51
51
  AnchorSessionClient,
52
52
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-GPDHLGBD.js";
82
+ } from "../chunk-45KFVLO4.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.755" : "dev";
5470
+ var cliVersion = true ? "0.28.757" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.755" : "dev";
6661
+ var cliVersion2 = true ? "0.28.757" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -13,7 +13,7 @@ import {
13
13
  parseEnvFileEntries,
14
14
  parseEnvIntegrations,
15
15
  shellQuote
16
- } from "./chunk-VA6UHKFG.js";
16
+ } from "./chunk-JB2LZVNB.js";
17
17
  import {
18
18
  BIND_FAILURE_QUARANTINE_THRESHOLD,
19
19
  INTEGRATIONS_SECTION_END,
@@ -63,7 +63,7 @@ import {
63
63
  sessionTranscriptDir,
64
64
  worseConnectivityOutcome,
65
65
  wrapScheduledTaskPrompt
66
- } from "./chunk-GPDHLGBD.js";
66
+ } from "./chunk-45KFVLO4.js";
67
67
  import {
68
68
  parsePsRows
69
69
  } from "./chunk-XWVM4KPK.js";
@@ -6436,7 +6436,7 @@ function exchangeFailureKind(err) {
6436
6436
  }
6437
6437
 
6438
6438
  // src/lib/api-client.ts
6439
- var agtCliVersion = true ? "0.28.755" : "dev";
6439
+ var agtCliVersion = true ? "0.28.757" : "dev";
6440
6440
  var lastConfigHash = null;
6441
6441
  function setConfigHash(hash) {
6442
6442
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10593,4 +10593,4 @@ export {
10593
10593
  managerInstallSystemUnitCommand,
10594
10594
  managerUninstallSystemUnitCommand
10595
10595
  };
10596
- //# sourceMappingURL=chunk-3PIEDU3Z.js.map
10596
+ //# sourceMappingURL=chunk-43TIELP4.js.map
@@ -240,6 +240,31 @@ function identifierMemoryName(url) {
240
240
  var AGENT_IDENTIFIER_RULE = "An identifier the work depends on is never an ephemeral detail: when a message gives you a URL, file, folder, document or ticket id, save the identifier itself, verbatim, before you reply \u2014 as its own short entry, not folded into prose. A note that a link is coming is not a substitute for the link. You can always re-derive a summary; you can never re-derive an identifier without asking the person for it again.";
241
241
  var EXTRACTOR_IDENTIFIER_RULE = 'An identifier is ALWAYS durable, and is the one exception to "no one-off task details": if the conversation contains a URL, file, folder, document or ticket id that the work depends on, emit it as a "reference" memory with the identifier copied EXACTLY as it appeared \u2014 never paraphrased, never shortened, never described. Conversation history does not survive a restart, so an identifier that is only described is lost.';
242
242
 
243
+ // ../../packages/core/dist/provisioning/frameworks/claudecode/agent-rules.js
244
+ var AGENT_RULES_SECTION_START = "<!-- AGT:RULES_START -->";
245
+ var AGENT_RULES_SECTION_END = "<!-- AGT:RULES_END -->";
246
+ var MAX_AGENT_RULES = 8;
247
+ var MAX_AGENT_RULE_CHARS = 200;
248
+ var MAX_AGENT_RULES_CHARS = MAX_AGENT_RULES * (MAX_AGENT_RULE_CHARS + 4);
249
+ function buildAgentRulesSection(rules) {
250
+ const kept = rules.map((r) => r.text.trim()).filter(Boolean).filter((t) => t.length <= MAX_AGENT_RULE_CHARS).slice(0, MAX_AGENT_RULES);
251
+ if (kept.length === 0)
252
+ return "";
253
+ const lines = kept.map((t) => `- ${t}`).join("\n");
254
+ return `${AGENT_RULES_SECTION_START}
255
+ ## Standing rules from your people
256
+
257
+ Rules your team has asked you to follow every time, in their words. They are not
258
+ task-specific \u2014 they apply on every turn regardless of what you are doing. If one
259
+ ever conflicts with a guardrail above, the guardrail wins and you should say so
260
+ rather than silently picking one.
261
+
262
+ ${lines}
263
+ ${AGENT_RULES_SECTION_END}
264
+
265
+ `;
266
+ }
267
+
243
268
  // ../../packages/core/dist/provisioning/frameworks/claudecode/identity.js
244
269
  var SCRATCH_RETENTION_DAYS = 7;
245
270
  var CLAUDE_MD_CHARS_PER_TOKEN = 3.57;
@@ -936,6 +961,7 @@ function generateClaudeMd(input) {
936
961
  const renderIntegrations = input.renderIntegrationsSection === true;
937
962
  const integrationsSection = renderIntegrations ? buildIntegrationsSection(integrations) : "";
938
963
  const capabilityPromptSection = buildCapabilityPromptSection(integrations, renderIntegrations);
964
+ const agentRulesSection = buildAgentRulesSection(input.agentRules ?? []);
939
965
  const kanbanWorkPolicySection = buildKanbanWorkPolicySection();
940
966
  const platformStorageSection = buildPlatformStorageSection(input.hasWorkflows);
941
967
  const skillAuthoringSection = buildSkillAuthoringSection();
@@ -1109,7 +1135,7 @@ are defined in \`CHARTER.md\`.
1109
1135
  - Enforcement: Follow CHARTER.md constraints strictly.
1110
1136
  - Tools: MCP tools in your session are authorized \u2014 call them when the task needs them. A **permission denial** (explicit "not authorized" / 403-with-policy-message) is a guardrail signal: don't retry it. Every other error MUST be re-confirmed by an actual fresh tool call before you tell the user about it \u2014 see \xA7 Integration trust calibration.
1111
1137
 
1112
- ${guardrailsSection}## Approval acknowledgements
1138
+ ${guardrailsSection}${agentRulesSection}## Approval acknowledgements
1113
1139
 
1114
1140
  This applies to **any** deferred-approval tool \u2014 anything returning \`pending\` that
1115
1141
  resolves later via a notification (AWS access grants, channel posts needing a human
@@ -13222,4 +13248,4 @@ export {
13222
13248
  peekCurrentSession,
13223
13249
  readDailySessionPin
13224
13250
  };
13225
- //# sourceMappingURL=chunk-GPDHLGBD.js.map
13251
+ //# sourceMappingURL=chunk-45KFVLO4.js.map