@integrity-labs/agt-cli 0.28.692 → 0.28.694
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-ITB6NEXM.js → chunk-7F4RC4PU.js} +4 -4
- package/dist/{chunk-7K2I4LJZ.js → chunk-NYWCE5JH.js} +17 -7
- package/dist/chunk-NYWCE5JH.js.map +1 -0
- package/dist/{chunk-WHW747J3.js → chunk-YLADZNC5.js} +2 -2
- package/dist/chunk-YLADZNC5.js.map +1 -0
- package/dist/{claude-pair-runtime-ENI5O3JA.js → claude-pair-runtime-WRVD63Q7.js} +2 -2
- package/dist/lib/manager-worker.js +16 -16
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +6 -0
- package/dist/mcp/index.js +6 -0
- package/dist/mcp/origami.js +6 -0
- package/dist/mcp/slack-channel.js +6 -0
- package/dist/mcp/telegram-channel.js +6 -0
- package/dist/{persistent-session-42FL5BEW.js → persistent-session-WC27KXJE.js} +3 -3
- package/dist/{responsiveness-probe-RG2SD7HX.js → responsiveness-probe-V5M5OXNB.js} +3 -3
- package/dist/{session-auth-dead-SHLP7FRQ.js → session-auth-dead-TVTRCTJR.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-7K2I4LJZ.js.map +0 -1
- package/dist/chunk-WHW747J3.js.map +0 -1
- /package/dist/{chunk-ITB6NEXM.js.map → chunk-7F4RC4PU.js.map} +0 -0
- /package/dist/{claude-pair-runtime-ENI5O3JA.js.map → claude-pair-runtime-WRVD63Q7.js.map} +0 -0
- /package/dist/{persistent-session-42FL5BEW.js.map → persistent-session-WC27KXJE.js.map} +0 -0
- /package/dist/{responsiveness-probe-RG2SD7HX.js.map → responsiveness-probe-V5M5OXNB.js.map} +0 -0
- /package/dist/{session-auth-dead-SHLP7FRQ.js.map → session-auth-dead-TVTRCTJR.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-7F4RC4PU.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-YLADZNC5.js";
|
|
47
47
|
import {
|
|
48
48
|
AnchorSessionClient,
|
|
49
49
|
CHANNEL_REGISTRY,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
requiredMcpWildcard,
|
|
74
74
|
resolveChannels,
|
|
75
75
|
serializeManifestForSlackCli
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-NYWCE5JH.js";
|
|
77
77
|
import "../chunk-XWVM4KPK.js";
|
|
78
78
|
|
|
79
79
|
// src/bin/agt.ts
|
|
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4909
4909
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4910
4910
|
import chalk18 from "chalk";
|
|
4911
4911
|
import ora16 from "ora";
|
|
4912
|
-
var cliVersion = true ? "0.28.
|
|
4912
|
+
var cliVersion = true ? "0.28.694" : "dev";
|
|
4913
4913
|
async function fetchLatestVersion() {
|
|
4914
4914
|
const host2 = getHost();
|
|
4915
4915
|
if (!host2) return null;
|
|
@@ -6089,7 +6089,7 @@ function handleError(err) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
// src/bin/agt.ts
|
|
6092
|
-
var cliVersion2 = true ? "0.28.
|
|
6092
|
+
var cliVersion2 = true ? "0.28.694" : "dev";
|
|
6093
6093
|
var program = new Command();
|
|
6094
6094
|
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");
|
|
6095
6095
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
parseEnvFileEntries,
|
|
13
13
|
parseEnvIntegrations,
|
|
14
14
|
shellQuote
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YLADZNC5.js";
|
|
16
16
|
import {
|
|
17
17
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
18
18
|
INTEGRATIONS_SECTION_END,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
resolveConnectivityProbe,
|
|
60
60
|
worseConnectivityOutcome,
|
|
61
61
|
wrapScheduledTaskPrompt
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-NYWCE5JH.js";
|
|
63
63
|
import {
|
|
64
64
|
parsePsRows
|
|
65
65
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6329,7 +6329,7 @@ function exchangeFailureKind(err) {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
|
|
6331
6331
|
// src/lib/api-client.ts
|
|
6332
|
-
var agtCliVersion = true ? "0.28.
|
|
6332
|
+
var agtCliVersion = true ? "0.28.694" : "dev";
|
|
6333
6333
|
var lastConfigHash = null;
|
|
6334
6334
|
function setConfigHash(hash) {
|
|
6335
6335
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -10070,4 +10070,4 @@ export {
|
|
|
10070
10070
|
managerInstallSystemUnitCommand,
|
|
10071
10071
|
managerUninstallSystemUnitCommand
|
|
10072
10072
|
};
|
|
10073
|
-
//# sourceMappingURL=chunk-
|
|
10073
|
+
//# sourceMappingURL=chunk-7F4RC4PU.js.map
|
|
@@ -79,15 +79,24 @@ var PLATFORM_STORAGE_RULE = "Store durable, reusable work you build (repeatable
|
|
|
79
79
|
|
|
80
80
|
// ../../packages/core/dist/provisioning/frameworks/claudecode/identity.js
|
|
81
81
|
var SCRATCH_RETENTION_DAYS = 7;
|
|
82
|
-
var
|
|
82
|
+
var CLAUDE_MD_CHARS_PER_TOKEN = 3.57;
|
|
83
|
+
var CLAUDE_MD_CONTEXT_WINDOW_TOKENS = 2e5;
|
|
84
|
+
var CLAUDE_MD_ALARM_SHARE = 0.1;
|
|
83
85
|
var CLAUDE_MD_BUDGET_CHARS = 38e3;
|
|
86
|
+
var CLAUDE_MD_CONTEXT_ALARM_CHARS = Math.round(CLAUDE_MD_CONTEXT_WINDOW_TOKENS * CLAUDE_MD_ALARM_SHARE * CLAUDE_MD_CHARS_PER_TOKEN);
|
|
87
|
+
function estimateClaudeMdTokens(chars) {
|
|
88
|
+
return Math.round(chars / CLAUDE_MD_CHARS_PER_TOKEN);
|
|
89
|
+
}
|
|
84
90
|
function checkClaudeMdSize(md) {
|
|
85
91
|
const chars = md.length;
|
|
92
|
+
const tokens = estimateClaudeMdTokens(chars);
|
|
86
93
|
return {
|
|
87
94
|
chars,
|
|
88
|
-
|
|
95
|
+
tokens,
|
|
96
|
+
contextShare: tokens / CLAUDE_MD_CONTEXT_WINDOW_TOKENS,
|
|
97
|
+
ok: chars <= CLAUDE_MD_CONTEXT_ALARM_CHARS,
|
|
89
98
|
withinBudget: chars <= CLAUDE_MD_BUDGET_CHARS,
|
|
90
|
-
overBy: Math.max(0, chars -
|
|
99
|
+
overBy: Math.max(0, chars - CLAUDE_MD_CONTEXT_ALARM_CHARS)
|
|
91
100
|
};
|
|
92
101
|
}
|
|
93
102
|
function buildMemorySection(hasQmd) {
|
|
@@ -1187,8 +1196,9 @@ The marginal cost of completeness is near zero \u2014 do the whole thing.
|
|
|
1187
1196
|
- Before concluding that an agent or person doesn't exist, call \`directory_lookup\` first. Only report "not found" after the directory confirms no match. (ENG-7955)
|
|
1188
1197
|
${frontmatter.environment === "prod" ? "- Production environment: exercise extra caution with all operations.\n" : ""}`;
|
|
1189
1198
|
const size = checkClaudeMdSize(body);
|
|
1190
|
-
if (!size.
|
|
1191
|
-
|
|
1199
|
+
if (!size.withinBudget) {
|
|
1200
|
+
const share = (size.contextShare * 100).toFixed(1);
|
|
1201
|
+
console.warn(`[generateClaudeMd] CLAUDE.md for ${frontmatter.code_name} is ${size.chars} chars (~${size.tokens} tokens, ~${share}% of a ${CLAUDE_MD_CONTEXT_WINDOW_TOKENS}-token context window), over the ${CLAUDE_MD_BUDGET_CHARS}-char generator budget by ${size.chars - CLAUDE_MD_BUDGET_CHARS}${size.ok ? "" : ` \u2014 and past the ${CLAUDE_MD_CONTEXT_ALARM_CHARS}-char operational threshold`}. Nothing is truncated; this is context the agent pays for on every request. Trim the generated sections (ENG-8105 / ENG-9459).`);
|
|
1192
1202
|
}
|
|
1193
1203
|
return body;
|
|
1194
1204
|
}
|
|
@@ -12474,7 +12484,7 @@ export {
|
|
|
12474
12484
|
resolveAvatarEnvUrl,
|
|
12475
12485
|
PLATFORM_STORAGE_RULE,
|
|
12476
12486
|
SCRATCH_RETENTION_DAYS,
|
|
12477
|
-
|
|
12487
|
+
CLAUDE_MD_CONTEXT_ALARM_CHARS,
|
|
12478
12488
|
INTEGRATIONS_SECTION_START,
|
|
12479
12489
|
INTEGRATIONS_SECTION_END,
|
|
12480
12490
|
buildIntegrationsSection,
|
|
@@ -12612,4 +12622,4 @@ export {
|
|
|
12612
12622
|
minutesSinceLocalMidnight,
|
|
12613
12623
|
peekCurrentSession
|
|
12614
12624
|
};
|
|
12615
|
-
//# sourceMappingURL=chunk-
|
|
12625
|
+
//# sourceMappingURL=chunk-NYWCE5JH.js.map
|