@thinkingai/ae-cli 6.1.34 → 6.1.36

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 (32) hide show
  1. package/README.md +1 -1
  2. package/README.zh.md +1 -1
  3. package/cli-installation-guide.md +12 -7
  4. package/dist/{ai-monitor-TVRFVZBH.js → ai-monitor-276HLJZU.js} +4 -4
  5. package/dist/ai-monitor.js +5 -5
  6. package/dist/{auth-JAXLMPBB.js → auth-JBO2UW7L.js} +3 -3
  7. package/dist/{capability-2Z4ZXTPD.js → capability-GVCWVM27.js} +2 -2
  8. package/dist/{chunk-FNACCKQR.js → chunk-53MUIQ3H.js} +11 -6
  9. package/dist/{chunk-DE5XHQQ6.js → chunk-7IBQMQEV.js} +1 -1
  10. package/dist/{chunk-Q764EZND.js → chunk-HYKO5XSG.js} +3 -3
  11. package/dist/{chunk-3PZNM5KN.js → chunk-IXM75M7G.js} +1 -1
  12. package/dist/{chunk-NK5PS5X7.js → chunk-J4NHBBRC.js} +1 -1
  13. package/dist/{chunk-IWMDPHMI.js → chunk-PNAICVO2.js} +1 -1
  14. package/dist/{chunk-S74XV3A6.js → chunk-QYUUXAPS.js} +1 -1
  15. package/dist/{compat-check-E7AQ7UCG.js → compat-check-JKFJZUXX.js} +1 -1
  16. package/dist/{config-PGSUWIK5.js → config-L7GBSHRT.js} +3 -3
  17. package/dist/index.js +19 -19
  18. package/dist/{metadata-7MZ3CJ2N.js → metadata-T6ORCGG6.js} +4 -4
  19. package/dist/{personal-semantic-preference-SWOUNDWJ.js → personal-semantic-preference-JFJ5FFAY.js} +3 -3
  20. package/dist/{project-semantic-M2DDPAMD.js → project-semantic-TPRIOCTD.js} +3 -3
  21. package/dist/{sync-PWC63JCO.js → sync-LTSMFMLZ.js} +2 -2
  22. package/dist/{te-analysis-BK6PE333.js → te-analysis-UFPYC4OT.js} +4 -4
  23. package/dist/{te-community-OLNTKGCW.js → te-community-MHM3PIGH.js} +3 -3
  24. package/dist/{te-dataops-XUWRIF5R.js → te-dataops-DUM3AKEK.js} +2 -2
  25. package/dist/{te-engage-I3I4FJOM.js → te-engage-IQ5W24HW.js} +3 -3
  26. package/dist/{te-experiment-XSDUL4KH.js → te-experiment-L3T6YDLM.js} +3 -3
  27. package/dist/{te-kb-QFH3YLFQ.js → te-kb-7HV5KZG6.js} +2 -2
  28. package/dist/{te-team-UADF2HBO.js → te-team-5QFLIVKZ.js} +2 -2
  29. package/dist/{update-6I366ICW.js → update-G7BAWLJE.js} +2 -2
  30. package/dist/{web-runtime-3XFREWRF.js → web-runtime-NEQ2W4EX.js} +2 -2
  31. package/package.json +1 -1
  32. package/skills/ae-onboarding/SKILL.md +2 -2
package/README.md CHANGED
@@ -29,7 +29,7 @@ npx @thinkingai/ae-cli@latest install --format json
29
29
 
30
30
  The installer checks Node.js 20+, installs and verifies the CLI, then uses the bundled Skills tool to install matching global Skills for supported clients. First installation includes all bundled Skills when no business state has been confirmed. `--dry-run`, `--format json`, and optional `--host <AE_HOST>` are supported. Being logged out is not an installation failure. See the [installation guide](./cli-installation-guide.md).
31
31
 
