Compare commits

...
3 Commits
Author SHA1 Message Date
renovate[bot]andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2943b58ef7 chore(deps): update dependency terser to v5.51.3 [security] (#8810)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-12-02 10:33:16 +00:00
Tunglies 186ec116fa refactor(frontend): outfox foxact, foxts, and eslint-plugin-sukka (#8808)
* chore(eslint): remove eslint-plugin-sukka

* refactor(frontend): remove foxts and inline local utilities

* refactor(frontend): remove foxact and replace with local hooks

* refactor(proxy): reuse local storage for group preferences
2026-12-02 01:34:55 +00:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>❤是纱雾酱哟~
87de9bd5bf chore(deps): update github/gh-aw-actions action to v1.4.4 (#8804)
* chore(deps): update github/gh-aw-actions action to v1.4.4

* chore(gh-aw): update agentic workflows to v1.4.4

- Updates workflow tooling and threat detection
- Refreshes generated workflows with the latest compiler, container digests, and GitHub MCP server
- Improves detection activation metadata restoration and prepares detection inputs before reporting or artifacts run

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>

---------

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
2026-12-01 18:12:16 +00:00
19 changed files with 584 additions and 581 deletions
+9 -9
View File
@@ -5,10 +5,10 @@
"version": "v9.0.0",
"sha": "3a2844b7e9c422d3c10d287c895573f7108da1b3"
},
"github/gh-aw-actions/setup@v1.4.2": {
"github/gh-aw-actions/setup@v1.4.4": {
"repo": "github/gh-aw-actions/setup",
"version": "v1.4.2",
"sha": "d7852d91d5d1d13e7848771edab8bd1792a08651"
"version": "v1.4.4",
"sha": "6147e7c2fba711fb36ac73c79cba401d1e213c4e"
}
},
"containers": {
@@ -199,13 +199,13 @@
},
"ghcr.io/github/gh-aw-node": {
"image": "ghcr.io/github/gh-aw-node",
"digest": "sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc",
"pinned_image": "ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc"
"digest": "sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f",
"pinned_image": "ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f"
},
"ghcr.io/github/github-mcp-server:v2.2.0": {
"image": "ghcr.io/github/github-mcp-server:v2.2.0",
"digest": "sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174",
"pinned_image": "ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174"
"ghcr.io/github/github-mcp-server:v2.3.0": {
"image": "ghcr.io/github/github-mcp-server:v2.3.0",
"digest": "sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6",
"pinned_image": "ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6"
}
}
}
+2 -2
View File
@@ -31,9 +31,9 @@ jobs:
with:
persist-credentials: false
- name: Install gh-aw extension
uses: github/gh-aw-actions/setup-cli@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup-cli@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
version: v1.4.2
version: v1.4.4
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
with:
+35 -28
View File
@@ -1,6 +1,6 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"4ca5835c0c9cd01f3432b873f5a177ca6d3d1dbd6a35939e2058dcb37aa224b4","body_hash":"ca82fafbe18061d7c8bd708dc18e91b9116faf0c921a7fa35be1538d47a2b005","compiler_version":"v1.4.2","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.103"}}
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d7852d91d5d1d13e7848771edab8bd1792a08651","version":"v1.4.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7"},{"image":"ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.5.16","digest":"sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc","pinned_image":"ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc"},{"image":"ghcr.io/github/github-mcp-server:v2.2.0","digest":"sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174","pinned_image":"ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174"}],"mcp_servers":[{"name":"safeoutputs","tools":["add_comment","add_labels","noop","remove_labels","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false,"agent_metadata":{"14ba41178a91b10b7de6":{"name":"Agentic Workflows"}}}
# This file was automatically generated by gh-aw (v1.4.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"4ca5835c0c9cd01f3432b873f5a177ca6d3d1dbd6a35939e2058dcb37aa224b4","body_hash":"ca82fafbe18061d7c8bd708dc18e91b9116faf0c921a7fa35be1538d47a2b005","compiler_version":"v1.4.4","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.103"}}
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"6147e7c2fba711fb36ac73c79cba401d1e213c4e","version":"v1.4.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7"},{"image":"ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.5.16","digest":"sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f"},{"image":"ghcr.io/github/github-mcp-server:v2.3.0","digest":"sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6","pinned_image":"ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6"}],"mcp_servers":[{"name":"safeoutputs","tools":["add_comment","add_labels","noop","remove_labels","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false,"agent_metadata":{"14ba41178a91b10b7de6":{"name":"Agentic Workflows"}}}
# This file was automatically generated by gh-aw (v1.4.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
# / _ \ | | (_)
@@ -44,12 +44,12 @@
# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
# - actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
# - actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
# - github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
# - github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
#
# Container images used:
# - ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059
# - ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc
# - ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174
# - ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f
# - ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6
# - ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad
# - ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca
# - ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7
@@ -130,7 +130,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -152,7 +152,7 @@ jobs:
GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
GH_AW_INFO_VERSION: "1.0.103"
GH_AW_INFO_AGENT_VERSION: "1.0.103"
GH_AW_INFO_CLI_VERSION: "v1.4.2"
GH_AW_INFO_CLI_VERSION: "v1.4.4"
GH_AW_INFO_WORKFLOW_NAME: "PR AI Slop Review"
GH_AW_INFO_WORKFLOW_ID: ${{ job.workflow_ref }}
GH_AW_INFO_WORKFLOW_SHA: ${{ job.workflow_sha }}
@@ -271,7 +271,7 @@ jobs:
if: steps.daily-ai-credits-workflow-guardrail.outputs.daily_ai_credits_guardrail_status != 'quota_blocked'
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
GH_AW_COMPILED_VERSION: "v1.4.2"
GH_AW_COMPILED_VERSION: "v1.4.4"
GH_AW_HAS_SAFE_OUTPUTS: "true"
GH_AW_BLOCKED_VERSION_REPORT_AS_ISSUE: "false"
GH_AW_WORKFLOW_NAME: "PR AI Slop Review"
@@ -558,7 +558,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -654,7 +654,7 @@ jobs:
run: "node <<'NODE'\nconst fs = require('fs');\nconst harnessPath = `${process.env.RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs`;\nconst harness = fs.readFileSync(harnessPath, 'utf8');\nconst quotaBranch = [\n ' if (isQuotaExceeded && (result.retryAfterMs == null || /\\\\bquota exceeded\\\\b/i.test(result.output))) {',\n ' log(`attempt ${attempt + 1}: Copilot quota exceeded — not retrying`);',\n ' return { action: \"stop\" };',\n ' }',\n].join('\\n');\nconst nonBlockingQuotaBranch = [\n ' let quotaErrorMsg = null;',\n ' if (isQuotaExceeded && (result.retryAfterMs == null || /\\\\bquota exceeded\\\\b/i.test(result.output))) {',\n ' log(`attempt ${attempt + 1}: Copilot quota exceeded — not retrying`);',\n ' quotaErrorMsg = { action: \"stop\" };',\n ' }',\n ' if (/\\\\b429\\\\b|Too Many Requests/i.test(result.output)) {',\n ' log(`attempt ${attempt + 1}: Copilot quota unavailable — exiting 0`);',\n ' quotaErrorMsg = { action: \"stop\", exitCode: 0 };',\n ' }',\n ' if (quotaErrorMsg) {',\n ' return quotaErrorMsg;',\n ' }',\n].join('\\n');\n\nif (harness.split(quotaBranch).length !== 2) {\n throw new Error('Unexpected Copilot quota branch; re-audit the gh-aw upgrade');\n}\nfs.writeFileSync(harnessPath, harness.replace(quotaBranch, nonBlockingQuotaBranch));\nNODE"
- name: Download container images
run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059 ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174 ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7 ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882
run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059 ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6 ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7 ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882
- name: Prepare Safe Outputs Directories
run: |
mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"
@@ -899,12 +899,12 @@ jobs:
mkdir -p "$HOME/.copilot"
GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)
cat << GH_AW_MCP_CONFIG_d448207cb151e2cb_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
cat << GH_AW_MCP_CONFIG_36d6009112b7e687_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"safeoutputs": {
"type": "stdio",
"container": "ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc",
"container": "ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f",
"mounts": ["\${GITHUB_WORKSPACE}:\${GITHUB_WORKSPACE}:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:${RUNNER_TEMP}/gh-aw/safeoutputs:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"],
"args": ["-w", "\${GITHUB_WORKSPACE}"],
"entrypoint": "sh",
@@ -963,7 +963,7 @@ jobs:
}
}
}
GH_AW_MCP_CONFIG_d448207cb151e2cb_EOF
GH_AW_MCP_CONFIG_36d6009112b7e687_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
@@ -1104,7 +1104,7 @@ jobs:
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}
GH_AW_TIMEOUT_MINUTES: ${{ fromJSON(vars.GH_AW_DEFAULT_TIMEOUT_MINUTES || '20') }}
GH_AW_VERSION: v1.4.2
GH_AW_VERSION: v1.4.4
GH_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN || github.token }}
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_AW: true
@@ -1417,7 +1417,7 @@ jobs:
permissions:
actions: read # Read workflow runs and artifacts for workflow context.
id-token: write # Request an OIDC token for authenticated services.
issues: write # Create or update issues and comments.
issues: write # Enabled by issue reporting, safe outputs, steering, work queues, reaction cleanup, or explicit job permissions.
pull-requests: write # Create or update pull requests and review comments.
concurrency:
group: "gh-aw-conclusion-pr-ai-slop-review-${{ inputs.pr_number }}"
@@ -1437,7 +1437,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -1816,7 +1816,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -1830,11 +1830,12 @@ jobs:
GH_AW_INFO_ENGINE_ID: "copilot"
GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}
- name: Download activation artifact
id: download-detection-activation
continue-on-error: true
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: activation
path: /tmp/gh-aw
path: ${{ runner.temp }}/gh-aw-detection-activation
- name: Download agent output artifact
id: download-agent-output
continue-on-error: true
@@ -1855,6 +1856,10 @@ jobs:
- name: Clear agent token usage
if: always()
run: rm -f /tmp/gh-aw/agent_usage.json
- name: Restore activation metadata
if: always()
run: |
bash "${RUNNER_TEMP}/gh-aw/actions/restore_detection_activation_metadata.sh" "${RUNNER_TEMP}/gh-aw-detection-activation" "/tmp/gh-aw"
- name: Checkout repository for patch context
if: needs.agent.outputs.has_patch == 'true'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -1903,8 +1908,10 @@ jobs:
- name: Prepare threat detection files
id: detection_prepare
if: always() && steps.detection_guard.outputs.run_detection == 'true'
env:
ACTIVATION_DOWNLOAD_OUTCOME: ${{ steps.download-detection-activation.outcome }}
run: |
bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"
bash "${RUNNER_TEMP}/gh-aw/actions/prepare_detection_inputs.sh" "${RUNNER_TEMP}/gh-aw-detection-activation" "/tmp/gh-aw"
- name: Install AWF binary
id: detection_awf_install
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.29.22 --rootless
@@ -1921,7 +1928,7 @@ jobs:
GH_AW_COPILOT_MIN_VERSION: 1.0.35
- name: Execute threat detection with AWF
id: detection_agentic_execution
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_staging_reset.outcome == 'success' && steps.detection_prepare.outcome == 'success' && steps.detection_awf_install.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.detection_staging_reset.outcome == 'success' && steps.detection_awf_install.outcome == 'success'
continue-on-error: true
timeout-minutes: 10
env:
@@ -1934,11 +1941,11 @@ jobs:
GH_AW_LLM_PROVIDER: github
GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }}
GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }}
GH_AW_MODEL_FALLBACK: ${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
GH_AW_MODEL_FALLBACK: ${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'detection' }}
GH_AW_PHASE: detection
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
GH_AW_TIMEOUT_MINUTES: 10
GH_AW_VERSION: v1.4.2
GH_AW_VERSION: v1.4.4
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_AW: true
GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows
@@ -2046,7 +2053,7 @@ jobs:
await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });
- name: Parse threat detection token usage for step summary
id: parse_detection_token_usage
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success'
continue-on-error: true
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
@@ -2082,7 +2089,7 @@ jobs:
const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));
await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });
- name: Render detection log
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'
continue-on-error: true
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
@@ -2094,7 +2101,7 @@ jobs:
const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));
await main();
- name: Upload threat detection artifact
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success' && steps.detection_staging_reset.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success' && steps.detection_staging_reset.outcome == 'success'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: detection
@@ -2110,7 +2117,7 @@ jobs:
retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}
- name: Conclude threat detection
id: detection_conclusion
if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')
if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')
env:
RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}
DETECTION_AGENTIC_EXECUTION_OUTCOME: ${{ steps.detection_agentic_execution.outcome }}
@@ -2182,7 +2189,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
+36 -29
View File
@@ -1,6 +1,6 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"d6b72464a3766dd7d74aefe4c7dd982ae7ae2db951f8040f978feca9166adb39","body_hash":"deddd98c5fa425a91487fb5f50dc59ac61ae395bdcd4dff6543f1e8e563a7d73","compiler_version":"v1.4.2","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.103"}}
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d7852d91d5d1d13e7848771edab8bd1792a08651","version":"v1.4.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7"},{"image":"ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.5.16","digest":"sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc","pinned_image":"ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc"},{"image":"ghcr.io/github/github-mcp-server:v2.2.0","digest":"sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174","pinned_image":"ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174"}],"mcp_servers":[{"name":"safeoutputs","tools":["add_comment","noop","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false,"agent_metadata":{"14ba41178a91b10b7de6":{"name":"Agentic Workflows"}}}
# This file was automatically generated by gh-aw (v1.4.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"d6b72464a3766dd7d74aefe4c7dd982ae7ae2db951f8040f978feca9166adb39","body_hash":"deddd98c5fa425a91487fb5f50dc59ac61ae395bdcd4dff6543f1e8e563a7d73","compiler_version":"v1.4.4","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.103"}}
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"6147e7c2fba711fb36ac73c79cba401d1e213c4e","version":"v1.4.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7"},{"image":"ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.5.16","digest":"sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f"},{"image":"ghcr.io/github/github-mcp-server:v2.3.0","digest":"sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6","pinned_image":"ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6"}],"mcp_servers":[{"name":"safeoutputs","tools":["add_comment","noop","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false,"agent_metadata":{"14ba41178a91b10b7de6":{"name":"Agentic Workflows"}}}
# This file was automatically generated by gh-aw (v1.4.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
# / _ \ | | (_)
@@ -43,12 +43,12 @@
# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
# - actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
# - actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
# - github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
# - github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
#
# Container images used:
# - ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059
# - ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc
# - ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174
# - ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f
# - ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6
# - ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad
# - ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca
# - ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7
@@ -141,7 +141,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -165,7 +165,7 @@ jobs:
GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
GH_AW_INFO_VERSION: "1.0.103"
GH_AW_INFO_AGENT_VERSION: "1.0.103"
GH_AW_INFO_CLI_VERSION: "v1.4.2"
GH_AW_INFO_CLI_VERSION: "v1.4.4"
GH_AW_INFO_WORKFLOW_NAME: "Verify Review Fixes"
GH_AW_INFO_WORKFLOW_ID: ${{ job.workflow_ref }}
GH_AW_INFO_WORKFLOW_SHA: ${{ job.workflow_sha }}
@@ -284,7 +284,7 @@ jobs:
if: steps.daily-ai-credits-workflow-guardrail.outputs.daily_ai_credits_guardrail_status != 'quota_blocked'
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
GH_AW_COMPILED_VERSION: "v1.4.2"
GH_AW_COMPILED_VERSION: "v1.4.4"
GH_AW_HAS_SAFE_OUTPUTS: "true"
GH_AW_BLOCKED_VERSION_REPORT_AS_ISSUE: "false"
GH_AW_WORKFLOW_NAME: "Verify Review Fixes"
@@ -596,7 +596,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -693,7 +693,7 @@ jobs:
GH_AW_SKILL_DIR: ".github/skills"
run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_skills.sh"
- name: Download container images
run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059 ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174 ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7 ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882
run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059 ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6 ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7 ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882
- name: Prepare Safe Outputs Directories
run: |
mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"
@@ -902,12 +902,12 @@ jobs:
mkdir -p "$HOME/.copilot"
GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)
cat << GH_AW_MCP_CONFIG_e9f853f8279889ed_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
cat << GH_AW_MCP_CONFIG_060492a5ed2a5139_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"safeoutputs": {
"type": "stdio",
"container": "ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc",
"container": "ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f",
"mounts": ["\${GITHUB_WORKSPACE}:\${GITHUB_WORKSPACE}:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:${RUNNER_TEMP}/gh-aw/safeoutputs:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"],
"args": ["-w", "\${GITHUB_WORKSPACE}"],
"entrypoint": "sh",
@@ -965,7 +965,7 @@ jobs:
}
}
}
GH_AW_MCP_CONFIG_e9f853f8279889ed_EOF
GH_AW_MCP_CONFIG_060492a5ed2a5139_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
@@ -1105,7 +1105,7 @@ jobs:
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}
GH_AW_TIMEOUT_MINUTES: ${{ fromJSON(vars.GH_AW_DEFAULT_TIMEOUT_MINUTES || '20') }}
GH_AW_VERSION: v1.4.2
GH_AW_VERSION: v1.4.4
GH_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN || github.token }}
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_AW: true
@@ -1419,7 +1419,7 @@ jobs:
permissions:
actions: read # Read workflow runs and artifacts for workflow context.
id-token: write # Request an OIDC token for authenticated services.
issues: write # Create or update issues and comments.
issues: write # Enabled by issue reporting, safe outputs, steering, work queues, reaction cleanup, or explicit job permissions.
pull-requests: write # Create or update pull requests and review comments.
concurrency:
group: "gh-aw-conclusion-pr-verify-fix-${{ github.event.issue.number || inputs.pr_number || github.run_id }}"
@@ -1439,7 +1439,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -1818,7 +1818,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -1832,11 +1832,12 @@ jobs:
GH_AW_INFO_ENGINE_ID: "copilot"
GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}
- name: Download activation artifact
id: download-detection-activation
continue-on-error: true
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: activation
path: /tmp/gh-aw
path: ${{ runner.temp }}/gh-aw-detection-activation
- name: Download agent output artifact
id: download-agent-output
continue-on-error: true
@@ -1857,6 +1858,10 @@ jobs:
- name: Clear agent token usage
if: always()
run: rm -f /tmp/gh-aw/agent_usage.json
- name: Restore activation metadata
if: always()
run: |
bash "${RUNNER_TEMP}/gh-aw/actions/restore_detection_activation_metadata.sh" "${RUNNER_TEMP}/gh-aw-detection-activation" "/tmp/gh-aw"
- name: Checkout repository for patch context
if: needs.agent.outputs.has_patch == 'true'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -1905,8 +1910,10 @@ jobs:
- name: Prepare threat detection files
id: detection_prepare
if: always() && steps.detection_guard.outputs.run_detection == 'true'
env:
ACTIVATION_DOWNLOAD_OUTCOME: ${{ steps.download-detection-activation.outcome }}
run: |
bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"
bash "${RUNNER_TEMP}/gh-aw/actions/prepare_detection_inputs.sh" "${RUNNER_TEMP}/gh-aw-detection-activation" "/tmp/gh-aw"
- name: Install AWF binary
id: detection_awf_install
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.29.22 --rootless
@@ -1923,7 +1930,7 @@ jobs:
GH_AW_COPILOT_MIN_VERSION: 1.0.35
- name: Execute threat detection with AWF
id: detection_agentic_execution
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_staging_reset.outcome == 'success' && steps.detection_prepare.outcome == 'success' && steps.detection_awf_install.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.detection_staging_reset.outcome == 'success' && steps.detection_awf_install.outcome == 'success'
continue-on-error: true
timeout-minutes: 10
env:
@@ -1936,11 +1943,11 @@ jobs:
GH_AW_LLM_PROVIDER: github
GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }}
GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }}
GH_AW_MODEL_FALLBACK: ${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
GH_AW_MODEL_FALLBACK: ${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'detection' }}
GH_AW_PHASE: detection
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
GH_AW_TIMEOUT_MINUTES: 10
GH_AW_VERSION: v1.4.2
GH_AW_VERSION: v1.4.4
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_AW: true
GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows
@@ -2048,7 +2055,7 @@ jobs:
await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });
- name: Parse threat detection token usage for step summary
id: parse_detection_token_usage
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success'
continue-on-error: true
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
@@ -2084,7 +2091,7 @@ jobs:
const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));
await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });
- name: Render detection log
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'
continue-on-error: true
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
@@ -2096,7 +2103,7 @@ jobs:
const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));
await main();
- name: Upload threat detection artifact
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success' && steps.detection_staging_reset.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success' && steps.detection_staging_reset.outcome == 'success'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: detection
@@ -2112,7 +2119,7 @@ jobs:
retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}
- name: Conclude threat detection
id: detection_conclusion
if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')
if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')
env:
RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}
DETECTION_AGENTIC_EXECUTION_OUTCOME: ${{ steps.detection_agentic_execution.outcome }}
@@ -2145,7 +2152,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -2240,7 +2247,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
+35 -28
View File
@@ -1,6 +1,6 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"e44852fbf56eab99e67b3f6a306f75195603ece6ed130e55652a2467efed1415","body_hash":"7835f25016082d56592b67f4d2bf5b839eb02a6fa8f03d65699ed6bae979c5ad","compiler_version":"v1.4.2","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.103"}}
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"d7852d91d5d1d13e7848771edab8bd1792a08651","version":"v1.4.2"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7"},{"image":"ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.5.16","digest":"sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc","pinned_image":"ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc"},{"image":"ghcr.io/github/github-mcp-server:v2.2.0","digest":"sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174","pinned_image":"ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174"}],"mcp_servers":[{"name":"safeoutputs","tools":["add_comment","noop","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false,"agent_metadata":{"14ba41178a91b10b7de6":{"name":"Agentic Workflows"}}}
# This file was automatically generated by gh-aw (v1.4.2). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"e44852fbf56eab99e67b3f6a306f75195603ece6ed130e55652a2467efed1415","body_hash":"7835f25016082d56592b67f4d2bf5b839eb02a6fa8f03d65699ed6bae979c5ad","compiler_version":"v1.4.4","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.103"}}
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"6147e7c2fba711fb36ac73c79cba401d1e213c4e","version":"v1.4.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7"},{"image":"ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.5.16","digest":"sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f"},{"image":"ghcr.io/github/github-mcp-server:v2.3.0","digest":"sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6","pinned_image":"ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6"}],"mcp_servers":[{"name":"safeoutputs","tools":["add_comment","noop","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false,"agent_metadata":{"14ba41178a91b10b7de6":{"name":"Agentic Workflows"}}}
# This file was automatically generated by gh-aw (v1.4.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
# / _ \ | | (_)
@@ -43,12 +43,12 @@
# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
# - actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
# - actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
# - github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
# - github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
#
# Container images used:
# - ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059
# - ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc
# - ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174
# - ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f
# - ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6
# - ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad
# - ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca
# - ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7
@@ -133,7 +133,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -155,7 +155,7 @@ jobs:
GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
GH_AW_INFO_VERSION: "1.0.103"
GH_AW_INFO_AGENT_VERSION: "1.0.103"
GH_AW_INFO_CLI_VERSION: "v1.4.2"
GH_AW_INFO_CLI_VERSION: "v1.4.4"
GH_AW_INFO_WORKFLOW_NAME: "Renovate Minor Upgrade Analysis"
GH_AW_INFO_WORKFLOW_ID: ${{ job.workflow_ref }}
GH_AW_INFO_WORKFLOW_SHA: ${{ job.workflow_sha }}
@@ -274,7 +274,7 @@ jobs:
if: steps.daily-ai-credits-workflow-guardrail.outputs.daily_ai_credits_guardrail_status != 'quota_blocked'
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
GH_AW_COMPILED_VERSION: "v1.4.2"
GH_AW_COMPILED_VERSION: "v1.4.4"
GH_AW_HAS_SAFE_OUTPUTS: "true"
GH_AW_BLOCKED_VERSION_REPORT_AS_ISSUE: "false"
GH_AW_WORKFLOW_NAME: "Renovate Minor Upgrade Analysis"
@@ -562,7 +562,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -674,7 +674,7 @@ jobs:
GH_AW_SKILL_DIR: ".github/skills"
run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_skills.sh"
- name: Download container images
run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059 ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc ghcr.io/github/github-mcp-server:v2.2.0@sha256:040c4e99810076035eb1d9beb4b4a96fcf589c43cefed6ff51a46a553eb4e174 ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7 ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882
run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-mcpg:v0.5.16@sha256:cd50cfae3acce5985985aee3964902c9358dcc809f1b68b8168cfe29b761b059 ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f ghcr.io/github/github-mcp-server:v2.3.0@sha256:f8ee4dedc7d5c8cb32854ab91cc92a31c55a8a5510708cf8742e9f9427588ca6 ghcr.io/github/gh-aw-firewall/agent:0.29.22@sha256:f5829ed92ec390e9c88c9d393556a16f0442c124c0d6b9c713e7544cb0efa5ad ghcr.io/github/gh-aw-firewall/api-proxy:0.29.22@sha256:02149f4ed8b9c0bae954932745f2d16e8c5bd2b37adec5f788344806cd063dca ghcr.io/github/gh-aw-firewall/cli-proxy:0.29.22@sha256:7b8ef50c5221824a425fbfabafb50767c5a4e6b0197a0fce6085fd9f7e97b5b7 ghcr.io/github/gh-aw-firewall/router:0.29.22@sha256:b4253735af3ab47c17bcdfaf86e91b541581e1338d3d9ead512a12ebd3f146fb ghcr.io/github/gh-aw-firewall/squid:0.29.22@sha256:cf4dd8944eb5b389adcf49f42de0e884f46e07d63afc5824543e7c9ab8ddb882
- name: Prepare Safe Outputs Directories
run: |
mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"
@@ -885,12 +885,12 @@ jobs:
mkdir -p "$HOME/.copilot"
GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)
cat << GH_AW_MCP_CONFIG_d448207cb151e2cb_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
cat << GH_AW_MCP_CONFIG_36d6009112b7e687_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"safeoutputs": {
"type": "stdio",
"container": "ghcr.io/github/gh-aw-node@sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc",
"container": "ghcr.io/github/gh-aw-node@sha256:1ee08ba84b321ff231ca905b73e6e7da8f5fd177bcc6433a56631fce2b5a0f2f",
"mounts": ["\${GITHUB_WORKSPACE}:\${GITHUB_WORKSPACE}:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:${RUNNER_TEMP}/gh-aw/safeoutputs:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"],
"args": ["-w", "\${GITHUB_WORKSPACE}"],
"entrypoint": "sh",
@@ -949,7 +949,7 @@ jobs:
}
}
}
GH_AW_MCP_CONFIG_d448207cb151e2cb_EOF
GH_AW_MCP_CONFIG_36d6009112b7e687_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
@@ -1094,7 +1094,7 @@ jobs:
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}
GH_AW_TIMEOUT_MINUTES: ${{ fromJSON(vars.GH_AW_DEFAULT_TIMEOUT_MINUTES || '20') }}
GH_AW_VERSION: v1.4.2
GH_AW_VERSION: v1.4.4
GH_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN || github.token }}
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_AW: true
@@ -1413,7 +1413,7 @@ jobs:
permissions:
actions: read # Read workflow runs and artifacts for workflow context.
id-token: write # Request an OIDC token for authenticated services.
issues: write # Create or update issues and comments.
issues: write # Enabled by issue reporting, safe outputs, steering, work queues, reaction cleanup, or explicit job permissions.
pull-requests: write # Create or update pull requests and review comments.
concurrency:
group: "gh-aw-conclusion-renovate-minor-review-${{ inputs.pr_number }}"
@@ -1433,7 +1433,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -1812,7 +1812,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
@@ -1826,11 +1826,12 @@ jobs:
GH_AW_INFO_ENGINE_ID: "copilot"
GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}
- name: Download activation artifact
id: download-detection-activation
continue-on-error: true
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: activation
path: /tmp/gh-aw
path: ${{ runner.temp }}/gh-aw-detection-activation
- name: Download agent output artifact
id: download-agent-output
continue-on-error: true
@@ -1851,6 +1852,10 @@ jobs:
- name: Clear agent token usage
if: always()
run: rm -f /tmp/gh-aw/agent_usage.json
- name: Restore activation metadata
if: always()
run: |
bash "${RUNNER_TEMP}/gh-aw/actions/restore_detection_activation_metadata.sh" "${RUNNER_TEMP}/gh-aw-detection-activation" "/tmp/gh-aw"
- name: Checkout repository for patch context
if: needs.agent.outputs.has_patch == 'true'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -1899,8 +1904,10 @@ jobs:
- name: Prepare threat detection files
id: detection_prepare
if: always() && steps.detection_guard.outputs.run_detection == 'true'
env:
ACTIVATION_DOWNLOAD_OUTCOME: ${{ steps.download-detection-activation.outcome }}
run: |
bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"
bash "${RUNNER_TEMP}/gh-aw/actions/prepare_detection_inputs.sh" "${RUNNER_TEMP}/gh-aw-detection-activation" "/tmp/gh-aw"
- name: Install AWF binary
id: detection_awf_install
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.29.22 --rootless
@@ -1917,7 +1924,7 @@ jobs:
GH_AW_COPILOT_MIN_VERSION: 1.0.35
- name: Execute threat detection with AWF
id: detection_agentic_execution
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_staging_reset.outcome == 'success' && steps.detection_prepare.outcome == 'success' && steps.detection_awf_install.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.detection_staging_reset.outcome == 'success' && steps.detection_awf_install.outcome == 'success'
continue-on-error: true
timeout-minutes: 10
env:
@@ -1930,11 +1937,11 @@ jobs:
GH_AW_LLM_PROVIDER: github
GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }}
GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }}
GH_AW_MODEL_FALLBACK: ${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
GH_AW_MODEL_FALLBACK: ${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'detection' }}
GH_AW_PHASE: detection
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
GH_AW_TIMEOUT_MINUTES: 10
GH_AW_VERSION: v1.4.2
GH_AW_VERSION: v1.4.4
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_AW: true
GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows
@@ -2042,7 +2049,7 @@ jobs:
await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });
- name: Parse threat detection token usage for step summary
id: parse_detection_token_usage
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success'
continue-on-error: true
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
@@ -2078,7 +2085,7 @@ jobs:
const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));
await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });
- name: Render detection log
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'
continue-on-error: true
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
@@ -2090,7 +2097,7 @@ jobs:
const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));
await main();
- name: Upload threat detection artifact
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success' && steps.detection_staging_reset.outcome == 'success'
if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success' && steps.detection_staging_reset.outcome == 'success'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: detection
@@ -2106,7 +2113,7 @@ jobs:
retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}
- name: Conclude threat detection
id: detection_conclusion
if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')
if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_prepare.outcome == 'success' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')
env:
RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}
DETECTION_AGENTIC_EXECUTION_OUTCOME: ${{ steps.detection_agentic_execution.outcome }}
@@ -2178,7 +2185,7 @@ jobs:
steps:
- name: Setup Scripts
id: setup
uses: github/gh-aw-actions/setup@d7852d91d5d1d13e7848771edab8bd1792a08651 # v1.4.2
uses: github/gh-aw-actions/setup@6147e7c2fba711fb36ac73c79cba401d1e213c4e # v1.4.4
with:
destination: ${{ runner.temp }}/gh-aw/actions
job-name: ${{ github.job }}
-3
View File
@@ -7,7 +7,6 @@ import pluginImportX from 'eslint-plugin-import-x'
import pluginReactCompiler from 'eslint-plugin-react-compiler'
import pluginReactHooks from 'eslint-plugin-react-hooks'
import pluginReactRefresh from 'eslint-plugin-react-refresh'
import PluginSukka from 'eslint-plugin-sukka'
import pluginUnusedImports from 'eslint-plugin-unused-imports'
import globals from 'globals'
import tseslint from 'typescript-eslint'
@@ -112,7 +111,6 @@ export default defineConfig([
'import-x': pluginImportX,
'react-refresh': pluginReactRefresh,
'unused-imports': pluginUnusedImports,
sukka: PluginSukka,
},
extends: [
@@ -182,7 +180,6 @@ export default defineConfig([
'@eslint-react/no-unused-class-component-members': 'error',
'@eslint-react/no-unused-state': 'error',
'@eslint-react/jsx-no-useless-fragment': 'warn',
'sukka/react-prefer-destructuring-assignment': 'warn',
// TypeScript
'@typescript-eslint/no-explicit-any': 'off',
-3
View File
@@ -57,8 +57,6 @@
"ahooks": "^3.10.0",
"cidr-block": "^2.3.0",
"dayjs": "1.11.23",
"foxact": "^0.3.12",
"foxts": "^5.9.1",
"i18next": "^27.0.0",
"js-yaml": "^5.4.2",
"lodash-es": "^4.18.1",
@@ -107,7 +105,6 @@
"eslint-plugin-react-compiler": "19.1.0-rc.2",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.7",
"eslint-plugin-sukka": "^10.2.0",
"eslint-plugin-unused-imports": "^4.4.1",
"globals": "^17.12.0",
"https-proxy-agent": "^9.1.0",
+58 -247
View File
@@ -248,12 +248,6 @@ importers:
dayjs:
specifier: 1.11.23
version: 1.11.23
foxact:
specifier: ^0.3.12
version: 0.3.12(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
foxts:
specifier: ^5.9.1
version: 5.9.1
i18next:
specifier: ^27.0.0
version: 27.0.1(typescript@6.0.3)
@@ -353,10 +347,10 @@ importers:
version: 13.15.10
'@vitejs/plugin-legacy':
specifier: ^8.2.3
version: 8.2.3(terser@5.51.2)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1))
version: 8.2.3(terser@5.51.3)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1))
'@vitejs/plugin-react':
specifier: ^6.1.1
version: 6.1.1(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1))
version: 6.1.1(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1))
adm-zip:
specifier: ^0.6.1
version: 0.6.1
@@ -377,13 +371,13 @@ importers:
version: 10.16.0(jiti@2.7.0)
eslint-import-resolver-typescript:
specifier: ^4.4.5
version: 4.4.5(eslint-plugin-import-x@4.18.1(@typescript-eslint/utils@8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0)))(eslint@10.16.0(jiti@2.7.0))
version: 4.4.5(eslint-plugin-import-x@4.18.1(@typescript-eslint/utils@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0)))(eslint@10.16.0(jiti@2.7.0))
eslint-plugin-es-x:
specifier: ^10.0.1
version: 10.0.1(eslint@10.16.0(jiti@2.7.0))
eslint-plugin-import-x:
specifier: ^4.18.1
version: 4.18.1(@typescript-eslint/utils@8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0))
version: 4.18.1(@typescript-eslint/utils@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0))
eslint-plugin-react-compiler:
specifier: 19.1.0-rc.2
version: 19.1.0-rc.2(eslint@10.16.0(jiti@2.7.0))
@@ -393,9 +387,6 @@ importers:
eslint-plugin-react-refresh:
specifier: ^0.5.7
version: 0.5.7(eslint@10.16.0(jiti@2.7.0))
eslint-plugin-sukka:
specifier: ^10.2.0
version: 10.2.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint-plugin-unused-imports:
specifier: ^4.4.1
version: 4.4.1(@typescript-eslint/eslint-plugin@8.74.0(@typescript-eslint/parser@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0))
@@ -425,7 +416,7 @@ importers:
version: 8.0.2
terser:
specifier: ^5.51.2
version: 5.51.2
version: 5.51.3
tsrs:
specifier: 0.20.0-ts7.1.0-beta
version: 0.20.0-ts7.1.0-beta
@@ -437,13 +428,13 @@ importers:
version: 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
vite:
specifier: ^8.3.0
version: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1)
version: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1)
vite-plugin-svgr:
specifier: ^5.2.0
version: 5.2.0(typescript@6.0.3)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1))
version: 5.2.0(typescript@6.0.3)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1))
vitest:
specifier: ^5.0.3
version: 5.1.2(@types/node@26.6.5)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1))
version: 5.1.2(@types/node@26.6.5)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1))
packages:
@@ -2162,45 +2153,22 @@ packages:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/project-service@8.70.0':
resolution: {integrity: sha512-hFHbTNqhU9G+2eKFXCBVb1tjFT/LceiJ4+HfLO4pTpDI0KHi6iajpcFFkaSQ9gXmCh7n82A0PthaayEdN6mspQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/project-service@8.74.0':
resolution: {integrity: sha512-z/mymuE+JlEeSFIv3Mo70EvgG1Zz74Hl0IDfExfXutARAP834bt+MppTD7mVAwmZO0GdxdOAi0jbTam749eH6g==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/scope-manager@8.70.0':
resolution: {integrity: sha512-8nP3Kwh5hlgZ4FicGvmznAmJe8UL4sdU8tLukrPaMuQmDuk4Y8xYfzu/aYZW4xT2JCgc7H/TpDI5cGlxcWJSqQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/scope-manager@8.74.0':
resolution: {integrity: sha512-kpOdpu4CpWN5U38ox3f727DwWRBtUAVhyUJtqTBYe5gf2wYoxac7PgKP14txrxN7ICVtcjlLdzjqfRgpSnDKvQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/tsconfig-utils@8.70.0':
resolution: {integrity: sha512-adnkeeNq9Sq1sUf4+FRVc0KdgYghzsgFpZSQVZVvY0LCuUuN0FnQgyGzCJeC4fW1cdXseBAjU2EOqUIjbNcZUw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/tsconfig-utils@8.74.0':
resolution: {integrity: sha512-p07wAuaS6BjCYgOSXKJi4YhvTnAf7fiG37e9THcpnYaQEt2QiTTYZWKwUFNgeRiywiMudazhzgddAirZ0GgHtQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/type-utils@8.70.0':
resolution: {integrity: sha512-NUMKIhYVaVIVLnRL9CRt+VVcuLgSHUCpXn4/+K8wql+vdInUzvx8BjUO1oJ7cG9shjFJKtF8F8Hh2kCh3/KBVw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/type-utils@8.74.0':
resolution: {integrity: sha512-CV3Y3la8l3F9ANfxcfpgSSiQgJTe4IeLEoZV4O/gcW86Ugp8X6SKiQ0vm+QegXaRIbbDMokZZSF3A1CgiU/kPw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -2208,20 +2176,10 @@ packages:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/types@8.70.0':
resolution: {integrity: sha512-asTOIYhDg4zdzOScCyaytrsV3cR6B4ecPQlXw/dJIm7J/MZTtCtfVII9JD8Geh4jTCrK/Xe6cg5UevoleMcoJQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/types@8.74.0':
resolution: {integrity: sha512-MpnMrJCVNpP1iVL8NiHkQZgQqIMBH5ewDGUPBh1pqQXwFtMFjsl1M03QcYPXmv6stCKEiF0PN7CGbU1ZbXFzEA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/typescript-estree@8.70.0':
resolution: {integrity: sha512-d9NmHMPEKQ7QCLLm1jI3zmoQBwT5KwFYjXBJ9ymZfKCUU+5rmTRykKAFvH5Qn/ZCds3CEAFS9OC9M/jkl0X2bA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/typescript-estree@8.74.0':
resolution: {integrity: sha512-wL348k6l92DNG+kPP5rVpKwNBoz7a3xRZy3TPKc1uymQttd7u7gcMv3eENmcuh4CjC4mO3FTM0DYstFXMyDLuw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -2232,13 +2190,6 @@ packages:
'@typescript/native':
optional: true
'@typescript-eslint/utils@8.70.0':
resolution: {integrity: sha512-oZmtKJz/4fufZ2p3+Cn3ijEojcdfR+1zYDH2xKYrEly0dR/Q/1xUPRCOlKGxod78nWlU2UnDe09GZ3TaknBFGA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/utils@8.74.0':
resolution: {integrity: sha512-IpWXPxXXomzxyTcvjhZJexgdvtTR1TooLAPpuxzaGqQ8BHll1lf4Ysp/BTE/l0U5TJ+x1j7B4bEM8pLRrvY+XA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -2246,10 +2197,6 @@ packages:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
'@typescript-eslint/visitor-keys@8.70.0':
resolution: {integrity: sha512-BoC8PiO4Hkdo0TVJh9Ntxr5MxPDI7/oFsrygN5ADelFSeXG/qgNuucIGA+L5Z6JpPTE/uRfcTWtscjbUaufepQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/visitor-keys@8.74.0':
resolution: {integrity: sha512-XSZmOtMUbWCBIM+2BK134FyMFxmll1mW2mPLk/PSwYQYzGIPMgJAqL929U4qXVizLv7Xq5b7r41/o7Ombuwk0g==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -2569,9 +2516,6 @@ packages:
resolution: {integrity: sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==}
engines: {node: '>=0.10'}
client-only@0.0.1:
resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
clsx@2.1.1:
resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
engines: {node: '>=6'}
@@ -2850,12 +2794,6 @@ packages:
eslint: '*'
typescript: '*'
eslint-plugin-sukka@10.2.0:
resolution: {integrity: sha512-BbErYY/fymqL7Te5yiDeBGfSF7QMxzZrT4SQpFI2e8ecRun3oYbL5aJm4kzFfeUzNZ/hET8T7pedpaH1fuXXHg==}
peerDependencies:
eslint: '>=9.29.0'
typescript: '*'
eslint-plugin-unused-imports@4.4.1:
resolution: {integrity: sha512-oZGYUz1X3sRMGUB+0cZyK2VcvRX5lm/vB56PgNNcU+7ficUCKm66oZWKUubXWnOuPjQ8PvmXtCViXBMONPe7tQ==}
peerDependencies:
@@ -2929,9 +2867,6 @@ packages:
event-emitter@0.3.5:
resolution: {integrity: sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==}
event-target-bus@1.1.0:
resolution: {integrity: sha512-24JX34nM0qRcsj7KvtLbVpMcX8ZQYmb0+0a6viaV2GJtVFg5UGyJyDLITkBipJIG0fSscNskI2PxdhTBIMeg8g==}
expect-type@1.4.0:
resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==}
engines: {node: '>=12.0.0'}
@@ -2945,10 +2880,6 @@ packages:
fast-deep-equal@3.1.3:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
fast-fnv1a@1.0.0:
resolution: {integrity: sha512-Y7iaFmz24pNJX+nqXgDuyHYFTfV9XPWJRfqp0hlG0Xuz1vKnelwLwvmKkbvVVvp5WzYWnrovBTLdk2PWkOYzCg==}
engines: {node: ^22.15.0 || ^23.8.0 || >=24.0.0}
fast-json-stable-stringify@2.1.0:
resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
@@ -2983,10 +2914,6 @@ packages:
flatted@3.4.4:
resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==}
fnv1a52@1.0.0:
resolution: {integrity: sha512-dUnV6Uok578HuGYTC/EM0LqeXewXBCHsh/kmLkdcqN1zgSy7K3gCIrshPBS5JwW20XSaRv4Vnz7z8lMjOV8jWw==}
engines: {node: '>=18.0.0'}
follow-redirects@1.16.2:
resolution: {integrity: sha512-/kVP2U8z596Ia0gwFrwyIeo74ta5aVmSeU1FfAUMAmcEP5EP7zydmag3SLiN64NaRKef3lxsq7i/g7ltJQDGow==}
engines: {node: '>=4.0'}
@@ -3005,20 +2932,6 @@ packages:
engines: {node: ^20.12.0 || >=22}
hasBin: true
foxact@0.3.12:
resolution: {integrity: sha512-sXE1plDgAUsKWzqbAMq/+ifRI3TSOnDPmyZGoaniW9AhtZqk3cOEUSC0jC4a4srvLf4PXwtCB+zQczBdxHGSDA==}
peerDependencies:
react: '*'
react-dom: '*'
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
foxts@5.9.1:
resolution: {integrity: sha512-NrIHGlf4LZGTjjGlVi3gmMbtvC4871SFUflu9yb8X91FYppAk+WMiYS6ZlaEgkPqAkgIGNeq+Y5YCL80GL6v8g==}
fsevents@2.3.3:
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
@@ -3368,9 +3281,6 @@ packages:
lru-queue@0.1.0:
resolution: {integrity: sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==}
magic-string@1.4.1:
resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==}
magic-string@1.4.5:
resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==}
@@ -3490,10 +3400,6 @@ packages:
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
engines: {node: '>= 0.6'}
minimatch@10.2.6:
resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==}
engines: {node: 18 || 20 || >=22}
minimatch@11.0.9:
resolution: {integrity: sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==}
engines: {node: 20 || >=22}
@@ -3833,9 +3739,6 @@ packages:
engines: {node: '>=10'}
hasBin: true
server-only@0.0.1:
resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==}
shebang-command@2.0.0:
resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
engines: {node: '>=8'}
@@ -3926,8 +3829,8 @@ packages:
resolution: {gitHosted: true, integrity: sha512-4nRJ9eBOdd+mT9KaqEhUNya8bh/zaHHAJMBRgFR62KxSZ0S77mcjkB6Bz2xmHqPdYrhbi58aD6UcybEp4a6UyA==, tarball: https://codeload.github.com/clash-verge-rev/tauri-plugin-mihomo/tar.gz/7e4fa8642cf6c394ed88b5a969420d8eab60087f}
version: 0.7.1
terser@5.51.2:
resolution: {integrity: sha512-bWnjSNscmuI+GJze6ZupnHP8G/cTcsJF+bXCeQknk2SHQsgbNJnLrqiH9jZ2W4STPVXH2mDKKRX3iwPhc9Cn/Q==}
terser@5.51.3:
resolution: {integrity: sha512-j5jPZZ6Sz0Eg2unusKhdRzUhUlHXJ3Bw2AkIXyJ6AqajWwihUlZOdJS+KSnZzmtVk6mFGdm3hHg0+M2sgyEz5Q==}
engines: {node: '>=10'}
hasBin: true
@@ -5150,12 +5053,13 @@ snapshots:
'@eslint-react/ast@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/typescript-estree': 8.70.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/typescript-estree': 8.74.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
string-ts: 2.3.1
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
'@eslint-react/core@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
@@ -5166,11 +5070,12 @@ snapshots:
'@eslint-react/var': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.74.0
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
ts-pattern: 5.9.0
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
'@eslint-react/eslint-plugin@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
@@ -5185,14 +5090,16 @@ snapshots:
eslint-plugin-react-x: 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
'@eslint-react/eslint@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
'@eslint-react/jsx@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
@@ -5202,22 +5109,24 @@ snapshots:
'@eslint-react/shared': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@eslint-react/var': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
ts-pattern: 5.9.0
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
'@eslint-react/shared@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@eslint-react/eslint': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
ts-pattern: 5.9.0
typescript: 6.0.3
zod: 4.6.5
transitivePeerDependencies:
- '@typescript/native'
- supports-color
'@eslint-react/var@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
@@ -5226,11 +5135,12 @@ snapshots:
'@eslint-react/eslint': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.74.0
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
ts-pattern: 5.9.0
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
'@eslint/config-array@0.23.7':
@@ -5995,15 +5905,6 @@ snapshots:
- '@typescript/native'
- supports-color
'@typescript-eslint/project-service@8.70.0(typescript@6.0.3)':
dependencies:
'@typescript-eslint/tsconfig-utils': 8.70.0(typescript@6.0.3)
'@typescript-eslint/types': 8.74.0
debug: 4.4.3
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/project-service@8.74.0(typescript@6.0.3)':
dependencies:
'@typescript-eslint/tsconfig-utils': 8.74.0(typescript@6.0.3)
@@ -6013,36 +5914,15 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/scope-manager@8.70.0':
dependencies:
'@typescript-eslint/types': 8.70.0
'@typescript-eslint/visitor-keys': 8.70.0
'@typescript-eslint/scope-manager@8.74.0':
dependencies:
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/visitor-keys': 8.74.0
'@typescript-eslint/tsconfig-utils@8.70.0(typescript@6.0.3)':
dependencies:
typescript: 6.0.3
'@typescript-eslint/tsconfig-utils@8.74.0(typescript@6.0.3)':
dependencies:
typescript: 6.0.3
'@typescript-eslint/type-utils@8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@typescript-eslint/types': 8.70.0
'@typescript-eslint/typescript-estree': 8.70.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
debug: 4.4.3
eslint: 10.16.0(jiti@2.7.0)
ts-api-utils: 2.5.0(typescript@6.0.3)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/type-utils@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@typescript-eslint/types': 8.74.0
@@ -6056,25 +5936,8 @@ snapshots:
- '@typescript/native'
- supports-color
'@typescript-eslint/types@8.70.0': {}
'@typescript-eslint/types@8.74.0': {}
'@typescript-eslint/typescript-estree@8.70.0(typescript@6.0.3)':
dependencies:
'@typescript-eslint/project-service': 8.70.0(typescript@6.0.3)
'@typescript-eslint/tsconfig-utils': 8.70.0(typescript@6.0.3)
'@typescript-eslint/types': 8.70.0
'@typescript-eslint/visitor-keys': 8.70.0
debug: 4.4.3
minimatch: 10.2.6
semver: 7.8.5
tinyglobby: 0.2.17
ts-api-utils: 2.5.0(typescript@6.0.3)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/typescript-estree@8.74.0(typescript@6.0.3)':
dependencies:
'@typescript-eslint/project-service': 8.74.0(typescript@6.0.3)
@@ -6090,17 +5953,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.16.0(jiti@2.7.0))
'@typescript-eslint/scope-manager': 8.70.0
'@typescript-eslint/types': 8.70.0
'@typescript-eslint/typescript-estree': 8.70.0(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.16.0(jiti@2.7.0))
@@ -6113,11 +5965,6 @@ snapshots:
- '@typescript/native'
- supports-color
'@typescript-eslint/visitor-keys@8.70.0':
dependencies:
'@typescript-eslint/types': 8.70.0
eslint-visitor-keys: 5.0.1
'@typescript-eslint/visitor-keys@8.74.0':
dependencies:
'@typescript-eslint/types': 8.74.0
@@ -6195,7 +6042,7 @@ snapshots:
'@unrs/resolver-binding-win32-x64-msvc@1.12.2':
optional: true
'@vitejs/plugin-legacy@8.2.3(terser@5.51.2)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1))':
'@vitejs/plugin-legacy@8.2.3(terser@5.51.3)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1))':
dependencies:
'@babel/core': 7.29.7
'@babel/plugin-transform-dynamic-import': 7.29.7(@babel/core@7.29.7)
@@ -6206,27 +6053,27 @@ snapshots:
browserslist: 4.29.0
browserslist-to-esbuild: 2.1.1(browserslist@4.29.0)
core-js: 3.50.0
magic-string: 1.4.1
magic-string: 1.4.5
regenerator-runtime: 0.14.1
systemjs: 6.15.1
terser: 5.51.2
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1)
terser: 5.51.3
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1)
transitivePeerDependencies:
- supports-color
'@vitejs/plugin-react@6.1.1(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1))':
'@vitejs/plugin-react@6.1.1(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1))':
dependencies:
'@rolldown/pluginutils': 1.0.1
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1)
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1)
'@vitest/mocker@5.1.2(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1))':
'@vitest/mocker@5.1.2(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1))':
dependencies:
'@jridgewell/trace-mapping': 0.3.31
'@vitest/spy': 5.1.2
estree-walker: 3.0.3
magic-string: 1.4.5
optionalDependencies:
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1)
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1)
'@vitest/spy@5.1.2': {}
@@ -6390,8 +6237,6 @@ snapshots:
memoizee: 0.4.17
timers-ext: 0.1.8
client-only@0.0.1: {}
clsx@2.1.1: {}
combined-stream@1.0.8:
@@ -6564,7 +6409,7 @@ snapshots:
optionalDependencies:
unrs-resolver: 1.12.2
eslint-import-resolver-typescript@4.4.5(eslint-plugin-import-x@4.18.1(@typescript-eslint/utils@8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0)))(eslint@10.16.0(jiti@2.7.0)):
eslint-import-resolver-typescript@4.4.5(eslint-plugin-import-x@4.18.1(@typescript-eslint/utils@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0)))(eslint@10.16.0(jiti@2.7.0)):
dependencies:
debug: 4.4.3
eslint: 10.16.0(jiti@2.7.0)
@@ -6575,7 +6420,7 @@ snapshots:
tinyglobby: 0.2.17
unrs-resolver: 1.12.2
optionalDependencies:
eslint-plugin-import-x: 4.18.1(@typescript-eslint/utils@8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0))
eslint-plugin-import-x: 4.18.1(@typescript-eslint/utils@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0))
transitivePeerDependencies:
- supports-color
@@ -6586,7 +6431,7 @@ snapshots:
eslint: 10.16.0(jiti@2.7.0)
eslint-type-tracer: 0.5.2(eslint@10.16.0(jiti@2.7.0))
eslint-plugin-import-x@4.18.1(@typescript-eslint/utils@8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0)):
eslint-plugin-import-x@4.18.1(@typescript-eslint/utils@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0)):
dependencies:
'@typescript-eslint/types': 8.74.0
cjs-module-lexer: 2.3.0
@@ -6601,7 +6446,7 @@ snapshots:
stable-hash-x: 0.2.0
unrs-resolver: 1.12.2
optionalDependencies:
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
transitivePeerDependencies:
- supports-color
@@ -6626,11 +6471,12 @@ snapshots:
'@eslint-react/shared': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@eslint-react/var': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
compare-versions: 6.1.1
eslint: 10.16.0(jiti@2.7.0)
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
eslint-plugin-react-hooks@7.1.1(eslint@10.16.0(jiti@2.7.0)):
@@ -6652,10 +6498,11 @@ snapshots:
'@eslint-react/jsx': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@eslint-react/shared': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
eslint-plugin-react-naming-convention@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3):
@@ -6666,11 +6513,12 @@ snapshots:
'@eslint-react/shared': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@eslint-react/var': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
ts-pattern: 5.9.0
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
eslint-plugin-react-refresh@0.5.7(eslint@10.16.0(jiti@2.7.0)):
@@ -6685,10 +6533,11 @@ snapshots:
'@eslint-react/shared': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@eslint-react/var': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
eslint-plugin-react-web-api@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3):
@@ -6699,11 +6548,12 @@ snapshots:
'@eslint-react/shared': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@eslint-react/var': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
ts-pattern: 5.9.0
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
eslint-plugin-react-x@5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3):
@@ -6715,10 +6565,10 @@ snapshots:
'@eslint-react/shared': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@eslint-react/var': 5.20.5(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.74.0
'@typescript-eslint/type-utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/type-utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/typescript-estree': 8.70.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/typescript-estree': 8.74.0(typescript@6.0.3)
'@typescript-eslint/utils': 8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
compare-versions: 6.1.1
eslint: 10.16.0(jiti@2.7.0)
string-ts: 2.3.1
@@ -6726,16 +6576,7 @@ snapshots:
ts-pattern: 5.9.0
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
eslint-plugin-sukka@10.2.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3):
dependencies:
'@typescript-eslint/types': 8.74.0
'@typescript-eslint/utils': 8.70.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3)
eslint: 10.16.0(jiti@2.7.0)
foxts: 5.9.1
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
eslint-plugin-unused-imports@4.4.1(@typescript-eslint/eslint-plugin@8.74.0(@typescript-eslint/parser@8.74.0(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.16.0(jiti@2.7.0)):
@@ -6835,8 +6676,6 @@ snapshots:
d: 1.0.2
es5-ext: 0.10.64
event-target-bus@1.1.0: {}
expect-type@1.4.0: {}
ext@1.7.0:
@@ -6847,8 +6686,6 @@ snapshots:
fast-deep-equal@3.1.3: {}
fast-fnv1a@1.0.0: {}
fast-json-stable-stringify@2.1.0: {}
fast-levenshtein@2.0.6: {}
@@ -6880,8 +6717,6 @@ snapshots:
flatted@3.4.4: {}
fnv1a52@1.0.0: {}
follow-redirects@1.16.2(debug@4.4.3):
optionalDependencies:
debug: 4.4.3
@@ -6904,20 +6739,6 @@ snapshots:
transitivePeerDependencies:
- '@clack/prompts'
foxact@0.3.12(react-dom@19.3.1(react@19.3.1))(react@19.3.1):
dependencies:
client-only: 0.0.1
event-target-bus: 1.1.0
server-only: 0.0.1
optionalDependencies:
react: 19.3.1
react-dom: 19.3.1(react@19.3.1)
foxts@5.9.1:
dependencies:
fast-fnv1a: 1.0.0
fnv1a52: 1.0.0
fsevents@2.3.3:
optional: true
@@ -7278,10 +7099,6 @@ snapshots:
dependencies:
es5-ext: 0.10.64
magic-string@1.4.1:
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
magic-string@1.4.5:
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
@@ -7533,10 +7350,6 @@ snapshots:
dependencies:
mime-db: 1.52.0
minimatch@10.2.6:
dependencies:
brace-expansion: 5.0.12
minimatch@11.0.9:
dependencies:
'@isaacs/nonrecursive-glob-match': 1.1.0
@@ -7921,8 +7734,6 @@ snapshots:
semver@7.8.5: {}
server-only@0.0.1: {}
shebang-command@2.0.0:
dependencies:
shebang-regex: 3.0.0
@@ -7994,7 +7805,7 @@ snapshots:
dependencies:
'@tauri-apps/api': 2.12.5
terser@5.51.2:
terser@5.51.3:
dependencies:
'@jridgewell/source-map': 0.3.11
acorn: 8.18.0
@@ -8177,18 +7988,18 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
vite-plugin-svgr@5.2.0(typescript@6.0.3)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1)):
vite-plugin-svgr@5.2.0(typescript@6.0.3)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1)):
dependencies:
'@rollup/pluginutils': 5.4.0
'@svgr/core': 8.1.0(typescript@6.0.3)
'@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@6.0.3))
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1)
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1)
transitivePeerDependencies:
- rollup
- supports-color
- typescript
vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1):
vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1):
dependencies:
lightningcss: 1.33.0
picomatch: 4.0.7
@@ -8200,13 +8011,13 @@ snapshots:
fsevents: 2.3.3
jiti: 2.7.0
sass: 1.104.1
terser: 5.51.2
terser: 5.51.3
yaml: 2.9.1
vitest@5.1.2(@types/node@26.6.5)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1)):
vitest@5.1.2(@types/node@26.6.5)(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1)):
dependencies:
'@types/chai': 5.2.3
'@vitest/mocker': 5.1.2(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1))
'@vitest/mocker': 5.1.2(vite@8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1))
chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
@@ -8217,7 +8028,7 @@ snapshots:
tinybench: 6.2.5
tinyexec: 1.3.1
tinyglobby: 0.2.17
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.2)(yaml@2.9.1)
vite: 8.3.3(@types/node@26.6.5)(jiti@2.7.0)(sass@1.104.1)(terser@5.51.3)(yaml@2.9.1)
why-is-node-running: 3.2.1
optionalDependencies:
'@types/node': 26.6.5
+20 -28
View File
@@ -1,5 +1,4 @@
import { useTheme } from '@mui/material/styles'
import { useLocalStorage } from 'foxact/use-local-storage'
import {
memo,
useCallback,
@@ -13,6 +12,8 @@ import {
} from 'react'
import { useTranslation } from 'react-i18next'
import { useLocalStorage } from '@/hooks/use-local-storage'
import {
ConnectionColumnManager,
type ConnectionColumnOption,
@@ -62,6 +63,19 @@ type ColumnField =
type ColumnSizingState = Record<string, number>
type VisibilityState = Record<string, boolean>
const EMPTY_RECORD = {}
const EMPTY_COLUMN_ORDER: string[] = []
const parseColumnVisibility = (value: string): VisibilityState => {
const parsed = JSON.parse(value)
return parsed && typeof parsed === 'object' ? parsed : EMPTY_RECORD
}
const parseColumnOrder = (value: string): string[] => {
const parsed = JSON.parse(value)
return Array.isArray(parsed) ? parsed : EMPTY_COLUMN_ORDER
}
interface BaseColumn {
field: ColumnField
headerName: string
@@ -368,42 +382,20 @@ export const ConnectionTable = (props: Props) => {
const theme = useTheme()
const [columnWidths, setColumnWidths] = useLocalStorage<ColumnSizingState>(
'connection-table-widths',
{},
EMPTY_RECORD,
)
const [columnVisibilityModel, setColumnVisibilityModel] =
useLocalStorage<VisibilityState>(
'connection-table-visibility',
{},
{
serializer: JSON.stringify,
deserializer: (value) => {
try {
const parsed = JSON.parse(value)
if (parsed && typeof parsed === 'object') return parsed
} catch (err) {
console.warn('Failed to parse connection-table-visibility', err)
}
return {}
},
},
EMPTY_RECORD,
parseColumnVisibility,
)
const [columnOrder, setColumnOrder] = useLocalStorage<string[]>(
'connection-table-order',
[],
{
serializer: JSON.stringify,
deserializer: (value) => {
try {
const parsed = JSON.parse(value)
if (Array.isArray(parsed)) return parsed
} catch (err) {
console.warn('Failed to parse connection-table-order', err)
}
return []
},
},
EMPTY_COLUMN_ORDER,
parseColumnOrder,
)
const baseColumns = useMemo<BaseColumn[]>(() => {
+22 -16
View File
@@ -14,20 +14,18 @@ import {
Typography,
} from '@mui/material'
import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow'
import { useEffect } from 'foxact/use-abortable-effect'
import { useIntersection } from 'foxact/use-intersection'
import { useLocalStorage } from 'foxact/use-local-storage'
import type { XOR } from 'foxts/ts-xor'
import {
forwardRef,
memo,
useCallback,
useEffect,
useEffectEvent,
useMemo,
useState,
} from 'react'
import { useTranslation } from 'react-i18next'
import { useLocalStorage } from '@/hooks/use-local-storage'
import { getIpInfo } from '@/services/api'
import { useQuery } from '@/services/query-client'
import getSystem from '@/utils/get-system'
@@ -72,15 +70,14 @@ const getCountryFlag = (countryCode: string | undefined) => {
return String.fromCodePoint(...codePoints)
}
type CountDownState = XOR<
{
type: 'countdown'
remainingSeconds: number
},
{
type: 'revalidating'
}
>
type CountDownState =
| {
type: 'countdown'
remainingSeconds: number
}
| {
type: 'revalidating'
}
const IPInfoCardContainer = forwardRef<HTMLElement, React.PropsWithChildren>(
({ children }, ref) => {
@@ -114,10 +111,19 @@ export const IpInfoCard = () => {
)
const appWindow = useMemo(() => getCurrentWebviewWindow(), [])
const [hasIntersected, setHasIntersected] = useState(false)
// Once intersected, the card stays eligible for refresh until unmount.
const [containerRef, hasIntersected, _resetIntersected] = useIntersection({
rootMargin: '0px',
})
const containerRef = useCallback((element: HTMLElement | null) => {
if (!element) return
const observer = new IntersectionObserver((entries) => {
if (entries.some((e) => e.isIntersecting || e.intersectionRatio > 0)) {
setHasIntersected(true)
observer.disconnect()
}
})
observer.observe(element)
return () => observer.disconnect()
}, [])
const [countdown, setCountdown] = useState<CountDownState>({
type: 'countdown',
@@ -19,10 +19,6 @@ import {
styled,
} from '@mui/material'
import { useLockFn } from 'ahooks'
import {
cancelIdleCallback,
requestIdleCallback,
} from 'foxact/request-idle-callback'
import * as yaml from 'js-yaml'
import {
startTransition,
@@ -350,10 +346,12 @@ export const GroupsEditorViewer = (props: Props) => {
}
}
const handle = requestIdleCallback(serialize)
return () => {
cancelIdleCallback(handle)
if (typeof window.requestIdleCallback === 'function') {
const handle = window.requestIdleCallback(serialize)
return () => window.cancelIdleCallback(handle)
}
const handle = window.setTimeout(serialize, 1)
return () => window.clearTimeout(handle)
}
}, [prependSeq, appendSeq, deleteSeq])
+50 -57
View File
@@ -1,5 +1,6 @@
import { useCallback, useEffect, useReducer } from 'react'
import { useCallback, useEffect, useState } from 'react'
import { useLocalStorage } from '@/hooks/use-local-storage'
import { useProfiles } from '@/hooks/use-profiles'
import { ProxySortType } from './use-filter-sort'
@@ -16,9 +17,13 @@ export interface HeadState {
testUrl: string
}
type HeadStateStorage = Record<string, Record<string, HeadState>>
type ProfileHeadState = Record<string, HeadState>
type HeadStateStorage = Record<string, ProfileHeadState>
const HEAD_STATE_KEY = 'proxy-head-state'
const EMPTY_STORAGE: HeadStateStorage = {}
const EMPTY_PROFILE: ProfileHeadState = {}
export const DEFAULT_STATE: HeadState = {
open: false,
showType: true,
@@ -31,77 +36,65 @@ export const DEFAULT_STATE: HeadState = {
testUrl: '',
}
type HeadStateAction =
| { type: 'reset' }
| { type: 'replace'; payload: Record<string, HeadState> }
| { type: 'update'; groupName: string; patch: Partial<HeadState> }
const parseStorage = (raw: string): HeadStateStorage => {
const value = JSON.parse(raw) as HeadStateStorage | null
return value && typeof value === 'object' && !Array.isArray(value)
? value
: EMPTY_STORAGE
}
function headStateReducer(
state: Record<string, HeadState>,
action: HeadStateAction,
): Record<string, HeadState> {
switch (action.type) {
case 'reset':
return {}
case 'replace':
return action.payload
case 'update': {
const prev = state[action.groupName] || DEFAULT_STATE
return { ...state, [action.groupName]: { ...prev, ...action.patch } }
}
default:
return state
}
const getProfileState = (storage: HeadStateStorage, profile: string) => {
const state = storage[profile]
return state && typeof state === 'object' && !Array.isArray(state)
? state
: EMPTY_PROFILE
}
export function useHeadStateNew() {
const { profiles } = useProfiles()
const current = profiles?.current || ''
const [state, dispatch] = useReducer(headStateReducer, {})
useEffect(() => {
try {
const data = JSON.parse(
localStorage.getItem(HEAD_STATE_KEY)!,
) as HeadStateStorage
const value = data[current] || {}
if (value && typeof value === 'object') {
dispatch({ type: 'replace', payload: value })
} else {
dispatch({ type: 'reset' })
}
} catch {
dispatch({ type: 'reset' })
}
}, [current])
const [storage, setStorage] = useLocalStorage(
HEAD_STATE_KEY,
EMPTY_STORAGE,
parseStorage,
)
const saved = getProfileState(storage, current)
// The active profile owns its live state even if persistence fails.
const [state, setState] = useState(() => ({
profile: { id: current, initialGroups: saved },
groups: saved,
}))
const { profile, groups } = state
if (profile.id !== current) {
setState({ profile: { id: current, initialGroups: saved }, groups: saved })
}
useEffect(() => {
if (groups === profile.initialGroups) return
const timer = setTimeout(() => {
try {
const item = localStorage.getItem(HEAD_STATE_KEY)
let data = (item ? JSON.parse(item) : {}) as HeadStateStorage
if (!data || typeof data !== 'object') data = {}
data[current] = state
localStorage.setItem(HEAD_STATE_KEY, JSON.stringify(data))
} catch {}
setStorage((previous) => ({
...previous,
[profile.id]: groups,
}))
})
return () => clearTimeout(timer)
}, [state, current])
}, [groups, profile, setStorage])
const setHeadState = useCallback(
(groupName: string, obj: Partial<HeadState>) => {
dispatch({ type: 'update', groupName, patch: obj })
(groupName: string, patch: Partial<HeadState>) => {
setState((previous) => {
if (previous.profile !== profile) return previous
const group = previous.groups[groupName] ?? DEFAULT_STATE
return {
profile,
groups: { ...previous.groups, [groupName]: { ...group, ...patch } },
}
})
},
[],
[profile],
)
return [state, setHeadState] as const
return [groups, setHeadState] as const
}
+2 -5
View File
@@ -1,4 +1,4 @@
import { useLocalStorage } from 'foxact/use-local-storage'
import { useLocalStorage } from './use-local-storage'
const defaultClashLog: IClashLog = {
enable: true,
@@ -8,7 +8,4 @@ const defaultClashLog: IClashLog = {
}
export const useClashLog = () =>
useLocalStorage<IClashLog>('clash-log', defaultClashLog, {
serializer: JSON.stringify,
deserializer: JSON.parse,
})
useLocalStorage<IClashLog>('clash-log', defaultClashLog)
+1 -5
View File
@@ -1,4 +1,4 @@
import { useLocalStorage } from 'foxact/use-local-storage'
import { useLocalStorage } from './use-local-storage'
const defaultConnectionSetting: IConnectionSetting = { layout: 'table' }
@@ -6,8 +6,4 @@ export const useConnectionSetting = () =>
useLocalStorage<IConnectionSetting>(
'connections-setting',
defaultConnectionSetting,
{
serializer: JSON.stringify,
deserializer: JSON.parse,
},
)
+21 -20
View File
@@ -1,6 +1,5 @@
/* eslint-disable @eslint-react/set-state-in-effect */
import { useEffect } from 'foxact/use-abortable-effect'
import { useCallback, useState } from 'react'
import { useCallback, useEffect, useState } from 'react'
import { showNotice } from '@/services/notice-service'
@@ -42,26 +41,28 @@ export const useEditorDocument = ({ open, load }: UseEditorDocumentOptions) => {
}
}, [applyLoadedValue, load])
useEffect(
(signal) => {
resetDocumentState()
useEffect(() => {
let cancelled = false
resetDocumentState()
if (!open) return
if (!open) return
load()
.then((nextValue) => {
if (signal.aborted) return
applyLoadedValue(nextValue)
})
.catch((error) => {
if (!signal.aborted) showNotice.error(error)
})
.finally(() => {
if (!signal.aborted) setLoading(false)
})
},
[applyLoadedValue, load, open, resetDocumentState],
)
load()
.then((nextValue) => {
if (cancelled) return
applyLoadedValue(nextValue)
})
.catch((error) => {
if (!cancelled) showNotice.error(error)
})
.finally(() => {
if (!cancelled) setLoading(false)
})
return () => {
cancelled = true
}
}, [applyLoadedValue, load, open, resetDocumentState])
const markSaved = useCallback((nextValue: string) => {
setSavedValue(nextValue)
+148
View File
@@ -0,0 +1,148 @@
import { useCallback, useMemo, useSyncExternalStore } from 'react'
interface StorageEntry {
listeners: Set<() => void>
raw: string | null
parsedRaw: string | null
parsed: unknown
deserializer?: (value: string) => unknown
}
const entries = new Map<string, StorageEntry>()
const readRaw = (key: string): string | null => {
try {
return window.localStorage.getItem(key)
} catch (error) {
console.warn(`[useLocalStorage] Failed to read "${key}"`, error)
return null
}
}
const getRaw = (key: string): string | null => {
const entry = entries.get(key)
return entry ? entry.raw : readRaw(key)
}
const handleStorageEvent = (event: StorageEvent) => {
if (event.storageArea !== window.localStorage) return
if (event.key === null) {
entries.forEach((entry) => {
entry.raw = null
entry.parsedRaw = null
entry.parsed = undefined
entry.listeners.forEach((listener) => listener())
})
return
}
const entry = entries.get(event.key)
if (!entry) return
entry.raw = event.newValue
entry.parsedRaw = null
entry.parsed = undefined
entry.listeners.forEach((listener) => listener())
}
const subscribeKey = (key: string, listener: () => void) => {
if (entries.size === 0) {
window.addEventListener('storage', handleStorageEvent)
}
let entry = entries.get(key)
if (!entry) {
entry = {
listeners: new Set(),
raw: readRaw(key),
parsedRaw: null,
parsed: undefined,
}
entries.set(key, entry)
}
entry.listeners.add(listener)
return () => {
const current = entries.get(key)
if (current) {
current.listeners.delete(listener)
if (current.listeners.size === 0) entries.delete(key)
}
if (entries.size === 0) {
window.removeEventListener('storage', handleStorageEvent)
}
}
}
const parseRaw = <T>(
key: string,
raw: string | null,
defaultValue: T,
deserializer: (value: string) => T,
): T => {
if (raw === null) return defaultValue
const entry = entries.get(key)
if (entry && entry.parsedRaw === raw && entry.deserializer === deserializer) {
return entry.parsed as T
}
try {
const value = deserializer(raw)
if (entry) {
entry.parsedRaw = raw
entry.parsed = value
entry.deserializer = deserializer
}
return value
} catch (error) {
console.warn(`[useLocalStorage] Failed to deserialize "${key}"`, error)
return defaultValue
}
}
export const useLocalStorage = <T>(
key: string,
defaultValue: T,
deserializer: (value: string) => T = JSON.parse,
): [T, (value: T | ((prev: T) => T)) => void] => {
const subscribe = useCallback(
(listener: () => void) => subscribeKey(key, listener),
[key],
)
const raw = useSyncExternalStore(subscribe, () => getRaw(key))
const value = useMemo<T>(
() => parseRaw(key, raw, defaultValue, deserializer),
[key, raw, defaultValue, deserializer],
)
const setValue = useCallback(
(next: T | ((prev: T) => T)) => {
try {
const entry = entries.get(key)
const currentRaw = entry ? entry.raw : readRaw(key)
const resolved =
typeof next === 'function'
? (next as (prev: T) => T)(
parseRaw(key, currentRaw, defaultValue, deserializer),
)
: next
const serialized = JSON.stringify(resolved)
if (currentRaw === serialized) return
window.localStorage.setItem(key, serialized)
if (entry) {
entry.raw = serialized
entry.parsedRaw = null
entry.parsed = undefined
entry.listeners.forEach((listener) => listener())
}
} catch (error) {
console.warn(`[useLocalStorage] Failed to write "${key}"`, error)
}
},
[key, defaultValue, deserializer],
)
return [value, setValue]
}
+15 -18
View File
@@ -1,7 +1,6 @@
import './assets/styles/index.scss'
import { ResizeObserver } from '@juggle/resize-observer'
import { ComposeContextProvider } from 'foxact/compose-context-provider'
import React from 'react'
import { createRoot } from 'react-dom/client'
import { RouterProvider } from 'react-router'
@@ -38,26 +37,24 @@ if (!container) {
disableWebViewShortcuts()
const initializeApp = (initialThemeMode: 'light' | 'dark') => {
const contexts = [
<ThemeModeProvider key="theme" initialState={initialThemeMode} />,
<AppStoreProvider key="app-store" />,
<UpdateStateProvider key="update" />,
]
const root = createRoot(container)
root.render(
<React.StrictMode>
<ComposeContextProvider contexts={contexts}>
<BaseErrorBoundary>
<SWRConfig value={swrConfig}>
<WindowProvider>
<AppDataProvider>
<RouterProvider router={router} />
</AppDataProvider>
</WindowProvider>
</SWRConfig>
</BaseErrorBoundary>
</ComposeContextProvider>
<ThemeModeProvider initialState={initialThemeMode}>
<AppStoreProvider>
<UpdateStateProvider>
<BaseErrorBoundary>
<SWRConfig value={swrConfig}>
<WindowProvider>
<AppDataProvider>
<RouterProvider router={router} />
</AppDataProvider>
</WindowProvider>
</SWRConfig>
</BaseErrorBoundary>
</UpdateStateProvider>
</AppStoreProvider>
</ThemeModeProvider>
</React.StrictMode>,
)
}
+78 -62
View File
@@ -1,8 +1,5 @@
import { getName, getVersion } from '@tauri-apps/api/app'
import { fetch } from '@tauri-apps/plugin-http'
import { asyncRetry } from 'foxts/async-retry'
import { extractErrorMessage } from 'foxts/extract-error-message'
import { once } from 'foxts/once'
import i18n from 'i18next'
import { getBaseConfig } from 'tauri-plugin-mihomo-api'
@@ -10,15 +7,42 @@ import { debugLog } from '@/utils/debug'
import { getRuntimeConfig } from './cmds'
const getUserAgentPromise = once(async () => {
try {
const [name, version] = await Promise.all([getName(), getVersion()])
return `${name}/${version}`
} catch (error) {
console.debug('Failed to build User-Agent, fallback to default', error)
return 'clash-verge-rev'
let userAgentPromise: Promise<string> | null = null
const getUserAgentPromise = () =>
(userAgentPromise ??= Promise.all([getName(), getVersion()])
.then(([name, version]) => `${name}/${version}`)
.catch((error) => {
console.debug('Failed to build User-Agent, fallback to default', error)
return 'clash-verge-rev'
}))
const extractErrorMessage = (error: unknown): string | null =>
error instanceof Error ? `${error.name}: ${error.message}`.trim() : null
const retryWithBackoff = async <T>(
fn: (bail: (error: unknown) => never) => Promise<T>,
retries: number,
): Promise<T> => {
let bailed = false
const bail = (error: unknown): never => {
bailed = true
throw error
}
})
for (let attempt = 0; ; attempt++) {
try {
return await fn(bail)
} catch (error) {
if (bailed || attempt >= retries) throw error
const delay = Math.min(
Math.round((Math.random() + 1) * 1000 * 2 ** attempt),
4000,
)
await new Promise((resolve) => setTimeout(resolve, delay))
}
}
}
// Get current IP and geolocation information (refactored IP detection with service-specific mappings)
interface IpInfo {
ip: string
@@ -249,61 +273,53 @@ export const getIpInfo = async (): Promise<
debugLog(`尝试IP检测服务: ${service.url}`)
try {
return await asyncRetry(
async (bail) => {
console.debug('Fetching IP information:', service.url)
return await retryWithBackoff(async (bail) => {
console.debug('Fetching IP information:', service.url)
const timeoutController = new AbortController()
const timeoutId = setTimeout(() => {
timeoutController.abort()
}, serviceTimeout)
const timeoutController = new AbortController()
const timeoutId = setTimeout(() => {
timeoutController.abort()
}, serviceTimeout)
try {
const response = await fetch(service.url, {
method: 'GET',
proxy,
signal: timeoutController.signal,
connectTimeout: serviceTimeout,
headers: {
'User-Agent': userAgent,
},
})
try {
const response = await fetch(service.url, {
method: 'GET',
proxy,
signal: timeoutController.signal,
connectTimeout: serviceTimeout,
headers: {
'User-Agent': userAgent,
},
})
if (!response.ok) {
return bail(
new Error(
`IP 检测服务出错,状态码: ${response.status} from ${service.url}`,
),
)
}
let data: any
try {
data = await response.json()
} catch {
return bail(new Error(`无法解析 JSON 响应 from ${service.url}`))
}
if (data && data.ip) {
debugLog(`IP检测成功,使用服务: ${service.url}`)
return Object.assign(service.mapping(data), {
// use last fetch success timestamp
lastFetchTs: Date.now(),
})
} else {
return bail(new Error(`无效的响应格式 from ${service.url}`))
}
} finally {
clearTimeout(timeoutId)
if (!response.ok) {
return bail(
new Error(
`IP 检测服务出错,状态码: ${response.status} from ${service.url}`,
),
)
}
},
{
retries: maxRetries,
minTimeout: 1000,
maxTimeout: 4000,
randomize: true,
},
)
let data: any
try {
data = await response.json()
} catch {
return bail(new Error(`无法解析 JSON 响应 from ${service.url}`))
}
if (data && data.ip) {
debugLog(`IP检测成功,使用服务: ${service.url}`)
return Object.assign(service.mapping(data), {
// use last fetch success timestamp
lastFetchTs: Date.now(),
})
} else {
return bail(new Error(`无效的响应格式 from ${service.url}`))
}
} finally {
clearTimeout(timeoutId)
}
}, maxRetries)
} catch (error) {
debugLog(`IP检测服务失败: ${service.url}`, error)
lastError = error
+47 -14
View File
@@ -1,18 +1,51 @@
import { createContextState } from 'foxact/create-context-state'
import {
createContext,
createElement,
use,
useState,
type Dispatch,
type ReactNode,
type SetStateAction,
} from 'react'
const [ThemeModeProvider, useThemeMode, useSetThemeMode] = createContextState<
'light' | 'dark'
>()
import noop from '@/utils/noop'
// save update state
const [UpdateStateProvider, useUpdateState, useSetUpdateState] =
createContextState<boolean>(false)
type ThemeMode = 'light' | 'dark'
export {
ThemeModeProvider,
useThemeMode,
useSetThemeMode,
UpdateStateProvider,
useUpdateState,
useSetUpdateState,
const ThemeModeContext = createContext<ThemeMode>('light')
const SetThemeModeContext =
createContext<Dispatch<SetStateAction<ThemeMode>>>(noop)
export const ThemeModeProvider = ({
initialState,
children,
}: {
initialState: ThemeMode
children?: ReactNode
}) => {
const [mode, setMode] = useState<ThemeMode>(initialState)
return createElement(
ThemeModeContext,
{ value: mode },
createElement(SetThemeModeContext, { value: setMode }, children),
)
}
export const useThemeMode = () => use(ThemeModeContext)
export const useSetThemeMode = () => use(SetThemeModeContext)
const UpdateStateContext = createContext<boolean>(false)
const SetUpdateStateContext =
createContext<Dispatch<SetStateAction<boolean>>>(noop)
export const UpdateStateProvider = ({ children }: { children?: ReactNode }) => {
const [state, setState] = useState(false)
return createElement(
UpdateStateContext,
{ value: state },
createElement(SetUpdateStateContext, { value: setState }, children),
)
}
export const useUpdateState = () => use(UpdateStateContext)
export const useSetUpdateState = () => use(SetUpdateStateContext)