Skip to content

Commit ed68a89

Browse files
Shawclaude
andcommitted
fix(ci): build packages/skills before plugin-agent-skills + use bunx next in clone-ur-crush
Three CI failures on develop tip a15c3d9: 1. Benchmark (weekly) + Live Scenarios — plugin-agent-skills typecheck failed with "Cannot find module '@elizaos/skills' or '@elizaos/shared'". The plugin's tsconfig paths resolve those packages via their dist d.ts files, but the workflow build steps weren't building packages/skills first (live-scenarios builds packages/shared but not skills; benchmark-weekly builds neither). Added explicit build steps for both packages before the plugin build loop runs. 2. Nightly Build — packages/examples/cloud/clone-ur-crush failed with "Cannot find module .../node_modules/next/dist/bin/next". The build script hardcoded a relative path into a bun-store symlink target that doesn't exist when next is hoisted to the monorepo root node_modules. Switched to `bunx next build`. 3. Reverted my speculative tsconfig path change in plugin-agent-skills (was pointing at packages/skills/src/index.ts; correct fix is to leave it at dist and ensure CI builds dist first). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 39ea02d commit ed68a89

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/benchmark-weekly.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ jobs:
116116
bun run --cwd packages/core build
117117
echo "::endgroup::"
118118
119+
echo "::group::Build packages/shared"
120+
# plugin-agent-skills (and others) consume @elizaos/shared via dist
121+
# exports (RouteRequestContext, route schemas). Must build before
122+
# any plugin that imports from it.
123+
bun run --cwd packages/shared build
124+
echo "::endgroup::"
125+
126+
echo "::group::Build packages/skills"
127+
# plugin-agent-skills imports @elizaos/skills via its dist exports.
128+
bun run --cwd packages/skills build
129+
echo "::endgroup::"
130+
119131
provider_package=""
120132
if [ -n "${GROQ_API_KEY:-}" ]; then
121133
provider_package="plugins/plugin-groq"

.github/workflows/live-scenarios.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ jobs:
133133
bun run --cwd packages/shared build
134134
echo "::endgroup::"
135135
136+
echo "::group::Build packages/skills"
137+
# plugin-agent-skills imports @elizaos/skills via its dist exports
138+
# (getSkillsDir, loadSkills, formatSkillsForPrompt). Must build
139+
# before plugin-agent-skills typechecks its declaration emit.
140+
bun run --cwd packages/skills build
141+
echo "::endgroup::"
142+
136143
provider_package=""
137144
if [ -n "${GROQ_API_KEY:-}" ]; then
138145
provider_package="plugins/plugin-groq"

packages/examples/cloud/clone-ur-crush/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Clone Ur Crush — standalone Next.js example showing AI-powered character creation against Eliza Cloud (image gen, scene gen, character analysis).",
55
"scripts": {
66
"dev": "next dev --port 3012",
7-
"build": "node ../../../scripts/rm-path-recursive.mjs .next && node node_modules/next/dist/bin/next build",
7+
"build": "node ../../../scripts/rm-path-recursive.mjs .next && bunx next build",
88
"start": "next start --port 3012",
99
"lint": "bunx @biomejs/biome check --write --unsafe .",
1010
"lint:check": "bunx @biomejs/biome check .",

0 commit comments

Comments
 (0)