@integrity-labs/agt-cli 0.28.1030 → 0.28.1032
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 +5 -5
- package/dist/{chunk-4KNUH4DQ.js → chunk-GLOCISGD.js} +2 -2
- package/dist/{chunk-VUC5XNUP.js → chunk-NCIGLRCL.js} +77 -2
- package/dist/chunk-NCIGLRCL.js.map +1 -0
- package/dist/{chunk-TBCJ5NNP.js → chunk-OGITTSBM.js} +8 -7
- package/dist/chunk-OGITTSBM.js.map +1 -0
- package/dist/{claude-pair-runtime-3LB2CNFQ.js → claude-pair-runtime-KQDXWMWB.js} +2 -2
- package/dist/lib/manager-worker.js +14 -14
- package/dist/mcp/direct-chat-channel.js +76 -1
- package/dist/mcp/index.js +76 -1
- package/dist/mcp/origami.js +76 -1
- package/dist/mcp/slack-channel.js +76 -1
- package/dist/mcp/telegram-channel.js +76 -1
- package/dist/{persistent-session-BCEKKB2Y.js → persistent-session-TOIMQIAU.js} +3 -3
- package/dist/{responsiveness-probe-6S6ZELJG.js → responsiveness-probe-VJOXOK66.js} +3 -3
- package/dist/{session-auth-dead-M43W63XW.js → session-auth-dead-T5EZNDRO.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-TBCJ5NNP.js.map +0 -1
- package/dist/chunk-VUC5XNUP.js.map +0 -1
- /package/dist/{chunk-4KNUH4DQ.js.map → chunk-GLOCISGD.js.map} +0 -0
- /package/dist/{claude-pair-runtime-3LB2CNFQ.js.map → claude-pair-runtime-KQDXWMWB.js.map} +0 -0
- /package/dist/{persistent-session-BCEKKB2Y.js.map → persistent-session-TOIMQIAU.js.map} +0 -0
- /package/dist/{responsiveness-probe-6S6ZELJG.js.map → responsiveness-probe-VJOXOK66.js.map} +0 -0
- /package/dist/{session-auth-dead-M43W63XW.js.map → session-auth-dead-T5EZNDRO.js.map} +0 -0
|
@@ -37409,7 +37409,10 @@ var FLAG_REGISTRY = [
|
|
|
37409
37409
|
// Disabling this RESTORES the shared host-wide key to every container, and
|
|
37410
37410
|
// with it the cross-agent credential read ENG-8992 closes. A credential-scope
|
|
37411
37411
|
// reduction should not be one click away without confirmation — same posture
|
|
37412
|
-
// as `github-broker-credentials
|
|
37412
|
+
// as the credential-delivery flags `github-broker-credentials` and
|
|
37413
|
+
// `xero-broker-credentials`. (This said "the OTHER credential-delivery flag"
|
|
37414
|
+
// while there was one; ENG-10939 added the second, so the singular had to go
|
|
37415
|
+
// rather than silently become a claim that github is the only sibling.)
|
|
37413
37416
|
sensitive: true,
|
|
37414
37417
|
// The reader is host-side (`hostFlagStore().getBoolean(...)` in the manager),
|
|
37415
37418
|
// so a host on an older agt-cli has no consumer code: it keeps forwarding the
|
|
@@ -38556,6 +38559,12 @@ var FLAG_REGISTRY = [
|
|
|
38556
38559
|
// are the precedent: pinned ABOVE every published release ON PURPOSE,
|
|
38557
38560
|
// labelled as a placeholder, and gated on a post-publish bisect.
|
|
38558
38561
|
//
|
|
38562
|
+
// ENG-10939: `xero-broker-credentials` is the worked example of the other
|
|
38563
|
+
// half of that convention - the bisect that DISCHARGES a placeholder. Its
|
|
38564
|
+
// `since` is a real published version read off `npm pack` tarballs, with the
|
|
38565
|
+
// markers it was bisected on written down, so the two entries together show
|
|
38566
|
+
// both states this field is allowed to be in.
|
|
38567
|
+
//
|
|
38559
38568
|
// (This cited `claudecode-agt-bin-credential-helpers` until obi-wan
|
|
38560
38569
|
// `8f9d3c43076c` pointed out no such key exists anywhere in the repo - the
|
|
38561
38570
|
// only occurrence in the tree was this citation. The precedent was real and
|
|
@@ -38959,6 +38968,22 @@ var FLAG_REGISTRY = [
|
|
|
38959
38968
|
public: true,
|
|
38960
38969
|
defaultValue: false
|
|
38961
38970
|
},
|
|
38971
|
+
{
|
|
38972
|
+
key: "ninja-lists",
|
|
38973
|
+
description: 'Ninja Lists (ADR-0120): small tables agents and people fill and review together. Gates the "Lists" nav item, the /lists pages AND the /ninja-sheets API, per org. Unlike its siblings `projects-menu` / `ninjafy-notes-menu`, this is the whole feature\'s gate, not only its menu entry: the surface is unlaunched, so an org with the flag off gets 404 from the API rather than a hidden link to a working one.',
|
|
38974
|
+
flagType: "boolean",
|
|
38975
|
+
// PUBLIC (ADR-0022 §2): the nav shells read it via usePublicBooleanFlag and
|
|
38976
|
+
// the pages via getPublicBooleanFlagServer, so it is serialized to the
|
|
38977
|
+
// client via GET /flags. The API evaluates it through getFlagClient() and
|
|
38978
|
+
// fails CLOSED on a read error. No env override (UI rollout, not an
|
|
38979
|
+
// operator gate). Ships dark (default false).
|
|
38980
|
+
public: true,
|
|
38981
|
+
defaultValue: false,
|
|
38982
|
+
// Until ADR-0120's access control exists, any member of an enabled org
|
|
38983
|
+
// reads every list in it, so an org admin must not be able to switch this
|
|
38984
|
+
// on for their own org. Only a platform admin can (PR #6522 review).
|
|
38985
|
+
platformAdminOnly: true
|
|
38986
|
+
},
|
|
38962
38987
|
{
|
|
38963
38988
|
key: "platform-maintenance-mode",
|
|
38964
38989
|
description: 'Platform-wide maintenance mode (ENG-6506): when on, every agent across every team/org auto-replies to admitted human inbound with a "we are offline for maintenance" notice instead of dispatching to the agent \u2014 for whole-platform downtime such as DB upgrades. Read host-side per inbound from the flags cache (no MCP restart). Boolean gate; ships dark \u2014 when off, channels behave exactly as today. (Proactive "back online" follow-up is the ENG-6508 fast-follow, not this flag.)',
|
|
@@ -39322,6 +39347,56 @@ var FLAG_REGISTRY = [
|
|
|
39322
39347
|
// flips); shipping a guessed number is not.
|
|
39323
39348
|
since: "0.29.0"
|
|
39324
39349
|
},
|
|
39350
|
+
{
|
|
39351
|
+
key: "xero-broker-credentials",
|
|
39352
|
+
description: 'Deliver the Xero OAuth access token to the vendor Xero MCP server through the broker credential endpoint at USE time, instead of materializing it onto the agent host at spawn (ENG-10939, step 1 of the Xero lockdown ENG-10927). Mechanically the sibling of `github-broker-credentials`; the REASON and the cost of a bad flip are both different. ON: POST /host/agent-integrations strips `access_token`, `refresh_token` and `token_expires_at` from the xero row and marks it credential_delivery=broker, so XERO_ACCESS_TOKEN stops being written to .env.integrations. Nothing replaces it host-side and nothing needs to: the vendor MCP server has fetched a fresh token per call from POST /host/agent-integrations/:id/credential since ENG-4920, and `brokerMode` is true for every install carrying an id - so XERO_CLIENT_BEARER_TOKEN: ${XERO_ACCESS_TOKEN} is already not emitted and no dangling reference is left behind. `granted_scopes` and `read_only` are deliberately KEPT: they are consent metadata the host reports scope drift from, not credentials. OFF (default): byte-for-byte today\'s behaviour. WHY THIS IS NOT THE GITHUB FLAG. For github, an under-`since` host on a flipped flag LOSES `git`/`gh` - an outage. For xero the equivalent host LEAKS: before ENG-10939 the ENG-8344 broker guard was a loop-level `continue` that also skipped the config-derived env vars, so a broker-marked xero row dropped XERO_TENANT_ID, and per ENG-4898 the vendor MCP server then falls back to `tenants[0]` - a CROSS-TENANT DATA LEAK with no error anywhere. The dangerous fleet is therefore an INTERVAL, not "old hosts", and BOTH edges are bisected from published tarballs rather than named by issue: below agt-cli 0.28.508 a host carries no `credentialDelivery` handling at all, so it ignores the marker and is SAFE; from 0.28.508 up to (not including) 0.28.1015 it honours the marker with the WIDE skip and LEAKS; at 0.28.1015 and above the skip is narrowed and the behaviour is correct. `since` is a lower bound, so it classifies BOTH ends of that interval as `stale` and cannot tell a safe pre-0.28.508 host from a leaking-middle one. THE FLIP GATE IS THEREFORE NOT "the modal shows reach": it is zero xero-bearing hosts below 0.28.1015 per hosts.agt_version, counting NULL and stale as UNCONVERGED (the heartbeat writes that column conditionally on presence, so a host that stopped reporting keeps its last value - the async-export-rollout pattern). AND A SECOND GATE THE MODAL CANNOT SEE AT ALL: the rewritten Xero skills (ENG-10961) must be live in the catalog AND have reached hosts BEFORE this is flipped. Reversed, a host has no token while its own skills still tell it to read one - a silent read outage with no error at the write site. The catalog reaches prod through `pnpm db:catalog:seed` on deploy, not through the code deploy itself, so "merged" is not "live". EXPECTED ON FLIP DAY, so it is not a surprise: the payload shrinks, so computeIntegrationsHash moves once and XERO_ACCESS_TOKEN reads present->absent in the env diff. That does NOT respawn the session. `liveProxyTokenVars` collects AGT_REMOTE_MCP_TOKEN_VAR from .mcp.json (= XERO_ACCESS_TOKEN in broker mode) and the manager filters it out of `respawnVars` BY NAME, kind-blind - so a removal is exempt on exactly the same line a rotation is (ENG-8264). The ENG-5318 child-kill path is likewise unreachable, because broker mode never emits the ${XERO_ACCESS_TOKEN} reference the stale-mcp-reaper keys on. Both restart paths that touch this var are already quiet. Evaluated API-side only, per agent, in POST /host/agent-integrations. The host does not read this flag - it keys off the resulting credential_delivery marker - so there is deliberately NO host-side envVar that could put the token back on its own. Roll back from the flag.',
|
|
39353
|
+
flagType: "boolean",
|
|
39354
|
+
// Declared safe value is `false` = today's env delivery. Fail-safe here is
|
|
39355
|
+
// not symmetrical with github's: OFF leaves a credential on the host (bad,
|
|
39356
|
+
// but the status quo this epic is closing), while a wrongly-ON flip on an
|
|
39357
|
+
// under-`since` host LEAKS ANOTHER TENANT'S DATA. `false` is still the right
|
|
39358
|
+
// default, because the ON path is the one with a reach precondition — but
|
|
39359
|
+
// the reason is "do not arm this until the fleet is measured", not "a flag
|
|
39360
|
+
// blip must not break the agent".
|
|
39361
|
+
defaultValue: false,
|
|
39362
|
+
// Flipping ON changes how every Xero agent on the scope authenticates, and
|
|
39363
|
+
// on an unconverged host it is a cross-tenant leak rather than an outage. A
|
|
39364
|
+
// deliberate, confirmed action (ADR-0022 §4).
|
|
39365
|
+
sensitive: true,
|
|
39366
|
+
// A REAL bisected threshold, not the placeholder `github-broker-credentials`
|
|
39367
|
+
// and `per-agent-host-credentials` had to ship with: the host-side code this
|
|
39368
|
+
// flag depends on (ENG-10939 item 0, narrowing the ENG-8344 broker guard so
|
|
39369
|
+
// it skips the CREDENTIAL and not the whole row's config) landed in PR #6443
|
|
39370
|
+
// and has already published.
|
|
39371
|
+
//
|
|
39372
|
+
// Read off the published tarballs rather than inferred from the merge
|
|
39373
|
+
// timestamp. #6443 merged at 2026-09-24T01:54:41Z; 0.28.1015 published at
|
|
39374
|
+
// 01:59:23Z. `npm pack` of 0.28.1013/1014/1015/1016 + grep of the extracted
|
|
39375
|
+
// bundle agrees in both directions on four independent markers:
|
|
39376
|
+
// 0.28.1014 — `writeTokenFile` present (4 files), `isRespawnExemptEnvVar`
|
|
39377
|
+
// and `RESPAWN_EXEMPT_CONFIG_TAILS` absent, and the only
|
|
39378
|
+
// broker-guard spelling is `credentialDelivery === "broker"`
|
|
39379
|
+
// (the wide skip).
|
|
39380
|
+
// 0.28.1015 — `writeTokenFile` gone, both new exports present, and
|
|
39381
|
+
// `credentialDelivery !== "broker"` (the narrowed block form)
|
|
39382
|
+
// appears for the first time.
|
|
39383
|
+
// The `!==` form is the one that matters: it is the guard that keeps
|
|
39384
|
+
// XERO_TENANT_ID on a broker-marked row, i.e. the thing whose absence is the
|
|
39385
|
+
// ENG-4898 leak.
|
|
39386
|
+
//
|
|
39387
|
+
// The interval's OTHER edge was bisected the same way, so the description
|
|
39388
|
+
// above can name a version instead of an issue: `credentialDelivery` appears
|
|
39389
|
+
// in no file of 0.28.507 and in five files of 0.28.508, so ENG-8344's marker
|
|
39390
|
+
// handling first shipped in 0.28.508. A host below that is genuinely safe
|
|
39391
|
+
// rather than merely old — it has no code to honour the marker with.
|
|
39392
|
+
//
|
|
39393
|
+
// Same caveat as every other `since` in this registry: it is ADVISORY. It is
|
|
39394
|
+
// read only by `computeFlagReach` behind GET /flags/admin/reach, so it
|
|
39395
|
+
// changes what an operator is TOLD and does not stop a flip on an
|
|
39396
|
+
// under-`since` host. What holds the line is `defaultValue: false`, plus
|
|
39397
|
+
// `sensitive: true`, plus the two gates spelled out in the description.
|
|
39398
|
+
since: "0.28.1015"
|
|
39399
|
+
},
|
|
39325
39400
|
{
|
|
39326
39401
|
key: "help-kb-auto-grant",
|
|
39327
39402
|
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).",
|
|
@@ -65,8 +65,8 @@ import {
|
|
|
65
65
|
writeDirectChatSessionState,
|
|
66
66
|
writeEgressAllowlist,
|
|
67
67
|
writePersistentClaudeWrapper
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-GLOCISGD.js";
|
|
69
|
+
import "./chunk-NCIGLRCL.js";
|
|
70
70
|
import "./chunk-TQDIIS3X.js";
|
|
71
71
|
import "./chunk-XWVM4KPK.js";
|
|
72
72
|
import "./chunk-EL5MWGGH.js";
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
writeEgressAllowlist,
|
|
140
140
|
writePersistentClaudeWrapper
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=persistent-session-
|
|
142
|
+
//# sourceMappingURL=persistent-session-TOIMQIAU.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GLOCISGD.js";
|
|
4
|
+
import "./chunk-NCIGLRCL.js";
|
|
5
5
|
import "./chunk-TQDIIS3X.js";
|
|
6
6
|
import "./chunk-XWVM4KPK.js";
|
|
7
7
|
import "./chunk-EL5MWGGH.js";
|
|
@@ -802,4 +802,4 @@ export {
|
|
|
802
802
|
readAndResetSlackReplyBindingClassifications,
|
|
803
803
|
readAndResetSlackReplyTargetClassifications
|
|
804
804
|
};
|
|
805
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
805
|
+
//# sourceMappingURL=responsiveness-probe-VJOXOK66.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NCIGLRCL.js";
|
|
4
4
|
import "./chunk-DGUM43GV.js";
|
|
5
5
|
|
|
6
6
|
// src/lib/session-auth-dead.ts
|
|
@@ -204,4 +204,4 @@ export {
|
|
|
204
204
|
decideSessionAuthState,
|
|
205
205
|
probeSessionAuth
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=session-auth-dead-
|
|
207
|
+
//# sourceMappingURL=session-auth-dead-T5EZNDRO.js.map
|