Skip to content

Commit ee6b932

Browse files
author
kiran-garre
committed
merge commit
2 parents 264c308 + 754c4d5 commit ee6b932

File tree

1,687 files changed

+28264
-255325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,687 files changed

+28264
-255325
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
schemas/ @chaynabors

.github/dependabot.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,6 @@ updates:
1212
open-pull-requests-limit: 100
1313
commit-message:
1414
prefix: ci
15-
- package-ecosystem: "npm"
16-
directory: "/"
17-
schedule:
18-
interval: "daily"
19-
assignees:
20-
- "chaynabors"
21-
commit-message:
22-
prefix: fix
23-
prefix-development: chore
24-
include: scope
25-
open-pull-requests-limit: 100
26-
groups:
27-
eslint:
28-
patterns: ["eslint", "@eslint/*"]
29-
typescript-eslint:
30-
patterns: ["typescript-eslint", "@typescript-eslint/*"]
31-
vitest:
32-
patterns: ["vitest", "@vitest/*"]
33-
radix-ui:
34-
patterns: ["@radix-ui/*"]
3515
- package-ecosystem: "cargo"
3616
directory: "/"
3717
schedule:

.github/workflows/check-merge-conflicts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
if: steps.check-target-branch.outputs.is_main == 'false'
3030
id: check-conflicts
3131
run: |
32-
32+
3333
# Set Git identity for the merge operation
3434
git config --global user.email "[email protected]"
3535
git config --global user.name "GitHub Actions"

.github/workflows/mdbook.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Sample workflow for building and deploying a mdBook site to GitHub Pages
2+
#
3+
# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
4+
#
5+
name: Deploy mdBook site to Pages
6+
7+
on:
8+
# Runs on pushes targeting the default branch
9+
push:
10+
branches: ["main"]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
21+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23+
concurrency:
24+
group: "pages"
25+
cancel-in-progress: false
26+
27+
jobs:
28+
# Build job
29+
build:
30+
runs-on: ubuntu-latest
31+
env:
32+
MDBOOK_VERSION: 0.4.36
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Install mdBook
36+
run: |
37+
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
38+
rustup update
39+
cargo install --version ${MDBOOK_VERSION} mdbook
40+
- name: Setup Pages
41+
id: pages
42+
uses: actions/configure-pages@v5
43+
- name: Build with mdBook
44+
run: mdbook build
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: ./book
49+
50+
# Deployment job
51+
deploy:
52+
environment:
53+
name: github-pages
54+
url: ${{ steps.deployment.outputs.page_url }}
55+
runs-on: ubuntu-latest
56+
needs: build
57+
steps:
58+
- name: Deploy to GitHub Pages
59+
id: deployment
60+
uses: actions/deploy-pages@v4

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/rust.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Rust
22

33
on:
44
workflow_dispatch:
5-
pull_request:
65
push:
76

