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
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ FIRECRAWL_API_KEY=
ZYTE_API_KEY=
EXA_API_KEY=

# Scheduling / orchestration
# Scheduling / orchestration. inngest v4 defaults to cloud mode: the /api/inngest endpoint needs
# INNGEST_SIGNING_KEY in production, OR INNGEST_DEV=1 for local dev (or run `just inngest-dev`).
INNGEST_DEV=
INNGEST_EVENT_KEY=
INNGEST_SIGNING_KEY=

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
- name: Install just
uses: extractions/setup-just@v4

- name: Setup Node 22
# Pinned to v4: setup-node@v5 auto-detects the packageManager field and invokes pnpm before
# corepack enables it. Fully clearing the Node-20 notice needs a pnpm/action-setup migration.
- name: Setup Node 24
# Node 24 aligns the runtime with the bumped @types/node (Node-26 line) from the major-deps
# migration, so the types no longer describe APIs ahead of the runtime.
uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24

- name: Enable corepack
run: corepack enable
Expand Down
4 changes: 2 additions & 2 deletions apps/web/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
// Workspace packages export TypeScript sources directly.
transpilePackages: ['@flank/core', '@flank/db', '@flank/pipeline'],
// Linting runs once at the workspace root (`just lint`), not inside next build.
eslint: { ignoreDuringBuilds: true },
// next 16 removed the built-in `eslint` build integration; linting runs at the workspace root
// (`just lint`) instead, so there is nothing to configure here.
};

