@koda-sl/baker-cli 0.121.0-dev.045b11c52 → 0.121.0-dev.3a1b48e85
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 +25 -0
- package/dist/cli.js +1303 -810
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2502,6 +2502,31 @@ Rules:
|
|
|
2502
2502
|
|
|
2503
2503
|
---
|
|
2504
2504
|
|
|
2505
|
+
### Marketing Tags (`baker tags`)
|
|
2506
|
+
|
|
2507
|
+
Manage the client's marketing/analytics tags (Meta pixel, GA4, Google Ads, GTM, Clarity, Hotjar, PostHog, …) as per-chat **staged** changes. Nothing touches production tags until the chat is published; discarding the chat drops the draft.
|
|
2508
|
+
|
|
2509
|
+
`BAKER_CHAT_ID` must be set.
|
|
2510
|
+
|
|
2511
|
+
```bash
|
|
2512
|
+
baker tags list # effective view: production + staged, with secret status
|
|
2513
|
+
baker tags add clarity --set projectId=abcde12345 # client-only tag, no secrets needed
|
|
2514
|
+
baker tags add meta --set pixelId=123 --request-secret accessToken
|
|
2515
|
+
baker tags update <ref> --set pixelId=999 --clear testEventCode
|
|
2516
|
+
baker tags remove <ref> # stage deletion (tag_temp_* ref drops the staged create)
|
|
2517
|
+
baker tags draft # review staged ops
|
|
2518
|
+
baker tags draft remove <ref> # drop one staged op
|
|
2519
|
+
baker tags draft clear # drop everything staged
|
|
2520
|
+
```
|
|
2521
|
+
|
|
2522
|
+
Notes:
|
|
2523
|
+
|
|
2524
|
+
- **Secrets never travel through this CLI.** Secret fields (`accessToken`, `apiSecret`, `authorizationToken`, `apiKey`, `conversionToken`, `oauthProviderId`) are rejected in `--set`. Stage with `--request-secret <field>`; the user provides values via the secure tag form in the chat (`request_tag_input`), which writes them straight into the staged draft. Responses only ever name which secret fields are set/pending.
|
|
2525
|
+
- Staged creates get a server-generated `tag_temp_*` ref. Use it (or a real tag id) as flow side-effect `tagIds` — the published tag keeps resolving under the temp ref.
|
|
2526
|
+
- `update`/`remove` with a `tag_temp_*` ref amend/drop the staged create in place.
|
|
2527
|
+
- Single-instance types (`code`, `posthog`, `datafast`) reject a second instance against the chat's effective view.
|
|
2528
|
+
- Conflicts at publish (tag deleted in the dashboard, config invalid) skip the op with a recorded reason — they never block the publish.
|
|
2529
|
+
|
|
2505
2530
|
### Action Items (`baker actions`)
|
|
2506
2531
|
|
|
2507
2532
|
Manage action items for the current chat. Most write operations stage on the chat's draft and apply atomically when the chat is published. Claim/release run live so other chats can see who's working on what.
|