@integrity-labs/agt-cli 0.28.594 → 0.28.596
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 +7 -5
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-74UJCPIS.js → chunk-3PNRUCHD.js} +10295 -14614
- package/dist/chunk-3PNRUCHD.js.map +1 -0
- package/dist/chunk-6NVRWZ5W.js +4352 -0
- package/dist/chunk-6NVRWZ5W.js.map +1 -0
- package/dist/{chunk-U7DHWGAZ.js → chunk-EAZQXZ4Q.js} +44 -18
- package/dist/chunk-EAZQXZ4Q.js.map +1 -0
- package/dist/{claude-pair-runtime-CGVDKWFC.js → claude-pair-runtime-5WB2FMIX.js} +2 -2
- package/dist/lib/manager-worker.js +73 -58
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-YRCF7AAC.js → persistent-session-BGMQQYW2.js} +3 -2
- package/dist/{responsiveness-probe-MFWXIRTJ.js → responsiveness-probe-VAGPO5FZ.js} +3 -2
- package/dist/{responsiveness-probe-MFWXIRTJ.js.map → responsiveness-probe-VAGPO5FZ.js.map} +1 -1
- package/dist/session-auth-dead-CWFGB472.js +206 -0
- package/dist/session-auth-dead-CWFGB472.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-74UJCPIS.js.map +0 -1
- package/dist/chunk-U7DHWGAZ.js.map +0 -1
- /package/dist/{claude-pair-runtime-CGVDKWFC.js.map → claude-pair-runtime-5WB2FMIX.js.map} +0 -0
- /package/dist/{persistent-session-YRCF7AAC.js.map → persistent-session-BGMQQYW2.js.map} +0 -0
|
@@ -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-
|
|
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
|
-
|
|
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.
|
|
5990
|
+
var agtCliVersion = true ? "0.28.596" : "dev";
|
|
5975
5991
|
var lastConfigHash = null;
|
|
5976
5992
|
function setConfigHash(hash) {
|
|
5977
5993
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -7831,7 +7847,7 @@ function verdictForUnavailableMcpConfig(cause, ctx) {
|
|
|
7831
7847
|
}
|
|
7832
7848
|
|
|
7833
7849
|
// src/lib/connectivity-probe-context.ts
|
|
7834
|
-
import { join as join5 } from "path";
|
|
7850
|
+
import { delimiter as pathDelimiter, join as join5 } from "path";
|
|
7835
7851
|
import { existsSync as existsSync6, readFileSync as readFileSync6 } from "fs";
|
|
7836
7852
|
|
|
7837
7853
|
// src/lib/mcp-stdio-probe.ts
|
|
@@ -8016,7 +8032,10 @@ function runCliProbe(binary, args, opts = {}) {
|
|
|
8016
8032
|
}
|
|
8017
8033
|
const e = err;
|
|
8018
8034
|
if (e.code === "ENOENT") {
|
|
8019
|
-
resolve({
|
|
8035
|
+
resolve({
|
|
8036
|
+
status: "unverified",
|
|
8037
|
+
message: `${binary} not found on PATH \u2014 the probe could not run, so this is NOT a verdict about the integration. If the agent uses a per-agent binary (e.g. the .claude/agt-bin shim), the probe's PATH must include it.`
|
|
8038
|
+
});
|
|
8020
8039
|
return;
|
|
8021
8040
|
}
|
|
8022
8041
|
if (e.killed || e.signal === "SIGTERM") {
|
|
@@ -8319,6 +8338,13 @@ function buildProbeEnv(projectDir) {
|
|
|
8319
8338
|
}
|
|
8320
8339
|
} catch {
|
|
8321
8340
|
}
|
|
8341
|
+
try {
|
|
8342
|
+
const agentBinDir = join5(projectDir, ".claude", "agt-bin");
|
|
8343
|
+
if (existsSync6(agentBinDir)) {
|
|
8344
|
+
probeEnv.PATH = probeEnv.PATH ? `${agentBinDir}${pathDelimiter}${probeEnv.PATH}` : agentBinDir;
|
|
8345
|
+
}
|
|
8346
|
+
} catch {
|
|
8347
|
+
}
|
|
8322
8348
|
return probeEnv;
|
|
8323
8349
|
}
|
|
8324
8350
|
function buildConnectivityProbeDeps(projectDir, probeEnv) {
|
|
@@ -9416,4 +9442,4 @@ export {
|
|
|
9416
9442
|
managerInstallSystemUnitCommand,
|
|
9417
9443
|
managerUninstallSystemUnitCommand
|
|
9418
9444
|
};
|
|
9419
|
-
//# sourceMappingURL=chunk-
|
|
9445
|
+
//# sourceMappingURL=chunk-EAZQXZ4Q.js.map
|