32
- When installing through Codex, Claude Code, Cursor, or another terminal-capable Agent, give it the `--format json` command above and the installation guide. After verification, you can use guided website onboarding in Japan, Korea, and the United States. In China, sign in to an existing account using your AE environment URL. If you only ask to get started, the Agent can use a signed-in account or ask which account route you want. If you used `npm install -g`, run `ae-cli install --format json` first to verify the installed version and sync its Skills. [Agent installation prompt](./cli-installation-guide.md#ai-installation-prompt)
32
+ When installing through Codex, Claude Code, Cursor, or another terminal-capable Agent, give it the `--format json` command above and the installation guide. The Agent reports the verification result. To start guided website onboarding in Japan, South Korea, or the United States, ask for onboarding explicitly. In China, sign in to an existing account using your AE environment URL. If you used `npm install -g`, run `ae-cli install --format json` first to verify the installed version and sync its Skills. [Agent installation prompt](./cli-installation-guide.md#ai-installation-prompt)
33
33
 
34
34
  The Skills teach supported coding Agents, including Claude Code, Codex, Cursor, and similar tools, how to discover and call `ae-cli`.
35
35
 
package/README.zh.md CHANGED
@@ -29,7 +29,7 @@ npx @thinkingai/ae-cli@latest install --format json
29
29
 
30
30
  安装器检查 Node.js 20+、安装并验证 CLI,再通过内置的 Skills 工具向支持的客户端安装同版本全局 Skills。首次安装且尚无已确认业务状态时安装全量内置 Skills。支持 `--dry-run`、`--format json` 和可选的 `--host <AE_HOST>`。未登录不算安装失败。详见[安装指南](./cli-installation-guide.md)。
31
31
 
32
- 通过 Codex、Claude Code、Cursor 等 AI Agent 安装时,把上面的 `--format json` 命令和安装指南交给 Agent。验证成功后,日本、韩国和美国用户可通过官网完成新手引导。中国区已有账号可使用原 AE 环境地址登录。如果只说「开始使用」,Agent 可以沿用已登录的账号,或询问你想注册还是登录已有账号。如果通过 `npm install -g` 安装,请先执行 `ae-cli install --format json` 验证版本并同步对应的 Skills。[Agent 安装提示词](./cli-installation-guide.md#ai-installation-prompt)
32
+ 通过 Codex、Claude Code、Cursor 等 AI Agent 安装时,把上面的 `--format json` 命令和安装指南交给 Agent,Agent 会汇报验收结果。如需体验新手引导,请明确提出。日本、韩国和美国用户可通过官网完成引导,中国区已有账号可使用原 AE 环境地址登录。如果通过 `npm install -g` 安装,请先执行 `ae-cli install --format json` 验证版本并同步对应的 Skills。[Agent 安装提示词](./cli-installation-guide.md#ai-installation-prompt)
33
33
 
34
34
  Skills 会帮助 Claude Code、Codex、Cursor 等编码 Agent 理解、发现并调用 `ae-cli`。
35
35
 
@@ -45,12 +45,17 @@ The managed synchronizer uses the verified package source. Replaying historical
45
45
 
46
46
  ## Start using AE in an Agent
47
47
 
48
- When a user asks you to install AE CLI or help them start using AE, continue in the same conversation after installation. If the user ran `npm install -g`, locate the executable for the requested version and run `ae-cli install --format json` with it to sync and verify the matching global Skills. For a user who already has a verified installation and asks to start using AE, begin with the authentication check.
49
-
50
- 1. For installation, check `ok: true`, `dry_run: false`, `cli.verified: true`, and `skills.status: "success"`. Report the verified version and Skill count. For an explicit install-only request, an upgrade, or a dry run, report the result and finish. For failed or skipped Skill synchronization, report its status and any affected Skills.
51
- 2. Read the optional `next_action` in a successful install report. For `check_authentication`, or when an older report omits `next_action`, run `ae-cli auth status --format json` with the verified executable. Use the user's supplied `--host` when applicable. If the check fails, explain the result and confirm the intended environment before starting signup or login.
52
- 3. Use the user's request to choose the route. For an explicit request for AE onboarding, the new-user walkthrough, or signup, go directly to step 4 for a signed-out user in Japan, Korea, or the United States. In China, use step 5 for an existing account or share the trial request link from the install report. For an explicit request to sign in to an existing account, go to step 5. For `continue_using_ae` or a confirmed sign-in, continue using the signed-in environment. Ask **“Do you already have an AE account?”** only when a signed-out user asks to get started without specifying a route. In that case, open the Agent's native picker with **“Create an account and get started”** and **“Sign in to an existing account.”** Use chat choices if the host cannot show a picker.
53
- 4. Start website onboarding with `ae-cli analysis onboarding run --browser system --format json`. Use `--region jp`, `--region kr`, or `--region us` to select the user's production market. Pass `--source` for the current AI tool. The CLI opens the system default browser. If opening fails, share the returned URL. Read the returned `skill_path` and reuse `session_id` in the same conversation.
48
+ If the user asks to install AE CLI, run the installer and report the verification result. If the user ran `npm install -g`, locate the requested version's executable and run `ae-cli install --format json` with it to sync and verify the matching global Skills.
49
+
50
+ 1. Check `ok: true`, `dry_run: false`, `cli.verified: true`, and `skills.status: "success"`. On success, report the verified version and installed Skill count. If the request is just installation, finish here even when the report includes `next_action: "choose_account"`. A request such as “Follow this guide to install AE CLI” is an installation request. For an upgrade, a dry run, or incomplete verification, report the result and stop. Include the status and affected Skills if synchronization failed or was skipped.
51
+ 2. Continue only when the user explicitly asks for AE onboarding, a walkthrough, signup, or sign-in. If the user already has a verified installation, start here. For `check_authentication`, a missing `next_action`, or an existing installation without a current report, run `ae-cli auth status --format json` with the verified executable. Use the user's supplied `--host` when applicable. If the check fails, explain the result and confirm the intended environment before starting signup or login.
52
+ 3. Follow the route the user requested.
53
+ - For an existing-account login, use step 5. If the intended environment is already signed in, use it for the user's AE task.
54
+ - For signup or an explicit choice to start a new experience, use step 4. If the user explicitly asks for onboarding or a walkthrough and leaves the account route open, continue in their signed-in environment when available. Otherwise show **“Get started”** (step 4), **“Sign in to my existing account”** (step 5), and **“Not now”** (finish) in the Agent's native picker. Use equivalent chat choices if the picker is unavailable. Wait for the selection.
55
+ 4. Use an explicitly requested or already confirmed market. Otherwise resolve the market from the local language and the user's request.
56
+ - Read `local_language` from the install report. Without a current report or on older versions, check `AE_LANG`, `LC_ALL`, `LC_MESSAGES`, `LANG`, and `LANGUAGE` in that order for the local locale. Map Chinese to China, English to the United States, Japanese to Japan, and Korean to South Korea.
57
+ - Compare that market with the language of the user's own request. Ignore the language of quoted commands, links, and guide text. If the two supported languages suggest different markets, ask the user to choose between them. Otherwise use the local market, or the request language if the local locale is unavailable or unsupported. If neither yields a market, use the United States.
58
+ - For Japan, South Korea, or the United States, start website onboarding with `ae-cli analysis onboarding run --browser system --format json`. Pass `--region jp`, `--region kr`, or `--region us` for the resolved market and `--source` for the current AI tool. Pass `--language` for the conversation if it differs from the local language. The CLI opens the system default browser. If opening fails, share the returned URL. Read the returned `skill_path` and reuse `session_id` in the same conversation. For China, share the [AE trial request page](https://thinkingai.cn/request-demo).
54
59
  5. To sign in, use the original AE environment supplied or confirmed by the user. If its address is unknown, ask for it. Follow the device flow below. Once the session is authorized, confirm that `ae-cli auth status` reports the expected environment and signed-in account.
55
60
 
56
61
  ## Host and login
@@ -119,4 +124,4 @@ Choose the specific Skill you are troubleshooting. The onboarding Skill is loade
119
124
 
120
125
  ## AI installation prompt
121
126
 
122
- > Install AE CLI and its matching global Skills with `npx @thinkingai/ae-cli@latest install --format json`. Use the version and registry I supply, if any. Report the verified version and Skill count, then follow [Start using AE in an Agent](#start-using-ae-in-an-agent) in this conversation.
127
+ > Install AE CLI and its matching global Skills with `npx @thinkingai/ae-cli@latest install --format json`. Use the version and registry I supply, if any. Verify the installation and report the CLI version and Skill count. If I also ask for onboarding or sign-in, follow [Start using AE in an Agent](#start-using-ae-in-an-agent).
@@ -9,13 +9,13 @@ import {
9
9
  traceCount,
10
10
  traceGet,
11
11
  traceList
12
- } from "./chunk-IWMDPHMI.js";
13
- import "./chunk-3PZNM5KN.js";
12
+ } from "./chunk-PNAICVO2.js";
13
+ import "./chunk-IXM75M7G.js";
14
14
  import "./chunk-AWW2T2WL.js";
15
- import "./chunk-DE5XHQQ6.js";
15
+ import "./chunk-7IBQMQEV.js";
16
16
  import "./chunk-VPLRZSMY.js";
17
17
  import "./chunk-6E6HCTP2.js";
18
- import "./chunk-FNACCKQR.js";
18
+ import "./chunk-53MUIQ3H.js";
19
19
  import "./chunk-PUSFEC6B.js";
20
20
  import "./chunk-UWQXGF44.js";
21
21
  import "./chunk-IGU3R2JD.js";
@@ -1,21 +1,21 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  ai_monitor_default
4
- } from "./chunk-IWMDPHMI.js";
5
- import "./chunk-3PZNM5KN.js";
4
+ } from "./chunk-PNAICVO2.js";
5
+ import "./chunk-IXM75M7G.js";
6
6
  import "./chunk-AWW2T2WL.js";
7
7
  import {
8
8
  configureBusinessCommands,
9
9
  parseProgram,
10
10
  runCommand
11
- } from "./chunk-Q764EZND.js";
11
+ } from "./chunk-HYKO5XSG.js";
12
12
  import "./chunk-GYODT7C4.js";
13
13
  import "./chunk-L7MT53VM.js";
14
- import "./chunk-DE5XHQQ6.js";
14
+ import "./chunk-7IBQMQEV.js";
15
15
  import "./chunk-CYZV5AXW.js";
16
16
  import "./chunk-VPLRZSMY.js";
17
17
  import "./chunk-6E6HCTP2.js";
18
- import "./chunk-FNACCKQR.js";
18
+ import "./chunk-53MUIQ3H.js";
19
19
  import "./chunk-PUSFEC6B.js";
20
20
  import "./chunk-UWQXGF44.js";
21
21
  import "./chunk-IGU3R2JD.js";
@@ -3,7 +3,7 @@ import {
3
3
  environmentRefreshOutput,
4
4
  invalidateBusinessSkillSynchronization,
5
5
  refreshEnvironmentAfterLogin
6
- } from "./chunk-S74XV3A6.js";
6
+ } from "./chunk-QYUUXAPS.js";
7
7
  import {
8
8
  MultiselectCancelled,
9
9
  promptSingleSelect
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  printError,
16
16
  printOutput
17
- } from "./chunk-DE5XHQQ6.js";
17
+ } from "./chunk-7IBQMQEV.js";
18
18
  import {
19
19
  DeviceFlowUnsupportedError,
20
20
  authorizeLoginDevice,
@@ -28,7 +28,7 @@ import {
28
28
  missingAeHostGuidance,
29
29
  missingAeHostHint,
30
30
  runHostCompatCheck
31
- } from "./chunk-FNACCKQR.js";
31
+ } from "./chunk-53MUIQ3H.js";
32
32
  import {
33
33
  getLocalCliPackageInfo
34
34
  } from "./chunk-PUSFEC6B.js";
@@ -17,7 +17,7 @@ import {
17
17
  printError,
18
18
  printOutput,
19
19
  withOutputMetadata
20
- } from "./chunk-DE5XHQQ6.js";
20
+ } from "./chunk-7IBQMQEV.js";
21
21
  import {
22
22
  CapabilityGatewayError,
23
23
  dryRunCapabilityWithEnvelope,
@@ -33,7 +33,7 @@ import {
33
33
  businessForCapability,
34
34
  readBusinessConfigForExecution,
35
35
  readCurrentBusinessConfig
36
- } from "./chunk-FNACCKQR.js";
36
+ } from "./chunk-53MUIQ3H.js";
37
37
  import "./chunk-PUSFEC6B.js";
