humanbehavior-js 0.5.70 → 0.5.71

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":"ai-auto-install.d.ts","sourceRoot":"","sources":["../../src/cli/ai-auto-install.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAUH,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,cAAM,gBAAgB;IACpB,OAAO,CAAC,OAAO,CAAe;gBAElB,OAAO,EAAE,YAAY;IAI3B,GAAG;YAgDK,SAAS;YAsBT,mBAAmB;YAQnB,eAAe;IAoB7B,OAAO,CAAC,cAAc;CAoCvB;AAwED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"ai-auto-install.d.ts","sourceRoot":"","sources":["../../src/cli/ai-auto-install.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAUH,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,cAAM,gBAAgB;IACpB,OAAO,CAAC,OAAO,CAAe;gBAElB,OAAO,EAAE,YAAY;IAI3B,GAAG;YAgDK,SAAS;YAsBT,mBAAmB;YAQnB,eAAe;IAoB7B,OAAO,CAAC,cAAc;CAoCvB;AA0FD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1988,6 +1988,13 @@ function parseArgs() {
1988
1988
  case '-f':
1989
1989
  options.framework = args[++i];
1990
1990
  break;
1991
+ case 'init':
1992
+ if (!args[i + 1] || args[i + 1].startsWith('-')) {
1993
+ showInitHelp();
1994
+ process.exit(1);
1995
+ }
1996
+ options.apiKey = args[++i];
1997
+ break;
1991
1998
  default:
1992
1999
  if (!options.apiKey && !arg.startsWith('-')) {
1993
2000
  options.apiKey = arg;
@@ -2018,6 +2025,17 @@ Examples:
2018
2025
  npx humanbehavior-js ai-auto-install --framework react --yes
2019
2026
  `);
2020
2027
  }
2028
+ function showInitHelp() {
2029
+ console.log(`
2030
+ Usage: npx humanbehavior-js init <api-key>
2031
+
2032
+ Arguments:
2033
+ api-key Your HumanBehavior API key (required, starts with "hb_")
2034
+
2035
+ Examples:
2036
+ npx humanbehavior-js init hb_your_api_key_here
2037
+ `);
2038
+ }
2021
2039
  // Main execution
2022
2040
  const options = parseArgs();
2023
2041
  const cli = new AIAutoInstallCLI(options);