@integrity-labs/agt-cli 0.28.1040 → 0.28.1042

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.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  LATE_BOUND_VARS,
3
+ PLATFORM_DENY_PERMISSIONS,
3
4
  agentTmpDirFor,
4
5
  buildApiKeyRemoteMcpProxyEntry,
5
6
  buildLiveHeaderRemoteMcpProxyEntry,
@@ -15,7 +16,7 @@ import {
15
16
  parseEnvFileEntries,
16
17
  parseEnvIntegrations,
17
18
  shellQuote
18
- } from "./chunk-TAWCN7OK.js";
19
+ } from "./chunk-JGPCLZFP.js";
19
20
  import {
20
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
21
22
  INTEGRATIONS_SECTION_END,
@@ -77,7 +78,7 @@ import {
77
78
  sessionTranscriptDir,
78
79
  worseConnectivityOutcome,
79
80
  wrapScheduledTaskPrompt
80
- } from "./chunk-UB2HLH5P.js";
81
+ } from "./chunk-TXRZFABA.js";
81
82
  import {
82
83
  classifyUnanswerablePane,
83
84
  isConsumerTermsDialogVisible,
@@ -4774,31 +4775,6 @@ function modifyJsonConfig(filePath, fn) {
4774
4775
  return;
4775
4776
  writeFileSync4(filePath, newContent);
4776
4777
  }
4777
- var SECRETS_DENY_PERMISSIONS = [
4778
- // Read blocks
4779
- "Read(**/.env*)",
4780
- "Read(**/.dev.vars*)",
4781
- "Read(**/*.pem)",
4782
- "Read(**/*.key)",
4783
- "Read(**/secrets/**)",
4784
- "Read(**/credentials/**)",
4785
- "Read(**/credentials.json)",
4786
- "Read(**/.aws/**)",
4787
- // gcloud stores ADC + cached access/refresh tokens under ~/.config/gcloud/
4788
- // (application_default_credentials.json, credentials.db, access_tokens.db).
4789
- // Brokered GCP access flows via CLOUDSDK_AUTH_ACCESS_TOKEN env, never these
4790
- // files, so denying reads here is the GCP analogue of the .aws/ block.
4791
- "Read(**/.config/gcloud/**)",
4792
- "Read(**/.ssh/**)",
4793
- "Read(**/config/database.yml)",
4794
- "Read(**/config/credentials.json)",
4795
- "Read(**/.npmrc)",
4796
- "Read(**/.pypirc)",
4797
- // Write blocks
4798
- "Write(**/.env*)",
4799
- "Write(**/secrets/**)",
4800
- "Write(**/.ssh/**)"
4801
- ];
4802
4778
  var SUBAGENT_BUILTIN_TOOLS = [
4803
4779
  "Bash",
4804
4780
  "Read",
@@ -4898,7 +4874,7 @@ function buildSettingsJson(input) {
4898
4874
  // Temp files
4899
4875
  ])
4900
4876
  ];
4901
- settings["permissions"] = { deny: SECRETS_DENY_PERMISSIONS };
4877
+ settings["permissions"] = { deny: [...PLATFORM_DENY_PERMISSIONS] };
4902
4878
  return settings;
4903
4879
  }
4904
4880
  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.";
@@ -7143,7 +7119,7 @@ function exchangeFailureKind(err) {
7143
7119
  }
7144
7120
 
7145
7121
  // src/lib/api-client.ts
7146
- var agtCliVersion = true ? "0.28.1040" : "dev";
7122
+ var agtCliVersion = true ? "0.28.1042" : "dev";
7147
7123
  var lastConfigHash = null;
7148
7124
  function setConfigHash(hash) {
7149
7125
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12100,4 +12076,4 @@ export {
12100
12076
  managerInstallSystemUnitCommand,
12101
12077
  managerUninstallSystemUnitCommand
12102
12078
  };
12103
- //# sourceMappingURL=chunk-24IBVMEV.js.map
12079
+ //# sourceMappingURL=chunk-JPE2SHWA.js.map