@integrity-labs/agt-cli 0.9.4 → 0.9.7

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/mcp/index.js CHANGED
@@ -42,7 +42,12 @@ async function getToken() {
42
42
  try {
43
43
  return await exchangeInFlight;
44
44
  }
45
- catch {
45
+ catch (err) {
46
+ console.error(`augmented-mcp: token exchange failed: ${err instanceof Error ? err.message : err}`);
47
+ // If we have no token at all, propagate the error — tools can't work without auth
48
+ if (!AGT_TOKEN) {
49
+ throw new Error(`Cannot authenticate: token exchange failed and no cached token available`);
50
+ }
46
51
  // Fall through to return existing token (may be stale but avoids crash)
47
52
  }
48
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.9.4",
3
+ "version": "0.9.7",
4
4
  "description": "Augmented CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "bin": {