@integrity-labs/agt-cli 0.27.98 → 0.27.99

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
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-S265L5AN.js";
31
+ } from "../chunk-IUQIRUNJ.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -4934,7 +4934,7 @@ import { execFileSync, execSync } from "child_process";
4934
4934
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4935
4935
  import chalk18 from "chalk";
4936
4936
  import ora16 from "ora";
4937
- var cliVersion = true ? "0.27.98" : "dev";
4937
+ var cliVersion = true ? "0.27.99" : "dev";
4938
4938
  async function fetchLatestVersion() {
4939
4939
  const host2 = getHost();
4940
4940
  if (!host2) return null;
@@ -5857,7 +5857,7 @@ function handleError(err) {
5857
5857
  }
5858
5858
 
5859
5859
  // src/bin/agt.ts
5860
- var cliVersion2 = true ? "0.27.98" : "dev";
5860
+ var cliVersion2 = true ? "0.27.99" : "dev";
5861
5861
  var program = new Command();
5862
5862
  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");
5863
5863
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7585,4 +7585,4 @@ export {
7585
7585
  managerInstallSystemUnitCommand,
7586
7586
  managerUninstallSystemUnitCommand
7587
7587
  };
7588
- //# sourceMappingURL=chunk-S265L5AN.js.map
7588
+ //# sourceMappingURL=chunk-IUQIRUNJ.js.map
@@ -16,7 +16,7 @@ import {
16
16
  provisionStopHook,
17
17
  requireHost,
18
18
  safeWriteJsonAtomic
19
- } from "../chunk-S265L5AN.js";
19
+ } from "../chunk-IUQIRUNJ.js";
20
20
  import {
21
21
  getProjectDir as getProjectDir2,
22
22
  getReadyTasks,
@@ -3996,7 +3996,7 @@ var cachedMaintenanceWindow = null;
3996
3996
  var lastVersionCheckAt = 0;
3997
3997
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
3998
3998
  var lastResponsivenessProbeAt = 0;
3999
- var agtCliVersion = true ? "0.27.98" : "dev";
3999
+ var agtCliVersion = true ? "0.27.99" : "dev";
4000
4000
  function resolveBrewPath(execFileSync4) {
4001
4001
  try {
4002
4002
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7430,6 +7430,19 @@ async function syncAndCheckClaudeScheduler(agent, tasks, boardItems, refreshData
7430
7430
  });
7431
7431
  }
7432
7432
  }
7433
+ function deriveScheduledTaskNotify(task) {
7434
+ if (task.deliveryChannel !== "msteams") return {};
7435
+ const to = task.deliveryTo;
7436
+ let conversationId = null;
7437
+ if (typeof to === "string" && to.trim().length > 0) {
7438
+ conversationId = to.trim();
7439
+ } else if (to && typeof to === "object") {
7440
+ const cid = to.conversation_id;
7441
+ if (typeof cid === "string" && cid.trim().length > 0) conversationId = cid.trim();
7442
+ }
7443
+ if (!conversationId) return {};
7444
+ return { notify_channel: "msteams", notify_to: conversationId };
7445
+ }
7433
7446
  async function startRun(opts) {
7434
7447
  try {
7435
7448
  const res = await api.post(
@@ -7598,7 +7611,8 @@ async function routeScheduledTaskViaKanban(codeName, agentId, task, prompt) {
7598
7611
  title: task.name,
7599
7612
  description: prompt,
7600
7613
  priority: 2,
7601
- initial_status: "todo"
7614
+ initial_status: "todo",
7615
+ ...deriveScheduledTaskNotify(task)
7602
7616
  }
7603
7617
  });
7604
7618
  if (!run_id || !kanban_item_id) {
@@ -7707,7 +7721,7 @@ async function executeAndProcessClaudeTask(codeName, agentId, task, prompt) {
7707
7721
  source_type: "scheduled_task",
7708
7722
  source_ref: task.taskId,
7709
7723
  metadata: { template_id: task.templateId, name: task.name },
7710
- materialize_kanban: { title: task.name, priority: 2 }
7724
+ materialize_kanban: { title: task.name, priority: 2, ...deriveScheduledTaskNotify(task) }
7711
7725
  });
7712
7726
  runId = startResult.run_id;
7713
7727
  kanbanItemId = startResult.kanban_item_id;
@@ -10460,6 +10474,7 @@ export {
10460
10474
  claudeManagedSettingsPath,
10461
10475
  deliverScheduledCardResult,
10462
10476
  deliverScheduledTaskOutput,
10477
+ deriveScheduledTaskNotify,
10463
10478
  ensureClaudeManagedSettings,
10464
10479
  extractCharterSlackPeers,
10465
10480
  extractCharterTelegramPeers,