@integrity-labs/agt-cli 0.28.1214 → 0.28.1215
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,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-BPXFPKJ4.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5200
5200
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5201
5201
|
import chalk17 from "chalk";
|
|
5202
5202
|
import ora15 from "ora";
|
|
5203
|
-
var cliVersion = true ? "0.28.
|
|
5203
|
+
var cliVersion = true ? "0.28.1215" : "dev";
|
|
5204
5204
|
async function fetchLatestVersion() {
|
|
5205
5205
|
const host2 = getHost();
|
|
5206
5206
|
if (!host2) return null;
|
|
@@ -6460,7 +6460,7 @@ function handleError(err) {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
|
|
6462
6462
|
// src/bin/agt.ts
|
|
6463
|
-
var cliVersion2 = true ? "0.28.
|
|
6463
|
+
var cliVersion2 = true ? "0.28.1215" : "dev";
|
|
6464
6464
|
var program = new Command();
|
|
6465
6465
|
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");
|
|
6466
6466
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -1857,11 +1857,11 @@ import { createCipheriv, createDecipheriv, randomBytes } from "crypto";
|
|
|
1857
1857
|
var DEFAULT_DEK_CACHE_TTL_MS = 5 * 6e4;
|
|
1858
1858
|
var cache = /* @__PURE__ */ new Map();
|
|
1859
1859
|
var failures = /* @__PURE__ */ new Map();
|
|
1860
|
-
function cacheKey(entry) {
|
|
1861
|
-
return `${entry.ref}\0${entry.dek}`;
|
|
1860
|
+
function cacheKey(entry, binding) {
|
|
1861
|
+
return `${entry.ref}\0${entry.dek}\0${binding.orgId}`;
|
|
1862
1862
|
}
|
|
1863
|
-
function getDekFailure(entry) {
|
|
1864
|
-
const key = cacheKey(entry);
|
|
1863
|
+
function getDekFailure(entry, binding) {
|
|
1864
|
+
const key = cacheKey(entry, binding);
|
|
1865
1865
|
const hit = failures.get(key);
|
|
1866
1866
|
if (!hit)
|
|
1867
1867
|
return null;
|
|
@@ -1871,8 +1871,8 @@ function getDekFailure(entry) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return hit.err;
|
|
1873
1873
|
}
|
|
1874
|
-
function getCachedDek(entry) {
|
|
1875
|
-
const key = cacheKey(entry);
|
|
1874
|
+
function getCachedDek(entry, binding) {
|
|
1875
|
+
const key = cacheKey(entry, binding);
|
|
1876
1876
|
const hit = cache.get(key);
|
|
1877
1877
|
if (!hit)
|
|
1878
1878
|
return null;
|
|
@@ -1968,15 +1968,16 @@ function decryptSecret(encoded, context) {
|
|
|
1968
1968
|
if (scheme === "c" && parsed.header.w.length > 1) {
|
|
1969
1969
|
throw new CustomerKekUnavailableError(`scheme c: this row dual-wraps ${parsed.header.w.length} DEK entries, and which custody may satisfy it is an ADR-0062 increment D decision that has not been made \u2014 refusing rather than letting a platform wrap override a revoked customer KEK`);
|
|
1970
1970
|
}
|
|
1971
|
+
const binding = { orgId: context.orgId };
|
|
1971
1972
|
let dek = null;
|
|
1972
1973
|
for (const entry of parsed.header.w) {
|
|
1973
|
-
dek = getCachedDek(entry);
|
|
1974
|
+
dek = getCachedDek(entry, binding);
|
|
1974
1975
|
if (dek)
|
|
1975
1976
|
break;
|
|
1976
1977
|
}
|
|
1977
1978
|
if (!dek) {
|
|
1978
1979
|
for (const entry of parsed.header.w) {
|
|
1979
|
-
const failure = getDekFailure(entry);
|
|
1980
|
+
const failure = getDekFailure(entry, binding);
|
|
1980
1981
|
if (failure)
|
|
1981
1982
|
throw failure;
|
|
1982
1983
|
}
|
|
@@ -8082,7 +8083,7 @@ function exchangeFailureKind(err) {
|
|
|
8082
8083
|
}
|
|
8083
8084
|
|
|
8084
8085
|
// src/lib/api-client.ts
|
|
8085
|
-
var agtCliVersion = true ? "0.28.
|
|
8086
|
+
var agtCliVersion = true ? "0.28.1215" : "dev";
|
|
8086
8087
|
var lastConfigHash = null;
|
|
8087
8088
|
function setConfigHash(hash) {
|
|
8088
8089
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -13683,4 +13684,4 @@ export {
|
|
|
13683
13684
|
managerInstallSystemUnitCommand,
|
|
13684
13685
|
managerUninstallSystemUnitCommand
|
|
13685
13686
|
};
|
|
13686
|
-
//# sourceMappingURL=chunk-
|
|
13687
|
+
//# sourceMappingURL=chunk-BPXFPKJ4.js.map
|