Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9076475
Add working annotations
arcaputo3 Apr 9, 2025
bcec127
Reduce redundancy
arcaputo3 Apr 9, 2025
ca6aa7c
Add correct description annotations
arcaputo3 Apr 9, 2025
57b6618
Add prompt and resource handling, though resources still broken
arcaputo3 Apr 9, 2025
6762434
Refactor macros for smaller file length
arcaputo3 Apr 10, 2025
eab8a96
Fix resource handling and improve annotations
arcaputo3 Apr 11, 2025
38bb015
Add tests and update template handling
arcaputo3 Apr 11, 2025
18e1148
Add generic and complex scala type handling
arcaputo3 Apr 13, 2025
a2be2f4
Leverage `properties` over `$defs`
arcaputo3 Apr 14, 2025
5f0ca12
Fix optional parameter handling in map function conversion
arcaputo3 Apr 14, 2025
55316c6
Refactor server to use async API
arcaputo3 Apr 14, 2025
944523b
Improve macro utilities and JSON schema generation
arcaputo3 Apr 14, 2025
78b082a
Reorganize and clean up ManualServer example
arcaputo3 Apr 14, 2025
94e491a
Cleanup remaining macros and processors
arcaputo3 Apr 14, 2025
f78970b
Add tests for Option type handling in schemas
arcaputo3 Apr 14, 2025
5a5dba0
Add guide for working with Option types
arcaputo3 Apr 14, 2025
ea5c338
Improve schema generation and add parameter annotation test
arcaputo3 Apr 14, 2025
35579fc
Add support for param descriptions
arcaputo3 Apr 14, 2025
bbe7bc3
Refactor annotation processing with generic extraction methods
arcaputo3 Apr 16, 2025
5f530bb
Add JacksonConverter for type-safe parameter handling
arcaputo3 Apr 17, 2025
8089afa
Simplify documentation and cleanup example references
arcaputo3 Apr 17, 2025
0df8ed9
Implement Zero-Day Feature Pack (ZD-1 to ZD-4)
arcaputo3 Apr 17, 2025
e414887
Implement Phase 1 - P1-001: Macro Refactor
arcaputo3 Apr 17, 2025
a3423a8
Implement context propagation for handler tools
arcaputo3 Apr 17, 2025
a336e72
Refactor: Rename package/classes and implement CI/CD with sbt plugins
arcaputo3 Apr 17, 2025
9696398
Ignore staged changes
arcaputo3 Apr 17, 2025
d08789b
Use Java 17+
arcaputo3 Apr 17, 2025
471b564
Use Java 17+
arcaputo3 Apr 17, 2025
a4b8bec
Add additional tests and remove need for non-contextual tools
arcaputo3 Apr 18, 2025
eb052b7
Increase test coverage
arcaputo3 Apr 18, 2025
382022e
Increase test coverage
arcaputo3 Apr 19, 2025
f0cbf14
Reduce jackson complexity and increase coverage
arcaputo3 Apr 19, 2025
2be6e14
Refactor tool, prompt, and resource macro processing
arcaputo3 Apr 19, 2025
f107d02
Fix compile time warnings
arcaputo3 Apr 19, 2025
ee51616
Add simple extension tests and remove coverage requirements
arcaputo3 Apr 19, 2025
92e5b77
Remove codecov and fix scalafix
arcaputo3 Apr 19, 2025
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
142 changes: 142 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# This file was automatically generated by sbt-github-actions using the
# githubWorkflowGenerate task. You should add and commit this file to
# your git repository. It goes without saying that you shouldn't edit
# this file by hand! Instead, if you wish to make changes, you should
# change your sbt build configuration to revise the workflow description
# to meet your needs, then regenerate this file.

name: Continuous Integration

on:
pull_request:
branches: [main]
push:
branches: [main]
tags: [v*]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest]
scala: [3.6.4]
java: [temurin@17, temurin@21, temurin@24]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java (temurin@17)
if: matrix.java == 'temurin@17'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: sbt

- name: Setup Java (temurin@21)
if: matrix.java == 'temurin@21'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt

- name: Setup Java (temurin@24)
if: matrix.java == 'temurin@24'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 24
cache: sbt

- name: Setup sbt
uses: sbt/setup-sbt@v1