38
38
  import {
39
39
  CredentialStoreUnreadableError,
@@ -482,9 +482,11 @@ function normalizeRegistrationLanguage(value) {
482
482
  if (language === "ko" || language === "kr") return "ko-KR";
483
483
  return language === "en" ? "en-US" : void 0;
484
484
  }
485
+ function localRegistrationLanguage(env = process.env) {
486
+ return normalizeRegistrationLanguage(env.AE_LANG || env.LC_ALL || env.LC_MESSAGES || env.LANG || env.LANGUAGE || "");
487
+ }
485
488
  function registrationLanguage(language, env = process.env) {
486
- const value = language || env.AE_LANG || env.LC_ALL || env.LC_MESSAGES || env.LANG || env.LANGUAGE || "";
487
- return normalizeRegistrationLanguage(value) ?? "en-US";
489
+ return (language ? normalizeRegistrationLanguage(language) : localRegistrationLanguage(env)) ?? "en-US";
488
490
  }
489
491
  function registrationMarket(language) {
490
492
  return { "zh-CN": "cn", "en-US": "us", "ja-JP": "jp", "ko-KR": "kr" }[language];
@@ -1716,7 +1718,7 @@ async function readBusinessConfigForExecution(hostOverride, synchronizeSkills =
1716
1718
  const token = peekCliToken(host);
1717
1719
  if (!token) return {};
1718
1720
  return await resolveBusinessConfig(host, token, async () => {
1719
- const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-E7AQ7UCG.js");
1721
+ const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-JKFJZUXX.js");
1720
1722
  return fetchCliConfig2(host, token);
1721
1723
  }, Date.now(), synchronizeSkills);
1722
1724
  } catch {
@@ -1970,10 +1972,13 @@ function runInstallation(options = {}) {
1970
1972
  report.ok = true;
1971
1973
  return report;
1972
1974
  }
1973
- const language = registrationLanguage(void 0, env);
1975
+ const localLanguage = localRegistrationLanguage(env);
1976
+ const language = localLanguage ?? "en-US";
1974
1977
  const market = registrationMarket(language);
1975
1978
  const websiteOnboarding = isWebsiteMarket(market);
1976
1979
  if (guideAccountSetup) {
1980
+ if (localLanguage) report.local_language = localLanguage;
1981
+ report.next_steps.push("If the user only requested installation, report the verified version and Skill count and finish.");
1977
1982
  if (report.auth.authenticated === true) report.next_action = "continue_using_ae";
1978
1983
  else if (report.auth.warnings.length > 0) report.next_action = "check_authentication";
1979
1984
  else if (websiteOnboarding) report.next_action = "choose_account";
@@ -1986,7 +1991,7 @@ function runInstallation(options = {}) {
1986
1991
  } else {
1987
1992
  const chooseAccount = report.next_action === "choose_account";
1988
1993
  if (chooseAccount) {
1989
- report.next_steps.push("For an install-only request, report the verified result. If the user explicitly asked for AE onboarding, the new-user walkthrough, or signup, run the website onboarding command below in the same turn. If they asked to sign in to an existing account, follow the existing-account guidance below. Use the account picker only when the user wants to get started and has not chosen a route: offer \u201CCreate an account and get started\u201D and \u201CSign in to my existing account\u201D.");
1994
+ report.next_steps.push("If the user explicitly asks for AE onboarding or a walkthrough and has left the account route open, show the account picker with \u201CGet started\u201D, \u201CSign in to my existing account\u201D, and \u201CNot now\u201D. For an explicit signup request, use website onboarding. For an explicit existing-account login request, use the original AE environment.");
1990
1995
  }
1991
1996
  if (websiteOnboarding && (chooseAccount || !report.auth.host)) {
1992
1997
  const source = cliEntrySource(void 0, env);
@@ -1996,7 +2001,7 @@ function runInstallation(options = {}) {
1996
2001
  } else {
1997
2002
  report.next_steps.push(`New or returning website users: for guided website verification, run ae-cli analysis onboarding run --language ${language} --source ${source} --browser system. For manual registration or sign-in, use ${registration} in the system default browser.`);
1998
2003
  }
1999
- report.next_steps.push(`The default new-account region is ${market}. Select another supported production market with --region jp|kr|us before registration. Language does not change an existing account's environment.`);
2004
+ report.next_steps.push(`The default new-account region is ${market}. Use the user's explicit market when supplied. Otherwise infer the market from the local language and the request language. Ask which market to use only if both languages suggest different supported markets. Select a production market with --region jp|kr|us. Language does not change an existing account's environment.`);
2000
2005
  } else if (!websiteOnboarding && !report.auth.host) {
2001
2006
  report.next_steps.push(`To request an AE trial in China, visit ${aeRegistrationUrl(language, env)}.`);
2002
2007
  }
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getPendingHostCompatNotice,
4
4
  getPendingUpdateNotice
5
- } from "./chunk-FNACCKQR.js";
5
+ } from "./chunk-53MUIQ3H.js";
6
6
  import {
7
7
  logger,
8
8
  redactExternalCliToken
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  printError,
11
11
  printOutput
12
- } from "./chunk-DE5XHQQ6.js";
12
+ } from "./chunk-7IBQMQEV.js";
13
13
  import {
14
14
  TeAgentApiError,
15
15
  TeAgentCredentialsError
@@ -23,7 +23,7 @@ import {
23
23
  businessForCommand,
24
24
  formatCapabilityMissCompatHint,
25
25
  readCurrentBusinessConfig
26
- } from "./chunk-FNACCKQR.js";
26
+ } from "./chunk-53MUIQ3H.js";
27
27
  import {
28
28
  CredentialStoreUnreadableError,
29
29
  SecureStoreAuthError
@@ -470,7 +470,7 @@ function createRuntimeContext(cmd, opts, globalOpts) {
470
470
  }
471
471
  const ctx = {
472
472
  async onboarding(action, input) {
473
- const { invokeOnboarding } = await import("./web-runtime-3XFREWRF.js");
473
+ const { invokeOnboarding } = await import("./web-runtime-NEQ2W4EX.js");
474
474
  return invokeOnboarding(action, input);
475
475
  },
476
476
  has(name) {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-AWW2T2WL.js";
5
5
  import {
6
6
  withOutputMetadata
7
- } from "./chunk-DE5XHQQ6.js";
7
+ } from "./chunk-7IBQMQEV.js";
8
8
  import {
9
9
  dryRunCapabilityWithEnvelope,
10
10
  executeCapabilityWithEnvelope,
@@ -6,7 +6,7 @@ import {
6
6
  readOutputMetadata,
7
7
  unwrapOutputData,
8
8
  withOutputMetadata
9
- } from "./chunk-DE5XHQQ6.js";
9
+ } from "./chunk-7IBQMQEV.js";
10
10
  import {
11
11
  CapabilityGatewayError,
12
12
  fetchCapabilityGateway,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-3PZNM5KN.js";
4
+ } from "./chunk-IXM75M7G.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute
7
7
  } from "./chunk-AWW2T2WL.js";
@@ -6,7 +6,7 @@ import {
6
6
  rememberBusinessConfig,
7
7
  reserveBusinessSkillContext,
8
8
  syncBusinessSkills
9
- } from "./chunk-FNACCKQR.js";
9
+ } from "./chunk-53MUIQ3H.js";
10
10
  import {
11
11
  getLocalCliPackageInfo
12
12
  } from "./chunk-PUSFEC6B.js";
@@ -12,7 +12,7 @@ import {
12
12
  shouldNotifyCompat,
13
13
  shouldSkipAutoSync,
14
14
  shouldSkipCompatCheck
15
- } from "./chunk-FNACCKQR.js";
15
+ } from "./chunk-53MUIQ3H.js";
16
16
  import "./chunk-PUSFEC6B.js";
17
17
  import "./chunk-UWQXGF44.js";
18
18
  import "./chunk-IGU3R2JD.js";
@@ -4,7 +4,7 @@ import {
4
4
  invalidateBusinessSkillSynchronization,
5
5
  refreshEnvironmentAfterLogin,
6
6
  refreshEnvironmentConfig
7
- } from "./chunk-S74XV3A6.js";
7
+ } from "./chunk-QYUUXAPS.js";
8
8
  import {
9
9
  MultiselectCancelled,
10
10
  promptSingleSelect
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  printError,
14
14
  printOutput
15
- } from "./chunk-DE5XHQQ6.js";
15
+ } from "./chunk-7IBQMQEV.js";
16
16
  import {
17
17
  AE_TRIAL_URL,
18
18
  aeRegistrationUrl,
@@ -20,7 +20,7 @@ import {
20
20
  missingAeHostHint,
21
21
  readCurrentBusinessConfig,
22
22
  resolveKbAutoDiscoveryFeature
23
- } from "./chunk-FNACCKQR.js";
23
+ } from "./chunk-53MUIQ3H.js";
24
24
  import "./chunk-PUSFEC6B.js";
