@thinkingai/ae-cli 6.1.43 → 6.1.45

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.
Files changed (47) hide show
  1. package/README.md +2 -0
  2. package/README.zh.md +2 -0
  3. package/cli-installation-guide.md +13 -9
  4. package/dist/{ai-monitor-4VPHXQTL.js → ai-monitor-CAK6LX3J.js} +4 -4
  5. package/dist/ai-monitor.js +5 -5
  6. package/dist/{auth-RDSS2LUT.js → auth-CARBYPT2.js} +3 -3
  7. package/dist/{capability-CUOEIB5F.js → capability-CD2TODQN.js} +2 -2
  8. package/dist/{chunk-3FSYICDW.js → chunk-6SXMN2HQ.js} +1 -1
  9. package/dist/{chunk-TFEGYB4X.js → chunk-DR6IAQLM.js} +1 -1
  10. package/dist/{chunk-3TV24AVQ.js → chunk-FN4Y4XQG.js} +3 -3
  11. package/dist/{chunk-IAZ4AMVY.js → chunk-GXHCY75L.js} +145 -84
  12. package/dist/{chunk-LSELMDKQ.js → chunk-P56F3AO6.js} +1 -1
  13. package/dist/{chunk-BFSWGXM2.js → chunk-PHQHSCUW.js} +1 -1
  14. package/dist/{chunk-4MOCV6HU.js → chunk-PIZBBGBC.js} +1 -1
  15. package/dist/{compat-check-L3C7HCVG.js → compat-check-YXTLKMRM.js} +1 -1
  16. package/dist/{config-LAF5MMYK.js → config-5LO3IDS5.js} +3 -3
  17. package/dist/index.js +22 -21
  18. package/dist/{metadata-T6HYAU7E.js → metadata-JAN6NDRD.js} +4 -4
  19. package/dist/{personal-semantic-preference-WCZBOA7V.js → personal-semantic-preference-5FWTTPZW.js} +3 -3
  20. package/dist/{project-semantic-WW5AZST3.js → project-semantic-ZWDZ6RUS.js} +3 -3
  21. package/dist/{sync-6PL25V42.js → sync-WCN2LED5.js} +2 -2
  22. package/dist/{te-analysis-KKRECQ7F.js → te-analysis-OU3EUF3U.js} +106 -7
  23. package/dist/{te-community-6RGX7IWH.js → te-community-RWUUPHQJ.js} +3 -3
  24. package/dist/{te-dataops-RSPBC6WJ.js → te-dataops-RPKBT3JE.js} +2 -2
  25. package/dist/{te-engage-FIPP5L2Z.js → te-engage-4NZ26PAP.js} +3 -3
  26. package/dist/{te-experiment-KQ5CBYKI.js → te-experiment-PQD3SIKN.js} +3 -3
  27. package/dist/{te-kb-XYSDXZUG.js → te-kb-NX7E4CTY.js} +2 -2
  28. package/dist/{te-team-R6MZ4RK2.js → te-team-GMEOSXKP.js} +2 -2
  29. package/dist/{update-C6G4P3C7.js → update-273NPGJJ.js} +2 -2
  30. package/dist/{web-runtime-UGKPTBOK.js → web-runtime-ULVLVEJ4.js} +90 -38
  31. package/package.json +2 -2
  32. package/skills/ae-analysis-global/SKILL.md +2 -2
  33. package/skills/ae-community/SKILL.md +1 -1
  34. package/skills/ae-data-integration/SKILL.md +1 -1
  35. package/skills/ae-data-integration-helper/SKILL.md +1 -1
  36. package/skills/ae-generate-tracking-code/SKILL.md +1 -1
  37. package/skills/ae-generate-tracking-plan/SKILL.md +2 -2
  38. package/skills/ae-migrate-tracking-code/SKILL.md +2 -2
  39. package/skills/ae-onboarding/SKILL.md +26 -14
  40. package/skills/ae-onboarding/references/about-ae.md +28 -6
  41. package/skills/ae-onboarding/references/business-data.md +3 -3
  42. package/skills/ae-onboarding/references/demo-journey.md +4 -2
  43. package/skills/ae-onboarding/references/demo-operations.md +14 -5
  44. package/skills/ae-onboarding/references/member_invitation_send.md +21 -0
  45. package/skills/ae-onboarding/references/onboarding_growth.md +3 -5
  46. package/skills/ae-onboarding/references/onboarding_run.md +31 -5
  47. package/skills/ae-onboarding/references/presentation.md +18 -18
@@ -16,11 +16,13 @@ Answer the current `featured_question` from the matching baseline and show the r
16
16
 
17
17
  ## Business diagnosis
18
18
 
