8 次代码提交 d6770dbcff ... df210c081e

作者 SHA1 备注 提交日期
  Kilian Lieret df210c081e Doc: Set favicon (#820) 17 小时之前
  pre-commit-ci[bot] 58e8277f36 chore: update pre-commit hooks (#819) 17 小时之前
  dependabot[bot] 3100cd2d38 Bump actions/checkout from 2 to 4 (#818) 21 小时之前
  dependabot[bot] a38f4647ae Bump codecov/codecov-action from 4.0.1 to 4.6.0 (#817) 21 小时之前
  Kilian Lieret dfc437aa67 CI: Fix dependabot location (#815) 22 小时之前
  Kilian Lieret a1bd6a7f1f Doc: Remove brittle links to anthropic & co about keys (#816) 22 小时之前
  Kilian Lieret e365b2a2c0 CI: Add dependabot (#814) 23 小时之前
  Maggie Gates 3f8cb64afa Doc: Update NYU CTF repo path (#813) 1 天之前

+ 7 - 0
.github/dependabot.yml

@@ -0,0 +1,7 @@
+version: 2
+updates:
+  # Maintain dependencies for GitHub Actions
+  - package-ecosystem: "github-actions"
+    directory: "/"
+    schedule:
+      interval: "weekly"

+ 2 - 2
.github/workflows/pytest.yaml

@@ -32,7 +32,7 @@ jobs:
         shell: bash -l {0}
         shell: bash -l {0}
     steps:
     steps:
       - name: Checkout code
       - name: Checkout code
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
       - uses: actions/setup-python@v5
       - uses: actions/setup-python@v5
         with:
         with:
           python-version: '3.9'
           python-version: '3.9'
@@ -68,7 +68,7 @@ jobs:
       - name: Explicitly convert coverage to xml
       - name: Explicitly convert coverage to xml
         run: coverage xml
         run: coverage xml
       - name: Upload coverage reports to Codecov
       - name: Upload coverage reports to Codecov
-        uses: codecov/codecov-action@v4.0.1
+        uses: codecov/codecov-action@v4.6.0
         with:
         with:
           token: ${{ secrets.CODECOV_TOKEN }}
           token: ${{ secrets.CODECOV_TOKEN }}
           slug: princeton-nlp/SWE-agent
           slug: princeton-nlp/SWE-agent

+ 1 - 1
.github/workflows/release-dockerhub-nightly.yaml

@@ -18,7 +18,7 @@ jobs:
             username: sweagent
             username: sweagent
             password: ${{ secrets.DOCKERHUB_TOKEN }}
             password: ${{ secrets.DOCKERHUB_TOKEN }}
         - name: Checkout code
         - name: Checkout code
-          uses: actions/checkout@v2
+          uses: actions/checkout@v4
         - name: Run release script
         - name: Run release script
           if: (github.ref == 'refs/heads/main') && (github.repository == 'princeton-nlp/SWE-agent')
           if: (github.ref == 'refs/heads/main') && (github.repository == 'princeton-nlp/SWE-agent')
           run: ./release_dockerhub.sh sweagent latest
           run: ./release_dockerhub.sh sweagent latest

+ 1 - 1
.github/workflows/release-dockerhub-release.yaml

@@ -15,7 +15,7 @@ jobs:
             username: sweagent
             username: sweagent
             password: ${{ secrets.DOCKERHUB_TOKEN }}
             password: ${{ secrets.DOCKERHUB_TOKEN }}
         - name: Checkout code
         - name: Checkout code
-          uses: actions/checkout@v2
+          uses: actions/checkout@v4
         - name: Get release name
         - name: Get release name
           run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
           run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
         - name: Run release script
         - name: Run release script

+ 1 - 1
.github/workflows/test_build_containers.yaml

@@ -27,7 +27,7 @@ jobs:
         shell: bash -l {0}
         shell: bash -l {0}
     steps:
     steps:
       - name: Checkout code
       - name: Checkout code
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
       - name: Run setup.sh
       - name: Run setup.sh
         run: |
         run: |
           ./setup.sh
           ./setup.sh

+ 1 - 1
.pre-commit-config.yaml

@@ -22,7 +22,7 @@ repos:
         exclude: pyproject.toml
         exclude: pyproject.toml
 
 
   - repo: https://github.com/astral-sh/ruff-pre-commit
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.6.9
+    rev: v0.7.0
     hooks:
     hooks:
       # Run the linter.
       # Run the linter.
       - id: ruff
       - id: ruff

+ 0 - 2
docs/installation/keys.md

@@ -22,7 +22,5 @@ The following `keys.cfg` example shows you how the keys are named:
 # OPENAI_API_BASE_URL: 'LM base URL here if using Local or alternative api Endpoint'
 # OPENAI_API_BASE_URL: 'LM base URL here if using Local or alternative api Endpoint'
 ```
 ```
 
 
-See the following links for tutorials on obtaining [Anthropic](https://docs.anthropic.com/en/api/getting-started), [OpenAI](https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key), and [Github](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) tokens.
-
 !!! tip "Models"
 !!! tip "Models"
     Some more information about the available models in our [usage FAQ](../usage/usage_faq.md).
     Some more information about the available models in our [usage FAQ](../usage/usage_faq.md).

+ 2 - 2
docs/usage/enigma.md

@@ -31,8 +31,8 @@ python run.py \
   --model_name gpt4 \
   --model_name gpt4 \
   --ctf \
   --ctf \
   --image_name sweagent/enigma:latest \
   --image_name sweagent/enigma:latest \
-  --data_path ../LLM_CTF_Database/2018/CSAW-Finals/misc/leaked_flag/challenge.json \
-  --repo_path ../LLM_CTF_Database/2018/CSAW-Finals/misc/leaked_flag \
+  --data_path ../NYU_CTF_Bench/test/2018/CSAW-Finals/misc/leaked_flag/challenge.json \
+  --repo_path ../NYU_CTF_Bench/test/2018/CSAW-Finals/misc/leaked_flag/ \
   --config_file config/default_ctf.yaml \
   --config_file config/default_ctf.yaml \
   --per_instance_cost_limit 2.00
   --per_instance_cost_limit 2.00
 ```
 ```

+ 2 - 1
mkdocs.yml

@@ -5,6 +5,7 @@ theme:
   icon:
   icon:
     repo: fontawesome/brands/github
     repo: fontawesome/brands/github
   logo: assets/swe-agent.svg
   logo: assets/swe-agent.svg
+  favicon: assets/swe-agent.svg
   palette:
   palette:
     - media: "(prefers-color-scheme)"
     - media: "(prefers-color-scheme)"
       toggle:
       toggle:
@@ -100,4 +101,4 @@ repo_url: https://github.com/princeton-nlp/SWE-agent
 repo_name: princeton-nlp/SWE-agent
 repo_name: princeton-nlp/SWE-agent
 edit_uri: edit/main/docs/
 edit_uri: edit/main/docs/
 extra_css:
 extra_css:
-  - assets/custom.css
+  - assets/custom.css