feature-architect-agent 1.0.8 → 1.0.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/commands/plan.ts"],"names":[],"mappings":"AAQA,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACjB,GACL,OAAO,CAAC,IAAI,CAAC,CA8If"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/commands/plan.ts"],"names":[],"mappings":"AAQA,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACjB,GACL,OAAO,CAAC,IAAI,CAAC,CAgJf"}
@@ -38,14 +38,8 @@ async function planCommand(feature, options = {}) {
38
38
  let usingBuiltinKey = false;
39
39
  // Auto-detect if not specified
40
40
  if (!provider) {
41
- // Check built-in team API key FIRST (highest priority for team use)
42
- const builtinGoogleKey = (0, api_config_js_1.getBuiltinKey)('google');
43
- if (builtinGoogleKey && builtinGoogleKey !== 'your-google-api-key-here') {
44
- provider = 'google';
45
- apiKey = builtinGoogleKey;
46
- usingBuiltinKey = true;
47
- }
48
- else if (process.env.GOOGLE_API_KEY) {
41
+ // Check for API keys in environment (no built-in keys for security)
42
+ if (process.env.GOOGLE_API_KEY) {
49
43
  provider = 'google';
50
44
  apiKey = process.env.GOOGLE_API_KEY;
51
45
  }
@@ -58,18 +52,25 @@ async function planCommand(feature, options = {}) {
58
52
  apiKey = process.env.ANTHROPIC_API_KEY;
59
53
  }
60
54
  else if (process.env.AI_API_KEY) {
61
- // Generic API key - try Google first
62
- provider = 'google';
55
+ // Generic API key - try OpenAI first
56
+ provider = 'openai';
63
57
  apiKey = process.env.AI_API_KEY;
64
58
  }
65
59
  else {
66
60
  (0, logger_js_1.error)('No API key found');
67
- (0, logger_js_1.dim)('Set any of these environment variables:');
68
- (0, logger_js_1.dim)(' export GOOGLE_API_KEY=xxx # For Gemini');
61
+ (0, logger_js_1.dim)('You need to set an API key to use this tool.');
62
+ (0, logger_js_1.dim)('');
63
+ (0, logger_js_1.dim)('Choose one of these options:');
64
+ (0, logger_js_1.dim)(' export GOOGLE_API_KEY=xxx # For Gemini (recommended)');
69
65
  (0, logger_js_1.dim)(' export OPENAI_API_KEY=sk-xxx # For OpenAI');
70
66
  (0, logger_js_1.dim)(' export ANTHROPIC_API_KEY=sk-ant-xxx # For Claude');
71
- (0, logger_js_1.dim)(' export AI_API_KEY=xxx # Generic');
72
- (0, logger_js_1.dim)('\nOr contact your team admin to set up the built-in API key.');
67
+ (0, logger_js_1.dim)('');
68
+ (0, logger_js_1.dim)('Get API keys:');
69
+ (0, logger_js_1.dim)(' Gemini: https://aistudio.google.com/app/apikey');
70
+ (0, logger_js_1.dim)(' OpenAI: https://platform.openai.com/api-keys');
71
+ (0, logger_js_1.dim)(' Anthropic: https://console.anthropic.com/settings/keys');
72
+ (0, logger_js_1.dim)('');
73
+ (0, logger_js_1.dim)('Then run your command again.');
73
74
  return;
74
75
  }
75
76
  }
@@ -9,30 +9,28 @@
9
9
  */
10
10
  export declare const API_CONFIG: {
11
11
  /**
12
- * Built-in OpenAI API Key for team use
13
- * Replace with your actual team API key
12
+ * Built-in API Keys - REMOVED for security
13
+ *
14
+ * Users must provide their own API keys via environment variables:
15
+ * - export OPENAI_API_KEY=sk-xxx
16
+ * - export ANTHROPIC_API_KEY=sk-ant-xxx
17
+ * - export GOOGLE_API_KEY=AIzaSyxxx
14
18
  */
15
19
  openai: {
16
20
  apiKey: string;
17
21
  baseURL: string;
18
22
  };
19
- /**
20
- * Built-in Anthropic API Key (optional)
21
- */
22
23
  anthropic: {
23
24
  apiKey: string;
24
25
  baseURL: string;
25
26
  };
26
- /**
27
- * Built-in Google Gemini API Key for team use
28
- */
29
27
  google: {
30
28
  apiKey: string;
31
29
  };
32
30
  /**
33
31
  * Default provider to use when no user key is set
34
32
  */
35
- defaultProvider: "google";
33
+ defaultProvider: "openai";
36
34
  };
37
35
  /**
38
36
  * Get the built-in API key for a provider
@@ -1 +1 @@
1
- {"version":3,"file":"api.config.d.ts","sourceRoot":"","sources":["../../src/config/api.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,UAAU;IACrB;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;IAKH;;OAEG;;CAEJ,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAW7F;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAalF;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAUzF"}
1
+ {"version":3,"file":"api.config.d.ts","sourceRoot":"","sources":["../../src/config/api.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,UAAU;IACrB;;;;;;;OAOG;;;;;;;;;;;;IAeH;;OAEG;;CAEJ,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAW7F;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAalF;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAUzF"}
@@ -15,30 +15,28 @@ exports.hasBuiltinKey = hasBuiltinKey;
15
15
  exports.getApiKey = getApiKey;
16
16
  exports.API_CONFIG = {
17
17
  /**
18
- * Built-in OpenAI API Key for team use
19
- * Replace with your actual team API key
18
+ * Built-in API Keys - REMOVED for security
19
+ *
20
+ * Users must provide their own API keys via environment variables:
21
+ * - export OPENAI_API_KEY=sk-xxx
22
+ * - export ANTHROPIC_API_KEY=sk-ant-xxx
23
+ * - export GOOGLE_API_KEY=AIzaSyxxx
20
24
  */
21
25
  openai: {
22
- apiKey: process.env.TEAM_OPENAI_API_KEY || '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',
26
+ apiKey: process.env.TEAM_OPENAI_API_KEY || '',
23
27
  baseURL: 'https://api.openai.com/v1',
24
28
  },
25
- /**
26
- * Built-in Anthropic API Key (optional)
27
- */
28
29
  anthropic: {
29
30
  apiKey: process.env.TEAM_ANTHROPIC_API_KEY || '',
30
31
  baseURL: 'https://api.anthropic.com',
31
32
  },
32
- /**
33
- * Built-in Google Gemini API Key for team use
34
- */
35
33
  google: {
36
- apiKey: process.env.TEAM_GOOGLE_API_KEY || 'AIzaSyAthWi8Q0iCex5bELjxfHqLMI_L1wEH4Xk',
34
+ apiKey: process.env.TEAM_GOOGLE_API_KEY || '',
37
35
  },
38
36
  /**
39
37
  * Default provider to use when no user key is set
40
38
  */
41
- defaultProvider: 'google',
39
+ defaultProvider: 'openai',
42
40
  };
43
41
  /**
44
42
  * Get the built-in API key for a provider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feature-architect-agent",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "AI-powered feature planning agent - generates complete technical specifications",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -10,33 +10,31 @@
10
10
 
11
11
  export const API_CONFIG = {
12
12
  /**
13
- * Built-in OpenAI API Key for team use
14
- * Replace with your actual team API key
13
+ * Built-in API Keys - REMOVED for security
14
+ *
15
+ * Users must provide their own API keys via environment variables:
16
+ * - export OPENAI_API_KEY=sk-xxx
17
+ * - export ANTHROPIC_API_KEY=sk-ant-xxx
18
+ * - export GOOGLE_API_KEY=AIzaSyxxx
15
19
  */
16
20
  openai: {
17
- apiKey: process.env.TEAM_OPENAI_API_KEY || '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',
21
+ apiKey: process.env.TEAM_OPENAI_API_KEY || '',
18
22
  baseURL: 'https://api.openai.com/v1',
19
23
  },
20
24
 
21
- /**
22
- * Built-in Anthropic API Key (optional)
23
- */
24
25
  anthropic: {
25
26
  apiKey: process.env.TEAM_ANTHROPIC_API_KEY || '',
26
27
  baseURL: 'https://api.anthropic.com',
27
28
  },
28
29
 
29
- /**
30
- * Built-in Google Gemini API Key for team use
31
- */
32
30
  google: {
33
- apiKey: process.env.TEAM_GOOGLE_API_KEY || 'AIzaSyAthWi8Q0iCex5bELjxfHqLMI_L1wEH4Xk',
31
+ apiKey: process.env.TEAM_GOOGLE_API_KEY || '',
34
32
  },
35
33
 
36
34
  /**
37
35
  * Default provider to use when no user key is set
38
36
  */
39
- defaultProvider: 'google' as const,
37
+ defaultProvider: 'openai' as const,
40
38
  };
41
39
 
42
40
  /**