@integrity-labs/agt-cli 0.28.1029 → 0.28.1031

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-4KX6ZCA2.js";
43
+ } from "../chunk-HQSQLPHD.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-7LBSHOJ7.js";
48
+ } from "../chunk-XD5GMJGJ.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-3V43FBP4.js";
82
+ } from "../chunk-TFFXAGBJ.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.1029" : "dev";
5477
+ var cliVersion = true ? "0.28.1031" : "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.1029" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1031" : "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) => {
@@ -15,7 +15,7 @@ import {
15
15
  parseEnvFileEntries,
16
16
  parseEnvIntegrations,
17
17
  shellQuote
18
- } from "./chunk-7LBSHOJ7.js";
18
+ } from "./chunk-XD5GMJGJ.js";
19
19
  import {
20
20
  BIND_FAILURE_QUARANTINE_THRESHOLD,
21
21
  INTEGRATIONS_SECTION_END,
@@ -77,7 +77,7 @@ import {
77
77
  sessionTranscriptDir,
78
78
  worseConnectivityOutcome,
79
79
  wrapScheduledTaskPrompt
80
- } from "./chunk-3V43FBP4.js";
80
+ } from "./chunk-TFFXAGBJ.js";
81
81
  import {
82
82
  classifyUnanswerablePane,
83
83
  isConsumerTermsDialogVisible,
@@ -4901,6 +4901,7 @@ function buildSettingsJson(input) {
4901
4901
  settings["permissions"] = { deny: SECRETS_DENY_PERMISSIONS };
4902
4902
  return settings;
4903
4903
  }
4904
+ var SUBAGENT_CREDENTIAL_CONVENTION = "You inherit the parent agent's environment, including credentials for the integrations below. Most follow the convention `<DEFINITION_ID>_ACCESS_TOKEN` for OAuth and `<DEFINITION_ID>_API_KEY` for API-key integrations \u2014 so GitHub's OAuth token, WHEN it is delivered that way, is `GITHUB_ACCESS_TOKEN`, and Postiz's key is `POSTIZ_API_KEY`. **Some integrations deliberately have no env var at all.** Their credential is never written to this host: the integration's own MCP server fetches a fresh one on every call. For those, the MCP tools ARE the credential \u2014 a missing env var means \"use the tools\", NOT \"not connected\". Never report an integration as unavailable because you could not find a token for it, and never try to reconstruct one. Where a CLI is listed, prefer it over raw curl \u2014 the CLI handles auth automatically.";
4904
4905
  function buildChannelMessageHandlerAgent(args) {
4905
4906
  const mcpServerKeys = args?.mcpServerKeys ?? [];
4906
4907
  const integrations = args?.integrations ?? [];
@@ -4909,7 +4910,7 @@ function buildChannelMessageHandlerAgent(args) {
4909
4910
  const integrationsBlock = integrations.length === 0 ? "" : `
4910
4911
  ## Integrations available
4911
4912
 
4912
- You inherit the parent agent's environment, including credentials for the integrations below. Env vars follow the convention \`<DEFINITION_ID>_ACCESS_TOKEN\` for OAuth and \`<DEFINITION_ID>_API_KEY\` for API-key integrations (e.g. \`GITHUB_ACCESS_TOKEN\`, \`POSTIZ_API_KEY\`). Where a CLI is listed, prefer it over raw curl \u2014 the CLI handles auth automatically.
4913
+ ${SUBAGENT_CREDENTIAL_CONVENTION}
4913
4914
 
4914
4915
  ${integrations.map((i) => {
4915
4916
  const cli = i.cliBinary ? ` \u2014 use the \`${i.cliBinary}\` CLI` : "";
@@ -4952,7 +4953,7 @@ function buildAugmentedWorkerAgent(args) {
4952
4953
  const integrationsBlock = integrations.length === 0 ? "" : `
4953
4954
  ## Integrations available
4954
4955
 
4955
- You inherit the parent agent's environment, including credentials for the integrations below. Env vars follow the convention \`<DEFINITION_ID>_ACCESS_TOKEN\` for OAuth and \`<DEFINITION_ID>_API_KEY\` for API-key integrations (e.g. \`GITHUB_ACCESS_TOKEN\`, \`POSTIZ_API_KEY\`). Where a CLI is listed, prefer it over raw curl \u2014 the CLI handles auth automatically.
4956
+ ${SUBAGENT_CREDENTIAL_CONVENTION}
4956
4957
 
4957
4958
  ${integrations.map((i) => {
4958
4959
  const cli = i.cliBinary ? ` \u2014 use the \`${i.cliBinary}\` CLI` : "";
@@ -4973,7 +4974,7 @@ You are dispatched by the parent agent to do a multi-step task in the background
4973
4974
 
4974
4975
  ## What you can do
4975
4976
 
4976
- Your \`tools:\` allowlist (above) names every MCP server the parent has connected \u2014 Granola, Composio toolkits, Slack/Telegram/Direct-Chat channel tools, the platform \`mcp__augmented__*\` bridge, native integrations (Xero / Postiz / qmd / AWS), etc. \u2014 plus the built-ins (\`Bash\`, \`Read\`, \`Write\`, \`Edit\`, \`Grep\`, \`Glob\`, \`Skill\`, \`Agent\`, \`ToolSearch\`, \`WebSearch\`, \`WebFetch\`). All environment variables the parent has are yours: OAuth access tokens (\`GITHUB_ACCESS_TOKEN\`), API keys (\`POSTIZ_API_KEY\`), native-CLI binaries (\`gh\`, \`aws\`, \`xero\`).
4977
+ Your \`tools:\` allowlist (above) names every MCP server the parent has connected \u2014 Granola, Composio toolkits, Slack/Telegram/Direct-Chat channel tools, the platform \`mcp__augmented__*\` bridge, native integrations (Xero / Postiz / qmd / AWS), etc. \u2014 plus the built-ins (\`Bash\`, \`Read\`, \`Write\`, \`Edit\`, \`Grep\`, \`Glob\`, \`Skill\`, \`Agent\`, \`ToolSearch\`, \`WebSearch\`, \`WebFetch\`). The environment variables the parent has are yours: OAuth access tokens, API keys (\`POSTIZ_API_KEY\`), native-CLI binaries (\`gh\`, \`aws\`, \`xero\`). Some integrations deliberately expose NO env var \u2014 their MCP server holds the credential and fetches a fresh one per call \u2014 so treat a missing token as "use the MCP tools", never as "not connected".
4977
4978
 
4978
4979
  ## Hard rules \u2014 Credential Access Control
4979
4980
 
@@ -7142,7 +7143,7 @@ function exchangeFailureKind(err) {
7142
7143
  }
7143
7144
 
7144
7145
  // src/lib/api-client.ts
7145
- var agtCliVersion = true ? "0.28.1029" : "dev";
7146
+ var agtCliVersion = true ? "0.28.1031" : "dev";
7146
7147
  var lastConfigHash = null;
7147
7148
  function setConfigHash(hash) {
7148
7149
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12099,4 +12100,4 @@ export {
12099
12100
  managerInstallSystemUnitCommand,
12100
12101
  managerUninstallSystemUnitCommand
12101
12102
  };
12102
- //# sourceMappingURL=chunk-4KX6ZCA2.js.map
12103
+ //# sourceMappingURL=chunk-HQSQLPHD.js.map