@integrity-labs/agt-cli 0.28.808 → 0.28.810
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-LLR42RME.js → chunk-2D242AQK.js} +4 -4
- package/dist/{chunk-SWUBTUYM.js → chunk-GBSP65E7.js} +49 -10
- package/dist/chunk-GBSP65E7.js.map +1 -0
- package/dist/{chunk-TLPQULYH.js → chunk-SBRKT2AV.js} +2 -2
- package/dist/{claude-pair-runtime-FUT7SLRJ.js → claude-pair-runtime-WAXQINIW.js} +2 -2
- package/dist/lib/manager-worker.js +13 -13
- package/dist/mcp/direct-chat-channel.js +48 -9
- package/dist/mcp/index.js +17929 -17685
- package/dist/mcp/origami.js +48 -9
- package/dist/mcp/slack-channel.js +48 -9
- package/dist/mcp/telegram-channel.js +48 -9
- package/dist/{persistent-session-Q23JIYBR.js → persistent-session-LYJCGKH3.js} +3 -3
- package/dist/{responsiveness-probe-T2I27SCG.js → responsiveness-probe-XRSACVMN.js} +3 -3
- package/dist/{session-auth-dead-O7DBSJ3W.js → session-auth-dead-Y6MASYWN.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-SWUBTUYM.js.map +0 -1
- /package/dist/{chunk-LLR42RME.js.map → chunk-2D242AQK.js.map} +0 -0
- /package/dist/{chunk-TLPQULYH.js.map → chunk-SBRKT2AV.js.map} +0 -0
- /package/dist/{claude-pair-runtime-FUT7SLRJ.js.map → claude-pair-runtime-WAXQINIW.js.map} +0 -0
- /package/dist/{persistent-session-Q23JIYBR.js.map → persistent-session-LYJCGKH3.js.map} +0 -0
- /package/dist/{responsiveness-probe-T2I27SCG.js.map → responsiveness-probe-XRSACVMN.js.map} +0 -0
- /package/dist/{session-auth-dead-O7DBSJ3W.js.map → session-auth-dead-Y6MASYWN.js.map} +0 -0
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
rotateDailySession,
|
|
19
19
|
sessionFileExists,
|
|
20
20
|
todayLocalIso
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GBSP65E7.js";
|
|
22
22
|
import {
|
|
23
23
|
reapOrphanChannelMcps
|
|
24
24
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -5209,4 +5209,4 @@ export {
|
|
|
5209
5209
|
stopAllSessionsAndWait,
|
|
5210
5210
|
getProjectDir
|
|
5211
5211
|
};
|
|
5212
|
-
//# sourceMappingURL=chunk-
|
|
5212
|
+
//# sourceMappingURL=chunk-SBRKT2AV.js.map
|
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-LYJCGKH3.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-WAXQINIW.js.map
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
safeWriteJsonAtomic,
|
|
59
59
|
setConfigHash,
|
|
60
60
|
tripClass
|
|
61
|
-
} from "../chunk-
|
|
61
|
+
} from "../chunk-2D242AQK.js";
|
|
62
62
|
import {
|
|
63
63
|
getProjectDir as getProjectDir2,
|
|
64
64
|
getReadyTasks,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
takeZombieDetection,
|
|
124
124
|
toOpencodeModel,
|
|
125
125
|
writeEgressAllowlist
|
|
126
|
-
} from "../chunk-
|
|
126
|
+
} from "../chunk-SBRKT2AV.js";
|
|
127
127
|
import {
|
|
128
128
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
129
129
|
AnchorSessionClient,
|
|
@@ -215,7 +215,7 @@ import {
|
|
|
215
215
|
subagentActivityAgeSeconds,
|
|
216
216
|
sumTranscriptUsageInWindow,
|
|
217
217
|
transcriptActivityAgeSeconds
|
|
218
|
-
} from "../chunk-
|
|
218
|
+
} from "../chunk-GBSP65E7.js";
|
|
219
219
|
import {
|
|
220
220
|
reapOrphanChannelMcps
|
|
221
221
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -12918,7 +12918,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
12918
12918
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
12919
12919
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
12920
12920
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
12921
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
12921
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-XRSACVMN.js");
|
|
12922
12922
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
12923
12923
|
if (newest === null) return null;
|
|
12924
12924
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13578,7 +13578,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13578
13578
|
var lastVersionCheckAt = 0;
|
|
13579
13579
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13580
13580
|
var lastResponsivenessProbeAt = 0;
|
|
13581
|
-
var agtCliVersion = true ? "0.28.
|
|
13581
|
+
var agtCliVersion = true ? "0.28.810" : "dev";
|
|
13582
13582
|
function resolveBrewPath(execFileSync2) {
|
|
13583
13583
|
try {
|
|
13584
13584
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15125,7 +15125,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15125
15125
|
if (codeNames.length === 0) return;
|
|
15126
15126
|
void (async () => {
|
|
15127
15127
|
try {
|
|
15128
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15128
|
+
const { collectDiagnostics } = await import("../persistent-session-LYJCGKH3.js");
|
|
15129
15129
|
await api.post("/host/heartbeat", {
|
|
15130
15130
|
host_id: hostId,
|
|
15131
15131
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15266,7 +15266,7 @@ async function pollCycleInner() {
|
|
|
15266
15266
|
}
|
|
15267
15267
|
try {
|
|
15268
15268
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15269
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15269
|
+
const { collectDiagnostics } = await import("../persistent-session-LYJCGKH3.js");
|
|
15270
15270
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15271
15271
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15272
15272
|
let tailscaleHostname;
|
|
@@ -15435,7 +15435,7 @@ async function pollCycleInner() {
|
|
|
15435
15435
|
collectPanelessActivityProbes,
|
|
15436
15436
|
getResponsivenessIntervalMs,
|
|
15437
15437
|
occupancyQualificationClassifications
|
|
15438
|
-
} = await import("../responsiveness-probe-
|
|
15438
|
+
} = await import("../responsiveness-probe-XRSACVMN.js");
|
|
15439
15439
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15440
15440
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15441
15441
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15552,7 +15552,7 @@ async function pollCycleInner() {
|
|
|
15552
15552
|
collectResponsivenessProbes,
|
|
15553
15553
|
livePendingInboundOldestAgeSeconds,
|
|
15554
15554
|
parkPendingInbound
|
|
15555
|
-
} = await import("../responsiveness-probe-
|
|
15555
|
+
} = await import("../responsiveness-probe-XRSACVMN.js");
|
|
15556
15556
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15557
15557
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15558
15558
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -15708,7 +15708,7 @@ async function pollCycleInner() {
|
|
|
15708
15708
|
}
|
|
15709
15709
|
try {
|
|
15710
15710
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
15711
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
15711
|
+
const { probeSessionAuth } = await import("../session-auth-dead-Y6MASYWN.js");
|
|
15712
15712
|
const observations = [];
|
|
15713
15713
|
const pendingCacheCommits = [];
|
|
15714
15714
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -19868,7 +19868,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
19868
19868
|
void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
|
|
19869
19869
|
void (async () => {
|
|
19870
19870
|
try {
|
|
19871
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19871
|
+
const { collectDiagnostics } = await import("../persistent-session-LYJCGKH3.js");
|
|
19872
19872
|
await api.post("/host/heartbeat", {
|
|
19873
19873
|
host_id: hostId,
|
|
19874
19874
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -19914,7 +19914,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
19914
19914
|
}
|
|
19915
19915
|
try {
|
|
19916
19916
|
const hostId = await getHostId();
|
|
19917
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19917
|
+
const { collectDiagnostics } = await import("../persistent-session-LYJCGKH3.js");
|
|
19918
19918
|
await api.post("/host/heartbeat", {
|
|
19919
19919
|
host_id: hostId,
|
|
19920
19920
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20550,7 +20550,7 @@ async function processClaudePairSessions(agents) {
|
|
|
20550
20550
|
killPairSession,
|
|
20551
20551
|
pairTmuxSession,
|
|
20552
20552
|
finalizeClaudePairOnboarding
|
|
20553
|
-
} = await import("../claude-pair-runtime-
|
|
20553
|
+
} = await import("../claude-pair-runtime-WAXQINIW.js");
|
|
20554
20554
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
20555
20555
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
20556
20556
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
|
@@ -33806,7 +33806,15 @@ var INTEGRATION_REGISTRY = [
|
|
|
33806
33806
|
// integration_rate_cards; this only declares the model + meter.
|
|
33807
33807
|
premium: {
|
|
33808
33808
|
pricing: "usage",
|
|
33809
|
-
|
|
33809
|
+
// THE OPT-IN AUTHORISES BOTH METERS, SO THE NOTE NAMES BOTH (ENG-9913).
|
|
33810
|
+
// This string is the point of sale — it renders in the add-integration
|
|
33811
|
+
// dialog an org admin reads before opting in — and it described only
|
|
33812
|
+
// `voice_session` while the same opt-in, and the same $50 pool, had also
|
|
33813
|
+
// covered Ninja Notes cloud transcription since ENG-9870. "Of audio"
|
|
33814
|
+
// rather than "of meeting" is load-bearing: the two capture sources post
|
|
33815
|
+
// independently, so an hour-long meeting on default settings spends two
|
|
33816
|
+
// audio-hours (ADR-0063 §2a).
|
|
33817
|
+
note: "Billed per minute of real-time voice conversation, and per hour of audio for Ninja Notes cloud transcription \u2014 both against the same monthly budget.",
|
|
33810
33818
|
meters: [
|
|
33811
33819
|
{ event_type: "voice_session", unit: "minute" },
|
|
33812
33820
|
// ENG-9870. Ninja Notes cloud transcription, on the SAME definition id
|
|
@@ -33818,16 +33826,24 @@ var INTEGRATION_REGISTRY = [
|
|
|
33818
33826
|
// `audio_hour`, not `minute`. The vendor prices per hour and the sell
|
|
33819
33827
|
// price is per hour, so hours store exactly (50 minor) where minutes
|
|
33820
33828
|
// would be 0.8333 repeating; `integration_usage_events.units` is
|
|
33821
|
-
// `numeric`, so
|
|
33829
|
+
// `numeric`, so 30 minutes of audio records 0.5 units precisely. This
|
|
33822
33830
|
// is the answer to ENG-9773 §10.1's open question about whether hours
|
|
33823
33831
|
// convert to minutes or the vocabulary gains hours.
|
|
33824
33832
|
//
|
|
33825
|
-
//
|
|
33826
|
-
//
|
|
33827
|
-
//
|
|
33828
|
-
//
|
|
33829
|
-
//
|
|
33830
|
-
//
|
|
33833
|
+
// AN AUDIO-HOUR IS NOT A MEETING-HOUR (ENG-9913, Brad, 2026-09-03). The
|
|
33834
|
+
// Mac captures system audio and the microphone as two independent
|
|
33835
|
+
// pipelines that post separately, and both default on, so the ordinary
|
|
33836
|
+
// meeting records two units per wall-clock hour. That is deliberate: the
|
|
33837
|
+
// audio-hour is what we buy, since xAI bills on the duration uploaded.
|
|
33838
|
+
// Pricing per meeting-hour would have varied the markup with a capture
|
|
33839
|
+
// toggle and could only have been built on a client's assertion about
|
|
33840
|
+
// how many pipelines were live. See ADR-0063 §2a.
|
|
33841
|
+
//
|
|
33842
|
+
// THE CHOKEPOINT EXISTS NOW — `POST /notes/transcribe` (ENG-9913)
|
|
33843
|
+
// reserves against this meter before the vendor call, from the bytes it
|
|
33844
|
+
// received. The rate card still had to land first, in ENG-9870: a
|
|
33845
|
+
// billable event with no USD rate makes `evaluateUsageBudget` throw, and
|
|
33846
|
+
// on a SHARED pool that would break Voice Chat's budget check too.
|
|
33831
33847
|
{ event_type: "transcription", unit: "audio_hour" }
|
|
33832
33848
|
]
|
|
33833
33849
|
}
|
|
@@ -34724,7 +34740,18 @@ var INTEGRATION_REGISTRY = [
|
|
|
34724
34740
|
// premium surface — is the structurally right answer and the follow-up.
|
|
34725
34741
|
premium: {
|
|
34726
34742
|
pricing: "included",
|
|
34727
|
-
|
|
34743
|
+
// "THE ONE EXCEPTION" BECAME TWO (ENG-9913). Cloud transcription is the
|
|
34744
|
+
// second metered capability under this integration, and this sentence was
|
|
34745
|
+
// true only for as long as its flag stayed off — it would have become
|
|
34746
|
+
// false on arming, silently, in a consent dialog. Both exceptions are
|
|
34747
|
+
// written the same way, and both are still off until someone turns them
|
|
34748
|
+
// on, so the sentence is accurate before and after the rollout.
|
|
34749
|
+
//
|
|
34750
|
+
// "Per hour of AUDIO" is deliberate here too: the two capture sources post
|
|
34751
|
+
// independently, so an hour-long meeting on default settings spends two
|
|
34752
|
+
// audio-hours (ADR-0063 §2a). The Mac's own caption carries the fuller
|
|
34753
|
+
// explanation, at the point where the person choosing it can read it.
|
|
34754
|
+
note: "Notes are included in your plan. Transcription runs on your own Mac by default and no platform summariser runs, so nothing is metered per note \u2014 the agent turn that reads it is billed as agent-hours like any other. Two capabilities are turned on separately and billed when they are: live meeting advising, per minute the advisor is armed; and cloud transcription, per hour of audio."
|
|
34728
34755
|
}
|
|
34729
34756
|
},
|
|
34730
34757
|
{
|
|
@@ -37671,6 +37698,18 @@ var FLAG_REGISTRY = [
|
|
|
37671
37698
|
// agent-hours-billing-enabled.
|
|
37672
37699
|
sensitive: true
|
|
37673
37700
|
},
|
|
37701
|
+
{
|
|
37702
|
+
key: "cloud-speech-to-text",
|
|
37703
|
+
description: 'Cloud transcription in Ninja Notes (ENG-9913). When ON for an org, a person recording a meeting on the Mac may choose to have each capture window transcribed by xAI instead of on-device: the window is POSTed to /notes/transcribe, proxied to xAI with the platform key, metered as grok-voice/transcription per audio_hour, and the text comes back with no speaker labels. THIS IS OUR ROLLOUT GATE AND IT IS THE THIRD KEY, NOT THE FIRST. Three things must all be true before a window leaves the Mac: the org holds the grok-voice premium opt-in (authorisation, resolveCloudSttEntitlement), the user has elected it per-install (consent, CaptureSettings.cloudTranscriptionEnabled), and this flag is on (our own readiness). Without this flag the first two alone were sufficient, which is why it exists: resolveCloudSttEntitlement reports enabled for every org that ever bought Voice Chat, so the route would go live for all of them the moment it deployed. It is what finally lets the server emit `not_available` \u2014 CloudTranscriptionRefusal.notRolledOut has shipped since ENG-9869 carrying the sentence "Cloud transcription is not available for your organisation yet" with nothing able to produce it. Boolean gate; ships dark. OFF NEVER COSTS THE RECORDING. An org without the flag \u2014 or a flag read that fails \u2014 transcribes on-device exactly as before; the microphone still starts and the note is still transcribed and delivered. Same direction as live-meeting-advisor and for the same reason: the user pressed Record and a recording is what they are owed. It is also what makes rollback cheap, because flipping this off mid-flight degrades in-progress meetings to on-device rather than breaking them. Deliberately NO envVar. This is an org-scoped gate, and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing, the ENG-8303 class exactly. No `since`: the reader is the API route, not a host-side agt-cli consumer, so this does not depend on fleet convergence. The Mac client is a separate fleet that reports no version at all, which is precisely why the gate has to live server-side.',
|
|
37704
|
+
flagType: "boolean",
|
|
37705
|
+
defaultValue: false,
|
|
37706
|
+
// Turning it ON starts sending meeting audio — INCLUDING the other side of
|
|
37707
|
+
// the call, whose participants have not been asked — to a third-party
|
|
37708
|
+
// vendor, and arms a per-audio-hour meter against the org's shared
|
|
37709
|
+
// grok-voice budget. Either half alone would warrant the confirm ADR-0022
|
|
37710
|
+
// §4 reserves for deliberate, audited flips.
|
|
37711
|
+
sensitive: true
|
|
37712
|
+
},
|
|
37674
37713
|
{
|
|
37675
37714
|
key: "first-party-token-refusal",
|
|
37676
37715
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|