export default nextConfig;
16 changes: 8 additions & 8 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
"@flank/core": "workspace:*",
"@flank/db": "workspace:*",
"@flank/pipeline": "workspace:*",
"inngest": "^3.44.0",
"next": "^15.5.18",
"react": "^19.1.0",
"react-dom": "^19.1.0"
"inngest": "^4.7.0",
"next": "^16.2.9",
"react": "^19.2.7",
"react-dom": "^19.2.7"
},
"devDependencies": {
"@types/node": "^22.13.0",
"@types/react": "^19.1.0",
"@types/node": "^26.0.0",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.1.0",
"typescript": "^5.7.3",
"vitest": "^3.0.5"
"typescript": "^6.0.3",
"vitest": "^4.1.9"
}
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"packageManager": "pnpm@10.25.0",
"engines": {
"node": ">=22"
"node": ">=24"
},
"scripts": {
"dev": "pnpm --filter @flank/web dev",
Expand All @@ -24,20 +24,20 @@
"eval:triage": "tsx scripts/eval-triage.ts"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.65.0",
"@anthropic-ai/sdk": "^0.105.0",
"@flank/core": "workspace:*",
"@flank/pipeline": "workspace:*"
},
"devDependencies": {
"@eslint/js": "^9.20.0",
"@types/node": "^22.13.0",
"@vitest/coverage-v8": "^3.0.5",
"eslint": "^9.20.0",
"@eslint/js": "^10.0.1",
"@types/node": "^26.0.0",
"@vitest/coverage-v8": "^4.1.9",
"eslint": "^10.5.0",
"prettier": "^3.5.0",
"tsx": "^4.19.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.0",
"vitest": "^3.0.5"
"typescript": "^6.0.3",
"typescript-eslint": "^8.61.1",
"vitest": "^4.1.9"
},
"pnpm": {
"overrides": {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"zod": "^3.25.0"
"zod": "^4.4.3"
},
"devDependencies": {
"@types/node": "^22.13.0",
"typescript": "^5.7.3",
"vitest": "^3.0.5"
"@types/node": "^26.0.0",
"typescript": "^6.0.3",
"vitest": "^4.1.9"
}
}
4 changes: 4 additions & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"comment": "TS6 no longer auto-includes @types/node; declare it explicitly for the node:* + process APIs.",
"compilerOptions": {
"types": ["node"]
},
"include": ["src/**/*.ts"]
}
8 changes: 4 additions & 4 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@flank/core": "workspace:*",
"drizzle-orm": "^0.45.2",
"postgres": "^3.4.5",
"zod": "^3.25.0"
"zod": "^4.4.3"
},
"devDependencies": {
"@flank/pipeline": "workspace:*",
"@types/node": "^22.13.0",
"@types/node": "^26.0.0",
"drizzle-kit": "^0.31.0",
"typescript": "^5.7.3",
"vitest": "^3.0.5"
"typescript": "^6.0.3",
"vitest": "^4.1.9"
}
}
4 changes: 4 additions & 0 deletions packages/db/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"comment": "TS6 no longer auto-includes @types/node; declare it explicitly for the node:* + process APIs.",
"compilerOptions": {
"types": ["node"]
},
"include": ["src/**/*.ts", "drizzle.config.ts"]
}
12 changes: 6 additions & 6 deletions packages/pipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.65.0",
"@anthropic-ai/sdk": "^0.105.0",
"@flank/core": "workspace:*",
"cron-parser": "^5.0.4",
"inngest": "^3.44.0",
"zod": "^3.25.0"
"inngest": "^4.7.0",
"zod": "^4.4.3"
},
"devDependencies": {
"@types/node": "^22.13.0",
"typescript": "^5.7.3",
"vitest": "^3.0.5"
"@types/node": "^26.0.0",
"typescript": "^6.0.3",
"vitest": "^4.1.9"
}
}
2 changes: 1 addition & 1 deletion packages/pipeline/src/fixture-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const loadFixtureBundleSync = (fixturesDir: string): FixtureBundle => {
try {
return readFileSync(join(fixturesDir, name), 'utf8');
} catch (error) {
throw new Error(`could not read fixture ${name} in ${fixturesDir}: ${String(error)}`);
throw new Error(`could not read fixture ${name} in ${fixturesDir}`, { cause: error });
}
};
return Object.freeze({
Expand Down
14 changes: 8 additions & 6 deletions packages/pipeline/src/inngest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const createScheduledTickFunction = (
config: ScheduledTickConfig = {},
) =>
inngest.createFunction(
{ id: 'scheduled-source-tick' },
{ cron: config.cron ?? '*/15 * * * *' },
// inngest v4: the trigger moved into the options object as `triggers`.
{ id: 'scheduled-source-tick', triggers: [{ cron: config.cron ?? '*/15 * * * *' }] },
async () => {
const { store, triage } = await buildRuntime();
const deps = { store, triage, nextId: () => randomUUID() };
Expand Down Expand Up @@ -60,8 +60,7 @@ export const createNightlySynthesisFunction = (
config: NightlySynthesisConfig = {},
) =>
inngest.createFunction(
{ id: 'nightly-synthesis' },
{ cron: config.cron ?? '0 4 * * *' },
{ id: 'nightly-synthesis', triggers: [{ cron: config.cron ?? '0 4 * * *' }] },
async () => {
const { store, client } = await buildRuntime();
return runNightlySynthesis({ store, client, nextId: () => randomUUID() }, new Date());
Expand Down Expand Up @@ -91,8 +90,11 @@ export const createDeliverySweepFunction = (
config: DeliverySweepConfig = {},
) =>
inngest.createFunction(
{ id: 'delivery-sweep', concurrency: { limit: 1 } },
{ cron: config.cron ?? '*/5 * * * *' },
{
id: 'delivery-sweep',
concurrency: { limit: 1 },
triggers: [{ cron: config.cron ?? '*/5 * * * *' }],
},
async () => {
const { store, notifier } = await buildRuntime();
return runDeliverySweep(
Expand Down
4 changes: 4 additions & 0 deletions packages/pipeline/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"comment": "TS6 no longer auto-includes @types/node; declare it explicitly for the node:* + process APIs.",
"compilerOptions": {
"types": ["node"]
},
"include": ["src/**/*.ts"]
}
Loading