Skip to content

Commit 2b10c2c

Browse files
committed
Add AGENTS.md for Codex (testing)
1 parent 6bf8a8f commit 2b10c2c

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Public/Realtime/AGENTS.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Code Style
2+
- Follow the PSScriptAnalyzer rules
3+
- Use `Invoke-ScriptAnalyzer -Settings PSScriptAnalyzerSettings.psd1` to check your code against the project's settings
4+
- When you create a new file, should use CRLF line endings and UTF-8 encoding.
5+
6+
## Testing
7+
- Run `Invoke-Pester -Tag Offilne`
8+
- Ignore warning messages in tests. it's normal to have some warnings
9+
- It will spend long time to run all tests, so run only the ones you need
10+
- When you edit only comments, readme, or other non-code files, you can skip the tests
11+
12+
## Documentation
13+
- Update the cmdlet help files in `/Docs` if you add new parameters or change the behavior of existing cmdlets
14+
- After updating the help files, run `New-ExternalHelp -Path ./Docs/ -OutputPath ./PSOpenAI-Help.xml -Force` to build the help xml file.
15+
16+
## References
17+
- This project is PowerShell wrapper for OpenAI API, so you can refer to the [OpenAI API documentation](https://platform.openai.com/docs/api-reference) for details on how the API works.

publish.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Param (
1111

1212
[Parameter(Mandatory = $false)]
1313
[ValidateNotNullOrEmpty()]
14-
[string[]]$ExcludeFiles = @('.gitignore', '.gitmodules', '.gitattributes', 'PSScriptAnalyzerRules.psd1'),
14+
[string[]]$ExcludeFiles = @('.gitignore', '.gitmodules', '.gitattributes', 'PSScriptAnalyzerRules.psd1', 'AGENTS.md'),
1515

1616
[switch]$WhatIf
1717
)

0 commit comments

Comments
 (0)