Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
with:
name: e2e-orchestration-results
path: |
e2e/**/*.log
apps/worker/e2e/**/*.log
retention-days: 7

e2e-capacity:
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
with:
name: e2e-capacity-results
path: |
e2e/**/*.log
apps/worker/e2e/**/*.log
retention-days: 7

e2e-agent:
Expand Down Expand Up @@ -179,5 +179,5 @@ jobs:
with:
name: e2e-agent-results
path: |
e2e/**/*.log
apps/worker/e2e/**/*.log
retention-days: 7
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
with:
name: e2e-orchestration-results
path: |
e2e/**/*.log
apps/worker/e2e/**/*.log
retention-days: 7

e2e-capacity:
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
with:
name: e2e-capacity-results
path: |
e2e/**/*.log
apps/worker/e2e/**/*.log
retention-days: 7

e2e-agent:
Expand Down Expand Up @@ -180,5 +180,5 @@ jobs:
with:
name: e2e-agent-results
path: |
e2e/**/*.log
apps/worker/e2e/**/*.log
retention-days: 7
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
46 changes: 46 additions & 0 deletions apps/worker/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "worker",
"private": true,
"type": "module",
"scripts": {
"dev": "rm -rf .nitro/workflow && nitro dev",
"build": "pnpm validate:pre-sandbox && rm -rf .nitro/workflow && NODE_OPTIONS=--max-old-space-size=8192 nitro build",
"preview": "nitro preview",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit",
"validate:pre-sandbox": "tsx scripts/validate-pre-sandbox-config.ts",
"build:arthur-tracer": "node scripts/build-arthur-tracer.mjs",
"setup:arthur-prompts": "tsx scripts/setup-arthur-prompts.ts",
"test:e2e": "pnpm test:e2e:agent && pnpm test:e2e:orchestration && pnpm test:e2e:capacity",
"test:e2e:agent": "vitest run --config e2e/vitest.e2e.config.ts --project agent",
"test:e2e:orchestration": "vitest run --config e2e/vitest.e2e.config.ts --project orchestration",
"test:e2e:capacity": "vitest run --config e2e/vitest.e2e.config.ts --project capacity"
},
"dependencies": {
"@ai-sdk/anthropic": "^3.0.78",
"@chat-adapter/slack": "^4.20.2",
"@gitbeaker/rest": "^43.8.0",
"@octokit/auth-app": "^8.2.0",
"@octokit/rest": "^22.0.1",
"@t3-oss/env-core": "^0.13.10",
"@upstash/redis": "^1.37.0",
"@vercel/functions": "^3.5.0",
"@vercel/sandbox": "^1.8.1",
"ai": "^6.0.188",
"chat": "^4.20.2",
"h3": "^1",
"nitropack": "^2",
"pino": "^10.3.1",
"workflow": "latest",
"yaml": "^2.9.0",
"zod": "^3.25.76"
},
"devDependencies": {
"@workflow/vitest": "latest",
"@workflow/world-postgres": "latest",
"tsx": "^4.21.0",
"typescript": "^5.8",
"vitest": "^3"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import path from "node:path";
import { fileURLToPath } from "node:url";

const __dirname = path.dirname(fileURLToPath(import.meta.url));
const repoRoot = path.resolve(__dirname, "..");
const workerRoot = path.resolve(__dirname, "..");
// arthur-engine lives as a sibling of the monorepo root (apps/worker → apps → repo → arthur-engine)
const monorepoRoot = path.resolve(workerRoot, "..", "..");
const defaultSource = path.resolve(
repoRoot,
monorepoRoot,
"..",
"arthur-engine",
"integrations",
Expand All @@ -27,10 +29,10 @@ if (!fs.existsSync(sourcePath)) {

const bytes = fs.readFileSync(sourcePath);
const base64 = bytes.toString("base64");
const outPath = path.resolve(repoRoot, "src", "sandbox", "arthur-tracer.ts");
const outPath = path.resolve(workerRoot, "src", "sandbox", "arthur-tracer.ts");

const out = `// AUTO-GENERATED — do not edit by hand.
// Source: ${path.relative(repoRoot, sourcePath)}
// Source: ${path.relative(workerRoot, sourcePath)}
// Regenerate: pnpm build:arthur-tracer
//
// Base64-encoded Python source of the Arthur Engine Claude Code tracer.
Expand All @@ -40,4 +42,4 @@ export const ARTHUR_TRACER_PY_BASE64 = "${base64}";
`;

fs.writeFileSync(outPath, out);
console.log(`Wrote ${path.relative(repoRoot, outPath)} (${bytes.length} bytes -> ${base64.length} base64 chars)`);
console.log(`Wrote ${path.relative(workerRoot, outPath)} (${bytes.length} bytes -> ${base64.length} base64 chars)`);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
49 changes: 11 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,17 @@
"private": true,
"type": "module",
"scripts": {
"dev": "rm -rf .nitro/workflow && nitro dev",
"build": "pnpm validate:pre-sandbox && rm -rf .nitro/workflow && NODE_OPTIONS=--max-old-space-size=8192 nitro build",
"preview": "nitro preview",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit",
"validate:pre-sandbox": "tsx scripts/validate-pre-sandbox-config.ts",
"build:arthur-tracer": "node scripts/build-arthur-tracer.mjs",
"setup:arthur-prompts": "tsx scripts/setup-arthur-prompts.ts",
"test:e2e": "pnpm test:e2e:agent && pnpm test:e2e:orchestration && pnpm test:e2e:capacity",
"test:e2e:agent": "vitest run --config e2e/vitest.e2e.config.ts --project agent",
"test:e2e:orchestration": "vitest run --config e2e/vitest.e2e.config.ts --project orchestration",
"test:e2e:capacity": "vitest run --config e2e/vitest.e2e.config.ts --project capacity"
},
"dependencies": {
"@ai-sdk/anthropic": "^3.0.78",
"@chat-adapter/slack": "^4.20.2",
"@gitbeaker/rest": "^43.8.0",
"@octokit/auth-app": "^8.2.0",
"@octokit/rest": "^22.0.1",
"@t3-oss/env-core": "^0.13.10",
"@upstash/redis": "^1.37.0",
"@vercel/functions": "^3.5.0",
"@vercel/sandbox": "^1.8.1",
"ai": "^6.0.188",
"chat": "^4.20.2",
"h3": "^1",
"nitropack": "^2",
"pino": "^10.3.1",
"workflow": "latest",
"yaml": "^2.9.0",
"zod": "^3.25.76"
"dev": "pnpm --filter worker dev",
"build": "pnpm -r build",
"typecheck": "pnpm -r typecheck",
"test": "pnpm -r test",
"test:e2e": "pnpm --filter worker test:e2e",
"test:e2e:agent": "pnpm --filter worker test:e2e:agent",
"test:e2e:orchestration": "pnpm --filter worker test:e2e:orchestration",
"test:e2e:capacity": "pnpm --filter worker test:e2e:capacity"
},
"devDependencies": {
"@workflow/vitest": "latest",
"@workflow/world-postgres": "latest",
"tsx": "^4.21.0",
"typescript": "^5.8",
"vitest": "^3"
}
"typescript": "^5.8"
},
"packageManager": "pnpm@9.0.0"
}
Loading
Loading