Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: PR checks

on:
pull_request:

permissions:
contents: read

jobs:
verify:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Lint
run: bun run lint

- name: Format check
run: bun run format:check

- name: Build
run: bun run build

- name: Build example
working-directory: example
run: |
bun install --frozen-lockfile
bun test .

- name: Test
run: bun run test
4 changes: 1 addition & 3 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,4 @@ jobs:

- name: Publish to npm
if: steps.version_check.outputs.changed == 'true'
run: |
npm install -g npm@latest
npm publish --provenance --access public
run: npm publish --provenance --access public
6 changes: 2 additions & 4 deletions dashboard/src/lib/components/PromptModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@
class="tall"
bind:value={content}
placeholder="Enter your system prompt here..."
required
></textarea>
required></textarea>
</div>
<div class="form-group">
<label for="prompt-schema">Expected Output Schema (JSON)</label>
Expand Down Expand Up @@ -217,8 +216,7 @@
class="medium"
bind:value={evaluationCriteria}
placeholder="Describe how to evaluate the quality of AI outputs. The judge will return a score (0-1) and a reason."
required
></textarea>
required></textarea>
<small>Issues found will be used for scoring.</small>
</div>
{/if}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"dev:backend": "bun --watch src/server.ts",
"dev:dashboard": "cd dashboard && bun run dev",
"format": "bun run prettier --write \"src/**/*.ts\" \"dashboard/src/**/*.{svelte,ts}\" \"*.json\"",
"format:check": "bun run prettier --check \"src/**/*.ts\" \"dashboard/src/**/*.{svelte,ts}\" \"*.json\"",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"test": "NODE_ENV=test bun test src",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2022",
"module": "commonjs",
"lib": ["ES2020", "ES2022.Error"],
"lib": ["ES2022"],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
Expand Down
Loading