diff --git a/.github/github-app.yml b/.github/github-app.yml index aba786d75e0b..70913d721e92 100644 --- a/.github/github-app.yml +++ b/.github/github-app.yml @@ -4,7 +4,11 @@ scripts: triggers: - session.create - name: Restore apm.lock - command: git restore apm.lock + command: git restore apm.lock.yaml + triggers: + - session.create +- name: Install ast-grep-cli + command: pip install ast-grep-cli triggers: - session.create automation: diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 317d59d58d2d..d316b61d5ce9 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -18,10 +18,14 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: Install apm-cli and run apm install run: | pip install apm-cli apm install - git restore apm.lock + git restore apm.lock.yaml + + - name: Install ast-grep + run: | + pip install ast-grep-cli diff --git a/.gitignore b/.gitignore index e852e600c522..b791c9852fa9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ apm_modules/ .github/instructions/* !.github/skills/segment-create/ !.github/skills/segment-docs/ +.agents/ # Others diff --git a/apm.lock b/apm.lock deleted file mode 100644 index 5cda34f2da7f..000000000000 --- a/apm.lock +++ /dev/null @@ -1,73 +0,0 @@ -lockfile_version: '1' -generated_at: '2026-05-04T17:15:32.688004+00:00' -apm_version: 0.7.7 -dependencies: -- repo_url: JanDeDobbeleer/agentic - host: github.com - virtual_path: instructions/golang.instructions.md - is_virtual: true - package_type: apm_package - deployed_files: - - .github/instructions/golang.instructions.md -- repo_url: JanDeDobbeleer/agentic - host: github.com - virtual_path: instructions/markdown.instructions.md - is_virtual: true - package_type: apm_package - deployed_files: - - .github/instructions/markdown.instructions.md -- repo_url: JanDeDobbeleer/agentic - host: github.com - virtual_path: instructions/powershell.instructions.md - is_virtual: true - package_type: apm_package - deployed_files: - - .github/instructions/powershell.instructions.md -- repo_url: JanDeDobbeleer/agentic - host: github.com - resolved_commit: b4e8062eaeef93582bf4cbb86ad4816f37630bb2 - virtual_path: skills/conventional-commit - is_virtual: true - package_type: claude_skill - deployed_files: - - .github/skills/conventional-commit -- repo_url: JanDeDobbeleer/agentic - host: github.com - resolved_commit: b4e8062eaeef93582bf4cbb86ad4816f37630bb2 - virtual_path: skills/golang - is_virtual: true - package_type: claude_skill - deployed_files: - - .github/skills/golang -- repo_url: JanDeDobbeleer/agentic - host: github.com - resolved_commit: b4e8062eaeef93582bf4cbb86ad4816f37630bb2 - virtual_path: skills/markdown - is_virtual: true - package_type: claude_skill - deployed_files: - - .github/skills/markdown -- repo_url: JanDeDobbeleer/agentic - host: github.com - resolved_commit: b4e8062eaeef93582bf4cbb86ad4816f37630bb2 - virtual_path: skills/powershell - is_virtual: true - package_type: claude_skill - deployed_files: - - .github/skills/powershell -- repo_url: JanDeDobbeleer/agentic - host: github.com - resolved_commit: b4e8062eaeef93582bf4cbb86ad4816f37630bb2 - virtual_path: skills/vale-user-facing-text - is_virtual: true - package_type: claude_skill - deployed_files: - - .github/skills/vale-user-facing-text -- repo_url: ast-grep/agent-skill - host: github.com - resolved_commit: 577f4d4507678f2c8cee150fae25e6ce309f70b1 - virtual_path: ast-grep/skills/ast-grep - is_virtual: true - package_type: claude_skill - deployed_files: - - .github/skills/ast-grep diff --git a/src/cli/auth/ytmda.go b/src/cli/auth/ytmda.go index 73262cf7d03d..f2dc3735dcfd 100644 --- a/src/cli/auth/ytmda.go +++ b/src/cli/auth/ytmda.go @@ -71,7 +71,7 @@ func (y *Ytmda) Authenticate() { return } - cache.Set(cache.Session, YTMDATOKEN, token, cache.INFINITE) + cache.Set(cache.Device, YTMDATOKEN, token, cache.INFINITE) setState(done) } diff --git a/src/cli/auth/ytmda_test.go b/src/cli/auth/ytmda_test.go index 23e462e91891..20752e19db55 100644 --- a/src/cli/auth/ytmda_test.go +++ b/src/cli/auth/ytmda_test.go @@ -80,10 +80,6 @@ func TestYtdma_Authenticate(t *testing.T) { env.On("HTTPRequest", codeURL).Return([]byte(tc.requestCodeResponse), tc.requestCodeError) env.On("HTTPRequest", tokenURL).Return([]byte(tc.requestTokenResponse), tc.requestTokenError) - if tc.shouldSetToken { - cache.Set(cache.Device, YTMDATOKEN, tc.expectedToken, cache.INFINITE) - } - ytmda := &Ytmda{ model: model{ env: env, @@ -99,6 +95,12 @@ func TestYtdma_Authenticate(t *testing.T) { assert.Nil(t, ytmda.err) } + if tc.shouldSetToken { + token, ok := cache.Get[string](cache.Device, YTMDATOKEN) + require.True(t, ok) + assert.Equal(t, tc.expectedToken, token) + } + cache.DeleteAll(cache.Device) }) } diff --git a/website/api/package-lock.json b/website/api/package-lock.json index a027bdf6df40..8c7b650667bd 100644 --- a/website/api/package-lock.json +++ b/website/api/package-lock.json @@ -133,9 +133,9 @@ "license": "MIT" }, "node_modules/axios": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.0.tgz", - "integrity": "sha512-wWyJDlAatxk30ZJer+GeCWS209sA42X+N5jU2jy6oHTp7ufw8uzUTVFBX9+wTfAlhiJXGS0Bq7X6efruWjuK9Q==", + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.2.tgz", + "integrity": "sha512-wLrXxPtcrPTsNlJmKjkPnNPK2Ihe0hn0wGSaTEiHRPxwjvJwT3hKmXF4dpqxmPO9SoNb2FsYXj/xEo0gHN+D5A==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.11", @@ -473,12 +473,12 @@ } }, "node_modules/express-rate-limit": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.3.0.tgz", - "integrity": "sha512-KJzBawY6fB9FiZGdE/0aftepZ91YlaGIrV8vgblRM3J8X+dHx/aiowJWwkx6LIGyuqGiANsjSwwrbb8mifOJ4Q==", + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.5.1.tgz", + "integrity": "sha512-5O6KYmyJEpuPJV5hNTXKbAHWRqrzyu+OI3vUnSd2kXFubIVpG7ezpgxQy76Zo5GQZtrQBg86hF+CM/NX+cioiQ==", "license": "MIT", "dependencies": { - "ip-address": "10.1.0" + "ip-address": "^10.2.0" }, "engines": { "node": ">= 16" @@ -706,9 +706,9 @@ } }, "node_modules/hono": { - "version": "4.12.14", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.14.tgz", - "integrity": "sha512-am5zfg3yu6sqn5yjKBNqhnTX7Cv+m00ox+7jbaKkrLMRJ4rAdldd1xPd/JzbBWspqaQv6RSTrgFN95EsfhC+7w==", + "version": "4.12.18", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.18.tgz", + "integrity": "sha512-RWzP96k/yv0PQfyXnWjs6zot20TqfpfsNXhOnev8d1InAxubW93L11/oNUc3tQqn2G0bSdAOBpX+2uDFHV7kdQ==", "license": "MIT", "engines": { "node": ">=16.9.0" @@ -757,9 +757,9 @@ "license": "ISC" }, "node_modules/ip-address": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", - "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.2.0.tgz", + "integrity": "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==", "license": "MIT", "engines": { "node": ">= 12"