19
- 1. **Choose a topic.** Use `charts.daily_viewers` from the ready overview to show the [seven-day trend](presentation.md#choose-and-render-a-chart) for the selected item, when available. Label it as daily unique viewers of the item detail page. Show the three item-specific topics in `demo_overview.diagnosis`, with the featured topic first. Ask which part of the item's purchase flow the user wants to understand.
20
- 2. **See the topic's data and choose a question.** For revisits use the purchase-rate comparison. For checkout use the checkout share or the audience overlap when comparing follow-up audiences. For conversion use the Markdown funnel. Lead with the finding and show one [matching chart](presentation.md#choose-and-render-a-chart). When the overview already showed the same numbers for the same question, show exact counts or the next relevant detail instead of repeating the visual. Show the three short follow-up questions for that topic below the result.
19
+ 1. **Choose a topic.** Use the ready overview to show the [seven-day viewers and change table](presentation.md#choose-and-render-a-chart) for the selected item, when available. Label it as daily unique viewers of the item detail page. Show the three item-specific topics in `demo_overview.diagnosis`, with the featured topic first. Ask which part of the item's purchase flow the user wants to understand.
20
+ 2. **See the topic's data and choose a question.** For revisits use the purchase-rate comparison. For checkout use the share bar or the audience overlap when comparing follow-up audiences. For conversion use the three-step purchase path. Lead with the finding and show one [matching layout](presentation.md#choose-and-render-a-chart). When the overview already showed the same numbers for the same question, show exact counts or the next relevant detail instead of repeating the visual. Show the three short follow-up questions for that topic below the result.
21
21
  3. **See the answer and choose an action.** Answer the chosen question with the finding, supporting counts and any hypothesis that needs a test. Show the three corresponding actions. Add one sentence per action explaining what it would test. Label a review-only proposal here so its scope is clear before the user selects it.
22
22
  4. **Generate the draft.** Carry the chosen action and its audience into the plan. For runnable scenarios, use the verified replay preset and show that the draft can be replayed before presenting review choices.
23
23
 
24
+ Render the questions in the onboarding language. The table gives the Chinese wording and evidence for each topic.
25
+
24
26
  | Topic | Questions to offer | Evidence to use |
25
27
  | --- | --- | --- |
26
28
  | Product revisits | 回看后没买,适合测什么? · 哪些回访玩家值得先跟进? · 能看出为什么不再回来吗? | `single_day`, `multi_day`, `purchase_rates`, and `candidate_cohorts`. Distinct viewing days measure item revisits during the sample period. The data does not identify a player's motive or game retention. |
@@ -28,11 +28,19 @@ The `item-coupon` replay exposes up to 12 accounts per arm and simulates up to e
28
28
 
29
29
  Use the same saved preset selection and audience for plan display, targeting and replay. Reuse the sample's revenue metric and the Feature key generated for the run. Checkout recovery replays one exposure per assigned account and simulated full-price payments.
30
30
 
31
+ ## Demo currency
32
+
33
+ For US onboarding, require `USD` in the saved plan and replay receipt, and verify payments with a `USD` currency filter. Use `$` as the only visible currency marker in onboarding copy and experiment data, including individual payment rows, group totals, chart labels, and any report prepared for export. Format prices, revenue, costs, and profit as `$100`, `$50.50`, or `-$20`. Use labels such as **Revenue**, **Order costs**, and **Profit**. Keep currency codes in structured data and queries.
34
+
35
+ If a saved US draft lacks verified USD currency, regenerate the draft and ask the user to review it before launch. If an existing US replay lacks verified USD currency, explain that the replay currency could not be verified and keep the run ID for recovery.
36
+
37
+ For other markets, use the saved currency. A legacy receipt without currency uses CNY only outside the US flow.
38
+
31
39
  ## Present the plan
32
40
 
33
- Show the Demo audience, hypothesis, and evaluation period from the ready `experiment-plan` response. Insert `plan_preview_markdown` as a visible two-column Markdown table in the conversation. Translate labels and descriptions, keeping both columns, prices, and allocation values. With an older CLI, build the same **A · Control** and **B · Treatment** table from `plan.arms` and `plan.currency`. Show each group's path, price, and split side by side.
41
+ Show the Demo audience, hypothesis, and evaluation period from the ready `experiment-plan` response. Render `plan_preview_markdown` as a visible two-column Markdown table. Translate labels and descriptions, keeping both columns, prices, and allocation values. With an older CLI or a US preview using a different money format, build the same **A · Control** and **B · Treatment** table from `plan.arms` and `plan.currency` using the [Demo currency rules](#demo-currency). Show each group's path, price, and split side by side.
34
42
 
35
- Show the metrics and cost per paid order below the table. Both groups use the same placement and timing, with at most one exposure per account and no follow-up after purchase. Localize the preview to the customer's language. Format amounts from `plan.currency` as USD or CNY, independent of the response language. Keep the local `plan_path` private.
43
+ Show the metrics and cost per paid order below the table. Both groups use the same placement and timing, with at most one exposure per account and no follow-up after purchase. Use the [onboarding language](../SKILL.md#onboarding-language-and-currency) and verify the saved [Demo currency](#demo-currency). Keep the local `plan_path` private.
36
44
 
37
45
  Every ready Demo plan includes `approver`. In the local journey, `approver.status=deferred` means the draft is available for [review](demo-journey.md#review-the-same-draft). The confirmed launch prepares the approver. For legacy plans require `approver.status=ready` before offering launch and report preparation failures. When a coupon plan returns `metric_event`, report its status. If delivery is uncertain, check the saved event ID before sending another event. For `poll_demo`, resume Demo preparation. For `action_required`, follow the returned `next_action`.
38
46
 
@@ -63,9 +71,9 @@ Use the experiment ID, run ID and replay receipt returned by `experiment-launch`
63
71
 
64
72
  Use the platform report as a cross-check. Pass `--project-id` and `--exp-id` to each read. Refresh `ae-cli experiment report summary` with `--force-refresh true` once after ingest. Reuse `sample_size_report` when present. For `ae-cli experiment report sample-size` and `ae-cli experiment report metric-trend`, use `--start-time` and `--end-time` from `report_dates` when available and pass `--metric-id` for each trend. Run independent reads in parallel. If the exposure view is still pending, reuse the existing `--wait-report` response instead of repeatedly issuing the same failing platform query.
65
73
 
66
- Use the saved assignment receipt for assigned counts, and use query results for exposure, coupon claims, purchases, and order amounts. Match outcome accounts to verified exposure groups, keep the run and item filters, and match payment currency to the saved receipt or plan. Treat a legacy receipt without currency as CNY. Deduplicate buyers by account and orders by `order_id`.
74
+ Use the saved assignment receipt for assigned counts, and use query results for exposure, coupon claims, purchases, and order amounts. Match outcome accounts to verified exposure groups, keep the run and item filters, and match payment currency to the saved receipt or plan using the [Demo currency checks](#demo-currency). Deduplicate buyers by account and orders by `order_id`.
67
75
 
68
- Use verified distinct buyers divided by exposed users for each arm's payment rate. Follow the [Markdown A/B report layout](presentation.md#markdown-layouts) for the selected sample. Show exposure, buyers, payment rate and amount side by side. For the coupon scenario, include assigned users, coupon claims, costs and profit. Compute costs using `plan.cost_per_paid_order` and the verified unique order count. Format amounts in the saved currency (USD or CNY). Mark the result as a Demo simulation. If a group has no verified exposure, show its rate as unavailable.
76
+ Use verified distinct buyers divided by exposed users for each arm's payment rate. Follow the [Markdown A/B report layout](presentation.md#markdown-layouts) for the selected sample. Show exposure, buyers, payment rate and amount side by side. For the coupon scenario, include assigned users, coupon claims, costs and profit. Compute costs using `plan.cost_per_paid_order` and the verified unique order count. Format every monetary value using the verified [Demo currency and display rules](#demo-currency). Mark the result as a Demo simulation. If a group has no verified exposure, show its rate as unavailable.
69
77
 
70
78
  The Demo result is ready when the persisted events reconcile with the saved replay receipt. For a versioned round, record completion with [shared progress](onboarding_run.md#shared-progress) before showing the final choices. If the platform report is pending, unavailable or disagrees, identify the affected metrics and label the event-derived figures as the source. Omit disputed platform statistics and continue to the completion message and choices in the same turn. A receiver acknowledgement or an exposure-only report does not establish that all expected events are present.
71
79
 
@@ -96,9 +104,10 @@ Show the [completion message](#completion-message) before opening the picker aft
96
104
 
97
105
  Keep all three parts in the final reply even if the host already showed them in a progress message or the user selected their next action before the reply finished. Keep the website and contact links directly under the greeting, including when those same URLs appeared earlier in the conversation.
98
106
 
99
- Open the host's single-choice control with **Continue the demo** and **Connect my data**, in that order. In Chinese use **继续体验Demo** and **接入数据**. If the host cannot display the picker, show those same two choices in chat after the closing section.
107
+ Open the host's single-choice control with **Continue the demo**, **Connect my data**, and **Invite others to collaborate**, in that order. If the host cannot display the picker, show the same choices in chat after the closing section.
100
108
 
101
109
  - **Continue the demo** in an external agent or **Try another demo** in Web. List both available samples, put the current sample last and label it **Just tried**. Keep it selectable. Use the same session and run `ae-cli analysis onboarding run --session-id <session-id> --choice demo --sample <sample-id> --format json` after selection. Present the new overview as a new round and retain the prior report in the conversation. Use the existing `choose-sample` step in Web.
102
110
  - **Connect my data.** In an external agent, use [business data integration](business-data.md) to act on the customer's intent or show the data source choices. Keep the same onboarding session.
111
+ - **Invite others to collaborate.** Follow [the member invitation flow](member_invitation_send.md) with the signed-in account and the same onboarding session.
103
112
  - If the customer asks about the product in the conversation, share [the introduction and resources](about-ae.md) and return to the same report choices.
104
113
  - If the customer asks to end the experience or replies **Not now** to an earlier completion picker, close the guided flow and retain the result and run ID.
@@ -0,0 +1,21 @@
1
+ # analysis member-invitation send
2
+
3
+ Use this flow after the customer selects **Invite others to collaborate** in a local agent. Keep the signed-in AE host, onboarding session, and previous Demo report. Pass `--host <verified-host>` on all project, role, and invitation commands when this session uses a host other than the active default. Use the [localized labels](about-ae.md#localized-labels) in the customer's language.
4
+
5
+ 1. Ask for one recipient email address. List the business projects accessible on the signed-in host with `ae-cli project info list --format json`. Use `ae-cli analysis onboarding status --session-id <session-id> --format json` when the current conversation lacks the verified business project or Demo scope. Exclude Demo projects, including the `demo_project_id` from the current session, and offer the verified business projects. Ask the customer to choose when there are multiple candidates. If there is no eligible project, return to the closing choices.
6
+ 2. List roles for the chosen project with `ae-cli project role list --project-id <id> --visible-only --format json`. Offer the returned project roles using their display labels and omit the company `root` role. Use the exact role name from the response in the send command.
7
+ 3. Show the recipient email, project, and role, then offer **Send invitation** and **Cancel**. Wait for the customer's confirmation before calling the command. On cancel, go back to the [closing choices](demo-operations.md#choose-the-next-step).
8
+ 4. Generate and retain one UUID for this confirmed invitation and pass it as `--request-id`. Pass values as separate command arguments, or escape them for the current shell. Use the same ID and inputs when retrying after a timeout or ambiguous send result.
9
+
10
+ ```bash
11
+ ae-cli analysis member-invitation send --email '<email>' --project-id '<id>' \
12
+ --project-role '<role-name>' --request-id '<uuid>' --format json
13
+ ```
14
+
15
+ On `data.sent=true`, tell the customer that AE sent the invitation email and the recipient can accept it to join the company. Then offer the closing choices again. If the send result is unknown, keep the same request ID when retrying. For a permission error, show the service's reason. If this host or CLI version lacks the invitation command, retain the Demo result and offer the other closing choices.
16
+
17
+ ### Transport
18
+
19
+ - Owning module: Common Service member invitations
20
+ - Capability: `analysis.member_invitation.send`
21
+ - The command's dry-run previews the request with the email redacted.
@@ -15,9 +15,9 @@ The CLI scopes the query to the session's Demo project, item and sample dates. I
15
15
 
16
16
  `data_basis` identifies the seed-event source and distinct-account counting unit. Its `funnel_transitions` give each pair of ordered events, the distinct accounts at each step, the difference in counts (`dropoff_accounts`), and the next-step count divided by the prior-step count (`conversion_rate`). A conversion rate is `null` when the prior step is empty. With an older CLI, derive these counts and rates from `funnel`.
17
17
 
18
- `charts.daily_viewers` is a seven-day line series with a distinct count of item-detail viewers per sample-local date, in chronological order. A player can appear on several dates. The series comes from the same query and cache as the funnel. A zero means nobody viewed the item that day. If the series is absent in an older CLI or an existing cached result, continue with the verified overview or diagnosis without a trend.
18
+ `charts.daily_viewers` is a seven-day series with a distinct count of item-detail viewers per sample-local date, in chronological order. A player can appear on several dates. The series comes from the same query and cache as the funnel. A zero means nobody viewed the item that day. Use it as the source for the daily viewers and change table when the preformatted table is unavailable. If an older CLI or cached result has no series, continue with the verified overview or diagnosis.
19
19
 
20
- Use the ready response's `markdown_charts` for the inline figures. They use the same scoped counts as `charts`, `visuals` and `data_basis`. Select the layout for the current finding using the [Markdown chart guide](presentation.md#choose-and-render-a-chart).
20
+ Use the [Markdown chart guide](presentation.md#choose-and-render-a-chart) to select the layout for the current finding. The ready response's `markdown_charts` uses the same scoped counts as `charts`, `visuals` and `data_basis`.
21
21
 
22
22
  The account IDs are stored in the private `cohort_path` receipt for the same session and sample. The checkout experiment reads this cohort automatically. Show only aggregate counts in chat.
23
23
 
@@ -49,9 +49,7 @@ In the evidence section, explain that each rate is buyers divided by viewers, th
49
49
 
50
50
  ### Checkout recovery
51
51
 
52
- For `checkout-recovery`, lead with checkout starters, the unpaid count and unpaid share. Use a three-stage funnel with **Viewed item → Started checkout → Paid** and the account count at each stage from `funnel`. Annotate each transition with `data_basis.funnel_transitions[].dropoff_accounts`. With an older CLI, subtract the next-stage count from the preceding count.
53
-
54
- Use the [Markdown funnel](presentation.md#markdown-layouts) to show the ordered purchase stages with their transition labels. Use the checkout share when the finding is about the final step alone and the split has not just been shown.
52
+ For `checkout-recovery`, lead with checkout starters, the unpaid count and unpaid share. Show the [three-step purchase path](presentation.md#markdown-layouts) with the counts for **Viewed item → Started checkout → Paid** and the loss and conversion rate for each transition. Use the checkout share bar when the finding is about the final step alone and the split has not just been shown.
55
53
 
56
54
  In the evidence section, identify the stage with the largest account loss and show `checkout_recovery.unpaid_count` divided by `funnel.checkout` for the unpaid share. If nobody started checkout, show the share as unavailable. Describe the observed behavior as checkout without payment. Explain the reason only if the evidence supports it.
57
55
 
@@ -8,19 +8,45 @@ Use `interaction.options` as the choices for a user decision and `next_action` f
8
8
 
9
9
  Use `ae-cli analysis onboarding run --help` to look up the available flags.
10
10
 
11
- In Web, pass the conversation locale with `--language`. The Web `run` result and its `--dry-run` preview include `product_resource_market` (`cn`, `us`, `jp`, `kr`, or `null`) for selecting [public product links](about-ae.md#web-onboarding).
11
+ In Web, pass the [onboarding language](../SKILL.md#onboarding-language-and-currency) with `--language` and use the resolved `language` in the response. The Web `run` result and its `--dry-run` preview include `product_resource_market` (`cn`, `us`, `jp`, `kr`, or `null`) for selecting [public product links](about-ae.md#web-onboarding).
12
12
 
13
13
  ## Website signup
14
14
 
15
- For a new production account, use the market the user specified or confirmed. Otherwise compare `local_language` in the install report with the language of the user's own request. Without a current report, read `data.local_language` from `ae-cli --dry-run analysis onboarding run --format json`. Infer the request language from the user's prose, excluding commands, links, quoted text, and picker labels. A missing locale or `C.UTF-8` provides no language signal. Treat `onboarding_market` and `device_market` as defaults that may include a fallback.
15
+ Offer free website signup entries for new accounts. Use a market the user specified or confirmed first. Otherwise read `local_language` from the installation report or `data.local_language` from `ae-cli --dry-run analysis onboarding run --format json`. For an `en-US` device, select the US free entry. For a `zh-CN` device, select the China free entry.
16
16
 
17
- Map Chinese (including Traditional Chinese) to China (`cn`), English to the United States (`us`), Japanese to Japan (`jp`), and Korean to South Korea (`kr`). If both signals point to different markets, show exactly those two markets in the user's language and wait for their selection. If they agree or only one maps to a market, use that market directly. With neither, use `us`.
17
+ For other or unavailable local languages, consider Japanese (`jp`) and Korean (`kr`) as supported free markets and use the customer's request as a secondary language signal. Map English to `us` and Chinese, including Traditional Chinese, to `cn`. Infer the signal from the customer's prose, excluding commands, links, and quoted labels. If the signals disagree, offer the two corresponding free markets and wait. If neither supplies a market, use the US free entry as the fallback. A missing locale or `C.UTF-8` provides no language signal. The legacy `onboarding_market` and `device_market` can contain a fallback.
18
18
 
19
- After the user chooses to create an account, run `ae-cli analysis onboarding run --region <market> --browser system --format json`. Pass `--source` for the current AI tool and `--language` for the display preference or conversation language when known. For overseas testing, add `--website-env test` with `--region us`, `jp`, or `kr`. Use `us` for an overseas test request without a specific market. Resume with the returned `--session-id` to keep the original environment. Start a separate continuation when the user requests a different environment.
19
+ After the user chooses to create an account, run `ae-cli analysis onboarding run --region <market> --website-env production --browser system --format json`. Pass `--source` for the current AI tool and `--language` for the onboarding language. For the United States use `--region us --language en-US`. For overseas testing, use `--website-env test` with `--region us`, `jp`, or `kr`. Use `us` for an overseas test request without a specific market. Resume with the returned `--session-id` to keep the original environment. Start a separate continuation when the user requests a different environment.
20
+
21
+ ## Existing account sign-in
22
+
23
+ 1. **Use a confirmed account route.** Use the login address or AE host the user supplied or confirmed first. If no route was supplied, use an active account when the user wants to use it. An account already signed in on that route can go directly to [shared progress](#shared-progress). Use its actual AE host for `auth status`, login, and subsequent calls.
24
+ 2. **Identify the deployment when the route is open.** Read `existing_account_options` from the installation report or `data.existing_account_options` from `ae-cli --dry-run analysis onboarding run --format json`. Present the `deployment` picker for SaaS (`saas`), private deployment (`private`), or not sure (`unsure`). After SaaS, present the `saas` picker. Keep the returned option values and render the question and labels in the onboarding language. When `default_value` is `us`, show the US option as the suggested entry and wait for confirmation or another choice before opening it. For private deployment, not sure, or `other_address`, ask for the usual login URL. If the user cannot find it, direct them to their AE administrator.
25
+ 3. **Follow the confirmed entry.** For `login_method=website` or a known free SaaS entry, pass its `ae_host` and `website_market` to `ae-cli analysis onboarding run --host <AE_HOST> --region <MARKET> --website-env production --browser system --format json`. Pass `--source` for the current AI tool and `--language` for the onboarding language. Use the command's browser page to bind sign-in to the CLI session, then resume the returned `session_id`. For the China paid entry (`cn_paid`), `https://ta.thinkingdata.cn/` is the browser login entry. Confirm the AE service host for that account, then use the device flow. For private deployment or another confirmed login address, use its confirmed AE host for the device flow. Each login uses the host for the selected account and tier.
26
+ 4. **Verify the connection.** For the device flow, run `ae-cli auth login --host <AE_HOST> --no-wait`, open its `verification_url`, and wait for the user to approve. Then run `ae-cli auth login --host <AE_HOST> --device-code <DEVICE_CODE>` with the returned device code. Check `ae-cli auth status --host <AE_HOST> --format json` and then read [shared progress](#shared-progress) on that host.
27
+
28
+ If the CLI predates `existing_account_options`, offer the same deployment picker. For SaaS, use the local language from the installation report or dry-run response with this fallback picker:
29
+
30
+ | Local language | Entries |
31
+ | --- | --- |
32
+ | English (`en-US`) | United States SaaS, China paid SaaS, China free SaaS, or another login address. Suggest the US entry and wait for confirmation. |
33
+ | Chinese (`zh-CN`) | China paid SaaS, China free SaaS, or another login address. |
34
+ | Other or unknown | United States SaaS, China paid SaaS, China free SaaS, or another login address. |
35
+
36
+ In a Chinese-language picker, show the China entries in this order:
37
+
38
+ 1. **中国SAAS高配版** (`cn_paid`)
39
+ 2. **中国SAAS低配版(免费体验)** (`cn_free`)
40
+
41
+ The free US entry is `https://thinkingai.io/en/experience-login/` and its AE host is `https://ae-web-global.thinkingai.io`. The free China entry is `https://www.thinkingai.cn/experience-login/` and its AE host is `https://ae-web.thinkingai.cn`. Run the website command in step 3 with the confirmed free entry so it opens a session-bound sign-in page.
42
+
43
+ ### Existing US account sign-in
44
+
45
+ For a confirmed existing US account, use the website command above with `--region us --language en-US`. For an explicitly requested US test environment, use the confirmed test host and set `--website-env test`. Reuse the returned `session_id` after the user confirms sign-in.
20
46
 
21
47
  ## Shared progress
22
48
 
23
- Use `ae-cli analysis onboarding progress --format json` to read the signed-in account's current version. When the user enters the Demo, `run --choice demo` starts or resumes the shared round. Retain the latest `session_id` returned by `run`.
49
+ Use `ae-cli analysis onboarding progress --format json` to read the signed-in account's current version. In a local Agent, pass `--host <AE_HOST>` when the intended account's host is known. When the user enters the Demo, `run --choice demo` starts or resumes the shared round. Retain the latest `session_id` returned by `run`.
24
50
 
25
51
  - `not_started` offers the current Demo. `in_progress` resumes it. `completed` routes returning users to their ordinary AE task.
26
52
  - If the response has a bound `run_id`, reuse it. If a different conversation owns that run, use the existing run's report and wait for its replay checkpoint. Continue experiment launch from its original session if the checkpoint is still missing.
@@ -1,6 +1,6 @@
1
1
  # Onboarding copy and charts
2
2
 
3
- Use a short question or action as the choice label. Name the item or audience when that helps the user decide. Put sample scope, expected effects and approval consequences in the message immediately above the picker. Keep report, product and contact URLs in Markdown links. Localize visible copy and retain the underlying option values. Understand earlier labels when a user types them or replies to an older picker.
3
+ Use a short question or action as the choice label. Name the item or audience when that helps the user decide. Put sample scope, expected effects and approval consequences in the message immediately above the picker. Keep report, product and contact URLs in Markdown links. Render visible copy in the [onboarding language](../SKILL.md#onboarding-language-and-currency) and retain the underlying option values. The Chinese examples are for a Chinese onboarding locale. Understand earlier labels when a user types them or replies to an older picker.
4
4
 
5
5
  ## Common choices
6
6
 
@@ -29,9 +29,9 @@ For draft review, keep the approval choice first until the user confirms. Contin
29
29
  | Stage | 星屿游戏 | 赛季通行证 |
30
30
  | --- | --- | --- |
31
31
  | Opening question | 玩家反复看礼包,后来更容易买吗? | 有多少玩家开始结账,最后没有付款? |
32
- | Opening visual | Horizontal bars comparing single-day and multi-day purchase rates | Ring chart of checkout outcomes with the unpaid count and share emphasized |
33
- | Start of business diagnosis | Seven-day line showing interest in the bundle | Seven-day line showing interest in the pass |
34
- | Main visual in purchase diagnosis | Step widths and losses from viewing the bundle to paying | Step widths and losses from opening the pass to paying |
32
+ | Opening visual | Horizontal bars comparing single-day and multi-day purchase rates | 100% checkout share bar with the unpaid count and share emphasized |
33
+ | Start of business diagnosis | Seven-day table of bundle viewers and daily changes | Seven-day table of pass viewers and daily changes |
34
+ | Main visual in purchase diagnosis | Three-step path from viewing the bundle to paying, with losses and conversion rates | Three-step path from opening the pass to paying, with losses and conversion rates |
35
35
  | Audience follow-up | Bars for the follow-up counts | 100% stacked bar for the disjoint audience groups |
36
36
  | Explore route | 深挖礼包购买表现 | 深挖通行证转化 |
37
37
  | Follow-up route for revisits | 找出回访未购玩家 | 找出回看通行证的玩家 |
@@ -44,19 +44,19 @@ Use the sample's initial finding when entering its overview. Use the rotated `fe
44
44
 
45
45
  ## Choose and render a chart
46
46
 
47
- Use pure Markdown for the default walkthrough in every host. Place one primary visual above the next choice. Use the current verified result in the same reply, without images, render jobs, or extra queries. Copy the matching field from `markdown_charts` when present. Translate table headers, labels and legends, and preserve the exact values, shapes and whitespace inside `text` fences. With an older CLI, use the underlying counts to reproduce the same layout.
47
+ Use pure Markdown for the default walkthrough in every host. Place one primary visual above the next choice and use the current verified result in the same reply. Copy the field from `markdown_charts` when it matches the layout below. Translate table headers, labels and legends and preserve the values. If older CLI output has a text ring, a text line plot, a centered funnel, or no preformatted Markdown, use the verified counts already returned to build the current layout.
48
48
 
49
49
  | Finding | Markdown layout | Field from `markdown_charts` |
50
50
  | --- | --- | --- |
51
51
  | Compare purchase rates | Horizontal bars on a common 0–100% scale | `purchase_rate` |
52
- | Show the checkout split | Ring with a legend and exact counts and shares | `checkout_share` |
53
- | Show change over the sample week | Text line chart with axes, plus exact daily counts | `daily_viewers` |
54
- | Show loss along the purchase flow | Centered funnel with loss and conversion columns | `purchase_funnel` |
52
+ | Show the checkout split | 100% stacked bar with exact counts and shares | `checkout_share` |
53
+ | Show change over the sample week | Daily viewers and change from the previous day | `daily_viewers` |
54
+ | Show loss along the purchase flow | Three-step path with loss and conversion for each transition | `purchase_funnel` |
55
55
  | Compare eligible audiences | Horizontal bars with exact counts | `follow_up` |
56
56
  | Show audience overlap | 100% stacked bar for the three disjoint parts | `audience_overlap` |
57
57
  | Review or read A/B results | Side-by-side Markdown table | Saved plan or verified event counts |
58
58
 
59
- Use the host's Markdown typography. Use blue for a single series and blue and purple for different series when using colored blocks. Pair each color or texture with a text label. Keep the main result in bold once, use short metric titles and right-align numbers. Put units, dates, timezone and the counting rule where they help interpret the figure. Use `▲` or `▼` with the actual signed change and unit. Show a missing value as `—` and leave a gap in a trend. Preserve verified zeroes.
59
+ Use the host's Markdown typography. Use blue for a single series and blue and purple for different series when using colored blocks. Pair each color with a text label. Keep the main result in bold once, use short metric titles and right-align numbers. Include units, dates, timezone and the counting rule where they help interpret the figure. Mark a missing value as `—` and preserve verified zeroes.
60
60
 
61
61
  If the user requests an interactive chart and the host supports native `chart`, use strict JSON with `type`, localized `title`, and `data` entries. Use numeric `value` with `label` for `bar`, `line` and `pie`. Leave the colors and typography to the host theme. When a native pie groups small slices, keep their exact counts and shares beside it.
62
62
 
@@ -64,16 +64,16 @@ If the user requests an interactive chart and the host supports native `chart`,
64
64
 
65
65
  **Rate or count comparison.** Use a zero-based scale of 12 blue blocks. Use a shared 100% maximum for rates and the largest count for counts. Keep the exact value in a right-aligned column.
66
66
 
67
- **Composition.** For checkout, draw the two verified parts of the total as a ring inside a `text` fence with two distinguishable textures. Keep the precise count and percentage in the legend table. For audience overlap, divide 20 blocks at cumulative share boundaries so the bar sums to 100%. The three parts are intersection, checkout-only and revisit-only. Label each segment with its exact count and share. Omit a composition visual with a zero denominator.
67
+ **Checkout split.** Use one inline bar of 12 blocks. Allocate blue blocks to the share of checkout starters who did not pay, rounded to the nearest block, and use purple for the remainder. Show the exact counts and shares beside the matching symbols. Use the labels from `visuals.checkout_share.data` for both groups. If it is absent in an older CLI, use `checkout_recovery.unpaid_count` and the remainder from `funnel.checkout`. Label the remainder as paid after checkout only if it equals `funnel.buyers`. Omit the share bar when nobody started checkout.
68
68
 
69
- **Seven-day trend.** Use a `text` fence with the y-axis ticks, dates along the x-axis, and connected points. Keep dates in chronological order and include the exact daily counts in a compact table. When the source has no verified trend, continue with the current finding.
69
+ **Audience overlap.** Divide 20 blocks at cumulative share boundaries so the bar sums to 100%. The three parts are intersection, checkout-only and revisit-only. Label each segment with its exact count and share. Omit the bar with a zero denominator.
70
70
 
71
- **Purchase funnel.** Keep steps in the order they happen. Center the marks, and use the first stage as the width reference throughout. Next to each later stage show the loss and the conversion rate from the preceding one. A verified zero has an empty bar and a displayed zero. An undefined transition rate is unavailable.
71
+ **Seven-day trend.** Use a Markdown table with one row per date and columns for the date, exact daily unique viewers and change from the previous day. Keep the sampled dates in chronological order. Show `↑ 9` for an increase of nine, `↓ 2` for a decrease of two and **No change** when the count stays the same. Localize **No change**. Show `—` for the first day's change or when either day has no verified count. With an older CLI, use `charts.daily_viewers.data`. When the source has no verified daily series, continue with the current finding.
72
72
 
73
- | 通行证购买步骤 | 人数 | 规模 | 较上一步流失 | 较上一步转化率 |
74
- | --- | ---: | :---: | ---: | ---: |
75
- | 浏览详情 | 120 | `━━━━━━━━━━━━` | — | — |
76
- | 开始结账 | 48 | `━━━━━` | 72 | 40.0% |
77
- | 完成付款 | 20 | `━━` | 28 | 41.7% |
73
+ **Purchase funnel.** Show the ordered stages and their exact counts on one line separated by arrows. On a second line, show each transition's conversion rate and loss in parentheses from `data_basis.funnel_transitions`. With an older CLI, derive the loss from the difference between adjacent counts and the rate by dividing the later count by the earlier one. Use `—` for an undefined conversion rate.
78
74
 
79
- **A/B draft and report.** Use a side-by-side Markdown table. For a draft, use the two destinations or offers, split and price from the plan. For a verified report, lead with the rate difference in percentage points and show both denominators, buyers, rates and amounts. Include claims, order costs and profit for a coupon test. Use the experiment's saved currency and the scenario-specific labels.
75
+ **120** Viewed → **48** Started checkout → **20** Paid
76
+
77
+ Viewed → Started checkout **40.0%** (72 lost) · Started checkout → Paid **41.7%** (28 lost)
78
+
79
+ **A/B draft and report.** Use a side-by-side Markdown table. For a draft, use the two destinations or offers, split and price from the plan. For a verified report, lead with the rate difference in percentage points and show both denominators, buyers, rates and amounts. Include claims, order costs and profit for a coupon test. Use the scenario-specific labels and the [Demo currency display rules](demo-operations.md#demo-currency) to render every amount.