diff --git a/.github/workflows/genai-commander.yml b/.github/workflows/genai-commander.yml index 32aedf7e7d..9ace478afd 100644 --- a/.github/workflows/genai-commander.yml +++ b/.github/workflows/genai-commander.yml @@ -2,12 +2,6 @@ name: genai commander on: issue_comment: types: [created] -env: - GENAISCRIPT_DEFAULT_REASONING_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_MODEL }} - GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL }} - GENAISCRIPT_DEFAULT_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_MODEL }} - GENAISCRIPT_DEFAULT_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_SMALL_MODEL }} - GENAISCRIPT_DEFAULT_VISION_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_VISION_MODEL }} jobs: pr_commented: # must be PR and have a comment starting with /genai @@ -16,6 +10,7 @@ jobs: permissions: contents: read pull-requests: write + models: read steps: # only allow PRs from the same repository - name: Check if PR is from the same repository @@ -79,23 +74,16 @@ jobs: run: yarn install --frozen-lockfile - name: compile run: yarn compile - # - # Start Ollama in a docker container - # - - name: start ollama - run: yarn ollama:start - # Execute the /genai found in the comment - # - name: genaiscript pr-describe if: startsWith(github.event.comment.body, '/genai describe') - run: node packages/cli/built/genaiscript.cjs run pr-describe -prd --out-trace $GITHUB_STEP_SUMMARY --vars defaultBranch=dev + run: node packages/cli/built/genaiscript.cjs run pr-describe -p github -prd --out-trace $GITHUB_STEP_SUMMARY --vars defaultBranch=dev env: GITHUB_ISSUE: ${{ github.event.issue.number }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_COMMIT_SHA: ${{ fromJSON(steps.sha.outputs.result).sha }} - name: genaiscript pr-review if: startsWith(github.event.comment.body, '/genai review') - run: node packages/cli/built/genaiscript.cjs run pr-review -prc --out-trace $GITHUB_STEP_SUMMARY --vars defaultBranch=dev + run: node packages/cli/built/genaiscript.cjs run pr-review -p github -prc --out-trace $GITHUB_STEP_SUMMARY --vars defaultBranch=dev env: GITHUB_ISSUE: ${{ github.event.issue.number }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/genai-investigator.yml b/.github/workflows/genai-investigator.yml index 0227665bef..dcc6a3836c 100644 --- a/.github/workflows/genai-investigator.yml +++ b/.github/workflows/genai-investigator.yml @@ -11,6 +11,7 @@ permissions: contents: read actions: read pull-requests: write + models: read env: GENAISCRIPT_DEFAULT_REASONING_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_MODEL }} GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL }} diff --git a/.github/workflows/genai-issue-bot.yml b/.github/workflows/genai-issue-bot.yml index 8903d6665c..2d8b261268 100644 --- a/.github/workflows/genai-issue-bot.yml +++ b/.github/workflows/genai-issue-bot.yml @@ -17,6 +17,7 @@ jobs: permissions: contents: read issues: write + models: read steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/genai-issue-review.yml b/.github/workflows/genai-issue-review.yml index b321c7d3ff..53670e6883 100644 --- a/.github/workflows/genai-issue-review.yml +++ b/.github/workflows/genai-issue-review.yml @@ -5,18 +5,13 @@ on: concurrency: group: issues-${{ github.event.issue.number }} cancel-in-progress: true -env: - GENAISCRIPT_DEFAULT_REASONING_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_MODEL }} - GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL }} - GENAISCRIPT_DEFAULT_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_MODEL }} - GENAISCRIPT_DEFAULT_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_SMALL_MODEL }} - GENAISCRIPT_DEFAULT_VISION_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_VISION_MODEL }} jobs: build: runs-on: ubuntu-latest permissions: contents: read issues: write + models: read steps: - uses: actions/checkout@v4 with: @@ -29,10 +24,8 @@ jobs: - run: yarn install --frozen-lockfile - name: compile run: yarn compile - - name: start ollama - run: yarn ollama:start - name: genaiscript issue-review - run: node packages/cli/built/genaiscript.cjs run issue-reviewer -prc --out-trace $GITHUB_STEP_SUMMARY + run: node packages/cli/built/genaiscript.cjs run issue-reviewer -p github -prc --out-trace $GITHUB_STEP_SUMMARY env: GITHUB_ISSUE: ${{ github.event.issue.number }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/genai-pr-commit-review.yml b/.github/workflows/genai-pr-commit-review.yml index 5d16429ce4..a66bcfca78 100644 --- a/.github/workflows/genai-pr-commit-review.yml +++ b/.github/workflows/genai-pr-commit-review.yml @@ -18,6 +18,7 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write + models: read steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/genai-pr-docs-commit-review.yml b/.github/workflows/genai-pr-docs-commit-review.yml index 15c316aae8..0b3c630871 100644 --- a/.github/workflows/genai-pr-docs-commit-review.yml +++ b/.github/workflows/genai-pr-docs-commit-review.yml @@ -15,6 +15,7 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write + models: read steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/genai-pr-review.yml b/.github/workflows/genai-pr-review.yml index 12fd2a98a0..8df0fe4ba9 100644 --- a/.github/workflows/genai-pr-review.yml +++ b/.github/workflows/genai-pr-review.yml @@ -22,6 +22,7 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write + models: read steps: - uses: actions/checkout@v4 with: diff --git a/docs/genaisrc/blog-narration.genai.mts b/docs/genaisrc/blog-narration.genai.mts index 0f590ef7ca..43b709053b 100644 --- a/docs/genaisrc/blog-narration.genai.mts +++ b/docs/genaisrc/blog-narration.genai.mts @@ -135,7 +135,8 @@ console.log(`audio file: ${filename}`) console.log(`target file: ${target}`) await workspace.copyFile(filename, target) +await workspace.writeText(path.changeext(target, ".txt"), summary) // convert to video await host.exec( - `ffmpeg -loop 1 -i docs/src/assets/logo.svg -i "${target}" -c:v libx264 -c:a copy -shortest "${path.changeext(target, ".mp4")}"` + `ffmpeg -loop 1 -i ${path.changeext(file.filename, ".png")} -i "${target}" -c:v libx264 -c:a copy -shortest "${path.changeext(target, ".mp4")}"` ) diff --git a/docs/src/components/AudioPlayer.astro b/docs/src/components/AudioPlayer.astro index d3f251a43a..db564ab97d 100644 --- a/docs/src/components/AudioPlayer.astro +++ b/docs/src/components/AudioPlayer.astro @@ -12,9 +12,11 @@ const title = aiDisclaimer ---
-