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
dependabot[bot]
d0b41e9e29
Bump the npm-development group across 1 directory with 14 updates
...
Bumps the npm-development group with 14 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [@azure/core-sse](https://github.com/Azure/azure-sdk-for-js ) | `2.1.3` | `2.2.0` |
| [@eslint/compat](https://github.com/eslint/rewrite ) | `1.2.7` | `1.2.8` |
| [@github/local-action](https://github.com/github/local-action ) | `3.1.4` | `3.2.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `20.17.28` | `20.17.30` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) | `8.28.0` | `8.30.1` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) | `8.28.0` | `8.30.1` |
| [eslint](https://github.com/eslint/eslint ) | `9.23.0` | `9.24.0` |
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) | `10.1.1` | `10.1.2` |
| [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript ) | `4.3.1` | `4.3.2` |
| [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) | `5.2.5` | `5.2.6` |
| [prettier-eslint](https://github.com/prettier/prettier-eslint ) | `16.3.0` | `16.3.2` |
| [rollup](https://github.com/rollup/rollup ) | `4.38.0` | `4.40.0` |
| [ts-jest](https://github.com/kulshekhar/ts-jest ) | `29.3.0` | `29.3.2` |
| [typescript](https://github.com/microsoft/TypeScript ) | `5.8.2` | `5.8.3` |
Updates `@azure/core-sse` from 2.1.3 to 2.2.0
- [Release notes](https://github.com/Azure/azure-sdk-for-js/releases )
- [Changelog](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/Changelog-for-next-generation.md )
- [Commits](https://github.com/Azure/azure-sdk-for-js/compare/@azure/core-sse_2.1.3...@azure/core-sse_2.2.0 )
Updates `@eslint/compat` from 1.2.7 to 1.2.8
- [Release notes](https://github.com/eslint/rewrite/releases )
- [Changelog](https://github.com/eslint/rewrite/blob/main/release-please-config.json )
- [Commits](https://github.com/eslint/rewrite/compare/compat-v1.2.7...compat-v1.2.8 )
Updates `@github/local-action` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/github/local-action/releases )
- [Changelog](https://github.com/github/local-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/local-action/compare/v3.1.4...v3.2 )
Updates `@types/node` from 20.17.28 to 20.17.30
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `@typescript-eslint/eslint-plugin` from 8.28.0 to 8.30.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.30.1/packages/eslint-plugin )
Updates `@typescript-eslint/parser` from 8.28.0 to 8.30.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.30.1/packages/parser )
Updates `eslint` from 9.23.0 to 9.24.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v9.23.0...v9.24.0 )
Updates `eslint-config-prettier` from 10.1.1 to 10.1.2
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v10.1.1...v10.1.2 )
Updates `eslint-import-resolver-typescript` from 4.3.1 to 4.3.2
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases )
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v4.3.1...v4.3.2 )
Updates `eslint-plugin-prettier` from 5.2.5 to 5.2.6
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.5...v5.2.6 )
Updates `prettier-eslint` from 16.3.0 to 16.3.2
- [Release notes](https://github.com/prettier/prettier-eslint/releases )
- [Changelog](https://github.com/prettier/prettier-eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier-eslint/compare/v16.3.0...v16.3.2 )
Updates `rollup` from 4.38.0 to 4.40.0
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.38.0...v4.40.0 )
Updates `ts-jest` from 29.3.0 to 29.3.2
- [Release notes](https://github.com/kulshekhar/ts-jest/releases )
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.3.0...v29.3.2 )
Updates `typescript` from 5.8.2 to 5.8.3
- [Release notes](https://github.com/microsoft/TypeScript/releases )
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml )
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.8.2...v5.8.3 )
---
updated-dependencies:
- dependency-name: "@azure/core-sse"
dependency-version: 2.2.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: "@eslint/compat"
dependency-version: 1.2.8
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: "@github/local-action"
dependency-version: 3.2.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: "@types/node"
dependency-version: 20.17.30
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-version: 8.30.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: "@typescript-eslint/parser"
dependency-version: 8.30.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: eslint
dependency-version: 9.24.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: eslint-config-prettier
dependency-version: 10.1.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: eslint-import-resolver-typescript
dependency-version: 4.3.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: eslint-plugin-prettier
dependency-version: 5.2.6
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: prettier-eslint
dependency-version: 16.3.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: rollup
dependency-version: 4.40.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: ts-jest
dependency-version: 29.3.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: typescript
dependency-version: 5.8.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-23 08:24:38 +00:00
dependabot[bot]
2d37c90e93
Bump @rollup/rollup-linux-x64-gnu from 4.39.0 to 4.40.0
...
Bumps [@rollup/rollup-linux-x64-gnu](https://github.com/rollup/rollup ) from 4.39.0 to 4.40.0.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.39.0...v4.40.0 )
---
updated-dependencies:
- dependency-name: "@rollup/rollup-linux-x64-gnu"
dependency-version: 4.40.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-17 21:12:36 +00:00
Aiqiao Yan
43f6a3831f
read prompt from file and print output to file
2025-04-17 17:41:35 +00:00
Sean Goedecke
5ac68dad30
bump local action package
2025-04-10 21:26:29 +00:00
Sean Goedecke
2de3b6e872
Merge pull request #2 from actions/dependabot/npm_and_yarn/rollup/rollup-linux-x64-gnu-4.39.0
...
Bump @rollup/rollup-linux-x64-gnu from 4.38.0 to 4.39.0
2025-04-08 15:37:38 +10:00
dependabot[bot]
213eb60e28
Bump @babel/helpers from 7.26.9 to 7.27.0
...
Bumps [@babel/helpers](https://github.com/babel/babel/tree/HEAD/packages/babel-helpers ) from 7.26.9 to 7.27.0.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.27.0/packages/babel-helpers )
---
updated-dependencies:
- dependency-name: "@babel/helpers"
dependency-version: 7.27.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-07 03:13:11 +00:00
Sean Goedecke
183a647877
Setup initial inference flow and install packages
2025-04-03 21:55:32 +00:00
dependabot[bot]
7ae29e4a7c
Bump @rollup/rollup-linux-x64-gnu from 4.38.0 to 4.39.0
...
Bumps [@rollup/rollup-linux-x64-gnu](https://github.com/rollup/rollup ) from 4.38.0 to 4.39.0.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.38.0...v4.39.0 )
---
updated-dependencies:
- dependency-name: "@rollup/rollup-linux-x64-gnu"
dependency-version: 4.39.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-03 20:30:45 +00:00
Sean Goedecke
0905e36402
Initial commit
2025-04-04 07:27:58 +11:00