@integrity-labs/agt-cli 0.28.1306 → 0.28.1308
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-W53BBB2B.js → api-client-QHGAABOL.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-K5SXTDKK.js → chunk-GZT7DHPV.js} +3 -3
- package/dist/{chunk-7V53KRPM.js → chunk-HMH4EOV5.js} +5 -5
- package/dist/{chunk-I6HGFJNX.js → chunk-JZOA4A3J.js} +2 -2
- package/dist/{chunk-GLX5CD6S.js → chunk-NXTNYNNV.js} +2 -2
- package/dist/{chunk-PT3QK5ZP.js → chunk-VSJUMNQ5.js} +115 -13
- package/dist/chunk-VSJUMNQ5.js.map +1 -0
- package/dist/{chunk-4KSUIAI4.js → chunk-WW2CTOEO.js} +9 -73
- package/dist/chunk-WW2CTOEO.js.map +1 -0
- package/dist/{claude-code-updater-KA4VMUWK.js → claude-code-updater-OU4AEM5Y.js} +3 -3
- package/dist/{claude-pair-runtime-MC3K2BXU.js → claude-pair-runtime-H7A7ZOEW.js} +3 -3
- package/dist/lib/manager-worker.js +674 -223
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +8 -72
- package/dist/mcp/index.js +18 -73
- package/dist/mcp/origami.js +8 -72
- package/dist/mcp/slack-channel.js +111 -180
- package/dist/mcp/telegram-channel.js +8 -72
- package/dist/{persistent-session-ZC4XAUTS.js → persistent-session-OUCTECWP.js} +20 -4
- package/dist/{responsiveness-probe-TA47HG3A.js → responsiveness-probe-SC72APRB.js} +4 -4
- package/dist/{session-auth-dead-MDZWPSED.js → session-auth-dead-MQR2SLW5.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-4KSUIAI4.js.map +0 -1
- package/dist/chunk-PT3QK5ZP.js.map +0 -1
- /package/dist/{api-client-W53BBB2B.js.map → api-client-QHGAABOL.js.map} +0 -0
- /package/dist/{chunk-K5SXTDKK.js.map → chunk-GZT7DHPV.js.map} +0 -0
- /package/dist/{chunk-7V53KRPM.js.map → chunk-HMH4EOV5.js.map} +0 -0
- /package/dist/{chunk-I6HGFJNX.js.map → chunk-JZOA4A3J.js.map} +0 -0
- /package/dist/{chunk-GLX5CD6S.js.map → chunk-NXTNYNNV.js.map} +0 -0
- /package/dist/{claude-code-updater-KA4VMUWK.js.map → claude-code-updater-OU4AEM5Y.js.map} +0 -0
- /package/dist/{claude-pair-runtime-MC3K2BXU.js.map → claude-pair-runtime-H7A7ZOEW.js.map} +0 -0
- /package/dist/{persistent-session-ZC4XAUTS.js.map → persistent-session-OUCTECWP.js.map} +0 -0
- /package/dist/{responsiveness-probe-TA47HG3A.js.map → responsiveness-probe-SC72APRB.js.map} +0 -0
- /package/dist/{session-auth-dead-MDZWPSED.js.map → session-auth-dead-MQR2SLW5.js.map} +0 -0
|
@@ -40433,6 +40433,117 @@ var GROK_VOICE_OPTIONS = [
|
|
|
40433
40433
|
...GROK_VOICE_ADDED_2026_07
|
|
40434
40434
|
];
|
|
40435
40435
|
|
|
40436
|
+
// ../core/dist/slack-mrkdwn.js
|
|
40437
|
+
function segmentByCode(text) {
|
|
40438
|
+
const segments = [];
|
|
40439
|
+
let plainStart = 0;
|
|
40440
|
+
let i = 0;
|
|
40441
|
+
const pushPlain = (end) => {
|
|
40442
|
+
if (end > plainStart)
|
|
40443
|
+
segments.push({ text: text.slice(plainStart, end), code: false });
|
|
40444
|
+
};
|
|
40445
|
+
while (i < text.length) {
|
|
40446
|
+
if (text[i] !== "`") {
|
|
40447
|
+
i += 1;
|
|
40448
|
+
continue;
|
|
40449
|
+
}
|
|
40450
|
+
let backslashes = 0;
|
|
40451
|
+
for (let j = i - 1; j >= 0 && text[j] === "\\"; j -= 1)
|
|
40452
|
+
backslashes += 1;
|
|
40453
|
+
if (backslashes % 2 === 1) {
|
|
40454
|
+
i += 1;
|
|
40455
|
+
continue;
|
|
40456
|
+
}
|
|
40457
|
+
let runLen = 1;
|
|
40458
|
+
while (text[i + runLen] === "`")
|
|
40459
|
+
runLen += 1;
|
|
40460
|
+
if (runLen >= 3) {
|
|
40461
|
+
const close = text.indexOf("```", i + runLen);
|
|
40462
|
+
const end2 = close === -1 ? text.length : close + 3;
|
|
40463
|
+
pushPlain(i);
|
|
40464
|
+
segments.push({ text: text.slice(i, end2), code: true });
|
|
40465
|
+
plainStart = end2;
|
|
40466
|
+
i = end2;
|
|
40467
|
+
continue;
|
|
40468
|
+
}
|
|
40469
|
+
const afterOpen = i + runLen;
|
|
40470
|
+
const lineEnd = text.indexOf("\n", afterOpen);
|
|
40471
|
+
const windowEnd = lineEnd === -1 ? text.length : lineEnd;
|
|
40472
|
+
const closeIdx = text.slice(afterOpen, windowEnd).indexOf("`".repeat(runLen));
|
|
40473
|
+
if (closeIdx === -1) {
|
|
40474
|
+
i = afterOpen;
|
|
40475
|
+
continue;
|
|
40476
|
+
}
|
|
40477
|
+
const end = afterOpen + closeIdx + runLen;
|
|
40478
|
+
pushPlain(i);
|
|
40479
|
+
segments.push({ text: text.slice(i, end), code: true });
|
|
40480
|
+
plainStart = end;
|
|
40481
|
+
i = end;
|
|
40482
|
+
}
|
|
40483
|
+
pushPlain(text.length);
|
|
40484
|
+
return segments;
|
|
40485
|
+
}
|
|
40486
|
+
var TARGET = String.raw`(<[^<>]*>|[^()\s]+(?:\([^()\s]*\)[^()\s]*)*)`;
|
|
40487
|
+
var TITLE = String.raw`(?:\s+"[^"]*")?`;
|
|
40488
|
+
var WHOLE_LINE_BLANK_IMAGE = new RegExp(String.raw`^[ \t]*!\[[ \t]*\]\(\s*${TARGET}${TITLE}\s*\)[ \t]*\r?\n?`, "gm");
|
|
40489
|
+
var INLINE_BLANK_IMAGE = new RegExp(String.raw`!\[[ \t]*\]\(\s*${TARGET}${TITLE}\s*\)[ \t]*`, "g");
|
|
40490
|
+
var IMAGE = new RegExp(String.raw`!\[([^\]]*)\]\(\s*${TARGET}${TITLE}\s*\)`, "g");
|
|
40491
|
+
var LINK = new RegExp(String.raw`(?<!!)\[([^\]]*)\]\(\s*${TARGET}${TITLE}\s*\)`, "g");
|
|
40492
|
+
function normalizeTarget(raw) {
|
|
40493
|
+
let url = raw.trim();
|
|
40494
|
+
const slackWrapped = /^<(https?:\/\/[^|>\s]+)(?:\|[^>]*)?>$/i.exec(url);
|
|
40495
|
+
if (slackWrapped?.[1]) {
|
|
40496
|
+
url = slackWrapped[1];
|
|
40497
|
+
} else if (url.startsWith("<") && url.endsWith(">")) {
|
|
40498
|
+
url = url.slice(1, -1).trim();
|
|
40499
|
+
}
|
|
40500
|
+
if (!/^(?:https?:\/\/|mailto:)/i.test(url))
|
|
40501
|
+
return null;
|
|
40502
|
+
if (/[\s<>|]/.test(url))
|
|
40503
|
+
return null;
|
|
40504
|
+
return url;
|
|
40505
|
+
}
|
|
40506
|
+
function escapeLabel(label) {
|
|
40507
|
+
return label.trim().replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
40508
|
+
}
|
|
40509
|
+
function convertProse(input, tally) {
|
|
40510
|
+
let out = input;
|
|
40511
|
+
out = out.replace(WHOLE_LINE_BLANK_IMAGE, () => {
|
|
40512
|
+
tally.images += 1;
|
|
40513
|
+
return "";
|
|
40514
|
+
});
|
|
40515
|
+
out = out.replace(INLINE_BLANK_IMAGE, () => {
|
|
40516
|
+
tally.images += 1;
|
|
40517
|
+
return "";
|
|
40518
|
+
});
|
|
40519
|
+
out = out.replace(IMAGE, (match, alt, target) => {
|
|
40520
|
+
const label = escapeLabel(alt);
|
|
40521
|
+
const url = normalizeTarget(target);
|
|
40522
|
+
tally.images += 1;
|
|
40523
|
+
if (!url)
|
|
40524
|
+
return label;
|
|
40525
|
+
return `<${url}|${label}>`;
|
|
40526
|
+
});
|
|
40527
|
+
out = out.replace(LINK, (match, label, target) => {
|
|
40528
|
+
const url = normalizeTarget(target);
|
|
40529
|
+
if (!url)
|
|
40530
|
+
return match;
|
|
40531
|
+
tally.links += 1;
|
|
40532
|
+
const clean = escapeLabel(label);
|
|
40533
|
+
return clean ? `<${url}|${clean}>` : url;
|
|
40534
|
+
});
|
|
40535
|
+
return out;
|
|
40536
|
+
}
|
|
40537
|
+
function markdownToMrkdwn(text) {
|
|
40538
|
+
if (!text || !text.includes("](")) {
|
|
40539
|
+
return { text, converted: false, links: 0, images: 0 };
|
|
40540
|
+
}
|
|
40541
|
+
const tally = { links: 0, images: 0 };
|
|
40542
|
+
const out = segmentByCode(text).map((segment) => segment.code ? segment.text : convertProse(segment.text, tally)).join("");
|
|
40543
|
+
const converted = tally.links > 0 || tally.images > 0;
|
|
40544
|
+
return { text: converted ? out : text, converted, links: tally.links, images: tally.images };
|
|
40545
|
+
}
|
|
40546
|
+
|
|
40436
40547
|
// ../core/dist/scheduled-tasks/prompt-wrapper.js
|
|
40437
40548
|
var PREAMBLE_HEAD = [
|
|
40438
40549
|
"[SCHEDULED TASK \u2014 EXECUTION MODE]",
|
|
@@ -44139,78 +44250,6 @@ var FLAG_REGISTRY = [
|
|
|
44139
44250
|
// must never be serialized into the browser map.
|
|
44140
44251
|
defaultValue: false
|
|
44141
44252
|
},
|
|
44142
|
-
{
|
|
44143
|
-
key: "agent-unified-screen",
|
|
44144
|
-
description: 'Unified agent screen redesign (ENG-8478 epic / ENG-8480). When ON, the webapp renders the new single-screen "viewing is editing" agent surface (stripped-back hero, working agent switcher, inline-editable profile, embedded operational panels + a live direct-chat drawer) in place of the separate agent view/edit pages; when OFF, the current view/edit pages are unchanged. Additive UI gate \u2014 no data-model change: each panel reads the same existing endpoints the current pages use. Composes independently with app-top-nav-shell (the two flags are reconciled in ENG-8488). NO LONGER DARK: ENG-9832 cutover step 1 flipped the default to true, so an org with no override now gets the unified screen. The key survives only until cutover step 2 deletes it \u2014 which is blocked on ENG-8547 and ENG-8559, because the flag-off branch is still the only home for the /edit tabs.',
|
|
44145
|
-
flagType: "boolean",
|
|
44146
|
-
// ENG-9832 (cutover step 1): flipped `false` -> `true`. The comment this
|
|
44147
|
-
// replaces called `false` the safe direction — "the current view/edit
|
|
44148
|
-
// pages", never "a half-built redesign". That was true while the redesign
|
|
44149
|
-
// was half built. It has been the shipped surface for the pilot orgs since
|
|
44150
|
-
// ENG-8481, so `false` now points at the pages being retired, not at safety.
|
|
44151
|
-
// The old rationale is recorded rather than deleted because it was correct
|
|
44152
|
-
// under a premise that has since expired.
|
|
44153
|
-
//
|
|
44154
|
-
// MIND THE SPLIT. This value is consulted by the API evaluator when it
|
|
44155
|
-
// builds the `GET /flags` map for an org with NO override. It is NOT the
|
|
44156
|
-
// fallback the webapp uses when that fetch fails: `getPublicBooleanFlagServer`
|
|
44157
|
-
// and `usePublicBooleanFlag` both return the argument passed at the CALL
|
|
44158
|
-
// SITE and never consult this registry. Three call sites carry `true` to
|
|
44159
|
-
// match — agents/[agentId]/page.tsx, agents/[agentId]/edit/page.tsx and
|
|
44160
|
-
// `useAgentUnifiedScreenEnabled` in lib/redesign-flags.ts. Flipping the
|
|
44161
|
-
// registry alone leaves the cutover half-applied with no error anywhere;
|
|
44162
|
-
// eng-9832-unified-fallback-parity.test.ts fails if any of the three drifts.
|
|
44163
|
-
defaultValue: true,
|
|
44164
|
-
// Read BOTH server-side (agents/[agentId]/page.tsx and its /edit sibling, via
|
|
44165
|
-
// getPublicBooleanFlagServer) and client-side (dashboard-sherlock-shell.tsx,
|
|
44166
|
-
// via usePublicBooleanFlag), so the key must be in the browser-exposed public
|
|
44167
|
-
// map. Additive viewer gate, resolved within the active-org cookie's scope
|
|
44168
|
-
// — not sensitive.
|
|
44169
|
-
//
|
|
44170
|
-
// `public` MUST STAY until step 2 deletes the key, and the reason reads
|
|
44171
|
-
// backwards: the server helper resolves against the very SAME public-filtered
|
|
44172
|
-
// `GET /flags` the browser uses (routes/flags.ts filters to
|
|
44173
|
-
// listPublicFlagKeys()). Drop `public` and the key is simply absent from the
|
|
44174
|
-
// map, so both server readers fall through to their call-site argument
|
|
44175
|
-
// forever — silently, with no error raised anywhere.
|
|
44176
|
-
public: true
|
|
44177
|
-
},
|
|
44178
|
-
{
|
|
44179
|
-
key: "app-top-nav-shell",
|
|
44180
|
-
description: "Global top-navigation shell redesign (ENG-8478 epic / ENG-8486). When ON, the dashboard chrome replaces the left sidebar with a top navigation bar (team switcher \xB7 destinations \xB7 command palette + account) so the left side is free for an agent-scoped rail; when OFF, the existing left sidebar is unchanged. Additive layout gate \u2014 no data-model change. Composes independently with agent-unified-screen (the two flags are reconciled in ENG-8488). NO LONGER DARK: ENG-9831 cutover step 1 flipped the default to true, so an org with no override now gets the top-nav shell. The key survives only until cutover step 2 deletes it.",
|
|
44181
|
-
flagType: "boolean",
|
|
44182
|
-
// ENG-9831 (cutover step 1): flipped `false` -> `true`. The comment this
|
|
44183
|
-
// replaces called `false` the fail-closed direction — "the shell that ships
|
|
44184
|
-
// today". That was true while the sidebar was the shell that shipped; the
|
|
44185
|
-
// top nav is now the one being cut over to, so `false` points at the layout
|
|
44186
|
-
// being retired. The old rationale is recorded rather than deleted because
|
|
44187
|
-
// it was correct under a premise that has expired.
|
|
44188
|
-
//
|
|
44189
|
-
// NOTE the same split as ninjafy-brand below: this value is consulted by the
|
|
44190
|
-
// API evaluator when building the `GET /flags` map for an org with no
|
|
44191
|
-
// override. It is NOT the fallback the webapp uses on an outage — that is
|
|
44192
|
-
// the argument passed at the call site. Four call sites carry `true` to
|
|
44193
|
-
// match: (dashboard)/layout.tsx and the three legacy redirect hubs
|
|
44194
|
-
// (settings, team, organization/settings). Flipping the registry alone
|
|
44195
|
-
// leaves the cutover half-applied.
|
|
44196
|
-
defaultValue: true,
|
|
44197
|
-
// ENG-9831: NO LONGER read client-side. It was — via usePublicBooleanFlag in
|
|
44198
|
-
// sidebar.tsx (twice) and top-nav.tsx — and that is precisely what this
|
|
44199
|
-
// slice removed: a client hook starts at its default and corrects after an
|
|
44200
|
-
// async GET /flags, so the console painted the sidebar and then replaced the
|
|
44201
|
-
// WHOLE dashboard chrome after hydration. The ENG-8858/ENG-9227 flash at
|
|
44202
|
-
// layout scale. It is now resolved once server-side in (dashboard)/
|
|
44203
|
-
// layout.tsx and passed to both shells as a required prop.
|
|
44204
|
-
//
|
|
44205
|
-
// `public` MUST STAY ANYWAY — the same trap documented on ninjafy-brand.
|
|
44206
|
-
// getPublicBooleanFlagServer resolves against the very same public-filtered
|
|
44207
|
-
// `GET /flags` the browser uses (routes/flags.ts filters to
|
|
44208
|
-
// listPublicFlagKeys()). Drop `public` and the key is simply absent from the
|
|
44209
|
-
// map, the server helper falls through to its default forever, and every org
|
|
44210
|
-
// silently gets whatever that default happens to be with no error anywhere.
|
|
44211
|
-
// `public` means "readable through the public map", not "read by a browser".
|
|
44212
|
-
public: true
|
|
44213
|
-
},
|
|
44214
44253
|
{
|
|
44215
44254
|
key: "ninjafy-brand",
|
|
44216
44255
|
description: 'Present the product under the Ninjafy brand instead of Augmented Team (ENG-8250). This is the UMBRELLA brand gate, not a one-off nav toggle: every subsequent rebrand surface (page titles, email templates, marketing-facing copy) reads THIS key rather than adding its own flag, so the whole rebrand keeps a single kill switch. First surface is the left-hand nav wordmark \u2014 ON replaces the human+robot mark and the "augmented.team" text with italic lowercase "ninjafy"; OFF renders exactly what shipped before. Scope is the USER-FACING BRAND PRESENTATION \u2014 text AND VISUAL THEME. ENG-8858 widened this from text alone: the Ninjafy palette is gated here too, because a colour theme is not text. It stays ONE key rather than gaining a `ninjafy-theme` sibling, so a half-branded state \u2014 ninjafy wordmark over Augmented green \u2014 is unreachable and the rebrand keeps a single kill switch. It must never gate a code identifier, package name, env var or CLI name. EXISTING identifiers stay `Augmented`/`agt` per the CLAUDE.md naming contract, which protects them from premature renaming \u2014 the deep rename is workstream C of docs/runbooks/rebrand-ninjafy-migration.md and is out of scope here. That contract does NOT require NEW code to carry the old brand: artefacts created specifically for the rebrand take Ninjafy naming (ENG-8078 decision 9; see the CLAUDE.md rebrand carve-out). Either way it is a naming rule, not a flag concern \u2014 this key gates presentation, never an identifier. Set the stage-wide default to flip a whole environment, or add a feature_flag_overrides row to pilot a subset while everyone else still sees Augmented. Overrides resolve at FOUR grains, most specific first \u2014 agent, team, host, then org-wide (evaluate.ts:79-81); organization_id is always required, so there is no global override. Org and team are the useful pilot grains for THIS flag: there is now exactly ONE consumer \u2014 (dashboard)/layout.tsx via getPublicBooleanFlagServer \u2014 evaluating in the active-org cookie scope, so a host- or agent-scoped row is accepted by the table but never reached by the console. It resolves the key ONCE per request and passes the boolean down to sidebar.tsx and top-nav.tsx as a required prop. Resolution is SERVER-side deliberately: the client hook starts at its default and updates after an async GET /flags, so anything gated on it paints Augmented and then repaints. ENG-8858 moved the PALETTE for that reason (a full-page colour flash); ENG-9227 moved the WORDMARK, which had been the last surface still swapping after hydration. A consequence worth knowing: /login and the marketing routes stay on the Augmented palette whatever an org sets, because fetchPublicFlags returns null without a verified session and a pre-auth page has neither a session nor an active org \u2014 a PER-ORG flag structurally cannot brand one. ENG-9830 CORRECTS what used to be written here ("those surfaces follow only when the stage-wide default flips"): they do not follow it at all. Two reasons. The value returned on a null fetch is the CALL SITE\u2019s passed argument, not this registry default; and six such pages (/login, /reset-password, /auth/confirm, the pre-redeem member-signin gate and the two public Slack-install terminal pages) do not mount <BrandStamp/> AT ALL \u2014 deliberately, enumerated with per-page reasons in eng-9266-brand-stamp-coverage.test.ts. They become branded when the flag is REMOVED at cutover step 2 and the palette moves into bare :root, with no read left to gate it. NO LONGER DARK: ENG-9830 cutover step 1 flipped the default to true, so an org with no override now sees Ninjafy. The key survives only until cutover step 2 deletes it.',
|
|
@@ -47212,114 +47251,6 @@ function emitUrlAsteriskStripTelemetry(channel, count = 0) {
|
|
|
47212
47251
|
}
|
|
47213
47252
|
|
|
47214
47253
|
// src/markdown-to-mrkdwn.ts
|
|
47215
|
-
function segmentByCode(text) {
|
|
47216
|
-
const segments = [];
|
|
47217
|
-
let plainStart = 0;
|
|
47218
|
-
let i = 0;
|
|
47219
|
-
const pushPlain = (end) => {
|
|
47220
|
-
if (end > plainStart) segments.push({ text: text.slice(plainStart, end), code: false });
|
|
47221
|
-
};
|
|
47222
|
-
while (i < text.length) {
|
|
47223
|
-
if (text[i] !== "`") {
|
|
47224
|
-
i += 1;
|
|
47225
|
-
continue;
|
|
47226
|
-
}
|
|
47227
|
-
let backslashes = 0;
|
|
47228
|
-
for (let j = i - 1; j >= 0 && text[j] === "\\"; j -= 1) backslashes += 1;
|
|
47229
|
-
if (backslashes % 2 === 1) {
|
|
47230
|
-
i += 1;
|
|
47231
|
-
continue;
|
|
47232
|
-
}
|
|
47233
|
-
let runLen = 1;
|
|
47234
|
-
while (text[i + runLen] === "`") runLen += 1;
|
|
47235
|
-
if (runLen >= 3) {
|
|
47236
|
-
const close = text.indexOf("```", i + runLen);
|
|
47237
|
-
const end2 = close === -1 ? text.length : close + 3;
|
|
47238
|
-
pushPlain(i);
|
|
47239
|
-
segments.push({ text: text.slice(i, end2), code: true });
|
|
47240
|
-
plainStart = end2;
|
|
47241
|
-
i = end2;
|
|
47242
|
-
continue;
|
|
47243
|
-
}
|
|
47244
|
-
const afterOpen = i + runLen;
|
|
47245
|
-
const lineEnd = text.indexOf("\n", afterOpen);
|
|
47246
|
-
const windowEnd = lineEnd === -1 ? text.length : lineEnd;
|
|
47247
|
-
const closeIdx = text.slice(afterOpen, windowEnd).indexOf("`".repeat(runLen));
|
|
47248
|
-
if (closeIdx === -1) {
|
|
47249
|
-
i = afterOpen;
|
|
47250
|
-
continue;
|
|
47251
|
-
}
|
|
47252
|
-
const end = afterOpen + closeIdx + runLen;
|
|
47253
|
-
pushPlain(i);
|
|
47254
|
-
segments.push({ text: text.slice(i, end), code: true });
|
|
47255
|
-
plainStart = end;
|
|
47256
|
-
i = end;
|
|
47257
|
-
}
|
|
47258
|
-
pushPlain(text.length);
|
|
47259
|
-
return segments;
|
|
47260
|
-
}
|
|
47261
|
-
var TARGET = String.raw`(<[^<>]*>|[^()\s]+(?:\([^()\s]*\)[^()\s]*)*)`;
|
|
47262
|
-
var TITLE = String.raw`(?:\s+"[^"]*")?`;
|
|
47263
|
-
var WHOLE_LINE_BLANK_IMAGE = new RegExp(
|
|
47264
|
-
String.raw`^[ \t]*!\[[ \t]*\]\(\s*${TARGET}${TITLE}\s*\)[ \t]*\r?\n?`,
|
|
47265
|
-
"gm"
|
|
47266
|
-
);
|
|
47267
|
-
var INLINE_BLANK_IMAGE = new RegExp(
|
|
47268
|
-
String.raw`!\[[ \t]*\]\(\s*${TARGET}${TITLE}\s*\)[ \t]*`,
|
|
47269
|
-
"g"
|
|
47270
|
-
);
|
|
47271
|
-
var IMAGE = new RegExp(String.raw`!\[([^\]]*)\]\(\s*${TARGET}${TITLE}\s*\)`, "g");
|
|
47272
|
-
var LINK = new RegExp(String.raw`(?<!!)\[([^\]]*)\]\(\s*${TARGET}${TITLE}\s*\)`, "g");
|
|
47273
|
-
function normalizeTarget(raw) {
|
|
47274
|
-
let url = raw.trim();
|
|
47275
|
-
const slackWrapped = /^<(https?:\/\/[^|>\s]+)(?:\|[^>]*)?>$/i.exec(url);
|
|
47276
|
-
if (slackWrapped?.[1]) {
|
|
47277
|
-
url = slackWrapped[1];
|
|
47278
|
-
} else if (url.startsWith("<") && url.endsWith(">")) {
|
|
47279
|
-
url = url.slice(1, -1).trim();
|
|
47280
|
-
}
|
|
47281
|
-
if (!/^(?:https?:\/\/|mailto:)/i.test(url)) return null;
|
|
47282
|
-
if (/[\s<>|]/.test(url)) return null;
|
|
47283
|
-
return url;
|
|
47284
|
-
}
|
|
47285
|
-
function escapeLabel(label) {
|
|
47286
|
-
return label.trim().replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
47287
|
-
}
|
|
47288
|
-
function convertProse(input, tally) {
|
|
47289
|
-
let out = input;
|
|
47290
|
-
out = out.replace(WHOLE_LINE_BLANK_IMAGE, () => {
|
|
47291
|
-
tally.images += 1;
|
|
47292
|
-
return "";
|
|
47293
|
-
});
|
|
47294
|
-
out = out.replace(INLINE_BLANK_IMAGE, () => {
|
|
47295
|
-
tally.images += 1;
|
|
47296
|
-
return "";
|
|
47297
|
-
});
|
|
47298
|
-
out = out.replace(IMAGE, (match, alt, target) => {
|
|
47299
|
-
const label = escapeLabel(alt);
|
|
47300
|
-
const url = normalizeTarget(target);
|
|
47301
|
-
tally.images += 1;
|
|
47302
|
-
if (!url) return label;
|
|
47303
|
-
return `<${url}|${label}>`;
|
|
47304
|
-
});
|
|
47305
|
-
out = out.replace(LINK, (match, label, target) => {
|
|
47306
|
-
const url = normalizeTarget(target);
|
|
47307
|
-
if (!url) return match;
|
|
47308
|
-
tally.links += 1;
|
|
47309
|
-
const clean = escapeLabel(label);
|
|
47310
|
-
return clean ? `<${url}|${clean}>` : url;
|
|
47311
|
-
});
|
|
47312
|
-
return out;
|
|
47313
|
-
}
|
|
47314
|
-
function markdownToMrkdwn(text) {
|
|
47315
|
-
if (!text || !text.includes("](")) {
|
|
47316
|
-
return { text, converted: false, links: 0, images: 0 };
|
|
47317
|
-
}
|
|
47318
|
-
const tally = { links: 0, images: 0 };
|
|
47319
|
-
const out = segmentByCode(text).map((segment) => segment.code ? segment.text : convertProse(segment.text, tally)).join("");
|
|
47320
|
-
const converted = tally.links > 0 || tally.images > 0;
|
|
47321
|
-
return { text: converted ? out : text, converted, links: tally.links, images: tally.images };
|
|
47322
|
-
}
|
|
47323
47254
|
function emitMarkdownToMrkdwnTelemetry(channel, links = 0, images = 0) {
|
|
47324
47255
|
const agentCode = process.env.AGT_AGENT_CODE_NAME ?? "unknown";
|
|
47325
47256
|
try {
|
|
@@ -40899,6 +40899,14 @@ var GROK_VOICE_OPTIONS = [
|
|
|
40899
40899
|
...GROK_VOICE_ADDED_2026_07
|
|
40900
40900
|
];
|
|
40901
40901
|
|
|
40902
|
+
// ../core/dist/slack-mrkdwn.js
|
|
40903
|
+
var TARGET = String.raw`(<[^<>]*>|[^()\s]+(?:\([^()\s]*\)[^()\s]*)*)`;
|
|
40904
|
+
var TITLE = String.raw`(?:\s+"[^"]*")?`;
|
|
40905
|
+
var WHOLE_LINE_BLANK_IMAGE = new RegExp(String.raw`^[ \t]*!\[[ \t]*\]\(\s*${TARGET}${TITLE}\s*\)[ \t]*\r?\n?`, "gm");
|
|
40906
|
+
var INLINE_BLANK_IMAGE = new RegExp(String.raw`!\[[ \t]*\]\(\s*${TARGET}${TITLE}\s*\)[ \t]*`, "g");
|
|
40907
|
+
var IMAGE = new RegExp(String.raw`!\[([^\]]*)\]\(\s*${TARGET}${TITLE}\s*\)`, "g");
|
|
40908
|
+
var LINK = new RegExp(String.raw`(?<!!)\[([^\]]*)\]\(\s*${TARGET}${TITLE}\s*\)`, "g");
|
|
40909
|
+
|
|
40902
40910
|
// ../core/dist/scheduled-tasks/prompt-wrapper.js
|
|
40903
40911
|
var PREAMBLE_HEAD = [
|
|
40904
40912
|
"[SCHEDULED TASK \u2014 EXECUTION MODE]",
|
|
@@ -44605,78 +44613,6 @@ var FLAG_REGISTRY = [
|
|
|
44605
44613
|
// must never be serialized into the browser map.
|
|
44606
44614
|
defaultValue: false
|
|
44607
44615
|
},
|
|
44608
|
-
{
|
|
44609
|
-
key: "agent-unified-screen",
|
|
44610
|
-
description: 'Unified agent screen redesign (ENG-8478 epic / ENG-8480). When ON, the webapp renders the new single-screen "viewing is editing" agent surface (stripped-back hero, working agent switcher, inline-editable profile, embedded operational panels + a live direct-chat drawer) in place of the separate agent view/edit pages; when OFF, the current view/edit pages are unchanged. Additive UI gate \u2014 no data-model change: each panel reads the same existing endpoints the current pages use. Composes independently with app-top-nav-shell (the two flags are reconciled in ENG-8488). NO LONGER DARK: ENG-9832 cutover step 1 flipped the default to true, so an org with no override now gets the unified screen. The key survives only until cutover step 2 deletes it \u2014 which is blocked on ENG-8547 and ENG-8559, because the flag-off branch is still the only home for the /edit tabs.',
|
|
44611
|
-
flagType: "boolean",
|
|
44612
|
-
// ENG-9832 (cutover step 1): flipped `false` -> `true`. The comment this
|
|
44613
|
-
// replaces called `false` the safe direction — "the current view/edit
|
|
44614
|
-
// pages", never "a half-built redesign". That was true while the redesign
|
|
44615
|
-
// was half built. It has been the shipped surface for the pilot orgs since
|
|
44616
|
-
// ENG-8481, so `false` now points at the pages being retired, not at safety.
|
|
44617
|
-
// The old rationale is recorded rather than deleted because it was correct
|
|
44618
|
-
// under a premise that has since expired.
|
|
44619
|
-
//
|
|
44620
|
-
// MIND THE SPLIT. This value is consulted by the API evaluator when it
|
|
44621
|
-
// builds the `GET /flags` map for an org with NO override. It is NOT the
|
|
44622
|
-
// fallback the webapp uses when that fetch fails: `getPublicBooleanFlagServer`
|
|
44623
|
-
// and `usePublicBooleanFlag` both return the argument passed at the CALL
|
|
44624
|
-
// SITE and never consult this registry. Three call sites carry `true` to
|
|
44625
|
-
// match — agents/[agentId]/page.tsx, agents/[agentId]/edit/page.tsx and
|
|
44626
|
-
// `useAgentUnifiedScreenEnabled` in lib/redesign-flags.ts. Flipping the
|
|
44627
|
-
// registry alone leaves the cutover half-applied with no error anywhere;
|
|
44628
|
-
// eng-9832-unified-fallback-parity.test.ts fails if any of the three drifts.
|
|
44629
|
-
defaultValue: true,
|
|
44630
|
-
// Read BOTH server-side (agents/[agentId]/page.tsx and its /edit sibling, via
|
|
44631
|
-
// getPublicBooleanFlagServer) and client-side (dashboard-sherlock-shell.tsx,
|
|
44632
|
-
// via usePublicBooleanFlag), so the key must be in the browser-exposed public
|
|
44633
|
-
// map. Additive viewer gate, resolved within the active-org cookie's scope
|
|
44634
|
-
// — not sensitive.
|
|
44635
|
-
//
|
|
44636
|
-
// `public` MUST STAY until step 2 deletes the key, and the reason reads
|
|
44637
|
-
// backwards: the server helper resolves against the very SAME public-filtered
|
|
44638
|
-
// `GET /flags` the browser uses (routes/flags.ts filters to
|
|
44639
|
-
// listPublicFlagKeys()). Drop `public` and the key is simply absent from the
|
|
44640
|
-
// map, so both server readers fall through to their call-site argument
|
|
44641
|
-
// forever — silently, with no error raised anywhere.
|
|
44642
|
-
public: true
|
|
44643
|
-
},
|
|
44644
|
-
{
|
|
44645
|
-
key: "app-top-nav-shell",
|
|
44646
|
-
description: "Global top-navigation shell redesign (ENG-8478 epic / ENG-8486). When ON, the dashboard chrome replaces the left sidebar with a top navigation bar (team switcher \xB7 destinations \xB7 command palette + account) so the left side is free for an agent-scoped rail; when OFF, the existing left sidebar is unchanged. Additive layout gate \u2014 no data-model change. Composes independently with agent-unified-screen (the two flags are reconciled in ENG-8488). NO LONGER DARK: ENG-9831 cutover step 1 flipped the default to true, so an org with no override now gets the top-nav shell. The key survives only until cutover step 2 deletes it.",
|
|
44647
|
-
flagType: "boolean",
|
|
44648
|
-
// ENG-9831 (cutover step 1): flipped `false` -> `true`. The comment this
|
|
44649
|
-
// replaces called `false` the fail-closed direction — "the shell that ships
|
|
44650
|
-
// today". That was true while the sidebar was the shell that shipped; the
|
|
44651
|
-
// top nav is now the one being cut over to, so `false` points at the layout
|
|
44652
|
-
// being retired. The old rationale is recorded rather than deleted because
|
|
44653
|
-
// it was correct under a premise that has expired.
|
|
44654
|
-
//
|
|
44655
|
-
// NOTE the same split as ninjafy-brand below: this value is consulted by the
|
|
44656
|
-
// API evaluator when building the `GET /flags` map for an org with no
|
|
44657
|
-
// override. It is NOT the fallback the webapp uses on an outage — that is
|
|
44658
|
-
// the argument passed at the call site. Four call sites carry `true` to
|
|
44659
|
-
// match: (dashboard)/layout.tsx and the three legacy redirect hubs
|
|
44660
|
-
// (settings, team, organization/settings). Flipping the registry alone
|
|
44661
|
-
// leaves the cutover half-applied.
|
|
44662
|
-
defaultValue: true,
|
|
44663
|
-
// ENG-9831: NO LONGER read client-side. It was — via usePublicBooleanFlag in
|
|
44664
|
-
// sidebar.tsx (twice) and top-nav.tsx — and that is precisely what this
|
|
44665
|
-
// slice removed: a client hook starts at its default and corrects after an
|
|
44666
|
-
// async GET /flags, so the console painted the sidebar and then replaced the
|
|
44667
|
-
// WHOLE dashboard chrome after hydration. The ENG-8858/ENG-9227 flash at
|
|
44668
|
-
// layout scale. It is now resolved once server-side in (dashboard)/
|
|
44669
|
-
// layout.tsx and passed to both shells as a required prop.
|
|
44670
|
-
//
|
|
44671
|
-
// `public` MUST STAY ANYWAY — the same trap documented on ninjafy-brand.
|
|
44672
|
-
// getPublicBooleanFlagServer resolves against the very same public-filtered
|
|
44673
|
-
// `GET /flags` the browser uses (routes/flags.ts filters to
|
|
44674
|
-
// listPublicFlagKeys()). Drop `public` and the key is simply absent from the
|
|
44675
|
-
// map, the server helper falls through to its default forever, and every org
|
|
44676
|
-
// silently gets whatever that default happens to be with no error anywhere.
|
|
44677
|
-
// `public` means "readable through the public map", not "read by a browser".
|
|
44678
|
-
public: true
|
|
44679
|
-
},
|
|
44680
44616
|
{
|
|
44681
44617
|
key: "ninjafy-brand",
|
|
44682
44618
|
description: 'Present the product under the Ninjafy brand instead of Augmented Team (ENG-8250). This is the UMBRELLA brand gate, not a one-off nav toggle: every subsequent rebrand surface (page titles, email templates, marketing-facing copy) reads THIS key rather than adding its own flag, so the whole rebrand keeps a single kill switch. First surface is the left-hand nav wordmark \u2014 ON replaces the human+robot mark and the "augmented.team" text with italic lowercase "ninjafy"; OFF renders exactly what shipped before. Scope is the USER-FACING BRAND PRESENTATION \u2014 text AND VISUAL THEME. ENG-8858 widened this from text alone: the Ninjafy palette is gated here too, because a colour theme is not text. It stays ONE key rather than gaining a `ninjafy-theme` sibling, so a half-branded state \u2014 ninjafy wordmark over Augmented green \u2014 is unreachable and the rebrand keeps a single kill switch. It must never gate a code identifier, package name, env var or CLI name. EXISTING identifiers stay `Augmented`/`agt` per the CLAUDE.md naming contract, which protects them from premature renaming \u2014 the deep rename is workstream C of docs/runbooks/rebrand-ninjafy-migration.md and is out of scope here. That contract does NOT require NEW code to carry the old brand: artefacts created specifically for the rebrand take Ninjafy naming (ENG-8078 decision 9; see the CLAUDE.md rebrand carve-out). Either way it is a naming rule, not a flag concern \u2014 this key gates presentation, never an identifier. Set the stage-wide default to flip a whole environment, or add a feature_flag_overrides row to pilot a subset while everyone else still sees Augmented. Overrides resolve at FOUR grains, most specific first \u2014 agent, team, host, then org-wide (evaluate.ts:79-81); organization_id is always required, so there is no global override. Org and team are the useful pilot grains for THIS flag: there is now exactly ONE consumer \u2014 (dashboard)/layout.tsx via getPublicBooleanFlagServer \u2014 evaluating in the active-org cookie scope, so a host- or agent-scoped row is accepted by the table but never reached by the console. It resolves the key ONCE per request and passes the boolean down to sidebar.tsx and top-nav.tsx as a required prop. Resolution is SERVER-side deliberately: the client hook starts at its default and updates after an async GET /flags, so anything gated on it paints Augmented and then repaints. ENG-8858 moved the PALETTE for that reason (a full-page colour flash); ENG-9227 moved the WORDMARK, which had been the last surface still swapping after hydration. A consequence worth knowing: /login and the marketing routes stay on the Augmented palette whatever an org sets, because fetchPublicFlags returns null without a verified session and a pre-auth page has neither a session nor an active org \u2014 a PER-ORG flag structurally cannot brand one. ENG-9830 CORRECTS what used to be written here ("those surfaces follow only when the stage-wide default flips"): they do not follow it at all. Two reasons. The value returned on a null fetch is the CALL SITE\u2019s passed argument, not this registry default; and six such pages (/login, /reset-password, /auth/confirm, the pre-redeem member-signin gate and the two public Slack-install terminal pages) do not mount <BrandStamp/> AT ALL \u2014 deliberately, enumerated with per-page reasons in eng-9266-brand-stamp-coverage.test.ts. They become branded when the flag is REMOVED at cutover step 2 and the palette moves into bare :root, with no read left to gate it. NO LONGER DARK: ENG-9830 cutover step 1 flipped the default to true, so an org with no override now sees Ninjafy. The key survives only until cutover step 2 deletes it.',
|
|
@@ -3,7 +3,9 @@ import {
|
|
|
3
3
|
CLAUDE_MANAGED_SETTINGS_DIR,
|
|
4
4
|
CLAUDE_NULLED_FILES,
|
|
5
5
|
CLAUDE_PER_AGENT_DIRS,
|
|
6
|
+
DOCKER_READINESS_RETRY_MS,
|
|
6
7
|
EGRESS_BASELINE_DOMAINS,
|
|
8
|
+
IsolationUnavailableError,
|
|
7
9
|
PANE_AGENT_ID_PROBE_TIMEOUT_MS,
|
|
8
10
|
REQUIRED_SPAWN_ENV,
|
|
9
11
|
SEND_KEYS_ENTER_DELAY_MS,
|
|
@@ -30,6 +32,8 @@ import {
|
|
|
30
32
|
dockerContainerStateVerdict,
|
|
31
33
|
dockerPgrepVerdict,
|
|
32
34
|
dockerRuntimeReadiness,
|
|
35
|
+
dockerStartReadiness,
|
|
36
|
+
dockerStartReadinessAsync,
|
|
33
37
|
effectiveIsolationMode,
|
|
34
38
|
egressAllowlistHostPath,
|
|
35
39
|
egressMode,
|
|
@@ -60,6 +64,7 @@ import {
|
|
|
60
64
|
probeSessionProcessOlderThan,
|
|
61
65
|
readDirectChatSessionState,
|
|
62
66
|
readPaneLogTail,
|
|
67
|
+
readinessRefreshForTests,
|
|
63
68
|
reloadEgressSidecar,
|
|
64
69
|
resetDockerRuntimeReadinessForTests,
|
|
65
70
|
resetRestartCount,
|
|
@@ -72,6 +77,9 @@ import {
|
|
|
72
77
|
rotateSessionForWedge,
|
|
73
78
|
runTmuxSpawnPlan,
|
|
74
79
|
sendToAgent,
|
|
80
|
+
setDockerAsyncProbeForTests,
|
|
81
|
+
setDockerProbeForTests,
|
|
82
|
+
setHostPathMigrationDeferral,
|
|
75
83
|
spawnBackoffMs,
|
|
76
84
|
spawnStillCurrent,
|
|
77
85
|
startPersistentSession,
|
|
@@ -87,12 +95,12 @@ import {
|
|
|
87
95
|
writeDirectChatSessionState,
|
|
88
96
|
writeEgressAllowlist,
|
|
89
97
|
writePersistentClaudeWrapper
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import "./chunk-
|
|
98
|
+
} from "./chunk-VSJUMNQ5.js";
|
|
99
|
+
import "./chunk-NXTNYNNV.js";
|
|
92
100
|
import "./chunk-XL2HPM67.js";
|
|
93
101
|
import "./chunk-6HBXEJHO.js";
|
|
94
102
|
import "./chunk-XWVM4KPK.js";
|
|
95
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-WW2CTOEO.js";
|
|
96
104
|
import "./chunk-AIUIMEUS.js";
|
|
97
105
|
import "./chunk-DGUM43GV.js";
|
|
98
106
|
export {
|
|
@@ -100,7 +108,9 @@ export {
|
|
|
100
108
|
CLAUDE_MANAGED_SETTINGS_DIR,
|
|
101
109
|
CLAUDE_NULLED_FILES,
|
|
102
110
|
CLAUDE_PER_AGENT_DIRS,
|
|
111
|
+
DOCKER_READINESS_RETRY_MS,
|
|
103
112
|
EGRESS_BASELINE_DOMAINS,
|
|
113
|
+
IsolationUnavailableError,
|
|
104
114
|
PANE_AGENT_ID_PROBE_TIMEOUT_MS,
|
|
105
115
|
REQUIRED_SPAWN_ENV,
|
|
106
116
|
SEND_KEYS_ENTER_DELAY_MS,
|
|
@@ -127,6 +137,8 @@ export {
|
|
|
127
137
|
dockerContainerStateVerdict,
|
|
128
138
|
dockerPgrepVerdict,
|
|
129
139
|
dockerRuntimeReadiness,
|
|
140
|
+
dockerStartReadiness,
|
|
141
|
+
dockerStartReadinessAsync,
|
|
130
142
|
effectiveIsolationMode,
|
|
131
143
|
egressAllowlistHostPath,
|
|
132
144
|
egressMode,
|
|
@@ -157,6 +169,7 @@ export {
|
|
|
157
169
|
probeSessionProcessOlderThan,
|
|
158
170
|
readDirectChatSessionState,
|
|
159
171
|
readPaneLogTail,
|
|
172
|
+
readinessRefreshForTests,
|
|
160
173
|
reloadEgressSidecar,
|
|
161
174
|
resetDockerRuntimeReadinessForTests,
|
|
162
175
|
resetRestartCount,
|
|
@@ -169,6 +182,9 @@ export {
|
|
|
169
182
|
rotateSessionForWedge,
|
|
170
183
|
runTmuxSpawnPlan,
|
|
171
184
|
sendToAgent,
|
|
185
|
+
setDockerAsyncProbeForTests,
|
|
186
|
+
setDockerProbeForTests,
|
|
187
|
+
setHostPathMigrationDeferral,
|
|
172
188
|
spawnBackoffMs,
|
|
173
189
|
spawnStillCurrent,
|
|
174
190
|
startPersistentSession,
|
|
@@ -185,4 +201,4 @@ export {
|
|
|
185
201
|
writeEgressAllowlist,
|
|
186
202
|
writePersistentClaudeWrapper
|
|
187
203
|
};
|
|
188
|
-
//# sourceMappingURL=persistent-session-
|
|
204
|
+
//# sourceMappingURL=persistent-session-OUCTECWP.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VSJUMNQ5.js";
|
|
4
|
+
import "./chunk-NXTNYNNV.js";
|
|
5
5
|
import "./chunk-XL2HPM67.js";
|
|
6
6
|
import "./chunk-6HBXEJHO.js";
|
|
7
7
|
import "./chunk-XWVM4KPK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WW2CTOEO.js";
|
|
9
9
|
import "./chunk-AIUIMEUS.js";
|
|
10
10
|
import "./chunk-DGUM43GV.js";
|
|
11
11
|
|
|
@@ -804,4 +804,4 @@ export {
|
|
|
804
804
|
readAndResetSlackReplyBindingClassifications,
|
|
805
805
|
readAndResetSlackReplyTargetClassifications
|
|
806
806
|
};
|
|
807
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
807
|
+
//# sourceMappingURL=responsiveness-probe-SC72APRB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NXTNYNNV.js";
|
|
4
|
+
import "./chunk-WW2CTOEO.js";
|
|
5
5
|
import "./chunk-DGUM43GV.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/session-auth-dead.ts
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
decideSessionAuthState,
|
|
206
206
|
probeSessionAuth
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=session-auth-dead-
|
|
208
|
+
//# sourceMappingURL=session-auth-dead-MQR2SLW5.js.map
|