@integrity-labs/agt-cli 0.28.443 → 0.28.445
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 +4 -4
- package/dist/{chunk-IQX7TMYZ.js → chunk-3CTWN3L4.js} +27 -6
- package/dist/chunk-3CTWN3L4.js.map +1 -0
- package/dist/{chunk-X2LHWP6E.js → chunk-H43XPGEC.js} +17 -8
- package/dist/chunk-H43XPGEC.js.map +1 -0
- package/dist/{claude-pair-runtime-J3BEIXWL.js → claude-pair-runtime-NEH45P4Y.js} +2 -2
- package/dist/lib/manager-worker.js +27 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +19 -0
- package/dist/mcp/origami.js +19 -0
- package/dist/mcp/slack-channel.js +38 -1
- package/dist/mcp/telegram-channel.js +38 -2
- package/dist/{persistent-session-6SCIPYQI.js → persistent-session-NTHAZ2LZ.js} +2 -2
- package/dist/{responsiveness-probe-WHDWK62P.js → responsiveness-probe-7FDKX4N6.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-IQX7TMYZ.js.map +0 -1
- package/dist/chunk-X2LHWP6E.js.map +0 -1
- /package/dist/{claude-pair-runtime-J3BEIXWL.js.map → claude-pair-runtime-NEH45P4Y.js.map} +0 -0
- /package/dist/{persistent-session-6SCIPYQI.js.map → persistent-session-NTHAZ2LZ.js.map} +0 -0
- /package/dist/{responsiveness-probe-WHDWK62P.js.map → responsiveness-probe-7FDKX4N6.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-H43XPGEC.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
requiredMcpWildcard,
|
|
72
72
|
resolveChannels,
|
|
73
73
|
serializeManifestForSlackCli
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-3CTWN3L4.js";
|
|
75
75
|
import "../chunk-XWVM4KPK.js";
|
|
76
76
|
|
|
77
77
|
// src/bin/agt.ts
|
|
@@ -4830,7 +4830,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4830
4830
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4831
4831
|
import chalk18 from "chalk";
|
|
4832
4832
|
import ora16 from "ora";
|
|
4833
|
-
var cliVersion = true ? "0.28.
|
|
4833
|
+
var cliVersion = true ? "0.28.445" : "dev";
|
|
4834
4834
|
async function fetchLatestVersion() {
|
|
4835
4835
|
const host2 = getHost();
|
|
4836
4836
|
if (!host2) return null;
|
|
@@ -6002,7 +6002,7 @@ function handleError(err) {
|
|
|
6002
6002
|
}
|
|
6003
6003
|
|
|
6004
6004
|
// src/bin/agt.ts
|
|
6005
|
-
var cliVersion2 = true ? "0.28.
|
|
6005
|
+
var cliVersion2 = true ? "0.28.445" : "dev";
|
|
6006
6006
|
var program = new Command();
|
|
6007
6007
|
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");
|
|
6008
6008
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -2951,7 +2951,7 @@ var PLATFORM_STORAGE_RULE = "Store durable, reusable work you build (repeatable
|
|
|
2951
2951
|
|
|
2952
2952
|
// ../../packages/core/dist/provisioning/frameworks/claudecode/identity.js
|
|
2953
2953
|
var CLAUDE_MD_MAX_CHARS = 4e4;
|
|
2954
|
-
var CLAUDE_MD_BUDGET_CHARS =
|
|
2954
|
+
var CLAUDE_MD_BUDGET_CHARS = 38e3;
|
|
2955
2955
|
function checkClaudeMdSize(md) {
|
|
2956
2956
|
const chars = md.length;
|
|
2957
2957
|
return {
|
|
@@ -3062,7 +3062,7 @@ ${INTEGRATIONS_SECTION_END}
|
|
|
3062
3062
|
|
|
3063
3063
|
`;
|
|
3064
3064
|
}
|
|
3065
|
-
function buildCapabilityPromptSection(integrations) {
|
|
3065
|
+
function buildCapabilityPromptSection(integrations, sectionRendered = false) {
|
|
3066
3066
|
const hasIntegrations = (integrations?.length ?? 0) > 0;
|
|
3067
3067
|
const library = ` - "Create a Sales/Finance/Ops dashboard with the metrics that matter most"
|
|
3068
3068
|
- "Remind me about an important task at a specific time"
|
|
@@ -3071,7 +3071,8 @@ function buildCapabilityPromptSection(integrations) {
|
|
|
3071
3071
|
- "Find context on a topic across our docs and recent conversations"
|
|
3072
3072
|
- "Run a short retro on something I'm stuck on"
|
|
3073
3073
|
- "Watch for a condition and ping me when it changes"`;
|
|
3074
|
-
const
|
|
3074
|
+
const integrationSource = sectionRendered ? `in \xA7Integrations above` : `from your installed \`integration-*\` skills and your \`mcp__augmented__*\` tools`;
|
|
3075
|
+
const integrationGuidance = hasIntegrations ? `1. **3 must be derived from your actual integrations** ${integrationSource}
|
|
3075
3076
|
\u2014 never invent ones you don't have. Name the integration and give a prompt the
|
|
3076
3077
|
user can echo back verbatim, e.g. \`Try: "Summarise our open Linear issues for me"\`.
|
|
3077
3078
|
2. **2 must come from this generic-capability library**, randomised so consecutive
|
|
@@ -3656,8 +3657,9 @@ function generateClaudeMd(input) {
|
|
|
3656
3657
|
const desc = description?.trim();
|
|
3657
3658
|
const kanbanUrl = consoleUrl ? `${consoleUrl}/agents/${frontmatter.agent_id}?tab=kanban` : null;
|
|
3658
3659
|
const memorySection = buildMemorySection(hasQmd);
|
|
3659
|
-
const
|
|
3660
|
-
const
|
|
3660
|
+
const renderIntegrations = input.renderIntegrationsSection === true;
|
|
3661
|
+
const integrationsSection = renderIntegrations ? buildIntegrationsSection(integrations) : "";
|
|
3662
|
+
const capabilityPromptSection = buildCapabilityPromptSection(integrations, renderIntegrations);
|
|
3661
3663
|
const knowledgeSection = buildKnowledgeSection(knowledge);
|
|
3662
3664
|
const kanbanWorkPolicySection = buildKanbanWorkPolicySection();
|
|
3663
3665
|
const platformStorageSection = buildPlatformStorageSection(input.hasWorkflows);
|
|
@@ -9077,6 +9079,18 @@ var FLAG_REGISTRY = [
|
|
|
9077
9079
|
// utilisation, so mutations require explicit confirmation.
|
|
9078
9080
|
sensitive: true
|
|
9079
9081
|
},
|
|
9082
|
+
{
|
|
9083
|
+
key: "account-enforcement-auto-billing",
|
|
9084
|
+
description: 'Auto-trip the ENG-7909 account-enforcement ladder on billing delinquency (the deferred auto-wire). When ON for an org, a Stripe subscription entering `past_due` (payment failed) creates an org-scoped kill_switches row at mode=warn, source=auto (agents keep running; the ladder appends the "there is an issue with your account" support notice); after the grace window (BillingEnforcementSweep, default 7d still past_due) it escalates warn\u2192mute (inbound intercepted). It NEVER auto-halts - halt stays a manual break-glass. Recovery (status back to active/trialing) clears the auto switch; a MANUAL switch is never touched. Off (default) = no auto switch is ever written, so past_due only tightens plan-cap entitlements as today. The mechanism (mode ladder, manual selector) shipped in Slices 1-3; this is the automatic trigger, so it ships dark - flip on per org from the admin Feature Flags page. Evaluated API-side only (webhook + cron); no host-side envVar (the manager materializes the resulting kill_switch, not this flag).',
|
|
9085
|
+
flagType: "boolean",
|
|
9086
|
+
// Declared safe value is `false` = no auto enforcement. Fail-safe direction: a
|
|
9087
|
+
// flag-DB read error must never start muting a customer's agents on its own.
|
|
9088
|
+
defaultValue: false,
|
|
9089
|
+
// Enforcement gate: turning it ON lets a billing event stop a customer's
|
|
9090
|
+
// inbound (mute) without an operator in the loop, so mutations require
|
|
9091
|
+
// explicit confirmation (ADR-0022 §4).
|
|
9092
|
+
sensitive: true
|
|
9093
|
+
},
|
|
9080
9094
|
{
|
|
9081
9095
|
key: "auto-pause",
|
|
9082
9096
|
description: "Auto-pause agents on sustained hourly-cost breach (ENG-5561). Boolean gate; ships dark.",
|
|
@@ -9478,6 +9492,13 @@ var FLAG_REGISTRY = [
|
|
|
9478
9492
|
defaultValue: true,
|
|
9479
9493
|
envVar: "AGT_CLAUDE_MD_SKILLS_INDEX_ENABLED"
|
|
9480
9494
|
},
|
|
9495
|
+
{
|
|
9496
|
+
key: "claude-md-integrations-section",
|
|
9497
|
+
description: "Manager injects the \"## Integrations\" bullet list (one line per installed integration, name + CLI binary + description) into the agent's project CLAUDE.md. Sibling of claude-md-skills-index and redundant for the same reason: every integration already reaches the model through a surface Claude Code presents natively - an `integration-*` skill for those that ship a skill bundle, and a dynamically-discovered MCP tool (`mcp__augmented__*`, fanned out from integration_definitions.metadata.tools via /host/mcp/tools/list) for those that do not. The list measured 2,302-3,466 chars per agent on agt-aws-1 (2026-07-27), against Claude Code's 40,000-char CLAUDE.md ceiling. Defaults OFF (ENG-8174), which also codifies the observed steady state: the section survives only ~3 minutes after each integration sync before the next provisioning pass strips it (ENG-8170), so the fleet has effectively been running without it - flip ON per org only to restore the list.",
|
|
9498
|
+
flagType: "boolean",
|
|
9499
|
+
defaultValue: false,
|
|
9500
|
+
envVar: "AGT_CLAUDE_MD_INTEGRATIONS_SECTION_ENABLED"
|
|
9501
|
+
},
|
|
9481
9502
|
{
|
|
9482
9503
|
key: "wedge-transient-notice",
|
|
9483
9504
|
description: 'When a wedge-respawn was preceded by a transient LLM-API error (529/429/503/500 that exhausted its retries and wedged the turn), the manager writes the ENG-6058 give-up signal tagged reason=transient_overload so the channel sweeps post a friendly "I hit a brief overload \u2014 please resend" notice instead of leaving the user in silence (ENG-7360, extends ENG-6861 to the retry-exhaustion + wedge path). Boolean gate; ships dark \u2014 channel-visible copy soaks per host before going wide.',
|
|
@@ -14292,4 +14313,4 @@ export {
|
|
|
14292
14313
|
stopAllSessionsAndWait,
|
|
14293
14314
|
getProjectDir
|
|
14294
14315
|
};
|
|
14295
|
-
//# sourceMappingURL=chunk-
|
|
14316
|
+
//# sourceMappingURL=chunk-3CTWN3L4.js.map
|