46 Commits

Author SHA1 Message Date
Paulo Santos
e608d2ba8a update dist 2026-02-15 00:26:15 +00:00
Paulo Santos
27965bc3a4 updated docs for missing prompt.yml model parameters 2026-02-15 00:23:47 +00:00
Paulo Santos
71c69d42b5 document temperature and top-p inputs in readme 2026-02-04 12:12:24 +00:00
Yonatan Golick
6402ff8f9a Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-18 11:58:58 +02:00
Yonatan Golick
ce720b3d0c Fix header validation per RFC 7230 and add null check
Address Copilot AI feedback:
- Remove underscore support from header names (RFC 7230 compliance)
- Add explicit null check for JSON parsing
- Update validation regex to /^[A-Za-z0-9-]+$/
- Add test case for null value handling
- Update documentation to clarify header name requirements

Changes:
- Header names now only accept alphanumeric characters and hyphens
- Improved error messages for invalid headers
- Added test for null JSON input
- Updated APIM example tests

All 81 tests passing.
2026-01-18 11:35:18 +02:00
Yonatan Golick
6d144ac474 Add custom headers support for API Management integration
This change adds support for custom HTTP headers in AI inference requests,
enabling integration with API Management platforms (Azure APIM, AWS API
Gateway, Kong, etc.) and custom request routing/tracking.

Features:
- New 'custom-headers' input supporting both YAML and JSON formats
- Auto-detection of input format for better UX
- Header name validation (alphanumeric, hyphens, underscores)
- Automatic masking of sensitive headers in logs
- Full backward compatibility (optional parameter)

Changes:
- Added parseCustomHeaders() function in helpers.ts
- Updated InferenceRequest interface with optional customHeaders field
- Modified simpleInference() and mcpInference() to pass headers to OpenAI client
- Added 18 comprehensive test cases
- Updated documentation with examples and use cases

All 80 tests passing. Zero breaking changes.
2026-01-18 11:24:13 +02:00
Maarten van Diemen
8a5d2ea4a1 Merge branch 'main' into feature/pass-toolsets 2025-11-30 22:08:41 +01:00
Sevil
9e60aa0a3f Lint fix
Lint fix
2025-11-29 21:15:11 +01:00
Maarten van Diemen
e8987e92e0 Fix linter
Update GitHub Actions
2025-11-26 22:58:31 +01:00
Sevil
d061fc5469 Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-25 14:59:33 +01:00
Maarten van Diemen
16f2d5c46b Merge with main 2025-11-24 13:12:28 +01:00
Sean Goedecke
48758ceaff Merge branch 'main' into feature/pass-toolsets 2025-11-24 10:19:55 +11:00
Simon Taranto
4bb01ee5ee Clarify PAT requirement for github-mcp-token
I mistakenly read the description of the mcp-token field to mean I needed a "PAT for MCP" as if there were a PAT permission for MCP. This change clarifies the language.
2025-11-21 13:36:45 -05:00
Maarten van Diemen
4b4b2e8afe build index.js 2025-11-02 23:37:23 +01:00
Maarten van Diemen
932a853db4 Initial implementation for passing toolsets 2025-11-02 23:20:24 +01:00
Sevil
e0da58c63f Clarify token requirements for MCP integration
Updated authentication section to clarify token usage for MCP integration.
2025-10-25 22:53:45 +02:00
FidelusAleksander
7fa0024f13 docs: run prettier 2025-08-18 14:42:29 +02:00
FidelusAleksander
a1d07305b7 docs: update github-mcp-token description 2025-08-15 08:22:55 +02:00
FidelusAleksander
6e0d8949d8 docs: update documentation on mcp usage 2025-08-15 07:52:22 +02:00
Sean Goedecke
15868b88f4 Allow templating variables from files 2025-08-05 01:32:32 +00:00
Sean Goedecke
ea24ec2ed4 Update README.md
Co-authored-by: Yuzuki <36879321+Yuzuki-S@users.noreply.github.com>
2025-08-04 13:52:21 +10:00
Sean Goedecke
b9f9444fb7 update docs 2025-08-04 03:41:34 +00:00
Sean Goedecke
419f171f16 Separate out MCP token 2025-08-04 03:06:53 +00:00
Marais Rossouw
7e2aa19f3b chore: use github's shared prettier-config 2025-07-24 19:11:15 +10:00
Marais Rossouw
77f8afc857 chore: drop coverage, for now 2025-07-24 18:17:25 +10:00
Sean Goedecke
d0b2f23c43 Merge branch 'main' into sgoedecke/prompt-file 2025-07-21 15:01:31 +10:00
Sean Goedecke
29b5f08d0f Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-21 13:50:38 +10:00
Sean Goedecke
1780121e3b Support .prompt.yml files 2025-07-21 00:11:26 +00:00
Sean Goedecke
ba509f9275 update readme 2025-07-16 07:51:13 +00:00
Sean Goedecke
7cf0fec5c5 Merge branch 'main' into sgoedecke/mcp 2025-07-16 12:21:38 +10:00
Sean Goedecke
4fd6464105 Add read-only MCP support 2025-07-16 02:19:49 +00:00
Sean Goedecke
0b82ac474e Sketch out MCP 2025-07-15 23:23:39 +00:00
Sean Goedecke
5129fed34c update readme 2025-06-20 00:21:26 +00:00
Matthew Leibowitz
91ba53d8b4 feat: Add system-prompt-file input for file-based system prompts
This enhancement adds the ability to load a system prompt from a file, similar to
the existing prompt-file functionality, providing more flexibility when working with
complex system prompts.

