@thinkingai/ae-cli 6.1.32 → 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 +8 -5
- package/README.zh.md +10 -9
- package/bin/runtime-capabilities.json +1 -1
- package/cli-installation-guide.md +14 -4
- package/dist/{ai-monitor-MKMHSSNI.js → ai-monitor-TVRFVZBH.js} +11 -9
- package/dist/ai-monitor.js +18 -16
- package/dist/{auth-CZHHPZOQ.js → auth-JAXLMPBB.js} +33 -316
- package/dist/{automation-FLCPFMN4.js → automation-OQ647CSW.js} +7 -7
- package/dist/{capability-64KVJFIA.js → capability-2Z4ZXTPD.js} +19 -16
- package/dist/chunk-2H3SFJE3.js +344 -0
- package/dist/{chunk-TMQGS4TO.js → chunk-3PZNM5KN.js} +3 -3
- package/dist/chunk-3ZQY7SLZ.js +147 -0
- package/dist/chunk-6E6HCTP2.js +60 -0
- package/dist/{local-data-upload-client-KCMG6J62.js → chunk-6IUTXRAD.js} +32 -4
- package/dist/{chunk-5M5LBRR3.js → chunk-CYZV5AXW.js} +18 -9
- package/dist/{chunk-3ULDJJTZ.js → chunk-DE5XHQQ6.js} +2 -2
- package/dist/{chunk-FCAA7I2D.js → chunk-E5CJI7L3.js} +26 -10
- package/dist/{chunk-QVRIDN42.js → chunk-EQMGH32F.js} +2 -2
- package/dist/{chunk-DWBYNGSR.js → chunk-FNACCKQR.js} +372 -194
- package/dist/{chunk-OAWPT7VP.js → chunk-GD5JSAGV.js} +2 -2
- package/dist/{chunk-CF6JTT2U.js → chunk-GYODT7C4.js} +1 -1
- package/dist/chunk-HBI7IQH3.js +1207 -0
- package/dist/{chunk-4PSTYEG5.js → chunk-IGU3R2JD.js} +9 -5
- package/dist/{chunk-IDDWEZ7F.js → chunk-IWMDPHMI.js} +3 -3
- package/dist/{chunk-P7QDCWJ6.js → chunk-L7MT53VM.js} +8 -2
- package/dist/{chunk-F2VFZUGG.js → chunk-LXRALNNA.js} +2 -2
- package/dist/{chunk-6M7ZEDT2.js → chunk-M2OCZRVX.js} +14 -8
- package/dist/{chunk-Z3Q2AEIN.js → chunk-MTK4ZE7W.js} +17 -145
- package/dist/{chunk-T7WF4HYW.js → chunk-NK5PS5X7.js} +3 -3
- package/dist/{chunk-JEUXDY3B.js → chunk-NPH5J65M.js} +1 -1
- package/dist/chunk-PUSFEC6B.js +29 -0
- package/dist/{chunk-BNBCMCYN.js → chunk-Q764EZND.js} +78 -72
- package/dist/chunk-QOJXLXDJ.js +55 -0
- package/dist/{chunk-HVMCPKOZ.js → chunk-QPUPWGZ3.js} +1 -1
- package/dist/{chunk-72NJKS7O.js → chunk-RLPMXKDQ.js} +8921 -10119
- package/dist/{chunk-NLEXY2TM.js → chunk-S74XV3A6.js} +7 -5
- package/dist/{chunk-KTJXD27G.js → chunk-SHB7A2JE.js} +3 -3
- package/dist/{chunk-HTZ2MLYA.js → chunk-UWQXGF44.js} +25 -11
- package/dist/{data-integration-QE37EQ3A.js → chunk-V6UKLIM6.js} +160 -2258
- package/dist/{chunk-4XKTRCRK.js → chunk-VPLRZSMY.js} +22 -13
- package/dist/{chunk-2F64AZYH.js → chunk-Z6WSCIHM.js} +2 -2
- package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-5VNT6HCV.js} +4 -2
- package/dist/{compat-check-ZJNCMNQV.js → compat-check-E7AQ7UCG.js} +6 -4
- package/dist/{config-FSH2NMNZ.js → config-PGSUWIK5.js} +16 -11
- package/dist/{context-YAQG6YQC.js → context-Y2A6QIS3.js} +9 -6
- package/dist/conversion-4FR3RA45.js +16 -0
- package/dist/data-integration-EIF5QHYF.js +2138 -0
- package/dist/{evaluation-2JSF4V47.js → evaluation-OZM54MES.js} +6 -5
- package/dist/index.js +79 -52
- package/dist/local-data-upload-client-2U3LFD7Z.js +16 -0
- package/dist/{memory-VEZZVAAP.js → memory-6QMZS4HF.js} +7 -7
- package/dist/{metadata-3IWHX3V4.js → metadata-7MZ3CJ2N.js} +11 -9
- package/dist/{model-T7H7Q6BG.js → model-LEYRQKOS.js} +8 -8
- package/dist/{personal-semantic-preference-YITU23SA.js → personal-semantic-preference-SWOUNDWJ.js} +46 -14
- package/dist/{project-semantic-MHEXJF3C.js → project-semantic-M2DDPAMD.js} +10 -8
- package/dist/{sync-AQHVCSPI.js → sync-PWC63JCO.js} +17 -16
- package/dist/{te-agent-RXI7WOH4.js → te-agent-S7UH657Z.js} +304 -16
- package/dist/{te-analysis-CZY74HVF.js → te-analysis-BK6PE333.js} +295 -223
- package/dist/{te-community-DKCYUBCM.js → te-community-OLNTKGCW.js} +17 -13
- package/dist/{te-dataops-QEH6VE56.js → te-dataops-XUWRIF5R.js} +18 -14
- package/dist/{te-engage-WK7WKDKF.js → te-engage-I3I4FJOM.js} +10 -8
- package/dist/{te-experiment-LH3RPIOE.js → te-experiment-XSDUL4KH.js} +216 -28
- package/dist/{te-kb-UPORIOVN.js → te-kb-QFH3YLFQ.js} +74 -21
- package/dist/{te-system-AL4B4XZL.js → te-system-DB5Z3LLF.js} +7 -7
- package/dist/{te-team-LLVTO2G4.js → te-team-UADF2HBO.js} +10 -8
- package/dist/{things-XLMLBYQR.js → things-G2QFXDK7.js} +10 -8
- package/dist/{update-7J5UQHSK.js → update-6I366ICW.js} +10 -9
- package/dist/web-runtime-3XFREWRF.js +2367 -0
- package/dist/{workspace-FF2HXJGR.js → workspace-RZESYB6T.js} +7 -7
- package/package.json +9 -5
- package/skills/ae-agent/SKILL.md +19 -5
- package/skills/ae-agent/references/a2a.md +103 -0
- package/skills/ae-agent/references/command_index.md +11 -0
- package/skills/ae-analysis/SKILL.md +35 -23
- package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
- package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
- package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
- package/skills/ae-analysis/references/bad_case_review.md +4 -4
- package/skills/ae-analysis/references/command_index.md +7 -7
- package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
- package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
- package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
- package/skills/ae-analysis/references/project_owner_update.md +5 -1
- package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
- package/skills/ae-analysis/references/scenario_list.md +5 -6
- package/skills/ae-capability/SKILL.md +8 -4
- package/skills/ae-data-integration/references/ue-mapping.md +2 -0
- package/skills/ae-experiment/SKILL.md +45 -16
- package/skills/ae-experiment/references/experiment_approval.md +87 -29
- package/skills/ae-experiment/references/manage_experiment.md +7 -3
- package/skills/ae-experiment/references/manage_traffic_domains.md +131 -0
- package/skills/ae-experiment/references/query_experiment_detail.md +8 -0
- package/skills/ae-experiment/references/query_experiment_list.md +6 -0
- package/skills/ae-experiment/references/save_experiment.md +39 -13
- package/skills/ae-experiment/references/save_metric.md +29 -2
- package/skills/ae-experiment/references/save_submit_experiment.md +11 -7
- package/skills/ae-experiment/references/save_submit_external_experiment.md +16 -14
- package/skills/ae-experiment/references/save_traffic_layer.md +17 -1
- package/skills/ae-kb/SKILL.md +4 -2
- package/skills/ae-kb/references/publication.md +45 -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/dist/chunk-Y74WTIKJ.js +0 -10
|
@@ -2,22 +2,24 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
canManageGlobalSkills,
|
|
4
4
|
fetchCliConfig,
|
|
5
|
-
getLocalCliPackageInfo,
|
|
6
5
|
isBusinessSkillContextCurrent,
|
|
7
6
|
rememberBusinessConfig,
|
|
8
7
|
reserveBusinessSkillContext,
|
|
9
8
|
syncBusinessSkills
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FNACCKQR.js";
|
|
10
|
+
import {
|
|
11
|
+
getLocalCliPackageInfo
|
|
12
|
+
} from "./chunk-PUSFEC6B.js";
|
|
11
13
|
import {
|
|
12
14
|
peekCliToken
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UWQXGF44.js";
|
|
14
16
|
import {
|
|
15
17
|
getActiveHost,
|
|
16
18
|
getConfigDir
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IGU3R2JD.js";
|
|
18
20
|
import {
|
|
19
21
|
normalizeUrl
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
21
23
|
|
|
22
24
|
// src/core/environment-refresh.ts
|
|
23
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,21 @@ 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";
|
|
19
|
+
|
|
20
|
+
// src/core/internal-call-source.ts
|
|
21
|
+
function internalCallSourceHeaders() {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
17
24
|
|
|
18
25
|
// src/core/secure-store.ts
|
|
19
26
|
import crypto from "crypto";
|
|
@@ -653,12 +660,14 @@ function clearCliTokenCache(hostUrl) {
|
|
|
653
660
|
if (key.startsWith(`${normalizedHost}#`)) renewInFlight.delete(key);
|
|
654
661
|
}
|
|
655
662
|
}
|
|
656
|
-
async function generateCliToken(hostUrl, accessToken) {
|
|
663
|
+
async function generateCliToken(hostUrl, accessToken, signal) {
|
|
657
664
|
if (!accessToken) throw new Error("CLI token generation requires the access token returned by auth login.");
|
|
658
665
|
const url = `${hostUrl.replace(/\/+$/, "")}${CLI_TOKEN_GENERATE_PATH}`;
|
|
659
666
|
const resp = await fetch(url, {
|
|
660
667
|
method: "GET",
|
|
661
|
-
headers: { Authorization: `bearer ${accessToken}
|
|
668
|
+
headers: { Authorization: `bearer ${accessToken}`, ...internalCallSourceHeaders() },
|
|
669
|
+
signal,
|
|
670
|
+
...signal ? { redirect: "error" } : {}
|
|
662
671
|
});
|
|
663
672
|
if (!resp.ok) {
|
|
664
673
|
if (resp.status === 403) {
|
|
@@ -693,16 +702,19 @@ async function generateCliToken(hostUrl, accessToken) {
|
|
|
693
702
|
if (!cliToken) throw new Error("CLI token generate error: empty userSecret in response");
|
|
694
703
|
return cliToken;
|
|
695
704
|
}
|
|
696
|
-
async function validateCliTokenOnServer(hostUrl, cliToken) {
|
|
705
|
+
async function validateCliTokenOnServer(hostUrl, cliToken, signal) {
|
|
697
706
|
const url = `${hostUrl.replace(/\/+$/, "")}${CLI_TOKEN_VALIDATE_PATH}`;
|
|
698
707
|
let resp;
|
|
699
708
|
try {
|
|
700
709
|
resp = await fetch(url, {
|
|
701
710
|
method: "GET",
|
|
702
|
-
headers: { Accept: "application/json", "cli-token": cliToken },
|
|
703
|
-
...externalCliTokenRequestOptions(url)
|
|
711
|
+
headers: { Accept: "application/json", "cli-token": cliToken, ...internalCallSourceHeaders() },
|
|
712
|
+
...externalCliTokenRequestOptions(url),
|
|
713
|
+
...signal ? { redirect: "error" } : {},
|
|
714
|
+
signal
|
|
704
715
|
});
|
|
705
716
|
} catch (error) {
|
|
717
|
+
signal?.throwIfAborted();
|
|
706
718
|
throw new CliTokenValidationUnavailableError(`Unable to validate CLI token for ${hostUrl}: ${error.message}`);
|
|
707
719
|
}
|
|
708
720
|
const responseText = await resp.text();
|
|
@@ -743,7 +755,7 @@ async function renewCliTokenOnServer(hostUrl, cliToken, external = false, signal
|
|
|
743
755
|
if (!external) url.searchParams.set("cli-token", cliToken);
|
|
744
756
|
const resp = await fetch(url.toString(), {
|
|
745
757
|
method: "GET",
|
|
746
|
-
headers: { Accept: "application/json", ...external ? { "cli-token": cliToken } : {} },
|
|
758
|
+
headers: { Accept: "application/json", ...external ? { "cli-token": cliToken } : {}, ...internalCallSourceHeaders() },
|
|
747
759
|
...externalCliTokenRequestOptions(url.toString()),
|
|
748
760
|
signal
|
|
749
761
|
});
|
|
@@ -857,14 +869,15 @@ function sessionCliToken(hostOverride) {
|
|
|
857
869
|
if (hostOverride && normalizeUrl(entry.url) !== normalizeUrl(hostOverride)) return void 0;
|
|
858
870
|
return entry.token;
|
|
859
871
|
}
|
|
860
|
-
async function mintCliToken(hostUrl, accessToken) {
|
|
872
|
+
async function mintCliToken(hostUrl, accessToken, signal) {
|
|
861
873
|
logger.info(`Generating CLI token for ${hostUrl}`);
|
|
862
|
-
const cliToken = await generateCliToken(hostUrl, accessToken);
|
|
874
|
+
const cliToken = await generateCliToken(hostUrl, accessToken, signal);
|
|
863
875
|
cliTokenCache.set(normalizeUrl(hostUrl), cliToken);
|
|
864
876
|
return cliToken;
|
|
865
877
|
}
|
|
866
878
|
|
|
867
879
|
export {
|
|
880
|
+
internalCallSourceHeaders,
|
|
868
881
|
assertCredentialsReadable,
|
|
869
882
|
getActiveCredential,
|
|
870
883
|
listCredentials,
|
|
@@ -873,6 +886,7 @@ export {
|
|
|
873
886
|
activateCredential,
|
|
874
887
|
removeActiveCredential,
|
|
875
888
|
clearAllCredentials,
|
|
889
|
+
loadCliToken,
|
|
876
890
|
SecureStoreAuthError,
|
|
877
891
|
CredentialStoreUnreadableError,
|
|
878
892
|
CliTokenValidationUnavailableError,
|