@tanagram/cli 0.1.31 → 0.1.32

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/commands/run.go CHANGED
@@ -75,7 +75,7 @@ func Run() error {
75
75
  // Get API key once upfront before parallel processing
76
76
  apiKey, err := config.GetAPIKey()
77
77
  if err != nil {
78
- return fmt.Errorf("failed to get API key: %w", err)
78
+ return err
79
79
  }
80
80
 
81
81
  fmt.Printf("\nSyncing policies with LLM (processing %d changed file(s) in parallel)...\n", len(filesToSync))
@@ -214,7 +214,7 @@ func Run() error {
214
214
  // Get API key once upfront before checking
215
215
  apiKey, err := config.GetAPIKey()
216
216
  if err != nil {
217
- return fmt.Errorf("failed to get API key: %w", err)
217
+ return err
218
218
  }
219
219
 
220
220
  // Check changes against policies (both regex and LLM-based)
package/commands/sync.go CHANGED
@@ -235,7 +235,7 @@ func FindInstructionFiles(gitRoot string) ([]string, error) {
235
235
  func getAPIKey() (string, error) {
236
236
  apiKey, err := config.GetAPIKey()
237
237
  if err != nil {
238
- return "", fmt.Errorf("failed to get API key: %w", err)
238
+ return "", err
239
239
  }
240
240
  return apiKey, nil
241
241
  }
package/config/config.go CHANGED
@@ -114,7 +114,7 @@ func GetAPIKey() (string, error) {
114
114
  fmt.Print("Validating API key... ")
115
115
  if err := ValidateAPIKey(apiKey); err != nil {
116
116
  fmt.Println("✗")
117
- return "", fmt.Errorf("invalid API key: %w", err)
117
+ return "", err
118
118
  }
119
119
  fmt.Println("✓")
120
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanagram/cli",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Tanagram - Catch sloppy code before it ships",
5
5
  "main": "index.js",
6
6
  "bin": {