Key changes:
- Added new `system-prompt-file` input to action.yml with proper description
- Updated main.ts implementation to handle file-based system prompts with:
  - File existence checking and appropriate error handling
  - Proper precedence (system-prompt-file takes priority over system-prompt)
  - Consistent error messages with existing prompt-file implementation

Test coverage added:
- Basic usage: Test verifies system-prompt-file loads content correctly
- Error handling: Test ensures proper errors when system-prompt-file doesn't exist
- Precedence: Test confirms system-prompt-file overrides system-prompt when both exist
- Integration: Test validates both prompt-file and system-prompt-file work together
- Max tokens: Test verifies custom token limits are properly passed to the model
- Testing infrastructure: Improved mock implementations that detect unexpected calls

Documentation:
- Updated README.md with system-prompt-file in inputs table
- Added dedicated usage example for system-prompt-file
- Fixed formatting in inputs table

CI/CD:
- Updated workflow to test system-prompt-file functionality with actual file content

This feature maintains backward compatibility while adding a useful option
for workflows that need to use more complex system prompts stored in files.
2025-05-24 03:50:15 +02:00
Sean Goedecke
5b3308935f Merge branch 'main' into joshmgross/fix-readme 2025-04-22 08:36:33 +10:00
Aiqiao Yan
1c557cdc25 react to feedback 2025-04-17 20:23:07 +00:00
Aiqiao Yan
43f6a3831f read prompt from file and print output to file 2025-04-17 17:41:35 +00:00
Josh Gross
a2fd55fb87 Merge branch 'main' into joshmgross/fix-readme 2025-04-14 14:22:13 -04:00
Sean Goedecke
a3d57cc6dc Linting 2025-04-10 21:33:06 +00:00
Sean Goedecke
6baaaac50c Add license section to readme 2025-04-10 21:24:37 +00:00
Josh Gross
72f855ca83 Clarify description in README 2025-04-10 08:53:19 -04:00
Sean Goedecke
78d6b91d0b Lint README.md 2025-04-08 02:10:27 +00:00
Sean Goedecke
1a66a5968c Update README.md 2025-04-08 12:00:25 +10:00
Sean Goedecke
32ebbe708a Make token configurable 2025-04-07 04:53:19 +00:00
Sean Goedecke
d86d983567 update README 2025-04-07 00:09:42 +00:00
Sean Goedecke
0905e36402 Initial commit 2025-04-04 07:27:58 +11:00