diff --git a/demo/genaisrc/genaiscript.d.ts b/demo/genaisrc/genaiscript.d.ts index 2f90021f8d..64f91a5968 100644 --- a/demo/genaisrc/genaiscript.d.ts +++ b/demo/genaisrc/genaiscript.d.ts @@ -472,14 +472,14 @@ type ChatFunctionCallOutput = string | ChatFunctionCallContent interface WorkspaceFileSystem { /** * Searches for files using the glob pattern and returns a list of files. - * If the file is text, also return the content. + * Ignore `.env` files and apply `.gitignore` if present. * @param glob */ findFiles( glob: string, options?: { /** - * Set to false to read text content by default + * Set to false to skip read text content. True by default */ readText?: boolean } diff --git a/docs/genaisrc/genaiscript.d.ts b/docs/genaisrc/genaiscript.d.ts index 2f90021f8d..64f91a5968 100644 --- a/docs/genaisrc/genaiscript.d.ts +++ b/docs/genaisrc/genaiscript.d.ts @@ -472,14 +472,14 @@ type ChatFunctionCallOutput = string | ChatFunctionCallContent interface WorkspaceFileSystem { /** * Searches for files using the glob pattern and returns a list of files. - * If the file is text, also return the content. + * Ignore `.env` files and apply `.gitignore` if present. * @param glob */ findFiles( glob: string, options?: { /** - * Set to false to read text content by default + * Set to false to skip read text content. True by default */ readText?: boolean } diff --git a/docs/package.json b/docs/package.json index 7b6006c240..a4e077a953 100644 --- a/docs/package.json +++ b/docs/package.json @@ -20,7 +20,7 @@ "dependencies": { "@astrojs/check": "^0.7.0", "@astrojs/starlight": "^0.24.2", - "astro": "^4.10.2", + "astro": "^4.10.3", "typescript": "5.4.5" }, "devDependencies": { diff --git a/docs/src/content/docs/reference/cli/commands.md b/docs/src/content/docs/reference/cli/commands.md index a782298ec8..2f88b6c24c 100644 --- a/docs/src/content/docs/reference/cli/commands.md +++ b/docs/src/content/docs/reference/cli/commands.md @@ -16,6 +16,7 @@ Runs a GenAIScript against files. Options: -ef, --excluded-files excluded files + -egi, --exclude-git-ignore exclude files that are ignore through the .gitignore file in the workspace root -o, --out output folder. Extra markdown fields for output and trace will also be generated -rmo, --remove-out remove output folder if it exists -ot, --out-trace output file for trace @@ -56,6 +57,8 @@ Run a tool on a batch of specs Options: -ef, --excluded-files excluded files + -egi, --exclude-git-ignore exclude files that are ignore through the + .gitignore file in the workspace root -o, --out output folder. Extra markdown fields for output and trace will also be generated -rmo, --remove-out remove output folder if it exists @@ -115,7 +118,7 @@ Options: -td, --test-delay delay between tests in seconds --no-cache disable LLM result cache -v, --verbose verbose output - -pv, --promptfoo-version [version] promptfoo version, default is ^0.63.2 + -pv, --promptfoo-version [version] promptfoo version, default is ^0.65.0 -os, --out-summary append output summary in file -h, --help display help for command ``` diff --git a/docs/src/content/docs/reference/cli/run.md b/docs/src/content/docs/reference/cli/run.md index 709c960ba9..60d866ddef 100644 --- a/docs/src/content/docs/reference/cli/run.md +++ b/docs/src/content/docs/reference/cli/run.md @@ -36,22 +36,30 @@ See [configuration](/genaiscript/getting-started/configuration). Excludes the specified files from the file set. -```sh -npx genaiscript run