On OS-X running aimock through the bin (e.g. bunx aimock npx aimock) after installing it just exits 0 instantly and never starts the server
the only workaround is node ./node_modules/@copilotkit/aimock/dist/aimock-cli.js --config ./aimock.json
it looks like the entry point guard in dist/aimock-cli.js does scriptName.endsWith("aimock-cli.js") on process.argv[1] but when you go through the bin symlink or an npx/bunx shim argv[1] is the symlink/shim path (ending in aimock) so the check is false and runAimockCli() never runs
On OS-X running aimock through the bin (e.g.
bunx aimocknpx aimock) after installing it just exits 0 instantly and never starts the serverthe only workaround is
node ./node_modules/@copilotkit/aimock/dist/aimock-cli.js --config ./aimock.jsonit looks like the entry point guard in
dist/aimock-cli.jsdoesscriptName.endsWith("aimock-cli.js")onprocess.argv[1]but when you go through the bin symlink or an npx/bunx shimargv[1]is the symlink/shim path (ending inaimock) so the check is false andrunAimockCli()never runs