Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
schedule:
- cron: '24 6 * * 1'

concurrency:
group: codeql-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
actions: read
contents: read
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/cursor-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Cursor Integration

on:
pull_request:
push:
branches:
- main
- dev

concurrency:
group: cursor-integration-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint-build-cursor-tests:
Expand All @@ -26,12 +26,12 @@ jobs:
- name: Lint
run: npm run lint

- name: Security regression suite
run: npm run test:security

- name: Build
run: npm run build

- name: Cursor integration unit tests
run: node --test test/cursor*.test.mjs

# Cursor Bugbot is enabled in the Cursor dashboard and branch protection rules.
# It is not invoked from this workflow because it requires Cursor-side configuration.
# After merging, require the "Cursor Bugbot" GitHub check on protected branches manually.
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,13 @@ Discord "commands" means slash commands; default to global registration so they

Last guidance refresh: 2026-08-04 (branch refs verified locally; build status
not re-asserted by this documentation migration).

<!-- BEGIN:nextjs-agent-rules -->

# This is NOT the Next.js you know

This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.

This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.

<!-- END:nextjs-agent-rules -->
2 changes: 1 addition & 1 deletion test/api-v1-audit-e2e.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test('/api/v1/audit returns an explicit demo report for mode=demo', { timeout: 2
}
})

test('/api/v1/audit keeps live mode credential-backed with clear missing-key errors', { timeout: 120_000 }, async () => {
test('/api/v1/audit keeps live mode credential-backed with clear missing-key errors', { timeout: 240_000 }, async () => {
const server = await ensureE2eServer('/api/health')

try {
Expand Down
4 changes: 2 additions & 2 deletions test/audit-flow-e2e.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('demo audit path auto-fills URL and location then renders a verdict', { tim
].join('\n')

await page.goto(`${BASE_URL}/audit`, { waitUntil: 'networkidle' })
await page.getByRole('button', { name: 'Demo fixtures' }).click()
await page.getByRole('button', { name: /^Check my post\./ }).click()
await page.getByTestId('demo-cost-snackbar').waitFor({ timeout: 5_000 })
assert.match(await page.getByTestId('demo-cost-snackbar').innerText(), /Live evidence is capped/i)
await page.getByTestId('job-input-text').fill(sample)
Expand All @@ -35,7 +35,7 @@ test('demo audit path auto-fills URL and location then renders a verdict', { tim

const verdictText = await page.getByTestId('audit-result-verdict').innerText()
assert.match(verdictText, /High-Risk/i)
assert.match(await page.getByRole('heading', { name: 'Evidence receipts' }).innerText(), /Evidence receipts/)
assert.match(await page.getByText('Evidence receipts', { exact: true }).first().innerText(), /Evidence receipts/i)
} finally {
await browser.close()
await server.release()
Expand Down
2 changes: 1 addition & 1 deletion test/runtime-wiring.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ test('multi-platform chat agents are wired through ChatSDK adapters', async () =
assert.equal(packageJson.dependencies['@chat-adapter/slack'], chatVersion)
assert.equal(packageJson.dependencies['@chat-adapter/state-redis'], chatVersion)
assert.equal(packageJson.dependencies['@chat-adapter/telegram'], chatVersion)
assert.equal(packageJson.dependencies['@zernio/chat-sdk-adapter'], '^0.4.0')
assert.equal(packageJson.dependencies['@zernio/chat-sdk-adapter'], '^0.5.1')
assert.match(bot, /from '@chat-adapter\/discord'/)
assert.match(bot, /from '@chat-adapter\/telegram'/)
assert.match(bot, /from '@zernio\/chat-sdk-adapter'/)
Expand Down
3 changes: 2 additions & 1 deletion test/site-header-nav-e2e.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ test('mobile hamburger opens a full-screen navigation menu and opens pages from
assert.equal(await header.getByRole('button', { name: /^Search site/ }).count(), 0)

await page.getByRole('button', { name: 'Open site navigation' }).click()
const mobileMenu = page.locator('[role="menu"]').filter({ hasText: 'Start here' })
await mobileMenu.waitFor({ state: 'visible' })
const visibleMenus = await page.locator('[role="menu"]').evaluateAll((menus) =>
menus
.map((menu) => {
Expand All @@ -37,7 +39,6 @@ test('mobile hamburger opens a full-screen navigation menu and opens pages from
assert.ok(await page.getByRole('button', { name: 'Close site navigation' }).isVisible())
assert.equal(await page.evaluate(() => document.activeElement?.getAttribute('aria-label')), 'Close site navigation')

const mobileMenu = page.locator('[role="menu"]').filter({ hasText: 'Start here' })
await page.keyboard.press('Shift+Tab')
assert.ok(await mobileMenu.evaluate((menu) => menu.contains(document.activeElement)))
await page.keyboard.press('Tab')
Expand Down