06. Testing, Troubleshooting, and Cheat Sheet
This chapter is the short maintenance guide for daily development.
1. Core validation commands
Run these before you publish or open a pull request:
bash
npm run typecheck
npm test
npm run build
npm pack --dry-runOptional local checks:
bash
npm run smoke
npm run example:quickstart
npm run example:actoviq-interactive-agent2. Common problems
Missing credentials
If you see a configuration error, check:
~/.actoviq/settings.jsonloadJsonConfigFile(...)- required keys such as
ACTOVIQ_AUTH_TOKENandACTOVIQ_BASE_URL
Session not found
Check the session ID and the configured sessionDirectory.
Tool not available
Check whether:
- you passed the tool into
createAgentSdk(...) - you attached the expected MCP server
- you are expecting a runtime-native tool that only exists on the bridge path
Skill not available
Check whether:
- the skill is bundled, custom, or disk-loaded
- the skill directory is one of the configured search paths
- you are looking for a runtime-native skill that only exists on the bridge path
3. Handy example commands
bash
npm run example:quickstart
npm run example:session
npm run example:stream-loop
npm run example:actoviq-skills
npm run example:actoviq-file-tools
npm run example:actoviq-memory
npm run example:actoviq-swarm
npm run example:actoviq-interactive-agent4. API cheat sheet
Clean SDK:
createAgentSdk(...)sdk.run(...)sdk.stream(...)sdk.createSession(...)sdk.skills.listMetadata()sdk.runSkill(...)session.runSkill(...)session.extractMemory(...)session.compactState(...)sdk.swarm.createTeam(...)
Bridge SDK:
createActoviqBridgeSdk(...)sdk.getRuntimeInfo()sdk.skills.listMetadata()sdk.runSkill(...)sdk.runWithAgent(...)sdk.sessions.continueMostRecent(...)sdk.sessions.fork(...)
You now have the full tutorial set. If you want a single next step, run:
bash
npm run example:quickstart