- name: Scalafmt & Scalafix
run: sbt '++ ${{ matrix.scala }}' scalafmtCheckAll scalafixAll

- name: Tests & Coverage
run: sbt '++ ${{ matrix.scala }}' coverage test coverageAggregate

- name: Check that workflows are up to date
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck

- name: Build project
run: sbt '++ ${{ matrix.scala }}' test

- name: Compress target directories
run: tar cf targets.tar target project/target

- name: Upload target directories
uses: actions/upload-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
path: targets.tar

publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
strategy:
matrix:
os: [ubuntu-latest]
scala: [3.6.4]
java: [temurin@17]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java (temurin@17)
if: matrix.java == 'temurin@17'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: sbt

- name: Setup Java (temurin@21)
if: matrix.java == 'temurin@21'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt

- name: Setup Java (temurin@24)
if: matrix.java == 'temurin@24'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 24
cache: sbt

- name: Setup sbt
uses: sbt/setup-sbt@v1

- name: Download target directories (3.6.4)
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-3.6.4-${{ matrix.java }}

- name: Inflate target directories (3.6.4)
run: |
tar xf targets.tar
rm targets.tar

- name: Publish project
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: sbt ci-release
60 changes: 60 additions & 0 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This file was automatically generated by sbt-github-actions using the
# githubWorkflowGenerate task. You should add and commit this file to
# your git repository. It goes without saying that you shouldn't edit
# this file by hand! Instead, if you wish to make changes, you should
# change your sbt build configuration to revise the workflow description
# to meet your needs, then regenerate this file.

name: Clean

on: push

jobs:
delete-artifacts:
name: Delete Artifacts
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Delete artifacts
shell: bash {0}
run: |
# Customize those three lines with your repository and credentials:
REPO=${GITHUB_API_URL}/repos/${{ github.repository }}

# A shortcut to call GitHub API.
ghapi() { curl --silent --location --user _:$GITHUB_TOKEN "$@"; }

# A temporary file which receives HTTP response headers.
TMPFILE=$(mktemp)

# An associative array, key: artifact name, value: number of artifacts of that name.
declare -A ARTCOUNT

# Process all artifacts on this repository, loop on returned "pages".
URL=$REPO/actions/artifacts
while [[ -n "$URL" ]]; do

# Get current page, get response headers in a temporary file.
JSON=$(ghapi --dump-header $TMPFILE "$URL")

# Get URL of next page. Will be empty if we are at the last page.
URL=$(grep '^Link:' "$TMPFILE" | tr ',' '\n' | grep 'rel="next"' | head -1 | sed -e 's/.*<//' -e 's/>.*//')
rm -f $TMPFILE

# Number of artifacts on this page:
COUNT=$(( $(jq <<<$JSON -r '.artifacts | length') ))

# Loop on all artifacts on this page.
for ((i=0; $i < $COUNT; i++)); do

# Get name of artifact and count instances of this name.
name=$(jq <<<$JSON -r ".artifacts[$i].name?")
ARTCOUNT[$name]=$(( $(( ${ARTCOUNT[$name]} )) + 1))

id=$(jq <<<$JSON -r ".artifacts[$i].id?")
size=$(( $(jq <<<$JSON -r ".artifacts[$i].size_in_bytes?") ))
printf "Deleting '%s' #%d, %'d bytes\n" $name ${ARTCOUNT[$name]} $size
ghapi -X DELETE $REPO/actions/artifacts/$id
done
done
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ build/

### Scala ###
.bsp/
.scala-build
.scala-build

### Diff ###
changes.txt
15 changes: 0 additions & 15 deletions .scala-cli/config.json

This file was deleted.

16 changes: 16 additions & 0 deletions .scalafix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Specify the dialect globally for rules that are dialect-sensitive
dialect = scala3

# List the rules to be applied
rules = [
RemoveUnused
LeakingImplicitClassVal
OrganizeImports
]

OrganizeImports {
groupedImports = Explode
importSelectorsOrder = Ascii
targetDialect = Scala3
removeUnused = true
}
5 changes: 5 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version = 3.7.5
maxColumn = 100
runner.dialect = scala3
align.preset = none
newlines.topLevelStatements = [before]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Richie Caputo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading