@thinkingai/ae-cli 6.1.37 → 6.1.39
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 +3 -1
- package/README.zh.md +3 -1
- package/cli-installation-guide.md +1 -2
- package/dist/{ai-monitor-YKNYBHN2.js → ai-monitor-DST4NDOK.js} +5 -5
- package/dist/ai-monitor.js +7 -7
- package/dist/{auth-FXRGFG37.js → auth-BD3NIY3T.js} +3 -3
- package/dist/{automation-OQ647CSW.js → automation-IMDCJUML.js} +85 -9
- package/dist/{capability-GM7CH2LZ.js → capability-3NJOQHZQ.js} +3 -3
- package/dist/{chunk-46V4ZF7E.js → chunk-24DCOJBJ.js} +2 -2
- package/dist/{chunk-SHB7A2JE.js → chunk-2RORKIF6.js} +2 -2
- package/dist/{chunk-HBI7IQH3.js → chunk-6NJZSWUT.js} +3 -28
- package/dist/{chunk-QPUPWGZ3.js → chunk-DTODOQ6T.js} +1 -1
- package/dist/{chunk-EFGZFFSO.js → chunk-FRJUB66C.js} +1 -1
- package/dist/{chunk-OFOPYKYM.js → chunk-IY5G42YY.js} +2 -2
- package/dist/{chunk-NBXQSPXL.js → chunk-KBJHBVO7.js} +1 -1
- package/dist/{chunk-CYZV5AXW.js → chunk-KE5WGBXS.js} +2 -1
- package/dist/chunk-N2MAYIRU.js +32 -0
- package/dist/{chunk-IL2O4KDP.js → chunk-SQEK6S4X.js} +20 -21
- package/dist/{chunk-VPLRZSMY.js → chunk-STHIGWWC.js} +10 -1
- package/dist/{chunk-OTV5EBR5.js → chunk-TVSGS5QB.js} +5 -5
- package/dist/{chunk-LXRALNNA.js → chunk-UK7HQ4IL.js} +1 -1
- package/dist/{chunk-JFXDUX6U.js → chunk-VXKKTUU2.js} +2 -2
- package/dist/{chunk-E5CJI7L3.js → chunk-WRYXVIJP.js} +1 -1
- package/dist/{compat-check-ZMJWF6QG.js → compat-check-7VBBE7KO.js} +1 -1
- package/dist/{config-6G2LAH5D.js → config-LFRZBPH5.js} +4 -7
- package/dist/{context-Y2A6QIS3.js → context-WJQGJD6F.js} +1 -1
- package/dist/{data-integration-EIF5QHYF.js → data-integration-KMJWYAKK.js} +2 -1
- package/dist/index.js +34 -32
- package/dist/{memory-6QMZS4HF.js → memory-VPOPSU52.js} +3 -3
- package/dist/{metadata-6S3Z67JC.js → metadata-AR64J76Z.js} +5 -5
- package/dist/{model-LEYRQKOS.js → model-2F2354QP.js} +1 -1
- package/dist/{personal-semantic-preference-PKYS73D6.js → personal-semantic-preference-BCOSI4DO.js} +4 -4
- package/dist/{project-semantic-B5PG4JJB.js → project-semantic-DJLXAXLD.js} +4 -4
- package/dist/{sync-GB3IKG2D.js → sync-4TUIQ2PZ.js} +3 -3
- package/dist/{te-agent-S7UH657Z.js → te-agent-EMDWA3M6.js} +4 -4
- package/dist/{te-analysis-ZYL4AF34.js → te-analysis-XHAMRMTQ.js} +6 -6
- package/dist/{te-community-R63WXF6D.js → te-community-JSUSZEYH.js} +4 -4
- package/dist/{te-dataops-VHTPW433.js → te-dataops-I264BUTI.js} +2 -2
- package/dist/{te-engage-ZE7ROR3Z.js → te-engage-XNMQYO5N.js} +68 -16
- package/dist/{te-experiment-ZDR2JZTN.js → te-experiment-5SCHMYVO.js} +4 -4
- package/dist/{te-kb-6NXLBHE3.js → te-kb-QQ53TNRZ.js} +44 -13
- package/dist/{te-system-DB5Z3LLF.js → te-system-Z4VEB6PL.js} +1 -1
- package/dist/{te-team-KOSX43ZP.js → te-team-V6BBI52R.js} +87 -6
- package/dist/{things-G2QFXDK7.js → things-THHGDSEC.js} +4 -4
- package/dist/{update-XPNNE7UF.js → update-53ZUXWV5.js} +2 -2
- package/dist/{web-runtime-7DPC4HYJ.js → web-runtime-ZJHOIPKX.js} +4 -4
- package/dist/{workspace-RZESYB6T.js → workspace-W5ZPVWJS.js} +3 -3
- package/package.json +3 -3
- package/skills/ae-automation/SKILL.md +6 -2
- package/skills/ae-automation/references/cli.md +9 -3
- package/skills/ae-engage/SKILL.md +6 -1
- package/skills/ae-engage/references/common-metric.md +47 -1
- package/skills/ae-engage/references/flow-metric-update.md +1 -1
- package/skills/ae-engage/references/task-metric-update.md +1 -1
- package/skills/ae-experiment/SKILL.md +1 -1
- package/skills/ae-experiment/references/save_experiment.md +1 -1
- package/skills/ae-kb/SKILL.md +8 -6
- package/skills/ae-kb/references/query-workflow.md +5 -1
- package/skills/ae-onboarding/SKILL.md +2 -2
- package/skills/ae-onboarding/references/onboarding_run.md +1 -1
- package/skills/ae-team/SKILL.md +7 -3
- package/skills/ae-team/references/copy-to-personal.md +7 -0
- package/skills/ae-team/references/promote.md +7 -0
- package/skills/ae-team/references/update.md +3 -3
- package/skills/ae-tracking-matrix/SKILL.md +0 -170
- package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
- package/skills/ae-tracking-matrix/i18n.yaml +0 -12
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
- package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
- package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
- package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
- package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
- package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
- package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
- package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
- package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
- package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
- package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
- package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
- package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
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. The Agent reports the verification result. To start guided website onboarding in Japan, South Korea, or the United States, ask for onboarding explicitly.
|
|
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 China, Japan, South Korea, or the United States, ask for onboarding explicitly. Sign in to an existing account using its original 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
|
|
|
@@ -322,6 +322,8 @@ ae-cli kb +ask-status --execution-id <id>
|
|
|
322
322
|
|
|
323
323
|
Name-based management commands accept optional `--scope personal|company`; omit it to keep the legacy personal-to-company lookup. For Schema and Compile, prefer the model record `id` from `ae-cli agent +list-models`; historical `modelId` and `modelId::scope` remain compatible, while `displayName` is not a stable reference.
|
|
324
324
|
|
|
325
|
+
With a supporting Host, use `kb +schema --content-language ko` to select the content language. Add `--rewrite-language` to change the language while retaining the existing guidelines. Use `kb +compile --content-language ko` to check the working language before compiling.
|
|
326
|
+
|
|
325
327
|
`kb +import` accepts a compiled Markdown ZIP up to 50 MB with root `index.md` and `wiki/**/*.md` pages. It returns `{requestId, status: "queued"}` immediately; use `ae-cli kb +import-status --request-id <requestId>` to read `queued`, `running`, `succeeded`, or `failed`. A succeeded personal read-only snapshot supports list, Index/Wiki, grep/read, Ask, and delete operations; source, Schema, usage, compile, member/settings, ownership transfer, and company publication are unavailable.
|
|
326
328
|
|
|
327
329
|
External Agents can use deterministic retrieval without a server-side LLM:
|
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,Agent
|
|
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
|
|
|
@@ -322,6 +322,8 @@ ae-cli kb +ask-status --execution-id <id>
|
|
|
322
322
|
|
|
323
323
|
按名称管理知识库的命令都支持可选 `--scope personal|company`;省略时保留 personal 到 company 的旧查找顺序。Schema 与 Compile 优先使用 `ae-cli agent +list-models` 返回的模型记录 `id`;历史 `modelId` 和 `modelId::scope` 仍兼容,`displayName` 不是稳定引用。
|
|
324
324
|
|
|
325
|
+
配套 Host 支持后,可用 `kb +schema --content-language ko` 指定知识库内容语言。添加 `--rewrite-language` 可在保留现有规则的基础上改写语言。用 `kb +compile --content-language ko` 可在编译前核对工作准则的语言。
|
|
326
|
+
|
|
325
327
|
`kb +import` 接受最大 50 MB 的编译后 Markdown ZIP,根目录必须包含 `index.md`,页面放在 `wiki/**/*.md`。命令立即返回 `{requestId, status: "queued"}`;通过 `ae-cli kb +import-status --request-id <requestId>` 查询 `queued`、`running`、`succeeded` 或 `failed`。导入成功后可执行列表、Index/Wiki、grep/read、Ask 和删除;个人只读快照不支持来源、Schema、用量、编译、成员/设置、所有权转移和公司发布。
|
|
326
328
|
|
|
327
329
|
外部 Agent 可以使用不依赖服务端 LLM 的确定性检索:
|
|
@@ -55,8 +55,7 @@ If the user asks to install AE CLI, run the installer and report the verificatio
|
|
|
55
55
|
4. Use an explicitly requested or already confirmed market. Otherwise resolve the market from the local language and the user's request.
|
|
56
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
57
|
- Compare that market with the language of the user's own request. Ignore the language of quoted commands, links, and guide text. If both languages map to different markets, build the picker with exactly those two markets. For a Chinese local language and an English request, the two options are **China** and **United States**. Treat the CLI's `markets` list as supported-market metadata. 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
|
-
-
|
|
59
|
-
- 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.
|
|
58
|
+
- Start website onboarding with `ae-cli analysis onboarding run --browser system --format json`. Pass the resolved market with `--region cn`, `--region jp`, `--region kr`, or `--region us`, and pass `--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.
|
|
60
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.
|
|
61
60
|
|
|
62
61
|
## Host and login
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
traceCount,
|
|
10
10
|
traceGet,
|
|
11
11
|
traceList
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-VXKKTUU2.js";
|
|
13
|
+
import "./chunk-IY5G42YY.js";
|
|
14
14
|
import "./chunk-AWW2T2WL.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-KBJHBVO7.js";
|
|
16
|
+
import "./chunk-STHIGWWC.js";
|
|
17
17
|
import "./chunk-6E6HCTP2.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-SQEK6S4X.js";
|
|
19
19
|
import "./chunk-PUSFEC6B.js";
|
|
20
20
|
import "./chunk-UWQXGF44.js";
|
|
21
21
|
import "./chunk-IGU3R2JD.js";
|
package/dist/ai-monitor.js
CHANGED
|
@@ -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-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-VXKKTUU2.js";
|
|
5
|
+
import "./chunk-IY5G42YY.js";
|
|
6
6
|
import "./chunk-AWW2T2WL.js";
|
|
7
7
|
import {
|
|
8
8
|
configureBusinessCommands,
|
|
9
9
|
parseProgram,
|
|
10
10
|
runCommand
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TVSGS5QB.js";
|
|
12
12
|
import "./chunk-GYODT7C4.js";
|
|
13
13
|
import "./chunk-L7MT53VM.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-KBJHBVO7.js";
|
|
15
|
+
import "./chunk-KE5WGBXS.js";
|
|
16
|
+
import "./chunk-STHIGWWC.js";
|
|
17
17
|
import "./chunk-6E6HCTP2.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-SQEK6S4X.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-
|
|
6
|
+
} from "./chunk-FRJUB66C.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-
|
|
17
|
+
} from "./chunk-KBJHBVO7.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-
|
|
31
|
+
} from "./chunk-SQEK6S4X.js";
|
|
32
32
|
import {
|
|
33
33
|
getLocalCliPackageInfo
|
|
34
34
|
} from "./chunk-PUSFEC6B.js";
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveWorkspaceTarget
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2RORKIF6.js";
|
|
5
5
|
import {
|
|
6
6
|
currentAgentSpaceId
|
|
7
7
|
} from "./chunk-RK6GLDGI.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UK7HQ4IL.js";
|
|
9
|
+
import {
|
|
10
|
+
detectCliLocale
|
|
11
|
+
} from "./chunk-N2MAYIRU.js";
|
|
9
12
|
import {
|
|
10
13
|
TeAgentApiError,
|
|
11
14
|
deleteFromMainApp,
|
|
12
15
|
getFromMainApp,
|
|
13
16
|
patchToMainApp,
|
|
14
17
|
postToMainApp
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KE5WGBXS.js";
|
|
16
19
|
import "./chunk-UWQXGF44.js";
|
|
17
20
|
import "./chunk-IGU3R2JD.js";
|
|
18
21
|
import "./chunk-MTK4ZE7W.js";
|
|
19
|
-
import
|
|
22
|
+
import {
|
|
23
|
+
CliApiError,
|
|
24
|
+
CliValidationError,
|
|
25
|
+
PermissionError
|
|
26
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
20
27
|
|
|
21
28
|
// src/commands/automation/index.ts
|
|
22
29
|
import { randomUUID } from "crypto";
|
|
@@ -85,6 +92,10 @@ var configFlags = [
|
|
|
85
92
|
"json"
|
|
86
93
|
),
|
|
87
94
|
flag("model", "Agent model configuration ID; null clears the override"),
|
|
95
|
+
flag(
|
|
96
|
+
"effort",
|
|
97
|
+
"Agent reasoning depth: adaptive (default on create), low, medium, high, max. Adaptive clears the override; Team ignores this flag."
|
|
98
|
+
),
|
|
88
99
|
flag("reuse-conversation", "Agent: true | false", "json"),
|
|
89
100
|
{
|
|
90
101
|
...flag("scope", "Team data scope JSON; null clears it", "json"),
|
|
@@ -223,6 +234,15 @@ function configuration(ctx, create) {
|
|
|
223
234
|
}
|
|
224
235
|
if (create && (ctx.str("triggerType") || "scheduled") === "scheduled" && !kind && !cron)
|
|
225
236
|
throw new Error("Scheduled automation requires a schedule");
|
|
237
|
+
const effort = ctx.str("effort");
|
|
238
|
+
const hasEffort = ctx.has?.("effort") ?? Boolean(effort);
|
|
239
|
+
if (hasEffort && targetType === "agent") {
|
|
240
|
+
if (!["adaptive", "low", "medium", "high", "max"].includes(effort))
|
|
241
|
+
throw new CliValidationError(
|
|
242
|
+
"--effort must be adaptive | low | medium | high | max"
|
|
243
|
+
);
|
|
244
|
+
result.effort = effort === "adaptive" ? null : effort;
|
|
245
|
+
}
|
|
226
246
|
const agentNames = ["model", "reuseConversation"];
|
|
227
247
|
const teamNames = ["scope", "saveToKnowledgeBaseId"];
|
|
228
248
|
const notificationNames = [
|
|
@@ -260,8 +280,12 @@ function configuration(ctx, create) {
|
|
|
260
280
|
throw new Error("--scope must be an object or null");
|
|
261
281
|
result[name2 === "scope" ? "scopeJson" : name2] = name2 === "scope" ? value === null ? null : JSON.stringify(value) : value === "null" ? null : value;
|
|
262
282
|
}
|
|
263
|
-
if (!create && !Object.keys(result).length)
|
|
264
|
-
|
|
283
|
+
if (!create && !Object.keys(result).length) {
|
|
284
|
+
const onlyTeamEffort = targetType === "team" && hasEffort && !configFlags.some(
|
|
285
|
+
({ name: name2 }) => name2 !== "target-type" && name2 !== "effort" && ctx.has?.(name2)
|
|
286
|
+
);
|
|
287
|
+
if (!onlyTeamEffort) throw new Error("No fields to update");
|
|
288
|
+
}
|
|
265
289
|
if (create) result.triggerImmediately = ctx.bool("triggerImmediately");
|
|
266
290
|
return result;
|
|
267
291
|
}
|
|
@@ -292,7 +316,8 @@ async function request(ctx, method, path, body) {
|
|
|
292
316
|
path,
|
|
293
317
|
body,
|
|
294
318
|
ctx.hostOverride ? ctx.hostOverride() : ctx.host(),
|
|
295
|
-
"cli-token"
|
|
319
|
+
"cli-token",
|
|
320
|
+
{ "Accept-Language": detectCliLocale() }
|
|
296
321
|
);
|
|
297
322
|
if (method === "PATCH")
|
|
298
323
|
return patchToMainApp(
|
|
@@ -334,6 +359,36 @@ async function waitForRun(ctx, id, runId) {
|
|
|
334
359
|
);
|
|
335
360
|
} while (true);
|
|
336
361
|
}
|
|
362
|
+
function isUnchangedTeamUpdate(action, body) {
|
|
363
|
+
return action.command === "update" && body !== void 0 && Object.keys(body).length === 0;
|
|
364
|
+
}
|
|
365
|
+
function ignoredEffortReceipt(ctx) {
|
|
366
|
+
return ctx.str("targetType") === "team" && (ctx.has?.("effort") ?? Boolean(ctx.str("effort"))) ? { ignoredFields: ["effort"] } : {};
|
|
367
|
+
}
|
|
368
|
+
async function checkUnchangedTeamUpdate(ctx, path) {
|
|
369
|
+
const detail = await request(ctx, "GET", path);
|
|
370
|
+
const update = detail?.actions?.update;
|
|
371
|
+
if (detail?.targetType !== "team" || typeof update?.allowed !== "boolean")
|
|
372
|
+
throw new CliApiError("Unable to verify Team update permission.");
|
|
373
|
+
if (!update.allowed) {
|
|
374
|
+
const reason = update.reason;
|
|
375
|
+
if (reason === "AUTOMATION_FORBIDDEN" || reason === "AGENT_SPACE_PERMISSION_DENIED")
|
|
376
|
+
throw new PermissionError(
|
|
377
|
+
"No permission to update this Team automation.",
|
|
378
|
+
reason
|
|
379
|
+
);
|
|
380
|
+
throw new CliApiError("This Team automation cannot be updated.", {
|
|
381
|
+
code: reason
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
return {
|
|
385
|
+
id: detail.id,
|
|
386
|
+
agentSpaceId: detail.agentSpaceId,
|
|
387
|
+
targetType: "team",
|
|
388
|
+
unchanged: true,
|
|
389
|
+
ignoredFields: ["effort"]
|
|
390
|
+
};
|
|
391
|
+
}
|
|
337
392
|
var actions = [
|
|
338
393
|
{
|
|
339
394
|
command: "list",
|
|
@@ -454,19 +509,38 @@ var automationCommands = actions.map((a) => ({
|
|
|
454
509
|
...a.wait ? { commandId } : {}
|
|
455
510
|
};
|
|
456
511
|
const path = base + a.suffix(ctx) + await query(ctx, a.list, a.typed);
|
|
512
|
+
if (isUnchangedTeamUpdate(a, body)) {
|
|
513
|
+
const { id, ...result } = await checkUnchangedTeamUpdate(ctx, path);
|
|
514
|
+
return {
|
|
515
|
+
request: redactedPreview("GET", path),
|
|
516
|
+
validation: {
|
|
517
|
+
dryRun: true,
|
|
518
|
+
valid: true,
|
|
519
|
+
operation: "update",
|
|
520
|
+
automationId: id,
|
|
521
|
+
...result
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
}
|
|
457
525
|
return {
|
|
458
526
|
request: redactedPreview(a.method, path, requestBody),
|
|
459
|
-
validation:
|
|
527
|
+
validation: {
|
|
528
|
+
...await request(ctx, a.method, withDryRun(path), requestBody),
|
|
529
|
+
...ignoredEffortReceipt(ctx)
|
|
530
|
+
}
|
|
460
531
|
};
|
|
461
532
|
},
|
|
462
533
|
execute: async (ctx) => {
|
|
463
534
|
const body = a.body?.(ctx), commandId = ctx.str("commandId") || randomUUID();
|
|
464
535
|
let output;
|
|
465
536
|
try {
|
|
537
|
+
const path = base + a.suffix(ctx) + await query(ctx, a.list, a.typed);
|
|
538
|
+
if (isUnchangedTeamUpdate(a, body))
|
|
539
|
+
return await checkUnchangedTeamUpdate(ctx, path);
|
|
466
540
|
output = await request(
|
|
467
541
|
ctx,
|
|
468
542
|
a.method,
|
|
469
|
-
|
|
543
|
+
path,
|
|
470
544
|
body && { ...body, ...a.wait ? { commandId } : {} }
|
|
471
545
|
);
|
|
472
546
|
} catch (error) {
|
|
@@ -485,6 +559,8 @@ var automationCommands = actions.map((a) => ({
|
|
|
485
559
|
);
|
|
486
560
|
throw error;
|
|
487
561
|
}
|
|
562
|
+
if (a.command === "update" || a.command === "create")
|
|
563
|
+
output = { ...output, ...ignoredEffortReceipt(ctx) };
|
|
488
564
|
if (!a.wait) return output;
|
|
489
565
|
const runId = a.command === "create" ? output.execution?.runId : output.runId;
|
|
490
566
|
const id = a.command === "create" ? output.automation.id : ctx.str("id");
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
printError,
|
|
18
18
|
printOutput,
|
|
19
19
|
withOutputMetadata
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KBJHBVO7.js";
|
|
21
21
|
import {
|
|
22
22
|
CapabilityGatewayError,
|
|
23
23
|
dryRunCapabilityWithEnvelope,
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
inspectCapabilityWithEnvelope,
|
|
27
27
|
listCapabilitiesWithEnvelope,
|
|
28
28
|
validateCapabilityWithEnvelope
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-STHIGWWC.js";
|
|
30
30
|
import "./chunk-6E6HCTP2.js";
|
|
31
31
|
import {
|
|
32
32
|
assertBusinessEnabled,
|
|
33
33
|
businessForCapability,
|
|
34
34
|
readBusinessConfigForExecution,
|
|
35
35
|
readCurrentBusinessConfig
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SQEK6S4X.js";
|
|
37
37
|
import "./chunk-PUSFEC6B.js";
|
|
38
38
|
import {
|
|
39
39
|
CredentialStoreUnreadableError,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
readOutputMetadata,
|
|
7
7
|
unwrapOutputData,
|
|
8
8
|
withOutputMetadata
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KBJHBVO7.js";
|
|
10
10
|
import {
|
|
11
11
|
CapabilityGatewayError,
|
|
12
12
|
fetchCapabilityGateway,
|
|
13
13
|
requestCapabilityGateway
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-STHIGWWC.js";
|
|
15
15
|
import {
|
|
16
16
|
PermissionError
|
|
17
17
|
} from "./chunk-3ZQY7SLZ.js";
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
postAgentApi,
|
|
10
10
|
putAgentApi,
|
|
11
11
|
uploadAgentApi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UK7HQ4IL.js";
|
|
13
13
|
import {
|
|
14
14
|
TeAgentApiError,
|
|
15
15
|
createTeAgentApiError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KE5WGBXS.js";
|
|
17
17
|
import {
|
|
18
18
|
CliValidationError,
|
|
19
19
|
isApiErrorType
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
detectCliLocale
|
|
4
|
+
} from "./chunk-N2MAYIRU.js";
|
|
2
5
|
import {
|
|
3
6
|
require_excel
|
|
4
7
|
} from "./chunk-RLPMXKDQ.js";
|
|
@@ -9,33 +12,6 @@ import {
|
|
|
9
12
|
// src/tracking/xlsx/write.ts
|
|
10
13
|
var import_exceljs = __toESM(require_excel(), 1);
|
|
11
14
|
|
|
12
|
-
// src/tracking/i18n/locale.ts
|
|
13
|
-
var VALID_LOCALES = /* @__PURE__ */ new Set(["zh", "en", "ja", "ko"]);
|
|
14
|
-
function normalize(raw) {
|
|
15
|
-
const lower = raw.trim().toLowerCase();
|
|
16
|
-
if (lower.startsWith("zh") || lower.startsWith("cn")) return "zh";
|
|
17
|
-
if (lower.startsWith("ja") || lower.startsWith("jp")) return "ja";
|
|
18
|
-
if (lower.startsWith("ko") || lower.startsWith("kr")) return "ko";
|
|
19
|
-
if (lower.startsWith("en")) return "en";
|
|
20
|
-
if (VALID_LOCALES.has(lower)) return lower;
|
|
21
|
-
return "en";
|
|
22
|
-
}
|
|
23
|
-
var _cliLocale;
|
|
24
|
-
function detectCliLocale() {
|
|
25
|
-
if (_cliLocale) return _cliLocale;
|
|
26
|
-
if (process.env.AE_LANG) {
|
|
27
|
-
_cliLocale = normalize(process.env.AE_LANG);
|
|
28
|
-
return _cliLocale;
|
|
29
|
-
}
|
|
30
|
-
const sys = (process.env.LANG || process.env.LC_ALL || process.env.LANGUAGE || "").toLowerCase();
|
|
31
|
-
if (sys) {
|
|
32
|
-
_cliLocale = normalize(sys);
|
|
33
|
-
return _cliLocale;
|
|
34
|
-
}
|
|
35
|
-
_cliLocale = "en";
|
|
36
|
-
return _cliLocale;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
15
|
// src/tracking/i18n/resources/xlsx/sheets.ts
|
|
40
16
|
var SHEET_NAMES = {
|
|
41
17
|
event_data: {
|
|
@@ -1193,7 +1169,6 @@ function validateAndFix(draft) {
|
|
|
1193
1169
|
}
|
|
1194
1170
|
|
|
1195
1171
|
export {
|
|
1196
|
-
detectCliLocale,
|
|
1197
1172
|
allSheetNames,
|
|
1198
1173
|
allHeaderNames,
|
|
1199
1174
|
displayToType,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-AWW2T2WL.js";
|
|
5
5
|
import {
|
|
6
6
|
withOutputMetadata
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KBJHBVO7.js";
|
|
8
8
|
import {
|
|
9
9
|
dryRunCapabilityWithEnvelope,
|
|
10
10
|
executeCapabilityWithEnvelope,
|
|
11
11
|
validateCapabilityWithEnvelope
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-STHIGWWC.js";
|
|
13
13
|
import {
|
|
14
14
|
CliValidationError
|
|
15
15
|
} from "./chunk-3ZQY7SLZ.js";
|
|
@@ -316,13 +316,14 @@ async function parseResponse(response, defaultErrorPrefix) {
|
|
|
316
316
|
}
|
|
317
317
|
return parsed;
|
|
318
318
|
}
|
|
319
|
-
async function postToMainApp(path2, body, hostOverride, authMode = "auto") {
|
|
319
|
+
async function postToMainApp(path2, body, hostOverride, authMode = "auto", headers) {
|
|
320
320
|
const rawBody = JSON.stringify(body);
|
|
321
321
|
const response = await fetchSigned({
|
|
322
322
|
method: "POST",
|
|
323
323
|
path: path2,
|
|
324
324
|
body: rawBody,
|
|
325
325
|
hostOverride,
|
|
326
|
+
headers,
|
|
326
327
|
authMode
|
|
327
328
|
});
|
|
328
329
|
return parseResponse(response, "Main app returned");
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/tracking/i18n/locale.ts
|
|
4
|
+
var VALID_LOCALES = /* @__PURE__ */ new Set(["zh", "en", "ja", "ko"]);
|
|
5
|
+
function normalize(raw) {
|
|
6
|
+
const lower = raw.trim().toLowerCase();
|
|
7
|
+
if (lower.startsWith("zh") || lower.startsWith("cn")) return "zh";
|
|
8
|
+
if (lower.startsWith("ja") || lower.startsWith("jp")) return "ja";
|
|
9
|
+
if (lower.startsWith("ko") || lower.startsWith("kr")) return "ko";
|
|
10
|
+
if (lower.startsWith("en")) return "en";
|
|
11
|
+
if (VALID_LOCALES.has(lower)) return lower;
|
|
12
|
+
return "en";
|
|
13
|
+
}
|
|
14
|
+
var _cliLocale;
|
|
15
|
+
function detectCliLocale() {
|
|
16
|
+
if (_cliLocale) return _cliLocale;
|
|
17
|
+
if (process.env.AE_LANG) {
|
|
18
|
+
_cliLocale = normalize(process.env.AE_LANG);
|
|
19
|
+
return _cliLocale;
|
|
20
|
+
}
|
|
21
|
+
const sys = (process.env.LANG || process.env.LC_ALL || process.env.LANGUAGE || "").toLowerCase();
|
|
22
|
+
if (sys) {
|
|
23
|
+
_cliLocale = normalize(sys);
|
|
24
|
+
return _cliLocale;
|
|
25
|
+
}
|
|
26
|
+
_cliLocale = "en";
|
|
27
|
+
return _cliLocale;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
detectCliLocale
|
|
32
|
+
};
|
|
@@ -418,10 +418,12 @@ function onboardingGrowthScenario(value) {
|
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
// src/core/website-entry.ts
|
|
421
|
-
var LOGIN_PATHS = { jp: "/jp/experience-login/", kr: "/kr/experience-login/", us: "/en/experience-login/" };
|
|
421
|
+
var LOGIN_PATHS = { jp: "/jp/experience-login/", kr: "/kr/experience-login/", us: "/en/experience-login/", cn: "/experience-login/" };
|
|
422
422
|
var WEBSITE_MARKETS = Object.keys(LOGIN_PATHS);
|
|
423
423
|
var PRODUCTION_ISSUER = "https://thinkingai.io";
|
|
424
424
|
var PRODUCTION_BROWSER_ORIGIN = "https://www.thinkingai.io";
|
|
425
|
+
var CHINA_PRODUCTION_ORIGIN = "https://www.thinkingai.cn";
|
|
426
|
+
var UNSUPPORTED_MARKET = "Website onboarding is available in China, Japan, South Korea, and the United States. Use --region cn, jp, kr, or us.";
|
|
425
427
|
function isWebsiteMarket(market) {
|
|
426
428
|
return Object.hasOwn(LOGIN_PATHS, market);
|
|
427
429
|
}
|
|
@@ -432,11 +434,11 @@ function websiteEnvironment(value, env = process.env) {
|
|
|
432
434
|
}
|
|
433
435
|
function websiteOrigin(market, environment) {
|
|
434
436
|
websiteEnvironment(environment, {});
|
|
435
|
-
if (!isWebsiteMarket(market)) throw new Error(
|
|
436
|
-
return PRODUCTION_ISSUER;
|
|
437
|
+
if (!isWebsiteMarket(market)) throw new Error(UNSUPPORTED_MARKET);
|
|
438
|
+
return market === "cn" ? CHINA_PRODUCTION_ORIGIN : PRODUCTION_ISSUER;
|
|
437
439
|
}
|
|
438
440
|
function isProductionWebsiteOrigin(origin) {
|
|
439
|
-
return origin === PRODUCTION_ISSUER || origin === PRODUCTION_BROWSER_ORIGIN;
|
|
441
|
+
return origin === PRODUCTION_ISSUER || origin === PRODUCTION_BROWSER_ORIGIN || origin === CHINA_PRODUCTION_ORIGIN;
|
|
440
442
|
}
|
|
441
443
|
function environmentForWebsiteOrigin(origin) {
|
|
442
444
|
if (isProductionWebsiteOrigin(origin)) return "production";
|
|
@@ -470,8 +472,9 @@ function withCliEntryContext(value, source, market, toolReference) {
|
|
|
470
472
|
}
|
|
471
473
|
function websiteLoginUrl(market, environment, source, toolReference) {
|
|
472
474
|
websiteEnvironment(environment, {});
|
|
473
|
-
if (!isWebsiteMarket(market)) throw new Error(
|
|
474
|
-
|
|
475
|
+
if (!isWebsiteMarket(market)) throw new Error(UNSUPPORTED_MARKET);
|
|
476
|
+
const origin = market === "cn" ? CHINA_PRODUCTION_ORIGIN : PRODUCTION_BROWSER_ORIGIN;
|
|
477
|
+
return withCliEntryContext(`${origin}${LOGIN_PATHS[market]}`, source, market, toolReference);
|
|
475
478
|
}
|
|
476
479
|
|
|
477
480
|
// src/core/host-guidance.ts
|
|
@@ -493,17 +496,15 @@ function registrationMarket(language) {
|
|
|
493
496
|
}
|
|
494
497
|
function aeRegistrationUrl(language, env = process.env, source) {
|
|
495
498
|
const market = registrationMarket(registrationLanguage(language, env));
|
|
496
|
-
if (!isWebsiteMarket(market)) return void 0;
|
|
497
499
|
const tool = cliEntrySource(source, env);
|
|
498
500
|
return websiteLoginUrl(market, "production", tool, cliToolReference(tool, env));
|
|
499
501
|
}
|
|
500
|
-
var CHINA_WEBSITE_ONBOARDING_UNAVAILABLE = "Website signup for CLI onboarding is currently unavailable in China.";
|
|
501
502
|
var AE_HOST_SETUP_COMMAND = "ae-cli config set-host <url>";
|
|
502
503
|
function missingAeHostHint(additionalAction) {
|
|
503
504
|
const registration = aeRegistrationUrl();
|
|
504
505
|
const actions = [
|
|
505
506
|
`If your organization already uses AgenticEngine, ask your administrator for its AE URL, then run: ${AE_HOST_SETUP_COMMAND} and ae-cli auth login --host <url>. Keep your existing account's environment.`,
|
|
506
|
-
|
|
507
|
+
`To register or sign in, visit ${registration}, or run ae-cli analysis onboarding run for guided setup.`
|
|
507
508
|
];
|
|
508
509
|
if (additionalAction) actions.push(additionalAction);
|
|
509
510
|
return actions.join(" ");
|
|
@@ -513,9 +514,10 @@ function missingAeHostGuidance() {
|
|
|
513
514
|
return {
|
|
514
515
|
configure_host: AE_HOST_SETUP_COMMAND,
|
|
515
516
|
existing_customer: "Use the original AE environment URL when known, or ask your administrator.",
|
|
516
|
-
// Legacy alias for the
|
|
517
|
-
request_trial_url: registration
|
|
518
|
-
|
|
517
|
+
// Legacy alias for the official website registration URL.
|
|
518
|
+
request_trial_url: registration,
|
|
519
|
+
registration_login_url: registration,
|
|
520
|
+
onboarding_command: "ae-cli analysis onboarding run"
|
|
519
521
|
};
|
|
520
522
|
}
|
|
521
523
|
|
|
@@ -538,8 +540,7 @@ var skill_businesses_default = {
|
|
|
538
540
|
"ae-generate-tracking-plan",
|
|
539
541
|
"ae-metadata",
|
|
540
542
|
"ae-migrate-tracking-code",
|
|
541
|
-
"ae-onboarding"
|
|
542
|
-
"ae-tracking-matrix"
|
|
543
|
+
"ae-onboarding"
|
|
543
544
|
],
|
|
544
545
|
dataops: [
|
|
545
546
|
"ae-dataops"
|
|
@@ -1716,7 +1717,7 @@ async function readBusinessConfigForExecution(hostOverride, synchronizeSkills =
|
|
|
1716
1717
|
const token = peekCliToken(host);
|
|
1717
1718
|
if (!token) return {};
|
|
1718
1719
|
return await resolveBusinessConfig(host, token, async () => {
|
|
1719
|
-
const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-
|
|
1720
|
+
const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-7VBBE7KO.js");
|
|
1720
1721
|
return fetchCliConfig2(host, token);
|
|
1721
1722
|
}, Date.now(), synchronizeSkills);
|
|
1722
1723
|
} catch {
|
|
@@ -1973,13 +1974,12 @@ function runInstallation(options = {}) {
|
|
|
1973
1974
|
const localLanguage = localRegistrationLanguage(env);
|
|
1974
1975
|
const language = localLanguage ?? "en-US";
|
|
1975
1976
|
const market = registrationMarket(language);
|
|
1976
|
-
const websiteOnboarding = isWebsiteMarket(market);
|
|
1977
1977
|
if (guideAccountSetup) {
|
|
1978
1978
|
if (localLanguage) report.local_language = localLanguage;
|
|
1979
1979
|
report.next_steps.push("If the user only requested installation, report the verified version and Skill count and finish.");
|
|
1980
1980
|
if (report.auth.authenticated === true) report.next_action = "continue_using_ae";
|
|
1981
1981
|
else if (report.auth.warnings.length > 0) report.next_action = "check_authentication";
|
|
1982
|
-
else
|
|
1982
|
+
else report.next_action = "choose_account";
|
|
1983
1983
|
}
|
|
1984
1984
|
if (report.auth.authenticated === true) {
|
|
1985
1985
|
report.next_steps.push("You are signed in. Continue your AE task in this AI tool using the existing environment.");
|
|
@@ -1994,12 +1994,12 @@ function runInstallation(options = {}) {
|
|
|
1994
1994
|
if (chooseAccount || !report.auth.host) {
|
|
1995
1995
|
const source = cliEntrySource(void 0, env);
|
|
1996
1996
|
const registration = aeRegistrationUrl(language, env, source);
|
|
1997
|
-
if (
|
|
1997
|
+
if (chooseAccount) {
|
|
1998
1998
|
report.next_steps.push(`For website onboarding, run ae-cli analysis onboarding run --language ${language} --source ${source} --browser system --format json. Pass --region for the user's requested market. The CLI opens the system default browser. If it cannot open the page, share the returned login_url for that browser. Read the returned skill_path and continue with its session_id. For manual signup outside the guided session, use ${registration}.`);
|
|
1999
|
-
} else
|
|
1999
|
+
} else {
|
|
2000
2000
|
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.`);
|
|
2001
2001
|
}
|
|
2002
|
-
report.next_steps.push(`The default new-account region is ${market}. Use the user's explicit market when supplied. If the local language and the request language suggest different markets, offer exactly those two markets. For Chinese and English, offer China and the United States. Website onboarding supports --region jp|kr|us.
|
|
2002
|
+
report.next_steps.push(`The default new-account region is ${market}. Use the user's explicit market when supplied. If the local language and the request language suggest different markets, offer exactly those two markets. For Chinese and English, offer China and the United States. Website onboarding supports --region cn|jp|kr|us. Language does not change an existing account's environment.`);
|
|
2003
2003
|
}
|
|
2004
2004
|
if (chooseAccount) report.next_steps.push("Existing AE users: confirm their original AE environment URL and use it for login. Ask for that URL if it is unknown.");
|
|
2005
2005
|
else if (!report.auth.host) report.next_steps.push("Existing AE users: use your original environment URL, or ask your administrator.");
|
|
@@ -2679,7 +2679,6 @@ export {
|
|
|
2679
2679
|
registrationLanguage,
|
|
2680
2680
|
registrationMarket,
|
|
2681
2681
|
aeRegistrationUrl,
|
|
2682
|
-
CHINA_WEBSITE_ONBOARDING_UNAVAILABLE,
|
|
2683
2682
|
missingAeHostHint,
|
|
2684
2683
|
missingAeHostGuidance,
|
|
2685
2684
|
businessForCommand,
|