@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.
Files changed (85) hide show
  1. package/README.md +2 -2
  2. package/README.zh.md +2 -6
  3. package/cli-installation-guide.md +18 -4
  4. package/dist/{ai-monitor-OHTSU6SV.js → ai-monitor-TVRFVZBH.js} +10 -9
  5. package/dist/ai-monitor.js +17 -16
  6. package/dist/{auth-2MOK4OI6.js → auth-JAXLMPBB.js} +25 -317
  7. package/dist/{automation-6L6IAYRK.js → automation-OQ647CSW.js} +7 -6
  8. package/dist/{capability-EMIHQJA3.js → capability-2Z4ZXTPD.js} +18 -16
  9. package/dist/chunk-2H3SFJE3.js +344 -0
  10. package/dist/{chunk-RC3PPCYD.js → chunk-3PZNM5KN.js} +3 -3
  11. package/dist/chunk-3ZQY7SLZ.js +147 -0
  12. package/dist/{chunk-NNK3JBH4.js → chunk-6E6HCTP2.js} +2 -2
  13. package/dist/{local-data-upload-client-YTWMAAGE.js → chunk-6IUTXRAD.js} +32 -4
  14. package/dist/{chunk-VLOGOM7N.js → chunk-CYZV5AXW.js} +8 -5
  15. package/dist/{chunk-O45NOIWR.js → chunk-DE5XHQQ6.js} +2 -2
  16. package/dist/{chunk-KD5UC33N.js → chunk-E5CJI7L3.js} +7 -5
  17. package/dist/{chunk-UCMO4LKL.js → chunk-EQMGH32F.js} +2 -2
  18. package/dist/{chunk-E3ONSFUN.js → chunk-FNACCKQR.js} +211 -12
  19. package/dist/{chunk-2I5SZ5DS.js → chunk-GD5JSAGV.js} +2 -2
  20. package/dist/{chunk-EFGUBGA6.js → chunk-GYODT7C4.js} +1 -1
  21. package/dist/chunk-HBI7IQH3.js +1207 -0
  22. package/dist/{chunk-AMURHMS3.js → chunk-IGU3R2JD.js} +4 -4
  23. package/dist/{chunk-YE6MJB5V.js → chunk-IWMDPHMI.js} +3 -3
  24. package/dist/{chunk-LFJ7N36I.js → chunk-L7MT53VM.js} +5 -3
  25. package/dist/{chunk-HIMOBNEY.js → chunk-LXRALNNA.js} +2 -2
  26. package/dist/{chunk-BQFLABJQ.js → chunk-M2OCZRVX.js} +7 -5
  27. package/dist/{chunk-R2SVAO4G.js → chunk-MTK4ZE7W.js} +3 -143
  28. package/dist/{chunk-7DHSB3FL.js → chunk-NK5PS5X7.js} +3 -3
  29. package/dist/{chunk-HQED4YB4.js → chunk-NPH5J65M.js} +1 -1
  30. package/dist/{chunk-EWVEAERM.js → chunk-Q764EZND.js} +78 -72
  31. package/dist/chunk-QOJXLXDJ.js +55 -0
  32. package/dist/{chunk-THTROEGD.js → chunk-QPUPWGZ3.js} +1 -1
  33. package/dist/{chunk-XZDKAR4N.js → chunk-RLPMXKDQ.js} +8921 -10119
  34. package/dist/{chunk-DWAG2QJM.js → chunk-S74XV3A6.js} +4 -4
  35. package/dist/{chunk-COOMXFUG.js → chunk-SHB7A2JE.js} +3 -3
  36. package/dist/{chunk-PLNS5J33.js → chunk-UWQXGF44.js} +17 -9
  37. package/dist/{data-integration-UNJ7EPW2.js → chunk-V6UKLIM6.js} +160 -2258
  38. package/dist/{chunk-4IQYPWCX.js → chunk-VPLRZSMY.js} +18 -10
  39. package/dist/{chunk-KA5WKR5P.js → chunk-Z6WSCIHM.js} +2 -2
  40. package/dist/{community-report-client-ULRNXLQV.js → community-report-client-5VNT6HCV.js} +4 -2
  41. package/dist/{compat-check-CADG7GND.js → compat-check-E7AQ7UCG.js} +5 -4
  42. package/dist/{config-PFD3KWQG.js → config-PGSUWIK5.js} +15 -11
  43. package/dist/{context-SOQDFZIB.js → context-Y2A6QIS3.js} +5 -4
  44. package/dist/conversion-4FR3RA45.js +16 -0
  45. package/dist/data-integration-EIF5QHYF.js +2138 -0
  46. package/dist/{evaluation-Q3AIGFOG.js → evaluation-OZM54MES.js} +6 -5
  47. package/dist/index.js +74 -51
  48. package/dist/local-data-upload-client-2U3LFD7Z.js +16 -0
  49. package/dist/{memory-HKNGUIPK.js → memory-6QMZS4HF.js} +7 -6
  50. package/dist/{metadata-GFWR5ZHC.js → metadata-7MZ3CJ2N.js} +10 -9
  51. package/dist/{model-NAKQWK4W.js → model-LEYRQKOS.js} +8 -7
  52. package/dist/{personal-semantic-preference-JCTKXLC3.js → personal-semantic-preference-SWOUNDWJ.js} +9 -8
  53. package/dist/{project-semantic-B2NWQOKK.js → project-semantic-M2DDPAMD.js} +9 -8
  54. package/dist/{sync-UQH4J4BD.js → sync-PWC63JCO.js} +16 -15
  55. package/dist/{te-agent-L6EYFQCC.js → te-agent-S7UH657Z.js} +11 -9
  56. package/dist/{te-analysis-U7NNOY66.js → te-analysis-BK6PE333.js} +281 -214
  57. package/dist/{te-community-3UQEW3KD.js → te-community-OLNTKGCW.js} +12 -10
  58. package/dist/{te-dataops-SUNYXF5G.js → te-dataops-XUWRIF5R.js} +12 -10
  59. package/dist/{te-engage-KMXZJ2KN.js → te-engage-I3I4FJOM.js} +9 -8
  60. package/dist/{te-experiment-IEYKP6VC.js → te-experiment-XSDUL4KH.js} +9 -8
  61. package/dist/{te-kb-MT3V5ZMH.js → te-kb-QFH3YLFQ.js} +15 -13
  62. package/dist/{te-system-F4ZU2HRQ.js → te-system-DB5Z3LLF.js} +7 -6
  63. package/dist/{te-team-M6E6XQ5H.js → te-team-UADF2HBO.js} +9 -8
  64. package/dist/{things-FRLBZV2Z.js → things-G2QFXDK7.js} +9 -8
  65. package/dist/{update-NULYHVE6.js → update-6I366ICW.js} +7 -8
  66. package/dist/web-runtime-3XFREWRF.js +2367 -0
  67. package/dist/{workspace-Z7L33OBQ.js → workspace-RZESYB6T.js} +7 -6
  68. package/package.json +4 -3
  69. package/skills/ae-analysis/SKILL.md +1 -1
  70. package/skills/ae-data-integration/references/ue-mapping.md +2 -0
  71. package/skills/ae-onboarding/SKILL.md +64 -0
  72. package/skills/ae-onboarding/references/business-sdk.md +8 -0
  73. package/skills/ae-onboarding/references/demo-operations.md +79 -0
  74. package/skills/ae-onboarding/references/import.md +19 -0
  75. package/skills/ae-onboarding/references/onboarding_experiment_launch.md +12 -0
  76. package/skills/ae-onboarding/references/onboarding_experiment_plan.md +14 -0
  77. package/skills/ae-onboarding/references/onboarding_growth.md +36 -0
  78. package/skills/ae-onboarding/references/onboarding_run.md +11 -0
  79. package/skills/ae-onboarding/references/onboarding_status.md +5 -0
  80. package/skills/ae-onboarding/scripts/experiment-preset.json +252 -0
  81. package/skills/ae-onboarding/scripts/experiment-requests.mjs +120 -0
  82. package/skills/ae-onboarding/scripts/generate.mjs +170 -0
  83. package/skills/ae-onboarding/scripts/resolve-experiment-preset.mjs +26 -0
  84. package/skills/ae-onboarding/scripts/web-journey.mjs +39 -0
  85. package/dist/chunk-6ZIQV5GW.js +0 -26
