updated anthropic rule

This commit is contained in:
Mick Grove 2025-10-23 15:02:30 -07:00
commit 01460fe00c
5 changed files with 1106 additions and 8 deletions

View file

@ -124,7 +124,9 @@ cargo build --release --target x86_64-pc-windows-msvc || (
echo Generating CHECKSUM.txt...
powershell -Command ^
"Get-FileHash .\target\x86_64-pc-windows-msvc\release\%PROJECT_NAME%.exe -Algorithm SHA256 | Out-File .\target\x86_64-pc-windows-msvc\release\CHECKSUM.txt"
"$hash = Get-FileHash '.\target\x86_64-pc-windows-msvc\release\%PROJECT_NAME%.exe' -Algorithm SHA256;" ^
"$line = '{0} {1}' -f $hash.Hash, (Split-Path -Leaf $hash.Path);" ^
"Set-Content -Path '.\target\x86_64-pc-windows-msvc\release\CHECKSUM.txt' -Value $line"
if not exist "target\release" mkdir "target\release"
copy /Y "target\x86_64-pc-windows-msvc\release\%PROJECT_NAME%.exe" "target\release\" >nul
@ -137,7 +139,10 @@ powershell -Command "Compress-Archive -Path '%PROJECT_NAME%.exe','CHECKSUM-windo
if exist "%PROJECT_NAME%-windows-x64.zip" (
REM -- append the ZIPs SHA-256 to the existing checksum file ----
certutil -hashfile "%PROJECT_NAME%-windows-x64.zip" SHA256 >> "CHECKSUM-windows-x64.txt"
powershell -Command ^
"$hash = Get-FileHash '.\%PROJECT_NAME%-windows-x64.zip' -Algorithm SHA256;" ^
"$line = '{0} {1}' -f $hash.Hash, (Split-Path -Leaf $hash.Path);" ^
"Add-Content -Path '.\CHECKSUM-windows-x64.txt' -Value $line"
echo Created: %PROJECT_NAME%-windows-x64.zip
) else (
echo ERROR: Archive not created.

View file

@ -46,5 +46,5 @@ rules:
- report_response: true
- type: WordMatch
words:
- '"type":"invalid_request_error"'
- '"type":"message"'
url: https://api.anthropic.com/v1/messages

View file

@ -22,15 +22,14 @@ rules:
type: Http
content:
request:
body: |
{'text':''}
body: '{"text":""}'
headers:
Content-Type: application/json
method: POST
response_matcher:
- type: StatusMatch
status:
- 200
- 400
- report_response: true
type: WordMatch
words:

View file

@ -47,7 +47,7 @@ pub struct AzureRepoSpecifiers {
pub project: Vec<String>,
/// Include repositories from all projects within the specified organizations
#[arg(long = "azure-all-projects", alias = "all-azure-projects")]
#[arg(long = "all-projects", alias = "azure-all-projects")]
pub all_projects: bool,
/// Skip repositories when enumerating Azure sources (format: ORGANIZATION/PROJECT/REPOSITORY)
@ -59,7 +59,7 @@ pub struct AzureRepoSpecifiers {
pub exclude_repos: Vec<String>,
/// Filter by repository type
#[arg(long = "azure-repo-type", default_value_t = AzureRepoType::Source)]
#[arg(long = "repo-type", alias = "azure-repo-type", default_value_t = AzureRepoType::Source)]
pub repo_type: AzureRepoType,
}

1094
tests/cli_subcommands.rs Normal file

File diff suppressed because it is too large Load diff