@integrity-labs/agt-cli 0.28.807 → 0.28.809
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-SHQCTBFE.js → chunk-2Z5SJMME.js} +4 -4
- package/dist/{chunk-GIV6ORI3.js → chunk-5TXNXEOF.js} +2 -2
- package/dist/{chunk-VK35F6O7.js → chunk-JNHL4KS4.js} +77 -12
- package/dist/chunk-JNHL4KS4.js.map +1 -0
- package/dist/{claude-pair-runtime-XZLX2PEL.js → claude-pair-runtime-P4R5WMUQ.js} +2 -2
- package/dist/lib/manager-worker.js +13 -13
- package/dist/mcp/direct-chat-channel.js +49 -9
- package/dist/mcp/index.js +49 -9
- package/dist/mcp/origami.js +49 -9
- package/dist/mcp/slack-channel.js +49 -9
- package/dist/mcp/telegram-channel.js +49 -9
- package/dist/{persistent-session-LEICQMWY.js → persistent-session-QYP6FYFI.js} +3 -3
- package/dist/{responsiveness-probe-WEXP254C.js → responsiveness-probe-SL2MZ3WT.js} +3 -3
- package/dist/{session-auth-dead-AROKHZET.js → session-auth-dead-VZWGAV5K.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-VK35F6O7.js.map +0 -1
- /package/dist/{chunk-SHQCTBFE.js.map → chunk-2Z5SJMME.js.map} +0 -0
- /package/dist/{chunk-GIV6ORI3.js.map → chunk-5TXNXEOF.js.map} +0 -0
- /package/dist/{claude-pair-runtime-XZLX2PEL.js.map → claude-pair-runtime-P4R5WMUQ.js.map} +0 -0
- /package/dist/{persistent-session-LEICQMWY.js.map → persistent-session-QYP6FYFI.js.map} +0 -0
- /package/dist/{responsiveness-probe-WEXP254C.js.map → responsiveness-probe-SL2MZ3WT.js.map} +0 -0
- /package/dist/{session-auth-dead-AROKHZET.js.map → session-auth-dead-VZWGAV5K.js.map} +0 -0
|
@@ -32448,6 +32448,7 @@ var CLAUDE_MD_CHARS_PER_TOKEN = 3.57;
|
|
|
32448
32448
|
var CLAUDE_MD_CONTEXT_WINDOW_TOKENS = 2e5;
|
|
32449
32449
|
var CLAUDE_MD_ALARM_SHARE = 0.1;
|
|
32450
32450
|
var CLAUDE_MD_CONTEXT_ALARM_CHARS = Math.round(CLAUDE_MD_CONTEXT_WINDOW_TOKENS * CLAUDE_MD_ALARM_SHARE * CLAUDE_MD_CHARS_PER_TOKEN);
|
|
32451
|
+
var CLAUDE_MD_WARN_INTERVAL_MS = 60 * 60 * 1e3;
|
|
32451
32452
|
|
|
32452
32453
|
// ../core/dist/integrations/context-validator.js
|
|
32453
32454
|
var import__2 = __toESM(require__(), 1);
|
|
@@ -34263,7 +34264,15 @@ var INTEGRATION_REGISTRY = [
|
|
|
34263
34264
|
// integration_rate_cards; this only declares the model + meter.
|
|
34264
34265
|
premium: {
|
|
34265
34266
|
pricing: "usage",
|
|
34266
|
-
|
|
34267
|
+
// THE OPT-IN AUTHORISES BOTH METERS, SO THE NOTE NAMES BOTH (ENG-9913).
|
|
34268
|
+
// This string is the point of sale — it renders in the add-integration
|
|
34269
|
+
// dialog an org admin reads before opting in — and it described only
|
|
34270
|
+
// `voice_session` while the same opt-in, and the same $50 pool, had also
|
|
34271
|
+
// covered Ninja Notes cloud transcription since ENG-9870. "Of audio"
|
|
34272
|
+
// rather than "of meeting" is load-bearing: the two capture sources post
|
|
34273
|
+
// independently, so an hour-long meeting on default settings spends two
|
|
34274
|
+
// audio-hours (ADR-0063 §2a).
|
|
34275
|
+
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.",
|
|
34267
34276
|
meters: [
|
|
34268
34277
|
{ event_type: "voice_session", unit: "minute" },
|
|
34269
34278
|
// ENG-9870. Ninja Notes cloud transcription, on the SAME definition id
|
|
@@ -34275,16 +34284,24 @@ var INTEGRATION_REGISTRY = [
|
|
|
34275
34284
|
// `audio_hour`, not `minute`. The vendor prices per hour and the sell
|
|
34276
34285
|
// price is per hour, so hours store exactly (50 minor) where minutes
|
|
34277
34286
|
// would be 0.8333 repeating; `integration_usage_events.units` is
|
|
34278
|
-
// `numeric`, so
|
|
34287
|
+
// `numeric`, so 30 minutes of audio records 0.5 units precisely. This
|
|
34279
34288
|
// is the answer to ENG-9773 §10.1's open question about whether hours
|
|
34280
34289
|
// convert to minutes or the vocabulary gains hours.
|
|
34281
34290
|
//
|
|
34282
|
-
//
|
|
34283
|
-
//
|
|
34284
|
-
//
|
|
34285
|
-
//
|
|
34286
|
-
//
|
|
34287
|
-
//
|
|
34291
|
+
// AN AUDIO-HOUR IS NOT A MEETING-HOUR (ENG-9913, Brad, 2026-09-03). The
|
|
34292
|
+
// Mac captures system audio and the microphone as two independent
|
|
34293
|
+
// pipelines that post separately, and both default on, so the ordinary
|
|
34294
|
+
// meeting records two units per wall-clock hour. That is deliberate: the
|
|
34295
|
+
// audio-hour is what we buy, since xAI bills on the duration uploaded.
|
|
34296
|
+
// Pricing per meeting-hour would have varied the markup with a capture
|
|
34297
|
+
// toggle and could only have been built on a client's assertion about
|
|
34298
|
+
// how many pipelines were live. See ADR-0063 §2a.
|
|
34299
|
+
//
|
|
34300
|
+
// THE CHOKEPOINT EXISTS NOW — `POST /notes/transcribe` (ENG-9913)
|
|
34301
|
+
// reserves against this meter before the vendor call, from the bytes it
|
|
34302
|
+
// received. The rate card still had to land first, in ENG-9870: a
|
|
34303
|
+
// billable event with no USD rate makes `evaluateUsageBudget` throw, and
|
|
34304
|
+
// on a SHARED pool that would break Voice Chat's budget check too.
|
|
34288
34305
|
{ event_type: "transcription", unit: "audio_hour" }
|
|
34289
34306
|
]
|
|
34290
34307
|
}
|
|
@@ -35181,7 +35198,18 @@ var INTEGRATION_REGISTRY = [
|
|
|
35181
35198
|
// premium surface — is the structurally right answer and the follow-up.
|
|
35182
35199
|
premium: {
|
|
35183
35200
|
pricing: "included",
|
|
35184
|
-
|
|
35201
|
+
// "THE ONE EXCEPTION" BECAME TWO (ENG-9913). Cloud transcription is the
|
|
35202
|
+
// second metered capability under this integration, and this sentence was
|
|
35203
|
+
// true only for as long as its flag stayed off — it would have become
|
|
35204
|
+
// false on arming, silently, in a consent dialog. Both exceptions are
|
|
35205
|
+
// written the same way, and both are still off until someone turns them
|
|
35206
|
+
// on, so the sentence is accurate before and after the rollout.
|
|
35207
|
+
//
|
|
35208
|
+
// "Per hour of AUDIO" is deliberate here too: the two capture sources post
|
|
35209
|
+
// independently, so an hour-long meeting on default settings spends two
|
|
35210
|
+
// audio-hours (ADR-0063 §2a). The Mac's own caption carries the fuller
|
|
35211
|
+
// explanation, at the point where the person choosing it can read it.
|
|
35212
|
+
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."
|
|
35185
35213
|
}
|
|
35186
35214
|
},
|
|
35187
35215
|
{
|
|
@@ -38075,6 +38103,18 @@ var FLAG_REGISTRY = [
|
|
|
38075
38103
|
// agent-hours-billing-enabled.
|
|
38076
38104
|
sensitive: true
|
|
38077
38105
|
},
|
|
38106
|
+
{
|
|
38107
|
+
key: "cloud-speech-to-text",
|
|
38108
|
+
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.',
|
|
38109
|
+
flagType: "boolean",
|
|
38110
|
+
defaultValue: false,
|
|
38111
|
+
// Turning it ON starts sending meeting audio — INCLUDING the other side of
|
|
38112
|
+
// the call, whose participants have not been asked — to a third-party
|
|
38113
|
+
// vendor, and arms a per-audio-hour meter against the org's shared
|
|
38114
|
+
// grok-voice budget. Either half alone would warrant the confirm ADR-0022
|
|
38115
|
+
// §4 reserves for deliberate, audited flips.
|
|
38116
|
+
sensitive: true
|
|
38117
|
+
},
|
|
38078
38118
|
{
|
|
38079
38119
|
key: "first-party-token-refusal",
|
|
38080
38120
|
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.",
|
|
@@ -49,8 +49,8 @@ import {
|
|
|
49
49
|
writeDirectChatSessionState,
|
|
50
50
|
writeEgressAllowlist,
|
|
51
51
|
writePersistentClaudeWrapper
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-5TXNXEOF.js";
|
|
53
|
+
import "./chunk-JNHL4KS4.js";
|
|
54
54
|
import "./chunk-XWVM4KPK.js";
|
|
55
55
|
export {
|
|
56
56
|
EGRESS_BASELINE_DOMAINS,
|
|
@@ -104,4 +104,4 @@ export {
|
|
|
104
104
|
writeEgressAllowlist,
|
|
105
105
|
writePersistentClaudeWrapper
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=persistent-session-
|
|
107
|
+
//# sourceMappingURL=persistent-session-QYP6FYFI.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5TXNXEOF.js";
|
|
4
|
+
import "./chunk-JNHL4KS4.js";
|
|
5
5
|
import "./chunk-XWVM4KPK.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/responsiveness-probe.ts
|
|
@@ -745,4 +745,4 @@ export {
|
|
|
745
745
|
readAndResetSlackReplyBindingClassifications,
|
|
746
746
|
readAndResetSlackReplyTargetClassifications
|
|
747
747
|
};
|
|
748
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
748
|
+
//# sourceMappingURL=responsiveness-probe-SL2MZ3WT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JNHL4KS4.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/session-auth-dead.ts
|
|
6
6
|
import { closeSync, openSync, readSync, readdirSync, statSync } from "fs";
|
|
@@ -203,4 +203,4 @@ export {
|
|
|
203
203
|
decideSessionAuthState,
|
|
204
204
|
probeSessionAuth
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=session-auth-dead-
|
|
206
|
+
//# sourceMappingURL=session-auth-dead-VZWGAV5K.js.map
|