@integrity-labs/agt-cli 0.28.1253 → 0.28.1254
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-5ZXNFF4W.js → api-client-EW7NBMWI.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-233HXJ2D.js → chunk-AZOT5URF.js} +2 -2
- package/dist/{chunk-UHT6L77A.js → chunk-EWD3K6YD.js} +40 -3
- package/dist/{chunk-UHT6L77A.js.map → chunk-EWD3K6YD.js.map} +1 -1
- package/dist/{chunk-2HF77X4C.js → chunk-FD3GWWVL.js} +3 -3
- package/dist/{chunk-UBGHZ2O2.js → chunk-SEXB6LTM.js} +194 -9
- package/dist/chunk-SEXB6LTM.js.map +1 -0
- package/dist/{chunk-CMLBFY5C.js → chunk-ZDON4IXL.js} +2 -2
- package/dist/{chunk-GRTMENH5.js → chunk-ZKLOPCWS.js} +20 -9
- package/dist/{chunk-GRTMENH5.js.map → chunk-ZKLOPCWS.js.map} +1 -1
- package/dist/{claude-code-updater-EKABTDXO.js → claude-code-updater-CHEL6LOF.js} +3 -3
- package/dist/{claude-pair-runtime-ZA24UQ7V.js → claude-pair-runtime-AGJH54AR.js} +3 -3
- package/dist/lib/manager-worker.js +50 -33
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +33 -2
- package/dist/mcp/index.js +33 -2
- package/dist/mcp/origami.js +33 -2
- package/dist/mcp/remote-oauth-proxy.js +142 -5
- package/dist/mcp/slack-channel.js +33 -2
- package/dist/mcp/telegram-channel.js +33 -2
- package/dist/{persistent-session-HXK2Z6GH.js → persistent-session-HQPQPNPK.js} +4 -4
- package/dist/{responsiveness-probe-TPKISRGQ.js → responsiveness-probe-6GNSPLD2.js} +4 -4
- package/dist/{session-auth-dead-KMB35KRB.js → session-auth-dead-4Z24MU6C.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-UBGHZ2O2.js.map +0 -1
- /package/dist/{api-client-5ZXNFF4W.js.map → api-client-EW7NBMWI.js.map} +0 -0
- /package/dist/{chunk-233HXJ2D.js.map → chunk-AZOT5URF.js.map} +0 -0
- /package/dist/{chunk-2HF77X4C.js.map → chunk-FD3GWWVL.js.map} +0 -0
- /package/dist/{chunk-CMLBFY5C.js.map → chunk-ZDON4IXL.js.map} +0 -0
- /package/dist/{claude-code-updater-EKABTDXO.js.map → claude-code-updater-CHEL6LOF.js.map} +0 -0
- /package/dist/{claude-pair-runtime-ZA24UQ7V.js.map → claude-pair-runtime-AGJH54AR.js.map} +0 -0
- /package/dist/{persistent-session-HXK2Z6GH.js.map → persistent-session-HQPQPNPK.js.map} +0 -0
- /package/dist/{responsiveness-probe-TPKISRGQ.js.map → responsiveness-probe-6GNSPLD2.js.map} +0 -0
- /package/dist/{session-auth-dead-KMB35KRB.js.map → session-auth-dead-4Z24MU6C.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-FD3GWWVL.js";
|
|
19
|
+
import "./chunk-EWD3K6YD.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-EW7NBMWI.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-SEXB6LTM.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-FD3GWWVL.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
49
49
|
readDirectChatSessionState
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-ZKLOPCWS.js";
|
|
51
51
|
import {
|
|
52
52
|
markDailySessionSpawn,
|
|
53
53
|
sessionFileExists,
|
|
54
54
|
sessionTranscriptDir
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-ZDON4IXL.js";
|
|
56
56
|
import "../chunk-HYQ7VOC3.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-EWD3K6YD.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.1254" : "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.1254" : "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-EWD3K6YD.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-AZOT5URF.js.map
|
|
@@ -6403,6 +6403,11 @@ var KANBAN_STATUSES = [
|
|
|
6403
6403
|
"needs_attention",
|
|
6404
6404
|
"waiting"
|
|
6405
6405
|
];
|
|
6406
|
+
var KANBAN_TERMINAL_STATES = /* @__PURE__ */ new Set([
|
|
6407
|
+
"done",
|
|
6408
|
+
"failed",
|
|
6409
|
+
"cancelled"
|
|
6410
|
+
]);
|
|
6406
6411
|
var KANBAN_STATUS_SET = new Set(KANBAN_STATUSES);
|
|
6407
6412
|
|
|
6408
6413
|
// ../../packages/core/dist/kanban/waiting.js
|
|
@@ -8509,7 +8514,7 @@ var FLAG_REGISTRY = [
|
|
|
8509
8514
|
},
|
|
8510
8515
|
{
|
|
8511
8516
|
key: "scheduled-task-nudge-durable",
|
|
8512
|
-
description: 'Deliver the scheduled-task "work this card" nudge over the durable direct-chat notice rail instead of unverified tmux send-keys (ENG-8068, re-landing ENG-7971). When ON, routeScheduledTaskViaKanban enqueues the nudge via POST /host/scheduled-task/notify (kind:notice, push-and-consumed by the in-session MCP with a per-card consume-time revalidation) and closes the card + run on an enqueue failure, retiring the ENG-6351 orphaned-card gap where an unsubmitted keystroke left a scheduled task silently unrun. When OFF (default) the manager
|
|
8517
|
+
description: 'Deliver the scheduled-task "work this card" nudge over the durable direct-chat notice rail instead of unverified tmux send-keys (ENG-8068, re-landing ENG-7971). When ON, routeScheduledTaskViaKanban enqueues the nudge via POST /host/scheduled-task/notify (kind:notice, push-and-consumed by the in-session MCP with a per-card consume-time revalidation) and closes the card + run on an enqueue failure, retiring the ENG-6351 orphaned-card gap where an unsubmitted keystroke left a scheduled task silently unrun. When OFF (default) the manager delivers the nudge by tmux send-keys. ONE EXCEPTION, whatever this flag says (ENG-8006): when send-keys reaches nothing because the session is down or restarting, the nudge is still queued on the durable rail for the next session, and if that enqueue fails the card is closed as failed. So OFF is a partial kill switch: it takes live sessions off the rail, but not firings whose session is down. ENG-7971 was reverted once because the durable rail 500d on a session_id bug (fixed in ENG-8061). During a rail incident, OFF limits the blast radius to down-session firings, and those show up as cards closed failed with "scheduled-task nudge undeliverable". Resolved host-side by the manager via hostFlagStore().getBoolean (the manager evaluates the decision itself, so no spawn-env materialization is needed). Ships dark.',
|
|
8513
8518
|
flagType: "boolean",
|
|
8514
8519
|
// Declared safe value is `false`: the current, reverted-to send-keys delivery. Turning
|
|
8515
8520
|
// it ON activates the durable rail per org/host once operators are confident. `false`
|
|
@@ -8827,6 +8832,32 @@ var FLAG_REGISTRY = [
|
|
|
8827
8832
|
// `sensitive: true`, plus the two gates spelled out in the description.
|
|
8828
8833
|
since: "0.28.1015"
|
|
8829
8834
|
},
|
|
8835
|
+
{
|
|
8836
|
+
key: "remote-mcp-oauth-broker-credentials",
|
|
8837
|
+
description: "Deliver the bearer of every OAuth remote MCP served through remote-oauth-proxy (OAUTH_PROVIDERS entries with an mcpUrl: granola, brand-ninja, kajabi, otter, plaud, datadog-ap1/ap2 today) through the broker credential endpoint at USE time, instead of materializing it into `.env.integrations` (ENG-12046). Mechanically the sibling of `xero-broker-credentials`. ON: POST /host/agent-integrations strips `access_token`, `refresh_token` and `token_expires_at` from those rows and marks them credential_delivery=broker, so `<DEF>_ACCESS_TOKEN` is no longer written to `.env.integrations` and so is no longer in the agent process env (the session wrapper `source`s that file with `set -a`). The claudecode adapter then emits AGT_REMOTE_MCP_INTEGRATION_ID instead of a token file/var, and the proxy fetches the bearer per use from POST /host/agent-integrations/<uuid>/credential with the agent's own host credentials (memory only, fail closed, no fallback). OFF (default): byte-for-byte today's behaviour. THIS IS HYGIENE, NOT A BOUNDARY: an agent that calls the same fetch can still obtain the token. The binding control for broad-scope providers (Datadog mcp_all) remains a read-only provider user; the real boundary is ENG-12047 (host-side proxy). SINCE IS A PLACEHOLDER: `since` (0.29.0) is an unreachable placeholder, not a verified threshold. Before enabling, replace it with the first published agt-cli whose remote-oauth-proxy carries broker mode (bisected from the tarballs), or the reach estimate means nothing. FLIP GATE: an under-`since` host honours the marker (it skips the token write, ENG-8344) but still emits a token-file proxy entry, so its remote OAuth MCPs answer \"no current access token\" for every call: an outage of those integrations, not a leak. Zero hosts carrying these integrations below `since` per hosts.agt_version before flipping, counting NULL as unconverged. agt_version names the bundle on disk, not the running proxy: a session started before the update keeps its pre-broker proxy until it restarts, so also confirm every affected session has respawned. HARD GATE: Do not enable, for any provider, until ENG-12053 is merged AND deployed to every API instance serving the credential route (a merge alone is not enough: an older route ignores on_missing_expiry: 'serve'), and a fetch with it on a no-expiry row is verified not to refresh. Reason: a provider whose refresh response omits expires_in makes oauth-refresh drop token_expires_at, the credential route treats that as \"refresh now\", and the row then refreshes about every 60s; the next poll returns the row to env delivery, but that does NOT respawn the running session, so its proxy keeps refreshing about every 60s until some unrelated restart (provider rate limits, token churn, possible lockouts). None of the in-scope providers (granola, brand-ninja, kajabi, otter, plaud, datadog-ap1, datadog-ap2) is verified on expires_in, and the flag covers all of them at once, so no per-provider exception exists. claude-code agents only: opencode has no broker path and keeps env delivery. See docs/runbooks/remote-mcp-oauth-broker-credentials-rollout.md.",
|
|
8838
|
+
flagType: "boolean",
|
|
8839
|
+
// `false` = today's env delivery. A wrongly-ON flip on an unconverged host is
|
|
8840
|
+
// an outage of the remote OAuth MCPs (see the description), so the ON path is
|
|
8841
|
+
// the one with a reach precondition.
|
|
8842
|
+
defaultValue: false,
|
|
8843
|
+
// Changes how every remote-OAuth MCP on the scope authenticates. A
|
|
8844
|
+
// deliberate, confirmed action (ADR-0022 §4).
|
|
8845
|
+
sensitive: true,
|
|
8846
|
+
// ADR-0120: an org owner/admin must not be able to switch this on for their
|
|
8847
|
+
// own org before its prerequisites (ENG-12053 deployed, hosts and sessions
|
|
8848
|
+
// converged) are met. Nothing in code enforces those gates, and an early
|
|
8849
|
+
// enable is an outage of that org's remote OAuth MCPs (CodeRabbit on #7568).
|
|
8850
|
+
platformAdminOnly: true,
|
|
8851
|
+
// PLACEHOLDER, like `github-broker-credentials` shipped with. Replace with the
|
|
8852
|
+
// first published agt-cli whose remote-oauth-proxy carries broker mode
|
|
8853
|
+
// (grep the bundle for AGT_REMOTE_MCP_INTEGRATION_ID), bisected from the
|
|
8854
|
+
// tarballs as `xero-broker-credentials` did. This version names the bundle on
|
|
8855
|
+
// disk. remote-oauth-proxy.js is not in RESTARTABLE_CHANNEL_FILES, so a
|
|
8856
|
+
// session started before the update keeps its older proxy until it restarts:
|
|
8857
|
+
// a host at this version can still run a pre-broker proxy. Advisory only: it
|
|
8858
|
+
// feeds computeFlagReach, it does not block a flip.
|
|
8859
|
+
since: "0.29.0"
|
|
8860
|
+
},
|
|
8830
8861
|
{
|
|
8831
8862
|
key: "help-kb-auto-grant",
|
|
8832
8863
|
description: "Auto-grant the `augmented-help-kb` integration at ORG scope when an organization is provisioned (ENG-8542), so every agent in that org gets product-doc search without a per-agent operator action. One organization_integrations row reaches every agent in the org: POST /host/agent-integrations merges org -> team -> agent and buildMcpJson's predicate reads that merged set with no scope filter. ON: the two org-provisioning call sites write the row (status=active, created_by=the org owner). OFF (default): they write nothing - byte-for-byte today's behaviour. STAGED ROLLOUT IS THE POINT. ENG-8332 argues against widening distribution of the help KB until two things close, because distributing a corpus with wrong articles \"converts one agent's wrong answer into everyone's\": (1) a live 200 from GET /host/kb/search as the anon role has still never been observed - ENG-7260 was closed on remediation evidence, not on a live call, and the deploy seed log is SERVICE-ROLE evidence that says nothing about the anon grant; (2) the `site-structure` article is unverified against the current IA. Turning this on for ONE org and watching that org's help-kb connectivity-probe verdicts (ENG-8332 added a real mcp_stdio probe that calls search_knowledge_base) is the cheap positive control for (1) - an ENG-7260-class 500 then reports as `down` per agent instead of as silence. Widen only after it comes back healthy. REVOKING IS DELETING THE ROW, not flipping this off: the flag gates GRANTING, so an already-granted org keeps its row when the flag goes off. Evaluated API-side only, per org, inside grantHelpKbToOrg; no host-side envVar and deliberately no sst.config.ts entry (a literal default there would pin it - ENG-8303).",
|
|
@@ -15573,7 +15604,12 @@ var REMOTE_MCP_PROXY_ENV = {
|
|
|
15573
15604
|
// Deliberately NOT in REMOTE_MCP_AUTH_ENV_KEYS, for the same reason as
|
|
15574
15605
|
// `argRejects`: it shapes WHICH calls we forward, not what an outbound request
|
|
15575
15606
|
// looks like, so the connectivity probe has nothing to reconstruct from it.
|
|
15576
|
-
toolTiers: "AGT_REMOTE_MCP_TOOL_TIERS"
|
|
15607
|
+
toolTiers: "AGT_REMOTE_MCP_TOOL_TIERS",
|
|
15608
|
+
// ENG-12046: when set, the proxy fetches its bearer from the broker at use
|
|
15609
|
+
// time for THIS integration row (uuid) instead of reading TOKEN_FILE/TOKEN_VAR,
|
|
15610
|
+
// and the token is no longer written to `.env.integrations`. Hygiene, not a
|
|
15611
|
+
// boundary: see core/integrations/remote-mcp-broker-token.ts.
|
|
15612
|
+
integrationId: "AGT_REMOTE_MCP_INTEGRATION_ID"
|
|
15577
15613
|
};
|
|
15578
15614
|
var REMOTE_MCP_AUTH_ENV_KEYS = [
|
|
15579
15615
|
REMOTE_MCP_PROXY_ENV.tokenVar,
|
|
@@ -18662,6 +18698,7 @@ export {
|
|
|
18662
18698
|
serializeAccountEnforcementMarker,
|
|
18663
18699
|
KANBAN_CHECK_COMMAND,
|
|
18664
18700
|
KANBAN_NUDGE_ACTIONABLE_STATUSES,
|
|
18701
|
+
KANBAN_TERMINAL_STATES,
|
|
18665
18702
|
resolveCrossTeamPeerIntraOrg,
|
|
18666
18703
|
isSystemInjectedContent,
|
|
18667
18704
|
isBareAck,
|
|
@@ -18693,4 +18730,4 @@ export {
|
|
|
18693
18730
|
HOST_ROTATE_KEY_CONFLICT,
|
|
18694
18731
|
shouldMintReplacementKey
|
|
18695
18732
|
};
|
|
18696
|
-
//# sourceMappingURL=chunk-
|
|
18733
|
+
//# sourceMappingURL=chunk-EWD3K6YD.js.map
|