salla-app-functions-release
Installation
SKILL.md
App Functions — Save, Test & Publish
Save only after a clean validate pass (salla-app-functions-validate).
Save (create or update)
An app has one function, keyed by its trigger, so get / save / delete take app_id
and trigger. save is an upsert for that trigger's function.
- Save:
salla_functions action=save,app_id,trigger,content(the whole function as a string),name. Keep the template's first line exactly. Returns a deployjoband triggers an async deploy to the app's demo stores — pollsalla_functions action=deploy_status,job(returned by action=save) untilCOMPLETED, then test it (salla-app-functions-test). One save covers deploy; there is no separate deploy action or versioning. - Read:
salla_functions action=get,app_id,trigger→template+types(.d.ts URLs) + the app's savedcontent(ornull). - Remove:
salla_functions action=delete,app_id,trigger.