87
permissions:
@@ -57,10 +56,7 @@ jobs:
5756
- uses: actions/checkout@v4
5857
- name: Install dependencies (Linux)
5958
if: runner.os == 'Linux'
60-
run: sudo apt-get update && sudo apt-get install -y -qq build-essential pkg-config jq dpkg curl wget zstd cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compiler libfuse2 bash fish zsh shellcheck
61-
- name: Install dependencies (macOS)
62-
if: runner.os == 'Macos'
63-
run: brew install protobuf fish shellcheck
59+
run: sudo apt-get update && sudo apt-get install -y -qq build-essential pkg-config jq dpkg curl wget zstd cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compiler libfuse2 bash zsh
6460
# this needs to be nightly for code coverage
6561
- uses: dtolnay/rust-toolchain@nightly
6662
id: toolchain
@@ -76,17 +72,6 @@ jobs:
7672
~/.cargo/git/db/
7773
target/
7874
key: cargo-test-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ steps.toolchain.outputs.cachekey }}
79-
# TODO: Coverage fails with `error: unnecessary transmute` in `appkit-nsworkspace-bindings`
80-
# - name: Generate code coverage
81-
# run: cargo +nightly llvm-cov --locked --workspace --codecov --output-path lcov.info
82-
# - name: Upload coverage to Codecov
83-
# uses: codecov/codecov-action@v5
84-
# if: github.event.repository.fork == false
85-
# with:
86-
# token: ${{ secrets.CODECOV_TOKEN }}
87-
# files: lcov.info
88-
# fail_ci_if_error: true
89-
# env_vars: OS
9075
- name: Run tests
9176
run: cargo test --locked --workspace --lib --bins --test '*' --exclude fig_desktop-fuzz
9277

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# This is a terminal-bench workflow that is manually triggered
2+
# Template taken from https://github.com/actions/starter-workflows/blob/main/automation/manual.yml for reference
3+
4+
name: Terminal-Bench
5+
6+
# Controls when the action will run. Workflow runs when manually triggered using the UI
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
name:
11+
description: 'Run terminal-bench workflow to test Q CLI in real terminal environments.'
12+
default: 'all'
13+
required: true
14+
type: string
15+
16+
jobs:
17+
run-benchmark:
18+
# avoids disk storage issues
19+
runs-on: ubuntu-latest
20+
# makes these env vars available in main.py
21+
env:
22+
CHAT_DOWNLOAD_ROLE_ARN: ${{ secrets.CHAT_DOWNLOAD_ROLE_ARN }}
23+
CHAT_BUILD_BUCKET_NAME: ${{ secrets.CHAT_BUILD_BUCKET_NAME }}
24+
permissions:
25+
id-token: write
26+
contents: read
27+
steps:
28+
29+
# clear unnecessary storage to ensure docker containers have space
30+
- name: Cleanup and free disk space
31+
run: |
32+
sudo rm -rf /usr/share/dotnet
33+
sudo rm -rf /opt/ghc
34+
sudo rm -rf "/usr/local/share/boost"
35+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
36+
sudo rm -rf /usr/local/lib/android
37+
sudo rm -rf /usr/share/swift
38+
sudo apt-get clean
39+
df -h
40+
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
44+
# Captures git hash of branch to query specific S3 bucket
45+
- name: Set git hash
46+
run: |
47+
if [ -n "$GITHUB_SHA" ]; then
48+
git_hash=$(git rev-parse "$GITHUB_SHA")
49+
else
50+
git_hash="latest"
51+
fi
52+
# appends to github_env file
53+
echo "GIT_HASH=$git_hash" >> $GITHUB_ENV
54+
echo "Git hash set to: $git_hash"
55+
56+
- name: Set up Python
57+
uses: actions/setup-python@v4
58+
with:
59+
python-version: '3.13'
60+
61+
- name: Install dependencies
62+
run: |
63+
python -m pip install --upgrade pip
64+
pip install terminal-bench
65+
66+
# OIDC enabled for github for ArjunPersonal
67+
- name: Configure AWS credentials
68+
uses: aws-actions/configure-aws-credentials@v4
69+
with:
70+
role-to-assume: ${{ secrets.AWS_TB_ROLE }}
71+
aws-region: us-east-1
72+
73+
- name: Run terminal benchmark
74+
run: |
75+
cd terminal-bench-test
76+
tb run --agent-import-path main:AmazonQCLIAgent --dataset-name terminal-bench-core --dataset-version head
77+
78+
# uploads results if run fails as well to allow for easy log inspection
79+
- name: Upload results
80+
if: always()
81+
uses: actions/upload-artifact@v4
82+
with:
83+
name: benchmark-results
84+
path: terminal-bench-test/runs/

.github/workflows/typescript.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/typos.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Typos
22

33
on:
44
workflow_dispatch:
5-
pull_request:
65
push:
76

87
permissions:
@@ -19,4 +18,4 @@ jobs:
1918
- name: Check spelling
2019
uses: crate-ci/typos@master
2120
with:
22-
config: .typos.toml
21+
config: .typos.toml

.lintstagedrc.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ export default {
77
"cd proto && buf lint && buf format --exit-code > /dev/null",
88
],
99
"*.py": ["ruff format --check", "ruff check"],
10-
"*.{ts,js,tsx,jsx,mjs}": "prettier --check",
1110
"!(*test*)*": "typos --config .typos.toml",
1211
};

0 commit comments

Comments
 (0)