@integrity-labs/agt-cli 0.21.2 → 0.21.6

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
@@ -50,7 +50,7 @@ import {
50
50
  success,
51
51
  table,
52
52
  warn
53
- } from "../chunk-HPL4HOZ5.js";
53
+ } from "../chunk-3H3ADCO6.js";
54
54
 
55
55
  // src/bin/agt.ts
56
56
  import { join as join10 } from "path";
@@ -3734,7 +3734,7 @@ import { execFileSync, execSync } from "child_process";
3734
3734
  import { existsSync as existsSync5, realpathSync } from "fs";
3735
3735
  import chalk17 from "chalk";
3736
3736
  import ora15 from "ora";
3737
- var cliVersion = true ? "0.21.2" : "dev";
3737
+ var cliVersion = true ? "0.21.6" : "dev";
3738
3738
  async function fetchLatestVersion() {
3739
3739
  const host2 = getHost();
3740
3740
  if (!host2) return null;
@@ -4266,7 +4266,7 @@ function handleError(err) {
4266
4266
  }
4267
4267
 
4268
4268
  // src/bin/agt.ts
4269
- var cliVersion2 = true ? "0.21.2" : "dev";
4269
+ var cliVersion2 = true ? "0.21.6" : "dev";
4270
4270
  var program = new Command();
4271
4271
  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");
4272
4272
  program.hook("preAction", (thisCommand) => {
@@ -4853,6 +4853,7 @@ ${sections}`
4853
4853
  }
4854
4854
  },
4855
4855
  writeChannelCredentials(codeName, channelId, config, options) {
4856
+ const tzEnv = options?.agentTimezone && options.agentTimezone.trim() !== "" ? { TZ: options.agentTimezone.trim() } : {};
4856
4857
  const agentDir = getAgentDir(codeName);
4857
4858
  mkdirSync4(agentDir, { recursive: true });
4858
4859
  const isPersistent = options?.sessionMode === "persistent";
@@ -4870,7 +4871,8 @@ ${sections}`
4870
4871
  AGT_AGENT_CODE_NAME: codeName,
4871
4872
  AGT_HOST: resolvedAgtHostForTelegram,
4872
4873
  ...resolvedAgtApiKeyForTelegram ? { AGT_API_KEY: resolvedAgtApiKeyForTelegram } : {},
4873
- ...options?.agentId ? { AGT_AGENT_ID: options.agentId } : {}
4874
+ ...options?.agentId ? { AGT_AGENT_ID: options.agentId } : {},
4875
+ ...tzEnv
4874
4876
  };
4875
4877
  if (allowedChats && allowedChats.length > 0) {
4876
4878
  telegramEnv.TELEGRAM_ALLOWED_CHATS = allowedChats.join(",");
@@ -4997,6 +4999,7 @@ ${sections}`
4997
4999
  ...blockKitEnv,
4998
5000
  ...slackPeerEnv,
4999
5001
  ...slackAgtAuthEnv,
5002
+ ...tzEnv,
5000
5003
  // ENG-4940: channel-agnostic peer kill switch — same enum
5001
5004
  // as the Telegram path emits above. The Slack classifier
5002
5005
  // (ENG-4936) honours PEER_DISABLED with identical
@@ -5114,7 +5117,8 @@ ${sections}`
5114
5117
  ...slackResponseModeEnv,
5115
5118
  ...oneshotBlockKitEnv,
5116
5119
  ...slackPeerEnv,
5117
- ...slackAgtAuthEnv
5120
+ ...slackAgtAuthEnv,
5121
+ ...tzEnv
5118
5122
  }
5119
5123
  };
5120
5124
  } else {
@@ -5128,7 +5132,8 @@ ${sections}`
5128
5132
  ...slackResponseModeEnv,
5129
5133
  ...oneshotBlockKitEnv,
5130
5134
  ...slackPeerEnv,
5131
- ...slackAgtAuthEnv
5135
+ ...slackAgtAuthEnv,
5136
+ ...tzEnv
5132
5137
  }
5133
5138
  };
5134
5139
  }
@@ -6715,6 +6720,25 @@ function validateHeadings(body, requiredHeadings = REQUIRED_CHARTER_HEADINGS) {
6715
6720
  return requiredHeadings.filter((h) => !found.has(h));
6716
6721
  }
6717
6722
 
6723
+ // ../../packages/core/dist/provisioning/ec2-capacity.js
6724
+ var CAPACITY_TABLE = {
6725
+ // t3 family — burst-credit instances. Lookup is per-vCPU plus
6726
+ // headroom for the manager process itself.
6727
+ "t3.micro": 1,
6728
+ // 1 vCPU / 1 GB — barely fits one agent
6729
+ "t3.small": 1,
6730
+ // 2 vCPU / 2 GB — still tight
6731
+ "t3.medium": 2,
6732
+ // 2 vCPU / 4 GB — the sweet spot for a 2-agent host
6733
+ "t3.large": 4,
6734
+ // 2 vCPU / 8 GB — bursts cover the headroom
6735
+ "t3.xlarge": 8,
6736
+ // 4 vCPU / 16 GB
6737
+ "t3.2xlarge": 16
6738
+ // 8 vCPU / 32 GB
6739
+ };
6740
+ var KNOWN_INSTANCE_TYPES = Object.keys(CAPACITY_TABLE);
6741
+
6718
6742
  // ../../packages/core/dist/scheduled-tasks/suppress.js
6719
6743
  var SENTINEL_REGEX = /<no-delivery\/>/g;
6720
6744
  function classifyOutput(output) {
@@ -9502,4 +9526,4 @@ export {
9502
9526
  managerInstallSystemUnitCommand,
9503
9527
  managerUninstallSystemUnitCommand
9504
9528
  };
9505
- //# sourceMappingURL=chunk-HPL4HOZ5.js.map
9529
+ //# sourceMappingURL=chunk-3H3ADCO6.js.map