@integrity-labs/agt-cli 0.28.593 → 0.28.595

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,9 +1,18 @@
1
+ import {
2
+ LATE_BOUND_VARS,
3
+ buildLiveHeaderRemoteMcpProxyEntry,
4
+ buildNativeMcpEntry,
5
+ buildOAuthRemoteMcpProxyEntry,
6
+ buildRemoteMcpEntry,
7
+ expandTemplateVars,
8
+ isolationMode,
9
+ parseEnvIntegrations
10
+ } from "./chunk-6NVRWZ5W.js";
1
11
  import {
2
12
  BIND_FAILURE_QUARANTINE_THRESHOLD,
3
13
  INTEGRATIONS_SECTION_END,
4
14
  INTEGRATIONS_SECTION_START,
5
15
  INTEGRATION_REGISTRY,
6
- LATE_BOUND_VARS,
7
16
  MIN_PROVISIONING_MAX_FOR_QUARANTINE_ORDERING,
8
17
  OAUTH_PROVIDERS,
9
18
  REMOTE_MCP_PROXY_ENV,
@@ -16,23 +25,16 @@ import {
16
25
  bestConnectivityEvidence,
17
26
  buildForwardHeaders,
18
27
  buildIntegrationsSection,
19
- buildLiveHeaderRemoteMcpProxyEntry,
20
- buildNativeMcpEntry,
21
- buildOAuthRemoteMcpProxyEntry,
22
- buildRemoteMcpEntry,
23
28
  coerceEnvValue,
24
- expandTemplateVars,
25
29
  generateClaudeMd,
26
30
  getFlagDefinition,
27
31
  getFramework,
28
32
  handshakeToolsListOutcome,
29
33
  isControlPlaneOnlyConfigKey,
30
34
  isDefaultRemoteMcpConnection,
31
- isolationMode,
32
35
  listFlagDefinitions,
33
36
  mcpWildcardsForServers,
34
37
  normalizeFlagValue,
35
- parseEnvIntegrations,
36
38
  probeComposioAccount,
37
39
  probeComposioMcpToolCall,
38
40
  probeHttpProvider,
@@ -46,7 +48,7 @@ import {
46
48
  resolveConnectivityProbe,
47
49
  worseConnectivityOutcome,
48
50
  wrapScheduledTaskPrompt
49
- } from "./chunk-TKWDYMM3.js";
51
+ } from "./chunk-3PNRUCHD.js";
50
52
  import {
51
53
  parsePsRows
52
54
  } from "./chunk-XWVM4KPK.js";
@@ -627,9 +629,6 @@ function writeXurlStoreForIntegrations(integrations, filePath = getXurlStorePath
627
629
  return filePath;
628
630
  }
629
631
 
630
- // ../../packages/core/dist/crypto/secret.js
631
- import { createCipheriv, createDecipheriv, randomBytes } from "crypto";
632
-
633
632
  // ../../packages/core/dist/crypto/envelope.js
634
633
  import { createHash } from "crypto";
635
634
 
@@ -869,10 +868,23 @@ function parseEnvelope(encoded) {
869
868
  function contextString(ctx) {
870
869
  return `org:${ctx.orgId}:${ctx.table}:${ctx.column}:${ctx.field}:${ctx.rowId}`;
871
870
  }
871
+ var DIRECT_COLUMN_FIELD_SENTINEL = "";
872
+ function buildDecryptContext(coords, runtime) {
873
+ return {
874
+ orgId: runtime.orgId,
875
+ table: coords.table,
876
+ column: coords.column,
877
+ field: coords.field ?? DIRECT_COLUMN_FIELD_SENTINEL,
878
+ rowId: runtime.rowId
879
+ };
880
+ }
872
881
  function buildAad(headerBytes, ctx) {
873
882
  return Buffer.concat([headerBytes, Buffer.from(contextString(ctx), "utf8")]);
874
883
  }
875
884
 
885
+ // ../../packages/core/dist/crypto/secret.js
886
+ import { createCipheriv, createDecipheriv, randomBytes } from "crypto";
887
+
876
888
  // ../../packages/core/dist/crypto/keyring.js
877
889
  var ACTIVE_ENV = "AUTH_ENCRYPTION_KEY";
878
890
  var PREVIOUS_ENV = "AUTH_ENCRYPTION_KEY_PREVIOUS";
@@ -982,12 +994,16 @@ var SENSITIVE_INTEGRATION_FIELDS = [
982
994
  "client_secret",
983
995
  "private_key"
984
996
  ];
985
- function decryptIntegrationCredentials(credentials) {
997
+ var SENSITIVE_SET = new Set(SENSITIVE_INTEGRATION_FIELDS);
998
+ function integrationCredentialsFieldContext(row, field) {
999
+ return buildDecryptContext({ table: row.table, column: "credentials", field }, { orgId: row.orgId, rowId: row.rowId });
1000
+ }
1001
+ function decryptIntegrationCredentials(credentials, row) {
986
1002
  const out = { ...credentials };
987
1003
  for (const field of SENSITIVE_INTEGRATION_FIELDS) {
988
1004
  const value = out[field];
989
1005
  if (typeof value === "string" && value && isEncrypted(value)) {
990
- out[field] = decryptSecret(value);
1006
+ out[field] = decryptSecret(value, row ? integrationCredentialsFieldContext(row, field) : void 0);
991
1007
  }
992
1008
  }
993
1009
  return out;
@@ -5971,7 +5987,7 @@ function exchangeFailureKind(err) {
5971
5987
  }
5972
5988
 
5973
5989
  // src/lib/api-client.ts
5974
- var agtCliVersion = true ? "0.28.593" : "dev";
5990
+ var agtCliVersion = true ? "0.28.595" : "dev";
5975
5991
  var lastConfigHash = null;
5976
5992
  function setConfigHash(hash) {
5977
5993
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9416,4 +9432,4 @@ export {
9416
9432
  managerInstallSystemUnitCommand,
9417
9433
  managerUninstallSystemUnitCommand
9418
9434
  };
9419
- //# sourceMappingURL=chunk-BYCE4V7Q.js.map
9435
+ //# sourceMappingURL=chunk-RC6V6QN2.js.map