@@ -1,21 +1,23 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  sourceLoggedFetch
4
- } from "./chunk-NNK3JBH4.js";
4
+ } from "./chunk-6E6HCTP2.js";
5
5
  import {
6
6
  SecureStoreAuthError,
7
7
  clearCliTokenCache,
8
8
  getCliToken,
9
9
  internalCallSourceHeaders
10
- } from "./chunk-PLNS5J33.js";
10
+ } from "./chunk-UWQXGF44.js";
11
11
  import {
12
12
  safeJsonParse,
13
13
  stringifyJsonRequest
14
- } from "./chunk-AMURHMS3.js";
14
+ } from "./chunk-IGU3R2JD.js";
15
15
  import {
16
- PermissionError,
17
16
  externalCliTokenRequestOptions
18
- } from "./chunk-R2SVAO4G.js";
17
+ } from "./chunk-MTK4ZE7W.js";
18
+ import {
19
+ PermissionError
20
+ } from "./chunk-3ZQY7SLZ.js";
19
21
 
20
22
  // src/core/cli-agent-context.ts
21
23
  import { readFileSync, statSync } from "fs";
@@ -440,7 +442,12 @@ async function requestOnce(url, method, token, body, accept = "application/json"
440
442
  headers["Content-Type"] = "application/json";
441
443
  init.body = stringifyJsonRequest(includeClientContextInBody ? withCliAgentContextBody(body, agentContext) : body);
442
444
  }
443
- return sourceLoggedFetch(url, { ...init, ...externalCliTokenRequestOptions(url), signal });
445
+ return sourceLoggedFetch(url, {
446
+ ...init,
447
+ ...externalCliTokenRequestOptions(url),
448
+ ...signal ? { redirect: "error" } : {},
449
+ signal
450
+ });
444
451
  }
