@promptbook/anthropic-claude
Advanced tools
Comparing version 0.72.0-32 to 0.72.0-33
@@ -5,5 +5,7 @@ import type { ExecCommandOptions } from './ExecCommandOptions'; | ||
* | ||
* | ||
* Note: There are 2 similar functions in the codebase: | ||
* - `$execCommand` which runs a single command | ||
* - `$execCommands` which runs multiple commands | ||
* Note: `$` is used to indicate that this function is not a pure function - it runs a command in a shell | ||
* | ||
@@ -10,0 +12,0 @@ * @public exported from `@promptbook/node` |
@@ -7,2 +7,3 @@ /** | ||
* - `$execCommands` which runs multiple commands | ||
* Note: `$` is used to indicate that this function is not a pure function - it runs a commands in a shell | ||
* | ||
@@ -9,0 +10,0 @@ * @public exported from `@promptbook/node` |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export type ExecCommandOptions = string | RequiredAndOptional<ExecCommandOptionsAdvanced, 'command', 'args' | 'cwd' | 'crashOnError' | 'timeout'>; | ||
export type ExecCommandOptions = string | RequiredAndOptional<ExecCommandOptionsAdvanced, 'command', 'args' | 'cwd' | 'crashOnError' | 'timeout' | 'isVerbose'>; | ||
/** | ||
@@ -14,8 +14,34 @@ * Advanced options for `execCommand` | ||
export type ExecCommandOptionsAdvanced = { | ||
/** | ||
* Command to run | ||
*/ | ||
readonly command: string; | ||
/** | ||
* Arguments for the command | ||
*/ | ||
readonly args: string[]; | ||
/** | ||
* Current working directory | ||
* | ||
* @default process.cwd() | ||
*/ | ||
readonly cwd: string; | ||
/** | ||
* If `true` then the command will throw an error if the return code is not `0` | ||
*/ | ||
readonly crashOnError: boolean; | ||
/** | ||
* Timeout in milliseconds | ||
*/ | ||
readonly timeout: number; | ||
/** | ||
* If `true` then the command and entire CLI output will be logged to the console | ||
* | ||
* @default false | ||
*/ | ||
readonly isVerbose?: boolean; | ||
}; | ||
export {}; | ||
/** | ||
* TODO: [⏳] Make DEFAULT_TIMEOUT_MS as global constant | ||
*/ |
{ | ||
"name": "@promptbook/anthropic-claude", | ||
"version": "0.72.0-32", | ||
"version": "0.72.0-33", | ||
"description": "Supercharge your use of large language models", | ||
@@ -55,3 +55,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.72.0-32" | ||
"@promptbook/core": "0.72.0-33" | ||
}, | ||
@@ -58,0 +58,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
736841
14098