@integrity-labs/agt-cli 0.28.444 → 0.28.446
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-3TACGG7X.js → chunk-O25GO4PT.js} +17 -8
- package/dist/chunk-O25GO4PT.js.map +1 -0
- package/dist/{chunk-IQX7TMYZ.js → chunk-QCEQRMBX.js} +27 -6
- package/dist/chunk-QCEQRMBX.js.map +1 -0
- package/dist/{claude-pair-runtime-J3BEIXWL.js → claude-pair-runtime-RREPXSJ6.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 +19 -0
- package/dist/mcp/telegram-channel.js +19 -0
- package/dist/{persistent-session-6SCIPYQI.js → persistent-session-BE2VK74O.js} +2 -2
- package/dist/{responsiveness-probe-WHDWK62P.js → responsiveness-probe-SSJ4ONTA.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-3TACGG7X.js.map +0 -1
- package/dist/chunk-IQX7TMYZ.js.map +0 -1
- /package/dist/{claude-pair-runtime-J3BEIXWL.js.map → claude-pair-runtime-RREPXSJ6.js.map} +0 -0
- /package/dist/{persistent-session-6SCIPYQI.js.map → persistent-session-BE2VK74O.js.map} +0 -0
- /package/dist/{responsiveness-probe-WHDWK62P.js.map → responsiveness-probe-SSJ4ONTA.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-O25GO4PT.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-QCEQRMBX.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.446" : "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.446" : "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) => {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
resolveConnectivityProbe,
|
|
30
30
|
worseConnectivityOutcome,
|
|
31
31
|
wrapScheduledTaskPrompt
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QCEQRMBX.js";
|
|
33
33
|
import {
|
|
34
34
|
parsePsRows
|
|
35
35
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -3345,6 +3345,11 @@ var claudeCodeAdapter = {
|
|
|
3345
3345
|
// is the render gate for the platform-storage section's workflow rows.
|
|
3346
3346
|
hasWorkflows: input.workflows !== void 0,
|
|
3347
3347
|
integrations: integrationSummaries,
|
|
3348
|
+
// ENG-8174: gate for the `## Integrations` section only. Must match
|
|
3349
|
+
// what the manager passes to `writeIntegrations` — the two writers
|
|
3350
|
+
// target the same sentinel range, and disagreeing would have one
|
|
3351
|
+
// re-add what the other just stripped.
|
|
3352
|
+
renderIntegrationsSection: input.renderIntegrationsSection === true,
|
|
3348
3353
|
knowledge: knowledgeRefs.length > 0 ? knowledgeRefs : void 0,
|
|
3349
3354
|
timezone: input.timezone,
|
|
3350
3355
|
reportsTo: input.reportsTo,
|
|
@@ -4183,7 +4188,7 @@ ${sections}`
|
|
|
4183
4188
|
writeFileSync3(schedulesPath, JSON.stringify({ schedules: mapped }, null, 2));
|
|
4184
4189
|
return Promise.resolve();
|
|
4185
4190
|
},
|
|
4186
|
-
writeIntegrations(codeName, integrations, agentId) {
|
|
4191
|
+
writeIntegrations(codeName, integrations, agentId, options) {
|
|
4187
4192
|
const agentDir = getAgentDir(codeName);
|
|
4188
4193
|
mkdirSync2(agentDir, { recursive: true });
|
|
4189
4194
|
const summariesForSidecar = integrations.map((i) => {
|
|
@@ -4473,7 +4478,8 @@ ${sections}`
|
|
|
4473
4478
|
const claudeMdPath = join2(projectDir, "CLAUDE.md");
|
|
4474
4479
|
try {
|
|
4475
4480
|
const existing = readFileSync3(claudeMdPath, "utf-8");
|
|
4476
|
-
const
|
|
4481
|
+
const renderSection = options?.renderClaudeMdSection === true;
|
|
4482
|
+
const newSection = renderSection ? buildIntegrationsSection(summariesForSidecar) : "";
|
|
4477
4483
|
const sentinelStart = INTEGRATIONS_SECTION_START.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4478
4484
|
const sentinelEnd = INTEGRATIONS_SECTION_END.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4479
4485
|
const sentinelPattern = new RegExp(`${sentinelStart}[\\s\\S]*?${sentinelEnd}\\n*`);
|
|
@@ -4481,11 +4487,14 @@ ${sections}`
|
|
|
4481
4487
|
if (sentinelPattern.test(existing)) {
|
|
4482
4488
|
updated = existing.replace(sentinelPattern, newSection);
|
|
4483
4489
|
} else if (existing.includes("## Integrations")) {
|
|
4484
|
-
updated = existing.replace(/## Integrations[\s\S]*?(?=\n##\s|$)/, newSection.trimEnd() + "\n\n");
|
|
4485
|
-
} else {
|
|
4490
|
+
updated = existing.replace(/## Integrations[\s\S]*?(?=\n##\s|$)/, newSection ? newSection.trimEnd() + "\n\n" : "");
|
|
4491
|
+
} else if (newSection) {
|
|
4486
4492
|
updated = existing.replace("## Rules", `${newSection}## Rules`);
|
|
4493
|
+
} else {
|
|
4494
|
+
updated = existing;
|
|
4487
4495
|
}
|
|
4488
|
-
|
|
4496
|
+
if (updated !== existing)
|
|
4497
|
+
writeFileSync3(claudeMdPath, updated);
|
|
4489
4498
|
const agentDir2 = getAgentDir(codeName);
|
|
4490
4499
|
const envSrc = join2(agentDir2, ".env.integrations");
|
|
4491
4500
|
try {
|
|
@@ -4901,7 +4910,7 @@ function requireHost() {
|
|
|
4901
4910
|
}
|
|
4902
4911
|
|
|
4903
4912
|
// src/lib/api-client.ts
|
|
4904
|
-
var agtCliVersion = true ? "0.28.
|
|
4913
|
+
var agtCliVersion = true ? "0.28.446" : "dev";
|
|
4905
4914
|
var lastConfigHash = null;
|
|
4906
4915
|
function setConfigHash(hash) {
|
|
4907
4916
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -7402,4 +7411,4 @@ export {
|
|
|
7402
7411
|
managerInstallSystemUnitCommand,
|
|
7403
7412
|
managerUninstallSystemUnitCommand
|
|
7404
7413
|
};
|
|
7405
|
-
//# sourceMappingURL=chunk-
|
|
7414
|
+
//# sourceMappingURL=chunk-O25GO4PT.js.map
|