25
25
  import {
26
26
  peekCliToken
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  configureBusinessCommands,
17
17
  parseProgram,
18
18
  runCommand
19
- } from "./chunk-Q764EZND.js";
19
+ } from "./chunk-HYKO5XSG.js";
20
20
  import "./chunk-GYODT7C4.js";
21
21
  import "./chunk-L7MT53VM.js";
22
22
  import {
@@ -33,7 +33,7 @@ import {
33
33
  import {
34
34
  printError,
35
35
  printOutput
36
- } from "./chunk-DE5XHQQ6.js";
36
+ } from "./chunk-7IBQMQEV.js";
37
37
  import "./chunk-CYZV5AXW.js";
38
38
  import {
39
39
  executeCapability,
@@ -52,7 +52,7 @@ import {
52
52
  runHostCompatCheck,
53
53
  shouldSkipAutoSync,
54
54
  syncRefreshedBusinessSkills
55
- } from "./chunk-FNACCKQR.js";
55
+ } from "./chunk-53MUIQ3H.js";
56
56
  import {
57
57
  getLocalCliPackageInfo
58
58
  } from "./chunk-PUSFEC6B.js";
@@ -2165,43 +2165,43 @@ function warnLoadFailure(label, err) {
2165
2165
  async function loadCommands() {
2166
2166
  const commands = [];
2167
2167
  try {
2168
- const teAnalysis = await import("./te-analysis-BK6PE333.js");
2168
+ const teAnalysis = await import("./te-analysis-UFPYC4OT.js");
2169
2169
  commands.push(...teAnalysis.default);
2170
2170
  } catch (err) {
2171
2171
  warnLoadFailure("domain te-analysis", err);
2172
2172
  }
2173
2173
  try {
2174
- const engage = await import("./te-engage-I3I4FJOM.js");
2174
+ const engage = await import("./te-engage-IQ5W24HW.js");
2175
2175
  commands.push(...engage.default);
2176
2176
  } catch (err) {
2177
2177
  warnLoadFailure("domain te-engage", err);
2178
2178
  }
2179
2179
  try {
2180
- const experiment = await import("./te-experiment-XSDUL4KH.js");
2180
+ const experiment = await import("./te-experiment-L3T6YDLM.js");
2181
2181
  commands.push(...experiment.default);
2182
2182
  } catch (err) {
2183
2183
  warnLoadFailure("domain te-experiment", err);
2184
2184
  }
2185
2185
  try {
2186
- const community = await import("./te-community-OLNTKGCW.js");
2186
+ const community = await import("./te-community-MHM3PIGH.js");
2187
2187
  commands.push(...community.default);
2188
2188
  } catch (err) {
2189
2189
  warnLoadFailure("domain te-community", err);
2190
2190
  }
2191
2191
  try {
2192
- const dataops = await import("./te-dataops-XUWRIF5R.js");
2192
+ const dataops = await import("./te-dataops-DUM3AKEK.js");
2193
2193
  commands.push(...dataops.default);
2194
2194
  } catch (err) {
2195
2195
  warnLoadFailure("domain te-dataops", err);
2196
2196
  }
2197
2197
  try {
2198
- const teKb = await import("./te-kb-QFH3YLFQ.js");
2198
+ const teKb = await import("./te-kb-7HV5KZG6.js");
2199
2199
  commands.push(...teKb.default);
2200
2200
  } catch (err) {
2201
2201
  warnLoadFailure("domain te-kb", err);
2202
2202
  }
2203
2203
  try {
2204
- const teTeam = await import("./te-team-UADF2HBO.js");
2204
+ const teTeam = await import("./te-team-5QFLIVKZ.js");
2205
2205
  commands.push(...teTeam.default);
2206
2206
  } catch (err) {
2207
2207
  warnLoadFailure("domain te-team", err);
@@ -2239,19 +2239,19 @@ async function loadCommands() {
2239
2239
  warnLoadFailure("domain te-system", err);
2240
2240
  }
2241
2241
  try {
2242
- const metadata = await import("./metadata-7MZ3CJ2N.js");
2242
+ const metadata = await import("./metadata-T6ORCGG6.js");
2243
2243
  commands.push(...metadata.default);
2244
2244
  } catch (err) {
2245
2245
  warnLoadFailure("domain metadata", err);
2246
2246
  }
2247
2247
  try {
2248
- const personalSemanticPreference = await import("./personal-semantic-preference-SWOUNDWJ.js");
2248
+ const personalSemanticPreference = await import("./personal-semantic-preference-JFJ5FFAY.js");
2249
2249
  commands.push(...personalSemanticPreference.default);
2250
2250
  } catch (err) {
2251
2251
  warnLoadFailure("domain personal-semantic-preference", err);
2252
2252
  }
2253
2253
  try {
2254
- const projectSemantic = await import("./project-semantic-M2DDPAMD.js");
2254
+ const projectSemantic = await import("./project-semantic-TPRIOCTD.js");
2255
2255
  commands.push(...projectSemantic.default);
2256
2256
  } catch (err) {
2257
2257
  warnLoadFailure("domain project-semantic", err);
@@ -2269,7 +2269,7 @@ async function loadCommands() {
2269
2269
  warnLoadFailure("domain context", err);
2270
2270
  }
2271
2271
  try {
2272
- const aiMonitor = await import("./ai-monitor-TVRFVZBH.js");
2272
+ const aiMonitor = await import("./ai-monitor-276HLJZU.js");
2273
2273
  commands.push(...aiMonitor.default);
2274
2274
  } catch (err) {
2275
2275
  warnLoadFailure("domain ai-monitor", err);
@@ -2284,7 +2284,7 @@ async function loadCommands() {
2284
2284
  }
2285
2285
  async function registerAuthCommands() {
2286
2286
  try {
2287
- const { registerAuth } = await import("./auth-JAXLMPBB.js");
2287
+ const { registerAuth } = await import("./auth-JBO2UW7L.js");
2288
2288
  registerAuth(program);
2289
2289
  } catch (err) {
2290
2290
  warnLoadFailure("auth commands", err);
@@ -2292,7 +2292,7 @@ async function registerAuthCommands() {
2292
2292
  }
2293
2293
  async function registerConfigCommands() {
2294
2294
  try {
2295
- const { registerConfig } = await import("./config-PGSUWIK5.js");
2295
+ const { registerConfig } = await import("./config-L7GBSHRT.js");
2296
2296
  registerConfig(program);
2297
2297
  } catch (err) {
2298
2298
  warnLoadFailure("config commands", err);
@@ -2300,7 +2300,7 @@ async function registerConfigCommands() {
2300
2300
  }
2301
2301
  async function registerCapabilityCommands() {
2302
2302
  try {
2303
- const { registerCapability } = await import("./capability-2Z4ZXTPD.js");
2303
+ const { registerCapability } = await import("./capability-GVCWVM27.js");
2304
2304
  registerCapability(program);
2305
2305
  } catch (err) {
2306
2306
  warnLoadFailure("capability commands", err);
@@ -2308,7 +2308,7 @@ async function registerCapabilityCommands() {
2308
2308
  }
2309
2309
  async function registerSyncCommand() {
2310
2310
  try {
2311
- const { registerSync } = await import("./sync-PWC63JCO.js");
2311
+ const { registerSync } = await import("./sync-LTSMFMLZ.js");
2312
2312
  registerSync(program);
2313
2313
  } catch (err) {
2314
2314
  warnLoadFailure("sync commands", err);
@@ -2324,7 +2324,7 @@ async function registerModelCommand() {
2324
2324
  }
2325
2325
  async function registerUpdateCommand() {
2326
2326
  try {
2327
- const { registerUpdate } = await import("./update-6I366ICW.js");
2327
+ const { registerUpdate } = await import("./update-G7BAWLJE.js");
2328
2328
  registerUpdate(program);
2329
2329
  } catch (err) {
2330
2330
  warnLoadFailure("update commands", err);
@@ -1,17 +1,17 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  withAsyncArtifactLifecycle
4
- } from "./chunk-NK5PS5X7.js";
4
+ } from "./chunk-J4NHBBRC.js";
5
5
  import {
6
6
  createCapabilityCommand
7
- } from "./chunk-3PZNM5KN.js";
7
+ } from "./chunk-IXM75M7G.js";
8
8
  import {
9
9
  registerCapabilityGatewayRoute
10
10
  } from "./chunk-AWW2T2WL.js";
11
- import "./chunk-DE5XHQQ6.js";
11
+ import "./chunk-7IBQMQEV.js";
12
12
  import "./chunk-VPLRZSMY.js";
13
13
  import "./chunk-6E6HCTP2.js";
14
- import "./chunk-FNACCKQR.js";
14
+ import "./chunk-53MUIQ3H.js";
15
15
  import "./chunk-PUSFEC6B.js";
16
16
  import "./chunk-UWQXGF44.js";
17
17
  import "./chunk-IGU3R2JD.js";
@@ -1,14 +1,14 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-3PZNM5KN.js";
4
+ } from "./chunk-IXM75M7G.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute
7
7
  } from "./chunk-AWW2T2WL.js";
8
- import "./chunk-DE5XHQQ6.js";
8
+ import "./chunk-7IBQMQEV.js";
9
9
  import "./chunk-VPLRZSMY.js";
10
10
  import "./chunk-6E6HCTP2.js";
11
- import "./chunk-FNACCKQR.js";
11
+ import "./chunk-53MUIQ3H.js";
12
12
  import "./chunk-PUSFEC6B.js";
13
13
  import "./chunk-UWQXGF44.js";
14
14
  import "./chunk-IGU3R2JD.js";
@@ -3,14 +3,14 @@ import {
3
3
  assertOutputPathAvailable,
4
4
  downloadAnalysisArtifact,
5
5
  withAsyncArtifactLifecycle
6
- } from "./chunk-NK5PS5X7.js";
6
+ } from "./chunk-J4NHBBRC.js";
7
7
  import {
8
8
  registerCapabilityGatewayRoute,
9
9
  resolveGatewayDomain
10
10
  } from "./chunk-AWW2T2WL.js";
11
11
  import {
12
12
  withOutputMetadata
13
- } from "./chunk-DE5XHQQ6.js";
13
+ } from "./chunk-7IBQMQEV.js";
14
14
  import {
15
15
  CapabilityGatewayError,
16
16
  dryRunCapabilityWithEnvelope,
@@ -18,7 +18,7 @@ import {
18
18
  validateCapabilityWithEnvelope
19
19
  } from "./chunk-VPLRZSMY.js";
20
20
  import "./chunk-6E6HCTP2.js";
21
- import "./chunk-FNACCKQR.js";
21
+ import "./chunk-53MUIQ3H.js";
22
22
  import "./chunk-PUSFEC6B.js";
23
23
  import "./chunk-UWQXGF44.js";
24
24
  import "./chunk-IGU3R2JD.js";
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-7K24F7T2.js";
29
29
  import {
30
30
  printError
31
- } from "./chunk-DE5XHQQ6.js";
31
+ } from "./chunk-7IBQMQEV.js";
32
32
  import {
33
33
  TeAgentApiError,
34
34
  TeAgentCredentialsError,
@@ -37,7 +37,7 @@ import {
37
37
  postToMainApp,
38
38
  uploadToMainApp
39
39
  } from "./chunk-CYZV5AXW.js";
40
- import "./chunk-FNACCKQR.js";
40
+ import "./chunk-53MUIQ3H.js";
41
41
  import "./chunk-PUSFEC6B.js";
42
42
  import "./chunk-UWQXGF44.js";
43
43
  import "./chunk-IGU3R2JD.js";
@@ -10,12 +10,12 @@ import {
10
10
  waitForAnalysisRun,
11
11
  withAsyncArtifactLifecycle,
12
12
  withInterruptSignal
13
- } from "./chunk-NK5PS5X7.js";
13
+ } from "./chunk-J4NHBBRC.js";
14
14
  import {
15
15
  createCapabilityCommand,
16
16
  definitionIntentSnapshotFlag,
17
17
  modelDefinitionIntentSnapshotFlag
18
- } from "./chunk-3PZNM5KN.js";
18
+ } from "./chunk-IXM75M7G.js";
19
19
  import {
20
20
  registerCapabilityGatewayRoute,
21
21
  resolveGatewayDomain
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  unwrapOutputData,
28
28
  withOutputMetadata
29
- } from "./chunk-DE5XHQQ6.js";
29
+ } from "./chunk-7IBQMQEV.js";
30
30
  import {
31
31
  normalizeResourceUrlFields,
32
32
  normalizeResourceUrls,
@@ -47,7 +47,7 @@ import {
47
47
  validateCapabilityWithEnvelope
48
48
  } from "./chunk-VPLRZSMY.js";
49
49
  import "./chunk-6E6HCTP2.js";
50
- import "./chunk-FNACCKQR.js";
50
+ import "./chunk-53MUIQ3H.js";
51
51
  import "./chunk-PUSFEC6B.js";
52
52
  import {
53
53
  getCliToken
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-3PZNM5KN.js";
4
+ } from "./chunk-IXM75M7G.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute,
7
7
  resolveGatewayDomain
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  unwrapOutputData,
11
11
  withOutputMetadata
12
- } from "./chunk-DE5XHQQ6.js";
12
+ } from "./chunk-7IBQMQEV.js";
13
13
  import {
14
14
  CapabilityGatewayError,
15
15
  buildCapabilityGatewayUrl,
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  sourceLoggedFetch
20
20
  } from "./chunk-6E6HCTP2.js";
21
- import "./chunk-FNACCKQR.js";
21
+ import "./chunk-53MUIQ3H.js";
22
22
  import "./chunk-PUSFEC6B.js";
23
23
  import {
24
24
  SecureStoreAuthError,
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-Z6WSCIHM.js";
5
5
  import {
6
6
  printError
7
- } from "./chunk-DE5XHQQ6.js";
7
+ } from "./chunk-7IBQMQEV.js";
8
8
  import {
9
9
  sourceLoggedFetch
10
10
  } from "./chunk-6E6HCTP2.js";
11
- import "./chunk-FNACCKQR.js";
11
+ import "./chunk-53MUIQ3H.js";
12
12
  import "./chunk-PUSFEC6B.js";
13
13
  import {
14
14
  SecureStoreAuthError,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-3PZNM5KN.js";
4
+ } from "./chunk-IXM75M7G.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute,
7
7
  resolveGatewayDomain
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  printError,
11
11
  withOutputMetadata
12
- } from "./chunk-DE5XHQQ6.js";
12
+ } from "./chunk-7IBQMQEV.js";
13
13
  import {
14
14
  CapabilityGatewayError,
15
15
  buildCapabilityGatewayUrl,
@@ -18,7 +18,7 @@ import {
18
18
  requestCapabilityGatewayWithEnvelope
19
19
  } from "./chunk-VPLRZSMY.js";
20
20
  import "./chunk-6E6HCTP2.js";
21
- import "./chunk-FNACCKQR.js";
21
+ import "./chunk-53MUIQ3H.js";
22
22
  import "./chunk-PUSFEC6B.js";
23
23
  import "./chunk-UWQXGF44.js";
24
24
  import "./chunk-IGU3R2JD.js";
@@ -1,14 +1,14 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-3PZNM5KN.js";
4
+ } from "./chunk-IXM75M7G.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute
7
7
  } from "./chunk-AWW2T2WL.js";
8
- import "./chunk-DE5XHQQ6.js";
8
+ import "./chunk-7IBQMQEV.js";
9
9
  import "./chunk-VPLRZSMY.js";
10
10
  import "./chunk-6E6HCTP2.js";
11
- import "./chunk-FNACCKQR.js";
11
+ import "./chunk-53MUIQ3H.js";
12
12
  import "./chunk-PUSFEC6B.js";
13
13
  import "./chunk-UWQXGF44.js";
14
14
  import "./chunk-IGU3R2JD.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-E5CJI7L3.js";
6
6
  import {
7
7
  printError
8
- } from "./chunk-DE5XHQQ6.js";
8
+ } from "./chunk-7IBQMQEV.js";
9
9
  import {
10
10
  TeAgentApiError
11
11
  } from "./chunk-CYZV5AXW.js";
@@ -13,7 +13,7 @@ import {
13
13
  CapabilityGatewayError
14
14
  } from "./chunk-VPLRZSMY.js";
15
15
  import "./chunk-6E6HCTP2.js";
16
- import "./chunk-FNACCKQR.js";
16
+ import "./chunk-53MUIQ3H.js";
17
17
  import "./chunk-PUSFEC6B.js";
18
18
  import "./chunk-UWQXGF44.js";
19
19
  import "./chunk-IGU3R2JD.js";
@@ -6,10 +6,10 @@ import {
6
6
  import {
7
7
  printError,
8
8
  printOutput
9
- } from "./chunk-DE5XHQQ6.js";
9
+ } from "./chunk-7IBQMQEV.js";
10
10
  import "./chunk-VPLRZSMY.js";
11
11
  import "./chunk-6E6HCTP2.js";
12
- import "./chunk-FNACCKQR.js";
12
+ import "./chunk-53MUIQ3H.js";
13
13
  import "./chunk-PUSFEC6B.js";
14
14
  import "./chunk-UWQXGF44.js";
15
15
  import "./chunk-IGU3R2JD.js";
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  printError,
4
4
  printOutput
5
- } from "./chunk-DE5XHQQ6.js";
5
+ } from "./chunk-7IBQMQEV.js";
6
6
  import {
7
7
  buildVersionInstallPlan,
8
8
  exactVersion,
@@ -14,7 +14,7 @@ import {
14
14
  missingAeHostHint,
15
15
  recordVersionSyncResult,
16
16
  rememberBusinessConfig
17
- } from "./chunk-FNACCKQR.js";
17
+ } from "./chunk-53MUIQ3H.js";
18
18
  import {
19
19
  getLocalCliPackageInfo
20
20
  } from "./chunk-PUSFEC6B.js";
