@thinkingai/ae-cli 6.1.33 → 6.1.35
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 +2 -2
- package/README.zh.md +2 -6
- package/cli-installation-guide.md +18 -4
- package/dist/{ai-monitor-OHTSU6SV.js → ai-monitor-TVRFVZBH.js} +10 -9
- package/dist/ai-monitor.js +17 -16
- package/dist/{auth-2MOK4OI6.js → auth-JAXLMPBB.js} +25 -317
- package/dist/{automation-6L6IAYRK.js → automation-OQ647CSW.js} +7 -6
- package/dist/{capability-EMIHQJA3.js → capability-2Z4ZXTPD.js} +18 -16
- package/dist/chunk-2H3SFJE3.js +344 -0
- package/dist/{chunk-RC3PPCYD.js → chunk-3PZNM5KN.js} +3 -3
- package/dist/chunk-3ZQY7SLZ.js +147 -0
- package/dist/{chunk-NNK3JBH4.js → chunk-6E6HCTP2.js} +2 -2
- package/dist/{local-data-upload-client-YTWMAAGE.js → chunk-6IUTXRAD.js} +32 -4
- package/dist/{chunk-VLOGOM7N.js → chunk-CYZV5AXW.js} +8 -5
- package/dist/{chunk-O45NOIWR.js → chunk-DE5XHQQ6.js} +2 -2
- package/dist/{chunk-KD5UC33N.js → chunk-E5CJI7L3.js} +7 -5
- package/dist/{chunk-UCMO4LKL.js → chunk-EQMGH32F.js} +2 -2
- package/dist/{chunk-E3ONSFUN.js → chunk-FNACCKQR.js} +211 -12
- package/dist/{chunk-2I5SZ5DS.js → chunk-GD5JSAGV.js} +2 -2
- package/dist/{chunk-EFGUBGA6.js → chunk-GYODT7C4.js} +1 -1
- package/dist/chunk-HBI7IQH3.js +1207 -0
- package/dist/{chunk-AMURHMS3.js → chunk-IGU3R2JD.js} +4 -4
- package/dist/{chunk-YE6MJB5V.js → chunk-IWMDPHMI.js} +3 -3
- package/dist/{chunk-LFJ7N36I.js → chunk-L7MT53VM.js} +5 -3
- package/dist/{chunk-HIMOBNEY.js → chunk-LXRALNNA.js} +2 -2
- package/dist/{chunk-BQFLABJQ.js → chunk-M2OCZRVX.js} +7 -5
- package/dist/{chunk-R2SVAO4G.js → chunk-MTK4ZE7W.js} +3 -143
- package/dist/{chunk-7DHSB3FL.js → chunk-NK5PS5X7.js} +3 -3
- package/dist/{chunk-HQED4YB4.js → chunk-NPH5J65M.js} +1 -1
- package/dist/{chunk-EWVEAERM.js → chunk-Q764EZND.js} +78 -72
- package/dist/chunk-QOJXLXDJ.js +55 -0
- package/dist/{chunk-THTROEGD.js → chunk-QPUPWGZ3.js} +1 -1
- package/dist/{chunk-XZDKAR4N.js → chunk-RLPMXKDQ.js} +8921 -10119
- package/dist/{chunk-DWAG2QJM.js → chunk-S74XV3A6.js} +4 -4
- package/dist/{chunk-COOMXFUG.js → chunk-SHB7A2JE.js} +3 -3
- package/dist/{chunk-PLNS5J33.js → chunk-UWQXGF44.js} +17 -9
- package/dist/{data-integration-UNJ7EPW2.js → chunk-V6UKLIM6.js} +160 -2258
- package/dist/{chunk-4IQYPWCX.js → chunk-VPLRZSMY.js} +18 -10
- package/dist/{chunk-KA5WKR5P.js → chunk-Z6WSCIHM.js} +2 -2
- package/dist/{community-report-client-ULRNXLQV.js → community-report-client-5VNT6HCV.js} +4 -2
- package/dist/{compat-check-CADG7GND.js → compat-check-E7AQ7UCG.js} +5 -4
- package/dist/{config-PFD3KWQG.js → config-PGSUWIK5.js} +15 -11
- package/dist/{context-SOQDFZIB.js → context-Y2A6QIS3.js} +5 -4
- package/dist/conversion-4FR3RA45.js +16 -0
- package/dist/data-integration-EIF5QHYF.js +2138 -0
- package/dist/{evaluation-Q3AIGFOG.js → evaluation-OZM54MES.js} +6 -5
- package/dist/index.js +74 -51
- package/dist/local-data-upload-client-2U3LFD7Z.js +16 -0
- package/dist/{memory-HKNGUIPK.js → memory-6QMZS4HF.js} +7 -6
- package/dist/{metadata-GFWR5ZHC.js → metadata-7MZ3CJ2N.js} +10 -9
- package/dist/{model-NAKQWK4W.js → model-LEYRQKOS.js} +8 -7
- package/dist/{personal-semantic-preference-JCTKXLC3.js → personal-semantic-preference-SWOUNDWJ.js} +9 -8
- package/dist/{project-semantic-B2NWQOKK.js → project-semantic-M2DDPAMD.js} +9 -8
- package/dist/{sync-UQH4J4BD.js → sync-PWC63JCO.js} +16 -15
- package/dist/{te-agent-L6EYFQCC.js → te-agent-S7UH657Z.js} +11 -9
- package/dist/{te-analysis-U7NNOY66.js → te-analysis-BK6PE333.js} +281 -214
- package/dist/{te-community-3UQEW3KD.js → te-community-OLNTKGCW.js} +12 -10
- package/dist/{te-dataops-SUNYXF5G.js → te-dataops-XUWRIF5R.js} +12 -10
- package/dist/{te-engage-KMXZJ2KN.js → te-engage-I3I4FJOM.js} +9 -8
- package/dist/{te-experiment-IEYKP6VC.js → te-experiment-XSDUL4KH.js} +9 -8
- package/dist/{te-kb-MT3V5ZMH.js → te-kb-QFH3YLFQ.js} +15 -13
- package/dist/{te-system-F4ZU2HRQ.js → te-system-DB5Z3LLF.js} +7 -6
- package/dist/{te-team-M6E6XQ5H.js → te-team-UADF2HBO.js} +9 -8
- package/dist/{things-FRLBZV2Z.js → things-G2QFXDK7.js} +9 -8
- package/dist/{update-NULYHVE6.js → update-6I366ICW.js} +7 -8
- package/dist/web-runtime-3XFREWRF.js +2367 -0
- package/dist/{workspace-Z7L33OBQ.js → workspace-RZESYB6T.js} +7 -6
- package/package.json +4 -3
- package/skills/ae-analysis/SKILL.md +1 -1
- package/skills/ae-data-integration/references/ue-mapping.md +2 -0
- package/skills/ae-onboarding/SKILL.md +64 -0
- package/skills/ae-onboarding/references/business-sdk.md +8 -0
- package/skills/ae-onboarding/references/demo-operations.md +79 -0
- package/skills/ae-onboarding/references/import.md +19 -0
- package/skills/ae-onboarding/references/onboarding_experiment_launch.md +12 -0
- package/skills/ae-onboarding/references/onboarding_experiment_plan.md +14 -0
- package/skills/ae-onboarding/references/onboarding_growth.md +36 -0
- package/skills/ae-onboarding/references/onboarding_run.md +11 -0
- package/skills/ae-onboarding/references/onboarding_status.md +5 -0
- package/skills/ae-onboarding/scripts/experiment-preset.json +252 -0
- package/skills/ae-onboarding/scripts/experiment-requests.mjs +120 -0
- package/skills/ae-onboarding/scripts/generate.mjs +170 -0
- package/skills/ae-onboarding/scripts/resolve-experiment-preset.mjs +26 -0
- package/skills/ae-onboarding/scripts/web-journey.mjs +39 -0
- package/dist/chunk-6ZIQV5GW.js +0 -26
package/README.md
CHANGED
|
@@ -20,8 +20,6 @@ The CLI is designed around:
|
|
|
20
20
|
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
23
|
-
For setup through Codex, Claude Code, Cursor, or another terminal-capable AI Agent, see the [AE CLI installation and upgrade guide](./cli-installation-guide.md).
|
|
24
|
-
|
|
25
23
|
Install the public CLI and Agent Skills:
|
|
26
24
|
|
|
27
25
|
```bash
|
|
@@ -31,6 +29,8 @@ npx @thinkingai/ae-cli@latest install --format json
|
|
|
31
29
|
|
|
32
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).
|
|
33
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)
|
|
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
|
|
|
36
36
|
Install optional, approved scenario Skills with an interactive category picker:
|
package/README.zh.md
CHANGED
|
@@ -20,12 +20,6 @@ CLI 的核心设计包括:
|
|
|
20
20
|
|
|
21
21
|
## 安装
|
|
22
22
|
|
|
23
|
-
如果你希望由 Codex、Claude Code、Cursor 等 AI Agent 自动检查 Node.js、安装 CLI、完成登录并同步匹配版本,请让 Agent 阅读并执行 [AE CLI Installation and Upgrade](./cli-installation-guide.md)。
|
|
24
|
-
|
|
25
|
-
可直接复制给 Agent,并把 `<AE_HOST>` 替换为你的 AE 地址:
|
|
26
|
-
|
|
27
|
-
> 请按[安装指南](./cli-installation-guide.md)中的“AI installation prompt”帮助我安装 AE CLI;全局安装 Skills,并根据最终 CLI/Skills 验证结果判断成功。
|
|
28
|
-
|
|
29
23
|
安装公开版 CLI 和 Agent Skills:
|
|
30
24
|
|
|
31
25
|
```bash
|
|
@@ -35,6 +29,8 @@ npx @thinkingai/ae-cli@latest install --format json
|
|
|
35
29
|
|
|
36
30
|
安装器检查 Node.js 20+、安装并验证 CLI,再通过内置的 Skills 工具向支持的客户端安装同版本全局 Skills。首次安装且尚无已确认业务状态时安装全量内置 Skills。支持 `--dry-run`、`--format json` 和可选的 `--host <AE_HOST>`。未登录不算安装失败。详见[安装指南](./cli-installation-guide.md)。
|
|
37
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)
|
|
33
|
+
|
|
38
34
|
Skills 会帮助 Claude Code、Codex、Cursor 等编码 Agent 理解、发现并调用 `ae-cli`。
|
|
39
35
|
|
|
40
36
|
按业务分类交互安装可选的已准出场景 Skill:
|
|
@@ -43,6 +43,20 @@ Each `commands` array describes the current installation plan; `skillsSources` l
|
|
|
43
43
|
|
|
44
44
|
The managed synchronizer uses the verified package source. Replaying historical GitHub fallback or `skills add --copy` commands would bypass business selection and copy protection.
|
|
45
45
|
|
|
46
|
+
## Start using AE in an Agent
|
|
47
|
+
|
|
48
|
+
For a request such as “Install AE CLI” or “Follow this guide to install AE CLI,” verify the installation and proactively show the next step in the same conversation. 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. If the user already has a verified installation and asks to start using AE, begin at step 2.
|
|
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. For an explicit install-only request, 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. Read the optional `next_action` in the install report. 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. Show the next step using the rules below. Apply them to ordinary installation requests even if the install report's `next_steps` describes the picker only for users who ask to get started.
|
|
53
|
+
- If the user explicitly asks to sign in to an existing account and the requested environment needs authorization, use step 5.
|
|
54
|
+
- If the user is already signed in to the intended environment (`continue_using_ae` or confirmed by the auth check), use that environment for their AE task or tell them it is ready and ask what they want to do next.
|
|
55
|
+
- If the user is signed out and explicitly asks for onboarding, a walkthrough, or signup, go directly to step 4.
|
|
56
|
+
- If the user is signed out and has left the next step open, ask **“What would you like to do next?”** using the Agent's native picker. Offer **“Get started”** (step 4), **“Sign in to my existing account”** (step 5), and **“Not now”** (finish). For a confirmed China market, show **“Request a trial”** (step 4) in place of **“Get started.”** Use equivalent chat choices if the picker is unavailable. Wait for the user's choice before starting signup or login.
|
|
57
|
+
4. Use the user's stated or previously confirmed account market. Ask for the market if it is unclear. For Japan, 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` and `--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. For China, share the [AE trial request page](https://thinkingai.cn/request-demo).
|
|
58
|
+
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.
|
|
59
|
+
|
|
46
60
|
## Host and login
|
|
47
61
|
|
|
48
62
|
`--host` is optional. It delegates status checks to the existing auth command; it does not independently save credentials or change the active host. Being logged out does not make a verified installation fail.
|
|
@@ -51,7 +65,7 @@ The managed synchronizer uses the verified package source. Replaying historical
|
|
|
51
65
|
ae-cli auth login --host <AE_HOST> --no-wait
|
|
52
66
|
```
|
|
53
67
|
|
|
54
|
-
|
|
68
|
+
Open the returned `verification_url` in the system default browser once. In an Agent, use its native picker for **“I approved CLI access”** or **“I need help authorizing the CLI.”** If opening fails, give the user the link. After the user confirms, run these commands in the same turn.
|
|
55
69
|
|
|
56
70
|
```bash
|
|
57
71
|
ae-cli auth login --host <AE_HOST> --device-code <DEVICE_CODE>
|
|
@@ -101,12 +115,12 @@ The newer command orchestrates the work; the installed target remains the host-r
|
|
|
101
115
|
Prefer the unified installer. For a specific client or source diagnosis, advanced users can still invoke the external Skills tool directly:
|
|
102
116
|
|
|
103
117
|
```bash
|
|
104
|
-
npx -y skills@1.5.12 add <INSTALLED_CLI_SKILLS_PATH> -g -y --agent codex
|
|
118
|
+
npx -y skills@1.5.12 add <INSTALLED_CLI_SKILLS_PATH> -g -y --agent codex --skill ae-analysis
|
|
105
119
|
npx -y skills@1.5.12 list -g --json
|
|
106
120
|
```
|
|
107
121
|
|
|
108
|
-
Raw manual-tool output is not the AE installer's final result. Do not infer completeness from the list alone, delete unrelated Skills, or overwrite a source link to resolve a conflict.
|
|
122
|
+
Choose the specific Skill you are troubleshooting. The onboarding Skill is loaded from the CLI package when a new user starts onboarding. Raw manual-tool output is not the AE installer's final result. Do not infer completeness from the list alone, delete unrelated Skills, or overwrite a source link to resolve a conflict.
|
|
109
123
|
|
|
110
124
|
## AI installation prompt
|
|
111
125
|
|
|
112
|
-
> Install AE CLI and its matching Skills
|
|
126
|
+
> 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. After verifying the installation, report the version and Skill count and show me the next step in this conversation using [Start using AE in an Agent](#start-using-ae-in-an-agent).
|
|
@@ -9,17 +9,18 @@ import {
|
|
|
9
9
|
traceCount,
|
|
10
10
|
traceGet,
|
|
11
11
|
traceList
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-IWMDPHMI.js";
|
|
13
|
+
import "./chunk-3PZNM5KN.js";
|
|
14
14
|
import "./chunk-AWW2T2WL.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-DE5XHQQ6.js";
|
|
16
|
+
import "./chunk-VPLRZSMY.js";
|
|
17
|
+
import "./chunk-6E6HCTP2.js";
|
|
18
|
+
import "./chunk-FNACCKQR.js";
|
|
19
19
|
import "./chunk-PUSFEC6B.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-UWQXGF44.js";
|
|
21
|
+
import "./chunk-IGU3R2JD.js";
|
|
22
|
+
import "./chunk-MTK4ZE7W.js";
|
|
23
|
+
import "./chunk-3ZQY7SLZ.js";
|
|
23
24
|
export {
|
|
24
25
|
conversationCount,
|
|
25
26
|
conversationGet,
|
package/dist/ai-monitor.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
ai_monitor_default
|
|
4
|
+
} from "./chunk-IWMDPHMI.js";
|
|
5
|
+
import "./chunk-3PZNM5KN.js";
|
|
6
|
+
import "./chunk-AWW2T2WL.js";
|
|
2
7
|
import {
|
|
3
8
|
configureBusinessCommands,
|
|
4
9
|
parseProgram,
|
|
5
10
|
runCommand
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-AWW2T2WL.js";
|
|
15
|
-
import "./chunk-O45NOIWR.js";
|
|
16
|
-
import "./chunk-4IQYPWCX.js";
|
|
17
|
-
import "./chunk-NNK3JBH4.js";
|
|
18
|
-
import "./chunk-E3ONSFUN.js";
|
|
11
|
+
} from "./chunk-Q764EZND.js";
|
|
12
|
+
import "./chunk-GYODT7C4.js";
|
|
13
|
+
import "./chunk-L7MT53VM.js";
|
|
14
|
+
import "./chunk-DE5XHQQ6.js";
|
|
15
|
+
import "./chunk-CYZV5AXW.js";
|
|
16
|
+
import "./chunk-VPLRZSMY.js";
|
|
17
|
+
import "./chunk-6E6HCTP2.js";
|
|
18
|
+
import "./chunk-FNACCKQR.js";
|
|
19
19
|
import "./chunk-PUSFEC6B.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-UWQXGF44.js";
|
|
21
|
+
import "./chunk-IGU3R2JD.js";
|
|
22
22
|
import {
|
|
23
23
|
readExternalCliToken,
|
|
24
24
|
setExternalCliTokenFile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
26
|
+
import "./chunk-3ZQY7SLZ.js";
|
|
26
27
|
|
|
27
28
|
// src/ai-monitor.ts
|
|
28
29
|
import { Command as CommanderCommand, Option } from "commander";
|
|
@@ -3,25 +3,32 @@ import {
|
|
|
3
3
|
environmentRefreshOutput,
|
|
4
4
|
invalidateBusinessSkillSynchronization,
|
|
5
5
|
refreshEnvironmentAfterLogin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S74XV3A6.js";
|
|
7
7
|
import {
|
|
8
8
|
MultiselectCancelled,
|
|
9
9
|
promptSingleSelect
|
|
10
10
|
} from "./chunk-7K24F7T2.js";
|
|
11
|
-
import {
|
|
12
|
-
missingAeHostGuidance,
|
|
13
|
-
missingAeHostHint
|
|
14
|
-
} from "./chunk-6ZIQV5GW.js";
|
|
15
11
|
import {
|
|
16
12
|
resolveHost
|
|
17
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Z6WSCIHM.js";
|
|
18
14
|
import {
|
|
19
15
|
printError,
|
|
20
16
|
printOutput
|
|
21
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DE5XHQQ6.js";
|
|
18
|
+
import {
|
|
19
|
+
DeviceFlowUnsupportedError,
|
|
20
|
+
authorizeLoginDevice,
|
|
21
|
+
buildVerificationUrl,
|
|
22
|
+
pollDeviceFlow,
|
|
23
|
+
resolveDeviceSessionRoute,
|
|
24
|
+
resolveLegacyLoginBase,
|
|
25
|
+
runDeviceFlow
|
|
26
|
+
} from "./chunk-2H3SFJE3.js";
|
|
22
27
|
import {
|
|
28
|
+
missingAeHostGuidance,
|
|
29
|
+
missingAeHostHint,
|
|
23
30
|
runHostCompatCheck
|
|
24
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FNACCKQR.js";
|
|
25
32
|
import {
|
|
26
33
|
getLocalCliPackageInfo
|
|
27
34
|
} from "./chunk-PUSFEC6B.js";
|
|
@@ -34,327 +41,27 @@ import {
|
|
|
34
41
|
clearAllCredentials,
|
|
35
42
|
clearCliTokenCache,
|
|
36
43
|
getActiveCredential,
|
|
37
|
-
internalCallSourceHeaders,
|
|
38
44
|
listCredentials,
|
|
39
45
|
mintCliToken,
|
|
40
46
|
removeActiveCredential,
|
|
41
47
|
saveCredential,
|
|
42
48
|
updateCredentialMetadata,
|
|
43
49
|
validateCliTokenOnServer
|
|
44
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-UWQXGF44.js";
|
|
45
51
|
import {
|
|
46
52
|
getFallbackCliToken,
|
|
47
53
|
loadConfig,
|
|
48
54
|
saveConfig
|
|
49
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-IGU3R2JD.js";
|
|
50
56
|
import {
|
|
51
57
|
ExternalCliTokenError,
|
|
52
|
-
PermissionError,
|
|
53
58
|
logger,
|
|
54
59
|
normalizeUrl,
|
|
55
60
|
readExternalCliToken
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
function deviceApiPath(protocol, action) {
|
|
61
|
-
return protocol === "uba" ? `/v1/ta/cli/auth/device/${action}` : `/api/auth/device/${action}`;
|
|
62
|
-
}
|
|
63
|
-
function ubaAuthorizationDenial(code) {
|
|
64
|
-
if (code === "CLI_ACCESS_DISABLED") return {
|
|
65
|
-
code,
|
|
66
|
-
message: "CLI access is disabled for this account.",
|
|
67
|
-
hint: "Contact your administrator."
|
|
68
|
-
};
|
|
69
|
-
if (code === "ACCOUNT_UNAVAILABLE") return {
|
|
70
|
-
code,
|
|
71
|
-
message: "This account is unavailable.",
|
|
72
|
-
hint: "Contact your administrator or sign in with an active account."
|
|
73
|
-
};
|
|
74
|
-
if (code === "ORIGIN_DENIED") return {
|
|
75
|
-
code,
|
|
76
|
-
message: "Authorization must be approved from the trusted platform page.",
|
|
77
|
-
hint: "Open the verification URL on the configured AE host and sign in there."
|
|
78
|
-
};
|
|
79
|
-
return {
|
|
80
|
-
code: "AUTHORIZATION_DENIED",
|
|
81
|
-
message: "Device authorization was denied.",
|
|
82
|
-
hint: "Check your account status with your administrator before requesting authorization again."
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
var DeviceFlowUnsupportedError = class extends Error {
|
|
86
|
-
constructor(httpStatus) {
|
|
87
|
-
super("This AE server does not support device code login (it may be an older server version).");
|
|
88
|
-
this.httpStatus = httpStatus;
|
|
89
|
-
this.name = "DeviceFlowUnsupportedError";
|
|
90
|
-
}
|
|
91
|
-
httpStatus;
|
|
92
|
-
};
|
|
93
|
-
function looksLikeMissingEndpoint(status, contentType, body) {
|
|
94
|
-
if (status === 404) return true;
|
|
95
|
-
if (contentType && contentType.toLowerCase().includes("text/html")) return true;
|
|
96
|
-
const head = body.trimStart().toLowerCase();
|
|
97
|
-
return head.startsWith("<!doctype html") || head.startsWith("<html");
|
|
98
|
-
}
|
|
99
|
-
function openBrowser(url, _execFile) {
|
|
100
|
-
let parsedUrl;
|
|
101
|
-
try {
|
|
102
|
-
parsedUrl = new URL(url);
|
|
103
|
-
} catch {
|
|
104
|
-
logger.warn(`openBrowser: invalid URL, not opening`);
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
if (!["http:", "https:"].includes(parsedUrl.protocol)) {
|
|
108
|
-
logger.warn(`openBrowser: unsafe protocol "${parsedUrl.protocol}", not opening`);
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
const safeLogUrl = `${parsedUrl.origin}${parsedUrl.pathname}`;
|
|
112
|
-
const exec = _execFile ?? execFileSync;
|
|
113
|
-
try {
|
|
114
|
-
if (process.platform === "darwin") {
|
|
115
|
-
exec("open", [url], { timeout: 5e3 });
|
|
116
|
-
return true;
|
|
117
|
-
}
|
|
118
|
-
if (process.platform === "win32") {
|
|
119
|
-
exec("cmd", ["/c", "start", "", url], { timeout: 5e3 });
|
|
120
|
-
return true;
|
|
121
|
-
}
|
|
122
|
-
exec("xdg-open", [url], { timeout: 5e3 });
|
|
123
|
-
return true;
|
|
124
|
-
} catch (e) {
|
|
125
|
-
logger.warn(`openBrowser: failed to open ${safeLogUrl}`);
|
|
126
|
-
return false;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
async function authorizeDevice(host, protocol = "legacy") {
|
|
130
|
-
const base = host.replace(/\/+$/, "");
|
|
131
|
-
const url = `${base}${deviceApiPath(protocol, "authorize")}`;
|
|
132
|
-
let resp;
|
|
133
|
-
try {
|
|
134
|
-
resp = await fetch(url, {
|
|
135
|
-
method: "POST",
|
|
136
|
-
headers: {
|
|
137
|
-
"Content-Type": "application/json",
|
|
138
|
-
...internalCallSourceHeaders(),
|
|
139
|
-
...protocol === "uba" ? { "X-CLI-Verification-Origin": new URL(host).origin } : {}
|
|
140
|
-
},
|
|
141
|
-
redirect: "error",
|
|
142
|
-
signal: AbortSignal.timeout(1e4)
|
|
143
|
-
});
|
|
144
|
-
} catch (e) {
|
|
145
|
-
throw new Error("Device authorize request failed. Check the AE host and network, then retry.");
|
|
146
|
-
}
|
|
147
|
-
const contentType = resp.headers.get("content-type");
|
|
148
|
-
const text = await resp.text().catch(() => "");
|
|
149
|
-
if (looksLikeMissingEndpoint(resp.status, contentType, text)) {
|
|
150
|
-
throw new DeviceFlowUnsupportedError(resp.status);
|
|
151
|
-
}
|
|
152
|
-
if (!resp.ok) {
|
|
153
|
-
if (resp.status === 403) {
|
|
154
|
-
if (protocol === "uba") {
|
|
155
|
-
let code;
|
|
156
|
-
try {
|
|
157
|
-
code = JSON.parse(text)?.code;
|
|
158
|
-
} catch {
|
|
159
|
-
}
|
|
160
|
-
const denial = ubaAuthorizationDenial(code);
|
|
161
|
-
throw new PermissionError(denial.message, denial.code, denial.hint);
|
|
162
|
-
}
|
|
163
|
-
throw new PermissionError("CLI authorization is not allowed.", "CLI_ACCESS_DISABLED", "Contact your administrator.");
|
|
164
|
-
}
|
|
165
|
-
throw new Error(`Device authorize returned HTTP ${resp.status}`);
|
|
166
|
-
}
|
|
167
|
-
let body;
|
|
168
|
-
try {
|
|
169
|
-
body = JSON.parse(text);
|
|
170
|
-
} catch {
|
|
171
|
-
throw new Error("Device authorize returned invalid JSON");
|
|
172
|
-
}
|
|
173
|
-
if (typeof body.device_code !== "string" || !body.device_code || typeof body.user_code !== "string" || !body.user_code) {
|
|
174
|
-
throw new Error("Device authorize response missing required fields");
|
|
175
|
-
}
|
|
176
|
-
if (protocol === "uba" && (!Number.isInteger(body.expires_in) || body.expires_in < 1 || body.expires_in > 300 || !Number.isInteger(body.interval) || body.interval < 1 || body.interval > body.expires_in)) {
|
|
177
|
-
throw new Error("UBA authorization returned invalid polling limits. Check the server deployment.");
|
|
178
|
-
}
|
|
179
|
-
return body;
|
|
180
|
-
}
|
|
181
|
-
async function pollDeviceToken(host, deviceCode, protocol = "legacy") {
|
|
182
|
-
const base = host.replace(/\/+$/, "");
|
|
183
|
-
const url = `${base}${deviceApiPath(protocol, "token")}`;
|
|
184
|
-
let resp;
|
|
185
|
-
try {
|
|
186
|
-
resp = await fetch(url, {
|
|
187
|
-
method: "POST",
|
|
188
|
-
headers: { "Content-Type": "application/json", ...internalCallSourceHeaders() },
|
|
189
|
-
body: JSON.stringify({ device_code: deviceCode }),
|
|
190
|
-
redirect: "error",
|
|
191
|
-
signal: AbortSignal.timeout(1e4)
|
|
192
|
-
});
|
|
193
|
-
} catch (e) {
|
|
194
|
-
return { status: "error", message: "Network error while polling authorization." };
|
|
195
|
-
}
|
|
196
|
-
if (resp.status === 200) {
|
|
197
|
-
let body;
|
|
198
|
-
try {
|
|
199
|
-
body = await resp.json();
|
|
200
|
-
} catch {
|
|
201
|
-
return { status: "error", message: "Token response is not valid JSON" };
|
|
202
|
-
}
|
|
203
|
-
if (typeof body.access_token !== "string" || !body.access_token) {
|
|
204
|
-
return { status: "error", message: "Token response missing access_token" };
|
|
205
|
-
}
|
|
206
|
-
return { status: "approved", tokens: body };
|
|
207
|
-
}
|
|
208
|
-
if (resp.status === 400) {
|
|
209
|
-
let errorBody;
|
|
210
|
-
try {
|
|
211
|
-
errorBody = await resp.json();
|
|
212
|
-
} catch {
|
|
213
|
-
errorBody = {};
|
|
214
|
-
}
|
|
215
|
-
const err = errorBody.error;
|
|
216
|
-
if (err === "authorization_pending") return { status: "pending" };
|
|
217
|
-
if (err === "slow_down") return { status: "slow_down" };
|
|
218
|
-
if (err === "expired_token") return { status: "expired" };
|
|
219
|
-
if (err === "access_denied") return {
|
|
220
|
-
status: "denied",
|
|
221
|
-
code: "AUTHORIZATION_DENIED",
|
|
222
|
-
message: "Device authorization was denied.",
|
|
223
|
-
hint: "Run ae-cli auth login again only when you want to request authorization."
|
|
224
|
-
};
|
|
225
|
-
return { status: "error", message: "Token endpoint returned an unrecognized authorization error." };
|
|
226
|
-
}
|
|
227
|
-
if (resp.status === 403) {
|
|
228
|
-
let errorBody = {};
|
|
229
|
-
try {
|
|
230
|
-
errorBody = await resp.json();
|
|
231
|
-
} catch {
|
|
232
|
-
}
|
|
233
|
-
if (protocol === "uba") return { status: "denied", ...ubaAuthorizationDenial(errorBody.code) };
|
|
234
|
-
return {
|
|
235
|
-
status: "denied",
|
|
236
|
-
code: errorBody.code ?? "CLI_ACCESS_DISABLED",
|
|
237
|
-
message: errorBody.message ?? errorBody.error ?? "CLI access is disabled for this account.",
|
|
238
|
-
hint: errorBody.hint
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
const contentType = resp.headers.get("content-type");
|
|
242
|
-
const text = await resp.text().catch(() => "");
|
|
243
|
-
if (looksLikeMissingEndpoint(resp.status, contentType, text)) {
|
|
244
|
-
return { status: "unsupported" };
|
|
245
|
-
}
|
|
246
|
-
return { status: "error", message: `Unexpected HTTP ${resp.status} from token endpoint` };
|
|
247
|
-
}
|
|
248
|
-
function buildVerificationUrl(host, userCode, protocol = "legacy") {
|
|
249
|
-
if (protocol === "uba") {
|
|
250
|
-
return `${host.replace(/\/+$/, "")}/#/cli/device-activate?user_code=${encodeURIComponent(userCode)}`;
|
|
251
|
-
}
|
|
252
|
-
return `${host.replace(/\/+$/, "")}/device-activate?user_code=${encodeURIComponent(userCode)}`;
|
|
253
|
-
}
|
|
254
|
-
async function pollDeviceFlow(host, deviceCode, options = {}, onStatus) {
|
|
255
|
-
const emit = (msg) => {
|
|
256
|
-
if (onStatus) onStatus(msg);
|
|
257
|
-
};
|
|
258
|
-
let intervalMs = options.intervalMs ?? 5e3;
|
|
259
|
-
const expiresIn = options.expiresIn ?? 300;
|
|
260
|
-
const deadline = Date.now() + expiresIn * 1e3;
|
|
261
|
-
let pollCount = 0;
|
|
262
|
-
while (Date.now() < deadline) {
|
|
263
|
-
await sleep(intervalMs);
|
|
264
|
-
pollCount++;
|
|
265
|
-
const result = await pollDeviceToken(host, deviceCode, options.protocol);
|
|
266
|
-
if (result.status === "approved") {
|
|
267
|
-
emit(`Authorization successful! (polled ${pollCount} time(s))`);
|
|
268
|
-
return result.tokens;
|
|
269
|
-
}
|
|
270
|
-
if (result.status === "pending") {
|
|
271
|
-
if (pollCount % 5 === 0) {
|
|
272
|
-
const remaining = Math.max(0, Math.round((deadline - Date.now()) / 1e3));
|
|
273
|
-
emit(`Waiting for authorization... (expires in ${remaining}s)`);
|
|
274
|
-
}
|
|
275
|
-
logger.info(`device-auth: poll #${pollCount} pending`);
|
|
276
|
-
continue;
|
|
277
|
-
}
|
|
278
|
-
if (result.status === "slow_down") {
|
|
279
|
-
intervalMs += 5e3;
|
|
280
|
-
logger.info(`device-auth: slow_down received, new interval=${intervalMs}ms`);
|
|
281
|
-
continue;
|
|
282
|
-
}
|
|
283
|
-
if (result.status === "expired") {
|
|
284
|
-
throw new Error(
|
|
285
|
-
`Device code has expired. Please run ae-cli auth login again to restart the authorization flow.`
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
|
-
if (result.status === "denied") {
|
|
289
|
-
throw new PermissionError(result.message, result.code, result.hint);
|
|
290
|
-
}
|
|
291
|
-
if (result.status === "unsupported") {
|
|
292
|
-
throw new DeviceFlowUnsupportedError();
|
|
293
|
-
}
|
|
294
|
-
if (result.status === "error") {
|
|
295
|
-
logger.warn(`device-auth: poll error: ${result.message}`);
|
|
296
|
-
emit(`Poll error: ${result.message}`);
|
|
297
|
-
if (result.message.includes("HTTP 401") || result.message.includes("HTTP 403")) {
|
|
298
|
-
throw new Error(`Authorization denied (${result.message}). Please check your configuration or run ae-cli auth login again.`);
|
|
299
|
-
}
|
|
300
|
-
continue;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
throw new Error(
|
|
304
|
-
`Authorization timed out (not completed within ${expiresIn}s). Please run ae-cli auth login again.`
|
|
305
|
-
);
|
|
306
|
-
}
|
|
307
|
-
async function runDeviceFlow(host, options = {}, onStatus) {
|
|
308
|
-
const emit = (msg) => {
|
|
309
|
-
if (onStatus) onStatus(msg);
|
|
310
|
-
};
|
|
311
|
-
emit("Requesting authorization code from server...");
|
|
312
|
-
const auth = options.authorization ?? await authorizeDevice(host, options.protocol);
|
|
313
|
-
const userCode = auth.user_code;
|
|
314
|
-
const verifyUrl = buildVerificationUrl(host, userCode, options.protocol);
|
|
315
|
-
const expiresIn = auth.expires_in ?? 300;
|
|
316
|
-
emit("");
|
|
317
|
-
emit(`Verification code: ${userCode}`);
|
|
318
|
-
emit(`Open the following link in your browser to complete authorization:`);
|
|
319
|
-
emit(` ${verifyUrl}`);
|
|
320
|
-
emit("");
|
|
321
|
-
if (!options.noBrowser) {
|
|
322
|
-
const opened = openBrowser(verifyUrl);
|
|
323
|
-
if (opened) {
|
|
324
|
-
emit("(Attempted to open the link in your browser)");
|
|
325
|
-
} else {
|
|
326
|
-
emit("(Could not open browser automatically; please copy the link above manually)");
|
|
327
|
-
}
|
|
328
|
-
emit("");
|
|
329
|
-
}
|
|
330
|
-
return pollDeviceFlow(host, auth.device_code, { intervalMs: (auth.interval ?? 5) * 1e3, expiresIn, protocol: options.protocol }, onStatus);
|
|
331
|
-
}
|
|
332
|
-
function sleep(ms) {
|
|
333
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
// src/core/login-device-flow.ts
|
|
337
|
-
function resolveLegacyLoginBase(host) {
|
|
338
|
-
const base = host.replace(/\/+$/, "");
|
|
339
|
-
const basePath = process.env.TE_CLAUDE_BASE_PATH || "/agent";
|
|
340
|
-
return base.endsWith(basePath) ? base : base + basePath;
|
|
341
|
-
}
|
|
342
|
-
function resolveDeviceSessionRoute(host, deviceCode) {
|
|
343
|
-
return deviceCode.startsWith("uba_") ? { baseUrl: host, protocol: "uba" } : { baseUrl: resolveLegacyLoginBase(host), protocol: "legacy" };
|
|
344
|
-
}
|
|
345
|
-
async function authorizeLoginDevice(host) {
|
|
346
|
-
try {
|
|
347
|
-
const authorization = await authorizeDevice(host, "uba");
|
|
348
|
-
if (!/^uba_[A-Za-z0-9_-]+$/.test(authorization.device_code)) {
|
|
349
|
-
throw new Error("UBA authorization returned an unsupported device-code format. Check the server deployment.");
|
|
350
|
-
}
|
|
351
|
-
return { baseUrl: host, protocol: "uba", authorization };
|
|
352
|
-
} catch (error) {
|
|
353
|
-
if (!(error instanceof DeviceFlowUnsupportedError) || error.httpStatus !== 404) throw error;
|
|
354
|
-
const baseUrl = resolveLegacyLoginBase(host);
|
|
355
|
-
return { baseUrl, protocol: "legacy", authorization: await authorizeDevice(baseUrl) };
|
|
356
|
-
}
|
|
357
|
-
}
|
|
61
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
62
|
+
import {
|
|
63
|
+
PermissionError
|
|
64
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
358
65
|
|
|
359
66
|
// src/commands/auth.ts
|
|
360
67
|
var HOST_OPTION_DESC = "Override active AE host URL (e.g., https://ta.thinkingdata.cn)";
|
|
@@ -548,11 +255,12 @@ async function switchActiveAccount(program, opts) {
|
|
|
548
255
|
}
|
|
549
256
|
async function persistDeviceTokens(host, tokens, options = {}) {
|
|
550
257
|
assertCredentialsReadable(host);
|
|
551
|
-
const cliToken = await mintCliToken(host, tokens.access_token);
|
|
258
|
+
const cliToken = await mintCliToken(host, tokens.access_token, options.signal);
|
|
552
259
|
let validation = {};
|
|
553
260
|
try {
|
|
554
|
-
validation = await validateCliTokenOnServer(host, cliToken);
|
|
261
|
+
validation = await validateCliTokenOnServer(host, cliToken, options.signal);
|
|
555
262
|
} catch (error) {
|
|
263
|
+
options.signal?.throwIfAborted();
|
|
556
264
|
if (error instanceof CliTokenValidationUnavailableError) {
|
|
557
265
|
logger.warn(`auth login: ${error.message}; saving CLI token without account metadata for compatibility`);
|
|
558
266
|
} else {
|
|
@@ -573,7 +281,7 @@ async function persistDeviceTokens(host, tokens, options = {}) {
|
|
|
573
281
|
throw error;
|
|
574
282
|
}
|
|
575
283
|
clearCliTokenCache(host);
|
|
576
|
-
await runHostCompatCheck(getLocalCliPackageInfo(), host);
|
|
284
|
+
if (options.checkCompatibility !== false) await runHostCompatCheck(getLocalCliPackageInfo(), host);
|
|
577
285
|
return saved;
|
|
578
286
|
}
|
|
579
287
|
async function persistManualCliToken(host, cliToken, options = {}) {
|
|
@@ -1,21 +1,22 @@
|
|
|
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-SHB7A2JE.js";
|
|
5
5
|
import {
|
|
6
6
|
currentAgentSpaceId
|
|
7
7
|
} from "./chunk-RK6GLDGI.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-LXRALNNA.js";
|
|
9
9
|
import {
|
|
10
10
|
TeAgentApiError,
|
|
11
11
|
deleteFromMainApp,
|
|
12
12
|
getFromMainApp,
|
|
13
13
|
patchToMainApp,
|
|
14
14
|
postToMainApp
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-CYZV5AXW.js";
|
|
16
|
+
import "./chunk-UWQXGF44.js";
|
|
17
|
+
import "./chunk-IGU3R2JD.js";
|
|
18
|
+
import "./chunk-MTK4ZE7W.js";
|
|
19
|
+
import "./chunk-3ZQY7SLZ.js";
|
|
19
20
|
|
|
20
21
|
// src/commands/automation/index.ts
|
|
21
22
|
import { randomUUID } from "crypto";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
resolveHost
|
|
4
|
-
} from "./chunk-KA5WKR5P.js";
|
|
5
|
-
import {
|
|
6
|
-
confirmHighRiskWrite,
|
|
7
|
-
normalizeRiskLevel,
|
|
8
|
-
requiresConfirmation
|
|
9
|
-
} from "./chunk-EFGUBGA6.js";
|
|
10
2
|
import {
|
|
11
3
|
findGatewayDomain,
|
|
12
4
|
listCapabilityDiscoveryPrefixes,
|
|
13
5
|
listRegisteredCapabilityDomains,
|
|
14
6
|
resolveGatewayDomain
|
|
15
7
|
} from "./chunk-AWW2T2WL.js";
|
|
8
|
+
import {
|
|
9
|
+
confirmHighRiskWrite,
|
|
10
|
+
normalizeRiskLevel,
|
|
11
|
+
requiresConfirmation
|
|
12
|
+
} from "./chunk-GYODT7C4.js";
|
|
13
|
+
import {
|
|
14
|
+
resolveHost
|
|
15
|
+
} from "./chunk-Z6WSCIHM.js";
|
|
16
16
|
import {
|
|
17
17
|
printError,
|
|
18
18
|
printOutput,
|
|
19
19
|
withOutputMetadata
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DE5XHQQ6.js";
|
|
21
21
|
import {
|
|
22
22
|
CapabilityGatewayError,
|
|
23
23
|
dryRunCapabilityWithEnvelope,
|
|
@@ -26,27 +26,29 @@ import {
|
|
|
26
26
|
inspectCapabilityWithEnvelope,
|
|
27
27
|
listCapabilitiesWithEnvelope,
|
|
28
28
|
validateCapabilityWithEnvelope
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-VPLRZSMY.js";
|
|
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-FNACCKQR.js";
|
|
37
37
|
import "./chunk-PUSFEC6B.js";
|
|
38
38
|
import {
|
|
39
39
|
CredentialStoreUnreadableError,
|
|
40
40
|
SecureStoreAuthError
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-UWQXGF44.js";
|
|
42
42
|
import {
|
|
43
43
|
parseJsonRequest
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IGU3R2JD.js";
|
|
45
|
+
import {
|
|
46
|
+
ExternalCliTokenError
|
|
47
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
45
48
|
import {
|
|
46
49
|
CliValidationError,
|
|
47
|
-
ExternalCliTokenError,
|
|
48
50
|
PermissionError
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
50
52
|
|
|
51
53
|
// src/commands/capability/helpers.ts
|
|
52
54
|
import { readFileSync } from "fs";
|