@kervnet/opencode-kiro-auth 1.6.0 → 1.6.1

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.
@@ -4,6 +4,16 @@ import * as logger from '../logger';
4
4
  import { kiroDb } from '../storage/sqlite';
5
5
  export async function syncIAMFromKiroCli() {
6
6
  try {
7
+ // Check if AWS credentials are configured
8
+ const { existsSync } = await import('node:fs');
9
+ const { homedir } = await import('node:os');
10
+ const { join } = await import('node:path');
11
+ const awsConfigPath = join(homedir(), '.aws', 'config');
12
+ const awsCredsPath = join(homedir(), '.aws', 'credentials');
13
+ if (!existsSync(awsConfigPath) && !existsSync(awsCredsPath)) {
14
+ logger.debug('IAM sync: No AWS credentials configured, skipping IAM auth');
15
+ return;
16
+ }
7
17
  const output = execSync('kiro-cli whoami', { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] });
8
18
  const lines = output.split('\n').map(l => l.trim()).filter(Boolean);
9
19
  let profileName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kervnet/opencode-kiro-auth",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "OpenCode plugin for AWS Kiro (CodeWhisperer) providing access to Claude models with IAM auth support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",