445
452
  async function requestMultipartOnce(url, token, form) {
446
453
  return sourceLoggedFetch(url, {
@@ -460,6 +467,7 @@ async function callGateway(host, domain, pathAfterV1, method, body, queryParams
460
467
  async function callGatewayWithEnvelope(host, domain, pathAfterV1, method, body, queryParams = {}, options = {}) {
461
468
  const url = buildCapabilityGatewayUrl(options.apiBaseUrl ?? host, domain, pathAfterV1, queryParams, options.apiVersion);
462
469
  const token = await getCliToken(host, options.signal);
470
+ options.signal?.throwIfAborted();
463
471
  let resp = await requestOnce(url, method, token, body, "application/json", options.includeClientContextInBody, options.signal);
464
472
  if (resp.status === 401 && options.retryOnUnauthorized === true) {
465
473
  await resp.body?.cancel();
@@ -529,11 +537,11 @@ async function inspectCapability(host, domain, capabilityId, projectId) {
529
537
  { project_id: projectId }
530
538
  );
531
539
  }
532
- async function executeCapability(host, domain, capabilityId, input = {}) {
533
- 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);
534
542
  }
535
- async function executeCapabilityWithEnvelope(host, domain, capabilityId, input = {}) {
536
- 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);
537
545
  }
538
546
  async function dryRunCapability(host, domain, capabilityId, input = {}) {
539
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-AMURHMS3.js";
4
+ } from "./chunk-IGU3R2JD.js";
5
5
  import {
6
6
  normalizeUrl
7
- } from "./chunk-R2SVAO4G.js";
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-R2SVAO4G.js";
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,11 +12,12 @@ import {
12
12
  shouldNotifyCompat,
13
13
  shouldSkipAutoSync,
14
14
  shouldSkipCompatCheck
15
- } from "./chunk-E3ONSFUN.js";
15
+ } from "./chunk-FNACCKQR.js";
16
16
  import "./chunk-PUSFEC6B.js";
17
- import "./chunk-PLNS5J33.js";
18
- import "./chunk-AMURHMS3.js";
19
- import "./chunk-R2SVAO4G.js";
17
+ import "./chunk-UWQXGF44.js";
18
+ import "./chunk-IGU3R2JD.js";
19
+ import "./chunk-MTK4ZE7W.js";
20
+ import "./chunk-3ZQY7SLZ.js";
20
21
  export {
21
22
  fetchCliConfig,
22
23
  formatCapabilityMissCompatHint,
@@ -4,28 +4,27 @@ import {
4
4
  invalidateBusinessSkillSynchronization,
5
5
  refreshEnvironmentAfterLogin,
6
6
  refreshEnvironmentConfig
7
- } from "./chunk-DWAG2QJM.js";
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-O45NOIWR.js";
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-E3ONSFUN.js";
23
+ } from "./chunk-FNACCKQR.js";
25
24
  import "./chunk-PUSFEC6B.js";
26
25
  import {
27
26
  peekCliToken
28
- } from "./chunk-PLNS5J33.js";
27
+ } from "./chunk-UWQXGF44.js";
29
28
  import {
30
29
  addHost,
31
30
  getActiveHost,
@@ -35,10 +34,11 @@ import {
35
34
  resolveHostSelector,
36
35
  setActiveHost,
37
36
  updateHostLabel
38
- } from "./chunk-AMURHMS3.js";
37
+ } from "./chunk-IGU3R2JD.js";
39
38
  import {
40
39
  normalizeUrl
41
- } from "./chunk-R2SVAO4G.js";
40
+ } from "./chunk-MTK4ZE7W.js";
41
+ import "./chunk-3ZQY7SLZ.js";
42
42
 
43
43
  // src/commands/config.ts
44
44
  import * as readline2 from "readline";
@@ -52,7 +52,11 @@ async function runConfigUI() {
52
52
  if (listHosts().length === 0) {
53
53
  process.stderr.write("\n\x1B[1mNo AE environments configured.\x1B[0m\n\n");
54
54
  process.stderr.write("Use the AE URL provided by your AgenticEngine administrator.\n");
55
- process.stderr.write(`No AgenticEngine environment? Request a trial: ${AE_TRIAL_URL}
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
56
60
 
57
61
  `);
58
62
  await promptAddEnvironment();
@@ -2,16 +2,17 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  TeAgentApiError,
4
4
  getFromMainApp
5
- } from "./chunk-VLOGOM7N.js";
5
+ } from "./chunk-CYZV5AXW.js";
6
6
  import {
7
7
  internalCallSourceHeaders
8
- } from "./chunk-PLNS5J33.js";
8
+ } from "./chunk-UWQXGF44.js";
9
9
  import {
10
10
  safeJsonParse
11
- } from "./chunk-AMURHMS3.js";
11
+ } from "./chunk-IGU3R2JD.js";
12
+ import "./chunk-MTK4ZE7W.js";
12
13
  import {
13
14
  CliValidationError
14
- } from "./chunk-R2SVAO4G.js";
15
+ } from "./chunk-3ZQY7SLZ.js";
15
16
 
16
17
  // src/core/current-page-context-client.ts
17
18
  async function readCurrentPageContext(path) {
@@ -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
+ };