@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
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
sourceLoggedFetch
|
|
4
|
+
} from "./chunk-6E6HCTP2.js";
|
|
5
5
|
import {
|
|
6
6
|
SecureStoreAuthError,
|
|
7
7
|
clearCliTokenCache,
|
|
8
|
-
getCliToken
|
|
9
|
-
|
|
8
|
+
getCliToken,
|
|
9
|
+
internalCallSourceHeaders
|
|
10
|
+
} from "./chunk-UWQXGF44.js";
|
|
10
11
|
import {
|
|
11
12
|
safeJsonParse,
|
|
12
13
|
stringifyJsonRequest
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IGU3R2JD.js";
|
|
14
15
|
import {
|
|
15
|
-
PermissionError,
|
|
16
16
|
externalCliTokenRequestOptions
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
18
|
+
import {
|
|
19
|
+
PermissionError
|
|
20
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
18
21
|
|
|
19
22
|
// src/core/cli-agent-context.ts
|
|
20
23
|
import { readFileSync, statSync } from "fs";
|
|
@@ -439,10 +442,15 @@ async function requestOnce(url, method, token, body, accept = "application/json"
|
|
|
439
442
|
headers["Content-Type"] = "application/json";
|
|
440
443
|
init.body = stringifyJsonRequest(includeClientContextInBody ? withCliAgentContextBody(body, agentContext) : body);
|
|
441
444
|
}
|
|
442
|
-
return
|
|
445
|
+
return sourceLoggedFetch(url, {
|
|
446
|
+
...init,
|
|
447
|
+
...externalCliTokenRequestOptions(url),
|
|
448
|
+
...signal ? { redirect: "error" } : {},
|
|
449
|
+
signal
|
|
450
|
+
});
|
|
443
451
|
}
|
|
444
452
|
async function requestMultipartOnce(url, token, form) {
|
|
445
|
-
return
|
|
453
|
+
return sourceLoggedFetch(url, {
|
|
446
454
|
method: "POST",
|
|
447
455
|
...externalCliTokenRequestOptions(url),
|
|
448
456
|
headers: {
|
|
@@ -459,6 +467,7 @@ async function callGateway(host, domain, pathAfterV1, method, body, queryParams
|
|
|
459
467
|
async function callGatewayWithEnvelope(host, domain, pathAfterV1, method, body, queryParams = {}, options = {}) {
|
|
460
468
|
const url = buildCapabilityGatewayUrl(options.apiBaseUrl ?? host, domain, pathAfterV1, queryParams, options.apiVersion);
|
|
461
469
|
const token = await getCliToken(host, options.signal);
|
|
470
|
+
options.signal?.throwIfAborted();
|
|
462
471
|
let resp = await requestOnce(url, method, token, body, "application/json", options.includeClientContextInBody, options.signal);
|
|
463
472
|
if (resp.status === 401 && options.retryOnUnauthorized === true) {
|
|
464
473
|
await resp.body?.cancel();
|
|
@@ -528,11 +537,11 @@ async function inspectCapability(host, domain, capabilityId, projectId) {
|
|
|
528
537
|
{ project_id: projectId }
|
|
529
538
|
);
|
|
530
539
|
}
|
|
531
|
-
async function executeCapability(host, domain, capabilityId, input = {}) {
|
|
532
|
-
return callGateway(host, domain, `capabilities/${capabilityId}/execute`, "POST", { input });
|
|
540
|
+
async function executeCapability(host, domain, capabilityId, input = {}, options = {}) {
|
|
541
|
+
return callGateway(host, domain, `capabilities/${capabilityId}/execute`, "POST", { input }, {}, options);
|
|
533
542
|
}
|
|
534
|
-
async function executeCapabilityWithEnvelope(host, domain, capabilityId, input = {}) {
|
|
535
|
-
return callGatewayWithEnvelope(host, domain, `capabilities/${capabilityId}/execute`, "POST", { input });
|
|
543
|
+
async function executeCapabilityWithEnvelope(host, domain, capabilityId, input = {}, options = {}) {
|
|
544
|
+
return callGatewayWithEnvelope(host, domain, `capabilities/${capabilityId}/execute`, "POST", { input }, {}, options);
|
|
536
545
|
}
|
|
537
546
|
async function dryRunCapability(host, domain, capabilityId, input = {}) {
|
|
538
547
|
return callGateway(host, domain, `capabilities/${capabilityId}/dry-run`, "POST", { input });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getActiveHost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IGU3R2JD.js";
|
|
5
5
|
import {
|
|
6
6
|
normalizeUrl
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
8
8
|
|
|
9
9
|
// src/core/auth.ts
|
|
10
10
|
function resolveHost(hostOverride) {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
CommunityReportError,
|
|
4
3
|
logger
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
5
|
+
import {
|
|
6
|
+
CommunityReportError
|
|
7
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
6
8
|
|
|
7
9
|
// src/core/community-report-client.ts
|
|
8
10
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
@@ -12,10 +12,12 @@ import {
|
|
|
12
12
|
shouldNotifyCompat,
|
|
13
13
|
shouldSkipAutoSync,
|
|
14
14
|
shouldSkipCompatCheck
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-FNACCKQR.js";
|
|
16
|
+
import "./chunk-PUSFEC6B.js";
|
|
17
|
+
import "./chunk-UWQXGF44.js";
|
|
18
|
+
import "./chunk-IGU3R2JD.js";
|
|
19
|
+
import "./chunk-MTK4ZE7W.js";
|
|
20
|
+
import "./chunk-3ZQY7SLZ.js";
|
|
19
21
|
export {
|
|
20
22
|
fetchCliConfig,
|
|
21
23
|
formatCapabilityMissCompatHint,
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
invalidateBusinessSkillSynchronization,
|
|
5
5
|
refreshEnvironmentAfterLogin,
|
|
6
6
|
refreshEnvironmentConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S74XV3A6.js";
|
|
8
8
|
import {
|
|
9
9
|
MultiselectCancelled,
|
|
10
10
|
promptSingleSelect
|
|
11
11
|
} from "./chunk-7K24F7T2.js";
|
|
12
|
-
import {
|
|
13
|
-
AE_TRIAL_URL,
|
|
14
|
-
missingAeHostHint
|
|
15
|
-
} from "./chunk-6ZIQV5GW.js";
|
|
16
12
|
import {
|
|
17
13
|
printError,
|
|
18
14
|
printOutput
|
|
19
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DE5XHQQ6.js";
|
|
20
16
|
import {
|
|
17
|
+
AE_TRIAL_URL,
|
|
18
|
+
aeRegistrationUrl,
|
|
21
19
|
fetchCliConfig,
|
|
20
|
+
missingAeHostHint,
|
|
22
21
|
readCurrentBusinessConfig,
|
|
23
22
|
resolveKbAutoDiscoveryFeature
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FNACCKQR.js";
|
|
24
|
+
import "./chunk-PUSFEC6B.js";
|
|
25
25
|
import {
|
|
26
26
|
peekCliToken
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UWQXGF44.js";
|
|
28
28
|
import {
|
|
29
29
|
addHost,
|
|
30
30
|
getActiveHost,
|
|
@@ -34,10 +34,11 @@ import {
|
|
|
34
34
|
resolveHostSelector,
|
|
35
35
|
setActiveHost,
|
|
36
36
|
updateHostLabel
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-IGU3R2JD.js";
|
|
38
38
|
import {
|
|
39
39
|
normalizeUrl
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-MTK4ZE7W.js";
|
|
41
|
+
import "./chunk-3ZQY7SLZ.js";
|
|
41
42
|
|
|
42
43
|
// src/commands/config.ts
|
|
43
44
|
import * as readline2 from "readline";
|
|
@@ -51,7 +52,11 @@ async function runConfigUI() {
|
|
|
51
52
|
if (listHosts().length === 0) {
|
|
52
53
|
process.stderr.write("\n\x1B[1mNo AE environments configured.\x1B[0m\n\n");
|
|
53
54
|
process.stderr.write("Use the AE URL provided by your AgenticEngine administrator.\n");
|
|
54
|
-
|
|
55
|
+
const registration = aeRegistrationUrl();
|
|
56
|
+
process.stderr.write(registration === AE_TRIAL_URL ? `Request a trial: ${registration}
|
|
57
|
+
|
|
58
|
+
` : `Website registration: ${registration}
|
|
59
|
+
For guided setup, run: ae-cli analysis onboarding run
|
|
55
60
|
|
|
56
61
|
`);
|
|
57
62
|
await promptAddEnvironment();
|
|
@@ -2,15 +2,17 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
TeAgentApiError,
|
|
4
4
|
getFromMainApp
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import
|
|
7
|
-
|
|
5
|
+
} from "./chunk-CYZV5AXW.js";
|
|
6
|
+
import {
|
|
7
|
+
internalCallSourceHeaders
|
|
8
|
+
} from "./chunk-UWQXGF44.js";
|
|
8
9
|
import {
|
|
9
10
|
safeJsonParse
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IGU3R2JD.js";
|
|
12
|
+
import "./chunk-MTK4ZE7W.js";
|
|
11
13
|
import {
|
|
12
14
|
CliValidationError
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3ZQY7SLZ.js";
|
|
14
16
|
|
|
15
17
|
// src/core/current-page-context-client.ts
|
|
16
18
|
async function readCurrentPageContext(path) {
|
|
@@ -34,7 +36,8 @@ async function readCurrentPageContext(path) {
|
|
|
34
36
|
"Content-Type": "application/json",
|
|
35
37
|
Accept: "application/json, text/event-stream",
|
|
36
38
|
"MCP-Protocol-Version": "2025-03-26",
|
|
37
|
-
"X-TE-Page-Context-Token": grant
|
|
39
|
+
"X-TE-Page-Context-Token": grant,
|
|
40
|
+
...internalCallSourceHeaders()
|
|
38
41
|
},
|
|
39
42
|
body: JSON.stringify({
|
|
40
43
|
jsonrpc: "2.0",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
convertLocalData,
|
|
4
|
+
convertLocalDataMulti,
|
|
5
|
+
convertRow
|
|
6
|
+
} from "./chunk-V6UKLIM6.js";
|
|
7
|
+
import "./chunk-RLPMXKDQ.js";
|
|
8
|
+
import "./chunk-EQMGH32F.js";
|
|
9
|
+
import "./chunk-GD5JSAGV.js";
|
|
10
|
+
import "./chunk-NPH5J65M.js";
|
|
11
|
+
import "./chunk-3ZQY7SLZ.js";
|
|
12
|
+
export {
|
|
13
|
+
convertLocalData,
|
|
14
|
+
convertLocalDataMulti,
|
|
15
|
+
convertRow
|
|
16
|
+
};
|