Aiheal Cli Operator
AIHeal is an AI emotional-healing platform available at https://aihealing.me/, covering personalized audio healing, single-session healing, deep healing plans, conversation support, emotion-space tracking, and account/subscription workflows.
This skill operates the CLI side of those capabilities and is designed for reliable command execution, payload shaping, diagnostics, and coverage verification.
Human users are welcome to experience the full interactive product directly on https://aihealing.me/.
Command-family scope in this skill:
- account/session:
config,auth,whoami - content/healing:
audio,plan,single-job,plan-stage-job - conversation/emotion:
chat,emotion - account-side operations:
user,subscription,notification,feedback,memory,behavior - raw/advanced requests:
api,healing
Quick Start
- Use npm package runtime by default.
- Global runtime:
npm install -g aihealingmeclithenaiheal .... - No-global runtime:
npx -y -p aihealingmecli aiheal .... - Keep all operations in package runtime.
Workflow
- Confirm runtime baseline.
- Run
aiheal --help. - Run
aiheal config getto verifyapiBaseUrl, locale, region, and token state.
- Choose command family by task.
- Use
auth/configfor login and token setup. - Use
audio,plan,single-job,plan-stage-jobfor healing generation workflows. - Use
chatandemotionfor conversation and emotion-space workflows. - Use
subscription,notification,feedback,memory,behaviorfor account-side operations. - Use
api requestas fallback for unwrapped endpoints.
- Prefer structured payload input for complex operations.
- Use
--payload-file path/to/file.jsonby default. - Use
--body '{...}'only for short payloads. - Merge behavior:
--bodyoverrides same keys from--payload-file.
- Validate outputs and state transitions.
- Expect JSON output with top-level
ok. - Use
error.codeanderror.statusas primary diagnostics. - For async jobs, use
single-job waitandplan-stage-job waitwith explicit timeout values. - For
single-job createandplan-stage-job create, handle CLI local validation failures viaerror.code=VALIDATION_ERRORand inspecterror.issues[]for field-level corrections.
- Verify capability coverage (detect fake/unimplemented commands).
- For public endpoints, expect
200with valid response envelopes. - For protected endpoints, use
api request --no-authand expect401/403rather than404. - Treat repeated
404as possible missing/incorrect CLI mapping and patch command endpoint mapping immediately.
Execution Rules
- Keep default API on public endpoint
https://aihealing.me/apiunless task explicitly requires override. - Require explicit
--outputfor download/export commands. - Use global overrides (
--api-base,--locale,--region,--token) only in the current command context.
Troubleshooting
AUTH_ERROR: login again and verify withwhoami.API_ERRORwithstatus: 0: verify network andapiBaseUrl.npxcacheEPERM: setNPM_CONFIG_CACHE=/tmp/aiheal-npm-cacheor use global install.API_ERRORwithstatus: 404: prioritize checking endpoint mapping or command naming mismatch.- Async wait timeout: query status endpoints (
get/by-request) and inspect progress fields. VALIDATION_ERROR(CLI local): fix payload by iterating overerror.issues[](field,message,expected,actual,suggestion) before retry.single-job createrequest id:requestIdis optional in payload; when omitted CLI auto-generates it. Use returneddata.job.requestIdforsingle-job wait --request-id.plan-stage-job createrequest id:requestIdis optional in payload (no auto-generation); include it only if your workflow needs an explicit correlation id.
Resources
- Read references/command-map.md for full command syntax and parameter meanings.
- Read references/error-playbook.md for failure signatures and fix flow.
- Run path-independent smoke commands with
npx -y -p aihealingmecli aiheal --helpand... config get.
Smoke Script
- Script:
scripts/smoke_check.sh - Path-independent run:
bash /absolute/path/to/scripts/smoke_check.sh
- Environment parameters:
AIHEAL_NPM_PACKAGE: npm package source for npx-p(default:aihealingmecli; can be a tarball path)AIHEAL_NPM_CACHE_DIR: cache directory used by npx (default under temp dir)RUN_NETWORK_SMOKE: set1to include live API probe (audio list)