@integrity-labs/agt-cli 0.28.397 → 0.28.398
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
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-QQ4ZC5K3.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4829
4829
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4830
4830
|
import chalk18 from "chalk";
|
|
4831
4831
|
import ora16 from "ora";
|
|
4832
|
-
var cliVersion = true ? "0.28.
|
|
4832
|
+
var cliVersion = true ? "0.28.398" : "dev";
|
|
4833
4833
|
async function fetchLatestVersion() {
|
|
4834
4834
|
const host2 = getHost();
|
|
4835
4835
|
if (!host2) return null;
|
|
@@ -6001,7 +6001,7 @@ function handleError(err) {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
|
|
6003
6003
|
// src/bin/agt.ts
|
|
6004
|
-
var cliVersion2 = true ? "0.28.
|
|
6004
|
+
var cliVersion2 = true ? "0.28.398" : "dev";
|
|
6005
6005
|
var program = new Command();
|
|
6006
6006
|
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");
|
|
6007
6007
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6196,7 +6196,7 @@ function requireHost() {
|
|
|
6196
6196
|
}
|
|
6197
6197
|
|
|
6198
6198
|
// src/lib/api-client.ts
|
|
6199
|
-
var agtCliVersion = true ? "0.28.
|
|
6199
|
+
var agtCliVersion = true ? "0.28.398" : "dev";
|
|
6200
6200
|
var lastConfigHash = null;
|
|
6201
6201
|
function setConfigHash(hash) {
|
|
6202
6202
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8662,4 +8662,4 @@ export {
|
|
|
8662
8662
|
managerInstallSystemUnitCommand,
|
|
8663
8663
|
managerUninstallSystemUnitCommand
|
|
8664
8664
|
};
|
|
8665
|
-
//# sourceMappingURL=chunk-
|
|
8665
|
+
//# sourceMappingURL=chunk-QQ4ZC5K3.js.map
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
resolveEffectivePinRaw,
|
|
45
45
|
safeWriteJsonAtomic,
|
|
46
46
|
setConfigHash
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-QQ4ZC5K3.js";
|
|
48
48
|
import {
|
|
49
49
|
getProjectDir as getProjectDir2,
|
|
50
50
|
getReadyTasks,
|
|
@@ -9249,7 +9249,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9249
9249
|
var lastVersionCheckAt = 0;
|
|
9250
9250
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9251
9251
|
var lastResponsivenessProbeAt = 0;
|
|
9252
|
-
var agtCliVersion = true ? "0.28.
|
|
9252
|
+
var agtCliVersion = true ? "0.28.398" : "dev";
|
|
9253
9253
|
function resolveBrewPath(execFileSync2) {
|
|
9254
9254
|
try {
|
|
9255
9255
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -29748,10 +29748,15 @@ function readDirectChatSessionState(agentDir, nowMs) {
|
|
|
29748
29748
|
|
|
29749
29749
|
// src/direct-chat-channel-meta.ts
|
|
29750
29750
|
function buildDirectChatChannelMeta(input) {
|
|
29751
|
+
const identity = {};
|
|
29752
|
+
if (input.userName) identity.user_name = input.userName;
|
|
29753
|
+
if (input.userEmail) identity.user_email = input.userEmail;
|
|
29754
|
+
if (input.userRole) identity.user_role = input.userRole;
|
|
29751
29755
|
return {
|
|
29752
29756
|
session_id: input.sessionId,
|
|
29753
29757
|
user: "webapp",
|
|
29754
29758
|
source: "direct-chat",
|
|
29759
|
+
...identity,
|
|
29755
29760
|
// String flag the agent's channel instructions (and the renderer) read:
|
|
29756
29761
|
// 'false' = notice (do not reply), 'true' = normal message (reply expected).
|
|
29757
29762
|
requires_reply: input.isNotice ? "false" : "true",
|
|
@@ -35526,6 +35531,7 @@ var mcp = new Server(
|
|
|
35526
35531
|
// have room to be explicit.
|
|
35527
35532
|
"CRITICAL: every response to a direct-chat <channel> tag MUST go through direct_chat.reply (passing the session_id verbatim). Text in your session WITHOUT a direct_chat.reply call never reaches the operator \u2014 the reply dies inside the agent process.",
|
|
35528
35533
|
'Messages from the webapp Direct Chat arrive as <channel source="direct-chat" session_id="..." user="...">.',
|
|
35534
|
+
"When the tag carries user_name (and sometimes user_email / user_role), that is the verified human you are talking with; address them by name and tailor your reply to who they are. If those attributes are absent, the sender is unknown, so just reply helpfully without personalization.",
|
|
35529
35535
|
"Reply using the direct_chat.reply tool, passing the session_id from the tag.",
|
|
35530
35536
|
"Always reply to every direct chat message that expects a reply (its meta has requires_reply=true, or no requires_reply field) \u2014 the user is waiting in the webapp.",
|
|
35531
35537
|
"NEVER call direct_chat.reply for a NOTICE \u2014 a notification whose meta has requires_reply=false (ENG-6381). It is an informational FYI (e.g. an integration-status update), not a question, and it has ALREADY been acknowledged for you. Replying would wrongly post into the operator\u2019s chat history and burn a turn. Just take it into account and carry on.",
|
|
@@ -35975,7 +35981,14 @@ async function pollForMessages(sinceMs) {
|
|
|
35975
35981
|
params: {
|
|
35976
35982
|
content: injectContent,
|
|
35977
35983
|
meta: {
|
|
35978
|
-
...buildDirectChatChannelMeta({
|
|
35984
|
+
...buildDirectChatChannelMeta({
|
|
35985
|
+
sessionId: msg.session_id,
|
|
35986
|
+
isNotice,
|
|
35987
|
+
// ENG-8047: pure passthrough of the server-resolved human identity.
|
|
35988
|
+
userName: msg.sender_name,
|
|
35989
|
+
userEmail: msg.sender_email,
|
|
35990
|
+
userRole: msg.sender_role
|
|
35991
|
+
}),
|
|
35979
35992
|
...attachmentMeta
|
|
35980
35993
|
}
|
|
35981
35994
|
}
|
package/package.json
CHANGED
|
File without changes
|