@integrity-labs/agt-cli 0.28.347 → 0.28.349
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 +3 -3
- package/dist/{chunk-CD3HY46A.js → chunk-ZQLWQDUG.js} +6 -2
- package/dist/chunk-ZQLWQDUG.js.map +1 -0
- package/dist/lib/manager-worker.js +5 -5
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/augmented-admin.js +5 -5
- package/dist/mcp/direct-chat-channel.js +42 -2
- package/package.json +1 -1
- package/dist/chunk-CD3HY46A.js.map +0 -1
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
resolveEffectivePinRaw,
|
|
47
47
|
safeWriteJsonAtomic,
|
|
48
48
|
setConfigHash
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-ZQLWQDUG.js";
|
|
50
50
|
import {
|
|
51
51
|
getProjectDir as getProjectDir2,
|
|
52
52
|
getReadyTasks,
|
|
@@ -5350,13 +5350,13 @@ async function routeScheduledTaskViaKanban(codeName, agentId, task, prompt) {
|
|
|
5350
5350
|
const suppressionTeaching = (task.deliveryPolicy ?? "always") === "conditional" ? `THIS task is CONDITIONAL: quiet runs stay SILENT automatically. Write your findings on the card and mark it done \u2014 if nothing met the user's criteria, NOTHING will be sent (no flag needed). If something DID meet the criteria and the user must be told, call kanban_done with suppress_delivery: false AND delivery_reason naming the concrete trigger that fired (e.g. "urgent email from the CEO", "CI failing on main"); a vacuous reason like "status check" or "all clear" is rejected and stays silent. That explicit, justified assert is the ONLY way this result reaches the user.
|
|
5351
5351
|
` : `If \u2014 and ONLY if \u2014 the task description contains explicit opt-out wording the user typed (e.g. "DO NOT notify me unless urgent", "only if X", "stay silent unless \u2026") and that condition is NOT met this run, call kanban_done with suppress_delivery: true \u2014 your result stays on the card but will NOT be messaged to the user. That is how you honor the user's do-not-notify instruction: a "nothing urgent" result without the flag would still be DELIVERED as a message. A report with zero items is only a valid deliverable when the task asks for a digest WITHOUT opt-out wording \u2014 when in doubt, deliver.
|
|
5352
5352
|
`;
|
|
5353
|
-
const nudge = TOOL_DELIVERED_TEMPLATES.has(task.templateId) ? `
|
|
5354
|
-
` + formatRunMarker(run_id) : `
|
|
5353
|
+
const nudge = TOOL_DELIVERED_TEMPLATES.has(task.templateId) ? `A scheduled task just fired and it is now a card on YOUR board that YOU work. The schedule only controls WHEN this card arrives, not who executes it: nothing else runs it for you, so do the work yourself now. Card: id=${kanban_item_id} title=${JSON.stringify(task.name)}. Call kanban_move("${kanban_item_id}", "in_progress"), then do the work described on the card. This task DELIVERS VIA A TOOL, not the card: you MUST call the tool the task specifies \u2014 for the weekly performance review that is submit_performance_review \u2014 to actually deliver it. Writing a summary to the card does NOT send anything and is NOT a substitute for the tool call. After the tool call, note briefly on the card what you sent and mark it done.
|
|
5354
|
+
` + formatRunMarker(run_id) : `A scheduled task just fired and it is now a card on YOUR board that YOU work. The schedule only controls WHEN this card arrives, not who executes it: nothing else runs it for you, so do the work yourself now. Card: id=${kanban_item_id} title=${JSON.stringify(task.name)}. Call kanban_move("${kanban_item_id}", "in_progress"), do the work described on the card, then write the finished result onto the card and mark it done. Do NOT send, post, or message the result to anyone yourself \u2014 the result you write on the card IS the message that will be delivered to the user; delivery happens automatically from the card.
|
|
5355
5355
|
` + suppressionTeaching + formatRunMarker(run_id);
|
|
5356
5356
|
stampScheduledTurnMarker(codeName, task.taskId, resolveScheduledSlackTarget(task));
|
|
5357
5357
|
let injectStatus;
|
|
5358
5358
|
try {
|
|
5359
|
-
injectStatus = await injectMessageWithStatus(codeName, "task", nudge, { task_name: "scheduled-task" }, log);
|
|
5359
|
+
injectStatus = await injectMessageWithStatus(codeName, "task", nudge, { task_name: "scheduled-task-do-now" }, log);
|
|
5360
5360
|
} catch (err) {
|
|
5361
5361
|
log(`[scheduled-kanban] nudge injection threw for task '${task.name}' on '${codeName}': ${err.message} \u2014 closing card + falling back to claude -p`);
|
|
5362
5362
|
void finishRun(run_id, "failed", { outcomeMessage: "scheduled-task nudge delivery threw", completeKanbanItemId: kanban_item_id });
|
|
@@ -9303,7 +9303,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9303
9303
|
var lastVersionCheckAt = 0;
|
|
9304
9304
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9305
9305
|
var lastResponsivenessProbeAt = 0;
|
|
9306
|
-
var agtCliVersion = true ? "0.28.
|
|
9306
|
+
var agtCliVersion = true ? "0.28.349" : "dev";
|
|
9307
9307
|
function resolveBrewPath(execFileSync2) {
|
|
9308
9308
|
try {
|
|
9309
9309
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|