Identified missing dev script error.
UnderstandAdded dev script to package.json.
Editrunning npm run dev, getting
[coding-agent] npm error Lifecycle script dev failed with error:
[coding-agent] npm error workspace @mariozechner/pi-coding-agent@0.50.7
[coding-agent] npm error location /Users/badlogic/workspaces/pi-mono/packages/coding-agent
[coding-agent] npm error Missing script: "dev"
[coding-agent] npm error
[coding-agent] npm error To see a list of scripts, run:
[coding-agent] npm error npm run --workspace=@mariozechner/pi-coding-agent@0.50.7
[coding-agent] cd packages/coding-agent && npm run dev exited with code 1
The user is running npm run dev and getting an error that the dev script is missing in the coding-agent package. Let me check the package.json to see what scripts are available.
>cat packages/coding-agent/package.json | grep -A 20 '"scripts"'I see, there's no dev script in the coding-agent package. Let me check the root package.json to see what dev is supposed to do.
>cat package.json | grep -A 30 '"scripts"'The root npm run dev script expects each workspace to have a dev script, but coding-agent doesn't have one. Let me check what other packages have for their dev script to understand the pattern.
>grep -A 2 '"dev"' packages/ai/package.json packages/agent/package.json packages/tui/package.json packages/mom/package.json packages/web-ui/package.json 2>/dev/nullI see the pattern. The coding-agent package is missing the dev script. I should add it following the same pattern as the other packages:
"dev": "tsgo -p tsconfig.build.json --watch --preserveWatchOutput",Let me add it to the coding-agent package.json.
The coding-agent package is missing the dev script. Let me add it:
Now I'll add the dev script following the same pattern as other packages.
Good, the dev script has been added. The script follows the same pattern as other packages like ai, agent, tui, and mom. Now npm run dev should work from the root.
Added the missing dev script to packages/coding-agent/package.json. It now matches the pattern used by other packages: tsgo -p tsconfig.build.json --watch --preserveWatchOutput
"dev": "tsgo -p tsconfig.build.json --watch --preserveWatchOutput",