File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 1.2.644
1+ 1.2.645
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Resolve the package path when npm runs this through node_modules/.bin.
4+ script_path=$0
5+ while [ -L " $script_path " ]; do
6+ script_dir=$( CDPATH= cd " $( dirname " $script_path " ) " && pwd)
7+ link_target=$( readlink " $script_path " )
8+ case " $link_target " in
9+ /* ) script_path=$link_target ;;
10+ * ) script_path=$script_dir /$link_target ;;
11+ esac
12+ done
13+
14+ script_dir=$( CDPATH= cd " $( dirname " $script_path " ) " && pwd)
15+ package_dir=$( CDPATH= cd " $script_dir /.." && pwd)
16+
17+ FILES_CLI_USER_AGENT_SUFFIX=" Files.com AI Assistant"
18+ export FILES_CLI_USER_AGENT_SUFFIX
19+
20+ if [ -n " ${FILES_CLI_BINARY:- } " ]; then
21+ exec " $FILES_CLI_BINARY " " $@ "
22+ fi
23+
24+ for files_cli_path in \
25+ " /usr/local/go/bin/files-cli" \
26+ " $package_dir /files-cli" \
27+ " $package_dir /bin/files-cli" \
28+ " $package_dir /vendor/files-cli" \
29+ " $package_dir /dist/files-cli"
30+ do
31+ if [ -x " $files_cli_path " ] && [ " $files_cli_path " != " $script_path " ]; then
32+ exec " $files_cli_path " " $@ "
33+ fi
34+ done
35+
36+ printf ' %s\n' " Unable to find files-cli. Set FILES_CLI_BINARY to the bundled files-cli path." >&2
37+ exit 127
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ var apiKey;
1212var baseUrl = 'https://app.files.com' ;
1313var sessionId = null ;
1414var language = null ;
15- var version = '1.2.644 ' ;
15+ var version = '1.2.645 ' ;
1616var userAgent = "Files.com JavaScript SDK v" . concat ( version ) ;
1717var logLevel = _Logger . LogLevel . INFO ;
1818var debugRequest = false ;
Original file line number Diff line number Diff line change 11{
22 "name" : " files.com" ,
3- "version" : " 1.2.644 " ,
3+ "version" : " 1.2.645 " ,
44 "description" : " Files.com SDK for JavaScript" ,
55 "keywords" : [
66 " files.com" ,
1919 },
2020 "main" : " lib/Files.js" ,
2121 "module" : " src/Files.js" ,
22+ "bin" : {
23+ "files-cli-ai" : " bin/files-cli-ai"
24+ },
2225 "dependencies" : {
2326 "@babel/runtime" : " ^7.10.3" ,
2427 "cross-fetch" : " ^4.0.0" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ let apiKey
66let baseUrl = 'https://app.files.com'
77let sessionId = null
88let language = null
9- const version = '1.2.644 '
9+ const version = '1.2.645 '
1010let userAgent = `Files.com JavaScript SDK v${ version } `
1111
1212let logLevel = LogLevel . INFO
You can’t perform that action at this time.
0 commit comments