@integrity-labs/agt-cli 0.28.721 → 0.28.723

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.
Files changed (24) hide show
  1. package/dist/bin/agt.js +15 -7
  2. package/dist/bin/agt.js.map +1 -1
  3. package/dist/{chunk-KCWKZIQT.js → chunk-ABM45AFN.js} +8 -4
  4. package/dist/{chunk-KCWKZIQT.js.map → chunk-ABM45AFN.js.map} +1 -1
  5. package/dist/{chunk-E3WGN4GX.js → chunk-ATJU3SDV.js} +2 -2
  6. package/dist/{chunk-32WU3HBU.js → chunk-IXGIGDJG.js} +22 -1
  7. package/dist/chunk-IXGIGDJG.js.map +1 -0
  8. package/dist/{claude-pair-runtime-EKP2KR6N.js → claude-pair-runtime-XWPOUQMP.js} +2 -2
  9. package/dist/lib/manager-worker.js +13 -13
  10. package/dist/mcp/direct-chat-channel.js +21 -0
  11. package/dist/mcp/index.js +21 -0
  12. package/dist/mcp/origami.js +21 -0
  13. package/dist/mcp/slack-channel.js +21 -0
  14. package/dist/mcp/telegram-channel.js +86 -0
  15. package/dist/{persistent-session-7NXQBNZB.js → persistent-session-CEC5KESY.js} +3 -3
  16. package/dist/{responsiveness-probe-UDFTVXOW.js → responsiveness-probe-J3VB4U4W.js} +3 -3
  17. package/dist/{session-auth-dead-DQW6NXDX.js → session-auth-dead-YQHE3WKV.js} +2 -2
  18. package/package.json +1 -1
  19. package/dist/chunk-32WU3HBU.js.map +0 -1
  20. /package/dist/{chunk-E3WGN4GX.js.map → chunk-ATJU3SDV.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-EKP2KR6N.js.map → claude-pair-runtime-XWPOUQMP.js.map} +0 -0
  22. /package/dist/{persistent-session-7NXQBNZB.js.map → persistent-session-CEC5KESY.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-UDFTVXOW.js.map → responsiveness-probe-J3VB4U4W.js.map} +0 -0
  24. /package/dist/{session-auth-dead-DQW6NXDX.js.map → session-auth-dead-YQHE3WKV.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -41,12 +41,12 @@ import {
41
41
  success,
42
42
  table,
43
43
  warn
44
- } from "../chunk-KCWKZIQT.js";
44
+ } from "../chunk-ABM45AFN.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
48
48
  readDirectChatSessionState
49
- } from "../chunk-E3WGN4GX.js";
49
+ } from "../chunk-ATJU3SDV.js";
50
50
  import {
51
51
  AnchorSessionClient,
52
52
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-32WU3HBU.js";
82
+ } from "../chunk-IXGIGDJG.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -90,6 +90,9 @@ import { Command } from "commander";
90
90
  // src/commands/whoami.ts
91
91
  import chalk from "chalk";
92
92
  import ora from "ora";
93
+ function formatClaudeAuthLabel(mode, fingerprint) {
94
+ return mode === "api_key" ? `api_key (fp: ${fingerprint ?? "unknown"})` : mode ?? "unknown";
95
+ }
93
96
  async function whoamiCommand() {
94
97
  const json = isJsonMode();
95
98
  const apiKey = getApiKey();
@@ -108,7 +111,10 @@ async function whoamiCommand() {
108
111
  const exchange = await exchangeApiKey(apiKey);
109
112
  spinner.stop();
110
113
  const framework = exchange.framework ?? "unset";
111
- const claudeAuthLabel = exchange.claudeAuthMode === "api_key" ? `api_key (fp: ${exchange.anthropicApiKeyFingerprint ?? "unknown"})` : "subscription";
114
+ const claudeAuthLabel = formatClaudeAuthLabel(
115
+ exchange.claudeAuthModeRaw ?? exchange.claudeAuthMode,
116
+ exchange.anthropicApiKeyFingerprint ?? null
117
+ );
112
118
  if (json) {
113
119
  jsonOutput({
114
120
  ok: true,
@@ -119,7 +125,9 @@ async function whoamiCommand() {
119
125
  team_id: exchange.teamId,
120
126
  email: exchange.userEmail,
121
127
  framework: exchange.framework,
122
- claude_auth_mode: exchange.claudeAuthMode,
128
+ // Raw here too. Emitting the narrowed value while the human line shows
129
+ // the real one would be this same inconsistency, mirrored.
130
+ claude_auth_mode: exchange.claudeAuthModeRaw ?? exchange.claudeAuthMode,
123
131
  anthropic_api_key_fingerprint: exchange.anthropicApiKeyFingerprint
124
132
  });
125
133
  return;
@@ -5459,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5459
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5460
5468
  import chalk18 from "chalk";
5461
5469
  import ora16 from "ora";
5462
- var cliVersion = true ? "0.28.721" : "dev";
5470
+ var cliVersion = true ? "0.28.723" : "dev";
5463
5471
  async function fetchLatestVersion() {
5464
5472
  const host2 = getHost();
5465
5473
  if (!host2) return null;
@@ -6646,7 +6654,7 @@ function handleError(err) {
6646
6654
  }
6647
6655
 
6648
6656
  // src/bin/agt.ts
6649
- var cliVersion2 = true ? "0.28.721" : "dev";
6657
+ var cliVersion2 = true ? "0.28.723" : "dev";
6650
6658
  var program = new Command();
6651
6659
  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");
6652
6660
  program.hook("preAction", async (thisCommand, actionCommand) => {