@thinkingai/ae-cli 6.1.33 → 6.1.34
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 +14 -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
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
rememberBusinessConfig,
|
|
7
7
|
reserveBusinessSkillContext,
|
|
8
8
|
syncBusinessSkills
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FNACCKQR.js";
|
|
10
10
|
import {
|
|
11
11
|
getLocalCliPackageInfo
|
|
12
12
|
} from "./chunk-PUSFEC6B.js";
|
|
13
13
|
import {
|
|
14
14
|
peekCliToken
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UWQXGF44.js";
|
|
16
16
|
import {
|
|
17
17
|
getActiveHost,
|
|
18
18
|
getConfigDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IGU3R2JD.js";
|
|
20
20
|
import {
|
|
21
21
|
normalizeUrl
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
23
23
|
|
|
24
24
|
// src/core/environment-refresh.ts
|
|
25
25
|
import crypto from "crypto";
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
postAgentApi,
|
|
10
10
|
putAgentApi,
|
|
11
11
|
uploadAgentApi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LXRALNNA.js";
|
|
13
13
|
import {
|
|
14
14
|
TeAgentApiError,
|
|
15
15
|
createTeAgentApiError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CYZV5AXW.js";
|
|
17
17
|
import {
|
|
18
18
|
CliValidationError,
|
|
19
19
|
isApiErrorType
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/workspace/client.ts
|
|
23
23
|
var DEFAULT_TE_CLAUDE_BASE_PATH = "/agent";
|
|
@@ -6,14 +6,16 @@ import {
|
|
|
6
6
|
readSandboxCliTokenEntry,
|
|
7
7
|
safeJsonParse,
|
|
8
8
|
safeReadJsonFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IGU3R2JD.js";
|
|
10
10
|
import {
|
|
11
|
-
PermissionError,
|
|
12
11
|
externalCliTokenRequestOptions,
|
|
13
12
|
logger,
|
|
14
13
|
normalizeUrl,
|
|
15
14
|
readExternalCliToken
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
16
|
+
import {
|
|
17
|
+
PermissionError
|
|
18
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
17
19
|
|
|
18
20
|
// src/core/internal-call-source.ts
|
|
19
21
|
function internalCallSourceHeaders() {
|
|
@@ -658,12 +660,14 @@ function clearCliTokenCache(hostUrl) {
|
|
|
658
660
|
if (key.startsWith(`${normalizedHost}#`)) renewInFlight.delete(key);
|
|
659
661
|
}
|
|
660
662
|
}
|
|
661
|
-
async function generateCliToken(hostUrl, accessToken) {
|
|
663
|
+
async function generateCliToken(hostUrl, accessToken, signal) {
|
|
662
664
|
if (!accessToken) throw new Error("CLI token generation requires the access token returned by auth login.");
|
|
663
665
|
const url = `${hostUrl.replace(/\/+$/, "")}${CLI_TOKEN_GENERATE_PATH}`;
|
|
664
666
|
const resp = await fetch(url, {
|
|
665
667
|
method: "GET",
|
|
666
|
-
headers: { Authorization: `bearer ${accessToken}`, ...internalCallSourceHeaders() }
|
|
668
|
+
headers: { Authorization: `bearer ${accessToken}`, ...internalCallSourceHeaders() },
|
|
669
|
+
signal,
|
|
670
|
+
...signal ? { redirect: "error" } : {}
|
|
667
671
|
});
|
|
668
672
|
if (!resp.ok) {
|
|
669
673
|
if (resp.status === 403) {
|
|
@@ -698,16 +702,19 @@ async function generateCliToken(hostUrl, accessToken) {
|
|
|
698
702
|
if (!cliToken) throw new Error("CLI token generate error: empty userSecret in response");
|
|
699
703
|
return cliToken;
|
|
700
704
|
}
|
|
701
|
-
async function validateCliTokenOnServer(hostUrl, cliToken) {
|
|
705
|
+
async function validateCliTokenOnServer(hostUrl, cliToken, signal) {
|
|
702
706
|
const url = `${hostUrl.replace(/\/+$/, "")}${CLI_TOKEN_VALIDATE_PATH}`;
|
|
703
707
|
let resp;
|
|
704
708
|
try {
|
|
705
709
|
resp = await fetch(url, {
|
|
706
710
|
method: "GET",
|
|
707
711
|
headers: { Accept: "application/json", "cli-token": cliToken, ...internalCallSourceHeaders() },
|
|
708
|
-
...externalCliTokenRequestOptions(url)
|
|
712
|
+
...externalCliTokenRequestOptions(url),
|
|
713
|
+
...signal ? { redirect: "error" } : {},
|
|
714
|
+
signal
|
|
709
715
|
});
|
|
710
716
|
} catch (error) {
|
|
717
|
+
signal?.throwIfAborted();
|
|
711
718
|
throw new CliTokenValidationUnavailableError(`Unable to validate CLI token for ${hostUrl}: ${error.message}`);
|
|
712
719
|
}
|
|
713
720
|
const responseText = await resp.text();
|
|
@@ -862,9 +869,9 @@ function sessionCliToken(hostOverride) {
|
|
|
862
869
|
if (hostOverride && normalizeUrl(entry.url) !== normalizeUrl(hostOverride)) return void 0;
|
|
863
870
|
return entry.token;
|
|
864
871
|
}
|
|
865
|
-
async function mintCliToken(hostUrl, accessToken) {
|
|
872
|
+
async function mintCliToken(hostUrl, accessToken, signal) {
|
|
866
873
|
logger.info(`Generating CLI token for ${hostUrl}`);
|
|
867
|
-
const cliToken = await generateCliToken(hostUrl, accessToken);
|
|
874
|
+
const cliToken = await generateCliToken(hostUrl, accessToken, signal);
|
|
868
875
|
cliTokenCache.set(normalizeUrl(hostUrl), cliToken);
|
|
869
876
|
return cliToken;
|
|
870
877
|
}
|
|
@@ -879,6 +886,7 @@ export {
|
|
|
879
886
|
activateCredential,
|
|
880
887
|
removeActiveCredential,
|
|
881
888
|
clearAllCredentials,
|
|
889
|
+
loadCliToken,
|
|
882
890
|
SecureStoreAuthError,
|
|
883
891
|
CredentialStoreUnreadableError,
|
|
884
892
|
CliTokenValidationUnavailableError,
|