@numericoach/gskills-admin-cli 0.1.30 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/gskills-admin.js +14696 -50
- package/package.json +1 -1
- package/skills/gskills-admin-cli/SKILL.md +20 -0
package/package.json
CHANGED
|
@@ -282,6 +282,26 @@ Never guess a client instance from a name if the CLI can list it:
|
|
|
282
282
|
gskills-admin instances list --where '{"name":{"contains":"Air Liquide","mode":"insensitive"}}' --output json
|
|
283
283
|
```
|
|
284
284
|
|
|
285
|
+
## Workflow Authoring
|
|
286
|
+
|
|
287
|
+
Use the guided workflow commands before raw `workflows` and `workflow-actions` CRUD.
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
gskills-admin workflows schema --output json
|
|
291
|
+
gskills-admin workflows schema --trigger LEARNING_PATH_NOT_STARTED --output json
|
|
292
|
+
gskills-admin workflows example --trigger LEARNING_PATH_NOT_STARTED --output json
|
|
293
|
+
gskills-admin workflows preview-email --data-file ./workflow.json --fake --language fr --output json
|
|
294
|
+
gskills-admin workflows preview-email --data-file ./workflow.json --user user@example.com --language fr --output json
|
|
295
|
+
gskills-admin workflows create-configured --instance global --data-file ./workflow.json --inactive --dry-run --output json
|
|
296
|
+
gskills-admin workflows create-configured --instance global --data-file ./workflow.json --active --yes --output json
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
`workflows schema` is the machine-readable source of truth for supported workflow triggers, actions, trigger config, trigger payloads, email variables, button placeholders and examples.
|
|
300
|
+
|
|
301
|
+
`create-configured` creates the workflow and all actions in one operation. It requires an activation decision. Ask the human whether to enable the workflow now, then pass `--active` or `--inactive`. Prefer `--inactive` until trigger ids, recipients, translations and preview email are approved.
|
|
302
|
+
|
|
303
|
+
Email actions use `config.templates`, a map of language code to `{ subject, body }`. Keep variables unchanged across translations. `preview-email` renders the exact subject and body without sending anything. Use `--fake` for sample trigger data, or `--user` / `--email` to preview with a real user.
|
|
304
|
+
|
|
285
305
|
## Auth Model
|
|
286
306
|
|
|
287
307
|
- Login happens in the browser on `https://g-skills.fr`
|