@@ -43,7 +43,7 @@ import {
43
43
  websiteEnvironment,
44
44
  websiteOrigin,
45
45
  withCliEntryContext
46
- } from "./chunk-FNACCKQR.js";
46
+ } from "./chunk-53MUIQ3H.js";
47
47
  import {
48
48
  getLocalCliPackageInfo
49
49
  } from "./chunk-PUSFEC6B.js";
@@ -1774,7 +1774,7 @@ var defaults = {
1774
1774
  authorize: authorizeLoginDevice,
1775
1775
  poll: (issuer, code, signal) => pollDeviceToken(issuer, code, code.startsWith("uba_") ? "uba" : "legacy", signal),
1776
1776
  async persist(host, tokens, signal) {
1777
- const { persistDeviceTokens, activateHostAfterLogin } = await import("./auth-JAXLMPBB.js");
1777
+ const { persistDeviceTokens, activateHostAfterLogin } = await import("./auth-JBO2UW7L.js");
1778
1778
  await persistDeviceTokens(host, tokens, { signal, checkCompatibility: false });
1779
1779
  activateHostAfterLogin(host, host);
1780
1780
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkingai/ae-cli",
3
- "version": "6.1.34",
3
+ "version": "6.1.36",
4
4
  "description": "CLI tool for ThinkingAI (AE) analytics platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-onboarding
3
- version: 1.1.33
3
+ version: 1.1.35
4
4
  description: "Guide Demo analysis and a follow-up A/B experiment in AE onboarding, with SDK integration available in a local agent."
5
5
  metadata:
6
6
  internal: true
@@ -20,7 +20,7 @@ After the verified experiment report is ready to deliver, run `node <this-skill-
20
20
 
21
21
  ## Login
22
22
 
23
- For local onboarding, confirm the customer's market if it is unclear. Website onboarding is available in Japan, Korea, and the United States. Pass `--region jp`, `--region kr`, or `--region us` for the customer's chosen market. Customers in China who already have an AE account can use their original host with `ae-cli auth login --host <url>`.
23
+ For a new local onboarding session, use the customer's explicit or already confirmed market. Otherwise infer it from the local language and the language of the customer's own request. Chinese maps to China, English to the United States, Japanese to Japan, and Korean to South Korea. Ask the customer to choose only if these two hints suggest different markets. Use either hint alone when the other is unavailable, or the United States when neither is available. Pass `--region jp`, `--region kr`, or `--region us` for website onboarding. In China, use the customer's original host for existing-account login or share the AE trial request page.
24
24
 
25
25
  Follow `next_action` and the browser receipt. For `guide_existing_window`, direct the user to the page already opened in their system default browser. For `show_fallback_link` or a window the user cannot find, give the exact URL for that browser. For `complete_website_login`, show **I finished signing in** and **I need help signing in**. For `approve_device`, show **I approved CLI access** and **I need help authorizing the CLI**. Resume the same session when the user confirms. For `restart_website_login` or `reauthorize_cli`, show the returned recovery choice and **Not now**. If a matching older CLI returns `run_onboarding` with zero delay after claiming authorization, run once more in the same turn. On `choose_experience`, show the experience picker immediately.
26
26