@integrity-labs/agt-cli 0.28.964 → 0.28.965
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-JCAQEJYK.js → chunk-3XZNMC4V.js} +4 -4
- package/dist/{chunk-WVOB2TIP.js → chunk-J6S2H54R.js} +2 -2
- package/dist/{chunk-SMZQHDO7.js → chunk-PWPE62DF.js} +85 -1
- package/dist/chunk-PWPE62DF.js.map +1 -0
- package/dist/{claude-pair-runtime-QEVUC7L4.js → claude-pair-runtime-O7CZKXDK.js} +2 -2
- package/dist/lib/manager-worker.js +16 -94
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +13 -15
- package/dist/mcp/slack-channel.js +2 -0
- package/dist/mcp/teams-channel.js +2 -0
- package/dist/mcp/telegram-channel.js +2 -0
- package/dist/{persistent-session-TZO2JPCC.js → persistent-session-BGZAGJVY.js} +3 -3
- package/dist/{responsiveness-probe-DW7SMQGE.js → responsiveness-probe-2PK6PG6Z.js} +3 -3
- package/dist/{session-auth-dead-5D3XND6M.js → session-auth-dead-HUYBSCNA.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-SMZQHDO7.js.map +0 -1
- /package/dist/{chunk-JCAQEJYK.js.map → chunk-3XZNMC4V.js.map} +0 -0
- /package/dist/{chunk-WVOB2TIP.js.map → chunk-J6S2H54R.js.map} +0 -0
- /package/dist/{claude-pair-runtime-QEVUC7L4.js.map → claude-pair-runtime-O7CZKXDK.js.map} +0 -0
- /package/dist/{persistent-session-TZO2JPCC.js.map → persistent-session-BGZAGJVY.js.map} +0 -0
- /package/dist/{responsiveness-probe-DW7SMQGE.js.map → responsiveness-probe-2PK6PG6Z.js.map} +0 -0
- /package/dist/{session-auth-dead-5D3XND6M.js.map → session-auth-dead-HUYBSCNA.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-3XZNMC4V.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-J6S2H54R.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-PWPE62DF.js";
|
|
83
83
|
import "../chunk-DHWNVVX4.js";
|
|
84
84
|
import "../chunk-XWVM4KPK.js";
|
|
85
85
|
|
|
@@ -5471,7 +5471,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5471
5471
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5472
5472
|
import chalk18 from "chalk";
|
|
5473
5473
|
import ora16 from "ora";
|
|
5474
|
-
var cliVersion = true ? "0.28.
|
|
5474
|
+
var cliVersion = true ? "0.28.965" : "dev";
|
|
5475
5475
|
async function fetchLatestVersion() {
|
|
5476
5476
|
const host2 = getHost();
|
|
5477
5477
|
if (!host2) return null;
|
|
@@ -6731,7 +6731,7 @@ function handleError(err) {
|
|
|
6731
6731
|
}
|
|
6732
6732
|
|
|
6733
6733
|
// src/bin/agt.ts
|
|
6734
|
-
var cliVersion2 = true ? "0.28.
|
|
6734
|
+
var cliVersion2 = true ? "0.28.965" : "dev";
|
|
6735
6735
|
var program = new Command();
|
|
6736
6736
|
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");
|
|
6737
6737
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
parseEnvFileEntries,
|
|
15
15
|
parseEnvIntegrations,
|
|
16
16
|
shellQuote
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-J6S2H54R.js";
|
|
18
18
|
import {
|
|
19
19
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
20
20
|
INTEGRATIONS_SECTION_END,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
sessionTranscriptDir,
|
|
75
75
|
worseConnectivityOutcome,
|
|
76
76
|
wrapScheduledTaskPrompt
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-PWPE62DF.js";
|
|
78
78
|
import {
|
|
79
79
|
classifyUnanswerablePane,
|
|
80
80
|
summarizeUnanswerablePane
|
|
@@ -6967,7 +6967,7 @@ function exchangeFailureKind(err) {
|
|
|
6967
6967
|
}
|
|
6968
6968
|
|
|
6969
6969
|
// src/lib/api-client.ts
|
|
6970
|
-
var agtCliVersion = true ? "0.28.
|
|
6970
|
+
var agtCliVersion = true ? "0.28.965" : "dev";
|
|
6971
6971
|
var lastConfigHash = null;
|
|
6972
6972
|
function setConfigHash(hash) {
|
|
6973
6973
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11666,4 +11666,4 @@ export {
|
|
|
11666
11666
|
managerInstallSystemUnitCommand,
|
|
11667
11667
|
managerUninstallSystemUnitCommand
|
|
11668
11668
|
};
|
|
11669
|
-
//# sourceMappingURL=chunk-
|
|
11669
|
+
//# sourceMappingURL=chunk-3XZNMC4V.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
rotateDailySession,
|
|
21
21
|
sessionFileExists,
|
|
22
22
|
todayLocalIso
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PWPE62DF.js";
|
|
24
24
|
import {
|
|
25
25
|
classifyUnanswerablePane,
|
|
26
26
|
findUsageLimitResetHint,
|
|
@@ -5575,4 +5575,4 @@ export {
|
|
|
5575
5575
|
stopAllSessionsAndWait,
|
|
5576
5576
|
getProjectDir
|
|
5577
5577
|
};
|
|
5578
|
-
//# sourceMappingURL=chunk-
|
|
5578
|
+
//# sourceMappingURL=chunk-J6S2H54R.js.map
|
|
@@ -4267,6 +4267,88 @@ var AZURE_PROVISIONING_SCOPES = [
|
|
|
4267
4267
|
"https://management.azure.com/user_impersonation"
|
|
4268
4268
|
];
|
|
4269
4269
|
|
|
4270
|
+
// ../../packages/core/dist/channels/governance/sender-policy-decline.js
|
|
4271
|
+
function teamOnlyReason(allowlist) {
|
|
4272
|
+
return allowlist && allowlist.length > 0 ? "mode_team_only" : "mode_team_only_no_principals";
|
|
4273
|
+
}
|
|
4274
|
+
function classifySlackPolicyBlock(evt, policy) {
|
|
4275
|
+
if (policy.internalOnly && (!policy.homeTeamId || evt.team !== policy.homeTeamId)) {
|
|
4276
|
+
return "internal_only";
|
|
4277
|
+
}
|
|
4278
|
+
switch (policy.mode) {
|
|
4279
|
+
case "manager_only":
|
|
4280
|
+
return "mode_manager_only";
|
|
4281
|
+
case "team_only":
|
|
4282
|
+
return teamOnlyReason(policy.teamPrincipalSlackUserIds);
|
|
4283
|
+
case "team_agents_only":
|
|
4284
|
+
return "mode_team_agents_only";
|
|
4285
|
+
case "agents_only":
|
|
4286
|
+
return "mode_agents_only";
|
|
4287
|
+
case "all":
|
|
4288
|
+
return "internal_only";
|
|
4289
|
+
}
|
|
4290
|
+
}
|
|
4291
|
+
function politeDeclineCopy(reason) {
|
|
4292
|
+
switch (reason) {
|
|
4293
|
+
case "internal_only":
|
|
4294
|
+
return "Sorry, I can only respond to people inside our organisation. This conversation appears to be from outside.";
|
|
4295
|
+
case "mode_manager_only":
|
|
4296
|
+
return "Sorry, I only respond to my manager in this channel.";
|
|
4297
|
+
case "mode_team_only":
|
|
4298
|
+
return "Sorry, this agent only replies to its team members.";
|
|
4299
|
+
case "mode_team_only_no_principals":
|
|
4300
|
+
return "Sorry, I can't reply to anyone in this channel yet: none of my team members' accounts here are linked to me. An admin needs to link them first.";
|
|
4301
|
+
case "mode_manager_only_no_principals":
|
|
4302
|
+
return "Sorry, I can't reply to anyone right now: I'm set to talk only to my manager, and no manager is configured for me. An admin needs to set who I report to.";
|
|
4303
|
+
case "mode_team_agents_only":
|
|
4304
|
+
return "Sorry, I only respond to agents on my team in this channel.";
|
|
4305
|
+
case "mode_agents_only":
|
|
4306
|
+
return "Sorry, I only respond to other agents in this channel.";
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4310
|
+
// ../../packages/core/dist/channels/governance/inbound-access.js
|
|
4311
|
+
function decideInboundAccess(input) {
|
|
4312
|
+
if (!input.content.forward) {
|
|
4313
|
+
return { kind: "drop", reason: `content:${input.content.reason}` };
|
|
4314
|
+
}
|
|
4315
|
+
if (input.isSelf) {
|
|
4316
|
+
return { kind: "drop", reason: "self" };
|
|
4317
|
+
}
|
|
4318
|
+
if (input.orgBoundary && !input.orgBoundary.forward) {
|
|
4319
|
+
return { kind: "drop", reason: "org_boundary" };
|
|
4320
|
+
}
|
|
4321
|
+
if (input.chatType && !input.chatType.forward) {
|
|
4322
|
+
return { kind: "drop", reason: "chat_type" };
|
|
4323
|
+
}
|
|
4324
|
+
if (input.senderPolicy && !input.senderPolicy.forward) {
|
|
4325
|
+
const reason = input.senderPolicy.reason;
|
|
4326
|
+
const declineWorthy = input.sameOrg && reason !== "internal_only";
|
|
4327
|
+
return {
|
|
4328
|
+
kind: "drop",
|
|
4329
|
+
reason: `sender_policy:${reason}`,
|
|
4330
|
+
decline: declineWorthy ? politeDeclineCopy(reason) : void 0
|
|
4331
|
+
};
|
|
4332
|
+
}
|
|
4333
|
+
if (input.command && !input.isBot) {
|
|
4334
|
+
return {
|
|
4335
|
+
kind: "command",
|
|
4336
|
+
command: input.command.command,
|
|
4337
|
+
authorized: input.command.authorized
|
|
4338
|
+
};
|
|
4339
|
+
}
|
|
4340
|
+
if (input.isBot) {
|
|
4341
|
+
const peer = input.peer;
|
|
4342
|
+
if (!peer || peer.kind === "self") {
|
|
4343
|
+
return { kind: "drop", reason: peer?.kind === "self" ? "self" : "peer:unclassified" };
|
|
4344
|
+
}
|
|
4345
|
+
if (peer.kind === "drop") {
|
|
4346
|
+
return { kind: "drop", reason: `peer:${peer.reason ?? "unspecified"}` };
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4349
|
+
return { kind: "admit" };
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4270
4352
|
// ../../packages/core/dist/parser/frontmatter.js
|
|
4271
4353
|
import { parse as parseYaml, parseDocument } from "yaml";
|
|
4272
4354
|
function extractFrontmatter(content) {
|
|
@@ -14828,6 +14910,8 @@ export {
|
|
|
14828
14910
|
serializeManifestForSlackCli,
|
|
14829
14911
|
SlackApiError,
|
|
14830
14912
|
createSlackApp,
|
|
14913
|
+
classifySlackPolicyBlock,
|
|
14914
|
+
decideInboundAccess,
|
|
14831
14915
|
extractFrontmatter,
|
|
14832
14916
|
generateCharterMd,
|
|
14833
14917
|
generateToolsMd,
|
|
@@ -14944,4 +15028,4 @@ export {
|
|
|
14944
15028
|
peekCurrentSession,
|
|
14945
15029
|
readDailySessionPin
|
|
14946
15030
|
};
|
|
14947
|
-
//# sourceMappingURL=chunk-
|
|
15031
|
+
//# sourceMappingURL=chunk-PWPE62DF.js.map
|