avocavo 1.1.3 → 1.1.4

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 🥑 Avocavo CLI
2
2
 
3
- > Nutrition analysis made simple. Get accurate USDA nutrition data with secure authentication.
3
+ > Structured nutrition data API with USDA-based calculations where applicable. Consistent nutrition estimates for apps and workflows.
4
4
 
5
5
  ## 🚀 Quick Start
6
6
 
@@ -58,7 +58,7 @@ Analyze a single ingredient:
58
58
  ```bash
59
59
  avocavo ingredient "1 cup brown rice"
60
60
  avocavo ingredient "200g chicken breast"
61
- avocavo ingredient "1 cup rice" -v # Include USDA verification URL
61
+ avocavo ingredient "1 cup rice" -v # Include USDA FDC source URL
62
62
  ```
63
63
 
64
64
  ### `avocavo recipe [options]`
package/bin/avocavo.js CHANGED
@@ -57,7 +57,7 @@ function secureReadFile(filePath) {
57
57
 
58
58
  program
59
59
  .name('avocavo')
60
- .description('Avocavo Nutrition API CLI - Fast, accurate nutrition data with USDA verification')
60
+ .description('Avocavo Nutrition API CLI - Structured nutrition data with USDA-based calculations and ingredient normalization')
61
61
  .version(version);
62
62
 
63
63
  // Global options
@@ -346,7 +346,7 @@ keysCmd
346
346
  program
347
347
  .command('ingredient <ingredient>')
348
348
  .description('Analyze a single ingredient for nutrition data')
349
- .option('-v, --verify', 'Include USDA verification URL')
349
+ .option('-v, --verify', 'Include USDA FDC source URL')
350
350
  .option('--verbose', 'Show detailed performance metrics and USDA info')
351
351
  .option('--debug', 'Show all available data (same as --json)')
352
352
  .option('--timing', 'Show processing time')
@@ -441,7 +441,7 @@ program
441
441
  .option('-s, --servings <number>', 'Number of servings', '1')
442
442
  .option('-i, --ingredients <ingredients...>', 'Recipe ingredients')
443
443
  .option('-f, --file <file>', 'Read ingredients from file (one per line)')
444
- .option('-v, --verify', 'Include USDA verification URLs for ingredients')
444
+ .option('-v, --verify', 'Include USDA FDC source URLs for ingredients')
445
445
  .option('--verbose', 'Show detailed performance metrics and USDA info')
446
446
  .option('--debug', 'Show all available data (same as --json)')
447
447
  .action(async (options) => {
@@ -529,7 +529,7 @@ program
529
529
 
530
530
  // Clean default: just show count
531
531
  const usdaCount = ingredientsWithUSDA.length;
532
- console.log(chalk.gray(`🎯 USDA verified: ${usdaCount}/${ingredients.length} ingredients`));
532
+ console.log(chalk.gray(`🎯 USDA matched: ${usdaCount}/${ingredients.length} ingredients`));
533
533
 
534
534
  // Detailed USDA info with --verbose or --verify
535
535
  if (options.verbose || options.verify) {
@@ -641,7 +641,7 @@ program
641
641
  // Show USDA verification details for successful ingredients
642
642
  if (result.results.some(item => item.success && item.metadata?.usda_match)) {
643
643
  console.log('');
644
- console.log(chalk.bold('🔗 USDA Verification:'));
644
+ console.log(chalk.bold('🔗 USDA Sources:'));
645
645
  result.results.forEach(item => {
646
646
  if (item.success && item.metadata?.usda_match) {
647
647
  const usda = item.metadata.usda_match;
@@ -1014,7 +1014,7 @@ Examples:
1014
1014
  $ avocavo keys switch # Switch active API key (interactive)
1015
1015
  $ avocavo keys delete # Delete API key (interactive)
1016
1016
  $ avocavo ingredient "1 cup rice" # Analyze single ingredient
1017
- $ avocavo ingredient "1 cup rice" -v # Include USDA verification URL
1017
+ $ avocavo ingredient "1 cup rice" -v # Include USDA FDC source URL
1018
1018
  $ avocavo recipe -i "2 cups flour" "1 cup milk" -s 8 # Analyze recipe
1019
1019
  $ avocavo batch -i "1 cup rice" "2 tbsp oil" "4 oz chicken" # Batch analysis
1020
1020
  $ avocavo upc "041196912395" # Search UPC/barcode
package/lib/formatters.js CHANGED
@@ -148,7 +148,7 @@ function formatUSDAMatch(usda, verificationUrl) {
148
148
  lines.push(` 🔗 Verify: ${chalk.underline(verificationUrl)}`);
149
149
  }
150
150
 
151
- return '\n' + chalk.gray('USDA Verification:') + '\n' + lines.join('\n');
151
+ return '\n' + chalk.gray('USDA Source:') + '\n' + lines.join('\n');
152
152
  }
153
153
 
154
154
  function formatTable(data, options = {}) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "avocavo",
3
- "version": "1.1.3",
4
- "description": "Avocavo CLI - Nutrition analysis made simple. Get accurate USDA nutrition data with secure authentication.",
3
+ "version": "1.1.4",
4
+ "description": "Avocavo CLI - Structured nutrition data API with USDA-based calculations where applicable. Consistent nutrition estimates for apps and workflows. For informational use only. Not affiliated with or endorsed by USDA.",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "avocavo": "bin/avocavo.js"