@integrity-labs/agt-cli 0.28.788 → 0.28.790
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-FHIBQZEN.js → chunk-6BD4IUWX.js} +19 -5
- package/dist/chunk-6BD4IUWX.js.map +1 -0
- package/dist/{chunk-3YXKR5EE.js → chunk-R54PIXWM.js} +4 -4
- package/dist/{chunk-I6NTKEXA.js → chunk-RDPAELV2.js} +20 -20
- package/dist/{chunk-I6NTKEXA.js.map → chunk-RDPAELV2.js.map} +1 -1
- package/dist/{claude-pair-runtime-TRBLGFOG.js → claude-pair-runtime-END3LNCB.js} +2 -2
- package/dist/lib/manager-worker.js +13 -13
- package/dist/mcp/direct-chat-channel.js +19 -19
- package/dist/mcp/index.js +56 -28
- package/dist/mcp/origami.js +19 -19
- package/dist/mcp/slack-channel.js +42 -21
- package/dist/mcp/telegram-channel.js +19 -19
- package/dist/{persistent-session-HA6QLZF4.js → persistent-session-2B2HJ6XC.js} +3 -3
- package/dist/{responsiveness-probe-4GIUJE5E.js → responsiveness-probe-7TGB5SMR.js} +3 -3
- package/dist/{session-auth-dead-NI2RI3P4.js → session-auth-dead-I2KT7CGB.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-FHIBQZEN.js.map +0 -1
- /package/dist/{chunk-3YXKR5EE.js.map → chunk-R54PIXWM.js.map} +0 -0
- /package/dist/{claude-pair-runtime-TRBLGFOG.js.map → claude-pair-runtime-END3LNCB.js.map} +0 -0
- /package/dist/{persistent-session-HA6QLZF4.js.map → persistent-session-2B2HJ6XC.js.map} +0 -0
- /package/dist/{responsiveness-probe-4GIUJE5E.js.map → responsiveness-probe-7TGB5SMR.js.map} +0 -0
- /package/dist/{session-auth-dead-NI2RI3P4.js.map → session-auth-dead-I2KT7CGB.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-R54PIXWM.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-6BD4IUWX.js";
|
|
49
49
|
import {
|
|
50
50
|
AnchorSessionClient,
|
|
51
51
|
CHANNEL_REGISTRY,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
serializeManifestForSlackCli,
|
|
80
80
|
sessionFileExists,
|
|
81
81
|
sessionTranscriptDir
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-RDPAELV2.js";
|
|
83
83
|
import "../chunk-XWVM4KPK.js";
|
|
84
84
|
|
|
85
85
|
// src/bin/agt.ts
|
|
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5467
5467
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5468
5468
|
import chalk18 from "chalk";
|
|
5469
5469
|
import ora16 from "ora";
|
|
5470
|
-
var cliVersion = true ? "0.28.
|
|
5470
|
+
var cliVersion = true ? "0.28.790" : "dev";
|
|
5471
5471
|
async function fetchLatestVersion() {
|
|
5472
5472
|
const host2 = getHost();
|
|
5473
5473
|
if (!host2) return null;
|
|
@@ -6658,7 +6658,7 @@ function handleError(err) {
|
|
|
6658
6658
|
}
|
|
6659
6659
|
|
|
6660
6660
|
// src/bin/agt.ts
|
|
6661
|
-
var cliVersion2 = true ? "0.28.
|
|
6661
|
+
var cliVersion2 = true ? "0.28.790" : "dev";
|
|
6662
6662
|
var program = new Command();
|
|
6663
6663
|
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");
|
|
6664
6664
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
rotateDailySession,
|
|
19
19
|
sessionFileExists,
|
|
20
20
|
todayLocalIso
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RDPAELV2.js";
|
|
22
22
|
import {
|
|
23
23
|
reapOrphanChannelMcps
|
|
24
24
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -182,8 +182,20 @@ function sanitizeMcpJson(mcpConfigPath, apiHost) {
|
|
|
182
182
|
|
|
183
183
|
// src/lib/claude-tools.ts
|
|
184
184
|
var BASE_TOOLS = ["Bash", "Read", "Write", "Edit", "Grep", "Glob", "Agent", "Skill", "ToolSearch"];
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
var UNREMOVABLE_TOOLS = ["Agent", "Skill", "ToolSearch"];
|
|
186
|
+
function builtinToolsForPolicy(policy) {
|
|
187
|
+
if (!policy) return null;
|
|
188
|
+
const removable = new Set(policy.remove);
|
|
189
|
+
for (const keep of UNREMOVABLE_TOOLS) removable.delete(keep);
|
|
190
|
+
if (removable.size === 0) return null;
|
|
191
|
+
const kept = BASE_TOOLS.filter((t) => !removable.has(t));
|
|
192
|
+
return kept.join(",");
|
|
193
|
+
}
|
|
194
|
+
function buildAllowedTools(mcpServerNames, policy) {
|
|
195
|
+
const removable = new Set(policy?.remove ?? []);
|
|
196
|
+
for (const keep of UNREMOVABLE_TOOLS) removable.delete(keep);
|
|
197
|
+
const builtins = BASE_TOOLS.filter((t) => !removable.has(t));
|
|
198
|
+
return [...mcpWildcardsForServers(mcpServerNames), ...builtins].join(",");
|
|
187
199
|
}
|
|
188
200
|
|
|
189
201
|
// src/lib/mcp-env-probe.ts
|
|
@@ -4177,7 +4189,9 @@ function spawnSession(config, session) {
|
|
|
4177
4189
|
args.push("--strict-mcp-config");
|
|
4178
4190
|
args.push("--name", tmuxSession);
|
|
4179
4191
|
const mcpServerNames = collectMcpServerNames(mcpConfigPath);
|
|
4180
|
-
args.push("--allowedTools", buildAllowedTools(mcpServerNames));
|
|
4192
|
+
args.push("--allowedTools", buildAllowedTools(mcpServerNames, config.toolPolicy));
|
|
4193
|
+
const builtinTools = builtinToolsForPolicy(config.toolPolicy);
|
|
4194
|
+
if (builtinTools !== null) args.push("--tools", builtinTools);
|
|
4181
4195
|
const initPrompt = resuming ? "" : 'You are now online. Say "Ready." and wait for incoming messages. Do not run any tools or load any data until a message arrives.';
|
|
4182
4196
|
const claudeBin = resolveClaudeBinary();
|
|
4183
4197
|
const claudeArgsJoined = args.map((a) => a.includes(" ") || a.includes("*") ? JSON.stringify(a) : a).join(" ");
|
|
@@ -5141,4 +5155,4 @@ export {
|
|
|
5141
5155
|
stopAllSessionsAndWait,
|
|
5142
5156
|
getProjectDir
|
|
5143
5157
|
};
|
|
5144
|
-
//# sourceMappingURL=chunk-
|
|
5158
|
+
//# sourceMappingURL=chunk-6BD4IUWX.js.map
|