@kervnet/opencode-kiro-auth 1.5.4 → 1.5.5

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 (2) hide show
  1. package/dist/plugin.js +1 -7
  2. package/package.json +1 -1
package/dist/plugin.js CHANGED
@@ -1,4 +1,3 @@
1
- import { KIRO_CONSTANTS } from './constants.js';
2
1
  import { AuthHandler } from './core/auth/auth-handler.js';
3
2
  import { RequestHandler } from './core/request/request-handler.js';
4
3
  import { AccountCache } from './infrastructure/database/account-cache.js';
@@ -24,14 +23,9 @@ export const createKiroPlugin = (id) => async ({ client, directory }) => {
24
23
  provider: id,
25
24
  loader: async (getAuth) => {
26
25
  await getAuth();
27
- const region = config.default_region || 'us-east-1';
28
- const baseTemplate = KIRO_CONSTANTS?.BASE_URL || 'https://q.{{region}}.amazonaws.com/generateAssistantResponse';
29
- const baseURL = baseTemplate
30
- .replace('/generateAssistantResponse', '')
31
- .replace('{{region}}', region);
32
26
  return {
33
27
  apiKey: '',
34
- baseURL,
28
+ baseURL: 'https://q.us-east-1.amazonaws.com',
35
29
  fetch: (input, init) => requestHandler.handle(input, init, showToast)
36
30
  };
37
31
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kervnet/opencode-kiro-auth",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "OpenCode plugin for AWS Kiro (CodeWhisperer) with IAM Identity Center profile support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",