@integrity-labs/agt-cli 0.27.160 → 0.27.161
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
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
success,
|
|
34
34
|
table,
|
|
35
35
|
warn
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-V5RAWFRT.js";
|
|
37
37
|
import {
|
|
38
38
|
CHANNEL_REGISTRY,
|
|
39
39
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -5019,7 +5019,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5019
5019
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5020
5020
|
import chalk18 from "chalk";
|
|
5021
5021
|
import ora16 from "ora";
|
|
5022
|
-
var cliVersion = true ? "0.27.
|
|
5022
|
+
var cliVersion = true ? "0.27.161" : "dev";
|
|
5023
5023
|
async function fetchLatestVersion() {
|
|
5024
5024
|
const host2 = getHost();
|
|
5025
5025
|
if (!host2) return null;
|
|
@@ -5942,7 +5942,7 @@ function handleError(err) {
|
|
|
5942
5942
|
}
|
|
5943
5943
|
|
|
5944
5944
|
// src/bin/agt.ts
|
|
5945
|
-
var cliVersion2 = true ? "0.27.
|
|
5945
|
+
var cliVersion2 = true ? "0.27.161" : "dev";
|
|
5946
5946
|
var program = new Command();
|
|
5947
5947
|
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");
|
|
5948
5948
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
provisionStopHook,
|
|
23
23
|
requireHost,
|
|
24
24
|
safeWriteJsonAtomic
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-V5RAWFRT.js";
|
|
26
26
|
import {
|
|
27
27
|
getProjectDir as getProjectDir2,
|
|
28
28
|
getReadyTasks,
|
|
@@ -4367,6 +4367,7 @@ var AUTO_RESUME_SELF_WINDOW_MS = 12e4;
|
|
|
4367
4367
|
var autoResumeLoggedSkips = /* @__PURE__ */ new Map();
|
|
4368
4368
|
var autoResumeStandDowns = /* @__PURE__ */ new Set();
|
|
4369
4369
|
var killPausedCodeNames = /* @__PURE__ */ new Set();
|
|
4370
|
+
var BACK_ONLINE_GREETING_GUIDANCE = " When you reconnect, if you tell anyone you are back, start that message with a \u{1F44B} wave emoji and do not use a \u{1F7E2} green-light emoji.";
|
|
4370
4371
|
function maybeAutoResume(agent) {
|
|
4371
4372
|
const codeName = agent.code_name;
|
|
4372
4373
|
if (autoResumeInFlight.has(codeName)) return;
|
|
@@ -4894,7 +4895,7 @@ var cachedMaintenanceWindow = null;
|
|
|
4894
4895
|
var lastVersionCheckAt = 0;
|
|
4895
4896
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
4896
4897
|
var lastResponsivenessProbeAt = 0;
|
|
4897
|
-
var agtCliVersion = true ? "0.27.
|
|
4898
|
+
var agtCliVersion = true ? "0.27.161" : "dev";
|
|
4898
4899
|
function resolveBrewPath(execFileSync4) {
|
|
4899
4900
|
try {
|
|
4900
4901
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7088,7 +7089,7 @@ async function processAgent(agent, agentStates) {
|
|
|
7088
7089
|
const delivered = await injectMessage(
|
|
7089
7090
|
agent.code_name,
|
|
7090
7091
|
"system",
|
|
7091
|
-
restartNotice,
|
|
7092
|
+
restartNotice + BACK_ONLINE_GREETING_GUIDANCE,
|
|
7092
7093
|
{ task_name: "model-update" },
|
|
7093
7094
|
log
|
|
7094
7095
|
).catch(() => false);
|
|
@@ -7296,7 +7297,7 @@ async function processAgent(agent, agentStates) {
|
|
|
7296
7297
|
const reason = reasonParts.join(" ");
|
|
7297
7298
|
log(`[hot-reload] Channel set changed for '${agent.code_name}' (${reason}) \u2014 restarting session`);
|
|
7298
7299
|
const restartNotice = restartDecision.added.length > 0 ? `New channels have been wired up (${restartDecision.added.join(", ")}). Note: channels require a session restart to attach their MCP servers as channel listeners. Your manager will restart your session shortly.` : `Channels were removed (${restartDecision.removed.join(", ")}). Your manager will restart your session shortly so the launch flags drop those channels.`;
|
|
7299
|
-
const delivered = await injectMessage(agent.code_name, "system", restartNotice, { task_name: "channel-update" }, log).catch(() => false);
|
|
7300
|
+
const delivered = await injectMessage(agent.code_name, "system", restartNotice + BACK_ONLINE_GREETING_GUIDANCE, { task_name: "channel-update" }, log).catch(() => false);
|
|
7300
7301
|
const delay = delivered ? 8e3 : 3e3;
|
|
7301
7302
|
if (!delivered) {
|
|
7302
7303
|
log(`[hot-reload] Inject notification unconfirmed for '${agent.code_name}' \u2014 proceeding with shorter delay`);
|
|
@@ -7324,7 +7325,7 @@ async function processAgent(agent, agentStates) {
|
|
|
7324
7325
|
const delivered = await injectMessage(
|
|
7325
7326
|
agent.code_name,
|
|
7326
7327
|
"system",
|
|
7327
|
-
notice,
|
|
7328
|
+
notice + BACK_ONLINE_GREETING_GUIDANCE,
|
|
7328
7329
|
{ task_name: "sender-policy-update" },
|
|
7329
7330
|
log
|
|
7330
7331
|
).catch(() => false);
|
|
@@ -7368,7 +7369,7 @@ async function processAgent(agent, agentStates) {
|
|
|
7368
7369
|
const behaviourDelivered = await injectMessage(
|
|
7369
7370
|
agent.code_name,
|
|
7370
7371
|
"system",
|
|
7371
|
-
behaviourNotice,
|
|
7372
|
+
behaviourNotice + BACK_ONLINE_GREETING_GUIDANCE,
|
|
7372
7373
|
{ task_name: "channel-update" },
|
|
7373
7374
|
log
|
|
7374
7375
|
).catch(() => false);
|
|
@@ -7416,7 +7417,7 @@ async function processAgent(agent, agentStates) {
|
|
|
7416
7417
|
const slackBehaviourDelivered = await injectMessage(
|
|
7417
7418
|
agent.code_name,
|
|
7418
7419
|
"system",
|
|
7419
|
-
slackBehaviourNotice,
|
|
7420
|
+
slackBehaviourNotice + BACK_ONLINE_GREETING_GUIDANCE,
|
|
7420
7421
|
{ task_name: "channel-update" },
|
|
7421
7422
|
log
|
|
7422
7423
|
).catch(() => false);
|
|
@@ -7704,7 +7705,7 @@ async function processAgent(agent, agentStates) {
|
|
|
7704
7705
|
const delivered = await injectMessage(
|
|
7705
7706
|
agent.code_name,
|
|
7706
7707
|
"system",
|
|
7707
|
-
restartNotice,
|
|
7708
|
+
restartNotice + BACK_ONLINE_GREETING_GUIDANCE,
|
|
7708
7709
|
{ task_name: "mcp-update" },
|
|
7709
7710
|
log
|
|
7710
7711
|
).catch(() => false);
|
|
@@ -11751,6 +11752,7 @@ process.on("disconnect", () => {
|
|
|
11751
11752
|
});
|
|
11752
11753
|
});
|
|
11753
11754
|
export {
|
|
11755
|
+
BACK_ONLINE_GREETING_GUIDANCE,
|
|
11754
11756
|
ChildProcessError,
|
|
11755
11757
|
SCHEDULED_CARD_DELIVERY_CONTRACT,
|
|
11756
11758
|
__resetScheduledDeliveryDedupeForTest,
|