@integrity-labs/agt-cli 0.28.1279 → 0.28.1281
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/{api-client-YA7657ZN.js → api-client-UW5GPDR5.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-AW6F22KT.js → chunk-A26WJ7TB.js} +2 -2
- package/dist/{chunk-IEZRWDI2.js → chunk-CCWVPE2F.js} +3 -3
- package/dist/{chunk-VB63HJVE.js → chunk-FQMFWJUD.js} +2 -2
- package/dist/{chunk-QAK6K6YV.js → chunk-O5D6I72R.js} +48 -3
- package/dist/chunk-O5D6I72R.js.map +1 -0
- package/dist/{chunk-XTLIEWQ6.js → chunk-SHBU7NAQ.js} +5 -5
- package/dist/{chunk-TGYLUTCA.js → chunk-XNHTH267.js} +6 -3
- package/dist/{chunk-TGYLUTCA.js.map → chunk-XNHTH267.js.map} +1 -1
- package/dist/{claude-code-updater-HAUG3LWF.js → claude-code-updater-L3NMDSSG.js} +3 -3
- package/dist/{claude-pair-runtime-EBORDHDL.js → claude-pair-runtime-TUVLJDJZ.js} +3 -3
- package/dist/lib/manager-worker.js +249 -77
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +41 -2
- package/dist/mcp/index.js +41 -2
- package/dist/mcp/origami.js +41 -2
- package/dist/mcp/slack-channel.js +41 -2
- package/dist/mcp/telegram-channel.js +41 -2
- package/dist/{persistent-session-GT56CLOE.js → persistent-session-LMR3WHVO.js} +4 -4
- package/dist/{responsiveness-probe-CNKJ7AW2.js → responsiveness-probe-FWPQTPQ5.js} +4 -4
- package/dist/{session-auth-dead-TDZADZTZ.js → session-auth-dead-5PNG5ILK.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-QAK6K6YV.js.map +0 -1
- /package/dist/{api-client-YA7657ZN.js.map → api-client-UW5GPDR5.js.map} +0 -0
- /package/dist/{chunk-AW6F22KT.js.map → chunk-A26WJ7TB.js.map} +0 -0
- /package/dist/{chunk-IEZRWDI2.js.map → chunk-CCWVPE2F.js.map} +0 -0
- /package/dist/{chunk-VB63HJVE.js.map → chunk-FQMFWJUD.js.map} +0 -0
- /package/dist/{chunk-XTLIEWQ6.js.map → chunk-SHBU7NAQ.js.map} +0 -0
- /package/dist/{claude-code-updater-HAUG3LWF.js.map → claude-code-updater-L3NMDSSG.js.map} +0 -0
- /package/dist/{claude-pair-runtime-EBORDHDL.js.map → claude-pair-runtime-TUVLJDJZ.js.map} +0 -0
- /package/dist/{persistent-session-GT56CLOE.js.map → persistent-session-LMR3WHVO.js.map} +0 -0
- /package/dist/{responsiveness-probe-CNKJ7AW2.js.map → responsiveness-probe-FWPQTPQ5.js.map} +0 -0
- /package/dist/{session-auth-dead-TDZADZTZ.js.map → session-auth-dead-5PNG5ILK.js.map} +0 -0
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-CCWVPE2F.js";
|
|
19
|
+
import "./chunk-O5D6I72R.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
22
22
|
ApiError,
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-UW5GPDR5.js.map
|
package/dist/bin/agt.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
success,
|
|
32
32
|
table,
|
|
33
33
|
warn
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-SHBU7NAQ.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-CCWVPE2F.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
49
49
|
readDirectChatSessionState
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-XNHTH267.js";
|
|
51
51
|
import {
|
|
52
52
|
markDailySessionSpawn,
|
|
53
53
|
sessionFileExists,
|
|
54
54
|
sessionTranscriptDir
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-FQMFWJUD.js";
|
|
56
56
|
import "../chunk-XL2HPM67.js";
|
|
57
57
|
import "../chunk-6HBXEJHO.js";
|
|
58
58
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
requiredMcpWildcard,
|
|
86
86
|
resolveChannels,
|
|
87
87
|
serializeManifestForSlackCli
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-O5D6I72R.js";
|
|
89
89
|
import "../chunk-AIUIMEUS.js";
|
|
90
90
|
import "../chunk-DGUM43GV.js";
|
|
91
91
|
|
|
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5207
5207
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5208
5208
|
import chalk17 from "chalk";
|
|
5209
5209
|
import ora15 from "ora";
|
|
5210
|
-
var cliVersion = true ? "0.28.
|
|
5210
|
+
var cliVersion = true ? "0.28.1281" : "dev";
|
|
5211
5211
|
async function fetchLatestVersion() {
|
|
5212
5212
|
const host2 = getHost();
|
|
5213
5213
|
if (!host2) return null;
|
|
@@ -6467,7 +6467,7 @@ function handleError(err) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
|
|
6469
6469
|
// src/bin/agt.ts
|
|
6470
|
-
var cliVersion2 = true ? "0.28.
|
|
6470
|
+
var cliVersion2 = true ? "0.28.1281" : "dev";
|
|
6471
6471
|
var program = new Command();
|
|
6472
6472
|
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");
|
|
6473
6473
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XWVM4KPK.js";
|
|
5
5
|
import {
|
|
6
6
|
FORCED_UPDATE_HARD_DEADLINE_MS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O5D6I72R.js";
|
|
8
8
|
import {
|
|
9
9
|
effectiveClaudeJsonPath
|
|
10
10
|
} from "./chunk-AIUIMEUS.js";
|
|
@@ -722,4 +722,4 @@ export {
|
|
|
722
722
|
probeClaudeInstalls,
|
|
723
723
|
maybeUpdateClaudeCode
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=chunk-
|
|
725
|
+
//# sourceMappingURL=chunk-A26WJ7TB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HOST_ROTATE_KEY_CONFLICT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O5D6I72R.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/config.ts
|
|
6
6
|
import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1281" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-CCWVPE2F.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O5D6I72R.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
peekPreviousSession,
|
|
245
245
|
readDailySessionPin
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-FQMFWJUD.js.map
|
|
@@ -6484,7 +6484,7 @@ var FLAG_REGISTRY = [
|
|
|
6484
6484
|
},
|
|
6485
6485
|
{
|
|
6486
6486
|
key: "at-rest-scheme-k-writes",
|
|
6487
|
-
description:
|
|
6487
|
+
description: 'ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: \'k\'`) instead of the app key (`s: \'a\'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark. **Do not read "ships dark" as "the corpus is empty" \u2014 this entry asserted exactly that, and it was FALSE for three days with nothing detecting it.** The ENG-11944 pilot sealed one row (a cloud_account_enrolments credential, updated_at 2026-11-17); it was found on 2026-11-20 by a prod dryRun sweep and cleared, and the sweep then reported skippedSchemeK: 0. Two bounds on that reading, both of which cost nothing to respect and are why this is not written as a measurement of emptiness. FIRST, skippedSchemeK is ONE of five counters a scheme-k row can land in (schemeKUnretainedKek, schemeKWrapBroken, schemeKWrapUnverifiable, schemeKStranded are the others), so a zero there means "none verified clean", NOT "none present" \u2014 read all five, or the histogram k:* labels. SECOND, it says nothing about future writes: with this flag armed, the next credential write on an org holding an active dek_epochs row seals scheme k. Re-measure rather than trusting this line, because an empty corpus is exactly what the reversibility argument below depends on. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) DISCHARGED 2026-11-18 (ENG-10990, ADR-0062 A12) \u2014 the re-seal drain now UNWRAPS the survivor it nominates, so a row whose only path is a kms: ref that does not work blocks the verdict instead of passing as clean \u2014 as schemeKWrapBroken when KMS blamed the ciphertext (row-scoped, recorded per entry) or as schemeKWrapUnverifiable for everything else verifySurvivingWrap could not settle, which is a different counter and a different remedy. Kept numbered rather than deleted so the other two keep their numbers, which other prose and an API field cite. It is NOT a whole-corpus integrity claim: ALREADY-ACTIVE scheme a rows and scheme c rows are still counted clean without being decrypted, and an app:<activeKid>-only wrap is still not exercised; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING **ONLY FOR AN ORG WITH NO ACTIVE EPOCH** \u2014 which was every org when this sentence was written, and is why it used to stop at "changes nothing". **Do not read it that way now.** ENG-11944 minted a prod epoch on 2026-11-17, so at least one org HAS held an active row, and for that org the flip alone is sufficient with no second mint: resolveSecretsSealer returns scheme k as soon as isSchemeKWritesArmed() and getActiveDekEpoch both hold, and sealUnderDekEpoch re-checks only the org match and the status \u2014 never the region, which is why the A9 gates above do not catch this. Status is forward-only but it IS mutable (active -> retiring -> revoked, per dek_epochs_enforce_append_only), so that epoch may since have been revoked \u2014 THIS ENTRY RECORDS NO READING OF THE TABLE EITHER WAY, and the same drift that made the corpus claim false (ENG-12247) applies to this one. MEASURE BEFORE ARMING: GET /admin/dek-epochs/:organizationId (ENG-12012) answers for ONE named org, so a fleet answer is a query of dek_epochs for status = \'active\', not a sweep of that route. The intended rollout is unchanged \u2014 a control whose first row freezes the envelope for the whole corpus arms for one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as "prod and test can mint". Test cannot \u2014 and as of ENG-11886 the REASON HAS CHANGED, so do not reason from the old one. deploy-test.yml PINNED AUGMENTED_APP_REGION=us-east-2, so the test API RAN with AWS_REGION=us-east-2, isSecondaryStack() WAS true there, and both A9 gates refused \u2014 the arming seam wrote scheme a, and mintDekEpoch threw at its pre-filter. ENG-11886 retired that workflow and its `test` GitHub Environment is gone, so NO workflow deploys a non-prod stage any more: there is no test API to mint from at all, which is now the whole of why test cannot. The region argument is history, not the live mechanism. AND DO NOT INVERT IT INTO "a hand-rebuilt test stage could mint": that was NOT measured, and it turns on two things nobody has checked \u2014 which region the operator exports (the resolver defaults to ap-southeast-2 now, which IS PRIMARY_APP_REGION, so the pre-filter would NOT refuse) and where alias/augmented-test-secrets resolves. Measure both before using a rebuilt test stage as the pilot. Either way the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage\'s own home region needs a stage->region source that does not exist at the mint\'s call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.',
|
|
6488
6488
|
flagType: "boolean",
|
|
6489
6489
|
// Declared safe value is `false` = scheme a. A flag-read error must never arm
|
|
6490
6490
|
// scheme k on its own: an unintended `a` row is re-sealable, an unintended
|
|
@@ -13697,6 +13697,12 @@ var BUNDLED_STDIO_PROBE_TOOLKITS = {
|
|
|
13697
13697
|
"augmented-help-kb": {
|
|
13698
13698
|
tool: "search_knowledge_base",
|
|
13699
13699
|
args: { query: "connectivity probe", limit: 1 }
|
|
13700
|
+
},
|
|
13701
|
+
// ENG-12241: the org's own effective flags. No arguments, read-only, returns
|
|
13702
|
+
// flag names only. See the note above for why this matters (auto-resume).
|
|
13703
|
+
"augmented-support": {
|
|
13704
|
+
tool: "support_get_flags",
|
|
13705
|
+
args: {}
|
|
13700
13706
|
}
|
|
13701
13707
|
};
|
|
13702
13708
|
var CLI_PROBE_ARGS = {
|
|
@@ -15889,6 +15895,26 @@ var SITE_LOGIN_COOKIES = Object.freeze([
|
|
|
15889
15895
|
Object.freeze({ host: "twitter.com", cookies: Object.freeze(["auth_token"]) })
|
|
15890
15896
|
]);
|
|
15891
15897
|
|
|
15898
|
+
// ../../packages/core/dist/browserbase/page-fetch.js
|
|
15899
|
+
var FETCH_METHODS = Object.freeze(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
15900
|
+
var FETCH_MAX_RESPONSE_BYTES = 256 * 1024;
|
|
15901
|
+
var FETCH_MAX_BATCH_BYTES = 2 * 1024 * 1024;
|
|
15902
|
+
var FETCH_MAX_BODY_BYTES = 64 * 1024;
|
|
15903
|
+
var FETCH_MAX_PATH_CHARS = 2048;
|
|
15904
|
+
var FETCH_MAX_FINAL_PATH_MATCH_CHARS = FETCH_MAX_PATH_CHARS * 9 + 1024;
|
|
15905
|
+
var FETCH_READ_RULE_METHODS = Object.freeze(["POST", "PUT", "PATCH"]);
|
|
15906
|
+
var FETCH_ERROR_CODES = Object.freeze([
|
|
15907
|
+
"bad_path",
|
|
15908
|
+
"off_origin",
|
|
15909
|
+
"header_not_allowed",
|
|
15910
|
+
"off_origin_redirect",
|
|
15911
|
+
"redirect_refused",
|
|
15912
|
+
"timeout",
|
|
15913
|
+
"batch_timeout",
|
|
15914
|
+
"network_error",
|
|
15915
|
+
"malformed_result"
|
|
15916
|
+
]);
|
|
15917
|
+
|
|
15892
15918
|
// ../../packages/core/dist/browserbase/page-actions.js
|
|
15893
15919
|
var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
15894
15920
|
"Target.getTargets",
|
|
@@ -15913,7 +15939,26 @@ var CDP_METHOD_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
|
15913
15939
|
// events at the drop point. Neither method reads cookies or storage or runs
|
|
15914
15940
|
// script; the drag data stays server-side and is never returned.
|
|
15915
15941
|
"Input.setInterceptDrags",
|
|
15916
|
-
"Input.dispatchDragEvent"
|
|
15942
|
+
"Input.dispatchDragEvent",
|
|
15943
|
+
// CS-2613 browserbase_fetch: the ONE place script runs, and it is never the
|
|
15944
|
+
// agent's. `DOM.resolveNode` turns the document node (from DOM.getDocument,
|
|
15945
|
+
// above) into a remote object, and `Runtime.callFunctionOn` calls a function
|
|
15946
|
+
// on it. The send-time check in `withPage` refuses a callFunctionOn unless
|
|
15947
|
+
// its `functionDeclaration` is exactly FETCH_FN_SOURCE (page-fetch.ts) and
|
|
15948
|
+
// every argument is a plain JSON `{ value }`, so no other function, and no
|
|
15949
|
+
// agent text as code, can ever be sent. `Runtime.evaluate` stays absent.
|
|
15950
|
+
"DOM.resolveNode",
|
|
15951
|
+
"Runtime.callFunctionOn",
|
|
15952
|
+
// CodeRabbit 4627248470 / 4626468760 (CS-2613 browserbase_fetch): a cookie
|
|
15953
|
+
// the site sets DURING a batch (Set-Cookie A -> B -> A) is invisible to a
|
|
15954
|
+
// before/after jar comparison, so the broker must OBSERVE it. Network.enable
|
|
15955
|
+
// turns on the page session's network events; `withPage` counts
|
|
15956
|
+
// `Network.responseReceivedExtraInfo` events and whether each carries a
|
|
15957
|
+
// `set-cookie` header name, and nothing else. It returns nothing itself,
|
|
15958
|
+
// and it brings no reader with it: Network.getCookies, getAllCookies and
|
|
15959
|
+
// getResponseBody stay absent. The send-time check refuses it with any
|
|
15960
|
+
// parameter (no buffer or post-data options).
|
|
15961
|
+
"Network.enable"
|
|
15917
15962
|
]);
|
|
15918
15963
|
var ALLOWED_CDP_METHODS = Object.freeze([...CDP_METHOD_ALLOWLIST]);
|
|
15919
15964
|
var VALUE_TESTING_PSEUDO_CLASSES = [
|
|
@@ -19024,4 +19069,4 @@ export {
|
|
|
19024
19069
|
HOST_ROTATE_KEY_CONFLICT,
|
|
19025
19070
|
shouldMintReplacementKey
|
|
19026
19071
|
};
|
|
19027
|
-
//# sourceMappingURL=chunk-
|
|
19072
|
+
//# sourceMappingURL=chunk-O5D6I72R.js.map
|