@integrity-labs/agt-cli 0.28.494 → 0.28.495

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-DJNJWFKI.js";
43
+ } from "../chunk-CAHE6QSE.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -71,7 +71,7 @@ import {
71
71
  requiredMcpWildcard,
72
72
  resolveChannels,
73
73
  serializeManifestForSlackCli
74
- } from "../chunk-JHEJP3KC.js";
74
+ } from "../chunk-4SQZDAWG.js";
75
75
  import "../chunk-XWVM4KPK.js";
76
76
 
77
77
  // src/bin/agt.ts
@@ -4830,7 +4830,7 @@ import { execFileSync, execSync } from "child_process";
4830
4830
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4831
4831
  import chalk18 from "chalk";
4832
4832
  import ora16 from "ora";
4833
- var cliVersion = true ? "0.28.494" : "dev";
4833
+ var cliVersion = true ? "0.28.495" : "dev";
4834
4834
  async function fetchLatestVersion() {
4835
4835
  const host2 = getHost();
4836
4836
  if (!host2) return null;
@@ -6002,7 +6002,7 @@ function handleError(err) {
6002
6002
  }
6003
6003
 
6004
6004
  // src/bin/agt.ts
6005
- var cliVersion2 = true ? "0.28.494" : "dev";
6005
+ var cliVersion2 = true ? "0.28.495" : "dev";
6006
6006
  var program = new Command();
6007
6007
  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");
6008
6008
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7158,6 +7158,65 @@ var DIRECT_CHAT_UPLOAD_MAX_BYTES = 10 * MB2;
7158
7158
  var AGENT_DIRECTED_NOTICE_KINDS = ["scheduled_task_nudge", "kanban_check"];
7159
7159
  var AGENT_DIRECTED_KIND_SET = new Set(AGENT_DIRECTED_NOTICE_KINDS);
7160
7160
 
7161
+ // ../../packages/core/dist/direct-chat/cursor-advance.js
7162
+ var CURSOR_SHORTFALL_REASONS = [
7163
+ "not_found",
7164
+ "gave_up",
7165
+ "already_delivered",
7166
+ "error",
7167
+ "undiagnosed",
7168
+ "unknown",
7169
+ "unreported",
7170
+ "malformed_count",
7171
+ "other"
7172
+ ];
7173
+ var KNOWN_REASONS = new Set(CURSOR_SHORTFALL_REASONS);
7174
+ function normalizeCursorShortfallReason(raw) {
7175
+ if (raw == null || raw === "")
7176
+ return "unreported";
7177
+ return KNOWN_REASONS.has(raw) ? raw : "other";
7178
+ }
7179
+ function classifyCursorAdvance(input) {
7180
+ const body = input.body ?? void 0;
7181
+ if (!input.httpOk || body?.error != null) {
7182
+ const error = body?.error ?? input.statusText ?? (input.httpStatus !== void 0 ? `HTTP ${input.httpStatus}` : "request failed");
7183
+ return { outcome: "failed", error };
7184
+ }
7185
+ const expected = new Set(input.messageIds).size;
7186
+ const raw = body?.consumed;
7187
+ if (raw === void 0 || raw === null) {
7188
+ return { outcome: "advanced", reported: false, expected, consumed: 0 };
7189
+ }
7190
+ if (typeof raw !== "number" || !Number.isSafeInteger(raw) || raw < 0) {
7191
+ if (expected === 0)
7192
+ return { outcome: "advanced", reported: false, expected, consumed: 0 };
7193
+ return {
7194
+ outcome: "shortfall",
7195
+ expected,
7196
+ consumed: 0,
7197
+ reason: "malformed_count",
7198
+ partial: false
7199
+ };
7200
+ }
7201
+ if (raw < expected) {
7202
+ return {
7203
+ outcome: "shortfall",
7204
+ expected,
7205
+ consumed: raw,
7206
+ reason: normalizeCursorShortfallReason(body?.reason),
7207
+ partial: raw > 0
7208
+ };
7209
+ }
7210
+ return { outcome: "advanced", reported: true, expected, consumed: raw };
7211
+ }
7212
+ function cursorShortfallKey(route, reason, partial) {
7213
+ return `${route}|${reason}|${partial ? "true" : "false"}`;
7214
+ }
7215
+ function formatCursorAdvanceShortfall(verdict, ctx) {
7216
+ const cleared = ctx.cleared.length > 0 ? ctx.cleared.join(",") : "none";
7217
+ return `[direct-chat] cursor advance shortfall route=/${ctx.route} site=${ctx.site} session=${ctx.sessionId} expected=${verdict.expected} consumed=${verdict.consumed} reason=${verdict.reason} partial=${verdict.partial} cleared_anyway=${cleared}`;
7218
+ }
7219
+
7161
7220
  // ../../packages/core/dist/anchor/types.js
7162
7221
  var ANCHOR_API_BASE_URL = "https://api.anchorbrowser.io/v1";
7163
7222
  var ANCHOR_API_KEY_HEADER = "anchor-api-key";
@@ -14419,6 +14478,9 @@ export {
14419
14478
  probeComposioAccount,
14420
14479
  probeComposioMcpToolCall,
14421
14480
  probeHttpProvider,
14481
+ classifyCursorAdvance,
14482
+ cursorShortfallKey,
14483
+ formatCursorAdvanceShortfall,
14422
14484
  AnchorSessionClient,
14423
14485
  isOnboardingArea,
14424
14486
  describeOnboardingChannel,
@@ -14529,4 +14591,4 @@ export {
14529
14591
  stopAllSessionsAndWait,
14530
14592
  getProjectDir
14531
14593
  };
14532
- //# sourceMappingURL=chunk-JHEJP3KC.js.map
14594
+ //# sourceMappingURL=chunk-4SQZDAWG.js.map