@integrity-labs/agt-cli 0.28.912 → 0.28.913

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-L4WWKIOA.js";
43
+ } from "../chunk-7ERR62SH.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.912" : "dev";
5470
+ var cliVersion = true ? "0.28.913" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6682,7 +6682,7 @@ function handleError(err) {
6682
6682
  }
6683
6683
 
6684
6684
  // src/bin/agt.ts
6685
- var cliVersion2 = true ? "0.28.912" : "dev";
6685
+ var cliVersion2 = true ? "0.28.913" : "dev";
6686
6686
  var program = new Command();
6687
6687
  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");
6688
6688
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6841,7 +6841,7 @@ function exchangeFailureKind(err) {
6841
6841
  }
6842
6842
 
6843
6843
  // src/lib/api-client.ts
6844
- var agtCliVersion = true ? "0.28.912" : "dev";
6844
+ var agtCliVersion = true ? "0.28.913" : "dev";
6845
6845
  var lastConfigHash = null;
6846
6846
  function setConfigHash(hash) {
6847
6847
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11451,4 +11451,4 @@ export {
11451
11451
  managerInstallSystemUnitCommand,
11452
11452
  managerUninstallSystemUnitCommand
11453
11453
  };
11454
- //# sourceMappingURL=chunk-L4WWKIOA.js.map
11454
+ //# sourceMappingURL=chunk-7ERR62SH.js.map
@@ -63,7 +63,7 @@ import {
63
63
  safeWriteJsonAtomic,
64
64
  setConfigHash,
65
65
  tripClass
66
- } from "../chunk-L4WWKIOA.js";
66
+ } from "../chunk-7ERR62SH.js";
67
67
  import {
68
68
  getProjectDir as getProjectDir2,
69
69
  getReadyTasks,
@@ -13818,7 +13818,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13818
13818
  var lastVersionCheckAt = 0;
13819
13819
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13820
13820
  var lastResponsivenessProbeAt = 0;
13821
- var agtCliVersion = true ? "0.28.912" : "dev";
13821
+ var agtCliVersion = true ? "0.28.913" : "dev";
13822
13822
  function resolveBrewPath(execFileSync2) {
13823
13823
  try {
13824
13824
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -48558,9 +48558,20 @@ server.tool(
48558
48558
  );
48559
48559
  server.tool(
48560
48560
  "schedule_list",
48561
- "List your scheduled tasks (cron jobs, reminders, recurring work).",
48562
- {},
48563
- async () => {
48561
+ // CS-1713: the stored prompt was readable only as a 100-character preview,
48562
+ // while schedule_update can replace that same prompt wholesale. That is the
48563
+ // routine_revise hazard (ENG-9431) on a different table: anything you cannot
48564
+ // read is anything you are about to destroy. It is also the only cheap
48565
+ // detector for ENG-9377, where a silently TRUNCATED prompt runs and still
48566
+ // reports success - if you cannot read the stored text you cannot tell a task
48567
+ // that ran all eight of its checks from one that ran two.
48568
+ "List your scheduled tasks (cron jobs, reminders, recurring work). Prompts are shown as a 100-character preview by default. Pass include_full_prompt: true to get each task's COMPLETE, untruncated prompt - do that BEFORE any schedule_update that changes a prompt, because that call replaces the prompt wholesale and whatever you did not read is whatever you are about to overwrite. It is also how you check a stored prompt was not silently truncated when it was written.",
48569
+ {
48570
+ include_full_prompt: external_exports.boolean().optional().describe(
48571
+ "Return each task's complete prompt instead of a 100-character preview. Costs nothing extra - the full text is already fetched and only sliced for display."
48572
+ )
48573
+ },
48574
+ async (params) => {
48564
48575
  const data = await apiPost("/host/schedules", {
48565
48576
  agent_id: AGT_AGENT_ID
48566
48577
  });
@@ -48570,8 +48581,10 @@ server.tool(
48570
48581
  const lines = data.tasks.map((t) => {
48571
48582
  const schedule = t.schedule_kind === "cron" ? `cron: ${t.schedule_expr}` : t.schedule_kind === "every" ? `every: ${t.schedule_every}` : `at: ${t.schedule_at}`;
48572
48583
  const status = t.enabled ? "\u2705" : "\u23F8\uFE0F";
48584
+ const prompt = params.include_full_prompt ? t.prompt : `${t.prompt.slice(0, 100)}${t.prompt.length > 100 ? "..." : ""}`;
48585
+ const truncationHint = !params.include_full_prompt && t.prompt.length > 100 ? " (preview - call again with include_full_prompt: true for the whole thing)" : "";
48573
48586
  return `${status} **${t.name}** (${schedule}, ${t.timezone}) [id: ${t.id}]
48574
- Prompt: ${t.prompt.slice(0, 100)}${t.prompt.length > 100 ? "..." : ""}`;
48587
+ Prompt${truncationHint}: ${prompt}`;
48575
48588
  });
48576
48589
  return { content: [{ type: "text", text: lines.join("\n\n") }] };
48577
48590
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.912",
3
+ "version": "0.28.913",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {